diff options
author | AlexSm <alex@ydb.tech> | 2025-04-07 10:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 15:58:45 +0700 |
commit | 3f399a582989c4ccb0efa88a57db785a77e2fea7 (patch) | |
tree | 3312dcc6ffa2cde1e43978c56cd137a9bece007d | |
parent | 288a443b15bc64c9676fb70884e73e6aba03e108 (diff) | |
download | ydb-3f399a582989c4ccb0efa88a57db785a77e2fea7.tar.gz |
build: refresh Embedded UI (v8.20.1) (#16784)
Co-authored-by: astandrik <astandrik@users.noreply.github.com>
857 files changed, 1761 insertions, 914 deletions
diff --git a/ydb/core/viewer/monitoring/asset-manifest.json b/ydb/core/viewer/monitoring/asset-manifest.json index 3c204bc5b3..770cb40806 100644 --- a/ydb/core/viewer/monitoring/asset-manifest.json +++ b/ydb/core/viewer/monitoring/asset-manifest.json @@ -1,284 +1,563 @@ { "files": { - "main.css": "./static/css/main.8f03af14.css", - "main.js": "./static/js/main.806ca619.js", - "static/js/9222.a1913f85.chunk.js": "./static/js/9222.a1913f85.chunk.js", - "static/js/9243.cb95c73b.chunk.js": "./static/js/9243.cb95c73b.chunk.js", + "main.css": "./static/css/main.84f98361.css", + "main.js": "./static/js/main.56991933.js", + "static/js/89222.d941dfbd.chunk.js": "./static/js/89222.d941dfbd.chunk.js", + "static/js/59243.5de594f4.chunk.js": "./static/js/59243.5de594f4.chunk.js", "static/js/6881.7e6434c9.chunk.js": "./static/js/6881.7e6434c9.chunk.js", - "static/js/5685.c0a21a10.chunk.js": "./static/js/5685.c0a21a10.chunk.js", - "static/js/8081.5fafc7dc.chunk.js": "./static/js/8081.5fafc7dc.chunk.js", - "static/js/8256.a2ce240a.chunk.js": "./static/js/8256.a2ce240a.chunk.js", - "static/js/9697.bed5988b.chunk.js": "./static/js/9697.bed5988b.chunk.js", + "static/js/45685.47ca075a.chunk.js": "./static/js/45685.47ca075a.chunk.js", + "static/js/88081.e48ec099.chunk.js": "./static/js/88081.e48ec099.chunk.js", + "static/js/28256.20804e43.chunk.js": "./static/js/28256.20804e43.chunk.js", + "static/js/89697.31847e00.chunk.js": "./static/js/89697.31847e00.chunk.js", "static/js/1187.c5435886.chunk.js": "./static/js/1187.c5435886.chunk.js", - "static/js/4349.9c8d20fd.chunk.js": "./static/js/4349.9c8d20fd.chunk.js", - "static/js/8890.9f3d8f08.chunk.js": "./static/js/8890.9f3d8f08.chunk.js", + "static/js/24349.ff3855f6.chunk.js": "./static/js/24349.ff3855f6.chunk.js", + "static/js/58890.cf2d0d90.chunk.js": "./static/js/58890.cf2d0d90.chunk.js", "static/js/3410.6391755f.chunk.js": "./static/js/3410.6391755f.chunk.js", - "static/js/7748.3ec14243.chunk.js": "./static/js/7748.3ec14243.chunk.js", - "static/js/5950.28656717.chunk.js": "./static/js/5950.28656717.chunk.js", - "static/js/1088.40c16ea2.chunk.js": "./static/js/1088.40c16ea2.chunk.js", - "static/js/7420.d0c66c34.chunk.js": "./static/js/7420.d0c66c34.chunk.js", - "static/js/2568.5bec7af3.chunk.js": "./static/js/2568.5bec7af3.chunk.js", + "static/js/97748.5df46a4a.chunk.js": "./static/js/97748.5df46a4a.chunk.js", + "static/js/85950.98e6e44a.chunk.js": "./static/js/85950.98e6e44a.chunk.js", + "static/js/61088.c55195af.chunk.js": "./static/js/61088.c55195af.chunk.js", + "static/js/97420.08729928.chunk.js": "./static/js/97420.08729928.chunk.js", + "static/js/72568.9f8b7a4b.chunk.js": "./static/js/72568.9f8b7a4b.chunk.js", "static/js/1237.328d0241.chunk.js": "./static/js/1237.328d0241.chunk.js", "static/js/9174.ae7682da.chunk.js": "./static/js/9174.ae7682da.chunk.js", - "static/js/513.46a664ad.chunk.js": "./static/js/513.46a664ad.chunk.js", - "static/js/2626.a5b0d58c.chunk.js": "./static/js/2626.a5b0d58c.chunk.js", - "static/js/3761.dd957fd1.chunk.js": "./static/js/3761.dd957fd1.chunk.js", - "static/js/6047.328b41a5.chunk.js": "./static/js/6047.328b41a5.chunk.js", - "static/js/7348.eac33db2.chunk.js": "./static/js/7348.eac33db2.chunk.js", - "static/js/8633.da605a09.chunk.js": "./static/js/8633.da605a09.chunk.js", - "static/js/5418.00d0c5d1.chunk.js": "./static/js/5418.00d0c5d1.chunk.js", + "static/js/90513.c6053ab5.chunk.js": "./static/js/90513.c6053ab5.chunk.js", + "static/js/22626.2495b693.chunk.js": "./static/js/22626.2495b693.chunk.js", + "static/js/43761.7a876492.chunk.js": "./static/js/43761.7a876492.chunk.js", + "static/js/46047.240cef79.chunk.js": "./static/js/46047.240cef79.chunk.js", + "static/js/67348.c1ed85fa.chunk.js": "./static/js/67348.c1ed85fa.chunk.js", + "static/js/48633.41f9d3a3.chunk.js": "./static/js/48633.41f9d3a3.chunk.js", + "static/js/15418.978d5fff.chunk.js": "./static/js/15418.978d5fff.chunk.js", "static/js/8534.f7aec532.chunk.js": "./static/js/8534.f7aec532.chunk.js", - "static/js/1696.6120f4a8.chunk.js": "./static/js/1696.6120f4a8.chunk.js", - "static/js/7878.1f9512c4.chunk.js": "./static/js/7878.1f9512c4.chunk.js", - "static/js/9523.ac019963.chunk.js": "./static/js/9523.ac019963.chunk.js", + "static/js/41696.f9f2ec5d.chunk.js": "./static/js/41696.f9f2ec5d.chunk.js", + "static/js/47878.706bd425.chunk.js": "./static/js/47878.706bd425.chunk.js", + "static/js/49523.654b328e.chunk.js": "./static/js/49523.654b328e.chunk.js", "static/js/3952.ce1b4fad.chunk.js": "./static/js/3952.ce1b4fad.chunk.js", - "static/js/6625.a8d44d36.chunk.js": "./static/js/6625.a8d44d36.chunk.js", - "static/js/5027.9e6325ef.chunk.js": "./static/js/5027.9e6325ef.chunk.js", - "static/js/290.b4f1e118.chunk.js": "./static/js/290.b4f1e118.chunk.js", - "static/js/5401.dfb63825.chunk.js": "./static/js/5401.dfb63825.chunk.js", - "static/js/6786.28af14f6.chunk.js": "./static/js/6786.28af14f6.chunk.js", - "static/js/1496.18b1eb19.chunk.js": "./static/js/1496.18b1eb19.chunk.js", - "static/js/1627.80c94ebf.chunk.js": "./static/js/1627.80c94ebf.chunk.js", - "static/js/3769.860e8d58.chunk.js": "./static/js/3769.860e8d58.chunk.js", - "static/js/1747.f01c9fd8.chunk.js": "./static/js/1747.f01c9fd8.chunk.js", - "static/js/730.a22f6f5f.chunk.js": "./static/js/730.a22f6f5f.chunk.js", - "static/js/9433.4cf14d1c.chunk.js": "./static/js/9433.4cf14d1c.chunk.js", - "static/js/523.17013d4e.chunk.js": "./static/js/523.17013d4e.chunk.js", - "static/js/8119.196e82ef.chunk.js": "./static/js/8119.196e82ef.chunk.js", - "static/js/4324.c69948f7.chunk.js": "./static/js/4324.c69948f7.chunk.js", + "static/js/26625.d5154eea.chunk.js": "./static/js/26625.d5154eea.chunk.js", + "static/js/85027.462a7fdc.chunk.js": "./static/js/85027.462a7fdc.chunk.js", + "static/js/90290.a7f1549c.chunk.js": "./static/js/90290.a7f1549c.chunk.js", + "static/js/65401.e76db1a2.chunk.js": "./static/js/65401.e76db1a2.chunk.js", + "static/js/36786.ca3962c1.chunk.js": "./static/js/36786.ca3962c1.chunk.js", + "static/js/51496.423aebfa.chunk.js": "./static/js/51496.423aebfa.chunk.js", + "static/js/51627.9762f671.chunk.js": "./static/js/51627.9762f671.chunk.js", + "static/js/63769.731ffb68.chunk.js": "./static/js/63769.731ffb68.chunk.js", + "static/js/81747.65a6a7f3.chunk.js": "./static/js/81747.65a6a7f3.chunk.js", + "static/js/40730.5e1bc3d1.chunk.js": "./static/js/40730.5e1bc3d1.chunk.js", + "static/js/79433.b3b128c9.chunk.js": "./static/js/79433.b3b128c9.chunk.js", + "static/js/30523.726a6c98.chunk.js": "./static/js/30523.726a6c98.chunk.js", + "static/js/88119.041d294e.chunk.js": "./static/js/88119.041d294e.chunk.js", + "static/js/74324.03761f87.chunk.js": "./static/js/74324.03761f87.chunk.js", "static/js/4730.78e66e9a.chunk.js": "./static/js/4730.78e66e9a.chunk.js", - "static/js/9725.a94823a0.chunk.js": "./static/js/9725.a94823a0.chunk.js", - "static/js/3672.12436dd6.chunk.js": "./static/js/3672.12436dd6.chunk.js", - "static/js/5759.52418ea5.chunk.js": "./static/js/5759.52418ea5.chunk.js", - "static/js/60.85d957cd.chunk.js": "./static/js/60.85d957cd.chunk.js", - "static/js/628.70d08de9.chunk.js": "./static/js/628.70d08de9.chunk.js", - "static/js/6114.c74edf11.chunk.js": "./static/js/6114.c74edf11.chunk.js", - "static/js/7962.43ffbad7.chunk.js": "./static/js/7962.43ffbad7.chunk.js", - "static/js/6833.584b7806.chunk.js": "./static/js/6833.584b7806.chunk.js", - "static/js/7605.cdc8f605.chunk.js": "./static/js/7605.cdc8f605.chunk.js", - "static/js/5924.53ba4f49.chunk.js": "./static/js/5924.53ba4f49.chunk.js", - "static/js/8517.cf981031.chunk.js": "./static/js/8517.cf981031.chunk.js", - "static/js/9882.b983931a.chunk.js": "./static/js/9882.b983931a.chunk.js", - "static/js/2466.b8b05e16.chunk.js": "./static/js/2466.b8b05e16.chunk.js", + "static/js/49725.3529a00c.chunk.js": "./static/js/49725.3529a00c.chunk.js", + "static/js/53672.a70ebf8e.chunk.js": "./static/js/53672.a70ebf8e.chunk.js", + "static/js/45759.cb764ce8.chunk.js": "./static/js/45759.cb764ce8.chunk.js", + "static/js/40060.5f9cbddd.chunk.js": "./static/js/40060.5f9cbddd.chunk.js", + "static/js/90628.e6a33d41.chunk.js": "./static/js/90628.e6a33d41.chunk.js", + "static/js/86114.0fc0acbb.chunk.js": "./static/js/86114.0fc0acbb.chunk.js", + "static/js/87962.2094d7c1.chunk.js": "./static/js/87962.2094d7c1.chunk.js", + "static/js/26833.d6c6c578.chunk.js": "./static/js/26833.d6c6c578.chunk.js", + "static/js/67605.6cd42d90.chunk.js": "./static/js/67605.6cd42d90.chunk.js", + "static/js/95924.d3281fc7.chunk.js": "./static/js/95924.d3281fc7.chunk.js", + "static/js/78517.bd6413c4.chunk.js": "./static/js/78517.bd6413c4.chunk.js", + "static/js/59882.b6def2ca.chunk.js": "./static/js/59882.b6def2ca.chunk.js", + "static/js/92466.f38204fe.chunk.js": "./static/js/92466.f38204fe.chunk.js", "static/js/7548.fd5d2b6c.chunk.js": "./static/js/7548.fd5d2b6c.chunk.js", - "static/js/3033.06c03554.chunk.js": "./static/js/3033.06c03554.chunk.js", - "static/js/8706.755fcb81.chunk.js": "./static/js/8706.755fcb81.chunk.js", + "static/js/93033.55bd21d1.chunk.js": "./static/js/93033.55bd21d1.chunk.js", + "static/js/88706.b895fbe4.chunk.js": "./static/js/88706.b895fbe4.chunk.js", "static/js/9606.fc9247cb.chunk.js": "./static/js/9606.fc9247cb.chunk.js", - "static/js/9707.72e68790.chunk.js": "./static/js/9707.72e68790.chunk.js", - "static/js/7697.44af783d.chunk.js": "./static/js/7697.44af783d.chunk.js", - "static/js/7970.80caf61d.chunk.js": "./static/js/7970.80caf61d.chunk.js", - "static/js/1917.e3ac9c6d.chunk.js": "./static/js/1917.e3ac9c6d.chunk.js", - "static/js/6324.de01edfb.chunk.js": "./static/js/6324.de01edfb.chunk.js", - "static/js/4401.f46d19f6.chunk.js": "./static/js/4401.f46d19f6.chunk.js", + "static/js/79707.def8f77e.chunk.js": "./static/js/79707.def8f77e.chunk.js", + "static/js/77697.23abc7db.chunk.js": "./static/js/77697.23abc7db.chunk.js", + "static/js/57970.67e88902.chunk.js": "./static/js/57970.67e88902.chunk.js", + "static/js/61917.92d39b4c.chunk.js": "./static/js/61917.92d39b4c.chunk.js", + "static/js/26324.10b41523.chunk.js": "./static/js/26324.10b41523.chunk.js", + "static/js/84401.8a09e9ae.chunk.js": "./static/js/84401.8a09e9ae.chunk.js", "static/js/3902.973b73c6.chunk.js": "./static/js/3902.973b73c6.chunk.js", - "static/js/7380.38a8eedf.chunk.js": "./static/js/7380.38a8eedf.chunk.js", - "static/js/3008.c8aa656b.chunk.js": "./static/js/3008.c8aa656b.chunk.js", - "static/js/2053.b4294b46.chunk.js": "./static/js/2053.b4294b46.chunk.js", - "static/js/1865.72c933c8.chunk.js": "./static/js/1865.72c933c8.chunk.js", - "static/js/47.54dd12ac.chunk.js": "./static/js/47.54dd12ac.chunk.js", - "static/js/6541.a39e9d6a.chunk.js": "./static/js/6541.a39e9d6a.chunk.js", - "static/js/1956.c11f9b8a.chunk.js": "./static/js/1956.c11f9b8a.chunk.js", - "static/js/7579.079e5569.chunk.js": "./static/js/7579.079e5569.chunk.js", - "static/js/6405.b0dd94a9.chunk.js": "./static/js/6405.b0dd94a9.chunk.js", - "static/js/9025.6ae28867.chunk.js": "./static/js/9025.6ae28867.chunk.js", - "static/js/3679.e293221d.chunk.js": "./static/js/3679.e293221d.chunk.js", - "static/js/4652.9a5d2242.chunk.js": "./static/js/4652.9a5d2242.chunk.js", - "static/js/5853.0c5ec1d1.chunk.js": "./static/js/5853.0c5ec1d1.chunk.js", - "static/js/5819.0ae2eb3d.chunk.js": "./static/js/5819.0ae2eb3d.chunk.js", - "static/js/1975.e3066826.chunk.js": "./static/js/1975.e3066826.chunk.js", - "static/js/9067.254af4a9.chunk.js": "./static/js/9067.254af4a9.chunk.js", - "static/js/5453.921caa82.chunk.js": "./static/js/5453.921caa82.chunk.js", - "static/js/6664.b4dbf019.chunk.js": "./static/js/6664.b4dbf019.chunk.js", + "static/js/37380.7c50d99e.chunk.js": "./static/js/37380.7c50d99e.chunk.js", + "static/js/63008.97387142.chunk.js": "./static/js/63008.97387142.chunk.js", + "static/js/82053.2a21538f.chunk.js": "./static/js/82053.2a21538f.chunk.js", + "static/js/61865.21725853.chunk.js": "./static/js/61865.21725853.chunk.js", + "static/js/40047.1e272b92.chunk.js": "./static/js/40047.1e272b92.chunk.js", + "static/js/46541.3c0665eb.chunk.js": "./static/js/46541.3c0665eb.chunk.js", + "static/js/21956.3e818e6c.chunk.js": "./static/js/21956.3e818e6c.chunk.js", + "static/js/37579.aa311c74.chunk.js": "./static/js/37579.aa311c74.chunk.js", + "static/js/56405.5fa107d3.chunk.js": "./static/js/56405.5fa107d3.chunk.js", + "static/js/89025.e20277a3.chunk.js": "./static/js/89025.e20277a3.chunk.js", + "static/js/63679.05a63e19.chunk.js": "./static/js/63679.05a63e19.chunk.js", + "static/js/84652.5dfa8103.chunk.js": "./static/js/84652.5dfa8103.chunk.js", + "static/js/55853.2ca378d0.chunk.js": "./static/js/55853.2ca378d0.chunk.js", + "static/js/95819.5ebcb088.chunk.js": "./static/js/95819.5ebcb088.chunk.js", + "static/js/31975.54132ada.chunk.js": "./static/js/31975.54132ada.chunk.js", + "static/js/49067.2e09b756.chunk.js": "./static/js/49067.2e09b756.chunk.js", + "static/js/25453.c8bfcbe1.chunk.js": "./static/js/25453.c8bfcbe1.chunk.js", + "static/js/16664.195e9acf.chunk.js": "./static/js/16664.195e9acf.chunk.js", "static/js/5634.0a0bddae.chunk.js": "./static/js/5634.0a0bddae.chunk.js", - "static/js/6358.2997762b.chunk.js": "./static/js/6358.2997762b.chunk.js", - "static/js/7240.a674bc94.chunk.js": "./static/js/7240.a674bc94.chunk.js", - "static/js/949.12b4714d.chunk.js": "./static/js/949.12b4714d.chunk.js", - "static/js/4096.33f702a0.chunk.js": "./static/js/4096.33f702a0.chunk.js", - "static/js/811.a0c1e1ce.chunk.js": "./static/js/811.a0c1e1ce.chunk.js", - "static/js/7357.a518ad9e.chunk.js": "./static/js/7357.a518ad9e.chunk.js", - "static/js/8008.da36f479.chunk.js": "./static/js/8008.da36f479.chunk.js", - "static/js/5161.20e37d15.chunk.js": "./static/js/5161.20e37d15.chunk.js", - "static/js/3879.17f211ad.chunk.js": "./static/js/3879.17f211ad.chunk.js", + "static/js/26358.23555994.chunk.js": "./static/js/26358.23555994.chunk.js", + "static/js/17240.74653f76.chunk.js": "./static/js/17240.74653f76.chunk.js", + "static/js/60949.c74a3708.chunk.js": "./static/js/60949.c74a3708.chunk.js", + "static/js/44096.4faf307e.chunk.js": "./static/js/44096.4faf307e.chunk.js", + "static/js/30811.b4fed9a8.chunk.js": "./static/js/30811.b4fed9a8.chunk.js", + "static/js/67357.dd9aa014.chunk.js": "./static/js/67357.dd9aa014.chunk.js", + "static/js/48008.f90295f8.chunk.js": "./static/js/48008.f90295f8.chunk.js", + "static/js/35161.d7f85805.chunk.js": "./static/js/35161.d7f85805.chunk.js", + "static/js/73879.9dc10432.chunk.js": "./static/js/73879.9dc10432.chunk.js", "static/js/4441.2b4963cf.chunk.js": "./static/js/4441.2b4963cf.chunk.js", - "static/js/3321.3370cf83.chunk.js": "./static/js/3321.3370cf83.chunk.js", - "static/js/3756.9a440b73.chunk.js": "./static/js/3756.9a440b73.chunk.js", + "static/js/23321.4a32d0c2.chunk.js": "./static/js/23321.4a32d0c2.chunk.js", + "static/js/93756.c3c309ab.chunk.js": "./static/js/93756.c3c309ab.chunk.js", "static/js/3121.74e9e7dc.chunk.js": "./static/js/3121.74e9e7dc.chunk.js", - "static/js/9922.367b63b0.chunk.js": "./static/js/9922.367b63b0.chunk.js", - "static/js/4169.f2243012.chunk.js": "./static/js/4169.f2243012.chunk.js", - "static/js/8053.71be175a.chunk.js": "./static/js/8053.71be175a.chunk.js", - "static/js/310.b23bf6b2.chunk.js": "./static/js/310.b23bf6b2.chunk.js", + "static/js/89922.e5924c1e.chunk.js": "./static/js/89922.e5924c1e.chunk.js", + "static/js/34169.9a22281f.chunk.js": "./static/js/34169.9a22281f.chunk.js", + "static/js/78053.1b2b1602.chunk.js": "./static/js/78053.1b2b1602.chunk.js", + "static/js/10310.a0a2e8d7.chunk.js": "./static/js/10310.a0a2e8d7.chunk.js", "static/js/4180.1de6c8ba.chunk.js": "./static/js/4180.1de6c8ba.chunk.js", - "static/js/2286.e992ffd4.chunk.js": "./static/js/2286.e992ffd4.chunk.js", - "static/js/1486.8a488ae4.chunk.js": "./static/js/1486.8a488ae4.chunk.js", - "static/js/1053.f976b474.chunk.js": "./static/js/1053.f976b474.chunk.js", - "static/js/921.0402e36c.chunk.js": "./static/js/921.0402e36c.chunk.js", - "static/js/5047.ebc9f1b2.chunk.js": "./static/js/5047.ebc9f1b2.chunk.js", - "static/js/9801.b9143d43.chunk.js": "./static/js/9801.b9143d43.chunk.js", - "static/js/3521.775b3981.chunk.js": "./static/js/3521.775b3981.chunk.js", - "static/js/8103.00c9e9c1.chunk.js": "./static/js/8103.00c9e9c1.chunk.js", - "static/js/8840.5eb376ca.chunk.js": "./static/js/8840.5eb376ca.chunk.js", + "static/js/32286.23bbbad8.chunk.js": "./static/js/32286.23bbbad8.chunk.js", + "static/js/71486.3e01f058.chunk.js": "./static/js/71486.3e01f058.chunk.js", + "static/js/21053.3d2e8f28.chunk.js": "./static/js/21053.3d2e8f28.chunk.js", + "static/js/80921.252f76ca.chunk.js": "./static/js/80921.252f76ca.chunk.js", + "static/js/85047.23b0ab8e.chunk.js": "./static/js/85047.23b0ab8e.chunk.js", + "static/js/52182.735ff091.chunk.js": "./static/js/52182.735ff091.chunk.js", + "static/js/33521.11130f2d.chunk.js": "./static/js/33521.11130f2d.chunk.js", + "static/js/38103.a27aa378.chunk.js": "./static/js/38103.a27aa378.chunk.js", + "static/js/58840.529e7b9b.chunk.js": "./static/js/58840.529e7b9b.chunk.js", "static/js/5647.0920ef73.chunk.js": "./static/js/5647.0920ef73.chunk.js", "static/js/8704.87492da1.chunk.js": "./static/js/8704.87492da1.chunk.js", - "static/js/9220.a9f48eb9.chunk.js": "./static/js/9220.a9f48eb9.chunk.js", - "static/js/4891.c441be74.chunk.js": "./static/js/4891.c441be74.chunk.js", - "static/js/9466.0afe6e6e.chunk.js": "./static/js/9466.0afe6e6e.chunk.js", - "static/js/3510.0740f36d.chunk.js": "./static/js/3510.0740f36d.chunk.js", - "static/js/2776.0f5e87f5.chunk.js": "./static/js/2776.0f5e87f5.chunk.js", - "static/js/1756.b612458a.chunk.js": "./static/js/1756.b612458a.chunk.js", - "static/js/5953.cb95c45e.chunk.js": "./static/js/5953.cb95c45e.chunk.js", - "static/js/5816.144b5755.chunk.js": "./static/js/5816.144b5755.chunk.js", - "static/js/2166.e382ccb1.chunk.js": "./static/js/2166.e382ccb1.chunk.js", - "static/js/4601.39745c4e.chunk.js": "./static/js/4601.39745c4e.chunk.js", - "static/js/2775.9105769d.chunk.js": "./static/js/2775.9105769d.chunk.js", - "static/js/5579.a2c9515c.chunk.js": "./static/js/5579.a2c9515c.chunk.js", - "static/js/108.d2d9c180.chunk.js": "./static/js/108.d2d9c180.chunk.js", - "static/js/9908.4bd3acb1.chunk.js": "./static/js/9908.4bd3acb1.chunk.js", - "static/js/4847.63c73f0a.chunk.js": "./static/js/4847.63c73f0a.chunk.js", + "static/js/69220.b99a5ded.chunk.js": "./static/js/69220.b99a5ded.chunk.js", + "static/js/74891.fa3d6f11.chunk.js": "./static/js/74891.fa3d6f11.chunk.js", + "static/js/99466.a47d41f5.chunk.js": "./static/js/99466.a47d41f5.chunk.js", + "static/js/83510.ed31c9f8.chunk.js": "./static/js/83510.ed31c9f8.chunk.js", + "static/js/12776.d400f028.chunk.js": "./static/js/12776.d400f028.chunk.js", + "static/js/71756.324c49c8.chunk.js": "./static/js/71756.324c49c8.chunk.js", + "static/js/85953.ea1ee23e.chunk.js": "./static/js/85953.ea1ee23e.chunk.js", + "static/js/55816.ceb201d4.chunk.js": "./static/js/55816.ceb201d4.chunk.js", + "static/js/32166.8e70395f.chunk.js": "./static/js/32166.8e70395f.chunk.js", + "static/js/44601.53b5fa99.chunk.js": "./static/js/44601.53b5fa99.chunk.js", + "static/js/72775.0e6824d4.chunk.js": "./static/js/72775.0e6824d4.chunk.js", + "static/js/65579.1ec2325b.chunk.js": "./static/js/65579.1ec2325b.chunk.js", + "static/js/80108.0334ef65.chunk.js": "./static/js/80108.0334ef65.chunk.js", + "static/js/59908.4f5fa1f6.chunk.js": "./static/js/59908.4f5fa1f6.chunk.js", + "static/js/34847.ec23543c.chunk.js": "./static/js/34847.ec23543c.chunk.js", "static/js/6261.78de43a8.chunk.js": "./static/js/6261.78de43a8.chunk.js", "static/js/9518.3fffdd45.chunk.js": "./static/js/9518.3fffdd45.chunk.js", - "static/js/2161.865bcd48.chunk.js": "./static/js/2161.865bcd48.chunk.js", - "static/js/710.87e9f2e0.chunk.js": "./static/js/710.87e9f2e0.chunk.js", - "static/js/2612.55127fa0.chunk.js": "./static/js/2612.55127fa0.chunk.js", - "static/js/2984.df749ebe.chunk.js": "./static/js/2984.df749ebe.chunk.js", - "static/js/3333.eb9ec516.chunk.js": "./static/js/3333.eb9ec516.chunk.js", - "static/js/1657.d6f0b340.chunk.js": "./static/js/1657.d6f0b340.chunk.js", - "static/js/3653.06b5272c.chunk.js": "./static/js/3653.06b5272c.chunk.js", - "static/js/221.b740df48.chunk.js": "./static/js/221.b740df48.chunk.js", - "static/js/6879.2965a366.chunk.js": "./static/js/6879.2965a366.chunk.js", - "static/css/5652.261c3a7a.chunk.css": "./static/css/5652.261c3a7a.chunk.css", - "static/js/5652.40b9a7d3.chunk.js": "./static/js/5652.40b9a7d3.chunk.js", - "static/css/431.3826ea2f.chunk.css": "./static/css/431.3826ea2f.chunk.css", - "static/js/431.f23349ec.chunk.js": "./static/js/431.f23349ec.chunk.js", - "static/css/8393.09a78946.chunk.css": "./static/css/8393.09a78946.chunk.css", - "static/js/8393.2e643149.chunk.js": "./static/js/8393.2e643149.chunk.js", - "static/css/684.a4d29f42.chunk.css": "./static/css/684.a4d29f42.chunk.css", - "static/js/684.9346e985.chunk.js": "./static/js/684.9346e985.chunk.js", - "static/css/6030.05f92b81.chunk.css": "./static/css/6030.05f92b81.chunk.css", - "static/js/6030.b30fca36.chunk.js": "./static/js/6030.b30fca36.chunk.js", - "static/css/3812.440ff245.chunk.css": "./static/css/3812.440ff245.chunk.css", - "static/js/3812.368eb751.chunk.js": "./static/js/3812.368eb751.chunk.js", - "static/css/9393.c6fb8cd9.chunk.css": "./static/css/9393.c6fb8cd9.chunk.css", - "static/js/9393.b0a1bf0a.chunk.js": "./static/js/9393.b0a1bf0a.chunk.js", - "static/css/3779.66c0ef83.chunk.css": "./static/css/3779.66c0ef83.chunk.css", - "static/js/3779.1d869a05.chunk.js": "./static/js/3779.1d869a05.chunk.js", - "static/js/7329.514640a4.chunk.js": "./static/js/7329.514640a4.chunk.js", - "static/js/3238.a9505f7f.chunk.js": "./static/js/3238.a9505f7f.chunk.js", + "static/js/34542.6199c708.chunk.js": "./static/js/34542.6199c708.chunk.js", + "static/js/40710.a00731c6.chunk.js": "./static/js/40710.a00731c6.chunk.js", + "static/js/42612.7c3ffc1d.chunk.js": "./static/js/42612.7c3ffc1d.chunk.js", + "static/js/92984.bc3d29a6.chunk.js": "./static/js/92984.bc3d29a6.chunk.js", + "static/js/83333.65b07752.chunk.js": "./static/js/83333.65b07752.chunk.js", + "static/js/21657.6821035c.chunk.js": "./static/js/21657.6821035c.chunk.js", + "static/js/63653.c2f7dcde.chunk.js": "./static/js/63653.c2f7dcde.chunk.js", + "static/js/60221.8d560e16.chunk.js": "./static/js/60221.8d560e16.chunk.js", + "static/js/76879.ff0dd32c.chunk.js": "./static/js/76879.ff0dd32c.chunk.js", + "static/css/47512.67d2c551.chunk.css": "./static/css/47512.67d2c551.chunk.css", + "static/js/47512.39fd7220.chunk.js": "./static/js/47512.39fd7220.chunk.js", + "static/css/64464.f737743e.chunk.css": "./static/css/64464.f737743e.chunk.css", + "static/js/64464.e1dcaef9.chunk.js": "./static/js/64464.e1dcaef9.chunk.js", + "static/css/96079.c2e5026a.chunk.css": "./static/css/96079.c2e5026a.chunk.css", + "static/js/96079.c09d99cc.chunk.js": "./static/js/96079.c09d99cc.chunk.js", + "static/css/38527.13440c26.chunk.css": "./static/css/38527.13440c26.chunk.css", + "static/js/38527.b39cc908.chunk.js": "./static/js/38527.b39cc908.chunk.js", + "static/css/85917.9f2a4a06.chunk.css": "./static/css/85917.9f2a4a06.chunk.css", + "static/js/85917.743a4384.chunk.js": "./static/js/85917.743a4384.chunk.js", + "static/css/75510.b1faff6b.chunk.css": "./static/css/75510.b1faff6b.chunk.css", + "static/js/75510.026d82a2.chunk.js": "./static/js/75510.026d82a2.chunk.js", + "static/css/49393.82d9be05.chunk.css": "./static/css/49393.82d9be05.chunk.css", + "static/js/49393.48f114fd.chunk.js": "./static/js/49393.48f114fd.chunk.js", + "static/css/23779.b38c45c0.chunk.css": "./static/css/23779.b38c45c0.chunk.css", + "static/js/23779.2a240d6f.chunk.js": "./static/js/23779.2a240d6f.chunk.js", + "static/js/67329.08db90c1.chunk.js": "./static/js/67329.08db90c1.chunk.js", + "static/js/73238.abca2b52.chunk.js": "./static/js/73238.abca2b52.chunk.js", "static/js/3872.a25d87b5.chunk.js": "./static/js/3872.a25d87b5.chunk.js", - "static/js/1299.aaedb42e.chunk.js": "./static/js/1299.aaedb42e.chunk.js", - "static/js/5875.f8a190bf.chunk.js": "./static/js/5875.f8a190bf.chunk.js", - "static/js/6990.70257b9b.chunk.js": "./static/js/6990.70257b9b.chunk.js", - "static/css/5438.615bd68a.chunk.css": "./static/css/5438.615bd68a.chunk.css", - "static/js/5438.91fe1c76.chunk.js": "./static/js/5438.91fe1c76.chunk.js", - "static/css/99.7cffb936.chunk.css": "./static/css/99.7cffb936.chunk.css", - "static/js/99.73d10ff1.chunk.js": "./static/js/99.73d10ff1.chunk.js", - "static/js/2308.9e3a980c.chunk.js": "./static/js/2308.9e3a980c.chunk.js", - "static/js/245.041a06df.chunk.js": "./static/js/245.041a06df.chunk.js", - "static/css/8593.95df9723.chunk.css": "./static/css/8593.95df9723.chunk.css", - "static/js/7614.00d00ded.chunk.js": "./static/js/7614.00d00ded.chunk.js", - "static/js/8868.a9031705.chunk.js": "./static/js/8868.a9031705.chunk.js", - "static/js/5636.da9c4c85.chunk.js": "./static/js/5636.da9c4c85.chunk.js", - "static/js/9872.65a6fae7.chunk.js": "./static/js/9872.65a6fae7.chunk.js", - "static/js/3534.3f09429a.chunk.js": "./static/js/3534.3f09429a.chunk.js", - "static/js/654.863ea445.chunk.js": "./static/js/654.863ea445.chunk.js", - "static/js/8014.eb9f97f2.chunk.js": "./static/js/8014.eb9f97f2.chunk.js", - "static/js/6374.be0c5879.chunk.js": "./static/js/6374.be0c5879.chunk.js", - "static/js/7206.6b7278f5.chunk.js": "./static/js/7206.6b7278f5.chunk.js", - "static/js/5888.4fa64369.chunk.js": "./static/js/5888.4fa64369.chunk.js", - "static/js/2042.81e83eeb.chunk.js": "./static/js/2042.81e83eeb.chunk.js", - "static/js/2518.ac97d255.chunk.js": "./static/js/2518.ac97d255.chunk.js", - "static/js/5454.e8f64f1a.chunk.js": "./static/js/5454.e8f64f1a.chunk.js", - "static/js/2742.d5c8fae8.chunk.js": "./static/js/2742.d5c8fae8.chunk.js", - "static/js/225.cf362439.chunk.js": "./static/js/225.cf362439.chunk.js", - "static/js/4534.b98f1389.chunk.js": "./static/js/4534.b98f1389.chunk.js", - "static/js/30.69969059.chunk.js": "./static/js/30.69969059.chunk.js", - "static/js/6012.aac08e72.chunk.js": "./static/js/6012.aac08e72.chunk.js", + "static/js/81299.b1fcb7d9.chunk.js": "./static/js/81299.b1fcb7d9.chunk.js", + "static/js/98256.8a661541.chunk.js": "./static/js/98256.8a661541.chunk.js", + "static/js/56990.be6d200f.chunk.js": "./static/js/56990.be6d200f.chunk.js", + "static/css/94695.6eb9306c.chunk.css": "./static/css/94695.6eb9306c.chunk.css", + "static/js/94695.41c32507.chunk.js": "./static/js/94695.41c32507.chunk.js", + "static/css/90099.7cffb936.chunk.css": "./static/css/90099.7cffb936.chunk.css", + "static/js/90099.38466d3d.chunk.js": "./static/js/90099.38466d3d.chunk.js", + "static/js/62308.fe05af2f.chunk.js": "./static/js/62308.fe05af2f.chunk.js", + "static/js/50245.1623217b.chunk.js": "./static/js/50245.1623217b.chunk.js", + "static/js/84745.60da2449.chunk.js": "./static/js/84745.60da2449.chunk.js", + "static/js/67191.46b77437.chunk.js": "./static/js/67191.46b77437.chunk.js", + "static/js/36754.f9faf9f5.chunk.js": "./static/js/36754.f9faf9f5.chunk.js", + "static/js/69712.983d0bad.chunk.js": "./static/js/69712.983d0bad.chunk.js", + "static/js/87357.d4031306.chunk.js": "./static/js/87357.d4031306.chunk.js", + "static/js/61250.2b3f06a3.chunk.js": "./static/js/61250.2b3f06a3.chunk.js", + "static/js/68220.ece8573d.chunk.js": "./static/js/68220.ece8573d.chunk.js", + "static/js/73064.b0c26084.chunk.js": "./static/js/73064.b0c26084.chunk.js", + "static/js/72401.bef7ab50.chunk.js": "./static/js/72401.bef7ab50.chunk.js", + "static/js/94129.b1cdd95d.chunk.js": "./static/js/94129.b1cdd95d.chunk.js", + "static/js/98958.21184356.chunk.js": "./static/js/98958.21184356.chunk.js", + "static/js/68990.59087cc5.chunk.js": "./static/js/68990.59087cc5.chunk.js", + "static/js/84027.c693664b.chunk.js": "./static/js/84027.c693664b.chunk.js", + "static/js/173.7f4af5fa.chunk.js": "./static/js/173.7f4af5fa.chunk.js", + "static/js/82714.46d13b51.chunk.js": "./static/js/82714.46d13b51.chunk.js", + "static/js/68818.0e24392e.chunk.js": "./static/js/68818.0e24392e.chunk.js", + "static/js/1073.da2a8c8a.chunk.js": "./static/js/1073.da2a8c8a.chunk.js", + "static/js/6197.acb1fd7c.chunk.js": "./static/js/6197.acb1fd7c.chunk.js", + "static/js/55534.43828e20.chunk.js": "./static/js/55534.43828e20.chunk.js", + "static/js/51400.767e472a.chunk.js": "./static/js/51400.767e472a.chunk.js", + "static/js/25007.2ae44a13.chunk.js": "./static/js/25007.2ae44a13.chunk.js", + "static/js/80397.e9187aee.chunk.js": "./static/js/80397.e9187aee.chunk.js", + "static/js/44391.7bf4eade.chunk.js": "./static/js/44391.7bf4eade.chunk.js", + "static/js/80719.840e5448.chunk.js": "./static/js/80719.840e5448.chunk.js", + "static/js/51255.beb93f73.chunk.js": "./static/js/51255.beb93f73.chunk.js", + "static/js/85393.341703ec.chunk.js": "./static/js/85393.341703ec.chunk.js", + "static/js/78112.671df87e.chunk.js": "./static/js/78112.671df87e.chunk.js", + "static/js/86814.c1a521f5.chunk.js": "./static/js/86814.c1a521f5.chunk.js", + "static/js/66824.abfa3f22.chunk.js": "./static/js/66824.abfa3f22.chunk.js", + "static/js/11338.6bb2b16a.chunk.js": "./static/js/11338.6bb2b16a.chunk.js", + "static/js/80555.c5181f9f.chunk.js": "./static/js/80555.c5181f9f.chunk.js", + "static/js/3534.d7d57e03.chunk.js": "./static/js/3534.d7d57e03.chunk.js", + "static/js/9426.8c0cade1.chunk.js": "./static/js/9426.8c0cade1.chunk.js", + "static/js/91880.1a716d56.chunk.js": "./static/js/91880.1a716d56.chunk.js", + "static/js/40388.be25f07a.chunk.js": "./static/js/40388.be25f07a.chunk.js", + "static/js/4664.972299e2.chunk.js": "./static/js/4664.972299e2.chunk.js", + "static/js/79247.1bc3dc95.chunk.js": "./static/js/79247.1bc3dc95.chunk.js", + "static/js/75523.d65a825f.chunk.js": "./static/js/75523.d65a825f.chunk.js", + "static/js/99753.25160545.chunk.js": "./static/js/99753.25160545.chunk.js", + "static/js/31423.b7296b03.chunk.js": "./static/js/31423.b7296b03.chunk.js", + "static/js/21989.76579159.chunk.js": "./static/js/21989.76579159.chunk.js", + "static/js/9930.e56b072a.chunk.js": "./static/js/9930.e56b072a.chunk.js", + "static/js/30226.e28d8c14.chunk.js": "./static/js/30226.e28d8c14.chunk.js", + "static/js/85622.18615d00.chunk.js": "./static/js/85622.18615d00.chunk.js", + "static/js/30229.9a64e8c6.chunk.js": "./static/js/30229.9a64e8c6.chunk.js", + "static/js/25604.54cb85d0.chunk.js": "./static/js/25604.54cb85d0.chunk.js", + "static/js/44846.352e01be.chunk.js": "./static/js/44846.352e01be.chunk.js", + "static/js/81571.71d0a13e.chunk.js": "./static/js/81571.71d0a13e.chunk.js", + "static/js/61747.0c4ed2d6.chunk.js": "./static/js/61747.0c4ed2d6.chunk.js", + "static/js/46306.d3a5a75d.chunk.js": "./static/js/46306.d3a5a75d.chunk.js", + "static/js/17830.763df207.chunk.js": "./static/js/17830.763df207.chunk.js", + "static/js/23039.f34c5f78.chunk.js": "./static/js/23039.f34c5f78.chunk.js", + "static/js/16242.ba0392be.chunk.js": "./static/js/16242.ba0392be.chunk.js", + "static/js/93696.ebf5e5d2.chunk.js": "./static/js/93696.ebf5e5d2.chunk.js", + "static/js/7773.b2d5a51a.chunk.js": "./static/js/7773.b2d5a51a.chunk.js", + "static/js/74394.3bb376a8.chunk.js": "./static/js/74394.3bb376a8.chunk.js", + "static/js/45517.dd0696d8.chunk.js": "./static/js/45517.dd0696d8.chunk.js", + "static/js/79204.b8bc5268.chunk.js": "./static/js/79204.b8bc5268.chunk.js", + "static/js/62595.0c9bd5a0.chunk.js": "./static/js/62595.0c9bd5a0.chunk.js", + "static/js/31584.6ddd5f13.chunk.js": "./static/js/31584.6ddd5f13.chunk.js", + "static/js/5254.ef9c1c59.chunk.js": "./static/js/5254.ef9c1c59.chunk.js", + "static/js/73026.ba38cd34.chunk.js": "./static/js/73026.ba38cd34.chunk.js", + "static/js/14382.a8e3e5fd.chunk.js": "./static/js/14382.a8e3e5fd.chunk.js", + "static/js/72188.5b48f0f8.chunk.js": "./static/js/72188.5b48f0f8.chunk.js", + "static/js/6785.f25ed122.chunk.js": "./static/js/6785.f25ed122.chunk.js", + "static/js/59786.9a9eda90.chunk.js": "./static/js/59786.9a9eda90.chunk.js", + "static/js/55990.c86b7669.chunk.js": "./static/js/55990.c86b7669.chunk.js", + "static/js/71266.6ba99b0a.chunk.js": "./static/js/71266.6ba99b0a.chunk.js", + "static/js/93890.f4cf2ce4.chunk.js": "./static/js/93890.f4cf2ce4.chunk.js", + "static/js/59605.a2f7e321.chunk.js": "./static/js/59605.a2f7e321.chunk.js", + "static/js/87138.cf3f482b.chunk.js": "./static/js/87138.cf3f482b.chunk.js", + "static/js/88269.9b813297.chunk.js": "./static/js/88269.9b813297.chunk.js", + "static/js/69854.1159f91a.chunk.js": "./static/js/69854.1159f91a.chunk.js", + "static/js/13470.82cfe328.chunk.js": "./static/js/13470.82cfe328.chunk.js", + "static/js/42912.7ab36c78.chunk.js": "./static/js/42912.7ab36c78.chunk.js", + "static/js/54861.f927c937.chunk.js": "./static/js/54861.f927c937.chunk.js", + "static/js/16038.8c61a9b6.chunk.js": "./static/js/16038.8c61a9b6.chunk.js", + "static/js/58666.91b79adf.chunk.js": "./static/js/58666.91b79adf.chunk.js", + "static/js/66809.a4c3fdb1.chunk.js": "./static/js/66809.a4c3fdb1.chunk.js", + "static/js/80017.210d20b7.chunk.js": "./static/js/80017.210d20b7.chunk.js", + "static/js/2251.651c81f8.chunk.js": "./static/js/2251.651c81f8.chunk.js", + "static/js/85623.d896063a.chunk.js": "./static/js/85623.d896063a.chunk.js", + "static/js/93691.0298f4d1.chunk.js": "./static/js/93691.0298f4d1.chunk.js", + "static/js/35569.8ceadf10.chunk.js": "./static/js/35569.8ceadf10.chunk.js", + "static/js/74729.fa6e7280.chunk.js": "./static/js/74729.fa6e7280.chunk.js", + "static/js/91545.080bf65f.chunk.js": "./static/js/91545.080bf65f.chunk.js", + "static/js/69500.7fbd370c.chunk.js": "./static/js/69500.7fbd370c.chunk.js", + "static/js/15931.ad3d689f.chunk.js": "./static/js/15931.ad3d689f.chunk.js", + "static/js/3061.c2a39676.chunk.js": "./static/js/3061.c2a39676.chunk.js", + "static/js/16097.4303c083.chunk.js": "./static/js/16097.4303c083.chunk.js", + "static/js/72737.e79b7900.chunk.js": "./static/js/72737.e79b7900.chunk.js", + "static/js/2656.6cdcd805.chunk.js": "./static/js/2656.6cdcd805.chunk.js", + "static/js/1431.2bb62d12.chunk.js": "./static/js/1431.2bb62d12.chunk.js", + "static/js/88432.95ced9fa.chunk.js": "./static/js/88432.95ced9fa.chunk.js", + "static/js/71588.5c21e822.chunk.js": "./static/js/71588.5c21e822.chunk.js", + "static/js/92551.088c5eb2.chunk.js": "./static/js/92551.088c5eb2.chunk.js", + "static/js/4243.697ce022.chunk.js": "./static/js/4243.697ce022.chunk.js", + "static/js/22609.bdebad49.chunk.js": "./static/js/22609.bdebad49.chunk.js", + "static/js/37677.c7cb500e.chunk.js": "./static/js/37677.c7cb500e.chunk.js", + "static/js/29193.43e37031.chunk.js": "./static/js/29193.43e37031.chunk.js", + "static/js/44866.fde9a535.chunk.js": "./static/js/44866.fde9a535.chunk.js", + "static/js/24458.50eb1325.chunk.js": "./static/js/24458.50eb1325.chunk.js", + "static/js/58457.708b5a15.chunk.js": "./static/js/58457.708b5a15.chunk.js", + "static/js/3738.bec1d482.chunk.js": "./static/js/3738.bec1d482.chunk.js", + "static/js/82505.405051e6.chunk.js": "./static/js/82505.405051e6.chunk.js", + "static/js/20053.925f8331.chunk.js": "./static/js/20053.925f8331.chunk.js", + "static/js/32670.1e209a72.chunk.js": "./static/js/32670.1e209a72.chunk.js", + "static/js/92868.fbd23d48.chunk.js": "./static/js/92868.fbd23d48.chunk.js", + "static/js/88810.cb646554.chunk.js": "./static/js/88810.cb646554.chunk.js", + "static/js/93672.030a2ec6.chunk.js": "./static/js/93672.030a2ec6.chunk.js", + "static/js/83005.08f70905.chunk.js": "./static/js/83005.08f70905.chunk.js", + "static/js/37747.ab1590d9.chunk.js": "./static/js/37747.ab1590d9.chunk.js", + "static/js/81327.e08f6d45.chunk.js": "./static/js/81327.e08f6d45.chunk.js", + "static/js/61387.f19330bb.chunk.js": "./static/js/61387.f19330bb.chunk.js", + "static/js/28125.0776827a.chunk.js": "./static/js/28125.0776827a.chunk.js", + "static/js/9511.aceb118a.chunk.js": "./static/js/9511.aceb118a.chunk.js", + "static/js/56421.a250ca1b.chunk.js": "./static/js/56421.a250ca1b.chunk.js", + "static/js/85595.262d8065.chunk.js": "./static/js/85595.262d8065.chunk.js", + "static/js/52036.0bcd45d5.chunk.js": "./static/js/52036.0bcd45d5.chunk.js", + "static/js/29866.16645b0d.chunk.js": "./static/js/29866.16645b0d.chunk.js", + "static/js/83012.103c3f36.chunk.js": "./static/js/83012.103c3f36.chunk.js", + "static/js/95264.612bf2f8.chunk.js": "./static/js/95264.612bf2f8.chunk.js", + "static/js/56026.85d58e2b.chunk.js": "./static/js/56026.85d58e2b.chunk.js", + "static/js/62888.e3af7359.chunk.js": "./static/js/62888.e3af7359.chunk.js", + "static/js/84960.05121e37.chunk.js": "./static/js/84960.05121e37.chunk.js", + "static/js/79972.b465d16f.chunk.js": "./static/js/79972.b465d16f.chunk.js", + "static/js/10242.86faa17f.chunk.js": "./static/js/10242.86faa17f.chunk.js", + "static/js/82315.a87de6b3.chunk.js": "./static/js/82315.a87de6b3.chunk.js", + "static/js/57320.74fc8316.chunk.js": "./static/js/57320.74fc8316.chunk.js", + "static/js/88987.f221b1c0.chunk.js": "./static/js/88987.f221b1c0.chunk.js", + "static/js/91087.3a776c06.chunk.js": "./static/js/91087.3a776c06.chunk.js", + "static/js/10064.5442bcf6.chunk.js": "./static/js/10064.5442bcf6.chunk.js", + "static/js/6528.77d69abb.chunk.js": "./static/js/6528.77d69abb.chunk.js", + "static/js/29043.f0a51584.chunk.js": "./static/js/29043.f0a51584.chunk.js", + "static/js/85776.0f7f2e5d.chunk.js": "./static/js/85776.0f7f2e5d.chunk.js", + "static/js/85664.569016a5.chunk.js": "./static/js/85664.569016a5.chunk.js", + "static/js/29461.74898902.chunk.js": "./static/js/29461.74898902.chunk.js", + "static/js/4617.be8c65cd.chunk.js": "./static/js/4617.be8c65cd.chunk.js", + "static/js/30573.df897e71.chunk.js": "./static/js/30573.df897e71.chunk.js", + "static/js/84307.59d32ce3.chunk.js": "./static/js/84307.59d32ce3.chunk.js", + "static/js/17880.ed6168a4.chunk.js": "./static/js/17880.ed6168a4.chunk.js", + "static/js/23882.3b39c413.chunk.js": "./static/js/23882.3b39c413.chunk.js", + "static/js/50045.c8e44e5c.chunk.js": "./static/js/50045.c8e44e5c.chunk.js", + "static/js/81869.a0a15184.chunk.js": "./static/js/81869.a0a15184.chunk.js", + "static/js/90504.d340d9cc.chunk.js": "./static/js/90504.d340d9cc.chunk.js", + "static/js/47472.10032073.chunk.js": "./static/js/47472.10032073.chunk.js", + "static/js/68527.1f687bcf.chunk.js": "./static/js/68527.1f687bcf.chunk.js", + "static/js/98559.7d826ee7.chunk.js": "./static/js/98559.7d826ee7.chunk.js", + "static/js/71515.2280d42d.chunk.js": "./static/js/71515.2280d42d.chunk.js", + "static/js/33436.e8e4435f.chunk.js": "./static/js/33436.e8e4435f.chunk.js", + "static/js/9177.3b6d6de8.chunk.js": "./static/js/9177.3b6d6de8.chunk.js", + "static/js/43028.3817b0d7.chunk.js": "./static/js/43028.3817b0d7.chunk.js", + "static/js/66593.94c01a99.chunk.js": "./static/js/66593.94c01a99.chunk.js", + "static/js/73863.6655927e.chunk.js": "./static/js/73863.6655927e.chunk.js", + "static/js/72020.e0c38d22.chunk.js": "./static/js/72020.e0c38d22.chunk.js", + "static/js/42396.9af219b0.chunk.js": "./static/js/42396.9af219b0.chunk.js", + "static/js/16795.c5c2f8ec.chunk.js": "./static/js/16795.c5c2f8ec.chunk.js", + "static/js/35958.73cbdbca.chunk.js": "./static/js/35958.73cbdbca.chunk.js", + "static/js/73442.0bbc74fd.chunk.js": "./static/js/73442.0bbc74fd.chunk.js", + "static/js/5411.001c1dc7.chunk.js": "./static/js/5411.001c1dc7.chunk.js", + "static/js/49788.12d03dd2.chunk.js": "./static/js/49788.12d03dd2.chunk.js", + "static/js/4887.f016c3bb.chunk.js": "./static/js/4887.f016c3bb.chunk.js", + "static/js/25101.06af1360.chunk.js": "./static/js/25101.06af1360.chunk.js", + "static/js/57708.c2b518ee.chunk.js": "./static/js/57708.c2b518ee.chunk.js", + "static/js/78710.673d31cf.chunk.js": "./static/js/78710.673d31cf.chunk.js", + "static/js/70190.e3137ef3.chunk.js": "./static/js/70190.e3137ef3.chunk.js", + "static/js/92008.7d46cb66.chunk.js": "./static/js/92008.7d46cb66.chunk.js", + "static/js/90529.112c30e3.chunk.js": "./static/js/90529.112c30e3.chunk.js", + "static/js/93771.f96f428a.chunk.js": "./static/js/93771.f96f428a.chunk.js", + "static/js/68377.f73a91b7.chunk.js": "./static/js/68377.f73a91b7.chunk.js", + "static/js/31177.d892dd40.chunk.js": "./static/js/31177.d892dd40.chunk.js", + "static/js/16758.3630f667.chunk.js": "./static/js/16758.3630f667.chunk.js", + "static/js/19702.cd1b5e06.chunk.js": "./static/js/19702.cd1b5e06.chunk.js", + "static/js/34693.09c32626.chunk.js": "./static/js/34693.09c32626.chunk.js", + "static/js/89033.56232409.chunk.js": "./static/js/89033.56232409.chunk.js", + "static/js/38718.bf415be7.chunk.js": "./static/js/38718.bf415be7.chunk.js", + "static/js/76603.db4ff761.chunk.js": "./static/js/76603.db4ff761.chunk.js", + "static/js/72788.d00f6565.chunk.js": "./static/js/72788.d00f6565.chunk.js", + "static/js/92816.26e23640.chunk.js": "./static/js/92816.26e23640.chunk.js", + "static/js/63782.48301ab7.chunk.js": "./static/js/63782.48301ab7.chunk.js", + "static/js/39705.257f0583.chunk.js": "./static/js/39705.257f0583.chunk.js", + "static/js/20600.6e1ccb0d.chunk.js": "./static/js/20600.6e1ccb0d.chunk.js", + "static/js/54597.f81d6f07.chunk.js": "./static/js/54597.f81d6f07.chunk.js", + "static/js/42791.26100ebe.chunk.js": "./static/js/42791.26100ebe.chunk.js", + "static/js/34156.b749f595.chunk.js": "./static/js/34156.b749f595.chunk.js", + "static/js/30249.b5966caf.chunk.js": "./static/js/30249.b5966caf.chunk.js", + "static/js/9493.f7e806b7.chunk.js": "./static/js/9493.f7e806b7.chunk.js", + "static/js/26327.62bdac9a.chunk.js": "./static/js/26327.62bdac9a.chunk.js", + "static/js/52541.7c3f886c.chunk.js": "./static/js/52541.7c3f886c.chunk.js", + "static/js/90330.7878a0d4.chunk.js": "./static/js/90330.7878a0d4.chunk.js", + "static/js/17500.d2b3273a.chunk.js": "./static/js/17500.d2b3273a.chunk.js", + "static/js/5530.da339b78.chunk.js": "./static/js/5530.da339b78.chunk.js", + "static/js/85406.ba8965be.chunk.js": "./static/js/85406.ba8965be.chunk.js", + "static/js/1146.65a37bc6.chunk.js": "./static/js/1146.65a37bc6.chunk.js", + "static/js/47108.d6adff77.chunk.js": "./static/js/47108.d6adff77.chunk.js", + "static/js/81014.351ef346.chunk.js": "./static/js/81014.351ef346.chunk.js", + "static/js/96410.55c52134.chunk.js": "./static/js/96410.55c52134.chunk.js", + "static/js/54781.9ee0aecd.chunk.js": "./static/js/54781.9ee0aecd.chunk.js", + "static/js/51159.314cef1d.chunk.js": "./static/js/51159.314cef1d.chunk.js", + "static/js/26411.07f03301.chunk.js": "./static/js/26411.07f03301.chunk.js", + "static/js/57469.85faf9a5.chunk.js": "./static/js/57469.85faf9a5.chunk.js", + "static/js/10132.c1a19fa8.chunk.js": "./static/js/10132.c1a19fa8.chunk.js", + "static/js/81243.4d5129fa.chunk.js": "./static/js/81243.4d5129fa.chunk.js", + "static/js/4018.f6c8e2ef.chunk.js": "./static/js/4018.f6c8e2ef.chunk.js", + "static/js/19791.feabd3fc.chunk.js": "./static/js/19791.feabd3fc.chunk.js", + "static/js/81940.05d638c7.chunk.js": "./static/js/81940.05d638c7.chunk.js", + "static/js/60464.c820a295.chunk.js": "./static/js/60464.c820a295.chunk.js", + "static/js/10815.03541c68.chunk.js": "./static/js/10815.03541c68.chunk.js", + "static/js/90367.afe12186.chunk.js": "./static/js/90367.afe12186.chunk.js", + "static/js/65633.b6bc2f47.chunk.js": "./static/js/65633.b6bc2f47.chunk.js", + "static/js/56054.9d70a2ed.chunk.js": "./static/js/56054.9d70a2ed.chunk.js", + "static/js/94102.c7e5199b.chunk.js": "./static/js/94102.c7e5199b.chunk.js", + "static/js/42111.2a4b8434.chunk.js": "./static/js/42111.2a4b8434.chunk.js", + "static/js/34119.377036f7.chunk.js": "./static/js/34119.377036f7.chunk.js", + "static/js/70858.35d686d1.chunk.js": "./static/js/70858.35d686d1.chunk.js", + "static/js/54651.40344b3d.chunk.js": "./static/js/54651.40344b3d.chunk.js", + "static/js/10525.b02faf58.chunk.js": "./static/js/10525.b02faf58.chunk.js", + "static/js/17981.5fd12b3d.chunk.js": "./static/js/17981.5fd12b3d.chunk.js", + "static/js/8215.36727d1f.chunk.js": "./static/js/8215.36727d1f.chunk.js", + "static/js/21996.6a6996bf.chunk.js": "./static/js/21996.6a6996bf.chunk.js", + "static/js/71107.d2d26409.chunk.js": "./static/js/71107.d2d26409.chunk.js", + "static/js/30499.28982bd3.chunk.js": "./static/js/30499.28982bd3.chunk.js", + "static/js/4554.8b82bb25.chunk.js": "./static/js/4554.8b82bb25.chunk.js", + "static/js/96017.b8da505b.chunk.js": "./static/js/96017.b8da505b.chunk.js", + "static/js/56174.562b7d92.chunk.js": "./static/js/56174.562b7d92.chunk.js", + "static/js/3149.0c1f7eee.chunk.js": "./static/js/3149.0c1f7eee.chunk.js", + "static/js/86472.57a5a1cc.chunk.js": "./static/js/86472.57a5a1cc.chunk.js", + "static/js/87429.3792c589.chunk.js": "./static/js/87429.3792c589.chunk.js", + "static/js/37605.270ebf37.chunk.js": "./static/js/37605.270ebf37.chunk.js", + "static/js/54520.c2776d7f.chunk.js": "./static/js/54520.c2776d7f.chunk.js", + "static/js/61741.c551cb8f.chunk.js": "./static/js/61741.c551cb8f.chunk.js", + "static/js/47660.d58e412b.chunk.js": "./static/js/47660.d58e412b.chunk.js", + "static/js/57016.ccc30938.chunk.js": "./static/js/57016.ccc30938.chunk.js", + "static/js/19026.f05aa9b2.chunk.js": "./static/js/19026.f05aa9b2.chunk.js", + "static/js/20535.b2fdb3bf.chunk.js": "./static/js/20535.b2fdb3bf.chunk.js", + "static/js/87233.c8b49edb.chunk.js": "./static/js/87233.c8b49edb.chunk.js", + "static/js/65206.7f46c107.chunk.js": "./static/js/65206.7f46c107.chunk.js", + "static/js/29769.21fd5384.chunk.js": "./static/js/29769.21fd5384.chunk.js", + "static/js/55651.bd57c77c.chunk.js": "./static/js/55651.bd57c77c.chunk.js", + "static/js/70289.b63d5fb8.chunk.js": "./static/js/70289.b63d5fb8.chunk.js", + "static/js/46134.708fa2c1.chunk.js": "./static/js/46134.708fa2c1.chunk.js", + "static/js/9614.71b68927.chunk.js": "./static/js/9614.71b68927.chunk.js", + "static/js/71672.9d9a091b.chunk.js": "./static/js/71672.9d9a091b.chunk.js", + "static/js/84587.961ae27a.chunk.js": "./static/js/84587.961ae27a.chunk.js", + "static/js/5282.37c7be51.chunk.js": "./static/js/5282.37c7be51.chunk.js", + "static/js/83896.d4b0cab7.chunk.js": "./static/js/83896.d4b0cab7.chunk.js", + "static/js/27950.acee5eec.chunk.js": "./static/js/27950.acee5eec.chunk.js", + "static/js/42384.403ac671.chunk.js": "./static/js/42384.403ac671.chunk.js", + "static/js/37385.c32c6c83.chunk.js": "./static/js/37385.c32c6c83.chunk.js", + "static/js/55528.e1e10ce0.chunk.js": "./static/js/55528.e1e10ce0.chunk.js", + "static/js/30850.aef4d4ce.chunk.js": "./static/js/30850.aef4d4ce.chunk.js", + "static/js/82399.80864f92.chunk.js": "./static/js/82399.80864f92.chunk.js", + "static/js/70695.3af812a3.chunk.js": "./static/js/70695.3af812a3.chunk.js", + "static/js/98268.2e2a9c9c.chunk.js": "./static/js/98268.2e2a9c9c.chunk.js", + "static/js/82066.573664a4.chunk.js": "./static/js/82066.573664a4.chunk.js", + "static/js/3980.f3083535.chunk.js": "./static/js/3980.f3083535.chunk.js", + "static/js/47153.2c051af0.chunk.js": "./static/js/47153.2c051af0.chunk.js", + "static/js/56761.638c1141.chunk.js": "./static/js/56761.638c1141.chunk.js", + "static/js/83075.aa140970.chunk.js": "./static/js/83075.aa140970.chunk.js", + "static/js/50875.c6afaf0d.chunk.js": "./static/js/50875.c6afaf0d.chunk.js", + "static/js/42615.93e0f1f6.chunk.js": "./static/js/42615.93e0f1f6.chunk.js", + "static/js/21742.5a360b56.chunk.js": "./static/js/21742.5a360b56.chunk.js", + "static/js/48914.0bb2f1c2.chunk.js": "./static/js/48914.0bb2f1c2.chunk.js", + "static/js/37963.55ad78e4.chunk.js": "./static/js/37963.55ad78e4.chunk.js", + "static/js/80067.910ba368.chunk.js": "./static/js/80067.910ba368.chunk.js", + "static/js/67105.3413451f.chunk.js": "./static/js/67105.3413451f.chunk.js", + "static/js/94810.4ac18bf1.chunk.js": "./static/js/94810.4ac18bf1.chunk.js", + "static/js/11192.56c4d6e0.chunk.js": "./static/js/11192.56c4d6e0.chunk.js", + "static/js/99341.613b8fce.chunk.js": "./static/js/99341.613b8fce.chunk.js", + "static/js/5393.cb636c81.chunk.js": "./static/js/5393.cb636c81.chunk.js", + "static/js/91249.38e22793.chunk.js": "./static/js/91249.38e22793.chunk.js", + "static/js/19233.b4069ac2.chunk.js": "./static/js/19233.b4069ac2.chunk.js", + "static/js/89015.1865c336.chunk.js": "./static/js/89015.1865c336.chunk.js", + "static/js/97440.3db00b72.chunk.js": "./static/js/97440.3db00b72.chunk.js", + "static/js/52527.57100447.chunk.js": "./static/js/52527.57100447.chunk.js", + "static/js/35803.0104654b.chunk.js": "./static/js/35803.0104654b.chunk.js", + "static/js/69997.3bda423b.chunk.js": "./static/js/69997.3bda423b.chunk.js", + "static/js/84578.9e6910e9.chunk.js": "./static/js/84578.9e6910e9.chunk.js", + "static/js/35596.d9a26c66.chunk.js": "./static/js/35596.d9a26c66.chunk.js", + "static/js/43979.9ed5260f.chunk.js": "./static/js/43979.9ed5260f.chunk.js", + "static/css/48593.95df9723.chunk.css": "./static/css/48593.95df9723.chunk.css", + "static/js/47614.68df3ac9.chunk.js": "./static/js/47614.68df3ac9.chunk.js", + "static/js/28868.3c0ecf71.chunk.js": "./static/js/28868.3c0ecf71.chunk.js", + "static/js/25636.358f92b4.chunk.js": "./static/js/25636.358f92b4.chunk.js", + "static/js/99872.c308e65f.chunk.js": "./static/js/99872.c308e65f.chunk.js", + "static/js/73534.e63e8bd4.chunk.js": "./static/js/73534.e63e8bd4.chunk.js", + "static/js/20654.f715fac2.chunk.js": "./static/js/20654.f715fac2.chunk.js", + "static/js/98014.a4ad6ba5.chunk.js": "./static/js/98014.a4ad6ba5.chunk.js", + "static/js/36374.16f4dcdb.chunk.js": "./static/js/36374.16f4dcdb.chunk.js", + "static/js/57206.7544a09d.chunk.js": "./static/js/57206.7544a09d.chunk.js", + "static/js/35888.e5062b23.chunk.js": "./static/js/35888.e5062b23.chunk.js", + "static/js/62042.e21d383b.chunk.js": "./static/js/62042.e21d383b.chunk.js", + "static/js/52518.2a3ff21a.chunk.js": "./static/js/52518.2a3ff21a.chunk.js", + "static/js/55454.4f52583e.chunk.js": "./static/js/55454.4f52583e.chunk.js", + "static/js/32742.d4094814.chunk.js": "./static/js/32742.d4094814.chunk.js", + "static/js/70225.f064b5ad.chunk.js": "./static/js/70225.f064b5ad.chunk.js", + "static/js/24534.3cac028e.chunk.js": "./static/js/24534.3cac028e.chunk.js", + "static/js/80030.4efa59e1.chunk.js": "./static/js/80030.4efa59e1.chunk.js", + "static/js/46012.36fc4080.chunk.js": "./static/js/46012.36fc4080.chunk.js", "static/js/734.3fe325e9.chunk.js": "./static/js/734.3fe325e9.chunk.js", - "static/js/5382.3a2e6ac6.chunk.js": "./static/js/5382.3a2e6ac6.chunk.js", - "static/js/2854.48cc58dc.chunk.js": "./static/js/2854.48cc58dc.chunk.js", - "static/js/118.112f7e2f.chunk.js": "./static/js/118.112f7e2f.chunk.js", - "static/js/7692.af7181c9.chunk.js": "./static/js/7692.af7181c9.chunk.js", - "static/js/7148.ef54cd41.chunk.js": "./static/js/7148.ef54cd41.chunk.js", - "static/js/110.2c798565.chunk.js": "./static/js/110.2c798565.chunk.js", - "static/js/5252.991dcab8.chunk.js": "./static/js/5252.991dcab8.chunk.js", - "static/js/3638.ee3efb24.chunk.js": "./static/js/3638.ee3efb24.chunk.js", - "static/js/6554.6dfab136.chunk.js": "./static/js/6554.6dfab136.chunk.js", - "static/js/8821.96eeccd6.chunk.js": "./static/js/8821.96eeccd6.chunk.js", - "static/js/4678.4e2f4af4.chunk.js": "./static/js/4678.4e2f4af4.chunk.js", - "static/js/9176.3f08336f.chunk.js": "./static/js/9176.3f08336f.chunk.js", + "static/js/35382.6471a2ea.chunk.js": "./static/js/35382.6471a2ea.chunk.js", + "static/js/32854.6c426003.chunk.js": "./static/js/32854.6c426003.chunk.js", + "static/js/90118.4fc97e01.chunk.js": "./static/js/90118.4fc97e01.chunk.js", + "static/js/47692.c0ce8e67.chunk.js": "./static/js/47692.c0ce8e67.chunk.js", + "static/js/27148.5289994c.chunk.js": "./static/js/27148.5289994c.chunk.js", + "static/js/60110.448cdddf.chunk.js": "./static/js/60110.448cdddf.chunk.js", + "static/js/65252.2655458e.chunk.js": "./static/js/65252.2655458e.chunk.js", + "static/js/13638.e739b34f.chunk.js": "./static/js/13638.e739b34f.chunk.js", + "static/js/96554.bff09e47.chunk.js": "./static/js/96554.bff09e47.chunk.js", + "static/js/68821.a96b8277.chunk.js": "./static/js/68821.a96b8277.chunk.js", + "static/js/54678.5a7b7b35.chunk.js": "./static/js/54678.5a7b7b35.chunk.js", + "static/js/99176.319e969d.chunk.js": "./static/js/99176.319e969d.chunk.js", "static/js/2726.abc3a0c2.chunk.js": "./static/js/2726.abc3a0c2.chunk.js", - "static/js/6447.2c0d9bda.chunk.js": "./static/js/6447.2c0d9bda.chunk.js", - "static/js/7642.39707d60.chunk.js": "./static/js/7642.39707d60.chunk.js", - "static/js/2350.a7af0a2e.chunk.js": "./static/js/2350.a7af0a2e.chunk.js", - "static/js/3338.83fe4e63.chunk.js": "./static/js/3338.83fe4e63.chunk.js", - "static/js/9010.4bfaf5fa.chunk.js": "./static/js/9010.4bfaf5fa.chunk.js", - "static/js/9728.7cc957e4.chunk.js": "./static/js/9728.7cc957e4.chunk.js", - "static/js/5050.ffa3921f.chunk.js": "./static/js/5050.ffa3921f.chunk.js", - "static/js/9312.5eb8d4b1.chunk.js": "./static/js/9312.5eb8d4b1.chunk.js", - "static/js/3478.480dafa6.chunk.js": "./static/js/3478.480dafa6.chunk.js", - "static/js/6214.a9a481a7.chunk.js": "./static/js/6214.a9a481a7.chunk.js", - "static/js/1414.4cfda0bc.chunk.js": "./static/js/1414.4cfda0bc.chunk.js", + "static/js/66447.716a34f7.chunk.js": "./static/js/66447.716a34f7.chunk.js", + "static/js/77642.1a976f0c.chunk.js": "./static/js/77642.1a976f0c.chunk.js", + "static/js/62350.07b0039d.chunk.js": "./static/js/62350.07b0039d.chunk.js", + "static/js/33338.c39231db.chunk.js": "./static/js/33338.c39231db.chunk.js", + "static/js/99010.0141f0a0.chunk.js": "./static/js/99010.0141f0a0.chunk.js", + "static/js/19728.daf9b9f8.chunk.js": "./static/js/19728.daf9b9f8.chunk.js", + "static/js/95050.8313ef1e.chunk.js": "./static/js/95050.8313ef1e.chunk.js", + "static/js/79312.17a58c6f.chunk.js": "./static/js/79312.17a58c6f.chunk.js", + "static/js/73478.353da8fe.chunk.js": "./static/js/73478.353da8fe.chunk.js", + "static/js/26214.42be0c73.chunk.js": "./static/js/26214.42be0c73.chunk.js", + "static/js/51414.1b5a0681.chunk.js": "./static/js/51414.1b5a0681.chunk.js", "static/js/2994.6c6016a8.chunk.js": "./static/js/2994.6c6016a8.chunk.js", - "static/js/6210.69d6a30a.chunk.js": "./static/js/6210.69d6a30a.chunk.js", - "static/js/7638.5489d672.chunk.js": "./static/js/7638.5489d672.chunk.js", - "static/js/132.cf00f1e7.chunk.js": "./static/js/132.cf00f1e7.chunk.js", - "static/js/7118.ce0cd05f.chunk.js": "./static/js/7118.ce0cd05f.chunk.js", - "static/js/3158.3f2d4e5f.chunk.js": "./static/js/3158.3f2d4e5f.chunk.js", - "static/js/4582.5bf174ff.chunk.js": "./static/js/4582.5bf174ff.chunk.js", - "static/js/6342.a2819c87.chunk.js": "./static/js/6342.a2819c87.chunk.js", - "static/js/4542.18433910.chunk.js": "./static/js/4542.18433910.chunk.js", - "static/js/9582.c09a3623.chunk.js": "./static/js/9582.c09a3623.chunk.js", - "static/js/5542.7c13d444.chunk.js": "./static/js/5542.7c13d444.chunk.js", + "static/js/16210.cfacbd9b.chunk.js": "./static/js/16210.cfacbd9b.chunk.js", + "static/js/97638.a9af06da.chunk.js": "./static/js/97638.a9af06da.chunk.js", + "static/js/40132.8f54cbd2.chunk.js": "./static/js/40132.8f54cbd2.chunk.js", + "static/js/57118.e38774e7.chunk.js": "./static/js/57118.e38774e7.chunk.js", + "static/js/23158.a522a83d.chunk.js": "./static/js/23158.a522a83d.chunk.js", + "static/js/84582.caa06f15.chunk.js": "./static/js/84582.caa06f15.chunk.js", + "static/js/86342.528e5efc.chunk.js": "./static/js/86342.528e5efc.chunk.js", + "static/js/14542.fea67816.chunk.js": "./static/js/14542.fea67816.chunk.js", + "static/js/49582.c5a749cc.chunk.js": "./static/js/49582.c5a749cc.chunk.js", + "static/js/15542.e6a4dbf6.chunk.js": "./static/js/15542.e6a4dbf6.chunk.js", "static/js/4818.6beda30c.chunk.js": "./static/js/4818.6beda30c.chunk.js", - "static/js/902.a1b90b1b.chunk.js": "./static/js/902.a1b90b1b.chunk.js", - "static/js/9394.ca56f408.chunk.js": "./static/js/9394.ca56f408.chunk.js", - "static/js/2372.880a31f6.chunk.js": "./static/js/2372.880a31f6.chunk.js", + "static/js/10902.cd23357e.chunk.js": "./static/js/10902.cd23357e.chunk.js", + "static/js/29394.e027e9c7.chunk.js": "./static/js/29394.e027e9c7.chunk.js", + "static/js/22372.9c5be99f.chunk.js": "./static/js/22372.9c5be99f.chunk.js", "static/js/5866.14d27c8c.chunk.js": "./static/js/5866.14d27c8c.chunk.js", - "static/js/6658.b22172da.chunk.js": "./static/js/6658.b22172da.chunk.js", - "static/js/8986.de287636.chunk.js": "./static/js/8986.de287636.chunk.js", - "static/js/4662.1c10232d.chunk.js": "./static/js/4662.1c10232d.chunk.js", - "static/js/3702.778880f9.chunk.js": "./static/js/3702.778880f9.chunk.js", - "static/js/2182.1e53f745.chunk.js": "./static/js/2182.1e53f745.chunk.js", - "static/js/2016.397296b7.chunk.js": "./static/js/2016.397296b7.chunk.js", + "static/js/86658.6a6caa74.chunk.js": "./static/js/86658.6a6caa74.chunk.js", + "static/js/58986.472d72cc.chunk.js": "./static/js/58986.472d72cc.chunk.js", + "static/js/24662.5e8417ae.chunk.js": "./static/js/24662.5e8417ae.chunk.js", + "static/js/23702.887336e8.chunk.js": "./static/js/23702.887336e8.chunk.js", + "static/js/42182.a71d5155.chunk.js": "./static/js/42182.a71d5155.chunk.js", + "static/js/92016.1c9c5217.chunk.js": "./static/js/92016.1c9c5217.chunk.js", "static/js/3648.3a72999a.chunk.js": "./static/js/3648.3a72999a.chunk.js", - "static/js/7946.3b4cf6fd.chunk.js": "./static/js/7946.3b4cf6fd.chunk.js", - "static/js/3977.4c33ec16.chunk.js": "./static/js/3977.4c33ec16.chunk.js", - "static/js/7574.8ac9803d.chunk.js": "./static/js/7574.8ac9803d.chunk.js", + "static/js/57946.31f41343.chunk.js": "./static/js/57946.31f41343.chunk.js", + "static/js/56358.3a141569.chunk.js": "./static/js/56358.3a141569.chunk.js", + "static/js/67574.31643beb.chunk.js": "./static/js/67574.31643beb.chunk.js", "static/js/3048.692b5966.chunk.js": "./static/js/3048.692b5966.chunk.js", - "static/js/9842.b8ba19ad.chunk.js": "./static/js/9842.b8ba19ad.chunk.js", - "static/js/8234.7512920e.chunk.js": "./static/js/8234.7512920e.chunk.js", - "static/js/5988.38ef363d.chunk.js": "./static/js/5988.38ef363d.chunk.js", - "static/js/957.08a1c505.chunk.js": "./static/js/957.08a1c505.chunk.js", - "static/js/9778.52ad76ce.chunk.js": "./static/js/9778.52ad76ce.chunk.js", - "static/js/1321.401aa9b8.chunk.js": "./static/js/1321.401aa9b8.chunk.js", - "static/js/1278.d5c24e15.chunk.js": "./static/js/1278.d5c24e15.chunk.js", - "static/js/6262.44dba84f.chunk.js": "./static/js/6262.44dba84f.chunk.js", - "static/js/246.13bb9db2.chunk.js": "./static/js/246.13bb9db2.chunk.js", + "static/js/79842.ef61156d.chunk.js": "./static/js/79842.ef61156d.chunk.js", + "static/js/98234.c2934def.chunk.js": "./static/js/98234.c2934def.chunk.js", + "static/js/65988.11e4149b.chunk.js": "./static/js/65988.11e4149b.chunk.js", + "static/js/53338.161bc4dd.chunk.js": "./static/js/53338.161bc4dd.chunk.js", + "static/js/49778.b9d397f4.chunk.js": "./static/js/49778.b9d397f4.chunk.js", + "static/js/43702.745d5072.chunk.js": "./static/js/43702.745d5072.chunk.js", + "static/js/11278.aab5c12c.chunk.js": "./static/js/11278.aab5c12c.chunk.js", + "static/js/66262.b361ce28.chunk.js": "./static/js/66262.b361ce28.chunk.js", + "static/js/10246.ee23b775.chunk.js": "./static/js/10246.ee23b775.chunk.js", "static/js/2162.cca3e026.chunk.js": "./static/js/2162.cca3e026.chunk.js", "static/js/1606.0041ed7d.chunk.js": "./static/js/1606.0041ed7d.chunk.js", - "static/js/8979.0c0acc31.chunk.js": "./static/js/8979.0c0acc31.chunk.js", - "static/js/1094.b5bb2475.chunk.js": "./static/js/1094.b5bb2475.chunk.js", - "static/js/9748.e711e962.chunk.js": "./static/js/9748.e711e962.chunk.js", - "static/js/3822.00ab6aaa.chunk.js": "./static/js/3822.00ab6aaa.chunk.js", - "static/js/7718.f897f8ca.chunk.js": "./static/js/7718.f897f8ca.chunk.js", - "static/js/4870.1916a88d.chunk.js": "./static/js/4870.1916a88d.chunk.js", - "static/js/6397.b8cf6fae.chunk.js": "./static/js/6397.b8cf6fae.chunk.js", + "static/js/78979.e31ea57f.chunk.js": "./static/js/78979.e31ea57f.chunk.js", + "static/js/51094.f421b808.chunk.js": "./static/js/51094.f421b808.chunk.js", + "static/js/59748.4682a957.chunk.js": "./static/js/59748.4682a957.chunk.js", + "static/js/33822.3b7da7cd.chunk.js": "./static/js/33822.3b7da7cd.chunk.js", + "static/js/77718.38572b28.chunk.js": "./static/js/77718.38572b28.chunk.js", + "static/js/84870.ab138a59.chunk.js": "./static/js/84870.ab138a59.chunk.js", + "static/js/66397.32c2f9da.chunk.js": "./static/js/66397.32c2f9da.chunk.js", "static/js/5475.20ce4f75.chunk.js": "./static/js/5475.20ce4f75.chunk.js", - "static/js/9507.14872b99.chunk.js": "./static/js/9507.14872b99.chunk.js", - "static/css/9802.d30d0ff3.chunk.css": "./static/css/9802.d30d0ff3.chunk.css", - "static/js/9802.b15025e5.chunk.js": "./static/js/9802.b15025e5.chunk.js", - "static/js/4130.4d4b9fad.chunk.js": "./static/js/4130.4d4b9fad.chunk.js", - "static/js/4872.bbf7ab34.chunk.js": "./static/js/4872.bbf7ab34.chunk.js", - "static/js/9172.f332051f.chunk.js": "./static/js/9172.f332051f.chunk.js", - "static/js/6820.bff2520f.chunk.js": "./static/js/6820.bff2520f.chunk.js", - "static/css/2031.1e565ac5.chunk.css": "./static/css/2031.1e565ac5.chunk.css", - "static/js/2031.d8f098f9.chunk.js": "./static/js/2031.d8f098f9.chunk.js", - "static/js/1836.1a1c6d4b.chunk.js": "./static/js/1836.1a1c6d4b.chunk.js", - "static/js/856.36f195a5.chunk.js": "./static/js/856.36f195a5.chunk.js", - "static/js/8452.3bfa9018.chunk.js": "./static/js/8452.3bfa9018.chunk.js", - "static/css/9796.828f7385.chunk.css": "./static/css/9796.828f7385.chunk.css", - "static/js/9796.23c68f38.chunk.js": "./static/js/9796.23c68f38.chunk.js", - "static/js/1329.d6e31925.chunk.js": "./static/js/1329.d6e31925.chunk.js", - "static/js/9300.89daa9ec.chunk.js": "./static/js/9300.89daa9ec.chunk.js", + "static/js/19507.0512979b.chunk.js": "./static/js/19507.0512979b.chunk.js", + "static/css/71867.d30d0ff3.chunk.css": "./static/css/71867.d30d0ff3.chunk.css", + "static/js/71867.4808e834.chunk.js": "./static/js/71867.4808e834.chunk.js", + "static/js/24130.160bfd14.chunk.js": "./static/js/24130.160bfd14.chunk.js", + "static/js/56013.d9e34466.chunk.js": "./static/js/56013.d9e34466.chunk.js", + "static/js/59172.d3dd36c7.chunk.js": "./static/js/59172.d3dd36c7.chunk.js", + "static/js/66820.ec86ae7a.chunk.js": "./static/js/66820.ec86ae7a.chunk.js", + "static/css/58884.1e565ac5.chunk.css": "./static/css/58884.1e565ac5.chunk.css", + "static/js/58884.1009923e.chunk.js": "./static/js/58884.1009923e.chunk.js", + "static/js/81836.55b6c25b.chunk.js": "./static/js/81836.55b6c25b.chunk.js", + "static/js/88669.310e189c.chunk.js": "./static/js/88669.310e189c.chunk.js", + "static/js/99796.a8f76855.chunk.js": "./static/js/99796.a8f76855.chunk.js", + "static/css/58705.b781fc86.chunk.css": "./static/css/58705.b781fc86.chunk.css", + "static/js/65824.1f5e112a.chunk.js": "./static/js/65824.1f5e112a.chunk.js", + "static/js/47293.68cfbf41.chunk.js": "./static/js/47293.68cfbf41.chunk.js", "ts.worker.js": "./ts.worker.js", "css.worker.js": "./css.worker.js", "html.worker.js": "./html.worker.js", @@ -291,7 +570,7 @@ "index.html": "./index.html" }, "entrypoints": [ - "static/css/main.8f03af14.css", - "static/js/main.806ca619.js" + "static/css/main.84f98361.css", + "static/js/main.56991933.js" ] }
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/index.html b/ydb/core/viewer/monitoring/index.html index 4c05fda6f1..648b549e15 100644 --- a/ydb/core/viewer/monitoring/index.html +++ b/ydb/core/viewer/monitoring/index.html @@ -1 +1 @@ -<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined",window.react_app_disable_checks="%REACT_APP_DISABLE_CHECKS%"</script><script defer="defer" src="./static/js/main.806ca619.js"></script><link href="./static/css/main.8f03af14.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
\ No newline at end of file +<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined",window.react_app_disable_checks="%REACT_APP_DISABLE_CHECKS%"</script><script defer="defer" src="./static/js/main.56991933.js"></script><link href="./static/css/main.84f98361.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/23779.b38c45c0.chunk.css b/ydb/core/viewer/monitoring/static/css/23779.b38c45c0.chunk.css new file mode 100644 index 0000000000..3f09d89f5a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/23779.b38c45c0.chunk.css @@ -0,0 +1 @@ +.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-search{min-width:100px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.kv-user{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.kv-user,.kv-user__name{display:inline-block}.kv-user__name:first-letter{color:var(--g-color-text-danger)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.clusters{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;padding-top:15px}.clusters__autorefresh{margin-left:auto}.clusters__cluster{align-items:center;display:flex}.clusters__cluster-status{border-radius:3px;height:18px;margin-right:8px;width:18px}.clusters__cluster-status span{align-items:center;display:flex}.clusters__cluster-status_type_green{background-color:var(--ydb-color-status-green)}.clusters__cluster-status_type_yellow{background-color:var(--ydb-color-status-yellow)}.clusters__cluster-status_type_blue{background-color:var(--ydb-color-status-blue)}.clusters__cluster-status_type_red{background:var(--ydb-color-status-red)}.clusters__cluster-status_type_grey{background:var(--ydb-color-status-grey)}.clusters__cluster-status_type_orange{background:var(--ydb-color-status-orange)}.clusters__cluster-name{color:var(--g-color-text-link);text-decoration:none;white-space:normal}.clusters__cluster-versions{text-decoration:none}.clusters__cluster-version{overflow:hidden;text-overflow:ellipsis}.clusters__cluster-dc{white-space:normal}.clusters__controls{display:flex;margin-bottom:20px}.clusters__control{margin-right:15px;width:200px}.clusters__control_wide{width:300px}.clusters__empty-cell{color:var(--g-color-text-secondary)}.clusters__tooltip-content{word-break:break-all}.clusters .g-progress__item{transition:none}.clusters__aggregation,.clusters__controls{margin-left:15px;margin-right:15px}.clusters__aggregation{align-items:center;background:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);border-radius:10px;display:flex;height:46px;margin-bottom:20px;padding:10px 20px;width:max-content}.clusters__aggregation-value-container{align-items:center;display:flex;font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);max-width:230px}.clusters__aggregation-value-container:not(:last-child){margin-right:30px}.clusters__aggregation-label{color:var(--g-color-text-complementary);font-weight:200;margin-right:8px}.clusters__text{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.clusters__text:first-letter{color:var(--g-color-text-danger)}.clusters__description{max-width:200px;white-space:pre-wrap}.clusters__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;padding-left:5px}.clusters__table-content{height:100%;overflow:auto}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.clusters__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.clusters__table .data-table__head-row:first-child .data-table__th:nth-child(0),.clusters__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{box-shadow:unset}.clusters__balancer-cell{align-items:center;display:flex;flex-direction:row}.clusters__balancer-text{display:inline-block;margin-right:5px;max-width:92%;overflow:hidden;overflow-wrap:break-word!important;text-overflow:ellipsis}.clusters__balancer-icon{align-items:center;display:flex}.clusters__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-left:15px}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3779.66c0ef83.chunk.css b/ydb/core/viewer/monitoring/static/css/3779.66c0ef83.chunk.css deleted file mode 100644 index 52bf4a675f..0000000000 --- a/ydb/core/viewer/monitoring/static/css/3779.66c0ef83.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.kv-user{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.kv-user,.kv-user__name{display:inline-block}.kv-user__name:first-letter{color:var(--g-color-text-danger)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.clusters{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;padding-top:15px}.clusters__autorefresh{margin-left:auto}.clusters__cluster{align-items:center;display:flex}.clusters__cluster-status{border-radius:3px;height:18px;margin-right:8px;width:18px}.clusters__cluster-status span{align-items:center;display:flex}.clusters__cluster-status_type_green{background-color:var(--ydb-color-status-green)}.clusters__cluster-status_type_yellow{background-color:var(--ydb-color-status-yellow)}.clusters__cluster-status_type_blue{background-color:var(--ydb-color-status-blue)}.clusters__cluster-status_type_red{background:var(--ydb-color-status-red)}.clusters__cluster-status_type_grey{background:var(--ydb-color-status-grey)}.clusters__cluster-status_type_orange{background:var(--ydb-color-status-orange)}.clusters__cluster-name{color:var(--g-color-text-link);text-decoration:none;white-space:normal}.clusters__cluster-versions{text-decoration:none}.clusters__cluster-version{overflow:hidden;text-overflow:ellipsis}.clusters__cluster-dc{white-space:normal}.clusters__controls{display:flex;margin-bottom:20px}.clusters__control{margin-right:15px;width:200px}.clusters__control_wide{width:300px}.clusters__empty-cell{color:var(--g-color-text-secondary)}.clusters__tooltip-content{word-break:break-all}.clusters .g-progress__item{transition:none}.clusters__aggregation,.clusters__controls{margin-left:15px;margin-right:15px}.clusters__aggregation{align-items:center;background:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);border-radius:10px;display:flex;height:46px;margin-bottom:20px;padding:10px 20px;width:max-content}.clusters__aggregation-value-container{align-items:center;display:flex;font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);max-width:230px}.clusters__aggregation-value-container:not(:last-child){margin-right:30px}.clusters__aggregation-label{color:var(--g-color-text-complementary);font-weight:200;margin-right:8px}.clusters__text{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.clusters__text:first-letter{color:var(--g-color-text-danger)}.clusters__description{max-width:200px;white-space:pre-wrap}.clusters__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;padding-left:5px}.clusters__table-content{height:100%;overflow:auto}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.clusters__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.clusters__table .data-table__head-row:first-child .data-table__th:nth-child(0),.clusters__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{box-shadow:unset}.clusters__balancer-cell{align-items:center;display:flex;flex-direction:row}.clusters__balancer-text{display:inline-block;margin-right:5px;max-width:92%;overflow:hidden;overflow-wrap:break-word!important;text-overflow:ellipsis}.clusters__balancer-icon{align-items:center;display:flex}.clusters__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-left:15px}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3812.440ff245.chunk.css b/ydb/core/viewer/monitoring/static/css/3812.440ff245.chunk.css deleted file mode 100644 index f71ded6bac..0000000000 --- a/ydb/core/viewer/monitoring/static/css/3812.440ff245.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-group-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-storage-group-page__info,.ydb-storage-group-page__meta,.ydb-storage-group-page__storage-title,.ydb-storage-group-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-storage-group-page__meta{margin-top:20px}.ydb-storage-group-page__title{margin-bottom:60px}.ydb-storage-group-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}.ydb-storage-group-page__info{margin-top:var(--g-spacing-10)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/38527.13440c26.chunk.css b/ydb/core/viewer/monitoring/static/css/38527.13440c26.chunk.css new file mode 100644 index 0000000000..dc44a3c990 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/38527.13440c26.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/431.3826ea2f.chunk.css b/ydb/core/viewer/monitoring/static/css/431.3826ea2f.chunk.css deleted file mode 100644 index 66b142d435..0000000000 --- a/ydb/core/viewer/monitoring/static/css/431.3826ea2f.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.operations__search{width:220px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.schema-viewer__key-icon{margin-left:var(--g-spacing-half);position:absolute;top:3.5px;vertical-align:initial}.schema-viewer__id-wrapper{display:inline-block;padding-right:var(--g-spacing-1);position:relative}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:unset}.ydb-json-viewer{--data-table-row-height:20px;--toolbar-background-color:var(--g-color-base-background)}.ydb-json-viewer__toolbar{background-color:var(--toolbar-background-color);left:0;padding-bottom:var(--g-spacing-2);position:sticky;top:0;z-index:2}.ydb-json-viewer__content{font-family:var(--g-font-family-monospace)}.ydb-json-viewer__row{height:1em}.ydb-json-viewer__cell{position:relative}.ydb-json-viewer__cell,.ydb-json-viewer__cell *{white-space:nowrap!important}.ydb-json-viewer__collapsed{margin-left:-3ex;margin-top:-2px;position:absolute}.ydb-json-viewer__match-counter{text-wrap:nowrap;align-content:center;color:var(--g-color-text-secondary)}.ydb-json-viewer__key{color:var(--g-color-text-misc)}.ydb-json-viewer__value_type_string{color:var(--color-unipika-string)}.ydb-json-viewer__value_type_boolean{color:var(--color-unipika-bool)}.ydb-json-viewer__value_type_null{color:var(--color-unipika-null)}.ydb-json-viewer__value_type_int64{color:var(--color-unipika-int)}.ydb-json-viewer__value_type_double{color:var(--color-unipika-float)}.ydb-json-viewer__filter{width:300px}.ydb-json-viewer__filtered_highlighted{background-color:var(--g-color-base-generic-medium)}.ydb-json-viewer__filtered_clickable{color:var(--g-color-text-info);cursor:pointer}.ydb-json-viewer__match-btn{margin-left:-1px}.ydb-json-viewer__full-value{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:var(--g-spacing-3) 0;max-height:90vh;max-width:90vw;overflow:hidden auto;word-break:break-all}.ydb-json-viewer__extra-tools{margin-left:1ex}.ydb-json-viewer .data-table__head{display:none}.ydb-json-viewer .data-table__td{overflow:visible;padding:0}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;padding:0 20px 20px 0;position:relative}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__info-panel .ydb-json-viewer{--toolbar-background-color:var(--g-color-base-simple-hover-solid)}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.healthcheck__icon-warn{color:var(--g-color-text-warning)}.healthcheck__icon-wrapper{display:flex}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:unset}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:unset}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.ydb-fullscreen{flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-fullscreen__content{display:flex;height:100%;overflow:auto;width:100%}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.ydb-query-result-table__table-wrapper{height:0}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;flex-shrink:0;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex;gap:var(--g-spacing-1)}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:var(--g-spacing-1)}.kv-preview__controls-left{display:flex;gap:var(--g-spacing-1)}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.ydb-query-editor-button__explain-button,.ydb-query-editor-button__run-button,.ydb-query-editor-button__stop-button{width:92px}.ydb-query-editor-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-editor-controls{align-items:center;display:flex;flex:0 0 60px;gap:24px;justify-content:space-between;min-height:60px}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.kv-query-execution-status{align-items:center;display:flex;gap:4px}.ydb-query-settings-banner,.ydb-query-stopped-banner{margin-left:var(--g-spacing-4);margin-right:var(--g-spacing-4);margin-top:var(--g-spacing-4)}.ydb-query-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-result-stub-message{padding:15px 20px}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.query-info-dropdown__menu-item{align-items:start}.query-info-dropdown__menu-item-content{display:flex;flex-direction:column;padding:var(--g-spacing-1) 0}.query-info-dropdown__icon{margin-right:var(--g-spacing-2);margin-top:var(--g-spacing-2)}.ydb-query-json-viewer{height:100%;padding:15px 0;width:100%}.ydb-query-json-viewer__tree{height:100%;overflow-y:auto;padding:0 10px;width:100%}.ydb-query-result-error__message{padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__tabs{margin-bottom:var(--g-spacing-1);padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-1)}.ydb-query-result-sets-viewer__title{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-result-sets-viewer__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-result-sets-viewer__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-result-sets-viewer__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-result-sets-viewer__result .data-table__table-wrapper{padding-bottom:0}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.ydb-query-simplified-plan{height:100%;overflow:auto;padding:0 15px 15px;width:100%}.ydb-query-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-simplified-plan__operation-name{font-weight:500;height:100%;max-width:100%;position:relative}.ydb-query-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:unset;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_horizontal{bottom:unset;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_first{height:calc(100% - 30px)}.ydb-query-simplified-plan__operation-content{height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-simplified-plan__operation-name-content{display:flex;flex-grow:1}.ydb-query-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:var(--g-spacing-3) var(--g-spacing-4);position:sticky;top:0;z-index:2}.ydb-query-result__controls-left{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-result__controls-right{display:flex;gap:4px}.ydb-query-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:0}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.ydb-object-summary__overview-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-object-summary__overview-item-content{text-align:end;white-space:nowrap}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/47512.67d2c551.chunk.css b/ydb/core/viewer/monitoring/static/css/47512.67d2c551.chunk.css new file mode 100644 index 0000000000..d58b808d85 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/47512.67d2c551.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.tenants__format-label{margin-right:15px}.tenants__title{text-align:center}.tenants__tooltip{animation:none!important}.tenants__search{width:238px}.tenants__tablets{padding:0!important}.tenants__tablets .tablets-viewer__grid{grid-gap:20px}.tenants__type{align-items:center;display:flex;flex-direction:row;gap:10px}.tenants__type-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.tenants__type-button{display:none}.data-table__row:hover .tenants__type-button{display:block}.tenants__name{overflow:hidden}.tenants__controls{width:100%}.tenants__table-wrapper{width:max-content}.tenants__create-database{margin:0 0 0 auto;position:sticky;right:0}.tenants__remove-db{color:var(--ydb-color-status-red)}.ydb-cluster-versions-bar{display:flex;flex-direction:column;min-width:600px}.ydb-cluster-versions-bar .g-progress{width:100%}.ydb-cluster-versions-bar__versions{display:flex;flex-flow:row wrap;margin-top:6px}.ydb-cluster-versions-bar__version-title{margin-left:3px;white-space:nowrap}.ydb-cluster-versions-bar .g-progress__stack{cursor:pointer}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.ydb-versions-nodes-tree-title__overview{align-items:center;display:flex;justify-content:space-between;width:100%}.ydb-versions-nodes-tree-title__overview-info{align-items:center;display:flex;margin-left:25px}.ydb-versions-nodes-tree-title__overview-info>:not(:first-child){margin-left:30px}.ydb-versions-nodes-tree-title__overview-container{align-items:center;display:flex}.ydb-versions-nodes-tree-title__info-label{color:var(--g-color-text-complementary);font-weight:200}.ydb-versions-nodes-tree-title__info-label_margin_left{margin-left:5px}.ydb-versions-nodes-tree-title__info-label_margin_right{margin-right:5px}.ydb-versions-nodes-tree-title__version-color{border-radius:100%;height:16px;margin-right:10px;width:16px}.ydb-versions-nodes-tree-title__version-progress{align-items:center;display:flex;width:250px}.ydb-versions-nodes-tree-title__version-progress .g-progress{width:200px}.ydb-versions-nodes-tree-title__overview-title{align-items:center;display:flex}.ydb-versions-nodes-tree-title__clipboard-button{color:var(--g-color-text-secondary);margin-left:8px;opacity:0}.ydb-tree-view__item:hover .ydb-versions-nodes-tree-title__clipboard-button,.ydb-versions-nodes-tree-title__clipboard-button:focus-visible{opacity:1}.ydb-versions-grouped-node-tree_first-level{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px}.ydb-versions-grouped-node-tree__dt-wrapper{margin-left:24px;margin-right:24px;overflow:auto hidden;position:relative;z-index:0}.ydb-versions-grouped-node-tree .ydb-tree-view{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-versions-grouped-node-tree .ydb-tree-view .ydb-tree-view{margin-left:24px}.ydb-versions-grouped-node-tree .tree-view_item{border:0;border-radius:10px;height:40px;margin:0;padding:0 10px!important}.ydb-versions-grouped-node-tree .tree-view_children .tree-view_item{width:100%}.ydb-versions-grouped-node-tree .g-progress__stack{cursor:pointer}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.ydb-versions{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.ydb-versions__controls{align-items:center;display:flex;padding:0 0 20px}.ydb-versions__controls .ydb-versions__label{font-weight:500;margin-right:10px}.ydb-versions__controls .ydb-versions__checkbox{margin:0}.ydb-versions__controls>*{margin-right:25px}.ydb-versions__overall-wrapper{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px;padding:20px}.ydb-versions__overall-progress{border-radius:5px;height:20px;line-height:20px}.ydb-versions__overall-progress .g-progress__stack{height:20px;line-height:20px}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-doughnut-metrics{--doughnut-border:11px;--doughnut-color:var(--ydb-color-status-green)}.ydb-doughnut-metrics__doughnut{aspect-ratio:1;background-color:var(--doughnut-color);border-radius:50%;position:relative;width:172px}.ydb-doughnut-metrics__doughnut:before{aspect-ratio:1;background-color:var(--g-color-base-background);border-radius:50%;content:"";display:block;height:calc(100% - var(--doughnut-border)*2);transform:translate(var(--doughnut-border),var(--doughnut-border))}.ydb-doughnut-metrics__doughnut_status_warning{--doughnut-color:var(--ydb-color-status-yellow)}.ydb-doughnut-metrics__doughnut_status_danger{--doughnut-color:var(--ydb-color-status-red)}.ydb-doughnut-metrics__text-wrapper{--wrapper-indent:calc(var(--doughnut-border) + 5px);align-items:center;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;position:absolute;right:var(--wrapper-indent);text-align:center;top:var(--wrapper-indent);width:calc(100% - var(--wrapper-indent)*2)}.ydb-doughnut-metrics__value{bottom:20px;position:absolute}.ydb-doughnut-metrics__legend{height:50%;white-space:pre-wrap}.ydb-disk-groups-stats{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.gc-definition-list__list{margin:0}.gc-definition-list__group-title{margin-block-end:var(--g-spacing-3)}.gc-definition-list__group-title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:300px;overflow:hidden;position:relative;width:300px}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.gc-definition-list_vertical .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list_vertical .gc-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.gc-definition-list_vertical .gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-3)}.gc-definition-list_vertical .gc-definition-list__group-title:not(:first-of-type),.gc-definition-list_vertical .gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-8)}.ydb-cluster-dashboard{left:0;padding-top:16px;position:sticky}.ydb-cluster-dashboard__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-cluster-dashboard__card{display:flex;flex-direction:column;height:252px}.ydb-cluster-dashboard__card_size_s{height:unset}.ydb-cluster-dashboard__card_size_l{height:unset;width:100%}.ydb-cluster-dashboard__skeleton-wrapper{border:unset;padding:unset}.ydb-cluster-dashboard__doughnut{margin-top:auto}.ydb-cluster-dashboard__cards{display:flex}.ydb-cluster-dashboard__card-title{margin-bottom:var(--g-spacing-2)}.ydb-cluster-dashboard__skeleton{height:100%}.ydb-cluster-dashboard__cards-container{display:grid;gap:var(--g-spacing-4);grid-auto-flow:column dense;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,118px)}.ydb-cluster-dashboard__double-height{grid-row:span 2}.ydb-nodes-state{--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);align-items:center;background-color:var(--entity-state-background-color);border-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;height:20px;justify-content:center;min-width:26px;padding:0 var(--g-spacing-1);width:max-content}.ydb-nodes-state_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.ydb-nodes-state_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.ydb-nodes-state_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.ydb-nodes-state_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.ydb-nodes-state_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.ydb-nodes-state__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.cluster-info{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px 0}.cluster-info__skeleton{margin-top:5px}.cluster-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.cluster-info__dc{height:20px}.cluster-info__clipboard-button{align-items:center;display:flex;margin-left:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-cluster{display:flex;flex-direction:column;flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-cluster__header{left:0;padding:20px 0;position:sticky}.ydb-cluster__title{font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.ydb-cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.ydb-cluster__tabs-sticky-wrapper{background-color:var(--g-color-base-background);left:0;margin-right:-40px;margin-top:20px;padding-left:20px;padding-right:40px;position:sticky;top:0;transform:translateX(-20px);z-index:3}.ydb-cluster__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex}.ydb-cluster__sticky-wrapper{left:0;position:sticky;top:74px;z-index:4}.ydb-cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-54px}.ydb-cluster .ydb-table-with-controls-layout__controls-wrapper{top:40px}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/8593.95df9723.chunk.css b/ydb/core/viewer/monitoring/static/css/48593.95df9723.chunk.css index fdf7b3c368..fdf7b3c368 100644 --- a/ydb/core/viewer/monitoring/static/css/8593.95df9723.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/48593.95df9723.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/49393.82d9be05.chunk.css b/ydb/core/viewer/monitoring/static/css/49393.82d9be05.chunk.css new file mode 100644 index 0000000000..bfb7dea434 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/49393.82d9be05.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.link,.ydb-tablet-info__link{color:var(--g-color-text-link);text-decoration:none}.link:hover,.ydb-tablet-info__link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.gt-table{border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{box-sizing:border-box;height:inherit;padding:0;text-align:start}.gt-table__cell_pinned,.gt-table__footer-cell_pinned,.gt-table__header-cell_pinned{position:sticky;z-index:1}.gt-table__sort{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute}.gt-table_with-row-virtualization .gt-table__row_empty{position:relative}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.ydb-tablet-storage-info__metrics-cell{white-space:nowrap}.ydb-tablet-storage-info__metrics-cell,.ydb-tablet-storage-info__name-wrapper{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-tablet-storage-info__with-padding{padding-left:calc(var(--g-spacing-2) + var(--g-spacing-6))}.ydb-tablet-storage-info__name-content_no-control{padding-left:var(--g-spacing-6)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-page{font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-tablet-page__placeholder{align-items:center;display:flex;flex:1 1 auto;justify-content:center}.ydb-tablet-page__loader{margin-left:var(--g-spacing-2)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/5438.615bd68a.chunk.css b/ydb/core/viewer/monitoring/static/css/5438.615bd68a.chunk.css deleted file mode 100644 index f2b562beec..0000000000 --- a/ydb/core/viewer/monitoring/static/css/5438.615bd68a.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-connect-to-db-syntax-highlighter__wrapper{height:100%;position:relative;z-index:0}.ydb-connect-to-db-syntax-highlighter__sticky-container{background-color:var(--g-color-base-background);left:0;position:sticky;top:52px;top:0;z-index:1}.ydb-connect-to-db-syntax-highlighter__copy{position:absolute;right:14px;top:13px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/5652.261c3a7a.chunk.css b/ydb/core/viewer/monitoring/static/css/5652.261c3a7a.chunk.css deleted file mode 100644 index c18442e657..0000000000 --- a/ydb/core/viewer/monitoring/static/css/5652.261c3a7a.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.tenants__format-label{margin-right:15px}.tenants__title{text-align:center}.tenants__tooltip{animation:none!important}.tenants__search{width:238px}.tenants__tablets{padding:0!important}.tenants__tablets .tablets-viewer__grid{grid-gap:20px}.tenants__type{align-items:center;display:flex;flex-direction:row;gap:10px}.tenants__type-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.tenants__type-button{display:none}.data-table__row:hover .tenants__type-button{display:block}.tenants__name{overflow:hidden}.ydb-cluster-versions-bar{display:flex;flex-direction:column;min-width:600px}.ydb-cluster-versions-bar .g-progress{width:100%}.ydb-cluster-versions-bar__versions{display:flex;flex-flow:row wrap;margin-top:6px}.ydb-cluster-versions-bar__version-title{margin-left:3px;white-space:nowrap}.ydb-cluster-versions-bar .g-progress__stack{cursor:pointer}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.ydb-versions-nodes-tree-title__overview{align-items:center;display:flex;justify-content:space-between;width:100%}.ydb-versions-nodes-tree-title__overview-info{align-items:center;display:flex;margin-left:25px}.ydb-versions-nodes-tree-title__overview-info>:not(:first-child){margin-left:30px}.ydb-versions-nodes-tree-title__overview-container{align-items:center;display:flex}.ydb-versions-nodes-tree-title__info-label{color:var(--g-color-text-complementary);font-weight:200}.ydb-versions-nodes-tree-title__info-label_margin_left{margin-left:5px}.ydb-versions-nodes-tree-title__info-label_margin_right{margin-right:5px}.ydb-versions-nodes-tree-title__version-color{border-radius:100%;height:16px;margin-right:10px;width:16px}.ydb-versions-nodes-tree-title__version-progress{align-items:center;display:flex;width:250px}.ydb-versions-nodes-tree-title__version-progress .g-progress{width:200px}.ydb-versions-nodes-tree-title__overview-title{align-items:center;display:flex}.ydb-versions-nodes-tree-title__clipboard-button{color:var(--g-color-text-secondary);margin-left:8px;opacity:0}.ydb-tree-view__item:hover .ydb-versions-nodes-tree-title__clipboard-button,.ydb-versions-nodes-tree-title__clipboard-button:focus-visible{opacity:1}.ydb-versions-grouped-node-tree_first-level{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px}.ydb-versions-grouped-node-tree__dt-wrapper{margin-left:24px;margin-right:24px;overflow:auto hidden;position:relative;z-index:0}.ydb-versions-grouped-node-tree .ydb-tree-view{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-versions-grouped-node-tree .ydb-tree-view .ydb-tree-view{margin-left:24px}.ydb-versions-grouped-node-tree .tree-view_item{border:0;border-radius:10px;height:40px;margin:0;padding:0 10px!important}.ydb-versions-grouped-node-tree .tree-view_children .tree-view_item{width:100%}.ydb-versions-grouped-node-tree .g-progress__stack{cursor:pointer}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.ydb-versions{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.ydb-versions__controls{align-items:center;display:flex;padding:0 0 20px}.ydb-versions__controls .ydb-versions__label{font-weight:500;margin-right:10px}.ydb-versions__controls .ydb-versions__checkbox{margin:0}.ydb-versions__controls>*{margin-right:25px}.ydb-versions__overall-wrapper{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px;padding:20px}.ydb-versions__overall-progress{border-radius:5px;height:20px;line-height:20px}.ydb-versions__overall-progress .g-progress__stack{height:20px;line-height:20px}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-doughnut-metrics{--doughnut-border:11px;--doughnut-color:var(--ydb-color-status-green)}.ydb-doughnut-metrics__doughnut{aspect-ratio:1;background-color:var(--doughnut-color);border-radius:50%;position:relative;width:172px}.ydb-doughnut-metrics__doughnut:before{aspect-ratio:1;background-color:var(--g-color-base-background);border-radius:50%;content:"";display:block;height:calc(100% - var(--doughnut-border)*2);transform:translate(var(--doughnut-border),var(--doughnut-border))}.ydb-doughnut-metrics__doughnut_status_warning{--doughnut-color:var(--ydb-color-status-yellow)}.ydb-doughnut-metrics__doughnut_status_danger{--doughnut-color:var(--ydb-color-status-red)}.ydb-doughnut-metrics__text-wrapper{--wrapper-indent:calc(var(--doughnut-border) + 5px);align-items:center;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;position:absolute;right:var(--wrapper-indent);text-align:center;top:var(--wrapper-indent);width:calc(100% - var(--wrapper-indent)*2)}.ydb-doughnut-metrics__value{bottom:20px;position:absolute}.ydb-doughnut-metrics__legend{height:50%;white-space:pre-wrap}.ydb-disk-groups-stats{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.gc-definition-list__list{margin:0}.gc-definition-list__group-title{margin-block-end:var(--g-spacing-3)}.gc-definition-list__group-title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:300px;overflow:hidden;position:relative;width:300px}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.gc-definition-list_vertical .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list_vertical .gc-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.gc-definition-list_vertical .gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-3)}.gc-definition-list_vertical .gc-definition-list__group-title:not(:first-of-type),.gc-definition-list_vertical .gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-8)}.ydb-cluster-dashboard{left:0;padding-top:16px;position:sticky}.ydb-cluster-dashboard__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-cluster-dashboard__card{display:flex;flex-direction:column;height:252px}.ydb-cluster-dashboard__card_size_s{height:unset}.ydb-cluster-dashboard__card_size_l{height:unset;width:100%}.ydb-cluster-dashboard__skeleton-wrapper{border:unset;padding:unset}.ydb-cluster-dashboard__doughnut{margin-top:auto}.ydb-cluster-dashboard__cards{display:flex}.ydb-cluster-dashboard__card-title{margin-bottom:var(--g-spacing-2)}.ydb-cluster-dashboard__skeleton{height:100%}.ydb-cluster-dashboard__cards-container{display:grid;gap:var(--g-spacing-4);grid-auto-flow:column dense;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,118px)}.ydb-cluster-dashboard__double-height{grid-row:span 2}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.ydb-nodes-state{--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);align-items:center;background-color:var(--entity-state-background-color);border-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;height:20px;justify-content:center;min-width:26px;padding:0 var(--g-spacing-1);width:max-content}.ydb-nodes-state_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.ydb-nodes-state_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.ydb-nodes-state_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.ydb-nodes-state_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.ydb-nodes-state_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.ydb-nodes-state__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.cluster-info{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px 0}.cluster-info__skeleton{margin-top:5px}.cluster-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.cluster-info__dc{height:20px}.cluster-info__clipboard-button{align-items:center;display:flex;margin-left:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-cluster{flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-cluster__header{left:0;padding:20px 0;position:sticky}.ydb-cluster__title{font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.ydb-cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.ydb-cluster__tabs-sticky-wrapper{background-color:var(--g-color-base-background);left:0;margin-right:-40px;margin-top:20px;padding-left:20px;padding-right:40px;position:sticky;top:0;transform:translateX(-20px);z-index:3}.ydb-cluster__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex}.ydb-cluster__sticky-wrapper{left:0;position:sticky;top:66px;z-index:4}.ydb-cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-46px}.ydb-cluster .ydb-table-with-controls-layout__controls-wrapper{top:40px}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/58705.b781fc86.chunk.css b/ydb/core/viewer/monitoring/static/css/58705.b781fc86.chunk.css new file mode 100644 index 0000000000..174754d671 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/58705.b781fc86.chunk.css @@ -0,0 +1 @@ +.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-table-with-controls-layout{--data-table-sticky-top-offset:62px;box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:unset;border:unset;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.ydb-search{min-width:100px}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-simple-hover-solid);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;transform:translateZ(0);z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation:none!important}.hover-popup{padding:var(--g-spacing-3)}.memory-viewer{min-width:150px;padding:0 var(--g-spacing-1);position:relative;z-index:0}.memory-viewer__progress-container{background:var(--g-color-base-generic);border-radius:2px;height:20px;overflow:hidden;position:relative}.memory-viewer__container{display:flex;padding:2px 0}.memory-viewer__legend{border-radius:2px;bottom:2px;height:20px;position:absolute;width:20px}.memory-viewer__legend_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__legend_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__legend_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__legend_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__legend_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__segment{height:100%;position:absolute}.memory-viewer__segment_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__segment_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__segment_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__segment_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__segment_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__name{padding-left:28px}.memory-viewer_theme_dark{color:var(--g-color-text-light-primary)}.memory-viewer_theme_dark .memory-viewer__segment{opacity:.75}.memory-viewer_status_good .memory-viewer__progress-container{background-color:var(--g-color-base-positive-light)}.memory-viewer_status_warning .memory-viewer__progress-container{background-color:var(--g-color-base-yellow-light)}.memory-viewer_status_danger .memory-viewer__progress-container{background-color:var(--g-color-base-danger-light)}.memory-viewer__text{align-items:center;display:flex;justify-content:center}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-pools-graph{display:flex}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-nodes-columns__column-cpu,.ydb-nodes-columns__column-ram{min-width:40px}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.pdisk-storage{display:flex;flex-direction:column;justify-content:flex-end;min-width:var(--pdisk-min-width);position:relative;width:var(--pdisk-width)}.pdisk-storage__content{border-radius:4px;display:block;flex:1 1;position:relative}.pdisk-storage__vdisks{display:flex;flex:0 0 auto;gap:var(--pdisk-gap-width);margin-bottom:4px;white-space:nowrap}.pdisk-storage__vdisks-item{flex:0 0 var(--pdisk-vdisk-width);min-width:var(--pdisk-vdisk-width)}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{margin-right:4px;min-width:80px}.ydb-storage-disks__pdisk-item_with-dc-margin{margin-right:12px}.ydb-storage-disks__pdisk-item:last-child{margin-right:0}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:6px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.ydb-storage-vdisks__wrapper{display:flex}.ydb-storage-vdisks__item{margin-right:6px;width:90px}.ydb-storage-vdisks__item_with-dc-margin{margin-right:12px}.ydb-storage-vdisks__item:last-child{margin-right:0}.data-table__row:hover .ydb-storage-vdisks__item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__pool-name-wrapper{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.ydb-storage-groups-columns__group-id{font-weight:500;margin-right:var(--g-spacing-1)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-storage-nodes__node_unavailable{opacity:.6}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{--pdisk-vdisk-width:3px;--pdisk-gap-width:2px;--pdisk-min-width:120px;--pdisk-margin:10px;--pdisk-width:max(calc(var(--maximum-slots, 1)*var(--pdisk-vdisk-width) + (var(--maximum-slots, 1) - 1)*var(--pdisk-gap-width)),var(--pdisk-min-width));--pdisks-container-width:calc(var(--maximum-disks, 1)*var(--pdisk-width) + (var(--maximum-disks, 1) - 1)*var(--pdisk-margin));display:flex;gap:var(--pdisk-margin);height:40px;width:var(--pdisks-container-width)}.ydb-storage-nodes-columns__pdisks-item{display:flex;flex-shrink:0}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/2031.1e565ac5.chunk.css b/ydb/core/viewer/monitoring/static/css/58884.1e565ac5.chunk.css index fc2cf1d3d8..fc2cf1d3d8 100644 --- a/ydb/core/viewer/monitoring/static/css/2031.1e565ac5.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/58884.1e565ac5.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/6030.05f92b81.chunk.css b/ydb/core/viewer/monitoring/static/css/6030.05f92b81.chunk.css deleted file mode 100644 index dae69cb8eb..0000000000 --- a/ydb/core/viewer/monitoring/static/css/6030.05f92b81.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/64464.f737743e.chunk.css b/ydb/core/viewer/monitoring/static/css/64464.f737743e.chunk.css new file mode 100644 index 0000000000..47a0affaec --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/64464.f737743e.chunk.css @@ -0,0 +1 @@ +.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{--data-table-sticky-top-offset:62px;box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:unset;border:unset;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.ydb-search{min-width:100px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-simple-hover-solid);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;transform:translateZ(0);z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation:none!important}.hover-popup{padding:var(--g-spacing-3)}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.memory-viewer{min-width:150px;padding:0 var(--g-spacing-1);position:relative;z-index:0}.memory-viewer__progress-container{background:var(--g-color-base-generic);border-radius:2px;height:20px;overflow:hidden;position:relative}.memory-viewer__container{display:flex;padding:2px 0}.memory-viewer__legend{border-radius:2px;bottom:2px;height:20px;position:absolute;width:20px}.memory-viewer__legend_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__legend_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__legend_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__legend_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__legend_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__segment{height:100%;position:absolute}.memory-viewer__segment_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__segment_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__segment_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__segment_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__segment_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__name{padding-left:28px}.memory-viewer_theme_dark{color:var(--g-color-text-light-primary)}.memory-viewer_theme_dark .memory-viewer__segment{opacity:.75}.memory-viewer_status_good .memory-viewer__progress-container{background-color:var(--g-color-base-positive-light)}.memory-viewer_status_warning .memory-viewer__progress-container{background-color:var(--g-color-base-yellow-light)}.memory-viewer_status_danger .memory-viewer__progress-container{background-color:var(--g-color-base-danger-light)}.memory-viewer__text{align-items:center;display:flex;justify-content:center}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-pools-graph{display:flex}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-nodes-columns__column-cpu,.ydb-nodes-columns__column-ram{min-width:40px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.operations__search{width:220px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.pdisk-storage{display:flex;flex-direction:column;justify-content:flex-end;min-width:var(--pdisk-min-width);position:relative;width:var(--pdisk-width)}.pdisk-storage__content{border-radius:4px;display:block;flex:1 1;position:relative}.pdisk-storage__vdisks{display:flex;flex:0 0 auto;gap:var(--pdisk-gap-width);margin-bottom:4px;white-space:nowrap}.pdisk-storage__vdisks-item{flex:0 0 var(--pdisk-vdisk-width);min-width:var(--pdisk-vdisk-width)}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{margin-right:4px;min-width:80px}.ydb-storage-disks__pdisk-item_with-dc-margin{margin-right:12px}.ydb-storage-disks__pdisk-item:last-child{margin-right:0}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:6px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.ydb-storage-vdisks__wrapper{display:flex}.ydb-storage-vdisks__item{margin-right:6px;width:90px}.ydb-storage-vdisks__item_with-dc-margin{margin-right:12px}.ydb-storage-vdisks__item:last-child{margin-right:0}.data-table__row:hover .ydb-storage-vdisks__item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__pool-name-wrapper{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.ydb-storage-groups-columns__group-id{font-weight:500;margin-right:var(--g-spacing-1)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-storage-nodes__node_unavailable{opacity:.6}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{--pdisk-vdisk-width:3px;--pdisk-gap-width:2px;--pdisk-min-width:120px;--pdisk-margin:10px;--pdisk-width:max(calc(var(--maximum-slots, 1)*var(--pdisk-vdisk-width) + (var(--maximum-slots, 1) - 1)*var(--pdisk-gap-width)),var(--pdisk-min-width));--pdisks-container-width:calc(var(--maximum-disks, 1)*var(--pdisk-width) + (var(--maximum-disks, 1) - 1)*var(--pdisk-margin));display:flex;gap:var(--pdisk-margin);height:40px;width:var(--pdisks-container-width)}.ydb-storage-nodes-columns__pdisks-item{display:flex;flex-shrink:0}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.schema-viewer__key-icon{margin-left:var(--g-spacing-half);position:absolute;top:3.5px;vertical-align:initial}.schema-viewer__id-wrapper{display:inline-block;padding-right:var(--g-spacing-1);position:relative}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:unset}.ydb-json-viewer{--data-table-row-height:20px;--toolbar-background-color:var(--g-color-base-background)}.ydb-json-viewer__toolbar{background-color:var(--toolbar-background-color);left:0;padding-bottom:var(--g-spacing-2);position:sticky;top:0;z-index:2}.ydb-json-viewer__content{font-family:var(--g-font-family-monospace)}.ydb-json-viewer__row{height:1em}.ydb-json-viewer__cell{position:relative}.ydb-json-viewer__cell,.ydb-json-viewer__cell *{white-space:nowrap!important}.ydb-json-viewer__collapsed{margin-left:-3ex;margin-top:-2px;position:absolute}.ydb-json-viewer__match-counter{text-wrap:nowrap;align-content:center;color:var(--g-color-text-secondary)}.ydb-json-viewer__key{color:var(--g-color-text-misc)}.ydb-json-viewer__value_type_string{color:var(--color-unipika-string)}.ydb-json-viewer__value_type_boolean{color:var(--color-unipika-bool)}.ydb-json-viewer__value_type_null{color:var(--color-unipika-null)}.ydb-json-viewer__value_type_int64{color:var(--color-unipika-int)}.ydb-json-viewer__value_type_double{color:var(--color-unipika-float)}.ydb-json-viewer__filter{width:300px}.ydb-json-viewer__filtered_highlighted{background-color:var(--g-color-base-generic-medium)}.ydb-json-viewer__filtered_clickable{color:var(--g-color-text-info);cursor:pointer}.ydb-json-viewer__match-btn{margin-left:-1px}.ydb-json-viewer__full-value{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:var(--g-spacing-3) 0;max-height:90vh;max-width:90vw;overflow:hidden auto;word-break:break-all}.ydb-json-viewer__extra-tools{margin-left:1ex}.ydb-json-viewer .data-table__head{display:none}.ydb-json-viewer .data-table__td{overflow:visible;padding:0}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;padding:0 20px 20px 0;position:relative}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-syntax-highlighter{height:100%;position:relative;z-index:0}.ydb-syntax-highlighter__sticky-container{background-color:var(--g-color-base-background);left:0;position:sticky;top:52px;top:0;z-index:1}.ydb-syntax-highlighter__copy{position:absolute;right:14px;top:13px}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__info-panel .ydb-json-viewer{--toolbar-background-color:var(--g-color-base-simple-hover-solid)}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.healthcheck__icon-warn{color:var(--g-color-text-warning)}.healthcheck__icon-wrapper{display:flex}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:unset}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:unset}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.ydb-fullscreen{flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-fullscreen__content{display:flex;height:100%;overflow:auto;width:100%}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.ydb-query-result-table__table-wrapper{height:0}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;flex-shrink:0;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex;gap:var(--g-spacing-1)}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:var(--g-spacing-1)}.kv-preview__controls-left{display:flex;gap:var(--g-spacing-1)}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.ydb-query-editor-button__explain-button,.ydb-query-editor-button__run-button,.ydb-query-editor-button__stop-button{width:92px}.ydb-query-editor-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-editor-controls{align-items:center;display:flex;flex:0 0 60px;gap:24px;justify-content:space-between;min-height:60px}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.kv-query-execution-status{align-items:center;display:flex;gap:4px}.ydb-query-settings-banner,.ydb-query-stopped-banner{margin-left:var(--g-spacing-4);margin-right:var(--g-spacing-4);margin-top:var(--g-spacing-4)}.ydb-query-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-result-stub-message{padding:15px 20px}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.query-info-dropdown__menu-item{align-items:start}.query-info-dropdown__menu-item-content{display:flex;flex-direction:column;padding:var(--g-spacing-1) 0}.query-info-dropdown__icon{margin-right:var(--g-spacing-2);margin-top:var(--g-spacing-2)}.ydb-query-json-viewer{height:100%;padding:15px 0;width:100%}.ydb-query-json-viewer__tree{height:100%;overflow-y:auto;padding:0 10px;width:100%}.ydb-query-result-error__message{padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__tabs{margin-bottom:var(--g-spacing-1);padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-1)}.ydb-query-result-sets-viewer__title{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-4);padding-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-result-sets-viewer__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-result-sets-viewer__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-result-sets-viewer__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-result-sets-viewer__result .data-table__table-wrapper{padding-bottom:0}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.ydb-query-simplified-plan{height:100%;overflow:auto;padding:0 15px 15px;width:100%}.ydb-query-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-simplified-plan__operation-name{font-weight:500;height:100%;max-width:100%;position:relative}.ydb-query-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:unset;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_horizontal{bottom:unset;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_first{height:calc(100% - 30px)}.ydb-query-simplified-plan__operation-content{height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-simplified-plan__operation-name-content{display:flex;flex-grow:1}.ydb-query-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:var(--g-spacing-3) var(--g-spacing-4);position:sticky;top:0;z-index:2}.ydb-query-result__controls-left{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-result__controls-right{display:flex;gap:4px}.ydb-query-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-timeout-label__switch{align-items:center;height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-1)}.ydb-timeout-label__label-title,.ydb-timeout-label__switch-title{align-items:center;flex:4 1;font-weight:500;margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-timeout-label__label-title{line-height:var(--g-text-header-2-line-height)}.ydb-query-settings-timeout__control-wrapper{align-items:center;display:flex;flex:6 1}.ydb-query-settings-timeout__input{width:50%}.ydb-query-settings-timeout__postfix{color:var(--g-color-text-secondary);margin-right:var(--g-spacing-2)}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows{margin-right:var(--g-spacing-2);width:50%}.ydb-query-settings-dialog__postfix{color:var(--g-color-text-secondary);margin-right:var(--g-spacing-2)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:0}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.ydb-object-summary__overview-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-object-summary__overview-item-content{text-align:end;white-space:nowrap}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/684.a4d29f42.chunk.css b/ydb/core/viewer/monitoring/static/css/684.a4d29f42.chunk.css deleted file mode 100644 index 1bde6a4e48..0000000000 --- a/ydb/core/viewer/monitoring/static/css/684.a4d29f42.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/9802.d30d0ff3.chunk.css b/ydb/core/viewer/monitoring/static/css/71867.d30d0ff3.chunk.css index d1aef8129f..d1aef8129f 100644 --- a/ydb/core/viewer/monitoring/static/css/9802.d30d0ff3.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/71867.d30d0ff3.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/75510.b1faff6b.chunk.css b/ydb/core/viewer/monitoring/static/css/75510.b1faff6b.chunk.css new file mode 100644 index 0000000000..082605d3ab --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/75510.b1faff6b.chunk.css @@ -0,0 +1 @@ +.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-group-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-storage-group-page__info,.ydb-storage-group-page__meta,.ydb-storage-group-page__storage-title,.ydb-storage-group-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-storage-group-page__meta{margin-top:20px}.ydb-storage-group-page__title{margin-bottom:60px}.ydb-storage-group-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}.ydb-storage-group-page__info{margin-top:var(--g-spacing-10)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/8393.09a78946.chunk.css b/ydb/core/viewer/monitoring/static/css/8393.09a78946.chunk.css deleted file mode 100644 index 203ba769f4..0000000000 --- a/ydb/core/viewer/monitoring/static/css/8393.09a78946.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__section{display:flex;flex-direction:column;max-width:500px;min-width:300px;width:max-content}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.full-node-viewer__role{color:var(--g-color-text-secondary)}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:unset;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{height:100%;overflow:auto;padding:0 20px;position:relative}.node__error,.node__info,.node__meta,.node__tabs,.node__title{left:0;margin-bottom:20px;position:sticky}.node__meta{margin-top:20px}.node__error,.node__tabs{margin-bottom:0}.node__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/85917.9f2a4a06.chunk.css b/ydb/core/viewer/monitoring/static/css/85917.9f2a4a06.chunk.css new file mode 100644 index 0000000000..44c0469e71 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/85917.9f2a4a06.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/99.7cffb936.chunk.css b/ydb/core/viewer/monitoring/static/css/90099.7cffb936.chunk.css index eed4fa0c67..eed4fa0c67 100644 --- a/ydb/core/viewer/monitoring/static/css/99.7cffb936.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/90099.7cffb936.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/9393.c6fb8cd9.chunk.css b/ydb/core/viewer/monitoring/static/css/9393.c6fb8cd9.chunk.css deleted file mode 100644 index d028999af5..0000000000 --- a/ydb/core/viewer/monitoring/static/css/9393.c6fb8cd9.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.link,.ydb-tablet-info__link{color:var(--g-color-text-link);text-decoration:none}.link:hover,.ydb-tablet-info__link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.gt-table{border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{box-sizing:border-box;height:inherit;padding:0;text-align:start}.gt-table__cell_pinned,.gt-table__footer-cell_pinned,.gt-table__header-cell_pinned{position:sticky;z-index:1}.gt-table__sort{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute}.gt-table_with-row-virtualization .gt-table__row_empty{position:relative}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.ydb-tablet-storage-info__metrics-cell{white-space:nowrap}.ydb-tablet-storage-info__metrics-cell,.ydb-tablet-storage-info__name-wrapper{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-tablet-storage-info__with-padding{padding-left:calc(var(--g-spacing-2) + var(--g-spacing-6))}.ydb-tablet-storage-info__name-content_no-control{padding-left:var(--g-spacing-6)}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--ydb-data-table-color-hover);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-page{font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-tablet-page__placeholder{align-items:center;display:flex;flex:1 1 auto;justify-content:center}.ydb-tablet-page__loader{margin-left:var(--g-spacing-2)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/94695.6eb9306c.chunk.css b/ydb/core/viewer/monitoring/static/css/94695.6eb9306c.chunk.css new file mode 100644 index 0000000000..63281432eb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/94695.6eb9306c.chunk.css @@ -0,0 +1 @@ +.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-syntax-highlighter{height:100%;position:relative;z-index:0}.ydb-syntax-highlighter__sticky-container{background-color:var(--g-color-base-background);left:0;position:sticky;top:52px;top:0;z-index:1}.ydb-syntax-highlighter__copy{position:absolute;right:14px;top:13px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/96079.c2e5026a.chunk.css b/ydb/core/viewer/monitoring/static/css/96079.c2e5026a.chunk.css new file mode 100644 index 0000000000..9533be20d9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/96079.c2e5026a.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__section{display:flex;flex-direction:column;max-width:500px;min-width:300px;width:max-content}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.full-node-viewer__role{color:var(--g-color-text-secondary)}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:unset;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{height:100%;overflow:auto;padding:0 20px;position:relative}.node__error,.node__info,.node__meta,.node__tabs,.node__title{left:0;margin-bottom:20px;position:sticky}.node__meta{margin-top:20px}.node__error,.node__tabs{margin-bottom:0}.node__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/9796.828f7385.chunk.css b/ydb/core/viewer/monitoring/static/css/9796.828f7385.chunk.css deleted file mode 100644 index 98356eac33..0000000000 --- a/ydb/core/viewer/monitoring/static/css/9796.828f7385.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{--data-table-sticky-top-offset:62px;box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.ydb-search{min-width:100px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-simple-hover-solid);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;transform:translateZ(0);z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation:none!important}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.hover-popup{padding:var(--g-spacing-3)}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:unset;border:unset;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.ydb-vdisk-component{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.pdisk-storage{display:flex;flex-direction:column;justify-content:flex-end;min-width:var(--pdisk-min-width);position:relative;width:var(--pdisk-width)}.pdisk-storage__content{border-radius:4px;display:block;flex:1 1;position:relative}.pdisk-storage__vdisks{display:flex;flex:0 0 auto;gap:var(--pdisk-gap-width);margin-bottom:4px;white-space:nowrap}.pdisk-storage__vdisks-item{flex:0 0 var(--pdisk-vdisk-width);min-width:var(--pdisk-vdisk-width)}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{margin-right:4px;min-width:80px}.ydb-storage-disks__pdisk-item_with-dc-margin{margin-right:12px}.ydb-storage-disks__pdisk-item:last-child{margin-right:0}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--ydb-data-table-color-hover);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.memory-viewer{min-width:150px;padding:0 var(--g-spacing-1);position:relative;z-index:0}.memory-viewer__progress-container{background:var(--g-color-base-generic);border-radius:2px;height:20px;overflow:hidden;position:relative}.memory-viewer__container{display:flex;padding:2px 0}.memory-viewer__legend{border-radius:2px;bottom:2px;height:20px;position:absolute;width:20px}.memory-viewer__legend_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__legend_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__legend_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__legend_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__legend_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__segment{height:100%;position:absolute}.memory-viewer__segment_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__segment_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__segment_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__segment_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__segment_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__name{padding-left:28px}.memory-viewer_theme_dark{color:var(--g-color-text-light-primary)}.memory-viewer_theme_dark .memory-viewer__segment{opacity:.75}.memory-viewer_status_good .memory-viewer__progress-container{background-color:var(--g-color-base-positive-light)}.memory-viewer_status_warning .memory-viewer__progress-container{background-color:var(--g-color-base-yellow-light)}.memory-viewer_status_danger .memory-viewer__progress-container{background-color:var(--g-color-base-danger-light)}.memory-viewer__text{align-items:center;display:flex;justify-content:center}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:6px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-storage-vdisks__wrapper{display:flex}.ydb-storage-vdisks__item{margin-right:6px;width:90px}.ydb-storage-vdisks__item_with-dc-margin{margin-right:12px}.ydb-storage-vdisks__item:last-child{margin-right:0}.data-table__row:hover .ydb-storage-vdisks__item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-pools-graph{display:flex}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__pool-name-wrapper{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.ydb-storage-groups-columns__group-id{font-weight:500}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-nodes-columns__column-cpu,.ydb-nodes-columns__column-ram{min-width:40px}.ydb-storage-nodes__node_unavailable{opacity:.6}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{--pdisk-vdisk-width:3px;--pdisk-gap-width:2px;--pdisk-min-width:120px;--pdisk-margin:10px;--pdisk-width:max(calc(var(--maximum-slots, 1)*var(--pdisk-vdisk-width) + (var(--maximum-slots, 1) - 1)*var(--pdisk-gap-width)),var(--pdisk-min-width));--pdisks-container-width:calc(var(--maximum-disks, 1)*var(--pdisk-width) + (var(--maximum-disks, 1) - 1)*var(--pdisk-margin));display:flex;gap:var(--pdisk-margin);height:40px;width:var(--pdisks-container-width)}.ydb-storage-nodes-columns__pdisks-item{display:flex;flex-shrink:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/main.84f98361.css b/ydb/core/viewer/monitoring/static/css/main.84f98361.css new file mode 100644 index 0000000000..3e81d95d31 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/main.84f98361.css @@ -0,0 +1,9 @@ +@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);:root{--data-table-header-vertical-padding:5px;--data-table-cell-vertical-padding:5px;--data-table-cell-horizontal-padding:10px;--data-table-cell-border-padding:var(--data-table-cell-horizontal-padding);--data-table-cell-align:top;--data-table-head-align:top;--data-table-row-height:30px;--data-table-sort-icon-space:18px;--data-table-sort-icon-opacity-inactive:0.15;--data-table-sort-icon-color:inherit}.data-table{box-sizing:border-box;position:relative}.data-table__box{box-sizing:border-box;height:100%;width:100%}.data-table__box_sticky-head_moving{overflow:visible;position:relative;z-index:0}.data-table__box_sticky-head_moving .data-table__th{border-bottom:0;border-top:0;padding-bottom:0;padding-top:0}.data-table__box_sticky-head_moving .data-table__head-cell{display:block;height:0;overflow:hidden}.data-table__box_sticky-head_moving .data-table__row_header-data{visibility:hidden}.data-table__box_sticky-footer_fixed,.data-table__box_sticky-head_fixed{overflow:auto}.data-table__table{border-collapse:collapse;table-layout:fixed}.data-table__table_sticky{background:var(--data-table-color-base);width:100%}.data-table__row{height:var(--data-table-row-height)}.data-table__th{border:1px solid var(--data-table-border-color);box-sizing:border-box;cursor:default;font-weight:500;padding:var(--data-table-header-vertical-padding) var(--data-table-cell-horizontal-padding);position:relative;text-align:left;vertical-align:var(--data-table-head-align)}.data-table__th_sortable{cursor:pointer}.data-table__th_sortable .data-table__head-cell{padding-right:var(--data-table-sort-icon-space)}.data-table__th_sortable.data-table__th_align_right .data-table__head-cell{padding-left:var(--data-table-sort-icon-space);padding-right:0}.data-table__th_sortable.data-table__th_align_right .data-table__sort-icon{left:0;right:auto;transform:translateY(-50%) scaleX(-1)}.data-table__td{border:1px solid var(--data-table-border-color);box-sizing:border-box;overflow:hidden;padding:var(--data-table-cell-vertical-padding) var(--data-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:var(--data-table-cell-align);white-space:nowrap}.data-table__td_index,.data-table__th_index{text-align:right}.data-table__td_align_left,.data-table__th_align_left{text-align:left}.data-table__td_align_center,.data-table__th_align_center{text-align:center}.data-table__td_align_right,.data-table__th_align_right{text-align:right}.data-table__td:first-child,.data-table__th:first-child{padding-left:var(--data-table-cell-border-padding)}.data-table__td:last-child,.data-table__th:last-child{padding-right:var(--data-table-cell-border-padding)}.data-table__index{text-align:right}.data-table__head-cell{box-sizing:border-box;display:inline-block;max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.data-table__error{padding:20px;white-space:pre-wrap}.data-table__sort-icon{color:var(--data-table-sort-icon-color);display:inline-flex;position:absolute;right:0;top:50%;transform:translateY(-50%)}.data-table__sort-icon:after{content:attr(data-index);font-size:8px;left:100%;position:absolute;top:-5px}.data-table__sort-icon_shadow{opacity:var(--data-table-sort-icon-opacity-inactive)}.data-table__sort-icon_shadow:after{content:none}.data-table__icon{vertical-align:top}.data-table__no-data{background:var(--data-table-color-stripe)}.data-table__sticky_fixed{left:0;overflow:hidden;position:absolute;right:0;z-index:1}.data-table__sticky_fixed.data-table__sticky_head{top:0}.data-table__sticky_fixed.data-table__sticky_footer{bottom:0}.data-table__sticky_moving{margin-bottom:-1px;position:sticky;z-index:1}.data-table_striped-rows .data-table__row_odd{background:var(--data-table-color-stripe)}.data-table_highlight-rows .data-table__row:hover{background:var(--data-table-color-hover-area)}.data-table_header_multiline .data-table__head-cell{white-space:normal}.data-table_header_pre .data-table__head-cell{white-space:pre}.data-table__foot{background:var(--data-table-color-footer-area)}.data-table__foot_has-sticky-footer_moving{visibility:hidden}.data-table_theme_yandex-cloud{--data-table-color-base:var(--g-color-base-background,var(--yc-color-base-background));--data-table-color-stripe:var( --g-color-base-generic-ultralight,var(--yc-color-base-generic-ultralight) );--data-table-border-color:var( --g-color-base-generic-hover,var(--yc-color-base-generic-hover) );--data-table-color-hover-area:var( --g-color-base-simple-hover,var(--yc-color-base-simple-hover) );--data-table-color-footer-area:var(--data-table-color-base)}.data-table_theme_legacy{--data-table-color-base:#fff;--data-table-color-stripe:#00000008;--data-table-border-color:#ddd;--data-table-color-hover-area:#ffeba0;--data-table-color-footer-area:var(--data-table-color-base)}.data-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.data-table__resize-handler_resizing,.data-table__th:hover>.data-table__resize-handler{visibility:visible}.ydb-error-boundary{--g-definition-list-item-gap:var(--g-spacing-1);padding:var(--g-spacing-8)}.ydb-error-boundary__error-stack-wrapper{background-color:var(--code-background-color);border-radius:var(--g-border-radius-xs);height:430px;overflow:auto;scrollbar-color:var(--g-color-scroll-handle) #0000;width:800px}.ydb-error-boundary__error-stack-title{border-bottom:1px solid var(--g-color-line-generic);left:0;padding:var(--g-spacing-2) var(--g-spacing-3);position:sticky}.ydb-error-boundary__error-stack-code{padding:var(--g-spacing-3) var(--g-spacing-3) var(--g-spacing-2);white-space:pre-wrap}.ydb-error-boundary__qr-help-text{text-align:right}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-clipboard-button__icon{pointer-events:none}.g-icon{line-height:0;vertical-align:top}.g-button{--_--text-color:var(--g-color-text-primary);--_--text-color-hover:var(--_--text-color);--_--background-color:#0000;--_--background-color-hover:var(--g-color-base-simple-hover);--_--border-width:0;--_--border-color:currentColor;--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;--_--font-size:var(--g-text-body-1-font-size);-webkit-tap-highlight-color:rgba(0,0,0,0);background:none;background:#0000;border:none;box-sizing:border-box;color:inherit;color:var(--g-button-text-color,var(--_--text-color));cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-size:var(--g-button-font-size,var(--_--font-size));font-weight:var(--g-text-body-font-weight);gap:var(--g-button-icon-offset,var(--_--icon-offset));height:var(--g-button-height,var(--_--height));justify-content:center;line-height:var(--g-button-height,var(--_--height));outline:none;overflow:visible;padding:0;padding:0 var(--g-button-padding,var(--_--padding));position:relative;text-align:center;text-decoration:none;touch-action:manipulation;transform:scale(1);transition:transform .1s ease-out,color .15s linear;-webkit-user-select:none;user-select:none;white-space:nowrap}.g-button:before{background-color:var(--g-button-background-color,var(--_--background-color));border:var(--g-button-border-width,var(--_--border-width)) var(--g-button-border-style,solid) var(--g-button-border-color,var(--_--border-color));content:"";inset:0;position:absolute;transition:background-color .15s linear;z-index:-1}.g-button:hover{color:var(--g-button-text-color-hover,var(--_--text-color-hover))}.g-button:hover:before{background-color:var(--g-button-background-color-hover,var(--_--background-color-hover))}.g-button:focus-visible:before{outline:var(--g-button-focus-outline-color,var(--_--focus-outline-color)) var(--g-button-focus-outline-style,solid) var(--g-button-focus-outline-width,2px);outline-offset:var(--g-button-focus-outline-offset,var(--_--focus-outline-offset))}.g-button:after{content:"";inset:0;position:absolute;transform:scale(1);transition:none;z-index:-1}.g-button:active{transform:scale(.96);transition:none}.g-button:active:after{transform:scale(1.042)}.g-button_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--padding:6px;--_--icon-size:12px;--_--icon-offset:4px}.g-button_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--padding:8px;--_--icon-size:16px;--_--icon-offset:4px}.g-button_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--padding:12px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_l{--_--height:36px;--_--border-radius:var(--g-border-radius-l);--_--padding:16px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_xl{--_--height:44px;--_--border-radius:var(--g-border-radius-xl);--_--padding:24px;--_--icon-size:20px;--_--icon-offset:12px;--_--font-size:var(--g-text-body-2-font-size)}.g-button_view_normal{--_--background-color:var(--g-color-base-generic);--_--background-color-hover:var(--g-color-base-generic-hover)}.g-button_view_action{--_--text-color:var(--g-color-text-brand-contrast);--_--background-color:var(--g-color-base-brand);--_--background-color-hover:var(--g-color-base-brand-hover);--_--focus-outline-color:var(--g-color-base-brand);--_--focus-outline-offset:1px}.g-button_view_outlined{--_--border-width:1px;--_--border-color:var(--g-color-line-generic)}.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info);--_--border-width:1px;--_--border-color:var(--g-color-line-info)}.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive);--_--border-width:1px;--_--border-color:var(--g-color-line-positive)}.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning);--_--border-width:1px;--_--border-color:var(--g-color-line-warning)}.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger);--_--border-width:1px;--_--border-color:var(--g-color-line-danger)}.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility);--_--border-width:1px;--_--border-color:var(--g-color-line-utility)}.g-button_view_outlined-action{--_--text-color:var(--g-color-text-brand);--_--border-width:1px;--_--border-color:var(--g-color-line-brand)}.g-button_view_raised{--_--background-color-hover:var(--g-color-base-float-hover);background:var(--g-color-base-float)}.g-button_view_raised:before{box-shadow:0 3px 5px var(--g-color-sfx-shadow)}.g-button_view_raised:active:before{box-shadow:0 1px 2px var(--g-color-sfx-shadow)}.g-button_view_flat-secondary{--_--text-color:var(--g-color-text-secondary);--_--text-color-hover:var(--g-color-text-primary)}.g-button_view_flat-info{--_--text-color:var(--g-color-text-info)}.g-button_view_flat-success{--_--text-color:var(--g-color-text-positive)}.g-button_view_flat-warning{--_--text-color:var(--g-color-text-warning)}.g-button_view_flat-danger{--_--text-color:var(--g-color-text-danger)}.g-button_view_flat-utility{--_--text-color:var(--g-color-text-utility)}.g-button_view_flat-action{--_--text-color:var(--g-color-text-brand)}.g-button_view_normal-contrast{--_--text-color:var(--g-color-text-dark-primary);--_--background-color:var(--g-color-base-light);--_--background-color-hover:var(--g-color-base-light-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_normal-contrast.g-button_loading{--_--background-color-hover:var(--g-color-base-simple-hover)}.g-button_view_outlined-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--border-width:1px;--_--border-color:var(--g-color-line-light);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button.g-button_pin_round-round.g-button{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick.g-button{border-radius:0}.g-button.g-button_pin_clear-clear.g-button{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle.g-button{border-radius:100px}.g-button.g-button_pin_round-brick.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear.g-button{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick.g-button{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:before{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:before{border-radius:0}.g-button.g-button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:before{border-radius:100px}.g-button.g-button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:after{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:after{border-radius:0}.g-button.g-button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:after{border-radius:100px}.g-button.g-button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button__text{display:inline-block;white-space:nowrap}.g-button__icon{display:inline-block;height:var(--g-button-height,var(--_--height));margin:0 calc((var(--g-button-height, var(--_--height)) - var(--g-button-icon-size, var(--_--icon-size)))/2*-1);position:relative;width:var(--g-button-height,var(--_--height))}.g-button__icon:after{content:"Â ";visibility:hidden}.g-button__icon-inner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.g-button__icon_side_start{order:-1}.g-button__icon_side_end{order:1}.g-button__icon:only-child{margin:0}.g-button:has(.g-button__icon:only-child){--_--padding:0}.g-button:has(.g-button__icon:only-child):not(.g-button_width_max){width:var(--g-button-height,var(--_--height))}.g-button_selected:not(.g-button_view_outlined-contrast){--_--border-width:0}.g-button_selected:not(.g-button_view_normal-contrast,.g-button_view_flat-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-brand-heavy);--_--background-color:var(--g-color-base-selection);--_--background-color-hover:var(--g-color-base-selection-hover)}.g-button_selected.g-button_view_flat-info,.g-button_selected.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info-heavy);--_--background-color:var(--g-color-base-info-light);--_--background-color-hover:var(--g-color-base-info-light-hover)}.g-button_selected.g-button_view_flat-success,.g-button_selected.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive-heavy);--_--background-color:var(--g-color-base-positive-light);--_--background-color-hover:var(--g-color-base-positive-light-hover)}.g-button_selected.g-button_view_flat-warning,.g-button_selected.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning-heavy);--_--background-color:var(--g-color-base-warning-light);--_--background-color-hover:var(--g-color-base-warning-light-hover)}.g-button_selected.g-button_view_flat-danger,.g-button_selected.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger-heavy);--_--background-color:var(--g-color-base-danger-light);--_--background-color-hover:var(--g-color-base-danger-light-hover)}.g-button_selected.g-button_view_flat-utility,.g-button_selected.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility-heavy);--_--background-color:var(--g-color-base-utility-light);--_--background-color-hover:var(--g-color-base-utility-light-hover)}.g-button_disabled{cursor:default;pointer-events:none}.g-button_disabled:not(.g-button_loading){--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--background-color-hover:var(--g-color-base-generic-accent-disabled);--_--border-width:0}.g-button_disabled:not(.g-button_loading):is(.g-button_view_normal-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-light-secondary);--_--background-color:var(--g-color-base-light-disabled);--_--background-color-hover:var(--g-color-base-light-disabled)}.g-button_disabled:not(.g-button_loading):is(.g-button_view_flat,.g-button_view_flat-secondary,.g-button_view_flat-info,.g-button_view_flat-success,.g-button_view_flat-warning,.g-button_view_flat-danger,.g-button_view_flat-utility,.g-button_view_flat-action,.g-button_view_flat-contrast){--_--text-color:var(--g-color-text-hint);--_--background-color:#0000;--_--background-color-hover:#0000}.g-button_disabled:not(.g-button_loading).g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-hint)}.g-button_disabled:active{transform:scale(1)}.g-button_loading:before{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,var(--g-button-background-color,var(--_--background-color)),var(--g-button-background-color,var(--_--background-color)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 8px);background-size:150%}.g-button_width_auto{max-width:100%}.g-button_width_max{width:100%}.g-button_width_auto .g-button__text,.g-button_width_max .g-button__text{display:block;overflow:hidden;text-overflow:ellipsis}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.g-switch{position:relative}.g-switch__control{cursor:pointer;opacity:0}.g-switch__indicator{display:inline-block;position:relative}.g-switch__indicator:before{background-color:var(--g-color-base-generic-medium);content:"";inset:0;position:absolute;transition:background .1s linear}.g-switch__indicator:after{content:"Â ";visibility:hidden}.g-switch__slider{background-color:var(--g-color-base-background);border-radius:50%;content:"";position:absolute;transition:transform .15s ease-out}.g-switch__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%}.g-switch__control:focus-visible+.g-switch__outline{outline:2px solid var(--g-color-line-focus)}.g-switch_size_m .g-switch__indicator,.g-switch_size_m .g-switch__indicator:before,.g-switch_size_m .g-switch__outline{border-radius:10px;height:20px;width:36px}.g-switch_size_m .g-switch__slider{height:16px;inset-block-start:2px;inset-inline-start:2px;width:16px}.g-switch_size_m .g-switch__text{margin-block-start:3px}.g-switch_size_l .g-switch__indicator,.g-switch_size_l .g-switch__indicator:before,.g-switch_size_l .g-switch__outline{border-radius:12px;height:24px;width:42px}.g-switch_size_l .g-switch__slider{height:18px;inset-block-start:3px;inset-inline-start:3px;width:18px}.g-switch_size_l .g-switch__text{margin-block-start:4px}.g-switch:hover .g-switch__indicator:before{background-color:var(--g-color-base-generic-medium-hover)}.g-switch_checked .g-switch__slider{--_--translate-x:calc(100%*var(--g-flow-direction));transform:translateX(var(--_--translate-x))}.g-switch_checked .g-switch__indicator:before,.g-switch_checked:hover .g-switch__indicator:before{background-color:var(--g-color-base-brand)}.g-switch_disabled .g-switch__indicator:before{background-color:var(--g-color-base-generic-accent-disabled)}.g-switch_disabled.g-switch_checked .g-switch__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-control-label{-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--g-color-text-primary);cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);touch-action:manipulation;-webkit-user-select:none;user-select:none}.g-control-label_disabled{cursor:default;pointer-events:none}.g-control-label_size_m{font-size:var(--g-text-body-1-font-size);line-height:15px}.g-control-label_size_l{font-size:var(--g-text-body-2-font-size);line-height:18px}.g-control-label__indicator{flex-shrink:0}.g-control-label__text{flex-grow:1;white-space:normal}.g-control-label_disabled .g-control-label__text{opacity:.6}.g-control-label_size_m .g-control-label__text{margin-inline-start:5px}.g-control-label_size_l .g-control-label__text{margin-inline-start:7px}.g-radio-button{--_--border-radius-inner:calc(var(--_--border-radius) - 3px);background-color:var(--g-color-base-generic);border-radius:var(--_--border-radius);box-sizing:border-box;display:inline-flex;flex-direction:row;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);position:relative}.g-radio-button__plate{inset-block:0;position:absolute;transition:left .2s,width .2s}.g-radio-button__plate[hidden]{display:none}.g-radio-button__option{border-radius:var(--_--border-radius-inner);cursor:pointer;flex:1 1 auto;font-size:var(--g-text-body-1-font-size);text-align:center;transform:scale(1);transition:color .15s linear;-webkit-user-select:none;user-select:none}.g-radio-button__option-outline{border-radius:var(--_--border-radius-inner);content:"";inset:3px;position:absolute;z-index:-1}.g-radio-button__option-control{border:none;cursor:inherit;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:none;padding:0;position:absolute;width:100%}.g-radio-button__option-control:focus-visible+.g-radio-button__option-outline{outline:2px solid var(--g-color-line-focus)}.g-radio-button__option-text{color:var(--g-color-text-complementary);display:inline-block;white-space:nowrap}.g-radio-button__option-text_icon{align-items:center;display:flex;height:100%}.g-radio-button__option:hover .g-radio-button__option-text,.g-radio-button__option_checked .g-radio-button__option-text{color:var(--g-color-text-primary)}.g-radio-button__option_checked{cursor:default}.g-radio-button__option_disabled{cursor:default;pointer-events:none}.g-radio-button__option_disabled .g-radio-button__option-text{color:var(--g-color-text-hint)}.g-radio-button__option:before,.g-radio-button__plate:before{border-radius:var(--_--border-radius-inner);inset:3px;position:absolute}.g-radio-button__option:before{z-index:-1}.g-radio-button__plate:before,.g-radio-button__plate[hidden]~.g-radio-button__option_checked:before{background-color:var(--g-color-base-background);content:""}.g-radio-button_size_s{--_--border-radius:var(--g-border-radius-s)}.g-radio-button_size_s .g-radio-button__option{height:24px;line-height:24px}.g-radio-button_size_s .g-radio-button__option-text{margin:0 10px}.g-radio-button_size_m{--_--border-radius:var(--g-border-radius-m)}.g-radio-button_size_m .g-radio-button__option{height:28px;line-height:28px}.g-radio-button_size_m .g-radio-button__option-text{margin:0 13px}.g-radio-button_size_l{--_--border-radius:var(--g-border-radius-l)}.g-radio-button_size_l .g-radio-button__option{height:36px;line-height:36px}.g-radio-button_size_l .g-radio-button__option-text{margin:0 18px}.g-radio-button_size_xl{--_--border-radius:var(--g-border-radius-xl)}.g-radio-button_size_xl .g-radio-button__option{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-radio-button_size_xl .g-radio-button__option-text{margin:0 25px}.g-radio-button_width_auto{max-width:100%}.g-radio-button_width_max{width:100%}.g-radio-button_width_auto .g-radio-button__option,.g-radio-button_width_max .g-radio-button__option{overflow:hidden}.g-radio-button_width_auto .g-radio-button__option-text,.g-radio-button_width_max .g-radio-button__option-text{display:block;overflow:hidden;text-overflow:ellipsis}.g-label{--_--bg-color:none;--_--bg-color-hover:none;--_--text-color:none;align-items:center;background-color:var(--_--bg-color);border-radius:var(--_--border-radius);box-sizing:border-box;color:var(--_--text-color);display:inline-flex;height:var(--_--height);isolation:isolate;position:relative;transition-duration:.15s;transition-property:opacity,color,background-color;transition-timing-function:ease-in-out}.g-label__text{align-items:baseline;display:flex;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);line-height:var(--_--height);margin:0 var(--_--margin-inline);overflow:hidden;text-align:center;white-space:nowrap;width:100%}.g-label__content,.g-label__key{overflow:hidden;text-overflow:ellipsis}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{background:none;border:none;border-radius:inherit;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;z-index:1}.g-label__main-button:empty{inset:0;position:absolute}.g-label__addon{align-items:center;border-radius:var(--_--border-radius);display:flex;height:var(--_--height);justify-content:center;width:var(--_--height)}.g-label__addon_side_end,.g-label__addon_side_start{inset-block-start:0;position:absolute}.g-label__addon_side_start{border-end-end-radius:0;border-start-end-radius:0;inset-inline-start:2px}.g-label__addon_side_end{border-end-start-radius:0;border-start-start-radius:0;inset-inline-end:0}.g-label__addon_type_button{background:none;background-color:initial;border:none;color:inherit;color:var(--_--text-color);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out;z-index:2}.g-label__addon_type_button:active{transform:scale(.96)}.g-label_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--margin-inline:8px;--_--margin-addon-start:24px;--_--margin-addon-end:22px}.g-label_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--margin-inline:10px;--_--margin-addon-start:28px;--_--margin-addon-end:26px}.g-label_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--margin-inline:12px;--_--margin-addon-start:32px;--_--margin-addon-end:32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color:var(--g-color-base-misc-light);--_--bg-color-hover:var(--g-color-base-misc-light-hover);--_--text-color:var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color:var(--g-color-base-positive-light);--_--bg-color-hover:var(--g-color-base-positive-light-hover);--_--text-color:var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color:var(--g-color-base-info-light);--_--bg-color-hover:var(--g-color-base-info-light-hover);--_--text-color:var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color:var(--g-color-base-warning-light);--_--bg-color-hover:var(--g-color-base-warning-light-hover);--_--text-color:var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color:var(--g-color-base-danger-light);--_--bg-color-hover:var(--g-color-base-danger-light-hover);--_--text-color:var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color:var(--g-color-base-utility-light);--_--bg-color-hover:var(--g-color-base-utility-light-hover);--_--text-color:var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color:var(--g-color-base-neutral-light);--_--bg-color-hover:var(--g-color-base-neutral-light-hover);--_--text-color:var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color:#0000;--_--bg-color-hover:var(--g-color-base-simple-hover);--_--text-color:var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label__addon_type_button:hover,.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)){background-color:var(--_--bg-color-hover)}.g-label__addon_type_button:focus-visible,.g-label__main-button:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-tabs{--_--vertical-item-padding:var(--g-tabs-vertical-item-padding,6px 20px);--_--vertical-item-height:var(--g-tabs-vertical-item-height,18px)}.g-tabs_size_m{--_--item-height:36px;--_--item-gap:24px;--_--item-border-width:2px}.g-tabs_size_m .g-tabs__item-counter,.g-tabs_size_m .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-tabs_size_l{--_--item-height:40px;--_--item-gap:28px;--_--item-border-width:2px}.g-tabs_size_l .g-tabs__item-counter,.g-tabs_size_l .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-tabs_size_xl{--_--item-height:44px;--_--item-gap:32px;--_--item-border-width:3px}.g-tabs_size_xl .g-tabs__item-counter,.g-tabs_size_xl .g-tabs__item-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-tabs__item{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.g-tabs__item-content{align-items:center;border-radius:var(--g-focus-border-radius);display:flex}.g-tabs__item_overflow .g-tabs__item-content{min-width:0}.g-tabs__item-icon{margin-inline-end:8px}.g-tabs__item-title{white-space:nowrap}.g-tabs__item_overflow .g-tabs__item-title{overflow:hidden;text-overflow:ellipsis}.g-tabs__item-counter,.g-tabs__item-label{margin-inline-start:8px}.g-tabs__item-icon>svg{display:block}.g-tabs_direction_horizontal{align-items:flex-end;box-shadow:inset 0 calc(var(--g-tabs-border-width, 1px)*-1) 0 0 var(--g-color-line-generic);display:flex;flex-wrap:wrap;overflow:hidden}.g-tabs_direction_horizontal .g-tabs__item{align-items:center;border-block-end:var(--g-tabs-item-border-width,var(--_--item-border-width)) solid #0000;box-sizing:border-box;display:flex;height:var(--g-tabs-item-height,var(--_--item-height));padding-block-start:var(--_--item-border-width)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-content{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.g-tabs_direction_horizontal .g-tabs__item-meta{display:none}.g-tabs_direction_horizontal .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item-icon{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-title{color:var(--g-color-text-primary)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item_active,.g-tabs_direction_horizontal .g-tabs__item_active:focus-visible,.g-tabs_direction_horizontal .g-tabs__item_active:hover{border-color:var(--g-color-line-brand)}.g-tabs_direction_horizontal .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_horizontal .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal>:not(:last-child){margin-inline-end:var(--g-tabs-item-gap,var(--_--item-gap))}.g-tabs_direction_vertical{display:flex;flex-direction:column}.g-tabs_direction_vertical .g-tabs__item{padding:var(--_--vertical-item-padding)}.g-tabs_direction_vertical .g-tabs__item-title{color:var(--g-color-text-primary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-meta{color:var(--g-color-text-secondary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-counter,.g-tabs_direction_vertical .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_vertical .g-tabs__item:focus-visible,.g-tabs_direction_vertical .g-tabs__item:hover{background-color:var(--g-color-base-generic-hover)}.g-tabs_direction_vertical .g-tabs__item_active{background-color:var(--g-color-base-selection)}.g-tabs_direction_vertical .g-tabs__item_active:focus-visible,.g-tabs_direction_vertical .g-tabs__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-tabs_direction_vertical .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_vertical .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}.g-text-input{--_--text-color:var(--g-color-text-primary);--_--label-color:inherit;--_--placeholder-color:var(--g-color-text-hint);--_--background-color:#0000;--_--border-width:1px;--_--focus-outline-color:var(--g-text-input-focus-outline-color);display:inline-block;position:relative;width:100%}.g-text-input__content{background-color:var(--g-text-input-background-color,var(--_--background-color));border-color:var(--g-text-input-border-color,var(--_--border-color));border-style:solid;border-width:var(--g-text-input-border-width,var(--_--border-width));box-sizing:border-box;color:var(--g-text-input-text-color,var(--_--text-color));display:flex;overflow:hidden;width:100%}.g-text-input__content:hover{border-color:var(--g-text-input-border-color-hover,var(--_--border-color-hover))}.g-text-input__content:focus-within{border-color:var(--g-text-input-border-color-active,var(--_--border-color-active));outline:2px solid var(--g-text-input-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-text-input__control{background-color:initial;border:none;box-sizing:border-box;color:inherit;display:inline-block;flex-grow:1;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);height:var(--g-text-input-height);margin:0;padding:0;position:relative;vertical-align:top;width:100%}.g-text-input__control::placeholder{color:var(--g-text-input-placeholder-color,var(--_--placeholder-color));overflow:hidden;white-space:nowrap}.g-text-input__control:focus{outline:none}.g-text-input__control[type=number]{appearance:textfield}.g-text-input__label{box-sizing:border-box;color:var(--g-text-input-label-color,var(--_--label-color));overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap;z-index:1}.g-text-input__clear{flex-shrink:0;margin:auto 0}.g-text-input__clear_size_m,.g-text-input__clear_size_s{margin-inline-end:1px}.g-text-input__clear_size_l,.g-text-input__clear_size_xl{margin-inline-end:2px}.g-text-input__error-icon{box-sizing:initial;color:var(--g-color-text-danger);padding-block:var(--_--error-icon-padding-block);padding-inline:var(--_--error-icon-padding-inline)}.g-text-input__additional-content{align-items:center;display:flex}.g-text-input_size_s{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-s)}.g-text-input_size_s .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(24px - var(--_--input-control-border-width)*2);padding:3px 8px}.g-text-input_size_s .g-text-input__control,.g-text-input_size_s .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_s .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:3px;padding-inline:8px 4px}.g-text-input_size_s.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_s .g-text-input__additional-content{height:22px}.g-text-input_size_s .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_s .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_m{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-m)}.g-text-input_size_m .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(28px - var(--_--input-control-border-width)*2);padding:5px 8px}.g-text-input_size_m .g-text-input__control,.g-text-input_size_m .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_m .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:5px;padding-inline:8px 4px}.g-text-input_size_m.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_m .g-text-input__additional-content{height:26px}.g-text-input_size_m .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_m .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_l{--_--error-icon-padding-block:9px;--_--error-icon-padding-inline:0 9px;--_--border-radius:var(--g-border-radius-l)}.g-text-input_size_l .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:inline-flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.ydb-cell-with-popover{display:inline-flex;max-width:100%}.ydb-cell-with-popover_full-width{display:flex}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-cell-with-popover__popover_full-width{width:100%}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label{color:var(--g-color-text-secondary);padding-right:15px}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.ydb-connect-to-db__dialog-tabs,.ydb-connect-to-db__docs{margin-top:var(--g-spacing-4)}.ydb-connect-to-db__snippet-container{height:270px}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-divider{--_--content-gap:8px;--_--size:1px}.g-divider:not(:empty){align-items:center;border:none;display:flex}.g-divider:not(:empty):after,.g-divider:not(:empty):before{content:""}.g-divider:after,.g-divider:before{background:var(--g-divider-color,var(--g-color-line-generic));flex-grow:1}.g-divider_orientation_vertical{border-inline-start:1px solid var(--g-divider-color,var(--g-color-line-generic));flex-direction:column}.g-divider_orientation_vertical:after,.g-divider_orientation_vertical:before{width:var(--_--size)}.g-divider_orientation_vertical:before{margin-block-end:var(--_--content-gap)}.g-divider_orientation_vertical:after{margin-block-start:var(--_--content-gap)}.g-divider_orientation_horizontal{border-block-start:1px solid var(--g-divider-color,var(--g-color-line-generic))}.g-divider_orientation_horizontal:after,.g-divider_orientation_horizontal:before{height:var(--_--size)}.g-divider_orientation_horizontal:before{margin-inline-end:var(--_--content-gap)}.g-divider_orientation_horizontal:after{margin-inline-start:var(--_--content-gap)}.g-divider_align_end:after,.g-divider_align_start:before{display:none}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-simple-hover-solid);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}.g-root_theme_light,.g-root_theme_light-hc{--code-background-color:var(--g-color-base-simple-hover)}.g-root_theme_dark,.g-root_theme_dark-hc{--code-background-color:#1e1e1e}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button,.entity-status__info-icon{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible,.entity-status__info-icon:focus-visible,.entity-status__info-icon_visible{opacity:1}.entity-status__clipboard-button:focus-visible,.entity-status__info-icon:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.data-table__row:hover .entity-status__info-icon,.ydb-paginated-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__info-icon{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.data-table__row:hover .entity-status__info-icon:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__info-icon:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible,.entity-status__info-icon_visible{opacity:1}.entity-status__info-icon:hover{color:var(--g-color-text-primary)}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-clipboard-button,.entity-status__wrapper_with-info-button{padding-right:var(--button-width)}.entity-status__wrapper_with-clipboard-button.entity-status__wrapper_with-info-button{padding-right:calc(var(--button-width)*2)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{background-color:var(--g-color-base-background);padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--ydb-data-table-color-hover);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.entity-status__wrapper_with-clipboard-button .entity-status__link,.entity-status__wrapper_with-info-button .entity-status__link{width:calc(100% + var(--button-width))}.entity-status__wrapper_with-clipboard-button.entity-status__wrapper_with-info-button .entity-status__link{width:calc(100% + var(--button-width)*2)}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-root{--g-font-family-sans:"Inter","Helvetica Neue","Helvetica","Arial",sans-serif;--g-font-family-monospace:"Menlo","Monaco","Consolas","Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New","Courier",monospace;--g-text-body-font-family:var(--g-font-family-sans);--g-text-caption-font-family:var(--g-font-family-sans);--g-text-header-font-family:var(--g-font-family-sans);--g-text-subheader-font-family:var(--g-font-family-sans);--g-text-display-font-family:var(--g-font-family-sans);--g-text-code-font-family:var(--g-font-family-monospace);--g-text-body-font-weight:400;--g-text-caption-font-weight:400;--g-text-header-font-weight:600;--g-text-display-font-weight:600;--g-text-code-font-weight:400;--g-text-accent-font-weight:600;--g-text-body-1-font-size:13px;--g-text-body-1-line-height:18px;--g-text-body-2-font-size:15px;--g-text-body-2-line-height:20px;--g-text-body-3-font-size:17px;--g-text-body-3-line-height:24px;--g-text-body-short-font-size:13px;--g-text-body-short-line-height:16px;--g-text-caption-1-font-size:9px;--g-text-caption-1-line-height:12px;--g-text-caption-2-font-size:11px;--g-text-caption-2-line-height:16px;--g-text-header-1-font-size:20px;--g-text-header-1-line-height:24px;--g-text-header-2-font-size:24px;--g-text-header-2-line-height:28px;--g-text-subheader-1-font-size:13px;--g-text-subheader-1-line-height:18px;--g-text-subheader-2-font-size:15px;--g-text-subheader-2-line-height:20px;--g-text-subheader-3-font-size:17px;--g-text-subheader-3-line-height:24px;--g-text-display-1-font-size:28px;--g-text-display-1-line-height:36px;--g-text-display-2-font-size:32px;--g-text-display-2-line-height:40px;--g-text-display-3-font-size:40px;--g-text-display-3-line-height:48px;--g-text-display-4-font-size:48px;--g-text-display-4-line-height:52px;--g-text-code-1-font-size:12px;--g-text-code-1-line-height:18px;--g-text-code-2-font-size:14px;--g-text-code-2-line-height:20px;--g-text-code-3-font-size:16px;--g-text-code-3-line-height:24px;--g-text-code-inline-1-font-size:12px;--g-text-code-inline-1-line-height:14px;--g-text-code-inline-2-font-size:14px;--g-text-code-inline-2-line-height:16px;--g-text-code-inline-3-font-size:16px;--g-text-code-inline-3-line-height:20px;--g-spacing-base:4px;--g-spacing-0:calc(var(--g-spacing-base)*0);--g-spacing-half:calc(var(--g-spacing-base)*0.5);--g-spacing-1:var(--g-spacing-base);--g-spacing-2:calc(var(--g-spacing-base)*2);--g-spacing-3:calc(var(--g-spacing-base)*3);--g-spacing-4:calc(var(--g-spacing-base)*4);--g-spacing-5:calc(var(--g-spacing-base)*5);--g-spacing-6:calc(var(--g-spacing-base)*6);--g-spacing-7:calc(var(--g-spacing-base)*7);--g-spacing-8:calc(var(--g-spacing-base)*8);--g-spacing-9:calc(var(--g-spacing-base)*9);--g-spacing-10:calc(var(--g-spacing-base)*10);--g-scrollbar-width:12px;--g-border-radius-xs:3px;--g-border-radius-s:5px;--g-border-radius-m:6px;--g-border-radius-l:8px;--g-border-radius-xl:10px;--g-focus-border-radius:2px;background:var(--g-color-base-background);color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-root[dir=ltr],body.g-root{--g-flow-direction:1;--g-flow-is-ltr:1;--g-flow-is-rtl:0}.g-root[dir=rtl]{--g-flow-direction:-1;--g-flow-is-ltr:0;--g-flow-is-rtl:1}.g-root_theme_light{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#348bdc;--g-color-private-blue-650-solid:#327fc8;--g-color-private-blue-700-solid:#3072b3;--g-color-private-blue-750-solid:#2e669e;--g-color-private-blue-800-solid:#2c5a8a;--g-color-private-blue-850-solid:#2a4e75;--g-color-private-blue-900-solid:#284260;--g-color-private-blue-950-solid:#26354b;--g-color-private-blue-1000-solid:#252f41;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#30aa6e;--g-color-private-green-650-solid:#2f9b65;--g-color-private-green-700-solid:#2d8b5d;--g-color-private-green-750-solid:#2c7b54;--g-color-private-green-800-solid:#2a6c4c;--g-color-private-green-850-solid:#285c44;--g-color-private-green-900-solid:#274c3b;--g-color-private-green-950-solid:#253c33;--g-color-private-green-1000-solid:#24352f;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e9ae56;--g-color-private-yellow-650-solid:#d39e50;--g-color-private-yellow-700-solid:#bd8e4b;--g-color-private-yellow-750-solid:#a77e45;--g-color-private-yellow-800-solid:#916e3f;--g-color-private-yellow-850-solid:#7a5d39;--g-color-private-yellow-900-solid:#644d33;--g-color-private-yellow-950-solid:#4e3d2e;--g-color-private-yellow-1000-solid:#43352b;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e96e03;--g-color-private-orange-650-solid:#d36507;--g-color-private-orange-700-solid:#bd5c0a;--g-color-private-orange-750-solid:#a7530e;--g-color-private-orange-800-solid:#914a11;--g-color-private-orange-850-solid:#7a4114;--g-color-private-orange-900-solid:#643818;--g-color-private-orange-950-solid:#4e2f1b;--g-color-private-orange-1000-solid:#432b1d;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e9033a;--g-color-private-red-650-solid:#d30638;--g-color-private-red-700-solid:#bd0935;--g-color-private-red-750-solid:#a70c32;--g-color-private-red-800-solid:#910f30;--g-color-private-red-850-solid:#7a112d;--g-color-private-red-900-solid:#64142a;--g-color-private-red-950-solid:#4e1727;--g-color-private-red-1000-solid:#431926;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7947aa;--g-color-private-purple-700-solid:#6e4299;--g-color-private-purple-750-solid:#633d88;--g-color-private-purple-800-solid:#593877;--g-color-private-purple-850-solid:#4e3266;--g-color-private-purple-900-solid:#432d55;--g-color-private-purple-950-solid:#382844;--g-color-private-purple-1000-solid:#32253c;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#647a8d;--g-color-private-cool-grey-650-solid:#5c6f81;--g-color-private-cool-grey-700-solid:#556575;--g-color-private-cool-grey-750-solid:#4e5b69;--g-color-private-cool-grey-800-solid:#47515e;--g-color-private-cool-grey-850-solid:#3f4652;--g-color-private-cool-grey-900-solid:#383c46;--g-color-private-cool-grey-950-solid:#31323a;--g-color-private-cool-grey-1000-solid:#2d2c34;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-600-solid);--g-color-text-positive:var(--g-color-private-green-600-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-600-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-700-solid);--g-color-text-positive-heavy:var(--g-color-private-green-700-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-700-solid);--g-color-text-danger-heavy:var(--g-color-private-red-700-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-650-solid);--g-color-text-link-hover:var(--g-color-private-orange-650-solid);--g-color-text-link-visited:var(--g-color-private-purple-550-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-850);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-50);--g-color-base-generic-hover:var(--g-color-private-black-150);--g-color-base-generic-medium:var(--g-color-private-black-150);--g-color-base-generic-medium-hover:var(--g-color-private-black-250);--g-color-base-generic-accent:var(--g-color-private-black-150);--g-color-base-generic-accent-disabled:var(--g-color-private-black-70);--g-color-base-generic-ultralight:var(--g-color-private-black-20-solid);--g-color-base-simple-hover:var(--g-color-private-black-50);--g-color-base-simple-hover-solid:var(--g-color-private-black-50-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-600-solid);--g-color-base-selection:var(--g-color-private-yellow-200);--g-color-base-selection-hover:var(--g-color-private-yellow-300);--g-color-base-info-light:var(--g-color-private-blue-100);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-200);--g-color-base-info-medium-hover:var(--g-color-private-blue-300);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-100);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-200);--g-color-base-positive-medium-hover:var(--g-color-private-green-300);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-200);--g-color-base-warning-light-hover:var(--g-color-private-yellow-300);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-500);--g-color-base-warning-heavy:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-650-solid);--g-color-base-danger-light:var(--g-color-private-red-100);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-200);--g-color-base-danger-medium-hover:var(--g-color-private-red-300);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-100);--g-color-base-utility-light-hover:var(--g-color-private-purple-200);--g-color-base-utility-medium:var(--g-color-private-purple-200);--g-color-base-utility-medium-hover:var(--g-color-private-purple-300);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-black-50);--g-color-base-neutral-light-hover:var(--g-color-private-black-100);--g-color-base-neutral-medium:var(--g-color-private-black-200);--g-color-base-neutral-medium-hover:var(--g-color-private-black-250);--g-color-base-neutral-heavy:var(--g-color-private-black-450);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-550);--g-color-base-misc-light:var(--g-color-private-cool-grey-100);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-300);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-50-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-50-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-100);--g-color-line-generic-hover:var(--g-color-private-black-150);--g-color-line-generic-active:var(--g-color-private-black-300);--g-color-line-generic-accent:var(--g-color-private-black-150);--g-color-line-generic-accent-hover:var(--g-color-private-black-300);--g-color-line-generic-solid:var(--g-color-private-black-100-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-250);--g-color-sfx-shadow:var(--g-color-private-black-150);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-50);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark{--g-color-private-white-20-solid:#262226;--g-color-private-white-50-solid:#2d282d;--g-color-private-white-70-solid:#312d31;--g-color-private-white-100-solid:#383438;--g-color-private-white-150-solid:#433f43;--g-color-private-white-200-solid:#4e4a4e;--g-color-private-white-250-solid:#595559;--g-color-private-white-300-solid:#646164;--g-color-private-white-350-solid:#6f6c6f;--g-color-private-white-400-solid:#7a777a;--g-color-private-white-450-solid:#858385;--g-color-private-white-500-solid:#908e90;--g-color-private-white-550-solid:#9c999c;--g-color-private-white-600-solid:#a7a5a7;--g-color-private-white-650-solid:#b2b0b2;--g-color-private-white-700-solid:#bdbbbd;--g-color-private-white-750-solid:#c8c6c8;--g-color-private-white-800-solid:#d3d2d3;--g-color-private-white-850-solid:#deddde;--g-color-private-white-900-solid:#e9e8e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#242937;--g-color-private-blue-100-solid:#252f41;--g-color-private-blue-150-solid:#26354b;--g-color-private-blue-200-solid:#284260;--g-color-private-blue-250-solid:#2a4e75;--g-color-private-blue-300-solid:#2c5a8a;--g-color-private-blue-350-solid:#2e669e;--g-color-private-blue-400-solid:#3072b3;--g-color-private-blue-450-solid:#327fc8;--g-color-private-blue-500-solid:#348bdc;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#262c2e;--g-color-private-green-100-solid:#283334;--g-color-private-green-150-solid:#2b3a3a;--g-color-private-green-200-solid:#2f4946;--g-color-private-green-250-solid:#335852;--g-color-private-green-300-solid:#38675f;--g-color-private-green-350-solid:#3c756b;--g-color-private-green-400-solid:#408477;--g-color-private-green-450-solid:#449383;--g-color-private-green-500-solid:#49a18f;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#382d28;--g-color-private-yellow-100-solid:#43352b;--g-color-private-yellow-150-solid:#4e3d2e;--g-color-private-yellow-200-solid:#644d33;--g-color-private-yellow-250-solid:#7a5d39;--g-color-private-yellow-300-solid:#916e3f;--g-color-private-yellow-350-solid:#a77e45;--g-color-private-yellow-400-solid:#bd8e4b;--g-color-private-yellow-450-solid:#d39e50;--g-color-private-yellow-500-solid:#e9ae56;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#332420;--g-color-private-orange-100-solid:#3b281f;--g-color-private-orange-150-solid:#432b1e;--g-color-private-orange-200-solid:#54321b;--g-color-private-orange-250-solid:#643919;--g-color-private-orange-300-solid:#754017;--g-color-private-orange-350-solid:#864715;--g-color-private-orange-400-solid:#964e13;--g-color-private-orange-450-solid:#a75510;--g-color-private-orange-500-solid:#b75c0e;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#361f28;--g-color-private-red-100-solid:#3f202b;--g-color-private-red-150-solid:#49212e;--g-color-private-red-200-solid:#5d2334;--g-color-private-red-250-solid:#70253a;--g-color-private-red-300-solid:#842840;--g-color-private-red-350-solid:#972a45;--g-color-private-red-400-solid:#ab2c4b;--g-color-private-red-450-solid:#be2e51;--g-color-private-red-500-solid:#d23057;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#2d2233;--g-color-private-purple-100-solid:#32253c;--g-color-private-purple-150-solid:#382844;--g-color-private-purple-200-solid:#432d55;--g-color-private-purple-250-solid:#4e3266;--g-color-private-purple-300-solid:#593877;--g-color-private-purple-350-solid:#633d88;--g-color-private-purple-400-solid:#6e4299;--g-color-private-purple-450-solid:#7947aa;--g-color-private-purple-500-solid:#844dbb;--g-color-private-cool-grey-50-solid:#28272e;--g-color-private-cool-grey-100-solid:#2b2c34;--g-color-private-cool-grey-150-solid:#2e313a;--g-color-private-cool-grey-200-solid:#353b47;--g-color-private-cool-grey-250-solid:#3b4553;--g-color-private-cool-grey-300-solid:#414f5f;--g-color-private-cool-grey-350-solid:#47586b;--g-color-private-cool-grey-400-solid:#4d6277;--g-color-private-cool-grey-450-solid:#546c84;--g-color-private-cool-grey-500-solid:#5a7690;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-550-solid);--g-color-text-positive:var(--g-color-private-green-550-solid);--g-color-text-warning:var(--g-color-private-yellow-550-solid);--g-color-text-danger:var(--g-color-private-red-550-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-600-solid);--g-color-text-positive-heavy:var(--g-color-private-green-600-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-text-danger-heavy:var(--g-color-private-red-600-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-650-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-650-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-750-solid);--g-color-text-dark-primary:var(--g-color-private-black-900);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-850);--g-color-text-light-complementary:var(--g-color-private-white-700);--g-color-text-light-secondary:var(--g-color-private-white-500);--g-color-text-light-hint:var(--g-color-private-white-300);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#221d22;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-150);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-300);--g-color-base-generic-accent:var(--g-color-private-white-150);--g-color-base-generic-accent-disabled:var(--g-color-private-white-70);--g-color-base-generic-ultralight:var(--g-color-private-white-20-solid);--g-color-base-simple-hover:var(--g-color-private-white-100);--g-color-base-simple-hover-solid:var(--g-color-private-white-100-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-150);--g-color-base-selection-hover:var(--g-color-private-yellow-200);--g-color-base-info-light:var(--g-color-private-blue-150);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-300);--g-color-base-info-medium-hover:var(--g-color-private-blue-400);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-150);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-300);--g-color-base-positive-medium-hover:var(--g-color-private-green-400);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-150);--g-color-base-warning-light-hover:var(--g-color-private-yellow-200);--g-color-base-warning-medium:var(--g-color-private-yellow-300);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-400);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-150);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-300);--g-color-base-danger-medium-hover:var(--g-color-private-red-400);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-150);--g-color-base-utility-light-hover:var(--g-color-private-purple-250);--g-color-base-utility-medium:var(--g-color-private-purple-300);--g-color-base-utility-medium-hover:var(--g-color-private-purple-400);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-white-100);--g-color-base-neutral-light-hover:var(--g-color-private-white-150);--g-color-base-neutral-medium:var(--g-color-private-white-250);--g-color-base-neutral-medium-hover:var(--g-color-private-white-350);--g-color-base-neutral-heavy:var(--g-color-private-white-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-150);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-300);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-150-solid);--g-color-base-float-medium:var(--g-color-private-white-150-solid);--g-color-base-float-heavy:var(--g-color-private-white-250-solid);--g-color-base-float-accent:var(--g-color-private-white-150-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-200-solid);--g-color-base-float-announcement:var(--g-color-private-white-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-300);--g-color-line-generic-accent:var(--g-color-private-white-150);--g-color-line-generic-accent-hover:var(--g-color-private-white-300);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-450);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-600);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root_theme_light-hc{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#328adb;--g-color-private-blue-650-solid:#2f7cc4;--g-color-private-blue-700-solid:#2b6fae;--g-color-private-blue-750-solid:#286198;--g-color-private-blue-800-solid:#245482;--g-color-private-blue-850-solid:#20476b;--g-color-private-blue-900-solid:#1d3955;--g-color-private-blue-950-solid:#192c3f;--g-color-private-blue-1000-solid:#172533;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#2fa96c;--g-color-private-green-650-solid:#2c9862;--g-color-private-green-700-solid:#288758;--g-color-private-green-750-solid:#25764e;--g-color-private-green-800-solid:#264;--g-color-private-green-850-solid:#1f553a;--g-color-private-green-900-solid:#1c4430;--g-color-private-green-950-solid:#183326;--g-color-private-green-1000-solid:#172a21;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e7ad55;--g-color-private-yellow-650-solid:#d09b4d;--g-color-private-yellow-700-solid:#b88a46;--g-color-private-yellow-750-solid:#a0793e;--g-color-private-yellow-800-solid:#896837;--g-color-private-yellow-850-solid:#715630;--g-color-private-yellow-900-solid:#594528;--g-color-private-yellow-950-solid:#413421;--g-color-private-yellow-1000-solid:#362b1d;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e76d02;--g-color-private-orange-650-solid:#d06304;--g-color-private-orange-700-solid:#b85805;--g-color-private-orange-750-solid:#a04e07;--g-color-private-orange-800-solid:#894409;--g-color-private-orange-850-solid:#713a0b;--g-color-private-orange-900-solid:#59300d;--g-color-private-orange-950-solid:#41250e;--g-color-private-orange-1000-solid:#36200f;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e70239;--g-color-private-red-650-solid:#d00334;--g-color-private-red-700-solid:#b80530;--g-color-private-red-750-solid:#a0072c;--g-color-private-red-800-solid:#890928;--g-color-private-red-850-solid:#710a23;--g-color-private-red-900-solid:#590c1f;--g-color-private-red-950-solid:#410e1b;--g-color-private-red-1000-solid:#360e18;--g-color-private-purple-600-solid:#834cb9;--g-color-private-purple-650-solid:#7645a7;--g-color-private-purple-700-solid:#6a3f94;--g-color-private-purple-750-solid:#5d3882;--g-color-private-purple-800-solid:#51326f;--g-color-private-purple-850-solid:#442b5c;--g-color-private-purple-900-solid:#38254a;--g-color-private-purple-950-solid:#2b1e37;--g-color-private-purple-1000-solid:#251b2e;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#62798c;--g-color-private-cool-grey-650-solid:#596d7e;--g-color-private-cool-grey-700-solid:#506271;--g-color-private-cool-grey-750-solid:#475663;--g-color-private-cool-grey-800-solid:#3f4b56;--g-color-private-cool-grey-850-solid:#363f48;--g-color-private-cool-grey-900-solid:#2d343b;--g-color-private-cool-grey-950-solid:#24282d;--g-color-private-cool-grey-1000-solid:#1f2226;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-900-solid);--g-color-text-positive-heavy:var(--g-color-private-green-900-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-900-solid);--g-color-text-danger-heavy:var(--g-color-private-red-900-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-900-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-900-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-900-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-700-solid);--g-color-text-link-hover:var(--g-color-private-orange-700-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-850-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-850);--g-color-text-dark-secondary:var(--g-color-private-black-700);--g-color-text-dark-hint:var(--g-color-private-black-500);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-150);--g-color-base-generic-hover:var(--g-color-private-black-300);--g-color-base-generic-medium:var(--g-color-private-black-250);--g-color-base-generic-medium-hover:var(--g-color-private-black-350);--g-color-base-generic-accent:var(--g-color-private-black-250);--g-color-base-generic-accent-disabled:var(--g-color-private-black-150);--g-color-base-generic-ultralight:var(--g-color-private-black-50-solid);--g-color-base-simple-hover:var(--g-color-private-black-150);--g-color-base-simple-hover-solid:var(--g-color-private-black-150-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-300);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-350);--g-color-base-info-medium:var(--g-color-private-blue-400);--g-color-base-info-medium-hover:var(--g-color-private-blue-500);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-350);--g-color-base-positive-medium:var(--g-color-private-green-400);--g-color-base-positive-medium-hover:var(--g-color-private-green-500);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-800-solid);--g-color-base-warning-light:var(--g-color-private-yellow-300);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-350);--g-color-base-danger-medium:var(--g-color-private-red-400);--g-color-base-danger-medium-hover:var(--g-color-private-red-500);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-800-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-350);--g-color-base-utility-medium:var(--g-color-private-purple-400);--g-color-base-utility-medium-hover:var(--g-color-private-purple-500);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-800-solid);--g-color-base-neutral-light:var(--g-color-private-black-150);--g-color-base-neutral-light-hover:var(--g-color-private-black-250);--g-color-base-neutral-medium:var(--g-color-private-black-300);--g-color-base-neutral-medium-hover:var(--g-color-private-black-400);--g-color-base-neutral-heavy:var(--g-color-private-black-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-350);--g-color-base-misc-medium:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-500);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-800-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-300);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-150-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-200);--g-color-line-generic-hover:var(--g-color-private-black-400);--g-color-line-generic-active:var(--g-color-private-black-700);--g-color-line-generic-accent:var(--g-color-private-black-300);--g-color-line-generic-accent-hover:var(--g-color-private-black-700);--g-color-line-generic-solid:var(--g-color-private-black-200-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-450);--g-color-sfx-shadow:var(--g-color-private-black-300);--g-color-sfx-shadow-heavy:var(--g-color-private-black-600);--g-color-sfx-shadow-light:var(--g-color-private-black-100);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark-hc{--g-color-private-white-50-solid:#1e1d1e;--g-color-private-white-70-solid:#232223;--g-color-private-white-100-solid:#2a292a;--g-color-private-white-150-solid:#363536;--g-color-private-white-200-solid:#414141;--g-color-private-white-250-solid:#4d4d4d;--g-color-private-white-300-solid:#595859;--g-color-private-white-350-solid:#656465;--g-color-private-white-400-solid:#717071;--g-color-private-white-450-solid:#7d7c7d;--g-color-private-white-500-solid:#888;--g-color-private-white-550-solid:#949494;--g-color-private-white-600-solid:#a0a0a0;--g-color-private-white-650-solid:#acacac;--g-color-private-white-700-solid:#b8b8b8;--g-color-private-white-750-solid:#c4c3c4;--g-color-private-white-800-solid:#d0cfd0;--g-color-private-white-850-solid:#d0cfd0;--g-color-private-white-900-solid:#e7e7e7;--g-color-private-white-950-solid:#f3f3f3;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#161e28;--g-color-private-blue-100-solid:#172533;--g-color-private-blue-150-solid:#192c3f;--g-color-private-blue-200-solid:#1d3955;--g-color-private-blue-250-solid:#20476b;--g-color-private-blue-300-solid:#245482;--g-color-private-blue-350-solid:#286198;--g-color-private-blue-400-solid:#2b6fae;--g-color-private-blue-450-solid:#2f7cc4;--g-color-private-blue-500-solid:#328adb;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#182120;--g-color-private-green-100-solid:#1b2927;--g-color-private-green-150-solid:#1e312d;--g-color-private-green-200-solid:#24413b;--g-color-private-green-250-solid:#2a5149;--g-color-private-green-300-solid:#306157;--g-color-private-green-350-solid:#357064;--g-color-private-green-400-solid:#3b8072;--g-color-private-green-450-solid:#419080;--g-color-private-green-500-solid:#47a08d;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#2a2219;--g-color-private-yellow-100-solid:#362b1d;--g-color-private-yellow-150-solid:#413421;--g-color-private-yellow-200-solid:#594528;--g-color-private-yellow-250-solid:#715630;--g-color-private-yellow-300-solid:#896837;--g-color-private-yellow-350-solid:#a0793e;--g-color-private-yellow-400-solid:#b88a46;--g-color-private-yellow-450-solid:#d09b4d;--g-color-private-yellow-500-solid:#e7ad55;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#241911;--g-color-private-orange-100-solid:#2d1d11;--g-color-private-orange-150-solid:#362111;--g-color-private-orange-200-solid:#492a10;--g-color-private-orange-250-solid:#5b3210;--g-color-private-orange-300-solid:#6d3a0f;--g-color-private-orange-350-solid:#7f420e;--g-color-private-orange-400-solid:#914a0e;--g-color-private-orange-450-solid:#a4530d;--g-color-private-orange-500-solid:#b65b0d;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#27141a;--g-color-private-red-100-solid:#32161d;--g-color-private-red-150-solid:#3c1821;--g-color-private-red-200-solid:#511b29;--g-color-private-red-250-solid:#661e30;--g-color-private-red-300-solid:#7c2238;--g-color-private-red-350-solid:#91253f;--g-color-private-red-400-solid:#a62847;--g-color-private-red-450-solid:#bb2b4e;--g-color-private-red-500-solid:#d02f56;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#1f1825;--g-color-private-purple-100-solid:#251b2e;--g-color-private-purple-150-solid:#2b1e37;--g-color-private-purple-200-solid:#38254a;--g-color-private-purple-250-solid:#442b5c;--g-color-private-purple-300-solid:#51326f;--g-color-private-purple-350-solid:#5d3882;--g-color-private-purple-400-solid:#6a3f94;--g-color-private-purple-450-solid:#7645a7;--g-color-private-purple-500-solid:#834cb9;--g-color-private-cool-grey-50-solid:#1a1c20;--g-color-private-cool-grey-100-solid:#1e2227;--g-color-private-cool-grey-150-solid:#22272e;--g-color-private-cool-grey-200-solid:#29323b;--g-color-private-cool-grey-250-solid:#313d49;--g-color-private-cool-grey-300-solid:#394957;--g-color-private-cool-grey-350-solid:#415465;--g-color-private-cool-grey-400-solid:#495f73;--g-color-private-cool-grey-450-solid:#506a80;--g-color-private-cool-grey-500-solid:#58758e;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-650-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-850-solid);--g-color-text-positive-heavy:var(--g-color-private-green-850-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-850-solid);--g-color-text-danger-heavy:var(--g-color-private-red-850-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-850-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-850-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-650-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-800);--g-color-text-dark-secondary:var(--g-color-private-black-600);--g-color-text-dark-hint:var(--g-color-private-black-400);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-800);--g-color-text-light-secondary:var(--g-color-private-white-600);--g-color-text-light-hint:var(--g-color-private-white-400);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#121112;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-250);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-400);--g-color-base-generic-accent:var(--g-color-private-white-200);--g-color-base-generic-accent-disabled:var(--g-color-private-white-150);--g-color-base-generic-ultralight:var(--g-color-private-white-50);--g-color-base-simple-hover:var(--g-color-private-white-250);--g-color-base-simple-hover-solid:var(--g-color-private-white-250-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-700-solid);--g-color-base-selection:var(--g-color-private-yellow-250);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-400);--g-color-base-info-medium:var(--g-color-private-blue-450);--g-color-base-info-medium-hover:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-400);--g-color-base-positive-medium:var(--g-color-private-green-450);--g-color-base-positive-medium-hover:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-850-solid);--g-color-base-warning-light:var(--g-color-private-yellow-250);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-450);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-700-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-850-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-400);--g-color-base-danger-medium:var(--g-color-private-red-450);--g-color-base-danger-medium-hover:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-850-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-400);--g-color-base-utility-medium:var(--g-color-private-purple-450);--g-color-base-utility-medium-hover:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-850-solid);--g-color-base-neutral-light:var(--g-color-private-white-200);--g-color-base-neutral-light-hover:var(--g-color-private-white-350);--g-color-base-neutral-medium:var(--g-color-private-white-400);--g-color-base-neutral-medium-hover:var(--g-color-private-white-550);--g-color-base-neutral-heavy:var(--g-color-private-white-650);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-750);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium:var(--g-color-private-cool-grey-450);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-850-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-200-solid);--g-color-base-float-medium:var(--g-color-private-white-200-solid);--g-color-base-float-heavy:var(--g-color-private-white-300-solid);--g-color-base-float-accent:var(--g-color-private-white-300-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-400-solid);--g-color-base-float-announcement:var(--g-color-private-white-200-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-600);--g-color-line-generic-accent:var(--g-color-private-white-350);--g-color-line-generic-accent-hover:var(--g-color-private-white-800);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-550-solid);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-550-solid);--g-color-line-positive:var(--g-color-private-green-550-solid);--g-color-line-warning:var(--g-color-private-yellow-550-solid);--g-color-line-danger:var(--g-color-private-red-550-solid);--g-color-line-utility:var(--g-color-private-purple-550-solid);--g-color-line-misc:var(--g-color-private-cool-grey-550-solid);--g-color-sfx-veil:var(--g-color-private-black-700);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-400);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar){scrollbar-color:var(--g-color-scroll-handle) var(--g-color-scroll-track);scrollbar-width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar{background:var(--g-color-scroll-track);height:var(--g-scrollbar-width);width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-track,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-track{background:var(--g-color-scroll-track)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-corner,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-corner{background:var(--g-color-scroll-corner)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb{background:var(--g-color-scroll-handle)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb:hover,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb:hover{background:var(--g-color-scroll-handle-hover)}@keyframes g-loading-animation{0%{background-position:-12px 0}to{background-position:0 0}}:root:has(body.g-root_theme_light),:root:has(body.g-root_theme_light-hc){color-scheme:light}:root:has(body.g-root_theme_dark),:root:has(body.g-root_theme_dark-hc){color-scheme:dark}@media(prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.unipika{--color-unipika-default:#a9a9a9;--color-unipika-string:#594c4c;--color-unipika-key:#d36b6b;--color-unipika-null:#594c4c;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#ffeff3;--color-unipika-binary-back:#fcf8e3;--color-unipika-binary-after:#888;--color-unipika-uuid:#c63;--color-unipika-tag-url:#04b;--color-unipika-tag-url-hover:#c00;color:var(--color-unipika-default);overflow-wrap:break-word;white-space:pre-wrap;word-break:normal}.unipika .pg_category_e,.unipika .pg_category_i,.unipika .pg_category_s,.unipika .string,.unipika .yql_string,.unipika .yql_utf8{color:var(--color-unipika-string)}.unipika .key,.unipika .special-key{color:var(--color-unipika-key)}.unipika .special-key{font-style:italic}.unipika .null,.unipika .yql_null{color:var(--color-unipika-null)}.unipika .null{font-style:italic}.unipika .yql_null{text-transform:uppercase}.unipika .int64,.unipika .number,.unipika .pg_category_n,.unipika .yql_int16,.unipika .yql_int32,.unipika .yql_int64,.unipika .yql_int8{color:var(--color-unipika-int)}.unipika .pg_category_a,.unipika .uint64,.unipika .yql_uint16,.unipika .yql_uint32,.unipika .yql_uint64,.unipika .yql_uint8{color:var(--color-unipika-uint)}.unipika .double,.unipika .pg_category_c,.unipika .yql_decimal,.unipika .yql_double,.unipika .yql_float{color:var(--color-unipika-float)}.unipika .boolean,.unipika .pg_category_b,.unipika .yql_bool,.unipika .yql_enum{color:var(--color-unipika-bool)}.unipika .pg_category_d,.unipika .yql_date,.unipika .yql_date32,.unipika .yql_datetime,.unipika .yql_datetime64,.unipika .yql_timestamp,.unipika .yql_timestamp64,.unipika .yql_tzdate,.unipika .yql_tzdate32,.unipika .yql_tzdatetime,.unipika .yql_tzdatetime64,.unipika .yql_tztimestamp,.unipika .yql_tztimestamp64{color:var(--color-unipika-date)}.unipika .pg_category_t,.unipika .yql_interval,.unipika .yql_interval64{color:var(--color-unipika-interval)}.unipika .yql_tagged.tag_image{vertical-align:top}.unipika .escape{background-color:var(--color-unipika-escape-back);color:var(--color-unipika-escape-text)}.unipika .quote{color:var(--color-unipika-default)}.unipika .binary,.unipika .incomplete,.unipika .pg_category_v{background-color:var(--color-unipika-binary-back)}.unipika .binary:after,.unipika .incomplete:after{color:var(--color-unipika-binary-after);padding-inline-start:.8em}.unipika .incomplete:after{content:"[truncated]";white-space:nowrap}.unipika .binary:after{content:"[binary]";white-space:nowrap}.unipika .incomplete.binary:after{content:"[truncated][binary]";white-space:nowrap}.unipika .pg_category_g,.unipika .yql_uuid{color:var(--color-unipika-uuid)}.unipika .pg_category_g.binary,.unipika .pg_category_g.incomplete,.unipika .yql_uuid.binary,.unipika .yql_uuid.incomplete{background:none}.unipika .pg_category_g.binary:after,.unipika .pg_category_g.incomplete:after,.unipika .yql_uuid.binary:after,.unipika .yql_uuid.incomplete:after{content:"";display:none}.unipika .tag_url{color:var(--color-unipika-tag-url);text-decoration:none}.unipika .tag_url:hover{color:var(--color-unipika-tag-url-hover)}.unipika-wrapper_inline_yes .unipika{display:inline-block}.g-root .unipika{font-family:var(--g-font-family-monospace)}.g-root .unipika-wrapper .g-root .unipika{border:0;margin:0;padding:0}.g-root_theme_dark .unipika,.g-root_theme_dark-hc .unipika{--color-unipika-default:#707070;--color-unipika-string:#9a8e8e;--color-unipika-key:#d36b6b;--color-unipika-null:#9a8e8e;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#292e1f;--color-unipika-binary-back:#292e1f;--color-unipika-binary-after:#666;--color-unipika-uuid:#c63;--color-unipika-tag-url:#47b;--color-unipika-tag-url-hover:#6af}.g-root_theme_light,.g-root_theme_light-hc{--gil-color-object-base:var(--g-color-private-yellow-550-solid);--gil-color-object-accent-heavy:var(--g-color-private-orange-650-solid);--gil-color-object-hightlight:var(--g-color-private-yellow-350-solid);--gil-color-shadow-over-object:var(--g-color-private-yellow-650-solid);--gil-color-background-lines:var(--g-color-private-black-450-solid);--gil-color-background-shapes:var(--g-color-private-black-50-solid);--gil-color-object-accent-light:var(--g-color-private-white-1000-solid);--gil-color-object-danger:var(--g-color-private-red-550-solid)}.g-root_theme_dark,.g-root_theme_dark-hc{--gil-color-object-base:var(--g-color-private-yellow-550-solid);--gil-color-object-accent-heavy:var(--g-color-private-orange-650-solid);--gil-color-object-hightlight:var(--g-color-private-yellow-700-solid);--gil-color-shadow-over-object:var(--g-color-private-yellow-500-solid);--gil-color-background-lines:var(--g-color-private-white-550-solid);--gil-color-background-shapes:var(--g-color-private-white-200-solid);--gil-color-object-accent-light:var(--g-color-private-white-1000-solid);--gil-color-object-danger:var(--g-color-private-red-550-solid)}.g-root_theme_dark,.g-root_theme_dark-hc,.g-root_theme_light,.g-root_theme_light-hc{--gil-color-object-base:var(--g-color-private-blue-450-solid);--gil-color-object-accent-heavy:var(--g-color-private-blue-850-solid);--gil-color-object-hightlight:var(--g-color-private-blue-350-solid);--gil-color-shadow-over-object:var(--g-color-private-blue-650-solid)}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/main.8f03af14.css b/ydb/core/viewer/monitoring/static/css/main.8f03af14.css deleted file mode 100644 index 5d7b4c15d2..0000000000 --- a/ydb/core/viewer/monitoring/static/css/main.8f03af14.css +++ /dev/null @@ -1,9 +0,0 @@ -@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);:root{--data-table-header-vertical-padding:5px;--data-table-cell-vertical-padding:5px;--data-table-cell-horizontal-padding:10px;--data-table-cell-border-padding:var(--data-table-cell-horizontal-padding);--data-table-cell-align:top;--data-table-head-align:top;--data-table-row-height:30px;--data-table-sort-icon-space:18px;--data-table-sort-icon-opacity-inactive:0.15;--data-table-sort-icon-color:inherit}.data-table{box-sizing:border-box;position:relative}.data-table__box{box-sizing:border-box;height:100%;width:100%}.data-table__box_sticky-head_moving{overflow:visible;position:relative;z-index:0}.data-table__box_sticky-head_moving .data-table__th{border-bottom:0;border-top:0;padding-bottom:0;padding-top:0}.data-table__box_sticky-head_moving .data-table__head-cell{display:block;height:0;overflow:hidden}.data-table__box_sticky-head_moving .data-table__row_header-data{visibility:hidden}.data-table__box_sticky-footer_fixed,.data-table__box_sticky-head_fixed{overflow:auto}.data-table__table{border-collapse:collapse;table-layout:fixed}.data-table__table_sticky{background:var(--data-table-color-base);width:100%}.data-table__row{height:var(--data-table-row-height)}.data-table__th{border:1px solid var(--data-table-border-color);box-sizing:border-box;cursor:default;font-weight:500;padding:var(--data-table-header-vertical-padding) var(--data-table-cell-horizontal-padding);position:relative;text-align:left;vertical-align:var(--data-table-head-align)}.data-table__th_sortable{cursor:pointer}.data-table__th_sortable .data-table__head-cell{padding-right:var(--data-table-sort-icon-space)}.data-table__th_sortable.data-table__th_align_right .data-table__head-cell{padding-left:var(--data-table-sort-icon-space);padding-right:0}.data-table__th_sortable.data-table__th_align_right .data-table__sort-icon{left:0;right:auto;transform:translateY(-50%) scaleX(-1)}.data-table__td{border:1px solid var(--data-table-border-color);box-sizing:border-box;overflow:hidden;padding:var(--data-table-cell-vertical-padding) var(--data-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:var(--data-table-cell-align);white-space:nowrap}.data-table__td_index,.data-table__th_index{text-align:right}.data-table__td_align_left,.data-table__th_align_left{text-align:left}.data-table__td_align_center,.data-table__th_align_center{text-align:center}.data-table__td_align_right,.data-table__th_align_right{text-align:right}.data-table__td:first-child,.data-table__th:first-child{padding-left:var(--data-table-cell-border-padding)}.data-table__td:last-child,.data-table__th:last-child{padding-right:var(--data-table-cell-border-padding)}.data-table__index{text-align:right}.data-table__head-cell{box-sizing:border-box;display:inline-block;max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.data-table__error{padding:20px;white-space:pre-wrap}.data-table__sort-icon{color:var(--data-table-sort-icon-color);display:inline-flex;position:absolute;right:0;top:50%;transform:translateY(-50%)}.data-table__sort-icon:after{content:attr(data-index);font-size:8px;left:100%;position:absolute;top:-5px}.data-table__sort-icon_shadow{opacity:var(--data-table-sort-icon-opacity-inactive)}.data-table__sort-icon_shadow:after{content:none}.data-table__icon{vertical-align:top}.data-table__no-data{background:var(--data-table-color-stripe)}.data-table__sticky_fixed{left:0;overflow:hidden;position:absolute;right:0;z-index:1}.data-table__sticky_fixed.data-table__sticky_head{top:0}.data-table__sticky_fixed.data-table__sticky_footer{bottom:0}.data-table__sticky_moving{margin-bottom:-1px;position:sticky;z-index:1}.data-table_striped-rows .data-table__row_odd{background:var(--data-table-color-stripe)}.data-table_highlight-rows .data-table__row:hover{background:var(--data-table-color-hover-area)}.data-table_header_multiline .data-table__head-cell{white-space:normal}.data-table_header_pre .data-table__head-cell{white-space:pre}.data-table__foot{background:var(--data-table-color-footer-area)}.data-table__foot_has-sticky-footer_moving{visibility:hidden}.data-table_theme_yandex-cloud{--data-table-color-base:var(--g-color-base-background,var(--yc-color-base-background));--data-table-color-stripe:var( --g-color-base-generic-ultralight,var(--yc-color-base-generic-ultralight) );--data-table-border-color:var( --g-color-base-generic-hover,var(--yc-color-base-generic-hover) );--data-table-color-hover-area:var( --g-color-base-simple-hover,var(--yc-color-base-simple-hover) );--data-table-color-footer-area:var(--data-table-color-base)}.data-table_theme_legacy{--data-table-color-base:#fff;--data-table-color-stripe:#00000008;--data-table-border-color:#ddd;--data-table-color-hover-area:#ffeba0;--data-table-color-footer-area:var(--data-table-color-base)}.data-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.data-table__resize-handler_resizing,.data-table__th:hover>.data-table__resize-handler{visibility:visible}.ydb-error-boundary{--g-definition-list-item-gap:var(--g-spacing-1);padding:var(--g-spacing-8)}.ydb-error-boundary__error-stack-wrapper{background-color:var(--code-background-color);border-radius:var(--g-border-radius-xs);height:430px;overflow:auto;scrollbar-color:var(--g-color-scroll-handle) #0000;width:800px}.ydb-error-boundary__error-stack-title{border-bottom:1px solid var(--g-color-line-generic);left:0;padding:var(--g-spacing-2) var(--g-spacing-3);position:sticky}.ydb-error-boundary__error-stack-code{padding:var(--g-spacing-3) var(--g-spacing-3) var(--g-spacing-2);white-space:pre-wrap}.ydb-error-boundary__qr-help-text{text-align:right}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-clipboard-button__icon{pointer-events:none}.g-icon{line-height:0;vertical-align:top}.g-button{--_--text-color:var(--g-color-text-primary);--_--text-color-hover:var(--_--text-color);--_--background-color:#0000;--_--background-color-hover:var(--g-color-base-simple-hover);--_--border-width:0;--_--border-color:currentColor;--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;--_--font-size:var(--g-text-body-1-font-size);-webkit-tap-highlight-color:rgba(0,0,0,0);background:none;background:#0000;border:none;box-sizing:border-box;color:inherit;color:var(--g-button-text-color,var(--_--text-color));cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-size:var(--g-button-font-size,var(--_--font-size));font-weight:var(--g-text-body-font-weight);gap:var(--g-button-icon-offset,var(--_--icon-offset));height:var(--g-button-height,var(--_--height));justify-content:center;line-height:var(--g-button-height,var(--_--height));outline:none;overflow:visible;padding:0;padding:0 var(--g-button-padding,var(--_--padding));position:relative;text-align:center;text-decoration:none;touch-action:manipulation;transform:scale(1);transition:transform .1s ease-out,color .15s linear;-webkit-user-select:none;user-select:none;white-space:nowrap}.g-button:before{background-color:var(--g-button-background-color,var(--_--background-color));border:var(--g-button-border-width,var(--_--border-width)) var(--g-button-border-style,solid) var(--g-button-border-color,var(--_--border-color));content:"";inset:0;position:absolute;transition:background-color .15s linear;z-index:-1}.g-button:hover{color:var(--g-button-text-color-hover,var(--_--text-color-hover))}.g-button:hover:before{background-color:var(--g-button-background-color-hover,var(--_--background-color-hover))}.g-button:focus-visible:before{outline:var(--g-button-focus-outline-color,var(--_--focus-outline-color)) var(--g-button-focus-outline-style,solid) var(--g-button-focus-outline-width,2px);outline-offset:var(--g-button-focus-outline-offset,var(--_--focus-outline-offset))}.g-button:after{content:"";inset:0;position:absolute;transform:scale(1);transition:none;z-index:-1}.g-button:active{transform:scale(.96);transition:none}.g-button:active:after{transform:scale(1.042)}.g-button_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--padding:6px;--_--icon-size:12px;--_--icon-offset:4px}.g-button_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--padding:8px;--_--icon-size:16px;--_--icon-offset:4px}.g-button_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--padding:12px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_l{--_--height:36px;--_--border-radius:var(--g-border-radius-l);--_--padding:16px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_xl{--_--height:44px;--_--border-radius:var(--g-border-radius-xl);--_--padding:24px;--_--icon-size:20px;--_--icon-offset:12px;--_--font-size:var(--g-text-body-2-font-size)}.g-button_view_normal{--_--background-color:var(--g-color-base-generic);--_--background-color-hover:var(--g-color-base-generic-hover)}.g-button_view_action{--_--text-color:var(--g-color-text-brand-contrast);--_--background-color:var(--g-color-base-brand);--_--background-color-hover:var(--g-color-base-brand-hover);--_--focus-outline-color:var(--g-color-base-brand);--_--focus-outline-offset:1px}.g-button_view_outlined{--_--border-width:1px;--_--border-color:var(--g-color-line-generic)}.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info);--_--border-width:1px;--_--border-color:var(--g-color-line-info)}.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive);--_--border-width:1px;--_--border-color:var(--g-color-line-positive)}.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning);--_--border-width:1px;--_--border-color:var(--g-color-line-warning)}.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger);--_--border-width:1px;--_--border-color:var(--g-color-line-danger)}.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility);--_--border-width:1px;--_--border-color:var(--g-color-line-utility)}.g-button_view_outlined-action{--_--text-color:var(--g-color-text-brand);--_--border-width:1px;--_--border-color:var(--g-color-line-brand)}.g-button_view_raised{--_--background-color-hover:var(--g-color-base-float-hover);background:var(--g-color-base-float)}.g-button_view_raised:before{box-shadow:0 3px 5px var(--g-color-sfx-shadow)}.g-button_view_raised:active:before{box-shadow:0 1px 2px var(--g-color-sfx-shadow)}.g-button_view_flat-secondary{--_--text-color:var(--g-color-text-secondary);--_--text-color-hover:var(--g-color-text-primary)}.g-button_view_flat-info{--_--text-color:var(--g-color-text-info)}.g-button_view_flat-success{--_--text-color:var(--g-color-text-positive)}.g-button_view_flat-warning{--_--text-color:var(--g-color-text-warning)}.g-button_view_flat-danger{--_--text-color:var(--g-color-text-danger)}.g-button_view_flat-utility{--_--text-color:var(--g-color-text-utility)}.g-button_view_flat-action{--_--text-color:var(--g-color-text-brand)}.g-button_view_normal-contrast{--_--text-color:var(--g-color-text-dark-primary);--_--background-color:var(--g-color-base-light);--_--background-color-hover:var(--g-color-base-light-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_normal-contrast.g-button_loading{--_--background-color-hover:var(--g-color-base-simple-hover)}.g-button_view_outlined-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--border-width:1px;--_--border-color:var(--g-color-line-light);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button.g-button_pin_round-round.g-button{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick.g-button{border-radius:0}.g-button.g-button_pin_clear-clear.g-button{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle.g-button{border-radius:100px}.g-button.g-button_pin_round-brick.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear.g-button{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick.g-button{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:before{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:before{border-radius:0}.g-button.g-button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:before{border-radius:100px}.g-button.g-button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:after{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:after{border-radius:0}.g-button.g-button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:after{border-radius:100px}.g-button.g-button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button__text{display:inline-block;white-space:nowrap}.g-button__icon{display:inline-block;height:var(--g-button-height,var(--_--height));margin:0 calc((var(--g-button-height, var(--_--height)) - var(--g-button-icon-size, var(--_--icon-size)))/2*-1);position:relative;width:var(--g-button-height,var(--_--height))}.g-button__icon:after{content:"Â ";visibility:hidden}.g-button__icon-inner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.g-button__icon_side_start{order:-1}.g-button__icon_side_end{order:1}.g-button__icon:only-child{margin:0}.g-button:has(.g-button__icon:only-child){--_--padding:0}.g-button:has(.g-button__icon:only-child):not(.g-button_width_max){width:var(--g-button-height,var(--_--height))}.g-button_selected:not(.g-button_view_outlined-contrast){--_--border-width:0}.g-button_selected:not(.g-button_view_normal-contrast,.g-button_view_flat-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-brand-heavy);--_--background-color:var(--g-color-base-selection);--_--background-color-hover:var(--g-color-base-selection-hover)}.g-button_selected.g-button_view_flat-info,.g-button_selected.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info-heavy);--_--background-color:var(--g-color-base-info-light);--_--background-color-hover:var(--g-color-base-info-light-hover)}.g-button_selected.g-button_view_flat-success,.g-button_selected.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive-heavy);--_--background-color:var(--g-color-base-positive-light);--_--background-color-hover:var(--g-color-base-positive-light-hover)}.g-button_selected.g-button_view_flat-warning,.g-button_selected.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning-heavy);--_--background-color:var(--g-color-base-warning-light);--_--background-color-hover:var(--g-color-base-warning-light-hover)}.g-button_selected.g-button_view_flat-danger,.g-button_selected.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger-heavy);--_--background-color:var(--g-color-base-danger-light);--_--background-color-hover:var(--g-color-base-danger-light-hover)}.g-button_selected.g-button_view_flat-utility,.g-button_selected.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility-heavy);--_--background-color:var(--g-color-base-utility-light);--_--background-color-hover:var(--g-color-base-utility-light-hover)}.g-button_disabled{cursor:default;pointer-events:none}.g-button_disabled:not(.g-button_loading){--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--background-color-hover:var(--g-color-base-generic-accent-disabled);--_--border-width:0}.g-button_disabled:not(.g-button_loading):is(.g-button_view_normal-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-light-secondary);--_--background-color:var(--g-color-base-light-disabled);--_--background-color-hover:var(--g-color-base-light-disabled)}.g-button_disabled:not(.g-button_loading):is(.g-button_view_flat,.g-button_view_flat-secondary,.g-button_view_flat-info,.g-button_view_flat-success,.g-button_view_flat-warning,.g-button_view_flat-danger,.g-button_view_flat-utility,.g-button_view_flat-action,.g-button_view_flat-contrast){--_--text-color:var(--g-color-text-hint);--_--background-color:#0000;--_--background-color-hover:#0000}.g-button_disabled:not(.g-button_loading).g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-hint)}.g-button_disabled:active{transform:scale(1)}.g-button_loading:before{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,var(--g-button-background-color,var(--_--background-color)),var(--g-button-background-color,var(--_--background-color)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 8px);background-size:150%}.g-button_width_auto{max-width:100%}.g-button_width_max{width:100%}.g-button_width_auto .g-button__text,.g-button_width_max .g-button__text{display:block;overflow:hidden;text-overflow:ellipsis}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.g-switch{position:relative}.g-switch__control{cursor:pointer;opacity:0}.g-switch__indicator{display:inline-block;position:relative}.g-switch__indicator:before{background-color:var(--g-color-base-generic-medium);content:"";inset:0;position:absolute;transition:background .1s linear}.g-switch__indicator:after{content:"Â ";visibility:hidden}.g-switch__slider{background-color:var(--g-color-base-background);border-radius:50%;content:"";position:absolute;transition:transform .15s ease-out}.g-switch__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%}.g-switch__control:focus-visible+.g-switch__outline{outline:2px solid var(--g-color-line-focus)}.g-switch_size_m .g-switch__indicator,.g-switch_size_m .g-switch__indicator:before,.g-switch_size_m .g-switch__outline{border-radius:10px;height:20px;width:36px}.g-switch_size_m .g-switch__slider{height:16px;inset-block-start:2px;inset-inline-start:2px;width:16px}.g-switch_size_m .g-switch__text{margin-block-start:3px}.g-switch_size_l .g-switch__indicator,.g-switch_size_l .g-switch__indicator:before,.g-switch_size_l .g-switch__outline{border-radius:12px;height:24px;width:42px}.g-switch_size_l .g-switch__slider{height:18px;inset-block-start:3px;inset-inline-start:3px;width:18px}.g-switch_size_l .g-switch__text{margin-block-start:4px}.g-switch:hover .g-switch__indicator:before{background-color:var(--g-color-base-generic-medium-hover)}.g-switch_checked .g-switch__slider{--_--translate-x:calc(100%*var(--g-flow-direction));transform:translateX(var(--_--translate-x))}.g-switch_checked .g-switch__indicator:before,.g-switch_checked:hover .g-switch__indicator:before{background-color:var(--g-color-base-brand)}.g-switch_disabled .g-switch__indicator:before{background-color:var(--g-color-base-generic-accent-disabled)}.g-switch_disabled.g-switch_checked .g-switch__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-control-label{-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--g-color-text-primary);cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);touch-action:manipulation;-webkit-user-select:none;user-select:none}.g-control-label_disabled{cursor:default;pointer-events:none}.g-control-label_size_m{font-size:var(--g-text-body-1-font-size);line-height:15px}.g-control-label_size_l{font-size:var(--g-text-body-2-font-size);line-height:18px}.g-control-label__indicator{flex-shrink:0}.g-control-label__text{flex-grow:1;white-space:normal}.g-control-label_disabled .g-control-label__text{opacity:.6}.g-control-label_size_m .g-control-label__text{margin-inline-start:5px}.g-control-label_size_l .g-control-label__text{margin-inline-start:7px}.g-radio-button{--_--border-radius-inner:calc(var(--_--border-radius) - 3px);background-color:var(--g-color-base-generic);border-radius:var(--_--border-radius);box-sizing:border-box;display:inline-flex;flex-direction:row;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);position:relative}.g-radio-button__plate{inset-block:0;position:absolute;transition:left .2s,width .2s}.g-radio-button__plate[hidden]{display:none}.g-radio-button__option{border-radius:var(--_--border-radius-inner);cursor:pointer;flex:1 1 auto;font-size:var(--g-text-body-1-font-size);text-align:center;transform:scale(1);transition:color .15s linear;-webkit-user-select:none;user-select:none}.g-radio-button__option-outline{border-radius:var(--_--border-radius-inner);content:"";inset:3px;position:absolute;z-index:-1}.g-radio-button__option-control{border:none;cursor:inherit;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:none;padding:0;position:absolute;width:100%}.g-radio-button__option-control:focus-visible+.g-radio-button__option-outline{outline:2px solid var(--g-color-line-focus)}.g-radio-button__option-text{color:var(--g-color-text-complementary);display:inline-block;white-space:nowrap}.g-radio-button__option-text_icon{align-items:center;display:flex;height:100%}.g-radio-button__option:hover .g-radio-button__option-text,.g-radio-button__option_checked .g-radio-button__option-text{color:var(--g-color-text-primary)}.g-radio-button__option_checked{cursor:default}.g-radio-button__option_disabled{cursor:default;pointer-events:none}.g-radio-button__option_disabled .g-radio-button__option-text{color:var(--g-color-text-hint)}.g-radio-button__option:before,.g-radio-button__plate:before{border-radius:var(--_--border-radius-inner);inset:3px;position:absolute}.g-radio-button__option:before{z-index:-1}.g-radio-button__plate:before,.g-radio-button__plate[hidden]~.g-radio-button__option_checked:before{background-color:var(--g-color-base-background);content:""}.g-radio-button_size_s{--_--border-radius:var(--g-border-radius-s)}.g-radio-button_size_s .g-radio-button__option{height:24px;line-height:24px}.g-radio-button_size_s .g-radio-button__option-text{margin:0 10px}.g-radio-button_size_m{--_--border-radius:var(--g-border-radius-m)}.g-radio-button_size_m .g-radio-button__option{height:28px;line-height:28px}.g-radio-button_size_m .g-radio-button__option-text{margin:0 13px}.g-radio-button_size_l{--_--border-radius:var(--g-border-radius-l)}.g-radio-button_size_l .g-radio-button__option{height:36px;line-height:36px}.g-radio-button_size_l .g-radio-button__option-text{margin:0 18px}.g-radio-button_size_xl{--_--border-radius:var(--g-border-radius-xl)}.g-radio-button_size_xl .g-radio-button__option{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-radio-button_size_xl .g-radio-button__option-text{margin:0 25px}.g-radio-button_width_auto{max-width:100%}.g-radio-button_width_max{width:100%}.g-radio-button_width_auto .g-radio-button__option,.g-radio-button_width_max .g-radio-button__option{overflow:hidden}.g-radio-button_width_auto .g-radio-button__option-text,.g-radio-button_width_max .g-radio-button__option-text{display:block;overflow:hidden;text-overflow:ellipsis}.g-label{--_--bg-color:none;--_--bg-color-hover:none;--_--text-color:none;align-items:center;background-color:var(--_--bg-color);border-radius:var(--_--border-radius);box-sizing:border-box;color:var(--_--text-color);display:inline-flex;height:var(--_--height);isolation:isolate;position:relative;transition-duration:.15s;transition-property:opacity,color,background-color;transition-timing-function:ease-in-out}.g-label__text{align-items:baseline;display:flex;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);line-height:var(--_--height);margin:0 var(--_--margin-inline);overflow:hidden;text-align:center;white-space:nowrap;width:100%}.g-label__content,.g-label__key{overflow:hidden;text-overflow:ellipsis}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{background:none;border:none;border-radius:inherit;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;z-index:1}.g-label__main-button:empty{inset:0;position:absolute}.g-label__addon{align-items:center;border-radius:var(--_--border-radius);display:flex;height:var(--_--height);justify-content:center;width:var(--_--height)}.g-label__addon_side_end,.g-label__addon_side_start{inset-block-start:0;position:absolute}.g-label__addon_side_start{border-end-end-radius:0;border-start-end-radius:0;inset-inline-start:2px}.g-label__addon_side_end{border-end-start-radius:0;border-start-start-radius:0;inset-inline-end:0}.g-label__addon_type_button{background:none;background-color:initial;border:none;color:inherit;color:var(--_--text-color);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out;z-index:2}.g-label__addon_type_button:active{transform:scale(.96)}.g-label_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--margin-inline:8px;--_--margin-addon-start:24px;--_--margin-addon-end:22px}.g-label_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--margin-inline:10px;--_--margin-addon-start:28px;--_--margin-addon-end:26px}.g-label_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--margin-inline:12px;--_--margin-addon-start:32px;--_--margin-addon-end:32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color:var(--g-color-base-misc-light);--_--bg-color-hover:var(--g-color-base-misc-light-hover);--_--text-color:var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color:var(--g-color-base-positive-light);--_--bg-color-hover:var(--g-color-base-positive-light-hover);--_--text-color:var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color:var(--g-color-base-info-light);--_--bg-color-hover:var(--g-color-base-info-light-hover);--_--text-color:var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color:var(--g-color-base-warning-light);--_--bg-color-hover:var(--g-color-base-warning-light-hover);--_--text-color:var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color:var(--g-color-base-danger-light);--_--bg-color-hover:var(--g-color-base-danger-light-hover);--_--text-color:var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color:var(--g-color-base-utility-light);--_--bg-color-hover:var(--g-color-base-utility-light-hover);--_--text-color:var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color:var(--g-color-base-neutral-light);--_--bg-color-hover:var(--g-color-base-neutral-light-hover);--_--text-color:var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color:#0000;--_--bg-color-hover:var(--g-color-base-simple-hover);--_--text-color:var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label__addon_type_button:hover,.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)){background-color:var(--_--bg-color-hover)}.g-label__addon_type_button:focus-visible,.g-label__main-button:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-tabs{--_--vertical-item-padding:var(--g-tabs-vertical-item-padding,6px 20px);--_--vertical-item-height:var(--g-tabs-vertical-item-height,18px)}.g-tabs_size_m{--_--item-height:36px;--_--item-gap:24px;--_--item-border-width:2px}.g-tabs_size_m .g-tabs__item-counter,.g-tabs_size_m .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-tabs_size_l{--_--item-height:40px;--_--item-gap:28px;--_--item-border-width:2px}.g-tabs_size_l .g-tabs__item-counter,.g-tabs_size_l .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-tabs_size_xl{--_--item-height:44px;--_--item-gap:32px;--_--item-border-width:3px}.g-tabs_size_xl .g-tabs__item-counter,.g-tabs_size_xl .g-tabs__item-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-tabs__item{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.g-tabs__item-content{align-items:center;border-radius:var(--g-focus-border-radius);display:flex}.g-tabs__item_overflow .g-tabs__item-content{min-width:0}.g-tabs__item-icon{margin-inline-end:8px}.g-tabs__item-title{white-space:nowrap}.g-tabs__item_overflow .g-tabs__item-title{overflow:hidden;text-overflow:ellipsis}.g-tabs__item-counter,.g-tabs__item-label{margin-inline-start:8px}.g-tabs__item-icon>svg{display:block}.g-tabs_direction_horizontal{align-items:flex-end;box-shadow:inset 0 calc(var(--g-tabs-border-width, 1px)*-1) 0 0 var(--g-color-line-generic);display:flex;flex-wrap:wrap;overflow:hidden}.g-tabs_direction_horizontal .g-tabs__item{align-items:center;border-block-end:var(--g-tabs-item-border-width,var(--_--item-border-width)) solid #0000;box-sizing:border-box;display:flex;height:var(--g-tabs-item-height,var(--_--item-height));padding-block-start:var(--_--item-border-width)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-content{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.g-tabs_direction_horizontal .g-tabs__item-meta{display:none}.g-tabs_direction_horizontal .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item-icon{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-title{color:var(--g-color-text-primary)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item_active,.g-tabs_direction_horizontal .g-tabs__item_active:focus-visible,.g-tabs_direction_horizontal .g-tabs__item_active:hover{border-color:var(--g-color-line-brand)}.g-tabs_direction_horizontal .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_horizontal .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal>:not(:last-child){margin-inline-end:var(--g-tabs-item-gap,var(--_--item-gap))}.g-tabs_direction_vertical{display:flex;flex-direction:column}.g-tabs_direction_vertical .g-tabs__item{padding:var(--_--vertical-item-padding)}.g-tabs_direction_vertical .g-tabs__item-title{color:var(--g-color-text-primary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-meta{color:var(--g-color-text-secondary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-counter,.g-tabs_direction_vertical .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_vertical .g-tabs__item:focus-visible,.g-tabs_direction_vertical .g-tabs__item:hover{background-color:var(--g-color-base-generic-hover)}.g-tabs_direction_vertical .g-tabs__item_active{background-color:var(--g-color-base-selection)}.g-tabs_direction_vertical .g-tabs__item_active:focus-visible,.g-tabs_direction_vertical .g-tabs__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-tabs_direction_vertical .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_vertical .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}.g-text-input{--_--text-color:var(--g-color-text-primary);--_--label-color:inherit;--_--placeholder-color:var(--g-color-text-hint);--_--background-color:#0000;--_--border-width:1px;--_--focus-outline-color:var(--g-text-input-focus-outline-color);display:inline-block;position:relative;width:100%}.g-text-input__content{background-color:var(--g-text-input-background-color,var(--_--background-color));border-color:var(--g-text-input-border-color,var(--_--border-color));border-style:solid;border-width:var(--g-text-input-border-width,var(--_--border-width));box-sizing:border-box;color:var(--g-text-input-text-color,var(--_--text-color));display:flex;overflow:hidden;width:100%}.g-text-input__content:hover{border-color:var(--g-text-input-border-color-hover,var(--_--border-color-hover))}.g-text-input__content:focus-within{border-color:var(--g-text-input-border-color-active,var(--_--border-color-active));outline:2px solid var(--g-text-input-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-text-input__control{background-color:initial;border:none;box-sizing:border-box;color:inherit;display:inline-block;flex-grow:1;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);height:var(--g-text-input-height);margin:0;padding:0;position:relative;vertical-align:top;width:100%}.g-text-input__control::placeholder{color:var(--g-text-input-placeholder-color,var(--_--placeholder-color));overflow:hidden;white-space:nowrap}.g-text-input__control:focus{outline:none}.g-text-input__control[type=number]{appearance:textfield}.g-text-input__label{box-sizing:border-box;color:var(--g-text-input-label-color,var(--_--label-color));overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap;z-index:1}.g-text-input__clear{flex-shrink:0;margin:auto 0}.g-text-input__clear_size_m,.g-text-input__clear_size_s{margin-inline-end:1px}.g-text-input__clear_size_l,.g-text-input__clear_size_xl{margin-inline-end:2px}.g-text-input__error-icon{box-sizing:initial;color:var(--g-color-text-danger);padding-block:var(--_--error-icon-padding-block);padding-inline:var(--_--error-icon-padding-inline)}.g-text-input__additional-content{align-items:center;display:flex}.g-text-input_size_s{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-s)}.g-text-input_size_s .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(24px - var(--_--input-control-border-width)*2);padding:3px 8px}.g-text-input_size_s .g-text-input__control,.g-text-input_size_s .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_s .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:3px;padding-inline:8px 4px}.g-text-input_size_s.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_s .g-text-input__additional-content{height:22px}.g-text-input_size_s .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_s .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_m{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-m)}.g-text-input_size_m .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(28px - var(--_--input-control-border-width)*2);padding:5px 8px}.g-text-input_size_m .g-text-input__control,.g-text-input_size_m .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_m .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:5px;padding-inline:8px 4px}.g-text-input_size_m.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_m .g-text-input__additional-content{height:26px}.g-text-input_size_m .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_m .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_l{--_--error-icon-padding-block:9px;--_--error-icon-padding-inline:0 9px;--_--border-radius:var(--g-border-radius-l)}.g-text-input_size_l .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:inline-flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.ydb-cell-with-popover{display:inline-flex;max-width:100%}.ydb-cell-with-popover_full-width{display:flex}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-cell-with-popover__popover_full-width{width:100%}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label{color:var(--g-color-text-secondary);padding-right:15px}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.ydb-connect-to-db__dialog-tabs,.ydb-connect-to-db__docs{margin-top:var(--g-spacing-4)}.ydb-connect-to-db__snippet-container{height:270px}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-divider{--_--content-gap:8px;--_--size:1px}.g-divider:not(:empty){align-items:center;border:none;display:flex}.g-divider:not(:empty):after,.g-divider:not(:empty):before{content:""}.g-divider:after,.g-divider:before{background:var(--g-divider-color,var(--g-color-line-generic));flex-grow:1}.g-divider_orientation_vertical{border-inline-start:1px solid var(--g-divider-color,var(--g-color-line-generic));flex-direction:column}.g-divider_orientation_vertical:after,.g-divider_orientation_vertical:before{width:var(--_--size)}.g-divider_orientation_vertical:before{margin-block-end:var(--_--content-gap)}.g-divider_orientation_vertical:after{margin-block-start:var(--_--content-gap)}.g-divider_orientation_horizontal{border-block-start:1px solid var(--g-divider-color,var(--g-color-line-generic))}.g-divider_orientation_horizontal:after,.g-divider_orientation_horizontal:before{height:var(--_--size)}.g-divider_orientation_horizontal:before{margin-inline-end:var(--_--content-gap)}.g-divider_orientation_horizontal:after{margin-inline-start:var(--_--content-gap)}.g-divider_align_end:after,.g-divider_align_start:before{display:none}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-simple-hover-solid);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}.g-root_theme_light,.g-root_theme_light-hc{--code-background-color:var(--g-color-base-simple-hover)}.g-root_theme_dark,.g-root_theme_dark-hc{--code-background-color:#1e1e1e}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-root{--g-font-family-sans:"Inter","Helvetica Neue","Helvetica","Arial",sans-serif;--g-font-family-monospace:"Menlo","Monaco","Consolas","Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New","Courier",monospace;--g-text-body-font-family:var(--g-font-family-sans);--g-text-caption-font-family:var(--g-font-family-sans);--g-text-header-font-family:var(--g-font-family-sans);--g-text-subheader-font-family:var(--g-font-family-sans);--g-text-display-font-family:var(--g-font-family-sans);--g-text-code-font-family:var(--g-font-family-monospace);--g-text-body-font-weight:400;--g-text-caption-font-weight:400;--g-text-header-font-weight:600;--g-text-display-font-weight:600;--g-text-code-font-weight:400;--g-text-accent-font-weight:600;--g-text-body-1-font-size:13px;--g-text-body-1-line-height:18px;--g-text-body-2-font-size:15px;--g-text-body-2-line-height:20px;--g-text-body-3-font-size:17px;--g-text-body-3-line-height:24px;--g-text-body-short-font-size:13px;--g-text-body-short-line-height:16px;--g-text-caption-1-font-size:9px;--g-text-caption-1-line-height:12px;--g-text-caption-2-font-size:11px;--g-text-caption-2-line-height:16px;--g-text-header-1-font-size:20px;--g-text-header-1-line-height:24px;--g-text-header-2-font-size:24px;--g-text-header-2-line-height:28px;--g-text-subheader-1-font-size:13px;--g-text-subheader-1-line-height:18px;--g-text-subheader-2-font-size:15px;--g-text-subheader-2-line-height:20px;--g-text-subheader-3-font-size:17px;--g-text-subheader-3-line-height:24px;--g-text-display-1-font-size:28px;--g-text-display-1-line-height:36px;--g-text-display-2-font-size:32px;--g-text-display-2-line-height:40px;--g-text-display-3-font-size:40px;--g-text-display-3-line-height:48px;--g-text-display-4-font-size:48px;--g-text-display-4-line-height:52px;--g-text-code-1-font-size:12px;--g-text-code-1-line-height:18px;--g-text-code-2-font-size:14px;--g-text-code-2-line-height:20px;--g-text-code-3-font-size:16px;--g-text-code-3-line-height:24px;--g-text-code-inline-1-font-size:12px;--g-text-code-inline-1-line-height:14px;--g-text-code-inline-2-font-size:14px;--g-text-code-inline-2-line-height:16px;--g-text-code-inline-3-font-size:16px;--g-text-code-inline-3-line-height:20px;--g-spacing-base:4px;--g-spacing-0:calc(var(--g-spacing-base)*0);--g-spacing-half:calc(var(--g-spacing-base)*0.5);--g-spacing-1:var(--g-spacing-base);--g-spacing-2:calc(var(--g-spacing-base)*2);--g-spacing-3:calc(var(--g-spacing-base)*3);--g-spacing-4:calc(var(--g-spacing-base)*4);--g-spacing-5:calc(var(--g-spacing-base)*5);--g-spacing-6:calc(var(--g-spacing-base)*6);--g-spacing-7:calc(var(--g-spacing-base)*7);--g-spacing-8:calc(var(--g-spacing-base)*8);--g-spacing-9:calc(var(--g-spacing-base)*9);--g-spacing-10:calc(var(--g-spacing-base)*10);--g-scrollbar-width:12px;--g-border-radius-xs:3px;--g-border-radius-s:5px;--g-border-radius-m:6px;--g-border-radius-l:8px;--g-border-radius-xl:10px;--g-focus-border-radius:2px;background:var(--g-color-base-background);color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-root[dir=ltr],body.g-root{--g-flow-direction:1;--g-flow-is-ltr:1;--g-flow-is-rtl:0}.g-root[dir=rtl]{--g-flow-direction:-1;--g-flow-is-ltr:0;--g-flow-is-rtl:1}.g-root_theme_light{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#348bdc;--g-color-private-blue-650-solid:#327fc8;--g-color-private-blue-700-solid:#3072b3;--g-color-private-blue-750-solid:#2e669e;--g-color-private-blue-800-solid:#2c5a8a;--g-color-private-blue-850-solid:#2a4e75;--g-color-private-blue-900-solid:#284260;--g-color-private-blue-950-solid:#26354b;--g-color-private-blue-1000-solid:#252f41;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#30aa6e;--g-color-private-green-650-solid:#2f9b65;--g-color-private-green-700-solid:#2d8b5d;--g-color-private-green-750-solid:#2c7b54;--g-color-private-green-800-solid:#2a6c4c;--g-color-private-green-850-solid:#285c44;--g-color-private-green-900-solid:#274c3b;--g-color-private-green-950-solid:#253c33;--g-color-private-green-1000-solid:#24352f;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e9ae56;--g-color-private-yellow-650-solid:#d39e50;--g-color-private-yellow-700-solid:#bd8e4b;--g-color-private-yellow-750-solid:#a77e45;--g-color-private-yellow-800-solid:#916e3f;--g-color-private-yellow-850-solid:#7a5d39;--g-color-private-yellow-900-solid:#644d33;--g-color-private-yellow-950-solid:#4e3d2e;--g-color-private-yellow-1000-solid:#43352b;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e96e03;--g-color-private-orange-650-solid:#d36507;--g-color-private-orange-700-solid:#bd5c0a;--g-color-private-orange-750-solid:#a7530e;--g-color-private-orange-800-solid:#914a11;--g-color-private-orange-850-solid:#7a4114;--g-color-private-orange-900-solid:#643818;--g-color-private-orange-950-solid:#4e2f1b;--g-color-private-orange-1000-solid:#432b1d;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e9033a;--g-color-private-red-650-solid:#d30638;--g-color-private-red-700-solid:#bd0935;--g-color-private-red-750-solid:#a70c32;--g-color-private-red-800-solid:#910f30;--g-color-private-red-850-solid:#7a112d;--g-color-private-red-900-solid:#64142a;--g-color-private-red-950-solid:#4e1727;--g-color-private-red-1000-solid:#431926;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7947aa;--g-color-private-purple-700-solid:#6e4299;--g-color-private-purple-750-solid:#633d88;--g-color-private-purple-800-solid:#593877;--g-color-private-purple-850-solid:#4e3266;--g-color-private-purple-900-solid:#432d55;--g-color-private-purple-950-solid:#382844;--g-color-private-purple-1000-solid:#32253c;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#647a8d;--g-color-private-cool-grey-650-solid:#5c6f81;--g-color-private-cool-grey-700-solid:#556575;--g-color-private-cool-grey-750-solid:#4e5b69;--g-color-private-cool-grey-800-solid:#47515e;--g-color-private-cool-grey-850-solid:#3f4652;--g-color-private-cool-grey-900-solid:#383c46;--g-color-private-cool-grey-950-solid:#31323a;--g-color-private-cool-grey-1000-solid:#2d2c34;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-600-solid);--g-color-text-positive:var(--g-color-private-green-600-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-600-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-700-solid);--g-color-text-positive-heavy:var(--g-color-private-green-700-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-700-solid);--g-color-text-danger-heavy:var(--g-color-private-red-700-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-650-solid);--g-color-text-link-hover:var(--g-color-private-orange-650-solid);--g-color-text-link-visited:var(--g-color-private-purple-550-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-850);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-50);--g-color-base-generic-hover:var(--g-color-private-black-150);--g-color-base-generic-medium:var(--g-color-private-black-150);--g-color-base-generic-medium-hover:var(--g-color-private-black-250);--g-color-base-generic-accent:var(--g-color-private-black-150);--g-color-base-generic-accent-disabled:var(--g-color-private-black-70);--g-color-base-generic-ultralight:var(--g-color-private-black-20-solid);--g-color-base-simple-hover:var(--g-color-private-black-50);--g-color-base-simple-hover-solid:var(--g-color-private-black-50-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-600-solid);--g-color-base-selection:var(--g-color-private-yellow-200);--g-color-base-selection-hover:var(--g-color-private-yellow-300);--g-color-base-info-light:var(--g-color-private-blue-100);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-200);--g-color-base-info-medium-hover:var(--g-color-private-blue-300);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-100);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-200);--g-color-base-positive-medium-hover:var(--g-color-private-green-300);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-200);--g-color-base-warning-light-hover:var(--g-color-private-yellow-300);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-500);--g-color-base-warning-heavy:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-650-solid);--g-color-base-danger-light:var(--g-color-private-red-100);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-200);--g-color-base-danger-medium-hover:var(--g-color-private-red-300);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-100);--g-color-base-utility-light-hover:var(--g-color-private-purple-200);--g-color-base-utility-medium:var(--g-color-private-purple-200);--g-color-base-utility-medium-hover:var(--g-color-private-purple-300);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-black-50);--g-color-base-neutral-light-hover:var(--g-color-private-black-100);--g-color-base-neutral-medium:var(--g-color-private-black-200);--g-color-base-neutral-medium-hover:var(--g-color-private-black-250);--g-color-base-neutral-heavy:var(--g-color-private-black-450);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-550);--g-color-base-misc-light:var(--g-color-private-cool-grey-100);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-300);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-50-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-50-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-100);--g-color-line-generic-hover:var(--g-color-private-black-150);--g-color-line-generic-active:var(--g-color-private-black-300);--g-color-line-generic-accent:var(--g-color-private-black-150);--g-color-line-generic-accent-hover:var(--g-color-private-black-300);--g-color-line-generic-solid:var(--g-color-private-black-100-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-250);--g-color-sfx-shadow:var(--g-color-private-black-150);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-50);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark{--g-color-private-white-20-solid:#262226;--g-color-private-white-50-solid:#2d282d;--g-color-private-white-70-solid:#312d31;--g-color-private-white-100-solid:#383438;--g-color-private-white-150-solid:#433f43;--g-color-private-white-200-solid:#4e4a4e;--g-color-private-white-250-solid:#595559;--g-color-private-white-300-solid:#646164;--g-color-private-white-350-solid:#6f6c6f;--g-color-private-white-400-solid:#7a777a;--g-color-private-white-450-solid:#858385;--g-color-private-white-500-solid:#908e90;--g-color-private-white-550-solid:#9c999c;--g-color-private-white-600-solid:#a7a5a7;--g-color-private-white-650-solid:#b2b0b2;--g-color-private-white-700-solid:#bdbbbd;--g-color-private-white-750-solid:#c8c6c8;--g-color-private-white-800-solid:#d3d2d3;--g-color-private-white-850-solid:#deddde;--g-color-private-white-900-solid:#e9e8e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#242937;--g-color-private-blue-100-solid:#252f41;--g-color-private-blue-150-solid:#26354b;--g-color-private-blue-200-solid:#284260;--g-color-private-blue-250-solid:#2a4e75;--g-color-private-blue-300-solid:#2c5a8a;--g-color-private-blue-350-solid:#2e669e;--g-color-private-blue-400-solid:#3072b3;--g-color-private-blue-450-solid:#327fc8;--g-color-private-blue-500-solid:#348bdc;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#262c2e;--g-color-private-green-100-solid:#283334;--g-color-private-green-150-solid:#2b3a3a;--g-color-private-green-200-solid:#2f4946;--g-color-private-green-250-solid:#335852;--g-color-private-green-300-solid:#38675f;--g-color-private-green-350-solid:#3c756b;--g-color-private-green-400-solid:#408477;--g-color-private-green-450-solid:#449383;--g-color-private-green-500-solid:#49a18f;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#382d28;--g-color-private-yellow-100-solid:#43352b;--g-color-private-yellow-150-solid:#4e3d2e;--g-color-private-yellow-200-solid:#644d33;--g-color-private-yellow-250-solid:#7a5d39;--g-color-private-yellow-300-solid:#916e3f;--g-color-private-yellow-350-solid:#a77e45;--g-color-private-yellow-400-solid:#bd8e4b;--g-color-private-yellow-450-solid:#d39e50;--g-color-private-yellow-500-solid:#e9ae56;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#332420;--g-color-private-orange-100-solid:#3b281f;--g-color-private-orange-150-solid:#432b1e;--g-color-private-orange-200-solid:#54321b;--g-color-private-orange-250-solid:#643919;--g-color-private-orange-300-solid:#754017;--g-color-private-orange-350-solid:#864715;--g-color-private-orange-400-solid:#964e13;--g-color-private-orange-450-solid:#a75510;--g-color-private-orange-500-solid:#b75c0e;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#361f28;--g-color-private-red-100-solid:#3f202b;--g-color-private-red-150-solid:#49212e;--g-color-private-red-200-solid:#5d2334;--g-color-private-red-250-solid:#70253a;--g-color-private-red-300-solid:#842840;--g-color-private-red-350-solid:#972a45;--g-color-private-red-400-solid:#ab2c4b;--g-color-private-red-450-solid:#be2e51;--g-color-private-red-500-solid:#d23057;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#2d2233;--g-color-private-purple-100-solid:#32253c;--g-color-private-purple-150-solid:#382844;--g-color-private-purple-200-solid:#432d55;--g-color-private-purple-250-solid:#4e3266;--g-color-private-purple-300-solid:#593877;--g-color-private-purple-350-solid:#633d88;--g-color-private-purple-400-solid:#6e4299;--g-color-private-purple-450-solid:#7947aa;--g-color-private-purple-500-solid:#844dbb;--g-color-private-cool-grey-50-solid:#28272e;--g-color-private-cool-grey-100-solid:#2b2c34;--g-color-private-cool-grey-150-solid:#2e313a;--g-color-private-cool-grey-200-solid:#353b47;--g-color-private-cool-grey-250-solid:#3b4553;--g-color-private-cool-grey-300-solid:#414f5f;--g-color-private-cool-grey-350-solid:#47586b;--g-color-private-cool-grey-400-solid:#4d6277;--g-color-private-cool-grey-450-solid:#546c84;--g-color-private-cool-grey-500-solid:#5a7690;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-550-solid);--g-color-text-positive:var(--g-color-private-green-550-solid);--g-color-text-warning:var(--g-color-private-yellow-550-solid);--g-color-text-danger:var(--g-color-private-red-550-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-600-solid);--g-color-text-positive-heavy:var(--g-color-private-green-600-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-text-danger-heavy:var(--g-color-private-red-600-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-650-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-650-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-750-solid);--g-color-text-dark-primary:var(--g-color-private-black-900);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-850);--g-color-text-light-complementary:var(--g-color-private-white-700);--g-color-text-light-secondary:var(--g-color-private-white-500);--g-color-text-light-hint:var(--g-color-private-white-300);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#221d22;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-150);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-300);--g-color-base-generic-accent:var(--g-color-private-white-150);--g-color-base-generic-accent-disabled:var(--g-color-private-white-70);--g-color-base-generic-ultralight:var(--g-color-private-white-20-solid);--g-color-base-simple-hover:var(--g-color-private-white-100);--g-color-base-simple-hover-solid:var(--g-color-private-white-100-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-150);--g-color-base-selection-hover:var(--g-color-private-yellow-200);--g-color-base-info-light:var(--g-color-private-blue-150);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-300);--g-color-base-info-medium-hover:var(--g-color-private-blue-400);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-150);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-300);--g-color-base-positive-medium-hover:var(--g-color-private-green-400);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-150);--g-color-base-warning-light-hover:var(--g-color-private-yellow-200);--g-color-base-warning-medium:var(--g-color-private-yellow-300);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-400);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-150);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-300);--g-color-base-danger-medium-hover:var(--g-color-private-red-400);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-150);--g-color-base-utility-light-hover:var(--g-color-private-purple-250);--g-color-base-utility-medium:var(--g-color-private-purple-300);--g-color-base-utility-medium-hover:var(--g-color-private-purple-400);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-white-100);--g-color-base-neutral-light-hover:var(--g-color-private-white-150);--g-color-base-neutral-medium:var(--g-color-private-white-250);--g-color-base-neutral-medium-hover:var(--g-color-private-white-350);--g-color-base-neutral-heavy:var(--g-color-private-white-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-150);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-300);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-150-solid);--g-color-base-float-medium:var(--g-color-private-white-150-solid);--g-color-base-float-heavy:var(--g-color-private-white-250-solid);--g-color-base-float-accent:var(--g-color-private-white-150-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-200-solid);--g-color-base-float-announcement:var(--g-color-private-white-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-300);--g-color-line-generic-accent:var(--g-color-private-white-150);--g-color-line-generic-accent-hover:var(--g-color-private-white-300);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-450);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-600);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root_theme_light-hc{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#328adb;--g-color-private-blue-650-solid:#2f7cc4;--g-color-private-blue-700-solid:#2b6fae;--g-color-private-blue-750-solid:#286198;--g-color-private-blue-800-solid:#245482;--g-color-private-blue-850-solid:#20476b;--g-color-private-blue-900-solid:#1d3955;--g-color-private-blue-950-solid:#192c3f;--g-color-private-blue-1000-solid:#172533;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#2fa96c;--g-color-private-green-650-solid:#2c9862;--g-color-private-green-700-solid:#288758;--g-color-private-green-750-solid:#25764e;--g-color-private-green-800-solid:#264;--g-color-private-green-850-solid:#1f553a;--g-color-private-green-900-solid:#1c4430;--g-color-private-green-950-solid:#183326;--g-color-private-green-1000-solid:#172a21;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e7ad55;--g-color-private-yellow-650-solid:#d09b4d;--g-color-private-yellow-700-solid:#b88a46;--g-color-private-yellow-750-solid:#a0793e;--g-color-private-yellow-800-solid:#896837;--g-color-private-yellow-850-solid:#715630;--g-color-private-yellow-900-solid:#594528;--g-color-private-yellow-950-solid:#413421;--g-color-private-yellow-1000-solid:#362b1d;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e76d02;--g-color-private-orange-650-solid:#d06304;--g-color-private-orange-700-solid:#b85805;--g-color-private-orange-750-solid:#a04e07;--g-color-private-orange-800-solid:#894409;--g-color-private-orange-850-solid:#713a0b;--g-color-private-orange-900-solid:#59300d;--g-color-private-orange-950-solid:#41250e;--g-color-private-orange-1000-solid:#36200f;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e70239;--g-color-private-red-650-solid:#d00334;--g-color-private-red-700-solid:#b80530;--g-color-private-red-750-solid:#a0072c;--g-color-private-red-800-solid:#890928;--g-color-private-red-850-solid:#710a23;--g-color-private-red-900-solid:#590c1f;--g-color-private-red-950-solid:#410e1b;--g-color-private-red-1000-solid:#360e18;--g-color-private-purple-600-solid:#834cb9;--g-color-private-purple-650-solid:#7645a7;--g-color-private-purple-700-solid:#6a3f94;--g-color-private-purple-750-solid:#5d3882;--g-color-private-purple-800-solid:#51326f;--g-color-private-purple-850-solid:#442b5c;--g-color-private-purple-900-solid:#38254a;--g-color-private-purple-950-solid:#2b1e37;--g-color-private-purple-1000-solid:#251b2e;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#62798c;--g-color-private-cool-grey-650-solid:#596d7e;--g-color-private-cool-grey-700-solid:#506271;--g-color-private-cool-grey-750-solid:#475663;--g-color-private-cool-grey-800-solid:#3f4b56;--g-color-private-cool-grey-850-solid:#363f48;--g-color-private-cool-grey-900-solid:#2d343b;--g-color-private-cool-grey-950-solid:#24282d;--g-color-private-cool-grey-1000-solid:#1f2226;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-900-solid);--g-color-text-positive-heavy:var(--g-color-private-green-900-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-900-solid);--g-color-text-danger-heavy:var(--g-color-private-red-900-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-900-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-900-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-900-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-700-solid);--g-color-text-link-hover:var(--g-color-private-orange-700-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-850-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-850);--g-color-text-dark-secondary:var(--g-color-private-black-700);--g-color-text-dark-hint:var(--g-color-private-black-500);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-150);--g-color-base-generic-hover:var(--g-color-private-black-300);--g-color-base-generic-medium:var(--g-color-private-black-250);--g-color-base-generic-medium-hover:var(--g-color-private-black-350);--g-color-base-generic-accent:var(--g-color-private-black-250);--g-color-base-generic-accent-disabled:var(--g-color-private-black-150);--g-color-base-generic-ultralight:var(--g-color-private-black-50-solid);--g-color-base-simple-hover:var(--g-color-private-black-150);--g-color-base-simple-hover-solid:var(--g-color-private-black-150-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-300);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-350);--g-color-base-info-medium:var(--g-color-private-blue-400);--g-color-base-info-medium-hover:var(--g-color-private-blue-500);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-350);--g-color-base-positive-medium:var(--g-color-private-green-400);--g-color-base-positive-medium-hover:var(--g-color-private-green-500);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-800-solid);--g-color-base-warning-light:var(--g-color-private-yellow-300);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-350);--g-color-base-danger-medium:var(--g-color-private-red-400);--g-color-base-danger-medium-hover:var(--g-color-private-red-500);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-800-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-350);--g-color-base-utility-medium:var(--g-color-private-purple-400);--g-color-base-utility-medium-hover:var(--g-color-private-purple-500);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-800-solid);--g-color-base-neutral-light:var(--g-color-private-black-150);--g-color-base-neutral-light-hover:var(--g-color-private-black-250);--g-color-base-neutral-medium:var(--g-color-private-black-300);--g-color-base-neutral-medium-hover:var(--g-color-private-black-400);--g-color-base-neutral-heavy:var(--g-color-private-black-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-350);--g-color-base-misc-medium:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-500);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-800-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-300);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-150-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-200);--g-color-line-generic-hover:var(--g-color-private-black-400);--g-color-line-generic-active:var(--g-color-private-black-700);--g-color-line-generic-accent:var(--g-color-private-black-300);--g-color-line-generic-accent-hover:var(--g-color-private-black-700);--g-color-line-generic-solid:var(--g-color-private-black-200-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-450);--g-color-sfx-shadow:var(--g-color-private-black-300);--g-color-sfx-shadow-heavy:var(--g-color-private-black-600);--g-color-sfx-shadow-light:var(--g-color-private-black-100);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark-hc{--g-color-private-white-50-solid:#1e1d1e;--g-color-private-white-70-solid:#232223;--g-color-private-white-100-solid:#2a292a;--g-color-private-white-150-solid:#363536;--g-color-private-white-200-solid:#414141;--g-color-private-white-250-solid:#4d4d4d;--g-color-private-white-300-solid:#595859;--g-color-private-white-350-solid:#656465;--g-color-private-white-400-solid:#717071;--g-color-private-white-450-solid:#7d7c7d;--g-color-private-white-500-solid:#888;--g-color-private-white-550-solid:#949494;--g-color-private-white-600-solid:#a0a0a0;--g-color-private-white-650-solid:#acacac;--g-color-private-white-700-solid:#b8b8b8;--g-color-private-white-750-solid:#c4c3c4;--g-color-private-white-800-solid:#d0cfd0;--g-color-private-white-850-solid:#d0cfd0;--g-color-private-white-900-solid:#e7e7e7;--g-color-private-white-950-solid:#f3f3f3;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#161e28;--g-color-private-blue-100-solid:#172533;--g-color-private-blue-150-solid:#192c3f;--g-color-private-blue-200-solid:#1d3955;--g-color-private-blue-250-solid:#20476b;--g-color-private-blue-300-solid:#245482;--g-color-private-blue-350-solid:#286198;--g-color-private-blue-400-solid:#2b6fae;--g-color-private-blue-450-solid:#2f7cc4;--g-color-private-blue-500-solid:#328adb;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#182120;--g-color-private-green-100-solid:#1b2927;--g-color-private-green-150-solid:#1e312d;--g-color-private-green-200-solid:#24413b;--g-color-private-green-250-solid:#2a5149;--g-color-private-green-300-solid:#306157;--g-color-private-green-350-solid:#357064;--g-color-private-green-400-solid:#3b8072;--g-color-private-green-450-solid:#419080;--g-color-private-green-500-solid:#47a08d;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#2a2219;--g-color-private-yellow-100-solid:#362b1d;--g-color-private-yellow-150-solid:#413421;--g-color-private-yellow-200-solid:#594528;--g-color-private-yellow-250-solid:#715630;--g-color-private-yellow-300-solid:#896837;--g-color-private-yellow-350-solid:#a0793e;--g-color-private-yellow-400-solid:#b88a46;--g-color-private-yellow-450-solid:#d09b4d;--g-color-private-yellow-500-solid:#e7ad55;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#241911;--g-color-private-orange-100-solid:#2d1d11;--g-color-private-orange-150-solid:#362111;--g-color-private-orange-200-solid:#492a10;--g-color-private-orange-250-solid:#5b3210;--g-color-private-orange-300-solid:#6d3a0f;--g-color-private-orange-350-solid:#7f420e;--g-color-private-orange-400-solid:#914a0e;--g-color-private-orange-450-solid:#a4530d;--g-color-private-orange-500-solid:#b65b0d;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#27141a;--g-color-private-red-100-solid:#32161d;--g-color-private-red-150-solid:#3c1821;--g-color-private-red-200-solid:#511b29;--g-color-private-red-250-solid:#661e30;--g-color-private-red-300-solid:#7c2238;--g-color-private-red-350-solid:#91253f;--g-color-private-red-400-solid:#a62847;--g-color-private-red-450-solid:#bb2b4e;--g-color-private-red-500-solid:#d02f56;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#1f1825;--g-color-private-purple-100-solid:#251b2e;--g-color-private-purple-150-solid:#2b1e37;--g-color-private-purple-200-solid:#38254a;--g-color-private-purple-250-solid:#442b5c;--g-color-private-purple-300-solid:#51326f;--g-color-private-purple-350-solid:#5d3882;--g-color-private-purple-400-solid:#6a3f94;--g-color-private-purple-450-solid:#7645a7;--g-color-private-purple-500-solid:#834cb9;--g-color-private-cool-grey-50-solid:#1a1c20;--g-color-private-cool-grey-100-solid:#1e2227;--g-color-private-cool-grey-150-solid:#22272e;--g-color-private-cool-grey-200-solid:#29323b;--g-color-private-cool-grey-250-solid:#313d49;--g-color-private-cool-grey-300-solid:#394957;--g-color-private-cool-grey-350-solid:#415465;--g-color-private-cool-grey-400-solid:#495f73;--g-color-private-cool-grey-450-solid:#506a80;--g-color-private-cool-grey-500-solid:#58758e;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-650-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-850-solid);--g-color-text-positive-heavy:var(--g-color-private-green-850-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-850-solid);--g-color-text-danger-heavy:var(--g-color-private-red-850-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-850-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-850-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-650-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-800);--g-color-text-dark-secondary:var(--g-color-private-black-600);--g-color-text-dark-hint:var(--g-color-private-black-400);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-800);--g-color-text-light-secondary:var(--g-color-private-white-600);--g-color-text-light-hint:var(--g-color-private-white-400);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#121112;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-250);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-400);--g-color-base-generic-accent:var(--g-color-private-white-200);--g-color-base-generic-accent-disabled:var(--g-color-private-white-150);--g-color-base-generic-ultralight:var(--g-color-private-white-50);--g-color-base-simple-hover:var(--g-color-private-white-250);--g-color-base-simple-hover-solid:var(--g-color-private-white-250-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-700-solid);--g-color-base-selection:var(--g-color-private-yellow-250);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-400);--g-color-base-info-medium:var(--g-color-private-blue-450);--g-color-base-info-medium-hover:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-400);--g-color-base-positive-medium:var(--g-color-private-green-450);--g-color-base-positive-medium-hover:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-850-solid);--g-color-base-warning-light:var(--g-color-private-yellow-250);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-450);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-700-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-850-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-400);--g-color-base-danger-medium:var(--g-color-private-red-450);--g-color-base-danger-medium-hover:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-850-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-400);--g-color-base-utility-medium:var(--g-color-private-purple-450);--g-color-base-utility-medium-hover:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-850-solid);--g-color-base-neutral-light:var(--g-color-private-white-200);--g-color-base-neutral-light-hover:var(--g-color-private-white-350);--g-color-base-neutral-medium:var(--g-color-private-white-400);--g-color-base-neutral-medium-hover:var(--g-color-private-white-550);--g-color-base-neutral-heavy:var(--g-color-private-white-650);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-750);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium:var(--g-color-private-cool-grey-450);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-850-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-200-solid);--g-color-base-float-medium:var(--g-color-private-white-200-solid);--g-color-base-float-heavy:var(--g-color-private-white-300-solid);--g-color-base-float-accent:var(--g-color-private-white-300-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-400-solid);--g-color-base-float-announcement:var(--g-color-private-white-200-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-600);--g-color-line-generic-accent:var(--g-color-private-white-350);--g-color-line-generic-accent-hover:var(--g-color-private-white-800);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-550-solid);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-550-solid);--g-color-line-positive:var(--g-color-private-green-550-solid);--g-color-line-warning:var(--g-color-private-yellow-550-solid);--g-color-line-danger:var(--g-color-private-red-550-solid);--g-color-line-utility:var(--g-color-private-purple-550-solid);--g-color-line-misc:var(--g-color-private-cool-grey-550-solid);--g-color-sfx-veil:var(--g-color-private-black-700);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-400);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar){scrollbar-color:var(--g-color-scroll-handle) var(--g-color-scroll-track);scrollbar-width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar{background:var(--g-color-scroll-track);height:var(--g-scrollbar-width);width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-track,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-track{background:var(--g-color-scroll-track)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-corner,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-corner{background:var(--g-color-scroll-corner)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb{background:var(--g-color-scroll-handle)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb:hover,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb:hover{background:var(--g-color-scroll-handle-hover)}@keyframes g-loading-animation{0%{background-position:-12px 0}to{background-position:0 0}}:root:has(body.g-root_theme_light),:root:has(body.g-root_theme_light-hc){color-scheme:light}:root:has(body.g-root_theme_dark),:root:has(body.g-root_theme_dark-hc){color-scheme:dark}@media(prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.unipika{--color-unipika-default:#a9a9a9;--color-unipika-string:#594c4c;--color-unipika-key:#d36b6b;--color-unipika-null:#594c4c;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#ffeff3;--color-unipika-binary-back:#fcf8e3;--color-unipika-binary-after:#888;--color-unipika-uuid:#c63;--color-unipika-tag-url:#04b;--color-unipika-tag-url-hover:#c00;color:var(--color-unipika-default);overflow-wrap:break-word;white-space:pre-wrap;word-break:normal}.unipika .pg_category_e,.unipika .pg_category_i,.unipika .pg_category_s,.unipika .string,.unipika .yql_string,.unipika .yql_utf8{color:var(--color-unipika-string)}.unipika .key,.unipika .special-key{color:var(--color-unipika-key)}.unipika .special-key{font-style:italic}.unipika .null,.unipika .yql_null{color:var(--color-unipika-null)}.unipika .null{font-style:italic}.unipika .yql_null{text-transform:uppercase}.unipika .int64,.unipika .number,.unipika .pg_category_n,.unipika .yql_int16,.unipika .yql_int32,.unipika .yql_int64,.unipika .yql_int8{color:var(--color-unipika-int)}.unipika .pg_category_a,.unipika .uint64,.unipika .yql_uint16,.unipika .yql_uint32,.unipika .yql_uint64,.unipika .yql_uint8{color:var(--color-unipika-uint)}.unipika .double,.unipika .pg_category_c,.unipika .yql_decimal,.unipika .yql_double,.unipika .yql_float{color:var(--color-unipika-float)}.unipika .boolean,.unipika .pg_category_b,.unipika .yql_bool,.unipika .yql_enum{color:var(--color-unipika-bool)}.unipika .pg_category_d,.unipika .yql_date,.unipika .yql_date32,.unipika .yql_datetime,.unipika .yql_datetime64,.unipika .yql_timestamp,.unipika .yql_timestamp64,.unipika .yql_tzdate,.unipika .yql_tzdate32,.unipika .yql_tzdatetime,.unipika .yql_tzdatetime64,.unipika .yql_tztimestamp,.unipika .yql_tztimestamp64{color:var(--color-unipika-date)}.unipika .pg_category_t,.unipika .yql_interval,.unipika .yql_interval64{color:var(--color-unipika-interval)}.unipika .yql_tagged.tag_image{vertical-align:top}.unipika .escape{background-color:var(--color-unipika-escape-back);color:var(--color-unipika-escape-text)}.unipika .quote{color:var(--color-unipika-default)}.unipika .binary,.unipika .incomplete,.unipika .pg_category_v{background-color:var(--color-unipika-binary-back)}.unipika .binary:after,.unipika .incomplete:after{color:var(--color-unipika-binary-after);padding-inline-start:.8em}.unipika .incomplete:after{content:"[truncated]";white-space:nowrap}.unipika .binary:after{content:"[binary]";white-space:nowrap}.unipika .incomplete.binary:after{content:"[truncated][binary]";white-space:nowrap}.unipika .pg_category_g,.unipika .yql_uuid{color:var(--color-unipika-uuid)}.unipika .pg_category_g.binary,.unipika .pg_category_g.incomplete,.unipika .yql_uuid.binary,.unipika .yql_uuid.incomplete{background:none}.unipika .pg_category_g.binary:after,.unipika .pg_category_g.incomplete:after,.unipika .yql_uuid.binary:after,.unipika .yql_uuid.incomplete:after{content:"";display:none}.unipika .tag_url{color:var(--color-unipika-tag-url);text-decoration:none}.unipika .tag_url:hover{color:var(--color-unipika-tag-url-hover)}.unipika-wrapper_inline_yes .unipika{display:inline-block}.g-root .unipika{font-family:var(--g-font-family-monospace)}.g-root .unipika-wrapper .g-root .unipika{border:0;margin:0;padding:0}.g-root_theme_dark .unipika,.g-root_theme_dark-hc .unipika{--color-unipika-default:#707070;--color-unipika-string:#9a8e8e;--color-unipika-key:#d36b6b;--color-unipika-null:#9a8e8e;--color-unipika-int:#0095ff;--color-unipika-uint:#c200ff;--color-unipika-float:#ff00b9;--color-unipika-bool:#00ba0a;--color-unipika-date:#693;--color-unipika-interval:#399;--color-unipika-escape-text:#c7254e;--color-unipika-escape-back:#292e1f;--color-unipika-binary-back:#292e1f;--color-unipika-binary-after:#666;--color-unipika-uuid:#c63;--color-unipika-tag-url:#47b;--color-unipika-tag-url-hover:#6af}.g-root_theme_light,.g-root_theme_light-hc{--gil-color-object-base:var(--g-color-private-yellow-550-solid);--gil-color-object-accent-heavy:var(--g-color-private-orange-650-solid);--gil-color-object-hightlight:var(--g-color-private-yellow-350-solid);--gil-color-shadow-over-object:var(--g-color-private-yellow-650-solid);--gil-color-background-lines:var(--g-color-private-black-450-solid);--gil-color-background-shapes:var(--g-color-private-black-50-solid);--gil-color-object-accent-light:var(--g-color-private-white-1000-solid);--gil-color-object-danger:var(--g-color-private-red-550-solid)}.g-root_theme_dark,.g-root_theme_dark-hc{--gil-color-object-base:var(--g-color-private-yellow-550-solid);--gil-color-object-accent-heavy:var(--g-color-private-orange-650-solid);--gil-color-object-hightlight:var(--g-color-private-yellow-700-solid);--gil-color-shadow-over-object:var(--g-color-private-yellow-500-solid);--gil-color-background-lines:var(--g-color-private-white-550-solid);--gil-color-background-shapes:var(--g-color-private-white-200-solid);--gil-color-object-accent-light:var(--g-color-private-white-1000-solid);--gil-color-object-danger:var(--g-color-private-red-550-solid)}.g-root_theme_dark,.g-root_theme_dark-hc,.g-root_theme_light,.g-root_theme_light-hc{--gil-color-object-base:var(--g-color-private-blue-450-solid);--gil-color-object-accent-heavy:var(--g-color-private-blue-850-solid);--gil-color-object-hightlight:var(--g-color-private-blue-350-solid);--gil-color-shadow-over-object:var(--g-color-private-blue-650-solid)}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10064.5442bcf6.chunk.js b/ydb/core/viewer/monitoring/static/js/10064.5442bcf6.chunk.js new file mode 100644 index 0000000000..6534bd636f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10064.5442bcf6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10064],{10064:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(70191);const s=n.n(a)()},70191:e=>{function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function g(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return a})).replace(/<SPREAD>/g,(function(){return s})),RegExp(e,t)}s=g(s).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=g(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:g(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:g(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(o).join(""):""},c=function(t){for(var n=[],a=0;a<t.length;a++){var s=t[a],g=!1;if("string"!==typeof s&&("tag"===s.type&&s.content[0]&&"tag"===s.content[0].type?"</"===s.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===o(s.content[0].content[1])&&n.pop():"/>"===s.content[s.content.length-1].content||n.push({tagName:o(s.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===s.type&&"{"===s.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===s.type&&"}"===s.content?n[n.length-1].openedBraces--:g=!0),(g||"string"===typeof s)&&n.length>0&&0===n[n.length-1].openedBraces){var i=o(s);a<t.length-1&&("string"===typeof t[a+1]||"plain-text"===t[a+1].type)&&(i+=o(t[a+1]),t.splice(a+1,1)),a>0&&("string"===typeof t[a-1]||"plain-text"===t[a-1].type)&&(i=o(t[a-1])+i,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",i,null,i)}s.content&&"string"!==typeof s.content&&c(s.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||c(e.tokens)}))}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10132.c1a19fa8.chunk.js b/ydb/core/viewer/monitoring/static/js/10132.c1a19fa8.chunk.js new file mode 100644 index 0000000000..6e1192daad --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10132.c1a19fa8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10132],{10132:(u,e,a)=>{a.d(e,{default:()=>t});var i=a(63581);const t=a.n(i)()},63581:(u,e,a)=>{var i=a(68266);function t(u){u.register(i),u.languages.purescript=u.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|\u2200/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[u.languages.haskell.operator[0],u.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),u.languages.purs=u.languages.purescript}u.exports=t,t.displayName="purescript",t.aliases=["purs"]},68266:u=>{function e(u){u.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},u.languages.hs=u.languages.haskell}u.exports=e,e.displayName="haskell",e.aliases=["hs"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10242.86faa17f.chunk.js b/ydb/core/viewer/monitoring/static/js/10242.86faa17f.chunk.js new file mode 100644 index 0000000000..03b571af72 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10242.86faa17f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10242],{3899:e=>{function a(e){!function(e){var a=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(a,"addSupport",{value:function(a,n){"string"===typeof a&&(a=[a]),a.forEach((function(a){!function(a,n){var s="doc-comment",t=e.languages[a];if(t){var i=t[s];if(!i){var r={};r[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(t=e.languages.insertBefore(a,"comment",r))[s]}if(i instanceof RegExp&&(i=t[s]={pattern:i}),Array.isArray(i))for(var o=0,p=i.length;o<p;o++)i[o]instanceof RegExp&&(i[o]={pattern:i[o]}),n(i[o]);else n(i)}}(a,(function(e){e.inside||(e.inside={}),e.inside.rest=n}))}))}}),a.addSupport(["java","javascript","php"],a)}(e)}e.exports=a,a.displayName="javadoclike",a.aliases=[]},10242:(e,a,n)=>{n.d(a,{default:()=>t});var s=n(81329);const t=n.n(s)()},16099:e=>{function a(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var a=e.languages.extend("typescript",{});delete a["class-name"],e.languages.typescript["class-name"].inside=a,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),e.languages.ts=e.languages.typescript}(e)}e.exports=a,a.displayName="typescript",a.aliases=["ts"]},81329:(e,a,n)=>{var s=n(3899),t=n(16099);function i(e){e.register(s),e.register(t),function(e){var a=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(e)}e.exports=i,i.displayName="jsdoc",i.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10246.ee23b775.chunk.js b/ydb/core/viewer/monitoring/static/js/10246.ee23b775.chunk.js new file mode 100644 index 0000000000..6bb3e7de46 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10246.ee23b775.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 10246.ee23b775.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10246],{10246:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:"keyword.flow",next:"@specialFunc"},"@mainFunctions":"keyword","@builtinFunctions":"variable","@default":"operator.scss"}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,"metatag"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,"operator"],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/\.(?!\d|\.)[\w\-]*/,"operator.sql"],[/\d+(\.\d+)?/,"number"],[/\d+/,"number"],[/;/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@dstring"}],[/'/,{token:"string.quote",bracket:"@open",next:"@sstring"}]],dstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],sstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]']+/,"string"],[/@escapes/,"string.escape"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/#.*\\$/,{token:"comment",next:"@newlineComment"}],[/#.*(?!\\)$/,"comment"]],newlineComment:[[/.*\\$/,"comment"],[/.*(?!\\)$/,{token:"comment",next:"@pop"}]],nestedVariable:[[/[^\{\}\$]+/,"type.identifier"],[/\}/,{token:"identifier",next:"@pop"}]],nestedCall:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\]/,{token:"@brackets",next:"@pop"}],{include:"root"}],specialFunc:[[/"/,{token:"string",next:"@dstring"}],[/'/,{token:"string",next:"@sstring"}],[/\S+/,{token:"type",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/10246.ee23b775.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/10246.ee23b775.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/10310.a0a2e8d7.chunk.js b/ydb/core/viewer/monitoring/static/js/10310.a0a2e8d7.chunk.js new file mode 100644 index 0000000000..27741a08d5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10310.a0a2e8d7.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10310],{10310:function(e,i,_){e.exports=function(e){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=i(e),u={name:"ro",weekdays:"Duminic\u0103_Luni_Mar\u021bi_Miercuri_Joi_Vineri_S\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"peste %s",past:"acum %s",s:"c\xe2teva secunde",m:"un minut",mm:"%d minute",h:"o or\u0103",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lun\u0103",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(e){return e}};return _.default.locale(u,null,!0),u}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10525.b02faf58.chunk.js b/ydb/core/viewer/monitoring/static/js/10525.b02faf58.chunk.js new file mode 100644 index 0000000000..abd0557efc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10525.b02faf58.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10525],{10525:(t,e,n)=>{n.d(e,{default:()=>r});var a=n(64916);const r=n.n(a)()},64916:t=>{function e(t){!function(t){var e={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(t,a){var r={"section-header":{pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"}};for(var o in a)r[o]=a[o];return r.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},r.variable=n,r.comment=e,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,(function(){return t})),"im"),alias:"section",inside:r}}var r={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},i={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};t.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":o,documentation:r,property:i}),keywords:a("Keywords",{"keyword-name":o,documentation:r,property:i}),tasks:a("Tasks",{"task-name":o,documentation:r,property:i}),comment:e},t.languages.robot=t.languages.robotframework}(t)}t.exports=e,e.displayName="robotframework",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1053.f976b474.chunk.js b/ydb/core/viewer/monitoring/static/js/1053.f976b474.chunk.js deleted file mode 100644 index bca86921c9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1053.f976b474.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1053],{21053:function(a,n,t){a.exports=function(a){"use strict";function n(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=n(a),u={name:"se",weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),weekStart:1,weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"}};return t.default.locale(u,null,!0),u}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1073.da2a8c8a.chunk.js b/ydb/core/viewer/monitoring/static/js/1073.da2a8c8a.chunk.js new file mode 100644 index 0000000000..5d04cdb6ae --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1073.da2a8c8a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1073],{1073:(a,e,t)=>{t.d(e,{default:()=>b});var s=t(39750);const b=t.n(s)()},39750:a=>{function e(a){a.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}a.exports=e,e.displayName="asm6502",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/108.d2d9c180.chunk.js b/ydb/core/viewer/monitoring/static/js/108.d2d9c180.chunk.js deleted file mode 100644 index 4d473ba68a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/108.d2d9c180.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[108],{80108:function(a,s,n){a.exports=function(a){"use strict";function s(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var n=s(a),_={name:"tzm-latn",weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekStart:6,weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"}};return n.default.locale(_,null,!0),_}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10815.03541c68.chunk.js b/ydb/core/viewer/monitoring/static/js/10815.03541c68.chunk.js new file mode 100644 index 0000000000..d53276679d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10815.03541c68.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10815],{10815:(e,a,r)=>{r.d(a,{default:()=>t});var n=r(89080);const t=r.n(n)()},89080:e=>{function a(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}e.exports=a,a.displayName="r",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1088.40c16ea2.chunk.js b/ydb/core/viewer/monitoring/static/js/1088.40c16ea2.chunk.js deleted file mode 100644 index 04c46aac52..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1088.40c16ea2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1088],{61088:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),n={name:"bi",weekdays:"Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade".split("_"),months:"Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba".split("_"),weekStart:1,weekdaysShort:"San_Man_Tus_Wen_Tos_Frae_Sar".split("_"),monthsShort:"Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"San_Ma_Tu_We_To_Fr_Sar".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"lo %s",past:"%s bifo",s:"sam seken",m:"wan minit",mm:"%d minit",h:"wan haoa",hh:"%d haoa",d:"wan dei",dd:"%d dei",M:"wan manis",MM:"%d manis",y:"wan yia",yy:"%d yia"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/10902.cd23357e.chunk.js b/ydb/core/viewer/monitoring/static/js/10902.cd23357e.chunk.js new file mode 100644 index 0000000000..c31d63834a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/10902.cd23357e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 10902.cd23357e.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[10902],{10902:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:".,=}])>' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},o={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["syntax","import","weak","public","package","option","repeated","oneof","map","reserved","to","max","enum","message","service","rpc","stream","returns","package","optional","true","false"],builtinTypes:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],operators:["=","+","-"],namedLiterals:["true","false"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:"@whitespace"},[/syntax/,"keyword"],[/=/,"operators"],[/;/,"delimiter"],[/(")(proto3)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto3"}]],[/(")(proto2)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto2"}]],[/.*?/,{token:"",switchTo:"@topLevel.proto2"}]],topLevel:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/[;.]/,"delimiter"],[/@fullIdentifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},service:{token:"keyword",next:"@serviceDecl.$S2"},extend:{cases:{"$S2==proto2":{token:"keyword",next:"@extendDecl.$S2"}}},"@keywords":"keyword","@default":"identifier"}}]],enumDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@enumBody.$S2"}]],enumBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/@identifier/,"identifier"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],messageDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}]],messageBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],["(map)(s*)(<)",["keyword","white",{token:"@brackets",bracket:"@open",next:"@map.$S2"}]],[/@identifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},oneof:{token:"keyword",next:"@oneofDecl.$S2"},extensions:{cases:{"$S2==proto2":{token:"keyword",next:"@reserved.$S2"}}},reserved:{token:"keyword",next:"@reserved.$S2"},"(?:repeated|optional)":{token:"keyword",next:"@field.$S2"},required:{cases:{"$S2==proto2":{token:"keyword",next:"@field.$S2"}}},"$S2==proto3":{token:"@rematch",next:"@field.$S2"}}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],extendDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@extendBody.$S2"}]],extendBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(?:repeated|optional|required)/,"keyword","@field.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],options:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/\]/,{token:"@brackets",bracket:"@close",next:"@pop"}]],option:[{include:"@whitespace"},[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator","@pop"]],oneofDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@oneofBody.$S2"}]],oneofBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(@identifier)(\s*)(=)/,["identifier","white","delimiter"]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],reserved:[{include:"@whitespace"},[/,/,"delimiter"],[/;/,"delimiter","@pop"],{include:"@constant"},[/to\b|max\b/,"keyword"]],map:[{include:"@whitespace"},[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/,/,"delimiter"],[/>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/10902.cd23357e.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/10902.cd23357e.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js b/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js deleted file mode 100644 index 17d61db7de..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 1094.b5bb2475.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1094],{51094:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>a,language:()=>c});var o=e=>`\\b${e}\\b`,i=e=>`(?!${e})`,r=o("[_a-zA-Z][_a-zA-Z0-9]*"),s=o("[_a-zA-Z-0-9]+"),a={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},c={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],namedLiterals:["true","false","null","unknown","never"],escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${i('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:"[ \\t\\r\\n]"},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${i('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:r,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${r}`,action:{token:"tag"}},{regex:`#${s}`,action:{token:"directive"}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js b/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js deleted file mode 100644 index 932267b328..0000000000 --- a/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 110.2c798565.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[110],{60110:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/11192.56c4d6e0.chunk.js b/ydb/core/viewer/monitoring/static/js/11192.56c4d6e0.chunk.js new file mode 100644 index 0000000000..1332e3f751 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/11192.56c4d6e0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[11192],{11192:(e,a,r)=>{r.d(a,{default:()=>t});var b=r(52669);const t=r.n(b)()},52669:e=>{function a(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}e.exports=a,a.displayName="warpscript",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/11278.aab5c12c.chunk.js b/ydb/core/viewer/monitoring/static/js/11278.aab5c12c.chunk.js new file mode 100644 index 0000000000..ba4b946ea7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/11278.aab5c12c.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 11278.aab5c12c.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[11278],{11278:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/11278.aab5c12c.chunk.js.LICENSE.txt index e369b6e579..e369b6e579 100644 --- a/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/11278.aab5c12c.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/11338.6bb2b16a.chunk.js b/ydb/core/viewer/monitoring/static/js/11338.6bb2b16a.chunk.js new file mode 100644 index 0000000000..c0120e8475 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/11338.6bb2b16a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[11338],{11338:(e,n,a)=>{a.d(n,{default:()=>s});var t=a(74293);const s=a.n(t)()},74293:(e,n,a)=>{var t=a(89343);function s(e){e.register(t),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}e.exports=s,s.displayName="bison",s.aliases=[]},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1146.65a37bc6.chunk.js b/ydb/core/viewer/monitoring/static/js/1146.65a37bc6.chunk.js new file mode 100644 index 0000000000..073cfff1a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1146.65a37bc6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1146],{1146:(t,e,a)=>{a.d(e,{default:()=>i});var n=a(8799);const i=a.n(n)()},8799:t=>{function e(t){!function(t){var e=["on","ignoring","group_right","group_left","by","without"],a=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(e,["offset"]);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+e.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}(t)}t.exports=e,e.displayName="promql",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js b/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js deleted file mode 100644 index 8eb8364bc6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 118.112f7e2f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[118],{90118:(e,t,n)=>{n.r(t),n.d(t,{TagAngleInterpolationBracket:()=>B,TagAngleInterpolationDollar:()=>D,TagAutoInterpolationBracket:()=>w,TagAutoInterpolationDollar:()=>v,TagBracketInterpolationBracket:()=>C,TagBracketInterpolationDollar:()=>E});var o,i,_=n(80781),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))u.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=a(t,i))||o.enumerable});return e},c={};d(c,o=_,"default"),i&&d(i,o,"default");var l=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],k=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],p={close:">",id:"angle",open:"<"},g={close:"\\]",id:"bracket",open:"\\["},A={close:"[>\\]]",id:"auto",open:"[<\\[]"},m={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},b={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function f(e){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${e.open}--`,`--${e.close}`]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${e.open}#(?:${k.join("|")})([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),end:new RegExp(`${e.open}/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),afterText:new RegExp(`^${e.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${e.close}$`),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function F(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${k.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function x(e,t){const n=`_${e.id}_${t.id}`,o=e=>e.replace(/__id__/g,n),i=e=>{const t=e.source.replace(/__id__/g,n);return new RegExp(t,e.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(e.open),[o("close__id__")]:new RegExp(e.close),[o("iOpen1__id__")]:new RegExp(t.open1),[o("iOpen2__id__")]:new RegExp(t.open2),[o("iClose__id__")]:new RegExp(t.close),[o("startTag__id__")]:i(/(@open__id__)(#)/),[o("endTag__id__")]:i(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:i(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:i(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:i(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\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-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[i(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{..."bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},..."bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{..."bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[i(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[i(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function $(e){const t=x(p,e),n=x(g,e),o=x(A,e);return{...t,...n,...o,unicode:!0,includeLF:!1,start:`default_auto_${e.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...t.tokenizer,...n.tokenizer,...o.tokenizer}}}var D={conf:f(p),language:x(p,m)},E={conf:f(g),language:x(g,m)},B={conf:f(p),language:x(p,b)},C={conf:f(g),language:x(g,b)},v={conf:F(),language:$(m)},w={conf:F(),language:$(b)}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/12776.d400f028.chunk.js b/ydb/core/viewer/monitoring/static/js/12776.d400f028.chunk.js new file mode 100644 index 0000000000..fd937d9bc3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/12776.d400f028.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[12776],{12776:function(e,u,a){e.exports=function(e){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e),_={name:"tet",weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),weekStart:1,weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"}};return a.default.locale(_,null,!0),_}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js b/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js deleted file mode 100644 index 23a5ca1b50..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 1278.d5c24e15.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1278],{11278:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1299.aaedb42e.chunk.js b/ydb/core/viewer/monitoring/static/js/1299.aaedb42e.chunk.js deleted file mode 100644 index f29e8dcb20..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1299.aaedb42e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1299],{81299:(e,l,c)=>{c.r(l),c.d(l,{ReactComponent:()=>m,default:()=>n});var t,a=c(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var c=arguments[l];for(var t in c)({}).hasOwnProperty.call(c,t)&&(e[t]=c[t])}return e},h.apply(null,arguments)}function v({title:e,titleId:l,...c},v){return a.createElement("svg",h({width:349,height:356,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:v,"aria-labelledby":l},c),e?a.createElement("title",{id:l},e):null,t||(t=a.createElement("g",{opacity:.8},a.createElement("path",{d:"M275.008 84.928c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#fff",fillOpacity:.07}),a.createElement("path",{d:"M279.207 266.428l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5v-167.4c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"}),a.createElement("path",{d:"M191.308 139.226l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"}),a.createElement("path",{d:"M203.408 195.526l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.707 103.727c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.499c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.707 247.329h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"}),a.createElement("path",{d:"M340.507 205.528s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"}),a.createElement("path",{d:"M337.607 283.43l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"}),a.createElement("path",{d:"M313.007 236.029c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"}),a.createElement("path",{d:"M308.307 236.028c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"}),a.createElement("path",{d:"M21.708 40.727a2 2 0 1 0-4 0h4zm-4 8.2a2 2 0 0 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm-17.8 4a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.199 259.098a2 2 0 1 0-4 0h4zm-4 6.2a2 2 0 0 0 4 0h-4zm4 13.1a2 2 0 1 0-4 0h4zm-4 6.8a2 2 0 0 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"}),a.createElement("path",{clipRule:"evenodd",d:"M15.207 325.426c7.18 0 13-5.821 13-13 0-7.18-5.82-13-13-13s-13 5.82-13 13c0 7.179 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M28.207 310.426a2 2 0 1 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 0 0 4 0h-4zm-17.1 0a2 2 0 0 0 4 0h-4zm4-12.2a2 2 0 1 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"}))))}const m=a.forwardRef(v),n=c.p+"static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js b/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js deleted file mode 100644 index 6bfb38cde1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 132.cf00f1e7.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[132],{40132:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>r,language:()=>n});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},n={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","strict","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js b/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js deleted file mode 100644 index d56a273ab7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 1321.401aa9b8.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1321],{43702:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends","implements"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1329.d6e31925.chunk.js b/ydb/core/viewer/monitoring/static/js/1329.d6e31925.chunk.js deleted file mode 100644 index 34b09a91ab..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1329.d6e31925.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1329],{17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),s=a(4557),r=a(77506),i=a(16819),o=a(60712);const l=(0,r.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:r,...d}){const[c,u]=(0,i.a)(e),h=(0,n.j)(t,c),b={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:l(null,r),children:(0,o.jsx)(s.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:b,...d})})}},21545:(e,t,a)=>{a.d(t,{X:()=>s});var n=a(78034);const s=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[s,r,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,n.nN)(i),l=Object.keys(r).reduce(((e,t)=>{var a;const n=null===(a=r[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var s;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:r,Generation:i,State:l,Leader:d,FollowerId:c}=a,u=o&&t?null===(s=o.get(Number(t)))||void 0===s?void 0:s.Host:void 0;"Dead"!==l&&e.push({nodeId:t,generation:i,changeTime:r,state:l,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=s,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:l}}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:s}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${s}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),s=a(84476),r=a(84375),i=a(55974),o=a(42829),l=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:b="action",buttonTitle:p,buttonClassName:v,withPopover:g=!1,popoverContent:m,popoverPlacement:x="right",popoverDisabled:y=!0}){const[j,w]=n.useState(!1),[T,f]=n.useState(!1),[N,S]=n.useState(!1),I=()=>(0,l.jsx)(s.$,{onClick:()=>w(!0),view:b,disabled:h,loading:!h&&T,className:v,title:p,children:e});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(i.g,{visible:j,header:d,text:c,withRetry:N,retryButtonText:u,onConfirm:async e=>{f(!0),await t(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===a||void 0===a?void 0:a())}finally{f(!1)}},onConfirmActionError:e=>{S((0,o.D)(e)),f(!1)},onClose:()=>{w(!1)}}),g?(0,l.jsx)(r.A,{content:m,placement:x,disabled:y,children:I()}):I()]})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),s=a(58267),r=a(60712);function i({state:e}){return(0,r.jsx)(n.J,{theme:(0,s._)(e),children:e})}},28539:(e,t,a)=>{a.d(t,{T:()=>n.T});var n=a(53755)},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},52248:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(47334)},55974:(e,t,a)=>{a.d(t,{g:()=>m});var n=a(59284),s=a(18677),r=a(71153),i=a(74321),o=a(2198),l=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),b=(0,u.g4)("ydb-critical-action-dialog",{en:h});var p=a(60712);const v=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?b("no-rights-error"):e.statusText?e.statusText:b("default-error");function m({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:m,onConfirmActionSuccess:x,onConfirmActionError:y}){const[j,w]=n.useState(!1),[T,f]=n.useState(),[N,S]=n.useState(!1),I=async e=>(w(!0),m(e).then((()=>{x(),h()})).catch((e=>{y(e),f(e)})).finally((()=>{w(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:h,onTransitionExited:()=>{f(void 0),S(!1)},children:T?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(0,p.jsx)(o.l.Body,{className:v("body"),children:(0,p.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:v("error-icon"),children:(0,p.jsx)(s.A,{width:"24",height:"22"})}),g(T)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||b("button-retry"):void 0,textButtonCancel:b("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:h})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(0,p.jsxs)(o.l.Body,{className:v("body"),children:[(0,p.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:v("warning-icon"),children:(0,p.jsx)(l.I,{data:r.A,size:24})}),a]}),u?(0,p.jsx)(i.S,{checked:N,onUpdate:S,children:b("checkbox-text")}):null]}),(0,p.jsx)(o.l.Footer,{loading:j,preset:"default",textButtonApply:b("button-confirm"),textButtonCancel:b("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!N},onClickButtonCancel:h,onClickButtonApply:()=>I()})]})})}},80420:(e,t,a)=>{a.d(t,{$:()=>v});var n=a(40336),s=a(63291),r=a(92459),i=a(31684),o=a(12888),l=a(71661),d=a(10508),c=a(25196),u=a(48372);const h=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),b=(0,u.g4)("ydb-tablet-name-wrapper",{en:h});var p=a(60712);function v({tabletId:e,database:t}){const a=(0,o.X)(),u=(0,r.DM)(e,{database:t});return(0,p.jsx)(l.s,{disabled:!a,delayClosing:200,content:(0,p.jsx)(n.u,{responsive:!0,children:(0,p.jsx)(n.u.Item,{name:b("field_links"),children:(0,p.jsx)(c.K,{title:b("context_developer-ui"),url:(0,i._t)(e)})})}),placement:["top","bottom"],behavior:s.m.Immediate,children:(0,p.jsx)(d.c,{name:e.toString(),path:u,hasClipboardButton:!0,showStatus:!1})})}},88616:(e,t,a)=>{a.d(t,{Q:()=>A});var n=a(59284),s=a(76938),r=a(98089),i=a(99991),o=a(67087),l=a(22983),d=a(28539),c=a(10508),u=a(44508),h=a(44294),b=a(17594),p=a(41775),v=a(89073),g=a(80420),m=a(27775),x=a(41826),y=a(21545),j=a(6354),w=a(76086),T=a(12888),f=a(29819),N=a(48372);const S=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.search-placeholder":"Tablet ID","controls.entities-count-label":"Tablets"}'),I=(0,N.g4)("ydb-tablets",{en:S});var C=a(60712);function k(e){const t=e.State===j.r.Stopped,a=(0,T.X)(),[n]=y.X.useKillTabletMutation(),r=e.TabletId;return r?(0,C.jsx)(l.B,{buttonView:"outlined",buttonTitle:I("dialog.kill-header"),dialogHeader:I("dialog.kill-header"),dialogText:I("dialog.kill-text"),onConfirmAction:()=>n({id:r}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:I(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,C.jsx)(i.I,{data:s.A})}):null}function A({database:e,tablets:t,loading:a,error:s}){const[{tabletsSearch:i},l]=(0,o.useQueryParams)({tabletsSearch:o.StringParam}),y=n.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return I("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,C.jsxs)("span",{children:[e.Type," ",t?(0,C.jsx)(r.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return I("Tablet")},render:({row:t})=>t.TabletId?(0,C.jsx)(g.$,{tabletId:t.TabletId,database:e}):w.Pd},{name:"State",get header(){return I("State")},render:({row:e})=>(0,C.jsx)(m.i,{state:e.State})},{name:"NodeId",get header(){return I("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,f.vI)(e.NodeId);return(0,C.jsx)(h.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return I("Node FQDN")},render:({row:e})=>e.fqdn?(0,C.jsx)(c.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,C.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return I("Generation")},align:"right"},{name:"Uptime",get header(){return I("Uptime")},render:({row:e})=>(0,C.jsx)(x.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,C.jsx)(k,{...e})}]}({database:e})),[e]),j=n.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==i&&void 0!==i?i:"")))),[t,i]);return(0,C.jsxs)(v.L,{children:[(0,C.jsxs)(v.L.Controls,{children:[(0,C.jsx)(p.v,{placeholder:I("controls.search-placeholder"),onChange:e=>{l({tabletsSearch:e||void 0},"replaceIn")},value:null!==i&&void 0!==i?i:"",width:238}),(0,C.jsx)(d.T,{label:I("controls.entities-count-label"),loading:a,total:t.length,current:j.length})]}),s?(0,C.jsx)(u.o,{error:s}):null,(0,C.jsx)(v.L.Table,{loading:a,children:(0,C.jsx)(b.l,{columns:y,data:j,settings:w.N3,emptyDataMessage:I("noTabletsData")})})]})}},89954:(e,t,a)=>{a.d(t,{O:()=>I});var n=a(59284),s=a(45720),r=a(16929),i=a(71153),o=a(18677),l=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),b=a(48372);const p=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,b.g4)("ydb-shorty-string",{ru:v,en:p});var m=a(60712);const x=(0,h.cn)("kv-shorty-string");function y({value:e="",limit:t=200,strict:a=!1,displayLength:s=!0,render:r=e=>e,onToggle:i,expandLabel:o=g("default_expand_label"),collapseLabel:l=g("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?l:o)+(s&&!d?g("chars_count",{count:e.length}):""),b=e.length>t+(a?0:h.length),p=d||!b?e:e.slice(0,t-4)+"\xa0...";return(0,m.jsxs)("div",{className:x(),children:[r(p),b?(0,m.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var j=a(41650);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function T(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const f=(0,h.cn)("kv-result-issues"),N=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function I({data:e,hideSeverity:t}){const[a,s]=n.useState(!1),r="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(r)&&r.length>0;return(0,m.jsxs)("div",{className:f(),children:[(0,m.jsxs)("div",{className:f("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var s,r;const i=T(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.severity);a=(0,m.jsxs)(n.Fragment,{children:[t?null:(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(B,{severity:i})," "]}),(0,m.jsx)("span",{className:f("error-message-text"),children:null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.message})]})}return a})(),i&&(0,m.jsx)(l.$,{view:"normal",onClick:()=>s(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,m.jsx)(C,{hideSeverity:t,issues:r})]})}function C({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,m.jsx)("div",{className:N(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,m.jsx)(k,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function k({issue:e,hideSeverity:t,level:a=0}){const[s,r]=n.useState(!0),i=T(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=s?"bottom":"right";return(0,m.jsxs)("div",{className:S({leaf:!c,"has-issues":c}),children:[(0,m.jsxs)("div",{className:S("line"),children:[c&&(0,m.jsx)(l.$,{view:"flat-secondary",onClick:()=>r(!s),className:S("arrow-toggle"),children:(0,m.jsx)(d.I,{direction:u,size:16})}),t?null:(0,m.jsx)(B,{severity:i}),(0,m.jsx)(A,{issue:e}),e.issue_code?(0,m.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),c&&s&&(0,m.jsx)("div",{className:S("issues"),children:(0,m.jsx)(_,{issues:o,level:a+1,expanded:s})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,j.kf)(t.row))return"";const{row:a,column:n}=t;return(0,j.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,s=()=>(0,m.jsxs)("span",{className:S("message"),children:[a&&(0,m.jsx)("span",{className:S("place-text"),title:"Position",children:a}),(0,m.jsx)("div",{className:S("message-text"),children:(0,m.jsx)(y,{value:e.message,expandLabel:"Show full message"})})]}),{row:r,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,j.kf)(r)&&n))return s();return(0,m.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:r,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:s()})}function _(e){const{issues:t,level:a,expanded:n}=e;return(0,m.jsx)("div",{className:S("list"),children:t.map(((e,t)=>(0,m.jsx)(k,{issue:e,level:a,expanded:n},t)))})}const F={S_INFO:s.A,S_WARNING:r.A,S_ERROR:i.A,S_FATAL:o.A},D=(0,h.cn)("yql-issue-severity");function B({severity:e}){const t=e.slice(2).toLowerCase();return(0,m.jsxs)("span",{className:D({severity:t}),children:[(0,m.jsx)(u.I,{className:D("icon"),data:F[e]}),(0,m.jsx)("span",{className:D("title"),children:t})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/13470.82cfe328.chunk.js b/ydb/core/viewer/monitoring/static/js/13470.82cfe328.chunk.js new file mode 100644 index 0000000000..0ca612fc07 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/13470.82cfe328.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[13470],{13470:(e,a,n)=>{n.d(a,{default:()=>o});var t=n(79243);const o=n.n(t)()},79243:e=>{function a(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}e.exports=a,a.displayName="erlang",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/13638.e739b34f.chunk.js b/ydb/core/viewer/monitoring/static/js/13638.e739b34f.chunk.js new file mode 100644 index 0000000000..14f4dd268e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/13638.e739b34f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 13638.e739b34f.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[13638],{13638:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>r,language:()=>o});var r={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/13638.e739b34f.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/13638.e739b34f.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js b/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js deleted file mode 100644 index 48cce62ac6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 1414.4cfda0bc.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1414],{51414:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>s,language:()=>n});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1431.2bb62d12.chunk.js b/ydb/core/viewer/monitoring/static/js/1431.2bb62d12.chunk.js new file mode 100644 index 0000000000..399af47a72 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1431.2bb62d12.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1431],{1431:(e,a,n)=>{n.d(a,{default:()=>t});var r=n(46346);const t=n.n(r)()},46346:e=>{function a(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=a,a.displayName="go",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/14382.a8e3e5fd.chunk.js b/ydb/core/viewer/monitoring/static/js/14382.a8e3e5fd.chunk.js new file mode 100644 index 0000000000..956f429614 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/14382.a8e3e5fd.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[14382],{14382:(e,n,t)=>{t.d(n,{default:()=>o});var a=t(36811);const o=t.n(a)()},36811:(e,n,t)=>{var a=t(51572);function o(e){e.register(a),function(e){e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,t=e.languages["markup-templating"];e.hooks.add("before-tokenize",(function(e){t.buildPlaceholders(e,"django",n)})),e.hooks.add("after-tokenize",(function(e){t.tokenizePlaceholders(e,"django")})),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",(function(e){t.buildPlaceholders(e,"jinja2",n)})),e.hooks.add("after-tokenize",(function(e){t.tokenizePlaceholders(e,"jinja2")}))}(e)}e.exports=o,o.displayName="django",o.aliases=["jinja2"]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,o,i){if(t.language===a){var r=t.tokenStack=[];t.code=t.code.replace(o,(function(e){if("function"===typeof i&&!i(e))return e;for(var o,s=r.length;-1!==t.code.indexOf(o=n(a,s));)++s;return r[s]=e,o})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var o=0,i=Object.keys(t.tokenStack);!function r(s){for(var l=0;l<s.length&&!(o>=i.length);l++){var u=s[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var c=i[o],d=t.tokenStack[c],g="string"===typeof u?u:u.content,p=n(a,c),f=g.indexOf(p);if(f>-1){++o;var k=g.substring(0,f),b=new e.Token(a,e.tokenize(d,t.grammar),"language-"+a,d),h=g.substring(f+p.length),m=[];k&&m.push.apply(m,r([k])),m.push(b),h&&m.push.apply(m,r([h])),"string"===typeof u?s.splice.apply(s,[l,1].concat(m)):u.content=m}}else u.content&&r(u.content)}return s}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/14542.fea67816.chunk.js b/ydb/core/viewer/monitoring/static/js/14542.fea67816.chunk.js new file mode 100644 index 0000000000..b84fca68ee --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/14542.fea67816.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 14542.fea67816.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[14542],{14542:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/14542.fea67816.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/14542.fea67816.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/1486.8a488ae4.chunk.js b/ydb/core/viewer/monitoring/static/js/1486.8a488ae4.chunk.js deleted file mode 100644 index 98bd99f821..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1486.8a488ae4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1486],{71486:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"sd",weekdays:"\u0622\u0686\u0631_\u0633\u0648\u0645\u0631_\u0627\u06b1\u0627\u0631\u0648_\u0627\u0631\u0628\u0639_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639_\u0687\u0646\u0687\u0631".split("_"),months:"\u062c\u0646\u0648\u0631\u064a_\u0641\u064a\u0628\u0631\u0648\u0631\u064a_\u0645\u0627\u0631\u0686_\u0627\u067e\u0631\u064a\u0644_\u0645\u0626\u064a_\u062c\u0648\u0646_\u062c\u0648\u0644\u0627\u0621\u0650_\u0622\u06af\u0633\u067d_\u0633\u064a\u067e\u067d\u0645\u0628\u0631_\u0622\u06aa\u067d\u0648\u0628\u0631_\u0646\u0648\u0645\u0628\u0631_\u068a\u0633\u0645\u0628\u0631".split("_"),weekStart:1,weekdaysShort:"\u0622\u0686\u0631_\u0633\u0648\u0645\u0631_\u0627\u06b1\u0627\u0631\u0648_\u0627\u0631\u0628\u0639_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639_\u0687\u0646\u0687\u0631".split("_"),monthsShort:"\u062c\u0646\u0648\u0631\u064a_\u0641\u064a\u0628\u0631\u0648\u0631\u064a_\u0645\u0627\u0631\u0686_\u0627\u067e\u0631\u064a\u0644_\u0645\u0626\u064a_\u062c\u0648\u0646_\u062c\u0648\u0644\u0627\u0621\u0650_\u0622\u06af\u0633\u067d_\u0633\u064a\u067e\u067d\u0645\u0628\u0631_\u0622\u06aa\u067d\u0648\u0628\u0631_\u0646\u0648\u0645\u0628\u0631_\u068a\u0633\u0645\u0628\u0631".split("_"),weekdaysMin:"\u0622\u0686\u0631_\u0633\u0648\u0645\u0631_\u0627\u06b1\u0627\u0631\u0648_\u0627\u0631\u0628\u0639_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639_\u0687\u0646\u0687\u0631".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1496.18b1eb19.chunk.js b/ydb/core/viewer/monitoring/static/js/1496.18b1eb19.chunk.js deleted file mode 100644 index 072789bff2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1496.18b1eb19.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1496],{51496:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-in",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],_=e%100;return"["+e+(a[(_-20)%10]||a[_]||a[0])+"]"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/15418.978d5fff.chunk.js b/ydb/core/viewer/monitoring/static/js/15418.978d5fff.chunk.js new file mode 100644 index 0000000000..e123b982db --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/15418.978d5fff.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[15418],{15418:function(e,t,_){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),d={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return _.default.locale(d,null,!0),d}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/15542.e6a4dbf6.chunk.js b/ydb/core/viewer/monitoring/static/js/15542.e6a4dbf6.chunk.js new file mode 100644 index 0000000000..44394ddce9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/15542.e6a4dbf6.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 15542.e6a4dbf6.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[15542],{15542:(e,t,a)=>{a.r(t),a.d(t,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/15542.e6a4dbf6.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/15542.e6a4dbf6.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/15931.ad3d689f.chunk.js b/ydb/core/viewer/monitoring/static/js/15931.ad3d689f.chunk.js new file mode 100644 index 0000000000..c663c693fc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/15931.ad3d689f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[15931],{15931:(a,e,n)=>{n.d(e,{default:()=>t});var i=n(36868);const t=n.n(i)()},36868:a=>{function e(a){!function(a){var e=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;a.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Caracter\xedstica|Egenskab|Egenskap|Eiginleiki|Feature|F\u012b\u010da|Fitur|Fonctionnalit\xe9|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Func\u0163ionalitate|Func\u021bionalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalit\u0101te|Funkcionalnost|Funkcja|Funksie|Funktionalit\xe4t|Funktionalit\xe9it|Funzionalit\xe0|Hwaet|Hw\xe6t|Jellemz\u0151|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogu\u0107nost|Moznosti|Mo\u017enosti|OH HAI|Omadus|Ominaisuus|Osobina|\xd6zellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Po\u017eadavek|Po\u017eiadavka|Pretty much|Qap|Qu'meH 'ut|Savyb\u0117|T\xednh n\u0103ng|Trajto|Vermo\xeb|Vlastnos\u0165|W\u0142a\u015bciwo\u015b\u0107|Zna\u010dilnost|\u0394\u03c5\u03bd\u03b1\u03c4\u03cc\u03c4\u03b7\u03c4\u03b1|\u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1|\u041c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442|\u041c\u04e9\u043c\u043a\u0438\u043d\u043b\u0435\u043a|\u041e\u0441\u043e\u0431\u0438\u043d\u0430|\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e|\u04ae\u0437\u0435\u043d\u0447\u04d9\u043b\u0435\u043a\u043b\u0435\u043b\u0435\u043a|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u043e\u0441\u0442|\u0424\u0443\u043d\u043a\u0446\u0438\u044f|\u0424\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b|\u05ea\u05db\u05d5\u05e0\u05d4|\u062e\u0627\u0635\u064a\u0629|\u062e\u0635\u0648\u0635\u06cc\u062a|\u0635\u0644\u0627\u062d\u06cc\u062a|\u06a9\u0627\u0631\u0648\u0628\u0627\u0631 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a|\u0648\u0650\u06cc\u0698\u06af\u06cc|\u0930\u0942\u092a \u0932\u0947\u0916|\u0a16\u0a3e\u0a38\u0a40\u0a05\u0a24|\u0a28\u0a15\u0a36 \u0a28\u0a41\u0a39\u0a3e\u0a30|\u0a2e\u0a41\u0a39\u0a3e\u0a02\u0a26\u0a30\u0a3e|\u0c17\u0c41\u0c23\u0c2e\u0c41|\u0cb9\u0cc6\u0c9a\u0ccd\u0c9a\u0cb3|\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e32\u0e07\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08|\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16|\u0e42\u0e04\u0e23\u0e07\u0e2b\u0e25\u0e31\u0e01|\uae30\ub2a5|\u30d5\u30a3\u30fc\u30c1\u30e3|\u529f\u80fd|\u6a5f\u80fd):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|\xc6r|Agtergrond|All y'all|Antecedentes|Antecedents|Atbur\xf0ar\xe1s|Atbur\xf0ar\xe1sir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|B\u1ed1i c\u1ea3nh|Cefndir|Cenario|Cen\xe1rio|Cenario de Fundo|Cen\xe1rio de Fundo|Cenarios|Cen\xe1rios|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|D\xe6mi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delinea\xe7\xe3o do Cen\xe1rio|Dis is what went down|D\u1eef li\u1ec7u|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cen\xe1rio|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgat\xf3k\xf6nyv|Forgat\xf3k\xf6nyv v\xe1zlat|Fundo|Ge\xe7mi\u015f|Grundlage|Hannergrond|ghantoH|H\xe1tt\xe9r|Heave to|Istorik|Juhtumid|Keadaan|Khung k\u1ecbch b\u1ea3n|Khung t\xecnh hu\u1ed1ng|K\u1ecbch b\u1ea3n|Koncept|Konsep skenario|Kont\xe8ks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|L\xfdsing Atbur\xf0ar\xe1sar|L\xfdsing D\xe6ma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|N\xe1\u010drt Scen\xe1ra|N\xe1\u010drt Sc\xe9n\xe1\u0159e|N\xe1\u010drt Scen\xe1ru|Oris scenarija|\xd6rnekler|Osnova|Osnova Scen\xe1ra|Osnova sc\xe9n\xe1\u0159e|Osnutek|Ozadje|Paraugs|Pavyzd\u017eiai|P\xe9ld\xe1k|Piem\u0113ri|Plan du sc\xe9nario|Plan du Sc\xe9nario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozad\xed|Pozadie|Pozadina|Pr\xedklady|P\u0159\xedklady|Primer|Primeri|Primjeri|Przyk\u0142ady|Raamstsenaarium|Reckon it's like|Rerefons|Scen\xe1r|Sc\xe9n\xe1\u0159|Scenarie|Scenarij|Scenarijai|Scenarijaus \u0161ablonas|Scenariji|Scen\u0101rijs|Scen\u0101rijs p\u0113c parauga|Scenarijus|Scenario|Sc\xe9nario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se \xf0e|Se the|Se \xfee|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo tasla\u011f\u0131|Shiver me timbers|Situ\u0101cija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structur\u0103 scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hw\xe6r swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|T\xecnh hu\u1ed1ng|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Za\u0142o\u017cenia|\u03a0\u03b1\u03c1\u03b1\u03b4\u03b5\u03af\u03b3\u03bc\u03b1\u03c4\u03b1|\u03a0\u03b5\u03c1\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae \u03a3\u03b5\u03bd\u03b1\u03c1\u03af\u03bf\u03c5|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03b1|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03bf|\u03a5\u03c0\u03cc\u03b2\u03b1\u03b8\u03c1\u03bf|\u041a\u0435\u0440\u0435\u0448|\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442|\u041a\u043e\u043d\u0446\u0435\u043f\u0442|\u041c\u0438\u0441\u0430\u043b\u043b\u0430\u0440|\u041c\u0438\u0441\u043e\u043b\u043b\u0430\u0440|\u041e\u0441\u043d\u043e\u0432\u0430|\u041f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0430|\u041f\u043e\u0437\u0430\u0434\u0438\u043d\u0430|\u041f\u0440\u0435\u0434\u0438\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438|\u041f\u0440\u0438\u043c\u0435\u0440|\u041f\u0440\u0438\u043c\u0435\u0440\u0438|\u041f\u0440\u0438\u043c\u0435\u0440\u044b|\u0420\u0430\u043c\u043a\u0430 \u043d\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u0421\u043a\u0438\u0446\u0430|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0430|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0441\u0438|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u043d\u044b\u04a3 \u0442\u04e9\u0437\u0435\u043b\u0435\u0448\u0435|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0438|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u043e|\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439|\u0422\u0430\u0440\u0438\u0445|\u04ae\u0440\u043d\u04d9\u043a\u043b\u04d9\u0440|\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea|\u05e8\u05e7\u05e2|\u05ea\u05d1\u05e0\u05d9\u05ea \u05ea\u05e8\u05d7\u05d9\u05e9|\u05ea\u05e8\u05d7\u05d9\u05e9|\u0627\u0644\u062e\u0644\u0641\u064a\u0629|\u0627\u0644\u06af\u0648\u06cc \u0633\u0646\u0627\u0631\u06cc\u0648|\u0627\u0645\u062b\u0644\u0629|\u067e\u0633 \u0645\u0646\u0638\u0631|\u0632\u0645\u06cc\u0646\u0647|\u0633\u0646\u0627\u0631\u06cc\u0648|\u0633\u064a\u0646\u0627\u0631\u064a\u0648|\u0633\u064a\u0646\u0627\u0631\u064a\u0648 \u0645\u062e\u0637\u0637|\u0645\u062b\u0627\u0644\u06cc\u06ba|\u0645\u0646\u0638\u0631 \u0646\u0627\u0645\u06d2 \u06a9\u0627 \u062e\u0627\u06a9\u06c1|\u0645\u0646\u0638\u0631\u0646\u0627\u0645\u06c1|\u0646\u0645\u0648\u0646\u0647 \u0647\u0627|\u0909\u0926\u093e\u0939\u0930\u0923|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f \u0930\u0942\u092a\u0930\u0947\u0916\u093e|\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f|\u0a09\u0a26\u0a3e\u0a39\u0a30\u0a28\u0a3e\u0a02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a22\u0a3e\u0a02\u0a1a\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a30\u0a42\u0a2a \u0a30\u0a47\u0a16\u0a3e|\u0a2a\u0a3f\u0a1b\u0a4b\u0a15\u0a5c|\u0c09\u0c26\u0c3e\u0c39\u0c30\u0c23\u0c32\u0c41|\u0c15\u0c25\u0c28\u0c02|\u0c28\u0c47\u0c2a\u0c25\u0c4d\u0c2f\u0c02|\u0c38\u0c28\u0c4d\u0c28\u0c3f\u0c35\u0c47\u0c36\u0c02|\u0c89\u0ca6\u0cbe\u0cb9\u0cb0\u0ca3\u0cc6\u0c97\u0cb3\u0cc1|\u0c95\u0ca5\u0cbe\u0cb8\u0cbe\u0cb0\u0cbe\u0c82\u0cb6|\u0cb5\u0cbf\u0cb5\u0cb0\u0ca3\u0cc6|\u0cb9\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6\u0cb2\u0cc6|\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e41\u0e19\u0e27\u0e04\u0e34\u0e14|\u0e2a\u0e23\u0e38\u0e1b\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\ubc30\uacbd|\uc2dc\ub098\ub9ac\uc624|\uc2dc\ub098\ub9ac\uc624 \uac1c\uc694|\uc608|\u30b5\u30f3\u30d7\u30eb|\u30b7\u30ca\u30ea\u30aa|\u30b7\u30ca\u30ea\u30aa\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8|\u30c6\u30f3\u30d7\u30ec|\u4f8b|\u4f8b\u5b50|\u5267\u672c|\u5267\u672c\u5927\u7eb2|\u5287\u672c|\u5287\u672c\u5927\u7db1|\u573a\u666f|\u573a\u666f\u5927\u7eb2|\u5834\u666f|\u5834\u666f\u5927\u7db1|\u80cc\u666f):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+e+")(?:"+e+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(e),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A tak\xe9|A taktie\u017e|A tie\u017e|A z\xe1rove\u0148|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|At\xe8s|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Bi\u1ebft|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|C\xe2nd|Cand|Cando|Ce|Cuando|\u010ce|\xd0a \xf0e|\xd0a|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Da\u0163i fiind|Da\u021bi fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donita\u0135o|Do|Dun|Duota|\xd0urh|Eeldades|Ef|E\u011fer ki|Entao|Ent\xe3o|Ent\xf3n|E|En|Entonces|Epi|\xc9s|Etant donn\xe9e|Etant donn\xe9|Et|\xc9tant donn\xe9es|\xc9tant donn\xe9e|\xc9tant donn\xe9|Etant donn\xe9es|Etant donn\xe9s|\xc9tant donn\xe9s|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Je\u015bli|Je\u017celi|Kad|Kada|Kadar|Kai|Kaj|Kdy\u017e|Ke\u010f|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|L\xe8 sa a|L\xe8|Logo|Lorsqu'<|Lorsque|m\xe4|Maar|Mais|Maj\u0105c|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|N\xe5r|N\xe4r|Nato|Nh\u01b0ng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Per\xf2|Podano|Pokia\u013e|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|S\xe5|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|\u015ei|\u0218i|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Th\xec|Thurh|Toda|Too right|Un|Und|ugeholl|V\xe0|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za p\u0159edpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zak\u0142adaj\u0105c|Zaradi|Zatati|\xdea \xfee|\xdea|\xde\xe1|\xdeegar|\xdeurh|\u0391\u03bb\u03bb\u03ac|\u0394\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5|\u039a\u03b1\u03b9|\u038c\u03c4\u03b1\u03bd|\u03a4\u03cc\u03c4\u03b5|\u0410 \u0442\u0430\u043a\u043e\u0436|\u0410\u0433\u0430\u0440|\u0410\u043b\u0435|\u0410\u043b\u0438|\u0410\u043c\u043c\u043e|\u0410|\u04d8\u0433\u04d9\u0440|\u04d8\u0439\u0442\u0438\u043a|\u04d8\u043c\u043c\u0430|\u0411\u0438\u0440\u043e\u043a|\u0412\u0430|\u0412\u04d9|\u0414\u0430\u0434\u0435\u043d\u043e|\u0414\u0430\u043d\u043e|\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c|\u0415\u0441\u043b\u0438|\u0417\u0430\u0434\u0430\u0442\u0435|\u0417\u0430\u0434\u0430\u0442\u0438|\u0417\u0430\u0434\u0430\u0442\u043e|\u0418|\u0406|\u041a \u0442\u043e\u043c\u0443 \u0436\u0435|\u041a\u0430\u0434\u0430|\u041a\u0430\u0434|\u041a\u043e\u0433\u0430\u0442\u043e|\u041a\u043e\u0433\u0434\u0430|\u041a\u043e\u043b\u0438|\u041b\u04d9\u043a\u0438\u043d|\u041b\u0435\u043a\u0438\u043d|\u041d\u04d9\u0442\u0438\u0497\u04d9\u0434\u04d9|\u041d\u0435\u0445\u0430\u0439|\u041d\u043e|\u041e\u043d\u0434\u0430|\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e, \u0449\u043e|\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e|\u041f\u0443\u0441\u0442\u044c|\u0422\u0430\u043a\u0436\u0435|\u0422\u0430|\u0422\u043e\u0433\u0434\u0430|\u0422\u043e\u0434\u0456|\u0422\u043e|\u0423\u043d\u0434\u0430|\u04ba\u04d9\u043c|\u042f\u043a\u0449\u043e|\u05d0\u05d1\u05dc|\u05d0\u05d6\u05d9|\u05d0\u05d6|\u05d1\u05d4\u05d9\u05e0\u05ea\u05df|\u05d5\u05d2\u05dd|\u05db\u05d0\u05e9\u05e8|\u0622\u0646\u06af\u0627\u0647|\u0627\u0630\u0627\u064b|\u0627\u06af\u0631|\u0627\u0645\u0627|\u0627\u0648\u0631|\u0628\u0627 \u0641\u0631\u0636|\u0628\u0627\u0644\u0641\u0631\u0636|\u0628\u0641\u0631\u0636|\u067e\u06be\u0631|\u062a\u0628|\u062b\u0645|\u062c\u0628|\u0639\u0646\u062f\u0645\u0627|\u0641\u0631\u0636 \u06a9\u06cc\u0627|\u0644\u0643\u0646|\u0644\u06cc\u06a9\u0646|\u0645\u062a\u0649|\u0647\u0646\u06af\u0627\u0645\u06cc|\u0648|\u0905\u0917\u0930|\u0914\u0930|\u0915\u0926\u093e|\u0915\u093f\u0928\u094d\u0924\u0941|\u091a\u0942\u0902\u0915\u093f|\u091c\u092c|\u0924\u0925\u093e|\u0924\u0926\u093e|\u0924\u092c|\u092a\u0930\u0928\u094d\u0924\u0941|\u092a\u0930|\u092f\u0926\u093f|\u0a05\u0a24\u0a47|\u0a1c\u0a26\u0a4b\u0a02|\u0a1c\u0a3f\u0a35\u0a47\u0a02 \u0a15\u0a3f|\u0a1c\u0a47\u0a15\u0a30|\u0a24\u0a26|\u0a2a\u0a30|\u0c05\u0c2a\u0c4d\u0c2a\u0c41\u0c21\u0c41|\u0c08 \u0c2a\u0c30\u0c3f\u0c38\u0c4d\u0c25\u0c3f\u0c24\u0c3f\u0c32\u0c4b|\u0c15\u0c3e\u0c28\u0c3f|\u0c1a\u0c46\u0c2a\u0c4d\u0c2a\u0c2c\u0c21\u0c3f\u0c28\u0c26\u0c3f|\u0c2e\u0c30\u0c3f\u0c2f\u0c41|\u0c86\u0ca6\u0cb0\u0cc6|\u0ca8\u0c82\u0ca4\u0cb0|\u0ca8\u0cbf\u0cd5\u0ca1\u0cbf\u0ca6|\u0cae\u0ca4\u0ccd\u0ca4\u0cc1|\u0cb8\u0ccd\u0ca5\u0cbf\u0ca4\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1|\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49|\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19|\u0e41\u0e15\u0e48|\u0e40\u0e21\u0e37\u0e48\u0e2d|\u0e41\u0e25\u0e30|\uadf8\ub7ec\uba74<|\uadf8\ub9ac\uace0<|\ub2e8<|\ub9cc\uc57d<|\ub9cc\uc77c<|\uba3c\uc800<|\uc870\uac74<|\ud558\uc9c0\ub9cc<|\u304b\u3064<|\u3057\u304b\u3057<|\u305f\u3060\u3057<|\u306a\u3089\u3070<|\u3082\u3057<|\u4e26\u4e14<|\u4f46\u3057<|\u4f46\u662f<|\u5047\u5982<|\u5047\u5b9a<|\u5047\u8a2d<|\u5047\u8bbe<|\u524d\u63d0<|\u540c\u65f6<|\u540c\u6642<|\u5e76\u4e14<|\u5f53<|\u7576<|\u800c\u4e14<|\u90a3\u4e48<|\u90a3\u9ebc<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}(a)}a.exports=e,e.displayName="gherkin",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/16038.8c61a9b6.chunk.js b/ydb/core/viewer/monitoring/static/js/16038.8c61a9b6.chunk.js new file mode 100644 index 0000000000..80fff40a3b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16038.8c61a9b6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16038],{16038:(e,t,s)=>{s.d(t,{default:()=>n});var i=s(60483);const n=s.n(i)()},60483:e=>{function t(e){!function(e){var t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},s={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:s.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:s}},n=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},r=function(e){return new RegExp("(^|\\s)(?:"+e.map(n).join("|")+")(?=\\s|$)")},a={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(a).forEach((function(e){i[e].pattern=r(a[e])}));i.combinators.pattern=r(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"]),e.languages.factor=i}(e)}e.exports=t,t.displayName="factor",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/16097.4303c083.chunk.js b/ydb/core/viewer/monitoring/static/js/16097.4303c083.chunk.js new file mode 100644 index 0000000000..3849049c1f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16097.4303c083.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16097],{16097:(e,a,t)=>{t.d(a,{default:()=>n});var i=t(89244);const n=t.n(i)()},89244:(e,a,t)=>{var i=t(89343);function n(e){e.register(i),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}e.exports=n,n.displayName="glsl",n.aliases=[]},89343:e=>{function a(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=a,a.displayName="c",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/16210.cfacbd9b.chunk.js b/ydb/core/viewer/monitoring/static/js/16210.cfacbd9b.chunk.js new file mode 100644 index 0000000000..7f4aac09ee --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16210.cfacbd9b.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 16210.cfacbd9b.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16210],{93829:(E,T,S)=>{S.r(T),S.d(T,{conf:()=>R,language:()=>_});var R={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},_={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NUMERIC","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","REAL","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","Area","AsBinary","AsWKB","ASCII","ASIN","AsText","AsWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","ATAN","AVG","BENCHMARK","BIN","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","Buffer","CAST","CEIL","CEILING","Centroid","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","Contains","CONV","CONVERT","CONVERT_TZ","ConvexHull","COS","COT","COUNT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","Crosses","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DES_DECRYPT","DES_ENCRYPT","DENSE_RANK","Dimension","Disjoint","Distance","ELT","ENCODE","ENCRYPT","EndPoint","Envelope","Equals","EXP","EXPORT_SET","ExteriorRing","EXTRACT","ExtractValue","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEN_RANGE","GEN_RND_EMAIL","GEN_RND_PAN","GEN_RND_SSN","GEN_RND_US_PHONE","GeomCollection","GeomCollFromText","GeometryCollectionFromText","GeomCollFromWKB","GeometryCollectionFromWKB","GeometryCollection","GeometryN","GeometryType","GeomFromText","GeometryFromText","GeomFromWKB","GeometryFromWKB","GET_FORMAT","GET_LOCK","GLength","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","InteriorRingN","Intersects","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","IsClosed","IsEmpty","ISNULL","IsSimple","JSON_APPEND","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LineFromText","LineStringFromText","LineFromWKB","LineStringFromWKB","LineString","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASK_INNER","MASK_OUTER","MASK_PAN","MASK_PAN_RELAXED","MASK_SSN","MASTER_POS_WAIT","MAX","MBRContains","MBRCoveredBy","MBRCovers","MBRDisjoint","MBREqual","MBREquals","MBRIntersects","MBROverlaps","MBRTouches","MBRWithin","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MLineFromText","MultiLineStringFromText","MLineFromWKB","MultiLineStringFromWKB","MOD","MONTH","MONTHNAME","MPointFromText","MultiPointFromText","MPointFromWKB","MultiPointFromWKB","MPolyFromText","MultiPolygonFromText","MPolyFromWKB","MultiPolygonFromWKB","MultiLineString","MultiPoint","MultiPolygon","NAME_CONST","NOT IN","NOW","NTH_VALUE","NTILE","NULLIF","NumGeometries","NumInteriorRings","NumPoints","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","Overlaps","PASSWORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","Point","PointFromText","PointFromWKB","PointN","PolyFromText","PolygonFromText","PolyFromWKB","PolygonFromWKB","Polygon","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","PROCEDURE ANALYSE","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_REPLACE","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOURCE_POS_WAIT","SPACE","SQRT","SRID","ST_Area","ST_AsBinary","ST_AsWKB","ST_AsGeoJSON","ST_AsText","ST_AsWKT","ST_Buffer","ST_Buffer_Strategy","ST_Centroid","ST_Collect","ST_Contains","ST_ConvexHull","ST_Crosses","ST_Difference","ST_Dimension","ST_Disjoint","ST_Distance","ST_Distance_Sphere","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_FrechetDistance","ST_GeoHash","ST_GeomCollFromText","ST_GeometryCollectionFromText","ST_GeomCollFromTxt","ST_GeomCollFromWKB","ST_GeometryCollectionFromWKB","ST_GeometryN","ST_GeometryType","ST_GeomFromGeoJSON","ST_GeomFromText","ST_GeometryFromText","ST_GeomFromWKB","ST_GeometryFromWKB","ST_HausdorffDistance","ST_InteriorRingN","ST_Intersection","ST_Intersects","ST_IsClosed","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_LatFromGeoHash","ST_Length","ST_LineFromText","ST_LineStringFromText","ST_LineFromWKB","ST_LineStringFromWKB","ST_LineInterpolatePoint","ST_LineInterpolatePoints","ST_LongFromGeoHash","ST_Longitude","ST_MakeEnvelope","ST_MLineFromText","ST_MultiLineStringFromText","ST_MLineFromWKB","ST_MultiLineStringFromWKB","ST_MPointFromText","ST_MultiPointFromText","ST_MPointFromWKB","ST_MultiPointFromWKB","ST_MPolyFromText","ST_MultiPolygonFromText","ST_MPolyFromWKB","ST_MultiPolygonFromWKB","ST_NumGeometries","ST_NumInteriorRing","ST_NumInteriorRings","ST_NumPoints","ST_Overlaps","ST_PointAtDistance","ST_PointFromGeoHash","ST_PointFromText","ST_PointFromWKB","ST_PointN","ST_PolyFromText","ST_PolygonFromText","ST_PolyFromWKB","ST_PolygonFromWKB","ST_Simplify","ST_SRID","ST_StartPoint","ST_SwapXY","ST_SymDifference","ST_Touches","ST_Transform","ST_Union","ST_Validate","ST_Within","ST_X","ST_Y","StartPoint","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","Touches","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UpdateXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","Within","X","Y","YEAR","YEARWEEK"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/#+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/\\'/,"string"],[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/`/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^`]+/,"identifier"],[/``/,"identifier"],[/`/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/16210.cfacbd9b.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/16210.cfacbd9b.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/16242.ba0392be.chunk.js b/ydb/core/viewer/monitoring/static/js/16242.ba0392be.chunk.js new file mode 100644 index 0000000000..48a0a4731e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16242.ba0392be.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16242],{16242:(d,e,b)=>{b.d(e,{default:()=>a});var u=b(61993);const a=b.n(u)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1627.80c94ebf.chunk.js b/ydb/core/viewer/monitoring/static/js/1627.80c94ebf.chunk.js deleted file mode 100644 index 18255db411..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1627.80c94ebf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1627],{51627:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),t={name:"en-nz",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){var _=["th","st","nd","rd"],a=e%100;return"["+e+(_[(a-20)%10]||_[a]||_[0])+"]"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1657.d6f0b340.chunk.js b/ydb/core/viewer/monitoring/static/js/1657.d6f0b340.chunk.js deleted file mode 100644 index 3f58e37f62..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1657.d6f0b340.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1657],{21657:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_,e){return"W"===e?_+"\u5468":_+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(_,e){var t=100*_+e;return t<600?"\u51cc\u6668":t<900?"\u65e9\u4e0a":t<1100?"\u4e0a\u5348":t<1300?"\u4e2d\u5348":t<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/16664.195e9acf.chunk.js b/ydb/core/viewer/monitoring/static/js/16664.195e9acf.chunk.js new file mode 100644 index 0000000000..043f367ad6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16664.195e9acf.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16664],{16664:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ml",weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/16758.3630f667.chunk.js b/ydb/core/viewer/monitoring/static/js/16758.3630f667.chunk.js new file mode 100644 index 0000000000..7022dea18b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16758.3630f667.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16758],{16758:(t,e,i)=>{i.d(e,{default:()=>a});var n=i(25833);const a=i.n(n)()},25833:t=>{function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}t.exports=e,e.displayName="nix",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/16795.c5c2f8ec.chunk.js b/ydb/core/viewer/monitoring/static/js/16795.c5c2f8ec.chunk.js new file mode 100644 index 0000000000..b0620115be --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/16795.c5c2f8ec.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[16795],{16795:(e,t,o)=>{o.d(t,{default:()=>i});var r=o(30784);const i=o.n(r)()},30784:e=>{function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}e.exports=t,t.displayName="mel",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1696.6120f4a8.chunk.js b/ydb/core/viewer/monitoring/static/js/1696.6120f4a8.chunk.js deleted file mode 100644 index 925c5afde7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1696.6120f4a8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1696],{41696:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var _={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(_,null,!0),_}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/17240.74653f76.chunk.js b/ydb/core/viewer/monitoring/static/js/17240.74653f76.chunk.js new file mode 100644 index 0000000000..7421b128c1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/17240.74653f76.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[17240],{17240:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),s={name:"ms-my",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),weekStart:1,weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/173.7f4af5fa.chunk.js b/ydb/core/viewer/monitoring/static/js/173.7f4af5fa.chunk.js new file mode 100644 index 0000000000..cf72aa0645 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/173.7f4af5fa.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[173],{173:(e,t,r)=>{r.d(t,{default:()=>a});var n=r(43954);const a=r.n(n)()},43954:(e,t,r)=>{var n=r(93292);function a(e){e.register(n),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}e.exports=a,a.displayName="arduino",a.aliases=["ino"]},89343:e=>{function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},93292:(e,t,r)=>{var n=r(89343);function a(e){e.register(n),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return r}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=a,a.displayName="cpp",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1747.f01c9fd8.chunk.js b/ydb/core/viewer/monitoring/static/js/1747.f01c9fd8.chunk.js deleted file mode 100644 index 0f4745d338..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1747.f01c9fd8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1747],{81747:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-tt",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],_=e%100;return"["+e+(a[(_-20)%10]||a[_]||a[0])+"]"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/17500.d2b3273a.chunk.js b/ydb/core/viewer/monitoring/static/js/17500.d2b3273a.chunk.js new file mode 100644 index 0000000000..fb311f7f28 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/17500.d2b3273a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[17500],{17500:(e,i,t)=>{t.d(i,{default:()=>n});var r=t(91993);const n=t.n(r)()},91993:e=>{function i(e){!function(e){var i=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};i.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:i},boolean:i.boolean,variable:i.variable}}(e)}e.exports=i,i.displayName="powershell",i.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1756.b612458a.chunk.js b/ydb/core/viewer/monitoring/static/js/1756.b612458a.chunk.js deleted file mode 100644 index 1690d3366f..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1756.b612458a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1756],{71756:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tg",weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),weekStart:1,weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/17830.763df207.chunk.js b/ydb/core/viewer/monitoring/static/js/17830.763df207.chunk.js new file mode 100644 index 0000000000..d6492e8635 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/17830.763df207.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[17830],{17830:(e,s,r)=>{r.d(s,{default:()=>a});var n=r(81347);const a=r.n(n)()},81347:(e,s,r)=>{var n=r(90323);function a(e){e.register(n),function(e){var s=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function n(e,n){for(var a=0;a<n;a++)e=e.replace(/<self>/g,(function(){return"(?:"+e+")"}));return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+s+")")}var a=n(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),o=n(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),t=n(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),i=n(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),c=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,u=/(?!\d)[^\s>\/=$<%]+/.source+c+/\s*\/?>/.source,l=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+c+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+u+"|"+n(/<\1/.source+c+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+u+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+u+")";e.languages.cshtml=e.languages.extend("markup",{});var d={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(l),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})};e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[t,/(?:code|functions)\s*/.source+t,/(?:for|foreach|lock|switch|using|while)\s*/.source+a+/\s*/.source+t,/do\s*/.source+t+/\s*while\s*/.source+a+/(?:\s*;)?/.source,/try\s*/.source+t+/\s*catch\s*/.source+a+/\s*/.source+t+/\s*finally\s*/.source+t,/if\s*/.source+a+/\s*/.source+t+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+a+")?"+/\s*/.source+t+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:d}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:d}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|"+a+"|"+o+"|"+i+a+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:d}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(e)}e.exports=a,a.displayName="cshtml",a.aliases=["razor"]},90323:e=>{function s(e){!function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+s[+r]+")"}))}function r(e,r,n){return RegExp(s(e,r),n||"")}function n(e,s){for(var r=0;r<s;r++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",t="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",i="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=c(o),l=RegExp(c(a+" "+o+" "+t+" "+i)),d=c(o+" "+t+" "+i),p=c(a+" "+o+" "+i),g=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=n(/\((?:[^()]|<<self>>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),w=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,h,k]),v=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,m,k]),_={keyword:l,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,$=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:_},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:_},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[u,f]),lookbehind:!0,inside:_},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:_},{pattern:r(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:_},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:_}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:_},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:_,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:_,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:r(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:_}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,f,b,x,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:_},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var E=$+"|"+S,R=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[E]),z=n(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,z]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[z]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var T=/:[^}\r\n]+/.source,H=n(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),C=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,T]),F=n(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[E]),2),N=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,T]);function U(s,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,T]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[C]),lookbehind:!0,greedy:!0,inside:U(C,H)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:U(N,F)}],char:{pattern:RegExp(S),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=s,s.displayName="csharp",s.aliases=["dotnet","cs"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/17880.ed6168a4.chunk.js b/ydb/core/viewer/monitoring/static/js/17880.ed6168a4.chunk.js new file mode 100644 index 0000000000..53602c2520 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/17880.ed6168a4.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[17880],{17880:(e,s,a)=>{a.d(s,{default:()=>t});var n=a(29529);const t=a.n(n)()},29529:e=>{function s(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=s,s.displayName="less",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/17981.5fd12b3d.chunk.js b/ydb/core/viewer/monitoring/static/js/17981.5fd12b3d.chunk.js new file mode 100644 index 0000000000..c0aac816da --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/17981.5fd12b3d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[17981],{17981:(e,n,r)=>{r.d(n,{default:()=>i});var t=r(90160);const i=r.n(t)()},90160:e=>{function n(e){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",t=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+t),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+t+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}e.exports=n,n.displayName="ruby",n.aliases=["rb"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1836.1a1c6d4b.chunk.js b/ydb/core/viewer/monitoring/static/js/1836.1a1c6d4b.chunk.js deleted file mode 100644 index 85d616cf90..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1836.1a1c6d4b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1836],{576:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const i={ru:{"hide-all":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435","show-all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",sum:"\u0421\u0443\u043c\u043c\u0430",scale:"\u0428\u043a\u0430\u043b\u0430",series:"\u041b\u0438\u043d\u0438\u044f",weekend:"\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439",nodata:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"},en:{"hide-all":"Hide all","show-all":"Show all",sum:"Total",scale:"Scale",series:"Series",weekend:"Weekend",nodata:"No data"}};t.default=(e="en")=>("string"!==typeof e&&(i.custom=e,e="custom"),t=>i[e][t]||t)},2836:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateUplotOptionsMixin=void 0;const n=s(i(25700)),o=s(i(60758)),l=i(46976),r=i(28265),a=s(i(67903)),u=i(81891),c=i(24793),d=i(27658),h=i(48643),f=s(i(15648));function p(e,t){for(const i of e||[])if(i===t)return;null===e||void 0===e||e.push(t)}t.CreateUplotOptionsMixin=class{initMixin(){this._uHooks.onDraw=()=>{if("listen"===this.state.stage)return;this.state.stage="listen",this.execHooks("stage",{chart:this,stage:this.state.stage});const e=performance.now()-this._startTime;this._meta.renderTime=e,this.execHooks("load",{chart:this,meta:this._meta})},this._uHooks.ready=()=>{const e=performance.now()-this._startTime;this._meta.initTime=e,this.execHooks("inited",{chart:this,meta:{initTime:e}})},this._uHooks.drawClear=e=>{const{ctx:t}=e;t.save(),t.fillStyle=this.utils.theme.BACKGROUND,t.fillRect(l.DEFAULT_CANVAS_PIXEL_RATIO,l.DEFAULT_CANVAS_PIXEL_RATIO,e.width*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO,e.height*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO),t.restore()},this._uHooks.setSelect=e=>{const{left:t,width:i}=e.select,[s,n]=[e.posToVal(t,l.DEFAULT_X_SCALE),e.posToVal(t+i,l.DEFAULT_X_SCALE)],{timeMultiplier:o=l.TIME_MULTIPLIER}=this.config.chart||{};this.execHooks("onSelect",{from:Math.ceil(s/o),to:Math.ceil(n/o),chart:this}),e.setSelect({width:0,height:0,top:0,left:0},!1)}}createUplotOptions(e=!1){var t,i,s,g,m,_,v,y,b,w,E;const{config:S}=this,x=[];let A=null===(t=this.plugins)||void 0===t?void 0:t.tooltip;if(S.tooltip&&!1!==S.tooltip.show&&(A?A.updateOptions(S.tooltip):A=(0,n.default)(this,S.tooltip),x.push(A.uplot),this.plugins.tooltip=A),e)this.plugins.plotLines&&x.push(this.plugins.plotLines.uplot);else{const e=(0,f.default)(this.config.plotLines||{})(this);this.plugins.plotLines=e,x.push(e.uplot)}Object.entries(S.plugins).forEach((([e,t])=>{const i=t(this);x.push(i.uplot),Object.assign(this.plugins,{[e]:i})}));const T=S.chart,O={width:this.root.clientWidth,height:this.clientHeight,title:null===(i=S.title)||void 0===i?void 0:i.text,plugins:x,focus:{alpha:l.DEFAULT_FOCUS_ALPHA},series:[{id:l.DEFAULT_X_SERIE_NAME,$c:S.timeline,scale:l.DEFAULT_X_SCALE,count:S.timeline.length}],ms:T.timeMultiplier||l.TIME_MULTIPLIER,hooks:S.hooks||{}};if(this.state.isEmptyDataSet=0===S.timeline.length||0===S.series.length||S.series.every((({data:e})=>0===e.length)),O.cursor=O.cursor||{},O.cursor.points=O.cursor.points||{},O.cursor.drag=O.cursor.drag||{dist:(null===(s=T.select)||void 0===s?void 0:s.minWidth)||l.MIN_SELECTION_WIDTH,x:null===(g=O.cursor.y)||void 0===g||g,y:null!==(m=O.cursor.y)&&void 0!==m&&m,setScale:null===(v=null===(_=T.select)||void 0===_?void 0:_.zoom)||void 0===v||v},this.utils.sync&&(O.cursor.sync=O.cursor.sync||{key:this.utils.sync.key}),S.cursor){const e=(0,o.default)(this,S.cursor);this.plugins.cursor=e,x.push(e.uplot)}const L=S.series||[],I=O.series;for(let n=L.length-1;n>=0;n--){const e=(0,r.configureSeries)(this,L[n]||{},n),t=I.push(e);this.state.y2uIdx[e.id||n]=t-1}const D=(0,a.default)(this,S);x.push(D),O.series=I,S.scales&&0!==Object.keys(S.scales).length||(S.scales={x:{},y:{}}),O.scales=O.scales||{},O.scales=(0,u.configureScales)(this,O.scales,S),O.axes=O.axes||[];return O.axes.push(...(0,c.configureAxes)(this,S)),O.hooks=S.hooks||{},O.hooks.draw=O.hooks.draw||[],O.hooks.ready=O.hooks.ready||[],O.hooks.drawClear=O.hooks.drawClear||[],O.hooks.setSelect=O.hooks.setSelect||[],p(O.hooks.draw,this._uHooks.onDraw),p(O.hooks.ready,this._uHooks.ready),p(O.hooks.drawClear,this._uHooks.drawClear),p(O.hooks.setSelect,this._uHooks.setSelect),O.drawOrder=(null===(y=T.appearance)||void 0===y?void 0:y.drawOrder)?null===(b=T.appearance)||void 0===b?void 0:b.drawOrder.filter((e=>e===h.DrawOrderKey.Series||e===h.DrawOrderKey.Axes)):[h.DrawOrderKey.Series,h.DrawOrderKey.Axes],O.legend={show:!1},O.padding=(null===(w=S.chart.size)||void 0===w?void 0:w.padding)||(0,d.getPaddingByAxes)(O),null===(E=this.plugins.legend)||void 0===E||E.preInit(this,this.config.legend,O),O.height=this.clientHeight,this.options=O,O}}},4553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=t.getPosition=void 0;const s=i(46976);function n(e,t,i,n){return e>0&&t===s.DEFAULT_X_SCALE?i:e>0&&t!==s.DEFAULT_X_SCALE||e<=0&&t===s.DEFAULT_X_SCALE?0:n}t.getPosition=n,t.calculateFromTo=function(e,t,i,o){return e.map((e=>{var l,r;if(Math.abs(e)!==1/0){if(t===s.DEFAULT_X_SCALE)return Math.min(Math.max(e,i[0]),i[i.length-1]);{const i=o.scales[t];return Math.min(Math.max(e,null!==(l=i.min)&&void 0!==l?l:e),null!==(r=i.max)&&void 0!==r?r:e)}}const a=n(e,t,o.width,o.height);return o.posToVal(a,t)})).map((e=>o.valToPos(e,t,!0)))}},11213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventMouseEvents=void 0;t.preventMouseEvents=e=>e.preventDefault()},15648:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(46976),n=i(48643),o=i(50497),l=i(80152),r={[n.DrawOrderKey.Series]:0,[n.DrawOrderKey.Axes]:1,plotLines:2},a={"012":"draw",102:"draw",201:"drawClear",210:"drawClear",120:"drawAxes","021":"drawSeries"};t.default=function(e){let t=new Map;return function(i){var n;const u=null===(n=i.config.chart.appearance)||void 0===n?void 0:n.drawOrder,c=(u?u.map((e=>r[e])):[0,1,2]).join(""),d=a[c]||"drawClear";function h(e){var i;if(e.id)return e.id;return(null===(i=Array.from(t.entries()).find((([t,i])=>(0,o.deepIsEqual)(i,e))))||void 0===i?void 0:i[0])||(0,o.genId)()}function f(n){const{ctx:o}=n,{height:r,top:a,width:u,left:c}=n.bbox,d=n.data[0];for(const h of t.values()){if(!h.scale)continue;if(e.render){e.render(n,h);continue}o.save(),o.fillStyle=i.utils.colors.parse(h.color);const{scale:t,value:f}=h,p=Array.isArray(f),[g,m]=p?(0,l.calculateFromTo)(f,t,d,n):[n.valToPos(f,t,!0),0];if(p){const e=h.accent;t===s.DEFAULT_X_SCALE?(o.fillRect(g,a,m-g,r),e&&(o.fillStyle=e.color,o.fillRect(g,a-e.space,m-g,e.space))):(o.fillRect(c,g,u,m-g),e&&(o.fillStyle=e.color,o.fillRect(u+c,g,e.space,m-g)))}else{const e=h;if(o.beginPath(),t===s.DEFAULT_X_SCALE){const e=n.data[0][n.data[0].length-1];if(g-n.valToPos(e,t,!0)>0)continue;o.moveTo(g,a),o.lineTo(g,r+a)}else o.moveTo(c,g),o.lineTo(u+c,g);o.lineWidth=e.width||s.DEFAULT_CANVAS_PIXEL_RATIO,o.strokeStyle=e.color||"#000",e.dash&&o.setLineDash(e.dash),o.stroke()}o.restore()}}const p="drawSeries"===d?(e,t)=>{t===e.series.length-1&&f(e)}:f;function g(e){e?t.forEach(((i,s)=>{i.scale===e&&t.delete(s)})):t.clear()}return{get:function(){return Array.from(t.values())},clear:g,remove:function(e){for(const i of e){const e=h(i);t.delete(e)}},add:function(e){for(const i of e){const e=h(i);t.set(e,i)}},update:function(e,i){if(!e||0===e.length)return void g(i);const s=new Set;for(const n of e){const e=h(n);t.set(e,n),s.add(e)}for(const[n,o]of t.entries())i&&o.scale!==i||s.has(n)||t.delete(n)},uplot:{opts:()=>{const e=i.config;t=new Map;for(const i in e.axes)if(e.axes.hasOwnProperty(i)){const s=e.axes[i];if(s.plotLines)for(const e of s.plotLines)t.set(e.id||(0,o.genId)(),{...e,scale:i})}},hooks:{[d]:p}}}}}},16381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xs});const s="uplot",n="u-hz",o="u-vt",l="u-title",r="u-wrap",a="u-under",u="u-over",c="u-axis",d="u-off",h="u-select",f="u-cursor-x",p="u-cursor-y",g="u-cursor-pt",m="u-legend",_="u-live",v="u-inline",y="u-series",b="u-marker",w="u-label",E="u-value",S="width",x="height",A="top",T="bottom",O="left",L="right",I="#000",D=I+"0",M="mousemove",k="mousedown",C="mouseup",R="mouseenter",F="mouseleave",P="dblclick",U="change",N="dppxchange",$="--",j="undefined"!=typeof window,X=j?document:null,z=j?window:null,H=j?navigator:null;let Y,B;function V(e,t){if(null!=t){let i=e.classList;!i.contains(t)&&i.add(t)}}function W(e,t){let i=e.classList;i.contains(t)&&i.remove(t)}function G(e,t,i){e.style[t]=i+"px"}function K(e,t,i,s){let n=X.createElement(e);return null!=t&&V(n,t),null!=i&&i.insertBefore(n,s),n}function q(e,t){return K("div",e,t)}const Z=new WeakMap;function J(e,t,i,s,n){let o="translate("+t+"px,"+i+"px)";o!=Z.get(e)&&(e.style.transform=o,Z.set(e,o),t<0||i<0||t>s||i>n?V(e,d):W(e,d))}const Q=new WeakMap;function ee(e,t,i){let s=t+i;s!=Q.get(e)&&(Q.set(e,s),e.style.background=t,e.style.borderColor=i)}const te=new WeakMap;function ie(e,t,i,s){let n=t+""+i;n!=te.get(e)&&(te.set(e,n),e.style.height=i+"px",e.style.width=t+"px",e.style.marginLeft=s?-t/2+"px":0,e.style.marginTop=s?-i/2+"px":0)}const se={passive:!0},ne={...se,capture:!0};function oe(e,t,i,s){t.addEventListener(e,i,s?ne:se)}function le(e,t,i,s){t.removeEventListener(e,i,se)}function re(e,t,i,s){let n;i=i||0;let o=(s=s||t.length-1)<=2147483647;for(;s-i>1;)n=o?i+s>>1:Se((i+s)/2),t[n]<e?i=n:s=n;return e-t[i]<=t[s]-e?i:s}function ae(e,t,i,s){for(let n=1==s?t:i;n>=t&&n<=i;n+=s)if(null!=e[n])return n;return-1}function ue(e,t,i,s){let n=Ie(e),o=Ie(t);e==t&&(-1==n?(e*=i,t/=i):(e/=i,t*=i));let l=10==i?De:Me,r=1==o?Ae:Se,a=(1==n?Se:Ae)(l(Ee(e))),u=r(l(Ee(t))),c=Le(i,a),d=Le(i,u);return 10==i&&(a<0&&(c=Ge(c,-a)),u<0&&(d=Ge(d,-u))),s||2==i?(e=c*n,t=d*o):(e=We(e,c),t=Ve(t,d)),[e,t]}function ce(e,t,i,s){let n=ue(e,t,i,s);return 0==e&&(n[0]=0),0==t&&(n[1]=0),n}j&&function e(){let t=devicePixelRatio;Y!=t&&(Y=t,B&&le(U,B,e),B=matchMedia(`(min-resolution: ${Y-.001}dppx) and (max-resolution: ${Y+.001}dppx)`),oe(U,B,e),z.dispatchEvent(new CustomEvent(N)))}();const de=.1,he={mode:3,pad:de},fe={pad:0,soft:null,mode:0},pe={min:fe,max:fe};function ge(e,t,i,s){return ot(i)?_e(e,t,i):(fe.pad=i,fe.soft=s?0:null,fe.mode=s?3:0,_e(e,t,pe))}function me(e,t){return null==e?t:e}function _e(e,t,i){let s=i.min,n=i.max,o=me(s.pad,0),l=me(n.pad,0),r=me(s.hard,-Re),a=me(n.hard,Re),u=me(s.soft,Re),c=me(n.soft,-Re),d=me(s.mode,0),h=me(n.mode,0),f=t-e,p=De(f),g=Oe(Ee(e),Ee(t)),m=De(g),_=Ee(m-p);(f<1e-24||_>10)&&(f=0,0!=e&&0!=t||(f=1e-24,2==d&&u!=Re&&(o=0),2==h&&c!=-Re&&(l=0)));let v=f||g||1e3,y=De(v),b=Le(10,Se(y)),w=Ge(We(e-v*(0==f?0==e?.1:1:o),b/10),24),E=e>=u&&(1==d||3==d&&w<=u||2==d&&w>=u)?u:Re,S=Oe(r,w<E&&e>=E?E:Te(E,w)),x=Ge(Ve(t+v*(0==f?0==t?.1:1:l),b/10),24),A=t<=c&&(1==h||3==h&&x>=c||2==h&&x<=c)?c:-Re,T=Te(a,x>A&&t<=A?A:Oe(A,x));return S==T&&0==S&&(T=100),[S,T]}const ve=new Intl.NumberFormat(j?H.language:"en-US"),ye=e=>ve.format(e),be=Math,we=be.PI,Ee=be.abs,Se=be.floor,xe=be.round,Ae=be.ceil,Te=be.min,Oe=be.max,Le=be.pow,Ie=be.sign,De=be.log10,Me=be.log2,ke=(e,t=1)=>be.sinh(e)*t,Ce=(e,t=1)=>be.asinh(e/t),Re=1/0;function Fe(e){return 1+(0|De((e^e>>31)-(e>>31)))}function Pe(e,t,i){return Te(Oe(e,t),i)}function Ue(e){return"function"==typeof e?e:()=>e}const Ne=e=>e,$e=(e,t)=>t,je=e=>null,Xe=e=>!0,ze=(e,t)=>e==t,He=/\.\d*?(?=9{6,}|0{6,})/gm,Ye=e=>{if(it(e)||Ke.has(e))return e;const t=`${e}`,i=t.match(He);if(null==i)return e;let s=i[0].length-1;if(-1!=t.indexOf("e-")){let[e,i]=t.split("e");return+`${Ye(e)}e${i}`}return Ge(e,s)};function Be(e,t){return Ye(Ge(Ye(e/t))*t)}function Ve(e,t){return Ye(Ae(Ye(e/t))*t)}function We(e,t){return Ye(Se(Ye(e/t))*t)}function Ge(e,t=0){if(it(e))return e;let i=10**t,s=e*i*(1+Number.EPSILON);return xe(s)/i}const Ke=new Map;function qe(e){return((""+e).split(".")[1]||"").length}function Ze(e,t,i,s){let n=[],o=s.map(qe);for(let l=t;l<i;l++){let t=Ee(l),i=Ge(Le(e,l),t);for(let r=0;r<s.length;r++){let a=10==e?+`${s[r]}e${l}`:s[r]*i,u=(l>=0?0:t)+(l>=o[r]?0:o[r]),c=10==e?a:Ge(a,u);n.push(c),Ke.set(c,u)}}return n}const Je={},Qe=[],et=[null,null],tt=Array.isArray,it=Number.isInteger,st=e=>void 0===e;function nt(e){return"string"==typeof e}function ot(e){let t=!1;if(null!=e){let i=e.constructor;t=null==i||i==Object}return t}function lt(e){return null!=e&&"object"==typeof e}const rt=Object.getPrototypeOf(Uint8Array),at="__proto__";function ut(e,t=ot){let i;if(tt(e)){let s=e.find((e=>null!=e));if(tt(s)||t(s)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=ut(e[s],t)}else i=e.slice()}else if(e instanceof rt)i=e.slice();else if(t(e)){i={};for(let s in e)s!=at&&(i[s]=ut(e[s],t))}else i=e;return i}function ct(e){let t=arguments;for(let i=1;i<t.length;i++){let s=t[i];for(let t in s)t!=at&&(ot(e[t])?ct(e[t],ut(s[t])):e[t]=ut(s[t]))}return e}function dt(e,t,i){for(let s,n=0,o=-1;n<t.length;n++){let l=t[n];if(l>o){for(s=l-1;s>=0&&null==e[s];)e[s--]=null;for(s=l+1;s<i&&null==e[s];)e[o=s++]=null}}}const ht="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask;const ft=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(e){return e.slice(0,3)}const mt=pt.map(gt),_t=ft.map(gt),vt={MMMM:ft,MMM:_t,WWWW:pt,WWW:mt};function yt(e){return(e<10?"0":"")+e}const bt={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>yt(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>yt(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>yt(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>yt(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>yt(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function wt(e,t){t=t||vt;let i,s=[],n=/\{([a-z]+)\}|[^{]+/gi;for(;i=n.exec(e);)s.push("{"==i[0][0]?bt[i[1]]:i[0]);return e=>{let i="";for(let n=0;n<s.length;n++)i+="string"==typeof s[n]?s[n]:s[n](e,t);return i}}const Et=(new Intl.DateTimeFormat).resolvedOptions().timeZone;const St=e=>e%1==0,xt=[1,2,2.5,5],At=Ze(10,-32,0,xt),Tt=Ze(10,0,32,xt),Ot=Tt.filter(St),Lt=At.concat(Tt),It="{YYYY}",Dt="\n"+It,Mt="{M}/{D}",kt="\n"+Mt,Ct=kt+"/{YY}",Rt="{aa}",Ft="{h}:{mm}"+Rt,Pt="\n"+Ft,Ut=":{ss}",Nt=null;function $t(e){let t=1e3*e,i=60*t,s=60*i,n=24*s,o=30*n,l=365*n;return[(1==e?Ze(10,0,3,xt).filter(St):Ze(10,-3,0,xt)).concat([t,5*t,10*t,15*t,30*t,i,5*i,10*i,15*i,30*i,s,2*s,3*s,4*s,6*s,8*s,12*s,n,2*n,3*n,4*n,5*n,6*n,7*n,8*n,9*n,10*n,15*n,o,2*o,3*o,4*o,6*o,l,2*l,5*l,10*l,25*l,50*l,100*l]),[[l,It,Nt,Nt,Nt,Nt,Nt,Nt,1],[28*n,"{MMM}",Dt,Nt,Nt,Nt,Nt,Nt,1],[n,Mt,Dt,Nt,Nt,Nt,Nt,Nt,1],[s,"{h}"+Rt,Ct,Nt,kt,Nt,Nt,Nt,1],[i,Ft,Ct,Nt,kt,Nt,Nt,Nt,1],[t,Ut,Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1],[e,Ut+".{fff}",Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1]],function(t){return(r,a,u,c,d,h)=>{let f=[],p=d>=l,g=d>=o&&d<l,m=t(u),_=Ge(m*e,3),v=Gt(m.getFullYear(),p?0:m.getMonth(),g||p?1:m.getDate()),y=Ge(v*e,3);if(g||p){let i=g?d/o:0,s=p?d/l:0,n=_==y?_:Ge(Gt(v.getFullYear()+s,v.getMonth()+i,1)*e,3),r=new Date(xe(n/e)),a=r.getFullYear(),u=r.getMonth();for(let o=0;n<=c;o++){let l=Gt(a+s*o,u+i*o,1),r=l-t(Ge(l*e,3));n=Ge((+l+r)*e,3),n<=c&&f.push(n)}}else{let o=d>=n?n:d,l=y+(Se(u)-Se(_))+Ve(_-y,o);f.push(l);let p=t(l),g=p.getHours()+p.getMinutes()/i+p.getSeconds()/s,m=d/s,v=h/r.axes[a]._space;for(;l=Ge(l+d,1==e?0:3),!(l>c);)if(m>1){let e=Se(Ge(g+m,6))%24,i=t(l).getHours()-e;i>1&&(i=-1),l-=i*s,g=(g+m)%24,Ge((l-f[f.length-1])/d,3)*v>=.7&&f.push(l)}else f.push(l)}return f}}]}const[jt,Xt,zt]=$t(1),[Ht,Yt,Bt]=$t(.001);function Vt(e,t){return e.map((e=>e.map(((i,s)=>0==s||8==s||null==i?i:t(1==s||0==e[8]?i:e[1]+i)))))}function Wt(e,t){return(i,s,n,o,l)=>{let r,a,u,c,d,h,f=t.find((e=>l>=e[0]))||t[t.length-1];return s.map((t=>{let i=e(t),s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),l=i.getHours(),p=i.getMinutes(),g=i.getSeconds(),m=s!=r&&f[2]||n!=a&&f[3]||o!=u&&f[4]||l!=c&&f[5]||p!=d&&f[6]||g!=h&&f[7]||f[1];return r=s,a=n,u=o,c=l,d=p,h=g,m(i)}))}}function Gt(e,t,i){return new Date(e,t,i)}function Kt(e,t){return t(e)}Ze(2,-53,53,[1]);const qt="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zt(e,t){return(i,s,n,o)=>null==o?$:t(e(s))}const Jt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let i=e.series[t];return i.width?i.stroke(e,t):i.points.width?i.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Qt=[0,0];function ei(e,t,i,s=!0){return e=>{0==e.button&&(!s||e.target==t)&&i(e)}}function ti(e,t,i,s=!0){return e=>{(!s||e.target==t)&&i(e)}}const ii={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,i){return Qt[0]=t,Qt[1]=i,Qt},points:{one:!1,show:function(e,t){let i=e.cursor.points,s=q(),n=i.size(e,t);G(s,S,n),G(s,x,n);let o=n/-2;G(s,"marginLeft",o),G(s,"marginTop",o);let l=i.width(e,t,n);return l&&G(s,"borderWidth",l),s},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let i=e.series[t].points;return i._stroke||i._fill},fill:function(e,t){let i=e.series[t].points;return i._fill||i._stroke}},bind:{mousedown:ei,mouseup:ei,click:ei,dblclick:ei,mousemove:ti,mouseleave:ti,mouseenter:ti},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,i,s,n)=>s-n,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},si={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ni=ct({},si,{filter:$e}),oi=ct({},ni,{size:10}),li=ct({},si,{show:!1}),ri='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ai="bold "+ri,ui={show:!0,scale:"x",stroke:I,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:2,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0},ci="Value",di="Time",hi={show:!0,scale:"x",auto:!1,sorted:1,min:Re,max:-Re,idxs:[]};function fi(e,t,i,s,n){return t.map((e=>null==e?"":ye(e)))}function pi(e,t,i,s,n,o,l){let r=[],a=Ke.get(n)||0;for(let u=i=l?i:Ge(Ve(i,n),a);u<=s;u=Ge(u+n,a))r.push(Object.is(u,-0)?0:u);return r}function gi(e,t,i,s,n,o,l){const r=[],a=e.scales[e.axes[t].scale].log,u=Se((10==a?De:Me)(i));n=Le(a,u),10==a&&(n=Lt[re(n,Lt)]);let c=i,d=n*a;10==a&&(d=Lt[re(d,Lt)]);do{r.push(c),c+=n,10!=a||Ke.has(c)||(c=Ge(c,Ke.get(n))),c>=d&&(d=(n=c)*a,10==a&&(d=Lt[re(d,Lt)]))}while(c<=s);return r}function mi(e,t,i,s,n,o,l){let r=e.scales[e.axes[t].scale].asinh,a=s>r?gi(e,t,Oe(r,i),s,n):[r],u=s>=0&&i<=0?[0]:[];return(i<-r?gi(e,t,Oe(r,-s),-i,n):[r]).reverse().map((e=>-e)).concat(u,a)}const _i=/./,vi=/[12357]/,yi=/[125]/,bi=/1/,wi=(e,t,i,s)=>e.map(((e,n)=>4==t&&0==e||n%s==0&&i.test(e.toExponential()[e<0?1:0])?e:null));function Ei(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=e.scales[l],a=e.valToPos,u=o._space,c=a(10,l),d=a(9,l)-c>=u?_i:a(7,l)-c>=u?vi:a(5,l)-c>=u?yi:bi;if(d==bi){let e=Ee(a(1,l)-c);if(e<u)return wi(t.slice().reverse(),r.distr,d,Ae(u/e)).reverse()}return wi(t,r.distr,d,1)}function Si(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=o._space,a=e.valToPos,u=Ee(a(1,l)-a(2,l));return u<r?wi(t.slice().reverse(),3,_i,Ae(r/u)).reverse():t}function xi(e,t,i,s){return null==s?$:null==t?"":ye(t)}const Ai={show:!0,scale:"y",stroke:I,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:3,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0};const Ti={scale:null,auto:!0,sorted:0,min:Re,max:-Re},Oi=(e,t,i,s,n)=>n,Li={show:!0,auto:!0,sorted:0,gaps:Oi,alpha:1,facets:[ct({},Ti,{scale:"x"}),ct({},Ti,{scale:"y"})]},Ii={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Oi,alpha:1,points:{show:function(e,t){let{scale:i,idxs:s}=e.series[0],n=e._data[0],o=e.valToPos(n[s[0]],i,!0),l=e.valToPos(n[s[1]],i,!0),r=Ee(l-o)/(e.series[t].points.space*Y);return s[1]-s[0]<=r},filter:null},values:null,min:Re,max:-Re,idxs:[],path:null,clip:null};function Di(e,t,i,s,n){return i/10}const Mi={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ki=ct({},Mi,{time:!1,ori:1}),Ci={};function Ri(e,t){let i=Ci[e];return i||(i={key:e,plots:[],sub(e){i.plots.push(e)},unsub(e){i.plots=i.plots.filter((t=>t!=e))},pub(e,t,s,n,o,l,r){for(let a=0;a<i.plots.length;a++)i.plots[a]!=t&&i.plots[a].pub(e,t,s,n,o,l,r)}},null!=e&&(Ci[e]=i)),i}const Fi=1,Pi=2;function Ui(e,t,i){const s=e.mode,n=e.series[t],o=2==s?e._data[t]:e._data,l=e.scales,r=e.bbox;let a=o[0],u=2==s?o[1]:o[t],c=2==s?l[n.facets[0].scale]:l[e.series[0].scale],d=2==s?l[n.facets[1].scale]:l[n.scale],h=r.left,f=r.top,p=r.width,g=r.height,m=e.valToPosH,_=e.valToPosV;return 0==c.ori?i(n,a,u,c,d,m,_,h,f,p,g,Bi,Wi,Ki,Zi,Qi):i(n,a,u,c,d,_,m,f,h,g,p,Vi,Gi,qi,Ji,es)}function Ni(e,t){let i=0,s=0,n=me(e.bands,Qe);for(let o=0;o<n.length;o++){let e=n[o];e.series[0]==t?i=e.dir:e.series[1]==t&&(1==e.dir?s|=1:s|=2)}return[i,1==s?-1:2==s?1:3==s?2:0]}function $i(e,t,i,s,n){let o=e.mode,l=e.series[t],r=2==o?l.facets[1].scale:l.scale,a=e.scales[r];return-1==n?a.min:1==n?a.max:3==a.distr?1==a.dir?a.min:a.max:0}function ji(e,t,i,s,n,o){return Ui(e,t,((e,t,l,r,a,u,c,d,h,f,p)=>{let g=e.pxRound;const m=r.dir*(0==r.ori?1:-1),_=0==r.ori?Wi:Gi;let v,y;1==m?(v=i,y=s):(v=s,y=i);let b=g(u(t[v],r,f,d)),w=g(c(l[v],a,p,h)),E=g(u(t[y],r,f,d)),S=g(c(1==o?a.max:a.min,a,p,h)),x=new Path2D(n);return _(x,E,S),_(x,b,S),_(x,b,w),x}))}function Xi(e,t,i,s,n,o){let l=null;if(e.length>0){l=new Path2D;const r=0==t?Ki:qi;let a=i;for(let t=0;t<e.length;t++){let i=e[t];if(i[1]>i[0]){let e=i[0]-a;e>0&&r(l,a,s,e,s+o),a=i[1]}}let u=i+n-a,c=10;u>0&&r(l,a,s-c/2,u,s+o+c)}return l}function zi(e,t,i,s,n,o,l){let r=[],a=e.length;for(let u=1==n?i:s;u>=i&&u<=s;u+=n){if(null===t[u]){let c=u,d=u;if(1==n)for(;++u<=s&&null===t[u];)d=u;else for(;--u>=i&&null===t[u];)d=u;let h=o(e[c]),f=d==c?h:o(e[d]),p=c-n;h=l<=0&&p>=0&&p<a?o(e[p]):h;let g=d+n;f=l>=0&&g>=0&&g<a?o(e[g]):f,f>=h&&r.push([h,f])}}return r}function Hi(e){return 0==e?Ne:1==e?xe:t=>Be(t,e)}function Yi(e){let t=0==e?Bi:Vi,i=0==e?(e,t,i,s,n,o)=>{e.arcTo(t,i,s,n,o)}:(e,t,i,s,n,o)=>{e.arcTo(i,t,n,s,o)},s=0==e?(e,t,i,s,n)=>{e.rect(t,i,s,n)}:(e,t,i,s,n)=>{e.rect(i,t,n,s)};return(e,n,o,l,r,a=0,u=0)=>{0==a&&0==u?s(e,n,o,l,r):(a=Te(a,l/2,r/2),u=Te(u,l/2,r/2),t(e,n+a,o),i(e,n+l,o,n+l,o+r,a),i(e,n+l,o+r,n,o+r,u),i(e,n,o+r,n,o,u),i(e,n,o,n+l,o,a),e.closePath())}}const Bi=(e,t,i)=>{e.moveTo(t,i)},Vi=(e,t,i)=>{e.moveTo(i,t)},Wi=(e,t,i)=>{e.lineTo(t,i)},Gi=(e,t,i)=>{e.lineTo(i,t)},Ki=Yi(0),qi=Yi(1),Zi=(e,t,i,s,n,o)=>{e.arc(t,i,s,n,o)},Ji=(e,t,i,s,n,o)=>{e.arc(i,t,s,n,o)},Qi=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(t,i,s,n,o,l)},es=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(i,t,n,s,l,o)};function ts(e){return(e,t,i,s,n)=>Ui(e,t,((t,o,l,r,a,u,c,d,h,f,p)=>{let g,m,{pxRound:_,points:v}=t;0==r.ori?(g=Bi,m=Zi):(g=Vi,m=Ji);const y=Ge(v.width*Y,3);let b=(v.size-v.width)/2*Y,w=Ge(2*b,3),E=new Path2D,S=new Path2D,{left:x,top:A,width:T,height:O}=e.bbox;Ki(S,x-w,A-w,T+2*w,O+2*w);const L=e=>{if(null!=l[e]){let t=_(u(o[e],r,f,d)),i=_(c(l[e],a,p,h));g(E,t+b,i),m(E,t,i,b,0,2*we)}};if(n)n.forEach(L);else for(let e=i;e<=s;e++)L(e);return{stroke:y>0?E:null,fill:E,clip:S,flags:Fi|Pi}}))}function is(e){return(t,i,s,n,o,l)=>{s!=n&&(o!=s&&l!=s&&e(t,i,s),o!=n&&l!=n&&e(t,i,n),e(t,i,l))}}const ss=is(Wi),ns=is(Gi);function os(e){const t=me(e?.alignGaps,0);return(e,i,s,n)=>Ui(e,i,((o,l,r,a,u,c,d,h,f,p,g)=>{let m,_,v=o.pxRound,y=e=>v(c(e,a,p,h)),b=e=>v(d(e,u,g,f));0==a.ori?(m=Wi,_=ss):(m=Gi,_=ns);const w=a.dir*(0==a.ori?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},S=E.stroke;let x,A,T,O=Re,L=-Re,I=y(l[1==w?s:n]),D=ae(r,s,n,1*w),M=ae(r,s,n,-1*w),k=y(l[D]),C=y(l[M]),R=!1;for(let e=1==w?s:n;e>=s&&e<=n;e+=w){let t=y(l[e]),i=r[e];t==I?null!=i?(A=b(i),O==Re&&(m(S,t,A),x=A),O=Te(A,O),L=Oe(A,L)):null===i&&(R=!0):(O!=Re&&(_(S,I,O,L,x,A),T=I),null!=i?(A=b(i),m(S,t,A),O=L=x=A):(O=Re,L=-Re,null===i&&(R=!0)),I=t)}O!=Re&&O!=L&&T!=I&&_(S,I,O,L,x,A);let[F,P]=Ni(e,i);if(null!=o.fill||0!=F){let t=E.fill=new Path2D(S),s=b(o.fillTo(e,i,o.min,o.max,F));m(t,C,s),m(t,k,s)}if(!o.spanGaps){let u=[];R&&u.push(...zi(l,r,s,n,w,y,t)),E.gaps=u=o.gaps(e,i,s,n,u),E.clip=Xi(u,a.ori,h,f,p,g)}return 0!=P&&(E.band=2==P?[ji(e,i,s,n,S,-1),ji(e,i,s,n,S,1)]:ji(e,i,s,n,S,P)),E}))}function ls(e,t,i,s,n,o,l=Re){if(e.length>1){let r=null;for(let a=0,u=1/0;a<e.length;a++)if(void 0!==t[a]){if(null!=r){let t=Ee(e[a]-e[r]);t<u&&(u=t,l=Ee(i(e[a],s,n,o)-i(e[r],s,n,o)))}r=a}}return l}function rs(e,t,i,s,n,o){const l=e.length;if(l<2)return null;const r=new Path2D;if(i(r,e[0],t[0]),2==l)s(r,e[1],t[1]);else{let i=Array(l),s=Array(l-1),o=Array(l-1),a=Array(l-1);for(let n=0;n<l-1;n++)o[n]=t[n+1]-t[n],a[n]=e[n+1]-e[n],s[n]=o[n]/a[n];i[0]=s[0];for(let e=1;e<l-1;e++)0===s[e]||0===s[e-1]||s[e-1]>0!==s[e]>0?i[e]=0:(i[e]=3*(a[e-1]+a[e])/((2*a[e]+a[e-1])/s[e-1]+(a[e]+2*a[e-1])/s[e]),isFinite(i[e])||(i[e]=0));i[l-1]=s[l-2];for(let u=0;u<l-1;u++)n(r,e[u]+a[u]/3,t[u]+i[u]*a[u]/3,e[u+1]-a[u]/3,t[u+1]-i[u+1]*a[u]/3,e[u+1],t[u+1])}return r}const as=new Set;function us(){for(let e of as)e.syncRect(!0)}j&&(oe("resize",z,us),oe("scroll",z,us,!0),oe(N,z,(()=>{xs.pxRatio=Y})));const cs=os(),ds=ts();function hs(e,t,i,s){return(s?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,s)=>fs(e,s,t,i)))}function fs(e,t,i,s){return ct({},0==t?i:s,e)}function ps(e,t,i){return null==t?et:[t,i]}const gs=ps;function ms(e,t,i){return null==t?et:ge(t,i,de,!0)}function _s(e,t,i,s){return null==t?et:ue(t,i,e.scales[s].log,!1)}const vs=_s;function ys(e,t,i,s){return null==t?et:ce(t,i,e.scales[s].log,!1)}const bs=ys;function ws(e,t,i,s,n){let o=Oe(Fe(e),Fe(t)),l=t-e,r=re(n/s*l,i);do{let e=i[r],t=s*e/l;if(t>=n&&o+(e<5?Ke.get(e):0)<=17)return[e,t]}while(++r<i.length);return[0,0]}function Es(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(t=xe((i=+s)*Y))+"px")),t,i]}function Ss(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ge(e[2]*Y,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function xs(e,t,i){const I={mode:me(e.mode,1)},U=I.mode;function j(e,t){return((3==t.distr?De(e>0?e:t.clamp(I,e,t.min,t.max,t.key)):4==t.distr?Ce(e,t.asinh):100==t.distr?t.fwd(e):e)-t._min)/(t._max-t._min)}function H(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?1-n:n)}function B(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?n:1-n)}function Z(e,t,i,s){return 0==t.ori?H(e,t,i,s):B(e,t,i,s)}I.valToPosH=H,I.valToPosV=B;let Q=!1;I.status=0;const te=I.root=q(s);if(null!=e.id&&(te.id=e.id),V(te,e.class),e.title){q(l,te).textContent=e.title}const se=K("canvas"),ne=I.ctx=se.getContext("2d"),ae=q(r,te);oe("click",ae,(e=>{if(e.target===pe){(an!=nn||un!=on)&&vn.click(I,e)}}),!0);const fe=I.under=q(a,ae);ae.appendChild(se);const pe=I.over=q(u,ae),_e=+me((e=ut(e)).pxAlign,1),ve=Hi(_e);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(I,e)||e)}));const ye=e.ms||.001,be=I.series=1==U?hs(e.series||[],hi,Ii,!1):(Se=e.series||[null],Ie=Li,Se.map(((e,t)=>0==t?{}:ct({},Ie,e))));var Se,Ie;const Me=I.axes=hs(e.axes||[],ui,Ai,!0),Fe=I.scales={},Ne=I.bands=e.bands||[];Ne.forEach((e=>{e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1)}));const He=2==U?be[1].facets[0].scale:be[0].scale,Ye={axes:function(){for(let e=0;e<Me.length;e++){let t=Me[e];if(!t.show||!t._show)continue;let i,s,n=t.side,o=n%2,l=t.stroke(I,e),r=0==n||3==n?-1:1;if(t.label){let e=t.labelGap*r,a=xe((t._lpos+e)*Y);Ns(t.labelFont[0],l,"center",2==n?A:T),ne.save(),1==o?(i=s=0,ne.translate(a,xe(_i+yi/2)),ne.rotate((3==n?-we:we)/2)):(i=xe(ai+vi/2),s=a),ne.fillText(t.label,i,s),ne.restore()}let[a,u]=t._found;if(0==u)continue;let c=Fe[t.scale],d=0==o?vi:yi,h=0==o?ai:_i,f=xe(t.gap*Y),p=t._splits,g=2==c.distr?p.map((e=>Cs[e])):p,m=2==c.distr?Cs[p[1]]-Cs[p[0]]:a,_=t.ticks,v=t.border,y=_.show?xe(_.size*Y):0,b=t._rotate*-we/180,w=ve(t._pos*Y),E=w+(y+f)*r;s=0==o?E:0,i=1==o?E:0,Ns(t.font[0],l,1==t.align?O:2==t.align?L:b>0?O:b<0?L:0==o?"center":3==n?L:O,b||1==o?"middle":2==n?A:T);let S=t.font[1]*t.lineGap,x=p.map((e=>ve(Z(e,c,d,h)))),D=t._values;for(let e=0;e<D.length;e++){let t=D[e];if(null!=t){0==o?i=x[e]:s=x[e],t=""+t;let n=-1==t.indexOf("\n")?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];b?(ne.save(),ne.translate(i,s+e*S),ne.rotate(b),ne.fillText(t,0,0),ne.restore()):ne.fillText(t,i,s+e*S)}}}_.show&&Ws(x,_.filter(I,g,e,u,m),o,n,w,y,Ge(_.width*Y,3),_.stroke(I,e),_.dash,_.cap);let M=t.grid;M.show&&Ws(x,M.filter(I,g,e,u,m),o,0==o?2:1,0==o?_i:ai,0==o?yi:vi,Ge(M.width*Y,3),M.stroke(I,e),M.dash,M.cap),v.show&&Ws([w],[1],0==o?1:0,0==o?1:2,1==o?_i:ai,1==o?yi:vi,Ge(v.width*Y,3),v.stroke(I,e),v.dash,v.cap)}eo("drawAxes")},series:function(){ns>0&&(be.forEach(((e,i)=>{if(i>0&&e.show&&(Xs(i,!1),Xs(i,!0),null==e._paths)){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha);let s=2==U?[0,t[i][0].length-1]:function(e){let t=Pe(os-1,0,ns-1),i=Pe(ls+1,0,ns-1);for(;null==e[t]&&t>0;)t--;for(;null==e[i]&&i<ns-1;)i++;return[t,i]}(t[i]);e._paths=e.paths(I,i,s[0],s[1]),1!=ks&&(ne.globalAlpha=ks=1)}})),be.forEach(((e,t)=>{if(t>0&&e.show){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha),null!=e._paths&&zs(t,!1);{let i=null!=e._paths?e._paths.gaps:null,s=e.points.show(I,t,os,ls,i),n=e.points.filter(I,t,s,i);(s||n)&&(e.points._paths=e.points.paths(I,t,os,ls,n),zs(t,!0))}1!=ks&&(ne.globalAlpha=ks=1),eo("drawSeries",t)}})))}},Ve=(e.drawOrder||["axes","series"]).map((e=>Ye[e]));function We(t){let i=Fe[t];if(null==i){let s=(e.scales||Je)[t]||Je;if(null!=s.from)We(s.from),Fe[t]=ct({},Fe[s.from],s,{key:t});else{i=Fe[t]=ct({},t==He?Mi:ki,s),i.key=t;let e=i.time,n=i.range,o=tt(n);if((t!=He||2==U&&!e)&&(!o||null!=n[0]&&null!=n[1]||(n={min:null==n[0]?he:{mode:1,hard:n[0],soft:n[0]},max:null==n[1]?he:{mode:1,hard:n[1],soft:n[1]}},o=!1),!o&&ot(n))){let e=n;n=(t,i,s)=>null==i?et:ge(i,s,e)}i.range=Ue(n||(e?gs:t==He?3==i.distr?vs:4==i.distr?bs:ps:3==i.distr?_s:4==i.distr?ys:ms)),i.auto=Ue(!o&&i.auto),i.clamp=Ue(i.clamp||Di),i._min=i._max=null}}}We("x"),We("y"),1==U&&be.forEach((e=>{We(e.scale)})),Me.forEach((e=>{We(e.scale)}));for(let s in e.scales)We(s);const Ze=Fe[He],it=Ze.distr;let rt,at;0==Ze.ori?(V(te,n),rt=H,at=B):(V(te,o),rt=B,at=H);const dt={};for(let s in Fe){let e=Fe[s];null==e.min&&null==e.max||(dt[s]={min:e.min,max:e.max},e.min=e.max=null)}const ft=e.tzDate||(e=>new Date(xe(e/ye))),pt=e.fmtDate||wt,gt=1==ye?zt(ft):Bt(ft),mt=Wt(ft,Vt(1==ye?Xt:Yt,pt)),_t=Zt(ft,Kt(qt,pt)),vt=[],yt=I.legend=ct({},Jt,e.legend),bt=yt.show,Et=yt.markers;let St,xt,At;yt.idxs=vt,Et.width=Ue(Et.width),Et.dash=Ue(Et.dash),Et.stroke=Ue(Et.stroke),Et.fill=Ue(Et.fill);let Tt,It=[],Dt=[],Mt=!1,kt={};if(yt.live){const e=be[1]?be[1].values:null;Mt=null!=e,Tt=Mt?e(I,1,0):{_:0};for(let t in Tt)kt[t]=$}if(bt)if(St=K("table",m,te),At=K("tbody",null,St),yt.mount(I,St),Mt){xt=K("thead",null,St,At);let e=K("tr",null,xt);for(var Ct in K("th",null,e),Tt)K("th",w,e).textContent=Ct}else V(St,v),yt.live&&V(St,_);const Rt={show:!0},Ft={show:!1};const Pt=new Map;function Ut(e,t,i,s=!0){const n=Pt.get(t)||{},o=zi.bind[e](I,t,i,s);o&&(oe(e,t,n[e]=o),Pt.set(t,n))}function Nt(e,t,i){const s=Pt.get(t)||{};for(let n in s)null!=e&&n!=e||(le(n,t,s[n]),delete s[n]);null==e&&Pt.delete(t)}let $t=0,Gt=0,Qt=0,ei=0,ti=0,si=0,ni=ti,oi=si,li=Qt,ri=ei,ai=0,_i=0,vi=0,yi=0;I.bbox={};let bi=!1,wi=!1,Ti=!1,Oi=!1,Ci=!1,Ui=!1;function Ni(e,t,i){(i||e!=I.width||t!=I.height)&&ji(e,t),qs(!1),Ti=!0,wi=!0,pn()}function ji(e,t){I.width=$t=Qt=e,I.height=Gt=ei=t,ti=si=0,function(){let e=!1,t=!1,i=!1,s=!1;Me.forEach(((n,o)=>{if(n.show&&n._show){let{side:o,_size:l}=n,r=o%2,a=l+(null!=n.label?n.labelSize:0);a>0&&(r?(Qt-=a,3==o?(ti+=a,s=!0):i=!0):(ei-=a,0==o?(si+=a,e=!0):t=!0))}})),es[0]=e,es[1]=i,es[2]=t,es[3]=s,Qt-=ss[1]+ss[3],ti+=ss[3],ei-=ss[2]+ss[0],si+=ss[0]}(),function(){let e=ti+Qt,t=si+ei,i=ti,s=si;function n(n,o){switch(n){case 1:return e+=o,e-o;case 2:return t+=o,t-o;case 3:return i-=o,i+o;case 0:return s-=o,s+o}}Me.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=n(t,e._size),null!=e.label&&(e._lpos=n(t,e.labelSize))}}))}();let i=I.bbox;ai=i.left=Be(ti*Y,.5),_i=i.top=Be(si*Y,.5),vi=i.width=Be(Qt*Y,.5),yi=i.height=Be(ei*Y,.5)}const Xi=3;I.setSize=function({width:e,height:t}){Ni(e,t)};const zi=I.cursor=ct({},ii,{drag:{y:2==U}},e.cursor);if(null==zi.dataIdx){let e=zi.hover,i=e.skip=new Set(e.skip??[]);i.add(void 0);let s=e.prox=Ue(e.prox),n=e.bias??=0;zi.dataIdx=(e,o,l,r)=>{if(0==o)return l;let a=l,u=s(e,o,l,r)??Re,c=u>=0&&u<Re,d=0==Ze.ori?Qt:ei,h=zi.left,f=t[0],p=t[o];if(i.has(p[l])){a=null;let e,t=null,s=null;if(0==n||-1==n)for(e=l;null==t&&e-- >0;)i.has(p[e])||(t=e);if(0==n||1==n)for(e=l;null==s&&e++<p.length;)i.has(p[e])||(s=e);if(null!=t||null!=s)if(c){let e=h-(null==t?-1/0:rt(f[t],Ze,d,0)),i=(null==s?1/0:rt(f[s],Ze,d,0))-h;e<=i?e<=u&&(a=t):i<=u&&(a=s)}else a=null==s?t:null==t?s:l-t<=s-l?t:s}else if(c){Ee(h-rt(f[l],Ze,d,0))>u&&(a=null)}return a}}const Yi=e=>{zi.event=e};zi.idxs=vt,zi._lock=!1;let Bi=zi.points;Bi.show=Ue(Bi.show),Bi.size=Ue(Bi.size),Bi.stroke=Ue(Bi.stroke),Bi.width=Ue(Bi.width),Bi.fill=Ue(Bi.fill);const Vi=I.focus=ct({},e.focus||{alpha:.3},zi.focus),Wi=Vi.prox>=0,Gi=Wi&&Bi.one;let Ki=[],qi=[],Zi=[];function Ji(e,t){let i=Bi.show(I,t);if(i)return V(i,g),V(i,e.class),J(i,-10,-10,Qt,ei),pe.insertBefore(i,Ki[t]),i}function Qi(e,t){if(1==U||t>0){let t=1==U&&Fe[e.scale].time,i=e.value;e.value=t?nt(i)?Zt(ft,Kt(i,pt)):i||_t:i||xi,e.label=e.label||(t?di:ci)}if(Gi||t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||cs||je,e.fillTo=Ue(e.fillTo||$i),e.pxAlign=+me(e.pxAlign,_e),e.pxRound=Hi(e.pxAlign),e.stroke=Ue(e.stroke||null),e.fill=Ue(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ge((3+2*(Oe(1,e.width)||1))*1,3),i=e.points=ct({},{size:t,width:Oe(1,.2*t),stroke:e.stroke,space:2*t,paths:ds,_stroke:null,_fill:null},e.points);i.show=Ue(i.show),i.filter=Ue(i.filter),i.fill=Ue(i.fill),i.stroke=Ue(i.stroke),i.paths=Ue(i.paths),i.pxAlign=e.pxAlign}if(bt){let i=function(e,t){if(0==t&&(Mt||!yt.live||2==U))return et;let i=[],s=K("tr",y,At,At.childNodes[t]);V(s,e.class),e.show||V(s,d);let n=K("th",null,s);if(Et.show){let e=q(b,n);if(t>0){let i=Et.width(I,t);i&&(e.style.border=i+"px "+Et.dash(I,t)+" "+Et.stroke(I,t)),e.style.background=Et.fill(I,t)}}let o=q(w,n);for(var l in o.textContent=e.label,t>0&&(Et.show||(o.style.color=e.width>0?Et.stroke(I,t):Et.fill(I,t)),Ut("click",n,(t=>{if(zi._lock)return;Yi(t);let i=be.indexOf(e);if((t.ctrlKey||t.metaKey)!=yt.isolate){let e=be.some(((e,t)=>t>0&&t!=i&&e.show));be.forEach(((t,s)=>{s>0&&An(s,e?s==i?Rt:Ft:Rt,!0,io.setSeries)}))}else An(i,{show:!e.show},!0,io.setSeries)}),!1),Wi&&Ut(R,n,(t=>{zi._lock||(Yi(t),An(be.indexOf(e),In,!0,io.setSeries))}),!1)),Tt){let e=K("td",E,s);e.textContent="--",i.push(e)}return[s,i]}(e,t);It.splice(t,0,i[0]),Dt.splice(t,0,i[1]),yt.values.push(null)}if(zi.show){vt.splice(t,0,null);let i=null;Gi?0==t&&(i=Ji(e,t)):t>0&&(i=Ji(e,t)),Ki.splice(t,0,i),qi.splice(t,0,0),Zi.splice(t,0,0)}eo("addSeries",t)}I.addSeries=function(e,t){t=null==t?be.length:t,e=1==U?fs(e,t,hi,Ii):fs(e,t,{},Li),be.splice(t,0,e),Qi(be[t],t)},I.delSeries=function(e){if(be.splice(e,1),bt){yt.values.splice(e,1),Dt.splice(e,1);let t=It.splice(e,1)[0];Nt(null,t.firstChild),t.remove()}zi.show&&(vt.splice(e,1),Ki.splice(e,1)[0].remove(),qi.splice(e,1),Zi.splice(e,1)),eo("delSeries",e)};const es=[!1,!1,!1,!1];function ts(e,t,i,s){let[n,o,l,r]=i,a=t%2,u=0;return 0==a&&(r||o)&&(u=0==t&&!n||2==t&&!l?xe(ui.size/3):0),1==a&&(n||l)&&(u=1==t&&!o||3==t&&!r?xe(Ai.size/2):0),u}const is=I.padding=(e.padding||[ts,ts,ts,ts]).map((e=>Ue(me(e,ts)))),ss=I._padding=is.map(((e,t)=>e(I,t,es,0)));let ns,os=null,ls=null;const rs=1==U?be[0].idxs:null;let us,xs,As,Ts,Os,Ls,Is,Ds,Ms,ks,Cs=null,Rs=!1;function Fs(e,i){if(t=null==e?[]:e,I.data=I._data=t,2==U){ns=0;for(let e=1;e<be.length;e++)ns+=t[e][0].length}else{0==t.length&&(I.data=I._data=t=[[]]),Cs=t[0],ns=Cs.length;let e=t;if(2==it){e=t.slice();let i=e[0]=Array(ns);for(let e=0;e<ns;e++)i[e]=e}I._data=t=e}if(qs(!0),eo("setData"),2==it&&(Ti=!0),!1!==i){let e=Ze;e.auto(I,Rs)?Ps():xn(He,e.min,e.max),Oi=Oi||zi.left>=0,Ui=!0,pn()}}function Ps(){let e,i;Rs=!0,1==U&&(ns>0?(os=rs[0]=0,ls=rs[1]=ns-1,e=t[0][os],i=t[0][ls],2==it?(e=os,i=ls):e==i&&(3==it?[e,i]=ue(e,e,Ze.log,!1):4==it?[e,i]=ce(e,e,Ze.log,!1):Ze.time?i=e+xe(86400/ye):[e,i]=ge(e,i,de,!0))):(os=rs[0]=e=null,ls=rs[1]=i=null)),xn(He,e,i)}function Us(e,t,i,s,n,o){e??=D,i??=Qe,s??="butt",n??=D,o??="round",e!=us&&(ne.strokeStyle=us=e),n!=xs&&(ne.fillStyle=xs=n),t!=As&&(ne.lineWidth=As=t),o!=Os&&(ne.lineJoin=Os=o),s!=Ls&&(ne.lineCap=Ls=s),i!=Ts&&ne.setLineDash(Ts=i)}function Ns(e,t,i,s){t!=xs&&(ne.fillStyle=xs=t),e!=Is&&(ne.font=Is=e),i!=Ds&&(ne.textAlign=Ds=i),s!=Ms&&(ne.textBaseline=Ms=s)}function $s(e,t,i,s,n=0){if(s.length>0&&e.auto(I,Rs)&&(null==t||null==t.min)){let t=me(os,0),o=me(ls,s.length-1),l=null==i.min?3==e.distr?function(e,t,i){let s=Re,n=-Re;for(let o=t;o<=i;o++){let t=e[o];null!=t&&t>0&&(t<s&&(s=t),t>n&&(n=t))}return[s,n]}(s,t,o):function(e,t,i,s){let n=Re,o=-Re;if(1==s)n=e[t],o=e[i];else if(-1==s)n=e[i],o=e[t];else for(let l=t;l<=i;l++){let t=e[l];null!=t&&(t<n&&(n=t),t>o&&(o=t))}return[n,o]}(s,t,o,n):[i.min,i.max];e.min=Te(e.min,i.min=l[0]),e.max=Oe(e.max,i.max=l[1])}}I.setData=Fs;const js={min:null,max:null};function Xs(e,t){let i=t?be[e].points:be[e];i._stroke=i.stroke(I,e),i._fill=i.fill(I,e)}function zs(e,i){let s=i?be[e].points:be[e],{stroke:n,fill:o,clip:l,flags:r,_stroke:a=s._stroke,_fill:u=s._fill,_width:c=s.width}=s._paths;c=Ge(c*Y,3);let d=null,h=c%2/2;i&&null==u&&(u=c>0?"#fff":a);let f=1==s.pxAlign&&h>0;if(f&&ne.translate(h,h),!i){let e=ai-c/2,t=_i-c/2,i=vi+c,s=yi+c;d=new Path2D,d.rect(e,t,i,s)}i?Ys(a,c,s.dash,s.cap,u,n,o,r,l):function(e,i,s,n,o,l,r,a,u,c,d){let h=!1;0!=u&&Ne.forEach(((f,p)=>{if(f.series[0]==e){let e,g=be[f.series[1]],m=t[f.series[1]],_=(g._paths||Je).band;tt(_)&&(_=1==f.dir?_[0]:_[1]);let v=null;g.show&&_&&function(e,t,i){for(t=me(t,0),i=me(i,e.length-1);t<=i;){if(null!=e[t])return!0;t++}return!1}(m,os,ls)?(v=f.fill(I,p)||l,e=g._paths.clip):_=null,Ys(i,s,n,o,v,r,a,u,c,d,e,_),h=!0}})),h||Ys(i,s,n,o,l,r,a,u,c,d)}(e,a,c,s.dash,s.cap,u,n,o,r,d,l),f&&ne.translate(-h,-h)}const Hs=Fi|Pi;function Ys(e,t,i,s,n,o,l,r,a,u,c,d){Us(e,t,i,s,n),(a||u||d)&&(ne.save(),a&&ne.clip(a),u&&ne.clip(u)),d?(r&Hs)==Hs?(ne.clip(d),c&&ne.clip(c),Vs(n,l),Bs(e,o,t)):r&Pi?(Vs(n,l),ne.clip(d),Bs(e,o,t)):r&Fi&&(ne.save(),ne.clip(d),c&&ne.clip(c),Vs(n,l),ne.restore(),Bs(e,o,t)):(Vs(n,l),Bs(e,o,t)),(a||u||d)&&ne.restore()}function Bs(e,t,i){i>0&&(t instanceof Map?t.forEach(((e,t)=>{ne.strokeStyle=us=t,ne.stroke(e)})):null!=t&&e&&ne.stroke(t))}function Vs(e,t){t instanceof Map?t.forEach(((e,t)=>{ne.fillStyle=xs=t,ne.fill(e)})):null!=t&&e&&ne.fill(t)}function Ws(e,t,i,s,n,o,l,r,a,u){let c=l%2/2;1==_e&&ne.translate(c,c),Us(r,l,a,u,r),ne.beginPath();let d,h,f,p,g=n+(0==s||3==s?-o:o);0==i?(h=n,p=g):(d=n,f=g);for(let m=0;m<e.length;m++)null!=t[m]&&(0==i?d=f=e[m]:h=p=e[m],ne.moveTo(d,h),ne.lineTo(f,p));ne.stroke(),1==_e&&ne.translate(-c,-c)}function Gs(e){let t=!0;return Me.forEach(((i,s)=>{if(!i.show)return;let n=Fe[i.scale];if(null==n.min)return void(i._show&&(t=!1,i._show=!1,qs(!1)));i._show||(t=!1,i._show=!0,qs(!1));let o=i.side,l=o%2,{min:r,max:a}=n,[u,c]=function(e,t,i,s){let n,o=Me[e];if(s<=0)n=[0,0];else{let l=o._space=o.space(I,e,t,i,s);n=ws(t,i,o._incrs=o.incrs(I,e,t,i,s,l),s,l)}return o._found=n}(s,r,a,0==l?Qt:ei);if(0==c)return;let d=2==n.distr,h=i._splits=i.splits(I,s,r,a,u,c,d),f=2==n.distr?h.map((e=>Cs[e])):h,p=2==n.distr?Cs[h[1]]-Cs[h[0]]:u,g=i._values=i.values(I,i.filter(I,f,s,c,p),s,c,p);i._rotate=2==o?i.rotate(I,g,s,c):0;let m=i._size;i._size=Ae(i.size(I,g,s,e)),null!=m&&i._size!=m&&(t=!1)})),t}function Ks(e){let t=!0;return is.forEach(((i,s)=>{let n=i(I,s,es,e);n!=ss[s]&&(t=!1),ss[s]=n})),t}function qs(e){be.forEach(((t,i)=>{i>0&&(t._paths=null,e&&(1==U?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let Zs,Js,Qs,en,tn,sn,nn,on,ln,rn,an,un,cn=!1,dn=!1,hn=[];function fn(){dn=!1;for(let e=0;e<hn.length;e++)eo(...hn[e]);hn.length=0}function pn(){cn||(ht(gn),cn=!0)}function gn(){if(bi&&(!function(){for(let t in Fe){let e=Fe[t];null==dt[t]&&(null==e.min||null!=dt[He]&&e.auto(I,Rs))&&(dt[t]=js)}for(let t in Fe){let e=Fe[t];null==dt[t]&&null!=e.from&&null!=dt[e.from]&&(dt[t]=js)}null!=dt[He]&&qs(!0);let e={};for(let t in dt){let i=dt[t];if(null!=i){let s=e[t]=ut(Fe[t],lt);if(null!=i.min)ct(s,i);else if(t!=He||2==U)if(0==ns&&null==s.from){let e=s.range(I,null,null,t);s.min=e[0],s.max=e[1]}else s.min=Re,s.max=-Re}}if(ns>0){be.forEach(((i,s)=>{if(1==U){let n=i.scale,o=dt[n];if(null==o)return;let l=e[n];if(0==s){let e=l.range(I,l.min,l.max,n);l.min=e[0],l.max=e[1],os=re(l.min,t[0]),ls=re(l.max,t[0]),ls-os>1&&(t[0][os]<l.min&&os++,t[0][ls]>l.max&&ls--),i.min=Cs[os],i.max=Cs[ls]}else i.show&&i.auto&&$s(l,o,i,t[s],i.sorted);i.idxs[0]=os,i.idxs[1]=ls}else if(s>0&&i.show&&i.auto){let[n,o]=i.facets,l=n.scale,r=o.scale,[a,u]=t[s],c=e[l],d=e[r];null!=c&&$s(c,dt[l],n,a,n.sorted),null!=d&&$s(d,dt[r],o,u,o.sorted),i.min=o.min,i.max=o.max}}));for(let t in e){let i=e[t],s=dt[t];if(null==i.from&&(null==s||null==s.min)){let e=i.range(I,i.min==Re?null:i.min,i.max==-Re?null:i.max,t);i.min=e[0],i.max=e[1]}}}for(let t in e){let i=e[t];if(null!=i.from){let s=e[i.from];if(null==s.min)i.min=i.max=null;else{let e=i.range(I,s.min,s.max,t);i.min=e[0],i.max=e[1]}}}let i={},s=!1;for(let t in e){let n=e[t],o=Fe[t];if(o.min!=n.min||o.max!=n.max){o.min=n.min,o.max=n.max;let e=o.distr;o._min=3==e?De(o.min):4==e?Ce(o.min,o.asinh):100==e?o.fwd(o.min):o.min,o._max=3==e?De(o.max):4==e?Ce(o.max,o.asinh):100==e?o.fwd(o.max):o.max,i[t]=s=!0}}if(s){be.forEach(((e,t)=>{2==U?t>0&&i.y&&(e._paths=null):i[e.scale]&&(e._paths=null)}));for(let e in i)Ti=!0,eo("setScale",e);zi.show&&zi.left>=0&&(Oi=Ui=!0)}for(let t in dt)dt[t]=null}(),bi=!1),Ti&&(!function(){let e=!1,t=0;for(;!e;){t++;let i=Gs(t),s=Ks(t);e=t==Xi||i&&s,e||(ji(I.width,I.height),wi=!0)}}(),Ti=!1),wi){if(G(fe,O,ti),G(fe,A,si),G(fe,S,Qt),G(fe,x,ei),G(pe,O,ti),G(pe,A,si),G(pe,S,Qt),G(pe,x,ei),G(ae,S,$t),G(ae,x,Gt),se.width=xe($t*Y),se.height=xe(Gt*Y),Me.forEach((({_el:e,_show:t,_size:i,_pos:s,side:n})=>{if(null!=e)if(t){let t=n%2==1;G(e,t?"left":"top",s-(3===n||0===n?i:0)),G(e,t?"width":"height",i),G(e,t?"top":"left",t?si:ti),G(e,t?"height":"width",t?ei:Qt),W(e,d)}else V(e,d)})),us=xs=As=Os=Ls=Is=Ds=Ms=Ts=null,ks=1,$n(!0),ti!=ni||si!=oi||Qt!=li||ei!=ri){qs(!1);let e=Qt/li,t=ei/ri;if(zi.show&&!Oi&&zi.left>=0){zi.left*=e,zi.top*=t,Qs&&J(Qs,xe(zi.left),0,Qt,ei),en&&J(en,0,xe(zi.top),Qt,ei);for(let i=0;i<Ki.length;i++){let s=Ki[i];null!=s&&(qi[i]*=e,Zi[i]*=t,J(s,Ae(qi[i]),Ae(Zi[i]),Qt,ei))}}if(wn.show&&!Ci&&wn.left>=0&&wn.width>0){wn.left*=e,wn.width*=e,wn.top*=t,wn.height*=t;for(let e in zn)G(En,e,wn[e])}ni=ti,oi=si,li=Qt,ri=ei}eo("setSize"),wi=!1}$t>0&&Gt>0&&(ne.clearRect(0,0,se.width,se.height),eo("drawClear"),Ve.forEach((e=>e())),eo("draw")),wn.show&&Ci&&(Sn(wn),Ci=!1),zi.show&&Oi&&(Un(null,!0,!1),Oi=!1),yt.show&&yt.live&&Ui&&(Fn(),Ui=!1),Q||(Q=!0,I.status=1,eo("ready")),Rs=!1,cn=!1}function mn(e,i){let s=Fe[e];if(null==s.from){if(0==ns){let t=s.range(I,i.min,i.max,e);i.min=t[0],i.max=t[1]}if(i.min>i.max){let e=i.min;i.min=i.max,i.max=e}if(ns>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;e==He&&2==s.distr&&ns>0&&(i.min=re(i.min,t[0]),i.max=re(i.max,t[0]),i.min==i.max&&i.max++),dt[e]=i,bi=!0,pn()}}I.batch=function(e,t=!1){cn=!0,dn=t,e(I),gn(),t&&hn.length>0&&queueMicrotask(fn)},I.redraw=(e,t)=>{Ti=t||!1,!1!==e?xn(He,Ze.min,Ze.max):pn()},I.setScale=mn;let _n=!1;const vn=zi.drag;let yn=vn.x,bn=vn.y;zi.show&&(zi.x&&(Zs=q(f,pe)),zi.y&&(Js=q(p,pe)),0==Ze.ori?(Qs=Zs,en=Js):(Qs=Js,en=Zs),an=zi.left,un=zi.top);const wn=I.select=ct({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),En=wn.show?q(h,wn.over?pe:fe):null;function Sn(e,t){if(wn.show){for(let t in e)wn[t]=e[t],t in zn&&G(En,t,e[t]);!1!==t&&eo("setSelect")}}function xn(e,t,i){mn(e,{min:t,max:i})}function An(e,t,i,s){null!=t.focus&&function(e){if(e!=Ln){let t=null==e,i=1!=Vi.alpha;be.forEach(((s,n)=>{if(1==U||n>0){let o=t||0==n||n==e;s._focus=t?null:o,i&&function(e,t){be[e].alpha=t,zi.show&&Ki[e]&&(Ki[e].style.opacity=t);bt&&It[e]&&(It[e].style.opacity=t)}(n,o?1:Vi.alpha)}})),Ln=e,i&&pn()}}(e),null!=t.show&&be.forEach(((i,s)=>{s>0&&(e==s||null==e)&&(i.show=t.show,function(e){let t=be[e],i=bt?It[e]:null;t.show?i&&W(i,d):(i&&V(i,d),J(Gi?Ki[0]:Ki[e],-10,-10,Qt,ei))}(s,t.show),2==U?(xn(i.facets[0].scale,null,null),xn(i.facets[1].scale,null,null)):xn(i.scale,null,null),pn())})),!1!==i&&eo("setSeries",e,t),s&&oo("setSeries",I,e,t)}let Tn,On,Ln;I.setSelect=Sn,I.setSeries=An,I.addBand=function(e,t){e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1),t=null==t?Ne.length:t,Ne.splice(t,0,e)},I.setBand=function(e,t){ct(Ne[e],t)},I.delBand=function(e){null==e?Ne.length=0:Ne.splice(e,1)};const In={focus:!0};function Dn(e,t,i){let s=Fe[t];i&&(e=e/Y-(1==s.ori?si:ti));let n=Qt;1==s.ori&&(n=ei,e=n-e),-1==s.dir&&(e=n-e);let o=s._min,l=o+(s._max-o)*(e/n),r=s.distr;return 3==r?Le(10,l):4==r?ke(l,s.asinh):100==r?s.bwd(l):l}function Mn(e,t){G(En,O,wn.left=e),G(En,S,wn.width=t)}function kn(e,t){G(En,A,wn.top=e),G(En,x,wn.height=t)}bt&&Wi&&Ut(F,St,(e=>{zi._lock||(Yi(e),null!=Ln&&An(null,In,!0,io.setSeries))})),I.valToIdx=e=>re(e,t[0]),I.posToIdx=function(e,i){return re(Dn(e,He,i),t[0],os,ls)},I.posToVal=Dn,I.valToPos=(e,t,i)=>0==Fe[t].ori?H(e,Fe[t],i?vi:Qt,i?ai:0):B(e,Fe[t],i?yi:ei,i?_i:0),I.setCursor=(e,t,i)=>{an=e.left,un=e.top,Un(null,t,i)};let Cn=0==Ze.ori?Mn:kn,Rn=1==Ze.ori?Mn:kn;function Fn(e,t){if(null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{vt[t]=e})):st(e.idx)||vt.fill(e.idx),yt.idx=vt[0]),bt&&yt.live){for(let e=0;e<be.length;e++)(e>0||1==U&&!Mt)&&Pn(e,vt[e]);!function(){if(bt&&yt.live)for(let e=2==U?1:0;e<be.length;e++){if(0==e&&Mt)continue;let t=yt.values[e],i=0;for(let s in t)Dt[e][i++].firstChild.nodeValue=t[s]}}()}Ui=!1,!1!==t&&eo("setLegend")}function Pn(e,i){let s,n=be[e],o=0==e&&2==it?Cs:t[e];Mt?s=n.values(I,e,i)??kt:(s=n.value(I,null==i?null:o[i],e,i),s=null==s?kt:{_:s}),yt.values[e]=s}function Un(e,i,s){let n;ln=an,rn=un,[an,un]=zi.move(I,an,un),zi.left=an,zi.top=un,zi.show&&(Qs&&J(Qs,xe(an),0,Qt,ei),en&&J(en,0,xe(un),Qt,ei));let o=os>ls;Tn=Re,On=null;let l=0==Ze.ori?Qt:ei,r=1==Ze.ori?Qt:ei;if(an<0||0==ns||o){n=zi.idx=null;for(let e=0;e<be.length;e++){let t=Ki[e];null!=t&&J(t,-10,-10,Qt,ei)}Wi&&An(null,In,!0,null==e&&io.setSeries),yt.live&&(vt.fill(n),Ui=!0)}else{let e,i,s;1==U&&(e=0==Ze.ori?an:un,i=Dn(e,He),n=zi.idx=re(i,t[0],os,ls),s=rt(t[0][n],Ze,l,0));let o=-10,a=-10,u=0,c=0,d=!0,h="",f="";for(let p=2==U?1:0;p<be.length;p++){let e=be[p],g=vt[p],m=null==g?null:1==U?t[p][g]:t[p][1][g],_=zi.dataIdx(I,p,n,i),v=null==_?null:1==U?t[p][_]:t[p][1][_];Ui=Ui||v!=m||_!=g,vt[p]=_;let y=_==n?s:rt(1==U?t[0][_]:t[p][0][_],Ze,l,0);if(p>0&&e.show){let t=null==v?-10:at(v,1==U?Fe[e.scale]:Fe[e.facets[1].scale],r,0);if(Wi&&null!=v){let i=1==Ze.ori?an:un,s=Ee(Vi.dist(I,p,_,t,i));if(s<Tn){let t=Vi.bias;if(0!=t){let n=Dn(i,e.scale),o=n>=0?1:-1;o==(v>=0?1:-1)&&(1==o?1==t?v>=n:v<=n:1==t?v<=n:v>=n)&&(Tn=s,On=p)}else Tn=s,On=p}}if(Ui||Gi){let e,i;0==Ze.ori?(e=y,i=t):(e=t,i=y);let s,n,l,r,g,m,_=!0,v=Bi.bbox;if(null!=v){_=!1;let e=v(I,p);l=e.left,r=e.top,s=e.width,n=e.height}else l=e,r=i,s=n=Bi.size(I,p);if(m=Bi.fill(I,p),g=Bi.stroke(I,p),Gi)p==On&&Tn<=Vi.prox&&(o=l,a=r,u=s,c=n,d=_,h=m,f=g);else{let e=Ki[p];null!=e&&(qi[p]=l,Zi[p]=r,ie(e,s,n,_),ee(e,m,g),J(e,Ae(l),Ae(r),Qt,ei))}}}}if(Gi){let e=Vi.prox;if(Ui||(null==Ln?Tn<=e:Tn>e||On!=Ln)){let e=Ki[0];qi[0]=o,Zi[0]=a,ie(e,u,c,d),ee(e,h,f),J(e,Ae(o),Ae(a),Qt,ei)}}}if(wn.show&&_n)if(null!=e){let[t,i]=io.scales,[s,n]=io.match,[o,a]=e.cursor.sync.scales,u=e.cursor.drag;if(yn=u._x,bn=u._y,yn||bn){let u,c,d,h,f,{left:p,top:g,width:m,height:_}=e.select,v=e.scales[o].ori,y=e.posToVal,b=null!=t&&s(t,o),w=null!=i&&n(i,a);b&&yn?(0==v?(u=p,c=m):(u=g,c=_),d=Fe[t],h=rt(y(u,o),d,l,0),f=rt(y(u+c,o),d,l,0),Cn(Te(h,f),Ee(f-h))):Cn(0,l),w&&bn?(1==v?(u=p,c=m):(u=g,c=_),d=Fe[i],h=at(y(u,a),d,r,0),f=at(y(u+c,a),d,r,0),Rn(Te(h,f),Ee(f-h))):Rn(0,r)}else Hn()}else{let e=Ee(ln-tn),t=Ee(rn-sn);if(1==Ze.ori){let i=e;e=t,t=i}yn=vn.x&&e>=vn.dist,bn=vn.y&&t>=vn.dist;let i,s,n=vn.uni;null!=n?yn&&bn&&(yn=e>=n,bn=t>=n,yn||bn||(t>e?bn=!0:yn=!0)):vn.x&&vn.y&&(yn||bn)&&(yn=bn=!0),yn&&(0==Ze.ori?(i=nn,s=an):(i=on,s=un),Cn(Te(i,s),Ee(s-i)),bn||Rn(0,r)),bn&&(1==Ze.ori?(i=nn,s=an):(i=on,s=un),Rn(Te(i,s),Ee(s-i)),yn||Cn(0,l)),yn||bn||(Cn(0,0),Rn(0,0))}if(vn._x=yn,vn._y=bn,null==e){if(s){if(null!=so){let[e,t]=io.scales;io.values[0]=null!=e?Dn(0==Ze.ori?an:un,e):null,io.values[1]=null!=t?Dn(1==Ze.ori?an:un,t):null}oo(M,I,an,un,Qt,ei,n)}if(Wi){let e=s&&io.setSeries,t=Vi.prox;null==Ln?Tn<=t&&An(On,In,!0,e):Tn>t?An(null,In,!0,e):On!=Ln&&An(On,In,!0,e)}}Ui&&(yt.idx=n,Fn()),!1!==i&&eo("setCursor")}I.setLegend=Fn;let Nn=null;function $n(e=!1){e?Nn=null:(Nn=pe.getBoundingClientRect(),eo("syncRect",Nn))}function jn(e,t,i,s,n,o,l){zi._lock||_n&&null!=e&&0==e.movementX&&0==e.movementY||(Xn(e,t,i,s,n,o,l,!1,null!=e),null!=e?Un(null,!0,!0):Un(t,!0,!1))}function Xn(e,t,i,s,n,o,l,r,a){if(null==Nn&&$n(!1),Yi(e),null!=e)i=e.clientX-Nn.left,s=e.clientY-Nn.top;else{if(i<0||s<0)return an=-10,void(un=-10);let[e,l]=io.scales,r=t.cursor.sync,[a,u]=r.values,[c,d]=r.scales,[h,f]=io.match,p=t.axes[0].side%2==1,g=0==Ze.ori?Qt:ei,m=1==Ze.ori?Qt:ei,_=p?o:n,v=p?n:o,y=p?s:i,b=p?i:s;if(i=null!=c?h(e,c)?Z(a,Fe[e],g,0):-10:g*(y/_),s=null!=d?f(l,d)?Z(u,Fe[l],m,0):-10:m*(b/v),1==Ze.ori){let e=i;i=s,s=e}}a&&((i<=1||i>=Qt-1)&&(i=Be(i,Qt)),(s<=1||s>=ei-1)&&(s=Be(s,ei))),r?(tn=i,sn=s,[nn,on]=zi.move(I,i,s)):(an=i,un=s)}Object.defineProperty(I,"rect",{get:()=>(null==Nn&&$n(!1),Nn)});const zn={width:0,height:0,left:0,top:0};function Hn(){Sn(zn,!1)}let Yn,Bn,Vn,Wn;function Gn(e,t,i,s,n,o,l){_n=!0,yn=bn=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!0,!1),null!=e&&(Ut(C,X,Kn,!1),oo(k,I,nn,on,Qt,ei,null));let{left:r,top:a,width:u,height:c}=wn;Yn=r,Bn=a,Vn=u,Wn=c,Hn()}function Kn(e,t,i,s,n,o,l){_n=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!1,!0);let{left:r,top:a,width:u,height:c}=wn,d=u>0||c>0,h=Yn!=r||Bn!=a||Vn!=u||Wn!=c;if(d&&h&&Sn(wn),vn.setScale&&d&&h){let e=r,t=u,i=a,s=c;if(1==Ze.ori&&(e=a,t=c,i=r,s=u),yn&&xn(He,Dn(e,He),Dn(e+t,He)),bn)for(let n in Fe){let e=Fe[n];n!=He&&null==e.from&&e.min!=Re&&xn(n,Dn(i+s,n),Dn(i,n))}Hn()}else zi.lock&&(zi._lock=!zi._lock,Un(null,!0,!1));null!=e&&(Nt(C,X),oo(C,I,an,un,Qt,ei,null))}function qn(e,t,i,s,n,o,l){zi._lock||(Yi(e),Ps(),Hn(),null!=e&&oo(P,I,an,un,Qt,ei,null))}function Zn(){Me.forEach(Ss),Ni(I.width,I.height,!0)}oe(N,z,Zn);const Jn={};Jn.mousedown=Gn,Jn.mousemove=jn,Jn.mouseup=Kn,Jn.dblclick=qn,Jn.setSeries=(e,t,i,s)=>{-1!=(i=(0,io.match[2])(I,t,i))&&An(i,s,!0,!1)},zi.show&&(Ut(k,pe,Gn),Ut(M,pe,jn),Ut(R,pe,(e=>{Yi(e),$n(!1)})),Ut(F,pe,(function(e,t,i,s,n,o,l){if(zi._lock)return;Yi(e);let r=_n;if(_n){let e,t,i=!0,s=!0,n=10;0==Ze.ori?(e=yn,t=bn):(e=bn,t=yn),e&&t&&(i=an<=n||an>=Qt-n,s=un<=n||un>=ei-n),e&&i&&(an=an<nn?0:Qt),t&&s&&(un=un<on?0:ei),Un(null,!0,!0),_n=!1}an=-10,un=-10,Un(null,!0,!0),r&&(_n=r)})),Ut(P,pe,qn),as.add(I),I.syncRect=$n);const Qn=I.hooks=e.hooks||{};function eo(e,t,i){dn?hn.push([e,t,i]):e in Qn&&Qn[e].forEach((e=>{e.call(null,I,t,i)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)Qn[t]=(Qn[t]||[]).concat(e.hooks[t])}));const to=(e,t,i)=>i,io=ct({key:null,setSeries:!1,filters:{pub:Xe,sub:Xe},scales:[He,be[1]?be[1].scale:null],match:[ze,ze,to],values:[null,null]},zi.sync);2==io.match.length&&io.match.push(to),zi.sync=io;const so=io.key,no=Ri(so);function oo(e,t,i,s,n,o,l){io.filters.pub(e,t,i,s,n,o,l)&&no.pub(e,t,i,s,n,o,l)}function lo(){eo("init",e,t),Fs(t||e.data,!1),dt[He]?mn(He,dt[He]):Ps(),Ci=wn.show&&(wn.width>0||wn.height>0),Oi=Ui=!0,Ni(e.width,e.height)}return no.sub(I),I.pub=function(e,t,i,s,n,o,l){io.filters.sub(e,t,i,s,n,o,l)&&Jn[e](null,t,i,s,n,o,l)},I.destroy=function(){no.unsub(I),as.delete(I),Pt.clear(),le(N,z,Zn),te.remove(),St?.remove(),eo("destroy")},be.forEach(Qi),Me.forEach((function(e,t){if(e._show=e.show,e.show){let i=e.side%2,s=Fe[e.scale];null==s&&(e.scale=i?be[1].scale:He,s=Fe[e.scale]);let n=s.time;e.size=Ue(e.size),e.space=Ue(e.space),e.rotate=Ue(e.rotate),tt(e.incrs)&&e.incrs.forEach((e=>{!Ke.has(e)&&Ke.set(e,qe(e))})),e.incrs=Ue(e.incrs||(2==s.distr?Ot:n?1==ye?jt:Ht:Lt)),e.splits=Ue(e.splits||(n&&1==s.distr?gt:3==s.distr?gi:4==s.distr?mi:pi)),e.stroke=Ue(e.stroke),e.grid.stroke=Ue(e.grid.stroke),e.ticks.stroke=Ue(e.ticks.stroke),e.border.stroke=Ue(e.border.stroke);let o=e.values;e.values=tt(o)&&!tt(o[0])?Ue(o):n?tt(o)?Wt(ft,Vt(o,pt)):nt(o)?function(e,t){let i=wt(t);return(t,s,n,o,l)=>s.map((t=>i(e(t))))}(ft,o):o||mt:o||fi,e.filter=Ue(e.filter||(s.distr>=3&&10==s.log?Ei:3==s.distr&&2==s.log?Si:$e)),e.font=Es(e.font),e.labelFont=Es(e.labelFont),e._size=e.size(I,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(es[t]=!0,e._el=q(c,ae))}})),i?i instanceof HTMLElement?(i.appendChild(te),lo()):i(I,lo):lo(),I}xs.assign=ct,xs.fmtNum=ye,xs.rangeNum=ge,xs.rangeLog=ue,xs.rangeAsinh=ce,xs.orient=Ui,xs.pxRatio=Y,xs.join=function(e,t){if(function(e){let t=e[0][0],i=t.length;for(let s=1;s<e.length;s++){let n=e[s][0];if(n.length!=i)return!1;if(n!=t)for(let e=0;e<i;e++)if(n[e]!=t[e])return!1}return!0}(e)){let t=e[0].slice();for(let i=1;i<e.length;i++)t.push(...e[i].slice(1));return function(e,t=100){const i=e.length;if(i<=1)return!0;let s=0,n=i-1;for(;s<=n&&null==e[s];)s++;for(;n>=s&&null==e[n];)n--;if(n<=s)return!0;const o=Oe(1,Se((n-s+1)/t));for(let l=e[s],r=s+o;r<=n;r+=o){const t=e[r];if(null!=t){if(t<=l)return!1;l=t}}return!0}(t[0])||(t=function(e){let t=e[0],i=t.length,s=Array(i);for(let o=0;o<s.length;o++)s[o]=o;s.sort(((e,i)=>t[e]-t[i]));let n=[];for(let o=0;o<e.length;o++){let t=e[o],l=Array(i);for(let e=0;e<i;e++)l[e]=t[s[e]];n.push(l)}return n}(t)),t}let i=new Set;for(let l=0;l<e.length;l++){let t=e[l][0],s=t.length;for(let e=0;e<s;e++)i.add(t[e])}let s=[Array.from(i).sort(((e,t)=>e-t))],n=s[0].length,o=new Map;for(let l=0;l<n;l++)o.set(s[0][l],l);for(let l=0;l<e.length;l++){let i=e[l],r=i[0];for(let e=1;e<i.length;e++){let a=i[e],u=Array(n).fill(void 0),c=t?t[l][e]:1,d=[];for(let e=0;e<a.length;e++){let t=a[e],i=o.get(r[e]);null===t?0!=c&&(u[i]=t,2==c&&d.push(i)):u[i]=t}dt(u,d,n),s.push(u)}}return s},xs.fmtDate=wt,xs.tzDate=function(e,t){let i;return"UTC"==t||"Etc/UTC"==t?i=new Date(+e+6e4*e.getTimezoneOffset()):t==Et?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:t})),i.setMilliseconds(e.getMilliseconds())),i},xs.sync=Ri;{xs.addGap=function(e,t,i){let s=e[e.length-1];s&&s[0]==t?s[1]=i:e.push([t,i])},xs.clipGaps=Xi;let e=xs.paths={points:ts};e.linear=os,e.stepped=function(e){const t=me(e.align,1),i=me(e.ascDesc,!1),s=me(e.alignGaps,0),n=me(e.extend,!1);return(e,o,l,r)=>Ui(e,o,((a,u,c,d,h,f,p,g,m,_,v)=>{let y=a.pxRound,{left:b,width:w}=e.bbox,E=e=>y(f(e,d,_,g)),S=e=>y(p(e,h,v,m)),x=0==d.ori?Wi:Gi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},T=A.stroke,O=d.dir*(0==d.ori?1:-1);l=ae(c,l,r,1),r=ae(c,l,r,-1);let L=S(c[1==O?l:r]),I=E(u[1==O?l:r]),D=I,M=I;n&&-1==t&&(M=b,x(T,M,L)),x(T,I,L);for(let e=1==O?l:r;e>=l&&e<=r;e+=O){let i=c[e];if(null==i)continue;let s=E(u[e]),n=S(i);1==t?x(T,s,L):x(T,D,n),x(T,s,n),L=n,D=s}let k=D;n&&1==t&&(k=b+w,x(T,k,L));let[C,R]=Ni(e,o);if(null!=a.fill||0!=C){let t=A.fill=new Path2D(T),i=S(a.fillTo(e,o,a.min,a.max,C));x(t,k,i),x(t,M,i)}if(!a.spanGaps){let n=[];n.push(...zi(u,c,l,r,O,E,s));let h=a.width*Y/2,f=i||1==t?h:-h,p=i||-1==t?-h:h;n.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=n=a.gaps(e,o,l,r,n),A.clip=Xi(n,d.ori,g,m,_,v)}return 0!=R&&(A.band=2==R?[ji(e,o,l,r,T,-1),ji(e,o,l,r,T,1)]:ji(e,o,l,r,T,R)),A}))},e.bars=function(e){const t=me((e=e||Je).size,[.6,Re,1]),i=e.align||0,s=e.gap||0;let n=e.radius;n=null==n?[0,0]:"number"==typeof n?[n,0]:n;const o=Ue(n),l=1-t[0],r=me(t[1],Re),a=me(t[2],1),u=me(e.disp,Je),c=me(e.each,(e=>{})),{fill:d,stroke:h}=u;return(e,t,n,f)=>Ui(e,t,((p,g,m,_,v,y,b,w,E,S,x)=>{let A,T,O=p.pxRound,L=i,I=s*Y,D=r*Y,M=a*Y;0==_.ori?[A,T]=o(e,t):[T,A]=o(e,t);const k=_.dir*(0==_.ori?1:-1);let C,R,F,P=0==_.ori?Ki:qi,U=0==_.ori?c:(e,t,i,s,n,o,l)=>{c(e,t,i,n,s,l,o)},N=me(e.bands,Qe).find((e=>e.series[0]==t)),$=null!=N?N.dir:0,j=p.fillTo(e,t,p.min,p.max,$),X=O(b(j,v,x,E)),z=S,H=O(p.width*Y),B=!1,V=null,W=null,G=null,K=null;null==d||0!=H&&null==h||(B=!0,V=d.values(e,t,n,f),W=new Map,new Set(V).forEach((e=>{null!=e&&W.set(e,new Path2D)})),H>0&&(G=h.values(e,t,n,f),K=new Map,new Set(G).forEach((e=>{null!=e&&K.set(e,new Path2D)}))));let{x0:q,size:Z}=u;if(null!=q&&null!=Z){L=1,g=q.values(e,t,n,f),2==q.unit&&(g=g.map((t=>e.posToVal(w+t*S,_.key,!0))));let i=Z.values(e,t,n,f);R=2==Z.unit?i[0]*S:y(i[0],_,S,w)-y(0,_,S,w),z=ls(g,m,y,_,S,w,z),F=z-R+I}else z=ls(g,m,y,_,S,w,z),F=z*l+I,R=z-F;F<1&&(F=0),H>=R/2&&(H=0),F<5&&(O=Ne);let J=F>0;R=O(Pe(z-F-(J?H:0),M,D)),C=(0==L?R/2:L==k?0:R)-L*k*((0==L?I/2:0)+(J?H/2:0));const Q={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ee=B?null:new Path2D;let te=null;if(null!=N)te=e.data[N.series[1]];else{let{y0:i,y1:s}=u;null!=i&&null!=s&&(m=s.values(e,t,n,f),te=i.values(e,t,n,f))}let ie=A*R,se=T*R;for(let i=1==k?n:f;i>=n&&i<=f;i+=k){let s=m[i];if(null==s)continue;if(null!=te){let e=te[i]??0;if(s-e==0)continue;X=b(e,v,x,E)}let n=y(2!=_.distr||null!=u?g[i]:i,_,S,w),o=b(me(s,j),v,x,E),l=O(n-C),r=O(Oe(o,X)),a=O(Te(o,X)),c=r-a;if(null!=s){let n=s<0?se:ie,o=s<0?ie:se;B?(H>0&&null!=G[i]&&P(K.get(G[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o),null!=V[i]&&P(W.get(V[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o)):P(ee,l,a+Se(H/2),R,Oe(0,c-H),n,o),U(e,t,i,l-H/2,a,R+H,c)}}return H>0?Q.stroke=B?K:ee:B||(Q._fill=0==p.width?p._fill:p._stroke??p._fill,Q.width=0),Q.fill=B?W:ee,Q}))},e.spline=function(e){return function(e,t){const i=me(t?.alignGaps,0);return(t,s,n,o)=>Ui(t,s,((l,r,a,u,c,d,h,f,p,g,m)=>{let _,v,y,b=l.pxRound,w=e=>b(d(e,u,g,f)),E=e=>b(h(e,c,m,p));0==u.ori?(_=Bi,y=Wi,v=Qi):(_=Vi,y=Gi,v=es);const S=u.dir*(0==u.ori?1:-1);n=ae(a,n,o,1),o=ae(a,n,o,-1);let x=w(r[1==S?n:o]),A=x,T=[],O=[];for(let e=1==S?n:o;e>=n&&e<=o;e+=S)if(null!=a[e]){let t=w(r[e]);T.push(A=t),O.push(E(a[e]))}const L={stroke:e(T,O,_,y,v,b),fill:null,clip:null,band:null,gaps:null,flags:Fi},I=L.stroke;let[D,M]=Ni(t,s);if(null!=l.fill||0!=D){let e=L.fill=new Path2D(I),i=E(l.fillTo(t,s,l.min,l.max,D));y(e,A,i),y(e,x,i)}if(!l.spanGaps){let e=[];e.push(...zi(r,a,n,o,S,w,i)),L.gaps=e=l.gaps(t,s,n,o,e),L.clip=Xi(e,u.ori,f,p,g,m)}return 0!=M&&(L.band=2==M?[ji(t,s,n,o,I,-1),ji(t,s,n,o,I,1)]:ji(t,s,n,o,I,M)),L}))}(rs,e)}}},20500:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerieFocusColors=t.getFocusedColor=void 0;const i=[0,0,0,.6];class s{static parseRgba(e){const t=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d+\.?\d*)?\s*\)/);return t?[t[1],t[2],t[3],t[4]||1].map(Number):null}parse(e="000"){const t=e.startsWith("var(--");let i,s=e,n=!0;const o=this.context,l=o.style.color;return t||e.startsWith("--")?(n=!1,i=t?e.slice(4,-1):e):e.startsWith("#")||e.startsWith("rgb")||(o.style.color=e,i="color",n=!1),s=n?s:getComputedStyle(o).getPropertyValue(i),o.style.color=l,s}setContext(e){this.context=e}rgba(e){return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}toRgba(e,t){return s.parseRgba(this.parse(e))||t}shade([e,t,i,s],n){const o=n<0,l=o?0:255*n,r=o?1+n:1-n;return"rgba("+Math.round(e*r+l)+","+Math.round(t*r+l)+","+Math.round(i*r+l)+","+s+")"}}t.default=s;t.getFocusedColor=(e,t)=>{const n=e.utils.theme.SHIFT,o=e.uplot.series[t],l=s.parseRgba(o.color)||i;return e.utils.colors.shade(l,n)};t.getSerieFocusColors=(e,t)=>(i,s)=>{const n=i.series[s];return!1===n._focus?n.getFocusedColor(e,s):n[t]}},23936:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltipState=void 0;const r=o(i(59284)),a=l(i(37100));t.default=r.forwardRef((function({id:e,config:t,className:i="",debug:s,onChartLoad:n,onSelect:o,update:l="dynamic"},u){const c=r.useRef(null),d=r.useRef();r.useImperativeHandle(u,(()=>({yagr:()=>d.current,domElement:()=>c.current})));const h=r.useCallback((()=>{if(c.current){t.hooks=t.hooks||{};const e=t.hooks;if(n){const t=e.load||[];t.push((({chart:e,meta:t})=>{n(e,t)})),e.load=t}if(o){const t=e.onSelect||[];t.push((({from:e,to:t})=>o(e,t))),e.onSelect=t}d.current=new a.default(c.current,t)}}),[]);r.useEffect((()=>{var e;t&&(null===(e=d.current)||void 0===e||e.setConfig(t,"hard"===l))}),[t]),r.useEffect((()=>(h(),()=>{var e;null===(e=d.current)||void 0===e||e.dispose(),d.current=void 0})),[]);const f=r.useCallback((e=>{if(d.current&&(e.ctrlKey||e.metaKey)&&e.shiftKey){const e=d.current.toDataUrl().replace("image/png","image/octet-stream"),t=document.createElement("a");t.href=e,t.download=((null===s||void 0===s?void 0:s.filename)||d.current.id)+".png",t.click()}}),[e,d]);return r.createElement("div",{id:e,onClick:f,className:`yagr ${i}`,ref:c})}));t.useTooltipState=(e,t)=>{r.useEffect((()=>{var i;if(!e.current||!t.current)return;const s=t.current,n=e.current.yagr();n&&(null===(i=null===n||void 0===n?void 0:n.plugins)||void 0===i?void 0:i.tooltip)&&(n.plugins.tooltip.on("render",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})))}),[e.current])}},24793:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configureAxes=t.updateAxis=t.getRedrawOptionsForAxesUpdate=t.getTimeFormatter=t.getDefaultNumberFormatter=t.getAxisPositioning=void 0;const r=l(i(16381)),a=o(i(46976)),u=i(50497),c=i(48643),d={right:c.Axis.Side.Right,top:c.Axis.Side.Top,bottom:c.Axis.Side.Bottom,left:c.Axis.Side.Left},h={left:c.Axis.Align.Right,right:c.Axis.Align.Left,top:void 0,bottom:void 0};t.getAxisPositioning=(e,t)=>({side:e?d[e]:c.Axis.Side.Left,align:t||(e?h[e]:void 0)});t.getDefaultNumberFormatter=(e,t="")=>i=>{if((0,u.isNil)(i))return t;if(0===i)return"0";const s=Math.abs(i),n="auto"===e?2:e,[o,l]=(0,u.getUnitSuffix)(s),r=i/o;return("auto"===e?String(r).replace(/\.(\d{5,})/,(e=>e.slice(0,6))):(0,u.toFixed)(r,n))+l};const f=e=>{const i=e.precision,s=(0,t.getDefaultNumberFormatter)("number"===typeof i?i:i||"auto","");return function(e,t){return t.map(s)}},p=r.default.fmtDate("{DD}.{MM}.{YYYY}"),g=r.default.fmtDate("{HH}:{mm}:{ss}"),m=r.default.fmtDate("{mm}:{ss}"),_=r.default.fmtDate("{mm}:{ss}.{fff}"),v=r.default.fmtDate("{YYYY}");function y(e,t){let i=p;const s=Math.ceil(e/t);return s<=a.SECOND?i=_:s<=a.MINUTE?i=m:s<=a.DAY?i=g:s>=a.YEAR&&(i=v),e=>i(new Date(e))}function b(e,i){var s,n;const o=i.utils.theme,l=i.config,r={splits:e.splitsCount?(c=e.splitsCount,(e,t,i,s)=>{if(c<=2)return[i,s];const n=Math.abs(s-i)/(c-1);let o=n;const l=[];for(;i+o<s;)l.push(i+o),o+=n;return[i,...l,s]}):e.splits,show:"undefined"===typeof e.show||e.show,label:e.label||void 0,labelSize:e.labelSize||a.Y_AXIS_LABEL_SIZE,labelFont:e.labelFont||a.AXIS_LABEL_FONT,font:e.font||a.AXIS_VALUES_FONT,stroke:e.stroke||(()=>o.AXIS_STROKE),ticks:e.ticks?{...o.Y_AXIS_TICKS,...e.ticks}:o.Y_AXIS_TICKS,grid:l.grid||e.grid||o.GRID};var c;return e.scale===a.DEFAULT_X_SCALE?Object.assign(r,{getFormatter:y,gap:null!==(s=e.gap)&&void 0!==s?s:a.X_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||(()=>a.X_AXIS_SIZE),values:e.values||(0,t.getTimeFormatter)(l),ticks:e.ticks?{...o.X_AXIS_TICKS,...e.ticks}:o.X_AXIS_TICKS,scale:a.DEFAULT_X_SCALE,space:e.space||(()=>a.X_AXIS_SPACE),incrs:e.incrs||(()=>a.X_AXIS_INCRS.map((e=>e*(l.chart.timeMultiplier||a.TIME_MULTIPLIER)))),side:2,stroke:e.stroke||(()=>o.AXIS_STROKE)}):(Object.assign(r,{gap:null!==(n=e.gap)&&void 0!==n?n:a.Y_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||a.Y_AXIS_SIZE,values:e.values||f(e),scale:e.scale||a.DEFAULT_Y_SCALE,getFormatter:()=>(0,t.getDefaultNumberFormatter)("number"===typeof e.precision?e.precision:e.precision||"auto",""),...(0,t.getAxisPositioning)(e.side||"left",e.align)}),e.space&&(r.space=e.space),r)}function w(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(0,u.px)(t=Math.round((i=Number(s))*window.devicePixelRatio)))),t,i]}t.getTimeFormatter=e=>{const t=e.chart.timeMultiplier||a.TIME_MULTIPLIER;return(e,i)=>{const s=y((i[i.length-1]-i[0])/t,i.length);return i.map((e=>s(e/t)))}},t.getRedrawOptionsForAxesUpdate=function(e){const t=[!1,!0];return Object.values(e).forEach((e=>{["align","side","size","label","labelFont","labelGap","labelSize"].some((t=>void 0!==e[t]))&&(t[1]=!0)})),t},t.updateAxis=function(e,t,i){var s,n,o;const l=b({...i,font:t.font},e);l.ticks={...t.ticks,...l.ticks},l.grid={...t.grid,...l.grid},l.border={...t.border,...l.border},l.splits=l.splits||t.splits,i.font&&i.font!==(null===(s=t.font)||void 0===s?void 0:s[0])&&(l.font=w(i.font)),i.labelFont&&i.labelFont!==(null===(n=t.labelFont)||void 0===n?void 0:n[0])&&(l.labelFont=w(i.labelFont)),Object.assign(t,l),null===(o=e.plugins.plotLines)||void 0===o||o.update(i.plotLines,i.scale)},t.configureAxes=function(e,t){const i=[];Object.entries(t.axes).forEach((([t,s])=>{i.push(b({...s,scale:t},e))}));const s=a.DEFAULT_X_SCALE,n=a.DEFAULT_Y_SCALE;return t.axes[s]||i.push(b({scale:s},e)),i.find((({scale:e})=>e!==s))||i.push(b({scale:n},e)),i}},25700:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(48840)),o=i(46976),l=i(50497),r=i(74947),a=i(48130),u=(e,t,i,s,n)=>{var o,r,a;const u=Array.isArray(i.$c)?i.$c:t;let c=u[s];if(n&&c===n.value){const e=null!==(o=n.snapToValues)&&void 0!==o?o:"closest";c=u[(0,l.findDataIdx)(u,i,s,e,n.value)]}else if(null===c){const t=null!==(r=e.snapToValues)&&void 0!==r?r:"closest",n=null!==(a=i.snapToValues)&&void 0!==a?a:t;c=u[(0,l.findDataIdx)(u,i,s,n,null)]}return c},c={maxLines:o.TOOLTIP_DEFAULT_MAX_LINES,highlight:!0,sum:!1,render:r.renderTooltip,pinable:!0,strategy:"pin",sort:void 0,showIndicies:!1,hideNoData:!1,className:"yagr-tooltip_default",xOffset:o.TOOLTIP_X_OFFSET,yOffset:o.TOOLTIP_Y_OFFSET,virtual:!1,showEmpty:!1,onUpdate:"reset"};class d{constructor(e,t={}){var i,s;this.handlers={init:[],mount:[],show:[],pin:[],unpin:[],hide:[],render:[],destroy:[],reset:[]},this.placement=n.default,this.renderTooltipCloses=()=>{},this.skipNextMouseUp=!1,this.emit=(e,t)=>{this.handlers[e].forEach((i=>{i(this.tOverlay,{state:this.state,actions:{pin:this.pin,show:this.show,hide:this.hide,dispose:this.dispose,reset:this.reset},data:t,yagr:this.yagr,event:e})}))},this.reset=()=>{var e;"none"!==this.opts.onUpdate?(this.state.visible&&this.hide(),this.state.pinned&&this.pin(!1),this.emit("reset")):null===(e=this.yagr.plugins.cursor)||void 0===e||e.pin(!1)},this.show=()=>{const e=!this.state.visible;this.state.visible=!0,this.tOverlay.style.display="block",e&&this.emit("show")},this.hide=()=>{const e=this.state.visible;this.state.visible=!1,this.tOverlay.style.display="none",this.emit("hide"),e&&this.emit("show")},this.pin=(e,t)=>{var i;this.state.pinned=e;const s=this.state.range||[];if(null===(i=this.yagr.plugins.cursor)||void 0===i||i.pin(e&&(null===s[1]||s.length<2)),this.opts.virtual)return this.emit(e?"pin":"unpin");t&&this.placement(this.tOverlay,{left:t.x+this.bLeft,top:this.bTop+t.y-(this.opts.yOffset||0)},"right",{bound:this.bound,xOffset:this.opts.xOffset,yOffset:this.opts.yOffset});const n=this.tOverlay.querySelector("._tooltip-list");e?(this.state.visible||this.show(),this.tOverlay.classList.add("yagr-tooltip_pinned"),n&&(null===n||void 0===n?void 0:n.clientHeight)&&(n.style.height=(0,l.px)(n.clientHeight)),this.opts.render===r.renderTooltip&&(document.addEventListener("mousemove",this.checkFocus),document.addEventListener("mousedown",this.detectClickOutside))):(this.tOverlay.classList.remove("yagr-tooltip_pinned"),this.opts.render===r.renderTooltip&&(document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside))),this.emit(e?"pin":"unpin")},this.checkFocus=e=>{const t=e.target;let i;t&&this.tOverlay.contains(t)&&t.classList.contains("yagr-tooltip__item")&&(i=t.dataset.series);const s=i?this.yagr.uplot.series[Number(i)]:null;i&&s?(this.state.focusedSeries=i,this.yagr.setFocus(s.id,!0)):this.state.focusedSeries&&(this.state.focusedSeries=null,this.yagr.setFocus(null,!0))},this.render=e=>{const t=this.yagr.uplot;let{left:i,top:s}=e;const{idx:n}=e,{opts:r,state:d}=this;if(r.show&&"function"===typeof r.show&&!1===r.show(this.yagr))return void this.hide();(i<0||s<0)&&!d.pinned&&this.isNotInDrag&&this.hide(),s=(0,l.inBetween)(s,0,t.bbox.top+t.bbox.height),i=(0,l.inBetween)(i,0,t.bbox.left+t.bbox.width);const{data:h}=t;if(null===h||(0,l.isNil)(n)||void 0===s)return;const f=h[0][n],p={},g={},m={};let _=t.series.length-1;for(;_>=1;){const e=t.series[_];if(!e.show){_-=1;continue}const i=e.scale||o.DEFAULT_Y_SCALE;m[i]=m[i]||[],m[i].push(_),_-=1}Object.entries(m).forEach((([e,o])=>{var c;g[e]=g[e]||{rows:[]};const d=g[e],h=Number(t.posToVal(s,e).toFixed(2)),f=(0,a.getOptionValue)(r.value,e);for(const i of o){const s=t.data[i],o=t.series[i];let l=u(this.yagr.config.cursor,s,o,n,this.interpolation),h=l;"string"===typeof l&&(h=l,l=null),(0,a.getOptionValue)(r.sum,e)&&(p[e]=p[e]||0,p[e]+=l||0);const g=s[n],m=o.$c&&o.$c[n]===this.stripValue?l:g;if(null===l&&r.hideNoData||!1===o.showInTooltip)continue;const _=null!==(c=o.precision)&&void 0!==c?c:(0,a.getOptionValue)(r.precision,e),v=o.formatter?o.formatter(h,o):f(h,_),y={id:o.id,name:o.name,dataValue:o.$c[n],originalValue:l,value:v,y:m,displayY:g,color:this.yagr.getSerieLegendColor(o),seriesIdx:i,rowIdx:d.rows.length?d.rows[d.rows.length-1].rowIdx+1:0};o.normalizedData&&(y.transformed=o.normalizedData[n]),o._transformed&&(y.transformed=s[n]),r.omitBy&&r.omitBy(y)||d.rows.push(y)}if((0,a.getOptionValue)(r.highlight,e)&&d.rows.length){const u=(0,a.getOptionValue)(r.tracking,e);let c=0;"area"===u?c=(0,l.findInRange)(d,h,(0,a.getOptionValue)(r.stickToRanges,e)):"sticky"===u?c=(0,l.findSticky)(d,h):"function"===typeof u&&(c=u(d,h,{x:t.posToVal(i,"x"),y:t.posToVal(s,e),idx:n,scale:e,series:this.yagr.series,serieIndicies:o,interpolation:this.interpolation})),null!==c&&(d.rows[c].active=!0)}const m=(0,a.getOptionValue)(r.sort,e);m&&d.rows.sort(m)}));if(!Object.values(g).some((({rows:e})=>e.length>0))&&!r.showEmpty)return void this.hide();this.onMouseEnter();const v=this.over.getBoundingClientRect();this.bLeft=v.left,this.bTop=v.top,this.bWidth=v.width;const y={left:i+this.bLeft,top:this.bTop+s-(r.yOffset||0)};this.renderTooltipCloses=()=>{const e={scales:Object.entries(g).map((([e,t])=>({scale:e,rows:t.rows,sum:p[e]}))),options:r,x:f},t=Object.values(g).some((({rows:e})=>e.filter((({id:e})=>{var t;return null===(t=this.yagr.getSeriesById(e))||void 0===t?void 0:t.show})).length>0));t||r.showEmpty?(r.virtual||(this.tOverlay.innerHTML=r.render({...e,state:d,yagr:this.yagr,defaultRender:c.render}),this.placement(this.tOverlay,y,"right",{bound:this.bound,xOffset:r.xOffset,yOffset:r.yOffset})),this.emit("render",{...e,anchor:y})):this.hide()},d.pinned||this.renderTooltipCloses()},this.initWithUplot=e=>{this.over=e.root.querySelector(".u-over"),this.over.addEventListener("mousedown",this.onMouseDown),this.over.addEventListener("mousemove",this.onMouseMove),this.over.addEventListener("mouseenter",this.onMouseEnter),this.over.addEventListener("mouseleave",this.onMouseLeave),document.addEventListener("mouseup",this.onMouseUp)},this.setSize=()=>{const e=this.over.getBoundingClientRect();this.bLeft=e.left,this.bTop=e.top},this.dispose=()=>{this.over.removeEventListener("mousedown",this.onMouseDown),this.over.removeEventListener("mousemove",this.onMouseMove),this.over.removeEventListener("mouseenter",this.onMouseEnter),this.over.removeEventListener("mouseleave",this.onMouseLeave),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside),this.tOverlay.remove(),this.state.mounted=!1,this.emit("destroy")},this.updateOptions=e=>{Object.assign(this.opts,e),this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`},this.on=(e,t)=>{this.handlers[e].push(t)},this.off=(e,t)=>{this.handlers[e]=this.handlers[e].filter((e=>e!==t))},this.detectClickOutside=e=>{const t=e.target;if(t instanceof Element){const e=t&&this.tOverlay.contains(t),i=t&&this.over.contains(t);e||i||(this.pin(!1),this.hide())}},this.onMouseDown=e=>{this.state.range=[this.getCursorPosition(),null],this.state.pinned&&(this.pin(!1),this.hide(),this.render({left:e.clientX-this.bLeft,top:e.clientY-this.bTop,idx:this.yagr.uplot.posToIdx(e.clientX-this.bLeft)}),this.skipNextMouseUp=!0)},this.onMouseMove=()=>{var e;(null===(e=this.state.range)||void 0===e?void 0:e.length)&&(this.state.range[1]=this.getCursorPosition())},this.setCursorLeaved=e=>{const t=this.over.getBoundingClientRect(),i=e.clientX,s=this.state.range,n=s[0],o=i-t.left>n.clientX,l=this.yagr.config.timeline;let r;o?(s[1]={clientX:this.bWidth,value:this.yagr.uplot.posToVal(this.bWidth,"x"),idx:l.length-1},r=s[1]):(s[1]=s[0],s[0]={clientX:0,value:this.yagr.uplot.posToVal(0,"x"),idx:0},r=s[0]),this.yagr.uplot.setCursor({left:r.clientX,top:e.clientY-t.top})},this.onMouseUp=e=>{if(null===this.state.range)return;const[t]=this.state.range||[];let i;if(i=e.target===this.over?this.getCursorPosition():this.state.range[1],"none"===this.opts.strategy)return;const s=t&&t.clientX===(null===i||void 0===i?void 0:i.clientX),n=t&&t.clientX!==(null===i||void 0===i?void 0:i.clientX),o=this.opts.strategy;(s&&!this.skipNextMouseUp&&"drag"!==o||n&&("all"===o||"drag"===o))&&(this.pin(!this.state.pinned),this.show(),this.renderTooltipCloses()),this.state.range=null,this.skipNextMouseUp=!1},this.onMouseEnter=()=>{this.show()},this.onMouseLeave=e=>{var t;const i=this.state.pinned;(null===(t=this.state.range)||void 0===t?void 0:t[0])&&this.setCursorLeaved(e),!i&&this.isNotInDrag&&this.hide()},this.defaultTooltipValueFormatter=(e,t)=>{const i=this.yagr.config.processing||{};return"string"===typeof e?i.nullValues&&i.nullValues.hasOwnProperty(e)?i.nullValues[e]:"-":"number"===typeof e?e.toFixed("number"===typeof t?t:"number"===typeof this.opts.precision?this.opts.precision:2):"-"},this.getCursorPosition=()=>{const e=this.yagr.uplot.cursor.left;return void 0===e?null:{clientX:e,value:this.yagr.uplot.posToVal(e,"x"),idx:this.yagr.uplot.posToIdx(e)}},this.yagr=e,this.over=null===(i=null===e||void 0===e?void 0:e.uplot)||void 0===i?void 0:i.over,this.opts={...c,strategy:t.pinable?"pin":c.strategy,tracking:"area"===(null===(s=e.config.chart.series)||void 0===s?void 0:s.type)?"area":"sticky",value:this.defaultTooltipValueFormatter,...t},this.bound=this.opts.boundClassName&&document.querySelector(this.opts.boundClassName)||document.body,this.renderNode=this.opts.renderClassName&&document.querySelector(this.opts.renderClassName)||document.body,this.tOverlay=document.createElement("div"),this.tOverlay.id=`${e.id}_tooltip`,this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`,this.tOverlay.style.display="none",this.state={mounted:!1,pinned:!1,visible:!1,range:null,focusedSeries:null},this.bLeft=0,this.bTop=0,this.bWidth=0,this.opts.virtual?this.placement=()=>{}:(this.renderNode.appendChild(this.tOverlay),this.state.mounted=!0,this.emit("mount"))}get interpolation(){var e;return null===(e=this.yagr.config.processing)||void 0===e?void 0:e.interpolation}get stripValue(){return this.interpolation?this.interpolation.value:void 0}get isNotInDrag(){var e;return"none"===this.opts.strategy||"pin"===this.opts.strategy||!(null===(e=this.state.range)||void 0===e?void 0:e[1])}}t.default=function(e,t={}){const i=new d(e,t),s=()=>({hooks:{destroy:()=>{i.dispose()},init:e=>{i.initWithUplot(e)},setSize:()=>{i.setSize()},setCursor:e=>{i.render(e.cursor)}}}),n=s();return{state:i.state,pin:i.pin,show:i.show,hide:i.hide,uplot:n,display:i.render,updateOptions:i.updateOptions,on:i.on,off:i.off,tooltip:i,dispose:i.dispose,reInit:function(e){const t=s();i.reset(),e.hooks.init.push(t.hooks.init),e.hooks.destroy.push(t.hooks.destroy),e.hooks.setSize.push(t.hooks.setSize),e.hooks.setCursor.push(t.hooks.setCursor)},reset:i.reset}}},27658:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByAxes=void 0;const l=o(i(46976));t.getPaddingByAxes=function(e){let t=!1,i=!1;return e.axes?e.axes.forEach((e=>{e.scale!==l.DEFAULT_X_SCALE&&(void 0!==e.side&&3!==e.side||(t=!0),1===e.side&&(i=!0))})):t=!0,t&&!i?l.PADDING_LEFT:i&&!t?l.PADDING_RIGHT:l.PADDING_BOTH}},28265:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.overrideSeriesInUpdate=t.configureSeries=void 0;const l=o(i(46976)),r=i(50497),a=i(20500),u=i(67903),c=i(88274);function d(e,t,i,s){if(void 0!==e[i])return e[i];const n=t.config.chart.series;return n&&i in n?n[i]:s}t.configureSeries=function(e,t,i){var s,n;const o=d(t,e,"type","line"),h={...t,type:o,show:null===(s=t.show)||void 0===s||s,name:t.name||`${e.utils.i18n("series")} ${i+1}`,color:t.color?e.utils.colors.parse(t.color):e.utils.theme.DEFAULT_LINE_COLOR,id:(void 0===t.id?t.name:String(t.id))||(0,r.genId)(),$c:t.data,scale:t.scale||l.DEFAULT_Y_SCALE,count:0,sum:0,avg:0,getFocusedColor:a.getFocusedColor};h.points=h.points||{};const f=(0,a.getSerieFocusColors)(e,"color");return"area"===h.type&&(h.lineColor=e.utils.colors.parse(d(t,e,"lineColor",l.SERIE_AREA_BORDER_COLOR)),h.lineWidth=d(t,e,"lineWidth",l.SERIE_AREA_BORDER_WIDTH),h.fill=f,h.stroke=(0,a.getSerieFocusColors)(e,"lineColor"),h.width=h.lineWidth,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"line"===h.type&&(h.width=d(t,e,"width",l.SERIE_LINE_WIDTH),h.width=h.width||l.SERIE_LINE_WIDTH,h.stroke=f,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"column"===h.type&&(h.stroke=f,h.fill=f,h.points.show=!1,h.width=null!==(n=h.width)&&void 0!==n?n:0,h.renderOptions=d(h,e,"renderOptions")),"dots"===h.type&&(h.stroke=()=>h.color,h.fill=f,h.width=2,h.pointsSize=d(h,e,"pointsSize",l.DEFAULT_POINT_SIZE)),h.paths=c.pathsRenderer,h};t.overrideSeriesInUpdate=(e,t)=>{var i,s,n,o,l,r,a,u,c,d,h,f;e.$c=null!==(i=t.$c)&&void 0!==i?i:e.$c,e.show=null!==(s=t.show)&&void 0!==s?s:e.show,e.data=null!==(n=t.data)&&void 0!==n?n:e.data,e.width=null!==(o=t.width)&&void 0!==o?o:e.width,e.pointsSize=null!==(l=t.pointsSize)&&void 0!==l?l:e.pointsSize,e.color=null!==(r=t.color)&&void 0!==r?r:e.color,e.lineColor=null!==(a=t.lineColor)&&void 0!==a?a:e.lineColor,e.lineWidth=null!==(u=t.lineWidth)&&void 0!==u?u:e.lineWidth,e.stroke=null!==(c=t.stroke)&&void 0!==c?c:e.stroke,e.getFocusedColor=null!==(d=t.getFocusedColor)&&void 0!==d?d:e.getFocusedColor,e.formatter=null!==(h=t.formatter)&&void 0!==h?h:e.formatter,e.paths=null!==(f=t.paths)&&void 0!==f?f:e.paths}},32532:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchMixin=void 0;const n=s(i(16381)),o=s(i(72168));t.BatchMixin=class{initMixin(){this._batch={active:!1,fns:[]}}batch(e){var t;return this._batch.active?e(this._batch):(this._batch.active=!0,e(this._batch),this._batch.reinit?this.fullUpdate():(this._batch.redrawLegend&&(null===(t=this.plugins.legend)||void 0===t||t.redraw()),this._batch.reopt&&this.createUplotOptions(!0),this._batch.recalc&&this.inStage("processing",(()=>{this.transformSeries()})).inStage("listen"),this._batch.fns.length&&this.uplot.batch((()=>this._batch.fns.forEach((e=>e(this._batch))))),this._batch.redraw&&this.uplot&&this.redraw(...this._batch.redraw),void(this._batch={active:!1,fns:[]})))}fullUpdate(){let e,t;this.inStage("dispose",(()=>{var i;if(this.uplot){const i=this.uplot.cursor;e=i.left,t=i.top,this.uplot.destroy()}null===(i=this.plugins.legend)||void 0===i||i.destroy()})).inStage("config",(()=>{this.plugins.legend=new o.default,this._batch={active:!1,fns:[]},this.createUplotOptions(!0),this.options=this.config.editUplotOptions?this.config.editUplotOptions(this.options):this.options})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new n.default(this.options,this.series,this.initRender),e&&t&&e>0&&t>0&&this.uplot.setCursor({left:e,top:t}),this.state.subscribed||this.unsubscribe()})).inStage("listen")}}},37100:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(i(16381)),a=l(i(72168)),u=i(50497),c=l(i(20500)),d=o(i(46976)),h=l(i(576)),f=i(2836),p=i(78229),g=i(65781),m=i(87102),_=i(32532);class v{get isEmpty(){return this.state.isEmptyDataSet}constructor(e,t){this.plugins={},this._meta={},this._uHooks={},this.init=()=>{var e;(null===(e=this.config.chart.size)||void 0===e?void 0:e.adaptive)&&!this.resizeOb&&(this.resizeOb=new ResizeObserver((0,u.debounce)(this.onResize,this.config.chart.size.resizeDebounceMs||100)),this.resizeOb.observe(this.root)),this.config.hooks.dispose||(this.config.hooks.dispose=[]),this.unsubscribe(),this.config.hooks.dispose.push(this.trackMouse())},this.execHooks=(e,...t)=>{const i=this.config.hooks[e];if(Array.isArray(i))for(const s of i)s&&"function"===typeof s&&s(...t)},this.initRender=(e,t)=>{var i,s,n;const o=null===(i=this.config.legend)||void 0===i?void 0:i.position;this.root.firstChild?o&&"bottom"!==o?this.root.appendChild(e.root):this.root.insertBefore(e.root,this.root.firstChild):o&&"bottom"!==o?this.root.insertBefore(e.root,this.root.firstChild):this.root.appendChild(e.root),(null===(s=this.config.legend)||void 0===s?void 0:s.show)&&(null===(n=this.plugins.legend)||void 0===n||n.init(e),this.reflow(!1)),this.initTitle(),t()},this.onResize=e=>{var t;const[i]=e;this._cache.height===i.contentRect.height&&this._cache.width===i.contentRect.width||(null===(t=this.plugins.tooltip)||void 0===t||t.reset(),this.reflow(),this.execHooks("resize",{entries:e,chart:this}))},this.initMixins(),this._startTime=performance.now(),this.state={isEmptyDataSet:!1,isMouseOver:!1,stage:"config",y2uIdx:{},subscribed:!1};const i=Object.assign({title:{},data:[],axes:{},series:[],scales:{},hooks:{},settings:{},chart:{},cursor:{},plugins:{},legend:{show:!1},tooltip:{show:!0},grid:null,markers:{}},t);this.config=i,this.inStage("config",(()=>{var t;this.id=e.id||(0,u.genId)(),this.root=e,this.root.classList.add("yagr"),this.root.id||(this.root.id=this.id);const s=new c.default,n=this.config.cursor.sync,o=this.config.chart;o.series||(o.series={type:"line"}),o.size||(o.size={adaptive:!0}),o.appearance||(o.appearance={locale:"en"}),o.select||(o.select={}),this.utils={colors:s,i18n:(0,h.default)((null===(t=i.chart.appearance)||void 0===t?void 0:t.locale)||"en"),theme:new d.default(s)},s.setContext(e),n&&(this.utils.sync=r.default.sync("string"===typeof n?n:d.DEFAULT_SYNC_KEY)),!o.size.adaptive&&o.size.width&&o.size.height&&(e.style.width=(0,u.px)(o.size.width),e.style.height=(0,u.px)(o.size.height)),this.plugins.legend=new a.default,this.setTheme(o.appearance.theme||"light"),this.createUplotOptions(),this._cache={height:this.options.height,width:this.options.width},i.editUplotOptions&&(this.options=i.editUplotOptions(this.options))})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new r.default(this.options,this.series,this.initRender),this.canvas=e.querySelector("canvas"),this.init();const t=performance.now()-this._startTime;this._meta.processTime=t})).inStage("render")}redraw(e=!0,t=!0){this.uplot.redraw(e,t)}getSeriesById(e){return this.uplot.series[this.state.y2uIdx[e]]}getSerieLegendColor(e){const{legendColorKey:t,color:i,lineColor:s}=e;let n=i;switch(t){case"lineColor":s&&(n=s);break;case"color":n=i}return n}dispose(){var e,t,i,s;this.resizeOb&&this.resizeOb.unobserve(this.root),this.unsubscribe(),null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t||t.dispose(),null===(s=null===(i=this.plugins)||void 0===i?void 0:i.legend)||void 0===s||s.destroy(),this.uplot.destroy(),this._uHooks={},this.execHooks("dispose",{chart:this})}toDataUrl(){return this.canvas.toDataURL("img/png")}subscribe(){var e;this.state.subscribed||(null===(e=this.utils.sync)||void 0===e||e.sub(this.uplot),this.state.subscribed=!0)}unsubscribe(){var e;null===(e=this.utils.sync)||void 0===e||e.unsub(this.uplot),this.state.subscribed=!1}inStage(e,t){this.state.stage,this.execHooks("stage",{chart:this,stage:e});try{t&&t()}catch(i){console.error(i),this.onError(i)}return this}initTitle(){if(this.config.title&&this.config.title.fontSize){const e=this.config.title.fontSize,t=this.root.querySelector(".u-title");t.setAttribute("style",`font-size:${e}px;line-height:${e}px;`),t.innerHTML=this.config.title.text}}onError(e){return this.execHooks("error",{stage:this.state.stage,error:e,chart:this}),e}trackMouse(){const e=()=>{this.state.isMouseOver=!0},t=()=>{this.state.isMouseOver=!1};return this.root.addEventListener("mouseover",e),this.root.addEventListener("mouseleave",t),()=>{this.root.removeEventListener("mouseover",e),this.root.removeEventListener("mouseleave",t)}}get clientHeight(){var e;const t=this.config.title.text?(this.config.title.fontSize||d.DEFAULT_TITLE_FONT_SIZE)+8:0;return this.root.clientHeight-t-((null===(e=this.plugins.legend)||void 0===e?void 0:e.state.totalSpace)||0)}reflow(e=!0){const t=this.root.clientWidth,i=this.clientHeight;this._cache.width=t,this.options.width=t,this._cache.height=i,this.options.height=i,e&&this.uplot.setSize({width:this.options.width,height:this.options.height}),e&&this.uplot.redraw()}}(0,m.applyMixins)(v,[f.CreateUplotOptionsMixin,p.TransformSeriesMixin,g.DynamicUpdatesMixin,_.BatchMixin]),t.default=v},46976:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_MULTIPLIER=t.TOOLTIP_DEFAULT_MAX_LINES=t.TOOLTIP_X_OFFSET=t.TOOLTIP_Y_OFFSET=t.MIN_SELECTION_WIDTH=t.CURSOR_STYLE=t.MARKER_DIAMETER=t.SERIE_AREA_BORDER_WIDTH=t.SERIE_AREA_BORDER_COLOR=t.SERIE_LINE_WIDTH=t.SERIE_COLOR=t.PADDING_BOTH=t.PADDING_RIGHT=t.PADDING_LEFT=t.BARS_DRAW_MAX=t.BARS_DRAW_FACTOR=t.TYPES_ORDER=t.X_AXIS_INCRS=t.X_AXIS_SPACE=t.X_AXIS_SIZE=t.X_AXIS_TICK_GAP=t.DECADE=t.YEAR=t.DAY=t.HOUR=t.MINUTE=t.SECOND=t.Y_AXIS_LABEL_SIZE=t.Y_AXIS_SIZE=t.DEFAULT_Y_AXIS_LABEL_PADDING=t.DEFAULT_Y_AXIS_PADDING=t.DEFAULT_Y_AXIS_SIZE=t.Y_AXIS_TICK_GAP=t.AXIS_VALUES_FONT=t.AXIS_LABEL_FONT=t.DEFAULT_AXIS_FONT_SIZE=t.DARK_DEFAULT_LINE_COLOR=t.LIGHT_DEFAULT_LINE_COLOR=t.DEFAULT_TITLE_FONT_SIZE=t.DEFAULT_SYNC_KEY=t.DEFAULT_POINT_SIZE=t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=t.DEFAULT_SCALE_MIN_RANGE=t.DEFAULT_Y_AXIS_OFFSET=t.DEFAULT_MAX_TICKS=t.DEFAULT_CANVAS_PIXEL_RATIO=t.DEFAULT_FOCUS_ALPHA=t.DEFAULT_Y_SCALE=t.DEFAULT_X_SCALE=t.DEFAULT_X_SERIE_NAME=void 0,t.DEFAULT_X_SERIE_NAME="date",t.DEFAULT_X_SCALE="x",t.DEFAULT_Y_SCALE="y",t.DEFAULT_FOCUS_ALPHA=.3,t.DEFAULT_CANVAS_PIXEL_RATIO="undefined"===typeof window?1:window.devicePixelRatio,t.DEFAULT_MAX_TICKS=5,t.DEFAULT_Y_AXIS_OFFSET=.05,t.DEFAULT_SCALE_MIN_RANGE=.01,t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=.001,t.DEFAULT_POINT_SIZE=t.DEFAULT_CANVAS_PIXEL_RATIO>=2?4:2,t.DEFAULT_SYNC_KEY="sync",t.DEFAULT_TITLE_FONT_SIZE=14,t.LIGHT_DEFAULT_LINE_COLOR="#222222",t.DARK_DEFAULT_LINE_COLOR="#eeeeee",t.DEFAULT_AXIS_FONT_SIZE=11,t.AXIS_LABEL_FONT="normal 11px Lucida Grande, Arial, Helvetica, sans-serif",t.AXIS_VALUES_FONT="11px Lucida Grande, Arial, Helvetica, sans-serif",t.Y_AXIS_TICK_GAP=6,t.DEFAULT_Y_AXIS_SIZE=12,t.DEFAULT_Y_AXIS_PADDING=12,t.DEFAULT_Y_AXIS_LABEL_PADDING=2;t.Y_AXIS_SIZE=(e,i,s)=>{if(!i)return t.DEFAULT_Y_AXIS_SIZE;const n=i.reduce(((e,t)=>e.length>t.length?e:t)),{ctx:o}=e;o.save();const l=e.axes[s];o.font=l.font?l.font[0]:t.AXIS_VALUES_FONT;const{width:r}=o.measureText(n);o.restore();let a=0;if(l.label){a=l.labelSize||t.DEFAULT_AXIS_FONT_SIZE,o.font=l.labelFont?l.labelFont[0]:t.AXIS_LABEL_FONT;const{fontBoundingBoxAscent:e}=o.measureText(l.label);a=e,o.restore()}return a?r/t.DEFAULT_CANVAS_PIXEL_RATIO+a/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_LABEL_PADDING:r/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_PADDING},t.Y_AXIS_LABEL_SIZE=11,t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.YEAR=365*t.DAY,t.DECADE=10*t.YEAR,t.X_AXIS_TICK_GAP=6,t.X_AXIS_SIZE=32,t.X_AXIS_SPACE=80,t.X_AXIS_INCRS=[1,10,50,100,200,500,t.SECOND,2*t.SECOND,5*t.SECOND,10*t.SECOND,15*t.SECOND,30*t.SECOND,t.MINUTE,5*t.MINUTE,10*t.MINUTE,30*t.MINUTE,t.HOUR,2*t.HOUR,3*t.HOUR,4*t.HOUR,6*t.HOUR,12*t.HOUR,t.DAY,2*t.DAY,3*t.DAY,5*t.DAY,10*t.DAY,15*t.DAY,30*t.DAY,60*t.DAY,120*t.DAY,180*t.DAY,t.YEAR,2*t.YEAR,5*t.YEAR,10*t.YEAR],t.TYPES_ORDER=["dots","line","area","column"],t.BARS_DRAW_FACTOR=.5,t.BARS_DRAW_MAX=100,t.PADDING_LEFT=[14,14,0,4],t.PADDING_RIGHT=[14,4,0,14],t.PADDING_BOTH=[14,4,0,4],t.SERIE_COLOR="rgba(0, 0, 0, 1)",t.SERIE_LINE_WIDTH=2,t.SERIE_AREA_BORDER_COLOR="rgba(0, 0, 0, 0.2)",t.SERIE_AREA_BORDER_WIDTH=1,t.MARKER_DIAMETER=8,t.CURSOR_STYLE="1px solid #ffa0a0",t.MIN_SELECTION_WIDTH=15;t.default=class{constructor(e,t="light"){this.setTheme(t),this.colors=e}setTheme(e){this.theme=e}get GRID(){return{show:!0,stroke:()=>this.colors.parse("--yagr-grid"),width:1}}get X_AXIS_TICKS(){return{size:8,...this.GRID}}get Y_AXIS_TICKS(){return{size:6,...this.GRID}}get AXIS_STROKE(){return this.colors.parse("--yagr-axis-stroke")}get BACKGROUND(){return this.colors.parse("--yagr-background")}get SHIFT(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?.68:-.6}get DEFAULT_LINE_COLOR(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?t.LIGHT_DEFAULT_LINE_COLOR:t.DARK_DEFAULT_LINE_COLOR}},t.TOOLTIP_Y_OFFSET=24,t.TOOLTIP_X_OFFSET=24,t.TOOLTIP_DEFAULT_MAX_LINES=10,t.TIME_MULTIPLIER=1},48130:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=t.getOptionValue=void 0,t.getOptionValue=function(e,t){return"object"===typeof e?e[t]:e},t.escapeHTML=function(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}},48643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=t.Scale=t.DrawOrderKey=void 0,t.DrawOrderKey={Series:"series",Axes:"axes"},t.Scale={Distr:{Linear:1,Ordinal:2,Logarithmic:3,ArcSinh:4,Custom:5}},t.Axis={Side:{Top:0,Right:1,Bottom:2,Left:3},Align:{Right:0,Left:1}}},48840:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(50497),n={size:["height","width"],clientSize:["clientHeight","clientWidth"],offsetSize:["offsetHeight","offsetWidth"],maxSize:["maxHeight","maxWidth"],before:["top","left"],marginBefore:["marginTop","marginLeft"],after:["bottom","right"],marginAfter:["marginBottom","marginRight"],scrollOffset:["pageYOffset","pageXOffset"],offset:["offsetY","offsetY"],offsetOpt:["yOffset","xOffset"],bodyScroll:["scrollHeight","scrollWidth"],inner:["innerHeight","innerWidth"]};function o(e){return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}t.default=function(e,t,i="bottom",l={}){let r;r=t instanceof Element||t instanceof Range?o(e.getBoundingClientRect()):t;const a=Object.assign({top:r.bottom||0,bottom:r.top||0,left:r.right||0,right:r.left||0},r),u={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l.bound&&((l.bound instanceof Element||l.bound instanceof Range)&&(l.bound=o(l.bound.getBoundingClientRect())),Object.assign(u,l.bound));const c=getComputedStyle(e),{primary:d,secondary:h}=Object.entries(n).reduce(((e,[t,s])=>({primary:{...e.primary,[t]:s["top"===i||"bottom"===i?0:1]},secondary:{...e.secondary,[t]:s["top"===i||"bottom"===i?1:0]}})),{primary:{},secondary:{}});e.style.position="absolute",e.style.maxWidth="",e.style.maxHeight="";const f=l[d.offsetOpt]||0,p=parseInt(c[h.marginBefore],10),g=p+parseInt(c[h.marginAfter],10),m=u[h.after]-u[h.before]-g,_=parseInt(c[h.maxSize],10);(!_||m<_)&&(e.style[h.maxSize]=(0,s.px)(m));const v=parseInt(c[d.marginBefore],10)+parseInt(c[d.marginAfter],10),y=a[d.before]-u[d.before]-v,b=u[d.after]-a[d.after]-v-f;(i===d.before&&e[d.offsetSize]>y||i===d.after&&e[d.offsetSize]>b)&&(i=y>b?d.before:d.after);const w=i===d.before?y:b,E=parseInt(c[d.maxSize],10);(!E||w<E)&&(e.style[d.maxSize]=(0,s.px)(w));const S=document.body[d.bodyScroll]-window[d.inner],x=Math.max(Math.min(window[d.scrollOffset],S),0),A=t=>Math.max(u[d.before],Math.min(t,u[d.after]-e[d.offsetSize]-v));i===d.before?(e.style[d.before]=x+A(a[d.before]-e[d.offsetSize]-v)-f+"px",e.style[d.after]="auto"):(e.style[d.before]=(0,s.px)(x+A(a[d.after])+f),e.style[d.after]="auto");const T=document.body[h.bodyScroll]-window[h.inner],O=Math.max(Math.min(window[h.scrollOffset],T),0);var L;return e.style[h.before]=(0,s.px)(O+(L=a[h.before]-p,Math.max(u[h.before],Math.min(L,u[h.after]-e[h.offsetSize]-g)))),e.style[h.after]="auto",e.dataset.side=i,{side:i,anchorRect:a,boundRect:u}}},50497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inBetween=t.isNil=t.asPlain=t.asFn=t.deepIsEqual=t.get=t.html=t.px=t.debounce=t.exec=t.preprocess=t.genId=t.findDataIdx=t.toFixed=t.getUnitSuffix=t.findSticky=t.getSumByIdx=t.findInRange=void 0;t.findInRange=(e,t,i=!0)=>{const s=t>=0;let n=-1/0,o=null,l=1/0,r=null;const a=[];let u=null;for(let c=e.rows.length-1;c>=0;c--){const i=e.rows[c],{displayY:d,rowIdx:h}=i;let f;null!==d&&(d>n&&(n=d,o=i.rowIdx),d<l&&(l=d,r=i.rowIdx)),f=null===d||(s?d<0:d>=0)?null:s?t>d?null:d-t:t<d?null:Math.abs(d-t);const p=null===u?1/0:a[u],g=null===f?p:Math.min(p,f);(null!==f&&p===f||g!==p)&&(u=h)}return null===u&&i?t>=n?o:t<=l?r:null:u};t.getSumByIdx=(e,t,i)=>{let s=0,n=0;for(;n<e.length;){const o=e[e.length-n-1],l=o.$c;if(n+=1,o.scale!==i||!1===o.show)continue;const r=l[t];s+="number"===typeof r?r:0}return s};t.findSticky=(e,t)=>{let i,s,n=0;for(;!s&&n<e.rows.length;){const o=e.rows[n].displayY;null!==o&&(i=n,s=Math.abs(o-(t||0))),n+=1}if(!s||void 0===i)return null;for(n=i+1;n<e.rows.length;n++){const o=e.rows[n].displayY;if(null===o)continue;const l=Math.abs(o-t);s>l&&(s=l,i=n)}return i};t.getUnitSuffix=e=>e>=1e18?[1e18,"E"]:e>=1e15?[1e15,"P"]:e>=1e12?[1e12,"T"]:e>=1e9?[1e9,"G"]:e>=1e6?[1e6,"M"]:e>=1e3?[1e3,"K"]:[1,""],t.toFixed=function(e,t){if(0===t)return parseInt(e);if(Number.isInteger(e))return e+"."+"0".repeat(t);const[i,s]=e.toString().split(".");return s.length>=t?`${i}.${s.slice(0,t)}`:`${i}.${s}${"0".repeat(t-s.length)}`},t.findDataIdx=function(e,t,i,s="closest",n=null){var o;let l=i,r=i;const a=null!==(o=t.snapToValues)&&void 0!==o?o:s;if(!1===a)return i;if("left"===a||"closest"===a)for(let u=i-1;u>=0;u--)if(e[u]!==n){l=u;break}if("right"===a||"closest"===a)for(let u=i+1;u<e.length;u++)if(e[u]!==n){r=u;break}return"left"===a?l:"right"===a?r:r-i>i-l?l:r};const i=(e,t,i,s,n,o,l,r="linear")=>{let a=null;const u=e[o];switch(r){case"linear":if(null===t||null===i)return null;a=t+(u-s)*(i-t)/(n-s),(isNaN(a)||Math.abs(a)===1/0)&&(a=null);break;case"previous":a=t;break;case"next":a=i;break;case"left":a=l[l.length-1]===e.length-1||null===i?null:t;break;case"right":a=0===l[0]?null:i;break;case"closest":a=Math.abs(s-e[o])<Math.abs(n-e[o])?t:i;break;default:a=r}return a};t.genId=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);t.preprocess=(e,t,s)=>{const n=[],o=s.nullValues||{},l=s.interpolation;for(let r=0;r<e.length;r++){const s=e[r],a=[];let u,c,d=[],h=null,f=null;for(let e=0;e<s.length;e++){let n=s[e];if(l&&n===l.value)d.push(e);else{if(o[n]&&(n=null),d.length){f=n,c=t[e];for(const e of d)a[e]=i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type);d=[]}h=n,u=t[e],a.push(n)}}if(f=null,d.length)for(const e of d)a.push(i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type));n.push(a)}return n};t.exec=(e,...t)=>"function"===typeof e?e(...t):e,t.debounce=function(e,t=300){let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};t.px=e=>e+"px";function s(e){return null===e||void 0===e}t.html=(e,t={},i)=>{const s=document.createElement(e);return Object.keys(t).forEach((e=>{const i=t[e];s.setAttribute(e,"object"===typeof i?Object.entries(i).map((([e,t])=>`${e}:${t}`)).join(";"):i)})),i&&("string"===typeof i?s.innerHTML=i:s.appendChild(i)),s},t.get=function(e,t){return t.split(".").reduce(((e,t)=>{var i,s;return null!==(s=null===(i=Object.getOwnPropertyDescriptor(e,t))||void 0===i?void 0:i.value)&&void 0!==s?s:{}}),e)},t.deepIsEqual=function e(t,i){if(typeof t!==typeof i)return!1;if("function"!==typeof t&&"function"!==typeof i||(t=t.toString(),i=i.toString()),"object"!==typeof t||s(t)||s(i))return t===i;const n=t,o=i,l=Object.keys(n),r=Object.keys(o);if(l.length!==r.length)return!1;for(const s of l){if(!o.hasOwnProperty(s))return!1;if(!e(n[s],o[s]))return!1}return!0},t.asFn=function(e){return"function"===typeof e||"undefined"===typeof e?e:()=>e},t.asPlain=function(e){return"function"===typeof e?e():e},t.isNil=s,t.inBetween=function(e,t,i){return e>=t&&e<=i?e:e<t?t:i}},60758:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPoint=void 0;const n=i(46976),o=s(i(20500)),l=i(50497);function r(e,t,i){if(i||(i=t.querySelector("span")),!i)return;t.style.background=`${e.color}`,i.style.background=e.color||n.SERIE_COLOR;const s=o.default.parseRgba(e.color)||[256,256,256,0];t.style.boxShadow=`0px 0px 0px 1px rgba(${s[0]}, ${s[1]}, ${s[2]}, 0.5)`}function a(e,t){const i=e.series[t],s=(0,l.html)("span"),n=(0,l.html)("div",{class:"yagr-point","data-idx":String(t)},i.empty?void 0:s);return i.empty?(n.style.display="none",n):(r(i,n,s),n)}function u(e,t){return void 0===t?Array.from(e.querySelectorAll(".yagr-point")):[e.querySelector(`.yagr-point[data-idx="${t}"]`)]}t.cursorPoint=a,t.default=function(e,t){var i,s,o;const c=e.config.processing||{},d=Boolean(c.interpolation),h=null===(i=c.interpolation)||void 0===i?void 0:i.value,f=!1!==t.snapToValues&&(t.snapToValues||"closest"),p=!!d&&(null!==(o=null===(s=c.interpolation)||void 0===s?void 0:s.snapToValues)&&void 0!==o?o:"closest");let g={};const m=(e,t,i)=>{const s=e.series[t];if(s.scale===n.DEFAULT_X_SCALE)return i;const o=s.$c||e.data[t],r=o[i];return d&&r===h?(0,l.findDataIdx)(o,s,i,p,h):null===r?(0,l.findDataIdx)(o,s,i,f,null):i};return{showPoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="visible"}))},hidePoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="hidden"}))},pin:t=>{var i;const s=e.root.querySelector(".u-over");if(s)if(t){const e=document.createElement("div");e.classList.add("yagr-points-holder"),s.querySelectorAll(".yagr-point").forEach((t=>{const i=t.cloneNode(!0);e.appendChild(i);const s=i.dataset.idx;s&&(g[s]=i)})),s.appendChild(e)}else g={},null===(i=s.querySelector(".yagr-points-holder"))||void 0===i||i.remove()},updatePoints:()=>{e.root.querySelectorAll(".yagr-point").forEach((t=>{const i=Number(t.dataset.idx);if(isNaN(i))return;r(e.uplot.series[i],t)}))},focus:(e,t)=>{Object.entries(g).forEach((([i,s])=>{s.style.display=null!==e?i===String(e)&&t?"block":"none":t?"block":"none"}))},uplot:{opts:(e,i)=>{var s;i.cursor=i.cursor||{};const o=i.series.filter((e=>e.empty)).length,l=i.series.length-1,r=null!==(s=null===t||void 0===t?void 0:t.maxMarkers)&&void 0!==s?s:50;i.cursor.points={show:l-o<=r&&a,size:(e,i)=>{const s=e.series[i];return(s.cursorOptions?s.cursorOptions.markersSize:null===t||void 0===t?void 0:t.markersSize)||n.MARKER_DIAMETER}},i.cursor.dataIdx=m},hooks:{...t.hideMarkers&&{setCursor:i=>{var s,n;const o=i.cursor.idx;if(!(0,l.isNil)(o))for(let l=1;l<i.series.length;l++){const r=i.series[l].$c[o];t.hideMarkers(r,l)?null===(s=e.plugins.cursor)||void 0===s||s.hidePoints(l):null===(n=e.plugins.cursor)||void 0===n||n.showPoints(l)}}},init:e=>{const i=e.root.querySelector(".u-cursor-x");i&&(t.x&&!1===t.x.visible&&(i.style.display="none"),i.style.borderRight=t.x&&t.x.style||n.CURSOR_STYLE);const s=e.root.querySelector(".u-cursor-y");s&&(t.y&&!1!==t.y.visible?s.style.borderBottom=t.y.style||n.CURSOR_STYLE:s.style.display="none")}}}}}},65781:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicUpdatesMixin=void 0;const n=s(i(576)),o=i(46976),l=i(28265),r=i(24793),a=i(50497);function u(e,t,i,s=!1){var n,o,l,r,u,c,d,h,f,p,g,m;if(s)return e.config={...e.config,...i},void(t.reinit=!0);const _=function(e,t){return function(i,s){const n=(0,a.get)(e,i),o=(0,a.get)(t,i);return s?!s(n,o):n!==o}}(e.config,i);i.title&&_("title")&&e.setTitle(i.title),(null===(o=null===(n=i.chart)||void 0===n?void 0:n.appearance)||void 0===o?void 0:o.theme)&&_("chart.appearance.theme")&&e.setTheme(null===(r=null===(l=i.chart)||void 0===l?void 0:l.appearance)||void 0===r?void 0:r.theme),(null===(c=null===(u=i.chart)||void 0===u?void 0:u.appearance)||void 0===c?void 0:c.locale)&&_("chart.appearance.locale")&&e.setLocale(null===(h=null===(d=i.chart)||void 0===d?void 0:d.appearance)||void 0===h?void 0:h.locale),i.axes&&_("axes",a.deepIsEqual)&&e.setAxes(i.axes),i.scales&&_("scales",a.deepIsEqual)&&e.setScales(i.scales);Boolean(i.series)&&function(e,t){if(e.length!==(null===t||void 0===t?void 0:t.length))return!0;const i=new Map,s=new Map;return e.forEach((e=>{i.set(e.id,e)})),t.forEach((e=>{s.set(e.id,e)})),!(!t.some((({id:e})=>!i.has(e)))&&!e.some((({id:e})=>!s.has(e))))}(e.config.series,i.series)&&(t.redrawLegend=!0),(i.series||i.timeline)&&e.setSeries(null!==(f=i.timeline)&&void 0!==f?f:e.config.timeline,null!==(p=i.series)&&void 0!==p?p:e.config.series,{incremental:!1}),i.tooltip&&_("tooltip")&&(null===(g=e.plugins.tooltip)||void 0===g||g.updateOptions(i.tooltip)),i.legend&&_("legend")&&(t.reinit=!0),null===(m=e.plugins.tooltip)||void 0===m||m.reset(),t.reopt=!0,e.config={...e.config,...i}}function c(e,t,i,s={incremental:!0,splice:!1}){let n,o=[],r=[],a=null,u=!1,c=!1;if(["number","string"].includes(typeof t)?(u=!1,n=!1,r=[i],a=t):"number"===typeof t[0]?(o=t,r=i,u=Boolean(s.incremental),n=!s.incremental):(r=t,n=!0),this.isEmpty&&r.some((({data:e})=>null===e||void 0===e?void 0:e.length)))e.reinit=!0;else{if(!1===n){let t=!1;if(u&&this.config.timeline.push(...o),r.forEach((i=>{var s,n;let o="number"===typeof a?this.config.series[0]:this.config.series.find((({id:e})=>e===i.id||e===a)),r=null===o||void 0===o?void 0:o.id;if("number"===typeof a&&this.state.y2uIdx[a]&&(o=this.config.series[a],r=a),o&&r){const{data:a,...d}=i,h=this.state.y2uIdx[r];"dots"!==o.type&&"dots"!==i.type&&"dots"!==(null===(s=this.config.chart.series)||void 0===s?void 0:s.type)||(e.reinit=!0),u?o.data=a?o.data.concat(a):o.data:(null===a||void 0===a?void 0:a.length)&&(o.data=a,c=!0);const f=(0,l.configureSeries)(this,Object.assign(o,d),h),p=this.options.series[h],g=this.uplot.series[h];g.show!==f.show&&e.fns.push((()=>{this.uplot.setSeries(h,{show:f.show})})),null!==g._focus&&g._focus===f.focus||e.fns.push((()=>{this.uplot.setSeries(h,{focus:f.focus})})),g.color!==f.color&&(t=!0),f.scale&&(null===(n=this.config.scales[f.scale])||void 0===n?void 0:n.stacking)&&(c=!0),(0,l.overrideSeriesInUpdate)(p,f),(0,l.overrideSeriesInUpdate)(g,f)}else e.fns.push((()=>{const e=(0,l.configureSeries)(this,i,this.config.series.length);this.state.y2uIdx[e.id]=this.uplot.series.length,this.uplot.addSeries(e,this.config.series.length)})),this.config.series.push(i)})),t&&e.fns.push((()=>{var e;null===(e=this.plugins.cursor)||void 0===e||e.updatePoints()})),s.splice){const e=r[0].data.length;this.config.series.forEach((t=>{t.data.splice(0,e)})),this.config.timeline.splice(0,o.length)}}else this.config.timeline=o,this.config.series=r,e.reinit=!0;e.reinit||(this._batch.fns.push((()=>{var e,t;return null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.reset()})),(c||o.length)&&(e.recalc=!0,e.fns.push((()=>{this.uplot.setData(this.series)}))))}}t.DynamicUpdatesMixin=class{setLocale(e){this.batch((t=>function(e,t,i){e.utils.i18n=(0,n.default)(i),t.redrawLegend=!0}(this,t,e)))}setTitle(e){this.batch((t=>{this.config.title=e,this.initTitle(),t.redraw=[!0,!0]}))}setTheme(e){this.batch((t=>function(e,t,i){e.utils.theme.setTheme(t);const s=["light","light-hc","dark","dark-hc"].map((e=>`yagr_theme_${e}`));e.root.classList.remove(...s),e.root.classList.add("yagr_theme_"+t),i.redraw=[!1,!0]}(this,e,t)))}setAxes(e){this.batch((t=>function(e,t,i){const{x:s,...n}=i;if(s){const t=e.uplot.axes.find((({scale:e})=>e===o.DEFAULT_X_SCALE));t&&(0,r.updateAxis)(e,t,{scale:o.DEFAULT_X_SCALE,...s})}Object.entries(n).forEach((([t,i])=>{const s=e.uplot.axes.find((({scale:e})=>e===t));s&&(0,r.updateAxis)(e,s,{scale:t,...i})})),t.redraw=(0,r.getRedrawOptionsForAxesUpdate)(i)}(this,t,e)))}setSeries(e,t,i={incremental:!0,splice:!1}){this.batch((s=>c.call(this,s,e,t,i)))}setFocus(e,t){this.batch((()=>function(e,t,i){var s;const n=null===t?null:e.state.y2uIdx[t];null===(s=e.plugins.cursor)||void 0===s||s.focus(n,i),e.uplot.setSeries(n,{focus:i})}(this,e,t)))}setVisible(e,t,i=!0){this.batch((s=>function(e,t,i,s,n){const l=null===t?null:e.state.y2uIdx[t];(null===t?e.config.series:[e.config.series.find((({id:e})=>e===t))]).forEach((e=>{e&&(e.show=i)})),n.fns.push((()=>{e.uplot.setSeries(l,{show:i})})),e.options.series=e.uplot.series;let r=!1;if(l){const t=e.uplot.series[l];t.show=i;const s=t.scale||o.DEFAULT_Y_SCALE,n=e.config.scales[s];r=Boolean(n&&n.stacking)}else r=e.options.series.reduce(((t,s)=>{var n;const{scale:o}=s;return s.show=i,Boolean(o&&(null===(n=e.config.scales[o])||void 0===n?void 0:n.stacking)||t)}),!1);r&&(n.recalc=!0,n.fns.push((()=>{var t;e.uplot.setData(e.series,!0),s&&(null===(t=e.plugins.legend)||void 0===t||t.update())})))}(this,e,t,i,s)))}setScales(e){this.batch((t=>function(e,t,i){let s=!1,n=!1;Object.entries(t).forEach((([t,i])=>{const o=e.config.scales[t];if(o){const{stacking:e}=o,{stacking:t}=i;e!==t&&(s=!0),i.normalize===o.normalize&&i.normalizeBase===o.normalizeBase||(n=!0)}}));const l=Object.entries(t).every((([t,i])=>{const s=e.config.scales[t],{min:n,max:o,...l}=s,{min:r,max:u,...c}=i;return!(!1===(0,a.deepIsEqual)(c,l))&&(n!==r||o!==u)})),r=Object.keys(t).includes(o.DEFAULT_X_SCALE);if(l&&!r)return Object.entries(t).forEach((([t,s])=>{i.fns.push((()=>{e.uplot.setScale(t,{min:s.min,max:s.max})}))}));(s||n)&&(i.reinit=!0),e.config.scales=t,i.reinit=!0}(this,e,t)))}setConfig(e,t=!1){this.batch((i=>u(this,i,e,t)))}}},67903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.drawMarkersIfRequired=t.renderCircle=void 0;const s=i(46976),n=i(50497);t.renderCircle=(e,t,i,n,o,l,r,a)=>{const{ctx:u}=e,c=Math.round(e.valToPos(t,s.DEFAULT_X_SCALE,!0)),d=Math.round(e.valToPos(i,a||s.DEFAULT_Y_SCALE,!0));if(u.beginPath(),u.arc(c,d,2*n,0,2*Math.PI),u.fillStyle=l,o){const e=u.lineWidth,t=u.strokeStyle;u.lineWidth=o,u.strokeStyle=r,u.stroke(),u.lineWidth=e,u.strokeStyle=t}u.fill(),u.closePath()},t.drawMarkersIfRequired=function(e,i,o,l){const{color:r,scale:a,spanGaps:u,count:c,pointsSize:d}=e.series[i];if(u&&c>1)return!1;let h,f=o;for(;f<=l;){const o=e.data[i][f];if(null===o){h=o,f++;continue}const l=f+1,u=e.data[i][l];(0,n.isNil)(h)&&(0,n.isNil)(u)&&(0,t.renderCircle)(e,e.data[0][f],o,null!==d&&void 0!==d?d:s.DEFAULT_POINT_SIZE/2,0,r,r,a||s.DEFAULT_Y_SCALE),h=o,f++}},t.default=function(e,i){var n;const{size:o=s.DEFAULT_POINT_SIZE,strokeWidth:l=2,strokeColor:r="#ffffff",show:a}=i.markers,u=null===(n=i.chart)||void 0===n?void 0:n.series,c=(null===u||void 0===u?void 0:u.pointsSize)||s.DEFAULT_POINT_SIZE;function d(i,n,u,d){const{scale:h,_focus:f,color:p,getFocusedColor:g,type:m}=i.series[n];let _=u;const v="dots"===m?a?o:c:o;for(;_<=d;){const o=i.data[n][_];null!==o&&(0,t.renderCircle)(i,i.data[0][_],o,v,l,(f||null===f?p:g(e,n))||p,r,h||s.DEFAULT_Y_SCALE),_++}}const h=(e,t)=>{0!==e&&null!==e&&("dots"===t.type||i.markers.show)&&(t.points=t.points||{},t.points.show=d)};return{opts:(e,t)=>{(i.markers.show||t.series.some((e=>"dots"===e.type)))&&t.series.forEach(((e,t)=>h(t,e)))},hooks:{addSeries:(e,t)=>{const i=e.series[t];h(t,i)},setSeries:(e,t,i)=>{h(t,i)}}}}},68724:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,o(i(89353),t),o(i(98190),t);const a=l(i(46976));t.defaults=a;const u=r(i(37100));"undefined"!==typeof window&&Object.assign(window,{Yagr:u.default}),t.default=u.default},72168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasOneVisibleLine=void 0;const s=i(46976),n=i(50497),o=i(11213),l="null";t.hasOneVisibleLine=e=>e.some((({show:e,id:t})=>t!==s.DEFAULT_X_SERIE_NAME&&e));const r=(e,i)=>i.length>3&&e((0,t.hasOneVisibleLine)(i)?"hide-all":"show-all");t.default=class{constructor(){this.pagesCount=0,this.state={page:0,pages:1,pageSize:0,rowsPerPage:1,paginated:!1,requiredSpace:0,totalSpace:0},this.itemsHtml="",this.preInit=(e,t,i)=>{this.yagr=e,this.options=Object.assign({show:!1,position:"bottom",fontSize:12,maxLegendSpace:.3,className:void 0,behaviour:"basic"},t||{}),this.calc(i)},this.init=e=>{var t;this.options.show&&(this.uplot=e,null===(t=e.root.querySelector(".u-legend"))||void 0===t||t.remove(),this.render())},this.update=()=>{this.yagr.root.querySelectorAll("[data-serie-id]").forEach((e=>{var t,i;const s=e.getAttribute("data-serie-id");if(!s||s===l)return;const n=null===(i=null===(t=this.uplot)||void 0===t?void 0:t.series[this.yagr.state.y2uIdx[s]])||void 0===i?void 0:i.show;e.classList[n?"remove":"add"]("yagr-legend__item_hidden")}))},this.measureLegend=e=>{const t=this.yagr.root,i=(0,n.html)("div",{class:"yagr-legend",style:{visibility:"hidden"}},e);t.appendChild(i);const s=i.childNodes[0].getBoundingClientRect();return i.remove(),s},this.nextPage=()=>{const{state:e}=this;this.state.page+=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())},this.prevPage=()=>{const{state:e}=this;this.state.page-=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())}}redraw(){this.options.show&&this.render()}destroy(){var e;this._onDestroy&&this._onDestroy(),null===(e=this.legendEl)||void 0===e||e.remove()}applyHandlers(){const{yagr:e,uplot:i}=this;if(!i)return()=>{};const s=e.root.querySelectorAll("[data-serie-id]"),n=[],a={basic:s=>()=>{const n=s.getAttribute("data-serie-id"),o=[];if(n===l){const e=!(0,t.hasOneVisibleLine)(i.series);for(let t=1;t<i.series.length;t++)o.push([i.series[t],e])}else{const e=i.series.find((({id:e})=>e===n));if(!e)return;o.push([e,!e.show])}o.forEach((([t,i])=>{if(t.show===i)return;const s=e.root.querySelector(`[data-serie-id="${t.id}"]`);e.setVisible(t.id,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")}));const a=e.root.querySelector(".yagr-legend__all-series");if(a){const e=r(this.yagr.utils.i18n,i.series);a.innerHTML=e||""}},extended:s=>{const n=(t,i)=>{const s=e.root.querySelector(`[data-serie-id="${t}"]`);e.setVisible(t,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")},o=e=>{this.state.startSerieRange=e;const s=i.series.filter((t=>t.id!==e.id)),o=!(0,t.hasOneVisibleLine)(s)&&!1!==e.show;i.series.forEach((t=>{const i=e.id===t.id||o;n(t.id,i)}))},l=e=>{this.state.startSerieRange||(this.state.startSerieRange=i.series[1]);const t=[];i.series.forEach(((i,s)=>{var n;i.id===e.id&&t.push(s),i.id===(null===(n=this.state.startSerieRange)||void 0===n?void 0:n.id)&&t.push(s)})),i.series.forEach(((e,i)=>{const s=i>=t[0]&&i<=t[1];n(e.id,s)}))};return e=>{const t=s.getAttribute("data-serie-id"),r=i.series.find((({id:e})=>e===t));r&&(e.preventDefault(),e.ctrlKey||e.metaKey?(e=>{n(e.id,!e.show)})(r):e.shiftKey?l(r):o(r))}}},u=t=>()=>{const i=t.getAttribute("data-serie-id");if(t.classList.contains("yagr-legend__item_hidden")||i===l)return;const s=this.yagr.uplot.series.find((({id:e})=>e===i));s&&(e.setFocus(s.id,!0),e.redraw(!0,!1))},c=()=>{e.setFocus(null,!0),e.redraw(!0,!1)};s.forEach((e=>{const t=a[this.options.behaviour||"basic"](e),i=u(e);e.addEventListener("click",t),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),e.addEventListener("mousedown",o.preventMouseEvents),n.push((()=>{e.removeEventListener("click",t),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c),e.removeEventListener("mousedown",o.preventMouseEvents)}))}));const d=()=>n.forEach((e=>e()));return this._onDestroy=d,d}render(){var e,t;let i=!1;const{uplot:s,options:o}=this;if(!s)return;let l=this.yagr.root.querySelector(".yagr-legend");if(l?i=!0:l=(0,n.html)("div",{class:`yagr-legend yagr-legend__${this.options.position} ${(null===o||void 0===o?void 0:o.className)||""}`}),l){if(i||("top"===o.position?s.root.before(l):null===(e=s.root)||void 0===e||e.after(l)),this.legendEl=l,this.itemsHtml&&!i||this.calc(this.yagr.options),l.innerHTML=`<div class="yagr-legend__container" style="height: ${this.state.requiredSpace}px">${this.itemsHtml}</div>`,this.items=l.querySelector(".yagr-legend__items"),this.container=l.querySelector(".yagr-legend__container"),this.state.paginated){const e=this.renderPagination();null===(t=this.container)||void 0===t||t.after(e)}else this.items.style.justifyContent="center";this.applyHandlers()}}renderPagination(){const{state:e}=this;let t=this.yagr.root.querySelector(".yagr-legend__pagination");if(t){const e=t.querySelector(".yagr-legend__icon-down"),i=t.querySelector(".yagr-legend__icon-up");e.removeEventListener("click",this.nextPage),i.removeEventListener("click",this.prevPage)}else t=(0,n.html)("div",{class:"yagr-legend__pagination"});const i=0===e.page?"yagr-legend__icon-up_disabled":"",s=e.page===e.pages-1?"yagr-legend__icon-down_disabled":"";t.innerHTML=`<span class="yagr-legend__icon-up ${i}"></span>\n<span class="yagr-legend__pagination-text">${e.page+1}/${e.pages}</span>\n<span class="yagr-legend__icon-down ${s}"></span>`;const o=t.querySelector(".yagr-legend__icon-down"),l=t.querySelector(".yagr-legend__icon-up");return s||o.addEventListener("click",this.nextPage),i||l.addEventListener("click",this.prevPage),t}createIconLineElement(e){return(0,n.html)("span",{class:`yagr-legend__icon yagr-legend__icon_${e.type}`,style:{"background-color":this.yagr.getSerieLegendColor(e)}})}createSerieNameElement(e){const t=(0,n.html)("span");return t.innerText=e.name||"unnamed",t}renderItems(e){const t=r(this.yagr.utils.i18n,e.series),i="extended"!==this.options.behaviour&&(e=>e.length>3&&l||void 0)(e.series),s=i?[i]:[];for(let n=1;n<e.series.length;n++)s.push(e.series[n]);return`<div class="yagr-legend__items">${s.map((e=>{let s,n,o=" ";if(e===l)s=t,n=i,o=" yagr-legend__all-series ";else{n=e.id;const t=this.createIconLineElement(e),i=this.createSerieNameElement(e);s=`${t.outerHTML}${i.outerHTML}`}return`<div class="yagr-legend__item${o}${"string"===typeof e||!1!==e.show?"":"yagr-legend__item_hidden"}" data-serie-id="${n}">${s}</div>`})).join("")}</div>`}calc(e){if(!this.options.show)return;const t=e.height-this.VERTICAL_PADDING,i=this.renderItems(e),{height:s}=this.measureLegend(i),n=this.options.fontSize+2,o=t*this.options.maxLegendSpace,l=Math.floor(o/n),r=l-1,a=Math.min(r*n,o),u=Math.min(l*n,o),c=s>a&&a>0,d=Math.min(c?u:a,s),h=Math.ceil(s/a),f=c?this.VERTICAL_PADDING+18:this.VERTICAL_PADDING;this.state.requiredSpace=d,this.state.totalSpace=d+f,this.state.paginated=c,this.state.page=this.state.page||0,this.state.pages=h,this.state.pageSize=a,this.state.rowsPerPage=l,this.itemsHtml=i}get VERTICAL_PADDING(){return"bottom"===this.options.position?20:48}}},74947:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=void 0;const s=i(48130);t.renderTooltip=function(e){if(0===e.scales.length)return e.yagr.utils.i18n("nodata");const[t,i]=e.options.title?"string"===typeof e.options.title?[e.options.title,!1]:["",!0]:["",!1];return`${t?`<div class="__title">${t}</div>`:""}${e.scales.map((t=>{const n=(0,s.getOptionValue)(e.options.title,t.scale),o=e.scales.length>1?e.options.scales?`${(0,s.getOptionValue)(e.options.scales,t.scale)||""}`:`${e.yagr.utils.i18n("scale")}: ${t.scale}`:"";return`\n<div class="__section" data-scale=${t.scale}>\n ${i&&n?`<div class="_section_title">${n}</div>`:""}\n ${o?`<div class="__section_scale">${o}</div>`:""}\n <div class="__section_body">${function(e,t,i){const n=e.slice(0,(0,s.getOptionValue)(t.maxLines,i));return n.map((({value:i,name:n="unnamed",color:o,active:l,transformed:r,seriesIdx:a},u)=>{const c=`\n<span class="yagr-tooltip__val">${i}</span>\n ${"number"===typeof r?`<span class="yagr-tooltip__tf">${r.toFixed(2)}</span>`:""}\n`;return`\n<div class="yagr-tooltip__item ${l?"_active":""}" data-series="${a}">\n ${t.showIndicies?`<span class="yagr-tooltip__idx">${e.length-u}</span>`:""}\n <span class="yagr-tooltip__mark" style="background-color: ${o}"></span>${(0,s.escapeHTML)(n)} ${c}\n</div>`})).join("")+(e.length>n.length?`<div class="yagr-tooltip__item _more">+${e.length-n.length}</div>`:"")}(t.rows,e.options,t.scale)}</div>\n ${(0,s.getOptionValue)(e.options.sum,t.scale)?`\n <div class="__section_sum">\n ${e.yagr.utils.i18n("sum")}: ${t.sum}\n </div>\n `:""}\n</div>`})).join("")}`}},78229:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransformSeriesMixin=void 0;const s=i(46976),n=i(50497);t.TransformSeriesMixin=class{transformSeries(){const e=performance.now(),t=[],i=this.config,o=i.timeline;let l=i.processing||!1,r=this.config.series.map((({data:e})=>e));l&&l.interpolation&&(r=(0,n.preprocess)(r,o,l),l=!1);const a=Boolean(l&&l.nullValues),u=l&&l.nullValues||{},c={};for(let d=0;d<r.length;d++){let e=[];const i=d+1,l=r[d],h=this.options.series.length-i,f=this.options.series[h],p=f.scale||s.DEFAULT_Y_SCALE,g=this.config.scales[p]||{},m=g.stacking,_=f.stackGroup||0;let v=!0;m&&!c[p]&&(this.options.focus=this.options.focus||{alpha:1.1},this.options.focus.alpha=1.1,c[p]=[]),m&&!c[p][_]&&(c[p][_]=new Array(o.length).fill(0)),f.count=0;for(let t=0;t<l.length;t++){let i=l[t];if(a&&u[String(i)]&&(i=null),f.transform&&(f._transformed=!0,i=f.transform(i,r,t)),g.transform&&(f._transformed=!0,i=g.transform(i,r,t)),null===i){if("line"===f.type||"dots"===f.type){e.push(null);continue}i=m?0:null}if(v=!1,g.normalize){const e=(0,n.getSumByIdx)(this.options.series,t,p);i=e&&(null!==i&&void 0!==i?i:0)/e*(g.normalizeBase||100),f.normalizedData=f.normalizedData||[],f.normalizedData[t]=i}g.stacking&&(!1===f.show&&(i=0),i=c[p][_][t]+=null!==i&&void 0!==i?i:0),"logarithmic"===g.type&&0===i&&(i=1),f.sum=(f.sum||0)+(i||0);"number"===typeof f.$c[t]&&(f.count+=1),e.push(i)}f.avg=(f.sum||0)/f.count,f.empty=v,f.postProcess&&(e=f.postProcess(e,d,this)),t.unshift(e)}return t.unshift(this.config.timeline),this.series=t,this.execHooks("processed",{chart:this,meta:{processTime:performance.now()-e}}),this.series}}},80152:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=void 0;var s=i(4553);Object.defineProperty(t,"calculateFromTo",{enumerable:!0,get:function(){return s.calculateFromTo}})},81836:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var s=i(59284),n=i(23936),o=i.n(n),l=i(905),r=i.n(l),a=i(8964),u=i(42392),c=i(22680),d=i(14750),h=i(68724),f=i(17148),p=i.n(f),g=i(66643);function m(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}const _="data-series-name",v="data-series-idx",y="_tooltip",b="_tooltip-row",w=()=>"<td />",E=e=>`<td class="_tooltip-rows__bubble-td">\n <div class="_tooltip-rows__bubble-div" style="background-color:${e.seriesColor};"></div>\n </td>`,S=e=>`<td class="_tooltip-rows__name-td">\n ${e.hideSeriesName?"":m(e.seriesName)}\n </td>`,x=e=>`<td class="_tooltip-rows__percent-td">\n ${e.percentValue?e.percentValue+"%":""}\n </td>`,A=e=>`<td class="_tooltip-rows__value-td">\n ${e.value}\n </td>`,T=e=>`<td class="_tooltip-rows__diff-td">\n ${e.diff?` (${e.diff})`:""}\n </td>`,O=(e,t=!1,i=1)=>`<td class="_tooltip-right__td ${t?"_tooltip-right__td_with-split-tooltip":""}" colspan="${i||1}">\n ${e.holiday?`<div class="_tooltip-right__holiday-div">\n <div class="_tooltip-right__holiday-emoji">\ud83c\udf88</div>\n <div>\n ${e.holidayText}\n ${e.region?`<span class="_tooltip-right__holiday-region">[${e.region}]</span>`:""}\n </div>\n </div>`:""}\n\n ${e.commentDateText?`<div class="${e.xComments?"_tooltip-right__margin-bot":""}">${e.commentDateText}</div>`:""}\n\n ${e.xComments?e.xComments.map((e=>`<div class="_tooltip-right__traf-div ${t?"_tooltip-right__traf-div_for-split-tooltip":""}" style="border-color: ${e.color};">${e.text}</div>`)).join(""):""}\n </td>`,L=(e,{isSelectedLine:t,cellsRenderers:i,isSingleLine:s,allowComment:n,withDarkBackground:o,rowIndex:l})=>{const r=e.commentText||e.xyCommentText,a=n&&r,u=i.slice(),c=`${String(l)||""}-${String(m(e.seriesName)).slice(0,20).replace(/(\r\n|\n|\r)/gm,"")}`;return e.insertCellAt&&(Object.keys(e.insertCellAt)||[]).forEach((e=>{u.splice(Number(e),0,w)})),e.customRender?`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${0===e.customRender.trim().indexOf("<td")?e.customRender:`<td colspan="${i.length}">${e.customRender}</td>`}\n </tr>\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td>\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`:`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${u.map(((t,i)=>e.replaceCellAt&&e.replaceCellAt[i]?"string"===typeof e.replaceCellAt[i]?e.replaceCellAt[i]:e.replaceCellAt[i](e):e.insertCellAt&&e.insertCellAt[i]?"string"===typeof e.insertCellAt[i]?e.insertCellAt[i]:e.insertCellAt[i](e):t(e))).join("")}\n </tr>\n\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td colspan="4">\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`},I=(e,t)=>{const{splitTooltip:i,activeRowAlwaysFirstInTooltip:s}=e,n=e.lines.findIndex((({selectedSeries:e})=>e)),o=e.lines[n],l=e.lines.slice(0,(t.lastVisibleRowIndex||e.lines.length)+1),r=[];r.push(E),e.shared&&r.push(S),e.withPercent&&r.push(x),r.push(A),e.useCompareFrom&&r.push(T);const u={isSingleLine:1===l.length,cellsRenderers:r},c={cellsRenderers:r,useCompareFrom:e.useCompareFrom,isSelectedLine:!0,allowComment:n>t.lastVisibleRowIndex},d=document.body.clientHeight/(window.visualViewport&&window.visualViewport.scale||1);let h=y;return i&&(h+=` ${y}_split-tooltip`),`\n<div class="${h}" style="max-height: ${i?"auto":`${d}px`}">\n ${e.tooltipHeader?`<div title="${(document.createRange().createContextualFragment(e.tooltipHeader).textContent||"").trim()}" class="_tooltip-date">\n ${e.tooltipHeader.trim()}\n </div>`:""}\n ${i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?`<table border="0" cellpadding="0" cellspacing="0">\n <tbody>\n <tr>\n ${O(e,!0,r.length)}\n </tr>\n </tbody>\n </table>`:""}\n <table border="0" cellpadding="0" cellspacing="0">\n <tr>\n <td class="_tooltip-left__td">\n <table class="_tooltip-rows__table">\n ${i?"":`<thead class=_tooltip-header>\n ${o&&(s||t.lastVisibleRowIndex&&n>t.lastVisibleRowIndex)?L(o,c):""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n </thead>`}\n <tbody class="_tooltip-list">\n ${l.map(((e,t)=>L(e,function(e){return Object.assign(Object.assign({},u),{rowIndex:e,isSelectedLine:l.length>1&&e===n,withDarkBackground:l.length>2&&Boolean(e%2),allowComment:e!==n||!c.allowComment})}(t)))).join("")}\n </tbody>\n ${i?"":`<tbody class="_tooltip-footer">\n ${t.lastVisibleRowIndex&&e.hiddenRowsNumber>0?`<tr class="${b} _hidden-rows-sum${l.length%2?" _hidden-rows-sum-dark-bg":""}">\n <td colspan="${r.length-1}" class="_hidden-rows-number">\n ${(0,a.R)("common","tooltip-rest")} ${e.hiddenRowsNumber}\n </td>\n <td class="_hidden-rows-value">${e.hiddenRowsSum}</td>\n </tr>`:""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n ${e.sum?`<tr class="_tooltip-rows__summ-tr">\n <td class="_tooltip-rows__summ-td" colspan="${r.length-1}">${(0,a.R)("common","tooltip-sum")}</td>\n <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">\n ${e.sum}\n </td>\n </tr>`:""}\n </tbody>`}\n </table>\n </td>\n\n ${!i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?O(e):""}\n </tr>\n </table>\n</div>`},D=e=>"object"===typeof e&&null!==e?Object.values(e).reduce(((e,t)=>t)):e,M=({data:e,rowId:t})=>{const i=e.yagr.getSeriesById(t);return e.yagr.getSerieLegendColor(i)},k=(e=1,t)=>(i,s)=>{const n=(s[s.length-1]-s[0])/e;return s.map((i=>{const s=(0,d.KQ)({input:i/e,timeZone:t});return 0===s.hour()&&0===s.minute()&&0===s.second()?s.format("DD.MM.YY"):s.format(n<300?"HH:mm:ss":"HH:mm")}))},C=(e,t)=>i=>{const s=i/((null===e||void 0===e?void 0:e.timeMultiplier)||1),n=(0,d.KQ)({input:s}),o=60*(n.utcOffset()-(0,d.KQ)({input:s,timeZone:t}).utcOffset())*1e3;return new Date(n.valueOf()-o)},R=e=>{var t,i;const{data:s,libraryConfig:n,theme:o}=e,l=Object.assign(Object.assign({},n),{timeline:s.timeline,series:s.graphs}),{timeZone:r}=s,a={appearance:{locale:g.W.get("lang"),theme:o}};var u;p()(a,l.chart),l.chart=a,(null===(t=l.tooltip)||void 0===t?void 0:t.show)&&(l.tooltip=l.tooltip||{},l.tooltip.render=(null===(i=l.tooltip)||void 0===i?void 0:i.render)||(u=s,e=>{const{timeZone:t}=u,i=e.yagr.config.chart.timeMultiplier||1,s=e.options,{x:n,state:o}=e;let l=0;const r=Object.values(e.scales).reduce(((e,t)=>(l+=t.sum||0,e.concat(t.rows))),[]),a=r.length,c=D(s.sum),h=D(s.maxLines),f=D(s.value),p=o.pinned?void 0:a>h?Math.abs(h-a):void 0,g=p?f(r.slice(-p).reduce(((e,{originalValue:t})=>e+(t||0)),0)):void 0,m={activeRowAlwaysFirstInTooltip:r.length>1,tooltipHeader:(0,d.KQ)({input:n/i,timeZone:t}).format("DD MMMM YYYY HH:mm:ss"),shared:!0,lines:r.map(((t,i)=>Object.assign(Object.assign({},t),{seriesName:t.name||"Serie "+(i+1),seriesColor:M({data:e,rowId:t.id}),selectedSeries:t.active,seriesIdx:t.seriesIdx,percentValue:"number"===typeof t.transformed?t.transformed.toFixed(1):""}))),withPercent:D(s.percent),hiddenRowsNumber:p,hiddenRowsSum:g};return c&&(m.sum=f(l)),I(m,{lastVisibleRowIndex:o.pinned?r.length-1:h-1})}),l.tooltip.className||(l.tooltip.className="chartkit-yagr-tooltip"),e.customTooltip&&(l.tooltip.virtual=!0),l.tooltip.sort=l.tooltip.sort||((e,t)=>t.rowIdx-e.rowIdx)),l.axes=l.axes||{};const c=l.axes[h.defaults.DEFAULT_X_SCALE];return l.editUplotOptions=e=>Object.assign(Object.assign({},e),{tzDate:r?C(l.chart,r):void 0}),c&&!c.values&&(c.values=k(l.chart.timeMultiplier,r)),c||(l.axes[h.defaults.DEFAULT_X_SCALE]={values:k(l.chart.timeMultiplier,r)}),l},F=s.forwardRef((function(e,t){const{id:i,data:{data:n},onLoad:l,onRender:d,onChartLoad:h,tooltip:f}=e,p=s.useRef(null),[g,m]=s.useState();if(!n||r()(n))throw new u.R({code:u.iY.NO_DATA,message:(0,a.R)("error","label_no-data")});const{config:_,debug:v}=((e,t)=>{const{data:i,sources:n,libraryConfig:o}=e.data,l=(0,c.i)();return{config:s.useMemo((()=>R({data:i,libraryConfig:o,theme:l,customTooltip:Boolean(e.tooltip)})),[i,o,l,e.tooltip]),debug:s.useMemo((()=>({filename:n&&Object.values(n).map((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.program})).filter(Boolean).join(", ")||t})),[t,n])}})(e,i),y=s.useCallback(((e,{renderTime:t})=>{null===l||void 0===l||l(Object.assign(Object.assign({},n),{widget:e,widgetRendering:t})),null===d||void 0===d||d({renderTime:t}),m(e)}),[l,d,n,m]),b=s.useCallback((()=>{g&&g.reflow()}),[]);return s.useImperativeHandle(t,(()=>({reflow(){b()}})),[b]),s.useEffect((()=>{var e,t,i,s,n;if(!g||(null===(t=null===(e=g.config)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.virtual))return;const o={mouseMove:null,mouseDown:null};null===(i=g.plugins.tooltip)||void 0===i||i.on("render",(e=>{(e=>{const t=e.querySelector("._tooltip-header"),i=e.querySelector("._tooltip-list");if(!t||!i||!t.children.length)return;const s=t.children[0];for(let a=0;a<s.children.length;a++){const e=s.children[a];e.removeAttribute("style"),1===(null===i||void 0===i?void 0:i.children.length)&&(e.innerHTML=" ")}const n=i.children[0];for(let a=0;a<n.children.length;a++)n.children[a].removeAttribute("style");const o=t.children[0].getBoundingClientRect().width>i.children[0].getBoundingClientRect().width?t:i,l=Array.prototype.reduce.call(o.children[0].children,((e,t)=>(e.push(t.getBoundingClientRect().width),e)),[]),r=(o===t?i:t).children[0];for(let a=0;a<r.children.length;a++)r.children[a].setAttribute("style",`width: ${l[a]}px`);if(1===i.children.length)for(const a of s.children)a.innerHTML=""})(e)})),null===(s=g.plugins.tooltip)||void 0===s||s.on("pin",((e,{actions:t})=>{var i;o.mouseMove=(i={tooltip:e,yagr:g},e=>{var t;const{tooltip:s,yagr:n}=i;if(!n)return;const o=e.target,l=o&&s.contains(o)&&"TD"===o.tagName?null===(t=o.parentElement)||void 0===t?void 0:t.dataset.seriesIdx:void 0,r=l?n.uplot.series[Number(l)]:null;n.setFocus(r?r.id:null,!0)}),o.mouseDown=(e=>t=>{var i;const{tooltip:s,actions:n,yagr:o}=e;if(!o)return;const l=t.target;if(l instanceof Element){const e=l&&s.contains(l),t=l&&(null===(i=o.root.querySelector(".u-over"))||void 0===i?void 0:i.contains(l));e||t||(n.pin(!1),n.hide())}})({tooltip:e,actions:t,yagr:g}),document.addEventListener("mousemove",o.mouseMove),document.addEventListener("mousedown",o.mouseDown)})),null===(n=g.plugins.tooltip)||void 0===n||n.on("unpin",(()=>{o.mouseMove&&(document.removeEventListener("mousemove",o.mouseMove),o.mouseMove=null),o.mouseDown&&(document.removeEventListener("mousedown",o.mouseDown),o.mouseDown=null)}))}),[g]),s.useLayoutEffect((()=>{null===h||void 0===h||h({widget:g})}),[g,h]),s.createElement(s.Fragment,null,f&&g&&f({yagr:g}),s.createElement(o(),{ref:p,id:i,config:_,debug:v,onChartLoad:y}))})),P=F},81891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configureScales=t.niceScale=t.offsetScale=t.getScaleRange=void 0;const s=i(46976),n=i(48643);function o(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking;return{min:n?0:Math.round(e-Math.abs(e)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET)),max:o?0:Math.round(t+Math.abs(t)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET))}}function l(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking?0:"number"===typeof i.max?i.max:t,l=n?0:"number"===typeof i.min?i.min:e;if(l===o)return l>=0?{min:l,max:l+2}:{min:l-1,max:l+1};const a=r(o-l,!1),u=r(a/(s.DEFAULT_MAX_TICKS-1),!0);let c=Math.ceil(o/u)*u;c=isNaN(c)?100:c;let d=(n?Math.min(0,l):Math.floor(l/u)*u)||0;return d===c&&(d-=1,c+=1),{min:d,max:c}}function r(e,t){const i=Math.floor(Math.log10(e)),s=e/10**i;return(t?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*10**i}t.getScaleRange=(e,t)=>{const i=e.range;if("function"===typeof i)return(e,s,n)=>i(e,s,n,t);if(e.normalize)return[0,e.normalizeBase||100];if("auto"===e.range)return;let n;switch(e.range){case void 0:case"nice":n=l;break;case"offset":n=o;break;default:throw new Error(`Unknown scale range type ${e.range}`)}return(i,o,l)=>{let{min:a,max:u}=n(o,l,e,t);const c=e.minRange||s.DEFAULT_SCALE_MIN_RANGE;if(Math.abs(u-a)<c&&(a>=0?u+=c:(u+=c/2,a-=c/2)),a="number"===typeof e.min?e.min:a,u="number"===typeof e.max?e.max:u,"logarithmic"===e.type){const t="number"===typeof e.min;a<=0?a=s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE:t||(a=Math.min(a,s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE))}return(a>=u||u<=a)&&("number"===typeof e.max?a=u-(r(u-.1*u,!1)||1):u=a+(r(a+.1*a,!1)||1)),[a,u]}},t.offsetScale=o,t.niceScale=l,t.configureScales=function(e,i,o){const l=o.scales?{...o.scales}:{};return Object.keys(o.scales).length||(l.y={}),Object.entries(l).forEach((([l,r])=>{i[l]=i[l]||{};const a=i[l];if(l===s.DEFAULT_X_SCALE)return;const u="number"===typeof r.min?r.min:null,c="number"===typeof r.max?r.max:null;if(null!==c&&null!==u){if(c<=u)throw new Error("Invalid scale config. .max should be > .min");a.range=[u,c]}const d="logarithmic"===r.type;if(d)return a.distr=n.Scale.Distr.Logarithmic,void(a.range=(0,t.getScaleRange)(r,o));e.isEmpty?a.range=[null===u?d?1:0:u,null===c?100:c]:a.range=(0,t.getScaleRange)(r,o)})),i.x||(i.x={time:!0}),i}},87102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMixins=void 0,t.applyMixins=function(e,t){const i=[];t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i)||Object.create(null))})),t.prototype.initMixin&&i.push(t.prototype.initMixin)})),e.prototype.initMixins=function(){i.forEach((e=>e.call(this)))}}},88274:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pathsRenderer=void 0;const r=l(i(16381)),a=o(i(46976));t.pathsRenderer=function(e,t,i,s){const n=e.series[t],{type:o,interpolation:l}=n;let u;switch(o){case"column":u=r.default.paths.bars&&r.default.paths.bars({size:[a.BARS_DRAW_FACTOR,a.BARS_DRAW_MAX],...e.series[t].renderOptions||{}});break;case"dots":u=()=>null;break;default:switch(l){case"smooth":u=r.default.paths.spline&&r.default.paths.spline();break;case"left":u=r.default.paths.stepped&&r.default.paths.stepped({align:1});break;case"right":u=r.default.paths.stepped&&r.default.paths.stepped({align:-1});break;default:u=r.default.paths.linear&&r.default.paths.linear()}}return u?u(e,t,i,s):null}},89353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},98190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1865.72c933c8.chunk.js b/ydb/core/viewer/monitoring/static/js/1865.72c933c8.chunk.js deleted file mode 100644 index cb566c9db9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1865.72c933c8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1865],{61865:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ka",weekdays:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"%s \u10e8\u10d4\u10db\u10d3\u10d4\u10d2",past:"%s \u10ec\u10d8\u10dc",s:"\u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8\u10e1",d:"\u10d3\u10e6\u10d4\u10e1",dd:"%d \u10d3\u10e6\u10d8\u10e1 \u10d2\u10d0\u10dc\u10db\u10d0\u10d5\u10da\u10dd\u10d1\u10d0\u10e8\u10d8",M:"\u10d7\u10d5\u10d8\u10e1",MM:"%d \u10d7\u10d5\u10d8\u10e1",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10da\u10d8\u10e1"},ordinal:function(_){return _}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/19026.f05aa9b2.chunk.js b/ydb/core/viewer/monitoring/static/js/19026.f05aa9b2.chunk.js new file mode 100644 index 0000000000..ea95f90ddd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/19026.f05aa9b2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[19026],{19026:(e,t,a)=>{a.d(t,{default:()=>s});var r=a(64723);const s=a.n(r)()},64723:e=>{function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="splunkSpl",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1917.e3ac9c6d.chunk.js b/ydb/core/viewer/monitoring/static/js/1917.e3ac9c6d.chunk.js deleted file mode 100644 index a4519a5e1b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1917.e3ac9c6d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1917],{61917:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"hy-am",weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),months:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),weekStart:1,weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/19233.b4069ac2.chunk.js b/ydb/core/viewer/monitoring/static/js/19233.b4069ac2.chunk.js new file mode 100644 index 0000000000..157953e96d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/19233.b4069ac2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[19233],{19233:(a,e,l)=>{l.d(e,{default:()=>t});var n=l(85146);const t=l.n(n)()},85146:a=>{function e(a){a.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},a.languages.mathematica=a.languages.wolfram,a.languages.wl=a.languages.wolfram,a.languages.nb=a.languages.wolfram}a.exports=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/19507.0512979b.chunk.js b/ydb/core/viewer/monitoring/static/js/19507.0512979b.chunk.js new file mode 100644 index 0000000000..27ab0301fa --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/19507.0512979b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[19507],{19507:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,getLanguage:()=>i});var s=t(43733);const o={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g};function i({ansi:e=!1}={}){return{defaultToken:"text",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:s.RE,typeKeywords:s.to,constants:["true","false","enabled","disabled"],builtinFunctions:s.XB,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=",">=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[a-zA-Z_]\w*/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@tablePath"},{include:"@strings"},{include:"@primaryKey"},[/(@variables)::(@variables)/,"support.function"],[/[;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@?[a-zA-Z_$]\w*/,{cases:{"@keywords":"keyword","@typeKeywords":"keyword.type","@constants":"constant.yql","@builtinFunctions":"constant.other.color","[$@][a-zA-Z_]\\w*":"variable","@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--.*/,"comment"],[/\/\*/,{token:"comment.quote",next:e?"@commentAnsi":"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],commentAnsi:[[/\/\*/,{token:"comment.quote",next:"@comment"}],[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?f?\b/,"number.float"],[/[+-]?(?:\d+|0b[01]+|0o[0-8]+|0x[\da-f]+)(?:u?[lst]?)?\b/,"number"]],strings:[[/'/,{token:"string",next:e?"@stringAnsiSingle":"@stringSingle"}],[/"/,{token:"string",next:e?"@stringAnsiDouble":"@stringDouble"}],[/[@]{2}/,{token:"string",next:"@multilineString"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiSingle:[[/[^']+/,"string"],[/''/,"string"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiDouble:[[/[^"]+/,"string"],[/""/,"string"],[/"[uyj]?/,{token:"string",next:"@pop"}]],multilineString:[[/#py/,{token:"string.python",nextEmbedded:"python",next:"@embedded",goBack:3}],[/\/\/js/,{token:"string.js",nextEmbedded:"javascript",next:"@embedded",goBack:4}],[/[^@]+/,"string"],[/[@]{4}/,"string"],[/[@]{2}[uyj]?/,{token:"string",next:"@pop"}],[/./,"string"]],embedded:[[/([^@]|^)([@]{4})*[@]{2}([@]([^@]|$)|[^@]|$)/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],tablePath:[[/((`)?[\w/]+\2\s*\.\s*)?`/,{token:"string.tablepath",next:"@table"}]],table:[[/[^\\`]+/,"string.tablepath"],[/``/,"string.tablepath"],[/@escapes/,"string.escape.tablepath"],[/\\./,"string.escape.invalid.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]],primaryKey:[[/primary key/i,"keyword"]]}}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1956.c11f9b8a.chunk.js b/ydb/core/viewer/monitoring/static/js/1956.c11f9b8a.chunk.js deleted file mode 100644 index 372e8ae9a1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1956.c11f9b8a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1956],{21956:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"kn",weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/19702.cd1b5e06.chunk.js b/ydb/core/viewer/monitoring/static/js/19702.cd1b5e06.chunk.js new file mode 100644 index 0000000000..e85c1d9348 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/19702.cd1b5e06.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[19702],{19702:(e,t,n)=>{n.d(t,{default:()=>i});var r=n(66651);const i=n.n(r)()},66651:e=>{function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}e.exports=t,t.displayName="nsis",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/19728.daf9b9f8.chunk.js b/ydb/core/viewer/monitoring/static/js/19728.daf9b9f8.chunk.js new file mode 100644 index 0000000000..c82834129f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/19728.daf9b9f8.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 19728.daf9b9f8.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[19728],{19728:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>p,language:()=>w});var n,o,r=i(80781),l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of d(t))s.call(e,o)||o===i||l(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},c={};u(c,n=r,"default"),o&&u(o,n,"default");var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},w={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/19728.daf9b9f8.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/19728.daf9b9f8.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/1975.e3066826.chunk.js b/ydb/core/viewer/monitoring/static/js/1975.e3066826.chunk.js deleted file mode 100644 index b6e10b3607..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1975.e3066826.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1975],{31975:function(e,_,t){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),a={name:"me",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(a,null,!0),a}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/19791.feabd3fc.chunk.js b/ydb/core/viewer/monitoring/static/js/19791.feabd3fc.chunk.js new file mode 100644 index 0000000000..6055544e0d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/19791.feabd3fc.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[19791],{19791:(e,r,t)=>{t.d(r,{default:()=>a});var n=t(47204);const a=t.n(n)()},47204:e=>{function r(e){!function(e){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,t=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,n=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,(function(){return r})).replace(/<comment>/g,(function(){return t})),a=0;a<2;a++)n=n.replace(/<expr>/g,(function(){return n}));n=n.replace(/<expr>/g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,(function(){return n})),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,(function(){return n})),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}e.exports=r,r.displayName="qml",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/20053.925f8331.chunk.js b/ydb/core/viewer/monitoring/static/js/20053.925f8331.chunk.js new file mode 100644 index 0000000000..550ef3aa22 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/20053.925f8331.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[20053],{20053:(e,t,a)=>{a.d(t,{default:()=>s});var n=a(74224);const s=a.n(n)()},74224:e=>{function t(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a,n=e.languages,s={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},i={"application/json":!0,"application/xml":!0};function r(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var p in s)if(s[p]){a=a||{};var o=i[p]?r(p):p;a[p.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+o+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:s[p]}}a&&e.languages.insertBefore("http","header",a)}(e)}e.exports=t,t.displayName="http",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js b/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js deleted file mode 100644 index 545964cc19..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2016.397296b7.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2016],{92016:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>s});var r={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp("^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|/).*\\4)*(#.*)?$"),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},s={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js b/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js deleted file mode 100644 index 82646af3fb..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2031.d8f098f9.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2031],{253:(e,t,i)=>{"use strict";i.d(t,{f:()=>r,j:()=>n});var s=i(32848);const n=(0,i(63591).u1)("accessibilityService"),r=new s.N1("accessibilityModeEnabled",!1)},538:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(132).then(i.bind(i,40132))})},631:(e,t,i)=>{"use strict";function s(e){return"string"===typeof e}function n(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function r(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function o(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function c(e){return!0===e||!1===e}function l(e){return"undefined"===typeof e}function h(e){return!d(e)}function d(e){return l(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let s=0;s<i;s++)f(e[s],t[s])}function f(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{Et:()=>o,Gv:()=>n,Kg:()=>s,Lm:()=>c,O9:()=>h,Tn:()=>p,b0:()=>l,eU:()=>g,iu:()=>r,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>d})},796:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(7642).then(i.bind(i,77642))})},908:(e,t,i)=>{"use strict";i.d(t,{As:()=>r,qg:()=>o});var s=i(81674),n=i(79400);function r(e){return JSON.stringify(e,a)}function o(e){let t=JSON.parse(e);return t=c(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function c(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return n.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof s.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=c(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=c(e[i],t+1))}return e}},1019:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(85858),n=i(76531),r=i(1449).decode,o="$value",a="$type",c="$attributes",l="$incomplete",h={string:null,number:null,boolean:null,null:null,object:null,array:null};const d="_type_tag";function u(e){if(Object.prototype.hasOwnProperty.call(e,"$attributes")&&!Object.prototype.hasOwnProperty.call(e,"$incomplete")){const t=e.$attributes[d];if("undefined"!==typeof t){const i=n.value(t),s=function(e,t){if("url"===e)return function(e){const t=e.$value,i=e.$type;if("string"===i)return{$type:"tag_value",$value:{href:t}};if("map"===i&&Object.prototype.hasOwnProperty.call(t,"href"))return{$type:"tag_value",$value:{href:n.value(t.href),text:n.value(t.text),title:n.value(t.title)}}}(t);return function(e){return{$type:e.$type,$value:e.$value}}(t)}(i,e);s&&(e.$type="tagged",e.$tag=i,e.$value=s,delete e.$attributes[d])}}}function g(e){const t={};return function(e,t){e[o]=n.hasSpecialProperty(t,o)?t[o]:t;const i=s(e[o]);if(!Object.prototype.hasOwnProperty.call(h,i))throw new Error('unipika: invalid input - $value type "'+i+'" is not supported.');if(n.hasSpecialProperty(t,a)){const i=s(t[a]);if("undefined"!==i&&"string"!==i)throw new Error('unipika: invalid input - $type must be a string instead got "'+i+'".');e[a]=t[a]}else e[a]=function(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}(i)}(t,e),function(e,t){if(n.hasSpecialProperty(t,c)){const i=s(t[c]);if("object"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[c]=Object.assign({},t[c])}}(t,e),function(e,t){if(n.hasSpecialProperty(t,l)){const i=s(t[l]);if("boolean"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[l]=t[l]}}(t,e),u(t),t}function p(e,t){return Object.keys(e).map((function(i){const s=m(g(i),t);return s.$key=!0,[s,m(e[i],t)]}))}const m=function(e,i){let s;return(i=i||{}).decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),(e=g(e))&&(n.hasSpecialProperty(e,c)&&(e=function(e,t){return e[c]=p(e[c],t),e}(e)),s=e[a],"map"===s?e=function(e,t){return e[o]=p(e[o],t),e}(e,i):"list"===s?e=function(e,t){return e[o]=e[o].map((function(e){return m(e,t)})),e}(e,i):"string"===s&&(e=function(e,t){try{e.$decoded_value=t.decodeUTF8?r(e[o],{allowTruncatedEnd:e[l]}):e[o]}catch(i){e.$binary=!0}return e}(e,i))),e};e.exports=m}()},1098:(e,t,i)=>{"use strict";i.d(t,{X:()=>l});var s=i(8597),n=i(51241),r=i(5662),o=i(31308),a=i(87958),c=i(38844);class l extends r.jG{static{this.ID="editor.contrib.placeholderText"}constructor(e){var t,i;super(),this._editor=e,this._editorObs=(0,c.Ud)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,o.C)({owner:this,equalsFn:n.dB},(e=>{const t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}})),this._shouldViewBeAlive=(t=this,i=e=>void 0!==this._state.read(e)?.placeholder,(0,o.ZX)(t,((e,t)=>!0===t||i(e)))),this._view=(0,a.rm)(((e,t)=>{if(!this._shouldViewBeAlive.read(e))return;const i=(0,s.h)("div.editorPlaceholder");t.add((0,o.fm)((e=>{const t=this._state.read(e),s=void 0!==t?.placeholder;i.root.style.display=s?"block":"none",i.root.innerText=t?.placeholder??""}))),t.add((0,o.fm)((e=>{const t=this._editorObs.layoutInfo.read(e);i.root.style.left=`${t.contentLeft}px`,i.root.style.width=t.contentWidth-t.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`}))),t.add((0,o.fm)((e=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(e),i.root.style.fontSize=this._editorObs.getOption(52).read(e)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(e)+"px"}))),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,o.lk)(0),position:(0,o.lk)(null),domNode:i.root}))})),this._view.recomputeInitiallyAndOnChange(this._store)}}},1155:(e,t,i)=>{"use strict";i.d(t,{m:()=>u});var s=i(59284),n=i(32084),r=i(81517),o=i(39238),a=i(98089),c=i(69220),l=i(7412);const h=(0,c.om)("tooltip"),d=["bottom","top"],u=e=>{const{children:t,content:i,disabled:c,placement:u=d,qa:g,id:p,className:m,style:f,disablePortal:_,contentClassName:v,openDelay:C=1e3,closeDelay:E}=e,[b,S]=s.useState(null),y=(0,r.d)(b,{openDelay:C,closeDelay:E,preventTriggerOnFocus:!0}),w=s.Children.only(t),R=(0,l.Q)(w),L=(0,n.N)(S,R);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:L}),b?s.createElement(o.z,{id:p,role:"tooltip",className:h(null,m),style:f,open:y&&!c,placement:u,anchorRef:{current:b},disablePortal:_,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:g},s.createElement("div",{className:h("content",v)},s.createElement(a.E,{variant:"body-short",color:"complementary"},i))):null)}},1226:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var s=i(91508),n=i(15092),r=i(32799),o=i(1245),a=i(94564),c=i(36677),l=i(83069);class h{static deleteRight(e,t,i,s){const r=[];let o=3!==e;for(let l=0,h=s.length;l<h;l++){const e=s[l];let h=e;if(h.isEmpty()){const s=e.getPosition(),n=a.I.right(t,i,s);h=new c.Q(n.lineNumber,n.column,s.lineNumber,s.column)}h.isEmpty()?r[l]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[l]=new n.iu(h,""))}return[o,r]}static isAutoClosingPairDelete(e,t,i,s,n,o,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let c=0,l=o.length;c<l;c++){const l=o[c],h=l.getPosition();if(!l.isEmpty())return!1;const d=n.getLineContent(h.lineNumber);if(h.column<2||h.column>=d.length+1)return!1;const u=d.charAt(h.column-2),g=s.get(u);if(!g)return!1;if((0,r.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=d.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const s=[];for(let r=0,o=i.length;r<o;r++){const e=i[r].getPosition(),t=new c.Q(e.lineNumber,e.column-1,e.lineNumber,e.column+1);s[r]=new n.iu(t,"")}return[!0,s]}static deleteLeft(e,t,i,s,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,s,r))return this._runAutoClosingPairDelete(t,i,s);const o=[];let a=2!==e;for(let c=0,l=s.length;c<l;c++){const e=h.getDeleteRange(s[c],i,t);e.isEmpty()?o[c]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),o[c]=new n.iu(e,""))}return[a,o]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const n=e.getPosition();if(i.useTabStops&&n.column>1){const e=t.getLineContent(n.lineNumber),r=s.HG(e),a=-1===r?e.length+1:r+1;if(n.column<=a){const e=i.visibleColumnFromColumn(t,n),s=o.A.prevIndentTabStop(e,i.indentSize),r=i.columnFromVisibleColumn(t,n.lineNumber,s);return new c.Q(n.lineNumber,r,n.lineNumber,n.column)}}return c.Q.fromPositions(h.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=s.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new l.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const s=[];let o=null;i.sort(((e,t)=>l.y.compare(e.getStartPosition(),t.getEndPosition())));for(let r=0,a=i.length;r<a;r++){const a=i[r];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,l,h,d;e.lineNumber<t.getLineCount()?(i=e.lineNumber,l=1,h=e.lineNumber+1,d=1):e.lineNumber>1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,l=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,l=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new c.Q(i,l,h,d);o=u,u.isEmpty()?s[r]=null:s[r]=new n.iu(u,"")}else s[r]=null;else s[r]=new n.iu(a,"")}return new r.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},1245:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(91508);class n{static _nextVisibleColumn(e,t,i){return 9===e?n.nextRenderTabStop(t,i):s.ne(e)||s.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const n=Math.min(t-1,e.length),r=e.substring(0,n),o=new s.km(r);let a=0;for(;!o.eol();){const e=s.Z5(r,n,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const n=e.length,r=new s.km(e);let o=0,a=1;for(;!r.eol();){const c=s.Z5(e,n,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(c,o,i),h=r.offset+1;if(l>=t){return l-t<t-o?h:a}o=l,a=h}return n+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},1449:(e,t,i)=>{!function(){"use strict";const t=i(59170);e.exports={encode:t.encode,decode:t.decode}}()},1592:(e,t,i)=>{"use strict";function s(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>n,mu:()=>r,qE:()=>s});class n{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 r{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const 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}}},1646:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gv:()=>y,rC:()=>S});var s=i(25890),n=i(41234),r=i(631),o=i(78209),a=i(84001),c=i(78748),l=i(46359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=l.O.as(c.F.JSONContribution);const C="\\[([^\\]]+)\\]",E=new RegExp(C,"g"),b=`^(${C})+$`,S=new RegExp(b);function y(e){const t=[];if(S.test(e)){let i=E.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=E.exec(e)}}return(0,s.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.vl,this._onDidUpdateConfiguration=new n.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","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.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:s,source:n}of e)for(const e in s){t.add(e);const r=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=s[e];if(r.configurationDefaultOverrides.push({value:o,source:n}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,n),i.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t;const i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i))}}this.doRegisterOverrideIdentifiers(i)}updateDefaultOverrideProperty(e,t,i){const s={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=s,this.defaultLanguageConfigurationOverridesNode.properties[e]=s}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,s){const n=s?.value||{},o=s?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const s=t[e];if(r.Gv(s)&&(r.b0(n[e])||r.Gv(n[e]))){if(n[e]={...n[e]??{},...s},i)for(const t in s)o.set(`${e}.${t}`,i)}else n[e]=s,i?o.set(e,i):o.delete(e)}return{value:n,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,s){const n=this.configurationProperties[e],o=s?.value??n?.defaultDefaultValue;let a=i;if(r.Gv(t)&&(void 0!==n&&"object"===n.type||void 0===n&&(r.b0(o)||r.Gv(o)))){if(a=s?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const s in t)i&&a.set(`${e}.${s}`,i);t={...r.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const 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,s,n=3,o){n=r.z(e.scope)?n:e.scope;const a=e.properties;if(a)for(const l in a){const e=a[l];t&&R(l,e)?delete a[l]:(e.source=i,e.defaultDefaultValue=a[l].default,this.updatePropertyDefaultValue(l,e),S.test(l)?e.scope=void 0:(e.scope=r.z(e.scope)?n:e.scope,e.restricted=r.z(e.restricted)?!!s?.includes(l):e.restricted),!a[l].hasOwnProperty("included")||a[l].included?(this.configurationProperties[l]=a[l],a[l].policy?.name&&this.policyConfigurations.set(a[l].policy.name,l),!a[l].deprecationMessage&&a[l].markdownDeprecationMessage&&(a[l].deprecationMessage=a[l].markdownDeprecationMessage),o.add(l)):(this.excludedConfigurationProperties[l]=a[l],delete a[l]))}const c=e.allOf;if(c)for(const r of c)this.validateAndRegisterProperties(r,t,i,s,n,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const s=e.allOf;s?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[b]=e,u.patternProperties[b]=e,g.patternProperties[b]=e,p.patternProperties[b]=e,m.patternProperties[b]=e,f.patternProperties[b]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let s,n;!i||t.disallowConfigurationDefault&&i.source||(s=i.value,n=i.source),r.b0(s)&&(s=t.defaultDefaultValue,n=void 0),r.b0(s)&&(s=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=s,t.defaultValueSource=n}};function R(e,t){return e.trim()?S.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}l.O.add(h.Configuration,w)},1956:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07z",clipRule:"evenodd"}))},2068:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(9842).then(i.bind(i,79842))})},2183:(e,t,i)=>{"use strict";var s=i(5662),n=i(98067),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(87289);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function d(e){return n.zx?e.altKey:e.ctrlKey}class u extends s.jG{static{this.ID="editor.contrib.dragAndDrop"}static{this.TRIGGER_KEY_VALUE=n.zx?6:5}constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new o.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:s,selectionStartColumn:n}=e;i=[new c.L(s,n,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new c.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}static{this._DECORATION_OPTIONS=l.kI.register({description:"dnd-target",className:"dnd-target"})}showAt(e){this._dndDecorationIds.set([{range:new a.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}(0,r.HW)(u.ID,u,2)},2299:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},2539:e=>{e.exports=function(){function e(e,t){const i=e.$value;return"function"===typeof t.customNumberFormatter?t.customNumberFormatter(e.$value,e.$type):"yson"===t.format?i+"u":i}return e.isScalar=!0,e}},3254:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(9176).then(i.bind(i,99176))})},3730:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>l,P8:()=>d});var s=i(64383),n=i(5662),r=i(83069),o=i(36677),a=i(36456),c=i(79400);class l{constructor(e,t){this.range=e,this.direction=t}}class h{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new h(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){try{const t=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=t?.tooltip??this.hint.tooltip,this.hint.label=t?.label??this.hint.label,this.hint.textEdits=t?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(t){(0,s.M_)(t),this._isResolved=!1}}}class d{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(e,t,i,n){const r=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const s=await e.provideInlayHints(t,i,n);(s?.hints.length||e.onDidChangeInlayHints)&&r.push([s??d._emptyInlayHintList,e])}catch(o){(0,s.M_)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new s.AL;return new d(i,r,t)}constructor(e,t,i){this._disposables=new n.Cm,this.ranges=e,this.provider=new Set;const s=[];for(const[n,r]of t){this._disposables.add(n),this.provider.add(r);for(const e of n.hints){const t=i.validatePosition(e.position);let n="before";const a=d._getRangeAtPosition(i,t);let c;a.getStartPosition().isBefore(t)?(c=o.Q.fromPositions(a.getStartPosition(),t),n="after"):(c=o.Q.fromPositions(t,a.getEndPosition()),n="before"),s.push(new h(e,new l(c,n),r))}}this.items=s.sort(((e,t)=>r.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,s=e.getWordAtPosition(t);if(s)return new o.Q(i,s.startColumn,i,s.endColumn);e.tokenization.tokenizeIfCheap(i);const n=e.tokenization.getLineTokens(i),r=t.column-1,a=n.findTokenIndexAtOffset(r);let c=n.getStartOffset(a),l=n.getEndOffset(a);return l-c===1&&(c===r&&a>1?(c=n.getStartOffset(a-1),l=n.getEndOffset(a-1)):l===r&&a<n.getCount()-1&&(c=n.getStartOffset(a+1),l=n.getEndOffset(a+1))),new o.Q(i,c+1,i,l+1)}}function u(e){return c.r.from({scheme:a.ny.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}},3828:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var s=i(8597),n=i(91508);class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,s.BC)(e,(0,s.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,n.GP)(this.countFormat,this.count),this.element.title=(0,n.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=this.styles.badgeBackground??"",this.element.style.color=this.styles.badgeForeground??"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},4360:(e,t,i)=>{"use strict";i.d(t,{T:()=>Bt});var s=i(8597),n=i(46041),r=i(64383),o=i(41234),a=i(5662),c=i(31308),l=i(87958),h=i(31450),d=i(80301),u=i(55190),g=i(52555),p=i(80789),m=i(11799),f=i(31295),_=i(36921),v=i(25890),C=i(10350),E=i(25689),b=i(73157),S=i(92368),y=i(87908),w=i(86571),R=i(74444),L=i(83069),T=i(36677),x=i(87723),k=i(10154),A=i(87469),N=i(35600),I=i(92896),O=i(78209),D=i(87213),M=i(63591),P=i(61394),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=(0,P.pU)("diff-review-insert",C.W.add,(0,O.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),B=(0,P.pU)("diff-review-remove",C.W.remove,(0,O.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),W=(0,P.pU)("diff-review-close",C.W.close,(0,O.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let V=class extends a.jG{static{this._ttPolicy=(0,p.H)("diffReview",{createHTML:e=>e})}constructor(e,t,i,s,n,r,o,a,l){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=s,this._width=n,this._height=r,this._diffs=o,this._models=a,this._instantiationService=l,this._state=(0,c.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const s=t.add(this._instantiationService.createInstance(z,this._diffs,this._models,this._setVisible,this._canClose));return{model:s,view:t.add(this._instantiationService.createInstance(X,this._parentNode,s,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,c.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,c.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,c.Rn)((e=>{this._setVisible(!1,e)}))}};V=F([U(8,M._Y)],V);let z=class extends a.jG{constructor(e,t,i,s,n){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=s,this._accessibilitySignalService=n,this._groups=(0,c.FY)(this,[]),this._currentGroupIdx=(0,c.FY)(this,0),this._currentElementIdx=(0,c.FY)(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)=>this.currentGroup.read(t)?.lines[e])),this._register((0,c.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const s=[];for(const n of(0,v.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*G))){const e=[];e.push(new Y);const r=new w.M(Math.max(1,n[0].original.startLineNumber-G),Math.min(n[n.length-1].original.endLineNumberExclusive+G,t+1)),o=new w.M(Math.max(1,n[0].modified.startLineNumber-G),Math.min(n[n.length-1].modified.endLineNumberExclusive+G,i+1));(0,v.pN)(n,((t,i)=>{const s=new w.M(t?t.original.endLineNumberExclusive:r.startLineNumber,i?i.original.startLineNumber:r.endLineNumberExclusive),n=new w.M(t?t.modified.endLineNumberExclusive:o.startLineNumber,i?i.modified.startLineNumber:o.endLineNumberExclusive);s.forEach((t=>{e.push(new Q(t,n.startLineNumber+(t-s.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new q(i,t))})),i.modified.forEach((t=>{e.push(new $(i,t))})))}));const a=n[0].modified.join(n[n.length-1].modified),c=n[0].original.join(n[n.length-1].original);s.push(new K(new x.WL(a,c),e))}return s}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,c.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const s=i.findIndex((e=>t?.lineNumber<e.range.modified.endLineNumberExclusive));-1!==s&&this._currentGroupIdx.set(s,e)}this._groups.set(i,e)}))}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);t?.type===j.Deleted?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):t?.type===j.Added&&this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);if(t&&t.type!==j.Header){const e=t.modifiedLineNumber??t.diff.modified.startLineNumber;this._models.modifiedSetSelection(T.Q.fromPositions(new L.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,c.PO)(t,(t=>{this._currentGroupIdx.set(R.L.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){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,c.Rn)((i=>{this._currentElementIdx.set(R.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,c.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===j.Deleted?this._models.originalReveal(T.Q.fromPositions(new L.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==j.Header?T.Q.fromPositions(new L.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};z=F([U(4,D.Nt)],z);const G=3;var j;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(j||(j={}));class K{constructor(e,t){this.range=e,this.lines=t}}class Y{constructor(){this.type=j.Header}}class q{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=j.Deleted,this.modifiedLineNumber=void 0}}class ${constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=j.Added,this.originalLineNumber=void 0}}class Q{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=j.Unchanged}}let X=class extends a.jG{constructor(e,t,i,n,r,o){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=r,this._languageService=o,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const l=document.createElement("div");l.className="diff-review-actions",this._actionBar=this._register(new m.E(l)),this._register((0,c.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.rc("diffreview.close",(0,O.kg)("label.close","Close"),"close-diff-review "+E.L.asClassName(W),!0,(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 f.MU(this._content,{})),(0,s.Ln)(this.domNode,this._scrollbar.getDomNode(),l),this._register((0,c.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,s.Ln)(this.domNode)}))),this._register((0,S.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,S.AV)(this._content,{width:this._width,height:this._height})),this._register((0,c.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,s.b2)(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){const 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,O.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,b.M)(n,i.get(50)),(0,s.Ln)(this._content,n);const r=this._models.getOriginalModel(),o=this._models.getModifiedModel();if(!r||!o)return;const a=r.getOptions(),l=o.getOptions(),h=i.get(67),d=this._model.currentGroup.get();for(const u of d?.lines||[]){if(!d)break;let g;if(u.type===j.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=d.range,i=this._model.currentGroupIndex.get(),s=this._model.groups.get().length,n=e=>0===e?(0,O.kg)("no_lines_changed","no lines changed"):1===e?(0,O.kg)("one_line_changed","1 line changed"):(0,O.kg)("more_lines_changed","{0} lines changed",e),r=n(t.original.length),o=n(t.modified.length);e.setAttribute("aria-label",(0,O.kg)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,s,t.original.startLineNumber,r,t.modified.startLineNumber,o));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${s}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,r,a,i,o,l);n.appendChild(g);const p=(0,c.un)((e=>this._model.currentElement.read(e)===u));e.add((0,c.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,s.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,s,n,r,o,a,c){const l=s.get(146),h=l.glyphMarginWidth+l.lineNumbersWidth,d=o.get(146),u=10+d.glyphMarginWidth+d.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case j.Added:g="diff-review-row line-insert",p=" char-insert",m=H;break;case j.Deleted:g="diff-review-row line-delete",p=" char-delete",m=B}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const C=document.createElement("span");C.style.width=u+"px",C.style.minWidth=u+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText="\xa0",_.appendChild(C);const b=document.createElement("span");if(b.className="diff-review-spacer",m){const e=document.createElement("span");e.className=E.L.asClassName(m),e.innerText="\xa0\xa0",b.appendChild(e)}else b.innerText="\xa0\xa0";let S;if(_.appendChild(b),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,o,c.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(n,s,r.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=n.getLineContent(e.originalLineNumber)}0===S.length&&(S=(0,O.kg)("blankLine","blank"));let y="";switch(e.type){case j.Unchanged:y=e.originalLineNumber===e.modifiedLineNumber?(0,O.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",S,e.originalLineNumber):(0,O.kg)("equalLine","{0} original line {1} modified line {2}",S,e.originalLineNumber,e.modifiedLineNumber);break;case j.Added:y=(0,O.kg)("insertLine","+ {0} modified line {1}",S,e.modifiedLineNumber);break;case j.Deleted:y=(0,O.kg)("deleteLine","- {0} original line {1}",S,e.originalLineNumber)}return f.setAttribute("aria-label",y),f}_getLineHtml(e,t,i,s,n){const r=e.getLineContent(s),o=t.get(50),a=A.f.createEmpty(r,n),c=I.qL.isBasicASCII(r,e.mightContainNonBasicASCII()),l=I.qL.containsRTL(r,c,e.mightContainRTL());return(0,N.Md)(new N.zL(o.isMonospace&&!t.get(33),o.canUseHalfwidthRightwardsArrow,r,!1,c,l,0,a,[],i,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(118),t.get(100),t.get(95),t.get(51)!==y.Bc.OFF,null)).html}};X=F([U(5,k.L)],X);class Z{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(){return this.editors.modified.getPosition()??void 0}}var J=i(90766),ee=i(631),te=i(10691),ie=i(18447),se=i(94746),ne=i(41127),re=i(26746),oe=i(94650),ae=i(84084),ce=i(82518),le=i(66782),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,c.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,c.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,c.FY)(this,void 0),this.unchangedRegions=(0,c.un)(this,(e=>this._options.hideUnchangedRegions.read(e)?this._unchangedRegions.read(e)?.regions??[]:((0,c.Rn)((e=>{for(const t of this._unchangedRegions.get()?.regions||[])t.collapseAll(e)})),[]))),this.movedTextToCompare=(0,c.FY)(this,void 0),this._activeMovedText=(0,c.FY)(this,void 0),this._hoveredMovedText=(0,c.FY)(this,void 0),this.activeMovedText=(0,c.un)(this,(e=>this.movedTextToCompare.read(e)??this._hoveredMovedText.read(e)??this._activeMovedText.read(e))),this._cancellationTokenSource=new ie.Qi,this._diffProvider=(0,c.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,c.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const s=(0,c.Yd)("contentChangedSignal"),n=this._register(new J.uC((()=>s.trigger(void 0)),200));this._register((0,c.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const s=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),n=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),r=i.regions.map(((e,i)=>s[i]&&n[i]?new me(s[i].startLineNumber,n[i].startLineNumber,s[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(ee.O9),o=[];let a=!1;for(const e of(0,v.n)(r,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new me(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());o.push(i)}else o.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,o.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),s=e.modified.deltaDecorations(i.modifiedDecorationIds,o.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,c.Rn)((e=>{this._unchangedRegions.set({regions:o,originalDecorationIds:t,modifiedDecorationIds:s},e)}))}})));const r=(t,i,s)=>{const n=me.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(s),this._options.hideUnchangedRegionsContextLineCount.read(s));let r;const o=this._unchangedRegions.get();if(o){const t=o.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),i=o.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0));let n=(0,S.EK)(o.regions.map(((e,s)=>{if(!t[s]||!i[s])return;const n=t[s].length;return new me(t[s].startLineNumber,i[s].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()))})).filter(ee.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new x.WL(e.getHiddenOriginalRange(s),e.getHiddenModifiedRange(s))));n=x.WL.clip(n,w.M.ofLength(1,e.original.getLineCount()),w.M.ofLength(1,e.modified.getLineCount())),r=x.WL.inverse(n,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(r)for(const e of n){const t=r.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...n);const c=e.original.deltaDecorations(o?.originalDecorationIds||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),l=e.modified.deltaDecorations(o?.modifiedDecorationIds||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:c,modifiedDecorationIds:l},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=_e(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=fe(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register((0,c.yC)((async(t,i)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),n.cancel(),s.read(t);const o=this._diffProvider.read(t);o.onChangeSignal.read(t),(0,ne.b)(re.D8,t),(0,ne.b)(ce.NC,t),this._isDiffUpToDate.set(!1,void 0);let a=[];i.add(e.original.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);a=(0,ae.M)(a,t)})));let l=[];i.add(e.modified.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);l=(0,ae.M)(l,t)})));let h=await o.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);var d,u,g;this._cancellationTokenSource.token.isCancellationRequested||(e.original.isDisposed()||e.modified.isDisposed()||(d=h,u=e.original,g=e.modified,h={changes:d.changes.map((e=>new x.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let s=e.originalRange,n=e.modifiedRange;return 1===s.startColumn&&1===n.startColumn&&(1!==s.endColumn||1!==n.endColumn)&&s.endColumn===t.getLineMaxColumn(s.endLineNumber)&&n.endColumn===i.getLineMaxColumn(n.endLineNumber)&&s.endLineNumber<t.getLineCount()&&n.endLineNumber<i.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),n=n.setEndPosition(n.endLineNumber+1,1)),new x.q6(s,n)}(e,u,g))):void 0))),moves:d.moves,identical:d.identical,quitEarly:d.quitEarly},h=fe(h,a,e.original,e.modified)??h,h=_e(h,l,e.original,e.modified)??h,(0,c.Rn)((e=>{r(h,e),this._lastDiff=h;const t=ge.fromDiffResult(h);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)}))))})))}ensureModifiedLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i)}async waitForDiff(){await(0,c.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:e?.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){const t=e.collapsedRegions?.map((e=>w.M.deserialize(e.range))),i=this._unchangedRegions.get();i&&t&&(0,c.Rn)((e=>{for(const s of i.regions)for(const i of t)if(s.modifiedUnchangedRange.intersect(i)){s.setHiddenModifiedRange(i,e);break}}))}};ue=he([de(2,se.Hg)],ue);class ge{static fromDiffResult(e){return new ge(e.changes.map((e=>new pe(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,s){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=s}}class pe{constructor(e){this.lineRangeMapping=e}}class me{static fromDiffs(e,t,i,s,n){const r=x.wm.inverse(e,t,i),o=[];for(const a of r){let e=a.original.startLineNumber,r=a.modified.startLineNumber,c=a.original.length;const l=1===e&&1===r,h=e+c===t+1&&r+c===i+1;(l||h)&&c>=n+s?(l&&!h&&(c-=n),h&&!l&&(e+=n,r+=n,c-=n),o.push(new me(e,r,c,0,0))):c>=2*n+s&&(e+=n,r+=n,c-=2*n,o.push(new me(e,r,c,0,0)))}return o}get originalUnchangedRange(){return w.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return w.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,s,n){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,c.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,c.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,c.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,c.FY)(this,void 0);const r=Math.max(Math.min(s,this.lineCount),0),o=Math.max(Math.min(n,this.lineCount-s),0);(0,le.V7)(s===r),(0,le.V7)(n===o),this._visibleLineCountTop.set(r,void 0),this._visibleLineCountBottom.set(o,void 0)}setVisibleRanges(e,t){const i=[],s=new w.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let n=this.originalLineNumber,r=this.modifiedLineNumber;const o=this.modifiedLineNumber+this.lineCount;if(0===s.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of s.ranges){const c=e===s.ranges.length-1;e++;const l=(c?o:a.endLineNumberExclusive)-r,h=new me(n,r,l,0,0);h.setHiddenModifiedRange(a,t),i.push(h),n=h.originalUnchangedRange.endLineNumberExclusive,r=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return w.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return w.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,s=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,s,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const 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){const s=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),n=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+s,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+n,i)}showOriginalLine(e,t,i){const s=e-this.originalLineNumber,n=this.originalLineNumber+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+n-s,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+s-n,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 fe(e,t,i,s){}function _e(e,t,i,s){}var ve=i(98067);class Ce extends a.jG{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,r,o,a,c,l){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=n,this._editor=r,this._viewLineCounts=o,this._originalTextModel=a,this._contextMenuService=c,this._clipboardService=l,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=E.L.asClassName(C.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let d=0;const u=i.getOption(128)&&!ve.un,g=(e,t)=>{this._contextMenuService.showContextMenu({domForShadowRoot:u?i.getDomNode()??void 0:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=n.modified.isEmpty;e.push(new _.rc("diff.clipboard.copyDeletedContent",t?n.original.length>1?(0,O.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,O.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?(0,O.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,O.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),n.original.length>1&&e.push(new _.rc("diff.clipboard.copyDeletedLineContent",t?(0,O.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+d):(0,O.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+d),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(n.original.startLineNumber+d);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(92)||e.push(new _.rc("diff.inline.revertChange",(0,O.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,s.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,s.BK)(this._diffActions),n=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:n}=(0,s.BK)(e),r=t-n,o=Math.floor(r/i),a=o*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],o<e)return t}return o}}var Ee=i(99020),be=i(25521);const Se=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function ye(e,t,i,s){(0,b.M)(s,t.fontInfo);const n=i.length>0,r=new Ee.fe(1e4);let o=0,a=0;const c=[];for(let d=0;d<e.lineTokens.length;d++){const s=d+1,l=e.lineTokens[d],h=e.lineBreakData[d],u=be.d.filter(i,s,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const s of h.breakOffsets){const c=l.sliceAndInflate(i,s,0);o=Math.max(o,Le(a,c,be.d.extractWrapped(u,i,s),n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++,i=s}c.push(h.breakOffsets.length)}else c.push(1),o=Math.max(o,Le(a,l,u,n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++}o+=t.scrollBeyondLastColumn;const l=r.build(),h=Se?Se.createHTML(l):l;s.innerHTML=h;return{heightInLines:a,minWidthInPx:o*t.typicalHalfwidthCharacterWidth,viewLineCounts:c}}class we{constructor(e,t,i,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=s}}class Re{static fromEditor(e){const t=e.getOptions(),i=t.get(50),s=t.get(146);return new Re(e.getModel()?.getOptions().tabSize||0,i,t.get(33),i.typicalHalfwidthCharacterWidth,t.get(105),t.get(67),s.decorationsWidth,t.get(118),t.get(100),t.get(95),t.get(51))}constructor(e,t,i,s,n,r,o,a,c,l,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=s,this.scrollBeyondLastColumn=n,this.lineHeight=r,this.lineDecorationsWidth=o,this.stopRenderingLineAfter=a,this.renderWhitespace=c,this.renderControlCharacters=l,this.fontLigatures=h}}function Le(e,t,i,s,n,r,o,a){a.appendString('<div class="view-line'),s||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*o.lineHeight)),a.appendString('px;width:1000000px;">');const c=t.getLineContent(),l=I.qL.isBasicASCII(c,n),h=I.qL.containsRTL(c,l,r),d=(0,N.UW)(new N.zL(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,l,h,0,t,i,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==y.Bc.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var Te=i(54770),xe=i(47508),ke=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ae=function(e,t){return function(i,s){t(i,s,e)}};let Ne=class extends a.jG{constructor(e,t,i,n,r,o,l,h,d,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=l,this._modViewZonesToIgnore=h,this._clipboardService=d,this._contextMenuService=u,this._originalTopPadding=(0,c.FY)(this,0),this._originalScrollOffset=(0,c.FY)(this,0),this._originalScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,c.FY)(this,0),this._modifiedScrollOffset=(0,c.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,c.FY)("invalidateAlignmentsState",0),p=this._register(new J.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,c.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>e?.read(t))),f=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!t||!i)return null;g.read(e);const s=this._options.renderSideBySide.read(e);return Ie(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,s)})),_=(0,c.un)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);if(!t)return null;g.read(e);const i=t.changes.map((e=>new pe(e)));return Ie(this._editors.original,this._editors.modified,i,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const y=this._register(new a.Cm);this.viewZones=(0,c.rm)(this,((e,t)=>{y.clear();const i=f.read(e)||[],n=[],o=[],a=this._modifiedTopPadding.read(e);a>0&&o.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:a,showInHiddenAreas:!0,suppressMouseDown:!0});const c=this._originalTopPadding.read(e);c>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:c,showInHiddenAreas:!0,suppressMouseDown:!0});const l=this._options.renderSideBySide.read(e),h=l?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(h){const L=this._editors.original.getModel();for(const T of i)if(T.diff)for(let x=T.originalRange.startLineNumber;x<T.originalRange.endLineNumberExclusive;x++){if(x>L.getLineCount())return{orig:n,mod:o};h?.addRequest(L.getLineContent(x),null,null)}}const d=h?.finalize()??[];let u=0;const g=this._editors.modified.getOption(67),p=this._diffModel.read(e)?.movedTextToCompare.read(e),S=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,w=this._editors.original.getModel()?.mightContainRTL()??!1,R=Re.fromEditor(this._editors.modified);for(const k of i)if(!k.diff||l||this._options.useTrueInlineDiffRendering.read(e)&&De(k.diff)){const A=k.modifiedHeightInPx-k.originalHeightInPx;if(A>0){if(p?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(k.originalRange.endLineNumberExclusive-1))continue;n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:A,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(p?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(k.modifiedRange.endLineNumberExclusive-1))continue;function N(){const e=document.createElement("div");return e.className="arrow-revert-change "+E.L.asClassName(C.W.arrowRight),t.add((0,s.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,s.ko)(e,"click",(e=>{e.stopPropagation(),r.revert(k.diff)}))),(0,s.$)("div",{},e)}let O;k.diff&&k.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(O=N()),o.push({afterLineNumber:k.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-A,marginDomNode:O,showInHiddenAreas:!0,suppressMouseDown:!0})}}else{if(!k.originalRange.isEmpty){m.read(e);const M=document.createElement("div");M.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const P=this._editors.original.getModel();if(k.originalRange.endLineNumberExclusive-1>P.getLineCount())return{orig:n,mod:o};const F=new we(k.originalRange.mapToLineArray((e=>P.tokenization.getLineTokens(e))),k.originalRange.mapToLineArray((e=>d[u++])),S,w),U=[];for(const V of k.diff.innerChanges||[])U.push(new I.kI(V.originalRange.delta(-(k.diff.original.startLineNumber-1)),te.Zb.className,0));const H=ye(F,R,U,M),B=document.createElement("div");if(B.className="inline-deleted-margin-view-zone",(0,b.M)(B,R.fontInfo),this._options.renderIndicators.read(e))for(let z=0;z<H.heightInLines;z++){const G=document.createElement("div");G.className=`delete-sign ${E.L.asClassName(te.dv)}`,G.setAttribute("style",`position:absolute;top:${z*g}px;width:${R.lineDecorationsWidth}px;height:${g}px;right:0;`),B.appendChild(G)}let W;y.add(new Ce((()=>(0,ee.eU)(W)),B,this._editors.modified,k.diff,this._diffEditorWidget,H.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let j=0;j<H.viewLineCounts.length;j++){const K=H.viewLineCounts[j];K>1&&n.push({afterLineNumber:k.originalRange.startLineNumber+j,domNode:v(),heightInPx:(K-1)*g,showInHiddenAreas:!0,suppressMouseDown:!0})}o.push({afterLineNumber:k.modifiedRange.startLineNumber-1,domNode:M,heightInPx:H.heightInLines*g,minWidthInPx:H.minWidthInPx,marginDomNode:B,setZoneId(e){W=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const D=document.createElement("div");D.className="gutter-delete",n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:k.modifiedHeightInPx,marginDomNode:D,showInHiddenAreas:!0,suppressMouseDown:!0})}for(const Y of _.read(e)??[]){if(!p?.lineRangeMapping.original.intersect(Y.originalRange)||!p?.lineRangeMapping.modified.intersect(Y.modifiedRange))continue;const q=Y.modifiedHeightInPx-Y.originalHeightInPx;q>0?n.push({afterLineNumber:Y.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:q,showInHiddenAreas:!0,suppressMouseDown:!0}):o.push({afterLineNumber:Y.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-q,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:n,mod:o}}));let w=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.modified.setScrollLeft(e.scrollLeft),w=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.original.setScrollLeft(e.scrollLeft),w=!1)}))),this._originalScrollTop=(0,c.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,c.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);let i=0;if(t){const e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();i=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-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.get()-i,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+i,void 0,!0)})))}};function Ie(e,t,i,s,n,r){const o=new v.j3(Oe(e,s)),a=new v.j3(Oe(t,n)),c=e.getOption(67),l=t.getOption(67),h=[];let d=0,u=0;function g(e,t){for(;;){let i=o.peek(),s=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),s&&s.lineNumber>=t&&(s=void 0),!i&&!s)break;const n=i?i.lineNumber-d:Number.MAX_VALUE,r=s?s.lineNumber-u:Number.MAX_VALUE;n<r?(o.dequeue(),s={lineNumber:i.lineNumber-d+u,heightInPx:0}):n>r?(a.dequeue(),i={lineNumber:s.lineNumber-u+d,heightInPx:0}):(o.dequeue(),a.dequeue()),h.push({originalRange:w.M.ofLength(i.lineNumber,1),modifiedRange:w.M.ofLength(s.lineNumber,1),originalHeightInPx:c+i.heightInPx,modifiedHeightInPx:l+s.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,C=m.original.startLineNumber;function E(e,t,i=!1){if(e<C||t<_)return;if(f)f=!1;else if(!i&&(e===C||t===_))return;const s=new w.M(C,e),n=new w.M(_,t);if(s.isEmpty&&n.isEmpty)return;const r=o.takeWhile((t=>t.lineNumber<e))?.reduce(((e,t)=>e+t.heightInPx),0)??0,d=a.takeWhile((e=>e.lineNumber<t))?.reduce(((e,t)=>e+t.heightInPx),0)??0;h.push({originalRange:s,modifiedRange:n,originalHeightInPx:s.length*c+r,modifiedHeightInPx:n.length*l+d,diff:p.lineRangeMapping}),C=e,_=t}if(r)for(const b of m.innerChanges||[]){b.originalRange.startColumn>1&&b.modifiedRange.startColumn>1&&E(b.originalRange.startLineNumber,b.modifiedRange.startLineNumber);const S=e.getModel(),y=b.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(b.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;b.originalRange.endColumn<y&&E(b.originalRange.endLineNumber,b.modifiedRange.endLineNumber)}E(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive,!0),d=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function Oe(e,t){const i=[],s=[],n=-1!==e.getOption(147).wrappingColumn,r=e._getViewModel().coordinatesConverter,o=e.getOption(67);if(n)for(let a=1;a<=e.getModel().getLineCount();a++){const e=r.getModelLineViewLineCount(a);e>1&&s.push({lineNumber:a,heightInPx:o*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:r.convertViewPositionToModelPosition(new L.y(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,S.Am)(i,s,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}function De(e){return!!e.innerChanges&&e.innerChanges.every((e=>Me(e.modifiedRange)&&Me(e.originalRange)||e.originalRange.equalsRange(new T.Q(1,1,1,1))))}function Me(e){return e.startLineNumber===e.endLineNumber}Ne=ke([Ae(8,Te.h),Ae(9,xe.Z)],Ne);class Pe extends a.jG{static{this.movedCodeBlockPadding=4}constructor(e,t,i,s,n){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=s,this._editors=n,this._originalScrollTop=(0,c.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,c.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,c.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,c.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,c.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,c.rm)(this,((e,t)=>{this._element.replaceChildren();const i=this._diffModel.read(e),s=i?.diff.read(e)?.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const n=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!n||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const o=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const s=i(t.lineRangeMapping.original,this._editors.original),n=this._originalScrollTop.read(e),r=i(t.lineRangeMapping.modified,this._editors.modified),o=s-n,a=r-this._modifiedScrollTop.read(e),c=Math.min(s,r),l=Math.max(s,r);return{range:new R.L(c,l),from:o,to:a,fromWithoutScroll:s,toWithoutScroll:r,move:t}}));o.sort((0,v.nH)((0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.TS),(0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.U9)));const a=Fe.compute(o.map((e=>e.range))),l=n.verticalScrollbarWidth,h=10*(a.getTrackCount()-1)+20,d=l+h+(r.contentLeft-Pe.movedCodeBlockPadding);let u=0;for(const g of o){const e=l+10+10*a.getTrack(u),s=15,n=15,o=d,h=r.glyphMarginWidth+r.lineNumbersWidth,p=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-h)),m.setAttribute("y",""+(g.to-p/2)),m.setAttribute("width",`${h}`),m.setAttribute("height",`${p}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${g.from} L ${e} ${g.from} L ${e} ${g.to} L ${o-n} ${g.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,c.fm)((e=>{_.classList.toggle("currentMove",g.move===i.activeMovedText.read(e)),v.classList.toggle("currentMove",g.move===i.activeMovedText.read(e))}))),v.setAttribute("points",`${o-n},${g.to-s/2} ${o},${g.to} ${o-n},${g.to+s/2}`),f.appendChild(v),this._element.appendChild(f),u++}this.width.set(h,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,a.s)((()=>this._element.remove()))),this._register((0,c.fm)((e=>{const 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-Pe.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,c.OI)(this._state));const r=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new S.D1((0,c.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new S.D1((0,c.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,S.Vs)(this._editors.original,r.map((e=>e.map((e=>e.original)))))),this._register((0,S.Vs)(this._editors.modified,r.map((e=>e.map((e=>e.modified)))))),this._register((0,c.yC)(((e,t)=>{const i=r.read(e);for(const s of i)t.add(new Ue(this._editors.original,s.original,s.move,"original",this._diffModel.get())),t.add(new Ue(this._editors.modified,s.modified,s.move,"modified",this._diffModel.get()))})));const o=(0,c.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),l=(0,c.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,c.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(o)&&(h="original"),e.didChange(l)&&(h="modified"),!0)},(e=>{o.read(e),l.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let s;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}s!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(s)})))}}class Fe{static compute(e){const t=[],i=[];for(const s of e){let e=t.findIndex((e=>!e.intersectsStrict(s)));if(-1===e){const i=6;t.length>=i?e=(0,n.TM)(t,(0,v.VE)((e=>e.intersectWithRangeLength(s)),v.U9)):(e=t.length,t.push(new R.h))}t[e].addRange(s),i.push(e)}return new Fe(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class Ue extends S.uN{constructor(e,t,i,n,r){const o=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,o.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=r,this._nodes=(0,s.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,s.h)("div.text-content@textContent"),(0,s.h)("div.action-bar@actionBar")]),o.root.appendChild(this._nodes.root);const a=(0,c.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let l;this._register((0,S.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),l=i.changes.length>0?"original"===this._kind?(0,O.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,O.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.E(this._nodes.actionBar,{highlightToggledItems:!0})),d=new _.rc("",l,"",!1);h.push(d,{icon:!1,label:!0});const u=new _.rc("","Compare",E.L.asClassName(C.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,c.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}class He extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return null;const s=this._diffModel.read(e).movedTextToCompare.read(e),n=this._options.renderIndicators.read(e),r=this._options.showEmptyDecorations.read(e),o=[],a=[];if(!s)for(const l of i.mappings)if(l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:n?te.Ob:te.XT}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:n?te.Kl:te.Zw}),l.lineRangeMapping.modified.isEmpty||l.lineRangeMapping.original.isEmpty)l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:te.KL}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:te.Ou});else{const i=this._options.useTrueInlineDiffRendering.read(e)&&De(l.lineRangeMapping);for(const e of l.lineRangeMapping.innerChanges||[])if(l.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&r?te.wp:te.Zb}),l.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&r&&!i?te.GM:te.bk}),i){const 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(s)for(const l of s.changes){const e=l.original.toInclusiveRange();e&&o.push({range:e,options:n?te.Ob:te.XT});const t=l.modified.toInclusiveRange();t&&a.push({range:t,options:n?te.Kl:te.Zw});for(const i of l.innerChanges||[])o.push({range:i.originalRange,options:te.Zb}),a.push({range:i.modifiedRange,options:te.bk})}const c=this._diffModel.read(e).activeMovedText.read(e);for(const l of i.movedTexts)o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(l===c?" currentMove":""),blockPadding:[Pe.movedCodeBlockPadding,0,Pe.movedCodeBlockPadding,Pe.movedCodeBlockPadding]}}),a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(l===c?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:o,modifiedDecorations:a}})),this._register((0,S.pY)(this._editors.original,this._decorations.map((e=>e?.originalDecorations||[])))),this._register((0,S.pY)(this._editors.modified,this._decorations.map((e=>e?.modifiedDecorations||[]))))}}var Be=i(92403);class We{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=(0,l.dQ)(this,(e=>{const t=this._sashRatio.read(e)??this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e)}),((e,t)=>{const i=this.dimensions.width.get();this._sashRatio.set(e/i,t)})),this._sashRatio=(0,c.FY)(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),s=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),n=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):s,r=100;return i<=200?s:n<r?r:n>i-r?i-r:n}}class Ve extends a.jG{constructor(e,t,i,s,n,r){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=s,this.sashLeft=n,this._resetSash=r,this._sash=this._register(new Be.m(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((0,c.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,c.fm)((e=>{const t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}}class ze extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,c.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,c.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,c.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,c.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,c.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild((0,s.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver((()=>{(0,c.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));r.observe(this._domNode),this._register((0,a.s)((()=>r.disconnect()))),this._register((0,c.fm)((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,c.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,s.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),s=new Set(this.views.keys()),n=R.L.ofStartAndLength(0,this._domNode.clientHeight);if(!n.isEmpty)for(const r of i){const i=new w.M(r.startLineNumber,r.endLineNumber+1),o=this.itemProvider.getIntersectingGutterItems(i,e);(0,c.Rn)((e=>{for(const r of o){if(!r.range.intersect(i))continue;s.delete(r.id);let o=this.views.get(r.id);if(o)o.item.set(r,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,c.FY)("item",r),i=this.itemProvider.createView(t,e);o=new Ge(t,i,e),this.views.set(r.id,o)}const a=r.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(r.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(r.range.startLineNumber-1,!1)-t,l=(1===r.range.endLineNumberExclusive?Math.max(a,this._editor.getTopForLineNumber(r.range.startLineNumber,!1)-t):Math.max(a,this._editor.getBottomForLineNumber(r.range.endLineNumberExclusive-1,!0)-t))-a;o.domNode.style.top=`${a}px`,o.domNode.style.height=`${l}px`,o.gutterItemView.layout(R.L.ofStartAndLength(a,l),n)}}))}for(const r of s){const e=this.views.get(r);e.gutterItemView.dispose(),e.domNode.remove(),this.views.delete(r)}}}class Ge{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var je=i(25791),Ke=i(75295),Ye=i(50973);class qe extends Ke.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Ye.W(e-1,t)}}var $e=i(65644),Qe=i(27195),Xe=i(32848),Ze=i(67220),Je=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},et=function(e,t){return function(i,s){t(i,s,e)}};const tt=[];let it=class extends a.jG{constructor(e,t,i,n,r,o,a,h,d){super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=r,this._boundarySashes=o,this._instantiationService=a,this._contextKeyService=h,this._menuService=d,this._menu=this._register(this._menuService.createMenu(Qe.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,c.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,c.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,c.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,s.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,c.un)(this,(e=>{const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e)?.mappings,s=this._editors.modifiedCursor.read(e);return s?i?.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return tt;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return tt;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?tt:r})),this._register((0,S.$y)(e,this.elements.root)),this._register((0,s.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,S.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),(0,l.a0)(this,(t=>this._showSash.read(t)?new Ve(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,l.dQ)(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),this._register(new ze(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const s=i.diff.read(t);if(!s)return[];const n=this._selectedDiffs.read(t);if(n.length>0){const e=x.wm.fromRangeMappings(n.flatMap((e=>e.rangeMappings)));return[new st(e,!0,Qe.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const r=this._currentDiff.read(t);return s.mappings.map((e=>new st(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===r?.lineRangeMapping,Qe.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(nt,e,t,this)})),this._register((0,s.ko)(this.elements.gutter,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){const t=e.innerChanges??[],i=new qe(this._editors.modifiedModel.get()),s=new qe(this._editors.original.getModel()),n=new Ke.mF(t.map((e=>e.toTextEdit(i))));return n.apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};it=Je([et(6,M._Y),et(7,Xe.fN),et(8,Qe.ez)],it);class st{constructor(e,t,i,s,n,r){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=s,this.originalUri=n,this.modifiedUri=r}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let nt=class extends a.jG{constructor(e,t,i,n){super(),this._item=e,this._elements=(0,s.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,s.h)("div.background@background",{},[]),(0,s.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,c.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const r=this._register(n.createInstance(Ze.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,S.rX)(t,this._elements.root)),this._register((0,c.fm)((e=>{const 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((0,c.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const s=t.add(n.createInstance($e.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:r,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new je.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(s.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;const s=e.length/2-i/2,n=i;let r=e.start+s;const o=R.L.tryCreate(n,t.endExclusive-n-i),a=R.L.tryCreate(e.start+n,e.endExclusive-i-n);a&&o&&a.start<a.endExclusive&&(r=o.clip(r),r=a.clip(r)),this._elements.buttons.style.top=r-e.start+"px"}};nt=Je([et(3,M._Y)],nt);var rt,ot=i(34309),at=i(55275),ct=i(74850),lt=i(19531),ht=i(66261),dt=i(47612),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};let pt=class extends a.jG{static{rt=this}static{this.ONE_OVERVIEW_WIDTH=15}static{this.ENTIRE_DIFF_OVERVIEW_WIDTH=2*this.ONE_OVERVIEW_WIDTH}constructor(e,t,i,n,r,o,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=r,this._modifiedEditorLayoutInfo=o,this._themeService=a,this.width=rt.ENTIRE_DIFF_OVERVIEW_WIDTH;const l=(0,c.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,c.un)((e=>{const t=l.read(e);return{insertColor:t.getColor(ht.ld8)||(t.getColor(ht.Gj6)||ht.EY1).transparent(2),removeColor:t.getColor(ht.$BZ)||(t.getColor(ht.GNm)||ht.ZEf).transparent(2)}})),d=(0,at.Z)(document.createElement("div"));d.setClassName("diffViewport"),d.setPosition("absolute");const u=(0,s.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,S.rX)(u,d.domNode)),this._register((0,s.b2)(u,s.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,s.ko)(u,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,S.rX)(this._rootElement,u)),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e),s=this._editors.original.createOverviewRuler("original diffOverviewRuler");s&&(t.add(s),t.add((0,S.rX)(u,s.getDomNode())));const n=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(n&&(t.add(n),t.add((0,S.rX)(u,n.getDomNode()))),!s||!n)return;const r=(0,c.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),o=(0,c.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,c.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),l=(0,c.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,c.fm)((e=>{r.read(e),o.read(e),a.read(e),l.read(e);const t=h.read(e),c=i?.diff.read(e)?.mappings;function d(e,t,i){const s=i._getViewModel();return s?e.filter((e=>e.length>0)).map((e=>{const i=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.startLineNumber,1)),n=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.endLineNumberExclusive,1)),r=n.lineNumber-i.lineNumber;return new lt.iE(i.lineNumber,n.lineNumber,r,t.toString())})):[]}const u=d((c||[]).map((e=>e.lineRangeMapping.original)),t.removeColor,this._editors.original),g=d((c||[]).map((e=>e.lineRangeMapping.modified)),t.insertColor,this._editors.modified);s?.setZones(u),n?.setZones(g)}))),t.add((0,c.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(r){const i=rt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*rt.ONE_OVERVIEW_WIDTH;s.setLayout({top:0,height:t,right:i+rt.ONE_OVERVIEW_WIDTH,width:rt.ONE_OVERVIEW_WIDTH}),n.setLayout({top:0,height:t,right:0,width:rt.ONE_OVERVIEW_WIDTH});const o=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),c=this._editors.modified.getOption(104),l=new ct.m(c.verticalHasArrows?c.arrowSize:0,c.verticalScrollbarSize,0,r.height,a,o);d.setTop(l.getSliderPosition()),d.setHeight(l.getSliderSize())}else d.setTop(0),d.setHeight(0);u.style.height=t+"px",u.style.left=i-rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",d.setWidth(rt.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};pt=rt=ut([gt(6,dt.Gy)],pt);var mt=i(20370),ft=i(16223);const _t=[];class vt extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=s,this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return _t;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return _t;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?_t:r})),this._register((0,c.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),s=i?.diff.read(e);if(!i||!s)return;if(i.movedTextToCompare.read(e))return;const n=[],r=this._selectedDiffs.read(e),o=new Set(r.map((e=>e.mapping)));if(r.length>0){const i=this._editors.modifiedSelections.read(e),s=t.add(new Ct(i[i.length-1].positionLineNumber,this._widget,r.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(s),n.push(s)}for(const a of s.mappings)if(!o.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new Ct(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),n.push(e)}t.add((0,a.s)((()=>{for(const e of n)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Ct extends a.jG{static{this.counter=0}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"+Ct.counter++,this._domNode=(0,s.h)("div.revertButton",{title:this._revertSelection?(0,O.kg)("revertSelectedChanges","Revert Selected Changes"):(0,O.kg)("revertChange","Revert Change")},[(0,mt.s)(C.W.arrowRight)]).root,this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,s.ko)(this._domNode,s.Bx.CLICK,(e=>{this._diffs instanceof x.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ft.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}var Et=i(71319),bt=i(23452),St=i(60002),yt=i(58345),wt=i(73823),Rt=i(38844),Lt=i(98031),Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,s,n,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=s,this._createInnerEditor=n,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 o.vl),this.modifiedScrollTop=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedObs=(0,Rt.Ud)(this.modified),this.originalObs=(0,Rt.Ud)(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=(0,c.y0)(this,this.modified.onDidChangeCursorSelection,(()=>this.modified.getSelections()??[])),this.modifiedCursor=(0,c.C)({owner:this,equalsFn:L.y.equals},(e=>this.modifiedSelections.read(e)[0]?.getPosition()??new L.y(1,1))),this.originalCursor=(0,c.y0)(this,this.original.onDidChangeCursorPosition,(()=>this.original.getPosition()??new L.y(1,1))),this._argCodeEditorWidgetOptions=null,this._register((0,c.Y)({createEmptyChangeSummary:()=>({}),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){const i=this._adjustOptionsForLeftHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return s.setContextValue("isInDiffLeftEditor",!0),s}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return s.setContextValue("isInDiffRightEditor",!0),s}_constructInnerEditor(e,t,i,s){const n=this._createInnerEditor(e,t,i,s);return this._register(n.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),n}_adjustOptionsForLeftHandSide(e,t){const 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){const 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=y.qB.revealHorizontalRightPadding.defaultValue+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!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){e||(e="");const t=(0,O.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):""}};kt=Tt([xt(5,M._Y),xt(6,Lt.b)],kt);class At extends a.jG{constructor(){super(...arguments),this._id=++At.idCounter,this._onDidDispose=this._register(new o.vl),this.onDidDispose=this._onDidDispose.event}static{this.idCounter=0}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,s=!0){this._targetEditor.revealRange(e,t,i,s)}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)}}var Nt=i(13850),It=i(61059),Ot=i(253),Dt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mt=function(e,t){return function(i,s){t(i,s,e)}};let Pt=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,c.FY)(this,0),this._screenReaderMode=(0,c.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,c.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,c.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,c.un)(this,(e=>(!this.compactMode.read(e)||!this.shouldRenderInlineViewInSmartMode.read(e))&&(this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))))),this.readOnly=(0,c.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,c.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,c.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,c.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,c.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,c.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,c.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,c.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,c.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,c.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,c.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,c.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,c.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,c.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,c.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,c.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,c.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.compactMode=(0,c.un)(this,(e=>this._options.read(e).compactMode)),this.trueInlineDiffRenderingEnabled=(0,c.un)(this,(e=>this._options.read(e).experimental.useTrueInlineView)),this.useTrueInlineDiffRendering=(0,c.un)(this,(e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e))),this.hideUnchangedRegions=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount)),this._model=(0,c.FY)(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,(e=>(0,Nt.t)(this,(t=>{const i=e?.diff.read(t);return i?(s=i,n=this.trueInlineDiffRenderingEnabled.read(t),s.mappings.every((e=>0===e.lineRangeMapping.original.length||function(e){return 0===e.modified.length}(e.lineRangeMapping)||n&&De(e.lineRangeMapping)))):void 0;var s,n})))).flatten().map(this,(e=>!!e)),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...e,...Ft(e,It.q)};this._options=(0,c.FY)(this,i)}updateOptions(e){const t=Ft(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};function Ft(e,t){return{enableSplitViewResizing:(0,y.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,y.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,y.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,y.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,y.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,y.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,y.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,y.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,y.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,y.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,y.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,y.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,y.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,y.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,y.zM)(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,y.zM)(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:(0,y.zM)(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:(0,y.zM)(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,y.wA)(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,y.wA)(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,y.wA)(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,y.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,y.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,y.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,y.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,y.zM)(e.renderGutterMenu,t.renderGutterMenu),compactMode:(0,y.zM)(e.compactMode,t.compactMode)}}Pt=Dt([Mt(1,Ot.j)],Pt);var Ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ht=function(e,t){return function(i,s){t(i,s,e)}};let Bt=class extends At{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,h,d,g,p){super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=h,this._accessibilitySignalService=g,this._editorProgressService=p,this.elements=(0,s.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,s.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register((0,c.X2)(this,void 0)),this._diffModel=(0,c.un)(this,(e=>this._diffModelSrc.read(e)?.object)),this.onDidChangeModel=o.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new yt.a([Xe.fN,this._contextKeyService]))),this._boundarySashes=(0,c.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,c.FY)(this,!1),this._accessibleDiffViewerVisible=(0,c.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,c.FY)(this,void 0),this._layoutInfo=(0,c.un)(this,(e=>{const t=this._rootSizeObserver.width.read(e),i=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=i+"px";const s=this._sash.read(e),n=this._gutter.read(e),r=n?.width.read(e)??0,o=this._overviewRulerPart.read(e)?.width??0;let a,c,l,h,d;if(!!s){const i=s.sashLeft.read(e);a=0,c=i-r-(this._movedBlocksLinesPart.read(e)?.width.read(e)??0),d=i-r,l=i,h=t-l-o}else{d=0;a=r,c=this._options.inlineViewHideOriginalLineNumbers.read(e)?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),l=r+c,h=t-l-o}return this.elements.original.style.left=a+"px",this.elements.original.style.width=c+"px",this._editors.original.layout({width:c,height:i},!0),n?.layout(d),this.elements.modified.style.left=l+"px",this.elements.modified.style.width=h+"px",this._editors.modified.layout({width:h,height:i},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>e?.diff.read(t))),this.onDidUpdateDiff=o.Jh.fromObservableLight(this._diffValue),d.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this.elements.root.remove()))),this._rootSizeObserver=this._register(new S.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(Pt,t),this._register((0,c.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(St.R.isEmbeddedDiffEditor.key,!1),this._register((0,Et.w)(St.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,Et.w)(St.R.comparingMovedCode,this._contextKeyService,(e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e)))),this._register((0,Et.w)(St.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,Et.w)(St.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,Et.w)(St.R.hasChanges,this._contextKeyService,(e=>(this._diffModel.read(e)?.diff.read(e)?.mappings.length??0)>0))),this._editors=this._register(this._instantiationService.createInstance(kt,this.elements.original,this.elements.modified,this._options,i,((e,t,i,s)=>this._createInnerEditor(e,t,i,s)))),this._register((0,Et.w)(St.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,Et.w)(St.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,Et.w)(St.R.diffEditorOriginalUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.original.uri.toString()??""))),this._register((0,Et.w)(St.R.diffEditorModifiedUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.modified.uri.toString()??""))),this._overviewRulerPart=(0,l.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,ne.b)(pt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store);const m={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>e-(this._overviewRulerPart.read(t)?.width??0)))};this._sashLayout=new We(this._options,m),this._sash=(0,l.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ve(this.elements.root,m,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,(()=>this._sashLayout.resetSash())):void 0})).recomputeInitiallyAndOnChange(this._store);const f=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(ot.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(He,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const _=new Set,v=new Set;let C=!1;const E=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(Ne,e),(0,s.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>C||f.get().isUpdatingHiddenAreas),_,v))).recomputeInitiallyAndOnChange(this._store),b=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).mod,i=f.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let w;this._register((0,S.Vs)(this._editors.original,b,(e=>{C=e}),_)),this._register((0,S.Vs)(this._editors.modified,y,(e=>{C=e,C?w=u.D.capture(this._editors.modified):(w?.restore(this._editors.modified),w=void 0)}),v)),this._accessibleDiffViewer=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(V,e),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)=>e?.diff.read(t)?.mappings.map((e=>e.lineRangeMapping)))),new Z(this._editors)))).recomputeInitiallyAndOnChange(this._store);const R=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,S.AV)(this.elements.modified,{visibility:R})),this._register((0,S.AV)(this.elements.original,{visibility:R})),this._createDiffEditorContributions(),d.addDiffEditor(this),this._gutter=(0,l.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,ne.b)(it,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0)),this._register((0,c.OI)(this._layoutInfo)),(0,l.a0)(this,(e=>new((0,ne.b)(Pe,e))(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(o.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(o.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const L=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,c.yC)(((e,t)=>{if(!0===L.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,c.yC)(((e,t)=>{t.add(new((0,ne.b)(vt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e);if(i)for(const s of[i.model.original,i.model.modified])t.add(s.onWillDispose((e=>{(0,r.dz)(new r.D7("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)})))}))),this._register((0,c.fm)((e=>{this._options.setModel(this._diffModel.read(e))})))}_createInnerEditor(e,t,i,s){return e.createInstance(g.x,t,i,s)}_createDiffEditorContributions(){const e=h.dS.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,r.dz)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return bt._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ue,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const t=e?"model"in e?S.O8.create(e).createNewRef(this):S.O8.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){const i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&(0,c.PO)(t,(t=>{const i=e?.object;c.y0.batchEventsGlobally(t,(()=>{this._editors.original.setModel(i?i.model.original:null),this._editors.modified.setModel(i?i.model.modified:null)}));const s=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),t),setTimeout((()=>{s?.dispose()}),0)}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?e.mappings.map((e=>{const t=e.lineRangeMapping;let i,s,n,r,o=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,s=0,o=void 0):(i=t.original.startLineNumber,s=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(n=t.modified.startLineNumber-1,r=0,o=void 0):(n=t.modified.startLineNumber,r=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:s,modifiedStartLineNumber:n,modifiedEndLineNumber:r,charChanges:o?.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}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new L.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const t=this._diffModel.get()?.diff.get()?.mappings;if(!t||0===t.length)return;const i=this._editors.modified.getPosition().lineNumber;let s;s="next"===e?t.find((e=>e.lineRangeMapping.modified.startLineNumber>i))??t[0]:(0,n.Uk)(t,(e=>e.lineRangeMapping.modified.startLineNumber<i))??t[t.length-1],this._goTo(s),s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):s&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{const t=e.diff.get()?.mappings;t&&0!==t.length&&this._goTo(t[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,i=e?this._editors.original:this._editors.modified;let s;const n=t.getSelection();if(n){const t=this._diffModel.get()?.diff.get()?.mappings.map((t=>e?t.lineRangeMapping.flip():t.lineRangeMapping));if(t){const e=(0,S.Mu)(n.getStartPosition(),t),i=(0,S.Mu)(n.getEndPosition(),t);s=T.Q.plusRange(e,i)}}return{destination:i,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.collapseAll(t)}))}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.showAll(t)}))}_handleCursorPositionChange(e,t){if(3===e?.reason){const i=this._diffModel.get()?.diff.get()?.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Bt=Ut([Ht(3,Xe.fN),Ht(4,M._Y),Ht(5,d.T),Ht(6,D.Nt),Ht(7,wt.N8)],Bt)},4519:(e,t,i)=>{"use strict";var s=i(91090),n=i(5662),r=i(31450),o=i(60002),a=i(62083),c=i(56942),l=i(90766),h=i(64383),d=i(41234),u=i(60534),g=i(18447),p=i(631),m=i(79400),f=i(83069),_=i(18938),v=i(50091),C=i(32848);const E={Visible:new C.N1("parameterHintsVisible",!1),MultipleSignatures:new C.N1("parameterHintsMultipleSignatures",!1)};async function b(e,t,i,s,n){const r=e.ordered(t);for(const a of r)try{const e=await a.provideSignatureHelp(t,i,n,s);if(e)return e}catch(o){(0,h.M_)(o)}}var S;v.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,s,n]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(s)),(0,p.j)("string"===typeof n||!n);const r=e.get(c.ILanguageFeaturesService),o=await e.get(_.ITextModelService).createModelReference(i);try{const e=await b(r.signatureHelpProvider,o.object.textEditorModel,f.y.lift(s),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:n},g.XO.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{o.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class y extends n.jG{static{this.DEFAULT_DELAY=120}constructor(e,t,i=y.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new n.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new l.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const s=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(s)),t).catch(h.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const s=this._pendingTriggers.reduce(w);this._pendingTriggers=[];const n={triggerKind:s.triggerKind,triggerCharacter:s.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),o=this.editor.getPosition();this.state=new S.Pending((0,l.SS)((e=>b(this.providers,r,o,n,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(t?.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=S.Default),(0,h.dz)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function w(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}var R,L=i(78209),T=i(63591),x=i(8597),k=i(11007),A=i(31295),N=i(10350),I=i(91508),O=i(87908),D=i(10154),M=i(20492),P=i(49099),F=i(66261),U=i(61394),H=i(25689),B=i(78381),W=i(90651),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};const G=x.$,j=(0,U.pU)("parameter-hints-next",N.W.chevronDown,L.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),K=(0,U.pU)("parameter-hints-previous",N.W.chevronUp,L.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Y=class extends n.jG{static{R=this}static{this.ID="editor.widget.parameterHintsWidget"}constructor(e,t,i,s,r,o){super(),this.editor=e,this.model=t,this.telemetryService=o,this.renderDisposeables=this._register(new n.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new M.T({editor:e},r,s)),this.keyVisible=E.Visible.bindTo(i),this.keyMultipleSignatures=E.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=G(".editor-widget.parameter-hints-widget"),t=x.BC(e,G(".phwrapper"));t.tabIndex=-1;const i=x.BC(t,G(".controls")),s=x.BC(i,G(".button"+H.L.asCSSSelector(K))),n=x.BC(i,G(".overloads")),r=x.BC(i,G(".button"+H.L.asCSSSelector(j)));this._register(x.ko(s,"click",(e=>{x.fs.stop(e),this.previous()}))),this._register(x.ko(r,"click",(e=>{x.fs.stop(e),this.next()})));const o=G(".body"),a=new A.MU(o,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const c=x.BC(o,G(".signature")),l=x.BC(o,G(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:n,docs:l,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=""+e.lineHeight/e.fontSize,t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",e.fontFamily),t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",O.jU.fontFamily)};h(),this._register(d.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{this.domNodes?.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;const t=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const i=e.signatures[e.activeSignature];if(!i)return;const s=x.BC(this.domNodes.signature,G(".code")),n=i.parameters.length>0,r=i.activeParameter??e.activeParameter;if(n)this.renderParameters(s,i,r);else{x.BC(s,G("span")).textContent=i.label}const o=i.parameters[r];if(o?.documentation){const e=G("span.documentation");if("string"===typeof o.documentation)e.textContent=o.documentation;else{const t=this.renderMarkdownDocs(o.documentation);e.appendChild(t.element)}x.BC(this.domNodes.docs,G("p",{},e))}if(void 0===i.documentation);else if("string"===typeof i.documentation)x.BC(this.domNodes.docs,G("p",{},i.documentation));else{const e=this.renderMarkdownDocs(i.documentation);x.BC(this.domNodes.docs,e.element)}const a=this.hasDocs(i,o);if(this.domNodes.signature.classList.toggle("has-docs",a),this.domNodes.docs.classList.toggle("empty",!a),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,o){let e="";const t=i.parameters[r];e=Array.isArray(t.label)?i.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),i.documentation&&(e+="string"===typeof i.documentation?`, ${i.documentation}`:`, ${i.documentation.value}`),this.announcedLabel!==e&&(k.xE(L.kg("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new B.W,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const s=t.elapsed();return s>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:s}),i}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.eU)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.eU)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[s,n]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,s);const o=document.createElement("span");o.textContent=t.label.substring(s,n),o.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(n),x.BC(e,r,o,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,I.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const s=t.lastIndex-i.label.length;return s>=0?[s,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return R.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};Y=R=V([z(2,C.fN),z(3,P.C),z(4,D.L),z(5,W.k)],Y),(0,F.x1A)("editorHoverWidget.highlightForeground",F.QI5,L.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var q,$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class extends n.jG{static{q=this}static{this.ID="editor.controller.parameterHints"}static get(e){return e.getContribution(q.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new y(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()}))),this.widget=new s.d((()=>this._register(t.createInstance(Y,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};X=q=$([Q(1,T._Y),Q(2,c.ILanguageFeaturesService)],X);class Z extends r.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:L.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:o.R.hasSignatureHelpProvider,kbOpts:{kbExpr:o.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=X.get(t);i?.trigger({triggerKind:a.WA.Invoke})}}(0,r.HW)(X.ID,X,2),(0,r.Fl)(Z);const J=r.DX.bindToContribution(X.get);(0,r.E_)(new J({id:"closeParameterHints",precondition:E.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:9,secondary:[1033]}})),(0,r.E_)(new J({id:"showPrevParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,r.E_)(new J({id:"showNextParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},4836:(e,t,i)=>{"use strict";var s=i(31450),n=i(94371),r=i(8995),o=i(91508),a=i(60002),c=i(55130),l=i(78209),h=i(32848),d=i(61407),u=i(71933),g=i(59473);function p(e){return h.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,o.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:l.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:l.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[l.kg("args.schema.apply.first","Always apply the first returned code action."),l.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),l.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:l.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,s,n=d.fo.Default){if(e.hasModel()){const r=u.C.get(e);r?.manualTriggerAtCurrentPosition(t,n,i,s)}}class _ extends s.ks{constructor(){super({id:c.pQ,label:l.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,l.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.fo.QuickFix)}}class v extends s.DX{constructor(){super({id:c.k_,precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const s=d.QA.fromUser(i,{kind:r.k.Empty,apply:"ifSingle"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):l.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):l.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:s.kind,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class C extends s.ks{constructor(){super({id:c.Xj,label:l.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.M$.and(a.R.writable,p(d.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Refactor,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):l.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?l.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):l.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:d.gB.Refactor.contains(s.kind)?s.kind:r.k.None,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.Refactor)}}class E extends s.ks{constructor(){super({id:c.C9,label:l.kg("source.label","Source Action..."),alias:"Source Action...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.M$.and(a.R.writable,p(d.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Source,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):l.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):l.kg("editor.action.source.noneMessage","No source actions available"),{include:d.gB.Source.contains(s.kind)?s.kind:r.k.None,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.SourceAction)}}class b extends s.ks{constructor(){super({id:c.Uy,label:l.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.M$.and(a.R.writable,p(d.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,l.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:d.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",d.fo.OrganizeImports)}}class S extends s.ks{constructor(){super({id:c.Rw,label:l.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:h.M$.and(a.R.writable,p(d.gB.SourceFixAll))})}run(e,t){return f(t,l.kg("fixAll.noneMessage","No fix all action available"),{include:d.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",d.fo.FixAll)}}class y extends s.ks{constructor(){super({id:c.pR,label:l.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.M$.and(a.R.writable,p(d.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,l.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.fo.AutoFix)}}var w=i(96758),R=i(1646),L=i(46359);(0,s.HW)(u.C.ID,u.C,3),(0,s.HW)(w.E.ID,w.E,4),(0,s.Fl)(_),(0,s.Fl)(C),(0,s.Fl)(E),(0,s.Fl)(b),(0,s.Fl)(y),(0,s.Fl)(S),(0,s.E_)(new v),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:l.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:l.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:l.kg("triggerOnFocusChange","Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}})},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>l});var s=i(91508);class n{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class r{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class o{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new o(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.W1)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.W1)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.UD)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.UD)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class c{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}class l{static forUris(e=()=>!1,t=()=>!1){return new l(new a(e,t))}static forStrings(){return new l(new n)}static forConfigKeys(){return new l(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let s;this._root||(this._root=new c,this._root.segment=i.value());const n=[];for(s=this._root;;){const e=i.cmp(s.segment);if(e>0)s.left||(s.left=new c,s.left.segment=i.value()),n.push([-1,s]),s=s.left;else if(e<0)s.right||(s.right=new c,s.right.segment=i.value()),n.push([1,s]),s=s.right;else{if(!i.hasNext())break;i.next(),s.mid||(s.mid=new c,s.mid.segment=i.value()),n.push([0,s]),s=s.mid}}const r=s.value;s.value=t,s.key=e;for(let o=n.length-1;o>=0;o--){const e=n[o][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=n[o][0],i=n[o+1][0];if(1===t&&1===i)n[o][1]=e.rotateLeft();else if(-1===t&&-1===i)n[o][1]=e.rotateRight();else if(1===t&&-1===i)e.right=n[o+1][1]=n[o+1][1].rotateRight(),n[o][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=n[o+1][1]=n[o+1][1].rotateLeft(),n[o][1]=e.rotateRight()}if(o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1]}else this._root=n[0][1]}}return r}get(e){return this._getNode(e)?.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===t?.value&&void 0===t?.mid)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const i=this._iter.reset(e),s=[];let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)s.push([-1,n]),n=n.left;else if(e<0)s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),s.push([0,n]),n=n.mid}}if(n){if(t?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const e=this._min(n.right);if(e.key){const{key:t,value:i,segment:s}=e;this._delete(e.key,!1),n.key=t,n.value=i,n.segment=s}}else{const e=n.left??n.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),i=s.value||i,s=s.mid}}return s&&s.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let s=this._root;for(;s;){const e=i.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!i.hasNext())return s.mid?this._entries(s.mid):t?s.value:void 0;i.next(),s=s.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},4983:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var s=i(5662),n=i(41234),r=i(8597);class o extends s.jG{constructor(e,t){super(),this._onDidChange=this._register(new n.vl),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;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,s=!1;const n=()=>{if(i&&!s)try{i=!1,s=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),(()=>{s=!1,n()}))}};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,n()})),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,s=0;t?(i=t.width,s=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,s=this._referenceDomElement.clientHeight),i=Math.max(5,i),s=Math.max(5,s),this._width===i&&this._height===s||(this._width=i,this._height=s,e&&this._onDidChange.fire())}}},5239:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},s={...t},n={...t};let r=0;const o={keydown:0,input:0,render:0};function a(){1===o.keydown&&(performance.mark("keydown/end"),o.keydown=2)}function c(){performance.mark("input/start"),o.input=1,d()}function l(){1===o.input&&(performance.mark("input/end"),o.input=2)}function h(){1===o.render&&(performance.mark("render/end"),o.render=2)}function d(){setTimeout(u)}function u(){2===o.keydown&&2===o.input&&2===o.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",s),g("inputlatency",n),r++,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"),o.keydown=0,o.input=0,o.render=0)}function g(e,t){const 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/r,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),o.keydown=1,queueMicrotask(a)},e.onBeforeInput=c,e.onInput=function(){0===o.input&&c(),queueMicrotask(l)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===o.keydown&&2===o.input&&0===o.render&&(performance.mark("render/start"),o.render=1,queueMicrotask(h),d())},e.getAndClearMeasurements=function(){if(0===r)return;const e={keydown:p(t),input:p(i),render:p(s),total:p(n),sampleCount:r};return m(t),m(i),m(s),m(n),r=0,e}}(s||(s={}))},5646:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>k,EH:()=>x,XF:()=>A});var s=i(60413),n=i(42731),r=i(8597),o=i(25154),a=i(42904),c=i(56245),l=i(72962),h=i(68214),d=i(48196),u=i(93090),g=i(25890),p=i(41234),m=i(24939),f=i(5662),_=i(98067),v=i(78209);const C=r.$,E="selectOption.entry.template";class b{get templateId(){return E}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=r.BC(e,C(".option-text")),t.detail=r.BC(e,C(".option-detail")),t.decoratorRight=r.BC(e,C(".option-decorator-right")),t}renderElement(e,t,i){const s=i,n=e.text,r=e.detail,o=e.decoratorRight,a=e.isDisabled;s.text.textContent=n,s.detail.textContent=r||"",s.decoratorRight.innerText=o||"",a?s.root.classList.add("option-disabled"):s.root.classList.remove("option-disabled")}disposeTemplate(e){}}class S extends f.jG{static{this.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32}static{this.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2}static{this.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3}constructor(e,t,i,s,n){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=s,this.selectBoxOptions=n||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=S.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,d.i)().setupManagedHover((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return E}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.BC(this.selectDropDownContainer,C(".select-box-details-pane"));const t=r.BC(this.selectDropDownContainer,C(".select-box-dropdown-container-width-control")),i=r.BC(t,C(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(r.ko(this.selectDropDownContainer,r.Bx.DRAG_START,(e=>{r.fs.stop(e,!0)})))}registerListeners(){let e;this._register(r.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(r.ko(this.selectElement,r.Bx.CLICK,(e=>{r.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.MOUSE_DOWN,(e=>{r.fs.stop(e)}))),this._register(r.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(r.ko(this.selectElement,"touchend",(t=>{r.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.KEY_DOWN,(e=>{const t=new l.Z(e);let i=!1;_.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){this.selectList?.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){const e=this.styles.selectBackground??"",t=this.styles.selectForeground??"",i=this.styles.selectBorder??"";this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}styleList(){const e=this.styles.selectBackground??"",t=r.gI(this.styles.selectListBackground,e);this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;const i=this.styles.focusBorder??"";this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.zk(this.selectElement),i=r.BK(this.selectElement),s=r.zk(this.selectElement).getComputedStyle(this.selectElement),n=parseFloat(s.getPropertyValue("--dropdown-padding-top"))+parseFloat(s.getPropertyValue("--dropdown-padding-bottom")),o=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),h=Math.max(l,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=d+n+u,p=Math.floor((o-n-u)/this.getHeight()),m=Math.floor((a-n-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<S.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>o&&(d=p*this.getHeight())}else g>a&&(d=m*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,s=0;this.options.forEach(((e,t)=>{const n=e.detail?e.detail.length:0,r=e.decoratorRight?e.decoratorRight.length:0,o=e.text.length+n+r;o>s&&(i=t,s=o)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.BC(e,C(".select-box-dropdown-list-container")),this.listRenderer=new b,this.selectList=this._register(new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.zx?"":"option",getWidgetRole:()=>"listbox"}})),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new c.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new l.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(r.ko(this.selectList.getHTMLElement(),r.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(r.ko(this.selectDropDownContainer,r.Bx.FOCUS_OUT,(e=>{this._isVisible&&!r.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;r.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const s=Number(i.getAttribute("data-index")),n=i.classList.contains("option-disabled");s>=0&&s<this.options.length&&!n&&(this.selected=s,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const s=e.childNodes.item(t);"img"===(s.tagName&&s.tagName.toLowerCase())?s.remove():i(s)}},s=(0,h.Gc)({value:e,supportThemeIcons:!0},{actionHandler:t});return s.element.classList.add("select-box-description-markdown"),i(s.element),s.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){this.selectionDetailsPane.innerText="";const t=this.options[e],i=t?.description??"";if(i){if(t?.descriptionIsMarkdown??!1){const e=t.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i,e))}else this.selectionDetailsPane.innerText=i;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){r.fs.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){r.fs.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){r.fs.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){r.fs.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){r.fs.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){r.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let s=0;s<this.options.length-1;s++)if(i=(s+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),r.fs.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}class y extends f.jG{constructor(e,t,i,s){super(),this.selected=0,this.selectBoxOptions=s||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(o.q.addTarget(this.selectElement)),[o.B.Tap].forEach((e=>{this._register(r.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(r.b2(this.selectElement,"click",(e=>{r.fs.stop(e,!0)}))),this._register(r.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(r.b2(this.selectElement,"keydown",(e=>{let t=!1;_.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}}var w=i(17390);class R extends w.x{constructor(e,t,i,s,n){super(),_.zx&&!n?.useCustomDrawn?this.selectBoxDelegate=new y(e,t,s,n):this.selectBoxDelegate=new S(e,t,i,s,n),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var L=i(36921),T=i(631);i(62469);class x extends f.jG{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof L.rc&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(o.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,s.gm&&this._register((0,r.ko)(e,r.Bx.DRAG_START,(e=>e.dataTransfer?.setData(n.t.TEXT,this._action.label))))),this._register((0,r.ko)(t,o.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,r.ko)(t,r.Bx.MOUSE_DOWN,(e=>{i||r.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.zx&&this._register((0,r.ko)(t,r.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.CLICK,(e=>{r.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.DBLCLICK,(e=>{r.fs.stop(e,!0)}))),[r.Bx.MOUSE_UP,r.Bx.MOUSE_OUT].forEach((e=>{this._register((0,r.ko)(t,e,(e=>{r.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){r.fs.stop(e,!0);const i=T.z(this._context)?this.options?.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){if(!this.element)return;const e=this.getTooltip()??"";if(this.updateAriaLabel(),this.options.hoverDelegate?.showNativeHover)this.element.title=e;else if(this.customHover||""===e)this.customHover&&this.customHover.update(e);else{const t=this.options.hoverDelegate??(0,a.nZ)("element");this.customHover=this._store.add((0,d.i)().setupManagedHover(t,this.element,e))}}updateAriaLabel(){if(this.element){const e=this.getTooltip()??"";this.element.setAttribute("aria-label",e)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class k extends x{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),T.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.wv.ID?"presentation":this.options.isMenu?"menuitem":this.options.isTabList?"tab":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label?.classList.remove("codicon")}updateEnabled(){this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element?.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element?.classList.add("disabled"))}updateAriaLabel(){if(this.label){const e=this.getTooltip()??"";this.label.setAttribute("aria-label",e)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.options.isTabList?this.label.setAttribute("aria-selected",this.action.checked?"true":"false"):(this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox"))):(this.label.classList.remove("checked"),this.label.removeAttribute(this.options.isTabList?"aria-selected":"aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class A extends x{constructor(e,t,i,s,n,r,o){super(e,t),this.selectBox=new R(i,s,n,r,o),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){this.selectBox?.focus()}blur(){this.selectBox?.blur()}render(e){this.selectBox.render(e)}}},5662:(e,t,i)=>{"use strict";i.d(t,{$w:()=>C,AS:()=>d,Ay:()=>o,BO:()=>v,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>h,jG:()=>m,lC:()=>l,mp:()=>_,qE:()=>u,s:()=>g});var s=i(6921),n=i(42522);let r=null;function o(e){return r?.trackDisposable(e),e}function a(e){r?.markAsDisposed(e)}function c(e,t){r?.setParent(e,t)}function l(e){return r?.markAsSingleton(e),e}function h(e){return"object"===typeof e&&null!==e&&"function"===typeof e.dispose&&0===e.dispose.length}function d(e){if(n.f.is(e)){const i=[];for(const s of e)if(s)try{s.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>d(e)));return function(e,t){if(r)for(const i of e)r.setParent(i,t)}(e,t),t}function g(e){const t=o({dispose:(0,s.P)((()=>{a(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),c(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,o(this),c(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},5744:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},6156:(e,t,i)=>{"use strict";i.d(t,{F:()=>O});var s=i(59284),n=i(81240),r=i(84476),o=i(80604),a=i(99991),c=i(63365),l=i(46423),h=i(87184);const d=s.createContext(null),u=()=>{const e=s.useContext(d);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return s.createElement(r.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(69220);const m=(0,p.om)("alert"),f=({layout:e,view:t,children:i})=>s.createElement(d.Provider,{value:{layout:e,view:t}},i);var _=i(18677),v=i(10800),C=i(45720),E=i(43937),b=i(5744),S=i(70825),y=i(71153),w=i(94420);const R=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var L=i(27612);const T={danger:{filled:_.A,outlined:v.A},info:{filled:C.A,outlined:E.A},success:{filled:b.A,outlined:S.A},warning:{filled:y.A,outlined:w.A},utility:{filled:R,outlined:L.A},normal:null};var x=i(98089);var k=i(72837);const A=JSON.parse('{"label_close":"Close"}'),N=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),I=(0,k.N)({en:A,ru:N},"Alert"),O=e=>{const{theme:t="normal",view:i="filled",layout:d="vertical",message:u,className:g,corners:p,style:_,onClose:v,align:C,qa:E}=e;return s.createElement(f,{layout:d,view:i},s.createElement(o.Z,{style:_,className:m({corners:p},(0,l.Y)({py:4,px:5},g)),theme:t,view:i,qa:E},s.createElement(h.s,{gap:"3",alignItems:C},"undefined"===typeof e.icon?s.createElement(O.Icon,{theme:t,view:i}):e.icon,s.createElement(h.s,{direction:"vertical"===d?"column":"row",gap:"5",grow:!0},s.createElement(h.s,{gap:"2",grow:!0,className:m("text-content")},s.createElement(h.s,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?s.createElement(O.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?s.createElement(O.Actions,{items:e.actions}):e.actions),v&&s.createElement(r.$,{view:"flat",className:m("close-btn"),onClick:v,extraProps:{"aria-label":I("label_close")}},s.createElement(a.I,{data:n.A,size:18,className:(0,c.$)({color:"secondary"})})))))};O.Icon=({className:e,theme:t,view:i="filled",size:n=18})=>{const r=T[t];if(!r)return null;let o;return"success"===t?o="positive":"normal"!==t&&(o=t),s.createElement("div",{className:m("icon",(0,c.$)({color:o},e))},s.createElement(a.I,{data:r[i],size:n}))},O.Title=({text:e,className:t})=>s.createElement(x.E,{variant:"subheader-2",className:m("title",t)},e),O.Actions=({items:e,children:t,className:i})=>{const{layout:n}=u();return s.createElement(h.s,{className:m("actions",{minContent:"horizontal"===n},i),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===n?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},i)=>s.createElement(g,{key:i,onClick:e},t))))||t)},O.Action=g},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var s=i(59284),n=i(73633),r=i(84375),o=i(99991);const a=(0,i(98192).om)("help-popover"),c=16;function l(e){var t;return s.createElement(r.A,Object.assign({},e,{className:a(null,e.className)}),s.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),s.createElement(o.I,{data:n.A,size:c})))}},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>l,default:()=>g,monaco:()=>s});var s=i(80781),n=i(59284);function r(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function o(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};function c(e){var t=e.width,i=e.height,o=e.value,c=e.defaultValue,l=e.language,h=e.theme,d=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,C=e.originalUri,E=e.modifiedUri,b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,n.useRef)(null),R=r(t),L=r(i),T=(0,n.useMemo)((function(){return{width:R,height:L}}),[R,L]);return(0,n.useEffect)((function(){b.current&&(g(s),S.current=s.editor.createDiffEditor(b.current,a(a(a({},_?{extraEditorClassName:_}:{}),d),h?{theme:h}:{}),u),function(){var e=null!=o?o:c,t=null===C||void 0===C?void 0:C(s),i=null===E||void 0===E?void 0:E(s),n=t&&s.editor.getModel(t),r=i&&s.editor.getModel(i);n?(n.setValue(v),s.editor.setModelLanguage(n,l)):n=s.editor.createModel(e,l,t),r?(n.setValue(e),s.editor.setModelLanguage(r,l)):r=s.editor.createModel(e,l,i),S.current.setModel({original:n,modified:r})}(),function(){p(S.current,s);var e=S.current.getModel().modified;y.current=e.onDidChangeContent((function(t){w.current||f(e.getValue(),t)}))}())}),[]),(0,n.useEffect)((function(){S.current&&S.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),d))}),[_,d]),(0,n.useEffect)((function(){S.current&&S.current.layout()}),[t,i]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel(),t=e.original,i=e.modified;s.editor.setModelLanguage(t,l),s.editor.setModelLanguage(i,l)}}),[l]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().modified;w.current=!0,S.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}]),S.current.getModifiedEditor().pushUndoStop(),w.current=!1}}),[o]),(0,n.useEffect)((function(){s.editor.setTheme(h)}),[h]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,n.useEffect)((function(){return function(){if(S.current){m(S.current,s),S.current.dispose();var e=S.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}y.current&&y.current.dispose()}}),[]),n.createElement("div",{ref:b,style:T,className:"react-monaco-editor-container"})}c.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},c.displayName="MonacoDiffEditor";const l=c;var h=function(){return h=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},d=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function u(e){var t=e.width,i=e.height,o=e.value,a=e.defaultValue,c=e.language,l=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,C=e.uri,E=(0,n.useRef)(null),b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=r(t),R=r(i),L=(0,n.useRef)(_);L.current=_;var T=(0,n.useMemo)((function(){return{width:w,height:R}}),[w,R]);return(0,n.useEffect)((function(){var e=null!==o?o:a;if(E.current){var t=h(h({},u),p(s)||{}),i=null===C||void 0===C?void 0:C(s),n=i&&s.editor.getModel(i);n?(n.setValue(e),s.editor.setModelLanguage(n,c)):n=s.editor.createModel(e,c,i),b.current=s.editor.create(E.current,h(h(h({model:n},v?{extraEditorClassName:v}:{}),t),l?{theme:l}:{}),g),m(b.current,s),S.current=b.current.onDidChangeModelContent((function(e){var t;y.current||null===(t=L.current)||void 0===t||t.call(L,b.current.getValue(),e)}))}}),[]),(0,n.useEffect)((function(){if(b.current){if(o===b.current.getValue())return;var e=b.current.getModel();y.current=!0,b.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}],void 0),b.current.pushUndoStop(),y.current=!1}}),[o]),(0,n.useEffect)((function(){if(b.current){var e=b.current.getModel();s.editor.setModelLanguage(e,c)}}),[c]),(0,n.useEffect)((function(){if(b.current){u.model;var e=d(u,["model"]);b.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,n.useEffect)((function(){b.current&&b.current.layout()}),[t,i]),(0,n.useEffect)((function(){s.editor.setTheme(l)}),[l]),(0,n.useEffect)((function(){return function(){b.current&&(f(b.current,s),b.current.dispose()),S.current&&S.current.dispose()}}),[]),n.createElement("div",{ref:E,style:T,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},u.displayName="MonacoEditor";const g=u},6429:(e,t,i)=>{"use strict";var s,n=i(46359),r=i(71597),o=i(51861),a=i(78209),c=i(5662),l=i(98031),h=i(51467),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class{static{s=this}static{this.PREFIX="?"}constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=n.O.as(r.Fd.Quickaccess)}provide(e){const t=new c.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(s.PREFIX.length));t&&t.prefix&&t.prefix!==s.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==s.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,s=i||"\u2026";return{prefix:i,label:s,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.kg)("helpPickAriaLabel","{0}, {1}",s,t.description),description:t.description}}))}};g=s=d([u(0,h.GK),u(1,l.b)],g),n.O.as(r.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:o.oq.helpQuickAccessActionLabel}]})},6438:(e,t,i)=>{"use strict";var s=i(31450),n=i(15092),r=i(94564),o=i(36677),a=i(60002),c=i(78209);class l extends s.ks{constructor(){super({id:"editor.action.transposeLetters",label:c.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],a=t.getSelections();for(const c of a){if(!c.isEmpty())continue;const e=c.startLineNumber,t=c.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const l=t===a?c.getPosition():r.I.rightPosition(i,c.getPosition().lineNumber,c.getPosition().column),h=r.I.leftPosition(i,l),d=r.I.leftPosition(i,h),u=i.getValueInRange(o.Q.fromPositions(d,h)),g=i.getValueInRange(o.Q.fromPositions(h,l)),p=o.Q.fromPositions(d,l);s.push(new n.iu(p,g+u))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}(0,s.Fl)(l)},6921:(e,t,i)=>{"use strict";function s(e,t){const i=this;let s,n=!1;return function(){if(n)return s;if(n=!0,t)try{s=e.apply(i,arguments)}finally{t()}else s=e.apply(i,arguments);return s}}i.d(t,{P:()=>s})},7085:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});var s=i(36677);class n{static insert(e,t){return{range:new s.Q(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}}}},7142:(e,t,i)=>{"use strict";i.d(t,{U:()=>l});var s=i(90766),n=i(18447),r=i(64383),o=i(31450),a=i(56942);class c{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function l(e,t,i,n,o=!1){const a=e.ordered(t,o).map(((e,s)=>async function(e,t,i,s,n){const o=await Promise.resolve(e.provideHover(i,s,n)).catch(r.M_);if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new c(e,o,t)}(e,s,t,i,n)));return s.AE.fromPromises(a).coalesce()}function h(e,t,i,s,n=!1){return l(e,t,i,s,n).map((e=>e.hover)).toPromise()}(0,o.ke)("_executeHoverProvider",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None))),(0,o.ke)("_executeHoverProvider_recursive",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None,!0)))},7252:(e,t,i)=>{var s,n=n||{version:"5.4.2"};if(t.fabric=n,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?n.document=document:n.document=document.implementation.createHTMLDocument(""),n.window=window;else{var r=new(i(66574).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;n.document=r.document,n.jsdomImplForWrapper=i(2748).implForWrapper,n.nodeCanvas=i(52246).Canvas,n.window=r,DOMParser=n.window.DOMParser}function o(e,t){var i=e.canvas,s=t.targetCanvas,n=s.getContext("2d");n.translate(0,s.height),n.scale(1,-1);var r=i.height-s.height;n.drawImage(i,0,r,s.width,s.height,0,0,s.width,s.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),s=t.destinationWidth,n=t.destinationHeight,r=s*n*4,o=new Uint8Array(this.imageBuffer,0,r),a=new Uint8ClampedArray(this.imageBuffer,0,r);e.readPixels(0,0,s,n,e.RGBA,e.UNSIGNED_BYTE,o);var c=new ImageData(a,s,n);i.putImageData(c,0,0)}n.isTouchSupported="ontouchstart"in n.window||"ontouchstart"in n.document||n.window&&n.window.navigator&&n.window.navigator.maxTouchPoints>0,n.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,n.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],n.DPI=96,n.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",n.commaWsp="(?:\\s+,?\\s*|,\\s*)",n.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,n.reNonWord=/[ \n\.,;!\?\-]/,n.fontPaths={},n.iMatrix=[1,0,0,1,0,0],n.svgNS="http://www.w3.org/2000/svg",n.perfLimitSizeTotal=2097152,n.maxCacheSideLimit=4096,n.minCacheSideLimit=256,n.charWidthsCache={},n.textureSize=2048,n.disableStyleCopyPaste=!1,n.enableGLFiltering=!0,n.devicePixelRatio=n.window.devicePixelRatio||n.window.webkitDevicePixelRatio||n.window.mozDevicePixelRatio||1,n.browserShadowBlurConstant=1,n.arcToSegmentsCache={},n.boundsOfCurveCache={},n.cachesBoundsOfCurve=!0,n.forceGLPutImageData=!1,n.initFilterBackend=function(){return n.enableGLFiltering&&n.isWebglSupported&&n.isWebglSupported(n.textureSize)?(console.log("max texture size: "+n.maxTextureSize),new n.WebglFilterBackend({tileSize:n.textureSize})):n.Canvas2dFilterBackend?new n.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=n),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:n.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}n.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var s=0,n=i.length;s<n;s++)i[s]&&i[s].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var s in e)t.call(this,s,e[s]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var s in t)e.call(this,s,t[s]);else e.call(this,t,i);return this}}}(),n.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var s=this._objects;return i?s[t]=e:s.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,s=0,n=arguments.length;s<n;s++)-1!==(e=t.indexOf(arguments[s]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[s]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),s=0,n=i.length;s<n;s++)e.call(t,i[s],s,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},n.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof n.Gradient||this.set(t,new n.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof n.Pattern?i&&i():this.set(t,new n.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,s=Math.pow,r=Math.PI/180,o=Math.PI/2;n.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/o){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*r},radiansToDegrees:function(e){return e/r},rotatePoint:function(e,t,i){var s=new n.Point(e.x-t.x,e.y-t.y),r=n.util.rotateVector(s,i);return new n.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var i=n.util.sin(t),s=n.util.cos(t);return{x:e.x*s-e.y*i,y:e.x*i+e.y*s}},createVector:function(e,t){return new n.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new n.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var s=n.util.createVector(e,t),r=n.util.createVector(e,i),o=n.util.calcAngleBetweenVectors(s,r),a=o*(0===n.util.calcAngleBetweenVectors(n.util.rotateVector(s,o),r)?1:-1)/2;return{vector:n.util.getHatVector(n.util.rotateVector(s,a)),angle:o}},projectStrokeOnPoints:function(e,t,i){var s=[],r=t.strokeWidth/2,o=t.strokeUniform?new n.Point(1/t.scaleX,1/t.scaleY):new n.Point(1,1),a=function(e){var t=r/Math.hypot(e.x,e.y);return new n.Point(e.x*t*o.x,e.y*t*o.y)};return e.length<=1||e.forEach((function(c,l){var h,d,u=new n.Point(c.x,c.y);0===l?(d=e[l+1],h=i?a(n.util.createVector(d,u)).addEquals(u):e[e.length-1]):l===e.length-1?(h=e[l-1],d=i?a(n.util.createVector(h,u)).addEquals(u):e[0]):(h=e[l-1],d=e[l+1]);var g,p,m=n.util.getBisector(u,h,d),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-r/Math.sin(_/2),p=new n.Point(f.x*g*o.x,f.y*g*o.y),Math.hypot(p.x,p.y)/r<=t.strokeMiterLimit))return s.push(u.add(p)),void s.push(u.subtract(p));g=-r*Math.SQRT2,p=new n.Point(f.x*g*o.x,f.y*g*o.y),s.push(u.add(p)),s.push(u.subtract(p))})),s},transformPoint:function(e,t,i){return i?new n.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new n.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=n.util.transformPoint(e[i],t);var s=[e[0].x,e[1].x,e[2].x,e[3].x],r=n.util.array.min(s),o=n.util.array.max(s)-r,a=[e[0].y,e[1].y,e[2].y,e[3].y],c=n.util.array.min(a);return{left:r,top:c,width:o,height:n.util.array.max(a)-c}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],s=n.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-s.x,i[5]=-s.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),s=parseFloat(e);switch(t||(t=n.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return s*n.DPI/25.4;case"cm":return s*n.DPI/2.54;case"in":return s*n.DPI;case"pt":return s*n.DPI/72;case"pc":return s*n.DPI/72*12;case"em":return s*t;default:return s}},falseFunction:function(){return!1},getKlass:function(e,t){return e=n.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),n.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return n;var i,s=t.split("."),r=s.length,o=e||n.window;for(i=0;i<r;++i)o=o[s[i]];return o},loadImage:function(e,t,i,s){if(e){var r=n.util.createImage(),o=function(){t&&t.call(i,r,!1),r=r.onload=r.onerror=null};r.onload=o,r.onerror=function(){n.log("Error loading "+r.src),t&&t.call(i,null,!0),r=r.onload=r.onerror=null},0!==e.indexOf("data")&&void 0!==s&&null!==s&&(r.crossOrigin=s),"data:image/svg"===e.substring(0,14)&&(r.onload=null,n.util.loadImageInDom(r,o)),r.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=n.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),n.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,s){var r=[],o=0,a=(e=e||[]).length;function c(){++o===a&&t&&t(r.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?n.util.getKlass(e.type,i).fromObject(e,(function(i,n){n||(r[t]=i),s&&s(e,i,n),c()})):c()})):t&&t(r)},enlivenObjectEnlivables:function(e,t,i){var s=n.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));n.util.enlivenObjects(s.map((function(t){return e[t]})),(function(e){var n={};s.forEach((function(i,s){n[i]=e[s],t&&(t[i]=e[s])})),i&&i(n)}))},enlivenPatterns:function(e,t){function i(){++r===o&&t&&t(s)}var s=[],r=0,o=(e=e||[]).length;o?e.forEach((function(e,t){e&&e.source?new n.Pattern(e,(function(e){s[t]=e,i()})):(s[t]=e,i())})):t&&t(s)},groupSVGElements:function(e,t,i){var s;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),s=new n.Group(e,t),"undefined"!==typeof i&&(s.sourcePath=i),s)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var s=0,n=i.length;s<n;s++)i[s]in e&&(t[i[s]]=e[i[s]])},createCanvasElement:function(){return n.document.createElement("canvas")},copyCanvasElement:function(e){var t=n.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return n.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var n=i(e[1],e[0]),o=s(e[0],2)+s(e[1],2),a=t(o),c=(e[0]*e[3]-e[2]*e[1])/a,l=i(e[0]*e[2]+e[1]*e[3],o);return{angle:n/r,scaleX:a,scaleY:c,skewX:l/r,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return n.iMatrix.concat();var t=n.util.degreesToRadians(e.angle),i=n.util.cos(t),s=n.util.sin(t);return[i,s,-s,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,s=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],r=n.util.multiplyTransformMatrices,o=n.util.degreesToRadians;return e.skewX&&(s=r(s,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(s=r(s,[1,Math.tan(o(e.skewY)),0,1],!0)),s},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=n.util.multiplyTransformMatrices;return e.angle&&(t=i(t,n.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,n.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,s){s>0&&(t>s?t-=s:t=0,i>s?i-=s:i=0);var n,r=!0,o=e.getImageData(t,i,2*s||1,2*s||1),a=o.data.length;for(n=3;n<a&&!1!==(r=o.data[n]<=0);n+=4);return o=null,r},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",s=e.split(" ");return s&&s.length&&("meet"!==(i=s.pop())&&"slice"!==i?(t=i,i="meet"):s.length&&(t=s.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?n.charWidthsCache[e]&&delete n.charWidthsCache[e]:n.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),s=Math.floor(t/i);return{x:Math.floor(i),y:s}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return n.util.toFixed(e,n.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=n.util.invertTransform(t),s=n.util.multiplyTransformMatrices(i,e.calcOwnMatrix());n.util.applyTransformToObject(e,s)},addTransformToObject:function(e,t){n.util.applyTransformToObject(e,n.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=n.util.qrDecompose(t),s=new n.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(s,"center","center")},sizeAfterTransform:function(e,t,i){var s=e/2,r=t/2,o=[{x:-s,y:-r},{x:s,y:-r},{x:-s,y:r},{x:s,y:r}],a=n.util.calcDimensionsMatrix(i),c=n.util.makeBoundingBoxFromPoints(o,a);return{x:c.width,y:c.height}},mergeClipPaths:function(e,t){var i=e,s=t;i.inverted&&!s.inverted&&(i=t,s=e),n.util.applyTransformToObject(s,n.util.multiplyTransformMatrices(n.util.invertTransform(i.calcTransformMatrix()),s.calcTransformMatrix()));var r=i.inverted&&s.inverted;return r&&(i.inverted=s.inverted=!1),new n.Group([i],{clipPath:s,inverted:r})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=n.util.object.clone(e,!0);for(var i=t.split("\n"),s=-1,r={},o=[],a=0;a<i.length;a++)if(e[a])for(var c=0;c<i[a].length;c++){s++;var l=e[a][c];if(l&&Object.keys(l).length>0)n.util.hasStyleChanged(r,l,!0)?o.push({start:s,end:s+1,style:l}):o[o.length-1].end++;r=l||{}}else s+=i[a].length;return o},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),s=-1,n=0,r={},o=0;o<i.length;o++)for(var a=0;a<i[o].length;a++)s++,e[n]&&e[n].start<=s&&s<e[n].end&&(r[o]=r[o]||{},r[o][a]=Object.assign({},e[n].style),s===e[n].end-1&&n++);return r}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function s(e,t,i,s,r,o,a,c,l,h,d){var u=n.util.cos(e),g=n.util.sin(e),p=n.util.cos(t),m=n.util.sin(t),f=i*r*p-s*o*m+a,_=s*r*p+i*o*m+c;return["C",h+l*(-i*r*g-s*o*u),d+l*(-s*r*g+i*o*u),f+l*(i*r*m+s*o*p),_+l*(s*r*m-i*o*p),f,_]}function r(e,t,i,s){var n=Math.atan2(t,e),r=Math.atan2(s,i);return r>=n?r-n:2*Math.PI-(n-r)}function o(e,t,i){for(var o=i[1],a=i[2],c=i[3],l=i[4],h=i[5],d=function(e,t,i,o,a,c,l){var h=Math.PI,d=l*h/180,u=n.util.sin(d),g=n.util.cos(d),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,C=(o=Math.abs(o))*o,E=_*_,b=f*f,S=v*C-v*E-C*b,y=0;if(S<0){var w=Math.sqrt(1-S/(v*C));i*=w,o*=w}else y=(a===c?-1:1)*Math.sqrt(S/(v*E+C*b));var R=y*i*_/o,L=-y*o*f/i,T=g*R-u*L+.5*e,x=u*R+g*L+.5*t,k=r(1,0,(f-R)/i,(_-L)/o),A=r((f-R)/i,(_-L)/o,(-f-R)/i,(-_-L)/o);0===c&&A>0?A-=2*h:1===c&&A<0&&(A+=2*h);for(var N=Math.ceil(Math.abs(A/h*2)),I=[],O=A/N,D=8/3*Math.sin(O/4)*Math.sin(O/4)/Math.sin(O/2),M=k+O,P=0;P<N;P++)I[P]=s(k,M,g,u,i,o,T,x,D,p,m),p=I[P][5],m=I[P][6],k=M,M+=O;return I}(i[6]-e,i[7]-t,o,a,l,h,c),u=0,g=d.length;u<g;u++)d[u][1]+=e,d[u][2]+=t,d[u][3]+=e,d[u][4]+=t,d[u][5]+=e,d[u][6]+=t;return d}function a(e,t,i,s){return Math.sqrt((i-e)*(i-e)+(s-t)*(s-t))}function c(e,t,i,s,n,r,o,a){return function(c){var l,h=(l=c)*l*l,d=function(e){return 3*e*e*(1-e)}(c),u=function(e){return 3*e*(1-e)*(1-e)}(c),g=function(e){return(1-e)*(1-e)*(1-e)}(c);return{x:o*h+n*d+i*u+e*g,y:a*h+r*d+s*u+t*g}}}function l(e,t,i,s,n,r,o,a){return function(c){var l=1-c,h=3*l*l*(i-e)+6*l*c*(n-i)+3*c*c*(o-n),d=3*l*l*(s-t)+6*l*c*(r-s)+3*c*c*(a-r);return Math.atan2(d,h)}}function h(e,t,i,s,n,r){return function(o){var a,c=(a=o)*a,l=function(e){return 2*e*(1-e)}(o),h=function(e){return(1-e)*(1-e)}(o);return{x:n*c+i*l+e*h,y:r*c+s*l+t*h}}}function d(e,t,i,s,n,r){return function(o){var a=1-o,c=2*a*(i-e)+2*o*(n-i),l=2*a*(s-t)+2*o*(r-s);return Math.atan2(l,c)}}function u(e,t,i){var s,n,r={x:t,y:i},o=0;for(n=1;n<=100;n+=1)s=e(n/100),o+=a(r.x,r.y,s.x,s.y),r=s;return o}function g(e,t){for(var i,s,n,r=0,o=0,c=e.iterator,l={x:e.x,y:e.y},h=.01,d=e.angleFinder;o<t&&h>1e-4;)i=c(r),n=r,(s=a(l.x,l.y,i.x,i.y))+o>t?(r-=h,h/=2):(l=i,r+=h,o+=s);return i.angle=d(n),i}function p(e){for(var t,i,s,n,r=0,o=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<o;v++){switch(s={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":s.length=0,m=g=t[1],f=p=t[2];break;case"L":s.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=c(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),n=d(g,p,t[1],t[2],t[3],t[4]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":s.destX=m,s.destY=f,s.length=a(g,p,m,f),g=m,p=f}r+=s.length,_.push(s)}return _.push({length:r,x:g,y:p}),_}n.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},n.util.parsePath=function(e){var s,r,o,a,c,l=[],h=[],d=n.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+n.commaWsp,p="([01])"+n.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return l;for(var f,_=0,v=(c=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(s=c[_]).slice(1).trim(),h.length=0;var C=s.charAt(0);if(f=[C],"a"===C.toLowerCase())for(var E;E=m.exec(a);)for(var b=1;b<E.length;b++)h.push(E[b]);else for(;o=d.exec(a);)h.push(o[0]);b=0;for(var S=h.length;b<S;b++)r=parseFloat(h[b]),isNaN(r)||f.push(r);var y=t[C.toLowerCase()],w=i[C]||C;if(f.length-1>y)for(var R=1,L=f.length;R<L;R+=y)l.push([C].concat(f.slice(R,R+y))),C=w;else l.push(f)}return l},n.util.makePathSimpler=function(e){var t,i,s,n,r,a,c=0,l=0,h=e.length,d=0,u=0,g=[];for(i=0;i<h;++i){switch(s=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=c,t[2]+=l;case"L":c=t[1],l=t[2];break;case"h":t[1]+=c;case"H":t[0]="L",t[2]=l,c=t[1];break;case"v":t[1]+=l;case"V":t[0]="L",l=t[1],t[1]=c,t[2]=l;break;case"m":t[0]="M",t[1]+=c,t[2]+=l;case"M":c=t[1],l=t[2],d=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l,t[5]+=c,t[6]+=l;case"C":r=t[3],a=t[4],c=t[5],l=t[6];break;case"s":t[0]="S",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"S":"C"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),c=t[3],l=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=r,t[2]=a,r=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"Q":r=t[1],a=t[2],c=t[3],l=t[4];break;case"t":t[0]="T",t[1]+=c,t[2]+=l;case"T":"Q"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),t[0]="Q",c=t[1],l=t[2],t[1]=r,t[2]=a,t[3]=c,t[4]=l;break;case"a":t[0]="A",t[6]+=c,t[7]+=l;case"A":s=!0,g=g.concat(o(c,l,t)),c=t[6],l=t[7];break;case"z":case"Z":c=d,l=u}s||g.push(t),n=t[0]}return g},n.util.getSmoothPathFromPoints=function(e,t){var i,s=[],r=new n.Point(e[0].x,e[0].y),o=new n.Point(e[1].x,e[1].y),a=e.length,c=1,l=0,h=a>2;for(t=t||0,h&&(c=e[2].x<o.x?-1:e[2].x===o.x?0:1,l=e[2].y<o.y?-1:e[2].y===o.y?0:1),s.push(["M",r.x-c*t,r.y-l*t]),i=1;i<a;i++){if(!r.eq(o)){var d=r.midPointFrom(o);s.push(["Q",r.x,r.y,d.x,d.y])}r=e[i],i+1<e.length&&(o=e[i+1])}return h&&(c=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,l=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),s.push(["L",r.x+c*t,r.y+l*t]),s},n.util.getPathSegmentsInfo=p,n.util.getBoundsOfCurve=function(t,i,s,r,o,a,c,l){var h;if(n.cachesBoundsOfCurve&&(h=e.call(arguments),n.boundsOfCurveCache[h]))return n.boundsOfCurveCache[h];var d,u,g,p,m,f,_,v,C=Math.sqrt,E=Math.min,b=Math.max,S=Math.abs,y=[],w=[[],[]];u=6*t-12*s+6*o,d=-3*t+9*s-9*o+3*c,g=3*s-3*t;for(var R=0;R<2;++R)if(R>0&&(u=6*i-12*r+6*a,d=-3*i+9*r-9*a+3*l,g=3*r-3*i),S(d)<1e-12){if(S(u)<1e-12)continue;0<(p=-g/u)&&p<1&&y.push(p)}else(_=u*u-4*g*d)<0||(0<(m=(-u+(v=C(_)))/(2*d))&&m<1&&y.push(m),0<(f=(-u-v)/(2*d))&&f<1&&y.push(f));for(var L,T,x,k=y.length,A=k;k--;)L=(x=1-(p=y[k]))*x*x*t+3*x*x*p*s+3*x*p*p*o+p*p*p*c,w[0][k]=L,T=x*x*x*i+3*x*x*p*r+3*x*p*p*a+p*p*p*l,w[1][k]=T;w[0][A]=t,w[1][A]=i,w[0][A+1]=c,w[1][A+1]=l;var N=[{x:E.apply(null,w[0]),y:E.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return n.cachesBoundsOfCurve&&(n.boundsOfCurveCache[h]=N),N},n.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var s=0;t-i[s].length>0&&s<i.length-2;)t-=i[s].length,s++;var r,o=i[s],a=t/o.length,c=o.command,l=e[s];switch(c){case"M":return{x:o.x,y:o.y,angle:0};case"Z":case"z":return(r=new n.Point(o.x,o.y).lerp(new n.Point(o.destX,o.destY),a)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),r;case"L":return(r=new n.Point(o.x,o.y).lerp(new n.Point(l[1],l[2]),a)).angle=Math.atan2(l[2]-o.y,l[1]-o.x),r;case"C":case"Q":return g(o,t)}},n.util.transformPath=function(e,t,i){return i&&(t=n.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),s={},r=1;r<e.length-1;r+=2)s.x=e[r],s.y=e[r+1],s=n.util.transformPoint(s,t),i[r]=s.x,i[r+1]=s.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var s=e.length-1,n=t?e[s][t]:e[s];if(t)for(;s--;)i(e[s][t],n)&&(n=e[s][t]);else for(;s--;)i(e[s],n)&&(n=e[s]);return n}}n.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var s=e.call(arguments,2),n=[],r=0,o=t.length;r<o;r++)n[r]=s.length?t[r][i].apply(t[r],s):t[r][i].call(t[r]);return n},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,s){if(s)if(!n.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var r=0,o=i.length;r<o;r++)t[r]=e({},i[r],s)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],s));else t=i;else for(var a in i)t[a]=i[a];return t}n.util.object={extend:e,clone:function(t,i){return e({},t,i)}},n.util.object.extend(n.util,n.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var s=e.charCodeAt(t+1);if(56320>s||s>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var n=e.charCodeAt(t-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1}n.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,s=0,n=[];for(s=0;s<t.length;s++)!1!==(i=e(t,s))&&n.push(i);return n}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),s=function(e,t,s){for(var n in t)n in e.prototype&&"function"===typeof e.prototype[n]&&(t[n]+"").indexOf("callSuper")>-1?e.prototype[n]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=s;var n=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return n}}(n):e.prototype[n]=t[n],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function r(){}function o(t){for(var i=null,s=this;s.constructor.superclass;){var n=s.constructor.superclass.prototype[t];if(s[t]!==n){i=n;break}s=s.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}n.util.createClass=function(){var i=null,n=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof n[0]&&(i=n.shift()),a.superclass=i,a.subclasses=[],i&&(r.prototype=i.prototype,a.prototype=new r,i.subclasses.push(a));for(var c=0,l=n.length;c<l;c++)s(a,n[c],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),function(){var e=!!n.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];n.util.addListener=function(t,i,s,n){t&&t.addEventListener(i,s,!e&&n)},n.util.removeListener=function(t,i,s,n){t&&t.removeEventListener(i,s,!e&&n)},n.util.getPointer=function(e){var t=e.target,i=n.util.getScrollLeftTop(t),s=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:s.clientX+i.left,y:s.clientY+i.top}},n.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=n.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,s=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,r=function(e){return e};t?r=function(e,t){return e.style.opacity=t,e}:i&&(r=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),s.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(s,t)):i.filter+=" alpha(opacity="+100*t+")",e}),n.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?r(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var s in t)if("opacity"===s)r(e,t[s]);else{var n="float"===s||"cssFloat"===s?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":s;i.setProperty(n,t[s])}return e}}(),function(){var e=Array.prototype.slice;var t,i,s=function(t){return e.call(t,0)};try{t=s(n.document.childNodes)instanceof Array}catch(a){}function r(e,t){var i=n.document.createElement(e);for(var s in t)"class"===s?i.className=t[s]:"for"===s?i.htmlFor=t[s]:i.setAttribute(s,t[s]);return i}function o(e){for(var t=0,i=0,s=n.document.documentElement,r=n.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===n.document?(t=r.scrollLeft||s.scrollLeft||0,i=r.scrollTop||s.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(s=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=n.document.defaultView&&n.document.defaultView.getComputedStyle?function(e,t){var i=n.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=n.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";n.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=n.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},n.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),n.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},n.util.getById=function(e){return"string"===typeof e?n.document.getElementById(e):e},n.util.toArray=s,n.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},n.util.makeElement=r,n.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=r(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},n.util.getScrollLeftTop=o,n.util.getElementOffset=function(e){var t,s,n=e&&e.ownerDocument,r={left:0,top:0},a={left:0,top:0},c={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return a;for(var l in c)a[c[l]]+=parseInt(i(e,l),10)||0;return t=n.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),s=o(e),{left:r.left+s.left-(t.clientLeft||0)+a.left,top:r.top+s.top-(t.clientTop||0)+a.top}},n.util.getNodeCanvas=function(e){var t=n.jsdomImplForWrapper(e);return t._canvas||t._image},n.util.cleanUpJsdomNode=function(e){if(n.isLikelyNode){var t=n.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}n.util.request=function(t,i){i||(i={});var s=i.method?i.method.toUpperCase():"GET",r=i.onComplete||function(){},o=new n.window.XMLHttpRequest,a=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState&&(r(o),o.onreadystatechange=e)},"GET"===s&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),o.open(s,t,!0),"POST"!==s&&"PUT"!==s||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(a),o}}(),n.log=console.log,n.warn=console.warn,function(){var e=n.util.object.extend,t=n.util.object.clone,i=[];function s(){return!1}function r(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t}n.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var o=n.window.requestAnimationFrame||n.window.webkitRequestAnimationFrame||n.window.mozRequestAnimationFrame||n.window.oRequestAnimationFrame||n.window.msRequestAnimationFrame||function(e){return n.window.setTimeout(e,1e3/60)},a=n.window.cancelAnimationFrame||n.window.clearTimeout;function c(){return o.apply(n.window,arguments)}n.util.animate=function(i){i||(i={});var o,a=!1,l=function(){var e=n.runningAnimations.indexOf(o);return e>-1&&n.runningAnimations.splice(e,1)[0]};return o=e(t(i),{cancel:function(){return a=!0,l()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),n.runningAnimations.push(o),c((function(e){var t,n=e||+new Date,h=i.duration||500,d=n+h,u=i.onChange||s,g=i.abort||s,p=i.onComplete||s,m=i.easing||r,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,C=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var s=(t=i||+new Date)>d?h:t-n,r=s/h,E=f?_.map((function(e,t){return m(s,_[t],C[t],h)})):m(s,_,C,h),b=f?Math.abs((E[0]-_[0])/C[0]):Math.abs((E-_)/C);if(o.currentValue=f?E.slice():E,o.completionRate=b,o.durationRate=r,!a){if(!g(E,b,r))return t>d?(o.currentValue=f?v.slice():v,o.completionRate=1,o.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void l()):(u(E,b,r),void c(e));l()}}(n)})),o.cancel},n.util.requestAnimFrame=c,n.util.cancelAnimFrame=function(){return a.apply(n.window,arguments)},n.runningAnimations=i}(),function(){function e(e,t,i){var s="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return s+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),s+=")"}n.util.animateColor=function(t,i,s,r){var o=new n.Color(t).getSource(),a=new n.Color(i).getSource(),c=r.onComplete,l=r.onChange;return r=r||{},n.util.animate(n.util.object.extend(r,{duration:s||500,startValue:o,endValue:a,byValue:a,easing:function(t,i,s,n){return e(i,s,r.colorEasing?r.colorEasing(t,n):1-Math.cos(t/n*(Math.PI/2)))},onComplete:function(t,i,s){if(c)return c(e(a,a,0),i,s)},onChange:function(t,i,s){if(l){if(Array.isArray(t))return l(e(t,t,0),i,s);l(t,i,s)}}}))}}(),function(){function e(e,t,i,s){return e<Math.abs(t)?(e=t,s=i/4):s=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:s}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,n){return i-s(n-e,0,i,n)+t}function s(e,t,i,s){return(e/=s)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}n.util.ease={easeInQuad:function(e,t,i,s){return i*(e/=s)*e+t},easeOutQuad:function(e,t,i,s){return-i*(e/=s)*(e-2)+t},easeInOutQuad:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,s){return i*(e/=s)*e*e+t},easeOutCubic:function(e,t,i,s){return i*((e=e/s-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,s){return i*(e/=s)*e*e*e+t},easeOutQuart:function(e,t,i,s){return-i*((e=e/s-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,s){return i*(e/=s)*e*e*e*e+t},easeOutQuint:function(e,t,i,s){return i*((e=e/s-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,s){return i*Math.sin(e/s*(Math.PI/2))+t},easeInOutSine:function(e,t,i,s){return-i/2*(Math.cos(Math.PI*e/s)-1)+t},easeInExpo:function(e,t,i,s){return 0===e?t:i*Math.pow(2,10*(e/s-1))+t},easeOutExpo:function(e,t,i,s){return e===s?t+i:i*(1-Math.pow(2,-10*e/s))+t},easeInOutExpo:function(e,t,i,s){return 0===e?t:e===s?t+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,s){return-i*(Math.sqrt(1-(e/=s)*e)-1)+t},easeOutCirc:function(e,t,i,s){return i*Math.sqrt(1-(e=e/s-1)*e)+t},easeInOutCirc:function(e,t,i,s){return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,s,n,r){var o=0;return 0===i?s:1===(i/=r)?s+n:(o||(o=.3*r),-t(e(n,n,o,1.70158),i,r)+s)},easeOutElastic:function(t,i,s,n){var r=0;if(0===t)return i;if(1===(t/=n))return i+s;r||(r=.3*n);var o=e(s,s,r,1.70158);return o.a*Math.pow(2,-10*t)*Math.sin((t*n-o.s)*(2*Math.PI)/o.p)+o.c+i},easeInOutElastic:function(i,s,n,r){var o=0;if(0===i)return s;if(2===(i/=r/2))return s+n;o||(o=r*(.3*1.5));var a=e(n,n,o,1.70158);return i<1?-.5*t(a,i,r)+s:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*r-a.s)*(2*Math.PI)/a.p)*.5+a.c+s},easeInBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*(e/=s)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*((e=e/s-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),(e/=s/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:i,easeOutBounce:s,easeInOutBounce:function(e,t,n,r){return e<r/2?.5*i(2*e,0,n,r)+t:.5*s(2*e-r,0,n,r)+.5*n+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.parseUnit,o=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},c={stroke:"strokeOpacity",fill:"fillOpacity"},l="font-size",h="clip-path";function d(e){return e in a?a[e]:e}function u(e,i,s,n){var a,c=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=s&&s.transformMatrix?o(s.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,s&&!1===s.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),s&&"undefined"!==typeof s.opacity&&(i*=s.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=r(i,n)/n*1e3;else if("paintFirst"===e){var l=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(l>-1&&h>-1&&h<l||-1===l&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=c?i.map(r):r(i,n)}}else i="";return!c&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,s,n,r,o=[];for(n=0,r=t.length;n<r;n++)i=t[n],s=e.getElementsByTagName(i),o=o.concat(Array.prototype.slice.call(s));return o}function m(e,t){var i,s=!0;return(i=f(e,t.pop()))&&t.length&&(s=function(e,t){var i,s=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)s&&(i=t.pop()),s=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&s&&0===t.length}function f(e,t){var i,s,n=e.nodeName,r=e.getAttribute("class"),o=e.getAttribute("id");if(i=new RegExp("^"+n,"i"),t=t.replace(i,""),o&&t.length&&(i=new RegExp("#"+o+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(s=(r=r.split(" ")).length;s--;)i=new RegExp("\\."+r[s]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var s,n,r,o=e.getElementsByTagName("*");for(n=0,r=o.length;n<r;n++)if(t===(s=o[n]).getAttribute("id"))return s}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,s){e[s]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,s=t.reNum,n=t.commaWsp,r="(?:"+("(?:(matrix)\\s*\\(\\s*("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+")"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))")+")",o=new RegExp("^\\s*(?:"+("(?:"+r+"(?:"+n+"*"+r+")*)")+"?)\\s*$"),a=new RegExp(r,"g");return function(s){var n=i.concat(),c=[];if(!s||s&&!o.test(s))return n;s.replace(a,(function(s){var o=new RegExp(r).exec(s).filter((function(e){return!!e})),a=o[1],l=o.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(n,l);break;case"rotate":l[0]=t.util.degreesToRadians(l[0]),function(e,i){var s=t.util.cos(i[0]),n=t.util.sin(i[0]),r=0,o=0;3===i.length&&(r=i[1],o=i[2]),e[0]=s,e[1]=n,e[2]=-n,e[3]=s,e[4]=r-(s*r-n*o),e[5]=o-(n*r+s*o)}(n,l);break;case"scale":!function(e,t){var i=t[0],s=2===t.length?t[1]:t[0];e[0]=i,e[3]=s}(n,l);break;case"skewX":e(n,l,2);break;case"skewY":e(n,l,1);break;case"matrix":n=l}c.push(n.concat()),n=i.concat()}));for(var l=c[0];c.length>1;)c.shift(),l=t.util.multiplyTransformMatrices(l,c[0]);return l}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function C(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,s,n,o,a,c,l=e.getAttribute("viewBox"),h=1,d=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!l||!(l=l.match(v)),C=!u||!g||"100%"===u||"100%"===g,E=_&&C,b={},S="",y=0,w=0;if(b.width=0,b.height=0,b.toBeParsed=E,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") ",a=(e.getAttribute("transform")||"")+S,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),E)return b;if(_)return b.width=r(u),b.height=r(g),b;if(i=-parseFloat(l[1]),s=-parseFloat(l[2]),n=parseFloat(l[3]),o=parseFloat(l[4]),b.minX=i,b.minY=s,b.viewBoxWidth=n,b.viewBoxHeight=o,C?(b.width=n,b.height=o):(b.width=r(u),b.height=r(g),h=b.width/n,d=b.height/o),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(d=h=h>d?d:h),"slice"===f.meetOrSlice&&(d=h=h>d?h:d),y=b.width-n*h,w=b.height-o*h,"Mid"===f.alignX&&(y/=2),"Mid"===f.alignY&&(w/=2),"Min"===f.alignX&&(y=0),"Min"===f.alignY&&(w=0)),1===h&&1===d&&0===i&&0===s&&0===p&&0===m)return b;if((p||m)&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") "),a=S+" matrix("+h+" 0 0 "+d+" "+(i*h+y)+" "+(s*d+w)+") ","svg"===e.nodeName){for(c=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)c.appendChild(e.firstChild);e.appendChild(c)}else(c=e).removeAttribute("x"),c.removeAttribute("y"),a=c.getAttribute("transform")+a;return c.setAttribute("transform",a),b}function E(e,t){var i="xlink:href",s=_(e,t.getAttribute(i).slice(1));if(s&&s.getAttribute(i)&&E(e,s),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){s&&!t.hasAttribute(e)&&s.hasAttribute(e)&&t.setAttribute(e,s.getAttribute(e))})),!t.children.length)for(var n=s.cloneNode(!0);n.firstChild;)t.appendChild(n.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,n,r){if(e){!function(e){for(var i=p(e,["use","svg:use"]),s=0;i.length&&s<i.length;){var n=i[s],r=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===r)return;var o,a,c,l,h=r.slice(1),d=n.getAttribute("x")||0,u=n.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+d+", "+u+")",f=i.length,v=t.svgNS;if(C(g),/^svg$/i.test(g.nodeName)){var E=g.ownerDocument.createElementNS(v,"g");for(a=0,l=(c=g.attributes).length;a<l;a++)o=c.item(a),E.setAttributeNS(v,o.nodeName,o.nodeValue);for(;g.firstChild;)E.appendChild(g.firstChild);g=E}for(a=0,l=(c=n.attributes).length;a<l;a++)"x"!==(o=c.item(a)).nodeName&&"y"!==o.nodeName&&"xlink:href"!==o.nodeName&&"href"!==o.nodeName&&("transform"===o.nodeName?m=o.nodeValue+" "+m:g.setAttribute(o.nodeName,o.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),n.parentNode.replaceChild(g,n),i.length===f&&s++}}(e);var o,a,c=t.Object.__uid++,l=C(e),h=t.util.toArray(e.getElementsByTagName("*"));if(l.crossOrigin=r&&r.crossOrigin,l.svgUid=c,0===h.length&&t.isLikelyNode){var d=[];for(o=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;o<a;o++)d[o]=h[o];h=d}var u=h.filter((function(e){return C(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[c]=t.getGradientDefs(e),t.cssRules[c]=t.getCSSRules(e),t.clipPaths[c]=g,t.parseElements(u,(function(e,s){i&&(i(e,l,s,h),delete t.gradientDefs[c],delete t.cssRules[c],delete t.clipPaths[c])}),s(l),n,r)}}};var b=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(b);if(i){var s=i[1],n=i[3],o=i[4],a=i[5],c=i[6];s&&(t.fontStyle=s),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),o&&(t.fontSize=r(o)),c&&(t.fontFamily=c),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),s=0,n={};for(s=i.length;s--;)(t=i[s]).getAttribute("xlink:href")&&E(e,t),n[t.getAttribute("id")]=t;return n},parseAttributes:function(e,s,o){if(e){var a,g,p,f={};"undefined"===typeof o&&(o=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,s,o));var _=s.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var s={};for(var n in t.cssRules[i])if(m(e,n.split(" ")))for(var r in t.cssRules[i][n])s[r]=t.cssRules[i][n][r];return s}(e,o),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[l]&&(_[l]=g=r(_[l],p));var C,E,b={};for(var S in _)E=u(C=d(S),_[S],f,g),b[C]=E;b&&b.font&&t.parseFontDeclaration(b.font,b);var y=i(f,b);return t.svgValidParentsRegEx.test(e.nodeName)?y:function(e){for(var i in c)if("undefined"!==typeof e[c[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var s=new t.Color(e[i]);e[i]=s.setAlpha(n(s.getAlpha()*e[c[i]],2)).toRgba()}}return e}(y)}},parseElements:function(e,i,s,n,r){new t.ElementsParser(e,i,s,n,r).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,s;e.replace(/;\s*$/,"").split(";").forEach((function(e){var n=e.split(":");i=n[0].trim().toLowerCase(),s=n[1].trim(),t[i]=s}))}(i,t):function(e,t){var i,s;for(var n in e)"undefined"!==typeof e[n]&&(i=n.toLowerCase(),s=e[n],t[i]=s)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,s=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)s.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return s},getCSSRules:function(e){var i,s,n=e.getElementsByTagName("style"),r={};for(i=0,s=n.length;i<s;i++){var o=n[i].textContent;""!==(o=o.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&o.split("}").filter((function(e){return e.trim()})).forEach((function(e){var n=e.split("{"),o={},a=n[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,s=a.length;i<s;i++){var c=a[i].split(":"),l=c[0].trim(),h=c[1].trim();o[l]=h}(e=n[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(r[e]?t.util.object.extend(r[e],o):r[e]=t.util.object.clone(o))}))}))}return r},loadSVGFromURL:function(e,i,s,n){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var r=e.responseXML;if(!r||!r.documentElement)return i&&i(null),!1;t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i&&i(e,t,s,n)}),s,n)}})},loadSVGFromString:function(e,i,s,n){var r=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i(e,t,s,n)}),s,n)}})}(t),n.ElementsParser=function(e,t,i,s,n,r){this.elements=e,this.callback=t,this.options=i,this.reviver=s,this.svgUid=i&&i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r},(s=n.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},s.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},s.findTag=function(e){return n[n.util.string.capitalize(e.tagName.replace("svg:",""))]},s.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(s){n.log(s)}else this.checkIfDone()},s.createCallback=function(e,t){var i=this;return function(s){var r;i.resolveGradient(s,t,"fill"),i.resolveGradient(s,t,"stroke"),s instanceof n.Image&&s._originalElement&&(r=s.parsePreserveAspectRatioAttribute(t)),s._removeTransformMatrix(r),i.resolveClipPath(s,t),i.reviver&&i.reviver(t,s),i.instances[e]=s,i.checkIfDone()}},s.extractPropertyDefinition=function(e,t,i){var s=e[t],r=this.regexUrl;if(r.test(s)){r.lastIndex=0;var o=r.exec(s)[1];return r.lastIndex=0,n[i][this.svgUid][o]}},s.resolveGradient=function(e,t,i){var s=this.extractPropertyDefinition(e,i,"gradientDefs");if(s){var r=t.getAttribute(i+"-opacity"),o=n.Gradient.fromElement(s,e,r,this.options);e.set(i,o)}},s.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},s.resolveClipPath=function(e,t){var i,s,r,o,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){r=[],s=n.util.invertTransform(e.calcTransformMatrix());for(var c=a[0].parentNode,l=t;l.parentNode&&l.getAttribute("clip-path")!==e.clipPath;)l=l.parentNode;l.parentNode.appendChild(c);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,r),this.options);a=1===r.length?r[0]:new n.Group(r),o=n.util.multiplyTransformMatrices(s,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,l);var d=n.util.qrDecompose(o);a.flipX=!1,a.flipY=!1,a.set("scaleX",d.scaleX),a.set("scaleY",d.scaleY),a.angle=d.angle,a.skewX=d.skewX,a.skewY=0,a.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},s.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,s,n,r){var o,a=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),c=(s.x-e.x)*(e.y-n.y)-(s.y-e.y)*(e.x-n.x),l=(r.y-n.y)*(s.x-e.x)-(r.x-n.x)*(s.y-e.y);if(0!==l){var h=a/l,d=c/l;0<=h&&h<=1&&0<=d&&d<=1?(o=new i("Intersection")).appendPoint(new t.Point(e.x+h*(s.x-e.x),e.y+h*(s.y-e.y))):o=new i}else o=new i(0===a||0===c?"Coincident":"Parallel");return o},t.Intersection.intersectLinePolygon=function(e,t,s){var n,r,o,a,c=new i,l=s.length;for(a=0;a<l;a++)n=s[a],r=s[(a+1)%l],o=i.intersectLineLine(e,t,n,r),c.appendPoints(o.points);return c.points.length>0&&(c.status="Intersection"),c},t.Intersection.intersectPolygonPolygon=function(e,t){var s,n=new i,r=e.length;for(s=0;s<r;s++){var o=e[s],a=e[(s+1)%r],c=i.intersectLinePolygon(o,a,t);n.appendPoints(c.points)}return n.points.length>0&&(n.status="Intersection"),n},t.Intersection.intersectPolygonRectangle=function(e,s,n){var r=s.min(n),o=s.max(n),a=new t.Point(o.x,r.y),c=new t.Point(r.x,o.y),l=i.intersectLinePolygon(r,a,e),h=i.intersectLinePolygon(a,o,e),d=i.intersectLinePolygon(o,c,e),u=i.intersectLinePolygon(c,r,e),g=new i;return g.appendPoints(l.points),g.appendPoints(h.points),g.appendPoints(d.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function s(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,s){e/=255,i/=255,s/=255;var n,r,o,a=t.util.array.max([e,i,s]),c=t.util.array.min([e,i,s]);if(o=(a+c)/2,a===c)n=r=0;else{var l=a-c;switch(r=o>.5?l/(2-a-c):l/(a+c),a){case e:n=(i-s)/l+(i<s?6:0);break;case i:n=(s-e)/l+2;break;case s:n=(e-i)/l+4}n/=6}return[Math.round(360*n),Math.round(100*r),Math.round(100*o)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,s=this.getSource();return e=1===(e=s[0].toString(16)).length?"0"+e:e,t=1===(t=s[1].toString(16)).length?"0"+t:t,i=1===(i=s[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),s=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,s]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,s=[],n=this.getAlpha(),r=this.getSource(),o=e.getSource();for(t=0;t<3;t++)s.push(Math.round(.5*r[t]+.5*o[t]));return s[3]=n,this.setSource(s),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var s=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),n=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),r=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(s,10),parseInt(n,10),parseInt(r,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var n,r,o,a=(parseFloat(t[1])%360+360)%360/360,c=parseFloat(t[2])/(/%$/.test(t[2])?100:1),l=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===c)n=r=o=l;else{var h=l<=.5?l*(c+1):l+c-l*c,d=2*l-h;n=s(d,h,a+1/3),r=s(d,h,a),o=s(d,h,a-1/3)}return[Math.round(255*n),Math.round(255*r),Math.round(255*o),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),s=3===t.length||4===t.length,n=8===t.length||4===t.length,r=s?t.charAt(0)+t.charAt(0):t.substring(0,2),o=s?t.charAt(1)+t.charAt(1):t.substring(2,4),a=s?t.charAt(2)+t.charAt(2):t.substring(4,6),c=n?s?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(r,16),parseInt(o,16),parseInt(a,16),parseFloat((parseInt(c,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],s=["ns","nesw","ew","nwse"],n={},r="left",o="top",a="right",c="bottom",l="center",h={top:c,bottom:o,left:a,right:r,center:l},d=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var s=i.transform.target,n=s.canvas,r=t.util.object.clone(i);r.target=s,n&&n.fire("object:"+e,r),s.fire(e,i)}function m(e,t){var i=t.canvas,s=e[i.uniScaleKey];return i.uniformScaling&&!s||!i.uniformScaling&&s}function f(e){return e.originX===l&&e.originY===l}function _(e,t,i){var s=e.lockScalingX,n=e.lockScalingY;return!(!s||!n)||(!(t||!s&&!n||!i)||(!(!s||"x"!==t)||!(!n||"y"!==t)))}function v(e,t,i,s){return{e:e,transform:t,pointer:{x:i,y:s}}}function C(e){return function(t,i,s,n){var r=i.target,o=r.getCenterPoint(),a=r.translateToOriginPoint(o,i.originX,i.originY),c=e(t,i,s,n);return r.setPositionByOrigin(a,i.originX,i.originY),c}}function E(e,t){return function(i,s,n,r){var o=t(i,s,n,r);return o&&p(e,v(i,s,n,r)),o}}function b(e,i,s,n,r){var o=e.target,a=o.controls[e.corner],c=o.canvas.getZoom(),l=o.padding/c,h=o.toLocalPoint(new t.Point(n,r),i,s);return h.x>=l&&(h.x-=l),h.x<=-l&&(h.x+=l),h.y>=l&&(h.y-=l),h.y<=l&&(h.y+=l),h.x-=a.offsetX,h.y-=a.offsetY,h}function S(e){return e.flipX!==e.flipY}function y(e,t,i,s,n){if(0!==e[t]){var r=n/e._getTransformedDimensions()[s]*e[i];e.set(i,r)}}function w(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(0,l.skewY),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.x)-h.x,p=l.skewX;g<2?n=0:(n=d(Math.atan2(g/l.scaleX,h.y/l.scaleY)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().y;l.set("skewX",n),y(l,"skewY","scaleY","y",f)}return m}function R(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(l.skewX,0),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.y)-h.y,p=l.skewY;g<2?n=0:(n=d(Math.atan2(g/l.scaleY,h.x/l.scaleX)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().x;l.set("skewY",n),y(l,"skewX","scaleX","x",f)}return m}function L(e,t,i,s,n){n=n||{};var r,o,a,c,l,d,g=t.target,p=g.lockScalingX,v=g.lockScalingY,C=n.by,E=m(e,g),S=_(g,C,E),y=t.gestureScale;if(S)return!1;if(y)o=t.scaleX*y,a=t.scaleY*y;else{if(r=b(t,t.originX,t.originY,i,s),l="y"!==C?u(r.x):1,d="x"!==C?u(r.y):1,t.signX||(t.signX=l),t.signY||(t.signY=d),g.lockScalingFlip&&(t.signX!==l||t.signY!==d))return!1;if(c=g._getTransformedDimensions(),E&&!C){var w=Math.abs(r.x)+Math.abs(r.y),R=t.original,L=w/(Math.abs(c.x*R.scaleX/g.scaleX)+Math.abs(c.y*R.scaleY/g.scaleY));o=R.scaleX*L,a=R.scaleY*L}else o=Math.abs(r.x*g.scaleX/c.x),a=Math.abs(r.y*g.scaleY/c.y);f(t)&&(o*=2,a*=2),t.signX!==l&&"y"!==C&&(t.originX=h[t.originX],o*=-1,t.signX=l),t.signY!==d&&"x"!==C&&(t.originY=h[t.originY],a*=-1,t.signY=d)}var T=g.scaleX,x=g.scaleY;return C?("x"===C&&g.set("scaleX",o),"y"===C&&g.set("scaleY",a)):(!p&&g.set("scaleX",o),!v&&g.set("scaleY",a)),T!==g.scaleX||x!==g.scaleY}n.scaleCursorStyleHandler=function(e,t,s){var n=m(e,s),r="";if(0!==t.x&&0===t.y?r="x":0===t.x&&0!==t.y&&(r="y"),_(s,r,n))return"not-allowed";var o=g(s,t);return i[o]+"-resize"},n.skewCursorStyleHandler=function(e,t,i){var n="not-allowed";if(0!==t.x&&i.lockSkewingY)return n;if(0!==t.y&&i.lockSkewingX)return n;var r=g(i,t)%4;return s[r]+"-resize"},n.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?n.skewCursorStyleHandler(e,t,i):n.scaleCursorStyleHandler(e,t,i)},n.rotationWithSnapping=E("rotating",C((function(e,t,i,s){var n=t,r=n.target,o=r.translateToOriginPoint(r.getCenterPoint(),n.originX,n.originY);if(r.lockRotation)return!1;var a,c=Math.atan2(n.ey-o.y,n.ex-o.x),l=Math.atan2(s-o.y,i-o.x),h=d(l-c+n.theta);if(r.snapAngle>0){var u=r.snapAngle,g=r.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=r.angle!==h,r.angle=h,a}))),n.scalingEqually=E("scaling",C((function(e,t,i,s){return L(e,t,i,s)}))),n.scalingX=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"x"})}))),n.scalingY=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"y"})}))),n.scalingYOrSkewingX=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerX(e,t,i,s):n.scalingY(e,t,i,s)},n.scalingXOrSkewingY=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerY(e,t,i,s):n.scalingX(e,t,i,s)},n.changeWidth=E("resizing",C((function(e,t,i,s){var n=t.target,r=b(t,t.originX,t.originY,i,s),o=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=f(t)?2:1,c=n.width,l=Math.abs(r.x*a/n.scaleX)-o;return n.set("width",Math.max(l,0)),c!==l}))),n.skewHandlerX=function(e,t,i,s){var n,c=t.target,h=c.skewX,d=t.originY;return!c.lockSkewingX&&(0===h?n=b(t,l,l,i,s).x>0?r:a:(h>0&&(n=d===o?r:a),h<0&&(n=d===o?a:r),S(c)&&(n=n===r?a:r)),t.originX=n,E("skewing",C(w))(e,t,i,s))},n.skewHandlerY=function(e,t,i,s){var n,a=t.target,h=a.skewY,d=t.originX;return!a.lockSkewingY&&(0===h?n=b(t,l,l,i,s).y>0?o:c:(h>0&&(n=d===r?o:c),h<0&&(n=d===r?c:o),S(a)&&(n=n===o?c:o)),t.originY=n,E("skewing",C(R))(e,t,i,s))},n.dragHandler=function(e,t,i,s){var n=t.target,r=i-t.offsetX,o=s-t.offsetY,a=!n.get("lockMovementX")&&n.left!==r,c=!n.get("lockMovementY")&&n.top!==o;return a&&n.set("left",r),c&&n.set("top",o),(a||c)&&p("moving",v(e,t,i,s)),a||c},n.scaleOrSkewActionName=function(e,t,i){var s=e[i.canvas.altActionKey];return 0===t.x?s?"skewX":"scaleY":0===t.y?s?"skewY":"scaleX":void 0},n.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},n.fireEvent=p,n.wrapWithFixedAnchor=C,n.wrapWithFireEvent=E,n.getLocalPoint=b,t.controlsUtils=n}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,s=t.controlsUtils;s.renderCircleControl=function(e,t,i,s,n){s=s||{};var r,o=this.sizeX||s.cornerSize||n.cornerSize,a=this.sizeY||s.cornerSize||n.cornerSize,c="undefined"!==typeof s.transparentCorners?s.transparentCorners:n.transparentCorners,l=c?"stroke":"fill",h=!c&&(s.cornerStrokeColor||n.cornerStrokeColor),d=t,u=i;e.save(),e.fillStyle=s.cornerColor||n.cornerColor,e.strokeStyle=s.cornerStrokeColor||n.cornerStrokeColor,o>a?(r=o,e.scale(1,a/o),u=i*o/a):a>o?(r=a,e.scale(o/a,1),d=t*a/o):r=o,e.lineWidth=1,e.beginPath(),e.arc(d,u,r/2,0,2*Math.PI,!1),e[l](),h&&e.stroke(),e.restore()},s.renderSquareControl=function(e,t,s,n,r){n=n||{};var o=this.sizeX||n.cornerSize||r.cornerSize,a=this.sizeY||n.cornerSize||r.cornerSize,c="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,l=c?"stroke":"fill",h=!c&&(n.cornerStrokeColor||r.cornerStrokeColor),d=o/2,u=a/2;e.save(),e.fillStyle=n.cornerColor||r.cornerColor,e.strokeStyle=n.cornerStrokeColor||r.cornerStrokeColor,e.lineWidth=1,e.translate(t,s),e.rotate(i(r.angle)),e[l+"Rect"](-d,-u,o,a),h&&e.strokeRect(-d,-u,o,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,s,n,r){var o,a,c,l,h=r?this.touchSizeX:this.sizeX,d=r?this.touchSizeY:this.sizeY;if(h&&d&&h!==d){var u=Math.atan2(d,h),g=Math.sqrt(h*h+d*d)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);o=g*t.util.cos(p),a=g*t.util.sin(p),c=g*t.util.cos(m),l=g*t.util.sin(m)}else{g=.7071067812*(h&&d?h:i);p=t.util.degreesToRadians(45-e);o=c=g*t.util.cos(p),a=l=g*t.util.sin(p)}return{tl:{x:s-l,y:n-c},tr:{x:s+o,y:n-a},bl:{x:s-o,y:n+a},br:{x:s+l,y:n+c}}},render:function(e,i,s,n,r){if("circle"===((n=n||{}).cornerStyle||r.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,s,n,r);else t.controlsUtils.renderSquareControl.call(this,e,i,s,n,r)}}}(t),function(){function e(e,t){var i,s,r,o,a=e.getAttribute("style"),c=e.getAttribute("offset")||0;if(c=(c=parseFloat(c)/(/%$/.test(c)?100:1))<0?0:c>1?1:c,a){var l=a.split(/\s*;\s*/);for(""===l[l.length-1]&&l.pop(),o=l.length;o--;){var h=l[o].split(/\s*:\s*/),d=h[0].trim(),u=h[1].trim();"stop-color"===d?i=u:"stop-opacity"===d&&(r=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),r||(r=e.getAttribute("stop-opacity")),s=(i=new n.Color(i)).getAlpha(),r=isNaN(parseFloat(r))?1:parseFloat(r),r*=s*t,{offset:c,color:i.toRgb(),opacity:r}}var t=n.util.object.clone;n.Gradient=n.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+n.Object.__uid++:this.id=n.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new n.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return n.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var s,r,o,a,c=t(this.coords,!0),l=(i=i||{},t(this.colorStops,!0)),h=c.r1>c.r2,d=this.gradientTransform?this.gradientTransform.concat():n.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(l.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),d[4]-=u,d[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+n.util.matrixToSVG(d)+'" ',"linear"===this.type?o=["<linearGradient ",a,' x1="',c.x1,'" y1="',c.y1,'" x2="',c.x2,'" y2="',c.y2,'">\n']:"radial"===this.type&&(o=["<radialGradient ",a,' cx="',h?c.x1:c.x2,'" cy="',h?c.y1:c.y2,'" r="',h?c.r1:c.r2,'" fx="',h?c.x2:c.x1,'" fy="',h?c.y2:c.y1,'">\n']),"radial"===this.type){if(h)for((l=l.concat()).reverse(),s=0,r=l.length;s<r;s++)l[s].offset=1-l[s].offset;var f=Math.min(c.r1,c.r2);if(f>0){var _=f/Math.max(c.r1,c.r2);for(s=0,r=l.length;s<r;s++)l[s].offset+=_*(1-l[s].offset)}}for(s=0,r=l.length;s<r;s++){var v=l[s];o.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return o.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),o.join("")},toLive:function(e){var t,i,s,r=n.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(t=e.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),i=0,s=this.colorStops.length;i<s;i++){var o=this.colorStops[i].color,a=this.colorStops[i].opacity,c=this.colorStops[i].offset;"undefined"!==typeof a&&(o=new n.Color(o).setAlpha(a).toRgba()),t.addColorStop(c,o)}return t}}}),n.util.object.extend(n.Gradient,{fromElement:function(t,i,s,r){var o=parseFloat(s)/(/%$/.test(s)?100:1);o=o<0?0:o>1?1:o,isNaN(o)&&(o=1);var a,c,l,h,d=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",c=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",c=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),l=d.length;l--;)p.push(e(d[l],o));return h=n.parseTransformAttribute(g),function(e,t,i,s){var n,r;Object.keys(t).forEach((function(e){"Infinity"===(n=t[e])?r=1:"-Infinity"===n?r=0:(r=parseFloat(t[e],10),"string"===typeof n&&/^(\d+\.\d+)%|(\d+)%$/.test(n)&&(r*=.01,"pixels"===s&&("x1"!==e&&"x2"!==e&&"r2"!==e||(r*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(r*=i.viewBoxHeight||i.height)))),t[e]=r}))}(0,c,r,u),"pixels"===u&&(m=-i.left,f=-i.top),new n.Gradient({id:t.getAttribute("id"),type:a,coords:c,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=n.util.toFixed;n.Pattern=n.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=n.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=n.util.createImage(),n.util.loadImage(e.source,(function(e,s){i.source=e,t&&t(i,s)}),null,this.crossOrigin)}},toObject:function(t){var i,s,r=n.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),s={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,r),offsetY:e(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},n.util.populateWithProperties(this,s,t),s},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,s=t.height/e.height,n=this.offsetX/e.width,r=this.offsetY/e.height,o="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(s=1,r&&(s+=Math.abs(r))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,n&&(i+=Math.abs(n))),t.src?o=t.src:t.toDataURL&&(o=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+r+'" width="'+i+'" height="'+s+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+o+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),s=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(s[1],10)||0,offsetY:parseFloat(s[2],10)||0,blur:parseFloat(s[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var s=40,n=40,r=t.Object.NUM_FRACTION_DIGITS,o=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(s=100*i((Math.abs(o.x)+this.blur)/e.width,r)+20,n=100*i((Math.abs(o.y)+this.blur)/e.height,r)+20),e.flipX&&(o.x*=-1),e.flipY&&(o.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+s+'%" width="'+(100+2*s)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,r)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(o.x,r)+'" dy="'+i(o.y,r)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(n.StaticCanvas)n.warn("fabric.StaticCanvas is already defined.");else{var e=n.util.object.extend,t=n.util.getElementOffset,i=n.util.removeFromArray,s=n.util.toFixed,r=n.util.transformPoint,o=n.util.invertTransform,a=n.util.getNodeCanvas,c=n.util.createCanvasElement,l=new Error("Could not initialize `canvas` element");n.StaticCanvas=n.util.createClass(n.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:n.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return n.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,n.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=n.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,s){return"string"===typeof t?n.util.loadImage(t,(function(t,r){if(t){var o=new n.Image(t,s);this[e]=o,o.canvas=this}i&&i(t,r)}),this,s&&s.crossOrigin):(s&&t.setOptions(s),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=c();if(!e)throw l;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw l;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=n.util.getById(e)||this._createCanvasElement(),n.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var s in t=t||{},e)i=e[s],t.cssOnly||(this._setBackstoreDimension(s,e[s]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(s,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,s,n=this._activeObject,r=this.backgroundImage,o=this.overlayImage;for(this.viewportTransform=e,i=0,s=this._objects.length;i<s;i++)(t=this._objects[i]).group||t.setCoords(!0);return n&&n.setCoords(),r&&r.setCoords(!0),o&&o.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,s=this.viewportTransform.slice(0);e=r(e,o(this.viewportTransform)),s[0]=t,s[3]=t;var n=r(e,s);return s[4]+=i.x-n.x,s[5]+=i.y-n.y,this.setViewportTransform(s)},setZoom:function(e){return this.zoomToPoint(new n.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new n.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=n.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,s=o(this.viewportTransform);return e.tl=r({x:0,y:0},s),e.br=r({x:t,y:i},s),e.tr=new n.Point(e.br.x,e.tl.y),e.bl=new n.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,s=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),n.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),s&&(s.canvas=this,s.shouldCache(),s._transformDone=!0,s.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,s;for(i=0,s=t.length;i<s;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],s=this[t+"Image"],n=this.viewportTransform,r=this[t+"Vpt"];if(i||s){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var o=i.gradientTransform||i.patternTransform;o&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.fill(),e.restore()}if(s){e.save();var a=this.skipOffscreen;this.skipOffscreen=r,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),s.render(e),this.skipOffscreen=a,e.restore()}}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new n.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new n.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new n.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=o(this.viewportTransform);return r(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var s=this.clipPath,r={version:n.version,objects:this._toObjects(t,i)};return s&&!s.excludeFromExport&&(r.clipPath=this._toObject(this.clipPath,t,i)),e(r,this.__serializeBgOverlay(t,i)),n.util.populateWithProperties(this,r,i),r},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var s;this.includeDefaultValues||(s=e.includeDefaultValues,e.includeDefaultValues=!1);var n=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=s),n},__serializeBgOverlay:function(e,t){var i={},s=this.backgroundImage,n=this.overlayImage,r=this.backgroundColor,o=this.overlayColor;return r&&r.toObject?r.excludeFromExport||(i.background=r.toObject(t)):r&&(i.background=r),o&&o.toObject?o.excludeFromExport||(i.overlay=o.toObject(t)):o&&(i.overlay=o),s&&!s.excludeFromExport&&(i.backgroundImage=this._toObject(s,e,t)),n&&!n.excludeFromExport&&(i.overlayImage=this._toObject(n,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,r=t.width||this.width,o=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',c=n.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+s(-i[4]/i[0],c)+" "+s(-i[5]/i[3],c)+" "+s(this.width/i[0],c)+" "+s(this.height/i[3],c)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',o,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",n.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+n.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var s=e[t+"Vpt"],r=e.viewportTransform,o={width:e.width/(s?r[0]:1),height:e.height/(s?r[3]:1)};return i.toSVG(o,{additionalTransform:s?n.util.matrixToSVG(r):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,s,r,o,a,c,l="",h={},d=n.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,c=u.length;a<c;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&d[t]&&(h[t]=!0,e.styles))for(r in i=e.styles)for(o in s=i[r])!h[t=s[o].fontFamily]&&d[t]&&(h[t]=!0);for(var g in h)l+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",d[g],"');\n","\t\t}\n"].join("");return l&&(l=['\t<style type="text/css">',"<![CDATA[\n",l,"]]>","</style>\n"].join("")),l},_setSVGObjects:function(e,t){var i,s,n,r=this._objects;for(s=0,n=r.length;s<n;s++)(i=r[s]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],s=this.viewportTransform,r=this.width,o=this.height;if(i)if(i.toLive){var a=i.repeat,c=n.util.invertTransform(s),l=this[t+"Vpt"]?n.util.matrixToSVG(c):"";e.push('<rect transform="'+l+" translate(",r/2,",",o/2,')"',' x="',i.offsetX-r/2,'" y="',i.offsetY-o/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:r,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:o,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(t=(n=r._objects).length;t--;)s=n[t],i(this._objects,s),this._objects.unshift(s);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=0;t<n.length;t++)s=n[t],i(this._objects,s),this._objects.push(s);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(a=c._objects,s=0;s<a.length;s++)n=a[s],(r=this._objects.indexOf(n))>0+l&&(o=r-1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else 0!==(r=this._objects.indexOf(e))&&(o=this._findNewLowerIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var s,n;if(i)for(s=t,n=t-1;n>=0;--n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t-1;return s},bringForward:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(s=(a=c._objects).length;s--;)n=a[s],(r=this._objects.indexOf(n))<this._objects.length-1-l&&(o=r+1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else(r=this._objects.indexOf(e))!==this._objects.length-1&&(o=this._findNewUpperIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var s,n,r;if(i)for(s=t,n=t+1,r=this._objects.length;n<r;++n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t+1;return s},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),n.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),n.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(n.StaticCanvas.prototype,n.Observable),e(n.StaticCanvas.prototype,n.Collection),e(n.StaticCanvas.prototype,n.DataURLExporter),e(n.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=c();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),n.StaticCanvas.prototype.toJSON=n.StaticCanvas.prototype.toObject,n.isLikelyNode&&(n.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},n.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),n.BaseBrush=n.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,s=e.getZoom();e&&e._isRetinaScaling()&&(s*=n.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*s,i.shadowOffsetX=t.offsetX*s,i.shadowOffsetY=t.offsetY*s}},needsFullRender:function(){return new n.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),n.PencilBrush=n.util.createClass(n.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var s=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,s.x,s.y),s},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,s=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[s-2],i[s-1],!0),n.stroke(),n.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new n.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new n.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,s=this._points[0],r=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&s.x===r.x&&s.y===r.y){var o=this.width/1e3;s=new n.Point(s.x,s.y),r=new n.Point(r.x,r.y),s.x-=o,r.x+=o}for(e.moveTo(s.x,s.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,s,r),s=this._points[t],r=this._points[t+1];e.lineTo(s.x,s.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return n.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===n.util.joinPath(e)},createPath:function(e){var t=new n.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new n.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,s=this.canvas.getZoom(),n=Math.pow(t/s,2),r=e.length-1,o=e[0],a=[o];for(i=1;i<r-1;i++)Math.pow(o.x-e[i].x,2)+Math.pow(o.y-e[i].y,2)>=n&&(o=e[i],a.push(o));return a.push(e[r]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),n.CircleBrush=n.util.createClass(n.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,s=this.points;for(this._saveAndTransform(i),e=0,t=s.length;e<t;e++)this.dot(i,s[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var s=[];for(e=0,t=this.points.length;e<t;e++){var r=this.points[e],o=new n.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&(o.shadow=new n.Shadow(this.shadow)),s.push(o)}var a=new n.Group(s);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new n.Point(e.x,e.y),i=n.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,s=new n.Color(this.color).setAlpha(n.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=s,this.points.push(t),t}}),n.SprayBrush=n.util.createClass(n.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,s=this.sprayChunks.length;i<s;i++)for(var r=this.sprayChunks[i],o=0,a=r.length;o<a;o++){var c=new n.Rect({width:r[o].width,height:r[o].width,left:r[o].x+1,top:r[o].y+1,originX:"center",originY:"center",fill:this.color});t.push(c)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var l=new n.Group(t);this.shadow&&l.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:l}),this.canvas.add(l),this.canvas.fire("path:created",{path:l}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,s,n={};for(i=0,s=e.length;i<s;i++)n[t=e[i].left+""+e[i].top]||(n[t]=e[i]);var r=[];for(t in n)r.push(n[t]);return r},render:function(e){var t,i,s=this.canvas.contextTop;for(s.fillStyle=this.color,this._saveAndTransform(s),t=0,i=e.length;t<i;t++){var n=e[t];"undefined"!==typeof n.opacity&&(s.globalAlpha=n.opacity),s.fillRect(n.x,n.y,n.width,n.width)}s.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,s,r,o=this.width/2;for(r=0;r<this.density;r++){t=n.util.getRandomInt(e.x-o,e.x+o),i=n.util.getRandomInt(e.y-o,e.y+o),s=this.dotWidthVariance?n.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new n.Point(t,i);a.width=s,this.randomOpacity&&(a.opacity=n.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),n.PatternBrush=n.util.createClass(n.PencilBrush,{getPatternSrc:function(){var e=n.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new n.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=n.util.getPointer,t=n.util.degreesToRadians,i=n.util.isTouchEvent;for(var s in n.Canvas=n.util.createClass(n.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=n.PencilBrush&&new n.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,s=this.getActiveObjects();if(s.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var n=0,r=this._objects.length;n<r;n++)e=this._objects[n],-1===s.indexOf(e)?t.push(e):i.push(e);s.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),s=n.util.invertTransform(i),r=this.restorePointerVpt(t);return n.util.transformPoint(r,s)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var s=this._normalizePointer(e,{x:t,y:i}),r=Math.max(e.cacheTranslationX+s.x*e.zoomX,0),o=Math.max(e.cacheTranslationY+s.y*e.zoomY,0);return n.util.isTransparent(e._cacheContext,Math.round(r),Math.round(o),this.targetFindTolerance)}var a=this.contextCache,c=e.selectionBackgroundColor,l=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),e.render(a),a.restore(),e.selectionBackgroundColor=c,n.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),s=this._activeObject;return!t||t&&s&&i.length>1&&-1===i.indexOf(t)&&s!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&s&&s!==t},_shouldCenterTransform:function(e,t,i){var s;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?s=this.centeredScaling||e.centeredScaling:"rotate"===t&&(s=this.centeredRotation||e.centeredRotation),s?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,s){if(!t||!e)return"drag";var n=s.controls[t];return n.getActionName(i,n,s)},_setupCurrentTransform:function(e,i,s){if(i){var r=this.getPointer(e),o=i.__corner,a=i.controls[o],c=s&&o?a.getActionHandler(e,i,a):n.controlsUtils.dragHandler,l=this._getActionFromCorner(s,o,e,i),h=this._getOriginFromCorner(i,o),d=e[this.centeredKey],u={target:i,action:l,actionHandler:c,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:r.x-i.left,offsetY:r.y-i.top,originX:h.x,originY:h.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:d,original:n.util.saveObjectTransform(i)};this._shouldCenterTransform(i,l,d)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new n.Point(t.ex,t.ey),s=n.util.transformPoint(i,this.viewportTransform),r=new n.Point(t.ex+t.left,t.ey+t.top),o=n.util.transformPoint(r,this.viewportTransform),a=Math.min(s.x,o.x),c=Math.min(s.y,o.y),l=Math.max(s.x,o.x),h=Math.max(s.y,o.y),d=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,c,l-a,h-c)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=d,c+=d,l-=d,h-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,c,l-a,h-c))},findTarget:function(e,t){if(!this.skipTargetFind){var s,n,r=this.getPointer(e,!0),o=this._activeObject,a=this.getActiveObjects(),c=i(e),l=a.length>1&&!t||1===a.length;if(this.targets=[],l&&o._findTargetCorner(r,c))return o;if(a.length>1&&!t&&o===this._searchPossibleTargets([o],r))return o;if(1===a.length&&o===this._searchPossibleTargets([o],r)){if(!this.preserveObjectStacking)return o;s=o,n=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,r);return e[this.altSelectionKey]&&h&&s&&h!==s&&(h=s,this.targets=n),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,s,r=e.length;r--;){var o=e[r],a=o.group?this._normalizePointer(o.group,t):t;if(this._checkTarget(a,o,t)){(i=e[r]).subTargetCheck&&i instanceof n.Group&&(s=this._searchPossibleTargets(i._objects,t))&&this.targets.push(s);break}}return i},restorePointerVpt:function(e){return n.util.transformPoint(e,n.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var s,n=e(t),r=this.upperCanvasEl,o=r.getBoundingClientRect(),a=o.width||0,c=o.height||0;a&&c||("top"in o&&"bottom"in o&&(c=Math.abs(o.top-o.bottom)),"right"in o&&"left"in o&&(a=Math.abs(o.right-o.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var l=this.getRetinaScaling();return 1!==l&&(n.x/=l,n.y/=l),s=0===a||0===c?{width:1,height:1}:{width:r.width/a,height:r.height/c},{x:n.x*s.width,y:n.y*s.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),n.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=n.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),n.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),n.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;n.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,n.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,s=this.getActiveObjects(),n=[],r=[];e.forEach((function(e){-1===s.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),r.push(e))})),s.forEach((function(s){-1===e.indexOf(s)&&(i=!0,s.fire("selected",{e:t,target:s}),n.push(s))})),e.length>0&&s.length>0?i&&this.fire("selection:updated",{e:t,selected:n,deselected:r}):s.length>0?this.fire("selection:created",{e:t,selected:n}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:r})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,n.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(e),n=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,s),n},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),n.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,s)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),n.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),n.StaticCanvas)"prototype"!==s&&(n.Canvas[s]=n.StaticCanvas[s])}(),function(){var e=n.util.addListener,t=n.util.removeListener,i={passive:!1};function s(e,t){return e.button&&e.button===t-1}n.util.object.extend(n.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var s=this.upperCanvasEl,r=this._getEventPrefix();e(n.window,"resize",this._onResize),e(s,r+"down",this._onMouseDown),e(s,r+"move",this._onMouseMove,i),e(s,r+"out",this._onMouseOut),e(s,r+"enter",this._onMouseEnter),e(s,"wheel",this._onMouseWheel),e(s,"contextmenu",this._onContextMenu),e(s,"dblclick",this._onDoubleClick),e(s,"dragover",this._onDragOver),e(s,"dragenter",this._onDragEnter),e(s,"dragleave",this._onDragLeave),e(s,"drop",this._onDrop),this.enablePointerEvents||e(s,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](s,"gesture",this._onGesture),eventjs[t](s,"drag",this._onDrag),eventjs[t](s,"orientation",this._onOrientationChange),eventjs[t](s,"shake",this._onShake),eventjs[t](s,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(n.document,e+"up",this._onMouseUp),t(n.document,"touchend",this._onTouchEnd,i),t(n.document,e+"move",this._onMouseMove,i),t(n.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(t){i.fire("mouse:out",{target:t,e:e}),t&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(s){s.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(s)),this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();e(n.document,"touchend",this._onTouchEnd,i),e(n.document,"touchmove",this._onMouseMove,i),t(r,o+"down",this._onMouseDown)},_onMouseDown:function(s){this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();t(r,o+"move",this._onMouseMove,i),e(n.document,o+"up",this._onMouseUp),e(n.document,o+"move",this._onMouseMove,i)},_onTouchEnd:function(s){if(!(s.touches.length>0)){this.__onMouseUp(s),this._resetTransformEventData(),this.mainTouchId=null;var r=this._getEventPrefix();t(n.document,"touchend",this._onTouchEnd,i),t(n.document,"touchmove",this._onMouseMove,i);var o=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(o.upperCanvasEl,r+"down",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(s){this.__onMouseUp(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(s)&&(t(n.document,o+"up",this._onMouseUp),t(n.document,o+"move",this._onMouseMove,i),e(r,o+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,r=this._groupSelector,o=!1,a=!r||0===r.left&&0===r.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),s(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(s(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),o=i.actionPerformed),!a){var c=t===this._activeObject;this._maybeGroupObjects(e),o||(o=this._shouldRender(t)||!c&&t===this._activeObject)}var l,h;if(t){if(l=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),o=!0;else{var d=t.controls[l],u=d&&d.getMouseUpHandler(e,t,d);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==l)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,d);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),o?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),s=this.targets,n={e:t,target:i,subTargets:s};if(this.fire(e,n),i&&i.fire(e,n),!s)return i;for(var r=0;r<s.length;r++)s[r].fire(e,n);return i},_handleEvent:function(e,t,i,s){var n=this._target,r=this.targets||[],o={e:e,target:n,subTargets:r,button:i||1,isClick:s||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(o.currentTarget=this.findTarget(e),o.currentSubTargets=this.targets),this.fire("mouse:"+t,o),n&&n.fire("mouse"+t,o);for(var a=0;a<r.length;a++)r[a].fire("mouse"+t,o)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,s={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",s)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(s(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(s(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var r=this._shouldRender(t),o=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):o&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var c=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=c,t===this._activeObject&&(c||!o)){this._setupCurrentTransform(e,t,a);var l=t.controls[c],h=(i=this.getPointer(e),l&&l.getMouseDownHandler(e,t,l));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(r||o)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var s=this._groupSelector;s?(i=this._absolutePointer,s.left=i.x-s.ex,s.top=i.y-s.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var s,n,r,o=i.oldTarget,a=o!==e,c=i.canvasEvtIn,l=i.canvasEvtOut;a&&(s={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),r=e&&a,o&&a&&(l&&this.fire(l,n),o.fire(i.evtOut,n)),r&&(c&&this.fire(c,s),e.fire(i.evtIn,s))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var s=i.x,n=i.y,r=t.action,o=!1,a=t.actionHandler;a&&(o=a(e,t,s,n)),"drag"===r&&o&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||o},_fire:n.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,s=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,n=(!s||!s.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));n?this.setCursor(this.getCornerCursor(n,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var s=t.controls[e];return s.cursorStyleHandler(i,s,t)}})}(),function(){var e=Math.min,t=Math.max;n.util.object.extend(n.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,s=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(s,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),s=this._createGroup(e);this._hoveredTarget=s,this._setActiveObject(s,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new n.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new n.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var s,r=[],o=this._groupSelector.ex,a=this._groupSelector.ey,c=o+this._groupSelector.left,l=a+this._groupSelector.top,h=new n.Point(e(o,c),e(a,l)),d=new n.Point(t(o,c),t(a,l)),u=!this.selectionFullyContained,g=o===c&&a===l,p=this._objects.length;p--&&!((s=this._objects[p])&&s.selectable&&s.visible&&(u&&s.intersectsWithRect(h,d,!0)||s.isContainedWithinRect(h,d,!0)||u&&s.containsPoint(h,null,!0)||u&&s.containsPoint(d,null,!0))&&(r.push(s),g)););return r.length>1&&(r=r.filter((function(e){return!e.onSelect({e:i})}))),r},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),n.util.object.extend(n.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,s=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),r=this.toCanvasElement(s,e);return n.util.toDataURL(r,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,s=(t.height||this.height)*e,r=this.getZoom(),o=this.width,a=this.height,c=r*e,l=this.viewportTransform,h=(l[4]-(t.left||0))*e,d=(l[5]-(t.top||0))*e,u=this.interactive,g=[c,0,0,c,h,d],p=this.enableRetinaScaling,m=n.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=s,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=s,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=l,this.width=o,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),n.util.object.extend(n.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var s="string"===typeof e?JSON.parse(e):n.util.object.clone(e),r=this,o=s.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete s.clipPath,this._enlivenObjects(s.objects,(function(e){r.clear(),r._setBgOverlay(s,(function(){o?r._enlivenObjects([o],(function(i){r.clipPath=i[0],r.__setupCanvas.call(r,s,e,a,t)})):r.__setupCanvas.call(r,s,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,s){var n=this;t.forEach((function(e,t){n.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),s&&s()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var s=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,s),this.__setBgOverlay("overlayImage",e.overlayImage,i,s),this.__setBgOverlay("backgroundColor",e.background,i,s),this.__setBgOverlay("overlayColor",e.overlay,i,s)}else t&&t()},__setBgOverlay:function(e,t,i,s){var r=this;if(!t)return i[e]=!0,void(s&&s());"backgroundImage"===e||"overlayImage"===e?n.util.enlivenObjects([t],(function(t){r[e]=t[0],i[e]=!0,s&&s()})):this["set"+n.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,s&&s()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(s){i(s.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=n.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new n.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.string.capitalize,o=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,s=e.width,n=e.height,r=t.maxCacheSideLimit,o=t.minCacheSideLimit;if(s<=r&&n<=r&&s*n<=i)return s<o&&(e.width=o),n<o&&(e.height=o),e;var a=s/n,c=t.util.limitDimsByArea(a,i),l=t.util.capValue,h=l(o,c.x,r),d=l(o,c.y,r);return s>h&&(e.zoomX/=s/h,e.width=h,e.capped=!0),n>d&&(e.zoomY/=n/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,s=t.y*e.scaleY/this.scaleY;return{width:Math.ceil(i+2),height:Math.ceil(s+2),zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:s}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var t=e._currentTransform.target,i=e._currentTransform.action;if(this===t&&i.slice&&"scale"===i.slice(0,5))return!1}var s,n,r=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),a=o.width,c=o.height,l=o.zoomX,h=o.zoomY,d=a!==this.cacheWidth||c!==this.cacheHeight,u=this.zoomX!==l||this.zoomY!==h;return!(!d&&!u)&&(d?(r.width=a,r.height=c):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=o.x/2,n=o.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-n)+n,this.cacheWidth=a,this.cacheHeight=c,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(l,h),this.zoomX=l,this.zoomY=h,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,s={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(s.clipPath=this.clipPath.toObject(e),s.clipPath.inverted=this.clipPath.inverted,s.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,s,e),this.includeDefaultValues||(s=this._removeDefaultValues(s)),s},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+r(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var s=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();t*=s*n,i*=s*n}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var s="scaleX"===e||"scaleY"===e,n=this[e]!==i,r=!1;return s&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,n&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var s=t.util.invertTransform(this.calcTransformMatrix());e.transform(s[0],s[1],s[2],s[3],s[4],s[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,s=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=s},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var s,n,r,a=this.getViewportTransform(),c=this.calcTransformMatrix();n="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,c=t.util.multiplyTransformMatrices(a,c),s=t.util.qrDecompose(c),e.save(),e.translate(s.translateX,s.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(s.angle-=180),e.rotate(o(this.group?s.angle:this.angle)),i.forActiveSelection||this.group?n&&this.drawBordersInGroup(e,s,i):n&&this.drawBorders(e,i),r&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,s=this.shadow,n=this.canvas,r=n&&n.viewportTransform[0]||1,o=n&&n.viewportTransform[3]||1;i=s.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n&&n._isRetinaScaling()&&(r*=t.devicePixelRatio,o*=t.devicePixelRatio),e.shadowColor=s.color,e.shadowBlur=s.blur*t.browserShadowBlurConstant*(r+o)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=s.offsetX*r*i.scaleX,e.shadowOffsetY=s.offsetY*o*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,s=-this.width/2+t.offsetX||0,n=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,s,n):e.transform(1,0,0,1,s,n),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:s,offsetY:n}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var s,n=this._limitCacheSize(this._getCacheCanvasDimensions()),r=t.util.createCanvasElement(),o=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/o,c=n.y/this.scaleY/o;r.width=Math.ceil(a),r.height=Math.ceil(c),(s=r.getContext("2d")).beginPath(),s.moveTo(0,0),s.lineTo(a,0),s.lineTo(a,c),s.lineTo(0,c),s.closePath(),s.translate(a/2,c/2),s.scale(n.zoomX/this.scaleX/o,n.zoomY/this.scaleY/o),this._applyPatternGradientTransform(s,i),s.fillStyle=i.toLive(e),s.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(o*this.scaleX/n.zoomX,o*this.scaleY/n.zoomY),e.strokeStyle=s.createPattern(r,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var s=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(s,e):t.Object._fromObject("Object",s,e)},cloneAsImage:function(e,i){var s=this.toCanvasElement(i);return e&&e(new t.Image(s)),this},toCanvasElement:function(e){e||(e={});var i=t.util,s=i.saveObjectTransform(this),n=this.group,r=this.shadow,o=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var c,l,h,d,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(l=p.blur,c=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(o(p.offsetX)+l)*o(c.scaleX),m.y=2*Math.round(o(p.offsetY)+l)*o(c.scaleY)),h=g.width+m.x,d=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(d);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=r,this.set("canvas",_),n&&(this.group=n),this.set(s).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var s=new t.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle&&(s=t.util.rotatePoint(s,n,o(-this.angle))),{x:s.x-n.x,y:s.y-n.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,n,r){var o=t[e];i=s(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=r?new o(i[r],i):new o(i);n&&n(e)}))}))},t.Object.__uid=0)}(t),function(){var e=n.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};n.util.object.extend(n.Object.prototype,{translateToGivenOrigin:function(e,s,r,o,a){var c,l,h,d=e.x,u=e.y;return"string"===typeof s?s=t[s]:s-=.5,"string"===typeof o?o=t[o]:o-=.5,"string"===typeof r?r=i[r]:r-=.5,"string"===typeof a?a=i[a]:a-=.5,l=a-r,((c=o-s)||l)&&(h=this._getTransformedDimensions(),d=e.x+c*h.x,u=e.y+l*h.y),new n.Point(d,u)},translateToCenterPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,i,s,"center","center");return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},translateToOriginPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,"center","center",i,s);return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},getCenterPoint:function(){var e=new n.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,s){var r,o,a=this.getCenterPoint();return r="undefined"!==typeof i&&"undefined"!==typeof s?this.translateToGivenOrigin(a,"center","center",i,s):new n.Point(this.left,this.top),o=new n.Point(t.x,t.y),this.angle&&(o=n.util.rotatePoint(o,a,-e(this.angle))),o.subtractEquals(r)},setPositionByOrigin:function(e,t,i){var s=this.translateToCenterPoint(e,t,i),n=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",n.x),this.set("top",n.y)},adjustPosition:function(i){var s,r,o=e(this.angle),a=this.getScaledWidth(),c=n.util.cos(o)*a,l=n.util.sin(o)*a;s="string"===typeof this.originX?t[this.originX]:this.originX-.5,r="string"===typeof i?t[i]:i-.5,this.left+=c*(r-s),this.top+=l*(r-s),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=n.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,s=e.transformPoint;e.object.extend(n.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new n.Point(i.tl.x,i.tl.y),new n.Point(i.tr.x,i.tr.y),new n.Point(i.br.x,i.br.y),new n.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,s){var r=this.getCoords(i,s);return"Intersection"===n.Intersection.intersectPolygonRectangle(r,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===n.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var s=this.getCoords(t,i),n=t?e.aCoords:e.lineCoords,r=0,o=e._getImageLines(n);r<4;r++)if(!e.containsPoint(s[r],o))return!1;return!0},isContainedWithinRect:function(e,t,i,s){var n=this.getBoundingRect(i,s);return n.left>=e.x&&n.left+n.width<=t.x&&n.top>=e.y&&n.top+n.height<=t.y},containsPoint:function(e,t,i,s){var n=this._getCoords(i,s),r=(t=t||this._getImageLines(n),this._findCrossPoints(e,t));return 0!==r&&r%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var s={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(s,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,s,n,r=0;for(var o in t)if(!((n=t[o]).o.y<e.y&&n.d.y<e.y)&&!(n.o.y>=e.y&&n.d.y>=e.y)&&(n.o.x===n.d.x&&n.o.x>=e.x?s=n.o.x:(i=(n.d.y-n.o.y)/(n.d.x-n.o.x),s=-(e.y-0*e.x-(n.o.y-i*n.o.x))/(0-i)),s>=e.x&&(r+=1),2===r))break;return r},getBoundingRect:function(t,i){var s=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(s)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,r=t(this.angle),o=e.cos(r)*n,a=e.sin(r)*n,c=o+a,l=o-a,h=this.calcACoords(),d={tl:s(h.tl,i),tr:s(h.tr,i),bl:s(h.bl,i),br:s(h.br,i)};return n&&(d.tl.x-=l,d.tl.y-=c,d.tr.x+=c,d.tr.y-=l,d.bl.x-=c,d.bl.y+=l,d.br.x+=l,d.br.y+=c),d},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=this.getViewportTransform(),n=i(s,t),r=i(n,e),o=(r=i(r,[1/s[0],0,0,1/s[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(o,r,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=i(t,e),r=this._getTransformedDimensions(),o=r.x/2,a=r.y/2;return{tl:s({x:-o,y:-a},n),tr:s({x:o,y:-a},n),bl:s({x:-o,y:a},n),br:s({x:o,y:a},n)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var s=this.transformMatrixKey(e),n=this.matrixCache||(this.matrixCache={});return n.key===s?n.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),n.key=s,n.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var s=this._calcTranslateMatrix(),n={angle:this.angle,translateX:s[4],translateY:s[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(n),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var s,n,r,o=0===t&&0===i;if(this.strokeUniform?(n=this.width,r=this.height):(n=(s=this._getNonTransformedDimensions()).x,r=s.y),o)return this._finalizeDimensions(n*this.scaleX,r*this.scaleY);var a=e.sizeAfterTransform(n,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return s(t,e,!0).scalarAdd(2*this.padding)}})}(),n.util.object.extend(n.Object.prototype,{sendToBack:function(){return this.group?n.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?n.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?n.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?n.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?n.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new n.Color(t),s=e+": "+i.toRgb()+"; ",r=i.getAlpha();return 1!==r&&(s+=e+"-opacity: "+r.toString()+"; "),s}return e+": none; "}var t=n.util.toFixed;n.util.object.extend(n.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",s=this.strokeWidth?this.strokeWidth:"0",n=this.strokeDashArray?this.strokeDashArray.join(" "):"none",r=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",c=this.strokeMiterLimit?this.strokeMiterLimit:"4",l="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",d=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",s,"; ","stroke-dasharray: ",n,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",c,"; ",u,"fill-rule: ",i,"; ","opacity: ",l,";",d,h].join("")},getSvgSpanStyles:function(t,i){var s="; ",n=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+s:"",r=t.strokeWidth?"stroke-width: "+t.strokeWidth+s:"",o=(n=n,t.fontSize?"font-size: "+t.fontSize+"px"+s:""),a=t.fontStyle?"font-style: "+t.fontStyle+s:"",c=t.fontWeight?"font-weight: "+t.fontWeight+s:"",l=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",d=this.getSvgTextDecoration(t);return d&&(d="text-decoration: "+d+s),[h,r,n,o,a,c,d,l,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+n.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=n.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,s=t.additionalTransform||"",n=[this.getSvgTransform(!0,s),this.getSvgCommons()].join(""),r=e.indexOf("COMMON_PARTS");return e[r]=n,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,s,r=(t=t||{}).noStyle,o=t.reviver,a=r?"":'style="'+this.getSvgStyles()+'" ',c=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",l=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=l&&l.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return l&&(l.clipPathId="CLIPPATH_"+n.Object.__uid++,s='<clipPath id="'+l.clipPathId+'" >\n'+l.toClipPathSVG(o)+"</clipPath>\n"),d&&m.push("<g ",c,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),d?"":c+this.getSvgCommons()," >\n"),i=[a,h,r?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),l&&m.push(s),m.push(e.join("")),m.push("</g>\n"),d&&m.push("</g>\n"),o?o(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=n.util.object.extend,t="stateProperties";function i(t,i,s){var n={};s.forEach((function(e){n[e]=t[e]})),e(t[i],n,!0)}function s(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!s(e[n],t[n]))return!1;return!0}if(e&&"object"===typeof e){var o,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(n=0,r=a.length;n<r;n++)if("canvas"!==(o=a[n])&&"group"!==o&&!s(e[o],t[o]))return!1;return!0}}n.util.object.extend(n.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!s(this[i],this,!0)},saveState:function(e){var s=e&&e.propertySet||t,n="_"+s;return this[n]?(i(this,n,this[s]),e&&e.stateProperties&&i(this,n,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=n.util.degreesToRadians;n.util.object.extend(n.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,s,n,r=e.x,o=e.y,a=Object.keys(this.oCoords),c=a.length-1;for(this.__corner=0;c>=0;c--)if(n=a[c],this.isControlVisible(n)&&(s=this._getImageLines(t?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:r,y:o},s))&&i%2===1))return this.__corner=n,n;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),s=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/n[0],1/n[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-s.x/2,-s.y/2,s.x,s.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),s=this.borderScaleFactor,n=i.x+s,r=i.y+s,o="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-n/2,-r/2,n,r),o&&(e.beginPath(),this.forEachControl((function(t,i,s){t.withConnection&&t.getVisibility(s,i)&&(a=!0,e.moveTo(t.x*n,t.y*r),e.lineTo(t.x*n+t.offsetX,t.y*r+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var s=n.util.sizeAfterTransform(this.width,this.height,t),r=this.strokeWidth,o=this.strokeUniform,a=this.borderScaleFactor,c=s.x+r*(o?this.canvas.getZoom():t.scaleX)+a,l=s.y+r*(o?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-c/2,-l/2,c,l),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,s,r=1;return this.canvas&&(r=this.canvas.getRetinaScaling()),e.setTransform(r,0,0,r,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(r,o,a){s=a.oCoords[o],r.getVisibility(a,o)&&(i&&(s=n.util.transformPoint(s,i)),r.render(e,s.x,s.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),n.util.object.extend(n.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxCenterObjectV:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxRemove:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),o.requestRenderAll(),r()},onComplete:function(){o.remove(e),s()}})}}),n.util.object.extend(n.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],s=[];for(e in arguments[0])i.push(e);for(var n=0,r=i.length;n<r;n++)e=i[n],t=n!==r-1,s.push(this._animate(e,arguments[0][e],arguments[1],t));return s}return this._animate.apply(this,arguments)},_animate:function(e,t,i,s){var r,o=this;t=t.toString(),i=i?n.util.object.clone(i):{},~e.indexOf(".")&&(r=e.split("."));var a=o.colorProperties.indexOf(e)>-1||r&&o.colorProperties.indexOf(r[1])>-1,c=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=c),a||(t=~t.indexOf("=")?c+parseFloat(t.replace("=","")):parseFloat(t));var l={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,s){return i.abort.call(o,e,t,s)},onChange:function(t,n,a){r?o[r[0]][r[1]]=t:o.set(e,t),s||i.onChange&&i.onChange(t,n,a)},onComplete:function(e,t,n){s||(o.setCoords(),i.onComplete&&i.onComplete(e,t,n))}};return a?n.util.animateColor(l.startValue,l.endValue,l.duration,l):n.util.animate(l)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function r(e,t){var i=e.origin,s=e.axis1,n=e.axis2,r=e.dimension,o=t.nearest,a=t.center,c=t.farthest;return function(){switch(this.get(i)){case o:return Math.min(this.get(s),this.get(n));case a:return Math.min(this.get(s),this.get(n))+.5*this.get(r);case c:return Math.max(this.get(s),this.get(n))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof n[e]&&this._setWidthHeight(),this},_getLeftToOriginX:r({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:r({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,s=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:s,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,s,n){n=n||{};var r=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),o=[r.x1||0,r.y1||0,r.x2||0,r.y2||0];s(new t.Line(o,i(r,n)))},t.Line.fromObject=function(e,i){var n=s(e,!0);n.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",n,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,s=(this.endAngle-this.startAngle)%360;if(0===s)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var n=i(this.startAngle),r=i(this.endAngle),o=this.radius;e=['<path d="M '+t.util.cos(n)*o+" "+t.util.sin(n)*o," A "+o+" "+o," 0 ",+(s>180?"1":"0")+" 1"," "+t.util.cos(r)*o+" "+t.util.sin(r)*o,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var s,n=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(s=n)&&s.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new t.Circle(n))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var s=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);s.left=(s.left||0)-s.rx,s.top=(s.top||0)-s.ry,i(new t.Ellipse(s))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,n=this.height,r=-this.width/2,o=-this.height/2,a=0!==t||0!==i,c=.4477152502;e.beginPath(),e.moveTo(r+t,o),e.lineTo(r+s-t,o),a&&e.bezierCurveTo(r+s-c*t,o,r+s,o+c*i,r+s,o+i),e.lineTo(r+s,o+n-i),a&&e.bezierCurveTo(r+s,o+n-c*i,r+s-c*t,o+n,r+s-t,o+n),e.lineTo(r+t,o+n),a&&e.bezierCurveTo(r+c*t,o+n,r,o+n-c*i,r,o+n-i),e.lineTo(r,o+i),a&&e.bezierCurveTo(r,o+c*i,r+c*t,o,r+t,o),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,s,n){if(!e)return s(null);n=n||{};var r=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);r.left=r.left||0,r.top=r.top||0,r.height=r.height||0,r.width=r.width||0;var o=new t.Rect(i(n?t.util.object.clone(n):{},r));o.visible=o.visible&&o.width>0&&o.height>0,s(o)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.array.min,n=t.util.array.max,r=t.util.toFixed,o=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return o(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),s=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-s,this.height=i.height-s,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+s/2,y:i.top-this.strokeWidth/2+s/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+s/2,y:i.top+this.height/2+s/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=s(e,"x")||0,i=s(e,"y")||0;return{left:t,top:i,width:(n(e,"x")||0)-t,height:(n(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,s=this.pathOffset.y,n=t.Object.NUM_FRACTION_DIGITS,o=0,a=this.points.length;o<a;o++)e.push(r(this.points[o].x-i,n),",",r(this.points[o].y-s,n)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,s=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-s,this.points[0].y-n);for(var r=0;r<i;r++)t=this.points[r],e.lineTo(t.x-s,t.y-n);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(s,n,r){if(!s)return n(null);r||(r={});var o=t.parsePointsAttribute(s.getAttribute("points")),a=t.parseAttributes(s,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new t[e](o,i(a,r)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max,n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=r(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,s=0,n=0,r=0,o=0,a=0,c=-this.pathOffset.x,l=-this.pathOffset.y;e.beginPath();for(var h=0,d=this.path.length;h<d;++h)switch((t=this.path[h])[0]){case"L":n=t[1],r=t[2],e.lineTo(n+c,r+l);break;case"M":i=n=t[1],s=r=t[2],e.moveTo(n+c,r+l);break;case"C":n=t[5],r=t[6],o=t[3],a=t[4],e.bezierCurveTo(t[1]+c,t[2]+l,o+c,a+l,n+c,r+l);break;case"Q":e.quadraticCurveTo(t[1]+c,t[2]+l,t[3]+c,t[4]+l),n=t[3],r=t[4],o=t[1],a=t[2];break;case"z":case"Z":n=i,r=s,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return n(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+o(-this.pathOffset.x,e)+", "+o(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,n,r=[],o=[],a=0,c=0,l=0,h=0,d=0,u=this.path.length;d<u;++d){switch((e=this.path[d])[0]){case"L":l=e[1],h=e[2],n=[];break;case"M":a=l=e[1],c=h=e[2],n=[];break;case"C":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[3],e[4],e[5],e[6]),l=e[5],h=e[6];break;case"Q":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[1],e[2],e[3],e[4]),l=e[3],h=e[4];break;case"z":case"Z":l=a,h=c}n.forEach((function(e){r.push(e.x),o.push(e.y)})),r.push(l),o.push(h)}var g=i(r)||0,p=i(o)||0;return{left:g,top:p,width:(s(r)||0)-g,height:(s(o)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var s=e.sourcePath;t.loadSVGFromURL(s,(function(s){var n=s[0];n.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){n.clipPath=e[0],i&&i(n)})):i&&i(n)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,s){var r=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);r.fromSVG=!0,i(new t.Path(r.d,n(r,s)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;if(i)this._updateObjectsACoords();else{var n=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,s=e.top;e.set({left:i-t.x,top:s-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(e,i);if("canvas"===e)for(;s--;)this._objects[s]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,s=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var s=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toObject(e);return t.includeDefaultValues=s,n})),n=t.Object.prototype.toObject.call(this,e);return n.objects=s,n},toDatalessObject:function(e){var i,s=this.sourcePath;if(s)i=s;else{var n=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=n;var s=t.toDatalessObject(e);return t.includeDefaultValues=i,s}))}var r=t.Object.prototype.toDatalessObject.call(this,e);return r.objects=i,r},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,s=this._objects.length;i<s;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var s=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-s/2,-n/2,s,n)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var n=new t.ActiveSelection([]);return n.set(s),n.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=n,e.dirty=!0,i.add(e)})),n.canvas=i,n._objects=e,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,s,n,r=[],o=[],a=["tr","br","bl","tl"],c=0,l=this._objects.length,h=a.length;c<l;++c){for(s=(t=this._objects[c]).calcACoords(),n=0;n<h;n++)i=a[n],r.push(s[i].x),o.push(s[i].y);t.aCoords=s}this._getBounds(r,o,e)},_getBounds:function(e,n,r){var o=new t.Point(i(e),i(n)),a=new t.Point(s(e),s(n)),c=o.y||0,l=o.x||0,h=a.x-o.x||0,d=a.y-o.y||0;this.width=h,this.height=d,r||this.setPositionByOrigin({x:l,y:c},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,s=this._objects.length;i<s;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,s=this._objects.length;i<s;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var s=e.objects,n=t.util.object.clone(e,!0);delete n.objects,"string"!==typeof s?t.util.enlivenObjects(s,(function(s){t.util.enlivenObjectEnlivables(e,n,(function(){i&&i(new t.Group(s,n,!0))}))})):t.loadSVGFromURL(s,(function(r){var o=t.util.groupSVGElements(r,e,s),a=n.clipPath;delete n.clipPath,o.set(n),a?t.util.enlivenObjects([a],(function(e){o.clipPath=e[0],i&&i(o)})):i&&i(o)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),s=new t.Group([]);if(delete i.type,s.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=s})),s._objects=e,!this.canvas)return s;var n=this.canvas;return n.add(s),n._activeObject=s,s.setCoords(),s},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var s=0,n=this._objects.length;s<n;s++)this._objects[s]._renderControls(e,i);this.callSuper("_renderControls",e,t),e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(s){delete e.objects,i&&i(new t.ActiveSelection(s,e,!0))}))})}(t),function(e){"use strict";var t=n.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?n.warn("fabric.Image is already defined."):(n.Image=n.util.createClass(n.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:n.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:n.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+n.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=n.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var s=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(s.resizeFilter=this.resizeFilter.toObject()),s},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],s=this._element,r=-this.width/2,o=-this.height/2,a="",c="";if(!s)return[];if(this.hasCrop()){var l=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+l+'">\n','\t<rect x="'+r+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+l+')" '}if(this.imageSmoothing||(c='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',r-this.cropX,'" y="',o-this.cropY,'" width="',s.width||s.naturalWidth,'" height="',s.height||s.height,c,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',r,'" y="',o,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return n.util.loadImage(e,(function(e,s){this.setElement(e,i),this._setWidthHeight(),t&&t(this,s)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),s=i.scaleX,r=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||s>t&&r>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=s,void(this._lastScaleY=r);n.filterBackend||(n.filterBackend=n.initFilterBackend());var a=n.util.createCanvasElement(),c=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,l=o.width,h=o.height;a.width=l,a.height=h,this._element=a,this._lastScaleX=e.scaleX=s,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],o,l,h,this._element,c),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,s=t.naturalHeight||t.height;if(this._element===this._originalElement){var r=n.util.createCanvasElement();r.width=i,r.height=s,this._element=r,this._filteredEl=r}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,s),this._lastScaleX=1,this._lastScaleY=1;return n.filterBackend||(n.filterBackend=n.initFilterBackend()),n.filterBackend.applyFilters(e,this._originalElement,i,s,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),n.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,s=this._filterScalingY,n=this.width,r=this.height,o=Math.min,a=Math.max,c=a(this.cropX,0),l=a(this.cropY,0),h=t.naturalWidth||t.width,d=t.naturalHeight||t.height,u=c*i,g=l*s,p=o(n*i,h-u),m=o(r*s,d-g),f=-n/2,_=-r/2,v=o(n,h/i-c),C=o(r,d/s-l);t&&e.drawImage(t,u,g,p,m,f,_,v,C)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(n.util.getById(e),t),n.util.addClass(this.getElement(),n.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=n.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,s=this._element.height,r=1,o=1,a=0,c=0,l=0,h=0,d=this.width,u=this.height,g={width:d,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(r=d/i,o=u/s):("meet"===t.meetOrSlice&&(e=(d-i*(r=o=n.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-s*o)/2,"Min"===t.alignY&&(c=-e),"Max"===t.alignY&&(c=e)),"slice"===t.meetOrSlice&&(e=i-d/(r=o=n.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(l=e/2),"Max"===t.alignX&&(l=e),e=s-u/o,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=d/r,s=u/o)),{width:i,height:s,scaleX:r,scaleY:o,offsetLeft:a,offsetTop:c,cropX:l,cropY:h}}}),n.Image.CSS_CANVAS="canvas-img",n.Image.prototype.getSvgSrc=n.Image.prototype.getSrc,n.Image.fromObject=function(e,t){var i=n.util.object.clone(e);n.util.loadImage(i.src,(function(e,s){s?t&&t(null,!0):n.Image.prototype._initFilters.call(i,i.filters,(function(s){i.filters=s||[],n.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(s){i.resizeFilter=s[0],n.util.enlivenObjectEnlivables(i,i,(function(){var s=new n.Image(e,i);t(s,!1)}))}))}))}),null,i.crossOrigin)},n.Image.fromURL=function(e,t,i){n.util.loadImage(e,(function(e,s){t&&t(new n.Image(e,i),s)}),null,i&&i.crossOrigin)},n.Image.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),n.Image.fromElement=function(e,i,s){var r=n.parseAttributes(e,n.Image.ATTRIBUTE_NAMES);n.Image.fromURL(r["xlink:href"],i,t(s?n.util.object.clone(s):{},r))})}(t),n.util.object.extend(n.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,s=e.onChange||t,r=this;return n.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){r.rotate(e),s()},onComplete:function(){r.setCoords(),i()}})}}),n.util.object.extend(n.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",s=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(s,i),e.compileShader(s),!!e.getShaderParameter(s,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}n.isWebglSupported=function(t){if(n.isLikelyNode)return!1;t=t||n.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),s=i.getContext("webgl")||i.getContext("experimental-webgl"),r=!1;if(s){n.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),r=n.maxTextureSize>=t;for(var o=["highp","mediump","lowp"],a=0;a<3;a++)if(e(s,o[a])){n.webGlPrecision=o[a];break}}return this.isSupported=r,r},n.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,s="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var r="undefined"!==typeof ArrayBuffer,c="undefined"!==typeof Uint8ClampedArray;if(s&&i&&r&&c){var l=n.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(n.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var d,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:l};l.width=e,l.height=t,d=window.performance.now(),o.call(g,this.gl,g),u=window.performance.now()-d,d=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-d?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=o}},createWebGLCanvas:function(e,t){var i=n.util.createCanvasElement();i.width=e,i.height=t;var s={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=i.getContext("webgl",s);r||(r=i.getContext("experimental-webgl",s)),r&&(r.clearColor(0,0,0,0),this.canvas=i,this.gl=r)},applyFilters:function(e,t,i,s,n,r){var o,a=this.gl;r&&(o=this.getCachedTexture(r,t));var c={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:s,destinationWidth:i,destinationHeight:s,context:a,sourceTexture:this.createTexture(a,i,s,!o&&t),targetTexture:this.createTexture(a,i,s),originalTexture:o||this.createTexture(a,i,s,!o&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},l=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,l),e.forEach((function(e){e&&e.applyTo(c)})),function(e){var t=e.targetCanvas,i=t.width,s=t.height,n=e.destinationWidth,r=e.destinationHeight;i===n&&s===r||(t.width=n,t.height=r)}(c),this.copyGLTo2D(a,c),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(c.sourceTexture),a.deleteTexture(c.targetTexture),a.deleteFramebuffer(l),n.getContext("2d").setTransform(1,0,0,1,0,0),c},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,s,n){var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),s?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),r},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:o,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var s=e.getParameter(i.UNMASKED_RENDERER_WEBGL),n=e.getParameter(i.UNMASKED_VENDOR_WEBGL);s&&(t.renderer=s.toLowerCase()),n&&(t.vendor=n.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}n.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,s,n){var r=n.getContext("2d");r.drawImage(t,0,0,i,s);var o={sourceWidth:i,sourceHeight:s,imageData:r.getImageData(0,0,i,s),originalEl:t,originalImageData:r.getImageData(0,0,i,s),canvasEl:n,ctx:r,filterBackend:this};return e.forEach((function(e){e.applyTo(o)})),o.imageData.width===i&&o.imageData.height===s||(n.width=o.imageData.width,n.height=o.imageData.height),r.putImageData(o.imageData,0,0),o}}}(),n.Image=n.Image||{},n.Image.filters=n.Image.filters||{},n.Image.filters.BaseFilter=n.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==n.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+n.webGlPrecision+" float"));var s=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(s,i),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(s));var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var o=e.createProgram();if(e.attachShader(o,s),e.attachShader(o,r),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(o));var a=this.getAttributeLocations(e,o),c=this.getUniformLocations(e,o)||{};return c.uStepW=e.getUniformLocation(o,"uStepW"),c.uStepH=e.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:c}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var s=t.aPosition,n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,s=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(s.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(s,t,i)),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.targetTexture,0)):(s.bindFramebuffer(s.FRAMEBUFFER,null),s.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=n.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),n.Image.filters.BaseFilter.fromObject=function(e,t){var i=new n.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.ColorMatrix=s(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,s,n,r,o=e.imageData.data,a=o.length,c=this.matrix,l=this.colorsOnly;for(r=0;r<a;r+=4)t=o[r],i=o[r+1],s=o[r+2],l?(o[r]=t*c[0]+i*c[1]+s*c[2]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+255*c[14]):(n=o[r+3],o[r]=t*c[0]+i*c[1]+s*c[2]+n*c[3]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+n*c[8]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+n*c[13]+255*c[14],o[r+3]=t*c[15]+i*c[16]+s*c[17]+n*c[18]+255*c[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,s=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,s),e.uniform4fv(t.uConstants,n)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Brightness=s(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,s=i.length,n=Math.round(255*this.brightness);for(t=0;t<s;t+=4)i[t]=i[t]+n,i[t+1]=i[t+1]+n,i[t+2]=i[t+2]+n}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Convolute=n(s.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),s=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,s)),e.programCache[i]},applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),C=p.width,E=p.height,b=e.ctx.createImageData(C,E),S=b.data,y=this.opaque?1:0;for(d=0;d<E;d++)for(h=0;h<C;h++){for(r=4*(d*C+h),t=0,i=0,s=0,n=0,g=0;g<_;g++)for(u=0;u<_;u++)o=h+u-v,(a=d+g-v)<0||a>=E||o<0||o>=C||(c=4*(a*C+o),l=f[g*_+u],t+=m[c]*l,i+=m[c+1]*l,s+=m[c+2]*l,y||(n+=m[c+3]*l));S[r]=t,S[r+1]=i,S[r+2]=s,S[r+3]=y?m[r+3]:n}e.imageData=b},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Grayscale=s(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,s=e.imageData.data,n=s.length,r=this.mode;for(t=0;t<n;t+=4)"average"===r?i=(s[t]+s[t+1]+s[t+2])/3:"lightness"===r?i=(Math.min(s[t],s[t+1],s[t+2])+Math.max(s[t],s[t+1],s[t+2]))/2:"luminosity"===r&&(i=.21*s[t]+.72*s[t+1]+.07*s[t+2]),s[t]=i,s[t+1]=i,s[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Invert=s(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,s=i.length;for(t=0;t<s;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Noise=n(s.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,s=e.imageData.data,n=s.length,r=this.noise;for(t=0,n=s.length;t<n;t+=4)i=(.5-Math.random())*r,s[t]+=i,s[t+1]+=i,s[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Pixelate=s(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(s=0;s<m;s+=this.blocksize)for(n=g[t=4*i*m+4*s],r=g[t+1],o=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),d=Math.min(s+this.blocksize,m),c=i;c<h;c++)for(l=s;l<d;l++)g[t=4*c*m+4*l]=n,g[t+1]=r,g[t+2]=o,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.RemoveColor=n(s.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,s,n,r,o=e.imageData.data,a=255*this.distance,c=new t.Color(this.color).getSource(),l=[c[0]-a,c[1]-a,c[2]-a],h=[c[0]+a,c[1]+a,c[2]+a];for(i=0;i<o.length;i+=4)s=o[i],n=o[i+1],r=o[i+2],s>l[0]&&n>l[1]&&r>l[2]&&s<h[0]&&n<h[1]&&r<h[2]&&(o[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource(),n=parseFloat(this.distance),r=[0+s[0]/255-n,0+s[1]/255-n,0+s[2]/255-n,1],o=[s[0]/255+n,s[1]/255+n,s[2]/255+n,1];e.uniform4fv(i.uLow,r),e.uniform4fv(i.uHigh,o)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var r in n)i[r]=s(i.ColorMatrix,{type:r,matrix:n[r],mainParameter:!1,colorsOnly:!0}),t.Image.filters[r].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendColor=s(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,s,n,r,o,a,c,l=e.imageData.data,h=l.length,d=1-this.alpha;i=(c=new t.Color(this.color).getSource())[0]*this.alpha,s=c[1]*this.alpha,n=c[2]*this.alpha;for(var u=0;u<h;u+=4)switch(r=l[u],o=l[u+1],a=l[u+2],this.mode){case"multiply":l[u]=r*i/255,l[u+1]=o*s/255,l[u+2]=a*n/255;break;case"screen":l[u]=255-(255-r)*(255-i)/255,l[u+1]=255-(255-o)*(255-s)/255,l[u+2]=255-(255-a)*(255-n)/255;break;case"add":l[u]=r+i,l[u+1]=o+s,l[u+2]=a+n;break;case"diff":case"difference":l[u]=Math.abs(r-i),l[u+1]=Math.abs(o-s),l[u+2]=Math.abs(a-n);break;case"subtract":l[u]=r-i,l[u+1]=o-s,l[u+2]=a-n;break;case"darken":l[u]=Math.min(r,i),l[u+1]=Math.min(o,s),l[u+2]=Math.min(a,n);break;case"lighten":l[u]=Math.max(r,i),l[u+1]=Math.max(o,s),l[u+2]=Math.max(a,n);break;case"overlay":l[u]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,l[u+1]=s<128?2*o*s/255:255-2*(255-o)*(255-s)/255,l[u+2]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case"exclusion":l[u]=i+r-2*i*r/255,l[u+1]=s+o-2*s*o/255,l[u+2]=n+a-2*n*a/255;break;case"tint":l[u]=i+r*d,l[u+1]=s+o*d,l[u+2]=n+a*d}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,e.uniform4fv(i.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendImage=s(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,s,n,r,o,a,c,l,h,d,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,C=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),d=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):d.clearRect(0,0,_,v),d.setTransform(C.scaleX,0,0,C.scaleY,C.left,C.top),d.drawImage(C._element,0,0,_,v),u=d.getImageData(0,0,_,v).data;for(var E=0;E<f;E+=4)switch(o=m[E],a=m[E+1],c=m[E+2],l=m[E+3],i=u[E],s=u[E+1],n=u[E+2],r=u[E+3],this.mode){case"multiply":m[E]=o*i/255,m[E+1]=a*s/255,m[E+2]=c*n/255,m[E+3]=l*r/255;break;case"mask":m[E+3]=r}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(s){var n=t.util.object.clone(e);n.image=s,i(new t.Image.filters.BlendImage(n))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,s=Math.floor,n=Math.sqrt,r=Math.abs,o=Math.round,a=Math.sin,c=Math.ceil,l=t.Image.filters,h=t.util.createClass;l.Resize=h(l.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var s=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,s)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),s=new Array(i),n=1;n<=i;n++)s[n-1]=e(n*t);return s},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,s=1;s<=e;s++)t[s-1]=s+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,s=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/s;var n,r=t.width,a=t.height,c=o(r*i),l=o(a*s);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,a,c,l):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,a,c,l):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,a,c,l):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,a,c,l)),e.imageData=n},sliceByTwo:function(e,i,n,r,o){var a,c,l=e.imageData,h=.5,d=!1,u=!1,g=i*h,p=n*h,m=t.filterBackend.resources,f=0,_=0,v=i,C=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<n)&&(a.width=1.5*i,a.height=n),(c=a.getContext("2d")).clearRect(0,0,1.5*i,n),c.putImageData(l,0,0),r=s(r),o=s(o);!d||!u;)i=g,n=p,r<s(g*h)?g=s(g*h):(g=r,d=!0),o<s(p*h)?p=s(p*h):(p=o,u=!0),c.drawImage(a,f,_,i,n,v,C,g,p),f=v,_=C,C+=p;return c.getImageData(f,_,r,o)},lanczosResize:function(e,t,o,a,l){var h=e.imageData.data,d=e.ctx.createImageData(a,l),u=d.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=c(p*this.lanczosLobes/2),C=c(m*this.lanczosLobes/2),E={},b={},S={};return function e(c){var y,w,R,L,T,x,k,A,N,I,O;for(b.x=(c+.5)*p,S.x=s(b.x),y=0;y<l;y++){for(b.y=(y+.5)*m,S.y=s(b.y),T=0,x=0,k=0,A=0,N=0,w=S.x-v;w<=S.x+v;w++)if(!(w<0||w>=t)){I=s(1e3*r(w-b.x)),E[I]||(E[I]={});for(var D=S.y-C;D<=S.y+C;D++)D<0||D>=o||(O=s(1e3*r(D-b.y)),E[I][O]||(E[I][O]=g(n(i(I*f,2)+i(O*_,2))/1e3)),(R=E[I][O])>0&&(T+=R,x+=R*h[L=4*(D*t+w)],k+=R*h[L+1],A+=R*h[L+2],N+=R*h[L+3]))}u[L=4*(y*a+c)]=x/T,u[L+1]=k/T,u[L+2]=A/T,u[L+3]=N/T}return++c<a?e(c):d}(0)},bilinearFiltering:function(e,t,i,n,r){var o,a,c,l,h,d,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),C=e.imageData.data,E=e.ctx.createImageData(n,r),b=E.data;for(c=0;c<r;c++)for(l=0;l<n;l++)for(h=f*l-(o=s(f*l)),d=_*c-(a=s(_*c)),p=4*(a*t+o),u=0;u<4;u++)g=C[p+u]*(1-h)*(1-d)+C[p+4+u]*h*(1-d)+C[p+v+u]*d*(1-h)+C[p+v+4+u]*h*d,b[m++]=g;return E},hermiteFastResize:function(e,t,i,o,a){for(var l=this.rcpScaleX,h=this.rcpScaleY,d=c(l/2),u=c(h/2),g=e.imageData.data,p=e.ctx.createImageData(o,a),m=p.data,f=0;f<a;f++)for(var _=0;_<o;_++){for(var v=4*(_+f*o),C=0,E=0,b=0,S=0,y=0,w=0,R=0,L=(f+.5)*h,T=s(f*h);T<(f+1)*h;T++)for(var x=r(L-(T+.5))/u,k=(_+.5)*l,A=x*x,N=s(_*l);N<(_+1)*l;N++){var I=r(k-(N+.5))/d,O=n(A+I*I);O>1&&O<-1||(C=2*O*O*O-3*O*O+1)>0&&(R+=C*g[(I=4*(N+T*t))+3],b+=C,g[I+3]<255&&(C=C*g[I+3]/250),S+=C*g[I],y+=C*g[I+1],w+=C*g[I+2],E+=C)}m[v]=S/E,m[v+1]=y/E,m[v+2]=w/E,m[v+3]=R/b}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Contrast=s(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,s=i.length,n=Math.floor(255*this.contrast),r=259*(n+255)/(255*(259-n));for(t=0;t<s;t+=4)i[t]=r*(i[t]-128)+128,i[t+1]=r*(i[t+1]-128)+128,i[t+2]=r*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Saturation=s(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,s=e.imageData.data,n=s.length,r=-this.saturation;for(t=0;t<n;t+=4)i=Math.max(s[t],s[t+1],s[t+2]),s[t]+=i!==s[t]?(i-s[t])*r:0,s[t+1]+=i!==s[t+1]?(i-s[t+1])*r:0,s[t+2]+=i!==s[t+2]?(i-s[t+2])*r:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Vibrance=s(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,s,n,r=e.imageData.data,o=r.length,a=-this.vibrance;for(t=0;t<o;t+=4)i=Math.max(r[t],r[t+1],r[t+2]),s=(r[t]+r[t+1]+r[t+2])/3,n=2*Math.abs(i-s)/255*a,r[t]+=i!==r[t]?(i-r[t])*n:0,r[t+1]+=i!==r[t+1]?(i-r[t+1])*n:0,r[t+2]+=i!==r[t+2]?(i-r[t+2])*n:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Blur=s(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,s,n=e.filterBackend.resources,r=e.imageData.width,o=e.imageData.height;n.blurLayer1||(n.blurLayer1=t.util.createCanvasElement(),n.blurLayer2=t.util.createCanvasElement()),i=n.blurLayer1,s=n.blurLayer2,i.width===r&&i.height===o||(s.width=i.width=r,s.height=i.height=o);var a,c,l,h,d=i.getContext("2d"),u=s.getContext("2d"),g=15,p=.06*this.blur*.5;for(d.putImageData(e.imageData,0,0),u.clearRect(0,0,r,o),h=-15;h<=g;h++)l=p*(c=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,l,a),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);for(h=-15;h<=g;h++)l=p*(c=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,a,l),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return d.globalAlpha=1,d.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Gamma=s(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,s=this.gamma,n=i.length,r=1/s[0],o=1/s[1],a=1/s[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,n=256;t<n;t++)this.rVals[t]=255*Math.pow(t/255,r),this.gVals[t]=255*Math.pow(t/255,o),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,n=i.length;t<n;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Composed=s(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var s=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),n=new t.Image.filters.Composed({subFilters:s});return i&&i(n),n}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.HueRotation=s(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),s=t.util.sin(e),n=1/3,r=Math.sqrt(n)*s,o=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+o/3,this.matrix[1]=n*o-r,this.matrix[2]=n*o+r,this.matrix[5]=n*o+r,this.matrix[6]=i+n*o,this.matrix[7]=n*o-r,this.matrix[10]=n*o-r,this.matrix[11]=n*o+r,this.matrix[12]=i+n*o},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var s="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(s),cacheProperties:t.Object.prototype.cacheProperties.concat(s),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var e=1.1*this.getHeightOfLine(0);this.width=this.path.width+e,this.height=this.path.height+e}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var e,t,i,s,n,r,o,a=0,c=this._textLines.length;a<c;a++)if(("justify"===this.textAlign||a!==c-1&&!this.isEndOfWrapping(a))&&(s=0,n=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(o=this.textLines[a].match(this._reSpacesAndTabs)))){i=o.length,e=(this.width-t)/i;for(var l=0,h=n.length;l<=h;l++)r=this.__charBounds[a][l],this._reSpaceAndTab.test(n[l])?(r.width+=e,r.kernedWidth+=e,r.left+=s,s+=e):r.left+=s}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var s=this.getLineWidth(t);s>e&&(e=s)}return e},_renderTextLine:function(e,t,i,s,n,r){this._renderChars(e,t,i,s,n,r)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,s,n,r,o,a,c=e.fillStyle,l=this._getLeftOffset(),h=this._getTopOffset(),d=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){s=this._textLines[p],i=this._getLineLeftOffset(p),u=0,d=0,n=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=s.length;f<_;f++)r=this.__charBounds[p][f],o=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(r.renderLeft,r.renderTop),e.rotate(r.angle),e.fillStyle=o,o&&e.fillRect(-r.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),r.width,t/this.lineHeight),e.restore()):o!==n?(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=n,n&&e.fillRect(a,h,u,t/this.lineHeight),d=r.left,u=r.width,n=o):u+=r.kernedWidth;o&&!g&&(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=o,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=c,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var s=t.charWidthsCache[i],n=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return s[n]||(s[n]={}),s[n]},_measureChar:function(e,t,i,s){var n,r,o,a,c=this.getFontCache(t),l=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(s),d=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==c[i]&&(o=c[i]),void 0!==c[e]&&(a=n=c[e]),h&&void 0!==c[l]&&(a=(r=c[l])-o),void 0===n||void 0===o||void 0===r){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===n&&(a=n=u.measureText(e).width,c[e]=n),void 0===o&&h&&i&&(o=u.measureText(i).width,c[i]=o),h&&void 0===r&&(r=u.measureText(l).width,c[l]=r,a=r-o),{width:n*d,kernedWidth:a*d}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,s,n,r,o,a,c=0,l=this._textLines[e],h=new Array(l.length),d=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<l.length;i++)s=l[i],r=this._getGraphemeBox(s,e,i,n),h[i]=r,c+=r.kernedWidth,n=s;if(h[i]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(o=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,o.y+=u.pathOffset.y,this.textAlign){case"left":d=g?a-c:0;break;case"center":d=(a-c)/2;break;case"right":d=g?0:a-c}for(d+=this.pathStartOffset*(g?-1:1),i=g?l.length-1:0;g?i>=0:i<l.length;g?i--:i++)r=h[i],d>a?d%=a:d<0&&(d+=a),this._setGraphemeOnPath(d,r,o),d+=r.kernedWidth}return{width:c,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,s){var n=e+i.kernedWidth/2,r=this.path,o=t.util.getPointOnPath(r.path,n,r.segmentsInfo);i.renderLeft=o.x-s.x,i.renderTop=o.y-s.y,i.angle=o.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,s,n){var r,o=this.getCompleteStyleDeclaration(t,i),a=s?this.getCompleteStyleDeclaration(t,i-1):{},c=this._measureChar(e,o,s,a),l=c.kernedWidth,h=c.width;0!==this.charSpacing&&(h+=r=this._getWidthOfCharSpacing(),l+=r);var d={width:h,left:0,height:o.fontSize,kernedWidth:l,deltaY:o.deltaY};if(i>0&&!n){var u=this.__charBounds[t][i-1];d.left=u.left+u.width+c.kernedWidth-c.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),s=1,n=t.length;s<n;s++)i=Math.max(this.getHeightOfChar(e,s),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,s=this._textLines.length;i<s;i++)e=this.getHeightOfLine(i),t+=i===s-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,s=this._getLeftOffset(),n=this._getTopOffset(),r=0,o=this._textLines.length;r<o;r++){var a=this.getHeightOfLine(r),c=a/this.lineHeight,l=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],s+l,n+i+c,r),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,s,n,r,o){var a,c,l,h,d,u=this.getHeightOfLine(o),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(o)&&!f,v="ltr"===this.direction,C="ltr"===this.direction?1:-1,E=i.canvas.getAttribute("dir");if(i.save(),E!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),r-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,o,0,s.join(""),n,r,u),void i.restore();for(var b=0,S=s.length-1;b<=S;b++)h=b===S||this.charSpacing||f,p+=s[b],l=this.__charBounds[o][b],0===m?(n+=C*(l.kernedWidth-l.width),m+=l.width):m+=l.kernedWidth,g&&!h&&this._reSpaceAndTab.test(s[b])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(o,b),c=this.getCompleteStyleDeclaration(o,b+1),h=t.util.hasStyleChanged(a,c,!1)),h&&(f?(i.save(),i.translate(l.renderLeft,l.renderTop),i.rotate(l.angle),this._renderChar(e,i,o,b,p,-m/2,0,u),i.restore()):(d=n,this._renderChar(e,i,o,b,p,d,r,u)),p="",a=c,n+=C*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,s=t.util.createCanvasElement(),n=this.width+this.strokeWidth,r=this.height+this.strokeWidth;return s.width=n,s.height=r,(i=s.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,r),i.lineTo(0,r),i.closePath(),i.translate(n/2,r/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(s,"no-repeat")},handleFiller:function(e,t,i){var s,n;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(s=-this.width/2,n=-this.height/2,e.translate(s,n),e[t]=this._applyPatternGradientTransformText(i),{offsetX:s,offsetY:n}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,s,n,r,o){var a,c,l=this._getStyleDeclaration(i,s),h=this.getCompleteStyleDeclaration(i,s),d="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||d)&&(t.save(),d&&(a=this._setFillStyles(t,h)),u&&(c=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),l&&l.textBackgroundColor&&this._removeShadow(t),l&&l.deltaY&&(o+=l.deltaY),d&&t.fillText(n,r-a.offsetX,o-a.offsetY),u&&t.strokeText(n,r-c.offsetX,o-c.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var s=this.get2DCursorLocation(e,!0),n=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"fontSize"),r=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"deltaY"),o={fontSize:n*i.size,deltaY:r+n*i.baseline};return this.setSelectionStyles(o,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,s=this.textAlign,n=this.direction,r=0,o=this.isEndOfWrapping(e);return"justify"===s||"justify-center"===s&&!o||"justify-right"===s&&!o||"justify-left"===s&&!o?0:("center"===s&&(r=i/2),"right"===s&&(r=i),"justify-center"===s&&(r=i/2),"justify-right"===s&&(r=i),"rtl"===n&&(r-=i),r)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var s=this._getStyleDeclaration(e,t);return s&&"undefined"!==typeof s[i]?s[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){e.save(),"overline"!==t&&"linethrough"!==t||this._removeShadow(e);for(var i,s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v=this._getLeftOffset(),C=this._getTopOffset(),E=this.path,b=this._getWidthOfCharSpacing(),S=this.offsets[t],y=0,w=this._textLines.length;y<w;y++)if(i=this.getHeightOfLine(y),this[t]||this.styleHas(t,y)){c=this._textLines[y],m=i/this.lineHeight,r=this._getLineLeftOffset(y),d=0,u=0,l=this.getValueOfPropertyAt(y,0,t),_=this.getValueOfPropertyAt(y,0,"fill"),h=C+m*(1-this._fontSizeFraction),s=this.getHeightOfChar(y,0),o=this.getValueOfPropertyAt(y,0,"deltaY");for(var R=0,L=c.length;R<L;R++)if(g=this.__charBounds[y][R],p=this.getValueOfPropertyAt(y,R,t),f=this.getValueOfPropertyAt(y,R,"fill"),n=this.getHeightOfChar(y,R),a=this.getValueOfPropertyAt(y,R,"deltaY"),E&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,S*n+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==l||f!==_||n!==s||a!==o)&&u>0){var T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),l&&_&&(e.fillStyle=_,e.fillRect(T,h+S*s+o,u,this.fontSize/15)),d=g.left,u=g.width,l=p,_=f,s=n,o=a}else u+=g.kernedWidth;T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),e.fillStyle=f,p&&f&&e.fillRect(T,h+S*s+o,u-b,this.fontSize/15),C+=i}else C+=i;e.restore()}},_getFontDeclaration:function(e,i){var s=e||this,n=this.fontFamily,r=t.Text.genericFonts.indexOf(n.toLowerCase())>-1,o=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||r?s.fontFamily:'"'+s.fontFamily+'"';return[t.isLikelyNode?s.fontWeight:s.fontStyle,t.isLikelyNode?s.fontStyle:s.fontWeight,i?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",o].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),s=new Array(i.length),n=["\n"],r=[],o=0;o<i.length;o++)s[o]=t.util.string.graphemeSplit(i[o]),r=r.concat(s[o],n);return r.pop(),{_unwrappedLines:s,lines:i,graphemeText:r,graphemeLines:s}},toObject:function(e){var i=s.concat(e),n=this.callSuper("toObject",i);return n.styles=t.util.stylesToArray(this.styles,this.text),n.path&&(n.path=this.path.toObject()),n},set:function(e,t){this.callSuper("set",e,t);var i=!1,s=!1;if("object"===typeof e)for(var n in e)"path"===n&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),s=s||"path"===n;else i=-1!==this._dimensionAffectingProps.indexOf(e),s="path"===e;return s&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,s,n){if(!e)return s(null);var r=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),o=r.textAnchor||"left";if((n=t.util.object.extend(n?i(n):{},r)).top=n.top||0,n.left=n.left||0,r.textDecoration){var a=r.textDecoration;-1!==a.indexOf("underline")&&(n.underline=!0),-1!==a.indexOf("overline")&&(n.overline=!0),-1!==a.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in r&&(n.left+=r.dx),"dy"in r&&(n.top+=r.dy),"fontSize"in n||(n.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var c="";"textContent"in e?c=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(c=e.firstChild.data),c=c.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var l=n.strokeWidth;n.strokeWidth=0;var h=new t.Text(c,n),d=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*d,g=h.getScaledHeight()+u,p=0;"center"===o&&(p=h.getScaledWidth()/2),"right"===o&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof l?l:1}),s(h)},t.Text.fromObject=function(e,s){var n=i(e),r=e.path;return delete n.path,t.Object._fromObject("Text",n,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),r?t.Object._fromObject("Path",r,(function(e){i.set("path",e),s(i)}),"path"):s(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),n.util.object.extend(n.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var s in t[i])for(var n in t[i][s])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var s in i)for(var n in i[s])if("undefined"!==typeof i[s][n][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,s=this.styles,n=0,r=!0,o=0;for(var a in s){for(var c in t=0,s[a]){var l;n++,(l=s[a][c]).hasOwnProperty(e)?(i?l[e]!==i&&(r=!1):i=l[e],l[e]===this[e]&&delete l[e]):r=!1,0!==Object.keys(l).length?t++:delete s[a][c]}0===t&&delete s[a]}for(var h=0;h<this._textLines.length;h++)o+=this._textLines[h].length;r&&n===o&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,s,n=this.styles;for(i in n){for(s in t=n[i])delete t[s][e],0===Object.keys(t[s]).length&&delete t[s];0===Object.keys(t).length&&delete n[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),n.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,s=i.length,n=0;n<s;n++){if(e<=i[n].length)return{lineIndex:n,charIndex:e};e-=i[n].length+this.missingNewlineOffset(n,t)}return{lineIndex:n-1,charIndex:i[n-1].length<e?i[n-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var s=[],n=e;n<t;n++)s.push(this.getStyleAtPosition(n,i));return s},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var s=t;s<i;s++)this._extendStyles(s,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,s=this._getStyleDeclaration(e,t)||{},n={},r=0;r<this._styleProperties.length;r++)n[i=this._styleProperties[r]]="undefined"===typeof s[i]?this[i]:s[i];return n},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}n.IText=n.util.createClass(n.Text,n.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),s=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:s.left,topOffset:s.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,s,n,r=0,o=0,a=this.get2DCursorLocation(e);s=a.charIndex,i=a.lineIndex;for(var c=0;c<i;c++)r+=this.getHeightOfLine(c);t=this._getLineLeftOffset(i);var l=this.__charBounds[i][s];return l&&(o=l.left),0!==this.charSpacing&&s===this._textLines[i].length&&(o-=this._getWidthOfCharSpacing()),n={top:r,left:t+(o>0?o:0)},"rtl"===this.direction&&(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),s=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,r=this.getValueOfPropertyAt(s,n,"fontSize"),o=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/o,c=e.topOffset,l=this.getValueOfPropertyAt(s,n,"deltaY");c+=(1-this._fontSizeFraction)*this.getHeightOfLine(s)/this.lineHeight-r*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(s,n,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,c+e.top+l,a,r)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,s=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf("justify"),r=this.get2DCursorLocation(i),o=this.get2DCursorLocation(s),a=r.lineIndex,c=o.lineIndex,l=r.charIndex<0?0:r.charIndex,h=o.charIndex<0?0:o.charIndex,d=a;d<=c;d++){var u,g=this._getLineLeftOffset(d)||0,p=this.getHeightOfLine(d),m=0,f=0;if(d===a&&(m=this.__charBounds[a][l].left),d>=a&&d<c)f=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===c)if(0===h)f=this.__charBounds[c][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[c][h-1].left+this.__charBounds[c][h-1].width-_}u=p,(this.lineHeight<1||d===c&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,C=f-m,E=p,b=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",E=1,b=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-C),t.fillRect(v,e.top+e.topOffset+b,C,E),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),n.IText.fromObject=function(t,i){var s=n.util.stylesFromArray(t.styles,t.text),r=Object.assign({},t,{styles:s});if(delete r.path,e(r),r.styles)for(var o in r.styles)for(var a in r.styles[o])e(r.styles[o][a]);n.Object._fromObject("IText",r,(function(e){t.path?n.Object._fromObject("Path",t.path,(function(t){e.set("path",t),i(e)}),"path"):i(e)}),"text")}}(),function(){var e=n.util.object.clone;n.util.object.extend(n.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],n.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,s){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){n.isAborted||e[s]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,s=this._reSpace.test(i[e])?e-1:e,r=i[s],o=n.reNonWord;!o.test(r)&&s>0&&s<i.length;)r=i[s+=t];return o.test(r)&&(s+=1===t?0:1),s},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,s=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==s||i!==t&&s!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===s||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var s=i.slice(0,e),r=n.util.string.graphemeSplit(s).length;if(e===t)return{selectionStart:r,selectionEnd:r};var o=i.slice(e,t);return{selectionStart:r,selectionEnd:r+n.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(e,t,i){var s=i.slice(0,e).join("").length;return e===t?{selectionStart:s,selectionEnd:s}:{selectionStart:s,selectionEnd:s+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),s=i.lineIndex,r=i.charIndex,o=this.getValueOfPropertyAt(s,r,"fontSize")*this.lineHeight,a=t.leftOffset,c=this.calcTransformMatrix(),l={x:t.left+a,y:t.top+t.topOffset+o},h=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,u=d.width/h,g=d.height/h,p=u-o,m=g-o,f=d.clientWidth/u,_=d.clientHeight/g;return l=n.util.transformPoint(l,c),(l=n.util.transformPoint(l,this.canvas.viewportTransform)).x*=f,l.y*=_,l.x<0&&(l.x=0),l.x>p&&(l.x=p),l.y<0&&(l.y=0),l.y>m&&(l.y=m),l.x+=this.canvas._offset.left,l.y+=this.canvas._offset.top,{left:l.x+"px",top:l.y+"px",fontSize:o+"px",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,s,n=this.get2DCursorLocation(e,!0),r=this.get2DCursorLocation(t,!0),o=n.lineIndex,a=n.charIndex,c=r.lineIndex,l=r.charIndex;if(o!==c){if(this.styles[o])for(i=a;i<this._unwrappedTextLines[o].length;i++)delete this.styles[o][i];if(this.styles[c])for(i=l;i<this._unwrappedTextLines[c].length;i++)(s=this.styles[c][i])&&(this.styles[o]||(this.styles[o]={}),this.styles[o][a+i-l]=s);for(i=o+1;i<=c;i++)delete this.styles[i];this.shiftLineStyles(c,o-c)}else if(this.styles[o]){s=this.styles[o];var h,d,u=l-a;for(i=a;i<l;i++)delete s[i];for(d in this.styles[o])(h=parseInt(d,10))>=l&&(s[h-u]=s[d],delete s[d])}},shiftLineStyles:function(t,i){var s=e(this.styles);for(var n in this.styles){var r=parseInt(n,10);r>t&&(this.styles[r+i]=s[r],s[r-i]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,s,n){var r,o={},a=!1,c=this._unwrappedTextLines[t].length,l=c===i;for(var h in s||(s=1),this.shiftLineStyles(t,s),this.styles[t]&&(r=this.styles[t][0===i?i:i-1]),this.styles[t]){var d=parseInt(h,10);d>=i&&(a=!0,o[d-i]=this.styles[t][h],l&&0===i||delete this.styles[t][h])}var u=!1;for(a&&!l&&(this.styles[t+s]=o,u=!0),(u||c>i)&&s--;s>0;)n&&n[s-1]?this.styles[t+s]={0:e(n[s-1])}:r?this.styles[t+s]={0:e(r)}:delete this.styles[t+s],s--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,s,n){this.styles||(this.styles={});var r=this.styles[t],o=r?e(r):{};for(var a in s||(s=1),o){var c=parseInt(a,10);c>=i&&(r[c+s]=o[c],o[c-s]||delete r[c])}if(this._forceClearCache=!0,n)for(;s--;)Object.keys(n[s]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+s]=e(n[s]));else if(r)for(var l=r[i?i-1:1];l&&s--;)this.styles[t][i+s]=e(l)},insertNewStyleBlock:function(e,t,i){for(var s=this.get2DCursorLocation(t,!0),n=[0],r=0,o=0;o<e.length;o++)"\n"===e[o]?n[++r]=0:n[r]++;n[0]>0&&(this.insertCharStyleObject(s.lineIndex,s.charIndex,n[0],i),i=i&&i.slice(n[0]+1)),r&&this.insertNewlineStyleObject(s.lineIndex,s.charIndex+n[0],r);for(o=1;o<r;o++)n[o]>0?this.insertCharStyleObject(s.lineIndex+o,0,n[o],i):i&&this.styles[s.lineIndex+o]&&i[0]&&(this.styles[s.lineIndex+o][0]=i[0]),i=i&&i.slice(n[o]+1);n[o]>0&&this.insertCharStyleObject(s.lineIndex+o,0,n[o],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),n.util.object.extend(n.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,s=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,s,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),s=0,n=0,r=0,o=0,a=0,c=0,l=this._textLines.length;c<l&&r<=i.y;c++)r+=this.getHeightOfLine(c)*this.scaleY,a=c,c>0&&(o+=this._textLines[c-1].length+this.missingNewlineOffset(c-1));n=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+n);for(var h=0,d=t.length;h<d&&(s=n,(n+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)o++;return this._getNewSelectionStartFromOffset(i,s,n,o,d)},_getNewSelectionStartFromOffset:function(e,t,i,s,n){var r=e.x-t,o=i-e.x,a=s+(o>r||o<0?0:1);return this.flipX&&(a=n-a),a>this._text.length&&(a=this._text.length),a}}),n.util.object.extend(n.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=n.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):n.document.body.appendChild(this.hiddenTextarea),n.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),n.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),n.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),n.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(n.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,s,r,o,a,c=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,l=this._text.length,h=c.length,d=h-l,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),d+=g-u):h<l&&(i=f?this._text.slice(g+d,g):this._text.slice(u,u-d)),s=c.slice(m.selectionEnd-d,m.selectionEnd),i&&i.length&&(s.length&&(r=this.getSelectionStyles(u,u+1,!1),r=s.map((function(){return r[0]}))),p?(o=u,a=g):f?(o=g-i.length,a=g):(o=g,a=g+i.length),this.removeStyleFromTo(o,a)),s.length&&(t&&s.join("")===n.copiedText&&!n.disableStyleCopyPaste&&(r=n.copiedTextStyle),this.insertNewStyleBlock(s,u,r)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(n.copiedText=this.getSelectedText(),n.disableStyleCopyPaste?n.copiedTextStyle=null:n.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||n.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,s=this._getLineLeftOffset(e);return t>0&&(s+=(i=this.__charBounds[e][t-1]).left+i.width),s},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(n===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n+1,o);return this._textLines[n].slice(r).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(0===n||e.metaKey||33===e.keyCode)return-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n-1,o),c=this._textLines[n].slice(0,r),l=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-c.length+(1-l)},_getIndexOnLine:function(e,t){for(var i,s,n=this._textLines[e],r=this._getLineLeftOffset(e),o=0,a=0,c=n.length;a<c;a++)if((r+=i=this.__charBounds[e][a].width)>t){s=!0;var l=r-i,h=r,d=Math.abs(l-t);o=Math.abs(h-t)<d?a:a-1;break}return s||(o=n.length-1),o},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var s;if(e.altKey)s=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;s=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof s&&this[t]!==s)return this[t]=s,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,s){"undefined"===typeof s&&(s=i),s>i&&this.removeStyleFromTo(i,s);var r=n.util.string.graphemeSplit(e);this.insertNewStyleBlock(r,i,t),this._text=[].concat(this._text.slice(0,i),r,this._text.slice(s)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=n.util.toFixed,t=n.util.radiansToDegrees,i=n.util.calcRotateMatrix,s=n.util.transformPoint,r=/ +/g;n.util.object.extend(n.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){var t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}),i=this.path;return i?t+i._createBaseSVGMarkup(i._toSVG(),{reviver:e,withShadow:!0}):t},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,s=[],n=[],r=e;this._setSVGBg(n);for(var o=0,a=this._textLines.length;o<a;o++)i=this._getLineLeftOffset(o),(this.textBackgroundColor||this.styleHas("textBackgroundColor",o))&&this._setSVGTextLineBg(n,o,t+i,r),this._setSVGTextLineText(s,o,t+i,r),r+=this.getHeightOfLine(o);return{textSpans:s,textBgRects:n}},_createTextCharSpan:function(o,a,c,l,h){var d=o!==o.trim()||o.match(r),u=this.getSvgSpanStyles(a,d),g=u?'style="'+u+'"':"",p=a.deltaY,m="",f=n.Object.NUM_FRACTION_DIGITS,_="";if(p&&(m=' dy="'+e(p,f)+'" '),void 0!==h.renderLeft){var v=h.angle;_=' rotate="'+e(t(v),n.Object.NUM_FRACTION_DIGITS)+'" ';var C=h.width/2,E=i({angle:t(v)});E[4]=h.renderLeft,E[5]=h.renderTop;var b=s({x:-C,y:0},E);c=b.x,l=b.y}return['<tspan x="',e(c,f),'" y="',e(l,f),'" ',m,g,_,">",n.util.string.escapeXml(o),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,s){var r,o,a,c,l,h=this.getHeightOfLine(t),d=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];s+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)l=m===f||this.charSpacing||this.path,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,d&&!l&&this._reSpaceAndTab.test(p[m])&&(l=!0),l||(r=r||this.getCompleteStyleDeclaration(t,m),o=this.getCompleteStyleDeclaration(t,m+1),l=n.util.hasStyleChanged(r,o,!0)),l&&(c=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,c,i,s,a)),u="",r=o,i+=g,g=0)},_pushTextBgRect:function(t,i,s,r,o,a){var c=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(s,c),'" y="',e(r,c),'" width="',e(o,c),'" height="',e(a,c),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,s){for(var n,r,o=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,c=0,l=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,u=o.length;d<u;d++)n=this.__charBounds[t][d],(r=this.getValueOfPropertyAt(t,d,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+l,s,c,a),l=n.left,c=n.width,h=r):c+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+l,s,c,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new n.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,s=0;s<e;s++)i+=this.getHeightOfLine(s);return t=this.getHeightOfLine(s),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return n.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,s=0,n={},r=0;r<e.graphemeLines.length;r++)"\n"===e.graphemeText[s]&&r>0?(i=0,s++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[s])&&r>0&&(i++,s++),n[r]={line:t,offset:i},s+=e.graphemeLines[r].length,i+=e.graphemeLines[r].length;return n},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var s=this._styleMap[i];s&&(i=s.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,s=0,n=!1,r=this._styleMap[e],o=this._styleMap[e+1];for(var a in r&&(e=r.line,s=r.offset),o&&(n=o.line===e,t=o.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var c in i[a])if(c>=s&&(!n||c<t))for(var l in i[a][c])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var s=this._styleMap[e];e=s.line,t=s.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,s=[];for(this.isWrapping=!0,i=0;i<e.length;i++)s=s.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,s},_measureWord:function(e,t,i){var s,n=0;i=i||0;for(var r=0,o=e.length;r<o;r++){n+=this._getGraphemeBox(e[r],t,r+i,s,true).kernedWidth,s=e[r]}return n},_wrapLine:function(e,i,s,n){var r=0,o=this.splitByGrapheme,a=[],c=[],l=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",d=0,u=o?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();n=n||0;0===l.length&&l.push([]),s-=n;for(var v=0;v<l.length;v++)h=o?l[v]:t.util.string.graphemeSplit(l[v]),g=this._measureWord(h,i,d),d+=h.length,(r+=p+g-_)>s&&!f?(a.push(c),c=[],r=g,f=!0):r+=_,f||o||c.push(u),c=c.concat(h),p=o?0:this._measureWord([u],i,d),d++,f=!1,g>m&&(m=g);return v&&a.push(c),m+n>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+n),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),s=this._wrapText(i.lines,this.width),n=new Array(s.length),r=0;r<s.length;r++)n[r]=s[r].join("");return i.lines=n,i.graphemeLines=s,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var s=t.util.stylesFromArray(e.styles,e.text),n=Object.assign({},e,{styles:s});return delete n.path,t.Object._fromObject("Textbox",n,(function(s){e.path?t.Object._fromObject("Path",e.path,(function(e){s.set("path",e),i(s)}),"path"):i(s)}),"text")}}(t),function(){var e=n.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,s=e.scalingEqually,r=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,c=n.Object.prototype.controls;if(c.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var l=n.Textbox.prototype.controls={};l.mtr=c.mtr,l.tr=c.tr,l.br=c.br,l.tl=c.tl,l.bl=c.bl,l.mt=c.mt,l.mb=c.mb,l.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),l.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},7291:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(s||(s={}))},7936:(e,t,i)=>{"use strict";i.d(t,{Y:()=>p});var s,n=i(91508),r=i(1245),o=i(36677),a=i(75326),c=i(63346),l=i(17469),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let s=i.length;s<=t;s++)i[s]=i[s-1]+e;return i[t]}let p=s=class{static unshiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.prevIndentTabStop(o,s)/s)}return g("\t",r.A.prevRenderTabStop(o,i)/i)}static shiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.nextIndentTabStop(o,s)/s)}return g("\t",r.A.nextRenderTabStop(o,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:l,indentSize:h,insertSpaces:d}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(r.A.visibleColumnFromColumn(a,_+1,l)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,c.h)(this._opts.autoIndent,e,new o.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?s.unshiftIndent(a,_+1,l,h,d):s.shiftIndent(a,_+1,l,h,d),this._addEditOperation(t,new o.Q(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const s=d?g(" ",h):"\t";for(let r=i;r<=a;r++){const a=e.getLineContent(r);let c=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==c)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===c&&(c=a.length),!this._opts.isUnshift||0!==c)))if(this._opts.isUnshift){c=Math.min(c,h);for(let e=0;e<c;e++){if(9===a.charCodeAt(e)){c=e+1;break}}this._addEditOperation(t,new o.Q(r,1,r,c+1),"")}else this._addEditOperation(t,new o.Q(r,1,r,1),s),r!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.L(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.L(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.L(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=s=h([d(2,l.JZ)],p)},8597:(e,t,i)=>{"use strict";i.d(t,{$:()=>Ue,BC:()=>Ie,BK:()=>j,Be:()=>F,Bx:()=>we,CE:()=>ze,Cl:()=>ee,Di:()=>Qe,Ej:()=>G,Er:()=>Se,Fv:()=>L,H4:()=>$,Hs:()=>Oe,Ij:()=>D,Iv:()=>w,L9:()=>H,Ln:()=>De,Mc:()=>et,OK:()=>Q,Oq:()=>M,PG:()=>P,Pl:()=>Ne,Q2:()=>b,QX:()=>X,TT:()=>$e,Tf:()=>je,Tr:()=>Y,U2:()=>_e,U3:()=>O,WU:()=>Be,Wt:()=>fe,X7:()=>se,XD:()=>Z,Xc:()=>I,ZF:()=>S,a:()=>re,a4:()=>qe,b2:()=>N,bo:()=>He,bq:()=>ie,cL:()=>z,fg:()=>V,fs:()=>Le,fz:()=>oe,gI:()=>Ye,h:()=>Je,i0:()=>Ge,jD:()=>We,jG:()=>te,jh:()=>ce,ko:()=>k,kx:()=>ye,li:()=>he,mU:()=>K,nR:()=>ne,nY:()=>Ee,pN:()=>Xe,q3:()=>R,sb:()=>Ce,sd:()=>Re,tG:()=>B,vT:()=>Ve,w5:()=>Ae,w_:()=>T,wk:()=>xe,xZ:()=>be,y6:()=>q,yt:()=>Ke,zK:()=>Te,zk:()=>_});var s=i(60413),n=i(55089),r=i(72962),o=i(47358),a=i(90766),c=i(64383),l=i(41234),h=i(83750),d=i(5662),u=i(36456),g=i(98067),p=i(85600),m=i(25893);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:C,getWindowsCount:E,getWindowId:b,getWindowById:S,hasWindow:y,onDidRegisterWindow:w,onWillUnregisterWindow:R,onDidUnregisterWindow:L}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new d.Cm};e.set(m.G.vscodeWindowId,t);const i=new l.vl,s=new l.vl,n=new l.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:s.event,registerWindow(t){if(e.has(t.vscodeWindowId))return d.jG.None;const r=new d.Cm,o={window:t,disposables:r.add(new d.Cm)};return e.set(t.vscodeWindowId,o),r.add((0,d.s)((()=>{e.delete(t.vscodeWindowId),s.fire(t)}))),r.add(k(t,we.BEFORE_UNLOAD,(()=>{n.fire(t)}))),i.fire(o),r},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,s){return("number"===typeof i?e.get(i):void 0)??(s?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:m.G},getDocument:e=>_(e).document}}();function T(e){for(;e.firstChild;)e.firstChild.remove()}class x{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!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 k(e,t,i,s){return new x(e,t,i,s)}function A(e,t){return function(i){return t(new o.P(e,i))}}const N=function(e,t,i,s){let n=i;return"click"===t||"mousedown"===t||"contextmenu"===t?n=A(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(n=function(e){return function(t){return e(new r.Z(t))}}(i)),k(e,t,n,s)},I=function(e,t,i){return function(e,t,i){return k(e,g.un&&n.e.pointerEvents?we.POINTER_DOWN:we.MOUSE_DOWN,t,i)}(e,A(_(e),t),i)};function O(e,t,i){return(0,a.b7)(e,t,i)}class D extends a.A0{constructor(e,t){super(e,t)}}let M,P;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class U{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,c.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function H(e){return _(e).getComputedStyle(e,null)}function B(e,t){const i=_(e),s=i.document;if(e!==s.body)return new V(e.clientWidth,e.clientHeight);if(g.un&&i?.visualViewport)return new V(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new V(i.innerWidth,i.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new V(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new V(s.documentElement.clientWidth,s.documentElement.clientHeight);if(t)return B(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,s=new Map;P=(n,r,o=0)=>{const a=b(n),c=new U(r,o);let l=e.get(a);return l||(l=[],e.set(a,l)),l.push(c),i.get(a)||(i.set(a,!0),n.requestAnimationFrame((()=>(n=>{i.set(n,!1);const r=e.get(n)??[];for(t.set(n,r),e.set(n,[]),s.set(n,!0);r.length>0;)r.sort(U.sort),r.shift().execute();s.set(n,!1)})(a)))),c},M=(e,i,n)=>{const r=b(e);if(s.get(r)){const e=new U(i,n);let s=t.get(r);return s||(s=[],t.set(r,s)),s.push(e),e}return P(e,i,n)}}();class W{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const s=H(e),n=s?s.getPropertyValue(t):"0";return W.convertToPixels(e,n)}static getBorderLeftWidth(e){return W.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return W.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return W.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return W.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return W.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return W.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return W.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return W.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return W.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return W.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return W.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return W.getDimension(e,"margin-bottom","marginBottom")}}class V{static{this.None=new V(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new V(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof V?e:new V(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function z(e){let t=e.offsetParent,i=e.offsetTop,s=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const n=J(e)?null:H(e);n&&(s-="rtl"!==n.direction?e.scrollLeft:-e.scrollLeft),e===t&&(s+=W.getBorderLeftWidth(e),i+=W.getBorderTopWidth(e),i+=e.offsetTop,s+=e.offsetLeft,t=e.offsetParent)}return{left:s,top:i}}function G(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function j(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function K(e){let t=e,i=1;do{const e=H(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Y(e){const t=W.getMarginLeft(e)+W.getMarginRight(e);return e.offsetWidth+t}function q(e){const t=W.getBorderLeftWidth(e)+W.getBorderRightWidth(e),i=W.getPaddingLeft(e)+W.getPaddingRight(e);return e.offsetWidth-t-i}function $(e){const t=W.getBorderTopWidth(e)+W.getBorderBottomWidth(e),i=W.getPaddingTop(e)+W.getPaddingBottom(e);return e.offsetHeight-t-i}function Q(e){const t=W.getMarginTop(e)+W.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(t?.contains(e))}function Z(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=re().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function se(e){return ie()===e}function ne(e){return X(ie(),e)}function re(){if(E()<=1)return m.G.document;return Array.from(C()).map((({window:e})=>e.document)).find((e=>e.hasFocus()))??m.G.document}function oe(){const e=re();return e.defaultView?.window??m.G}const ae=new Map;function ce(){return new le}class le{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(e=m.G.document.head,t,i){const s=document.createElement("style");if(s.type="text/css",s.media="screen",t?.(s),e.appendChild(s),i&&i.add((0,d.s)((()=>s.remove()))),e===m.G.document.head){const e=new Set;ae.set(s,e);for(const{window:t,disposables:n}of C()){if(t===m.G)continue;const r=n.add(de(s,e,t));i?.add(r)}}return s}function de(e,t,i){const s=new d.Cm,n=e.cloneNode(!0);i.document.head.appendChild(n),s.add((0,d.s)((()=>n.remove())));for(const r of me(e))n.sheet?.insertRule(r.cssText,n.sheet?.cssRules.length);return s.add(ue.observe(e,s,{childList:!0})((()=>{n.textContent=e.textContent}))),t.add(n),s.add((0,d.s)((()=>t.delete(n)))),s}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let s=this.mutationObservers.get(e);s||(s=new Map,this.mutationObservers.set(e,s));const n=(0,p.tW)(i);let r=s.get(n);if(r)r.users+=1;else{const o=new l.vl,a=new MutationObserver((e=>o.fire(e)));a.observe(e,i);const c=r={users:1,observer:a,onDidMutate:o.event};t.add((0,d.s)((()=>{c.users-=1,0===c.users&&(o.dispose(),a.disconnect(),s?.delete(n),0===s?.size&&this.mutationObservers.delete(e))}))),s.set(n,r)}return r.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function fe(e,t,i=pe()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const s of ae.get(i)??[])fe(e,t,s)}}function _e(e,t=pe()){if(!t)return;const i=me(t),s=[];for(let n=0;n<i.length;n++){const t=i[n];ve(t)&&-1!==t.selectorText.indexOf(e)&&s.push(n)}for(let n=s.length-1;n>=0;n--)t.sheet?.deleteRule(s[n]);for(const n of ae.get(t)??[])_e(e,n)}function ve(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof HTMLElement||e instanceof _(e).HTMLElement}function Ee(e){return e instanceof HTMLAnchorElement||e instanceof _(e).HTMLAnchorElement}function be(e){return e instanceof SVGElement||e instanceof _(e).SVGElement}function Se(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function ye(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const we={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",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:s.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:s.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:s.Tc?"webkitAnimationIteration":"animationiteration"};function Re(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Le={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Te(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(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 ke extends d.jG{static hasFocusWithin(e){if(Ce(e)){const t=te(e);return X(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new l.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const s=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},n=()=>{t&&(i=!0,(Ce(e)?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?n():s())},this._register(k(e,we.FOCUS,s,!0)),this._register(k(e,we.BLUR,n,!0)),Ce(e)&&(this._register(k(e,we.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(k(e,we.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Ae(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ie(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Oe(e,t){return e.insertBefore(t,e.firstChild),t}function De(e,...t){e.innerText="",Ie(e,...t)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Pe;function Fe(e,t,i,...s){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const r=n[1]||"div";let o;return o=e!==Pe.HTML?document.createElementNS(e,r):document.createElement(r),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))})),o.append(...s),o}function Ue(e,t,...i){return Fe(Pe.HTML,e,t,...i)}function He(e,...t){e?Be(...t):We(...t)}function Be(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function We(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){m.G.open(e,"_blank","noopener")}function Ge(e,t){const i=()=>{t(),s=P(e,i)};let s=P(e,i);return(0,d.s)((()=>s.dispose()))}function je(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Ke(e){return`'${e.replace(/'/g,"%27")}'`}function Ye(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ye(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function qe(e,t=!1){const i=document.createElement("a");return h.$w("afterSanitizeAttributes",(s=>{for(const n of["href","src"])if(s.hasAttribute(n)){const r=s.getAttribute(n);if("href"===n&&r.startsWith("#"))continue;if(i.href=r,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===n&&i.href.startsWith("data:"))continue;s.removeAttribute(n)}}})),(0,d.s)((()=>{h.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Pe||(Pe={})),Ue.SVG=function(e,t,...i){return Fe(Pe.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const $e=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends l.vl{constructor(){super(),this._subscriptions=new d.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(l.Jh.runAndSubscribe(w,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(k(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new r.Z(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(k(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(k(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(k(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 Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Xe extends d.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(k(this.element,we.DRAG_START,(e=>{this.callbacks.onDragStart?.(e)}))),this.callbacks.onDrag&&this._register(k(this.element,we.DRAG,(e=>{this.callbacks.onDrag?.(e)}))),this._register(k(this.element,we.DRAG_ENTER,(e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)}))),this._register(k(this.element,we.DRAG_OVER,(e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)}))),this._register(k(this.element,we.DRAG_LEAVE,(e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))}))),this._register(k(this.element,we.DRAG_END,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)}))),this._register(k(this.element,we.DROP,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)})))}}const Ze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Je(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElement(r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function et(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElementNS("http://www.w3.org/2000/svg",r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function tt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},8603:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.OBJECT_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.OBJECT_END):t.drawCompactView(a,i)?(r+=t.OBJECT_START,r+=s(o,i,n-1),r+=t.OBJECT_END):r+=t.OBJECT_START+t.OBJECT_END,r}}},8868:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2994).then(i.bind(i,2994))})},8964:(e,t,i)=>{"use strict";i.d(t,{R:()=>a,J:()=>o});var s=i(1448);const n=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),r=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),o=new s.TH;o.registerKeysets("en",n),o.registerKeysets("ru",r);const a=o.i18n.bind(o)},8995:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});class s{static{this.sep="."}static{this.None=new s("@@none@@")}static{this.Empty=new s("")}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+s.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new s((this.value?[this.value,...e]:e).join(s.sep))}}},9208:(e,t,i)=>{e.exports=i(8603)},9270:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(8597),n=i(52776),r=i(5662),o=i(98031),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=s.$;let h=class extends r.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this.actions=[],this._hasContent=!1,this.hoverElement=l("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=s.BC(this.hoverElement,l("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;this._hasContent=!0;const s=this._register(n.jQ.render(this.actionsElement,e,i));return this.actions.push(s),s}append(e){const t=s.BC(this.actionsElement,e);return this._hasContent=!0,t}};h=a([c(0,o.b)],h)},9711:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>_,LP:()=>m});var s,n,r=i(41234),o=i(5662),a=i(631),c=i(90766),l=i(908);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(n||(n={}));class h extends o.jG{static{this.DEFAULT_FLUSH_DELAY=100}constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=this._register(new c.Th(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){this._onDidChangeStorage.pause();try{e.changed?.forEach(((e,t)=>this.acceptExternal(t,e))),e.deleted?.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===n.Closed)return;let i=!1;if((0,a.z)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===n.Closed)return;if((0,a.z)(t))return this.delete(e,i);const s=(0,a.Gv)(t)||Array.isArray(t)?(0,l.As)(t):String(t);return this.cache.get(e)!==s?(this.cache.set(e,s),this.pendingInserts.set(e,s),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===n.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()}))}async doFlush(e){return this.options.hint===s.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}class d{constructor(){this.onDidChangeItemsExternal=r.Jh.None,this.items=new Map}async updateItems(e){e.insert?.forEach(((e,t)=>this.items.set(t,e))),e.delete?.forEach((e=>this.items.delete(e)))}}var u=i(63591);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends o.jG{static{this.DEFAULT_FLUSH_INTERVAL=6e4}constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.fV),this._onDidChangeTarget=this._register(new r.fV),this._onWillSaveState=this._register(new r.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:s}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:s})}get(e,t,i){return this.getStorage(t)?.get(e,i)}getBoolean(e,t,i){return this.getStorage(t)?.getBoolean(e,i)}getNumber(e,t,i){return this.getStorage(t)?.getNumber(e,i)}store(e,t,i,s,n=!1){(0,a.z)(t)?this.remove(e,i,n):this.withPausedEmitters((()=>{this.updateKeyTarget(e,i,s),this.getStorage(i)?.set(e,t,n)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{this.updateKeyTarget(e,t,void 0),this.getStorage(t)?.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,s=!1){const n=this.getKeyTargets(t);"number"===typeof i?n[e]!==i&&(n[e]=i,this.getStorage(t)?.set(g,JSON.stringify(n),s)):"number"===typeof n[e]&&(delete n[e],this.getStorage(t)?.set(g,JSON.stringify(n),s))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>S,nM:()=>b});var s,n=i(90766),r=i(47661),o=i(64383),a=i(41234),c=i(5662),l=i(78381),h=i(91508),d=i(37734),u=i(31450),g=i(36677),p=i(87289),m=i(32500),f=i(56942),_=i(68310),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=Object.create({});let S=class extends c.jG{static{s=this}static{this.ID="editor.contrib.colorDetector"}static{this.RECOMPUTE_TIME=1e3}constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new c.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d.Qn(this._editor),this._decoratorLimitReporter=new y,this._colorDecorationClassRefs=this._register(new c.Cm),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:s.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),s=e.hasChanged(148);(i||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new n.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,n.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new l.W(!1),s=await(0,_.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),s}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,o.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let n=0;n<e.length&&t.length<i;n++){const{red:i,green:s,blue:o,alpha:a}=e[n].colorInfo.color,c=new r.bU(Math.round(255*i),Math.round(255*s),Math.round(255*o),a),l=`rgba(${c.r}, ${c.g}, ${c.b}, ${c.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:l}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.S8,inlineClassName:`${d.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:b}}})}const s=i<e.length&&i;this._decoratorLimitReporter.update(e.length,s),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};S=s=C([E(1,v.pG),E(2,f.ILanguageFeaturesService),E(3,m.ILanguageFeatureDebounceService)],S);class y{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(S.ID,S,1)},9948:(e,t,i)=>{"use strict";i.d(t,{I:()=>f});var s=i(8597),n=i(90766),r=i(10350),o=i(5662),a=i(91508),c=i(25689),l=i(36677),h=i(87289),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=h.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends o.jG{static{this.baseId="editor.widget.inlineProgressWidget"}constructor(e,t,i,s,n){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=s.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=s.$("span.icon");this.domNode.append(t),t.classList.add(...c.L.asClassNameArray(r.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(s.ko(this.domNode,s.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}let f=class extends o.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new o.HE),this._currentWidget=this._register(new o.HE),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=(0,n.EQ)((()=>{const i=l.Q.fromPositions(e);this._currentDecorations.set([{range:i,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,i,t,s))}),r??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,d._Y)],f)},10072:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(1278).then(i.bind(i,11278))})},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>n,PI:()=>a,V0:()=>d,aI:()=>h,co:()=>l,kT:()=>u,ol:()=>r});var s=i(631);function n(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?n(i):i})),t}function r(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(o.call(e,i)){const n=e[i];"object"!==typeof n||Object.isFrozen(n)||(0,s.iu)(n)||t.push(n)}}return e}const o=Object.prototype.hasOwnProperty;function a(e,t){return c(e,t,new Set)}function c(e,t,i){if((0,s.z)(e))return e;const n=t(e);if("undefined"!==typeof n)return n;if(Array.isArray(e)){const s=[];for(const n of e)s.push(c(n,t,i));return s}if((0,s.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const s={};for(const n in e)o.call(e,n)&&(s[n]=c(e[n],t,i));return i.delete(e),s}return e}function l(e,t,i=!0){return(0,s.Gv)(e)?((0,s.Gv)(t)&&Object.keys(t).forEach((n=>{n in e?i&&((0,s.Gv)(e[n])&&(0,s.Gv)(t[n])?l(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const n=[];for(s in e)n.push(s);n.sort();const r=[];for(s in t)r.push(s);if(r.sort(),!h(n,r))return!1;for(i=0;i<n.length;i++)if(!h(e[n[i]],t[n[i]]))return!1}return!0}function d(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const n of e)s[n]=i(n);return s}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},10350:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});var s=i(18956);const n={...{add:(0,s.k)("add",6e4),plus:(0,s.k)("plus",6e4),gistNew:(0,s.k)("gist-new",6e4),repoCreate:(0,s.k)("repo-create",6e4),lightbulb:(0,s.k)("lightbulb",60001),lightBulb:(0,s.k)("light-bulb",60001),repo:(0,s.k)("repo",60002),repoDelete:(0,s.k)("repo-delete",60002),gistFork:(0,s.k)("gist-fork",60003),repoForked:(0,s.k)("repo-forked",60003),gitPullRequest:(0,s.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,s.k)("git-pull-request-abandoned",60004),recordKeys:(0,s.k)("record-keys",60005),keyboard:(0,s.k)("keyboard",60005),tag:(0,s.k)("tag",60006),gitPullRequestLabel:(0,s.k)("git-pull-request-label",60006),tagAdd:(0,s.k)("tag-add",60006),tagRemove:(0,s.k)("tag-remove",60006),person:(0,s.k)("person",60007),personFollow:(0,s.k)("person-follow",60007),personOutline:(0,s.k)("person-outline",60007),personFilled:(0,s.k)("person-filled",60007),gitBranch:(0,s.k)("git-branch",60008),gitBranchCreate:(0,s.k)("git-branch-create",60008),gitBranchDelete:(0,s.k)("git-branch-delete",60008),sourceControl:(0,s.k)("source-control",60008),mirror:(0,s.k)("mirror",60009),mirrorPublic:(0,s.k)("mirror-public",60009),star:(0,s.k)("star",60010),starAdd:(0,s.k)("star-add",60010),starDelete:(0,s.k)("star-delete",60010),starEmpty:(0,s.k)("star-empty",60010),comment:(0,s.k)("comment",60011),commentAdd:(0,s.k)("comment-add",60011),alert:(0,s.k)("alert",60012),warning:(0,s.k)("warning",60012),search:(0,s.k)("search",60013),searchSave:(0,s.k)("search-save",60013),logOut:(0,s.k)("log-out",60014),signOut:(0,s.k)("sign-out",60014),logIn:(0,s.k)("log-in",60015),signIn:(0,s.k)("sign-in",60015),eye:(0,s.k)("eye",60016),eyeUnwatch:(0,s.k)("eye-unwatch",60016),eyeWatch:(0,s.k)("eye-watch",60016),circleFilled:(0,s.k)("circle-filled",60017),primitiveDot:(0,s.k)("primitive-dot",60017),closeDirty:(0,s.k)("close-dirty",60017),debugBreakpoint:(0,s.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,s.k)("debug-breakpoint-disabled",60017),debugHint:(0,s.k)("debug-hint",60017),terminalDecorationSuccess:(0,s.k)("terminal-decoration-success",60017),primitiveSquare:(0,s.k)("primitive-square",60018),edit:(0,s.k)("edit",60019),pencil:(0,s.k)("pencil",60019),info:(0,s.k)("info",60020),issueOpened:(0,s.k)("issue-opened",60020),gistPrivate:(0,s.k)("gist-private",60021),gitForkPrivate:(0,s.k)("git-fork-private",60021),lock:(0,s.k)("lock",60021),mirrorPrivate:(0,s.k)("mirror-private",60021),close:(0,s.k)("close",60022),removeClose:(0,s.k)("remove-close",60022),x:(0,s.k)("x",60022),repoSync:(0,s.k)("repo-sync",60023),sync:(0,s.k)("sync",60023),clone:(0,s.k)("clone",60024),desktopDownload:(0,s.k)("desktop-download",60024),beaker:(0,s.k)("beaker",60025),microscope:(0,s.k)("microscope",60025),vm:(0,s.k)("vm",60026),deviceDesktop:(0,s.k)("device-desktop",60026),file:(0,s.k)("file",60027),fileText:(0,s.k)("file-text",60027),more:(0,s.k)("more",60028),ellipsis:(0,s.k)("ellipsis",60028),kebabHorizontal:(0,s.k)("kebab-horizontal",60028),mailReply:(0,s.k)("mail-reply",60029),reply:(0,s.k)("reply",60029),organization:(0,s.k)("organization",60030),organizationFilled:(0,s.k)("organization-filled",60030),organizationOutline:(0,s.k)("organization-outline",60030),newFile:(0,s.k)("new-file",60031),fileAdd:(0,s.k)("file-add",60031),newFolder:(0,s.k)("new-folder",60032),fileDirectoryCreate:(0,s.k)("file-directory-create",60032),trash:(0,s.k)("trash",60033),trashcan:(0,s.k)("trashcan",60033),history:(0,s.k)("history",60034),clock:(0,s.k)("clock",60034),folder:(0,s.k)("folder",60035),fileDirectory:(0,s.k)("file-directory",60035),symbolFolder:(0,s.k)("symbol-folder",60035),logoGithub:(0,s.k)("logo-github",60036),markGithub:(0,s.k)("mark-github",60036),github:(0,s.k)("github",60036),terminal:(0,s.k)("terminal",60037),console:(0,s.k)("console",60037),repl:(0,s.k)("repl",60037),zap:(0,s.k)("zap",60038),symbolEvent:(0,s.k)("symbol-event",60038),error:(0,s.k)("error",60039),stop:(0,s.k)("stop",60039),variable:(0,s.k)("variable",60040),symbolVariable:(0,s.k)("symbol-variable",60040),array:(0,s.k)("array",60042),symbolArray:(0,s.k)("symbol-array",60042),symbolModule:(0,s.k)("symbol-module",60043),symbolPackage:(0,s.k)("symbol-package",60043),symbolNamespace:(0,s.k)("symbol-namespace",60043),symbolObject:(0,s.k)("symbol-object",60043),symbolMethod:(0,s.k)("symbol-method",60044),symbolFunction:(0,s.k)("symbol-function",60044),symbolConstructor:(0,s.k)("symbol-constructor",60044),symbolBoolean:(0,s.k)("symbol-boolean",60047),symbolNull:(0,s.k)("symbol-null",60047),symbolNumeric:(0,s.k)("symbol-numeric",60048),symbolNumber:(0,s.k)("symbol-number",60048),symbolStructure:(0,s.k)("symbol-structure",60049),symbolStruct:(0,s.k)("symbol-struct",60049),symbolParameter:(0,s.k)("symbol-parameter",60050),symbolTypeParameter:(0,s.k)("symbol-type-parameter",60050),symbolKey:(0,s.k)("symbol-key",60051),symbolText:(0,s.k)("symbol-text",60051),symbolReference:(0,s.k)("symbol-reference",60052),goToFile:(0,s.k)("go-to-file",60052),symbolEnum:(0,s.k)("symbol-enum",60053),symbolValue:(0,s.k)("symbol-value",60053),symbolRuler:(0,s.k)("symbol-ruler",60054),symbolUnit:(0,s.k)("symbol-unit",60054),activateBreakpoints:(0,s.k)("activate-breakpoints",60055),archive:(0,s.k)("archive",60056),arrowBoth:(0,s.k)("arrow-both",60057),arrowDown:(0,s.k)("arrow-down",60058),arrowLeft:(0,s.k)("arrow-left",60059),arrowRight:(0,s.k)("arrow-right",60060),arrowSmallDown:(0,s.k)("arrow-small-down",60061),arrowSmallLeft:(0,s.k)("arrow-small-left",60062),arrowSmallRight:(0,s.k)("arrow-small-right",60063),arrowSmallUp:(0,s.k)("arrow-small-up",60064),arrowUp:(0,s.k)("arrow-up",60065),bell:(0,s.k)("bell",60066),bold:(0,s.k)("bold",60067),book:(0,s.k)("book",60068),bookmark:(0,s.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,s.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,s.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,s.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,s.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,s.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,s.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,s.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,s.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,s.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,s.k)("briefcase",60076),broadcast:(0,s.k)("broadcast",60077),browser:(0,s.k)("browser",60078),bug:(0,s.k)("bug",60079),calendar:(0,s.k)("calendar",60080),caseSensitive:(0,s.k)("case-sensitive",60081),check:(0,s.k)("check",60082),checklist:(0,s.k)("checklist",60083),chevronDown:(0,s.k)("chevron-down",60084),chevronLeft:(0,s.k)("chevron-left",60085),chevronRight:(0,s.k)("chevron-right",60086),chevronUp:(0,s.k)("chevron-up",60087),chromeClose:(0,s.k)("chrome-close",60088),chromeMaximize:(0,s.k)("chrome-maximize",60089),chromeMinimize:(0,s.k)("chrome-minimize",60090),chromeRestore:(0,s.k)("chrome-restore",60091),circleOutline:(0,s.k)("circle-outline",60092),circle:(0,s.k)("circle",60092),debugBreakpointUnverified:(0,s.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,s.k)("terminal-decoration-incomplete",60092),circleSlash:(0,s.k)("circle-slash",60093),circuitBoard:(0,s.k)("circuit-board",60094),clearAll:(0,s.k)("clear-all",60095),clippy:(0,s.k)("clippy",60096),closeAll:(0,s.k)("close-all",60097),cloudDownload:(0,s.k)("cloud-download",60098),cloudUpload:(0,s.k)("cloud-upload",60099),code:(0,s.k)("code",60100),collapseAll:(0,s.k)("collapse-all",60101),colorMode:(0,s.k)("color-mode",60102),commentDiscussion:(0,s.k)("comment-discussion",60103),creditCard:(0,s.k)("credit-card",60105),dash:(0,s.k)("dash",60108),dashboard:(0,s.k)("dashboard",60109),database:(0,s.k)("database",60110),debugContinue:(0,s.k)("debug-continue",60111),debugDisconnect:(0,s.k)("debug-disconnect",60112),debugPause:(0,s.k)("debug-pause",60113),debugRestart:(0,s.k)("debug-restart",60114),debugStart:(0,s.k)("debug-start",60115),debugStepInto:(0,s.k)("debug-step-into",60116),debugStepOut:(0,s.k)("debug-step-out",60117),debugStepOver:(0,s.k)("debug-step-over",60118),debugStop:(0,s.k)("debug-stop",60119),debug:(0,s.k)("debug",60120),deviceCameraVideo:(0,s.k)("device-camera-video",60121),deviceCamera:(0,s.k)("device-camera",60122),deviceMobile:(0,s.k)("device-mobile",60123),diffAdded:(0,s.k)("diff-added",60124),diffIgnored:(0,s.k)("diff-ignored",60125),diffModified:(0,s.k)("diff-modified",60126),diffRemoved:(0,s.k)("diff-removed",60127),diffRenamed:(0,s.k)("diff-renamed",60128),diff:(0,s.k)("diff",60129),diffSidebyside:(0,s.k)("diff-sidebyside",60129),discard:(0,s.k)("discard",60130),editorLayout:(0,s.k)("editor-layout",60131),emptyWindow:(0,s.k)("empty-window",60132),exclude:(0,s.k)("exclude",60133),extensions:(0,s.k)("extensions",60134),eyeClosed:(0,s.k)("eye-closed",60135),fileBinary:(0,s.k)("file-binary",60136),fileCode:(0,s.k)("file-code",60137),fileMedia:(0,s.k)("file-media",60138),filePdf:(0,s.k)("file-pdf",60139),fileSubmodule:(0,s.k)("file-submodule",60140),fileSymlinkDirectory:(0,s.k)("file-symlink-directory",60141),fileSymlinkFile:(0,s.k)("file-symlink-file",60142),fileZip:(0,s.k)("file-zip",60143),files:(0,s.k)("files",60144),filter:(0,s.k)("filter",60145),flame:(0,s.k)("flame",60146),foldDown:(0,s.k)("fold-down",60147),foldUp:(0,s.k)("fold-up",60148),fold:(0,s.k)("fold",60149),folderActive:(0,s.k)("folder-active",60150),folderOpened:(0,s.k)("folder-opened",60151),gear:(0,s.k)("gear",60152),gift:(0,s.k)("gift",60153),gistSecret:(0,s.k)("gist-secret",60154),gist:(0,s.k)("gist",60155),gitCommit:(0,s.k)("git-commit",60156),gitCompare:(0,s.k)("git-compare",60157),compareChanges:(0,s.k)("compare-changes",60157),gitMerge:(0,s.k)("git-merge",60158),githubAction:(0,s.k)("github-action",60159),githubAlt:(0,s.k)("github-alt",60160),globe:(0,s.k)("globe",60161),grabber:(0,s.k)("grabber",60162),graph:(0,s.k)("graph",60163),gripper:(0,s.k)("gripper",60164),heart:(0,s.k)("heart",60165),home:(0,s.k)("home",60166),horizontalRule:(0,s.k)("horizontal-rule",60167),hubot:(0,s.k)("hubot",60168),inbox:(0,s.k)("inbox",60169),issueReopened:(0,s.k)("issue-reopened",60171),issues:(0,s.k)("issues",60172),italic:(0,s.k)("italic",60173),jersey:(0,s.k)("jersey",60174),json:(0,s.k)("json",60175),kebabVertical:(0,s.k)("kebab-vertical",60176),key:(0,s.k)("key",60177),law:(0,s.k)("law",60178),lightbulbAutofix:(0,s.k)("lightbulb-autofix",60179),linkExternal:(0,s.k)("link-external",60180),link:(0,s.k)("link",60181),listOrdered:(0,s.k)("list-ordered",60182),listUnordered:(0,s.k)("list-unordered",60183),liveShare:(0,s.k)("live-share",60184),loading:(0,s.k)("loading",60185),location:(0,s.k)("location",60186),mailRead:(0,s.k)("mail-read",60187),mail:(0,s.k)("mail",60188),markdown:(0,s.k)("markdown",60189),megaphone:(0,s.k)("megaphone",60190),mention:(0,s.k)("mention",60191),milestone:(0,s.k)("milestone",60192),gitPullRequestMilestone:(0,s.k)("git-pull-request-milestone",60192),mortarBoard:(0,s.k)("mortar-board",60193),move:(0,s.k)("move",60194),multipleWindows:(0,s.k)("multiple-windows",60195),mute:(0,s.k)("mute",60196),noNewline:(0,s.k)("no-newline",60197),note:(0,s.k)("note",60198),octoface:(0,s.k)("octoface",60199),openPreview:(0,s.k)("open-preview",60200),package:(0,s.k)("package",60201),paintcan:(0,s.k)("paintcan",60202),pin:(0,s.k)("pin",60203),play:(0,s.k)("play",60204),run:(0,s.k)("run",60204),plug:(0,s.k)("plug",60205),preserveCase:(0,s.k)("preserve-case",60206),preview:(0,s.k)("preview",60207),project:(0,s.k)("project",60208),pulse:(0,s.k)("pulse",60209),question:(0,s.k)("question",60210),quote:(0,s.k)("quote",60211),radioTower:(0,s.k)("radio-tower",60212),reactions:(0,s.k)("reactions",60213),references:(0,s.k)("references",60214),refresh:(0,s.k)("refresh",60215),regex:(0,s.k)("regex",60216),remoteExplorer:(0,s.k)("remote-explorer",60217),remote:(0,s.k)("remote",60218),remove:(0,s.k)("remove",60219),replaceAll:(0,s.k)("replace-all",60220),replace:(0,s.k)("replace",60221),repoClone:(0,s.k)("repo-clone",60222),repoForcePush:(0,s.k)("repo-force-push",60223),repoPull:(0,s.k)("repo-pull",60224),repoPush:(0,s.k)("repo-push",60225),report:(0,s.k)("report",60226),requestChanges:(0,s.k)("request-changes",60227),rocket:(0,s.k)("rocket",60228),rootFolderOpened:(0,s.k)("root-folder-opened",60229),rootFolder:(0,s.k)("root-folder",60230),rss:(0,s.k)("rss",60231),ruby:(0,s.k)("ruby",60232),saveAll:(0,s.k)("save-all",60233),saveAs:(0,s.k)("save-as",60234),save:(0,s.k)("save",60235),screenFull:(0,s.k)("screen-full",60236),screenNormal:(0,s.k)("screen-normal",60237),searchStop:(0,s.k)("search-stop",60238),server:(0,s.k)("server",60240),settingsGear:(0,s.k)("settings-gear",60241),settings:(0,s.k)("settings",60242),shield:(0,s.k)("shield",60243),smiley:(0,s.k)("smiley",60244),sortPrecedence:(0,s.k)("sort-precedence",60245),splitHorizontal:(0,s.k)("split-horizontal",60246),splitVertical:(0,s.k)("split-vertical",60247),squirrel:(0,s.k)("squirrel",60248),starFull:(0,s.k)("star-full",60249),starHalf:(0,s.k)("star-half",60250),symbolClass:(0,s.k)("symbol-class",60251),symbolColor:(0,s.k)("symbol-color",60252),symbolConstant:(0,s.k)("symbol-constant",60253),symbolEnumMember:(0,s.k)("symbol-enum-member",60254),symbolField:(0,s.k)("symbol-field",60255),symbolFile:(0,s.k)("symbol-file",60256),symbolInterface:(0,s.k)("symbol-interface",60257),symbolKeyword:(0,s.k)("symbol-keyword",60258),symbolMisc:(0,s.k)("symbol-misc",60259),symbolOperator:(0,s.k)("symbol-operator",60260),symbolProperty:(0,s.k)("symbol-property",60261),wrench:(0,s.k)("wrench",60261),wrenchSubaction:(0,s.k)("wrench-subaction",60261),symbolSnippet:(0,s.k)("symbol-snippet",60262),tasklist:(0,s.k)("tasklist",60263),telescope:(0,s.k)("telescope",60264),textSize:(0,s.k)("text-size",60265),threeBars:(0,s.k)("three-bars",60266),thumbsdown:(0,s.k)("thumbsdown",60267),thumbsup:(0,s.k)("thumbsup",60268),tools:(0,s.k)("tools",60269),triangleDown:(0,s.k)("triangle-down",60270),triangleLeft:(0,s.k)("triangle-left",60271),triangleRight:(0,s.k)("triangle-right",60272),triangleUp:(0,s.k)("triangle-up",60273),twitter:(0,s.k)("twitter",60274),unfold:(0,s.k)("unfold",60275),unlock:(0,s.k)("unlock",60276),unmute:(0,s.k)("unmute",60277),unverified:(0,s.k)("unverified",60278),verified:(0,s.k)("verified",60279),versions:(0,s.k)("versions",60280),vmActive:(0,s.k)("vm-active",60281),vmOutline:(0,s.k)("vm-outline",60282),vmRunning:(0,s.k)("vm-running",60283),watch:(0,s.k)("watch",60284),whitespace:(0,s.k)("whitespace",60285),wholeWord:(0,s.k)("whole-word",60286),window:(0,s.k)("window",60287),wordWrap:(0,s.k)("word-wrap",60288),zoomIn:(0,s.k)("zoom-in",60289),zoomOut:(0,s.k)("zoom-out",60290),listFilter:(0,s.k)("list-filter",60291),listFlat:(0,s.k)("list-flat",60292),listSelection:(0,s.k)("list-selection",60293),selection:(0,s.k)("selection",60293),listTree:(0,s.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,s.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,s.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,s.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,s.k)("debug-stackframe-active",60297),circleSmallFilled:(0,s.k)("circle-small-filled",60298),debugStackframeDot:(0,s.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,s.k)("terminal-decoration-mark",60298),debugStackframe:(0,s.k)("debug-stackframe",60299),debugStackframeFocused:(0,s.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,s.k)("debug-breakpoint-unsupported",60300),symbolString:(0,s.k)("symbol-string",60301),debugReverseContinue:(0,s.k)("debug-reverse-continue",60302),debugStepBack:(0,s.k)("debug-step-back",60303),debugRestartFrame:(0,s.k)("debug-restart-frame",60304),debugAlt:(0,s.k)("debug-alt",60305),callIncoming:(0,s.k)("call-incoming",60306),callOutgoing:(0,s.k)("call-outgoing",60307),menu:(0,s.k)("menu",60308),expandAll:(0,s.k)("expand-all",60309),feedback:(0,s.k)("feedback",60310),gitPullRequestReviewer:(0,s.k)("git-pull-request-reviewer",60310),groupByRefType:(0,s.k)("group-by-ref-type",60311),ungroupByRefType:(0,s.k)("ungroup-by-ref-type",60312),account:(0,s.k)("account",60313),gitPullRequestAssignee:(0,s.k)("git-pull-request-assignee",60313),bellDot:(0,s.k)("bell-dot",60314),debugConsole:(0,s.k)("debug-console",60315),library:(0,s.k)("library",60316),output:(0,s.k)("output",60317),runAll:(0,s.k)("run-all",60318),syncIgnored:(0,s.k)("sync-ignored",60319),pinned:(0,s.k)("pinned",60320),githubInverted:(0,s.k)("github-inverted",60321),serverProcess:(0,s.k)("server-process",60322),serverEnvironment:(0,s.k)("server-environment",60323),pass:(0,s.k)("pass",60324),issueClosed:(0,s.k)("issue-closed",60324),stopCircle:(0,s.k)("stop-circle",60325),playCircle:(0,s.k)("play-circle",60326),record:(0,s.k)("record",60327),debugAltSmall:(0,s.k)("debug-alt-small",60328),vmConnect:(0,s.k)("vm-connect",60329),cloud:(0,s.k)("cloud",60330),merge:(0,s.k)("merge",60331),export:(0,s.k)("export",60332),graphLeft:(0,s.k)("graph-left",60333),magnet:(0,s.k)("magnet",60334),notebook:(0,s.k)("notebook",60335),redo:(0,s.k)("redo",60336),checkAll:(0,s.k)("check-all",60337),pinnedDirty:(0,s.k)("pinned-dirty",60338),passFilled:(0,s.k)("pass-filled",60339),circleLargeFilled:(0,s.k)("circle-large-filled",60340),circleLarge:(0,s.k)("circle-large",60341),circleLargeOutline:(0,s.k)("circle-large-outline",60341),combine:(0,s.k)("combine",60342),gather:(0,s.k)("gather",60342),table:(0,s.k)("table",60343),variableGroup:(0,s.k)("variable-group",60344),typeHierarchy:(0,s.k)("type-hierarchy",60345),typeHierarchySub:(0,s.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,s.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,s.k)("git-pull-request-create",60348),runAbove:(0,s.k)("run-above",60349),runBelow:(0,s.k)("run-below",60350),notebookTemplate:(0,s.k)("notebook-template",60351),debugRerun:(0,s.k)("debug-rerun",60352),workspaceTrusted:(0,s.k)("workspace-trusted",60353),workspaceUntrusted:(0,s.k)("workspace-untrusted",60354),workspaceUnknown:(0,s.k)("workspace-unknown",60355),terminalCmd:(0,s.k)("terminal-cmd",60356),terminalDebian:(0,s.k)("terminal-debian",60357),terminalLinux:(0,s.k)("terminal-linux",60358),terminalPowershell:(0,s.k)("terminal-powershell",60359),terminalTmux:(0,s.k)("terminal-tmux",60360),terminalUbuntu:(0,s.k)("terminal-ubuntu",60361),terminalBash:(0,s.k)("terminal-bash",60362),arrowSwap:(0,s.k)("arrow-swap",60363),copy:(0,s.k)("copy",60364),personAdd:(0,s.k)("person-add",60365),filterFilled:(0,s.k)("filter-filled",60366),wand:(0,s.k)("wand",60367),debugLineByLine:(0,s.k)("debug-line-by-line",60368),inspect:(0,s.k)("inspect",60369),layers:(0,s.k)("layers",60370),layersDot:(0,s.k)("layers-dot",60371),layersActive:(0,s.k)("layers-active",60372),compass:(0,s.k)("compass",60373),compassDot:(0,s.k)("compass-dot",60374),compassActive:(0,s.k)("compass-active",60375),azure:(0,s.k)("azure",60376),issueDraft:(0,s.k)("issue-draft",60377),gitPullRequestClosed:(0,s.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,s.k)("git-pull-request-draft",60379),debugAll:(0,s.k)("debug-all",60380),debugCoverage:(0,s.k)("debug-coverage",60381),runErrors:(0,s.k)("run-errors",60382),folderLibrary:(0,s.k)("folder-library",60383),debugContinueSmall:(0,s.k)("debug-continue-small",60384),beakerStop:(0,s.k)("beaker-stop",60385),graphLine:(0,s.k)("graph-line",60386),graphScatter:(0,s.k)("graph-scatter",60387),pieChart:(0,s.k)("pie-chart",60388),bracket:(0,s.k)("bracket",60175),bracketDot:(0,s.k)("bracket-dot",60389),bracketError:(0,s.k)("bracket-error",60390),lockSmall:(0,s.k)("lock-small",60391),azureDevops:(0,s.k)("azure-devops",60392),verifiedFilled:(0,s.k)("verified-filled",60393),newline:(0,s.k)("newline",60394),layout:(0,s.k)("layout",60395),layoutActivitybarLeft:(0,s.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,s.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,s.k)("layout-panel-left",60398),layoutPanelCenter:(0,s.k)("layout-panel-center",60399),layoutPanelJustify:(0,s.k)("layout-panel-justify",60400),layoutPanelRight:(0,s.k)("layout-panel-right",60401),layoutPanel:(0,s.k)("layout-panel",60402),layoutSidebarLeft:(0,s.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,s.k)("layout-sidebar-right",60404),layoutStatusbar:(0,s.k)("layout-statusbar",60405),layoutMenubar:(0,s.k)("layout-menubar",60406),layoutCentered:(0,s.k)("layout-centered",60407),target:(0,s.k)("target",60408),indent:(0,s.k)("indent",60409),recordSmall:(0,s.k)("record-small",60410),errorSmall:(0,s.k)("error-small",60411),terminalDecorationError:(0,s.k)("terminal-decoration-error",60411),arrowCircleDown:(0,s.k)("arrow-circle-down",60412),arrowCircleLeft:(0,s.k)("arrow-circle-left",60413),arrowCircleRight:(0,s.k)("arrow-circle-right",60414),arrowCircleUp:(0,s.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,s.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,s.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,s.k)("layout-sidebar-left-off",60418),blank:(0,s.k)("blank",60419),heartFilled:(0,s.k)("heart-filled",60420),map:(0,s.k)("map",60421),mapHorizontal:(0,s.k)("map-horizontal",60421),foldHorizontal:(0,s.k)("fold-horizontal",60421),mapFilled:(0,s.k)("map-filled",60422),mapHorizontalFilled:(0,s.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,s.k)("fold-horizontal-filled",60422),circleSmall:(0,s.k)("circle-small",60423),bellSlash:(0,s.k)("bell-slash",60424),bellSlashDot:(0,s.k)("bell-slash-dot",60425),commentUnresolved:(0,s.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,s.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,s.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,s.k)("search-fuzzy",60429),commentDraft:(0,s.k)("comment-draft",60430),send:(0,s.k)("send",60431),sparkle:(0,s.k)("sparkle",60432),insert:(0,s.k)("insert",60433),mic:(0,s.k)("mic",60434),thumbsdownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsupFilled:(0,s.k)("thumbsup-filled",60436),coffee:(0,s.k)("coffee",60437),snake:(0,s.k)("snake",60438),game:(0,s.k)("game",60439),vr:(0,s.k)("vr",60440),chip:(0,s.k)("chip",60441),piano:(0,s.k)("piano",60442),music:(0,s.k)("music",60443),micFilled:(0,s.k)("mic-filled",60444),repoFetch:(0,s.k)("repo-fetch",60445),copilot:(0,s.k)("copilot",60446),lightbulbSparkle:(0,s.k)("lightbulb-sparkle",60447),robot:(0,s.k)("robot",60448),sparkleFilled:(0,s.k)("sparkle-filled",60449),diffSingle:(0,s.k)("diff-single",60450),diffMultiple:(0,s.k)("diff-multiple",60451),surroundWith:(0,s.k)("surround-with",60452),share:(0,s.k)("share",60453),gitStash:(0,s.k)("git-stash",60454),gitStashApply:(0,s.k)("git-stash-apply",60455),gitStashPop:(0,s.k)("git-stash-pop",60456),vscode:(0,s.k)("vscode",60457),vscodeInsiders:(0,s.k)("vscode-insiders",60458),codeOss:(0,s.k)("code-oss",60459),runCoverage:(0,s.k)("run-coverage",60460),runAllCoverage:(0,s.k)("run-all-coverage",60461),coverage:(0,s.k)("coverage",60462),githubProject:(0,s.k)("github-project",60463),mapVertical:(0,s.k)("map-vertical",60464),foldVertical:(0,s.k)("fold-vertical",60464),mapVerticalFilled:(0,s.k)("map-vertical-filled",60465),foldVerticalFilled:(0,s.k)("fold-vertical-filled",60465),goToSearch:(0,s.k)("go-to-search",60466),percentage:(0,s.k)("percentage",60467),sortPercentage:(0,s.k)("sort-percentage",60467),attach:(0,s.k)("attach",60468)},...{dialogError:(0,s.k)("dialog-error","error"),dialogWarning:(0,s.k)("dialog-warning","warning"),dialogInfo:(0,s.k)("dialog-info","info"),dialogClose:(0,s.k)("dialog-close","close"),treeItemExpanded:(0,s.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,s.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,s.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,s.k)("tree-filter-clear","close"),treeItemLoading:(0,s.k)("tree-item-loading","loading"),menuSelection:(0,s.k)("menu-selection","check"),menuSubmenu:(0,s.k)("menu-submenu","chevron-right"),menuBarMore:(0,s.k)("menubar-more","more"),scrollbarButtonLeft:(0,s.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,s.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,s.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,s.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,s.k)("toolbar-more","more"),quickInputBack:(0,s.k)("quick-input-back","arrow-left"),dropDownButton:(0,s.k)("drop-down-button",60084),symbolCustomColor:(0,s.k)("symbol-customcolor",60252),exportIcon:(0,s.k)("export",60332),workspaceUnspecified:(0,s.k)("workspace-unspecified",60355),newLine:(0,s.k)("newline",60394),thumbsDownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,s.k)("thumbsup-filled",60436),gitFetch:(0,s.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,s.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,s.k)("debug-breakpoint-pending",60377)}}},10411:(e,t,i)=>{e.exports=function(e){const t=i(83823)(e);return function(e,i,s){const n=e.$value;return t(n,i,s-1)}}},10424:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>I,nr:()=>O,Sx:()=>B,po:()=>N,tj:()=>A});var s=i(8597),n=i(60413),r=i(47661),o=i(41234),a=i(62083),c=i(25982);class l{constructor(e,t,i,s,n){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=s,this.background=n}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=r.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=-1;if("string"===typeof n.fontStyle){r=0;const e=n.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let o=null;"string"===typeof n.foreground&&(o=n.foreground);let a=null;"string"===typeof n.background&&(a=n.background),t[i++]=new l(n.token||"",s,r,o,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,s="000000",n="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(s=t.foreground),null!==t.background&&(n=t.background)}const r=new d;for(const h of t)r.getId(h);const o=r.getId(s),a=r.getId(n),c=new p(i,o,a),l=new m(c);for(let h=0,d=e.length;h<d;h++){const t=e[h];l.insert(t.token,t.fontStyle,r.getId(t.foreground),r.getId(t.background))}return new u(r,l)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),s=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,s;-1===t?(i=e,s=""):(i=e.substring(0,t),s=e.substring(t+1));const n=this._children.get(i);return"undefined"!==typeof n?n.match(s):this._mainRule}insert(e,t,i,s){if(""===e)return void this._mainRule.acceptOverwrite(t,i,s);const n=e.indexOf(".");let r,o;-1===n?(r=e,o=""):(r=e.substring(0,n),o=e.substring(n+1));let a=this._children.get(r);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,i,s)}}var f=i(87119),_=i(66261);const v={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:{[_.YtV]:"#FFFFFE",[_.By2]:"#000000",[_.tan]:"#E5EBF1",[f.vV]:"#D3D3D3",[f.H0]:"#939393",[_.QwA]:"#ADD6FF4D"}},C={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:{[_.YtV]:"#1E1E1E",[_.By2]:"#D4D4D4",[_.tan]:"#3A3D41",[f.vV]:"#404040",[f.H0]:"#707070",[_.QwA]:"#ADD6FF26"}},E={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:{[_.YtV]:"#000000",[_.By2]:"#FFFFFF",[f.vV]:"#FFFFFF",[f.H0]:"#FFFFFF"}},b={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:{[_.YtV]:"#FFFFFF",[_.By2]:"#292929",[f.vV]:"#292929",[f.H0]:"#292929"}};var S=i(46359),y=i(47612),w=i(5662),R=i(86723),L=i(25689),T=i(61394);class x{getIcon(e){const t=(0,T.HT)();let i=e.defaults;for(;L.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var k=i(25893);const A="vs",N="vs-dark",I="hc-black",O="hc-light",D=S.O.as(_.FdG.ColorContribution),M=S.O.as(y.Fd.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(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){const e=new Map;for(const t in this.themeData.colors)e.set(t,r.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=U(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,r.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=D.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case A:return R.zM.LIGHT;case I:return R.zM.HIGH_CONTRAST_DARK;case O:return R.zM.HIGH_CONTRAST_LIGHT;default:return R.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=U(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],s=this.themeData.colors["editor.background"];if(i||s){const t={token:""};i&&(t.foreground=i),s&&(t.background=s),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=c.x.getForeground(s),r=c.x.getFontStyle(s);return{foreground:n,italic:Boolean(1&r),bold:Boolean(2&r),underline:Boolean(4&r),strikethrough:Boolean(8&r)}}}function F(e){return e===A||e===N||e===I||e===O}function U(e){switch(e){case A:return v;case N:return C;case I:return E;case O:return b}}function H(e){const t=U(e);return new P(e,t)}class B extends w.jG{constructor(){super(),this._onColorThemeChange=this._register(new o.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new o.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new x,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(A,H(A)),this._knownThemes.set(N,H(N)),this._knownThemes.set(I,H(I)),this._knownThemes.set(O,H(O));const e=this._register(function(e){const t=new w.Cm,i=t.add(new o.vl),n=(0,T.HT)();return t.add(n.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new x,i={},r=[],o=[];for(const e of n.getIcons()){const n=t.getIcon(e);if(!n)continue;const a=n.font,c=`--vscode-icon-${e.id}-font-family`,l=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,o.push(`${c}: ${(0,s.yt)(a.id)};`,`${l}: '${n.fontCharacter}';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,s.yt)(a.id)}; }`)):(o.push(`${l}: '${n.fontCharacter}'; ${c}: 'codicon';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; }`))}for(const e in i){const t=i[e],n=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,s.Tf)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,s.yt)(e)};${n}${o} font-display: block; }`)}return r.push(`:root { ${o.join(" ")} }`),r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(A),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,n.Dy)(k.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return s.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=s.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),w.jG.None}_registerShadowDomContainer(e){const t=s.li(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 new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(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(A),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=k.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,R.Bb)(this._theme.type)){let t;t=(0,R.HD)(this._theme.type)?e?I:N:e?O:A,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};M.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const s=[];for(const r of D.getColors()){const e=this._theme.getColor(r.id,!0);e&&s.push(`${(0,_.Bbc)(r.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${s.join("\n")} }`);const n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,s=e.length;i<s;i++){const s=e[i];t[i]=`.mtk${i} { color: ${s}; }`}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")}(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},10602:(e,t,i)=>{e.exports=i(2539)},10617:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(31450),a=i(83069),c=i(36677),l=i(75326),h=i(60002),d=i(39286),u=i(91508);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,s),this._addWordRanges(t,e,s),this._addWhitespaceLine(t,e,s),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const s=t.getWordAtPosition(i);if(!s)return;const{word:n,startColumn:r}=s,o=i.column-r;let a=o,l=o,h=0;for(;a>=0;a--){const e=n.charCodeAt(a);if(a!==o&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(h))break;h=e}for(a+=1;l<n.length;l++){const e=n.charCodeAt(l);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<l&&e.push({range:new c.Q(i.lineNumber,r+a,i.lineNumber,r+l)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new c.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new c.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(78209),f=i(27195),_=i(50091),v=i(56942),C=i(18938),E=i(631),b=i(79400),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new w(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let R=class{static{p=this}static{this.ID="editor.contrib.smartSelectController"}static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await T(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(114),n.XO.None).then((e=>{if(s.EI(e)&&e.length===t.length&&this._editor.hasModel()&&s.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new w(0,e))),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const r=this._state.map((e=>l.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};R=p=S([y(1,v.ILanguageFeaturesService)],R);class L extends o.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=R.get(t);i&&await i.run(this._forward)}}_.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function T(e,t,i,n,o){const l=e.all(t).concat(new g(n.selectSubwords));1===l.length&&l.unshift(new d.n);const h=[],u=[];for(const a of l)h.push(Promise.resolve(a.provideSelectionRanges(t,i,o)).then((e=>{if(s.EI(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const s of e[t])c.Q.isIRange(s.range)&&c.Q.containsPosition(s.range,i[t])&&u[t].push(c.Q.lift(s.range))}}),r.M_));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let s;for(const t of e)(!s||c.Q.containsRange(t,s)&&!c.Q.equalsRange(t,s))&&(i.push(t),s=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const r=[i[0]];for(let n=1;n<i.length;n++){const e=i[n-1],s=i[n];if(s.startLineNumber!==e.startLineNumber||s.endLineNumber!==e.endLineNumber){const i=new c.Q(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&s.containsRange(i)&&!s.equalsRange(i)&&r.push(i);const n=new c.Q(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));n.containsRange(e)&&!n.equalsRange(i)&&s.containsRange(n)&&!s.equalsRange(n)&&r.push(n)}r.push(s)}return r}))}(0,o.HW)(R.ID,R,4),(0,o.Fl)(class extends L{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,o.Fl)(class extends L{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.w.registerCommand("_executeSelectionRangeProvider",(async function(e,...t){const[i,s]=t;(0,E.j)(b.r.isUri(i));const r=e.get(v.ILanguageFeaturesService).selectionRangeProvider,o=await e.get(C.ITextModelService).createModelReference(i);try{return T(r,o.object.textEditorModel,s,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},n.XO.None)}finally{o.dispose()}}))},10691:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>C,Kl:()=>d,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>m,dv:()=>h,wp:()=>E});var s=i(10350),n=i(25689),r=i(87289),o=i(78209),a=i(66261),c=i(61394);(0,a.x1A)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border","#FFA500",(0,o.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const l=(0,c.pU)("diff-insert",s.W.add,(0,o.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,c.pU)("diff-remove",s.W.remove,(0,o.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),d=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+n.L.asClassName(l),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+n.L.asClassName(h),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),C=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),E=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},10713:()=>{},10800:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},10846:(e,t,i)=>{"use strict";var s=i(18447),n=i(26690),r=i(42522),o=i(5662),a=i(80301),c=i(36677),l=i(72466),h=i(56942),d=i(51173),u=i(48116),g=i(88415),p=i(96299),m=i(14055),f=i(54770),_=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},v=function(e,t){return function(i,s){t(i,s,e)}};class C{constructor(e,t,i,s,n,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=s,this.command=n,this.completion=r}}let E=class extends o.mp{constructor(e,t,i,s,n,r){super(n.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=s,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){const e=[],{items:t}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),o=r.f.slice(t,i),a=r.f.slice(t,0,i);let l=5;for(const h of r.f.concat(o,a)){if(h.score===n.ne.Default)continue;const t=new c.Q(h.editStart.lineNumber,h.editStart.column,h.editInsertEnd.lineNumber,h.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),i=h.completion.insertTextRules&&4&h.completion.insertTextRules?{snippet:h.completion.insertText}:h.completion.insertText;e.push(new C(t,i,h.filterTextLow??h.labelLow,h.completion.additionalTextEdits,h.completion.command,h)),l-- >=0&&h.resolve(s.XO.None)}return e}};E=_([v(5,g.GS)],E);let b=class extends o.jG{constructor(e,t,i,s){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=s,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,s){if(i.selectedSuggestionInfo)return;let n;for(const c of this._editorService.listCodeEditors())if(c.getModel()===e){n=c;break}if(!n)return;const r=n.getOption(90);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const o=e.tokenization.getLineTokens(t.lineNumber),a=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,a))return;let l,h,g=e.getWordAtPosition(t);if(g?.word||(l=this._getTriggerCharacterInfo(e,t)),!g?.word&&!l)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const f=e.getValueInRange(new c.Q(t.lineNumber,1,t.lineNumber,t.column));if(!l&&this._lastResult?.canBeReused(e,t.lineNumber,g)){const e=new d.O(f,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(n).itemKind,l?.providers),l&&{triggerKind:1,triggerCharacter:l.ch},s);let r;i.needsClipboard&&(r=await this._clipboardService.readText());const o=new d.C(i.items,t.column,new d.O(f,0),m.S.None,n.getOption(119),n.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},r);h=new E(e,t.lineNumber,g,o,i,this._suggestMemoryService)}return this._lastResult=h,h}handleItemDidShow(e,t){t.completion.resolve(s.XO.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){const i=e.getValueInRange(c.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const n of this._languageFeatureService.completionProvider.all(e))n.triggerCharacters?.includes(i)&&s.add(n);if(0!==s.size)return{providers:s,ch:i}}};b=_([v(0,h.ILanguageFeaturesService),v(1,f.h),v(2,g.GS),v(3,a.T)],b),(0,l.x)(b)},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},11007:(e,t,i)=>{"use strict";i.d(t,{xE:()=>d,vr:()=>h,h5:()=>u});var s=i(8597);const n=2e4;let r,o,a,c,l;function h(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};o=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};c=i(),l=i(),e.appendChild(r)}function d(e){r&&(o.textContent!==e?(s.w_(a),g(o,e)):(s.w_(o),g(a,e)))}function u(e){r&&(c.textContent!==e?(s.w_(l),g(c,e)):(s.w_(c),g(l,e)))}function g(e,t){s.w_(e),t.length>n&&(t=t.substr(0,n)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},11272:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(225).then(i.bind(i,70225))}d.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},d.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),d.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),d.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},11799:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var s=i(8597),n=i(72962),r=i(5646),o=i(42904),a=i(36921),c=i(41234),l=i(5662),h=i(631);i(62469);class d extends l.jG{constructor(e,t={}){let i,h;switch(super(),this._actionRunnerDisposables=this._register(new l.Cm),this.viewItemDisposables=this._register(new l.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new c.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new c.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new c.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new c.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register((0,o.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:i=[15],h=[17];break;case 1:i=[16],h=[18],this.domNode.className+=" vertical"}this._register(s.ko(this.domNode,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);let s=!0;const o="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;i&&(t.equals(i[0])||t.equals(i[1]))?s=this.focusPrevious():h&&(t.equals(h[0])||t.equals(h[1]))?s=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?s=this.focusFirst():t.equals(13)?s=this.focusLast():t.equals(2)&&o instanceof r.EH&&o.trapsArrowNavigation?s=this.focusNext(void 0,!0):this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:s=!1,s&&(t.preventDefault(),t.stopPropagation())}))),this._register(s.ko(this.domNode,s.Bx.KEY_UP,(e=>{const t=new n.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(s.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{s.bq()!==this.domNode&&s.QX(s.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof r.EH&&e.isEnabled()));e instanceof r.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof r.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(s.QX(s.bq(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){if("number"===typeof e)return this.viewItems[e]?.action;if(s.sb(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=h.Et(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let o;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t,isTabList:"tablist"===this.options.ariaRole};this.options.actionViewItemProvider&&(o=this.options.actionViewItemProvider(e,a)),o||(o=new r.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(o,s.ko(i,s.Bx.CONTEXT_MENU,(e=>{s.fs.stop(e,!0)}))),o.actionRunner=this._actionRunner,o.setActionContext(this.context),o.render(i),this.focusable&&o instanceof r.EH&&0===this.viewItems.length&&o.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(o)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,o),n++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,l.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),s.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let s;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===a.wv.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;h.Tn(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.Tn(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&s.showHover?.()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof r.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,l.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>c});var s=i(90766),n=i(64383),r=i(41234),o=i(5662);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class c extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new r.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new s.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new s.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new s.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,s.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,n.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},12296:(e,t,i)=>{"use strict";function s(e,t){const i=e.getCount(),s=e.findTokenIndexAtOffset(t),r=e.getLanguageId(s);let o=s;for(;o+1<i&&e.getLanguageId(o+1)===r;)o++;let a=s;for(;a>0&&e.getLanguageId(a-1)===r;)a--;return new n(e,r,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}i.d(t,{BQ:()=>s,Yo:()=>r});class n{constructor(e,t,i,s,n,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=n,this._lastCharOffset=r,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 r(e){return 0!==(3&e)}},12437:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var s=i(6921),n=i(5662),r=i(34326),o=i(16223),a=i(87119),c=i(47612),l=i(11007);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){const s=new n.Cm;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new n.HE);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange((()=>{r.value=void 0,r.value=this.doProvide(e,t)}))),s}doProvide(e,t,i){const o=new n.Cm,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const c={editor:a},l=(0,r.jA)(a);if(l){let e=a.saveViewState()??void 0;o.add(l.onDidChangeCursorPosition((()=>{e=a.saveViewState()??void 0}))),c.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},o.add((0,s.P)(t.onCancellationRequested)((()=>c.restoreViewState?.())))}o.add((0,n.s)((()=>this.clearDecorations(a)))),o.add(this.provideWithTextEditor(c,e,t,i))}else o.add(this.provideWithoutTextEditor(e,t));return o}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,l.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){return(0,r.Np)(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,c.Yf)(a.vp),position:o.A5.Full}}}],[n,r]=e.deltaDecorations(i,s);this.rangeHighlightDecorationId={rangeHighlightId:n,overviewRulerDecorationId:r}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},12529:(e,t,i)=>{var s=i(43238),n=i(32112);e.exports=function(e,t){return t.length<2?e:s(e,n(t,0,-1))}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>v,Rl:()=>b,Yd:()=>f,ZX:()=>E,eP:()=>u,lk:()=>l,t:()=>y,y0:()=>d,yQ:()=>p});i(41234);var s=i(5662),n=i(49154),r=i(22311),o=i(87958),a=i(94958),c=i(51241);function l(e){return new h(e)}class h extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(...e){let t,i,s;return 3===e.length?[t,i,s]=e:[i,s]=e,new g(new r.nA(t,void 0,s),i,s,(()=>g.globalTransaction),c.nx)}function u(e,t,i){return new g(new r.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,(()=>g.globalTransaction),e.equalsFn??c.nx)}class g extends n.ZK{constructor(e,t,i,s,r){super(),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=s,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),i=this.value,s=!this.hasValue||!this._equalityComparator(i,t);let r=!1;s&&(this.value=t,this.hasValue&&(r=!0,(0,n.PO)(this._getTransaction(),(e=>{(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const 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(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}function p(e,t){return new m(e,t)}!function(e){e.Observer=g,e.batchEventsGlobally=function(e,t){let i=!1;void 0===g.globalTransaction&&(g.globalTransaction=e,i=!0);try{t()}finally{i&&(g.globalTransaction=void 0)}}}(d||(d={}));class m extends n.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,n.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function f(e){return"string"===typeof e?new _(e):new _(void 0,e)}class _ extends n.ZK{get debugName(){return new r.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,n.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function v(e,t){const i=new C(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,s.s)((()=>{e.removeObserver(i)}))}(0,n.FB)((function(e){const t=new C(!1,void 0);return e.addObserver(t),(0,s.s)((()=>{e.removeObserver(t)}))})),(0,n.Bm)(v);class C{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function E(e,t){let i;return(0,o.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function b(e,t,i,s){let n=new S(i,s);return(0,o.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{n.dispose(),n=new S(i)}},(e=>(n.setItems(t.read(e)),n.getItems())))}class S{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){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let r=this._cache.get(e);if(r)i.delete(e);else{const t=new s.Cm;r={out:this._map(n,t),store:t},this._cache.set(e,r)}t.push(r.out)}for(const s of i){this._cache.get(s).store.dispose(),this._cache.delete(s)}this._items=t}getItems(){return this._items}}function y(e,t){return E(e,((e,i)=>i??t(e)))}},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>C,v:()=>E});var s=i(16223),n=i(87289),r=i(62083),o=i(78209),a=i(66261),c=i(47612);const l=(0,a.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},o.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},o.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.x1A)("editor.wordHighlightTextBackground",l,o.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.x1A)("editor.wordHighlightTextBorder",h,o.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const d=(0,a.x1A)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",o.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.x1A)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",o.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.x1A)("editorOverviewRuler.wordHighlightTextForeground",a.z5H,o.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=n.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,c.Yf)(u),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),m=n.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,c.Yf)(g),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),f=n.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,c.Yf)(a.z5H),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),_=n.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=n.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,c.Yf)(d),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}});function C(e){return e===r.Kb.Write?p:e===r.Kb.Text?m:v}function E(e){return e?_:f}(0,c.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},14055:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var s=i(25890),n=i(36677),r=i(39286);class o{static{this.None=new class extends o{distance(){return 0}}}static async create(e,t){if(!t.getOption(119).localityBonus)return o.None;if(!t.hasModel())return o.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return o.None;const[c]=await(new r.n).provideSelectionRanges(i,[a]);if(0===c.length)return o.None;const l=await e.computeWordRanges(i.uri,c[0].range);if(!l)return o.None;const h=i.getWordUntilPosition(a);return delete l[h.word],new class extends o{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const r="string"===typeof i.label?i.label:i.label.label,o=l[r];if((0,s.Ct)(o))return 2<<20;const h=(0,s.El)(o,n.Q.fromPositions(e),n.Q.compareRangesUsingStarts),d=h>=0?o[h]:o[Math.max(0,~h-1)];let u=c.length;for(const t of c){if(!n.Q.containsRange(t.range,d))break;u-=1}return u}}}}},14614:(e,t,i)=>{"use strict";var s=i(90766),n=i(18447),r=i(64383),o=i(16980),a=i(5662),c=i(36456),l=i(98067),h=i(89403),d=i(78381),u=i(79400),g=i(31450),p=i(87289),m=i(32500),f=i(56942),_=i(37927),v=i(25890),C=i(631),E=i(36677),b=i(23750),S=i(50091);class y{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class w{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,s]of e){const e=i.links.map((e=>new y(e,s)));t=w._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let s,n,r,o;for(s=0,r=0,n=e.length,o=t.length;s<n&&r<o;){const n=e[s],o=t[r];if(E.Q.areIntersectingOrTouching(n.range,o.range)){s++;continue}E.Q.compareRangesUsingStarts(n.range,o.range)<0?(i.push(n),s++):(i.push(o),r++)}for(;s<n;s++)i.push(e[s]);for(;r<o;r++)i.push(t[r]);return i}}function R(e,t,i){const s=[],n=e.ordered(t).reverse().map(((e,n)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(s[n]=[t,e])}),r.M_)));return Promise.all(n).then((()=>{const e=new w((0,v.Yc)(s));return i.isCancellationRequested?(e.dispose(),new w([])):e}))}S.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,s]=t;(0,C.j)(i instanceof u.r),"number"!==typeof s&&(s=0);const{linkProvider:r}=e.get(f.ILanguageFeaturesService),o=e.get(b.IModelService).getModel(i);if(!o)return[];const a=await R(r,o,n.XO.None);if(!a)return[];for(let l=0;l<Math.min(s,a.links.length);l++)await a.links[l].resolve(n.XO.None);const c=a.links.slice(0);return a.dispose(),c}));var L,T=i(78209),x=i(58591),k=i(49099),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends a.jG{static{L=this}static{this.ID="editor.linkDetector"}static get(e){return e.getContribution(L.ID)}constructor(e,t,i,n,r){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=r.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new s.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const o=this._register(new _.gi(e));this._register(o.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(o.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(o.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,s.SS)((t=>R(this.providers,e,t)));try{const t=new d.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,r.dz)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],s=Object.keys(this.currentOccurrences);for(const r of s){const e=this.currentOccurrences[r];i.push(e.decorationId)}const n=[];if(e)for(const r of e)n.push(M.decoration(r,t));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,n=s.length;i<n;i++){const t=new M(e[i],s[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:s}=e;s.resolve(n.XO.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===c.ny.file&&e.startsWith(`${c.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===c.ny.file){const s=h.su(i);let n=null;s.startsWith("/./")||s.startsWith("\\.\\")?n=`.${s.substr(1)}`:(s.startsWith("//./")||s.startsWith("\\\\.\\"))&&(n=`.${s.substr(2)}`),n&&(e=h.uJ(t,n))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(T.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",s.url.toString())):"missing"===t?this.notificationService.warn(T.kg("missing.url","Failed to open this link because its target is missing.")):(0,r.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.computeLinks.cancel(),this.activeLinksList&&(this.activeLinksList?.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};I=L=A([N(1,k.C),N(2,x.Ot),N(3,f.ILanguageFeaturesService),N(4,m.ILanguageFeatureDebounceService)],I);const O=p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),D=p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class M{static decoration(e,t){return{range:e.range,options:M._getOptions(e,t,!1)}}static _getOptions(e,t,i){const s={...i?D:O};return s.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),s=e.tooltip?e.tooltip:i?T.kg("links.navigate.executeCmd","Execute command"):T.kg("links.navigate.follow","Follow link"),n=t?l.zx?T.kg("links.navigate.kb.meta.mac","cmd + click"):T.kg("links.navigate.kb.meta","ctrl + click"):l.zx?T.kg("links.navigate.kb.alt.mac","option + click"):T.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=T.kg("tooltip.explanation","Execute command {0}",e)}}return new o.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),s,t).appendMarkdown(` (${n})`)}return(new o.Bc).appendText(`${s} (${n})`)}(e,t),s}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!1))}}class P extends g.ks{constructor(){super({id:"editor.action.openLink",label:T.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=I.get(t);if(!i)return;if(!t.hasModel())return;const s=t.getSelections();for(const n of s){const e=i.getLinkOccurrence(n.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(I.ID,I,1),(0,g.Fl)(P)},14718:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var s=i(84040);const n=[];function r(e,t,i){t instanceof s.d||(t=new s.d(t,[],Boolean(i))),n.push([e,t])}function o(){return n}},14720:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7574).then(i.bind(i,67574))})},14853:e=>{e.exports=function(){function e(e){return String(e.$value)}return e.isScalar=!0,e}},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(28291),r=i(60002),o=i(78209);class a extends s.ks{constructor(){super({id:"expandLineSelection",label:o.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:r.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const s=t._getViewModel();s.model.pushStackElement(),s.setCursorStates(i.source,3,n.c.expandLineSelection(s,s.getCursorStates())),s.revealAllCursors(i.source,!0)}}(0,s.Fl)(a)},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>n,q2:()=>o,tA:()=>r,ui:()=>c});var s=i(75326);class n{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition())}}class r{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromRange(i,0)}}class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,s,n=!1){this._range=e,this._text=t,this._columnDeltaOffset=s,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class c{constructor(e,t,i,s=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=s,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},15482:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(5988).then(i.bind(i,65988))})},15600:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(2518).then(i.bind(i,52518))})},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var s=i(23971);const n=(e,t,i)=>{if(e&&"reportValidity"in e){const n=(0,s.Jt)(i,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},r=(e,t)=>{for(const i in t.fields){const s=t.fields[i];s&&s.ref&&"reportValidity"in s.ref?n(s.ref,i,e):s.refs&&s.refs.forEach((t=>n(t,i,e)))}},o=(e,t)=>{t.shouldUseNativeValidation&&r(e,t);const i={};for(const n in e){const r=(0,s.Jt)(t.fields,n),o=Object.assign(e[n]||{},{ref:r&&r.ref});if(a(t.names||Object.keys(e),n)){const e=Object.assign({},(0,s.Jt)(i,n));(0,s.hZ)(e,"root",o),(0,s.hZ)(i,n,e)}else(0,s.hZ)(i,n,o)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var c=function(e,t){for(var i={};e.length;){var n=e[0],r=n.code,o=n.message,a=n.path.join(".");if(!i[a])if("unionErrors"in n){var c=n.unionErrors[0].errors[0];i[a]={message:c.message,type:c.code}}else i[a]={message:o,type:r};if("unionErrors"in n&&n.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=i[a].types,h=l&&l[n.code];i[a]=(0,s.Gb)(a,t,i,r,h?[].concat(h,n.message):n.message)}e.shift()}return i},l=function(e,t,i){return void 0===i&&(i={}),function(s,n,a){try{return Promise.resolve(function(n,o){try{var c=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](s,t)).then((function(e){return a.shouldUseNativeValidation&&r({},a),{errors:{},values:i.raw?s:e}}))}catch(l){return o(l)}return c&&c.then?c.then(void 0,o):c}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:o(c(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(l){return Promise.reject(l)}}}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,Dg:()=>c,F4:()=>u,L5:()=>d,VW:()=>r,Wo:()=>h,X2:()=>a,ZS:()=>n,nk:()=>l,vd:()=>g});var s,n,r,o=i(10146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(s||(s={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(n||(n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(r||(r={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function l(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,s,n,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=s,this.isAutoWhitespaceEdit=n,this._isTracked=r}}class d{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},16363:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultModelSHA1Computer:()=>R,ModelService:()=>w});var s,n=i(41234),r=i(5662),o=i(98067),a=i(87289),c=i(24329),l=i(83941),h=i(90360),d=i(84001),u=i(47579),g=i(85600),p=i(26656),m=i(36456),f=i(10146),_=i(63591),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};function E(e){return e.toString()}class b{constructor(e,t,i){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const S=o.j9||o.zx?1:2;class y{constructor(e,t,i,s,n,r,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=n,this.sha1=r,this.versionId=o,this.alternativeVersionId=a}}let w=class extends r.jG{static{s=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,i,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=s,this._onModelAdded=this._register(new n.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.vl),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){let i=c.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let n=c.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(n="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=S;const o=e.eol;"\r\n"===o?r=2:"\n"===o&&(r=1);let a=c.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=c.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=c.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=c.R.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:s,insertSpaces:n,detectIndentation:l,defaultEOL:r,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===o.OS||2===o.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[n+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);r=s._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,r=i.length;n<r;n++){const r=i[n],o=this._models[r],a=o.model.getLanguageId(),c=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:c})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:c}))continue;const l=t[a+c],h=this.getCreationOptions(a,c,o.model.isForSimpleWidget);s._setModelOptionsForModel(o.model,h,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,f.aI)(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(E(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(E(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(E(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const 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;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){const n=this.getCreationOptions(t,i,s),r=this._instantiationService.createInstance(a.Bz,e,t,n,i);if(i&&this._disposedModels.has(E(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),s=this._getSHA1Computer(),n=!!s.canComputeSHA1(r)&&s.computeSHA1(r)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);for(const e of t.future)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,p.Th)(e)&&e.matchesResource(i))),n&&(r._overwriteVersionId(e.versionId),r._overwriteAlternativeVersionId(e.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=E(r.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const c=new b(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=c,c}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,l.vH,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push(this._models[s].model)}return e}getModel(e){const t=E(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===m.ny.file||e.scheme===m.ny.vscodeRemote||e.scheme===m.ny.vscodeUserData||e.scheme===m.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=E(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const a=s.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,c=this._getSHA1Computer();if(r)if(n||!(o>a)&&c.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,p.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new y(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,c.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const 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){const i=t.oldLanguage,n=e.getLanguageId(),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);s._setModelOptionsForModel(e,o,r),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new R}};w=s=v([C(0,d.pG),C(1,h.ITextResourcePropertiesService),C(2,u.$D),C(3,_._Y)],w);class R{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=R.MAX_MODEL_SIZE}computeSHA1(e){const t=new g.v7,i=e.createSnapshot();let s;for(;s=i.read();)t.update(s);return t.digest()}}},16545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BaseEditorSimpleWorker:()=>Y,EditorSimpleWorker:()=>q,create:()=>$});var s=i(83993),n=i(36677),r=i(60534);class o{constructor(e,t,i){const s=new Uint8Array(e*t);for(let n=0,r=e*t;n<r;n++)s[n]=i;this._data=s,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class a{constructor(e){let t=0,i=0;for(let n=0,r=e.length;n<r;n++){const[s,r,o]=e[n];r>t&&(t=r),s>i&&(i=s),o>i&&(i=o)}t++,i++;const s=new o(i,t,0);for(let n=0,r=e.length;n<r;n++){const[t,i,r]=e[n];s.set(t,i,r)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let c=null;let l=null;class h{static _createLink(e,t,i,s,n){let r=n-1;do{const i=t.charCodeAt(r);if(2!==e.get(i))break;r--}while(r>s);if(s>0){const e=t.charCodeAt(s-1),i=t.charCodeAt(r);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=function(){return null===c&&(c=new a([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),c}()){const i=function(){if(null===l){l=new r.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)l.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)l.set(t.charCodeAt(i),2)}return l}(),s=[];for(let n=1,r=e.getLineCount();n<=r;n++){const r=e.getLineContent(n),o=r.length;let a=0,c=0,l=0,d=1,u=!1,g=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=r.charCodeAt(a);if(13===d){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=l===o?1:39===l||34===l||96===l?0:1;break;case 42:t=42===l?1:0;break;case 124:t=124===l?1:0;break;case 32:t=p?0:1;break;default:t=i.get(o)}1===t&&(s.push(h._createLink(i,r,n,c,a)),e=!0)}else if(12===d){let t;91===o?(g=!0,t=0):t=i.get(o),1===t?e=!0:d=13}else d=t.nextState(d,o),0===d&&(e=!0);e&&(d=1,u=!1,g=!1,m=!1,c=a+1,l=o),a++}13===d&&s.push(h._createLink(i,r,n,c,o))}return s}}class d{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new d}navigateValueSet(e,t,i,s,n){if(e&&t){const i=this.doNavigateValueSet(t,n);if(i)return{range:e,value:i}}if(i&&s){const e=this.doNavigateValueSet(s,n);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let s=Number(e);const n=parseFloat(e);return isNaN(s)||isNaN(n)||s!==n?null:0!==s||t?(s=Math.floor(s*i),s+=t?i:-i,String(s/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let s=null;for(let n=0,r=e.length;null===s&&n<r;n++)s=this.valueSetReplace(e[n],t,i);return s}valueSetReplace(e,t,i){let s=e.indexOf(t);return s>=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}var u=i(73848),g=i(80718),p=i(78381),m=i(74855),f=i(41845),_=i(87723),v=i(91508),C=i(66782),E=i(86571);class b{computeDiff(e,t,i){const s=new T(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let o=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new E.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new E.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new E.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new E.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new _.wm(e,t,a.charChanges?.map((e=>new _.q6(new n.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new n.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==i.modified.startLineNumber&&o.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new _.wm(o.original.join(i.original),o.modified.join(i.modified),o.innerChanges&&i.innerChanges?o.innerChanges.concat(i.innerChanges):void 0),r.pop())),r.push(i),o=i}return(0,C.Ft)((()=>(0,C.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new f.p(r,[],s.quitEarly)}}function S(e,t,i,n){return new s.uP(e,t,i).ComputeDiff(n)}class y{constructor(e){const t=[],i=[];for(let s=0,n=e.length;s<n;s++)t[s]=x(e[s],1),i[s]=k(e[s],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const s=[],n=[],r=[];let o=0;for(let a=t;a<=i;a++){const t=this.lines[a],c=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=c;e<l;e++)s[o]=t.charCodeAt(e-1),n[o]=a+1,r[o]=e,o++;!e&&a<i&&(s[o]=10,n[o]=a+1,r[o]=t.length+1,o++)}return new w(s,n,r)}}class w{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class R{constructor(e,t,i,s,n,r,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=n,this.modifiedStartColumn=r,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const s=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),l=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new R(s,n,r,o,a,c,l,h)}}class L{constructor(e,t,i,s,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=s,this.charChanges=n}static createFromDiffResult(e,t,i,s,n,r,o){let a,c,l,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,c=0):(a=i.getStartLineNumber(t.originalStart),c=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(l=s.getStartLineNumber(t.modifiedStart)-1,h=0):(l=s.getStartLineNumber(t.modifiedStart),h=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){const r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&a.getElements().length>0){let e=S(r,a,n,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let s=1,n=e.length;s<n;s++){const n=e[s],r=n.originalStart-(i.originalStart+i.originalLength),o=n.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(r,o)<3?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),d=[];for(let t=0,i=e.length;t<i;t++)d.push(R.createFromDiffChange(e[t],r,a))}}return new L(a,c,l,h,d)}}class T{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new y(e),this.modified=new y(t),this.continueLineDiff=A(i.maxComputationTime),this.continueCharDiff=A(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=S(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,s=t.length;i<s;i++)e.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const s=[];let n=0,r=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,i=e?e.originalStart:this.originalLines.length,c=e?e.modifiedStart:this.modifiedLines.length;for(;n<i&&r<c;){const e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=x(e,1),o=x(t,1);for(;i>1&&o>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(o-2))break;i--,o--}(i>1||o>1)&&this._pushTrimWhitespaceCharChange(s,n+1,1,i,r+1,1,o)}{let i=k(e,1),o=k(t,1);const a=e.length+1,c=t.length+1;for(;i<a&&o<c;){if(e.charCodeAt(i-1)!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<c)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,c)}}n++,r++}e&&(s.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=e.originalLength,r+=e.modifiedLength)}return{quitEarly:i,changes:s}}_pushTrimWhitespaceCharChange(e,t,i,s,n,r,o){if(this._mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o))return;let a;this.shouldComputeCharChanges&&(a=[new R(t,i,t,s,n,r,n,o)]),e.push(new L(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o){const a=e.length;if(0===a)return!1;const c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&(c.originalEndLineNumber===t&&c.modifiedEndLineNumber===n?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0))}}function x(e,t){const i=v.HG(e);return-1===i?t:i+1}function k(e,t){const i=v.lT(e);return-1===i?t:i+2}function A(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var N=i(26746);const I=()=>new b,O=()=>new N.D8;var D=i(10146),M=i(36456),P=i(47661);function F(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function U(e,t,i,s){return{red:e/255,blue:i/255,green:t/255,alpha:s}}function H(e,t){const i=t.index,s=t[0].length;if(!i)return;const n=e.positionAt(i);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:n.lineNumber,endColumn:n.column+s}}function B(e,t){if(!e)return;const i=P.Q1.Format.CSS.parseHex(t);return i?{range:e,color:U(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function W(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values());return{range:e,color:U(s[0],s[1],s[2],i?s[3]:1)}}function V(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values()),n=new P.Q1(new P.hB(s[0],s[1]/100,s[2]/100,i?s[3]:1));return{range:e,color:U(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function z(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function G(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=z(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const s of i){const i=s.filter((e=>void 0!==e)),n=i[1],r=i[2];if(!r)continue;let o;if("rgb"===n){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=W(H(e,s),z(r,t),!1)}else if("rgba"===n){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=W(H(e,s),z(r,t),!0)}else if("hsl"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=V(H(e,s),z(r,t),!1)}else if("hsla"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=V(H(e,s),z(r,t),!0)}else"#"===n&&(o=B(H(e,s),n+r));o&&t.push(o)}return t}(e):[]}var j=i(56691),K=i(47443);class Y{constructor(){this._workerTextModelSyncServer=new K.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,i){const s=this._getModel(e);return s?m.UnicodeTextModelHighlighter.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const i=this._getModel(e);return i?(0,j.findSectionHeaders)(i,t):[]}async $computeDiff(e,t,i,s){const n=this._getModel(e),r=this._getModel(t);if(!n||!r)return null;return q.computeDiff(n,r,i,s)}static computeDiff(e,t,i,s){const n="advanced"===s?O():I(),r=e.getLinesContent(),o=t.getLinesContent(),a=n.computeDiff(r,o,i);function c(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:c(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,c(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let s=1;s<=i;s++){if(e.getLineContent(s)!==t.getLineContent(s))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,i){const r=this._getModel(e);if(!r)return t;const o=[];let a;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return n.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let c=0;for(let s=1;s<t.length;s++)n.Q.getEndPosition(t[c].range).equals(n.Q.getStartPosition(t[s].range))?(t[c].range=n.Q.fromPositions(n.Q.getStartPosition(t[c].range),n.Q.getEndPosition(t[s].range)),t[c].text+=t[s].text):(c++,t[c]=t[s]);t.length=c+1;for(let{range:l,text:h,eol:d}of t){if("number"===typeof d&&(a=d),n.Q.isEmpty(l)&&!h)continue;const e=r.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,r.eol),e===h)continue;if(Math.max(h.length,e.length)>q._diffLimit){o.push({range:l,text:h});continue}const t=(0,s.F1)(e,h,i),c=r.offsetAt(n.Q.lift(l).getStartPosition());for(const i of t){const e=r.positionAt(c+i.originalStart),t=r.positionAt(c+i.originalStart+i.originalLength),s={text:h.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"===typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?h.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?G(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,i,s){const n=new p.W,r=new RegExp(i,s),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(r))if(i!==t&&isNaN(Number(i))&&(o.add(i),o.size>q._suggestionsLimit))break e}return{words:Array.from(o),duration:n.elapsed()}}async $computeWordRanges(e,t,i,s){const n=this._getModel(e);if(!n)return Object.create(null);const r=new RegExp(i,s),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=n.getLineWords(a,r);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,i,s,n){const r=this._getModel(e);if(!r)return null;const o=new RegExp(s,n);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=r.getValueInRange(t),c=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;const l=r.getValueInRange(c);return d.INSTANCE.navigateValueSet(t,a,c,l,i)}}class q extends Y{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,s){const n={host:(0,D.kT)(s,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,D.V0)(this._foreignModule))):new Promise(((s,r)=>{const o=e=>{this._foreignModule=e.create(n,t),s((0,D.V0)(this._foreignModule))};{const t=M.zl.asBrowserUri(`${e}.js`).toString(!0);i(9204)(`${t}`).then(o).catch(r)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}function $(e){return new q(g.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,u.createMonacoBaseAPI)())},16963:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3z",clipRule:"evenodd"})))}},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>c,VS:()=>h,_W:()=>g,it:()=>l,nI:()=>p,nK:()=>d,oO:()=>u});var s=i(64383),n=i(37882),r=i(89403),o=i(91508),a=i(79400);class c{constructor(e="",t=!1){if(this.value=e,"string"!==typeof this.value)throw(0,s.Qg)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,n.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){const i=e.match(/^`+/gm)?.reduce(((e,t)=>e.length>t.length?e:t)).length??0,s=i>=3?i+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,o.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function l(e){return h(e)?!e.value:!Array.isArray(e)||e.every(l)}function h(e){return e instanceof c||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,r.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const s=i[1];if(s){const e=/height=(\d+)/.exec(s),i=/width=(\d+)/.exec(s),n=e?e[1]:"",r=i?i[1]:"",o=isFinite(parseInt(r)),a=isFinite(parseInt(n));o&&t.push(`width="${r}"`),a&&t.push(`height="${n}"`)}return{href:e,dimensions:t}}},17184:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"#":e.$value}return e.isScalar=!0,e}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var s=i(8597),n=i(72962),r=i(47358),o=i(25154),a=i(5662);class c extends a.jG{onclick(e,t){this._register(s.ko(e,s.Bx.CLICK,(i=>t(new r.P(s.zk(e),i)))))}onmousedown(e,t){this._register(s.ko(e,s.Bx.MOUSE_DOWN,(i=>t(new r.P(s.zk(e),i)))))}onmouseover(e,t){this._register(s.ko(e,s.Bx.MOUSE_OVER,(i=>t(new r.P(s.zk(e),i)))))}onmouseleave(e,t){this._register(s.ko(e,s.Bx.MOUSE_LEAVE,(i=>t(new r.P(s.zk(e),i)))))}onkeydown(e,t){this._register(s.ko(e,s.Bx.KEY_DOWN,(e=>t(new n.Z(e)))))}onkeyup(e,t){this._register(s.ko(e,s.Bx.KEY_UP,(e=>t(new n.Z(e)))))}oninput(e,t){this._register(s.ko(e,s.Bx.INPUT,t))}onblur(e,t){this._register(s.ko(e,s.Bx.BLUR,t))}onfocus(e,t){this._register(s.ko(e,s.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},17469:(e,t,i)=>{"use strict";i.d(t,{JZ:()=>N,Cw:()=>M});var s=i(41234),n=i(5662),r=i(91508),o=i(26486),a=i(38566);class c{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.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}}var l=i(25890),h=i(12296),d=i(56772);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,l.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const s=t.findTokenIndexAtOffset(i-1);if((0,h.Yo)(t.getStandardTokenType(s)))return null;const n=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,o=d.Fu.findPrevBracketInRange(n,1,r,0,r.length);if(!o)return null;const a=r.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(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}}var m=i(64383);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._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,s){if(e>=3)for(let n=0,r=this._regExpRules.length;n<r;n++){const e=this._regExpRules[n];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:s},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&s.length>0)for(let n=0,r=this._brackets.length;n<r;n++){const e=this._brackets[n];if(e.openRegExp.test(i)&&e.closeRegExp.test(s))return{indentAction:a.l.IndentOutdent}}if(e>=2&&i.length>0)for(let n=0,r=this._brackets.length;n<r;n++){if(this._brackets[n].openRegExp.test(i))return{indentAction:a.l.Indent}}return null}static _createOpenBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dz)(t),null}}}var _=i(63591),v=i(84001),C=i(10154),E=i(14718),b=i(83941),S=i(81788);class y{constructor(e,t){this.languageId=e;const i=t.brackets?w(t.brackets):[],s=new S.VV((e=>{const t=new Set;return{info:new L(this,e,t),closing:t}})),n=new S.VV((e=>{const t=new Set,i=new Set;return{info:new T(this,e,t,i),opening:t,openingColorized:i}}));for(const[o,a]of i){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.opening.add(e.info)}const r=t.colorizedBracketPairs?w(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of r){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...s.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...n.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){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,d.xb)(t,e)}}function w(e){return e.filter((([e,t])=>""!==e&&""!==t))}class R{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends R{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class T extends R{constructor(e,t,i,s){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=s,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 x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};class A{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const N=(0,_.u1)("languageConfigurationService");let I=class extends n.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new B),this.onDidChangeEmitter=this._register(new s.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(O));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),s=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new A(void 0));else for(const i of s)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new A(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new A(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,s){let n=t.getLanguageConfiguration(e);if(!n){if(!s.isRegisteredLanguageId(e))return new W(e,{});n=new W(e,{})}const r=function(e,t){const i=t.getValue(O.brackets,{overrideIdentifier:e}),s=t.getValue(O.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:D(i),colorizedBracketPairs:D(s)}}(n.languageId,i),o=F([n.underlyingConfig,r]);return new W(n.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=x([k(0,v.pG),k(1,C.L)],I);const O={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function D(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 M(e,t,i){const s=e.getLineContent(t);let n=r.UU(s);return n.length>i-1&&(n=n.substring(0,i-1)),n}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new U(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,n.s)((()=>{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){const e=this._resolve();e&&(this._resolved=new W(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(U.cmp),F(this._entries.map((e=>e.configuration))))}}function F(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(const 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 U{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 H{constructor(e){this.languageId=e}}class B extends n.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(b.vH,{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 s=this._entries.get(e);s||(s=new P(e),this._entries.set(e,s));const r=s.register(t,i);return this._onDidChange.fire(new H(e)),(0,n.s)((()=>{r.dispose(),this._onDidChange.fire(new H(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class W{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 f(this.underlyingConfig):null,this.comments=W._handleComments(this.underlyingConfig),this.characterPair=new c(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new y(e,this.underlyingConfig)}getWordDefinition(){return(0,o.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,s]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=s}return i}}(0,E.v)(N,I,1)},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>c,Y:()=>h,gf:()=>o,jt:()=>u});var s=i(25890),n=i(42522),r=i(58255);function o(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const s={id:(0,r.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>s,value:void 0}}class c{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return n.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),d(l(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return l(e)}}function l(e){return e.toLowerCase()}function h(e,t){return d(l(e),t.map(l))}function d(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[s,n,r]=i;return"*"===r&&t.some((e=>e.startsWith(n+"/")))}const u=Object.freeze({create:e=>(0,s.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},17890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageService:()=>h});var s=i(41234),n=i(5662),r=i(69259),o=i(25890),a=i(62083),c=i(83941),l=i(31308);class h extends n.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new s.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new s.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new s.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,h.instanceCount++,this._registry=this._register(new r.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){h.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){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(i,null)}createById(e){return new d(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new d(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=c.vH),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),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class d{constructor(e,t){this._value=(0,l.y0)(this,e,(()=>t())),this.onDidChange=s.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},18278:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(17469),a=i(87289),c=i(10920),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};let d=class extends n.jG{static{this.ID="editor.sectionHeaderDetector"}constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{const i=this.editor.getModel()?.getLanguageId();i&&t.affects(i)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new s.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,s=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||s?.markers?{foldingRules:s,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;const e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;const t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then((i=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(i)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),s=t.tokenization.getLineTokens(i.startLineNumber),n=s.findTokenIndexAtOffset(i.startColumn-1),r=s.getStandardTokenType(n);return s.getLanguageId(n)===t.getLanguageId()&&1===r})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),s=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={};for(let i=0,s=n.length;i<s;i++){const t={sectionHeader:e[i],decorationId:n[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};d=l([h(1,o.JZ),h(2,c.IEditorWorkerService)],d),(0,r.HW)(d.ID,d,1)},18447:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>r,bs:()=>c});var s=i(41234);const n=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(r||(r={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?n:(this._emitter||(this._emitter=new s.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=r.None}}function c(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},18544:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(7638).then(i.bind(i,97638))})},18801:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>h,Dk:()=>d,rr:()=>o});var s=i(41234),n=i(5662),r=i(32848);const o=(0,i(63591).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const c=a.Info;class l extends n.jG{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new s.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends l{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class d extends l{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new r.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},18864:(e,t,i)=>{"use strict";i.d(t,{d:()=>E});var s,n=i(8597),r=i(5646),o=i(36921),a=i(5662),c=i(98067),l=i(31450),h=i(60002),d=i(78209),u=i(27195),g=i(32848),p=i(47508),m=i(98031),f=i(84001),_=i(37227),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};let E=class{static{s=this}static{this.ID="editor.contrib.contextmenu"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,c,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=r,this._menuService=o,this._configurationService=c,this._workspaceContextService=l,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&n.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],s=this._menuService.getMenuActions(t,this._contextKeyService,{arg:e.uri});for(const n of s){const[,t]=n;let s=0;for(const n of t)if(n instanceof u.nI){const t=this._getMenuActions(e,n.item.submenu);t.length>0&&(i.push(new o.YH(n.id,n.label,t)),s++)}else i.push(n),s++;s&&i.push(new o.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let s=t;if(!s){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=n.BK(this._editor.getDomNode()),i=t.left+e.left,r=t.top+e.top+e.height;s={x:i,y:r}}const o=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getOverflowWidgetsDomNode()??this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new r.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new r.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const s=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),n=(e,t,n,r,a)=>{if(!t)return s({label:e,enabled:t,run:()=>{}});const c=e=>()=>{this._configurationService.updateValue(n,e)},l=[];for(const i of a)l.push(s({label:i.label,checked:r===i.value,run:c(i.value)}));return((e,t)=>new o.YH("menu-action-"+ ++i,e,t,void 0))(e,l)},r=[];r.push(s({label:d.kg("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new o.wv),r.push(s({label:d.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(n(d.kg("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:d.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:d.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:d.kg("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(n(d.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:d.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:d.kg("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};E=s=v([C(1,p.Z),C(2,p.l),C(3,g.fN),C(4,m.b),C(5,u.ez),C(6,f.pG),C(7,_.VR)],E);class b extends l.ks{constructor(){super({id:"editor.action.showContextMenu",label:d.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.R.textInputFocus,primary:1092,weight:100}})}run(e,t){E.get(t)?.showContextMenu()}}(0,l.HW)(E.ID,E,2),(0,l.Fl)(b)},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},18956:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var s=i(631);const n=Object.create(null);function r(e,t){if((0,s.Kg)(t)){const i=n[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return n[e]=t,{id:e}}function o(){return n}},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>o,ho:()=>l,ir:()=>r,m$:()=>d,mk:()=>c,oJ:()=>a,t8:()=>g});var s=i(66261),n=i(47661);const r={keybindingLabelBackground:(0,s.GuP)(s.HDX),keybindingLabelForeground:(0,s.GuP)(s.eUu),keybindingLabelBorder:(0,s.GuP)(s.zUX),keybindingLabelBottomBorder:(0,s.GuP)(s.Qfh),keybindingLabelShadow:(0,s.GuP)(s.f9l)},o={buttonForeground:(0,s.GuP)(s.G_h),buttonSeparator:(0,s.GuP)(s.Q1$),buttonBackground:(0,s.GuP)(s.XJc),buttonHoverBackground:(0,s.GuP)(s.T9h),buttonSecondaryForeground:(0,s.GuP)(s.Inn),buttonSecondaryBackground:(0,s.GuP)(s.xOA),buttonSecondaryHoverBackground:(0,s.GuP)(s.nZG),buttonBorder:(0,s.GuP)(s.raQ)},a={progressBarBackground:(0,s.GuP)(s.BTi)},c={inputActiveOptionBorder:(0,s.GuP)(s.uNK),inputActiveOptionForeground:(0,s.GuP)(s.$$0),inputActiveOptionBackground:(0,s.GuP)(s.c1f)},l=((0,s.GuP)(s.jOE),(0,s.GuP)(s.Ukx),(0,s.GuP)(s.Ips),(0,s.GuP)(s.kPT),(0,s.GuP)(s.xWN),(0,s.GuP)(s.ZBU),(0,s.GuP)(s.jr9),(0,s.GuP)(s.OcU),(0,s.GuP)(s.C5U),(0,s.GuP)(s.t0B),(0,s.GuP)(s.CgL),(0,s.GuP)(s.FiB),(0,s.GuP)(s.f9l),(0,s.GuP)(s.b1q),(0,s.GuP)(s.tYX),(0,s.GuP)(s.JPj),(0,s.GuP)(s.bNw),(0,s.GuP)(s.vwp),{inputBackground:(0,s.GuP)(s.L4c),inputForeground:(0,s.GuP)(s.cws),inputBorder:(0,s.GuP)(s.Zgs),inputValidationInfoBorder:(0,s.GuP)(s.YSW),inputValidationInfoBackground:(0,s.GuP)(s.I$A),inputValidationInfoForeground:(0,s.GuP)(s.L9Z),inputValidationWarningBorder:(0,s.GuP)(s.C1n),inputValidationWarningBackground:(0,s.GuP)(s.ULt),inputValidationWarningForeground:(0,s.GuP)(s.T5N),inputValidationErrorBorder:(0,s.GuP)(s.eYZ),inputValidationErrorBackground:(0,s.GuP)(s._$n),inputValidationErrorForeground:(0,s.GuP)(s.h9z)}),h={listFilterWidgetBackground:(0,s.GuP)(s.pnl),listFilterWidgetOutline:(0,s.GuP)(s.fiM),listFilterWidgetNoMatchesOutline:(0,s.GuP)(s.P9Z),listFilterWidgetShadow:(0,s.GuP)(s.H8q),inputBoxStyles:l,toggleStyles:c},d={badgeBackground:(0,s.GuP)(s.WMx),badgeForeground:(0,s.GuP)(s.zRE),badgeBorder:(0,s.GuP)(s.b1q)},u=((0,s.GuP)(s.vV$),(0,s.GuP)(s.mc0),(0,s.GuP)(s.etE),(0,s.GuP)(s.etE),(0,s.GuP)(s.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,s.GuP)(s.VFX),listFocusForeground:(0,s.GuP)(s.efJ),listFocusOutline:(0,s.GuP)(s.p7Y),listActiveSelectionBackground:(0,s.GuP)(s.Rjz),listActiveSelectionForeground:(0,s.GuP)(s.GVV),listActiveSelectionIconForeground:(0,s.GuP)(s.fED),listFocusAndSelectionOutline:(0,s.GuP)(s.gtq),listFocusAndSelectionBackground:(0,s.GuP)(s.Rjz),listFocusAndSelectionForeground:(0,s.GuP)(s.GVV),listInactiveSelectionBackground:(0,s.GuP)(s.uNx),listInactiveSelectionIconForeground:(0,s.GuP)(s.C9U),listInactiveSelectionForeground:(0,s.GuP)(s.f4y),listInactiveFocusBackground:(0,s.GuP)(s.CQ3),listInactiveFocusOutline:(0,s.GuP)(s.ijf),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listDropOverBackground:(0,s.GuP)(s.Yoe),listDropBetweenBackground:(0,s.GuP)(s.yIp),listSelectionOutline:(0,s.GuP)(s.buw),listHoverOutline:(0,s.GuP)(s.buw),treeIndentGuidesStroke:(0,s.GuP)(s.U4U),treeInactiveIndentGuidesStroke:(0,s.GuP)(s.pft),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:(0,s.GuP)(s.bXl),tableColumnsBorder:(0,s.GuP)(s.k5u),tableOddRowsBackgroundColor:(0,s.GuP)(s.sbQ)});function g(e){return function(e,t){const i={...t};for(const n in e){const t=e[n];i[n]=void 0!==t?(0,s.GuP)(t):void 0}return i}(e,u)}const p={selectBackground:(0,s.GuP)(s.rvE),selectListBackground:(0,s.GuP)(s.lWP),selectForeground:(0,s.GuP)(s.yqq),decoratorRightForeground:(0,s.GuP)(s.NBf),selectBorder:(0,s.GuP)(s.HcB),focusBorder:(0,s.GuP)(s.tAP),listFocusBackground:(0,s.GuP)(s.AlL),listInactiveSelectionIconForeground:(0,s.GuP)(s.c7i),listFocusForeground:(0,s.GuP)(s.nH),listFocusOutline:(0,s.HP_)(s.buw,n.Q1.transparent.toString()),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listHoverOutline:(0,s.GuP)(s.buw),selectListBorder:(0,s.GuP)(s.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},m={shadowColor:(0,s.GuP)(s.f9l),borderColor:(0,s.GuP)(s.g$2),foregroundColor:(0,s.GuP)(s.dd_),backgroundColor:(0,s.GuP)(s.c6Y),selectionForegroundColor:(0,s.GuP)(s.pmr),selectionBackgroundColor:(0,s.GuP)(s.Ux$),selectionBorderColor:(0,s.GuP)(s.SNb),separatorColor:(0,s.GuP)(s.D7X),scrollbarShadow:(0,s.GuP)(s.bXl),scrollbarSliderBackground:(0,s.GuP)(s.gnV),scrollbarSliderHoverBackground:(0,s.GuP)(s.cI_),scrollbarSliderActiveBackground:(0,s.GuP)(s.mhZ)}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>_,QB:()=>p,Qx:()=>S,VL:()=>b,Vh:()=>c,Vp:()=>a,eu:()=>u,l4:()=>d,o0:()=>E,pW:()=>m,qe:()=>h,rR:()=>y,sS:()=>g,vr:()=>C,wP:()=>f,zG:()=>v});var s=i(91508),n=i(36677),r=i(50973);function o(e,t,i,s){return e!==i?h(i-e,s):h(0,s-t)}const a=0;function c(e){return 0===e}const l=2**26;function h(e,t){return e*l+t}function d(e){const t=e,i=Math.floor(t/l),s=t-i*l;return new r.W(i,s)}function u(e){return Math.floor(e/l)}function g(e){return e}function p(e,t){let i=e+t;return t>=l&&(i-=e%l),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,s=t;if(s-i<=0)return a;const n=Math.floor(i/l),r=Math.floor(s/l),o=s-r*l;if(n===r){return h(0,o-(i-n*l))}return h(r-n,o)}function v(e,t){return e<t}function C(e,t){return e<=t}function E(e,t){return e>=t}function b(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){const i=e,s=Math.floor(i/l),r=i-s*l,o=t,a=Math.floor(o/l),c=o-a*l;return new n.Q(s+1,r+1,a+1,c+1)}function y(e){const t=(0,s.uz)(e);return h(t.length-1,t[t.length-1].length)}},19436:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(3338).then(i.bind(i,33338))})},19466:(e,t,i)=>{"use strict";i.d(t,{DO:()=>q,w0:()=>x,KP:()=>s,RD:()=>O,vD:()=>I});var s,n=i(8597),r=(i(56245),i(72962)),o=(i(11799),i(88443),i(91581)),a=i(66700),c=i(93090),l=i(35315),h=i(37472),d=i(84565),u=(i(36921),i(25890)),g=i(90766),p=i(10350),m=i(25689),f=i(74320),_=i(41234),v=i(26690),C=i(5662),E=i(1592),b=i(631),S=i(78209),y=(i(42904),i(31308)),w=i(11007);class R extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function L(e){return e instanceof a.ur?new R(e):e}class T{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=C.jG.None,this.disposables=new C.Cm}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){this.dnd.onDragStart?.(L(e),t)}onDragOver(e,t,i,s,n,r=!0){const o=this.dnd.onDragOver(L(e),t&&t.element,i,s,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return o;if(a&&"boolean"!==typeof o&&o.autoExpand&&(this.autoExpandDisposable=(0,g.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof o||!o.accept||"undefined"===typeof o.bubble||o.feedback){if(!r){return{accept:"boolean"===typeof o?o:o.accept,effect:"boolean"===typeof o?void 0:o.effect,feedback:[i]}}return o}if(1===o.bubble){const i=this.modelProvider(),r=i.getNodeLocation(t),o=i.getParentNodeLocation(r),a=i.getNode(o),c=o&&i.getListIndex(o);return this.onDragOver(e,a,c,s,n,!1)}const c=this.modelProvider(),l=c.getNodeLocation(t),h=c.getListIndex(l),d=c.getListRenderCount(l);return{...o,feedback:(0,u.y1)(h,h+d)}}drop(e,t,i,s,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(L(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class x{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){this.delegate.setDynamicHeight?.(e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(s||(s={}));class k{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new C.Cm,this.onDidChange=_.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class A{static{this.DefaultIndent=8}constructor(e,t,i,s,n,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=s,this.renderedIndentGuides=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=A.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=C.jG.None,this.disposables=new C.Cm,this.templateId=e.templateId,this.updateOptions(r),_.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState?.(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,E.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==s.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new C.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.BC)(t,(0,n.$)(".monaco-tl-indent")),s=(0,n.BC)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.BC)(t,(0,n.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:s,indentGuidesDisposable:C.jG.None,templateData:o}}renderElement(e,t,i,s){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,s)}disposeElement(e,t,i,s){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement?.(e,t,i.templateData,s),"number"===typeof s&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=A.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.L.asClassNameArray(p.W.treeItemExpanded));let s=!1;this.renderer.renderTwistie&&(s=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(s||t.twistie.classList.add(...m.L.asClassNameArray(p.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new C.Cm,s=this.modelProvider();for(;;){const r=s.getNodeLocation(e),o=s.getParentNodeLocation(r);if(!o)break;const a=s.getNode(o),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(a,c),i.add((0,C.s)((()=>this.renderedIndentGuides.delete(a,c)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const s=i.getNodeLocation(e);try{const n=i.getParentNodeLocation(s);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(i.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,C.AS)(this.disposables)}}class N{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new C.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const s=this._filter.filter(e,t);if(i="boolean"===typeof s?s?1:0:(0,h.iZ)(s)?(0,h.Mn)(s.visibility):s,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(s)?s:[s];for(const r of n){const e=r&&r.toString();if("undefined"===typeof e)return{data:v.ne.Default,visibility:i};let t;if(this.tree.findMatchType===O.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.dt)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===n.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,C.AS)(this.disposables)}}l.l;l.l;o.x8,l.F;var I,O;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(O||(O={}));C.jG;class D{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,s,n,r={}){this.tree=e,this.view=i,this.filter=s,this.contextViewProvider=n,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new _.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.vl,this._onDidChangeOpenState=new _.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new C.Cm,this.disposables=new C.Cm,this._mode=e.options.defaultFindMode??I.Highlight,this._matchType=e.options.defaultFindMatchType??O.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&e?((0,w.xE)((0,S.kg)("replFindNoResults","No results")),this.tree.options.showNotFoundMessage??1?this.widget?.showMessage({type:2,content:(0,S.kg)("not found","No elements found.")}):this.widget?.showMessage({type:2})):(this.widget?.clearMessage(),this.pattern&&(0,w.xE)((0,S.kg)("replFindResults","{0} results",this.filter.matchCount)))}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData))}layout(e){this.width=e,this.widget?.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function M(e,t){return e.position===t.position&&P(e,t)}function P(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class F{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.aI)(this.stickyNodes,e.stickyNodes,M)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.aI)(this.stickyNodes,e.stickyNodes,P))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class U{constrainStickyScrollNodes(e,t,i){for(let s=0;s<e.length;s++){const n=e[s];if(n.position+n.height>i||s>=t)return e.slice(0,s)}return e}}class H extends C.jG{constructor(e,t,i,s,n,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=n,this.maxWidgetViewRatio=.4;const o=this.validateStickySettings(r);this.stickyScrollMaxItemCount=o.stickyScrollMaxItemCount,this.stickyScrollDelegate=r.stickyScrollDelegate??new U,this._widget=this._register(new B(i.getScrollableElement(),i,e,s,n,r.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.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),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,s=0,n=this.getNextStickyNode(i,void 0,s);for(;n&&(t.push(n),s+=n.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(n),i));)n=this.getNextStickyNode(i,n.node,s);const r=this.constrainStickyNodes(t);return r.length?new F(r):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const s=this.getAncestorUnderPrevious(e,t);if(s){if(s===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(s,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),s=this.view.getElementTop(i),n=t;return this.view.scrollTop===s-n}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:s,endIndex:n}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(n,t,i),height:i,startIndex:s,endIndex:n}}getAncestorUnderPrevious(e,t=void 0){let i=e,s=this.getParentNode(i);for(;s;){if(s===t)return i;i=s,s=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let s=this.view.getRelativeTop(e);if(null===s&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);s=i?i-t/this.view.renderHeight:null}if(null===s)return t;const n=this.view.element(e),r=this.treeDelegate.getHeight(n),o=s*this.view.renderHeight+r;return t+i>o&&t<=o?o-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const s=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!s.length)return[];const n=s[s.length-1];if(s.length>this.stickyScrollMaxItemCount||n.position+n.height>t)throw new Error("stickyScrollDelegate violates constraints");return s}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let s=0;for(let n=0;n<t.length&&n<this.stickyScrollMaxItemCount;n++)s+=this.treeDelegate.getHeight(t[n]);return s}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(e={}){if(!e.stickyScrollMaxItemCount)return;const 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 B{constructor(e,t,i,s,r,o){this.view=t,this.tree=i,this.treeRenderers=s,this.treeDelegate=r,this.accessibilityProvider=o,this._previousElements=[],this._previousStateDisposables=new C.Cm,this._rootDomNode=(0,n.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const s=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${s.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const s=e.stickyNodes[i],{element:n,disposable:r}=this.createElement(s,i,e.count);t[i]=n,this._rootDomNode.appendChild(n),this._previousStateDisposables.add(r)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t,i){const s=e.startIndex,n=document.createElement("div");n.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(n.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(n.style.lineHeight=`${e.height}px`),n.classList.add("monaco-tree-sticky-row"),n.classList.add("monaco-list-row"),n.setAttribute("data-index",`${s}`),n.setAttribute("data-parity",s%2===0?"even":"odd"),n.setAttribute("id",this.view.getElementID(s));const r=this.setAccessibilityAttributes(n,e.node.element,t,i),o=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===o));if(!a)throw new Error(`No renderer found for template id ${o}`);let c=e.node;c===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(c=new Proxy(e.node,{}));const l=a.renderTemplate(n);a.renderElement(c,e.startIndex,l,e.height);const h=(0,C.s)((()=>{r.dispose(),a.disposeElement(c,e.startIndex,l,e.height),a.disposeTemplate(l),n.remove()}));return{element:n,disposable:h}}setAccessibilityAttributes(e,t,i,s){if(!this.accessibilityProvider)return C.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,s))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",this.accessibilityProvider.getRole(t)??"treeitem");const n=this.accessibilityProvider.getAriaLabel(t),r=n&&"string"!==typeof n?n:(0,y.lk)(n),o=(0,y.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof n||n&&e.setAttribute("aria-label",n.get());const a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof a&&e.setAttribute("aria-level",`${a}`),e.setAttribute("aria-selected",String(!1)),o}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.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends C.jG{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=new _.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register((0,n.ko)(this.container,"focus",(()=>this.onFocus()))),this._register((0,n.ko)(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){const t=e.browserEvent.target;if(!(0,c.Es)(t)&&!(0,c.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,n.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>t.node.element===e.element?.element));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,s=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:s,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){const 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){const t=e.browserEvent.target;((0,c.Es)(t)||(0,c.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,E.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],s=t.count>1?t.stickyNodes[t.count-2]:void 0,n=this.view.getElementTop(e),r=s?s.position+s.height+i.height:i.height;this.view.scrollTop=n-r}domFocus(){if(!this.state)throw new 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 new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const 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 new 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 V(e){let t=d.Lx.Unknown;return(0,n.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=d.Lx.Twistie:(0,n.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=d.Lx.Element:(0,n.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=d.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,c.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function G(e,t){t(e),e.children.forEach((e=>G(e,t)))}class j{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 _.vl,this.onDidChange=this._onDidChange.event}set(e,t){!t?.__forceEvent&&(0,u.aI)(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){const 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){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>G(e,i))),void this.set([...e.values()])}const i=new Set,s=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>G(e,s)));const n=new Map,r=e=>n.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>G(e,r)));const o=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=n.get(e);t&&t.visible&&o.push(t)}else o.push(a)}if(this.nodes.length>0&&0===o.length){const e=this.getFirstViewElementWithTrait();e&&o.push(e)}this._set(o,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends c.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,c.Bm)(e.browserEvent.target)||(0,c.B6)(e.browserEvent.target)||(0,c.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,s=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,n=(0,c.xu)(e.browserEvent.target);let r=!1;if(r=!!n||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),n)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!s&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!n||s)){const i=this.tree.getNodeLocation(t),n=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,n),s)return void(e.browserEvent.isHandledByList=!0)}n||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,c.b$)(e.browserEvent.target)||(0,c.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const s=this.list.indexOf(t),n=this.list.getElementTop(s),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=n-r,this.list.domFocus(),this.list.setFocus([s]),this.list.setSelection([s])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onContextMenu(e)}}class Y extends c.B8{constructor(e,t,i,s,n,r,o,a){super(e,t,i,s,a),this.focusTrait=n,this.selectionTrait=r,this.anchorTrait=o}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const s=[],n=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&n.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),s.length>0&&super.setFocus((0,u.dM)([...super.getFocus(),...s])),n.length>0&&super.setSelection((0,u.dM)([...super.getSelection(),...n])),"number"===typeof r&&super.setAnchor(r)}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||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class q{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 _.Jh.filter(_.Jh.map(this.view.onMouseDblClick,V),(e=>e.target!==d.Lx.Filter))}get onMouseOver(){return _.Jh.map(this.view.onMouseOver,V)}get onMouseOut(){return _.Jh.map(this.view.onMouseOut,V)}get onContextMenu(){return _.Jh.any(_.Jh.filter(_.Jh.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),this.stickyScrollController?.onContextMenu??_.Jh.None)}get onPointer(){return _.Jh.map(this.view.onPointer,V)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){return this.findController?.mode??I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){return this.findController?.matchType??O.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,a={}){this._user=e,this._options=a,this.eventBufferer=new _.at,this.onDidChangeFindOpenState=_.Jh.None,this.onDidChangeStickyScrollFocused=_.Jh.None,this.disposables=new C.Cm,this._onWillRefilter=new _.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.vl,this.treeDelegate=new x(i);const l=new _.Wj,h=new _.Wj,d=this.disposables.add(new k(h.event)),u=new f.db;this.renderers=o.map((e=>new A(e,(()=>this.model),l.event,d,u,a)));for(const s of this.renderers)this.disposables.add(s);let p;var m,v;a.keyboardNavigationLabelProvider&&(p=new N(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:p},this.disposables.add(p)),this.focus=new j((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new j((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new j((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new Y(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(m=()=>this.model,v=a,v&&{...v,identityProvider:v.identityProvider&&{getId:e=>v.identityProvider.getId(e.element)},dnd:v.dnd&&new T(m,v.dnd),multipleSelectionController:v.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>v.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>v.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:v.accessibilityProvider&&{...v.accessibilityProvider,getSetSize(e){const t=m(),i=t.getNodeLocation(e),s=t.getParentNodeLocation(i);return t.getNode(s).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:v.accessibilityProvider&&v.accessibilityProvider.isChecked?e=>v.accessibilityProvider.isChecked(e.element):void 0,getRole:v.accessibilityProvider&&v.accessibilityProvider.getRole?e=>v.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>v.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>v.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:v.accessibilityProvider&&v.accessibilityProvider.getWidgetRole?()=>v.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:v.accessibilityProvider&&v.accessibilityProvider.getAriaLevel?e=>v.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:v.accessibilityProvider.getActiveDescendantId&&(e=>v.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:v.keyboardNavigationLabelProvider&&{...v.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>v.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),l.input=this.model.onDidChangeCollapseState;const E=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);E((()=>null),null,this.disposables);const b=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(E,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);b.fire([...e.values()])}))}))),h.input=b.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,c.B6)(e.target))).map((e=>new r.Z(e)))));_.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((a.findWidgetEnabled??1)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new D(this,this.model,this.view,p,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.Jh.None,this.onDidChangeFindMatchType=_.Jh.None;a.enableStickyScroll&&(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,n.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}updateOptions(e={}){this._options={...this._options,...e};for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this.findController?.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}get options(){return this._options}updateStickyScroll(e){!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),this.stickyScrollController?.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}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(){this.stickyScrollController?.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){this.view.layout(e,t),(0,b.Et)(t)&&this.findController?.layout(t)}style(e){const 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 { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const s=e.treeStickyScrollBackground??e.listBackground;s&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${s}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${s}; }`)),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; }`));const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,e.listFocusOutline??""));r&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; 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(`.monaco-workbench.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(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.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){const 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((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(s,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(s,t,!0)}))}focusNext(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,s)}focusPrevious(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,s)}focusNextPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>this.stickyScrollController?.height??0))}focusLast(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusLast(e,t)}focusFirst(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const s=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,s)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!0)){const e=this.model.getParentNodeLocation(s);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i),n=e.browserEvent.altKey;this.model.setCollapsed(s,void 0,n)}dispose(){(0,C.AS)(this.disposables),this.stickyScrollController?.dispose(),this.view.dispose()}}},19531:(e,t,i)=>{"use strict";i.d(t,{iE:()=>n,rW:()=>r});class s{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class n{constructor(e,t,i,s){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=s,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),o=[];for(let a=0,c=this._zones.length;a<c;a++){const c=this._zones[a];if(!e){const e=c.getColorZones();if(e){o.push(e);continue}}const l=this._getVerticalOffsetForLine(c.startLineNumber),h=0===c.heightInLines?this._getVerticalOffsetForLine(c.endLineNumber)+t:l+c.heightInLines*t,d=Math.floor(n*l),u=Math.floor(n*h);let g=Math.floor((d+u)/2),p=u-g;p<r&&(p=r),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=c.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new s(g-p,g+p,f);c.setColorZone(_),o.push(_)}return this._colorZonesInvalid=!1,o.sort(s.compare),o}}},19562:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var s=i(40579),n=i(94650),r=i(32956),o=i(19131);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=s.Xw.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return s.Xw.create23(e[0],e[1],i>=3?e[2]:null,t)}function c(e,t){return Math.abs(e.listHeight-t.listHeight)}function l(e,t){return e.listHeight===t.listHeight?s.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let r;for(;;){if(t.listHeight===i.listHeight){r=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(e,r,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let r=t;for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(r,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=o.Vp,this.nextNodes=[e],this.offsets=[o.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,o.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const s=u(this.offsets);if((0,o.zG)(e,s))return;if((0,o.zG)(s,e))if((0,o.QB)(s,i.length)<=e)this.nextNodeAfterCurrent();else{const e=d(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=d(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),s=d(i,this.idxs[this.idxs.length-1]);if(-1!==s){this.nextNodes.push(i.getChild(s)),this.offsets.push((0,o.QB)(e,t.length)),this.idxs[this.idxs.length-1]=s;break}this.idxs.pop()}}}function d(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,s){return new p(e,t,i,s).parseDocument()}class p{constructor(e,t,i,s){if(this.tokenizer=e,this.createImmutableLists=s,this._itemsConstructed=0,this._itemsFromCache=0,i&&s)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new n.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(r.gV.getEmpty(),0);return e||(e=s.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let s=this.tryReadChildFromCache(e);if(!s){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;s=this.parseChild(e,t+1)}4===s.kind&&0===s.childrenLength||i.push(s)}const s=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,s=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===s;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let s=i(),n=i();if(!n)return s;for(let r=i();r;r=i())c(s,n)<=c(n,r)?(s=l(s,n),n=r):n=l(n,r);return l(s,n)}(i):a(i,this.createImmutableLists);return s}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,o.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,o.zG)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new s.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new s.yF(i.length);const n=e.merge(i.bracketIds),r=this.parseList(n,t+1),o=this.tokenizer.peek();return o&&2===o.kind&&(o.bracketId===i.bracketId||o.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),s.Nn.create(i.astNode,r,o.astNode)):s.Nn.create(i.astNode,r,null)}default:throw new Error("unexpected")}}}},19856:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(3638).then(i.bind(i,13638))})},20370:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,s:()=>a});var s=i(8597),n=i(25689);const r=new RegExp(`(\\\\)?\\$\\((${n.L.iconNameExpression}(?:${n.L.iconModifierExpression})?)\\)`,"g");function o(e){const t=new Array;let i,s=0,n=0;for(;null!==(i=r.exec(e));){n=i.index||0,s<n&&t.push(e.substring(s,n)),s=(i.index||0)+i[0].length;const[,r,o]=i;t.push(r?`$(${o})`:a({id:o}))}return s<e.length&&t.push(e.substring(s)),t}function a(e){const t=s.$("span");return t.classList.add(...n.L.asClassNameArray(e)),t}},20492:(e,t,i)=>{"use strict";i.d(t,{T:()=>f,i:()=>_});var s,n=i(68214),r=i(80789),o=i(64383),a=i(41234),c=i(5662),l=i(73157),h=i(10154),d=i(83941),u=i(58314),g=i(49099),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class{static{s=this}static{this._ttpTokenizer=(0,r.H)("tokenizeToString",{createHTML:e=>e})}constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const s=new c.Cm,r=s.add((0,n.Gc)(e,{...this._getRenderOptions(e,s),...t},i));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>s.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{let i;e?i=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(i=this._options.editor.getModel()?.getLanguageId()),i||(i=d.vH);const n=await(0,u.Yj)(this._languageService,t,i),r=document.createElement("span");if(r.innerHTML=s._ttpTokenizer?.createHTML(n)??n,this._options.editor){const e=this._options.editor.getOption(50);(0,l.M)(r,e)}else this._options.codeBlockFontFamily&&(r.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(r.style.fontSize=this._options.codeBlockFontSize),r},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(s){return(0,o.dz)(s),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f=s=p([m(1,h.L),m(2,g.C)],f)},20761:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});var s=i(5662);class n extends s.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},20788:(e,t,i)=>{"use strict";i.d(t,{$H:()=>r,Lh:()=>o,r3:()=>n});var s=i(62083);const n=new class{clone(){return this}equals(e){return this===e}};function r(e,t){return new s.$M([new s.ou(0,"",e)],t)}function o(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new s.rY(i,null===t?n:t)}},20897:e=>{e.exports=function(){function e(e){const t=1e3*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid datetime":i.toISOString().replace(/\.\d{3}Z$/,"Z")}return e.isScalar=!0,e}},20940:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>C});var s=i(66782),n=i(90766),r=i(18447),o=i(74320),a=i(64383),c=i(83069),l=i(36677),h=i(93630),d=i(19131),u=i(19562),g=i(32956),p=i(51934);class m{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var f=i(75295),_=i(73401),v=i(29319);async function C(e,t,i,s,h=r.XO.None,d){const u=t instanceof c.y?function(e,t){const i=t.getWordAtPosition(e),s=t.getLineMaxColumn(e.lineNumber);return i?new l.Q(e.lineNumber,i.startColumn,e.lineNumber,s):l.Q.fromPositions(e,e.with(void 0,s))}(t,i):t,g=e.all(i),p=new o.db;for(const n of g)n.groupId&&p.add(n.groupId,n);function m(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=p.get(i);for(const i of e)t.push(i)}return t}const f=new Map,_=new Set;function v(e,t){if(t=[...t,e],_.has(e))return t;_.add(e);try{const i=m(e);for(const e of i){const i=v(e,t);if(i)return i}}finally{_.delete(e)}}function C(e){const r=f.get(e);if(r)return r;const o=v(e,[]);o&&(0,a.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${o.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const l=new n.Zv;return f.set(e,l.p),(async()=>{if(!o){const t=m(e);for(const e of t){const t=await C(e);if(t&&t.items.length>0)return}}try{if(t instanceof c.y){return await e.provideInlineCompletions(i,t,s,h)}return await(e.provideInlineEdits?.(i,t,s,h))}catch(n){return void(0,a.M_)(n)}})().then((e=>l.complete(e)),(e=>l.error(e))),l.p}const y=await Promise.all(g.map((async e=>({provider:e,completions:await C(e)})))),w=new Map,R=[];for(const n of y){const e=n.completions;if(!e)continue;const t=new b(e,n.provider);R.push(t);for(const s of e.items){const e=S.from(s,t,u,i,d);w.set(e.hash(),e)}}return new E(Array.from(w.values()),new Set(w.keys()),R)}class E{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class b{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class S{static from(e,t,i,n,r){let o,a,c=e.range?l.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,r&&e.completeBracketPairs){o=y(o,c.getStartPosition(),n,r);const t=o.length-e.insertText.length;0!==t&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+t))}a=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(r&&e.completeBracketPairs){e.insertText.snippet=y(e.insertText.snippet,c.getStartPosition(),n,r);const i=e.insertText.snippet.length-t;0!==i&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+i))}const i=(new v.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof v.EY?(o=i.children[0].value,a=void 0):(o=i.toString(),a={snippet:e.insertText.snippet,range:c})}else(0,s.xb)(e.insertText);return new S(o,e.command,c,o,a,e.additionalTextEdits||(0,_.zk)(),e,t)}constructor(e,t,i,s,n,r,o,a){this.filterText=e,this.command=t,this.range=i,this.insertText=s,this.snippetInfo=n,this.additionalTextEdits=r,this.sourceInlineCompletion=o,this.source=a,s=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new S(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new f.WR(this.range,this.insertText)}}function y(e,t,i,s){const n=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,r=i.tokenization.tokenizeLineWithEdit(t,n.length-(t.column-1),e),o=r?.sliceAndInflate(t.column-1,n.length,0);if(!o)return e;const a=function(e,t){const i=new g.Mg,s=new h.Z(i,(e=>t.getLanguageConfiguration(e))),n=new p.tk(new m([e]),s),r=(0,u.T)(n,[],void 0,!0);let o="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,d.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,d.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,d.QB)(i,t.closingBracket.length);else{const e=s.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);o+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)o+=a.substring((0,d.sS)(i),(0,d.sS)((0,d.QB)(i,t.length)));else if(4===t.kind)for(const s of t.children)e(s,i),i=(0,d.QB)(i,s.length)}(r,d.Vp),o}(o,s);return a}},20961:(e,t,i)=>{"use strict";var s=i(10350),n=i(8597),r=i(31450),o=i(80301),a=i(4360),c=i(60002),l=i(78209),h=i(27195),d=i(84001),u=i(32848);i(10691);class g extends h.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,l.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:s.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:h.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class p extends h.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,l.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class m extends h.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,l.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const f=(0,l.aS)("diffEditor","Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,l.aS)("switchSide","Switch Side"),icon:s.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const s=R(e);if(s instanceof a.T){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class v extends r.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,l.aS)("exitCompareMove","Exit Compare Move"),icon:s.W.close,precondition:c.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.exitCompareMove()}}class C extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,l.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:s.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.collapseAllUnchangedRegions()}}class E extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,l.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:s.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.showAllUnchangedRegions()}}class b extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,l.aS)("revert","Revert"),f1:!1,category:f})}run(e,t){const i=function(e,t,i){const s=e.get(o.T);return s.listDiffEditors().find((e=>{const s=e.getModifiedEditor(),n=e.getOriginalEditor();return s&&s.getModel()?.uri.toString()===i.toString()&&n&&n.getModel()?.uri.toString()===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);i instanceof a.T&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const S=(0,l.aS)("accessibleDiffViewer","Accessible Diff Viewer");class y extends h.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:y.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerNext()}}class w extends h.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerPrev()}}function R(e){const t=e.get(o.T).listDiffEditors(),i=(0,n.bq)();if(i)for(const s of t){if(L(s.getContainerDomNode(),i))return s}return null}function L(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}var T=i(50091);(0,h.ug)(g),(0,h.ug)(p),(0,h.ug)(m),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,l.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(c.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,l.kg)("showMoves","Show Moved Code Blocks"),icon:s.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,h.ug)(b);for(const x of[{icon:s.W.arrowRight,key:c.R.diffEditorInlineMode.toNegated()},{icon:s.W.discard,key:c.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertHunk","Revert Block"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertSelection","Revert Selection"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(C),(0,h.ug)(E),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:y.id,title:(0,l.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(c.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),T.w.registerCommandAlias("editor.action.diffReview.next",y.id),(0,h.ug)(y),T.w.registerCommandAlias("editor.action.diffReview.prev",w.id),(0,h.ug)(w)},21152:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n),r+=")"):r+="()",r}}},21377:(e,t,i)=>{e.exports=i(64066)},21478:(e,t,i)=>{"use strict";i.d(t,{M:()=>H,z:()=>F});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(64383),l=i(5662),h=i(74320),d=i(631),u=i(79400),g=i(37734),p=i(55190),m=i(87908),f=i(7085),_=i(36677),v=i(62083),C=i(16223),E=i(87289),b=i(32500),S=i(56942),y=i(18938),w=i(37927),R=i(3730),L=i(60952),T=i(50091),x=i(14718),k=i(63591),A=i(58591),N=i(66261),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(){this._entries=new h.qK(50)}get(e){const t=M._key(e);return this._entries.get(t)}set(e,t){const i=M._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const P=(0,k.u1)("IInlayHintsCache");(0,x.v)(P,M,1);class F{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let H=class{static{s=this}static{this.ID="editor.contrib.InlayHints"}static{this._MAX_DECORATORS=1500}static{this._MAX_LABEL_LEN=43}static get(e){return e.getContribution(s.ID)??void 0}constructor(e,t,i,s,n,r,o){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=s,this._commandService=n,this._notificationService=r,this._instaService=o,this._disposables=new l.Cm,this._sessionDisposables=new l.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new g.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(142)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(142);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(n.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const s=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(s!==this._activeRenderMode){this._activeRenderMode=s;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),h.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let s;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,l.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const r=new Set,h=new o.uC((async()=>{const e=Date.now();s?.dispose(!0),s=new a.Qi;const i=t.onWillDispose((()=>s?.cancel()));try{const i=s.token,n=await R.P8.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(h.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void n.dispose();for(const e of n.provider)"function"!==typeof e.onDidChangeInlayHints||r.has(e)||(r.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{h.isScheduled()||h.schedule()}))));this._sessionDisposables.add(n),this._updateHintsDecorators(n.ranges,n.items),this._cacheHintsForFastRestore(t)}catch(n){(0,c.dz)(n)}finally{s.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(h),this._sessionDisposables.add((0,l.s)((()=>s?.dispose(!0)))),h.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&h.isScheduled()||h.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{s?.cancel();const t=Math.max(h.delay,1250);h.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>h.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new l.Cm,t=e.add(new w.gi(this._editor)),i=new l.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,s=this._getInlayHintLabelPart(t),n=this._editor.getModel();if(!s||!n)return void i.clear();const r=new a.Qi;i.add((0,l.s)((()=>r.dispose(!0)))),s.item.resolve(r.token),this._activeInlayHintPart=s.part.command||s.part.location?new U(s,t.hasTriggerModifier):void 0;const o=n.validatePosition(s.item.hint.position).lineNumber,c=new _.Q(o,1,o,n.getLineMaxColumn(o)),h=this._getInlineHintsForRange(c);this._updateHintsDecorators([c],h),i.add((0,l.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([c],h)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(L.U,e,this._editor,i.location):v.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(a.XO.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(_.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(0,n.sb)(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(L.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){if(6!==e.target.type)return;const t=e.target.detail.injectedText?.options;return t instanceof E.Ho&&t?.attachedData instanceof F?t.attachedData:void 0}async _invokeCommand(e,t){try{await this._commandService.executeCommand(e.id,...e.arguments??[])}catch(i){this._notificationService.notify({severity:A.AI.Error,source:t.provider.displayName,message:i})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,s]of this._decorationsMetadata){if(t.has(s.item))continue;const n=e.getDecorationRange(i);if(n){const e=new R.EP(n,s.item.anchor.direction),i=s.item.with({anchor:e});t.set(s.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const s of t.sort(_.Q.compareRangesUsingStarts)){const t=e.validateRange(new _.Q(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));0!==i.length&&_.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=_.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){const i=[],n=(e,t,s,n,r)=>{const o={content:s,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:r};i.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?o:void 0}}})},o=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(a/3|0)+"px",display:"inline-block"});n(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:a,fontFamily:c,padding:l,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,c);let u={line:0,totalLen:0};for(const p of t){if(u.line!==p.anchor.range.startLineNumber&&(u={line:p.anchor.range.startLineNumber,totalLen:0}),u.totalLen>s._MAX_LABEL_LEN)continue;p.hint.paddingLeft&&o(p,!1);const e="string"===typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let t=0;t<e.length;t++){const i=e[t],o=0===t,c=t===e.length-1,g={fontSize:`${a}px`,fontFamily:`var(${d}), ${m.jU.fontFamily}`,verticalAlign:h?"baseline":"middle",unicodeBidi:"isolate"};(0,r.EI)(p.hint.textEdits)&&(g.cursor="default"),this._fillInColors(g,p.hint),(i.command||i.location)&&this._activeInlayHintPart?.part.item===p&&this._activeInlayHintPart.part.index===t&&(g.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(g.color=(0,I.Yf)(N.Ztu),g.cursor="pointer")),l&&(o&&c?(g.padding=`1px ${0|Math.max(1,a/4)}px`,g.borderRadius=(a/4|0)+"px"):o?(g.padding=`1px 0 1px ${0|Math.max(1,a/4)}px`,g.borderRadius=`${a/4|0}px 0 0 ${a/4|0}px`):c?(g.padding=`1px ${0|Math.max(1,a/4)}px 1px 0`,g.borderRadius=`0 ${a/4|0}px ${a/4|0}px 0`):g.padding="1px 0 1px 0");let f=i.label;u.totalLen+=f.length;let _=!1;const v=u.totalLen-s._MAX_LABEL_LEN;if(v>0&&(f=f.slice(0,-v)+"\u2026",_=!0),n(p,this._ruleFactory.createClassNameRef(g),B(f),c&&!p.hint.paddingRight?C.VW.Right:C.VW.None,new F(p,t)),_)break}if(p.hint.paddingRight&&o(p,!0),i.length>s._MAX_DECORATORS)break}const g=[];for(const[s,r]of this._decorationsMetadata){const t=this._editor.getModel()?.getDecorationRange(s);t&&e.some((e=>e.containsRange(t)))&&(g.push(s),r.classNameRef.dispose(),this._decorationsMetadata.delete(s))}const f=p.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(g,i.map((e=>e.decoration)));for(let s=0;s<t.length;s++){const e=i[s];this._decorationsMetadata.set(t[s],e)}})),f.restore(this._editor)}_fillInColors(e,t){t.kind===v.r4.Parameter?(e.backgroundColor=(0,I.Yf)(N.B2L),e.color=(0,I.Yf)(N.sjA)):t.kind===v.r4.Type?(e.backgroundColor=(0,I.Yf)(N._pU),e.color=(0,I.Yf)(N.HwT)):(e.backgroundColor=(0,I.Yf)(N.WL6),e.color=(0,I.Yf)(N.P6i))}_getLayoutInfo(){const e=this._editor.getOption(142),t=e.padding,i=this._editor.getOption(52),s=this._editor.getOption(49);let n=e.fontSize;(!n||n<5||n>i)&&(n=i);const r=e.fontFamily||s;return{fontSize:n,fontFamily:r,padding:t,isUniform:!t&&r===s&&n===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function B(e){return e.replace(/[ \t]/g,"\xa0")}H=s=O([D(1,S.ILanguageFeaturesService),D(2,b.ILanguageFeatureDebounceService),D(3,P),D(4,T.d),D(5,A.Ot),D(6,k._Y)],H),T.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)(_.Q.isIRange(s));const{inlayHintsProvider:n}=e.get(S.ILanguageFeaturesService),r=await e.get(y.ITextModelService).createModelReference(i);try{const e=await R.P8.create(n,r.object.textEditorModel,[_.Q.lift(s)],a.XO.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{r.dispose()}}))},21852:(e,t,i)=>{"use strict";i.d(t,{s:()=>g});var s=i(8597),n=i(37479),r=i(5662),o=i(10146),a=i(92719),c=i(42904),l=i(48196),h=i(631),d=i(37882);class u{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,o.aI)(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 g extends r.jG{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(s.BC(e,s.$(".monaco-icon-label")))),this.labelContainer=s.BC(this.domNode.element,s.$(".monaco-icon-label-container")),this.nameContainer=s.BC(this.labelContainer,s.$("span.monaco-icon-name-container")),this.nameNode=t?.supportHighlights||t?.supportIcons?this._register(new m(this.nameContainer,!!t.supportIcons)):new p(this.nameContainer),this.hoverDelegate=t?.hoverDelegate??(0,c.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){const r=["monaco-icon-label"],o=["monaco-icon-label-container"];let a="";i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e));const c=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i?.iconPath){let e;c&&s.sb(c)?e=c:(e=s.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=s.Tf(i?.iconPath)}else c&&c.remove();if(this.domNode.classNames=r,this.domNode.element.setAttribute("aria-label",a),this.labelContainer.classList.value="",this.labelContainer.classList.add(...o),this.setupHover(i?.descriptionTitle?this.labelContainer:this.element,i?.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof n._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,i?.labelEscapeNewLines),this.setupHover(e.element,i?.descriptionTitle)):(e.textContent=t&&i?.labelEscapeNewLines?n._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,i?.descriptionTitle||""),e.empty=!t)}if(i?.suffix||this.suffixNode){this.getOrCreateSuffixNode().textContent=i?.suffix??""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){function s(e,t){(0,h.Kg)(t)?e.title=(0,d.pS)(t):t?.markdownNotSupportedFallback?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}s(e,t)}else{const n=(0,l.i)().setupManagedHover(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new u(s.Pl(this.nameContainer,s.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(s.BC(e.element,s.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){if(!this.descriptionNode){const e=this._register(new u(s.BC(this.labelContainer,s.$("span.monaco-icon-description-container"))));this.creationOptions?.supportDescriptionHighlights?this.descriptionNode=this._register(new n._(s.BC(e.element,s.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(s.BC(e.element,s.$("span.label-description"))))}return this.descriptionNode}}class p{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=s.BC(this.container,s.$("a.label-name",{id:t?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const n=e[i],r=t?.domId&&`${t?.domId}_${i}`;s.BC(this.container,s.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&s.BC(this.container,s.$("span.label-separator",void 0,t?.separator||"/"))}}}}class m extends r.jG{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new n._(s.BC(this.container,s.$("a.label-name",{id:t?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t?.matches,void 0,t?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=t?.separator||"/",r=function(e,t,i){if(!i)return;let s=0;return e.map((e=>{const n={start:s,end:s+e.length},r=i.map((e=>a.Q.intersect(n,e))).filter((e=>!a.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-s,end:t-s})));return s=n.end+t.length,r}))}(e,i,t?.matches);for(let o=0;o<e.length;o++){const a=e[o],c=r?r[o]:void 0,l=t?.domId&&`${t?.domId}_${o}`,h=s.$("a.label-name",{id:l,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new n._(s.BC(this.container,h),{supportIcons:this.supportIcons})).set(a,c,void 0,t?.labelEscapeNewLines),o<e.length-1&&s.BC(h,s.$("span.label-separator",void 0,i))}}}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>s,qQ:()=>c});class s{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){const i=r.get(e);if(i)return i;const s=function(e,t){const i=r.get(e);if(i)return i;const s=t.owner?function(e){const t=a.get(e);if(t)return t;const i=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=o.get(i)??0;s++,o.set(i,s);const n=1===s?i:`${i}#${s}`;return a.set(e,n),n}(t.owner)+".":"";let n;const l=t.debugNameSource;if(void 0!==l){if("function"!==typeof l)return s+l;if(n=l(),void 0!==n)return s+n}const h=t.referenceFn;if(void 0!==h&&(n=c(h),void 0!==n))return s+n;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return s+i}return}(e,t);if(s){let t=n.get(s)??0;t++,n.set(s,t);const i=1===t?s:`${s}#${t}`;return r.set(e,i),i}return}(e,this)}}const n=new Map,r=new WeakMap;const o=new Map,a=new WeakMap;function c(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),s=i?i[1]:void 0;return s?.trim()}},22362:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(9748).then(i.bind(i,59748))})},22890:(e,t,i)=>{"use strict";var s=i(31450),n=i(24520),r=i(51861),o=i(86723),a=i(10424);class c extends s.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:r.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(n.L),s=i.getColorTheme();(0,o.Bb)(s.type)?(i.setTheme(this._originalThemeName||((0,o.HD)(s.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,o.HD)(s.type)?a.aQ:a.nr),this._originalThemeName=s.themeName)}}(0,s.Fl)(c)},23034:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>h,nV:()=>d});var s=i(42904),n=i(35315),r=i(10350),o=i(78209);const a=o.kg("caseDescription","Match Case"),c=o.kg("wordsDescription","Match Whole Word"),l=o.kg("regexDescription","Use Regular Expression");class h extends n.l{constructor(e){super({icon:r.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.l{constructor(e){super({icon:r.W.wholeWord,title:c+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.l{constructor(e){super({icon:r.W.regex,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},23157:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n-1),r+=")"):r+="()",r}}},23195:(e,t,i)=>{"use strict";i.d(t,{l:()=>n});var s=i(61850);const n="yql";(0,s.KV)({id:n,extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},23304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(3534).then(i.bind(i,73534))})},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>le});var s,n=i(90766),r=i(64383),o=i(24939),a=i(5662),c=i(80301),l=i(83069),h=i(36677),d=i(84226),u=i(78209),g=i(50091),p=i(84001),m=i(32848),f=i(63591),_=i(59261),v=i(36584),C=i(58591),E=i(9711),b=i(79614),S=i(8597),y=i(35151),w=i(47661),R=i(41234),L=i(36456),T=i(89403),x=i(29163),k=i(87289),A=i(83941),N=i(18938),I=i(3828),O=i(37479),D=i(21852),M=i(26690),P=i(98031),F=i(67841),U=i(19070),H=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},B=function(e,t){return function(i,s){t(i,s,e)}};let W=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof b.y4||e instanceof b.$L}getChildren(e){if(e instanceof b.y4)return e.groups;if(e instanceof b.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};W=H([B(0,N.ITextModelService)],W);class V{getHeight(){return 23}getTemplateId(e){return e instanceof b.$L?K.id:q.id}}let z=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof b.yc){const t=e.parent.getPreview(e)?.preview(e.range);if(t)return t.value}return(0,T.P8)(e.uri)}};z=H([B(0,P.b)],z);class G{getId(e){return e instanceof b.yc?e.id:e.uri}}let j=class extends a.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new D.s(i,{supportHighlights:!0})),this.badge=new I.x(S.BC(i,S.$(".count")),{},U.m$),e.appendChild(i)}set(e,t){const i=(0,T.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const s=e.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat((0,u.kg)("referencesCount","{0} references",s)):this.badge.setTitleFormat((0,u.kg)("referenceCount","{0} reference",s))}};j=H([B(1,F.L)],j);let K=class{static{s=this}static{this.id="FileReferencesRenderer"}constructor(e){this._instantiationService=e,this.templateId=s.id}renderTemplate(e){return this._instantiationService.createInstance(j,e)}renderElement(e,t,i){i.set(e.element,(0,M.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};K=s=H([B(0,f._Y)],K);class Y extends a.jG{constructor(e){super(),this.label=this._register(new O._(e))}set(e,t){const i=e.parent.getPreview(e)?.preview(e.range);if(i&&i.value){const{value:e,highlight:s}=i;t&&!M.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,M.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[s]))}else this.label.set(`${(0,T.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class q{constructor(){this.templateId=q.id}static{this.id="OneReferenceRenderer"}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}class ${getWidgetAriaLabel(){return(0,u.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Q=i(47612),X=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Z=function(e,t){return function(i,s){t(i,s,e)}};class J{static{this.DecorationOptions=k.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"})}constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.Cm,this._callOnModelChange=new a.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:J.DecorationOptions}),i.push(s))}this._editor.changeDecorations((s=>{const n=s.deltaDecorations([],t);for(let t=0;t<n.length;t++)this._decorations.set(n[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,s]of this._decorations){const n=t.getDecorationRange(i);if(!n)continue;let r=!1;if(!h.Q.equalsRange(n,s.range)){if(h.Q.spansMultipleLines(n))r=!0;else{s.range.endColumn-s.range.startColumn!==n.endColumn-n.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(s.id),e.push(i)):s.range=n}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}class ee{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const s=JSON.parse(e);t=s.ratio,i=s.heightInLines}catch{}return{ratio:t||.7,heightInLines:i||18}}}class te extends v.er{}let ie=class extends d.j6{constructor(e,t,i,s,n,r,o,c,l){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=n,this._instantiationService=r,this._peekViewService=o,this._uriLabel=c,this._keybindingService=l,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new R.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new S.fg(0,0),this._isClosing=!1,this._applyTheme(s.getColorTheme()),this._callOnDispose.add(s.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}get isClosing(){return this._isClosing}dispose(){this._isClosing=!0,this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.AS)(this._preview),(0,a.AS)(this._previewNotAvailableMessage),(0,a.AS)(this._tree),(0,a.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(d.zl)||w.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(d.z0)||w.Q1.transparent,primaryHeadingColor:e.getColor(d._X),secondaryHeadingColor:e.getColor(d.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=S.BC(e,S.$("div.messages")),S.jD(this._messageContainer),this._splitView=new y.U(e,{orientation:1}),this._previewContainer=S.BC(e,S.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(x.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),S.jD(this._previewContainer),this._previewNotAvailableMessage=this._instantiationService.createInstance(k.Bz,u.kg("missingPreviewMessage","no preview available"),A.vH,k.Bz.DEFAULT_CREATION_OPTIONS,null),this._treeContainer=S.BC(e,S.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new $,keyboardNavigationLabelProvider:this._instantiationService.createInstance(z),identityProvider:new G,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:d.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(S.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(te,"ReferencesWidget",this._treeContainer,new V,[this._instantiationService.createInstance(K),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(W),t),this._splitView.addView({onDidChange:R.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},y.X.Distribute),this._splitView.addView({onDidChange:R.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},y.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof b.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._disposables.add(this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}))),S.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new S.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.kg("noResults","No results"),S.WU(this._messageContainer),Promise.resolve(void 0)):(S.jD(this._messageContainer),this._decorationsManager=new J(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const s=this._getFocusedReference();s&&this._onDidSelectReference.fire({element:{uri:s.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),S.WU(this._treeContainer),S.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof b.yc?e:e instanceof b.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==L.ny.inMemory?this.setTitle((0,T.Pi)(e.uri),this._uriLabel.getUriLabel((0,T.pD)(e.uri))):this.setTitle(u.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const s=await i;if(!this._model)return void s.dispose();(0,a.AS)(this._previewModelReference);const n=s.object;if(n){const t=this._preview.getModel()===n.textEditorModel?0:1,i=h.Q.lift(e.range).collapseToStart();this._previewModelReference=s,this._preview.setModel(n.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),s.dispose()}};ie=X([Z(3,Q.Gy),Z(4,N.ITextModelService),Z(5,f._Y),Z(6,d.zn),Z(7,F.L),Z(8,P.b)],ie);var se,ne=i(60002),re=i(28290),oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let le=class{static{se=this}static{this.ID="editor.contrib.referencesController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,n,r,o,c){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=n,this._instantiationService=r,this._storageService=o,this._configurationService=c,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),this._widget?.dispose(),this._model?.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let s;if(this._widget&&(s=this._widget.position),this.closeWidget(),s&&e.containsPosition(s))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const n="peekViewLayout",r=ee.fromJSON(this._storageService.get(n,0,"{}"));this._widget=this._instantiationService.createInstance(ie,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(u.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget?(this._storageService.store(n,JSON.stringify(this._widget.layoutData),0,1),this._widget.isClosing||this.closeWidget(),this._widget=void 0):this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:s}=e;if(t)switch(s){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const o=++this._requestIdPool;t.then((t=>{if(o===this._requestIdPool&&this._widget)return this._model?.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.y(e.startLineNumber,e.startColumn),s=this._model.nearestReference(t,i);if(s)return this._widget.setSelection(s).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const s=this._model.nextOrPreviousReference(i,e),n=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();await this._widget.setSelection(s),await this._gotoReference(s,!1),n?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){this._widget?.dispose(),this._model?.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){this._widget?.hide(),this._ignoreModelChangeEvent=!0;const i=h.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(i),this._widget.focusOnReferenceTree();else{const t=se.get(e),s=this._model.clone();this.closeWidget(),e.focus(),t?.toggleWidget(i,(0,n.SS)((e=>Promise.resolve(s))),this._peekMode??!1)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,r.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:s,range:n}=e;this._editorService.openCodeEditor({resource:s,options:{selection:n,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,d.RL)(e);if(!i)return;const s=le.get(i);s&&t(s)}le=se=oe([ae(2,m.fN),ae(3,c.T),ae(4,C.Ot),ae(5,f._Y),ae(6,E.CS),ae(7,p.pG)],le),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,o.m5)(2089,60),when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.w.registerCommand("closeReferenceSearch",(e=>he(e,(e=>e.closeWidget())))),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.M$.and(d.x2.inPeekEditor,m.M$.not("config.editor.stablePeek"))}),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.M$.and(ce,m.M$.not("config.editor.stablePeek"),m.M$.or(ne.R.editorTextFocus,re.J7.negate()))}),_.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),g.w.registerCommand("openReference",(e=>{const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},23812:(e,t,i)=>{"use strict";i.d(t,{k:()=>ai});var s=i(60712),n=i(59284),r=i(46819),o=i(85736),a=i(51301);const c="g-date-",l=(0,i(82435).withNaming)({n:c,e:"__",m:"_"});function h({name:e,value:t,onReset:i,form:r,disabled:o,toStringValue:a}){const c=function({initialValue:e,onReset:t}){const[i,s]=n.useState(null),r=n.useRef(e);n.useEffect((()=>{if(!i||!t)return;const e=()=>{t(r.current)};return i.addEventListener("reset",e),()=>{i.removeEventListener("reset",e)}}),[i,t]);const o=n.useCallback((e=>{var t;s(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return o}({initialValue:t,onReset:i});if(!e)return null;const l=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,s.jsx)("input",{ref:c,type:"hidden",name:e,value:l,disabled:o,form:r})}const d=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75M10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0zM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8z",clipRule:"evenodd"}));var u=i(28664),g=i(84476),p=i(99991);function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(14750),_=i(72837);const v=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last second":"Last second","Last minute":"Last minute","Last {count} second":["Last {{count}} second","Last {{count}} seconds","Last {{count}} seconds"],"Last {count} minute":["Last {{count}} minute","Last {{count}} minutes","Last {{count}} minutes"],"Last {count} hour":["Last {{count}} hour","Last {{count}} hours","Last {{count}} hours"],"Last {count} day":["Last {{count}} day","Last {{count}} days","Last {{count}} days"],"Last {count} week":["Last {{count}} week","Last {{count}} weeks","Last {{count}} weeks"],"Last {count} month":["Last {{count}} month","Last {{count}} months","Last {{count}} months"],"Last {count} year":["Last {{count}} year","Last {{count}} years","Last {{count}} years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),C=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last second":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u0430","Last minute":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043c\u0438\u043d\u0443\u0442\u0430","Last {count} second":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"],"Last {count} minute":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043c\u0438\u043d\u0443\u0442\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"],"Last {count} hour":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0447\u0430\u0441","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u043e\u0432"],"Last {count} day":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0434\u0435\u043d\u044c","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u0435\u0439"],"Last {count} week":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043d\u0435\u0434\u0435\u043b\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"],"Last {count} month":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u043c\u0435\u0441\u044f\u0446","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"],"Last {count} year":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0433\u043e\u0434","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0433\u043e\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043b\u0435\u0442"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),E=(0,_.N)({en:v,ru:C},`${c}relative-range-date-picker-presets`),b=[{from:"now-1d",to:"now",get title(){return E("Last day")}},{from:"now-3d",to:"now",get title(){return E("Last 3 days")}},{from:"now-1w",to:"now",get title(){return E("Last week")}},{from:"now-1M",to:"now",get title(){return E("Last month")}},{from:"now-3M",to:"now",get title(){return E("Last 3 months")}},{from:"now-6M",to:"now",get title(){return E("Last 6 months")}},{from:"now-1y",to:"now",get title(){return E("Last year")}},{from:"now-3y",to:"now",get title(){return E("Last 3 years")}}],S=[{from:"now-5m",to:"now",get title(){return E("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return E("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return E("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return E("Last hour")}},{from:"now-3h",to:"now",get title(){return E("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return E("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return E("Last 12 hours")}}],y=[{from:"now/d",to:"now/d",get title(){return E("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return E("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return E("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return E("This week")}},{from:"now/M",to:"now/M",get title(){return E("This month")}},{from:"now/y",to:"now/y",get title(){return E("This year")}},{from:"now/d",to:"now",get title(){return E("From start of day")}},{from:"now/w",to:"now",get title(){return E("From start of week")}},{from:"now/M",to:"now",get title(){return E("From start of month")}},{from:"now/y",to:"now",get title(){return E("From start of year")}}],w=S.concat(b,y),R=/^now-(\d+)([smhdwMy])$/,L={s:"Last second",m:"Last minute",h:"Last hour",d:"Last day",w:"Last week",M:"Last month",y:"Last year"},T={s:"Last {count} second",m:"Last {count} minute",h:"Last {count} hour",d:"Last {count} day",w:"Last {count} week",M:"Last {count} month",y:"Last {count} year"};function x(e,t){return e.filter((e=>{const i=(0,f.bQ)(e.from),s=(0,f.bQ)(e.to,{roundUp:!0});return!(!i||!s)&&(!s.isBefore(i)&&(!t||!i.isBefore(t)))}))}function k(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.KQ)({timeZone:e}).timeZone():e}(e)}function A(e){return`UTC ${(0,f.KQ)({timeZone:e}).format("Z")}`}function N({value:e,timeZone:t,alwaysShowAsAbsolute:i,format:s="L",presets:n}){var r,o,a,c,l,h;if(!e)return"";const d="default"===t?"":` (${A(t)})`;let u="";e.start&&(u="relative"!==e.start.type||i?null!==(o=null===(r=(0,f.bQ)(e.start.value,{timeZone:t}))||void 0===r?void 0:r.format(s))&&void 0!==o?o:"":e.start.value);let g="";if(e.end&&(g="relative"!==e.end.type||i?null!==(c=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(s))&&void 0!==c?c:"":e.end.value),!i&&"relative"===(null===(l=e.start)||void 0===l?void 0:l.type)&&"relative"===(null===(h=e.end)||void 0===h?void 0:h.type))return`${function(e,t,i=w){const s=e.replace(/\s+/g,""),n=t.replace(/\s+/g,"");for(const r of i)if(r.from===s&&r.to===n)return r.title;if("now"===t){const e=R.exec(s);if(e){const[,t,i]=e;if(["s","m","h","d","w","M","y"].includes(i)){const e=1===Number(t)?L[i]:T[i];return E(e,{count:t})}}}return s+" \u2014 "+n}(e.start.value,e.end.value,n)}`;return`${u} \u2014 ${g}${d}`}const I=JSON.parse('{"Range date picker":"Range date picker"}'),O=JSON.parse('{"Range date picker":"\u0412\u044b\u0431\u043e\u0440 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u0430\u0442"}'),D=(0,_.N)({en:I,ru:O},`${c}relative-range-date-picker-control`),M=l("relative-range-date-picker-control"),P=n.forwardRef((({props:e,state:t,open:i,isMobile:r,onClick:o,onKeyDown:a,onFocus:c,onClickCalendar:l,onUpdate:h},f)=>{var _;const{alwaysShowAsAbsolute:v,presetTabs:C,getRangeTitle:E}=e,b=e.format||"L",S=n.useMemo((()=>"function"===typeof E?E(t.value,t.timeZone):N({value:t.value,timeZone:t.timeZone,alwaysShowAsAbsolute:v,format:b,presets:null===C||void 0===C?void 0:C.flatMap((({presets:e})=>e))})),[v,b,E,C,t.timeZone,t.value]),y=e.validationState||(t.isInvalid?"invalid":void 0),w=null!==(_=e.errorMessage)&&void 0!==_?_:t.errors.join("\n"),R={id:e.id,role:"combobox","aria-haspopup":"dialog","aria-expanded":i,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:e.disabled,readOnly:e.readOnly,onClick:l,onKeyDown:a};return e.renderControl?e.renderControl({ref:f,value:t.value,title:S,validationState:y,errorMessage:w,open:i,triggerProps:R}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(u.k,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:S,placeholder:e.placeholder,onUpdate:h,controlProps:Object.assign(Object.assign({className:M("input",{mobile:r})},R),{disabled:r,onClick:o}),onKeyDown:a,onFocus:c,validationState:y,errorMessage:w,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,s.jsx)(g.$,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":i,"aria-label":D("Range date picker")},onClick:l,children:(0,s.jsx)(p.I,{data:d})})}),r?(0,s.jsx)("button",{className:M("mobile-trigger",{"has-clear":Boolean(e.hasClear&&t.value),"has-errors":t.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:o}):null]})}));P.displayName="Control";var F=i(12640),U=i(39238);const H=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),B=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"}));var W=i(32084),V=i(9187),z=i(38602),G=i(33705);function j({placeholderValue:e,timeZone:t}){return null!==e&&void 0!==e?e:(0,f.KQ)({timeZone:t}).set("hour",0).set("minute",0).set("second",0)}function K(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}function Y(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function q(e,t,i){return(0,f.KQ)({input:e,timeZone:i}).format(t)}function $(e,t){const i=n.useRef(null),s=t.isCellFocused(e);n.useEffect((()=>{var e;s&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);const r=t.focusedDate.isSame(e,t.mode)?0:-1,o=t.isCellDisabled(e),a=t.isSelected(e),c="highlightedRange"in t&&t.highlightedRange,l=Boolean(c&&a),h=a&&c&&e.isSame(c.start,t.mode),d=a&&c&&e.isSame(c.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!o&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){switch(t.mode){case"days":return`${q(e,"dddd",t.timeZone)}, ${q(e,"LL",t.timeZone)}`;case"months":return`${q(e,"MMMM YYYY",t.timeZone)}`;case"quarters":return`${q(e,"[Q]Q YYYY",t.timeZone)}`;case"years":return`${q(e,"YYYY",t.timeZone)}`;default:return""}}(e,t),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":o?"true":void 0},C={ref:i,role:"button",tabIndex:o?void 0:r,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let E=q(e,"D",t.timeZone);return"months"===t.mode?E=q(e,"MMM",t.timeZone):"quarters"===t.mode?E=q(e,"[Q]Q",t.timeZone):"years"===t.mode&&(E=q(e,"YYYY",t.timeZone)),{cellProps:v,buttonProps:C,formattedDate:E,isDisabled:o,isSelected:a,isRangeSelection:l,isSelectionStart:h,isSelectionEnd:d,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}const Q=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),X=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),Z=(0,_.N)({en:Q,ru:X},`${c}calendar`),J="yc-button_disabled g-button_disabled";function ee(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:Z("Switch to months view"),quarters:Z("Switch to quarters view"),years:Z("Switch to years view")}[t[i]]}const te=["days","months","quarters","years"],ie=l("calendar"),se=n.forwardRef((function(e,t){const{state:i}=e,{calendarProps:r,modeButtonProps:o,nextButtonProps:c,previousButtonProps:l}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:q(t.focusedDate,"days"===t.mode?"MMMM YYYY":"YYYY",t.timeZone),{focusWithinProps:s}=(0,a.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),r=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},s),o=t.availableModes.indexOf(t.mode),c=o+1===t.availableModes.length,l=o+2===t.availableModes.length,h=t.disabled||c,d={disabled:t.disabled,className:h?J:void 0,onClick:h?void 0:()=>{t.zoomOut(),l&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":ee(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=n.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();n.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?J:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":Z("Previous"),"aria-disabled":g?"true":void 0}},m=n.useRef(!1),f=t.disabled||t.isNextPageInvalid();return n.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:r,modeButtonProps:d,nextButtonProps:{disabled:t.disabled,className:f?J:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":Z("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return n.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,s.jsxs)("div",Object.assign({},r,{className:ie({size:e.size}),children:[(0,s.jsxs)("div",{className:ie("header"),children:[(0,s.jsx)(g.$,Object.assign({},o,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,s.jsx)("span",{className:ie("mode-label",ie("years-label")),children:o.children},"label"):[(0,s.jsx)("span",{className:ie("mode-label"),children:o.children},"label"),(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(G.I,{direction:"bottom"})},"icon")]})),(0,s.jsxs)("div",{className:ie("controls"),children:[(0,s.jsx)(g.$,Object.assign({},l,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(V.A,{className:ie("control-icon")})})})),(0,s.jsx)(g.$,Object.assign({},c,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(z.A,{className:ie("control-icon")})})}))]})]}),(0,s.jsx)(ne,{state:i})]}))}));function ne({state:e}){const[t,i]=n.useState((()=>Object.assign(Object.assign({},e),{isFocused:!1}))),r=e.mode!==t.mode,o=!e.startDate.isSame(t.startDate,"days");let c;r?c=te.indexOf(t.mode)>te.indexOf(e.mode)?"zoom-out":"zoom-in":o&&(c=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:l}=function(e){const{focusWithinProps:t}=(0,a.R)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:q(e.focusedDate,"days"===e.mode?"MMMM YYYY":"YYYY",e.timeZone),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(e);return(0,s.jsxs)("div",Object.assign({className:ie("grid")},l,{children:[c&&(0,s.jsx)(re,{className:ie("previous-state"),state:t,animation:c}),(0,s.jsx)(re,{className:ie("current-state"),state:e,animation:c,onAnimationEnd:()=>{i(Object.assign(Object.assign({},e),{isFocused:!1}))}},"current")]}))}function re({className:e,state:t,animation:i,onAnimationEnd:n}){return(0,s.jsxs)("div",{className:ie("content",{animation:i},e),onAnimationEnd:n,role:"presentation",children:["days"===t.mode&&(0,s.jsx)(oe,{state:t}),(0,s.jsx)(ae,{state:t})]})}function oe({state:e}){const t=function(e){const t=[],i=(0,f.KQ)({timeZone:e.timeZone}).startOf("week");for(let s=0;s<7;s++){const e=i.add({days:s});t.push(e)}return t}(e);return(0,s.jsx)("div",{className:ie("grid-row"),role:"row",children:t.map((t=>(0,s.jsx)("div",{className:ie("weekday",{weekend:e.isWeekend(t)}),role:"columnheader","aria-label":q(t,"dddd",e.timeZone),children:q(t,"dd",e.timeZone)},t.day())))})}function ae({state:e}){const t="days"===e.mode?6:4,i="days"===e.mode?7:3+("quarters"===e.mode?1:0),n=function(e){const t=[],i=(0,f.KQ)({input:e.startDate,timeZone:e.timeZone});if("days"===e.mode){const e=i.startOf("week");for(let i=0;i<42;i++)t.push(e.add({days:i}))}else if("quarters"===e.mode)for(let s=0;s<16;s++)t.push(i.add(s,"quarters"));else for(let s=0;s<12;s++)t.push(i.add({[e.mode]:s}));return t}(e);return(0,s.jsx)("div",{className:ie("grid-rowgroup",{mode:e.mode}),role:"rowgroup",children:[...new Array(t).keys()].map((t=>(0,s.jsxs)("div",{className:ie("grid-row"),role:"row",children:["quarters"===e.mode?(0,s.jsx)("span",{role:"rowheader",className:ie("grid-rowgroup-header"),children:q(n[t*i],"YYYY",e.timeZone)}):null,n.slice(t*i,(t+1)*i).map((t=>(0,s.jsx)(ce,{date:t,state:e},t.unix())))]},t)))})}function ce({date:e,state:t}){const{cellProps:i,buttonProps:n,formattedDate:r,isDisabled:o,isSelected:a,isRangeSelection:c,isSelectionStart:l,isSelectionEnd:h,isOutsideCurrentRange:d,isUnavailable:u,isCurrent:g,isWeekend:p}=$(e,t);return(0,s.jsx)("div",Object.assign({},i,{children:(0,s.jsx)("div",Object.assign({},n,{className:ie("button",{disabled:o,selected:a,"range-selection":c,"selection-start":l,"selection-end":h,"out-of-boundary":d,unavailable:u,current:g,weekend:p}),children:r}))}))}function le(e){const t=e?e.timeZone():"default",[i,s]=n.useState(t);e&&t!==i&&s(t);return e?t:i}const he={days:!0,months:!0,quarters:!1,years:!0};function de(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function ue(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=de(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function ge(e,t,i,s="days"){return!K(e,t,i).isSame(e,s)}const pe=n.forwardRef((function(e,t){const i=function(e){var t,i,s;const{disabled:r,readOnly:a,modes:c=he}=e,[l,h]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),d=te.filter((e=>c[e])),u=d[0]||"days",[g,p]=(0,o.P)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&d.includes(g)?g:u,_=le(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,C=n.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),E=n.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),b=n.useMemo((()=>e.focusedValue?K(e.focusedValue.timeZone(v),C,E):e.focusedValue),[e.focusedValue,C,E,v]),S=n.useMemo((()=>{var t;return K((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:l)||void 0===t?void 0:t.timeZone(v))||j({timeZone:v}).startOf(u),C,E)}),[E,C,e.defaultFocusedValue,v,l,u]),[y,w]=(0,o.P)(b,S,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),R=null!==(s=null===y||void 0===y?void 0:y.timeZone(v))&&void 0!==s?s:K(j({timeZone:v}),C,E);function L(e){w(K(e.startOf(m),C,E))}ge(R,C,E)&&w(K(R,C,E));const[T,x]=n.useState(e.autoFocus||!1),k=de(R,m),A=ue(R,m);return{disabled:r,readOnly:a,value:l,setValue(e){if(!r&&!a){let t=K(e,C,E);if(this.isCellUnavailable(t))return;l&&(t=Y(t,l.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e,t=!1){r||(a||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:C,maxValue:E,focusedDate:R,startDate:k,endDate:A,setFocusedDate(e){L(e),x(!0)},focusNextCell(){L(R.add(1,this.mode))},focusPreviousCell(){L(R.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?L(R.add(1,"week")):"quarters"===this.mode?L(R.add(1,"years")):L(R.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?L(R.subtract(1,"week")):"quarters"===this.mode?L(R.subtract(1,"years")):L(R.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?L(R.add({months:e?12:1})):"quarters"===this.mode?L(R.add(4,"years")):L(R.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?L(R.subtract({months:e?12:1})):"quarters"===this.mode?L(R.subtract(4,"years")):L(R.subtract(12,this.mode))},focusSectionStart(){L(de(R,this.mode))},focusSectionEnd(){L(ue(R,this.mode))},zoomIn(){const e=d[d.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=d[d.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(R,!0)},isFocused:T,setFocused:x,isInvalid(e){return ge(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(l&&e.isSame(l.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&R&&e.isSame(R,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(t){return"days"===this.mode&&("function"===typeof e.isWeekend?e.isWeekend(t):function(e){return[0,6].includes(e.day())}(t))},isCurrent(e){return(0,f.KQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:d}}(e);return(0,s.jsx)(se,Object.assign({ref:t},e,{state:i}))}));var me=i(27145);const fe=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),_e=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),ve=(0,_.N)({en:fe,ru:_e},`${c}date-field`),Ce={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},Ee={start:"[",end:"]"},be={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function Se(e){return 4===(0,f.KQ)().format(e).length}function ye(e,t){const{type:i,format:s}=e;switch(i){case"year":{const e=Se(s);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.KQ)().set("hour",15).format(e)}(s)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function we(e,t){const i=e.type;switch(i){case"year":return Se(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const Re={weekday:"day",day:"date",dayPeriod:"hour"};function Le(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in Re?Re[e]:e}function Te(e,t){switch(e.type){case"year":return ve("year_placeholder").repeat((0,f.KQ)().format(t).length);case"month":return ve("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return ve("day_placeholder").repeat(2);case"weekday":return ve("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return ve("hour_placeholder").repeat(2);case"minute":return ve("minute_placeholder").repeat(2);case"second":return ve("second_placeholder").repeat(2);case"dayPeriod":return ve("dayPeriod_placeholder");default:return t}}function xe(e){const t=[],i=(0,f.cS)(e);let s="",n=!1,r=!1;for(let o=0;o<i.length;o++){const e=i[o]||"";if(r){if(e===Ee.end){r=!1;continue}s+=e}else e.match(/[a-zA-Z]/)?(n&&(Ae(t,s),s=""),n=!1,s+=e):(n||(ke(t,s),s=""),n=!0,e===Ee.start?r=!0:s+=e)}return s&&(n?Ae(t,s):ke(t,s)),t}function ke(e,t){if(!t)return;const i=function(e){const t=be[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),s=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return Se(i)?"0001"===(0,f.KQ)().set("year",1).format(i):"01"===(0,f.KQ)().set("year",2001).format(i);case"month":return(0,f.KQ)().startOf("year").format(i).length>1;case"day":return(0,f.KQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.KQ)().startOf("week").format(i).length>1;case"hour":return(0,f.KQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.KQ)().set("minute",1).format(i).length>1;case"second":return(0,f.KQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:Te(i,t),options:Ne(i,t),hasLeadingZeros:s}))}function Ae(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function Ne(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let s=(0,f.KQ)().startOf("year");const n=[];for(let e=0;e<12;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"months");return n}case"dayPeriod":{const e=(0,f.KQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let s=(0,f.KQ)().day(0);const n=[];for(let e=0;e<7;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"day");return n}}}function Ie(e,t,i){let s=1;const n=[];let r=-1;for(let o=0;o<e.length;o++){const a=e[o];if(!a)continue;const c=De(a,t,i,s,r);if(n.push(c),Oe(a)){for(let e=Math.max(0,r);e<=o;e++){const t=n[e];t&&(t.nextEditableSection=o,-1===t.previousEditableSection&&(t.previousEditableSection=o))}r=o}s+=c.textValue.length}return n}function Oe(e){var t;return null!==(t=Ce[e.type])&&void 0!==t&&t}function De(e,t,i,s,n){const r=Oe(e);let o=e.placeholder;(r&&i[e.type]||"timeZoneName"===e.type)&&(o=t.format(e.format),"digit"===e.contentType&&o.length<e.placeholder.length&&(o=o.padStart(e.placeholder.length,"0"))),o="\u2068"+o+"\u2069";const a=o.length;return Object.assign(Object.assign(Object.assign({},e),{value:we(e,t),textValue:o,start:s,end:s+a,modified:!1,previousEditableSection:n,nextEditableSection:n}),ye(e,t))}function Me(e,t){const i="all"===t||-1===t?0:t,s=e[i];return s&&!Ce[s.type]?s.nextEditableSection:s?i:-1}function Pe(e){let t=(0,f.KQ)(e);return t.isValid()||(t=(0,f.KQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function Fe(e,t){return Object.keys(e).every((e=>t[e]))}function Ue(e,t){const i=n.useRef(null),[,s]=n.useState({});function r(t){e.setSelectedSections(t),s({})}function o(){var t,n;e.focusSectionInPosition(null!==(n=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==n?n:0),s({})}n.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const s=e.sections[e.selectedSectionIndexes.startIndex],n=e.sections[e.selectedSectionIndexes.endIndex];if(s&&n){const e=s.start,i=n.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=n.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(s){var n;if(null===(n=t.onFocus)||void 0===n||n.call(t,s),null!==e.selectedSectionIndexes)return;const a=s.target,c=!i.current;setTimeout((()=>{a&&a===i.current&&(c?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?r("all"):o())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),r(-1)},onKeyDown(i){var s;null===(s=t.onKeyDown)||void 0===s||s.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),r("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly,inputMode:a,onClick(){o()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],s=/^\d+$/.test(i),n=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&s||"letter"===t.contentType&&n)))return void e.onInput(i);if(s||n)return}e.setValueFromString(i)}}}}}const He={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function Be(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),a=le(e.value||e.defaultValue||e.placeholderValue),c=e.timeZone||a,l=e=>{r(e?e.timeZone(a):e)},[h,d]=n.useState((()=>j({placeholderValue:e.placeholderValue,timeZone:c}))),u=e.format||"L",g=function(e){const t=e,[i,s]=n.useState((()=>xe(t))),[r,o]=n.useState(t);return t!==r&&(o(t),s(xe(t))),i}(u),p=n.useMemo((()=>g.filter((e=>Ce[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=n.useState((()=>s?Object.assign({},p):{}));let _=m[0];const v=m[1];s&&!Fe(p,_)&&v(Object.assign({},p)),!s&&Object.keys(p).length>0&&Fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),d(j({placeholderValue:e.placeholderValue,timeZone:c})));const C=s&&s.isValid()&&Fe(p,_)?s.timeZone(c):h.timeZone(c),E=function(e,t,i){const[s,r]=n.useState((()=>({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)})));e===s.sections&&i===s.validSegments&&t.isSame(s.value)&&t.timeZone()===s.value.timeZone()||r({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)});return s}(g,C,_),[b,S]=n.useState(-1),y=n.useMemo((()=>{if(-1===b)return null;if("all"===b)return{startIndex:0,endIndex:E.editableSections.length-1};if("number"===typeof b)return{startIndex:b,endIndex:b};if("string"===typeof b){const e=E.editableSections.findIndex((e=>e.type===b));return{startIndex:e,endIndex:e}}return b}),[b,E.editableSections]);function w(t){e.disabled||e.readOnly||(Fe(p,_)?s&&t.isSame(s)||l(t):(s&&l(null),d(t)))}function R(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const L=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(s,e.minValue,e.maxValue)?"invalid":void 0)||(s&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,s))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:s,editableSections:r,selectedSectionIndexes:o,selectedSections:a,isEmpty:c,flushAllValidSections:l,flushValidSection:h,setSelectedSections:d,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:C}=e,E=n.useRef(""),{hasDate:b,hasTime:S}=n.useMemo((()=>{let e=!1,t=!1;for(const i of r)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[r]);return{value:t,isEmpty:c,displayValue:s,setValue:u,setDate:g,text:(y=r,"\u2066"+y.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:r,hasDate:b,hasTime:S,selectedSectionIndexes:o,validationState:i,setSelectedSections(e){E.current="",d(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,s=this.sections[i];s&&this.setSelectedSections(Ce[s.type]?i:s.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusPreviousSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&d(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,He[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-(He[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(E.current="","all"===a)return void this.clearAll();const t=Me(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],s=j({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),n=f(t);let r=n;if("dayPeriod"===i.type){const e=n.hour()>=12,t=s.hour()>=12;e&&!t?r=n.set("hour",n.hour()-12):!e&&t&&(r=n.set("hour",n.hour()+12))}else{const e=Le(i.type);r=n.set(e,s[e]())}_(t,r)},clearAll(){if(this.readOnly||this.disabled)return;E.current="",l(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=Me(this.sections,a);if(-1===t)return;const i=this.sections[t];let s=E.current+e;const n=n=>{var r,o,a;let c="month"===i.type?n-1:n;const l=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(c>(null!==(r=i.maxValue)&&void 0!==r?r:0)&&(c=Number(e)-("month"===i.type?1:0),s=e,c>(null!==(o=i.maxValue)&&void 0!==o?o:0)))return void(E.current="")}else n>12&&(c=Number(e)),12===i.minValue&&c>1&&(c+=12);const h=c>0||0===c&&l;h&&m(t,c),Number(n+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||s.length>=String(i.maxValue).length?(E.current="",h&&this.focusNextSection()):E.current=s},r=n=>{var r;const o=null!==(r=i.options)&&void 0!==r?r:[];let a=n.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)));if(0===c.length&&(n!==e&&(a=e.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)))),0===c.length))return void(E.current="");const l=c[0],h=o.indexOf(l);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),c.length>1?E.current=s:(E.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(s)))return;n(Number(s));break;case"dayPeriod":r(s);break;case"weekday":case"month":Number.isInteger(Number(s))?n(Number(s)):r(s)}},setValueFromString:e=>(E.current="",C(e))};var y}({value:s,displayValue:C,placeholderValue:e.placeholderValue,timeZone:c,validationState:L,editableSections:E.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:y,selectedSections:b,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=E.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:S,setValue:w,setDate:l,adjustSection:function(e,t){const i=E.editableSections[e];i&&(_[i.type]?w(function(e,t,i){var s;let n=null!==(s=e.value)&&void 0!==s?s:0;if("dayPeriod"===e.type)n=t.hour()+(t.hour()>=12?-12:12);else{n+=i;const t=e.minValue,s=e.maxValue;if("number"===typeof t&&"number"===typeof s){const e=s-t+1;n=(n-t+e)%e+t}}"year"!==e.type||Se(e.format)||(n=(0,f.KQ)({input:`${n}`.padStart(2,"0"),format:e.format}).year());const r=Le(e.type);return t.set(r,n)}(i,C,t)):(R(i.type),Object.keys(_).length>=Object.keys(p).length&&w(C)))},setSection:function(e,t){const i=E.editableSections[e];i&&(R(i.type),w(function(e,t,i){const s=e.type;switch(s){case"year":return t.set("year",Se(e.format)?i:(0,f.KQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(Le(s),i);case"dayPeriod":{const e=t.hour(),s=e>=12;return i>=12===s?t:t.set("hour",s?e-12:e+12)}case"hour":{let s=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==s||(s=0),e&&s<12&&(s+=12)}return t.set("hour",s)}case"minute":case"second":return t.set(s,i)}return t}(i,C,t)))},getSectionValue:function(e){return C},setSectionValue:function(e,t){w(t)},createPlaceholder:function(){return j({placeholderValue:e.placeholderValue,timeZone:c}).timeZone(c)},setValueFromString:function(e){const t=function(e,t,i){let s=Pe({input:e,format:t,timeZone:i});s.isValid()&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(s=Y(s,Pe({input:e,format:t})));return s}(e,u,c);return!!t.isValid()&&(l(t),!0)}})}const We=l("date-field");function Ve(e){var{className:t}=e,i=(0,me.Tt)(e,["className"]);const r=Be(i),{inputProps:o}=Ue(r,i),[c,l]=n.useState(!1),{focusWithinProps:d}=(0,a.R)({onFocusWithinChange(e){l(e)}});return(0,s.jsxs)("div",Object.assign({className:We(null,t),style:i.style},d,{children:[(0,s.jsx)(u.k,Object.assign({},o,{value:r.isEmpty&&!c&&i.placeholder?"":o.value})),(0,s.jsx)(h,{name:i.name,value:r.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{r.setDate(e)},disabled:r.disabled,form:i.form})]}))}const ze=l("mobile-calendar");function Ge({props:e,state:t}){var i,n;let r="date";return t.hasTime&&t.hasDate?r="datetime-local":t.hasTime&&(r="time"),(0,s.jsx)("input",{className:ze(),disabled:e.disabled,type:r,value:Ke(t.dateFieldState.value,r),id:e.id,min:Ke(null===(i=e.minValue)||void 0===i?void 0:i.timeZone(t.timeZone),r),max:Ke(null===(n=e.maxValue)||void 0===n?void 0:n.timeZone(t.timeZone),r),tabIndex:-1,onChange:i=>{var s,n;if(e.readOnly)return;const o=i.target.value;if(o){const i=(0,f.KQ)({input:o,format:je(r),timeZone:"system"}).timeZone(t.timeZone,!0);let a=t.hasDate?i:j({placeholderValue:null===(s=e.placeholderValue)||void 0===s?void 0:s.timeZone(t.timeZone),timeZone:t.timeZone});a=t.hasTime?Y(a,i):t.value?Y(a,t.value.timeZone(t.timeZone)):Y(a,j({placeholderValue:null===(n=e.placeholderValue)||void 0===n?void 0:n.timeZone(t.timeZone),timeZone:t.timeZone})),t.setValue(a)}else t.setValue(null)}})}function je(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Ke(e,t){if(!e)return"";const i=je(t);return e.format(i)}const Ye=l("stub-button");function qe({size:e,icon:t}){return(0,s.jsx)("span",{className:Ye({size:e}),children:(0,s.jsx)("span",{className:Ye("icon"),children:(0,s.jsx)(p.I,{data:t})})})}function $e(...e){const t=Object.assign({},e[0]);for(let i=1;i<e.length;i++){const s=e[i];if(s)for(const e of Object.keys(s)){const i=t[e],n=s[e];"function"===typeof i&&"function"===typeof n&&e.startsWith("on")&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Qe(i,n):t[e]="className"===e&&"string"===typeof i&&"string"===typeof n?i+" "+n:"controlProps"===e&&"object"===typeof i&&"object"===typeof n?$e(i,n):void 0===n?i:n}}return t}function Qe(...e){return(...t)=>{for(const i of e)"function"===typeof i&&i(...t)}}const Xe=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ze=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Je=(0,_.N)({en:Xe,ru:Ze},`${c}relative-date-picker`);function et(e,t){var{onFocus:i,onBlur:s}=t,r=(0,me.Tt)(t,["onFocus","onBlur"]);const{mode:c,setMode:l,datePickerState:h,relativeDateState:d}=e,[u,g]=n.useState("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=n.useState(d.lastCorrectDate);p!==d.lastCorrectDate&&(f(d.lastCorrectDate),g(d.lastCorrectDate));const[_,v]=n.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:C}=(0,a.R)({onFocusWithin:i,onBlurWithin:s,onFocusWithinChange(t){t||e.setActive(!1)}}),[E,b]=(0,o.P)(void 0,!1,r.onOpenChange);!e.isActive&&E&&b(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),b(!0))},errorMessage:r.errorMessage,errorPlacement:r.errorPlacement,controlProps:{onClick:()=>{e.disabled||E||(e.setActive(!0),b(!0))},role:"combobox","aria-expanded":E}},{inputProps:y}=Ue(h.dateFieldState,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:w}=function(e,t){const[i,s]=n.useState(e.lastCorrectDate),[r,o]=n.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(s(e.lastCorrectDate),o(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:r,onFocusUpdate:o},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(d,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let R=r.validationState;R||(R="relative"===c?d.validationState:h.dateFieldState.validationState);const L=n.useRef(null),T=(0,W.N)(L,"relative"===c?w.controlRef:y.controlRef),x=n.useRef(null);function k(){setTimeout((()=>{var e;null===(e=x.current)||void 0===e||e.focus()}))}function A(){setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus({preventScroll:!0})}))}const N=n.useRef(null);return{groupProps:Object.assign(Object.assign({ref:N,tabIndex:-1,role:"group"},C),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),b(!0),k())}}),fieldProps:$e(S,"relative"===c?w:y,"absolute"===c&&h.dateFieldState.isEmpty&&!e.isActive&&r.placeholder?{value:""}:void 0,{controlRef:T,validationState:R}),modeSwitcherProps:{size:m(r.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===c,extraProps:{"aria-label":Je("Formula input mode")},onClick:()=>{if(l("relative"===c?"absolute":"relative"),"relative"===c){const e=h.value;e&&g(e)}else d.parsedDate&&g(d.parsedDate);A()}},calendarButtonProps:{size:m(r.size),disabled:e.disabled,extraProps:{"aria-label":Je("Calendar"),"aria-haspopup":"dialog","aria-expanded":E},view:"flat-secondary",onClick:()=>{e.setActive(!0),b(!E),E||k()}},popupProps:{open:E,onEscapeKeyDown:()=>{b(!1),A()},onOutsideClick:e=>{var t;e.target&&!(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))&&b(!1)},onTransitionExited:()=>{g("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:x,size:"s"===r.size?"m":r.size,readOnly:r.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(b(!1),A())},focusedValue:u,onFocusUpdate:g,minValue:r.minValue,maxValue:r.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:r.timeZone,hasClear:r.hasClear,size:r.size}}}const tt=function({getPlaceholderTime:e,mergeDateTime:t,setTimezone:i,getDateTime:s,useDateFieldState:r}){return function(a){var c,l;const{disabled:h,readOnly:d}=a,[u,g]=(0,o.P)(a.open,null!==(c=a.defaultOpen)&&void 0!==c&&c,a.onOpenChange),p=g,[m,f]=(0,o.P)(a.value,null!==(l=a.defaultValue)&&void 0!==l?l:null,a.onUpdate),[_,v]=n.useState(null),[C,E]=n.useState(null),b=le(s(a.value)||s(a.defaultValue)||a.placeholderValue),S=a.timeZone||b;let y=_,w=C;const R=a.format||"L",L=(e,s)=>{h||d||(f(i(t(e,s),b)),v(null),E(null))},T=r(Object.assign(Object.assign({},a),{value:m,onUpdate(e){e?L(e,e):f(null)},disabled:h,readOnly:d,validationState:a.validationState,minValue:a.minValue,maxValue:a.maxValue,isDateUnavailable:a.isDateUnavailable,format:R,placeholderValue:a.placeholderValue,timeZone:S})),x=n.useMemo((()=>{if(!T.hasTime)return;const e=[],t=T.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=T.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const s=T.sections.find((e=>"second"===e.type));s&&e.push(s.format);const n=T.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(n?` ${n.format}`:"")}),[T.hasTime,T.sections]);m&&(y=i(m,S),T.hasTime&&(w=i(m,S)));return T.hasTime&&!w&&(w=T.displayValue),{value:m,setValue(e){a.readOnly||a.disabled||f(e?i(e,b):null)},dateValue:y,timeValue:w,setDateValue:e=>{if(h||d)return;const t=!T.hasTime;T.hasTime?w||t?L(e,w||e):v(e):L(e,e),t&&p(!1,"ValueSelected")},setTimeValue:t=>{if(h||d)return;const i=null!==t&&void 0!==t?t:e(a.placeholderValue,S);y?L(y,i):E(i)},disabled:h,readOnly:d,format:R,hasDate:T.hasDate,hasTime:T.hasTime,timeFormat:x,timeZone:S,isOpen:u,setOpen(t,i){!t&&!m&&y&&T.hasTime&&L(y,w||e(a.placeholderValue,a.timeZone)),p(t,i)},dateFieldState:T}}}({getPlaceholderTime:function(e,t){return j({placeholderValue:e,timeZone:t})},mergeDateTime:Y,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:Be});function it(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[c,l]=n.useState(i);i!==c&&(l(i),i&&i.type!==r&&a(i.type));const[h,d]=n.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&d(i.value);const u=tt({value:h,onUpdate:e=>{d(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||s(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState(null!==i&&void 0!==i?i:"");i&&i!==r&&a(i);const c=n.useMemo((()=>{var t;return i&&null!==(t=(0,f.bQ)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[l,h]=n.useState(c);c&&c!==l&&h(c);const d=e.validationState||r&&!c?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||s(t)},text:r,setText:t=>{if(!e.disabled&&!e.readOnly)if(a(t),(0,f.eP)(t)){const e=(0,f.bQ)(t);e&&e.isValid()?s(t):s(null)}else s(null)},parsedDate:c,lastCorrectDate:l,validationState:d,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||s(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===r&&h?d(null):"relative"===r&&g&&p(null));const _="relative"===r?m.parsedDate:u.dateFieldState.displayValue,[v,C]=n.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||s(t)},disabled:e.disabled,readOnly:e.readOnly,mode:r,setMode(t){e.readOnly||e.disabled||t===r||(a(t),"relative"===t?(!i&&g||i)&&s(g?{type:"relative",value:g}:null):(!i&&h||i)&&s(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:C}}const st=l("relative-date-picker");function nt(e){var t;const i=it(e),{groupProps:o,fieldProps:a,modeSwitcherProps:c,calendarButtonProps:l,popupProps:m,calendarProps:f,timeInputProps:_}=et(i,e),v=n.useRef(null),C=(0,W.N)(v,o.ref),E=(0,r.I)(),b=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,s.jsxs)("div",Object.assign({},o,{ref:C,className:st(null,e.className),children:[E&&"absolute"===i.mode&&(0,s.jsx)(Ge,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,s.jsx)(u.k,Object.assign({},a,{controlProps:Object.assign(Object.assign({},a.controlProps),{disabled:E&&"absolute"===i.mode,className:st("input",{mobile:E&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(E&&"absolute"===i.mode),startContent:(0,s.jsx)(g.$,Object.assign({},c,{children:(0,s.jsx)(p.I,{data:H})})),endContent:(0,s.jsxs)(n.Fragment,{children:[!E&&!b&&(0,s.jsx)(g.$,Object.assign({},l,{children:(0,s.jsx)(p.I,{data:d})})),!E&&b&&(0,s.jsx)(qe,{size:l.size,icon:B}),E&&"absolute"===i.mode&&(0,s.jsx)(qe,{size:l.size,icon:b?B:d})]})})),(0,s.jsx)(h,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,s.jsx)(h,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!E&&!b&&(0,s.jsx)(U.z,Object.assign({},m,{anchorRef:v,children:(0,s.jsxs)("div",{className:st("popup-content"),children:["function"===typeof e.children?e.children(f):(0,s.jsx)(pe,Object.assign({},f)),i.datePickerState.hasTime&&(0,s.jsx)("div",{className:st("time-field-wrapper"),children:(0,s.jsx)(Ve,Object.assign({},_))})]})}))]}))}var rt=i(23871),ot=i(40091),at=i(73633),ct=i(87924),lt=i.n(ct),ht=i(81824),dt=i.n(ht),ut=i(61199),gt=i.n(ut),pt=i(69220),mt=i(27629);const ft=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),_t=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),vt=(0,_.N)({en:ft,ru:_t},"Table");function Ct(e){(0,mt.m)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Et(e,t){return"left"===e?(Ct(t),"start"):"right"===e?(Ct(t),"end"):e}const bt=(0,pt.om)("table");class St extends n.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>n.createRef()))},this.tableRef=n.createRef(),this.scrollContainerRef=n.createRef(),this.horizontalScrollBarRef=n.createRef(),this.horizontalScrollBarInnerRef=n.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:s,onRowClick:r,onRowMouseEnter:o,onRowMouseLeave:a,onRowMouseDown:c,getRowClassNames:l,verticalAlign:h,edgePadding:d,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===s||void 0===s?void 0:s(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===l||void 0===l?void 0:l(e,t))||[],v=Boolean(!f&&r);return n.createElement("tr",{key:St.getRowId(this.props,e,t),onClick:!f&&r?r.bind(null,e,t):void 0,onMouseEnter:!f&&o?o.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&c?c.bind(null,e,t):void 0,className:bt("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,s)=>{const{id:r,align:o,primary:a,className:c,sticky:l}=i,h=St.getBodyCellContent(i,e,t),g=Et(o,"column.align"),m=Et(l,"column.sticky");return n.createElement("td",{key:r,style:p[s],className:bt("cell",{align:g,primary:a,sticky:m,"edge-padding":d,"word-wrap":u},c)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:s,getRowId:n,getRowDescriptor:r}=e,o=null!==i&&void 0!==i?i:s.indexOf(t),a=null===r||void 0===r?void 0:r(t,o);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof n?n(t,o):String(n&&n in t?t[n]:o)}static getHeadCellContent(e){const{id:t,name:i}=e;let s;return s="function"===typeof i?i():"string"===typeof i?i:t,s}static getBodyCellContent(e,t,i){const{id:s,template:n,placeholder:r}=e;let o,a;return o="function"===typeof r?r(t,i):null!==r&&void 0!==r?r:"\u2014","function"===typeof n?a=n(t,i):"string"===typeof n?a=lt()(t,n):dt()(t,s)&&(a=lt()(t,s)),[void 0,null,""].includes(a)&&o?o:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>n.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:s}=this.props,r=e.some((({primary:e})=>e));return n.createElement("div",{className:bt({"with-primary":r,"with-sticky-scroll":t},i),"data-qa":s},t?n.createElement(n.Fragment,null,n.createElement("div",{ref:this.scrollContainerRef,className:bt("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:s}=this.state;return n.createElement("thead",{className:bt("head")},n.createElement("tr",{className:bt("row")},e.map(((e,r)=>{const{id:o,align:a,primary:c,sticky:l,className:h}=e,d=Et(a,"column.align"),u=Et(l,"column.sticky"),g=St.getHeadCellContent(e);return n.createElement("th",{key:o,ref:this.state.columnHeaderRefs[r],style:s[r],className:bt("cell",{align:d,primary:c,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return n.createElement("tbody",{className:bt("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return n.createElement("table",{ref:this.tableRef,className:bt("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return n.createElement("tr",{className:bt("row",{empty:!0})},n.createElement("td",{className:bt("cell"),colSpan:e.length},t||vt("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return n.createElement("div",{ref:this.horizontalScrollBarRef,className:bt("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},n.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:bt("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,s=i[e],n={};if("string"===typeof s.width)return{maxWidth:0,width:s.width};if("undefined"!==typeof s.width&&(n.width=s.width),!s.sticky)return n;const r="left"===s.sticky||"start"===s.sticky?t.slice(0,e):t.slice(e+1);return n["left"===s.sticky||"start"===s.sticky?"insetInlineStart":"insetInlineEnd"]=r.reduce(((e,t)=>gt()(t)?e+t:e),0),n}}St.defaultProps={edgePadding:!0};var yt=i(84375);const wt=l("relative-range-date-picker-presets-doc"),Rt=[{id:"title",name:()=>E("Range")},{id:"from",name:()=>E("From")},{id:"to",name:()=>E("To")}],Lt=[{get title(){return E("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return E("From start of day")},from:"now/d",to:"now"},{get title(){return E("This week")},from:"now/w",to:"now/w"},{get title(){return E("From start of week")},from:"now/w",to:"now"},{get title(){return E("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function Tt({size:e,docs:t}){return(0,s.jsx)(St,{columns:Rt,data:t,className:wt("table",{size:e})})}function xt({className:e,size:t,docs:i}){return(0,s.jsx)(yt.A,{className:wt(null,e),tooltipContentClassName:wt("content"),hasArrow:!1,content:(0,s.jsx)(Tt,{size:t,docs:i}),children:(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:m(t),children:(0,s.jsx)(p.I,{data:at.A})})})}function kt({className:e,size:t,docs:i}){const[r,o]=n.useState(!1);return(0,s.jsxs)("div",{className:wt(null,e),children:[(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:"l",onClick:()=>{o(!0)},children:(0,s.jsx)(p.I,{data:at.A})}),(0,s.jsx)(F.c,{visible:r,onClose:()=>o(!1),children:(0,s.jsx)(Tt,{size:t,docs:i})})]})}function At({className:e,size:t,docs:i=Lt}){const n=(0,r.I)();return Array.isArray(i)&&0!==i.length?n?(0,s.jsx)(kt,{className:e,size:t,docs:i}):(0,s.jsx)(xt,{className:e,size:t,docs:i}):null}const Nt=l("relative-range-date-picker-presets");function It({className:e,size:t="m",minValue:i,withTime:r,onChoosePreset:o,presetTabs:a,docs:c}){var l,h;const d=n.useMemo((()=>function(e,{minValue:t}={}){return e.reduce(((e,i)=>{const s=x(i.presets,t);return s.length&&e.push(Object.assign(Object.assign({},i),{presets:s})),e}),[])}(null!==a&&void 0!==a?a:function({withTime:e,minValue:t}){const i=[],s={id:"main",title:E("Main"),presets:[]},n=b;e&&n.unshift(...S),s.presets=x(n,t),s.presets.length>0&&i.push(s);const r={id:"other",title:E("Other"),presets:x(y,t)};return r.presets.length>0&&i.push(r),i}({withTime:r}),{minValue:i})),[r,i,a]),[u,g]=n.useState(null===(l=d[0])||void 0===l?void 0:l.id);if(0===d.length)return null;const p=null!==(h=d.find((e=>e.id===u)))&&void 0!==h?h:d[0];return p?(p.id!==u&&g(p.id),(0,s.jsxs)("div",{className:Nt({size:t},e),children:[(0,s.jsxs)("div",{className:Nt("tabs"),children:[(0,s.jsx)(rt.t,{activeTab:u,onSelectTab:g,items:d,size:"s"===t?"m":t}),(0,s.jsx)(At,{className:Nt("doc"),size:t,docs:c})]}),(0,s.jsx)("div",{className:Nt("content"),children:(0,s.jsx)(Dt,{presets:p.presets,onChoosePreset:o,size:t})})]})):null}const Ot={s:28,m:28,l:32,xl:36};function Dt({presets:e,onChoosePreset:t,size:i="m"}){const r=n.useRef(null);return n.useEffect((()=>{var e,t;const i=r.current,s=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&s)try{s.setAttribute("tabindex","0"),s.setAttribute("class",Nt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return s.addEventListener("focus",e),()=>{s.removeEventListener("focus",e)}}catch(n){}}),[]),(0,s.jsx)(ot.B,{ref:r,className:Nt("list"),itemClassName:Nt("item"),items:e,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ot[i],onItemClick:e=>{t(e.from,e.to)}})}var Mt=i(24555),Pt=i(98089);const Ft=JSON.parse('{"default":"Default","system":"Browser time"}'),Ut=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Ht=(0,_.N)({en:Ft,ru:Ut},`${c}relative-range-date-picker-zones`),Bt={},Wt=(0,f.Pn)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let s=Bt[i];s||(s={label:i,options:[]},Bt[i]=s,e.push(s)),s.options.push({value:t})}return e}),[]);Wt.unshift({value:"UTC"}),Wt.unshift({value:"system",get content(){return Ht("system")}}),Wt.unshift({value:"default",get content(){return Ht("default")}});const Vt=l("relative-range-date-picker-zones");function zt(e){const t=k(e.value),i=e.isMobile?"xl":e.size;return(0,s.jsx)(Mt.l,{disabled:e.disabled,value:[t],options:Wt,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:n=>{const r="system"===t||"default"===t?Ht(t):t;return(0,s.jsxs)(g.$,{onClick:n.onClick,ref:n.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,disabled:e.disabled,extraProps:{"aria-haspopup":"listbox","aria-expanded":n.open,onKeyDown:n.onKeyDown},className:Vt("control"),children:[`${r} (${A(t)})`,(0,s.jsx)(p.I,{className:Vt("control-icon"),data:z.A,size:e.isMobile?20:16})]})},renderOption:({value:e,content:t})=>{const i=null!==t&&void 0!==t?t:e;return(0,s.jsxs)("span",{className:Vt("item"),children:[(0,s.jsxs)("span",{className:Vt("item-title"),title:e,children:[i,"\xa0"]}),(0,s.jsx)(Pt.E,{color:"secondary",children:A(e)})]})},filterable:!0})}const Gt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),jt=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Kt=(0,_.N)({en:Gt,ru:jt},`${c}relative-range-date-picker-dialog`),Yt=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),qt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),$t=(0,_.N)({en:Yt,ru:qt},`${c}validation`);function Qt(e,t,i,s,n,r="Value"){const o=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),c=e&&(null===s||void 0===s?void 0:s(e))||!1,l=o||a||c,h=[];return l&&(a&&t&&h.push($t("Value must be {minValue} or later.",{minValue:t.timeZone(n).format(),value:r})),o&&i&&h.push($t("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(n).format(),value:r})),c&&h.push($t("Selected date unavailable."))),{isInvalid:l,errors:h}}function Xt(e,t,i={}){var s;if(!e&&!t)return null;const{isInvalid:n}=Zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(s=i.timeZone)&&void 0!==s?s:"default");return n?null:{start:e,end:t}}function Zt(e,t,i,s,n,r,o){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.bQ)(e.value,{timeZone:o}):null,c=t?(0,f.bQ)(t.value,{timeZone:o,roundUp:!0}):null,l=Qt(a,s,n,r,o);a||i||(l.isInvalid=!0,l.errors.push(Kt("Value is required.")));const h=Qt(c,s,n,r,o);return c||i||(h.isInvalid=!0,h.errors.push(Kt("Value is required."))),a&&c&&c.isBefore(a)&&(l.isInvalid=!0,l.errors.push(Kt('"From" can\'t be after "To".'))),{isInvalid:l.isInvalid||h.isInvalid,startValidationResult:l,endValidationResult:h}}const Jt=l("relative-range-date-picker-dialog");function ei({props:e,state:t,open:i,onClose:n,focusInput:r,isMobile:o,anchorRef:a,className:c}){return o?(0,s.jsx)(F.c,{visible:i,onClose:n,contentClassName:Jt("content",{mobile:!0,size:"xl"},c),children:(0,s.jsx)(ti,Object.assign({},e,{size:"xl",state:t,onApply:n}))}):(0,s.jsx)(U.z,{open:i,onEscapeKeyDown:()=>{n(),r()},onClose:n,role:"dialog",anchorRef:a,contentClassName:Jt("content",{size:e.size},c),autoFocus:!0,focusTrap:!0,children:(0,s.jsx)(ti,Object.assign({},e,{state:t,onApply:n}))})}function ti(e){var t,i,r,o,a,c,l;const h=function(e,t){var i,s,r,o;const{withApplyButton:a,allowNullableValues:c}=t,[l,h]=n.useState(null!==(s=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==s?s:null),[d,u]=n.useState(null!==(o=null===(r=e.value)||void 0===r?void 0:r.end)&&void 0!==o?o:null),[g,p]=n.useState(e.timeZone),m=a?g:e.timeZone,f=n.useMemo((()=>Zt(l,d,c,t.minValue,t.maxValue,t.isDateUnavailable,m)),[c,d,t.isDateUnavailable,t.maxValue,t.minValue,l,m]);return{start:l,end:d,timeZone:m,setStart:function(i){h(i),a||e.setValue(Xt(i,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Xt(l,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,s){h(i),u(s),a||e.setValue(Xt(i,s,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),d=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.KQ)({timeZone:e.state.timeZone}),u={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:Jt("pickers"),children:[(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(i=h.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(o=null===(r=h.startValidation)||void 0===r?void 0:r.errors)||void 0===o?void 0:o.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.startOf("day"),label:Kt("From"),value:h.start,onUpdate:h.setStart})),(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(a=h.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(l=null===(c=h.endValidation)||void 0===c?void 0:c.errors)||void 0===l?void 0:l.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.endOf("day"),label:Kt("To"),value:h.end,onUpdate:h.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,s.jsx)(g.$,{disabled:h.isInvalid,size:e.size,onClick:()=>{h.applyValue(),e.onApply()},className:Jt("apply"),width:"max",children:Kt("Apply")}):null,e.withPresets&&!e.readOnly?(0,s.jsx)(It,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{h.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:Jt("presets")}):null,e.withZonesList?(0,s.jsx)("div",{className:Jt("zone"),children:(0,s.jsx)(zt,{value:h.timeZone,onUpdate:h.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const ii=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),si=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),ni=(0,_.N)({en:ii,ru:si},`${c}relative-range-date-picker`);function ri(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[a,c]=(0,o.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),l=n.useMemo((()=>function(e,t,i,s,n,r){if(!e)return{isInvalid:!1,errors:[]};const o=e.start?(0,f.bQ)(e.start.value,{timeZone:r}):null,a=e.end?(0,f.bQ)(e.end.value,{timeZone:r,roundUp:!0}):null,c=Qt(o,i,s,n,r,ni('"From"'));o||t||(c.isInvalid=!0,c.errors.push(ni('"From" is required.')));const l=Qt(a,i,s,n,r,ni('"To"'));a||t||(l.isInvalid=!0,l.errors.push(ni('"To" is required.')));o&&a&&a.isBefore(o)&&(c.isInvalid=!0,c.errors.push(ni('"From" can\'t be after "To".')));return{isInvalid:c.isInvalid||l.isInvalid,errors:c.errors.concat(l.errors)}}(s,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,a)),[s,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,a]);return Object.assign({value:s,timeZone:a,setValue(t,i){var n;r(t),c(i),(s!==t||s&&a!==i)&&(null===(n=e.onUpdate)||void 0===n||n.call(e,t,i))}},l)}const oi=l("relative-range-date-picker");function ai(e){const t=ri(e),i=(0,r.I)(),c=n.useRef(null),l=n.useRef(null),[d,u]=n.useState(!1),[g,p]=(0,o.P)(void 0,!1,e.onOpenChange),{focusWithinProps:m}=(0,a.R)({isDisabled:e.disabled,onFocusWithin:t=>{var i;d||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;g||(u(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}});return(0,s.jsxs)("div",Object.assign({ref:c},m,{className:oi(null,e.className),style:e.style,children:[(0,s.jsx)(P,{props:e,state:t,open:g,isMobile:i,ref:l,onClick:()=>{e.disabled||g||(u(!0),p(!0))},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),p(!0))},onClickCalendar:()=>{u(!0),p(!g)},onFocus:()=>{d||(u(!0),p(!0))},onUpdate:i=>{e.readOnly||i||t.setValue(null,"default")}}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,onReset:e=>{t.setValue(e.value,e.timeZone)},value:{value:t.value,timeZone:t.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,s.jsx)(ei,{state:t,props:e,open:g,onClose:()=>{p(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:c,isMobile:i,className:e.popupClassName})]}))}function ci(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},23934:(e,t,i)=>{"use strict";var s=i(61850),n=i(92727);const r="clickhouse";(0,s.KV)({id:r,extensions:[],loader:()=>i.e(6397).then(i.bind(i,66397)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const o=new s.IK(r,s.bC,s.RQ);n.eo[r]=o;(0,s.KV)({id:"s-expression",extensions:[],loader:()=>i.e(5475).then(i.bind(i,5475))}),n.EN.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),n.EN.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(23195);(0,s.KV)({id:"yql_ansi",extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))});i(43733)},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>V,Jt:()=>f,hZ:()=>E,mN:()=>Ae,xI:()=>W});var s=i(59284),n=e=>"checkbox"===e.type,r=e=>e instanceof Date,o=e=>null==e;const a=e=>"object"===typeof e;var c=e=>!o(e)&&!Array.isArray(e)&&a(e)&&!r(e),l=e=>c(e)&&e.target?n(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return c(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e),s="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||s)||!i&&!c(e))return e;if(t=i?[]:{},i||d(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!c(e))return i;const s=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>o(e)?e:e[t]),e);return m(s)||s===e?m(e[t])?i:e[t]:s},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),C=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),E=(e,t,i)=>{let s=-1;const n=v(t)?[t]:C(t),r=n.length,o=r-1;for(;++s<r;){const t=n[s];let r=i;if(s!==o){const i=e[t];r=c(i)||Array.isArray(i)?i:isNaN(+n[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}return e};const b={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},y="max",w="min",R="maxLength",L="minLength",T="pattern",x="required",k="validate",A=s.createContext(null),N=()=>s.useContext(A);var I=(e,t,i,s=!0)=>{const n={defaultValues:t._defaultValues};for(const r in e)Object.defineProperty(n,r,{get:()=>{const n=r;return t._proxyFormState[n]!==S.all&&(t._proxyFormState[n]=!s||S.all),i&&(i[n]=!0),e[n]}});return n},O=e=>c(e)&&!Object.keys(e).length,D=(e,t,i,s)=>{i(e);const{name:n,...r}=e;return O(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!s||S.all)))},M=e=>Array.isArray(e)?e:[e],P=(e,t,i)=>!e||!t||e===t||M(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function F(e){const t=s.useRef(e);t.current=e,s.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var U=e=>"string"===typeof e,H=(e,t,i,s,n)=>U(e)?(s&&t.watch.add(e),f(i,e,n)):Array.isArray(e)?e.map((e=>(s&&t.watch.add(e),f(i,e)))):(s&&(t.watchAll=!0),i);function B(e){const t=N(),{name:i,disabled:n,control:r=t.control,shouldUnregister:o}=e,a=h(r._names.array,i),c=function(e){const t=N(),{control:i=t.control,name:n,defaultValue:r,disabled:o,exact:a}=e||{},c=s.useRef(n);c.current=n,F({disabled:o,subject:i._subjects.values,next:e=>{P(c.current,e.name,a)&&h(g(H(c.current,i._names,e.values||i._formValues,!1,r)))}});const[l,h]=s.useState(i._getWatch(n,r));return s.useEffect((()=>i._removeUnmounted())),l}({control:r,name:i,defaultValue:f(r._formValues,i,f(r._defaultValues,i,e.defaultValue)),exact:!0}),d=function(e){const t=N(),{control:i=t.control,disabled:n,name:r,exact:o}=e||{},[a,c]=s.useState(i._formState),l=s.useRef(!0),h=s.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=s.useRef(r);return d.current=r,F({disabled:n,next:e=>l.current&&P(d.current,e.name,o)&&D(e,h.current,i._updateFormState)&&c({...i._formState,...e}),subject:i._subjects.state}),s.useEffect((()=>(l.current=!0,h.current.isValid&&i._updateValid(!0),()=>{l.current=!1})),[i]),s.useMemo((()=>I(a,i,h.current,!1)),[a,i])}({control:r,name:i,exact:!0}),u=s.useRef(r.register(i,{...e.rules,value:c,..._(e.disabled)?{disabled:e.disabled}:{}})),p=s.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(d.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(d.validatingFields,i)},error:{enumerable:!0,get:()=>f(d.errors,i)}})),[d,i]),v=s.useMemo((()=>({name:i,value:c,..._(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:e=>u.current.onChange({target:{value:l(e),name:i},type:b.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:f(r._formValues,i),name:i},type:b.BLUR}),ref:e=>{const t=f(r._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[i,r._formValues,n,d.disabled,c,r._fields]);return s.useEffect((()=>{const e=r._options.shouldUnregister||o,t=(e,t)=>{const i=f(r._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(r._options.defaultValues,i));E(r._defaultValues,i,e),m(f(r._formValues,i))&&E(r._formValues,i,e)}return!a&&r.register(i),()=>{(a?e&&!r._state.action:e)?r.unregister(i):t(i,!1)}}),[i,r,a,o]),s.useEffect((()=>{r._updateDisabledField({disabled:n,fields:r._fields,name:i})}),[n,i,r]),s.useMemo((()=>({field:v,formState:d,fieldState:p})),[v,d,p])}const W=e=>e.render(B(e));var V=(e,t,i,s,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[s]:n||!0}}:{},z=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched}),G=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const j=(e,t,i,s)=>{for(const n of i||Object.keys(e)){const i=f(e,n);if(i){const{_f:e,...r}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!s)return!0;if(e.ref&&t(e.ref,e.name)&&!s)return!0;if(j(r,t))break}else if(c(r)&&j(r,t))break}}};var K=(e,t,i)=>{const s=M(f(e,i));return E(s,"root",t[i]),E(e,i,s),e},Y=e=>"file"===e.type,q=e=>"function"===typeof e,$=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>U(e),X=e=>"radio"===e.type,Z=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ie={isValid:!1,value:null};var se=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ie):ie;function ne(e,t,i="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||_(e)&&!e)return{type:i,message:Q(e)?e:"",ref:t}}var re=e=>c(e)&&!Z(e)?e:{value:e,message:""},oe=async(e,t,i,s,r,a)=>{const{ref:l,refs:h,required:d,maxLength:u,minLength:g,min:p,max:v,pattern:C,validate:E,name:b,valueAsNumber:S,mount:A}=e._f,N=f(i,b);if(!A||t.has(b))return{};const I=h?h[0]:l,D=e=>{r&&I.reportValidity&&(I.setCustomValidity(_(e)?"":e||""),I.reportValidity())},M={},P=X(l),F=n(l),H=P||F,B=(S||Y(l))&&m(l.value)&&m(N)||$(l)&&""===l.value||""===N||Array.isArray(N)&&!N.length,W=V.bind(null,b,s,M),z=(e,t,i,s=R,n=L)=>{const r=e?t:i;M[b]={type:e?s:n,message:r,ref:l,...W(e?s:n,r)}};if(a?!Array.isArray(N)||!N.length:d&&(!H&&(B||o(N))||_(N)&&!N||F&&!te(h).isValid||P&&!se(h).isValid)){const{value:e,message:t}=Q(d)?{value:!!d,message:d}:re(d);if(e&&(M[b]={type:x,message:t,ref:I,...W(x,t)},!s))return D(t),M}if(!B&&(!o(p)||!o(v))){let e,t;const i=re(v),n=re(p);if(o(N)||isNaN(N)){const s=l.valueAsDate||new Date(N),r=e=>new Date((new Date).toDateString()+" "+e),o="time"==l.type,a="week"==l.type;U(i.value)&&N&&(e=o?r(N)>r(i.value):a?N>i.value:s>new Date(i.value)),U(n.value)&&N&&(t=o?r(N)<r(n.value):a?N<n.value:s<new Date(n.value))}else{const s=l.valueAsNumber||(N?+N:N);o(i.value)||(e=s>i.value),o(n.value)||(t=s<n.value)}if((e||t)&&(z(!!e,i.message,n.message,y,w),!s))return D(M[b].message),M}if((u||g)&&!B&&(U(N)||a&&Array.isArray(N))){const e=re(u),t=re(g),i=!o(e.value)&&N.length>+e.value,n=!o(t.value)&&N.length<+t.value;if((i||n)&&(z(i,e.message,t.message),!s))return D(M[b].message),M}if(C&&!B&&U(N)){const{value:e,message:t}=re(C);if(Z(e)&&!N.match(e)&&(M[b]={type:T,message:t,ref:l,...W(T,t)},!s))return D(t),M}if(E)if(q(E)){const e=ne(await E(N,i),I);if(e&&(M[b]={...e,...W(k,e.message)},!s))return D(e.message),M}else if(c(E)){let e={};for(const t in E){if(!O(e)&&!s)break;const n=ne(await E[t](N,i),I,t);n&&(e={...n,...W(t,n.message)},D(n.message),s&&(M[b]=e))}if(!O(e)&&(M[b]={ref:I,...e},!s))return M}return D(!0),M};function ae(e,t){const i=Array.isArray(t)?t:v(t)?[t]:C(t),s=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let s=0;for(;s<i;)e=m(e)?s++:e[t[s++]];return e}(e,i),n=i.length-1,r=i[n];return s&&delete s[r],0!==n&&(c(s)&&O(s)||Array.isArray(s)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(s))&&ae(e,i.slice(0,-1)),e}var ce=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},le=e=>o(e)||!a(e);function he(e,t){if(le(e)||le(t))return e===t;if(r(e)&&r(t))return e.getTime()===t.getTime();const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const n of i){const i=e[n];if(!s.includes(n))return!1;if("ref"!==n){const e=t[n];if(r(i)&&r(e)||c(i)&&c(e)||Array.isArray(i)&&Array.isArray(e)?!he(i,e):i!==e)return!1}}return!0}var de=e=>"select-multiple"===e.type,ue=e=>X(e)||n(e),ge=e=>$(e)&&e.isConnected,pe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function me(e,t={}){const i=Array.isArray(e);if(c(e)||i)for(const s in e)Array.isArray(e[s])||c(e[s])&&!pe(e[s])?(t[s]=Array.isArray(e[s])?[]:{},me(e[s],t[s])):o(e[s])||(t[s]=!0);return t}function fe(e,t,i){const s=Array.isArray(e);if(c(e)||s)for(const n in e)Array.isArray(e[n])||c(e[n])&&!pe(e[n])?m(t)||le(i[n])?i[n]=Array.isArray(e[n])?me(e[n],[]):{...me(e[n])}:fe(e[n],o(t)?{}:t[n],i[n]):i[n]=!he(e[n],t[n]);return i}var _e=(e,t)=>fe(e,t,me(t)),ve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:s})=>m(e)?e:t?""===e?NaN:e?+e:e:i&&U(e)?new Date(e):s?s(e):e;function Ce(e){const t=e.ref;return Y(t)?t.files:X(t)?se(e.refs).value:de(t)?[...t.selectedOptions].map((({value:e})=>e)):n(t)?te(e.refs).value:ve(m(t.value)?e.ref.value:t.value,e)}var Ee=(e,t,i,s)=>{const n={};for(const r of e){const e=f(t,r);e&&E(n,r,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:s}},be=e=>m(e)?e:Z(e)?e.source:c(e)?Z(e.value)?e.value.source:e.value:e;const Se="AsyncFunction";var ye=e=>!!e&&!!e.validate&&!!(q(e.validate)&&e.validate.constructor.name===Se||c(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Se))),we=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Re(e,t,i){const s=f(e,i);if(s||v(i))return{error:s,name:i};const n=i.split(".");for(;n.length;){const s=n.join("."),r=f(t,s),o=f(e,s);if(r&&!Array.isArray(r)&&i!==s)return{name:i};if(o&&o.type)return{name:s,error:o};n.pop()}return{name:i}}var Le=(e,t,i,s,n)=>!n.isOnAll&&(!i&&n.isOnTouch?!(t||e):(i?s.isOnBlur:n.isOnBlur)?!e:!(i?s.isOnChange:n.isOnChange)||e),Te=(e,t)=>!p(f(e,t)).length&&ae(e,t);const xe={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ke(e={}){let t,i={...xe,...e},s={submitCount:0,isDirty:!1,isLoading:q(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},d=(c(i.defaultValues)||c(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(d),C={action:!1,mount:!1,watch:!1},y={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},w=0;const R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},L={values:ce(),array:ce(),state:ce()},T=z(i.mode),x=z(i.reValidateMode),k=i.criteriaMode===S.all,A=async e=>{if(!i.disabled&&(R.isValid||e)){const e=i.resolver?O((await F()).errors):await B(a,!0);e!==s.isValid&&L.state.next({isValid:e})}},N=(e,t)=>{i.disabled||!R.isValidating&&!R.validatingFields||((e||Array.from(y.mount)).forEach((e=>{e&&(t?E(s.validatingFields,e,t):ae(s.validatingFields,e))})),L.state.next({validatingFields:s.validatingFields,isValidating:!O(s.validatingFields)}))},I=(e,t,i,s)=>{const n=f(a,e);if(n){const r=f(v,e,m(i)?f(d,e):i);m(r)||s&&s.defaultChecked||t?E(v,e,t?r:Ce(n._f)):Q(e,r),C.mount&&A()}},D=(e,t,n,r,o)=>{let c=!1,l=!1;const h={name:e};if(!i.disabled){const i=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!n||r){R.isDirty&&(l=s.isDirty,s.isDirty=h.isDirty=W(),c=l!==h.isDirty);const n=i||he(f(d,e),t);l=!(i||!f(s.dirtyFields,e)),n||i?ae(s.dirtyFields,e):E(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,c=c||R.dirtyFields&&l!==!n}if(n){const t=f(s.touchedFields,e);t||(E(s.touchedFields,e,n),h.touchedFields=s.touchedFields,c=c||R.touchedFields&&t!==n)}c&&o&&L.state.next(h)}return c?h:{}},P=(e,n,r,o)=>{const a=f(s.errors,e),c=R.isValid&&_(n)&&s.isValid!==n;var l;if(i.delayError&&r?(l=()=>((e,t)=>{E(s.errors,e,t),L.state.next({errors:s.errors})})(e,r),t=e=>{clearTimeout(w),w=setTimeout(l,e)},t(i.delayError)):(clearTimeout(w),t=null,r?E(s.errors,e,r):ae(s.errors,e)),(r?!he(a,r):a)||!O(o)||c){const t={...o,...c&&_(n)?{isValid:n}:{},errors:s.errors,name:e};s={...s,...t},L.state.next(t)}},F=async e=>{N(e,!0);const t=await i.resolver(v,i.context,Ee(e||y.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return N(e),t},B=async(e,t,n={valid:!0})=>{for(const r in e){const o=e[r];if(o){const{_f:e,...a}=o;if(e){const a=y.array.has(e.name),c=o._f&&ye(o._f);c&&R.validatingFields&&N([r],!0);const l=await oe(o,y.disabled,v,k,i.shouldUseNativeValidation&&!t,a);if(c&&R.validatingFields&&N([r]),l[e.name]&&(n.valid=!1,t))break;!t&&(f(l,e.name)?a?K(s.errors,l,e.name):E(s.errors,e.name,l[e.name]):ae(s.errors,e.name))}!O(a)&&await B(a,t,n)}}return n.valid},W=(e,t)=>!i.disabled&&(e&&t&&E(v,e,t),!he(ie(),d)),V=(e,t,i)=>H(e,y,{...C.mount?v:m(t)?d:U(e)?{[e]:t}:t},i,t),Q=(e,t,i={})=>{const s=f(a,e);let r=t;if(s){const i=s._f;i&&(!i.disabled&&E(v,e,ve(t,i)),r=$(i.ref)&&o(t)?"":t,de(i.ref)?[...i.ref.options].forEach((e=>e.selected=r.includes(e.value))):i.refs?n(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((t=>t===e.value)):r===e.value))):i.refs[0]&&(i.refs[0].checked=!!r):i.refs.forEach((e=>e.checked=e.value===r)):Y(i.ref)?i.ref.value="":(i.ref.value=r,i.ref.type||L.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&D(e,r,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&te(e)},X=(e,t,i)=>{for(const s in t){const n=t[s],o=`${e}.${s}`,l=f(a,o);(y.array.has(e)||c(n)||l&&!l._f)&&!r(n)?X(o,n,i):Q(o,n,i)}},Z=(e,t,i={})=>{const n=f(a,e),r=y.array.has(e),c=g(t);E(v,e,c),r?(L.array.next({name:e,values:{...v}}),(R.isDirty||R.dirtyFields)&&i.shouldDirty&&L.state.next({name:e,dirtyFields:_e(d,v),isDirty:W(e,c)})):!n||n._f||o(c)?Q(e,c,i):X(e,c,i),G(e,y)&&L.state.next({...s}),L.values.next({name:C.mount?e:void 0,values:{...v}})},J=async e=>{C.mount=!0;const n=e.target;let o=n.name,c=!0;const h=f(a,o),d=e=>{c=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||he(e,f(v,o,e))};if(h){let r,u;const g=n.type?Ce(h._f):l(e),p=e.type===b.BLUR||e.type===b.FOCUS_OUT,m=!we(h._f)&&!i.resolver&&!f(s.errors,o)&&!h._f.deps||Le(p,f(s.touchedFields,o),s.isSubmitted,x,T),_=G(o,y,p);E(v,o,g),p?(h._f.onBlur&&h._f.onBlur(e),t&&t(0)):h._f.onChange&&h._f.onChange(e);const C=D(o,g,p,!1),S=!O(C)||_;if(!p&&L.values.next({name:o,type:e.type,values:{...v}}),m)return R.isValid&&("onBlur"===i.mode&&p?A():p||A()),S&&L.state.next({name:o,..._?{}:C});if(!p&&_&&L.state.next({...s}),i.resolver){const{errors:e}=await F([o]);if(d(g),c){const t=Re(s.errors,a,o),i=Re(e,a,t.name||o);r=i.error,o=i.name,u=O(e)}}else N([o],!0),r=(await oe(h,y.disabled,v,k,i.shouldUseNativeValidation))[o],N([o]),d(g),c&&(r?u=!1:R.isValid&&(u=await B(a,!0)));c&&(h._f.deps&&te(h._f.deps),P(o,u,r,C))}},ee=(e,t)=>{if(f(s.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let n,r;const o=M(e);if(i.resolver){const t=await(async e=>{const{errors:t}=await F(e);if(e)for(const i of e){const e=f(t,i);e?E(s.errors,i,e):ae(s.errors,i)}else s.errors=t;return t})(m(e)?e:o);n=O(t),r=e?!o.some((e=>f(t,e))):n}else e?(r=(await Promise.all(o.map((async e=>{const t=f(a,e);return await B(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||s.isValid)&&A()):r=n=await B(a);return L.state.next({...!U(e)||R.isValid&&n!==s.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:s.errors}),t.shouldFocus&&!r&&j(a,ee,e?o:y.mount),r},ie=e=>{const t={...C.mount?v:d};return m(e)?t:U(e)?f(t,e):e.map((e=>f(t,e)))},se=(e,t)=>({invalid:!!f((t||s).errors,e),isDirty:!!f((t||s).dirtyFields,e),error:f((t||s).errors,e),isValidating:!!f(s.validatingFields,e),isTouched:!!f((t||s).touchedFields,e)}),ne=(e,t,i)=>{const n=(f(a,e,{_f:{}})._f||{}).ref,r=f(s.errors,e)||{},{ref:o,message:c,type:l,...h}=r;E(s.errors,e,{...h,...t,ref:n}),L.state.next({name:e,errors:s.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},re=(e,t={})=>{for(const n of e?M(e):y.mount)y.mount.delete(n),y.array.delete(n),t.keepValue||(ae(a,n),ae(v,n)),!t.keepError&&ae(s.errors,n),!t.keepDirty&&ae(s.dirtyFields,n),!t.keepTouched&&ae(s.touchedFields,n),!t.keepIsValidating&&ae(s.validatingFields,n),!i.shouldUnregister&&!t.keepDefaultValue&&ae(d,n);L.values.next({values:{...v}}),L.state.next({...s,...t.keepDirty?{isDirty:W()}:{}}),!t.keepIsValid&&A()},le=({disabled:e,name:t,field:i,fields:s})=>{(_(e)&&C.mount||e||y.disabled.has(t))&&(e?y.disabled.add(t):y.disabled.delete(t),D(t,Ce(i?i._f:f(s,t)._f),!1,!1,!0))},pe=(e,t={})=>{let s=f(a,e);const n=_(t.disabled)||_(i.disabled);return E(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),s?le({field:s,disabled:_(t.disabled)?t.disabled:i.disabled,name:e}):I(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:be(t.min),max:be(t.max),minLength:be(t.minLength),maxLength:be(t.maxLength),pattern:be(t.pattern)}:{},name:e,onChange:J,onBlur:J,ref:n=>{if(n){pe(e,t),s=f(a,e);const i=m(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,r=ue(i),o=s._f.refs||[];if(r?o.find((e=>e===i)):i===s._f.ref)return;E(a,e,{_f:{...s._f,...r?{refs:[...o.filter(ge),i,...Array.isArray(f(d,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),I(e,!1,void 0,i)}else s=f(a,e,{}),s._f&&(s._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(y.array,e)||!C.action)&&y.unMount.add(e)}}},me=()=>i.shouldFocusError&&j(a,ee,y.mount),fe=(e,t)=>async n=>{let r;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=g(v);if(y.disabled.size)for(const e of y.disabled)E(o,e,void 0);if(L.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await F();s.errors=e,o=t}else await B(a);if(ae(s.errors,"root"),O(s.errors)){L.state.next({errors:{}});try{await e(o,n)}catch(c){r=c}}else t&&await t({...s.errors},n),me(),setTimeout(me);if(L.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(s.errors)&&!r,submitCount:s.submitCount+1,errors:s.errors}),r)throw r},Se=(e,t={})=>{const n=e?g(e):d,r=g(n),o=O(e),c=o?d:r;if(t.keepDefaultValues||(d=n),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...y.mount,...Object.keys(_e(d,v))]);for(const t of Array.from(e))f(s.dirtyFields,t)?E(c,t,f(v,t)):Z(t,f(c,t))}else{if(u&&m(e))for(const e of y.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if($(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=i.shouldUnregister?t.keepDefaultValues?g(d):{}:g(c),L.array.next({values:{...c}}),L.values.next({values:{...c}})}y={mount:t.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},C.mount=!R.isValid||!!t.keepIsValid||!!t.keepDirtyValues,C.watch=!!i.shouldUnregister,L.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!o&&(t.keepDirty?s.isDirty:!(!t.keepDefaultValues||he(e,d))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&v?_e(d,v):s.dirtyFields:t.keepDefaultValues&&e?_e(d,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1})},ke=(e,t)=>Se(q(e)?e(v):e,t);return{control:{register:pe,unregister:re,getFieldState:se,handleSubmit:fe,setError:ne,_executeSchema:F,_getWatch:V,_getDirty:W,_updateValid:A,_removeUnmounted:()=>{for(const e of y.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ge(e))):!ge(t._f.ref))&&re(e)}y.unMount=new Set},_updateFieldArray:(e,t=[],n,r,o=!0,c=!0)=>{if(r&&n&&!i.disabled){if(C.action=!0,c&&Array.isArray(f(a,e))){const t=n(f(a,e),r.argA,r.argB);o&&E(a,e,t)}if(c&&Array.isArray(f(s.errors,e))){const t=n(f(s.errors,e),r.argA,r.argB);o&&E(s.errors,e,t),Te(s.errors,e)}if(R.touchedFields&&c&&Array.isArray(f(s.touchedFields,e))){const t=n(f(s.touchedFields,e),r.argA,r.argB);o&&E(s.touchedFields,e,t)}R.dirtyFields&&(s.dirtyFields=_e(d,v)),L.state.next({name:e,isDirty:W(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else E(v,e,t)},_updateDisabledField:le,_getFieldArray:e=>p(f(C.mount?v:d,e,i.shouldUnregister?f(d,e,[]):[])),_reset:Se,_resetDefaultValues:()=>q(i.defaultValues)&&i.defaultValues().then((e=>{ke(e,i.resetOptions),L.state.next({isLoading:!1})})),_updateFormState:e=>{s={...s,...e}},_disableForm:e=>{_(e)&&(L.state.next({disabled:e}),j(a,((t,i)=>{const s=f(a,i);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach((t=>{t.disabled=s._f.disabled||e})))}),0,!1))},_subjects:L,_proxyFormState:R,_setErrors:e=>{s.errors=e,L.state.next({errors:s.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return C},set _state(e){C=e},get _defaultValues(){return d},get _names(){return y},set _names(e){y=e},get _formState(){return s},set _formState(e){s=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:te,register:pe,handleSubmit:fe,watch:(e,t)=>q(e)?L.values.subscribe({next:i=>e(V(void 0,t),i)}):V(e,t,!0),setValue:Z,getValues:ie,reset:ke,resetField:(e,t={})=>{f(a,e)&&(m(t.defaultValue)?Z(e,g(f(d,e))):(Z(e,t.defaultValue),E(d,e,g(t.defaultValue))),t.keepTouched||ae(s.touchedFields,e),t.keepDirty||(ae(s.dirtyFields,e),s.isDirty=t.defaultValue?W(e,g(f(d,e))):W()),t.keepError||(ae(s.errors,e),R.isValid&&A()),L.state.next({...s}))},clearErrors:e=>{e&&M(e).forEach((e=>ae(s.errors,e))),L.state.next({errors:e?s.errors:{}})},unregister:re,setError:ne,setFocus:(e,t={})=>{const i=f(a,e),s=i&&i._f;if(s){const e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&q(e.select)&&e.select())}},getFieldState:se}}function Ae(e={}){const t=s.useRef(void 0),i=s.useRef(void 0),[n,r]=s.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ke(e),formState:n});const o=t.current.control;return o._options=e,F({subject:o._subjects.state,next:e=>{D(e,o._proxyFormState,o._updateFormState,!0)&&r({...o._formState})}}),s.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),s.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),s.useEffect((()=>{e.values&&!he(e.values,i.current)?(o._reset(e.values,o._options.resetOptions),i.current=e.values,r((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),s.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),s.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),s.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=I(n,o),t.current}},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>C});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,s,n){this._onDidChange=new d.Emitter,this._onDidExtraLibsChange=new d.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(s),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(s=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===s&&(delete this._extraLibs[i],this._removedExtraLibs[i]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let s=1;this._removedExtraLibs[e]&&(s=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},C=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),E=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function b(){return i.e(8979).then(i.bind(i,78979))}d.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.4.5",typescriptDefaults:C,javascriptDefaults:E,getTypeScriptWorker:()=>b().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>b().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>b().then((e=>e.setupTypeScript(C))))),d.languages.onLanguage("javascript",(()=>b().then((e=>e.setupJavaScript(E)))))},24329:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});const s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},24853:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.47 1.22a.75.75 0 011.06 0l2.5 2.5a.75.75 0 11-1.06 1.06L8.75 3.56v7.69a.75.75 0 01-1.5 0V3.56L6.03 4.78a.75.75 0 01-1.06-1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},24939:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const n=new s,r=new s,o=new s,a=new Array(230),c={},l=[],h=Object.create(null),d=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],s=[];for(const p of t){const[e,t,m,f,_,v,C,E,b]=p;if(s[t]||(s[t]=!0,l[t]=m,h[m]=t,d[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);n.define(f,_),r.define(f,E||_),o.define(f,b||E||_)}v&&(a[v]=f),C&&(c[C]=f)}g[3]=46}(),function(e){e.toString=function(e){return n.keyCodeToStr(e)},e.fromString=function(e){return n.strToKeyCode(e)},e.toUserSettingsUS=function(e){return r.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return r.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return n.keyCodeToStr(e)}}(p||(p={}))},25064:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(7118).then(i.bind(i,57118))})},25154:(e,t,i)=>{"use strict";i.d(t,{B:()=>s,q:()=>u});var s,n=i(8597),r=i(25893),o=i(25890),a=i(58694),c=i(41234),l=i(5662),h=i(58925),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s||(s={}));class u extends l.jG{static{this.SCROLL_FRICTION=-.005}static{this.HOLD_DELAY=700}static{this.CLEAR_TAP_COUNT_TIME=400}constructor(){super(),this.dispatched=!1,this.targets=new h.w,this.ignoreTargets=new h.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(c.Jh.runAndSubscribe(n.Iv,(({window:e,disposables:t})=>{t.add(n.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(n.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(n.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:r.G,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,l.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,l.s)(t)}static isTouchDevice(){return"ontouchstart"in r.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i<n;i++){const n=e.targetTouches.item(i);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:t,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[t],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};const r=this.newGestureEvent(s.Start,n.target);r.pageX=n.pageX,r.pageY=n.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),n=Object.keys(this.activeTouches).length;for(let r=0,a=t.changedTouches.length;r<a;r++){const a=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const c=this.activeTouches[a.identifier],l=Date.now()-c.initialTimeStamp;if(l<u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Tap,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(l>=u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Contextmenu,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=o.RT(c.rollingPageX),s=o.RT(c.rollingPageY),n=o.RT(c.rollingTimestamps)-c.rollingTimestamps[0],r=t-c.rollingPageX[0],a=s-c.rollingPageY[0],l=[...this.targets].filter((e=>c.initialTarget instanceof Node&&e.contains(c.initialTarget)));this.inertia(e,l,i,Math.abs(r)/n,r>0?1:-1,t,Math.abs(a)/n,a>0?1:-1,s)}this.dispatchEvent(this.newGestureEvent(s.End,c.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===s.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==s.Change&&e.type!==s.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let s=0,n=e.initialTarget;for(;n&&n!==i;)s++,n=n.parentElement;t.push([s,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,s]of t)s.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,r,o,a,c,l,h){this.handle=n.PG(e,(()=>{const n=Date.now(),d=n-i;let g=0,p=0,m=!0;r+=u.SCROLL_FRICTION*d,c+=u.SCROLL_FRICTION*d,r>0&&(m=!1,g=o*r*d),c>0&&(m=!1,p=l*c*d);const f=this.newGestureEvent(s.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,n,r,o,a+g,c,l,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i<n;i++){const n=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}const r=this.activeTouches[n.identifier],a=this.newGestureEvent(s.Change,r.initialTarget);a.translationX=n.pageX-o.RT(r.rollingPageX),a.translationY=n.pageY-o.RT(r.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(n.pageX),r.rollingPageY.push(n.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}d([a.B],u,"isTouchDevice",null)},25521:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>a,d:()=>n});var s=i(91508);class n{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,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){const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!n._equals(e[s],t[s]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const s=t+1,r=i+1,o=i-t,a=[];let c=0;for(const l of e)l.endColumn<=s||l.startColumn>=r||(a[c++]=new n(Math.max(1,l.startColumn-s+1),Math.min(o+1,l.endColumn-s+1),l.className,l.type));return a}static filter(e,t,i,s){if(0===e.length)return[];const r=[];let o=0;for(let a=0,c=e.length;a<c;a++){const c=e[a],l=c.range;if(l.endLineNumber<t||l.startLineNumber>t)continue;if(l.isEmpty()&&(0===c.type||3===c.type))continue;const h=l.startLineNumber===t?l.startColumn:i,d=l.endLineNumber===t?l.endColumn:s;r[o++]=new n(h,d,c.inlineClassName,c.type)}return r}static _typeCompare(e,t){const i=[2,0,1,3];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;const i=n._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class r{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=s}}class o{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,s=e.length;i<s;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 r(t,this.stopOffsets[e],this.classNames.join(" "),o._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 r(t,e-1,this.classNames.join(" "),o._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 s=0;s<this.count;s++)if(this.stopOffsets[s]>=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],n=new o;let r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];let c=a.startColumn,l=a.endColumn;const h=a.className,d=1===a.type?2:2===a.type?4:0;if(c>1){const t=e.charCodeAt(c-2);s.pc(t)&&c--}if(l>1){const t=e.charCodeAt(l-2);s.pc(t)&&l--}const u=c-1,g=l-2;r=n.consumeLowerThan(u,r,i),0===n.count&&(r=u),n.insert(g,h,d)}return n.consumeLowerThan(1073741824,r,i),i}}},25533:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>s});const s={type:"yagr",renderer:i(59284).lazy((()=>Promise.all([i.e(1836),i.e(8593)]).then(i.bind(i,81836))))}},25689:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});var s,n,r=i(10350);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(s||(s={})),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~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const s=t.exec(e.id);if(!s)return i(r.W.error);const[,n,o]=s,a=["codicon","codicon-"+n];return o&&a.push("codicon-modifier-"+o.substring(1)),a}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&&("undefined"===typeof e.color||s.isThemeColor(e.color))};const n=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=n.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const s=i.lastIndexOf("~");return-1!==s&&(i=i.substring(0,s)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(n||(n={}))},25783:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{length:4,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!1},{length:6,reverse:!1}];function s(i){let s=0;const n=[],r=i.$binary?atob(i.$value):i.$value;return t.forEach((function(t){const i=r.substr(s,t.length).split(e.EMPTY_STRING).map((function(t){return e.toPaddedHex(t.charCodeAt(0),2)}));s+=t.length,t.reverse&&i.reverse(),n.push(i.join(e.EMPTY_STRING))})),n.join("-")}return s.isScalar=!0,s}},25791:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(36921);class n extends s.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},25890:(e,t,i)=>{"use strict";function s(e,t=0){return e[e.length-(1+t)]}function n(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(!i(e[s],t[s]))return!1;return!0}function o(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,s=e-1;for(;i<=s;){const e=(i+s)/2|0,n=t(e);if(n<0)i=e+1;else{if(!(n>0))return e;s=e-1}}return-(i+1)}(e.length,(s=>i(e[s],t)))}function c(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const s=t[Math.floor(t.length*Math.random())],n=[],r=[],o=[];for(const a of t){const e=i(a,s);e<0?n.push(a):e>0?r.push(a):o.push(a)}return e<n.length?c(e,n,i):e<n.length+o.length?o[0]:c(e-(n.length+o.length),r,i)}function l(e,t){const i=[];let s;for(const n of e.slice(0).sort(t))s&&0===t(s[0],n)?s.push(n):(s=[n],i.push(s));return i}function*h(e,t){let i,s;for(const n of e)void 0!==s&&t(s,n)?i.push(n):(i&&(yield i),i=[n]),s=n;i&&(yield i)}function d(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e,t=e=>e){const i=new Set;return e.filter((e=>{const s=t(e);return!i.has(s)&&(i.add(s),!0)}))}function v(e,t){return e.length>0?e[0]:t}function C(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const s=[];if(i<=t)for(let n=i;n<t;n++)s.push(n);else for(let n=i;n>t;n--)s.push(n);return s}function E(e,t,i){const s=e.slice(0,t),n=e.slice(t);return s.concat(i,n)}function b(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function y(e,t){for(const i of t)e.push(i)}function w(e){return Array.isArray(e)?e:[e]}function R(e,t,i,s){const n=L(e,t);let r=e.splice(n,i);return void 0===r&&(r=[]),function(e,t,i){const s=L(e,t),n=e.length,r=i.length;e.length=n+r;for(let o=n-1;o>=s;o--)e[o+r]=e[o];for(let o=0;o<r;o++)e[o+s]=i[o]}(e,n,s),r}function L(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var T;function x(e,t){return(i,s)=>t(e(i),e(s))}function k(...e){return(t,i)=>{for(const s of e){const e=s(t,i);if(!T.isNeitherLessOrGreaterThan(e))return e}return T.neitherLessOrGreaterThan}}i.d(t,{$z:()=>l,Ct:()=>m,E4:()=>y,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>I,RT:()=>s,SK:()=>p,SO:()=>c,TS:()=>N,U9:()=>A,UH:()=>o,V4:()=>R,VE:()=>x,Yc:()=>g,_A:()=>b,_j:()=>w,aI:()=>r,bS:()=>n,c1:()=>D,dM:()=>_,j3:()=>O,kj:()=>u,n:()=>h,nH:()=>k,nK:()=>E,pN:()=>d,r7:()=>S,t9:()=>M,y1:()=>C}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(T||(T={}));const A=(e,t)=>e-t,N=(e,t)=>A(e?1:0,t?1:0);function I(e){return(t,i)=>-e(t,i)}class O{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class D{static{this.empty=new D((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new D((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new D((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((s=>((i||T.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0))),t}}class M{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,s)=>t(e[i],e[s])));return new M(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new M(e)}}},25893:(e,t,i)=>{"use strict";function s(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>n,y:()=>s});const n=window},25922:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(7148).then(i.bind(i,27148))})},25982:(e,t,i)=>{"use strict";i.d(t,{x:()=>s});class s{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const 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){const i=this.getForeground(e),s=this.getFontStyle(e);let n=`color: ${t[i]};`;1&s&&(n+="font-style: italic;"),2&s&&(n+="font-weight: bold;");let r="";return 4&s&&(r+=" underline"),8&s&&(r+=" line-through"),r&&(n+=`text-decoration:${r};`),n}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},26195:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.03 10.53a.75.75 0 01-1.06 0L8 6.56l-3.97 3.97a.75.75 0 11-1.06-1.06l4.5-4.5a.75.75 0 011.06 0l4.5 4.5a.75.75 0 010 1.06",clipRule:"evenodd"})))}},26437:e=>{e.exports=function(e,t,i){return e===e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>r,Ld:()=>o,Th:()=>l});var s=i(42522),n=i(58925);const r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of r)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const c=new n.w;function l(e,t,i,n,r){if(t=a(t),r||(r=s.f.first(c)),i.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:n+=s,l(e,t,i=i.substring(s,e+r.maxLen/2),n,r)}const o=Date.now(),d=e-1-n;let u=-1,g=null;for(let s=1;!(Date.now()-o>=r.timeBudget);s++){const e=d-r.windowSize*s;t.lastIndex=Math.max(0,e);const n=h(t,i,d,u);if(!n&&g)break;if(g=n,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,s){let n;for(;n=e.exec(t);){const t=n.index||0;if(t<=i&&e.lastIndex>=i)return n;if(s>0&&t>s)return null}return null}c.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},26656:(e,t,i)=>{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var s=i(78209),n=i(64383),r=i(75326),o=i(79400),a=i(64829),c=i(81674),l=i(89403);function h(e){return e.toString()}class d{static create(e,t){const i=e.getAlternativeVersionId(),s=p(e);return new d(i,i,s,s,t,t,[])}constructor(e,t,i,s,n,r,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=s,this.beforeCursorState=n,this.afterCursorState=r,this.changes=o}append(e,t,i,s,n){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=s,this.afterCursorState=n}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(c.Sw(e,t?t.length:0,i),i+=4,t)for(const s of t)c.Sw(e,s.selectionStartLineNumber,i),i+=4,c.Sw(e,s.selectionStartColumn,i),i+=4,c.Sw(e,s.positionLineNumber,i),i+=4,c.Sw(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=c.bb(e,t);t+=4;for(let n=0;n<s;n++){const s=c.bb(e,t);t+=4;const n=c.bb(e,t);t+=4;const o=c.bb(e,t);t+=4;const a=c.bb(e,t);t+=4,i.push(new r.L(s,n,o,a))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const s of this.changes)e+=s.writeSize();const t=new Uint8Array(e);let i=0;c.Sw(t,this.beforeVersionId,i),i+=4,c.Sw(t,this.afterVersionId,i),i+=4,c.Gs(t,this.beforeEOL,i),i+=1,c.Gs(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),c.Sw(t,this.changes.length,i),i+=4;for(const s of this.changes)i=s.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const s=c.bb(t,i);i+=4;const n=c.bb(t,i);i+=4;const r=c.pJ(t,i);i+=1;const o=c.pJ(t,i);i+=1;const l=[];i=d._readSelections(t,i,l);const h=[];i=d._readSelections(t,i,h);const u=c.bb(t,i);i+=4;const g=[];for(let c=0;c<u;c++)i=a.k.read(t,i,g);return new d(s,n,r,o,l,h,g)}}class u{get type(){return 0}get resource(){return o.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,s){this.label=e,this.code=t,this.model=i,this._data=d.create(i,s)}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(o.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,s,n){this._data instanceof d&&this._data.append(e,t,i,s,n)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const s of this._editStackElementsArr){const e=h(s.resource);this._editStackElementsMap.set(e,s)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(o.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,s,n){const r=h(e.uri);this._editStackElementsMap.get(r).append(e,t,i,s,n)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,l.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const n=new u(s.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,s){const n=this._getOrCreateEditStackElement(e,s),r=this._model.applyEdits(t,!0),o=f._computeCursorState(i,r),a=r.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,n.dz)(i),null}}}},26685:(e,t,i)=>{"use strict";i.d(t,{AO:()=>w,Dr:()=>R,Hs:()=>k,K4:()=>C,Ls:()=>y,UN:()=>T,YA:()=>L,dU:()=>_,ey:()=>B,h0:()=>x,is:()=>b,kr:()=>S,oi:()=>E,sx:()=>v});var s=i(64383),n=i(91508),r=i(15092),o=i(7936),a=i(71964),c=i(32799),l=i(81782),h=i(36677),d=i(83069),u=i(38566),g=i(17469),p=i(12296),m=i(82365),f=i(63346);class _{static getEdits(e,t,i,s,n){if(!n&&this._isAutoIndentType(e,t,i)){const n=[];for(const o of i){const i=this._findActualIndentationForSelection(e,t,o,s);if(null===i)return;n.push({selection:o,indentation:i})}const r=E.getAutoClosingPairClose(e,t,i,s,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,n,s,r)}}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let s=0,n=i.length;s<n;s++)if(!t.tokenization.isCheapToTokenize(i[s].getEndPosition().lineNumber))return!1;return!0}static _findActualIndentationForSelection(e,t,i,s){const n=(0,m._t)(e,t,i,s,{shiftIndent:t=>U(e,t),unshiftIndent:t=>H(e,t)},e.languageConfigurationService);if(null===n)return null;const r=(0,g.Cw)(t,i.startLineNumber,i.startColumn);return n===e.normalizeIndentation(r)?null:n}static _getIndentationAndAutoClosingPairEdits(e,t,i,s,n){const r=i.map((({selection:i,indentation:r})=>{if(null!==n){const o=this._getEditFromIndentationAndSelection(e,t,r,i,s,!1);return new N(o,i,s,n)}{const n=this._getEditFromIndentationAndSelection(e,t,r,i,s,!0);return F(n.range,n.text,!1)}}));return new c.vY(4,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,s,n,r=!0){const o=s.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(o);let c=e.normalizeIndentation(i);if(0!==a){c+=t.getLineContent(o).substring(a-1,s.startColumn-1)}c+=r?n:"";return{range:new h.Q(o,1,s.endLineNumber,s.endColumn),text:c}}}class v{static getEdits(e,t,i,s,n,r){if(P(t,i,s,n,r))return this._runAutoClosingOvertype(e,s,r)}static _runAutoClosingOvertype(e,t,i){const s=[];for(let n=0,o=t.length;n<o;n++){const e=t[n].getPosition(),o=new h.Q(e.lineNumber,e.column,e.lineNumber,e.column+1);s[n]=new r.iu(o,i)}return new c.vY(4,s,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}}class C{static getEdits(e,t,i,s,n){if(P(e,t,i,s,n)){const e=i.map((e=>new r.iu(new h.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class E{static getEdits(e,t,i,s,n,r){if(!r){const r=this.getAutoClosingPairClose(e,t,i,s,n);if(null!==r)return this._runAutoClosingOpenCharType(i,s,n,r)}}static _runAutoClosingOpenCharType(e,t,i,s){const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];n[r]=new A(o,t,!i,s)}return new c.vY(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,i,s,n){for(const c of i)if(!c.isEmpty())return null;const r=i.map((e=>{const t=e.getPosition();return n?{lineNumber:t.lineNumber,beforeColumn:t.column-s.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),o=this._findAutoClosingPairOpen(e,t,r.map((e=>new d.y(e.lineNumber,e.beforeColumn))),s);if(!o)return null;let a,h;if((0,c.vG)(s))a=e.autoClosingQuotes,h=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&o.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,h=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,h=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const u=this._findContainedAutoClosingPair(e,o),g=u?u.close:"";let m=!0;for(const c of r){const{lineNumber:i,beforeColumn:n,afterColumn:r}=c,d=t.getLineContent(i),u=d.substring(0,n-1),f=d.substring(r-1);if(f.startsWith(g)||(m=!1),f.length>0){const t=f.charAt(0);if(!this._isBeforeClosingBrace(e,f)&&!h(t))return null}if(1===o.open.length&&("'"===s||'"'===s)&&"always"!==a){const t=(0,l.i)(e.wordSeparators,[]);if(u.length>0){const e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,p.BQ)(_,n-1);if(!o.shouldAutoClose(v,n-v.firstCharOffset))return null;const C=o.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,n,C);if(!o.isOK(e))return null}}return m?o.close.substring(0,o.close.length-g.length):o.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),s=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let n=null;for(const r of s)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!n||r.open.length>n.open.length)&&(n=r);return n}static _findAutoClosingPairOpen(e,t,i,s){const n=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(s);if(!n)return null;let r=null;for(const o of n)if(null===r||o.open.length>r.open.length){let e=!0;for(const n of i){if(t.getValueInRange(new h.Q(n.lineNumber,n.column-o.open.length+1,n.lineNumber,n.column))+s!==o.open){e=!1;break}}e&&(r=o)}return r}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),s=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],n=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],r=s.some((e=>t.startsWith(e.open))),o=n.some((e=>t.startsWith(e.close)));return!r&&o}}class b{static getEdits(e,t,i,s,n){if(!n&&this._isSurroundSelectionType(e,t,i,s))return this._runSurroundSelectionType(e,i,s)}static _runSurroundSelectionType(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=e.surroundingPairs[i];s[n]=new a.i(r,i,o)}return new c.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isSurroundSelectionType(e,t,i,s){if(!B(e,s)||!e.surroundingPairs.hasOwnProperty(s))return!1;const n=(0,c.vG)(s);for(const r of i){if(r.isEmpty())return!1;let e=!0;for(let i=r.startLineNumber;i<=r.endLineNumber;i++){const s=t.getLineContent(i),n=i===r.startLineNumber?r.startColumn-1:0,o=i===r.endLineNumber?r.endColumn-1:s.length,a=s.substring(n,o);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(n&&r.startLineNumber===r.endLineNumber&&r.startColumn+1===r.endColumn){const e=t.getValueInRange(r);if((0,c.vG)(e))return!1}}return!0}}class S{static getEdits(e,t,i,s,n,r){if(!r&&this._isTypeInterceptorElectricChar(t,i,s)){const r=this._typeInterceptorElectricChar(e,t,i,s[0],n);if(r)return r}}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,o,a){if(!t.electricChars.hasOwnProperty(a)||!o.isEmpty())return null;const l=o.getPosition();i.tokenization.forceTokenization(l.lineNumber);const d=i.tokenization.getLineTokens(l.lineNumber);let u;try{u=t.onElectricCharacter(a,d,l.column)}catch(g){return(0,s.dz)(g),null}if(!u)return null;if(u.matchOpenBracket){const s=(d.getLineContent()+a).lastIndexOf(u.matchOpenBracket)+1,o=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:l.lineNumber,column:s},500);if(o){if(o.startLineNumber===l.lineNumber)return null;const s=i.getLineContent(o.startLineNumber),d=n.UU(s),u=t.normalizeIndentation(d),g=i.getLineContent(l.lineNumber),p=i.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,m=u+g.substring(p-1,l.column-1)+a,f=new h.Q(l.lineNumber,1,l.lineNumber,l.column),_=new r.iu(f,m);return new c.vY(I(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}}class y{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class w{static getEdits(e,t,i,s,n){if(!n&&"\n"===s){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!1,i[n]);return new c.vY(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}static _enter(e,t,i,s){if(0===e.autoIndent)return F(s,"\n",i);if(!t.tokenization.isCheapToTokenize(s.getStartPosition().lineNumber)||1===e.autoIndent){const r=t.getLineContent(s.startLineNumber),o=n.UU(r).substring(0,s.startColumn-1);return F(s,"\n"+e.normalizeIndentation(o),i)}const o=(0,f.h)(e.autoIndent,t,s,e.languageConfigurationService);if(o){if(o.indentAction===u.l.None)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.Indent)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.IndentOutdent){const t=e.normalizeIndentation(o.indentation),n=e.normalizeIndentation(o.indentation+o.appendText),a="\n"+n+"\n"+t;return i?new r.q2(s,a,!0):new r.iP(s,a,-1,n.length-t.length,!0)}if(o.indentAction===u.l.Outdent){const t=H(e,o.indentation);return F(s,"\n"+e.normalizeIndentation(t+o.appendText),i)}}const a=t.getLineContent(s.startLineNumber),c=n.UU(a).substring(0,s.startColumn-1);if(e.autoIndent>=4){const o=(0,m.MU)(e.autoIndent,t,s,{unshiftIndent:t=>H(e,t),shiftIndent:t=>U(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let a=e.visibleColumnFromColumn(t,s.getEndPosition());const c=s.endColumn,l=t.getLineContent(s.endLineNumber),h=n.HG(l);if(s=h>=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,h+1)):s.setEndPosition(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),i)return new r.q2(s,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return c<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new r.iP(s,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return F(s,"\n"+e.normalizeIndentation(c),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,o=i.length;n<o;n++){let o=i[n].positionLineNumber;if(1===o)s[n]=new r.q2(new h.Q(1,1,1,1),"\n");else{o--;const i=t.getLineMaxColumn(o);s[n]=this._enter(e,t,!1,new h.Q(o,i,o,i))}}return s}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,r=i.length;n<r;n++){const r=i[n].positionLineNumber,o=t.getLineMaxColumn(r);s[n]=this._enter(e,t,!1,new h.Q(r,o,r,o))}return s}static lineBreakInsert(e,t,i){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!0,i[n]);return s}}class R{static getEdits(e,t,i,s,n,r){const o=this._distributePasteToCursors(e,i,s,n,r);return o?(i=i.sort(h.Q.compareRangesUsingStarts),this._distributedPaste(e,t,i,o)):this._simplePaste(e,t,i,s,n)}static _distributePasteToCursors(e,t,i,s,r){if(s)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1));const e=n.uz(i);if(e.length===t.length)return e}return null}static _distributedPaste(e,t,i,s){const n=[];for(let o=0,a=i.length;o<a;o++)n[o]=new r.iu(i[o],s[o]);return new c.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,s,n){const o=[];for(let a=0,c=i.length;a<c;a++){const e=i[a],t=e.getPosition();if(n&&!e.isEmpty()&&(n=!1),n&&s.indexOf("\n")!==s.length-1&&(n=!1),n){const i=new h.Q(t.lineNumber,1,t.lineNumber,1);o[a]=new r.ui(i,s,e,!0)}else o[a]=new r.iu(e,s)}return new c.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class L{static getEdits(e,t,i,s,n,r,o,a){const l=s.map((e=>this._compositionType(i,e,n,r,o,a)));return new c.vY(4,l,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,n,o){if(!t.isEmpty())return null;const a=t.getPosition(),c=Math.max(1,a.column-s),l=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+n),d=new h.Q(a.lineNumber,c,a.lineNumber,l);return e.getValueInRange(d)===i&&0===o?null:new r.iP(d,i,0,o)}}class T{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class x{static getCommands(e,t,i){const s=[];for(let n=0,a=i.length;n<a;n++){const a=i[n];if(a.isEmpty()){const i=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(a.startLineNumber)){let o=this._goodIndentForLine(e,t,a.startLineNumber);o=o||"\t";const c=e.normalizeIndentation(o);if(!i.startsWith(c)){s[n]=new r.iu(new h.Q(a.startLineNumber,1,a.startLineNumber,i.length+1),c,!0);continue}}s[n]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){const i=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==i){s[n]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}s[n]=new o.Y(a,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return s}static _goodIndentForLine(e,t,i){let s=null,r="";const o=(0,m.vn)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(o)s=o.action,r=o.indentation;else if(i>1){let s;for(s=i-1;s>=1;s--){const e=t.getLineContent(s);if(n.lT(e)>=0)break}if(s<1)return null;const o=t.getLineMaxColumn(s),a=(0,f.h)(e.autoIndent,t,new h.Q(s,o,s,o),e.languageConfigurationService);a&&(r=a.indentation+a.appendText)}return s&&(s===u.l.Indent&&(r=U(e,r)),s===u.l.Outdent&&(r=H(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,i,s){let n="";const o=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,o),s=e.indentSize,r=s-i%s;for(let e=0;e<r;e++)n+=" "}else n="\t";return new r.iu(i,n,s)}}class k extends r.iP{constructor(e,t,i,s,n,r){super(e,t,i,s),this._openCharacter=n,this._closeCharacter=r,this.closeCharacterRange=null,this.enclosingRange=null}_computeCursorStateWithRange(e,t,i){return this.closeCharacterRange=new h.Q(t.startLineNumber,t.endColumn-this._closeCharacter.length,t.endLineNumber,t.endColumn),this.enclosingRange=new h.Q(t.startLineNumber,t.endColumn-this._openCharacter.length-this._closeCharacter.length,t.endLineNumber,t.endColumn),super.computeCursorState(e,i)}}class A extends k{constructor(e,t,i,s){super(e,(i?t:"")+s,0,-s.length,t,s)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._computeCursorStateWithRange(e,i,t)}}class N extends k{constructor(e,t,i,s){const n=i+s;super(t,n,0,i.length,i,s),this._autoIndentationEdit=e,this._autoClosingEdit={range:t,text:n}}getEditOperations(e,t){t.addTrackedEditOperation(this._autoIndentationEdit.range,this._autoIndentationEdit.text),t.addTrackedEditOperation(this._autoClosingEdit.range,this._autoClosingEdit.text)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2!==i.length)throw new Error("There should be two inverse edit operations!");const s=i[0].range,n=i[1].range,r=s.plusRange(n);return this._computeCursorStateWithRange(e,r,t)}}function I(e,t){return" "===e?5===t||6===t?6:5:4}function O(e,t){return!(!M(e)||M(t))||5!==e&&D(e)!==D(t)}function D(e){return 6===e||5===e?"space":e}function M(e){return 4===e||5===e||6===e}function P(e,t,i,s,n){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(n))return!1;for(let r=0,o=i.length;r<o;r++){const o=i[r];if(!o.isEmpty())return!1;const a=o.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==n)return!1;const h=(0,c.vG)(n);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=s.length;t<i;t++){const i=s[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}function F(e,t,i){return i?new r.q2(e,t,!0):new r.iu(e,t,!0)}function U(e,t,i){return i=i||1,o.Y.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function H(e,t,i){return i=i||1,o.Y.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function B(e,t){return(0,c.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},26690:(e,t,i)=>{"use strict";i.d(t,{ne:()=>ie,Nd:()=>se,Jo:()=>W,WJ:()=>V,dt:()=>ne,uU:()=>oe,Tt:()=>f,yr:()=>H,O:()=>B,WP:()=>p,dE:()=>_,J1:()=>O,or:()=>g});var s=i(74320);function n(e){const t=function(e){if(r=0,a(e,c,4352),r>0)return o.subarray(0,r);if(a(e,l,4449),r>0)return o.subarray(0,r);if(a(e,h,4520),r>0)return o.subarray(0,r);if(a(e,d,12593),r)return o.subarray(0,r);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,s=Math.floor(t/588),n=Math.floor(i/28),u=i%28-1;if(s<c.length?a(s,c,0):4352+s-12593<d.length&&a(4352+s,d,12593),n<l.length?a(n,l,0):4449+n-12593<d.length&&a(4449+n-12593,d,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<d.length&&a(4520+u-12593,d,12593)),r>0)return o.subarray(0,r)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let r=0;const o=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;o[r++]=255&e,e>>8&&(o[r++]=e>>8&255);e>>16&&(o[r++]=e>>16&255)}(t[e-i])}const c=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),l=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),d=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(91508);function g(...e){return function(t,i){for(let s=0,n=e.length;s<n;s++){const n=e[s](t,i);if(n)return n}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let s;return s=e?u.ns(i,t):0===i.indexOf(t),s?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]===t[s]){let n=null;return(n=v(e,t,i+1,s+1))?k({start:s,end:s+1},n):null}return v(e,t,i,s+1)}function C(e){return 97<=e&&e<=122}function E(e){return 65<=e&&e<=90}function b(e){return 48<=e&&e<=57}function S(e){return 32===e||9===e||10===e||13===e}const y=new Set;function w(e){return S(e)||y.has(e)}function R(e,t){return e===t||w(e)&&w(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>y.add(e.charCodeAt(0))));const L=new Map;function T(e){if(L.has(e))return L.get(e);let t;const i=n(e);return i&&(t=i),L.set(e,t),t}function x(e){return C(e)||E(e)||b(e)}function k(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function A(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(E(t)||b(t)||i>0&&!x(e.charCodeAt(i-1)))return i}return e.length}function N(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]!==t[s].toLowerCase())return null;{let n=null,r=s+1;for(n=N(e,t,i+1,s+1);!n&&(r=A(t,r))<t.length;)n=N(e,t,i+1,r),r++;return null===n?null:k({start:s,end:s+1},n)}}function I(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,s=0,n=0;for(let r=0;r<e.length;r++)s=e.charCodeAt(r),E(s)&&t++,C(s)&&i++,S(s)&&n++;return 0!==t&&0!==i||0!==n?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,s=0,n=0,r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o),E(r)&&t++,C(r)&&i++,x(r)&&s++,b(r)&&n++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:s/e.length,numericPercent:n/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:s,numericPercent:n}=e;return i>.2&&t<.8&&s>.6&&n<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let s=null,n=0;for(e=e.toLowerCase();n<t.length&&null===(s=N(e,t,0,n));)n=A(t,n+1);return s}function O(e,t,i=!1){if(!t||0===t.length)return null;let s=null,n=0;for(e=e.toLowerCase(),t=t.toLowerCase();n<t.length&&(s=D(e,t,0,n,i),null===s);)n=M(t,n+1);return s}function D(e,t,i,s,n){let r=0;if(i===e.length)return[];if(s===t.length)return null;if(!R(e.charCodeAt(i),t.charCodeAt(s))){const n=T(e.charCodeAt(i));if(!n)return null;for(let e=0;e<n.length;e++)if(!R(n[e],t.charCodeAt(s+e)))return null;r+=n.length-1}let o=null,a=s+r+1;if(o=D(e,t,i+1,a,n),!n)for(;!o&&(a=M(t,a))<t.length;)o=D(e,t,i+1,a,n),a++;if(!o)return null;if(e.charCodeAt(i)!==t.charCodeAt(s)){const n=T(e.charCodeAt(i));if(!n)return o;for(let e=0;e<n.length;e++)if(n[e]!==t.charCodeAt(s+e))return o}return k({start:s,end:s+r+1},o)}function M(e,t){for(let i=t;i<e.length;i++)if(w(e.charCodeAt(i))||i>0&&w(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,I,f),F=g(p,I,_),U=new s.qK(1e4);function H(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let s=U.get(e);s||(s=new RegExp(u.Bm(e),"i"),U.set(e,s));const n=s.exec(t);return n?[{start:n.index,end:n.index+n[0].length}]:i?F(e,t):P(e,t)}function B(e,t){const i=ne(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?V(i):null}function W(e,t,i,s,n,r){const o=Math.min(13,e.length);for(;i<o;i++){const o=ne(e,t,i,s,n,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(o)return o}return[0,r]}function V(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let s=e.length-1;s>1;s--){const n=e[s]+i,r=t[t.length-1];r&&r.end===n?r.end=n+1:t.push({start:n,end:n+1})}return t}const z=128;function G(){const e=[],t=[];for(let i=0;i<=z;i++)t[i]=0;for(let i=0;i<=z;i++)e.push(t.slice(0));return e}function j(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const K=j(2*z),Y=j(2*z),q=G(),$=G(),Q=G(),X=!1;function Z(e,t,i,s,n){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let o=` | |${s.split("").map((e=>r(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)o+=0===a?" |":`${t[a-1]}|`,o+=e[a].slice(0,n+1).map((e=>r(e.toString(),3))).join("|")+"\n";return o}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.Ss(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class se{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function ne(e,t,i,s,n,r,o=se.default){const a=e.length>z?z:e.length,c=s.length>z?z:s.length;if(i>=a||r>=c||a-i>c-r)return;if(!function(e,t,i,s,n,r,o=!1){for(;t<i&&n<r;)e[t]===s[n]&&(o&&(K[t]=n),t+=1),n+=1;return t===i}(t,i,a,n,r,c,!0))return;!function(e,t,i,s,n,r){let o=e-1,a=t-1;for(;o>=i&&a>=s;)n[o]===r[a]&&(Y[o]=a,o--),a--}(a,c,i,r,t,n);let l=1,h=1,d=i,u=r;const g=[!1];for(l=1,d=i;d<a;l++,d++){const o=K[d],p=Y[d],m=d+1<a?Y[d+1]:c;for(h=o-r+1,u=o;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=re(e,t,d,i,s,n,u,c,r,0===q[l-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+$[l-1][h-1]);const _=u>o,v=_?$[l][h-1]+(q[l][h-1]>0?-5:0):0,C=u>o+1&&q[l][h-1]>0,E=C?$[l][h-2]+(q[l][h-2]>0?-5:0):0;if(C&&(!_||E>=v)&&(!m||E>=f))$[l][h]=E,Q[l][h]=3,q[l][h]=0;else if(_&&(!m||v>=f))$[l][h]=v,Q[l][h]=2,q[l][h]=0;else{if(!m)throw new Error("not possible");$[l][h]=f,Q[l][h]=1,q[l][h]=q[l-1][h-1]+1}}}if(X&&function(e,t,i,s){e=e.substr(t),i=i.substr(s),console.log(Z($,e,e.length,i,i.length)),console.log(Z(Q,e,e.length,i,i.length)),console.log(Z(q,e,e.length,i,i.length))}(e,i,s,r),!g[0]&&!o.firstMatchCanBeWeak)return;l--,h--;const p=[$[l][h],r];let m=0,f=0;for(;l>=1;){let e=h;do{const t=Q[l][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+l-1]===n[r+h-1]&&!te(e+r-1,s,n)&&m+1>q[l][e]&&(e=h),e===h?m++:m=1,f||(f=e),l--,h=e-1,p.push(h)}c-r===a&&o.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function re(e,t,i,s,n,r,o,a,c,l,h){if(t[i]!==r[o])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return o===i-s?d=e[i]===n[o]?7:5:!te(o,n,r)||0!==o&&te(o-1,n,r)?!J(r,o)||0!==o&&J(r,o-1)?(J(r,o-1)||ee(r,o-1))&&(d=5,u=!0):d=5:(d=e[i]===n[o]?7:5,u=!0),d>1&&i===s&&(h[0]=!0),u||(u=te(o,n,r)||J(r,o-1)||ee(r,o-1)),i===s?o>c&&(d-=u?3:5):d+=l?u?2:0:u?0:1,o+1===a&&(d-=u?3:5),d}function oe(e,t,i,s,n,r,o){return function(e,t,i,s,n,r,o,a){let c=ne(e,t,i,s,n,r,a);if(c&&!o)return c;if(e.length>=3){const t=Math.min(7,e.length-1);for(let o=i+1;o<t;o++){const t=ae(e,o);if(t){const e=ne(t,t.toLowerCase(),i,s,n,r,a);e&&(e[0]-=3,(!c||e[0]>c[0])&&(c=e))}}}return c}(e,t,i,s,n,r,!0,o)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],s=e[t+1];return i!==s?e.slice(0,t)+s+i+e.slice(t+2):void 0}},26746:(e,t,i)=>{"use strict";i.d(t,{D8:()=>I});var s=i(25890),n=i(66782),r=i(86571),o=i(74444),a=i(36677),c=i(68938);class l{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class d{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let s=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){s++;const i=e[t],n=d.getKey(i);this.histogram[n]=(this.histogram[n]||0)+1}s++;const i=d.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=s}computeSimilarity(e){let t=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)t+=Math.abs((this.histogram[s]??0)-(e.histogram[s]??0));return 1-t/(this.totalCount+e.totalCount)}}class u{compute(e,t,i=c.uY.instance,s){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const n=new l(e.length,t.length),r=new l(e.length,t.length),a=new l(e.length,t.length);for(let o=0;o<e.length;o++)for(let l=0;l<t.length;l++){if(!i.isValid())return c.SL.trivialTimedOut(e,t);const h=0===o?0:n.get(o-1,l),d=0===l?0:n.get(o,l-1);let u;e.getElement(o)===t.getElement(l)?(u=0===o||0===l?0:n.get(o-1,l-1),o>0&&l>0&&3===r.get(o-1,l-1)&&(u+=a.get(o-1,l-1)),u+=s?s(o,l):1):u=-1;const g=Math.max(h,d,u);if(g===u){const e=o>0&&l>0?a.get(o-1,l-1):0;a.set(o,l,e+1),r.set(o,l,3)}else g===h?(a.set(o,l,0),r.set(o,l,1)):g===d&&(a.set(o,l,0),r.set(o,l,2));n.set(o,l,g)}const h=[];let d=e.length,u=t.length;function g(e,t){e+1===d&&t+1===u||h.push(new c.$8(new o.L(e+1,d),new o.L(t+1,u))),d=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===r.get(p,m)?(g(p,m),p--,m--):1===r.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new c.SL(h,!1)}}class g{compute(e,t,i=c.uY.instance){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const s=e,n=t;function r(e,t){for(;e<s.length&&t<n.length&&s.getElement(e)===n.getElement(t);)e++,t++;return e}let a=0;const l=new m;l.set(0,r(0,0));const h=new f;h.set(0,0===l.get(0)?null:new p(null,0,0,l.get(0)));let d=0;e:for(;;){if(a++,!i.isValid())return c.SL.trivialTimedOut(s,n);const e=-Math.min(a,n.length+a%2),t=Math.min(a,s.length+a%2);for(d=e;d<=t;d+=2){let i=0;const o=d===t?-1:l.get(d+1),a=d===e?-1:l.get(d-1)+1;i++;const c=Math.min(Math.max(o,a),s.length),u=c-d;if(i++,c>s.length||u>n.length)continue;const g=r(c,u);l.set(d,g);const m=c===o?h.get(d+1):h.get(d-1);if(h.set(d,g!==c?new p(m,c,u,g-c):m),l.get(d)===s.length&&l.get(d)-d===n.length)break e}}let u=h.get(d);const g=[];let _=s.length,v=n.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new c.$8(new o.L(e,_),new o.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new c.SL(g,!1)}}class p{constructor(e,t,i,s){this.prev=e,this.x=t,this.y=i,this.length=s}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var _=i(87723),v=i(46041),C=i(74320),E=i(83069);class b{constructor(e,t,i){this.lines=e,this.range=t,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let t=e[s-1],n=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(n=this.range.startColumn-1,t=t.substring(n)),this.lineStartOffsets.push(n);let r=0;if(!i){const e=t.trimStart();r=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(r);const o=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-n-r,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));s<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new o.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=R(e>0?this.elements[e-1]:-1),i=R(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let s=0;return t!==i&&(s+=10,0===t&&1===i&&(s+=1)),s+=w(t),s+=w(i),s}translateOffset(e,t="right"){const i=(0,v.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),s=e-this.firstElementOffsetByLineIdx[i];return new E.y(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+s+(0===s&&"left"===t?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const t=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(t)?a.Q.fromPositions(i,i):a.Q.fromPositions(t,i)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!S(this.elements[e]))return;let t=e;for(;t>0&&S(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&S(this.elements[i]);)i++;return new o.L(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,v.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,i=(0,v.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new o.L(t,i)}}function S(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const y={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function w(e){return y[e]}function R(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function L(e,t,i,n,o,a){let{moves:c,excludedChanges:l}=function(e,t,i,s){const n=[],r=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new d(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new d(e.modified,i,e)))),a=new Set;for(const c of r){let e,t=-1;for(const i of o){const s=c.computeSimilarity(i);s>t&&(t=s,e=i)}if(t>.9&&e&&(o.delete(e),n.push(new _.WL(c.range,e.range)),a.add(c.source),a.add(e.source)),!s.isValid())return{moves:n,excludedChanges:a}}return{moves:n,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,n,o,a){const c=[],l=new C.db;for(const s of e)for(let e=s.original.startLineNumber;e<s.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;l.add(i,{range:new r.M(e,e+3)})}const h=[];e.sort((0,s.VE)((e=>e.modified.startLineNumber),s.U9));for(const s of e){let e=[];for(let t=s.modified.startLineNumber;t<s.modified.endLineNumberExclusive-2;t++){const s=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,n=new r.M(t,t+3),o=[];l.forEach(s,(({range:t})=>{for(const s of e)if(s.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&s.modifiedLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive)return s.originalLineRange=new r.M(s.originalLineRange.startLineNumber,t.endLineNumberExclusive),s.modifiedLineRange=new r.M(s.modifiedLineRange.startLineNumber,n.endLineNumberExclusive),void o.push(s);const i={modifiedLineRange:n,originalLineRange:t};h.push(i),o.push(i)})),e=o}if(!a.isValid())return[]}h.sort((0,s.Hw)((0,s.VE)((e=>e.modifiedLineRange.length),s.U9)));const d=new r.S,u=new r.S;for(const s of h){const e=s.modifiedLineRange.startLineNumber-s.originalLineRange.startLineNumber,t=d.subtractFrom(s.modifiedLineRange),i=u.subtractFrom(s.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const s of n.ranges){if(s.length<3)continue;const t=s,i=s.delta(-e);c.push(new _.WL(i,t)),d.addRange(t),u.addRange(i)}}c.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const g=new v.vJ(e);for(let s=0;s<c.length;s++){const t=c[s],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),l=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-l.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let C,E;for(C=0;C<h;C++){const e=t.original.startLineNumber-C-1,i=t.modified.startLineNumber-C-1;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}for(C>0&&(u.addRange(new r.M(t.original.startLineNumber-C,t.original.startLineNumber)),d.addRange(new r.M(t.modified.startLineNumber-C,t.modified.startLineNumber))),E=0;E<f;E++){const e=t.original.endLineNumberExclusive+E,i=t.modified.endLineNumberExclusive+E;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}E>0&&(u.addRange(new r.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+E)),d.addRange(new r.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+E))),(C>0||E>0)&&(c[s]=new _.WL(new r.M(t.original.startLineNumber-C,t.original.endLineNumberExclusive+E),new r.M(t.modified.startLineNumber-C,t.modified.endLineNumberExclusive+E)))}return c}(e.filter((e=>!l.has(e))),n,o,t,i,a);return(0,s.E4)(c,h),c=function(e){if(0===e.length)return e;e.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const t=[e[0]];for(let i=1;i<e.length;i++){const s=t[t.length-1],n=e[i],r=n.original.startLineNumber-s.original.endLineNumberExclusive,o=n.modified.startLineNumber-s.modified.endLineNumberExclusive;r>=0&&o>=0&&r+o<=2?t[t.length-1]=s.join(n):t.push(n)}return t}(c),c=c.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const s of e)t(s)&&i++;return i}(i,(e=>e.length>=2))>=2})),c=function(e,t){const i=new v.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.WL(new r.M(1,1),new r.M(1,1)))!==(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,c),c}function T(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=(new g).compute(new b([e],new a.Q(1,1,1,e.length),!1),new b([t],new a.Q(1,1,1,t.length),!1),i);let n=0;const r=c.$8.invert(s.diffs,e.length);for(const a of r)a.seq1Range.forEach((t=>{h(e.charCodeAt(t))||n++}));const o=function(t){let i=0;for(let s=0;s<e.length;s++)h(t.charCodeAt(s))||i++;return i}(e.length>t.length?e:t);return n/o>.6&&o>10}var x=i(82518);class k{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:A(this.lines[e-1]))+(e===this.lines.length?0:A(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function A(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var N=i(41845);class I{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,s.aI)(e,t,((e,t)=>e===t)))return new N.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new N.p([new _.wm(new r.M(1,e.length+1),new r.M(1,t.length+1),[new _.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const l=0===i.maxComputationTimeMs?c.uY.instance:new c.aY(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,d=new Map;function u(e){let t=d.get(e);return void 0===t&&(t=d.size,d.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new k(g,e),f=new k(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,l,((i,s)=>e[i]===t[s]?0===t[s].length?.1:1+Math.log(1+t[s].length):.99)):this.myersDiffingAlgorithm.compute(m,f,l))();let C=v.diffs,E=v.hitTimeout;C=(0,x.NC)(m,f,C),C=(0,x.X5)(m,f,C);const b=[],S=i=>{if(h)for(let s=0;s<i;s++){const i=y+s,n=w+s;if(e[i]!==t[n]){const s=this.refineDiff(e,t,new c.$8(new o.L(i,i+1),new o.L(n,n+1)),l,h);for(const e of s.mappings)b.push(e);s.hitTimeout&&(E=!0)}}};let y=0,w=0;for(const s of C){(0,n.Ft)((()=>s.seq1Range.start-y===s.seq2Range.start-w));S(s.seq1Range.start-y),y=s.seq1Range.endExclusive,w=s.seq2Range.endExclusive;const i=this.refineDiff(e,t,s,l,h);i.hitTimeout&&(E=!0);for(const e of i.mappings)b.push(e)}S(e.length-y);const R=O(b,e,t);let L=[];return i.computeMoves&&(L=this.computeMoves(R,e,t,g,p,l,h)),(0,n.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function s(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const n of R){if(!n.innerChanges)return!1;for(const s of n.innerChanges){if(!(i(s.modifiedRange.getStartPosition(),t)&&i(s.modifiedRange.getEndPosition(),t)&&i(s.originalRange.getStartPosition(),e)&&i(s.originalRange.getEndPosition(),e)))return!1}if(!s(n.modified,t)||!s(n.original,e))return!1}return!0})),new N.p(R,L,E)}computeMoves(e,t,i,s,n,r,o){return L(e,t,i,s,n,r).map((e=>{const s=O(this.refineDiff(t,i,new c.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),r,o).mappings,t,i,!0);return new N.t(e,s)}))}refineDiff(e,t,i,s,n){var o;const a=(o=i,new _.WL(new r.M(o.seq1Range.start+1,o.seq1Range.endExclusive+1),new r.M(o.seq2Range.start+1,o.seq2Range.endExclusive+1))).toRangeMapping2(e,t),c=new b(e,a.originalRange,n),l=new b(t,a.modifiedRange,n),h=c.length+l.length<500?this.dynamicProgrammingDiffing.compute(c,l,s):this.myersDiffingAlgorithm.compute(c,l,s),d=!1;let u=h.diffs;u=(0,x.NC)(c,l,u),u=(0,x.Lk)(c,l,u),u=(0,x.sq)(c,l,u),u=(0,x.Rl)(c,l,u);const g=u.map((e=>new _.q6(c.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:g,hitTimeout:h.hitTimeout}}}function O(e,t,i,o=!1){const a=[];for(const n of(0,s.n)(e.map((e=>function(e,t,i){let s=0,n=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+s<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+s<=e.modifiedRange.endLineNumber&&(n=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+n&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+n&&(s=1);const o=new r.M(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+n),a=new r.M(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+n);return new _.wm(o,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=n[0],t=n[n.length-1];a.push(new _.wm(e.original.join(t.original),e.modified.join(t.modified),n.map((e=>e.innerChanges[0]))))}return(0,n.Ft)((()=>{if(!o&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,n.Xo)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),a}},27004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensStylingService:()=>u});var s=i(5662),n=i(10154),r=i(47612),o=i(18801),a=i(45538),c=i(74243),l=i(14718),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};let u=class extends s.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,r.Gy),d(1,o.rr),d(2,n.L)],u),(0,l.v)(c.ISemanticTokensStylingService,u,1)},27020:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(2042).then(i.bind(i,62042))}),(0,s.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(2042).then(i.bind(i,62042))})},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>y,Xe:()=>S,ZG:()=>E,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>b,ug:()=>w});var s,n=i(36921),r=i(25689),o=i(41234),a=i(5662),c=i(58925),l=i(50091),h=i(32848),d=i(63591),u=i(59261),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{static{this._instances=new Map}static{this.CommandPalette=new _("CommandPalette")}static{this.DebugBreakpointsContext=new _("DebugBreakpointsContext")}static{this.DebugCallStackContext=new _("DebugCallStackContext")}static{this.DebugConsoleContext=new _("DebugConsoleContext")}static{this.DebugVariablesContext=new _("DebugVariablesContext")}static{this.NotebookVariablesContext=new _("NotebookVariablesContext")}static{this.DebugHoverContext=new _("DebugHoverContext")}static{this.DebugWatchContext=new _("DebugWatchContext")}static{this.DebugToolBar=new _("DebugToolBar")}static{this.DebugToolBarStop=new _("DebugToolBarStop")}static{this.DebugCallStackToolbar=new _("DebugCallStackToolbar")}static{this.DebugCreateConfiguration=new _("DebugCreateConfiguration")}static{this.EditorContext=new _("EditorContext")}static{this.SimpleEditorContext=new _("SimpleEditorContext")}static{this.EditorContent=new _("EditorContent")}static{this.EditorLineNumberContext=new _("EditorLineNumberContext")}static{this.EditorContextCopy=new _("EditorContextCopy")}static{this.EditorContextPeek=new _("EditorContextPeek")}static{this.EditorContextShare=new _("EditorContextShare")}static{this.EditorTitle=new _("EditorTitle")}static{this.EditorTitleRun=new _("EditorTitleRun")}static{this.EditorTitleContext=new _("EditorTitleContext")}static{this.EditorTitleContextShare=new _("EditorTitleContextShare")}static{this.EmptyEditorGroup=new _("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new _("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new _("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new _("ExplorerContext")}static{this.ExplorerContextShare=new _("ExplorerContextShare")}static{this.ExtensionContext=new _("ExtensionContext")}static{this.GlobalActivity=new _("GlobalActivity")}static{this.CommandCenter=new _("CommandCenter")}static{this.CommandCenterCenter=new _("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new _("LayoutControlMenu")}static{this.MenubarMainMenu=new _("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new _("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new _("MenubarDebugMenu")}static{this.MenubarEditMenu=new _("MenubarEditMenu")}static{this.MenubarCopy=new _("MenubarCopy")}static{this.MenubarFileMenu=new _("MenubarFileMenu")}static{this.MenubarGoMenu=new _("MenubarGoMenu")}static{this.MenubarHelpMenu=new _("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new _("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new _("PanelAlignmentMenu")}static{this.PanelPositionMenu=new _("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new _("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new _("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new _("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new _("MenubarSelectionMenu")}static{this.MenubarShare=new _("MenubarShare")}static{this.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new _("MenubarTerminalMenu")}static{this.MenubarViewMenu=new _("MenubarViewMenu")}static{this.MenubarHomeMenu=new _("MenubarHomeMenu")}static{this.OpenEditorsContext=new _("OpenEditorsContext")}static{this.OpenEditorsContextShare=new _("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new _("ProblemsPanelContext")}static{this.SCMInputBox=new _("SCMInputBox")}static{this.SCMChangesSeparator=new _("SCMChangesSeparator")}static{this.SCMChangesContext=new _("SCMChangesContext")}static{this.SCMIncomingChanges=new _("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new _("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new _("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new _("SCMChangeContext")}static{this.SCMResourceContext=new _("SCMResourceContext")}static{this.SCMResourceContextShare=new _("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new _("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new _("SCMResourceGroupContext")}static{this.SCMSourceControl=new _("SCMSourceControl")}static{this.SCMSourceControlInline=new _("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new _("SCMSourceControlTitle")}static{this.SCMHistoryTitle=new _("SCMHistoryTitle")}static{this.SCMTitle=new _("SCMTitle")}static{this.SearchContext=new _("SearchContext")}static{this.SearchActionMenu=new _("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new _("StickyScrollContext")}static{this.TestItem=new _("TestItem")}static{this.TestItemGutter=new _("TestItemGutter")}static{this.TestProfilesContext=new _("TestProfilesContext")}static{this.TestMessageContext=new _("TestMessageContext")}static{this.TestMessageContent=new _("TestMessageContent")}static{this.TestPeekElement=new _("TestPeekElement")}static{this.TestPeekTitle=new _("TestPeekTitle")}static{this.TestCallStack=new _("TestCallStack")}static{this.TouchBarContext=new _("TouchBarContext")}static{this.TitleBarContext=new _("TitleBarContext")}static{this.TitleBarTitleContext=new _("TitleBarTitleContext")}static{this.TunnelContext=new _("TunnelContext")}static{this.TunnelPrivacy=new _("TunnelPrivacy")}static{this.TunnelProtocol=new _("TunnelProtocol")}static{this.TunnelPortInline=new _("TunnelInline")}static{this.TunnelTitle=new _("TunnelTitle")}static{this.TunnelLocalAddressInline=new _("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new _("TunnelOriginInline")}static{this.ViewItemContext=new _("ViewItemContext")}static{this.ViewContainerTitle=new _("ViewContainerTitle")}static{this.ViewContainerTitleContext=new _("ViewContainerTitleContext")}static{this.ViewTitle=new _("ViewTitle")}static{this.ViewTitleContext=new _("ViewTitleContext")}static{this.CommentEditorActions=new _("CommentEditorActions")}static{this.CommentThreadTitle=new _("CommentThreadTitle")}static{this.CommentThreadActions=new _("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new _("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new _("CommentThreadCommentContext")}static{this.CommentTitle=new _("CommentTitle")}static{this.CommentActions=new _("CommentActions")}static{this.CommentsViewThreadActions=new _("CommentsViewThreadActions")}static{this.InteractiveToolbar=new _("InteractiveToolbar")}static{this.InteractiveCellTitle=new _("InteractiveCellTitle")}static{this.InteractiveCellDelete=new _("InteractiveCellDelete")}static{this.InteractiveCellExecute=new _("InteractiveCellExecute")}static{this.InteractiveInputExecute=new _("InteractiveInputExecute")}static{this.InteractiveInputConfig=new _("InteractiveInputConfig")}static{this.ReplInputExecute=new _("ReplInputExecute")}static{this.IssueReporter=new _("IssueReporter")}static{this.NotebookToolbar=new _("NotebookToolbar")}static{this.NotebookStickyScrollContext=new _("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new _("NotebookCellTitle")}static{this.NotebookCellDelete=new _("NotebookCellDelete")}static{this.NotebookCellInsert=new _("NotebookCellInsert")}static{this.NotebookCellBetween=new _("NotebookCellBetween")}static{this.NotebookCellListTop=new _("NotebookCellTop")}static{this.NotebookCellExecute=new _("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new _("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new _("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new _("NotebookKernelSource")}static{this.BulkEditTitle=new _("BulkEditTitle")}static{this.BulkEditContext=new _("BulkEditContext")}static{this.TimelineItemContext=new _("TimelineItemContext")}static{this.TimelineTitle=new _("TimelineTitle")}static{this.TimelineTitleContext=new _("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new _("TimelineFilterSubMenu")}static{this.AccountsContext=new _("AccountsContext")}static{this.SidebarTitle=new _("SidebarTitle")}static{this.PanelTitle=new _("PanelTitle")}static{this.AuxiliaryBarTitle=new _("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new _("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new _("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new _("TerminalNewDropdownContext")}static{this.TerminalTabContext=new _("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new _("TerminalStickyScrollContext")}static{this.WebviewContext=new _("WebviewContext")}static{this.InlineCompletionsActions=new _("InlineCompletionsActions")}static{this.InlineEditsActions=new _("InlineEditsActions")}static{this.InlineEditActions=new _("InlineEditActions")}static{this.NewFile=new _("NewFile")}static{this.MergeInput1Toolbar=new _("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new _("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new _("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new _("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new _("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new _("InlineEditToolbar")}static{this.ChatContext=new _("ChatContext")}static{this.ChatCodeBlock=new _("ChatCodeblock")}static{this.ChatCompareBlock=new _("ChatCompareBlock")}static{this.ChatMessageTitle=new _("ChatMessageTitle")}static{this.ChatExecute=new _("ChatExecute")}static{this.ChatExecuteSecondary=new _("ChatExecuteSecondary")}static{this.ChatInputSide=new _("ChatInputSide")}static{this.AccessibleView=new _("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar")}constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}const v=(0,d.u1)("menuService");class C{static{this._all=new Map}static for(e){let t=this._all.get(e);return t||(t=new C(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof C&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}const E=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.QT({merge:C.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(C.for(_.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(C.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const 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 c.w,this._menuItems.set(e,i));const s=i.push(t);return this._onDidChangeMenu.fire(C.for(e)),(0,a.s)((()=>{s(),this._onDidChangeMenu.fire(C.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:s}of e)t.add(this.appendMenuItem(i,s));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,s)=>{t.has(s)||e.push({command:i})}))}};class b extends n.YH{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 S=s=class{static label(e,t){return 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,o,a,c){let l;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=c,this.id=e.id,this.label=s.label(e,i),this.tooltip=("string"===typeof e.tooltip?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.L.isThemeIcon(t.icon)&&(l=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}l||(l=r.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new s(t,void 0,i,n,void 0,a,c):void 0,this._options=i,this.class=l&&r.L.asClassName(l)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};S=s=g([p(5,h.fN),p(6,l.d)],S);class y{constructor(e){this.desc=e}}function w(e){const t=[],i=new e,{f1:s,menu:n,keybinding:r,...o}=i.desc;if(l.w.getCommand(o.id))throw new Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(l.w.registerCommand({id:o.id,handler:(e,...t)=>i.run(e,...t),metadata:o.metadata})),Array.isArray(n))for(const a of n)t.push(E.appendMenuItem(a.id,{command:{...o,precondition:null===a.precondition?void 0:o.precondition},...a}));else n&&t.push(E.appendMenuItem(n.id,{command:{...o,precondition:null===n.precondition?void 0:o.precondition},...n}));if(s&&(t.push(E.appendMenuItem(_.CommandPalette,{command:o,when:o.precondition})),t.push(E.addCommand(o))),Array.isArray(r))for(const a of r)t.push(u.f.registerKeybindingRule({...a,id:o.id,when:o.precondition?h.M$.and(o.precondition,a.when):a.when}));else r&&t.push(u.f.registerKeybindingRule({...r,id:o.id,when:o.precondition?h.M$.and(o.precondition,r.when):r.when}));return{dispose(){(0,a.AS)(t)}}}},27414:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,c2:()=>o});var s=i(25890),n=i(85152);class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,n.j)(e);const i=this.values,s=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,n.j)(e),t=(0,n.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,n.j)(e),t=(0,n.j)(t);const i=this.values,s=this.prefixSum;if(e>=i.length)return!1;const r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,n.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,n=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,n=this.prefixSum[s],r=n-this.values[s],e<r)i=s-1;else{if(!(e>=n))break;t=s+1}return new a(s,e-r)}}class o{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,s.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let s=0;s<t;s++)this._indexBySum[i+s]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},27661:(e,t,i)=>{"use strict";i.d(t,{S5:()=>n,n:()=>o,yk:()=>r});var s=i(8597);function n(e,t={}){const i=o(t);return i.textContent=e,i}function r(e,t={}){const i=o(t);return c(i,function(e,t){const i={type:1,children:[]};let s=0,n=i;const r=[],o=new a(e);for(;!o.eos();){let e=o.next();const i="\\"===e&&0!==h(o.peek(),t);if(i&&(e=o.next()),!i&&l(e,t)&&e===o.peek()){o.advance(),2===n.type&&(n=r.pop());const i=h(e,t);if(n.type===i||5===n.type&&6===i)n=r.pop();else{const e={type:i,children:[]};5===i&&(e.index=s,s++),n.children.push(e),r.push(n),n=e}}else if("\n"===e)2===n.type&&(n=r.pop()),n.children.push({type:8});else if(2!==n.type){const t={type:2,content:e};n.children.push(t),r.push(n),n=t}else n.content+=e}2===n.type&&(n=r.pop());r.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function c(e,t,i,n){let r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&n)r=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(s.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),r=e}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((e=>{c(r,e,i,n)}))}function l(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},27734:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(3048).then(i.bind(i,3048))})},27760:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>l,no:()=>o});var s=i(91508),n=i(12296),r=i(87469);class o{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new c(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}}class a{constructor(e,t){this.model=e,this.indentationLineProcessor=new c(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1);let s;if(l(this.model,e.getStartPosition())){const n=e.startColumn-1-i.firstCharOffset,r=i.firstCharOffset,o=r+n;s=t.sliceAndInflate(r,o,0)}else{const i=e.startColumn-1;s=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(s)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=t.column-1-s.firstCharOffset,o=s.firstCharOffset+r,a=s.firstCharOffset+s.getLineLength(),c=i.sliceAndInflate(o,a,0);return this.indentationLineProcessor.getProcessedTokens(c)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1),s=r.f.createEmpty("",i.languageIdCodec),o=e.startLineNumber-1;if(0===o)return s;if(!(0===i.firstCharOffset))return s;const a=(e=>{this.model.tokenization.forceTokenization(e);const t=this.model.tokenization.getLineTokens(e),i=this.model.getLineMaxColumn(e)-1;return(0,n.BQ)(t,i)})(o);if(!(i.languageId===a.languageId))return s;const c=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(c)}}class c{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let n=this.getProcessedTokens(i).getLineContent();return void 0!==t&&(n=((e,t)=>{const i=s.UU(e);return t+e.substring(i.length)})(n,t)),n}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),s=[];e.forEach((t=>{const n=e.getStandardTokenType(t);let r=e.getTokenText(t);(e=>2===e||3===e||1===e)(n)&&(r=r.replace(i,""));const o=e.getMetadata(t);s.push({text:r,metadata:o})}));return r.f.createFromTextAndMetadata(s,e.languageIdCodec)}}function l(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=0===s.firstCharOffset,o=i.getLanguageId(0)===s.languageId;return!r&&!o}},27769:e=>{e.exports=function(){return"Unipika Pika!"}},28211:(e,t,i)=>{"use strict";i(97791),i(93409);var s=i(90766),n=i(18447),r=i(10350),o=i(25689),a=i(26690),c=i(74027),l=i(98067),h=i(91508);const d=[void 0,[]];function u(e,t,i=0,s=0){const n=t;return n.values&&n.values.length>1?function(e,t,i,s){let n=0;const r=[];for(const o of t){const[t,a]=g(e,o,i,s);if("number"!==typeof t)return d;n+=t,r.push(...a)}return[n,p(r)]}(e,n.values,i,s):g(e,t,i,s)}function g(e,t,i,s){const n=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),s,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],(0,a.WJ)(n)]:d}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let s;for(const n of t)s&&m(s,n)?(s.start=Math.min(s.start,n.start),s.end=Math.max(s.end,n.end)):(s=n,i.push(n));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:s,normalizedLowercase:n}=v(e),r=i.indexOf(c.Vn)>=0,o=f(e);let a;const l=e.split(" ");if(l.length>1)for(const c of l){const e=f(c),{pathNormalized:t,normalized:i,normalizedLowercase:s}=v(c);i&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:s,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:s,normalizedLowercase:n,values:a,containsPathSeparator:r,expectContiguousMatch:o}}function v(e){let t;t=l.uF?e.replace(/\//g,c.Vn):e.replace(/\\/g,c.Vn);const i=(0,h.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(" ")):_(e.original)}var E,b=i(5662),S=i(36677),y=i(62083),w=i(29999),R=i(12437),L=i(78209),T=i(56942),x=i(46041),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};let N=class extends R.o{static{E=this}static{this.PREFIX="@"}static{this.SCOPE_PREFIX=":"}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,L.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),b.jG.None}provideWithTextEditor(e,t,i,s){const n=e.editor,r=this.getModel(n);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,i,s):this.doProvideWithoutEditorSymbols(e,r,t,i):b.jG.None}doProvideWithoutEditorSymbols(e,t,i,s){const n=new b.Cm;return this.provideLabelPick(i,(0,L.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,n)&&!s.isCancellationRequested&&n.add(this.doProvideWithEditorSymbols(e,t,i,s))})(),n}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new s.Zv,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))})));return t.add((0,b.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,s,r){const o=e.editor,a=new b.Cm;a.add(i.onDidAccept((t=>{const[s]=i.selectedItems;s&&s.range&&(this.gotoLocation(e,{range:s.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),r?.handleAccept?.(s),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const c=this.getDocumentSymbols(t,s);let l;const h=async e=>{l?.dispose(!0),i.busy=!1,l=new n.Qi(s),i.busy=!0;try{const n=_(i.value.substr(E.PREFIX.length).trim()),r=await this.doGetSymbolPicks(c,n,void 0,l.token,t);if(s.isCancellationRequested)return;if(r.length>0){if(i.items=r,e&&0===n.original.length){const t=(0,x.Uk)(r,(t=>Boolean("separator"!==t.type&&t.range&&S.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else n.original.length>0?this.provideLabelPick(i,(0,L.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,L.kg)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(o.getSelection()?.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(o.revealRangeInCenter(e.range.selection,0),this.addDecorations(o,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,s,n){const a=await e;if(s.isCancellationRequested)return[];const c=0===t.original.indexOf(E.SCOPE_PREFIX),l=c?1:0;let d,g,p;t.values&&t.values.length>1?(d=C(t.values[0]),g=C(t.values.slice(1))):d=t;const m=this.options?.openSideBySideDirection?.();m&&(p=[{iconClass:"right"===m?o.L.asClassName(r.W.splitHorizontal):o.L.asClassName(r.W.splitVertical),tooltip:"right"===m?(0,L.kg)("openToSide","Open to the Side"):(0,L.kg)("openToBottom","Open to the Bottom")}]);const f=[];for(let b=0;b<a.length;b++){const w=a[b],R=(0,h.Bq)(w.name),T=`$(${y.gP.toIcon(w.kind).id}) ${R}`,x=T.length-R.length;let k,A,N,D,M=w.containerName;if(i?.extraContainerLabel&&(M=M?`${i.extraContainerLabel} \u2022 ${M}`:i.extraContainerLabel),t.original.length>l){let F=!1;if(d!==t&&([k,A]=u(T,{...t,values:void 0},l,x),"number"===typeof k&&(F=!0)),"number"!==typeof k&&([k,A]=u(T,d,l,x),"number"!==typeof k))continue;if(!F&&g){if(M&&g.original.length>0&&([N,D]=u(M,g)),"number"!==typeof N)continue;"number"===typeof k&&(k+=N)}}const P=w.tags&&w.tags.indexOf(1)>=0;f.push({index:b,kind:w.kind,score:k,label:T,ariaLabel:(0,y.PK)(w.name,w.kind),description:M,highlights:P?void 0:{label:A,description:D},range:{selection:S.Q.collapseToStart(w.selectionRange),decoration:w.range},uri:n.uri,symbolName:R,strikethrough:P,buttons:p})}const _=f.sort(((e,t)=>c?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let v=[];if(c){let U,H,B=0;function W(){H&&"number"===typeof U&&B>0&&(H.label=(0,h.GP)(O[U]||I,B))}for(const V of _)U!==V.kind?(W(),U=V.kind,B=1,H={type:"separator"},v.push(H)):B++,v.push(V);W()}else _.length>0&&(v=[{label:(0,L.kg)("symbols","symbols ({0})",f.length),type:"separator"},..._]);return v}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=O[e.kind]||I,s=O[t.kind]||I,n=i.localeCompare(s);return 0===n?this.compareByScore(e,t):n}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};N=E=k([A(0,T.ILanguageFeaturesService),A(1,w.gW)],N);const I=(0,L.kg)("property","properties ({0})"),O={5:(0,L.kg)("method","methods ({0})"),11:(0,L.kg)("function","functions ({0})"),8:(0,L.kg)("_constructor","constructors ({0})"),12:(0,L.kg)("variable","variables ({0})"),4:(0,L.kg)("class","classes ({0})"),22:(0,L.kg)("struct","structs ({0})"),23:(0,L.kg)("event","events ({0})"),24:(0,L.kg)("operator","operators ({0})"),10:(0,L.kg)("interface","interfaces ({0})"),2:(0,L.kg)("namespace","namespaces ({0})"),3:(0,L.kg)("package","packages ({0})"),25:(0,L.kg)("typeParameter","type parameters ({0})"),1:(0,L.kg)("modules","modules ({0})"),6:(0,L.kg)("property","properties ({0})"),9:(0,L.kg)("enum","enumerations ({0})"),21:(0,L.kg)("enumMember","enumeration members ({0})"),14:(0,L.kg)("string","strings ({0})"),0:(0,L.kg)("file","files ({0})"),17:(0,L.kg)("array","arrays ({0})"),15:(0,L.kg)("number","numbers ({0})"),16:(0,L.kg)("boolean","booleans ({0})"),18:(0,L.kg)("object","objects ({0})"),19:(0,L.kg)("key","keys ({0})"),7:(0,L.kg)("field","fields ({0})"),13:(0,L.kg)("constant","constants ({0})")};var D=i(46359),M=i(71597),P=i(80301),F=i(51861),U=i(41234),H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends N{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=U.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};G=V([z(0,P.T),z(1,T.ILanguageFeaturesService),z(2,w.gW)],G);class j extends H.ks{static{this.ID="editor.action.quickOutline"}constructor(){super({id:j.ID,label:F.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:B.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:B.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(W.GK).quickAccess.show(N.PREFIX,{itemActivation:W.C1.NONE})}}(0,H.Fl)(j),D.O.as(M.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:N.PREFIX,helpEntries:[{description:F.n9.quickOutlineActionLabel,prefix:N.PREFIX,commandId:j.ID},{description:F.n9.quickOutlineByCategoryActionLabel,prefix:N.PREFIX_BY_CATEGORY}]})},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>l,W0:()=>a,aV:()=>c,nd:()=>o});var s=i(98067),n=i(78209),r=i(32848);new r.N1("isMac",s.zx,(0,n.kg)("isMac","Whether the operating system is macOS")),new r.N1("isLinux",s.j9,(0,n.kg)("isLinux","Whether the operating system is Linux"));const o=new r.N1("isWindows",s.uF,(0,n.kg)("isWindows","Whether the operating system is Windows")),a=new r.N1("isWeb",s.HZ,(0,n.kg)("isWeb","Whether the platform is a web browser")),c=(new r.N1("isMacNative",s.zx&&!s.HZ,(0,n.kg)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.N1("isIOS",s.un,(0,n.kg)("isIOS","Whether the operating system is iOS")),new r.N1("isMobile",s.Fr,(0,n.kg)("isMobile","Whether the platform is a mobile web browser")),new r.N1("isDevelopment",!1,!0),new r.N1("productQualityType","",(0,n.kg)("productQualityType","Quality type of VS Code")),"inputFocus"),l=new r.N1(c,!1,(0,n.kg)("inputFocus","Whether keyboard focus is inside an input box"))},28291:(e,t,i)=>{"use strict";i.d(t,{S:()=>s,c:()=>h});var s,n=i(631),r=i(32799),o=i(94564),a=i(97681),c=i(83069),l=i(36677);class h{static addCursorDown(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateDown(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateDown(e.cursorConfig,e,c.viewState))}return s}static addCursorUp(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateUp(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateUp(e.cursorConfig,e,c.viewState))}return s}static moveToBeginningOfLine(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];s[n]=this._moveToLineStart(e,r,i)}return s}static _moveToLineStart(e,t,i){const s=t.viewState.position.column,n=s===t.modelState.position.column,r=t.viewState.position.lineNumber,o=e.getLineFirstNonWhitespaceColumn(r);return n||s===o?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return r.MF.fromViewState(o.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return r.MF.fromModelState(o.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,s){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];n[r]=this._moveToLineEnd(e,o,i,s)}return n}static _moveToLineEnd(e,t,i,s){const n=t.viewState.position,r=e.getLineMaxColumn(n.lineNumber),o=n.column===r,a=t.modelState.position,c=e.model.getLineMaxColumn(a.lineNumber),l=r-n.column===c-a.column;return o||l?this._moveToLineEndByModel(e,t,i,s):this._moveToLineEndByView(e,t,i,s)}static _moveToLineEndByView(e,t,i,s){return r.MF.fromViewState(o.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,s))}static _moveToLineEndByModel(e,t,i,s){return r.MF.fromModelState(o.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,s))}static expandLineSelection(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],o=n.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,d=n.modelState.selection.endLineNumber;d===a?h=e.model.getLineMaxColumn(a):(d++,h=1),i[s]=r.MF.fromModelState(new r.mG(new l.Q(o,1,o,1),0,0,new c.y(d,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static moveToEndOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static selectAll(e,t){const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return r.MF.fromModelState(new r.mG(new l.Q(1,1,1,1),0,0,new c.y(i,s),0))}static line(e,t,i,s,n){const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!i){const t=e.model.getLineCount();let i=o.lineNumber+1,s=1;return i>t&&(i=t,s=e.model.getLineMaxColumn(i)),r.MF.fromModelState(new r.mG(new l.Q(o.lineNumber,1,i,s),2,0,new c.y(i,s),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<h)return r.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(o.lineNumber>h){const i=e.getLineCount();let s=a.lineNumber+1,n=1;return s>i&&(s=i,n=e.getLineMaxColumn(s)),r.MF.fromViewState(t.viewState.move(!0,s,n,0))}{const e=t.modelState.selectionStart.getEndPosition();return r.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,s){const n=e.model.validatePosition(s);return r.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,n))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new r.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,s=t.viewState.position.column;return r.MF.fromViewState(new r.mG(new l.Q(i,s,i,s),0,0,new c.y(i,s),0))}static moveTo(e,t,i,s,n){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,s);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,s,n)}const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return r.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,s,n,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,s):this._moveLeft(e,t,s,n);case 1:return 4===a?this._moveHalfLineRight(e,t,s):this._moveRight(e,t,s,n);case 2:return 2===a?this._moveUpByViewLines(e,t,s,n):this._moveUpByModelLines(e,t,s,n);case 3:return 2===a?this._moveDownByViewLines(e,t,s,n):this._moveDownByModelLines(e,t,s,n);case 4:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 5:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 6:return this._moveToViewMinColumn(e,t,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,s);case 8:return this._moveToViewCenterColumn(e,t,s);case 9:return this._moveToViewMaxColumn(e,t,s);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,s);default:return null}}static viewportMove(e,t,i,s,n){const r=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 13:{const i=this._lastLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 12:{const i=Math.round((o.startLineNumber+o.endLineNumber)/2),n=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,n)]}case 14:{const i=[];for(let n=0,o=t.length;n<o;n++){const o=t[n];i[n]=this.findPositionInViewportIfOutside(e,o,r,s)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,s){const n=t.viewState.position.lineNumber;if(i.startLineNumber<=n&&n<=i.endLineNumber-1)return new r.MF(t.modelState,t.viewState);{let a;a=n>i.endLineNumber-1?i.endLineNumber-1:n<i.startLineNumber?i.startLineNumber:n;const c=o.I.vertical(e.cursorConfig,e,n,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return r.MF.fromViewState(t.viewState.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.min(t.endLineNumber,s+i-1)}static _lastLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.max(s,t.endLineNumber-i+1)}static _moveLeft(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineLeft(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveRight(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineRight(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveDownByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveDown(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveDownByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveDown(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveUpByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveUp(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveUpByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveUp(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveToViewPosition(e,t,i,s,n){return r.MF.fromViewState(t.viewState.move(i,s,n,0))}static _moveToModelPosition(e,t,i,s,n){return r.MF.fromModelState(t.modelState.move(i,s,n,0))}static _moveToViewMinColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMinColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewCenterColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(o)+e.getLineMinColumn(o))/2);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewMaxColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMaxColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewLastNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!n.Gv(e))return!1;const t=e;return!!n.Kg(t.to)&&(!(!n.b0(t.select)&&!n.Lm(t.select))&&(!(!n.b0(t.by)&&!n.Kg(t.by))&&!(!n.b0(t.value)&&!n.Et(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let s=0;switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Character:s=3;break;case e.RawUnit.HalfLine:s=4}return{direction:i,unit:s,select:!!t.select,value:t.value||1}}}(s||(s={}))},28304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(3977).then(i.bind(i,56358))})},28433:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var s=i(8597),n=i(94106),r=i(41234),o=i(5662),a=i(73157);class c{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");(0,a.M)(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const n=[];for(const r of this._requests){let e;0===r.type&&(e=t),2===r.type&&(e=i),1===r.type&&(e=s),e.appendChild(document.createElement("br"));const o=document.createElement("span");l._render(o,r),e.appendChild(o),n.push(o)}this._container=e,this._testElements=n}static _render(e,t){if(" "===t.chr){let t="\xa0";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++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(87908),d=i(74196);class u extends o.jG{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new r.vl),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){const t=(0,s.Q2)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let s=!1;for(const n of i)n.isTrusted||(s=!0,t.remove(n));s&&this._onDidChange.fire()}readFontInfo(e,t){const 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 d.YJ({pixelRatio:n.c.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)}return i.get(t)}_createRequest(e,t,i,s){const n=new c(e,t);return i.push(n),s?.push(n),n}_actualReadFontInfo(e,t){const i=[],s=[],r=this._createRequest("n",0,i,s),o=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,s),c=this._createRequest("0",0,i,s),u=this._createRequest("1",0,i,s),g=this._createRequest("2",0,i,s),p=this._createRequest("3",0,i,s),m=this._createRequest("4",0,i,s),f=this._createRequest("5",0,i,s),_=this._createRequest("6",0,i,s),v=this._createRequest("7",0,i,s),C=this._createRequest("8",0,i,s),E=this._createRequest("9",0,i,s),b=this._createRequest("\u2192",0,i,s),S=this._createRequest("\uffeb",0,i,null),y=this._createRequest("\xb7",0,i,s),w=this._createRequest(String.fromCharCode(11825),0,i,null),R="|/-_ilm%";for(let n=0,l=8;n<l;n++)this._createRequest(R.charAt(n),0,i,s),this._createRequest(R.charAt(n),1,i,s),this._createRequest(R.charAt(n),2,i,s);!function(e,t,i){new l(t,i).read(e)}(e,t,i);const L=Math.max(c.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,C.width,E.width);let T=t.fontFeatureSettings===h.Bc.OFF;const x=s[0].width;for(let n=1,l=s.length;T&&n<l;n++){const e=x-s[n].width;if(e<-.001||e>.001){T=!1;break}}let k=!0;return T&&S.width!==x&&(k=!1),S.width>b.width&&(k=!1),new d.YJ({pixelRatio:n.c.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:T,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:a.width,middotWidth:y.width,wsmiddotWidth:w.width,maxDigitWidth:L},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},28449:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(50868),o=i(31450),a=i(36677),c=i(75326),l=i(60002),h=i(87289),d=i(10920),u=i(78209);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new c.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new c.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class{static{p=this}static{this.ID="editor.contrib.inPlaceReplaceController"}static get(e){return e.getContribution(p.ID)}static{this.DECORATION=h.kI.register({description:"in-place-replace",className:"valueSetReplacement"})}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){this.currentRequest?.cancel();const i=this.editor.getSelection(),o=this.editor.getModel();if(!o||!i)return;let l=i;if(l.startLineNumber!==l.endLineNumber)return;const h=new r.$t(this.editor,5),d=o.uri;return this.editorWorkerService.canNavigateValueSet(d)?(this.currentRequest=(0,s.SS)((e=>this.editorWorkerService.navigateValueSet(d,l,t))),this.currentRequest.then((t=>{if(!t||!t.range||!t.value)return;if(!h.validate(this.editor))return;const i=a.Q.lift(t.range);let r=t.range;const o=t.value.length-(l.endColumn-l.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},o>1&&(l=new c.L(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+o-1));const d=new g(i,l,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,d),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=(0,s.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(n.dz)})).catch(n.dz)):Promise.resolve(void 0)}};_=p=m([f(1,d.IEditorWorkerService)],_);class v extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class C extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,o.HW)(_.ID,_,4),(0,o.Fl)(v),(0,o.Fl)(C)},28712:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>P,WE:()=>U});var s=i(90766),n=i(18447),r=i(47661),o=i(5662),a=i(36677),c=i(68310),l=i(9772),h=i(41234);class d{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let s=0;s<this.colorPresentations.length;s++)if(t.toLowerCase()===this.colorPresentations[s].label){i=s;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(94106),g=i(8597),p=i(34072),m=i(17390),f=i(10350),_=i(25689),v=(i(53396),i(78209)),C=i(66261),E=i(61394);const b=g.$;class S extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.showingStandaloneColorPicker=s,this._closeButton=null,this._domNode=b(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,b(".picked-color")),g.BC(this._pickedColorNode,b("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const n=(0,v.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",n),this._originalColorNode=g.BC(this._domNode,b(".original-color")),this._originalColorNode.style.backgroundColor=r.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(C.WfR)||r.Q1.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(C.WfR)||r.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new y(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class y extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t);g.BC(t,b(".button"+_.L.asCSSSelector((0,E.pU)("color-picker-close",f.W.close,(0,v.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class w extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=b(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new R(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new T(this._domNode,this.model,s),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new x(this._domNode,this.model,s),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),s&&(this._insertButton=this._register(new k(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new r.Q1(new r.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class R extends o.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=b(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=b(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),s=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,s),this._onDidChange.fire({s:i,v:s})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new r.Q1(new r.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),s=i.createLinearGradient(0,0,this._canvas.width,0);s.addColorStop(0,"rgba(255, 255, 255, 1)"),s.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),s.addColorStop(1,"rgba(255, 255, 255, 0)");const n=i.createLinearGradient(0,0,0,this._canvas.height);n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=r.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=s,i.fill(),i.fillStyle=n,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class L extends o.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,b(".standalone-strip")),this.overlay=g.BC(this.domNode,b(".standalone-overlay"))):(this.domNode=g.BC(e,b(".strip")),this.overlay=g.BC(this.domNode,b(".overlay"))),this.slider=g.BC(this.domNode,b(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const s=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),s.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class T extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:s}=e.rgba,n=new r.Q1(new r.bU(t,i,s,1)),o=new r.Q1(new r.bU(t,i,s,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class x extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class k extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class A extends m.x{constructor(e,t,i,s,n=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout()))),this._domNode=b(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new S(this._domNode,this.model,s,n)),this.body=this._register(new w(this._domNode,this.model,this.pixelRatio,n))}layout(){this.body.layout()}get domNode(){return this._domNode}}var N=i(57039),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let P=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const s=l.mn.get(this._editor);if(!s)return[];for(const n of t){if(!s.isColorDecoration(n))continue;const e=s.getColorData(n.range.getStartPosition());if(e){return[await H(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){const i=B(this,this._editor,this._themeService,t,e);if(!i)return new N.Ke([]);this._colorPicker=i.colorPicker;const s={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new N.Ke([s])}handleResize(){this._colorPicker?.layout()}isColorPickerVisible(){return!!this._colorPicker}};P=O([D(1,I.Gy)],P);class F{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s}}let U=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!l.mn.get(this._editor))return null;const s=await(0,c.j)(i,this._editor.getModel(),n.XO.None);let r=null,o=null;for(const n of s){const t=n.colorInfo;a.Q.containsRange(t.range,e.range)&&(r=t,o=n.provider)}const h=r??e,d=o??t,u=!!r;return{colorHover:await H(this,this._editor.getModel(),h,d),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await V(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return B(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function H(e,t,i,s){const o=t.getValueInRange(i.range),{red:l,green:h,blue:u,alpha:g}=i.color,p=new r.bU(Math.round(255*l),Math.round(255*h),Math.round(255*u),g),m=new r.Q1(p),f=await(0,c.R)(t,i,s,n.XO.None),_=new d(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,o),e instanceof P?new M(e,a.Q.lift(i.range),_,s):new F(e,a.Q.lift(i.range),_,s)}function B(e,t,i,s,n){if(0===s.length||!t.hasModel())return;if(n.setMinimumDimensions){const e=t.getOption(67)+8;n.setMinimumDimensions(new g.fg(302,e))}const r=new o.Cm,c=s[0],l=t.getModel(),h=c.model,d=r.add(new A(n.fragment,h,t.getOption(144),i,e instanceof U));let u=!1,p=new a.Q(c.range.startLineNumber,c.range.startColumn,c.range.endLineNumber,c.range.endColumn);if(e instanceof U){const t=c.model.color;e.color=t,V(l,h,t,p,c),r.add(h.onColorFlushed((t=>{e.color=t})))}else r.add(h.onColorFlushed((async e=>{await V(l,h,e,p,c),u=!0,p=W(t,p,h)})));return r.add(h.onDidChangeColor((e=>{V(l,h,e,p,c)}))),r.add(t.onDidChangeModelContent((e=>{u?u=!1:(n.hide(),t.focus())}))),{hoverPart:c,colorPicker:d,disposables:r}}function W(e,t,i){const s=[],n=i.presentation.textEdit??{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(n),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const r=a.Q.lift(n.range),o=e.getModel()._setTrackedRange(null,r,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),e.getModel()._getTrackedRange(o)??r}async function V(e,t,i,s,r){const o=await(0,c.R)(e,{range:s,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},r.provider,n.XO.None);t.colorPresentations=o||[]}U=O([D(1,I.Gy)],U)},29100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeViewsDnDService:()=>o});var s=i(14718),n=i(63591),r=i(36723);const o=(0,n.u1)("treeViewsDndService");(0,s.v)(o,r.TreeViewsDnDService,1)},29163:(e,t,i)=>{"use strict";i.d(t,{t:()=>f});var s=i(10146),n=i(80301),r=i(52555),o=i(17469),a=i(56942),c=i(253),l=i(50091),h=i(32848),d=i(63591),u=i(58591),g=i(47612),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends r.x{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){super(e,{...s.getRawOptions(),overflowWidgetsDomNode:s.getOverflowWidgetsDomNode()},i,n,r,o,a,c,l,h,d,u),this._parentEditor=s,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(s.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){s.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,d._Y),m(5,n.T),m(6,l.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,c.j),m(11,o.JZ),m(12,a.ILanguageFeaturesService)],f)},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>r,GR:()=>c,Or:()=>a,fr:()=>p,mQ:()=>g});class s{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,n=this.value.charCodeAt(e);if(t=s._table[n],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(s.isDigitCharacter(n)){t=8;do{i+=1,n=this.value.charCodeAt(e+i)}while(s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}if(s.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++i)}while(s.isVariableCharacter(n)||s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,n=this.value.charCodeAt(e+i)}while(!isNaN(n)&&"undefined"===typeof s._table[n]&&!s.isDigitCharacter(n)&&!s.isVariableCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}}class n{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),n=i.children.slice(0);n.splice(s,1,...t),i._children=n,function e(t,i){for(const s of t)s.parent=i,e(s.children,s)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class r extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class o extends n{}class a extends o{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof c?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class c extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new c;return this.options.forEach(e.appendChild,e),e}}class l extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new l;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends n{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class d extends o{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends n{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((s=>s===e?(i=!0,!1):(t+=s.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new s,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const s=new g;return this.parseFragment(e,s),this.ensureFinalTabstop(s,i??!1,t??!1),s}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,n=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?s.set(0,void 0):!s.has(e.index)&&e.children.length>0?s.set(e.index,e.children):n.push(e)),!0)));const r=(e,i)=>{const n=s.get(e.index);if(!n)return;const o=new a(e.index);o.transform=e.transform;for(const t of n){const e=t.clone();o.appendChild(e),e instanceof a&&s.has(e.index)&&!i.has(e.index)&&(i.add(e.index),r(e,i),i.delete(e.index))}t.replace(e,[o])},o=new Set;for(const a of n)r(a,o);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else{if(!(s.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);{const t=new c;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(t),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new l;let i="",s="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,s)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const s=this._accept(8,!0);if(!s)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(s))),!0;if(this._accept(4))return e.appendChild(new h(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(s),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(s),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},29611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});class s{constructor(e,t,i,s,n,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=s,this._precondition=n,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},29818:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>C,e0:()=>E,gW:()=>S,i9:()=>b});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(74320),c=i(83069),l=i(36677),h=i(32500),d=i(63591),u=i(14718),g=i(23750),p=i(5662),m=i(56942),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};class v{remove(){this.parent?.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let s=i;for(let n=0;void 0!==t.children.get(s);n++)s=`${i}_${n}`;return s}static empty(e){return 0===e.children.size}}class C extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class E extends v{constructor(e,t,i,s){super(),this.id=e,this.parent=t,this.label=i,this.order=s,this.children=new Map}}class b extends v{static create(e,t,i){const o=new n.Qi(i),a=new b(t.uri),c=e.ordered(t),l=c.map(((e,i)=>{const s=v.findId(`provider_${i}`,a),n=new E(s,a,e.displayName??"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,o.token)).then((e=>{for(const t of e||[])b._makeOutlineElement(t,n);return n}),(e=>((0,r.M_)(e),n))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,s.aI)(i,c)||o.cancel()}));return Promise.all(l).then((()=>o.token.isCancellationRequested&&!i.isCancellationRequested?b.create(e,t,i):a._compact())).finally((()=>{o.dispose(),h.dispose(),o.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),s=new C(i,t,e);if(e.children)for(const n of e.children)b._makeOutlineElement(n,s);t.children.set(s.id,s)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=o.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof C?e.push(t.symbol):e.push(...o.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return b._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>c.y.compare(l.Q.getStartPosition(e.range),l.Q.getStartPosition(t.range))||c.y.compare(l.Q.getEndPosition(t.range),l.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const s of t)e.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&b._flattenDocumentSymbols(e,s.children,s.name)}}const S=(0,d.u1)("IOutlineModelService");let y=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,r=i.ordered(e);let o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!(0,s.aI)(o.provider,r)){const t=new n.Qi;o={versionId:e.getVersionId(),provider:r,promiseCnt:0,source:t,promise:b.create(i,e,t.token),model:void 0},this._cache.set(e.id,o);const s=Date.now();o.promise.then((t=>{o.model=t,this._debounceInformation.update(e,Date.now()-s)})).catch((t=>{this._cache.delete(e.id)}))}if(o.model)return o.model;o.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--o.promiseCnt&&(o.source.cancel(),this._cache.delete(e.id))}));try{return await o.promise}finally{a.dispose()}}};y=f([_(0,m.ILanguageFeaturesService),_(1,h.ILanguageFeatureDebounceService),_(2,g.IModelService)],y),(0,u.v)(S,y,1)},30076:(e,t,i)=>{"use strict";i.d(t,{O:()=>r,e:()=>n});var s=i(59911);function n(){return s._K&&!!s._K.VSCODE_DEV}function r(e){if(n()){const t=function(){o||(o=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e},i=[];for(const s of o){const e=s(t);e&&i.push(e)}if(i.length>0)return e=>{let t=!1;for(const s of i)s(e)&&(t=!0);return t}});return o}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let o;n()&&r((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{for(const i in t){const s=t[i];if(console.log(`[hot-reload] Patching prototype methods of '${i}'`,{exportedItem:s}),"function"===typeof s&&s.prototype){const n=e[i];if(n){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),r=Object.getOwnPropertyDescriptor(n.prototype,e);t?.value?.toString()!==r?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${i}.${e}'`),Object.defineProperty(n.prototype,e,t)}t[i]=n}}}return!0}}))},30707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerDecorationsService:()=>_});var s=i(75147),n=i(5662),r=i(16223),o=i(47612),a=i(87119),c=i(23750),l=i(36677),h=i(36456),d=i(41234),u=i(66261),g=i(74320),p=i(48495),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new d.vl),this._markerDecorations=new g.fT,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){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new v(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==h.ny.inMemory&&e.uri.scheme!==h.ny.internal&&e.uri.scheme!==h.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};_=m([f(0,c.IModelService),f(1,s.DR)],_);class v extends n.jG{constructor(e){super(),this.model=e,this._map=new g.cO,this._register((0,n.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,p.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const s=i.map((e=>this._map.get(e))),n=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),r=this.model.deltaDecorations(s,n);for(const o of i)this._map.delete(o);for(let o=0;o<r.length;o++)this._map.set(t[o],r[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=l.Q.lift(t);if(t.severity!==s.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new l.Q(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s<i.endColumn&&(i=new l.Q(i.startLineNumber,s,i.endLineNumber,i.endColumn),t.startColumn=s)}return i}_createDecorationOption(e){let t,i,n,c,l;switch(e.severity){case s.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case s.cj.Info:t="squiggly-info",i=(0,o.Yf)(a.AQ),n=10,l={color:(0,o.Yf)(u.KoI),position:1};break;case s.cj.Warning:t="squiggly-warning",i=(0,o.Yf)(a.aZ),n=20,l={color:(0,o.Yf)(u.uMG),position:1};break;case s.cj.Error:default:t="squiggly-error",i=(0,o.Yf)(a.yI),n=30,l={color:(0,o.Yf)(u.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(c="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(c="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:r.A5.Right},minimap:l,zIndex:n,inlineClassName:c}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},30936:(e,t,i)=>{"use strict";i.d(t,{O:()=>C});var s,n=i(5662),r=i(631),o=i(31450),a=i(83069),c=i(60002),l=i(17469),h=i(56942),d=i(48116),u=i(78209),g=i(32848),p=i(18801),m=i(38280),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let C=class{static{s=this}static{this.ID="snippetController2"}static get(e){return e.getContribution(s.ID)}static{this.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.kg)("inSnippetMode","Whether the editor in current in snippet mode"))}static{this.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode"))}static{this.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"))}constructor(e,t,i,r,o){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=o,this._snippetListener=new n.Cm,this._modelVersionId=-1,this._inSnippet=s.InSnippetMode.bindTo(r),this._hasNextTabstop=s.HasNextTabstop.bindTo(r),this._hasPrevTabstop=s.HasPrevTabstop.bindTo(r)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._session?.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,r.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._session?.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const s=e.getValueInRange(i.range),n=Boolean(i.choice.options.find((e=>e.value===s))),r=[];for(let o=0;o<i.choice.options.length;o++){const e=i.choice.options[o];r.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(o+1),range:i.range,filterText:n?`${s}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.kg)("next","Go to next placeholder...")}})}return{suggestions:r}}},t=this._editor.getModel();let i,s=!1;const n=()=>{i?.dispose(),s=!1},r=()=>{s||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),s=!0)};this._choiceCompletions={provider:e,enable:r,disable:n}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;if(!e||!this._choiceCompletions)return this._choiceCompletions?.disable(),void(this._currentChoice=void 0);this._currentChoice!==e.choice&&(this._currentChoice=e.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,d.p3)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,this._session?.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session?.prev(),this._updateState()}next(){this._session?.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};C=s=f([_(1,p.rr),_(2,h.ILanguageFeaturesService),_(3,g.fN),_(4,l.JZ)],C),(0,o.HW)(C.ID,C,4);const E=o.DX.bindToContribution(C.get);(0,o.E_)(new E({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:2}})),(0,o.E_)(new E({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:1026}})),(0,o.E_)(new E({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:9,secondary:[1033]}})),(0,o.E_)(new E({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>x,QC:()=>w,Se:()=>L,oO:()=>T});var s=i(60413),n=i(8597),r=i(55275),o=i(47358),a=i(34072),c=i(17390),l=i(90766),h=i(25689);const d=11;class u extends c.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(n.b2(this.bgDomNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(n.b2(this.domNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new n.Be),this._pointerdownScheduleRepeatTimer=this._register(new l.pc)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,n.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(5662);class p extends g.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode?.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(98067);class f extends c.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,r.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(n.ko(this.domNode.domNode,n.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,s){this.slider=(0,r.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof s&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(n.ko(this.slider.domNode,n.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),n=this._sliderPointerPosition(e);i<=n&&n<=s?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const s=n.BK(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const s=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const n=this._sliderOrthogonalPointerPosition(e),r=Math.abs(n-i);if(m.uF&&r>140)return void this._setDesiredScrollPositionNow(s.getScrollPosition());const o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(o))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(74850),v=i(10350);class C extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,s.width,s.scrollWidth,n.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-d)/2,i=(t.horizontalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class E extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,s.height,s.scrollHeight,n.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var b=i(41234),S=i(49353);class y{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class w{static{this.INSTANCE=new w}constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,s=this._rear;for(;;){const n=s===this._front?e:Math.pow(2,-i);if(e-=n,t+=this._memory[s].score*n,s===this._front)break;s=(this._capacity+s-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(s.H8){const t=n.zk(e.browserEvent),i=(0,s.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let s=null;const n=new y(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(s=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,s)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const s=Math.abs(e.deltaX),n=Math.abs(e.deltaY),r=Math.abs(t.deltaX),o=Math.abs(t.deltaY),a=Math.max(Math.min(s,r),1),c=Math.max(Math.min(n,o),1),l=Math.max(s,r),h=Math.max(n,o);l%a===0&&h%c===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}class R extends c.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new b.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new b.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.zx&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const s={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new E(this._scrollable,this._options,s)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,s)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new l.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new o.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o.$(e))};this._mouseWheelToDispose.push(n.ko(this._listenOnDomNode,n.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;const t=w.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+s===0?n=s=0:Math.abs(s)>=Math.abs(n)?n=0:s=0),this._options.flipAxes&&([s,n]=[n,s]);const r=!m.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||n||(n=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(n*=this._options.fastScrollSensitivity,s*=this._options.fastScrollSensitivity);const o=this._scrollable.getFutureScrollPosition();let a={};if(s){const e=50*s,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(n){const e=50*n,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),o.scrollLeft!==a.scrollLeft||o.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let s=i;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,s=i?" left":"",n=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${s}`),this._topShadowDomNode.setClassName(`shadow${n}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${n}${s}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class L extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class T extends R{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class x extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},31308:(e,t,i)=>{"use strict";i.d(t,{BK:()=>_,fm:()=>l,Y:()=>d,zL:()=>h,yC:()=>g,ht:()=>u,lk:()=>m.lk,un:()=>n.un,nb:()=>n.nb,ZX:()=>m.ZX,C:()=>n.C,rm:()=>n.rm,X2:()=>s.X2,y0:()=>m.y0,Yd:()=>m.Yd,yQ:()=>m.yQ,FY:()=>s.FY,Zh:()=>S,OI:()=>m.OI,PO:()=>s.PO,Rn:()=>s.Rn,oJ:()=>C});var s=i(49154),n=i(87958),r=i(66782),o=i(5662),a=i(22311),c=i(94958);function l(e){return new p(new a.nA(void 0,void 0,e),e,void 0,void 0)}function h(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,void 0)}function d(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e,t){const i=new o.Cm,s=d({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},((e,s)=>{i.clear(),t(e,s,i)}));return(0,o.s)((()=>{s.dispose(),i.dispose()}))}function g(e){const t=new o.Cm,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,o.s)((()=>{i.dispose(),t.dispose()}))}class p{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s){this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=s,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){(0,c.tZ)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,c.tZ)()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,r.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=p}(l||(l={}));var m=i(13850),f=i(64383);class _{static fromFn(e){return new _(e())}constructor(e){this._value=(0,s.FY)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,s.Rn)((t=>{this._value.set(new v(e,void 0),t)})),e)),(e=>{throw(0,s.Rn)((t=>{this._value.set(new v(void 0,e),t)})),e}))}}class v{constructor(e,t){this.data=e,this.error=t}}function C(e,t,i,s){return t||(t=e=>null!==e&&void 0!==e),new Promise(((n,r)=>{let o=!0,a=!1;const c=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),h=l((e=>{const{isFinished:t,error:i,state:s}=c.read(e);(t||i)&&(o?a=!0:h.dispose(),i?r(!0===i?s:i):n(s))}));if(s){const e=s.onCancellationRequested((()=>{h.dispose(),e.dispose(),r(new f.AL)}));if(s.isCancellationRequested)return h.dispose(),e.dispose(),void r(new f.AL)}o=!1,a&&h.dispose()}))}var E=i(51241);class b extends s.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new s.XL((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){return e.lazy?new b(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx):new s.Lj(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx)}},31396:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6210).then(i.bind(i,16210))})},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>y,E_:()=>x,Fl:()=>k,HW:()=>I,PF:()=>R,aU:()=>M,dS:()=>s,fE:()=>b,gW:()=>A,ih:()=>P,ke:()=>T,ks:()=>w,qO:()=>L,tc:()=>F,uB:()=>E,xX:()=>N});var s,n=i(78209),r=i(79400),o=i(80301),a=i(83069),c=i(23750),l=i(18938),h=i(27195),d=i(50091),u=i(32848),g=i(63591),p=i(59261),m=i(46359),f=i(90651),_=i(631),v=i(18801),C=i(8597);class E{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}d.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.ZG.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 b extends E{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,s){return this._implementations.push({priority:e,name:t,implementation:i,when:s}),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){const i=e.get(v.rr),s=e.get(u.fN);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const n of this._implementations){if(n.when){const e=s.getContext((0,C.bq)());if(!n.when.evaluate(e))continue}const r=n.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${n.name}'.`),"boolean"===typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class S extends E{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends E{static bindToContribution(e){return class extends y{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,s){const n=e(i);n&&this._callback(n,s)}}}static runEditorCommand(e,t,i,s){const n=e.get(o.T),r=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(r)return r.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules(i??void 0))return s(e,r,t)}))}runCommand(e,t){return y.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class w extends y{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.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){super(w.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class R extends w{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(const s of this._implementations){const n=s[1](e,t,i);if(n){if("boolean"===typeof n)return;return n}}}}class L extends h.L{run(e,...t){const i=e.get(o.T),s=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(s)return s.invokeWithinContext((e=>{const i=e.get(u.fN),n=e.get(v.rr);if(i.contextMatchesRules(this.desc.precondition??void 0))return this.runEditorCommand(e,s,...t);n.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())}))}}function T(e,t){d.w.registerCommand(e,(function(e,...i){const s=e.get(g._Y),[n,o]=i;(0,_.j)(r.r.isUri(n)),(0,_.j)(a.y.isIPosition(o));const h=e.get(c.IModelService).getModel(n);if(h){const e=a.y.lift(o);return s.invokeFunction(t,h,e,...i.slice(2))}return e.get(l.ITextModelService).createModelReference(n).then((e=>new Promise(((n,r)=>{try{n(s.invokeFunction(t,e.object.textEditorModel,a.y.lift(o),i.slice(2)))}catch(c){r(c)}})).finally((()=>{e.dispose()}))))}))}function x(e){return O.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return O.INSTANCE.registerEditorAction(t),t}function A(e){return O.INSTANCE.registerEditorAction(e),e}function N(e){O.INSTANCE.registerEditorAction(e)}function I(e,t,i){O.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return O.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return O.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return O.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return O.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return O.INSTANCE.getDiffEditorContributions()}}(s||(s={}));class O{static{this.INSTANCE=new O}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}}function D(e){return e.register(),e}m.O.add("editor.contributions",O.INSTANCE);const M=D(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("undo","Undo"),order:1}]}));D(new S(M,{id:"default:undo",precondition:void 0}));const P=D(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.D8.CommandPalette,group:"",title:n.kg("redo","Redo"),order:1}]}));D(new S(P,{id:"default:redo",precondition:void 0}));const F=D(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.D8.MenubarSelectionMenu,group:"1_basic",title:n.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("selectAll","Select All"),order:1}]}))},31474:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(6012).then(i.bind(i,46012))})},31659:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(36677),o=i(9772),a=i(28712),c=i(77011),l=i(57039);class h extends s.jG{static{this.ID="editor.contrib.colorContribution"}constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(149);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==o.nM)return;if(!i.range)return;const s=this._editor.getContribution(c.A.ID);if(s&&!s.isColorPickerVisible){const e=new r.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);s.showContentHover(e,1,0,!1,!0)}}}(0,n.HW)(h.ID,h,2),l.B2.register(a.BJ)},31819:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5zM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25M2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9m11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},32371:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,WG:()=>v,aw:()=>f,br:()=>m,nZ:()=>E,yS:()=>g});var s=i(18447),n=i(64383),r=i(79400),o=i(23750),a=i(50091),c=i(631),l=i(98232),h=i(36677),d=i(56942);function u(e){return e&&!!e.data}function g(e){return e&&Array.isArray(e.edits)}class p{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function m(e,t){return e.has(t)}async function f(e,t,i,s,n){const r=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),o=await Promise.all(r.map((async e=>{let r,o=null;try{r=await e.provideDocumentSemanticTokens(t,e===i?s:null,n)}catch(a){o=a,r=null}return r&&(u(r)||g(r))||(r=null),new p(e,r,o)})));for(const a of o){if(a.error)throw a.error;if(a.tokens)return a}return o.length>0?o[0]:null}class _{constructor(e,t){this.provider=e,this.tokens=t}}function v(e,t){return e.has(t)}function C(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function E(e,t,i,s){const r=C(e,t),o=await Promise.all(r.map((async e=>{let r;try{r=await e.provideDocumentRangeSemanticTokens(t,i,s)}catch(o){(0,n.M_)(o),r=null}return r&&u(r)||(r=null),new _(e,r)})));for(const n of o)if(n.tokens)return n;return o.length>0?o[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const s=e.get(o.IModelService).getModel(i);if(!s)return;const{documentSemanticTokensProvider:n}=e.get(d.ILanguageFeaturesService),l=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(n,s);return l?l[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const n=e.get(o.IModelService).getModel(i);if(!n)return;const{documentSemanticTokensProvider:h}=e.get(d.ILanguageFeaturesService);if(!m(h,n))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,n.getFullModelRange());const g=await f(h,n,null,null,s.XO.None);if(!g)return;const{provider:p,tokens:_}=g;if(!_||!u(_))return;const v=(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:_.data});return _.resultId&&p.releaseDocumentSemanticTokens(_.resultId),v})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r);const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:l}=e.get(d.ILanguageFeaturesService),u=C(l,a);if(0===u.length)return;if(1===u.length)return u[0].getLegend();if(!n||!h.Q.isIRange(n))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),u[0].getLegend();const g=await E(l,a,h.Q.lift(n),s.XO.None);return g?g.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r),(0,c.j)(h.Q.isIRange(n));const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:u}=e.get(d.ILanguageFeaturesService),g=await E(u,a,h.Q.lift(n),s.XO.None);return g&&g.tokens?(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:g.tokens.data}):void 0}))},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>c,UB:()=>a,a6:()=>l,wc:()=>h});var s=i(83069),n=i(36677),r=i(92896),o=i(87908);class a{constructor(e,t,i,s,n){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=s,this._coordinatesConverter=n,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const o=e.range,a=e.options;let c;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);c=new n.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new r.vo(c,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const s=new n.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(s,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const s=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,o.$C)(this.configuration.options),t,i),a=e.startLineNumber,l=e.endLineNumber,h=[];let d=0;const u=[];for(let n=a;n<=l;n++)u[n-a]=[];for(let o=0,g=s.length;o<g;o++){const e=s[o],t=e.options;if(!c(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[d++]=i,t.inlineClassName){const e=new r.kI(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),s=Math.min(l,g.endLineNumber);for(let t=i;t<=s;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=l){const e=new r.kI(new n.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=l){const e=new r.kI(new n.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function c(e,t){return(!t.options.hideInCommentTokens||!l(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function l(e,t){return d(e,t.range,(e=>1===e))}function h(e,t){return d(e,t.range,(e=>2===e))}function d(e,t,i){for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const n=e.tokenization.getLineTokens(s),r=s===t.startLineNumber,o=s===t.endLineNumber;let a=r?n.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<n.getCount();){if(o){if(n.getStartOffset(a)>t.endColumn-1)break}if(!i(n.getStandardTokenType(a)))return!1;a++}}return!0}},32500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeatureDebounceService:()=>g,LanguageFeatureDebounceService:()=>_});var s=i(85600),n=i(74320),r=i(1592),o=i(97035),a=i(14718),c=i(63591),l=i(18801),h=i(36456),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};const g=(0,c.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let s=t.get(e);return void 0===s&&(s=++i,t.set(e,s)),s}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,s,r,o){this._logService=e,this._name=t,this._registry=i,this._default=s,this._min=r,this._max=o,this._cache=new n.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,s.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,r.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let s=this._cache.get(i);s||(s=new r.mu(6),this._cache.set(i,s));const n=(0,r.qE)(s.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${n}ms`),n}_overall(){const e=new r.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,r.qE)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){const s=i?.min??50,n=i?.max??s**2,r=i?.key??void 0,o=`${p.of(e)},${s}${r?","+r:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new m(1.5*s)):a=new f(this._logService,t,e,0|this._overallAverage()||1.5*s,s,n),this._data.set(o,a)),a}_overallAverage(){const e=new r.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};_=d([u(0,l.rr),u(1,o.k)],_),(0,a.v)(g,_,1)},32516:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(60002),o=i(78209);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class c{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class l extends s.jG{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(l.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new c(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}class h extends n.ks{constructor(){super({id:"cursorUndo",label:o.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){l.get(t)?.cursorUndo()}}class d extends n.ks{constructor(){super({id:"cursorRedo",label:o.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){l.get(t)?.cursorRedo()}}(0,n.HW)(l.ID,l,0),(0,n.Fl)(h),(0,n.Fl)(d)},32624:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(4582).then(i.bind(i,84582))})},32799:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>v,vY:()=>_});var s=i(83069),n=i(36677),r=i(75326),o=i(12296),a=i(1245),c=i(93895);const l=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,i,s){this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,r=n.get(146),o=n.get(50);this.readOnly=n.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(117),this.lineHeight=o.lineHeight,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=n.get(129),this.wordSeparators=n.get(132),this.emptySelectionClipboard=n.get(37),this.copyWithSyntaxHighlighting=n.get(25),this.multiCursorMergeOverlapping=n.get(77),this.multiCursorPaste=n.get(79),this.multiCursorLimit=n.get(80),this.autoClosingBrackets=n.get(6),this.autoClosingComments=n.get(7),this.autoClosingQuotes=n.get(11),this.autoClosingDelete=n.get(9),this.autoClosingOvertype=n.get(10),this.autoSurround=n.get(14),this.autoIndent=n.get(12),this.wordSegmenterLocales=n.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close;const c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=c?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}onElectricCharacter(e,t,i){const s=(0,o.BQ)(t,i-1),n=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return n?n.onElectricCharacter(e,s,i-s.firstCharOffset):null}normalizeIndentation(e){return(0,c.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return d;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return l;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const s=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),n=e.getLineMinColumn(t);if(s<n)return n;const r=e.getLineMaxColumn(t);return s>r?r:s}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=r.L.liftSelection(e),i=new f(n.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,s,n){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=s,this.leftoverVisibleColumns=n,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,r){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new s.y(t,i),r):new f(new n.Q(t,i,t,i),0,r,new s.y(t,i),r)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?r.L.fromPositions(e.getStartPosition(),t):r.L.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>A,M$:()=>w,fN:()=>K,N1:()=>j,jQ:()=>R,M0:()=>$});var s=i(98067),n=i(91508),r=i(64383),o=i(78209);function a(...e){switch(e.length){case 1:return(0,o.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,o.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,o.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),l=(0,o.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/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: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,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const 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)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));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(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));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){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._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(c):(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)return this._current=e,void this._error(l);const s=this._input.charCodeAt(e);if(t)t=!1;else{if(47===s&&!i){e++;break}91===s?i=!0:92===s?t=!0:93===s&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=i(63591);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",s.zx),u.set("isLinux",s.j9),u.set("isWindows",s.uF),u.set("isWeb",s.HZ),u.set("isMacNative",s.zx&&!s.HZ),u.set("isEdge",s.UP),u.set("isFirefox",s.gm),u.set("isChrome",s.H8),u.set("isSafari",s.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,o.kg)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,o.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,o.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),C=(0,o.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,o.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),b=(0,o.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),S=(0,o.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class y{static{this._parseError=new Error}constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:C,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),y._parseError}return e}catch(t){if(t!==y._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:w.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:w.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),T.INSTANCE;case 12:return this._advance(),x.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),w.true();case 12:return this._advance(),w.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const s=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),r=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let o;try{o=new RegExp(i.substring(1,n),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(s,o)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==n.type&&16!==n.type;){switch(n.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<n.lexeme.length;t++)40===n.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;i.push(h.getLexeme(n)),this._advance(),n=this._peek()}const o=i.join(""),a=o.lastIndexOf("/"),c=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let l;try{l=new RegExp(o.substring(1,a),c)}catch(t){throw this._errExpectedButGot("REGEX",e)}return w.regex(s,l)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,n.AV)(t)){const s=t.indexOf("/"),n=t.lastIndexOf("/");if(s!==n&&s>=0){const o=t.slice(s+1,n),a="i"===t[n+1]?"i":"";try{r=new RegExp(o,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return B.create(s,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return w.notIn(s,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return w.equals(s,e);switch(e){case"true":return w.has(s);case"false":return w.not(s);default:return w.equals(s,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return w.notEquals(s,e);switch(e){case"true":return w.not(s);case"false":return w.has(s);default:return w.notEquals(s,e)}}case 5:return this._advance(),U.create(s,this._value());case 6:return this._advance(),H.create(s,this._value());case 7:return this._advance(),P.create(s,this._value());case 8:return this._advance(),F.create(s,this._value());case 13:return this._advance(),w.in(s,this._value());default:return w.has(s)}}case 20:throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:"",additionalInfo:S}),y._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const 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){const s=(0,o.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),n=t.offset,r=h.getLexeme(t);return this._parsingErrors.push({message:s,offset:n,lexeme:r,additionalInfo:i}),y._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class w{static false(){return T.INSTANCE}static true(){return x.INSTANCE}static has(e){return k.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return O.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return I.create(e,t)}static not(e){return D.create(e)}static and(...e){return z.create(e,null,!0)}static or(...e){return G.create(e,null,!0)}static{this._parser=new y({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function R(e,t){const i=e?e.substituteConstants():void 0,s=t?t.substituteConstants():void 0;return!i&&!s||!(!i||!s)&&i.equals(s)}function L(e,t){return e.cmp(t)}class T{static{this.INSTANCE=new T}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 x.INSTANCE}}class x{static{this.INSTANCE=new x}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 T.INSTANCE}}class k{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?x.INSTANCE:T.INSTANCE:new k(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:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:T.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?k.create(e,i):D.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?x.INSTANCE:T.INSTANCE}return new A(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:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:T.INSTANCE}return 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=O.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(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:q(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){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this.key,this.valueKey)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.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 O{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):k.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?T.INSTANCE:x.INSTANCE}return new O(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:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?T.INSTANCE:x.INSTANCE}return 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=A.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?T.INSTANCE:x.INSTANCE:new D(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:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?T.INSTANCE:x.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):T.INSTANCE}class P{static create(e,t,i=null){return M(t,(t=>new P(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:q(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=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return M(t,(t=>new F(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:q(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=U.create(this.key,this.value,this)),this.negated}}class U{static create(e,t,i=null){return M(t,(t=>new U(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:q(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=F.create(this.key,this.value,this)),this.negated}}class H{static create(e,t,i=null){return M(t,(t=>new H(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:q(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=P.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(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;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const 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){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(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 V(e){let t=null;for(let i=0,s=e.length;i<s;i++){const s=e[i].substituteConstants();if(e[i]!==s&&null===t){t=[];for(let s=0;s<i;s++)t[s]=e[s]}null!==t&&(t[i]=s)}return null===t?e:t}class z{static create(e,t,i){return z._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++){const i=L(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(){const e=V(this.expr);return e===this.expr?this:z.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){const s=[];let n=!1;for(const r of e)if(r)if(1!==r.type){if(0===r.type)return T.INSTANCE;6!==r.type?s.push(r):s.push(...r.expr)}else n=!0;if(0===s.length&&n)return x.INSTANCE;if(0!==s.length){if(1===s.length)return s[0];s.sort(L);for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];for(;s.length>1;){const e=s[s.length-1];if(9!==e.type)break;s.pop();const t=s.pop(),n=0===s.length,r=G.create(e.expr.map((e=>z.create([e,t],null,i))),null,n);r&&(s.push(r),s.sort(L))}if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return T.INSTANCE;if(1===s.length)return s[0]}return new z(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=G.create(e,this,!0)}return this.negated}}class G{static create(e,t,i){return G._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++){const i=L(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(){const e=V(this.expr);return e===this.expr?this:G.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 s=[],n=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return x.INSTANCE;9!==i.type?s.push(i):s=s.concat(i.expr)}else n=!0}if(0===s.length&&n)return T.INSTANCE;s.sort(L)}if(0!==s.length){if(1===s.length)return s[0];for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return x.INSTANCE;if(1===s.length)return s[0]}return new G(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const e of X(t))for(const t of X(i))s.push(z.create([e,t],null,!1));e.unshift(G.create(s,null,!1))}this.negated=G.create(e,this,!0)}return this.negated}}class j extends k{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?j._info.push({...i,key:e}):!0!==i&&j._info.push({key:e,description:i,type:null!==t&&void 0!==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 A.create(this.key,e)}}const K=(0,d.u1)("contextKeyService");function Y(e,t){return e<t?-1:e>t?1:0}function q(e,t,i,s){return e<i?-1:e>i?1:t<s?-1:t>s?1:0}function $(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if($(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if($(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,s=0;for(;i<e.length&&s<t.length;){const n=e[i].cmp(t[s]);if(n<0)return!1;0===n?(i++,s++):s++}return i===e.length}function X(e){return 9===e.type?e.expr:[e]}},32956:(e,t,i)=>{"use strict";i.d(t,{FD:()=>r,Mg:()=>o,gV:()=>n});const s=[];class n{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let i=n.cache[e];return i||(i=new n(e,t),n.cache[e]=i),i}return new n(e,t)}static{this.empty=n.create(0,s)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let s=i>>5;if(0===s){const e=1<<i|this.items;return e===this.items?this:n.create(e,this.additionalItems)}s--;const r=this.additionalItems.slice(0);for(;r.length<s;)r.push(0);return r[s]|=1<<(31&i),n.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===s&&e.additionalItems===s)return t===this.items?this:t===e.items?e:n.create(t,s);const i=[];for(let s=0;s<Math.max(this.additionalItems.length,e.additionalItems.length);s++){const t=this.additionalItems[s]||0,n=e.additionalItems[s]||0;i.push(t|n)}return n.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const r={getKey:e=>e};class o{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},33157:(e,t,i)=>{var s=i(33609),n=i(89807);e.exports=function(e,t,i,r){var o=e.length;for((i=s(i))<0&&(i=-i>o?0:o+i),(r=void 0===r||r>o?o:s(r))<0&&(r+=o),r=i>r?0:n(r);i<r;)e[i++]=t;return e}},33358:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(3648).then(i.bind(i,3648))})},34072:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var s=i(8597),n=i(5662);class r{constructor(){this._hooks=new n.Cm,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;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=o;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,n.s)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(c){a=s.zk(e)}this._hooks.add(s.ko(a,s.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(s.ko(a,s.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},34132:e=>{!function(){function t(e){return"yql."+e}function i(e,i){const s=t(i.toLowerCase());switch(i){case"String":case"Uuid":if(Array.isArray(e))return{$binary:!0,$type:s,$value:e[0]}}return{$type:s,$value:e}}function s(e,t){let s;return s="StructType"===t[0]?i(t[1][e][0],"String"):i(e,"Int32"),s.$key=!0,s}function n(e){const i={};return e.$value.forEach((function(e){const s=e[0],n=e[1];if(s.$type!==t("string"))throw new Error("unipika: try to convert struct with no-string keys to object");i[s.$value]=n.$value})),i}function r(e={}){return Object.prototype.hasOwnProperty.call(e,"src")&&"string"===typeof e.src?e.src:"string"===typeof e.$value?e.$value:void 0}function o(e,o,a){function c(e){return o.maxListSize>0&&Array.isArray(e)&&e.length>o.maxListSize?e.slice(0,o.maxListSize):e}function l(e,t){return t&&(e.$incomplete=!0),e}function h(e){if(o.maxStringSize>0&&e.$value){if(!e.$binary&&!e.$tag&&e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=e.$value.substr(0,o.maxStringSize),l(e,!0);if(e.$binary&&!e.$tag&&.75*e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=function(e,t){const i=Math.min(Math.floor(t/3),Math.ceil(e.length/4)),s=4*i,n=Math.min(t-3*i,e.length-s),r=e.substr(0,s);return 1==n?r+e.substr(s,2)+"==":2==n?r+e.substr(s,3)+"=":r}(e.$value,o.maxStringSize),l(e,!0)}return e}return function e(d,u){const g=u[0],p=u[1];let m,f,_;switch(o.treatValAsData&&d&&Object.hasOwnProperty.call(d,"val")&&(m=d.inc,f=d.b64,d=d.val),m?_=d:(_=c(d),m=_!==d),a.incomplete=a.incomplete||m,g){case"OptionalType":{const t=Array.isArray(d)&&d.length,i=t?e(d[0],p):e(null,["VoidType"]);return t&&(i.$optional=(i.$optional||0)+1),i}case"TaggedType":return function(e,i,s,o,a){let c,l=o(s,i);switch(e){case"url":if("StructType"===i[0]){if(c=n(l),!Object.prototype.hasOwnProperty.call(c,"href")||"string"!==typeof c.href)return l;l={$type:"tag_value",$value:c}}break;case"videourl":case"audiourl":case"imageurl":{if("StructType"===i[0]){c=n(l);const e=r(c);if(!e||!a(e))return l;l={$type:"tag_value",$value:c}}const e=r(l);if(e&&!a(e))return l;break}case"image/svg":case"image/svg+xml":case"image/jpeg":case"image/png":case"image/gif":case"image/webp":case"video/mp4":case"video/webm":if("StructType"===i[0]){if(c=n(l),!r(c))return l;l={$type:"tag_value",$value:c}}}return{$type:t("tagged"),$tag:e,$value:l}}(u[1],u[2],d,e,o.validateSrcUrl);case"ListType":return l({$type:t("list"),$value:_.map((function(t){return e(t,u[1])}))},m);case"StreamType":return l({$type:t("stream"),$value:_.map((function(t){return e(t,u[1])}))},m);case"TupleType":return l({$type:t("tuple"),$value:_.map((function(t,i){return e(t,p[i])}))},m);case"DictType":return"VoidType"===u[2][0]?l({$type:t("set"),$value:_.map((function(t){return e(t[0],u[1])}))},m):l({$type:t("dict"),$value:_.map((function(t){return[e(t[0],u[1]),e(t[1],u[2])]}))},m);case"StructType":{const s=d.map((function(t,s){const n=p[s],r=e(t,n[1]);if(o.omitStructNull&&null===r.$value)return null;const a=i(n[0],"String");return a.$key=!0,[a,r]})).filter(Boolean);return _=c(s),l({$type:t("struct"),$value:_},_!==s)}case"VariantType":{const i=function(e){const t=e[0];return e[1].map((function(e){return"StructType"===t?e[1]:e}))}(p);return function(e){return e.every((function(e){return"VoidType"===e[0]}))}(i)?{$type:t("enum"),$value:s(d[0],p).$value}:{$type:t("variant"),$value:[[s(d[0],p),e(d[1],i[d[0]])]]}}case"VoidType":case"NullType":return{$type:t("null"),$value:null};case"EmptyListType":return{$type:t("list"),$value:[]};case"EmptyDictType":return{$type:t("dict"),$value:[]};case"DataType":switch(p){case"String":case"Utf8":{const e=i(d,p);return f&&(e.$binary=!0),m?l(e,!0):h(e)}case"JsonDocument":return{$type:"yql.json",$value:d};case"Yson":{const e=i(d,p);return m?l(e,!0):e}default:return i(d,p)}case"PgType":{const e=u[2];return function(e,t,i){return{$type:"yql.pg."+t.toLowerCase(),$value:e,$category:i}}(d,p,e)}}}(...e)}e.exports=function(e,t,i){const s=function(e){const t=e||{},i=e&&e.validateSrcUrl?e.validateSrcUrl:()=>!1;return t.validateSrcUrl=i,t}(t);return o(e,s,i||{})}}()},34175:(e,t,i)=>{"use strict";i.d(t,{z0:()=>mt});var s=i(90766),n=i(5662),r=i(91508),o=i(31450),a=i(87119),c=i(60002),l=i(16223),h=i(46041),d=i(15092),u=i(83069),g=i(36677),p=i(75326),m=i(43264),f=i(87289),_=i(66261),v=i(47612);class C{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===C._FIND_MATCH_DECORATION||e===C._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let s=0,n=this._decorations.length;s<n;s++){const n=this._editor.getModel().getDecorationRange(this._decorations[s]);if(e.equalsRange(n)){t=this._decorations[s],i=s+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,C._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,C._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,C._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let s=C._FIND_MATCH_DECORATION;const n=[];if(e.length>1e3){s=C._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,r=Math.max(2,Math.ceil(3/i));let o=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let s=1,c=e.length;s<c;s++){const t=e[s].range;a+r>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),o=t.startLineNumber,a=t.endLineNumber)}n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let t=0,o=e.length;t<o;t++)r[t]={range:e[t].range,options:s};this._decorations=i.deltaDecorations(this._decorations,r),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,n),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),t?.length&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,C._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.endLineNumber>e.lineNumber)){if(s.endLineNumber<e.lineNumber)return s;if(!(s.endColumn>e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}static{this._CURRENT_FIND_MATCH_DECORATION=f.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",inlineClassName:"currentFindMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_DECORATION=f.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",inlineClassName:"findMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_NO_OVERVIEW_DECORATION=f.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0})}static{this._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center}})}static{this._RANGE_HIGHLIGHT_DECORATION=f.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0})}static{this._FIND_SCOPE_DECORATION=f.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0})}}class E{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let s=e[0];for(let t=1;t<e.length;t++)s.range.endLineNumber===e[t].range.startLineNumber&&s.range.endColumn===e[t].range.startColumn?(s.range=s.range.plusRange(e[t].range),s.text=s.text+e[t].text):(i.push(s),s=e[t]);i.push(s);for(const n of i)t.addEditOperation(n.range,n.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function b(e,t){if(e&&""!==e[0]){const i=S(e,t,"-"),s=S(e,t,"_");return i&&!s?y(e,t,"-"):!i&&s?y(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():r.zY(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function S(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function y(e,t,i){const s=t.split(i),n=e[0].split(i);let r="";return s.forEach(((e,t)=>{r+=b([n[t]],e)+i})),r.slice(0,-1)}class w{constructor(e){this.staticValue=e,this.kind=0}}class R{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([T.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new w(e[0].staticValue):this._state=new R(e):this._state=new w("")}buildReplaceString(e,t){if(0===this._state.kind)return t?b(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,n=this._state.pieces.length;s<n;s++){const t=this._state.pieces[s];if(null!==t.staticValue){i+=t.staticValue;continue}let n=L._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let s=0;for(let r=0,o=n.length;r<o;r++){if(s>=i){e.push(n.slice(r));break}switch(t.caseOps[s]){case"U":e.push(n[r].toUpperCase());break;case"u":e.push(n[r].toUpperCase()),s++;break;case"L":e.push(n[r].toLowerCase());break;case"l":e.push(n[r].toLowerCase()),s++;break;default:e.push(n[r])}}n=e.join("")}i+=n}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class T{static staticValue(e){return new T(e,-1,null)}static caseOps(e,t){return new T(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class x{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=T.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)}}var k=i(32848);const A=new k.N1("findWidgetVisible",!1),N=(A.toNegated(),new k.N1("findInputFocussed",!1)),I=new k.N1("replaceInputFocussed",!1),O={primary:545,mac:{primary:2593}},D={primary:565,mac:{primary:2613}},M={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},U="actions.find",H="actions.findWithSelection",B="editor.actions.findWithArgs",W="editor.action.nextMatchFindAction",V="editor.action.previousMatchFindAction",z="editor.action.goToMatchFindAction",G="editor.action.nextSelectionMatchFindAction",j="editor.action.previousSelectionMatchFindAction",K="editor.action.startFindReplaceAction",Y="closeFindWidget",q="toggleFindCaseSensitive",$="toggleFindWholeWord",Q="toggleFindRegex",X="toggleFindInSelection",Z="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class se{constructor(e,t){this._toDispose=new n.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new s.pc,this._decorations=new C(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new s.uC((()=>{if(this._editor.hasModel())return this.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,n.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const s=this._findMatches(i,!1,ie);this._decorations.set(s,i);const n=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(n);if(0===r&&s.length>0){const e=(0,h.hw)(s.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,n)>=0));r=e>0?e-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||1===s?(1===i?i=n.getLineCount():i--,s=n.getLineMaxColumn(i)):s--,new u.y(i,s)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),s=se._getSearchRange(this._editor.getModel(),i);s.getEndPosition().isBefore(e)&&(e=s.getEndPosition()),e.isBefore(s.getStartPosition())&&(e=s.getEndPosition());const{lineNumber:n,column:r}=e,o=this._editor.getModel();let a=new u.y(n,r),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);return c&&c.range.isEmpty()&&c.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),c?t||s.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||s===n.getLineMaxColumn(i)?(i===n.getLineCount()?i=1:i++,s=1):s++,new u.y(i,s)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,s=!1){if(this._cannotFind())return null;const n=this._decorations.getFindScope(),r=se._getSearchRange(this._editor.getModel(),n);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());const{lineNumber:o,column:a}=e,c=this._editor.getModel();let l=new u.y(o,a),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(l)&&(l=this._nextSearchPosition(l),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t)),h?s||r.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new L(null);const t=[],i=new x(e);for(let s=0,n=e.length;s<n;s++){const r=e.charCodeAt(s);if(92!==r){if(36===r){if(s++,s>=n)break;const r=e.charCodeAt(s);if(36===r){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===r||38===r){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=r&&r<=57){let o=r-48;if(s+1<n){const n=e.charCodeAt(s+1);if(48<=n&&n<=57){s++,o=10*o+(n-48),i.emitUnchanged(s-2),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}}else{if(s++,s>=n)break;const r=e.charCodeAt(s);switch(r){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic("\t",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(r))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const s=e.buildReplaceString(i.matches,this._state.preserveCase),n=new d.iu(t,s);this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+s.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const s=(e||[null]).map((e=>se._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,s,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),s=i.getValue(1),n=i.getFullModelRange(),r=this._getReplacePattern();let o;const a=this._state.preserveCase;o=r.hasReplacementPatterns||a?s.replace(t,(function(){return r.buildReplaceString(arguments,a)})):s.replace(t,r.buildReplaceString(null,a));const c=new d.ui(n,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),s=[];for(let r=0,o=i.length;r<o;r++)s[r]=t.buildReplaceString(i[r].matches,this._state.preserveCase);const n=new E(this._editor.getSelection(),i.map((e=>e.range)),s);this._executeEditorCommand("replaceAll",n)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let s=0,n=t.length;s<n;s++){if(t[s].equalsRange(i)){t=[i].concat(t.slice(0,s)).concat(t.slice(s+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ne=i(8597),re=i(23034),oe=i(17390),ae=i(42904);class ce extends oe.x{static{this.ID="editor.contrib.findOptionsWidget"}constructor(e,t,i){super(),this._hideSoon=this._register(new s.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0),inputActiveOptionBackground:(0,_.GuP)(_.c1f)},r=this._register((0,ae.bW)());this.caseSensitive=this._register(new re.bc({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.matchCase,hoverDelegate:r,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new re.nV({appendTitle:this._keybindingLabelFor($),isChecked:this._state.wholeWord,hoverDelegate:r,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new re.Ix({appendTitle:this._keybindingLabelFor(Q),isChecked:this._state.isRegex,hoverDelegate:r,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(ne.ko(this._domNode,ne.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(ne.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return ce.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}var le=i(41234);function he(e,t){return 1===e||2!==e&&t}class de extends n.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new le.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const s={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,s.matchesPosition=!0,n=!0),this._matchesCount!==t&&(this._matchesCount=t,s.matchesCount=!0,n=!0),"undefined"!==typeof i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,s.currentMatch=!0,n=!0)),n&&this._onFindReplaceStateChange.fire(s)}change(e,t,i=!0){const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;const r=this.isRegex,o=this.wholeWord,a=this.matchCase,c=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,n=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,n=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,n=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,n=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(e.searchScope?.every((e=>this._searchScope?.some((t=>!g.Q.equalsRange(t,e)))))||(this._searchScope=e.searchScope,s.searchScope=!0,n=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,n=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,n=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,n=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(n=!0,s.isRegex=!0),o!==this.wholeWord&&(n=!0,s.wholeWord=!0),a!==this.matchCase&&(n=!0,s.matchCase=!0),c!==this.preserveCase&&(n=!0,s.preserveCase=!0),n&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(11007),ge=i(35315),pe=i(92403),me=i(10350),fe=i(64383),_e=i(98067),ve=i(78209),Ce=i(89100);function Ee(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}var be=i(61394),Se=i(25689),ye=i(86723),we=i(631),Re=i(19070);const Le=(0,be.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Te=(0,be.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=(0,be.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ke=(0,be.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=(0,be.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=(0,be.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,be.pU)("find-next-match",me.W.arrowDown,ve.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Oe=ve.kg("label.findDialog","Find / Replace"),De=ve.kg("label.find","Find"),Me=ve.kg("placeholder.find","Find"),Pe=ve.kg("label.previousMatchButton","Previous Match"),Fe=ve.kg("label.nextMatchButton","Next Match"),Ue=ve.kg("label.toggleSelectionFind","Find in Selection"),He=ve.kg("label.closeButton","Close"),Be=ve.kg("label.replace","Replace"),We=ve.kg("placeholder.replace","Replace"),Ve=ve.kg("label.replaceButton","Replace"),ze=ve.kg("label.replaceAllButton","Replace All"),Ge=ve.kg("label.toggleReplaceButton","Toggle Replace"),je=ve.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),Ke=ve.kg("label.matchesLocation","{0} of {1}"),Ye=ve.kg("label.noResults","No results"),qe=419;let $e=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.zx?256:2048;class Ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Je(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionStart>0&&e.stopPropagation()}function et(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionEnd<i.value.length&&e.stopPropagation()}class tt extends oe.x{static{this.ID="editor.contrib.findWidget"}constructor(e,t,i,r,o,a,c,l,h,d){super(),this._hoverService=d,this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=r,this._keybindingService=o,this._contextKeyService=a,this._storageService=l,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new s.ve(500),this._register((0,n.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(146)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Ze(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=N.bindTo(a),this._findFocusTracker=this._register(ne.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=I.bindTo(a),this._replaceFocusTracker=this._register(ne.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Ze(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return tt.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(92)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ne.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=$e+"px",this._state.matchesCount>=ie?this._matchesCount.title=je:this._matchesCount.title="",this._matchesCount.firstChild?.remove(),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=r.GP(Ke,i,t)}else e=Ye;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),$e=Math.max($e,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ye)return""===i?ve.kg("ariaSearchNoResultEmpty","{0} found",e):ve.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const s=ve.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),n=this._codeEditor.getModel();if(n&&t.startLineNumber<=n.getLineCount()&&t.startLineNumber>=1){return`${n.getLineContent(t.startLineNumber)}, ${s}`}return s}return ve.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const s=ne.BK(i),n=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=s.left+(n?n.left:0),o=n?n.top:0;if(this._viewZone&&o<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=ne.cL(this._domNode).left;r>i&&(t=!1);const n=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());s.left+(n?n.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const s=this._getHeight();if(s===t.heightInPx)return;const n=s-t.heightInPx;return t.heightInPx=s,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n))}{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let s=!1,n=!1,r=!1;if(this._resized){if(ne.Tr(this._domNode)>qe)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=ne.Tr(this._findInput.domNode))}if(447+i>=t&&(n=!0),447+i-$e>=t&&(r=!0),447+i-$e>=t+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",r),this._domNode.classList.toggle("reduced-find-widget",n),r||s||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:r,reducedFindWidget:n}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.uF&&_e.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new Ce.pG(null,this._contextViewProvider,{width:221,label:De,placeholder:Me,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor($),appendRegexLabel:this._keybindingLabelFor(Q),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ae.bW)());this._prevBtn=this._register(new it({label:Pe+this._keybindingLabelFor(V),icon:Ne,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(V)).run().then(void 0,fe.dz)}},this._hoverService)),this._nextBtn=this._register(new it({label:Fe+this._keybindingLabelFor(W),icon:Ie,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(W)).run().then(void 0,fe.dz)}},this._hoverService));const s=document.createElement("div");s.className="find-part",s.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",s.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.l({icon:xe,title:Ue+this._keybindingLabelFor(X),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,_.GuP)(_.c1f),inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new it({label:He+this._keybindingLabelFor(Y),icon:be.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new Ce._Q(null,void 0,{label:Be,placeholder:We,appendPreserveCaseLabel:this._keybindingLabelFor(Z),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const r=this._register((0,ae.bW)());this._replaceBtn=this._register(new it({label:Ve+this._keybindingLabelFor(J),icon:ke,hoverDelegate:r,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new it({label:ze+this._keybindingLabelFor(ee),icon:Ae,hoverDelegate:r,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",o.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new it({label:Ge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Oe,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(s),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=this._register(new pe.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let c=qe;this._register(this._resizeSash.onDidStart((()=>{c=ne.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=c+e.startX-e.currentX;if(t<qe)return;t>(parseFloat(ne.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=ne.Tr(this._domNode);if(e<qe)return;let t=qe;if(!this._resized||e===qe){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}class it extends oe.x{constructor(e,t){super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+Se.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(t.setupManagedHover(e.hoverDelegate??(0,ae.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown?.(e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...Se.L.asClassNameArray(Le)),this._domNode.classList.add(...Se.L.asClassNameArray(Te))):(this._domNode.classList.remove(...Se.L.asClassNameArray(Te)),this._domNode.classList.add(...Se.L.asClassNameArray(Le)))}}(0,v.zy)(((e,t)=>{const i=e.getColor(_.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,ye.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const s=e.getColor(_.S5J);s&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,ye.Bb)(e.type)?"dashed":"solid"} ${s}; }`);const n=e.getColor(_.b1q);n&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${n}; }`);const r=e.getColor(_.f3U);r&&t.addRule(`.monaco-editor .findMatchInline { color: ${r}; }`);const o=e.getColor(_.p8Y);o&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${o}; }`)}));var st,nt=i(27195),rt=i(54770),ot=i(47508),at=i(98031),ct=i(58591),lt=i(51467),ht=i(9711),dt=i(67220),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};function pt(e,t="single",i=!1){if(!e.hasModel())return null;const s=e.getSelection();if("single"===t&&s.startLineNumber===s.endLineNumber||"multiple"===t)if(s.isEmpty()){const t=e.getConfiguredWordAtPosition(s.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(s)<524288)return e.getModel().getValueInRange(s);return null}let mt=class extends n.jG{static{st=this}static{this.ID="editor.contrib.findController"}get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,n,r,o){super(),this._editor=e,this._findWidgetVisible=A.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._notificationService=r,this._hoverService=o,this._updateHistoryDelayer=new s.ve(500),this._state=this._register(new de),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!N.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=r.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=pt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=r.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=pt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new se(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn(ve.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};mt=st=ut([gt(1,k.fN),gt(2,ht.CS),gt(3,rt.h),gt(4,ct.Ot),gt(5,dt.TN)],mt);let ft=class extends mt{constructor(e,t,i,s,n,r,o,a,c){super(e,i,o,a,r,c),this._contextViewService=t,this._keybindingService=s,this._themeService=n,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let s=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":s=!0;break;case"never":s=!1;break;case"multiline":s=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||s,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new tt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new ce(this._editor,this._state,this._keybindingService))}};ft=ut([gt(1,ot.l),gt(2,k.fN),gt(3,at.b),gt(4,v.Gy),gt(5,ct.Ot),gt(6,ht.CS),gt(7,rt.h),gt(8,dt.TN)],ft);(0,o.gW)(new o.PF({id:U,label:ve.kg("startFindAction","Find"),alias:"Find",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const s=mt.get(t);return!!s&&s.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const _t={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class vt extends o.ks{constructor(){super({id:B,label:ve.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:_t})}async run(e,t,i){const s=mt.get(t);if(s){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await s.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===s.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:t.getOption(41).loop},e),s.setGlobalBufferTerm(s.getState().searchString)}}}class Ct extends o.ks{constructor(){super({id:H,label:ve.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=mt.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class Et extends o.ks{async run(e,t){const i=mt.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class bt extends o.ks{constructor(){super({id:z,label:ve.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:A}),this._highlightDecorations=[]}run(e,t,i){const s=mt.get(t);if(!s)return;const r=s.getState().matchesCount;if(r<1){return void e.get(ct.Ot).notify({severity:ct.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(lt.GK),a=new n.Cm,c=a.add(o.createInputBox());c.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",r);const l=e=>{const t=parseInt(e);if(isNaN(t))return;const i=s.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},h=e=>{const i=l(e);if("number"===typeof i){c.validationMessage=void 0,s.goToMatch(i);const e=s.getState().currentMatch;e&&this.addDecorations(t,e)}else c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount),this.clearDecorations(t)};a.add(c.onDidChangeValue((e=>{h(e)}))),a.add(c.onDidAccept((()=>{const e=l(c.value);"number"===typeof e?(s.goToMatch(e),c.hide()):c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount)}))),a.add(c.onDidHide((()=>{this.clearDecorations(t),a.dispose()}))),c.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.Yf)(a.vp),position:l.A5.Full}}}])}))}}class St extends o.ks{async run(e,t){const i=mt.get(t);if(!i)return;const s=pt(t,"single",!1);s&&i.setSearchString(s),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,o.gW)(new o.PF({id:K,label:ve.kg("startReplace","Replace"),alias:"Replace",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(92))return!1;const s=mt.get(t);if(!s)return!1;const n=t.getSelection(),r=s.isFindInputFocused(),o=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!r,a=r||o?2:1;return s.start({forceRevealReplace:!0,seedSearchStringFromSelection:o?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,o.HW)(mt.ID,ft,0),(0,o.Fl)(vt),(0,o.Fl)(Ct),(0,o.Fl)(class extends Et{constructor(){super({id:W,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,o.Fl)(class extends Et{constructor(){super({id:V,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,o.Fl)(bt),(0,o.Fl)(class extends St{constructor(){super({id:G,label:ve.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,o.Fl)(class extends St{constructor(){super({id:j,label:ve.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const yt=o.DX.bindToContribution(mt.get);(0,o.E_)(new yt({id:Y,precondition:A,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,k.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,o.E_)(new yt({id:q,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,o.E_)(new yt({id:$,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),(0,o.E_)(new yt({id:Q,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,o.E_)(new yt({id:X,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,o.E_)(new yt({id:Z,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:3094}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:3}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:2563}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:void 0,mac:{primary:2051}}})),(0,o.E_)(new yt({id:te,precondition:A,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:515}}))},34309:(e,t,i)=>{"use strict";i.d(t,{N:()=>y});var s,n=i(8597),r=i(20370),o=i(10350),a=i(16980),c=i(5662),l=i(31308),h=i(87958),d=i(25689),u=i(631),g=i(38844),p=i(92368),m=i(86571),f=i(83069),_=i(36677),v=i(62083),C=i(78209),E=i(63591),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class extends c.jG{static{s=this}static{this._breadcrumbsSourceFactory=(0,l.FY)(s,(()=>({dispose(){},getBreadcrumbItems:(e,t)=>[]})))}static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=(0,h.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=s._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;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])t?.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])t?.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const r=this._diffModel.map(((e,t)=>{const i=e?.unchangedRegions.read(t)??[];return 1===i.length&&1===i[0].modifiedLineNumber&&i[0].lineCount===this._editors.modifiedModel.read(t)?.getLineCount()?[]:i}));this.viewZones=(0,l.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const s=[],n=[],o=this._options.renderSideBySide.read(e),a=this._options.compactMode.read(e),c=r.read(e);for(let r=0;r<c.length;r++){const h=c[r];if(!h.shouldHideControls(e)&&(!a||0!==r&&r!==c.length-1))if(a){{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),i=new p.D1(e,12);s.push(i),t.add(new w(this._editors.original,i,h,!o))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),i=new p.D1(e,12);n.push(i),t.add(new w(this._editors.modified,i,h))}}else{{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),n=new p.D1(e,24);s.push(n),t.add(new R(this._editors.original,n,h,h.originalUnchangedRange,!o,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),s=new p.D1(e,24);n.push(s),t.add(new R(this._editors.modified,s,h,h.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}}return{origViewZones:s,modViewZones:n}}));const c={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},g={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,C.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+d.L.asClassName(o.W.fold),zIndex:10001};this._register((0,p.pY)(this._editors.original,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:_.Q.fromPositions(new f.y(s.originalLineNumber,1)),options:g});return i})))),this._register((0,p.pY)(this._editors.modified,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:m.M.ofLength(s.modifiedLineNumber,1).toInclusiveRange(),options:g});return i})))),this._register((0,l.fm)((e=>{const t=r.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};y=s=b([S(3,E._Y)],y);class w extends p.uN{constructor(e,t,i,s=!1){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._unchangedRegion=i,this._hide=s,this._nodes=(0,n.h)("div.diff-hidden-lines-compact",[(0,n.h)("div.line-left",[]),(0,n.h)("div.text@text",[]),(0,n.h)("div.line-right",[])]),r.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register((0,l.fm)((e=>{if(!this._hide){const t=this._unchangedRegion.getHiddenModifiedRange(e).length,i=(0,C.kg)("hiddenLines","{0} hidden lines",t);this._nodes.text.innerText=i}})))}}class R extends p.uN{constructor(e,t,i,s,a,c,h,d){const u=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=s,this._hide=a,this._modifiedOutlineSource=c,this._revealModifiedHiddenLine=h,this._options=d,this._nodes=(0,n.h)("div.diff-hidden-lines",[(0,n.h)("div.top@top",{title:(0,C.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,n.h)("div.center@content",{style:{display:"flex"}},[(0,n.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,n.$)("a",{title:(0,C.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,r.n)("$(unfold)"))]),(0,n.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,n.h)("div.bottom@bottom",{title:(0,C.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root),this._hide?(0,n.Ln)(this._nodes.first):this._register((0,p.AV)(this._nodes.first,{width:(0,g.Ud)(this._editor).layoutInfoContentLeft})),this._register((0,l.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;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);const i=this._unchangedRegion.isDragged.read(e),s=this._editor.getDomNode();s&&(s.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(s.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),s.classList.toggle("canMoveBottom",!t)):"bottom"===i?(s.classList.toggle("canMoveTop",!t),s.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(s.classList.toggle("canMoveTop",!1),s.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,n.ko)(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();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const r=(0,n.zk)(this._nodes.top),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s+r,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0)})),a=(0,n.ko)(r,"mouseup",(e=>{i||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(),a.dispose()}))}))),this._register((0,n.ko)(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();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const r=(0,n.zk)(this._nodes.bottom),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s-r,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(o,void 0);const c=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(c-a))})),a=(0,n.ko)(r,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),o.dispose(),a.dispose()}))}))),this._register((0,l.fm)((e=>{const t=[];if(!this._hide){const s=i.getHiddenModifiedRange(e).length,a=(0,C.kg)("hiddenLines","{0} hidden lines",s),c=(0,n.$)("span",{title:(0,C.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);c.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(c);const l=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(l,e);if(h.length>0){t.push((0,n.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],s=v.gP.toIcon(i.kind),a=(0,n.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,r.s)(s),"\xa0",i.name,...e===h.length-1?[]:[(0,r.s)(o.W.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,n.Ln)(this._nodes.others,...t)})))}}},34326:(e,t,i)=>{"use strict";i.d(t,{Np:()=>r,jA:()=>o,z9:()=>n});var s=i(23452);function n(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.ICodeEditor}function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.IDiffEditor}function o(e){return n(e)?e:r(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&n(e.activeCodeEditor)?e.activeCodeEditor:null}},34408:(e,t,i)=>{var s=i(73917),n=i(39069),r=i(72633);e.exports=function(e){return r(n(e,void 0,s),e+"")}},34420:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$value",n={string:null,number:null,boolean:null,null:null,object:null,array:null};function r(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}function o(e){const i=t(e);if(!Object.prototype.hasOwnProperty.call(n,i))throw new Error('unipika: invalid input - node type "'+i+'" is not supported.');return{$type:r(i),$value:e}}function a(e,t){return e[s]=function(e,t){return Object.keys(e).map((function(i){const s=o(i);return"$attributes"===i||"$value"===i||"$incomplete"===i||"$type"===i?s.$special_key=!0:s.$key=!0,[s,c(e[i],t)]}))}(e[s],t),e}const c=function(e,t){let i;return(e=o(e))&&(i=e.$type,"map"===i?e=a(e,t):"list"===i&&(e=function(e,t){return e[s]=e[s].map((function(e){return c(e,t)})),e}(e,t))),e};e.exports=c}()},34529:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.ARRAY_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.ARRAY_END):t.drawCompactView(a,i)?(r+=t.ARRAY_START,r+=s(o,i,n-1),r+=t.ARRAY_END):r+=t.ARRAY_START+t.ARRAY_END,r}}},34671:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.313 7.488L9 7.653v5.37a.5.5 0 01-.353.478l-1.62.498-.006.001h-.008l-.007-.006-.005-.007v-.003L7 13.979V7.653l-1.313-.165a1.5 1.5 0 01-1.271-1.144l-.588-2.5A1.5 1.5 0 015.288 2h5.424a1.5 1.5 0 011.46 1.844l-.588 2.5a1.5 1.5 0 01-1.271 1.144m2.731-.8A3 3 0 0110.5 8.976v4.046a2 2 0 01-1.412 1.911l-1.62.499A1.52 1.52 0 015.5 13.979V8.977a3 3 0 01-2.544-2.29l-.588-2.5A3 3 0 015.288.5h5.424a3 3 0 012.92 3.687zM6.75 3.5a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,d.languages.register(e);const i=p.getOrCreate(t);d.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),d.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();d.languages.setLanguageConfiguration(t,e.conf)}))}},35015:(e,t,i)=>{"use strict";var s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v,C,E,b,S,y,w,R,L,T,x,k,A,N,I,O,D,M,P,F,U,H,B,W,V,z,G,j,K,Y,q;i.d(t,{A5:()=>O,Ah:()=>D,DD:()=>w,DO:()=>P,Gn:()=>s,H_:()=>G,Ic:()=>M,Io:()=>o,Kb:()=>u,M$:()=>v,OV:()=>A,QP:()=>a,Qj:()=>l,R3:()=>T,SB:()=>B,U7:()=>j,VW:()=>E,VX:()=>x,WA:()=>V,WU:()=>f,XR:()=>H,YT:()=>N,ZS:()=>_,_E:()=>r,cj:()=>R,dE:()=>I,d_:()=>L,e0:()=>g,h5:()=>h,hS:()=>k,hW:()=>F,jT:()=>W,kK:()=>Y,kf:()=>m,l:()=>C,m9:()=>K,of:()=>d,ok:()=>n,ov:()=>U,p2:()=>p,qw:()=>S,r4:()=>b,sm:()=>y,t7:()=>c,tJ:()=>q,v0:()=>z}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(s||(s={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(c||(c={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(C||(C={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(E||(E={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(b||(b={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(S||(S={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(R||(R={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(T||(T={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(x||(x={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(k||(k={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(A||(A={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(O||(O={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(D||(D={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(M||(M={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(F||(F={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(U||(U={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(H||(H={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(W||(W={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(V||(V={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(z||(z={})),function(e){e[e.Deprecated=1]="Deprecated"}(G||(G={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(j||(j={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(K||(K={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>C,U:()=>E});var s=i(8597),n=i(56245),r=i(92403),o=i(31295),a=i(25890),c=i(47661),l=i(41234),h=i(5662),d=i(1592),u=i(49353),g=i(631);const p={separatorBorder:c.Q1.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){if(e!==this.visible){e?(this.size=(0,d.qE)(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{this.view.setVisible?.(e)}catch(i){console.error("Splitview: Failed to set visible view"),console.error(i)}}}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(){return this.view.proportionalLayout??!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,s){this.container=e,this.view=t,this.disposable=s,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(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,C;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(C||(C={}));class E extends h.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const 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={}){super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new l.vl),this._onDidSashReset=this._register(new l.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=t.orientation??0,this.inverseAltBehavior=t.inverseAltBehavior??!1,this.proportionalLayout=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=(0,s.BC)(this.el,(0,s.$)(".sash-container")),this.viewContainer=(0,s.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,s.PG)((0,s.zk)(this.el),e)})),this.scrollableElement=this._register(new o.oO(this.viewContainer,{vertical:0===this.orientation?t.scrollbarVisibility??1:2,horizontal:1===this.orientation?t.scrollbarVisibility??1:2},this.scrollable));const i=this._register(new n.f(this.viewContainer,"scroll")).event;this._register(i((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,s=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===s||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:s})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,s.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},s=e.view;this.doAddView(s,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,s){this.doAddView(e,t,i,s)}layout(e,t){const 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++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n?t+=n:e-=s.size}for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n&&t>0&&(s.size=(0,d.qE)(Math.round(n*e/t),s.minimumSize,s.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),s=t.filter((e=>1===this.viewItems[e].priority)),n=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,s,n)}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(const s of this.viewItems)s.enabled=!1;const n=this.sashItems.findIndex((t=>t.sash===e)),r=(0,h.qE)((0,s.ko)(this.el.ownerDocument.body,"keydown",(e=>o(this.sashDragState.current,e.altKey))),(0,s.ko)(this.el.ownerDocument.body,"keyup",(()=>o(this.sashDragState.current,!1)))),o=(e,t)=>{const i=this.viewItems.map((e=>e.size));let s,o,c=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){const e=this.viewItems[n];c=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];c=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.y1)(n,-1),t=(0,a.y1)(n+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),c=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),l=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(r,h),u=Math.min(l,c),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);s={index:g,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);o={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:c,maxDelta:l,alt:t,snapBefore:s,snapAfter:o,disposable:r}};o(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:s,alt:n,minDelta:r,maxDelta:o,snapBefore:a,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const l=e-i,h=this.resize(t,l,s,void 0,void 0,r,o,a,c);if(n){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),s=e?t:t+1,n=this.viewItems[s],r=n.size-n.maximumSize,o=n.size-n.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,d.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),s=[...i.filter((e=>1===this.viewItems[e].priority)),e],n=i.filter((e=>2===this.viewItems[e].priority)),r=this.viewItems[e];t=Math.round(t),t=(0,d.qE)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(s,n)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const o of this.viewItems)o.maximumSize-o.minimumSize>0&&(e.push(o),t+=o.size);const i=Math.floor(t/e.length);for(const o of e)o.size=(0,d.qE)(i,o.minimumSize,o.maximumSize);const s=(0,a.y1)(this.viewItems.length),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));this.relayout(n,r)}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!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const o=(0,s.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const c=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.s)((()=>o.remove())),u=(0,h.qE)(c,d);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(o,e,g,u):new _(o,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new r.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new r.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),s=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}),n=l.Jh.map(t.onDidStart,s)(this.onSashStart,this),o=l.Jh.map(t.onDidChange,s)(this.onSashChange,this),c=l.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=c(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),s=(0,a.y1)(e+1,this.viewItems.length),n=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(s);("number"!==typeof n||this.viewItems[n].visible)&&("number"!==typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.qE)(n,o,d,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;o.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),n||this.relayout([i],m),n||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const 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)),s,n,r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,c,l){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(n)for(const d of n)(0,a._A)(h,d),(0,a._A)(u,d);if(s)for(const d of s)(0,a.r7)(h,d),(0,a.r7)(u,d);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),C=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),E=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),b=Math.max(_,E,r),S=Math.min(C,v,o);let y=!1;if(c){const e=this.viewItems[c.index],i=t>=c.limitDelta;y=i!==e.visible,e.setVisible(i,c.size)}if(!y&&l){const e=this.viewItems[l.index],i=t<l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(y)return this.resize(e,t,i,s,n,r,o);for(let a=0,w=t=(0,d.qE)(t,b,S);a<g.length;a++){const e=g[a],t=(0,d.qE)(p[a]+w,e.minimumSize,e.maximumSize);w-=t-p[a],e.size=t}for(let a=0,w=t;a<m.length;a++){const e=m[a],t=(0,d.qE)(f[a]-w,e.minimumSize,e.maximumSize);w+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const s=(0,a.y1)(this.viewItems.length-1,-1),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));for(const o of r)(0,a._A)(s,o);for(const o of n)(0,a.r7)(s,o);"number"===typeof e&&(0,a.r7)(s,e);for(let o=0;0!==i&&o<s.length;o++){const e=this.viewItems[s[o]],t=(0,d.qE)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const 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;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),s=[...this.viewItems].reverse();e=!1;const n=s.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const r=s.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let o=0;for(let c=0;c<this.sashItems.length;c++){const{sash:e}=this.sashItems[c];o+=this.viewItems[c].size;const s=!(t[c]&&r[c+1]),l=!(i[c]&&n[c+1]);if(s&&l){const i=(0,a.y1)(c,-1),s=(0,a.y1)(c+1,this.viewItems.length),r=this.findFirstSnapIndex(i),l=this.findFirstSnapIndex(s),h="number"===typeof r&&!this.viewItems[r].visible,d="number"===typeof l&&!this.viewItems[l].visible;h&&n[c]&&(o>0||this.startSnappingEnabled)?e.state=1:d&&t[c]&&(o<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=s&&!l?1:!s&&l?2: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(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const 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),t-e>2)return!1;return!0}dispose(){this.sashDragState?.disposable.dispose(),(0,h.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},35315:(e,t,i)=>{"use strict";i.d(t,{l:()=>l,F:()=>c});var s=i(17390),n=i(25689),r=i(41234),o=i(42904),a=i(48196);const c={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class l extends s.x{constructor(e){super(),this._onChange=this._register(new r.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.L.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,a.i)().setupManagedHover(e.hoverDelegate??(0,o.nZ)("mouse"),this.domNode,this._opts.title)),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.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();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()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",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))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>c,zL:()=>l,UW:()=>g,Md:()=>m});var s=i(78209),n=i(91508),r=i(99020),o=i(25521);class a{constructor(e,t,i,s){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class c{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,s,n,r,a,c,l,h,d,u,g,p,m,f,_,v,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=n,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=c,this.lineDecorations=l.sort(o.d.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=C&&C.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(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&&o.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class d{static getPartIndex(e){return(4294901760&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,s){const n=(t<<16|i)>>>0;this._data[e-1]=n,this._horizontalOffset[e-1]=s}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){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),s=d.getCharIndex(t);return new h(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const s=(e<<16|i)>>>0;let n=0,r=this.length-1;for(;n+1<r;){const e=n+r>>>1,t=this._data[e];if(t===s)return e;t>s?r=e:n=e}if(n===r)return n;const o=this._data[n],a=this._data[r];if(o===s)return n;if(a===s)return r;const c=d.getPartIndex(o),l=d.getCharIndex(o);let h;h=c!==d.getPartIndex(a)?t:d.getCharIndex(a);return i-l<=h-i?n:r}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,s=0,n=0;for(const o of e.lineDecorations)1!==o.type&&2!==o.type||(t.appendString('<span class="'),t.appendString(o.className),t.appendString('"></span>'),1===o.type&&(n|=1,i++),2===o.type&&(n|=2,s++));t.appendString("</span>");const r=new d(1,i+s);return r.setColumnInfo(1,i,0,0),new u(r,!1,n)}return t.appendString("<span><span></span></span>"),new u(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,c=e.len,l=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,C=e.containsRTL,E=e.spaceWidth,b=e.renderSpaceCharCode,S=e.renderWhitespace,y=e.renderControlCharacters,w=new d(c+1,g.length);let R=!1,L=0,T=f,x=0,k=0,A=0;C?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let s=0,d=g.length;s<d;s++){const e=g[s],l=e.endIndex,h=e.type,d=e.containsRTL,u=0!==S&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!o),C=L===l&&e.isPseudoAfter();if(x=0,t.appendString("<span "),d&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=L,i=T;for(;t<l;t++){const s=0|(9===a.charCodeAt(t)?m-i%m:1);e+=s,t>=p&&(i+=s)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(E*e)),t.appendString('px"')),t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;let e,i;if(9===a.charCodeAt(L)){e=m-T%m|0,i=e,!r||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(b),t.appendCharCode(8204);x+=e,k+=i,L>=p&&(T+=i)}}else for(t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;const e=a.charCodeAt(L);let i=1,r=1;switch(e){case 9:i=m-T%m,r=i;for(let e=1;e<=i;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:y?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:n.ne(e)&&r++,y&&e<32?t.appendCharCode(9216+e):y&&127===e?t.appendCharCode(9249):y&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,r=i):t.appendCharCode(e)}x+=i,k+=r,L>=p&&(T+=r)}C?A++:A=0,L>=c&&!R&&e.isPseudoAfter()&&(R=!0,w.setColumnInfo(L+1,s,x,k)),t.appendString("</span>")}R||w.setColumnInfo(c+1,g.length-1,x,k);l&&(t.appendString('<span class="mtkoverflow">'),t.appendString(s.kg("showMore","Show more ({0})",function(e){if(e<1024)return s.kg("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(w,C,o)}(function(e){const t=e.lineContent;let i,s,r;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,s=t.length-e.stopRenderingLineAfter,r=e.stopRenderingLineAfter):(i=!1,s=0,r=t.length);let c=function(e,t,i,s,r){const o=[];let c=0;s>0&&(o[c++]=new a(s,"",0,!1));let l=s;for(let h=0,d=i.getCount();h<d;h++){const d=i.getEndOffset(h);if(d<=s)continue;const u=i.getClassName(h);if(d>=r){const i=!!t&&n.E_(e.substring(l,r));o[c++]=new a(r,u,0,i);break}const g=!!t&&n.E_(e.substring(l,d));o[c++]=new a(d,u,0,g),l=d}return o}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(c=function(e,t){const i=[];let s=new a(0,"",0,!1),n=0;for(const r of t){const t=r.endIndex;for(;n<t;n++){_(e.charCodeAt(n))&&(n>s.endIndex&&(s=new a(n,r.type,r.metadata,r.containsRTL),i.push(s)),s=new a(n+1,"mtkcontrol",r.metadata,!1),i.push(s))}n>s.endIndex&&(s=new a(t,r.type,r.metadata,r.containsRTL),i.push(s))}return i}(t,c));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(c=function(e,t,i,s){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,c=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex;const b=s.length;let S,y=!1,w=n.HG(t);-1===w?(y=!0,w=i,S=i):S=n.lT(t);let R=!1,L=0,T=d&&d[L],x=l%c;for(let A=o;A<i;A++){const e=t.charCodeAt(A);let r;if(T&&A>=T.endOffset&&(L++,T=d&&d[L]),A<w||A>S)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(R)r=!0;else{const e=A+1<i?t.charCodeAt(A+1):0;r=32===e||9===e}else r=!0;else r=!1;if(r&&d&&(r=!!T&&T.startOffset<=A&&T.endOffset>A),r&&g&&(r=y||A>S),r&&C&&A>=w&&A<=S&&(r=!1),R){if(!r||!h&&x>=c){if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=A;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(A,"mtkw",1,!1);x%=c}}else(A===E||r&&A>o)&&(m[f++]=new a(A,v,0,C),x%=c);for(9===e?x=c:n.ne(e)?x+=2:x++,R=r;A===E&&(_++,_<b);)v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex}let k=!1;if(R)if(r&&u){const e=i>0?t.charCodeAt(i-1):0,s=i>1?t.charCodeAt(i-2):0;32===e&&32!==s&&9!==s||(k=!0)}else k=!0;if(k)if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,C);return m}(e,t,r,c));let l=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?l|=1:2===i.type&&(l|=2)}c=function(e,t,i,s){s.sort(o.d.compare);const n=o.Bs.normalize(e,s),r=n.length;let c=0;const l=[];let h=0,d=0;for(let o=0,g=i.length;o<g;o++){const e=i[o],t=e.endIndex,s=e.type,u=e.metadata,g=e.containsRTL;for(;c<r&&n[c].startOffset<t;){const e=n[c];if(e.startOffset>d&&(d=e.startOffset,l[h++]=new a(d,s,u,g)),!(e.endOffset+1<=t)){d=t,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g),c++}t>d&&(d=t,l[h++]=new a(d,s,u,g))}const u=i[i.length-1].endIndex;if(c<r&&n[c].startOffset===u)for(;c<r&&n[c].startOffset===u;){const e=n[c];l[h++]=new a(d,e.className,e.metadata,!1),c++}return l}(t,0,c,e.lineDecorations)}e.containsRTL||(c=function(e,t,i){let s=0;const n=[];let r=0;if(i)for(let o=0,c=t.length;o<c;o++){const i=t[o],c=i.endIndex;if(s+50<c){const t=i.type,o=i.metadata,l=i.containsRTL;let h=-1,d=s;for(let i=s;i<c;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-d>=50&&(n[r++]=new a(h+1,t,o,l),d=h+1,h=-1);d!==c&&(n[r++]=new a(c,t,o,l))}else n[r++]=i;s=c}else for(let o=0,c=t.length;o<c;o++){const e=t[o],i=e.endIndex,c=i-s;if(c>50){const t=e.type,o=e.metadata,l=e.containsRTL,h=Math.ceil(c/50);for(let e=1;e<h;e++){const i=s+50*e;n[r++]=new a(i,t,o,l)}n[r++]=new a(i,t,o,l)}else n[r++]=e;s=i}return n}(t,c,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,i,s,c,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function m(e){const t=new r.fe(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=n,this.overflowingCharCount=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=c,this.tabSize=l,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},35762:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);function n(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="{"+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+"}"):t.drawCompactView(a,i)?(r+="{",r+=s(o,i,n),r+="}"):r+="{}",r}return n.isScalar=!0,n}},35817:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});var s=i(1245);class n{static whitespaceVisibleColumn(e,t,i){const n=e.length;let r=0,o=-1,a=-1;for(let c=0;c<n;c++){if(c===t)return[o,a,r];r%i===0&&(o=c,a=r);switch(e.charCodeAt(c)){case 32:r+=1;break;case 9:r=s.A.nextRenderTabStop(r,i);break;default:return[-1,-1,-1]}}return t===n?[o,a,r]:[-1,-1,-1]}static atomicPosition(e,t,i,r){const o=e.length,[a,c,l]=n.whitespaceVisibleColumn(e,t,i);if(-1===l)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(l%i===0)return t;h=l%i<=i/2}if(h){if(-1===a)return-1;let t=c;for(let n=a;n<o;++n){if(t===c+i)return a;switch(e.charCodeAt(n)){case 32:t+=1;break;case 9:t=s.A.nextRenderTabStop(t,i);break;default:return-1}}return t===c+i?a:-1}const d=s.A.nextRenderTabStop(l,i);let u=l;for(let n=t;n<o;n++){if(u===d)return n;switch(e.charCodeAt(n)){case 32:u+=1;break;case 9:u=s.A.nextRenderTabStop(u,i);break;default:return-1}}return u===d?o:-1}}},36e3:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(1321).then(i.bind(i,43702))})},36317:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>d,SJ:()=>p,fV:()=>h,ny:()=>s,v$:()=>l,zl:()=>g});var s,n=i(64383),r=i(98067),o=i(91508),a=i(79400),c=i(74027);function l(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}function h(e,...t){return t.some((t=>l(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(s||(s={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return c.SA.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return n.dz(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const o=this._ports[t],c=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"===typeof c&&(l+=`&tkn=${encodeURIComponent(c)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${o}`,path:this._remoteResourcesPath,query:l})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===s.vscodeRemote?d.rewrite(e):e.scheme!==s.file||!r.ib&&r.lg!==`${s.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:s.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const i=c.fj(t,e);return a.r.file(i)}return a.r.parse(t.toUrl(e))}}const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let s;"string"===typeof e?s=new URL(e).searchParams:e instanceof URL?s=e.searchParams:a.r.isUri(e)&&(s=new URL(e.toString(!0)).searchParams);const n=s?.get(i);if(n)return t.get(n)},e.addSearchParam=function(e,t,s){if(!globalThis.crossOriginIsolated)return;const n=t&&s?"3":s?"2":"1";e instanceof URLSearchParams?e.set(i,n):e[i]=n}}(p||(p={}))},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ce,aG:()=>Ee,er:()=>ft,YD:()=>Re,zL:()=>gt,Nf:()=>Ne,cH:()=>Oe});var s=i(8597),n=i(25890),r=i(18447),o=i(41234),a=i(5662),c=(i(48215),i(93090));class l{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,s){if(i.disposable?.dispose(),!i.data)return;const n=this.modelProvider();if(n.isResolved(e))return this.renderer.renderElement(n.get(e),e,i.data,s);const o=new r.Qi,a=n.resolve(e,o.token);i.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,s)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class d{constructor(e,t,i,s,n={}){const r=()=>this.model,o=s.map((e=>new l(e,r)));this.list=new c.B8(e,t,i,o,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(r,n))}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 o.Jh.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 o.Jh.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 o.Jh.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._model=e,this.list.splice(0,this.list.length,(0,n.y1)(e.length))}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()}}var u=i(48196),g=i(42904),p=i(35151);class m{static{this.TemplateId="row"}constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const n of e){const e=s.get(n.templateId);if(!e)throw new Error(`Table cell renderer for template id ${n.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,s.BC)(e,(0,s.$)(".monaco-table-tr")),i=[],n=[];for(let o=0;o<this.columns.length;o++){const e=this.renderers[o],r=(0,s.BC)(t,(0,s.$)(".monaco-table-td",{"data-col-index":o}));r.style.width=`${this.getColumnSize(o)}px`,i.push(r),n.push(e.renderTemplate(r))}const r={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(r),r}renderElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.columns[n].project(e);this.renderers[n].renderElement(r,t,i.cellTemplateData[n],s)}}disposeElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.renderers[n];if(r.disposeElement){const o=this.columns[n].project(e);r.disposeElement(o,t,i.cellTemplateData[n],s)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,s.w_)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}class f extends a.jG{get minimumSize(){return this.column.minimumWidth??120}get maximumSize(){return this.column.maximumWidth??Number.POSITIVE_INFINITY}get onDidChange(){return this.column.onDidChangeWidthConstraints??o.Jh.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new o.vl,this.onDidLayout=this._onDidLayout.event,this.element=(0,s.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,u.i)().setupManagedHover((0,g.nZ)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{static{this.InstanceCount=0}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,r,l){this.virtualDelegate=i,this.columns=n,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.Cm,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,s.BC)(t,(0,s.$)(`.monaco-table.${this.domId}`));const h=n.map(((e,t)=>this.disposables.add(new f(e,t)))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(n,r,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new c.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],l)),o.Jh.any(...h.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const 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=(0,s.li)(this.domNode),this.style(c.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),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()}}var v=i(19466),C=i(66700),E=i(37472),b=i(84565),S=i(42522);class y{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new E.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i={}){const s=this.getElementLocation(e);this._setChildren(s,this.preserveCollapseState(t),i)}_setChildren(e,t=S.f.empty(),i){const s=new Set,n=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{if(null===e.element)return;const t=e;if(s.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.add(e),this.nodesByIdentity.set(e,t)}i.onDidCreateNode?.(t)},onDidDeleteNode:e=>{if(null===e.element)return;const t=e;if(s.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.has(e)||this.nodesByIdentity.delete(e)}i.onDidDeleteNode?.(t)}})}preserveCollapseState(e=S.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===b.Yo.Collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed!==b.Yo.Expanded&&e.collapsed!==b.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let s;return s="undefined"===typeof e.collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed===b.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===b.Yo.Collapsed||e.collapsed!==b.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:s,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getElementLocation(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const 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);const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new b.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),s=this.model.getParentNodeLocation(i);return this.model.getNode(s).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function w(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:S.f.map(S.f.from(e.children),w),collapsible:e.collapsible,collapsed:e.collapsed}}function R(e){const t=[e.element],i=e.incompressible||!1;let s,n;for(;[n,s]=S.f.consume(S.f.from(e.children),2),1===n.length&&!n[0].incompressible;)e=n[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:S.f.map(S.f.concat(n,s),R),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e,t=0){let i;return i=t<e.element.elements.length-1?[L(e,t+1)]:S.f.map(S.f.from(e.children),(e=>L(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function T(e){return L(e,0)}function x(e,t,i){return e.element===t?{...e,children:i}:{...e,children:S.f.map(S.f.from(e.children),(e=>x(e,t,i)))}}class k{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new y(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i){const s=i.diffIdentityProvider&&(r=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>r.getId(e).toString())).join("\0")});var r;if(null===e){const e=S.f.map(t,this.enabled?R:w);return void this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0})}const o=this.nodes.get(e);if(!o)throw new b.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(o),c=this.model.getParentNodeLocation(o),l=this.model.getNode(c),h=x(T(a),e,t),d=(this.enabled?R:w)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,n.aI)(d.element.elements,a.element.elements,u))return void this._setChildren(o,d.children||S.f.empty(),{diffIdentityProvider:s,diffDepth:1});const g=l.children.map((e=>e===a?d:e));this._setChildren(l.element,g,{diffIdentityProvider:s,diffDepth:a.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=S.f.map(t,T),s=S.f.map(i,e?R:w);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const s=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)s.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)s.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getCompressedNode(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}}const A=e=>e[e.length-1];class N{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new N(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 I{get onDidSplice(){return o.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return o.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return o.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||A;const s=e=>this.elementMapper(e.elements);this.nodeMapper=new b.y2((e=>new N(s,e))),this.model=new k(e,function(e,t){return{splice(i,s,n){t.splice(i,s,n.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,s)=>t.filter.filter(e(i),s)}}}(s,i))}setChildren(e,t=S.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){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof 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()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var O=i(58694),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class M extends v.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,s,n={}){super(e,t,i,s,n),this.user=e}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new y(e,t,i)}}class P{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,s){let n=this.stickyScrollDelegate.getCompressedNode(e);n||(n=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===n.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,s)):(i.compressedTreeNode=n,this.renderer.renderCompressedElements(n,t,i.data,s))}disposeElement(e,t,i,s){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,s):this.renderer.disposeElement?.(e,t,i.data,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}D([O.B],P.prototype,"compressedTreeNodeProvider",null);class F{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 s=0;s<e.length;s++){const n=e[s],r=n.position+n.height;if(s+1<e.length&&r+e[s+1].height>i||s>=t-1&&t<e.length){const t=e.slice(0,s),i=e.slice(s);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");const t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];const i=[];for(let c=0;c<e.length;c++){const s=e[c],n=t.getCompressedTreeNode(s.node.element);if(n.element){if(0!==c&&n.element.incompressible)break;i.push(...n.element.elements)}}if(i.length<2)return e[0];const s=e[e.length-1],n={elements:i,incompressible:!1},r={...s.node,children:[],element:n},o=new Proxy(e[0].node,{}),a={node:o,startIndex:e[0].startIndex,endIndex:s.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,r),a}}function U(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let s;try{s=e().getCompressedTreeNode(i)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===s.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(s.element.elements)}}}}class H extends M{constructor(e,t,i,s,n={}){const r=()=>this,o=new F((()=>this.model));super(e,t,i,s.map((e=>new P(r,o,e))),{...U(r,n),stickyScrollDelegate:o})}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new I(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var B=i(90766),W=i(10350),V=i(25689),z=i(64383),G=i(631);function j(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function K(e,t){return!!t.parent&&(t.parent===e||K(e,t.parent))}class Y{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Y(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 q{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,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function $(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Q(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class X extends C.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Z(e){return e instanceof C.ur?new X(e):e}class J{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){this.dnd.onDragStart?.(Z(e),t)}onDragOver(e,t,i,s,n,r=!0){return this.dnd.onDragOver(Z(e),t&&t.element,i,s,n)}drop(e,t,i,s,n){this.dnd.drop(Z(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(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=>!!e.accessibilityProvider?.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)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return o.Jh.map(this.tree.onDidChangeFocus,$)}get onDidChangeSelection(){return o.Jh.map(this.tree.onDidChangeSelection,$)}get onMouseDblClick(){return o.Jh.map(this.tree.onMouseDblClick,Q)}get onPointer(){return o.Jh.map(this.tree.onPointer,Q)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,s,n,r={}){this.user=e,this.dataSource=n,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new o.vl,this._onDidChangeNodeSlowState=new o.vl,this.nodeMapper=new b.y2((e=>new Y(e))),this.disposables=new a.Cm,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?b.Yo.PreserveOrCollapsed:b.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,s,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=j({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)}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new q(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(n)||{};return new M(e,t,r,o,a)}updateOptions(e={}){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.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const 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)}async _updateChildren(e=this.root.element,t=!0,i=!1,s,n){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,s,n),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const s=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),s}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const 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){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new b.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,s){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,s)}async refreshNode(e,t,i){let s;if(this.subTreeRefreshPromises.forEach(((n,r)=>{!s&&function(e,t){return e===t||K(e,t)||K(t,e)}(r,e)&&(s=n.then((()=>this.refreshNode(e,t,i))))})),s)return s;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let s;e.refreshPromise=new Promise((e=>s=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const s=await this.doRefreshNode(e,t,i);e.stale=!1,await B.HC.settled(s.map((e=>this.doRefreshSubTree(e,t,i))))}finally{s()}}async doRefreshNode(e,t,i){let s;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,G.xZ)(t))s=Promise.resolve(t);else{const i=(0,B.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),s=t.finally((()=>i.cancel()))}}else s=Promise.resolve(S.f.empty());try{const n=await s;return this.setChildren(e,n,t,i)}catch(n){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,z.MB)(n))return[];throw n}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,G.xZ)(i)?this.processChildren(i):(t=(0,B.SS)((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(z.dz))}setChildren(e,t,i,s){const n=[...t];if(0===e.children.length&&0===n.length)return[];const r=new Map,o=new Map;for(const l of e.children)r.set(l.element,l),this.identityProvider&&o.set(l.id,{node:l,collapsed:this.tree.hasElement(l)&&this.tree.isCollapsed(l)});const a=[],c=n.map((t=>{const n=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=j({element:t,parent:e,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&i.defaultCollapseState===b.Yo.PreserveOrExpanded&&a.push(i),i}const c=this.identityProvider.getId(t).toString(),l=o.get(c);if(l){const e=l.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=n,i?l.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):n&&!l.collapsed&&a.push(e),e}const h=j({element:t,parent:e,id:c,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&s.viewState.focus&&s.viewState.focus.indexOf(c)>-1&&s.focus.push(h),s&&s.viewState.selection&&s.viewState.selection.indexOf(c)>-1&&s.selection.push(h),(s&&s.viewState.expanded&&s.viewState.expanded.indexOf(c)>-1||n&&h.defaultCollapseState===b.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const l of r.values())te(l,(e=>this.nodes.delete(e.element)));for(const l of c)this.nodes.set(l.element,l);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&1===c.length&&0===a.length&&(c[0].forceExpanded=!0,a.push(c[0])),a}render(e,t,i){const s=e.children.map((e=>this.asTreeElement(e,t))),n=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,s,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return 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?S.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.disposables.dispose(),this.tree.dispose()}}class se{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 se(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 ne{constructor(e,t,i,s){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderCompressedElements(e,t,i,s){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeCompressedElements(e,t,i,s){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class re extends ie{constructor(e,t,i,s,n,r,o={}){super(e,t,i,n,r,o),this.compressionDelegate=s,this.compressibleNodeMapper=new b.y2((e=>new se(e))),this.filter=o.filter}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new ne(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(n)||{};return new H(e,t,r,o,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const s=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(s(i.element))}return t},r=n(this.tree.getSelection()),o=n(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let c=!1;const l=this.getFocus();let h=!1;const d=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=s(t.elements[i].element),n=t.elements[t.elements.length-1].element;r.has(e)&&-1===a.indexOf(n)&&(a.push(n),c=!0),o.has(e)&&-1===l.indexOf(n)&&(l.push(n),h=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),c&&this.setSelection(a),h&&this.setFocus(l)}processChildren(e){return this.filter&&(e=S.f.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(s=t)?s?1:0:(0,E.iZ)(s)?(0,E.Mn)(s.visibility):(0,E.Mn)(s);var s;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class oe extends v.DO{constructor(e,t,i,s,n,r={}){super(e,t,i,s,r),this.user=e,this.dataSource=n,this.identityProvider=r.identityProvider}createModel(e,t,i){return new y(e,t,i)}}var ae=i(78209),ce=i(84001),le=i(1646),he=i(32848),de=i(28290),ue=i(47508),ge=i(63591),pe=i(98031),me=i(46359),fe=i(19070),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=(0,ge.u1)("listService");class Ee{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new c.hb((0,s.li)(),"").style(fe.IN)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,s.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>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()}}const be=new he.N1("listScrollAtBoundary","none"),Se=(he.M$.or(be.isEqualTo("top"),be.isEqualTo("both")),he.M$.or(be.isEqualTo("bottom"),be.isEqualTo("both")),new he.N1("listFocus",!0)),ye=new he.N1("treestickyScrollFocused",!1),we=new he.N1("listSupportsMultiselect",!0),Re=he.M$.and(Se,he.M$.not(de.aV),ye.negate()),Le=new he.N1("listHasSelectionOrFocus",!1),Te=new he.N1("listDoubleSelection",!1),xe=new he.N1("listMultiSelection",!1),ke=new he.N1("listSelectionNavigation",!1),Ae=new he.N1("listSupportsFind",!0),Ne=new he.N1("treeElementCanCollapse",!1),Ie=new he.N1("treeElementHasParent",!1),Oe=new he.N1("treeElementCanExpand",!1),De=new he.N1("treeElementHasChild",!1),Me=new he.N1("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Ue(e,t){const i=e.createScoped(t.getHTMLElement());return Se.bindTo(i),i}function He(e,t){const i=be.bindTo(e),s=()=>{const e=0===t.scrollTop,s=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&s?i.set("both"):e?i.set("top"):s?i.set("bottom"):i.set("none")};return s(),t.onDidScroll(s)}const Be="workbench.list.multiSelectModifier",We="workbench.list.openMode",Ve="workbench.list.horizontalScrolling",ze="workbench.list.defaultFindMode",Ge="workbench.list.typeNavigationMode",je="workbench.list.keyboardNavigation",Ke="workbench.list.scrollByPage",Ye="workbench.list.defaultFindMatchType",qe="workbench.tree.indent",$e="workbench.tree.renderIndentGuides",Qe="workbench.list.smoothScrolling",Xe="workbench.list.mouseWheelScrollSensitivity",Ze="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(Be)}class st extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,c.tX)(e)}isSelectionRangeChangeEvent(e){return(0,c.mh)(e)}}function nt(e,t){const i=e.get(ce.pG),s=e.get(pe.b),n=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(i.getValue(Qe)),mouseWheelScrollSensitivity:i.getValue(Xe),fastScrollSensitivity:i.getValue(Ze),multipleSelectionController:t.multipleSelectionController??n.add(new st(i)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(i.getValue(Ke))},n]}let rt=class extends c.B8{constructor(e,t,i,s,n,r,o,a,c){const l="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(a.getValue(Ve)),[h,d]=c.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...h,horizontalScrolling:l}),this.disposables.add(d),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=n.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const 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((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(a.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(a.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=a.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:a,...n}),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?(0,fe.t8)(e):fe.IN)}};rt=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],rt);let ot=class extends d{constructor(e,t,i,s,n,r,o,c,l){const h="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this.widget)),this.horizontalScrolling=n.horizontalScrolling,this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:c,...n}),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?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};ot=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],ot);let at=class extends _{constructor(e,t,i,s,n,r,o,a,c,l){const h="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,r);super(e,t,i,s,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Ue(o,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const 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((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:c,...r}),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?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.fN),ve(7,Ce),ve(8,ce.pG),ve(9,ge._Y)],at);class ct extends a.jG{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new o.vl),this.onDidOpen=this._onDidOpen.event,this._register(o.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,s.kx)(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?.openOnSingleClick&&t?.configurationService?(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We),this._register(t?.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We))})))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,s="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,s,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,s,t)}onMouseDblClick(e,t){if(!t)return;const 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;const s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,s,t)}_open(e,t,i,s,n){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:s,element:e,browserEvent:n})}}class lt extends ct{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const s=e.softDispatch(i,i.target);return 1===s.kind?(t=!0,!1):(t=!1,0===s.kind)}}let gt=class extends M{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],gt);let pt=class extends H{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],pt);let mt=class extends oe{constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],ft);let _t=class extends re{constructor(e,t,i,s,n,r,o,a,c,l,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Et,o);super(e,t,i,s,n,r,d),this.disposables.add(g),this.internals=new bt(this,o,u,o.overrideStyles,c,l,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(ze);if("highlight"===t)return v.vD.Highlight;if("filter"===t)return v.vD.Filter;const i=e.getValue(je);return"simple"===i||"highlight"===i?v.vD.Highlight:"filter"===i?v.vD.Filter:void 0}function Ct(e){const t=e.getValue(Ye);return"fuzzy"===t?v.RD.Fuzzy:"contiguous"===t?v.RD.Contiguous:void 0}function Et(e,t){const i=e.get(ce.pG),s=e.get(ue.l),n=e.get(he.fN),r=e.get(ge._Y),o=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(Ve)),[a,l]=r.invokeFunction(nt,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue($e);return{getTypeNavigationMode:()=>{const e=n.getContextKeyValue(Pe);if("automatic"===e)return c._C.Automatic;if("trigger"===e)return c._C.Trigger;if(!1===n.getContextKeyValue(Fe))return c._C.Trigger;const t=i.getValue(Ge);return"automatic"===t?c._C.Automatic:"trigger"===t?c._C.Trigger:void 0},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"===typeof i.getValue(qe)?i.getValue(qe):void 0,renderIndentGuides:d,smoothScrolling:Boolean(i.getValue(Qe)),defaultFindMode:vt(i),defaultFindMatchType:Ct(i),horizontalScrolling:o,scrollByPage:Boolean(i.getValue(Ke)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??"doubleClick"===i.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.Dk,enableStickyScroll:Boolean(i.getValue(et)),stickyScrollMaxItemCount:Number(i.getValue(tt))}}}_t=_e([ve(7,ge._Y),ve(8,he.fN),ve(9,Ce),ve(10,ce.pG)],_t);let bt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,s,n,r,o){this.tree=e,this.disposables=[],this.contextKeyService=Ue(n,e),this.disposables.push(He(this.contextKeyService,e)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Ae.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.hasDoubleSelection=Te.bindTo(this.contextKeyService),this.hasMultiSelection=xe.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ne.bindTo(this.contextKeyService),this.treeElementHasParent=Ie.bindTo(this.contextKeyService),this.treeElementCanExpand=Oe.bindTo(this.contextKeyService),this.treeElementHasChild=De.bindTo(this.contextKeyService),this.treeFindOpen=Me.bindTo(this.contextKeyService),this.treeStickyScrollFocused=ye.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(o),this.updateStyleOverrides(s);const a=()=>{const t=e.getFocus()[0];if(!t)return;const 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))},c=new Set;c.add(Pe),c.add(Fe),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const 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((()=>{const 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))),o.onDidChangeConfiguration((s=>{let n={};if(s.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(o)),s.affectsConfiguration(qe)){const e=o.getValue(qe);n={...n,indent:e}}if(s.affectsConfiguration($e)&&void 0===t.renderIndentGuides){const e=o.getValue($e);n={...n,renderIndentGuides:e}}if(s.affectsConfiguration(Qe)){const e=Boolean(o.getValue(Qe));n={...n,smoothScrolling:e}}if(s.affectsConfiguration(ze)||s.affectsConfiguration(je)){const e=vt(o);n={...n,defaultFindMode:e}}if(s.affectsConfiguration(Ge)||s.affectsConfiguration(je)){const e=i();n={...n,typeNavigationMode:e}}if(s.affectsConfiguration(Ye)){const e=Ct(o);n={...n,defaultFindMatchType:e}}if(s.affectsConfiguration(Ve)&&void 0===t.horizontalScrolling){const e=Boolean(o.getValue(Ve));n={...n,horizontalScrolling:e}}if(s.affectsConfiguration(Ke)){const e=Boolean(o.getValue(Ke));n={...n,scrollByPage:e}}if(s.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(n={...n,expandOnlyOnTwistieClick:"doubleClick"===o.getValue(Je)}),s.affectsConfiguration(et)){const e=o.getValue(et);n={...n,enableStickyScroll:e}}if(s.affectsConfiguration(tt)){const e=Math.max(1,o.getValue(tt));n={...n,stickyScrollMaxItemCount:e}}if(s.affectsConfiguration(Xe)){const e=o.getValue(Xe);n={...n,mouseWheelScrollSensitivity:e}}if(s.affectsConfiguration(Ze)){const e=o.getValue(Ze);n={...n,fastScrollSensitivity:e}}Object.keys(n).length>0&&e.updateOptions(n)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(c)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new dt(e,{configurationService:o,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};bt=_e([ve(4,he.fN),ve(5,Ce),ve(6,ce.pG)],bt);me.O.as(le.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Be]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"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.")},[We]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"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.")},[Ve]:{type:"boolean",default:!1,description:(0,ae.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ke]:{type:"boolean",default:!1,description:(0,ae.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[qe]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.kg)("tree indent setting","Controls tree indentation in pixels.")},[$e]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Qe]:{type:"boolean",default:!1,description:(0,ae.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Xe]:{type:"number",default:1,markdownDescription:(0,ae.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Ze]:{type:"number",default:5,markdownDescription:(0,ae.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[ze]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[je]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Ye]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)("expand mode","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.")},[et]:{type:"boolean",default:!0,description:(0,ae.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[Ge]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.kg)("typeNavigationMode2","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.")}}})},36677:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});var s=i(83069);class n{constructor(e,t,i,s){e>i||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return n.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return n.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return n.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return n.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return n.plusRange(this,e)}static plusRange(e,t){let i,s,r,o;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,s=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,s=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,s=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new n(i,s,r,o)}intersectRanges(e){return n.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,r=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,c=t.startColumn,l=t.endLineNumber,h=t.endColumn;return i<a?(i=a,s=c):i===a&&(s=Math.max(s,c)),r>l?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&s>o?null:new n(i,s,r,o)}equalsRange(e){return n.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return n.getEndPosition(this)}static getEndPosition(e){return new s.y(e.endLineNumber,e.endColumn)}getStartPosition(){return n.getStartPosition(this)}static getStartPosition(e){return new s.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new n(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new n(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return n.collapseToStart(this)}static collapseToStart(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return n.collapseToEnd(this)}static collapseToEnd(e){return new n(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new n(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new n(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,s=0|t.startLineNumber;if(i===s){const i=0|e.startColumn,s=0|t.startColumn;if(i===s){const i=0|e.endLineNumber,s=0|t.endLineNumber;if(i===s){return(0|e.endColumn)-(0|t.endColumn)}return i-s}return i-s}return i-s}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},36723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DraggedTreeItemsIdentifier:()=>n,TreeViewsDnDService:()=>s});class s{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class n{constructor(e){this.identifier=e}}},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>l,ih:()=>d,rc:()=>o,wv:()=>c});var s=i(41234),n=i(5662),r=i(78209);class o extends n.jG{constructor(e,t="",i="",n=!0,r){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=r}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 a extends n.jG{constructor(){super(...arguments),this._onWillRun=this._register(new s.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new s.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(s){i=s}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class c{constructor(){this.id=c.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new c,...i]:i);return t}static{this.ID="vs.actions.separator"}async run(){}}class l{get actions(){return this._actions}constructor(e,t,i,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=s,this._actions=i}async run(){}}class h extends o{static{this.ID="vs.actions.empty"}constructor(){super(h.ID,r.kg("submenu.empty","(empty)"),void 0,!1)}}function d(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},36998:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var s=i(7085),n=i(36677),r=i(55190);class o{static _handleEolEdits(e,t){let i;const s=[];for(const n of t)"number"===typeof n.eol&&(i=n.eol),n.range&&"string"===typeof n.text&&s.push(n);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),s=i.validateRange(t.range);return i.getFullModelRange().equalsRange(s)}static execute(e,t,i){i&&e.pushUndoStop();const a=r.D.capture(e),c=o._handleEolEdits(e,t);1===c.length&&o._isFullModelReplaceEdit(e,c[0])?e.executeEdits("formatEditsCommand",c.map((e=>s.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",c.map((e=>s.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},36999:(e,t,i)=>{"use strict";i.d(t,{Yh:()=>k,QM:()=>w});var s=i(78209),n=i(60413),r=i(631),o=i(11007),a=i(31450),c=i(80301),l=i(32799),h=i(83069),d=i(36677);class u{static columnSelect(e,t,i,s,n,r){const o=Math.abs(n-i)+1,a=i>n,c=s>r,u=s<r,g=[];for(let p=0;p<o;p++){const n=i+(a?-p:p),o=e.columnFromVisibleColumn(t,n,s),m=e.columnFromVisibleColumn(t,n,r),f=e.visibleColumnFromColumn(t,new h.y(n,o)),_=e.visibleColumnFromColumn(t,new h.y(n,m));if(u){if(f>r)continue;if(_<s)continue}if(c){if(_>s)continue;if(f<r)continue}g.push(new l.mG(new d.Q(n,o,n,o),0,0,new h.y(n,m),0))}if(0===g.length)for(let p=0;p<o;p++){const e=i+(a?-p:p),s=t.getLineMaxColumn(e);g.push(new l.mG(new d.Q(e,s,e,s),0,0,new h.y(e,s),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:s,toLineNumber:n,toVisualColumn:r}}static columnSelectLeft(e,t,i){let s=i.toViewVisualColumn;return s>0&&s--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,s)}static columnSelectRight(e,t,i){let s=0;const n=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=n;a<=r;a++){const i=t.getLineMaxColumn(a),n=e.visibleColumnFromColumn(t,new h.y(a,i));s=Math.max(s,n)}let o=i.toViewVisualColumn;return o<s&&o++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)}static columnSelectUp(e,t,i,s){const n=s?e.pageSize:1,r=Math.max(1,i.toViewLineNumber-n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}static columnSelectDown(e,t,i,s){const n=s?e.pageSize:1,r=Math.min(t.getLineCount(),i.toViewLineNumber+n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}}var g=i(1226),p=i(28291),m=i(49265),f=i(60002),_=i(32848),v=i(59261),C=i(8597),E=i(26685);class b extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i||{})}}var S,y,w;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!!r.Kg(t.to)&&(!(!r.b0(t.by)&&!r.Kg(t.by))&&(!(!r.b0(t.value)&&!r.Et(t.value))&&!(!r.b0(t.revealCursor)&&!r.Lm(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,s;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Page:s=3;break;case e.RawUnit.HalfPage:s=4;break;case e.RawUnit.Editor:s=5;break;case e.RawUnit.Column:s=6;break;default:s=2}return{direction:i,unit:s,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(S||(S={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!(!r.Et(t.lineNumber)&&!r.Kg(t.lineNumber))&&!(!r.b0(t.at)&&!r.Kg(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(y||(y={}));class R{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,C.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(c.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const s=this.runEditorCommand(e,t,i);return s||!0}}!function(e){class t extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends b{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>l.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,s){if("undefined"===typeof s.position||"undefined"===typeof s.viewPosition||"undefined"===typeof s.mouseColumn)return null;const n=e.model.validatePosition(s.position),r=e.coordinatesConverter.validateViewPosition(new h.y(s.viewPosition.lineNumber,s.viewPosition.column),n),o=s.doColumnSelect?i.fromViewLineNumber:r.lineNumber,a=s.doColumnSelect?i.fromViewVisualColumn:s.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,o,a,r.lineNumber,s.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectRight(e.cursorConfig,e,i)}});class r extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3595,linux:{primary:0}}}));class c extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new c({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new c({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends b{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.S.metadata})}runCoreEditorCommand(e,t){const i=p.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const s=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.c.simpleMove(e,t,i.direction,s,n,i.unit);case 11:case 13:case 12:case 14:return p.c.viewportMove(e,t,i.direction,s,n);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.E_)(new g);class m extends b{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends b{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const s=e.getCursorStates();if(s.length>1){const n=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,o=s.length;i<o;i++){const o=s[i];if((!n||o.modelState.selection.containsPosition(n))&&(!r||o.viewState.selection.containsPosition(r)))return s.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,s)}}s.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}),e.LastCursorMoveToSelect=(0,a.E_)(new class extends b{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.moveTo(e,s[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class _ extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.E_)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.E_)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i],n=s.modelState.position.lineNumber;t[i]=l.MF.fromModelState(s.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=(0,a.E_)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.E_)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.E_)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.E_)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class E extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],r=n.modelState.position.lineNumber,o=e.model.getLineMaxColumn(r);i[s]=l.MF.fromModelState(n.modelState.move(this._inSelectionMode,r,o,0))}return i}}e.CursorLineEnd=(0,a.E_)(new E({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.E_)(new E({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class w extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.E_)(new w({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.E_)(new w({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3086,mac:{primary:3088}}}));class L extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.E_)(new L({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.E_)(new L({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class T extends b{constructor(){super({id:"editorScroll",precondition:void 0,metadata:S.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=S.parse(t);if(!i)return;const s=this.determineScrollMethod(i);s&&s(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const s=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const n=e.getCompletelyVisibleViewRangeAtScrollTop(s);e.setCursorStates(t,3,[p.c.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:s},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),s=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),n=e.coordinatesConverter.convertViewRangeToModelRange(s);let r;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new h.y(r,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const s=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+s*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const s=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:s},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=T,e.EditorScroll=(0,a.E_)(new T),e.ScrollLineUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Left,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.E_)(new class extends b{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Right,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class x extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.E_)(new x({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.E_)(new x({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.E_)(new class extends b{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0),r=s[i];n[i]=p.c.word(e,r,r.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class k extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.E_)(new k({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.E_)(new k({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class A extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.line(e,s[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=(0,a.E_)(new A({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.E_)(new A({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.E_)(new class extends b{constructor(){super({id:"cancelSelection",precondition:f.R.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.E_)(new class extends b{constructor(){super({id:"removeSecondaryCursors",precondition:f.R.hasMultipleSelections,kbOpts:{weight:1,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,o.h5)(s.kg("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.E_)(new class extends b{constructor(){super({id:"revealLine",precondition:void 0,metadata:y.metadata})}runCoreEditorCommand(e,t){const i=t,s=i.lineNumber||0;let n="number"===typeof s?s+1:parseInt(s)+1;n<1&&(n=1);const r=e.model.getLineCount();n>r&&(n=r);const o=new d.Q(n,1,n,e.model.getLineMaxColumn(n));let a=0;if(i.at)switch(i.at){case y.RawAtArgument.Top:a=3;break;case y.RawAtArgument.Center:a=1;break;case y.RawAtArgument.Bottom:a=4}const c=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,c,a,0)}}),e.SelectAll=new class extends R{constructor(){super(a.tc)}runDOMCommand(e){n.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends b{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[l.MF.fromModelSelection(t.selection)]))}})}(w||(w={}));const L=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function T(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function x(e){return e.register(),e}var k;T(w.CursorColumnSelectLeft.id,1039),T(w.CursorColumnSelectRight.id,1041),T(w.CursorColumnSelectUp.id,1040),T(w.CursorColumnSelectPageUp.id,1035),T(w.CursorColumnSelectDown.id,1042),T(w.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditingCommand(t,s,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,E.AO.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends R{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().undo()}},e.Redo=new class extends R{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().redo()}}}(k||(k={}));class A extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(c.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function N(e,t){x(new A("default:"+e,e)),x(new A(e,e,t))}N("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N("replacePreviousChar"),N("compositionType"),N("compositionStart"),N("compositionEnd"),N("paste"),N("cut")},37035:(e,t,i)=>{e.exports=i(96409)},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>c,Q_:()=>d,VR:()=>o,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var s=i(78209),n=i(74027),r=(i(4853),i(79400));const o=(0,i(63591).u1)("contextService");function a(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.uri)}function c(e){const t=e;return"string"===typeof t?.id&&!a(e)&&!function(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.configPath)}(e)}const l={id:"ext-dev"},h={id:"empty-window"};function d(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,n.P8)(e)}:t?l:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{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}}}const g="code-workspace",p=((0,s.kg)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},37301:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{name:"microsecond",divisor:1e6},{name:"second",divisor:60},{name:"minute",divisor:60},{name:"hour",divisor:24},{name:"day"}];function s(i){const s=Number(i.$value)<0?"-":"";let n=Math.abs(i.$value);if(0===n)return"0";return s+t.map((function(e){let t=n;return e.divisor?(t=n%e.divisor,n=Math.floor(n/e.divisor)):(t=n,n=0),[t,e.name]})).reverse().filter((function(e){return e[0]>0})).map((function(t){const i=t[0],s=i>1?"s":"";return i+e.NON_BREAKING_WHITESPACE+t[1]+s})).join(e.WHITESPACE)}return s.isScalar=!0,s}},37403:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(1019),n=i(34132),r=i(34420),o="json";function a(e){return String(e.$value)}const c={};function l(e,i,s){const n=e.$type?.startsWith("yql.pg")?"yql.pg":e.$type,r=Object.prototype.hasOwnProperty.call(c,n)?c[n]:a,o=r(e,i,s),l=r.isScalar?t.wrapScalar(e,i,o):t.wrapComplex(e,i,o);return t.wrapOptional(e,i,l)}function h(e,t,i){return l({$type:"string",$special_key:!0,$value:e,$decoded_value:e},t,i)}function d(e,i,s){let n="";const r=e.$attributes,a=r.length;return t.drawFullView(a,i)?(n+=t.getAttributesStart(i)+t.getIndent(i,s),n+=p(r,i,s),n+=t.getIndent(i,s-1)+t.getAttributesEnd(i)+t.getIndent(i,s-1)):t.drawCompactView(a,i)?(n+=t.getAttributesStart(i),n+=p(r,i,s-1),n+=t.getAttributesEnd(i)+(i.format===o?t.getIndent(i,s-1):"")):n+=t.getAttributesStart(i)+t.getAttributesEnd(i),n}function u(e){return Object.prototype.hasOwnProperty.call(e,"$attributes")&&e.$attributes.length>0}const g=function(e,i,s){s=s||1;let n="";return i.format===o?u(e)?(n+=t.OBJECT_START+t.getIndent(i,s),n+=h("$attributes",i,s)+t.getKeyValueSeparator(i),n+=d(e,i,s+1),n+=h("$value",i,s)+t.getKeyValueSeparator(i),n+=l(e,i,s+1),n+=t.getIndent(i,s-1)+t.OBJECT_END):n+=l(e,i,s):"yson"===i.format&&(u(e)&&(n+=d(e,i,s)),n+=l(e,i,s)),n},p=i(83823)(g);function m(e,i,s){return"undefined"===typeof e?t.EMPTY_STRING:(s=s||function(e){return e},(i=i||{}).format=t.parseSetting(i,"format",o),i.decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),i.showDecoded=t.parseSetting(i,"showDecoded",!0),i.asHTML=t.parseSetting(i,"asHTML",!0),i.indent=t.parseSetting(i,"indent",4),i.break=t.parseSetting(i,"break",!0),i.compact=t.parseSetting(i,"compact",!1),i.binaryAsHex=t.parseSetting(i,"binaryAsHex",!0),i.escapeWhitespace=t.parseSetting(i,"escapeWhitespace",!0),i.highlightControlCharacter=t.parseSetting(i,"highlightControlCharacter",!1),i.escapeYQLStrings=t.parseSetting(i,"escapeYQLStrings",!0),i.nonBreakingIndent=t.parseSetting(i,"nonBreakingIndent",!0),i.treatValAsData=t.parseSetting(i,"treatValAsData",!1),i.validateSrcUrl=t.parseSetting(i,"validateSrcUrl",(()=>!1)),i.normalizeUrl=t.parseSetting(i,"normalizeUrl",(e=>encodeURI(e))),g(s(e,i),i))}c.list=i(34529)(g),c.map=i(8603)(g),c.string=i(88608)(g),c.number=i(94484)(g),c.int64=i(64066)(g),c.uint64=i(2539)(g),c.double=i(66668)(g),c.boolean=i(50629)(g),c.null=i(17184)(g),c.tagged=i(57233)(g),c["yql.list"]=i(56976)(g),c["yql.stream"]=i(89896)(g),c["yql.tuple"]=i(21152)(g),c["yql.struct"]=i(23157)(g),c["yql.dict"]=i(9208)(g),c["yql.string"]=i(96409)(g),c["yql.utf8"]=i(37035)(g),c["yql.int64"]=i(38785)(g),c["yql.int8"]=c["yql.int64"],c["yql.int16"]=c["yql.int64"],c["yql.int32"]=c["yql.int64"],c["yql.uint64"]=i(10602)(g),c["yql.uint8"]=c["yql.uint64"],c["yql.uint16"]=c["yql.uint64"],c["yql.uint32"]=c["yql.uint64"],c["yql.double"]=i(21377)(g),c["yql.float"]=c["yql.double"],c["yql.decimal"]=i(46133)(g),c["yql.bool"]=i(43932)(g),c["yql.date"]=i(84316)(g),c["yql.date32"]=c["yql.date"],c["yql.datetime"]=i(20897)(g),c["yql.datetime64"]=c["yql.datetime"],c["yql.timestamp"]=i(75162)(g),c["yql.timestamp64"]=c["yql.timestamp"],c["yql.tzdate"]=i(29818)(g),c["yql.tzdate32"]=i(29818)(g),c["yql.tzdatetime"]=i(93599)(g),c["yql.tzdatetime64"]=i(93599)(g),c["yql.tztimestamp"]=i(79928)(g),c["yql.tztimestamp64"]=i(79928)(g),c["yql.interval"]=i(37301)(g),c["yql.interval64"]=c["yql.interval"],c["yql.uuid"]=i(25783)(g),c["yql.null"]=i(80449)(g),c["yql.variant"]=i(10411)(g),c["yql.enum"]=i(36317)(g),c["yql.set"]=i(35762)(g),c["yql.json"]=i(92778)(g),c["yql.yson"]=i(41893)(g),c["yql.tagged"]=i(74688)(g),c["yql.pg"]=i(14853)(g),e.exports={format:m,formatFromYSON:function(e,t){return m(e,t,s)},formatFromYQL:function(e,t){return m(e,t,n)},formatRaw:function(e,t){return(t=t||{}).format="json",t.showDecoded=!1,t.compact=!1,t.escapeWhitespace=!0,m(e,t,r)},formatAttributes:d,formatKey:h,formatValue:l}}()},37472:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>d,iZ:()=>h});var s=i(84565),n=i(25890),r=i(90766),o=i(44759),a=i(83993),c=i(41234),l=i(42522);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function d(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i,s={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new c.at,this._onDidChangeCollapseState=new c.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new c.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new c.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new r.ve(o.h),this.collapseByDefault="undefined"!==typeof s.collapseByDefault&&s.collapseByDefault,this.allowNonCollapsibleParents=s.allowNonCollapsibleParents??!1,this.filter=s.filter,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=l.f.empty(),n={}){if(0===e.length)throw new s.jh(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,s=l.f.empty(),n,r=n.diffDepth??0){const{parentNode:o}=this.getParentNodeWithListIndex(t);if(!o.lastDiffIds)return this.spliceSimple(t,i,s,n);const c=[...s],h=t[t.length-1],d=new a.uP({getElements:()=>o.lastDiffIds},{getElements:()=>[...o.children.slice(0,h),...c,...o.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return o.lastDiffIds=void 0,this.spliceSimple(t,i,c,n);const u=t.slice(0,-1),g=(t,i,s)=>{if(r>0)for(let o=0;o<s;o++)t--,i--,this.spliceSmart(e,[...u,t,0],Number.MAX_SAFE_INTEGER,c[i].children,n,r-1)};let p=Math.min(o.children.length,h+i),m=c.length;for(const a of d.changes.sort(((e,t)=>t.originalStart-e.originalStart)))g(p,m,p-(a.originalStart+a.originalLength)),p=a.originalStart,m=a.modifiedStart-h,this.spliceSimple([...u,p],a.originalLength,l.f.slice(c,m,m+a.modifiedLength),n);g(p,m,p)}spliceSimple(e,t,i=l.f.empty(),{onDidCreateNode:s,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:a,listIndex:c,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),u=[],g=l.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,s))),p=e[e.length-1];let m=0;for(let n=p;n>=0&&n<a.children.length;n--){const e=a.children[n];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const n of g)f.push(n),v+=n.renderNodeCount,n.visible&&(n.visibleChildIndex=m+_++);const C=(0,n.V4)(a.children,p,t,f);o?a.lastDiffIds?(0,n.V4)(a.lastDiffIds,p,t,f.map((e=>o.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>o.getId(e.element).toString())):a.lastDiffIds=void 0;let E=0;for(const n of C)n.visible&&E++;if(0!==E)for(let n=p+f.length;n<a.children.length;n++){const e=a.children[n];e.visible&&(e.visibleChildIndex-=E)}if(a.visibleChildrenCount+=_-E,h&&d){const e=C.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(c,e,u)}if(C.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};C.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:C});let b=a;for(;b;){if(2===b.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}b=b.parent}}rerender(e){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:s}=this.getTreeNodeWithListIndex(e);return i&&s?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const s={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const s=this.getTreeNode(e);"undefined"===typeof t&&(t=!s.collapsed);const n={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}_setCollapseState(e,t){const{node:i,listIndex:s,revealed:n}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,s,n,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let s=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(s>-1){s=-1;break}s=e}}s>-1&&this._setCollapseState([...e,s],t)}return r}_setListNodeCollapseState(e,t,i,s){const n=this._setNodeCollapseState(e,s,!1);if(!i||!e.visible||!n)return n;const r=e.renderNodeCount,o=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,o.slice(1)),n}_setNodeCollapseState(e,t,i){let s;if(e===this.root?s=!1:(u(t)?(s=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(s=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):s=!1,s&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const n of e.children)s=this._setNodeCollapseState(n,t,!0)||s;return s}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(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,s,n,r){const o={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(o,i);o.visibility=a,s&&n.push(o);const c=e.children||l.f.empty(),h=s&&0!==a&&!o.collapsed;let d=0,u=1;for(const l of c){const e=this.createTreeNode(l,o,a,h,n,r);o.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return this.allowNonCollapsibleParents||(o.collapsible=o.collapsible||o.children.length>0),o.visibleChildrenCount=d,o.visible=2===a?d>0:1===a,o.visible?o.collapsed||(o.renderNodeCount=u):(o.renderNodeCount=0,s&&n.pop()),r?.(o),o}updateNodeAfterCollapseChange(e){const 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(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,s=!0){let n;if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let o=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)o=this._updateNodeAfterFilterChange(r,n,i,s&&!e.collapsed)||o,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?o:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,s&&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){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,d(i.visibility)):(e.filterData=void 0,d(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...s]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(s,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new s.jh(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};const{parentNode:t,listIndex:i,revealed:n,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");const a=t.children[o];return{node:a,listIndex:i,revealed:n,visible:r&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,r=!0){const[o,...a]=e;if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");for(let s=0;s<o;s++)i+=t.children[s].renderNodeCount;return n=n&&!t.collapsed,r=r&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:n,visible:r}:this.getParentNodeWithListIndex(a,t.children[o],i+1,n,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let 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,n.bS)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>l});var s=i(8597),n=i(48196),r=i(42904),o=i(20370),a=i(5662),c=i(10146);class l extends a.jG{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=t?.supportIcons??!1,this.domNode=s.BC(e,s.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){e||(e=""),s&&(e=l.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&c.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t<i.start){const s=this.text.substring(t,i.start);this.supportIcons?e.push(...(0,o.n)(s)):e.push(s),t=i.start}const n=this.text.substring(t,i.end),r=s.$("span.highlight",void 0,...this.supportIcons?(0,o.n)(n):[n]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){const i=this.text.substring(t);this.supportIcons?e.push(...(0,o.n)(i)):e.push(i)}if(s.Ln(this.domNode,...e),this.options?.hoverDelegate?.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=this.options?.hoverDelegate??(0,r.nZ)("mouse");this.customHover=this._register((0,n.i)().setupManagedHover(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,s=0;return e.replace(/\r\n|\r|\n/g,((e,n)=>{s="\r\n"===e?-1:0,n+=i;for(const i of t)i.end<=n||(i.start>=n&&(i.start+=s),i.end>=n&&(i.end+=s));return i+=s,"\u23ce"}))}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>C,dO:()=>m,i_:()=>p,nz:()=>l,wt:()=>g});var s=i(8597),n=i(34072),r=i(47358),o=i(90766),a=i(5662),c=i(66261);class l{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new l(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class d{constructor(e,t,i,s){this.x=e,this.y=t,this.width=i,this.height=s,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=s.BK(e);return new d(t.left,t.top,t.width,t.height)}function p(e,t,i){const s=t.width/e.offsetWidth,n=t.height/e.offsetHeight,r=(i.x-t.x)/s,o=(i.y-t.y)/n;return new u(r,o)}class m extends r.P{constructor(e,t,i){super(s.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new l(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return s.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return s.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return s.ko(e,s.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return s.ko(e,s.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return s.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return s.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return s.ko(e,s.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return s.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new n._),this._keydownListener=null}startMonitoring(e,t,i,n,r){this._keydownListener=s.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{n(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),r(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class C{static{this._idPool=0}constructor(e){this._editor=e,this._instanceId=++C._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new o.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new E(t,`dyn-rule-${this._instanceId}-${n}`,s.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}class E{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=s.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const s in t){const e=t[s];let n;n="object"===typeof e?(0,c.GuP)(e.id):e;i+=`\n\t${b(s)}: ${n};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function b(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>l,pS:()=>g,pz:()=>_,sA:()=>d});var s=i(26690),n=i(91508),r=i(25689);const o="$(",a=new RegExp(`\\$\\(${r.L.iconNameExpression}(?:${r.L.iconModifierExpression})?\\)`,"g"),c=new RegExp(`(\\\\)?${a.source}`,"g");function l(e){return e.replace(c,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function d(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(o)?e:e.replace(u,((e,t,i,s)=>i?e:t||s||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${r.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let s=0;for(;;){const n=m.lastIndex,r=m.exec(e),o=e.substring(n,r?.index);if(o.length>0){t+=o;for(let e=0;e<o.length;e++)i.push(s)}if(!r)break;s+=r[0].length}return{text:t,iconOffsets:i}}function _(e,t,i=!1){const{text:r,iconOffsets:o}=t;if(!o||0===o.length)return(0,s.yr)(e,r,i);const a=(0,n.NB)(r," "),c=r.length-a.length,l=(0,s.yr)(e,a,i);if(l)for(const s of l){const e=o[s.start+c]+c;s.start+=e,s.end+=e}return l}},37927:(e,t,i)=>{"use strict";i.d(t,{gi:()=>d});var s=i(41234),n=i(5662),r=i(98067);function o(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=o(e.event,t.triggerModifier),this.hasSideBySideModifier=o(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class c{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=o(e,t.triggerModifier)}}class l{constructor(e,t,i,s){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=s}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?r.zx?new l(57,"metaKey",6,"altKey"):new l(5,"ctrlKey",6,"altKey"):r.zx?new l(6,"altKey",57,"metaKey"):new l(6,"altKey",5,"ctrlKey")}class d extends n.jG{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new s.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new s.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new s.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(e=>e.target.position?e.target.position.lineNumber:0),this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new c(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new c(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},37954:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7692).then(i.bind(i,47692))})},38280:(e,t,i)=>{"use strict";i.d(t,{O:()=>P});var s=i(25890),n=i(5662),r=i(91508),o=i(7085),a=i(36677),c=i(75326),l=i(17469),h=i(87289),d=i(67841),u=i(37227),g=i(29319),p=i(79326),m=i(98067);function f(e,t=m.uF){return(0,p.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(74027),v=i(89403),C=i(58255),E=i(78209),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class y{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class w{constructor(e,t,i,s){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=s}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),s=(0,r.UU)(i,0,this._selection.startColumn-1);let n=s;e.snippet.walk((t=>t!==e&&(t instanceof g.EY&&(n=(0,r.UU)((0,r.uz)(t.value).pop())),!0)));const o=(0,r.Qp)(n,s);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${n.substr(o)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class R{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class L{constructor(e,t,i,s){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=s}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,r.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let T=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),s=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(s)return"LINE_COMMENT"===t?s.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?s.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&s.blockCommentEndToken||void 0}};T=b([S(2,l.JZ)],T);class x{constructor(){this._date=new Date}static{this.dayNames=[E.kg("Sunday","Sunday"),E.kg("Monday","Monday"),E.kg("Tuesday","Tuesday"),E.kg("Wednesday","Wednesday"),E.kg("Thursday","Thursday"),E.kg("Friday","Friday"),E.kg("Saturday","Saturday")]}static{this.dayNamesShort=[E.kg("SundayShort","Sun"),E.kg("MondayShort","Mon"),E.kg("TuesdayShort","Tue"),E.kg("WednesdayShort","Wed"),E.kg("ThursdayShort","Thu"),E.kg("FridayShort","Fri"),E.kg("SaturdayShort","Sat")]}static{this.monthNames=[E.kg("January","January"),E.kg("February","February"),E.kg("March","March"),E.kg("April","April"),E.kg("May","May"),E.kg("June","June"),E.kg("July","July"),E.kg("August","August"),E.kg("September","September"),E.kg("October","October"),E.kg("November","November"),E.kg("December","December")]}static{this.monthNamesShort=[E.kg("JanuaryShort","Jan"),E.kg("FebruaryShort","Feb"),E.kg("MarchShort","Mar"),E.kg("AprilShort","Apr"),E.kg("MayShort","May"),E.kg("JuneShort","Jun"),E.kg("JulyShort","Jul"),E.kg("AugustShort","Aug"),E.kg("SeptemberShort","Sep"),E.kg("OctoberShort","Oct"),E.kg("NovemberShort","Nov"),E.kg("DecemberShort","Dec")]}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return x.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return x.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return x.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return x.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),s=i<10?"0"+i:i,n=Math.abs(e)-60*i;return t+s+":"+(n<10?"0"+n:n)}}}class k{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.Q_)(this._workspaceService.getWorkspace());return(0,u.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.jB)(e))return _.P8(e.uri.path);let t=_.P8(e.configPath.path);return t.endsWith(u.kF)&&(t=t.substr(0,t.length-u.kF.length-1)),t}_resoveWorkspacePath(e){if((0,u.jB)(e))return f(e.uri.fsPath);const t=_.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class A{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,C.b)():void 0}}var N,I=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},O=function(e,t){return function(i,s){t(i,s,e)}};class D{static{this._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})}}constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,s.$z)(t.placeholders,g.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const s=this._snippet.offset(i),n=this._snippet.fullLen(i),r=a.Q.fromPositions(e.getPositionAt(this._offset+s),e.getPositionAt(this._offset+s+n)),o=i.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive,c=t.addDecoration(r,o);this._placeholderDecorations.set(i,c)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),s=this._editor.getModel().getDecorationRange(i),n=this._editor.getModel().getValueInRange(s),r=t.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<r.length;e++)r[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+r[e]);e.push(o.k.replace(s,r.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,s=[];for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const r=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(r);s.push(new c.L(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(n),e.changeDecorationOptions(r,n.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(n);for(const t of this._snippet.enclosingPlaceholders(n)){const s=this._placeholderDecorations.get(t);e.changeDecorationOptions(s,t.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive);return s}));return t?this.move(e):i??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const s of t){if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));const t=this._placeholderDecorations.get(s),n=this._editor.getModel().getDecorationRange(t);if(!n){e.delete(s.index);break}i.push(n)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!e?.choice)return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=e.shift();console.assert(-1!==n._offset),console.assert(!n._placeholderDecorations);const r=n._snippet.placeholderInfo.last.index;for(const e of n._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=s.index+(r+1)/this._nestingLevel:e.index=s.index+e.index/this._nestingLevel;this._snippet.replace(s,n._snippet.children);const o=this._placeholderDecorations.get(s);i.removeDecoration(o),this._placeholderDecorations.delete(s);for(const e of n._snippet.placeholders){const s=n._snippet.offset(e),r=n._snippet.fullLen(e),o=a.Q.fromPositions(t.getPositionAt(n._offset+s),t.getPositionAt(n._offset+s+r)),c=i.addDecoration(o,D._decor.inactive);this._placeholderDecorations.set(e,c)}}this._placeholderGroups=(0,s.$z)(this._snippet.placeholders,g.Or.compareByIndex)}))}}const M={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=N=class{static adjustWhitespace(e,t,i,s,n){const o=e.getLineContent(t.lineNumber),a=(0,r.UU)(o,0,t.column-1);let c;return s.walk((t=>{if(!(t instanceof g.EY)||t.parent instanceof g.GR)return!0;if(n&&!n.has(t))return!0;const r=t.value.split(/\r\n|\r|\n/);if(i){const i=s.offset(t);if(0===i)r[0]=e.normalizeIndentation(r[0]);else{c=c??s.toString();const t=c.charCodeAt(i-1);10!==t&&13!==t||(r[0]=e.normalizeIndentation(a+r[0]))}for(let t=1;t<r.length;t++)r[t]=e.normalizeIndentation(a+r[t])}const o=r.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new g.EY(o)]),c=void 0),!0})),a}static adjustSelection(e,t,i,s){if(0!==i||0!==s){const{positionLineNumber:n,positionColumn:r}=t,o=r-i,a=r+s,l=e.validateRange({startLineNumber:n,startColumn:o,endLineNumber:n,endColumn:a});t=c.L.createWithDirection(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,s,n,r,c,l,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.VR))),v=e.invokeWithinContext((e=>new R(e.get(d.L),f))),C=()=>c,E=f.getValueInRange(N.adjustSelection(f,e.getSelection(),i,0)),b=f.getValueInRange(N.adjustSelection(f,e.getSelection(),0,s)),S=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:d}of I){let c=N.adjustSelection(f,a,i,0),u=N.adjustSelection(f,a,0,s);E!==f.getValueInRange(c)&&(c=a),b!==f.getValueInRange(u)&&(u=a);const R=a.setStartPosition(c.startLineNumber,c.startColumn).setEndPosition(u.endLineNumber,u.endColumn),O=(new g.fr).parse(t,!0,n),M=R.getStartPosition(),P=N.adjustWhitespace(f,M,r||d>0&&S!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),O);O.resolveVariables(new y([v,new L(C,d,I.length,"spread"===e.getOption(79)),new w(f,a,d,l),new T(f,a,h),new x,new k(_),new A])),p[d]=o.k.replace(R,O.toString()),p[d].identifier={major:d,minor:0},p[d]._isTracked=!0,m[d]=new D(e,O,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,s,n,r,c){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const l=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new y([e.invokeWithinContext((e=>new R(e.get(d.L),h))),new L((()=>n),0,e.getSelections().length,"spread"===e.getOption(79)),new w(h,e.getSelection(),0,r),new T(h,e.getSelection(),c),new x,new k(e.invokeWithinContext((e=>e.get(u.VR)))),new A]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let d=0;d<t.length;d++){const{range:e,template:i}=t[d];if(d>0){const i=t[d-1].range,s=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),n=new g.EY(h.getValueInRange(s));m.appendChild(n),_+=n.value.length}const s=p.parseFragment(i,m);N.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(s)),m.resolveVariables(f);const n=m.toString(),r=n.slice(_);_=n.length;const c=o.k.replace(e,r);c.identifier={major:d,minor:0},c._isTracked=!0,l.push(c)}return p.ensureFinalTabstop(m,i,!0),{edits:l,snippets:[new D(e,m,"")]}}constructor(e,t,i=M,s){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=s,this._templateMerges=[],this._snippets=[]}dispose(){(0,n.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?N.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):N.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let s=0;s<t.length;s++)t[s].initialize(i[s].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>c.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=M){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:s}=N.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let n=0;n<s.length;n++)s[n].initialize(t[n].textChange);const i=s[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(s);console.assert(0===s.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>c.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const s=i.move(e);t.push(...s)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const s=i.computePossibleSelections();if(0===t.size)for(const[i,n]of s){n.sort(a.Q.compareRangesUsingStarts);for(const s of e)if(n[0].containsRange(s)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...s.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,s]of t)if(s.length===e.length){s.sort(a.Q.compareRangesUsingStarts);for(let n=0;n<s.length;n++)s[n].containsRange(e[n])||t.delete(i)}else t.delete(i);return t.size>0}};P=N=I([O(3,l.JZ)],P)},38320:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(3478).then(i.bind(i,73478))})},38566:(e,t,i)=>{"use strict";var s;i.d(t,{GB:()=>r,i3:()=>n,l:()=>s}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(s||(s={}));class n{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;const i=e.findTokenIndexAtOffset(t-2),s=e.getStandardTokenType(i);return this.isOK(s)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const 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 r{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)o(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),o(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),o(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),o(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&o(this.autoClosingPairsCloseSingleChar,t.close,t)}}function o(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>b});var s=i(31450),n=i(15092),r=i(87908),o=i(32799),a=i(97681),c=i(81782),l=i(83069),h=i(36677),d=i(75326),u=i(60002),g=i(17469),p=i(78209),m=i(253),f=i(32848),_=i(28290);class v extends s.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),n=t.getModel(),r=t.getSelections(),a=r.length>1,h=r.map((e=>{const t=new l.y(e.positionLineNumber,e.positionColumn),i=this._move(s,n,t,this._wordNavigationType,a);return this._moveTo(e,i,this._inSelectionMode)}));if(n.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,h.map((e=>o.MF.fromModelSelection(e)))),1===h.length){const e=new l.y(h[0].positionLineNumber,h[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new d.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class C extends v{_move(e,t,i,s,n){return a.z.moveWordLeft(e,t,i,s,n)}}class E extends v{_move(e,t,i,s,n){return a.z.moveWordRight(e,t,i,s)}}class b extends s.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const s=e.get(g.JZ);if(!t.hasModel())return;const r=(0,c.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),a=t.getSelections(),l=t.getOption(6),h=t.getOption(11),d=s.getLanguageConfiguration(o.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:r,model:o,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:l,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new n.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class S extends b{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class y extends b{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const s=e.model.getLineCount(),n=e.model.getLineMaxColumn(s);return new h.Q(s,n,s,n)}}class w extends s.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),r=t.getModel(),o=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(s,r,e);return new n.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,s.Fl)(w)},38785:(e,t,i)=>{e.exports=i(64066)},38844:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>l,jD:()=>d});var s=i(51241),n=i(5662),r=i(31308),o=i(49154),a=i(87958),c=i(75326);function l(e){return h.get(e)}class h extends n.jG{static{this._map=new Map}static get(e){let t=h._map.get(e);if(!t){t=new h(e),h._map.set(e,t);const i=e.onDidDispose((()=>{const t=h._map.get(e);t&&(h._map.delete(e),t.dispose(),i.dispose())}))}return t}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new o.XL((()=>{})))}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=(0,r.FY)(this,this.editor.getModel()),this.model=this._model,this.isReadonly=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(92))),this._versionId=(0,r.Zh)({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=(0,r.Zh)({owner:this,equalsFn:(0,s.KC)((0,s.S3)(c.L.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=(0,r.y0)(this,(e=>{const t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose()}}}),(()=>this.editor.hasWidgetFocus())),this.value=(0,a.dQ)(this,(e=>(this.versionId.read(e),this.model.read(e)?.getValue()??"")),((e,t)=>{const i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e)})),this.valueIsEmpty=(0,r.un)(this,(e=>(this.versionId.read(e),0===this.editor.getModel()?.getValueLength()))),this.cursorSelection=(0,r.C)({owner:this,equalsFn:(0,s.KC)(c.L.selectionsEqual)},(e=>this.selections.read(e)?.[0]??null)),this.onDidType=(0,r.Yd)(this),this.scrollTop=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollTop())),this.scrollLeft=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollLeft())),this.layoutInfo=(0,r.y0)(this.editor.onDidLayoutChange,(()=>this.editor.getLayoutInfo())),this.layoutInfoContentLeft=this.layoutInfo.map((e=>e.contentLeft)),this.layoutInfoDecorationsLeft=this.layoutInfo.map((e=>e.decorationsLeft)),this.contentWidth=(0,r.y0)(this.editor.onDidContentSizeChange,(()=>this.editor.getContentWidth())),this._overlayWidgetCounter=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.onDidChangeModelContent((e=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??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()}})))}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction)}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return(0,r.y0)(this,(t=>this.editor.onDidChangeConfiguration((i=>{i.hasChanged(e)&&t(void 0)}))),(()=>this.editor.getOption(e)))}setDecorations(e){const t=new n.Cm,i=this.editor.createDecorationsCollection();return t.add((0,r.zL)({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},(t=>{const s=e.read(t);i.set(s)}))),t.add({dispose:()=>{i.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const s=(0,r.fm)((t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i)}));return(0,n.s)((()=>{s.dispose(),this.editor.removeOverlayWidget(i)}))}}function d(e,t){return(0,r.ht)({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}},((i,s)=>{const n=e.read(i);s.didChange&&t(n,s.deltas)}))}function u(e,t){const i=new n.Cm,s=d(e,((e,s)=>{i.clear(),t(e,s,i)}));return{dispose(){s.dispose(),i.dispose()}}}},39286:(e,t,i)=>{"use strict";i.d(t,{n:()=>o});var s=i(58925),n=i(83069),r=i(36677);class o{async provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t);const n=new Map;await new Promise((t=>o._bracketsRightYield(t,0,e,s,n))),await new Promise((i=>o._bracketsLeftYield(i,0,e,s,n,t)))}return i}static{this._maxDuration=30}static{this._maxRounds=2}static _bracketsRightYield(e,t,i,n,r){const a=new Map,c=Date.now();for(;;){if(t>=o._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-c>o._maxDuration){setTimeout((()=>o._bracketsRightYield(e,t+1,i,n,r)));break}if(l.bracketInfo.isOpeningBracket){const e=l.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=l.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=r.get(e);t||(t=new s.w,r.set(e,t)),t.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,a){const c=new Map,l=Date.now();for(;;){if(t>=o._maxRounds&&0===n.size){e();break}if(!s){e();break}const h=i.bracketPairs.findPrevBracket(s);if(!h){e();break}if(Date.now()-l>o._maxDuration){setTimeout((()=>o._bracketsLeftYield(e,t+1,i,s,n,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=c.has(e)?c.get(e):0;if(t-=1,c.set(e,Math.max(0,t)),t<0){const t=n.get(e);if(t){const s=t.shift();0===t.size&&n.delete(e);const c=r.Q.fromPositions(h.range.getEndPosition(),s.getStartPosition()),l=r.Q.fromPositions(h.range.getStartPosition(),s.getEndPosition());a.push({range:c}),a.push({range:l}),o._addBracketLeading(i,l,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=c.has(e)?c.get(e):0;c.set(e,t+1)}s=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(s);0!==o&&o!==t.startColumn&&(i.push({range:r.Q.fromPositions(new n.y(s,o),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:r.Q.fromPositions(new n.y(a,s),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(a,1),t.getEndPosition())}))}}}},39439:(e,t,i)=>{var s=i(33157),n=i(90552);e.exports=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&n(e,t,i)&&(i=0,r=o),s(e,t,i,r)):[]}},39866:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(2372).then(i.bind(i,22372))})},40014:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>C});var s=i(27145),n=i(59284),r=i(8964),o=i(66643),a=i(42392);const c=()=>`ck.${((e,t)=>{let i="";for(let s=e;s>0;--s)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,l=n.memo;var h=i(82435);const d=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends n.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.iY.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,r.R)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):n.createElement("div",null,t)}return this.props.children}}var p=i(74417);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,s.Tt)(e,["renderPluginLoader"]);const r=null===t||void 0===t?void 0:t();return"undefined"!==typeof r?r:n.createElement("div",{className:m()},n.createElement(p.a,Object.assign({},i)))},_=d("chartkit"),v=e=>{const t=n.useRef(),{instanceRef:i,id:l,type:h,isMobile:d,renderPluginLoader:u}=e,g=(0,s.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=n.useMemo((()=>c()),[]),m=l||p,v=o.W.get("lang"),C=o.W.get("plugins").find((e=>e.type===h));if(!C)throw new a.R({code:a.iY.UNKNOWN_PLUGIN,message:(0,r.R)("error","label_unknown-plugin",{type:h})});const E=C.renderer;return n.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),n.createElement(n.Suspense,{fallback:n.createElement(f,{renderPluginLoader:u})},n.createElement("div",{className:_({mobile:d},"chartkit-theme_common")},n.createElement(E,Object.assign({ref:t,id:m,lang:v},g))))},C=l(n.forwardRef((function(e,t){return n.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},n.createElement(v,Object.assign({instanceRef:t},e)))})))},40142:(e,t,i)=>{"use strict";var s=i(24939),n=i(31450),r=i(36677),o=i(60002),a=i(17469),c=i(7085),l=i(83069),h=i(75326);class d{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const s=t.length;if(i+s>e.length)return!1;for(let n=0;n<s;n++){const s=e.charCodeAt(i+n),r=t.charCodeAt(n);if(s!==r&&(!(s>=65&&s<=90&&s+32===r)&&!(r>=65&&r<=90&&r+32===s)))return!1}return!0}_createOperationsForBlockComment(e,t,i,s,n,o){const a=e.startLineNumber,c=e.startColumn,l=e.endLineNumber,h=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(l);let p,m=u.lastIndexOf(t,c-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===l){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),s=g.substring(0,f);(e.indexOf(i)>=0||s.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(s&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),s&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=d._createRemoveBlockCommentOperations(new r.Q(a,m+t.length+1,l,f+1),t,i)):(p=d._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const r of p)o.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){const s=[];return r.Q.isEmpty(e)?s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(c.k.delete(new r.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),s}static _createAddBlockCommentOperations(e,t,i,s){const n=[];return r.Q.isEmpty(e)?n.push(c.k.replace(new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(n.push(c.k.insert(new l.y(e.startLineNumber,e.startColumn),t+(s?" ":""))),n.push(c.k.insert(new l.y(e.endLineNumber,e.endColumn),(s?" ":"")+i))),n}getEditOperations(e,t){const i=this._selection.startLineNumber,s=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const n=e.getLanguageIdAtPosition(i,s),r=this.languageConfigurationService.getLanguageConfiguration(n).comments;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(91508);class g{constructor(e,t,i,s,n,r,o){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=s,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,i,s){e.tokenization.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),r=s.getLanguageConfiguration(n).comments,o=r?r.lineCommentToken:null;if(!o)return null;const a=[];for(let c=0,l=i-t+1;c<l;c++)a[c]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return a}static _analyzeLines(e,t,i,s,n,r,o,a){let c,l=!0;c=0===e||1!==e;for(let h=0,g=s.length;h<g;h++){const a=s[h],g=n+h;if(g===n&&o){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.HG(p);if(-1!==m){if(l=!1,a.ignore=!1,a.commentStrOffset=m,c&&!d._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?c=!1:1===e||(a.ignore=!0)),c&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=r,a.commentStrOffset=p.length}if(0===e&&l){c=!1;for(let e=0,t=s.length;e<t;e++)s[e].ignore=!1}return{supported:!0,shouldRemoveComments:c,lines:s}}static _gatherPreflightData(e,t,i,s,n,r,o,a){const c=g._gatherPreflightCommentStrings(i,s,n,a);return null===c?{supported:!1}:g._analyzeLines(e,t,i,c,s,r,o,a)}_executeLineComments(e,t,i,s){let n;i.shouldRemoveComments?n=g._createRemoveLineCommentsOperations(i.lines,s.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,s.startLineNumber,this._indentSize),n=this._createAddLineCommentsOperations(i.lines,s.startLineNumber));const o=new l.y(s.positionLineNumber,s.positionColumn);for(let a=0,c=n.length;a<c;a++)if(t.addEditOperation(n[a].range,n[a].text),r.Q.isEmpty(n[a].range)&&r.Q.getStartPosition(n[a].range).equals(o)){e.getLineContent(o.lineNumber).length+1===o.column&&(this._deltaColumn=(n[a].text||"").length)}this._selectionId=t.trackSelection(s)}_attemptRemoveBlockComment(e,t,i,s){let n=t.startLineNumber,o=t.endLineNumber;const a=s.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let c=e.getLineContent(n).lastIndexOf(i,a-1),l=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return-1!==c&&-1===l&&(l=e.getLineContent(n).indexOf(s,c+i.length),o=n),-1===c&&-1!==l&&(c=e.getLineContent(o).lastIndexOf(i,l),n=o),!t.isEmpty()||-1!==c&&-1!==l||(c=e.getLineContent(n).indexOf(i),-1!==c&&(l=e.getLineContent(n).indexOf(s,c+i.length))),-1!==c&&32===e.getLineContent(n).charCodeAt(c+i.length)&&(i+=" "),-1!==l&&32===e.getLineContent(o).charCodeAt(l-1)&&(s=" "+s,l-=1),-1!==c&&-1!==l?d._createRemoveBlockCommentOperations(new r.Q(n,c+i.length+1,o,l+1),i,s):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const s=e.getLanguageIdAtPosition(i.startLineNumber,1),n=this.languageConfigurationService.getLanguageConfiguration(s).comments;if(!n||!n.blockCommentStartToken||!n.blockCommentEndToken)return;const o=n.blockCommentStartToken,a=n.blockCommentEndToken;let c=this._attemptRemoveBlockComment(e,i,o,a);if(!c){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let s=u.HG(t);-1===s&&(s=t.length),c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,s+1,i.startLineNumber,t.length+1),o,a,this._insertSpace)}else c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,a,this._insertSpace);1===c.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const r of c)t.addEditOperation(r.range,r.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new r.Q(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return s.supported?this._executeLineComments(e,t,s,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.L(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];n.ignore||i.push(c.k.delete(new r.Q(t+s,n.commentStrOffset+1,t+s,n.commentStrOffset+n.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],s=this._insertSpace?" ":"";for(let n=0,r=e.length;n<r;n++){const r=e[n];r.ignore||i.push(c.k.insert(new l.y(t+n,r.commentStrOffset+1),r.commentStr+s))}return i}static nextVisibleColumn(e,t,i,s){return i?e+(t-e%t):e+s}static _normalizeInsertionPoint(e,t,i,s){let n,r,o=1073741824;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const n=e.getLineContent(i+a);let r=0;for(let e=0,i=t[a].commentStrOffset;r<o&&e<i;e++)r=g.nextVisibleColumn(r,s,9===n.charCodeAt(e),1);r<o&&(o=r)}o=Math.floor(o/s)*s;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const c=e.getLineContent(i+a);let l=0;for(n=0,r=t[a].commentStrOffset;l<o&&n<r;n++)l=g.nextVisibleColumn(l,s,9===c.charCodeAt(n),1);t[a].commentStrOffset=l>o?n-1:n}}}var p=i(78209),m=i(27195);class f extends n.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=[],n=t.getModel().getOptions(),o=t.getOption(23),c=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));c.sort(((e,t)=>r.Q.compareRangesUsingStarts(e.selection,t.selection)));let l=c[0];for(let r=1;r<c.length;r++){const e=c[r];l.selection.endLineNumber===e.selection.startLineNumber&&(l.index<e.index?e.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=e))}for(const r of c)s.push(new g(i,r.selection,n.indentSize,this._type,o.insertSpace,o.ignoreEmptyLines,r.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class _ extends n.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=t.getOption(23),n=[],r=t.getSelections();for(const o of r)n.push(new d(o,s.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}(0,n.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,n.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2081),weight:100}})}}),(0,n.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2099),weight:100}})}}),(0,n.Fl)(_)},40340:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(9010).then(i.bind(i,99010))})},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>c,Xw:()=>l,rh:()=>_,yF:()=>f});var s=i(64383),n=i(1245),r=i(19131),o=i(32956);class a{get length(){return this._length}constructor(e){this._length=e}}class c extends a{static create(e,t,i){let s=e.length;return t&&(s=(0,r.QB)(s,t.length)),i&&(s=(0,r.QB)(s,i.length)),new c(s,e,t,i,t?t.missingOpeningBracketIds:o.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,s,n){super(e),this.openingBracket=t,this.child=i,this.closingBracket=s,this.missingOpeningBracketIds=n}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new c(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,r.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class l extends a{static create23(e,t,i,s=!1){let n=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(n=(0,r.QB)(n,t.length),o=o.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");n=(0,r.QB)(n,i.length),o=o.merge(i.missingOpeningBracketIds)}return s?new d(n,e.listHeight+1,e,t,i,o):new h(n,e.listHeight+1,e,t,i,o)}static getEmpty(){return new g(r.Vp,0,[],o.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new s.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let s=1;s<e;s++){const e=this.getChild(s);t=(0,r.QB)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,s=e;for(let n=0;n<this.childrenLength;n++){const e=this.getChild(n);e&&(i=Math.min(i,e.computeMinIndentation(s,t)),s=(0,r.QB)(s,e.length))}return this.cachedMinIndentation=i,i}}class h extends l{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,s,n,r){super(e,t,r),this._item1=i,this._item2=s,this._item3=n}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class d extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends l{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,s){super(e,t,s),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return o.gV.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,r.l4)(e),s=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,o=(0,r.eu)((0,r.QB)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let r=s;r<=o;r++){const e=t.getLineFirstNonWhitespaceColumn(r),i=t.getLineContent(r);if(0===e)continue;const s=n.A.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,s)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return o.gV.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},40677:(e,t,i)=>{"use strict";var s=i(31450),n=i(10350),r=i(31308),o=i(49154),a=i(29163),c=i(60002),l=i(78209),h=i(32848);const d=new h.N1("inlineEditsVisible",!1,(0,l.kg)("inlineEditsVisible","Whether an inline edit is visible")),u=new h.N1("inlineEditsIsPinned",!1,(0,l.kg)("isPinned","Whether an inline edit is visible"));var g=i(5662),p=i(87958),m=i(38844),f=i(41127),_=i(75326),v=i(32500),C=i(56942),E=i(90766),b=i(18447),S=i(51241),y=i(64383),w=i(79400),R=i(94746),L=i(86571),T=i(62083),x=i(23750),k=i(20940),A=i(8597),N=i(49435),I=i(10691),O=i(92368),D=i(83941),M=i(87289),P=i(18864),F=i(1098),U=i(90870),H=i(63591),B=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},W=function(e,t){return function(i,s){t(i,s,e)}};class V{constructor(e,t,i){this.range=e,this.newLines=t,this.changes=i}}let z=class extends g.jG{constructor(e,t,i,n){super(),this._editor=e,this._edit=t,this._userPrompt=i,this._instantiationService=n,this._editorObs=(0,m.Ud)(this._editor),this._elements=(0,A.h)("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[(0,A.h)("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[(0,A.h)("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),(0,A.h)("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),(0,A.h)("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),(0,A.Mc)("svg",{style:{overflow:"visible",pointerEvents:"none"}},[(0,A.Mc)("defs",[(0,A.Mc)("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[(0,A.Mc)("stop",{offset:"0%",class:"gradient-stop"}),(0,A.Mc)("stop",{offset:"100%",class:"gradient-stop"})])]),(0,A.Mc)("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,r.un)((e=>{const t=this._edit.read(e);t&&this._previewTextModel.setValue(t.newLines.join("\n"))})).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:N.z},{contributions:s.dS.getSomeEditorContributions([U.D.ID,F.X.ID,P.d.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=(0,m.Ud)(this._previewEditor),this._decorations=(0,r.un)(this,(e=>{this._setText.read(e);const t=this._edit.read(e)?.changes;if(!t)return[];const i=[],s=[];if(1===t.length&&t[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const n of t)if(n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.Ob}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Kl}),n.modified.isEmpty||n.original.isEmpty)n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.KL}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Ou});else for(const e of n.innerChanges||[])n.original.contains(e.originalRange.startLineNumber)&&i.push({range:e.originalRange,options:e.originalRange.isEmpty()?I.wp:I.Zb}),n.modified.contains(e.modifiedRange.startLineNumber)&&s.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?I.GM:I.bk});return s})),this._layout1=(0,r.un)(this,(e=>{const t=this._editor.getModel(),i=this._edit.read(e);if(!i)return null;const s=i.range;let n=0;for(let r=s.startLineNumber;r<s.endLineNumberExclusive;r++){const e=t.getLineMaxColumn(r),i=this._editor.getOffsetForColumn(r,e);n=Math.max(n,i)}return{left:this._editor.getLayoutInfo().contentLeft+n}})),this._layout=(0,r.un)(this,(e=>{const t=this._edit.read(e);if(!t)return null;const i=t.range,s=this._editorObs.scrollLeft.read(e),n=this._layout1.read(e).left+20-s,r=this._editor.getTopForLineNumber(i.startLineNumber)-this._editorObs.scrollTop.read(e),o=this._editor.getTopForLineNumber(i.endLineNumberExclusive)-this._editorObs.scrollTop.read(e),a=new G(n,r),c=new G(n,o),l=o-r,h=this._editor.getOption(67)*t.newLines.length,d=l-h;return{topCode:a,bottomCode:c,codeHeight:l,topEdit:new G(n+50,r+d/2),bottomEdit:new G(n+50,o-d/2),editHeight:h}}));const o=(0,r.un)(this,(e=>void 0!==this._edit.read(e)||void 0!==this._userPrompt.read(e)));var c,l,h;this._register((0,O.AV)(this._elements.root,{display:(0,r.un)(this,(e=>o.read(e)?"block":"none"))})),this._register((0,O.rX)(this._editor.getDomNode(),this._elements.root)),this._register((0,m.Ud)(e).createOverlayWidget({domNode:this._elements.root,position:(0,r.lk)(null),allowEditorOverflow:!1,minContentWidthInPx:(0,r.un)((e=>{const t=this._layout1.read(e)?.left;if(void 0===t)return 0;return t+this._previewEditorObs.contentWidth.read(e)}))})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register((0,r.fm)((e=>{const t=this._layout.read(e);if(!t)return;const{topCode:i,bottomCode:s,topEdit:n,bottomEdit:r,editHeight:o}=t,a=(new j).moveTo(i).lineTo(i.deltaX(10)).curveTo(i.deltaX(50),n.deltaX(-40),n.deltaX(-0)).lineTo(n).lineTo(r).lineTo(r.deltaX(-0)).curveTo(r.deltaX(-40),s.deltaX(50),s.deltaX(10)).lineTo(s).build();this._elements.path.setAttribute("d",a),this._elements.editorContainer.style.top=`${n.y}px`,this._elements.editorContainer.style.left=`${n.x}px`,this._elements.editorContainer.style.height=`${o}px`;const c=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:o,width:c})}))),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(function(e,t){const i=new g.Cm;return i.add((0,r.fm)((i=>{const s=e.read(i);t.set(s,void 0)}))),i.add((0,r.fm)((i=>{const s=t.read(i);e.set(s,void 0)}))),i}((c=this._userPrompt,l=e=>e??"",h=e=>e,(0,p.dQ)(void 0,(e=>l(c.read(e))),((e,t)=>c.set(h(e),t)))),(0,m.Ud)(this._promptEditor).value)),this._register((0,r.fm)((e=>{const t=(0,m.Ud)(this._promptEditor).isFocused.read(e);this._elements.root.classList.toggle("focused",t)})))}};z=B([W(3,H._Y)],z);class G{constructor(e,t){this.x=e,this.y=t}deltaX(e){return new G(this.x+e,this.y)}}class j{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,i){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${i.x} ${i.y} `,this}build(){return this._data}}var K,Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};let $=class extends g.jG{static{K=this}static{this._modelId=0}static _createUniqueUri(){return w.r.from({scheme:"inline-edits",path:(new Date).toString()+String(K._modelId++)})}constructor(e,t,i,s,n,o,a){super(),this.textModel=e,this._textModelVersionId=t,this._selection=i,this._debounceValue=s,this.languageFeaturesService=n,this._diffProviderFactoryService=o,this._modelService=a,this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._isActive=(0,r.FY)(this,!1),this._originalModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._pinnedRange=new X(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map((e=>!!e)),this.userPrompt=(0,r.FY)(this,void 0),this.inlineEdit=(0,r.un)(this,(e=>this._inlineEdit.read(e)?.promiseResult.read(e)?.data)),this._inlineEdit=(0,r.un)(this,(e=>{const t=this.selectedInlineEdit.read(e);if(!t)return;const i=t.inlineCompletion.range;if(""===t.inlineCompletion.insertText.trim())return;let s=t.inlineCompletion.insertText.split(/\r\n|\r|\n/);function n(e){const t=e[0].match(/^\s*/)?.[0]??"";return e.map((e=>e.replace(new RegExp("^"+t),"")))}s=n(s);let o=this.textModel.getValueInRange(i).split(/\r\n|\r|\n/);o=n(o),this._originalModel.get().setValue(o.join("\n")),this._modifiedModel.get().setValue(s.join("\n"));const a=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return r.BK.fromFn((async()=>{const e=await a.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},b.XO.None);if(!e.identical)return new V(L.M.fromRangeInclusive(i),n(s),e.changes)}))})),this._fetchStore=this._register(new g.Cm),this._inlineEditsFetchResult=(0,r.X2)(this,void 0),this._inlineEdits=(0,r.C)({owner:this,equalsFn:S.dB},(e=>this._inlineEditsFetchResult.read(e)?.completions.map((e=>new Q(e)))??[])),this._fetchInlineEditsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:T.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=T.qw.Explicit),!0)},(async(e,t)=>{this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(e),this._textModelVersionId.read(e);const i=this._pinnedRange.range.read(e)??(s=this._selection.read(e),(e=>e.isEmpty()?void 0:e)(s));var s;if(!i)return this._inlineEditsFetchResult.set(void 0,void 0),void this.userPrompt.set(void 0,void 0);const n={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(e)},r=(0,b.bs)(this._fetchStore);await(0,E.wR)(200,r);const o=await(0,k.Yk)(this.languageFeaturesService.inlineCompletionsProvider,i,this.textModel,n,r);r.isCancellationRequested||this._inlineEditsFetchResult.set(o,void 0)})),this._filteredInlineEditItems=(0,r.C)({owner:this,equalsFn:(0,S.S3)()},(e=>this._inlineEdits.read(e))),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineEditItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineEdit=(0,r.un)(this,(e=>this._filteredInlineEditItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this._register((0,r.OI)(this._fetchInlineEditsPromise))}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineEditsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this.userPrompt.set(void 0,e),this._isActive.set(!1,e),this._inlineEditsFetchResult.set(void 0,e),this._pinnedRange.setRange(void 0,e)}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineEditItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new y.D7;const t=this.selectedInlineEdit.get();t&&(e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[t.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}};$=K=Y([q(4,C.ILanguageFeaturesService),q(5,R.Hg),q(6,x.IModelService)],$);class Q{constructor(e){this.inlineCompletion=e,this.semanticId=this.inlineCompletion.hash()}}class X extends g.jG{constructor(e,t){super(),this._textModel=e,this._versionId=t,this._decorations=(0,r.FY)(this,[]),this.range=(0,r.un)(this,(e=>{this._versionId.read(e);const t=this._decorations.read(e)[0];return t?this._textModel.getDecorationRange(t)??null:null})),this._register((0,g.s)((()=>{this._textModel.deltaDecorations(this._decorations.get(),[])})))}setRange(e,t){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),e?[{range:e,options:{description:"trackedRange"}}]:[]),t)}}var Z,J=i(84001),ee=i(71319),te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};let se=class extends g.jG{static{Z=this}static{this.ID="editor.contrib.inlineEditsController"}static get(e){return e.getContribution(Z.ID)}constructor(e,t,i,s,n,o){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._debounceService=s,this._languageFeaturesService=n,this._configurationService=o,this._enabled=(0,ee.V)("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=(0,m.Ud)(this.editor),this._selection=(0,r.un)(this,(e=>this._editorObs.cursorSelection.read(e)??new _.L(1,1,1,1))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=(0,p.a0)(this,(e=>{if(!this._enabled.read(e))return;if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance((0,f.b)($,e),t,this._editorObs.versionId,this._selection,this._debounceValue)})),this._hadInlineEdit=(0,r.ZX)(this,((e,t)=>t||void 0!==this.model.read(e)?.inlineEdit.read(e))),this._widget=(0,p.a0)(this,(e=>{var t;if(this._hadInlineEdit.read(e))return this._instantiationService.createInstance((0,f.b)(z,e),this.editor,this.model.map(((e,t)=>e?.inlineEdit.read(t))),(t=e=>this.model.read(e)?.userPrompt??(0,r.FY)("empty",""),(0,p.dQ)(void 0,(e=>t(e).read(e)),((e,i)=>{t(void 0).set(e,i)}))))})),this._register((0,ee.w)(d,this._contextKeyService,(e=>!!this.model.read(e)?.inlineEdit.read(e)))),this._register((0,ee.w)(u,this._contextKeyService,(e=>!!this.model.read(e)?.isPinned.read(e)))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}};se=Z=te([ie(1,H._Y),ie(2,h.fN),ie(3,v.ILanguageFeatureDebounceService),ie(4,C.ILanguageFeaturesService),ie(5,J.pG)],se);var ne=i(27195);function re(e){return{label:e.value,alias:e.original}}class oe extends s.ks{static{this.ID="editor.action.inlineEdits.showNext"}constructor(){super({id:oe.ID,...re(l.aS("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=se.get(t);i?.model.get()?.next()}}class ae extends s.ks{static{this.ID="editor.action.inlineEdits.showPrevious"}constructor(){super({id:ae.ID,...re(l.aS("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=se.get(t);i?.model.get()?.previous()}}class ce extends s.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...re(l.aS("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:c.R.writable})}async run(e,t){const i=se.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e))}))}}class le extends s.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...re(l.aS("action.inlineEdits.accept","Accept Inline Edit")),precondition:d,menuOpts:{menuId:ne.D8.InlineEditsActions,title:l.kg("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:n.W.check},kbOpts:{primary:2058,weight:2e4,kbExpr:d}})}async run(e,t){t instanceof a.t&&(t=t.getParentEditor());const i=se.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class he extends s.ks{static{this.ID="editor.action.inlineEdits.hide"}constructor(){super({id:he.ID,...re(l.aS("action.inlineEdits.hide","Hide Inline Edit")),precondition:d,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=se.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}(0,s.HW)(se.ID,se,3),(0,s.Fl)(ce),(0,s.Fl)(oe),(0,s.Fl)(ae),(0,s.Fl)(le),(0,s.Fl)(he)},40800:(e,t,i)=>{"use strict";var s=i(25890),n=i(31308),r=i(34309),o=i(92368),a=i(56942),c=i(29999),l=i(5662),h=i(41234),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends l.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,n.FY)(this,void 0);const s=(0,n.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),r=(0,n.yQ)("_textModel.onDidChangeContent",h.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,n.yC)((async(e,t)=>{s.read(e),r.read(e);const i=t.add(new o.MZ),n=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(n,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return n.sort((0,s.Hw)((0,s.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),s.U9))),n.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=d([u(1,a.ILanguageFeaturesService),u(2,c.gW)],g),r.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},41127:(e,t,i)=>{"use strict";i.d(t,{b:()=>r});var s=i(30076),n=i(31308);function r(e,t){return function(e,t){if((0,s.e)()){(0,n.yQ)("reload",(t=>(0,s.O)((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>c,QT:()=>b,Qy:()=>_,Wj:()=>w,_B:()=>S,at:()=>y,fV:()=>C,uI:()=>E,vl:()=>f});var s=i(64383),n=i(6921),r=i(5662),o=i(58925),a=i(78381);var c;!function(e){function t(e){false}function i(e){return(t,i=null,s)=>{let n,r=!1;return n=e((e=>{if(!r)return n?n.dispose():r=!0,t.call(i,e)}),null,s),r&&n.dispose(),n}}function s(e,t,i){return o(((i,s=null,n)=>e((e=>i.call(s,t(e))),null,n)),i)}function n(e,t,i){return o(((i,s=null,n)=>e((e=>t(e)&&i.call(s,e)),null,n)),i)}function o(e,i){let s;const n={onWillAddFirstListener(){s=e(r.fire,r)},onDidRemoveLastListener(){s?.dispose()}};i||t();const r=new f(n);return i?.add(r),r.event}function a(e,i,s=100,n=!1,r=!1,o,a){let c,l,h,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){c=e((e=>{u++,l=i(l,e),n&&!h&&(p.fire(l),l=void 0),d=()=>{const e=l;l=void 0,h=void 0,(!n||u>1)&&p.fire(e),u=0},"number"===typeof s?(clearTimeout(h),h=setTimeout(d,s)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){r&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,c.dispose()}};a||t();const p=new f(g);return a?.add(p),p.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.onceIf=function(t,i){return e.once(e.filter(t,i))},e.map=s,e.forEach=function(e,t,i){return o(((i,s=null,n)=>e((e=>{t(e),i.call(s,e)}),null,n)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,s)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(i,e)))))),s)},e.reduce=function(e,t,i,n){let r=i;return s(e,(e=>(r=t(r,e),r)),n)},e.debounce=a,e.accumulate=function(t,i=0,s){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,s)},e.latch=function(e,t=(e,t)=>e===t,i){let s,r=!0;return n(e,(e=>{const i=r||!t(e,s);return r=!1,s=e,i}),i)},e.split=function(t,i,s){return[e.filter(t,i,s),e.filter(t,(e=>!i(e)),s)]},e.buffer=function(e,t=!1,i=[],s){let n=i.slice(),r=e((e=>{n?n.push(e):a.fire(e)}));s&&s.add(r);const o=()=>{n?.forEach((e=>a.fire(e))),n=null},a=new f({onWillAddFirstListener(){r||(r=e((e=>a.fire(e))),s&&s.add(r))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s&&s.add(a),a.event},e.chain=function(e,t){return(i,s,n)=>{const r=t(new l);return e((function(e){const t=r.evaluate(e);t!==c&&i.call(s,t)}),void 0,n)}};const c=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:c)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push((s=>{const n=i||!e(s,t);return i=!1,t=s,n?s:c})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===c)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.on(t,s),onDidRemoveLastListener:()=>e.removeListener(t,s)});return n.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.addEventListener(t,s),onDidRemoveLastListener:()=>e.removeEventListener(t,s)});return n.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const s={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(),this.emitter=new f(s),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,s)=>{let n=0,o=!1;const a={beginUpdate(){n++},endUpdate(){n--,0===n&&(e.reportChanges(),o&&(o=!1,t.call(i)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const c={dispose(){e.removeObserver(a)}};return s instanceof r.Cm?s.add(c):Array.isArray(s)&&s.push(c),c}}}(c||(c={}));class l{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${l._idPool++}`,l.all.add(this)}start(e){this._stopWatch=new a.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class h{static{this._idPool=1}constructor(e,t,i=(h._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;const[e,s]=this.getMostFrequentStack(),n=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${s}):`;console.warn(n),console.warn(e);const r=new u(n,e);this._errorHandler(r)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,s]of this._stacks)(!e||t<s)&&(e=[i,s],t=s);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class g extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let m;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new h(e?.onListenerError??s.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new l(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new g(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||s.dz)(i),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const n=new p(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(n.stack=d.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new v,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{m?.unregister(a),o?.(),this._removeListener(n)}));if(i instanceof r.Cm?i.add(a):Array.isArray(i)&&i.push(a),m){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);m.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,i=t.indexOf(e);if(-1===i)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||s.dz;if(i)try{e.value(t)}catch(n){i(n)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}const _=()=>new v;class v{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class C extends f{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.w,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class E extends C{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class b extends f{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class S{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new f({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,r.s)((0,n.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class y{constructor(){this.data=[]}wrapEvent(e,t,i){return(s,n,r)=>e((e=>{const r=this.data[this.data.length-1];if(!t)return void(r?r.buffers.push((()=>s.call(n,e))):s.call(n,e));const o=r;o?(o.items??=[],o.items.push(e),0===o.buffers.length&&r.buffers.push((()=>{o.reducedResult??=i?o.items.reduce(t,i):o.items.reduce(t),s.call(n,o.reducedResult)}))):s.call(n,t(i,e))}),void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=r.jG.None,this.emitter=new f({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},41614:(e,t,i)=>{"use strict";i.d(t,{parseYqlQuery:()=>Au,kh:()=>ku});var s,n,r,o,a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});(n=s||(s={})).EOF=-1,n.UNKNOWN_SOURCE_NAME="<unknown>",(o=r||(r={})).INVALID_TYPE=0,o.EPSILON=-2,o.MIN_USER_TOKEN_TYPE=1,o.EOF=s.EOF,o.DEFAULT_CHANNEL=0,o.HIDDEN_CHANNEL=1,o.MIN_USER_CHANNEL_VALUE=2;var l=c((e=>{const t=e;return void 0!==t.tokenSource&&void 0!==t.channel}),"isToken"),h=class{static{c(this,"BitSet")}data;constructor(e){this.data=e?new Uint32Array(e.map((e=>e>>>0))):new Uint32Array(1)}[Symbol.iterator](){const e=this.data.length;let t=0,i=this.data[t];const s=this.data;return{[Symbol.iterator](){return this},next:c((()=>{for(;t<e;){if(0!==i){const e=i&-i,s=(t<<5)+this.bitCount(e-1);return i^=e,{done:!1,value:s}}t++,t<e&&(i=s[t])}return{done:!0,value:void 0}}),"next")}}clear(e){void 0===e?this.data=new Uint32Array:(this.resize(e),this.data[e>>>5]&=~(1<<e))}or(e){const t=Math.min(this.data.length,e.data.length);for(let i=0;i<t;++i)this.data[i]|=e.data[i];if(this.data.length<e.data.length){this.resize((e.data.length<<5)-1);const i=e.data.length;for(let s=t;s<i;++s)this.data[s]=e.data[s]}}get(e){if(e<0)throw new RangeError("index cannot be negative");const t=e>>>5;return!(t>=this.data.length)&&0!==(this.data[t]&1<<e%32)}get length(){let e=0;const t=this.data.length,i=this.data;for(let s=0;s<t;s++)e+=this.bitCount(i[s]);return e}values(){const e=new Array(this.length);let t=0;const i=this.data.length;for(let s=0;s<i;++s){let i=this.data[s];for(;0!==i;){const n=i&-i;e[t++]=(s<<5)+this.bitCount(n-1),i^=n}}return e}nextSetBit(e){if(e<0)throw new RangeError("index cannot be negative");for(const t of this)if(t>=e)return t}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<<e%32}toString(){return"{"+this.values().join(", ")+"}"}resize(e){const t=e+32>>>5;if(t<=this.data.length)return;const i=new Uint32Array(t);i.set(this.data),i.fill(0,this.data.length),this.data=i}bitCount(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,63&(e+=e>>16)}},d=class e{static{c(this,"MurmurHash")}static defaultSeed=701;constructor(){}static initialize(t=e.defaultSeed){return t}static updateFromComparable(e,t){return this.update(e,t?.hashCode()??0)}static update(e,t){return t=(t=Math.imul(t,3432918353))<<15|t>>>17,e=(e^=t=Math.imul(t,461845907))<<13|e>>>19,e=Math.imul(e,5)+3864292196}static finish(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}static hashCode(t,i){return e.finish(e.update(i??e.defaultSeed,t),1)}},u=class e{static{c(this,"ObjectEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}},g=class e{static{c(this,"DefaultEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:u.instance.hashCode(e)}equals(e,t){return null==e?null==t:"string"===typeof e||"number"===typeof e?e===t:u.instance.equals(e,t)}},p=class e{static{c(this,"HashSet")}static defaultLoadFactor=.75;static initialCapacity=16;comparator;buckets;threshold;itemCount=0;constructor(t,i=e.initialCapacity){if(t instanceof e){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let e=0;e<this.buckets.length;e++){const t=this.buckets[e];t&&(this.buckets[e]=t.slice(0))}this.itemCount=t.itemCount,this.threshold=t.threshold}else this.comparator=t??g.instance,this.buckets=this.createBuckets(i),this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}getOrAdd(e){this.itemCount>this.threshold&&this.expand();const t=this.getBucket(e);let i=this.buckets[t];if(!i)return i=[e],this.buckets[t]=i,++this.itemCount,e;for(const s of i)if(this.comparator.equals(s,e))return s;return i.push(e),++this.itemCount,e}get(e){if(null==e)return e;const t=this.getBucket(e),i=this.buckets[t];if(i)for(const s of i)if(this.comparator.equals(s,e))return s}remove(e){if(null==e)return!1;const t=this.getBucket(e),i=this.buckets[t];if(!i)return!1;for(let s=0;s<i.length;s++){const t=i[s];if(this.comparator.equals(t,e))return i.splice(s,1),--this.itemCount,!0}return!1}hashCode(){let e=d.initialize();for(const t of this.buckets)if(null!=t)for(const i of t){if(null==i)break;e=d.update(e,this.comparator.hashCode(i))}return e=d.finish(e,this.size),e}equals(t){return t===this||t instanceof e&&(t.size===this.size&&this.containsAll(t))}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return null!=e&&void 0!==this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;e[t++]=s}return e}containsAll(t){if(t instanceof e){for(const e of t.buckets)if(null!=e)for(const t of e){if(null==t)break;if(!this.containsFast(t))return!1}}else for(const e of t)if(!this.containsFast(e))return!1;return!0}addAll(e){let t=!1;for(const i of e){this.getOrAdd(i)!==i&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(e.initialCapacity),this.itemCount=0,this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;t?t=!1:e+=", ",e+=s.toString()}return e+="}",e}toTableString(){let e="";for(const t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let i=!0;for(const s of t)i?i=!1:e+=" ",e+=null==s?"_":s.toString();e+="]\n"}return e}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}expand(){const t=this.buckets,i=2*this.buckets.length,s=this.createBuckets(i);this.buckets=s,this.threshold=Math.floor(i*e.defaultLoadFactor);for(const e of t)if(e)for(const t of e){const e=this.getBucket(t);let i=this.buckets[e];i||(i=[],this.buckets[e]=i),i.push(t)}}get size(){return this.itemCount}get isEmpty(){return 0===this.itemCount}createBuckets(e){return new Array(e)}},m=class e{static{c(this,"Interval")}static INVALID_INTERVAL=new e(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;static cache=[];start;stop;cachedHashCode;constructor(e,t){this.start=e,this.stop=t,this.cachedHashCode=Math.imul(651+e,31)+t}static of(t,i){return t!==i||t<0||t>e.INTERVAL_POOL_MAX_VALUE?new e(t,i):(e.cache[t]||(e.cache[t]=new e(t,t)),e.cache[t])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return this.cachedHashCode}startsBeforeDisjoint(e){return this.start<e.start&&this.stop<e.start}startsBeforeNonDisjoint(e){return this.start<=e.start&&this.stop>=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(t){return e.of(Math.min(this.start,t.start),Math.max(this.stop,t.stop))}intersection(t){return e.of(Math.max(this.start,t.start),Math.min(this.stop,t.stop))}differenceNotProperlyContained(t){let i=null;return t.startsBeforeNonDisjoint(this)?i=e.of(Math.max(this.start,t.stop+1),this.stop):t.startsAfterNonDisjoint(this)&&(i=e.of(this.start,t.start-1)),i}toString(){return`${this.start}..${this.stop}`}get length(){return this.stop<this.start?0:this.stop-this.start+1}},f=class e{static{c(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new e(e.EMPTY_NAMES,e.EMPTY_NAMES,e.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(t,i,s){this.literalNames=t??e.EMPTY_NAMES,this.symbolicNames=i??e.EMPTY_NAMES,this.displayNames=s??e.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(t){if(null==t||0===t.length)return e.EMPTY_VOCABULARY;const i=[...t],s=[...t];for(let e=0;e<t.length;e++){const n=t[e];if(null!=n){if(n.length>0){const t=n.codePointAt(0);if(39===t){s[e]=null;continue}if(t>=65&&t<=90){i[e]=null;continue}}i[e]=null,s[e]=null}}return new e(i,s,t)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e<this.literalNames.length?this.literalNames[e]:null}getSymbolicName(e){return e>=0&&e<this.symbolicNames.length?this.symbolicNames[e]:e===r.EOF?"EOF":null}getDisplayName(e){if(e>=0&&e<this.displayNames.length){const t=this.displayNames[e];if(null!=t)return t}const t=this.getLiteralName(e);if(null!=t)return t;const i=this.getSymbolicName(e);return null!=i?i:`${e}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},_=class e{static{c(this,"IntervalSet")}intervals=[];cachedHashCode;constructor(e){if(e)if(Array.isArray(e))for(const t of e)this.addOne(t);else this.addSet(e)}static of(t,i){const s=new e;return s.addRange(t,i),s}static or(t){const i=new e;for(const e of t)i.addSet(e);return i}[Symbol.iterator](){return this.intervals[Symbol.iterator]()}get(e){return this.intervals[e]}get minElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start}get maxElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[this.intervals.length-1].stop}clear(){this.cachedHashCode=void 0,this.intervals=[]}addOne(e){this.addInterval(new m(e,e))}addRange(e,t){this.addInterval(new m(e,t))}addInterval(e){if(this.cachedHashCode=void 0,0===this.intervals.length)this.intervals.push(e);else{for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e.equals(i))return;if(e.adjacent(i)||!e.disjoint(i)){const s=e.union(i);this.intervals[t]=s;for(let e=t+1;e<this.intervals.length;){const i=this.intervals[e];if(!s.adjacent(i)&&s.disjoint(i))break;this.intervals.splice(e,1),this.intervals[t]=s.union(i)}return}if(e.startsBeforeDisjoint(i))return void this.intervals.splice(t,0,e)}this.intervals.push(e)}}addSet(e){return e.intervals.forEach((e=>this.addInterval(e)),this),this}complementWithVocabulary(t){const i=new e;return t?0===t.length?i:(i.addSet(t),i.subtract(this)):i}complement(t,i){const s=new e;return s.addInterval(new m(t,i)),s.subtract(this)}or(t){const i=new e;return i.addSet(this),t.forEach((e=>i.addSet(e))),i}and(t){if(0===t.length)return new e;const i=this.intervals,s=t.intervals;let n;const r=i.length,o=s.length;let a=0,c=0;for(;a<r&&c<o;){const t=i[a],r=s[c];t.startsBeforeDisjoint(r)?a++:r.startsBeforeDisjoint(t)?c++:t.properlyContains(r)?(n||(n=new e),n.addInterval(t.intersection(r)),c++):r.properlyContains(t)?(n||(n=new e),n.addInterval(t.intersection(r)),a++):t.disjoint(r)||(n||(n=new e),n.addInterval(t.intersection(r)),t.startsAfterNonDisjoint(r)?c++:r.startsAfterNonDisjoint(t)&&a++)}return n||new e}subtract(t){if(0===this.length)return new e;const i=new e(this);if(0===t.length)return i;let s=0,n=0;for(;s<i.intervals.length&&n<t.intervals.length;){const e=i.intervals[s],r=t.intervals[n];if(r.stop<e.start){n++;continue}if(r.start>e.stop){s++;continue}let o,a;r.start>e.start&&(o=new m(e.start,r.start-1)),r.stop<e.stop&&(a=new m(r.stop+1,e.stop)),o?a?(i.intervals[s]=o,i.intervals.splice(s+1,0,a),s++,n++):(i.intervals[s]=o,s++):a?(i.intervals[s]=a,n++):i.intervals.splice(s,1)}return i}contains(e){let t=0,i=this.intervals.length-1;for(;t<=i;){const s=Math.floor((t+i)/2),n=this.intervals[s];if(n.stop<e)t=s+1;else{if(!(n.start>e))return!0;i=s-1}}return!1}removeRange(e){if(this.cachedHashCode=void 0,e.start===e.stop)this.removeOne(e.start);else if(null!==this.intervals){let t=0;for(const i of this.intervals){if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new m(i.start,e.start);const s=new m(e.stop,i.stop);return void this.intervals.splice(t,0,s)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new m(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new m(e.stop,i.stop)),t+=1}}}removeOne(e){this.cachedHashCode=void 0;for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e<i.start)return;if(e===i.start&&e===i.stop)return void this.intervals.splice(t,1);if(e===i.start)return void(this.intervals[t]=new m(i.start+1,i.stop));if(e===i.stop)return void(this.intervals[t]=new m(i.start,i.stop-1));if(e<i.stop){const s=new m(i.start,e-1);return this.intervals[t]=new m(e+1,i.stop),void this.intervals.splice(t,0,s)}}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.intervals)e=d.update(e,t.start),e=d.update(e,t.stop);this.cachedHashCode=d.finish(e,2*this.intervals.length)}return this.cachedHashCode}equals(e){if(this===e)return!0;if(this.intervals.length!==e.intervals.length)return!1;for(let t=0;t<this.intervals.length;t++)if(!this.intervals[t].equals(e.intervals[t]))return!1;return!0}toString(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;n===o?n===r.EOF?t+="<EOF>":t+=e?"'"+String.fromCodePoint(n)+"'":n:t+=e?"'"+String.fromCodePoint(n)+"'..'"+String.fromCodePoint(o)+"'":n+".."+o,i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithVocabulary(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(e,n);else for(let i=n;i<=o;++i)i>n&&(t+=", "),t+=this.elementName(e,i);i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithRuleNames(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");const i=f.fromTokenNames(e);for(let s=0;s<this.intervals.length;++s){const e=this.intervals[s],n=e.start,o=e.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(i,n);else for(let s=n;s<=o;++s)s>n&&(t+=", "),t+=this.elementName(i,s);s<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toArray(){const e=[];for(const t of this.intervals)for(let i=t.start;i<=t.stop;i++)e.push(i);return e}get length(){let e=0;for(const t of this.intervals)e+=t.length;return e}elementName(e,t){return t===r.EOF?"<EOF>":t===r.EPSILON?"<EPSILON>":e.getDisplayName(t)}},v=c((e=>null===e?"null":e),"valueToString"),C=c((e=>Array.isArray(e)?"["+e.map(v).join(", ")+"]":"null"),"arrayToString"),E=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const s=e[i],n=t[i];if(s!==n&&(!s||!s.equals(n)))return!1}return!0}),"equalArrays"),b=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}),"equalNumberArrays"),S=c(((e,t=!1)=>(e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"\xb7")),e)),"escapeWhitespace"),y=class e{static{c(this,"SemanticContext")}cachedHashCode;static andContext(t,i){if(null===t||t===e.NONE)return i;if(null===i||i===e.NONE)return t;const s=new w(t,i);return 1===s.operands.length?s.operands[0]:s}static orContext(t,i){if(null===t)return i;if(null===i)return t;if(t===e.NONE||i===e.NONE)return e.NONE;const s=new R(t,i);return 1===s.operands.length?s.operands[0]:s}static filterPrecedencePredicates(t){const i=[];for(const s of t)s instanceof e.PrecedencePredicate&&i.push(s);return i}evalPrecedence(e,t){return this}},w=class e extends y{static{c(this,"AND")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){let e=null;n.forEach((t=>{(null===e||t.precedence<e.precedence)&&(e=t)})),e&&s.add(e)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3813686060),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(!i.evaluate(e,t))return!1;return!0}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,null===n)return null;n!==y.NONE&&s.push(n)}if(!i)return this;if(0===s.length)return y.NONE;let n=null;return s.forEach((e=>{n=null===n?e:y.andContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("&&")}},R=class e extends y{static{c(this,"OR")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){const e=n.sort(((e,t)=>e.compareTo(t))),t=e[e.length-1];s.add(t)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3383313031),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(i.evaluate(e,t))return!0;return!1}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,n===y.NONE)return y.NONE;null!==n&&s.push(n)}if(!i)return this;if(0===s.length)return null;let n=null;return s.forEach((e=>{n=null===n?e:y.orContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("||")}};(e=>{class t extends e{static{c(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i){super(),this.ruleIndex=e??-1,this.predIndex=t??-1,this.isCtxDependent=i??!1}evaluate(e,t){const i=this.isCtxDependent?t:null;return e.sempred(i,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.ruleIndex),e=d.update(e,this.predIndex),e=d.update(e,this.isCtxDependent?1:0),e=d.finish(e,3),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}e.Predicate=t;class i extends e{static{c(this,"PrecedencePredicate")}precedence;constructor(e){super(),this.precedence=e??0}evaluate(e,t){return e.precpred(t,this.precedence)}evalPrecedence(t,i){return t.precpred(i??null,this.precedence)?e.NONE:null}compareTo(e){return this.precedence-e.precedence}hashCode(){return 31+this.precedence}equals(e){return this===e||this.precedence===e.precedence}toString(){return"{"+this.precedence+">=prec}?"}}e.PrecedencePredicate=i,e.NONE=new t})(y||(y={}));var L,T=class e{static{c(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#e}cachedHashCode;#t=null;#e;constructor(e,t,i,s){this.state=t,this.alt=e.alt,this.context=i,this.#e=s??y.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,void 0!==e.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}static duplicate(t,i){return new e(t,t.state,t.context,i??t.semanticContext)}static createWithContext(t,i,s,n){return new e({alt:i},t,s,n)}static createWithConfig(t,i,s){return new e(i,t,s??i.context,i.semanticContext)}static createWithSemanticContext(t,i,s){return new e(i,t??i.state,i.context,s)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.#t),e=d.updateFromComparable(e,this.semanticContext),e=d.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return this.#t}set context(e){this.#t=e,this.cachedHashCode=void 0}equals(e){return this===e||this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,t=!0){let i="";return t&&(i=","+this.alt),"("+this.state+i+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==y.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},x=class e{static{c(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=e.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,t)}addTransition(e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,t){this.transitions.splice(e,1,t)}removeTransition(e){return this.transitions.splice(e,1)[0]}},k=class e{static{c(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static traceATNSimulator=!1;cachedHashCode;constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=d.initialize(31);return e=d.finish(e,0),e}static calculateHashCodeSingle(e,t){let i=d.initialize(31);return i=d.updateFromComparable(i,e),i=d.update(i,t),i=d.finish(i,2),i}static calculateHashCodeList(e,t){let i=d.initialize(31);for(const s of e)i=d.updateFromComparable(i,s);for(const s of t)i=d.update(i,s);return i=d.finish(i,2*e.length),i}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}toString(e){return""}},A=class e extends k{static{c(this,"SingletonPredictionContext")}parent;returnState;constructor(e,t){super(e?k.calculateHashCodeSingle(e,t):k.calculateEmptyHashCode()),this.parent=e??null,this.returnState=t}getParent(e){return this.parent}getReturnState(e){return this.returnState}equals(t){return this===t||t instanceof e&&(this.hashCode()===t.hashCode()&&(this.returnState===t.returnState&&(null==this.parent?null==t.parent:this.parent.equals(t.parent))))}toString(){const e=null===this.parent?"":this.parent.toString();return 0===e.length?this.returnState===k.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e}get length(){return 1}},N=class e extends A{static{c(this,"EmptyPredictionContext")}static instance=new e;constructor(){super(void 0,k.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(e){return this===e}toString(){return"$"}},I=class{static{c(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(e){this.target=e}get isEpsilon(){return!1}get label(){return null}toString(){return""}},O=class extends I{static{c(this,"SetTransition")}set;constructor(e,t){super(e),this.set=t||_.of(r.INVALID_TYPE,r.INVALID_TYPE)}get transitionType(){return I.SET}get label(){return this.set}matches(e,t,i){return this.set.contains(e)}toString(){return this.set.toString()}},D=class extends O{static{c(this,"NotSetTransition")}get transitionType(){return I.NOT_SET}matches(e,t,i){return e>=t&&e<=i&&!super.matches(e,t,i)}toString(){return"~"+super.toString()}},M=class{static{c(this,"MapKeyEqualityComparator")}keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,t){return this.keyComparator.equals(e.key,t.key)}},P=class e{static{c(this,"HashMap")}backingStore;constructor(t){t instanceof e?this.backingStore=new p(t.backingStore):(t=t??g.instance,this.backingStore=new p(new M(t)))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){const t=this.backingStore.get({key:e});if(t)return t.value}get isEmpty(){return this.backingStore.isEmpty}set(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?(s=i.value,i.value=t):this.backingStore.add({key:e,value:t}),s}setIfAbsent(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?s=i.value:this.backingStore.add({key:e,value:t}),s}keys(){return this.backingStore.toArray().map((e=>e.key))}values(){return this.backingStore.toArray().map((e=>e.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},F=class{static{c(this,"TerminalNode")}parent=null;symbol;constructor(e){this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return m.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new m(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===r.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},U=class extends F{static{c(this,"ErrorNode")}accept(e){return e.visitErrorNode(this)}},H=class e{static{c(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(e){this.type=e.type,this.source=e.source,this.tokenIndex=e.tokenIndex??-1,this.line=e.line??0,this.column=e.column??-1,this.channel=e.channel??r.DEFAULT_CHANNEL,this.start=e.start??0,this.stop=e.stop??0,this.#i=e.text,void 0===e.line&&null!==e.source[0]&&(this.line=e.source[0].line),void 0===e.column&&null!==e.source[0]&&(this.column=e.source[0].column)}static fromToken(t){const i=[t.tokenSource,t.inputStream];return new e({type:t.type,line:t.line,tokenIndex:t.tokenIndex,column:t.column,channel:t.channel,start:t.start,stop:t.stop,text:t.text,source:i})}static fromType(t,i){return new e({type:t,text:i,source:e.EMPTY_SOURCE})}static fromSource(t,i,s,n,r){return new e({type:i,channel:s,start:n,stop:r,source:t})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(e){this.source[1]=e}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(e){let t="";this.channel>0&&(t=",channel="+this.channel);let i=this.text;i?(i=i.replace(/\n/g,"\\n"),i=i.replace(/\r/g,"\\r"),i=i.replace(/\t/g,"\\t")):i="<no text>";let s=String(this.type);return e&&(s=e.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+i+"',<"+s+">"+t+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const e=this.inputStream;if(!e)return;const t=e.size;return this.start<t&&this.stop<t?e.getTextFromRange(this.start,this.stop):"<EOF>"}set text(e){this.#i=e}setText(e){this.#i=e}setType(e){this.type=e}setLine(e){this.line=e}setCharPositionInLine(e){this.column=e}setChannel(e){this.channel=e}setTokenIndex(e){this.tokenIndex=e}},B=class e{static{c(this,"Trees")}static toStringTree(t,i,s){i=i??null,s&&(i=s.ruleNames);let n=e.getNodeText(t,i);n=S(n,!1);const r=t.getChildCount();if(0===r)return n;let o="("+n+" ";r>0&&(n=e.toStringTree(t.getChild(0),i),o=o.concat(n));for(let a=1;a<r;a++)n=e.toStringTree(t.getChild(a),i),o=o.concat(" "+n);return o=o.concat(")"),o}static getNodeText(e,t,i){if(t=t??null,i&&(t=i.ruleNames),null!==t){if(e instanceof W){const i=e.ruleContext.getAltNumber();return 0!==i?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof U)return e.toString();if(e instanceof F)return e.symbol.text}const s=e.getPayload();return l(s)?s.text:String(e.getPayload())}static getChildren(e){const t=[];for(let i=0;i<e.getChildCount();i++)t.push(e.getChild(i));return t}static getAncestors(e){if(null===e.parent)return[];let t=[],i=e.parent;for(;null!==i;)t=[i].concat(t),i=i.parent;return t}static isAncestorOf(e,t){if(null===e||null===t||null===e.parent)return!1;let i=t.parent;for(;null!==i;){if(e===i)return!0;i=i.parent}return!1}static findAllTokenNodes(t,i){return e.findAllNodes(t,i,!0)}static findAllRuleNodes(t,i){return e.findAllNodes(t,i,!1)}static findAllNodes(t,i,s){const n=[];return e.doFindAllNodes(t,i,s,n),n}static descendants(t){let i=[t];for(let s=0;s<t.getChildCount();s++)i=i.concat(e.descendants(t.getChild(s)));return i}static getRootOfSubtreeEnclosingRegion(e,t,i){const s=e.getChildCount();for(let n=0;n<s;n++){const s=e.getChild(n),r=this.getRootOfSubtreeEnclosingRegion(s,t,i);if(null!==r)return r}return e instanceof W&&t>=e.start.tokenIndex&&(null===e.stop||i<=e.stop.tokenIndex)?e:null}static stripChildrenOutOfRange(e,t,i,s){if(null!==e)for(let n=0;n<e.getChildCount();n++){const o=e.getChild(n),a=o.getSourceInterval();if(e instanceof W&&(a.stop<i||a.start>s)&&this.isAncestorOf(o,t)){const t=H.fromType(r.INVALID_TYPE,"...");e.children[n]=new F(t)}}}static doFindAllNodes(t,i,s,n){s&&t instanceof F?t.symbol?.type===i&&n.push(t):!s&&t instanceof W&&t.ruleIndex===i&&n.push(t);for(let r=0;r<t.getChildCount();r++)e.doFindAllNodes(t.getChild(r),i,s,n)}},W=class e{static{c(this,"ParserRuleContext")}static empty=new e(null);start=null;stop=null;children=[];invokingState;parent;constructor(e,t=-1){this.parent=e,this.invokingState=t}copyFrom(e){this.parent=e.parent,this.invokingState=e.invokingState,this.children.slice(0,this.children.length),this.start=e.start,this.stop=e.stop,e.children&&e.children.forEach((e=>{e instanceof U&&(this.children.push(e),e.parent=this)}))}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){const t=new F(e);return this.children.push(t),t.parent=this,t}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,t){if(e<0||e>=this.children.length)return null;if(!t)return this.children[e];for(const i of this.children)if(i instanceof t){if(0===e)return i;e-=1}return null}getToken(e,t){if(t<0||t>=this.children.length)return null;for(const i of this.children)if("symbol"in i&&i.symbol?.type===e){if(0===t)return i;t-=1}return null}getTokens(e){const t=[];for(const i of this.children)"symbol"in i&&i.symbol?.type===e&&t.push(i);return t}getRuleContext(e,t){return this.getChild(e,t)}getRuleContexts(e){const t=[];for(const i of this.children)i instanceof e&&t.push(i);return t}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start?m.INVALID_INTERVAL:null===this.stop||this.stop.tokenIndex<this.start.tokenIndex?new m(this.start.tokenIndex,this.start.tokenIndex-1):new m(this.start.tokenIndex,this.stop.tokenIndex)}depth(){let e=0,t=this;for(;null!==t;)t=t.parent,e+=1;return e}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((e=>e.getText())).join("")}getAltNumber(){return Z.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length<2?B.toStringTree(this,null,e[0]):B.toStringTree(this,e[0],e[1])}toString(e,t){e=e??null,t=t??null;let i=this,s="[";for(;null!==i&&i!==t;){if(null===e)i.isEmpty()||(s+=i.invokingState);else{const t=i.ruleIndex;s+=t>=0&&t<e.length?e[t]:""+t}null===i.parent||null===e&&i.parent.isEmpty()||(s+=" "),i=i.parent}return s+="]",s}},V=class e extends k{static{c(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(e,t){return super(k.calculateHashCodeList(e,t)),this.parents=e,this.returnStates=t,this}isEmpty(){return this.returnStates[0]===k.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()&&(b(this.returnStates,t.returnStates)&&E(this.parents,t.parents))}toString(){if(this.isEmpty())return"[]";const e=[];for(let t=0;t<this.returnStates.length;t++)this.returnStates[t]!==k.EMPTY_RETURN_STATE?(e.push(this.returnStates[t].toString()),this.parents[t]?e.push(this.parents[t].toString()):e.push("null")):e.push("$");return`[${e.join(", ")}]`}},z=c(((e,t)=>t===k.EMPTY_RETURN_STATE&&null===e?N.instance:new A(e,t)),"createSingletonPredictionContext"),G=c(((e,t)=>{if(t||(t=W.empty),!t.parent||t===W.empty)return N.instance;const i=G(e,t.parent),s=e.states[t.invokingState].transitions[0];return z(i,s.followState.stateNumber)}),"predictionContextFromRuleContext"),j=c(((e,t,i)=>{if(e.isEmpty())return e;let s=i.get(e);if(s)return s;if(s=t.get(e),s)return i.set(e,s),s;let n,r=!1,o=[];for(let a=0;a<o.length;a++){const s=j(e.getParent(a),t,i);if(r||s!==e.getParent(a)){if(!r){o=[];for(let t=0;t<e.length;t++)o[t]=e.getParent(t);r=!0}o[a]=s}}return r?(n=0===o.length?N.instance:1===o.length?z(o[0]??void 0,e.getReturnState(0)):new V(o,e.returnStates),t.add(n),i.set(n,n),i.set(e,n),n):(t.add(e),i.set(e,e),e)}),"getCachedPredictionContext"),K=c(((e,t,i,s)=>{if(e===t||e.equals(t))return e;if(e instanceof A&&t instanceof A)return $(e,t,i,s);if(i){if(e instanceof N)return e;if(t instanceof N)return t}return e instanceof A&&(e=new V([e.parent],[e.returnState])),t instanceof A&&(t=new V([t.parent],[t.returnState])),Y(e,t,i,s)}),"merge"),Y=c(((e,t,i,s)=>{if(s){let i=s.get(e,t);if(i)return i;if(i=s.get(t,e),i)return i}let n=0,r=0,o=0,a=new Array(e.returnStates.length+t.returnStates.length).fill(0),c=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;n<e.returnStates.length&&r<t.returnStates.length;){const l=e.parents[n],h=t.parents[r];if(e.returnStates[n]===t.returnStates[r]){const t=e.returnStates[n];t===k.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[o]=l,a[o]=t):(c[o]=K(l,h,i,s),a[o]=t),n+=1,r+=1}else e.returnStates[n]<t.returnStates[r]?(c[o]=l,a[o]=e.returnStates[n],n+=1):(c[o]=h,a[o]=t.returnStates[r],r+=1);o+=1}if(n<e.returnStates.length)for(let h=n;h<e.returnStates.length;h++)c[o]=e.parents[h],a[o]=e.returnStates[h],o+=1;else for(let h=r;h<t.returnStates.length;h++)c[o]=t.parents[h],a[o]=t.returnStates[h],o+=1;if(o<c.length){if(1===o){const i=z(c[0]??void 0,a[0]);return null!==s&&s.set(e,t,i),i}c=c.slice(0,o),a=a.slice(0,o)}const l=new V(c,a);return l.equals(e)?(null!==s&&s.set(e,t,e),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):l.equals(t)?(null!==s&&s.set(e,t,t),t):(q(c),null!==s&&s.set(e,t,l),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> "+l),l)}),"mergeArrays"),q=c((e=>{const t=new P(u.instance);for(const i of e)i&&(t.containsKey(i)||t.set(i,i));for(let i=0;i<e.length;i++)e[i]&&(e[i]=t.get(e[i])??null)}),"combineCommonParents"),$=c(((e,t,i,s)=>{if(null!==s){let i=s.get(e,t);if(null!==i)return i;if(i=s.get(t,e),null!==i)return i}const n=Q(e,t,i);if(null!==n)return null!==s&&s.set(e,t,n),n;if(e.returnState===t.returnState){const n=K(e.parent,t.parent,i,s);if(n===e.parent)return e;if(n===t.parent)return t;const r=z(n,e.returnState);return null!==s&&s.set(e,t,r),r}{let i=null;if((e===t||null!==e.parent&&e.parent.equals(t.parent))&&(i=e.parent),null!==i){const n=[e.returnState,t.returnState];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState);const r=new V([i,i],n);return null!==s&&s.set(e,t,r),r}const n=[e.returnState,t.returnState];let r=[e.parent,t.parent];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState,r=[t.parent,e.parent]);const o=new V(r,n);return null!==s&&s.set(e,t,o),o}}),"mergeSingletons"),Q=c(((e,t,i)=>{if(i){if(e===N.instance||t===N.instance)return N.instance}else{if(e===N.instance&&t===N.instance)return N.instance;if(e===N.instance){const e=[t.returnState,k.EMPTY_RETURN_STATE],i=[t.parent,null];return new V(i,e)}if(t===N.instance){const t=[e.returnState,k.EMPTY_RETURN_STATE],i=[e.parent,null];return new V(i,t)}}return null}),"mergeRoot"),X=class e{constructor(e){this.atn=e}static{c(this,"LL1Analyzer")}static hitPredicate=r.INVALID_TYPE;getDecisionLookahead(t){if(!t)return;const i=t.transitions.length,s=new Array(i);for(let n=0;n<i;n++){const i=new _,r=new p;this.doLook(t.transitions[n].target,void 0,N.instance,i,r,new h,!1,!1),i.length>0&&!i.contains(e.hitPredicate)&&(s[n]=i)}return s}look(e,t,i){const s=new _,n=i?G(this.atn,i):null;return this.doLook(e,t,n,s,new p,new h,!0,!0),s}doLook(t,i,s,n,o,a,c,l){const h=T.createWithContext(t,0,s);if(!o.get(h)){if(o.add(h),t===i){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF)}if(t.constructor.stateType===x.RULE_STOP){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF);if(s!==N.instance){const e=a.get(t.ruleIndex);try{a.clear(t.ruleIndex);for(let e=0;e<s.length;e++){const t=this.atn.states[s.getReturnState(e)];this.doLook(t,i,s.getParent(e),n,o,a,c,l)}}finally{e&&a.set(t.ruleIndex)}return}}for(const h of t.transitions)switch(h.transitionType){case I.RULE:{if(a.get(h.target.ruleIndex))continue;const e=z(s??void 0,h.followState.stateNumber);try{a.set(h.target.ruleIndex),this.doLook(h.target,i,e,n,o,a,c,l)}finally{a.clear(h.target.ruleIndex)}break}case I.PREDICATE:case I.PRECEDENCE:c?this.doLook(h.target,i,s,n,o,a,c,l):n.addOne(e.hitPredicate);break;case I.WILDCARD:n.addRange(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);break;default:if(h.isEpsilon)this.doLook(h.target,i,s,n,o,a,c,l);else{let e=h.label;e&&(h instanceof D&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),n.addSet(e))}}}}},Z=class{static{c(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];analyzer;constructor(e,t){this.grammarType=e,this.maxTokenType=t,this.analyzer=new X(this)}nextTokens(e,t){if(!t&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const i=this.analyzer.look(e,void 0,t);return t||(e.nextTokenWithinRule=i),i}addState(e){e&&(e.stateNumber=this.states.length),this.states.push(e)}removeState(e){this.states[e.stateNumber]=null}defineDecisionState(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision}getDecisionState(e){return 0===this.decisionToState.length?null:this.decisionToState[e]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new Error("Invalid state number.");const i=this.states[e];let s=this.nextTokens(i);if(!s.contains(r.EPSILON))return s;let n=t;const o=new _;for(o.addSet(s),o.removeOne(r.EPSILON);null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){const e=this.states[n.invokingState].transitions[0];s=this.nextTokens(e.followState),o.addSet(s),o.removeOne(r.EPSILON),n=n.parent}return s.contains(r.EPSILON)&&o.addOne(r.EOF),o}},J=class e{static{c(this,"KeyTypeEqualityComparer")}static instance=new e;hashCode(e){let t=7;return t=31*t+e.state.stateNumber,t=31*t+e.alt,t=31*t+e.semanticContext.hashCode(),t}equals(e,t){return e===t||e.state.stateNumber===t.state.stateNumber&&e.alt===t.alt&&e.semanticContext.equals(t.semanticContext)}},ee=class{static{c(this,"ATNConfigSet")}configLookup=new p(J.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#s=-1;constructor(e){if(void 0!==e)if("boolean"===typeof e)this.fullCtx=e??!0;else{const t=e;this.addAll(t.configs),this.uniqueAlt=t.uniqueAlt,this.conflictingAlts=t.conflictingAlts,this.hasSemanticContext=t.hasSemanticContext,this.dipsIntoOuterContext=t.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,t=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||e.state.constructor.stateType!==x.RULE_STOP||(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==y.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;const i=this.configLookup.getOrAdd(e);if(i===e)return this.#s=-1,void this.configs.push(e);const s=!this.fullCtx,n=K(i.context,e.context,s,t);i.reachesIntoOuterContext||=e.reachesIntoOuterContext,i.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,i.context=n}get elements(){return this.configs}getAlts(){const e=new h;for(const t of this.configs)e.set(t.alt);return e}getPredicates(){const e=[];for(const t of this.configs)t.semanticContext!==y.NONE&&e.push(t.semanticContext);return e}getStates(){const e=new p;for(const t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const t of this.configs)t.context=e.getCachedContext(t.context)}addAll(e){for(const t of e)this.add(t);return!1}equals(e){return this===e||!(this.fullCtx!==e.fullCtx||this.uniqueAlt!==e.uniqueAlt||this.conflictingAlts!==e.conflictingAlts||this.hasSemanticContext!==e.hasSemanticContext||this.dipsIntoOuterContext!==e.dipsIntoOuterContext||!E(this.configs,e.configs))}hashCode(){return-1===this.#s&&(this.#s=this.computeHashCode()),this.#s}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#s=-1,this.configLookup=new p(J.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return C(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=d.initialize();return this.configs.forEach((t=>{e=d.update(e,t.hashCode())})),e=d.finish(e,this.configs.length),e}},te=class extends x{static{c(this,"BasicState")}static stateType=x.BASIC},ie=class extends x{static{c(this,"DecisionState")}decision=-1;nonGreedy=!1},se=class extends ie{static{c(this,"BlockStartState")}endState},ne=class extends x{static{c(this,"BlockEndState")}static stateType=x.BLOCK_END;startState},re=class extends x{static{c(this,"LoopEndState")}static stateType=x.LOOP_END;loopBackState},oe=class extends x{static{c(this,"RuleStartState")}static stateType=x.RULE_START;stopState;isLeftRecursiveRule=!1},ae=class extends x{static{c(this,"RuleStopState")}static stateType=x.RULE_STOP},ce=class extends ie{static{c(this,"TokensStartState")}static stateType=x.TOKEN_START},le=class extends ie{static{c(this,"PlusLoopbackState")}static stateType=x.PLUS_LOOP_BACK},he=class extends x{static{c(this,"StarLoopbackState")}static stateType=x.STAR_LOOP_BACK},de=class extends ie{static{c(this,"StarLoopEntryState")}static stateType=x.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},ue=class extends se{static{c(this,"PlusBlockStartState")}static stateType=x.PLUS_BLOCK_START;loopBackState},ge=class extends se{static{c(this,"StarBlockStartState")}static stateType=x.STAR_BLOCK_START},pe=class extends se{static{c(this,"BasicBlockStartState")}static stateType=x.BLOCK_START},me=class extends I{static{c(this,"AtomTransition")}labelValue;#n;constructor(e,t){super(e),this.labelValue=t,this.#n=_.of(t,t)}get label(){return this.#n}get transitionType(){return I.ATOM}matches(e){return this.labelValue===e}toString(){return this.labelValue.toString()}},fe=class extends I{static{c(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.precedence=i,this.followState=s}get isEpsilon(){return!0}get transitionType(){return I.RULE}matches(e,t,i){return!1}},_e=class extends I{static{c(this,"RangeTransition")}start;stop;#n=new _;constructor(e,t,i){super(e),this.start=t,this.stop=i,this.#n.addRange(t,i)}get label(){return this.#n}get transitionType(){return I.RANGE}matches(e,t,i){return e>=this.start&&e<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},ve=class extends I{static{c(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.actionIndex=i??-1,this.isCtxDependent=s??!1}get isEpsilon(){return!0}get transitionType(){return I.ACTION}matches(e,t,i){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},Ce=class extends I{static{c(this,"EpsilonTransition")}#r;constructor(e,t=-1){super(e),this.#r=t}get outermostPrecedenceReturn(){return this.#r}get isEpsilon(){return!0}get transitionType(){return I.EPSILON}matches(){return!1}toString(){return"epsilon"}},Ee=class extends I{static{c(this,"WildcardTransition")}get transitionType(){return I.WILDCARD}matches(e,t,i){return e>=t&&e<=i}toString(){return"."}},be=class extends I{static{c(this,"AbstractPredicateTransition")}constructor(e){super(e)}},Se=class extends be{static{c(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.predIndex=i,this.isCtxDependent=s}get isEpsilon(){return!0}matches(e,t,i){return!1}get transitionType(){return I.PREDICATE}getPredicate(){return new y.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},ye=class extends be{static{c(this,"PrecedencePredicateTransition")}precedence;constructor(e,t){super(e),this.precedence=t}get isEpsilon(){return!0}matches(e,t,i){return!1}getPredicate(){return new y.PrecedencePredicate(this.precedence)}get transitionType(){return I.PRECEDENCE}toString(){return this.precedence+" >= _p"}},we=0,Re=1,Le=2,Te=3,xe=4,ke=5,Ae=6,Ne=7,Ie=class e{static{c(this,"LexerSkipAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Ae}equals(e){return e===this}hashCode(){return Ae}execute(e){e.skip()}toString(){return"skip"}},Oe=class e{static{c(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=we,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.channel),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}},De=class e{static{c(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=Re,this.ruleIndex=e,this.actionIndex=t}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.ruleIndex),e=d.update(e,this.actionIndex),this.cachedHashCode=d.finish(e,3)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex)}},Me=class e{static{c(this,"LexerMoreAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Te}equals(e){return e===this}hashCode(){return Te}execute(e){e.more()}toString(){return"more"}},Pe=class e{static{c(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Ne,this.type=e}execute(e){e.type=this.type}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.type),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.type===t.type}toString(){return"type("+this.type+")"}},Fe=class e{static{c(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=ke,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}},Ue=class e{static{c(this,"LexerPopModeAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=xe}equals(e){return e===this}hashCode(){return xe}execute(e){e.popMode()}toString(){return"popMode"}},He=class e{static{c(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Le,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}},Be=class e{static{c(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[x.INVALID_TYPE,void 0],[x.BASIC,te],[x.RULE_START,oe],[x.BLOCK_START,pe],[x.PLUS_BLOCK_START,ue],[x.STAR_BLOCK_START,ge],[x.TOKEN_START,ce],[x.RULE_STOP,ae],[x.BLOCK_END,ne],[x.STAR_LOOP_BACK,he],[x.STAR_LOOP_ENTRY,de],[x.PLUS_LOOP_BACK,le],[x.LOOP_END,re]]);static lexerActionFactoryMapper=new Map([[we,e=>new Oe(e)],[Re,(e,t)=>new De(e,t)],[Le,e=>new He(e)],[Te,()=>Me.instance],[xe,()=>Ue.instance],[ke,e=>new Fe(e)],[Ae,()=>Ie.instance],[Ne,e=>new Pe(e)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(e){e||(e={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=e}deserialize(e){this.data=e,this.checkVersion();const t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);const i=[];return this.readSets(t,i),this.readEdges(t,i),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===Z.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t}checkVersion(){const t=this.data[this.pos++];if(t!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+t+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){const e=this.data[this.pos++],t=this.data[this.pos++];return new Z(e,t)}readStates(e){let t,i;const s=[],n=[],r=this.data[this.pos++];for(let c=0;c<r;c++){const t=this.data[this.pos++];if(t===x.INVALID_TYPE){e.addState(null);continue}const i=this.data[this.pos++],r=this.stateFactory(t,i);if(t===x.LOOP_END){const e=this.data[this.pos++];s.push([r,e])}else if(r instanceof se){const e=this.data[this.pos++];n.push([r,e])}e.addState(r)}for(t=0;t<s.length;t++){const i=s[t];i[0].loopBackState=e.states[i[1]]??void 0}for(t=0;t<n.length;t++){const i=n[t];i[0].endState=e.states[i[1]]}const o=this.data[this.pos++];for(t=0;t<o;t++)i=this.data[this.pos++],e.states[i].nonGreedy=!0;const a=this.data[this.pos++];for(t=0;t<a;t++)i=this.data[this.pos++],e.states[i].isLeftRecursiveRule=!0}readRules(e){let t;const i=this.data[this.pos++];for(e.grammarType===Z.LEXER&&(e.ruleToTokenType=new Array(i),e.ruleToTokenType.fill(0)),e.ruleToStartState=new Array(i),e.ruleToStartState.fill(null),t=0;t<i;t++){const i=this.data[this.pos++];if(e.ruleToStartState[t]=e.states[i],e.grammarType===Z.LEXER){const i=this.data[this.pos++];e.ruleToTokenType[t]=i}}for(e.ruleToStopState=new Array(i),e.ruleToStopState.fill(null),t=0;t<e.states.length;t++){const i=e.states[t];i instanceof ae&&(e.ruleToStopState[i.ruleIndex]=i,e.ruleToStartState[i.ruleIndex].stopState=i)}}readModes(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++];e.modeToStartState.push(e.states[t])}}readSets(e,t){const i=this.data[this.pos++];for(let s=0;s<i;s++){const e=new _;t.push(e);const i=this.data[this.pos++];0!==this.data[this.pos++]&&e.addOne(-1);for(let t=0;t<i;t++){const t=this.data[this.pos++],i=this.data[this.pos++];e.addRange(t,i)}}}readEdges(e,t){let i,s,n,r,o;const a=this.data[this.pos++];for(i=0;i<a;i++){const i=this.data[this.pos++],s=this.data[this.pos++],n=this.data[this.pos++],o=this.data[this.pos++],a=this.data[this.pos++],c=this.data[this.pos++];r=this.edgeFactory(e,n,s,o,a,c,t);e.states[i].addTransition(r)}for(i=0;i<e.states.length;i++)for(n=e.states[i],s=0;s<n.transitions.length;s++){const t=n.transitions[s];if(!(t instanceof fe))continue;let i=-1;e.ruleToStartState[t.target.ruleIndex].isLeftRecursiveRule&&0===t.precedence&&(i=t.target.ruleIndex),r=new Ce(t.followState,i),e.ruleToStopState[t.target.ruleIndex].addTransition(r)}for(i=0;i<e.states.length;i++){if(n=e.states[i],n instanceof se){if(!n.endState)throw new Error("IllegalState");if(n.endState.startState)throw new Error("IllegalState");n.endState.startState=n}if(n instanceof le)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof ue&&(o.loopBackState=n);else if(n instanceof he)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof de&&(o.loopBackState=n)}}readDecisions(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++],s=e.states[t];e.decisionToState.push(s),s.decision=i}}readLexerActions(e){if(e.grammarType===Z.LEXER){const t=this.data[this.pos++];e.lexerActions=[];for(let i=0;i<t;i++){const t=this.data[this.pos++],i=this.data[this.pos++],s=this.data[this.pos++];e.lexerActions.push(this.lexerActionFactory(t,i,s))}}}generateRuleBypassTransitions(e){let t;const i=e.ruleToStartState.length;for(t=0;t<i;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<i;t++)this.generateRuleBypassTransition(e,t)}generateRuleBypassTransition(e,t){let i,s;const n=new pe;n.ruleIndex=t,e.addState(n);const r=new ne;r.ruleIndex=t,e.addState(r),n.endState=r,e.defineDecisionState(n),r.startState=n;let o=null,a=null;if(e.ruleToStartState[t].isLeftRecursiveRule){for(a=null,i=0;i<e.states.length;i++)if(s=e.states[i],this.stateIsEndStateFor(s,t)){a=s,o=s.loopBackState.transitions[0];break}if(null===o)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else a=e.ruleToStopState[t];for(i=0;i<e.states.length;i++){s=e.states[i];for(const e of s.transitions)e!==o&&e.target===a&&(e.target=r)}const c=e.ruleToStartState[t];for(;c.transitions.length>0;){const e=c.removeTransition(c.transitions.length-1);n.addTransition(e)}e.ruleToStartState[t].addTransition(new Ce(n)),a&&r.addTransition(new Ce(a));const l=new te;e.addState(l),l.addTransition(new me(r,e.ruleToTokenType[t])),n.addTransition(new Ce(l))}stateIsEndStateFor(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof de))return null;const i=e.transitions[e.transitions.length-1].target;return i instanceof re&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof ae?e:null}markPrecedenceDecisions(e){for(const t of e.states)if(t instanceof de&&e.ruleToStartState[t.ruleIndex].isLeftRecursiveRule){const e=t.transitions[t.transitions.length-1].target;e instanceof re&&e.epsilonOnlyTransitions&&e.transitions[0].target instanceof ae&&(t.precedenceRuleDecision=!0)}}verifyATN(e){if(this.deserializationOptions.verifyATN)for(const t of e.states)if(null!==t)if(this.checkCondition(t.epsilonOnlyTransitions||t.transitions.length<=1),t instanceof ue)this.checkCondition(null!==t.loopBackState);else if(t instanceof de)if(this.checkCondition(null!==t.loopBackState),this.checkCondition(2===t.transitions.length),t.transitions[0].target instanceof ge)this.checkCondition(t.transitions[1].target instanceof re),this.checkCondition(!t.nonGreedy);else{if(!(t.transitions[0].target instanceof re))throw new Error("IllegalState");this.checkCondition(t.transitions[1].target instanceof ge),this.checkCondition(t.nonGreedy)}else t instanceof he?(this.checkCondition(1===t.transitions.length),this.checkCondition(t.transitions[0].target instanceof de)):t instanceof re?this.checkCondition(null!==t.loopBackState):t instanceof oe?this.checkCondition(null!==t.stopState):t instanceof se?this.checkCondition(null!==t.endState):t instanceof ne?this.checkCondition(null!==t.startState):t instanceof ie?this.checkCondition(t.transitions.length<=1||t.decision>=0):this.checkCondition(t.transitions.length<=1||t instanceof ae)}checkCondition(e,t){if(!e)throw void 0!==t&&null!==t||(t="IllegalState"),t}edgeFactory(e,t,i,s,n,o,a){const c=e.states[i];switch(t){case I.EPSILON:return new Ce(c);case I.RANGE:return new _e(c,0!==o?r.EOF:s,n);case I.RULE:return new fe(e.states[s],n,o,c);case I.PREDICATE:return new Se(c,s,n,0!==o);case I.PRECEDENCE:return new ye(c,s);case I.ATOM:return new me(c,0!==o?r.EOF:s);case I.ACTION:return new ve(c,s,n,0!==o);case I.SET:return new O(c,a[s]);case I.NOT_SET:return new D(c,a[s]);case I.WILDCARD:return new Ee(c);default:throw new Error("The specified transition type: "+t+" is not valid.")}}stateFactory(t,i){const s=e.stateTypeMapper.get(t);if(!s)throw new Error("The specified state type "+t+" is not valid.");const n=new s;return n.ruleIndex=i,n}lexerActionFactory(t,i,s){const n=e.lexerActionFactoryMapper.get(t);if(!n)throw new Error("The specified lexer action type "+t+" is not valid.");return n(i,s)}},We=class e extends P{static{c(this,"OrderedHashMap")}#o=[];clear(){super.clear(),this.#o=[]}get(e){return super.get(e)}set(e,t){const i=super.set(e,t);return void 0===i&&this.#o.push(e),i}setIfAbsent(e,t){const i=super.setIfAbsent(e,t);return void 0===i&&this.#o.push(e),i}values(){return{[Symbol.iterator]:()=>{let e=0;return{next:c((()=>e<this.#o.length?{done:!1,value:super.get(this.#o[e++])}:{done:!0,value:void 0}),"next")}}}}keys(){return this.#o[Symbol.iterator]()}equals(t){return t instanceof e&&super.equals(t)}},Ve=(class e{static{c(this,"ATNSerializer")}atn;data=[];sets=new We(u.instance);nonGreedyStates=[];precedenceStates=[];constructor(e){this.atn=e}static getSerialized(t){return new e(t).serialize()}static serializeSets(e,t){e.push(t.length);for(const i of t){const t=i.contains(r.EOF),s=[...i];t&&s[0].stop===r.EOF?e.push(s.length-1):e.push(s.length),e.push(t?1:0);for(const i of s){if(i.start===r.EOF){if(i.stop===r.EOF)continue;e.push(0)}else e.push(i.start);e.push(i.stop)}}}serialize(){this.addPreamble();const e=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();const t=this.addSets();return this.addEdges(e,t),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Be.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===Z.LEXER){this.data.push(this.atn.lexerActions.length);for(const e of this.atn.lexerActions)switch(this.data.push(e.actionType),e.actionType){case we:{const t=e.channel;this.data.push(t),this.data.push(0);break}case Re:{const t=e.ruleIndex,i=e.actionIndex;this.data.push(t),this.data.push(i);break}case Le:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Te:case xe:this.data.push(0),this.data.push(0);break;case ke:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Ae:this.data.push(0),this.data.push(0);break;case Ne:{const t=e.type;this.data.push(t),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${e.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const e of this.atn.decisionToState)this.data.push(e.stateNumber)}addEdges(...e){switch(e.length){case 0:{let e=0;this.data.push(this.atn.states.length);for(const t of this.atn.states){if(null===t){this.data.push(x.INVALID_TYPE);continue}const i=t.constructor.stateType;t instanceof ie&&t.nonGreedy&&this.nonGreedyStates.push(t.stateNumber),t instanceof oe&&t.isLeftRecursiveRule&&this.precedenceStates.push(t.stateNumber),this.data.push(i),this.data.push(t.ruleIndex),t.constructor.stateType===x.LOOP_END?this.data.push(t.loopBackState.stateNumber):t instanceof se&&this.data.push(t.endState.stateNumber),t.constructor.stateType!==x.RULE_STOP&&(e+=t.transitions.length);for(const e of t.transitions){const t=e.transitionType;if(t===I.SET||t===I.NOT_SET){const t=e;this.sets.set(t.set,!0)}}}return e}case 2:{const[t,i]=e;this.data.push(t);for(const e of this.atn.states)if(null!==e&&e.constructor.stateType!==x.RULE_STOP)for(const t of e.transitions){if(null===this.atn.states[t.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const s=e.stateNumber;let n=t.target.stateNumber;const o=t.transitionType;let a=0,c=0,l=0;switch(o){case I.RULE:n=t.followState.stateNumber,a=t.target.stateNumber,c=t.ruleIndex,l=t.precedence;break;case I.PRECEDENCE:a=t.precedence;break;case I.PREDICATE:{const e=t;a=e.ruleIndex,c=e.predIndex,l=e.isCtxDependent?1:0;break}case I.RANGE:a=t.start,c=t.stop,a===r.EOF&&(a=0,l=1);break;case I.ATOM:a=t.labelValue,a===r.EOF&&(a=0,l=1);break;case I.ACTION:{const e=t;a=e.ruleIndex,c=e.actionIndex,l=e.isCtxDependent?1:0;break}case I.SET:case I.NOT_SET:a=i.get(t.set)}this.data.push(s),this.data.push(n),this.data.push(o),this.data.push(a),this.data.push(c),this.data.push(l)}break}default:throw new Error("Invalid number of arguments")}}addSets(){e.serializeSets(this.data,[...this.sets.keys()]);const t=new P;let i=0;for(const e of this.sets.keys())t.set(e,i++);return t}addModeStartStates(){const e=this.atn.modeToStartState.length;if(this.data.push(e),e>0)for(const t of this.atn.modeToStartState)this.data.push(t.stateNumber)}addRuleStatesAndLexerTokenTypes(){const e=this.atn.ruleToStartState.length;this.data.push(e);for(let t=0;t<e;t++){const e=this.atn.ruleToStartState[t];this.data.push(e.stateNumber),this.atn.grammarType===Z.LEXER&&this.data.push(this.atn.ruleToTokenType[t])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const e of this.precedenceStates)this.data.push(e)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const e of this.nonGreedyStates)this.data.push(e)}},class e{static{c(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(e){e&&(this.configs=e)}static fromState(t){const i=new e;return i.stateNumber=t,i}static fromConfigs(t){return new e(t)}static hashCode(e){return e.configs.hashCode()}static equals(e,t){return e.configs.equals(t.configs)}getAltSet(){const e=new Set;for(const t of this.configs)e.add(t.alt);return 0===e.size?null:e}toString(){let e="";return e+=this.stateNumber,e+=":",e+=this.configs?this.configs.toString():"",this.isAcceptState&&(e+="=>",this.predicates?e+=C(this.predicates):e+=this.prediction),e.toString()}}),ze=class{static{c(this,"ATNSimulator")}static ERROR=Ve.fromState(2147483647);atn;sharedContextCache;constructor(e,t){return this.atn=e,this.sharedContextCache=t,this}getCachedContext(e){if(!this.sharedContextCache)return e;const t=new P(u.instance);return j(e,this.sharedContextCache,t)}},Ge=(class e{static{c(this,"CodePointTransitions")}static createWithCodePoint(t,i){return e.createWithCodePointRange(t,i,i)}static createWithCodePointRange(e,t,i){return t===i?new me(e,t):new _e(e,t,i)}},class{static{c(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),je=class e extends T{static{c(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(t,i,s,n){return super(t,i,s??t.context,s?y.NONE:t.semanticContext),this.lexerActionExecutor=s?n:t.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=e.checkNonGreedyDecision(t,this.state),this}static createWithExecutor(t,i,s){return new e(t,i,t.context,s)}static createWithConfig(t,i,s){return new e(i,t,s??null,i.lexerActionExecutor)}static createWithContext(t,i,s){return new e({alt:i},t,s,null)}static checkNonGreedyDecision(e,t){return e.passedThroughNonGreedyDecision||"nonGreedy"in t&&t.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.context),e=d.updateFromComparable(e,this.semanticContext),e=d.update(e,this.passedThroughNonGreedyDecision?1:0),e=d.updateFromComparable(e,this.lexerActionExecutor),e=d.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},Ke=class{static{c(this,"BaseErrorListener")}syntaxError(e,t,i,s,n,r){}reportAmbiguity(e,t,i,s,n,r,o){}reportAttemptingFullContext(e,t,i,s,n,r){}reportContextSensitivity(e,t,i,s,n,r){}},Ye=class e extends Ke{static{c(this,"ConsoleErrorListener")}static instance=new e;syntaxError(e,t,i,s,n,r){console.error("line "+i+":"+s+" "+n)}},qe=class extends Ke{constructor(e){return super(),this.delegates=e,this}static{c(this,"ProxyErrorListener")}syntaxError(e,t,i,s,n,r){this.delegates.forEach((o=>{o.syntaxError(e,t,i,s,n,r)}))}reportAmbiguity(e,t,i,s,n,r,o){this.delegates.forEach((a=>{a.reportAmbiguity(e,t,i,s,n,r,o)}))}reportAttemptingFullContext(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportAttemptingFullContext(e,t,i,s,n,r)}))}reportContextSensitivity(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportContextSensitivity(e,t,i,s,n,r)}))}},$e=class e{static{c(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;listeners=[Ye.instance];stateNumber=-1;checkVersion(e){const t="4.13.1";t!==e&&console.error("ANTLR runtime and generated code versions disagree: "+t+"!="+e)}addErrorListener(e){this.listeners.push(e)}removeErrorListeners(){this.listeners=[]}removeErrorListener(e){for(let t=0;t<this.listeners.length;t++)if(this.listeners[t]===e)return void this.listeners.splice(t,1)}getErrorListeners(){return this.listeners}getTokenTypeMap(){const t=this.vocabulary;let i=e.tokenTypeMapCache.get(t);if(!i){i=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){const s=t.getLiteralName(e);s&&i.set(s,e);const n=t.getSymbolicName(e);n&&i.set(n,e)}i.set("EOF",r.EOF),e.tokenTypeMapCache.set(t,i)}return i}getRuleIndexMap(){const t=this.ruleNames;let i=e.ruleIndexMapCache.get(t);return i||(i=new Map,t.forEach(((e,t)=>i.set(e,t))),e.ruleIndexMapCache.set(t,i)),i}getTokenType(e){const t=this.getTokenTypeMap().get(e);return t||r.INVALID_TYPE}getErrorHeader(e){const t=e.offendingToken?.line,i=e.offendingToken?.column;return"line "+t+":"+i}get errorListenerDispatch(){return new qe(this.listeners)}sempred(e,t,i){return!0}precpred(e,t){return!0}action(e,t,i){}get atn(){return this.interpreter.atn}get state(){return this.stateNumber}set state(e){this.stateNumber=e}getParseInfo(){}},Qe=class e{static{c(this,"CommonTokenFactory")}static DEFAULT=new e;copyText=!1;constructor(e){this.copyText=e??!1}create(e,t,i,s,n,r,o,a){const c=H.fromSource(e,t,s,n,r);return c.line=o,c.column=a,i?c.text=i:this.copyText&&null!==e[1]&&(c.text=e[1].getTextFromRange(n,r)),c}},Xe=class e extends Error{static{c(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},Ze=class extends Xe{static{c(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(e,t,i,s){super({message:"",recognizer:e,input:t,ctx:null}),this.startIndex=i,this.deadEndConfigs=s}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getTextFromRange(this.startIndex,this.startIndex)),`LexerNoViableAltException(${e})`}},Je=class e extends $e{static{c(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL;static HIDDEN=r.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=e.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;input;token=null;hitEOF=!1;factory;#a=[];#i;constructor(e,t){super(),this.options={...this.options,...t},this.input=e,this.factory=Qe.DEFAULT}reset(t=!0){t&&this.input.seek(0),this.token=null,this.type=r.INVALID_TYPE,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.hitEOF=!1,this.mode=e.DEFAULT_MODE,this.#a=[],this.interpreter.reset()}nextToken(){if(null===this.input)throw new Error("nextToken requires a non-null input stream.");const t=this.input.mark();try{for(;;){if(this.hitEOF)return this.emitEOF(),this.token;this.token=null,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.input.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let t=!1;for(;;){this.type=r.INVALID_TYPE;let s=e.SKIP;try{s=this.interpreter.match(this.input,this.mode)}catch(i){if(!(i instanceof Ze))throw i;this.notifyListeners(i),this.recover(i)}if(this.input.LA(1)===r.EOF&&(this.hitEOF=!0),this.type===r.INVALID_TYPE&&(this.type=s),this.type===e.SKIP){t=!0;break}if(this.type!==e.MORE)break}if(!t)return null===this.token&&this.emit(),this.token}}finally{this.input.release(t)}}skip(){this.type=e.SKIP}more(){this.type=e.MORE}pushMode(e){at.debug&&console.log("pushMode "+e),this.#a.push(this.mode),this.mode=e}popMode(){if(0===this.#a.length)throw new Error("Empty Stack");return at.debug&&console.log("popMode back to "+this.#a.slice(0,-1)),this.mode=this.#a.pop(),this.mode}get modeStack(){return this.#a}emitToken(e){this.token=e}emit(){const e=this.factory.create([this,this.input],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(e),e}emitEOF(){const e=this.factory.create([this,this.input],r.EOF,void 0,r.DEFAULT_CHANNEL,this.input.index,this.input.index-1,this.line,this.column);return this.emitToken(e),e}getCharIndex(){return this.input.index}getAllTokens(){const e=[];let t=this.nextToken();for(;t.type!==r.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){const t=this.tokenStartCharIndex,i=this.input.index,s=this.input.getTextFromRange(t,i),n="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,n,e)}getErrorDisplay(e){return e}getErrorDisplayForChar(e){return e.charCodeAt(0)===r.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(e){return"'"+this.getErrorDisplayForChar(e)+"'"}recover(e){this.input.LA(1)!==r.EOF&&(e instanceof Ze?this.interpreter.consume(this.input):this.input.consume())}get inputStream(){return this.input}set inputStream(e){this.reset(!1),this.input=e}set tokenFactory(e){this.factory=e}get tokenFactory(){return this.factory}get sourceName(){return this.input.getSourceName()}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get column(){return this.interpreter.column}set column(e){this.interpreter.column=e}get text(){return this.#i?this.#i:this.interpreter.getText(this.input)}set text(e){this.#i=e}},et=class{static{c(this,"DFASerializer")}dfa;vocabulary;constructor(e,t){this.dfa=e,this.vocabulary=t}toString(){if(!this.dfa.s0)return"";let e="";const t=this.dfa.getStates();for(const i of t){let t=0;t=i.edges.length;for(let s=0;s<t;s++){const t=i.edges[s];if(t&&2147483647!==t.stateNumber){e+=this.getStateString(i);e+="-",e+=this.getEdgeLabel(s),e+="->",e+=this.getStateString(t),e+="\n"}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){const t=e.stateNumber,i=(e.isAcceptState?":":"")+"s"+t+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?`${i}=>${e.predicates.toString()}`:`${i}=>${e.prediction}`:`${i}`}},tt=class extends et{static{c(this,"LexerDFASerializer")}constructor(e){super(e,f.EMPTY_VOCABULARY)}getEdgeLabel=c((e=>"'"+String.fromCharCode(e)+"'"),"getEdgeLabel")},it=class{static{c(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;states=new Map;constructor(e,t){this.atnStartState=e,this.decision=t??0;let i=!1;e instanceof de&&e.precedenceRuleDecision&&(i=!0,this.s0=Ve.fromState(-1)),this.isPrecedenceDfa=i}[Symbol.iterator]=()=>this.states.values()[Symbol.iterator]();getPrecedenceStartState=c((e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]}),"getPrecedenceStartState");setPrecedenceStartState=c(((e,t)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=t)}),"setPrecedenceStartState");getStates(){const e=[...this.states.values()];return e.sort(((e,t)=>e.stateNumber-t.stateNumber)),e}getState(e){return this.states.get(e.configs.hashCode())??null}getStateForConfigs(e){return this.states.get(e.hashCode())??null}addState(e){const t=e.configs.hashCode();this.states.has(t)||(this.states.set(t,e),e.stateNumber=this.states.size-1)}toString(e){if(!e)return this.toString(f.EMPTY_VOCABULARY);if(!this.s0)return"";return new et(this,e).toString()??""}toLexerString(){if(!this.s0)return"";return new tt(this).toString()??""}get length(){return this.states.size}},st=class e{static{c(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=t.actionType,this.offset=e,this.action=t}execute(e){this.action.execute(e)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.offset),e=d.updateFromComparable(e,this.action),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.offset===t.offset&&this.action===t.action)}},nt=class e{static{c(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){return this.actionType=-1,this.lexerActions=e??[],this}static append(t,i){if(null===t)return new e([i]);const s=t.lexerActions.concat([i]);return new e(s)}fixOffsetBeforeMatch(t){let i=null;for(let e=0;e<this.lexerActions.length;e++)!this.lexerActions[e].isPositionDependent||this.lexerActions[e]instanceof st||(null===i&&(i=this.lexerActions.concat([])),i[e]=new st(t,this.lexerActions[e]));return null===i?this:new e(i)}execute(e,t,i){if(void 0===t||void 0===i)return;let s=!1;const n=t.index;try{for(const r of this.lexerActions){let o=r;if(r instanceof st){const e=r.offset;t.seek(i+e),o=r.action,s=i+e!==n}else r.isPositionDependent&&(t.seek(n),s=!1);o.execute(e)}}finally{s&&t.seek(n)}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);for(const t of this.lexerActions)e=d.update(e,t.hashCode());this.cachedHashCode=d.finish(e,this.lexerActions.length)}return this.cachedHashCode}equals(e){return this===e||this.cachedHashCode===e.cachedHashCode&&(this.lexerActions.length===e.lexerActions.length&&this.lexerActions.every(((t,i)=>t.equals(e.lexerActions[i]))))}},rt=class e extends p{static{c(this,"OrderedHashSet")}elements=[];getOrAdd(e){const t=this.size,i=super.getOrAdd(e);return this.size>t&&this.elements.push(e),i}equals(t){return t instanceof e&&super.equals(t)}clear(){super.clear(),this.elements=[]}*[Symbol.iterator](){yield*this.elements}toArray(){return this.elements.slice(0)}},ot=class extends ee{static{c(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new rt}},at=class e extends ze{static{c(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Je.DEFAULT_MODE;prevAccept;options;lexerATNConfigFactory;constructor(e,t,i,s){super(t,s),this.decisionToDFA=i,this.recognizer=e,this.options=e?e.options:{minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111}}match(e,t){this.mode=t;const i=e.mark();try{this.startIndex=e.index,this.prevAccept=void 0;const i=this.decisionToDFA[t];return i.s0?this.execATN(e,i.s0):this.matchATN(e)}finally{e.release(i)}}reset(){this.prevAccept=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Je.DEFAULT_MODE}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getTextFromRange(this.startIndex,e.index-1)}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return e===r.EOF?"EOF":"'"+String.fromCharCode(e)+"'"}matchATN(t){const i=this.atn.modeToStartState[this.mode];e.debug&&console.log("matchATN mode "+this.mode+" start: "+i);const s=this.mode,n=this.computeStartState(t,i),r=n.hasSemanticContext;n.hasSemanticContext=!1;const o=this.addDFAState(n);r||(this.decisionToDFA[this.mode].s0=o);const a=this.execATN(t,o);return e.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[s].toLexerString()),a}execATN(t,i){e.debug&&console.log("start state closure="+i.configs),i.isAcceptState&&this.captureSimState(t,i);let s=t.LA(1);for(;;){e.debug&&console.log("execATN loop starting closure: "+i.configs);let n=this.getExistingTargetState(i,s);if(n||(n=this.computeTargetState(t,i,s)),n===ze.ERROR)break;if(s!==r.EOF&&this.consume(t),n.isAcceptState&&(this.captureSimState(t,n),s===r.EOF))break;s=t.LA(1),i=n}return this.failOrAccept(t,i.configs,s)}getExistingTargetState(t,i){if(i>=this.options.minDFAEdge&&i<=this.options.maxDFAEdge){const s=t.edges[i-this.options.minDFAEdge];return e.debug&&s&&console.log("reuse state "+t.stateNumber+" edge to "+s.stateNumber),s}}computeTargetState(e,t,i){const s=new ot;return this.getReachableConfigSet(e,t.configs,s,i),0===s.length?(s.hasSemanticContext||this.addDFAEdge(t,i,ze.ERROR),ze.ERROR):this.addDFAEdge(t,i,null,s)}failOrAccept(e,t,i){if(this.prevAccept?.dfaState){const{dfaState:t,index:i,line:s,column:n}=this.prevAccept;return this.accept(e,t.lexerActionExecutor,this.startIndex,i,s,n),t.prediction}if(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new Ze(this.recognizer,e,this.startIndex,t)}getReachableConfigSet(t,i,s,n){let o=Z.INVALID_ALT_NUMBER;for(const a of i){const i=a.alt===o;if(!i||!a.passedThroughNonGreedyDecision){e.debug&&console.log("testing %s at %s\n",this.getTokenName(n),a.toString(this.recognizer,!0));for(const e of a.state.transitions){const c=this.getReachableTarget(e,n);if(c){let e=a.lexerActionExecutor;e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const l=n===r.EOF,h=je.createWithExecutor(a,c,e);this.closure(t,h,s,i,!0,l)&&(o=a.alt)}}}}}accept(t,i,s,n,r,o){e.debug&&console.log("ACTION %s\n",i),t.seek(n),this.line=r,this.column=o,i&&this.recognizer&&i.execute(this.recognizer,t,s)}getReachableTarget(e,t){return e.matches(t,this.options.minCodePoint,this.options.maxCodePoint)?e.target:void 0}computeStartState(e,t){const i=N.instance,s=new ot;for(let n=0;n<t.transitions.length;n++){const r=t.transitions[n].target,o=je.createWithContext(r,n+1,i);this.closure(e,o,s,!1,!1,!1)}return s}closure(t,i,s,n,r,o){let a=null;if(e.debug&&console.log("closure("+i.toString(this.recognizer,!0)+")"),i.state.constructor.stateType===x.RULE_STOP){if(e.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[i.state.ruleIndex],i):console.log("closure at rule stop %s\n",i)),!i.context||i.context.hasEmptyPath()){if(!i.context||i.context.isEmpty())return s.add(i),!0;s.add(je.createWithConfig(i.state,i,N.instance)),n=!0}if(i.context&&!i.context.isEmpty())for(let e=0;e<i.context.length;e++)if(i.context.getReturnState(e)!==k.EMPTY_RETURN_STATE){const c=i.context.getParent(e),l=this.atn.states[i.context.getReturnState(e)];a=je.createWithConfig(l,i,c),n=this.closure(t,a,s,n,r,o)}return n}i.state.epsilonOnlyTransitions||n&&i.passedThroughNonGreedyDecision||s.add(i);for(const e of i.state.transitions)a=this.getEpsilonTarget(t,i,e,s,r,o),a&&(n=this.closure(t,a,s,n,r,o));return n}getEpsilonTarget(e,t,i,s,n,r){this.lexerATNConfigFactory||this.setupATNFactoryLookup();const o=this.lexerATNConfigFactory[i.transitionType];return o?o(e,t,i,s,n,r):null}setupATNFactoryLookup(){this.lexerATNConfigFactory=[],this.lexerATNConfigFactory[I.RULE]=(e,t,i)=>{const s=z(t.context??void 0,i.followState.stateNumber);return je.createWithConfig(i.target,t,s)},this.lexerATNConfigFactory[I.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.lexerATNConfigFactory[I.PREDICATE]=(t,i,s,n,r)=>{const o=s;return e.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),n.hasSemanticContext=!0,this.evaluatePredicate(t,o.ruleIndex,o.predIndex,r)?je.createWithConfig(s.target,i):null},this.lexerATNConfigFactory[I.ACTION]=(e,t,i)=>{if(null===t.context||t.context.hasEmptyPath()){const e=nt.append(t.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);return je.createWithExecutor(t,i.target,e)}return je.createWithConfig(i.target,t)},this.lexerATNConfigFactory[I.EPSILON]=(e,t,i)=>je.createWithConfig(i.target,t);const t=c(((e,t,i,s,n,o)=>o&&i.matches(r.EOF,this.options.minCodePoint,this.options.maxCodePoint)?je.createWithConfig(i.target,t):null),"simple");this.lexerATNConfigFactory[I.ATOM]=t,this.lexerATNConfigFactory[I.RANGE]=t,this.lexerATNConfigFactory[I.SET]=t}evaluatePredicate(e,t,i,s){if(!this.recognizer)return!0;if(!s)return this.recognizer.sempred(null,t,i);const n=this.column,r=this.line,o=e.index,a=e.mark();try{return this.consume(e),this.recognizer.sempred(null,t,i)}finally{this.column=n,this.line=r,e.seek(o),e.release(a)}}captureSimState(e,t){this.prevAccept={index:e.index,line:this.line,column:this.column,dfaState:t}}addDFAEdge(t,i,s,n){if(!s&&n){const e=n.hasSemanticContext;if(n.hasSemanticContext=!1,s=this.addDFAState(n),e)return s}return i<this.options.minDFAEdge||i>this.options.maxDFAEdge||(e.debug&&console.log("EDGE "+t+" -> "+s+" upon "+i),t.edges[i-this.options.minDFAEdge]=s),s}addDFAState(e){const t=this.decisionToDFA[this.mode],i=t.getStateForConfigs(e);if(i)return i;const s=Ve.fromConfigs(e),n=e.firstStopState;return n&&(s.isAcceptState=!0,s.lexerActionExecutor=n.lexerActionExecutor,s.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]),e.setReadonly(!0),t.addState(s),s}},ct=class{static{c(this,"ParseInfo")}atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const e=this.atnSimulator.getDecisionInfo(),t=new Array;for(let i=0;i<e.length;i++){e[i].llFallback>0&&t.push(i)}return t}getTotalTimeInPrediction(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.timeInPrediction;return t}getTotalSLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllTotalLook;return t}getTotalLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llTotalLook;return t}getTotalSLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions;return t}getTotalLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llATNTransitions;return t}getTotalATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions,t+=i.llATNTransitions;return t}getDFASize(e){if(void 0===e){let e=0;const t=this.atnSimulator.decisionToDFA;for(let i=0;i<t.length;i++)e+=this.getDFASize(i);return e}return this.atnSimulator.decisionToDFA[e].length}},lt=class extends Xe{static{c(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(e,t=null,i=null,s=null,n=null,r=null){r=r??e.context,s=s??e.getCurrentToken(),i=i??e.getCurrentToken(),super({message:"",recognizer:e,input:t=t??e.inputStream,ctx:r}),this.deadEndConfigs=n,this.startToken=i,this.offendingToken=s}},ht=class{static{c(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new P}get(e,t){const i=this.cacheMap.get(e)??null;return null===i?null:i.get(t)??null}set(e,t,i){let s=this.cacheMap.get(e);s||(s=new P,this.cacheMap.set(e,s)),s.set(t,i)}},dt=class e{static{c(this,"SubsetEqualityComparer")}static instance=new e;hashCode(e){let t=d.initialize(7);return t=d.update(t,e.state.stateNumber),t=d.updateFromComparable(t,e.context),t=d.finish(t,2),t}equals(e,t){return e.state.stateNumber===t.state.stateNumber&&(e.context?.equals(t.context)??!0)}},ut=class e{static{c(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(t,i){if(e.allConfigsInRuleStopStates(i))return!0;if(t===e.SLL&&i.hasSemanticContext){const e=new ee;for(let t of i)t=T.duplicate(t,y.NONE),e.add(t);i=e}const s=e.getConflictingAltSubsets(i);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(i)}static hasConfigInRuleStopState(e){for(const t of e)if(t.state instanceof ae)return!0;return!1}static allConfigsInRuleStopStates(e){for(const t of e)if(!(t.state instanceof ae))return!1;return!0}static resolvesToJustOneViableAlt(t){return e.getSingleViableAlt(t)}static allSubsetsConflict(t){return!e.hasNonConflictingAltSet(t)}static hasNonConflictingAltSet(e){for(const t of e)if(1===t.length)return!0;return!1}static hasConflictingAltSet(e){for(const t of e)if(t.length>1)return!0;return!1}static allSubsetsEqual(e){let t=null;for(const i of e)if(null===t)t=i;else if(i!==t)return!1;return!0}static getUniqueAlt(t){const i=e.getAlts(t);return 1===i.length?i.nextSetBit(0):Z.INVALID_ALT_NUMBER}static getAlts(e){const t=new h;return e.forEach((e=>{t.or(e)})),t}static getConflictingAltSubsets(e){const t=new P(dt.instance);for(const i of e){let e=t.get(i);e||(e=new h,t.set(i,e)),e.set(i.alt)}return Array.from(t.values())}static getStateToAltMap(e){const t=new P(u.instance);for(const i of e){let e=t.get(i.state);e||(e=new h,t.set(i.state,e)),e.set(i.alt)}return t}static hasStateAssociatedWithOneAlt(e){const t={};for(const i of e){const e=i.state.stateNumber;t[e]||(t[e]=0),t[e]++}return Object.values(t).some((e=>1===e))}static getSingleViableAlt(e){let t=null;for(const i of e){const e=i.nextSetBit(0);if(null===t)t=e;else if(t!==e)return Z.INVALID_ALT_NUMBER}return t??0}},gt=class e extends ze{static{c(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new ht;predictionState;constructor(e,t,i,s){super(t,s),this.parser=e,this.decisionToDFA=i}static getUniqueAlt(e){let t=Z.INVALID_ALT_NUMBER;for(const i of e)if(t===Z.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return Z.INVALID_ALT_NUMBER;return t}reset(){}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}adaptivePredict(t,i,s){(e.debug||e.traceATNSimulator)&&console.log("adaptivePredict decision "+i+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column);const n=this.decisionToDFA[i];this.predictionState={input:t,startIndex:t.index,outerContext:s??void 0,dfa:n};const r=t.mark(),o=t.index;try{let i;if(i=n.isPrecedenceDfa?n.getPrecedenceStartState(this.parser.getPrecedence()):n.s0,!i){s||(s=W.empty),e.debug&&console.log("predictATN decision "+n.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+s.toString(this.parser.ruleNames));const r=!1;let o=this.computeStartState(n.atnStartState,W.empty,r);n.isPrecedenceDfa?(o=this.applyPrecedenceFilter(o),i=this.addDFAState(n,Ve.fromConfigs(o)),n.setPrecedenceStartState(this.parser.getPrecedence(),i)):(i=this.addDFAState(n,Ve.fromConfigs(o)),n.s0=i)}const r=this.execATN(n,i,t,o,s);return e.debug&&console.log("DFA after predictATN: "+n.toString(this.parser.vocabulary)),r}finally{this.predictionState.dfa=void 0,this.mergeCache=new ht,t.seek(o),t.release(r)}}execATN(t,i,s,n,o){let a;(e.debug||e.traceATNSimulator)&&console.log("execATN decision "+t.decision+", DFA state "+i+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let c=i,l=s.LA(1);for(;;){let i=this.getExistingTargetState(c,l);if(i||(i=this.computeTargetState(t,c,l)),i===ze.ERROR){const e=this.noViableAlt(s,o,c.configs,n);if(s.seek(n),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c.configs,o),a!==Z.INVALID_ALT_NUMBER)return a;throw e}if(i.requiresFullContext&&this.predictionMode!==ut.SLL){let r=null;if(null!==i.predicates){e.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=s.index;if(t!==n&&s.seek(n),r=this.evalSemanticContext(i.predicates,o,!0),1===r.length)return e.debug&&console.log("Full LL avoided"),r.nextSetBit(0);t!==n&&s.seek(t)}e.dfaDebug&&console.log("ctx sensitive state "+o+" in "+i);const c=!0,l=this.computeStartState(t.atnStartState,o,c);return this.reportAttemptingFullContext(t,r,i.configs,n,s.index),a=this.execATNWithFullContext(t,i,l,s,n,o),a}if(i.isAcceptState){if(null===i.predicates)return i.prediction;const e=s.index;s.seek(n);const r=this.evalSemanticContext(i.predicates,o,!0);if(0===r.length)throw this.noViableAlt(s,o,i.configs,n);return 1===r.length||this.reportAmbiguity(t,i,n,e,!1,r,i.configs),r.nextSetBit(0)}c=i,l!==r.EOF&&(s.consume(),l=s.LA(1))}}getExistingTargetState(e,t){return e.edges[t+1]}computeTargetState(t,i,s){const n=this.computeReachSet(i.configs,s,!1);if(null===n)return this.addDFAEdge(t,i,s,ze.ERROR),ze.ERROR;let r=Ve.fromConfigs(n);const o=e.getUniqueAlt(n);if(e.debug){const e=ut.getConflictingAltSubsets(n);console.log("SLL altSubSets="+C(e)+", configs="+n+", predict="+o+", allSubsetsConflict="+ut.allSubsetsConflict(e)+", conflictingAlts="+this.getConflictingAlts(n))}return o!==Z.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=o,r.prediction=o):ut.hasSLLConflictTerminatingPrediction(this.predictionMode,n)&&(r.configs.conflictingAlts=this.getConflictingAlts(n),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.nextSetBit(0)),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(t.decision)),null!==r.predicates&&(r.prediction=Z.INVALID_ALT_NUMBER)),r=this.addDFAEdge(t,i,s,r),r}getRuleName(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getTokenName(e){if(e===r.EOF)return"EOF";const t=(this.parser?.vocabulary??f.EMPTY_VOCABULARY).getDisplayName(e);return t===e.toString()?t:t+"<"+e+">"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const t=e.deadEndConfigs;for(const i of t){let e="no edges";if(i.state.transitions.length>0){const t=i.state.transitions[0];if(t instanceof me)e="Atom "+this.getTokenName(t.labelValue);else if(t instanceof O){e=(t instanceof D?"~":"")+"Set "+t.label}}console.error(i.toString(this.parser,!0)+":"+e)}}predicateDFAState(e,t){const i=t.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),n=this.getPredsForAmbigAlts(s,e.configs,i);null!==n?(e.predicates=this.getPredicatePredictions(s,n),e.prediction=Z.INVALID_ALT_NUMBER):e.prediction=s.nextSetBit(0)}execATNWithFullContext(t,i,s,n,o,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let c,l=!1,h=s;n.seek(o);let d=n.LA(1),u=-1;for(;;){if(c=this.computeReachSet(h,d,true),null===c){const e=this.noViableAlt(n,a,h,o);n.seek(o);const t=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(t!==Z.INVALID_ALT_NUMBER)return t;throw e}const t=ut.getConflictingAltSubsets(c);if(e.debug&&console.log("LL altSubSets="+t+", predict="+ut.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+ut.resolvesToJustOneViableAlt(t)),c.uniqueAlt=e.getUniqueAlt(c),c.uniqueAlt!==Z.INVALID_ALT_NUMBER){u=c.uniqueAlt;break}if(this.predictionMode!==ut.LL_EXACT_AMBIG_DETECTION){if(u=ut.resolvesToJustOneViableAlt(t),u!==Z.INVALID_ALT_NUMBER)break}else if(ut.allSubsetsConflict(t)&&ut.allSubsetsEqual(t)){l=!0,u=ut.getSingleViableAlt(t);break}h=c,d!==r.EOF&&(n.consume(),d=n.LA(1))}return c.uniqueAlt!==Z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,c,o,n.index),u):(this.reportAmbiguity(t,i,o,n.index,l,c.getAlts(),c),u)}computeReachSet(t,i,s){e.debug&&console.log("in computeReachSet, starting closure: "+t);const n=new ee(s);let o=null;for(const c of t)if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+c),c.state instanceof ae)(s||i===r.EOF)&&(null===o&&(o=[]),o.push(c));else for(const t of c.state.transitions){const s=this.getReachableTarget(t,i);if(null!==s){const t=T.createWithConfig(s,c);n.add(t,this.mergeCache),e.debugAdd&&console.log("added "+t+" to intermediate")}}let a=null;if(null===o&&i!==r.EOF&&(1===n.length||e.getUniqueAlt(n)!==Z.INVALID_ALT_NUMBER)&&(a=n),null===a){a=new ee(s);const e=new p,t=i===r.EOF;for(const i of n)this.closure(i,a,e,!1,s,t)}if(i===r.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===n)),null!==o&&(!s||!ut.hasConfigInRuleStopState(a)))for(const e of o)a.add(e,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+t+" -> "+a),0===a.length?null:a}removeAllConfigsNotInRuleStopState(e,t){if(ut.allConfigsInRuleStopStates(e))return e;const i=new ee(e.fullCtx);for(const s of e)if(s.state instanceof ae)i.add(s,this.mergeCache);else if(t&&s.state.epsilonOnlyTransitions){if(this.atn.nextTokens(s.state).contains(r.EPSILON)){const e=this.atn.ruleToStopState[s.state.ruleIndex];i.add(T.createWithConfig(e,s),this.mergeCache)}}return i}computeStartState(t,i,s){const n=G(this.atn,i),r=new ee(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+t+" initialContext="+n.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const i=t.transitions[e].target,o=T.createWithContext(i,e+1,n),a=new p;this.closure(o,r,a,!0,s,!1)}return r}applyPrecedenceFilter(e){const t=[],i=new ee(e.fullCtx);for(const s of e){if(1!==s.alt)continue;const e=s.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==e&&(t[s.state.stateNumber]=s.context,e!==s.semanticContext?i.add(T.duplicate(s,e),this.mergeCache):i.add(s,this.mergeCache))}for(const s of e)if(1!==s.alt){if(!s.precedenceFilterSuppressed){const e=t[s.state.stateNumber]||null;if(null!==e&&e.equals(s.context))continue}i.add(s,this.mergeCache)}return i}getReachableTarget(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(t,i,s){let n=[];for(const e of i)t.get(e.alt)&&(n[e.alt]=y.orContext(n[e.alt]??null,e.semanticContext));let r=0;for(let e=1;e<s+1;e++){const t=n[e]??null;null===t?n[e]=y.NONE:t!==y.NONE&&(r+=1)}return 0===r&&(n=null),e.debug&&console.log("getPredsForAmbigAlts result "+C(n)),n}getPredicatePredictions(e,t){const i=[];let s=!1;for(let n=1;n<t.length;n++){const r=t[n];e.get(n)&&i.push({pred:r,alt:n}),r!==y.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,t){const i=this.splitAccordingToSemanticValidity(e,t),s=i[0],n=i[1];let r=this.getAltThatFinishedDecisionEntryRule(s);return r!==Z.INVALID_ALT_NUMBER||n.length>0&&(r=this.getAltThatFinishedDecisionEntryRule(n),r!==Z.INVALID_ALT_NUMBER)?r:Z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const t=[];for(const i of e)(i.reachesIntoOuterContext||i.state instanceof ae&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt);return 0===t.length?Z.INVALID_ALT_NUMBER:Math.min(...t)}splitAccordingToSemanticValidity(e,t){const i=new ee(e.fullCtx),s=new ee(e.fullCtx);for(const n of e)if(n.semanticContext!==y.NONE){n.semanticContext.evaluate(this.parser,t)?i.add(n):s.add(n)}else i.add(n);return[i,s]}evalSemanticContext(t,i,s){const n=new h;for(const r of t){if(r.pred===y.NONE){if(n.set(r.alt),!s)break;continue}const t=r.pred.evaluate(this.parser,i);if((e.debug||e.dfaDebug)&&console.log("eval pred "+r+"="+t),t&&(n.set(r.alt),!s))break}return n}closure(e,t,i,s,n,r){this.closureCheckingStopState(e,t,i,s,n,0,r)}closureCheckingStopState(t,i,s,n,r,o,a){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof ae){if(t.context&&!t.context.isEmpty()){for(let c=0;c<t.context.length;c++){if(t.context.getReturnState(c)===k.EMPTY_RETURN_STATE){if(r){i.add(T.createWithConfig(t.state,t,N.instance),this.mergeCache);continue}e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,i,s,n,r,o,a);continue}const l=this.atn.states[t.context.getReturnState(c)],h=t.context.getParent(c),d=T.createWithContext(l,t.alt,h,t.semanticContext);d.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(d,i,s,n,r,o-1,a)}return}if(r)return void i.add(t,this.mergeCache);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,i,s,n,r,o,a)}closure_(t,i,s,n,r,o,a){const c=t.state;c.epsilonOnlyTransitions||i.add(t,this.mergeCache);for(let l=0;l<c.transitions.length;l++){if(0===l&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=c.transitions[l],d=n&&!(h instanceof ve),u=this.getEpsilonTarget(t,h,d,0===o,r,a);if(u){let n=o;if(t.state.constructor.stateType===x.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){h.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,s.getOrAdd(u)!==u)continue;i.dipsIntoOuterContext=!0,n-=1,e.debug&&console.log("dips into outer ctx: "+u)}else{if(!h.isEpsilon&&s.getOrAdd(u)!==u)continue;h instanceof fe&&n>=0&&(n+=1)}this.closureCheckingStopState(u,i,s,d,r,n,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const t=e.state;if(t.constructor.stateType!==x.STAR_LOOP_ENTRY||!e.context)return!1;if(!t.precedenceRuleDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const i=e.context.length;for(let r=0;r<i;r++){if(this.atn.states[e.context.getReturnState(r)].ruleIndex!==t.ruleIndex)return!1}const s=t.transitions[0].target.endState.stateNumber,n=this.atn.states[s];for(let r=0;r<i;r++){const i=e.context.getReturnState(r),s=this.atn.states[i];if(1!==s.transitions.length||!s.transitions[0].isEpsilon)return!1;const o=s.transitions[0].target;if((s.constructor.stateType!==x.BLOCK_END||o!==t)&&(s!==n&&o!==n&&(o.constructor.stateType!==x.BLOCK_END||1!==o.transitions.length||!o.transitions[0].isEpsilon||o.transitions[0].target!==t)))return!1}return!0}getEpsilonTarget(t,i,s,n,o,a){switch(i.transitionType){case I.RULE:return this.ruleTransition(t,i);case I.PRECEDENCE:return this.precedenceTransition(t,i,s,n,o);case I.PREDICATE:return this.predTransition(t,i,s,n,o);case I.ACTION:if(e.debug){const e=i,t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return T.createWithConfig(i.target,t);case I.EPSILON:return T.createWithConfig(i.target,t);case I.ATOM:case I.RANGE:case I.SET:return a&&i.matches(r.EOF,0,1)?T.createWithConfig(i.target,t):null;default:return null}}precedenceTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&n)if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}predTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.ruleIndex+":"+i.predIndex+", ctx dependent="+i.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&(i.isCtxDependent&&n||!i.isCtxDependent))if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,i){e.debug&&console.log("CALL rule "+this.getRuleName(i.target.ruleIndex)+", ctx="+t.context);const s=i.followState,n=z(t.context??void 0,s.stateNumber);return T.createWithConfig(i.target,t,n)}getConflictingAlts(e){const t=ut.getConflictingAltSubsets(e);return ut.getAlts(t)}getConflictingAltsOrUniqueAlt(e){let t;return e.uniqueAlt!==Z.INVALID_ALT_NUMBER?(t=new h,t.set(e.uniqueAlt)):t=e.conflictingAlts,t}noViableAlt(e,t,i,s){return new lt(this.parser,e,e.get(s),e.LT(1),i,t)}addDFAEdge(t,i,s,n){return e.debug&&console.log("EDGE "+i+" -> "+n+" upon "+this.getTokenName(s)),n=this.addDFAState(t,n),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log("DFA=\n"+t.toString(null!=this.parser?this.parser.vocabulary:f.EMPTY_VOCABULARY)),i.edges[s+1]=n),n}addDFAState(t,i){if(i===ze.ERROR)return i;const s=t.getState(i);return null!==s?s:(i.configs.readOnly||(i.configs.optimizeConfigs(this),i.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+i),t.addState(i),i)}reportAttemptingFullContext(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,t,n,r,i,s)}reportContextSensitivity(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportContextSensitivity decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,t,n,r,i,s)}reportAmbiguity(t,i,s,n,r,o,a){if(e.debug||e.retryDebug){const e=new m(s,n+1);console.log("reportAmbiguity "+o+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,t,s,n,r,o,a)}},pt=class{static{c(this,"PredictionContextCache")}cache=new P(u.instance);add(e){if(e===N.instance)return e;const t=this.cache.get(e);return t||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},mt=class extends gt{static{c(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;sllStopIndex=0;llStopIndex=0;constructor(e){const t=e.interpreter.sharedContextCache;if(super(e,e.interpreter.atn,e.interpreter.decisionToDFA,t),t){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let e=0;e<this.numDecisions;e++)this.decisions[e]=new Ge(e)}}adaptivePredict(e,t,i){try{this.sllStopIndex=-1,this.llStopIndex=-1,this.currentDecision=t;const s=performance.now(),n=super.adaptivePredict(e,t,i),r=performance.now();this.decisions[t].timeInPrediction+=r-s,this.decisions[t].invocations++;const o=this.sllStopIndex-this.predictionState.startIndex+1;if(this.decisions[t].sllTotalLook+=o,this.decisions[t].sllMinLook=0===this.decisions[t].sllMinLook?o:Math.min(this.decisions[t].sllMinLook,o),o>this.decisions[t].sllMaxLook&&(this.decisions[t].sllMaxLook=o,this.decisions[t].sllMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}),this.llStopIndex>=0){const i=this.llStopIndex-this.predictionState.startIndex+1;this.decisions[t].llTotalLook+=i,this.decisions[t].llMinLook=0===this.decisions[t].llMinLook?i:Math.min(this.decisions[t].llMinLook,i),i>this.decisions[t].llMaxLook&&(this.decisions[t].llMaxLook=i,this.decisions[t].llMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.llStopIndex,fullCtx:!0})}return n}finally{this.currentDecision=-1}}getExistingTargetState(e,t){this.sllStopIndex=this.predictionState.input.index;const i=super.getExistingTargetState(e,t);return void 0!==i&&(this.decisions[this.currentDecision].sllDFATransitions++,i===ze.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1})),this.currentState=i,i}computeTargetState(e,t,i){const s=super.computeTargetState(e,t,i);return this.currentState=s,s}computeReachSet(e,t,i){i&&this.predictionState?.input&&(this.llStopIndex=this.predictionState.input.index);const s=super.computeReachSet(e,t,i);return this.predictionState?.input&&(i?(this.decisions[this.currentDecision].llATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}))),s}reportAttemptingFullContext(e,t,i,s,n){this.conflictingAltResolvedBySLL=null!==t?t.nextSetBit(0):i.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,t&&super.reportAttemptingFullContext(e,t,i,s,n)}reportContextSensitivity(e,t,i,s,n){t!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:s,stopIndex:n,fullCtx:!0}),super.reportContextSensitivity(e,t,i,s,n)}reportAmbiguity(e,t,i,s,n,r,o){let a;a=r?r.nextSetBit(0):o.getAlts().nextSetBit(0),this.predictionState?.input&&(o.fullCtx&&a!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:r,decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:o.fullCtx})),super.reportAmbiguity(e,t,i,s,n,r,o)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(L||(L={})).toString=c((e=>`(${e.pred}, ${e.alt})`),"toString");var ft,_t=class extends Error{static{c(this,"ParseCancellationException")}constructor(e){super(),this.cause=e}},vt=(class{static{c(this,"InterpreterDataReader")}static parseInterpreterData(e){const t=[],i=[],s=[],n=[],r=[],o=e.split("\n");let a=0,c=o[a++];if("token literal names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;n.push("null"===c?null:c)}if(c=o[a++],"token symbolic names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;r.push("null"===c?null:c)}if(c=o[a++],"rule names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;t.push(c)}if(c=o[a++],"channel names:"===c){for(;;){if(c=o[a++],0===c.length)break;i.push(c)}if(c=o[a++],"mode names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;s.push(c)}}if(c=o[a++],"atn:"!==c)throw new Error("Unexpected data entry");c=o[a++];const l=c.split(",");let h;const d=[];for(let u=0;u<l.length;++u){const e=l[u];h=e.startsWith("[")?Number(e.substring(1).trim()):e.endsWith("]")?Number(e.substring(0,e.length-1).trim()):Number(e.trim()),d[u]=h}return{atn:(new Be).deserialize(d),vocabulary:new f(n,r,[]),ruleNames:t,channels:i.length>0?i:void 0,modes:s.length>0?s:void 0}}},class{static{c(this,"AbstractParseTreeVisitor")}visit(e){return e.accept(this)}visitChildren(e){let t=this.defaultResult();const i=e.getChildCount();for(let s=0;s<i&&this.shouldVisitNextChild(e,t);s++){const i=e.getChild(s);if(i){const e=i.accept(this);t=this.aggregateResult(t,e)}}return t}visitTerminal(e){return this.defaultResult()}visitErrorNode(e){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(e,t){return!0}aggregateResult(e,t){return t}});(class e{static{c(this,"ParseTreeWalker")}static DEFAULT=new e;walk(e,t){if(t instanceof U)e.visitErrorNode(t);else if(t instanceof F)e.visitTerminal(t);else{const i=t;this.enterRule(e,i);for(let s=0;s<t.getChildCount();s++)this.walk(e,t.getChild(s));this.exitRule(e,i)}}enterRule(e,t){const i=t.ruleContext;e.enterEveryRule(i),i.enterRule(e)}exitRule(e,t){const i=t.ruleContext;i.exitRule(e),e.exitEveryRule(i)}});(ft||(ft={})).fromString=c((e=>new Ct(e)),"fromString");var Ct=class{static{c(this,"CharStreamImpl")}name="";index=0;data;constructor(e){const t=[];for(const i of e)t.push(i.codePointAt(0));this.data=new Uint32Array(t)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const t=this.index+e-1;return t<0||t>=this.data.length?r.EOF:this.data[t]}mark(){return-1}release(e){}seek(e){e<=this.index?this.index=e:this.index=Math.min(e,this.data.length)}getTextFromRange(e,t){return(t=t??this.data.length-1)>=this.data.length&&(t=this.data.length-1),e>=this.data.length?"":this.stringFromRange(e,t+1)}getTextFromInterval(e){const t=e.start;let i=e.stop;return i>=this.data.length&&(i=this.data.length-1),t>=this.data.length?"":this.stringFromRange(t,i+1)}toString(){return this.stringFromRange(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:s.UNKNOWN_SOURCE_NAME}stringFromRange(e,t){const i=this.data.slice(e,t);let s="";return i.forEach((e=>{s+=String.fromCodePoint(e)})),s}},Et=c((e=>void 0!==e.setText),"isWritableToken"),bt=class{static{c(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(e=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!e&&this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){const t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t<e;t++){const e=this.tokenSource.nextToken();if(Et(e)&&(e.tokenIndex=this.tokens.length),this.tokens.push(e),e.type===r.EOF)return this.fetchedEOF=!0,t+1}return e}getTokens(e,t,i){if(this.lazyInit(),void 0===e&&void 0===t)return this.tokens;if(e??=0,void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===i)return this.tokens.slice(e,t+1);const s=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(let n=e;n<t;n++){const e=this.tokens[n];if(e.type===r.EOF){s.push(e);break}i.has(e.type)&&s.push(e)}return s}LA(e){return this.LT(e)?.type??r.INVALID_TYPE}LB(e){return this.p-e<0?null:this.tokens[this.p-e]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);const t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==t;){if(i.type===r.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(e>=this.tokens.length)return this.tokens.length-1;for(;e>=0;){const i=this.tokens[e];if(i.type===r.EOF||i.channel===t)return e;--e}return e}getHiddenTokensToRight(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.nextTokenOnChannel(e+1,Je.DEFAULT_TOKEN_CHANNEL),s=e+1,n=-1===i?this.tokens.length-1:i;return this.filterForChannel(s,n,t)}getHiddenTokensToLeft(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.previousTokenOnChannel(e-1,Je.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return;const s=i+1,n=e-1;return this.filterForChannel(s,n,t)}filterForChannel(e,t,i){const s=[];for(let n=e;n<t+1;n++){const e=this.tokens[n];-1===i?e.channel!==Je.DEFAULT_TOKEN_CHANNEL&&s.push(e):e.channel===i&&s.push(e)}if(0!==s.length)return s}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(m.of(0,this.size-1))}getTextFromInterval(e){const t=e.start;let i=e.stop;if(t<0||i<0)return"";this.sync(i),i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let n=t;n<=i;++n){const e=this.tokens[n];if(e.type===r.EOF)break;s+=e.text}return s}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,t){return null!==e&&null!==t?this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}},St=class extends bt{static{c(this,"CommonTokenStream")}channel=r.DEFAULT_CHANNEL;constructor(e,t){super(e),this.channel=t??r.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(0===e||this.index-e<0)return null;let t=this.index,i=1;for(;i<=e;)t=this.previousTokenOnChannel(t-1,this.channel),i+=1;return t<0?null:this.tokens[t]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);let t=this.index,i=1;for(;i<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),i+=1;return this.tokens[t]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(const t of this.tokens)if(t.channel===this.channel&&(e+=1),t.type===r.EOF)break;return e}},yt=class e extends Je{static{c(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}action(e,t,i){if(4===t)this.ID_action(e,i)}ID_action(t,i){if(0===i){const t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=e.TOKEN_REF:this.type=e.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static vocabulary=new f(e.literalNames,e.symbolicNames,[]);get vocabulary(){return e.vocabulary}static decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))},wt=class extends Ke{static{c(this,"XPathLexerErrorListener")}syntaxError(e,t,i,s,n,r){}},Rt=class{static{c(this,"XPathElement")}invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Lt=class extends Rt{static{c(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return B.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Tt=class extends Rt{static{c(this,"XPathRuleElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof W&&(i.ruleIndex===this.ruleIndex&&!this.invert||i.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(i);return t}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},xt=class extends Rt{static{c(this,"XPathTokenAnywhereElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){return B.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},kt=class extends Rt{static{c(this,"XPathTokenElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof F&&i.symbol&&(i.symbol.type===this.tokenType&&!this.invert||i.symbol.type!==this.tokenType&&this.invert)&&t.push(i);return t}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},At=class extends Rt{static{c(this,"XPathWildcardAnywhereElement")}constructor(){super(It.WILDCARD)}evaluate(e){return this.invert?[]:B.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Nt=class extends Rt{static{c(this,"XPathWildcardElement")}constructor(){super(It.WILDCARD)}evaluate(e){const t=[];if(this.invert)return t;for(const i of B.getChildren(e))t.push(i);return t}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},It=class e{static{c(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(e,t){this.parser=e,this.path=t,this.elements=this.split(t)}static findAll(t,i,s){return new e(s,i).evaluate(t)}split(e){const t=new yt(ft.fromString(e));t.recover=e=>{throw e},t.removeErrorListeners(),t.addErrorListener(new wt);const i=new St(t);try{i.fill()}catch(c){if(c instanceof Ze){const i="Invalid tokens or characters at index "+t.column+" in path '"+e+"' -- "+c.message;throw new RangeError(i)}throw c}const s=i.getTokens(),n=[],o=s.length;let a=0;e:for(;a<o;){const e=s[a];let t;switch(e.type){case yt.ROOT:case yt.ANYWHERE:const i=e.type===yt.ANYWHERE;a++,t=s[a];const o=t.type===yt.BANG;o&&(a++,t=s[a]);const c=this.getXPathElement(t,i);c.invert=o,n.push(c),a++;break;case yt.TOKEN_REF:case yt.RULE_REF:case yt.WILDCARD:n.push(this.getXPathElement(e,!1)),++a;break;case r.EOF:break e;default:throw new Error("Unknown path element "+e)}}return n}evaluate(e){const t=new W(null);t.addChild(e);let i=new Set([t]),s=0;for(;s<this.elements.length;){const e=new Set;for(const t of i)if(t.getChildCount()>0){this.elements[s].evaluate(t).forEach((t=>{e.add(t)}),e)}s++,i=e}return i}getXPathElement(e,t){if(e.type===r.EOF)throw new Error("Missing path element at end of path");const i=e.text;if(null==i)throw new Error("Expected wordToken to have text content.");const s=this.parser.getTokenType(i),n=this.parser.getRuleIndex(i);switch(e.type){case yt.WILDCARD:return t?new At:new Nt;case yt.TOKEN_REF:case yt.STRING:if(s===r.INVALID_TYPE)throw new Error(i+" at index "+e.start+" isn't a valid token name");return t?new xt(i,s):new kt(i,s);default:if(-1===n)throw new Error(i+" at index "+e.start+" isn't a valid rule name");return t?new Lt(i,n):new Tt(i,n)}}},Ot=class{static{c(this,"Chunk")}},Dt=class{static{c(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(e,t,i,s){this.tree=e,this.pattern=t,this.labels=i,this.mismatchedNode=s}get(e){const t=this.labels.get(e);return t&&0!==t.length?t[t.length-1]:null}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Mt=class{static{c(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(e,t,i,s){this.matcher=e,this.patternRuleIndex=i,this.pattern=t,this.patternTree=s}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,t){const i=It.findAll(e,t,this.matcher.getParser()),s=new Array;for(const n of i){const e=this.match(n);e.succeeded()&&s.push(e)}return s}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},Pt=class extends Xe{static{c(this,"InputMismatchException")}constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},Ft=class extends Xe{static{c(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(e,t,i=null){super({message:Ut(t??"no predicate",i??null),recognizer:e,input:e.inputStream,ctx:e.context});const s=e.atn.states[e.state].transitions[0];s instanceof Se?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken()}},Ut=c(((e,t)=>null!==t?t:"failed predicate: {"+e+"}?"),"formatMessage"),Ht=class{static{c(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new _;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new _,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof lt?this.reportNoViableAlternative(e,t):t instanceof Pt?this.reportInputMismatch(e,t):t instanceof Ft?this.reportFailedPredicate(e,t):e.notifyErrorListeners(t.message,t.offendingToken,t))}recover(e,t){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const t=e.atn.states[e.state],i=e.tokenStream.LA(1),s=e.atn.nextTokens(t);if(s.contains(i))return this.nextTokensContext=null,void(this.nextTokenState=x.INVALID_STATE_NUMBER);if(s.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);else switch(t.constructor.stateType){case x.BLOCK_START:case x.STAR_BLOCK_START:case x.PLUS_BLOCK_START:case x.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new Pt(e);case x.PLUS_LOOP_BACK:case x.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new _;t.addSet(e.getExpectedTokens());const i=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,i);break}}}reportNoViableAlternative(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i=e.tokenStream;let s;s=null!==i&&t.startToken?t.startToken.type===r.EOF?"<EOF>":i.getTextFromRange(t.startToken,t.offendingToken):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(n,t.offendingToken,t)}reportInputMismatch(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t.offendingToken,t)}reportFailedPredicate(e,t){const i="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;e.notifyErrorListeners(i,t.offendingToken,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(i,t,null)}recoverInline(e){const t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Pt(e)}singleTokenInsertion(e){const t=e.tokenStream?.LA(1)??-1,i=e.atn,s=i.states[e.state].transitions[0].target;return!!i.nextTokens(s,e.context??void 0).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){const t=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();const t=e.getCurrentToken();return this.reportMatch(e),t}return null}getMissingSymbol(e){const t=e.getCurrentToken(),i=this.getExpectedTokens(e);let s,n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement),s=n===r.EOF?"<missing EOF>":"<missing "+e.vocabulary.getDisplayName(n)+">";let o=t;const a=e.tokenStream?.LT(-1);return o.type===r.EOF&&null!==a&&(o=a),e.getTokenFactory().create(o.source,n,s,r.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let t=e.text;return t||(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const t=e.atn;let i=e.context;const s=new _;for(;null!==i&&i.invokingState>=0;){const e=t.states[i.invokingState].transitions[0],n=t.nextTokens(e.followState);s.addSet(n),i=i.parent}return s.removeOne(r.EPSILON),s}consumeUntil(e,t){let i=e.tokenStream?.LA(1)??-1;for(;i!==r.EOF&&!t.contains(i);)e.consume(),i=e.tokenStream?.LA(1)??-1}},Bt=class extends Ht{static{c(this,"BailErrorStrategy")}recover(e,t){throw new _t(t)}recoverInline(e){const t=new Pt(e);throw new _t(t)}sync(e){}},Wt=class{static{c(this,"ListTokenSource")}sourceName;tokenFactory=Qe.DEFAULT;tokens=[];i=0;eofToken=null;constructor(e,t){this.tokens=e,this.sourceName=t??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1],t=e.text;if(t){const e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.column+e.stop-e.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let e=-1;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1].stop;-1!==t&&(e=t+1)}const t=Math.max(-1,e-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],r.EOF,"EOF",r.DEFAULT_CHANNEL,e,t,this.line,this.column)}return this.eofToken}const e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===r.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1];let t=e.line;const i=e.text;if(i)for(const s of i)"\n"===s&&t++;return t}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const e=this.inputStream;return null!==e?e.getSourceName():"List"}},Vt=class extends W{static{c(this,"InterpreterRuleContext")}#c;constructor(e,t,i){super(t,i),this.#c=e}get ruleIndex(){return this.#c}},zt=class{static{c(this,"TraceListener")}parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},Gt=class extends $e{static{c(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new Ht;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;tracer=null;bypassAltsAtnCache=null;#l;constructor(e){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#l=e}reset(e=!0){e&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(e){let t=this.getCurrentToken();return t.type===e?(e===r.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}getParseListeners(){return this.parseListeners??[]}addParseListener(e){if(null===e)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(e)}removeParseListener(e){if(null!==this.parseListeners&&null!==e){const t=this.parseListeners.indexOf(e);t>=0&&this.parseListeners.splice(t,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.forEach((t=>{t.enterEveryRule(e),e.enterRule(t)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.slice(0).reverse().forEach((t=>{e.exitRule(t),t.exitEveryRule(e)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(e){this.inputStream.tokenSource.tokenFactory=e}compileParseTreePattern(e,t,i){if(!i&&null!==this.tokenStream){const e=this.tokenStream.tokenSource;e instanceof Je&&(i=e)}if(!i)throw new Error("Parser can't discover a lexer to use");return new Jt(i,this).compile(e,t)}getATNWithBypassAlts(){const e=this.serializedATN;if(null===e)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.bypassAltsAtnCache)return this.bypassAltsAtnCache;return this.bypassAltsAtnCache=new Be({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(e),this.bypassAltsAtnCache}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#l}set inputStream(e){this.tokenStream=e}get tokenStream(){return this.#l}set tokenStream(e){this.reset(!1),this.#l=e}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(e,t,i){i=i??null,null===(t=t??null)&&(t=this.getCurrentToken()),this.syntaxErrors+=1;const s=t.line,n=t.column;this.errorListenerDispatch.syntaxError(this,t,s,n,e,i)}consume(){const e=this.getCurrentToken();e.type!==r.EOF&&this.tokenStream.consume();const t=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||t){let i;i=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,e)):this.context.addTokenNode(e),t&&this.parseListeners.forEach((e=>{i instanceof U?e.visitErrorNode(i):e.visitTerminal(i)}))}return e}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(e,t,i){this.state=t,this.context=e,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(e,t){e.setAltNumber(t),this.buildParseTrees&&this.context!==e&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(e)),this.context=e}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(e,t,i,s){this.state=t,this.precedenceStack.push(s),this.context=e,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,i){const s=this.context;s.parent=e,s.invokingState=t,s.stop=this.inputStream.LT(-1),this.context=e,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const t=this.context,i=this.getParseListeners();if(null!==i&&i.length>0)for(;this.context!==e;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=e;t.parent=e,this.buildParseTrees&&null!==e&&e.addChild(t)}getInvokingContext(e){let t=this.context;for(;null!==t;){if(t.ruleIndex===e)return t;t=t.parent}return null}precpred(e,t){return t>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(e){const t=this.interpreter.atn;let i=this.context;const s=t.states[this.state];let n=t.nextTokens(s);if(n.contains(e))return!0;if(!n.contains(r.EPSILON))return!1;for(;null!==i&&i.invokingState>=0&&n.contains(r.EPSILON);){const s=t.states[i.invokingState].transitions[0];if(n=t.nextTokens(s.followState),n.contains(e))return!0;i=i.parent}return!(!n.contains(r.EPSILON)||e!==r.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){return this.getRuleIndexMap().get(e)??-1}getRuleInvocationStack(e){null===(e=e??null)&&(e=this.context);const t=[];for(;null!==e;){const i=e.ruleIndex;i<0?t.push("n/a"):t.push(this.ruleNames[i]),e=e.parent}return t}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let e=!1;for(const t of this.interpreter.decisionToDFA)t.length>0&&(e&&console.log(),this.printer&&(this.printer.println("Decision "+t.decision+":"),this.printer.print(t.toString(this.vocabulary))),e=!0)}getSourceName(){return this.inputStream.getSourceName()}getParseInfo(){const e=this.interpreter;if(e instanceof mt)return new ct(e)}setProfile(e){const t=this.interpreter,i=t.predictionMode;if(e)t instanceof mt||(this.interpreter=new mt(this));else if(t instanceof mt){const e=t.sharedContextCache;if(e){const i=new gt(this,this.atn,t.decisionToDFA,e);this.interpreter=i}}this.interpreter.predictionMode=i}setTrace(e){e?(null!==this.tracer&&this.removeParseListener(this.tracer),this.tracer=new zt(this),this.addParseListener(this.tracer)):(this.removeParseListener(this.tracer),this.tracer=null)}createTerminalNode(e,t){return new F(t)}createErrorNode(e,t){return new U(t)}},jt=class extends Gt{static{c(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];overrideDecisionAlt=-1;overrideDecisionReached=!1;decisionToDFA;sharedContextCache=new pt;pushRecursionContextStates;#h=-1;#d=-1;#u;#g;#p;#m;constructor(e,t,i,s,n){super(n),this.#u=e,this.#g=s,this.#p=i.slice(0),this.#m=t,this.pushRecursionContextStates=new h;for(const r of s.states)r instanceof de&&r.precedenceRuleDecision&&this.pushRecursionContextStates.set(r.stateNumber);this.decisionToDFA=s.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new gt(this,s,this.decisionToDFA,this.sharedContextCache)}reset(){super.reset(),this.overrideDecisionReached=!1,this.overrideDecisionRoot=null}get atn(){return this.#g}get vocabulary(){return this.#m}get ruleNames(){return this.#p}get grammarFileName(){return this.#u}get atnState(){return this.#g.states[this.state]}parse(e){const t=this.#g.ruleToStartState[e];for(this.rootContext=this.createInterpreterRuleContext(null,x.INVALID_STATE_NUMBER,e),t.isLeftRecursiveRule?this.enterRecursionRule(this.rootContext,t.stateNumber,e,0):this.enterRule(this.rootContext,t.stateNumber,e);;){const e=this.atnState;if(e.constructor.stateType===x.RULE_STOP){if(this.context?.isEmpty()){if(t.isLeftRecursiveRule){const e=this.context,t=this.parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this.rootContext}this.visitRuleStopState(e)}else try{this.visitState(e)}catch(i){if(!(i instanceof Xe))throw i;this.state=this.#g.ruleToStopState[e.ruleIndex].stateNumber,this.errorHandler.reportError(this,i),this.recover(i)}}}addDecisionOverride(e,t,i){this.#h=e,this.#d=t,this.overrideDecisionAlt=i}get overrideDecision(){return this.#h}get overrideDecisionInputIndex(){return this.#d}enterRecursionRule(e,t,i,s){this.parentContextStack.push([this.context,e.invokingState]),super.enterRecursionRule(e,t,i,s)}get serializedATN(){throw new Error("The ParserInterpreter does not support the serializedATN property.")}visitState(e){let t=1;e instanceof ie&&(t=this.visitDecisionState(e));const i=e.transitions[t-1];switch(i.transitionType){case I.EPSILON:if(this.pushRecursionContextStates.get(e.stateNumber)&&i.target.constructor.stateType!==x.LOOP_END){const t=this.parentContextStack[this.parentContextStack.length-1],i=this.createInterpreterRuleContext(t[0],t[1],this.context.ruleIndex);this.pushNewRecursionContext(i,this.#g.ruleToStartState[e.ruleIndex].stateNumber,this.context.ruleIndex)}break;case I.ATOM:this.match(i.label.minElement);break;case I.RANGE:case I.SET:case I.NOT_SET:i.matches(this.inputStream.LA(1),r.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case I.WILDCARD:this.matchWildcard();break;case I.RULE:const t=i.target,s=t.ruleIndex,n=this.createInterpreterRuleContext(this.context,e.stateNumber,s);t.isLeftRecursiveRule?this.enterRecursionRule(n,t.stateNumber,s,i.precedence):this.enterRule(n,i.target.stateNumber,s);break;case I.PREDICATE:const o=i;if(!this.sempred(this.context,o.ruleIndex,o.predIndex))throw new Ft(this);break;case I.ACTION:const a=i;this.action(this.context,a.ruleIndex,a.actionIndex);break;case I.PRECEDENCE:if(!this.precpred(this.context,i.precedence)){const e=i.precedence;throw new Ft(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=i.target.stateNumber}visitDecisionState(e){let t=1;if(e.transitions.length>1){this.errorHandler.sync(this);const i=e.decision;i!==this.#h||this.inputStream.index!==this.#d||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this.inputStream,i,this.context):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0)}return t}createInterpreterRuleContext(e,t,i){return new Vt(i,e,t)}visitRuleStopState(e){if(this.#g.ruleToStartState[e.ruleIndex].isLeftRecursiveRule){const[e,t]=this.parentContextStack.pop();this.unrollRecursionContexts(e),this.state=t}else this.exitRule();const t=this.#g.states[this.state].transitions[0];this.state=t.followState.stateNumber}recover(e){const t=this.inputStream.index;if(this.errorHandler.recover(this,e),this.inputStream.index===t){const t=e.offendingToken;if(!t)throw new Error("Expected exception to have an offending token");const i=t.tokenSource,s=[i,i?.inputStream??null];if(e instanceof Pt){const i=e.getExpectedTokens();if(!i)throw new Error("Expected the exception to provide expected tokens");let n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement);const o=this.getTokenFactory().create(s,n,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,o))}else{const e=this.getTokenFactory().create(s,r.INVALID_TYPE,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,e))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Kt=class extends Map{static{c(this,"MultiMap")}map(e,t){let i=this.get(e);i||(i=new Array,this.set(e,i)),i.push(t)}getPairs(){const e=new Array;for(const t of this.keys()){const i=this.get(t)??[];for(const s of i)e.push([t,s])}return e}toString(){const e=[];return this.forEach(((t,i)=>{e.push(`${i}=[${t.join(", ")}]`)})),`{${e.join(", ")}}`}},Yt=class extends Error{static{c(this,"CannotInvokeStartRuleError")}constructor(e){super(),this.cause=e}},qt=class{static{c(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(e,t,i){this.ruleName=e,this.bypassTokenType=t,this.label=i}get channel(){return r.DEFAULT_CHANNEL}get text(){return void 0!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},$t=class extends Error{static{c(this,"StartRuleDoesNotConsumeFullPatternError")}},Qt=class extends Ot{static{c(this,"TagChunk")}tag;label;constructor(...e){let t,i;if(1===e.length?i=e[0]:(t=e[0],i=e[1]),super(),!i)throw new Error("tag cannot be null or empty");this.label=t,this.tag=i}toString(){return void 0!==this.label?this.label+":"+this.tag:this.tag}},Xt=class extends Ot{static{c(this,"TextChunk")}text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},Zt=class extends H{static{c(this,"TokenTagToken")}tokenName;label;constructor(e,t,i){super({type:t,source:H.EMPTY_SOURCE}),this.tokenName=e,this.label=i}get text(){return void 0!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Jt=class{static{c(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(e,t){this.lexer=e,this.parser=t}setDelimiters(e,t,i){if(null===e||0===e.length)throw new Error("start cannot be null or empty");if(null===t||0===t.length)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=i}matches(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt;return null===this.matchImpl(t,i.getPatternTree(),s)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.matches(t,n)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt,n=this.matchImpl(t,i.getPatternTree(),s);return new Dt(t,i,s,n)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.match(t,n)}default:throw new Error("Invalid number of arguments")}}compile(e,t){const i=this.tokenize(e),s=new Wt(i),n=new St(s),o=new jt(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),n);o.removeErrorListeners();let a=null;try{o.errorHandler=new Bt,a=o.parse(t)}catch(c){throw c instanceof _t?c.cause:c instanceof Xe?c:c instanceof Error?new Yt(c):c}if(n.LA(1)!==r.EOF)throw new $t;return new Mt(this,e,t,a)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){const t=this.split(e),i=new Array;for(const s of t)if(s instanceof Qt){const t=s,n=t.tag[0];if(n===n.toUpperCase()){const s=this.parser.getTokenType(t.tag);if(s===r.INVALID_TYPE)throw new Error("Unknown token "+t.tag+" in pattern: "+e);const n=new Zt(t.tag,s,t.label);i.push(n)}else{if(n!==n.toLowerCase())throw new Error("invalid tag: "+t.tag+" in pattern: "+e);{const s=this.parser.getRuleIndex(t.tag);if(-1===s)throw new Error("Unknown rule "+t.tag+" in pattern: "+e);const n=this.parser.getATNWithBypassAlts().ruleToTokenType[s];i.push(new qt(t.tag,n,t.label))}}}else{const e=s,t=ft.fromString(e.text);this.lexer.inputStream=t;let n=this.lexer.nextToken();for(;n.type!==r.EOF;)i.push(n),n=this.lexer.nextToken()}return i}split(e){let t=0;const i=e.length,s=new Array,n=new Array,r=new Array;for(;t<i;)t===e.indexOf(this.escape+this.start,t)?t+=this.escape.length+this.start.length:t===e.indexOf(this.escape+this.stop,t)?t+=this.escape.length+this.stop.length:t===e.indexOf(this.start,t)?(n.push(t),t+=this.start.length):t===e.indexOf(this.stop,t)?(r.push(t),t+=this.stop.length):t++;if(n.length>r.length)throw new Error("unterminated tag in pattern: "+e);if(n.length<r.length)throw new Error("missing start tag in pattern: "+e);const o=n.length;for(let a=0;a<o;a++)if(n[a]>=r[a])throw new Error("tag delimiters out of order in pattern: "+e);if(0===o){const t=e.substring(0,i);s.push(new Xt(t))}if(o>0&&n[0]>0){const t=e.substring(0,n[0]);s.push(new Xt(t))}for(let a=0;a<o;a++){const t=e.substring(n[a]+this.start.length,r[a]);let i,c=t;const l=t.indexOf(":");if(l>=0&&(i=t.substring(0,l),c=t.substring(l+1,t.length)),s.push(new Qt(i,c)),a+1<o){const t=e.substring(r[a]+this.stop.length,n[a+1]);s.push(new Xt(t))}}if(o>0){const t=r[o-1]+this.stop.length;if(t<i){const n=e.substring(t,i);s.push(new Xt(n))}}for(let a=0;a<s.length;a++){const e=s[a];if(e instanceof Xt){const t=e,i=t.text.replaceAll(this.escape,"");i.length<t.text.length&&(s[a]=new Xt(i))}}return s}matchImpl(e,t,i){if(e instanceof F&&t instanceof F){const s=e,n=t;let r;if(s.getSymbol().type===n.getSymbol().type)if(n.getSymbol()instanceof Zt){const t=n.getSymbol();i.map(t.tokenName,e),void 0!==t.label&&i.map(t.label,e)}else s.getText()===n.getText()||r||(r=s);else r||(r=s);return r}if(e instanceof W&&t instanceof W){let s;const n=this.getRuleTagToken(t);if(n)return e.ruleIndex===t.ruleIndex?(i.map(n.ruleName,e),n.label&&i.map(n.label,e)):s||(s=e),s;if(e.getChildCount()!==t.getChildCount())return s||(s=e),s;const r=e.getChildCount();for(let o=0;o<r;o++){const s=this.matchImpl(e.getChild(o),t.getChild(o),i);if(s)return s}return s}return e}getRuleTagToken(e){if(e instanceof W&&1===e.getChildCount()&&e.getChild(0)instanceof F){const t=e.getChild(0);if(t.getSymbol()instanceof qt)return t.getSymbol()}}},ei=(class extends Ke{static{c(this,"DiagnosticErrorListener")}exactOnly;constructor(e){super(),this.exactOnly=e??!0}reportAmbiguity=c(((e,t,i,s,n,r,o)=>{if(this.exactOnly&&!n)return;const a=this.getDecisionDescription(e,t),c=this.getConflictingAlts(r,o),l=e.tokenStream?.getTextFromInterval(m.of(i,s)),h=`reportAmbiguity d=${a}: ambigAlts=${c}, input='${l}'`;e.notifyErrorListeners(h,null,null)}),"reportAmbiguity");reportAttemptingFullContext=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportAttemptingFullContext d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportAttemptingFullContext");reportContextSensitivity=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportContextSensitivity d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportContextSensitivity");getDecisionDescription=c(((e,t)=>{const i=t.decision,s=t.atnStartState.ruleIndex,n=e.ruleNames;if(s<0||s>=n.length)return i.toString();const r=n[s];return 0===r.length?i.toString():`${i} (${r})`}),"getDecisionDescription");getConflictingAlts=c(((e,t)=>{if(e)return e;const i=new h;for(let s=0;s<t.configs.length;s++)i.set(t.configs[s].alt);return i}),"getConflictingAlts")},class extends Je{static{c(this,"LexerInterpreter")}decisionToDFA;sharedContextCache=new pt;#u;#g;#p;#f;#_;#m;constructor(e,t,i,s,n,r,o){if(super(o),r.grammarType!==Z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#u=e,this.#g=r,this.#p=i.slice(0),this.#f=s.slice(0),this.#_=n.slice(0),this.#m=t,this.decisionToDFA=r.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new at(this,r,this.decisionToDFA,this.sharedContextCache)}get atn(){return this.#g}get grammarFileName(){return this.#u}get ruleNames(){return this.#p}get channelNames(){return this.#f}get modeNames(){return this.#_}get vocabulary(){return this.#m}get serializedATN(){throw new Error("The LexerInterpreter does not support the serializedATN property.")}},class e{static{c(this,"RuntimeMetaData")}static VERSION="4.13.1";static getRuntimeVersion(){return e.VERSION}static checkVersion(t,i){const s=e.VERSION;let n=!1,r=!1;n=s!==t&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(t),r=s!==i&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(i),n&&console.error(`ANTLR Tool version ${t} used for code generation does not match the current runtime version ${s}`),r&&console.error(`ANTLR Runtime version ${i} used for parser compilation does not match the current runtime version ${s}`)}static getMajorMinorVersion(e){const t=e.indexOf("."),i=t>=0?e.indexOf(".",t+1):-1,s=e.indexOf("-");let n=e.length;return i>=0&&(n=Math.min(n,i)),s>=0&&(n=Math.min(n,s)),e.substring(0,n)}},class e{static{c(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME="default";static PROGRAM_INIT_SIZE=100;static MIN_TOKEN_INDEX=0;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(e){this.tokens=e}getTokenStream(){return this.tokens}insertAfter(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ii(this.tokens,n,r.length,i);r.push(o)}insertBefore(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ti(this.tokens,n,r.length,i);r.push(o)}replaceSingle(t,i,s=e.DEFAULT_PROGRAM_NAME){this.replace(t,t,i,s)}replace(t,i,s,n=e.DEFAULT_PROGRAM_NAME){if("number"!==typeof t&&(t=t.tokenIndex),"number"!==typeof i&&(i=i.tokenIndex),t>i||t<0||i<0||i>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${i}(size=${this.tokens.size})`);const r=this.getProgram(n),o=new si(this.tokens,t,i,r.length,s);r.push(o)}delete(t,i,s=e.DEFAULT_PROGRAM_NAME){null==i&&(i=t),this.replace(t,i,null,s)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){const t=[];return this.programs.set(e,t),t}getText(t,i=e.DEFAULT_PROGRAM_NAME){let s;s=t instanceof m?t:new m(0,this.tokens.size-1),"string"===typeof t&&(i=t);const n=this.programs.get(i);let o=s.start,a=s.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getTextFromInterval(new m(o,a));const c=[],l=this.reduceToSingleOperationPerIndex(n);let h=o;for(;h<=a&&h<this.tokens.size;){const e=l.get(h);l.delete(h);const t=this.tokens.get(h);null==e?(t.type!==r.EOF&&c.push(String(t.text)),h++):h=e.execute(c)}if(a===this.tokens.size-1)for(const e of l.values())e&&e.index>=this.tokens.size-1&&c.push(String(e.text));return c.join("")}reduceToSingleOperationPerIndex(e){for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof si))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index?(e[i.instructionIndex]=null,s.text=String(i.text)+(null!=s.text?s.text.toString():"")):i.index>s.index&&i.index<=s.lastIndex&&(e[i.instructionIndex]=null);const r=this.getKindOfOps(e,si,i);for(const i of r){if(i.index>=s.index&&i.lastIndex<=s.lastIndex){e[i.instructionIndex]=null;continue}const t=i.lastIndex<s.index||i.index>s.lastIndex;if(null!=i.text||null!=s.text||t){if(!t)throw new Error(`replace op boundaries of ${s} overlap with previous ${i}`)}else e[i.instructionIndex]=null,s.index=Math.min(i.index,s.index),s.lastIndex=Math.max(i.lastIndex,s.lastIndex)}}for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof ti))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index&&(i instanceof ii?(s.text=this.catOpText(i.text,s.text),e[i.instructionIndex]=null):i instanceof ti&&(s.text=this.catOpText(s.text,i.text),e[i.instructionIndex]=null));const r=this.getKindOfOps(e,si,i);for(const o of r)if(s.index!==o.index){if(s.index>=o.index&&s.index<=o.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${o}`)}else o.text=this.catOpText(s.text,o.text),e[i]=null}const t=new Map;for(const i of e)if(null!=i){if(null!=t.get(i.index))throw new Error("should only be one op per index");t.set(i.index,i)}return t}catOpText(e,t){let i="",s="";return null!=e&&(i=e.toString()),null!=t&&(s=t.toString()),i+s}getKindOfOps(e,t,i){return e.slice(0,i).filter((e=>e&&e instanceof t))}},class{static{c(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(e,t,i,s){this.tokens=e,this.instructionIndex=i,this.index=t,this.text=void 0===s?"":s}execute(e){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),ti=class extends ei{static{c(this,"InsertBeforeOp")}constructor(e,t,i,s){super(e,t,i,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==r.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},ii=class extends ti{static{c(this,"InsertAfterOp")}constructor(e,t,i,s){super(e,t+1,i,s)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},si=class extends ei{static{c(this,"ReplaceOp")}lastIndex;constructor(e,t,i,s,n){super(e,t,s,n),this.lastIndex=i}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ni=(class{static{c(this,"UnbufferedTokenStream")}tokenSource;tokens;n;p=0;numMarkers=0;lastToken;lastTokenBufferStart;currentTokenIndex=0;constructor(e,t){this.tokenSource=e,t=t??256,this.tokens=new Array(t),this.n=0,this.fill(1)}get(e){const t=this.getBufferStartIndex();if(e<t||e>=t+this.n)throw new Error("get("+e+") outside buffer: "+t+".."+(t+this.n));return this.tokens[e-t]}LT(e){if(-1===e)return this.lastToken;this.sync(e);const t=this.p+e-1;if(t<0)throw new Error("LT("+e+") gives negative index");return t>=this.n?this.tokens[this.n-1]:this.tokens[t]}LA(e){return this.LT(e).type}getText(){return""}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromInterval(e){const t=this.getBufferStartIndex(),i=t+this.tokens.length-1,s=e.start,n=e.stop;if(s<t||n>i)throw new Error("interval "+e+" not in token buffer window: "+t+".."+i);const r=n-t;let o="";for(let a=s-t;a<=r;a++){o+=this.tokens[a].text}return o}getTextFromRange(e,t){return this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex))}consume(){if(this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.lastToken=this.tokens[this.p],this.p===this.n-1&&0===this.numMarkers&&(this.n=0,this.p=-1,this.lastTokenBufferStart=this.lastToken),this.p++,this.currentTokenIndex++,this.sync(1)}mark(){0===this.numMarkers&&(this.lastTokenBufferStart=this.lastToken);const e=-this.numMarkers-1;return this.numMarkers++,e}release(e){if(e!==-this.numMarkers)throw new Error("release() called with an invalid marker.");this.numMarkers--,0===this.numMarkers&&(this.p>0&&(this.tokens.copyWithin(0,this.p,this.n),this.n=this.n-this.p,this.p=0),this.lastTokenBufferStart=this.lastToken)}get index(){return this.currentTokenIndex}seek(e){if(e===this.currentTokenIndex)return;e>this.currentTokenIndex&&(this.sync(e-this.currentTokenIndex),e=Math.min(e,this.getBufferStartIndex()+this.n-1));const t=this.getBufferStartIndex(),i=e-t;if(i<0)throw new Error("cannot seek to negative index "+e);if(i>=this.n)throw new Error("seek to index outside buffer: "+e+" not in "+t+".."+(t+this.n));this.p=i,this.currentTokenIndex=e,0===this.p?this.lastToken=this.lastTokenBufferStart:this.lastToken=this.tokens[this.p-1]}get size(){throw new Error("Unbuffered stream cannot know its size")}getSourceName(){return this.tokenSource.sourceName}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}sync(e){const t=this.p+e-1-this.n+1;t>0&&this.fill(t)}fill(e){for(let t=0;t<e;t++){if(this.n>0&&this.tokens[this.n-1].type===r.EOF)return t;const e=this.tokenSource.nextToken();this.add(e)}return e}add(e){this.n>=this.tokens.length&&(this.tokens.length=2*this.tokens.length),Et(e)&&e.setTokenIndex(this.getBufferStartIndex()+this.n),this.tokens[this.n++]=e}getBufferStartIndex(){return this.currentTokenIndex-this.p}},Object.defineProperty),ri=(e,t)=>ni(e,"name",{value:t,configurable:!0}),oi=class{static{ri(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#v;constructor(e=""){this.name=e}get parent(){return this.#v}get firstSibling(){if(this.#v)return this.#v?.firstChild}get previousSibling(){if(this.#v)return this.#v?this.#v.previousSiblingOf(this):this}get nextSibling(){return this.#v?.nextSiblingOf(this)}get lastSibling(){return this.#v?.lastChild}get next(){return this.#v?.nextOf(this)}get root(){let e=this.#v;for(;e;){if(!e.parent||this.isSymbolTable(e.parent))return e;e=e.parent}return e}get symbolTable(){if(this.isSymbolTable(this))return this;let e=this.#v;for(;e;){if(this.isSymbolTable(e))return e;e=e.parent}}get symbolPath(){const e=[];let t=this;for(;t&&(e.push(t),t.parent);)t=t.parent;return e}setParent(e){this.#v=e}removeFromParent(){this.#v?.removeSymbol(this),this.#v=void 0}async resolve(e,t=!1){return this.#v?.resolve(e,t)}resolveSync(e,t=!1){return this.#v?.resolveSync(e,t)}getParentOfType(e){let t=this.#v;for(;t;){if(t instanceof e)return t;t=t.parent}}qualifiedName(e=".",t=!1,i=!1){if(!i&&0===this.name.length)return"";let s=0===this.name.length?"<anonymous>":this.name,n=this.#v;for(;n&&((i||n.name.length>0)&&(s=(0===n.name.length?"<anonymous>":n.name)+e+s),t&&n.parent);)n=n.parent;return s}isSymbolTable(e){return void 0!==e.info}},ai=(class extends oi{static{ri(this,"ArrayType")}elementType;size;referenceKind;constructor(e,t,i,s=0){super(e),this.referenceKind=t,this.elementType=i,this.size=s}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{ri(this,"DuplicateSymbolError")}}),ci=class e extends oi{static{ri(this,"ScopedSymbol")}#C=[];#E=new Map;constructor(e=""){super(e)}get directScopes(){return this.getSymbolsOfType(e)}get children(){return this.#C}get firstChild(){if(this.#C.length>0)return this.#C[0]}get lastChild(){if(this.#C.length>0)return this.#C[this.#C.length-1]}clear(){this.#C=[],this.#E.clear()}addSymbol(e){e.removeFromParent();const t=this.symbolTable,i=this.#E.get(e.name);if(t&&t.options.allowDuplicateSymbols)this.#E.set(e.name,void 0===i?1:i+1);else{if(void 0!==i)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'");this.#E.set(e.name,1);if(this.#C.indexOf(e)>-1)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'")}this.#C.push(e),e.setParent(this)}removeSymbol(e){const t=this.#C.indexOf(e);if(t>-1){this.#C.splice(t,1),e.setParent(void 0);const i=this.#E.get(e.name);void 0!==i&&(1===i?this.#E.delete(e.name):this.#E.set(e.name,i-1))}}async getNestedSymbolsOfType(t){const i=[],s=[];this.#C.forEach((n=>{n instanceof t&&i.push(n),n instanceof e&&s.push(n.getNestedSymbolsOfType(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getNestedSymbolsOfTypeSync(t){const i=[];return this.#C.forEach((s=>{s instanceof t&&i.push(s),s instanceof e&&i.push(...s.getNestedSymbolsOfTypeSync(t))})),i}async getAllNestedSymbols(t){const i=[],s=[];this.#C.forEach((n=>{t&&n.name!==t||i.push(n),n instanceof e&&s.push(n.getAllNestedSymbols(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getAllNestedSymbolsSync(t){const i=[];return this.#C.forEach((s=>{t&&s.name!==t||i.push(s),s instanceof e&&i.push(...s.getAllNestedSymbolsSync(t))})),i}getSymbolsOfType(e){return new Promise((t=>{const i=[];this.#C.forEach((t=>{t instanceof e&&i.push(t)})),t(i)}))}async getAllSymbols(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=await s.getAllSymbols(e,!0);i.push(...t)}if(!t&&this.parent){const t=await this.getAllSymbols(e,!0);i.push(...t)}return i}getAllSymbolsSync(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=s.getAllSymbolsSync(e,!0);i.push(...t)}if(!t&&this.parent){const t=this.getAllSymbolsSync(e,!0);i.push(...t)}return i}async resolve(e,t=!1){return new Promise((i=>{for(const t of this.#C)if(t.name===e)return void i(t);t||!this.parent?i(void 0):i(this.parent.resolve(e,!1))}))}resolveSync(e,t=!1){for(const i of this.#C)if(i.name===e)return i;if(!t&&this.parent)return this.parent.resolveSync(e,!1)}symbolFromPath(t,i="."){const s=t.split(i);let n=0;s[0]!==this.name&&0!==s[0].length||++n;let r=this;for(;n<s.length;){if(!(r instanceof e))return;const t=r.children.find((e=>e.name===s[n]));if(!t)return;r=t,++n}return r}indexOfChild(e){return this.#C.findIndex((t=>t===e))}nextSiblingOf(e){const t=this.indexOfChild(e);if(!(-1===t||t>=this.#C.length-1))return this.#C[t+1]}previousSiblingOf(e){const t=this.indexOfChild(e);if(!(t<1))return this.#C[t-1]}nextOf(t){if(!t.parent)return;if(t.parent!==this)return t.parent.nextOf(t);if(t instanceof e&&t.children.length>0)return t.children[0];const i=this.nextSiblingOf(t);return i||this.parent.nextOf(this)}isNamespace(e){return void 0!==e.inline&&void 0!==e.attributes}},li=(class extends ci{static{ri(this,"BlockSymbol")}},class extends oi{static{ri(this,"TypedSymbol")}type;constructor(e,t){super(e),this.type=t}}),hi=class extends li{static{ri(this,"VariableSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},di=class extends hi{static{ri(this,"FieldSymbol")}setter;getter},ui=class extends hi{static{ri(this,"ParameterSymbol")}},gi=class extends ci{static{ri(this,"RoutineSymbol")}returnType;constructor(e,t){super(e),this.returnType=t}getVariables(e=!0){return this.getSymbolsOfType(hi)}getParameters(e=!0){return this.getSymbolsOfType(ui)}},pi=class extends gi{static{ri(this,"MethodSymbol")}methodFlags=0},mi=(class extends ci{static{ri(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(e,t,i){super(e),this.extends=t,this.implements=i}get baseTypes(){return this.extends}get kind(){return 7}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class e{static{ri(this,"FundamentalType")}static integerType=new e("int",1,3);static floatType=new e("float",2,3);static stringType=new e("string",4,3);static boolType=new e("bool",6,3);name;typeKind;referenceKind;constructor(e,t=0,i=0){this.name=e,this.typeKind=t,this.referenceKind=i}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends ci{static{ri(this,"InterfaceSymbol")}reference=0;extends;constructor(e,t){super(e),this.extends=t}get baseTypes(){return this.extends}get kind(){return 8}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class extends li{static{ri(this,"LiteralSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},class extends ci{static{ri(this,"NamespaceSymbol")}inline;attributes;constructor(e,t=!1,i=[]){super(e),this.inline=t,this.attributes=i}}),fi=(class extends oi{static{ri(this,"TypeAlias")}targetType;constructor(e,t){super(e),this.targetType=t}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},ri(((e,t)=>{if(!e||!t)return[];let i;for(i=0;i<Math.min(e.length,t.length)&&e[i]===t[i];i++);return e.slice(0,i)}),"longestCommonPrefix")),_i=class{static{ri(this,"CandidatesCollection")}tokens=new Map;rules=new Map},vi=class{static{ri(this,"FollowSetWithPath")}intervals;path=[];following=[]},Ci=class e{static{ri(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new _i;constructor(e){this.parser=e,this.atn=e.atn,this.vocabulary=e.vocabulary,this.ruleNames=e.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(e,t){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=t?.start?t.start.tokenIndex:0;const i=this.parser.tokenStream;this.tokens=[];let s=this.tokenStartIndex;for(;;){const t=i.get(s++);if(!t)break;if(t.channel===r.DEFAULT_CHANNEL&&(this.tokens.push(t),t.tokenIndex>=e||t.type===r.EOF))break;if(t.type===r.EOF)break}const n=t?t.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[n],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const t of this.candidates.rules){let e="";for(const i of t[1].ruleList)e+=this.ruleNames[i]+" ";console.log(this.ruleNames[t[0]]+", path: ",e)}const e=new Set;for(const t of this.candidates.tokens){let i=this.vocabulary.getDisplayName(t[0])??"";for(const e of t[1])i+=" "+this.vocabulary.getDisplayName(e);e.add(i)}console.log("\n\nCollected tokens:\n");for(const t of e)console.log(t);console.log("\n\n")}return this.candidates}checkPredicate(e){return e.getPredicate().evaluate(this.parser,W.empty)}translateStackToRuleIndex(e){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let t=e.length-1;t>=0;t--)if(this.translateToRuleIndex(t,e))return!0}else for(let t=0;t<e.length;t++)if(this.translateToRuleIndex(t,e))return!0;return!1}translateToRuleIndex(e,t){const{ruleIndex:i,startTokenIndex:s}=t[e];if(this.preferredRules.has(i)){const n=t.slice(0,e).map((({ruleIndex:e})=>e));let r=!0;for(const e of this.candidates.rules)if(e[0]===i&&e[1].ruleList.length===n.length&&n.every(((t,i)=>t===e[1].ruleList[i]))){r=!1;break}return r&&(this.candidates.rules.set(i,{startTokenIndex:s,ruleList:n}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[i])),!0}return!1}getFollowingTokens(e){const t=[],i=[e.target];for(;i.length>0;){const e=i.pop();e&&e.transitions.forEach((e=>{if(e.transitionType===I.ATOM)if(e.isEpsilon)i.push(e.target);else{const s=e.label.toArray();1!==s.length||this.ignoredTokens.has(s[0])||(t.push(s[0]),i.push(e.target))}}))}return t}determineFollowSets(e,t){const i=[],s=this.collectFollowSets(e,t,i,[],[]),n=new _;for(const r of i)n.addSet(r.intervals);return{sets:i,isExhaustive:s,combined:n}}collectFollowSets(e,t,i,s,n){if(s.find((t=>t===e)))return!0;if(s.push(e),e===t||e.constructor.stateType===x.RULE_STOP)return s.pop(),!1;let o=!0;for(const a of e.transitions)if(a.transitionType===I.RULE){const e=a;if(-1!==n.indexOf(e.target.ruleIndex))continue;n.push(e.target.ruleIndex);const r=this.collectFollowSets(a.target,t,i,s,n);if(n.pop(),!r){const r=this.collectFollowSets(e.followState,t,i,s,n);o&&=r}}else if(a.transitionType===I.PREDICATE){if(this.checkPredicate(a)){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}}else if(a.isEpsilon){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}else if(a.transitionType===I.WILDCARD){const e=new vi;e.intervals=_.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),e.path=n.slice(),i.push(e)}else{let e=a.label;if(e&&e.length>0){a.transitionType===I.NOT_SET&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const t=new vi;t.intervals=e??new _,t.path=n.slice(),t.following=this.getFollowingTokens(a),i.push(t)}}return s.pop(),o}processRule(t,i,s,n,o){let a=this.shortcutMap.get(t.ruleIndex);if(a){if(a.has(i))return this.showDebugOutput&&console.log("=====> shortcut"),a.get(i)}else a=new Map,this.shortcutMap.set(t.ruleIndex,a);const c=new Set;let l=e.followSetsByATN.get(this.parser.constructor.name);l||(l=new Map,e.followSetsByATN.set(this.parser.constructor.name,l));let h=l.get(t.stateNumber);if(!h){const e=this.atn.ruleToStopState[t.ruleIndex];h=this.determineFollowSets(t,e),l.set(t.stateNumber,h)}const d=this.tokens[i].tokenIndex;if(s.push({startTokenIndex:d,ruleIndex:t.ruleIndex}),i>=this.tokens.length-1){if(this.preferredRules.has(t.ruleIndex))this.translateStackToRuleIndex(s);else for(const e of h.sets){const t=s.slice(),i=e.path.map((e=>({startTokenIndex:d,ruleIndex:e})));if(t.push(...i),!this.translateStackToRuleIndex(t))for(const s of e.intervals.toArray())this.ignoredTokens.has(s)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s)),this.candidates.tokens.has(s)?this.candidates.tokens.get(s)!==e.following&&this.candidates.tokens.set(s,[]):this.candidates.tokens.set(s,e.following))}return h.isExhaustive||c.add(i),s.pop(),c}{const e=this.tokens[i].type;if(h.isExhaustive&&!h.combined.contains(e))return s.pop(),c}t.isPrecedenceRule&&this.precedenceStack.push(n);const u=[];let g;for(u.push({state:t,tokenListIndex:i});u.length>0;){g=u.pop(),++this.statesProcessed;const e=this.tokens[g.tokenListIndex].type,t=g.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(o,g.state,this.generateBaseDescription(g.state),g.tokenListIndex),this.showRuleStack&&this.printRuleState(s)),g.state.constructor.stateType===x.RULE_STOP){c.add(g.tokenListIndex);continue}const i=g.state.transitions;for(const n of i)switch(n.transitionType){case I.RULE:{const e=n,t=this.processRule(n.target,g.tokenListIndex,s,e.precedence,o+1);for(const i of t)u.push({state:n.followState,tokenListIndex:i});break}case I.PREDICATE:this.checkPredicate(n)&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.PRECEDENCE:n.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.WILDCARD:if(t){if(!this.translateStackToRuleIndex(s))for(const e of _.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(e)||this.candidates.tokens.set(e,[])}else u.push({state:n.target,tokenListIndex:g.tokenListIndex+1});break;default:{if(n.isEpsilon){u.push({state:n.target,tokenListIndex:g.tokenListIndex});continue}let i=n.label;if(i&&i.length>0)if(n.transitionType===I.NOT_SET&&(i=i.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),t){if(!this.translateStackToRuleIndex(s)){const e=i.toArray(),t=1===e.length;for(const i of e)if(!this.ignoredTokens.has(i)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(i));const e=t?this.getFollowingTokens(n):[];this.candidates.tokens.has(i)?this.candidates.tokens.set(i,fi(e,this.candidates.tokens.get(i))):this.candidates.tokens.set(i,e)}}}else i.contains(e)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(e)),u.push({state:n.target,tokenListIndex:g.tokenListIndex+1}))}}}return s.pop(),t.isPrecedenceRule&&this.precedenceStack.pop(),a.set(i,c),c}generateBaseDescription(t){return`[${t.stateNumber===x.INVALID_STATE_NUMBER?"Invalid":t.stateNumber} ${e.atnStateTypeMap[t.constructor.stateType]}] in ${this.ruleNames[t.ruleIndex]}`}printDescription(t,i,s,n){const r=" ".repeat(t);let o=r,a="";if(this.debugOutputWithTransitions)for(const c of i.transitions){let t="";const i=c.label?c.label.toArray():[];if(i.length>2)t=this.vocabulary.getDisplayName(i[0])+" .. "+this.vocabulary.getDisplayName(i[i.length-1]);else for(const e of i)t.length>0&&(t+=", "),t+=this.vocabulary.getDisplayName(e);0===t.length&&(t="\u03b5");const s=e.atnStateTypeMap[c.target.constructor.stateType];a+=`\n${r}\t(${t}) [${c.target.stateNumber} ${s}] in ${this.ruleNames[c.target.ruleIndex]}`}n>=this.tokens.length-1?o+=`<<${this.tokenStartIndex+n}>> `:o+=`<${this.tokenStartIndex+n}> `,console.log(o+"Current state: "+s+a)}printRuleState(e){if(0!==e.length)for(const t of e)console.log(this.ruleNames[t.ruleIndex]);else console.log("<empty stack>")}},Ei=class extends ci{constructor(e,t){super(e),this.options=t}static{ri(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...e){e.forEach((e=>{this.dependencies.add(e)}))}removeDependency(e){this.dependencies.has(e)&&this.dependencies.delete(e)}addNewSymbolOfType(e,t,...i){const s=new e(...i);return t&&t!==this?t.addSymbol(s):this.addSymbol(s),s}async addNewNamespaceFromPath(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=await r.resolve(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}addNewNamespaceFromPathSync(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=r.resolveSync(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}async getAllSymbols(e,t=!1){const i=await super.getAllSymbols(e,t);if(!t){(await Promise.all([...this.dependencies].map((i=>i.getAllSymbols(e,t))))).forEach((e=>{i.push(...e)}))}return i}getAllSymbolsSync(e,t=!1){const i=super.getAllSymbolsSync(e,t);return t||this.dependencies.forEach((s=>{i.push(...s.getAllSymbolsSync(e,t))})),i}async symbolWithContext(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=await this.getAllSymbols(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=await s.getAllSymbols(oi);for(const e of i){const i=t(e);if(i)return i}}}symbolWithContextSync(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=this.getAllSymbolsSync(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=s.getAllSymbolsSync(oi);for(const e of i){const i=t(e);if(i)return i}}}async resolve(e,t=!1){let i=await super.resolve(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=await s.resolve(e,!1),i)return i;return i}resolveSync(e,t=!1){let i=super.resolveSync(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=s.resolveSync(e,!1),i)return i;return i}},bi=(Object.create,Object.defineProperty),Si=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty,(e,t)=>bi(e,"name",{value:t,configurable:!0})),yi=/[\w]$/,wi=/\r\n|\n|\r/g;function Ri(e,t){let i=e.column,s=e.column+(e.text?.length||0),n=e.line;return{startColumn:i,startLine:n,endColumn:s,endLine:e.type===t&&e.text?n+(e.text.match(wi)?.length||0):n}}function Li(e,t,i,s){let n=t.column-1;for(let r=0;r<e.size;r++){let o=e.get(r),{startColumn:a,startLine:c,endColumn:l,endLine:h}=Ri(o,i);if(h>t.line||c===t.line&&l>n)return s?r:r>0&&c===t.line&&a===n&&yi.test(e.get(r-1).text||"")?r-1:e.get(r).type===i?r+1:r}}function Ti(e,t){let i=e.split(wi),s=e.match(wi),n="";s&&(n=s[0]);let r=0;return i.reduce(((e,i,s)=>(t.line-1===s&&(r=e.length?e.length+t.column:t.column-1),0===s?i:e+n+i)),""),r}function xi(e,t){return e===t.startTokenIndex}function ki(e,t){let i=e.slice(0,t-1),s=e.slice(t-1),n=i.lastIndexOf(";"),r=s.indexOf(";"),o=n>-1?n+1:0,a=r>-1?r+i.length:e.length;return{statement:e.slice(o,a),cursorIndex:t-o}}Si(Ri,"getTokenPosition"),Si(Li,"findCursorTokenIndex"),Si(Ti,"getCursorIndex"),Si(xi,"isStartingToWriteRule"),Si(ki,"getCurrentStatement");var Ai="(\\s|\r\n|\n|\r)+",Ni=new RegExp(`^(${Ai})?explain${Ai}$`),Ii=new RegExp(`^(${Ai})?\\S+${Ai}`);function Oi(e,t){let i=Ti(e,t),s=ki(e,i),n=s.statement.slice(0,s.cursorIndex).toLowerCase();return!(0!==i&&n.match(Ii)&&!n.match(Ni))}function Di(e,t,i){let s=new e(ft.fromString(i)),n=new t(new St(s));return n.removeErrorListeners(),n}function Mi(e,t){return new e(ft.fromString(t))}Si(Oi,"shouldSuggestTemplates"),Si(Di,"createParser"),Si(Mi,"createLexer");var Pi,Fi=class{static{Si(this,"SqlErrorListener")}constructor(e){this.errors=[],this.whitespaceToken=e}syntaxError(e,t,i,s,n){if(t){let e=Ri(t,this.whitespaceToken);this.errors.push({message:n,...e})}else this.errors.push({message:n,startLine:i,startColumn:s,endLine:i,endColumn:s})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},Ui=((Pi=Ui||{}).Autocomplete="autocomplete",Pi.Tokens="tokens",Pi);function Hi(e,t,i,s,n,r,o,a){let c=Di(t,i,e),{tokenStream:l}=c,h=new Fi(s);c.removeErrorListeners(),c.addErrorListener(h),a(c);let d=Wi(c,l,o,r);return d.length?{statementPositions:d,strategy:"autocomplete"}:{statementPositions:Bi(l,n,r),strategy:"tokens"}}function Bi(e,t,i){let s=0,n=!1,r=e.size-2,o=[];for(let a=0;a<=r;a++){let c=e.get(a),l=c.type===i,h=t.includes(c.type);if(n||!h)if(n||(n=!0,s=c.start),l&&s===c.start)n=!1;else{if(l||a===r){let e=c.text?.length||0,t={startIndex:s,endIndex:c.start+e};o.push(t)}l&&(n=!1)}}return o}function Wi(e,t,i,s){let n=new Ci(e);n.preferredRules=new Set([i]);let r=t.get(t.size-2),o=[];for(;r?.tokenIndex>0;){let e,a=n.collectCandidates(r.tokenIndex).rules;!a.size&&r.type===s&&(a=n.collectCandidates(r.tokenIndex-1).rules);for(let[s,{startTokenIndex:n}]of a)if(s===i){e=t.get(n);break}if(!e)break;e.tokenIndex>r.tokenIndex?r=t.get(r.tokenIndex-1):(o.push({startIndex:e.start,endIndex:r.start+(r.text?.length||0)}),r=t.get(e.tokenIndex-1))}return o.reverse(),o}Si(Hi,"extractStatementPositionsFromQuery"),Si(Bi,"extractStatementsUsingTokens"),Si(Wi,"extractStatementsUsingAutocomplete");function Vi(e,t,i,s){let n=Mi(e,s),r=new Fi(i);n.removeErrorListeners(),n.addErrorListener(r);let o=[],a=!1;do{let e=n.nextToken();if(null===e||-1===e.type)a=!0;else{let i=t[e.type];i&&o.push({ruleName:i,startIndex:e.start,column:e.column,line:e.line,type:e.type,text:e.text})}}while(!a);return{tokens:o,errors:r.errors}}function zi(e,t,i,s,n){let r=Di(e,t,n),o=new Fi(i);return r.removeErrorListeners(),r.addErrorListener(o),s(r),{errors:o.errors}}Si(Vi,"tokenize"),Si(zi,"parseQueryWithoutCursor");var Gi=/^'(.*)'$/;function ji(e,t,i,s,n,r,o,a,c,l){let h=Di(e,t,a),{tokenStream:d}=h,u=new Fi(i);h.removeErrorListeners(),h.addErrorListener(u),r(h);let g=new Ci(h);g.ignoredTokens=s,g.preferredRules=n;let p=Li(d,c,i);if(void 0===p)throw new Error(`Could not find cursor token index for line: ${c.line}, column: ${c.column}`);let m=[],{tokens:f,rules:_}=g.collectCandidates(p,l);return f.forEach(((e,t)=>{let i=h.vocabulary.getLiteralName(t)?.replace(Gi,"$1")||h.vocabulary.getSymbolicName(t);if(!i)throw new Error(`Could not get name for token ${t}`);m.push({value:i})})),o({errors:u.errors,suggestKeywords:m},_,d,p,c,a)}function Ki(e){let t,i=e.split(wi);for(let h=0;h<i.length;h++)if(i[h]?.includes("|")){t=h;break}if(void 0===t)throw new Error(`Cursor not provided for query ${e}`);let s=i[t];if(!s)throw new Error(`Line ${t} not found`);let[n,r,...o]=e.split("|"),[a,c,...l]=s.split("|");if(o.length>0||l.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${e}`);if(void 0===n||void 0===r||void 0===a||void 0===c)throw new Error(`Cursor not provided for query ${e}`);return[n+r,{line:t+1,column:a.length+1}]}Si(ji,"parseQuery"),Si(Ki,"separateQueryAndCursor");var Yi=class extends li{static{Si(this,"TableSymbol")}constructor(e,t,i,s){super(e,s),this.name=e,this.alias=t,this.columns=i}},qi=class extends hi{static{Si(this,"VariableSymbol")}};function $i(e=[]){let t=e.reduce(((e,t)=>{let i=e[t.name]?.aliases??new Set;return t.alias&&i.add(t.alias),e[t.name]={aliases:i,columns:t.columns},e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i]?.aliases,n=t[i]?.columns;return s&&s.size>0?s?.forEach((t=>{e.push({name:i,alias:t,columns:n})})):e.push({name:i,columns:n}),e}),[])}function Qi(e){return $i(e.symbolTable.getNestedSymbolsOfTypeSync(Yi))}Si($i,"getUniqueTableSuggestions"),Si(Qi,"getTablesFromSymbolTable");var Xi=class extends li{static{Si(this,"ColumnAliasSymbol")}constructor(e,t){super(e,t),this.name=e}};function Zi(e){return e.symbolTable.getNestedSymbolsOfTypeSync(Xi).map((({name:e})=>({name:e})))}function Ji(e,t){let i=t.symbolWithContextSync(e);return i||(e.parent?Ji(e.parent,t):void 0)}function es(e,t,i){let s=t;for(;s<e.size;){let t=e.get(s);if(t.type===i.CLOSING_BRACKET||t.type===i.SEMICOLON)return{cursorIndex:t.start,tokenIndex:s};if(t.type===i.OPENING_BRACKET)return;s++}let n=e.size-1;return{cursorIndex:e.get(n).start,tokenIndex:n}}function ts(e,t,i){let s=e.get(e.size-1).start,n=t,r=!1;for(;n>=0&&n<e.size;){let s=e.get(n);if(s.type===i.OPENING_BRACKET||s.type===i.CLOSING_BRACKET||s.type===i.SEMICOLON){if(r)break;n=t,r=!0}if(s.type===i.FROM){let r=es(e,t,i);if(!r)break;let o=is(e,n,r.tokenIndex,i),a=o?{start:o,end:r.cursorIndex}:void 0,c=ss(e,i,r.tokenIndex,i.SELECT),l=c?{start:c.start,end:r.cursorIndex}:void 0;return{start:s.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:a,selectTableQueryPosition:l}}r?n++:n--,-1===n&&(n=t,r=!0)}for(n=t;n>=0;){let t=e.get(n);if(t.type===i.SEMICOLON)return;if(t.type===i.ALTER&&!ss(e,i,n,i.ALTER))return{start:t.start,end:s,type:"alter"};if(t.type===i.INSERT||t.type===i.UPSERT)return{start:t.start,end:s,type:"insert"};if(t.type===i.UPDATE)return{start:t.start,end:s,type:"update"};n--}}function is(e,t,i,s){let n=t;for(;n<i;){let t=e.get(n);if(t.type===s.JOIN)return t.stop+1;n++}}function ss(e,t,i,s){let n=i-1;for(;n>-1;){let i=e.get(n);if(i.type===t.SEMICOLON)return;if(i.type===s)return i;n--}}Si(Zi,"getColumnAliasesFromSymbolTable"),Si(Ji,"getScope"),Si(es,"getClosingBracketIndex"),Si(ts,"getTableQueryPosition"),Si(is,"getJoinIndex"),Si(ss,"getPreviousToken"),Si((function(e,t,i,s,n,r,o,a,c){let l=Li(r,o,s.SPACE,!0);if(!l)throw new Error(`Could not find actualCursorTokenIndex at Ln ${o.line}, Col ${o.column}`);let h={},d=ts(r,l,s);if(d){let s=n(Di(e,t,a.slice(d.start,d.end)),d.type);if(i.visit(s),c&&d.joinTableQueryPosition){let s=n(Di(e,t,a.slice(d.joinTableQueryPosition.start,d.joinTableQueryPosition.end)),"from");i.visit(s)}if(d.selectTableQueryPosition){let s=n(Di(e,t,a.slice(d.selectTableQueryPosition.start,d.selectTableQueryPosition.end)),"select");i.visit(s)}let r=Qi(i);r.length&&(h.tableContextSuggestion={tables:r});let o=Zi(i);o.length&&(h.suggestColumnAliases=o.map((({name:e})=>({name:e}))))}return h}),"getContextSuggestions");var ns=class e extends Je{static{Si(this,"YQLLexer")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","DOUBLE_COMMAT","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}static{this._serializedATN=[4,0,334,3207,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,349,1,349,1,349,1,349,1,349,1,350,1,350,1,350,1,350,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,3,356,2996,8,356,1,357,1,357,1,357,1,357,3,357,3002,8,357,1,358,1,358,5,358,3006,8,358,10,358,12,358,3009,9,358,1,358,1,358,1,359,1,359,5,359,3015,8,359,10,359,12,359,3018,9,359,1,359,1,359,1,360,1,360,5,360,3024,8,360,10,360,12,360,3027,9,360,1,360,1,360,4,360,3031,8,360,11,360,12,360,3032,1,360,3,360,3036,8,360,1,361,1,361,1,361,3,361,3041,8,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,3,361,3051,8,361,3,361,3053,8,361,1,362,1,362,1,362,5,362,3058,8,362,10,362,12,362,3061,9,362,1,363,1,363,1,363,1,363,1,363,3,363,3068,8,363,1,364,1,364,5,364,3072,8,364,10,364,12,364,3075,9,364,1,364,1,364,1,365,1,365,1,366,1,366,1,367,1,367,1,367,4,367,3086,8,367,11,367,12,367,3087,1,368,1,368,1,368,4,368,3093,8,368,11,368,12,368,3094,1,369,1,369,1,369,4,369,3100,8,369,11,369,12,369,3101,1,370,4,370,3105,8,370,11,370,12,370,3106,1,371,1,371,1,371,1,371,3,371,3113,8,371,1,372,1,372,1,372,3,372,3118,8,372,1,372,1,372,1,372,1,372,1,372,1,372,3,372,3126,8,372,1,373,1,373,1,373,3,373,3131,8,373,1,373,1,373,1,374,1,374,1,374,5,374,3138,8,374,10,374,12,374,3141,9,374,1,374,3,374,3144,8,374,1,374,1,374,1,374,3,374,3149,8,374,1,374,1,374,1,374,1,374,1,374,1,374,3,374,3157,8,374,3,374,3159,8,374,1,375,1,375,1,375,4,375,3164,8,375,11,375,12,375,3165,1,375,1,375,1,376,1,376,1,376,1,376,5,376,3174,8,376,10,376,12,376,3177,9,376,1,376,1,376,1,376,1,377,1,377,1,377,1,377,5,377,3186,8,377,10,377,12,377,3189,9,377,1,377,1,377,3,377,3193,8,377,1,377,3,377,3196,8,377,1,378,1,378,1,378,1,378,1,379,1,379,3,379,3204,8,379,1,379,1,379,2,3025,3175,0,380,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,0,77,0,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,38,139,39,141,40,143,41,145,42,147,43,149,44,151,45,153,46,155,47,157,48,159,49,161,50,163,51,165,52,167,53,169,54,171,55,173,56,175,57,177,58,179,59,181,60,183,61,185,62,187,63,189,64,191,65,193,66,195,67,197,68,199,69,201,70,203,71,205,72,207,73,209,74,211,75,213,76,215,77,217,78,219,79,221,80,223,81,225,82,227,83,229,84,231,85,233,86,235,87,237,88,239,89,241,90,243,91,245,92,247,93,249,94,251,95,253,96,255,97,257,98,259,99,261,100,263,101,265,102,267,103,269,104,271,105,273,106,275,107,277,108,279,109,281,110,283,111,285,112,287,113,289,114,291,115,293,116,295,117,297,118,299,119,301,120,303,121,305,122,307,123,309,124,311,125,313,126,315,127,317,128,319,129,321,130,323,131,325,132,327,133,329,134,331,135,333,136,335,137,337,138,339,139,341,140,343,141,345,142,347,143,349,144,351,145,353,146,355,147,357,148,359,149,361,150,363,151,365,152,367,153,369,154,371,155,373,156,375,157,377,158,379,159,381,160,383,161,385,162,387,163,389,164,391,165,393,166,395,167,397,168,399,169,401,170,403,171,405,172,407,173,409,174,411,175,413,176,415,177,417,178,419,179,421,180,423,181,425,182,427,183,429,184,431,185,433,186,435,187,437,188,439,189,441,190,443,191,445,192,447,193,449,194,451,195,453,196,455,197,457,198,459,199,461,200,463,201,465,202,467,203,469,204,471,205,473,206,475,207,477,208,479,209,481,210,483,211,485,212,487,213,489,214,491,215,493,216,495,217,497,218,499,219,501,220,503,221,505,222,507,223,509,224,511,225,513,226,515,227,517,228,519,229,521,230,523,231,525,232,527,233,529,234,531,235,533,236,535,237,537,238,539,239,541,240,543,241,545,242,547,243,549,244,551,245,553,246,555,247,557,248,559,249,561,250,563,251,565,252,567,253,569,254,571,255,573,256,575,257,577,258,579,259,581,260,583,261,585,262,587,263,589,264,591,265,593,266,595,267,597,268,599,269,601,270,603,271,605,272,607,273,609,274,611,275,613,276,615,277,617,278,619,279,621,280,623,281,625,282,627,283,629,284,631,285,633,286,635,287,637,288,639,289,641,290,643,291,645,292,647,293,649,294,651,295,653,296,655,297,657,298,659,299,661,300,663,301,665,302,667,303,669,304,671,305,673,306,675,307,677,308,679,309,681,310,683,311,685,312,687,313,689,314,691,315,693,316,695,317,697,318,699,319,701,320,703,321,705,322,707,323,709,324,711,325,713,0,715,0,717,0,719,0,721,0,723,326,725,327,727,0,729,328,731,0,733,0,735,0,737,0,739,0,741,0,743,329,745,330,747,0,749,331,751,332,753,0,755,0,757,333,759,334,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3212,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,697,1,0,0,0,0,699,1,0,0,0,0,701,1,0,0,0,0,703,1,0,0,0,0,705,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,711,1,0,0,0,0,723,1,0,0,0,0,725,1,0,0,0,0,729,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,749,1,0,0,0,0,751,1,0,0,0,0,757,1,0,0,0,0,759,1,0,0,0,1,761,1,0,0,0,3,763,1,0,0,0,5,766,1,0,0,0,7,769,1,0,0,0,9,772,1,0,0,0,11,774,1,0,0,0,13,777,1,0,0,0,15,779,1,0,0,0,17,782,1,0,0,0,19,785,1,0,0,0,21,789,1,0,0,0,23,791,1,0,0,0,25,793,1,0,0,0,27,796,1,0,0,0,29,799,1,0,0,0,31,802,1,0,0,0,33,804,1,0,0,0,35,806,1,0,0,0,37,808,1,0,0,0,39,810,1,0,0,0,41,812,1,0,0,0,43,814,1,0,0,0,45,816,1,0,0,0,47,818,1,0,0,0,49,820,1,0,0,0,51,822,1,0,0,0,53,824,1,0,0,0,55,826,1,0,0,0,57,828,1,0,0,0,59,830,1,0,0,0,61,832,1,0,0,0,63,834,1,0,0,0,65,836,1,0,0,0,67,838,1,0,0,0,69,841,1,0,0,0,71,844,1,0,0,0,73,846,1,0,0,0,75,848,1,0,0,0,77,850,1,0,0,0,79,852,1,0,0,0,81,854,1,0,0,0,83,856,1,0,0,0,85,859,1,0,0,0,87,861,1,0,0,0,89,863,1,0,0,0,91,865,1,0,0,0,93,867,1,0,0,0,95,869,1,0,0,0,97,871,1,0,0,0,99,873,1,0,0,0,101,875,1,0,0,0,103,877,1,0,0,0,105,879,1,0,0,0,107,881,1,0,0,0,109,883,1,0,0,0,111,885,1,0,0,0,113,887,1,0,0,0,115,889,1,0,0,0,117,891,1,0,0,0,119,893,1,0,0,0,121,895,1,0,0,0,123,897,1,0,0,0,125,899,1,0,0,0,127,901,1,0,0,0,129,903,1,0,0,0,131,905,1,0,0,0,133,907,1,0,0,0,135,909,1,0,0,0,137,911,1,0,0,0,139,917,1,0,0,0,141,924,1,0,0,0,143,928,1,0,0,0,145,934,1,0,0,0,147,938,1,0,0,0,149,944,1,0,0,0,151,952,1,0,0,0,153,956,1,0,0,0,155,961,1,0,0,0,157,965,1,0,0,0,159,971,1,0,0,0,161,974,1,0,0,0,163,978,1,0,0,0,165,985,1,0,0,0,167,996,1,0,0,0,169,1002,1,0,0,0,171,1005,1,0,0,0,173,1012,1,0,0,0,175,1023,1,0,0,0,177,1037,1,0,0,0,179,1045,1,0,0,0,181,1052,1,0,0,0,183,1058,1,0,0,0,185,1069,1,0,0,0,187,1076,1,0,0,0,189,1082,1,0,0,0,191,1092,1,0,0,0,193,1100,1,0,0,0,195,1108,1,0,0,0,197,1111,1,0,0,0,199,1120,1,0,0,0,201,1128,1,0,0,0,203,1133,1,0,0,0,205,1138,1,0,0,0,207,1149,1,0,0,0,209,1155,1,0,0,0,211,1166,1,0,0,0,213,1174,1,0,0,0,215,1181,1,0,0,0,217,1189,1,0,0,0,219,1196,1,0,0,0,221,1204,1,0,0,0,223,1216,1,0,0,0,225,1225,1,0,0,0,227,1233,1,0,0,0,229,1244,1,0,0,0,231,1253,1,0,0,0,233,1259,1,0,0,0,235,1266,1,0,0,0,237,1272,1,0,0,0,239,1277,1,0,0,0,241,1285,1,0,0,0,243,1298,1,0,0,0,245,1311,1,0,0,0,247,1329,1,0,0,0,249,1334,1,0,0,0,251,1343,1,0,0,0,253,1351,1,0,0,0,255,1359,1,0,0,0,257,1367,1,0,0,0,259,1378,1,0,0,0,261,1387,1,0,0,0,263,1394,1,0,0,0,265,1401,1,0,0,0,267,1406,1,0,0,0,269,1415,1,0,0,0,271,1422,1,0,0,0,273,1427,1,0,0,0,275,1437,1,0,0,0,277,1445,1,0,0,0,279,1453,1,0,0,0,281,1462,1,0,0,0,283,1465,1,0,0,0,285,1470,1,0,0,0,287,1475,1,0,0,0,289,1480,1,0,0,0,291,1486,1,0,0,0,293,1499,1,0,0,0,295,1509,1,0,0,0,297,1513,1,0,0,0,299,1518,1,0,0,0,301,1524,1,0,0,0,303,1530,1,0,0,0,305,1537,1,0,0,0,307,1546,1,0,0,0,309,1553,1,0,0,0,311,1561,1,0,0,0,313,1571,1,0,0,0,315,1581,1,0,0,0,317,1588,1,0,0,0,319,1596,1,0,0,0,321,1603,1,0,0,0,323,1612,1,0,0,0,325,1617,1,0,0,0,327,1623,1,0,0,0,329,1630,1,0,0,0,331,1637,1,0,0,0,333,1643,1,0,0,0,335,1651,1,0,0,0,337,1656,1,0,0,0,339,1666,1,0,0,0,341,1670,1,0,0,0,343,1678,1,0,0,0,345,1683,1,0,0,0,347,1688,1,0,0,0,349,1697,1,0,0,0,351,1702,1,0,0,0,353,1709,1,0,0,0,355,1715,1,0,0,0,357,1721,1,0,0,0,359,1730,1,0,0,0,361,1737,1,0,0,0,363,1742,1,0,0,0,365,1749,1,0,0,0,367,1753,1,0,0,0,369,1756,1,0,0,0,371,1763,1,0,0,0,373,1769,1,0,0,0,375,1779,1,0,0,0,377,1786,1,0,0,0,379,1789,1,0,0,0,381,1799,1,0,0,0,383,1811,1,0,0,0,385,1817,1,0,0,0,387,1825,1,0,0,0,389,1834,1,0,0,0,391,1842,1,0,0,0,393,1852,1,0,0,0,395,1858,1,0,0,0,397,1865,1,0,0,0,399,1873,1,0,0,0,401,1883,1,0,0,0,403,1888,1,0,0,0,405,1891,1,0,0,0,407,1898,1,0,0,0,409,1903,1,0,0,0,411,1915,1,0,0,0,413,1926,1,0,0,0,415,1937,1,0,0,0,417,1941,1,0,0,0,419,1946,1,0,0,0,421,1951,1,0,0,0,423,1958,1,0,0,0,425,1963,1,0,0,0,427,1969,1,0,0,0,429,1974,1,0,0,0,431,1980,1,0,0,0,433,1986,1,0,0,0,435,1993,1,0,0,0,437,1999,1,0,0,0,439,2007,1,0,0,0,441,2023,1,0,0,0,443,2032,1,0,0,0,445,2045,1,0,0,0,447,2058,1,0,0,0,449,2065,1,0,0,0,451,2077,1,0,0,0,453,2085,1,0,0,0,455,2090,1,0,0,0,457,2093,1,0,0,0,459,2101,1,0,0,0,461,2105,1,0,0,0,463,2113,1,0,0,0,465,2118,1,0,0,0,467,2124,1,0,0,0,469,2131,1,0,0,0,471,2134,1,0,0,0,473,2141,1,0,0,0,475,2146,1,0,0,0,477,2149,1,0,0,0,479,2153,1,0,0,0,481,2158,1,0,0,0,483,2165,1,0,0,0,485,2174,1,0,0,0,487,2177,1,0,0,0,489,2183,1,0,0,0,491,2190,1,0,0,0,493,2196,1,0,0,0,495,2201,1,0,0,0,497,2210,1,0,0,0,499,2220,1,0,0,0,501,2228,1,0,0,0,503,2237,1,0,0,0,505,2242,1,0,0,0,507,2250,1,0,0,0,509,2254,1,0,0,0,511,2262,1,0,0,0,513,2267,1,0,0,0,515,2272,1,0,0,0,517,2279,1,0,0,0,519,2289,1,0,0,0,521,2297,1,0,0,0,523,2305,1,0,0,0,525,2316,1,0,0,0,527,2324,1,0,0,0,529,2330,1,0,0,0,531,2336,1,0,0,0,533,2342,1,0,0,0,535,2348,1,0,0,0,537,2355,1,0,0,0,539,2366,1,0,0,0,541,2373,1,0,0,0,543,2381,1,0,0,0,545,2389,1,0,0,0,547,2396,1,0,0,0,549,2403,1,0,0,0,551,2414,1,0,0,0,553,2422,1,0,0,0,555,2434,1,0,0,0,557,2440,1,0,0,0,559,2449,1,0,0,0,561,2457,1,0,0,0,563,2465,1,0,0,0,565,2473,1,0,0,0,567,2482,1,0,0,0,569,2489,1,0,0,0,571,2496,1,0,0,0,573,2506,1,0,0,0,575,2513,1,0,0,0,577,2520,1,0,0,0,579,2526,1,0,0,0,581,2532,1,0,0,0,583,2541,1,0,0,0,585,2548,1,0,0,0,587,2552,1,0,0,0,589,2557,1,0,0,0,591,2564,1,0,0,0,593,2574,1,0,0,0,595,2581,1,0,0,0,597,2589,1,0,0,0,599,2594,1,0,0,0,601,2601,1,0,0,0,603,2606,1,0,0,0,605,2610,1,0,0,0,607,2615,1,0,0,0,609,2620,1,0,0,0,611,2625,1,0,0,0,613,2634,1,0,0,0,615,2641,1,0,0,0,617,2647,1,0,0,0,619,2654,1,0,0,0,621,2661,1,0,0,0,623,2670,1,0,0,0,625,2677,1,0,0,0,627,2685,1,0,0,0,629,2695,1,0,0,0,631,2700,1,0,0,0,633,2707,1,0,0,0,635,2713,1,0,0,0,637,2720,1,0,0,0,639,2732,1,0,0,0,641,2743,1,0,0,0,643,2750,1,0,0,0,645,2755,1,0,0,0,647,2765,1,0,0,0,649,2770,1,0,0,0,651,2775,1,0,0,0,653,2778,1,0,0,0,655,2784,1,0,0,0,657,2796,1,0,0,0,659,2805,1,0,0,0,661,2813,1,0,0,0,663,2818,1,0,0,0,665,2824,1,0,0,0,667,2829,1,0,0,0,669,2839,1,0,0,0,671,2853,1,0,0,0,673,2859,1,0,0,0,675,2866,1,0,0,0,677,2874,1,0,0,0,679,2884,1,0,0,0,681,2891,1,0,0,0,683,2898,1,0,0,0,685,2902,1,0,0,0,687,2907,1,0,0,0,689,2913,1,0,0,0,691,2920,1,0,0,0,693,2927,1,0,0,0,695,2935,1,0,0,0,697,2940,1,0,0,0,699,2948,1,0,0,0,701,2953,1,0,0,0,703,2959,1,0,0,0,705,2966,1,0,0,0,707,2971,1,0,0,0,709,2979,1,0,0,0,711,2987,1,0,0,0,713,2995,1,0,0,0,715,3001,1,0,0,0,717,3003,1,0,0,0,719,3012,1,0,0,0,721,3030,1,0,0,0,723,3040,1,0,0,0,725,3054,1,0,0,0,727,3067,1,0,0,0,729,3069,1,0,0,0,731,3078,1,0,0,0,733,3080,1,0,0,0,735,3082,1,0,0,0,737,3089,1,0,0,0,739,3096,1,0,0,0,741,3104,1,0,0,0,743,3112,1,0,0,0,745,3114,1,0,0,0,747,3127,1,0,0,0,749,3148,1,0,0,0,751,3160,1,0,0,0,753,3169,1,0,0,0,755,3181,1,0,0,0,757,3197,1,0,0,0,759,3203,1,0,0,0,761,762,5,61,0,0,762,2,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,4,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,6,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,8,1,0,0,0,772,773,5,60,0,0,773,10,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,12,1,0,0,0,777,778,5,62,0,0,778,14,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,16,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,18,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,20,1,0,0,0,789,790,5,38,0,0,790,22,1,0,0,0,791,792,5,124,0,0,792,24,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,26,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,28,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,30,1,0,0,0,802,803,5,43,0,0,803,32,1,0,0,0,804,805,5,45,0,0,805,34,1,0,0,0,806,807,5,126,0,0,807,36,1,0,0,0,808,809,5,42,0,0,809,38,1,0,0,0,810,811,5,47,0,0,811,40,1,0,0,0,812,813,5,37,0,0,813,42,1,0,0,0,814,815,5,59,0,0,815,44,1,0,0,0,816,817,5,46,0,0,817,46,1,0,0,0,818,819,5,44,0,0,819,48,1,0,0,0,820,821,5,40,0,0,821,50,1,0,0,0,822,823,5,41,0,0,823,52,1,0,0,0,824,825,5,63,0,0,825,54,1,0,0,0,826,827,5,58,0,0,827,56,1,0,0,0,828,829,5,64,0,0,829,58,1,0,0,0,830,831,5,36,0,0,831,60,1,0,0,0,832,833,5,123,0,0,833,62,1,0,0,0,834,835,5,125,0,0,835,64,1,0,0,0,836,837,5,94,0,0,837,66,1,0,0,0,838,839,5,58,0,0,839,840,5,58,0,0,840,68,1,0,0,0,841,842,5,45,0,0,842,843,5,62,0,0,843,70,1,0,0,0,844,845,5,93,0,0,845,72,1,0,0,0,846,847,5,91,0,0,847,74,1,0,0,0,848,849,5,92,0,0,849,76,1,0,0,0,850,851,5,34,0,0,851,78,1,0,0,0,852,853,5,39,0,0,853,80,1,0,0,0,854,855,5,96,0,0,855,82,1,0,0,0,856,857,5,64,0,0,857,858,5,64,0,0,858,84,1,0,0,0,859,860,7,0,0,0,860,86,1,0,0,0,861,862,7,1,0,0,862,88,1,0,0,0,863,864,7,2,0,0,864,90,1,0,0,0,865,866,7,3,0,0,866,92,1,0,0,0,867,868,7,4,0,0,868,94,1,0,0,0,869,870,7,5,0,0,870,96,1,0,0,0,871,872,7,6,0,0,872,98,1,0,0,0,873,874,7,7,0,0,874,100,1,0,0,0,875,876,7,8,0,0,876,102,1,0,0,0,877,878,7,9,0,0,878,104,1,0,0,0,879,880,7,10,0,0,880,106,1,0,0,0,881,882,7,11,0,0,882,108,1,0,0,0,883,884,7,12,0,0,884,110,1,0,0,0,885,886,7,13,0,0,886,112,1,0,0,0,887,888,7,14,0,0,888,114,1,0,0,0,889,890,7,15,0,0,890,116,1,0,0,0,891,892,7,16,0,0,892,118,1,0,0,0,893,894,7,17,0,0,894,120,1,0,0,0,895,896,7,18,0,0,896,122,1,0,0,0,897,898,7,19,0,0,898,124,1,0,0,0,899,900,7,20,0,0,900,126,1,0,0,0,901,902,7,21,0,0,902,128,1,0,0,0,903,904,7,22,0,0,904,130,1,0,0,0,905,906,7,23,0,0,906,132,1,0,0,0,907,908,7,24,0,0,908,134,1,0,0,0,909,910,7,25,0,0,910,136,1,0,0,0,911,912,3,85,42,0,912,913,3,87,43,0,913,914,3,113,56,0,914,915,3,119,59,0,915,916,3,123,61,0,916,138,1,0,0,0,917,918,3,85,42,0,918,919,3,89,44,0,919,920,3,123,61,0,920,921,3,101,50,0,921,922,3,113,56,0,922,923,3,111,55,0,923,140,1,0,0,0,924,925,3,85,42,0,925,926,3,91,45,0,926,927,3,91,45,0,927,142,1,0,0,0,928,929,3,85,42,0,929,930,3,95,47,0,930,931,3,123,61,0,931,932,3,93,46,0,932,933,3,119,59,0,933,144,1,0,0,0,934,935,3,85,42,0,935,936,3,107,53,0,936,937,3,107,53,0,937,146,1,0,0,0,938,939,3,85,42,0,939,940,3,107,53,0,940,941,3,123,61,0,941,942,3,93,46,0,942,943,3,119,59,0,943,148,1,0,0,0,944,945,3,85,42,0,945,946,3,111,55,0,946,947,3,85,42,0,947,948,3,107,53,0,948,949,3,133,66,0,949,950,3,135,67,0,950,951,3,93,46,0,951,150,1,0,0,0,952,953,3,85,42,0,953,954,3,111,55,0,954,955,3,91,45,0,955,152,1,0,0,0,956,957,3,85,42,0,957,958,3,111,55,0,958,959,3,121,60,0,959,960,3,101,50,0,960,154,1,0,0,0,961,962,3,85,42,0,962,963,3,111,55,0,963,964,3,133,66,0,964,156,1,0,0,0,965,966,3,85,42,0,966,967,3,119,59,0,967,968,3,119,59,0,968,969,3,85,42,0,969,970,3,133,66,0,970,158,1,0,0,0,971,972,3,85,42,0,972,973,3,121,60,0,973,160,1,0,0,0,974,975,3,85,42,0,975,976,3,121,60,0,976,977,3,89,44,0,977,162,1,0,0,0,978,979,3,85,42,0,979,980,3,121,60,0,980,981,3,121,60,0,981,982,3,125,62,0,982,983,3,109,54,0,983,984,3,93,46,0,984,164,1,0,0,0,985,986,3,85,42,0,986,987,3,121,60,0,987,988,3,133,66,0,988,989,3,109,54,0,989,990,3,109,54,0,990,991,3,93,46,0,991,992,3,123,61,0,992,993,3,119,59,0,993,994,3,101,50,0,994,995,3,89,44,0,995,166,1,0,0,0,996,997,3,85,42,0,997,998,3,121,60,0,998,999,3,133,66,0,999,1e3,3,111,55,0,1e3,1001,3,89,44,0,1001,168,1,0,0,0,1002,1003,3,85,42,0,1003,1004,3,123,61,0,1004,170,1,0,0,0,1005,1006,3,85,42,0,1006,1007,3,123,61,0,1007,1008,3,123,61,0,1008,1009,3,85,42,0,1009,1010,3,89,44,0,1010,1011,3,99,49,0,1011,172,1,0,0,0,1012,1013,3,85,42,0,1013,1014,3,123,61,0,1014,1015,3,123,61,0,1015,1016,3,119,59,0,1016,1017,3,101,50,0,1017,1018,3,87,43,0,1018,1019,3,125,62,0,1019,1020,3,123,61,0,1020,1021,3,93,46,0,1021,1022,3,121,60,0,1022,174,1,0,0,0,1023,1024,3,85,42,0,1024,1025,3,125,62,0,1025,1026,3,123,61,0,1026,1027,3,113,56,0,1027,1028,3,101,50,0,1028,1029,3,111,55,0,1029,1030,3,89,44,0,1030,1031,3,119,59,0,1031,1032,3,93,46,0,1032,1033,3,109,54,0,1033,1034,3,93,46,0,1034,1035,3,111,55,0,1035,1036,3,123,61,0,1036,176,1,0,0,0,1037,1038,3,85,42,0,1038,1039,3,125,62,0,1039,1040,3,123,61,0,1040,1041,3,113,56,0,1041,1042,3,109,54,0,1042,1043,3,85,42,0,1043,1044,3,115,57,0,1044,178,1,0,0,0,1045,1046,3,87,43,0,1046,1047,3,85,42,0,1047,1048,3,89,44,0,1048,1049,3,105,52,0,1049,1050,3,125,62,0,1050,1051,3,115,57,0,1051,180,1,0,0,0,1052,1053,3,87,43,0,1053,1054,3,85,42,0,1054,1055,3,123,61,0,1055,1056,3,89,44,0,1056,1057,3,99,49,0,1057,182,1,0,0,0,1058,1059,3,89,44,0,1059,1060,3,113,56,0,1060,1061,3,107,53,0,1061,1062,3,107,53,0,1062,1063,3,93,46,0,1063,1064,3,89,44,0,1064,1065,3,123,61,0,1065,1066,3,101,50,0,1066,1067,3,113,56,0,1067,1068,3,111,55,0,1068,184,1,0,0,0,1069,1070,3,87,43,0,1070,1071,3,93,46,0,1071,1072,3,95,47,0,1072,1073,3,113,56,0,1073,1074,3,119,59,0,1074,1075,3,93,46,0,1075,186,1,0,0,0,1076,1077,3,87,43,0,1077,1078,3,93,46,0,1078,1079,3,97,48,0,1079,1080,3,101,50,0,1080,1081,3,111,55,0,1081,188,1,0,0,0,1082,1083,3,87,43,0,1083,1084,3,93,46,0,1084,1085,3,119,59,0,1085,1086,3,111,55,0,1086,1087,3,113,56,0,1087,1088,3,125,62,0,1088,1089,3,107,53,0,1089,1090,3,107,53,0,1090,1091,3,101,50,0,1091,190,1,0,0,0,1092,1093,3,87,43,0,1093,1094,3,93,46,0,1094,1095,3,123,61,0,1095,1096,3,129,64,0,1096,1097,3,93,46,0,1097,1098,3,93,46,0,1098,1099,3,111,55,0,1099,192,1,0,0,0,1100,1101,3,87,43,0,1101,1102,3,101,50,0,1102,1103,3,123,61,0,1103,1104,3,89,44,0,1104,1105,3,85,42,0,1105,1106,3,121,60,0,1106,1107,3,123,61,0,1107,194,1,0,0,0,1108,1109,3,87,43,0,1109,1110,3,133,66,0,1110,196,1,0,0,0,1111,1112,3,89,44,0,1112,1113,3,85,42,0,1113,1114,3,107,53,0,1114,1115,3,107,53,0,1115,1116,3,85,42,0,1116,1117,3,87,43,0,1117,1118,3,107,53,0,1118,1119,3,93,46,0,1119,198,1,0,0,0,1120,1121,3,89,44,0,1121,1122,3,85,42,0,1122,1123,3,121,60,0,1123,1124,3,89,44,0,1124,1125,3,85,42,0,1125,1126,3,91,45,0,1126,1127,3,93,46,0,1127,200,1,0,0,0,1128,1129,3,89,44,0,1129,1130,3,85,42,0,1130,1131,3,121,60,0,1131,1132,3,93,46,0,1132,202,1,0,0,0,1133,1134,3,89,44,0,1134,1135,3,85,42,0,1135,1136,3,121,60,0,1136,1137,3,123,61,0,1137,204,1,0,0,0,1138,1139,3,89,44,0,1139,1140,3,99,49,0,1140,1141,3,85,42,0,1141,1142,3,111,55,0,1142,1143,3,97,48,0,1143,1144,3,93,46,0,1144,1145,3,95,47,0,1145,1146,3,93,46,0,1146,1147,3,93,46,0,1147,1148,3,91,45,0,1148,206,1,0,0,0,1149,1150,3,89,44,0,1150,1151,3,99,49,0,1151,1152,3,93,46,0,1152,1153,3,89,44,0,1153,1154,3,105,52,0,1154,208,1,0,0,0,1155,1156,3,89,44,0,1156,1157,3,107,53,0,1157,1158,3,85,42,0,1158,1159,3,121,60,0,1159,1160,3,121,60,0,1160,1161,3,101,50,0,1161,1162,3,95,47,0,1162,1163,3,101,50,0,1163,1164,3,93,46,0,1164,1165,3,119,59,0,1165,210,1,0,0,0,1166,1167,3,89,44,0,1167,1168,3,113,56,0,1168,1169,3,107,53,0,1169,1170,3,107,53,0,1170,1171,3,85,42,0,1171,1172,3,123,61,0,1172,1173,3,93,46,0,1173,212,1,0,0,0,1174,1175,3,89,44,0,1175,1176,3,113,56,0,1176,1177,3,107,53,0,1177,1178,3,125,62,0,1178,1179,3,109,54,0,1179,1180,3,111,55,0,1180,214,1,0,0,0,1181,1182,3,89,44,0,1182,1183,3,113,56,0,1183,1184,3,107,53,0,1184,1185,3,125,62,0,1185,1186,3,109,54,0,1186,1187,3,111,55,0,1187,1188,3,121,60,0,1188,216,1,0,0,0,1189,1190,3,89,44,0,1190,1191,3,113,56,0,1191,1192,3,109,54,0,1192,1193,3,109,54,0,1193,1194,3,101,50,0,1194,1195,3,123,61,0,1195,218,1,0,0,0,1196,1197,3,89,44,0,1197,1198,3,113,56,0,1198,1199,3,109,54,0,1199,1200,3,115,57,0,1200,1201,3,85,42,0,1201,1202,3,89,44,0,1202,1203,3,123,61,0,1203,220,1,0,0,0,1204,1205,3,89,44,0,1205,1206,3,113,56,0,1206,1207,3,111,55,0,1207,1208,3,91,45,0,1208,1209,3,101,50,0,1209,1210,3,123,61,0,1210,1211,3,101,50,0,1211,1212,3,113,56,0,1212,1213,3,111,55,0,1213,1214,3,85,42,0,1214,1215,3,107,53,0,1215,222,1,0,0,0,1216,1217,3,89,44,0,1217,1218,3,113,56,0,1218,1219,3,111,55,0,1219,1220,3,95,47,0,1220,1221,3,107,53,0,1221,1222,3,101,50,0,1222,1223,3,89,44,0,1223,1224,3,123,61,0,1224,224,1,0,0,0,1225,1226,3,89,44,0,1226,1227,3,113,56,0,1227,1228,3,111,55,0,1228,1229,3,111,55,0,1229,1230,3,93,46,0,1230,1231,3,89,44,0,1231,1232,3,123,61,0,1232,226,1,0,0,0,1233,1234,3,89,44,0,1234,1235,3,113,56,0,1235,1236,3,111,55,0,1236,1237,3,121,60,0,1237,1238,3,123,61,0,1238,1239,3,119,59,0,1239,1240,3,85,42,0,1240,1241,3,101,50,0,1241,1242,3,111,55,0,1242,1243,3,123,61,0,1243,228,1,0,0,0,1244,1245,3,89,44,0,1245,1246,3,113,56,0,1246,1247,3,111,55,0,1247,1248,3,121,60,0,1248,1249,3,125,62,0,1249,1250,3,109,54,0,1250,1251,3,93,46,0,1251,1252,3,119,59,0,1252,230,1,0,0,0,1253,1254,3,89,44,0,1254,1255,3,113,56,0,1255,1256,3,127,63,0,1256,1257,3,93,46,0,1257,1258,3,119,59,0,1258,232,1,0,0,0,1259,1260,3,89,44,0,1260,1261,3,119,59,0,1261,1262,3,93,46,0,1262,1263,3,85,42,0,1263,1264,3,123,61,0,1264,1265,3,93,46,0,1265,234,1,0,0,0,1266,1267,3,89,44,0,1267,1268,3,119,59,0,1268,1269,3,113,56,0,1269,1270,3,121,60,0,1270,1271,3,121,60,0,1271,236,1,0,0,0,1272,1273,3,89,44,0,1273,1274,3,125,62,0,1274,1275,3,87,43,0,1275,1276,3,93,46,0,1276,238,1,0,0,0,1277,1278,3,89,44,0,1278,1279,3,125,62,0,1279,1280,3,119,59,0,1280,1281,3,119,59,0,1281,1282,3,93,46,0,1282,1283,3,111,55,0,1283,1284,3,123,61,0,1284,240,1,0,0,0,1285,1286,3,89,44,0,1286,1287,3,125,62,0,1287,1288,3,119,59,0,1288,1289,3,119,59,0,1289,1290,3,93,46,0,1290,1291,3,111,55,0,1291,1292,3,123,61,0,1292,1293,5,95,0,0,1293,1294,3,91,45,0,1294,1295,3,85,42,0,1295,1296,3,123,61,0,1296,1297,3,93,46,0,1297,242,1,0,0,0,1298,1299,3,89,44,0,1299,1300,3,125,62,0,1300,1301,3,119,59,0,1301,1302,3,119,59,0,1302,1303,3,93,46,0,1303,1304,3,111,55,0,1304,1305,3,123,61,0,1305,1306,5,95,0,0,1306,1307,3,123,61,0,1307,1308,3,101,50,0,1308,1309,3,109,54,0,1309,1310,3,93,46,0,1310,244,1,0,0,0,1311,1312,3,89,44,0,1312,1313,3,125,62,0,1313,1314,3,119,59,0,1314,1315,3,119,59,0,1315,1316,3,93,46,0,1316,1317,3,111,55,0,1317,1318,3,123,61,0,1318,1319,5,95,0,0,1319,1320,3,123,61,0,1320,1321,3,101,50,0,1321,1322,3,109,54,0,1322,1323,3,93,46,0,1323,1324,3,121,60,0,1324,1325,3,123,61,0,1325,1326,3,85,42,0,1326,1327,3,109,54,0,1327,1328,3,115,57,0,1328,246,1,0,0,0,1329,1330,3,91,45,0,1330,1331,3,85,42,0,1331,1332,3,123,61,0,1332,1333,3,85,42,0,1333,248,1,0,0,0,1334,1335,3,91,45,0,1335,1336,3,85,42,0,1336,1337,3,123,61,0,1337,1338,3,85,42,0,1338,1339,3,87,43,0,1339,1340,3,85,42,0,1340,1341,3,121,60,0,1341,1342,3,93,46,0,1342,250,1,0,0,0,1343,1344,3,91,45,0,1344,1345,3,93,46,0,1345,1346,3,89,44,0,1346,1347,3,101,50,0,1347,1348,3,109,54,0,1348,1349,3,85,42,0,1349,1350,3,107,53,0,1350,252,1,0,0,0,1351,1352,3,91,45,0,1352,1353,3,93,46,0,1353,1354,3,89,44,0,1354,1355,3,107,53,0,1355,1356,3,85,42,0,1356,1357,3,119,59,0,1357,1358,3,93,46,0,1358,254,1,0,0,0,1359,1360,3,91,45,0,1360,1361,3,93,46,0,1361,1362,3,95,47,0,1362,1363,3,85,42,0,1363,1364,3,125,62,0,1364,1365,3,107,53,0,1365,1366,3,123,61,0,1366,256,1,0,0,0,1367,1368,3,91,45,0,1368,1369,3,93,46,0,1369,1370,3,95,47,0,1370,1371,3,93,46,0,1371,1372,3,119,59,0,1372,1373,3,119,59,0,1373,1374,3,85,42,0,1374,1375,3,87,43,0,1375,1376,3,107,53,0,1376,1377,3,93,46,0,1377,258,1,0,0,0,1378,1379,3,91,45,0,1379,1380,3,93,46,0,1380,1381,3,95,47,0,1381,1382,3,93,46,0,1382,1383,3,119,59,0,1383,1384,3,119,59,0,1384,1385,3,93,46,0,1385,1386,3,91,45,0,1386,260,1,0,0,0,1387,1388,3,91,45,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,101,50,0,1391,1392,3,111,55,0,1392,1393,3,93,46,0,1393,262,1,0,0,0,1394,1395,3,91,45,0,1395,1396,3,93,46,0,1396,1397,3,107,53,0,1397,1398,3,93,46,0,1398,1399,3,123,61,0,1399,1400,3,93,46,0,1400,264,1,0,0,0,1401,1402,3,91,45,0,1402,1403,3,93,46,0,1403,1404,3,121,60,0,1404,1405,3,89,44,0,1405,266,1,0,0,0,1406,1407,3,91,45,0,1407,1408,3,93,46,0,1408,1409,3,121,60,0,1409,1410,3,89,44,0,1410,1411,3,119,59,0,1411,1412,3,101,50,0,1412,1413,3,87,43,0,1413,1414,3,93,46,0,1414,268,1,0,0,0,1415,1416,3,91,45,0,1416,1417,3,93,46,0,1417,1418,3,123,61,0,1418,1419,3,85,42,0,1419,1420,3,89,44,0,1420,1421,3,99,49,0,1421,270,1,0,0,0,1422,1423,3,91,45,0,1423,1424,3,101,50,0,1424,1425,3,89,44,0,1425,1426,3,123,61,0,1426,272,1,0,0,0,1427,1428,3,91,45,0,1428,1429,3,101,50,0,1429,1430,3,119,59,0,1430,1431,3,93,46,0,1431,1432,3,89,44,0,1432,1433,3,123,61,0,1433,1434,3,113,56,0,1434,1435,3,119,59,0,1435,1436,3,133,66,0,1436,274,1,0,0,0,1437,1438,3,91,45,0,1438,1439,3,101,50,0,1439,1440,3,121,60,0,1440,1441,3,85,42,0,1441,1442,3,87,43,0,1442,1443,3,107,53,0,1443,1444,3,93,46,0,1444,276,1,0,0,0,1445,1446,3,91,45,0,1446,1447,3,101,50,0,1447,1448,3,121,60,0,1448,1449,3,89,44,0,1449,1450,3,85,42,0,1450,1451,3,119,59,0,1451,1452,3,91,45,0,1452,278,1,0,0,0,1453,1454,3,91,45,0,1454,1455,3,101,50,0,1455,1456,3,121,60,0,1456,1457,3,123,61,0,1457,1458,3,101,50,0,1458,1459,3,111,55,0,1459,1460,3,89,44,0,1460,1461,3,123,61,0,1461,280,1,0,0,0,1462,1463,3,91,45,0,1463,1464,3,113,56,0,1464,282,1,0,0,0,1465,1466,3,91,45,0,1466,1467,3,119,59,0,1467,1468,3,113,56,0,1468,1469,3,115,57,0,1469,284,1,0,0,0,1470,1471,3,93,46,0,1471,1472,3,85,42,0,1472,1473,3,89,44,0,1473,1474,3,99,49,0,1474,286,1,0,0,0,1475,1476,3,93,46,0,1476,1477,3,107,53,0,1477,1478,3,121,60,0,1478,1479,3,93,46,0,1479,288,1,0,0,0,1480,1481,3,93,46,0,1481,1482,3,109,54,0,1482,1483,3,115,57,0,1483,1484,3,123,61,0,1484,1485,3,133,66,0,1485,290,1,0,0,0,1486,1487,3,93,46,0,1487,1488,3,109,54,0,1488,1489,3,115,57,0,1489,1490,3,123,61,0,1490,1491,3,133,66,0,1491,1492,5,95,0,0,1492,1493,3,85,42,0,1493,1494,3,89,44,0,1494,1495,3,123,61,0,1495,1496,3,101,50,0,1496,1497,3,113,56,0,1497,1498,3,111,55,0,1498,292,1,0,0,0,1499,1500,3,93,46,0,1500,1501,3,111,55,0,1501,1502,3,89,44,0,1502,1503,3,119,59,0,1503,1504,3,133,66,0,1504,1505,3,115,57,0,1505,1506,3,123,61,0,1506,1507,3,93,46,0,1507,1508,3,91,45,0,1508,294,1,0,0,0,1509,1510,3,93,46,0,1510,1511,3,111,55,0,1511,1512,3,91,45,0,1512,296,1,0,0,0,1513,1514,3,93,46,0,1514,1515,3,111,55,0,1515,1516,3,125,62,0,1516,1517,3,109,54,0,1517,298,1,0,0,0,1518,1519,3,93,46,0,1519,1520,3,119,59,0,1520,1521,3,85,42,0,1521,1522,3,121,60,0,1522,1523,3,93,46,0,1523,300,1,0,0,0,1524,1525,3,93,46,0,1525,1526,3,119,59,0,1526,1527,3,119,59,0,1527,1528,3,113,56,0,1528,1529,3,119,59,0,1529,302,1,0,0,0,1530,1531,3,93,46,0,1531,1532,3,121,60,0,1532,1533,3,89,44,0,1533,1534,3,85,42,0,1534,1535,3,115,57,0,1535,1536,3,93,46,0,1536,304,1,0,0,0,1537,1538,3,93,46,0,1538,1539,3,127,63,0,1539,1540,3,85,42,0,1540,1541,3,107,53,0,1541,1542,3,125,62,0,1542,1543,3,85,42,0,1543,1544,3,123,61,0,1544,1545,3,93,46,0,1545,306,1,0,0,0,1546,1547,3,93,46,0,1547,1548,3,131,65,0,1548,1549,3,89,44,0,1549,1550,3,93,46,0,1550,1551,3,115,57,0,1551,1552,3,123,61,0,1552,308,1,0,0,0,1553,1554,3,93,46,0,1554,1555,3,131,65,0,1555,1556,3,89,44,0,1556,1557,3,107,53,0,1557,1558,3,125,62,0,1558,1559,3,91,45,0,1559,1560,3,93,46,0,1560,310,1,0,0,0,1561,1562,3,93,46,0,1562,1563,3,131,65,0,1563,1564,3,89,44,0,1564,1565,3,107,53,0,1565,1566,3,125,62,0,1566,1567,3,121,60,0,1567,1568,3,101,50,0,1568,1569,3,113,56,0,1569,1570,3,111,55,0,1570,312,1,0,0,0,1571,1572,3,93,46,0,1572,1573,3,131,65,0,1573,1574,3,89,44,0,1574,1575,3,107,53,0,1575,1576,3,125,62,0,1576,1577,3,121,60,0,1577,1578,3,101,50,0,1578,1579,3,127,63,0,1579,1580,3,93,46,0,1580,314,1,0,0,0,1581,1582,3,93,46,0,1582,1583,3,131,65,0,1583,1584,3,101,50,0,1584,1585,3,121,60,0,1585,1586,3,123,61,0,1586,1587,3,121,60,0,1587,316,1,0,0,0,1588,1589,3,93,46,0,1589,1590,3,131,65,0,1590,1591,3,115,57,0,1591,1592,3,107,53,0,1592,1593,3,85,42,0,1593,1594,3,101,50,0,1594,1595,3,111,55,0,1595,318,1,0,0,0,1596,1597,3,93,46,0,1597,1598,3,131,65,0,1598,1599,3,115,57,0,1599,1600,3,113,56,0,1600,1601,3,119,59,0,1601,1602,3,123,61,0,1602,320,1,0,0,0,1603,1604,3,93,46,0,1604,1605,3,131,65,0,1605,1606,3,123,61,0,1606,1607,3,93,46,0,1607,1608,3,119,59,0,1608,1609,3,111,55,0,1609,1610,3,85,42,0,1610,1611,3,107,53,0,1611,322,1,0,0,0,1612,1613,3,95,47,0,1613,1614,3,85,42,0,1614,1615,3,101,50,0,1615,1616,3,107,53,0,1616,324,1,0,0,0,1617,1618,3,95,47,0,1618,1619,3,85,42,0,1619,1620,3,107,53,0,1620,1621,3,121,60,0,1621,1622,3,93,46,0,1622,326,1,0,0,0,1623,1624,3,95,47,0,1624,1625,3,85,42,0,1625,1626,3,109,54,0,1626,1627,3,101,50,0,1627,1628,3,107,53,0,1628,1629,3,133,66,0,1629,328,1,0,0,0,1630,1631,3,95,47,0,1631,1632,3,101,50,0,1632,1633,3,107,53,0,1633,1634,3,123,61,0,1634,1635,3,93,46,0,1635,1636,3,119,59,0,1636,330,1,0,0,0,1637,1638,3,95,47,0,1638,1639,3,101,50,0,1639,1640,3,119,59,0,1640,1641,3,121,60,0,1641,1642,3,123,61,0,1642,332,1,0,0,0,1643,1644,3,95,47,0,1644,1645,3,107,53,0,1645,1646,3,85,42,0,1646,1647,3,123,61,0,1647,1648,3,123,61,0,1648,1649,3,93,46,0,1649,1650,3,111,55,0,1650,334,1,0,0,0,1651,1652,3,95,47,0,1652,1653,3,107,53,0,1653,1654,3,113,56,0,1654,1655,3,129,64,0,1655,336,1,0,0,0,1656,1657,3,95,47,0,1657,1658,3,113,56,0,1658,1659,3,107,53,0,1659,1660,3,107,53,0,1660,1661,3,113,56,0,1661,1662,3,129,64,0,1662,1663,3,101,50,0,1663,1664,3,111,55,0,1664,1665,3,97,48,0,1665,338,1,0,0,0,1666,1667,3,95,47,0,1667,1668,3,113,56,0,1668,1669,3,119,59,0,1669,340,1,0,0,0,1670,1671,3,95,47,0,1671,1672,3,113,56,0,1672,1673,3,119,59,0,1673,1674,3,93,46,0,1674,1675,3,101,50,0,1675,1676,3,97,48,0,1676,1677,3,111,55,0,1677,342,1,0,0,0,1678,1679,3,95,47,0,1679,1680,3,119,59,0,1680,1681,3,113,56,0,1681,1682,3,109,54,0,1682,344,1,0,0,0,1683,1684,3,95,47,0,1684,1685,3,125,62,0,1685,1686,3,107,53,0,1686,1687,3,107,53,0,1687,346,1,0,0,0,1688,1689,3,95,47,0,1689,1690,3,125,62,0,1690,1691,3,111,55,0,1691,1692,3,89,44,0,1692,1693,3,123,61,0,1693,1694,3,101,50,0,1694,1695,3,113,56,0,1695,1696,3,111,55,0,1696,348,1,0,0,0,1697,1698,3,97,48,0,1698,1699,3,107,53,0,1699,1700,3,113,56,0,1700,1701,3,87,43,0,1701,350,1,0,0,0,1702,1703,3,97,48,0,1703,1704,3,107,53,0,1704,1705,3,113,56,0,1705,1706,3,87,43,0,1706,1707,3,85,42,0,1707,1708,3,107,53,0,1708,352,1,0,0,0,1709,1710,3,97,48,0,1710,1711,3,119,59,0,1711,1712,3,85,42,0,1712,1713,3,111,55,0,1713,1714,3,123,61,0,1714,354,1,0,0,0,1715,1716,3,97,48,0,1716,1717,3,119,59,0,1717,1718,3,113,56,0,1718,1719,3,125,62,0,1719,1720,3,115,57,0,1720,356,1,0,0,0,1721,1722,3,97,48,0,1722,1723,3,119,59,0,1723,1724,3,113,56,0,1724,1725,3,125,62,0,1725,1726,3,115,57,0,1726,1727,3,101,50,0,1727,1728,3,111,55,0,1728,1729,3,97,48,0,1729,358,1,0,0,0,1730,1731,3,97,48,0,1731,1732,3,119,59,0,1732,1733,3,113,56,0,1733,1734,3,125,62,0,1734,1735,3,115,57,0,1735,1736,3,121,60,0,1736,360,1,0,0,0,1737,1738,3,99,49,0,1738,1739,3,85,42,0,1739,1740,3,121,60,0,1740,1741,3,99,49,0,1741,362,1,0,0,0,1742,1743,3,99,49,0,1743,1744,3,85,42,0,1744,1745,3,127,63,0,1745,1746,3,101,50,0,1746,1747,3,111,55,0,1747,1748,3,97,48,0,1748,364,1,0,0,0,1749,1750,3,99,49,0,1750,1751,3,113,56,0,1751,1752,3,115,57,0,1752,366,1,0,0,0,1753,1754,3,101,50,0,1754,1755,3,95,47,0,1755,368,1,0,0,0,1756,1757,3,101,50,0,1757,1758,3,97,48,0,1758,1759,3,111,55,0,1759,1760,3,113,56,0,1760,1761,3,119,59,0,1761,1762,3,93,46,0,1762,370,1,0,0,0,1763,1764,3,101,50,0,1764,1765,3,107,53,0,1765,1766,3,101,50,0,1766,1767,3,105,52,0,1767,1768,3,93,46,0,1768,372,1,0,0,0,1769,1770,3,101,50,0,1770,1771,3,109,54,0,1771,1772,3,109,54,0,1772,1773,3,93,46,0,1773,1774,3,91,45,0,1774,1775,3,101,50,0,1775,1776,3,85,42,0,1776,1777,3,123,61,0,1777,1778,3,93,46,0,1778,374,1,0,0,0,1779,1780,3,101,50,0,1780,1781,3,109,54,0,1781,1782,3,115,57,0,1782,1783,3,113,56,0,1783,1784,3,119,59,0,1784,1785,3,123,61,0,1785,376,1,0,0,0,1786,1787,3,101,50,0,1787,1788,3,111,55,0,1788,378,1,0,0,0,1789,1790,3,101,50,0,1790,1791,3,111,55,0,1791,1792,3,89,44,0,1792,1793,3,119,59,0,1793,1794,3,93,46,0,1794,1795,3,109,54,0,1795,1796,3,93,46,0,1796,1797,3,111,55,0,1797,1798,3,123,61,0,1798,380,1,0,0,0,1799,1800,3,101,50,0,1800,1801,3,111,55,0,1801,1802,3,89,44,0,1802,1803,3,119,59,0,1803,1804,3,93,46,0,1804,1805,3,109,54,0,1805,1806,3,93,46,0,1806,1807,3,111,55,0,1807,1808,3,123,61,0,1808,1809,3,85,42,0,1809,1810,3,107,53,0,1810,382,1,0,0,0,1811,1812,3,101,50,0,1812,1813,3,111,55,0,1813,1814,3,91,45,0,1814,1815,3,93,46,0,1815,1816,3,131,65,0,1816,384,1,0,0,0,1817,1818,3,101,50,0,1818,1819,3,111,55,0,1819,1820,3,91,45,0,1820,1821,3,93,46,0,1821,1822,3,131,65,0,1822,1823,3,93,46,0,1823,1824,3,91,45,0,1824,386,1,0,0,0,1825,1826,3,101,50,0,1826,1827,3,111,55,0,1827,1828,3,99,49,0,1828,1829,3,93,46,0,1829,1830,3,119,59,0,1830,1831,3,101,50,0,1831,1832,3,123,61,0,1832,1833,3,121,60,0,1833,388,1,0,0,0,1834,1835,3,101,50,0,1835,1836,3,111,55,0,1836,1837,3,101,50,0,1837,1838,3,123,61,0,1838,1839,3,101,50,0,1839,1840,3,85,42,0,1840,1841,3,107,53,0,1841,390,1,0,0,0,1842,1843,3,101,50,0,1843,1844,3,111,55,0,1844,1845,3,101,50,0,1845,1846,3,123,61,0,1846,1847,3,101,50,0,1847,1848,3,85,42,0,1848,1849,3,107,53,0,1849,1850,3,107,53,0,1850,1851,3,133,66,0,1851,392,1,0,0,0,1852,1853,3,101,50,0,1853,1854,3,111,55,0,1854,1855,3,111,55,0,1855,1856,3,93,46,0,1856,1857,3,119,59,0,1857,394,1,0,0,0,1858,1859,3,101,50,0,1859,1860,3,111,55,0,1860,1861,3,121,60,0,1861,1862,3,93,46,0,1862,1863,3,119,59,0,1863,1864,3,123,61,0,1864,396,1,0,0,0,1865,1866,3,101,50,0,1866,1867,3,111,55,0,1867,1868,3,121,60,0,1868,1869,3,123,61,0,1869,1870,3,93,46,0,1870,1871,3,85,42,0,1871,1872,3,91,45,0,1872,398,1,0,0,0,1873,1874,3,101,50,0,1874,1875,3,111,55,0,1875,1876,3,123,61,0,1876,1877,3,93,46,0,1877,1878,3,119,59,0,1878,1879,3,121,60,0,1879,1880,3,93,46,0,1880,1881,3,89,44,0,1881,1882,3,123,61,0,1882,400,1,0,0,0,1883,1884,3,101,50,0,1884,1885,3,111,55,0,1885,1886,3,123,61,0,1886,1887,3,113,56,0,1887,402,1,0,0,0,1888,1889,3,101,50,0,1889,1890,3,121,60,0,1890,404,1,0,0,0,1891,1892,3,101,50,0,1892,1893,3,121,60,0,1893,1894,3,111,55,0,1894,1895,3,125,62,0,1895,1896,3,107,53,0,1896,1897,3,107,53,0,1897,406,1,0,0,0,1898,1899,3,103,51,0,1899,1900,3,113,56,0,1900,1901,3,101,50,0,1901,1902,3,111,55,0,1902,408,1,0,0,0,1903,1904,3,103,51,0,1904,1905,3,121,60,0,1905,1906,3,113,56,0,1906,1907,3,111,55,0,1907,1908,5,95,0,0,1908,1909,3,93,46,0,1909,1910,3,131,65,0,1910,1911,3,101,50,0,1911,1912,3,121,60,0,1912,1913,3,123,61,0,1913,1914,3,121,60,0,1914,410,1,0,0,0,1915,1916,3,103,51,0,1916,1917,3,121,60,0,1917,1918,3,113,56,0,1918,1919,3,111,55,0,1919,1920,5,95,0,0,1920,1921,3,117,58,0,1921,1922,3,125,62,0,1922,1923,3,93,46,0,1923,1924,3,119,59,0,1924,1925,3,133,66,0,1925,412,1,0,0,0,1926,1927,3,103,51,0,1927,1928,3,121,60,0,1928,1929,3,113,56,0,1929,1930,3,111,55,0,1930,1931,5,95,0,0,1931,1932,3,127,63,0,1932,1933,3,85,42,0,1933,1934,3,107,53,0,1934,1935,3,125,62,0,1935,1936,3,93,46,0,1936,414,1,0,0,0,1937,1938,3,105,52,0,1938,1939,3,93,46,0,1939,1940,3,133,66,0,1940,416,1,0,0,0,1941,1942,3,107,53,0,1942,1943,3,85,42,0,1943,1944,3,121,60,0,1944,1945,3,123,61,0,1945,418,1,0,0,0,1946,1947,3,107,53,0,1947,1948,3,93,46,0,1948,1949,3,95,47,0,1949,1950,3,123,61,0,1950,420,1,0,0,0,1951,1952,3,107,53,0,1952,1953,3,93,46,0,1953,1954,3,97,48,0,1954,1955,3,85,42,0,1955,1956,3,89,44,0,1956,1957,3,133,66,0,1957,422,1,0,0,0,1958,1959,3,107,53,0,1959,1960,3,101,50,0,1960,1961,3,105,52,0,1961,1962,3,93,46,0,1962,424,1,0,0,0,1963,1964,3,107,53,0,1964,1965,3,101,50,0,1965,1966,3,109,54,0,1966,1967,3,101,50,0,1967,1968,3,123,61,0,1968,426,1,0,0,0,1969,1970,3,107,53,0,1970,1971,3,101,50,0,1971,1972,3,121,60,0,1972,1973,3,123,61,0,1973,428,1,0,0,0,1974,1975,3,107,53,0,1975,1976,3,113,56,0,1976,1977,3,89,44,0,1977,1978,3,85,42,0,1978,1979,3,107,53,0,1979,430,1,0,0,0,1980,1981,3,107,53,0,1981,1982,3,113,56,0,1982,1983,3,97,48,0,1983,1984,3,101,50,0,1984,1985,3,111,55,0,1985,432,1,0,0,0,1986,1987,3,109,54,0,1987,1988,3,85,42,0,1988,1989,3,111,55,0,1989,1990,3,85,42,0,1990,1991,3,97,48,0,1991,1992,3,93,46,0,1992,434,1,0,0,0,1993,1994,3,109,54,0,1994,1995,3,85,42,0,1995,1996,3,123,61,0,1996,1997,3,89,44,0,1997,1998,3,99,49,0,1998,436,1,0,0,0,1999,2e3,3,109,54,0,2e3,2001,3,85,42,0,2001,2002,3,123,61,0,2002,2003,3,89,44,0,2003,2004,3,99,49,0,2004,2005,3,93,46,0,2005,2006,3,121,60,0,2006,438,1,0,0,0,2007,2008,3,109,54,0,2008,2009,3,85,42,0,2009,2010,3,123,61,0,2010,2011,3,89,44,0,2011,2012,3,99,49,0,2012,2013,5,95,0,0,2013,2014,3,119,59,0,2014,2015,3,93,46,0,2015,2016,3,89,44,0,2016,2017,3,113,56,0,2017,2018,3,97,48,0,2018,2019,3,111,55,0,2019,2020,3,101,50,0,2020,2021,3,135,67,0,2021,2022,3,93,46,0,2022,440,1,0,0,0,2023,2024,3,109,54,0,2024,2025,3,93,46,0,2025,2026,3,85,42,0,2026,2027,3,121,60,0,2027,2028,3,125,62,0,2028,2029,3,119,59,0,2029,2030,3,93,46,0,2030,2031,3,121,60,0,2031,442,1,0,0,0,2032,2033,3,109,54,0,2033,2034,3,101,50,0,2034,2035,3,89,44,0,2035,2036,3,119,59,0,2036,2037,3,113,56,0,2037,2038,3,121,60,0,2038,2039,3,93,46,0,2039,2040,3,89,44,0,2040,2041,3,113,56,0,2041,2042,3,111,55,0,2042,2043,3,91,45,0,2043,2044,3,121,60,0,2044,444,1,0,0,0,2045,2046,3,109,54,0,2046,2047,3,101,50,0,2047,2048,3,107,53,0,2048,2049,3,107,53,0,2049,2050,3,101,50,0,2050,2051,3,121,60,0,2051,2052,3,93,46,0,2052,2053,3,89,44,0,2053,2054,3,113,56,0,2054,2055,3,111,55,0,2055,2056,3,91,45,0,2056,2057,3,121,60,0,2057,446,1,0,0,0,2058,2059,3,109,54,0,2059,2060,3,113,56,0,2060,2061,3,91,45,0,2061,2062,3,101,50,0,2062,2063,3,95,47,0,2063,2064,3,133,66,0,2064,448,1,0,0,0,2065,2066,3,111,55,0,2066,2067,3,85,42,0,2067,2068,3,111,55,0,2068,2069,3,113,56,0,2069,2070,3,121,60,0,2070,2071,3,93,46,0,2071,2072,3,89,44,0,2072,2073,3,113,56,0,2073,2074,3,111,55,0,2074,2075,3,91,45,0,2075,2076,3,121,60,0,2076,450,1,0,0,0,2077,2078,3,111,55,0,2078,2079,3,85,42,0,2079,2080,3,123,61,0,2080,2081,3,125,62,0,2081,2082,3,119,59,0,2082,2083,3,85,42,0,2083,2084,3,107,53,0,2084,452,1,0,0,0,2085,2086,3,111,55,0,2086,2087,3,93,46,0,2087,2088,3,131,65,0,2088,2089,3,123,61,0,2089,454,1,0,0,0,2090,2091,3,111,55,0,2091,2092,3,113,56,0,2092,456,1,0,0,0,2093,2094,3,111,55,0,2094,2095,3,113,56,0,2095,2096,3,107,53,0,2096,2097,3,113,56,0,2097,2098,3,97,48,0,2098,2099,3,101,50,0,2099,2100,3,111,55,0,2100,458,1,0,0,0,2101,2102,3,111,55,0,2102,2103,3,113,56,0,2103,2104,3,123,61,0,2104,460,1,0,0,0,2105,2106,3,111,55,0,2106,2107,3,113,56,0,2107,2108,3,123,61,0,2108,2109,3,111,55,0,2109,2110,3,125,62,0,2110,2111,3,107,53,0,2111,2112,3,107,53,0,2112,462,1,0,0,0,2113,2114,3,111,55,0,2114,2115,3,125,62,0,2115,2116,3,107,53,0,2116,2117,3,107,53,0,2117,464,1,0,0,0,2118,2119,3,111,55,0,2119,2120,3,125,62,0,2120,2121,3,107,53,0,2121,2122,3,107,53,0,2122,2123,3,121,60,0,2123,466,1,0,0,0,2124,2125,3,113,56,0,2125,2126,3,87,43,0,2126,2127,3,103,51,0,2127,2128,3,93,46,0,2128,2129,3,89,44,0,2129,2130,3,123,61,0,2130,468,1,0,0,0,2131,2132,3,113,56,0,2132,2133,3,95,47,0,2133,470,1,0,0,0,2134,2135,3,113,56,0,2135,2136,3,95,47,0,2136,2137,3,95,47,0,2137,2138,3,121,60,0,2138,2139,3,93,46,0,2139,2140,3,123,61,0,2140,472,1,0,0,0,2141,2142,3,113,56,0,2142,2143,3,109,54,0,2143,2144,3,101,50,0,2144,2145,3,123,61,0,2145,474,1,0,0,0,2146,2147,3,113,56,0,2147,2148,3,111,55,0,2148,476,1,0,0,0,2149,2150,3,113,56,0,2150,2151,3,111,55,0,2151,2152,3,93,46,0,2152,478,1,0,0,0,2153,2154,3,113,56,0,2154,2155,3,111,55,0,2155,2156,3,107,53,0,2156,2157,3,133,66,0,2157,480,1,0,0,0,2158,2159,3,113,56,0,2159,2160,3,115,57,0,2160,2161,3,123,61,0,2161,2162,3,101,50,0,2162,2163,3,113,56,0,2163,2164,3,111,55,0,2164,482,1,0,0,0,2165,2166,3,113,56,0,2166,2167,3,115,57,0,2167,2168,3,123,61,0,2168,2169,3,101,50,0,2169,2170,3,113,56,0,2170,2171,3,111,55,0,2171,2172,3,85,42,0,2172,2173,3,107,53,0,2173,484,1,0,0,0,2174,2175,3,113,56,0,2175,2176,3,119,59,0,2176,486,1,0,0,0,2177,2178,3,113,56,0,2178,2179,3,119,59,0,2179,2180,3,91,45,0,2180,2181,3,93,46,0,2181,2182,3,119,59,0,2182,488,1,0,0,0,2183,2184,3,113,56,0,2184,2185,3,123,61,0,2185,2186,3,99,49,0,2186,2187,3,93,46,0,2187,2188,3,119,59,0,2188,2189,3,121,60,0,2189,490,1,0,0,0,2190,2191,3,113,56,0,2191,2192,3,125,62,0,2192,2193,3,123,61,0,2193,2194,3,93,46,0,2194,2195,3,119,59,0,2195,492,1,0,0,0,2196,2197,3,113,56,0,2197,2198,3,127,63,0,2198,2199,3,93,46,0,2199,2200,3,119,59,0,2200,494,1,0,0,0,2201,2202,3,115,57,0,2202,2203,3,85,42,0,2203,2204,3,119,59,0,2204,2205,3,85,42,0,2205,2206,3,107,53,0,2206,2207,3,107,53,0,2207,2208,3,93,46,0,2208,2209,3,107,53,0,2209,496,1,0,0,0,2210,2211,3,115,57,0,2211,2212,3,85,42,0,2212,2213,3,119,59,0,2213,2214,3,123,61,0,2214,2215,3,101,50,0,2215,2216,3,123,61,0,2216,2217,3,101,50,0,2217,2218,3,113,56,0,2218,2219,3,111,55,0,2219,498,1,0,0,0,2220,2221,3,115,57,0,2221,2222,3,85,42,0,2222,2223,3,121,60,0,2223,2224,3,121,60,0,2224,2225,3,101,50,0,2225,2226,3,111,55,0,2226,2227,3,97,48,0,2227,500,1,0,0,0,2228,2229,3,115,57,0,2229,2230,3,85,42,0,2230,2231,3,121,60,0,2231,2232,3,121,60,0,2232,2233,3,129,64,0,2233,2234,3,113,56,0,2234,2235,3,119,59,0,2235,2236,3,91,45,0,2236,502,1,0,0,0,2237,2238,3,115,57,0,2238,2239,3,85,42,0,2239,2240,3,121,60,0,2240,2241,3,123,61,0,2241,504,1,0,0,0,2242,2243,3,115,57,0,2243,2244,3,85,42,0,2244,2245,3,123,61,0,2245,2246,3,123,61,0,2246,2247,3,93,46,0,2247,2248,3,119,59,0,2248,2249,3,111,55,0,2249,506,1,0,0,0,2250,2251,3,115,57,0,2251,2252,3,93,46,0,2252,2253,3,119,59,0,2253,508,1,0,0,0,2254,2255,3,115,57,0,2255,2256,3,93,46,0,2256,2257,3,119,59,0,2257,2258,3,109,54,0,2258,2259,3,125,62,0,2259,2260,3,123,61,0,2260,2261,3,93,46,0,2261,510,1,0,0,0,2262,2263,3,115,57,0,2263,2264,3,107,53,0,2264,2265,3,85,42,0,2265,2266,3,111,55,0,2266,512,1,0,0,0,2267,2268,3,115,57,0,2268,2269,3,113,56,0,2269,2270,3,113,56,0,2270,2271,3,107,53,0,2271,514,1,0,0,0,2272,2273,3,115,57,0,2273,2274,3,119,59,0,2274,2275,3,85,42,0,2275,2276,3,97,48,0,2276,2277,3,109,54,0,2277,2278,3,85,42,0,2278,516,1,0,0,0,2279,2280,3,115,57,0,2280,2281,3,119,59,0,2281,2282,3,93,46,0,2282,2283,3,89,44,0,2283,2284,3,93,46,0,2284,2285,3,91,45,0,2285,2286,3,101,50,0,2286,2287,3,111,55,0,2287,2288,3,97,48,0,2288,518,1,0,0,0,2289,2290,3,115,57,0,2290,2291,3,119,59,0,2291,2292,3,93,46,0,2292,2293,3,121,60,0,2293,2294,3,113,56,0,2294,2295,3,119,59,0,2295,2296,3,123,61,0,2296,520,1,0,0,0,2297,2298,3,115,57,0,2298,2299,3,119,59,0,2299,2300,3,101,50,0,2300,2301,3,109,54,0,2301,2302,3,85,42,0,2302,2303,3,119,59,0,2303,2304,3,133,66,0,2304,522,1,0,0,0,2305,2306,3,115,57,0,2306,2307,3,119,59,0,2307,2308,3,101,50,0,2308,2309,3,127,63,0,2309,2310,3,101,50,0,2310,2311,3,107,53,0,2311,2312,3,93,46,0,2312,2313,3,97,48,0,2313,2314,3,93,46,0,2314,2315,3,121,60,0,2315,524,1,0,0,0,2316,2317,3,115,57,0,2317,2318,3,119,59,0,2318,2319,3,113,56,0,2319,2320,3,89,44,0,2320,2321,3,93,46,0,2321,2322,3,121,60,0,2322,2323,3,121,60,0,2323,526,1,0,0,0,2324,2325,3,117,58,0,2325,2326,3,125,62,0,2326,2327,3,93,46,0,2327,2328,3,119,59,0,2328,2329,3,133,66,0,2329,528,1,0,0,0,2330,2331,3,117,58,0,2331,2332,3,125,62,0,2332,2333,3,93,46,0,2333,2334,3,125,62,0,2334,2335,3,93,46,0,2335,530,1,0,0,0,2336,2337,3,119,59,0,2337,2338,3,85,42,0,2338,2339,3,101,50,0,2339,2340,3,121,60,0,2340,2341,3,93,46,0,2341,532,1,0,0,0,2342,2343,3,119,59,0,2343,2344,3,85,42,0,2344,2345,3,111,55,0,2345,2346,3,97,48,0,2346,2347,3,93,46,0,2347,534,1,0,0,0,2348,2349,3,119,59,0,2349,2350,3,93,46,0,2350,2351,3,91,45,0,2351,2352,3,125,62,0,2352,2353,3,89,44,0,2353,2354,3,93,46,0,2354,536,1,0,0,0,2355,2356,3,119,59,0,2356,2357,3,93,46,0,2357,2358,3,95,47,0,2358,2359,3,93,46,0,2359,2360,3,119,59,0,2360,2361,3,93,46,0,2361,2362,3,111,55,0,2362,2363,3,89,44,0,2363,2364,3,93,46,0,2364,2365,3,121,60,0,2365,538,1,0,0,0,2366,2367,3,119,59,0,2367,2368,3,93,46,0,2368,2369,3,97,48,0,2369,2370,3,93,46,0,2370,2371,3,131,65,0,2371,2372,3,115,57,0,2372,540,1,0,0,0,2373,2374,3,119,59,0,2374,2375,3,93,46,0,2375,2376,3,101,50,0,2376,2377,3,111,55,0,2377,2378,3,91,45,0,2378,2379,3,93,46,0,2379,2380,3,131,65,0,2380,542,1,0,0,0,2381,2382,3,119,59,0,2382,2383,3,93,46,0,2383,2384,3,107,53,0,2384,2385,3,93,46,0,2385,2386,3,85,42,0,2386,2387,3,121,60,0,2387,2388,3,93,46,0,2388,544,1,0,0,0,2389,2390,3,119,59,0,2390,2391,3,93,46,0,2391,2392,3,109,54,0,2392,2393,3,113,56,0,2393,2394,3,127,63,0,2394,2395,3,93,46,0,2395,546,1,0,0,0,2396,2397,3,119,59,0,2397,2398,3,93,46,0,2398,2399,3,111,55,0,2399,2400,3,85,42,0,2400,2401,3,109,54,0,2401,2402,3,93,46,0,2402,548,1,0,0,0,2403,2404,3,119,59,0,2404,2405,3,93,46,0,2405,2406,3,115,57,0,2406,2407,3,93,46,0,2407,2408,3,85,42,0,2408,2409,3,123,61,0,2409,2410,3,85,42,0,2410,2411,3,87,43,0,2411,2412,3,107,53,0,2412,2413,3,93,46,0,2413,550,1,0,0,0,2414,2415,3,119,59,0,2415,2416,3,93,46,0,2416,2417,3,115,57,0,2417,2418,3,107,53,0,2418,2419,3,85,42,0,2419,2420,3,89,44,0,2420,2421,3,93,46,0,2421,552,1,0,0,0,2422,2423,3,119,59,0,2423,2424,3,93,46,0,2424,2425,3,115,57,0,2425,2426,3,107,53,0,2426,2427,3,101,50,0,2427,2428,3,89,44,0,2428,2429,3,85,42,0,2429,2430,3,123,61,0,2430,2431,3,101,50,0,2431,2432,3,113,56,0,2432,2433,3,111,55,0,2433,554,1,0,0,0,2434,2435,3,119,59,0,2435,2436,3,93,46,0,2436,2437,3,121,60,0,2437,2438,3,93,46,0,2438,2439,3,123,61,0,2439,556,1,0,0,0,2440,2441,3,119,59,0,2441,2442,3,93,46,0,2442,2443,3,121,60,0,2443,2444,3,113,56,0,2444,2445,3,125,62,0,2445,2446,3,119,59,0,2446,2447,3,89,44,0,2447,2448,3,93,46,0,2448,558,1,0,0,0,2449,2450,3,119,59,0,2450,2451,3,93,46,0,2451,2452,3,121,60,0,2452,2453,3,115,57,0,2453,2454,3,93,46,0,2454,2455,3,89,44,0,2455,2456,3,123,61,0,2456,560,1,0,0,0,2457,2458,3,119,59,0,2458,2459,3,93,46,0,2459,2460,3,121,60,0,2460,2461,3,123,61,0,2461,2462,3,85,42,0,2462,2463,3,119,59,0,2463,2464,3,123,61,0,2464,562,1,0,0,0,2465,2466,3,119,59,0,2466,2467,3,93,46,0,2467,2468,3,121,60,0,2468,2469,3,123,61,0,2469,2470,3,113,56,0,2470,2471,3,119,59,0,2471,2472,3,93,46,0,2472,564,1,0,0,0,2473,2474,3,119,59,0,2474,2475,3,93,46,0,2475,2476,3,121,60,0,2476,2477,3,123,61,0,2477,2478,3,119,59,0,2478,2479,3,101,50,0,2479,2480,3,89,44,0,2480,2481,3,123,61,0,2481,566,1,0,0,0,2482,2483,3,119,59,0,2483,2484,3,93,46,0,2484,2485,3,121,60,0,2485,2486,3,125,62,0,2486,2487,3,107,53,0,2487,2488,3,123,61,0,2488,568,1,0,0,0,2489,2490,3,119,59,0,2490,2491,3,93,46,0,2491,2492,3,123,61,0,2492,2493,3,125,62,0,2493,2494,3,119,59,0,2494,2495,3,111,55,0,2495,570,1,0,0,0,2496,2497,3,119,59,0,2497,2498,3,93,46,0,2498,2499,3,123,61,0,2499,2500,3,125,62,0,2500,2501,3,119,59,0,2501,2502,3,111,55,0,2502,2503,3,101,50,0,2503,2504,3,111,55,0,2504,2505,3,97,48,0,2505,572,1,0,0,0,2506,2507,3,119,59,0,2507,2508,3,93,46,0,2508,2509,3,127,63,0,2509,2510,3,93,46,0,2510,2511,3,119,59,0,2511,2512,3,123,61,0,2512,574,1,0,0,0,2513,2514,3,119,59,0,2514,2515,3,93,46,0,2515,2516,3,127,63,0,2516,2517,3,113,56,0,2517,2518,3,105,52,0,2518,2519,3,93,46,0,2519,576,1,0,0,0,2520,2521,3,119,59,0,2521,2522,3,101,50,0,2522,2523,3,97,48,0,2523,2524,3,99,49,0,2524,2525,3,123,61,0,2525,578,1,0,0,0,2526,2527,3,119,59,0,2527,2528,3,107,53,0,2528,2529,3,101,50,0,2529,2530,3,105,52,0,2530,2531,3,93,46,0,2531,580,1,0,0,0,2532,2533,3,119,59,0,2533,2534,3,113,56,0,2534,2535,3,107,53,0,2535,2536,3,107,53,0,2536,2537,3,87,43,0,2537,2538,3,85,42,0,2538,2539,3,89,44,0,2539,2540,3,105,52,0,2540,582,1,0,0,0,2541,2542,3,119,59,0,2542,2543,3,113,56,0,2543,2544,3,107,53,0,2544,2545,3,107,53,0,2545,2546,3,125,62,0,2546,2547,3,115,57,0,2547,584,1,0,0,0,2548,2549,3,119,59,0,2549,2550,3,113,56,0,2550,2551,3,129,64,0,2551,586,1,0,0,0,2552,2553,3,119,59,0,2553,2554,3,113,56,0,2554,2555,3,129,64,0,2555,2556,3,121,60,0,2556,588,1,0,0,0,2557,2558,3,121,60,0,2558,2559,3,85,42,0,2559,2560,3,109,54,0,2560,2561,3,115,57,0,2561,2562,3,107,53,0,2562,2563,3,93,46,0,2563,590,1,0,0,0,2564,2565,3,121,60,0,2565,2566,3,85,42,0,2566,2567,3,127,63,0,2567,2568,3,93,46,0,2568,2569,3,115,57,0,2569,2570,3,113,56,0,2570,2571,3,101,50,0,2571,2572,3,111,55,0,2572,2573,3,123,61,0,2573,592,1,0,0,0,2574,2575,3,121,60,0,2575,2576,3,89,44,0,2576,2577,3,99,49,0,2577,2578,3,93,46,0,2578,2579,3,109,54,0,2579,2580,3,85,42,0,2580,594,1,0,0,0,2581,2582,3,121,60,0,2582,2583,3,93,46,0,2583,2584,3,89,44,0,2584,2585,3,113,56,0,2585,2586,3,111,55,0,2586,2587,3,91,45,0,2587,2588,3,121,60,0,2588,596,1,0,0,0,2589,2590,3,121,60,0,2590,2591,3,93,46,0,2591,2592,3,93,46,0,2592,2593,3,105,52,0,2593,598,1,0,0,0,2594,2595,3,121,60,0,2595,2596,3,93,46,0,2596,2597,3,107,53,0,2597,2598,3,93,46,0,2598,2599,3,89,44,0,2599,2600,3,123,61,0,2600,600,1,0,0,0,2601,2602,3,121,60,0,2602,2603,3,93,46,0,2603,2604,3,109,54,0,2604,2605,3,101,50,0,2605,602,1,0,0,0,2606,2607,3,121,60,0,2607,2608,3,93,46,0,2608,2609,3,123,61,0,2609,604,1,0,0,0,2610,2611,3,121,60,0,2611,2612,3,93,46,0,2612,2613,3,123,61,0,2613,2614,3,121,60,0,2614,606,1,0,0,0,2615,2616,3,121,60,0,2616,2617,3,99,49,0,2617,2618,3,113,56,0,2618,2619,3,129,64,0,2619,608,1,0,0,0,2620,2621,3,121,60,0,2621,2622,3,105,52,0,2622,2623,3,101,50,0,2623,2624,3,115,57,0,2624,610,1,0,0,0,2625,2626,3,121,60,0,2626,2627,3,93,46,0,2627,2628,3,117,58,0,2628,2629,3,125,62,0,2629,2630,3,93,46,0,2630,2631,3,111,55,0,2631,2632,3,89,44,0,2632,2633,3,93,46,0,2633,612,1,0,0,0,2634,2635,3,121,60,0,2635,2636,3,113,56,0,2636,2637,3,125,62,0,2637,2638,3,119,59,0,2638,2639,3,89,44,0,2639,2640,3,93,46,0,2640,614,1,0,0,0,2641,2642,3,121,60,0,2642,2643,3,123,61,0,2643,2644,3,85,42,0,2644,2645,3,119,59,0,2645,2646,3,123,61,0,2646,616,1,0,0,0,2647,2648,3,121,60,0,2648,2649,3,123,61,0,2649,2650,3,119,59,0,2650,2651,3,93,46,0,2651,2652,3,85,42,0,2652,2653,3,109,54,0,2653,618,1,0,0,0,2654,2655,3,121,60,0,2655,2656,3,123,61,0,2656,2657,3,119,59,0,2657,2658,3,125,62,0,2658,2659,3,89,44,0,2659,2660,3,123,61,0,2660,620,1,0,0,0,2661,2662,3,121,60,0,2662,2663,3,125,62,0,2663,2664,3,87,43,0,2664,2665,3,117,58,0,2665,2666,3,125,62,0,2666,2667,3,93,46,0,2667,2668,3,119,59,0,2668,2669,3,133,66,0,2669,622,1,0,0,0,2670,2671,3,121,60,0,2671,2672,3,125,62,0,2672,2673,3,87,43,0,2673,2674,3,121,60,0,2674,2675,3,93,46,0,2675,2676,3,123,61,0,2676,624,1,0,0,0,2677,2678,3,121,60,0,2678,2679,3,133,66,0,2679,2680,3,109,54,0,2680,2681,3,87,43,0,2681,2682,3,113,56,0,2682,2683,3,107,53,0,2683,2684,3,121,60,0,2684,626,1,0,0,0,2685,2686,3,121,60,0,2686,2687,3,133,66,0,2687,2688,3,109,54,0,2688,2689,3,109,54,0,2689,2690,3,93,46,0,2690,2691,3,123,61,0,2691,2692,3,119,59,0,2692,2693,3,101,50,0,2693,2694,3,89,44,0,2694,628,1,0,0,0,2695,2696,3,121,60,0,2696,2697,3,133,66,0,2697,2698,3,111,55,0,2698,2699,3,89,44,0,2699,630,1,0,0,0,2700,2701,3,121,60,0,2701,2702,3,133,66,0,2702,2703,3,121,60,0,2703,2704,3,123,61,0,2704,2705,3,93,46,0,2705,2706,3,109,54,0,2706,632,1,0,0,0,2707,2708,3,123,61,0,2708,2709,3,85,42,0,2709,2710,3,87,43,0,2710,2711,3,107,53,0,2711,2712,3,93,46,0,2712,634,1,0,0,0,2713,2714,3,123,61,0,2714,2715,3,85,42,0,2715,2716,3,87,43,0,2716,2717,3,107,53,0,2717,2718,3,93,46,0,2718,2719,3,121,60,0,2719,636,1,0,0,0,2720,2721,3,123,61,0,2721,2722,3,85,42,0,2722,2723,3,87,43,0,2723,2724,3,107,53,0,2724,2725,3,93,46,0,2725,2726,3,121,60,0,2726,2727,3,85,42,0,2727,2728,3,109,54,0,2728,2729,3,115,57,0,2729,2730,3,107,53,0,2730,2731,3,93,46,0,2731,638,1,0,0,0,2732,2733,3,123,61,0,2733,2734,3,85,42,0,2734,2735,3,87,43,0,2735,2736,3,107,53,0,2736,2737,3,93,46,0,2737,2738,3,121,60,0,2738,2739,3,123,61,0,2739,2740,3,113,56,0,2740,2741,3,119,59,0,2741,2742,3,93,46,0,2742,640,1,0,0,0,2743,2744,3,123,61,0,2744,2745,3,85,42,0,2745,2746,3,97,48,0,2746,2747,3,97,48,0,2747,2748,3,93,46,0,2748,2749,3,91,45,0,2749,642,1,0,0,0,2750,2751,3,123,61,0,2751,2752,3,93,46,0,2752,2753,3,109,54,0,2753,2754,3,115,57,0,2754,644,1,0,0,0,2755,2756,3,123,61,0,2756,2757,3,93,46,0,2757,2758,3,109,54,0,2758,2759,3,115,57,0,2759,2760,3,113,56,0,2760,2761,3,119,59,0,2761,2762,3,85,42,0,2762,2763,3,119,59,0,2763,2764,3,133,66,0,2764,646,1,0,0,0,2765,2766,3,123,61,0,2766,2767,3,99,49,0,2767,2768,3,93,46,0,2768,2769,3,111,55,0,2769,648,1,0,0,0,2770,2771,3,123,61,0,2771,2772,3,101,50,0,2772,2773,3,93,46,0,2773,2774,3,121,60,0,2774,650,1,0,0,0,2775,2776,3,123,61,0,2776,2777,3,113,56,0,2777,652,1,0,0,0,2778,2779,3,123,61,0,2779,2780,3,113,56,0,2780,2781,3,115,57,0,2781,2782,3,101,50,0,2782,2783,3,89,44,0,2783,654,1,0,0,0,2784,2785,3,123,61,0,2785,2786,3,119,59,0,2786,2787,3,85,42,0,2787,2788,3,111,55,0,2788,2789,3,121,60,0,2789,2790,3,85,42,0,2790,2791,3,89,44,0,2791,2792,3,123,61,0,2792,2793,3,101,50,0,2793,2794,3,113,56,0,2794,2795,3,111,55,0,2795,656,1,0,0,0,2796,2797,3,123,61,0,2797,2798,3,119,59,0,2798,2799,3,85,42,0,2799,2800,3,111,55,0,2800,2801,3,121,60,0,2801,2802,3,95,47,0,2802,2803,3,93,46,0,2803,2804,3,119,59,0,2804,658,1,0,0,0,2805,2806,3,123,61,0,2806,2807,3,119,59,0,2807,2808,3,101,50,0,2808,2809,3,97,48,0,2809,2810,3,97,48,0,2810,2811,3,93,46,0,2811,2812,3,119,59,0,2812,660,1,0,0,0,2813,2814,3,123,61,0,2814,2815,3,119,59,0,2815,2816,3,125,62,0,2816,2817,3,93,46,0,2817,662,1,0,0,0,2818,2819,3,123,61,0,2819,2820,3,125,62,0,2820,2821,3,115,57,0,2821,2822,3,107,53,0,2822,2823,3,93,46,0,2823,664,1,0,0,0,2824,2825,3,123,61,0,2825,2826,3,133,66,0,2826,2827,3,115,57,0,2827,2828,3,93,46,0,2828,666,1,0,0,0,2829,2830,3,125,62,0,2830,2831,3,111,55,0,2831,2832,3,87,43,0,2832,2833,3,113,56,0,2833,2834,3,125,62,0,2834,2835,3,111,55,0,2835,2836,3,91,45,0,2836,2837,3,93,46,0,2837,2838,3,91,45,0,2838,668,1,0,0,0,2839,2840,3,125,62,0,2840,2841,3,111,55,0,2841,2842,3,89,44,0,2842,2843,3,113,56,0,2843,2844,3,111,55,0,2844,2845,3,91,45,0,2845,2846,3,101,50,0,2846,2847,3,123,61,0,2847,2848,3,101,50,0,2848,2849,3,113,56,0,2849,2850,3,111,55,0,2850,2851,3,85,42,0,2851,2852,3,107,53,0,2852,670,1,0,0,0,2853,2854,3,125,62,0,2854,2855,3,111,55,0,2855,2856,3,101,50,0,2856,2857,3,113,56,0,2857,2858,3,111,55,0,2858,672,1,0,0,0,2859,2860,3,125,62,0,2860,2861,3,111,55,0,2861,2862,3,101,50,0,2862,2863,3,117,58,0,2863,2864,3,125,62,0,2864,2865,3,93,46,0,2865,674,1,0,0,0,2866,2867,3,125,62,0,2867,2868,3,111,55,0,2868,2869,3,105,52,0,2869,2870,3,111,55,0,2870,2871,3,113,56,0,2871,2872,3,129,64,0,2872,2873,3,111,55,0,2873,676,1,0,0,0,2874,2875,3,125,62,0,2875,2876,3,111,55,0,2876,2877,3,109,54,0,2877,2878,3,85,42,0,2878,2879,3,123,61,0,2879,2880,3,89,44,0,2880,2881,3,99,49,0,2881,2882,3,93,46,0,2882,2883,3,91,45,0,2883,678,1,0,0,0,2884,2885,3,125,62,0,2885,2886,3,115,57,0,2886,2887,3,91,45,0,2887,2888,3,85,42,0,2888,2889,3,123,61,0,2889,2890,3,93,46,0,2890,680,1,0,0,0,2891,2892,3,125,62,0,2892,2893,3,115,57,0,2893,2894,3,121,60,0,2894,2895,3,93,46,0,2895,2896,3,119,59,0,2896,2897,3,123,61,0,2897,682,1,0,0,0,2898,2899,3,125,62,0,2899,2900,3,121,60,0,2900,2901,3,93,46,0,2901,684,1,0,0,0,2902,2903,3,125,62,0,2903,2904,3,121,60,0,2904,2905,3,93,46,0,2905,2906,3,119,59,0,2906,686,1,0,0,0,2907,2908,3,125,62,0,2908,2909,3,121,60,0,2909,2910,3,101,50,0,2910,2911,3,111,55,0,2911,2912,3,97,48,0,2912,688,1,0,0,0,2913,2914,3,127,63,0,2914,2915,3,85,42,0,2915,2916,3,89,44,0,2916,2917,3,125,62,0,2917,2918,3,125,62,0,2918,2919,3,109,54,0,2919,690,1,0,0,0,2920,2921,3,127,63,0,2921,2922,3,85,42,0,2922,2923,3,107,53,0,2923,2924,3,125,62,0,2924,2925,3,93,46,0,2925,2926,3,121,60,0,2926,692,1,0,0,0,2927,2928,3,127,63,0,2928,2929,3,85,42,0,2929,2930,3,119,59,0,2930,2931,3,101,50,0,2931,2932,3,85,42,0,2932,2933,3,111,55,0,2933,2934,3,123,61,0,2934,694,1,0,0,0,2935,2936,3,127,63,0,2936,2937,3,101,50,0,2937,2938,3,93,46,0,2938,2939,3,129,64,0,2939,696,1,0,0,0,2940,2941,3,127,63,0,2941,2942,3,101,50,0,2942,2943,3,119,59,0,2943,2944,3,123,61,0,2944,2945,3,125,62,0,2945,2946,3,85,42,0,2946,2947,3,107,53,0,2947,698,1,0,0,0,2948,2949,3,129,64,0,2949,2950,3,99,49,0,2950,2951,3,93,46,0,2951,2952,3,111,55,0,2952,700,1,0,0,0,2953,2954,3,129,64,0,2954,2955,3,99,49,0,2955,2956,3,93,46,0,2956,2957,3,119,59,0,2957,2958,3,93,46,0,2958,702,1,0,0,0,2959,2960,3,129,64,0,2960,2961,3,101,50,0,2961,2962,3,111,55,0,2962,2963,3,91,45,0,2963,2964,3,113,56,0,2964,2965,3,129,64,0,2965,704,1,0,0,0,2966,2967,3,129,64,0,2967,2968,3,101,50,0,2968,2969,3,123,61,0,2969,2970,3,99,49,0,2970,706,1,0,0,0,2971,2972,3,129,64,0,2972,2973,3,101,50,0,2973,2974,3,123,61,0,2974,2975,3,99,49,0,2975,2976,3,113,56,0,2976,2977,3,125,62,0,2977,2978,3,123,61,0,2978,708,1,0,0,0,2979,2980,3,129,64,0,2980,2981,3,119,59,0,2981,2982,3,85,42,0,2982,2983,3,115,57,0,2983,2984,3,115,57,0,2984,2985,3,93,46,0,2985,2986,3,119,59,0,2986,710,1,0,0,0,2987,2988,3,131,65,0,2988,2989,3,113,56,0,2989,2990,3,119,59,0,2990,712,1,0,0,0,2991,2996,8,26,0,0,2992,2993,3,75,37,0,2993,2994,9,0,0,0,2994,2996,1,0,0,0,2995,2991,1,0,0,0,2995,2992,1,0,0,0,2996,714,1,0,0,0,2997,3002,8,27,0,0,2998,2999,3,75,37,0,2999,3e3,9,0,0,0,3e3,3002,1,0,0,0,3001,2997,1,0,0,0,3001,2998,1,0,0,0,3002,716,1,0,0,0,3003,3007,3,79,39,0,3004,3006,3,713,356,0,3005,3004,1,0,0,0,3006,3009,1,0,0,0,3007,3005,1,0,0,0,3007,3008,1,0,0,0,3008,3010,1,0,0,0,3009,3007,1,0,0,0,3010,3011,3,79,39,0,3011,718,1,0,0,0,3012,3016,3,77,38,0,3013,3015,3,715,357,0,3014,3013,1,0,0,0,3015,3018,1,0,0,0,3016,3014,1,0,0,0,3016,3017,1,0,0,0,3017,3019,1,0,0,0,3018,3016,1,0,0,0,3019,3020,3,77,38,0,3020,720,1,0,0,0,3021,3025,3,83,41,0,3022,3024,9,0,0,0,3023,3022,1,0,0,0,3024,3027,1,0,0,0,3025,3026,1,0,0,0,3025,3023,1,0,0,0,3026,3028,1,0,0,0,3027,3025,1,0,0,0,3028,3029,3,83,41,0,3029,3031,1,0,0,0,3030,3021,1,0,0,0,3031,3032,1,0,0,0,3032,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3035,1,0,0,0,3034,3036,3,57,28,0,3035,3034,1,0,0,0,3035,3036,1,0,0,0,3036,722,1,0,0,0,3037,3041,3,717,358,0,3038,3041,3,719,359,0,3039,3041,3,721,360,0,3040,3037,1,0,0,0,3040,3038,1,0,0,0,3040,3039,1,0,0,0,3041,3052,1,0,0,0,3042,3053,3,121,60,0,3043,3053,3,125,62,0,3044,3053,3,133,66,0,3045,3053,3,103,51,0,3046,3050,3,115,57,0,3047,3051,3,123,61,0,3048,3051,3,87,43,0,3049,3051,3,127,63,0,3050,3047,1,0,0,0,3050,3048,1,0,0,0,3050,3049,1,0,0,0,3050,3051,1,0,0,0,3051,3053,1,0,0,0,3052,3042,1,0,0,0,3052,3043,1,0,0,0,3052,3044,1,0,0,0,3052,3045,1,0,0,0,3052,3046,1,0,0,0,3052,3053,1,0,0,0,3053,724,1,0,0,0,3054,3059,7,28,0,0,3055,3058,7,28,0,0,3056,3058,3,731,365,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3058,3061,1,0,0,0,3059,3057,1,0,0,0,3059,3060,1,0,0,0,3060,726,1,0,0,0,3061,3059,1,0,0,0,3062,3063,5,92,0,0,3063,3068,9,0,0,0,3064,3065,5,96,0,0,3065,3068,5,96,0,0,3066,3068,8,29,0,0,3067,3062,1,0,0,0,3067,3064,1,0,0,0,3067,3066,1,0,0,0,3068,728,1,0,0,0,3069,3073,3,81,40,0,3070,3072,3,727,363,0,3071,3070,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,3076,1,0,0,0,3075,3073,1,0,0,0,3076,3077,3,81,40,0,3077,730,1,0,0,0,3078,3079,2,48,57,0,3079,732,1,0,0,0,3080,3081,7,30,0,0,3081,734,1,0,0,0,3082,3083,5,48,0,0,3083,3085,3,131,65,0,3084,3086,3,733,366,0,3085,3084,1,0,0,0,3086,3087,1,0,0,0,3087,3085,1,0,0,0,3087,3088,1,0,0,0,3088,736,1,0,0,0,3089,3090,5,48,0,0,3090,3092,3,113,56,0,3091,3093,2,48,56,0,3092,3091,1,0,0,0,3093,3094,1,0,0,0,3094,3092,1,0,0,0,3094,3095,1,0,0,0,3095,738,1,0,0,0,3096,3097,5,48,0,0,3097,3099,3,87,43,0,3098,3100,2,48,49,0,3099,3098,1,0,0,0,3100,3101,1,0,0,0,3101,3099,1,0,0,0,3101,3102,1,0,0,0,3102,740,1,0,0,0,3103,3105,3,731,365,0,3104,3103,1,0,0,0,3105,3106,1,0,0,0,3106,3104,1,0,0,0,3106,3107,1,0,0,0,3107,742,1,0,0,0,3108,3113,3,741,370,0,3109,3113,3,735,367,0,3110,3113,3,737,368,0,3111,3113,3,739,369,0,3112,3108,1,0,0,0,3112,3109,1,0,0,0,3112,3110,1,0,0,0,3112,3111,1,0,0,0,3113,744,1,0,0,0,3114,3117,3,743,371,0,3115,3118,3,115,57,0,3116,3118,3,125,62,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3117,3118,1,0,0,0,3118,3125,1,0,0,0,3119,3126,3,107,53,0,3120,3126,3,121,60,0,3121,3126,3,123,61,0,3122,3126,3,101,50,0,3123,3126,3,87,43,0,3124,3126,3,111,55,0,3125,3119,1,0,0,0,3125,3120,1,0,0,0,3125,3121,1,0,0,0,3125,3122,1,0,0,0,3125,3123,1,0,0,0,3125,3124,1,0,0,0,3125,3126,1,0,0,0,3126,746,1,0,0,0,3127,3130,3,93,46,0,3128,3131,3,31,15,0,3129,3131,3,33,16,0,3130,3128,1,0,0,0,3130,3129,1,0,0,0,3130,3131,1,0,0,0,3131,3132,1,0,0,0,3132,3133,3,741,370,0,3133,748,1,0,0,0,3134,3135,3,741,370,0,3135,3139,3,45,22,0,3136,3138,3,731,365,0,3137,3136,1,0,0,0,3138,3141,1,0,0,0,3139,3137,1,0,0,0,3139,3140,1,0,0,0,3140,3143,1,0,0,0,3141,3139,1,0,0,0,3142,3144,3,747,373,0,3143,3142,1,0,0,0,3143,3144,1,0,0,0,3144,3149,1,0,0,0,3145,3146,3,741,370,0,3146,3147,3,747,373,0,3147,3149,1,0,0,0,3148,3134,1,0,0,0,3148,3145,1,0,0,0,3149,3158,1,0,0,0,3150,3159,3,95,47,0,3151,3156,3,115,57,0,3152,3153,3,95,47,0,3153,3154,7,31,0,0,3154,3157,1,0,0,0,3155,3157,3,111,55,0,3156,3152,1,0,0,0,3156,3155,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3150,1,0,0,0,3158,3151,1,0,0,0,3158,3159,1,0,0,0,3159,750,1,0,0,0,3160,3161,3,131,65,0,3161,3163,3,79,39,0,3162,3164,3,733,366,0,3163,3162,1,0,0,0,3164,3165,1,0,0,0,3165,3163,1,0,0,0,3165,3166,1,0,0,0,3166,3167,1,0,0,0,3167,3168,3,79,39,0,3168,752,1,0,0,0,3169,3170,5,47,0,0,3170,3171,5,42,0,0,3171,3175,1,0,0,0,3172,3174,9,0,0,0,3173,3172,1,0,0,0,3174,3177,1,0,0,0,3175,3176,1,0,0,0,3175,3173,1,0,0,0,3176,3178,1,0,0,0,3177,3175,1,0,0,0,3178,3179,5,42,0,0,3179,3180,5,47,0,0,3180,754,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,45,0,0,3183,3187,1,0,0,0,3184,3186,8,32,0,0,3185,3184,1,0,0,0,3186,3189,1,0,0,0,3187,3185,1,0,0,0,3187,3188,1,0,0,0,3188,3195,1,0,0,0,3189,3187,1,0,0,0,3190,3192,5,13,0,0,3191,3193,5,10,0,0,3192,3191,1,0,0,0,3192,3193,1,0,0,0,3193,3196,1,0,0,0,3194,3196,7,33,0,0,3195,3190,1,0,0,0,3195,3194,1,0,0,0,3196,756,1,0,0,0,3197,3198,7,34,0,0,3198,3199,1,0,0,0,3199,3200,6,378,0,0,3200,758,1,0,0,0,3201,3204,3,753,376,0,3202,3204,3,755,377,0,3203,3201,1,0,0,0,3203,3202,1,0,0,0,3204,3205,1,0,0,0,3205,3206,6,379,1,0,3206,760,1,0,0,0,34,0,2995,3001,3007,3016,3025,3032,3035,3040,3050,3052,3057,3059,3067,3073,3087,3094,3101,3106,3112,3117,3125,3130,3139,3143,3148,3156,3158,3165,3175,3187,3192,3195,3203,2,0,1,0,6,0,0]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},rs=class e extends Gt{static{Si(this,"YQLParser")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_ttl_tier_list=275}static{this.RULE_ttl_tier_action=276}static{this.RULE_family_entry=277}static{this.RULE_family_settings=278}static{this.RULE_family_settings_entry=279}static{this.RULE_family_setting_value=280}static{this.RULE_split_boundaries=281}static{this.RULE_literal_value_list=282}static{this.RULE_alter_table_alter_index_action=283}static{this.RULE_drop_table_stmt=284}static{this.RULE_create_user_stmt=285}static{this.RULE_alter_user_stmt=286}static{this.RULE_create_group_stmt=287}static{this.RULE_alter_group_stmt=288}static{this.RULE_drop_role_stmt=289}static{this.RULE_role_name=290}static{this.RULE_user_option=291}static{this.RULE_authentication_option=292}static{this.RULE_password_option=293}static{this.RULE_hash_option=294}static{this.RULE_login_option=295}static{this.RULE_grant_permissions_stmt=296}static{this.RULE_revoke_permissions_stmt=297}static{this.RULE_permission_id=298}static{this.RULE_permission_name=299}static{this.RULE_permission_name_target=300}static{this.RULE_create_resource_pool_stmt=301}static{this.RULE_alter_resource_pool_stmt=302}static{this.RULE_alter_resource_pool_action=303}static{this.RULE_drop_resource_pool_stmt=304}static{this.RULE_create_resource_pool_classifier_stmt=305}static{this.RULE_alter_resource_pool_classifier_stmt=306}static{this.RULE_alter_resource_pool_classifier_action=307}static{this.RULE_drop_resource_pool_classifier_stmt=308}static{this.RULE_create_replication_stmt=309}static{this.RULE_replication_target=310}static{this.RULE_replication_settings=311}static{this.RULE_replication_settings_entry=312}static{this.RULE_alter_replication_stmt=313}static{this.RULE_alter_replication_action=314}static{this.RULE_alter_replication_set_setting=315}static{this.RULE_drop_replication_stmt=316}static{this.RULE_lambda_or_parameter=317}static{this.RULE_create_transfer_stmt=318}static{this.RULE_transfer_settings=319}static{this.RULE_transfer_settings_entry=320}static{this.RULE_alter_transfer_stmt=321}static{this.RULE_alter_transfer_action=322}static{this.RULE_alter_transfer_set_setting=323}static{this.RULE_alter_transfer_set_using=324}static{this.RULE_drop_transfer_stmt=325}static{this.RULE_action_or_subquery_args=326}static{this.RULE_define_action_or_subquery_stmt=327}static{this.RULE_define_action_or_subquery_body=328}static{this.RULE_if_stmt=329}static{this.RULE_for_stmt=330}static{this.RULE_table_ref=331}static{this.RULE_table_key=332}static{this.RULE_table_arg=333}static{this.RULE_table_hints=334}static{this.RULE_table_hint=335}static{this.RULE_object_ref=336}static{this.RULE_simple_table_ref_core=337}static{this.RULE_simple_table_ref=338}static{this.RULE_into_simple_table_ref=339}static{this.RULE_delete_stmt=340}static{this.RULE_update_stmt=341}static{this.RULE_set_clause_choice=342}static{this.RULE_set_clause_list=343}static{this.RULE_set_clause=344}static{this.RULE_set_target=345}static{this.RULE_multiple_column_assignment=346}static{this.RULE_set_target_list=347}static{this.RULE_create_topic_stmt=348}static{this.RULE_create_topic_entries=349}static{this.RULE_create_topic_entry=350}static{this.RULE_with_topic_settings=351}static{this.RULE_alter_topic_stmt=352}static{this.RULE_alter_topic_action=353}static{this.RULE_alter_topic_add_consumer=354}static{this.RULE_topic_create_consumer_entry=355}static{this.RULE_alter_topic_alter_consumer=356}static{this.RULE_alter_topic_alter_consumer_entry=357}static{this.RULE_alter_topic_drop_consumer=358}static{this.RULE_topic_alter_consumer_set=359}static{this.RULE_topic_alter_consumer_reset=360}static{this.RULE_alter_topic_set_settings=361}static{this.RULE_alter_topic_reset_settings=362}static{this.RULE_drop_topic_stmt=363}static{this.RULE_topic_settings=364}static{this.RULE_topic_settings_entry=365}static{this.RULE_topic_setting_value=366}static{this.RULE_topic_consumer_with_settings=367}static{this.RULE_topic_consumer_settings=368}static{this.RULE_topic_consumer_settings_entry=369}static{this.RULE_topic_consumer_setting_value=370}static{this.RULE_topic_ref=371}static{this.RULE_topic_consumer_ref=372}static{this.RULE_null_treatment=373}static{this.RULE_filter_clause=374}static{this.RULE_window_name_or_specification=375}static{this.RULE_window_name=376}static{this.RULE_window_clause=377}static{this.RULE_window_definition_list=378}static{this.RULE_window_definition=379}static{this.RULE_new_window_name=380}static{this.RULE_window_specification=381}static{this.RULE_window_specification_details=382}static{this.RULE_existing_window_name=383}static{this.RULE_window_partition_clause=384}static{this.RULE_window_order_clause=385}static{this.RULE_window_frame_clause=386}static{this.RULE_window_frame_units=387}static{this.RULE_window_frame_extent=388}static{this.RULE_window_frame_between=389}static{this.RULE_window_frame_bound=390}static{this.RULE_window_frame_exclusion=391}static{this.RULE_use_stmt=392}static{this.RULE_subselect_stmt=393}static{this.RULE_named_nodes_stmt=394}static{this.RULE_commit_stmt=395}static{this.RULE_rollback_stmt=396}static{this.RULE_analyze_table=397}static{this.RULE_analyze_table_list=398}static{this.RULE_analyze_stmt=399}static{this.RULE_alter_sequence_stmt=400}static{this.RULE_alter_sequence_action=401}static{this.RULE_identifier=402}static{this.RULE_id=403}static{this.RULE_id_schema=404}static{this.RULE_id_expr=405}static{this.RULE_id_expr_in=406}static{this.RULE_id_window=407}static{this.RULE_id_table=408}static{this.RULE_id_without=409}static{this.RULE_id_hint=410}static{this.RULE_id_as_compat=411}static{this.RULE_an_id=412}static{this.RULE_an_id_or_type=413}static{this.RULE_an_id_schema=414}static{this.RULE_an_id_expr=415}static{this.RULE_an_id_expr_in=416}static{this.RULE_an_id_window=417}static{this.RULE_an_id_table=418}static{this.RULE_an_id_without=419}static{this.RULE_an_id_hint=420}static{this.RULE_an_id_pure=421}static{this.RULE_an_id_as_compat=422}static{this.RULE_view_name=423}static{this.RULE_opt_id_prefix=424}static{this.RULE_cluster_expr=425}static{this.RULE_id_or_type=426}static{this.RULE_opt_id_prefix_or_type=427}static{this.RULE_id_or_at=428}static{this.RULE_id_table_or_type=429}static{this.RULE_id_table_or_at=430}static{this.RULE_keyword=431}static{this.RULE_keyword_expr_uncompat=432}static{this.RULE_keyword_table_uncompat=433}static{this.RULE_keyword_select_uncompat=434}static{this.RULE_keyword_alter_uncompat=435}static{this.RULE_keyword_in_uncompat=436}static{this.RULE_keyword_window_uncompat=437}static{this.RULE_keyword_hint_uncompat=438}static{this.RULE_keyword_as_compat=439}static{this.RULE_keyword_compat=440}static{this.RULE_type_id=441}static{this.RULE_bool_value=442}static{this.RULE_real=443}static{this.RULE_integer=444}static{this.RULE_sql_query_yq=445}static{this.RULE_sql_stmt_list_yq=446}static{this.RULE_sql_stmt_yq=447}static{this.RULE_sql_stmt_core_yq=448}static{this.RULE_replication_name=449}static{this.RULE_where_expr=450}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","ttl_tier_list","ttl_tier_action","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","user_option","authentication_option","password_option","hash_option","login_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","lambda_or_parameter","create_transfer_stmt","transfer_settings","transfer_settings_entry","alter_transfer_stmt","alter_transfer_action","alter_transfer_set_setting","alter_transfer_set_using","drop_transfer_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","alter_sequence_stmt","alter_sequence_action","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}createFailedPredicateException(e,t){return new Ft(this,e,t)}constructor(t){super(t),this.interpreter=new gt(this,e._ATN,e.decisionsToDFA,new pt)}sql_query(){let t=new os(this.context,this.state);this.enterRule(t,0,e.RULE_sql_query);try{switch(this.state=907,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(t,1),this.state=902,this.sql_stmt_list();break;case 2:this.enterOuterAlt(t,2),this.state=903,this.match(e.PRAGMA),this.state=904,this.match(e.ANSI),this.state=905,this.match(e.DIGITS),this.state=906,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list(){let t,i=new as(this.context,this.state);this.enterRule(i,2,e.RULE_sql_stmt_list);try{let s;for(this.enterOuterAlt(i,1),this.state=912,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=909,this.match(e.SEMICOLON),this.state=914,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=915,this.sql_stmt(),this.state=924,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=917,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=916,this.match(e.SEMICOLON),this.state=919,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=921,this.sql_stmt()}this.state=926,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=930,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=927,this.match(e.SEMICOLON),this.state=932,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=933,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ansi_sql_stmt_list(){let t,i=new cs(this.context,this.state);this.enterRule(i,4,e.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(i,1),this.state=938,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=935,this.match(e.SEMICOLON),this.state=940,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=941,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_body(){let t,i=new ls(this.context,this.state);this.enterRule(i,6,e.RULE_lambda_body);try{for(this.enterOuterAlt(i,1),this.state=946,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=943,this.match(e.SEMICOLON),this.state=948,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=957,this.errorHandler.sync(this),t=this.tokenStream.LA(1);30===t||157===t;){this.state=949,this.lambda_stmt(),this.state=951,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=950,this.match(e.SEMICOLON),this.state=953,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=959,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}for(this.state=960,this.match(e.RETURN),this.state=961,this.expr(),this.state=965,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=962,this.match(e.SEMICOLON),this.state=967,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_stmt(){let t=new hs(this.context,this.state);this.enterRule(t,8,e.RULE_lambda_stmt);try{switch(this.state=970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=968,this.named_nodes_stmt();break;case e.IMPORT:this.enterOuterAlt(t,2),this.state=969,this.import_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt(){let t,i=new ds(this.context,this.state);this.enterRule(i,10,e.RULE_sql_stmt);try{this.enterOuterAlt(i,1),this.state=977,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=972,this.match(e.EXPLAIN),this.state=975,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=973,this.match(e.QUERY),this.state=974,this.match(e.PLAN))),this.state=979,this.sql_stmt_core()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core(){let t=new us(this.context,this.state);this.enterRule(t,12,e.RULE_sql_stmt_core);try{switch(this.state=1041,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(t,1),this.state=981,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=982,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=983,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=984,this.create_table_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=985,this.drop_table_stmt();break;case 6:this.enterOuterAlt(t,6),this.state=986,this.use_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=987,this.into_table_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=988,this.commit_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=989,this.update_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=990,this.delete_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=991,this.rollback_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=992,this.declare_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=993,this.import_stmt();break;case 14:this.enterOuterAlt(t,14),this.state=994,this.export_stmt();break;case 15:this.enterOuterAlt(t,15),this.state=995,this.alter_table_stmt();break;case 16:this.enterOuterAlt(t,16),this.state=996,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(t,17),this.state=997,this.do_stmt();break;case 18:this.enterOuterAlt(t,18),this.state=998,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(t,19),this.state=999,this.if_stmt();break;case 20:this.enterOuterAlt(t,20),this.state=1e3,this.for_stmt();break;case 21:this.enterOuterAlt(t,21),this.state=1001,this.values_stmt();break;case 22:this.enterOuterAlt(t,22),this.state=1002,this.create_user_stmt();break;case 23:this.enterOuterAlt(t,23),this.state=1003,this.alter_user_stmt();break;case 24:this.enterOuterAlt(t,24),this.state=1004,this.create_group_stmt();break;case 25:this.enterOuterAlt(t,25),this.state=1005,this.alter_group_stmt();break;case 26:this.enterOuterAlt(t,26),this.state=1006,this.drop_role_stmt();break;case 27:this.enterOuterAlt(t,27),this.state=1007,this.create_object_stmt();break;case 28:this.enterOuterAlt(t,28),this.state=1008,this.alter_object_stmt();break;case 29:this.enterOuterAlt(t,29),this.state=1009,this.drop_object_stmt();break;case 30:this.enterOuterAlt(t,30),this.state=1010,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(t,31),this.state=1011,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(t,32),this.state=1012,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(t,33),this.state=1013,this.create_replication_stmt();break;case 34:this.enterOuterAlt(t,34),this.state=1014,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(t,35),this.state=1015,this.create_topic_stmt();break;case 36:this.enterOuterAlt(t,36),this.state=1016,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(t,37),this.state=1017,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(t,38),this.state=1018,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(t,39),this.state=1019,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(t,40),this.state=1020,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(t,41),this.state=1021,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(t,42),this.state=1022,this.create_view_stmt();break;case 43:this.enterOuterAlt(t,43),this.state=1023,this.drop_view_stmt();break;case 44:this.enterOuterAlt(t,44),this.state=1024,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(t,45),this.state=1025,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(t,46),this.state=1026,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(t,47),this.state=1027,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(t,48),this.state=1028,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(t,49),this.state=1029,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(t,50),this.state=1030,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(t,51),this.state=1031,this.analyze_stmt();break;case 52:this.enterOuterAlt(t,52),this.state=1032,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(t,53),this.state=1033,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(t,54),this.state=1034,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(t,55),this.state=1035,this.backup_stmt();break;case 56:this.enterOuterAlt(t,56),this.state=1036,this.restore_stmt();break;case 57:this.enterOuterAlt(t,57),this.state=1037,this.alter_sequence_stmt();break;case 58:this.enterOuterAlt(t,58),this.state=1038,this.create_transfer_stmt();break;case 59:this.enterOuterAlt(t,59),this.state=1039,this.alter_transfer_stmt();break;case 60:this.enterOuterAlt(t,60),this.state=1040,this.drop_transfer_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}expr(){let t=new gs(this.context,this.state);this.enterRule(t,14,e.RULE_expr);try{let i;switch(this.state=1052,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(t,1),this.state=1043,this.or_subexpr(),this.state=1048,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1044,this.match(e.OR),this.state=1045,this.or_subexpr()),this.state=1050,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(t,2),this.state=1051,this.type_name_composite()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}or_subexpr(){let t=new ps(this.context,this.state);this.enterRule(t,16,e.RULE_or_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1054,this.and_subexpr(),this.state=1059,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1055,this.match(e.AND),this.state=1056,this.and_subexpr()),this.state=1061,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}and_subexpr(){let t=new ms(this.context,this.state);this.enterRule(t,18,e.RULE_and_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1062,this.xor_subexpr(),this.state=1067,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1063,this.match(e.XOR),this.state=1064,this.xor_subexpr()),this.state=1069,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}xor_subexpr(){let t=new fs(this.context,this.state);this.enterRule(t,20,e.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(t,1),this.state=1070,this.eq_subexpr(),this.state=1072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1071,this.cond_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}distinct_from_op(){let t,i=new _s(this.context,this.state);this.enterRule(i,22,e.RULE_distinct_from_op);try{this.enterOuterAlt(i,1),this.state=1074,this.match(e.IS),this.state=1076,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1075,this.match(e.NOT)),this.state=1078,this.match(e.DISTINCT),this.state=1079,this.match(e.FROM)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}cond_expr(){let t,i=new vs(this.context,this.state);this.enterRule(i,24,e.RULE_cond_expr);try{let s;switch(this.state=1132,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(i,1),this.state=1082,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1081,this.match(e.NOT)),this.state=1084,this.match_op(),this.state=1085,this.eq_subexpr(),this.state=1088,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1086,this.match(e.ESCAPE),this.state=1087,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(i,2),1===(this.state=1091,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1090,this.match(e.NOT)),this.state=1093,this.match(e.IN),this.state=1095,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1094,this.match(e.COMPACT);this.state=1097,this.in_expr();break;case 3:switch(this.enterOuterAlt(i,3),this.state=1107,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1098,this.match(e.ISNULL);break;case 2:this.state=1099,this.match(e.NOTNULL);break;case 3:this.state=1100,this.match(e.IS),this.state=1101,this.match(e.NULL);break;case 4:this.state=1103,this.errorHandler.sync(this),t=this.tokenStream.LA(1),171===t&&(this.state=1102,this.match(e.IS)),this.state=1105,this.match(e.NOT),this.state=1106,this.match(e.NULL)}break;case 4:if(this.enterOuterAlt(i,4),1===(this.state=1110,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1109,this.match(e.NOT)),this.state=1112,this.match(e.BETWEEN),this.state=1114,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1113,t=this.tokenStream.LA(1),52===t||283===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1116,this.eq_subexpr(),this.state=1117,this.match(e.AND),this.state=1118,this.eq_subexpr();break;case 5:this.enterOuterAlt(i,5),this.state=1128,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new lt(this);switch(this.state=1125,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1120,this.match(e.EQUALS);break;case e.EQUALS2:this.state=1121,this.match(e.EQUALS2);break;case e.NOT_EQUALS:this.state=1122,this.match(e.NOT_EQUALS);break;case e.NOT_EQUALS2:this.state=1123,this.match(e.NOT_EQUALS2);break;case e.IS:this.state=1124,this.distinct_from_op();break;default:throw new lt(this)}this.state=1127,this.eq_subexpr(),this.state=1130,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==s&&s!==Z.INVALID_ALT_NUMBER)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}match_op(){let t,i=new Cs(this.context,this.state);this.enterRule(i,26,e.RULE_match_op);try{this.enterOuterAlt(i,1),this.state=1134,t=this.tokenStream.LA(1),144===t||155===t||181===t||187===t||239===t||259===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}eq_subexpr(){let t,i=new Es(this.context,this.state);this.enterRule(i,28,e.RULE_eq_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1136,this.neq_subexpr(),this.state=1141,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&480;)this.state=1137,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&480?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1138,this.neq_subexpr(),this.state=1143,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}shift_right(){let t=new bs(this.context,this.state);this.enterRule(t,30,e.RULE_shift_right);try{this.enterOuterAlt(t,1),this.state=1144,this.match(e.GREATER),this.state=1145,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rot_right(){let t=new Ss(this.context,this.state);this.enterRule(t,32,e.RULE_rot_right);try{this.enterOuterAlt(t,1),this.state=1147,this.match(e.GREATER),this.state=1148,this.match(e.GREATER),this.state=1149,this.match(e.PIPE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}double_question(){let t=new ys(this.context,this.state);this.enterRule(t,34,e.RULE_double_question);try{this.enterOuterAlt(t,1),this.state=1151,this.match(e.QUESTION),this.state=1152,this.match(e.QUESTION)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}neq_subexpr(){let t,i=new ws(this.context,this.state);this.enterRule(i,36,e.RULE_neq_subexpr);try{let s;for(this.enterOuterAlt(i,1),this.state=1154,this.bit_subexpr(),this.state=1167,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){switch(this.state=1162,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1155,this.match(e.SHIFT_LEFT);break;case 2:this.state=1156,this.shift_right();break;case 3:this.state=1157,this.match(e.ROT_LEFT);break;case 4:this.state=1158,this.rot_right();break;case 5:this.state=1159,this.match(e.AMPERSAND);break;case 6:this.state=1160,this.match(e.PIPE);break;case 7:this.state=1161,this.match(e.CARET)}this.state=1164,this.bit_subexpr()}this.state=1169,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1178,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1170,this.double_question(),this.state=1171,this.neq_subexpr();break;case 2:this.state=1174,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1173,this.match(e.QUESTION),this.state=1176,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(27===t)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bit_subexpr(){let t,i=new Rs(this.context,this.state);this.enterRule(i,38,e.RULE_bit_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1180,this.add_subexpr(),this.state=1185,this.errorHandler.sync(this),t=this.tokenStream.LA(1);16===t||17===t;)this.state=1181,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1182,this.add_subexpr(),this.state=1187,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}add_subexpr(){let t,i=new Ls(this.context,this.state);this.enterRule(i,40,e.RULE_add_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1188,this.mul_subexpr(),this.state=1193,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&3670016;)this.state=1189,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&3670016?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1190,this.mul_subexpr(),this.state=1195,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}mul_subexpr(){let t,i=new Ts(this.context,this.state);this.enterRule(i,42,e.RULE_mul_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1196,this.con_subexpr(),this.state=1201,this.errorHandler.sync(this),t=this.tokenStream.LA(1);13===t;)this.state=1197,this.match(e.DOUBLE_PIPE),this.state=1198,this.con_subexpr(),this.state=1203,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}con_subexpr(){let t=new xs(this.context,this.state);this.enterRule(t,44,e.RULE_con_subexpr);try{switch(this.state=1208,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1204,this.unary_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1205,this.unary_op(),this.state=1206,this.unary_subexpr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_op(){let t,i=new ks(this.context,this.state);this.enterRule(i,46,e.RULE_unary_op);try{this.enterOuterAlt(i,1),this.state=1210,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&458752||199===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_subexpr_suffix(){let t,i=new As(this.context,this.state);this.enterRule(i,48,e.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(i,1),this.state=1224,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(t-23&-32)&&1<<t-23&16389;){switch(this.state=1220,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LBRACE_SQUARE:this.state=1212,this.key_expr();break;case e.LPAREN:this.state=1213,this.invoke_expr();break;case e.DOT:switch(this.state=1214,this.match(e.DOT),this.state=1218,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1215,this.bind_parameter();break;case e.DIGITS:this.state=1216,this.match(e.DIGITS);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1217,this.an_id_or_type();break;default:throw new lt(this)}break;default:throw new lt(this)}this.state=1226,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}this.state=1229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),75===t&&(this.state=1227,this.match(e.COLLATE),this.state=1228,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_casual_subexpr(){let t=new Ns(this.context,this.state);this.enterRule(t,50,e.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1233,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1231,this.id_expr();break;case 2:this.state=1232,this.atom_expr()}this.state=1235,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_casual_subexpr(){let t=new Is(this.context,this.state);this.enterRule(t,52,e.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1239,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1237,this.id_expr_in();break;case 2:this.state=1238,this.in_atom_expr()}this.state=1241,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_subexpr(){let t=new Os(this.context,this.state);this.enterRule(t,54,e.RULE_unary_subexpr);try{switch(this.state=1245,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1243,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1244,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_subexpr(){let t=new Ds(this.context,this.state);this.enterRule(t,56,e.RULE_in_unary_subexpr);try{switch(this.state=1249,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1247,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1248,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}list_literal(){let t,i=new Ms(this.context,this.state);this.enterRule(i,58,e.RULE_list_literal);try{this.enterOuterAlt(i,1),this.state=1251,this.match(e.LBRACE_SQUARE),this.state=1253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1252,this.expr_list()),this.state=1256,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1255,this.match(e.COMMA)),this.state=1258,this.match(e.RBRACE_SQUARE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_dict_list(){let t,i=new Ps(this.context,this.state);this.enterRule(i,60,e.RULE_expr_dict_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1260,this.expr(),this.state=1263,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1261,this.match(e.COLON),this.state=1262,this.expr()),this.state=1273,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1265,this.match(e.COMMA),this.state=1266,this.expr(),this.state=1269,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1267,this.match(e.COLON),this.state=1268,this.expr())),this.state=1275,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}dict_literal(){let t,i=new Fs(this.context,this.state);this.enterRule(i,62,e.RULE_dict_literal);try{this.enterOuterAlt(i,1),this.state=1276,this.match(e.LBRACE_CURLY),this.state=1278,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1277,this.expr_dict_list()),this.state=1281,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1280,this.match(e.COMMA)),this.state=1283,this.match(e.RBRACE_CURLY)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_struct_list(){let t=new Us(this.context,this.state);this.enterRule(t,64,e.RULE_expr_struct_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1285,this.expr(),this.state=1286,this.match(e.COLON),this.state=1287,this.expr(),this.state=1295,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1288,this.match(e.COMMA),this.state=1289,this.expr(),this.state=1290,this.match(e.COLON),this.state=1291,this.expr()),this.state=1297,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_literal(){let t,i=new Hs(this.context,this.state);this.enterRule(i,66,e.RULE_struct_literal);try{this.enterOuterAlt(i,1),this.state=1298,this.match(e.STRUCT_OPEN),this.state=1300,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1299,this.expr_struct_list()),this.state=1303,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1302,this.match(e.COMMA)),this.state=1305,this.match(e.STRUCT_CLOSE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}atom_expr(){let t=new Bs(this.context,this.state);this.enterRule(t,68,e.RULE_atom_expr);try{switch(this.state=1324,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1307,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1308,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1309,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1310,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1311,this.exists_expr();break;case 6:this.enterOuterAlt(t,6),this.state=1312,this.case_expr();break;case 7:switch(this.enterOuterAlt(t,7),this.state=1313,this.an_id_or_type(),this.state=1314,this.match(e.NAMESPACE),this.state=1317,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1315,this.id_or_type();break;case e.STRING_VALUE:this.state=1316,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 8:this.enterOuterAlt(t,8),this.state=1319,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1320,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1321,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1322,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1323,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_atom_expr(){let t=new Ws(this.context,this.state);this.enterRule(t,70,e.RULE_in_atom_expr);try{switch(this.state=1346,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1326,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1327,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1328,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1329,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1330,this.case_expr();break;case 6:switch(this.enterOuterAlt(t,6),this.state=1331,this.an_id_or_type(),this.state=1332,this.match(e.NAMESPACE),this.state=1335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1333,this.id_or_type();break;case e.STRING_VALUE:this.state=1334,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 7:this.enterOuterAlt(t,7),this.state=1337,this.match(e.LPAREN),this.state=1338,this.select_stmt(),this.state=1339,this.match(e.RPAREN);break;case 8:this.enterOuterAlt(t,8),this.state=1341,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1342,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1343,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1344,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1345,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cast_expr(){let t=new Vs(this.context,this.state);this.enterRule(t,72,e.RULE_cast_expr);try{this.enterOuterAlt(t,1),this.state=1348,this.match(e.CAST),this.state=1349,this.match(e.LPAREN),this.state=1350,this.expr(),this.state=1351,this.match(e.AS),this.state=1352,this.type_name_or_bind(),this.state=1353,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bitcast_expr(){let t=new zs(this.context,this.state);this.enterRule(t,74,e.RULE_bitcast_expr);try{this.enterOuterAlt(t,1),this.state=1355,this.match(e.BITCAST),this.state=1356,this.match(e.LPAREN),this.state=1357,this.expr(),this.state=1358,this.match(e.AS),this.state=1359,this.type_name_simple(),this.state=1360,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}exists_expr(){let t=new Gs(this.context,this.state);this.enterRule(t,76,e.RULE_exists_expr);try{switch(this.enterOuterAlt(t,1),this.state=1362,this.match(e.EXISTS),this.state=1363,this.match(e.LPAREN),this.state=1366,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=1364,this.select_stmt();break;case e.VALUES:this.state=1365,this.values_stmt();break;default:throw new lt(this)}this.state=1368,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}case_expr(){let t,i=new js(this.context,this.state);this.enterRule(i,78,e.RULE_case_expr);try{if(this.enterOuterAlt(i,1),1===(this.state=1370,this.match(e.CASE),this.state=1372,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1371,this.expr();this.state=1375,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1374,this.when_expr(),this.state=1377,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(319===t);this.state=1381,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=1379,this.match(e.ELSE),this.state=1380,this.expr()),this.state=1383,this.match(e.END)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda(){let t,i=new Ks(this.context,this.state);this.enterRule(i,80,e.RULE_lambda);try{if(this.enterOuterAlt(i,1),this.state=1385,this.smart_parenthesis(),this.state=1397,this.errorHandler.sync(this),t=this.tokenStream.LA(1),35===t)switch(this.state=1386,this.match(e.ARROW),this.state=1395,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=1387,this.match(e.LPAREN),this.state=1388,this.expr(),this.state=1389,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.state=1391,this.match(e.LBRACE_CURLY),this.state=1392,this.lambda_body(),this.state=1393,this.match(e.RBRACE_CURLY);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}in_expr(){let t=new Ys(this.context,this.state);this.enterRule(t,82,e.RULE_in_expr);try{this.enterOuterAlt(t,1),this.state=1399,this.in_unary_subexpr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_api_expr(){let t=new qs(this.context,this.state);this.enterRule(t,84,e.RULE_json_api_expr);try{switch(this.state=1404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.JSON_VALUE:this.enterOuterAlt(t,1),this.state=1401,this.json_value();break;case e.JSON_EXISTS:this.enterOuterAlt(t,2),this.state=1402,this.json_exists();break;case e.JSON_QUERY:this.enterOuterAlt(t,3),this.state=1403,this.json_query();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}jsonpath_spec(){let t=new $s(this.context,this.state);this.enterRule(t,86,e.RULE_jsonpath_spec);try{this.enterOuterAlt(t,1),this.state=1406,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable_name(){let t=new Qs(this.context,this.state);this.enterRule(t,88,e.RULE_json_variable_name);try{switch(this.state=1410,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1408,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1409,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable(){let t=new Xs(this.context,this.state);this.enterRule(t,90,e.RULE_json_variable);try{this.enterOuterAlt(t,1),this.state=1412,this.expr(),this.state=1413,this.match(e.AS),this.state=1414,this.json_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variables(){let t,i=new Zs(this.context,this.state);this.enterRule(i,92,e.RULE_json_variables);try{for(this.enterOuterAlt(i,1),this.state=1416,this.json_variable(),this.state=1421,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1417,this.match(e.COMMA),this.state=1418,this.json_variable(),this.state=1423,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_common_args(){let t,i=new Js(this.context,this.state);this.enterRule(i,94,e.RULE_json_common_args);try{this.enterOuterAlt(i,1),this.state=1424,this.expr(),this.state=1425,this.match(e.COMMA),this.state=1426,this.jsonpath_spec(),this.state=1429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),219===t&&(this.state=1427,this.match(e.PASSING),this.state=1428,this.json_variables())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_case_handler(){let t=new en(this.context,this.state);this.enterRule(t,96,e.RULE_json_case_handler);try{switch(this.state=1435,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ERROR:this.enterOuterAlt(t,1),this.state=1431,this.match(e.ERROR);break;case e.NULL:this.enterOuterAlt(t,2),this.state=1432,this.match(e.NULL);break;case e.DEFAULT:this.enterOuterAlt(t,3),this.state=1433,this.match(e.DEFAULT),this.state=1434,this.expr();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_value(){let t,i=new tn(this.context,this.state);this.enterRule(i,98,e.RULE_json_value);try{for(this.enterOuterAlt(i,1),this.state=1437,this.match(e.JSON_VALUE),this.state=1438,this.match(e.LPAREN),this.state=1439,this.json_common_args(),this.state=1442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=1440,this.match(e.RETURNING),this.state=1441,this.type_name_simple()),this.state=1450,this.errorHandler.sync(this),t=this.tokenStream.LA(1);97===t||120===t||201===t;)this.state=1444,this.json_case_handler(),this.state=1445,this.match(e.ON),this.state=1446,t=this.tokenStream.LA(1),114===t||120===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1452,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1453,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists_handler(){let t,i=new sn(this.context,this.state);this.enterRule(i,100,e.RULE_json_exists_handler);try{this.enterOuterAlt(i,1),this.state=1455,t=this.tokenStream.LA(1),120===t||132===t||300===t||307===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1456,this.match(e.ON),this.state=1457,this.match(e.ERROR)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists(){let t,i=new nn(this.context,this.state);this.enterRule(i,102,e.RULE_json_exists);try{this.enterOuterAlt(i,1),this.state=1459,this.match(e.JSON_EXISTS),this.state=1460,this.match(e.LPAREN),this.state=1461,this.json_common_args(),this.state=1463,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(120===t||132===t||300===t||307===t)&&(this.state=1462,this.json_exists_handler()),this.state=1465,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_wrapper(){let t,i=new rn(this.context,this.state);this.enterRule(i,104,e.RULE_json_query_wrapper);try{switch(this.state=1478,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WITHOUT:this.enterOuterAlt(i,1),this.state=1467,this.match(e.WITHOUT),this.state=1469,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1468,this.match(e.ARRAY));break;case e.WITH:this.enterOuterAlt(i,2),this.state=1471,this.match(e.WITH),this.state=1473,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(80===t||304===t)&&(this.state=1472,t=this.tokenStream.LA(1),80===t||304===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1476,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1475,this.match(e.ARRAY));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_handler(){let t=new on(this.context,this.state);this.enterRule(t,106,e.RULE_json_query_handler);try{switch(this.state=1486,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1480,this.match(e.ERROR);break;case 2:this.enterOuterAlt(t,2),this.state=1481,this.match(e.NULL);break;case 3:this.enterOuterAlt(t,3),this.state=1482,this.match(e.EMPTY),this.state=1483,this.match(e.ARRAY);break;case 4:this.enterOuterAlt(t,4),this.state=1484,this.match(e.EMPTY),this.state=1485,this.match(e.OBJECT)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_query(){let t,i=new an(this.context,this.state);this.enterRule(i,108,e.RULE_json_query);try{if(this.enterOuterAlt(i,1),1===(this.state=1488,this.match(e.JSON_QUERY),this.state=1489,this.match(e.LPAREN),this.state=1490,this.json_common_args(),this.state=1494,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=1491,this.json_query_wrapper(),this.state=1492,this.match(e.WRAPPER)),this.state=1500,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1496,this.json_query_handler(),this.state=1497,this.match(e.ON),this.state=1498,this.match(e.EMPTY);this.state=1506,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(114===t||120===t||201===t)&&(this.state=1502,this.json_query_handler(),this.state=1503,this.match(e.ON),this.state=1504,this.match(e.ERROR)),this.state=1508,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}smart_parenthesis(){let t,i=new cn(this.context,this.state);this.enterRule(i,110,e.RULE_smart_parenthesis);try{this.enterOuterAlt(i,1),this.state=1510,this.match(e.LPAREN),this.state=1512,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1511,this.named_expr_list()),this.state=1515,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1514,this.match(e.COMMA)),this.state=1517,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_list(){let t=new ln(this.context,this.state);this.enterRule(t,112,e.RULE_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1519,this.expr(),this.state=1524,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1520,this.match(e.COMMA),this.state=1521,this.expr()),this.state=1526,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_list(){let t,i=new hn(this.context,this.state);this.enterRule(i,114,e.RULE_pure_column_list);try{for(this.enterOuterAlt(i,1),this.state=1527,this.match(e.LPAREN),this.state=1528,this.an_id(),this.state=1533,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1529,this.match(e.COMMA),this.state=1530,this.an_id(),this.state=1535,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1536,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pure_column_or_named(){let t=new dn(this.context,this.state);this.enterRule(t,116,e.RULE_pure_column_or_named);try{switch(this.state=1540,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=1538,this.bind_parameter();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=1539,this.an_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_or_named_list(){let t,i=new un(this.context,this.state);this.enterRule(i,118,e.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(i,1),this.state=1542,this.match(e.LPAREN),this.state=1543,this.pure_column_or_named(),this.state=1548,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1544,this.match(e.COMMA),this.state=1545,this.pure_column_or_named(),this.state=1550,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1551,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_name(){let t=new gn(this.context,this.state);this.enterRule(t,120,e.RULE_column_name);try{this.enterOuterAlt(t,1),this.state=1553,this.opt_id_prefix(),this.state=1554,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}without_column_name(){let t=new pn(this.context,this.state);this.enterRule(t,122,e.RULE_without_column_name);try{switch(this.state=1561,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1556,this.an_id(),this.state=1557,this.match(e.DOT),this.state=1558,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=1560,this.an_id_without()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_list(){let t,i=new mn(this.context,this.state);this.enterRule(i,124,e.RULE_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1563,this.column_name(),this.state=1568,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1564,this.match(e.COMMA),this.state=1565,this.column_name()),this.state=1570,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1572,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1571,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}without_column_list(){let t,i=new fn(this.context,this.state);this.enterRule(i,126,e.RULE_without_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1574,this.without_column_name(),this.state=1579,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1575,this.match(e.COMMA),this.state=1576,this.without_column_name()),this.state=1581,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1583,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1582,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr(){let t,i=new _n(this.context,this.state);this.enterRule(i,128,e.RULE_named_expr);try{this.enterOuterAlt(i,1),this.state=1585,this.expr(),this.state=1588,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1586,this.match(e.AS),this.state=1587,this.an_id_or_type())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr_list(){let t=new vn(this.context,this.state);this.enterRule(t,130,e.RULE_named_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1590,this.named_expr(),this.state=1595,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1591,this.match(e.COMMA),this.state=1592,this.named_expr()),this.state=1597,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}invoke_expr(){let t,i=new Cn(this.context,this.state);this.enterRule(i,132,e.RULE_invoke_expr);try{switch(this.enterOuterAlt(i,1),this.state=1598,this.match(e.LPAREN),this.state=1605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRUCT_OPEN:case e.PLUS:case e.MINUS:case e.TILDA:case e.LPAREN:case e.DOLLAR:case e.LBRACE_CURLY:case e.LBRACE_SQUARE:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FALSE:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TRUE:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:case e.BLOB:this.state=1599,this.opt_set_quantifier(),this.state=1600,this.named_expr_list(),this.state=1602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1601,this.match(e.COMMA));break;case e.ASTERISK:this.state=1604,this.match(e.ASTERISK);case e.RPAREN:}this.state=1607,this.match(e.RPAREN),this.state=1608,this.invoke_expr_tail()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}invoke_expr_tail(){let t,i=new En(this.context,this.state);this.enterRule(i,134,e.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(i,1),this.state=1612,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1610,this.null_treatment();break;case 2:this.state=1611,this.filter_clause()}this.state=1616,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=1614,this.match(e.OVER),this.state=1615,this.window_name_or_specification())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}using_call_expr(){let t=new bn(this.context,this.state);this.enterRule(t,136,e.RULE_using_call_expr);try{switch(this.enterOuterAlt(t,1),this.state=1626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1618,this.an_id_or_type(),this.state=1619,this.match(e.NAMESPACE),this.state=1620,this.an_id_or_type();break;case 2:this.state=1622,this.an_id_expr();break;case 3:this.state=1623,this.bind_parameter();break;case 4:this.state=1624,this.match(e.EXTERNAL),this.state=1625,this.match(e.FUNCTION)}this.state=1628,this.invoke_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}key_expr(){let t=new Sn(this.context,this.state);this.enterRule(t,138,e.RULE_key_expr);try{this.enterOuterAlt(t,1),this.state=1630,this.match(e.LBRACE_SQUARE),this.state=1631,this.expr(),this.state=1632,this.match(e.RBRACE_SQUARE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}when_expr(){let t=new yn(this.context,this.state);this.enterRule(t,140,e.RULE_when_expr);try{this.enterOuterAlt(t,1),this.state=1634,this.match(e.WHEN),this.state=1635,this.expr(),this.state=1636,this.match(e.THEN),this.state=1637,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}literal_value(){let t=new wn(this.context,this.state);this.enterRule(t,142,e.RULE_literal_value);try{switch(this.state=1649,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1639,this.integer();break;case e.REAL:this.enterOuterAlt(t,2),this.state=1640,this.real();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1641,this.match(e.STRING_VALUE);break;case e.BLOB:this.enterOuterAlt(t,4),this.state=1642,this.match(e.BLOB);break;case e.NULL:this.enterOuterAlt(t,5),this.state=1643,this.match(e.NULL);break;case e.CURRENT_TIME:this.enterOuterAlt(t,6),this.state=1644,this.match(e.CURRENT_TIME);break;case e.CURRENT_DATE:this.enterOuterAlt(t,7),this.state=1645,this.match(e.CURRENT_DATE);break;case e.CURRENT_TIMESTAMP:this.enterOuterAlt(t,8),this.state=1646,this.match(e.CURRENT_TIMESTAMP);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,9),this.state=1647,this.bool_value();break;case e.EMPTY_ACTION:this.enterOuterAlt(t,10),this.state=1648,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bind_parameter(){let t=new Rn(this.context,this.state);this.enterRule(t,144,e.RULE_bind_parameter);try{switch(this.enterOuterAlt(t,1),this.state=1651,this.match(e.DOLLAR),this.state=1655,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1652,this.an_id_or_type();break;case e.TRUE:this.state=1653,this.match(e.TRUE);break;case e.FALSE:this.state=1654,this.match(e.FALSE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_bind_parameter(){let t,i=new Ln(this.context,this.state);this.enterRule(i,146,e.RULE_opt_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1657,this.bind_parameter(),this.state=1659,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=1658,this.match(e.QUESTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bind_parameter_list(){let t,i=new Tn(this.context,this.state);this.enterRule(i,148,e.RULE_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1661,this.bind_parameter(),this.state=1666,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1662,this.match(e.COMMA),this.state=1663,this.bind_parameter(),this.state=1668,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter(){let t,i=new xn(this.context,this.state);this.enterRule(i,150,e.RULE_named_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1669,this.bind_parameter(),this.state=1672,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1670,this.match(e.AS),this.state=1671,this.bind_parameter())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter_list(){let t,i=new kn(this.context,this.state);this.enterRule(i,152,e.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1674,this.named_bind_parameter(),this.state=1679,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1675,this.match(e.COMMA),this.state=1676,this.named_bind_parameter(),this.state=1681,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}signed_number(){let t,i=new An(this.context,this.state);this.enterRule(i,154,e.RULE_signed_number);try{switch(this.enterOuterAlt(i,1),this.state=1683,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(16===t||17===t)&&(this.state=1682,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1687,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.state=1685,this.integer();break;case e.REAL:this.state=1686,this.real();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_simple(){let t=new Nn(this.context,this.state);this.enterRule(t,156,e.RULE_type_name_simple);try{this.enterOuterAlt(t,1),this.state=1689,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer_or_bind(){let t=new In(this.context,this.state);this.enterRule(t,158,e.RULE_integer_or_bind);try{switch(this.state=1693,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1691,this.integer();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1692,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tag(){let t=new On(this.context,this.state);this.enterRule(t,160,e.RULE_type_name_tag);try{switch(this.state=1698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1695,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1696,this.match(e.STRING_VALUE);break;case e.DOLLAR:this.enterOuterAlt(t,3),this.state=1697,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg(){let t=new Dn(this.context,this.state);this.enterRule(t,162,e.RULE_struct_arg);try{this.enterOuterAlt(t,1),this.state=1700,this.type_name_tag(),this.state=1701,this.match(e.COLON),this.state=1702,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg_positional(){let t,i=new Mn(this.context,this.state);this.enterRule(i,164,e.RULE_struct_arg_positional);try{switch(this.state=1716,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(i,1),this.state=1704,this.type_name_tag(),this.state=1705,this.type_name_or_bind(),this.state=1710,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=1707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1706,this.match(e.NOT)),this.state=1709,this.match(e.NULL));break;case 2:this.enterOuterAlt(i,2),this.state=1712,this.type_name_or_bind(),this.state=1713,this.match(e.AS),this.state=1714,this.type_name_tag()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}variant_arg(){let t=new Pn(this.context,this.state);this.enterRule(t,166,e.RULE_variant_arg);try{if(this.enterOuterAlt(t,1),1===(this.state=1721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1718,this.type_name_tag(),this.state=1719,this.match(e.COLON);this.state=1723,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}callable_arg(){let t,i=new Fn(this.context,this.state);this.enterRule(i,168,e.RULE_callable_arg);try{this.enterOuterAlt(i,1),this.state=1725,this.variant_arg(),this.state=1729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),31===t&&(this.state=1726,this.match(e.LBRACE_CURLY),this.state=1727,this.match(e.AUTOMAP),this.state=1728,this.match(e.RBRACE_CURLY))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}callable_arg_list(){let t=new Un(this.context,this.state);this.enterRule(t,170,e.RULE_callable_arg_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1731,this.callable_arg(),this.state=1736,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1732,this.match(e.COMMA),this.state=1733,this.callable_arg()),this.state=1738,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_decimal(){let t=new Hn(this.context,this.state);this.enterRule(t,172,e.RULE_type_name_decimal);try{this.enterOuterAlt(t,1),this.state=1739,this.match(e.DECIMAL),this.state=1740,this.match(e.LPAREN),this.state=1741,this.integer_or_bind(),this.state=1742,this.match(e.COMMA),this.state=1743,this.integer_or_bind(),this.state=1744,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_optional(){let t=new Bn(this.context,this.state);this.enterRule(t,174,e.RULE_type_name_optional);try{this.enterOuterAlt(t,1),this.state=1746,this.match(e.OPTIONAL),this.state=1747,this.match(e.LESS),this.state=1748,this.type_name_or_bind(),this.state=1749,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tuple(){let t,i=new Wn(this.context,this.state);this.enterRule(i,176,e.RULE_type_name_tuple);try{let s;switch(this.enterOuterAlt(i,1),this.state=1751,this.match(e.TUPLE),this.state=1768,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1752,this.match(e.LESS),this.state=1764,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t||68===t||95===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&3229614081||!(t-290&-32)&&1<<t-290&67110913||!(t-326&-32)&&1<<t-326&7){for(this.state=1753,this.type_name_or_bind(),this.state=1758,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1754,this.match(e.COMMA),this.state=1755,this.type_name_or_bind()),this.state=1760,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1762,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1761,this.match(e.COMMA))}this.state=1766,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1767,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_struct(){let t,i=new Vn(this.context,this.state);this.enterRule(i,178,e.RULE_type_name_struct);try{let s;switch(this.enterOuterAlt(i,1),this.state=1770,this.match(e.STRUCT),this.state=1787,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1771,this.match(e.LESS),this.state=1783,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967231||!(t-94&-32)&&1<<t-94&4278188031||!(t-126&-32)&&1<<t-126&4294965183||!(t-158&-32)&&1<<t-158&4261412863||!(t-190&-32)&&1<<t-190&4292870143||!(t-222&-32)&&1<<t-222&4223664127||!(t-254&-32)&&1<<t-254&4261281791||!(t-286&-32)&&1<<t-286&3221176303||!(t-318&-32)&&1<<t-318&2047){for(this.state=1772,this.struct_arg(),this.state=1777,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1773,this.match(e.COMMA),this.state=1774,this.struct_arg()),this.state=1779,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1781,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1780,this.match(e.COMMA))}this.state=1785,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1786,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_variant(){let t,i=new zn(this.context,this.state);this.enterRule(i,180,e.RULE_type_name_variant);try{let s;for(this.enterOuterAlt(i,1),this.state=1789,this.match(e.VARIANT),this.state=1790,this.match(e.LESS),this.state=1791,this.variant_arg(),this.state=1796,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1792,this.match(e.COMMA),this.state=1793,this.variant_arg()),this.state=1798,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1800,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1799,this.match(e.COMMA)),this.state=1802,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_list(){let t=new Gn(this.context,this.state);this.enterRule(t,182,e.RULE_type_name_list);try{this.enterOuterAlt(t,1),this.state=1804,this.match(e.LIST),this.state=1805,this.match(e.LESS),this.state=1806,this.type_name_or_bind(),this.state=1807,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_stream(){let t=new jn(this.context,this.state);this.enterRule(t,184,e.RULE_type_name_stream);try{this.enterOuterAlt(t,1),this.state=1809,this.match(e.STREAM),this.state=1810,this.match(e.LESS),this.state=1811,this.type_name_or_bind(),this.state=1812,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_flow(){let t=new Kn(this.context,this.state);this.enterRule(t,186,e.RULE_type_name_flow);try{this.enterOuterAlt(t,1),this.state=1814,this.match(e.FLOW),this.state=1815,this.match(e.LESS),this.state=1816,this.type_name_or_bind(),this.state=1817,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_dict(){let t=new Yn(this.context,this.state);this.enterRule(t,188,e.RULE_type_name_dict);try{this.enterOuterAlt(t,1),this.state=1819,this.match(e.DICT),this.state=1820,this.match(e.LESS),this.state=1821,this.type_name_or_bind(),this.state=1822,this.match(e.COMMA),this.state=1823,this.type_name_or_bind(),this.state=1824,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_set(){let t=new qn(this.context,this.state);this.enterRule(t,190,e.RULE_type_name_set);try{this.enterOuterAlt(t,1),this.state=1826,this.match(e.SET),this.state=1827,this.match(e.LESS),this.state=1828,this.type_name_or_bind(),this.state=1829,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_enum(){let t,i=new $n(this.context,this.state);this.enterRule(i,192,e.RULE_type_name_enum);try{let s;for(this.enterOuterAlt(i,1),this.state=1831,this.match(e.ENUM),this.state=1832,this.match(e.LESS),this.state=1833,this.type_name_tag(),this.state=1838,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1834,this.match(e.COMMA),this.state=1835,this.type_name_tag()),this.state=1840,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1842,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1841,this.match(e.COMMA)),this.state=1844,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_resource(){let t=new Qn(this.context,this.state);this.enterRule(t,194,e.RULE_type_name_resource);try{this.enterOuterAlt(t,1),this.state=1846,this.match(e.RESOURCE),this.state=1847,this.match(e.LESS),this.state=1848,this.type_name_tag(),this.state=1849,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tagged(){let t=new Xn(this.context,this.state);this.enterRule(t,196,e.RULE_type_name_tagged);try{this.enterOuterAlt(t,1),this.state=1851,this.match(e.TAGGED),this.state=1852,this.match(e.LESS),this.state=1853,this.type_name_or_bind(),this.state=1854,this.match(e.COMMA),this.state=1855,this.type_name_tag(),this.state=1856,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_callable(){let t,i=new Zn(this.context,this.state);this.enterRule(i,198,e.RULE_type_name_callable);try{this.enterOuterAlt(i,1),this.state=1858,this.match(e.CALLABLE),this.state=1859,this.match(e.LESS),this.state=1860,this.match(e.LPAREN),this.state=1862,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)&&(this.state=1861,this.callable_arg_list()),this.state=1865,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1864,this.match(e.COMMA)),this.state=1871,this.errorHandler.sync(this),t=this.tokenStream.LA(1),37===t&&(this.state=1867,this.match(e.LBRACE_SQUARE),this.state=1868,this.callable_arg_list(),this.state=1869,this.match(e.RBRACE_SQUARE)),this.state=1873,this.match(e.RPAREN),this.state=1874,this.match(e.ARROW),this.state=1875,this.type_name_or_bind(),this.state=1876,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_composite(){let t,i=new Jn(this.context,this.state);this.enterRule(i,200,e.RULE_type_name_composite);try{switch(this.enterOuterAlt(i,1),this.state=1891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.OPTIONAL:this.state=1878,this.type_name_optional();break;case e.TUPLE:this.state=1879,this.type_name_tuple();break;case e.STRUCT:this.state=1880,this.type_name_struct();break;case e.VARIANT:this.state=1881,this.type_name_variant();break;case e.LIST:this.state=1882,this.type_name_list();break;case e.STREAM:this.state=1883,this.type_name_stream();break;case e.FLOW:this.state=1884,this.type_name_flow();break;case e.DICT:this.state=1885,this.type_name_dict();break;case e.SET:this.state=1886,this.type_name_set();break;case e.ENUM:this.state=1887,this.type_name_enum();break;case e.RESOURCE:this.state=1888,this.type_name_resource();break;case e.TAGGED:this.state=1889,this.type_name_tagged();break;case e.CALLABLE:this.state=1890,this.type_name_callable();break;default:throw new lt(this)}for(this.state=1896,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1893,this.match(e.QUESTION),this.state=1898,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name(){let t,i=new er(this.context,this.state);this.enterRule(i,202,e.RULE_type_name);try{switch(this.state=1910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(i,1),this.state=1899,this.type_name_composite();break;case e.DECIMAL:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:switch(this.enterOuterAlt(i,2),this.state=1902,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DECIMAL:this.state=1900,this.type_name_decimal();break;case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1901,this.type_name_simple();break;default:throw new lt(this)}for(this.state=1907,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1904,this.match(e.QUESTION),this.state=1909,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_or_bind(){let t=new tr(this.context,this.state);this.enterRule(t,204,e.RULE_type_name_or_bind);try{switch(this.state=1914,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DECIMAL:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1912,this.type_name();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1913,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor_literal(){let t=new ir(this.context,this.state);this.enterRule(t,206,e.RULE_value_constructor_literal);try{this.enterOuterAlt(t,1),this.state=1916,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor(){let t=new sr(this.context,this.state);this.enterRule(t,208,e.RULE_value_constructor);try{switch(this.state=1941,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VARIANT:this.enterOuterAlt(t,1),this.state=1918,this.match(e.VARIANT),this.state=1919,this.match(e.LPAREN),this.state=1920,this.expr(),this.state=1921,this.match(e.COMMA),this.state=1922,this.expr(),this.state=1923,this.match(e.COMMA),this.state=1924,this.expr(),this.state=1925,this.match(e.RPAREN);break;case e.ENUM:this.enterOuterAlt(t,2),this.state=1927,this.match(e.ENUM),this.state=1928,this.match(e.LPAREN),this.state=1929,this.expr(),this.state=1930,this.match(e.COMMA),this.state=1931,this.expr(),this.state=1932,this.match(e.RPAREN);break;case e.CALLABLE:this.enterOuterAlt(t,3),this.state=1934,this.match(e.CALLABLE),this.state=1935,this.match(e.LPAREN),this.state=1936,this.expr(),this.state=1937,this.match(e.COMMA),this.state=1938,this.expr(),this.state=1939,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}declare_stmt(){let t,i=new nr(this.context,this.state);this.enterRule(i,210,e.RULE_declare_stmt);try{this.enterOuterAlt(i,1),this.state=1943,this.match(e.DECLARE),this.state=1944,this.bind_parameter(),this.state=1945,this.match(e.AS),this.state=1946,this.type_name(),this.state=1949,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=1947,this.match(e.EQUALS),this.state=1948,this.literal_value())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}module_path(){let t,i=new rr(this.context,this.state);this.enterRule(i,212,e.RULE_module_path);try{for(this.enterOuterAlt(i,1),this.state=1952,this.errorHandler.sync(this),t=this.tokenStream.LA(1),23===t&&(this.state=1951,this.match(e.DOT)),this.state=1954,this.an_id(),this.state=1959,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=1955,this.match(e.DOT),this.state=1956,this.an_id(),this.state=1961,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}import_stmt(){let t=new or(this.context,this.state);this.enterRule(t,214,e.RULE_import_stmt);try{this.enterOuterAlt(t,1),this.state=1962,this.match(e.IMPORT),this.state=1963,this.module_path(),this.state=1964,this.match(e.SYMBOLS),this.state=1965,this.named_bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}export_stmt(){let t=new ar(this.context,this.state);this.enterRule(t,216,e.RULE_export_stmt);try{this.enterOuterAlt(t,1),this.state=1967,this.match(e.EXPORT),this.state=1968,this.bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}call_action(){let t,i=new cr(this.context,this.state);this.enterRule(i,218,e.RULE_call_action);try{switch(this.enterOuterAlt(i,1),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1970,this.bind_parameter();break;case e.EMPTY_ACTION:this.state=1971,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}this.state=1974,this.match(e.LPAREN),this.state=1976,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1975,this.expr_list()),this.state=1978,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}inline_action(){let t=new lr(this.context,this.state);this.enterRule(t,220,e.RULE_inline_action);try{this.enterOuterAlt(t,1),this.state=1980,this.match(e.BEGIN),this.state=1981,this.define_action_or_subquery_body(),this.state=1982,this.match(e.END),this.state=1983,this.match(e.DO)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}do_stmt(){let t=new hr(this.context,this.state);this.enterRule(t,222,e.RULE_do_stmt);try{switch(this.enterOuterAlt(t,1),this.state=1985,this.match(e.DO),this.state=1988,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.EMPTY_ACTION:this.state=1986,this.call_action();break;case e.BEGIN:this.state=1987,this.inline_action();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pragma_stmt(){let t,i=new dr(this.context,this.state);this.enterRule(i,224,e.RULE_pragma_stmt);try{switch(this.enterOuterAlt(i,1),this.state=1990,this.match(e.PRAGMA),this.state=1991,this.opt_id_prefix_or_type(),this.state=1992,this.an_id(),this.state=2006,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1993,this.match(e.EQUALS),this.state=1994,this.pragma_value();break;case e.LPAREN:for(this.state=1995,this.match(e.LPAREN),this.state=1996,this.pragma_value(),this.state=2001,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1997,this.match(e.COMMA),this.state=1998,this.pragma_value(),this.state=2003,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2004,this.match(e.RPAREN);case e.EOF:case e.SEMICOLON:case e.END:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pragma_value(){let t=new ur(this.context,this.state);this.enterRule(t,226,e.RULE_pragma_value);try{switch(this.state=2013,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PLUS:case e.MINUS:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:this.enterOuterAlt(t,1),this.state=2008,this.signed_number();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=2009,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2010,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2011,this.bool_value();break;case e.DOLLAR:this.enterOuterAlt(t,5),this.state=2012,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sort_specification(){let t,i=new gr(this.context,this.state);this.enterRule(i,228,e.RULE_sort_specification);try{this.enterOuterAlt(i,1),this.state=2015,this.expr(),this.state=2017,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=2016,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sort_specification_list(){let t,i=new pr(this.context,this.state);this.enterRule(i,230,e.RULE_sort_specification_list);try{for(this.enterOuterAlt(i,1),this.state=2019,this.sort_specification(),this.state=2024,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2020,this.match(e.COMMA),this.state=2021,this.sort_specification(),this.state=2026,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_stmt(){let t,i=new mr(this.context,this.state);this.enterRule(i,232,e.RULE_select_stmt);try{for(this.enterOuterAlt(i,1),this.state=2027,this.select_kind_parenthesis(),this.state=2033,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2028,this.select_op(),this.state=2029,this.select_kind_parenthesis(),this.state=2035,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_unparenthesized_stmt(){let t,i=new fr(this.context,this.state);this.enterRule(i,234,e.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(i,1),this.state=2036,this.select_kind_partial(),this.state=2042,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2037,this.select_op(),this.state=2038,this.select_kind_parenthesis(),this.state=2044,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_parenthesis(){let t=new _r(this.context,this.state);this.enterRule(t,236,e.RULE_select_kind_parenthesis);try{switch(this.state=2050,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,1),this.state=2045,this.select_kind_partial();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2046,this.match(e.LPAREN),this.state=2047,this.select_kind_partial(),this.state=2048,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}select_op(){let t,i=new vr(this.context,this.state);this.enterRule(i,238,e.RULE_select_op);try{switch(this.state=2058,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.UNION:this.enterOuterAlt(i,1),this.state=2052,this.match(e.UNION),this.state=2054,this.errorHandler.sync(this),t=this.tokenStream.LA(1),42===t&&(this.state=2053,this.match(e.ALL));break;case e.INTERSECT:this.enterOuterAlt(i,2),this.state=2056,this.match(e.INTERSECT);break;case e.EXCEPT:this.enterOuterAlt(i,3),this.state=2057,this.match(e.EXCEPT);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_partial(){let t,i=new Cr(this.context,this.state);this.enterRule(i,240,e.RULE_select_kind_partial);try{this.enterOuterAlt(i,1),this.state=2060,this.select_kind(),this.state=2067,this.errorHandler.sync(this),t=this.tokenStream.LA(1),182===t&&(this.state=2061,this.match(e.LIMIT),this.state=2062,this.expr(),this.state=2065,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(24===t||205===t)&&(this.state=2063,t=this.tokenStream.LA(1),24===t||205===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2064,this.expr()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind(){let t,i=new Er(this.context,this.state);this.enterRule(i,242,e.RULE_select_kind);try{switch(this.enterOuterAlt(i,1),this.state=2070,this.errorHandler.sync(this),t=this.tokenStream.LA(1),108===t&&(this.state=2069,this.match(e.DISCARD)),this.state=2075,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PROCESS:this.state=2072,this.process_core();break;case e.REDUCE:this.state=2073,this.reduce_core();break;case e.FROM:case e.SELECT:this.state=2074,this.select_core();break;default:throw new lt(this)}this.state=2080,this.errorHandler.sync(this),t=this.tokenStream.LA(1),170===t&&(this.state=2077,this.match(e.INTO),this.state=2078,this.match(e.RESULT),this.state=2079,this.pure_column_or_named())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}process_core(){let t,i=new br(this.context,this.state);this.enterRule(i,244,e.RULE_process_core);try{if(this.enterOuterAlt(i,1),1===(this.state=2082,this.match(e.PROCESS),this.state=2084,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2083,this.match(e.STREAM);for(this.state=2086,this.named_single_source(),this.state=2091,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2087,this.match(e.COMMA),this.state=2088,this.named_single_source(),this.state=2093,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2094,this.match(e.USING),this.state=2095,this.using_call_expr(),this.state=2098,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2096,this.match(e.AS),this.state=2097,this.an_id()),this.state=2102,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2100,this.match(e.WITH),this.state=2101,this.external_call_settings()),this.state=2105,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2104,this.where_expr()),this.state=2109,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2107,this.match(e.HAVING),this.state=2108,this.expr()),this.state=2113,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2111,this.match(e.ASSUME),this.state=2112,this.order_by_clause()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}external_call_param(){let t=new Sr(this.context,this.state);this.enterRule(t,246,e.RULE_external_call_param);try{this.enterOuterAlt(t,1),this.state=2117,this.an_id(),this.state=2118,this.match(e.EQUALS),this.state=2119,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}external_call_settings(){let t,i=new yr(this.context,this.state);this.enterRule(i,248,e.RULE_external_call_settings);try{for(this.enterOuterAlt(i,1),this.state=2121,this.external_call_param(),this.state=2126,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2122,this.match(e.COMMA),this.state=2123,this.external_call_param(),this.state=2128,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}reduce_core(){let t,i=new wr(this.context,this.state);this.enterRule(i,250,e.RULE_reduce_core);try{for(this.enterOuterAlt(i,1),this.state=2129,this.match(e.REDUCE),this.state=2130,this.named_single_source(),this.state=2135,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2131,this.match(e.COMMA),this.state=2132,this.named_single_source(),this.state=2137,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(1===(this.state=2140,this.errorHandler.sync(this),t=this.tokenStream.LA(1),229===t&&(this.state=2138,this.match(e.PRESORT),this.state=2139,this.sort_specification_list()),this.state=2142,this.match(e.ON),this.state=2143,this.column_list(),this.state=2144,this.match(e.USING),this.state=2146,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2145,this.match(e.ALL);this.state=2148,this.using_call_expr(),this.state=2151,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2149,this.match(e.AS),this.state=2150,this.an_id()),this.state=2154,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2153,this.where_expr()),this.state=2158,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2156,this.match(e.HAVING),this.state=2157,this.expr()),this.state=2162,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2160,this.match(e.ASSUME),this.state=2161,this.order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}opt_set_quantifier(){let t,i=new Rr(this.context,this.state);this.enterRule(i,252,e.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(i,1),this.state=2165,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2164,t=this.tokenStream.LA(1),42===t||109===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_core(){let t,i=new Lr(this.context,this.state);this.enterRule(i,254,e.RULE_select_core);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=2169,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2167,this.match(e.FROM),this.state=2168,this.join_source()),this.state=2171,this.match(e.SELECT),this.state=2173,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2172,this.match(e.STREAM);for(this.state=2175,this.opt_set_quantifier(),this.state=2176,this.result_column(),this.state=2181,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2177,this.match(e.COMMA),this.state=2178,this.result_column()),this.state=2183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2185,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2184,this.match(e.COMMA)),this.state=2189,this.errorHandler.sync(this),t=this.tokenStream.LA(1),323===t&&(this.state=2187,this.match(e.WITHOUT),this.state=2188,this.without_column_list()),this.state=2193,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2191,this.match(e.FROM),this.state=2192,this.join_source()),this.state=2196,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2195,this.where_expr()),this.state=2199,this.errorHandler.sync(this),t=this.tokenStream.LA(1),147===t&&(this.state=2198,this.group_by_clause()),this.state=2203,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2201,this.match(e.HAVING),this.state=2202,this.expr()),this.state=2206,this.errorHandler.sync(this),t=this.tokenStream.LA(1),321===t&&(this.state=2205,this.window_clause()),this.state=2209,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(51===t||213===t)&&(this.state=2208,this.ext_order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_recognition_clause(){let t,i=new Tr(this.context,this.state);this.enterRule(i,256,e.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(i,1),this.state=2211,this.match(e.MATCH_RECOGNIZE),this.state=2212,this.match(e.LPAREN),this.state=2214,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2213,this.window_partition_clause()),this.state=2217,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=2216,this.order_by_clause()),this.state=2220,this.errorHandler.sync(this),t=this.tokenStream.LA(1),190===t&&(this.state=2219,this.row_pattern_measures()),this.state=2223,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(42===t||208===t)&&(this.state=2222,this.row_pattern_rows_per_match()),this.state=2225,this.row_pattern_common_syntax(),this.state=2226,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_rows_per_match(){let t,i=new xr(this.context,this.state);this.enterRule(i,258,e.RULE_row_pattern_rows_per_match);try{switch(this.state=2239,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ONE:this.enterOuterAlt(i,1),this.state=2228,this.match(e.ONE),this.state=2229,this.match(e.ROW),this.state=2230,this.match(e.PER),this.state=2231,this.match(e.MATCH);break;case e.ALL:this.enterOuterAlt(i,2),this.state=2232,this.match(e.ALL),this.state=2233,this.match(e.ROWS),this.state=2234,this.match(e.PER),this.state=2235,this.match(e.MATCH),this.state=2237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(206===t||273===t||322===t)&&(this.state=2236,this.row_pattern_empty_match_handling());break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_empty_match_handling(){let t=new kr(this.context,this.state);this.enterRule(t,260,e.RULE_row_pattern_empty_match_handling);try{switch(this.state=2250,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SHOW:this.enterOuterAlt(t,1),this.state=2241,this.match(e.SHOW),this.state=2242,this.match(e.EMPTY),this.state=2243,this.match(e.MATCHES);break;case e.OMIT:this.enterOuterAlt(t,2),this.state=2244,this.match(e.OMIT),this.state=2245,this.match(e.EMPTY),this.state=2246,this.match(e.MATCHES);break;case e.WITH:this.enterOuterAlt(t,3),this.state=2247,this.match(e.WITH),this.state=2248,this.match(e.UNMATCHED),this.state=2249,this.match(e.ROWS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measures(){let t=new Ar(this.context,this.state);this.enterRule(t,262,e.RULE_row_pattern_measures);try{this.enterOuterAlt(t,1),this.state=2252,this.match(e.MEASURES),this.state=2253,this.row_pattern_measure_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measure_list(){let t,i=new Nr(this.context,this.state);this.enterRule(i,264,e.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(i,1),this.state=2255,this.row_pattern_measure_definition(),this.state=2260,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2256,this.match(e.COMMA),this.state=2257,this.row_pattern_measure_definition(),this.state=2262,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_measure_definition(){let t=new Ir(this.context,this.state);this.enterRule(t,266,e.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(t,1),this.state=2263,this.expr(),this.state=2264,this.match(e.AS),this.state=2265,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_common_syntax(){let t,i=new Or(this.context,this.state);this.enterRule(i,268,e.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(i,1),this.state=2270,this.errorHandler.sync(this),t=this.tokenStream.LA(1),41===t&&(this.state=2267,this.match(e.AFTER),this.state=2268,this.match(e.MATCH),this.state=2269,this.row_pattern_skip_to()),this.state=2273,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(164===t||268===t)&&(this.state=2272,this.row_pattern_initial_or_seek()),this.state=2275,this.match(e.PATTERN),this.state=2276,this.match(e.LPAREN),this.state=2277,this.row_pattern(),this.state=2278,this.match(e.RPAREN),this.state=2280,this.errorHandler.sync(this),t=this.tokenStream.LA(1),281===t&&(this.state=2279,this.row_pattern_subset_clause()),this.state=2282,this.match(e.DEFINE),this.state=2283,this.row_pattern_definition_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_skip_to(){let t=new Dr(this.context,this.state);this.enterRule(t,270,e.RULE_row_pattern_skip_to);try{switch(this.state=2304,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2285,this.match(e.TSKIP),this.state=2286,this.match(e.TO),this.state=2287,this.match(e.NEXT),this.state=2288,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=2289,this.match(e.TSKIP),this.state=2290,this.match(e.PAST),this.state=2291,this.match(e.LAST),this.state=2292,this.match(e.ROW);break;case 3:this.enterOuterAlt(t,3),this.state=2293,this.match(e.TSKIP),this.state=2294,this.match(e.TO),this.state=2295,this.match(e.FIRST),this.state=2296,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(t,4),this.state=2297,this.match(e.TSKIP),this.state=2298,this.match(e.TO),this.state=2299,this.match(e.LAST),this.state=2300,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(t,5),this.state=2301,this.match(e.TSKIP),this.state=2302,this.match(e.TO),this.state=2303,this.row_pattern_skip_to_variable_name()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_skip_to_variable_name(){let t=new Mr(this.context,this.state);this.enterRule(t,272,e.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(t,1),this.state=2306,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_initial_or_seek(){let t,i=new Pr(this.context,this.state);this.enterRule(i,274,e.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(i,1),this.state=2308,t=this.tokenStream.LA(1),164===t||268===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern(){let t,i=new Fr(this.context,this.state);this.enterRule(i,276,e.RULE_row_pattern);try{for(this.enterOuterAlt(i,1),this.state=2310,this.row_pattern_term(),this.state=2315,this.errorHandler.sync(this),t=this.tokenStream.LA(1);12===t;)this.state=2311,this.match(e.PIPE),this.state=2312,this.row_pattern_term(),this.state=2317,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_term(){let t,i=new Ur(this.context,this.state);this.enterRule(i,278,e.RULE_row_pattern_term);try{this.enterOuterAlt(i,1),this.state=2319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=2318,this.row_pattern_factor(),this.state=2321,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_factor(){let t=new Hr(this.context,this.state);this.enterRule(t,280,e.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(t,1),this.state=2323,this.row_pattern_primary(),this.state=2325,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2324,this.row_pattern_quantifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_quantifier(){let t,i=new Br(this.context,this.state);this.enterRule(i,282,e.RULE_row_pattern_quantifier);try{switch(this.state=2355,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(i,1),this.state=2327,this.match(e.ASTERISK),this.state=2329,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2328,this.match(e.QUESTION));break;case 2:this.enterOuterAlt(i,2),this.state=2331,this.match(e.PLUS),this.state=2333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2332,this.match(e.QUESTION));break;case 3:this.enterOuterAlt(i,3),this.state=2335,this.match(e.QUESTION),this.state=2337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2336,this.match(e.QUESTION));break;case 4:this.enterOuterAlt(i,4),this.state=2339,this.match(e.LBRACE_CURLY),this.state=2341,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2340,this.integer()),this.state=2343,this.match(e.COMMA),this.state=2345,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2344,this.integer()),this.state=2347,this.match(e.RBRACE_CURLY),this.state=2349,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2348,this.match(e.QUESTION));break;case 5:this.enterOuterAlt(i,5),this.state=2351,this.match(e.LBRACE_CURLY),this.state=2352,this.integer(),this.state=2353,this.match(e.RBRACE_CURLY)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary(){let t,i=new Wr(this.context,this.state);this.enterRule(i,284,e.RULE_row_pattern_primary);try{switch(this.state=2372,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2357,this.row_pattern_primary_variable_name();break;case e.DOLLAR:this.enterOuterAlt(i,2),this.state=2358,this.match(e.DOLLAR);break;case e.CARET:this.enterOuterAlt(i,3),this.state=2359,this.match(e.CARET);break;case e.LPAREN:this.enterOuterAlt(i,4),this.state=2360,this.match(e.LPAREN),this.state=2362,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)&&(this.state=2361,this.row_pattern()),this.state=2364,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.enterOuterAlt(i,5),this.state=2365,this.match(e.LBRACE_CURLY),this.state=2366,this.match(e.MINUS),this.state=2367,this.row_pattern(),this.state=2368,this.match(e.MINUS),this.state=2369,this.match(e.RBRACE_CURLY);break;case e.PERMUTE:this.enterOuterAlt(i,6),this.state=2371,this.row_pattern_permute();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary_variable_name(){let t=new Vr(this.context,this.state);this.enterRule(t,286,e.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(t,1),this.state=2374,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_permute(){let t,i=new zr(this.context,this.state);this.enterRule(i,288,e.RULE_row_pattern_permute);try{for(this.enterOuterAlt(i,1),this.state=2376,this.match(e.PERMUTE),this.state=2377,this.match(e.LPAREN),this.state=2378,this.row_pattern(),this.state=2383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2379,this.match(e.COMMA),this.state=2380,this.row_pattern(),this.state=2385,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2386,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_clause(){let t=new Gr(this.context,this.state);this.enterRule(t,290,e.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(t,1),this.state=2388,this.match(e.SUBSET),this.state=2389,this.row_pattern_subset_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_list(){let t,i=new jr(this.context,this.state);this.enterRule(i,292,e.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(i,1),this.state=2391,this.row_pattern_subset_item(),this.state=2396,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2392,this.match(e.COMMA),this.state=2393,this.row_pattern_subset_item(),this.state=2398,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_item(){let t=new Kr(this.context,this.state);this.enterRule(t,294,e.RULE_row_pattern_subset_item);try{this.enterOuterAlt(t,1),this.state=2399,this.row_pattern_subset_item_variable_name(),this.state=2400,this.match(e.EQUALS),this.state=2401,this.match(e.LPAREN),this.state=2402,this.row_pattern_subset_rhs(),this.state=2403,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_item_variable_name(){let t=new Yr(this.context,this.state);this.enterRule(t,296,e.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(t,1),this.state=2405,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_rhs(){let t,i=new qr(this.context,this.state);this.enterRule(i,298,e.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(i,1),this.state=2407,this.row_pattern_subset_rhs_variable_name(),this.state=2412,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2408,this.match(e.COMMA),this.state=2409,this.row_pattern_subset_rhs_variable_name(),this.state=2414,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_rhs_variable_name(){let t=new $r(this.context,this.state);this.enterRule(t,300,e.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(t,1),this.state=2415,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_list(){let t,i=new Qr(this.context,this.state);this.enterRule(i,302,e.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(i,1),this.state=2417,this.row_pattern_definition(),this.state=2422,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2418,this.match(e.COMMA),this.state=2419,this.row_pattern_definition(),this.state=2424,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_definition(){let t=new Xr(this.context,this.state);this.enterRule(t,304,e.RULE_row_pattern_definition);try{this.enterOuterAlt(t,1),this.state=2425,this.row_pattern_definition_variable_name(),this.state=2426,this.match(e.AS),this.state=2427,this.row_pattern_definition_search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_variable_name(){let t=new Zr(this.context,this.state);this.enterRule(t,306,e.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(t,1),this.state=2429,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_search_condition(){let t=new Jr(this.context,this.state);this.enterRule(t,308,e.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(t,1),this.state=2431,this.search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}search_condition(){let t=new eo(this.context,this.state);this.enterRule(t,310,e.RULE_search_condition);try{this.enterOuterAlt(t,1),this.state=2433,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_variable_name(){let t=new to(this.context,this.state);this.enterRule(t,312,e.RULE_row_pattern_variable_name);try{this.enterOuterAlt(t,1),this.state=2435,this.identifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}order_by_clause(){let t=new io(this.context,this.state);this.enterRule(t,314,e.RULE_order_by_clause);try{this.enterOuterAlt(t,1),this.state=2437,this.match(e.ORDER),this.state=2438,this.match(e.BY),this.state=2439,this.sort_specification_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ext_order_by_clause(){let t,i=new so(this.context,this.state);this.enterRule(i,316,e.RULE_ext_order_by_clause);try{this.enterOuterAlt(i,1),this.state=2442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2441,this.match(e.ASSUME)),this.state=2444,this.order_by_clause()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}group_by_clause(){let t,i=new no(this.context,this.state);this.enterRule(i,318,e.RULE_group_by_clause);try{this.enterOuterAlt(i,1),this.state=2446,this.match(e.GROUP),this.state=2448,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=2447,this.match(e.COMPACT)),this.state=2450,this.match(e.BY),this.state=2451,this.opt_set_quantifier(),this.state=2452,this.grouping_element_list(),this.state=2455,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2453,this.match(e.WITH),this.state=2454,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element_list(){let t,i=new ro(this.context,this.state);this.enterRule(i,320,e.RULE_grouping_element_list);try{for(this.enterOuterAlt(i,1),this.state=2457,this.grouping_element(),this.state=2462,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2458,this.match(e.COMMA),this.state=2459,this.grouping_element(),this.state=2464,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element(){let t=new oo(this.context,this.state);this.enterRule(t,322,e.RULE_grouping_element);try{switch(this.state=2470,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2465,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(t,2),this.state=2466,this.rollup_list();break;case 3:this.enterOuterAlt(t,3),this.state=2467,this.cube_list();break;case 4:this.enterOuterAlt(t,4),this.state=2468,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(t,5),this.state=2469,this.hopping_window_specification()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set(){let t=new ao(this.context,this.state);this.enterRule(t,324,e.RULE_ordinary_grouping_set);try{this.enterOuterAlt(t,1),this.state=2472,this.named_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set_list(){let t,i=new co(this.context,this.state);this.enterRule(i,326,e.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(i,1),this.state=2474,this.ordinary_grouping_set(),this.state=2479,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2475,this.match(e.COMMA),this.state=2476,this.ordinary_grouping_set(),this.state=2481,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}rollup_list(){let t=new lo(this.context,this.state);this.enterRule(t,328,e.RULE_rollup_list);try{this.enterOuterAlt(t,1),this.state=2482,this.match(e.ROLLUP),this.state=2483,this.match(e.LPAREN),this.state=2484,this.ordinary_grouping_set_list(),this.state=2485,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cube_list(){let t=new ho(this.context,this.state);this.enterRule(t,330,e.RULE_cube_list);try{this.enterOuterAlt(t,1),this.state=2487,this.match(e.CUBE),this.state=2488,this.match(e.LPAREN),this.state=2489,this.ordinary_grouping_set_list(),this.state=2490,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}grouping_sets_specification(){let t=new uo(this.context,this.state);this.enterRule(t,332,e.RULE_grouping_sets_specification);try{this.enterOuterAlt(t,1),this.state=2492,this.match(e.GROUPING),this.state=2493,this.match(e.SETS),this.state=2494,this.match(e.LPAREN),this.state=2495,this.grouping_element_list(),this.state=2496,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}hopping_window_specification(){let t=new go(this.context,this.state);this.enterRule(t,334,e.RULE_hopping_window_specification);try{this.enterOuterAlt(t,1),this.state=2498,this.match(e.HOP),this.state=2499,this.match(e.LPAREN),this.state=2500,this.expr(),this.state=2501,this.match(e.COMMA),this.state=2502,this.expr(),this.state=2503,this.match(e.COMMA),this.state=2504,this.expr(),this.state=2505,this.match(e.COMMA),this.state=2506,this.expr(),this.state=2507,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}result_column(){let t=new po(this.context,this.state);this.enterRule(t,336,e.RULE_result_column);try{switch(this.state=2518,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2509,this.opt_id_prefix(),this.state=2510,this.match(e.ASTERISK);break;case 2:switch(this.enterOuterAlt(t,2),this.state=2512,this.expr(),this.state=2516,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2513,this.match(e.AS),this.state=2514,this.an_id_or_type();break;case 2:this.state=2515,this.an_id_as_compat()}}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_source(){let t,i=new mo(this.context,this.state);this.enterRule(i,338,e.RULE_join_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2520,this.match(e.ANY);for(this.state=2523,this.flatten_source(),this.state=2534,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t||87===t||125===t||142===t||!(t-166&-32)&&1<<t-166&536879233||215===t||258===t;){if(1===(this.state=2524,this.join_op(),this.state=2526,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2525,this.match(e.ANY);this.state=2528,this.flatten_source(),this.state=2530,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||313===t)&&(this.state=2529,this.join_constraint()),this.state=2536,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_column(){let t,i=new fo(this.context,this.state);this.enterRule(i,340,e.RULE_named_column);try{this.enterOuterAlt(i,1),this.state=2537,this.column_name(),this.state=2540,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2538,this.match(e.AS),this.state=2539,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_by_arg(){let t,i=new _o(this.context,this.state);this.enterRule(i,342,e.RULE_flatten_by_arg);try{switch(this.state=2550,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2542,this.named_column();break;case e.LPAREN:this.enterOuterAlt(i,2),this.state=2543,this.match(e.LPAREN),this.state=2544,this.named_expr_list(),this.state=2546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2545,this.match(e.COMMA)),this.state=2548,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_source(){let t,i=new vo(this.context,this.state);this.enterRule(i,344,e.RULE_flatten_source);try{if(this.enterOuterAlt(i,1),this.state=2552,this.named_single_source(),this.state=2562,this.errorHandler.sync(this),t=this.tokenStream.LA(1),136===t)switch(this.state=2553,this.match(e.FLATTEN),this.state=2560,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.BY:case e.DICT:case e.LIST:case e.OPTIONAL:this.state=2555,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(105===t||183===t||211===t)&&(this.state=2554,t=this.tokenStream.LA(1),105===t||183===t||211===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2557,this.match(e.BY),this.state=2558,this.flatten_by_arg();break;case e.COLUMNS:this.state=2559,this.match(e.COLUMNS);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_single_source(){let t,i=new Co(this.context,this.state);this.enterRule(i,346,e.RULE_named_single_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2564,this.single_source(),this.state=2566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2565,this.row_pattern_recognition_clause();if(1===(this.state=2576,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.AS:this.state=2568,this.match(e.AS),this.state=2569,this.an_id();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=2570,this.an_id_as_compat();break;default:throw new lt(this)}this.state=2574,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2573,this.pure_column_list())}switch(this.state=2580,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SAMPLE:this.state=2578,this.sample_clause();break;case e.TABLESAMPLE:this.state=2579,this.tablesample_clause();case e.EOF:case e.SEMICOLON:case e.COMMA:case e.RPAREN:case e.ASSUME:case e.CROSS:case e.END:case e.EXCEPT:case e.EXCLUSION:case e.FLATTEN:case e.FULL:case e.GROUP:case e.HAVING:case e.INNER:case e.INTERSECT:case e.INTO:case e.JOIN:case e.LEFT:case e.LIMIT:case e.NATURAL:case e.ON:case e.ORDER:case e.OUTER:case e.PRESORT:case e.RETURNING:case e.RIGHT:case e.SELECT:case e.UNION:case e.USING:case e.WHERE:case e.WINDOW:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}single_source(){let t=new Eo(this.context,this.state);this.enterRule(t,348,e.RULE_single_source);try{switch(this.state=2591,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2582,this.table_ref();break;case 2:this.enterOuterAlt(t,2),this.state=2583,this.match(e.LPAREN),this.state=2584,this.select_stmt(),this.state=2585,this.match(e.RPAREN);break;case 3:this.enterOuterAlt(t,3),this.state=2587,this.match(e.LPAREN),this.state=2588,this.values_stmt(),this.state=2589,this.match(e.RPAREN)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sample_clause(){let t=new bo(this.context,this.state);this.enterRule(t,350,e.RULE_sample_clause);try{this.enterOuterAlt(t,1),this.state=2593,this.match(e.SAMPLE),this.state=2594,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}tablesample_clause(){let t,i=new So(this.context,this.state);this.enterRule(i,352,e.RULE_tablesample_clause);try{this.enterOuterAlt(i,1),this.state=2596,this.match(e.TABLESAMPLE),this.state=2597,this.sampling_mode(),this.state=2598,this.match(e.LPAREN),this.state=2599,this.expr(),this.state=2600,this.match(e.RPAREN),this.state=2602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),244===t&&(this.state=2601,this.repeatable_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sampling_mode(){let t,i=new yo(this.context,this.state);this.enterRule(i,354,e.RULE_sampling_mode);try{this.enterOuterAlt(i,1),this.state=2604,t=this.tokenStream.LA(1),64===t||285===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}repeatable_clause(){let t=new wo(this.context,this.state);this.enterRule(t,356,e.RULE_repeatable_clause);try{this.enterOuterAlt(t,1),this.state=2606,this.match(e.REPEATABLE),this.state=2607,this.match(e.LPAREN),this.state=2608,this.expr(),this.state=2609,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_op(){let t,i=new Ro(this.context,this.state);this.enterRule(i,358,e.RULE_join_op);try{switch(this.state=2635,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.COMMA:this.enterOuterAlt(i,1),this.state=2611,this.match(e.COMMA);break;case e.CROSS:case e.EXCLUSION:case e.FULL:case e.INNER:case e.JOIN:case e.LEFT:case e.NATURAL:case e.OUTER:case e.RIGHT:switch(this.enterOuterAlt(i,2),this.state=2613,this.errorHandler.sync(this),t=this.tokenStream.LA(1),195===t&&(this.state=2612,this.match(e.NATURAL)),this.state=2632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EXCLUSION:case e.FULL:case e.JOIN:case e.LEFT:case e.OUTER:case e.RIGHT:switch(this.state=2625,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LEFT:this.state=2615,this.match(e.LEFT),this.state=2617,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2616,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.RIGHT:this.state=2619,this.match(e.RIGHT),this.state=2621,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2620,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.EXCLUSION:this.state=2623,this.match(e.EXCLUSION);break;case e.FULL:this.state=2624,this.match(e.FULL);case e.JOIN:case e.OUTER:}this.state=2628,this.errorHandler.sync(this),t=this.tokenStream.LA(1),215===t&&(this.state=2627,this.match(e.OUTER));break;case e.INNER:this.state=2630,this.match(e.INNER);break;case e.CROSS:this.state=2631,this.match(e.CROSS);break;default:throw new lt(this)}this.state=2634,this.match(e.JOIN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}join_constraint(){let t=new Lo(this.context,this.state);this.enterRule(t,360,e.RULE_join_constraint);try{switch(this.state=2641,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ON:this.enterOuterAlt(t,1),this.state=2637,this.match(e.ON),this.state=2638,this.expr();break;case e.USING:this.enterOuterAlt(t,2),this.state=2639,this.match(e.USING),this.state=2640,this.pure_column_or_named_list();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}returning_columns_list(){let t,i=new To(this.context,this.state);this.enterRule(i,362,e.RULE_returning_columns_list);try{switch(this.enterOuterAlt(i,1),this.state=2643,this.match(e.RETURNING),this.state=2653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ASTERISK:this.state=2644,this.match(e.ASTERISK);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:for(this.state=2645,this.an_id(),this.state=2650,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2646,this.match(e.COMMA),this.state=2647,this.an_id(),this.state=2652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt(){let t,i=new xo(this.context,this.state);this.enterRule(i,364,e.RULE_into_table_stmt);try{switch(this.enterOuterAlt(i,1),this.state=2667,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2655,this.match(e.INSERT);break;case 2:this.state=2656,this.match(e.INSERT),this.state=2657,this.match(e.OR),this.state=2658,this.match(e.ABORT);break;case 3:this.state=2659,this.match(e.INSERT),this.state=2660,this.match(e.OR),this.state=2661,this.match(e.REVERT);break;case 4:this.state=2662,this.match(e.INSERT),this.state=2663,this.match(e.OR),this.state=2664,this.match(e.IGNORE);break;case 5:this.state=2665,this.match(e.UPSERT);break;case 6:this.state=2666,this.match(e.REPLACE)}this.state=2669,this.match(e.INTO),this.state=2670,this.into_simple_table_ref(),this.state=2671,this.into_values_source(),this.state=2673,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=2672,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt_yq(){let t=new ko(this.context,this.state);this.enterRule(t,366,e.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(t,1),this.state=2686,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2675,this.match(e.INSERT);break;case 2:this.state=2676,this.match(e.INSERT),this.state=2677,this.match(e.OR),this.state=2678,this.match(e.ABORT);break;case 3:this.state=2679,this.match(e.INSERT),this.state=2680,this.match(e.OR),this.state=2681,this.match(e.REVERT);break;case 4:this.state=2682,this.match(e.INSERT),this.state=2683,this.match(e.OR),this.state=2684,this.match(e.IGNORE);break;case 5:this.state=2685,this.match(e.REPLACE)}this.state=2688,this.match(e.INTO),this.state=2689,this.into_simple_table_ref(),this.state=2690,this.into_values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}into_values_source(){let t=new Ao(this.context,this.state);this.enterRule(t,368,e.RULE_into_values_source);try{switch(this.state=2698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:case e.VALUES:if(this.enterOuterAlt(t,1),1===(this.state=2693,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2692,this.pure_column_list();this.state=2695,this.values_source();break;case e.DEFAULT:this.enterOuterAlt(t,2),this.state=2696,this.match(e.DEFAULT),this.state=2697,this.match(e.VALUES);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_stmt(){let t=new No(this.context,this.state);this.enterRule(t,370,e.RULE_values_stmt);try{this.enterOuterAlt(t,1),this.state=2700,this.match(e.VALUES),this.state=2701,this.values_source_row_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source(){let t=new Io(this.context,this.state);this.enterRule(t,372,e.RULE_values_source);try{switch(this.state=2705,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VALUES:this.enterOuterAlt(t,1),this.state=2703,this.values_stmt();break;case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,2),this.state=2704,this.select_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source_row_list(){let t,i=new Oo(this.context,this.state);this.enterRule(i,374,e.RULE_values_source_row_list);try{for(this.enterOuterAlt(i,1),this.state=2707,this.values_source_row(),this.state=2712,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2708,this.match(e.COMMA),this.state=2709,this.values_source_row(),this.state=2714,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}values_source_row(){let t=new Do(this.context,this.state);this.enterRule(t,376,e.RULE_values_source_row);try{this.enterOuterAlt(t,1),this.state=2715,this.match(e.LPAREN),this.state=2716,this.expr_list(),this.state=2717,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_values_source(){let t=new Mo(this.context,this.state);this.enterRule(t,378,e.RULE_simple_values_source);try{switch(this.state=2721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2719,this.expr_list();break;case 2:this.enterOuterAlt(t,2),this.state=2720,this.select_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_external_data_source_stmt(){let t,i=new Po(this.context,this.state);this.enterRule(i,380,e.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2723,this.match(e.CREATE),this.state=2726,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2724,this.match(e.OR),this.state=2725,this.match(e.REPLACE)),this.state=2728,this.match(e.EXTERNAL),this.state=2729,this.match(e.DATA),this.state=2730,this.match(e.SOURCE),this.state=2734,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2731,this.match(e.IF),this.state=2732,this.match(e.NOT),this.state=2733,this.match(e.EXISTS);this.state=2736,this.object_ref(),this.state=2737,this.with_table_settings()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_stmt(){let t,i=new Fo(this.context,this.state);this.enterRule(i,382,e.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(i,1),this.state=2739,this.match(e.ALTER),this.state=2740,this.match(e.EXTERNAL),this.state=2741,this.match(e.DATA),this.state=2742,this.match(e.SOURCE),this.state=2743,this.object_ref(),this.state=2744,this.alter_external_data_source_action(),this.state=2749,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2745,this.match(e.COMMA),this.state=2746,this.alter_external_data_source_action(),this.state=2751,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_action(){let t=new Uo(this.context,this.state);this.enterRule(t,384,e.RULE_alter_external_data_source_action);try{switch(this.state=2755,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2752,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=2753,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=2754,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_external_data_source_stmt(){let t=new Ho(this.context,this.state);this.enterRule(t,386,e.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2757,this.match(e.DROP),this.state=2758,this.match(e.EXTERNAL),this.state=2759,this.match(e.DATA),this.state=2760,this.match(e.SOURCE),this.state=2763,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2761,this.match(e.IF),this.state=2762,this.match(e.EXISTS);this.state=2765,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_view_stmt(){let t,i=new Bo(this.context,this.state);this.enterRule(i,388,e.RULE_create_view_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2767,this.match(e.CREATE),this.state=2768,this.match(e.VIEW),this.state=2772,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2769,this.match(e.IF),this.state=2770,this.match(e.NOT),this.state=2771,this.match(e.EXISTS);this.state=2774,this.object_ref(),this.state=2776,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2775,this.create_object_features()),this.state=2778,this.match(e.AS),this.state=2779,this.select_stmt()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_view_stmt(){let t=new Wo(this.context,this.state);this.enterRule(t,390,e.RULE_drop_view_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2781,this.match(e.DROP),this.state=2782,this.match(e.VIEW),this.state=2785,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2783,this.match(e.IF),this.state=2784,this.match(e.EXISTS);this.state=2787,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}upsert_object_stmt(){let t,i=new Vo(this.context,this.state);this.enterRule(i,392,e.RULE_upsert_object_stmt);try{this.enterOuterAlt(i,1),this.state=2789,this.match(e.UPSERT),this.state=2790,this.match(e.OBJECT),this.state=2791,this.object_ref(),this.state=2792,this.match(e.LPAREN),this.state=2793,this.match(e.TYPE),this.state=2794,this.object_type_ref(),this.state=2795,this.match(e.RPAREN),this.state=2797,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2796,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_stmt(){let t,i=new zo(this.context,this.state);this.enterRule(i,394,e.RULE_create_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2799,this.match(e.CREATE),this.state=2800,this.match(e.OBJECT),this.state=2804,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2801,this.match(e.IF),this.state=2802,this.match(e.NOT),this.state=2803,this.match(e.EXISTS);this.state=2806,this.object_ref(),this.state=2807,this.match(e.LPAREN),this.state=2808,this.match(e.TYPE),this.state=2809,this.object_type_ref(),this.state=2810,this.match(e.RPAREN),this.state=2812,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2811,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_features(){let t=new Go(this.context,this.state);this.enterRule(t,396,e.RULE_create_object_features);try{this.enterOuterAlt(t,1),this.state=2814,this.match(e.WITH),this.state=2815,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_stmt(){let t=new jo(this.context,this.state);this.enterRule(t,398,e.RULE_alter_object_stmt);try{this.enterOuterAlt(t,1),this.state=2817,this.match(e.ALTER),this.state=2818,this.match(e.OBJECT),this.state=2819,this.object_ref(),this.state=2820,this.match(e.LPAREN),this.state=2821,this.match(e.TYPE),this.state=2822,this.object_type_ref(),this.state=2823,this.match(e.RPAREN),this.state=2824,this.alter_object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_features(){let t=new Ko(this.context,this.state);this.enterRule(t,400,e.RULE_alter_object_features);try{this.enterOuterAlt(t,1),this.state=2826,this.match(e.SET),this.state=2827,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_object_stmt(){let t,i=new Yo(this.context,this.state);this.enterRule(i,402,e.RULE_drop_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2829,this.match(e.DROP),this.state=2830,this.match(e.OBJECT),this.state=2833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2831,this.match(e.IF),this.state=2832,this.match(e.EXISTS);this.state=2835,this.object_ref(),this.state=2836,this.match(e.LPAREN),this.state=2837,this.match(e.TYPE),this.state=2838,this.object_type_ref(),this.state=2839,this.match(e.RPAREN),this.state=2841,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2840,this.drop_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_object_features(){let t=new qo(this.context,this.state);this.enterRule(t,404,e.RULE_drop_object_features);try{this.enterOuterAlt(t,1),this.state=2843,this.match(e.WITH),this.state=2844,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_value(){let t=new $o(this.context,this.state);this.enterRule(t,406,e.RULE_object_feature_value);try{switch(this.state=2850,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=2846,this.id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=2847,this.bind_parameter();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2848,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2849,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_kv(){let t=new Qo(this.context,this.state);this.enterRule(t,408,e.RULE_object_feature_kv);try{this.enterOuterAlt(t,1),this.state=2852,this.an_id_or_type(),this.state=2853,this.match(e.EQUALS),this.state=2854,this.object_feature_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_flag(){let t=new Xo(this.context,this.state);this.enterRule(t,410,e.RULE_object_feature_flag);try{this.enterOuterAlt(t,1),this.state=2856,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature(){let t=new Zo(this.context,this.state);this.enterRule(t,412,e.RULE_object_feature);try{switch(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2858,this.object_feature_kv();break;case 2:this.enterOuterAlt(t,2),this.state=2859,this.object_feature_flag()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_features(){let t,i=new Jo(this.context,this.state);this.enterRule(i,414,e.RULE_object_features);try{switch(this.state=2874,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2862,this.object_feature();break;case e.LPAREN:for(this.enterOuterAlt(i,2),this.state=2863,this.match(e.LPAREN),this.state=2864,this.object_feature(),this.state=2869,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2865,this.match(e.COMMA),this.state=2866,this.object_feature(),this.state=2871,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2872,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_type_ref(){let t=new ea(this.context,this.state);this.enterRule(t,416,e.RULE_object_type_ref);try{this.enterOuterAlt(t,1),this.state=2876,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_table_stmt(){let t,i=new ta(this.context,this.state);this.enterRule(i,418,e.RULE_create_table_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=2878,this.match(e.CREATE),this.state=2881,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2879,this.match(e.OR),this.state=2880,this.match(e.REPLACE)),this.state=2891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=2883,this.match(e.TABLE);break;case e.TABLESTORE:this.state=2884,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=2885,this.match(e.EXTERNAL),this.state=2886,this.match(e.TABLE);break;case e.TEMP:this.state=2887,this.match(e.TEMP),this.state=2888,this.match(e.TABLE);break;case e.TEMPORARY:this.state=2889,this.match(e.TEMPORARY),this.state=2890,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=2896,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2893,this.match(e.IF),this.state=2894,this.match(e.NOT),this.state=2895,this.match(e.EXISTS);for(this.state=2898,this.simple_table_ref(),this.state=2899,this.match(e.LPAREN),this.state=2900,this.create_table_entry(),this.state=2905,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2901,this.match(e.COMMA),this.state=2902,this.create_table_entry()),this.state=2907,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2909,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2908,this.match(e.COMMA)),this.state=2911,this.match(e.RPAREN),this.state=2913,this.errorHandler.sync(this),t=this.tokenStream.LA(1),163===t&&(this.state=2912,this.table_inherits()),this.state=2916,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2915,this.table_partition_by()),this.state=2919,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2918,this.with_table_settings()),this.state=2922,this.errorHandler.sync(this),t=this.tokenStream.LA(1),289===t&&(this.state=2921,this.table_tablestore()),this.state=2925,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2924,this.table_as_source())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_table_entry(){let t=new ia(this.context,this.state);this.enterRule(t,420,e.RULE_create_table_entry);try{switch(this.state=2933,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2927,this.column_schema();break;case 2:this.enterOuterAlt(t,2),this.state=2928,this.table_constraint();break;case 3:this.enterOuterAlt(t,3),this.state=2929,this.table_index();break;case 4:this.enterOuterAlt(t,4),this.state=2930,this.family_entry();break;case 5:this.enterOuterAlt(t,5),this.state=2931,this.changefeed();break;case 6:this.enterOuterAlt(t,6),this.state=2932,this.an_id_schema()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_stmt(){let t,i=new sa(this.context,this.state);this.enterRule(i,422,e.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(i,1),this.state=2935,this.match(e.CREATE),this.state=2936,this.backup_collection(),this.state=2938,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(25===t||94===t)&&(this.state=2937,this.create_backup_collection_entries()),this.state=2940,this.match(e.WITH),this.state=2941,this.match(e.LPAREN),this.state=2942,this.backup_collection_settings(),this.state=2943,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_stmt(){let t=new na(this.context,this.state);this.enterRule(t,424,e.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(t,1),this.state=2945,this.match(e.ALTER),this.state=2946,this.backup_collection(),this.state=2949,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESET:case e.SET:this.state=2947,this.alter_backup_collection_actions();break;case e.ADD:case e.DROP:this.state=2948,this.alter_backup_collection_entries();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_backup_collection_stmt(){let t=new ra(this.context,this.state);this.enterRule(t,426,e.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(t,1),this.state=2951,this.match(e.DROP),this.state=2952,this.backup_collection()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries(){let t=new oa(this.context,this.state);this.enterRule(t,428,e.RULE_create_backup_collection_entries);try{switch(this.state=2956,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DATABASE:this.enterOuterAlt(t,1),this.state=2954,this.match(e.DATABASE);break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2955,this.create_backup_collection_entries_many();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries_many(){let t=new aa(this.context,this.state);this.enterRule(t,430,e.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(t,1),this.state=2958,this.match(e.LPAREN),this.state=2959,this.table_list(),this.state=2960,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_list(){let t,i=new ca(this.context,this.state);this.enterRule(i,432,e.RULE_table_list);try{for(this.enterOuterAlt(i,1),this.state=2962,this.match(e.TABLE),this.state=2963,this.an_id_table(),this.state=2969,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2964,this.match(e.COMMA),this.state=2965,this.match(e.TABLE),this.state=2966,this.an_id_table(),this.state=2971,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_actions(){let t,i=new la(this.context,this.state);this.enterRule(i,434,e.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(i,1),this.state=2972,this.alter_backup_collection_action(),this.state=2977,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2973,this.match(e.COMMA),this.state=2974,this.alter_backup_collection_action(),this.state=2979,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_action(){let t=new ha(this.context,this.state);this.enterRule(t,436,e.RULE_alter_backup_collection_action);try{switch(this.state=2982,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=2980,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=2981,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_backup_collection_entries(){let t,i=new da(this.context,this.state);this.enterRule(i,438,e.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(i,1),this.state=2984,this.alter_backup_collection_entry(),this.state=2989,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2985,this.match(e.COMMA),this.state=2986,this.alter_backup_collection_entry(),this.state=2991,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_entry(){let t=new ua(this.context,this.state);this.enterRule(t,440,e.RULE_alter_backup_collection_entry);try{switch(this.state=3002,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2992,this.match(e.ADD),this.state=2993,this.match(e.DATABASE);break;case 2:this.enterOuterAlt(t,2),this.state=2994,this.match(e.DROP),this.state=2995,this.match(e.DATABASE);break;case 3:this.enterOuterAlt(t,3),this.state=2996,this.match(e.ADD),this.state=2997,this.match(e.TABLE),this.state=2998,this.an_id_table();break;case 4:this.enterOuterAlt(t,4),this.state=2999,this.match(e.DROP),this.state=3e3,this.match(e.TABLE),this.state=3001,this.an_id_table()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection(){let t=new ga(this.context,this.state);this.enterRule(t,442,e.RULE_backup_collection);try{this.enterOuterAlt(t,1),this.state=3004,this.match(e.BACKUP),this.state=3005,this.match(e.COLLECTION),this.state=3006,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection_settings(){let t,i=new pa(this.context,this.state);this.enterRule(i,444,e.RULE_backup_collection_settings);try{for(this.enterOuterAlt(i,1),this.state=3008,this.backup_collection_settings_entry(),this.state=3013,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3009,this.match(e.COMMA),this.state=3010,this.backup_collection_settings_entry(),this.state=3015,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}backup_collection_settings_entry(){let t=new ma(this.context,this.state);this.enterRule(t,446,e.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(t,1),this.state=3016,this.an_id(),this.state=3017,this.match(e.EQUALS),this.state=3018,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_stmt(){let t,i=new fa(this.context,this.state);this.enterRule(i,448,e.RULE_backup_stmt);try{this.enterOuterAlt(i,1),this.state=3020,this.match(e.BACKUP),this.state=3021,this.object_ref(),this.state=3023,this.errorHandler.sync(this),t=this.tokenStream.LA(1),160===t&&(this.state=3022,this.match(e.INCREMENTAL))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}restore_stmt(){let t,i=new _a(this.context,this.state);this.enterRule(i,450,e.RULE_restore_stmt);try{this.enterOuterAlt(i,1),this.state=3025,this.match(e.RESTORE),this.state=3026,this.object_ref(),this.state=3029,this.errorHandler.sync(this),t=this.tokenStream.LA(1),54===t&&(this.state=3027,this.match(e.AT),this.state=3028,this.match(e.STRING_VALUE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_inherits(){let t,i=new va(this.context,this.state);this.enterRule(i,452,e.RULE_table_inherits);try{for(this.enterOuterAlt(i,1),this.state=3031,this.match(e.INHERITS),this.state=3032,this.match(e.LPAREN),this.state=3033,this.simple_table_ref_core(),this.state=3038,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3034,this.match(e.COMMA),this.state=3035,this.simple_table_ref_core(),this.state=3040,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3041,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_partition_by(){let t=new Ca(this.context,this.state);this.enterRule(t,454,e.RULE_table_partition_by);try{this.enterOuterAlt(t,1),this.state=3043,this.match(e.PARTITION),this.state=3044,this.match(e.BY),this.state=3045,this.match(e.HASH),this.state=3046,this.pure_column_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_table_settings(){let t,i=new Ea(this.context,this.state);this.enterRule(i,456,e.RULE_with_table_settings);try{for(this.enterOuterAlt(i,1),this.state=3048,this.match(e.WITH),this.state=3049,this.match(e.LPAREN),this.state=3050,this.table_settings_entry(),this.state=3055,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3051,this.match(e.COMMA),this.state=3052,this.table_settings_entry(),this.state=3057,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3058,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_tablestore(){let t=new ba(this.context,this.state);this.enterRule(t,458,e.RULE_table_tablestore);try{this.enterOuterAlt(t,1),this.state=3060,this.match(e.TABLESTORE),this.state=3061,this.simple_table_ref_core()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_settings_entry(){let t=new Sa(this.context,this.state);this.enterRule(t,460,e.RULE_table_settings_entry);try{this.enterOuterAlt(t,1),this.state=3063,this.an_id(),this.state=3064,this.match(e.EQUALS),this.state=3065,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_as_source(){let t=new ya(this.context,this.state);this.enterRule(t,462,e.RULE_table_as_source);try{this.enterOuterAlt(t,1),this.state=3067,this.match(e.AS),this.state=3068,this.values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_stmt(){let t,i=new wa(this.context,this.state);this.enterRule(i,464,e.RULE_alter_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3070,this.match(e.ALTER),this.state=3071,this.match(e.TABLE),this.state=3072,this.simple_table_ref(),this.state=3073,this.alter_table_action(),this.state=3078,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3074,this.match(e.COMMA),this.state=3075,this.alter_table_action(),this.state=3080,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_action(){let t=new Ra(this.context,this.state);this.enterRule(t,466,e.RULE_alter_table_action);try{switch(this.state=3098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3081,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3082,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3083,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(t,4),this.state=3084,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(t,5),this.state=3085,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(t,6),this.state=3086,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(t,7),this.state=3087,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(t,8),this.state=3088,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(t,9),this.state=3089,this.alter_table_add_index();break;case 10:this.enterOuterAlt(t,10),this.state=3090,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(t,11),this.state=3091,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(t,12),this.state=3092,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(t,13),this.state=3093,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(t,14),this.state=3094,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(t,15),this.state=3095,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(t,16),this.state=3096,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(t,17),this.state=3097,this.alter_table_alter_column_drop_not_null()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_external_table_stmt(){let t,i=new La(this.context,this.state);this.enterRule(i,468,e.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3100,this.match(e.ALTER),this.state=3101,this.match(e.EXTERNAL),this.state=3102,this.match(e.TABLE),this.state=3103,this.simple_table_ref(),this.state=3104,this.alter_external_table_action(),this.state=3109,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3105,this.match(e.COMMA),this.state=3106,this.alter_external_table_action(),this.state=3111,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_table_action(){let t=new Ta(this.context,this.state);this.enterRule(t,470,e.RULE_alter_external_table_action);try{switch(this.state=3117,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3112,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3113,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3114,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(t,4),this.state=3115,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(t,5),this.state=3116,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_store_stmt(){let t,i=new xa(this.context,this.state);this.enterRule(i,472,e.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(i,1),this.state=3119,this.match(e.ALTER),this.state=3120,this.match(e.TABLESTORE),this.state=3121,this.object_ref(),this.state=3122,this.alter_table_store_action(),this.state=3127,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3123,this.match(e.COMMA),this.state=3124,this.alter_table_store_action(),this.state=3129,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_store_action(){let t=new ka(this.context,this.state);this.enterRule(t,474,e.RULE_alter_table_store_action);try{switch(this.state=3132,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=3130,this.alter_table_add_column();break;case e.DROP:this.enterOuterAlt(t,2),this.state=3131,this.alter_table_drop_column();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column(){let t,i=new Aa(this.context,this.state);this.enterRule(i,476,e.RULE_alter_table_add_column);try{this.enterOuterAlt(i,1),this.state=3134,this.match(e.ADD),this.state=3136,this.errorHandler.sync(this),t=this.tokenStream.LA(1),76===t&&(this.state=3135,this.match(e.COLUMN)),this.state=3138,this.column_schema()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_drop_column(){let t=new Na(this.context,this.state);this.enterRule(t,478,e.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(t,1),1===(this.state=3140,this.match(e.DROP),this.state=3142,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3141,this.match(e.COLUMN);this.state=3144,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column(){let t=new Ia(this.context,this.state);this.enterRule(t,480,e.RULE_alter_table_alter_column);try{this.enterOuterAlt(t,1),this.state=3146,this.match(e.ALTER),this.state=3147,this.match(e.COLUMN),this.state=3148,this.an_id(),this.state=3149,this.match(e.SET),this.state=3150,this.family_relation()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_drop_not_null(){let t=new Oa(this.context,this.state);this.enterRule(t,482,e.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(t,1),this.state=3152,this.match(e.ALTER),this.state=3153,this.match(e.COLUMN),this.state=3154,this.an_id(),this.state=3155,this.match(e.DROP),this.state=3156,this.match(e.NOT),this.state=3157,this.match(e.NULL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column_family(){let t=new Da(this.context,this.state);this.enterRule(t,484,e.RULE_alter_table_add_column_family);try{this.enterOuterAlt(t,1),this.state=3159,this.match(e.ADD),this.state=3160,this.family_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_family(){let t=new Ma(this.context,this.state);this.enterRule(t,486,e.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(t,1),this.state=3162,this.match(e.ALTER),this.state=3163,this.match(e.FAMILY),this.state=3164,this.an_id(),this.state=3165,this.match(e.SET),this.state=3166,this.an_id(),this.state=3167,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_uncompat(){let t=new Pa(this.context,this.state);this.enterRule(t,488,e.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(t,1),this.state=3169,this.match(e.SET),this.state=3170,this.an_id(),this.state=3171,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_compat(){let t,i=new Fa(this.context,this.state);this.enterRule(i,490,e.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(i,1),this.state=3173,this.match(e.SET),this.state=3174,this.match(e.LPAREN),this.state=3175,this.alter_table_setting_entry(),this.state=3180,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3176,this.match(e.COMMA),this.state=3177,this.alter_table_setting_entry(),this.state=3182,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3183,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_reset_table_setting(){let t,i=new Ua(this.context,this.state);this.enterRule(i,492,e.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(i,1),this.state=3185,this.match(e.RESET),this.state=3186,this.match(e.LPAREN),this.state=3187,this.an_id(),this.state=3192,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3188,this.match(e.COMMA),this.state=3189,this.an_id(),this.state=3194,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3195,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_add_index(){let t=new Ha(this.context,this.state);this.enterRule(t,494,e.RULE_alter_table_add_index);try{this.enterOuterAlt(t,1),this.state=3197,this.match(e.ADD),this.state=3198,this.table_index()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_index(){let t=new Ba(this.context,this.state);this.enterRule(t,496,e.RULE_alter_table_drop_index);try{this.enterOuterAlt(t,1),this.state=3200,this.match(e.DROP),this.state=3201,this.match(e.INDEX),this.state=3202,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_to(){let t=new Wa(this.context,this.state);this.enterRule(t,498,e.RULE_alter_table_rename_to);try{this.enterOuterAlt(t,1),this.state=3204,this.match(e.RENAME),this.state=3205,this.match(e.TO),this.state=3206,this.an_id_table()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_index_to(){let t=new Va(this.context,this.state);this.enterRule(t,500,e.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(t,1),this.state=3208,this.match(e.RENAME),this.state=3209,this.match(e.INDEX),this.state=3210,this.an_id(),this.state=3211,this.match(e.TO),this.state=3212,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_changefeed(){let t=new za(this.context,this.state);this.enterRule(t,502,e.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(t,1),this.state=3214,this.match(e.ADD),this.state=3215,this.changefeed()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_changefeed(){let t=new Ga(this.context,this.state);this.enterRule(t,504,e.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(t,1),this.state=3217,this.match(e.ALTER),this.state=3218,this.match(e.CHANGEFEED),this.state=3219,this.an_id(),this.state=3220,this.changefeed_alter_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_changefeed(){let t=new ja(this.context,this.state);this.enterRule(t,506,e.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(t,1),this.state=3222,this.match(e.DROP),this.state=3223,this.match(e.CHANGEFEED),this.state=3224,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_index(){let t=new Ka(this.context,this.state);this.enterRule(t,508,e.RULE_alter_table_alter_index);try{this.enterOuterAlt(t,1),this.state=3226,this.match(e.ALTER),this.state=3227,this.match(e.INDEX),this.state=3228,this.an_id(),this.state=3229,this.alter_table_alter_index_action()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_schema(){let t,i=new Ya(this.context,this.state);this.enterRule(i,510,e.RULE_column_schema);try{this.enterOuterAlt(i,1),this.state=3231,this.an_id_schema(),this.state=3232,this.type_name_or_bind(),this.state=3234,this.errorHandler.sync(this),t=this.tokenStream.LA(1),133===t&&(this.state=3233,this.family_relation()),this.state=3236,this.opt_column_constraints()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_relation(){let t=new qa(this.context,this.state);this.enterRule(t,512,e.RULE_family_relation);try{this.enterOuterAlt(t,1),this.state=3238,this.match(e.FAMILY),this.state=3239,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_column_constraints(){let t,i=new $a(this.context,this.state);this.enterRule(i,514,e.RULE_opt_column_constraints);try{this.enterOuterAlt(i,1),this.state=3245,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=3242,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=3241,this.match(e.NOT)),this.state=3244,this.match(e.NULL)),this.state=3249,this.errorHandler.sync(this),t=this.tokenStream.LA(1),97===t&&(this.state=3247,this.match(e.DEFAULT),this.state=3248,this.expr())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_order_by_specification(){let t,i=new Qa(this.context,this.state);this.enterRule(i,516,e.RULE_column_order_by_specification);try{this.enterOuterAlt(i,1),this.state=3251,this.an_id(),this.state=3253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=3252,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_constraint(){let t,i=new Xa(this.context,this.state);this.enterRule(i,518,e.RULE_table_constraint);try{switch(this.state=3294,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PRIMARY:for(this.enterOuterAlt(i,1),this.state=3255,this.match(e.PRIMARY),this.state=3256,this.match(e.KEY),this.state=3257,this.match(e.LPAREN),this.state=3258,this.an_id(),this.state=3263,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3259,this.match(e.COMMA),this.state=3260,this.an_id(),this.state=3265,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3266,this.match(e.RPAREN);break;case e.PARTITION:for(this.enterOuterAlt(i,2),this.state=3268,this.match(e.PARTITION),this.state=3269,this.match(e.BY),this.state=3270,this.match(e.LPAREN),this.state=3271,this.an_id(),this.state=3276,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3272,this.match(e.COMMA),this.state=3273,this.an_id(),this.state=3278,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3279,this.match(e.RPAREN);break;case e.ORDER:for(this.enterOuterAlt(i,3),this.state=3281,this.match(e.ORDER),this.state=3282,this.match(e.BY),this.state=3283,this.match(e.LPAREN),this.state=3284,this.column_order_by_specification(),this.state=3289,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3285,this.match(e.COMMA),this.state=3286,this.column_order_by_specification(),this.state=3291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3292,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index(){let t,i=new Za(this.context,this.state);this.enterRule(i,520,e.RULE_table_index);try{for(this.enterOuterAlt(i,1),this.state=3296,this.match(e.INDEX),this.state=3297,this.an_id(),this.state=3298,this.table_index_type(),this.state=3299,this.match(e.ON),this.state=3300,this.match(e.LPAREN),this.state=3301,this.an_id_schema(),this.state=3306,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3302,this.match(e.COMMA),this.state=3303,this.an_id_schema(),this.state=3308,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3309,this.match(e.RPAREN),this.state=3322,this.errorHandler.sync(this),t=this.tokenStream.LA(1),85===t){for(this.state=3310,this.match(e.COVER),this.state=3311,this.match(e.LPAREN),this.state=3312,this.an_id_schema(),this.state=3317,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3313,this.match(e.COMMA),this.state=3314,this.an_id_schema(),this.state=3319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3320,this.match(e.RPAREN)}this.state=3325,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3324,this.with_index_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index_type(){let t,i=new Ja(this.context,this.state);this.enterRule(i,522,e.RULE_table_index_type);try{switch(this.enterOuterAlt(i,1),this.state=3329,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.GLOBAL:this.state=3327,this.global_index();break;case e.LOCAL:this.state=3328,this.local_index();break;default:throw new lt(this)}this.state=3333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3331,this.match(e.USING),this.state=3332,this.index_subtype())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}global_index(){let t,i=new ec(this.context,this.state);this.enterRule(i,524,e.RULE_global_index);try{this.enterOuterAlt(i,1),this.state=3335,this.match(e.GLOBAL),this.state=3337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=3336,this.match(e.UNIQUE)),this.state=3340,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(53===t||284===t)&&(this.state=3339,t=this.tokenStream.LA(1),53===t||284===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}local_index(){let t=new tc(this.context,this.state);this.enterRule(t,526,e.RULE_local_index);try{this.enterOuterAlt(t,1),this.state=3342,this.match(e.LOCAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_subtype(){let t=new ic(this.context,this.state);this.enterRule(t,528,e.RULE_index_subtype);try{this.enterOuterAlt(t,1),this.state=3344,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_index_settings(){let t,i=new sc(this.context,this.state);this.enterRule(i,530,e.RULE_with_index_settings);try{let s;for(this.enterOuterAlt(i,1),this.state=3346,this.match(e.WITH),this.state=3347,this.match(e.LPAREN),this.state=3348,this.index_setting_entry(),this.state=3353,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3349,this.match(e.COMMA),this.state=3350,this.index_setting_entry()),this.state=3355,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3357,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3356,this.match(e.COMMA)),this.state=3359,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}index_setting_entry(){let t=new nc(this.context,this.state);this.enterRule(t,532,e.RULE_index_setting_entry);try{this.enterOuterAlt(t,1),this.state=3361,this.an_id(),this.state=3362,this.match(e.EQUALS),this.state=3363,this.index_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_setting_value(){let t=new rc(this.context,this.state);this.enterRule(t,534,e.RULE_index_setting_value);try{switch(this.state=3369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3365,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3366,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,3),this.state=3367,this.integer();break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=3368,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed(){let t=new oc(this.context,this.state);this.enterRule(t,536,e.RULE_changefeed);try{this.enterOuterAlt(t,1),this.state=3371,this.match(e.CHANGEFEED),this.state=3372,this.an_id(),this.state=3373,this.match(e.WITH),this.state=3374,this.match(e.LPAREN),this.state=3375,this.changefeed_settings(),this.state=3376,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_settings(){let t,i=new ac(this.context,this.state);this.enterRule(i,538,e.RULE_changefeed_settings);try{for(this.enterOuterAlt(i,1),this.state=3378,this.changefeed_settings_entry(),this.state=3383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3379,this.match(e.COMMA),this.state=3380,this.changefeed_settings_entry(),this.state=3385,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}changefeed_settings_entry(){let t=new cc(this.context,this.state);this.enterRule(t,540,e.RULE_changefeed_settings_entry);try{this.enterOuterAlt(t,1),this.state=3386,this.an_id(),this.state=3387,this.match(e.EQUALS),this.state=3388,this.changefeed_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_setting_value(){let t=new lc(this.context,this.state);this.enterRule(t,542,e.RULE_changefeed_setting_value);try{this.enterOuterAlt(t,1),this.state=3390,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_alter_settings(){let t=new hc(this.context,this.state);this.enterRule(t,544,e.RULE_changefeed_alter_settings);try{switch(this.state=3398,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISABLE:this.enterOuterAlt(t,1),this.state=3392,this.match(e.DISABLE);break;case e.SET:this.enterOuterAlt(t,2),this.state=3393,this.match(e.SET),this.state=3394,this.match(e.LPAREN),this.state=3395,this.changefeed_settings(),this.state=3396,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_setting_entry(){let t=new dc(this.context,this.state);this.enterRule(t,546,e.RULE_alter_table_setting_entry);try{this.enterOuterAlt(t,1),this.state=3400,this.an_id(),this.state=3401,this.match(e.EQUALS),this.state=3402,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_setting_value(){let t,i=new uc(this.context,this.state);this.enterRule(i,548,e.RULE_table_setting_value);try{switch(this.state=3416,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3404,this.id();break;case 2:this.enterOuterAlt(i,2),this.state=3405,this.match(e.STRING_VALUE);break;case 3:this.enterOuterAlt(i,3),this.state=3406,this.integer();break;case 4:this.enterOuterAlt(i,4),this.state=3407,this.split_boundaries();break;case 5:this.enterOuterAlt(i,5),this.state=3408,this.ttl_tier_list(),this.state=3409,this.match(e.ON),this.state=3410,this.an_id(),this.state=3413,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=3411,this.match(e.AS),this.state=3412,t=this.tokenStream.LA(1),!(t-191&-32)&&1<<t-191&11||267===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(i,6),this.state=3415,this.bool_value()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_list(){let t,i=new gc(this.context,this.state);this.enterRule(i,550,e.RULE_ttl_tier_list);try{if(this.enterOuterAlt(i,1),this.state=3418,this.expr(),this.state=3429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),101===t||295===t)for(this.state=3419,this.ttl_tier_action(),this.state=3426,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3420,this.match(e.COMMA),this.state=3421,this.expr(),this.state=3422,this.ttl_tier_action(),this.state=3428,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_action(){let t=new pc(this.context,this.state);this.enterRule(t,552,e.RULE_ttl_tier_action);try{switch(this.state=3437,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TO:this.enterOuterAlt(t,1),this.state=3431,this.match(e.TO),this.state=3432,this.match(e.EXTERNAL),this.state=3433,this.match(e.DATA),this.state=3434,this.match(e.SOURCE),this.state=3435,this.an_id();break;case e.DELETE:this.enterOuterAlt(t,2),this.state=3436,this.match(e.DELETE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_entry(){let t=new mc(this.context,this.state);this.enterRule(t,554,e.RULE_family_entry);try{this.enterOuterAlt(t,1),this.state=3439,this.match(e.FAMILY),this.state=3440,this.an_id(),this.state=3441,this.family_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_settings(){let t,i=new fc(this.context,this.state);this.enterRule(i,556,e.RULE_family_settings);try{if(this.enterOuterAlt(i,1),this.state=3443,this.match(e.LPAREN),this.state=3452,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&3220176895||!(t-70&-32)&&1<<t-70&4294967295||!(t-102&-32)&&1<<t-102&3221159927||!(t-134&-32)&&1<<t-134&4294967287||!(t-166&-32)&&1<<t-166&4294836223||!(t-198&-32)&&1<<t-198&4294959103||!(t-230&-32)&&1<<t-230&4294688767||!(t-262&-32)&&1<<t-262&4026400255||!(t-294&-32)&&1<<t-294&4290772799||!(t-326&-32)&&1<<t-326&7)for(this.state=3444,this.family_settings_entry(),this.state=3449,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3445,this.match(e.COMMA),this.state=3446,this.family_settings_entry(),this.state=3451,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3454,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_settings_entry(){let t=new _c(this.context,this.state);this.enterRule(t,558,e.RULE_family_settings_entry);try{this.enterOuterAlt(t,1),this.state=3456,this.an_id(),this.state=3457,this.match(e.EQUALS),this.state=3458,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_setting_value(){let t=new vc(this.context,this.state);this.enterRule(t,560,e.RULE_family_setting_value);try{switch(this.state=3462,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRING_VALUE:this.enterOuterAlt(t,1),this.state=3460,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,2),this.state=3461,this.integer();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}split_boundaries(){let t,i=new Cc(this.context,this.state);this.enterRule(i,562,e.RULE_split_boundaries);try{switch(this.state=3476,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,342,this.context)){case 1:for(this.enterOuterAlt(i,1),this.state=3464,this.match(e.LPAREN),this.state=3465,this.literal_value_list(),this.state=3470,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3466,this.match(e.COMMA),this.state=3467,this.literal_value_list(),this.state=3472,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3473,this.match(e.RPAREN);break;case 2:this.enterOuterAlt(i,2),this.state=3475,this.literal_value_list()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}literal_value_list(){let t,i=new Ec(this.context,this.state);this.enterRule(i,564,e.RULE_literal_value_list);try{for(this.enterOuterAlt(i,1),this.state=3478,this.match(e.LPAREN),this.state=3479,this.literal_value(),this.state=3484,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3480,this.match(e.COMMA),this.state=3481,this.literal_value(),this.state=3486,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3487,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_alter_index_action(){let t=new bc(this.context,this.state);this.enterRule(t,566,e.RULE_alter_table_alter_index_action);try{switch(this.state=3492,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,344,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3489,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=3490,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=3491,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_table_stmt(){let t=new Sc(this.context,this.state);this.enterRule(t,568,e.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(t,1),this.state=3494,this.match(e.DROP),this.state=3499,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=3495,this.match(e.TABLE);break;case e.TABLESTORE:this.state=3496,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=3497,this.match(e.EXTERNAL),this.state=3498,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=3503,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,346,this.context)))this.state=3501,this.match(e.IF),this.state=3502,this.match(e.EXISTS);this.state=3505,this.simple_table_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_user_stmt(){let t,i=new yc(this.context,this.state);this.enterRule(i,570,e.RULE_create_user_stmt);try{for(this.enterOuterAlt(i,1),this.state=3507,this.match(e.CREATE),this.state=3508,this.match(e.USER),this.state=3509,this.role_name(),this.state=3513,this.errorHandler.sync(this),t=this.tokenStream.LA(1);116===t||150===t||185===t||198===t||220===t;)this.state=3510,this.user_option(),this.state=3515,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_user_stmt(){let t,i=new wc(this.context,this.state);this.enterRule(i,572,e.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3516,this.match(e.ALTER),this.state=3517,this.match(e.USER),this.state=3518,this.role_name(),this.state=3530,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.LOGIN:case e.NOLOGIN:case e.PASSWORD:case e.WITH:this.state=3520,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3519,this.match(e.WITH)),this.state=3523,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3522,this.user_option(),this.state=3525,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(116===t||150===t||185===t||198===t||220===t);break;case e.RENAME:this.state=3527,this.match(e.RENAME),this.state=3528,this.match(e.TO),this.state=3529,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_group_stmt(){let t,i=new Rc(this.context,this.state);this.enterRule(i,574,e.RULE_create_group_stmt);try{let s;if(this.enterOuterAlt(i,1),this.state=3532,this.match(e.CREATE),this.state=3533,this.match(e.GROUP),this.state=3534,this.role_name(),this.state=3548,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t){for(this.state=3535,this.match(e.WITH),this.state=3536,this.match(e.USER),this.state=3537,this.role_name(),this.state=3542,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3538,this.match(e.COMMA),this.state=3539,this.role_name()),this.state=3544,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);this.state=3546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3545,this.match(e.COMMA))}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_group_stmt(){let t,i=new Lc(this.context,this.state);this.enterRule(i,576,e.RULE_alter_group_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=3550,this.match(e.ALTER),this.state=3551,this.match(e.GROUP),this.state=3552,this.role_name(),this.state=3569,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:case e.DROP:for(this.state=3553,t=this.tokenStream.LA(1),40===t||111===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3554,this.match(e.USER),this.state=3555,this.role_name(),this.state=3560,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3556,this.match(e.COMMA),this.state=3557,this.role_name()),this.state=3562,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3564,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3563,this.match(e.COMMA));break;case e.RENAME:this.state=3566,this.match(e.RENAME),this.state=3567,this.match(e.TO),this.state=3568,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_role_stmt(){let t,i=new Tc(this.context,this.state);this.enterRule(i,578,e.RULE_drop_role_stmt);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3571,this.match(e.DROP),this.state=3572,t=this.tokenStream.LA(1),147===t||312===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3575,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,357,this.context)))this.state=3573,this.match(e.IF),this.state=3574,this.match(e.EXISTS);for(this.state=3577,this.role_name(),this.state=3582,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3578,this.match(e.COMMA),this.state=3579,this.role_name()),this.state=3584,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);this.state=3586,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3585,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}role_name(){let t=new xc(this.context,this.state);this.enterRule(t,580,e.RULE_role_name);try{switch(this.state=3590,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3588,this.an_id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3589,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}user_option(){let t=new kc(this.context,this.state);this.enterRule(t,582,e.RULE_user_option);try{switch(this.state=3594,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3592,this.authentication_option();break;case e.LOGIN:case e.NOLOGIN:this.enterOuterAlt(t,2),this.state=3593,this.login_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}authentication_option(){let t=new Ac(this.context,this.state);this.enterRule(t,584,e.RULE_authentication_option);try{switch(this.state=3598,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3596,this.password_option();break;case e.HASH:this.enterOuterAlt(t,2),this.state=3597,this.hash_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}password_option(){let t,i=new Nc(this.context,this.state);this.enterRule(i,586,e.RULE_password_option);try{this.enterOuterAlt(i,1),this.state=3601,this.errorHandler.sync(this),t=this.tokenStream.LA(1),116===t&&(this.state=3600,this.match(e.ENCRYPTED)),this.state=3603,this.match(e.PASSWORD),this.state=3604,this.expr()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}hash_option(){let t=new Ic(this.context,this.state);this.enterRule(t,588,e.RULE_hash_option);try{this.enterOuterAlt(t,1),this.state=3606,this.match(e.HASH),this.state=3607,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}login_option(){let t,i=new Oc(this.context,this.state);this.enterRule(i,590,e.RULE_login_option);try{this.enterOuterAlt(i,1),this.state=3609,t=this.tokenStream.LA(1),185===t||198===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grant_permissions_stmt(){let t,i=new Dc(this.context,this.state);this.enterRule(i,592,e.RULE_grant_permissions_stmt);try{let s;for(this.enterOuterAlt(i,1),this.state=3611,this.match(e.GRANT),this.state=3612,this.permission_name_target(),this.state=3613,this.match(e.ON),this.state=3614,this.an_id_schema(),this.state=3619,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3615,this.match(e.COMMA),this.state=3616,this.an_id_schema(),this.state=3621,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3622,this.match(e.TO),this.state=3623,this.role_name(),this.state=3628,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3624,this.match(e.COMMA),this.state=3625,this.role_name()),this.state=3630,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);this.state=3632,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3631,this.match(e.COMMA)),this.state=3637,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3634,this.match(e.WITH),this.state=3635,this.match(e.GRANT),this.state=3636,this.match(e.OPTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}revoke_permissions_stmt(){let t,i=new Mc(this.context,this.state);this.enterRule(i,594,e.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=3639,this.match(e.REVOKE),this.state=3643,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,368,this.context)))this.state=3640,this.match(e.GRANT),this.state=3641,this.match(e.OPTION),this.state=3642,this.match(e.FOR);for(this.state=3645,this.permission_name_target(),this.state=3646,this.match(e.ON),this.state=3647,this.an_id_schema(),this.state=3652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3648,this.match(e.COMMA),this.state=3649,this.an_id_schema(),this.state=3654,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3655,this.match(e.FROM),this.state=3656,this.role_name(),this.state=3661,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3657,this.match(e.COMMA),this.state=3658,this.role_name(),this.state=3663,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_id(){let t,i=new Pc(this.context,this.state);this.enterRule(i,596,e.RULE_permission_id);try{switch(this.state=3688,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CONNECT:this.enterOuterAlt(i,1),this.state=3664,this.match(e.CONNECT);break;case e.LIST:this.enterOuterAlt(i,2),this.state=3665,this.match(e.LIST);break;case e.INSERT:this.enterOuterAlt(i,3),this.state=3666,this.match(e.INSERT);break;case e.MANAGE:this.enterOuterAlt(i,4),this.state=3667,this.match(e.MANAGE);break;case e.DROP:this.enterOuterAlt(i,5),this.state=3668,this.match(e.DROP);break;case e.GRANT:this.enterOuterAlt(i,6),this.state=3669,this.match(e.GRANT);break;case e.MODIFY:this.enterOuterAlt(i,7),this.state=3670,this.match(e.MODIFY),this.state=3671,t=this.tokenStream.LA(1),56===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case e.ERASE:case e.UPDATE:this.enterOuterAlt(i,8),this.state=3672,t=this.tokenStream.LA(1),119===t||309===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3673,this.match(e.ROW);break;case e.ALTER:case e.DESCRIBE:case e.REMOVE:this.enterOuterAlt(i,9),this.state=3674,t=this.tokenStream.LA(1),43===t||103===t||242===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3675,this.match(e.SCHEMA);break;case e.SELECT:this.enterOuterAlt(i,10),this.state=3676,this.match(e.SELECT),this.state=3678,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(56===t||262===t||287===t)&&(this.state=3677,t=this.tokenStream.LA(1),56===t||262===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.FULL:case e.USE:this.enterOuterAlt(i,11),this.state=3680,t=this.tokenStream.LA(1),142===t||311===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3682,this.errorHandler.sync(this),t=this.tokenStream.LA(1),180===t&&(this.state=3681,this.match(e.LEGACY));break;case e.CREATE:this.enterOuterAlt(i,12),this.state=3684,this.match(e.CREATE),this.state=3686,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(106===t||234===t||286===t)&&(this.state=3685,t=this.tokenStream.LA(1),106===t||234===t||286===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_name(){let t=new Fc(this.context,this.state);this.enterRule(t,598,e.RULE_permission_name);try{switch(this.state=3692,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:this.enterOuterAlt(t,1),this.state=3690,this.permission_id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3691,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}permission_name_target(){let t,i=new Uc(this.context,this.state);this.enterRule(i,600,e.RULE_permission_name_target);try{let s;switch(this.state=3709,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:case e.STRING_VALUE:for(this.enterOuterAlt(i,1),this.state=3694,this.permission_name(),this.state=3699,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3695,this.match(e.COMMA),this.state=3696,this.permission_name()),this.state=3701,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);this.state=3703,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3702,this.match(e.COMMA));break;case e.ALL:this.enterOuterAlt(i,2),this.state=3705,this.match(e.ALL),this.state=3707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),231===t&&(this.state=3706,this.match(e.PRIVILEGES));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_resource_pool_stmt(){let t=new Hc(this.context,this.state);this.enterRule(t,602,e.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3711,this.match(e.CREATE),this.state=3712,this.match(e.RESOURCE),this.state=3713,this.match(e.POOL),this.state=3714,this.object_ref(),this.state=3715,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_stmt(){let t,i=new Bc(this.context,this.state);this.enterRule(i,604,e.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(i,1),this.state=3717,this.match(e.ALTER),this.state=3718,this.match(e.RESOURCE),this.state=3719,this.match(e.POOL),this.state=3720,this.object_ref(),this.state=3721,this.alter_resource_pool_action(),this.state=3726,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3722,this.match(e.COMMA),this.state=3723,this.alter_resource_pool_action(),this.state=3728,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_action(){let t=new Wc(this.context,this.state);this.enterRule(t,606,e.RULE_alter_resource_pool_action);try{switch(this.state=3731,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3729,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3730,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_stmt(){let t=new Vc(this.context,this.state);this.enterRule(t,608,e.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3733,this.match(e.DROP),this.state=3734,this.match(e.RESOURCE),this.state=3735,this.match(e.POOL),this.state=3736,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_resource_pool_classifier_stmt(){let t=new zc(this.context,this.state);this.enterRule(t,610,e.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3738,this.match(e.CREATE),this.state=3739,this.match(e.RESOURCE),this.state=3740,this.match(e.POOL),this.state=3741,this.match(e.CLASSIFIER),this.state=3742,this.object_ref(),this.state=3743,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_classifier_stmt(){let t,i=new Gc(this.context,this.state);this.enterRule(i,612,e.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(i,1),this.state=3745,this.match(e.ALTER),this.state=3746,this.match(e.RESOURCE),this.state=3747,this.match(e.POOL),this.state=3748,this.match(e.CLASSIFIER),this.state=3749,this.object_ref(),this.state=3750,this.alter_resource_pool_classifier_action(),this.state=3755,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3751,this.match(e.COMMA),this.state=3752,this.alter_resource_pool_classifier_action(),this.state=3757,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_classifier_action(){let t=new jc(this.context,this.state);this.enterRule(t,614,e.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3760,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3758,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3759,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_classifier_stmt(){let t=new Kc(this.context,this.state);this.enterRule(t,616,e.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3762,this.match(e.DROP),this.state=3763,this.match(e.RESOURCE),this.state=3764,this.match(e.POOL),this.state=3765,this.match(e.CLASSIFIER),this.state=3766,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_replication_stmt(){let t,i=new Yc(this.context,this.state);this.enterRule(i,618,e.RULE_create_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3768,this.match(e.CREATE),this.state=3769,this.match(e.ASYNC),this.state=3770,this.match(e.REPLICATION),this.state=3771,this.object_ref(),this.state=3772,this.match(e.FOR),this.state=3773,this.replication_target(),this.state=3778,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3774,this.match(e.COMMA),this.state=3775,this.replication_target(),this.state=3780,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3781,this.match(e.WITH),this.state=3782,this.match(e.LPAREN),this.state=3783,this.replication_settings(),this.state=3784,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_target(){let t=new qc(this.context,this.state);this.enterRule(t,620,e.RULE_replication_target);try{this.enterOuterAlt(t,1),this.state=3786,this.object_ref(),this.state=3787,this.replication_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_settings(){let t,i=new $c(this.context,this.state);this.enterRule(i,622,e.RULE_replication_settings);try{for(this.enterOuterAlt(i,1),this.state=3789,this.replication_settings_entry(),this.state=3794,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3790,this.match(e.COMMA),this.state=3791,this.replication_settings_entry(),this.state=3796,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_settings_entry(){let t=new Qc(this.context,this.state);this.enterRule(t,624,e.RULE_replication_settings_entry);try{this.enterOuterAlt(t,1),this.state=3797,this.an_id(),this.state=3798,this.match(e.EQUALS),this.state=3799,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_stmt(){let t,i=new Xc(this.context,this.state);this.enterRule(i,626,e.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3801,this.match(e.ALTER),this.state=3802,this.match(e.ASYNC),this.state=3803,this.match(e.REPLICATION),this.state=3804,this.object_ref(),this.state=3805,this.alter_replication_action(),this.state=3810,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3806,this.match(e.COMMA),this.state=3807,this.alter_replication_action(),this.state=3812,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_replication_action(){let t=new Zc(this.context,this.state);this.enterRule(t,628,e.RULE_alter_replication_action);try{this.enterOuterAlt(t,1),this.state=3813,this.alter_replication_set_setting()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_set_setting(){let t=new Jc(this.context,this.state);this.enterRule(t,630,e.RULE_alter_replication_set_setting);try{this.enterOuterAlt(t,1),this.state=3815,this.match(e.SET),this.state=3816,this.match(e.LPAREN),this.state=3817,this.replication_settings(),this.state=3818,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_replication_stmt(){let t,i=new el(this.context,this.state);this.enterRule(i,632,e.RULE_drop_replication_stmt);try{this.enterOuterAlt(i,1),this.state=3820,this.match(e.DROP),this.state=3821,this.match(e.ASYNC),this.state=3822,this.match(e.REPLICATION),this.state=3823,this.object_ref(),this.state=3825,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3824,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_or_parameter(){let t=new tl(this.context,this.state);this.enterRule(t,634,e.RULE_lambda_or_parameter);try{switch(this.state=3829,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.enterOuterAlt(t,1),this.state=3827,this.lambda();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3828,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_transfer_stmt(){let t,i=new il(this.context,this.state);this.enterRule(i,636,e.RULE_create_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3831,this.match(e.CREATE),this.state=3832,this.match(e.TRANSFER),this.state=3833,this.object_ref(),this.state=3834,this.match(e.FROM),this.state=3835,this.object_ref(),this.state=3836,this.match(e.TO),this.state=3837,this.object_ref(),this.state=3840,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3838,this.match(e.USING),this.state=3839,this.lambda_or_parameter()),this.state=3842,this.match(e.WITH),this.state=3843,this.match(e.LPAREN),this.state=3844,this.transfer_settings(),this.state=3845,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings(){let t,i=new sl(this.context,this.state);this.enterRule(i,638,e.RULE_transfer_settings);try{for(this.enterOuterAlt(i,1),this.state=3847,this.transfer_settings_entry(),this.state=3852,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3848,this.match(e.COMMA),this.state=3849,this.transfer_settings_entry(),this.state=3854,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings_entry(){let t=new nl(this.context,this.state);this.enterRule(t,640,e.RULE_transfer_settings_entry);try{this.enterOuterAlt(t,1),this.state=3855,this.an_id(),this.state=3856,this.match(e.EQUALS),this.state=3857,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_stmt(){let t,i=new rl(this.context,this.state);this.enterRule(i,642,e.RULE_alter_transfer_stmt);try{for(this.enterOuterAlt(i,1),this.state=3859,this.match(e.ALTER),this.state=3860,this.match(e.TRANSFER),this.state=3861,this.object_ref(),this.state=3862,this.alter_transfer_action(),this.state=3867,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3863,this.match(e.COMMA),this.state=3864,this.alter_transfer_action(),this.state=3869,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_transfer_action(){let t=new ol(this.context,this.state);this.enterRule(t,644,e.RULE_alter_transfer_action);try{switch(this.state=3872,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,392,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3870,this.alter_transfer_set_setting();break;case 2:this.enterOuterAlt(t,2),this.state=3871,this.alter_transfer_set_using()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_setting(){let t=new al(this.context,this.state);this.enterRule(t,646,e.RULE_alter_transfer_set_setting);try{this.enterOuterAlt(t,1),this.state=3874,this.match(e.SET),this.state=3875,this.match(e.LPAREN),this.state=3876,this.transfer_settings(),this.state=3877,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_using(){let t=new cl(this.context,this.state);this.enterRule(t,648,e.RULE_alter_transfer_set_using);try{this.enterOuterAlt(t,1),this.state=3879,this.match(e.SET),this.state=3880,this.match(e.USING),this.state=3881,this.lambda_or_parameter()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_transfer_stmt(){let t,i=new ll(this.context,this.state);this.enterRule(i,650,e.RULE_drop_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3883,this.match(e.DROP),this.state=3884,this.match(e.TRANSFER),this.state=3885,this.object_ref(),this.state=3887,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3886,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}action_or_subquery_args(){let t,i=new hl(this.context,this.state);this.enterRule(i,652,e.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(i,1),this.state=3889,this.opt_bind_parameter(),this.state=3894,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3890,this.match(e.COMMA),this.state=3891,this.opt_bind_parameter(),this.state=3896,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_stmt(){let t,i=new dl(this.context,this.state);this.enterRule(i,654,e.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(i,1),this.state=3897,this.match(e.DEFINE),this.state=3898,t=this.tokenStream.LA(1),39===t||280===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3899,this.bind_parameter(),this.state=3900,this.match(e.LPAREN),this.state=3902,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3901,this.action_or_subquery_args()),this.state=3904,this.match(e.RPAREN),this.state=3905,this.match(e.AS),this.state=3906,this.define_action_or_subquery_body(),this.state=3907,this.match(e.END),this.state=3908,this.match(e.DEFINE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_body(){let t,i=new ul(this.context,this.state);this.enterRule(i,656,e.RULE_define_action_or_subquery_body);try{let s;for(this.enterOuterAlt(i,1),this.state=3913,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3910,this.match(e.SEMICOLON),this.state=3915,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3934,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t||30===t||!(t-43&-32)&&1<<t-43&196611||!(t-78&-32)&&1<<t-78&1086587137||!(t-110&-32)&&1<<t-110&2684882947||!(t-146&-32)&&1<<t-146&2099329||!(t-217&-32)&&1<<t-217&269517825||!(t-251&-32)&&1<<t-251&262721||!(t-309&-32)&&1<<t-309&71){for(this.state=3916,this.sql_stmt_core(),this.state=3925,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=3918,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3917,this.match(e.SEMICOLON),this.state=3920,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=3922,this.sql_stmt_core()}this.state=3927,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context)}for(this.state=3931,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3928,this.match(e.SEMICOLON),this.state=3933,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}if_stmt(){let t,i=new gl(this.context,this.state);this.enterRule(i,658,e.RULE_if_stmt);try{this.enterOuterAlt(i,1),this.state=3937,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3936,this.match(e.EVALUATE)),this.state=3939,this.match(e.IF),this.state=3940,this.expr(),this.state=3941,this.do_stmt(),this.state=3944,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3942,this.match(e.ELSE),this.state=3943,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}for_stmt(){let t,i=new pl(this.context,this.state);this.enterRule(i,660,e.RULE_for_stmt);try{this.enterOuterAlt(i,1),this.state=3947,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3946,this.match(e.EVALUATE)),this.state=3950,this.errorHandler.sync(this),t=this.tokenStream.LA(1),217===t&&(this.state=3949,this.match(e.PARALLEL)),this.state=3952,this.match(e.FOR),this.state=3953,this.bind_parameter(),this.state=3954,this.match(e.IN),this.state=3955,this.expr(),this.state=3956,this.do_stmt(),this.state=3959,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3957,this.match(e.ELSE),this.state=3958,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_ref(){let t,i=new ml(this.context,this.state);this.enterRule(i,662,e.RULE_table_ref);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3964,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,406,this.context)))this.state=3961,this.cluster_expr(),this.state=3962,this.match(e.DOT);switch(this.state=3967,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=3966,this.match(e.COMMAT)),this.state=3999,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,414,this.context)){case 1:this.state=3969,this.table_key();break;case 2:if(this.state=3970,this.an_id_expr(),this.state=3971,this.match(e.LPAREN),this.state=3983,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-14&-32)&&1<<t-14&4286810141||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647){for(this.state=3972,this.table_arg(),this.state=3977,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3973,this.match(e.COMMA),this.state=3974,this.table_arg()),this.state=3979,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);this.state=3981,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3980,this.match(e.COMMA))}this.state=3985,this.match(e.RPAREN);break;case 3:this.state=3987,this.bind_parameter(),this.state=3993,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3988,this.match(e.LPAREN),this.state=3990,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=3989,this.expr_list()),this.state=3992,this.match(e.RPAREN)),this.state=3997,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=3995,this.match(e.VIEW),this.state=3996,this.view_name())}this.state=4002,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4001,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_key(){let t,i=new fl(this.context,this.state);this.enterRule(i,664,e.RULE_table_key);try{this.enterOuterAlt(i,1),this.state=4004,this.id_table_or_type(),this.state=4007,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4005,this.match(e.VIEW),this.state=4006,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_arg(){let t,i=new _l(this.context,this.state);this.enterRule(i,666,e.RULE_table_arg);try{this.enterOuterAlt(i,1),this.state=4010,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4009,this.match(e.COMMAT)),this.state=4012,this.named_expr(),this.state=4015,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4013,this.match(e.VIEW),this.state=4014,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hints(){let t,i=new vl(this.context,this.state);this.enterRule(i,668,e.RULE_table_hints);try{switch(this.enterOuterAlt(i,1),this.state=4017,this.match(e.WITH),this.state=4030,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4018,this.table_hint();break;case e.LPAREN:for(this.state=4019,this.match(e.LPAREN),this.state=4020,this.table_hint(),this.state=4025,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4021,this.match(e.COMMA),this.state=4022,this.table_hint(),this.state=4027,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4028,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hint(){let t,i=new Cl(this.context,this.state);this.enterRule(i,670,e.RULE_table_hint);try{let s;switch(this.state=4077,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,430,this.context)){case 1:if(this.enterOuterAlt(i,1),this.state=4032,this.an_id_hint(),this.state=4051,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t)switch(this.state=4033,this.match(e.EQUALS),this.state=4049,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4034,this.type_name_tag();break;case e.LPAREN:for(this.state=4035,this.match(e.LPAREN),this.state=4036,this.type_name_tag(),this.state=4041,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4037,this.match(e.COMMA),this.state=4038,this.type_name_tag()),this.state=4043,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);this.state=4045,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4044,this.match(e.COMMA)),this.state=4047,this.match(e.RPAREN);break;default:throw new lt(this)}break;case 2:this.enterOuterAlt(i,2),this.state=4053,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=4055,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4054,this.match(e.EQUALS)),this.state=4057,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(i,3),this.state=4058,this.match(e.SCHEMA),this.state=4060,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4059,this.match(e.EQUALS)),this.state=4062,this.match(e.LPAREN),this.state=4071,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)for(this.state=4063,this.struct_arg_positional(),this.state=4068,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4064,this.match(e.COMMA),this.state=4065,this.struct_arg_positional()),this.state=4070,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);this.state=4074,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4073,this.match(e.COMMA)),this.state=4076,this.match(e.RPAREN)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_ref(){let t=new El(this.context,this.state);this.enterRule(t,672,e.RULE_object_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4082,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,431,this.context)))this.state=4079,this.cluster_expr(),this.state=4080,this.match(e.DOT);this.state=4084,this.id_or_at()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_table_ref_core(){let t,i=new bl(this.context,this.state);this.enterRule(i,674,e.RULE_simple_table_ref_core);try{switch(this.state=4091,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,433,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4086,this.object_ref();break;case 2:this.enterOuterAlt(i,2),this.state=4088,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4087,this.match(e.COMMAT)),this.state=4090,this.bind_parameter()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}simple_table_ref(){let t,i=new Sl(this.context,this.state);this.enterRule(i,676,e.RULE_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4093,this.simple_table_ref_core(),this.state=4095,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4094,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_simple_table_ref(){let t,i=new yl(this.context,this.state);this.enterRule(i,678,e.RULE_into_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4097,this.simple_table_ref(),this.state=4101,this.errorHandler.sync(this),t=this.tokenStream.LA(1),119===t&&(this.state=4098,this.match(e.ERASE),this.state=4099,this.match(e.BY),this.state=4100,this.pure_column_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}delete_stmt(){let t,i=new wl(this.context,this.state);this.enterRule(i,680,e.RULE_delete_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4104,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4103,this.match(e.BATCH)),this.state=4106,this.match(e.DELETE),this.state=4107,this.match(e.FROM),this.state=4108,this.simple_table_ref(),this.state=4112,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WHERE:this.state=4109,this.where_expr();break;case e.ON:this.state=4110,this.match(e.ON),this.state=4111,this.into_values_source();case e.EOF:case e.SEMICOLON:case e.END:case e.RETURNING:}this.state=4115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4114,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}update_stmt(){let t,i=new Rl(this.context,this.state);this.enterRule(i,682,e.RULE_update_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4118,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4117,this.match(e.BATCH)),this.state=4120,this.match(e.UPDATE),this.state=4121,this.simple_table_ref(),this.state=4129,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.state=4122,this.match(e.SET),this.state=4123,this.set_clause_choice(),this.state=4125,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=4124,this.where_expr());break;case e.ON:this.state=4127,this.match(e.ON),this.state=4128,this.into_values_source();break;default:throw new lt(this)}this.state=4132,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4131,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause_choice(){let t=new Ll(this.context,this.state);this.enterRule(t,684,e.RULE_set_clause_choice);try{switch(this.state=4136,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4134,this.set_clause_list();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4135,this.multiple_column_assignment();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_clause_list(){let t,i=new Tl(this.context,this.state);this.enterRule(i,686,e.RULE_set_clause_list);try{for(this.enterOuterAlt(i,1),this.state=4138,this.set_clause(),this.state=4143,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4139,this.match(e.COMMA),this.state=4140,this.set_clause(),this.state=4145,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause(){let t=new xl(this.context,this.state);this.enterRule(t,688,e.RULE_set_clause);try{this.enterOuterAlt(t,1),this.state=4146,this.set_target(),this.state=4147,this.match(e.EQUALS),this.state=4148,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target(){let t=new kl(this.context,this.state);this.enterRule(t,690,e.RULE_set_target);try{this.enterOuterAlt(t,1),this.state=4150,this.column_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}multiple_column_assignment(){let t=new Al(this.context,this.state);this.enterRule(t,692,e.RULE_multiple_column_assignment);try{this.enterOuterAlt(t,1),this.state=4152,this.set_target_list(),this.state=4153,this.match(e.EQUALS),this.state=4154,this.match(e.LPAREN),this.state=4155,this.simple_values_source(),this.state=4156,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target_list(){let t,i=new Nl(this.context,this.state);this.enterRule(i,694,e.RULE_set_target_list);try{for(this.enterOuterAlt(i,1),this.state=4158,this.match(e.LPAREN),this.state=4159,this.set_target(),this.state=4164,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4160,this.match(e.COMMA),this.state=4161,this.set_target(),this.state=4166,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4167,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_stmt(){let t,i=new Il(this.context,this.state);this.enterRule(i,696,e.RULE_create_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4169,this.match(e.CREATE),this.state=4170,this.match(e.TOPIC),this.state=4174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4171,this.match(e.IF),this.state=4172,this.match(e.NOT),this.state=4173,this.match(e.EXISTS);this.state=4176,this.topic_ref(),this.state=4178,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4177,this.create_topic_entries()),this.state=4181,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4180,this.with_topic_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entries(){let t,i=new Ol(this.context,this.state);this.enterRule(i,698,e.RULE_create_topic_entries);try{for(this.enterOuterAlt(i,1),this.state=4183,this.match(e.LPAREN),this.state=4184,this.create_topic_entry(),this.state=4189,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4185,this.match(e.COMMA),this.state=4186,this.create_topic_entry(),this.state=4191,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4192,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entry(){let t=new Dl(this.context,this.state);this.enterRule(t,700,e.RULE_create_topic_entry);try{this.enterOuterAlt(t,1),this.state=4194,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_topic_settings(){let t=new Ml(this.context,this.state);this.enterRule(t,702,e.RULE_with_topic_settings);try{this.enterOuterAlt(t,1),this.state=4196,this.match(e.WITH),this.state=4197,this.match(e.LPAREN),this.state=4198,this.topic_settings(),this.state=4199,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_stmt(){let t,i=new Pl(this.context,this.state);this.enterRule(i,704,e.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4201,this.match(e.ALTER),this.state=4202,this.match(e.TOPIC),this.state=4205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4203,this.match(e.IF),this.state=4204,this.match(e.EXISTS);for(this.state=4207,this.topic_ref(),this.state=4208,this.alter_topic_action(),this.state=4213,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4209,this.match(e.COMMA),this.state=4210,this.alter_topic_action(),this.state=4215,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_action(){let t=new Fl(this.context,this.state);this.enterRule(t,706,e.RULE_alter_topic_action);try{switch(this.state=4221,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=4216,this.alter_topic_add_consumer();break;case e.ALTER:this.enterOuterAlt(t,2),this.state=4217,this.alter_topic_alter_consumer();break;case e.DROP:this.enterOuterAlt(t,3),this.state=4218,this.alter_topic_drop_consumer();break;case e.SET:this.enterOuterAlt(t,4),this.state=4219,this.alter_topic_set_settings();break;case e.RESET:this.enterOuterAlt(t,5),this.state=4220,this.alter_topic_reset_settings();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_add_consumer(){let t=new Ul(this.context,this.state);this.enterRule(t,708,e.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(t,1),this.state=4223,this.match(e.ADD),this.state=4224,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_create_consumer_entry(){let t,i=new Hl(this.context,this.state);this.enterRule(i,710,e.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(i,1),this.state=4226,this.match(e.CONSUMER),this.state=4227,this.an_id(),this.state=4229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4228,this.topic_consumer_with_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_alter_consumer(){let t=new Bl(this.context,this.state);this.enterRule(t,712,e.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(t,1),this.state=4231,this.match(e.ALTER),this.state=4232,this.match(e.CONSUMER),this.state=4233,this.topic_consumer_ref(),this.state=4234,this.alter_topic_alter_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_alter_consumer_entry(){let t=new Wl(this.context,this.state);this.enterRule(t,714,e.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4238,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=4236,this.topic_alter_consumer_set();break;case e.RESET:this.enterOuterAlt(t,2),this.state=4237,this.topic_alter_consumer_reset();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_drop_consumer(){let t=new Vl(this.context,this.state);this.enterRule(t,716,e.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(t,1),this.state=4240,this.match(e.DROP),this.state=4241,this.match(e.CONSUMER),this.state=4242,this.topic_consumer_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_set(){let t=new zl(this.context,this.state);this.enterRule(t,718,e.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(t,1),this.state=4244,this.match(e.SET),this.state=4245,this.match(e.LPAREN),this.state=4246,this.topic_consumer_settings(),this.state=4247,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_reset(){let t,i=new Gl(this.context,this.state);this.enterRule(i,720,e.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(i,1),this.state=4249,this.match(e.RESET),this.state=4250,this.match(e.LPAREN),this.state=4251,this.an_id(),this.state=4256,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4252,this.match(e.COMMA),this.state=4253,this.an_id(),this.state=4258,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4259,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_set_settings(){let t=new jl(this.context,this.state);this.enterRule(t,722,e.RULE_alter_topic_set_settings);try{this.enterOuterAlt(t,1),this.state=4261,this.match(e.SET),this.state=4262,this.match(e.LPAREN),this.state=4263,this.topic_settings(),this.state=4264,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_reset_settings(){let t,i=new Kl(this.context,this.state);this.enterRule(i,724,e.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(i,1),this.state=4266,this.match(e.RESET),this.state=4267,this.match(e.LPAREN),this.state=4268,this.an_id(),this.state=4273,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4269,this.match(e.COMMA),this.state=4270,this.an_id_pure(),this.state=4275,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4276,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_topic_stmt(){let t=new Yl(this.context,this.state);this.enterRule(t,726,e.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=4278,this.match(e.DROP),this.state=4279,this.match(e.TOPIC),this.state=4282,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)))this.state=4280,this.match(e.IF),this.state=4281,this.match(e.EXISTS);this.state=4284,this.topic_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_settings(){let t,i=new ql(this.context,this.state);this.enterRule(i,728,e.RULE_topic_settings);try{for(this.enterOuterAlt(i,1),this.state=4286,this.topic_settings_entry(),this.state=4291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4287,this.match(e.COMMA),this.state=4288,this.topic_settings_entry(),this.state=4293,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_settings_entry(){let t=new $l(this.context,this.state);this.enterRule(t,730,e.RULE_topic_settings_entry);try{this.enterOuterAlt(t,1),this.state=4294,this.an_id(),this.state=4295,this.match(e.EQUALS),this.state=4296,this.topic_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_setting_value(){let t=new Ql(this.context,this.state);this.enterRule(t,732,e.RULE_topic_setting_value);try{this.enterOuterAlt(t,1),this.state=4298,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_with_settings(){let t=new Xl(this.context,this.state);this.enterRule(t,734,e.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(t,1),this.state=4300,this.match(e.WITH),this.state=4301,this.match(e.LPAREN),this.state=4302,this.topic_consumer_settings(),this.state=4303,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_settings(){let t,i=new Zl(this.context,this.state);this.enterRule(i,736,e.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(i,1),this.state=4305,this.topic_consumer_settings_entry(),this.state=4310,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4306,this.match(e.COMMA),this.state=4307,this.topic_consumer_settings_entry(),this.state=4312,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_consumer_settings_entry(){let t=new Jl(this.context,this.state);this.enterRule(t,738,e.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(t,1),this.state=4313,this.an_id(),this.state=4314,this.match(e.EQUALS),this.state=4315,this.topic_consumer_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_setting_value(){let t=new eh(this.context,this.state);this.enterRule(t,740,e.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(t,1),this.state=4317,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_ref(){let t=new th(this.context,this.state);this.enterRule(t,742,e.RULE_topic_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4322,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,460,this.context)))this.state=4319,this.cluster_expr(),this.state=4320,this.match(e.DOT);this.state=4324,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_ref(){let t=new ih(this.context,this.state);this.enterRule(t,744,e.RULE_topic_consumer_ref);try{this.enterOuterAlt(t,1),this.state=4326,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}null_treatment(){let t=new sh(this.context,this.state);this.enterRule(t,746,e.RULE_null_treatment);try{switch(this.state=4332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESPECT:this.enterOuterAlt(t,1),this.state=4328,this.match(e.RESPECT),this.state=4329,this.match(e.NULLS);break;case e.IGNORE:this.enterOuterAlt(t,2),this.state=4330,this.match(e.IGNORE),this.state=4331,this.match(e.NULLS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}filter_clause(){let t=new nh(this.context,this.state);this.enterRule(t,748,e.RULE_filter_clause);try{this.enterOuterAlt(t,1),this.state=4334,this.match(e.FILTER),this.state=4335,this.match(e.LPAREN),this.state=4336,this.where_expr(),this.state=4337,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name_or_specification(){let t=new rh(this.context,this.state);this.enterRule(t,750,e.RULE_window_name_or_specification);try{switch(this.state=4341,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4339,this.window_name();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4340,this.window_specification();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name(){let t=new oh(this.context,this.state);this.enterRule(t,752,e.RULE_window_name);try{this.enterOuterAlt(t,1),this.state=4343,this.an_id_window()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_clause(){let t=new ah(this.context,this.state);this.enterRule(t,754,e.RULE_window_clause);try{this.enterOuterAlt(t,1),this.state=4345,this.match(e.WINDOW),this.state=4346,this.window_definition_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_definition_list(){let t,i=new ch(this.context,this.state);this.enterRule(i,756,e.RULE_window_definition_list);try{for(this.enterOuterAlt(i,1),this.state=4348,this.window_definition(),this.state=4353,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4349,this.match(e.COMMA),this.state=4350,this.window_definition(),this.state=4355,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_definition(){let t=new lh(this.context,this.state);this.enterRule(t,758,e.RULE_window_definition);try{this.enterOuterAlt(t,1),this.state=4356,this.new_window_name(),this.state=4357,this.match(e.AS),this.state=4358,this.window_specification()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}new_window_name(){let t=new hh(this.context,this.state);this.enterRule(t,760,e.RULE_new_window_name);try{this.enterOuterAlt(t,1),this.state=4360,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification(){let t=new dh(this.context,this.state);this.enterRule(t,762,e.RULE_window_specification);try{this.enterOuterAlt(t,1),this.state=4362,this.match(e.LPAREN),this.state=4363,this.window_specification_details(),this.state=4364,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification_details(){let t,i=new uh(this.context,this.state);this.enterRule(i,764,e.RULE_window_specification_details);try{if(this.enterOuterAlt(i,1),1===(this.state=4367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,464,this.context)))this.state=4366,this.existing_window_name();this.state=4370,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=4369,this.window_partition_clause()),this.state=4373,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=4372,this.window_order_clause()),this.state=4376,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(149===t||236===t||263===t)&&(this.state=4375,this.window_frame_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}existing_window_name(){let t=new gh(this.context,this.state);this.enterRule(t,766,e.RULE_existing_window_name);try{this.enterOuterAlt(t,1),this.state=4378,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_partition_clause(){let t,i=new ph(this.context,this.state);this.enterRule(i,768,e.RULE_window_partition_clause);try{this.enterOuterAlt(i,1),this.state=4380,this.match(e.PARTITION),this.state=4382,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=4381,this.match(e.COMPACT)),this.state=4384,this.match(e.BY),this.state=4385,this.named_expr_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_order_clause(){let t=new mh(this.context,this.state);this.enterRule(t,770,e.RULE_window_order_clause);try{this.enterOuterAlt(t,1),this.state=4387,this.order_by_clause()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_clause(){let t,i=new fh(this.context,this.state);this.enterRule(i,772,e.RULE_window_frame_clause);try{this.enterOuterAlt(i,1),this.state=4389,this.window_frame_units(),this.state=4390,this.window_frame_extent(),this.state=4392,this.errorHandler.sync(this),t=this.tokenStream.LA(1),124===t&&(this.state=4391,this.window_frame_exclusion())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_units(){let t,i=new _h(this.context,this.state);this.enterRule(i,774,e.RULE_window_frame_units);try{this.enterOuterAlt(i,1),this.state=4394,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_extent(){let t=new vh(this.context,this.state);this.enterRule(t,776,e.RULE_window_frame_extent);try{switch(this.state=4398,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,470,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4396,this.window_frame_bound();break;case 2:this.enterOuterAlt(t,2),this.state=4397,this.window_frame_between()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_between(){let t=new Ch(this.context,this.state);this.enterRule(t,778,e.RULE_window_frame_between);try{this.enterOuterAlt(t,1),this.state=4400,this.match(e.BETWEEN),this.state=4401,this.window_frame_bound(),this.state=4402,this.match(e.AND),this.state=4403,this.window_frame_bound()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_bound(){let t,i=new Eh(this.context,this.state);this.enterRule(i,780,e.RULE_window_frame_bound);try{switch(this.state=4412,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,472,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4405,this.match(e.CURRENT),this.state=4406,this.match(e.ROW);break;case 2:switch(this.enterOuterAlt(i,2),this.state=4409,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,471,this.context)){case 1:this.state=4407,this.expr();break;case 2:this.state=4408,this.match(e.UNBOUNDED)}this.state=4411,t=this.tokenStream.LA(1),138===t||228===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_exclusion(){let t=new bh(this.context,this.state);this.enterRule(t,782,e.RULE_window_frame_exclusion);try{switch(this.state=4424,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,473,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4414,this.match(e.EXCLUDE),this.state=4415,this.match(e.CURRENT),this.state=4416,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=4417,this.match(e.EXCLUDE),this.state=4418,this.match(e.GROUP);break;case 3:this.enterOuterAlt(t,3),this.state=4419,this.match(e.EXCLUDE),this.state=4420,this.match(e.TIES);break;case 4:this.enterOuterAlt(t,4),this.state=4421,this.match(e.EXCLUDE),this.state=4422,this.match(e.NO),this.state=4423,this.match(e.OTHERS)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}use_stmt(){let t=new Sh(this.context,this.state);this.enterRule(t,784,e.RULE_use_stmt);try{this.enterOuterAlt(t,1),this.state=4426,this.match(e.USE),this.state=4427,this.cluster_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}subselect_stmt(){let t=new yh(this.context,this.state);this.enterRule(t,786,e.RULE_subselect_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4434,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=4429,this.match(e.LPAREN),this.state=4430,this.select_stmt(),this.state=4431,this.match(e.RPAREN);break;case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=4433,this.select_unparenthesized_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}named_nodes_stmt(){let t=new wh(this.context,this.state);this.enterRule(t,788,e.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4436,this.bind_parameter_list(),this.state=4437,this.match(e.EQUALS),this.state=4440,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,475,this.context)){case 1:this.state=4438,this.expr();break;case 2:this.state=4439,this.subselect_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}commit_stmt(){let t=new Rh(this.context,this.state);this.enterRule(t,790,e.RULE_commit_stmt);try{this.enterOuterAlt(t,1),this.state=4442,this.match(e.COMMIT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rollback_stmt(){let t=new Lh(this.context,this.state);this.enterRule(t,792,e.RULE_rollback_stmt);try{this.enterOuterAlt(t,1),this.state=4444,this.match(e.ROLLBACK)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}analyze_table(){let t,i=new Th(this.context,this.state);this.enterRule(i,794,e.RULE_analyze_table);try{this.enterOuterAlt(i,1),this.state=4446,this.simple_table_ref(),this.state=4451,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4447,this.match(e.LPAREN),this.state=4448,this.column_list(),this.state=4449,this.match(e.RPAREN))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_table_list(){let t,i=new xh(this.context,this.state);this.enterRule(i,796,e.RULE_analyze_table_list);try{let s;for(this.enterOuterAlt(i,1),this.state=4453,this.analyze_table(),this.state=4458,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4454,this.match(e.COMMA),this.state=4455,this.analyze_table()),this.state=4460,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);this.state=4462,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4461,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_stmt(){let t=new kh(this.context,this.state);this.enterRule(t,798,e.RULE_analyze_stmt);try{this.enterOuterAlt(t,1),this.state=4464,this.match(e.ANALYZE),this.state=4465,this.analyze_table_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_sequence_stmt(){let t,i=new Ah(this.context,this.state);this.enterRule(i,800,e.RULE_alter_sequence_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4467,this.match(e.ALTER),this.state=4468,this.match(e.SEQUENCE),this.state=4471,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,479,this.context)))this.state=4469,this.match(e.IF),this.state=4470,this.match(e.EXISTS);this.state=4473,this.object_ref(),this.state=4475,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4474,this.alter_sequence_action(),this.state=4477,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(159===t||250===t||277===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_sequence_action(){let t,i=new Nh(this.context,this.state);this.enterRule(i,802,e.RULE_alter_sequence_action);try{switch(this.state=4495,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,484,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4479,this.match(e.START),this.state=4481,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4480,this.match(e.WITH)),this.state=4483,this.integer();break;case 2:this.enterOuterAlt(i,2),this.state=4484,this.match(e.RESTART),this.state=4486,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4485,this.match(e.WITH)),this.state=4488,this.integer();break;case 3:this.enterOuterAlt(i,3),this.state=4489,this.match(e.RESTART);break;case 4:this.enterOuterAlt(i,4),this.state=4490,this.match(e.INCREMENT),this.state=4492,this.errorHandler.sync(this),t=this.tokenStream.LA(1),67===t&&(this.state=4491,this.match(e.BY)),this.state=4494,this.integer()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}identifier(){let t,i=new Ih(this.context,this.state);this.enterRule(i,804,e.RULE_identifier);try{this.enterOuterAlt(i,1),this.state=4497,t=this.tokenStream.LA(1),327===t||328===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id(){let t=new Oh(this.context,this.state);this.enterRule(t,806,e.RULE_id);try{switch(this.state=4501,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4499,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4500,this.keyword();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_schema(){let t=new Dh(this.context,this.state);this.enterRule(t,808,e.RULE_id_schema);try{switch(this.state=4510,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4503,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4504,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4505,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4506,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4507,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4508,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4509,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr(){let t=new Mh(this.context,this.state);this.enterRule(t,810,e.RULE_id_expr);try{switch(this.state=4518,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4512,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4513,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4514,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,4),this.state=4515,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,5),this.state=4516,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,6),this.state=4517,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr_in(){let t=new Ph(this.context,this.state);this.enterRule(t,812,e.RULE_id_expr_in);try{switch(this.state=4525,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4520,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4521,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4522,this.keyword_alter_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,4),this.state=4523,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,5),this.state=4524,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_window(){let t=new Fh(this.context,this.state);this.enterRule(t,814,e.RULE_id_window);try{switch(this.state=4535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4527,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4528,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4529,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4530,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4531,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4532,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4533,this.keyword_in_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4534,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table(){let t=new Uh(this.context,this.state);this.enterRule(t,816,e.RULE_id_table);try{switch(this.state=4544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4537,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4538,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4539,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4540,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4541,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4542,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4543,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_without(){let t=new Hh(this.context,this.state);this.enterRule(t,818,e.RULE_id_without);try{switch(this.state=4553,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4546,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4547,this.keyword_compat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4548,this.keyword_table_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,4),this.state=4549,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4550,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4551,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4552,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_hint(){let t=new Bh(this.context,this.state);this.enterRule(t,820,e.RULE_id_hint);try{switch(this.state=4563,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4555,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4556,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4557,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4558,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4559,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4560,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4561,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,8),this.state=4562,this.keyword_window_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_as_compat(){let t=new Wh(this.context,this.state);this.enterRule(t,822,e.RULE_id_as_compat);try{switch(this.state=4567,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4565,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4566,this.keyword_as_compat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id(){let t=new Vh(this.context,this.state);this.enterRule(t,824,e.RULE_an_id);try{switch(this.state=4571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4569,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4570,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_or_type(){let t=new zh(this.context,this.state);this.enterRule(t,826,e.RULE_an_id_or_type);try{switch(this.state=4575,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4573,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4574,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_schema(){let t=new Gh(this.context,this.state);this.enterRule(t,828,e.RULE_an_id_schema);try{switch(this.state=4579,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4577,this.id_schema();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4578,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr(){let t=new jh(this.context,this.state);this.enterRule(t,830,e.RULE_an_id_expr);try{switch(this.state=4583,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4581,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4582,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr_in(){let t=new Kh(this.context,this.state);this.enterRule(t,832,e.RULE_an_id_expr_in);try{switch(this.state=4587,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4585,this.id_expr_in();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4586,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_window(){let t=new Yh(this.context,this.state);this.enterRule(t,834,e.RULE_an_id_window);try{switch(this.state=4591,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4589,this.id_window();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4590,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_table(){let t=new qh(this.context,this.state);this.enterRule(t,836,e.RULE_an_id_table);try{switch(this.state=4595,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4593,this.id_table();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4594,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_without(){let t=new $h(this.context,this.state);this.enterRule(t,838,e.RULE_an_id_without);try{switch(this.state=4599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4597,this.id_without();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4598,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_hint(){let t=new Qh(this.context,this.state);this.enterRule(t,840,e.RULE_an_id_hint);try{switch(this.state=4603,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4601,this.id_hint();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4602,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_pure(){let t=new Xh(this.context,this.state);this.enterRule(t,842,e.RULE_an_id_pure);try{switch(this.state=4607,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4605,this.identifier();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4606,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_as_compat(){let t=new Zh(this.context,this.state);this.enterRule(t,844,e.RULE_an_id_as_compat);try{switch(this.state=4611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4609,this.id_as_compat();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4610,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}view_name(){let t=new Jh(this.context,this.state);this.enterRule(t,846,e.RULE_view_name);try{switch(this.state=4616,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,505,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4613,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=4614,this.match(e.PRIMARY),this.state=4615,this.match(e.KEY)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix(){let t=new ed(this.context,this.state);this.enterRule(t,848,e.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(t,1),this.state=4621,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,506,this.context)))this.state=4618,this.an_id(),this.state=4619,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cluster_expr(){let t=new td(this.context,this.state);this.enterRule(t,850,e.RULE_cluster_expr);try{if(this.enterOuterAlt(t,1),1===(this.state=4626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,507,this.context)))this.state=4623,this.an_id(),this.state=4624,this.match(e.COLON);switch(this.state=4630,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4628,this.pure_column_or_named();break;case e.ASTERISK:this.state=4629,this.match(e.ASTERISK);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_type(){let t=new id(this.context,this.state);this.enterRule(t,852,e.RULE_id_or_type);try{switch(this.state=4634,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4632,this.id();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4633,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix_or_type(){let t=new sd(this.context,this.state);this.enterRule(t,854,e.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(t,1),this.state=4639,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,510,this.context)))this.state=4636,this.an_id_or_type(),this.state=4637,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_at(){let t,i=new nd(this.context,this.state);this.enterRule(i,856,e.RULE_id_or_at);try{this.enterOuterAlt(i,1),this.state=4642,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4641,this.match(e.COMMAT)),this.state=4644,this.an_id_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id_table_or_type(){let t=new rd(this.context,this.state);this.enterRule(t,858,e.RULE_id_table_or_type);try{switch(this.state=4648,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4646,this.an_id_table();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4647,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table_or_at(){let t,i=new od(this.context,this.state);this.enterRule(i,860,e.RULE_id_table_or_at);try{this.enterOuterAlt(i,1),this.state=4651,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4650,this.match(e.COMMAT)),this.state=4653,this.id_table_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword(){let t=new ad(this.context,this.state);this.enterRule(t,862,e.RULE_keyword);try{switch(this.state=4663,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,1),this.state=4655,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,2),this.state=4656,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4657,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4658,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,5),this.state=4659,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,6),this.state=4660,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,7),this.state=4661,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4662,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_expr_uncompat(){let t,i=new cd(this.context,this.state);this.enterRule(i,864,e.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(i,1),this.state=4665,t=this.tokenStream.LA(1),!(t-52&-32)&&1<<t-52&811009||!(t-88&-32)&&1<<t-88&134217757||!(t-127&-32)&&1<<t-127&33603585||!(t-174&-32)&&1<<t-174&167772167||!(t-232&-32)&&1<<t-232&549453857||269===t||283===t||!(t-303&-32)&&1<<t-303&196609?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_table_uncompat(){let t,i=new ld(this.context,this.state);this.enterRule(i,866,e.RULE_keyword_table_uncompat);try{this.enterOuterAlt(i,1),this.state=4667,t=this.tokenStream.LA(1),47===t||119===t||278===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_select_uncompat(){let t,i=new hd(this.context,this.state);this.enterRule(i,868,e.RULE_keyword_select_uncompat);try{this.enterOuterAlt(i,1),this.state=4669,t=this.tokenStream.LA(1),!(t-42&-32)&&1<<t-42&641||109===t||123===t||!(t-151&-32)&&1<<t-151&2147745793||!(t-305&-32)&&1<<t-305&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_alter_uncompat(){let t=new dd(this.context,this.state);this.enterRule(t,870,e.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(t,1),this.state=4671,this.match(e.COLUMN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_in_uncompat(){let t=new ud(this.context,this.state);this.enterRule(t,872,e.RULE_keyword_in_uncompat);try{this.enterOuterAlt(t,1),this.state=4673,this.match(e.COMPACT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_window_uncompat(){let t,i=new gd(this.context,this.state);this.enterRule(i,874,e.RULE_keyword_window_uncompat);try{this.enterOuterAlt(i,1),this.state=4675,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_hint_uncompat(){let t,i=new pd(this.context,this.state);this.enterRule(i,876,e.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(i,1),this.state=4677,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_as_compat(){let t,i=new md(this.context,this.state);this.enterRule(i,878,e.RULE_keyword_as_compat);try{this.enterOuterAlt(i,1),this.state=4679,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4024598343||!(t-104&-32)&&1<<t-104&4015470493||!(t-136&-32)&&1<<t-136&3221118877||!(t-168&-32)&&1<<t-168&2013213709||!(t-202&-32)&&1<<t-202&3086980575||!(t-234&-32)&&1<<t-234&2529672179||!(t-267&-32)&&1<<t-267&4286506979||!(t-299&-32)&&1<<t-299&101302185?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_compat(){let t,i=new fd(this.context,this.state);this.enterRule(i,880,e.RULE_keyword_compat);try{this.enterOuterAlt(i,1),this.state=4681,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4293066575||!(t-104&-32)&&1<<t-104&4017567709||!(t-136&-32)&&1<<t-136&4294860701||!(t-168&-32)&&1<<t-168&2147434045||!(t-200&-32)&&1<<t-200&4294965245||!(t-233&-32)&&1<<t-233&2946463719||!(t-265&-32)&&1<<t-265&4261126061||!(t-297&-32)&&1<<t-297&439877287?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_id(){let t,i=new _d(this.context,this.state);this.enterRule(i,882,e.RULE_type_id);try{this.enterOuterAlt(i,1),this.state=4683,t=this.tokenStream.LA(1),68===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&2155872257||!(t-290&-32)&&1<<t-290&67110913?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bool_value(){let t,i=new vd(this.context,this.state);this.enterRule(i,884,e.RULE_bool_value);try{this.enterOuterAlt(i,1),this.state=4685,t=this.tokenStream.LA(1),132===t||300===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}real(){let t=new Cd(this.context,this.state);this.enterRule(t,886,e.RULE_real);try{this.enterOuterAlt(t,1),this.state=4687,this.match(e.REAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer(){let t,i=new Ed(this.context,this.state);this.enterRule(i,888,e.RULE_integer);try{this.enterOuterAlt(i,1),this.state=4689,t=this.tokenStream.LA(1),329===t||330===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_query_yq(){let t=new bd(this.context,this.state);this.enterRule(t,890,e.RULE_sql_query_yq);try{switch(this.state=4696,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,515,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4691,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(t,2),this.state=4692,this.match(e.PRAGMA),this.state=4693,this.match(e.ANSI),this.state=4694,this.match(e.DIGITS),this.state=4695,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list_yq(){let t,i=new Sd(this.context,this.state);this.enterRule(i,892,e.RULE_sql_stmt_list_yq);try{let s;for(this.enterOuterAlt(i,1),this.state=4701,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4698,this.match(e.SEMICOLON),this.state=4703,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=4704,this.sql_stmt_yq(),this.state=4713,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=4706,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4705,this.match(e.SEMICOLON),this.state=4708,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=4710,this.sql_stmt_yq()}this.state=4715,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context)}for(this.state=4719,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4716,this.match(e.SEMICOLON),this.state=4721,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4722,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_yq(){let t,i=new yd(this.context,this.state);this.enterRule(i,894,e.RULE_sql_stmt_yq);try{this.enterOuterAlt(i,1),this.state=4729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=4724,this.match(e.EXPLAIN),this.state=4727,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=4725,this.match(e.QUERY),this.state=4726,this.match(e.PLAN))),this.state=4731,this.sql_stmt_core_yq()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core_yq(){let t=new wd(this.context,this.state);this.enterRule(t,896,e.RULE_sql_stmt_core_yq);try{switch(this.state=4746,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,522,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4733,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4734,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=4735,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=4736,this.use_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=4737,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(t,6),this.state=4738,this.declare_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=4739,this.import_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=4740,this.export_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=4741,this.do_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=4742,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=4743,this.if_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=4744,this.for_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=4745,this.values_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_name(){let t=new Rd(this.context,this.state);this.enterRule(t,898,e.RULE_replication_name);try{this.enterOuterAlt(t,1),this.state=4748,this.match(e.AS),this.state=4749,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}where_expr(){let t=new Ld(this.context,this.state);this.enterRule(t,900,e.RULE_where_expr);try{this.enterOuterAlt(t,1),this.state=4751,this.match(e.WHERE),this.state=4752,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}static{this._serializedATN=[4,1,334,4755,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,1,0,1,0,1,0,1,0,1,0,3,0,908,8,0,1,1,5,1,911,8,1,10,1,12,1,914,9,1,1,1,1,1,4,1,918,8,1,11,1,12,1,919,1,1,5,1,923,8,1,10,1,12,1,926,9,1,1,1,5,1,929,8,1,10,1,12,1,932,9,1,1,1,1,1,1,2,5,2,937,8,2,10,2,12,2,940,9,2,1,2,1,2,1,3,5,3,945,8,3,10,3,12,3,948,9,3,1,3,1,3,4,3,952,8,3,11,3,12,3,953,5,3,956,8,3,10,3,12,3,959,9,3,1,3,1,3,1,3,5,3,964,8,3,10,3,12,3,967,9,3,1,4,1,4,3,4,971,8,4,1,5,1,5,1,5,3,5,976,8,5,3,5,978,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1042,8,6,1,7,1,7,1,7,5,7,1047,8,7,10,7,12,7,1050,9,7,1,7,3,7,1053,8,7,1,8,1,8,1,8,5,8,1058,8,8,10,8,12,8,1061,9,8,1,9,1,9,1,9,5,9,1066,8,9,10,9,12,9,1069,9,9,1,10,1,10,3,10,1073,8,10,1,11,1,11,3,11,1077,8,11,1,11,1,11,1,11,1,12,3,12,1083,8,12,1,12,1,12,1,12,1,12,3,12,1089,8,12,1,12,3,12,1092,8,12,1,12,1,12,3,12,1096,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1104,8,12,1,12,1,12,3,12,1108,8,12,1,12,3,12,1111,8,12,1,12,1,12,3,12,1115,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1126,8,12,1,12,4,12,1129,8,12,11,12,12,12,1130,3,12,1133,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1140,8,14,10,14,12,14,1143,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1163,8,18,1,18,5,18,1166,8,18,10,18,12,18,1169,9,18,1,18,1,18,1,18,1,18,4,18,1175,8,18,11,18,12,18,1176,3,18,1179,8,18,1,19,1,19,1,19,5,19,1184,8,19,10,19,12,19,1187,9,19,1,20,1,20,1,20,5,20,1192,8,20,10,20,12,20,1195,9,20,1,21,1,21,1,21,5,21,1200,8,21,10,21,12,21,1203,9,21,1,22,1,22,1,22,1,22,3,22,1209,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1219,8,24,3,24,1221,8,24,5,24,1223,8,24,10,24,12,24,1226,9,24,1,24,1,24,3,24,1230,8,24,1,25,1,25,3,25,1234,8,25,1,25,1,25,1,26,1,26,3,26,1240,8,26,1,26,1,26,1,27,1,27,3,27,1246,8,27,1,28,1,28,3,28,1250,8,28,1,29,1,29,3,29,1254,8,29,1,29,3,29,1257,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1264,8,30,1,30,1,30,1,30,1,30,3,30,1270,8,30,5,30,1272,8,30,10,30,12,30,1275,9,30,1,31,1,31,3,31,1279,8,31,1,31,3,31,1282,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1294,8,32,10,32,12,32,1297,9,32,1,33,1,33,3,33,1301,8,33,1,33,3,33,1304,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1318,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1325,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1336,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1347,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1367,8,38,1,38,1,38,1,39,1,39,3,39,1373,8,39,1,39,4,39,1376,8,39,11,39,12,39,1377,1,39,1,39,3,39,1382,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1396,8,40,3,40,1398,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1405,8,42,1,43,1,43,1,44,1,44,3,44,1411,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1420,8,46,10,46,12,46,1423,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1430,8,47,1,48,1,48,1,48,1,48,3,48,1436,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1443,8,49,1,49,1,49,1,49,1,49,5,49,1449,8,49,10,49,12,49,1452,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1464,8,51,1,51,1,51,1,52,1,52,3,52,1470,8,52,1,52,1,52,3,52,1474,8,52,1,52,3,52,1477,8,52,3,52,1479,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1487,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1495,8,54,1,54,1,54,1,54,1,54,3,54,1501,8,54,1,54,1,54,1,54,1,54,3,54,1507,8,54,1,54,1,54,1,55,1,55,3,55,1513,8,55,1,55,3,55,1516,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1523,8,56,10,56,12,56,1526,9,56,1,57,1,57,1,57,1,57,5,57,1532,8,57,10,57,12,57,1535,9,57,1,57,1,57,1,58,1,58,3,58,1541,8,58,1,59,1,59,1,59,1,59,5,59,1547,8,59,10,59,12,59,1550,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1562,8,61,1,62,1,62,1,62,5,62,1567,8,62,10,62,12,62,1570,9,62,1,62,3,62,1573,8,62,1,63,1,63,1,63,5,63,1578,8,63,10,63,12,63,1581,9,63,1,63,3,63,1584,8,63,1,64,1,64,1,64,3,64,1589,8,64,1,65,1,65,1,65,5,65,1594,8,65,10,65,12,65,1597,9,65,1,66,1,66,1,66,1,66,3,66,1603,8,66,1,66,3,66,1606,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1613,8,67,1,67,1,67,3,67,1617,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1627,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1650,8,71,1,72,1,72,1,72,1,72,3,72,1656,8,72,1,73,1,73,3,73,1660,8,73,1,74,1,74,1,74,5,74,1665,8,74,10,74,12,74,1668,9,74,1,75,1,75,1,75,3,75,1673,8,75,1,76,1,76,1,76,5,76,1678,8,76,10,76,12,76,1681,9,76,1,77,3,77,1684,8,77,1,77,1,77,3,77,1688,8,77,1,78,1,78,1,79,1,79,3,79,1694,8,79,1,80,1,80,1,80,3,80,1699,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1708,8,82,1,82,3,82,1711,8,82,1,82,1,82,1,82,1,82,3,82,1717,8,82,1,83,1,83,1,83,3,83,1722,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1730,8,84,1,85,1,85,1,85,5,85,1735,8,85,10,85,12,85,1738,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1757,8,88,10,88,12,88,1760,9,88,1,88,3,88,1763,8,88,3,88,1765,8,88,1,88,1,88,3,88,1769,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1776,8,89,10,89,12,89,1779,9,89,1,89,3,89,1782,8,89,3,89,1784,8,89,1,89,1,89,3,89,1788,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1795,8,90,10,90,12,90,1798,9,90,1,90,3,90,1801,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1837,8,96,10,96,12,96,1840,9,96,1,96,3,96,1843,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1863,8,99,1,99,3,99,1866,8,99,1,99,1,99,1,99,1,99,3,99,1872,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1892,8,100,1,100,5,100,1895,8,100,10,100,12,100,1898,9,100,1,101,1,101,1,101,3,101,1903,8,101,1,101,5,101,1906,8,101,10,101,12,101,1909,9,101,3,101,1911,8,101,1,102,1,102,3,102,1915,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1942,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1950,8,105,1,106,3,106,1953,8,106,1,106,1,106,1,106,5,106,1958,8,106,10,106,12,106,1961,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1973,8,109,1,109,1,109,3,109,1977,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1989,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,2e3,8,112,10,112,12,112,2003,9,112,1,112,1,112,3,112,2007,8,112,1,113,1,113,1,113,1,113,1,113,3,113,2014,8,113,1,114,1,114,3,114,2018,8,114,1,115,1,115,1,115,5,115,2023,8,115,10,115,12,115,2026,9,115,1,116,1,116,1,116,1,116,5,116,2032,8,116,10,116,12,116,2035,9,116,1,117,1,117,1,117,1,117,5,117,2041,8,117,10,117,12,117,2044,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2051,8,118,1,119,1,119,3,119,2055,8,119,1,119,1,119,3,119,2059,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2066,8,120,3,120,2068,8,120,1,121,3,121,2071,8,121,1,121,1,121,1,121,3,121,2076,8,121,1,121,1,121,1,121,3,121,2081,8,121,1,122,1,122,3,122,2085,8,122,1,122,1,122,1,122,5,122,2090,8,122,10,122,12,122,2093,9,122,1,122,1,122,1,122,1,122,3,122,2099,8,122,1,122,1,122,3,122,2103,8,122,1,122,3,122,2106,8,122,1,122,1,122,3,122,2110,8,122,1,122,1,122,3,122,2114,8,122,3,122,2116,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2125,8,124,10,124,12,124,2128,9,124,1,125,1,125,1,125,1,125,5,125,2134,8,125,10,125,12,125,2137,9,125,1,125,1,125,3,125,2141,8,125,1,125,1,125,1,125,1,125,3,125,2147,8,125,1,125,1,125,1,125,3,125,2152,8,125,1,125,3,125,2155,8,125,1,125,1,125,3,125,2159,8,125,1,125,1,125,3,125,2163,8,125,1,126,3,126,2166,8,126,1,127,1,127,3,127,2170,8,127,1,127,1,127,3,127,2174,8,127,1,127,1,127,1,127,1,127,5,127,2180,8,127,10,127,12,127,2183,9,127,1,127,3,127,2186,8,127,1,127,1,127,3,127,2190,8,127,1,127,1,127,3,127,2194,8,127,1,127,3,127,2197,8,127,1,127,3,127,2200,8,127,1,127,1,127,3,127,2204,8,127,1,127,3,127,2207,8,127,1,127,3,127,2210,8,127,1,128,1,128,1,128,3,128,2215,8,128,1,128,3,128,2218,8,128,1,128,3,128,2221,8,128,1,128,3,128,2224,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2238,8,129,3,129,2240,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2251,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2259,8,132,10,132,12,132,2262,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2271,8,134,1,134,3,134,2274,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2281,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2305,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2314,8,138,10,138,12,138,2317,9,138,1,139,4,139,2320,8,139,11,139,12,139,2321,1,140,1,140,3,140,2326,8,140,1,141,1,141,3,141,2330,8,141,1,141,1,141,3,141,2334,8,141,1,141,1,141,3,141,2338,8,141,1,141,1,141,3,141,2342,8,141,1,141,1,141,3,141,2346,8,141,1,141,1,141,3,141,2350,8,141,1,141,1,141,1,141,1,141,3,141,2356,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2363,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2373,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2382,8,144,10,144,12,144,2385,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2395,8,146,10,146,12,146,2398,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2411,8,149,10,149,12,149,2414,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2421,8,151,10,151,12,151,2424,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2443,8,158,1,158,1,158,1,159,1,159,3,159,2449,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2456,8,159,1,160,1,160,1,160,5,160,2461,8,160,10,160,12,160,2464,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2471,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2478,8,163,10,163,12,163,2481,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2517,8,168,3,168,2519,8,168,1,169,3,169,2522,8,169,1,169,1,169,1,169,3,169,2527,8,169,1,169,1,169,3,169,2531,8,169,5,169,2533,8,169,10,169,12,169,2536,9,169,1,170,1,170,1,170,3,170,2541,8,170,1,171,1,171,1,171,1,171,3,171,2547,8,171,1,171,1,171,3,171,2551,8,171,1,172,1,172,1,172,3,172,2556,8,172,1,172,1,172,1,172,3,172,2561,8,172,3,172,2563,8,172,1,173,1,173,3,173,2567,8,173,1,173,1,173,1,173,3,173,2572,8,173,1,173,3,173,2575,8,173,3,173,2577,8,173,1,173,1,173,3,173,2581,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2592,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2603,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2614,8,179,1,179,1,179,3,179,2618,8,179,1,179,1,179,3,179,2622,8,179,1,179,1,179,3,179,2626,8,179,1,179,3,179,2629,8,179,1,179,1,179,3,179,2633,8,179,1,179,3,179,2636,8,179,1,180,1,180,1,180,1,180,3,180,2642,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2649,8,181,10,181,12,181,2652,9,181,3,181,2654,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2668,8,182,1,182,1,182,1,182,1,182,3,182,2674,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2687,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2694,8,184,1,184,1,184,1,184,3,184,2699,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2706,8,186,1,187,1,187,1,187,5,187,2711,8,187,10,187,12,187,2714,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2722,8,189,1,190,1,190,1,190,3,190,2727,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2735,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2748,8,191,10,191,12,191,2751,9,191,1,192,1,192,1,192,3,192,2756,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2764,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2773,8,194,1,194,1,194,3,194,2777,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2786,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2798,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2805,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2813,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2834,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2842,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2851,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2861,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2868,8,207,10,207,12,207,2871,9,207,1,207,1,207,3,207,2875,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2882,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2892,8,209,1,209,1,209,1,209,3,209,2897,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2904,8,209,10,209,12,209,2907,9,209,1,209,3,209,2910,8,209,1,209,1,209,3,209,2914,8,209,1,209,3,209,2917,8,209,1,209,3,209,2920,8,209,1,209,3,209,2923,8,209,1,209,3,209,2926,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2934,8,210,1,211,1,211,1,211,3,211,2939,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2950,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2957,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2968,8,216,10,216,12,216,2971,9,216,1,217,1,217,1,217,5,217,2976,8,217,10,217,12,217,2979,9,217,1,218,1,218,3,218,2983,8,218,1,219,1,219,1,219,5,219,2988,8,219,10,219,12,219,2991,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,3003,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,3012,8,222,10,222,12,222,3015,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,3024,8,224,1,225,1,225,1,225,1,225,3,225,3030,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3037,8,226,10,226,12,226,3040,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3054,8,228,10,228,12,228,3057,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3077,8,232,10,232,12,232,3080,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3099,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3108,8,234,10,234,12,234,3111,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3118,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3126,8,236,10,236,12,236,3129,9,236,1,237,1,237,3,237,3133,8,237,1,238,1,238,3,238,3137,8,238,1,238,1,238,1,239,1,239,3,239,3143,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3179,8,245,10,245,12,245,3182,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3191,8,246,10,246,12,246,3194,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3235,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3243,8,257,1,257,3,257,3246,8,257,1,257,1,257,3,257,3250,8,257,1,258,1,258,3,258,3254,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3262,8,259,10,259,12,259,3265,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3275,8,259,10,259,12,259,3278,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3288,8,259,10,259,12,259,3291,9,259,1,259,1,259,3,259,3295,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3305,8,260,10,260,12,260,3308,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3316,8,260,10,260,12,260,3319,9,260,1,260,1,260,3,260,3323,8,260,1,260,3,260,3326,8,260,1,261,1,261,3,261,3330,8,261,1,261,1,261,3,261,3334,8,261,1,262,1,262,3,262,3338,8,262,1,262,3,262,3341,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3352,8,265,10,265,12,265,3355,9,265,1,265,3,265,3358,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3370,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3382,8,269,10,269,12,269,3385,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3399,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3414,8,274,1,274,3,274,3417,8,274,1,275,1,275,1,275,1,275,1,275,1,275,5,275,3425,8,275,10,275,12,275,3428,9,275,3,275,3430,8,275,1,276,1,276,1,276,1,276,1,276,1,276,3,276,3438,8,276,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,5,278,3448,8,278,10,278,12,278,3451,9,278,3,278,3453,8,278,1,278,1,278,1,279,1,279,1,279,1,279,1,280,1,280,3,280,3463,8,280,1,281,1,281,1,281,1,281,5,281,3469,8,281,10,281,12,281,3472,9,281,1,281,1,281,1,281,3,281,3477,8,281,1,282,1,282,1,282,1,282,5,282,3483,8,282,10,282,12,282,3486,9,282,1,282,1,282,1,283,1,283,1,283,3,283,3493,8,283,1,284,1,284,1,284,1,284,1,284,3,284,3500,8,284,1,284,1,284,3,284,3504,8,284,1,284,1,284,1,285,1,285,1,285,1,285,5,285,3512,8,285,10,285,12,285,3515,9,285,1,286,1,286,1,286,1,286,3,286,3521,8,286,1,286,4,286,3524,8,286,11,286,12,286,3525,1,286,1,286,1,286,3,286,3531,8,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,5,287,3541,8,287,10,287,12,287,3544,9,287,1,287,3,287,3547,8,287,3,287,3549,8,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,5,288,3559,8,288,10,288,12,288,3562,9,288,1,288,3,288,3565,8,288,1,288,1,288,1,288,3,288,3570,8,288,1,289,1,289,1,289,1,289,3,289,3576,8,289,1,289,1,289,1,289,5,289,3581,8,289,10,289,12,289,3584,9,289,1,289,3,289,3587,8,289,1,290,1,290,3,290,3591,8,290,1,291,1,291,3,291,3595,8,291,1,292,1,292,3,292,3599,8,292,1,293,3,293,3602,8,293,1,293,1,293,1,293,1,294,1,294,1,294,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3618,8,296,10,296,12,296,3621,9,296,1,296,1,296,1,296,1,296,5,296,3627,8,296,10,296,12,296,3630,9,296,1,296,3,296,3633,8,296,1,296,1,296,1,296,3,296,3638,8,296,1,297,1,297,1,297,1,297,3,297,3644,8,297,1,297,1,297,1,297,1,297,1,297,5,297,3651,8,297,10,297,12,297,3654,9,297,1,297,1,297,1,297,1,297,5,297,3660,8,297,10,297,12,297,3663,9,297,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,3,298,3679,8,298,1,298,1,298,3,298,3683,8,298,1,298,1,298,3,298,3687,8,298,3,298,3689,8,298,1,299,1,299,3,299,3693,8,299,1,300,1,300,1,300,5,300,3698,8,300,10,300,12,300,3701,9,300,1,300,3,300,3704,8,300,1,300,1,300,3,300,3708,8,300,3,300,3710,8,300,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,5,302,3725,8,302,10,302,12,302,3728,9,302,1,303,1,303,3,303,3732,8,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,5,306,3754,8,306,10,306,12,306,3757,9,306,1,307,1,307,3,307,3761,8,307,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,309,5,309,3777,8,309,10,309,12,309,3780,9,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,311,1,311,1,311,5,311,3793,8,311,10,311,12,311,3796,9,311,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,5,313,3809,8,313,10,313,12,313,3812,9,313,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,3,316,3826,8,316,1,317,1,317,3,317,3830,8,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,3841,8,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,5,319,3851,8,319,10,319,12,319,3854,9,319,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,5,321,3866,8,321,10,321,12,321,3869,9,321,1,322,1,322,3,322,3873,8,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,3,325,3888,8,325,1,326,1,326,1,326,5,326,3893,8,326,10,326,12,326,3896,9,326,1,327,1,327,1,327,1,327,1,327,3,327,3903,8,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,5,328,3912,8,328,10,328,12,328,3915,9,328,1,328,1,328,4,328,3919,8,328,11,328,12,328,3920,1,328,5,328,3924,8,328,10,328,12,328,3927,9,328,1,328,5,328,3930,8,328,10,328,12,328,3933,9,328,3,328,3935,8,328,1,329,3,329,3938,8,329,1,329,1,329,1,329,1,329,1,329,3,329,3945,8,329,1,330,3,330,3948,8,330,1,330,3,330,3951,8,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,3,330,3960,8,330,1,331,1,331,1,331,3,331,3965,8,331,1,331,3,331,3968,8,331,1,331,1,331,1,331,1,331,1,331,1,331,5,331,3976,8,331,10,331,12,331,3979,9,331,1,331,3,331,3982,8,331,3,331,3984,8,331,1,331,1,331,1,331,1,331,1,331,3,331,3991,8,331,1,331,3,331,3994,8,331,1,331,1,331,3,331,3998,8,331,3,331,4e3,8,331,1,331,3,331,4003,8,331,1,332,1,332,1,332,3,332,4008,8,332,1,333,3,333,4011,8,333,1,333,1,333,1,333,3,333,4016,8,333,1,334,1,334,1,334,1,334,1,334,1,334,5,334,4024,8,334,10,334,12,334,4027,9,334,1,334,1,334,3,334,4031,8,334,1,335,1,335,1,335,1,335,1,335,1,335,1,335,5,335,4040,8,335,10,335,12,335,4043,9,335,1,335,3,335,4046,8,335,1,335,1,335,3,335,4050,8,335,3,335,4052,8,335,1,335,1,335,3,335,4056,8,335,1,335,1,335,1,335,3,335,4061,8,335,1,335,1,335,1,335,1,335,5,335,4067,8,335,10,335,12,335,4070,9,335,3,335,4072,8,335,1,335,3,335,4075,8,335,1,335,3,335,4078,8,335,1,336,1,336,1,336,3,336,4083,8,336,1,336,1,336,1,337,1,337,3,337,4089,8,337,1,337,3,337,4092,8,337,1,338,1,338,3,338,4096,8,338,1,339,1,339,1,339,1,339,3,339,4102,8,339,1,340,3,340,4105,8,340,1,340,1,340,1,340,1,340,1,340,1,340,3,340,4113,8,340,1,340,3,340,4116,8,340,1,341,3,341,4119,8,341,1,341,1,341,1,341,1,341,1,341,3,341,4126,8,341,1,341,1,341,3,341,4130,8,341,1,341,3,341,4133,8,341,1,342,1,342,3,342,4137,8,342,1,343,1,343,1,343,5,343,4142,8,343,10,343,12,343,4145,9,343,1,344,1,344,1,344,1,344,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,5,347,4163,8,347,10,347,12,347,4166,9,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,3,348,4175,8,348,1,348,1,348,3,348,4179,8,348,1,348,3,348,4182,8,348,1,349,1,349,1,349,1,349,5,349,4188,8,349,10,349,12,349,4191,9,349,1,349,1,349,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,3,352,4206,8,352,1,352,1,352,1,352,1,352,5,352,4212,8,352,10,352,12,352,4215,9,352,1,353,1,353,1,353,1,353,1,353,3,353,4222,8,353,1,354,1,354,1,354,1,355,1,355,1,355,3,355,4230,8,355,1,356,1,356,1,356,1,356,1,356,1,357,1,357,3,357,4239,8,357,1,358,1,358,1,358,1,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,1,360,1,360,1,360,5,360,4255,8,360,10,360,12,360,4258,9,360,1,360,1,360,1,361,1,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,5,362,4272,8,362,10,362,12,362,4275,9,362,1,362,1,362,1,363,1,363,1,363,1,363,3,363,4283,8,363,1,363,1,363,1,364,1,364,1,364,5,364,4290,8,364,10,364,12,364,4293,9,364,1,365,1,365,1,365,1,365,1,366,1,366,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,5,368,4309,8,368,10,368,12,368,4312,9,368,1,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4323,8,371,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,3,373,4333,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,3,375,4342,8,375,1,376,1,376,1,377,1,377,1,377,1,378,1,378,1,378,5,378,4352,8,378,10,378,12,378,4355,9,378,1,379,1,379,1,379,1,379,1,380,1,380,1,381,1,381,1,381,1,381,1,382,3,382,4368,8,382,1,382,3,382,4371,8,382,1,382,3,382,4374,8,382,1,382,3,382,4377,8,382,1,383,1,383,1,384,1,384,3,384,4383,8,384,1,384,1,384,1,384,1,385,1,385,1,386,1,386,1,386,3,386,4393,8,386,1,387,1,387,1,388,1,388,3,388,4399,8,388,1,389,1,389,1,389,1,389,1,389,1,390,1,390,1,390,1,390,3,390,4410,8,390,1,390,3,390,4413,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4425,8,391,1,392,1,392,1,392,1,393,1,393,1,393,1,393,1,393,3,393,4435,8,393,1,394,1,394,1,394,1,394,3,394,4441,8,394,1,395,1,395,1,396,1,396,1,397,1,397,1,397,1,397,1,397,3,397,4452,8,397,1,398,1,398,1,398,5,398,4457,8,398,10,398,12,398,4460,9,398,1,398,3,398,4463,8,398,1,399,1,399,1,399,1,400,1,400,1,400,1,400,3,400,4472,8,400,1,400,1,400,4,400,4476,8,400,11,400,12,400,4477,1,401,1,401,3,401,4482,8,401,1,401,1,401,1,401,3,401,4487,8,401,1,401,1,401,1,401,1,401,3,401,4493,8,401,1,401,3,401,4496,8,401,1,402,1,402,1,403,1,403,3,403,4502,8,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,3,404,4511,8,404,1,405,1,405,1,405,1,405,1,405,1,405,3,405,4519,8,405,1,406,1,406,1,406,1,406,1,406,3,406,4526,8,406,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,407,3,407,4536,8,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,3,408,4545,8,408,1,409,1,409,1,409,1,409,1,409,1,409,1,409,3,409,4554,8,409,1,410,1,410,1,410,1,410,1,410,1,410,1,410,1,410,3,410,4564,8,410,1,411,1,411,3,411,4568,8,411,1,412,1,412,3,412,4572,8,412,1,413,1,413,3,413,4576,8,413,1,414,1,414,3,414,4580,8,414,1,415,1,415,3,415,4584,8,415,1,416,1,416,3,416,4588,8,416,1,417,1,417,3,417,4592,8,417,1,418,1,418,3,418,4596,8,418,1,419,1,419,3,419,4600,8,419,1,420,1,420,3,420,4604,8,420,1,421,1,421,3,421,4608,8,421,1,422,1,422,3,422,4612,8,422,1,423,1,423,1,423,3,423,4617,8,423,1,424,1,424,1,424,3,424,4622,8,424,1,425,1,425,1,425,3,425,4627,8,425,1,425,1,425,3,425,4631,8,425,1,426,1,426,3,426,4635,8,426,1,427,1,427,1,427,3,427,4640,8,427,1,428,3,428,4643,8,428,1,428,1,428,1,429,1,429,3,429,4649,8,429,1,430,3,430,4652,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4664,8,431,1,432,1,432,1,433,1,433,1,434,1,434,1,435,1,435,1,436,1,436,1,437,1,437,1,438,1,438,1,439,1,439,1,440,1,440,1,441,1,441,1,442,1,442,1,443,1,443,1,444,1,444,1,445,1,445,1,445,1,445,1,445,3,445,4697,8,445,1,446,5,446,4700,8,446,10,446,12,446,4703,9,446,1,446,1,446,4,446,4707,8,446,11,446,12,446,4708,1,446,5,446,4712,8,446,10,446,12,446,4715,9,446,1,446,5,446,4718,8,446,10,446,12,446,4721,9,446,1,446,1,446,1,447,1,447,1,447,3,447,4728,8,447,3,447,4730,8,447,1,447,1,447,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,3,448,4747,8,448,1,449,1,449,1,449,1,450,1,450,1,450,1,450,0,0,451,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,0,40,2,0,52,52,283,283,6,0,144,144,155,155,181,181,187,187,239,239,259,259,1,0,5,8,1,0,16,17,1,0,19,21,2,0,16,18,199,199,2,0,114,114,120,120,4,0,120,120,132,132,300,300,307,307,2,0,80,80,304,304,2,0,50,50,102,102,2,0,24,24,205,205,2,0,42,42,109,109,2,0,164,164,268,268,3,0,105,105,183,183,211,211,2,0,64,64,285,285,2,0,209,209,270,270,2,0,53,53,284,284,3,0,191,192,194,194,267,267,2,0,40,40,111,111,2,0,147,147,312,312,2,0,185,185,198,198,2,0,56,56,287,287,2,0,119,119,309,309,3,0,43,43,103,103,242,242,3,0,56,56,262,262,287,287,2,0,142,142,311,311,3,0,106,106,234,234,286,286,2,0,39,39,280,280,2,0,77,77,266,266,3,0,149,149,236,236,263,263,2,0,138,138,228,228,1,0,327,328,20,0,52,52,65,66,70,71,88,88,90,92,115,115,127,127,141,142,152,152,174,176,199,199,201,201,232,232,237,237,254,255,261,261,269,269,283,283,303,303,319,320,3,0,47,47,119,119,278,278,11,0,42,42,49,49,51,51,109,109,123,123,151,151,169,169,182,182,305,305,321,321,323,323,57,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,74,78,78,80,86,89,89,93,99,101,104,106,108,111,114,116,117,120,122,124,124,126,126,128,131,133,136,138,140,143,148,150,150,153,165,167,168,170,171,178,178,180,181,184,194,196,198,202,206,208,210,212,212,214,214,217,228,230,231,233,235,238,243,245,247,249,252,256,257,259,260,262,262,265,265,267,268,272,277,280,282,284,289,291,299,302,302,304,304,306,312,314,315,318,318,324,325,49,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,75,78,78,80,87,89,89,93,104,106,108,110,114,116,117,120,122,124,126,128,131,133,136,138,140,143,148,150,150,153,168,170,173,177,181,184,198,200,200,202,210,212,231,233,235,238,243,245,247,249,253,256,260,262,262,264,265,267,268,270,270,272,277,280,282,284,289,291,299,302,302,304,304,306,315,317,318,322,322,324,325,12,0,68,68,105,105,118,118,137,137,183,183,211,211,248,248,271,271,279,279,290,290,301,301,316,316,2,0,132,132,300,300,1,0,329,330,5094,0,907,1,0,0,0,2,912,1,0,0,0,4,938,1,0,0,0,6,946,1,0,0,0,8,970,1,0,0,0,10,977,1,0,0,0,12,1041,1,0,0,0,14,1052,1,0,0,0,16,1054,1,0,0,0,18,1062,1,0,0,0,20,1070,1,0,0,0,22,1074,1,0,0,0,24,1132,1,0,0,0,26,1134,1,0,0,0,28,1136,1,0,0,0,30,1144,1,0,0,0,32,1147,1,0,0,0,34,1151,1,0,0,0,36,1154,1,0,0,0,38,1180,1,0,0,0,40,1188,1,0,0,0,42,1196,1,0,0,0,44,1208,1,0,0,0,46,1210,1,0,0,0,48,1224,1,0,0,0,50,1233,1,0,0,0,52,1239,1,0,0,0,54,1245,1,0,0,0,56,1249,1,0,0,0,58,1251,1,0,0,0,60,1260,1,0,0,0,62,1276,1,0,0,0,64,1285,1,0,0,0,66,1298,1,0,0,0,68,1324,1,0,0,0,70,1346,1,0,0,0,72,1348,1,0,0,0,74,1355,1,0,0,0,76,1362,1,0,0,0,78,1370,1,0,0,0,80,1385,1,0,0,0,82,1399,1,0,0,0,84,1404,1,0,0,0,86,1406,1,0,0,0,88,1410,1,0,0,0,90,1412,1,0,0,0,92,1416,1,0,0,0,94,1424,1,0,0,0,96,1435,1,0,0,0,98,1437,1,0,0,0,100,1455,1,0,0,0,102,1459,1,0,0,0,104,1478,1,0,0,0,106,1486,1,0,0,0,108,1488,1,0,0,0,110,1510,1,0,0,0,112,1519,1,0,0,0,114,1527,1,0,0,0,116,1540,1,0,0,0,118,1542,1,0,0,0,120,1553,1,0,0,0,122,1561,1,0,0,0,124,1563,1,0,0,0,126,1574,1,0,0,0,128,1585,1,0,0,0,130,1590,1,0,0,0,132,1598,1,0,0,0,134,1612,1,0,0,0,136,1626,1,0,0,0,138,1630,1,0,0,0,140,1634,1,0,0,0,142,1649,1,0,0,0,144,1651,1,0,0,0,146,1657,1,0,0,0,148,1661,1,0,0,0,150,1669,1,0,0,0,152,1674,1,0,0,0,154,1683,1,0,0,0,156,1689,1,0,0,0,158,1693,1,0,0,0,160,1698,1,0,0,0,162,1700,1,0,0,0,164,1716,1,0,0,0,166,1721,1,0,0,0,168,1725,1,0,0,0,170,1731,1,0,0,0,172,1739,1,0,0,0,174,1746,1,0,0,0,176,1751,1,0,0,0,178,1770,1,0,0,0,180,1789,1,0,0,0,182,1804,1,0,0,0,184,1809,1,0,0,0,186,1814,1,0,0,0,188,1819,1,0,0,0,190,1826,1,0,0,0,192,1831,1,0,0,0,194,1846,1,0,0,0,196,1851,1,0,0,0,198,1858,1,0,0,0,200,1891,1,0,0,0,202,1910,1,0,0,0,204,1914,1,0,0,0,206,1916,1,0,0,0,208,1941,1,0,0,0,210,1943,1,0,0,0,212,1952,1,0,0,0,214,1962,1,0,0,0,216,1967,1,0,0,0,218,1972,1,0,0,0,220,1980,1,0,0,0,222,1985,1,0,0,0,224,1990,1,0,0,0,226,2013,1,0,0,0,228,2015,1,0,0,0,230,2019,1,0,0,0,232,2027,1,0,0,0,234,2036,1,0,0,0,236,2050,1,0,0,0,238,2058,1,0,0,0,240,2060,1,0,0,0,242,2070,1,0,0,0,244,2082,1,0,0,0,246,2117,1,0,0,0,248,2121,1,0,0,0,250,2129,1,0,0,0,252,2165,1,0,0,0,254,2169,1,0,0,0,256,2211,1,0,0,0,258,2239,1,0,0,0,260,2250,1,0,0,0,262,2252,1,0,0,0,264,2255,1,0,0,0,266,2263,1,0,0,0,268,2270,1,0,0,0,270,2304,1,0,0,0,272,2306,1,0,0,0,274,2308,1,0,0,0,276,2310,1,0,0,0,278,2319,1,0,0,0,280,2323,1,0,0,0,282,2355,1,0,0,0,284,2372,1,0,0,0,286,2374,1,0,0,0,288,2376,1,0,0,0,290,2388,1,0,0,0,292,2391,1,0,0,0,294,2399,1,0,0,0,296,2405,1,0,0,0,298,2407,1,0,0,0,300,2415,1,0,0,0,302,2417,1,0,0,0,304,2425,1,0,0,0,306,2429,1,0,0,0,308,2431,1,0,0,0,310,2433,1,0,0,0,312,2435,1,0,0,0,314,2437,1,0,0,0,316,2442,1,0,0,0,318,2446,1,0,0,0,320,2457,1,0,0,0,322,2470,1,0,0,0,324,2472,1,0,0,0,326,2474,1,0,0,0,328,2482,1,0,0,0,330,2487,1,0,0,0,332,2492,1,0,0,0,334,2498,1,0,0,0,336,2518,1,0,0,0,338,2521,1,0,0,0,340,2537,1,0,0,0,342,2550,1,0,0,0,344,2552,1,0,0,0,346,2564,1,0,0,0,348,2591,1,0,0,0,350,2593,1,0,0,0,352,2596,1,0,0,0,354,2604,1,0,0,0,356,2606,1,0,0,0,358,2635,1,0,0,0,360,2641,1,0,0,0,362,2643,1,0,0,0,364,2667,1,0,0,0,366,2686,1,0,0,0,368,2698,1,0,0,0,370,2700,1,0,0,0,372,2705,1,0,0,0,374,2707,1,0,0,0,376,2715,1,0,0,0,378,2721,1,0,0,0,380,2723,1,0,0,0,382,2739,1,0,0,0,384,2755,1,0,0,0,386,2757,1,0,0,0,388,2767,1,0,0,0,390,2781,1,0,0,0,392,2789,1,0,0,0,394,2799,1,0,0,0,396,2814,1,0,0,0,398,2817,1,0,0,0,400,2826,1,0,0,0,402,2829,1,0,0,0,404,2843,1,0,0,0,406,2850,1,0,0,0,408,2852,1,0,0,0,410,2856,1,0,0,0,412,2860,1,0,0,0,414,2874,1,0,0,0,416,2876,1,0,0,0,418,2878,1,0,0,0,420,2933,1,0,0,0,422,2935,1,0,0,0,424,2945,1,0,0,0,426,2951,1,0,0,0,428,2956,1,0,0,0,430,2958,1,0,0,0,432,2962,1,0,0,0,434,2972,1,0,0,0,436,2982,1,0,0,0,438,2984,1,0,0,0,440,3002,1,0,0,0,442,3004,1,0,0,0,444,3008,1,0,0,0,446,3016,1,0,0,0,448,3020,1,0,0,0,450,3025,1,0,0,0,452,3031,1,0,0,0,454,3043,1,0,0,0,456,3048,1,0,0,0,458,3060,1,0,0,0,460,3063,1,0,0,0,462,3067,1,0,0,0,464,3070,1,0,0,0,466,3098,1,0,0,0,468,3100,1,0,0,0,470,3117,1,0,0,0,472,3119,1,0,0,0,474,3132,1,0,0,0,476,3134,1,0,0,0,478,3140,1,0,0,0,480,3146,1,0,0,0,482,3152,1,0,0,0,484,3159,1,0,0,0,486,3162,1,0,0,0,488,3169,1,0,0,0,490,3173,1,0,0,0,492,3185,1,0,0,0,494,3197,1,0,0,0,496,3200,1,0,0,0,498,3204,1,0,0,0,500,3208,1,0,0,0,502,3214,1,0,0,0,504,3217,1,0,0,0,506,3222,1,0,0,0,508,3226,1,0,0,0,510,3231,1,0,0,0,512,3238,1,0,0,0,514,3245,1,0,0,0,516,3251,1,0,0,0,518,3294,1,0,0,0,520,3296,1,0,0,0,522,3329,1,0,0,0,524,3335,1,0,0,0,526,3342,1,0,0,0,528,3344,1,0,0,0,530,3346,1,0,0,0,532,3361,1,0,0,0,534,3369,1,0,0,0,536,3371,1,0,0,0,538,3378,1,0,0,0,540,3386,1,0,0,0,542,3390,1,0,0,0,544,3398,1,0,0,0,546,3400,1,0,0,0,548,3416,1,0,0,0,550,3418,1,0,0,0,552,3437,1,0,0,0,554,3439,1,0,0,0,556,3443,1,0,0,0,558,3456,1,0,0,0,560,3462,1,0,0,0,562,3476,1,0,0,0,564,3478,1,0,0,0,566,3492,1,0,0,0,568,3494,1,0,0,0,570,3507,1,0,0,0,572,3516,1,0,0,0,574,3532,1,0,0,0,576,3550,1,0,0,0,578,3571,1,0,0,0,580,3590,1,0,0,0,582,3594,1,0,0,0,584,3598,1,0,0,0,586,3601,1,0,0,0,588,3606,1,0,0,0,590,3609,1,0,0,0,592,3611,1,0,0,0,594,3639,1,0,0,0,596,3688,1,0,0,0,598,3692,1,0,0,0,600,3709,1,0,0,0,602,3711,1,0,0,0,604,3717,1,0,0,0,606,3731,1,0,0,0,608,3733,1,0,0,0,610,3738,1,0,0,0,612,3745,1,0,0,0,614,3760,1,0,0,0,616,3762,1,0,0,0,618,3768,1,0,0,0,620,3786,1,0,0,0,622,3789,1,0,0,0,624,3797,1,0,0,0,626,3801,1,0,0,0,628,3813,1,0,0,0,630,3815,1,0,0,0,632,3820,1,0,0,0,634,3829,1,0,0,0,636,3831,1,0,0,0,638,3847,1,0,0,0,640,3855,1,0,0,0,642,3859,1,0,0,0,644,3872,1,0,0,0,646,3874,1,0,0,0,648,3879,1,0,0,0,650,3883,1,0,0,0,652,3889,1,0,0,0,654,3897,1,0,0,0,656,3913,1,0,0,0,658,3937,1,0,0,0,660,3947,1,0,0,0,662,3964,1,0,0,0,664,4004,1,0,0,0,666,4010,1,0,0,0,668,4017,1,0,0,0,670,4077,1,0,0,0,672,4082,1,0,0,0,674,4091,1,0,0,0,676,4093,1,0,0,0,678,4097,1,0,0,0,680,4104,1,0,0,0,682,4118,1,0,0,0,684,4136,1,0,0,0,686,4138,1,0,0,0,688,4146,1,0,0,0,690,4150,1,0,0,0,692,4152,1,0,0,0,694,4158,1,0,0,0,696,4169,1,0,0,0,698,4183,1,0,0,0,700,4194,1,0,0,0,702,4196,1,0,0,0,704,4201,1,0,0,0,706,4221,1,0,0,0,708,4223,1,0,0,0,710,4226,1,0,0,0,712,4231,1,0,0,0,714,4238,1,0,0,0,716,4240,1,0,0,0,718,4244,1,0,0,0,720,4249,1,0,0,0,722,4261,1,0,0,0,724,4266,1,0,0,0,726,4278,1,0,0,0,728,4286,1,0,0,0,730,4294,1,0,0,0,732,4298,1,0,0,0,734,4300,1,0,0,0,736,4305,1,0,0,0,738,4313,1,0,0,0,740,4317,1,0,0,0,742,4322,1,0,0,0,744,4326,1,0,0,0,746,4332,1,0,0,0,748,4334,1,0,0,0,750,4341,1,0,0,0,752,4343,1,0,0,0,754,4345,1,0,0,0,756,4348,1,0,0,0,758,4356,1,0,0,0,760,4360,1,0,0,0,762,4362,1,0,0,0,764,4367,1,0,0,0,766,4378,1,0,0,0,768,4380,1,0,0,0,770,4387,1,0,0,0,772,4389,1,0,0,0,774,4394,1,0,0,0,776,4398,1,0,0,0,778,4400,1,0,0,0,780,4412,1,0,0,0,782,4424,1,0,0,0,784,4426,1,0,0,0,786,4434,1,0,0,0,788,4436,1,0,0,0,790,4442,1,0,0,0,792,4444,1,0,0,0,794,4446,1,0,0,0,796,4453,1,0,0,0,798,4464,1,0,0,0,800,4467,1,0,0,0,802,4495,1,0,0,0,804,4497,1,0,0,0,806,4501,1,0,0,0,808,4510,1,0,0,0,810,4518,1,0,0,0,812,4525,1,0,0,0,814,4535,1,0,0,0,816,4544,1,0,0,0,818,4553,1,0,0,0,820,4563,1,0,0,0,822,4567,1,0,0,0,824,4571,1,0,0,0,826,4575,1,0,0,0,828,4579,1,0,0,0,830,4583,1,0,0,0,832,4587,1,0,0,0,834,4591,1,0,0,0,836,4595,1,0,0,0,838,4599,1,0,0,0,840,4603,1,0,0,0,842,4607,1,0,0,0,844,4611,1,0,0,0,846,4616,1,0,0,0,848,4621,1,0,0,0,850,4626,1,0,0,0,852,4634,1,0,0,0,854,4639,1,0,0,0,856,4642,1,0,0,0,858,4648,1,0,0,0,860,4651,1,0,0,0,862,4663,1,0,0,0,864,4665,1,0,0,0,866,4667,1,0,0,0,868,4669,1,0,0,0,870,4671,1,0,0,0,872,4673,1,0,0,0,874,4675,1,0,0,0,876,4677,1,0,0,0,878,4679,1,0,0,0,880,4681,1,0,0,0,882,4683,1,0,0,0,884,4685,1,0,0,0,886,4687,1,0,0,0,888,4689,1,0,0,0,890,4696,1,0,0,0,892,4701,1,0,0,0,894,4729,1,0,0,0,896,4746,1,0,0,0,898,4748,1,0,0,0,900,4751,1,0,0,0,902,908,3,2,1,0,903,904,5,227,0,0,904,905,5,46,0,0,905,906,5,329,0,0,906,908,3,4,2,0,907,902,1,0,0,0,907,903,1,0,0,0,908,1,1,0,0,0,909,911,5,22,0,0,910,909,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,915,1,0,0,0,914,912,1,0,0,0,915,924,3,10,5,0,916,918,5,22,0,0,917,916,1,0,0,0,918,919,1,0,0,0,919,917,1,0,0,0,919,920,1,0,0,0,920,921,1,0,0,0,921,923,3,10,5,0,922,917,1,0,0,0,923,926,1,0,0,0,924,922,1,0,0,0,924,925,1,0,0,0,925,930,1,0,0,0,926,924,1,0,0,0,927,929,5,22,0,0,928,927,1,0,0,0,929,932,1,0,0,0,930,928,1,0,0,0,930,931,1,0,0,0,931,933,1,0,0,0,932,930,1,0,0,0,933,934,5,0,0,1,934,3,1,0,0,0,935,937,5,22,0,0,936,935,1,0,0,0,937,940,1,0,0,0,938,936,1,0,0,0,938,939,1,0,0,0,939,941,1,0,0,0,940,938,1,0,0,0,941,942,5,0,0,1,942,5,1,0,0,0,943,945,5,22,0,0,944,943,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,957,1,0,0,0,948,946,1,0,0,0,949,951,3,8,4,0,950,952,5,22,0,0,951,950,1,0,0,0,952,953,1,0,0,0,953,951,1,0,0,0,953,954,1,0,0,0,954,956,1,0,0,0,955,949,1,0,0,0,956,959,1,0,0,0,957,955,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,957,1,0,0,0,960,961,5,254,0,0,961,965,3,14,7,0,962,964,5,22,0,0,963,962,1,0,0,0,964,967,1,0,0,0,965,963,1,0,0,0,965,966,1,0,0,0,966,7,1,0,0,0,967,965,1,0,0,0,968,971,3,788,394,0,969,971,3,214,107,0,970,968,1,0,0,0,970,969,1,0,0,0,971,9,1,0,0,0,972,975,5,128,0,0,973,974,5,233,0,0,974,976,5,225,0,0,975,973,1,0,0,0,975,976,1,0,0,0,976,978,1,0,0,0,977,972,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,980,3,12,6,0,980,11,1,0,0,0,981,1042,3,224,112,0,982,1042,3,232,116,0,983,1042,3,788,394,0,984,1042,3,418,209,0,985,1042,3,568,284,0,986,1042,3,784,392,0,987,1042,3,364,182,0,988,1042,3,790,395,0,989,1042,3,682,341,0,990,1042,3,680,340,0,991,1042,3,792,396,0,992,1042,3,210,105,0,993,1042,3,214,107,0,994,1042,3,216,108,0,995,1042,3,464,232,0,996,1042,3,468,234,0,997,1042,3,222,111,0,998,1042,3,654,327,0,999,1042,3,658,329,0,1e3,1042,3,660,330,0,1001,1042,3,370,185,0,1002,1042,3,570,285,0,1003,1042,3,572,286,0,1004,1042,3,574,287,0,1005,1042,3,576,288,0,1006,1042,3,578,289,0,1007,1042,3,394,197,0,1008,1042,3,398,199,0,1009,1042,3,402,201,0,1010,1042,3,380,190,0,1011,1042,3,382,191,0,1012,1042,3,386,193,0,1013,1042,3,618,309,0,1014,1042,3,632,316,0,1015,1042,3,696,348,0,1016,1042,3,704,352,0,1017,1042,3,726,363,0,1018,1042,3,592,296,0,1019,1042,3,594,297,0,1020,1042,3,472,236,0,1021,1042,3,392,196,0,1022,1042,3,388,194,0,1023,1042,3,390,195,0,1024,1042,3,626,313,0,1025,1042,3,602,301,0,1026,1042,3,604,302,0,1027,1042,3,608,304,0,1028,1042,3,422,211,0,1029,1042,3,424,212,0,1030,1042,3,426,213,0,1031,1042,3,798,399,0,1032,1042,3,610,305,0,1033,1042,3,612,306,0,1034,1042,3,616,308,0,1035,1042,3,448,224,0,1036,1042,3,450,225,0,1037,1042,3,800,400,0,1038,1042,3,636,318,0,1039,1042,3,642,321,0,1040,1042,3,650,325,0,1041,981,1,0,0,0,1041,982,1,0,0,0,1041,983,1,0,0,0,1041,984,1,0,0,0,1041,985,1,0,0,0,1041,986,1,0,0,0,1041,987,1,0,0,0,1041,988,1,0,0,0,1041,989,1,0,0,0,1041,990,1,0,0,0,1041,991,1,0,0,0,1041,992,1,0,0,0,1041,993,1,0,0,0,1041,994,1,0,0,0,1041,995,1,0,0,0,1041,996,1,0,0,0,1041,997,1,0,0,0,1041,998,1,0,0,0,1041,999,1,0,0,0,1041,1e3,1,0,0,0,1041,1001,1,0,0,0,1041,1002,1,0,0,0,1041,1003,1,0,0,0,1041,1004,1,0,0,0,1041,1005,1,0,0,0,1041,1006,1,0,0,0,1041,1007,1,0,0,0,1041,1008,1,0,0,0,1041,1009,1,0,0,0,1041,1010,1,0,0,0,1041,1011,1,0,0,0,1041,1012,1,0,0,0,1041,1013,1,0,0,0,1041,1014,1,0,0,0,1041,1015,1,0,0,0,1041,1016,1,0,0,0,1041,1017,1,0,0,0,1041,1018,1,0,0,0,1041,1019,1,0,0,0,1041,1020,1,0,0,0,1041,1021,1,0,0,0,1041,1022,1,0,0,0,1041,1023,1,0,0,0,1041,1024,1,0,0,0,1041,1025,1,0,0,0,1041,1026,1,0,0,0,1041,1027,1,0,0,0,1041,1028,1,0,0,0,1041,1029,1,0,0,0,1041,1030,1,0,0,0,1041,1031,1,0,0,0,1041,1032,1,0,0,0,1041,1033,1,0,0,0,1041,1034,1,0,0,0,1041,1035,1,0,0,0,1041,1036,1,0,0,0,1041,1037,1,0,0,0,1041,1038,1,0,0,0,1041,1039,1,0,0,0,1041,1040,1,0,0,0,1042,13,1,0,0,0,1043,1048,3,16,8,0,1044,1045,5,212,0,0,1045,1047,3,16,8,0,1046,1044,1,0,0,0,1047,1050,1,0,0,0,1048,1046,1,0,0,0,1048,1049,1,0,0,0,1049,1053,1,0,0,0,1050,1048,1,0,0,0,1051,1053,3,200,100,0,1052,1043,1,0,0,0,1052,1051,1,0,0,0,1053,15,1,0,0,0,1054,1059,3,18,9,0,1055,1056,5,45,0,0,1056,1058,3,18,9,0,1057,1055,1,0,0,0,1058,1061,1,0,0,0,1059,1057,1,0,0,0,1059,1060,1,0,0,0,1060,17,1,0,0,0,1061,1059,1,0,0,0,1062,1067,3,20,10,0,1063,1064,5,325,0,0,1064,1066,3,20,10,0,1065,1063,1,0,0,0,1066,1069,1,0,0,0,1067,1065,1,0,0,0,1067,1068,1,0,0,0,1068,19,1,0,0,0,1069,1067,1,0,0,0,1070,1072,3,28,14,0,1071,1073,3,24,12,0,1072,1071,1,0,0,0,1072,1073,1,0,0,0,1073,21,1,0,0,0,1074,1076,5,171,0,0,1075,1077,5,199,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1079,5,109,0,0,1079,1080,5,141,0,0,1080,23,1,0,0,0,1081,1083,5,199,0,0,1082,1081,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1085,3,26,13,0,1085,1088,3,28,14,0,1086,1087,5,121,0,0,1087,1089,3,28,14,0,1088,1086,1,0,0,0,1088,1089,1,0,0,0,1089,1133,1,0,0,0,1090,1092,5,199,0,0,1091,1090,1,0,0,0,1091,1092,1,0,0,0,1092,1093,1,0,0,0,1093,1095,5,158,0,0,1094,1096,5,79,0,0,1095,1094,1,0,0,0,1095,1096,1,0,0,0,1096,1097,1,0,0,0,1097,1133,3,82,41,0,1098,1108,5,172,0,0,1099,1108,5,200,0,0,1100,1101,5,171,0,0,1101,1108,5,201,0,0,1102,1104,5,171,0,0,1103,1102,1,0,0,0,1103,1104,1,0,0,0,1104,1105,1,0,0,0,1105,1106,5,199,0,0,1106,1108,5,201,0,0,1107,1098,1,0,0,0,1107,1099,1,0,0,0,1107,1100,1,0,0,0,1107,1103,1,0,0,0,1108,1133,1,0,0,0,1109,1111,5,199,0,0,1110,1109,1,0,0,0,1110,1111,1,0,0,0,1111,1112,1,0,0,0,1112,1114,5,65,0,0,1113,1115,7,0,0,0,1114,1113,1,0,0,0,1114,1115,1,0,0,0,1115,1116,1,0,0,0,1116,1117,3,28,14,0,1117,1118,5,45,0,0,1118,1119,3,28,14,0,1119,1133,1,0,0,0,1120,1126,5,1,0,0,1121,1126,5,2,0,0,1122,1126,5,3,0,0,1123,1126,5,4,0,0,1124,1126,3,22,11,0,1125,1120,1,0,0,0,1125,1121,1,0,0,0,1125,1122,1,0,0,0,1125,1123,1,0,0,0,1125,1124,1,0,0,0,1126,1127,1,0,0,0,1127,1129,3,28,14,0,1128,1125,1,0,0,0,1129,1130,1,0,0,0,1130,1128,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1082,1,0,0,0,1132,1091,1,0,0,0,1132,1107,1,0,0,0,1132,1110,1,0,0,0,1132,1128,1,0,0,0,1133,25,1,0,0,0,1134,1135,7,1,0,0,1135,27,1,0,0,0,1136,1141,3,36,18,0,1137,1138,7,2,0,0,1138,1140,3,36,18,0,1139,1137,1,0,0,0,1140,1143,1,0,0,0,1141,1139,1,0,0,0,1141,1142,1,0,0,0,1142,29,1,0,0,0,1143,1141,1,0,0,0,1144,1145,5,7,0,0,1145,1146,5,7,0,0,1146,31,1,0,0,0,1147,1148,5,7,0,0,1148,1149,5,7,0,0,1149,1150,5,12,0,0,1150,33,1,0,0,0,1151,1152,5,27,0,0,1152,1153,5,27,0,0,1153,35,1,0,0,0,1154,1167,3,38,19,0,1155,1163,5,9,0,0,1156,1163,3,30,15,0,1157,1163,5,10,0,0,1158,1163,3,32,16,0,1159,1163,5,11,0,0,1160,1163,5,12,0,0,1161,1163,5,33,0,0,1162,1155,1,0,0,0,1162,1156,1,0,0,0,1162,1157,1,0,0,0,1162,1158,1,0,0,0,1162,1159,1,0,0,0,1162,1160,1,0,0,0,1162,1161,1,0,0,0,1163,1164,1,0,0,0,1164,1166,3,38,19,0,1165,1162,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,1178,1,0,0,0,1169,1167,1,0,0,0,1170,1171,3,34,17,0,1171,1172,3,36,18,0,1172,1179,1,0,0,0,1173,1175,5,27,0,0,1174,1173,1,0,0,0,1175,1176,1,0,0,0,1176,1174,1,0,0,0,1176,1177,1,0,0,0,1177,1179,1,0,0,0,1178,1170,1,0,0,0,1178,1174,1,0,0,0,1178,1179,1,0,0,0,1179,37,1,0,0,0,1180,1185,3,40,20,0,1181,1182,7,3,0,0,1182,1184,3,40,20,0,1183,1181,1,0,0,0,1184,1187,1,0,0,0,1185,1183,1,0,0,0,1185,1186,1,0,0,0,1186,39,1,0,0,0,1187,1185,1,0,0,0,1188,1193,3,42,21,0,1189,1190,7,4,0,0,1190,1192,3,42,21,0,1191,1189,1,0,0,0,1192,1195,1,0,0,0,1193,1191,1,0,0,0,1193,1194,1,0,0,0,1194,41,1,0,0,0,1195,1193,1,0,0,0,1196,1201,3,44,22,0,1197,1198,5,13,0,0,1198,1200,3,44,22,0,1199,1197,1,0,0,0,1200,1203,1,0,0,0,1201,1199,1,0,0,0,1201,1202,1,0,0,0,1202,43,1,0,0,0,1203,1201,1,0,0,0,1204,1209,3,54,27,0,1205,1206,3,46,23,0,1206,1207,3,54,27,0,1207,1209,1,0,0,0,1208,1204,1,0,0,0,1208,1205,1,0,0,0,1209,45,1,0,0,0,1210,1211,7,5,0,0,1211,47,1,0,0,0,1212,1221,3,138,69,0,1213,1221,3,132,66,0,1214,1218,5,23,0,0,1215,1219,3,144,72,0,1216,1219,5,329,0,0,1217,1219,3,826,413,0,1218,1215,1,0,0,0,1218,1216,1,0,0,0,1218,1217,1,0,0,0,1219,1221,1,0,0,0,1220,1212,1,0,0,0,1220,1213,1,0,0,0,1220,1214,1,0,0,0,1221,1223,1,0,0,0,1222,1220,1,0,0,0,1223,1226,1,0,0,0,1224,1222,1,0,0,0,1224,1225,1,0,0,0,1225,1229,1,0,0,0,1226,1224,1,0,0,0,1227,1228,5,75,0,0,1228,1230,3,824,412,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,49,1,0,0,0,1231,1234,3,810,405,0,1232,1234,3,68,34,0,1233,1231,1,0,0,0,1233,1232,1,0,0,0,1234,1235,1,0,0,0,1235,1236,3,48,24,0,1236,51,1,0,0,0,1237,1240,3,812,406,0,1238,1240,3,70,35,0,1239,1237,1,0,0,0,1239,1238,1,0,0,0,1240,1241,1,0,0,0,1241,1242,3,48,24,0,1242,53,1,0,0,0,1243,1246,3,50,25,0,1244,1246,3,84,42,0,1245,1243,1,0,0,0,1245,1244,1,0,0,0,1246,55,1,0,0,0,1247,1250,3,52,26,0,1248,1250,3,84,42,0,1249,1247,1,0,0,0,1249,1248,1,0,0,0,1250,57,1,0,0,0,1251,1253,5,37,0,0,1252,1254,3,112,56,0,1253,1252,1,0,0,0,1253,1254,1,0,0,0,1254,1256,1,0,0,0,1255,1257,5,24,0,0,1256,1255,1,0,0,0,1256,1257,1,0,0,0,1257,1258,1,0,0,0,1258,1259,5,36,0,0,1259,59,1,0,0,0,1260,1263,3,14,7,0,1261,1262,5,28,0,0,1262,1264,3,14,7,0,1263,1261,1,0,0,0,1263,1264,1,0,0,0,1264,1273,1,0,0,0,1265,1266,5,24,0,0,1266,1269,3,14,7,0,1267,1268,5,28,0,0,1268,1270,3,14,7,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1265,1,0,0,0,1272,1275,1,0,0,0,1273,1271,1,0,0,0,1273,1274,1,0,0,0,1274,61,1,0,0,0,1275,1273,1,0,0,0,1276,1278,5,31,0,0,1277,1279,3,60,30,0,1278,1277,1,0,0,0,1278,1279,1,0,0,0,1279,1281,1,0,0,0,1280,1282,5,24,0,0,1281,1280,1,0,0,0,1281,1282,1,0,0,0,1282,1283,1,0,0,0,1283,1284,5,32,0,0,1284,63,1,0,0,0,1285,1286,3,14,7,0,1286,1287,5,28,0,0,1287,1295,3,14,7,0,1288,1289,5,24,0,0,1289,1290,3,14,7,0,1290,1291,5,28,0,0,1291,1292,3,14,7,0,1292,1294,1,0,0,0,1293,1288,1,0,0,0,1294,1297,1,0,0,0,1295,1293,1,0,0,0,1295,1296,1,0,0,0,1296,65,1,0,0,0,1297,1295,1,0,0,0,1298,1300,5,14,0,0,1299,1301,3,64,32,0,1300,1299,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1304,5,24,0,0,1303,1302,1,0,0,0,1303,1304,1,0,0,0,1304,1305,1,0,0,0,1305,1306,5,15,0,0,1306,67,1,0,0,0,1307,1325,3,142,71,0,1308,1325,3,144,72,0,1309,1325,3,80,40,0,1310,1325,3,72,36,0,1311,1325,3,76,38,0,1312,1325,3,78,39,0,1313,1314,3,826,413,0,1314,1317,5,34,0,0,1315,1318,3,852,426,0,1316,1318,5,326,0,0,1317,1315,1,0,0,0,1317,1316,1,0,0,0,1318,1325,1,0,0,0,1319,1325,3,208,104,0,1320,1325,3,74,37,0,1321,1325,3,58,29,0,1322,1325,3,62,31,0,1323,1325,3,66,33,0,1324,1307,1,0,0,0,1324,1308,1,0,0,0,1324,1309,1,0,0,0,1324,1310,1,0,0,0,1324,1311,1,0,0,0,1324,1312,1,0,0,0,1324,1313,1,0,0,0,1324,1319,1,0,0,0,1324,1320,1,0,0,0,1324,1321,1,0,0,0,1324,1322,1,0,0,0,1324,1323,1,0,0,0,1325,69,1,0,0,0,1326,1347,3,142,71,0,1327,1347,3,144,72,0,1328,1347,3,80,40,0,1329,1347,3,72,36,0,1330,1347,3,78,39,0,1331,1332,3,826,413,0,1332,1335,5,34,0,0,1333,1336,3,852,426,0,1334,1336,5,326,0,0,1335,1333,1,0,0,0,1335,1334,1,0,0,0,1336,1347,1,0,0,0,1337,1338,5,25,0,0,1338,1339,3,232,116,0,1339,1340,5,26,0,0,1340,1347,1,0,0,0,1341,1347,3,208,104,0,1342,1347,3,74,37,0,1343,1347,3,58,29,0,1344,1347,3,62,31,0,1345,1347,3,66,33,0,1346,1326,1,0,0,0,1346,1327,1,0,0,0,1346,1328,1,0,0,0,1346,1329,1,0,0,0,1346,1330,1,0,0,0,1346,1331,1,0,0,0,1346,1337,1,0,0,0,1346,1341,1,0,0,0,1346,1342,1,0,0,0,1346,1343,1,0,0,0,1346,1344,1,0,0,0,1346,1345,1,0,0,0,1347,71,1,0,0,0,1348,1349,5,71,0,0,1349,1350,5,25,0,0,1350,1351,3,14,7,0,1351,1352,5,49,0,0,1352,1353,3,204,102,0,1353,1354,5,26,0,0,1354,73,1,0,0,0,1355,1356,5,66,0,0,1356,1357,5,25,0,0,1357,1358,3,14,7,0,1358,1359,5,49,0,0,1359,1360,3,156,78,0,1360,1361,5,26,0,0,1361,75,1,0,0,0,1362,1363,5,127,0,0,1363,1366,5,25,0,0,1364,1367,3,232,116,0,1365,1367,3,370,185,0,1366,1364,1,0,0,0,1366,1365,1,0,0,0,1367,1368,1,0,0,0,1368,1369,5,26,0,0,1369,77,1,0,0,0,1370,1372,5,70,0,0,1371,1373,3,14,7,0,1372,1371,1,0,0,0,1372,1373,1,0,0,0,1373,1375,1,0,0,0,1374,1376,3,140,70,0,1375,1374,1,0,0,0,1376,1377,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1381,1,0,0,0,1379,1380,5,113,0,0,1380,1382,3,14,7,0,1381,1379,1,0,0,0,1381,1382,1,0,0,0,1382,1383,1,0,0,0,1383,1384,5,117,0,0,1384,79,1,0,0,0,1385,1397,3,110,55,0,1386,1395,5,35,0,0,1387,1388,5,25,0,0,1388,1389,3,14,7,0,1389,1390,5,26,0,0,1390,1396,1,0,0,0,1391,1392,5,31,0,0,1392,1393,3,6,3,0,1393,1394,5,32,0,0,1394,1396,1,0,0,0,1395,1387,1,0,0,0,1395,1391,1,0,0,0,1396,1398,1,0,0,0,1397,1386,1,0,0,0,1397,1398,1,0,0,0,1398,81,1,0,0,0,1399,1400,3,56,28,0,1400,83,1,0,0,0,1401,1405,3,98,49,0,1402,1405,3,102,51,0,1403,1405,3,108,54,0,1404,1401,1,0,0,0,1404,1402,1,0,0,0,1404,1403,1,0,0,0,1405,85,1,0,0,0,1406,1407,5,326,0,0,1407,87,1,0,0,0,1408,1411,3,810,405,0,1409,1411,5,326,0,0,1410,1408,1,0,0,0,1410,1409,1,0,0,0,1411,89,1,0,0,0,1412,1413,3,14,7,0,1413,1414,5,49,0,0,1414,1415,3,88,44,0,1415,91,1,0,0,0,1416,1421,3,90,45,0,1417,1418,5,24,0,0,1418,1420,3,90,45,0,1419,1417,1,0,0,0,1420,1423,1,0,0,0,1421,1419,1,0,0,0,1421,1422,1,0,0,0,1422,93,1,0,0,0,1423,1421,1,0,0,0,1424,1425,3,14,7,0,1425,1426,5,24,0,0,1426,1429,3,86,43,0,1427,1428,5,219,0,0,1428,1430,3,92,46,0,1429,1427,1,0,0,0,1429,1430,1,0,0,0,1430,95,1,0,0,0,1431,1436,5,120,0,0,1432,1436,5,201,0,0,1433,1434,5,97,0,0,1434,1436,3,14,7,0,1435,1431,1,0,0,0,1435,1432,1,0,0,0,1435,1433,1,0,0,0,1436,97,1,0,0,0,1437,1438,5,176,0,0,1438,1439,5,25,0,0,1439,1442,3,94,47,0,1440,1441,5,255,0,0,1441,1443,3,156,78,0,1442,1440,1,0,0,0,1442,1443,1,0,0,0,1443,1450,1,0,0,0,1444,1445,3,96,48,0,1445,1446,5,207,0,0,1446,1447,7,6,0,0,1447,1449,1,0,0,0,1448,1444,1,0,0,0,1449,1452,1,0,0,0,1450,1448,1,0,0,0,1450,1451,1,0,0,0,1451,1453,1,0,0,0,1452,1450,1,0,0,0,1453,1454,5,26,0,0,1454,99,1,0,0,0,1455,1456,7,7,0,0,1456,1457,5,207,0,0,1457,1458,5,120,0,0,1458,101,1,0,0,0,1459,1460,5,174,0,0,1460,1461,5,25,0,0,1461,1463,3,94,47,0,1462,1464,3,100,50,0,1463,1462,1,0,0,0,1463,1464,1,0,0,0,1464,1465,1,0,0,0,1465,1466,5,26,0,0,1466,103,1,0,0,0,1467,1469,5,323,0,0,1468,1470,5,48,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,1479,1,0,0,0,1471,1473,5,322,0,0,1472,1474,7,8,0,0,1473,1472,1,0,0,0,1473,1474,1,0,0,0,1474,1476,1,0,0,0,1475,1477,5,48,0,0,1476,1475,1,0,0,0,1476,1477,1,0,0,0,1477,1479,1,0,0,0,1478,1467,1,0,0,0,1478,1471,1,0,0,0,1479,105,1,0,0,0,1480,1487,5,120,0,0,1481,1487,5,201,0,0,1482,1483,5,114,0,0,1483,1487,5,48,0,0,1484,1485,5,114,0,0,1485,1487,5,203,0,0,1486,1480,1,0,0,0,1486,1481,1,0,0,0,1486,1482,1,0,0,0,1486,1484,1,0,0,0,1487,107,1,0,0,0,1488,1489,5,175,0,0,1489,1490,5,25,0,0,1490,1494,3,94,47,0,1491,1492,3,104,52,0,1492,1493,5,324,0,0,1493,1495,1,0,0,0,1494,1491,1,0,0,0,1494,1495,1,0,0,0,1495,1500,1,0,0,0,1496,1497,3,106,53,0,1497,1498,5,207,0,0,1498,1499,5,114,0,0,1499,1501,1,0,0,0,1500,1496,1,0,0,0,1500,1501,1,0,0,0,1501,1506,1,0,0,0,1502,1503,3,106,53,0,1503,1504,5,207,0,0,1504,1505,5,120,0,0,1505,1507,1,0,0,0,1506,1502,1,0,0,0,1506,1507,1,0,0,0,1507,1508,1,0,0,0,1508,1509,5,26,0,0,1509,109,1,0,0,0,1510,1512,5,25,0,0,1511,1513,3,130,65,0,1512,1511,1,0,0,0,1512,1513,1,0,0,0,1513,1515,1,0,0,0,1514,1516,5,24,0,0,1515,1514,1,0,0,0,1515,1516,1,0,0,0,1516,1517,1,0,0,0,1517,1518,5,26,0,0,1518,111,1,0,0,0,1519,1524,3,14,7,0,1520,1521,5,24,0,0,1521,1523,3,14,7,0,1522,1520,1,0,0,0,1523,1526,1,0,0,0,1524,1522,1,0,0,0,1524,1525,1,0,0,0,1525,113,1,0,0,0,1526,1524,1,0,0,0,1527,1528,5,25,0,0,1528,1533,3,824,412,0,1529,1530,5,24,0,0,1530,1532,3,824,412,0,1531,1529,1,0,0,0,1532,1535,1,0,0,0,1533,1531,1,0,0,0,1533,1534,1,0,0,0,1534,1536,1,0,0,0,1535,1533,1,0,0,0,1536,1537,5,26,0,0,1537,115,1,0,0,0,1538,1541,3,144,72,0,1539,1541,3,824,412,0,1540,1538,1,0,0,0,1540,1539,1,0,0,0,1541,117,1,0,0,0,1542,1543,5,25,0,0,1543,1548,3,116,58,0,1544,1545,5,24,0,0,1545,1547,3,116,58,0,1546,1544,1,0,0,0,1547,1550,1,0,0,0,1548,1546,1,0,0,0,1548,1549,1,0,0,0,1549,1551,1,0,0,0,1550,1548,1,0,0,0,1551,1552,5,26,0,0,1552,119,1,0,0,0,1553,1554,3,848,424,0,1554,1555,3,824,412,0,1555,121,1,0,0,0,1556,1557,3,824,412,0,1557,1558,5,23,0,0,1558,1559,3,824,412,0,1559,1562,1,0,0,0,1560,1562,3,838,419,0,1561,1556,1,0,0,0,1561,1560,1,0,0,0,1562,123,1,0,0,0,1563,1568,3,120,60,0,1564,1565,5,24,0,0,1565,1567,3,120,60,0,1566,1564,1,0,0,0,1567,1570,1,0,0,0,1568,1566,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1568,1,0,0,0,1571,1573,5,24,0,0,1572,1571,1,0,0,0,1572,1573,1,0,0,0,1573,125,1,0,0,0,1574,1579,3,122,61,0,1575,1576,5,24,0,0,1576,1578,3,122,61,0,1577,1575,1,0,0,0,1578,1581,1,0,0,0,1579,1577,1,0,0,0,1579,1580,1,0,0,0,1580,1583,1,0,0,0,1581,1579,1,0,0,0,1582,1584,5,24,0,0,1583,1582,1,0,0,0,1583,1584,1,0,0,0,1584,127,1,0,0,0,1585,1588,3,14,7,0,1586,1587,5,49,0,0,1587,1589,3,826,413,0,1588,1586,1,0,0,0,1588,1589,1,0,0,0,1589,129,1,0,0,0,1590,1595,3,128,64,0,1591,1592,5,24,0,0,1592,1594,3,128,64,0,1593,1591,1,0,0,0,1594,1597,1,0,0,0,1595,1593,1,0,0,0,1595,1596,1,0,0,0,1596,131,1,0,0,0,1597,1595,1,0,0,0,1598,1605,5,25,0,0,1599,1600,3,252,126,0,1600,1602,3,130,65,0,1601,1603,5,24,0,0,1602,1601,1,0,0,0,1602,1603,1,0,0,0,1603,1606,1,0,0,0,1604,1606,5,19,0,0,1605,1599,1,0,0,0,1605,1604,1,0,0,0,1605,1606,1,0,0,0,1606,1607,1,0,0,0,1607,1608,5,26,0,0,1608,1609,3,134,67,0,1609,133,1,0,0,0,1610,1613,3,746,373,0,1611,1613,3,748,374,0,1612,1610,1,0,0,0,1612,1611,1,0,0,0,1612,1613,1,0,0,0,1613,1616,1,0,0,0,1614,1615,5,216,0,0,1615,1617,3,750,375,0,1616,1614,1,0,0,0,1616,1617,1,0,0,0,1617,135,1,0,0,0,1618,1619,3,826,413,0,1619,1620,5,34,0,0,1620,1621,3,826,413,0,1621,1627,1,0,0,0,1622,1627,3,830,415,0,1623,1627,3,144,72,0,1624,1625,5,130,0,0,1625,1627,5,143,0,0,1626,1618,1,0,0,0,1626,1622,1,0,0,0,1626,1623,1,0,0,0,1626,1624,1,0,0,0,1627,1628,1,0,0,0,1628,1629,3,132,66,0,1629,137,1,0,0,0,1630,1631,5,37,0,0,1631,1632,3,14,7,0,1632,1633,5,36,0,0,1633,139,1,0,0,0,1634,1635,5,319,0,0,1635,1636,3,14,7,0,1636,1637,5,293,0,0,1637,1638,3,14,7,0,1638,141,1,0,0,0,1639,1650,3,888,444,0,1640,1650,3,886,443,0,1641,1650,5,326,0,0,1642,1650,5,332,0,0,1643,1650,5,201,0,0,1644,1650,5,91,0,0,1645,1650,5,90,0,0,1646,1650,5,92,0,0,1647,1650,3,884,442,0,1648,1650,5,115,0,0,1649,1639,1,0,0,0,1649,1640,1,0,0,0,1649,1641,1,0,0,0,1649,1642,1,0,0,0,1649,1643,1,0,0,0,1649,1644,1,0,0,0,1649,1645,1,0,0,0,1649,1646,1,0,0,0,1649,1647,1,0,0,0,1649,1648,1,0,0,0,1650,143,1,0,0,0,1651,1655,5,30,0,0,1652,1656,3,826,413,0,1653,1656,5,300,0,0,1654,1656,5,132,0,0,1655,1652,1,0,0,0,1655,1653,1,0,0,0,1655,1654,1,0,0,0,1656,145,1,0,0,0,1657,1659,3,144,72,0,1658,1660,5,27,0,0,1659,1658,1,0,0,0,1659,1660,1,0,0,0,1660,147,1,0,0,0,1661,1666,3,144,72,0,1662,1663,5,24,0,0,1663,1665,3,144,72,0,1664,1662,1,0,0,0,1665,1668,1,0,0,0,1666,1664,1,0,0,0,1666,1667,1,0,0,0,1667,149,1,0,0,0,1668,1666,1,0,0,0,1669,1672,3,144,72,0,1670,1671,5,49,0,0,1671,1673,3,144,72,0,1672,1670,1,0,0,0,1672,1673,1,0,0,0,1673,151,1,0,0,0,1674,1679,3,150,75,0,1675,1676,5,24,0,0,1676,1678,3,150,75,0,1677,1675,1,0,0,0,1678,1681,1,0,0,0,1679,1677,1,0,0,0,1679,1680,1,0,0,0,1680,153,1,0,0,0,1681,1679,1,0,0,0,1682,1684,7,3,0,0,1683,1682,1,0,0,0,1683,1684,1,0,0,0,1684,1687,1,0,0,0,1685,1688,3,888,444,0,1686,1688,3,886,443,0,1687,1685,1,0,0,0,1687,1686,1,0,0,0,1688,155,1,0,0,0,1689,1690,3,842,421,0,1690,157,1,0,0,0,1691,1694,3,888,444,0,1692,1694,3,144,72,0,1693,1691,1,0,0,0,1693,1692,1,0,0,0,1694,159,1,0,0,0,1695,1699,3,806,403,0,1696,1699,5,326,0,0,1697,1699,3,144,72,0,1698,1695,1,0,0,0,1698,1696,1,0,0,0,1698,1697,1,0,0,0,1699,161,1,0,0,0,1700,1701,3,160,80,0,1701,1702,5,28,0,0,1702,1703,3,204,102,0,1703,163,1,0,0,0,1704,1705,3,160,80,0,1705,1710,3,204,102,0,1706,1708,5,199,0,0,1707,1706,1,0,0,0,1707,1708,1,0,0,0,1708,1709,1,0,0,0,1709,1711,5,201,0,0,1710,1707,1,0,0,0,1710,1711,1,0,0,0,1711,1717,1,0,0,0,1712,1713,3,204,102,0,1713,1714,5,49,0,0,1714,1715,3,160,80,0,1715,1717,1,0,0,0,1716,1704,1,0,0,0,1716,1712,1,0,0,0,1717,165,1,0,0,0,1718,1719,3,160,80,0,1719,1720,5,28,0,0,1720,1722,1,0,0,0,1721,1718,1,0,0,0,1721,1722,1,0,0,0,1722,1723,1,0,0,0,1723,1724,3,204,102,0,1724,167,1,0,0,0,1725,1729,3,166,83,0,1726,1727,5,31,0,0,1727,1728,5,58,0,0,1728,1730,5,32,0,0,1729,1726,1,0,0,0,1729,1730,1,0,0,0,1730,169,1,0,0,0,1731,1736,3,168,84,0,1732,1733,5,24,0,0,1733,1735,3,168,84,0,1734,1732,1,0,0,0,1735,1738,1,0,0,0,1736,1734,1,0,0,0,1736,1737,1,0,0,0,1737,171,1,0,0,0,1738,1736,1,0,0,0,1739,1740,5,95,0,0,1740,1741,5,25,0,0,1741,1742,3,158,79,0,1742,1743,5,24,0,0,1743,1744,3,158,79,0,1744,1745,5,26,0,0,1745,173,1,0,0,0,1746,1747,5,211,0,0,1747,1748,5,5,0,0,1748,1749,3,204,102,0,1749,1750,5,7,0,0,1750,175,1,0,0,0,1751,1768,5,301,0,0,1752,1764,5,5,0,0,1753,1758,3,204,102,0,1754,1755,5,24,0,0,1755,1757,3,204,102,0,1756,1754,1,0,0,0,1757,1760,1,0,0,0,1758,1756,1,0,0,0,1758,1759,1,0,0,0,1759,1762,1,0,0,0,1760,1758,1,0,0,0,1761,1763,5,24,0,0,1762,1761,1,0,0,0,1762,1763,1,0,0,0,1763,1765,1,0,0,0,1764,1753,1,0,0,0,1764,1765,1,0,0,0,1765,1766,1,0,0,0,1766,1769,5,7,0,0,1767,1769,5,4,0,0,1768,1752,1,0,0,0,1768,1767,1,0,0,0,1769,177,1,0,0,0,1770,1787,5,279,0,0,1771,1783,5,5,0,0,1772,1777,3,162,81,0,1773,1774,5,24,0,0,1774,1776,3,162,81,0,1775,1773,1,0,0,0,1776,1779,1,0,0,0,1777,1775,1,0,0,0,1777,1778,1,0,0,0,1778,1781,1,0,0,0,1779,1777,1,0,0,0,1780,1782,5,24,0,0,1781,1780,1,0,0,0,1781,1782,1,0,0,0,1782,1784,1,0,0,0,1783,1772,1,0,0,0,1783,1784,1,0,0,0,1784,1785,1,0,0,0,1785,1788,5,7,0,0,1786,1788,5,4,0,0,1787,1771,1,0,0,0,1787,1786,1,0,0,0,1788,179,1,0,0,0,1789,1790,5,316,0,0,1790,1791,5,5,0,0,1791,1796,3,166,83,0,1792,1793,5,24,0,0,1793,1795,3,166,83,0,1794,1792,1,0,0,0,1795,1798,1,0,0,0,1796,1794,1,0,0,0,1796,1797,1,0,0,0,1797,1800,1,0,0,0,1798,1796,1,0,0,0,1799,1801,5,24,0,0,1800,1799,1,0,0,0,1800,1801,1,0,0,0,1801,1802,1,0,0,0,1802,1803,5,7,0,0,1803,181,1,0,0,0,1804,1805,5,183,0,0,1805,1806,5,5,0,0,1806,1807,3,204,102,0,1807,1808,5,7,0,0,1808,183,1,0,0,0,1809,1810,5,278,0,0,1810,1811,5,5,0,0,1811,1812,3,204,102,0,1812,1813,5,7,0,0,1813,185,1,0,0,0,1814,1815,5,137,0,0,1815,1816,5,5,0,0,1816,1817,3,204,102,0,1817,1818,5,7,0,0,1818,187,1,0,0,0,1819,1820,5,105,0,0,1820,1821,5,5,0,0,1821,1822,3,204,102,0,1822,1823,5,24,0,0,1823,1824,3,204,102,0,1824,1825,5,7,0,0,1825,189,1,0,0,0,1826,1827,5,271,0,0,1827,1828,5,5,0,0,1828,1829,3,204,102,0,1829,1830,5,7,0,0,1830,191,1,0,0,0,1831,1832,5,118,0,0,1832,1833,5,5,0,0,1833,1838,3,160,80,0,1834,1835,5,24,0,0,1835,1837,3,160,80,0,1836,1834,1,0,0,0,1837,1840,1,0,0,0,1838,1836,1,0,0,0,1838,1839,1,0,0,0,1839,1842,1,0,0,0,1840,1838,1,0,0,0,1841,1843,5,24,0,0,1842,1841,1,0,0,0,1842,1843,1,0,0,0,1843,1844,1,0,0,0,1844,1845,5,7,0,0,1845,193,1,0,0,0,1846,1847,5,248,0,0,1847,1848,5,5,0,0,1848,1849,3,160,80,0,1849,1850,5,7,0,0,1850,195,1,0,0,0,1851,1852,5,290,0,0,1852,1853,5,5,0,0,1853,1854,3,204,102,0,1854,1855,5,24,0,0,1855,1856,3,160,80,0,1856,1857,5,7,0,0,1857,197,1,0,0,0,1858,1859,5,68,0,0,1859,1860,5,5,0,0,1860,1862,5,25,0,0,1861,1863,3,170,85,0,1862,1861,1,0,0,0,1862,1863,1,0,0,0,1863,1865,1,0,0,0,1864,1866,5,24,0,0,1865,1864,1,0,0,0,1865,1866,1,0,0,0,1866,1871,1,0,0,0,1867,1868,5,37,0,0,1868,1869,3,170,85,0,1869,1870,5,36,0,0,1870,1872,1,0,0,0,1871,1867,1,0,0,0,1871,1872,1,0,0,0,1872,1873,1,0,0,0,1873,1874,5,26,0,0,1874,1875,5,35,0,0,1875,1876,3,204,102,0,1876,1877,5,7,0,0,1877,199,1,0,0,0,1878,1892,3,174,87,0,1879,1892,3,176,88,0,1880,1892,3,178,89,0,1881,1892,3,180,90,0,1882,1892,3,182,91,0,1883,1892,3,184,92,0,1884,1892,3,186,93,0,1885,1892,3,188,94,0,1886,1892,3,190,95,0,1887,1892,3,192,96,0,1888,1892,3,194,97,0,1889,1892,3,196,98,0,1890,1892,3,198,99,0,1891,1878,1,0,0,0,1891,1879,1,0,0,0,1891,1880,1,0,0,0,1891,1881,1,0,0,0,1891,1882,1,0,0,0,1891,1883,1,0,0,0,1891,1884,1,0,0,0,1891,1885,1,0,0,0,1891,1886,1,0,0,0,1891,1887,1,0,0,0,1891,1888,1,0,0,0,1891,1889,1,0,0,0,1891,1890,1,0,0,0,1892,1896,1,0,0,0,1893,1895,5,27,0,0,1894,1893,1,0,0,0,1895,1898,1,0,0,0,1896,1894,1,0,0,0,1896,1897,1,0,0,0,1897,201,1,0,0,0,1898,1896,1,0,0,0,1899,1911,3,200,100,0,1900,1903,3,172,86,0,1901,1903,3,156,78,0,1902,1900,1,0,0,0,1902,1901,1,0,0,0,1903,1907,1,0,0,0,1904,1906,5,27,0,0,1905,1904,1,0,0,0,1906,1909,1,0,0,0,1907,1905,1,0,0,0,1907,1908,1,0,0,0,1908,1911,1,0,0,0,1909,1907,1,0,0,0,1910,1899,1,0,0,0,1910,1902,1,0,0,0,1911,203,1,0,0,0,1912,1915,3,202,101,0,1913,1915,3,144,72,0,1914,1912,1,0,0,0,1914,1913,1,0,0,0,1915,205,1,0,0,0,1916,1917,5,326,0,0,1917,207,1,0,0,0,1918,1919,5,316,0,0,1919,1920,5,25,0,0,1920,1921,3,14,7,0,1921,1922,5,24,0,0,1922,1923,3,14,7,0,1923,1924,5,24,0,0,1924,1925,3,14,7,0,1925,1926,5,26,0,0,1926,1942,1,0,0,0,1927,1928,5,118,0,0,1928,1929,5,25,0,0,1929,1930,3,14,7,0,1930,1931,5,24,0,0,1931,1932,3,14,7,0,1932,1933,5,26,0,0,1933,1942,1,0,0,0,1934,1935,5,68,0,0,1935,1936,5,25,0,0,1936,1937,3,14,7,0,1937,1938,5,24,0,0,1938,1939,3,14,7,0,1939,1940,5,26,0,0,1940,1942,1,0,0,0,1941,1918,1,0,0,0,1941,1927,1,0,0,0,1941,1934,1,0,0,0,1942,209,1,0,0,0,1943,1944,5,96,0,0,1944,1945,3,144,72,0,1945,1946,5,49,0,0,1946,1949,3,202,101,0,1947,1948,5,1,0,0,1948,1950,3,142,71,0,1949,1947,1,0,0,0,1949,1950,1,0,0,0,1950,211,1,0,0,0,1951,1953,5,23,0,0,1952,1951,1,0,0,0,1952,1953,1,0,0,0,1953,1954,1,0,0,0,1954,1959,3,824,412,0,1955,1956,5,23,0,0,1956,1958,3,824,412,0,1957,1955,1,0,0,0,1958,1961,1,0,0,0,1959,1957,1,0,0,0,1959,1960,1,0,0,0,1960,213,1,0,0,0,1961,1959,1,0,0,0,1962,1963,5,157,0,0,1963,1964,3,212,106,0,1964,1965,5,282,0,0,1965,1966,3,152,76,0,1966,215,1,0,0,0,1967,1968,5,129,0,0,1968,1969,3,148,74,0,1969,217,1,0,0,0,1970,1973,3,144,72,0,1971,1973,5,115,0,0,1972,1970,1,0,0,0,1972,1971,1,0,0,0,1973,1974,1,0,0,0,1974,1976,5,25,0,0,1975,1977,3,112,56,0,1976,1975,1,0,0,0,1976,1977,1,0,0,0,1977,1978,1,0,0,0,1978,1979,5,26,0,0,1979,219,1,0,0,0,1980,1981,5,63,0,0,1981,1982,3,656,328,0,1982,1983,5,117,0,0,1983,1984,5,110,0,0,1984,221,1,0,0,0,1985,1988,5,110,0,0,1986,1989,3,218,109,0,1987,1989,3,220,110,0,1988,1986,1,0,0,0,1988,1987,1,0,0,0,1989,223,1,0,0,0,1990,1991,5,227,0,0,1991,1992,3,854,427,0,1992,2006,3,824,412,0,1993,1994,5,1,0,0,1994,2007,3,226,113,0,1995,1996,5,25,0,0,1996,2001,3,226,113,0,1997,1998,5,24,0,0,1998,2e3,3,226,113,0,1999,1997,1,0,0,0,2e3,2003,1,0,0,0,2001,1999,1,0,0,0,2001,2002,1,0,0,0,2002,2004,1,0,0,0,2003,2001,1,0,0,0,2004,2005,5,26,0,0,2005,2007,1,0,0,0,2006,1993,1,0,0,0,2006,1995,1,0,0,0,2006,2007,1,0,0,0,2007,225,1,0,0,0,2008,2014,3,154,77,0,2009,2014,3,806,403,0,2010,2014,5,326,0,0,2011,2014,3,884,442,0,2012,2014,3,144,72,0,2013,2008,1,0,0,0,2013,2009,1,0,0,0,2013,2010,1,0,0,0,2013,2011,1,0,0,0,2013,2012,1,0,0,0,2014,227,1,0,0,0,2015,2017,3,14,7,0,2016,2018,7,9,0,0,2017,2016,1,0,0,0,2017,2018,1,0,0,0,2018,229,1,0,0,0,2019,2024,3,228,114,0,2020,2021,5,24,0,0,2021,2023,3,228,114,0,2022,2020,1,0,0,0,2023,2026,1,0,0,0,2024,2022,1,0,0,0,2024,2025,1,0,0,0,2025,231,1,0,0,0,2026,2024,1,0,0,0,2027,2033,3,236,118,0,2028,2029,3,238,119,0,2029,2030,3,236,118,0,2030,2032,1,0,0,0,2031,2028,1,0,0,0,2032,2035,1,0,0,0,2033,2031,1,0,0,0,2033,2034,1,0,0,0,2034,233,1,0,0,0,2035,2033,1,0,0,0,2036,2042,3,240,120,0,2037,2038,3,238,119,0,2038,2039,3,236,118,0,2039,2041,1,0,0,0,2040,2037,1,0,0,0,2041,2044,1,0,0,0,2042,2040,1,0,0,0,2042,2043,1,0,0,0,2043,235,1,0,0,0,2044,2042,1,0,0,0,2045,2051,3,240,120,0,2046,2047,5,25,0,0,2047,2048,3,240,120,0,2048,2049,5,26,0,0,2049,2051,1,0,0,0,2050,2045,1,0,0,0,2050,2046,1,0,0,0,2051,237,1,0,0,0,2052,2054,5,305,0,0,2053,2055,5,42,0,0,2054,2053,1,0,0,0,2054,2055,1,0,0,0,2055,2059,1,0,0,0,2056,2059,5,169,0,0,2057,2059,5,123,0,0,2058,2052,1,0,0,0,2058,2056,1,0,0,0,2058,2057,1,0,0,0,2059,239,1,0,0,0,2060,2067,3,242,121,0,2061,2062,5,182,0,0,2062,2065,3,14,7,0,2063,2064,7,10,0,0,2064,2066,3,14,7,0,2065,2063,1,0,0,0,2065,2066,1,0,0,0,2066,2068,1,0,0,0,2067,2061,1,0,0,0,2067,2068,1,0,0,0,2068,241,1,0,0,0,2069,2071,5,108,0,0,2070,2069,1,0,0,0,2070,2071,1,0,0,0,2071,2075,1,0,0,0,2072,2076,3,244,122,0,2073,2076,3,250,125,0,2074,2076,3,254,127,0,2075,2072,1,0,0,0,2075,2073,1,0,0,0,2075,2074,1,0,0,0,2076,2080,1,0,0,0,2077,2078,5,170,0,0,2078,2079,5,253,0,0,2079,2081,3,116,58,0,2080,2077,1,0,0,0,2080,2081,1,0,0,0,2081,243,1,0,0,0,2082,2084,5,232,0,0,2083,2085,5,278,0,0,2084,2083,1,0,0,0,2084,2085,1,0,0,0,2085,2086,1,0,0,0,2086,2091,3,346,173,0,2087,2088,5,24,0,0,2088,2090,3,346,173,0,2089,2087,1,0,0,0,2090,2093,1,0,0,0,2091,2089,1,0,0,0,2091,2092,1,0,0,0,2092,2115,1,0,0,0,2093,2091,1,0,0,0,2094,2095,5,313,0,0,2095,2098,3,136,68,0,2096,2097,5,49,0,0,2097,2099,3,824,412,0,2098,2096,1,0,0,0,2098,2099,1,0,0,0,2099,2102,1,0,0,0,2100,2101,5,322,0,0,2101,2103,3,248,124,0,2102,2100,1,0,0,0,2102,2103,1,0,0,0,2103,2105,1,0,0,0,2104,2106,3,900,450,0,2105,2104,1,0,0,0,2105,2106,1,0,0,0,2106,2109,1,0,0,0,2107,2108,5,151,0,0,2108,2110,3,14,7,0,2109,2107,1,0,0,0,2109,2110,1,0,0,0,2110,2113,1,0,0,0,2111,2112,5,51,0,0,2112,2114,3,314,157,0,2113,2111,1,0,0,0,2113,2114,1,0,0,0,2114,2116,1,0,0,0,2115,2094,1,0,0,0,2115,2116,1,0,0,0,2116,245,1,0,0,0,2117,2118,3,824,412,0,2118,2119,5,1,0,0,2119,2120,3,14,7,0,2120,247,1,0,0,0,2121,2126,3,246,123,0,2122,2123,5,24,0,0,2123,2125,3,246,123,0,2124,2122,1,0,0,0,2125,2128,1,0,0,0,2126,2124,1,0,0,0,2126,2127,1,0,0,0,2127,249,1,0,0,0,2128,2126,1,0,0,0,2129,2130,5,237,0,0,2130,2135,3,346,173,0,2131,2132,5,24,0,0,2132,2134,3,346,173,0,2133,2131,1,0,0,0,2134,2137,1,0,0,0,2135,2133,1,0,0,0,2135,2136,1,0,0,0,2136,2140,1,0,0,0,2137,2135,1,0,0,0,2138,2139,5,229,0,0,2139,2141,3,230,115,0,2140,2138,1,0,0,0,2140,2141,1,0,0,0,2141,2142,1,0,0,0,2142,2143,5,207,0,0,2143,2144,3,124,62,0,2144,2146,5,313,0,0,2145,2147,5,42,0,0,2146,2145,1,0,0,0,2146,2147,1,0,0,0,2147,2148,1,0,0,0,2148,2151,3,136,68,0,2149,2150,5,49,0,0,2150,2152,3,824,412,0,2151,2149,1,0,0,0,2151,2152,1,0,0,0,2152,2154,1,0,0,0,2153,2155,3,900,450,0,2154,2153,1,0,0,0,2154,2155,1,0,0,0,2155,2158,1,0,0,0,2156,2157,5,151,0,0,2157,2159,3,14,7,0,2158,2156,1,0,0,0,2158,2159,1,0,0,0,2159,2162,1,0,0,0,2160,2161,5,51,0,0,2161,2163,3,314,157,0,2162,2160,1,0,0,0,2162,2163,1,0,0,0,2163,251,1,0,0,0,2164,2166,7,11,0,0,2165,2164,1,0,0,0,2165,2166,1,0,0,0,2166,253,1,0,0,0,2167,2168,5,141,0,0,2168,2170,3,338,169,0,2169,2167,1,0,0,0,2169,2170,1,0,0,0,2170,2171,1,0,0,0,2171,2173,5,269,0,0,2172,2174,5,278,0,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,2175,1,0,0,0,2175,2176,3,252,126,0,2176,2181,3,336,168,0,2177,2178,5,24,0,0,2178,2180,3,336,168,0,2179,2177,1,0,0,0,2180,2183,1,0,0,0,2181,2179,1,0,0,0,2181,2182,1,0,0,0,2182,2185,1,0,0,0,2183,2181,1,0,0,0,2184,2186,5,24,0,0,2185,2184,1,0,0,0,2185,2186,1,0,0,0,2186,2189,1,0,0,0,2187,2188,5,323,0,0,2188,2190,3,126,63,0,2189,2187,1,0,0,0,2189,2190,1,0,0,0,2190,2193,1,0,0,0,2191,2192,5,141,0,0,2192,2194,3,338,169,0,2193,2191,1,0,0,0,2193,2194,1,0,0,0,2194,2196,1,0,0,0,2195,2197,3,900,450,0,2196,2195,1,0,0,0,2196,2197,1,0,0,0,2197,2199,1,0,0,0,2198,2200,3,318,159,0,2199,2198,1,0,0,0,2199,2200,1,0,0,0,2200,2203,1,0,0,0,2201,2202,5,151,0,0,2202,2204,3,14,7,0,2203,2201,1,0,0,0,2203,2204,1,0,0,0,2204,2206,1,0,0,0,2205,2207,3,754,377,0,2206,2205,1,0,0,0,2206,2207,1,0,0,0,2207,2209,1,0,0,0,2208,2210,3,316,158,0,2209,2208,1,0,0,0,2209,2210,1,0,0,0,2210,255,1,0,0,0,2211,2212,5,189,0,0,2212,2214,5,25,0,0,2213,2215,3,768,384,0,2214,2213,1,0,0,0,2214,2215,1,0,0,0,2215,2217,1,0,0,0,2216,2218,3,314,157,0,2217,2216,1,0,0,0,2217,2218,1,0,0,0,2218,2220,1,0,0,0,2219,2221,3,262,131,0,2220,2219,1,0,0,0,2220,2221,1,0,0,0,2221,2223,1,0,0,0,2222,2224,3,258,129,0,2223,2222,1,0,0,0,2223,2224,1,0,0,0,2224,2225,1,0,0,0,2225,2226,3,268,134,0,2226,2227,5,26,0,0,2227,257,1,0,0,0,2228,2229,5,208,0,0,2229,2230,5,262,0,0,2230,2231,5,223,0,0,2231,2240,5,187,0,0,2232,2233,5,42,0,0,2233,2234,5,263,0,0,2234,2235,5,223,0,0,2235,2237,5,187,0,0,2236,2238,3,260,130,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2240,1,0,0,0,2239,2228,1,0,0,0,2239,2232,1,0,0,0,2240,259,1,0,0,0,2241,2242,5,273,0,0,2242,2243,5,114,0,0,2243,2251,5,188,0,0,2244,2245,5,206,0,0,2245,2246,5,114,0,0,2246,2251,5,188,0,0,2247,2248,5,322,0,0,2248,2249,5,308,0,0,2249,2251,5,263,0,0,2250,2241,1,0,0,0,2250,2244,1,0,0,0,2250,2247,1,0,0,0,2251,261,1,0,0,0,2252,2253,5,190,0,0,2253,2254,3,264,132,0,2254,263,1,0,0,0,2255,2260,3,266,133,0,2256,2257,5,24,0,0,2257,2259,3,266,133,0,2258,2256,1,0,0,0,2259,2262,1,0,0,0,2260,2258,1,0,0,0,2260,2261,1,0,0,0,2261,265,1,0,0,0,2262,2260,1,0,0,0,2263,2264,3,14,7,0,2264,2265,5,49,0,0,2265,2266,3,824,412,0,2266,267,1,0,0,0,2267,2268,5,41,0,0,2268,2269,5,187,0,0,2269,2271,3,270,135,0,2270,2267,1,0,0,0,2270,2271,1,0,0,0,2271,2273,1,0,0,0,2272,2274,3,274,137,0,2273,2272,1,0,0,0,2273,2274,1,0,0,0,2274,2275,1,0,0,0,2275,2276,5,222,0,0,2276,2277,5,25,0,0,2277,2278,3,276,138,0,2278,2280,5,26,0,0,2279,2281,3,290,145,0,2280,2279,1,0,0,0,2280,2281,1,0,0,0,2281,2282,1,0,0,0,2282,2283,5,100,0,0,2283,2284,3,302,151,0,2284,269,1,0,0,0,2285,2286,5,274,0,0,2286,2287,5,295,0,0,2287,2288,5,196,0,0,2288,2305,5,262,0,0,2289,2290,5,274,0,0,2290,2291,5,221,0,0,2291,2292,5,178,0,0,2292,2305,5,262,0,0,2293,2294,5,274,0,0,2294,2295,5,295,0,0,2295,2296,5,135,0,0,2296,2305,3,272,136,0,2297,2298,5,274,0,0,2298,2299,5,295,0,0,2299,2300,5,178,0,0,2300,2305,3,272,136,0,2301,2302,5,274,0,0,2302,2303,5,295,0,0,2303,2305,3,272,136,0,2304,2285,1,0,0,0,2304,2289,1,0,0,0,2304,2293,1,0,0,0,2304,2297,1,0,0,0,2304,2301,1,0,0,0,2305,271,1,0,0,0,2306,2307,3,312,156,0,2307,273,1,0,0,0,2308,2309,7,12,0,0,2309,275,1,0,0,0,2310,2315,3,278,139,0,2311,2312,5,12,0,0,2312,2314,3,278,139,0,2313,2311,1,0,0,0,2314,2317,1,0,0,0,2315,2313,1,0,0,0,2315,2316,1,0,0,0,2316,277,1,0,0,0,2317,2315,1,0,0,0,2318,2320,3,280,140,0,2319,2318,1,0,0,0,2320,2321,1,0,0,0,2321,2319,1,0,0,0,2321,2322,1,0,0,0,2322,279,1,0,0,0,2323,2325,3,284,142,0,2324,2326,3,282,141,0,2325,2324,1,0,0,0,2325,2326,1,0,0,0,2326,281,1,0,0,0,2327,2329,5,19,0,0,2328,2330,5,27,0,0,2329,2328,1,0,0,0,2329,2330,1,0,0,0,2330,2356,1,0,0,0,2331,2333,5,16,0,0,2332,2334,5,27,0,0,2333,2332,1,0,0,0,2333,2334,1,0,0,0,2334,2356,1,0,0,0,2335,2337,5,27,0,0,2336,2338,5,27,0,0,2337,2336,1,0,0,0,2337,2338,1,0,0,0,2338,2356,1,0,0,0,2339,2341,5,31,0,0,2340,2342,3,888,444,0,2341,2340,1,0,0,0,2341,2342,1,0,0,0,2342,2343,1,0,0,0,2343,2345,5,24,0,0,2344,2346,3,888,444,0,2345,2344,1,0,0,0,2345,2346,1,0,0,0,2346,2347,1,0,0,0,2347,2349,5,32,0,0,2348,2350,5,27,0,0,2349,2348,1,0,0,0,2349,2350,1,0,0,0,2350,2356,1,0,0,0,2351,2352,5,31,0,0,2352,2353,3,888,444,0,2353,2354,5,32,0,0,2354,2356,1,0,0,0,2355,2327,1,0,0,0,2355,2331,1,0,0,0,2355,2335,1,0,0,0,2355,2339,1,0,0,0,2355,2351,1,0,0,0,2356,283,1,0,0,0,2357,2373,3,286,143,0,2358,2373,5,30,0,0,2359,2373,5,33,0,0,2360,2362,5,25,0,0,2361,2363,3,276,138,0,2362,2361,1,0,0,0,2362,2363,1,0,0,0,2363,2364,1,0,0,0,2364,2373,5,26,0,0,2365,2366,5,31,0,0,2366,2367,5,17,0,0,2367,2368,3,276,138,0,2368,2369,5,17,0,0,2369,2370,5,32,0,0,2370,2373,1,0,0,0,2371,2373,3,288,144,0,2372,2357,1,0,0,0,2372,2358,1,0,0,0,2372,2359,1,0,0,0,2372,2360,1,0,0,0,2372,2365,1,0,0,0,2372,2371,1,0,0,0,2373,285,1,0,0,0,2374,2375,3,312,156,0,2375,287,1,0,0,0,2376,2377,5,224,0,0,2377,2378,5,25,0,0,2378,2383,3,276,138,0,2379,2380,5,24,0,0,2380,2382,3,276,138,0,2381,2379,1,0,0,0,2382,2385,1,0,0,0,2383,2381,1,0,0,0,2383,2384,1,0,0,0,2384,2386,1,0,0,0,2385,2383,1,0,0,0,2386,2387,5,26,0,0,2387,289,1,0,0,0,2388,2389,5,281,0,0,2389,2390,3,292,146,0,2390,291,1,0,0,0,2391,2396,3,294,147,0,2392,2393,5,24,0,0,2393,2395,3,294,147,0,2394,2392,1,0,0,0,2395,2398,1,0,0,0,2396,2394,1,0,0,0,2396,2397,1,0,0,0,2397,293,1,0,0,0,2398,2396,1,0,0,0,2399,2400,3,296,148,0,2400,2401,5,1,0,0,2401,2402,5,25,0,0,2402,2403,3,298,149,0,2403,2404,5,26,0,0,2404,295,1,0,0,0,2405,2406,3,312,156,0,2406,297,1,0,0,0,2407,2412,3,300,150,0,2408,2409,5,24,0,0,2409,2411,3,300,150,0,2410,2408,1,0,0,0,2411,2414,1,0,0,0,2412,2410,1,0,0,0,2412,2413,1,0,0,0,2413,299,1,0,0,0,2414,2412,1,0,0,0,2415,2416,3,312,156,0,2416,301,1,0,0,0,2417,2422,3,304,152,0,2418,2419,5,24,0,0,2419,2421,3,304,152,0,2420,2418,1,0,0,0,2421,2424,1,0,0,0,2422,2420,1,0,0,0,2422,2423,1,0,0,0,2423,303,1,0,0,0,2424,2422,1,0,0,0,2425,2426,3,306,153,0,2426,2427,5,49,0,0,2427,2428,3,308,154,0,2428,305,1,0,0,0,2429,2430,3,312,156,0,2430,307,1,0,0,0,2431,2432,3,310,155,0,2432,309,1,0,0,0,2433,2434,3,14,7,0,2434,311,1,0,0,0,2435,2436,3,804,402,0,2436,313,1,0,0,0,2437,2438,5,213,0,0,2438,2439,5,67,0,0,2439,2440,3,230,115,0,2440,315,1,0,0,0,2441,2443,5,51,0,0,2442,2441,1,0,0,0,2442,2443,1,0,0,0,2443,2444,1,0,0,0,2444,2445,3,314,157,0,2445,317,1,0,0,0,2446,2448,5,147,0,0,2447,2449,5,79,0,0,2448,2447,1,0,0,0,2448,2449,1,0,0,0,2449,2450,1,0,0,0,2450,2451,5,67,0,0,2451,2452,3,252,126,0,2452,2455,3,320,160,0,2453,2454,5,322,0,0,2454,2456,3,824,412,0,2455,2453,1,0,0,0,2455,2456,1,0,0,0,2456,319,1,0,0,0,2457,2462,3,322,161,0,2458,2459,5,24,0,0,2459,2461,3,322,161,0,2460,2458,1,0,0,0,2461,2464,1,0,0,0,2462,2460,1,0,0,0,2462,2463,1,0,0,0,2463,321,1,0,0,0,2464,2462,1,0,0,0,2465,2471,3,324,162,0,2466,2471,3,328,164,0,2467,2471,3,330,165,0,2468,2471,3,332,166,0,2469,2471,3,334,167,0,2470,2465,1,0,0,0,2470,2466,1,0,0,0,2470,2467,1,0,0,0,2470,2468,1,0,0,0,2470,2469,1,0,0,0,2471,323,1,0,0,0,2472,2473,3,128,64,0,2473,325,1,0,0,0,2474,2479,3,324,162,0,2475,2476,5,24,0,0,2476,2478,3,324,162,0,2477,2475,1,0,0,0,2478,2481,1,0,0,0,2479,2477,1,0,0,0,2479,2480,1,0,0,0,2480,327,1,0,0,0,2481,2479,1,0,0,0,2482,2483,5,261,0,0,2483,2484,5,25,0,0,2484,2485,3,326,163,0,2485,2486,5,26,0,0,2486,329,1,0,0,0,2487,2488,5,88,0,0,2488,2489,5,25,0,0,2489,2490,3,326,163,0,2490,2491,5,26,0,0,2491,331,1,0,0,0,2492,2493,5,148,0,0,2493,2494,5,272,0,0,2494,2495,5,25,0,0,2495,2496,3,320,160,0,2496,2497,5,26,0,0,2497,333,1,0,0,0,2498,2499,5,152,0,0,2499,2500,5,25,0,0,2500,2501,3,14,7,0,2501,2502,5,24,0,0,2502,2503,3,14,7,0,2503,2504,5,24,0,0,2504,2505,3,14,7,0,2505,2506,5,24,0,0,2506,2507,3,14,7,0,2507,2508,5,26,0,0,2508,335,1,0,0,0,2509,2510,3,848,424,0,2510,2511,5,19,0,0,2511,2519,1,0,0,0,2512,2516,3,14,7,0,2513,2514,5,49,0,0,2514,2517,3,826,413,0,2515,2517,3,844,422,0,2516,2513,1,0,0,0,2516,2515,1,0,0,0,2516,2517,1,0,0,0,2517,2519,1,0,0,0,2518,2509,1,0,0,0,2518,2512,1,0,0,0,2519,337,1,0,0,0,2520,2522,5,47,0,0,2521,2520,1,0,0,0,2521,2522,1,0,0,0,2522,2523,1,0,0,0,2523,2534,3,344,172,0,2524,2526,3,358,179,0,2525,2527,5,47,0,0,2526,2525,1,0,0,0,2526,2527,1,0,0,0,2527,2528,1,0,0,0,2528,2530,3,344,172,0,2529,2531,3,360,180,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2533,1,0,0,0,2532,2524,1,0,0,0,2533,2536,1,0,0,0,2534,2532,1,0,0,0,2534,2535,1,0,0,0,2535,339,1,0,0,0,2536,2534,1,0,0,0,2537,2540,3,120,60,0,2538,2539,5,49,0,0,2539,2541,3,824,412,0,2540,2538,1,0,0,0,2540,2541,1,0,0,0,2541,341,1,0,0,0,2542,2551,3,340,170,0,2543,2544,5,25,0,0,2544,2546,3,130,65,0,2545,2547,5,24,0,0,2546,2545,1,0,0,0,2546,2547,1,0,0,0,2547,2548,1,0,0,0,2548,2549,5,26,0,0,2549,2551,1,0,0,0,2550,2542,1,0,0,0,2550,2543,1,0,0,0,2551,343,1,0,0,0,2552,2562,3,346,173,0,2553,2560,5,136,0,0,2554,2556,7,13,0,0,2555,2554,1,0,0,0,2555,2556,1,0,0,0,2556,2557,1,0,0,0,2557,2558,5,67,0,0,2558,2561,3,342,171,0,2559,2561,5,77,0,0,2560,2555,1,0,0,0,2560,2559,1,0,0,0,2561,2563,1,0,0,0,2562,2553,1,0,0,0,2562,2563,1,0,0,0,2563,345,1,0,0,0,2564,2566,3,348,174,0,2565,2567,3,256,128,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,2576,1,0,0,0,2568,2569,5,49,0,0,2569,2572,3,824,412,0,2570,2572,3,844,422,0,2571,2568,1,0,0,0,2571,2570,1,0,0,0,2572,2574,1,0,0,0,2573,2575,3,114,57,0,2574,2573,1,0,0,0,2574,2575,1,0,0,0,2575,2577,1,0,0,0,2576,2571,1,0,0,0,2576,2577,1,0,0,0,2577,2580,1,0,0,0,2578,2581,3,350,175,0,2579,2581,3,352,176,0,2580,2578,1,0,0,0,2580,2579,1,0,0,0,2580,2581,1,0,0,0,2581,347,1,0,0,0,2582,2592,3,662,331,0,2583,2584,5,25,0,0,2584,2585,3,232,116,0,2585,2586,5,26,0,0,2586,2592,1,0,0,0,2587,2588,5,25,0,0,2588,2589,3,370,185,0,2589,2590,5,26,0,0,2590,2592,1,0,0,0,2591,2582,1,0,0,0,2591,2583,1,0,0,0,2591,2587,1,0,0,0,2592,349,1,0,0,0,2593,2594,5,264,0,0,2594,2595,3,14,7,0,2595,351,1,0,0,0,2596,2597,5,288,0,0,2597,2598,3,354,177,0,2598,2599,5,25,0,0,2599,2600,3,14,7,0,2600,2602,5,26,0,0,2601,2603,3,356,178,0,2602,2601,1,0,0,0,2602,2603,1,0,0,0,2603,353,1,0,0,0,2604,2605,7,14,0,0,2605,355,1,0,0,0,2606,2607,5,244,0,0,2607,2608,5,25,0,0,2608,2609,3,14,7,0,2609,2610,5,26,0,0,2610,357,1,0,0,0,2611,2636,5,24,0,0,2612,2614,5,195,0,0,2613,2612,1,0,0,0,2613,2614,1,0,0,0,2614,2632,1,0,0,0,2615,2617,5,179,0,0,2616,2618,7,15,0,0,2617,2616,1,0,0,0,2617,2618,1,0,0,0,2618,2626,1,0,0,0,2619,2621,5,258,0,0,2620,2622,7,15,0,0,2621,2620,1,0,0,0,2621,2622,1,0,0,0,2622,2626,1,0,0,0,2623,2626,5,125,0,0,2624,2626,5,142,0,0,2625,2615,1,0,0,0,2625,2619,1,0,0,0,2625,2623,1,0,0,0,2625,2624,1,0,0,0,2625,2626,1,0,0,0,2626,2628,1,0,0,0,2627,2629,5,215,0,0,2628,2627,1,0,0,0,2628,2629,1,0,0,0,2629,2633,1,0,0,0,2630,2633,5,166,0,0,2631,2633,5,87,0,0,2632,2625,1,0,0,0,2632,2630,1,0,0,0,2632,2631,1,0,0,0,2633,2634,1,0,0,0,2634,2636,5,173,0,0,2635,2611,1,0,0,0,2635,2613,1,0,0,0,2636,359,1,0,0,0,2637,2638,5,207,0,0,2638,2642,3,14,7,0,2639,2640,5,313,0,0,2640,2642,3,118,59,0,2641,2637,1,0,0,0,2641,2639,1,0,0,0,2642,361,1,0,0,0,2643,2653,5,255,0,0,2644,2654,5,19,0,0,2645,2650,3,824,412,0,2646,2647,5,24,0,0,2647,2649,3,824,412,0,2648,2646,1,0,0,0,2649,2652,1,0,0,0,2650,2648,1,0,0,0,2650,2651,1,0,0,0,2651,2654,1,0,0,0,2652,2650,1,0,0,0,2653,2644,1,0,0,0,2653,2645,1,0,0,0,2654,363,1,0,0,0,2655,2668,5,167,0,0,2656,2657,5,167,0,0,2657,2658,5,212,0,0,2658,2668,5,38,0,0,2659,2660,5,167,0,0,2660,2661,5,212,0,0,2661,2668,5,256,0,0,2662,2663,5,167,0,0,2663,2664,5,212,0,0,2664,2668,5,154,0,0,2665,2668,5,310,0,0,2666,2668,5,245,0,0,2667,2655,1,0,0,0,2667,2656,1,0,0,0,2667,2659,1,0,0,0,2667,2662,1,0,0,0,2667,2665,1,0,0,0,2667,2666,1,0,0,0,2668,2669,1,0,0,0,2669,2670,5,170,0,0,2670,2671,3,678,339,0,2671,2673,3,368,184,0,2672,2674,3,362,181,0,2673,2672,1,0,0,0,2673,2674,1,0,0,0,2674,365,1,0,0,0,2675,2687,5,167,0,0,2676,2677,5,167,0,0,2677,2678,5,212,0,0,2678,2687,5,38,0,0,2679,2680,5,167,0,0,2680,2681,5,212,0,0,2681,2687,5,256,0,0,2682,2683,5,167,0,0,2683,2684,5,212,0,0,2684,2687,5,154,0,0,2685,2687,5,245,0,0,2686,2675,1,0,0,0,2686,2676,1,0,0,0,2686,2679,1,0,0,0,2686,2682,1,0,0,0,2686,2685,1,0,0,0,2687,2688,1,0,0,0,2688,2689,5,170,0,0,2689,2690,3,678,339,0,2690,2691,3,368,184,0,2691,367,1,0,0,0,2692,2694,3,114,57,0,2693,2692,1,0,0,0,2693,2694,1,0,0,0,2694,2695,1,0,0,0,2695,2699,3,372,186,0,2696,2697,5,97,0,0,2697,2699,5,315,0,0,2698,2693,1,0,0,0,2698,2696,1,0,0,0,2699,369,1,0,0,0,2700,2701,5,315,0,0,2701,2702,3,374,187,0,2702,371,1,0,0,0,2703,2706,3,370,185,0,2704,2706,3,232,116,0,2705,2703,1,0,0,0,2705,2704,1,0,0,0,2706,373,1,0,0,0,2707,2712,3,376,188,0,2708,2709,5,24,0,0,2709,2711,3,376,188,0,2710,2708,1,0,0,0,2711,2714,1,0,0,0,2712,2710,1,0,0,0,2712,2713,1,0,0,0,2713,375,1,0,0,0,2714,2712,1,0,0,0,2715,2716,5,25,0,0,2716,2717,3,112,56,0,2717,2718,5,26,0,0,2718,377,1,0,0,0,2719,2722,3,112,56,0,2720,2722,3,232,116,0,2721,2719,1,0,0,0,2721,2720,1,0,0,0,2722,379,1,0,0,0,2723,2726,5,86,0,0,2724,2725,5,212,0,0,2725,2727,5,245,0,0,2726,2724,1,0,0,0,2726,2727,1,0,0,0,2727,2728,1,0,0,0,2728,2729,5,130,0,0,2729,2730,5,93,0,0,2730,2734,5,276,0,0,2731,2732,5,153,0,0,2732,2733,5,199,0,0,2733,2735,5,127,0,0,2734,2731,1,0,0,0,2734,2735,1,0,0,0,2735,2736,1,0,0,0,2736,2737,3,672,336,0,2737,2738,3,456,228,0,2738,381,1,0,0,0,2739,2740,5,43,0,0,2740,2741,5,130,0,0,2741,2742,5,93,0,0,2742,2743,5,276,0,0,2743,2744,3,672,336,0,2744,2749,3,384,192,0,2745,2746,5,24,0,0,2746,2748,3,384,192,0,2747,2745,1,0,0,0,2748,2751,1,0,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,383,1,0,0,0,2751,2749,1,0,0,0,2752,2756,3,488,244,0,2753,2756,3,490,245,0,2754,2756,3,492,246,0,2755,2752,1,0,0,0,2755,2753,1,0,0,0,2755,2754,1,0,0,0,2756,385,1,0,0,0,2757,2758,5,111,0,0,2758,2759,5,130,0,0,2759,2760,5,93,0,0,2760,2763,5,276,0,0,2761,2762,5,153,0,0,2762,2764,5,127,0,0,2763,2761,1,0,0,0,2763,2764,1,0,0,0,2764,2765,1,0,0,0,2765,2766,3,672,336,0,2766,387,1,0,0,0,2767,2768,5,86,0,0,2768,2772,5,317,0,0,2769,2770,5,153,0,0,2770,2771,5,199,0,0,2771,2773,5,127,0,0,2772,2769,1,0,0,0,2772,2773,1,0,0,0,2773,2774,1,0,0,0,2774,2776,3,672,336,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,2778,1,0,0,0,2778,2779,5,49,0,0,2779,2780,3,232,116,0,2780,389,1,0,0,0,2781,2782,5,111,0,0,2782,2785,5,317,0,0,2783,2784,5,153,0,0,2784,2786,5,127,0,0,2785,2783,1,0,0,0,2785,2786,1,0,0,0,2786,2787,1,0,0,0,2787,2788,3,672,336,0,2788,391,1,0,0,0,2789,2790,5,310,0,0,2790,2791,5,203,0,0,2791,2792,3,672,336,0,2792,2793,5,25,0,0,2793,2794,5,302,0,0,2794,2795,3,416,208,0,2795,2797,5,26,0,0,2796,2798,3,396,198,0,2797,2796,1,0,0,0,2797,2798,1,0,0,0,2798,393,1,0,0,0,2799,2800,5,86,0,0,2800,2804,5,203,0,0,2801,2802,5,153,0,0,2802,2803,5,199,0,0,2803,2805,5,127,0,0,2804,2801,1,0,0,0,2804,2805,1,0,0,0,2805,2806,1,0,0,0,2806,2807,3,672,336,0,2807,2808,5,25,0,0,2808,2809,5,302,0,0,2809,2810,3,416,208,0,2810,2812,5,26,0,0,2811,2813,3,396,198,0,2812,2811,1,0,0,0,2812,2813,1,0,0,0,2813,395,1,0,0,0,2814,2815,5,322,0,0,2815,2816,3,414,207,0,2816,397,1,0,0,0,2817,2818,5,43,0,0,2818,2819,5,203,0,0,2819,2820,3,672,336,0,2820,2821,5,25,0,0,2821,2822,5,302,0,0,2822,2823,3,416,208,0,2823,2824,5,26,0,0,2824,2825,3,400,200,0,2825,399,1,0,0,0,2826,2827,5,271,0,0,2827,2828,3,414,207,0,2828,401,1,0,0,0,2829,2830,5,111,0,0,2830,2833,5,203,0,0,2831,2832,5,153,0,0,2832,2834,5,127,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2835,1,0,0,0,2835,2836,3,672,336,0,2836,2837,5,25,0,0,2837,2838,5,302,0,0,2838,2839,3,416,208,0,2839,2841,5,26,0,0,2840,2842,3,404,202,0,2841,2840,1,0,0,0,2841,2842,1,0,0,0,2842,403,1,0,0,0,2843,2844,5,322,0,0,2844,2845,3,414,207,0,2845,405,1,0,0,0,2846,2851,3,852,426,0,2847,2851,3,144,72,0,2848,2851,5,326,0,0,2849,2851,3,884,442,0,2850,2846,1,0,0,0,2850,2847,1,0,0,0,2850,2848,1,0,0,0,2850,2849,1,0,0,0,2851,407,1,0,0,0,2852,2853,3,826,413,0,2853,2854,5,1,0,0,2854,2855,3,406,203,0,2855,409,1,0,0,0,2856,2857,3,826,413,0,2857,411,1,0,0,0,2858,2861,3,408,204,0,2859,2861,3,410,205,0,2860,2858,1,0,0,0,2860,2859,1,0,0,0,2861,413,1,0,0,0,2862,2875,3,412,206,0,2863,2864,5,25,0,0,2864,2869,3,412,206,0,2865,2866,5,24,0,0,2866,2868,3,412,206,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2872,1,0,0,0,2871,2869,1,0,0,0,2872,2873,5,26,0,0,2873,2875,1,0,0,0,2874,2862,1,0,0,0,2874,2863,1,0,0,0,2875,415,1,0,0,0,2876,2877,3,826,413,0,2877,417,1,0,0,0,2878,2881,5,86,0,0,2879,2880,5,212,0,0,2880,2882,5,245,0,0,2881,2879,1,0,0,0,2881,2882,1,0,0,0,2882,2891,1,0,0,0,2883,2892,5,286,0,0,2884,2892,5,289,0,0,2885,2886,5,130,0,0,2886,2892,5,286,0,0,2887,2888,5,291,0,0,2888,2892,5,286,0,0,2889,2890,5,292,0,0,2890,2892,5,286,0,0,2891,2883,1,0,0,0,2891,2884,1,0,0,0,2891,2885,1,0,0,0,2891,2887,1,0,0,0,2891,2889,1,0,0,0,2892,2896,1,0,0,0,2893,2894,5,153,0,0,2894,2895,5,199,0,0,2895,2897,5,127,0,0,2896,2893,1,0,0,0,2896,2897,1,0,0,0,2897,2898,1,0,0,0,2898,2899,3,676,338,0,2899,2900,5,25,0,0,2900,2905,3,420,210,0,2901,2902,5,24,0,0,2902,2904,3,420,210,0,2903,2901,1,0,0,0,2904,2907,1,0,0,0,2905,2903,1,0,0,0,2905,2906,1,0,0,0,2906,2909,1,0,0,0,2907,2905,1,0,0,0,2908,2910,5,24,0,0,2909,2908,1,0,0,0,2909,2910,1,0,0,0,2910,2911,1,0,0,0,2911,2913,5,26,0,0,2912,2914,3,452,226,0,2913,2912,1,0,0,0,2913,2914,1,0,0,0,2914,2916,1,0,0,0,2915,2917,3,454,227,0,2916,2915,1,0,0,0,2916,2917,1,0,0,0,2917,2919,1,0,0,0,2918,2920,3,456,228,0,2919,2918,1,0,0,0,2919,2920,1,0,0,0,2920,2922,1,0,0,0,2921,2923,3,458,229,0,2922,2921,1,0,0,0,2922,2923,1,0,0,0,2923,2925,1,0,0,0,2924,2926,3,462,231,0,2925,2924,1,0,0,0,2925,2926,1,0,0,0,2926,419,1,0,0,0,2927,2934,3,510,255,0,2928,2934,3,518,259,0,2929,2934,3,520,260,0,2930,2934,3,554,277,0,2931,2934,3,536,268,0,2932,2934,3,828,414,0,2933,2927,1,0,0,0,2933,2928,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2933,2931,1,0,0,0,2933,2932,1,0,0,0,2934,421,1,0,0,0,2935,2936,5,86,0,0,2936,2938,3,442,221,0,2937,2939,3,428,214,0,2938,2937,1,0,0,0,2938,2939,1,0,0,0,2939,2940,1,0,0,0,2940,2941,5,322,0,0,2941,2942,5,25,0,0,2942,2943,3,444,222,0,2943,2944,5,26,0,0,2944,423,1,0,0,0,2945,2946,5,43,0,0,2946,2949,3,442,221,0,2947,2950,3,434,217,0,2948,2950,3,438,219,0,2949,2947,1,0,0,0,2949,2948,1,0,0,0,2950,425,1,0,0,0,2951,2952,5,111,0,0,2952,2953,3,442,221,0,2953,427,1,0,0,0,2954,2957,5,94,0,0,2955,2957,3,430,215,0,2956,2954,1,0,0,0,2956,2955,1,0,0,0,2957,429,1,0,0,0,2958,2959,5,25,0,0,2959,2960,3,432,216,0,2960,2961,5,26,0,0,2961,431,1,0,0,0,2962,2963,5,286,0,0,2963,2969,3,836,418,0,2964,2965,5,24,0,0,2965,2966,5,286,0,0,2966,2968,3,836,418,0,2967,2964,1,0,0,0,2968,2971,1,0,0,0,2969,2967,1,0,0,0,2969,2970,1,0,0,0,2970,433,1,0,0,0,2971,2969,1,0,0,0,2972,2977,3,436,218,0,2973,2974,5,24,0,0,2974,2976,3,436,218,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,435,1,0,0,0,2979,2977,1,0,0,0,2980,2983,3,490,245,0,2981,2983,3,492,246,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2983,437,1,0,0,0,2984,2989,3,440,220,0,2985,2986,5,24,0,0,2986,2988,3,440,220,0,2987,2985,1,0,0,0,2988,2991,1,0,0,0,2989,2987,1,0,0,0,2989,2990,1,0,0,0,2990,439,1,0,0,0,2991,2989,1,0,0,0,2992,2993,5,40,0,0,2993,3003,5,94,0,0,2994,2995,5,111,0,0,2995,3003,5,94,0,0,2996,2997,5,40,0,0,2997,2998,5,286,0,0,2998,3003,3,836,418,0,2999,3e3,5,111,0,0,3e3,3001,5,286,0,0,3001,3003,3,836,418,0,3002,2992,1,0,0,0,3002,2994,1,0,0,0,3002,2996,1,0,0,0,3002,2999,1,0,0,0,3003,441,1,0,0,0,3004,3005,5,59,0,0,3005,3006,5,61,0,0,3006,3007,3,672,336,0,3007,443,1,0,0,0,3008,3013,3,446,223,0,3009,3010,5,24,0,0,3010,3012,3,446,223,0,3011,3009,1,0,0,0,3012,3015,1,0,0,0,3013,3011,1,0,0,0,3013,3014,1,0,0,0,3014,445,1,0,0,0,3015,3013,1,0,0,0,3016,3017,3,824,412,0,3017,3018,5,1,0,0,3018,3019,3,548,274,0,3019,447,1,0,0,0,3020,3021,5,59,0,0,3021,3023,3,672,336,0,3022,3024,5,160,0,0,3023,3022,1,0,0,0,3023,3024,1,0,0,0,3024,449,1,0,0,0,3025,3026,5,251,0,0,3026,3029,3,672,336,0,3027,3028,5,54,0,0,3028,3030,5,326,0,0,3029,3027,1,0,0,0,3029,3030,1,0,0,0,3030,451,1,0,0,0,3031,3032,5,163,0,0,3032,3033,5,25,0,0,3033,3038,3,674,337,0,3034,3035,5,24,0,0,3035,3037,3,674,337,0,3036,3034,1,0,0,0,3037,3040,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,3041,1,0,0,0,3040,3038,1,0,0,0,3041,3042,5,26,0,0,3042,453,1,0,0,0,3043,3044,5,218,0,0,3044,3045,5,67,0,0,3045,3046,5,150,0,0,3046,3047,3,114,57,0,3047,455,1,0,0,0,3048,3049,5,322,0,0,3049,3050,5,25,0,0,3050,3055,3,460,230,0,3051,3052,5,24,0,0,3052,3054,3,460,230,0,3053,3051,1,0,0,0,3054,3057,1,0,0,0,3055,3053,1,0,0,0,3055,3056,1,0,0,0,3056,3058,1,0,0,0,3057,3055,1,0,0,0,3058,3059,5,26,0,0,3059,457,1,0,0,0,3060,3061,5,289,0,0,3061,3062,3,674,337,0,3062,459,1,0,0,0,3063,3064,3,824,412,0,3064,3065,5,1,0,0,3065,3066,3,548,274,0,3066,461,1,0,0,0,3067,3068,5,49,0,0,3068,3069,3,372,186,0,3069,463,1,0,0,0,3070,3071,5,43,0,0,3071,3072,5,286,0,0,3072,3073,3,676,338,0,3073,3078,3,466,233,0,3074,3075,5,24,0,0,3075,3077,3,466,233,0,3076,3074,1,0,0,0,3077,3080,1,0,0,0,3078,3076,1,0,0,0,3078,3079,1,0,0,0,3079,465,1,0,0,0,3080,3078,1,0,0,0,3081,3099,3,476,238,0,3082,3099,3,478,239,0,3083,3099,3,480,240,0,3084,3099,3,484,242,0,3085,3099,3,486,243,0,3086,3099,3,488,244,0,3087,3099,3,490,245,0,3088,3099,3,492,246,0,3089,3099,3,494,247,0,3090,3099,3,496,248,0,3091,3099,3,498,249,0,3092,3099,3,502,251,0,3093,3099,3,504,252,0,3094,3099,3,506,253,0,3095,3099,3,500,250,0,3096,3099,3,508,254,0,3097,3099,3,482,241,0,3098,3081,1,0,0,0,3098,3082,1,0,0,0,3098,3083,1,0,0,0,3098,3084,1,0,0,0,3098,3085,1,0,0,0,3098,3086,1,0,0,0,3098,3087,1,0,0,0,3098,3088,1,0,0,0,3098,3089,1,0,0,0,3098,3090,1,0,0,0,3098,3091,1,0,0,0,3098,3092,1,0,0,0,3098,3093,1,0,0,0,3098,3094,1,0,0,0,3098,3095,1,0,0,0,3098,3096,1,0,0,0,3098,3097,1,0,0,0,3099,467,1,0,0,0,3100,3101,5,43,0,0,3101,3102,5,130,0,0,3102,3103,5,286,0,0,3103,3104,3,676,338,0,3104,3109,3,470,235,0,3105,3106,5,24,0,0,3106,3108,3,470,235,0,3107,3105,1,0,0,0,3108,3111,1,0,0,0,3109,3107,1,0,0,0,3109,3110,1,0,0,0,3110,469,1,0,0,0,3111,3109,1,0,0,0,3112,3118,3,476,238,0,3113,3118,3,478,239,0,3114,3118,3,488,244,0,3115,3118,3,490,245,0,3116,3118,3,492,246,0,3117,3112,1,0,0,0,3117,3113,1,0,0,0,3117,3114,1,0,0,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3118,471,1,0,0,0,3119,3120,5,43,0,0,3120,3121,5,289,0,0,3121,3122,3,672,336,0,3122,3127,3,474,237,0,3123,3124,5,24,0,0,3124,3126,3,474,237,0,3125,3123,1,0,0,0,3126,3129,1,0,0,0,3127,3125,1,0,0,0,3127,3128,1,0,0,0,3128,473,1,0,0,0,3129,3127,1,0,0,0,3130,3133,3,476,238,0,3131,3133,3,478,239,0,3132,3130,1,0,0,0,3132,3131,1,0,0,0,3133,475,1,0,0,0,3134,3136,5,40,0,0,3135,3137,5,76,0,0,3136,3135,1,0,0,0,3136,3137,1,0,0,0,3137,3138,1,0,0,0,3138,3139,3,510,255,0,3139,477,1,0,0,0,3140,3142,5,111,0,0,3141,3143,5,76,0,0,3142,3141,1,0,0,0,3142,3143,1,0,0,0,3143,3144,1,0,0,0,3144,3145,3,824,412,0,3145,479,1,0,0,0,3146,3147,5,43,0,0,3147,3148,5,76,0,0,3148,3149,3,824,412,0,3149,3150,5,271,0,0,3150,3151,3,512,256,0,3151,481,1,0,0,0,3152,3153,5,43,0,0,3153,3154,5,76,0,0,3154,3155,3,824,412,0,3155,3156,5,111,0,0,3156,3157,5,199,0,0,3157,3158,5,201,0,0,3158,483,1,0,0,0,3159,3160,5,40,0,0,3160,3161,3,554,277,0,3161,485,1,0,0,0,3162,3163,5,43,0,0,3163,3164,5,133,0,0,3164,3165,3,824,412,0,3165,3166,5,271,0,0,3166,3167,3,824,412,0,3167,3168,3,560,280,0,3168,487,1,0,0,0,3169,3170,5,271,0,0,3170,3171,3,824,412,0,3171,3172,3,548,274,0,3172,489,1,0,0,0,3173,3174,5,271,0,0,3174,3175,5,25,0,0,3175,3180,3,546,273,0,3176,3177,5,24,0,0,3177,3179,3,546,273,0,3178,3176,1,0,0,0,3179,3182,1,0,0,0,3180,3178,1,0,0,0,3180,3181,1,0,0,0,3181,3183,1,0,0,0,3182,3180,1,0,0,0,3183,3184,5,26,0,0,3184,491,1,0,0,0,3185,3186,5,247,0,0,3186,3187,5,25,0,0,3187,3192,3,824,412,0,3188,3189,5,24,0,0,3189,3191,3,824,412,0,3190,3188,1,0,0,0,3191,3194,1,0,0,0,3192,3190,1,0,0,0,3192,3193,1,0,0,0,3193,3195,1,0,0,0,3194,3192,1,0,0,0,3195,3196,5,26,0,0,3196,493,1,0,0,0,3197,3198,5,40,0,0,3198,3199,3,520,260,0,3199,495,1,0,0,0,3200,3201,5,111,0,0,3201,3202,5,161,0,0,3202,3203,3,824,412,0,3203,497,1,0,0,0,3204,3205,5,243,0,0,3205,3206,5,295,0,0,3206,3207,3,836,418,0,3207,499,1,0,0,0,3208,3209,5,243,0,0,3209,3210,5,161,0,0,3210,3211,3,824,412,0,3211,3212,5,295,0,0,3212,3213,3,824,412,0,3213,501,1,0,0,0,3214,3215,5,40,0,0,3215,3216,3,536,268,0,3216,503,1,0,0,0,3217,3218,5,43,0,0,3218,3219,5,72,0,0,3219,3220,3,824,412,0,3220,3221,3,544,272,0,3221,505,1,0,0,0,3222,3223,5,111,0,0,3223,3224,5,72,0,0,3224,3225,3,824,412,0,3225,507,1,0,0,0,3226,3227,5,43,0,0,3227,3228,5,161,0,0,3228,3229,3,824,412,0,3229,3230,3,566,283,0,3230,509,1,0,0,0,3231,3232,3,828,414,0,3232,3234,3,204,102,0,3233,3235,3,512,256,0,3234,3233,1,0,0,0,3234,3235,1,0,0,0,3235,3236,1,0,0,0,3236,3237,3,514,257,0,3237,511,1,0,0,0,3238,3239,5,133,0,0,3239,3240,3,824,412,0,3240,513,1,0,0,0,3241,3243,5,199,0,0,3242,3241,1,0,0,0,3242,3243,1,0,0,0,3243,3244,1,0,0,0,3244,3246,5,201,0,0,3245,3242,1,0,0,0,3245,3246,1,0,0,0,3246,3249,1,0,0,0,3247,3248,5,97,0,0,3248,3250,3,14,7,0,3249,3247,1,0,0,0,3249,3250,1,0,0,0,3250,515,1,0,0,0,3251,3253,3,824,412,0,3252,3254,7,9,0,0,3253,3252,1,0,0,0,3253,3254,1,0,0,0,3254,517,1,0,0,0,3255,3256,5,230,0,0,3256,3257,5,177,0,0,3257,3258,5,25,0,0,3258,3263,3,824,412,0,3259,3260,5,24,0,0,3260,3262,3,824,412,0,3261,3259,1,0,0,0,3262,3265,1,0,0,0,3263,3261,1,0,0,0,3263,3264,1,0,0,0,3264,3266,1,0,0,0,3265,3263,1,0,0,0,3266,3267,5,26,0,0,3267,3295,1,0,0,0,3268,3269,5,218,0,0,3269,3270,5,67,0,0,3270,3271,5,25,0,0,3271,3276,3,824,412,0,3272,3273,5,24,0,0,3273,3275,3,824,412,0,3274,3272,1,0,0,0,3275,3278,1,0,0,0,3276,3274,1,0,0,0,3276,3277,1,0,0,0,3277,3279,1,0,0,0,3278,3276,1,0,0,0,3279,3280,5,26,0,0,3280,3295,1,0,0,0,3281,3282,5,213,0,0,3282,3283,5,67,0,0,3283,3284,5,25,0,0,3284,3289,3,516,258,0,3285,3286,5,24,0,0,3286,3288,3,516,258,0,3287,3285,1,0,0,0,3288,3291,1,0,0,0,3289,3287,1,0,0,0,3289,3290,1,0,0,0,3290,3292,1,0,0,0,3291,3289,1,0,0,0,3292,3293,5,26,0,0,3293,3295,1,0,0,0,3294,3255,1,0,0,0,3294,3268,1,0,0,0,3294,3281,1,0,0,0,3295,519,1,0,0,0,3296,3297,5,161,0,0,3297,3298,3,824,412,0,3298,3299,3,522,261,0,3299,3300,5,207,0,0,3300,3301,5,25,0,0,3301,3306,3,828,414,0,3302,3303,5,24,0,0,3303,3305,3,828,414,0,3304,3302,1,0,0,0,3305,3308,1,0,0,0,3306,3304,1,0,0,0,3306,3307,1,0,0,0,3307,3309,1,0,0,0,3308,3306,1,0,0,0,3309,3322,5,26,0,0,3310,3311,5,85,0,0,3311,3312,5,25,0,0,3312,3317,3,828,414,0,3313,3314,5,24,0,0,3314,3316,3,828,414,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3320,1,0,0,0,3319,3317,1,0,0,0,3320,3321,5,26,0,0,3321,3323,1,0,0,0,3322,3310,1,0,0,0,3322,3323,1,0,0,0,3323,3325,1,0,0,0,3324,3326,3,530,265,0,3325,3324,1,0,0,0,3325,3326,1,0,0,0,3326,521,1,0,0,0,3327,3330,3,524,262,0,3328,3330,3,526,263,0,3329,3327,1,0,0,0,3329,3328,1,0,0,0,3330,3333,1,0,0,0,3331,3332,5,313,0,0,3332,3334,3,528,264,0,3333,3331,1,0,0,0,3333,3334,1,0,0,0,3334,523,1,0,0,0,3335,3337,5,145,0,0,3336,3338,5,306,0,0,3337,3336,1,0,0,0,3337,3338,1,0,0,0,3338,3340,1,0,0,0,3339,3341,7,16,0,0,3340,3339,1,0,0,0,3340,3341,1,0,0,0,3341,525,1,0,0,0,3342,3343,5,184,0,0,3343,527,1,0,0,0,3344,3345,3,824,412,0,3345,529,1,0,0,0,3346,3347,5,322,0,0,3347,3348,5,25,0,0,3348,3353,3,532,266,0,3349,3350,5,24,0,0,3350,3352,3,532,266,0,3351,3349,1,0,0,0,3352,3355,1,0,0,0,3353,3351,1,0,0,0,3353,3354,1,0,0,0,3354,3357,1,0,0,0,3355,3353,1,0,0,0,3356,3358,5,24,0,0,3357,3356,1,0,0,0,3357,3358,1,0,0,0,3358,3359,1,0,0,0,3359,3360,5,26,0,0,3360,531,1,0,0,0,3361,3362,3,824,412,0,3362,3363,5,1,0,0,3363,3364,3,534,267,0,3364,533,1,0,0,0,3365,3370,3,852,426,0,3366,3370,5,326,0,0,3367,3370,3,888,444,0,3368,3370,3,884,442,0,3369,3365,1,0,0,0,3369,3366,1,0,0,0,3369,3367,1,0,0,0,3369,3368,1,0,0,0,3370,535,1,0,0,0,3371,3372,5,72,0,0,3372,3373,3,824,412,0,3373,3374,5,322,0,0,3374,3375,5,25,0,0,3375,3376,3,538,269,0,3376,3377,5,26,0,0,3377,537,1,0,0,0,3378,3383,3,540,270,0,3379,3380,5,24,0,0,3380,3382,3,540,270,0,3381,3379,1,0,0,0,3382,3385,1,0,0,0,3383,3381,1,0,0,0,3383,3384,1,0,0,0,3384,539,1,0,0,0,3385,3383,1,0,0,0,3386,3387,3,824,412,0,3387,3388,5,1,0,0,3388,3389,3,542,271,0,3389,541,1,0,0,0,3390,3391,3,14,7,0,3391,543,1,0,0,0,3392,3399,5,107,0,0,3393,3394,5,271,0,0,3394,3395,5,25,0,0,3395,3396,3,538,269,0,3396,3397,5,26,0,0,3397,3399,1,0,0,0,3398,3392,1,0,0,0,3398,3393,1,0,0,0,3399,545,1,0,0,0,3400,3401,3,824,412,0,3401,3402,5,1,0,0,3402,3403,3,548,274,0,3403,547,1,0,0,0,3404,3417,3,806,403,0,3405,3417,5,326,0,0,3406,3417,3,888,444,0,3407,3417,3,562,281,0,3408,3409,3,550,275,0,3409,3410,5,207,0,0,3410,3413,3,824,412,0,3411,3412,5,49,0,0,3412,3414,7,17,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3417,1,0,0,0,3415,3417,3,884,442,0,3416,3404,1,0,0,0,3416,3405,1,0,0,0,3416,3406,1,0,0,0,3416,3407,1,0,0,0,3416,3408,1,0,0,0,3416,3415,1,0,0,0,3417,549,1,0,0,0,3418,3429,3,14,7,0,3419,3426,3,552,276,0,3420,3421,5,24,0,0,3421,3422,3,14,7,0,3422,3423,3,552,276,0,3423,3425,1,0,0,0,3424,3420,1,0,0,0,3425,3428,1,0,0,0,3426,3424,1,0,0,0,3426,3427,1,0,0,0,3427,3430,1,0,0,0,3428,3426,1,0,0,0,3429,3419,1,0,0,0,3429,3430,1,0,0,0,3430,551,1,0,0,0,3431,3432,5,295,0,0,3432,3433,5,130,0,0,3433,3434,5,93,0,0,3434,3435,5,276,0,0,3435,3438,3,824,412,0,3436,3438,5,101,0,0,3437,3431,1,0,0,0,3437,3436,1,0,0,0,3438,553,1,0,0,0,3439,3440,5,133,0,0,3440,3441,3,824,412,0,3441,3442,3,556,278,0,3442,555,1,0,0,0,3443,3452,5,25,0,0,3444,3449,3,558,279,0,3445,3446,5,24,0,0,3446,3448,3,558,279,0,3447,3445,1,0,0,0,3448,3451,1,0,0,0,3449,3447,1,0,0,0,3449,3450,1,0,0,0,3450,3453,1,0,0,0,3451,3449,1,0,0,0,3452,3444,1,0,0,0,3452,3453,1,0,0,0,3453,3454,1,0,0,0,3454,3455,5,26,0,0,3455,557,1,0,0,0,3456,3457,3,824,412,0,3457,3458,5,1,0,0,3458,3459,3,560,280,0,3459,559,1,0,0,0,3460,3463,5,326,0,0,3461,3463,3,888,444,0,3462,3460,1,0,0,0,3462,3461,1,0,0,0,3463,561,1,0,0,0,3464,3465,5,25,0,0,3465,3470,3,564,282,0,3466,3467,5,24,0,0,3467,3469,3,564,282,0,3468,3466,1,0,0,0,3469,3472,1,0,0,0,3470,3468,1,0,0,0,3470,3471,1,0,0,0,3471,3473,1,0,0,0,3472,3470,1,0,0,0,3473,3474,5,26,0,0,3474,3477,1,0,0,0,3475,3477,3,564,282,0,3476,3464,1,0,0,0,3476,3475,1,0,0,0,3477,563,1,0,0,0,3478,3479,5,25,0,0,3479,3484,3,142,71,0,3480,3481,5,24,0,0,3481,3483,3,142,71,0,3482,3480,1,0,0,0,3483,3486,1,0,0,0,3484,3482,1,0,0,0,3484,3485,1,0,0,0,3485,3487,1,0,0,0,3486,3484,1,0,0,0,3487,3488,5,26,0,0,3488,565,1,0,0,0,3489,3493,3,488,244,0,3490,3493,3,490,245,0,3491,3493,3,492,246,0,3492,3489,1,0,0,0,3492,3490,1,0,0,0,3492,3491,1,0,0,0,3493,567,1,0,0,0,3494,3499,5,111,0,0,3495,3500,5,286,0,0,3496,3500,5,289,0,0,3497,3498,5,130,0,0,3498,3500,5,286,0,0,3499,3495,1,0,0,0,3499,3496,1,0,0,0,3499,3497,1,0,0,0,3500,3503,1,0,0,0,3501,3502,5,153,0,0,3502,3504,5,127,0,0,3503,3501,1,0,0,0,3503,3504,1,0,0,0,3504,3505,1,0,0,0,3505,3506,3,676,338,0,3506,569,1,0,0,0,3507,3508,5,86,0,0,3508,3509,5,312,0,0,3509,3513,3,580,290,0,3510,3512,3,582,291,0,3511,3510,1,0,0,0,3512,3515,1,0,0,0,3513,3511,1,0,0,0,3513,3514,1,0,0,0,3514,571,1,0,0,0,3515,3513,1,0,0,0,3516,3517,5,43,0,0,3517,3518,5,312,0,0,3518,3530,3,580,290,0,3519,3521,5,322,0,0,3520,3519,1,0,0,0,3520,3521,1,0,0,0,3521,3523,1,0,0,0,3522,3524,3,582,291,0,3523,3522,1,0,0,0,3524,3525,1,0,0,0,3525,3523,1,0,0,0,3525,3526,1,0,0,0,3526,3531,1,0,0,0,3527,3528,5,243,0,0,3528,3529,5,295,0,0,3529,3531,3,580,290,0,3530,3520,1,0,0,0,3530,3527,1,0,0,0,3531,573,1,0,0,0,3532,3533,5,86,0,0,3533,3534,5,147,0,0,3534,3548,3,580,290,0,3535,3536,5,322,0,0,3536,3537,5,312,0,0,3537,3542,3,580,290,0,3538,3539,5,24,0,0,3539,3541,3,580,290,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3546,1,0,0,0,3544,3542,1,0,0,0,3545,3547,5,24,0,0,3546,3545,1,0,0,0,3546,3547,1,0,0,0,3547,3549,1,0,0,0,3548,3535,1,0,0,0,3548,3549,1,0,0,0,3549,575,1,0,0,0,3550,3551,5,43,0,0,3551,3552,5,147,0,0,3552,3569,3,580,290,0,3553,3554,7,18,0,0,3554,3555,5,312,0,0,3555,3560,3,580,290,0,3556,3557,5,24,0,0,3557,3559,3,580,290,0,3558,3556,1,0,0,0,3559,3562,1,0,0,0,3560,3558,1,0,0,0,3560,3561,1,0,0,0,3561,3564,1,0,0,0,3562,3560,1,0,0,0,3563,3565,5,24,0,0,3564,3563,1,0,0,0,3564,3565,1,0,0,0,3565,3570,1,0,0,0,3566,3567,5,243,0,0,3567,3568,5,295,0,0,3568,3570,3,580,290,0,3569,3553,1,0,0,0,3569,3566,1,0,0,0,3570,577,1,0,0,0,3571,3572,5,111,0,0,3572,3575,7,19,0,0,3573,3574,5,153,0,0,3574,3576,5,127,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3577,1,0,0,0,3577,3582,3,580,290,0,3578,3579,5,24,0,0,3579,3581,3,580,290,0,3580,3578,1,0,0,0,3581,3584,1,0,0,0,3582,3580,1,0,0,0,3582,3583,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3585,3587,5,24,0,0,3586,3585,1,0,0,0,3586,3587,1,0,0,0,3587,579,1,0,0,0,3588,3591,3,826,413,0,3589,3591,3,144,72,0,3590,3588,1,0,0,0,3590,3589,1,0,0,0,3591,581,1,0,0,0,3592,3595,3,584,292,0,3593,3595,3,590,295,0,3594,3592,1,0,0,0,3594,3593,1,0,0,0,3595,583,1,0,0,0,3596,3599,3,586,293,0,3597,3599,3,588,294,0,3598,3596,1,0,0,0,3598,3597,1,0,0,0,3599,585,1,0,0,0,3600,3602,5,116,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3603,1,0,0,0,3603,3604,5,220,0,0,3604,3605,3,14,7,0,3605,587,1,0,0,0,3606,3607,5,150,0,0,3607,3608,3,14,7,0,3608,589,1,0,0,0,3609,3610,7,20,0,0,3610,591,1,0,0,0,3611,3612,5,146,0,0,3612,3613,3,600,300,0,3613,3614,5,207,0,0,3614,3619,3,828,414,0,3615,3616,5,24,0,0,3616,3618,3,828,414,0,3617,3615,1,0,0,0,3618,3621,1,0,0,0,3619,3617,1,0,0,0,3619,3620,1,0,0,0,3620,3622,1,0,0,0,3621,3619,1,0,0,0,3622,3623,5,295,0,0,3623,3628,3,580,290,0,3624,3625,5,24,0,0,3625,3627,3,580,290,0,3626,3624,1,0,0,0,3627,3630,1,0,0,0,3628,3626,1,0,0,0,3628,3629,1,0,0,0,3629,3632,1,0,0,0,3630,3628,1,0,0,0,3631,3633,5,24,0,0,3632,3631,1,0,0,0,3632,3633,1,0,0,0,3633,3637,1,0,0,0,3634,3635,5,322,0,0,3635,3636,5,146,0,0,3636,3638,5,210,0,0,3637,3634,1,0,0,0,3637,3638,1,0,0,0,3638,593,1,0,0,0,3639,3643,5,257,0,0,3640,3641,5,146,0,0,3641,3642,5,210,0,0,3642,3644,5,139,0,0,3643,3640,1,0,0,0,3643,3644,1,0,0,0,3644,3645,1,0,0,0,3645,3646,3,600,300,0,3646,3647,5,207,0,0,3647,3652,3,828,414,0,3648,3649,5,24,0,0,3649,3651,3,828,414,0,3650,3648,1,0,0,0,3651,3654,1,0,0,0,3652,3650,1,0,0,0,3652,3653,1,0,0,0,3653,3655,1,0,0,0,3654,3652,1,0,0,0,3655,3656,5,141,0,0,3656,3661,3,580,290,0,3657,3658,5,24,0,0,3658,3660,3,580,290,0,3659,3657,1,0,0,0,3660,3663,1,0,0,0,3661,3659,1,0,0,0,3661,3662,1,0,0,0,3662,595,1,0,0,0,3663,3661,1,0,0,0,3664,3689,5,82,0,0,3665,3689,5,183,0,0,3666,3689,5,167,0,0,3667,3689,5,186,0,0,3668,3689,5,111,0,0,3669,3689,5,146,0,0,3670,3671,5,193,0,0,3671,3689,7,21,0,0,3672,3673,7,22,0,0,3673,3689,5,262,0,0,3674,3675,7,23,0,0,3675,3689,5,266,0,0,3676,3678,5,269,0,0,3677,3679,7,24,0,0,3678,3677,1,0,0,0,3678,3679,1,0,0,0,3679,3689,1,0,0,0,3680,3682,7,25,0,0,3681,3683,5,180,0,0,3682,3681,1,0,0,0,3682,3683,1,0,0,0,3683,3689,1,0,0,0,3684,3686,5,86,0,0,3685,3687,7,26,0,0,3686,3685,1,0,0,0,3686,3687,1,0,0,0,3687,3689,1,0,0,0,3688,3664,1,0,0,0,3688,3665,1,0,0,0,3688,3666,1,0,0,0,3688,3667,1,0,0,0,3688,3668,1,0,0,0,3688,3669,1,0,0,0,3688,3670,1,0,0,0,3688,3672,1,0,0,0,3688,3674,1,0,0,0,3688,3676,1,0,0,0,3688,3680,1,0,0,0,3688,3684,1,0,0,0,3689,597,1,0,0,0,3690,3693,3,596,298,0,3691,3693,5,326,0,0,3692,3690,1,0,0,0,3692,3691,1,0,0,0,3693,599,1,0,0,0,3694,3699,3,598,299,0,3695,3696,5,24,0,0,3696,3698,3,598,299,0,3697,3695,1,0,0,0,3698,3701,1,0,0,0,3699,3697,1,0,0,0,3699,3700,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3702,3704,5,24,0,0,3703,3702,1,0,0,0,3703,3704,1,0,0,0,3704,3710,1,0,0,0,3705,3707,5,42,0,0,3706,3708,5,231,0,0,3707,3706,1,0,0,0,3707,3708,1,0,0,0,3708,3710,1,0,0,0,3709,3694,1,0,0,0,3709,3705,1,0,0,0,3710,601,1,0,0,0,3711,3712,5,86,0,0,3712,3713,5,248,0,0,3713,3714,5,226,0,0,3714,3715,3,672,336,0,3715,3716,3,456,228,0,3716,603,1,0,0,0,3717,3718,5,43,0,0,3718,3719,5,248,0,0,3719,3720,5,226,0,0,3720,3721,3,672,336,0,3721,3726,3,606,303,0,3722,3723,5,24,0,0,3723,3725,3,606,303,0,3724,3722,1,0,0,0,3725,3728,1,0,0,0,3726,3724,1,0,0,0,3726,3727,1,0,0,0,3727,605,1,0,0,0,3728,3726,1,0,0,0,3729,3732,3,490,245,0,3730,3732,3,492,246,0,3731,3729,1,0,0,0,3731,3730,1,0,0,0,3732,607,1,0,0,0,3733,3734,5,111,0,0,3734,3735,5,248,0,0,3735,3736,5,226,0,0,3736,3737,3,672,336,0,3737,609,1,0,0,0,3738,3739,5,86,0,0,3739,3740,5,248,0,0,3740,3741,5,226,0,0,3741,3742,5,74,0,0,3742,3743,3,672,336,0,3743,3744,3,456,228,0,3744,611,1,0,0,0,3745,3746,5,43,0,0,3746,3747,5,248,0,0,3747,3748,5,226,0,0,3748,3749,5,74,0,0,3749,3750,3,672,336,0,3750,3755,3,614,307,0,3751,3752,5,24,0,0,3752,3754,3,614,307,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,613,1,0,0,0,3757,3755,1,0,0,0,3758,3761,3,490,245,0,3759,3761,3,492,246,0,3760,3758,1,0,0,0,3760,3759,1,0,0,0,3761,615,1,0,0,0,3762,3763,5,111,0,0,3763,3764,5,248,0,0,3764,3765,5,226,0,0,3765,3766,5,74,0,0,3766,3767,3,672,336,0,3767,617,1,0,0,0,3768,3769,5,86,0,0,3769,3770,5,53,0,0,3770,3771,5,246,0,0,3771,3772,3,672,336,0,3772,3773,5,139,0,0,3773,3778,3,620,310,0,3774,3775,5,24,0,0,3775,3777,3,620,310,0,3776,3774,1,0,0,0,3777,3780,1,0,0,0,3778,3776,1,0,0,0,3778,3779,1,0,0,0,3779,3781,1,0,0,0,3780,3778,1,0,0,0,3781,3782,5,322,0,0,3782,3783,5,25,0,0,3783,3784,3,622,311,0,3784,3785,5,26,0,0,3785,619,1,0,0,0,3786,3787,3,672,336,0,3787,3788,3,898,449,0,3788,621,1,0,0,0,3789,3794,3,624,312,0,3790,3791,5,24,0,0,3791,3793,3,624,312,0,3792,3790,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3794,3795,1,0,0,0,3795,623,1,0,0,0,3796,3794,1,0,0,0,3797,3798,3,824,412,0,3798,3799,5,1,0,0,3799,3800,3,14,7,0,3800,625,1,0,0,0,3801,3802,5,43,0,0,3802,3803,5,53,0,0,3803,3804,5,246,0,0,3804,3805,3,672,336,0,3805,3810,3,628,314,0,3806,3807,5,24,0,0,3807,3809,3,628,314,0,3808,3806,1,0,0,0,3809,3812,1,0,0,0,3810,3808,1,0,0,0,3810,3811,1,0,0,0,3811,627,1,0,0,0,3812,3810,1,0,0,0,3813,3814,3,630,315,0,3814,629,1,0,0,0,3815,3816,5,271,0,0,3816,3817,5,25,0,0,3817,3818,3,622,311,0,3818,3819,5,26,0,0,3819,631,1,0,0,0,3820,3821,5,111,0,0,3821,3822,5,53,0,0,3822,3823,5,246,0,0,3823,3825,3,672,336,0,3824,3826,5,69,0,0,3825,3824,1,0,0,0,3825,3826,1,0,0,0,3826,633,1,0,0,0,3827,3830,3,80,40,0,3828,3830,3,144,72,0,3829,3827,1,0,0,0,3829,3828,1,0,0,0,3830,635,1,0,0,0,3831,3832,5,86,0,0,3832,3833,5,298,0,0,3833,3834,3,672,336,0,3834,3835,5,141,0,0,3835,3836,3,672,336,0,3836,3837,5,295,0,0,3837,3840,3,672,336,0,3838,3839,5,313,0,0,3839,3841,3,634,317,0,3840,3838,1,0,0,0,3840,3841,1,0,0,0,3841,3842,1,0,0,0,3842,3843,5,322,0,0,3843,3844,5,25,0,0,3844,3845,3,638,319,0,3845,3846,5,26,0,0,3846,637,1,0,0,0,3847,3852,3,640,320,0,3848,3849,5,24,0,0,3849,3851,3,640,320,0,3850,3848,1,0,0,0,3851,3854,1,0,0,0,3852,3850,1,0,0,0,3852,3853,1,0,0,0,3853,639,1,0,0,0,3854,3852,1,0,0,0,3855,3856,3,824,412,0,3856,3857,5,1,0,0,3857,3858,3,14,7,0,3858,641,1,0,0,0,3859,3860,5,43,0,0,3860,3861,5,298,0,0,3861,3862,3,672,336,0,3862,3867,3,644,322,0,3863,3864,5,24,0,0,3864,3866,3,644,322,0,3865,3863,1,0,0,0,3866,3869,1,0,0,0,3867,3865,1,0,0,0,3867,3868,1,0,0,0,3868,643,1,0,0,0,3869,3867,1,0,0,0,3870,3873,3,646,323,0,3871,3873,3,648,324,0,3872,3870,1,0,0,0,3872,3871,1,0,0,0,3873,645,1,0,0,0,3874,3875,5,271,0,0,3875,3876,5,25,0,0,3876,3877,3,638,319,0,3877,3878,5,26,0,0,3878,647,1,0,0,0,3879,3880,5,271,0,0,3880,3881,5,313,0,0,3881,3882,3,634,317,0,3882,649,1,0,0,0,3883,3884,5,111,0,0,3884,3885,5,298,0,0,3885,3887,3,672,336,0,3886,3888,5,69,0,0,3887,3886,1,0,0,0,3887,3888,1,0,0,0,3888,651,1,0,0,0,3889,3894,3,146,73,0,3890,3891,5,24,0,0,3891,3893,3,146,73,0,3892,3890,1,0,0,0,3893,3896,1,0,0,0,3894,3892,1,0,0,0,3894,3895,1,0,0,0,3895,653,1,0,0,0,3896,3894,1,0,0,0,3897,3898,5,100,0,0,3898,3899,7,27,0,0,3899,3900,3,144,72,0,3900,3902,5,25,0,0,3901,3903,3,652,326,0,3902,3901,1,0,0,0,3902,3903,1,0,0,0,3903,3904,1,0,0,0,3904,3905,5,26,0,0,3905,3906,5,49,0,0,3906,3907,3,656,328,0,3907,3908,5,117,0,0,3908,3909,5,100,0,0,3909,655,1,0,0,0,3910,3912,5,22,0,0,3911,3910,1,0,0,0,3912,3915,1,0,0,0,3913,3911,1,0,0,0,3913,3914,1,0,0,0,3914,3934,1,0,0,0,3915,3913,1,0,0,0,3916,3925,3,12,6,0,3917,3919,5,22,0,0,3918,3917,1,0,0,0,3919,3920,1,0,0,0,3920,3918,1,0,0,0,3920,3921,1,0,0,0,3921,3922,1,0,0,0,3922,3924,3,12,6,0,3923,3918,1,0,0,0,3924,3927,1,0,0,0,3925,3923,1,0,0,0,3925,3926,1,0,0,0,3926,3931,1,0,0,0,3927,3925,1,0,0,0,3928,3930,5,22,0,0,3929,3928,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3931,3932,1,0,0,0,3932,3935,1,0,0,0,3933,3931,1,0,0,0,3934,3916,1,0,0,0,3934,3935,1,0,0,0,3935,657,1,0,0,0,3936,3938,5,122,0,0,3937,3936,1,0,0,0,3937,3938,1,0,0,0,3938,3939,1,0,0,0,3939,3940,5,153,0,0,3940,3941,3,14,7,0,3941,3944,3,222,111,0,3942,3943,5,113,0,0,3943,3945,3,222,111,0,3944,3942,1,0,0,0,3944,3945,1,0,0,0,3945,659,1,0,0,0,3946,3948,5,122,0,0,3947,3946,1,0,0,0,3947,3948,1,0,0,0,3948,3950,1,0,0,0,3949,3951,5,217,0,0,3950,3949,1,0,0,0,3950,3951,1,0,0,0,3951,3952,1,0,0,0,3952,3953,5,139,0,0,3953,3954,3,144,72,0,3954,3955,5,158,0,0,3955,3956,3,14,7,0,3956,3959,3,222,111,0,3957,3958,5,113,0,0,3958,3960,3,222,111,0,3959,3957,1,0,0,0,3959,3960,1,0,0,0,3960,661,1,0,0,0,3961,3962,3,850,425,0,3962,3963,5,23,0,0,3963,3965,1,0,0,0,3964,3961,1,0,0,0,3964,3965,1,0,0,0,3965,3967,1,0,0,0,3966,3968,5,29,0,0,3967,3966,1,0,0,0,3967,3968,1,0,0,0,3968,3999,1,0,0,0,3969,4e3,3,664,332,0,3970,3971,3,830,415,0,3971,3983,5,25,0,0,3972,3977,3,666,333,0,3973,3974,5,24,0,0,3974,3976,3,666,333,0,3975,3973,1,0,0,0,3976,3979,1,0,0,0,3977,3975,1,0,0,0,3977,3978,1,0,0,0,3978,3981,1,0,0,0,3979,3977,1,0,0,0,3980,3982,5,24,0,0,3981,3980,1,0,0,0,3981,3982,1,0,0,0,3982,3984,1,0,0,0,3983,3972,1,0,0,0,3983,3984,1,0,0,0,3984,3985,1,0,0,0,3985,3986,5,26,0,0,3986,4e3,1,0,0,0,3987,3993,3,144,72,0,3988,3990,5,25,0,0,3989,3991,3,112,56,0,3990,3989,1,0,0,0,3990,3991,1,0,0,0,3991,3992,1,0,0,0,3992,3994,5,26,0,0,3993,3988,1,0,0,0,3993,3994,1,0,0,0,3994,3997,1,0,0,0,3995,3996,5,317,0,0,3996,3998,3,846,423,0,3997,3995,1,0,0,0,3997,3998,1,0,0,0,3998,4e3,1,0,0,0,3999,3969,1,0,0,0,3999,3970,1,0,0,0,3999,3987,1,0,0,0,4e3,4002,1,0,0,0,4001,4003,3,668,334,0,4002,4001,1,0,0,0,4002,4003,1,0,0,0,4003,663,1,0,0,0,4004,4007,3,858,429,0,4005,4006,5,317,0,0,4006,4008,3,846,423,0,4007,4005,1,0,0,0,4007,4008,1,0,0,0,4008,665,1,0,0,0,4009,4011,5,29,0,0,4010,4009,1,0,0,0,4010,4011,1,0,0,0,4011,4012,1,0,0,0,4012,4015,3,128,64,0,4013,4014,5,317,0,0,4014,4016,3,846,423,0,4015,4013,1,0,0,0,4015,4016,1,0,0,0,4016,667,1,0,0,0,4017,4030,5,322,0,0,4018,4031,3,670,335,0,4019,4020,5,25,0,0,4020,4025,3,670,335,0,4021,4022,5,24,0,0,4022,4024,3,670,335,0,4023,4021,1,0,0,0,4024,4027,1,0,0,0,4025,4023,1,0,0,0,4025,4026,1,0,0,0,4026,4028,1,0,0,0,4027,4025,1,0,0,0,4028,4029,5,26,0,0,4029,4031,1,0,0,0,4030,4018,1,0,0,0,4030,4019,1,0,0,0,4031,669,1,0,0,0,4032,4051,3,840,420,0,4033,4049,5,1,0,0,4034,4050,3,160,80,0,4035,4036,5,25,0,0,4036,4041,3,160,80,0,4037,4038,5,24,0,0,4038,4040,3,160,80,0,4039,4037,1,0,0,0,4040,4043,1,0,0,0,4041,4039,1,0,0,0,4041,4042,1,0,0,0,4042,4045,1,0,0,0,4043,4041,1,0,0,0,4044,4046,5,24,0,0,4045,4044,1,0,0,0,4045,4046,1,0,0,0,4046,4047,1,0,0,0,4047,4048,5,26,0,0,4048,4050,1,0,0,0,4049,4034,1,0,0,0,4049,4035,1,0,0,0,4050,4052,1,0,0,0,4051,4033,1,0,0,0,4051,4052,1,0,0,0,4052,4078,1,0,0,0,4053,4055,7,28,0,0,4054,4056,5,1,0,0,4055,4054,1,0,0,0,4055,4056,1,0,0,0,4056,4057,1,0,0,0,4057,4078,3,204,102,0,4058,4060,5,266,0,0,4059,4061,5,1,0,0,4060,4059,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4071,5,25,0,0,4063,4068,3,164,82,0,4064,4065,5,24,0,0,4065,4067,3,164,82,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,4072,1,0,0,0,4070,4068,1,0,0,0,4071,4063,1,0,0,0,4071,4072,1,0,0,0,4072,4074,1,0,0,0,4073,4075,5,24,0,0,4074,4073,1,0,0,0,4074,4075,1,0,0,0,4075,4076,1,0,0,0,4076,4078,5,26,0,0,4077,4032,1,0,0,0,4077,4053,1,0,0,0,4077,4058,1,0,0,0,4078,671,1,0,0,0,4079,4080,3,850,425,0,4080,4081,5,23,0,0,4081,4083,1,0,0,0,4082,4079,1,0,0,0,4082,4083,1,0,0,0,4083,4084,1,0,0,0,4084,4085,3,856,428,0,4085,673,1,0,0,0,4086,4092,3,672,336,0,4087,4089,5,29,0,0,4088,4087,1,0,0,0,4088,4089,1,0,0,0,4089,4090,1,0,0,0,4090,4092,3,144,72,0,4091,4086,1,0,0,0,4091,4088,1,0,0,0,4092,675,1,0,0,0,4093,4095,3,674,337,0,4094,4096,3,668,334,0,4095,4094,1,0,0,0,4095,4096,1,0,0,0,4096,677,1,0,0,0,4097,4101,3,676,338,0,4098,4099,5,119,0,0,4099,4100,5,67,0,0,4100,4102,3,114,57,0,4101,4098,1,0,0,0,4101,4102,1,0,0,0,4102,679,1,0,0,0,4103,4105,5,60,0,0,4104,4103,1,0,0,0,4104,4105,1,0,0,0,4105,4106,1,0,0,0,4106,4107,5,101,0,0,4107,4108,5,141,0,0,4108,4112,3,676,338,0,4109,4113,3,900,450,0,4110,4111,5,207,0,0,4111,4113,3,368,184,0,4112,4109,1,0,0,0,4112,4110,1,0,0,0,4112,4113,1,0,0,0,4113,4115,1,0,0,0,4114,4116,3,362,181,0,4115,4114,1,0,0,0,4115,4116,1,0,0,0,4116,681,1,0,0,0,4117,4119,5,60,0,0,4118,4117,1,0,0,0,4118,4119,1,0,0,0,4119,4120,1,0,0,0,4120,4121,5,309,0,0,4121,4129,3,676,338,0,4122,4123,5,271,0,0,4123,4125,3,684,342,0,4124,4126,3,900,450,0,4125,4124,1,0,0,0,4125,4126,1,0,0,0,4126,4130,1,0,0,0,4127,4128,5,207,0,0,4128,4130,3,368,184,0,4129,4122,1,0,0,0,4129,4127,1,0,0,0,4130,4132,1,0,0,0,4131,4133,3,362,181,0,4132,4131,1,0,0,0,4132,4133,1,0,0,0,4133,683,1,0,0,0,4134,4137,3,686,343,0,4135,4137,3,692,346,0,4136,4134,1,0,0,0,4136,4135,1,0,0,0,4137,685,1,0,0,0,4138,4143,3,688,344,0,4139,4140,5,24,0,0,4140,4142,3,688,344,0,4141,4139,1,0,0,0,4142,4145,1,0,0,0,4143,4141,1,0,0,0,4143,4144,1,0,0,0,4144,687,1,0,0,0,4145,4143,1,0,0,0,4146,4147,3,690,345,0,4147,4148,5,1,0,0,4148,4149,3,14,7,0,4149,689,1,0,0,0,4150,4151,3,120,60,0,4151,691,1,0,0,0,4152,4153,3,694,347,0,4153,4154,5,1,0,0,4154,4155,5,25,0,0,4155,4156,3,378,189,0,4156,4157,5,26,0,0,4157,693,1,0,0,0,4158,4159,5,25,0,0,4159,4164,3,690,345,0,4160,4161,5,24,0,0,4161,4163,3,690,345,0,4162,4160,1,0,0,0,4163,4166,1,0,0,0,4164,4162,1,0,0,0,4164,4165,1,0,0,0,4165,4167,1,0,0,0,4166,4164,1,0,0,0,4167,4168,5,26,0,0,4168,695,1,0,0,0,4169,4170,5,86,0,0,4170,4174,5,296,0,0,4171,4172,5,153,0,0,4172,4173,5,199,0,0,4173,4175,5,127,0,0,4174,4171,1,0,0,0,4174,4175,1,0,0,0,4175,4176,1,0,0,0,4176,4178,3,742,371,0,4177,4179,3,698,349,0,4178,4177,1,0,0,0,4178,4179,1,0,0,0,4179,4181,1,0,0,0,4180,4182,3,702,351,0,4181,4180,1,0,0,0,4181,4182,1,0,0,0,4182,697,1,0,0,0,4183,4184,5,25,0,0,4184,4189,3,700,350,0,4185,4186,5,24,0,0,4186,4188,3,700,350,0,4187,4185,1,0,0,0,4188,4191,1,0,0,0,4189,4187,1,0,0,0,4189,4190,1,0,0,0,4190,4192,1,0,0,0,4191,4189,1,0,0,0,4192,4193,5,26,0,0,4193,699,1,0,0,0,4194,4195,3,710,355,0,4195,701,1,0,0,0,4196,4197,5,322,0,0,4197,4198,5,25,0,0,4198,4199,3,728,364,0,4199,4200,5,26,0,0,4200,703,1,0,0,0,4201,4202,5,43,0,0,4202,4205,5,296,0,0,4203,4204,5,153,0,0,4204,4206,5,127,0,0,4205,4203,1,0,0,0,4205,4206,1,0,0,0,4206,4207,1,0,0,0,4207,4208,3,742,371,0,4208,4213,3,706,353,0,4209,4210,5,24,0,0,4210,4212,3,706,353,0,4211,4209,1,0,0,0,4212,4215,1,0,0,0,4213,4211,1,0,0,0,4213,4214,1,0,0,0,4214,705,1,0,0,0,4215,4213,1,0,0,0,4216,4222,3,708,354,0,4217,4222,3,712,356,0,4218,4222,3,716,358,0,4219,4222,3,722,361,0,4220,4222,3,724,362,0,4221,4216,1,0,0,0,4221,4217,1,0,0,0,4221,4218,1,0,0,0,4221,4219,1,0,0,0,4221,4220,1,0,0,0,4222,707,1,0,0,0,4223,4224,5,40,0,0,4224,4225,3,710,355,0,4225,709,1,0,0,0,4226,4227,5,84,0,0,4227,4229,3,824,412,0,4228,4230,3,734,367,0,4229,4228,1,0,0,0,4229,4230,1,0,0,0,4230,711,1,0,0,0,4231,4232,5,43,0,0,4232,4233,5,84,0,0,4233,4234,3,744,372,0,4234,4235,3,714,357,0,4235,713,1,0,0,0,4236,4239,3,718,359,0,4237,4239,3,720,360,0,4238,4236,1,0,0,0,4238,4237,1,0,0,0,4239,715,1,0,0,0,4240,4241,5,111,0,0,4241,4242,5,84,0,0,4242,4243,3,744,372,0,4243,717,1,0,0,0,4244,4245,5,271,0,0,4245,4246,5,25,0,0,4246,4247,3,736,368,0,4247,4248,5,26,0,0,4248,719,1,0,0,0,4249,4250,5,247,0,0,4250,4251,5,25,0,0,4251,4256,3,824,412,0,4252,4253,5,24,0,0,4253,4255,3,824,412,0,4254,4252,1,0,0,0,4255,4258,1,0,0,0,4256,4254,1,0,0,0,4256,4257,1,0,0,0,4257,4259,1,0,0,0,4258,4256,1,0,0,0,4259,4260,5,26,0,0,4260,721,1,0,0,0,4261,4262,5,271,0,0,4262,4263,5,25,0,0,4263,4264,3,728,364,0,4264,4265,5,26,0,0,4265,723,1,0,0,0,4266,4267,5,247,0,0,4267,4268,5,25,0,0,4268,4273,3,824,412,0,4269,4270,5,24,0,0,4270,4272,3,842,421,0,4271,4269,1,0,0,0,4272,4275,1,0,0,0,4273,4271,1,0,0,0,4273,4274,1,0,0,0,4274,4276,1,0,0,0,4275,4273,1,0,0,0,4276,4277,5,26,0,0,4277,725,1,0,0,0,4278,4279,5,111,0,0,4279,4282,5,296,0,0,4280,4281,5,153,0,0,4281,4283,5,127,0,0,4282,4280,1,0,0,0,4282,4283,1,0,0,0,4283,4284,1,0,0,0,4284,4285,3,742,371,0,4285,727,1,0,0,0,4286,4291,3,730,365,0,4287,4288,5,24,0,0,4288,4290,3,730,365,0,4289,4287,1,0,0,0,4290,4293,1,0,0,0,4291,4289,1,0,0,0,4291,4292,1,0,0,0,4292,729,1,0,0,0,4293,4291,1,0,0,0,4294,4295,3,824,412,0,4295,4296,5,1,0,0,4296,4297,3,732,366,0,4297,731,1,0,0,0,4298,4299,3,14,7,0,4299,733,1,0,0,0,4300,4301,5,322,0,0,4301,4302,5,25,0,0,4302,4303,3,736,368,0,4303,4304,5,26,0,0,4304,735,1,0,0,0,4305,4310,3,738,369,0,4306,4307,5,24,0,0,4307,4309,3,738,369,0,4308,4306,1,0,0,0,4309,4312,1,0,0,0,4310,4308,1,0,0,0,4310,4311,1,0,0,0,4311,737,1,0,0,0,4312,4310,1,0,0,0,4313,4314,3,824,412,0,4314,4315,5,1,0,0,4315,4316,3,740,370,0,4316,739,1,0,0,0,4317,4318,3,14,7,0,4318,741,1,0,0,0,4319,4320,3,850,425,0,4320,4321,5,23,0,0,4321,4323,1,0,0,0,4322,4319,1,0,0,0,4322,4323,1,0,0,0,4323,4324,1,0,0,0,4324,4325,3,824,412,0,4325,743,1,0,0,0,4326,4327,3,842,421,0,4327,745,1,0,0,0,4328,4329,5,249,0,0,4329,4333,5,202,0,0,4330,4331,5,154,0,0,4331,4333,5,202,0,0,4332,4328,1,0,0,0,4332,4330,1,0,0,0,4333,747,1,0,0,0,4334,4335,5,134,0,0,4335,4336,5,25,0,0,4336,4337,3,900,450,0,4337,4338,5,26,0,0,4338,749,1,0,0,0,4339,4342,3,752,376,0,4340,4342,3,762,381,0,4341,4339,1,0,0,0,4341,4340,1,0,0,0,4342,751,1,0,0,0,4343,4344,3,834,417,0,4344,753,1,0,0,0,4345,4346,5,321,0,0,4346,4347,3,756,378,0,4347,755,1,0,0,0,4348,4353,3,758,379,0,4349,4350,5,24,0,0,4350,4352,3,758,379,0,4351,4349,1,0,0,0,4352,4355,1,0,0,0,4353,4351,1,0,0,0,4353,4354,1,0,0,0,4354,757,1,0,0,0,4355,4353,1,0,0,0,4356,4357,3,760,380,0,4357,4358,5,49,0,0,4358,4359,3,762,381,0,4359,759,1,0,0,0,4360,4361,3,752,376,0,4361,761,1,0,0,0,4362,4363,5,25,0,0,4363,4364,3,764,382,0,4364,4365,5,26,0,0,4365,763,1,0,0,0,4366,4368,3,766,383,0,4367,4366,1,0,0,0,4367,4368,1,0,0,0,4368,4370,1,0,0,0,4369,4371,3,768,384,0,4370,4369,1,0,0,0,4370,4371,1,0,0,0,4371,4373,1,0,0,0,4372,4374,3,770,385,0,4373,4372,1,0,0,0,4373,4374,1,0,0,0,4374,4376,1,0,0,0,4375,4377,3,772,386,0,4376,4375,1,0,0,0,4376,4377,1,0,0,0,4377,765,1,0,0,0,4378,4379,3,752,376,0,4379,767,1,0,0,0,4380,4382,5,218,0,0,4381,4383,5,79,0,0,4382,4381,1,0,0,0,4382,4383,1,0,0,0,4383,4384,1,0,0,0,4384,4385,5,67,0,0,4385,4386,3,130,65,0,4386,769,1,0,0,0,4387,4388,3,314,157,0,4388,771,1,0,0,0,4389,4390,3,774,387,0,4390,4392,3,776,388,0,4391,4393,3,782,391,0,4392,4391,1,0,0,0,4392,4393,1,0,0,0,4393,773,1,0,0,0,4394,4395,7,29,0,0,4395,775,1,0,0,0,4396,4399,3,780,390,0,4397,4399,3,778,389,0,4398,4396,1,0,0,0,4398,4397,1,0,0,0,4399,777,1,0,0,0,4400,4401,5,65,0,0,4401,4402,3,780,390,0,4402,4403,5,45,0,0,4403,4404,3,780,390,0,4404,779,1,0,0,0,4405,4406,5,89,0,0,4406,4413,5,262,0,0,4407,4410,3,14,7,0,4408,4410,5,303,0,0,4409,4407,1,0,0,0,4409,4408,1,0,0,0,4410,4411,1,0,0,0,4411,4413,7,30,0,0,4412,4405,1,0,0,0,4412,4409,1,0,0,0,4413,781,1,0,0,0,4414,4415,5,124,0,0,4415,4416,5,89,0,0,4416,4425,5,262,0,0,4417,4418,5,124,0,0,4418,4425,5,147,0,0,4419,4420,5,124,0,0,4420,4425,5,294,0,0,4421,4422,5,124,0,0,4422,4423,5,197,0,0,4423,4425,5,214,0,0,4424,4414,1,0,0,0,4424,4417,1,0,0,0,4424,4419,1,0,0,0,4424,4421,1,0,0,0,4425,783,1,0,0,0,4426,4427,5,311,0,0,4427,4428,3,850,425,0,4428,785,1,0,0,0,4429,4430,5,25,0,0,4430,4431,3,232,116,0,4431,4432,5,26,0,0,4432,4435,1,0,0,0,4433,4435,3,234,117,0,4434,4429,1,0,0,0,4434,4433,1,0,0,0,4435,787,1,0,0,0,4436,4437,3,148,74,0,4437,4440,5,1,0,0,4438,4441,3,14,7,0,4439,4441,3,786,393,0,4440,4438,1,0,0,0,4440,4439,1,0,0,0,4441,789,1,0,0,0,4442,4443,5,78,0,0,4443,791,1,0,0,0,4444,4445,5,260,0,0,4445,793,1,0,0,0,4446,4451,3,676,338,0,4447,4448,5,25,0,0,4448,4449,3,124,62,0,4449,4450,5,26,0,0,4450,4452,1,0,0,0,4451,4447,1,0,0,0,4451,4452,1,0,0,0,4452,795,1,0,0,0,4453,4458,3,794,397,0,4454,4455,5,24,0,0,4455,4457,3,794,397,0,4456,4454,1,0,0,0,4457,4460,1,0,0,0,4458,4456,1,0,0,0,4458,4459,1,0,0,0,4459,4462,1,0,0,0,4460,4458,1,0,0,0,4461,4463,5,24,0,0,4462,4461,1,0,0,0,4462,4463,1,0,0,0,4463,797,1,0,0,0,4464,4465,5,44,0,0,4465,4466,3,796,398,0,4466,799,1,0,0,0,4467,4468,5,43,0,0,4468,4471,5,275,0,0,4469,4470,5,153,0,0,4470,4472,5,127,0,0,4471,4469,1,0,0,0,4471,4472,1,0,0,0,4472,4473,1,0,0,0,4473,4475,3,672,336,0,4474,4476,3,802,401,0,4475,4474,1,0,0,0,4476,4477,1,0,0,0,4477,4475,1,0,0,0,4477,4478,1,0,0,0,4478,801,1,0,0,0,4479,4481,5,277,0,0,4480,4482,5,322,0,0,4481,4480,1,0,0,0,4481,4482,1,0,0,0,4482,4483,1,0,0,0,4483,4496,3,888,444,0,4484,4486,5,250,0,0,4485,4487,5,322,0,0,4486,4485,1,0,0,0,4486,4487,1,0,0,0,4487,4488,1,0,0,0,4488,4496,3,888,444,0,4489,4496,5,250,0,0,4490,4492,5,159,0,0,4491,4493,5,67,0,0,4492,4491,1,0,0,0,4492,4493,1,0,0,0,4493,4494,1,0,0,0,4494,4496,3,888,444,0,4495,4479,1,0,0,0,4495,4484,1,0,0,0,4495,4489,1,0,0,0,4495,4490,1,0,0,0,4496,803,1,0,0,0,4497,4498,7,31,0,0,4498,805,1,0,0,0,4499,4502,3,804,402,0,4500,4502,3,862,431,0,4501,4499,1,0,0,0,4501,4500,1,0,0,0,4502,807,1,0,0,0,4503,4511,3,804,402,0,4504,4511,3,880,440,0,4505,4511,3,864,432,0,4506,4511,3,868,434,0,4507,4511,3,872,436,0,4508,4511,3,874,437,0,4509,4511,3,876,438,0,4510,4503,1,0,0,0,4510,4504,1,0,0,0,4510,4505,1,0,0,0,4510,4506,1,0,0,0,4510,4507,1,0,0,0,4510,4508,1,0,0,0,4510,4509,1,0,0,0,4511,809,1,0,0,0,4512,4519,3,804,402,0,4513,4519,3,880,440,0,4514,4519,3,870,435,0,4515,4519,3,872,436,0,4516,4519,3,874,437,0,4517,4519,3,876,438,0,4518,4512,1,0,0,0,4518,4513,1,0,0,0,4518,4514,1,0,0,0,4518,4515,1,0,0,0,4518,4516,1,0,0,0,4518,4517,1,0,0,0,4519,811,1,0,0,0,4520,4526,3,804,402,0,4521,4526,3,880,440,0,4522,4526,3,870,435,0,4523,4526,3,874,437,0,4524,4526,3,876,438,0,4525,4520,1,0,0,0,4525,4521,1,0,0,0,4525,4522,1,0,0,0,4525,4523,1,0,0,0,4525,4524,1,0,0,0,4526,813,1,0,0,0,4527,4536,3,804,402,0,4528,4536,3,880,440,0,4529,4536,3,864,432,0,4530,4536,3,866,433,0,4531,4536,3,868,434,0,4532,4536,3,870,435,0,4533,4536,3,872,436,0,4534,4536,3,876,438,0,4535,4527,1,0,0,0,4535,4528,1,0,0,0,4535,4529,1,0,0,0,4535,4530,1,0,0,0,4535,4531,1,0,0,0,4535,4532,1,0,0,0,4535,4533,1,0,0,0,4535,4534,1,0,0,0,4536,815,1,0,0,0,4537,4545,3,804,402,0,4538,4545,3,880,440,0,4539,4545,3,864,432,0,4540,4545,3,868,434,0,4541,4545,3,872,436,0,4542,4545,3,874,437,0,4543,4545,3,876,438,0,4544,4537,1,0,0,0,4544,4538,1,0,0,0,4544,4539,1,0,0,0,4544,4540,1,0,0,0,4544,4541,1,0,0,0,4544,4542,1,0,0,0,4544,4543,1,0,0,0,4545,817,1,0,0,0,4546,4554,3,804,402,0,4547,4554,3,880,440,0,4548,4554,3,866,433,0,4549,4554,3,870,435,0,4550,4554,3,872,436,0,4551,4554,3,874,437,0,4552,4554,3,876,438,0,4553,4546,1,0,0,0,4553,4547,1,0,0,0,4553,4548,1,0,0,0,4553,4549,1,0,0,0,4553,4550,1,0,0,0,4553,4551,1,0,0,0,4553,4552,1,0,0,0,4554,819,1,0,0,0,4555,4564,3,804,402,0,4556,4564,3,880,440,0,4557,4564,3,864,432,0,4558,4564,3,866,433,0,4559,4564,3,868,434,0,4560,4564,3,870,435,0,4561,4564,3,872,436,0,4562,4564,3,874,437,0,4563,4555,1,0,0,0,4563,4556,1,0,0,0,4563,4557,1,0,0,0,4563,4558,1,0,0,0,4563,4559,1,0,0,0,4563,4560,1,0,0,0,4563,4561,1,0,0,0,4563,4562,1,0,0,0,4564,821,1,0,0,0,4565,4568,3,804,402,0,4566,4568,3,878,439,0,4567,4565,1,0,0,0,4567,4566,1,0,0,0,4568,823,1,0,0,0,4569,4572,3,806,403,0,4570,4572,5,326,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,825,1,0,0,0,4573,4576,3,852,426,0,4574,4576,5,326,0,0,4575,4573,1,0,0,0,4575,4574,1,0,0,0,4576,827,1,0,0,0,4577,4580,3,808,404,0,4578,4580,5,326,0,0,4579,4577,1,0,0,0,4579,4578,1,0,0,0,4580,829,1,0,0,0,4581,4584,3,810,405,0,4582,4584,5,326,0,0,4583,4581,1,0,0,0,4583,4582,1,0,0,0,4584,831,1,0,0,0,4585,4588,3,812,406,0,4586,4588,5,326,0,0,4587,4585,1,0,0,0,4587,4586,1,0,0,0,4588,833,1,0,0,0,4589,4592,3,814,407,0,4590,4592,5,326,0,0,4591,4589,1,0,0,0,4591,4590,1,0,0,0,4592,835,1,0,0,0,4593,4596,3,816,408,0,4594,4596,5,326,0,0,4595,4593,1,0,0,0,4595,4594,1,0,0,0,4596,837,1,0,0,0,4597,4600,3,818,409,0,4598,4600,5,326,0,0,4599,4597,1,0,0,0,4599,4598,1,0,0,0,4600,839,1,0,0,0,4601,4604,3,820,410,0,4602,4604,5,326,0,0,4603,4601,1,0,0,0,4603,4602,1,0,0,0,4604,841,1,0,0,0,4605,4608,3,804,402,0,4606,4608,5,326,0,0,4607,4605,1,0,0,0,4607,4606,1,0,0,0,4608,843,1,0,0,0,4609,4612,3,822,411,0,4610,4612,5,326,0,0,4611,4609,1,0,0,0,4611,4610,1,0,0,0,4612,845,1,0,0,0,4613,4617,3,824,412,0,4614,4615,5,230,0,0,4615,4617,5,177,0,0,4616,4613,1,0,0,0,4616,4614,1,0,0,0,4617,847,1,0,0,0,4618,4619,3,824,412,0,4619,4620,5,23,0,0,4620,4622,1,0,0,0,4621,4618,1,0,0,0,4621,4622,1,0,0,0,4622,849,1,0,0,0,4623,4624,3,824,412,0,4624,4625,5,28,0,0,4625,4627,1,0,0,0,4626,4623,1,0,0,0,4626,4627,1,0,0,0,4627,4630,1,0,0,0,4628,4631,3,116,58,0,4629,4631,5,19,0,0,4630,4628,1,0,0,0,4630,4629,1,0,0,0,4631,851,1,0,0,0,4632,4635,3,806,403,0,4633,4635,3,882,441,0,4634,4632,1,0,0,0,4634,4633,1,0,0,0,4635,853,1,0,0,0,4636,4637,3,826,413,0,4637,4638,5,23,0,0,4638,4640,1,0,0,0,4639,4636,1,0,0,0,4639,4640,1,0,0,0,4640,855,1,0,0,0,4641,4643,5,29,0,0,4642,4641,1,0,0,0,4642,4643,1,0,0,0,4643,4644,1,0,0,0,4644,4645,3,826,413,0,4645,857,1,0,0,0,4646,4649,3,836,418,0,4647,4649,3,882,441,0,4648,4646,1,0,0,0,4648,4647,1,0,0,0,4649,859,1,0,0,0,4650,4652,5,29,0,0,4651,4650,1,0,0,0,4651,4652,1,0,0,0,4652,4653,1,0,0,0,4653,4654,3,858,429,0,4654,861,1,0,0,0,4655,4664,3,880,440,0,4656,4664,3,864,432,0,4657,4664,3,866,433,0,4658,4664,3,868,434,0,4659,4664,3,870,435,0,4660,4664,3,872,436,0,4661,4664,3,874,437,0,4662,4664,3,876,438,0,4663,4655,1,0,0,0,4663,4656,1,0,0,0,4663,4657,1,0,0,0,4663,4658,1,0,0,0,4663,4659,1,0,0,0,4663,4660,1,0,0,0,4663,4661,1,0,0,0,4663,4662,1,0,0,0,4664,863,1,0,0,0,4665,4666,7,32,0,0,4666,865,1,0,0,0,4667,4668,7,33,0,0,4668,867,1,0,0,0,4669,4670,7,34,0,0,4670,869,1,0,0,0,4671,4672,5,76,0,0,4672,871,1,0,0,0,4673,4674,5,79,0,0,4674,873,1,0,0,0,4675,4676,7,29,0,0,4676,875,1,0,0,0,4677,4678,7,28,0,0,4678,877,1,0,0,0,4679,4680,7,35,0,0,4680,879,1,0,0,0,4681,4682,7,36,0,0,4682,881,1,0,0,0,4683,4684,7,37,0,0,4684,883,1,0,0,0,4685,4686,7,38,0,0,4686,885,1,0,0,0,4687,4688,5,331,0,0,4688,887,1,0,0,0,4689,4690,7,39,0,0,4690,889,1,0,0,0,4691,4697,3,892,446,0,4692,4693,5,227,0,0,4693,4694,5,46,0,0,4694,4695,5,329,0,0,4695,4697,3,4,2,0,4696,4691,1,0,0,0,4696,4692,1,0,0,0,4697,891,1,0,0,0,4698,4700,5,22,0,0,4699,4698,1,0,0,0,4700,4703,1,0,0,0,4701,4699,1,0,0,0,4701,4702,1,0,0,0,4702,4704,1,0,0,0,4703,4701,1,0,0,0,4704,4713,3,894,447,0,4705,4707,5,22,0,0,4706,4705,1,0,0,0,4707,4708,1,0,0,0,4708,4706,1,0,0,0,4708,4709,1,0,0,0,4709,4710,1,0,0,0,4710,4712,3,894,447,0,4711,4706,1,0,0,0,4712,4715,1,0,0,0,4713,4711,1,0,0,0,4713,4714,1,0,0,0,4714,4719,1,0,0,0,4715,4713,1,0,0,0,4716,4718,5,22,0,0,4717,4716,1,0,0,0,4718,4721,1,0,0,0,4719,4717,1,0,0,0,4719,4720,1,0,0,0,4720,4722,1,0,0,0,4721,4719,1,0,0,0,4722,4723,5,0,0,1,4723,893,1,0,0,0,4724,4727,5,128,0,0,4725,4726,5,233,0,0,4726,4728,5,225,0,0,4727,4725,1,0,0,0,4727,4728,1,0,0,0,4728,4730,1,0,0,0,4729,4724,1,0,0,0,4729,4730,1,0,0,0,4730,4731,1,0,0,0,4731,4732,3,896,448,0,4732,895,1,0,0,0,4733,4747,3,224,112,0,4734,4747,3,232,116,0,4735,4747,3,788,394,0,4736,4747,3,784,392,0,4737,4747,3,366,183,0,4738,4747,3,210,105,0,4739,4747,3,214,107,0,4740,4747,3,216,108,0,4741,4747,3,222,111,0,4742,4747,3,654,327,0,4743,4747,3,658,329,0,4744,4747,3,660,330,0,4745,4747,3,370,185,0,4746,4733,1,0,0,0,4746,4734,1,0,0,0,4746,4735,1,0,0,0,4746,4736,1,0,0,0,4746,4737,1,0,0,0,4746,4738,1,0,0,0,4746,4739,1,0,0,0,4746,4740,1,0,0,0,4746,4741,1,0,0,0,4746,4742,1,0,0,0,4746,4743,1,0,0,0,4746,4744,1,0,0,0,4746,4745,1,0,0,0,4747,897,1,0,0,0,4748,4749,5,49,0,0,4749,4750,3,672,336,0,4750,899,1,0,0,0,4751,4752,5,320,0,0,4752,4753,3,14,7,0,4753,901,1,0,0,0,523,907,912,919,924,930,938,946,953,957,965,970,975,977,1041,1048,1052,1059,1067,1072,1076,1082,1088,1091,1095,1103,1107,1110,1114,1125,1130,1132,1141,1162,1167,1176,1178,1185,1193,1201,1208,1218,1220,1224,1229,1233,1239,1245,1249,1253,1256,1263,1269,1273,1278,1281,1295,1300,1303,1317,1324,1335,1346,1366,1372,1377,1381,1395,1397,1404,1410,1421,1429,1435,1442,1450,1463,1469,1473,1476,1478,1486,1494,1500,1506,1512,1515,1524,1533,1540,1548,1561,1568,1572,1579,1583,1588,1595,1602,1605,1612,1616,1626,1649,1655,1659,1666,1672,1679,1683,1687,1693,1698,1707,1710,1716,1721,1729,1736,1758,1762,1764,1768,1777,1781,1783,1787,1796,1800,1838,1842,1862,1865,1871,1891,1896,1902,1907,1910,1914,1941,1949,1952,1959,1972,1976,1988,2001,2006,2013,2017,2024,2033,2042,2050,2054,2058,2065,2067,2070,2075,2080,2084,2091,2098,2102,2105,2109,2113,2115,2126,2135,2140,2146,2151,2154,2158,2162,2165,2169,2173,2181,2185,2189,2193,2196,2199,2203,2206,2209,2214,2217,2220,2223,2237,2239,2250,2260,2270,2273,2280,2304,2315,2321,2325,2329,2333,2337,2341,2345,2349,2355,2362,2372,2383,2396,2412,2422,2442,2448,2455,2462,2470,2479,2516,2518,2521,2526,2530,2534,2540,2546,2550,2555,2560,2562,2566,2571,2574,2576,2580,2591,2602,2613,2617,2621,2625,2628,2632,2635,2641,2650,2653,2667,2673,2686,2693,2698,2705,2712,2721,2726,2734,2749,2755,2763,2772,2776,2785,2797,2804,2812,2833,2841,2850,2860,2869,2874,2881,2891,2896,2905,2909,2913,2916,2919,2922,2925,2933,2938,2949,2956,2969,2977,2982,2989,3002,3013,3023,3029,3038,3055,3078,3098,3109,3117,3127,3132,3136,3142,3180,3192,3234,3242,3245,3249,3253,3263,3276,3289,3294,3306,3317,3322,3325,3329,3333,3337,3340,3353,3357,3369,3383,3398,3413,3416,3426,3429,3437,3449,3452,3462,3470,3476,3484,3492,3499,3503,3513,3520,3525,3530,3542,3546,3548,3560,3564,3569,3575,3582,3586,3590,3594,3598,3601,3619,3628,3632,3637,3643,3652,3661,3678,3682,3686,3688,3692,3699,3703,3707,3709,3726,3731,3755,3760,3778,3794,3810,3825,3829,3840,3852,3867,3872,3887,3894,3902,3913,3920,3925,3931,3934,3937,3944,3947,3950,3959,3964,3967,3977,3981,3983,3990,3993,3997,3999,4002,4007,4010,4015,4025,4030,4041,4045,4049,4051,4055,4060,4068,4071,4074,4077,4082,4088,4091,4095,4101,4104,4112,4115,4118,4125,4129,4132,4136,4143,4164,4174,4178,4181,4189,4205,4213,4221,4229,4238,4256,4273,4282,4291,4310,4322,4332,4341,4353,4367,4370,4373,4376,4382,4392,4398,4409,4412,4424,4434,4440,4451,4458,4462,4471,4477,4481,4486,4492,4495,4501,4510,4518,4525,4535,4544,4553,4563,4567,4571,4575,4579,4583,4587,4591,4595,4599,4603,4607,4611,4616,4621,4626,4630,4634,4639,4642,4648,4651,4663,4696,4701,4708,4713,4719,4727,4729,4746]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},os=class extends W{static{Si(this,"Sql_queryContext")}constructor(e,t){super(e,t)}sql_stmt_list(){return this.getRuleContext(0,as)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query}accept(e){return e.visitSql_query?e.visitSql_query(this):e.visitChildren(this)}},as=class extends W{static{Si(this,"Sql_stmt_listContext")}constructor(e,t){super(e,t)}sql_stmt(e){return void 0===e?this.getRuleContexts(ds):this.getRuleContext(e,ds)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list}accept(e){return e.visitSql_stmt_list?e.visitSql_stmt_list(this):e.visitChildren(this)}},cs=class extends W{static{Si(this,"Ansi_sql_stmt_listContext")}constructor(e,t){super(e,t)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_ansi_sql_stmt_list}accept(e){return e.visitAnsi_sql_stmt_list?e.visitAnsi_sql_stmt_list(this):e.visitChildren(this)}},ls=class extends W{static{Si(this,"Lambda_bodyContext")}constructor(e,t){super(e,t)}RETURN(){return this.getToken(rs.RETURN,0)}expr(){return this.getRuleContext(0,gs)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}lambda_stmt(e){return void 0===e?this.getRuleContexts(hs):this.getRuleContext(e,hs)}get ruleIndex(){return rs.RULE_lambda_body}accept(e){return e.visitLambda_body?e.visitLambda_body(this):e.visitChildren(this)}},hs=class extends W{static{Si(this,"Lambda_stmtContext")}constructor(e,t){super(e,t)}named_nodes_stmt(){return this.getRuleContext(0,wh)}import_stmt(){return this.getRuleContext(0,or)}get ruleIndex(){return rs.RULE_lambda_stmt}accept(e){return e.visitLambda_stmt?e.visitLambda_stmt(this):e.visitChildren(this)}},ds=class extends W{static{Si(this,"Sql_stmtContext")}constructor(e,t){super(e,t)}sql_stmt_core(){return this.getRuleContext(0,us)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt}accept(e){return e.visitSql_stmt?e.visitSql_stmt(this):e.visitChildren(this)}},us=class extends W{static{Si(this,"Sql_stmt_coreContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}create_table_stmt(){return this.getRuleContext(0,ta)}drop_table_stmt(){return this.getRuleContext(0,Sc)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt(){return this.getRuleContext(0,xo)}commit_stmt(){return this.getRuleContext(0,Rh)}update_stmt(){return this.getRuleContext(0,Rl)}delete_stmt(){return this.getRuleContext(0,wl)}rollback_stmt(){return this.getRuleContext(0,Lh)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_external_table_stmt(){return this.getRuleContext(0,La)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}create_user_stmt(){return this.getRuleContext(0,yc)}alter_user_stmt(){return this.getRuleContext(0,wc)}create_group_stmt(){return this.getRuleContext(0,Rc)}alter_group_stmt(){return this.getRuleContext(0,Lc)}drop_role_stmt(){return this.getRuleContext(0,Tc)}create_object_stmt(){return this.getRuleContext(0,zo)}alter_object_stmt(){return this.getRuleContext(0,jo)}drop_object_stmt(){return this.getRuleContext(0,Yo)}create_external_data_source_stmt(){return this.getRuleContext(0,Po)}alter_external_data_source_stmt(){return this.getRuleContext(0,Fo)}drop_external_data_source_stmt(){return this.getRuleContext(0,Ho)}create_replication_stmt(){return this.getRuleContext(0,Yc)}drop_replication_stmt(){return this.getRuleContext(0,el)}create_topic_stmt(){return this.getRuleContext(0,Il)}alter_topic_stmt(){return this.getRuleContext(0,Pl)}drop_topic_stmt(){return this.getRuleContext(0,Yl)}grant_permissions_stmt(){return this.getRuleContext(0,Dc)}revoke_permissions_stmt(){return this.getRuleContext(0,Mc)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}upsert_object_stmt(){return this.getRuleContext(0,Vo)}create_view_stmt(){return this.getRuleContext(0,Bo)}drop_view_stmt(){return this.getRuleContext(0,Wo)}alter_replication_stmt(){return this.getRuleContext(0,Xc)}create_resource_pool_stmt(){return this.getRuleContext(0,Hc)}alter_resource_pool_stmt(){return this.getRuleContext(0,Bc)}drop_resource_pool_stmt(){return this.getRuleContext(0,Vc)}create_backup_collection_stmt(){return this.getRuleContext(0,sa)}alter_backup_collection_stmt(){return this.getRuleContext(0,na)}drop_backup_collection_stmt(){return this.getRuleContext(0,ra)}analyze_stmt(){return this.getRuleContext(0,kh)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,zc)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Gc)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Kc)}backup_stmt(){return this.getRuleContext(0,fa)}restore_stmt(){return this.getRuleContext(0,_a)}alter_sequence_stmt(){return this.getRuleContext(0,Ah)}create_transfer_stmt(){return this.getRuleContext(0,il)}alter_transfer_stmt(){return this.getRuleContext(0,rl)}drop_transfer_stmt(){return this.getRuleContext(0,ll)}get ruleIndex(){return rs.RULE_sql_stmt_core}accept(e){return e.visitSql_stmt_core?e.visitSql_stmt_core(this):e.visitChildren(this)}},gs=class extends W{static{Si(this,"ExprContext")}constructor(e,t){super(e,t)}or_subexpr(e){return void 0===e?this.getRuleContexts(ps):this.getRuleContext(e,ps)}OR(e){return void 0===e?this.getTokens(rs.OR):this.getToken(rs.OR,e)}type_name_composite(){return this.getRuleContext(0,Jn)}get ruleIndex(){return rs.RULE_expr}accept(e){return e.visitExpr?e.visitExpr(this):e.visitChildren(this)}},ps=class extends W{static{Si(this,"Or_subexprContext")}constructor(e,t){super(e,t)}and_subexpr(e){return void 0===e?this.getRuleContexts(ms):this.getRuleContext(e,ms)}AND(e){return void 0===e?this.getTokens(rs.AND):this.getToken(rs.AND,e)}get ruleIndex(){return rs.RULE_or_subexpr}accept(e){return e.visitOr_subexpr?e.visitOr_subexpr(this):e.visitChildren(this)}},ms=class extends W{static{Si(this,"And_subexprContext")}constructor(e,t){super(e,t)}xor_subexpr(e){return void 0===e?this.getRuleContexts(fs):this.getRuleContext(e,fs)}XOR(e){return void 0===e?this.getTokens(rs.XOR):this.getToken(rs.XOR,e)}get ruleIndex(){return rs.RULE_and_subexpr}accept(e){return e.visitAnd_subexpr?e.visitAnd_subexpr(this):e.visitChildren(this)}},fs=class extends W{static{Si(this,"Xor_subexprContext")}constructor(e,t){super(e,t)}eq_subexpr(){return this.getRuleContext(0,Es)}cond_expr(){return this.getRuleContext(0,vs)}get ruleIndex(){return rs.RULE_xor_subexpr}accept(e){return e.visitXor_subexpr?e.visitXor_subexpr(this):e.visitChildren(this)}},_s=class extends W{static{Si(this,"Distinct_from_opContext")}constructor(e,t){super(e,t)}IS(){return this.getToken(rs.IS,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}FROM(){return this.getToken(rs.FROM,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_distinct_from_op}accept(e){return e.visitDistinct_from_op?e.visitDistinct_from_op(this):e.visitChildren(this)}},vs=class extends W{static{Si(this,"Cond_exprContext")}constructor(e,t){super(e,t)}match_op(){return this.getRuleContext(0,Cs)}eq_subexpr(e){return void 0===e?this.getRuleContexts(Es):this.getRuleContext(e,Es)}NOT(){return this.getToken(rs.NOT,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}IN(){return this.getToken(rs.IN,0)}in_expr(){return this.getRuleContext(0,Ys)}COMPACT(){return this.getToken(rs.COMPACT,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}IS(){return this.getToken(rs.IS,0)}NULL(){return this.getToken(rs.NULL,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}AND(){return this.getToken(rs.AND,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}EQUALS(e){return void 0===e?this.getTokens(rs.EQUALS):this.getToken(rs.EQUALS,e)}EQUALS2(e){return void 0===e?this.getTokens(rs.EQUALS2):this.getToken(rs.EQUALS2,e)}NOT_EQUALS(e){return void 0===e?this.getTokens(rs.NOT_EQUALS):this.getToken(rs.NOT_EQUALS,e)}NOT_EQUALS2(e){return void 0===e?this.getTokens(rs.NOT_EQUALS2):this.getToken(rs.NOT_EQUALS2,e)}distinct_from_op(e){return void 0===e?this.getRuleContexts(_s):this.getRuleContext(e,_s)}get ruleIndex(){return rs.RULE_cond_expr}accept(e){return e.visitCond_expr?e.visitCond_expr(this):e.visitChildren(this)}},Cs=class extends W{static{Si(this,"Match_opContext")}constructor(e,t){super(e,t)}LIKE(){return this.getToken(rs.LIKE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}GLOB(){return this.getToken(rs.GLOB,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}MATCH(){return this.getToken(rs.MATCH,0)}get ruleIndex(){return rs.RULE_match_op}accept(e){return e.visitMatch_op?e.visitMatch_op(this):e.visitChildren(this)}},Es=class extends W{static{Si(this,"Eq_subexprContext")}constructor(e,t){super(e,t)}neq_subexpr(e){return void 0===e?this.getRuleContexts(ws):this.getRuleContext(e,ws)}LESS(e){return void 0===e?this.getTokens(rs.LESS):this.getToken(rs.LESS,e)}LESS_OR_EQ(e){return void 0===e?this.getTokens(rs.LESS_OR_EQ):this.getToken(rs.LESS_OR_EQ,e)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}GREATER_OR_EQ(e){return void 0===e?this.getTokens(rs.GREATER_OR_EQ):this.getToken(rs.GREATER_OR_EQ,e)}get ruleIndex(){return rs.RULE_eq_subexpr}accept(e){return e.visitEq_subexpr?e.visitEq_subexpr(this):e.visitChildren(this)}},bs=class extends W{static{Si(this,"Shift_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}get ruleIndex(){return rs.RULE_shift_right}accept(e){return e.visitShift_right?e.visitShift_right(this):e.visitChildren(this)}},Ss=class extends W{static{Si(this,"Rot_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}PIPE(){return this.getToken(rs.PIPE,0)}get ruleIndex(){return rs.RULE_rot_right}accept(e){return e.visitRot_right?e.visitRot_right(this):e.visitChildren(this)}},ys=class extends W{static{Si(this,"Double_questionContext")}constructor(e,t){super(e,t)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_double_question}accept(e){return e.visitDouble_question?e.visitDouble_question(this):e.visitChildren(this)}},ws=class e extends W{static{Si(this,"Neq_subexprContext")}constructor(e,t){super(e,t)}bit_subexpr(e){return void 0===e?this.getRuleContexts(Rs):this.getRuleContext(e,Rs)}double_question(){return this.getRuleContext(0,ys)}neq_subexpr(){return this.getRuleContext(0,e)}SHIFT_LEFT(e){return void 0===e?this.getTokens(rs.SHIFT_LEFT):this.getToken(rs.SHIFT_LEFT,e)}shift_right(e){return void 0===e?this.getRuleContexts(bs):this.getRuleContext(e,bs)}ROT_LEFT(e){return void 0===e?this.getTokens(rs.ROT_LEFT):this.getToken(rs.ROT_LEFT,e)}rot_right(e){return void 0===e?this.getRuleContexts(Ss):this.getRuleContext(e,Ss)}AMPERSAND(e){return void 0===e?this.getTokens(rs.AMPERSAND):this.getToken(rs.AMPERSAND,e)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}CARET(e){return void 0===e?this.getTokens(rs.CARET):this.getToken(rs.CARET,e)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_neq_subexpr}accept(e){return e.visitNeq_subexpr?e.visitNeq_subexpr(this):e.visitChildren(this)}},Rs=class extends W{static{Si(this,"Bit_subexprContext")}constructor(e,t){super(e,t)}add_subexpr(e){return void 0===e?this.getRuleContexts(Ls):this.getRuleContext(e,Ls)}PLUS(e){return void 0===e?this.getTokens(rs.PLUS):this.getToken(rs.PLUS,e)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}get ruleIndex(){return rs.RULE_bit_subexpr}accept(e){return e.visitBit_subexpr?e.visitBit_subexpr(this):e.visitChildren(this)}},Ls=class extends W{static{Si(this,"Add_subexprContext")}constructor(e,t){super(e,t)}mul_subexpr(e){return void 0===e?this.getRuleContexts(Ts):this.getRuleContext(e,Ts)}ASTERISK(e){return void 0===e?this.getTokens(rs.ASTERISK):this.getToken(rs.ASTERISK,e)}SLASH(e){return void 0===e?this.getTokens(rs.SLASH):this.getToken(rs.SLASH,e)}PERCENT(e){return void 0===e?this.getTokens(rs.PERCENT):this.getToken(rs.PERCENT,e)}get ruleIndex(){return rs.RULE_add_subexpr}accept(e){return e.visitAdd_subexpr?e.visitAdd_subexpr(this):e.visitChildren(this)}},Ts=class extends W{static{Si(this,"Mul_subexprContext")}constructor(e,t){super(e,t)}con_subexpr(e){return void 0===e?this.getRuleContexts(xs):this.getRuleContext(e,xs)}DOUBLE_PIPE(e){return void 0===e?this.getTokens(rs.DOUBLE_PIPE):this.getToken(rs.DOUBLE_PIPE,e)}get ruleIndex(){return rs.RULE_mul_subexpr}accept(e){return e.visitMul_subexpr?e.visitMul_subexpr(this):e.visitChildren(this)}},xs=class extends W{static{Si(this,"Con_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr(){return this.getRuleContext(0,Os)}unary_op(){return this.getRuleContext(0,ks)}get ruleIndex(){return rs.RULE_con_subexpr}accept(e){return e.visitCon_subexpr?e.visitCon_subexpr(this):e.visitChildren(this)}},ks=class extends W{static{Si(this,"Unary_opContext")}constructor(e,t){super(e,t)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}TILDA(){return this.getToken(rs.TILDA,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_unary_op}accept(e){return e.visitUnary_op?e.visitUnary_op(this):e.visitChildren(this)}},As=class extends W{static{Si(this,"Unary_subexpr_suffixContext")}constructor(e,t){super(e,t)}COLLATE(){return this.getToken(rs.COLLATE,0)}an_id(){return this.getRuleContext(0,Vh)}key_expr(e){return void 0===e?this.getRuleContexts(Sn):this.getRuleContext(e,Sn)}invoke_expr(e){return void 0===e?this.getRuleContexts(Cn):this.getRuleContext(e,Cn)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}DIGITS(e){return void 0===e?this.getTokens(rs.DIGITS):this.getToken(rs.DIGITS,e)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}get ruleIndex(){return rs.RULE_unary_subexpr_suffix}accept(e){return e.visitUnary_subexpr_suffix?e.visitUnary_subexpr_suffix(this):e.visitChildren(this)}},Ns=class extends W{static{Si(this,"Unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr(){return this.getRuleContext(0,Mh)}atom_expr(){return this.getRuleContext(0,Bs)}get ruleIndex(){return rs.RULE_unary_casual_subexpr}accept(e){return e.visitUnary_casual_subexpr?e.visitUnary_casual_subexpr(this):e.visitChildren(this)}},Is=class extends W{static{Si(this,"In_unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr_in(){return this.getRuleContext(0,Ph)}in_atom_expr(){return this.getRuleContext(0,Ws)}get ruleIndex(){return rs.RULE_in_unary_casual_subexpr}accept(e){return e.visitIn_unary_casual_subexpr?e.visitIn_unary_casual_subexpr(this):e.visitChildren(this)}},Os=class extends W{static{Si(this,"Unary_subexprContext")}constructor(e,t){super(e,t)}unary_casual_subexpr(){return this.getRuleContext(0,Ns)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_unary_subexpr}accept(e){return e.visitUnary_subexpr?e.visitUnary_subexpr(this):e.visitChildren(this)}},Ds=class extends W{static{Si(this,"In_unary_subexprContext")}constructor(e,t){super(e,t)}in_unary_casual_subexpr(){return this.getRuleContext(0,Is)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_in_unary_subexpr}accept(e){return e.visitIn_unary_subexpr?e.visitIn_unary_subexpr(this):e.visitChildren(this)}},Ms=class extends W{static{Si(this,"List_literalContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,ln)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_list_literal}accept(e){return e.visitList_literal?e.visitList_literal(this):e.visitChildren(this)}},Ps=class extends W{static{Si(this,"Expr_dict_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_dict_list}accept(e){return e.visitExpr_dict_list?e.visitExpr_dict_list(this):e.visitChildren(this)}},Fs=class extends W{static{Si(this,"Dict_literalContext")}constructor(e,t){super(e,t)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,Ps)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_dict_literal}accept(e){return e.visitDict_literal?e.visitDict_literal(this):e.visitChildren(this)}},Us=class extends W{static{Si(this,"Expr_struct_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_struct_list}accept(e){return e.visitExpr_struct_list?e.visitExpr_struct_list(this):e.visitChildren(this)}},Hs=class extends W{static{Si(this,"Struct_literalContext")}constructor(e,t){super(e,t)}STRUCT_OPEN(){return this.getToken(rs.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(rs.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,Us)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_struct_literal}accept(e){return e.visitStruct_literal?e.visitStruct_literal(this):e.visitChildren(this)}},Bs=class extends W{static{Si(this,"Atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}exists_expr(){return this.getRuleContext(0,Gs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_atom_expr}accept(e){return e.visitAtom_expr?e.visitAtom_expr(this):e.visitChildren(this)}},Ws=class extends W{static{Si(this,"In_atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_in_atom_expr}accept(e){return e.visitIn_atom_expr?e.visitIn_atom_expr(this):e.visitChildren(this)}},Vs=class extends W{static{Si(this,"Cast_exprContext")}constructor(e,t){super(e,t)}CAST(){return this.getToken(rs.CAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cast_expr}accept(e){return e.visitCast_expr?e.visitCast_expr(this):e.visitChildren(this)}},zs=class extends W{static{Si(this,"Bitcast_exprContext")}constructor(e,t){super(e,t)}BITCAST(){return this.getToken(rs.BITCAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_simple(){return this.getRuleContext(0,Nn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_bitcast_expr}accept(e){return e.visitBitcast_expr?e.visitBitcast_expr(this):e.visitChildren(this)}},Gs=class extends W{static{Si(this,"Exists_exprContext")}constructor(e,t){super(e,t)}EXISTS(){return this.getToken(rs.EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_exists_expr}accept(e){return e.visitExists_expr?e.visitExists_expr(this):e.visitChildren(this)}},js=class extends W{static{Si(this,"Case_exprContext")}constructor(e,t){super(e,t)}CASE(){return this.getToken(rs.CASE,0)}END(){return this.getToken(rs.END,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}when_expr(e){return void 0===e?this.getRuleContexts(yn):this.getRuleContext(e,yn)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_case_expr}accept(e){return e.visitCase_expr?e.visitCase_expr(this):e.visitChildren(this)}},Ks=class extends W{static{Si(this,"LambdaContext")}constructor(e,t){super(e,t)}smart_parenthesis(){return this.getRuleContext(0,cn)}ARROW(){return this.getToken(rs.ARROW,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,ls)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_lambda}accept(e){return e.visitLambda?e.visitLambda(this):e.visitChildren(this)}},Ys=class extends W{static{Si(this,"In_exprContext")}constructor(e,t){super(e,t)}in_unary_subexpr(){return this.getRuleContext(0,Ds)}get ruleIndex(){return rs.RULE_in_expr}accept(e){return e.visitIn_expr?e.visitIn_expr(this):e.visitChildren(this)}},qs=class extends W{static{Si(this,"Json_api_exprContext")}constructor(e,t){super(e,t)}json_value(){return this.getRuleContext(0,tn)}json_exists(){return this.getRuleContext(0,nn)}json_query(){return this.getRuleContext(0,an)}get ruleIndex(){return rs.RULE_json_api_expr}accept(e){return e.visitJson_api_expr?e.visitJson_api_expr(this):e.visitChildren(this)}},$s=class extends W{static{Si(this,"Jsonpath_specContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_jsonpath_spec}accept(e){return e.visitJsonpath_spec?e.visitJsonpath_spec(this):e.visitChildren(this)}},Qs=class extends W{static{Si(this,"Json_variable_nameContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_json_variable_name}accept(e){return e.visitJson_variable_name?e.visitJson_variable_name(this):e.visitChildren(this)}},Xs=class extends W{static{Si(this,"Json_variableContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}json_variable_name(){return this.getRuleContext(0,Qs)}get ruleIndex(){return rs.RULE_json_variable}accept(e){return e.visitJson_variable?e.visitJson_variable(this):e.visitChildren(this)}},Zs=class extends W{static{Si(this,"Json_variablesContext")}constructor(e,t){super(e,t)}json_variable(e){return void 0===e?this.getRuleContexts(Xs):this.getRuleContext(e,Xs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_json_variables}accept(e){return e.visitJson_variables?e.visitJson_variables(this):e.visitChildren(this)}},Js=class extends W{static{Si(this,"Json_common_argsContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}COMMA(){return this.getToken(rs.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,$s)}PASSING(){return this.getToken(rs.PASSING,0)}json_variables(){return this.getRuleContext(0,Zs)}get ruleIndex(){return rs.RULE_json_common_args}accept(e){return e.visitJson_common_args?e.visitJson_common_args(this):e.visitChildren(this)}},en=class extends W{static{Si(this,"Json_case_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_json_case_handler}accept(e){return e.visitJson_case_handler?e.visitJson_case_handler(this):e.visitChildren(this)}},tn=class extends W{static{Si(this,"Json_valueContext")}constructor(e,t){super(e,t)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,Nn)}json_case_handler(e){return void 0===e?this.getRuleContexts(en):this.getRuleContext(e,en)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(e){return void 0===e?this.getTokens(rs.EMPTY):this.getToken(rs.EMPTY,e)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}get ruleIndex(){return rs.RULE_json_value}accept(e){return e.visitJson_value?e.visitJson_value(this):e.visitChildren(this)}},sn=class extends W{static{Si(this,"Json_exists_handlerContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}get ruleIndex(){return rs.RULE_json_exists_handler}accept(e){return e.visitJson_exists_handler?e.visitJson_exists_handler(this):e.visitChildren(this)}},nn=class extends W{static{Si(this,"Json_existsContext")}constructor(e,t){super(e,t)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,sn)}get ruleIndex(){return rs.RULE_json_exists}accept(e){return e.visitJson_exists?e.visitJson_exists(this):e.visitChildren(this)}},rn=class extends W{static{Si(this,"Json_query_wrapperContext")}constructor(e,t){super(e,t)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}WITH(){return this.getToken(rs.WITH,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}get ruleIndex(){return rs.RULE_json_query_wrapper}accept(e){return e.visitJson_query_wrapper?e.visitJson_query_wrapper(this):e.visitChildren(this)}},on=class extends W{static{Si(this,"Json_query_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}get ruleIndex(){return rs.RULE_json_query_handler}accept(e){return e.visitJson_query_handler?e.visitJson_query_handler(this):e.visitChildren(this)}},an=class extends W{static{Si(this,"Json_queryContext")}constructor(e,t){super(e,t)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,rn)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}json_query_handler(e){return void 0===e?this.getRuleContexts(on):this.getRuleContext(e,on)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(){return this.getToken(rs.EMPTY,0)}ERROR(){return this.getToken(rs.ERROR,0)}get ruleIndex(){return rs.RULE_json_query}accept(e){return e.visitJson_query?e.visitJson_query(this):e.visitChildren(this)}},cn=class extends W{static{Si(this,"Smart_parenthesisContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_smart_parenthesis}accept(e){return e.visitSmart_parenthesis?e.visitSmart_parenthesis(this):e.visitChildren(this)}},ln=class extends W{static{Si(this,"Expr_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_list}accept(e){return e.visitExpr_list?e.visitExpr_list(this):e.visitChildren(this)}},hn=class extends W{static{Si(this,"Pure_column_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_list}accept(e){return e.visitPure_column_list?e.visitPure_column_list(this):e.visitChildren(this)}},dn=class extends W{static{Si(this,"Pure_column_or_namedContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_pure_column_or_named}accept(e){return e.visitPure_column_or_named?e.visitPure_column_or_named(this):e.visitChildren(this)}},un=class extends W{static{Si(this,"Pure_column_or_named_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}pure_column_or_named(e){return void 0===e?this.getRuleContexts(dn):this.getRuleContext(e,dn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_or_named_list}accept(e){return e.visitPure_column_or_named_list?e.visitPure_column_or_named_list(this):e.visitChildren(this)}},gn=class extends W{static{Si(this,"Column_nameContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_column_name}accept(e){return e.visitColumn_name?e.visitColumn_name(this):e.visitChildren(this)}},pn=class extends W{static{Si(this,"Without_column_nameContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(){return this.getToken(rs.DOT,0)}an_id_without(){return this.getRuleContext(0,$h)}get ruleIndex(){return rs.RULE_without_column_name}accept(e){return e.visitWithout_column_name?e.visitWithout_column_name(this):e.visitChildren(this)}},mn=class extends W{static{Si(this,"Column_listContext")}constructor(e,t){super(e,t)}column_name(e){return void 0===e?this.getRuleContexts(gn):this.getRuleContext(e,gn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_column_list}accept(e){return e.visitColumn_list?e.visitColumn_list(this):e.visitChildren(this)}},fn=class extends W{static{Si(this,"Without_column_listContext")}constructor(e,t){super(e,t)}without_column_name(e){return void 0===e?this.getRuleContexts(pn):this.getRuleContext(e,pn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_without_column_list}accept(e){return e.visitWithout_column_list?e.visitWithout_column_list(this):e.visitChildren(this)}},_n=class extends W{static{Si(this,"Named_exprContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_named_expr}accept(e){return e.visitNamed_expr?e.visitNamed_expr(this):e.visitChildren(this)}},vn=class extends W{static{Si(this,"Named_expr_listContext")}constructor(e,t){super(e,t)}named_expr(e){return void 0===e?this.getRuleContexts(_n):this.getRuleContext(e,_n)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_expr_list}accept(e){return e.visitNamed_expr_list?e.visitNamed_expr_list(this):e.visitChildren(this)}},Cn=class extends W{static{Si(this,"Invoke_exprContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,En)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}named_expr_list(){return this.getRuleContext(0,vn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_invoke_expr}accept(e){return e.visitInvoke_expr?e.visitInvoke_expr(this):e.visitChildren(this)}},En=class extends W{static{Si(this,"Invoke_expr_tailContext")}constructor(e,t){super(e,t)}null_treatment(){return this.getRuleContext(0,sh)}filter_clause(){return this.getRuleContext(0,nh)}OVER(){return this.getToken(rs.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,rh)}get ruleIndex(){return rs.RULE_invoke_expr_tail}accept(e){return e.visitInvoke_expr_tail?e.visitInvoke_expr_tail(this):e.visitChildren(this)}},bn=class extends W{static{Si(this,"Using_call_exprContext")}constructor(e,t){super(e,t)}invoke_expr(){return this.getRuleContext(0,Cn)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,jh)}bind_parameter(){return this.getRuleContext(0,Rn)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}get ruleIndex(){return rs.RULE_using_call_expr}accept(e){return e.visitUsing_call_expr?e.visitUsing_call_expr(this):e.visitChildren(this)}},Sn=class extends W{static{Si(this,"Key_exprContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,gs)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_key_expr}accept(e){return e.visitKey_expr?e.visitKey_expr(this):e.visitChildren(this)}},yn=class extends W{static{Si(this,"When_exprContext")}constructor(e,t){super(e,t)}WHEN(){return this.getToken(rs.WHEN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}THEN(){return this.getToken(rs.THEN,0)}get ruleIndex(){return rs.RULE_when_expr}accept(e){return e.visitWhen_expr?e.visitWhen_expr(this):e.visitChildren(this)}},wn=class extends W{static{Si(this,"Literal_valueContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}BLOB(){return this.getToken(rs.BLOB,0)}NULL(){return this.getToken(rs.NULL,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,vd)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}get ruleIndex(){return rs.RULE_literal_value}accept(e){return e.visitLiteral_value?e.visitLiteral_value(this):e.visitChildren(this)}},Rn=class extends W{static{Si(this,"Bind_parameterContext")}constructor(e,t){super(e,t)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,zh)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bind_parameter}accept(e){return e.visitBind_parameter?e.visitBind_parameter(this):e.visitChildren(this)}},Ln=class extends W{static{Si(this,"Opt_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}QUESTION(){return this.getToken(rs.QUESTION,0)}get ruleIndex(){return rs.RULE_opt_bind_parameter}accept(e){return e.visitOpt_bind_parameter?e.visitOpt_bind_parameter(this):e.visitChildren(this)}},Tn=class extends W{static{Si(this,"Bind_parameter_listContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_bind_parameter_list}accept(e){return e.visitBind_parameter_list?e.visitBind_parameter_list(this):e.visitChildren(this)}},xn=class extends W{static{Si(this,"Named_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_named_bind_parameter}accept(e){return e.visitNamed_bind_parameter?e.visitNamed_bind_parameter(this):e.visitChildren(this)}},kn=class extends W{static{Si(this,"Named_bind_parameter_listContext")}constructor(e,t){super(e,t)}named_bind_parameter(e){return void 0===e?this.getRuleContexts(xn):this.getRuleContext(e,xn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_bind_parameter_list}accept(e){return e.visitNamed_bind_parameter_list?e.visitNamed_bind_parameter_list(this):e.visitChildren(this)}},An=class extends W{static{Si(this,"Signed_numberContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}get ruleIndex(){return rs.RULE_signed_number}accept(e){return e.visitSigned_number?e.visitSigned_number(this):e.visitChildren(this)}},Nn=class extends W{static{Si(this,"Type_name_simpleContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_type_name_simple}accept(e){return e.visitType_name_simple?e.visitType_name_simple(this):e.visitChildren(this)}},In=class extends W{static{Si(this,"Integer_or_bindContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_integer_or_bind}accept(e){return e.visitInteger_or_bind?e.visitInteger_or_bind(this):e.visitChildren(this)}},On=class extends W{static{Si(this,"Type_name_tagContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_tag}accept(e){return e.visitType_name_tag?e.visitType_name_tag(this):e.visitChildren(this)}},Dn=class extends W{static{Si(this,"Struct_argContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}get ruleIndex(){return rs.RULE_struct_arg}accept(e){return e.visitStruct_arg?e.visitStruct_arg(this):e.visitChildren(this)}},Mn=class extends W{static{Si(this,"Struct_arg_positionalContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}type_name_or_bind(){return this.getRuleContext(0,tr)}NULL(){return this.getToken(rs.NULL,0)}NOT(){return this.getToken(rs.NOT,0)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_struct_arg_positional}accept(e){return e.visitStruct_arg_positional?e.visitStruct_arg_positional(this):e.visitChildren(this)}},Pn=class extends W{static{Si(this,"Variant_argContext")}constructor(e,t){super(e,t)}type_name_or_bind(){return this.getRuleContext(0,tr)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_variant_arg}accept(e){return e.visitVariant_arg?e.visitVariant_arg(this):e.visitChildren(this)}},Fn=class extends W{static{Si(this,"Callable_argContext")}constructor(e,t){super(e,t)}variant_arg(){return this.getRuleContext(0,Pn)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(rs.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_callable_arg}accept(e){return e.visitCallable_arg?e.visitCallable_arg(this):e.visitChildren(this)}},Un=class extends W{static{Si(this,"Callable_arg_listContext")}constructor(e,t){super(e,t)}callable_arg(e){return void 0===e?this.getRuleContexts(Fn):this.getRuleContext(e,Fn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_callable_arg_list}accept(e){return e.visitCallable_arg_list?e.visitCallable_arg_list(this):e.visitChildren(this)}},Hn=class extends W{static{Si(this,"Type_name_decimalContext")}constructor(e,t){super(e,t)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}integer_or_bind(e){return void 0===e?this.getRuleContexts(In):this.getRuleContext(e,In)}COMMA(){return this.getToken(rs.COMMA,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_type_name_decimal}accept(e){return e.visitType_name_decimal?e.visitType_name_decimal(this):e.visitChildren(this)}},Bn=class extends W{static{Si(this,"Type_name_optionalContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_optional}accept(e){return e.visitType_name_optional?e.visitType_name_optional(this):e.visitChildren(this)}},Wn=class extends W{static{Si(this,"Type_name_tupleContext")}constructor(e,t){super(e,t)}TUPLE(){return this.getToken(rs.TUPLE,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_tuple}accept(e){return e.visitType_name_tuple?e.visitType_name_tuple(this):e.visitChildren(this)}},Vn=class extends W{static{Si(this,"Type_name_structContext")}constructor(e,t){super(e,t)}STRUCT(){return this.getToken(rs.STRUCT,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}struct_arg(e){return void 0===e?this.getRuleContexts(Dn):this.getRuleContext(e,Dn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_struct}accept(e){return e.visitType_name_struct?e.visitType_name_struct(this):e.visitChildren(this)}},zn=class extends W{static{Si(this,"Type_name_variantContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LESS(){return this.getToken(rs.LESS,0)}variant_arg(e){return void 0===e?this.getRuleContexts(Pn):this.getRuleContext(e,Pn)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_variant}accept(e){return e.visitType_name_variant?e.visitType_name_variant(this):e.visitChildren(this)}},Gn=class extends W{static{Si(this,"Type_name_listContext")}constructor(e,t){super(e,t)}LIST(){return this.getToken(rs.LIST,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_list}accept(e){return e.visitType_name_list?e.visitType_name_list(this):e.visitChildren(this)}},jn=class extends W{static{Si(this,"Type_name_streamContext")}constructor(e,t){super(e,t)}STREAM(){return this.getToken(rs.STREAM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_stream}accept(e){return e.visitType_name_stream?e.visitType_name_stream(this):e.visitChildren(this)}},Kn=class extends W{static{Si(this,"Type_name_flowContext")}constructor(e,t){super(e,t)}FLOW(){return this.getToken(rs.FLOW,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_flow}accept(e){return e.visitType_name_flow?e.visitType_name_flow(this):e.visitChildren(this)}},Yn=class extends W{static{Si(this,"Type_name_dictContext")}constructor(e,t){super(e,t)}DICT(){return this.getToken(rs.DICT,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(){return this.getToken(rs.COMMA,0)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_dict}accept(e){return e.visitType_name_dict?e.visitType_name_dict(this):e.visitChildren(this)}},qn=class extends W{static{Si(this,"Type_name_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_set}accept(e){return e.visitType_name_set?e.visitType_name_set(this):e.visitChildren(this)}},$n=class extends W{static{Si(this,"Type_name_enumContext")}constructor(e,t){super(e,t)}ENUM(){return this.getToken(rs.ENUM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_enum}accept(e){return e.visitType_name_enum?e.visitType_name_enum(this):e.visitChildren(this)}},Qn=class extends W{static{Si(this,"Type_name_resourceContext")}constructor(e,t){super(e,t)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_resource}accept(e){return e.visitType_name_resource?e.visitType_name_resource(this):e.visitChildren(this)}},Xn=class extends W{static{Si(this,"Type_name_taggedContext")}constructor(e,t){super(e,t)}TAGGED(){return this.getToken(rs.TAGGED,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}COMMA(){return this.getToken(rs.COMMA,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_tagged}accept(e){return e.visitType_name_tagged?e.visitType_name_tagged(this):e.visitChildren(this)}},Zn=class extends W{static{Si(this,"Type_name_callableContext")}constructor(e,t){super(e,t)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}LESS(){return this.getToken(rs.LESS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}ARROW(){return this.getToken(rs.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}callable_arg_list(e){return void 0===e?this.getRuleContexts(Un):this.getRuleContext(e,Un)}COMMA(){return this.getToken(rs.COMMA,0)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_type_name_callable}accept(e){return e.visitType_name_callable?e.visitType_name_callable(this):e.visitChildren(this)}},Jn=class extends W{static{Si(this,"Type_name_compositeContext")}constructor(e,t){super(e,t)}type_name_optional(){return this.getRuleContext(0,Bn)}type_name_tuple(){return this.getRuleContext(0,Wn)}type_name_struct(){return this.getRuleContext(0,Vn)}type_name_variant(){return this.getRuleContext(0,zn)}type_name_list(){return this.getRuleContext(0,Gn)}type_name_stream(){return this.getRuleContext(0,jn)}type_name_flow(){return this.getRuleContext(0,Kn)}type_name_dict(){return this.getRuleContext(0,Yn)}type_name_set(){return this.getRuleContext(0,qn)}type_name_enum(){return this.getRuleContext(0,$n)}type_name_resource(){return this.getRuleContext(0,Qn)}type_name_tagged(){return this.getRuleContext(0,Xn)}type_name_callable(){return this.getRuleContext(0,Zn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name_composite}accept(e){return e.visitType_name_composite?e.visitType_name_composite(this):e.visitChildren(this)}},er=class extends W{static{Si(this,"Type_nameContext")}constructor(e,t){super(e,t)}type_name_composite(){return this.getRuleContext(0,Jn)}type_name_decimal(){return this.getRuleContext(0,Hn)}type_name_simple(){return this.getRuleContext(0,Nn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name}accept(e){return e.visitType_name?e.visitType_name(this):e.visitChildren(this)}},tr=class extends W{static{Si(this,"Type_name_or_bindContext")}constructor(e,t){super(e,t)}type_name(){return this.getRuleContext(0,er)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_or_bind}accept(e){return e.visitType_name_or_bind?e.visitType_name_or_bind(this):e.visitChildren(this)}},ir=class extends W{static{Si(this,"Value_constructor_literalContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_value_constructor_literal}accept(e){return e.visitValue_constructor_literal?e.visitValue_constructor_literal(this):e.visitChildren(this)}},sr=class extends W{static{Si(this,"Value_constructorContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}ENUM(){return this.getToken(rs.ENUM,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_value_constructor}accept(e){return e.visitValue_constructor?e.visitValue_constructor(this):e.visitChildren(this)}},nr=class extends W{static{Si(this,"Declare_stmtContext")}constructor(e,t){super(e,t)}DECLARE(){return this.getToken(rs.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}AS(){return this.getToken(rs.AS,0)}type_name(){return this.getRuleContext(0,er)}EQUALS(){return this.getToken(rs.EQUALS,0)}literal_value(){return this.getRuleContext(0,wn)}get ruleIndex(){return rs.RULE_declare_stmt}accept(e){return e.visitDeclare_stmt?e.visitDeclare_stmt(this):e.visitChildren(this)}},rr=class extends W{static{Si(this,"Module_pathContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}get ruleIndex(){return rs.RULE_module_path}accept(e){return e.visitModule_path?e.visitModule_path(this):e.visitChildren(this)}},or=class extends W{static{Si(this,"Import_stmtContext")}constructor(e,t){super(e,t)}IMPORT(){return this.getToken(rs.IMPORT,0)}module_path(){return this.getRuleContext(0,rr)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,kn)}get ruleIndex(){return rs.RULE_import_stmt}accept(e){return e.visitImport_stmt?e.visitImport_stmt(this):e.visitChildren(this)}},ar=class extends W{static{Si(this,"Export_stmtContext")}constructor(e,t){super(e,t)}EXPORT(){return this.getToken(rs.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Tn)}get ruleIndex(){return rs.RULE_export_stmt}accept(e){return e.visitExport_stmt?e.visitExport_stmt(this):e.visitChildren(this)}},cr=class extends W{static{Si(this,"Call_actionContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_call_action}accept(e){return e.visitCall_action?e.visitCall_action(this):e.visitChildren(this)}},lr=class extends W{static{Si(this,"Inline_actionContext")}constructor(e,t){super(e,t)}BEGIN(){return this.getToken(rs.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}DO(){return this.getToken(rs.DO,0)}get ruleIndex(){return rs.RULE_inline_action}accept(e){return e.visitInline_action?e.visitInline_action(this):e.visitChildren(this)}},hr=class extends W{static{Si(this,"Do_stmtContext")}constructor(e,t){super(e,t)}DO(){return this.getToken(rs.DO,0)}call_action(){return this.getRuleContext(0,cr)}inline_action(){return this.getRuleContext(0,lr)}get ruleIndex(){return rs.RULE_do_stmt}accept(e){return e.visitDo_stmt?e.visitDo_stmt(this):e.visitChildren(this)}},dr=class extends W{static{Si(this,"Pragma_stmtContext")}constructor(e,t){super(e,t)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,sd)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}pragma_value(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pragma_stmt}accept(e){return e.visitPragma_stmt?e.visitPragma_stmt(this):e.visitChildren(this)}},ur=class extends W{static{Si(this,"Pragma_valueContext")}constructor(e,t){super(e,t)}signed_number(){return this.getRuleContext(0,An)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_pragma_value}accept(e){return e.visitPragma_value?e.visitPragma_value(this):e.visitChildren(this)}},gr=class extends W{static{Si(this,"Sort_specificationContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_sort_specification}accept(e){return e.visitSort_specification?e.visitSort_specification(this):e.visitChildren(this)}},pr=class extends W{static{Si(this,"Sort_specification_listContext")}constructor(e,t){super(e,t)}sort_specification(e){return void 0===e?this.getRuleContexts(gr):this.getRuleContext(e,gr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_sort_specification_list}accept(e){return e.visitSort_specification_list?e.visitSort_specification_list(this):e.visitChildren(this)}},mr=class extends W{static{Si(this,"Select_stmtContext")}constructor(e,t){super(e,t)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}get ruleIndex(){return rs.RULE_select_stmt}accept(e){return e.visitSelect_stmt?e.visitSelect_stmt(this):e.visitChildren(this)}},fr=class extends W{static{Si(this,"Select_unparenthesized_stmtContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}get ruleIndex(){return rs.RULE_select_unparenthesized_stmt}accept(e){return e.visitSelect_unparenthesized_stmt?e.visitSelect_unparenthesized_stmt(this):e.visitChildren(this)}},_r=class extends W{static{Si(this,"Select_kind_parenthesisContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_select_kind_parenthesis}accept(e){return e.visitSelect_kind_parenthesis?e.visitSelect_kind_parenthesis(this):e.visitChildren(this)}},vr=class extends W{static{Si(this,"Select_opContext")}constructor(e,t){super(e,t)}UNION(){return this.getToken(rs.UNION,0)}ALL(){return this.getToken(rs.ALL,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}get ruleIndex(){return rs.RULE_select_op}accept(e){return e.visitSelect_op?e.visitSelect_op(this):e.visitChildren(this)}},Cr=class extends W{static{Si(this,"Select_kind_partialContext")}constructor(e,t){super(e,t)}select_kind(){return this.getRuleContext(0,Er)}LIMIT(){return this.getToken(rs.LIMIT,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}OFFSET(){return this.getToken(rs.OFFSET,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_select_kind_partial}accept(e){return e.visitSelect_kind_partial?e.visitSelect_kind_partial(this):e.visitChildren(this)}},Er=class extends W{static{Si(this,"Select_kindContext")}constructor(e,t){super(e,t)}process_core(){return this.getRuleContext(0,br)}reduce_core(){return this.getRuleContext(0,wr)}select_core(){return this.getRuleContext(0,Lr)}DISCARD(){return this.getToken(rs.DISCARD,0)}INTO(){return this.getToken(rs.INTO,0)}RESULT(){return this.getToken(rs.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,dn)}get ruleIndex(){return rs.RULE_select_kind}accept(e){return e.visitSelect_kind?e.visitSelect_kind(this):e.visitChildren(this)}},br=class extends W{static{Si(this,"Process_coreContext")}constructor(e,t){super(e,t)}PROCESS(){return this.getToken(rs.PROCESS,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}external_call_settings(){return this.getRuleContext(0,yr)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_process_core}accept(e){return e.visitProcess_core?e.visitProcess_core(this):e.visitChildren(this)}},Sr=class extends W{static{Si(this,"External_call_paramContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_external_call_param}accept(e){return e.visitExternal_call_param?e.visitExternal_call_param(this):e.visitChildren(this)}},yr=class extends W{static{Si(this,"External_call_settingsContext")}constructor(e,t){super(e,t)}external_call_param(e){return void 0===e?this.getRuleContexts(Sr):this.getRuleContext(e,Sr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_external_call_settings}accept(e){return e.visitExternal_call_settings?e.visitExternal_call_settings(this):e.visitChildren(this)}},wr=class extends W{static{Si(this,"Reduce_coreContext")}constructor(e,t){super(e,t)}REDUCE(){return this.getToken(rs.REDUCE,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}ON(){return this.getToken(rs.ON,0)}column_list(){return this.getRuleContext(0,mn)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PRESORT(){return this.getToken(rs.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,pr)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_reduce_core}accept(e){return e.visitReduce_core?e.visitReduce_core(this):e.visitChildren(this)}},Rr=class extends W{static{Si(this,"Opt_set_quantifierContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}get ruleIndex(){return rs.RULE_opt_set_quantifier}accept(e){return e.visitOpt_set_quantifier?e.visitOpt_set_quantifier(this):e.visitChildren(this)}},Lr=class extends W{static{Si(this,"Select_coreContext")}constructor(e,t){super(e,t)}SELECT(){return this.getToken(rs.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}result_column(e){return void 0===e?this.getRuleContexts(po):this.getRuleContext(e,po)}FROM(e){return void 0===e?this.getTokens(rs.FROM):this.getToken(rs.FROM,e)}join_source(e){return void 0===e?this.getRuleContexts(mo):this.getRuleContext(e,mo)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,fn)}where_expr(){return this.getRuleContext(0,Ld)}group_by_clause(){return this.getRuleContext(0,no)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}window_clause(){return this.getRuleContext(0,ah)}ext_order_by_clause(){return this.getRuleContext(0,so)}get ruleIndex(){return rs.RULE_select_core}accept(e){return e.visitSelect_core?e.visitSelect_core(this):e.visitChildren(this)}},Tr=class extends W{static{Si(this,"Row_pattern_recognition_clauseContext")}constructor(e,t){super(e,t)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Or)}RPAREN(){return this.getToken(rs.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,ph)}order_by_clause(){return this.getRuleContext(0,io)}row_pattern_measures(){return this.getRuleContext(0,Ar)}row_pattern_rows_per_match(){return this.getRuleContext(0,xr)}get ruleIndex(){return rs.RULE_row_pattern_recognition_clause}accept(e){return e.visitRow_pattern_recognition_clause?e.visitRow_pattern_recognition_clause(this):e.visitChildren(this)}},xr=class extends W{static{Si(this,"Row_pattern_rows_per_matchContext")}constructor(e,t){super(e,t)}ONE(){return this.getToken(rs.ONE,0)}ROW(){return this.getToken(rs.ROW,0)}PER(){return this.getToken(rs.PER,0)}MATCH(){return this.getToken(rs.MATCH,0)}ALL(){return this.getToken(rs.ALL,0)}ROWS(){return this.getToken(rs.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,kr)}get ruleIndex(){return rs.RULE_row_pattern_rows_per_match}accept(e){return e.visitRow_pattern_rows_per_match?e.visitRow_pattern_rows_per_match(this):e.visitChildren(this)}},kr=class extends W{static{Si(this,"Row_pattern_empty_match_handlingContext")}constructor(e,t){super(e,t)}SHOW(){return this.getToken(rs.SHOW,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}OMIT(){return this.getToken(rs.OMIT,0)}WITH(){return this.getToken(rs.WITH,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_row_pattern_empty_match_handling}accept(e){return e.visitRow_pattern_empty_match_handling?e.visitRow_pattern_empty_match_handling(this):e.visitChildren(this)}},Ar=class extends W{static{Si(this,"Row_pattern_measuresContext")}constructor(e,t){super(e,t)}MEASURES(){return this.getToken(rs.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,Nr)}get ruleIndex(){return rs.RULE_row_pattern_measures}accept(e){return e.visitRow_pattern_measures?e.visitRow_pattern_measures(this):e.visitChildren(this)}},Nr=class extends W{static{Si(this,"Row_pattern_measure_listContext")}constructor(e,t){super(e,t)}row_pattern_measure_definition(e){return void 0===e?this.getRuleContexts(Ir):this.getRuleContext(e,Ir)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_measure_list}accept(e){return e.visitRow_pattern_measure_list?e.visitRow_pattern_measure_list(this):e.visitChildren(this)}},Ir=class extends W{static{Si(this,"Row_pattern_measure_definitionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_row_pattern_measure_definition}accept(e){return e.visitRow_pattern_measure_definition?e.visitRow_pattern_measure_definition(this):e.visitChildren(this)}},Or=class extends W{static{Si(this,"Row_pattern_common_syntaxContext")}constructor(e,t){super(e,t)}PATTERN(){return this.getToken(rs.PATTERN,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Qr)}AFTER(){return this.getToken(rs.AFTER,0)}MATCH(){return this.getToken(rs.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Dr)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Pr)}row_pattern_subset_clause(){return this.getRuleContext(0,Gr)}get ruleIndex(){return rs.RULE_row_pattern_common_syntax}accept(e){return e.visitRow_pattern_common_syntax?e.visitRow_pattern_common_syntax(this):e.visitChildren(this)}},Dr=class extends W{static{Si(this,"Row_pattern_skip_toContext")}constructor(e,t){super(e,t)}TSKIP(){return this.getToken(rs.TSKIP,0)}TO(){return this.getToken(rs.TO,0)}NEXT(){return this.getToken(rs.NEXT,0)}ROW(){return this.getToken(rs.ROW,0)}PAST(){return this.getToken(rs.PAST,0)}LAST(){return this.getToken(rs.LAST,0)}FIRST(){return this.getToken(rs.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Mr)}get ruleIndex(){return rs.RULE_row_pattern_skip_to}accept(e){return e.visitRow_pattern_skip_to?e.visitRow_pattern_skip_to(this):e.visitChildren(this)}},Mr=class extends W{static{Si(this,"Row_pattern_skip_to_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_skip_to_variable_name}accept(e){return e.visitRow_pattern_skip_to_variable_name?e.visitRow_pattern_skip_to_variable_name(this):e.visitChildren(this)}},Pr=class extends W{static{Si(this,"Row_pattern_initial_or_seekContext")}constructor(e,t){super(e,t)}INITIAL(){return this.getToken(rs.INITIAL,0)}SEEK(){return this.getToken(rs.SEEK,0)}get ruleIndex(){return rs.RULE_row_pattern_initial_or_seek}accept(e){return e.visitRow_pattern_initial_or_seek?e.visitRow_pattern_initial_or_seek(this):e.visitChildren(this)}},Fr=class extends W{static{Si(this,"Row_patternContext")}constructor(e,t){super(e,t)}row_pattern_term(e){return void 0===e?this.getRuleContexts(Ur):this.getRuleContext(e,Ur)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}get ruleIndex(){return rs.RULE_row_pattern}accept(e){return e.visitRow_pattern?e.visitRow_pattern(this):e.visitChildren(this)}},Ur=class extends W{static{Si(this,"Row_pattern_termContext")}constructor(e,t){super(e,t)}row_pattern_factor(e){return void 0===e?this.getRuleContexts(Hr):this.getRuleContext(e,Hr)}get ruleIndex(){return rs.RULE_row_pattern_term}accept(e){return e.visitRow_pattern_term?e.visitRow_pattern_term(this):e.visitChildren(this)}},Hr=class extends W{static{Si(this,"Row_pattern_factorContext")}constructor(e,t){super(e,t)}row_pattern_primary(){return this.getRuleContext(0,Wr)}row_pattern_quantifier(){return this.getRuleContext(0,Br)}get ruleIndex(){return rs.RULE_row_pattern_factor}accept(e){return e.visitRow_pattern_factor?e.visitRow_pattern_factor(this):e.visitChildren(this)}},Br=class extends W{static{Si(this,"Row_pattern_quantifierContext")}constructor(e,t){super(e,t)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}PLUS(){return this.getToken(rs.PLUS,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}COMMA(){return this.getToken(rs.COMMA,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}integer(e){return void 0===e?this.getRuleContexts(Ed):this.getRuleContext(e,Ed)}get ruleIndex(){return rs.RULE_row_pattern_quantifier}accept(e){return e.visitRow_pattern_quantifier?e.visitRow_pattern_quantifier(this):e.visitChildren(this)}},Wr=class extends W{static{Si(this,"Row_pattern_primaryContext")}constructor(e,t){super(e,t)}row_pattern_primary_variable_name(){return this.getRuleContext(0,Vr)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}CARET(){return this.getToken(rs.CARET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,zr)}get ruleIndex(){return rs.RULE_row_pattern_primary}accept(e){return e.visitRow_pattern_primary?e.visitRow_pattern_primary(this):e.visitChildren(this)}},Vr=class extends W{static{Si(this,"Row_pattern_primary_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_primary_variable_name}accept(e){return e.visitRow_pattern_primary_variable_name?e.visitRow_pattern_primary_variable_name(this):e.visitChildren(this)}},zr=class extends W{static{Si(this,"Row_pattern_permuteContext")}constructor(e,t){super(e,t)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(e){return void 0===e?this.getRuleContexts(Fr):this.getRuleContext(e,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_permute}accept(e){return e.visitRow_pattern_permute?e.visitRow_pattern_permute(this):e.visitChildren(this)}},Gr=class extends W{static{Si(this,"Row_pattern_subset_clauseContext")}constructor(e,t){super(e,t)}SUBSET(){return this.getToken(rs.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,jr)}get ruleIndex(){return rs.RULE_row_pattern_subset_clause}accept(e){return e.visitRow_pattern_subset_clause?e.visitRow_pattern_subset_clause(this):e.visitChildren(this)}},jr=class extends W{static{Si(this,"Row_pattern_subset_listContext")}constructor(e,t){super(e,t)}row_pattern_subset_item(e){return void 0===e?this.getRuleContexts(Kr):this.getRuleContext(e,Kr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_list}accept(e){return e.visitRow_pattern_subset_list?e.visitRow_pattern_subset_list(this):e.visitChildren(this)}},Kr=class extends W{static{Si(this,"Row_pattern_subset_itemContext")}constructor(e,t){super(e,t)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Yr)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_row_pattern_subset_item}accept(e){return e.visitRow_pattern_subset_item?e.visitRow_pattern_subset_item(this):e.visitChildren(this)}},Yr=class extends W{static{Si(this,"Row_pattern_subset_item_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_item_variable_name}accept(e){return e.visitRow_pattern_subset_item_variable_name?e.visitRow_pattern_subset_item_variable_name(this):e.visitChildren(this)}},qr=class extends W{static{Si(this,"Row_pattern_subset_rhsContext")}constructor(e,t){super(e,t)}row_pattern_subset_rhs_variable_name(e){return void 0===e?this.getRuleContexts($r):this.getRuleContext(e,$r)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs}accept(e){return e.visitRow_pattern_subset_rhs?e.visitRow_pattern_subset_rhs(this):e.visitChildren(this)}},$r=class extends W{static{Si(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs_variable_name}accept(e){return e.visitRow_pattern_subset_rhs_variable_name?e.visitRow_pattern_subset_rhs_variable_name(this):e.visitChildren(this)}},Qr=class extends W{static{Si(this,"Row_pattern_definition_listContext")}constructor(e,t){super(e,t)}row_pattern_definition(e){return void 0===e?this.getRuleContexts(Xr):this.getRuleContext(e,Xr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_definition_list}accept(e){return e.visitRow_pattern_definition_list?e.visitRow_pattern_definition_list(this):e.visitChildren(this)}},Xr=class extends W{static{Si(this,"Row_pattern_definitionContext")}constructor(e,t){super(e,t)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Zr)}AS(){return this.getToken(rs.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,Jr)}get ruleIndex(){return rs.RULE_row_pattern_definition}accept(e){return e.visitRow_pattern_definition?e.visitRow_pattern_definition(this):e.visitChildren(this)}},Zr=class extends W{static{Si(this,"Row_pattern_definition_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_definition_variable_name}accept(e){return e.visitRow_pattern_definition_variable_name?e.visitRow_pattern_definition_variable_name(this):e.visitChildren(this)}},Jr=class extends W{static{Si(this,"Row_pattern_definition_search_conditionContext")}constructor(e,t){super(e,t)}search_condition(){return this.getRuleContext(0,eo)}get ruleIndex(){return rs.RULE_row_pattern_definition_search_condition}accept(e){return e.visitRow_pattern_definition_search_condition?e.visitRow_pattern_definition_search_condition(this):e.visitChildren(this)}},eo=class extends W{static{Si(this,"Search_conditionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_search_condition}accept(e){return e.visitSearch_condition?e.visitSearch_condition(this):e.visitChildren(this)}},to=class extends W{static{Si(this,"Row_pattern_variable_nameContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}get ruleIndex(){return rs.RULE_row_pattern_variable_name}accept(e){return e.visitRow_pattern_variable_name?e.visitRow_pattern_variable_name(this):e.visitChildren(this)}},io=class extends W{static{Si(this,"Order_by_clauseContext")}constructor(e,t){super(e,t)}ORDER(){return this.getToken(rs.ORDER,0)}BY(){return this.getToken(rs.BY,0)}sort_specification_list(){return this.getRuleContext(0,pr)}get ruleIndex(){return rs.RULE_order_by_clause}accept(e){return e.visitOrder_by_clause?e.visitOrder_by_clause(this):e.visitChildren(this)}},so=class extends W{static{Si(this,"Ext_order_by_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}ASSUME(){return this.getToken(rs.ASSUME,0)}get ruleIndex(){return rs.RULE_ext_order_by_clause}accept(e){return e.visitExt_order_by_clause?e.visitExt_order_by_clause(this):e.visitChildren(this)}},no=class extends W{static{Si(this,"Group_by_clauseContext")}constructor(e,t){super(e,t)}GROUP(){return this.getToken(rs.GROUP,0)}BY(){return this.getToken(rs.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}grouping_element_list(){return this.getRuleContext(0,ro)}COMPACT(){return this.getToken(rs.COMPACT,0)}WITH(){return this.getToken(rs.WITH,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_group_by_clause}accept(e){return e.visitGroup_by_clause?e.visitGroup_by_clause(this):e.visitChildren(this)}},ro=class extends W{static{Si(this,"Grouping_element_listContext")}constructor(e,t){super(e,t)}grouping_element(e){return void 0===e?this.getRuleContexts(oo):this.getRuleContext(e,oo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_grouping_element_list}accept(e){return e.visitGrouping_element_list?e.visitGrouping_element_list(this):e.visitChildren(this)}},oo=class extends W{static{Si(this,"Grouping_elementContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(){return this.getRuleContext(0,ao)}rollup_list(){return this.getRuleContext(0,lo)}cube_list(){return this.getRuleContext(0,ho)}grouping_sets_specification(){return this.getRuleContext(0,uo)}hopping_window_specification(){return this.getRuleContext(0,go)}get ruleIndex(){return rs.RULE_grouping_element}accept(e){return e.visitGrouping_element?e.visitGrouping_element(this):e.visitChildren(this)}},ao=class extends W{static{Si(this,"Ordinary_grouping_setContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}get ruleIndex(){return rs.RULE_ordinary_grouping_set}accept(e){return e.visitOrdinary_grouping_set?e.visitOrdinary_grouping_set(this):e.visitChildren(this)}},co=class extends W{static{Si(this,"Ordinary_grouping_set_listContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(e){return void 0===e?this.getRuleContexts(ao):this.getRuleContext(e,ao)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ordinary_grouping_set_list}accept(e){return e.visitOrdinary_grouping_set_list?e.visitOrdinary_grouping_set_list(this):e.visitChildren(this)}},lo=class extends W{static{Si(this,"Rollup_listContext")}constructor(e,t){super(e,t)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_rollup_list}accept(e){return e.visitRollup_list?e.visitRollup_list(this):e.visitChildren(this)}},ho=class extends W{static{Si(this,"Cube_listContext")}constructor(e,t){super(e,t)}CUBE(){return this.getToken(rs.CUBE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cube_list}accept(e){return e.visitCube_list?e.visitCube_list(this):e.visitChildren(this)}},uo=class extends W{static{Si(this,"Grouping_sets_specificationContext")}constructor(e,t){super(e,t)}GROUPING(){return this.getToken(rs.GROUPING,0)}SETS(){return this.getToken(rs.SETS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,ro)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_grouping_sets_specification}accept(e){return e.visitGrouping_sets_specification?e.visitGrouping_sets_specification(this):e.visitChildren(this)}},go=class extends W{static{Si(this,"Hopping_window_specificationContext")}constructor(e,t){super(e,t)}HOP(){return this.getToken(rs.HOP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_hopping_window_specification}accept(e){return e.visitHopping_window_specification?e.visitHopping_window_specification(this):e.visitChildren(this)}},po=class extends W{static{Si(this,"Result_columnContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}get ruleIndex(){return rs.RULE_result_column}accept(e){return e.visitResult_column?e.visitResult_column(this):e.visitChildren(this)}},mo=class extends W{static{Si(this,"Join_sourceContext")}constructor(e,t){super(e,t)}flatten_source(e){return void 0===e?this.getRuleContexts(vo):this.getRuleContext(e,vo)}ANY(e){return void 0===e?this.getTokens(rs.ANY):this.getToken(rs.ANY,e)}join_op(e){return void 0===e?this.getRuleContexts(Ro):this.getRuleContext(e,Ro)}join_constraint(e){return void 0===e?this.getRuleContexts(Lo):this.getRuleContext(e,Lo)}get ruleIndex(){return rs.RULE_join_source}accept(e){return e.visitJoin_source?e.visitJoin_source(this):e.visitChildren(this)}},fo=class extends W{static{Si(this,"Named_columnContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_named_column}accept(e){return e.visitNamed_column?e.visitNamed_column(this):e.visitChildren(this)}},_o=class extends W{static{Si(this,"Flatten_by_argContext")}constructor(e,t){super(e,t)}named_column(){return this.getRuleContext(0,fo)}LPAREN(){return this.getToken(rs.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_flatten_by_arg}accept(e){return e.visitFlatten_by_arg?e.visitFlatten_by_arg(this):e.visitChildren(this)}},vo=class extends W{static{Si(this,"Flatten_sourceContext")}constructor(e,t){super(e,t)}named_single_source(){return this.getRuleContext(0,Co)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}BY(){return this.getToken(rs.BY,0)}flatten_by_arg(){return this.getRuleContext(0,_o)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LIST(){return this.getToken(rs.LIST,0)}DICT(){return this.getToken(rs.DICT,0)}get ruleIndex(){return rs.RULE_flatten_source}accept(e){return e.visitFlatten_source?e.visitFlatten_source(this):e.visitChildren(this)}},Co=class extends W{static{Si(this,"Named_single_sourceContext")}constructor(e,t){super(e,t)}single_source(){return this.getRuleContext(0,Eo)}row_pattern_recognition_clause(){return this.getRuleContext(0,Tr)}sample_clause(){return this.getRuleContext(0,bo)}tablesample_clause(){return this.getRuleContext(0,So)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_named_single_source}accept(e){return e.visitNamed_single_source?e.visitNamed_single_source(this):e.visitChildren(this)}},Eo=class extends W{static{Si(this,"Single_sourceContext")}constructor(e,t){super(e,t)}table_ref(){return this.getRuleContext(0,ml)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_single_source}accept(e){return e.visitSingle_source?e.visitSingle_source(this):e.visitChildren(this)}},bo=class extends W{static{Si(this,"Sample_clauseContext")}constructor(e,t){super(e,t)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_sample_clause}accept(e){return e.visitSample_clause?e.visitSample_clause(this):e.visitChildren(this)}},So=class extends W{static{Si(this,"Tablesample_clauseContext")}constructor(e,t){super(e,t)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,yo)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,wo)}get ruleIndex(){return rs.RULE_tablesample_clause}accept(e){return e.visitTablesample_clause?e.visitTablesample_clause(this):e.visitChildren(this)}},yo=class extends W{static{Si(this,"Sampling_modeContext")}constructor(e,t){super(e,t)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}get ruleIndex(){return rs.RULE_sampling_mode}accept(e){return e.visitSampling_mode?e.visitSampling_mode(this):e.visitChildren(this)}},wo=class extends W{static{Si(this,"Repeatable_clauseContext")}constructor(e,t){super(e,t)}REPEATABLE(){return this.getToken(rs.REPEATABLE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_repeatable_clause}accept(e){return e.visitRepeatable_clause?e.visitRepeatable_clause(this):e.visitChildren(this)}},Ro=class extends W{static{Si(this,"Join_opContext")}constructor(e,t){super(e,t)}COMMA(){return this.getToken(rs.COMMA,0)}JOIN(){return this.getToken(rs.JOIN,0)}INNER(){return this.getToken(rs.INNER,0)}CROSS(){return this.getToken(rs.CROSS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}LEFT(){return this.getToken(rs.LEFT,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}FULL(){return this.getToken(rs.FULL,0)}OUTER(){return this.getToken(rs.OUTER,0)}ONLY(){return this.getToken(rs.ONLY,0)}SEMI(){return this.getToken(rs.SEMI,0)}get ruleIndex(){return rs.RULE_join_op}accept(e){return e.visitJoin_op?e.visitJoin_op(this):e.visitChildren(this)}},Lo=class extends W{static{Si(this,"Join_constraintContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}expr(){return this.getRuleContext(0,gs)}USING(){return this.getToken(rs.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,un)}get ruleIndex(){return rs.RULE_join_constraint}accept(e){return e.visitJoin_constraint?e.visitJoin_constraint(this):e.visitChildren(this)}},To=class extends W{static{Si(this,"Returning_columns_listContext")}constructor(e,t){super(e,t)}RETURNING(){return this.getToken(rs.RETURNING,0)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_returning_columns_list}accept(e){return e.visitReturning_columns_list?e.visitReturning_columns_list(this):e.visitChildren(this)}},xo=class extends W{static{Si(this,"Into_table_stmtContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_into_table_stmt}accept(e){return e.visitInto_table_stmt?e.visitInto_table_stmt(this):e.visitChildren(this)}},ko=class extends W{static{Si(this,"Into_table_stmt_yqContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}get ruleIndex(){return rs.RULE_into_table_stmt_yq}accept(e){return e.visitInto_table_stmt_yq?e.visitInto_table_stmt_yq(this):e.visitChildren(this)}},Ao=class extends W{static{Si(this,"Into_values_sourceContext")}constructor(e,t){super(e,t)}values_source(){return this.getRuleContext(0,Io)}pure_column_list(){return this.getRuleContext(0,hn)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}VALUES(){return this.getToken(rs.VALUES,0)}get ruleIndex(){return rs.RULE_into_values_source}accept(e){return e.visitInto_values_source?e.visitInto_values_source(this):e.visitChildren(this)}},No=class extends W{static{Si(this,"Values_stmtContext")}constructor(e,t){super(e,t)}VALUES(){return this.getToken(rs.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,Oo)}get ruleIndex(){return rs.RULE_values_stmt}accept(e){return e.visitValues_stmt?e.visitValues_stmt(this):e.visitChildren(this)}},Io=class extends W{static{Si(this,"Values_sourceContext")}constructor(e,t){super(e,t)}values_stmt(){return this.getRuleContext(0,No)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_values_source}accept(e){return e.visitValues_source?e.visitValues_source(this):e.visitChildren(this)}},Oo=class extends W{static{Si(this,"Values_source_row_listContext")}constructor(e,t){super(e,t)}values_source_row(e){return void 0===e?this.getRuleContexts(Do):this.getRuleContext(e,Do)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_values_source_row_list}accept(e){return e.visitValues_source_row_list?e.visitValues_source_row_list(this):e.visitChildren(this)}},Do=class extends W{static{Si(this,"Values_source_rowContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr_list(){return this.getRuleContext(0,ln)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_values_source_row}accept(e){return e.visitValues_source_row?e.visitValues_source_row(this):e.visitChildren(this)}},Mo=class extends W{static{Si(this,"Simple_values_sourceContext")}constructor(e,t){super(e,t)}expr_list(){return this.getRuleContext(0,ln)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_simple_values_source}accept(e){return e.visitSimple_values_source?e.visitSimple_values_source(this):e.visitChildren(this)}},Po=class extends W{static{Si(this,"Create_external_data_source_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_create_external_data_source_stmt}accept(e){return e.visitCreate_external_data_source_stmt?e.visitCreate_external_data_source_stmt(this):e.visitChildren(this)}},Fo=class extends W{static{Si(this,"Alter_external_data_source_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}alter_external_data_source_action(e){return void 0===e?this.getRuleContexts(Uo):this.getRuleContext(e,Uo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_data_source_stmt}accept(e){return e.visitAlter_external_data_source_stmt?e.visitAlter_external_data_source_stmt(this):e.visitChildren(this)}},Uo=class extends W{static{Si(this,"Alter_external_data_source_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_data_source_action}accept(e){return e.visitAlter_external_data_source_action?e.visitAlter_external_data_source_action(this):e.visitChildren(this)}},Ho=class extends W{static{Si(this,"Drop_external_data_source_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_external_data_source_stmt}accept(e){return e.visitDrop_external_data_source_stmt?e.visitDrop_external_data_source_stmt(this):e.visitChildren(this)}},Bo=class extends W{static{Si(this,"Create_view_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}AS(){return this.getToken(rs.AS,0)}select_stmt(){return this.getRuleContext(0,mr)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_view_stmt}accept(e){return e.visitCreate_view_stmt?e.visitCreate_view_stmt(this):e.visitChildren(this)}},Wo=class extends W{static{Si(this,"Drop_view_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_view_stmt}accept(e){return e.visitDrop_view_stmt?e.visitDrop_view_stmt(this):e.visitChildren(this)}},Vo=class extends W{static{Si(this,"Upsert_object_stmtContext")}constructor(e,t){super(e,t)}UPSERT(){return this.getToken(rs.UPSERT,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_upsert_object_stmt}accept(e){return e.visitUpsert_object_stmt?e.visitUpsert_object_stmt(this):e.visitChildren(this)}},zo=class extends W{static{Si(this,"Create_object_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_object_stmt}accept(e){return e.visitCreate_object_stmt?e.visitCreate_object_stmt(this):e.visitChildren(this)}},Go=class extends W{static{Si(this,"Create_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_create_object_features}accept(e){return e.visitCreate_object_features?e.visitCreate_object_features(this):e.visitChildren(this)}},jo=class extends W{static{Si(this,"Alter_object_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Ko)}get ruleIndex(){return rs.RULE_alter_object_stmt}accept(e){return e.visitAlter_object_stmt?e.visitAlter_object_stmt(this):e.visitChildren(this)}},Ko=class extends W{static{Si(this,"Alter_object_featuresContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_alter_object_features}accept(e){return e.visitAlter_object_features?e.visitAlter_object_features(this):e.visitChildren(this)}},Yo=class extends W{static{Si(this,"Drop_object_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,qo)}get ruleIndex(){return rs.RULE_drop_object_stmt}accept(e){return e.visitDrop_object_stmt?e.visitDrop_object_stmt(this):e.visitChildren(this)}},qo=class extends W{static{Si(this,"Drop_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_drop_object_features}accept(e){return e.visitDrop_object_features?e.visitDrop_object_features(this):e.visitChildren(this)}},$o=class extends W{static{Si(this,"Object_feature_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}bind_parameter(){return this.getRuleContext(0,Rn)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_object_feature_value}accept(e){return e.visitObject_feature_value?e.visitObject_feature_value(this):e.visitChildren(this)}},Qo=class extends W{static{Si(this,"Object_feature_kvContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}EQUALS(){return this.getToken(rs.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,$o)}get ruleIndex(){return rs.RULE_object_feature_kv}accept(e){return e.visitObject_feature_kv?e.visitObject_feature_kv(this):e.visitChildren(this)}},Xo=class extends W{static{Si(this,"Object_feature_flagContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_feature_flag}accept(e){return e.visitObject_feature_flag?e.visitObject_feature_flag(this):e.visitChildren(this)}},Zo=class extends W{static{Si(this,"Object_featureContext")}constructor(e,t){super(e,t)}object_feature_kv(){return this.getRuleContext(0,Qo)}object_feature_flag(){return this.getRuleContext(0,Xo)}get ruleIndex(){return rs.RULE_object_feature}accept(e){return e.visitObject_feature?e.visitObject_feature(this):e.visitChildren(this)}},Jo=class extends W{static{Si(this,"Object_featuresContext")}constructor(e,t){super(e,t)}object_feature(e){return void 0===e?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_object_features}accept(e){return e.visitObject_features?e.visitObject_features(this):e.visitChildren(this)}},ea=class extends W{static{Si(this,"Object_type_refContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_type_ref}accept(e){return e.visitObject_type_ref?e.visitObject_type_ref(this):e.visitChildren(this)}},ta=class extends W{static{Si(this,"Create_table_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_table_entry(e){return void 0===e?this.getRuleContexts(ia):this.getRuleContext(e,ia)}RPAREN(){return this.getToken(rs.RPAREN,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}table_inherits(){return this.getRuleContext(0,va)}table_partition_by(){return this.getRuleContext(0,Ca)}with_table_settings(){return this.getRuleContext(0,Ea)}table_tablestore(){return this.getRuleContext(0,ba)}table_as_source(){return this.getRuleContext(0,ya)}get ruleIndex(){return rs.RULE_create_table_stmt}accept(e){return e.visitCreate_table_stmt?e.visitCreate_table_stmt(this):e.visitChildren(this)}},ia=class extends W{static{Si(this,"Create_table_entryContext")}constructor(e,t){super(e,t)}column_schema(){return this.getRuleContext(0,Ya)}table_constraint(){return this.getRuleContext(0,Xa)}table_index(){return this.getRuleContext(0,Za)}family_entry(){return this.getRuleContext(0,mc)}changefeed(){return this.getRuleContext(0,oc)}an_id_schema(){return this.getRuleContext(0,Gh)}get ruleIndex(){return rs.RULE_create_table_entry}accept(e){return e.visitCreate_table_entry?e.visitCreate_table_entry(this):e.visitChildren(this)}},sa=class extends W{static{Si(this,"Create_backup_collection_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}backup_collection(){return this.getRuleContext(0,ga)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,pa)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,oa)}get ruleIndex(){return rs.RULE_create_backup_collection_stmt}accept(e){return e.visitCreate_backup_collection_stmt?e.visitCreate_backup_collection_stmt(this):e.visitChildren(this)}},na=class extends W{static{Si(this,"Alter_backup_collection_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}backup_collection(){return this.getRuleContext(0,ga)}alter_backup_collection_actions(){return this.getRuleContext(0,la)}alter_backup_collection_entries(){return this.getRuleContext(0,da)}get ruleIndex(){return rs.RULE_alter_backup_collection_stmt}accept(e){return e.visitAlter_backup_collection_stmt?e.visitAlter_backup_collection_stmt(this):e.visitChildren(this)}},ra=class extends W{static{Si(this,"Drop_backup_collection_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}backup_collection(){return this.getRuleContext(0,ga)}get ruleIndex(){return rs.RULE_drop_backup_collection_stmt}accept(e){return e.visitDrop_backup_collection_stmt?e.visitDrop_backup_collection_stmt(this):e.visitChildren(this)}},oa=class extends W{static{Si(this,"Create_backup_collection_entriesContext")}constructor(e,t){super(e,t)}DATABASE(){return this.getToken(rs.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,aa)}get ruleIndex(){return rs.RULE_create_backup_collection_entries}accept(e){return e.visitCreate_backup_collection_entries?e.visitCreate_backup_collection_entries(this):e.visitChildren(this)}},aa=class extends W{static{Si(this,"Create_backup_collection_entries_manyContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_list(){return this.getRuleContext(0,ca)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_create_backup_collection_entries_many}accept(e){return e.visitCreate_backup_collection_entries_many?e.visitCreate_backup_collection_entries_many(this):e.visitChildren(this)}},ca=class extends W{static{Si(this,"Table_listContext")}constructor(e,t){super(e,t)}TABLE(e){return void 0===e?this.getTokens(rs.TABLE):this.getToken(rs.TABLE,e)}an_id_table(e){return void 0===e?this.getRuleContexts(qh):this.getRuleContext(e,qh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_list}accept(e){return e.visitTable_list?e.visitTable_list(this):e.visitChildren(this)}},la=class extends W{static{Si(this,"Alter_backup_collection_actionsContext")}constructor(e,t){super(e,t)}alter_backup_collection_action(e){return void 0===e?this.getRuleContexts(ha):this.getRuleContext(e,ha)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_actions}accept(e){return e.visitAlter_backup_collection_actions?e.visitAlter_backup_collection_actions(this):e.visitChildren(this)}},ha=class extends W{static{Si(this,"Alter_backup_collection_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_backup_collection_action}accept(e){return e.visitAlter_backup_collection_action?e.visitAlter_backup_collection_action(this):e.visitChildren(this)}},da=class extends W{static{Si(this,"Alter_backup_collection_entriesContext")}constructor(e,t){super(e,t)}alter_backup_collection_entry(e){return void 0===e?this.getRuleContexts(ua):this.getRuleContext(e,ua)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_entries}accept(e){return e.visitAlter_backup_collection_entries?e.visitAlter_backup_collection_entries(this):e.visitChildren(this)}},ua=class extends W{static{Si(this,"Alter_backup_collection_entryContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DROP(){return this.getToken(rs.DROP,0)}TABLE(){return this.getToken(rs.TABLE,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_backup_collection_entry}accept(e){return e.visitAlter_backup_collection_entry?e.visitAlter_backup_collection_entry(this):e.visitChildren(this)}},ga=class extends W{static{Si(this,"Backup_collectionContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_backup_collection}accept(e){return e.visitBackup_collection?e.visitBackup_collection(this):e.visitChildren(this)}},pa=class extends W{static{Si(this,"Backup_collection_settingsContext")}constructor(e,t){super(e,t)}backup_collection_settings_entry(e){return void 0===e?this.getRuleContexts(ma):this.getRuleContext(e,ma)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_backup_collection_settings}accept(e){return e.visitBackup_collection_settings?e.visitBackup_collection_settings(this):e.visitChildren(this)}},ma=class extends W{static{Si(this,"Backup_collection_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_backup_collection_settings_entry}accept(e){return e.visitBackup_collection_settings_entry?e.visitBackup_collection_settings_entry(this):e.visitChildren(this)}},fa=class extends W{static{Si(this,"Backup_stmtContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}object_ref(){return this.getRuleContext(0,El)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}get ruleIndex(){return rs.RULE_backup_stmt}accept(e){return e.visitBackup_stmt?e.visitBackup_stmt(this):e.visitChildren(this)}},_a=class extends W{static{Si(this,"Restore_stmtContext")}constructor(e,t){super(e,t)}RESTORE(){return this.getToken(rs.RESTORE,0)}object_ref(){return this.getRuleContext(0,El)}AT(){return this.getToken(rs.AT,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_restore_stmt}accept(e){return e.visitRestore_stmt?e.visitRestore_stmt(this):e.visitChildren(this)}},va=class extends W{static{Si(this,"Table_inheritsContext")}constructor(e,t){super(e,t)}INHERITS(){return this.getToken(rs.INHERITS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_table_ref_core(e){return void 0===e?this.getRuleContexts(bl):this.getRuleContext(e,bl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_inherits}accept(e){return e.visitTable_inherits?e.visitTable_inherits(this):e.visitChildren(this)}},Ca=class extends W{static{Si(this,"Table_partition_byContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}HASH(){return this.getToken(rs.HASH,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_table_partition_by}accept(e){return e.visitTable_partition_by?e.visitTable_partition_by(this):e.visitChildren(this)}},Ea=class extends W{static{Si(this,"With_table_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_settings_entry(e){return void 0===e?this.getRuleContexts(Sa):this.getRuleContext(e,Sa)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_table_settings}accept(e){return e.visitWith_table_settings?e.visitWith_table_settings(this):e.visitChildren(this)}},ba=class extends W{static{Si(this,"Table_tablestoreContext")}constructor(e,t){super(e,t)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,bl)}get ruleIndex(){return rs.RULE_table_tablestore}accept(e){return e.visitTable_tablestore?e.visitTable_tablestore(this):e.visitChildren(this)}},Sa=class extends W{static{Si(this,"Table_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_table_settings_entry}accept(e){return e.visitTable_settings_entry?e.visitTable_settings_entry(this):e.visitChildren(this)}},ya=class extends W{static{Si(this,"Table_as_sourceContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}values_source(){return this.getRuleContext(0,Io)}get ruleIndex(){return rs.RULE_table_as_source}accept(e){return e.visitTable_as_source?e.visitTable_as_source(this):e.visitChildren(this)}},wa=class extends W{static{Si(this,"Alter_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_table_action(e){return void 0===e?this.getRuleContexts(Ra):this.getRuleContext(e,Ra)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_stmt}accept(e){return e.visitAlter_table_stmt?e.visitAlter_table_stmt(this):e.visitChildren(this)}},Ra=class extends W{static{Si(this,"Alter_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_alter_column(){return this.getRuleContext(0,Ia)}alter_table_add_column_family(){return this.getRuleContext(0,Da)}alter_table_alter_column_family(){return this.getRuleContext(0,Ma)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}alter_table_add_index(){return this.getRuleContext(0,Ha)}alter_table_drop_index(){return this.getRuleContext(0,Ba)}alter_table_rename_to(){return this.getRuleContext(0,Wa)}alter_table_add_changefeed(){return this.getRuleContext(0,za)}alter_table_alter_changefeed(){return this.getRuleContext(0,Ga)}alter_table_drop_changefeed(){return this.getRuleContext(0,ja)}alter_table_rename_index_to(){return this.getRuleContext(0,Va)}alter_table_alter_index(){return this.getRuleContext(0,Ka)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,Oa)}get ruleIndex(){return rs.RULE_alter_table_action}accept(e){return e.visitAlter_table_action?e.visitAlter_table_action(this):e.visitChildren(this)}},La=class extends W{static{Si(this,"Alter_external_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_external_table_action(e){return void 0===e?this.getRuleContexts(Ta):this.getRuleContext(e,Ta)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_table_stmt}accept(e){return e.visitAlter_external_table_stmt?e.visitAlter_external_table_stmt(this):e.visitChildren(this)}},Ta=class extends W{static{Si(this,"Alter_external_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_table_action}accept(e){return e.visitAlter_external_table_action?e.visitAlter_external_table_action(this):e.visitChildren(this)}},xa=class extends W{static{Si(this,"Alter_table_store_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,El)}alter_table_store_action(e){return void 0===e?this.getRuleContexts(ka):this.getRuleContext(e,ka)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_store_stmt}accept(e){return e.visitAlter_table_store_stmt?e.visitAlter_table_store_stmt(this):e.visitChildren(this)}},ka=class extends W{static{Si(this,"Alter_table_store_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}get ruleIndex(){return rs.RULE_alter_table_store_action}accept(e){return e.visitAlter_table_store_action?e.visitAlter_table_store_action(this):e.visitChildren(this)}},Aa=class extends W{static{Si(this,"Alter_table_add_columnContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}column_schema(){return this.getRuleContext(0,Ya)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_add_column}accept(e){return e.visitAlter_table_add_column?e.visitAlter_table_add_column(this):e.visitChildren(this)}},Na=class extends W{static{Si(this,"Alter_table_drop_columnContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}an_id(){return this.getRuleContext(0,Vh)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_drop_column}accept(e){return e.visitAlter_table_drop_column?e.visitAlter_table_drop_column(this):e.visitChildren(this)}},Ia=class extends W{static{Si(this,"Alter_table_alter_columnContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}SET(){return this.getToken(rs.SET,0)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_alter_table_alter_column}accept(e){return e.visitAlter_table_alter_column?e.visitAlter_table_alter_column(this):e.visitChildren(this)}},Oa=class extends W{static{Si(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}DROP(){return this.getToken(rs.DROP,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}get ruleIndex(){return rs.RULE_alter_table_alter_column_drop_not_null}accept(e){return e.visitAlter_table_alter_column_drop_not_null?e.visitAlter_table_alter_column_drop_not_null(this):e.visitChildren(this)}},Da=class extends W{static{Si(this,"Alter_table_add_column_familyContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}family_entry(){return this.getRuleContext(0,mc)}get ruleIndex(){return rs.RULE_alter_table_add_column_family}accept(e){return e.visitAlter_table_add_column_family?e.visitAlter_table_add_column_family(this):e.visitChildren(this)}},Ma=class extends W{static{Si(this,"Alter_table_alter_column_familyContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}SET(){return this.getToken(rs.SET,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_alter_table_alter_column_family}accept(e){return e.visitAlter_table_alter_column_family?e.visitAlter_table_alter_column_family(this):e.visitChildren(this)}},Pa=class extends W{static{Si(this,"Alter_table_set_table_setting_uncompatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}an_id(){return this.getRuleContext(0,Vh)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_uncompat}accept(e){return e.visitAlter_table_set_table_setting_uncompat?e.visitAlter_table_set_table_setting_uncompat(this):e.visitChildren(this)}},Fa=class extends W{static{Si(this,"Alter_table_set_table_setting_compatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}alter_table_setting_entry(e){return void 0===e?this.getRuleContexts(dc):this.getRuleContext(e,dc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_compat}accept(e){return e.visitAlter_table_set_table_setting_compat?e.visitAlter_table_set_table_setting_compat(this):e.visitChildren(this)}},Ua=class extends W{static{Si(this,"Alter_table_reset_table_settingContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_reset_table_setting}accept(e){return e.visitAlter_table_reset_table_setting?e.visitAlter_table_reset_table_setting(this):e.visitChildren(this)}},Ha=class extends W{static{Si(this,"Alter_table_add_indexContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}table_index(){return this.getRuleContext(0,Za)}get ruleIndex(){return rs.RULE_alter_table_add_index}accept(e){return e.visitAlter_table_add_index?e.visitAlter_table_add_index(this):e.visitChildren(this)}},Ba=class extends W{static{Si(this,"Alter_table_drop_indexContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_index}accept(e){return e.visitAlter_table_drop_index?e.visitAlter_table_drop_index(this):e.visitChildren(this)}},Wa=class extends W{static{Si(this,"Alter_table_rename_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_table_rename_to}accept(e){return e.visitAlter_table_rename_to?e.visitAlter_table_rename_to(this):e.visitChildren(this)}},Va=class extends W{static{Si(this,"Alter_table_rename_index_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}TO(){return this.getToken(rs.TO,0)}get ruleIndex(){return rs.RULE_alter_table_rename_index_to}accept(e){return e.visitAlter_table_rename_index_to?e.visitAlter_table_rename_index_to(this):e.visitChildren(this)}},za=class extends W{static{Si(this,"Alter_table_add_changefeedContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}changefeed(){return this.getRuleContext(0,oc)}get ruleIndex(){return rs.RULE_alter_table_add_changefeed}accept(e){return e.visitAlter_table_add_changefeed?e.visitAlter_table_add_changefeed(this):e.visitChildren(this)}},Ga=class extends W{static{Si(this,"Alter_table_alter_changefeedContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}changefeed_alter_settings(){return this.getRuleContext(0,hc)}get ruleIndex(){return rs.RULE_alter_table_alter_changefeed}accept(e){return e.visitAlter_table_alter_changefeed?e.visitAlter_table_alter_changefeed(this):e.visitChildren(this)}},ja=class extends W{static{Si(this,"Alter_table_drop_changefeedContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_changefeed}accept(e){return e.visitAlter_table_drop_changefeed?e.visitAlter_table_drop_changefeed(this):e.visitChildren(this)}},Ka=class extends W{static{Si(this,"Alter_table_alter_indexContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}alter_table_alter_index_action(){return this.getRuleContext(0,bc)}get ruleIndex(){return rs.RULE_alter_table_alter_index}accept(e){return e.visitAlter_table_alter_index?e.visitAlter_table_alter_index(this):e.visitChildren(this)}},Ya=class extends W{static{Si(this,"Column_schemaContext")}constructor(e,t){super(e,t)}an_id_schema(){return this.getRuleContext(0,Gh)}type_name_or_bind(){return this.getRuleContext(0,tr)}opt_column_constraints(){return this.getRuleContext(0,$a)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_column_schema}accept(e){return e.visitColumn_schema?e.visitColumn_schema(this):e.visitChildren(this)}},qa=class extends W{static{Si(this,"Family_relationContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_family_relation}accept(e){return e.visitFamily_relation?e.visitFamily_relation(this):e.visitChildren(this)}},$a=class extends W{static{Si(this,"Opt_column_constraintsContext")}constructor(e,t){super(e,t)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_opt_column_constraints}accept(e){return e.visitOpt_column_constraints?e.visitOpt_column_constraints(this):e.visitChildren(this)}},Qa=class extends W{static{Si(this,"Column_order_by_specificationContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_column_order_by_specification}accept(e){return e.visitColumn_order_by_specification?e.visitColumn_order_by_specification(this):e.visitChildren(this)}},Xa=class extends W{static{Si(this,"Table_constraintContext")}constructor(e,t){super(e,t)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}ORDER(){return this.getToken(rs.ORDER,0)}column_order_by_specification(e){return void 0===e?this.getRuleContexts(Qa):this.getRuleContext(e,Qa)}get ruleIndex(){return rs.RULE_table_constraint}accept(e){return e.visitTable_constraint?e.visitTable_constraint(this):e.visitChildren(this)}},Za=class extends W{static{Si(this,"Table_indexContext")}constructor(e,t){super(e,t)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}table_index_type(){return this.getRuleContext(0,Ja)}ON(){return this.getToken(rs.ON,0)}LPAREN(e){return void 0===e?this.getTokens(rs.LPAREN):this.getToken(rs.LPAREN,e)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}RPAREN(e){return void 0===e?this.getTokens(rs.RPAREN):this.getToken(rs.RPAREN,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}COVER(){return this.getToken(rs.COVER,0)}with_index_settings(){return this.getRuleContext(0,sc)}get ruleIndex(){return rs.RULE_table_index}accept(e){return e.visitTable_index?e.visitTable_index(this):e.visitChildren(this)}},Ja=class extends W{static{Si(this,"Table_index_typeContext")}constructor(e,t){super(e,t)}global_index(){return this.getRuleContext(0,ec)}local_index(){return this.getRuleContext(0,tc)}USING(){return this.getToken(rs.USING,0)}index_subtype(){return this.getRuleContext(0,ic)}get ruleIndex(){return rs.RULE_table_index_type}accept(e){return e.visitTable_index_type?e.visitTable_index_type(this):e.visitChildren(this)}},ec=class extends W{static{Si(this,"Global_indexContext")}constructor(e,t){super(e,t)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}SYNC(){return this.getToken(rs.SYNC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}get ruleIndex(){return rs.RULE_global_index}accept(e){return e.visitGlobal_index?e.visitGlobal_index(this):e.visitChildren(this)}},tc=class extends W{static{Si(this,"Local_indexContext")}constructor(e,t){super(e,t)}LOCAL(){return this.getToken(rs.LOCAL,0)}get ruleIndex(){return rs.RULE_local_index}accept(e){return e.visitLocal_index?e.visitLocal_index(this):e.visitChildren(this)}},ic=class extends W{static{Si(this,"Index_subtypeContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_index_subtype}accept(e){return e.visitIndex_subtype?e.visitIndex_subtype(this):e.visitChildren(this)}},sc=class extends W{static{Si(this,"With_index_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}index_setting_entry(e){return void 0===e?this.getRuleContexts(nc):this.getRuleContext(e,nc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_index_settings}accept(e){return e.visitWith_index_settings?e.visitWith_index_settings(this):e.visitChildren(this)}},nc=class extends W{static{Si(this,"Index_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_index_setting_entry}accept(e){return e.visitIndex_setting_entry?e.visitIndex_setting_entry(this):e.visitChildren(this)}},rc=class extends W{static{Si(this,"Index_setting_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_index_setting_value}accept(e){return e.visitIndex_setting_value?e.visitIndex_setting_value(this):e.visitChildren(this)}},oc=class extends W{static{Si(this,"ChangefeedContext")}constructor(e,t){super(e,t)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed}accept(e){return e.visitChangefeed?e.visitChangefeed(this):e.visitChildren(this)}},ac=class extends W{static{Si(this,"Changefeed_settingsContext")}constructor(e,t){super(e,t)}changefeed_settings_entry(e){return void 0===e?this.getRuleContexts(cc):this.getRuleContext(e,cc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_changefeed_settings}accept(e){return e.visitChangefeed_settings?e.visitChangefeed_settings(this):e.visitChildren(this)}},cc=class extends W{static{Si(this,"Changefeed_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,lc)}get ruleIndex(){return rs.RULE_changefeed_settings_entry}accept(e){return e.visitChangefeed_settings_entry?e.visitChangefeed_settings_entry(this):e.visitChildren(this)}},lc=class extends W{static{Si(this,"Changefeed_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_changefeed_setting_value}accept(e){return e.visitChangefeed_setting_value?e.visitChangefeed_setting_value(this):e.visitChildren(this)}},hc=class extends W{static{Si(this,"Changefeed_alter_settingsContext")}constructor(e,t){super(e,t)}DISABLE(){return this.getToken(rs.DISABLE,0)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed_alter_settings}accept(e){return e.visitChangefeed_alter_settings?e.visitChangefeed_alter_settings(this):e.visitChildren(this)}},dc=class extends W{static{Si(this,"Alter_table_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_setting_entry}accept(e){return e.visitAlter_table_setting_entry?e.visitAlter_table_setting_entry(this):e.visitChildren(this)}},uc=class extends W{static{Si(this,"Table_setting_valueContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}split_boundaries(){return this.getRuleContext(0,Cc)}ttl_tier_list(){return this.getRuleContext(0,gc)}ON(){return this.getToken(rs.ON,0)}an_id(){return this.getRuleContext(0,Vh)}AS(){return this.getToken(rs.AS,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_table_setting_value}accept(e){return e.visitTable_setting_value?e.visitTable_setting_value(this):e.visitChildren(this)}},gc=class extends W{static{Si(this,"Ttl_tier_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}ttl_tier_action(e){return void 0===e?this.getRuleContexts(pc):this.getRuleContext(e,pc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ttl_tier_list}accept(e){return e.visitTtl_tier_list?e.visitTtl_tier_list(this):e.visitChildren(this)}},pc=class extends W{static{Si(this,"Ttl_tier_actionContext")}constructor(e,t){super(e,t)}TO(){return this.getToken(rs.TO,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}an_id(){return this.getRuleContext(0,Vh)}DELETE(){return this.getToken(rs.DELETE,0)}get ruleIndex(){return rs.RULE_ttl_tier_action}accept(e){return e.visitTtl_tier_action?e.visitTtl_tier_action(this):e.visitChildren(this)}},mc=class extends W{static{Si(this,"Family_entryContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}family_settings(){return this.getRuleContext(0,fc)}get ruleIndex(){return rs.RULE_family_entry}accept(e){return e.visitFamily_entry?e.visitFamily_entry(this):e.visitChildren(this)}},fc=class extends W{static{Si(this,"Family_settingsContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}family_settings_entry(e){return void 0===e?this.getRuleContexts(_c):this.getRuleContext(e,_c)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_family_settings}accept(e){return e.visitFamily_settings?e.visitFamily_settings(this):e.visitChildren(this)}},_c=class extends W{static{Si(this,"Family_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_family_settings_entry}accept(e){return e.visitFamily_settings_entry?e.visitFamily_settings_entry(this):e.visitChildren(this)}},vc=class extends W{static{Si(this,"Family_setting_valueContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}get ruleIndex(){return rs.RULE_family_setting_value}accept(e){return e.visitFamily_setting_value?e.visitFamily_setting_value(this):e.visitChildren(this)}},Cc=class extends W{static{Si(this,"Split_boundariesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value_list(e){return void 0===e?this.getRuleContexts(Ec):this.getRuleContext(e,Ec)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_split_boundaries}accept(e){return e.visitSplit_boundaries?e.visitSplit_boundaries(this):e.visitChildren(this)}},Ec=class extends W{static{Si(this,"Literal_value_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value(e){return void 0===e?this.getRuleContexts(wn):this.getRuleContext(e,wn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_literal_value_list}accept(e){return e.visitLiteral_value_list?e.visitLiteral_value_list(this):e.visitChildren(this)}},bc=class extends W{static{Si(this,"Alter_table_alter_index_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_table_alter_index_action}accept(e){return e.visitAlter_table_alter_index_action?e.visitAlter_table_alter_index_action(this):e.visitChildren(this)}},Sc=class extends W{static{Si(this,"Drop_table_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_table_stmt}accept(e){return e.visitDrop_table_stmt?e.visitDrop_table_stmt(this):e.visitChildren(this)}},yc=class extends W{static{Si(this,"Create_user_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}USER(){return this.getToken(rs.USER,0)}role_name(){return this.getRuleContext(0,xc)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_create_user_stmt}accept(e){return e.visitCreate_user_stmt?e.visitCreate_user_stmt(this):e.visitChildren(this)}},wc=class extends W{static{Si(this,"Alter_user_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}USER(){return this.getToken(rs.USER,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_alter_user_stmt}accept(e){return e.visitAlter_user_stmt?e.visitAlter_user_stmt(this):e.visitChildren(this)}},Rc=class extends W{static{Si(this,"Create_group_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}WITH(){return this.getToken(rs.WITH,0)}USER(){return this.getToken(rs.USER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_group_stmt}accept(e){return e.visitCreate_group_stmt?e.visitCreate_group_stmt(this):e.visitChildren(this)}},Lc=class extends W{static{Si(this,"Alter_group_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}ADD(){return this.getToken(rs.ADD,0)}DROP(){return this.getToken(rs.DROP,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_group_stmt}accept(e){return e.visitAlter_group_stmt?e.visitAlter_group_stmt(this):e.visitChildren(this)}},Tc=class extends W{static{Si(this,"Drop_role_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}GROUP(){return this.getToken(rs.GROUP,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_drop_role_stmt}accept(e){return e.visitDrop_role_stmt?e.visitDrop_role_stmt(this):e.visitChildren(this)}},xc=class extends W{static{Si(this,"Role_nameContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_role_name}accept(e){return e.visitRole_name?e.visitRole_name(this):e.visitChildren(this)}},kc=class extends W{static{Si(this,"User_optionContext")}constructor(e,t){super(e,t)}authentication_option(){return this.getRuleContext(0,Ac)}login_option(){return this.getRuleContext(0,Oc)}get ruleIndex(){return rs.RULE_user_option}accept(e){return e.visitUser_option?e.visitUser_option(this):e.visitChildren(this)}},Ac=class extends W{static{Si(this,"Authentication_optionContext")}constructor(e,t){super(e,t)}password_option(){return this.getRuleContext(0,Nc)}hash_option(){return this.getRuleContext(0,Ic)}get ruleIndex(){return rs.RULE_authentication_option}accept(e){return e.visitAuthentication_option?e.visitAuthentication_option(this):e.visitChildren(this)}},Nc=class extends W{static{Si(this,"Password_optionContext")}constructor(e,t){super(e,t)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}expr(){return this.getRuleContext(0,gs)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}get ruleIndex(){return rs.RULE_password_option}accept(e){return e.visitPassword_option?e.visitPassword_option(this):e.visitChildren(this)}},Ic=class extends W{static{Si(this,"Hash_optionContext")}constructor(e,t){super(e,t)}HASH(){return this.getToken(rs.HASH,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_hash_option}accept(e){return e.visitHash_option?e.visitHash_option(this):e.visitChildren(this)}},Oc=class extends W{static{Si(this,"Login_optionContext")}constructor(e,t){super(e,t)}LOGIN(){return this.getToken(rs.LOGIN,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}get ruleIndex(){return rs.RULE_login_option}accept(e){return e.visitLogin_option?e.visitLogin_option(this):e.visitChildren(this)}},Dc=class extends W{static{Si(this,"Grant_permissions_stmtContext")}constructor(e,t){super(e,t)}GRANT(e){return void 0===e?this.getTokens(rs.GRANT):this.getToken(rs.GRANT,e)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}TO(){return this.getToken(rs.TO,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITH(){return this.getToken(rs.WITH,0)}OPTION(){return this.getToken(rs.OPTION,0)}get ruleIndex(){return rs.RULE_grant_permissions_stmt}accept(e){return e.visitGrant_permissions_stmt?e.visitGrant_permissions_stmt(this):e.visitChildren(this)}},Mc=class extends W{static{Si(this,"Revoke_permissions_stmtContext")}constructor(e,t){super(e,t)}REVOKE(){return this.getToken(rs.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}FROM(){return this.getToken(rs.FROM,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}GRANT(){return this.getToken(rs.GRANT,0)}OPTION(){return this.getToken(rs.OPTION,0)}FOR(){return this.getToken(rs.FOR,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_revoke_permissions_stmt}accept(e){return e.visitRevoke_permissions_stmt?e.visitRevoke_permissions_stmt(this):e.visitChildren(this)}},Pc=class extends W{static{Si(this,"Permission_idContext")}constructor(e,t){super(e,t)}CONNECT(){return this.getToken(rs.CONNECT,0)}LIST(){return this.getToken(rs.LIST,0)}INSERT(){return this.getToken(rs.INSERT,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}DROP(){return this.getToken(rs.DROP,0)}GRANT(){return this.getToken(rs.GRANT,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}TABLES(){return this.getToken(rs.TABLES,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}ROW(){return this.getToken(rs.ROW,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}ERASE(){return this.getToken(rs.ERASE,0)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}ALTER(){return this.getToken(rs.ALTER,0)}SELECT(){return this.getToken(rs.SELECT,0)}USE(){return this.getToken(rs.USE,0)}FULL(){return this.getToken(rs.FULL,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}CREATE(){return this.getToken(rs.CREATE,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}TABLE(){return this.getToken(rs.TABLE,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}get ruleIndex(){return rs.RULE_permission_id}accept(e){return e.visitPermission_id?e.visitPermission_id(this):e.visitChildren(this)}},Fc=class extends W{static{Si(this,"Permission_nameContext")}constructor(e,t){super(e,t)}permission_id(){return this.getRuleContext(0,Pc)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_permission_name}accept(e){return e.visitPermission_name?e.visitPermission_name(this):e.visitChildren(this)}},Uc=class extends W{static{Si(this,"Permission_name_targetContext")}constructor(e,t){super(e,t)}permission_name(e){return void 0===e?this.getRuleContexts(Fc):this.getRuleContext(e,Fc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}ALL(){return this.getToken(rs.ALL,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}get ruleIndex(){return rs.RULE_permission_name_target}accept(e){return e.visitPermission_name_target?e.visitPermission_name_target(this):e.visitChildren(this)}},Hc=class extends W{static{Si(this,"Create_resource_pool_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_stmt}accept(e){return e.visitCreate_resource_pool_stmt?e.visitCreate_resource_pool_stmt(this):e.visitChildren(this)}},Bc=class extends W{static{Si(this,"Alter_resource_pool_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_action(e){return void 0===e?this.getRuleContexts(Wc):this.getRuleContext(e,Wc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_stmt}accept(e){return e.visitAlter_resource_pool_stmt?e.visitAlter_resource_pool_stmt(this):e.visitChildren(this)}},Wc=class extends W{static{Si(this,"Alter_resource_pool_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_action}accept(e){return e.visitAlter_resource_pool_action?e.visitAlter_resource_pool_action(this):e.visitChildren(this)}},Vc=class extends W{static{Si(this,"Drop_resource_pool_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_stmt}accept(e){return e.visitDrop_resource_pool_stmt?e.visitDrop_resource_pool_stmt(this):e.visitChildren(this)}},zc=class extends W{static{Si(this,"Create_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_classifier_stmt}accept(e){return e.visitCreate_resource_pool_classifier_stmt?e.visitCreate_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Gc=class extends W{static{Si(this,"Alter_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_classifier_action(e){return void 0===e?this.getRuleContexts(jc):this.getRuleContext(e,jc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_stmt}accept(e){return e.visitAlter_resource_pool_classifier_stmt?e.visitAlter_resource_pool_classifier_stmt(this):e.visitChildren(this)}},jc=class extends W{static{Si(this,"Alter_resource_pool_classifier_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_action}accept(e){return e.visitAlter_resource_pool_classifier_action?e.visitAlter_resource_pool_classifier_action(this):e.visitChildren(this)}},Kc=class extends W{static{Si(this,"Drop_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_classifier_stmt}accept(e){return e.visitDrop_resource_pool_classifier_stmt?e.visitDrop_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Yc=class extends W{static{Si(this,"Create_replication_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}FOR(){return this.getToken(rs.FOR,0)}replication_target(e){return void 0===e?this.getRuleContexts(qc):this.getRuleContext(e,qc)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_replication_stmt}accept(e){return e.visitCreate_replication_stmt?e.visitCreate_replication_stmt(this):e.visitChildren(this)}},qc=class extends W{static{Si(this,"Replication_targetContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}replication_name(){return this.getRuleContext(0,Rd)}get ruleIndex(){return rs.RULE_replication_target}accept(e){return e.visitReplication_target?e.visitReplication_target(this):e.visitChildren(this)}},$c=class extends W{static{Si(this,"Replication_settingsContext")}constructor(e,t){super(e,t)}replication_settings_entry(e){return void 0===e?this.getRuleContexts(Qc):this.getRuleContext(e,Qc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_replication_settings}accept(e){return e.visitReplication_settings?e.visitReplication_settings(this):e.visitChildren(this)}},Qc=class extends W{static{Si(this,"Replication_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_replication_settings_entry}accept(e){return e.visitReplication_settings_entry?e.visitReplication_settings_entry(this):e.visitChildren(this)}},Xc=class extends W{static{Si(this,"Alter_replication_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}alter_replication_action(e){return void 0===e?this.getRuleContexts(Zc):this.getRuleContext(e,Zc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_replication_stmt}accept(e){return e.visitAlter_replication_stmt?e.visitAlter_replication_stmt(this):e.visitChildren(this)}},Zc=class extends W{static{Si(this,"Alter_replication_actionContext")}constructor(e,t){super(e,t)}alter_replication_set_setting(){return this.getRuleContext(0,Jc)}get ruleIndex(){return rs.RULE_alter_replication_action}accept(e){return e.visitAlter_replication_action?e.visitAlter_replication_action(this):e.visitChildren(this)}},Jc=class extends W{static{Si(this,"Alter_replication_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_replication_set_setting}accept(e){return e.visitAlter_replication_set_setting?e.visitAlter_replication_set_setting(this):e.visitChildren(this)}},el=class extends W{static{Si(this,"Drop_replication_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_replication_stmt}accept(e){return e.visitDrop_replication_stmt?e.visitDrop_replication_stmt(this):e.visitChildren(this)}},tl=class extends W{static{Si(this,"Lambda_or_parameterContext")}constructor(e,t){super(e,t)}lambda(){return this.getRuleContext(0,Ks)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_lambda_or_parameter}accept(e){return e.visitLambda_or_parameter?e.visitLambda_or_parameter(this):e.visitChildren(this)}},il=class extends W{static{Si(this,"Create_transfer_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(e){return void 0===e?this.getRuleContexts(El):this.getRuleContext(e,El)}FROM(){return this.getToken(rs.FROM,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_create_transfer_stmt}accept(e){return e.visitCreate_transfer_stmt?e.visitCreate_transfer_stmt(this):e.visitChildren(this)}},sl=class extends W{static{Si(this,"Transfer_settingsContext")}constructor(e,t){super(e,t)}transfer_settings_entry(e){return void 0===e?this.getRuleContexts(nl):this.getRuleContext(e,nl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_transfer_settings}accept(e){return e.visitTransfer_settings?e.visitTransfer_settings(this):e.visitChildren(this)}},nl=class extends W{static{Si(this,"Transfer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_transfer_settings_entry}accept(e){return e.visitTransfer_settings_entry?e.visitTransfer_settings_entry(this):e.visitChildren(this)}},rl=class extends W{static{Si(this,"Alter_transfer_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}alter_transfer_action(e){return void 0===e?this.getRuleContexts(ol):this.getRuleContext(e,ol)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_transfer_stmt}accept(e){return e.visitAlter_transfer_stmt?e.visitAlter_transfer_stmt(this):e.visitChildren(this)}},ol=class extends W{static{Si(this,"Alter_transfer_actionContext")}constructor(e,t){super(e,t)}alter_transfer_set_setting(){return this.getRuleContext(0,al)}alter_transfer_set_using(){return this.getRuleContext(0,cl)}get ruleIndex(){return rs.RULE_alter_transfer_action}accept(e){return e.visitAlter_transfer_action?e.visitAlter_transfer_action(this):e.visitChildren(this)}},al=class extends W{static{Si(this,"Alter_transfer_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_transfer_set_setting}accept(e){return e.visitAlter_transfer_set_setting?e.visitAlter_transfer_set_setting(this):e.visitChildren(this)}},cl=class extends W{static{Si(this,"Alter_transfer_set_usingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_alter_transfer_set_using}accept(e){return e.visitAlter_transfer_set_using?e.visitAlter_transfer_set_using(this):e.visitChildren(this)}},ll=class extends W{static{Si(this,"Drop_transfer_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_transfer_stmt}accept(e){return e.visitDrop_transfer_stmt?e.visitDrop_transfer_stmt(this):e.visitChildren(this)}},hl=class extends W{static{Si(this,"Action_or_subquery_argsContext")}constructor(e,t){super(e,t)}opt_bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_action_or_subquery_args}accept(e){return e.visitAction_or_subquery_args?e.visitAction_or_subquery_args(this):e.visitChildren(this)}},dl=class extends W{static{Si(this,"Define_action_or_subquery_stmtContext")}constructor(e,t){super(e,t)}DEFINE(e){return void 0===e?this.getTokens(rs.DEFINE):this.getToken(rs.DEFINE,e)}bind_parameter(){return this.getRuleContext(0,Rn)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}AS(){return this.getToken(rs.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}ACTION(){return this.getToken(rs.ACTION,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,hl)}get ruleIndex(){return rs.RULE_define_action_or_subquery_stmt}accept(e){return e.visitDefine_action_or_subquery_stmt?e.visitDefine_action_or_subquery_stmt(this):e.visitChildren(this)}},ul=class extends W{static{Si(this,"Define_action_or_subquery_bodyContext")}constructor(e,t){super(e,t)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}sql_stmt_core(e){return void 0===e?this.getRuleContexts(us):this.getRuleContext(e,us)}get ruleIndex(){return rs.RULE_define_action_or_subquery_body}accept(e){return e.visitDefine_action_or_subquery_body?e.visitDefine_action_or_subquery_body(this):e.visitChildren(this)}},gl=class extends W{static{Si(this,"If_stmtContext")}constructor(e,t){super(e,t)}IF(){return this.getToken(rs.IF,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_if_stmt}accept(e){return e.visitIf_stmt?e.visitIf_stmt(this):e.visitChildren(this)}},pl=class extends W{static{Si(this,"For_stmtContext")}constructor(e,t){super(e,t)}FOR(){return this.getToken(rs.FOR,0)}bind_parameter(){return this.getRuleContext(0,Rn)}IN(){return this.getToken(rs.IN,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_for_stmt}accept(e){return e.visitFor_stmt?e.visitFor_stmt(this):e.visitChildren(this)}},ml=class extends W{static{Si(this,"Table_refContext")}constructor(e,t){super(e,t)}table_key(){return this.getRuleContext(0,fl)}an_id_expr(){return this.getRuleContext(0,jh)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}COMMAT(){return this.getToken(rs.COMMAT,0)}table_hints(){return this.getRuleContext(0,vl)}table_arg(e){return void 0===e?this.getRuleContexts(_l):this.getRuleContext(e,_l)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_table_ref}accept(e){return e.visitTable_ref?e.visitTable_ref(this):e.visitChildren(this)}},fl=class extends W{static{Si(this,"Table_keyContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_key}accept(e){return e.visitTable_key?e.visitTable_key(this):e.visitChildren(this)}},_l=class extends W{static{Si(this,"Table_argContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}COMMAT(){return this.getToken(rs.COMMAT,0)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_arg}accept(e){return e.visitTable_arg?e.visitTable_arg(this):e.visitChildren(this)}},vl=class extends W{static{Si(this,"Table_hintsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}table_hint(e){return void 0===e?this.getRuleContexts(Cl):this.getRuleContext(e,Cl)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_hints}accept(e){return e.visitTable_hints?e.visitTable_hints(this):e.visitChildren(this)}},Cl=class extends W{static{Si(this,"Table_hintContext")}constructor(e,t){super(e,t)}an_id_hint(){return this.getRuleContext(0,Qh)}EQUALS(){return this.getToken(rs.EQUALS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}type_name_or_bind(){return this.getRuleContext(0,tr)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}struct_arg_positional(e){return void 0===e?this.getRuleContexts(Mn):this.getRuleContext(e,Mn)}get ruleIndex(){return rs.RULE_table_hint}accept(e){return e.visitTable_hint?e.visitTable_hint(this):e.visitChildren(this)}},El=class extends W{static{Si(this,"Object_refContext")}constructor(e,t){super(e,t)}id_or_at(){return this.getRuleContext(0,nd)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_object_ref}accept(e){return e.visitObject_ref?e.visitObject_ref(this):e.visitChildren(this)}},bl=class extends W{static{Si(this,"Simple_table_ref_coreContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}bind_parameter(){return this.getRuleContext(0,Rn)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_simple_table_ref_core}accept(e){return e.visitSimple_table_ref_core?e.visitSimple_table_ref_core(this):e.visitChildren(this)}},Sl=class extends W{static{Si(this,"Simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref_core(){return this.getRuleContext(0,bl)}table_hints(){return this.getRuleContext(0,vl)}get ruleIndex(){return rs.RULE_simple_table_ref}accept(e){return e.visitSimple_table_ref?e.visitSimple_table_ref(this):e.visitChildren(this)}},yl=class extends W{static{Si(this,"Into_simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}ERASE(){return this.getToken(rs.ERASE,0)}BY(){return this.getToken(rs.BY,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_into_simple_table_ref}accept(e){return e.visitInto_simple_table_ref?e.visitInto_simple_table_ref(this):e.visitChildren(this)}},wl=class extends W{static{Si(this,"Delete_stmtContext")}constructor(e,t){super(e,t)}DELETE(){return this.getToken(rs.DELETE,0)}FROM(){return this.getToken(rs.FROM,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}BATCH(){return this.getToken(rs.BATCH,0)}where_expr(){return this.getRuleContext(0,Ld)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_delete_stmt}accept(e){return e.visitDelete_stmt?e.visitDelete_stmt(this):e.visitChildren(this)}},Rl=class extends W{static{Si(this,"Update_stmtContext")}constructor(e,t){super(e,t)}UPDATE(){return this.getToken(rs.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}SET(){return this.getToken(rs.SET,0)}set_clause_choice(){return this.getRuleContext(0,Ll)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}BATCH(){return this.getToken(rs.BATCH,0)}returning_columns_list(){return this.getRuleContext(0,To)}where_expr(){return this.getRuleContext(0,Ld)}get ruleIndex(){return rs.RULE_update_stmt}accept(e){return e.visitUpdate_stmt?e.visitUpdate_stmt(this):e.visitChildren(this)}},Ll=class extends W{static{Si(this,"Set_clause_choiceContext")}constructor(e,t){super(e,t)}set_clause_list(){return this.getRuleContext(0,Tl)}multiple_column_assignment(){return this.getRuleContext(0,Al)}get ruleIndex(){return rs.RULE_set_clause_choice}accept(e){return e.visitSet_clause_choice?e.visitSet_clause_choice(this):e.visitChildren(this)}},Tl=class extends W{static{Si(this,"Set_clause_listContext")}constructor(e,t){super(e,t)}set_clause(e){return void 0===e?this.getRuleContexts(xl):this.getRuleContext(e,xl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_clause_list}accept(e){return e.visitSet_clause_list?e.visitSet_clause_list(this):e.visitChildren(this)}},xl=class extends W{static{Si(this,"Set_clauseContext")}constructor(e,t){super(e,t)}set_target(){return this.getRuleContext(0,kl)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_set_clause}accept(e){return e.visitSet_clause?e.visitSet_clause(this):e.visitChildren(this)}},kl=class extends W{static{Si(this,"Set_targetContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}get ruleIndex(){return rs.RULE_set_target}accept(e){return e.visitSet_target?e.visitSet_target(this):e.visitChildren(this)}},Al=class extends W{static{Si(this,"Multiple_column_assignmentContext")}constructor(e,t){super(e,t)}set_target_list(){return this.getRuleContext(0,Nl)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_multiple_column_assignment}accept(e){return e.visitMultiple_column_assignment?e.visitMultiple_column_assignment(this):e.visitChildren(this)}},Nl=class extends W{static{Si(this,"Set_target_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}set_target(e){return void 0===e?this.getRuleContexts(kl):this.getRuleContext(e,kl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_target_list}accept(e){return e.visitSet_target_list?e.visitSet_target_list(this):e.visitChildren(this)}},Il=class extends W{static{Si(this,"Create_topic_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,Ol)}with_topic_settings(){return this.getRuleContext(0,Ml)}get ruleIndex(){return rs.RULE_create_topic_stmt}accept(e){return e.visitCreate_topic_stmt?e.visitCreate_topic_stmt(this):e.visitChildren(this)}},Ol=class extends W{static{Si(this,"Create_topic_entriesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_topic_entry(e){return void 0===e?this.getRuleContexts(Dl):this.getRuleContext(e,Dl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_topic_entries}accept(e){return e.visitCreate_topic_entries?e.visitCreate_topic_entries(this):e.visitChildren(this)}},Dl=class extends W{static{Si(this,"Create_topic_entryContext")}constructor(e,t){super(e,t)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_create_topic_entry}accept(e){return e.visitCreate_topic_entry?e.visitCreate_topic_entry(this):e.visitChildren(this)}},Ml=class extends W{static{Si(this,"With_topic_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_with_topic_settings}accept(e){return e.visitWith_topic_settings?e.visitWith_topic_settings(this):e.visitChildren(this)}},Pl=class extends W{static{Si(this,"Alter_topic_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}alter_topic_action(e){return void 0===e?this.getRuleContexts(Fl):this.getRuleContext(e,Fl)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_topic_stmt}accept(e){return e.visitAlter_topic_stmt?e.visitAlter_topic_stmt(this):e.visitChildren(this)}},Fl=class extends W{static{Si(this,"Alter_topic_actionContext")}constructor(e,t){super(e,t)}alter_topic_add_consumer(){return this.getRuleContext(0,Ul)}alter_topic_alter_consumer(){return this.getRuleContext(0,Bl)}alter_topic_drop_consumer(){return this.getRuleContext(0,Vl)}alter_topic_set_settings(){return this.getRuleContext(0,jl)}alter_topic_reset_settings(){return this.getRuleContext(0,Kl)}get ruleIndex(){return rs.RULE_alter_topic_action}accept(e){return e.visitAlter_topic_action?e.visitAlter_topic_action(this):e.visitChildren(this)}},Ul=class extends W{static{Si(this,"Alter_topic_add_consumerContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_alter_topic_add_consumer}accept(e){return e.visitAlter_topic_add_consumer?e.visitAlter_topic_add_consumer(this):e.visitChildren(this)}},Hl=class extends W{static{Si(this,"Topic_create_consumer_entryContext")}constructor(e,t){super(e,t)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}an_id(){return this.getRuleContext(0,Vh)}topic_consumer_with_settings(){return this.getRuleContext(0,Xl)}get ruleIndex(){return rs.RULE_topic_create_consumer_entry}accept(e){return e.visitTopic_create_consumer_entry?e.visitTopic_create_consumer_entry(this):e.visitChildren(this)}},Bl=class extends W{static{Si(this,"Alter_topic_alter_consumerContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Wl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer}accept(e){return e.visitAlter_topic_alter_consumer?e.visitAlter_topic_alter_consumer(this):e.visitChildren(this)}},Wl=class extends W{static{Si(this,"Alter_topic_alter_consumer_entryContext")}constructor(e,t){super(e,t)}topic_alter_consumer_set(){return this.getRuleContext(0,zl)}topic_alter_consumer_reset(){return this.getRuleContext(0,Gl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer_entry}accept(e){return e.visitAlter_topic_alter_consumer_entry?e.visitAlter_topic_alter_consumer_entry(this):e.visitChildren(this)}},Vl=class extends W{static{Si(this,"Alter_topic_drop_consumerContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}get ruleIndex(){return rs.RULE_alter_topic_drop_consumer}accept(e){return e.visitAlter_topic_drop_consumer?e.visitAlter_topic_drop_consumer(this):e.visitChildren(this)}},zl=class extends W{static{Si(this,"Topic_alter_consumer_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_alter_consumer_set}accept(e){return e.visitTopic_alter_consumer_set?e.visitTopic_alter_consumer_set(this):e.visitChildren(this)}},Gl=class extends W{static{Si(this,"Topic_alter_consumer_resetContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_alter_consumer_reset}accept(e){return e.visitTopic_alter_consumer_reset?e.visitTopic_alter_consumer_reset(this):e.visitChildren(this)}},jl=class extends W{static{Si(this,"Alter_topic_set_settingsContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_topic_set_settings}accept(e){return e.visitAlter_topic_set_settings?e.visitAlter_topic_set_settings(this):e.visitChildren(this)}},Kl=class extends W{static{Si(this,"Alter_topic_reset_settingsContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(){return this.getRuleContext(0,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}an_id_pure(e){return void 0===e?this.getRuleContexts(Xh):this.getRuleContext(e,Xh)}get ruleIndex(){return rs.RULE_alter_topic_reset_settings}accept(e){return e.visitAlter_topic_reset_settings?e.visitAlter_topic_reset_settings(this):e.visitChildren(this)}},Yl=class extends W{static{Si(this,"Drop_topic_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_topic_stmt}accept(e){return e.visitDrop_topic_stmt?e.visitDrop_topic_stmt(this):e.visitChildren(this)}},ql=class extends W{static{Si(this,"Topic_settingsContext")}constructor(e,t){super(e,t)}topic_settings_entry(e){return void 0===e?this.getRuleContexts($l):this.getRuleContext(e,$l)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_settings}accept(e){return e.visitTopic_settings?e.visitTopic_settings(this):e.visitChildren(this)}},$l=class extends W{static{Si(this,"Topic_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Ql)}get ruleIndex(){return rs.RULE_topic_settings_entry}accept(e){return e.visitTopic_settings_entry?e.visitTopic_settings_entry(this):e.visitChildren(this)}},Ql=class extends W{static{Si(this,"Topic_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_setting_value}accept(e){return e.visitTopic_setting_value?e.visitTopic_setting_value(this):e.visitChildren(this)}},Xl=class extends W{static{Si(this,"Topic_consumer_with_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_consumer_with_settings}accept(e){return e.visitTopic_consumer_with_settings?e.visitTopic_consumer_with_settings(this):e.visitChildren(this)}},Zl=class extends W{static{Si(this,"Topic_consumer_settingsContext")}constructor(e,t){super(e,t)}topic_consumer_settings_entry(e){return void 0===e?this.getRuleContexts(Jl):this.getRuleContext(e,Jl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_consumer_settings}accept(e){return e.visitTopic_consumer_settings?e.visitTopic_consumer_settings(this):e.visitChildren(this)}},Jl=class extends W{static{Si(this,"Topic_consumer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,eh)}get ruleIndex(){return rs.RULE_topic_consumer_settings_entry}accept(e){return e.visitTopic_consumer_settings_entry?e.visitTopic_consumer_settings_entry(this):e.visitChildren(this)}},eh=class extends W{static{Si(this,"Topic_consumer_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_consumer_setting_value}accept(e){return e.visitTopic_consumer_setting_value?e.visitTopic_consumer_setting_value(this):e.visitChildren(this)}},th=class extends W{static{Si(this,"Topic_refContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_topic_ref}accept(e){return e.visitTopic_ref?e.visitTopic_ref(this):e.visitChildren(this)}},ih=class extends W{static{Si(this,"Topic_consumer_refContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_topic_consumer_ref}accept(e){return e.visitTopic_consumer_ref?e.visitTopic_consumer_ref(this):e.visitChildren(this)}},sh=class extends W{static{Si(this,"Null_treatmentContext")}constructor(e,t){super(e,t)}RESPECT(){return this.getToken(rs.RESPECT,0)}NULLS(){return this.getToken(rs.NULLS,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}get ruleIndex(){return rs.RULE_null_treatment}accept(e){return e.visitNull_treatment?e.visitNull_treatment(this):e.visitChildren(this)}},nh=class extends W{static{Si(this,"Filter_clauseContext")}constructor(e,t){super(e,t)}FILTER(){return this.getToken(rs.FILTER,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}where_expr(){return this.getRuleContext(0,Ld)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_filter_clause}accept(e){return e.visitFilter_clause?e.visitFilter_clause(this):e.visitChildren(this)}},rh=class extends W{static{Si(this,"Window_name_or_specificationContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_name_or_specification}accept(e){return e.visitWindow_name_or_specification?e.visitWindow_name_or_specification(this):e.visitChildren(this)}},oh=class extends W{static{Si(this,"Window_nameContext")}constructor(e,t){super(e,t)}an_id_window(){return this.getRuleContext(0,Yh)}get ruleIndex(){return rs.RULE_window_name}accept(e){return e.visitWindow_name?e.visitWindow_name(this):e.visitChildren(this)}},ah=class extends W{static{Si(this,"Window_clauseContext")}constructor(e,t){super(e,t)}WINDOW(){return this.getToken(rs.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,ch)}get ruleIndex(){return rs.RULE_window_clause}accept(e){return e.visitWindow_clause?e.visitWindow_clause(this):e.visitChildren(this)}},ch=class extends W{static{Si(this,"Window_definition_listContext")}constructor(e,t){super(e,t)}window_definition(e){return void 0===e?this.getRuleContexts(lh):this.getRuleContext(e,lh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_window_definition_list}accept(e){return e.visitWindow_definition_list?e.visitWindow_definition_list(this):e.visitChildren(this)}},lh=class extends W{static{Si(this,"Window_definitionContext")}constructor(e,t){super(e,t)}new_window_name(){return this.getRuleContext(0,hh)}AS(){return this.getToken(rs.AS,0)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_definition}accept(e){return e.visitWindow_definition?e.visitWindow_definition(this):e.visitChildren(this)}},hh=class extends W{static{Si(this,"New_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_new_window_name}accept(e){return e.visitNew_window_name?e.visitNew_window_name(this):e.visitChildren(this)}},dh=class extends W{static{Si(this,"Window_specificationContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,uh)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_window_specification}accept(e){return e.visitWindow_specification?e.visitWindow_specification(this):e.visitChildren(this)}},uh=class extends W{static{Si(this,"Window_specification_detailsContext")}constructor(e,t){super(e,t)}existing_window_name(){return this.getRuleContext(0,gh)}window_partition_clause(){return this.getRuleContext(0,ph)}window_order_clause(){return this.getRuleContext(0,mh)}window_frame_clause(){return this.getRuleContext(0,fh)}get ruleIndex(){return rs.RULE_window_specification_details}accept(e){return e.visitWindow_specification_details?e.visitWindow_specification_details(this):e.visitChildren(this)}},gh=class extends W{static{Si(this,"Existing_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_existing_window_name}accept(e){return e.visitExisting_window_name?e.visitExisting_window_name(this):e.visitChildren(this)}},ph=class extends W{static{Si(this,"Window_partition_clauseContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_window_partition_clause}accept(e){return e.visitWindow_partition_clause?e.visitWindow_partition_clause(this):e.visitChildren(this)}},mh=class extends W{static{Si(this,"Window_order_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_window_order_clause}accept(e){return e.visitWindow_order_clause?e.visitWindow_order_clause(this):e.visitChildren(this)}},fh=class extends W{static{Si(this,"Window_frame_clauseContext")}constructor(e,t){super(e,t)}window_frame_units(){return this.getRuleContext(0,_h)}window_frame_extent(){return this.getRuleContext(0,vh)}window_frame_exclusion(){return this.getRuleContext(0,bh)}get ruleIndex(){return rs.RULE_window_frame_clause}accept(e){return e.visitWindow_frame_clause?e.visitWindow_frame_clause(this):e.visitChildren(this)}},_h=class extends W{static{Si(this,"Window_frame_unitsContext")}constructor(e,t){super(e,t)}ROWS(){return this.getToken(rs.ROWS,0)}RANGE(){return this.getToken(rs.RANGE,0)}GROUPS(){return this.getToken(rs.GROUPS,0)}get ruleIndex(){return rs.RULE_window_frame_units}accept(e){return e.visitWindow_frame_units?e.visitWindow_frame_units(this):e.visitChildren(this)}},vh=class extends W{static{Si(this,"Window_frame_extentContext")}constructor(e,t){super(e,t)}window_frame_bound(){return this.getRuleContext(0,Eh)}window_frame_between(){return this.getRuleContext(0,Ch)}get ruleIndex(){return rs.RULE_window_frame_extent}accept(e){return e.visitWindow_frame_extent?e.visitWindow_frame_extent(this):e.visitChildren(this)}},Ch=class extends W{static{Si(this,"Window_frame_betweenContext")}constructor(e,t){super(e,t)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}window_frame_bound(e){return void 0===e?this.getRuleContexts(Eh):this.getRuleContext(e,Eh)}AND(){return this.getToken(rs.AND,0)}get ruleIndex(){return rs.RULE_window_frame_between}accept(e){return e.visitWindow_frame_between?e.visitWindow_frame_between(this):e.visitChildren(this)}},Eh=class extends W{static{Si(this,"Window_frame_boundContext")}constructor(e,t){super(e,t)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}expr(){return this.getRuleContext(0,gs)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}get ruleIndex(){return rs.RULE_window_frame_bound}accept(e){return e.visitWindow_frame_bound?e.visitWindow_frame_bound(this):e.visitChildren(this)}},bh=class extends W{static{Si(this,"Window_frame_exclusionContext")}constructor(e,t){super(e,t)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}GROUP(){return this.getToken(rs.GROUP,0)}TIES(){return this.getToken(rs.TIES,0)}NO(){return this.getToken(rs.NO,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}get ruleIndex(){return rs.RULE_window_frame_exclusion}accept(e){return e.visitWindow_frame_exclusion?e.visitWindow_frame_exclusion(this):e.visitChildren(this)}},Sh=class extends W{static{Si(this,"Use_stmtContext")}constructor(e,t){super(e,t)}USE(){return this.getToken(rs.USE,0)}cluster_expr(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_use_stmt}accept(e){return e.visitUse_stmt?e.visitUse_stmt(this):e.visitChildren(this)}},yh=class extends W{static{Si(this,"Subselect_stmtContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,fr)}get ruleIndex(){return rs.RULE_subselect_stmt}accept(e){return e.visitSubselect_stmt?e.visitSubselect_stmt(this):e.visitChildren(this)}},wh=class extends W{static{Si(this,"Named_nodes_stmtContext")}constructor(e,t){super(e,t)}bind_parameter_list(){return this.getRuleContext(0,Tn)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}subselect_stmt(){return this.getRuleContext(0,yh)}get ruleIndex(){return rs.RULE_named_nodes_stmt}accept(e){return e.visitNamed_nodes_stmt?e.visitNamed_nodes_stmt(this):e.visitChildren(this)}},Rh=class extends W{static{Si(this,"Commit_stmtContext")}constructor(e,t){super(e,t)}COMMIT(){return this.getToken(rs.COMMIT,0)}get ruleIndex(){return rs.RULE_commit_stmt}accept(e){return e.visitCommit_stmt?e.visitCommit_stmt(this):e.visitChildren(this)}},Lh=class extends W{static{Si(this,"Rollback_stmtContext")}constructor(e,t){super(e,t)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}get ruleIndex(){return rs.RULE_rollback_stmt}accept(e){return e.visitRollback_stmt?e.visitRollback_stmt(this):e.visitChildren(this)}},Th=class extends W{static{Si(this,"Analyze_tableContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}column_list(){return this.getRuleContext(0,mn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_analyze_table}accept(e){return e.visitAnalyze_table?e.visitAnalyze_table(this):e.visitChildren(this)}},xh=class extends W{static{Si(this,"Analyze_table_listContext")}constructor(e,t){super(e,t)}analyze_table(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_analyze_table_list}accept(e){return e.visitAnalyze_table_list?e.visitAnalyze_table_list(this):e.visitChildren(this)}},kh=class extends W{static{Si(this,"Analyze_stmtContext")}constructor(e,t){super(e,t)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,xh)}get ruleIndex(){return rs.RULE_analyze_stmt}accept(e){return e.visitAnalyze_stmt?e.visitAnalyze_stmt(this):e.visitChildren(this)}},Ah=class extends W{static{Si(this,"Alter_sequence_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}alter_sequence_action(e){return void 0===e?this.getRuleContexts(Nh):this.getRuleContext(e,Nh)}get ruleIndex(){return rs.RULE_alter_sequence_stmt}accept(e){return e.visitAlter_sequence_stmt?e.visitAlter_sequence_stmt(this):e.visitChildren(this)}},Nh=class extends W{static{Si(this,"Alter_sequence_actionContext")}constructor(e,t){super(e,t)}START(){return this.getToken(rs.START,0)}integer(){return this.getRuleContext(0,Ed)}WITH(){return this.getToken(rs.WITH,0)}RESTART(){return this.getToken(rs.RESTART,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}BY(){return this.getToken(rs.BY,0)}get ruleIndex(){return rs.RULE_alter_sequence_action}accept(e){return e.visitAlter_sequence_action?e.visitAlter_sequence_action(this):e.visitChildren(this)}},Ih=class extends W{static{Si(this,"IdentifierContext")}constructor(e,t){super(e,t)}ID_PLAIN(){return this.getToken(rs.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(rs.ID_QUOTED,0)}get ruleIndex(){return rs.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}},Oh=class extends W{static{Si(this,"IdContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword(){return this.getRuleContext(0,ad)}get ruleIndex(){return rs.RULE_id}accept(e){return e.visitId?e.visitId(this):e.visitChildren(this)}},Dh=class extends W{static{Si(this,"Id_schemaContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_schema}accept(e){return e.visitId_schema?e.visitId_schema(this):e.visitChildren(this)}},Mh=class extends W{static{Si(this,"Id_exprContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr}accept(e){return e.visitId_expr?e.visitId_expr(this):e.visitChildren(this)}},Ph=class extends W{static{Si(this,"Id_expr_inContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr_in}accept(e){return e.visitId_expr_in?e.visitId_expr_in(this):e.visitChildren(this)}},Fh=class extends W{static{Si(this,"Id_windowContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_window}accept(e){return e.visitId_window?e.visitId_window(this):e.visitChildren(this)}},Uh=class extends W{static{Si(this,"Id_tableContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_table}accept(e){return e.visitId_table?e.visitId_table(this):e.visitChildren(this)}},Hh=class extends W{static{Si(this,"Id_withoutContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_without}accept(e){return e.visitId_without?e.visitId_without(this):e.visitChildren(this)}},Bh=class extends W{static{Si(this,"Id_hintContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}get ruleIndex(){return rs.RULE_id_hint}accept(e){return e.visitId_hint?e.visitId_hint(this):e.visitChildren(this)}},Wh=class extends W{static{Si(this,"Id_as_compatContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_as_compat(){return this.getRuleContext(0,md)}get ruleIndex(){return rs.RULE_id_as_compat}accept(e){return e.visitId_as_compat?e.visitId_as_compat(this):e.visitChildren(this)}},Vh=class extends W{static{Si(this,"An_idContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id}accept(e){return e.visitAn_id?e.visitAn_id(this):e.visitChildren(this)}},zh=class extends W{static{Si(this,"An_id_or_typeContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_or_type}accept(e){return e.visitAn_id_or_type?e.visitAn_id_or_type(this):e.visitChildren(this)}},Gh=class extends W{static{Si(this,"An_id_schemaContext")}constructor(e,t){super(e,t)}id_schema(){return this.getRuleContext(0,Dh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_schema}accept(e){return e.visitAn_id_schema?e.visitAn_id_schema(this):e.visitChildren(this)}},jh=class extends W{static{Si(this,"An_id_exprContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr}accept(e){return e.visitAn_id_expr?e.visitAn_id_expr(this):e.visitChildren(this)}},Kh=class extends W{static{Si(this,"An_id_expr_inContext")}constructor(e,t){super(e,t)}id_expr_in(){return this.getRuleContext(0,Ph)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr_in}accept(e){return e.visitAn_id_expr_in?e.visitAn_id_expr_in(this):e.visitChildren(this)}},Yh=class extends W{static{Si(this,"An_id_windowContext")}constructor(e,t){super(e,t)}id_window(){return this.getRuleContext(0,Fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_window}accept(e){return e.visitAn_id_window?e.visitAn_id_window(this):e.visitChildren(this)}},qh=class extends W{static{Si(this,"An_id_tableContext")}constructor(e,t){super(e,t)}id_table(){return this.getRuleContext(0,Uh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_table}accept(e){return e.visitAn_id_table?e.visitAn_id_table(this):e.visitChildren(this)}},$h=class extends W{static{Si(this,"An_id_withoutContext")}constructor(e,t){super(e,t)}id_without(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_without}accept(e){return e.visitAn_id_without?e.visitAn_id_without(this):e.visitChildren(this)}},Qh=class extends W{static{Si(this,"An_id_hintContext")}constructor(e,t){super(e,t)}id_hint(){return this.getRuleContext(0,Bh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_hint}accept(e){return e.visitAn_id_hint?e.visitAn_id_hint(this):e.visitChildren(this)}},Xh=class extends W{static{Si(this,"An_id_pureContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_pure}accept(e){return e.visitAn_id_pure?e.visitAn_id_pure(this):e.visitChildren(this)}},Zh=class extends W{static{Si(this,"An_id_as_compatContext")}constructor(e,t){super(e,t)}id_as_compat(){return this.getRuleContext(0,Wh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_as_compat}accept(e){return e.visitAn_id_as_compat?e.visitAn_id_as_compat(this):e.visitChildren(this)}},Jh=class extends W{static{Si(this,"View_nameContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}get ruleIndex(){return rs.RULE_view_name}accept(e){return e.visitView_name?e.visitView_name(this):e.visitChildren(this)}},ed=class extends W{static{Si(this,"Opt_id_prefixContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix}accept(e){return e.visitOpt_id_prefix?e.visitOpt_id_prefix(this):e.visitChildren(this)}},td=class extends W{static{Si(this,"Cluster_exprContext")}constructor(e,t){super(e,t)}pure_column_or_named(){return this.getRuleContext(0,dn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(){return this.getRuleContext(0,Vh)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_cluster_expr}accept(e){return e.visitCluster_expr?e.visitCluster_expr(this):e.visitChildren(this)}},id=class extends W{static{Si(this,"Id_or_typeContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_or_type}accept(e){return e.visitId_or_type?e.visitId_or_type(this):e.visitChildren(this)}},sd=class extends W{static{Si(this,"Opt_id_prefix_or_typeContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix_or_type}accept(e){return e.visitOpt_id_prefix_or_type?e.visitOpt_id_prefix_or_type(this):e.visitChildren(this)}},nd=class extends W{static{Si(this,"Id_or_atContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_or_at}accept(e){return e.visitId_or_at?e.visitId_or_at(this):e.visitChildren(this)}},rd=class extends W{static{Si(this,"Id_table_or_typeContext")}constructor(e,t){super(e,t)}an_id_table(){return this.getRuleContext(0,qh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_table_or_type}accept(e){return e.visitId_table_or_type?e.visitId_table_or_type(this):e.visitChildren(this)}},od=class extends W{static{Si(this,"Id_table_or_atContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_table_or_at}accept(e){return e.visitId_table_or_at?e.visitId_table_or_at(this):e.visitChildren(this)}},ad=class extends W{static{Si(this,"KeywordContext")}constructor(e,t){super(e,t)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_keyword}accept(e){return e.visitKeyword?e.visitKeyword(this):e.visitChildren(this)}},cd=class extends W{static{Si(this,"Keyword_expr_uncompatContext")}constructor(e,t){super(e,t)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}BITCAST(){return this.getToken(rs.BITCAST,0)}CASE(){return this.getToken(rs.CASE,0)}CAST(){return this.getToken(rs.CAST,0)}CUBE(){return this.getToken(rs.CUBE,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}FROM(){return this.getToken(rs.FROM,0)}FULL(){return this.getToken(rs.FULL,0)}HOP(){return this.getToken(rs.HOP,0)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}PROCESS(){return this.getToken(rs.PROCESS,0)}REDUCE(){return this.getToken(rs.REDUCE,0)}RETURN(){return this.getToken(rs.RETURN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}SELECT(){return this.getToken(rs.SELECT,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}WHEN(){return this.getToken(rs.WHEN,0)}WHERE(){return this.getToken(rs.WHERE,0)}get ruleIndex(){return rs.RULE_keyword_expr_uncompat}accept(e){return e.visitKeyword_expr_uncompat?e.visitKeyword_expr_uncompat(this):e.visitChildren(this)}},ld=class extends W{static{Si(this,"Keyword_table_uncompatContext")}constructor(e,t){super(e,t)}ANY(){return this.getToken(rs.ANY,0)}ERASE(){return this.getToken(rs.ERASE,0)}STREAM(){return this.getToken(rs.STREAM,0)}get ruleIndex(){return rs.RULE_keyword_table_uncompat}accept(e){return e.visitKeyword_table_uncompat?e.visitKeyword_table_uncompat(this):e.visitChildren(this)}},hd=class extends W{static{Si(this,"Keyword_select_uncompatContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}ASSUME(){return this.getToken(rs.ASSUME,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}HAVING(){return this.getToken(rs.HAVING,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}LIMIT(){return this.getToken(rs.LIMIT,0)}UNION(){return this.getToken(rs.UNION,0)}WINDOW(){return this.getToken(rs.WINDOW,0)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}get ruleIndex(){return rs.RULE_keyword_select_uncompat}accept(e){return e.visitKeyword_select_uncompat?e.visitKeyword_select_uncompat(this):e.visitChildren(this)}},dd=class extends W{static{Si(this,"Keyword_alter_uncompatContext")}constructor(e,t){super(e,t)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_keyword_alter_uncompat}accept(e){return e.visitKeyword_alter_uncompat?e.visitKeyword_alter_uncompat(this):e.visitChildren(this)}},ud=class extends W{static{Si(this,"Keyword_in_uncompatContext")}constructor(e,t){super(e,t)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_keyword_in_uncompat}accept(e){return e.visitKeyword_in_uncompat?e.visitKeyword_in_uncompat(this):e.visitChildren(this)}},gd=class extends W{static{Si(this,"Keyword_window_uncompatContext")}constructor(e,t){super(e,t)}GROUPS(){return this.getToken(rs.GROUPS,0)}RANGE(){return this.getToken(rs.RANGE,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_keyword_window_uncompat}accept(e){return e.visitKeyword_window_uncompat?e.visitKeyword_window_uncompat(this):e.visitChildren(this)}},pd=class extends W{static{Si(this,"Keyword_hint_uncompatContext")}constructor(e,t){super(e,t)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}get ruleIndex(){return rs.RULE_keyword_hint_uncompat}accept(e){return e.visitKeyword_hint_uncompat?e.visitKeyword_hint_uncompat(this):e.visitChildren(this)}},md=class extends W{static{Si(this,"Keyword_as_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}LAST(){return this.getToken(rs.LAST,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_as_compat}accept(e){return e.visitKeyword_as_compat?e.visitKeyword_as_compat(this):e.visitChildren(this)}},fd=class extends W{static{Si(this,"Keyword_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLATE(){return this.getToken(rs.COLLATE,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CROSS(){return this.getToken(rs.CROSS,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DO(){return this.getToken(rs.DO,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INNER(){return this.getToken(rs.INNER,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}JOIN(){return this.getToken(rs.JOIN,0)}KEY(){return this.getToken(rs.KEY,0)}LAST(){return this.getToken(rs.LAST,0)}LEFT(){return this.getToken(rs.LEFT,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ON(){return this.getToken(rs.ON,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}ORDER(){return this.getToken(rs.ORDER,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}OUTER(){return this.getToken(rs.OUTER,0)}OVER(){return this.getToken(rs.OVER,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRESORT(){return this.getToken(rs.PRESORT,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}RESULT(){return this.getToken(rs.RESULT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SEMI(){return this.getToken(rs.SEMI,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}USING(){return this.getToken(rs.USING,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIEW(){return this.getToken(rs.VIEW,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WITH(){return this.getToken(rs.WITH,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_compat}accept(e){return e.visitKeyword_compat?e.visitKeyword_compat(this):e.visitChildren(this)}},_d=class extends W{static{Si(this,"Type_idContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}TUPLE(){return this.getToken(rs.TUPLE,0)}STRUCT(){return this.getToken(rs.STRUCT,0)}VARIANT(){return this.getToken(rs.VARIANT,0)}LIST(){return this.getToken(rs.LIST,0)}FLOW(){return this.getToken(rs.FLOW,0)}DICT(){return this.getToken(rs.DICT,0)}SET(){return this.getToken(rs.SET,0)}ENUM(){return this.getToken(rs.ENUM,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}TAGGED(){return this.getToken(rs.TAGGED,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_type_id}accept(e){return e.visitType_id?e.visitType_id(this):e.visitChildren(this)}},vd=class extends W{static{Si(this,"Bool_valueContext")}constructor(e,t){super(e,t)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bool_value}accept(e){return e.visitBool_value?e.visitBool_value(this):e.visitChildren(this)}},Cd=class extends W{static{Si(this,"RealContext")}constructor(e,t){super(e,t)}REAL(){return this.getToken(rs.REAL,0)}get ruleIndex(){return rs.RULE_real}accept(e){return e.visitReal?e.visitReal(this):e.visitChildren(this)}},Ed=class extends W{static{Si(this,"IntegerContext")}constructor(e,t){super(e,t)}DIGITS(){return this.getToken(rs.DIGITS,0)}INTEGER_VALUE(){return this.getToken(rs.INTEGER_VALUE,0)}get ruleIndex(){return rs.RULE_integer}accept(e){return e.visitInteger?e.visitInteger(this):e.visitChildren(this)}},bd=class extends W{static{Si(this,"Sql_query_yqContext")}constructor(e,t){super(e,t)}sql_stmt_list_yq(){return this.getRuleContext(0,Sd)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query_yq}accept(e){return e.visitSql_query_yq?e.visitSql_query_yq(this):e.visitChildren(this)}},Sd=class extends W{static{Si(this,"Sql_stmt_list_yqContext")}constructor(e,t){super(e,t)}sql_stmt_yq(e){return void 0===e?this.getRuleContexts(yd):this.getRuleContext(e,yd)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list_yq}accept(e){return e.visitSql_stmt_list_yq?e.visitSql_stmt_list_yq(this):e.visitChildren(this)}},yd=class extends W{static{Si(this,"Sql_stmt_yqContext")}constructor(e,t){super(e,t)}sql_stmt_core_yq(){return this.getRuleContext(0,wd)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt_yq}accept(e){return e.visitSql_stmt_yq?e.visitSql_stmt_yq(this):e.visitChildren(this)}},wd=class extends W{static{Si(this,"Sql_stmt_core_yqContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt_yq(){return this.getRuleContext(0,ko)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_sql_stmt_core_yq}accept(e){return e.visitSql_stmt_core_yq?e.visitSql_stmt_core_yq(this):e.visitChildren(this)}},Rd=class extends W{static{Si(this,"Replication_nameContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_replication_name}accept(e){return e.visitReplication_name?e.visitReplication_name(this):e.visitChildren(this)}},Ld=class extends W{static{Si(this,"Where_exprContext")}constructor(e,t){super(e,t)}WHERE(){return this.getToken(rs.WHERE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_where_expr}accept(e){return e.visitWhere_expr?e.visitWhere_expr(this):e.visitChildren(this)}},Td=class extends vt{static{Si(this,"YQLVisitor")}},xd={SPACE:rs.WS,FROM:rs.FROM,OPENING_BRACKET:rs.LPAREN,CLOSING_BRACKET:rs.RPAREN,ALTER:rs.ALTER,INSERT:rs.INSERT,UPSERT:rs.UPSERT,UPDATE:rs.UPDATE,JOIN:rs.JOIN,SEMICOLON:rs.SEMICOLON,SELECT:rs.SELECT};function kd(e,t,i,s){let n,r=i-1;do{if(n=e.get(r),n?.type===s)return!0;r--}while(n?.type===t.SPACE);return!1}function Ad(e){let t=new Map(e.map((e=>[e,!0])));return{anyRuleInList:e=>(Array.isArray(e)?e:[e]).some((e=>t.has(e))),allRulesInList:e=>!e.some((e=>!t.has(e)))}}function Nd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_window_specification_details,rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Id({anyRuleInList:e}){return e([rs.RULE_alter_object_stmt,rs.RULE_drop_object_stmt])&&e(rs.RULE_id_or_at)}function Od({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_id_or_at))return;let s=e(rs.RULE_drop_table_stmt)&&!!ss(t,xd,i,rs.TABLESTORE);return e(rs.RULE_alter_table_store_stmt)||s}function Dd({anyRuleInList:e,allRulesInList:t,tokenStream:i,cursorTokenIndex:s}){if(!e([rs.RULE_id_or_at,rs.RULE_id_table_or_type]))return;let n=e(rs.RULE_replication_target)&&!e(rs.RULE_replication_name),r=t([rs.RULE_simple_table_ref])&&!ss(i,xd,s,rs.CREATE)&&!ss(i,xd,s,rs.EXTERNAL);return e([rs.RULE_table_ref,rs.RULE_table_inherits])||r||n}function Md({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.USER),n=!!ss(t,xd,i,rs.RENAME),r=e(rs.RULE_revoke_permissions_stmt),o=e(rs.RULE_alter_group_stmt)&&!n&&s,a=e(rs.RULE_create_group_stmt)&&s,c=e(rs.RULE_alter_user_stmt)&&!n;return e(rs.RULE_drop_role_stmt)&&s||c||a||o||r}function Pd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.GROUP),n=!!ss(t,xd,i,rs.USER),r=!!ss(t,xd,i,rs.RENAME),o=e(rs.RULE_drop_role_stmt)&&s,a=e(rs.RULE_alter_group_stmt)&&!r&&!n;return e(rs.RULE_revoke_permissions_stmt)||a||o}function Fd({anyRuleInList:e}){if(e([rs.RULE_an_id,rs.RULE_topic_ref]))return e([rs.RULE_drop_topic_stmt,rs.RULE_alter_topic_stmt])}function Ud({allRulesInList:e}){return e([rs.RULE_drop_view_stmt,rs.RULE_id_or_at])||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Hd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_alter_replication_stmt,rs.RULE_drop_replication_stmt])}function Bd({allRulesInList:e,tokenStream:t,cursorTokenIndex:i}){let s=!!ss(t,xd,i,rs.EXTERNAL);return e([rs.RULE_id_or_at,rs.RULE_drop_table_stmt])&&s||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Wd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_drop_external_data_source_stmt,rs.RULE_alter_external_data_source_stmt])}function Vd({anyRuleInList:e}){return!!e(rs.RULE_an_id)&&e([rs.RULE_alter_table_drop_index,rs.RULE_alter_table_rename_index_to])}function zd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e([rs.RULE_an_id,rs.RULE_id_expr])||e([rs.RULE_table_ref,rs.RULE_values_stmt,rs.RULE_alter_table_add_column,rs.RULE_lambda_stmt]))return!1;let s=e(rs.RULE_select_kind)&&!ss(t,xd,i,rs.LIMIT),n=e(rs.RULE_alter_table_alter_column)&&!ss(t,xd,i,rs.FAMILY);return e([rs.RULE_pure_column_list,rs.RULE_pure_column_or_named,rs.RULE_column_name,rs.RULE_without_column_name,rs.RULE_alter_table_drop_column,rs.RULE_delete_stmt])||n||s}function Gd(e){if(!zd(e))return!1;let{tokenStream:t,cursorTokenIndex:i,anyRuleInList:s,allRulesInList:n}=e;return s([rs.RULE_into_table_stmt,rs.RULE_into_table_stmt_yq])&&s(rs.RULE_into_values_source)?kd(t,xd,i,rs.LPAREN):!!n([rs.RULE_select_stmt,rs.RULE_result_column])&&kd(t,xd,i,rs.SELECT)}function jd({anyRuleInList:e}){return e([rs.RULE_expr,rs.RULE_table_ref,rs.RULE_simple_table_ref_core,rs.RULE_pure_column_or_named,rs.RULE_using_call_expr])}function Kd({anyRuleInList:e,allRulesInList:t}){let i=t([rs.RULE_id_expr,rs.RULE_select_stmt])&&!e(rs.RULE_table_ref);return e(rs.RULE_type_name_simple)||i}function Yd({allRulesInList:e}){return e([rs.RULE_an_id,rs.RULE_pragma_stmt])}function qd({anyRuleInList:e}){if(e([rs.RULE_atom_expr,rs.RULE_in_atom_expr])&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function $d({allRulesInList:e}){return e([rs.RULE_id_expr,rs.RULE_table_ref])}function Qd({anyRuleInList:e}){if(e(rs.RULE_id_expr)&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Xd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Zd({allRulesInList:e}){return e([rs.RULE_an_id_hint,rs.RULE_table_hint])}function Jd({allRulesInList:e,anyRuleInList:t}){if(!t([rs.RULE_table_setting_value,rs.RULE_topic_setting_value,rs.RULE_topic_consumer_setting_value])){if(e([rs.RULE_with_table_settings,rs.RULE_an_id]))return t(rs.RULE_create_external_data_source_stmt)?"externalDataSource":t(rs.RULE_create_view_stmt)?"view":t(rs.RULE_create_table_stmt)?"table":void 0;if(e([rs.RULE_with_topic_settings,rs.RULE_an_id]))return"topic";if(e([rs.RULE_topic_consumer_with_settings,rs.RULE_an_id]))return"topicConsumer";if(e([rs.RULE_replication_settings,rs.RULE_an_id]))return"replication"}}Si(kd,"isFirstPreviousTokenOfType"),Si(Ad,"getRuleCheckHelpers"),Si(Nd,"getWindowFunctionsSuggestions"),Si(Id,"getObjectSuggestions"),Si(Od,"getTablestoreSuggestions"),Si(Dd,"getTableSuggestions"),Si(Md,"getUserSuggestions"),Si(Pd,"getGroupSuggestions"),Si(Fd,"getTopicSuggestions"),Si(Ud,"getViewSuggestions"),Si(Hd,"getReplicationSuggestions"),Si(Bd,"getExternalTableSuggestions"),Si(Wd,"getExternalDatasourceSuggestions"),Si(Vd,"checkShouldSuggestTableIndexes"),Si(zd,"checkShouldSuggestColumns"),Si(Gd,"checkShouldSuggestAllColumns"),Si(jd,"checkShouldSuggestVariables"),Si(Kd,"getSimpleTypesSuggestions"),Si(Yd,"getPragmasSuggestions"),Si(qd,"getUdfsSuggestions"),Si($d,"getTableFunctionsSuggestions"),Si(Qd,"getFunctionsSuggestions"),Si(Xd,"getAggregateFunctionsSuggestions"),Si(Zd,"checkShouldSuggestTableHints"),Si(Jd,"getEntitySettingsSuggestions");var eu=rs.ruleNames;function tu(e){let t=e.findIndex((e=>e===rs.RULE_sql_stmt_core||e===rs.RULE_sql_stmt_core_yq));if(-1===t)return;let i=e[t+1];return i?eu[i]:void 0}Si(tu,"getParticularStatement");var iu={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function su(e,t,i){let s={...Ad(e),cursorTokenIndex:t,tokenStream:i},n=Nd(s),r=Id(s),o=Od(s),a=Dd(s),c=Md(s),l=Pd(s),h=Fd(s),d=Ud(s),u=Hd(s),g=Bd(s),p=Wd(s),m=Vd(s),f=zd(s),_=Gd(s),v=Kd(s),C=Yd(s),E=qd(s),b=$d(s),S=Qd(s),y=Xd(s),w=Zd(s),R=Jd(s);return{suggestWindowFunctions:n,shouldSuggestTableIndexes:m,shouldSuggestColumns:f,shouldSuggestAllColumns:_,shouldSuggestColumnAliases:f,shouldSuggestVariables:jd(s),suggestSimpleTypes:v,suggestPragmas:C,suggestUdfs:E,suggestTableFunctions:b,suggestFunctions:S,suggestAggregateFunctions:y,suggestTableHints:w?tu(e):void 0,suggestEntitySettings:R,suggestObject:r,suggestTableStore:o,suggestTable:a,suggestUser:c,suggestGroup:l,suggestTopic:h,suggestView:d,suggestReplication:u,suggestExternalTable:g,suggestExternalDatasource:p}}function nu(e,t,i){for(let s=0;s<e.size;s++){let n=e.get(s),r=n.column,o=n.text?.length??0,a=n.column+o;if(n.line===t.line&&r<=t.column-1&&a>=t.column-1&&i.includes(n.type)){let t=s-1;for(;t>=0;){let n=e.get(t);if(!i.includes(n.type))return s+1-t;t-=1}}}return 0}function ru(e,t,i,s=[]){return ou(e,t,i,nu(t,i,s))}function ou(e,t,i,s){return e instanceof F?cu(e,i,s):lu(e,t,i,s)}function au(e,t,i,s,n){let r=e.column,o=e.column+t.length;return e.start>e.stop?{index:e.tokenIndex,context:s,text:t.substring(0,i.column)}:e.line===i.line&&r<=i.column-1-n&&o>=i.column-1-n?{index:e.tokenIndex,context:s,text:t.substring(0,i.column-r)}:void 0}function cu(e,t,i){return au(e.symbol,e.getText(),t,e,i)}function lu(e,t,i,s){if(!(!e.start||!e.stop||e.start.line>i.line||e.stop.line<i.line)){for(let n=0;n<e.getChildCount();n++){let r=e.getChild(n);if(!r)continue;let o=ou(r,t,i,s);if(o)return o}for(let n=e.start.tokenIndex;n<=e.stop.tokenIndex;n++){let r=au(t.get(n),t.get(n).text??"",i,e,s);if(r)return r}}}function hu(e,t,i,s,n,r,o,a=[]){let c=s(Di(e,t,o)),l=ru(c,n,r,a);if(!l)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);return i.visit(c),du(i.symbolTable,l.context)}function du(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(qi):e&&(s=e.getNestedSymbolsOfTypeSync(qi).filter((e=>!e.parent?.context))),s.map((e=>({name:e.name,value:e.value})))}function uu(e,t,i,s,n,r,o,a=[]){let c={},l=s(Di(e,t,o)),h=ru(l,n,r,a);if(!h)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);i.visit(l);let d=gu(i.symbolTable,h.context),u=pu(i.symbolTable,h.context);return d.length&&(c.tableContextSuggestion={tables:d}),u.length&&(c.suggestColumnAliases=u),c}function gu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Yi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Yi)),$i(s)}function pu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Xi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Xi)),s.map((({name:e})=>({name:e})))}function mu(){let e=[],t=rs.LBRACE_SQUARE;for(let i=rs.EQUALS;i<=t;i++)i!==rs.ASTERISK&&e.push(i);return e.push(rs.STREAM),e.push(rs.STRING_VALUE),e.push(rs.REAL),e.push(rs.EOF),e.push(rs.DIGITS),e.push(rs.BLOB),e.push(rs.CURRENT_TIME),e.push(rs.CURRENT_DATE),e.push(rs.CURRENT_TIMESTAMP),e}Si(su,"getGranularSuggestions"),Si(nu,"getWhitespaceBeforeCursor"),Si(ru,"computeTokenContext"),Si(ou,"computeTokenContextInternal"),Si(au,"getTokenContext"),Si(cu,"computeTokenContextOfTerminalNode"),Si(lu,"computeTokenContextOfChildNode"),Si(hu,"getVariableSuggestions"),Si(du,"suggestVariables"),Si(uu,"getExtendedTableSuggestions"),Si(gu,"suggestTables"),Si(pu,"suggestColumnAliases"),Si(mu,"getIgnoredTokens");var fu=new Set(mu()),_u=new Set([rs.RULE_id_or_type,rs.RULE_cluster_expr,rs.RULE_identifier,rs.RULE_id,rs.RULE_integer,rs.RULE_type_id,rs.RULE_keyword,rs.RULE_keyword_compat,rs.RULE_keyword_as_compat,rs.RULE_keyword_expr_uncompat,rs.RULE_keyword_table_uncompat,rs.RULE_keyword_select_uncompat,rs.RULE_keyword_alter_uncompat,rs.RULE_keyword_in_uncompat,rs.RULE_keyword_window_uncompat,rs.RULE_keyword_hint_uncompat,rs.RULE_id_schema,rs.RULE_id_expr_in,rs.RULE_id_window,rs.RULE_id_table,rs.RULE_id_without,rs.RULE_id_hint,rs.RULE_id_as_compat]),vu=class extends Td{static{Si(this,"YQLSymbolTableVisitor")}constructor(){super(),this.symbolTable=new Ei("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ci,void 0)}withScope(e,t,i,s){let n=this.symbolTable.addNewSymbolOfType(t,this.scope,...i);n.context=e,this.scope=n;try{return s()}finally{this.scope=n.parent}}getColumnsFromSelectCore(e){let t=[],i=0;for(;i>=0;){let s=e?.result_column(i);if(!s){i=-1;continue}let n=s.an_id_as_compat()?.getText()||s.an_id_or_type()?.getText();if(n)t.push(n);else{let e=s.expr()?.getText();e&&t.push(e)}i+=1}return t.length?t:void 0}defaultResult(){return this.symbolTable}},Cu=class extends vu{constructor(){super(...arguments),this.addVariableSymbol=(e,t)=>{try{let i=0;for(;null!==i;){let s=e(i);s?(this.symbolTable.addNewSymbolOfType(qi,this.scope,s,t),i++):i=null}}catch(Ai){if(!(Ai instanceof ai))throw Ai}},this.visitDeclare_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();if(t){let i=e.literal_value()?.getText();this.symbolTable.addNewSymbolOfType(qi,this.scope,t,i)}}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAction_or_subquery_args=e=>(this.addVariableSymbol((t=>e.opt_bind_parameter(t)?.bind_parameter()?.an_id_or_type()?.getText())),this.visitChildren(e)),this.visitNamed_nodes_stmt=e=>{let t=(e.subselect_stmt()?.select_stmt()?.select_kind_parenthesis(0)||e.subselect_stmt()?.select_unparenthesized_stmt())?.select_kind_partial()?.select_kind()?.select_core(),i=t?this.getColumnsFromSelectCore(t):void 0;return this.addVariableSymbol((t=>e.bind_parameter_list()?.bind_parameter(t)?.an_id_or_type()?.getText()),i?{columns:i}:void 0),this.visitChildren(e)},this.visitDefine_action_or_subquery_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(qi,this.scope,t,void 0)}catch(t){if(!(t instanceof ai))throw t}return this.withScope(e,gi,[e.bind_parameter()?.an_id_or_type()?.getText()],(()=>this.visitChildren(e)))??{}},this.visitLambda=e=>{let t=Si((()=>{let t=e.smart_parenthesis()?.named_expr_list();return this.addVariableSymbol((e=>{let i=t?.named_expr(e)?.expr()?.getText();if(i&&i.startsWith("$"))return i.slice(1)})),this.visitChildren(e)}),"addVariables");return this.withScope(e,gi,[e.getText()],t)??{}}}static{Si(this,"YQLVariableSymbolTableVisitor")}},Eu=class extends vu{constructor(){super(...arguments),this.visitSql_stmt_core=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSelect_stmt=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSql_stmt_core_yq=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSimple_table_ref_core=e=>{try{let t=e.object_ref()?.id_or_at()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAlter_table_store_stmt=e=>{try{e.object_ref()?.id_or_at()?.getText()&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,e.object_ref()?.id_or_at()?.getText())}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_single_source=e=>{try{let t=e.single_source().table_ref()?.getText()??"",i=e.an_id()?.getText()??e.an_id_as_compat()?.getText(),s=e.single_source().select_stmt()?.select_kind_parenthesis(0)?.select_kind_partial()?.select_kind()?.select_core(),n=s?this.getColumnsFromSelectCore(s):void 0;this.symbolTable.addNewSymbolOfType(Yi,this.scope,t,i,n)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_column=e=>{try{let t=e.an_id()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_expr=e=>{try{let t=e.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitResult_column=e=>{try{let t=e.an_id_or_type()?.getText()??e.an_id_as_compat()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)}}static{Si(this,"YQLTableSymbolTableVisitor")}};function bu(e,t,i){let s={};for(let[f,_]of e){if(!xi(t,_))break;switch(f){case rs.RULE_id_table:case rs.RULE_id_hint:case rs.RULE_identifier:case rs.RULE_id_or_type:case rs.RULE_id:{let e=su(_.ruleList,t,i),n=Object.fromEntries(Object.entries(e).filter((([e,t])=>t)));s={...s,...n}}}}let{suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g,...p}=s,m=Object.entries({suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g}).filter((([e,t])=>t)).map((([e])=>iu[e]));return{suggestEntity:m.length?m:void 0,...p}}function Su(e){return e.sql_query()}function yu(e){return e.sql_query_yq()}function wu(e){return(t,i,s,n,r,o)=>{let{shouldSuggestColumns:a,shouldSuggestAllColumns:c,shouldSuggestColumnAliases:l,shouldSuggestTableIndexes:h,shouldSuggestVariables:d,...u}=bu(i,n,s),g={...t,...u,suggestTemplates:Oi(o,r)},p=a||l||h;if(d){let t=new Cu,i=hu(ns,rs,t,e,s,r,o,[rs.WS]);i.length&&(g.suggestVariables=i)}if(p){let t=new Eu,{tableContextSuggestion:i,suggestColumnAliases:n}=uu(ns,rs,t,e,s,r,o,[rs.WS]);a&&i&&(g.suggestColumns={tables:i.tables},c&&(g.suggestColumns.all=!0)),h&&i&&(g.suggestTableIndexes={tables:i.tables}),l&&n&&(g.suggestColumnAliases=n)}return g}}Si(bu,"processVisitedRules"),Si(Su,"getParseTree"),Si(yu,"getParseTreeYQ"),Si(wu,"getEnrichAutocompleteResult");var Ru=new os(null,-1),Lu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:Su,enrichAutocompleteResult:wu(Su),context:Ru},Tu=new bd(null,-1),xu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:yu,enrichAutocompleteResult:wu(yu),context:Tu};function ku(e){return zi(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.getParseTree,e)}function Au(e,t){return ji(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.ignoredTokens,Lu.rulesToVisit,Lu.getParseTree,Lu.enrichAutocompleteResult,e,t,Lu.context)}function Nu(e,t){return ji(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.ignoredTokens,xu.rulesToVisit,xu.getParseTree,xu.enrichAutocompleteResult,e,t,xu.context)}Si(ku,"parseYqlQueryWithoutCursor"),Si(Au,"parseYqlQuery"),Si((function(e){return zi(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.getParseTree,e)}),"parseYqQueryWithoutCursor"),Si(Nu,"parseYqQuery"),Si((function(e){return Au(...Ki(e))}),"parseYqlQueryWithCursor"),Si((function(e){return Nu(...Ki(e))}),"parseYqQueryWithCursor"),Si((function(e){return Vi(ns,ns.symbolicNames,Lu.tokenDictionary.SPACE,e)}),"tokenizeYqlQuery"),Si((function(e){return Hi(e,Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,[Lu.tokenDictionary.SPACE],Lu.tokenDictionary.SEMICOLON,rs.RULE_sql_stmt,Lu.getParseTree)}),"extractYqlStatementPositionsFromQuery")},41845:(e,t,i)=>{"use strict";i.d(t,{p:()=>s,t:()=>n});class s{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class n{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},41893:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(1019);return function(i,n,r){return(n=JSON.parse(JSON.stringify(n))).format=t.YSON,e(s(i.$value,n),n,r)}}},42144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>i.e(1094).then(i.bind(i,51094))})},42291:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s,n=i(91508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(s||(s={})),function(e){const t="error",i="warning",s="info";e.fromValue=function(r){return r?n.Q_(t,r)?e.Error:n.Q_(i,r)||n.Q_("warn",r)?e.Warning:n.Q_(s,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return s;default:return"ignore"}}}(s||(s={}));const r=s},42392:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,iY:()=>s});const s={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class n extends Error{constructor({originalError:e,message:t,code:i=s.UNKNOWN}={}){super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},42522:(e,t,i)=>{"use strict";var s;i.d(t,{f:()=>s}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*s(e){yield e}e.empty=function(){return i},e.single=s,e.wrap=function(e){return t(e)?e:s(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const s of e)if(t(s,i++))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const s of e)yield t(s,i++)},e.flatMap=function*(e,t){let i=0;for(const s of e)yield*t(s,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let s=i;for(const n of e)s=t(s,n);return s},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=Number.POSITIVE_INFINITY){const s=[];if(0===i)return[s,t];const n=t[Symbol.iterator]();for(let r=0;r<i;r++){const t=n.next();if(t.done)return[s,e.empty()];s.push(t.value)}return[s,{[Symbol.iterator]:()=>n}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(s||(s={}))},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>c,Zv:()=>n,dG:()=>o,z5:()=>l});var s=i(64383);function n(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,s=(4294901760&e)>>>16;return new a(0!==s?[r(i,t),r(s,t)]:[r(i,t)])}{const i=[];for(let s=0;s<e.length;s++)i.push(r(e[s],t));return new a(i)}}function r(e,t){const i=!!(2048&e),s=!!(256&e);return new o(2===t?s:i,!!(1024&e),!!(512&e),2===t?i:s,255&e)}class o{constructor(e,t,i,s,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=n}equals(e){return e instanceof o&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}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 a{constructor(e){if(0===e.length)throw(0,s.Qg)("chords");this.chords=e}}class c{constructor(e,t,i,s,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=n,this.keyAriaLabel=r}}class l{}},42572:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(957).then(i.bind(i,53338))})},42731:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});const s={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(44320).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>l,nZ:()=>c});var s=i(91090);let n=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const r=new s.d((()=>n("mouse",!1))),o=new s.d((()=>n("element",!1)));function a(e){n=e}function c(e){return"element"===e?o.value:r.value}function l(){return n("element",!0)}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>l,hB:()=>d,lt:()=>c,wC:()=>u});var s=i(91508),n=i(81782),r=i(83069),o=i(36677),a=i(16223);class c{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);if(10===s)return!0;if(92===s){if(t++,t>=i)break;const s=e.charCodeAt(t);if(110===s||114===s||87===s)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=s.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,n.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function l(e,t,i){if(!i)return new a.Dg(e,null);const s=[];for(let n=0,r=t.length;n<r;n++)s[n]=t[n];return new a.Dg(e,s)}class h{constructor(e){const t=[];let i=0;for(let s=0,n=e.length;s<n;s++)10===e.charCodeAt(s)&&(t[i++]=s);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,s=t.length-1;if(-1===s)return 0;if(e<=t[0])return 0;for(;i<s;){const n=i+((s-i)/2|0);t[n]>=e?s=n-1:t[n+1]>=e?(i=n,s=n):i=n+1}return i+1}}class d{static findMatches(e,t,i,s,n){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new g(r.wordSeparators,r.regex),s,n):this._doFindMatchesLineByLine(e,i,r,s,n):[]}static _getMultilineMatchRange(e,t,i,s,n,r){let a,c,l=0;if(s?(l=s.findLineFeedCountBeforeOffset(n),a=t+n+l):a=t+n,s){const e=s.findLineFeedCountBeforeOffset(n+r.length)-l;c=a+r.length+e}else c=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new o.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,s,n){const r=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(o):null,c=[];let d,u=0;for(i.reset(0);d=i.next(o);)if(c[u++]=l(this._getMultilineMatchRange(e,r,o,a,d.index,d[0]),d,s),u>=n)return c;return c}static _doFindMatchesLineByLine(e,t,i,s,n){const r=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n),r}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n);for(let c=t.startLineNumber+1;c<t.endLineNumber&&o<n;c++)o=this._findMatchesInLine(i,e.getLineContent(c),c,0,o,r,s,n);if(o<n){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(i,a,t.endLineNumber,0,o,r,s,n)}return r}static _findMatchesInLine(e,t,i,s,n,r,c,h){const d=e.wordSeparators;if(!c&&e.simpleSearch){const c=e.simpleSearch,l=c.length,g=t.length;let p=-l;for(;-1!==(p=t.indexOf(c,p+l));)if((!d||u(d,t,g,p,l))&&(r[n++]=new a.Dg(new o.Q(i,p+1+s,i,p+1+l+s),null),n>=h))return n;return n}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(r[n++]=l(new o.Q(i,m.index+1+s,i,m.index+1+m[0].length+s),m,c),n>=h))return n}while(m);return n}static findNextMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const n=new r.y(t.lineNumber,1),a=e.getOffsetAt(n),c=e.getLineCount(),d=e.getValueInRange(new o.Q(n.lineNumber,n.column,c,e.getLineMaxColumn(c)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?l(this._getMultilineMatchRange(e,a,d,u,g.index,g[0]),g,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.y(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r),a=this._findFirstMatchInLine(i,o,r,t.column,s);if(a)return a;for(let c=1;c<=n;c++){const t=(r+c-1)%n,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,o,t+1,1,s);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,s,n){e.reset(s-1);const r=e.next(t);return r?l(new o.Q(i,r.index+1,i,r.index+1+r[0].length),r,n):null}static findPreviousMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const n=this._doFindMatchesMultiline(e,new o.Q(1,1,t.lineNumber,t.column),i,s,9990);if(n.length>0)return n[n.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.y(a,e.getLineMaxColumn(a)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,o,r,s);if(a)return a;for(let c=1;c<=n;c++){const t=(n+r-c-1)%n,o=e.getLineContent(t+1),a=this._findLastMatchInLine(i,o,t+1,s);if(a)return a}return null}static _findLastMatchInLine(e,t,i,s){let n,r=null;for(e.reset(0);n=e.next(t);)r=l(new o.Q(i,n.index+1,i,n.index+1+n[0].length),n,s);return r}}function u(e,t,i,s,n){return function(e,t,i,s,n){if(0===s)return!0;const r=t.charCodeAt(s-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s);if(0!==e.get(i))return!0}return!1}(e,t,0,s,n)&&function(e,t,i,s,n){if(s+n===i)return!0;const r=t.charCodeAt(s+n);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s+n-1);if(0!==e.get(i))return!0}return!1}(e,t,i,s,n)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const n=i.index,r=i[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){s.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||u(this._wordSeparators,e,t,n,r))return i}while(i);return null}}},43932:(e,t,i)=>{e.exports=i(50629)},44026:(e,t,i)=>{"use strict";i.d(t,{tz:()=>a,yy:()=>n});const s={0:" ",1:"u",2:"r"},n=16777215,r=4278190080;class o{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,s=e%32,n=this._states[i];this._states[i]=t?n|1<<s:n&~(1<<s)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new o(e.length),this._userDefinedStates=new o(e.length),this._recoveredStates=new o(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const s=e[e.length-1];return this.getStartLineNumber(s)<=t&&this.getEndLineNumber(s)>=i};for(let i=0,s=this._startIndexes.length;i<s;i++){const s=this._startIndexes[i],r=this._endIndexes[i];if(s>n||r>n)throw new Error("startLineNumber or endLineNumber must not exceed "+n);for(;e.length>0&&!t(s,r);)e.pop();const o=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=s+((255&o)<<24),this._endIndexes[i]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&n}getEndLineNumber(e){return this._endIndexes[e]&n}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let s=0;s<this._types.length;s++)this._types[s]===e&&(this.setCollapsed(s,t),i=!0);return i}toRegion(e){return new c(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&r)>>>24)+((this._endIndexes[e]&r)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const s=Math.floor((t+i)/2);e<this.getStartLineNumber(s)?i=s:t=s+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${s[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&n,endLineNumber:this._endIndexes[e]&n,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),s=new Uint32Array(t);let n=[],r=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,s[a]=t.endLineNumber,n.push(t.type),t.type&&(r=!0)}r||(n=void 0);const o=new a(i,s,n);for(let a=0;a<t;a++)e[a].isCollapsed&&o.setCollapsed(a,!0),o.setSource(a,e[a].source);return o}static sanitizeAndMerge(e,t,i,s){i=i??Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,r=n(e,e.length),o=n(t,t.length);let a=0,c=0,l=r(0),h=o(0);const d=[];let u,g=0;const p=[];for(;l||h;){let e;if(h&&(!l||l.startLineNumber>=h.startLineNumber))l&&l.startLineNumber===h.startLineNumber?(1===h.source?e=h:(e=l,e.isCollapsed=h.isCollapsed&&(l.endLineNumber===h.endLineNumber||!s?.startsInside(l.startLineNumber+1,l.endLineNumber+1)),e.source=0),l=r(++a)):(e=h,h.isCollapsed&&0===h.source&&(e.source=2)),h=o(++c);else{let t=c,i=h;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=r(++a)}if(e){for(;u&&u.endLineNumber<e.startLineNumber;)u=d.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>g&&e.endLineNumber<=i&&(!u||u.endLineNumber>=e.endLineNumber)&&(p.push(e),g=e.startLineNumber,u&&d.push(u),u=e)}}return p}}class c{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},44320:(e,t,i)=>{"use strict";i.d(t,{K:()=>s});const s=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},44588:(e,t,i)=>{"use strict";i.d(t,{WR:()=>B,BP:()=>W});var s=i(90766),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(91508),l=i(631),h=i(55190),d=i(31450),u=i(60002),g=i(62083),p=i(17469),m=i(52903),f=i(46041),_=i(41234),v=i(36677),C=i(64454);class E{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,C.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,s=0,n=Number.MAX_VALUE,r=-1;const o=this._foldingModel.regions;for(;i<o.length;i++){if(!o.isCollapsed(i))continue;const a=o.getStartLineNumber(i)+1,c=o.getEndLineNumber(i);n<=a&&c<=r||(!e&&s<this._hiddenRanges.length&&this._hiddenRanges[s].startLineNumber===a&&this._hiddenRanges[s].endLineNumber===c?(t.push(this._hiddenRanges[s]),s++):(e=!0,t.push(new v.Q(a,1,c,1))),n=a,r=c)}(this._hasLineChanges||e||s<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==b(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let s=null;const n=e=>(s&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,s)||(s=b(this._hiddenRanges,e)),s?s.startLineNumber-1:null);for(let r=0,o=e.length;r<o;r++){let s=e[r];const o=n(s.startLineNumber);o&&(s=s.setStartPosition(o,i.getLineMaxColumn(o)),t=!0);const a=n(s.endLineNumber);a&&(s=s.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[r]=s}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function b(e,t){const i=(0,f.hw)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var S,y=i(76495),w=i(78209),R=i(32848),L=i(46109),T=i(44026),x=i(87784),k=i(58591),A=i(32500),N=i(78381),I=i(56942),O=i(50091),D=i(79400),M=i(23750),P=i(84001),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=new R.N1("foldingEnabled",!1);let B=class extends a.jG{static{S=this}static{this.ID="editor.contrib.folding"}static get(e){return e.getContribution(S.ID)}static getFoldingRangeProviders(e,t){const i=e.foldingRangeProvider.ordered(t);return S._foldingRangeSelector?.(i,t)??i}constructor(e,t,i,s,n,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new W(e);const o=this.editor.getOptions();this._isEnabled=o.get(43),this._useFoldingProviders="indentation"!==o.get(44),this._unfoldOnClickAfterEndOfLine=o.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=o.get(46),this.updateDebounceInfo=n.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new L.rv(e),this.foldingDecorationProvider.showFoldingControls=o.get(111),this.foldingDecorationProvider.showFoldingHighlights=o.get(45),this.foldingEnabled=H.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(111)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(111),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new E(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new s.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new s.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler?.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider?.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider?.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new y.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=S.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new x.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){this.hiddenRangeModel?.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new N.W,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=(0,s.SS)((e=>i.compute(e)));return n.then((i=>{if(i&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(s=h.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const n=this.editor.getSelections();e.update(i,function(e){if(!e||0===e.length)return{startsInside:()=>!1};return{startsInside(t,i){for(const s of e){const e=s.startLineNumber;if(e>=t&&e<=i)return!0}return!1}}}(n)),s?.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,r.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const s of t){const t=s.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,r.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,s=e.target.element.offsetLeft;if(t.offsetX-s<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,s=this.mouseDownInfo.iconClicked,n=e.target.range;if(!n||n.startLineNumber!==i)return;if(s){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||n.startColumn!==e.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const n=r.isCollapsed;if(s||n){let s=[];if(e.event.altKey){const e=e=>!e.containedBy(r)&&!r.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&s.push(t);0===s.length&&(s=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(r))e.isCollapsed===n&&s.push(e);!n&&i&&0!==s.length||s.push(r)}t.toggleCollapseState(s),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};B=S=F([U(1,R.fN),U(2,p.JZ),U(3,k.Ot),U(4,A.ILanguageFeatureDebounceService),U(5,I.ILanguageFeaturesService)],B);class W{constructor(e){this.editor=e,this._onDidChange=new _.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class V extends d.ks{runEditorCommand(e,t,i){const s=e.get(p.JZ),n=B.get(t);if(!n)return;const r=n.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((e=>{if(e){this.invoke(n,e,t,i,s);const r=t.getSelection();r&&n.reveal(r.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function z(e){if(!l.b0(e)){if(!l.Gv(e))return!1;const t=e;if(!l.b0(t.levels)&&!l.Et(t.levels))return!1;if(!l.b0(t.direction)&&!l.Kg(t.direction))return!1;if(!l.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(l.Et)))return!1}return!0}class G extends V{static{this.ID_PREFIX="editor.foldLevel"}static{this.ID=e=>G.ID_PREFIX+e}getFoldingLevel(){return parseInt(this.id.substr(G.ID_PREFIX.length))}invoke(e,t,i){(0,m.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}(0,d.HW)(B.ID,B,0),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfold",label:w.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=s&&s.levels||1,r=this.getLineNumbers(s,i);s&&"up"===s.direction?(0,m.dN)(t,!1,n,r):(0,m.uV)(t,!1,n,r)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldRecursively",label:w.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2142),weight:100}})}invoke(e,t,i,s){(0,m.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.fold",label:w.kg("foldAction.label","Fold"),alias:"Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=this.getLineNumbers(s,i),r=s&&s.levels,o=s&&s.direction;"number"!==typeof r&&"string"!==typeof o?(0,m.W8)(t,!0,n):"up"===o?(0,m.dN)(t,!0,r||1,n):(0,m.uV)(t,!0,r||1,n)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldRecursively",label:w.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2140),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.uV)(t,!0,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFoldRecursively",label:w.kg("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,3114),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAll",label:w.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!0)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAll",label:w.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!1)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllBlockComments",label:w.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2138),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).comments;if(s&&s.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,c.bm)(s.blockCommentStartToken));(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllMarkerRegions",label:w.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2077),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:w.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2078),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!1)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllExcept",label:w.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2136),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!0,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllExcept",label:w.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2134),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFold",label:w.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2090),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoParentFold",label:w.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.kK)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoPreviousFold",label:w.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.JX)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoNextFold",label:w.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.pr)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:w.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2135),weight:100}})}invoke(e,t,i){const s=[],n=i.getSelections();if(n){for(const e of n){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=T.tz.sanitizeAndMerge(t.regions,s,i.getModel()?.getLineCount());t.updatePost(T.tz.fromFoldRanges(e))}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.removeManualFoldingRanges",label:w.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2137),weight:100}})}invoke(e,t,i){const s=i.getSelections();if(s){const i=[];for(const e of s){const{startLineNumber:t,endLineNumber:s}=e;i.push(s>=t?{startLineNumber:t,endLineNumber:s}:{endLineNumber:s,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let j=1;j<=7;j++)(0,d.xX)(new G({id:G.ID(j),label:w.kg("foldLevelAction.label","Fold Level {0}",j),alias:`Fold Level ${j}`,precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2048|21+j),weight:100}}));O.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof D.r))throw(0,r.Qg)();const s=e.get(I.ILanguageFeaturesService),o=e.get(M.IModelService).getModel(i);if(!o)throw(0,r.Qg)();const a=e.get(P.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const c=e.get(p.JZ),l=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new y.hW(o,c,h);let u=d;if("indentation"!==l){const e=B.getFoldingRangeProviders(s,o);e.length&&(u=new x.M(o,e,(()=>{}),h,d))}const m=await u.compute(n.XO.None),f=[];try{if(m)for(let e=0;e<m.length;e++){const t=m.getType(e);f.push({start:m.getStartLineNumber(e),end:m.getEndLineNumber(e),kind:t?g.lO.fromValue(t):void 0})}return f}finally{u.dispose()}}))},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},44798:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(32371),a=i(84585),c=i(45538),l=i(84001),h=i(47612),d=i(32500),u=i(78381),g=i(56942),p=i(74243),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{static{this.ID="editor.contrib.viewportSemanticTokens"}constructor(e,t,i,n,r,o){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=o.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new s.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const c=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{c()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),c()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),c()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),c()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),c())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),c()}))),c()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.K)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,o.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),n=(0,s.SS)((i=>Promise.resolve((0,o.nZ)(this._provider,e,t,i)))),r=new u.W(!1);return n.then((s=>{if(this._debounceInformation.update(e,r.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:n,tokens:o}=s,a=this._semanticTokensStylingService.getStyling(n);e.tokenization.setPartialSemanticTokens(t,(0,c.toMultilineTokens2)(o,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};_=m([f(1,p.ISemanticTokensStylingService),f(2,h.Gy),f(3,l.pG),f(4,d.ILanguageFeatureDebounceService),f(5,g.ILanguageFeaturesService)],_),(0,r.HW)(_.ID,_,1)},44915:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(16980),o=i(24939),a=i(31450),c=i(75326),l=i(60002),h=i(78209),d=i(32848),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=new d.N1("selectionAnchorSet",!1);let m=class{static{s=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(c.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new r.Bc).appendText((0,h.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.xE)((0,h.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(c.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m=s=u([g(1,d.fN)],m);class f extends a.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2080),weight:100}})}async run(e,t){m.get(t)?.setSelectionAnchor()}}class _ extends a.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){m.get(t)?.goToSelectionAnchor()}}class v extends a.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2089),weight:100}})}async run(e,t){m.get(t)?.selectFromAnchorToCursor()}}class C extends a.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){m.get(t)?.cancelSelectionAnchor()}}(0,a.HW)(m.ID,m,4),(0,a.Fl)(f),(0,a.Fl)(_),(0,a.Fl)(v),(0,a.Fl)(C)},45345:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1z",clipRule:"evenodd"}))},45538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>f});i(25982);var s=i(47612),n=i(18801),r=i(83069),o=i(36677),a=i(64454);class c{static create(e,t){return new c(e,new l(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[s,n,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new c(this._startLineNumber,s),new c(this._startLineNumber+r,n)]}applyEdit(e,t){const[i,s,n]=(0,a.W)(t);this.acceptEdit(e,i,s,n,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,i,s,n),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const s=this._tokens.getMaxDeltaLine();if(!(t>=s+1)){if(t<0&&i>=s+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,s,n){if(0===t&&0===i)return;const r=e.lineNumber-this._startLineNumber;if(r<0)return void(this._startLineNumber+=t);r>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(r,e.column-1,t,i,s,n)}}class l{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),s=this._getEndCharacter(e-1);return new o.Q(0,t+1,i,s+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const s=t+Math.floor((i-t)/2),n=this._getDeltaLine(s);if(n<e)t=s+1;else{if(!(n>e)){let n=s;for(;n>t&&this._getDeltaLine(n-1)===e;)n--;let r=s;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new h(this._tokens.subarray(4*n,4*r+4))}i=s-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,s){const n=this._tokens,r=this._tokenCount;let o=0,a=!1,c=0;for(let l=0;l<r;l++){const r=4*l,h=n[r],d=n[r+1],u=n[r+2],g=n[r+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&d<=s))a=!0;else{if(0===o&&(c=h),a){const e=4*o;n[e]=h-c,n[e+1]=d,n[e+2]=u,n[e+3]=g}o++}}return this._tokenCount=o,c}split(e,t,i,s){const n=this._tokens,r=this._tokenCount,o=[],a=[];let c=o,h=0,d=0;for(let l=0;l<r;l++){const r=4*l,o=n[r],u=n[r+1],g=n[r+2],p=n[r+3];if(o>e||o===e&&g>=t){if(o<i||o===i&&u<=s)continue;c!==a&&(c=a,h=0,d=o)}c[h++]=o-d,c[h++]=u,c[h++]=g,c[h++]=p}return[new l(new Uint32Array(o)),new l(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,s,n){const r=this._tokens,o=this._tokenCount,a=s-t;let c=0,l=!1;for(let h=0;h<o;h++){const d=4*h;let u=r[d],g=r[d+1],p=r[d+2];const m=r[d+3];if(u<t||u===t&&p<=i){c++;continue}if(u===t&&g<i)u===s&&p>n?p-=n-i:p=i;else if(u===t&&g===i){if(!(u===s&&p>n)){l=!0;continue}p-=n-i}else if(u<s||u===s&&g<n){if(!(u===s&&p>n)){l=!0;continue}u=t,g=i,p=g+(p-n)}else if(u>s){if(0===a&&!l){c=o;break}u-=a}else{if(!(u===s&&g>=n))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=n-i,p-=n-i}const f=4*c;r[f]=u,r[f+1]=g,r[f+2]=p,r[f+3]=m,c++}this._tokenCount=c}acceptInsertText(e,t,i,s,n,r){const o=0===i&&1===s&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,c=this._tokenCount;for(let l=0;l<c;l++){const r=4*l;let c=a[r],h=a[r+1],d=a[r+2];if(!(c<e||c===e&&d<t)){if(c===e&&d===t){if(!o)continue;d+=1}else if(c===e&&h<t&&t<d)0===i?d+=s:d=t;else{if(c===e&&h===t&&o)continue;if(c===e)if(c+=i,0===i)h+=s,d+=s;else{const e=d-h;h=n+(h-t),d=h+e}else c+=i}a[r]=c,a[r+1]=h,a[r+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=i(10154),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=!1;let m=class{constructor(e,t,i,s){this._legend=e,this._themeService=t,this._languageService=i,this._logService=s,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),n=this._hashTable.get(e,t,s);let r;if(n)r=n.metadata;else{let n=this._legend.tokenTypes[e];const o=[];if(n){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;p;const s=this._themeService.getColorTheme().getTokenStyleMetadata(n,o,i);if("undefined"===typeof s)r=2147483647;else{if(r=0,"undefined"!==typeof s.italic){r|=1|(s.italic?1:0)<<11}if("undefined"!==typeof s.bold){r|=2|(s.bold?2:0)<<11}if("undefined"!==typeof s.underline){r|=4|(s.underline?4:0)<<11}if("undefined"!==typeof s.strikethrough){r|=8|(s.strikethrough?8:0)<<11}if(s.foreground){r|=16|s.foreground<<15}0===r&&(r=2147483647)}}else r=2147483647,n="not-in-legend";this._hashTable.add(e,t,s,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,s,n){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${s} is outside the previous data (length ${n}).`))}};function f(e,t,i){const s=e.data,n=e.data.length/5|0,r=Math.max(Math.ceil(n/1024),400),o=[];let a=0,l=1,h=0;for(;a<n;){const e=a;let d=Math.min(e+r,n);if(d<n){let t=d;for(;t-1>e&&0===s[5*t];)t--;if(t-1===e){let e=d;for(;e+1<n&&0===s[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,p=0,m=0,f=0;for(;a<d;){const e=5*a,n=s[e],r=s[e+1],o=l+n|0,c=0===n?h+r|0:r,d=c+s[e+2]|0,_=s[e+3],v=s[e+4];if(d<=c)t.warnInvalidLengthSemanticTokens(o,c+1);else if(m===o&&f>c)t.warnOverlappingSemanticTokens(o,c+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=o),u[g]=o-p,u[g+1]=c,u[g+2]=d,u[g+3]=e,g+=4,m=o,f=d)}l=o,h=c,a++}g!==u.length&&(u=u.subarray(0,g));const _=c.create(p,u);o.push(_)}return o}m=u([g(1,s.Gy),g(2,d.L),g(3,n.rr)],m);class _{constructor(e,t,i,s){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=s,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const s=this._hashFunc(e,t,i);let n=this._elements[s];for(;n;){if(n.tokenTypeIndex===e&&n.tokenModifierSet===t&&n.languageId===i)return n;n=n.next}return null}add(e,t,i,s){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,s))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},46041:(e,t,i)=>{"use strict";function s(e,t){const i=function(e,t,i=e.length-1){for(let s=i;s>=0;s--){if(t(e[s]))return s}return-1}(e,t);if(-1!==i)return e[i]}function n(e,t){const i=r(e,t);return-1===i?void 0:e[i]}function r(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?n=i+1:r=i}return n-1}function o(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}i.d(t,{Cn:()=>l,TM:()=>u,Uk:()=>s,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>d,lx:()=>n,oH:()=>g,ot:()=>h,vJ:()=>c});class c{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(c.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function l(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>0&&(i=n)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>=0&&(i=n)}return i}function d(e,t){return l(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let s=1;s<e.length;s++){t(e[s],e[i])>0&&(i=s)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}},46109:(e,t,i)=>{"use strict";i.d(t,{E0:()=>d,k0:()=>u,rv:()=>v});var s=i(10350),n=i(87289),r=i(78209),o=i(66261),a=i(61394),c=i(47612),l=i(25689);const h=(0,o.x1A)("editor.foldBackground",{light:(0,o.JO0)(o.seu,.3),dark:(0,o.JO0)(o.seu,.3),hcDark:null,hcLight:null},(0,r.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,o.x1A)("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},(0,r.kg)("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),(0,o.x1A)("editorGutter.foldingControlForeground",o.t4B,(0,r.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const d=(0,a.pU)("folding-expanded",s.W.chevronDown,(0,r.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",s.W.chevronRight,(0,r.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,r.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",d,(0,r.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,c.Yf)(h),position:1},f=(0,r.kg)("linesCollapsed","Click to expand the range."),_=(0,r.kg)("linesExpanded","Click to collapse the range.");class v{static{this.COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.MANUALLY_COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f})}static{this.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f})}static{this.EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.NO_CONTROLS_EXPANDED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0})}static{this.HIDDEN_RANGE_DECORATION=n.kI.register({description:"folding-hidden-range-decoration",stickiness:1})}constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}},46133:(e,t,i)=>{e.exports=i(64066)},46304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(5542).then(i.bind(i,15542))})},46359:(e,t,i)=>{"use strict";i.d(t,{O:()=>r});var s=i(66782),n=i(631);const r=new class{constructor(){this.data=new Map}add(e,t){s.ok(n.Kg(e)),s.ok(n.Gv(t)),s.ok(!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}}},46576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(2182).then(i.bind(i,42182))})},46606:(e,t,i)=>{"use strict";var s=i(31450),n=i(97681),r=i(36677),o=i(60002),a=i(38728),c=i(50091);class l extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartLeft(e);return i||new r.Q(1,1,1,1)}}class h extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartRight(e);if(i)return i;const s=e.model.getLineCount(),o=e.model.getLineMaxColumn(s);return new r.Q(s,o,s,o)}}class d extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartLeft(e,t,i,r)}}c.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");c.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartRight(e,t,i)}}(0,s.E_)(new l),(0,s.E_)(new h),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},46648:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(110).then(i.bind(i,60110))})},46649:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5M4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0M8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},46686:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(5888).then(i.bind(i,35888))})},46958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>A,qg:()=>N});var s=i(90766),n=i(79326),r=i(74320),o=i(74027),a=i(98067),c=i(91508);const l="**",h="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let s=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!s&&!n){i.push(r),r="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":n=!0;break;case"]":n=!1}r+=o}return r&&i.push(r),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===l)))t=".*";else{let e=!1;i.forEach(((s,n)=>{if(s===l){if(e)return;t+=p(2,n===i.length-1)}else{let e=!1,r="",o=!1,a="";for(const i of s)if("}"!==i&&e)r+=i;else if(!o||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const i=`(?:${m(r,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,r="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,c.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,c.bm)(i):"^",a+=e}n<i.length-1&&(i[n+1]!==l||n+2<i.length)&&(t+=d)}e=s===l}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,C=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,E=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.qK(1e4),w=function(){return!1},R=function(){return null};function L(e,t){if(!e)return R;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const s=`${i}_${!!t.trimForExclusions}`;let n,r=y.get(s);return r||(r=_.test(i)?function(e,t){return function(i,s){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(n=v.exec(x(i,t)))?function(e,t){const i=`/${e}`,s=`\\${e}`,n=function(n,r){return"string"!==typeof n?null:r?r===e?t:null:n===e||n.endsWith(i)||n.endsWith(s)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}(n[1],i):(t.trimForExclusions?E:C).test(i)?function(e,t){const i=I(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==R)),e),s=i.length;if(!s)return R;if(1===s)return i[0];const n=function(t,s){for(let n=0,r=i.length;n<r;n++)if(i[n](t,s))return e;return null},r=i.find((e=>!!e.allBasenames));r&&(n.allBasenames=r.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(n.allPaths=o);return n}(i,t):(n=b.exec(x(i,t)))?k(n[1].substr(1),i,!0):(n=S.exec(x(i,t)))?k(n[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return R}}(i),y.set(s,r)),T(r,e)}function T(e,t){if("string"===typeof t)return e;const i=function(i,s){return(0,n._1)(i,t.base,!a.j9)?e((0,c.NB)(i.substr(t.base.length),o.Vn),s):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const s=o.Vn===o.SA.sep,n=s?e:e.replace(g,o.Vn),r=o.Vn+n,a=o.SA.sep+e;let c;return c=i?function(i,o){return"string"!==typeof i||i!==n&&!i.endsWith(r)&&(s||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!==typeof i||i!==n&&(s||i!==e)?null:t},c.allPaths=[(i?"*/":"./")+e],c}function A(e,t,i){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=L(e,t);if(i===R)return w;const s=function(e,t){return!!i(e,t)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return R;const n=L(e,i);if(n===R)return R;if("boolean"===typeof t)return n;if(t){const i=t.when;if("string"===typeof i){const t=(t,r,o,a)=>{if(!a||!n(t,r))return null;const c=a(i.replace("$(basename)",(()=>o)));return(0,s.Qg)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==R))),n=i.length;if(!n)return R;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let r=0,o=i.length;r<o;r++){const o=i[r](e,t);if("string"===typeof o)return o;(0,s.Qg)(o)&&(n||(n=[]),n.push(o))}return n?(async()=>{for(const e of n){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,n){let r,a;for(let c=0,l=i.length;c<l;c++){const l=i[c];l.requiresSiblings&&n&&(t||(t=(0,o.P8)(e)),r||(r=t.substr(0,t.length-(0,o.LC)(e).length)));const h=l(e,t,r,n);if("string"===typeof h)return h;(0,s.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(r.allBasenames=a.allBasenames);const c=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);c.length&&(r.allPaths=c);return r}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const s=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let n;if(t){n=[];for(let e=0,i=s.length;e<i;e++)n.push(t)}else n=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const r=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=s.indexOf(t);return-1!==i?n[i]:null};r.basenames=s,r.patterns=n,r.allBasenames=s;const o=e.filter((e=>!e.basenames));return o.push(r),o}},47210:(e,t,i)=>{"use strict";var s=i(5662),n=i(89403),r=i(31450),o=i(80301),a=i(78209),c=i(59599),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};const d="ignoreUnusualLineTerminators";let u=class extends s.jG{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,d)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(92))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.P8)(e.uri)),primaryButton:a.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,d,i)}(this._codeEditorService,e,!0)}};u=l([h(1,c.X),h(2,o.T)],u),(0,r.HW)(u.ID,u,1)},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>c,$:()=>l});var s=i(60413);const n=new WeakMap;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class o{static getSameOriginWindowChain(e){let t=n.get(e);if(!t){t=[],n.set(e,t);let i,s=e;do{i=r(s),i?t.push({window:new WeakRef(s),iframeElement:s.frameElement||null}):t.push({window:new WeakRef(s),iframeElement:null}),s=i}while(s)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,s=0;const n=this.getSameOriginWindowChain(e);for(const r of n){const e=r.window.deref();if(i+=e?.scrollY??0,s+=e?.scrollX??0,e===t)break;if(!r.iframeElement)break;const n=r.iframeElement.getBoundingClientRect();i+=n.top,s+=n.left}return{top:i,left:s}}}var a=i(98067);class c{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.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,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=o.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{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(s.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=e.view?.devicePixelRatio||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=n?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)s.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=n?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=n?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}},47443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MirrorModel:()=>m,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>u,WorkerTextModelSyncClient:()=>g,WorkerTextModelSyncServer:()=>p});var s=i(90766),n=i(5662),r=i(79400),o=i(83069),a=i(36677),c=i(26486),l=i(91508),h=i(27414);class d{constructor(e,t,i,s){this._uri=e,this._lines=t,this._eol=i,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new o.y(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let s=0;s<t;s++)i[s]=this._lines[s].length+e;this._lineStarts=new h.N(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,l.uz)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const s=new Uint32Array(i.length-1);for(let n=1;n<i.length;n++)this._lines.splice(e.lineNumber+n-1,0,i[n]),s[n-1]=i[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,s)}}const u=6e4;class g extends n.jG{constructor(e,t,i=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new s.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(u/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,n.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>u&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.$acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const r=new n.Cm;r.add(i.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(s.toString(),e)}))),r.add(i.onWillDispose((()=>{this._stopModelSync(s)}))),r.add((0,n.s)((()=>{this._proxy.$acceptRemovedModel(s)}))),this._syncedModels[s]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,n.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new m(r.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class m extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const s=this._lines[i],n=this.offsetAt(new o.y(i+1,1)),r=s.matchAll(e);for(const e of r)(e.index||0===e.index)&&(e.index=e.index+n),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=(0,c.Th)(e.column,(0,c.Io)(t),this._lines[e.lineNumber-1],0);return i?new a.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,n="",r=0,o=[];return{*[Symbol.iterator](){for(;;)if(r<o.length){const e=n.substring(o[r].start,o[r].end);r+=1,yield e}else{if(!(s<t.length))break;n=t[s],o=i(n,e),r=0,s+=1}}}}getLineWords(e,t){const i=this._lines[e-1],s=this._wordenize(i,t),n=[];for(const r of s)n.push({word:i.substring(r.start,r.end),startColumn:r.start+1,endColumn:r.end+1});return n}_wordenize(e,t){const i=[];let s;for(t.lastIndex=0;(s=t.exec(e))&&0!==s[0].length;)i.push({start:s.index,end:s.index+s[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,s=e.endLineNumber-1,n=[];n.push(this._lines[i].substring(e.startColumn-1));for(let r=i+1;r<s;r++)n.push(this._lines[r]);return n.push(this._lines[s].substring(0,e.endColumn-1)),n.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,s=!1;if(t<1)t=1,i=1,s=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>e&&(i=e,s=!0)}return s?{lineNumber:t,column:i}:e}}},47508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,l:()=>n});var s=i(63591);const n=(0,s.u1)("contextViewService"),r=(0,s.u1)("contextMenuService")},47579:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,I_:()=>r,To:()=>n,Ym:()=>o});const s=(0,i(63591).u1)("undoRedoService");class n{constructor(e,t){this.resource=e,this.elements=t}}class r{static{this._ID=0}constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new r}}class o{static{this._ID=0}constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new o}}},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>d,Gy:()=>c,Pz:()=>h,Yf:()=>l,lR:()=>p,zy:()=>g});var s=i(41234),n=i(5662),r=i(63591),o=i(46359),a=i(86723);const c=(0,r.u1)("themeService");function l(e){return{id:e}}function h(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,n.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}o.O.add(d.ThemingContribution,u);class p extends n.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},47625:(e,t,i)=>{"use strict";i.d(t,{x:()=>u,l:()=>d});var s=i(8597),n=i(48196),r=i(42904),o=i(83619),a=i(5662),c=i(10146),l=i(78209);const h=s.$,d={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=s.BC(e,h(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,n.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){const e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let i=1;i<e.length;i++)s.BC(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[i],this.matches?this.matches.chordPart:null);const 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(){s.w_(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const s=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,s.ctrlKey,Boolean(i?.ctrlKey),s.separator),t.shiftKey&&this.renderKey(e,s.shiftKey,Boolean(i?.shiftKey),s.separator),t.altKey&&this.renderKey(e,s.altKey,Boolean(i?.altKey),s.separator),t.metaKey&&this.renderKey(e,s.metaKey,Boolean(i?.metaKey),s.separator);const n=t.keyLabel;n&&this.renderKey(e,n,Boolean(i?.keyCode),"")}renderKey(e,t,i,n){s.BC(e,this.createKeyElement(t,i?".highlight":"")),n&&s.BC(e,h("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){s.BC(e,this.createKeyElement((0,l.kg)("unbound","Unbound")))}createKeyElement(e,t=""){const i=h("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,c.aI)(e.firstPart,t.firstPart)&&(0,c.aI)(e.chordPart,t.chordPart)}}},47661:(e,t,i)=>{"use strict";function s(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>o,Q1:()=>a,bU:()=>n,hB:()=>r});class n{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.l=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=e.a,o=Math.max(t,i,s),a=Math.min(t,i,s);let c=0,l=0;const h=(a+o)/2,d=o-a;if(d>0){switch(l=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:c=(i-s)/d+(i<s?6:0);break;case i:c=(s-t)/d+2;break;case s:c=(t-i)/d+4}c*=60,c=Math.round(c)}return new r(c,l,h,n)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:s,a:o}=e;let a,c,l;if(0===i)a=c=l=s;else{const e=s<.5?s*(1+i):s+i-s*i,n=2*s-e;a=r._hue2rgb(n,e,t+1/3),c=r._hue2rgb(n,e,t),l=r._hue2rgb(n,e,t-1/3)}return new n(Math.round(255*a),Math.round(255*c),Math.round(255*l),o)}}class o{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.v=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=Math.max(t,i,s),r=n-Math.min(t,i,s),a=0===n?0:r/n;let c;return c=0===r?0:n===t?((i-s)/r%6+6)%6:n===i?(s-t)/r+2:(t-i)/r+4,new o(Math.round(60*c),a,n,e.a)}static toRGBA(e){const{h:t,s:i,v:s,a:r}=e,o=s*i,a=o*(1-Math.abs(t/60%2-1)),c=s-o;let[l,h,d]=[0,0,0];return t<60?(l=o,h=a):t<120?(l=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(l=a,d=o):t<=360&&(l=o,d=a),l=Math.round(255*(l+c)),h=Math.round(255*(h+c)),d=Math.round(255*(d+c)),new n(l,h,d,r)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return s(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(t,i,s,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new n(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-i),e.rgba.b-r*(e.rgba.b-s),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const s=e.getRelativeLuminance(),n=t.getRelativeLuminance();return i=i*(n-s)/n,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const s=e.getRelativeLuminance();return i=i*(s-t.getRelativeLuminance())/s,e.darken(i)}static{this.white=new a(new n(255,255,255,1))}static{this.black=new a(new n(0,0,0,1))}static{this.red=new a(new n(255,0,0,1))}static{this.blue=new a(new n(0,0,255,1))}static{this.green=new a(new n(0,255,0,1))}static{this.cyan=new a(new n(0,255,255,1))}static{this.lightgrey=new a(new n(211,211,211,1))}static{this.transparent=new a(new n(0,0,0,0))}}!function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function s(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t,s=!1){return s&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6));return new e(new n(i,r,o,1))}if(9===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6)),a=16*s(t.charCodeAt(7))+s(t.charCodeAt(8));return new e(new n(i,r,o,a/255))}if(4===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3));return new e(new n(16*i+i,16*r+r,16*o+o))}if(5===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3)),a=s(t.charCodeAt(4));return new e(new n(16*i+i,16*r+r,16*o+o,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>L,dt:()=>E,f3:()=>w,l1:()=>S,ob:()=>C,p3:()=>k,r3:()=>A});var s=i(18447),n=i(64383),r=i(26690),o=i(5662),a=i(78381),c=i(631),l=i(79400),h=i(83069),d=i(36677),u=i(18938),g=i(29319),p=i(78209),m=i(27195),f=i(50091),_=i(32848),v=i(56942);const C={Visible:i(89100).dg,HasFocusedSuggestion:new _.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},E=new m.D8("suggestWidgetStatusBar");class b{constructor(e,t,i,s){this.position=e,this.completion=t,this.container=i,this.provider=s,this.isInvalid=!1,this.score=r.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,d.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range.insert)||d.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof s.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,n.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class S{static{this.default=new S}constructor(e=2,t=new Set,i=new Set,s=new Map,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=s,this.showDeprecated=n}}let y;function w(){return y}class R{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}async function L(e,t,i,r=S.default,c={triggerKind:0},l=s.XO.None){const h=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new d.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):d.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new o.Cm,v=[];let C=!1;const E=(e,t,s)=>{let n=!1;if(!t)return n;for(const o of t.suggestions)if(!r.kindFilter.has(o.kind)){if(!r.showDeprecated&&o?.tags?.includes(1))continue;o.range||(o.range=m),o.sortText||(o.sortText="string"===typeof o.label?o.label:o.label.label),!C&&o.insertTextRules&&4&o.insertTextRules&&(C=g.fr.guessNeedsClipboard(o.insertText)),f.push(new b(i,o,t,e)),n=!0}return(0,o.Xm)(t)&&_.add(t),v.push({providerName:e._debugDisplayName??"unknown_provider",elapsedProvider:t.duration??-1,elapsedOverall:s.elapsed()}),n},w=(async()=>{if(!y||r.kindFilter.has(27))return;const e=r.providerItemsToReuse.get(y);if(e)return void e.forEach((e=>f.push(e)));if(r.providerFilter.size>0&&!r.providerFilter.has(y))return;const s=new a.W,n=await y.provideCompletionItems(t,i,c,l);E(y,n,s)})();for(const s of e.orderedGroups(t)){let e=!1;if(await Promise.all(s.map((async s=>{if(r.providerItemsToReuse.has(s)){const t=r.providerItemsToReuse.get(s);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(r.providerFilter.size>0)||r.providerFilter.has(s))try{const n=new a.W,r=await s.provideCompletionItems(t,i,c,l);e=E(s,r,n)||e}catch(o){(0,n.M_)(o)}}))),e||l.isCancellationRequested)break}return await w,l.isCancellationRequested?(_.dispose(),Promise.reject(new n.AL)):new R(f.sort((L=r.snippetSortOrder,x.get(L))),C,{entries:v,elapsed:h.elapsed()},_);var L}function T(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const x=new Map;function k(e,t){e.getContribution("editor.contrib.suggestController")?.triggerSuggest((new Set).add(t),void 0,!0)}x.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return T(e,t)})),x.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return T(e,t)})),x.set(1,T),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,n,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(h.y.isIPosition(n)),(0,c.j)("string"===typeof r||!r),(0,c.j)("number"===typeof o||!o);const{completionProvider:a}=e.get(v.ILanguageFeaturesService),d=await e.get(u.ITextModelService).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=d.object.textEditorModel.validatePosition(n),c=await L(a,d.object.textEditorModel,i,void 0,{triggerCharacter:r??void 0,triggerKind:r?1:0});for(const n of c.items)t.length<(o??0)&&t.push(n.resolve(s.XO.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>c.disposable.dispose()),100)}}finally{d.dispose()}}));class A{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},48196:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,i:()=>r});let s={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}};function n(e){s=e}function r(){return s}},48215:()=>{},48279:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(31450),l=i(80301),h=i(60534),d=i(36677),u=i(60002),g=i(10920),p=i(56942),m=i(49079),f=i(36998),_=i(78209),v=i(87213),C=i(50091),E=i(32848),b=i(63591),S=i(73823),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{static{this.ID="editor.contrib.autoFormat"}constructor(e,t,i,s){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=s,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.y;for(const s of t.autoFormatTriggerCharacters)i.add(s.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),r=new n.Qi,o=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void o.dispose();for(let t=0,s=e.changes.length;t<s;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void o.dispose()}}));(0,m._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then((e=>{r.token.isCancellationRequested||(0,s.EI)(e)&&(this._accessibilitySignalService.playSignal(v.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{o.dispose()}))}};R=y([w(1,p.ILanguageFeaturesService),w(2,g.IEditorWorkerService),w(3,v.Nt)],R);let L=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,S.ke.None,n.XO.None,!1).catch(r.dz))}};L=y([w(1,p.ILanguageFeaturesService),w(2,b._Y)],L);class T extends c.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:E.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(b._Y),s=e.get(S.N8);await s.showWhile(i.invokeFunction(m.vg,t,1,S.ke.None,n.XO.None,!0),250)}}}class x extends c.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:E.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(b._Y),s=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new d.Q(e.startLineNumber,1,e.startLineNumber,s.getLineMaxColumn(e.startLineNumber)):e)),o=e.get(S.N8);await o.showWhile(i.invokeFunction(m.jX,t,r,1,S.ke.None,n.XO.None,!0),250)}}(0,c.HW)(R.ID,R,2),(0,c.HW)(L.ID,L,2),(0,c.Fl)(T),(0,c.Fl)(x),C.w.registerCommand("editor.action.format",(async e=>{const t=e.get(l.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(C.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},48448:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(6262).then(i.bind(i,66262))}),(0,s.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(6262).then(i.bind(i,66262))})},48495:(e,t,i)=>{"use strict";function s(e,t){const i=[],s=[];for(const n of e)t.has(n)||i.push(n);for(const n of t)e.has(n)||s.push(n);return{removed:i,added:s}}function n(e,t){const i=new Set;for(const s of t)e.has(s)&&i.add(s);return i}i.d(t,{E:()=>n,Z:()=>s})},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>L,jX:()=>T,vg:()=>k,_V:()=>N});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(58925),c=i(631),l=i(79400),h=i(50868),d=i(34326),u=i(83069),g=i(36677),p=i(75326),m=i(10920),f=i(18938),_=i(36998),v=i(50091);class C{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class E{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(C.toKey(e))}has(e){return this._set.has(C.toKey(e))}}var b=i(63591),S=i(56942),y=i(18801),w=i(87213);function R(e,t,i){const s=[],n=new E,r=e.ordered(i);for(const a of r)s.push(a),a.extensionId&&n.add(a.extensionId);const o=t.ordered(i);for(const a of o){if(a.extensionId){if(n.has(a.extensionId))continue;n.add(a.extensionId)}s.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return s}class L{static{this._selectors=new a.w}static setFormatterSelector(e){return{dispose:L._selectors.unshift(e)}}static async select(e,t,i,s){if(0===e.length)return;const n=o.f.first(L._selectors);return n?await n(e,t,i,s):void 0}}async function T(e,t,i,s,n,r,o){const a=e.get(b._Y),{documentRangeFormattingEditProvider:c}=e.get(S.ILanguageFeaturesService),l=(0,d.z9)(t)?t.getModel():t,h=c.ordered(l),u=await L.select(h,l,s,2);u&&(n.report(u),await a.invokeFunction(x,u,t,i,r,o))}async function x(e,t,i,n,r,o){const a=e.get(m.IEditorWorkerService),c=e.get(y.rr),l=e.get(w.Nt);let u,f;(0,d.z9)(i)?(u=i.getModel(),f=new h.gI(i,5,void 0,r)):(u=i,f=new h.ER(i,r));const v=[];let C=0;for(const h of(0,s._j)(n).sort(g.Q.compareRangesUsingStarts))C>0&&g.Q.areIntersectingOrTouching(v[C-1],h)?v[C-1]=g.Q.fromPositions(v[C-1].getStartPosition(),h.getEndPosition()):C=v.push(h);const E=async e=>{c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(u,e,u.getFormattingOptions(),f.token)||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},b=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const s of e)for(const e of t)if(g.Q.intersectRanges(s.range,e.range))return!0;return!1},S=[],R=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const e=await t.provideDocumentRangesFormattingEdits(u,v,u.getFormattingOptions(),f.token)||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),R.push(e)}else{for(const e of v){if(f.token.isCancellationRequested)return!0;R.push(await E(e))}for(let e=0;e<v.length;++e)for(let t=e+1;t<v.length;++t){if(f.token.isCancellationRequested)return!0;if(b(R[e],R[t])){const i=g.Q.plusRange(v[e],v[t]),s=await E(i);v.splice(t,1),v.splice(e,1),v.push(i),R.splice(t,1),R.splice(e,1),R.push(s),e=0,t=0}}}for(const e of R){if(f.token.isCancellationRequested)return!0;const t=await a.computeMoreMinimalEdits(u.uri,e);t&&S.push(...t)}}finally{f.dispose()}if(0===S.length)return!1;if((0,d.z9)(i))_.c.execute(i,S,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=S,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);u.pushEditOperations([t],S.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return l.playSignal(w.Rh.format,{userGesture:o}),!0}async function k(e,t,i,s,n,r){const o=e.get(b._Y),a=e.get(S.ILanguageFeaturesService),c=(0,d.z9)(t)?t.getModel():t,l=R(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,c),h=await L.select(l,c,i,1);h&&(s.report(h),await o.invokeFunction(A,h,t,i,n,r))}async function A(e,t,i,s,n,r){const o=e.get(m.IEditorWorkerService),a=e.get(w.Nt);let c,l,u;(0,d.z9)(i)?(c=i.getModel(),l=new h.gI(i,5,void 0,n)):(c=i,l=new h.ER(i,n));try{const e=await t.provideDocumentFormattingEdits(c,c.getFormattingOptions(),l.token);if(u=await o.computeMoreMinimalEdits(c.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!u||0===u.length)return!1;if((0,d.z9)(i))_.c.execute(i,u,2!==s),2!==s&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);c.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(w.Rh.format,{userGesture:r}),!0}function N(e,t,i,s,n,o,a){const c=t.onTypeFormattingEditProvider.ordered(i);return 0===c.length||c[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(c[0].provideOnTypeFormattingEdits(i,s,n,o,a)).catch(r.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}v.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,o,a]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(g.Q.isIRange(o));const h=e.get(f.ITextModelService),d=e.get(m.IEditorWorkerService),u=e.get(S.ILanguageFeaturesService),p=await h.createModelReference(i);try{return async function(e,t,i,n,o,a){const c=t.documentRangeFormattingEditProvider.ordered(i);for(const l of c){const t=await Promise.resolve(l.provideDocumentRangeFormattingEdits(i,n,o,a)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(d,u,p.object.textEditorModel,g.Q.lift(o),a,n.XO.None)}finally{p.dispose()}})),v.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,o]=t;(0,c.j)(l.r.isUri(i));const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),u=await a.createModelReference(i);try{return async function(e,t,i,n,o){const a=R(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const c of a){const t=await Promise.resolve(c.provideDocumentFormattingEdits(i,n,o)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(h,d,u.object.textEditorModel,o,n.XO.None)}finally{u.dispose()}})),v.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,s,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(u.y.isIPosition(s)),(0,c.j)("string"===typeof r);const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),g=await a.createModelReference(i);try{return N(h,d,g.object.textEditorModel,u.y.lift(s),r,o,n.XO.None)}finally{g.dispose()}}))},49099:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,e:()=>n});const s=(0,i(63591).u1)("openerService");function n(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},49150:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(2016).then(i.bind(i,92016))})},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,FB:()=>d,FY:()=>E,Lj:()=>b,N2:()=>u,PO:()=>v,Rn:()=>m,X2:()=>S,XL:()=>C,YY:()=>f,ZK:()=>p,fL:()=>_,zV:()=>g});var s=i(51241),n=i(22311),r=i(94958);let o,a,c,l;function h(e){o=e}function d(e){a=e}function u(e){c=e}class g{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return c({owner:i,debugName:()=>{const e=(0,n.qQ)(s);if(void 0!==e)return e;const 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(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:s},(e=>s(this.read(e),e)))}flatten(){return c({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class p extends g{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){const i=new C(e,t);try{e(i)}finally{i.finish()}}function f(e){if(l)e(l);else{const t=new C(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function _(e,t){const i=new C(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):m(t,i)}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],(0,r.tZ)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:i,observable:s}=e[t];i.endUpdate(s)}this.updatingObservers=null,(0,r.tZ)()?.handleEndTransaction()}}function E(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new b(i,t,s.nx)}class b extends p{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let s;t||(t=s=new C((()=>{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),(0,r.tZ)()?.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new y(i,t,s.nx)}class y extends b{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},49265:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,v:()=>c});var s=i(7936),n=i(71964),r=i(32799),o=i(26685);class a{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static paste(e,t,i,s,n,r){return o.Dr.getEdits(e,t,i,s,n,r)}static tab(e,t,i){return o.h0.getCommands(e,t,i)}static compositionType(e,t,i,s,n,r,a,c){return o.YA.getEdits(e,t,i,s,n,r,a,c)}static compositionEndWithInterceptors(e,t,i,s,a,c){if(!s)return null;let l=null;for(const n of s)if(null===l)l=n.insertedText;else if(l!==n.insertedText)return null;if(!l||1!==l.length)return null;const h=l;let d=!1;for(const n of s)if(0!==n.deletedText.length){d=!0;break}if(d){if(!(0,o.ey)(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;const e=(0,r.vG)(h);for(const t of s){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,r.vG)(t.deletedText))return null}const i=[];for(const t of a){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==s.length)return null;const c=[];for(let r=0,o=i.length;r<o;r++)c.push(new n.y(i[r],s[r].deletedText,t.surroundingPairs[h]));return new r.vY(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=o.K4.getEdits(t,i,a,c,h);if(void 0!==u)return u;const g=o.oi.getEdits(t,i,a,h,!0,!1);return void 0!==g?g:null}static typeWithInterceptors(e,t,i,s,n,r,a){const c=o.AO.getEdits(i,s,n,a,e);if(void 0!==c)return c;const l=o.dU.getEdits(i,s,n,a,e);if(void 0!==l)return l;const h=o.sx.getEdits(t,i,s,n,r,a);if(void 0!==h)return h;const d=o.oi.getEdits(i,s,n,a,!1,e);if(void 0!==d)return d;const u=o.is.getEdits(i,s,n,a,e);if(void 0!==u)return u;const g=o.kr.getEdits(t,i,s,n,a,e);return void 0!==g?g:o.Ls.getEdits(t,n,a)}static typeWithoutInterceptors(e,t,i,s,n){return o.UN.getEdits(e,s,n)}}class c{constructor(e,t,i,s,n,r){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=s,this.insertedSelectionStart=n,this.insertedSelectionEnd=r}}},49353:(e,t,i)=>{"use strict";i.d(t,{yE:()=>o});var s=i(41234),n=i(5662);class r{constructor(e,t,i,s,n,r,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,s|=0,n|=0,r|=0,o|=0),this.rawScrollLeft=s,this.rawScrollTop=o,t<0&&(t=0),s+t>i&&(s=i-t),s<0&&(s=0),n<0&&(n=0),o+n>r&&(o=r-n),o<0&&(o=0),this.width=t,this.scrollWidth=i,this.scrollLeft=s,this.height=n,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,s=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:s,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:a}}}class o extends n.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new s.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let s;s=t?new l(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=s}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=l.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function c(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class l{constructor(e,t,i,s){this.from=e,this.to=t,this.duration=s,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let o,a;return e<t?(o=e+.75*i,a=t-.75*i):(o=e-.75*i,a=t+.75*i),s=c(e,o),n=c(a,t),r=.33,function(e){return e<r?s(e/r):n((e-r)/(1-r))}}var s,n,r;return c(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return l.start(e,t,i)}static start(e,t,i){i+=10;const s=Date.now()-10;return new l(e,t,s,i)}}},49435:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});var s=i(98067);const n=s.uF?'"Segoe WPC", "Segoe UI", sans-serif':s.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'},50071:(e,t,i)=>{"use strict";var s=i(11007),n=i(90766),r=i(18447),o=i(64383),a=i(16980),c=i(5662),l=i(631),h=i(79400),d=i(31450),u=i(80537),g=i(80301),p=i(83069),m=i(36677),f=i(60002),_=i(62083),v=i(56942),C=i(90360),E=i(50868),b=i(99645),S=i(78209),y=i(27195),w=i(1646),R=i(32848),L=i(63591),T=i(18801),x=i(58591),k=i(73823),A=i(46359),N=i(90651),I=i(8597),O=i(72962),D=i(48196),M=i(42904),P=i(20370),F=i(93090),U=i(25890),H=i(10350),B=i(41234),W=i(78381),V=i(73157),z=i(98031),G=i(19070),j=i(66261),K=i(47612),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};const $=new R.N1("renameInputVisible",!1,S.kg("renameInputVisible","Whether the rename input widget is visible"));new R.N1("renameInputFocused",!1,S.kg("renameInputFocused","Whether the rename input widget is focused"));let Q=class{constructor(e,t,i,s,n,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=s,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new c.Cm,this._visibleContextKey=$.bindTo(n),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new W.W,this._inputWithButton=new Z,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new X(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{void 0!==this._renameCandidateListView?.focusedCandidate&&(this._isEditingRenameCandidate=!0),this._timeBeforeFirstInputFieldEdit??=this._beforeFirstInputFieldEditSW.elapsed(),!1===this._renameCandidateProvidersCts?.token.isCancellationRequested&&this._renameCandidateProvidersCts.cancel(),this._renameCandidateListView?.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){if(!this._domNode)return;const t=e.getColor(j.f9l),i=e.getColor(j.DSL);this._domNode.style.backgroundColor=String(e.getColor(j.CgL)??""),this._domNode.style.boxShadow=t?` 0 0 8px 2px ${t}`:"",this._domNode.style.border=i?`1px solid ${i}`:"",this._domNode.style.color=String(e.getColor(j.cws)??"");const s=e.getColor(j.Zgs);this._inputWithButton.domNode.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.input.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.domNode.style.borderWidth=s?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=s?"solid":"none",this._inputWithButton.domNode.style.borderColor=s?.toString()??"none"}_updateFont(){if(void 0===this._domNode)return;(0,l.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.tG(this.getDomNode().ownerDocument.body),t=I.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const s=this._editor.getOption(67),{totalHeight:n}=J.getLayoutInfo({lineHeight:s}),r=this._nPxAvailableBelow>6*n?[2,1]:[1,2];return{position:this._position,preference:r}}beforeRender(){const[e,t]=this._acceptKeybindings;return this._label.innerText=S.kg({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",this._keybindingService.lookupKeybinding(e)?.getLabel(),this._keybindingService.lookupKeybinding(t)?.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,l.j)(this._renameCandidateListView),(0,l.j)(void 0!==this._nPxAvailableAbove),(0,l.j)(void 0!==this._nPxAvailableBelow);const t=I.OK(this._inputWithButton.domNode),i=I.OK(this._label);let s;s=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:s-i-t,width:I.Tr(this._inputWithButton.domNode)})}acceptInput(e){this._trace("invoking acceptInput"),this._currentAcceptInput?.(e)}cancelInput(e,t){this._currentCancelInput?.(e)}focusNextRenameSuggestion(){this._renameCandidateListView?.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){this._renameCandidateListView?.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,s,r){const{start:o,end:a}=this._getSelection(e,t);this._renameCts=r;const h=new c.Cm;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===s?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=s,this._requestRenameCandidates(t,!1),h.add(I.ko(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),h.add(I.ko(this._inputWithButton.button,I.Bx.KEY_DOWN,(e=>{const i=new O.Z(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",o.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),h.add((0,c.s)((()=>{this._renameCts=void 0,r.dispose(!0)}))),h.add((0,c.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),h.add((0,c.s)((()=>this._candidates.clear())));const d=new n.Zv;return d.p.finally((()=>{h.dispose(),this._hide()})),this._currentCancelInput=e=>(this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView?.clearCandidates(),d.complete(e),!0),this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,l.j)(void 0!==this._renameCandidateListView);const s=this._renameCandidateListView.nCandidates;let n,r;const o=this._renameCandidateListView.focusedCandidate;void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,r={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,r=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n!==t&&0!==n.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),d.complete({newName:n,wantsPreview:i&&e,stats:{source:r,nRenameSuggestions:s,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},h.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),h.add(this._editor.onDidBlurEditorWidget((()=>this.cancelInput(!this._domNode?.ownerDocument.hasFocus(),"editor.onDidBlurEditorWidget")))),this._show(),d.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,l.j)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new r.Qi;const i=t?_.YT.Invoke:_.YT.Automatic,s=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===s.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(s,e,this._renameCts.token)}}_getSelection(e,t){(0,l.j)(this._editor.hasModel());const i=this._editor.getSelection();let s=0,n=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(s=Math.max(0,i.startColumn-e.startColumn),n=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:s,end:n}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const s=(...e)=>this._trace("_updateRenameCandidates",...e);s("start");const r=await(0,n.PK)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===r)return void s("returning early - received updateRenameCandidates results - undefined");const o=r.flatMap((e=>"fulfilled"===e.status&&(0,l.O9)(e.value)?e.value:[]));s(`received updateRenameCandidates results - total (unfiltered) ${o.length} candidates.`);const a=U.dM(o,(e=>e.newSymbolName));s(`distinct candidates - ${a.length} candidates.`);const c=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));s(`valid distinct candidates - ${o.length} candidates.`),c.forEach((e=>this._candidates.add(e.newSymbolName))),c.length<1?s("returning early - no valid distinct candidates"):(s("setting candidates"),this._renameCandidateListView.setCandidates(c),s("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};Q=Y([q(2,K.Gy),q(3,z.b),q(4,R.fN),q(5,T.rr)],Q);class X{constructor(e,t){this._disposables=new c.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=X._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,G.t8)({listInactiveFocusForeground:j.nH,listInactiveFocusBackground:j.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,s.h5(S.kg("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=J.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const s=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},n=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new J(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new F.B8("NewSymbolNameCandidates",e,s,[n],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Z{constructor(){this._onDidInputChange=new B.vl,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new c.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",S.kg("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.kg("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.kg("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,D.i)().setupManagedHover((0,M.nZ)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(I.ko(this.input,I.Bx.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.KEY_DOWN,(e=>{const t=new O.Z(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(I.ko(this.input,I.Bx.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(I.ko(this.input,I.Bx.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return(0,l.j)(this._inputNode),this._inputNode}get button(){return(0,l.j)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){this._buttonState="sparkle",this._sparkleIcon??=(0,P.s)(H.W.sparkle),I.w_(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),this._buttonHover?.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){this._buttonState="stop",this._stopIcon??=(0,P.s)(H.W.primitiveSquare),I.w_(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),this._buttonHover?.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class J{static{this._PADDING=2}constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${J._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,P.s)(H.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),V.M(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){const t=!!e.tags?.includes(_.OV.AIGenerated);this._icon.style.display=t?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*J._PADDING}}dispose(){}}var ee,te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const s=await i.resolveRenameLocation(this.model,this.position,e);if(s){if(!s.rejectReason)return s;t.push(s.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.Q(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,s){const n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};const r=await n.provideRenameEdits(this.model,this.position,e,s);return r?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),s):r:this._provideRenameEdits(e,t+1,i.concat(S.kg("no result","No result.")),s)}}let ne=class{static{ee=this}static{this.ID="editor.contrib.renameController"}static get(e){return e.getContribution(ee.ID)}constructor(e,t,i,s,n,o,a,l,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=a,this._languageFeaturesService=l,this._telemetryService=h,this._disposableStore=new c.Cm,this._cts=new r.Qi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Q,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){const e=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new r.Qi,!this.editor.hasModel())return void e("editor has no model");const t=this.editor.getPosition(),i=new se(this.editor.getModel(),t,this._languageFeaturesService.renameProvider);if(!i.hasProvider())return void e("skeleton has no provider");const c=new E.gI(this.editor,5,void 0,this._cts.token);let l;try{e("resolving rename location");const t=i.resolveRenameLocation(c.token);this._progressService.showWhile(t,250),l=await t,e("resolved rename location")}catch(C){return void(C instanceof o.AL?e("resolve rename location cancelled",JSON.stringify(C,null,"\t")):(e("resolve rename location failed",C instanceof Error?C:JSON.stringify(C,null,"\t")),("string"===typeof C||(0,a.VS)(C))&&b.k.get(this.editor)?.showMessage(C||S.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t)))}finally{c.dispose()}if(!l)return void e("returning early - no loc");if(l.rejectReason)return e(`returning early - rejected with reason: ${l.rejectReason}`,l.rejectReason),void b.k.get(this.editor)?.showMessage(l.rejectReason,t);if(c.token.isCancellationRequested)return void e("returning early - cts1 cancelled");const h=new E.gI(this.editor,5,l.range,this._cts.token),d=this.editor.getModel(),u=this._languageFeaturesService.newSymbolNamesProvider.all(d),g=await Promise.all(u.map((async e=>[e,await e.supportsAutomaticNewSymbolNamesTriggerKind??!1])));e("creating rename input field and awaiting its result");const p=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(l.range,l.text,p,u.length>0?(e,t)=>{let i=g.slice();return e===_.YT.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(d,l.range,e,t)))}:void 0,h);if(e("received response from rename input field"),u.length>0&&this._reportTelemetry(u.length,d.getLanguageId(),f),"boolean"===typeof f)return e(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),void h.dispose();this.editor.focus(),e("requesting rename edits");const v=(0,n.PK)(i.provideRenameEdits(f.newName,h.token),h.token).then((async t=>{if(t)if(this.editor.hasModel()){if(t.rejectReason)return e(`returning early - rejected with reason: ${t.rejectReason}`),void this._notificationService.info(t.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),e("applying edits"),this._bulkEditService.apply(t,{editor:this.editor,showPreview:f.wantsPreview,label:S.kg("label","Renaming '{0}' to '{1}'",l?.text,f.newName),code:"undoredo.rename",quotableLabel:S.kg("quotableLabel","Renaming {0} to {1}",l?.text,f.newName),respectAutoSaveConfig:!0}).then((t=>{e("edits applied"),t.ariaSummary&&(0,s.xE)(S.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",l.text,f.newName,t.ariaSummary))})).catch((t=>{e(`error when applying edits ${JSON.stringify(t,null,"\t")}`),this._notificationService.error(S.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(t)}))}else e("returning early - no model after rename edits are provided");else e("returning early - no rename edits result")}),(t=>{e("error when providing rename edits",JSON.stringify(t,null,"\t")),this._notificationService.error(S.kg("rename.failed","Rename failed to compute edits")),this._logService.error(t)})).finally((()=>{h.dispose()}));return e("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const s="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",s)}};ne=ee=te([ie(1,L._Y),ie(2,x.Ot),ie(3,u.nu),ie(4,k.N8),ie(5,T.rr),ie(6,C.ITextResourceConfigurationService),ie(7,v.ILanguageFeaturesService),ie(8,N.k)],ne);class re extends d.ks{constructor(){super({id:"editor.action.rename",label:S.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:R.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(s)&&p.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),o.dz):super.runCommand(e,t)}run(e,t){const i=e.get(T.rr),s=ne.get(t);return s?(i.trace("[RenameAction] got controller, running..."),s.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,d.HW)(ne.ID,ne,4),(0,d.Fl)(re);const oe=d.DX.bindToContribution(ne.get);(0,d.E_)(new oe({id:"acceptRenameInput",precondition:$,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:3}})),(0,d.E_)(new oe({id:"acceptRenameInputWithPreview",precondition:R.M$.and($,R.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:2051}})),(0,d.E_)(new oe({id:"cancelRenameInput",precondition:$,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,y.ug)(class extends y.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...S.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:$,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusNextRenameSuggestion()}}),(0,y.ug)(class extends y.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...S.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:$,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,d.ke)("_executeDocumentRenameProvider",(function(e,t,i,...s){const[n]=s;(0,l.j)("string"===typeof n);const{renameProvider:o}=e.get(v.ILanguageFeaturesService);return async function(e,t,i,s){const n=new se(t,i,e),o=await n.resolveRenameLocation(r.XO.None);return o?.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(s,r.XO.None)}(o,t,i,n)})),(0,d.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:s}=e.get(v.ILanguageFeaturesService),n=new se(t,i,s),o=await n.resolveRenameLocation(r.XO.None);if(o?.rejectReason)throw new Error(o.rejectReason);return o})),A.O.as(w.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:S.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>c,w:()=>l});var s=i(41234),n=i(42522),r=i(5662),o=i(58925),a=i(631);const c=(0,i(63591).u1)("commandService"),l=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const s of e.metadata.args)t.push(s.constraint);const i=e.handler;e.handler=function(e,...s){return(0,a.jx)(s,t),i(e,...s)}}const{id:i}=e;let s=this._commands.get(i);s||(s=new o.w,this._commands.set(i,s));const n=s.unshift(e),c=(0,r.s)((()=>{n();const e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),c}registerCommandAlias(e,t){return l.registerCommand(e,((e,...i)=>e.get(c).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return n.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};l.registerCommand("noop",(()=>{}))},50166:(e,t,i)=>{"use strict";var s=i(78381),n=i(31450),r=i(78209);class o extends n.ks{constructor(){super({id:"editor.action.forceRetokenize",label:r.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new s.W;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}(0,n.Fl)(o)},50352:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(90766),o=i(24939),a=i(5662),c=i(31450),l=i(28291),h=i(36677),d=i(75326),u=i(60002),g=i(34175),p=i(78209),m=i(27195),f=i(32848),_=i(56942),v=i(13864),C=i(63591),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};function S(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.kg("cursorAdded","Cursor added: {0}",e):p.kg("cursorsAdded","Cursors added: {0}",e);(0,n.h5)(t)}}class y extends c.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorUp(n,r,s)),n.revealTopMostCursor(i.source),S(r,n.getCursorStates())}}class w extends c.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorDown(n,r,s)),n.revealBottomMostCursor(i.source),S(r,n.getCursorStates())}}class R extends c.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let s=e.startLineNumber;s<e.endLineNumber;s++){const e=t.getLineMaxColumn(s);i.push(new d.L(s,e,s,e))}e.endColumn>1&&i.push(new d.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=t.getSelections(),n=t._getViewModel(),r=n.getCursorStates(),o=[];s.forEach((e=>this.getCursorsForSelection(e,i,o))),o.length>0&&t.setSelections(o),S(r,n.getCursorStates())}}class L extends c.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=t.getModel().getLineCount(),n=[];for(let a=i[0].startLineNumber;a<=s;a++)n.push(new d.L(a,i[0].startColumn,a,i[0].endColumn));const r=t._getViewModel(),o=r.getCursorStates();n.length>0&&t.setSelections(n),S(o,r.getCursorStates())}}class T extends c.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=[];for(let o=i[0].startLineNumber;o>=1;o--)s.push(new d.L(o,i[0].startColumn,o,i[0].endColumn));const n=t._getViewModel(),r=n.getCursorStates();s.length>0&&t.setSelections(s),S(r,n.getCursorStates())}}class x{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class k{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new k(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let s,n,r=!1;const o=e.getSelections();1===o.length&&o[0].isEmpty()?(r=!0,s=!0,n=!0):(s=i.wholeWord,n=i.matchCase);const a=e.getSelection();let c,l=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;c=t.word,l=new d.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else c=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new k(e,t,r,c,s,n,l)}constructor(e,t,i,s,n,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=s,this.wholeWord=n,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}}class A extends a.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(A.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=k.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new d.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!D(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let s=0,n=t.length;s<n;s++)i[s]=this._expandEmptyToWord(e,t[s]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.range.intersectRanges(e)){t[i]=t[0],t[0]=s;break}}this._setSelections(t.map((e=>new d.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}class N extends c.ks{run(e,t){const i=A.get(t);if(!i)return;const s=t._getViewModel();if(s){const n=s.getCursorStates(),r=g.z0.get(t);if(r)this._run(i,r);else{const s=e.get(C._Y).createInstance(g.z0,t);this._run(i,s),s.dispose()}S(n,s.getCursorStates())}}}class I{constructor(e,t,i,s,n){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=s,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,n&&this._model===n._model&&this._searchText===n._searchText&&this._matchCase===n._matchCase&&this._wordSeparators===n._wordSeparators&&this._modelVersionId===n._modelVersionId&&(this._cachedFindMatches=n._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let O=class extends a.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(109),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new r.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(109)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const s=i.getSelection();if(s.startLineNumber!==s.endLineNumber)return null;const n=A.get(i);if(!n)return null;const r=g.z0.get(i);if(!r)return null;let o=n.getSession(r);if(!o){const e=i.getSelections();if(e.length>1){const t=r.getState().matchCase;if(!D(i.getModel(),e,t))return null}o=k.create(i,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const a=r.getState(),c=a.matchCase;if(a.isRevealed){let e=a.searchString;c||(e=e.toLowerCase());let t=o.searchText;if(c||(t=t.toLowerCase()),e===t&&o.matchCase===a.matchCase&&o.wholeWord===a.wholeWord&&!a.isRegex)return null}return new I(i.getModel(),o.searchText,o.matchCase,o.wholeWord?i.getOption(132):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),s=this.editor.getSelections();s.sort(h.Q.compareRangesUsingStarts);const n=[];for(let c=0,l=0,d=i.length,u=s.length;c<d;){const e=i[c];if(l>=u)n.push(e),c++;else{const t=h.Q.compareRangesUsingStarts(e,s[l]);t<0?(!s[l].isEmpty()&&h.Q.areIntersecting(e,s[l])||n.push(e),c++):(t>0||c++,l++)}}const r="off"!==this.editor.getOption(81),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=n.map((e=>({range:e,options:(0,v.v)(o)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function D(e,t,i){const s=M(e,t[0],!i);for(let n=1,r=t.length;n<r;n++){const r=t[n];if(r.isEmpty())return!1;if(s!==M(e,r,!i))return!1}return!0}function M(e,t,i){const s=e.getValueInRange(t);return i?s.toLowerCase():s}O=s=E([b(1,_.ILanguageFeaturesService)],O);class P extends c.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.shift();r&&(n.push(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}class F extends c.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.pop();r&&(n.unshift(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}(0,c.HW)(A.ID,A,4),(0,c.HW)(O.ID,O,1),(0,c.Fl)(y),(0,c.Fl)(w),(0,c.Fl)(R),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,o.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.selectHighlights",label:p.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.changeAll",label:p.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(L),(0,c.Fl)(T),(0,c.Fl)(P),(0,c.Fl)(F)},50576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(4870).then(i.bind(i,84870))})},50629:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"%"+e.$value:e.$value}return e.isScalar=!0,e}},50848:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(4662).then(i.bind(i,24662))})},50868:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>_,ER:()=>v});var s=i(91508),n=i(36677),r=i(18447),o=i(5662),a=i(31450),c=i(32848),l=i(58925),h=i(63591),d=i(14718),u=i(78209);const g=(0,h.u1)("IEditorCancelService"),p=new c.N1("cancellableOperation",!1,(0,u.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,d.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,s=this._tokens.get(e);return s||(s=e.invokeWithinContext((e=>({key:p.bindTo(e.get(c.fN)),tokens:new l.w}))),this._tokens.set(e,s)),s.key.set(!0),i=s.tokens.push(t),()=>{i&&(i(),s.key.set(!s.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends r.Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?s.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return 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))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,s){super(e,s),this._listener=new o.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&n.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&n.Q.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 v extends r.Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},50973:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var s=i(83069),n=i(36677);class r{static{this.zero=new r(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const s of e)"\n"===s?(t++,i=0):i++;return new r(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new n.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new n.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new s.y(e.lineNumber,e.column+this.columnCount):new s.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},51173:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>o});var s=i(25890),n=i(26690),r=i(91508);class o{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,s,r,o,c=n.Nd.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=r,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=c,"top"===o?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let o="",a="";const c=1===this._refilterKind?this._items:this._filteredItems,l=[],h=!this._options.filterGraceful||c.length>2e3?n.dt:n.uU;for(let s=0;s<c.length;s++){const d=c[s];if(d.isInvalid)continue;const u=this._itemsByProvider.get(d.provider);u?u.push(d):this._itemsByProvider.set(d.provider,[d]);const g=d.position.column-d.editStart.column,p=g+i-(d.position.column-this._column);if(o.length!==p&&(o=0===p?"":t.slice(-p),a=o.toLowerCase()),d.word=o,0===p)d.score=n.ne.Default;else{let e=0;for(;e<g;){const t=o.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)d.score=n.ne.Default;else if("string"===typeof d.completion.filterText){const t=h(o,a,e,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,r.W1)(d.completion.filterText,d.textLabel)?d.score=t:(d.score=(0,n.Jo)(o,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{const t=h(o,a,e,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;d.score=t}}d.idx=s,d.distance=this._wordDistance.distance(d.position,d.completion),l.push(d),e.push(d.textLabel.length)}this._filteredItems=l.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,s.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},51219:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var s=i(8597);function n(e,t,i){const n=s.BK(e);return!(t<n.left||t>n.left+n.width||i<n.top||i>n.top+n.height)}},51232:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(6374).then(i.bind(i,36374))})},51241:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>r,dB:()=>c,nx:()=>n,r:()=>o});var s=i(25890);const n=(e,t)=>e===t;function r(e=n){return(t,i)=>s.aI(t,i,e)}function o(){return(e,t)=>e.equals(t)}function a(e,t,i){if(void 0!==i){return void 0===e||null===e||void 0===t||null===t?t===e:i(e,t)}{const t=e;return(e,i)=>void 0===e||null===e||void 0===i||null===i?i===e:t(e,i)}}function c(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(!c(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){const i=e,s=t,n=Object.keys(i),r=Object.keys(s),o=new Set(r);if(n.length!==r.length)return!1;for(const e of n){if(!o.has(e))return!1;if(!c(i[e],s[e]))return!1}return!0}return!1}new WeakMap},51376:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(246).then(i.bind(i,10246))})},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>o,Fp:()=>a,GK:()=>l,Ym:()=>n,dH:()=>c,kF:()=>r});var s=i(63591);const n={ctrlCmd:!1,alt:!1};var r,o,a,c;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(o||(o={})),function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(a||(a={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(c||(c={}));new class{constructor(e){this.options=e}};const l=(0,s.u1)("quickInputService")},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>l,Hw:()=>n,YN:()=>s,gf:()=>o,n9:()=>a,oq:()=>r,tu:()=>h,vp:()=>c});var s,n,r,o,a,c,l,h,d=i(78209);!function(e){e.inspectTokensAction=d.kg("inspectTokens","Developer: Inspect Tokens")}(s||(s={})),function(e){e.gotoLineActionLabel=d.kg("gotoLineActionLabel","Go to Line/Column...")}(n||(n={})),function(e){e.helpQuickAccessActionLabel=d.kg("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=d.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d.kg("quickCommandActionHelp","Show And Run Commands")}(o||(o={})),function(e){e.quickOutlineActionLabel=d.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d.kg("editorViewAccessibleLabel","Editor content")}(c||(c={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(l||(l={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},51929:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SimpleWorkerClient:()=>C,SimpleWorkerServer:()=>S,create:()=>y,logOnceWebWorkerWarning:()=>u});var s=i(64383),n=i(41234),r=i(5662),o=i(36456),a=i(98067),c=i(91508);const l="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.method=s,this.args=n,this.type=0}}class p{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class m{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=s,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,i){const s=String(++this._lastSentReq);return new Promise(((n,r)=>{this._pendingReplies[s]={resolve:n,reject:r},this._send(new g(this._workerId,s,e,t,i))}))}listen(e,t,i){let s=null;const r=new n.vl({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new m(this._workerId,s,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new _(this._workerId,s)),s=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const i={get:(i,s)=>("string"!==typeof s||i[s]||(b(s)?i[s]=t=>this.listen(e,s,t):E(s)?i[s]=this.listen(e,s,void 0):36===s.charCodeAt(0)&&(i[s]=async(...i)=>(await(t?.()),this.sendMessage(e,s,i)))),i[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,s.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class C extends r.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,s.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId());let i=null;const n=globalThis.require;"undefined"!==typeof n&&"function"===typeof n.getConfig?i=n.getConfig():"undefined"!==typeof globalThis.requirejs&&(i=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(l,h,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(l,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,i){const s=this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on main thread`);if(b(t)){const n=s[t].call(s,i);if("function"!==typeof n)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return n}if(E(t)){const i=s[t];if("function"!==typeof i)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function E(e){return"o"===e[0]&&"n"===e[1]&&c.Wv(e.charCodeAt(2))}function b(e){return/^onDynamic/.test(e)&&c.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,i)=>{e(t,i)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,i){if(e===l&&t===h)return this.initialize(i[0],i[1],i[2]);const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on worker thread`);if(b(t)){const e=s[t].call(s,i);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(E(t)){const e=s[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,s){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${s}.js`).toString(!0);return i(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new S(e,null)}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>d,ou:()=>c,tk:()=>l});var s=i(64383),n=i(25982),r=i(40579),o=i(19131),a=i(32956);class c{constructor(e,t,i,s,n){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=s,this.astNode=n}}class l{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=o.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,o.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,o.QB)(this._offset,e);const t=(0,o.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,o.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,o.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset<r){const c=s.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&c===s.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const l=0===n.x.getTokenType(c),h=n.x.containsBalancedBrackets(c),d=s.getEndOffset(this.lineTokenOffset);if(h&&l&&this.lineCharOffset<d){const e=s.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,d),i=this.bracketTokens.getSingleLanguageBracketTokens(e),n=i.regExpGlobal;if(n){n.lastIndex=0;const e=n.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=d-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,o.sS)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=d}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const s=(0,o.C7)(e,t,this.lineIdx,this.lineCharOffset);return new c(s,0,-1,a.gV.getEmpty(),new r.yF(s))}}class d{constructor(e,t){this.text=e,this._offset=o.Vp,this.idx=0;const i=t.getRegExpStr(),s=i?new RegExp(i+"|\n","gi"):null,n=[];let l,h=0,d=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new c((0,o.qe)(0,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new c((0,o.qe)(1,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(1,_))));if(s)for(s.lastIndex=0;null!==(l=s.exec(e));){const e=l.index,i=l[0];if("\n"===i)h++,d=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,o.qe)(0,i);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}else{const i=h-g,s=e-d;if(1===i&&s<m.length)t=m[s];else{const e=(0,o.qe)(i,s);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}n.push(t)}n.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,o.qe)(0,f-u):(0,o.qe)(h-g,f-d);n.push(new c(e,0,-1,a.gV.getEmpty(),new r.yF(e)))}this.length=(0,o.qe)(h,f-d),this.tokens=n}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new s.EM}}},52358:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11M8 15A7 7 0 108 1a7 7 0 000 14m1-4.5a1 1 0 11-2 0 1 1 0 012 0M8.75 5a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0z",clipRule:"evenodd"})))}},52363:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(47661),n=i(5662),r=i(56942),o=i(72466),a=i(10920),c=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){return function(i,s){t(i,s,e)}};let h=class{constructor(e){this._editorWorkerService=e}async provideDocumentColors(e,t){return this._editorWorkerService.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,r=t.color,o=r.alpha,a=new s.Q1(new s.bU(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),o)),c=o?s.Q1.Format.CSS.formatRGB(a):s.Q1.Format.CSS.formatRGBA(a),l=o?s.Q1.Format.CSS.formatHSL(a):s.Q1.Format.CSS.formatHSLA(a),h=o?s.Q1.Format.CSS.formatHex(a):s.Q1.Format.CSS.formatHexA(a),d=[];return d.push({label:c,textEdit:{range:n,text:c}}),d.push({label:l,textEdit:{range:n,text:l}}),d.push({label:h,textEdit:{range:n,text:h}}),d}};h=c([l(0,a.IEditorWorkerService)],h);let d=class extends n.jG{constructor(e,t){super(),this._register(e.colorProvider.register("*",new h(t)))}};d=c([l(0,r.ILanguageFeaturesService),l(1,a.IEditorWorkerService)],d),(0,o.x)(d)},52400:(e,t,i)=>{"use strict";i.d(t,{_z:()=>v});var s,n=i(80781),r=i(67913),o=(i(59284),new Uint8Array(16));function a(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}var c=[];for(let E=0;E<256;++E)c.push((E+256).toString(16).slice(1));var l={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var h=function(e,t,i){if(l.randomUUID&&!t&&!e)return l.randomUUID();const s=(e=e||{}).random||(e.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=s[e];return t}return function(e,t=0){return c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]}(s)},d={debounceTime:200,suggestionCache:{enabled:!0},sessionId:h()};var u=class{constructor(){this.currentGroup=null,this.activeCompletion=null}setCompletionGroup(e){this.currentGroup=e}getCompletionGroup(){return this.currentGroup}getActiveCompletion(){return this.activeCompletion}getCachedCompletion(e,t){const i=[];if(this.currentGroup)for(const s of this.currentGroup.items){if(!s.range)continue;if(t.lineNumber<s.range.startLineNumber||t.column<s.range.startColumn)continue;const r=new n.Position(s.range.startLineNumber,s.range.startColumn),o=e.getOffsetAt(r),a=o+s.insertText.toString().length,c=e.getOffsetAt(t);if(c>a)continue;const l=s.insertText.toString().slice(0,c-o),h=new n.Range(s.range.startLineNumber,s.range.startColumn,t.lineNumber,t.column),d=e.getValueInRange(h);l.toLowerCase()===d.toLowerCase()&&i.push({insertText:d+s.insertText.toString().slice(c-o),range:h,command:s.command,pristine:s.pristine})}return i}emptyCache(){this.currentGroup=null,this.activeCompletion=null}incrementShownCount(e){if(this.currentGroup)for(const t of this.currentGroup.items)if(t.pristine===e){this.currentGroup.shownCount++,this.activeCompletion=e;break}}markAsAccepted(e){var t;(null==(t=this.currentGroup)?void 0:t.items.some((t=>t.pristine===e)))&&(this.currentGroup.wasAccepted=!0)}};var g=class{constructor(e,t){this.timer=null,this.pendingPromise=null,this.pendingResolve=null,this.config=e,this.events=t}async getSuggestions(e,t){this.timer&&window.clearTimeout(this.timer),this.pendingPromise||(this.pendingPromise=new Promise((e=>{this.pendingResolve=e})));const i=this.pendingPromise;return this.timer=window.setTimeout((async()=>{var i,s,r;try{let r=[],o="";const a=function(e,t,i=h()){const s=e.getLinesContent(),n=s[t.lineNumber-1];if(!n)return;const r=n.slice(0,t.column-1),o=n.slice(t.column-1),a=s.slice(0,t.lineNumber-1).concat([r]).join("\n"),c=[o].concat(s.slice(t.lineNumber)).join("\n"),l={lineNumber:t.lineNumber,column:t.column},d=[];if(a&&d.push({text:a,start:{lineNumber:1,column:1},end:l}),c){const e=s[s.length-1];if(!e)return;d.push({text:c,start:l,end:{lineNumber:s.length,column:e.length}})}return d.length?[{fragments:d,cursorPosition:l,path:`${i}`}]:void 0}(e,t,this.config.sessionId);if(!a)return void(null==(i=this.pendingResolve)||i.call(this,{suggestions:[],requestId:""}));const c=await this.config.api.getCodeAssistSuggestions(a);o=(null==c?void 0:c.requestId)||"";const{word:l,startColumn:d}=e.getWordUntilPosition(t);r=((null==c?void 0:c.items)||[]).map((e=>{const i=e,s=l+i;return{label:s,sortText:"a",insertText:s,pristine:i,range:new n.Range(t.lineNumber,d,t.lineNumber,t.column),command:{id:"acceptCodeAssistCompletion",title:"",arguments:[{requestId:o,suggestionText:i,prevWordLength:l.length}]}}})),null==(s=this.pendingResolve)||s.call(this,{suggestions:r,requestId:o})}catch(o){this.events.emit("completion:error",o instanceof Error?o:new Error(String(o))),null==(r=this.pendingResolve)||r.call(this,{suggestions:[],requestId:""})}finally{this.pendingPromise=null,this.pendingResolve=null,this.timer=null}}),this.config.debounceTime),i}},p=class{constructor(){this.events=new Map}on(e,t){var i;this.events.has(e)||this.events.set(e,new Set),null==(i=this.events.get(e))||i.add(t)}off(e,t){var i;null==(i=this.events.get(e))||i.delete(t)}emit(e,t){var i;null==(i=this.events.get(e))||i.forEach((i=>{try{i(t)}catch(s){console.error(`Error in event listener for ${e}:`,s)}}))}},m=class{constructor(e,t){this.events=new p,this.config=function(e,t){return{...d,...t,suggestionCache:{...d.suggestionCache,...(null==t?void 0:t.suggestionCache)||{}},api:e}}(e,t),this.cacheManager=new u,this.suggestionProvider=new g(this.config,this.events)}async provideInlineCompletions(e,t,i,s){if(this.config.suggestionCache.enabled){const i=this.cacheManager.getCachedCompletion(e,t);if(i.length)return{items:i}}const n=this.cacheManager.getCompletionGroup();n&&!n.wasAccepted&&this.dismissCompletion(n),this.cacheManager.emptyCache();const{suggestions:r,requestId:o}=await this.suggestionProvider.getSuggestions(e,t),a={items:r,shownCount:0,requestId:o};return this.cacheManager.setCompletionGroup(a),{items:r}}handleItemDidShow(e,t){this.config.suggestionCache.enabled&&this.cacheManager.incrementShownCount(t.pristine)}handlePartialAccept(e,t,i){var s,n;const{command:r}=t,o=null!=(n=null==(s=null==r?void 0:r.arguments)?void 0:s[0])?n:{},{suggestionText:a,requestId:c,prevWordLength:l=0}=o;if(c&&a&&"string"===typeof t.insertText){const e=t.insertText.slice(l,i);e&&(this.cacheManager.markAsAccepted(a),this.events.emit("completion:accept",{requestId:c,acceptedText:e}))}}handleAccept({requestId:e,suggestionText:t}){this.cacheManager.emptyCache(),this.events.emit("completion:accept",{requestId:e,acceptedText:t})}commandDiscard(e="OnCancel",t){var i,s;const n=this.cacheManager.getCompletionGroup();if((null==n?void 0:n.requestId)&&(null==(i=n.items)?void 0:i.length)){const t=n.items.map((e=>e.pristine)),i=this.cacheManager.getActiveCompletion()||(null==(s=n.items[0])?void 0:s.pristine)||"";this.events.emit("completion:decline",{requestId:n.requestId,suggestionText:i,reason:e,hitCount:n.shownCount,allSuggestions:t}),this.cacheManager.emptyCache()}t.trigger(void 0,"editor.action.inlineSuggest.hide",void 0)}emptyCache(){this.cacheManager.emptyCache()}hasActiveSuggestions(){return null!==this.cacheManager.getCompletionGroup()}freeInlineCompletions(){}dismissCompletion(e){var t;if(!e.requestId||!(null==(t=e.items)?void 0:t.length)||!e.shownCount||e.wasAccepted)return;const[i]=e.items;if(!i)return;const s=e.items.map((e=>e.pristine)),n=this.cacheManager.getActiveCompletion()||i.pristine||"";this.events.emit("completion:ignore",{requestId:e.requestId,suggestionText:n,allSuggestions:s})}};function f(e,t={}){return new m(e,t)}var _=class{constructor(e){this.editor=e,this.disposables=[],this.completionProvider=null}register({api:e,config:t,eventHandlers:i}){this.completionProvider=f(e,t);const s=r.languages.registerInlineCompletionsProvider([t.language],this.completionProvider);this.disposables.push(s);const n=C(r,this.completionProvider,this.editor);if(this.disposables.push(...n),i){const e=this.completionProvider;i.onCompletionAccept&&e.events.on("completion:accept",i.onCompletionAccept),i.onCompletionDecline&&e.events.on("completion:decline",i.onCompletionDecline),i.onCompletionIgnore&&e.events.on("completion:ignore",i.onCompletionIgnore),i.onCompletionError&&e.events.on("completion:error",i.onCompletionError)}}dispose(){this.disposables.forEach((e=>e.dispose())),this.disposables=[],this.completionProvider=null}};function v(e){const t=new _(e);return{register:e=>t.register(e),unregister:()=>t.dispose()}}function C(e,t,i){const s=[],n=e.editor.registerCommand("acceptCodeAssistCompletion",((e,...i)=>{var s;const n=null!=(s=i[0])?s:{};if(!n||"object"!==typeof n)return;const{requestId:r,suggestionText:o}=n;r&&o&&t.handleAccept({requestId:r,suggestionText:o})}));s.push(n);const r=e.editor.registerCommand("declineCodeAssistCompletion",(()=>{t.commandDiscard("OnCancel",i)}));s.push(r);const o=i.onKeyDown((s=>{var n,r,o,a;if(s.keyCode===e.KeyCode.Escape){const e=i.getContribution("editor.contrib.suggestController"),c=null!=(a=null==(o=null==(r=null==(n=null==e?void 0:e.widget)?void 0:n.value)?void 0:r.selectFirst)?void 0:o.call(r))&&a;t.hasActiveSuggestions()&&!c&&(s.preventDefault(),i.trigger("keyboard","declineCodeAssistCompletion",null))}}));return s.push(o),s}},52555:(e,t,i)=>{"use strict";i.d(t,{x:()=>Xn});var s=i(37550),n=i(31450),r=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},o=function(e,t){return function(i,s){t(i,s,e)}};let a=class{static{this.ID="editor.contrib.markerDecorations"}constructor(e,t){}dispose(){}};a=r([o(1,s.IMarkerDecorationsService)],a),(0,n.HW)(a.ID,a,0);var c=i(8597),l=i(64383),h=i(41234),d=i(5662),u=i(36456),g=i(73157),p=i(60413),m=i(25890),f=i(10146),_=i(98067),v=i(4983),C=i(28433);class E{static{this.items=[]}constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=E._read(e,this.key);this.migrate(t,(t=>E._read(e,t)),((t,i)=>E._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const s=t.substring(0,i);return this._read(e[s],t.substring(i+1))}return e[t]}static _write(e,t,i){const s=t.indexOf(".");if(s>=0){const n=t.substring(0,s);return e[n]=e[n]||{},void this._write(e[n],t.substring(s+1),i)}e[t]=i}}function b(e,t){E.items.push(new E(e,t))}function S(e,t){b(e,((i,s,n)=>{if("undefined"!==typeof i)for(const[r,o]of t)if(i===r)return void n(e,o)}))}S("wordWrap",[[!0,"on"],[!1,"off"]]),S("lineNumbers",[[!0,"on"],[!1,"off"]]),S("cursorBlinking",[["visible","solid"]]),S("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),S("renderLineHighlight",[[!0,"line"],[!1,"none"]]),S("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),S("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),S("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("autoIndent",[[!1,"advanced"],[!0,"full"]]),S("matchBrackets",[[!0,"always"],[!1,"never"]]),S("renderFinalNewline",[[!0,"on"],[!1,"off"]]),S("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),S("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),S("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),b("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),b("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),b("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const y={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"};b("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const s of Object.entries(y)){!1===e[s[0]]&&"undefined"===typeof t(`suggest.${s[1]}`)&&i(`suggest.${s[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),b("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),b("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),b("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),b("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const s={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,s[i[0]]=i[1]?"explicit":"never"):s[i[0]]=i[1];t&&i("codeActionsOnSave",s)}})),b("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),b("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var w=i(77163),R=i(87908),L=i(79027),T=i(74196),x=i(253),k=i(94106),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i,s,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new R.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new v.u(s,i.dimension)),this._targetWindowId=(0,c.zk)(s).vscodeWindowId,this._rawOptions=F(i),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(L.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(w.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(C.T.onDidChange((()=>this._recomputeOptions()))),this._register(k.c.getInstance((0,c.zk)(s)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=T._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),s={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:w.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,s)}_readEnvConfiguration(){return{extraEditorClassName:O(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Tc||p.gm,pixelRatio:k.c.getInstance((0,c.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return C.T.readFontInfo((0,c.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const 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())}};function O(){let e="";return p.nr||p.c8||(e+="no-user-select "),p.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.zx&&(e+="mac "),e}I=A([N(4,x.j)],I);class D{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class M{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new D;for(const i of R.BE){const s="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(s))}return t}static computeOptions(e,t){const i=new M;for(const s of R.BE)i._write(s.id,s.compute(t,i,e._read(s.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))&&m.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let s=!1;for(const n of R.BE){const r=!P._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=r,r&&(s=!0)}return s?new R.lw(i):null}static applyUpdate(e,t){let i=!1;for(const s of R.BE)if(t.hasOwnProperty(s.name)){const n=s.applyUpdate(e[s.name],t[s.name]);e[s.name]=n.newValue,i=i||n.didChange}return i}}function F(e){const t=f.Go(e);return function(e){E.items.forEach((t=>t.apply(e)))}(t),t}var U=i(80301),H=i(55275),B=i(5239),W=i(37734);class V extends d.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,s=e.length;i<s;i++){const s=e[i];switch(s.type){case 0:this.onCompositionStart(s)&&(t=!0);break;case 1:this.onCompositionEnd(s)&&(t=!0);break;case 2:this.onConfigurationChanged(s)&&(t=!0);break;case 3:this.onCursorStateChanged(s)&&(t=!0);break;case 4:this.onDecorationsChanged(s)&&(t=!0);break;case 5:this.onFlushed(s)&&(t=!0);break;case 6:this.onFocusChanged(s)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(s)&&(t=!0);break;case 8:this.onLineMappingChanged(s)&&(t=!0);break;case 9:this.onLinesChanged(s)&&(t=!0);break;case 10:this.onLinesDeleted(s)&&(t=!0);break;case 11:this.onLinesInserted(s)&&(t=!0);break;case 12:this.onRevealRangeRequest(s)&&(t=!0);break;case 13:this.onScrollChanged(s)&&(t=!0);break;case 15:this.onTokensChanged(s)&&(t=!0);break;case 14:this.onThemeChanged(s)&&(t=!0);break;case 16:this.onTokensColorsChanged(s)&&(t=!0);break;case 17:this.onZonesChanged(s)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(s)}}t&&(this._shouldRender=!0)}}class z extends V{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class G{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let s=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[s++]=this.read(e)),e=e.parentElement;const n=new Uint8Array(s);for(let r=0;r<s;r++)n[r]=i[s-r-1];return n}}var j,K=i(92473),Y=i(83069),q=i(36677),$=i(1245),Q=i(35817),X=i(91090);class Z{constructor(e=null){this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const s=e.getPositionFromDOMInfo(t,i);return s?new J(s,t,null):new Z(t)}}(j||(j={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e,t=null){return!t&&e?new q.Q(e.lineNumber,e.column,e.lineNumber,e.column):t??null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,s,n,r){return{type:e,element:t,mouseColumn:i,position:s,range:n,detail:r}}static createViewZone(e,t,i,s,n){return{type:e,element:t,mouseColumn:i,position:s,range:this._deduceRage(s),detail:n}}static createContentText(e,t,i,s,n){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,s),detail:n}}static createContentEmpty(e,t,i,s){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:s}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,s){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:s}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class se{constructor(e,t,i){this.viewModel=e.viewModel;const s=e.configuration.options;this.layoutInfo=s.get(146),this.viewDomNode=t.viewDomNode,this.lineHeight=s.get(67),this.stickyTabStops=s.get(117),this.typicalHalfwidthCharacterWidth=s.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return se.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const s=i.verticalOffset+i.height/2,n=e.viewModel.getLineCount();let r,o=null,a=null;return i.afterLineNumber!==n&&(a=new Y.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(o=new Y.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),r=null===a?o:null===o?a:t<s?o:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:o,positionAfter:a,position:r}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new q.Q(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new q.Q(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return se._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ne{constructor(e,t,i,s){this.editorPos=t,this.pos=i,this.relativePos=s,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ce._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class re extends ne{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=G.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,s,n){super(e,t,i,s),this.hitTestResult=new X.d((()=>ce.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=n;const r=Boolean(this._eventTarget);this._useHitTestTarget=!r}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?$.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,s){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,s)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const oe={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class ce{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=G.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,s,n){const r=new se(this._context,this._viewHelper,e),o=new re(r,t,i,s,n);try{const e=ce._createMouseTarget(r,o);if(6===e.type&&r.stickyTabStops&&null!==e.position){const t=ce._snapToSoftTabBoundary(e.position,r.viewModel),i=q.Q.fromPositions(t,t).plusRange(e.range);return o.fulfillContentText(t,i,e.detail)}return e}catch(a){return o.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let s=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(s=s||t.fulfillUnknown()),s=s||ce._hitTestContentWidget(e,i),s=s||ce._hitTestOverlayWidget(e,i),s=s||ce._hitTestMinimap(e,i),s=s||ce._hitTestScrollbarSlider(e,i),s=s||ce._hitTestViewZone(e,i),s=s||ce._hitTestMargin(e,i),s=s||ce._hitTestViewCursor(e,i),s=s||ce._hitTestTextArea(e,i),s=s||ce._hitTestViewLines(e,i),s=s||ce._hitTestScrollbar(e,i),s||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,n=t.mouseVerticalOffset;for(const r of i){if(s<r.contentLeft)continue;if(s>r.contentLeft+r.width)continue;const i=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(i<=n&&n<=i+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),s=i.range.getStartPosition();let n=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:n};if(n-=e.layoutInfo.glyphMarginLeft,n<=e.layoutInfo.glyphMarginWidth){const o=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(o.lineNumber);return r.glyphMarginLane=a[Math.floor(n/e.lineHeight)],t.fulfillMargin(2,s,i.range,r)}return n-=e.layoutInfo.glyphMarginWidth,n<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,s,i.range,r):(n-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,s,i.range,r))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Y.y(1,1),oe);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),s=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new Y.y(i,s),oe)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const s=e.getLineWidth(i),n=ae(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(new Y.y(i,1),n)}const s=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=s){const n=ae(t.mouseContentHorizontalOffset-s),r=new Y.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(r,n)}}const i=t.hitTestResult.value;return 1===i.type?ce.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(146),s=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return ce._getMouseColumn(s,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,s,n){const r=s.lineNumber,o=s.column,a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(s,e)}const l=e.visibleRangeForPosition(r,o);if(!l)return t.fulfillUnknown(s);const h=l.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(s,null,{mightBeForeignElement:!!n,injectedText:n});const d=[];if(d.push({offset:l.left,column:o}),o>1){const t=e.visibleRangeForPosition(r,o-1);t&&d.push({offset:t.left,column:o-1})}if(o<e.viewModel.getLineMaxColumn(r)){const t=e.visibleRangeForPosition(r,o+1);t&&d.push({offset:t.left,column:o+1})}d.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(c.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let c=1;c<d.length;c++){const e=d[c-1],i=d[c];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new q.Q(r,e.column,r,i.column);s=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new Y.y(r,e.column):new Y.y(r,i.column);break}}return t.fulfillContentText(s,m,{mightBeForeignElement:!p||!!n,injectedText:n})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.getVerticalOffsetForLineNumber(i),n=s+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>n)){const i=Math.floor((s+n)/2);let r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const o=new W.nz(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates(c.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=c.jG(e.viewDomNode);let s;if(s=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const s=document.createRange();let n=e.elementFromPoint(t,i);if(null!==n){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const e=n.getBoundingClientRect(),i=c.zk(n),r=`${i.getComputedStyle(n,null).getPropertyValue("font-style")} ${i.getComputedStyle(n,null).getPropertyValue("font-variant")} ${i.getComputedStyle(n,null).getPropertyValue("font-weight")} ${i.getComputedStyle(n,null).getPropertyValue("font-size")}/${i.getComputedStyle(n,null).getPropertyValue("line-height")} ${i.getComputedStyle(n,null).getPropertyValue("font-family")}`,o=n.innerText;let a,l=e.left,h=0;if(t>e.left+e.width)h=o.length;else{const e=le.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),r)/2,l+=a,t<l){h=i;break}l+=a}}s.setStart(n.firstChild,h),s.setEnd(n.firstChild,h)}return s}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!s||!s.startContainer)return new Z;const n=s.startContainer;if(n.nodeType===n.TEXT_NODE){const t=n.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,t,s.startOffset):new Z(n.parentNode)}if(n.nodeType===n.ELEMENT_NODE){const t=n.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,n,n.textContent.length):new Z(n)}return new Z}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,s=t?t.parentNode:null,n=s?s.parentNode:null;return(n&&n.nodeType===n.ELEMENT_NODE?n.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Z(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,s=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,n=t?t.parentNode:null,r=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;if(s===K.Gb.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return j.createFromDOMInfo(e,t,0)}else if(r===K.Gb.CLASS_NAME)return j.createFromDOMInfo(e,i.offsetNode,0)}return new Z(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:s}=t.model.getOptions(),n=Q.s.atomicPosition(i,e.column-1,s,2);return-1!==n?new Y.y(e.lineNumber,n+1):e}static doHitTest(e,t){let i=new Z;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);!t&&s.equals(i.position)||(i=new J(s,i.spanNode,t))}return i}}class le{static{this._INSTANCE=null}static getInstance(){return le._INSTANCE||(le._INSTANCE=new le),le._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const s=this._canvas.getContext("2d");s.font=t;const n=s.measureText(e).width;return this._cache[i]=n,n}}var he=i(55089),de=i(25154),ue=i(25893),ge=i(47358),pe=i(75326),me=i(31295);class fe extends V{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new ce(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const s=new W.$z(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=c.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new W.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(s.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let n=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{n=t}))),this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,n)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.QC.INSTANCE;let t=0,i=L.D.getZoomLevel(),s=!1,n=0;function r(e){return _.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.MOUSE_WHEEL,(o=>{if(this.viewController.emitMouseWheel(o),!this._context.configuration.options.get(76))return;const a=new ge.$(o);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(r(o)){const e=L.D.getZoomLevel(),t=a.deltaY>0?1:-1;L.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=L.D.getZoomLevel(),s=r(o),n=0),t=Date.now(),n+=a.deltaY,s&&(L.D.setZoomLevel(i+n/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(146)){const e=this._context.configuration.options.get(146).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new W.Hh(e,t).toPageCoordinates(c.zk(this.viewHelper.viewDomNode)),s=(0,W.wt)(this.viewHelper.viewDomNode);if(i.y<s.y||i.y>s.y+s.height||i.x<s.x||i.x>s.x+s.width)return null;const n=(0,W.i_)(this.viewHelper.viewDomNode,s,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,i,n,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=c.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),s=6===i.type||7===i.type,n=2===i.type||3===i.type||4===i.type,r=3===i.type,o=this._context.configuration.options.get(110),a=8===i.type||5===i.type,c=9===i.type;let l=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(l=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(s||r&&o))h(),this._mouseDownOperation.start(i.type,e,t);else if(n)e.preventDefault();else if(a){const s=i.detail;l&&this.viewHelper.shouldSuppressMouseDownOnViewZone(s.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=s,this._createMouseTarget=n,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new W.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ee,this._currentSelection=new pe.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const s=this._findMousePosition(t,!0);if(!s||!s.position)return;this._mouseState.trySetCount(t.detail,s.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(92)&&n.get(35)&&!n.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===s.type&&s.position&&this._currentSelection.containsPosition(s.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);c.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(s,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,s=this._context.viewLayout,n=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,r=Math.max(s.getCurrentScrollTop()-i,0),o=se.getZoneAtCoord(this._context,r);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return te.createOutsideEditor(n,e,"above",i)}const a=s.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(n,new Y.y(a,1),"above",i)}if(e.posy>t.y+t.height){const r=e.posy-t.y-t.height,o=s.getCurrentScrollTop()+e.relativePos.y,a=se.getZoneAtCoord(this._context,o);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(n,e,"below",r)}const c=s.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(n,new Y.y(c,i.getLineMaxColumn(c)),"below",r)}const r=s.getLineNumberAtVerticalOffset(s.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(n,new Y.y(r,1),"left",i)}if(e.posx>t.x+t.width){const s=e.posx-t.x-t.width;return te.createOutsideEditor(n,new Y.y(r,i.getLineMaxColumn(r)),"right",s)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const s=this._createMouseTarget(e,t);if(!s.position)return null;if(8===s.type||5===s.type){const e=this._helpPositionJumpOverViewZone(s.detail);if(e)return te.createViewZone(s.type,s.element,s.mouseColumn,e,s.detail)}return s}_helpPositionJumpOverViewZone(e){const t=new Y.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,s=e.positionAfter;return i&&s?i.isBefore(t)?i:s:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends d.jG{constructor(e,t,i,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Ce(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Ce extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._position=n,this._mouseEvent=r,this._lastTime=Date.now(),this._animationFrameDisposable=c.PG(c.zk(r.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(146).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const s=this._context.viewLayout.getLinesViewportData(),n="above"===this._position.outsidePosition?s.startLineNumber:s.endLineNumber;let r;{const e=(0,W.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(146).horizontalScrollbarHeight,i=new W.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),s=(0,W.i_)(this._viewHelper.viewDomNode,e,i);r=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,s,null)}r.position&&r.position.lineNumber===n||(r="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,this._context.viewModel.getLineMaxColumn(n)),"below",this._position.outsideDistance)),this._dispatchMouse(r,!0,2),this._animationFrameDisposable=c.PG(c.zk(r.element),(()=>this._execute()))}}class Ee{static{this.CLEAR_MOUSE_DOWN_COUNT_TIME=400}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ee.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}var be=i(68792);class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(c.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const s=new W.DW(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class ye extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(be.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class we extends d.jG{constructor(e,t,i){super();(_.un||_.m0&&_.Fr)&&he.e.pointerEvents?this.handler=this._register(new Se(e,t,i)):ue.G.TouchEvent?this.handler=this._register(new ye(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Re=i(78209),Le=i(91508),Te=i(69785);class xe extends V{}var ke=i(47612),Ae=i(87119);class Ne extends xe{static{this.CLASS_NAME="line-numbers"}constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Y.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(96);const i=e.get(146);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));n.sort(((e,t)=>q.Q.compareRangesUsingEnds(e.range,t.range)));let r=0;const o=this._context.viewModel.getLineCount(),a=[];for(let c=i;c<=s;c++){const e=c-i;let s=this._getLineRenderLineNumber(c),l="";for(;r<n.length&&n[r].range.endLineNumber<c;)r++;for(let t=r;t<n.length;t++){const{range:e,options:i}=n[t];e.startLineNumber<=c&&(l+=" "+i.lineNumberClassName)}s||l?(c===o&&0===this._context.viewModel.getLineLength(c)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(l+=" dimmed-line-number")),c===this._activeLineNumber&&(l+=" active-line-number"),a[e]=`<div class="${Ne.CLASS_NAME}${t}${l}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.Qt),s=e.getColor(Ae.JB);s?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${s}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Ie extends z{static{this.CLASS_NAME="glyph-margin"}static{this.OUTER_CLASS_NAME="margin"}constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(Ie.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,H.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ie.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}var Oe=i(81782);const De="monaco-mouse-cursor-text";var Me=i(62083),Pe=i(47661),Fe=i(2299),Ue=i(98031),He=i(63591),Be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},We=function(e,t){return function(i,s){t(i,s,e)}};class Ve{constructor(e,t,i,s,n){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=s,this.distanceToModelLineEnd=n,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Y.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Y.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const ze=p.gm;let Ge=class extends z{constructor(e,t,i,s,n){super(e),this._keybindingService=s,this._instantiationService=n,this._primaryCursorPosition=new Y.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,o=r.get(146);this._setAccessibilityOptions(r),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=r.get(50),this._lineHeight=r.get(67),this._emptySelectionClipboard=r.get(37),this._copyWithSyntaxHighlighting=r.get(25),this._visibleTextArea=null,this._selections=[new pe.L(1,1,1,1)],this._modelSelections=[new pe.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,H.Z)(document.createElement("textarea")),G.write(this.textArea,7),this.textArea.setClassName(`inputarea ${De}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(r)),this.textArea.setAttribute("aria-required",r.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(r.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Re.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",r.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,H.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const c={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},l={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),s=Array.isArray(e)?e:null,n=Array.isArray(e)?e.join(t):e;let r,o=null;if(be.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&n.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,o=e.mode)}return{isFromEmptySelection:i,multicursorText:s,text:n,html:r,mode:o}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Te._O(i,i.length,i.length,q.Q.fromPositions(t),0)}const t=500;if(_.zx&&!e.isEmpty()&&c.getValueLengthInRange(e,0)<t){const t=c.getValueInRange(e,0);return new Te._O(t,0,t.length,e,0)}if(p.nr&&!e.isEmpty()){const e="vscode-placeholder";return new Te._O(e,0,e.length,null,void 0)}return Te._O.EMPTY}if(p.m0){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,s]=this._getAndroidWordAtPosition(t);if(i.length>0)return new Te._O(i,s,s,q.Q.fromPositions(t),0)}return Te._O.EMPTY}return Te.Al.fromEditorSelection(c,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new be.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(be.No,l,h,_.OS,{isAndroid:p.m0,isChrome:p.H8,isFirefox:p.gm,isSafari:p.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,s=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,s=e.metadata.mode),this._viewController.paste(e.text,t,i,s)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Te.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Te.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:s,widthOfHiddenTextBefore:n}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),s=e.lastIndexOf("\n"),n=e.substring(s+1),r=n.lastIndexOf("\t"),o=n.length-r-1,a=i.getStartPosition(),c=Math.min(a.column-1,o),l=a.column-1-c,h=n.substring(0,n.length-c),{tabSize:d}=this._context.viewModel.model.getOptions(),u=function(e,t,i,s){if(0===t.length)return 0;const n=e.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const r=e.createElement("span");(0,g.M)(r,i),r.style.whiteSpace="pre",r.style.tabSize=s*i.spaceWidth+"px",r.append(t),n.appendChild(r),e.body.appendChild(n);const o=r.offsetWidth;return n.remove(),o}(this.textArea.domNode.ownerDocument,h,this._fontInfo,d);return{distanceToModelLineStart:l,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:r}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),s=e.indexOf("\n"),n=-1===s?e:e.substring(0,s),r=n.indexOf("\t"),o=-1===r?n.length:n.length-r-1,a=i.getEndPosition(),c=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,o);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-c}})();this._context.viewModel.revealRange("keyboard",!0,q.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ve(this._context,i.startLineNumber,s,n,r),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${De} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${De}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let s=!0,n=e.column,r=!0,o=e.column,a=0;for(;a<50&&(s||r);){if(s&&n<=1&&(s=!1),s){const e=t.charCodeAt(n-2);0!==i.get(e)?s=!1:n--}if(r&&o>t.length&&(r=!1),r){const e=t.charCodeAt(o-1);0!==i.get(e)?r=!1:o++}a++}return[t.substring(n-1,o-1),e.column-n]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)(this._context.configuration.options.get(132),[]);let s=e.column,n=0;for(;s>1;){const r=t.charCodeAt(s-2);if(0!==i.get(r)||n>50)return t.substring(s-1,e.column-1);n++,s--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Le.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){if(1===e.get(2)){const e=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),t=this._keybindingService.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),i=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),s=Re.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?Re.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,e):t?Re.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",s,t):i?Re.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",s,i):s}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===R.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(146).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ze?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:s}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=s*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(125))),(e.hasChanged(34)||e.hasChanged(92))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.M.enabled||e.get(34)&&e.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){this._primaryCursorPosition=new Y.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea?.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,s=this._visibleTextArea.endPosition;if(i&&s&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,r=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let o=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,c=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,o+=e,c-=e}c>this._contentWidth&&(c=this._contentWidth);const l=this._context.viewModel.getViewLineData(i.lineNumber),h=l.tokens.findTokenIndexAtOffset(i.column-1),d=h===l.tokens.findTokenIndexAtOffset(s.column-1),u=this._visibleTextArea.definePresentation(d?l.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=r*this._lineHeight,this.textArea.domNode.scrollLeft=o,this._doRender({lastRenderPosition:null,top:n,left:a,width:c,height:this._lineHeight,useCover:!1,color:(Me.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight)this._renderAtTopLeft();else if(_.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._textAreaInput.textAreaState.newlineCountBeforeSelection??this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:ze?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ze?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const s=this._context.configuration.options;s.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Ie.OUTER_CLASS_NAME):0!==s.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ne.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ge=Be([We(3,Ue.b),We(4,He._Y)],Ge);var je=i(80624),Ke=i(36999);class Ye{constructor(e,t,i,s){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=s}paste(e,t,i,s){this.commandDelegate.paste(e,t,i,s)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,s){this.commandDelegate.compositionType(e,t,i,s)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Y.y(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.j9&&t.get(108),s=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||s?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Ke.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Ke.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ke.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ke.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Ke.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Ke.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Ke.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Ke.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Ke.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Ke.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Ke.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Ke.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Ke.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var qe=i(80789),$e=i(99020);class Qe{constructor(e){this._lineFactory=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new l.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),s=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>s)return null;let n=0,r=0;for(let o=i;o<=s;o++){const i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(n=i,r=1):r++)}if(e<i){let s=0;s=t<i?t-e+1:i-e,this._rendLineNumberStart-=s}return this._lines.splice(n,r)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const s=this.getStartLineNumber(),n=this.getEndLineNumber();let r=!1;for(let o=e;o<=i;o++)o>=s&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,s=this.getStartLineNumber(),n=this.getEndLineNumber();if(e<=s)return this._rendLineNumberStart+=i,null;if(e>n)return null;if(i+e>n){return this._lines.splice(e-this._rendLineNumberStart,n-e+1)}const r=[];for(let h=0;h<i;h++)r[h]=this._lineFactory.createLine();const o=e-this._rendLineNumberStart,a=this._lines.slice(0,o),c=this._lines.slice(o,this._lines.length-i),l=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(r).concat(c),l}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let s=!1;for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.toLineNumber<t||r.fromLineNumber>i)continue;const o=Math.max(t,r.fromLineNumber),a=Math.min(i,r.toLineNumber);for(let e=o;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),s=!0}}return s}}class Xe{constructor(e){this._lineFactory=e,this.domNode=this._createDomNode(),this._linesCollection=new Qe(this._lineFactory)}_createDomNode(){const e=(0,H.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(146)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Ze(this.domNode.domNode,this._lineFactory,e),s={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},n=i.render(s,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(n.rendLineNumberStart,n.lines)}}class Ze{static{this._ttPolicy=(0,qe.H)("editorViewLayer",{createHTML:e=>e})}constructor(e,t,i){this._domNode=e,this._lineFactory=t,this._viewportData=i}render(e,t,i,s){const n={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(n.rendLineNumberStart+n.linesLength-1<t||i<n.rendLineNumberStart){n.rendLineNumberStart=t,n.linesLength=i-t+1,n.lines=[];for(let e=t;e<=i;e++)n.lines[e-t]=this._lineFactory.createLine();return this._finishRendering(n,!0,s),n}if(this._renderUntouchedLines(n,Math.max(t-n.rendLineNumberStart,0),Math.min(i-n.rendLineNumberStart,n.linesLength-1),s,t),n.rendLineNumberStart>t){const e=t,r=Math.min(i,n.rendLineNumberStart-1);e<=r&&(this._insertLinesBefore(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart<t){const e=Math.min(n.linesLength,t-n.rendLineNumberStart);e>0&&(this._removeLinesBefore(n,e),n.linesLength-=e)}if(n.rendLineNumberStart=t,n.rendLineNumberStart+n.linesLength-1<i){const e=n.rendLineNumberStart+n.linesLength,r=i;e<=r&&(this._insertLinesAfter(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart+n.linesLength-1>i){const e=Math.max(0,i-n.rendLineNumberStart+1),t=n.linesLength-1-e+1;t>0&&(this._removeLinesAfter(n,t),n.linesLength-=t)}return this._finishRendering(n,!1,s),n}_renderUntouchedLines(e,t,i,s,n){const r=e.rendLineNumberStart,o=e.lines;for(let a=t;a<=i;a++){const e=r+a;o[a].layoutLine(e,s[e-n],this._viewportData.lineHeight)}}_insertLinesBefore(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t?.remove()}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let s=0;s<t;s++){const t=e.lines[i+s].getDomNode();t?.remove()}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,s){Ze._ttPolicy&&(i=Ze._ttPolicy.createHTML(i));const n=this._domNode.lastChild;t||!n?this._domNode.innerHTML=i:n.insertAdjacentHTML("afterend",i);let r=this._domNode.lastChild;for(let o=e.linesLength-1;o>=0;o--){const t=e.lines[o];s[o]&&(t.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const s=document.createElement("div");Ze._ttPolicy&&(t=Ze._ttPolicy.createHTML(t)),s.innerHTML=t;for(let n=0;n<e.linesLength;n++){const t=e.lines[n];if(i[n]){const e=s.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}static{this._sb=new $e.fe(1e5)}_finishRendering(e,t,i){const s=Ze._sb,n=e.linesLength,r=e.lines,o=e.rendLineNumberStart,a=[];{s.reset();let c=!1;for(let e=0;e<n;e++){const t=r[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(a[e]=!0,c=!0)}c&&this._finishRenderingNewLines(e,t,s.build(),a)}{s.reset();let t=!1;const c=[];for(let e=0;e<n;e++){const n=r[e];if(c[e]=!1,a[e])continue;n.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(c[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,s.build(),c)}}}class Je extends z{constructor(e){super(e),this._dynamicOverlays=[],this._isFocused=!1,this._visibleLines=new Xe({createLine:()=>new et(this._dynamicOverlays)}),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.M)(this.domNode,t),this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.M)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,s=t.length;i<s;i++){const s=t[i];s.prepareRender(e),s.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,H.Z)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,s,n){let r="";for(let o=0,a=this._dynamicOverlays.length;o<a;o++){r+=this._dynamicOverlays[o].render(s.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;">'),n.appendString(r),n.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.M)(this.domNode,t.get(50));const i=t.get(146);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class st{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown?.(e)}emitKeyUp(e){this.onKeyUp?.(e)}emitContextMenu(e){this.onContextMenu?.(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove?.(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave?.(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown?.(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp?.(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag?.(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop?.(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled?.()}emitMouseWheel(e){this.onMouseWheel?.(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return st.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new Y.y(e.afterLineNumber,1)).lineNumber}}}class nt extends z{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(146),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const s=t.contentLeft;return this.contentLeft!==s&&(this.contentLeft=s,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){let t=0;const i=e.getDecorationsInViewport();for(const s of i){if(!s.options.blockClassName)continue;let i,n,r=this.blocks[t];r||(r=this.blocks[t]=(0,H.Z)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(i=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(i=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),n=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[o,a,c,l]=s.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-l),r.setWidth(this.contentWidth+l+a),r.setTop(i-e.scrollTop-o),r.setHeight(n-i+o+c),t++}for(let s=t;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=t}}class rt extends z{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,H.Z)(document.createElement("div")),G.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new ot(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,s,n){this._widgets[e.getId()].setPosition(t,i,s,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.remove(),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ot{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,H.Z)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const s=this._context.configuration.options,n=s.get(146);this._fixedOverflowWidgets=s.get(42),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this._lineHeight=s.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(146)){const e=t.get(146);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function s(e,t,i){if(!e)return new at(null,null);const s=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(s)){const n=t.coordinatesConverter.convertModelPositionToViewPosition(s,i??void 0);return new at(e,n)}return new at(e,null)}this._affinity=e,this._primaryAnchor=s(t,this._context.viewModel,this._affinity),this._secondaryAnchor=s(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?t?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,s){this._setPosition(s,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,s){const n=e.top,r=n,o=e.top+e.height,a=n-i,c=r>=i,l=o,h=s.viewportHeight-o>=i;let d=e.left;return d+t>s.scrollLeft+s.viewportWidth&&(d=s.scrollLeft+s.viewportWidth-t),d<s.scrollLeft&&(d=s.scrollLeft),{fitsAbove:c,aboveTop:a,fitsBelow:h,belowTop:l,left:d}}_layoutHorizontalSegmentInPage(e,t,i,s){const n=Math.max(15,t.left-s),r=Math.min(t.left+t.width+s,e.width-15),o=this._viewDomNode.domNode.ownerDocument.defaultView;let a=t.left+i-(o?.scrollX??0);if(a+s>r){const e=a-(r-s);a-=e,i-=e}if(a<n){const e=a-n;a-=e,i-=e}return[i,a]}_layoutBoxInPage(e,t,i,s){const n=e.top-i,r=e.top+e.height,o=c.BK(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,l=a.defaultView,h=o.top+n-(l?.scrollY??0),d=o.top+r-(l?.scrollY??0),u=c.tG(a.body),[g,p]=this._layoutHorizontalSegmentInPage(u,o,e.left-s.scrollLeft+this._contentLeft,t),m=h>=22,f=d+i<=u.height-22;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(h,22),fitsBelow:f,belowTop:d,left:p}:{fitsAbove:m,aboveTop:n,fitsBelow:f,belowTop:r,left:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new ct(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){return{primary:t(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:t(this._secondaryAnchor.viewPosition?.lineNumber===this._primaryAnchor.viewPosition?.lineNumber?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function t(t,i,s){if(!t)return null;const n=e.visibleRangeForPosition(t);if(!n)return null;const r=1===t.column&&3===i?0:n.left,o=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new lt(o,r,s)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const s=this._context.configuration.options.get(50);let n=t.left;return n=n<e.left?Math.max(n,e.left-i+s.typicalFullwidthCharacterWidth):Math.min(n,e.left+i-s.typicalFullwidthCharacterWidth),new lt(e.top,n,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return{kind:"offViewport",preserveFocus:this.domNode.domNode.contains(this.domNode.domNode.ownerDocument.activeElement)};if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const s=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let n;n=this.allowEditorOverflow?this._layoutBoxInPage(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!n)return null;if(2===r||n.fitsAbove)return{kind:"inViewport",coordinate:new ct(n.aboveTop,n.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new ct(s.top,s.left)),position:0}:{kind:"inViewport",coordinate:new ct(s.top,s.left),position:0};if(!n)return null;if(2===r||n.fitsBelow)return{kind:"inViewport",coordinate:new ct(n.belowTop,n.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData||"offViewport"===this._renderData.kind)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,"offViewport"===this._renderData?.kind&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class ct{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class lt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t,...i){try{return e.call(t,...i)}catch{return null}}var dt=i(86723);class ut extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const n of this._selections)t.add(n.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const s=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==s&&(this._selectionIsEmpty=s,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=[];for(let r=t;r<=i;r++){s[r-t]=""}if(this._wordWrap){const n=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const r=this._context.viewModel.coordinatesConverter,o=r.convertViewPositionToModelPosition(new Y.y(e,1)).lineNumber,a=r.convertModelPositionToViewPosition(new Y.y(o,1)).lineNumber,c=r.convertModelPositionToViewPosition(new Y.y(o,this._context.viewModel.model.getLineMaxColumn(o))).lineNumber,l=Math.max(a,t),h=Math.min(c,i);for(let e=l;e<=h;e++){s[e-t]=n}}}const n=this._renderOne(e,!0);for(const r of this._cursorLineNumbers){if(r<t||r>i)continue;s[r-t]=n}this._renderData=s}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ae.Mf)){const i=e.getColor(Ae.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,dt.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],s=0;for(let a=0,c=t.length;a<c;a++){const e=t[a];e.options.className&&(i[s++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,s=t.options.className;return i<s?-1:i>s?1:q.Q.compareRangesUsingStarts(e.range,t.range)}));const n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o=[];for(let a=n;a<=r;a++){o[a-n]=""}this._renderWholeLineDecorations(e,i,o),this._renderNormalDecorations(e,i,o),this._renderResult=o}_renderWholeLineDecorations(e,t,i){const s=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let r=0,o=t.length;r<o;r++){const e=t[r];if(!e.options.isWholeLine)continue;const o='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,s),c=Math.min(e.range.endLineNumber,n);for(let t=a;t<=c;t++){i[t-s]+=o}}}_renderNormalDecorations(e,t,i){const s=e.visibleRange.startLineNumber;let n=null,r=!1,o=null,a=!1;for(let c=0,l=t.length;c<l;c++){const l=t[c];if(l.options.isWholeLine)continue;const h=l.options.className,d=Boolean(l.options.showIfCollapsed);let u=l.range;d&&1===u.endColumn&&u.endLineNumber!==u.startLineNumber&&(u=new q.Q(u.startLineNumber,u.startColumn,u.endLineNumber-1,this._context.viewModel.getLineMaxColumn(u.endLineNumber-1))),n===h&&r===d&&q.Q.areIntersectingOrTouching(o,u)?o=q.Q.plusRange(o,u):(null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i),n=h,r=d,o=u,a=l.options.shouldFillLineOnLineBreak??!1)}null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i)}_renderNormalDecoration(e,t,i,s,n,r,o){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let c=0,l=a.length;c<l;c++){const e=a[c];if(e.outsideRenderedLine)continue;const t=e.lineNumber-r;if(n&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),s=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new je.Y(s,this._typicalHalfwidthCharacterWidth)}}for(let n=0,r=e.ranges.length;n<r;n++){const a=s&&e.continuesOnNextLine&&1===r,c=e.ranges[n],l='<div class="cdr '+i+'" style="left:'+String(c.left)+"px;width:"+(a?"100%;":String(c.width)+"px;")+'"></div>';o[t]+=l}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends z{constructor(e,t,i,s){super(e);const n=this._context.configuration.options,r=n.get(104),o=n.get(75),a=n.get(40),l=n.get(107),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,ke.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:o,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new me.oO(t.domNode,h,this._context.viewLayout.getScrollable())),G.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,H.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const s={};if(t){const t=e.scrollTop;t&&(s.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(s.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(s,1)};this._register(c.ko(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(c.ko(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(c.ko(s.domNode,"scroll",(e=>d(s.domNode,!0,!1)))),this._register(c.ko(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(104),i=e.get(75),s=e.get(40),n=e.get(107),r={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:s,scrollPredominantAxis:n};this.scrollbar.updateOptions(r)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,ke.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(16223);class vt{constructor(e,t,i,s,n){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=s,this._decorationToRenderBrand=void 0,this.zIndex=n??0}}class Ct{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Et{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class bt extends xe{_render(e,t,i){const s=[];for(let o=e;o<=t;o++){s[o-e]=new Et}if(0===i.length)return s;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let n=null,r=0;for(let o=0,a=i.length;o<a;o++){const a=i[o],c=a.className,l=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;n===c?(h=Math.max(r+1,h),r=Math.max(r,d)):(n=c,r=d);for(let e=h;e<=r;e++)s[e].add(new Ct(c,l,a.tooltip))}return s}}class St extends z{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(146);this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!q.Q.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets[t]){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=e.getDecorationsInViewport();for(const r of n){const e=r.options.glyphMarginClassName;if(!e)continue;const n=Math.max(r.range.startLineNumber,i),o=Math.min(r.range.endLineNumber,s),a=r.options.glyphMargin?.position??_t.ZS.Center,c=r.options.zIndex??0;for(let i=n;i<=o;i++){const s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,0)),n=this._context.viewModel.glyphLanes.getLanesAtLine(s.lineNumber).indexOf(a);t.push(new yt(i,n,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(const n of Object.values(this._widgets)){const e=n.preference.range,{startLineNumber:r,endLineNumber:o}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(q.Q.lift(e));if(!r||!o||o<i||r>s)continue;const a=Math.max(r,i),c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(a,0)),l=this._context.viewModel.glyphLanes.getLanesAtLine(c.lineNumber).indexOf(n.preference.lane);t.push(new wt(a,l,n.preference.zIndex,n))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const s of Object.values(this._widgets))s.renderInfo=null;const t=new m.j3(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const s=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!s||0===s.length)break;const n=s[0];if(0===n.type){const e=[];for(const t of s){if(t.zIndex!==n.zIndex||t.type!==n.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(n.accept(e.join(" ")))}else n.widget.renderInfo={lineNumber:n.lineNumber,laneIndex:n.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();e?.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const s=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],n=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(s),i.domNode.setLeft(n),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const s=this._decorationGlyphsToRender[i],n=e.viewportData.relativeVerticalOffset[s.lineNumber-e.viewportData.startLineNumber],r=this._glyphMarginLeft+s.laneIndex*this._lineHeight;let o;i<this._managedDomNodes.length?o=this._managedDomNodes[i]:(o=(0,H.Z)(document.createElement("div")),this._managedDomNodes.push(o),this.domNode.appendChild(o)),o.setClassName("cgmr codicon "+s.combinedClassName),o.setPosition("absolute"),o.setTop(n),o.setLeft(r),o.setWidth(t),o.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();e?.domNode.remove()}}}class yt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=s,this.type=0}accept(e){return new Rt(this.lineNumber,this.laneIndex,e)}}class wt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=s,this.type=1}}class Rt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Lt=i(631),Tt=i(53450),xt=i(84739);class kt extends xe{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(147),s=t.get(50);this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(147),s=t.get(50);return this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return!this._primaryPosition?.equals(t)&&(this._primaryPosition=t,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=e.scrollWidth,n=this._primaryPosition,r=this.getGuidesByLine(t,Math.min(i+1,this._context.viewModel.getLineCount()),n),o=[];for(let a=t;a<=i;a++){const i=a-t,n=r[i];let c="";const l=e.visibleRangeForPosition(new Y.y(a,1))?.left??0;for(const t of n){const i=-1===t.column?l+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new Y.y(a,t.column)).left;if(i>s||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const n=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(e.visibleRangeForPosition(new Y.y(a,t.horizontalLine.endColumn))?.left??i+this._spaceWidth)-i:this._spaceWidth;c+=`<div class="core-guide ${t.className} ${n}" style="left:${i}px;width:${r}px"></div>`}o[i]=c}this._renderResult=o}getGuidesByLine(e,t,i){const s=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.EnabledForActive:xt.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,n=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,o=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const s=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=s.startLineNumber,o=s.endLineNumber,a=s.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),l=[];for(let h=e;h<=t;h++){const t=new Array;l.push(t);const i=s?s[h-e]:[],d=new m.j3(i),u=n?n[h-e]:0;for(let e=1;e<=u;e++){const s=(e-1)*c+1,n=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&r<=h&&h<=o&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn<s))||[]);const l=d.peek();l&&l.visibleColumn===s&&!l.horizontalLine||t.push(new xt.TH(s,-1,"core-guide-indent lvl-"+(e-1)%30+(n?" indent-active":""),null,-1,-1))}t.push(...d.takeWhile((e=>!0))||[])}return l}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function At(e){if(!e||!e.isTransparent())return e}(0,ke.zy)(((e,t)=>{const i=[{bracketColor:Ae.sN,guideColor:Ae.n4,guideColorActive:Ae.bB},{bracketColor:Ae.lQ,guideColor:Ae.I2,guideColorActive:Ae.WS},{bracketColor:Ae.ss,guideColor:Ae.Bo,guideColorActive:Ae.Pe},{bracketColor:Ae.l5,guideColor:Ae.If,guideColorActive:Ae.WD},{bracketColor:Ae.sH,guideColor:Ae.BD,guideColorActive:Ae.P1},{bracketColor:Ae.zp,guideColor:Ae.IW,guideColorActive:Ae.WY}],s=new Tt.k,n=[{indentColor:Ae.vV,indentColorActive:Ae.H0},{indentColor:Ae.ob,indentColorActive:Ae.Am},{indentColor:Ae.hz,indentColorActive:Ae.tK},{indentColor:Ae.ow,indentColorActive:Ae.A3},{indentColor:Ae.vP,indentColorActive:Ae.tp},{indentColor:Ae.CM,indentColorActive:Ae.As}],r=i.map((t=>{const i=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),n=e.getColor(t.guideColorActive),r=At(At(s)??i?.transparent(.3)),o=At(At(n)??i);if(r&&o)return{guideColor:r,guideColorActive:o}})).filter(Lt.O9),o=n.map((t=>{const i=e.getColor(t.indentColor),s=e.getColor(t.indentColorActive),n=At(i),r=At(s);if(n&&r)return{indentColor:n,indentColorActive:r}})).filter(Lt.O9);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var Nt=i(90766);class It{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class Ot{constructor(){this._currentVisibleRange=new q.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Dt{constructor(e,t,i,s,n,r,o){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=n,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Mt{constructor(e,t,i,s,n){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=n,this.type="selections";let r=t[0].startLineNumber,o=t[0].endLineNumber;for(let a=1,c=t.length;a<c;a++){const e=t[a];r=Math.min(r,e.startLineNumber),o=Math.max(o,e.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class Pt extends z{static{this.HORIZONTAL_EXTRA_PX=30}constructor(e,t){super(e);const i=this._context.configuration,s=this._context.configuration.options,n=s.get(50),r=s.get(147);this._lineHeight=s.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=r.isViewportWrapping,this._revealHorizontalRightPadding=s.get(101),this._cursorSurroundingLines=s.get(29),this._cursorSurroundingLinesStyle=s.get(30),this._canUseLayerHinting=!s.get(32),this._viewLineOptions=new K.Ax(i,this._context.theme.type),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Xe({createLine:()=>new K.Gb(this._viewLineOptions)}),this.domNode=this._visibleLines.domNode,G.write(this.domNode,8),this.domNode.setClassName(`view-lines ${De}`),(0,g.M)(this.domNode,n),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Nt.uC((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new Nt.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new Ot,this._horizontalRevealRequest=null,this._stickyScrollEnabled=s.get(116).enabled,this._maxNumberStickyLines=s.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(147)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),s=t.get(147);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(101),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(116).enabled,this._maxNumberStickyLines=t.get(116).maxLineCount,(0,g.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new K.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=!1;for(let n=t;n<=i;n++)s=this._visibleLines.getVisibleLine(n).onSelectionChanged()||s;return s}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Dt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Mt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const s=this._getLineNumberFor(i);if(-1===s)return null;if(s<1||s>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(s))return new Y.y(s,1);const n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(s<n||s>r)return null;let o=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(s);return o<a&&(o=a),new Y.y(s,o)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===K.Gb.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++){if(e===this._visibleLines.getVisibleLine(s).getDomNode())return s}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getWidth(s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,s=q.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;const n=[];let r=0;const o=new It(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(s.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber();for(let h=s.startLineNumber;h<=s.endLineNumber;h++){if(h<c||h>l)continue;const e=h===s.startLineNumber?s.startColumn:1,d=h!==s.endLineNumber,u=d?this._context.viewModel.getLineMaxColumn(h):s.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,o);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}n[r++]=new je.BG(g.outsideRenderedLine,h,je.Y.from(g.ranges),d)}}return this._updateLineWidthsSlowIfDomDidLayout(o),0===r?null:n}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new je.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=1,n=!0;for(let r=t;r<=i;r++){const t=this._visibleLines.getVisibleLine(r);!e||t.getWidthIsFast()?s=Math.max(s,t.getWidth(null)):n=!1}return n&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),n}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let n=i;n<=s;n++){const i=this._visibleLines.getVisibleLine(n);if(i.needsMonospaceFontCheck()){const s=i.getWidth(null);s>t&&(t=s,e=n)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let n=i;n<=s;n++){this._visibleLines.getVisibleLine(n).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,s,n,r){const o=e.top,a=e.height,c=o+a;let l,h,d;if(n&&n.length>0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,s=n.length;i<s;i++){const s=n[i];e=Math.min(e,s.startLineNumber),t=Math.max(t,s.endLineNumber)}l=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return-1;l=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(s.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(s.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=a/this._lineHeight,t=Math.max(this._cursorSurroundingLines,this._stickyScrollEnabled?this._maxNumberStickyLines:0),i=Math.min(e/2,t);g=i*this._lineHeight,p=Math.max(0,i-1)*this._lineHeight}if(i||0!==r&&4!==r||(p+=this._lineHeight),h-=g,d+=p,d-h>a){if(!l)return-1;u=h}else if(5===r||6===r)if(6===r&&o<=h&&d<=c)u=o;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=d-a;u=Math.max(t,e)}else if(1===r||2===r)if(2===r&&o<=h&&d<=c)u=o;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(o,c,h,d,3===r,4===r);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(146),s=t.left,n=s+t.width-i.verticalScrollbarWidth;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,Math.round(e.left)),o=Math.max(o,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,Math.round(t.left)),o=Math.max(o,Math.round(t.left+t.width))}if(e.minimalReveal||(r=Math.max(0,r-Pt.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding),"selections"===e.type&&o-r>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(s,n,r,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,i,s,n,r){n=!!n,r=!!r;const o=(t|=0)-(e|=0);return(s|=0)-(i|=0)<o?n?i:r?Math.max(0,s-o):i<e?i:s>t?Math.max(0,s-o):e:i}}class Ft extends bt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(146);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.linesDecorationsClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,e.options.linesDecorationsTooltip??null,o));const a=e.options.firstLineDecorationClassName;a&&(i[s++]=new vt(e.range.startLineNumber,e.range.startLineNumber,a,e.options.linesDecorationsTooltip??null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let o=t;o<=i;o++){const e=o-t,i=s[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=n,a+=e}r[e]=a}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Ut extends bt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.marginClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n=[];for(let r=t;r<=i;r++){const e=r-t,i=s[e].getDecorations();let o="";for(const t of i)o+='<div class="cmdr '+t.className+'" style=""></div>';n[e]=o}this._renderResult=n}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Ht=i(34072);class Bt{static{this.Empty=new Bt(0,0,0,0)}constructor(e,t,i,s){this._rgba8Brand=void 0,this.r=Bt._clamp(e),this.g=Bt._clamp(t),this.b=Bt._clamp(i),this.a=Bt._clamp(s)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}class Wt extends d.jG{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,d.lC)(new Wt)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Me.dG.getColorMap();if(!e)return this._colors=[Bt.Empty],void(this._backgroundIsLight=!0);this._colors=[Bt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Bt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}var Vt=i(92896),zt=i(66261);const Gt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var jt=i(85152);class Kt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Kt.soften(e,.8),this.charDataLight=Kt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let s=0,n=e.length;s<n;s++)i[s]=(0,jt.W)(e[s]*t);return i}renderChar(e,t,i,s,n,r,o,a,c,l,h){const d=1*this.scale,u=2*this.scale,g=h?1:u;if(t+d>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=l?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(s,c),f=4*e.width,_=o.r,v=o.g,C=o.b,E=n.r-_,b=n.g-v,S=n.b-C,y=Math.max(r,a),w=e.data;let R=m*d*u,L=i*f+4*t;for(let T=0;T<g;T++){let e=L;for(let t=0;t<d;t++){const t=p[R++]/255*(r/255);w[e++]=_+E*t,w[e++]=v+b*t,w[e++]=C+S*t,w[e++]=y}L+=f}}blockRenderChar(e,t,i,s,n,r,o,a){const c=1*this.scale,l=2*this.scale,h=a?1:l;if(t+c>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=n/255*.5,g=r.r,p=r.g,m=r.b,f=g+(s.r-g)*u,_=p+(s.g-p)*u,v=m+(s.b-m)*u,C=Math.max(n,o),E=e.data;let b=i*d+4*t;for(let S=0;S<h;S++){let e=b;for(let t=0;t<c;t++)E[e++]=f,E[e++]=_,E[e++]=v,E[e++]=C;b+=d}}}var Yt=i(6921);const qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},$t=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=qt[e[i]]<<4|15&qt[e[i+1]];return t},Qt={1:(0,Yt.P)((()=>$t("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Yt.P)((()=>$t("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Xt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Qt[e]?new Kt(Qt[e](),e):Xt.createFromSampleData(Xt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let s=0;for(const n of Gt)i.fillText(String.fromCharCode(n),s,8),s+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Xt._downsample(e,t);return new Kt(i,t)}static _downsampleChar(e,t,i,s,n){const r=1*n,o=2*n;let a=s,c=0;for(let l=0;l<o;l++){const s=l/o*16,n=(l+1)/o*16;for(let o=0;o<r;o++){const l=o/r*10,h=(o+1)/r*10;let d=0,u=0;for(let i=s;i<n;i++){const s=t+3840*Math.floor(i),n=1-(i-Math.floor(i));for(let t=l;t<h;t++){const i=1-(t-Math.floor(t)),r=s+4*Math.floor(t),o=i*n;u+=o,d+=e[r]*e[r+3]/255*o}}const g=d/u;c=Math.max(c,g),i[a++]=(0,jt.W)(g)}}return c}static _downsample(e,t){const i=2*t*1*t,s=96*i,n=new Uint8ClampedArray(s);let r=0,o=0,a=0;for(let c=0;c<96;c++)a=Math.max(a,this._downsampleChar(e,o,n,r,t)),r+=i,o+=40;if(a>0){const e=255/a;for(let t=0;t<s;t++)n[t]*=e}return n}}var Zt=i(74320),Jt=i(49435);class ei{constructor(e,t,i){const s=e.options,n=s.get(144),r=s.get(146),o=r.minimap,a=s.get(50),c=s.get(73);this.renderMinimap=o.renderMinimap,this.size=c.size,this.minimapHeightIsEditorHeight=o.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=s.get(106),this.paddingTop=s.get(84).top,this.paddingBottom=s.get(84).bottom,this.showSlider=c.showSlider,this.autohide=c.autohide,this.pixelRatio=n,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=s.get(67),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=o.minimapCanvasInnerWidth,this.canvasInnerHeight=o.minimapCanvasInnerHeight,this.canvasOuterWidth=o.minimapCanvasOuterWidth,this.canvasOuterHeight=o.minimapCanvasOuterHeight,this.isSampling=o.minimapIsSampling,this.editorHeight=r.height,this.fontScale=o.minimapScale,this.minimapLineHeight=o.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt.z,this.sectionHeaderFontSize=c.sectionHeaderFontSize*n,this.sectionHeaderLetterSpacing=c.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,Yt.P)((()=>Xt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(zt.ILr);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(zt.K1Z);return t?Bt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(zt.By2);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,s,n,r,o,a,c){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=s,this.sliderTop=n,this.sliderHeight=r,this.topPaddingLineCount=o,this.startLineNumber=a,this.endLineNumber=c}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,s,n,r,o,a,c,l,h){const d=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,n-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(n*n/t)),s=Math.max(0,e.minimapHeight-i),r=s/(l-n),h=c*r,d=s>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(c,l,d,r,h,i,g,1,Math.min(o,u))}let m;if(r&&i!==o){const e=i-t+1;m=Math.floor(e*u/d)}else{const e=n/p;m=Math.floor(e*u/d)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=n/p;v=Math.max(v,e-1)}if(v>0){_=(f+o+v-n/p-1)*u/d}else _=Math.max(0,(f+o)*u/d-m);_=Math.min(e.minimapHeight-m,_);const C=_/(l-n),E=c*C;if(g>=f+o+v){return new ti(c,l,_>0,C,E,m,f,1,o)}{let i,n;i=t>1?t+f:Math.max(1,c/p);let r=Math.max(1,Math.floor(i-E*d/u));r<f?(n=f-r+1,r=1):(n=0,r=Math.max(1,r-f)),h&&h.scrollHeight===l&&(h.scrollTop>c&&(r=Math.min(r,h.startLineNumber),n=Math.max(n,h.topPaddingLineCount)),h.scrollTop<c&&(r=Math.max(r,h.startLineNumber),n=Math.min(n,h.topPaddingLineCount)));const a=Math.min(o,r-n+g-1),_=(c-s)/p;let v;return v=c>=e.paddingTop?(t-r+n+_)*u/d:c/e.paddingTop*(n+_)*u/d,new ti(c,l,!0,C,v,m,n,r,a)}}}class ii{static{this.INVALID=new ii(-1)}constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}class si{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Qe({createLine:()=>ii.INVALID}),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,s=t.length;i<s;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class ni{constructor(e,t,i,s){this._backgroundFillData=ni._createBackgroundFillData(t,i,s),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const s=i.r,n=i.g,r=i.b,o=i.a,a=new Uint8ClampedArray(e*t*4);let c=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)a[c]=s,a[c+1]=n,a[c+2]=r,a[c+3]=o,c+=4;return a}}class ri{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:s}=R.xZ.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),n=t/s,r=n/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,s>1){for(let t=0,i=s-1;t<i;t++)e[t]=Math.round(t*n+r);e[s-1]=t}return[new ri(n,e),[]]}const o=i.minimapLines,a=o.length,c=[];let l=0,h=0,d=1;let u=[],g=null;for(let p=0;p<s;p++){const e=Math.max(d,Math.round(p*n)),i=Math.max(e,Math.round((p+1)*n));for(;l<a&&o[l]<e;){if(u.length<10){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}l++}let m;if(l<a&&o[l]<=i)m=o[l],l++;else if(m=0===p?1:p+1===s?t:Math.round(p*n+r),u.length<10){const e=l+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}c[p]=m,d=m}if(u.length<10)for(;l<a;){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,l++}else u=[{type:"flush"}];return[new ri(n,c),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let s=this.modelLineToMinimapLine(t)-1;for(;s+1<this.minimapLines.length&&this.minimapLines[s+1]<=t;)s++;if(i===s){const s=this.minimapLines[i];if(s<e||s>t)return null}return[i+1,s+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),s=this.modelLineToMinimapLine(t);return e!==t&&s===i&&(s===this.minimapLines.length?i>1&&i--:s++),[i,s]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,s=0;for(let n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]<=e.toLineNumber?(this.minimapLines[n]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,n),s=Math.max(s,n)):this.minimapLines[n]-=t;return[i,s]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class oi extends z{constructor(e){super(e),this._sectionHeaderCache=new Zt.qK(10,1.5),this.tokensColorTracker=Wt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=ri.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const s={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(s)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=ri.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const s of i)switch(s.type){case"deleted":this._actual.onLinesDeleted(s.deleteFromLineNumber,s.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(s.insertFromLineNumber,s.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const s=[];for(let n=0,r=t-e+1;n<r;n++)i[n]?s[n]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+n-1]):s[n]=null;return s}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.L(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>!e.options.minimap?.sectionHeaderStyle));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,s=this._samplingState.modelLineToMinimapLine(i.startLineNumber),n=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new Vt.vo(new q.Q(s,i.startColumn,n,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,s=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-s)),this._getMinimapDecorationsInViewport(e,t).filter((e=>!!e.options.minimap?.sectionHeaderStyle))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const s=this._samplingState.minimapLines[e-1],n=this._samplingState.minimapLines[t-1];i=new q.Q(s,1,n,this._context.viewModel.getLineMaxColumn(n))}else i=new q.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){const i=e.options.minimap?.sectionHeaderText;if(!i)return null;const s=this._sectionHeaderCache.get(i);if(s)return s;const n=t(i);return this._sectionHeaderCache.set(i,n),n}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new q.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends d.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(zt.yr0),this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,H.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,H.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,H.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,H.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,H.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=c.b2(this._domNode.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=c.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let s=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;s=Math.min(s,this._model.getLineCount()),this._model.revealLineNumber(s)})),this._sliderPointerMoveMonitor=new Ht._,this._sliderPointerDownListener=c.b2(this._slider.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=de.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=c.ko(this._domNode.domNode,de.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=c.ko(this._domNode.domNode,de.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=c.b2(this._domNode.domNode,de.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const s=e.pageX;this._slider.toggleClassName("active",!0);const n=(e,n)=>{const r=c.BK(this._domNode.domNode),o=Math.min(Math.abs(n-s),Math.abs(n-r.left),Math.abs(n-r.left-r.width));if(_.uF&&o>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&n(e.pageY,s),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>n(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new ni(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData?.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData?.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(zt.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(q.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:s,canvasInnerHeight:n}=this._model.options,r=this._model.options.minimapLineHeight,o=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,s,n);const l=new ci(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,l,e,r),this._renderDecorationsLineHighlights(c,i,l,e,r);const h=new ci(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,a,o,s),this._renderDecorationsHighlights(c,i,h,e,r,a,o,s),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,s,n){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,o=0;for(const a of t){const t=s.intersectWithViewport(a);if(!t)continue;const[c,l]=t;for(let e=c;e<=l;e++)i.set(e,!0);const h=s.getYForLineNumber(c,n),d=s.getYForLineNumber(l,n);o>=h||(o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r),r=h),o=d}o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r)}_renderDecorationsLineHighlights(e,t,i,s,n){const r=new Map;for(let o=t.length-1;o>=0;o--){const a=t[o],c=a.options.minimap;if(!c||1!==c.position)continue;const l=s.intersectWithViewport(a.range);if(!l)continue;const[h,d]=l,u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const r=s.getYForLineNumber(h,n);e.fillRect(R.xq,r,e.canvas.width,n)}}}_renderSelectionsHighlights(e,t,i,s,n,r,o,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const c of t){const t=s.intersectWithViewport(c);if(!t)continue;const[l,h]=t;for(let d=l;d<=h;d++)this.renderDecorationOnLine(e,i,c,this._selectionColor,s,d,n,n,r,o,a)}}_renderDecorationsHighlights(e,t,i,s,n,r,o,a){for(const c of t){const t=c.options.minimap;if(!t)continue;const l=s.intersectWithViewport(c.range);if(!l)continue;const[h,d]=l,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=d;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,c.range,u,s,g,n,n,r,o,a);continue;case 2:{const t=s.getYForLineNumber(g,n),i=2;this.renderDecoration(e,u,i,t,2,n);continue}}}}renderDecorationOnLine(e,t,i,s,n,r,o,a,c,l,h){const d=n.getYForLineNumber(r,a);if(d+o<0||d>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===r?i.startColumn:1,m=g===r?i.endColumn:this._model.getLineMaxColumn(r),f=this.getXOffsetForPosition(t,r,p,c,l,h),_=this.getXOffsetForPosition(t,r,m,c,l,h);this.renderDecoration(e,s,f,d,_-f,o)}getXOffsetForPosition(e,t,i,s,n,r){if(1===i)return R.xq;if((i-1)*n>=r)return r;let o=e.get(t);if(!o){const i=this._model.getLineContent(t);o=[R.xq];let a=R.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),c=a+(9===t?s*n:Le.ne(t)?2*n:n);if(c>=r){o[e]=r;break}o[e]=c,a=c}e.set(t,o)}return i-1<o.length?o[i-1]:r}renderDecoration(e,t,i,s,n,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,s,n,r)}_renderSectionHeaders(e){const t=this._model.options.minimapLineHeight,i=this._model.options.sectionHeaderFontSize,s=this._model.options.sectionHeaderLetterSpacing,n=1.5*i,{canvasInnerWidth:r}=this._model.options,o=this._model.options.backgroundColor,a=`rgb(${o.r} ${o.g} ${o.b} / .7)`,c=this._model.options.sectionHeaderFontColor,l=`rgb(${c.r} ${c.g} ${c.b})`,h=l,d=this._decorationsCanvas.domNode.getContext("2d");d.letterSpacing=s+"px",d.font="500 "+i+"px "+this._model.options.sectionHeaderFontFamily,d.strokeStyle=h,d.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,d,r-R.xq);for(const p of u){const s=e.getYForLineNumber(p.range.startLineNumber,t)+i,o=s-i,c=o+2,h=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(d,h,2===p.options.minimap?.sectionHeaderStyle,a,l,r,o,n,s,c)}}static _fitSectionHeader(e,t,i){if(!i)return i;const s=e.measureText(i).width,n=e.measureText("\u2026").width;if(s<=t||s<=n)return i;const r=i.length,o=s/i.length,a=Math.floor((t-n)/o)-1;let c=Math.ceil(a/2);for(;c>0&&/\s/.test(i[c-1]);)--c;return i.substring(0,c)+"\u2026"+i.substring(r-(a-c))}static _renderSectionLabel(e,t,i,s,n,r,o,a,c,l){t&&(e.fillStyle=s,e.fillRect(0,o,r,a),e.fillStyle=n,e.fillText(t,R.xq,c)),i&&(e.beginPath(),e.moveTo(0,l),e.lineTo(r,l),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,s=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new si(e,t.imageData,t.lines)}const n=this._getBuffer();if(!n)return null;const[r,o,a]=ai._renderUntouchedLines(n,e.topPaddingLineCount,t,i,s,this._lastRenderData),c=this._model.getMinimapLinesRenderingData(t,i,a),l=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,d=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,C=(1===m?2:3)*_,E=s>C?Math.floor((s-C)/2):0,b=d.a/255,S=new Bt(Math.round((d.r-h.r)*b+h.r),Math.round((d.g-h.g)*b+h.g),Math.round((d.b-h.b)*b+h.b),255);let y=e.topPaddingLineCount*s;const w=[];for(let T=0,x=i-t+1;T<x;T++)a[T]&&ai._renderLine(n,S,d.a,p,m,v,g,u,f,y,E,l,c[T],_,s),w[T]=new ii(y),y+=s;const R=-1===r?0:r,L=(-1===o?n.height:o)-R;return this._canvas.domNode.getContext("2d").putImageData(n,0,0,0,R,n.width,L),new si(e,n,w)}static _renderUntouchedLines(e,t,i,s,n,r){const o=[];if(!r){for(let e=0,t=s-i+1;e<t;e++)o[e]=!0;return[-1,-1,o]}const a=r._get(),c=a.imageData.data,l=a.rendLineNumberStart,h=a.lines,d=h.length,u=e.width,g=e.data,p=(s-i+1)*n*u*4;let m=-1,f=-1,_=-1,v=-1,C=-1,E=-1,b=t*n;for(let S=i;S<=s;S++){const e=S-i,t=S-l,s=t>=0&&t<d?h[t].dy:-1;if(-1===s){o[e]=!0,b+=n;continue}const r=s*u*4,a=(s+n)*u*4,y=b*u*4,w=(b+n)*u*4;v===r&&E===y?(v=a,E=w):(-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_)),_=r,v=a,C=y,E=w),o[e]=!1,b+=n}-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),o]}static _renderLine(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p){const m=u.content,f=u.tokens,_=e.width-r,v=1===p;let C=R.xq,E=0,b=0;for(let S=0,y=f.getCount();S<y;S++){const u=f.getEndOffset(S),p=f.getForeground(S),y=o.getColor(p);for(;E<u;E++){if(C>_)return;const o=m.charCodeAt(E);if(9===o){const e=d-(E+b)%d;b+=e-1,C+=e*r}else if(32===o)C+=r;else{const d=Le.ne(o)?2:1;for(let u=0;u<d;u++)if(2===n?c.blockRenderChar(e,C,l+h,y,a,t,i,v):c.renderChar(e,C,l+h,o,y,a,t,i,g,s,v),C+=r,C>_)return}}}}}class ci{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let s=0,n=this._endLineNumber-this._startLineNumber+1;s<n;s++)this._values[s]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class li extends z{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],s=t?t.preference:null,n=t?.stackOridinal;return i.preference===s&&i.stack===n?(this._updateMaxMinWidth(),!1):(i.preference=s,i.stack=n,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){let e=0;const t=Object.keys(this._widgets);for(let i=0,s=t.length;i<s;i++){const s=t[i],n=this._widgets[s],r=n.widget.getMinContentWidthInPx?.();"undefined"!==typeof r&&(e=Math.max(e,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(e)}_renderWidget(e,t){const i=e.domNode;if(null===e.preference)return void i.setTop("");const s=2*this._verticalScrollbarWidth+this._minimapWidth;if(0===e.preference||1===e.preference){if(1===e.preference){const e=i.domNode.clientHeight;i.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight)}else i.setTop(0);void 0!==e.stack?(i.setTop(t[e.preference]),t[e.preference]+=i.domNode.clientWidth):i.setRight(s)}else if(2===e.preference)i.domNode.style.right="50%",void 0!==e.stack?(i.setTop(t[2]),t[2]+=i.domNode.clientHeight):i.setTop(0);else{const{top:t,left:s}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;i.setTop(t+e.top),i.setLeft(s+e.left),i.setPosition("fixed")}else i.setTop(t),i.setLeft(s),i.setPosition("absolute")}}prepareRender(e){this._viewDomNodeRect=c.BK(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets),i=Array.from({length:3},(()=>0));t.sort(((e,t)=>(this._widgets[e].stack||0)-(this._widgets[t].stack||0)));for(let s=0,n=t.length;s<n;s++){const e=t[s];this._renderWidget(this._widgets[e],i)}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(144),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const s=t.getColor(Ae.x9);this.borderColor=s?s.toString():null,this.hideCursor=i.get(59);const n=t.getColor(Ae.D0);this.cursorColorSingle=n?n.transparent(.7).toString():null;const r=t.getColor(Ae.sC);this.cursorColorPrimary=r?r.transparent(.7).toString():null;const o=t.getColor(Ae.we);this.cursorColorSecondary=o?o.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),c=a.enabled,l=a.side,h=t.getColor(Ae.Xr),d=Me.dG.getDefaultBackground();this.backgroundColor=h||(c&&"right"===l?d:null);const u=i.get(146).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const s=t-e;if(i>=3){const t=Math.floor(s/3),i=Math.floor(s/3),n=s-t-i,r=e+t;return[[0,e,r,e,e+t+n,e,r,e],[0,t,n,t+n,i,t+n+i,n+i,t+n+i]]}if(2===i){const t=Math.floor(s/2),i=s-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,s,s,s,s,s,s,s]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class di extends z{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new Y.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let s=this._settings.cursorColorSingle;i>1&&(s=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:s})}return this._cursorPositions.sort(((e,t)=>Y.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Vt.Uv.compareByRenderingProps),1!==this._actualShouldRender||Vt.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,s=this._settings.canvasHeight,n=this._settings.lineHeight,r=this._context.viewLayout,o=s/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,c=a/2|0,l=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):(l.clearRect(0,0,i,s),l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):l.clearRect(0,0,i,s);const h=this._settings.x,d=this._settings.w;for(const u of t){const e=u.color,t=u.data;l.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=r.getVerticalOffsetForLineNumber(m)*o|0,v=(r.getVerticalOffsetForLineNumber(f)+n)*o|0;if(v-_<a){let e=(_+v)/2|0;e<c?e=c:e+c>s&&(e=s-c),_=e-c,v=e+c}_>p+1||e!==i?(0!==u&&l.fillRect(h[i],g,d[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}l.fillRect(h[i],g,d[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],n=this._settings.w[7];let a=-100,c=-100,h=null;for(let d=0,u=this._cursorPositions.length;d<u;d++){const u=this._cursorPositions[d].color;if(!u)continue;const g=this._cursorPositions[d].position;let p=r.getVerticalOffsetForLineNumber(g.lineNumber)*o|0;p<t?p=t:p+t>s&&(p=s-t);const m=p-t,f=m+e;m>c+1||u!==h?(0!==d&&h&&l.fillRect(i,a,n,c-a),a=m,c=f):f>c&&(c=f),h=u,l.fillStyle=u}h&&l.fillRect(i,a,n,c-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,s),l.moveTo(1,0),l.lineTo(i,0),l.stroke())}}var ui,gi=i(19531);class pi extends V{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,s,e),!0}_renderOneLane(e,t,i,s){let n=0,r=0,o=0;for(const a of t){const t=a.colorId,c=a.from,l=a.to;t!==n?(e.fillRect(0,r,s,o-r),n=t,e.fillStyle=i[n],r=c,o=l):o>=c?o=Math.max(o,l):(e.fillRect(0,r,s,o-r),r=c,o=l)}e.fillRect(0,r,s,o-r)}}class mi extends z{constructor(e){super(e),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),s=i;let n=t-e;for(;n>0;){const e=(0,H.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(s),this.domNode.appendChild(e),this._renderedRulers.push(e),n--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],s=this._rulers[t];i.setBoxShadow(s.color?`1px 0 0 0 ${s.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(s.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends z{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(104);this._useShadows=t.useShadows,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(146);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(104);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Ci(e){return new _i(e)}function Ei(e){return new vi(e.lineNumber,e.ranges.map(Ci))}class bi extends xe{static{this.SELECTION_CLASS_NAME="selected-text"}static{this.SELECTION_TOP_LEFT="top-left-radius"}static{this.SELECTION_BOTTOM_LEFT="bottom-left-radius"}static{this.SELECTION_TOP_RIGHT="top-right-radius"}static{this.SELECTION_BOTTOM_RIGHT="bottom-right-radius"}static{this.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background"}static{this.ROUNDED_PIECE_WIDTH=10}constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const s=this._typicalHalfwidthCharacterWidth/4;let n=null,r=null;if(i&&i.length>0&&t.length>0){const s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===s&&(n=i[e].ranges[0]);const o=t[t.length-1].lineNumber;if(o===e.endLineNumber)for(let e=i.length-1;!r&&e>=0;e--)i[e].lineNumber===o&&(r=i[e].ranges[0]);n&&!n.startStyle&&(n=null),r&&!r.startStyle&&(r=null)}for(let o=0,a=t.length;o<a;o++){const e=t[o].ranges[0],i=e.left,c=e.left+e.width,l={top:0,bottom:0},h={top:0,bottom:0};if(o>0){const e=t[o-1].ranges[0].left,n=t[o-1].ranges[0].left+t[o-1].ranges[0].width;Si(i-e)<s?l.top=2:i>e&&(l.top=1),Si(c-n)<s?h.top=2:e<c&&c<n&&(h.top=1)}else n&&(l.top=n.startStyle.top,h.top=n.endStyle.top);if(o+1<a){const e=t[o+1].ranges[0].left,n=t[o+1].ranges[0].left+t[o+1].ranges[0].width;Si(i-e)<s?l.bottom=2:e<i&&i<n&&(l.bottom=1),Si(c-n)<s?h.bottom=2:c<n&&(h.bottom=1)}else r&&(l.bottom=r.startStyle.bottom,h.bottom=r.endStyle.bottom);e.startStyle=l,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const s=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ei);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,i),s}_createSelectionPiece(e,t,i,s,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+s.toString()+"px;width:"+n.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,s){if(0===s.length)return;const n=!!s[0].ranges[0].startStyle,r=s[0].lineNumber,o=s[s.length-1].lineNumber;for(let a=0,c=s.length;a<c;a++){const c=s[a],l=c.lineNumber,h=l-t,d=i&&l===r?1:0,u=i&&l!==r&&l===o?1:0;let g="",p="";for(let e=0,t=c.ranges.length;e<t;e++){const t=c.ranges[e];if(n){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH);let i=bi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(d,u,i,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left+t.width,bi.ROUNDED_PIECE_WIDTH);let e=bi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+bi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+bi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(d,u,e,t.left+t.width,bi.ROUNDED_PIECE_WIDTH)}}let i=bi.SELECTION_CLASS_NAME;if(n){const e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+bi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(d,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let r=i;r<=s;r++){t[r-i]=["",""]}const n=[];for(let r=0,o=this._selections.length;r<o;r++){const s=this._selections[r];if(s.isEmpty()){n[r]=null;continue}const o=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[r]);n[r]=o,this._actualRenderOneSelection(t,i,this._selections.length>1,o)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Si(e){return e<0?-e:e}(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class yi{constructor(e,t,i,s,n,r,o){this.top=e,this.left=t,this.paddingLeft=i,this.width=s,this.height=n,this.textContent=r,this.textContentClassName=o}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class wi{constructor(e,t){this._context=e;const i=this._context.configuration.options,s=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${De}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.M)(this._domNode,s),this._domNode.setDisplay("none"),this._position=new Y.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[s,n]=Le.m(i,t-1);return[new Y.y(e,s+1),i.substring(s,n)]}_prepareRender(e){let t="",i="";const[s,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===R.m9.Line||this._cursorStyle===R.m9.LineThin){const r=e.visibleRangeForPosition(s);if(!r||r.outsideRenderedLine)return null;const o=c.zk(this._domNode.domNode);let a;this._cursorStyle===R.m9.Line?(a=c.vT(o,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=n,i=this._getTokenClassName(s))):a=c.vT(o,1);let l=r.left,h=0;a>=2&&l>=1&&(h=1,l-=h);const d=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta;return new yi(d,l,h,a,this._lineHeight,t,i)}const r=e.linesVisibleRangesForRange(new q.Q(s.lineNumber,s.column,s.lineNumber,s.column+n.length),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const a=o.ranges[0],l="\t"===n||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===R.m9.Block&&(t=n,i=this._getTokenClassName(s));let h=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==R.m9.Underline&&this._cursorStyle!==R.m9.UnderlineThin||(h+=this._lineHeight-2,d=2),new yi(h,a.left,0,l,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${De} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Ri extends z{static{this.BLINK_INTERVAL=500}constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new wi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Nt.pc,this._cursorFlatBlinkInterval=new c.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,s=this._secondaryCursors.length;i<s;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const s=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,s),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new wi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n],s)}onCursorStateChanged(e){const t=[];for(let s=0,n=e.selections.length;s<n;s++)t[s]=e.selections[s].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,s=e.ranges.length;i<s;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Ri.BLINK_INTERVAL,(0,c.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Ri.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case R.m9.Line:e+=" cursor-line-style";break;case R.m9.Block:e+=" cursor-block-style";break;case R.m9.Underline:e+=" cursor-underline-style";break;case R.m9.LineThin:e+=" cursor-line-thin-style";break;case R.m9.BlockOutline:e+=" cursor-block-outline-style";break;case R.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const s=this._primaryCursor.render(e);s&&(t[i++]=s);for(let n=0,r=this._secondaryCursors.length;n<r;n++){const s=this._secondaryCursors[n].render(e);s&&(t[i++]=s)}this._renderData=t}getLastRenderData(){return this._renderData}}(0,ke.zy)(((e,t)=>{const i=[{class:".cursor",foreground:Ae.D0,background:Ae.kM},{class:".cursor-primary",foreground:Ae.sC,background:Ae.je},{class:".cursor-secondary",foreground:Ae.we,background:Ae.L0}];for(const s of i){const i=e.getColor(s.foreground);if(i){let n=e.getColor(s.background);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${s.class} { background-color: ${i}; border-color: ${i}; color: ${n}; }`),(0,dt.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${s.class} { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}}));const Li=()=>{throw new Error("Invalid change accessor")};class Ti extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,H.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const s of e)t.set(s.id,s);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const s=Object.keys(this._zones);for(let n=0,r=s.length;n<r;n++){const r=s[n],o=this._zones[r],a=this._computeWhitespaceProps(o.delegate);o.isInHiddenArea=a.isInHiddenArea;const c=t.get(r);!c||c.afterLineNumber===a.afterViewLineNumber&&c.height===a.heightInPx||(e.changeOneWhitespace(r,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(o.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return e.ordinal??e.afterColumn??1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Y.y(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),n=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!n,afterViewLineNumber:s.lineNumber,heightInPx:n?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const s={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,l.dz)(i)}}(e,s),s.addZone=Li,s.removeZone=Li,s.layoutZone=Li})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,H.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,H.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.remove(),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],s=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=s.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(i.delegate,s.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,l.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,l.dz)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let s=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,s=!0);const n=Object.keys(this._zones);for(let r=0,o=n.length;r<o;r++){const t=n[r],s=this._zones[t];let o=0,a=0,c="none";i.hasOwnProperty(t)?(o=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,c="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(o),s.domNode.setHeight(a),s.domNode.setDisplay(c),s.marginDomNode&&(s.marginDomNode.setTop(o),s.marginDomNode.setHeight(a),s.marginDomNode.setDisplay(c))}s&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var xi=i(35600);class ki extends xe{constructor(e){super(),this._context=e,this._options=new Ai(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ai(this._context.configuration);return this._options.equals(t)?e.hasChanged(146):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,s=new Array(i);for(let r=0;r<i;r++)s[r]=!0;const n=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,s);this._renderResult=[];for(let r=e.viewportData.startLineNumber;r<=e.viewportData.endLineNumber;r++){const t=r-e.viewportData.startLineNumber,i=n.data[t];let s=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<r||t.startLineNumber>r)continue;const e=t.startLineNumber===r?t.startColumn:i.minColumn,n=t.endLineNumber===r?t.endColumn:i.maxColumn;e<n&&(s||(s=[]),s.push(new xi.MT(e-1,n-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,r,s,i)}}_applyRenderWhitespace(e,t,i,s){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&s.continuesWithWrappedLine)return"";const n=this._context.theme.getColor(Ae.w4),r=this._options.renderWithSVG,o=s.content,a=-1===this._options.stopRenderingLineAfter?o.length:Math.min(this._options.stopRenderingLineAfter,o.length),c=s.continuesWithWrappedLine,l=s.minColumn-1,h="boundary"===this._options.renderWhitespace,d="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,C="",E=!1,b=Le.HG(o);-1===b?(E=!0,b=a,v=a):v=Le.lT(o);let S=0,y=i&&i[S],w=0;for(let R=l;R<a;R++){const s=o.charCodeAt(R);if(y&&R>=y.endOffset&&(S++,y=i&&i[S]),9!==s&&32!==s)continue;if(d&&!E&&R<=v)continue;if(h&&R>=b&&R<=v&&32===s){const e=R-1>=0?o.charCodeAt(R-1):0,t=R+1<a?o.charCodeAt(R+1):0;if(32!==e&&32!==t)continue}if(h&&c&&R===a-1){const e=R-1>=0?o.charCodeAt(R-1):0;if(32===s&&32!==e&&9!==e)continue}if(i&&(!y||y.startOffset>R||y.endOffset<=R))continue;const n=e.visibleRangeForPosition(new Y.y(t,R+1));n&&(r?(w=Math.max(w,n.left),C+=9===s?this._renderArrow(u,m,n.left):`<circle cx="${(n.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):C+=9===s?`<div class="mwh" style="left:${n.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${n.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return r?(w=Math.round(w+m),`<svg style="bottom:0;position:absolute;width:${w}px;height:${u}px" viewBox="0 0 ${w} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${n}">`+C+"</svg>"):C}_renderArrow(e,t,i){const s=e/2,n=i,r={x:0,y:t/7/2},o={x:.8*t,y:r.y},a={x:o.x-.2*o.x,y:o.y+.2*o.x},c={x:a.x+.1*o.x,y:a.y+.1*o.x},l={x:c.x+.35*o.x,y:c.y-.35*o.x};return`<path d="M ${[r,o,a,c,l,{x:l.x,y:-l.y},{x:c.x,y:-c.y},{x:a.x,y:-a.y},{x:o.x,y:-o.y},{x:r.x,y:-r.y}].map((e=>`${(n+e.x).toFixed(2)} ${(s+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ai{constructor(e){const t=e.options,i=t.get(50),s=t.get(38);"off"===s?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===s?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ni{constructor(e,t,i,s){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=s,this.visibleRange=new q.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Ii{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Oi{constructor(e,t,i){this.configuration=e,this.theme=new Ii(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Di=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mi=function(e,t){return function(i,s){t(i,s,e)}};let Pi=class extends V{constructor(e,t,i,s,n,r,o){super(),this._instantiationService=o,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new Ye(t,s,n,e);this._context=new Oi(t,i,s),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ge,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,H.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,H.Z)(document.createElement("div")),G.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Ti(this._context),this._viewParts.push(this._viewZones);const c=new di(this._context);this._viewParts.push(c);const l=new fi(this._context);this._viewParts.push(l);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new bi(this._context)),h.addDynamicOverlay(new kt(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new ki(this._context));const d=new it(this._context);this._viewParts.push(d),d.addDynamicOverlay(new pt(this._context)),d.addDynamicOverlay(new Ut(this._context)),d.addDynamicOverlay(new Ft(this._context)),d.addDynamicOverlay(new Ne(this._context)),this._glyphMarginWidgets=new St(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Ie(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new rt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Ri(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new li(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new nt(this._context);this._viewParts.push(p);const m=new oi(this._context);if(this._viewParts.push(m),c){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(c.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),r?(r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),r.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new we(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],s=0;i=i.concat(e.getAllMarginDecorations().map((e=>{const t=e.options.glyphMargin?.position??_t.ZS.Center;return s=Math.max(s,e.range.endLineNumber),{range:e.range,lane:t,persist:e.options.glyphMargin?.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return s=Math.max(s,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>q.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(s);for(const n of i)t.push(n.lane,n.range,n.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Y.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(146);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+(0,ke.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new l.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Ui.INSTANCE.scheduleCoordinatedRendering({window:c.zk(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new l.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new l.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,s]=t;Fi((()=>e.prepareRender(i,s))),Fi((()=>e.render(i,s)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}B.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ni(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new je.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const n=this._viewLines.visibleRangeForPosition(new Y.y(s.lineNumber,s.column));return n?n.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?st.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){this._contentWidgets.setWidgetPosition(e.widget,e.position?.position??null,e.position?.secondaryPosition??null,e.position?.preference??null,e.position?.positionAffinity??null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,l.dz)(t),null}}Pi=Di([Mi(6,He._Y)],Pi);class Ui{static{this.INSTANCE=new Ui}constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,c.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=Fi((()=>s.renderText()))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.prepareRender(r,o)))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.render(r,o)))}}}var Hi=i(66782);class Bi{constructor(e,t,i,s,n){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=n}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&i>this.injectionOffsets[s];s++)i<this.injectionOffsets[s]+this.injectionOptions[s].content.length?i=this.injectionOffsets[s]:i-=this.injectionOptions[s].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&!(e<this.injectionOffsets[s])&&(1===t||e!==this.injectionOffsets[s]);s++)i+=this.injectionOptions[s].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,s=this.breakOffsets.length-1,n=0,r=0;for(;i<=s;){n=i+(s-i)/2|0;const o=this.breakOffsets[n];if(r=n>0?this.breakOffsets[n-1]:0,0===t)if(e<=r)s=n-1;else{if(!(e>o))break;i=n+1}else if(e<r)s=n-1;else{if(!(e>=o))break;i=n+1}}let o=e-r;return n>0&&(o+=this.wrappedTextIndentLength),new zi(n,o)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const s=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,i);if(n!==s)return this.offsetInInputWithInjectionsToOutputPosition(n,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new zi(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new zi(e+1,this.getMinOutputOffset(e+1))}return new zi(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Wi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(Vi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Wi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!Vi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Hi.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.getInjectedTextAtOffset(i);return s?{options:this.injectionOptions[s.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let s=0;for(let n=0;n<t.length;n++){const r=i[n].content.length,o=t[n]+s,a=t[n]+s+r;if(o>e)break;if(e<=a)return{injectedTextIndex:n,offsetInInputWithInjections:o,length:r};s+=r}}}}function Wi(e){return null===e||void 0===e||(e===_t.VW.Right||e===_t.VW.Both)}function Vi(e){return null===e||void 0===e||(e===_t.VW.Left||e===_t.VW.Both)}class zi{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Y.y(e+this.outputLineIndex,this.outputOffset+1)}}var Gi=i(64727);const ji=(0,qe.H)("domLineBreaksComputer",{createHTML:e=>e});class Ki{static create(e){return new Ki(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t)},finalize:()=>function(e,t,i,s,n,r,o,a){function c(e){const i=a[e];if(i){const s=Gi.uK.applyInjectedText(t[e],i),n=i.map((e=>e.options)),r=i.map((e=>e.column-1));return new Bi(r,n,[s.length],[],0)}return null}if(-1===n){const e=[];for(let i=0,s=t.length;i<s;i++)e[i]=c(i);return e}const l=Math.round(n*i.typicalHalfwidthCharacterWidth),h=3===r?2:2===r?1:0,d=Math.round(s*h),u=Math.ceil(i.spaceWidth*d),p=document.createElement("div");(0,g.M)(p,i);const m=new $e.fe(1e4),f=[],_=[],v=[],C=[],E=[];for(let g=0;g<t.length;g++){const e=Gi.uK.applyInjectedText(t[g],a[g]);let n=0,o=0,c=l;if(0!==r)if(n=Le.HG(e),-1===n)n=0;else{for(let i=0;i<n;i++){o+=9===e.charCodeAt(i)?s-o%s:1}const t=Math.ceil(i.spaceWidth*o);t+i.typicalFullwidthCharacterWidth>l?(n=0,o=0):c=l-t}const h=e.substr(n),d=Yi(h,o,s,c,m,u);f[g]=n,_[g]=o,v[g]=h,C[g]=d[0],E[g]=d[1]}const b=m.build(),S=ji?.createHTML(b)??b;p.innerHTML=S,p.style.position="absolute",p.style.top="10000","keepAll"===o?(p.style.wordBreak="keep-all",p.style.overflowWrap="anywhere"):(p.style.wordBreak="inherit",p.style.overflowWrap="break-word");e.document.body.appendChild(p);const y=document.createRange(),w=Array.prototype.slice.call(p.children,0),R=[];for(let g=0;g<t.length;g++){const e=qi(y,w[g],v[g],C[g]);if(null===e){R[g]=c(g);continue}const t=f[g],i=_[g]+d,s=E[g],n=[];for(let a=0,c=e.length;a<c;a++)n[a]=s[e[a]];if(0!==t)for(let a=0,c=e.length;a<c;a++)e[a]+=t;let r,o;const l=a[g];l?(r=l.map((e=>e.options)),o=l.map((e=>e.column-1))):(r=null,o=null),R[g]=new Bi(o,r,e,n,i)}return p.remove(),R}((0,Lt.eU)(this.targetWindow.deref()),r,e,t,i,s,n,o)}}}function Yi(e,t,i,s,n,r){if(0!==r){const e=String(r);n.appendString('<div style="text-indent: -'),n.appendString(e),n.appendString("px; padding-left: "),n.appendString(e),n.appendString("px; box-sizing: border-box; width:")}else n.appendString('<div style="width:');n.appendString(String(s)),n.appendString('px;">');const o=e.length;let a=t,c=0;const l=[],h=[];let d=0<o?e.charCodeAt(0):0;n.appendString("<span>");for(let u=0;u<o;u++){0!==u&&u%16384===0&&n.appendString("</span><span>"),l[u]=c,h[u]=a;const t=d;d=u+1<o?e.charCodeAt(u+1):0;let s=1,r=1;switch(t){case 9:s=i-a%i,r=s;for(let e=1;e<=s;e++)e<s?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 32:32===d?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 60:n.appendString("<");break;case 62:n.appendString(">");break;case 38:n.appendString("&");break;case 0:n.appendString("�");break;case 65279:case 8232:case 8233:case 133:n.appendCharCode(65533);break;default:Le.ne(t)&&r++,t<32?n.appendCharCode(9216+t):n.appendCharCode(t)}c+=s,a+=r}return n.appendString("</span>"),l[e.length]=c,h[e.length]=a,n.appendString("</div>"),[l,h]}function qi(e,t,i,s){if(i.length<=1)return null;const n=Array.prototype.slice.call(t.children,0),r=[];try{$i(e,n,s,0,null,i.length-1,null,r)}catch(o){return console.log(o),null}return 0===r.length?null:(r.push(i.length),r)}function $i(e,t,i,s,n,r,o,a){if(s===r)return;if(n=n||Qi(e,t,i[s],i[s+1]),o=o||Qi(e,t,i[r],i[r+1]),Math.abs(n[0].top-o[0].top)<=.1)return;if(s+1===r)return void a.push(r);const c=s+(r-s)/2|0,l=Qi(e,t,i[c],i[c+1]);$i(e,t,i,s,n,c,l,a),$i(e,t,i,c,l,r,o,a)}function Qi(e,t,i,s){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[s/16384|0].firstChild,s%16384),e.getClientRects()}class Xi extends d.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new d.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const s of t)this._pending.has(s.id)?(0,l.dz)(new Error(`Cannot have two contributions with the same id ${s.id}`)):this._pending.set(s.id,s);this._instantiateSome(0),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){return(0,c.U3)((0,c.zk)(this._editor?.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,l.dz)(i)}}}}var Zi=i(97681),Ji=i(29611),es=i(23452),ts=i(60002),is=i(17469),ss=i(87289),ns=i(56942),rs=i(60534);class os{static create(e){return new os(e.get(135),e.get(134))}constructor(e,t){this.classifier=new as(e,t)}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[],a=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t),a.push(i)},finalize:()=>{const c=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[];for(let e=0,h=r.length;e<h;e++){const h=o[e],d=a[e];!d||d.injectionOptions||h?l[e]=ds(this.classifier,r[e],h,t,i,c,s,n):l[e]=hs(this.classifier,d,r[e],t,i,c,s,n)}return cs.length=0,ls.length=0,l}}}}class as extends rs.V{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let cs=[],ls=[];function hs(e,t,i,s,n,r,o,a){if(-1===n)return null;const c=i.length;if(c<=1)return null;const l="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=ms(i,s,n,r,o),g=n-u,p=cs,m=ls;let f=0,_=0,v=0,C=n;const E=h.length;let b=0;if(b>=0){let e=Math.abs(d[b]-C);for(;b+1<E;){const t=Math.abs(d[b+1]-C);if(t>=e)break;e=t,b++}}for(;b<E;){let t=b<0?0:h[b],n=b<0?0:d[b];_>t&&(t=_,n=v);let o=0,a=0,u=0,S=0;if(n<=C){let v=n,E=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(E),y=!0;for(let n=t;n<c;n++){const t=n,c=i.charCodeAt(n);let h,d;if(Le.pc(c)?(n++,h=0,d=2):(h=e.get(c),d=us(c,v,s,r)),t>_&&ps(E,b,c,h,l)&&(o=t,a=v),v+=d,v>C){t>_?(u=t,S=v-d):(u=n+1,S=v),v-a>g&&(o=0),y=!1;break}E=c,b=h}if(y){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===o){let c=n,h=i.charCodeAt(t),d=e.get(h),p=!1;for(let s=t-1;s>=_;s--){const t=s+1,n=i.charCodeAt(s);if(9===n){p=!0;break}let m,f;if(Le.LJ(n)?(s--,m=0,f=2):(m=e.get(n),f=Le.ne(n)?r:1),c<=C){if(0===u&&(u=t,S=c),c<=C-g)break;if(ps(n,m,h,d,l)){o=t,a=c;break}}c-=f,h=n,d=m}if(0!==o){const e=g-(S-a);if(e<=s){const t=i.charCodeAt(u);let n;n=Le.pc(t)?2:us(t,S,s,r),e-n<0&&(o=0)}}if(p){b--;continue}}if(0===o&&(o=u,a=S),o<=_){const e=i.charCodeAt(_);Le.pc(e)?(o=_+2,a=v+2):(o=_+1,a=v+us(e,v,s,r))}for(_=o,p[f]=o,v=a,m[f]=a,f++,C=a+g;b<0||b<E&&d[b]<a;)b++;let y=Math.abs(d[b]-C);for(;b+1<E;){const e=Math.abs(d[b+1]-C);if(e>=y)break;y=e,b++}}return 0===f?null:(p.length=f,m.length=f,cs=t.breakOffsets,ls=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function ds(e,t,i,s,n,r,o,a){const c=Gi.uK.applyInjectedText(t,i);let l,h;if(i&&i.length>0?(l=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(l=null,h=null),-1===n)return l?new Bi(h,l,[c.length],[],0):null;const d=c.length;if(d<=1)return l?new Bi(h,l,[c.length],[],0):null;const u="keepAll"===a,g=ms(c,s,n,r,o),p=n-g,m=[],f=[];let _=0,v=0,C=0,E=n,b=c.charCodeAt(0),S=e.get(b),y=us(b,0,s,r),w=1;Le.pc(b)&&(y+=1,b=c.charCodeAt(1),S=e.get(b),w++);for(let R=w;R<d;R++){const t=R,i=c.charCodeAt(R);let n,o;Le.pc(i)?(R++,n=0,o=2):(n=e.get(i),o=us(i,y,s,r)),ps(b,S,i,n,u)&&(v=t,C=y),y+=o,y>E&&((0===v||y-C>p)&&(v=t,C=y-o),m[_]=v,f[_]=C,_++,E=C+p,v=0),b=i,S=n}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=y,new Bi(h,l,m,f,g)):null}function us(e,t,i,s){return 9===e?i-t%i:Le.ne(e)||e<32?s:1}function gs(e,t){return t-e%t}function ps(e,t,i,s,n){return 32!==i&&(2===t&&2!==s||1!==t&&1===s||!n&&3===t&&2!==s||!n&&3===s&&1!==t)}function ms(e,t,i,s,n){let r=0;if(0!==n){const o=Le.HG(e);if(-1!==o){for(let i=0;i<o;i++){r+=9===e.charCodeAt(i)?gs(r,t):1}const a=3===n?2:2===n?1:0;for(let e=0;e<a;e++){r+=gs(r,t)}r+s>i&&(r=0)}}return r}var fs=i(46041),_s=i(32799);class vs{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0),new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _s.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,s){return t.equals(i)?s:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,s=t.selectionStart.getStartPosition(),n=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),o=this._validatePositionWithCache(e,s,i,r),a=this._validatePositionWithCache(e,n,s,o);return i.equals(r)&&s.equals(o)&&n.equals(a)?t:new _s.mG(q.Q.fromPositions(o,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+s.column-o.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=vs._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,n=e.model.validatePosition(t.position),r=t.position.equals(n)?t.leftoverVisibleColumns:0;t=new _s.mG(i,t.selectionStartKind,s,n,r)}else{if(!i)return;const s=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),n=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new _s.mG(s,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,n,i.leftoverVisibleColumns)}if(i){const s=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),n=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new _s.mG(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,n,t.leftoverVisibleColumns)}else{const s=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),n=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new q.Q(s.lineNumber,s.column,n.lineNumber,n.column),o=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new _s.mG(r,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cs{constructor(e){this.context=e,this.cursors=[new vs(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,fs.kh)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,fs.ot)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(_s.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let s=0;s<i;s++)this.cursors[s+1].setState(this.context,e[s].modelState,e[s].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new vs(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,s=e.length;i<s;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.VE)((e=>e.selection),q.Q.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const s=t[i],n=t[i+1],r=s.selection,o=n.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=o.isEmpty()||r.isEmpty()?o.getStartPosition().isBeforeOrEqual(r.getEndPosition()):o.getStartPosition().isBefore(r.getEndPosition()),a){const r=s.index<n.index?i:i+1,o=s.index<n.index?i+1:i,a=t[o].index,c=t[r].index,l=t[o].selection,h=t[r].selection;if(!l.equalsSelection(h)){const i=l.plusRange(h),s=l.selectionStartLineNumber===l.startLineNumber&&l.selectionStartColumn===l.startColumn,n=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let o,d;a===this.lastAddedCursorIndex?(o=s,this.lastAddedCursorIndex=c):o=n,d=o?new pe.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.L(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[r].selection=d;const u=_s.MF.fromModelSelection(d);e[c].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(o,1),this._removeSecondaryCursor(a-1),i--}}}}class Es{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}var bs=i(1226),Ss=i(49265),ys=i(26685);class ws{constructor(){this.type=0}}class Rs{constructor(){this.type=1}}class Ls{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Ts{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class xs{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class ks{constructor(){this.type=5}}class As{constructor(e){this.type=6,this.isFocused=e}}class Ns{constructor(){this.type=7}}class Is{constructor(){this.type=8}}class Os{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Ds{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Ms{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Ps{constructor(e,t,i,s,n,r,o){this.source=e,this.minimalReveal=t,this.range=i,this.selections=s,this.verticalType=n,this.revealHorizontal=r,this.scrollType=o,this.type=12}}class Fs{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Us{constructor(e){this.theme=e,this.type=14}}class Hs{constructor(e){this.type=15,this.ranges=e}}class Bs{constructor(){this.type=16}}class Ws{constructor(){this.type=17}}class Vs extends d.jG{constructor(){super(),this._onEvent=this._register(new h.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new zs),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class zs{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Gs{constructor(e,t,i,s){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=s,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Gs(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class js{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new js(this.oldHasFocus,e.hasFocus)}}class Ks{constructor(e,t,i,s,n,r,o,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=s,this.scrollWidth=n,this.scrollLeft=r,this.scrollHeight=o,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Ks(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Ys{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class qs{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class $s{constructor(e,t,i,s,n,r,o){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=s,this.source=n,this.reason=r,this.reachedMaxCursorCount=o}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!e[s].equalsSelection(t[s]))return!1;return!0}isNoOp(){return $s._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new $s(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Qs{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Xs{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Zs{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Js{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class en{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class tn{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class sn{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class nn extends d.jG{constructor(e,t,i,s){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,s),this._cursors=new Cs(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,d.AS)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,s){let n=!1;const r=this.context.cursorConfig.multiCursorLimit;null!==s&&s.length>r&&(s=s.slice(0,r),n=!0);const o=rn.from(this._model,this);return this._cursors.setStates(s),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,o,n)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,s,n,r){const o=this._cursors.getViewPositions();let a=null,c=null;o.length>1?c=this._cursors.getViewSelections():a=q.Q.fromPositions(o[0],o[0]),e.emitViewEvent(new Ps(t,i,a,c,s,n,r))}revealPrimary(e,t,i,s,n,r){const o=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Ps(t,i,null,o,s,n,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push({inSelectionMode:!s.isEmpty(),selectionStart:{lineNumber:s.selectionStartLineNumber,column:s.selectionStartColumn},position:{lineNumber:s.positionLineNumber,column:s.positionColumn}})}return e}restoreState(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const e=t[s];let n=1,r=1;e.position&&e.position.lineNumber&&(n=e.position.lineNumber),e.position&&e.position.column&&(r=e.position.column);let o=n,a=r;e.selectionStart&&e.selectionStart.lineNumber&&(o=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:o,selectionStartColumn:a,positionLineNumber:n,positionColumn:r})}this.setStates(e,"restoreState",0,_s.MF.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Gi.vn){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const s=i.containsEvent(1);if(this._prevEditOperationType=0,s)this._cursors.dispose(),this._cursors=new Cs(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=_s.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,_s.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,s){this.setStates(e,t,s,_s.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],s=[];for(let o=0,a=e.length;o<a;o++)i.push({range:e[o],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),s.push({range:t[o],options:{description:"auto-closed-enclosing",stickiness:1}});const n=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],s);this._autoClosedActions.push(new on(this._model,n,r))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=an.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],s=[];for(let t=0;t<e.commands.length;t++){const n=e.commands[t];n instanceof ys.Hs&&n.enclosingRange&&n.closeCharacterRange&&(i.push(n.closeCharacterRange),s.push(n.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,s),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,s,n){const r=rn.from(this._model,this);if(r.equals(s))return!1;const o=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Ts(a,o,i)),!s||s.cursorState.length!==r.cursorState.length||r.cursorState.some(((e,t)=>!e.modelState.equals(s.cursorState[t].modelState)))){const a=s?s.cursorState.map((e=>e.modelState.selection)):null,c=s?s.modelVersionId:0;e.emitOutgoingEvent(new $s(a,o,c,r.modelVersionId,t||"keyboard",i,n))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.text||s.text.indexOf("\n")>=0)return null;const n=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!n)return null;const r=n[1],o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(r);if(!o||1!==o.length)return null;const a=o[0].open,c=s.text.length-n[2].length-1,l=s.text.lastIndexOf(a,c-1);if(-1===l)return null;t.push([l,c])}return t}executeEdits(e,t,i,s){let n=null;"snippet"===t&&(n=this._findAutoClosingPairs(i)),n&&(i[0]._isTracked=!0);const r=[],o=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(n)for(let i=0,s=n.length;i<s;i++){const[t,s]=n[i],a=e[i],c=a.range.startLineNumber,l=a.range.startColumn-1+t,h=a.range.startColumn-1+s;r.push(new q.Q(c,h+1,c,h+2)),o.push(new q.Q(c,l+1,c,h+2))}const t=s(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),r.length>0&&this._pushAutoClosedAction(r,o)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;const n=rn.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){(0,l.dz)(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,n,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return on.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ln(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Ss.T.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=Le.iy(t,i),s=t.substr(i,e);this._executeEditOperation(Ss.T.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),s)),i+=e}}else this._executeEditOperation(Ss.T.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,s,n,r){if(0!==t.length||0!==i||0!==s)this._executeEdit((()=>{this._executeEditOperation(Ss.T.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,s,n))}),e,r);else if(0!==n){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.L(t.lineNumber,t.column+n,t.lineNumber,t.column+n)}));this.setSelections(e,r,t,0)}}paste(e,t,i,s,n){this._executeEdit((()=>{this._executeEditOperation(Ss.T.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,s||[]))}),e,n,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(bs.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _s.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new _s.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class rn{static from(e,t){return new rn(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class on{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(q.Q.compareRangesUsingStarts),e.sort(q.Q.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class an{static executeCommands(e,t,i){const s={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},n=this._innerExecuteCommands(s,i);for(let r=0,o=s.trackedRanges.length;r<o;r++)s.model._setTrackedRange(s.trackedRanges[r],null,0);return n}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const s=i.operations,n=this._getLoserCursorMap(s);if(n.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const r=[];for(let c=0,l=s.length;c<l;c++)n.hasOwnProperty(s[c].identifier.major.toString())||r.push(s[c]);i.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);let o=e.model.pushEditOperations(e.selectionsBefore,r,(i=>{const s=[];for(let t=0;t<e.selectionsBefore.length;t++)s[t]=[];for(const e of i)e.identifier&&s[e.identifier.major].push(e);const n=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let o=0;o<e.selectionsBefore.length;o++)s[o].length>0?(s[o].sort(n),r[o]=t[o].computeCursorState(e.model,{getInverseEditOperations:()=>s[o],getTrackedSelection:t=>{const i=parseInt(t,10),s=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.L(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):new pe.L(s.endLineNumber,s.endColumn,s.startLineNumber,s.startColumn)}})):r[o]=e.selectionsBefore[o];return r}));o||(o=e.selectionsBefore);const a=[];for(const c in n)n.hasOwnProperty(c)&&a.push(parseInt(c,10));a.sort(((e,t)=>t-e));for(const c of a)o.splice(c,1);return o}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],s=!1;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const t=this._getEditOperationsFromCommand(e,n,r);i=i.concat(t.operations),s=s||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:s}}static _getEditOperationsFromCommand(e,t,i){const s=[];let n=0;const r=(e,r,o=!1)=>{q.Q.isEmpty(e)&&""===r||s.push({identifier:{major:t,minor:n++},range:e,text:r,forceMoveMarkers:o,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let o=!1;const a={addEditOperation:r,addTrackedEditOperation:(e,t,i)=>{o=!0,r(e,t,i)},trackSelection:(t,i)=>{const s=pe.L.liftSelection(t);let n;if(s.isEmpty())if("boolean"===typeof i)n=i?2:3;else{const t=e.model.getLineMaxColumn(s.startLineNumber);n=s.startColumn===t?2:3}else n=1;const r=e.trackedRanges.length,o=e.model._setTrackedRange(null,s,n);return e.trackedRanges[r]=o,e.trackedRangesDirection[r]=s.getDirection(),r.toString()}};try{i.getEditOperations(e.model,a)}catch(c){return(0,l.dz)(c),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:o}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-q.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const s=e[i-1],n=e[i];if(q.Q.getStartPosition(s.range).isBefore(q.Q.getEndPosition(n.range))){let r;r=s.identifier.major>n.identifier.major?s.identifier.major:n.identifier.major,t[r.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class cn{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ln{static _capture(e,t){const i=[];for(const s of t){if(s.startLineNumber!==s.endLineNumber)return null;i.push(new cn(e.getLineContent(s.startLineNumber),s.startColumn-1,s.endColumn-1))}return i}constructor(e,t){this._original=ln._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ln._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const s=[];for(let n=0,r=this._original.length;n<r;n++)s.push(ln._deduceOutcome(this._original[n],i[n]));return s}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Le.Qp(e.text,t.text)),s=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Le.Vi(e.text,t.text)),n=e.text.substring(i,e.text.length-s),r=t.text.substring(i,t.text.length-s);return new Ss.v(n,e.startSelection-i,e.endSelection-i,r,t.startSelection-i,t.endSelection-i)}}var hn=i(83941),dn=i(58314),un=i(49353);class gn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,s=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,s)}}class pn{constructor(e,t,i,s,n){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=s,this.minWidth=n,this.prefixSum=0}}class mn{static{this.INSTANCE_COUNT=0}constructor(e,t,i,s){this._instanceId=Le.tk(++mn.INSTANCE_COUNT),this._pendingChanges=new gn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=s}static findInsertionIndex(e,t,i){let s=0,n=e.length;for(;s<n;){const r=s+n>>>1;t===e[r].afterLineNumber?i<e[r].ordinal?n=r:s=r+1:t<e[r].afterLineNumber?n=r:s=r+1}return s}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,s,n)=>{t=!0,e|=0,i|=0,s|=0,n|=0;const r=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new pn(r,e,i,s,n)),r},changeOneWhitespace:(e,i,s)=>{t=!0,i|=0,s|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:s})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const s=new Set;for(const a of i)s.add(a.id);const n=new Map;for(const a of t)n.set(a.id,a);const r=e=>{const t=[];for(const i of e)if(!s.has(i.id)){if(n.has(i.id)){const e=n.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},o=r(this._arr).concat(r(e));o.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=o,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=mn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,s=t.length;i<s;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const s=this._findWhitespaceIndex(e);if(-1!==s&&(this._arr[s].height!==i&&(this._arr[s].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,s-1)),this._arr[s].afterLineNumber!==t)){const e=this._arr[s];this._removeWhitespace(s),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){const s=this._arr[i].afterLineNumber;e<=s&&s<=t?this._arr[i].afterLineNumber=e-1:s>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,s=t.length-1;for(;i<=s;){const n=i+((s-i|0)/2|0)|0;if(t[n].afterLineNumber<e){if(n+1>=t.length||t[n+1].afterLineNumber>=e)return n;i=n+1|0}else s=n-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;this._checkPendingChanges(),i=(e|=0)>1?this._lineHeight*(e-1):0;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let s=1,n=t;for(;s<n;){const t=(s+n)/2|0,r=0|this.getVerticalOffsetForLineNumber(t);if(e>=r+i)s=t+1;else{if(e>=r)return t;n=t}}return s>t?t:s}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,s=0|this.getLineNumberAtOrAfterVerticalOffset(e),n=0|this.getVerticalOffsetForLineNumber(s);let r=0|this._lineCount,o=0|this.getFirstWhitespaceIndexAfterLineNumber(s);const a=0|this.getWhitespacesCount();let c,l;-1===o?(o=a,l=r+1,c=0):(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));let h=n,d=h;const u=5e5;let g=0;n>=u&&(g=Math.floor(n/u)*u,g=Math.floor(g/i)*i,d-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let E=s;E<=r;E++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=E)}for(h+=i,p[E-s]=d,d+=i;l===E;)d+=c,h+=c,o++,o>=a?l=r+1:(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));if(h>=t){r=E;break}}-1===f&&(f=r);const _=0|this.getVerticalOffsetForLineNumber(r);let v=s,C=r;return v<C&&n<e&&v++,v<C&&_+i>t&&C--,{bigNumbersDelta:g,startLineNumber:s,endLineNumber:r,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:C,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,s;return i=t>=1?this._lineHeight*t:0,s=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+s+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const s=Math.floor((t+i)/2),n=this.getVerticalOffsetForWhitespaceIndex(s);if(e>=n+this.getHeightForWhitespaceIndex(s))t=s+1;else{if(e>=n)return s;i=s}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const s=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:s}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),s=this.getWhitespacesCount()-1;if(i<0)return[];const n=[];for(let r=i;r<=s;r++){const e=this.getVerticalOffsetForWhitespaceIndex(r),i=this.getHeightForWhitespaceIndex(r);if(e>=t)break;n.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:e,height:i})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}class fn{constructor(e,t,i,s){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(s|=0)<0&&(s=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=s,this.scrollHeight=Math.max(i,s)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class _n extends d.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new fn(0,0,0,0),this._scrollable=this._register(new un.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,s=t.contentHeight!==e.contentHeight;(i||s)&&this._onDidContentSizeChange.fire(new Gs(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class vn extends d.jG{constructor(e,t,i){super(),this._configuration=e;const s=this._configuration.options,n=s.get(146),r=s.get(84);this._linesLayout=new mn(t,s.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new _n(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new fn(n.contentWidth,0,n.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(146)){const e=t.get(146),i=e.contentWidth,s=e.height,n=this._scrollable.getScrollDimensions(),r=n.contentWidth;this._scrollable.setScrollDimensions(new fn(i,n.contentWidth,s,this._getContentHeight(i,s,r)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const s=this._configuration.options;let n=this._linesLayout.getLinesTotalHeight();return s.get(106)?n+=Math.max(0,t-s.get(67)-s.get(84).bottom):s.get(104).ignoreHorizontalScrollbarInContentHeight||(n+=this._getHorizontalScrollbarHeight(e,i)),n}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,s=e.contentWidth;this._scrollable.setScrollDimensions(new fn(t,e.contentWidth,i,this._getContentHeight(t,i,s)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(147),s=e.get(50),n=e.get(146);if(i.isViewportWrapping){const i=e.get(73);return t>n.contentWidth+s.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+n.verticalScrollbarWidth:t}{const i=e.get(105)*s.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+n.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new fn(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var Cn=i(32398),En=i(87469);function bn(e,t){return null===e?t?yn.INSTANCE:wn.INSTANCE:new Sn(e,t)}class Sn{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const s=i>0?this._projectionData.breakOffsets[i-1]:0,n=this._projectionData.breakOffsets[i];let r;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Gi.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));r=Gi.uK.applyInjectedText(e.getLineContent(t),i).substring(s,n)}else r=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:n+1});return i>0&&(r=Ln(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const s=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],s),s[0]}getViewLinesData(e,t,i,s,n,r,o){this._assertVisible();const a=this._projectionData,c=a.injectionOffsets,l=a.injectionOptions;let h,d=null;if(c){d=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const s=new Array;d[i]=s;const n=i>0?a.breakOffsets[i-1]:0,r=a.breakOffsets[i];for(;t<c.length;){const o=l[t].content.length,h=c[t]+e,d=h+o;if(h>r)break;if(n<d){const e=l[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,o=t+Math.max(h-n,0),c=t+Math.min(d-n,r-n);o!==c&&s.push(new Vt.or(o,c,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=r))break;e+=o,t++}}}h=c?e.tokenization.getLineTokens(t).withInserted(c.map(((e,t)=>({offset:e,text:l[t].content,tokenMetadata:En.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+s;u++){const e=n+u-i;r[e]?o[e]=this._getViewLineData(h,d?d[u]:null,u):o[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const s=this._projectionData,n=i>0?s.wrappedTextIndentLength:0,r=i>0?s.breakOffsets[i-1]:0,o=s.breakOffsets[i],a=e.sliceAndInflate(r,o,n);let c=a.getLineContent();i>0&&(c=Ln(s.wrappedTextIndentLength)+c);const l=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,d=i+1<this.getViewLineCount(),u=0===i?0:s.breakOffsetsVisibleColumn[i-1];return new Vt.GP(c,d,l,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const s=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(s)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class yn{static{this.INSTANCE=new yn}constructor(){}isVisible(){return!0}setVisible(e){return e?this:wn.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const s=e.tokenization.getLineTokens(t),n=s.getLineContent();return new Vt.GP(n,!1,1,n.length+1,0,s.inflate(),null)}getViewLinesData(e,t,i,s,n,r,o){r[n]?o[n]=this.getViewLineData(e,t,0):o[n]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new Y.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}class wn{static{this.INSTANCE=new wn}constructor(){}isVisible(){return!1}setVisible(e){return e?yn.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,s,n,r,o){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}const Rn=[""];function Ln(e){if(e>=Rn.length)for(let t=1;t<=e;t++)Rn[t]=Tn(t);return Rn[e]}function Tn(e){return new Array(e+1).join(" ")}var xn=i(27414);class kn{constructor(e,t,i,s,n,r,o,a,c,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=s,this.fontInfo=n,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=a,this.wrappingIndent=c,this.wordBreak=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new In(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),n=i.length,r=this.createLineBreaksComputer(),o=new m.j3(Gi.uK.fromDecorations(s));for(let p=0;p<n;p++){const e=o.takeWhile((e=>e.lineNumber===p+1));r.addRequest(i[p],e,t?t[p]:null)}const a=r.finalize(),c=[],l=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1<l.length?d+1:n+2;for(let p=0;p<n;p++){const e=p+1;e===g&&(u++,h=l[u].startLineNumber,d=l[u].endLineNumber,g=u+1<l.length?d+1:n+2);const t=e>=h&&e<=d,i=bn(a[p],!t);c[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new xn.c2(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(q.Q.compareRangesUsingStarts);const i=[];let s=t[0].startLineNumber,n=t[0].endLineNumber;for(let r=1,o=t.length;r<o;r++){const e=t[r];e.startLineNumber>n+1?(i.push(new q.Q(s,1,n,1)),s=e.startLineNumber,n=e.endLineNumber):e.endLineNumber>n&&(n=e.endLineNumber)}return i.push(new q.Q(s,1,n,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let s=0;s<t.length;s++)if(!t[s].equalsRange(i[s])){e=!0;break}if(!e)return!1}const s=t.map((e=>({range:e,options:ss.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const n=t;let r=1,o=0,a=-1,c=a+1<n.length?o+1:this.modelLineProjections.length+2,l=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===c&&(a++,r=n[a].startLineNumber,o=n[a].endLineNumber,c=a+1<n.length?o+1:this.modelLineProjections.length+2);let t=!1;if(e>=r&&e<=o?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(l=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return l||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,s,n){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===i,c=this.wrappingIndent===s,l=this.wordBreak===n;if(r&&o&&a&&c&&l)return!1;const h=r&&o&&!a&&c&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=s,this.wordBreak=n;let d=null;if(h){d=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)d[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,d),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,n=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Ds(s,n)}onModelLinesInserted(e,t,i,s){if(!e||e<=this._validModelVersionId)return null;const n=t>2&&!this.modelLineProjections[t-2].isVisible(),r=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let o=0;const a=[],c=[];for(let l=0,h=s.length;l<h;l++){const e=bn(s[l],!n);a.push(e);const t=e.getViewLineCount();o+=t,c[l]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,c),new Ms(r,r+o-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const s=t-1,n=this.modelLineProjections[s].getViewLineCount(),r=bn(i,this.modelLineProjections[s].isVisible());this.modelLineProjections[s]=r;const o=this.modelLineProjections[s].getViewLineCount();let a=!1,c=0,l=-1,h=0,d=-1,u=0,g=-1;n>o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1,u=l+1,g=u+(n-o)-1,a=!0):n<o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+n-1,h=l+1,d=h+(o-n)-1,a=!0):(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1),this.projectedModelLineLineCounts.setValue(s,o);return[a,c<=l?new Os(c,l-c+1):null,h<=d?new Ms(h,d):null,u<=g?new Ds(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const s=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),o=this.model.guides.getActiveIndentGuide(s.lineNumber,n.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(o.startLineNumber,1),c=this.convertModelPositionToViewPosition(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:c.lineNumber,indent:o.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,s=t.remainder;return new An(i+1,s)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),s=this.getViewLineInfo(t),n=new Array;let r=this.getModelStartPositionOfViewLine(i),o=new Array;for(let a=i.modelLineNumber;a<=s.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,n=a===s.modelLineNumber?s.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<n;e++)o.push(new An(a,e))}if(!e.isVisible()&&r){const e=new Y.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=q.Q.fromPositions(r,e);n.push(new Nn(t,o)),o=[],r=null}else e.isVisible()&&!r&&(r=new Y.y(a,1))}if(r){const e=q.Q.fromPositions(r,this.getModelEndPositionOfViewLine(s));n.push(new Nn(e,o))}return n}getViewLinesBracketGuides(e,t,i,s){const n=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,r=[];for(const o of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=o.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,o.modelRange.endLineNumber,n,s);for(const i of o.viewLines){const s=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(s.lineNumber===i.modelLineWrappedLineIdx)t=s.column;else if(s.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(s.lineNumber>i.modelLineWrappedLineIdx)return}const s=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return n.lineNumber===i.modelLineWrappedLineIdx?new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,s.column),-1,-1):n.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));r.push(s.filter((e=>!!e)))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let n=[];const r=[],o=[],a=i.lineNumber-1,c=s.lineNumber-1;let l=null;for(let g=a;g<=c;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),s=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),n=s-t+1;let c=0;n>1&&1===e.getViewLineMinColumn(this.model,g+1,s)&&(c=0===t?1:2),r.push(n),o.push(c),null===l&&(l=new Y.y(g+1,0))}else null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,g)),l=null)}null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,s.lineNumber)),l=null);const h=t-e+1,d=new Array(h);let u=0;for(let g=0,p=n.length;g<p;g++){let e=n[g];const t=Math.min(h-u,r[g]),i=o[g];let s;s=2===i?0:1===i?1:t;for(let n=0;n<t;n++)n===s&&(e=0),d[u++]=e}return d}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const s=this.projectedModelLineLineCounts.getIndexOf(e-1);let n=e;const r=s.index,o=s.remainder,a=[];for(let c=r,l=this.model.getLineCount();c<l;c++){const s=this.modelLineProjections[c];if(!s.isVisible())continue;const l=c===r?o:0;let h=s.getViewLineCount()-l,d=!1;if(n+h>t&&(d=!0,h=t-n+1),s.getViewLinesData(this.model,c+1,l,h,n-e,i,a),n+=h,d)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const s=this.projectedModelLineLineCounts.getIndexOf(e-1),n=s.index,r=s.remainder,o=this.modelLineProjections[n],a=o.getViewLineMinColumn(this.model,n+1,r),c=o.getViewLineMaxColumn(this.model,n+1,r);t<a&&(t=a),t>c&&(t=c);const l=o.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Y.y(n+1,l)).equals(i)?new Y.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),s=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q.Q(i.lineNumber,i.column,s.lineNumber,s.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),s=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Y.y(i.modelLineNumber,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,s=!1,n=!1){const r=this.model.validatePosition(new Y.y(e,t)),o=r.lineNumber,a=r.column;let c=o-1,l=!1;if(n)for(;c<this.modelLineProjections.length&&!this.modelLineProjections[c].isVisible();)c++,l=!0;else for(;c>0&&!this.modelLineProjections[c].isVisible();)c--,l=!0;if(0===c&&!this.modelLineProjections[c].isVisible())return new Y.y(s?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(c);let d;return d=l?n?this.modelLineProjections[c].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[c].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(c+1),i):this.modelLineProjections[o-1].getViewPositionOfModelPosition(h,a,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return q.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,s,n){const r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new q.Q(r.lineNumber,1,o.lineNumber,o.column),t,i,s,n);let a=[];const c=r.lineNumber-1,l=o.lineNumber-1;let h=null;for(let p=c;p<=l;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new Y.y(p+1,p===c?r.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,p,e),t,i,s)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,o.lineNumber,o.column),t,i,s)),h=null),a.sort(((e,t)=>{const i=q.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const d=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,d[u++]=p)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class An{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Nn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class In{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,s){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,s)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class On{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Dn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,s){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,s)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ds(t,i)}onModelLinesInserted(e,t,i,s){return new Ms(t,i)}onModelLineChanged(e,t,i){return[!1,new Os(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,s=new Array(i);for(let n=0;n<i;n++)s[n]=0;return s}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new Vt.GP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const s=this.model.getLineCount();e=Math.min(Math.max(1,e),s),t=Math.min(Math.max(1,t),s);const n=[];for(let r=e;r<=t;r++){const t=r-e;n[t]=i[t]?this.getViewLineData(r):null}return n}getDecorationsInRange(e,t,i,s,n){return this.model.getDecorationsInRange(e,t,i,s,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Dn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Mn=_t.ZS.Right;class Pn{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Mn/8))}reset(e){const t=Math.ceil((e+1)*Mn/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const t=Mn*s+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(s))}}getLanesAtLine(e){const t=[];let i=Mn*e;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[i>>>3]&1<<i%8)&&t.push(s+1),i++;return t.length?t:[_t.ZS.Center]}countAtLine(e){let t=Mn*e,i=0;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Fn extends d.jG{constructor(e,t,i,s,n,r,o,a,c,l){if(super(),this.languageConfigurationService=o,this._themeService=a,this._attachedView=c,this._transactionalTarget=l,this.hiddenAreasModel=new Bn,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new Vs,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Nt.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Un.create(this.model),this.glyphLanes=new Pn(0),this.model.isTooLargeForTokenization())this._lines=new On(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(140),r=e.get(147),o=e.get(139),a=e.get(130);this._lines=new kn(this._editorId,this.model,s,n,t,this.model.getOptions().tabSize,i,r.wrappingColumn,o,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new nn(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new vn(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fs(e)),this._eventDispatcher.emitOutgoingEvent(new Ks(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Cn.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Wt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Bs)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Us(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new q.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new As(e)),this._eventDispatcher.emitOutgoingEvent(new js(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new ws)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Rs)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new Y.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Vn(t,this._viewportStart.startLineDelta)}return new Vn(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),s=this._configuration.options,n=s.get(50),r=s.get(140),o=s.get(147),a=s.get(139),c=s.get(130);this._lines.setWrappingSettings(n,r,o.wrappingColumn,a,c)&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),e.emitViewEvent(new Ls(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),_s.d$.shouldRecreate(t)&&(this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,s=!1;const n=e instanceof Gi.Ic?e.rawContentChangedEvent.changes:e.changes,r=e instanceof Gi.Ic?e.rawContentChangedEvent.versionId:null,o=this._lines.createLineBreaksComputer();for(const e of n)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let s=e.injectedTexts[t];s&&(s=s.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(i,s,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(e.detail,t,null);break}}const a=o.finalize(),c=new m.j3(a);for(const e of n)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new ks),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const s=this._lines.onModelLinesDeleted(r,e.fromLineNumber,e.toLineNumber);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesDeleted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 4:{const s=c.takeCount(e.detail.length),n=this._lines.onModelLinesInserted(r,e.fromLineNumber,e.toLineNumber,s);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesInserted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 2:{const i=c.dequeue(),[n,o,a,l]=this._lines.onModelLineChanged(r,e.lineNumber,i);s=n,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),l&&(t.emitViewEvent(l),this.viewLayout.onLinesDeleted(l.fromLineNumber,l.toLineNumber));break}}null!==r&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&s&&(t.emitViewEvent(new Is),t.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Gi.Ic&&t.emitOutgoingEvent(new en(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,s=e.ranges.length;i<s;i++){const s=e.ranges[i],n=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.fromLineNumber,1)).lineNumber,r=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.toLineNumber,this.model.getLineMaxColumn(s.toLineNumber))).lineNumber;t[i]={fromLineNumber:n,toLineNumber:r}}this._eventDispatcher.emitSingleViewEvent(new Hs(t)),this._eventDispatcher.emitOutgoingEvent(new sn(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new Ns),this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Js(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zs(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new tn(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new xs(e)),this._eventDispatcher.emitOutgoingEvent(new Xs(e))})))}setHiddenAreas(e,t){this.hiddenAreasModel.setHiddenAreas(t,e);const i=this.hiddenAreasModel.getMergedRanges();if(i===this.previousHiddenAreas)return;this.previousHiddenAreas=i;const s=this._captureStableViewport();let n=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();n=this._lines.setHiddenAreas(i),n&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=s.viewportStartModelPosition?.lineNumber;t&&i.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),n&&this._eventDispatcher.emitOutgoingEvent(new qs)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),s=this.viewLayout.getLinesViewportData(),n=Math.max(1,s.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),s.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new q.Q(n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const s=[];let n=0,r=t.startLineNumber,o=t.startColumn;const a=t.endLineNumber,c=t.endColumn;for(let l=0,h=i.length;l<h;l++){const e=i[l].startLineNumber,t=i[l].endLineNumber;t<r||(e>a||(r<e&&(s[n++]=new q.Q(r,o,e-1,this.model.getLineMaxColumn(e-1))),r=t+1,o=1))}return(r<a||r===a&&o<c)&&(s[n++]=new q.Q(r,o,a,c)),s}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new q.Q(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,s=t.completelyVisibleEndLineNumber;return new q.Q(i,this.getLineMinColumn(i),s,this.getLineMaxColumn(s))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),s=this.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,this.getLineMinColumn(i))),n=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:s,firstPositionDeltaTop:n}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:s}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,s){return this._lines.getViewLinesBracketGuides(e,t,i,s)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Le.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Le.lT(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),s=this.model.mightContainNonBasicASCII(),n=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new Vt.qL(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,s,r.tokens,t,n,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const s=this._lines.getViewLinesData(e,t,i);return new Vt.nt(this.getTabSize(),s)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,R.$C)(this._configuration.options)),i=new Hn;for(const s of t){const t=s.options,n=t.overviewRuler;if(!n)continue;const r=n.position;if(0===r)continue;const o=n.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.startLineNumber,s.range.startColumn),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(o,t.zIndex,a,c,r)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e?.invalidateCachedColor();const i=t.options.minimap;i?.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),s=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(s)}deduceModelPositionRelativeToViewPosition(e,t,i){const s=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const n=this.model.getOffsetAt(s)+t;return this.model.getPositionAt(n)}getPlainTextToCopy(e,t,i){const s=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(q.Q.compareRangesUsingStarts);let n=!1,r=!1;for(const a of e)a.isEmpty()?n=!0:r=!0;if(!r){if(!t)return"";const i=e.map((e=>e.startLineNumber));let n="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(n+=this.model.getLineContent(i[e])+s);return n}if(n&&t){const t=[];let s=0;for(const n of e){const e=n.startLineNumber;n.isEmpty()?e!==s&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(n,i?2:0)),s=e}return 1===t.length?t[0]:t}const o=[];for(const a of e)a.isEmpty()||o.push(this.model.getValueInRange(a,i?2:0));return 1===o.length?o[0]:o}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===hn.vH)return null;if(1!==e.length)return null;let s=e[0];if(s.isEmpty()){if(!t)return null;const e=s.startLineNumber;s=new q.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const n=this._configuration.options.get(50),r=this._getColorMap();let o;if(/[:;\\\/<>]/.test(n.fontFamily)||n.fontFamily===R.jU.fontFamily)o=R.jU.fontFamily;else{o=n.fontFamily,o=o.replace(/"/g,"'");if(!/[,']/.test(o)){/[+ ]/.test(o)&&(o=`'${o}'`)}o=`${o}, ${R.jU.fontFamily}`}return{mode:i,html:`<div style="color: ${r[1]};background-color: ${r[2]};font-family: ${o};font-weight: ${n.fontWeight};font-size: ${n.fontSize}px;line-height: ${n.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(s,r)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn,o=this.getTabSize();let a="";for(let c=i;c<=n;c++){const e=this.model.tokenization.getLineTokens(c),l=e.getLineContent(),h=c===i?s-1:0,d=c===n?r-1:l.length;a+=""===l?"<br>":(0,dn.s0)(l,e.inflate(),t,h,d,o,_.uF)}return a}_getColorMap(){const e=Me.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,s=e.length;i<s;i++)t[i]=Pe.Q1.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((s=>this._cursor.setStates(s,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((s=>this._cursor.setSelections(s,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Qs):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((s=>this._cursor.executeEdits(s,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,s,n){this._executeCursorEdit((r=>this._cursor.compositionType(r,e,t,i,s,n)))}paste(e,t,i,s){this._executeCursorEdit((n=>this._cursor.paste(n,e,t,i,s)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealAll(s,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealPrimary(s,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,s,n){this._withViewEventsCollector((r=>r.emitViewEvent(new Ps(e,!1,i,null,s,t,n))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Ws),this._eventDispatcher.emitOutgoingEvent(new Ys))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges((()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}))}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Un{static create(e){const t=e._setTrackedRange(null,new q.Q(1,1,1,1),1);return new Un(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,s,n){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=s,this._startLineDelta=n}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(t,e.getLineMinColumn(t))),s=e.model._setTrackedRange(this._modelTrackedRange,new q.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),n=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=s,this._startLineDelta=r-n}invalidate(){this._isValid=!1}}class Hn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,s,n){const r=this._asMap[e];if(r){const e=r.data,t=e[e.length-3],o=e[e.length-1];if(t===n&&o+1>=i)return void(s>o&&(e[e.length-1]=s));e.push(n,i,s)}else{const r=new Vt.Uv(e,t,[n,i,s]);this._asMap[e]=r,this.asArray.push(r)}}}class Bn{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Wn(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let s=0,n=0;for(;s<e.length&&n<t.length;){const r=e[s],o=t[n];if(r.endLineNumber<o.startLineNumber-1)i.push(e[s++]);else if(o.endLineNumber<r.startLineNumber-1)i.push(t[n++]);else{const e=Math.min(r.startLineNumber,o.startLineNumber),t=Math.max(r.endLineNumber,o.endLineNumber);i.push(new q.Q(e,1,t,1)),s++,n++}}for(;s<e.length;)i.push(e[s++]);for(;n<t.length;)i.push(t[n++]);return i}(e,t)),[]);return Wn(this.ranges,e)||(this.ranges=e),this.ranges}}function Wn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Vn{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),s=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:s+this.startLineDelta},1)}}var zn,Gn=i(50091),jn=i(32848),Kn=i(58345),Yn=i(58591),qn=i(27195),$n=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Qn=function(e,t){return function(i,s){t(i,s,e)}};let Xn=class extends d.jG{static{zn=this}static{this.dropIntoEditorDecorationOptions=ss.kI.register({description:"workbench-dnd-target",className:"dnd-target"})}get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,s,r,o,a,d,u,g,p,m){super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Qy)(),this._contributions=this._register(new Xi),this._onDidDispose=this._register(new h.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new tr(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new h.vl),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new h.vl),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),r.willCreateCodeEditor();const f={...t};let _;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++Zn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,i.contextMenuId??(i.isSimpleWidget?qn.D8.SimpleEditorContext:qn.D8.EditorContext),f,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(146)){const e=t.get(146);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=r,this._commandService=o,this._themeService=d,this._register(new ir(this,this._contextKeyService)),this._register(new sr(this,this._contextKeyService,m)),this._instantiationService=this._register(s.createChild(new Kn.a([jn.fN,this._contextKeyService]))),this._modelData=null,this._focusTracker=new nr(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},_=Array.isArray(i.contributions)?i.contributions:n.dS.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const c of n.dS.getEditorActions()){if(this._actions.has(c.id)){(0,l.dz)(new Error(`Cannot have two actions with the same id ${c.id}`));continue}const e=new Ji.f(c.id,c.label,c.alias,c.metadata,c.precondition??void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(c.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const v=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new c.pN(this._domElement,{onDragOver:e=>{if(!v())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!v())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){this._modelData?.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,s){return new I(e,t,i,this._domElement,s)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return es._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Zi.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){try{this._beginUpdate();const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:this._modelData?.model.uri||null,newModelUrl:t?.uri||null};this._onWillChangeModel.fire(i);const s=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(n),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,s){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,s)}getTopForLineNumber(e,t=!1){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,s=!1){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,s)}getBottomForLineNumber(e,t=!1){if(!this._modelData)return-1;const i=this._modelData.model.getLineMaxColumn(e);return zn._getVerticalOffsetAfterPosition(this._modelData,e,i,t)}setHiddenAreas(e,t){this._modelData?.viewModel.setHiddenAreas(e.map((e=>q.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return $.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,s){if(!this._modelData)return;if(!q.Q.isIRange(e))throw new Error("Invalid arguments");const n=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(n);this._modelData.viewModel.revealRange("api",i,r,t,s)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,s){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,s)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=pe.L.isISelection(e),s=q.Q.isIRange(e);if(!i&&!s)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(s){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,s){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,t,1),i,!1,s)}revealRange(e,t=0,i=!1,s=!0){this._revealRange(e,i?1:0,s,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,s){if(!q.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(q.Q.lift(e),t,i,s)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.L.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){this._getViewModel()?.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const s=this.getAction(t);if(s)return void Promise.resolve(s.run(i)).then(void 0,l.dz);if(!this._modelData)return;if(this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,s,n){this._modelData&&this._modelData.viewModel.compositionType(t,i,s,n,e)}_paste(e,t,i,s,n,r){if(!this._modelData)return;const o=this._modelData.viewModel,a=o.getSelection().getStartPosition();o.paste(t,i,s,e);const c=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:r,range:new q.Q(a.lineNumber,a.column,c.lineNumber,c.column),languageId:n})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const s=n.dS.getEditorCommand(t);return!!s&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(s.runEditorCommand(e,this,i)).then(void 0,l.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(92))return!1;let s;return s=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,s),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new rr(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,R.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,R.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,s=i.get(146);return{top:zn._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+s.glyphMarginWidth+s.lineNumbersWidth+s.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),s=new Fn(this._id,this._configuration,e,Ki.create(c.zk(this._domElement)),os.create(this._configuration.options),(e=>c.PG(c.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i,{batchChanges:e=>{try{return this._beginUpdate(),e()}finally{this._endUpdate()}}});t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(s.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Re.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Yn.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Re.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let n=0,r=t.selections.length;n<r;n++)e[n]=t.selections[n].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const s={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(s);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[n,r]=this._createView(s);if(r){this._domElement.appendChild(n.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addGlyphMarginWidget(this._glyphMarginWidgets[i])}n.render(!1,!0),n.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Jn(e,s,n,r,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,s)=>{this._paste("keyboard",e,t,i,s)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,s)=>{this._compositionType("keyboard",e,t,i,s)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,s)=>{const n={text:e,pasteOnNewLine:t,multicursorText:i,mode:s};this._commandService.executeCommand("paste",n)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,s)=>{if(i||s){const n={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:s};this._commandService.executeCommand("compositionType",n)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new st(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(this._contributionsDisposable?.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&t.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:zn.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,0===this._updateCounter&&this._onEndUpdate.fire()}};Xn=zn=$n([Qn(3,He._Y),Qn(4,U.T),Qn(5,Gn.d),Qn(6,jn.fN),Qn(7,ke.Gy),Qn(8,Yn.Ot),Qn(9,x.j),Qn(10,is.JZ),Qn(11,ns.ILanguageFeaturesService)],Xn);let Zn=0;class Jn{constructor(e,t,i,s,n,r){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=s,this.listenersToRemove=n,this.attachedView=r}dispose(){(0,d.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class er extends d.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class tr extends h.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class ir extends d.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=ts.R.editorSimpleInput.bindTo(t),this._editorFocus=ts.R.focus.bindTo(t),this._textInputFocus=ts.R.textInputFocus.bindTo(t),this._editorTextFocus=ts.R.editorTextFocus.bindTo(t),this._tabMovesFocus=ts.R.tabMovesFocus.bindTo(t),this._editorReadonly=ts.R.readOnly.bindTo(t),this._inDiffEditor=ts.R.inDiffEditor.bindTo(t),this._editorColumnSelection=ts.R.columnSelection.bindTo(t),this._hasMultipleSelections=ts.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=ts.R.hasNonEmptySelection.bindTo(t),this._canUndo=ts.R.canUndo.bindTo(t),this._canRedo=ts.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(w.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(w.M.getTabFocusMode()),this._editorReadonly.set(e.get(92)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class sr extends d.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=ts.R.languageId.bindTo(t),this._hasCompletionItemProvider=ts.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=ts.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=ts.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=ts.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=ts.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=ts.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=ts.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=ts.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=ts.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=ts.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=ts.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=ts.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=ts.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=ts.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=ts.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=ts.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=ts.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=ts.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=ts.R.isInEmbeddedEditor.bindTo(t);const s=()=>this._update();this._register(e.onDidChangeModel(s)),this._register(e.onDidChangeModelLanguage(s)),this._register(i.completionProvider.onDidChange(s)),this._register(i.codeActionProvider.onDidChange(s)),this._register(i.codeLensProvider.onDidChange(s)),this._register(i.definitionProvider.onDidChange(s)),this._register(i.declarationProvider.onDidChange(s)),this._register(i.implementationProvider.onDidChange(s)),this._register(i.typeDefinitionProvider.onDidChange(s)),this._register(i.hoverProvider.onDidChange(s)),this._register(i.documentHighlightProvider.onDidChange(s)),this._register(i.documentSymbolProvider.onDidChange(s)),this._register(i.referenceProvider.onDidChange(s)),this._register(i.renameProvider.onDidChange(s)),this._register(i.documentFormattingEditProvider.onDidChange(s)),this._register(i.documentRangeFormattingEditProvider.onDidChange(s)),this._register(i.signatureHelpProvider.onDidChange(s)),this._register(i.inlayHintsProvider.onDidChange(s)),s()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class nr extends d.jG{constructor(e,t){super(),this._onChange=this._register(new h.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(c.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(c.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){return this._hadFocus??!1}}class rr{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const s=e.getDecorationRange(i);s&&t.push(s)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const or=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),ar=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function cr(e){return or+encodeURIComponent(e.toString())+ar}const lr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),hr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${cr(i)}") repeat-x bottom left; }`);const s=e.getColor(zt.Hng);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${cr(s)}") repeat-x bottom left; }`);const n=e.getColor(zt.pOz);n&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${cr(n)}") repeat-x bottom left; }`);const r=e.getColor(zt.i61);r&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return lr+encodeURIComponent(e.toString())+hr}(r)}") no-repeat bottom left; }`);const o=e.getColor(Ae.yw);o&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${o.rgba.a}; }`)}))},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},52776:(e,t,i)=>{"use strict";i.d(t,{vV:()=>u,jQ:()=>h,N4:()=>l,M4:()=>g,vr:()=>d});var s=i(8597),n=i(72962),r=i(31295),o=i(5662),a=i(78209);const c=s.$;class l extends o.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new r.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends o.jG{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=s.BC(e,c("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=s.BC(this.actionContainer,c("a.action")),this.action.setAttribute("role","button"),t.iconClass&&s.BC(this.action,c(`span.icon.${t.iconClass}`));s.BC(this.action,c("span")).textContent=i?`${t.label} (${i})`:t.label,this._store.add(new u(this.actionContainer,t.run)),this._store.add(new g(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function d(e,t){return e&&t?(0,a.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}class u extends o.jG{constructor(e,t){super(),this._register(s.ko(e,s.Bx.CLICK,(i=>{i.stopPropagation(),i.preventDefault(),t(e)})))}}class g extends o.jG{constructor(e,t,i){super(),this._register(s.ko(e,s.Bx.KEY_DOWN,(s=>{const r=new n.Z(s);i.some((e=>r.equals(e)))&&(s.stopPropagation(),s.preventDefault(),t(e))})))}}},52894:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(9728).then(i.bind(i,19728))})},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>l,kK:()=>m,pN:()=>o,pr:()=>_,sO:()=>d,uV:()=>c});var s=i(41234),n=i(44026),r=i(85600);class o{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new s.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new n.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let s=0,n=-1,r=-1;const o=e=>{for(;s<e;){const e=this._regions.getEndLineNumber(s),t=this._regions.isCollapsed(s);if(e<=n){const n=0!==this.regions.getSource(s);i.changeDecorationOptions(this._editorDecorationIds[s],this._decorationProvider.getDecorationOption(t,e<=r,n))}t&&e>r&&(r=e),s++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,o(e);const s=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,s),n=Math.max(n,this._regions.getEndLineNumber(e))}}o(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let s=0;s<this._regions.length;s++){const e=this._regions.toFoldRange(s);0!==e.source&&i(e)||t.push(e)}this.updatePost(n.tz.fromFoldRanges(t))}update(e,t){const i=this._currentFoldedOrManualRanges(t),s=n.tz.sanitizeAndMerge(e,i,this._textModel.getLineCount(),t);this.updatePost(n.tz.fromFoldRanges(s))}updatePost(e){const t=[];let i=-1;for(let s=0,n=e.length;s<n;s++){const n=e.getStartLineNumber(s),r=e.getEndLineNumber(s),o=e.isCollapsed(s),a=0!==e.getSource(s),c={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:c,options:this._decorationProvider.getDecorationOption(o,r<=i,a)}),o&&r>i&&(i=r)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e){const t=[];for(let i=0,s=this._regions.length;i<s;i++){let s=this.regions.isCollapsed(i);const n=this.regions.getSource(i);if(s||0!==n){const r=this._regions.toFoldRange(i),o=this._textModel.getDecorationRange(this._editorDecorationIds[i]);o&&(s&&e?.startsInside(o.startLineNumber+1,o.endLineNumber)&&(s=!1),t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:r.type,isCollapsed:s,source:n}))}}return t}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let s=0,n=e.length;s<n;s++){const n=e[s];if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const r=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,isCollapsed:n.isCollapsed,source:n.source,checksum:r})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],i=this._textModel.getLineCount();for(const n of e){if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const e=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);n.checksum&&e!==n.checksum||t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,type:void 0,isCollapsed:n.isCollapsed??!0,source:n.source??0})}const s=n.tz.sanitizeAndMerge(this._regions,t,i);this.updatePost(n.tz.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,r.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let s=this._regions.findRange(e),n=1;for(;s>=0;){const e=this._regions.toRegion(s);t&&!t(e,n)||i.push(e),n++,s=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],s=e?e.regionIndex+1:0,n=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let r=s,o=this._regions.length;r<o;r++){const s=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;for(;e.length>0&&!s.containedBy(e[e.length-1]);)e.pop();e.push(s),t(s,e.length)&&i.push(s)}}else for(let r=s,o=this._regions.length;r<o;r++){const e=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const s=[];for(const n of i){const i=e.getRegionAtLine(n);if(i){const n=!i.isCollapsed;if(s.push(i),t>1){const r=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==n&&i<t));s.push(...r)}}}e.toggleCollapseState(s)}function c(e,t,i=Number.MAX_VALUE,s){const n=[];if(s&&s.length>0)for(const r of s){const s=e.getRegionAtLine(r);if(s&&(s.isCollapsed!==t&&n.push(s),i>1)){const r=e.getRegionsInside(s,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...r)}}else{const s=e.getRegionsInside(null,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...s)}e.toggleCollapseState(n)}function l(e,t,i,s){const n=[];for(const r of s){const s=e.getAllRegionsAtLine(r,((e,s)=>e.isCollapsed!==t&&s<=i));n.push(...s)}e.toggleCollapseState(n)}function h(e,t,i){const s=[];for(const n of i){const i=e.getAllRegionsAtLine(n,(e=>e.isCollapsed!==t));i.length>0&&s.push(i[0])}e.toggleCollapseState(s)}function d(e,t,i,s){const n=e.getRegionsInside(null,((e,n)=>n===t&&e.isCollapsed!==i&&!s.some((t=>e.containsLine(t)))));e.toggleCollapseState(n)}function u(e,t,i){const s=[];for(const r of i){const t=e.getAllRegionsAtLine(r,void 0);t.length>0&&s.push(t[0])}const n=e.getRegionsInside(null,(e=>s.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(n)}function g(e,t,i){const s=e.textModel,n=e.regions,r=[];for(let o=n.length-1;o>=0;o--)if(i!==n.isCollapsed(o)){const e=n.getStartLineNumber(o);t.test(s.getLineContent(e))&&r.push(n.toRegion(o))}e.toggleCollapseState(r)}function p(e,t,i){const s=e.regions,n=[];for(let r=s.length-1;r>=0;r--)i!==s.isCollapsed(r)&&t===s.getType(r)&&n.push(s.toRegion(r));e.toggleCollapseState(n)}function m(e,t){let i=null;const s=t.getRegionAtLine(e);if(null!==s&&(i=s.startLineNumber,e===i)){const e=s.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let s=0;for(-1!==e&&(s=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=s)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let s=0;if(-1!==e)s=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;s=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=s)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},53068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getIconClasses:()=>h});var s=i(36456),n=i(89403),r=i(79400),o=i(83941),a=i(7291),c=i(25689);const l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function h(e,t,i,h,u){if(c.L.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(r.r.isUri(u))return[];const g=h===a.p.ROOT_FOLDER?["rootfolder-icon"]:h===a.p.FOLDER?["folder-icon"]:["file-icon"];if(i){let r;if(i.scheme===s.ny.data){r=n.B6.parseMetaData(i).get(n.B6.META_DATA_LABEL)}else{const e=i.path.match(l);e?(r=d(e[2].toLowerCase()),e[1]&&g.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):r=d(i.authority.toLowerCase())}if(h===a.p.ROOT_FOLDER)g.push(`${r}-root-name-folder-icon`);else if(h===a.p.FOLDER)g.push(`${r}-name-folder-icon`);else{if(r){if(g.push(`${r}-name-file-icon`),g.push("name-file-icon"),r.length<=255){const e=r.split(".");for(let t=1;t<e.length;t++)g.push(`${e.slice(t).join(".")}-ext-file-icon`)}g.push("ext-file-icon")}const a=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===s.ny.data){const e=n.B6.parseMetaData(i).get(n.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(r=t.getLanguageId())}if(r&&r!==o.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);a&&g.push(`${d(a)}-lang-file-icon`)}}return g}function d(e){return e.replace(/[\s]/g,"/")}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},53396:()=>{},53450:(e,t,i)=>{"use strict";i.d(t,{P:()=>d,k:()=>u});var s=i(46041),n=i(91508),r=i(1245),o=i(36677),a=i(20761),c=i(78049),l=i(84739),h=i(64383);class d extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,c.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const s=this.textModel.getLineCount();if(e<1||e>s)throw new h.D7("Illegal value for lineNumber");const n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide);let o=-2,a=-1,c=-2,l=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,l=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,l=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,C=0,E=!0,b=0,S=0;for(let h=0;v||E;h++){const n=e-h,o=e+h;h>1&&(n<1||n<t)&&(v=!1),h>1&&(o>s||o>i)&&(E=!1),h>5e4&&(v=!1,E=!1);let p=-1;if(v&&n>=1){const e=this._computeIndentLevel(n-1);e>=0?(c=n-1,l=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(n),p=this._getIndentLevelForWhitespaceLine(r,a,l))}let y=-1;if(E&&o<=s){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(o),y=this._getIndentLevelForWhitespaceLine(r,g,m))}if(0!==h){if(1===h){if(o<=s&&y>=0&&S+1===y){v=!1,_=o,C=o,b=y;continue}if(n>=1&&p>=0&&p-1===S){E=!1,_=n,C=n,b=p;continue}if(_=e,C=e,b=S,0===b)return{startLineNumber:_,endLineNumber:C,indent:b}}v&&(p>=b?_=n:v=!1),E&&(y>=b?C=o:E=!1)}else S=p}return{startLineNumber:_,endLineNumber:C,indent:b}}getLinesBracketGuides(e,t,i,r){const a=[];for(let s=e;s<=t;s++)a.push([]);const c=!0,h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new o.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let d;if(i&&h.length>0){const n=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(o.Q.fromPositions(i)).toArray()).filter((e=>o.Q.strictContainsPosition(e.range,i)));d=(0,s.Uk)(n,(e=>c))?.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const s of h){if(!s.closingBracketRange)continue;const i=d&&s.range.equalsRange(d);if(!i&&!r.includeInactive)continue;const o=p.getInlineClassName(s.nestingLevel,s.nestingLevelOfEqualBracketType,g)+(r.highlightActive&&i?" "+p.activeClassName:""),c=s.openingBracketRange.getStartPosition(),h=s.closingBracketRange.getStartPosition(),u=r.horizontalGuides===l.N6.Enabled||r.horizontalGuides===l.N6.EnabledForActive&&i;if(s.range.startLineNumber===s.range.endLineNumber){u&&a[s.range.startLineNumber-e].push(new l.TH(-1,s.openingBracketRange.getEndPosition().column,o,new l.pv(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(s.openingBracketRange.getStartPosition()),_=Math.min(f,m,s.minVisibleColumnIndentation+1);let v=!1;n.HG(this.textModel.getLineContent(s.closingBracketRange.startLineNumber))<s.closingBracketRange.startColumn-1&&(v=!0);const C=Math.max(c.lineNumber,e),E=Math.min(h.lineNumber,t),b=v?1:0;for(let t=C;t<E+b;t++)a[t-e].push(new l.TH(_,-1,o,null,t===c.lineNumber?c.column:-1,t===h.lineNumber?h.column:-1));u&&(c.lineNumber>=e&&f>_&&a[c.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!1,c.column),-1,-1)),h.lineNumber<=t&&m>_&&a[h.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!v,h.column),-1,-1)))}for(const s of a)s.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return a}getVisibleColumnFromPosition(e){return r.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide),o=new Array(t-e+1);let a=-2,c=-1,l=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,n=this._computeIndentLevel(d-1);if(n>=0)a=d-1,c=n,o[t]=Math.ceil(n/s.indentSize);else{if(-2===a){a=-1,c=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,c=t;break}}}if(-1!==l&&(-2===l||l<d-1)){l=-1,h=-1;for(let e=d;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){l=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,c,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,i){const s=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/s.indentSize):t===i||e?Math.ceil(i/s.indentSize):1+Math.floor(i/s.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},53472:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56z",clipRule:"evenodd"}))},54459:(e,t,i)=>{"use strict";i.d(t,{f:()=>r});var s=i(46958),n=i(74027);function r(e,t,i,o,a,c){if(Array.isArray(e)){let s=0;for(const n of e){const e=r(n,t,i,o,a,c);if(10===e)return e;e>s&&(s=e)}return s}if("string"===typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){const{language:r,pattern:l,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!o&&!d)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(r)if(r===i)g=10;else{if("*"!==r)return 0;g=Math.max(g,5)}if(u)if(u===c)g=10;else{if("*"!==u||void 0===c)return 0;g=Math.max(g,5)}if(l){let e;if(e="string"===typeof l?l:{...l,base:(0,n.S8)(l.base)},e!==t.fsPath&&!(0,s.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},54503:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 3.031L11 8.866a1 1 0 0 0 0-1.732L7.25 4.969a1 1 0 0 0-1.5.866v4.33a1 1 0 0 0 1.5.866",clipRule:"evenodd"}))},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},55089:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var s=i(60413),n=i(25893),r=i(98067);const o={clipboard:{writeText:r.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.ib||s.Qu()?0:navigator.keyboard||s.nr?1:2,touch:"ontouchstart"in n.G||navigator.maxTouchPoints>0,pointerEvents:n.G.PointerEvent&&("ontouchstart"in n.G||navigator.maxTouchPoints>0)}},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>R,Qp:()=>I,Rw:()=>T,Uy:()=>L,W4:()=>O,Xj:()=>w,dU:()=>A,k_:()=>b,pQ:()=>S,pR:()=>y});var s=i(25890),n=i(18447),r=i(64383),o=i(5662),a=i(79400),c=i(80537),l=i(36677),h=i(75326),d=i(56942),u=i(23750),g=i(50868),p=i(78209),m=i(50091),f=i(58591),_=i(73823),v=i(90651),C=i(61407),E=i(8995);const b="editor.action.codeAction",S="editor.action.quickFix",y="editor.action.autoFix",w="editor.action.refactor",R="editor.action.sourceAction",L="editor.action.organizeImports",T="editor.action.fixAll";class x extends o.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,s.EI)(e.diagnostics)?(0,s.EI)(t.diagnostics)?x.codeActionsPreferredComparator(e,t):-1:(0,s.EI)(t.diagnostics)?1:x.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(x.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&C.gB.QuickFix.contains(new E.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const k={actions:[],documentation:void 0};async function A(e,t,i,n,a,c){const l=n.filter||{},h={...l,excludes:[...l.excludes||[],C.gB.Notebook]},d={only:l.include?.value,trigger:n.type},u=new g.ER(t,c),p=2===n.type,m=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,C.uJ)(i,new E.k(e))))))}(e,t,p?h:l),f=new o.Cm,_=m.map((async e=>{try{a.report(e);const s=await e.provideCodeActions(t,i,d,u.token);if(s&&f.add(s),u.token.isCancellationRequested)return k;const n=(s?.actions||[]).filter((e=>e&&(0,C.aF)(l,e))),r=function(e,t,i){if(!e.documentation)return;const s=e.documentation.map((e=>({kind:new E.k(e.kind),command:e.command})));if(i){let e;for(const t of s)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(const n of t)if(n.kind)for(const e of s)if(e.kind.contains(new E.k(n.kind)))return e.command;return}(e,n,l.include);return{actions:n.map((t=>new C.Vi(t,e))),documentation:r}}catch(s){if((0,r.MB)(s))throw s;return(0,r.M_)(s),k}})),v=e.onDidChange((()=>{const i=e.all(t);(0,s.aI)(i,m)||u.cancel()}));try{const i=await Promise.all(_),r=i.map((e=>e.actions)).flat(),o=[...(0,s.Yc)(i.map((e=>e.documentation))),...N(e,t,n,r)];return new x(r,o,f)}finally{v.dispose(),u.dispose()}}function*N(e,t,i,s){if(t&&s.length)for(const n of e.all(t))n._getAdditionalMenuItems&&(yield*n._getAdditionalMenuItems?.({trigger:i.type,only:i.filter?.include?.value},s.map((e=>e.action))))}var I;async function O(e,t,i,s,r=n.XO.None){const o=e.get(c.nu),a=e.get(m.d),l=e.get(v.k),h=e.get(f.Ot);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(r),!r.isCancellationRequested){if(t.action.edit?.edits.length){if(!(await o.apply(t.action.edit,{editor:s?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==I.OnSave,showPreview:s?.preview})).isApplied)return}if(t.action.command)try{await a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(d){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(d);h.error("string"===typeof e?e:p.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(I||(I={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,s,o){if(!(t instanceof a.r))throw(0,r.Qg)();const{codeActionProvider:c}=e.get(d.ILanguageFeaturesService),g=e.get(u.IModelService).getModel(t);if(!g)throw(0,r.Qg)();const p=h.L.isISelection(i)?h.L.liftSelection(i):l.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,r.Qg)();const m="string"===typeof s?new E.k(s):void 0,f=await A(c,g,p,{type:1,triggerAction:C.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,n.XO.None),v=[],b=Math.min(f.validActions.length,"number"===typeof o?o:0);for(let r=0;r<b;r++)v.push(f.validActions[r].resolve(n.XO.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},55190:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});class s{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new s(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new s(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,s,n){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=s,this._cursorPosition=n}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const 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;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},55275:(e,t,i)=>{"use strict";i.d(t,{D:()=>s,Z:()=>r});class s{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=""}setMaxWidth(e){const t=n(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=n(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=n(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=n(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=n(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=n(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=n(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=n(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){const t=n(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){const t=n(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=n(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 n(e){return"number"===typeof e?`${e}px`:e}function r(e){return new s(e)}},55433:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>U,lr:()=>P,qs:()=>M});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(17799),l=i(8995),h=i(5662),d=i(44320),u=i(98067),g=i(58255),p=i(68792),m=i(85411),f=i(80537),_=i(36677),v=i(62083),C=i(56942),E=i(90208),b=i(85541),S=i(50868),y=i(9948),w=i(99645),R=i(78209),L=i(54770),T=i(32848),x=i(63591),k=i(73823),A=i(51467),N=i(56687),I=i(64383),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};const M="editor.changePasteType",P=new T.N1("pasteWidgetVisible",!1,(0,R.kg)("pasteWidgetVisible","Whether the paste widget is showing")),F="application/vnd.code.copyMetadata";let U=class extends h.jG{static{s=this}static{this.ID="editor.contrib.copyPasteActionController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,a){super(),this._bulkEditService=i,this._clipboardService=s,this._languageFeaturesService=r,this._quickInputService=o,this._progressService=a,this._editor=e;const c=e.getContainerDomNode();this._register((0,n.ko)(c,"copy",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"cut",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new y.I("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(N.G,"pasteIntoEditor",e,P,{id:M,label:(0,R.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,n.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){if(!this._editor.hasTextFocus())return;if(this._clipboardService.clearInternalState?.(),!e.clipboardData||!this.isPasteAsEnabled())return;const t=this._editor.getModel(),i=this._editor.getSelections();if(!t||!i?.length)return;const n=this._editor.getOption(37);let a=i;const c=1===i.length&&i[0].isEmpty();if(c){if(!n)return;a=[new _.Q(a[0].startLineNumber,1,a[0].startLineNumber,1+t.getLineLength(a[0].startLineNumber))]}const l=this._editor._getViewModel()?.getPlainTextToCopy(i,n,u.uF),h={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:c,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>!!e.prepareDocumentPaste));if(!d.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});const p=(0,m.q)(e.clipboardData),f=d.flatMap((e=>e.copyMimeTypes??[])),v=(0,g.b)();this.setCopyMetadata(e.clipboardData,{id:v,providerCopyMimeTypes:f,defaultPastePayload:h});const C=(0,o.SS)((async e=>{const i=(0,r.Yc)(await Promise.all(d.map((async i=>{try{return await i.prepareDocumentPaste(t,a,p,e)}catch(s){return void console.error(s)}}))));i.reverse();for(const t of i)for(const[e,i]of t)p.replace(e,i);return p}));s._currentCopyOperation?.dataTransferPromise.cancel(),s._currentCopyOperation={handle:v,dataTransferPromise:C}}async handlePaste(e){if(!e.clipboardData||!this._editor.hasTextFocus())return;w.k.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;const t=this._editor.getModel(),i=this._editor.getSelections();if(!i?.length||!t)return;if(this._editor.getOption(92)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const s=this.fetchCopyMetadata(e),n=(0,m.l)(e.clipboardData);n.delete(F);const r=[...e.clipboardData.types,...s?.providerCopyMimeTypes??[],d.K.uriList],o=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>{const t=this._pasteAsActionContext?.preferred;return!(t&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,t))&&e.pasteMimeTypes?.some((e=>(0,c.Y)(e,r)))}));o.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,o,i,n,s):this.doPasteInline(o,i,n,s,e)):this._pasteAsActionContext?.preferred&&this.showPasteAsNoEditMessage(i,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){w.k.get(this._editor)?.showMessage((0,R.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof l.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,s,n){const r=this._editor;if(!r.hasModel())return;const c=new S.gI(r,3,void 0),l=(0,o.SS)((async r=>{const d=this._editor;if(!d.hasModel())return;const u=d.getModel(),g=new h.Cm,p=g.add(new a.Qi(r));g.add(c.token.onCancellationRequested((()=>p.cancel())));const m=p.token;try{if(await this.mergeInDataFromCopy(i,s,m),m.isCancellationRequested)return;const r=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!r.length||1===r.length&&r[0]instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);const a={triggerKind:v.FX.Automatic},c=await this.getPasteEdits(r,i,u,t,a,m);if(g.add(c),m.isCancellationRequested)return;if(1===c.edits.length&&c.edits[0].provider instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);if(c.edits.length){const e="afterPaste"===d.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:c.edits},e,((e,i)=>new Promise(((s,n)=>{(async()=>{try{const r=e.provider.resolveDocumentPasteEdit?.(e,i),a=new o.Zv,c=r&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([a.p,r]),{cancel:()=>(a.cancel(),n(new I.AL))},0);return c&&(e.additionalEdit=c.additionalEdit),s(e)}catch(r){return n(r)}})()}))),m)}await this.applyDefaultPasteHandler(i,s,m,n)}finally{g.dispose(),this._currentPasteOperation===l&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),l,{cancel:async()=>{try{if(l.cancel(),c.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,s,c.token,n)}finally{c.dispose()}}}).then((()=>{c.dispose()})),this._currentPasteOperation=l}showPasteAsPick(e,t,i,s,n){const r=(0,o.SS)((async o=>{const a=this._editor;if(!a.hasModel())return;const c=a.getModel(),d=new h.Cm,u=d.add(new S.gI(a,3,void 0,o));try{if(await this.mergeInDataFromCopy(s,n,u.token),u.token.isCancellationRequested)return;let r=t.filter((t=>this.isSupportedPasteProvider(t,s,e)));e&&(r=r.filter((t=>this.providerMatchesPreference(t,e))));const o={triggerKind:v.FX.PasteAs,only:e&&e instanceof l.k?e:void 0};let a,h=d.add(await this.getPasteEdits(r,s,c,i,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(h={edits:h.edits.filter((t=>e instanceof l.k?e.contains(t.kind):e.providerId===t.provider.id)),dispose:h.dispose}),!h.edits.length)return void(o.only&&this.showPasteAsNoEditMessage(i,o.only));if(e)a=h.edits.at(0);else{const e=await this._quickInputService.pick(h.edits.map((e=>({label:e.title,description:e.kind?.value,edit:e}))),{placeHolder:(0,R.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=e?.edit}if(!a)return;const g=(0,b.v)(c.uri,i,a);await this._bulkEditService.apply(g,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,R.kg)("pasteAsProgress","Running paste handlers")},(()=>r))}setCopyMetadata(e,t){e.setData(F,JSON.stringify(t))}fetchCopyMetadata(e){if(!e.clipboardData)return;const t=e.clipboardData.getData(F);if(t)try{return JSON.parse(t)}catch{return}const[i,s]=p.Mz.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:s.multicursorText??null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){if(t?.id&&s._currentCopyOperation?.handle===t.id){const t=await s._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,s]of t)e.replace(i,s)}if(!e.has(d.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(d.K.uriList,(0,c.gf)(c.jt.create(t)))}}async getPasteEdits(e,t,i,s,n,a){const c=new h.Cm,l=await(0,o.PK)(Promise.all(e.map((async e=>{try{const r=await(e.provideDocumentPasteEdits?.(i,s,t,n,a));return r&&c.add(r),r?.edits?.map((t=>({...t,provider:e})))}catch(r){return void((0,I.MB)(r)||console.error(r))}}))),a),d=(0,r.Yc)(l??[]).flat().filter((e=>!n.only||n.only.contains(e.kind)));return{edits:(0,b.H)(d),dispose:()=>c.dispose()}}async applyDefaultPasteHandler(e,t,i,s){const n=e.get(d.K.text)??e.get("text"),r=await(n?.asString())??"";if(i.isCancellationRequested)return;const o={clipboardEvent:s,text:r,pasteOnNewLine:t?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:t?.defaultPastePayload.multicursorText??null,mode:null};this._editor.trigger("keyboard","paste",o)}isSupportedPasteProvider(e,t,i){return!!e.pasteMimeTypes?.some((e=>t.matches(e)))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};U=s=O([D(1,x._Y),D(2,f.nu),D(3,L.h),D(4,C.ILanguageFeaturesService),D(5,A.GK),D(6,k.G5)],U)},56245:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var s=i(41234);class n{get event(){return this.emitter.event}constructor(e,t,i){const n=e=>this.emitter.fire(e);this.emitter=new s.vl({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}},56687:(e,t,i)=>{"use strict";i.d(t,{G:()=>S});var s,n=i(8597),r=i(62890),o=i(36921),a=i(70125),c=i(64383),l=i(41234),h=i(5662),d=i(80537),u=i(85541),g=i(78209),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends h.jG{static{s=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,n,r,o,a,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=n,this.edits=r,this.onSelectNewEdit=o,this._contextMenuService=a,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register((0,h.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,h.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{n.containsPosition(e.position)||this.dispose()}))),this._register(l.Jh.runAndSubscribe(d.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=n.$(".post-edit-widget"),this.button=this._register(new r.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(n.ko(this.domNode,n.Bx.CLICK,(()=>this.showSelector())))}getId(){return s.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=n.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,o.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};b=s=C([E(7,m.Z),E(8,p.fN),E(9,_.b)],b);let S=class extends h.jG{constructor(e,t,i,s,n,r,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=s,this._instantiationService=n,this._bulkEditService=r,this._notificationService=o,this._currentWidget=this._register(new h.HE),this._register(l.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,s,n){const r=this._editor.getModel();if(!r||!e.length)return;const o=t.allEdits.at(t.activeEditIndex);if(!o)return;const l=async r=>{const o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:r,allEdits:t.allEdits},i,s,n))},h=(s,n)=>{(0,c.MB)(s)||(this._notificationService.error(n),i&&this.show(e[0],t,l))};let d;try{d=await s(o,n)}catch(C){return h(C,(0,g.kg)("resolveError","Error resolving edit '{0}':\n{1}",o.title,(0,a.r)(C)))}if(n.isCancellationRequested)return;const p=(0,u.v)(r.uri,e,d),m=e[0],f=r.deltaDecorations([],[{range:m,options:{description:"paste-line-suffix",stickiness:0}}]);let _,v;this._editor.focus();try{_=await this._bulkEditService.apply(p,{editor:this._editor,token:n}),v=r.getDecorationRange(f[0])}catch(C){return h(C,(0,g.kg)("applyError","Error applying edit '{0}':\n{1}",o.title,(0,a.r)(C)))}finally{r.deltaDecorations(f,[])}n.isCancellationRequested||i&&_.isApplied&&t.allEdits.length>1&&this.show(v??m,t,l)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(b,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};S=C([E(4,f._Y),E(5,d.nu),E(6,v.Ot)],S)},56691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{findSectionHeaders:()=>r});const s=new RegExp("\\bMARK:\\s*(.*)$","d"),n=/^-+|-+$/g;function r(e,t){let i=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const s=function(e,t){const i=[],s=e.getLineCount();for(let n=1;n<=s;n++){const s=e.getLineContent(n),r=s.match(t.foldingRules.markers.start);if(r){const e={startLineNumber:n,startColumn:r[0].length+1,endLineNumber:n,endColumn:s.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(s.substring(r[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);i=i.concat(s)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let s=1;s<=i;s++){o(e.getLineContent(s),s,t)}return t}(e);i=i.concat(t)}return i}function o(e,t,i){s.lastIndex=0;const n=s.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(n,""),hasSeparatorLine:t}}},56772:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a,xb:()=>u});var s=i(91508),n=i(99020),r=i(36677);class o{constructor(e,t,i,s,n,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=s,this.forwardRegex=n,this.reversedRegex=r,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let o=0;o<t;o++)i[o]=o;const s=(e,t)=>{const[i,s]=e,[n,r]=t;return i===n||i===r||s===n||s===r},n=(e,s)=>{const n=Math.min(e,s),r=Math.max(e,s);for(let o=0;o<t;o++)i[o]===r&&(i[o]=n)};for(let o=0;o<t;o++){const r=e[o];for(let a=o+1;a<t;a++)s(r,e[a])&&n(i[o],i[a])}const r=[];for(let o=0;o<t;o++){const s=[],n=[];for(let r=0;r<t;r++)if(i[r]===o){const[t,i]=e[r];s.push(t),n.push(i)}s.length>0&&r.push({open:s,close:n})}return r}(t);this.brackets=i.map(((t,s)=>new o(e,s,t.open,t.close,function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n)}(t.open,t.close,i,s),function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n.map(g))}(t.open,t.close,i,s)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const e of s.open)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of s.close)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,i,s){for(let n=0,r=t.length;n<r;n++){if(n===i)continue;const r=t[n];for(const t of r.open)t.indexOf(e)>=0&&s.push(t);for(const t of r.close)t.indexOf(e)>=0&&s.push(t)}}function l(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const s of e)i.has(s)||(t.push(s),i.add(s));return t}function d(e){const t=/^[\w ]+$/.test(e);return e=s.bm(e),t?`\\b${e}\\b`:e}function u(e,t){const i=`(${e.map(d).join(")|(")})`;return s.OS(i,!0,t)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let s=e.length-1;s>=0;s--)t[i++]=e.charCodeAt(s);return n.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=i.length-(n.index||0),a=n[0].length,c=s+o;return new r.Q(t,c-a+1,t,c+1)}static findPrevBracketInRange(e,t,i,s,n){const r=g(i).substring(i.length-n,i.length-s);return this._findPrevBracketInText(e,t,r,s)}static findNextBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=n.index||0,a=n[0].length;if(0===a)return null;const c=s+o;return new r.Q(t,c+1,t,c+1+a)}static findNextBracketInRange(e,t,i,s,n){const r=i.substring(s,n);return this.findNextBracketInText(e,t,r,s)}}},56800:(e,t,i)=>{"use strict";var s=i(8597),n=i(5662),r=i(31450),o=i(98067);class a extends n.jG{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(e){super(),this.editor=e,this.widget=null,o.un&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(92);!this.widget&&e?this.widget=new c(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class c extends n.jG{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(s.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(s.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return c.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,r.HW)(a.ID,a,3)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},56976:(e,t,i)=>{e.exports=i(34529)},57039:(e,t,i)=>{"use strict";i.d(t,{B2:()=>o,Ke:()=>r,hx:()=>s,mm:()=>n});class s{constructor(e,t,i,s){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=s,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class n{constructor(e,t,i,s,n,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=s,this.initialMousePosY=n,this.supportsMarkerHover=r,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}class r{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},57197:(e,t,i)=>{"use strict";var s=i(31450),n=i(78209);const r=Object.freeze({View:(0,n.aS)("view","View"),Help:(0,n.aS)("help","Help"),Test:(0,n.aS)("test","Test"),File:(0,n.aS)("file","File"),Preferences:(0,n.aS)("preferences","Preferences"),Developer:(0,n.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var o=i(27195),a=i(84001),c=i(32848),l=i(60002),h=i(5662),d=i(56942),u=i(8597),g=i(80789),p=i(25890),m=i(25689),f=i(92473),_=i(29163),v=i(83069),C=i(99020),E=i(25521),b=i(35600),S=i(46109);class y{constructor(e,t,i,s=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=s}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new y([],[],0)}}const w=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),R="data-sticky-line-index",L="data-sticky-is-line",T="data-sticky-is-folding-icon";class x extends h.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const s=this._isWidgetHeightZero(e),n=s?void 0:e,r=s?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(n,t,r),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,s=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===s?0:s}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const o of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(o);const s=this._editor.getLayoutInfo(),n=this._lineNumbers.slice(i);for(const[o,a]of n.entries()){const e=this._renderChildNode(o+i,a,t,s);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const r=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${r}px`,this._linesDomNodeScrollable.style.height=`${r}px`,this._rootDomNode.style.height=`${r}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+s.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(111)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,s){const n=this._editor._getViewModel();if(!n)return;const r=n.coordinatesConverter.convertModelPositionToViewPosition(new v.y(t,1)).lineNumber,o=n.getViewLineRenderingData(r),a=this._editor.getOption(68);let c;try{c=E.d.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(y){c=[]}const l=new b.zL(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,c,o.tabSize,o.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new C.fe(2e3),d=(0,b.UW)(l,h);let u;u=w?w.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(R,String(e)),g.setAttribute(L,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(R,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=s.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${s.lineNumbersWidth}px`,f.style.paddingLeft=`${s.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const S=new k(e,t,g,p,_,d.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(S)}_updateTopAndZIndexOfStickyLine(e){const t=e.index,i=e.lineDomNode,s=e.lineNumberDomNode,n=t===this._lineNumbers.length-1;i.style.zIndex=n?"0":"1",s.style.zIndex=n?"0":"1";const r=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,o=t*this._lineHeight+"px";return i.style.top=n?r:o,s.style.top=n?r:o,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(111);if(!e||"never"===i)return;const s=e.regions,n=s.findRange(t),r=s.getStartLineNumber(n);if(!(t===r))return;const o=s.isCollapsed(n),a=new A(o,r,s.getEndLineNumber(n),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(o||"always"===i)),a.domNode.setAttribute(T,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.rk)(t.characterMapping,e,0);return new v.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,R);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,L)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,T)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class k{constructor(e,t,i,s,n,r,o){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=s,this.foldingIcon=n,this.characterMapping=r,this.scrollWidth=o}}class A{constructor(e,t,i,s){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=s,this.domNode=document.createElement("div"),this.domNode.style.width=`${s}px`,this.domNode.style.height=`${s}px`,this.domNode.className=m.L.asClassName(e?S.k0:S.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var N=i(18447),I=i(90766),O=i(41234),D=i(17469),M=i(29999),P=i(44588),F=i(87784),U=i(76495),H=i(64383);class B{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class W{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class V{constructor(e,t,i,s){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=s}}var z,G,j=i(42522),K=i(63591),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(z||(z={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(G||(G={}));let $=class extends h.jG{constructor(e,t,i,s){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new I.ve(300)),this._updateOperation=this._register(new h.Cm),this._editor.getOption(116).defaultModel){case z.OUTLINE_MODEL:this._modelProviders.push(new X(this._editor,s));case z.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,s));case z.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:s}=t.computeStickyModel(e);this._modelPromise=s;const n=await i;if(this._modelPromise!==s)return null;switch(n){case G.CANCELED:return this._updateOperation.clear(),null;case G.VALID:return t.stickyModel}}return null})).catch((e=>((0,H.dz)(e),null)))}};$=Y([q(2,K._Y),q(3,d.ILanguageFeaturesService)],$);class Q extends h.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,G.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,I.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?G.CANCELED:(this._stickyModel=this.createStickyModel(e,t),G.VALID):this._invalid())).then(void 0,(e=>((0,H.dz)(e),G.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let X=class extends Q{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return M.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){const{stickyOutlineElement:i,providerID:s}=this._stickyModelFromOutlineModel(t,this._stickyModel?.outlineProviderId),n=this._editor.getModel();return new V(n.uri,n.getVersionId(),i,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(j.f.first(e.children.values())instanceof M.e0){const s=j.f.find(e.children.values(),(e=>e.id===t));if(s)i=s.children;else{let s,n="",r=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>r&&(s=i,r=e,n=i.id)}t=n,i=s.children}}else i=e.children;const s=[],n=Array.from(i.values()).sort(((e,t)=>{const i=new B(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),s=new B(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,s)}));for(const r of n)s.push(this._stickyModelFromOutlineElement(r,r.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new W(void 0,s,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const s=new B(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new W(s,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof M.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};X=Y([q(1,d.ILanguageFeaturesService)],X);class Z extends Q{constructor(e){super(e),this._foldingLimitReporter=new P.BP(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),s=this._editor.getModel();return new V(s.uri,s.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],s=new W(void 0,[],void 0);for(let n=0;n<t;n++){const t=e.getParentIndex(n);let r;r=-1!==t?i[t]:s;const o=new W(new B(e.getStartLineNumber(n),e.getEndLineNumber(n)+1),[],r);r.children.push(o),i.push(o)}return s}}let J=class extends Z{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new U.hW(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=Y([q(1,D.JZ)],J);let ee=class extends Z{constructor(e,t,i){super(e),this._languageFeaturesService=i;const s=P.WR.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());s.length>0&&(this.provider=this._register(new F.M(e.getModel(),s,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){return this.provider?.compute(e)??null}};ee=Y([q(2,d.ILanguageFeaturesService)],ee);var te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ne=class extends h.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new O.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.Cm),this._updateSoon=this._register(new I.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.s)((()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;const e=this._editor;e.hasModel()&&(this._stickyModelProvider=new $(e,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new N.Qi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,s,n){if(0===t.children.length)return;let r=n;const o=[];for(let l=0;l<t.children.length;l++){const e=t.children[l];e.range&&o.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(o,e.startLineNumber,((e,t)=>e-t))),c=this.updateIndex((0,p.El)(o,e.startLineNumber+s,((e,t)=>e-t)));for(let l=a;l<=c;l++){const o=t.children[l];if(!o)return;if(o.range){const t=o.range.startLineNumber,n=o.range.endLineNumber;e.startLineNumber<=n+1&&t-1<=e.endLineNumber&&t!==r&&(r=t,i.push(new se(t,n-1,s+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s,n)}}getCandidateStickyLinesIntersecting(e){if(!this._model?.element)return[];let t=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,t,0,-1);const i=this._editor._getViewModel()?.getHiddenAreas();if(i)for(const s of i)t=t.filter((e=>!(e.startLineNumber>=s.startLineNumber&&e.endLineNumber<=s.endLineNumber+1)));return t}};ne=te([ie(1,d.ILanguageFeaturesService),ie(2,D.JZ)],ne);var re,oe=i(47508),ae=i(37927),ce=i(36677),le=i(80538),he=i(60952),de=i(32500),ue=i(47358),ge=i(52903),pe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},me=function(e,t){return function(i,s){t(i,s,e)}};let fe=class extends h.jG{static{re=this}static{this.ID="store.contrib.stickyScrollController"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=s,this._contextKeyService=o,this._sessionStore=new h.Cm,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new x(this._editor),this._stickyLineCandidateProvider=new ne(this._editor,i,n),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=y.Empty,this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=l.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=l.R.stickyScrollVisible.bindTo(this._contextKeyService);const c=this._register(u.w5(a));this._register(c.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(c.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(re.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(ce.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.Cm),t=this._register(new ae.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new ce.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},s=this._stickyScrollWidget.getDomNode();this._register(u.b2(s,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(s,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(u.ko(s,u.Bx.MOUSE_LEAVE,(e=>{void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,s])=>{const n=i(t);if(!n||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:o}=n;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===o.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const a=new N.Qi;let c;e.add((0,h.s)((()=>a.dispose(!0)))),(0,le.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.y(r.startLineNumber,r.startColumn+1),!1,a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=o;c!==i?(e.clear(),c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"})))):c||(c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.P(e,t);this._contextMenuService.showContextMenu({menuId:o.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=t?.foldingIcon;if(!i)return;(0,ge.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const s=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(s),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(116);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=void 0,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){const t=this._editor.getModel();if(!t||t.isTooLargeForTokenization())return void this._resetState();const i=this._updateAndGetMinRebuildFromLine(e),s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===t.getVersionId())if(this._focused)if(-1===this._focusedStickyElementIndex)await this._updateState(i),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(await this._updateState(i),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else await this._updateState(i)}_updateAndGetMinRebuildFromLine(e){if(void 0!==e){const t=void 0!==this._minRebuildFromLine?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){this._minRebuildFromLine=void 0,this._foldingModel=await(P.WR.get(this._editor)?.getFoldingModel())??void 0,this._widgetState=this.findScrollWidgetState();const t=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(t),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=y.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),i=this._editor.getScrollTop();let s=0;const n=[],r=[],o=this._editor.getVisibleRanges();if(0!==o.length){const a=new B(o[0].startLineNumber,o[o.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const o of c){const a=o.startLineNumber,c=o.endLineNumber,l=o.nestingDepth;if(c-a>0){const o=(l-1)*e,h=l*e,d=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(c)-i,g=this._editor.getBottomForLineNumber(c)-i;if(o>u&&o<=g){n.push(a),r.push(c+1),s=g-h;break}if(h>d&&h<=g&&(n.push(a),r.push(c+1)),n.length===t)break}}}return this._endLineNumbers=r,new y(n,r,s,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe=re=pe([me(1,oe.Z),me(2,d.ILanguageFeaturesService),me(3,K._Y),me(4,D.JZ),me(5,de.ILanguageFeatureDebounceService),me(6,c.fN)],fe);class _e extends o.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,n.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,n.aS)("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:r.View,toggled:{condition:c.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,n.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:o.D8.CommandPalette},{id:o.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:o.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class Ce extends s.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,n.aS)("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:(0,n.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:c.M$.and(c.M$.has("config.editor.stickyScroll.enabled"),l.R.stickyScrollVisible),menu:[{id:o.D8.CommandPalette}]})}runEditorCommand(e,t){fe.get(t)?.focus()}}class Ee extends s.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,n.aS)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){fe.get(t)?.focusNext()}}class be extends s.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,n.aS)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){fe.get(t)?.focusPrevious()}}class Se extends s.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,n.aS)("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){fe.get(t)?.goToFocused()}}class ye extends s.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,n.aS)("selectEditor.title","Select Editor"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){fe.get(t)?.selectEditor()}}(0,s.HW)(fe.ID,fe,1),(0,o.ug)(_e),(0,o.ug)(Ce),(0,o.ug)(be),(0,o.ug)(Ee),(0,o.ug)(Se),(0,o.ug)(ye)},57233:(e,t,i)=>{e.exports=function(e){const t=i(94297);function s(e){return"yql_tagged"+t.WHITESPACE+"tagged"+t.WHITESPACE+"tag_"+e}function n(e,i,s){return"url"===e?t.normalizeUrl(i,s):"data:"+t.escape(e)+";base64,"+t.escape(i)}function r(e){return function(i,r){return function(e,i,r={}){const{asHTML:o}=r;function a(e,t){return'<img class="'+s("image")+'" src="'+e+'"'+(t?'" style="'+t+'"':"")+"/>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function o(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r;function a(e,t){return'<video class="'+s("video")+'" controls src="'+e+'"'+(t?' style="'+t+'"':"")+"></video>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function a(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r,a=s("audio"),c=n(i,e,r);return o?'<audio class="'+a+'" controls src="'+c+'"></audio>':t.escape(e)}(i.$value,e,r)}}const c={"image/svg":r("image/svg+xml"),"image/svg+xml":r("image/svg+xml"),"image/jpeg":r("image/jpeg"),"image/png":r("image/png"),"image/gif":r("image/gif"),"image/webp":r("image/webp"),imageurl:r("url"),"video/mp4":o("video/mp4"),"video/webm":o("video/webm"),videourl:o("url"),"audio/mpeg":a("audio/mpeg"),"audio/webm":a("audio/webm"),"audio/wav":a("audio/wav"),audiourl:a("url"),url:function(i,n,r){function o(e,i,n){return'<a class="'+s("url")+'" target="_blank" href="'+e+'"'+(n?' title="'+t.escape(n)+'"':"")+">"+i+"</a>"}if(n.asHTML){if("tag_value"===i.$type)return function(){const e=t.escape(i.$value.text||i.$value.href);return o(t.normalizeUrl(i.$value.href||"",n),e,i.$value.title)}();if("string"===typeof i.$value)return function(){const e=t.escape(i.$value);return o(t.normalizeUrl(i.$value,n),e,"")}()}return e(i,n,r)}};return function(t,i,s){return(c[t.$tag]||e)(t.$value,i,s)}}},57244:(e,t,i)=>{"use strict";var s=i(5662),n=i(91508),r=i(31450),o=i(7936),a=i(36677),c=i(60002),l=i(17469),h=i(23750),d=i(64395),u=i(78209),g=i(51467),p=i(82365),m=i(7085),f=i(93895),_=i(75326),v=i(27760);function C(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];const a=new v.no(e,r,t);for(s=Math.min(s,e.getLineCount());i<=s&&a.shouldIgnore(i);)i++;if(i>s-1)return[];const{tabSize:c,indentSize:l,insertSpaces:h}=e.getOptions(),d=(e,t)=>(t=t||1,o.Y.shiftIndent(e,e.length+t,c,l,h)),u=(e,t)=>(t=t||1,o.Y.unshiftIndent(e,e.length+t,c,l,h)),g=[],p=e.getLineContent(i);let C=n.UU(p),b=C;a.shouldIncrease(i)?(b=d(b),C=d(C)):a.shouldIndentNextLine(i)&&(b=d(b));for(let o=++i;o<=s;o++){if(E(e,o))continue;const t=e.getLineContent(o),i=n.UU(t),s=b;a.shouldDecrease(o,s)&&(b=u(b),C=u(C)),i!==b&&g.push(m.k.replaceMove(new _.L(o,1,o,i.length+1),(0,f.P)(b,l,h))),a.shouldIgnore(o)||(a.shouldIncrease(o,s)?(C=d(C),b=C):b=a.shouldIndentNextLine(o,s)?d(b):C)}return g}function E(e,t){if(!e.tokenization.isCheapToTokenize(t))return!1;return 2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var b=i(87469),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w extends r.ks{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:w.ID,label:u.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:c.R.writable,metadata:{description:u.aS("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new P(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}class R extends r.ks{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:R.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:c.R.writable,metadata:{description:u.aS("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new F(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}class L extends r.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),s=e.get(h.IModelService),n=t.getModel();if(!n)return;const r=s.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget),o=n.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize&&e===o.tabSize?u.kg("configuredTabSize","Configured Tab Size"):e===r.tabSize?u.kg("defaultTabSize","Default Tab Size"):e===o.tabSize?u.kg("currentTabSize","Current Tab Size"):void 0}))),c=Math.min(n.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[c]}).then((e=>{if(e&&n&&!n.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?n.updateOptions({tabSize:t}):n.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class T extends L{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:T.ID,label:u.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:u.aS("indentUsingTabsDescription","Use indentation with tabs.")}})}}class x extends L{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:x.ID,label:u.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:u.aS("indentUsingSpacesDescription","Use indentation with spaces.")}})}}class k extends L{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:k.ID,label:u.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:u.aS("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}class A extends r.ks{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:A.ID,label:u.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:u.aS("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(h.IModelService),s=t.getModel();if(!s)return;const n=i.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget);s.detectIndentation(n.insertSpaces,n.tabSize)}}class N extends r.ks{constructor(){super({id:"editor.action.reindentlines",label:u.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=C(s,i,1,s.getLineCount());n.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,n),t.pushUndoStop())}}class I extends r.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=t.getSelections();if(null===n)return;const r=[];for(const o of n){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;const n=C(s,i,e,t);r.push(...n)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class O{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const s of this._edits)t.addEditOperation(a.Q.lift(s.range),s.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let D=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new s.Cm,this.callOnModel=new s.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(this.rangeContainsOnlyWhitespaceCharacters(i,e))return;if(function(e,t){const i=t=>2===(0,b.T)(e,t);return i(t.getStartPosition())||i(t.getEndPosition())}(i,e))return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const s=this.editor.getOption(12),{tabSize:r,indentSize:c,insertSpaces:l}=i.getOptions(),h=[],u={shiftIndent:e=>o.Y.shiftIndent(e,e.length+1,r,c,l),unshiftIndent:e=>o.Y.unshiftIndent(e,e.length+1,r,c,l)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(s,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=n.UU(m),s=d.c(e,r);if(s!==d.c(t,r)){const e=d.k(s,r,l);h.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substring(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},o=(0,p.$f)(s,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==o){const t=d.c(o,r),s=d.c(n.UU(i.getLineContent(g+1)),r);if(t!==s){const o=t-s;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),s=n.UU(e),c=d.c(s,r)+o,u=d.k(c,r,l);u!==s&&h.push({range:new a.Q(t,1,t,s.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new O(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){const i=e=>0===e.trim().length;let s=!0;if(t.startLineNumber===t.endLineNumber){s=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1))}else for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const r=e.getLineContent(n);if(n===t.startLineNumber){s=i(r.substring(t.startColumn-1))}else if(n===t.endLineNumber){s=i(r.substring(0,t.endColumn-1))}else s=0===e.getLineFirstNonWhitespaceColumn(n);if(!s)break}return s}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const s=e.tokenization.getLineTokens(t);if(s.getCount()>0){const e=s.findTokenIndexAtOffset(i);if(e>=0&&1===s.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let n="";for(let o=0;o<i;o++)n+=" ";const r=new RegExp(n,"gi");for(let o=1,c=e.getLineCount();o<=c;o++){let i=e.getLineFirstNonWhitespaceColumn(o);if(0===i&&(i=e.getLineMaxColumn(o)),1===i)continue;const c=new a.Q(o,1,o,i),l=e.getValueInRange(c),h=s?l.replace(/\t/gi,n):l.replace(r,"\t");t.addEditOperation(c,h)}}D=S([y(1,l.JZ)],D);class P{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class F{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,r.HW)(D.ID,D,2),(0,r.Fl)(w),(0,r.Fl)(R),(0,r.Fl)(T),(0,r.Fl)(x),(0,r.Fl)(k),(0,r.Fl)(A),(0,r.Fl)(N),(0,r.Fl)(I)},57286:(e,t,i)=>{"use strict";i.d(t,{eH:()=>O,fm:()=>U,xJ:()=>M});var s=i(8597),n=i(25890),r=i(18447),o=i(16980),a=i(5662),c=i(20492),l=i(87758),h=i(36677),d=i(10154),u=i(57039),g=i(78209),p=i(84001),m=i(49099),f=i(56942),_=i(62083),v=i(61394),C=i(10350),E=i(25689),b=i(64383),S=i(98031),y=i(52776),w=i(67220),R=i(90766),L=i(7142),T=i(50091),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};const A=s.$,N=(0,v.pU)("hover-increase-verbosity",C.W.add,g.kg("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),I=(0,v.pU)("hover-decrease-verbosity",C.W.remove,g.kg("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class O{constructor(e,t,i,s,n,r=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=s,this.ordinal=n,this.source=r}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class D{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){switch(e){case _.M$.Increase:return this.hover.canIncreaseVerbosity??!1;case _.M$.Decrease:return this.hover.canDecreaseVerbosity??!1}}}let M=class{constructor(e,t,i,s,n,r,o,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=s,this._languageFeaturesService=n,this._keybindingService=r,this._hoverService=o,this._commandService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new O(this,e.range,[(new o.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,r=i.getLineMaxColumn(s),a=[];let c=1e3;const l=i.getLineLength(s),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(118),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let m=!1;u>=0&&l>u&&e.range.startColumn>=u&&(m=!0,a.push(new O(this,e.range,[{value:g.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,c++))),!m&&"number"===typeof p&&l>=p&&a.push(new O(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,c++));let f=!1;for(const g of t){const t=g.range.startLineNumber===s?g.range.startColumn:1,i=g.range.endLineNumber===s?g.range.endColumn:r,l=g.options.hoverMessage;if(!l||(0,o.it)(l))continue;g.options.beforeContentClassName&&(f=!0);const d=new h.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new O(this,d,(0,n._j)(l),f,c++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return R.AE.EMPTY;const s=this._editor.getModel(),n=this._languageFeaturesService.hoverProvider;if(!n.has(s))return R.AE.EMPTY;return this._getMarkdownHovers(n,s,e,i)}_getMarkdownHovers(e,t,i,s){const n=i.range.getStartPosition();return(0,L.U)(e,t,n,s).filter((e=>!(0,o.it)(e.hover.contents))).map((e=>{const t=e.hover.range?h.Q.lift(e.hover.range):i.range,s=new D(e.hover,e.provider,n);return new O(this,t,e.hover.contents,!1,e.ordinal,s)}))}renderHoverParts(e,t){return this._renderedHoverParts=new F(t,e.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateMarkdownHoverVerbosityLevel(e,t,i){return Promise.resolve(this._renderedHoverParts?.updateMarkdownHoverPartVerbosityLevel(e,t,i))}};M=x([k(1,d.L),k(2,m.C),k(3,p.pG),k(4,f.ILanguageFeaturesService),k(5,S.b),k(6,w.TN),k(7,T.d)],M);class P{constructor(e,t,i){this.hoverPart=e,this.hoverElement=t,this.disposables=i}dispose(){this.disposables.dispose()}}class F{constructor(e,t,i,s,n,r,o,c,l,h,d){this._hoverParticipant=i,this._editor=s,this._languageService=n,this._openerService=r,this._commandService=o,this._keybindingService=c,this._hoverService=l,this._configurationService=h,this._onFinishedRendering=d,this._ongoingHoverOperations=new Map,this._disposables=new a.Cm,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add((0,a.s)((()=>{this.renderedHoverParts.forEach((e=>{e.dispose()})),this._ongoingHoverOperations.forEach((e=>{e.tokenSource.dispose(!0)}))})))}_renderHoverParts(e,t,i){return e.sort((0,n.VE)((e=>e.ordinal),n.U9)),e.map((e=>{const s=this._renderHoverPart(e,i);return t.appendChild(s.hoverElement),s}))}_renderHoverPart(e,t){const i=this._renderMarkdownHover(e,t),s=i.hoverElement,n=e.source,r=new a.Cm;if(r.add(i),!n)return new P(e,s,r);const o=n.supportsVerbosityAction(_.M$.Increase),c=n.supportsVerbosityAction(_.M$.Decrease);if(!o&&!c)return new P(e,s,r);const l=A("div.verbosity-actions");return s.prepend(l),r.add(this._renderHoverExpansionAction(l,_.M$.Increase,o)),r.add(this._renderHoverExpansionAction(l,_.M$.Decrease,c)),new P(e,s,r)}_renderMarkdownHover(e,t){return H(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,i){const n=new a.Cm,r=t===_.M$.Increase,o=s.BC(e,A(E.L.asCSSSelector(r?N:I)));o.tabIndex=0;const c=new w.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupManagedHover(c,o,function(e,t){switch(t){case _.M$.Increase:{const t=e.lookupKeybinding(l.jq);return t?g.kg("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):g.kg("increaseVerbosity","Increase Hover Verbosity")}case _.M$.Decrease:{const t=e.lookupKeybinding(l.Zp);return t?g.kg("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):g.kg("decreaseVerbosity","Decrease Hover Verbosity")}}}(this._keybindingService,t))),!i)return o.classList.add("disabled"),n;o.classList.add("enabled");const h=()=>this._commandService.executeCommand(t===_.M$.Increase?l.jq:l.Zp);return n.add(new y.vV(o,h)),n.add(new y.M4(o,h,[3,10])),n}async updateMarkdownHoverPartVerbosityLevel(e,t,i=!0){const s=this._editor.getModel();if(!s)return;const n=this._getRenderedHoverPartAtIndex(t),r=n?.hoverPart.source;if(!n||!r?.supportsVerbosityAction(e))return;const o=await this._fetchHover(r,s,e);if(!o)return;const a=new D(o,r.hoverProvider,r.hoverPosition),c=n.hoverPart,l=new O(this._hoverParticipant,c.range,o.contents,c.isBeforeContent,c.ordinal,a),h=this._renderHoverPart(l,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,h,l),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:l,hoverElement:h.hoverElement}}async _fetchHover(e,t,i){let s=i===_.M$.Increase?1:-1;const n=e.hoverProvider,o=this._ongoingHoverOperations.get(n);o&&(o.tokenSource.cancel(),s+=o.verbosityDelta);const a=new r.Qi;this._ongoingHoverOperations.set(n,{verbosityDelta:s,tokenSource:a});const c={verbosityRequest:{verbosityDelta:s,previousHover:e.hover}};let l;try{l=await Promise.resolve(n.provideHover(t,e.hoverPosition,a.token,c))}catch(h){(0,b.M_)(h)}return a.dispose(),this._ongoingHoverOperations.delete(n),l}_replaceRenderedHoverPartAtIndex(e,t,i){if(e>=this.renderedHoverParts.length||e<0)return;const s=this.renderedHoverParts[e],n=s.hoverElement,r=t.hoverElement,o=Array.from(r.children);n.replaceChildren(...o);const a=new P(i,n,t.disposables);n.focus(),s.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}function U(e,t,i,s,r){t.sort((0,n.VE)((e=>e.ordinal),n.U9));const o=[];for(const n of t)o.push(H(i,n,s,r,e.onContentsChanged));return new u.Ke(o)}function H(e,t,i,n,r){const l=new a.Cm,h=A("div.hover-row"),d=A("div.hover-row-contents");h.appendChild(d);const u=t.contents;for(const a of u){if((0,o.it)(a))continue;const t=A("div.markdown-hover"),h=s.BC(t,A("div.hover-contents")),u=l.add(new c.T({editor:e},i,n));l.add(u.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",r()})));const g=l.add(u.render(a));h.appendChild(g.element),d.appendChild(t)}return{hoverPart:t,hoverElement:h,dispose(){l.dispose()}}}},57377:(e,t,i)=>{"use strict";var s=i(31450),n=i(80301),r=i(23646),o=i(84001),a=i(32848),c=i(63591),l=i(58591),h=i(9711),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends r.X{constructor(e,t,i,s,n,r,o){super(!0,e,t,i,s,n,r,o)}};g=d([u(1,a.fN),u(2,n.T),u(3,l.Ot),u(4,c._Y),u(5,h.CS),u(6,o.pG)],g),(0,s.HW)(r.X.ID,g,4)},57439:(e,t,i)=>{"use strict";i.d(t,{u:()=>w});var s=i(59284),n=i(96873),r=i(98192);const o=(0,r.om)("definition-list");const a=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>a(e)));function l(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function h({copyText:e,content:t,copyPosition:i}){const r="inside"===i,a=null!==t&&void 0!==t?t:"\u2014";return e?s.createElement("div",{className:o("copy-container",{"icon-inside":r})},s.createElement("span",null,a),s.createElement(n.b,{size:"s",text:e,className:o("copy-button"),view:r?"raised":"flat-secondary"})):a}var d=i(98089);function u({label:e}){return s.createElement("div",{className:o("group-title")},s.createElement(d.E,{variant:"subheader-1",color:"complementary"},e))}var g=i(6170),p=i(72837);const m=JSON.parse('{"label_note":"Note"}'),f=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),_=(0,p.N)({en:m,ru:f},`${r.CU}definition-list`);var v=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function C({note:e}){if(!e)return null;const t=o("item-note-tooltip");if("string"===typeof e)return s.createElement(g.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":_("label_note")}});if("object"===typeof e){const{buttonProps:i}=e,n=v(e,["buttonProps"]);return s.createElement(g.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":_("label_note")},i)},n))}return null}function E({note:e,name:t,nameTitle:i,multilineName:n,direction:r}){const a=s.createElement(s.Fragment,null,"\xa0",s.createElement(C,{note:e}));return s.createElement(s.Fragment,null,s.createElement("div",{className:o("term-wrapper")},s.createElement("span",{title:l(i,t)},t),n&&a),!n&&a,"horizontal"===r&&s.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}var b=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function S({items:e,responsive:t,direction:i="horizontal",nameMaxWidth:n,contentMaxWidth:r="auto",className:a,itemClassName:c,copyPosition:d="outside",qa:u}){const g=n?{maxWidth:n,width:n}:{},p="number"===typeof r?{width:r,maxWidth:r}:{},m=s.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return s.createElement("div",{className:o({responsive:t,vertical:"vertical"===i},a),"data-qa":u},s.createElement("dl",{className:o("list")},m.map((e=>{const{name:t,key:n,content:r,contentTitle:a,nameTitle:u,copyText:m,note:f,multilineName:_}=e;return s.createElement("div",{key:n,className:o("item",c)},s.createElement("dt",{className:o("term-container",{multiline:_}),style:g},s.createElement(E,{direction:i,name:t,nameTitle:u,note:f,multilineName:_})),s.createElement("dd",{className:o("definition"),title:l(a,r),style:Object.assign(Object.assign({},p),{lineBreak:"string"===typeof r&&(v=20,function(e){return e.split(/\s+/).some((e=>e.length>v))})(r)?"anywhere":void 0})},s.createElement(h,{copyPosition:d,copyText:m,content:r})));var v}))))}function y(e){var{items:t,className:i,itemClassName:n}=e,r=b(e,["items","className","itemClassName"]);const a=s.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return s.createElement("div",{className:o({vertical:"vertical"===r.direction},i)},a.map((e=>{const{key:t,label:i}=e;return s.createElement(s.Fragment,{key:t},i&&s.createElement(u,{label:i}),e.items&&s.createElement(S,Object.assign({},r,{className:o({margin:!i}),items:e.items,itemClassName:o("item",{grouped:Boolean(i)},n)})))})))}function w(e){var{items:t}=e,i=b(e,["items"]);if(c(t))return s.createElement(S,Object.assign({},i,{items:t}));const n=function(e){const t=[];let i=[];for(const s of e)a(s)?(i.length&&(t.push({items:i,label:null}),i=[]),t.push(s)):i.push(s);return i.length&&(t.push({items:i,label:null}),i=[]),t}(t);return s.createElement(y,Object.assign({},i,{items:n}))}},57629:(e,t,i)=>{"use strict";i.d(t,{oq:()=>I,rr:()=>O,rN:()=>F,Ot:()=>A,$u:()=>k});var s=i(8597),n=i(72962),r=i(5646),o=i(89506),a=i(36921),c=i(83619),l=i(5662),h=i(98067),d=i(78209),u=i(27195),g=i(73983),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=i(9711),E=i(47612),b=i(25689),S=i(86723),y=i(631),w=i(66261),R=i(19070),L=i(253),T=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,s){t(i,s,e)}};function k(e,t,i,n){let r,o,a;if(Array.isArray(e))a=e,r=t,o=i;else{const s=t;a=e.getActions(s),r=i,o=n}const c=s.Di.getInstance();N(a,r,c.keyStatus.altKey||(h.uF||h.j9)&&c.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function A(e,t,i,s,n,r){let o,a,c,l,h;if(Array.isArray(e))h=e,o=t,a=i,c=s,l=n;else{const d=t;h=e.getActions(d),o=i,a=s,c=n,l=r}N(h,o,!1,"string"===typeof a?e=>e===a:a,c,l)}function N(e,t,i,s=e=>"navigation"===e,n=()=>!1,r=!1){let o,c;Array.isArray(t)?(o=t,c=t):(o=t.primary,c=t.secondary);const l=new Set;for(const[h,d]of e){let e;s(h)?(e=o,e.length>0&&r&&e.push(new a.wv)):(e=c,e.length>0&&e.push(new a.wv));for(let t of d){i&&(t=t instanceof u.Xe&&t.alt?t.alt:t);const s=e.push(t);t instanceof a.YH&&l.add({group:h,action:t,index:s-1})}}for(const{group:a,action:h,index:d}of l){const e=s(a)?o:c,t=h.actions;n(h,a,e.length)&&e.splice(d,1,...t)}}let I=class extends r.Z4{constructor(e,t,i,n,r,o,a,c){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:t?.draggable,keybinding:t?.keybinding,hoverDelegate:t?.hoverDelegate}),this._options=t,this._keybindingService=i,this._notificationService=n,this._contextKeyService=r,this._themeService=o,this._contextMenuService=a,this._accessibilityService=c,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new l.HE),this._altKey=s.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{const e=!!this._menuItemAction.alt?.enabled&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,s.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,s.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let s=t?(0,d.kg)("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt?.enabled){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,d.kg)("titleAndKb","{0} ({1})",e,i):e;s=(0,d.kg)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,c.Of.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&(0,g.N)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(n)if(b.L.isThemeIcon(n)){const e=b.L.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=(0,l.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(n.dark):(0,s.Tf)(n.light),i.classList.add("icon"),this._itemClassDispose.value=(0,l.qE)((0,l.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=T([x(2,_.b),x(3,v.Ot),x(4,p.fN),x(5,E.Gy),x(6,m.Z),x(7,L.j)],I);class O extends I{render(e){this.options.label=!0,this.options.icon=!1,super.render(e),e.classList.add("text-only"),e.classList.toggle("use-comma",this._options?.useComma??!1)}updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=O._symbolPrintEnter(e);this._options?.conversational?this.label.textContent=(0,d.kg)({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,t):this.label.textContent=(0,d.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,t)}}static _symbolPrintEnter(e){return e.getLabel()?.replace(/\benter\b/gi,"\u23ce").replace(/\bEscape\b/gi,"Esc")}}let D=class extends o.d{constructor(e,t,i,s,n){const r={...t,menuAsChild:t?.menuAsChild??!1,classNames:t?.classNames??(b.L.isThemeIcon(e.item.icon)?b.L.asClassName(e.item.icon):void 0),keybindingProvider:t?.keybindingProvider??(e=>i.lookupKeybinding(e.id))};super(e,{getActions:()=>e.actions},s,r),this._keybindingService=i,this._contextMenuService=s,this._themeService=n}render(e){super.render(e),(0,y.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!b.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(i.dark):(0,s.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};D=T([x(2,_.b),x(3,m.Z),x(4,E.Gy)],D);let M=class extends r.EH{constructor(e,t,i,s,n,r,c,l){let h;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=r,this._instaService=c,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const d=t?.persistLastActionId?l.get(this._storageKey,1):void 0;d&&(h=e.actions.find((e=>d===e.id))),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,h,{keybinding:this._getDefaultActionKeybindingLabel(h)});const g={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:t?.menuAsChild??!0,classNames:t?.classNames??["codicon","codicon-chevron-down"],actionRunner:t?.actionRunner??new a.LN};this._dropdown=new o.d(e,e.actions,this._contextMenuService,g),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.Xe&&this.update(e.action)})))}update(e){this._options?.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,s.Hs)(this._container,(0,s.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){let t;if(this._options?.renderKeybindingWithDefaultActionLabel){const i=this._keybindingService.lookupKeybinding(e.id);i&&(t=`(${i.getLabel()})`)}return t}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,s.$)(".action-container");this._defaultAction.render((0,s.BC)(this._container,t)),this._register((0,s.ko)(t,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,s.$)(".dropdown-action-container");this._dropdown.render((0,s.BC)(this._container,i)),this._register((0,s.ko)(i,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),this._defaultAction.element?.focus(),t.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};M=T([x(2,_.b),x(3,v.Ot),x(4,m.Z),x(5,u.ez),x(6,f._Y),x(7,C.CS)],M);let P=class extends r.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,R.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,w.GuP)(w.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function F(e,t,i){return t instanceof u.Xe?e.createInstance(I,t,i):t instanceof u.nI?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(M,t,{...i,persistLastActionId:!0}):e.createInstance(D,t,i):void 0}P=T([x(1,m.l)],P)},57664:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(1414).then(i.bind(i,51414))})},57680:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(2726).then(i.bind(i,2726))})},58145:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002);var r=i(5662),o=i(31308),a=i(7085),c=i(83069),l=i(36677),h=i(10154),d=i(16223),u=i(25521),g=i(73401),p=i(10691),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};const _="inline-edit";let v=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,o.FY)(this,!1),this.currentTextModel=(0,o.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,o.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;let s=this.model.range?.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const n=(!s||s.startLineNumber===s.endLineNumber)&&1===i.parts.length&&1===i.parts[0].lines.length,r=1===i.parts.length&&i.parts[0].lines.every((e=>0===e.length)),o=[],a=[];function c(e,t){if(a.length>0){const i=a[a.length-1];t&&i.decorations.push(new u.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)a.push({content:i,decorations:t?[new u.d(1,i.length+1,t,0)]:[]})}const l=t.getLineContent(i.lineNumber);let h,d=0;if(!r&&(n||!s)){for(const e of i.parts){let t=e.lines;s&&!n&&(c(t,_),t=[]),void 0===h?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):c([l.substring(d,e.column-1)],void 0),t.length>0&&(c(t,_),void 0===h&&e.column<=l.length&&(h=e.column)),d=e.column-1}void 0!==h&&c([l.substring(d)],void 0)}const p=void 0!==h?new g.GM(h,l.length+1):void 0,m=n||!s?i.lineNumber:s.endLineNumber-1;return{inlineTexts:o,additionalLines:a,hiddenRange:p,lineNumber:m,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t,range:s,isSingleLine:n,isPureRemove:r}})),this.decorations=(0,o.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(!t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let s=0;s<i;s++){const i=t.range.startLineNumber+s,n=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),r=t.targetTextModel.getLineLastNonWhitespaceColumn(i),o=new l.Q(i,n,i,r);e.push(o)}}for(const t of e)i.push({range:t,options:p.Zb})}if(t.range&&!t.isSingleLine&&t.isPureRemove){const e=new l.Q(t.range.startLineNumber,1,t.range.endLineNumber-1,1);i.push({range:e,options:p.Ob})}for(const s of t.inlineTexts)i.push({range:l.Q.fromPositions(new c.y(t.lineNumber,s.column)),options:{description:_,after:{content:s.text,inlineClassName:s.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:d.VW.Left},showIfCollapsed:!0}});return i})),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,g.pY)(this.editor,this.decorations))}};v=m([f(2,h.L)],v);var C,E=i(32848),b=i(63591),S=i(62083),y=i(56942),w=i(18447),R=i(92674),L=i(50091),T=i(8597),x=i(47625),k=i(36921),A=i(25890),N=i(98067),I=i(57629),O=i(65644),D=i(27195),M=i(47508),P=i(98031),F=i(90651),U=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},H=function(e,t){return function(i,s){t(i,s,e)}};let B=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,o.un)(this,(e=>{const t=this.model.read(e)?.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new c.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,o.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(W,this.editor,!0,this.position));e.addContentWidget(s),i.add((0,r.s)((()=>e.removeContentWidget(s))))})))}};B=U([H(2,b._Y)],B);let W=class extends r.jG{static{C=this}static{this._dropDownVisible=!1}static{this.id=0}constructor(e,t,i,s,n,r){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=n,this._menuService=r,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,T.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,T.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(D.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(s.createInstance(z,this.nodes.toolBar,this.editor,D.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof D.Xe)return s.createInstance(V,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,o.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,o.fm)((e=>{const t=[];for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof D.Xe&&t.push(e);t.length>0&&t.unshift(new k.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};W=C=U([H(3,b._Y),H(4,E.fN),H(5,D.ez)],W);class V extends I.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,T.h)("div.keybinding").root;this._register(new x.x(t,N.OS,{disableTitle:!0,...x.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let z=class extends O.p{constructor(e,t,i,s,n,r,o,a,c,l){super(e,{resetMenu:i,...s},n,r,o,a,c,l),this.editor=t,this.menuId=i,this.options2=s,this.menuService=n,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,I.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setAdditionalSecondaryActions(e){(0,A.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};z=U([H(4,D.ez),H(5,E.fN),H(6,M.Z),H(7,P.b),H(8,L.d),H(9,F.k)],z);var G,j,K=i(84001),Y=i(64383),q=i(87958),$=i(79400),Q=i(38844),X=i(29163),Z=i(94746),J=i(83941),ee=i(87289),te=i(23750),ie=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},se=function(e,t){return function(i,s){t(i,s,e)}};function ne(e){const t=e[0].match(/^\s*/)?.[0]??"",i=t.length;return{text:e.map((e=>e.replace(new RegExp("^"+t),""))),shift:i}}let re=class extends r.jG{static{G=this}static{this._modelId=0}static _createUniqueUri(){return $.r.from({scheme:"inline-edit-widget",path:(new Date).toString()+String(G._modelId++)})}constructor(e,t,i,s,n){super(),this._editor=e,this._model=t,this._instantiationService=i,this._diffProviderFactoryService=s,this._modelService=n,this._position=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t||0===t.text.length)return null;if(t.range.startLineNumber===t.range.endLineNumber&&(t.range.startColumn!==t.range.endColumn||1!==t.range.startColumn))return null;const i=this._editor.getModel();if(!i)return null;const s=Array.from(function*(e,t,i=1){void 0===t&&([t,e]=[e,0]);for(let s=e;s<t;s+=i)yield s}(t.range.startLineNumber,t.range.endLineNumber+1)),n=s.map((e=>i.getLineLastNonWhitespaceColumn(e))),r=Math.max(...n),o=s[n.indexOf(r)],a=new c.y(o,r);return{top:t.range.startLineNumber,left:a}})),this._text=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return{text:"",shift:0};const i=ne(t.text.split("\n"));return{text:i.text.join("\n"),shift:i.shift}})),this._originalModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._diff=(0,o.un)(this,(e=>this._diffPromise.read(e)?.promiseResult.read(e)?.data)),this._diffPromise=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return;const i=this._editor.getModel();if(!i)return;const s=ne(i.getValueInRange(t.range).split("\n")).text.join("\n"),n=ne(t.text.split("\n")).text.join("\n");this._originalModel.get().setValue(s),this._modifiedModel.get().setValue(n);const r=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return o.BK.fromFn((async()=>{const e=await r.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},w.XO.None);if(!e.identical)return e.changes}))})),this._register((0,o.yC)(((t,i)=>{if(!this._model.read(t))return;if(null===this._position.get())return;const s=i.add(this._instantiationService.createInstance(oe,this._editor,this._position,this._text.map((e=>e.text)),this._text.map((e=>e.shift)),this._diff));e.addOverlayWidget(s),i.add((0,r.s)((()=>e.removeOverlayWidget(s))))})))}};re=G=ie([se(2,b._Y),se(3,Z.Hg),se(4,te.IModelService)],re);let oe=class extends r.jG{static{j=this}static{this.id=0}constructor(e,t,i,s,n,r){super(),this._editor=e,this._position=t,this._text=i,this._shift=s,this._diff=n,this._instantiationService=r,this.id="InlineEditSideBySideContentWidget"+j.id++,this.allowEditorOverflow=!1,this._nodes=(0,T.$)("div.inlineEditSideBySide",void 0),this._scrollChanged=(0,o.yQ)("editor.onDidScrollChange",this._editor.onDidScrollChange),this._previewEditor=this._register(this._instantiationService.createInstance(X.t,this._nodes,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},readOnly:!0,wordWrap:"off",wordWrapOverride1:"off",wordWrapOverride2:"off",wrappingIndent:"none",wrappingStrategy:void 0},{contributions:[],isSimpleWidget:!0},this._editor)),this._previewEditorObs=(0,Q.Ud)(this._previewEditor),this._editorObs=(0,Q.Ud)(this._editor),this._previewTextModel=this._register(this._instantiationService.createInstance(ee.Bz,"",this._editor.getModel()?.getLanguageId()??J.vH,ee.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,o.un)((e=>{const t=this._text.read(e);t&&this._previewTextModel.setValue(t)})).recomputeInitiallyAndOnChange(this._store),this._decorations=(0,o.un)(this,(e=>{this._setText.read(e);const t=this._position.read(e);if(!t)return{org:[],mod:[]};const i=this._diff.read(e);if(!i)return{org:[],mod:[]};const s=[],n=[];if(1===i.length&&i[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return{org:[],mod:[]};const r=this._shift.get(),o=e=>new l.Q(e.startLineNumber+t.top-1,e.startColumn+r,e.endLineNumber+t.top-1,e.endColumn+r);for(const a of i)if(a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.Ob}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Kl}),a.modified.isEmpty||a.original.isEmpty)a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.KL}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Ou});else for(const e of a.innerChanges||[])a.original.contains(e.originalRange.startLineNumber)&&s.push({range:o(e.originalRange),options:e.originalRange.isEmpty()?p.wp:p.Zb}),a.modified.contains(e.modifiedRange.startLineNumber)&&n.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?p.GM:p.bk});return{org:s,mod:n}})),this._originalDecorations=(0,o.un)(this,(e=>this._decorations.read(e).org)),this._modifiedDecorations=(0,o.un)(this,(e=>this._decorations.read(e).mod)),this._previewEditor.setModel(this._previewTextModel),this._register(this._editorObs.setDecorations(this._originalDecorations)),this._register(this._previewEditorObs.setDecorations(this._modifiedDecorations)),this._register((0,o.fm)((e=>{const t=this._previewEditorObs.contentWidth.read(e),i=this._text.read(e).split("\n").length-1,s=this._editor.getOption(67)*i;t<=0||this._previewEditor.layout({height:s,width:t})}))),this._register((0,o.fm)((e=>{this._position.read(e),this._editor.layoutOverlayWidget(this)}))),this._register((0,o.fm)((e=>{this._scrollChanged.read(e);this._position.read(e)&&this._editor.layoutOverlayWidget(this)})))}getId(){return this.id}getDomNode(){return this._nodes}getPosition(){const e=this._position.get();if(!e)return null;const t=this._editor.getLayoutInfo(),i=this._editor.getScrolledVisiblePosition(new c.y(e.top,1));if(!i)return null;const s=i.top-1,n=this._editor.getOffsetForColumn(e.left.lineNumber,e.left.column);return{preference:{left:t.contentLeft+n+10,top:s}}}};oe=j=ie([se(5,b._Y)],oe);var ae,ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};let he=class extends r.jG{static{ae=this}static{this.ID="editor.contrib.inlineEditController"}static{this.inlineEditVisibleKey="inlineEditVisible"}static{this.inlineEditVisibleContext=new E.N1(this.inlineEditVisibleKey,!1)}static{this.cursorAtInlineEditKey="cursorAtInlineEdit"}static{this.cursorAtInlineEditContext=new E.N1(this.cursorAtInlineEditKey,!1)}static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,s,n,r,a,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=s,this._commandService=n,this._configurationService=r,this._diffProviderFactoryService=a,this._modelService=c,this._isVisibleContext=ae.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ae.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=(0,o.FY)(this,void 0),this._currentWidget=(0,q.a0)(this._currentEdit,(e=>{const t=this._currentEdit.read(e);if(!t)return;const i=t.range.endLineNumber,s=t.range.endColumn,n=!t.text.endsWith("\n")||t.range.startLineNumber===t.range.endLineNumber&&t.range.startColumn===t.range.endColumn?t.text:t.text.slice(0,-1),r=new R.xD(i,[new R.yP(s,n,!1)]),a=t.range.startLineNumber===t.range.endLineNumber&&1===r.parts.length&&1===r.parts[0].lines.length,c=""===t.text;if(!a&&!c)return;return this.instantiationService.createInstance(v,this.editor,{ghostText:(0,o.lk)(r),minReservedLineCount:(0,o.lk)(0),targetTextModel:(0,o.lk)(this.editor.getModel()??void 0),range:(0,o.lk)(t.range)})})),this._isAccepting=(0,o.FY)(this,!1),this._enabled=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily));const l=(0,o.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(l.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const h=(0,o.y0)(this,e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,o.fm)((e=>{if(!this._enabled.read(e))return;const t=h.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,o.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const s=e.getPosition();s&&this.checkCursorPosition(s)})));const d=(0,o.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,o.fm)((async t=>{this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(this._currentRequestCts?.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const u=(0,o.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(u.read(t),this.getInlineEdit(e,!0))})));const g=this._register((0,T.jh)());this._register((0,o.fm)((e=>{const t=this._fontFamily.read(e);g.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new B(this.editor,this._currentWidget,this.instantiationService)),this._register(new re(this.editor,this._currentEdit,this.instantiationService,this._diffProviderFactoryService,this._modelService))}checkCursorPosition(e){if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const t=this._currentEdit.get();t?this._isCursorAtInlineEditContext.set(l.Q.containsPosition(t.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const i=t.range.endLineNumber;if(t.range.endColumn!==(e.getModel()?.getLineLength(i)??0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const s=i.getVersionId(),n=this.languageFeaturesService.inlineEditProvider.all(i);if(0===n.length)return;const r=n[0];this._currentRequestCts=new w.Qi;const o=this._currentRequestCts.token,a=t?S.sm.Automatic:S.sm.Invoke;var c,l;if(t&&await(c=50,l=o,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),o.isCancellationRequested||i.isDisposed()||i.getVersionId()!==s)return;const h=await r.provideInlineEdit(i,{triggerKind:a},o);return h&&!o.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===s&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){this._isCursorAtInlineEditContext.set(!1),await this.clear();const i=await this.fetchInlineEdit(e,t);i&&this._currentEdit.set(i,void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){this._isAccepting.set(!0,void 0);const e=this._currentEdit.get();if(!e)return;let t=e.text;e.text.startsWith("\n")&&(t=e.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[a.k.replace(l.Q.lift(e.range),t)]),e.accepted&&await this._commandService.executeCommand(e.accepted.id,...e.accepted.arguments||[]).then(void 0,Y.M_),this.freeEdit(e),(0,o.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){this._jumpBackPosition=this.editor.getSelection()?.getStartPosition();const e=this._currentEdit.get();if(!e)return;const t=c.y.lift({lineNumber:e.range.startLineNumber,column:e.range.startColumn});this.editor.setPosition(t),this.editor.revealPositionInCenterIfOutsideViewport(t)}async clear(e=!0){const t=this._currentEdit.get();t&&t?.rejected&&e&&await this._commandService.executeCommand(t.rejected.id,...t.rejected.arguments||[]).then(void 0,Y.M_),t&&this.freeEdit(t),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}};he=ae=ce([le(1,b._Y),le(2,E.fN),le(3,y.ILanguageFeaturesService),le(4,L.d),le(5,K.pG),le(6,Z.Hg),le(7,te.IModelService)],he);class de extends s.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:E.M$.and(n.R.writable,he.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:E.M$.and(n.R.writable,he.inlineEditVisibleContext,he.cursorAtInlineEditContext)}],menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=he.get(t);await(i?.accept())}}class ue extends s.ks{constructor(){const e=E.M$.and(n.R.writable,E.M$.not(he.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=he.get(t);i?.trigger()}}class ge extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext,E.M$.not(he.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpToCurrent()}}class pe extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpBack()}}class me extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=he.get(t);await(i?.clear())}}(0,s.Fl)(de),(0,s.Fl)(me),(0,s.Fl)(ge),(0,s.Fl)(pe),(0,s.Fl)(ue),(0,s.HW)(he.ID,he,3)},58255:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let s=0;s<256;s++)i.push(s.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let s=0,n="";return n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n}}()},58272:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0",clipRule:"evenodd"}))},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>c,s0:()=>l});var s=i(91508),n=i(87469),r=i(62083),o=i(20788);const a={getInitialState:()=>o.r3,tokenizeEncoded:(e,t,i)=>(0,o.Lh)(0,i)};async function c(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const s=await r.dG.getOrCreate(i);return h(t,e.languageIdCodec,s||a)}function l(e,t,i,s,n,r,o){let a="<div>",c=s,l=0,h=!0;for(let d=0,u=t.getCount();d<u;d++){const u=t.getEndOffset(d);if(u<=s)continue;let g="";for(;c<u&&c<n;c++){const t=e.charCodeAt(c);switch(t){case 9:{let e=r-(c+l)%r;for(l+=e-1;e>0;)o&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:o&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(d,i)}">${g}</span>`,u>n||c>=n)break}return a+="</div>",a}function h(e,t,i){let r='<div class="monaco-tokenized-source">';const o=s.uz(e);let a=i.getInitialState();for(let c=0,l=o.length;c<l;c++){const e=o[c];c>0&&(r+="<br/>");const l=i.tokenizeEncoded(e,!0,a);n.f.convertToEndOffset(l.tokens,e.length);const h=new n.f(l.tokens,e,t).inflate();let d=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),n=h.getEndOffset(t);r+=`<span class="${i}">${s.ih(e.substring(d,n))}</span>`,d=n}a=l.endState}return r+="</div>",r}},58345:(e,t,i)=>{"use strict";i.d(t,{a:()=>s});class s{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},58466:(e,t,i)=>{"use strict";var s,n=i(87758),r=i(24939),o=i(31450),a=i(36677),c=i(60002),l=i(62427),h=i(77011),d=i(62083),u=i(78209);i(82320);!function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(s||(s={}));class g extends o.ks{constructor(){super({id:n.jA,label:u.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:u.aS("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[s.NoAutoFocus,s.FocusIfVisible,s.AutoFocusImmediately],enumDescriptions:[u.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),u.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),u.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:s.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,r.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=h.A.get(t);if(!n)return;const r=i?.focus;let o=s.FocusIfVisible;Object.values(s).includes(r)?o=r:"boolean"===typeof r&&r&&(o=s.AutoFocusImmediately);const c=e=>{const i=t.getPosition(),s=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==s.NoAutoFocus?n.focus():c(l):c(l||o===s.AutoFocusImmediately)}}class p extends o.ks{constructor(){super({id:n.dV,label:u.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:u.aS("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=h.A.get(t);if(!i)return;const s=t.getPosition();if(!s)return;const n=new a.Q(s.lineNumber,s.column,s.lineNumber,s.column),r=l.k.get(t);if(!r)return;r.startFindDefinitionFromCursor(s).then((()=>{i.showContentHover(n,1,1,!0)}))}}class m extends o.ks{constructor(){super({id:n.K6,label:u.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:16,weight:100},metadata:{description:u.aS("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollUp()}}class f extends o.ks{constructor(){super({id:n.Hp,label:u.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:18,weight:100},metadata:{description:u.aS("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollDown()}}class _ extends o.ks{constructor(){super({id:n.MB,label:u.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:15,weight:100},metadata:{description:u.aS("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollLeft()}}class v extends o.ks{constructor(){super({id:n.vf,label:u.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:17,weight:100},metadata:{description:u.aS("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollRight()}}class C extends o.ks{constructor(){super({id:n.ih,label:u.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:u.aS("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageUp()}}class E extends o.ks{constructor(){super({id:n.Hm,label:u.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:u.aS("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageDown()}}class b extends o.ks{constructor(){super({id:n.Xp,label:u.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:u.aS("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToTop()}}class S extends o.ks{constructor(){super({id:n.vx,label:u.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:u.aS("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToBottom()}}class y extends o.ks{constructor(){super({id:n.jq,label:n.iM,alias:"Increase Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();s.updateHoverVerbosityLevel(d.M$.Increase,n,i?.focus)}}class w extends o.ks{constructor(){super({id:n.Zp,label:n.G8,alias:"Decrease Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();h.A.get(t)?.updateHoverVerbosityLevel(d.M$.Decrease,n,i?.focus)}}var R=i(66261),L=i(47612),T=i(57039),x=i(57286),k=i(8597),A=i(25890),N=i(90766),I=i(64383),O=i(5662),D=i(89403),M=i(56942),P=i(37550),F=i(55130),U=i(71933),H=i(61407),B=i(65877),W=i(75147),V=i(49099),z=i(73823),G=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},j=function(e,t){return function(i,s){t(i,s,e)}};const K=k.$;class Y{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const q={type:1,filter:{include:H.gB.QuickFix},triggerAction:H.fo.QuickFixHover};let $=class{constructor(e,t,i,s){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=s,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,n=i.getLineMaxColumn(s),r=[];for(const o of t){const t=o.range.startLineNumber===s?o.range.startColumn:1,c=o.range.endLineNumber===s?o.range.endColumn:n,l=this._markerDecorationsService.getMarker(i.uri,o);if(!l)continue;const h=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,c);r.push(new Y(this,h,l))}return r}renderHoverParts(e,t){if(!t.length)return new T.Ke([]);const i=new O.Cm,s=[];t.forEach((t=>{const i=this._renderMarkerHover(t);e.fragment.appendChild(i.hoverElement),s.push(i)}));const n=1===t.length?t[0]:t.sort(((e,t)=>W.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),new T.Ke(s)}_renderMarkerHover(e){const t=new O.Cm,i=K("div.hover-row"),s=k.BC(i,K("div.marker.hover-contents")),{source:n,message:r,code:o,relatedInformation:a}=e.marker;this._editor.applyFontInfo(s);const c=k.BC(s,K("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,n||o)if(o&&"string"!==typeof o){const e=K("span");if(n){k.BC(e,K("span")).innerText=n}const i=k.BC(e,K("a.code-link"));i.setAttribute("href",o.target.toString()),t.add(k.ko(i,"click",(e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));k.BC(i,K("span")).innerText=o.value;const r=k.BC(s,e);r.style.opacity="0.6",r.style.paddingLeft="6px"}else{const e=k.BC(s,K("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=n&&o?`${n}(${o})`:n||`(${o})`}if((0,A.EI)(a))for(const{message:l,resource:h,startLineNumber:d,startColumn:u}of a){const e=k.BC(s,K("div"));e.style.marginTop="8px";const i=k.BC(e,K("a"));i.innerText=`${(0,D.P8)(h)}(${d}, ${u}): `,i.style.cursor="pointer",t.add(k.ko(i,"click",(e=>{if(e.stopPropagation(),e.preventDefault(),this._openerService){const e={selection:{startLineNumber:d,startColumn:u}};this._openerService.open(h,{fromUserGesture:!0,editorOptions:e}).catch(I.dz)}})));const n=k.BC(e,K("span"));n.innerText=l,this._editor.applyFontInfo(n)}return{hoverPart:e,hoverElement:i,dispose:()=>t.dispose()}}renderMarkerStatusbar(e,t,i){if(t.marker.severity===W.cj.Error||t.marker.severity===W.cj.Warning||t.marker.severity===W.cj.Info){const i=B.j.get(this._editor);i&&e.statusBar.addAction({label:u.kg("view problem","View Problem"),commandId:B.i.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const s=e.statusBar.append(K("div"));this.recentMarkerCodeActionsInfo&&(W.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===W.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(s.textContent=u.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const n=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?O.jG.None:(0,N.EQ)((()=>s.textContent=u.kg("checkingForQuickFixes","Checking for quick fixes...")),200,i);s.textContent||(s.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,O.s)((()=>r.cancel()))),r.then((r=>{if(n.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(s.textContent=u.kg("noQuickFixes","No quick fixes available"));s.style.display="none";let o=!1;i.add((0,O.s)((()=>{o||r.dispose()}))),e.statusBar.addAction({label:u.kg("quick fixes","Quick Fix..."),commandId:F.pQ,run:t=>{o=!0;const i=U.C.get(this._editor),s=k.BK(t);e.hide(),i?.showCodeActions(q,r,{x:s.left,y:s.top,width:s.width,height:s.height})}})}),I.dz)}}getCodeActions(e){return(0,N.SS)((t=>(0,F.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new a.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),q,z.ke.None,t)))}};$=G([j(1,P.IMarkerDecorationsService),j(2,V.C),j(3,M.ILanguageFeaturesService)],$);var Q=i(63591),X=i(51219),Z=i(20492),J=i(10154),ee=i(12143),te=i(52776),ie=i(16980),se=i(16223);class ne{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=se.ZS.Center}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[],s="lineNo"===this._laneOrLine;if(!t)return i;for(const n of t){const t=n.options.glyphMargin?.position??se.ZS.Center;if(!s&&t!==this._laneOrLine)continue;const r=s?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;r&&!(0,ie.it)(r)&&i.push(...(0,A._j)(r).map(e))}return i}}var re,oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=k.$;let le=class extends O.jG{static{re=this}static{this.ID="editor.contrib.modesGlyphHoverWidget"}constructor(e,t,i){super(),this._renderDisposeables=this._register(new O.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new te.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Z.T({editor:this._editor},t,i)),this._computer=new ne(this._editor),this._hoverOperation=this._register(new ee.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._register(k.b2(this._hover.containerDomNode,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return re.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const s of t){const e=ce("div.hover-row.markdown-hover"),t=k.BC(e,ce("div.hover-contents")),n=this._renderDisposeables.add(this._markdownRenderer.render(s.value));t.appendChild(n.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),s=this._editor.getScrollTop(),n=this._editor.getOption(67),r=i-s-(this._hover.containerDomNode.clientHeight-n)/2,o=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${o}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(r),0)}px`}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,X.U)(t,e.x,e.y))&&this.hide()}};le=re=oe([ae(1,J.L),ae(2,V.C)],le);var he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends O.jG{static{this.ID="editor.contrib.marginHover"}constructor(e,t){super(),this._editor=e,this._instantiationService=t,this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new O.Cm,this._hoverState={mouseDown:!1},this._reactToEditorMouseMoveRunner=this._register(new N.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_isMouseOnMarginHoverWidget(e){const t=this._glyphWidget?.getDomNode();return!!t&&(0,X.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=this._isMouseOnMarginHoverWidget(e);return t&&i}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._mouseMoveEvent=e;this._shouldNotRecomputeCurrentHoverWidget(e)?this._reactToEditorMouseMoveRunner.cancel():this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateGlyphWidget().showsOrWillShow(e)}_onKeyDown(e){this._editor.hasModel()&&5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){this._glyphWidget?.hide()}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(le,this._editor)),this._glyphWidget}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._glyphWidget?.dispose()}};ue=he([de(1,Q._Y)],ue);var ge=i(96282);(0,o.HW)(h.A.ID,h.A,2),(0,o.HW)(ue.ID,ue,2),(0,o.Fl)(g),(0,o.Fl)(p),(0,o.Fl)(m),(0,o.Fl)(f),(0,o.Fl)(_),(0,o.Fl)(v),(0,o.Fl)(C),(0,o.Fl)(E),(0,o.Fl)(b),(0,o.Fl)(S),(0,o.Fl)(y),(0,o.Fl)(w),T.B2.register(x.xJ),T.B2.register($),(0,L.zy)(((e,t)=>{const i=e.getColor(R.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})),ge.Z.register(new class{}),ge.Z.register(new class{}),ge.Z.register(new class{})},58568:(e,t,i)=>{"use strict";var s=i(18447),n=i(631),r=i(79400),o=i(18938),a=i(29999);i(50091).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,n.j)(r.r.isUri(i));const c=e.get(a.gW),l=e.get(o.ITextModelService),h=await l.createModelReference(i);try{return(await c.getOrCreate(h.object.textEditorModel,s.XO.None)).getTopLevelSymbols()}finally{h.dispose()}}))},58590:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002),r=i(36677),o=i(75326);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,n=this._selection.endColumn;if((!this._isMovingLeft||1!==s)&&(this._isMovingLeft||n!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new r.Q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,n,i,n),a)}else{const o=new r.Q(i,n,i,n+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new o.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new o.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var c=i(78209);class l extends s.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const n of s)i.push(new a(n,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,s.Fl)(class extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:c.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,s.Fl)(class extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:c.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},58591:(e,t,i)=>{"use strict";i.d(t,{AI:()=>r,Kz:()=>a,Ot:()=>o});var s=i(42291),n=i(63591),r=s.A;const o=(0,n.u1)("notificationService");class a{}},58694:(e,t,i)=>{"use strict";function s(e,t,i){let s=null,n=null;if("function"===typeof i.value?(s="value",n=i.value,0!==n.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(s="get",n=i.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;i[s]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,e)}),this[r]}}i.d(t,{B:()=>s})},58820:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(4818).then(i.bind(i,4818))})},58925:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});class s{static{this.Undefined=new s(void 0)}constructor(e){this.element=e,this.next=s.Undefined,this.prev=s.Undefined}}class n{constructor(){this._first=s.Undefined,this._last=s.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===s.Undefined}clear(){let e=this._first;for(;e!==s.Undefined;){const t=e.next;e.prev=s.Undefined,e.next=s.Undefined,e=t}this._first=s.Undefined,this._last=s.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new s(e);if(this._first===s.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==s.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==s.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==s.Undefined&&e.next!==s.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===s.Undefined&&e.next===s.Undefined?(this._first=s.Undefined,this._last=s.Undefined):e.next===s.Undefined?(this._last=this._last.prev,this._last.next=s.Undefined):e.prev===s.Undefined&&(this._first=this._first.next,this._first.prev=s.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==s.Undefined;)yield e.element,e=e.next}}},59136:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 011.06 0L8 9.44l3.97-3.97a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 010-1.06",clipRule:"evenodd"})))}},59170:function(e,t,i){var s;e=i.nmd(e),function(){var n=t,r=(e&&e.exports,"object"==typeof i.g&&i.g);r.global!==r&&r.window;var o,a,c,l,h=String.fromCharCode;function d(e){for(var t,i,s=[],n=0,r=e.length;n<r;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r?56320==(64512&(i=e.charCodeAt(n++)))?s.push(((1023&t)<<10)+(1023&i)+65536):(s.push(t),n--):s.push(t);return s}function u(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function g(e,t){return h(e>>t&63|128)}function p(e){if(0==(4294967168&e))return h(e);var t="";return 0==(4294965248&e)?t=h(e>>6&31|192):0==(4294901760&e)?(u(e),t=h(e>>12&15|224),t+=g(e,6)):0==(4292870144&e)&&(t=h(e>>18&7|240),t+=g(e,12),t+=g(e,6)),t+=h(63&e|128)}function m(){if(c>=a){if(l)return!1;throw Error("Invalid byte index")}var e=255&o[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,t,i,s,n;if(c>a)throw Error("Invalid byte index");if(c==a)return!1;if(e=255&o[c],c++,0==(128&e))return e;if(192==(224&e)){if(!1===(t=m()))return!1;if((n=(31&e)<<6|t)>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=m(),!1===(i=m()))return!1;if((n=(15&e)<<12|t<<6|i)>=2048)return u(n),n;throw Error("Invalid continuation byte")}if(240==(248&e)){if(t=m(),i=m(),!1===(s=m()))return!1;if((n=(7&e)<<18|t<<12|i<<6|s)>=65536&&n<=1114111)return n}throw Error("Invalid UTF-8 detected")}var _={version:"2.1.2",encode:function(e){for(var t=d(e),i=t.length,s=-1,n="";++s<i;)n+=p(t[s]);return n},decode:function(e,t){l="undefined"!=typeof t&&t.allowTruncatedEnd,o=d(e),a=o.length,c=0;for(var i,s=[];!1!==(i=f());)s.push(i);return function(e){for(var t,i=e.length,s=-1,n="";++s<i;)(t=e[s])>65535&&(n+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+=h(t);return n}(s)}};void 0===(s=function(){return _}.call(t,i,t,e))||(e.exports=s)}()},59261:(e,t,i)=>{"use strict";i.d(t,{f:()=>h});var s=i(42539),n=i(98067),r=i(50091),o=i(46359),a=i(5662),c=i(58925);class l{constructor(){this._coreKeybindings=new c.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===n.OS){if(e&&e.win)return e.win}else if(2===n.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=l.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const r=(0,s.Zv)(t.primary,n.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){const o=t.secondary[r],a=(0,s.Zv)(o,n.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,s,n,r){const o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:s,weight2:n,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)((()=>{o(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(d)),this._cachedMergedKeybindings.slice(0)}}const h=new l;function d(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}o.O.add("platform.keybindingsRegistry",h)},59473:(e,t,i)=>{"use strict";i.d(t,{D_:()=>_,Dc:()=>S});var s=i(90766),n=i(64383),r=i(41234),o=i(5662),a=i(89403),c=i(87908),l=i(83069),h=i(75326),d=i(32848),u=i(73823),g=i(61407),p=i(55130),m=i(8995),f=i(78381);const _=new d.N1("supportedCodeAction",""),v="_typescript.applyFixAllCodeAction";class C extends o.jG{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new s.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==c.jT.Off){if(i===c.jT.On)return t;if(i===c.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:s}=t.getPosition(),n=e.getLineContent(i);if(0===n.length)return;if(1===s){if(/\s/.test(n[0]))return}else if(s===e.getLineMaxColumn(i)){if(/\s/.test(n[n.length-1]))return}else if(/\s/.test(n[s-2])&&/\s/.test(n[s-1]))return}return t}}}var E;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,n.MB)(e))return b;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(E||(E={}));const b=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class S extends o.jG{constructor(e,t,i,s,n,a,c){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=n,this._configurationService=a,this._telemetryService=c,this._codeActionOracle=this._register(new o.HE),this._state=E.Empty,this._onDidChangeState=this._register(new r.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=_.bindTo(s),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(E.Empty,!0))}_settingEnabledNearbyQuickfixes(){const e=this._editor?.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:e?.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(E.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap((e=>e.providedCodeActionKinds??[]));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new C(this._editor,this._markerService,(t=>{if(!t)return void this.setState(E.Empty);const i=t.selection.getStartPosition(),n=(0,s.SS)((async i=>{if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||t.trigger.filter?.include?.contains(g.gB.QuickFix))){const s=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),n=[...s.allActions];if(i.isCancellationRequested)return b;const r=s.validActions?.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),o=this._markerService.read({resource:e.uri});if(r){for(const e of s.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);return{validActions:s.validActions,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}if(!r&&o.length>0){const r=t.selection.getPosition();let a=r,c=Number.MAX_VALUE;const d=[...s.validActions];for(const f of o){const m=f.endColumn,_=f.endLineNumber,C=f.startLineNumber;if(_===r.lineNumber||C===r.lineNumber){a=new l.y(_,m);const f={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:t.trigger.filter?.include?t.trigger.filter?.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:t.trigger.context?.notAvailableMessage||"",position:a}},C=new h.L(a.lineNumber,a.column,a.lineNumber,a.column),E=await(0,p.dU)(this._registry,e,C,f,u.ke.None,i);if(0!==E.validActions.length){for(const e of E.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);0===s.allActions.length&&n.push(...E.allActions),Math.abs(r.column-m)<c?d.unshift(...E.validActions):d.push(...E.validActions)}c=Math.abs(r.column-m)}}const m=d.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return m.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:m,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}}if(1===t.trigger.type){const s=new f.W,n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i);return this._telemetryService&&this._telemetryService.publicLog2("codeAction.invokedDurations",{codeActions:n.validActions.length,duration:s.elapsed()}),n}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&this._progressService?.showWhile(n,250);const r=new E.Triggered(t.trigger,i,n);let o=!1;1===this._state.type&&(o=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),o?setTimeout((()=>{this.setState(r)}),500):this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},59520:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(3702).then(i.bind(i,23702))})},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},59731:(e,t,i)=>{"use strict";var s=i(16980),n=i(5662),r=i(31450),o=i(99645),a=i(78209);class c extends n.jG{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=o.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||(t=this.editor.isSimpleWidget?new s.Bc(a.kg("editor.simple.readonly","Cannot edit in read-only input")):new s.Bc(a.kg("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}(0,r.HW)(c.ID,c,2)},59896:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(654).then(i.bind(i,20654))})},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>o,iD:()=>c});var s=i(98067);let n;const r=globalThis.vscode;if("undefined"!==typeof r&&"undefined"!==typeof r.process){const e=r.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return s.uF?"win32":s.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=n.cwd,a=n.env,c=n.platform},60002:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var s,n=i(78209),r=i(32848);!function(e){e.editorSimpleInput=new r.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new r.N1("editorTextFocus",!1,n.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new r.N1("editorFocus",!1,n.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new r.N1("textInputFocus",!1,n.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new r.N1("editorReadonly",!1,n.kg("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new r.N1("inDiffEditor",!1,n.kg("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new r.N1("isEmbeddedDiffEditor",!1,n.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new r.N1("inMultiDiffEditor",!1,n.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new r.N1("multiDiffEditorAllCollapsed",void 0,n.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new r.N1("diffEditorHasChanges",!1,n.kg("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new r.N1("comparingMovedCode",!1,n.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new r.N1("accessibleDiffViewerVisible",!1,n.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new r.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,n.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new r.N1("diffEditorInlineMode",!1,n.kg("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new r.N1("diffEditorOriginalWritable",!1,n.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new r.N1("diffEditorModifiedWritable",!1,n.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new r.N1("diffEditorOriginalUri","",n.kg("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new r.N1("diffEditorModifiedUri","",n.kg("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new r.N1("editorColumnSelection",!1,n.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r.N1("editorHasSelection",!1,n.kg("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r.N1("editorHasMultipleSelections",!1,n.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r.N1("editorTabMovesFocus",!1,n.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new r.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new r.N1("canUndo",!1,!0),e.canRedo=new r.N1("canRedo",!1,!0),e.hoverVisible=new r.N1("editorHoverVisible",!1,n.kg("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new r.N1("editorHoverFocused",!1,n.kg("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new r.N1("stickyScrollFocused",!1,n.kg("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new r.N1("stickyScrollVisible",!1,n.kg("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new r.N1("standaloneColorPickerVisible",!1,n.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new r.N1("standaloneColorPickerFocused",!1,n.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new r.N1("inCompositeEditor",void 0,n.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new r.N1("editorLangId","",n.kg("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new r.N1("editorHasCompletionItemProvider",!1,n.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new r.N1("editorHasCodeActionsProvider",!1,n.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new r.N1("editorHasCodeLensProvider",!1,n.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new r.N1("editorHasDefinitionProvider",!1,n.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new r.N1("editorHasDeclarationProvider",!1,n.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new r.N1("editorHasImplementationProvider",!1,n.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new r.N1("editorHasTypeDefinitionProvider",!1,n.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new r.N1("editorHasHoverProvider",!1,n.kg("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new r.N1("editorHasDocumentHighlightProvider",!1,n.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new r.N1("editorHasDocumentSymbolProvider",!1,n.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new r.N1("editorHasReferenceProvider",!1,n.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new r.N1("editorHasRenameProvider",!1,n.kg("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new r.N1("editorHasSignatureHelpProvider",!1,n.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new r.N1("editorHasInlayHintsProvider",!1,n.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new r.N1("editorHasDocumentFormattingProvider",!1,n.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new r.N1("editorHasDocumentSelectionFormattingProvider",!1,n.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new r.N1("editorHasMultipleDocumentFormattingProvider",!1,n.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new r.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,n.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(s||(s={}))},60352:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(4534).then(i.bind(i,24534))})},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,H8:()=>h,Qu:()=>m,Tc:()=>l,c8:()=>u,gm:()=>c,m0:()=>g,nr:()=>d,pR:()=>o});var s=i(25893);class n{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new n}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}function r(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function o(e){return n.INSTANCE.getZoomFactor(e)}const a=navigator.userAgent,c=a.indexOf("Firefox")>=0,l=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,d=!h&&a.indexOf("Safari")>=0,u=!h&&!d&&l,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof s.G.matchMedia){const e=s.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=s.G.matchMedia("(display-mode: fullscreen)");p=e.matches,r(s.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},60534:(e,t,i)=>{"use strict";i.d(t,{V:()=>n,y:()=>r});var s=i(85152);class n{constructor(e){const t=(0,s.W)(e);this._defaultValue=t,this._asciiMap=n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,s.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class r{constructor(){this._actual=new n(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},60858:(e,t,i)=>{"use strict";i.d(t,{$:()=>v,D:()=>w});var s,n,r=i(90766),o=i(41234),a=i(5662),c=i(27195),l=i(50091),h=i(32848),d=i(36921),u=i(9711),g=i(25890),p=i(78209),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new C(i)}createMenu(e,t,i){return new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}getMenuActions(e,t,i){const s=new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t),n=s.getActions(i);return s.dispose(),n}resetHiddenStates(e){this._hiddenStates.reset(e)}};v=f([_(0,l.d),_(1,m.b),_(2,u.CS)],v);let C=class{static{s=this}static{this._key="menu.hiddenCommands"}constructor(e){this._storageService=e,this._disposables=new a.Cm,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,s._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){return this._hiddenByDefaultCache.get(`${e.id}/${t}`)??!1}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){const i=this._isHiddenByDefault(e,t),s=this._data[e.id]?.includes(t)??!1;return i?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const s=this._data[e.id];if(i)if(s){s.indexOf(t)<0&&s.push(t)}else this._data[e.id]=[t];else if(s){const i=s.indexOf(t);i>=0&&(0,g.UH)(s,i),0===s.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(s._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};C=s=f([_(0,u.CS)],C);class E{constructor(e,t){this._id=e,this._collectContextKeysForSubmenus=t,this._menuGroups=[],this._allMenuIds=new Set,this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get allMenuIds(){return this._allMenuIds}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._allMenuIds.clear(),this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=this._sort(c.ZG.getMenuItems(this._id));let t;for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeysAndSubmenuIds(i)}this._allMenuIds.add(this._id)}_sort(e){return e}_collectContextKeysAndSubmenuIds(e){if(E._fillInKbExprKeys(e.when,this._structureContextKeys),(0,c.is)(e)){if(e.command.precondition&&E._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;E._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(c.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeysAndSubmenuIds,this),this._allMenuIds.add(e.submenu))}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}}let b=n=class extends E{constructor(e,t,i,s,n,r){super(e,i),this._hiddenStates=t,this._commandService=s,this._keybindingService=n,this._contextKeyService=r,this.refresh()}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[s,r]=i;let o;for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,c.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const s=y(this._id,i?t.command:t,this._hiddenStates);if(i){const i=w(this._commandService,this._keybindingService,t.command.id,t.when);(o??=[]).push(new c.Xe(t.command,t.alt,e,s,i,this._contextKeyService,this._commandService))}else{const i=new n(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),r=d.wv.join(...i.map((e=>e[1])));r.length>0&&(o??=[]).push(new c.nI(t,s,r))}}o&&o.length>0&&t.push([s,o])}return t}_sort(e){return e.sort(n._compareMenuItems)}static _compareMenuItems(e,t){const i=e.group,s=t.group;if(i!==s){if(!i)return 1;if(!s)return-1;if("navigation"===i)return-1;if("navigation"===s)return 1;const e=i.localeCompare(s);if(0!==e)return e}const r=e.order||0,o=t.order||0;return r<o?-1:r>o?1:n._compareTitles((0,c.is)(e)?e.command.title:e.title,(0,c.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,s="string"===typeof t?t:t.original;return i.localeCompare(s)}};b=n=f([_(3,l.d),_(4,m.b),_(5,h.fN)],b);let S=class{constructor(e,t,i,s,n,l){this._disposables=new a.Cm,this._menuInfo=new b(e,t,i.emitEventsForSubmenuChanges,s,n,l);const h=new r.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(h),this._disposables.add(c.ZG.onDidChangeMenu((e=>{for(const t of this._menuInfo.allMenuIds)if(e.has(t)){h.schedule();break}})));const d=this._disposables.add(new a.Cm);this._onDidChange=new o.uI({onWillAddFirstListener:()=>{d.add(l.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),s=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||s)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s})}))),d.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:d.clear.bind(d),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,s=!1;for(const n of e)if(t=t||n.isStructuralChange,i=i||n.isEnablementChange,s=s||n.isToggleChange,t&&i&&s)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function y(e,t,i){const s=(0,c.i1)(t)?t.submenu.id:t.id,n="string"===typeof t.title?t.title:t.title.value,r=(0,d.ih)({id:`hide/${e.id}/${s}`,label:(0,p.kg)("hide.label","Hide '{0}'",n),run(){i.updateHidden(e,s,!0)}}),o=(0,d.ih)({id:`toggle/${e.id}/${s}`,label:n,get checked(){return!i.isHidden(e,s)},run(){i.updateHidden(e,s,!!this.checked)}});return{hide:r,toggle:o,get isHidden(){return!o.checked}}}function w(e,t,i,s=void 0,n=!0){return(0,d.ih)({id:`configureKeybinding/${i}`,label:(0,p.kg)("configure keybinding","Configure Keybinding"),enabled:n,run(){const n=!!!t.lookupKeybinding(i)&&s?s.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(n?` +when:${n}`:""))}})}S=f([_(3,l.d),_(4,m.b),_(5,h.fN)],S)},60952:(e,t,i)=>{"use strict";i.d(t,{U:()=>v,h:()=>_});var s=i(8597),n=i(36921),r=i(18447),o=i(58255),a=i(36677),c=i(18938),l=i(99312),h=i(84226),d=i(27195),u=i(50091),g=i(32848),p=i(47508),m=i(63591),f=i(58591);async function _(e,t,i,h){const g=e.get(c.ITextModelService),_=e.get(p.Z),v=e.get(u.d),C=e.get(m._Y),E=e.get(f.Ot);if(await h.item.resolve(r.XO.None),!h.part.location)return;const b=h.part.location,S=[],y=new Set(d.ZG.getMenuItems(d.D8.EditorContext).map((e=>(0,d.is)(e)?e.command.id:(0,o.b)())));for(const s of l.bn.all())y.has(s.desc.id)&&S.push(new n.rc(s.desc.id,d.Xe.label(s.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await g.createModelReference(b.uri);try{const i=new l.QS(e.object.textEditorModel,a.Q.getStartPosition(b.range)),n=h.item.anchor.range;await C.invokeFunction(s.runEditorCommand.bind(s),t,i,n)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new n.wv),S.push(new n.rc(e.id,e.title,void 0,!0,(async()=>{try{await v.executeCommand(e.id,...e.arguments??[])}catch(t){E.notify({severity:f.AI.Error,source:h.item.provider.displayName,message:t})}})))}const w=t.getOption(128);_.showContextMenu({domForShadowRoot:w?t.getDomNode()??void 0:void 0,getAnchor:()=>{const e=s.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,s){const n=e.get(c.ITextModelService),r=await n.createModelReference(s.uri);await i.invokeWithinContext((async e=>{const n=t.hasSideBySideModifier,o=e.get(g.fN),c=h.x2.inPeekEditor.getValue(o),d=!n&&i.getOption(89)&&!c;return new l.mR({openToSide:n,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new l.QS(r.object.textEditorModel,a.Q.getStartPosition(s.range)),a.Q.lift(s.range))})),r.dispose()}},61059:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});const s={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,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}},61082:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(5252).then(i.bind(i,65252))})},61199:(e,t,i)=>{var s=i(16320),n=i(59698);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},61283:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var s=i(59284),n=i(13260),r=i.n(n),o="undefined"!==typeof window?window:null,a=null===o,c=a?void 0:o.document,l="addEventListener",h="removeEventListener",d="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=c.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},C=function(e){if(v(e)){var t=c.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},E=function(e,t,i){var s=e[t];return void 0!==s?s:i},b=function(e,t,i,s){if(t){if("end"===s)return 0;if("center"===s)return e/2}else if(i){if("start"===s)return 0;if("center"===s)return e/2}return e},S=function(e,t){var i=c.createElement("div");return i.className="gutter gutter-"+t,i},y=function(e,t,i){var s={};return v(t)?s[e]=t:s[e]=_+"("+t+"% - "+i+"px)",s},w=function(e,t){var i;return(i={})[e]=t+"px",i};const R=function(e,t){if(void 0===t&&(t={}),a)return{};var i,s,n,r,_,v,R=e;Array.from&&(R=Array.from(R));var L=C(R[0]).parentNode,T=getComputedStyle?getComputedStyle(L):null,x=T?T.flexDirection:null,k=E(t,"sizes")||R.map((function(){return 100/R.length})),A=E(t,"minSize",100),N=Array.isArray(A)?A:R.map((function(){return A})),I=E(t,"maxSize",1/0),O=Array.isArray(I)?I:R.map((function(){return I})),D=E(t,"expandToMin",!1),M=E(t,"gutterSize",10),P=E(t,"gutterAlign","center"),F=E(t,"snapOffset",30),U=Array.isArray(F)?F:R.map((function(){return F})),H=E(t,"dragInterval",1),B=E(t,"direction",m),W=E(t,"cursor",B===m?"col-resize":"row-resize"),V=E(t,"gutter",S),z=E(t,"elementStyle",y),G=E(t,"gutterStyle",w);function j(e,t,s,n){var r=z(i,t,s,n);Object.keys(r).forEach((function(t){e.style[t]=r[t]}))}function K(){return v.map((function(e){return e.size}))}function Y(e){return"touches"in e?e.touches[0][s]:e[s]}function q(e){var t=v[this.a],i=v[this.b],s=t.size+i.size;t.size=e/this.size*s,i.size=s-e/this.size*s,j(t.element,t.size,this[g],t.i),j(i.element,i.size,this[p],i.i)}function $(e){var i,s=v[this.a],n=v[this.b];this.dragging&&(i=Y(e)-this.start+(this[g]-this.dragOffset),H>1&&(i=Math.round(i/H)*H),i<=s.minSize+s.snapOffset+this[g]?i=s.minSize+this[g]:i>=this.size-(n.minSize+n.snapOffset+this[p])&&(i=this.size-(n.minSize+this[p])),i>=s.maxSize-s.snapOffset+this[g]?i=s.maxSize+this[g]:i<=this.size-(n.maxSize-n.snapOffset+this[p])&&(i=this.size-(n.maxSize+this[p])),q.call(this,i),E(t,"onDrag",f)(K()))}function Q(){var e=v[this.a].element,t=v[this.b].element,s=e[d](),o=t[d]();this.size=s[i]+o[i]+this[g]+this[p],this.start=s[n],this.end=s[r]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=B===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(L);if(null===t)return e;if(N.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,s=[],n=e.map((function(n,r){var o=t*n/100,a=b(M,0===r,r===e.length-1,P),c=N[r]+a;return o<c?(i+=c-o,s.push(0),c):(s.push(o-c),o)}));return 0===i?e:n.map((function(e,n){var r=e;if(i>0&&s[n]-i>0){var o=Math.min(i,s[n]-i);i-=o,r=e-o}return r/t*100}))}function Z(){var e=this,i=v[e.a].element,s=v[e.b].element;e.dragging&&E(t,"onDragEnd",f)(K()),e.dragging=!1,o[h]("mouseup",e.stop),o[h]("touchend",e.stop),o[h]("touchcancel",e.stop),o[h]("mousemove",e.move),o[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),s[h]("selectstart",f),s[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",s.style.userSelect="",s.style.webkitUserSelect="",s.style.MozUserSelect="",s.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",c.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,s=v[i.a].element,n=v[i.b].element;i.dragging||E(t,"onDragStart",f)(K()),e.preventDefault(),i.dragging=!0,i.move=$.bind(i),i.stop=Z.bind(i),o[l]("mouseup",i.stop),o[l]("touchend",i.stop),o[l]("touchcancel",i.stop),o[l]("mousemove",i.move),o[l]("touchmove",i.move),s[l]("selectstart",f),s[l]("dragstart",f),n[l]("selectstart",f),n[l]("dragstart",f),s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",i.gutter.style.cursor=W,i.parent.style.cursor=W,c.body.style.cursor=W,Q.call(i),i.dragOffset=Y(e)-i.end}}B===m?(i="width",s="clientX",n="left",r="right",_="clientWidth"):"vertical"===B&&(i="height",s="clientY",n="top",r="bottom",_="clientHeight"),k=X(k);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Q.call(i);var s=t?i.size-e.minSize-i[p]:e.minSize+i[g];q.call(i,s)}return(v=R.map((function(e,t){var s,n={element:C(e),size:k[t],minSize:N[t],maxSize:O[t],snapOffset:U[t],i:t};if(t>0&&((s={a:t-1,b:t,dragging:!1,direction:B,parent:L})[g]=b(M,t-1===0,!1,P),s[p]=b(M,!1,t===R.length-1,P),"row-reverse"===x||"column-reverse"===x)){var r=s.a;s.a=s.b,s.b=r}if(t>0){var o=V(t,B,n.element);!function(e,t,s){var n=G(i,t,s);Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}(o,M,t),s[u]=J.bind(s),o[l]("mousedown",s[u]),o[l]("touchstart",s[u]),L.insertBefore(o,n.element),s.gutter=o}return j(n.element,n.size,b(M,0===t,t===R.length-1,P),t),t>0&&ee.push(s),n}))).forEach((function(e){var t=e.element[d]()[i];t<e.minSize&&(D?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,i){if(i>0){var s=ee[i-1],n=v[s.a],r=v[s.b];n.size=t[i-1],r.size=e,j(n.element,n.size,s[g],n.i),j(r.element,r.size,s[p],r.i)}}))},getSizes:K,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(s){if(!0!==t?s.parent.removeChild(s.gutter):(s.gutter[h]("mousedown",s[u]),s.gutter[h]("touchstart",s[u])),!0!==e){var n=z(i,s.a.size,s[g]);Object.keys(n).forEach((function(e){v[s.a].element.style[e]="",v[s.b].element.style[e]=""}))}}))},parent:L,pairs:ee}};function L(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&-1===t.indexOf(s)&&(i[s]=e[s]);return i}var T=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=L(e,["children","gutter"]);i.gutter=function(e,i){var s;return t?s=t(e,i):(s=document.createElement("div")).className="gutter gutter-"+i,s.__isSplitGutter=!0,s},this.split=R(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var s=i.minSize,n=i.sizes,r=i.collapsed,o=L(i,["children","minSize","sizes","collapsed"]),a=e.minSize,c=e.sizes,l=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(s)&&Array.isArray(a)){var d=!1;s.forEach((function(e,t){d=d||e!==a[t]})),h=h||d}else h=!(!Array.isArray(s)&&!Array.isArray(a))||(h||s!==a);if(h)o.minSize=s,o.sizes=n||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,t,i){return i.previousSibling},this.split=R(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),o);else if(n){var u=!1;n.forEach((function(e,t){u=u||e!==c[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(r)&&(r!==l||h)&&this.split.collapse(r)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,n=L(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return s.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),i)},t}(s.Component);T.propTypes={sizes:r().arrayOf(r().number),minSize:r().oneOfType([r().number,r().arrayOf(r().number)]),maxSize:r().oneOfType([r().number,r().arrayOf(r().number)]),expandToMin:r().bool,gutterSize:r().number,gutterAlign:r().string,snapOffset:r().oneOfType([r().number,r().arrayOf(r().number)]),dragInterval:r().number,direction:r().string,cursor:r().string,gutter:r().func,elementStyle:r().func,gutterStyle:r().func,onDrag:r().func,onDragStart:r().func,onDragEnd:r().func,collapsed:r().number,children:r().arrayOf(r().element)},T.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const x=T},61292:(e,t,i)=>{"use strict";i.d(t,{PD:()=>r,sV:()=>n});var s=i(46359);const n={EDITORS:"CodeEditors",FILES:"CodeFiles"};s.O.add("workbench.contributions.dragAndDrop",new class{});class r{static{this.INSTANCE=new r}constructor(){}static getInstance(){return r.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>b,HT:()=>_,pU:()=>f});var s=i(90766),n=i(10350),r=i(18956),o=i(25689),a=i(41234),c=i(631),l=i(79400),h=i(78209),d=i(78748),u=i(46359);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;o.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:l.r.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${o.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,s){const n=this.iconsById[e];if(n){if(i&&!n.description){n.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return n}const r={id:e,description:i,defaults:t,deprecationMessage:s};this.iconsById[e]=r;const o={$ref:"#/definitions/icons"};return s&&(o.deprecationMessage=s),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(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;o.L.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("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const s=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const n of s.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|${o.L.isThemeIcon(n.defaults)?n.defaults.id:n.id}|${n.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const n of s.filter((e=>!o.L.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|`);return i.join("\n")}};function f(e,t,i,s){return m.registerIcon(e,t,i,s)}function _(){return m}u.O.add("base.contributions.icons",m),function(){const e=(0,r.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",C=u.O.as(d.F.JSONContribution);C.registerSchema(v,m.getIconSchema());const E=new s.uC((()=>C.notifySchemaChanged(v)),200);m.onDidChange((()=>{E.isScheduled()||E.schedule()}));const b=f("widget-close",n.W.close,(0,h.kg)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",n.W.arrowUp,(0,h.kg)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",n.W.arrowDown,(0,h.kg)("nextChangeIcon","Icon for goto next editor location.")),o.L.modify(n.W.sync,"spin"),o.L.modify(n.W.loading,"spin")},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>d,aF:()=>c,fo:()=>o,gB:()=>r,uJ:()=>a});var s=i(64383),n=i(8995);const r=new class{constructor(){this.QuickFix=new n.k("quickfix"),this.Refactor=new n.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new n.k("notebook"),this.Source=new n.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var o;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>l(t,i,e.include))))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function c(e,t){const i=t.kind?new n.k(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>l(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&r.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function l(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(o||(o={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new n.k(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class d{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(t){(0,s.M_)(t)}i&&(this.action.edit=i.edit)}return this}}},61472:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(7718).then(i.bind(i,77718))})},61562:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(5636).then(i.bind(i,25636))})},61674:(e,t,i)=>{e.exports=function(e){const t=i(37403),s={say:i(27769),format:t.format,formatFromYSON:t.formatFromYSON,formatFromYQL:t.formatFromYQL,formatRaw:t.formatRaw,formatAttributes:t.formatAttributes,formatKey:t.formatKey,formatValue:t.formatValue,converters:{yson:i(1019),yql:i(34132),raw:i(34420)},utils:{format:i(94297),yson:i(76531),utf8:i(1449),type:i(85858)}};if((e=e||{}).exportBrowserModule){if("undefined"===typeof window)return s;let e;const t="function"===typeof window.define&&window.define.amd,i="object"===typeof window.modules,n=function(e){return e},r=function(e){return t?e.bind(null,n):i?e:e.bind(null,n)};e=t?window.define:i?window.modules.define.bind(window.modules):function(e,t){window[e]=t()},e("unipika",r((function(e){"use strict";return e(s)})))}return s}},61731:(e,t,i)=>{"use strict";var s,n=i(31450),r=i(94371),o=i(72466),a=i(90208),c=i(78209),l=i(1646),h=i(46359),d=i(25890),u=i(90766),g=i(17799),p=i(8995),m=i(5662),f=i(85411),_=i(36677),v=i(56942),C=i(36723),E=i(29100),b=i(50868),S=i(9948),y=i(84001),w=i(32848),R=i(61292),L=i(63591),T=i(85541),x=i(56687),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N="editor.experimental.dropIntoEditor.defaultProvider",I="editor.changeDropType",O=new w.N1("dropWidgetVisible",!1,(0,c.kg)("dropWidgetVisible","Whether the drop widget is showing"));let D=class extends m.jG{static{s=this}static{this.ID="editor.contrib.dropIntoEditorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this._configService=i,this._languageFeaturesService=s,this._treeViewsDragAndDropService=n,this.treeItemsTransfer=R.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(S.I,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(x.G,"dropIntoEditor",e,O,{id:I,label:(0,c.kg)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){if(!i.dataTransfer||!e.hasModel())return;this._currentOperation?.cancel(),e.focus(),e.setPosition(t);const s=(0,u.SS)((async n=>{const r=new m.Cm,o=r.add(new b.gI(e,1,void 0,n));try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const c=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=r.add(await this.getDropEdits(c,a,t,s,o));if(o.token.isCancellationRequested)return;if(l.edits.length){const i=this.getInitialActiveEditIndex(a,l.edits),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([_.Q.fromPositions(t)],{activeEditIndex:i,allEdits:l.edits},s,(async e=>e),n)}}finally{r.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,c.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s,{cancel:()=>s.cancel()}),this._currentOperation=s}async getDropEdits(e,t,i,s,n){const r=new m.Cm,o=await(0,u.PK)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentDropEdits(t,i,s,n.token);return o&&r.add(o),o?.edits.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),n.token),a=(0,d.Yc)(o??[]).flat();return{edits:(0,T.H)(a),dispose:()=>r.dispose()}}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(N,{resource:e.uri});for(const[s,n]of Object.entries(i)){const e=new p.k(n),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,g.Y)(s,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new g.Vq;const t=(0,f.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(C.DraggedTreeItemsIdentifier.prototype)){const e=this.treeItemsTransfer.getData(C.DraggedTreeItemsIdentifier.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,s]of e)t.replace(i,s)}}return t}};D=s=k([A(1,L._Y),A(2,y.pG),A(3,v.ILanguageFeaturesService),A(4,E.ITreeViewsDnDService)],D),(0,n.HW)(D.ID,D,2),(0,o.x)(a.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:I,precondition:O,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){D.get(t)?.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:O,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){D.get(t)?.clearWidgets()}}),h.O.as(l.Fd.Configuration).registerConfiguration({...r.JJ,properties:{[N]:{type:"object",scope:5,description:c.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},61764:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(2162).then(i.bind(i,2162))})},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>d,KV:()=>c});const s=new RegExp("^[$A-Z_\\s]+$");var n=i(92727);const r={},o={};class a{static getOrCreate(e){return o[e]||(o[e]=new a(e)),o[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function c(e){const t=e.id;r[t]=e,n.eo.register(e);const i=a.getOrCreate(t);n.eo.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),n.eo.onLanguage(t,(()=>{i.load().then((e=>{n.eo.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&l(t,e.completions)}))}function l(e,t){const i=[];const r=n.eo[e];r&&!r.modeConfiguration.completionItems||i.push(n.eo.registerCompletionItemProvider(e,function(e,t){const i=[];for(const n in t)if(!isNaN(Number(n))){const r=`${t[n].toLowerCase()}List`;if(r in e)for(const t of e[r])i.push({label:t,filterText:s.test(t)?t.toLowerCase():t,insertText:t,kind:Number(n),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,s,n){const r=e.getWordUntilPosition(t),o={startLineNumber:t.lineNumber,startColumn:r.startColumn,endLineNumber:t.lineNumber,endColumn:r.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:o})))}}}}(t,n.eo.CompletionItemKind))),r&&i.push(r.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),l(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new n.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},62051:(e,t,i)=>{"use strict";i.d(t,{p:()=>l});var s=i(31308),n=i(91508),r=i(1245),o=i(32848),a=i(5662),c=i(78209);class l extends a.jG{static{this.inlineSuggestionVisible=new o.N1("inlineSuggestionVisible",!1,(0,c.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new o.N1("inlineSuggestionHasIndentation",!1,(0,c.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new o.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,c.kg)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new o.N1("inlineSuggestionSuppressSuggestions",void 0,(0,c.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))}constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=l.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=l.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=l.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=l.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,s.fm)((e=>{const t=this.model.read(e),i=t?.state.read(e),s=!!i?.inlineCompletion&&void 0!==i?.primaryGhostText&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(s),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,s.fm)((e=>{const t=this.model.read(e);let i=!1,s=!0;const o=t?.primaryGhostText.read(e);if(t?.selectedSuggestItem&&o&&o.parts.length>0){const{column:e,lines:a}=o.parts[0],c=a[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=(0,n.HG)(c);-1===e&&(e=c.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;s=r.A.visibleColumnFromColumn(c,e+1,o)<o}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(s)})))}}},62083:(e,t,i)=>{"use strict";i.d(t,{uB:()=>T,HC:()=>d,Kb:()=>m,FX:()=>g,rY:()=>C,lO:()=>k,M$:()=>h,r4:()=>x,qw:()=>u,sm:()=>O,v_:()=>A,OV:()=>R,YT:()=>L,GE:()=>E,WA:()=>p,gP:()=>w,ou:()=>_,dG:()=>N,$M:()=>v,OB:()=>I,PK:()=>y,Iu:()=>b});var s=i(10350),n=i(79400),r=i(36677),o=i(41234),a=i(5662);class c{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const i=new l(this,e,t);return this._factories.set(e,i),(0,a.s)((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class l extends a.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var h,d,u,g,p,m,f=i(78209);class _{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class C{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(h||(h={})),function(e){const t=new Map;t.set(0,s.W.symbolMethod),t.set(1,s.W.symbolFunction),t.set(2,s.W.symbolConstructor),t.set(3,s.W.symbolField),t.set(4,s.W.symbolVariable),t.set(5,s.W.symbolClass),t.set(6,s.W.symbolStruct),t.set(7,s.W.symbolInterface),t.set(8,s.W.symbolModule),t.set(9,s.W.symbolProperty),t.set(10,s.W.symbolEvent),t.set(11,s.W.symbolOperator),t.set(12,s.W.symbolUnit),t.set(13,s.W.symbolValue),t.set(15,s.W.symbolEnum),t.set(14,s.W.symbolConstant),t.set(15,s.W.symbolEnum),t.set(16,s.W.symbolEnumMember),t.set(17,s.W.symbolKeyword),t.set(27,s.W.symbolSnippet),t.set(18,s.W.symbolText),t.set(19,s.W.symbolColor),t.set(20,s.W.symbolFile),t.set(21,s.W.symbolReference),t.set(22,s.W.symbolCustomColor),t.set(23,s.W.symbolFolder),t.set(24,s.W.symbolTypeParameter),t.set(25,s.W.account),t.set(26,s.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=s.W.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let s=i.get(e);return"undefined"!==typeof s||t||(s=9),s}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(u||(u={}));class E{constructor(e,t,i,s){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=s}equals(e){return r.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&n.r.isUri(e.uri)&&r.Q.isIRange(e.range)&&(r.Q.isIRange(e.originSelectionRange)||r.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(m||(m={}));const S={17:(0,f.kg)("Array","array"),16:(0,f.kg)("Boolean","boolean"),4:(0,f.kg)("Class","class"),13:(0,f.kg)("Constant","constant"),8:(0,f.kg)("Constructor","constructor"),9:(0,f.kg)("Enum","enumeration"),21:(0,f.kg)("EnumMember","enumeration member"),23:(0,f.kg)("Event","event"),7:(0,f.kg)("Field","field"),0:(0,f.kg)("File","file"),11:(0,f.kg)("Function","function"),10:(0,f.kg)("Interface","interface"),19:(0,f.kg)("Key","key"),5:(0,f.kg)("Method","method"),1:(0,f.kg)("Module","module"),2:(0,f.kg)("Namespace","namespace"),20:(0,f.kg)("Null","null"),15:(0,f.kg)("Number","number"),18:(0,f.kg)("Object","object"),24:(0,f.kg)("Operator","operator"),3:(0,f.kg)("Package","package"),6:(0,f.kg)("Property","property"),14:(0,f.kg)("String","string"),22:(0,f.kg)("Struct","struct"),25:(0,f.kg)("TypeParameter","type parameter"),12:(0,f.kg)("Variable","variable")};function y(e,t){return(0,f.kg)("symbolAriaLabel","{0} ({1})",e,S[t])}var w,R,L,T,x;!function(e){const t=new Map;t.set(0,s.W.symbolFile),t.set(1,s.W.symbolModule),t.set(2,s.W.symbolNamespace),t.set(3,s.W.symbolPackage),t.set(4,s.W.symbolClass),t.set(5,s.W.symbolMethod),t.set(6,s.W.symbolProperty),t.set(7,s.W.symbolField),t.set(8,s.W.symbolConstructor),t.set(9,s.W.symbolEnum),t.set(10,s.W.symbolInterface),t.set(11,s.W.symbolFunction),t.set(12,s.W.symbolVariable),t.set(13,s.W.symbolConstant),t.set(14,s.W.symbolString),t.set(15,s.W.symbolNumber),t.set(16,s.W.symbolBoolean),t.set(17,s.W.symbolArray),t.set(18,s.W.symbolObject),t.set(19,s.W.symbolKey),t.set(20,s.W.symbolNull),t.set(21,s.W.symbolEnumMember),t.set(22,s.W.symbolStruct),t.set(23,s.W.symbolEvent),t.set(24,s.W.symbolOperator),t.set(25,s.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=s.W.symbolProperty),i}}(w||(w={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(R||(R={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(L||(L={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class A{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new c,I=new c;var O;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(O||(O={}))},62091:(e,t,i)=>{var s=i(54380),n=i(35367),r=i(80531),o=i(68097),a=i(62871),c=i(24410),l=i(34408),h=i(35725),d=l((function(e,t){var i={};if(null==e)return i;var l=!1;t=s(t,(function(t){return t=o(t,e),l||(l=t.length>1),t})),a(e,h(e),i),l&&(i=n(i,7,c));for(var d=t.length;d--;)r(i,t[d]);return i}));e.exports=d},62427:(e,t,i)=>{"use strict";i.d(t,{k:()=>y});var s,n=i(90766),r=i(64383),o=i(16980),a=i(5662),c=i(50868),l=i(31450),h=i(36677),d=i(10154),u=i(18938),g=i(37927),p=i(84226),m=i(78209),f=i(32848),_=i(99312),v=i(80538),C=i(56942),E=i(87289),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class{static{s=this}static{this.ID="editor.contrib.gotodefinitionatposition"}static{this.MAX_SOURCE_PREVIEW_LINES=8}constructor(e,t,i,s){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=s,this.toUnhook=new a.Cm,this.toUnhookForKeyboard=new a.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const n=new g.gi(e);this.toUnhook.add(n),this.toUnhook.add(n.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,t??void 0)}))),this.toUnhook.add(n.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,r.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(n.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(s.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){this.toUnhookForKeyboard.clear();const t=e?this.editor.getModel()?.getWordAtPosition(e):null;if(!t)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===t.startColumn&&this.currentWordAtPosition.endColumn===t.endColumn&&this.currentWordAtPosition.word===t.word)return;this.currentWordAtPosition=t;const i=new c.$t(this.editor,15);let s;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t)));try{s=await this.previousPromise}catch(l){return void(0,r.dz)(l)}if(!s||!s.length||!i.validate(this.editor))return void this.removeLinkDecorations();const a=s[0].originSelectionRange?h.Q.lift(s[0].originSelectionRange):new h.Q(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn);if(s.length>1){let e=a;for(const{originSelectionRange:t}of s)t&&(e=h.Q.plusRange(e,t));this.addDecoration(e,(new o.Bc).appendText(m.kg("multipleResults","Click to show {0} definitions.",s.length)))}else{const e=s[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:s}=e.range;if(s<1||s>i.getLineCount())return void t.dispose();const n=this.getPreviewValue(i,s,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(a,n?(new o.Bc).appendCodeblock(r||"",n):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;n.endLineNumber-n.startLineNumber>=s.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let n=t+1;n<i.endLineNumber;n++){const t=e.getLineFirstNonWhitespaceColumn(n);s=Math.min(s,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${s-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),n=Math.min(e.getLineCount(),t+s.MAX_SOURCE_PREVIEW_LINES);let r=t+1;for(;r<n;r++){if(i===e.getLineFirstNonWhitespaceColumn(r))break}return new h.Q(t,1,r+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!(e.target.detail.injectedText?.options instanceof E.Ho)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.hE)(this.languageFeaturesService.definitionProvider,i,e,!1,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(89)&&!this.isInPeekEditor(e);return new _.mR({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};y=s=b([S(1,u.ITextModelService),S(2,d.L),S(3,C.ILanguageFeaturesService)],y),(0,l.HW)(y.ID,y,2)},62469:()=>{},62890:(e,t,i)=>{"use strict";i.d(t,{$:()=>f});var s=i(8597),n=i(83750),r=i(72962),o=i(68214),a=i(25154),c=i(42904),l=i(20370),h=i(47661),d=i(41234),u=i(16980),g=i(5662),p=i(25689),m=i(48196);h.Q1.white.toString(),h.Q1.white.toString();class f extends g.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new d.vl),this._onDidEscape=this._register(new d.vl),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);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",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._register(a.q.addTarget(this._element)),[s.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,s.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):s.fs.stop(e)})))})),this._register((0,s.ko)(this._element,s.Bx.KEY_DOWN,(e=>{const t=new r.Z(e);let 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&&s.fs.stop(t,!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,s.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,l.n)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){if(this._label===e)return;if((0,u.VS)(this._label)&&(0,u.VS)(e)&&(0,u.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const t=this.options.supportShortLabel?this._labelElement:this._element;if((0,u.VS)(e)){const i=(0,o.Gc)(e,{inline:!0});i.dispose();const r=i.element.querySelector("p")?.innerHTML;if(r){const e=(0,n.aj)(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});t.innerHTML=e}else(0,s.Ln)(t)}else this.options.supportIcons?(0,s.Ln)(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"===typeof this.options.title?i=this.options.title:this.options.title&&(i=(0,o.R9)(e)),this.setTitle(i),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",i),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...p.L.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")}setTitle(e){this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,m.i)().setupManagedHover(this.options.hoverDelegate??(0,c.nZ)("mouse"),this._element,e))}}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>l});var s=i(60712),n=i(59284),r=i(40569),o=i(53302);const a="--ydb-tree-view-level",c=(0,o.o)("ydb-tree-view");function l({children:e,name:t,title:i,icon:o,collapsed:l=!0,active:h=!1,onClick:d,onArrowClick:u,onActionsOpenToggle:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}){const v=n.useCallback((e=>{if(!d)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||d()}),[d]),C=u||d;let E="tree-view_arrow",b="tree-view_children";return l&&(E+=" tree-view_arrow-collapsed",b+=" tree-view_children-collapsed"),(0,s.jsx)("div",{className:c(),style:{[a]:_},children:(0,s.jsxs)("div",{className:"tree-view",children:[(0,s.jsxs)("div",{className:`tree-view_item ${c("item",{active:h})}`,onClick:v,children:[(0,s.jsx)("button",{type:"button",className:`${E} ${c("arrow",{collapsed:l,hidden:!p})}`,disabled:!C,onClick:C}),(0,s.jsxs)("div",{className:c("content"),children:[o&&(0,s.jsx)("div",{className:c("icon"),children:o}),(0,s.jsx)("div",{className:c("text"),title:i,children:t}),m&&m.length>0&&(0,s.jsxs)("div",{className:c("actions"),children:[f,(0,s.jsx)(r.r,{onOpenToggle:g,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,s.jsx)("div",{className:`${b} ${c("container",{collapsed:l})}`,children:l?null:e})]})})}},63346:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var s=i(38566),n=i(17469),r=i(27760);function o(e,t,i,o){t.tokenization.forceTokenization(i.startLineNumber);const a=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),c=o.getLanguageConfiguration(a);if(!c)return null;const l=new r.V(t,o).getProcessedTokenContextAroundRange(i),h=l.previousLineProcessedTokens.getLineContent(),d=l.beforeRangeProcessedTokens.getLineContent(),u=l.afterRangeProcessedTokens.getLineContent(),g=c.onEnter(e,h,d,u);if(!g)return null;const p=g.indentAction;let m=g.appendText;const f=g.removeText||0;m?p===s.l.Indent&&(m="\t"+m):m=p===s.l.Indent||p===s.l.IndentOutdent?"\t":"";let _=(0,n.Cw)(t,i.startLineNumber,i.startColumn);return f&&(_=_.substring(0,_.length-f)),{indentAction:p,appendText:m,removeText:f,indentation:_}}},63591:(e,t,i)=>{"use strict";var s;i.d(t,{_$:()=>s,_Y:()=>n,u1:()=>r}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(s||(s={}));const n=r("instantiationService");function r(e){if(s.serviceIds.has(e))return s.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[s.DI_TARGET]===t?t[s.DI_DEPENDENCIES].push({id:e,index:i}):(t[s.DI_DEPENDENCIES]=[{id:e,index:i}],t[s.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,s.serviceIds.set(e,t),t}},63819:(e,t,i)=>{var s=i(537),n=i(52964),r=i(19305),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||n(e)||!!(o&&e&&e[o])}},63867:(e,t,i)=>{"use strict";var s=i(8995),n=i(31450),r=i(60002),o=i(72466),a=i(55433),c=i(90208),l=i(78209);(0,n.HW)(a.Rj.ID,a.Rj,0),(0,o.x)(c.L9),(0,n.E_)(new class extends n.DX{constructor(){super({id:a.qs,precondition:a.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){return a.Rj.get(t)?.changePasteType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:a.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){a.Rj.get(t)?.clearWidgets()}}),(0,n.Fl)(class e extends n.ks{static{this.argsSchema={type:"object",properties:{kind:{type:"string",description:l.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}}}constructor(){super({id:"editor.action.pasteAs",label:l.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]}})}run(e,t,i){let n="string"===typeof i?.kind?i.kind:void 0;return!n&&i&&(n="string"===typeof i.id?i.id:void 0),a.Rj.get(t)?.pasteAs(n?new s.k(n):void 0)}}),(0,n.Fl)(class extends n.ks{constructor(){super({id:"editor.action.pasteAsText",label:l.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){return a.Rj.get(t)?.pasteAs({providerId:c.LR.id})}})},64066:e=>{e.exports=function(){function e(e,t){let i=e.$value;return"function"===typeof t.customNumberFormatter&&(i=t.customNumberFormatter(e.$value,e.$type)),i}return e.isScalar=!0,e}},64215:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(5662),o=i(55190),a=i(31450),c=i(87908),l=i(60002),h=i(18447),d=i(631),u=i(79400),g=i(23750),p=i(50091),m=i(56942);class f{constructor(){this.lenses=[],this._disposables=new r.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const s=e.ordered(t),r=new Map,o=new f,a=s.map((async(e,s)=>{r.set(e,s);try{const s=await Promise.resolve(e.provideCodeLenses(t,i));s&&o.add(s,e)}catch(a){(0,n.M_)(a)}}));return await Promise.all(a),o.lenses=o.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:r.get(e.provider)<r.get(t.provider)?-1:r.get(e.provider)>r.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),o}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)("number"===typeof s||!s);const{codeLensProvider:o}=e.get(m.ILanguageFeaturesService),a=e.get(g.IModelService).getModel(i);if(!a)throw(0,n.Qg)();const c=[],l=new r.Cm;return _(o,a,h.XO.None).then((e=>{l.add(e);const t=[];for(const i of e.lenses)void 0===s||null===s||Boolean(i.symbol.command)?c.push(i.symbol):s-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.XO.None)).then((e=>c.push(e||i.symbol))));return Promise.all(t)})).then((()=>c)).finally((()=>{setTimeout((()=>l.dispose()),100)}))}));var v=i(41234),C=i(74320),E=i(36677),b=i(14718),S=i(63591),y=i(9711),w=i(25893),R=i(8597),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=(0,S.u1)("ICodeLensCache");class k{constructor(e,t){this.lineCount=e,this.data=t}}let A=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new C.qK(20,.75);(0,R.U3)(w.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i);const s=v.Jh.filter(e.onWillSaveState,(e=>e.reason===y.LP.SHUTDOWN));v.Jh.once(s)((i=>{e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:e.symbol.command?.title}}))),s=new f;s.add({lenses:i,dispose:()=>{}},this._fakeProvider);const n=new k(e.getLineCount(),s);this._cache.set(e.uri.toString(),n)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const s=new Set;for(const e of i.data.lenses)s.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...s.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],s=[];for(const e of i.lines)s.push({range:new E.Q(e,1,e,11)});const n=new f;n.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(e,new k(i.lineCount,n))}}catch{}}};A=L([T(0,y.CS)],A),(0,b.v)(x,A,1);var N=i(20370),I=i(87289);class O{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class D{static{this._idPool=0}constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+D._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let s=!1;for(let n=0;n<e.length;n++){const t=e[n];if(t&&(s=!0,t.command)){const s=(0,N.n)(t.command.title.trim());if(t.command.id){const e="c"+D._idPool++;i.push(R.$("a",{id:e,title:t.command.tooltip,role:"button"},...s)),this._commands.set(e,t.command)}else i.push(R.$("span",{title:t.command.tooltip},...s));n+1<e.length&&i.push(R.$("span",void 0,"\xa0|\xa0"))}}s?(R.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):R.Ln(this._domNode,R.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}class M{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,s=t.length;i<s;i++)this._addDecorationsCallbacks[i](t[i])}}const P=I.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,s,n,r){let o;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),o=o?E.Q.plusRange(o,e.symbol.range):E.Q.lift(e.symbol.range)})),this._viewZone=new O(o.startLineNumber-1,n,r),this._viewZoneId=s.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new D(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),s=this._data[t].symbol;return!(!i||E.Q.isEmpty(s.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var U=i(78209),H=i(58591),B=i(51467),W=i(32500),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class{static{this.ID="css.editor.codeLens"}constructor(e,t,i,n,o,a){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=a,this._disposables=new r.Cm,this._localToDispose=new r.Cm,this._lenses=[],this._oldCodeLensModels=new r.Cm,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new s.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),s=this._editor.getOption(50),{style:n}=this._editor.getContainerDomNode();n.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),n.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),n.setProperty("--vscode-editorCodeLens-fontFeatureSettings",s.fontFeatureSettings),i&&(n.setProperty("--vscode-editorCodeLens-fontFamily",i),n.setProperty("--vscode-editorCodeLens-fontFamilyDefault",c.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,s.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const s of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof s.onDidChange){const e=s.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new s.uC((()=>{const t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=(0,s.SS)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);const n=this._provideCodeLensDebounce.update(e,Date.now()-t);i.delay=n,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()}),n.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,r.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let s=-1;this._lenses.forEach((e=>{e.isValid()&&s!==e.getLineNumber()?(e.update(t),s=e.getLineNumber()):i.push(e)}));const n=new M;i.forEach((e=>{e.dispose(n,t),this._lenses.splice(this._lenses.indexOf(e),1)})),n.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorText((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,r.s)((()=>{if(this._editor.getModel()){const e=o.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===t?.tagName&&(t=t.parentElement),"A"===t?.tagName)for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new M;for(const s of this._lenses)s.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let s;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(s&&s[s.length-1].symbol.range.startLineNumber===e?s.push(o):(s=[o],i.push(s)))}if(!i.length&&!this._lenses.length)return;const n=o.D.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const s=new M;let n=0,o=0;for(;o<i.length&&n<this._lenses.length;){const e=i[o][0].symbol.range.startLineNumber,a=this._lenses[n].getLineNumber();a<e?(this._lenses[n].dispose(s,t),this._lenses.splice(n,1)):a===e?(this._lenses[n].updateCodeLensSymbols(i[o],s),o++,n++):(this._lenses.splice(n,0,new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),n++,o++)}for(;n<this._lenses.length;)this._lenses[n].dispose(s,t),this._lenses.splice(n,1);for(;o<i.length;)this._lenses.push(new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),o++;s.commit(e)}))})),n.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;const e=this._editor.getModel();if(!e)return;const t=[],i=[];if(this._lenses.forEach((s=>{const n=s.computeIfNecessary(e);n&&(t.push(n),i.push(s))})),0===t.length)return;const r=Date.now(),o=(0,s.SS)((s=>{const r=t.map(((t,r)=>{const o=new Array(t.length),a=t.map(((t,i)=>t.symbol.command||"function"!==typeof t.provider.resolveCodeLens?(o[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,s)).then((e=>{o[i]=e}),n.M_)));return Promise.all(a).then((()=>{s.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(o)}))}));return Promise.all(r)}));this._resolveCodeLensesPromise=o,this._resolveCodeLensesPromise.then((()=>{const t=this._resolveCodeLensesDebounce.update(e,Date.now()-r);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,n.dz)(e),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};G=V([z(1,m.ILanguageFeaturesService),z(2,W.ILanguageFeatureDebounceService),z(3,p.d),z(4,H.Ot),z(5,x)],G),(0,a.HW)(G.ID,G,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:l.R.hasCodeLensProvider,label:(0,U.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(B.GK),s=e.get(p.d),n=e.get(H.Ot),r=t.getSelection().positionLineNumber,o=t.getContribution(G.ID);if(!o)return;const a=await o.getModel();if(!a)return;const c=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(0===c.length)return;const l=await i.pick(c,{canPickMany:!1,placeHolder:(0,U.kg)("placeHolder","Select a command")});if(!l)return;let h=l.command;if(a.isDisposed){const e=await o.getModel(),t=e?.lenses.find((e=>e.symbol.range.startLineNumber===r&&e.symbol.command?.title===h.title));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await s.executeCommand(h.id,...h.arguments||[])}catch(d){n.error(d)}}})},64256:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(3158).then(i.bind(i,23158))})},64280:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.056-1.645.28-.196.402-.332.46-.425a.54.54 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a1 1 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577M9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},64317:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>I,bo:()=>M});var s,n=i(8597),r=i(5646),o=i(47625),a=i(36921),c=i(25890),l=i(90766),h=i(10350),d=i(5662),u=i(31308),g=i(87958),p=i(98067),m=i(25689),f=i(83069),_=i(62083),v=i(78244),C=i(78209),E=i(57629),b=i(65644),S=i(27195),y=i(50091),w=i(32848),R=i(47508),L=i(63591),T=i(98031),x=i(90651),k=i(61394),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.un)(this,(e=>{const t=this.model.read(e)?.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new f.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,u.yC)(((t,i)=>{const s=this.model.read(t);if(!s||!this.alwaysShowToolbar.read(t))return;const n=(0,g.rm)(((t,i)=>{const n=i.add(this.instantiationService.createInstance(M,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.activeCommands));return e.addContentWidget(n),i.add((0,d.s)((()=>e.removeContentWidget(n)))),i.add((0,u.fm)((e=>{this.position.read(e)&&s.lastTriggerKind.read(e)!==_.qw.Explicit&&s.triggerExplicitly()}))),n})),r=(0,u.ZX)(this,((e,t)=>!!this.position.read(e)||!!t));i.add((0,u.fm)((e=>{r.read(e)&&n.read(e)})))})))}};I=A([N(2,L._Y)],I);const O=(0,k.pU)("inline-suggestion-hints-next",h.W.chevronRight,(0,C.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),D=(0,k.pU)("inline-suggestion-hints-previous",h.W.chevronLeft,(0,C.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let M=class extends d.jG{static{s=this}static{this._dropDownVisible=!1}static get dropDownVisible(){return this._dropDownVisible}static{this.id=0}createCommandAction(e,t,i){const s=new a.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),n=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return n&&(r=(0,C.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,n.getLabel())),s.tooltip=r,s}constructor(e,t,i,r,o,c,h,d,g,p,f){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=c,this._commandService=h,this.keybindingService=g,this._contextKeyService=p,this._menuService=f,this.id="InlineSuggestionHintsContentWidget"+s.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div@toolBar")]),this.previousAction=this.createCommandAction(v.Vl,(0,C.kg)("previous","Previous"),m.L.asClassName(D)),this.availableSuggestionCountAction=new a.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(v.PA,(0,C.kg)("next","Next"),m.L.asClassName(O)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(S.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new l.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new l.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(d.createInstance(U,this.nodes.toolBar,S.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof S.Xe)return d.createInstance(F,e,void 0);if(e===this.availableSuggestionCountAction){const t=new P(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{s._dropDownVisible=e}))),this._register((0,u.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.fm)((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof S.Xe&&t.push(e);t.length>0&&t.unshift(new a.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};M=s=A([N(6,y.d),N(7,L._Y),N(8,T.b),N(9,w.fN),N(10,S.ez)],M);class P extends r.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class F extends E.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;this._register(new o.x(t,p.OS,{disableTitle:!0,...o.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let U=class extends b.p{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this.menuId=t,this.options2=i,this.menuService=s,this.contextKeyService=n,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,E.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setPrependedPrimaryActions(e){(0,c.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,c.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=A([N(3,S.ez),N(4,w.fN),N(5,R.Z),N(6,T.b),N(7,y.d),N(8,x.k)],U)},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>l,D7:()=>m,EM:()=>g,MB:()=>c,M_:()=>r,Qg:()=>d,aD:()=>h,cU:()=>o,dz:()=>n,iH:()=>u});const s=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(e){c(e)||s.onUnexpectedError(e)}function r(e){c(e)||s.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},64395:(e,t,i)=>{"use strict";function s(e,t){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i+=t:i++;return i}function n(e,t,i){e=e<0?0:e;let s="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)s+="\t"}for(let n=0;n<e;n++)s+=" ";return s}i.d(t,{c:()=>s,k:()=>n})},64454:(e,t,i)=>{"use strict";function s(e){let t=0,i=0,s=0,n=0;for(let r=0,o=e.length;r<o;r++){const a=e.charCodeAt(r);13===a?(0===t&&(i=r),t++,r+1<o&&10===e.charCodeAt(r+1)?(n|=2,r++):n|=3,s=r+1):10===a&&(n|=1,0===t&&(i=r),t++,s=r+1)}return 0===t&&(i=e.length),[t,i,e.length-s,n]}i.d(t,{W:()=>s})},64470:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>o,HP:()=>l,Ic:()=>d,U0:()=>r,Wn:()=>s,bg:()=>a,mS:()=>c,uK:()=>n,vn:()=>h});class s{constructor(){this.changeType=1}}class n{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",s=0;for(const n of t)i+=e.substring(s,n.column-1),s=n.column-1,i+=n.options.content;return i+=e.substring(s),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new n(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new n(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,s,n){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=s,this.order=n}}class r{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class o{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class c{constructor(){this.changeType=5}}class l{constructor(e,t,i,s){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=s,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.versionId,n=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing;return new l(i,s,n,r)}}class h{constructor(e){this.changes=e}}class d{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=l.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=d._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new d(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.eol,n=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:s,isEolChange:e.isEolChange&&t.isEolChange,versionId:n,isUndoing:r,isRedoing:o,isFlush:a}}}},64829:(e,t,i)=>{"use strict";i.d(t,{k:()=>o,x:()=>a});var s=i(81674),n=i(99020);function r(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class o{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,s){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=s}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${r(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${r(this.oldText)}")`:`(replace@${this.oldPosition} "${r(this.oldText)}" with "${r(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;s.Sw(e,n,i),i+=4;for(let r=0;r<n;r++)s.gN(e,t.charCodeAt(r),i),i+=2;return i}static _readString(e,t){const i=s.bb(e,t);return t+=4,(0,n.Su)(e,t,i)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return s.Sw(e,this.oldPosition,t),t+=4,s.Sw(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),t=o._writeString(e,this.newText,t)}static read(e,t,i){const n=s.bb(e,t);t+=4;const r=s.bb(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const c=o._readString(e,t);return t+=o._writeStringSize(c),i.push(new o(n,a,r,c)),t}}function a(e,t){if(null===e||0===e.length)return t;return new c(e,t).compress()}class c{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),s=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(s),s=this._getCurr(++t);continue}if(null===s){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldEnd<=i.newPosition){this._acceptCurr(s),s=this._getCurr(++t);continue}if(i.newEnd<=s.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldPosition<i.newPosition){const[e,t]=c._splitCurr(s,i.newPosition-s.oldPosition);this._acceptCurr(e),s=t;continue}if(i.newPosition<s.oldPosition){const[e,t]=c._splitPrev(i,s.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let n,r;if(s.oldEnd===i.newEnd)n=i,r=s,i=this._getPrev(++e),s=this._getCurr(++t);else if(s.oldEnd<i.newEnd){const[e,o]=c._splitPrev(i,s.oldLength);n=e,r=s,i=o,s=this._getCurr(++t)}else{const[t,o]=c._splitCurr(s,i.newLength);n=i,r=t,i=this._getPrev(++e),s=o}this._result[this._resultLen++]=new o(n.oldPosition,n.oldText,r.newPosition,r.newText),this._prevDeltaOffset+=n.newLength-n.oldLength,this._currDeltaOffset+=r.newLength-r.oldLength}const n=c._merge(this._result);return c._removeNoOps(n)}_acceptCurr(e){this._result[this._resultLen++]=c._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=c._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),s=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,i),new o(e.oldEnd,"",e.newPosition+t,s)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),s=e.oldText.substr(t);return[new o(e.oldPosition,i,e.newPosition,e.newText),new o(e.oldPosition+t,s,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,s=e[0];for(let n=1;n<e.length;n++){const r=e[n];s.oldEnd===r.oldPosition?s=new o(s.oldPosition,s.oldText+r.oldText,s.newPosition,s.newText+r.newText):(t[i++]=s,s=r)}return t[i++]=s,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let s=0;s<e.length;s++){const n=e[s];n.oldText!==n.newText&&(t[i++]=n)}return t}}},65644:(e,t,i)=>{"use strict";i.d(t,{m:()=>N,p:()=>A});var s=i(8597),n=i(47358),r=i(11799),o=i(89506),a=i(36921),c=i(10350),l=i(25689),h=i(41234),d=i(5662),u=i(78209),g=i(42904);class p extends d.jG{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,g.bW)()),this.options=i,this.toggleMenuAction=this._register(new m((()=>this.toggleMenuActionViewItem?.show()),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,s)=>{if(e.id===m.ID)return this.toggleMenuActionViewItem=new o.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:l.L.asClassNameArray(i.moreIcon??c.W.toolBarMore),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){const t=i.actionViewItemProvider(e,s);if(t)return t}if(e instanceof a.YH){const i=new o.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,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}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){const t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||u.kg("moreActions","More Actions..."),super(m.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}}var f=i(25890),_=i(48495),v=i(64383),C=i(42522),E=i(57629),b=i(27195),S=i(60858),y=i(50091),w=i(32848),R=i(47508),L=i(98031),T=i(90651),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};let A=class extends p{constructor(e,t,i,s,n,r,o,a){super(e,n,{getKeyBinding:e=>r.lookupKeybinding(e.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:"string"===typeof t?.telemetrySource}),this._options=t,this._menuService=i,this._contextKeyService=s,this._contextMenuService=n,this._keybindingService=r,this._commandService=o,this._sessionDisposables=this._store.add(new d.Cm);const c=t?.telemetrySource;c&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:c}))))}setActions(e,t=[],i){this._sessionDisposables.clear();const r=e.slice(),o=t.slice(),c=[];let l=0;const h=[];let d=!1;if(-1!==this._options?.hiddenItemStrategy)for(let s=0;s<r.length;s++){const e=r[s];(e instanceof b.Xe||e instanceof b.nI)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&l++,e.hideActions.isHidden&&(d=!0,r[s]=void 0,0!==this._options?.hiddenItemStrategy&&(h[s]=e))))}if(void 0!==this._options?.overflowBehavior){const e=(0,_.E)(new Set(this._options.overflowBehavior.exempted),C.f.map(r,(e=>e?.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let s=0;s<r.length;s++){const n=r[s];n&&(i++,e.has(n.id)||i>=t&&(r[s]=void 0,h[s]=n))}}(0,f.SK)(r),(0,f.SK)(h),super.setActions(r,a.wv.join(h,o)),(c.length>0||r.length>0)&&this._sessionDisposables.add((0,s.ko)(this.getElement(),"contextmenu",(e=>{const t=new n.P((0,s.zk)(this.getElement()),e),r=this.getItemAction(t.target);if(!r)return;t.preventDefault(),t.stopPropagation();const o=[];if(r instanceof b.Xe&&r.menuKeybinding)o.push(r.menuKeybinding);else if(!(r instanceof b.nI||r instanceof m)){const e=!!this._keybindingService.lookupKeybinding(r.id);o.push((0,S.D)(this._commandService,this._keybindingService,r.id,void 0,e))}if(c.length>0){let e=!1;if(1===l&&0===this._options?.hiddenItemStrategy){e=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.ih)({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof b.Xe||r instanceof b.nI)){if(!r.hideActions)return;o.push(r.hideActions.hide)}else o.push((0,a.ih)({id:"label",label:(0,u.kg)("hide","Hide"),enabled:!1,run(){}}))}const h=a.wv.join(o,c);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),d&&i&&(h.push(new a.wv),h.push((0,a.ih)({id:"resetThisMenu",label:(0,u.kg)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),0!==h.length&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>h,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:"string"===typeof this._options?.telemetrySource,contextKeyService:this._contextKeyService})})))}};A=x([k(2,b.ez),k(3,w.fN),k(4,R.Z),k(5,L.b),k(6,y.d),k(7,T.k)],A);let N=class extends A{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(s.createMenu(t,n,{emitEventsForSubmenuChanges:!0})),d=()=>{const t=[],s=[];(0,E.Ot)(l,i?.menuOptions,{primary:t,secondary:s},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===t.length&&0===s.length),super.setActions(t,s)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=x([k(3,b.ez),k(4,w.fN),k(5,R.Z),k(6,L.b),k(7,y.d),k(8,T.k)],N)},65872:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299m-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.08 2.08 0 0 0-1.88-1.88m3.098.658a3.6 3.6 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88z",clipRule:"evenodd"}))},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>oe,i:()=>ce});var s=i(10350),n=i(5662),r=i(31450),o=i(80301),a=i(83069),c=i(36677),l=i(60002),h=i(25890),d=i(41234),u=i(58925),g=i(91508),p=i(79400),m=i(14718),f=i(63591),_=i(75147),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};class b{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let S=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new d.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new n.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const s=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===s?c.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||c.Q.compareRangesUsingStarts(e,t)),i},o=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(r)};o(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(o(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new b(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let s=!1,n=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));n<0&&(n=(0,h.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),n<0&&(n=~n));for(let r=n;r<this._markers.length;r++){let i=c.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new c.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,s=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}s||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const s=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),s!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(c.Q.containsPosition(this._markers[i],t))return new b(this._markers[i],i+1,this._markers.length)}};S=C([E(1,_.DR),E(2,v.pG)],S);const y=(0,f.u1)("IMarkerNavigationService");let w=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new S(e,this._markerService,this._configService)}};w=C([E(0,_.DR),E(1,v.pG)],w),(0,m.v)(y,w,1);var R,L=i(78209),T=i(27195),x=i(32848),k=i(61394),A=i(8597),N=i(31295),I=i(47661),O=i(89403),D=i(84226),M=i(57629),P=i(67841),F=i(49099),U=i(25689),H=i(42291);!function(e){e.className=function(e){switch(e){case H.A.Ignore:return"severity-ignore "+U.L.asClassName(s.W.info);case H.A.Info:return U.L.asClassName(s.W.info);case H.A.Warning:return U.L.asClassName(s.W.warning);case H.A.Error:return U.L.asClassName(s.W.error);default:return""}}}(R||(R={}));var B,W=i(66261),V=i(47612),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};class j{constructor(e,t,i,s,r){this._openerService=s,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new n.Cm,this._editor=t;const o=document.createElement("div");o.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.add(A.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new N.Se(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{o.style.left=`-${e.scrollLeft}px`,o.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,n.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:s,code:n}=e;let r=(t?.length||0)+2;n&&(r+="string"===typeof n?n.length:n.value.length);const o=(0,g.uz)(i);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+r,this._longestLineLength);A.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of o)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||n){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(n)if("string"===typeof n){const t=document.createElement("span");t.innerText=`(${n})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=A.$("a.code-link"),this._codeLink.setAttribute("href",`${n.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(n.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};A.BC(this._codeLink,A.$("span")).innerText=n.value,e.appendChild(this._codeLink)}}if(A.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.EI)(s)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of s){const i=document.createElement("div"),s=document.createElement("a");s.classList.add("filename"),s.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,s.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(s,t);const n=document.createElement("span");n.innerText=t.message,i.appendChild(s),i.appendChild(n),this._lines+=1,e.appendChild(i)}}const c=this._editor.getOption(50),l=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:l,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=L.kg("Error","Error");break;case _.cj.Warning:t=L.kg("Warning","Warning");break;case _.cj.Info:t=L.kg("Info","Info");break;case _.cj.Hint:t=L.kg("Hint","Hint")}let i=L.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const s=this._editor.getModel();if(s&&e.startLineNumber<=s.getLineCount()&&e.startLineNumber>=1){i=`${s.getLineContent(e.startLineNumber)}, ${i}`}return i}}let K=class extends D.j6{static{B=this}static{this.TitleMenu=new T.D8("gotoErrorTitleMenu")}constructor(e,t,i,s,r,o,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=s,this._contextKeyService=o,this._labelService=a,this._callOnDispose=new n.Cm,this._onDidSelectRelatedInformation=new d.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=I.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Q,i=X;this._severity===_.cj.Warning?(t=Z,i=J):this._severity===_.cj.Info&&(t=ee,i=te);const s=e.getColor(t),n=e.getColor(i);this.style({arrowColor:s,frameColor:s,headerBackgroundColor:n,primaryHeadingColor:e.getColor(D._X),secondaryHeadingColor:e.getColor(D.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.getMenuActions(B.TitleMenu,this._contextKeyService);(0,M.Ot)(i,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0})}_fillTitleIcon(e){this._icon=A.BC(e,A.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new j(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const s=c.Q.lift(e),n=this.editor.getPosition(),r=n&&s.containsPosition(n)?n:s.getStartPosition();super.show(r,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const e=i>1?L.kg("problems","{0} of {1} problems",t,i):L.kg("change","{0} of {1} problem",t,i);this.setTitle((0,O.P8)(o.uri),e)}this._icon.className=`codicon ${R.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};K=B=z([G(1,V.Gy),G(2,F.C),G(3,T.ez),G(4,f._Y),G(5,x.fN),G(6,P.L)],K);const Y=(0,W.yLr)(W.Rbi,W.AN$),q=(0,W.yLr)(W.Hng,W.Stt),$=(0,W.yLr)(W.pOz,W.IIb),Q=(0,W.x1A)("editorMarkerNavigationError.background",{dark:Y,light:Y,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),X=(0,W.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,W.JO0)(Q,.1),light:(0,W.JO0)(Q,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Z=(0,W.x1A)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,W.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,W.JO0)(Z,.1),light:(0,W.JO0)(Z,.1),hcDark:"#0C141F",hcLight:(0,W.JO0)(Z,.2)},L.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,W.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,W.JO0)(ee,.1),light:(0,W.JO0)(ee,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,W.x1A)("editorMarkerNavigation.background",W.YtV,L.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var se,ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class{static{se=this}static{this.ID="editor.contrib.markerController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=s,this._instantiationService=r,this._sessionDispoables=new n.Cm,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(K,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{this._model?.selected&&c.Q.containsPosition(this._model?.selected.marker,e.position)||this._model?.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:c.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){if(this._editor.hasModel()){const i=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(i.move(e,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=await this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);s&&(se.get(s)?.close(),se.get(s)?.nagivate(e,t))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}};oe=se=ne([re(1,y),re(2,x.fN),re(3,o.T),re(4,f._Y)],oe);class ae extends r.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){t.hasModel()&&oe.get(t)?.nagivate(this._next,this._multiFile)}}class ce extends ae{static{this.ID="editor.action.marker.next"}static{this.LABEL=L.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)")}constructor(){super(!0,!1,{id:ce.ID,label:ce.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:578,weight:100},menuOpts:{menuId:K.TitleMenu,title:ce.LABEL,icon:(0,k.pU)("marker-navigation-next",s.W.arrowDown,L.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}class le extends ae{static{this.ID="editor.action.marker.prev"}static{this.LABEL=L.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)")}constructor(){super(!1,!1,{id:le.ID,label:le.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1602,weight:100},menuOpts:{menuId:K.TitleMenu,title:le.LABEL,icon:(0,k.pU)("marker-navigation-previous",s.W.arrowUp,L.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}(0,r.HW)(oe.ID,oe,4),(0,r.Fl)(ce),(0,r.Fl)(le),(0,r.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:L.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:66,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:L.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1090,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new x.N1("markersNavigationVisible",!1),de=r.DX.bindToContribution(oe.get);(0,r.E_)(new de({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:l.R.focus,primary:9,secondary:[1033]}}))},66235:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(30).then(i.bind(i,80030))})},66261:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>s.Fd,buw:()=>h,GuP:()=>s.Gu,Bbc:()=>s.Bb,HP_:()=>s.HP,WMx:()=>u,zRE:()=>g,sAS:()=>le,vV$:()=>ae,etE:()=>ce,mc0:()=>oe,XJc:()=>Ze,raQ:()=>et,G_h:()=>Qe,T9h:()=>Je,xOA:()=>it,Inn:()=>tt,nZG:()=>st,Q1$:()=>Xe,OcU:()=>dt,C5U:()=>gt,t0B:()=>ut,b1q:()=>l,EY1:()=>X,ZEf:()=>Z,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>I,YtV:()=>C,AN$:()=>R,Rbi:()=>w,f3U:()=>F,Ubg:()=>U,ECk:()=>B,p8Y:()=>H,S5J:()=>W,By2:()=>E,i61:()=>N,WfR:()=>V,oZ8:()=>z,tan:()=>M,IIb:()=>A,pOz:()=>k,WL6:()=>j,P6i:()=>G,B2L:()=>$,sjA:()=>q,_pU:()=>Y,HwT:()=>K,seu:()=>O,rm4:()=>D,QwA:()=>P,whs:()=>L,Stt:()=>x,Hng:()=>T,CgL:()=>b,sIe:()=>y,FiB:()=>S,tAP:()=>c,CU6:()=>o,t4B:()=>a,c1f:()=>Me,uNK:()=>Oe,$$0:()=>Pe,L4c:()=>Ae,Zgs:()=>Ie,cws:()=>Ne,_$n:()=>ze,eYZ:()=>je,h9z:()=>Ge,I$A:()=>Fe,YSW:()=>He,L9Z:()=>Ue,ULt:()=>Be,C1n:()=>Ve,T5N:()=>We,HDX:()=>pt,zUX:()=>ft,Qfh:()=>_t,eUu:()=>mt,Rjz:()=>St,GVV:()=>yt,fED:()=>wt,yIp:()=>Ot,Yoe:()=>It,pnl:()=>Pt,P9Z:()=>Ut,fiM:()=>Ft,H8q:()=>Ht,gtq:()=>bt,VFX:()=>vt,efJ:()=>Ct,eMz:()=>Mt,p7Y:()=>Et,QI5:()=>Dt,lO1:()=>At,QRv:()=>Nt,CQ3:()=>xt,ijf:()=>kt,uNx:()=>Rt,f4y:()=>Lt,C9U:()=>Tt,c6Y:()=>Kt,g$2:()=>Gt,dd_:()=>jt,Ux$:()=>qt,SNb:()=>$t,pmr:()=>Yt,D7X:()=>Qt,ILr:()=>xe,yLC:()=>Te,AjU:()=>Se,K1Z:()=>ke,KoI:()=>Re,yr0:()=>we,Xp1:()=>ye,uMG:()=>Le,yLr:()=>s.yL,fAP:()=>_e,z5H:()=>ve,iwL:()=>ti,NBf:()=>ei,tYX:()=>Ce,bNw:()=>be,JPj:()=>Ee,BTi:()=>v,ELA:()=>Xt,HJZ:()=>Zt,AlL:()=>ri,nH:()=>si,c7i:()=>ni,er1:()=>Jt,Ukx:()=>rt,Ips:()=>ot,jOE:()=>nt,xWN:()=>ct,ZBU:()=>lt,kPT:()=>at,jr9:()=>ht,x1A:()=>s.x1,bXl:()=>p,mhZ:()=>_,gnV:()=>m,cI_:()=>f,rvE:()=>Ke,HcB:()=>$e,yqq:()=>qe,lWP:()=>Ye,k5u:()=>Vt,sbQ:()=>zt,vwp:()=>d,JO0:()=>s.JO,pft:()=>Wt,U4U:()=>Bt,DSL:()=>ne,f9l:()=>se});var s=i(83844),n=i(78209),r=i(47661);const o=(0,s.x1)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=((0,s.x1)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,s.x1)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,s.x1)("descriptionForeground",{light:"#717171",dark:(0,s.JO)(o,.7),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),(0,s.x1)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("iconForeground","The default color for icons in the workbench."))),c=(0,s.x1)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),l=(0,s.x1)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),h=(0,s.x1)("contrastActiveBorder",{light:null,dark:null,hcDark:c,hcLight:c},n.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),d=((0,s.x1)("selection.background",null,n.kg("selectionBackground","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.")),(0,s.x1)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkForeground","Foreground color for links in text."))),u=((0,s.x1)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,s.x1)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Q1.black,hcLight:"#292929"},n.kg("textSeparatorForeground","Color for text separators.")),(0,s.x1)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.kg("textPreformatForeground","Foreground color for preformatted text segments.")),(0,s.x1)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.kg("textPreformatBackground","Background color for preformatted text segments.")),(0,s.x1)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.kg("textBlockQuoteBackground","Background color for block quotes in text.")),(0,s.x1)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Q1.white,hcLight:"#292929"},n.kg("textBlockQuoteBorder","Border color for block quotes in text.")),(0,s.x1)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Q1.black,hcLight:"#F2F2F2"},n.kg("textCodeBlockBackground","Background color for code blocks in text.")),(0,s.x1)("sash.hoverBorder",c,n.kg("sashActiveBorder","Border color of active sashes.")),(0,s.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Q1.black,hcLight:"#0F4A85"},n.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),g=(0,s.x1)("badge.foreground",{dark:r.Q1.white,light:"#333",hcDark:r.Q1.white,hcLight:r.Q1.white},n.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),p=(0,s.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),m=(0,s.x1)("scrollbarSlider.background",{dark:r.Q1.fromHex("#797979").transparent(.4),light:r.Q1.fromHex("#646464").transparent(.4),hcDark:(0,s.JO)(l,.6),hcLight:(0,s.JO)(l,.4)},n.kg("scrollbarSliderBackground","Scrollbar slider background color.")),f=(0,s.x1)("scrollbarSlider.hoverBackground",{dark:r.Q1.fromHex("#646464").transparent(.7),light:r.Q1.fromHex("#646464").transparent(.7),hcDark:(0,s.JO)(l,.8),hcLight:(0,s.JO)(l,.8)},n.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),_=(0,s.x1)("scrollbarSlider.activeBackground",{dark:r.Q1.fromHex("#BFBFBF").transparent(.4),light:r.Q1.fromHex("#000000").transparent(.6),hcDark:l,hcLight:l},n.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),v=(0,s.x1)("progressBar.background",{dark:r.Q1.fromHex("#0E70C0"),light:r.Q1.fromHex("#0E70C0"),hcDark:l,hcLight:l},n.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),C=(0,s.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("editorBackground","Editor background color.")),E=(0,s.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Q1.white,hcLight:o},n.kg("editorForeground","Editor default foreground color.")),b=((0,s.x1)("editorStickyScroll.background",C,n.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,s.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,s.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,s.x1)("editorStickyScroll.shadow",p,n.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),(0,s.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Q1.white},n.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),S=(0,s.x1)("editorWidget.foreground",o,n.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),y=(0,s.x1)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:l,hcLight:l},n.kg("editorWidgetBorder","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.")),w=((0,s.x1)("editorWidget.resizeBorder",null,n.kg("editorWidgetResizeBorder","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.")),(0,s.x1)("editorError.background",null,n.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),R=(0,s.x1)("editorError.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.kg("errorBorder","If set, color of double underlines for errors in the editor.")),L=(0,s.x1)("editorWarning.background",null,n.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),T=(0,s.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),x=(0,s.x1)("editorWarning.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#FFCC00").transparent(.8),hcLight:r.Q1.fromHex("#FFCC00").transparent(.8)},n.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),k=((0,s.x1)("editorInfo.background",null,n.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),A=(0,s.x1)("editorInfo.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.kg("infoBorder","If set, color of double underlines for infos in the editor.")),N=(0,s.x1)("editorHint.foreground",{dark:r.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),I=((0,s.x1)("editorHint.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.kg("hintBorder","If set, color of double underlines for hints in the editor.")),(0,s.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:r.Q1.blue,hcDark:r.Q1.cyan,hcLight:"#292929"},n.kg("activeLinkForeground","Color of active links."))),O=(0,s.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.kg("editorSelectionBackground","Color of the editor selection.")),D=(0,s.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Q1.white},n.kg("editorSelectionForeground","Color of the selected text for high contrast.")),M=(0,s.x1)("editor.inactiveSelectionBackground",{light:(0,s.JO)(O,.5),dark:(0,s.JO)(O,.5),hcDark:(0,s.JO)(O,.7),hcLight:(0,s.JO)(O,.5)},n.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),P=(0,s.x1)("editor.selectionHighlightBackground",{light:(0,s.oG)(O,C,.3,.6),dark:(0,s.oG)(O,C,.3,.6),hcDark:null,hcLight:null},n.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),F=((0,s.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,s.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.kg("editorFindMatch","Color of the current search match.")),(0,s.x1)("editor.findMatchForeground",null,n.kg("editorFindMatchForeground","Text color of the current search match."))),U=(0,s.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,s.x1)("editor.findMatchHighlightForeground",null,n.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),B=((0,s.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorFindMatchBorder","Border color of the current search match.")),(0,s.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("findMatchHighlightBorder","Border color of the other search matches."))),W=(0,s.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,s.JO)(h,.4),hcLight:(0,s.JO)(h,.4)},n.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),V=((0,s.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorHoverWidget.background",b,n.kg("hoverBackground","Background color of the editor hover."))),z=((0,s.x1)("editorHoverWidget.foreground",S,n.kg("hoverForeground","Foreground color of the editor hover.")),(0,s.x1)("editorHoverWidget.border",y,n.kg("hoverBorder","Border color of the editor hover."))),G=((0,s.x1)("editorHoverWidget.statusBarBackground",{dark:(0,s.a)(V,.2),light:(0,s.e$)(V,.05),hcDark:b,hcLight:b},n.kg("statusBarBackground","Background color of the editor hover status bar.")),(0,s.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:r.Q1.white,hcLight:r.Q1.black},n.kg("editorInlayHintForeground","Foreground color of inline hints"))),j=(0,s.x1)("editorInlayHint.background",{dark:(0,s.JO)(u,.1),light:(0,s.JO)(u,.1),hcDark:(0,s.JO)(r.Q1.white,.1),hcLight:(0,s.JO)(u,.1)},n.kg("editorInlayHintBackground","Background color of inline hints")),K=(0,s.x1)("editorInlayHint.typeForeground",G,n.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Y=(0,s.x1)("editorInlayHint.typeBackground",j,n.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),q=(0,s.x1)("editorInlayHint.parameterForeground",G,n.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),$=(0,s.x1)("editorInlayHint.parameterBackground",j,n.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Q=(0,s.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),X=((0,s.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,s.x1)("editorLightBulbAi.foreground",Q,n.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,s.x1)("editor.snippetTabstopHighlightBackground",{dark:new r.Q1(new r.bU(124,124,124,.3)),light:new r.Q1(new r.bU(10,50,100,.2)),hcDark:new r.Q1(new r.bU(124,124,124,.3)),hcLight:new r.Q1(new r.bU(10,50,100,.2))},n.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,s.x1)("editor.snippetTabstopHighlightBorder",null,n.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBackground",null,n.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Q1(new r.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new r.Q1(new r.bU(155,185,85,.2))),Z=new r.Q1(new r.bU(255,0,0,.2)),J=(0,s.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ee=(0,s.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),te=((0,s.x1)("diffEditor.insertedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},n.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditor.removedLineBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},n.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditorGutter.insertedLineBackground",null,n.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,s.x1)("diffEditorGutter.removedLineBackground",null,n.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),(0,s.x1)("diffEditorOverview.insertedForeground",null,n.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),ie=(0,s.x1)("diffEditorOverview.removedForeground",null,n.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),se=((0,s.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,s.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,s.x1)("diffEditor.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("diffEditorBorder","Border color between the two text editors.")),(0,s.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,s.x1)("diffEditor.unchangedRegionBackground","sideBar.background",n.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedRegionForeground","foreground",n.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),(0,s.x1)("widget.shadow",{dark:(0,s.JO)(r.Q1.black,.36),light:(0,s.JO)(r.Q1.black,.16),hcDark:null,hcLight:null},n.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ne=(0,s.x1)("widget.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),re=(0,s.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),oe=((0,s.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,s.x1)("toolbar.activeBackground",{dark:(0,s.a)(re,.1),light:(0,s.e$)(re,.1),hcDark:null,hcLight:null},n.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),(0,s.x1)("breadcrumb.foreground",(0,s.JO)(o,.8),n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ae=(0,s.x1)("breadcrumb.background",C,n.kg("breadcrumbsBackground","Background color of breadcrumb items.")),ce=(0,s.x1)("breadcrumb.focusForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),le=(0,s.x1)("breadcrumb.activeSelectionForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),he=((0,s.x1)("breadcrumbPicker.background",b,n.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),r.Q1.fromHex("#40C8AE").transparent(.5)),de=r.Q1.fromHex("#40A6FF").transparent(.5),ue=r.Q1.fromHex("#606060").transparent(.4),ge=(0,s.x1)("merge.currentHeaderBackground",{dark:he,light:he,hcDark:null,hcLight:null},n.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),pe=((0,s.x1)("merge.currentContentBackground",(0,s.JO)(ge,.4),n.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.incomingHeaderBackground",{dark:de,light:de,hcDark:null,hcLight:null},n.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),me=((0,s.x1)("merge.incomingContentBackground",(0,s.JO)(pe,.4),n.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.commonHeaderBackground",{dark:ue,light:ue,hcDark:null,hcLight:null},n.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),fe=((0,s.x1)("merge.commonContentBackground",(0,s.JO)(me,.4),n.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),_e=((0,s.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,s.JO)(ge,1),light:(0,s.JO)(ge,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,s.JO)(pe,1),light:(0,s.JO)(pe,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,s.JO)(me,1),light:(0,s.JO)(me,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},n.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ve=(0,s.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",n.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ce=(0,s.x1)("problemsErrorIcon.foreground",w,n.kg("problemsErrorIconForeground","The color used for the problems error icon.")),Ee=(0,s.x1)("problemsWarningIcon.foreground",T,n.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),be=(0,s.x1)("problemsInfoIcon.foreground",k,n.kg("problemsInfoIconForeground","The color used for the problems info icon.")),Se=(0,s.x1)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},n.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ye=(0,s.x1)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),we=(0,s.x1)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Re=(0,s.x1)("minimap.infoHighlight",{dark:k,light:k,hcDark:A,hcLight:A},n.kg("minimapInfo","Minimap marker color for infos.")),Le=(0,s.x1)("minimap.warningHighlight",{dark:T,light:T,hcDark:x,hcLight:x},n.kg("overviewRuleWarning","Minimap marker color for warnings.")),Te=(0,s.x1)("minimap.errorHighlight",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},n.kg("minimapError","Minimap marker color for errors.")),xe=(0,s.x1)("minimap.background",null,n.kg("minimapBackground","Minimap background color.")),ke=(0,s.x1)("minimap.foregroundOpacity",r.Q1.fromHex("#000f"),n.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ae=((0,s.x1)("minimapSlider.background",(0,s.JO)(m,.5),n.kg("minimapSliderBackground","Minimap slider background color.")),(0,s.x1)("minimapSlider.hoverBackground",(0,s.JO)(f,.5),n.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),(0,s.x1)("minimapSlider.activeBackground",(0,s.JO)(_,.5),n.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),(0,s.x1)("charts.foreground",o,n.kg("chartsForeground","The foreground color used in charts.")),(0,s.x1)("charts.lines",(0,s.JO)(o,.5),n.kg("chartsLines","The color used for horizontal lines in charts.")),(0,s.x1)("charts.red",w,n.kg("chartsRed","The red color used in chart visualizations.")),(0,s.x1)("charts.blue",k,n.kg("chartsBlue","The blue color used in chart visualizations.")),(0,s.x1)("charts.yellow",T,n.kg("chartsYellow","The yellow color used in chart visualizations.")),(0,s.x1)("charts.orange",Se,n.kg("chartsOrange","The orange color used in chart visualizations.")),(0,s.x1)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.kg("chartsGreen","The green color used in chart visualizations.")),(0,s.x1)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.kg("chartsPurple","The purple color used in chart visualizations.")),(0,s.x1)("input.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputBoxBackground","Input box background."))),Ne=(0,s.x1)("input.foreground",o,n.kg("inputBoxForeground","Input box foreground.")),Ie=(0,s.x1)("input.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("inputBoxBorder","Input box border.")),Oe=(0,s.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:l,hcLight:l},n.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),De=(0,s.x1)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),Me=(0,s.x1)("inputOption.activeBackground",{dark:(0,s.JO)(c,.4),light:(0,s.JO)(c,.2),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("inputOption.activeBackground","Background hover color of options in input fields.")),Pe=(0,s.x1)("inputOption.activeForeground",{dark:r.Q1.white,light:r.Q1.black,hcDark:o,hcLight:o},n.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),Fe=((0,s.x1)("input.placeholderForeground",{light:(0,s.JO)(o,.5),dark:(0,s.JO)(o,.5),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),(0,s.x1)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationInfoBackground","Input validation background color for information severity."))),Ue=(0,s.x1)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),He=(0,s.x1)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:l,hcLight:l},n.kg("inputValidationInfoBorder","Input validation border color for information severity.")),Be=(0,s.x1)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),We=(0,s.x1)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ve=(0,s.x1)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:l,hcLight:l},n.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),ze=(0,s.x1)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationErrorBackground","Input validation background color for error severity.")),Ge=(0,s.x1)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),je=(0,s.x1)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("inputValidationErrorBorder","Input validation border color for error severity.")),Ke=(0,s.x1)("dropdown.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownBackground","Dropdown background.")),Ye=(0,s.x1)("dropdown.listBackground",{dark:null,light:null,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownListBackground","Dropdown list background.")),qe=(0,s.x1)("dropdown.foreground",{dark:"#F0F0F0",light:o,hcDark:r.Q1.white,hcLight:o},n.kg("dropdownForeground","Dropdown foreground.")),$e=(0,s.x1)("dropdown.border",{dark:Ke,light:"#CECECE",hcDark:l,hcLight:l},n.kg("dropdownBorder","Dropdown border.")),Qe=(0,s.x1)("button.foreground",r.Q1.white,n.kg("buttonForeground","Button foreground color.")),Xe=(0,s.x1)("button.separator",(0,s.JO)(Qe,.4),n.kg("buttonSeparator","Button separator color.")),Ze=(0,s.x1)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},n.kg("buttonBackground","Button background color.")),Je=(0,s.x1)("button.hoverBackground",{dark:(0,s.a)(Ze,.2),light:(0,s.e$)(Ze,.2),hcDark:Ze,hcLight:Ze},n.kg("buttonHoverBackground","Button background color when hovering.")),et=(0,s.x1)("button.border",l,n.kg("buttonBorder","Button border color.")),tt=(0,s.x1)("button.secondaryForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:r.Q1.white,hcLight:o},n.kg("buttonSecondaryForeground","Secondary button foreground color.")),it=(0,s.x1)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Q1.white},n.kg("buttonSecondaryBackground","Secondary button background color.")),st=(0,s.x1)("button.secondaryHoverBackground",{dark:(0,s.a)(it,.2),light:(0,s.e$)(it,.2),hcDark:null,hcLight:null},n.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),nt=(0,s.x1)("radio.activeForeground",Pe,n.kg("radioActiveForeground","Foreground color of active radio option.")),rt=(0,s.x1)("radio.activeBackground",Me,n.kg("radioBackground","Background color of active radio option.")),ot=(0,s.x1)("radio.activeBorder",Oe,n.kg("radioActiveBorder","Border color of the active radio option.")),at=(0,s.x1)("radio.inactiveForeground",null,n.kg("radioInactiveForeground","Foreground color of inactive radio option.")),ct=(0,s.x1)("radio.inactiveBackground",null,n.kg("radioInactiveBackground","Background color of inactive radio option.")),lt=(0,s.x1)("radio.inactiveBorder",{light:(0,s.JO)(nt,.2),dark:(0,s.JO)(nt,.2),hcDark:(0,s.JO)(nt,.4),hcLight:(0,s.JO)(nt,.2)},n.kg("radioInactiveBorder","Border color of the inactive radio option.")),ht=(0,s.x1)("radio.inactiveHoverBackground",De,n.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),dt=(0,s.x1)("checkbox.background",Ke,n.kg("checkbox.background","Background color of checkbox widget.")),ut=((0,s.x1)("checkbox.selectBackground",b,n.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),(0,s.x1)("checkbox.foreground",qe,n.kg("checkbox.foreground","Foreground color of checkbox widget."))),gt=(0,s.x1)("checkbox.border",$e,n.kg("checkbox.border","Border color of checkbox widget.")),pt=((0,s.x1)("checkbox.selectBorder",a,n.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),(0,s.x1)("keybindingLabel.background",{dark:new r.Q1(new r.bU(128,128,128,.17)),light:new r.Q1(new r.bU(221,221,221,.4)),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),mt=(0,s.x1)("keybindingLabel.foreground",{dark:r.Q1.fromHex("#CCCCCC"),light:r.Q1.fromHex("#555555"),hcDark:r.Q1.white,hcLight:o},n.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ft=(0,s.x1)("keybindingLabel.border",{dark:new r.Q1(new r.bU(51,51,51,.6)),light:new r.Q1(new r.bU(204,204,204,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:l},n.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),_t=(0,s.x1)("keybindingLabel.bottomBorder",{dark:new r.Q1(new r.bU(68,68,68,.6)),light:new r.Q1(new r.bU(187,187,187,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:o},n.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),vt=(0,s.x1)("list.focusBackground",null,n.kg("listFocusBackground","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.")),Ct=(0,s.x1)("list.focusForeground",null,n.kg("listFocusForeground","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.")),Et=(0,s.x1)("list.focusOutline",{dark:c,light:c,hcDark:h,hcLight:h},n.kg("listFocusOutline","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.")),bt=(0,s.x1)("list.focusAndSelectionOutline",null,n.kg("listFocusAndSelectionOutline","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.")),St=(0,s.x1)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listActiveSelectionBackground","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.")),yt=(0,s.x1)("list.activeSelectionForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:null,hcLight:null},n.kg("listActiveSelectionForeground","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.")),wt=(0,s.x1)("list.activeSelectionIconForeground",null,n.kg("listActiveSelectionIconForeground","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.")),Rt=(0,s.x1)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listInactiveSelectionBackground","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.")),Lt=(0,s.x1)("list.inactiveSelectionForeground",null,n.kg("listInactiveSelectionForeground","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.")),Tt=(0,s.x1)("list.inactiveSelectionIconForeground",null,n.kg("listInactiveSelectionIconForeground","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.")),xt=(0,s.x1)("list.inactiveFocusBackground",null,n.kg("listInactiveFocusBackground","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.")),kt=(0,s.x1)("list.inactiveFocusOutline",null,n.kg("listInactiveFocusOutline","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.")),At=(0,s.x1)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:r.Q1.white.transparent(.1),hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nt=(0,s.x1)("list.hoverForeground",null,n.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),It=(0,s.x1)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),Ot=(0,s.x1)("list.dropBetweenBackground",{dark:a,light:a,hcDark:null,hcLight:null},n.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Dt=(0,s.x1)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:c,hcLight:c},n.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Mt=(0,s.x1)("list.focusHighlightForeground",{dark:Dt,light:(0,s.Hz)(St,Dt,"#BBE7FF"),hcDark:Dt,hcLight:Dt},n.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Pt=((0,s.x1)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,s.x1)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.kg("listErrorForeground","Foreground color of list items containing errors.")),(0,s.x1)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.kg("listWarningForeground","Foreground color of list items containing warnings.")),(0,s.x1)("listFilterWidget.background",{light:(0,s.e$)(b,0),dark:(0,s.a)(b,0),hcDark:b,hcLight:b},n.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Ft=(0,s.x1)("listFilterWidget.outline",{dark:r.Q1.transparent,light:r.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ut=(0,s.x1)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ht=(0,s.x1)("listFilterWidget.shadow",se,n.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Bt=((0,s.x1)("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},n.kg("listFilterMatchHighlight","Background color of the filtered match.")),(0,s.x1)("list.filterMatchBorder",{dark:B,light:B,hcDark:l,hcLight:h},n.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,s.x1)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),(0,s.x1)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Wt=(0,s.x1)("tree.inactiveIndentGuidesStroke",(0,s.JO)(Bt,.4),n.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Vt=(0,s.x1)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.kg("tableColumnsBorder","Table border color between columns.")),zt=(0,s.x1)("tree.tableOddRowsBackground",{dark:(0,s.JO)(o,.04),light:(0,s.JO)(o,.04),hcDark:null,hcLight:null},n.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),Gt=((0,s.x1)("editorActionList.background",b,n.kg("editorActionListBackground","Action List background color.")),(0,s.x1)("editorActionList.foreground",S,n.kg("editorActionListForeground","Action List foreground color.")),(0,s.x1)("editorActionList.focusForeground",yt,n.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),(0,s.x1)("editorActionList.focusBackground",St,n.kg("editorActionListFocusBackground","Action List background color for the focused item.")),(0,s.x1)("menu.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("menuBorder","Border color of menus."))),jt=(0,s.x1)("menu.foreground",qe,n.kg("menuForeground","Foreground color of menu items.")),Kt=(0,s.x1)("menu.background",Ke,n.kg("menuBackground","Background color of menu items.")),Yt=(0,s.x1)("menu.selectionForeground",yt,n.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),qt=(0,s.x1)("menu.selectionBackground",St,n.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),$t=(0,s.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),Qt=(0,s.x1)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:l,hcLight:l},n.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Xt=(0,s.x1)("quickInput.background",b,n.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Zt=(0,s.x1)("quickInput.foreground",S,n.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Jt=(0,s.x1)("quickInputTitle.background",{dark:new r.Q1(new r.bU(255,255,255,.105)),light:new r.Q1(new r.bU(0,0,0,.06)),hcDark:"#000000",hcLight:r.Q1.white},n.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ei=(0,s.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupForeground","Quick picker color for grouping labels.")),ti=(0,s.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupBorder","Quick picker color for grouping borders.")),ii=(0,s.x1)("quickInput.list.focusBackground",null,"",void 0,n.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),si=(0,s.x1)("quickInputList.focusForeground",yt,n.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),ni=(0,s.x1)("quickInputList.focusIconForeground",wt,n.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),ri=(0,s.x1)("quickInputList.focusBackground",{dark:(0,s.yL)(ii,St),light:(0,s.yL)(ii,St),hcDark:null,hcLight:null},n.kg("quickInput.listFocusBackground","Quick picker background color for the focused item."));(0,s.x1)("search.resultsInfoForeground",{light:o,dark:(0,s.JO)(o,.65),hcDark:o,hcLight:o},n.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),(0,s.x1)("searchEditor.findMatchBackground",{light:(0,s.JO)(U,.66),dark:(0,s.JO)(U,.66),hcDark:U,hcLight:U},n.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),(0,s.x1)("searchEditor.findMatchBorder",{light:(0,s.JO)(B,.66),dark:(0,s.JO)(B,.66),hcDark:B,hcLight:B},n.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},66643:(e,t,i)=>{"use strict";i.d(t,{W:()=>p});var s=i(3357),n=i(87924),r=i.n(n),o=i(52708),a=i.n(o),c=i(8964);var l=i(38469),h=i.n(l);function d(e,t,i){if("plugins"===i){const i=[...e],s=[...t];let n=i.map((e=>{const t=s.findIndex((({type:t})=>t===e.type));if(-1!==t){const i=s[t];return s.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return s.length>0&&(n=[...n,...s]),n}return h()(e)?a()(e,t,d):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((({id:e})=>e!==t)))}dispatch(e,t){this.events[e]&&this.events[e].forEach((({action:e})=>{e(t)}))}},g=e=>{(0,s.jK)({lang:e}),c.J.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return r()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,[t,i])=>("undefined"!==typeof i&&(e[t]=i),e)),{}));var i;if(this.settings=a()(this.settings,t,d),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},66668:(e,t,i)=>{e.exports=i(64066)},66700:(e,t,i)=>{"use strict";i.d(t,{ur:()=>w,uO:()=>x});var s=i(42731),n=i(8597),r=i(56245),o=i(25154),a=i(31295),c=i(25890),l=i(90766),h=i(58694),d=i(41234),u=i(5662),g=i(92719),p=i(49353);function m(e,t){const i=[];for(const s of t){if(e.start>=s.range.end)continue;if(e.end<s.range.start)break;const t=g.Q.intersect(e,s.range);g.Q.isEmpty(t)||i.push({range:t,size:s.size})}return i}function f({start:e,end:t},i){return{start:e+i,end:t+i}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,i=[]){const s=i.length-t,n=m({start:0,end:e},this.groups),r=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,s),size:e.size}))),o=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const s of e){const e=s.range.start,n=s.range.end,r=s.size;i&&r===i.size?i.range.end=n:(i={range:{start:e,end:n},size:r},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(n,o,r),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n*s.size;if(e<r)return t+Math.floor((e-i)/s.size);t+=n,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n;if(e<r)return this._paddingTop+t+(e-i)*s.size;t+=n*s.size,i=r}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,n.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),e.remove()}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(64383),E=i(1592),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const S={CurrentDragAndDropData:void 0},y={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class R{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class T{constructor(e){this.getSetSize=e?.getSetSize?e.getSetSize.bind(e):(e,t,i)=>i,this.getPosInSet=e?.getPosInSet?e.getPosInSet.bind(e):(e,t)=>t+1,this.getRole=e?.getRole?e.getRole.bind(e):e=>"listitem",this.isChecked=e?.isChecked?e.isChecked.bind(e):e=>{}}}class x{static{this.InstanceCount=0}get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,n.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,s=y){if(this.virtualDelegate=t,this.domId="list_id_"+ ++x.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new l.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new d.vl,this._onDidChangeContentWidth=new d.vl,this.onDidChangeContentHeight=d.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,s.horizontalScrolling&&s.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(s.paddingTop??0);for(const n of i)this.renderers.set(n.templateId,n);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof s.mouseSupport||s.mouseSupport),this._horizontalScrolling=s.horizontalScrolling??y.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof s.paddingBottom?0:s.paddingBottom,this.accessibilityProvider=new T(s.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(s.transformOptimization??y.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:s.smoothScrolling?125:0,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel??y.alwaysConsumeMouseWheel,horizontal:1,vertical:s.verticalScrollMode??y.verticalScrollMode,useShadows:s.useShadows??y.useShadows,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity,scrollByPage:s.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,n.ko)(this.rowsContainer,o.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,n.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,n.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=s.setRowLineHeight??y.setRowLineHeight,this.setRowHeight=s.setRowHeight??y.setRowHeight,this.supportDynamicHeights=s.supportDynamicHeights??y.supportDynamicHeights,this.dnd=s.dnd??this.disposables.add(y.dnd),this.layout(s.initialSize?.height,s.initialSize?.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...t??{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...t??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...t??{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),n={start:e,end:e+t},r=g.Q.intersect(s,n),o=new Map;for(let u=r.end-1;u>=r.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=o.get(e.templateId);t||(t=[],o.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.unshift(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},c=g.Q.intersect(a,s),l=g.Q.relativeComplement(a,s),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let d;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),d=this.items,this.items=h):(this.rangeMap.splice(e,t,h),d=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(c,p),v=g.Q.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const C=g.Q.relativeComplement(_,m);for(const u of C)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const E=l.map((e=>f(e,p))),b=[{start:e,end:e+i.length},...E].map((e=>g.Q.intersect(m,e))).reverse();for(const u of b)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=o.get(t.templateId),s=i?.pop();this.insertItemInDOM(e,s)}for(const u of o.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,n.PG)((0,n.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,n.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,n.y6)(this.domNode)})}render(e,t,i,s,n,r=!1){const o=this.getRenderRange(t,i),a=g.Q.relativeComplement(o,e).reverse(),c=g.Q.relativeComplement(e,o);if(r){const t=g.Q.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of c)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==s&&(this.rowsContainer.style.left=`-${s}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==n&&(this.rowsContainer.style.width=`${Math.max(n,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){const i=this.items[e];if(!i.row)if(t)i.row=t,i.stale=!0;else{const e=this.cache.alloc(i.templateId);i.row=e.row,i.stale||=e.isReusingConnectedDomNode}const s=this.accessibilityProvider.getRole(i.element)||"listitem";i.row.domNode.setAttribute("role",s);const r=this.accessibilityProvider.isChecked(i.element);if("boolean"===typeof r)i.row.domNode.setAttribute("aria-checked",String(!!r));else if(r){const e=e=>i.row.domNode.setAttribute("aria-checked",String(!!e));e(r.value),i.checkedDisposable=r.onDidChange((()=>e(r.value)))}if(i.stale||!i.row.domNode.parentElement){const t=this.items.at(e+1)?.row?.domNode??null;i.row.domNode.parentElement===this.rowsContainer&&i.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(i.row.domNode,t),i.stale=!1}this.updateItemInDOM(i,e);const o=this.renderers.get(i.templateId);if(!o)throw new Error(`No renderer found for template id ${i.templateId}`);o?.renderElement(i.element,e,i.row.templateData,i.size);const a=this.dnd.getDragURI(i.element);i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a&&(i.dragStartDisposable=(0,n.ko)(i.row.domNode,"dragstart",(e=>this.onDragStart(i.element,a,e)))),this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,n.y6)(e.row.domNode);const t=(0,n.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return d.Jh.filter(d.Jh.map(this.disposables.add(new r.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return d.Jh.any(d.Jh.map(this.disposables.add(new r.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),d.Jh.map(this.disposables.add(new r.f(this.domNode,o.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return d.Jh.map(this.disposables.add(new r.f(this.rowsContainer,o.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(s.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(r,i)),"undefined"===typeof e&&(e=String(r.length));const t=(0,n.$)(".monaco-drag-image");t.textContent=e;(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode).appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>t.remove()),0)}this.domNode.classList.add("dragging"),this.currentDragData=new w(r),S.CurrentDragAndDropData=new R(r),this.dnd.onDragStart?.(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),S.CurrentDragAndDropData&&"vscode-ui"===S.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(S.CurrentDragAndDropData)this.currentDragData=S.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?.type?"copy":"move",i="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],i=(0,c.dM)(i).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),i=-1===i[0]?[-1]:i;let s="boolean"!==typeof t&&t.effect&&t.effect.position?t.effect.position:"drop-target";if(n=this.currentDragFeedback,r=i,(Array.isArray(n)&&Array.isArray(r)?(0,c.aI)(n,r):n===r)&&this.currentDragFeedbackPosition===s)return!0;var n,r;if(this.currentDragFeedback=i,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(i.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&i[0]<this.length-1&&(i[0]+=1,s="drop-target-before");for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row?.domNode.classList.add(s)}this.currentDragFeedbackDisposable=(0,u.s)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row?.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,l.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&this.dnd.onDragLeave?.(this.currentDragData,e.element,e.index,e.browserEvent)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,this.dnd.onDragEnd?.(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,n.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,n.i0)((0,n.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,l.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,s=Math.floor(i/.25);return(0,E.qE)(s,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;((0,n.sb)(i)||(0,n.xZ)(i))&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const s=this.getRenderRange(e,t);let n,r;e===this.elementTop(s.start)?(n=s.start,r=0):s.end-s.start>1&&(n=s.start+1,r=this.elementTop(n)-e);let o=0;for(;;){const a=this.getRenderRange(e,t);let c=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,c=c||0!==t}if(!c){0!==o&&this.eventuallyUpdateScrollDimensions();const t=g.Q.relativeComplement(s,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const c=g.Q.relativeComplement(a,s).reverse();for(const e of c)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof n){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,s=this.elementTop(n)-r+t;this.setScrollTop(s,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(t.element);if(null!==e){const i=t.size;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-i}}if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const i=t.size;if(t.row)return t.row.domNode.style.height="",t.size=t.row.domNode.offsetHeight,0!==t.size||(0,n.QX)(t.row.domNode,(0,n.zk)(t.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!",(new Error).stack),t.lastDynamicHeightWidth=this.renderWidth,t.size-i;const{row:s}=this.cache.alloc(t.templateId);s.domNode.style.height="",this.rowsContainer.appendChild(s.domNode);const r=this.renderers.get(t.templateId);if(!r)throw new C.D7("Missing renderer for templateId: "+t.templateId);return r.renderElement(t.element,e,s.templateData,void 0),t.size=s.domNode.offsetHeight,r.disposeElement?.(t.element,e,s.templateData,void 0),this.virtualDelegate.setDynamicHeight?.(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,s.domNode.remove(),this.cache.release(s),t.size-i}getElementDomId(e){return`${this.domId}_${e}`}dispose(){for(const e of this.items)if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){const t=this.renderers.get(e.row.templateId);t&&(t.disposeElement?.(e.element,-1,e.row.templateData,void 0),t.disposeTemplate(e.row.templateData))}this.items=[],this.domNode?.remove(),this.dragOverAnimationDisposable?.dispose(),this.disposables.dispose()}}b([h.B],x.prototype,"onMouseClick",null),b([h.B],x.prototype,"onMouseDblClick",null),b([h.B],x.prototype,"onMouseMiddleClick",null),b([h.B],x.prototype,"onMouseDown",null),b([h.B],x.prototype,"onMouseOver",null),b([h.B],x.prototype,"onMouseOut",null),b([h.B],x.prototype,"onContextMenu",null),b([h.B],x.prototype,"onTouchStart",null),b([h.B],x.prototype,"onTap",null)},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>o,Xo:()=>c,ok:()=>n,xb:()=>r});var s=i(64383);function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw new Error(t)}function o(e){e||(0,s.dz)(new s.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,s.dz)(new s.D7("Assertion Failed")))}function c(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>l,fO:()=>h});var s=i(63591),n=i(5662),r=i(84001),o=i(8597),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=(0,s.u1)("hoverService");let h=class extends n.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},s,r){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=s,this.hoverService=r,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new n.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const s=(0,o.sb)(e.target)?[e.target]:e.target.targetElements;for(const r of s)this.hoverDisposables.add((0,o.b2)(r,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const n=(0,o.sb)(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:n,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([c(3,r.pG),c(4,l)],h)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},67913:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,default:()=>o,editor:()=>r.editor,languages:()=>r.languages});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,editor:()=>r.editor,languages:()=>r.languages});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836),i(52555),i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606);var n,r=i(80781);i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(37954),i(74800),i(25922),i(46648),i(61082),i(19856),i(97884),i(83488),i(3254),i(57680),i(796),i(89336),i(19436),i(40340),i(86492),i(52894),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(42144),i(22362),i(98408),i(61472),i(50576),i(11272),i(89518),i(99669),i(24152),i(51861),i(97791),i(23934);self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,r=(s?s.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var o=String(window.location),a=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}});const o=s},68214:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>A,R9:()=>P});var s=i(8597),n=i(83750),r=i(56245),o=i(27661),a=i(72962),c=i(47358),l=i(20370),h=i(64383),d=i(41234),u=i(16980),g=i(37882),p=i(96032),m=i(91090),f=i(5662);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function i(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,n=new RegExp(s.source,"g"),r=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,o=new RegExp(r.source,"g"),a={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>a[e];function l(e,t){if(t){if(s.test(e))return e.replace(n,c)}else if(r.test(e))return e.replace(o,c);return e}const h=/(^|[^\[])\^/g;function d(e,t){let i="string"===typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let n="string"===typeof t?t:t.source;return n=n.replace(h,"$1"),i=i.replace(e,n),s},getRegex:()=>new RegExp(i,t)};return s}function u(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function p(e,t){const i=e.replace(/\|/g,((e,t,i)=>{let s=!1,n=t;for(;--n>=0&&"\\"===i[n];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function m(e,t,i){const s=e.length;if(0===s)return"";let n=0;for(;n<s;){const r=e.charAt(s-n-1);if(r!==t||i){if(r===t||!i)break;n++}else n++}return e.slice(0,s-n)}function f(e,t,i,s){const n=t.href,r=t.title?l(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:i,href:n,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:i,href:n,title:r,text:l(o)}}class _{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:m(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){const i=e.match(/^(\s+)(?:```)/);if(null===i)return t;const s=i[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[i]=t;return i.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=m(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:m(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=m(t[0],"\n").split("\n"),i="",s="";const n=[];for(;e.length>0;){let t=!1;const r=[];let o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.test(e[o]))r.push(e[o]),t=!0;else{if(t)break;r.push(e[o])}e=e.slice(o);const a=r.join("\n"),c=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}\n${a}`:a,s=s?`${s}\n${c}`:c;const l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=l,0===e.length)break;const h=n[n.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,r=t.raw+"\n"+e.join("\n"),o=this.blockquote(r);n[n.length-1]=o,i=i.substring(0,i.length-t.raw.length)+o.raw,s=s.substring(0,s.length-t.text.length)+o.text;break}if("list"!==h?.type);else{const t=h,r=t.raw+"\n"+e.join("\n"),o=this.list(r);n[n.length-1]=o,i=i.substring(0,i.length-h.raw.length)+o.raw,s=s.substring(0,s.length-t.raw.length)+o.raw,e=r.substring(n[n.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:i,tokens:n,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim();const s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");const r=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let i=!1,s="",a="";if(!(t=r.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],h=!c.trim(),d=0;if(this.options.pedantic?(d=2,a=c.trimStart()):h?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,a=c.slice(d),d+=t[1].length),h&&/^ *$/.test(l)&&(s+=l+"\n",e=e.substring(l.length+1),i=!0),!i){const t=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){const o=e.split("\n",1)[0];if(l=o,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(l))break;if(r.test(l))break;if(t.test(l))break;if(i.test(e))break;if(l.search(/[^ ]/)>=d||!l.trim())a+="\n"+l.slice(d);else{if(h)break;if(c.search(/[^ ]/)>=4)break;if(n.test(c))break;if(r.test(c))break;if(i.test(c))break;a+="\n"+l}h||l.trim()||(h=!0),s+=o+"\n",e=e.substring(o.length+1),c=l.slice(d)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(s)&&(o=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(a),g&&(u="[ ] "!==g[0],a=a.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:a,tokens:[]}),n.raw+=s}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){const t=n.items[e].tokens.filter((e=>"space"===e.type)),i=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const i=p(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(let e=0;e<i.length;e++)r.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:r.align[e]});for(const e of n)r.rows.push(p(e,r.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:r.align[t]}))));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:l(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=m(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let i=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return-1}(t[2],"()");if(e>-1){const i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),f(t,{href:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const e=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return f(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!i.match(/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!i||this.rules.inline.punctuation.exec(i))){const i=[...s[0]].length-1;let n,r,o=i,a=0;const c="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);null!=(s=c.exec(t));){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(r=[...n].length,s[3]||s[4]){o+=r;continue}if((s[5]||s[6])&&i%3&&!((i+r)%3)){a+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+a);const t=[...s[0]][0].length,c=e.slice(0,i+s.index+t+r);if(Math.min(i,r)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const i=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return i&&s&&(e=e.substring(1,e.length-1)),e=l(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,i;return"@"===t[2]?(e=l(t[1]),i="mailto:"+e):(e=l(t[1]),i=e),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])e=l(t[0]),i="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=l(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:l(t[0]),{type:"text",raw:t[0],text:e}}}}const v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,E=d(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,C).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\.|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),R="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",L).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),k={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:v,html:T,lheading:E,list:w,newline:/^(?: *(?:\n|$))+/,paragraph:x,table:g,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),N={...k,table:A,paragraph:d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex()},I={...k,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(b).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",E).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D=/^( {2,}|\\)\n(?!\s*$)/,M="\\p{P}\\p{S}",P=d(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,M).getRegex(),F=d(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,M).getRegex(),U=d("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,M).getRegex(),H=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,M).getRegex(),B=d(/\\([punct])/,"gu").replace(/punct/g,M).getRegex(),W=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=d(L).replace("(?:--\x3e|$)","--\x3e").getRegex(),z=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j=d(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=d(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",S).getRegex(),Y=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),q={_backpedal:g,anyPunctuation:B,autolink:W,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:D,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:U,emStrongRDelimUnd:H,escape:O,link:j,nolink:Y,punctuation:P,reflink:K,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",Y).getRegex(),tag:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},$={...q,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},Q={...q,escape:d(O).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...Q,br:d(D).replace("{2,}","*").getRegex(),text:d(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:N,pedantic:I},J={normal:q,gfm:Q,breaks:X,pedantic:$};class ee{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new _,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:Z.normal,inline:J.normal};this.options.pedantic?(i.block=Z.pedantic,i.inline=J.pedantic):this.options.gfm&&(i.block=Z.gfm,this.options.breaks?i.inline=J.breaks:i.inline=J.gfm),this.tokenizer.rules=i}static get rules(){return{block:Z,inline:J}}static lex(e,t){return new ee(t).lex(e)}static lexInline(e,t){return new ee(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){let s,n,r;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,i)=>t+" ".repeat(i.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(s=i.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))))if(s=this.tokenizer.space(e))e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);else if(s=this.tokenizer.code(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(s):(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.fences(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.heading(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.hr(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.blockquote(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.list(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.html(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.def(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}):(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.table(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.lheading(e))e=e.substring(s.raw.length),t.push(s);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r)))n=t[t.length-1],i&&"paragraph"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s),i=r.length!==e.length,e=e.substring(s.raw.length);else if(s=this.tokenizer.text(e))e=e.substring(s.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,s,n,r,o,a,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(i=s.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,a))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(n))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),o=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}class te{options;parser;constructor(t){this.options=t||e.defaults}space(e){return""}code({text:e,lang:t,escaped:i}){const s=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+"\n";return s?'<pre><code class="language-'+l(s)+'">'+(i?n:l(n,!0))+"</code></pre>\n":"<pre><code>"+(i?n:l(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,i=e.start;let s="";for(let r=0;r<e.items.length;r++){const t=e.items[r];s+=this.listitem(t)}const n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+s+"</"+n+">\n"}listitem(e){let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);t+=this.tablerow({text:i});let s="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];i="";for(let e=0;e<t.length;e++)i+=this.tablecell(t[e]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),n=u(e);if(null===n)return s;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i}){const s=u(e);if(null===s)return i;let n=`<img src="${e=s}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class ie{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class se{options;renderer;textRenderer;constructor(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ie}static parse(e,t){return new se(t).parse(e)}static parseInline(e,t){return new se(t).parseInline(e)}parse(e,t=!0){let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=n,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}const r=n;switch(r.type){case"space":i+=this.renderer.space(r);continue;case"hr":i+=this.renderer.hr(r);continue;case"heading":i+=this.renderer.heading(r);continue;case"code":i+=this.renderer.code(r);continue;case"table":i+=this.renderer.table(r);continue;case"blockquote":i+=this.renderer.blockquote(r);continue;case"list":i+=this.renderer.list(r);continue;case"html":i+=this.renderer.html(r);continue;case"paragraph":i+=this.renderer.paragraph(r);continue;case"text":{let n=r,o=this.renderer.text(n);for(;s+1<e.length&&"text"===e[s+1].type;)n=e[++s],o+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):o;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=e||"";continue}}const r=n;switch(r.type){case"escape":case"text":i+=t.text(r);break;case"html":i+=t.html(r);break;case"link":i+=t.link(r);break;case"image":i+=t.image(r);break;case"strong":i+=t.strong(r);break;case"em":i+=t.em(r);break;case"codespan":i+=t.codespan(r);break;case"br":i+=t.br(r);break;case"del":i+=t.del(r);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}}class ne{options;constructor(t){this.options=t||e.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class re{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(ee.lex,se.parse);parseInline=this.parseMarkdown(ee.lexInline,se.parseInline);Parser=se;Renderer=te;TextRenderer=ie;Lexer=ee;Tokenizer=_;Hooks=ne;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(const s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)i=i.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;i=i.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const n=e[s].flat(1/0);i=i.concat(this.walkTokens(n,t))})):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=i.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),i.extensions=t),e.renderer){const t=this.defaults.renderer||new te(this.defaults);for(const i in e.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const s=i,n=e.renderer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _(this.defaults);for(const i in e.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const s=i,n=e.tokenizer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ne;for(const i in e.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if("options"===i)continue;const s=i,n=e.hooks[s],r=t[s];ne.passThroughHooks.has(i)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>r.call(t,e)));const i=n.call(t,e);return r.call(t,i)}:t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(s.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ee.lex(e,t??this.defaults)}parser(e,t){return se.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,s)=>{const n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("undefined"===typeof i||null===i)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof i)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then((t=>e(t,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(i=r.hooks.preprocess(i));let s=e(i,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let n=t(s,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(a){return o(a)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+l(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}const oe=new re;function ae(e,t){return oe.parse(e,t)}ae.options=ae.setOptions=function(e){return oe.setOptions(e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.getDefaults=t,ae.defaults=e.defaults,ae.use=function(...e){return oe.use(...e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.walkTokens=function(e,t){return oe.walkTokens(e,t)},ae.parseInline=oe.parseInline,ae.Parser=se,ae.parser=se.parse,ae.Renderer=te,ae.TextRenderer=ie,ae.Lexer=ee,ae.lexer=ee.lex,ae.Tokenizer=_,ae.Hooks=ne,ae.parse=ae;const ce=ae.options,le=ae.setOptions,he=ae.use,de=ae.walkTokens,ue=ae.parseInline,ge=ae,pe=se.parse,me=ee.lex;e.Hooks=ne,e.Lexer=ee,e.Marked=re,e.Parser=se,e.Renderer=te,e.TextRenderer=ie,e.Tokenizer=_,e.getDefaults=t,e.lexer=me,e.marked=ae,e.options=ce,e.parse=ge,e.parseInline=ue,e.parser=pe,e.setOptions=le,e.use=he,e.walkTokens=de},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Hooks||exports.Hooks,_.Lexer||exports.Lexer,_.Marked||exports.Marked,_.Parser||exports.Parser;var v=_.Renderer||exports.Renderer,C=(_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.defaults||exports.defaults),E=(_.getDefaults||exports.getDefaults,_.lexer||exports.lexer),b=(_.marked||exports.marked,_.options||exports.options,_.parse||exports.parse),S=(_.parseInline||exports.parseInline,_.parser||exports.parser),y=(_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(908)),w=i(36456),R=i(10146),L=i(89403),T=i(91508),x=i(79400);const k=Object.freeze({image:({href:e,title:t,text:i})=>{let s=[],n=[];return e&&(({href:e,dimensions:s}=(0,u.nI)(e)),n.push(`src="${(0,u.oO)(e)}"`)),i&&n.push(`alt="${(0,u.oO)(i)}"`),t&&n.push(`title="${(0,u.oO)(t)}"`),s.length&&(n=n.concat(s)),"<img "+n.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i);return"string"!==typeof e?"":(e===s&&(s=(0,u._W)(s)),t="string"===typeof t?(0,u.oO)((0,u._W)(t)):"",`<a href="${e=(e=(0,u._W)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${s}</a>`)}});function A(e,t={},i={}){const n=new f.Cm;let u=!1;const m=(0,o.n)(t),_=function(t){let i;try{i=(0,y.qg)(decodeURIComponent(t))}catch(s){}return i?(i=(0,R.PI)(i,(t=>e.uris&&e.uris[t]?x.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},L=function(t,i){const s=e.uris&&e.uris[t];let n=x.r.revive(s);return i?t.startsWith(w.ny.data+":")?t:(n||(n=x.r.parse(t)),w.zl.uriToBrowserUri(n).toString(!0)):n?x.r.parse(t).toString()===n.toString()?t:(n.query&&(n=n.with({query:_(n.query)})),n.toString()):t},A=new v;A.image=k.image,A.link=k.link,A.paragraph=k.paragraph;const O=[],M=[];if(t.codeBlockRendererSync?A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRendererSync(N(i),e);return M.push([s,n]),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}:t.codeBlockRenderer&&(A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRenderer(N(i),e);return O.push(n.then((e=>[s,e]))),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}),t.actionHandler){const i=function(i){let s=i.target;if("A"===s.tagName||(s=s.parentElement,s&&"A"===s.tagName))try{let n=s.dataset.href;n&&(e.baseUri&&(n=I(x.r.from(e.baseUri),n)),t.actionHandler.callback(n,i))}catch(n){(0,h.dz)(n)}finally{i.preventDefault()}},n=t.actionHandler.disposables.add(new r.f(m,"click")),o=t.actionHandler.disposables.add(new r.f(m,"auxclick"));t.actionHandler.disposables.add(d.Jh.any(n.event,o.event)((e=>{const t=new c.P(s.zk(m),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(s.ko(m,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(A.html=({text:i})=>{if(t.sanitizerOptions?.replaceWithPlaintext)return(0,T.ih)(i);return(e.isTrusted?i.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?i:""}),i.renderer=A;let P,F=e.value??"";if(F.length>1e5&&(F=`${F.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(F=(0,g.sA)(F)),t.fillInIncompleteTokens){const e={...C,...i},t=function(e){for(let t=0;t<j;t++){const t=K(e);if(!t)break;e=t}return e}(E(F,e));P=S(t,e)}else P=b(F,{...i,async:!1});if(e.supportThemeIcons){P=(0,l.n)(P).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const U=(new DOMParser).parseFromString(D({isTrusted:e.isTrusted,...t.sanitizerOptions},P),"text/html");if(U.body.querySelectorAll("img, audio, video, source").forEach((i=>{const n=i.getAttribute("src");if(n){let o=n;try{e.baseUri&&(o=I(x.r.from(e.baseUri),o))}catch(r){}if(i.setAttribute("src",L(o,!0)),t.remoteImageIsAllowed){const e=x.r.parse(o);e.scheme===w.ny.file||e.scheme===w.ny.data||t.remoteImageIsAllowed(e)||i.replaceWith(s.$("",void 0,i.outerHTML))}}})),U.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let s=L(i,!1);e.baseUri&&(s=I(x.r.from(e.baseUri),i)),t.dataset.href=s}})),m.innerHTML=D({isTrusted:e.isTrusted,...t.sanitizerOptions},U.body.innerHTML),O.length>0)Promise.all(O).then((e=>{if(u)return;const i=new Map(e),n=m.querySelectorAll("div[data-code]");for(const t of n){const e=i.get(t.dataset.code??"");e&&s.Ln(t,e)}t.asyncRenderCallback?.()}));else if(M.length>0){const e=new Map(M),t=m.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(i.dataset.code??"");t&&s.Ln(i,t)}}if(t.asyncRenderCallback)for(const r of m.getElementsByTagName("img")){const e=n.add(s.ko(r,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:m,dispose:()=>{u=!0,n.dispose()}}}function N(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function I(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,L.o1)(e,t).toString():(0,L.o1)((0,L.pD)(e),t).toString()}const O=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function D(e,t){const{config:i,allowedSchemes:r}=function(e){const t=[w.ny.http,w.ny.https,w.ny.mailto,w.ny.data,w.ny.file,w.ny.vscodeFileResource,w.ny.vscodeRemote,w.ny.vscodeRemoteResource];e.isTrusted&&t.push(w.ny.command);return{config:{ALLOWED_TAGS:e.allowedTags??[...s.TT],ALLOWED_ATTR:M,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),o=new f.Cm;o.add(ie("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===e.attributes.getNamedItem("type")?.value){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}))),o.add(ie("uponSanitizeElement",((t,i)=>{if("input"===i.tagName&&("checkbox"===t.attributes.getNamedItem("type")?.value?t.setAttribute("disabled",""):e.replaceWithPlaintext||t.remove()),e.replaceWithPlaintext&&!i.allowedTags[i.tagName]&&"body"!==i.tagName&&t.parentElement){let e,s;if("#comment"===i.tagName)e=`\x3c!--${t.textContent}--\x3e`;else{const n=O.includes(i.tagName),r=t.attributes.length?" "+Array.from(t.attributes).map((e=>`${e.name}="${e.value}"`)).join(" "):"";e=`<${i.tagName}${r}>`,n||(s=`</${i.tagName}>`)}const n=document.createDocumentFragment(),r=t.parentElement.ownerDocument.createTextNode(e);n.appendChild(r);const o=s?t.parentElement.ownerDocument.createTextNode(s):void 0;for(;t.firstChild;)n.appendChild(t.firstChild);o&&n.appendChild(o),t.nodeType===Node.COMMENT_NODE?t.parentElement.insertBefore(n,t):t.parentElement.replaceChild(n,t)}}))),o.add(s.a4(r));try{return n.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.dispose()}}const M=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"];function P(e){return"string"===typeof e?e:function(e,t){let i=e.value??"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return D({isTrusted:!1},b(i,{async:!1,renderer:t?B.value:H.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>F.get(e)??e))).toString()}(e)}const F=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function U(){const e=new v;return e.code=({text:e})=>e,e.blockquote=({text:e})=>e+"\n",e.html=e=>"",e.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.hr=()=>"",e.list=function({items:e}){return e.map((e=>this.listitem(e))).join("\n")+"\n"},e.listitem=({text:e})=>e+"\n",e.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.table=function({header:e,rows:t}){return e.map((e=>this.tablecell(e))).join(" ")+"\n"+t.map((e=>e.map((e=>this.tablecell(e))).join(" "))).join("\n")+"\n"},e.tablerow=({text:e})=>e,e.tablecell=function({tokens:e}){return this.parser.parseInline(e)},e.strong=({text:e})=>e,e.em=({text:e})=>e,e.codespan=({text:e})=>e,e.br=e=>"\n",e.del=({text:e})=>e,e.image=e=>"",e.text=({text:e})=>e,e.link=({text:e})=>e,e}const H=new m.d((e=>U())),B=new m.d((()=>{const e=U();return e.code=({text:e})=>`\n\`\`\`\n${e}\n\`\`\`\n`,e}));function W(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function V(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const i=e.tokens[t];if("text"===i.type){const s=i.raw.split("\n"),n=s[s.length-1];if(n.includes("`"))return Y(e);if(n.includes("**"))return ee(e,"**");if(n.match(/\*\w/))return q(e);if(n.match(/(^|\s)__\w/))return J(e);if(n.match(/(^|\s)_\w/))return $(e);if(n.match(/(^|\s)\[.*\]\(\w*/)||z(n)&&e.tokens.slice(0,t).some((e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/)))){const i=e.tokens.slice(t+1);return"link"===i[0]?.type&&"text"===i[1]?.type&&i[1].raw.match(/^ *"[^"]*$/)||n.match(/^[^"]* +"[^"]*$/)?X(e):Q(e)}if(n.match(/(^|\s)\[\w*/))return Z(e)}}}function z(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function G(e){const t=e.items[e.items.length-1],i=t.tokens?t.tokens[t.tokens.length-1]:void 0;let s;if("text"!==i?.type||"inRawBlock"in t||(s=V(i)),!s||"paragraph"!==s.type)return;const n=W(e.items.slice(0,-1)),r=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!r)return;const o=r+W(t.tokens.slice(0,-1))+s.raw,a=E(n+o)[0];return"list"===a.type?a:void 0}const j=3;function K(e){let t,i;for(t=0;t<e.length;t++){const s=e[t];if("paragraph"===s.type&&s.raw.match(/(\n|^)\|/)){i=te(e.slice(t));break}if(t===e.length-1&&"list"===s.type){const e=G(s);if(e){i=[e];break}}if(t===e.length-1&&"paragraph"===s.type){const e=V(s);if(e){i=[e];break}}}if(i){const s=[...e.slice(0,t),...i];return s.links=e.links,s}return null}function Y(e){return ee(e,"`")}function q(e){return ee(e,"*")}function $(e){return ee(e,"_")}function Q(e){return ee(e,")")}function X(e){return ee(e,'")')}function Z(e){return ee(e,"](https://microsoft.com)")}function J(e){return ee(e,"__")}function ee(e,t){const i=W(Array.isArray(e)?e:[e]);return E(i+t)[0]}function te(e){const t=W(e),i=t.split("\n");let s,n=!1;for(let r=0;r<i.length;r++){const e=i[r].trim();if("undefined"===typeof s&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(s=t.length)}else if("number"===typeof s){if(!e.match(/^\s*\|/))return;if(r!==i.length-1)return;n=!0}}if("number"===typeof s&&s>0){const e=n?i.slice(0,-1).join("\n"):t,r=!!e.match(/\|\s*$/),o=e+(r?"":"|")+`\n|${" --- |".repeat(s)}`;return E(o)}}function ie(e,t){return n.$w(e,t),(0,f.s)((()=>n.SV(e)))}},68250:(e,t,i)=>{"use strict";i.d(t,{u:()=>L});var s=i(90766),n=i(16980),r=i(83069),o=i(87289),a=i(57039),c=i(10154),l=i(18938),h=i(7142),d=i(57286),u=i(21478),g=i(84001),p=i(49099),m=i(56942),f=i(78209),_=i(98067),v=i(3730),C=i(25890),E=i(98031),b=i(67220),S=i(50091),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};class R extends a.mm{constructor(e,t,i,s){super(10,t,e.item.anchor.range,i,s,!0),this.part=e}}let L=class extends d.xJ{constructor(e,t,i,s,n,r,o,a,c){super(e,t,i,r,a,s,n,c),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){if(!u.M.get(this._editor))return null;if(6!==e.target.type)return null;const t=e.target.detail.injectedText?.options;return t instanceof o.Ho&&t.attachedData instanceof u.z?new R(t.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof R?new s.AE((async t=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let r,o;if("string"===typeof s.item.hint.tooltip?r=(new n.Bc).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&t.emitOne(new d.eH(this,e.range,[r],!1,0)),(0,C.EI)(s.item.hint.textEdits)&&t.emitOne(new d.eH(this,e.range,[(new n.Bc).appendText((0,f.kg)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof s.part.tooltip?o=(new n.Bc).appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&t.emitOne(new d.eH(this,e.range,[o],!1,1)),s.part.location||s.part.command){let i;const r="altKey"===this._editor.getOption(78)?_.zx?(0,f.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,f.kg)("links.navigate.kb.meta","ctrl + click"):_.zx?(0,f.kg)("links.navigate.kb.alt.mac","option + click"):(0,f.kg)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new n.Bc).appendText((0,f.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",r)):s.part.location?i=(new n.Bc).appendText((0,f.kg)("hint.def","Go to Definition ({0})",r)):s.part.command&&(i=new n.Bc(`[${(0,f.kg)("hint.cmd","Execute Command")}](${(0,v.CN)(s.part.command)} "${s.part.command.title}") (${r})`,{isTrusted:!0})),i&&t.emitOne(new d.eH(this,e.range,[i],!1,1e4))}const a=await this._resolveInlayHintLabelPartHover(s,i);for await(const e of a)t.emitOne(e)})):s.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return s.AE.EMPTY;const{uri:i,range:o}=e.part.location,a=await this._resolverService.createModelReference(i);try{const i=a.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,h.U)(this._languageFeaturesService.hoverProvider,i,new r.y(o.startLineNumber,o.startColumn),t).filter((e=>!(0,n.it)(e.hover.contents))).map((t=>new d.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):s.AE.EMPTY}finally{a.dispose()}}};L=y([w(1,c.L),w(2,p.C),w(3,E.b),w(4,b.TN),w(5,g.pG),w(6,l.ITextModelService),w(7,m.ILanguageFeaturesService),w(8,S.d)],L)},68310:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var s=i(18447),n=i(64383),r=i(79400),o=i(36677),a=i(23750),c=i(50091),l=i(56942),h=i(52363),d=i(84001);async function u(e,t,i,s=!0){return _(new p,e,t,i,s)}function g(e,t,i,s){return Promise.resolve(i.provideColorPresentations(e,t,s))}class p{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({colorInfo:r,provider:e});return Array.isArray(n)}}class m{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(n)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const r=await e.provideColorPresentations(t,this.colorInfo,s.XO.None);return Array.isArray(r)&&n.push(...r),Array.isArray(r)}}async function _(e,t,i,s,r){let o,a=!1;const c=[],l=t.ordered(i);for(let u=l.length-1;u>=0;u--){const t=l[u];if(t instanceof h.L)o=t;else try{await e.compute(t,i,s,c)&&(a=!0)}catch(d){(0,n.M_)(d)}}return a?c:o&&r?(await e.compute(o,i,s,c),c):[]}function v(e,t){const{colorProvider:i}=e.get(l.ILanguageFeaturesService),s=e.get(a.IModelService).getModel(t);if(!s)throw(0,n.Qg)();return{model:s,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(d.pG).getValue("editor.defaultColorDecorators",{resource:t})}}c.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof r.r))throw(0,n.Qg)();const{model:o,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:c}=v(e,i);return _(new m,a,o,s.XO.None,c)})),c.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:c,range:l}=a;if(!(c instanceof r.r)||!Array.isArray(i)||4!==i.length||!o.Q.isIRange(l))throw(0,n.Qg)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=v(e,c),[g,p,m,C]=i;return _(new f({range:l,color:{red:g,green:p,blue:m,alpha:C}}),d,h,s.XO.None,u)}))},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,Eq:()=>E,M0:()=>R,Mz:()=>w,No:()=>y,bs:()=>b});var s,n=i(60413),r=i(8597),o=i(56245),a=i(72962),c=i(5239),l=i(90766),h=i(41234),d=i(5662),u=i(44320),g=i(91508),p=i(69785),m=i(75326),f=i(253),_=i(18801),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(s||(s={}));const E={forceCopyWithSyntaxHighlighting:!1};class b{static{this.INSTANCE=new b}constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}class S{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let y=class extends d.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,s,n,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=s,this._accessibilityService=n,this._logService=r,this._onFocus=this._register(new h.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new h.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new h.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new d.HE),this._asyncTriggerCut=this._register(new l.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),o=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new S;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&o&&o.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===o.code||"ArrowLeft"===o.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=w.getTextData(e.clipboardData);t&&(i=i||b.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return r.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(c.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),s=i-e;if(e=i,s<5)return;const n=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),n<100)return;if(!this._textAreaState.selection)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const o=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===o&&this._textAreaState.selectionEnd===a)return;const l=this._textAreaState.deduceEditorPosition(o),h=this._host.deduceModelPosition(l[0],l[1],l[2]),d=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(d[0],d[1],d[2]),g=new m.L(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};b.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&w.setTextData(e.clipboardData,t.text,t.html,i)}};y=v([C(4,f.j),C(5,_.rr)],y);const w={getTextData(e){const t=e.getData(u.K.text);let i=null;const s=e.getData("vscode-editor-data");if("string"===typeof s)try{i=JSON.parse(s),1!==i.version&&(i=null)}catch(n){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,s){e.setData(u.K.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(s))}};class R extends d.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new o.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new o.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new o.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new o.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new o.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new o.f(this._actual,"beforeinput")).event,this.onInput=this._register(new o.f(this._actual,"input")).event,this.onCut=this._register(new o.f(this._actual,"cut")).event,this.onCopy=this._register(new o.f(this._actual,"copy")).event,this.onPaste=this._register(new o.f(this._actual,"paste")).event,this.onFocus=this._register(new o.f(this._actual,"focus")).event,this.onBlur=this._register(new o.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>c.p.onKeyDown()))),this._register(this.onBeforeInput((()=>c.p.onBeforeInput()))),this._register(this.onInput((()=>c.p.onInput()))),this._register(this.onKeyUp((()=>c.p.onKeyUp()))),this._register(r.ko(this._actual,s.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=r.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&r.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const s=this._actual;let o=null;const a=r.jG(s);o=a?a.activeElement:r.bq();const c=r.zk(o),l=o===s,h=s.selectionStart,d=s.selectionEnd;if(l&&h===t&&d===i)n.gm&&c.parent!==c&&s.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),void(n.gm&&c.parent!==c&&s.focus());try{const e=r.zK(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),r.wk(s,e)}catch(u){}}}}},68887:(e,t,i)=>{"use strict";var s=i(90766),n=i(10350),r=i(16980),o=i(5662),a=i(98067),c=i(91508),l=i(31450),h=i(87908),d=i(87289),u=i(74855),g=i(10920),p=i(10154),m=i(32398),f=i(57039),_=i(57286),v=i(8597),C=i(11799),E=i(36921),b=i(20492),S=i(63591),y=i(56245),w=i(72962),R=i(25154),L=i(41234),T=i(49099),x=i(42904),k=i(67220),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends o.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},s,n){super(),this._link=t,this._hoverService=s,this._enabled=!0,this.el=(0,v.BC)(e,(0,v.$)("a.monaco-link",{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=i.hoverDelegate??(0,x.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new y.f(this.el,"click")),o=this._register(new y.f(this.el,"keypress")),a=L.Jh.chain(o.event,(e=>e.map((e=>new w.Z(e))).filter((e=>3===e.keyCode)))),c=this._register(new y.f(this.el,R.B.Tap)).event;this._register(R.q.addTarget(this.el));const l=L.Jh.any(r.event,a,c);this._register(l((e=>{this.enabled&&(v.fs.stop(e,!0),i?.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??"":!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};I=A([N(3,k.TN),N(4,T.C)],I);var O=i(61394),D=i(25689),M=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},P=function(e,t){return function(i,s){t(i,s,e)}};let F=class extends o.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(U))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,26)}};F=M([P(1,S._Y)],F);let U=class extends o.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(b.T,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.w_)(this.element)}show(e){(0,v.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.BC)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${D.L.asCSSSelector(e.icon)}`));const s=(0,v.BC)(this.element,(0,v.$)("div.message-container"));if(s.setAttribute("aria-hidden","true"),s.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.BC)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(I,this.messageActionsContainer,{...r,tabIndex:-1},{}));const n=(0,v.BC)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new C.E(n)),this.actionBar.push(this._register(new E.rc("banner.close","Close Banner",D.L.asClassName(O.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};U=M([P(0,S._Y)],U);var H=i(78209),B=i(84001),W=i(51467),V=i(51465),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};const j=(0,O.pU)("extensions-warning-message",n.W.warning,H.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let K=class extends o.jG{static{this.ID="editor.contrib.unicodeHighlighter"}constructor(e,t,i,s){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new re};else if(e.ambiguousCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new se};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:H.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ne}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:j,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(s.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(126),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Y(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new q(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};K=z([G(1,g.IEditorWorkerService),G(2,V.L),G(3,S._Y)],K);let Y=class extends o.jG{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};Y=z([G(3,g.IEditorWorkerService)],Y);class q extends o.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const s of e){const e=u.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,s);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const s of i.ranges)t.push({range:s,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:J(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}const $=H.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Q=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=this._editor.getContribution(K.ID);if(!s)return[];const n=[],o=new Set;let a=300;for(const l of t){const e=s.getDecorationInfo(l);if(!e)continue;const t=i.getValueInRange(l.range).codePointAt(0),h=Z(t);let d;switch(e.reason.kind){case 0:d=(0,c.aC)(e.reason.confusableWith)?H.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0))):H.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0)));break;case 1:d=H.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:d=H.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(o.has(d))continue;o.add(d);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=H.kg("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${oe.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new r.Bc("",!0).appendMarkdown(d).appendText(" ").appendLink(p,g,$);n.push(new _.eH(this,l.range,[m],!1,a++))}return n}renderHoverParts(e,t){return(0,_.fm)(e,t,this._editor,this._languageService,this._openerService)}};function X(e){return`U+${e.toString(16).padStart(4,"0")}`}function Z(e){let t=`\`${X(e)}\``;return c.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(e,t)}Q=z([G(1,p.L),G(2,T.C)],Q);class ee{constructor(){this.map=new Map}static{this.instance=new ee}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let s=this.map.get(i);return s||(s=d.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,s)),s}}class te extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeComments,!1,2)}}class ie extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeStrings,!1,2)}}class se extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters"}constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.ambiguousCharacters,!1,2)}}class ne extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters"}constructor(){super({id:ne.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.invisibleCharacters,!1,2)}}class re extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters"}constructor(){super({id:re.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.nonBasicASCII,!1,2)}}class oe extends l.ks{static{this.ID="editor.action.unicodeHighlight.showExcludeOptions"}constructor(){super({id:oe.ID,label:H.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:s,reason:n,inString:r,inComment:o}=i,a=String.fromCodePoint(s),l=e.get(W.GK),d=e.get(B.pG);const u=[];if(0===n.kind)for(const c of n.notAmbiguousInLocales)u.push({label:H.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',c),run:async()=>{ae(d,[c])}});if(u.push({label:function(e){return c.y_.isInvisibleCharacter(e)?H.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",X(e)):H.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${X(e)} "${a}"`)}(s),run:()=>async function(e,t){const i=e.getValue(h.Of.allowedCharacters);let s;s="object"===typeof i&&i?i:{};for(const n of t)s[String.fromCodePoint(n)]=!0;await e.updateValue(h.Of.allowedCharacters,s,2)}(d,[s])}),o){const e=new te;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(r){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(d)})}if(0===n.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(1===n.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(2===n.kind){const e=new re;u.push({label:e.label,run:async()=>e.runAction(d)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(n);const g=await l.pick(u,{title:$});g&&await g.run()}}async function ae(e,t){const i=e.inspect(h.Of.allowedLocales).user?.value;let s;s="object"===typeof i&&i?Object.assign({},i):{};for(const n of t)s[n]=!0;await e.updateValue(h.Of.allowedLocales,s,2)}(0,l.Fl)(se),(0,l.Fl)(ne),(0,l.Fl)(re),(0,l.Fl)(oe),(0,l.HW)(K.ID,K,1),f.B2.register(Q)},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>o,_3:()=>c,aY:()=>h,uY:()=>l});var s=i(25890),n=i(64383),r=i(74444);class o{static trivial(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,s.pN)(e,((e,s)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():c.zero,s?s.getStarts():new c(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new r.L(e.offset1,t.offset1),new r.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const i of e){if(t&&!(t.seq1Range.endExclusive<=i.seq1Range.start&&t.seq2Range.endExclusive<=i.seq2Range.start))throw new n.D7("Sequence diffs must be sorted");t=i}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new c(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new c(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class c{static{this.zero=new c(0,0)}static{this.max=new c(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new c(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class l{static{this.instance=new l}isValid(){return!0}}class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new n.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},69259:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var s=i(41234),n=i(5662),r=i(91508),o=i(99908),a=i(83941),c=i(1646),l=i(46359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends n.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const 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}))})),l.O.as(c.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;h.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let s=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),s=t.mimetypes[0]),s||(s=`text/x-${i}`,e.mimetypes.push(s)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const r of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(const r of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filepattern:r},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,firstline:t},this._warnOnOverwrite)}catch(c){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,c)}}e.aliases.push(i);let n=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(n=0===t.aliases.length?[null]:t.aliases),null!==n)for(const r of n)r&&0!==r.length&&e.aliases.push(r);const a=null!==n&&n.length>0;if(a&&null===n[0]);else{const t=(a?n[0]:null)||i;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},69785:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>r,_O:()=>o});var s=i(91508),n=i(36677);const r=!1;class o{static{this.EMPTY=new o("",0,0,null,void 0)}constructor(e,t,i,s,n){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=s,this.newlineCountBeforeSelection=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),s=e.getSelectionStart(),n=e.getSelectionEnd();let r;if(t){i.substring(0,s)===t.value.substring(0,t.selectionStart)&&(r=t.newlineCountBeforeSelection)}return new o(i,s,n,null,r)}collapseSelection(){return this.selectionStart===this.value.length?this:new o(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){r&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,i,-1)}_finishDeduceEditorPosition(e,t,i){let s=0,n=-1;for(;-1!==(n=t.indexOf("\n",n+1));)s++;return[e,i*t.length,s]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const n=Math.min(s.Qp(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(n,e.value.length-o),c=t.value.substring(n,t.value.length-o),l=e.selectionStart-n,h=e.selectionEnd-n,d=t.selectionStart-n,u=t.selectionEnd-n;if(r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${l}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${c}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:c,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:c,replacePrevCharCnt:h-l,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(s.Qp(e.value,t.value),e.selectionEnd),n=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),a=t.value.substring(i,t.value.length-n),c=e.selectionStart-i,l=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${c}, selectionEnd: ${l}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:l,replaceNextCharCnt:o.length-l,positionDelta:d-a.length}}}class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,s=i+1,r=i+t;return new n.Q(s,1,r+1,1)}static fromEditorSelection(e,t,i,s){const r=500,c=a._getPageOfLine(t.startLineNumber,i),l=a._getRangeForPage(c,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=l.intersectRanges(new n.Q(1,1,t.startLineNumber,t.startColumn));if(s&&e.getValueLengthInRange(u,1)>r){const t=e.modifyPosition(u.getEndPosition(),-500);u=n.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=d.intersectRanges(new n.Q(t.endLineNumber,t.endColumn,p,m));if(s&&e.getValueLengthInRange(f,1)>r){const t=e.modifyPosition(f.getStartPosition(),r);f=n.Q.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(c===h||c+1===h)v=e.getValueInRange(t,1);else{const i=l.intersectRanges(t),s=d.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(s,1)}return s&&v.length>1e3&&(v=v.substring(0,r)+String.fromCharCode(8230)+v.substring(v.length-r,v.length)),new o(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},70125:(e,t,i)=>{"use strict";i.d(t,{r:()=>l});var s=i(25890),n=i(631),r=i(78209);function o(e,t){return t&&(e.stack||e.stacktrace)?r.kg("stackTrace.format","{0}: {1}",c(e),a(e.stack)||a(e.stacktrace)):c(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function c(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?r.kg("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function l(e=null,t=!1){if(!e)return r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=s.Yc(e),n=l(i[0],t);return i.length>1?r.kg("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(n.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return o(i.error,t);if(i.exception)return o(i.exception,t)}return e.stack?o(e,t):e.message?e.message:r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},70206:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,s=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(s=0;256!=s;++s)n[s]=e[s];for(s=0;256!=s;++s)for(i=e[s],t=256+s;t<4096;t+=256)i=n[t]=i>>>8^e[255&i];var r=[];for(s=1;16!=s;++s)r[s-1]="undefined"!==typeof Int32Array?n.subarray(256*s,256*s+256):n.slice(256*s,256*s+256);return r}(t),s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],c=i[5],l=i[6],h=i[7],d=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var s=~i,n=0,r=e.length;n<r;)s=s>>>8^t[255&(s^e.charCodeAt(n++))];return~s},e.buf=function(e,i){for(var v=~i,C=e.length-15,E=0;E<C;)v=_[e[E++]^255&v]^f[e[E++]^v>>8&255]^m[e[E++]^v>>16&255]^p[e[E++]^v>>>24]^g[e[E++]]^u[e[E++]]^d[e[E++]]^h[e[E++]]^l[e[E++]]^c[e[E++]]^a[e[E++]]^o[e[E++]]^r[e[E++]]^n[e[E++]]^s[e[E++]]^t[e[E++]];for(C+=15;E<C;)v=v>>>8^t[255&(v^e[E++])];return~v},e.str=function(e,i){for(var s=~i,n=0,r=e.length,o=0,a=0;n<r;)(o=e.charCodeAt(n++))<128?s=s>>>8^t[255&(s^o)]:o<2048?s=(s=s>>>8^t[255&(s^(192|o>>6&31))])>>>8^t[255&(s^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&e.charCodeAt(n++),s=(s=(s=(s=s>>>8^t[255&(s^(240|o>>8&7))])>>>8^t[255&(s^(128|o>>2&63))])>>>8^t[255&(s^(128|a>>6&15|(3&o)<<4))])>>>8^t[255&(s^(128|63&a))]):s=(s=(s=s>>>8^t[255&(s^(224|o>>12&15))])>>>8^t[255&(s^(128|o>>6&63))])>>>8^t[255&(s^(128|63&o))];return~s}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},70492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8986).then(i.bind(i,58986))})},70552:(e,t,i)=>{"use strict";var s=i(31450),n=i(79027),r=i(78209);class o extends s.ks{constructor(){super({id:"editor.action.fontZoomIn",label:r.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()+1)}}class a extends s.ks{constructor(){super({id:"editor.action.fontZoomOut",label:r.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()-1)}}class c extends s.ks{constructor(){super({id:"editor.action.fontZoomReset",label:r.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(0)}}(0,s.Fl)(o),(0,s.Fl)(a),(0,s.Fl)(c)},70983:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0010 3h1.94L6.97 7.97a.75.75 0 001.06 1.06L13 4.06V6a.75.75 0 001.5 0V2.25a.75.75 0 00-.75-.75zM7.5 3.25a.75.75 0 00-.75-.75H4.5a3 3 0 00-3 3v6a3 3 0 003 3h6a3 3 0 003-3V9.25a.75.75 0 00-1.5 0v2.25a1.5 1.5 0 01-1.5 1.5h-6A1.5 1.5 0 013 11.5v-6A1.5 1.5 0 014.5 4h2.25a.75.75 0 00.75-.75",clipRule:"evenodd"})))}},71316:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(6658).then(i.bind(i,86658))})},71319:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,w:()=>o});var s=i(31308),n=i(13850);function r(e,t,i){return(0,n.eP)({debugName:()=>`Configuration Key "${e}"`},(t=>i.onDidChangeConfiguration((i=>{i.affectsConfiguration(e)&&t(i)}))),(()=>i.getValue(e)??t))}function o(e,t,i){const n=e.bindTo(t);return(0,s.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}},71468:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(8234).then(i.bind(i,98234))})},71597:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>s});var s,n=i(25890),r=i(5662),o=i(46359);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(s||(s={}));const a={Quickaccess:"workbench.contributions.quickaccess"};o.O.add(a.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,r.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,n.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},71933:(e,t,i)=>{"use strict";i.d(t,{C:()=>ue});var s,n=i(8597),r=i(11007),o=i(64383),a=i(91090),c=i(5662),l=i(83069),h=i(87289),d=i(56942),u=i(55130),g=i(8995),p=i(61407),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw]}constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>s.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i?.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v=s=f([_(0,m.b)],v);i(97791);var C=i(10350),E=(i(93409),i(78209));const b=Object.freeze({kind:g.k.Empty,title:(0,E.kg)("codeAction.widget.id.more","More Actions...")}),S=Object.freeze([{kind:p.gB.QuickFix,title:(0,E.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,E.kg)("codeAction.widget.id.extract","Extract"),icon:C.W.wrench},{kind:p.gB.RefactorInline,title:(0,E.kg)("codeAction.widget.id.inline","Inline"),icon:C.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,E.kg)("codeAction.widget.id.convert","Rewrite"),icon:C.W.wrench},{kind:p.gB.RefactorMove,title:(0,E.kg)("codeAction.widget.id.move","Move"),icon:C.W.wrench},{kind:p.gB.SurroundWith,title:(0,E.kg)("codeAction.widget.id.surround","Surround With"),icon:C.W.surroundWith},{kind:p.gB.Source,title:(0,E.kg)("codeAction.widget.id.source","Source Action"),icon:C.W.symbolFile},b]);var y=i(96758),w=i(99645),R=i(11799),L=i(47625),T=i(93090),x=i(18447),k=i(98067),A=i(25689),N=i(47508),I=i(19070),O=i(66261),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class U{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??""}disposeTemplate(e){}}let H=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new L.x(e,k.OS)}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=A.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,O.GuP)(e.group.icon.color.id))):(i.icon.className=A.L.asClassName(C.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=G(e.label),i.keybinding.set(e.keybinding),n.bo(!!e.keybinding,i.keybinding.element);const s=this._keybindingService.lookupKeybinding(P)?.getLabel(),r=this._keybindingService.lookupKeybinding(F)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:s&&r?this._supportsPreview&&e.canPreview?i.container.title=(0,E.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",s,r):i.container.title=(0,E.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",s):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};H=D([M(1,m.b)],H);class B extends UIEvent{constructor(){super("acceptSelectedAction")}}class W extends UIEvent{constructor(){super("previewSelectedAction")}}function V(e){if("action"===e.kind)return e.label}let z=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._delegate=s,this._contextViewService=n,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new x.Qi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new T.B8(e,this.domNode,o,[new H(t,this._keybindingService),new U],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:V},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?G(e?.label):"";return e.disabled&&(t=(0,E.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,E.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(I.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let s=e;if(this._allMenuItems.length>=50)s=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));s=Math.max(...t,e)}const n=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(n,s),this.domNode.style.height=`${n}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],s=this._list.element(i);if(!this.focusCondition(s))return;const n=e?new W:new B;this._list.setSelection([i],n)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof W):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(0===e.length)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function G(e){return e.replace(/\r\n|\r|\n/g," ")}z=D([M(4,N.l),M(5,m.b)],z);var j=i(27195),K=i(32848),Y=i(14718),q=i(63591),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};(0,O.x1A)("actionBar.toggledBackground",O.c1f,(0,E.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const X={Visible:new K.N1("codeActionMenuVisible",!1,(0,E.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},Z=(0,q.u1)("actionWidgetService");let J=class extends c.jG{get isVisible(){return X.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new c.HE)}show(e,t,i,s,n,r,o){const a=X.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(z,e,t,i,s);this._contextViewService.showContextView({getAnchor:()=>n,render:e=>(a.set(!0),this._renderWidget(e,c,o??[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},r,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new c.Cm,o=document.createElement("div"),a=e.appendChild(o);a.classList.add("context-view-block"),r.add(n.ko(a,n.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const l=document.createElement("div"),h=e.appendChild(l);h.classList.add("context-view-pointerBlock"),r.add(n.ko(h,n.Bx.POINTER_MOVE,(()=>h.remove()))),r.add(n.ko(h,n.Bx.MOUSE_DOWN,(()=>h.remove())));let d=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),d=e.getContainer().offsetWidth)}const u=this._list.value?.layout(d);s.style.width=`${u}px`;const g=r.add(n.w5(e));return r.add(g.onDidBlur((()=>this.hide(!0)))),r}_createActionBar(e,t){if(!t.length)return;const i=n.$(e),s=new R.E(i);return s.push(t,{icon:!1,label:!0}),s}_onWidgetClosed(e){this._list.value?.hide(e)}};J=$([Q(0,N.l),Q(1,K.fN),Q(2,q._Y)],J),(0,Y.v)(Z,J,1);const ee=1100;(0,j.ug)(class extends j.L{constructor(){super({id:"hideCodeActionWidget",title:(0,E.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:X.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(Z).hide(!0)}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectPrevCodeAction",title:(0,E.aS)("selectPrevCodeAction.title","Select previous action"),precondition:X.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusPrevious()}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectNextCodeAction",title:(0,E.aS)("selectNextCodeAction.title","Select next action"),precondition:X.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusNext()}}),(0,j.ug)(class extends j.L{constructor(){super({id:P,title:(0,E.aS)("acceptSelected.title","Accept selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected()}}),(0,j.ug)(class extends j.L{constructor(){super({id:F,title:(0,E.aS)("previewSelected.title","Preview selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(50091),se=i(84001),ne=i(75147),re=i(73823),oe=i(86723),ae=i(47612),ce=i(59473),le=i(90651),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends c.jG{static{te=this}static{this.ID="editor.contrib.codeActionController"}static get(e){return e.getContribution(te.ID)}constructor(e,t,i,s,n,r,o,l,h,d,u){super(),this._commandService=o,this._configurationService=l,this._actionWidgetService=h,this._instantiationService=d,this._telemetryService=u,this._activeCodeActions=this._register(new c.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new ce.Dc(this._editor,n.codeActionProvider,t,i,r,l,this._telemetryService)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(y.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=s.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,s){if(!this._editor.hasModel())return;w.k.get(this._editor)?.closeMessage();const n=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:s,context:{notAvailableMessage:e,position:n}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,s){try{await this._instantiationService.invokeFunction(u.W4,e,s,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(e){if(1!==e.type)return void this.hideLightBulbWidget();let t;try{t=await e.actions}catch(s){return void(0,o.dz)(s)}if(this._disposed)return;const i=this._editor.getSelection();if(i?.startLineNumber===e.position.lineNumber)if(this._lightBulbWidget.value?.update(t,e.trigger,e.position),1===e.trigger.type){if(e.trigger.filter?.include){const i=this.tryGetValidActionToApply(e.trigger,t);if(i){try{this.hideLightBulbWidget(),await this._applyCodeAction(i,!1,!1,u.Qp.FromCodeActions)}finally{t.dispose()}return}if(e.trigger.context){const i=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,t);if(i&&i.action.disabled)return w.k.get(this._editor)?.showMessage(i.action.disabled,e.trigger.context.position),void t.dispose()}}const i=!!e.trigger.filter?.include;if(e.trigger.context&&(!t.allActions.length||!i&&!t.validActions.length))return w.k.get(this._editor)?.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,void t.dispose();this._activeCodeActions.value=t,this.showCodeActionList(t,this.toCoords(e.position),{includeDisabledActions:i,fromLightbulb:!1})}else this._actionWidgetService.isVisible?t.dispose():this._activeCodeActions.value=t}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}static{this.DECORATION=h.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"})}async showCodeActionList(e,t,i){const s=this._editor.createDecorationsCollection(),n=this._editor.getDomNode();if(!n)return;const o=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!o.length)return;const a=l.y.isIPosition(t)?this.toCoords(t):t,c={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?u.Qp.FromAILightbulb:u.Qp.FromCodeActions),this._actionWidgetService.hide(!1),s.clear()},onHide:e=>{this._editor?.focus(),s.clear()},onHover:async(e,t)=>{if(t.isCancellationRequested)return;let i=!1;const s=e.action.kind;if(s){const e=new g.k(s);i=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite,p.gB.RefactorMove,p.gB.Source].some((t=>t.contains(e)))}return{canPreview:i||!!e.action.edit?.edits.length}},onFocus:e=>{if(e&&e.action){const t=e.action.ranges,i=e.action.diagnostics;if(s.clear(),t&&t.length>0){const e=i&&i?.length>1?i.map((e=>({range:e,options:te.DECORATION}))):t.map((e=>({range:e,options:te.DECORATION})));s.set(e)}else if(i&&i.length>0){const e=i.map((e=>({range:e,options:te.DECORATION})));s.set(e);const t=i[0];if(t.startLineNumber&&t.startColumn){const e=this._editor.getModel()?.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn})?.word;r.h5((0,E.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,t.startLineNumber,t.startColumn))}}}else s.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>({kind:"action",item:e,group:b,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!e.action.edit?.edits.length})));const s=S.map((e=>({group:e,actions:[]})));for(const r of e){const e=r.action.kind?new g.k(r.action.kind):g.k.None;for(const t of s)if(t.group.kind.contains(e)){t.actions.push(r);break}}const n=[];for(const r of s)if(r.actions.length){n.push({kind:"header",group:r.group});for(const e of r.actions){const t=r.group;n.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:C.W.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return n}(o,this._shouldShowHeaders(),this._resolver.getResolver()),c,a,n,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,n.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){const e=this._editor?.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:e?.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const s=e.documentation.map((e=>({id:e.id,label:e.title,tooltip:e.tooltip??"",class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(e.id,...e.arguments??[])})));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&s.push(this._showDisabled?{id:"hideMoreActions",label:(0,E.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,E.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),s}};ue=te=he([de(1,ne.DR),de(2,K.fN),de(3,q._Y),de(4,d.ILanguageFeaturesService),de(5,re.N8),de(6,ie.d),de(7,se.pG),de(8,Z),de(9,q._Y),de(10,le.k)],ue),(0,ae.zy)(((e,t)=>{var i,s;i=".quickfix-edit-highlight",(s=e.getColor(O.Ubg))&&t.addRule(`.monaco-editor ${i} { background-color: ${s}; }`);const n=e.getColor(O.ECk);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,oe.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}))},71964:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,y:()=>o});var s=i(36677),n=i(75326);class r{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),s=i[0].range,r=i[1].range;return new n.L(s.endLineNumber,s.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}class o{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},72093:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});const s={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var n,r=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).slice(1));function l(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(s.randomUUID&&!t&&!e)return s.randomUUID();var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return l(n)}},72466:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,x:()=>n});const s=[];function n(e){s.push(e)}function r(){return s.slice(0)}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(60413),n=i(24939),r=i(42539),o=i(98067);const a=o.zx?256:2048,c=o.zx?2048:256;class l{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return n.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(s.gm)switch(t){case 59:return 85;case 60:if(o.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(o.zx)return 57}else if(s.Tc){if(o.zx&&93===t)return 57;if(!o.zx&&92===t)return 57}return n.uw[t]||0}(t),this.code=t.code,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;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=c),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},73020:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(5866).then(i.bind(i,5866))})},73157:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(55275);function n(e,t){e instanceof s.D?(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")}},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>L,SO:()=>me});var s=i(7252);function n(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const r="ParanoidC";function o(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const o=n("+","plus"),a=n("-","minus"),c=n("1:1","normal"),l=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",r),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const n=t.colors||{};return new s.fabric.Canvas(r,{selection:!1,backgroundColor:n.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,s){const n=document.createElement("div");n.className="paranoid-controls";const r=document.createElement("style");return r.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(s),n.appendChild(r),n.appendChild(t),n.appendChild(e),n.appendChild(i),n}(o,a,c,t.colors);return i.appendChild(h),function(e,t,i,s,n){const r=n.minZoom||.2,o=n.zoomStep||.2,a=n.maxZoom||2,c=n.startZoom||1;e.setZoom(c),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=o,i<r&&(i=r),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=o,i>a&&(i=a),e.setZoom(i)})),s.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(l,o,a,c,t),function(e){let t=!1,i=0,s=0;e.on("mouse:down",(n=>{n.target||(e.setCursor("grabbing"),t=!0,i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:move",(n=>{t&&(e.viewportTransform[4]+=n.pointer.x-i,e.viewportTransform[5]+=n.pointer.y-s,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(l),l}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},c={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},l="Arial, sans-serif",h=13,d=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(32133);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let s=!1;i&&(i.children.length>0?t.unshift(...i.children):s=!0,e(i,s))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const s=this.findSources(i,e.links);let n=[],r={},o=new Map;return s.forEach((t=>{const s=this.mapNodesToTree(t,i,e.links);r=Object.assign(Object.assign({},s.groups),r),o=new Map([...o,...s.notGroupMemebersChildren]),n.push(s.tree)})),o.forEach(((e,t)=>{r[t]&&r[t].addNodes(e)})),n=n.reduce(((e,t)=>{const i=t.root.data.group;return i?r[i].members.push(t):e.push(t),e}),[]),n}getGroups({nodes:e}){const t=new Map;return e.forEach((e=>{if(e.group){const i=t.get(e.group);i?i.push(e.name):t.set(e.group,[e.name])}})),t}findSources(e,t){const i=t.map((({to:e})=>e));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var s;const n=this.createNode(e),r={};this.appendGoup(r,n);const o=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(o,r)(n,(null===(s=o.find((t=>t.name===e.name)))||void 0===s?void 0:s.children)||[]);return{tree:new p(n),groups:r,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,s=(n,r)=>{const o=r.map((i=>{const n=e.find((({name:e})=>e===i)),r=this.createNode(n);return this.appendGoup(t,r),n.children.length>0&&s(r,n.children),r})),a=n.data.group,c=Boolean(a),l=[],h=[];if(o.forEach((e=>{const t=e.data.group;c?a===t?l.push(e):h.push(e):l.push(e)})),n.addNodes(l),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return s}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}function v(e){switch(e){case 0:return 0;case 1:return 16;default:return 24}}function C(e,t,i,s,n,r){const o=function(e,t,i,s,n,r,o){const a=new Map,c=new Map,l=new Map,h=[];return s.traverseBF((s=>{const{object:n,width:r,height:c}=function(e,t,i,s,n,r,o){var a,c;const l=null!==(a=t.shapeInstance)&&void 0!==a?a:r.node(e,{top:i,left:s},t,n,o),h=null!==(c=t.canvasNode)&&void 0!==c?c:l.getShape();return t.addShapeInstance(l),t.addCanvasNode(h),{object:h,top:i,left:s,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,s,0,0,t,i,o);a.set(s,{width:r,height:c}),h.push(n)})),function e(t){const{width:i}=a.get(t);let s=i,n=0;if(t.parent&&1===t.parent.children.length&&c.has(t.parent)){const e=c.get(t.parent);s<e&&(s=e)}return c.set(t,s),t.children.length>0&&(n=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),l.set(t,n)),s=Math.max(s,n),c.set(t,s),s}(s.root),function e(t,i,s){let n=s,r=s;for(const o of t){const{width:t,height:s}=a.get(o),h=c.get(o),d=i,u=n+Math.floor(h/2)-Math.floor(t/2);if(o.canvasNode.set({top:d,left:u}),o.canvasNode.setCoords(),n=n+h+16,o.children.length){let t=0;const n=l.get(o);n<h&&(t=Math.floor((h-n)/2));const a=i+s+v(o.children.length),c=r+t;e(o.children,a,c)}r=n}}([s.root],n,r),h}(e.canvas,s,n,e,t,i,r);let a=0,c=0;return o.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),c=Math.max(c,(e.top||0)+e.getScaledHeight())})),{nodes:o,bottom:c,right:a}}function E(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function b(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class S{constructor(e,t,i,s){this.canvas=o(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=s,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(r);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,n=t;const r=this.opts.initialTop;let o=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:s,right:a}=C(e,r,o,this.opts,this.shapes,this.em);o=a+15,i=Math.max(s,i),n=Math.max(a,n),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,n=[];return e.data.links.reduce(((t,{from:r})=>{const o=e.nodes.get(r);if(o&&1===o.children.length&&!n.includes(r)){const{x:e,y:a}=E(o),l=new s.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new s.fabric.Group([l],Object.assign({},c))),n.push(r)}if(o&&o.children.length>1&&!n.includes(r)){const{x:e,y:a}=E(o),l=12,h=6,d=[new s.fabric.Path(`M ${e} ${a}\n V ${a+l}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=b(o.children[0]),{x:p,y:m}=b(o.children[o.children.length-1]),f=new s.fabric.Path(`M ${u} ${g}\n V ${g-l+h}\n Q ${u} ${g-l} ${u+h} ${g-l}\n H ${p-h}\n Q ${p} ${m-l} ${p} ${m+h-l}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(f),o.children.forEach(((e,t)=>{if(0===t||t===o.children.length-1)return;const{x:n,y:r}=b(e),a=new s.fabric.Path(`M ${n} ${r}\n V ${r-l}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(a)})),t.push(new s.fabric.Group(d,Object.assign({},c))),n.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:s,left:n,height:r,width:o}=i.getBoundingRect(),a=n+o,c=s+r;a>e&&(e=a),c>t&&(t=c)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,n=this.canvas.getHeight()/t,r=Math.min(i,n);if(r<1){this.canvas.setZoom(r);const e=this.opts.initialTop*r,t=this.opts.initialLeft*r,i=this.opts.initialTop-e,n=this.opts.initialLeft-t;this.canvas.relativePan(new s.fabric.Point(n,i))}}}function y(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,s)=>{const n=t.getPropertyValue(e[s]).replace(/ /g,"");return n&&(i[s]=n),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const w={linkType:"arrow"};function R(e=w){const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),y()),t)})}function L(e,t,i,s){const n=R(i);return new S(e,n,t,s)}var T=i(59284),x=(i(43781),i(62060),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,s){return e[0]===t&&(i=s,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(t,i){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,s=e(i,t);~s&&i.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,s=this.__entries__;i<s.length;i++){var n=s[i];e.call(t,n[1],n[0])}},t}()}()),k="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),N="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var I=["top","right","bottom","left","width","height","size","weight"],O="undefined"!==typeof MutationObserver,D=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,s=!1,n=0;function r(){i&&(i=!1,e()),s&&a()}function o(){N(r)}function a(){var e=Date.now();if(i){if(e-n<2)return;s=!0}else i=!0,s=!1,setTimeout(o,t);n=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;I.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),M=function(e,t){for(var i=0,s=Object.keys(t);i<s.length;i++){var n=s[i];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},P=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},F=z(0,0,0,0);function U(e){return parseFloat(e)||0}function H(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+U(e["border-"+i+"-width"])}),0)}function B(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return F;var s=P(e).getComputedStyle(e),n=function(e){for(var t={},i=0,s=["top","right","bottom","left"];i<s.length;i++){var n=s[i],r=e["padding-"+n];t[n]=U(r)}return t}(s),r=n.left+n.right,o=n.top+n.bottom,a=U(s.width),c=U(s.height);if("border-box"===s.boxSizing&&(Math.round(a+r)!==t&&(a-=H(s,"left","right")+r),Math.round(c+o)!==i&&(c-=H(s,"top","bottom")+o)),!function(e){return e===P(e).document.documentElement}(e)){var l=Math.round(a+r)-t,h=Math.round(c+o)-i;1!==Math.abs(l)&&(a-=l),1!==Math.abs(h)&&(c-=h)}return z(n.left,n.top,a,c)}var W="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof P(e).SVGGraphicsElement}:function(e){return e instanceof P(e).SVGElement&&"function"===typeof e.getBBox};function V(e){return k?W(e)?function(e){var t=e.getBBox();return z(0,0,t.width,t.height)}(e):B(e):F}function z(e,t,i,s){return{x:e,y:t,width:i,height:s}}var G=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=V(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j=function(e,t){var i=function(e){var t=e.x,i=e.y,s=e.width,n=e.height,r="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(r.prototype);return M(o,{x:t,y:i,width:s,height:n,top:i,right:t+s,bottom:n+i,left:t}),o}(t);M(this,{target:e,contentRect:i})},K=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new x,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new G(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Y="undefined"!==typeof WeakMap?new WeakMap:new x,q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=D.getInstance(),s=new K(t,i,this);Y.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){q.prototype[e]=function(){var t;return(t=Y.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;T.Component;T.Component;var $=i(87924),Q=i.n($);const X={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class Z{constructor(e,t,i,s){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=s,this.textProps={fontSize:X.textFontSize,lineHeight:X.textLineHeight,fontFamily:l,fill:null===s||void 0===s?void 0:s.titleColor},this.selectedGroup=t[0].group;const n=this.createTitles(),r=n.map((e=>e.getScaledHeight())),o=Math.max.apply(null,r);this.lineTop=this.top+o+X.textOffset;const a=this.createLine();this.content=this.createContent(n),this.group=this.createGroup(n,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((({group:e})=>e)).map((t=>{var i,n;const r=new s.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(n=this.colors)||void 0===n?void 0:n.textColor}));return e+=r.getScaledWidth()+X.statsOffset,r}))}createLine(){return new s.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map((({group:t,stats:i},n)=>{const r=this.getContentItems(i,this.lineTop),o=e[n],a=o.left||0,c=a+o.getScaledWidth();return{group:t,items:new s.fabric.Group(r,{opacity:this.selectedGroup===t?1:0}),title:o,hoverLine:this.createHoverLine(a,c,t)}}))}getContentItems(e,t){let i=t+2*X.textOffset;const n=[],r=e=>{e.forEach((({name:e,value:t})=>{var r;const o=new s.fabric.Text(e,Object.assign({left:this.left,top:i},this.textProps)),a=X.expandedWidth/2-X.padding,c=X.expandedWidth-2*X.padding,l=new s.fabric.Textbox(String(t),Object.assign(Object.assign({left:a,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:c-a}));n.push(o,l),i+=Math.max(o.getScaledHeight(),l.getScaledHeight())+X.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?r(e):e.forEach((({name:t,items:o},a)=>{const c=new s.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(n.push(c),i+=c.getScaledHeight()+X.textOffset,r(o),a!==e.length-1){const e=new s.fabric.Path(`M ${this.left} ${i}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});n.push(e),i+=e.getScaledHeight()+X.textOffset}})),n}createGroup(e,t,i){const n=i.map((({items:e})=>e)),r=i.map((({hoverLine:e})=>e));return new s.fabric.Group([...e,t,...n,...r],Object.assign({left:this.coords.left,top:this.coords.top},c))}createHoverLine(e,t,i){return new s.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((({group:e,title:t,items:i,hoverLine:s})=>{t.on("mousedown",(()=>{const n=this.selectedGroup,r=this.content.find((e=>e.group===n));r&&(r.title.set({fill:this.colors.textColor}),r.items.set({opacity:0}),r.hoverLine.set({opacity:0}),t.set({fill:this.colors.titleColor}),i.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=e,this.canvas.requestRenderAll())}))}))}}function J(e,t,i,s,n){return new Z(e,t,{top:i,left:s},n).getCanvasObject()}function ee(e,t,i){return new s.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:l,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const te={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:16,textOffset:8},ie={scaleX:16/512,scaleY:16/512,originY:"center"};function se(e,t,i){const n=new s.fabric.Text(e,{fontSize:te.textFontSize,lineHeight:te.textFontSize,fontFamily:l,fill:i.getCommonColor("text-misc"),originY:"center"}),r=[n];let o;switch(e){case"Merge":o=new s.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",ie);break;case"UnionAll":o=new s.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",ie);break;case"HashShuffle":o=new s.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",ie);break;case"Map":o=new s.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",ie);break;case"Broadcast":o=new s.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",ie)}return o&&(o.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),n.set({left:22}),r.push(o)),new s.fabric.Group(r,Object.assign(Object.assign({},c),{hoverCursor:t?"pointer":"default"}))}class ne{constructor(e,t,i,s,n){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=n,this.data=Q()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+te.padding,new s.fabric.Rect({width:te.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:te.borderRadius,ry:te.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ee(this.data.id,this.isExpandable(),this.opts.colors),se(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=te.padding,s=this.expanded?te.expandedWidth:te.width,n=t.getScaledWidth();e.set({left:0,top:4,width:s-4}),t.set({left:s/2-n/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,s=i.getScaledWidth();let n,r;this.expanded?(this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+te.padding,(this.group.left||0)+te.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*te.padding,n=te.expandedWidth,r=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(n=te.width,r=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const o=function(e,t){const i=[];return t.forEachObject((s=>{i.push(s),t.removeWithUpdate(s),e.add(s)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:n,height:r,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:n-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-s/2}),o()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const re={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:d,padding:12};class oe{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+re.padding,new s.fabric.Polygon([{x:re.bevelSize,y:0},{x:re.width-re.bevelSize,y:0},{x:re.width,y:re.bevelSize},{x:re.width,y:this.nodeHeight-re.bevelSize},{x:re.width-re.bevelSize,y:this.nodeHeight},{x:re.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-re.bevelSize},{x:0,y:re.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:re.titleFontSize,lineHeight:re.titleLineHeight,left:0,top:26,fontFamily:l,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=re.padding,i=e.getScaledWidth();e.set({left:re.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ae=40,ce=40,le=20;class he{constructor(e,t,i,n,r){this.coords=t,this.opts=n,this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new s.fabric.Rect({width:ae,height:ce,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:le,ry:le,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body],Object.assign({top:e,left:t},c))}}const de={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class ue{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+de.padding,new s.fabric.Rect({width:de.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:de.textFontSize,lineHeight:de.textLineHeight,left:0,top:26,fontFamily:l,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=de.padding,i=e.getScaledWidth();e.set({left:de.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ge={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class pe{constructor(e,t,i,n,r){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=r,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ge.padding,new s.fabric.Rect({width:ge.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ge.borderRadius,ry:ge.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ee(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],n=this.isExpandable(),r=this.opts.colors,new s.fabric.Text(i.join("\n"),{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:r.getCommonColor("text-primary"),hoverCursor:n?"pointer":"default"}));var i,n,r;const o=function(e,t){if(0===e.length)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e.join("\n"),{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e,{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.cte||"",this.opts.colors);return[e,t,o,a]}setShapeObjectsCoords(){const[e,t,i,s]=this.objects;let n=ge.padding;const r=ge.padding;e.set({left:0,top:4,width:(this.expanded?ge.expandedWidth:ge.width)-4}),t.set({left:r,top:n}),n+=t.getScaledHeight(),i.set({left:r,top:n+(0===i.size()?0:ge.textOffset)}),n+=i.getScaledHeight(),s.set({left:r,top:n+(0===s.size()?0:ge.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=ge.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+ge.padding,(this.group.left||0)+ge.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*ge.padding;const t=ge.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function me(e,t,i,s,n){return function(e){const t=Q()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ne(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new ue(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new he(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new oe(e,t,i,s,n):new pe(e,t,i,s,n)}},73374:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(9312).then(i.bind(i,79312))})},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>d,tN:()=>g,zk:()=>l});var s=i(64383),n=i(5662),r=i(31308),o=i(83069),a=i(36677);const c=[];function l(){return c}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new s.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function d(e,t){const i=new n.Cm,s=e.createDecorationsCollection();return i.add((0,r.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function u(e,t){return new o.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new o.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},73823:(e,t,i)=>{"use strict";i.d(t,{G5:()=>n,N8:()=>o,ke:()=>r});var s=i(63591);const n=(0,s.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{static{this.None=Object.freeze({report(){}})}constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}const o=(0,s.u1)("editorProgressService")},73848:(e,t,i)=>{"use strict";i.r(t),i.d(t,{KeyMod:()=>u,createMonacoBaseAPI:()=>g});var s=i(18447),n=i(41234),r=i(24939),o=i(79400),a=i(83069),c=i(36677),l=i(75326),h=i(62083),d=i(35015);class u{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,r.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:s.Qi,Emitter:n.vl,KeyCode:d.DD,KeyMod:u,Position:a.y,Range:c.Q,Selection:l.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:h.ou}}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},73983:(e,t,i)=>{"use strict";function s(e){return e&&"object"===typeof e&&"string"===typeof e.original&&"string"===typeof e.value}function n(e){return!!e&&void 0!==e.condition}i.d(t,{N:()=>n,f:()=>s})},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>R,P8:()=>w,S8:()=>C,SA:()=>v,V8:()=>S,Vn:()=>L,fj:()=>E,hd:()=>b,pD:()=>y});var s=i(59911);const n=46,r=47,o=92,a=58;class c extends Error{constructor(e,t,i){let s;"string"===typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";const n=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${n} ${s} of type ${t}`;r+=". Received type "+typeof i,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function l(e,t){if("string"!==typeof e)throw new c(t,"string",e)}const h="win32"===s.iD;function d(e){return e===r||e===o}function u(e){return e===r}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,s){let o="",a=0,c=-1,l=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(s(h))break;h=r}if(s(h)){if(c===d-1||1===l);else if(2===l){if(o.length<2||2!==a||o.charCodeAt(o.length-1)!==n||o.charCodeAt(o.length-2)!==n){if(o.length>2){const e=o.lastIndexOf(i);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(i)),c=d,l=0;continue}if(0!==o.length){o="",a=0,c=d,l=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",a=2)}else o.length>0?o+=`${i}${e.slice(c+1,d)}`:o=e.slice(c+1,d),a=d-c-1;c=d,l=0}else h===n&&-1!==l?++l:l=-1}return o}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new c(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,s=t.base||`${t.name||""}${n=t.ext,n?`${"."===n[0]?"":"."}${n}`:""}`;var n;return i?i===t.root?`${i}${s}`:`${i}${e}${s}`:s}const f={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let c;if(r>=0){if(c=e[r],l(c,`paths[${r}]`),0===c.length)continue}else 0===t.length?c=s.bJ():(c={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||s.bJ(),(void 0===c||c.slice(0,2).toLowerCase()!==t.toLowerCase()&&c.charCodeAt(2)===o)&&(c=`${t}\\`));const h=c.length;let u=0,p="",m=!1;const f=c.charCodeAt(0);if(1===h)d(f)&&(u=1,m=!0);else if(d(f))if(m=!0,d(c.charCodeAt(1))){let e=2,t=e;for(;e<h&&!d(c.charCodeAt(e));)e++;if(e<h&&e!==t){const i=c.slice(t,e);for(t=e;e<h&&d(c.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!d(c.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${c.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&c.charCodeAt(1)===a&&(p=c.slice(0,2),u=2,h>2&&d(c.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(n){if(t.length>0)break}else if(i=`${c.slice(u)}\\${i}`,n=m,m&&t.length>0)break}return i=p(i,!n,"\\",d),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){l(e,"path");const t=e.length;if(0===t)return".";let i,s=0,n=!1;const r=e.charCodeAt(0);if(1===t)return u(r)?"\\":e;if(d(r))if(n=!0,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){const o=e.slice(r,n);for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return`\\\\${o}\\${e.slice(r)}\\`;n!==r&&(i=`\\\\${o}\\${e.slice(r,n)}`,s=n)}}}else s=1;else g(r)&&e.charCodeAt(1)===a&&(i=e.slice(0,2),s=2,t>2&&d(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?p(e.slice(s),!n,"\\",d):"";return 0!==o.length||n||(o="."),o.length>0&&d(e.charCodeAt(t-1))&&(o+="\\"),void 0===i?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){l(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return d(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let r=0;r<e.length;++r){const s=e[r];l(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let s=!0,n=0;if("string"===typeof i&&d(i.charCodeAt(0))){++n;const e=i.length;e>1&&d(i.charCodeAt(1))&&(++n,e>2&&(d(i.charCodeAt(2))?++n:s=!1))}if(s){for(;n<t.length&&d(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return f.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";const i=f.resolve(e),s=f.resolve(t);if(i===s)return"";if((e=i.toLowerCase())===(t=s.toLowerCase()))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===o;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===o;)r--;const a=r-n;let c=0;for(;c<t.length&&t.charCodeAt(c)===o;)c++;let h=t.length;for(;h-1>c&&t.charCodeAt(h-1)===o;)h--;const d=h-c,u=a<d?a:d;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(n+p);if(i!==t.charCodeAt(c+p))break;i===o&&(g=p)}if(p!==u){if(-1===g)return s}else{if(d>u){if(t.charCodeAt(c+p)===o)return s.slice(c+p+1);if(2===p)return s.slice(c+p)}a>u&&(e.charCodeAt(n+p)===o?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=n+g+1;p<=r;++p)p!==r&&e.charCodeAt(p)!==o||(m+=0===m.length?"..":"\\..");return c+=g,m.length>0?`${m}${s.slice(c,h)}`:(s.charCodeAt(c)===o&&++c,s.slice(c,h))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===o){if(t.charCodeAt(1)===o){const e=t.charCodeAt(2);if(63!==e&&e!==n)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===o)return`\\\\?\\${t}`;return e},dirname(e){l(e,"path");const t=e.length;if(0===t)return".";let i=-1,s=0;const n=e.charCodeAt(0);if(1===t)return d(n)?e:".";if(d(n)){if(i=s=1,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return e;n!==r&&(i=s=n+1)}}}}else g(n)&&e.charCodeAt(1)===a&&(i=t>2&&d(e.charCodeAt(2))?3:2,s=i);let r=-1,o=!0;for(let a=t-1;a>=s;--a)if(d(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&l(t,"suffix"),l(e,"path");let i,s=0,n=-1,r=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(s=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(i=e.length-1;i>=s;--i){const c=e.charCodeAt(i);if(d(c)){if(!r){s=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(c===t.charCodeAt(o)?-1===--o&&(n=i):(o=-1,n=a))}return s===n?n=a:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=s;--i)if(d(e.charCodeAt(i))){if(!r){s=i+1;break}}else-1===n&&(r=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=0,i=-1,s=0,r=-1,o=!0,c=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!o){s=a+1;break}}else-1===r&&(o=!1,r=a+1),t===n?-1===i?i=a:1!==c&&(c=1):-1!==i&&(c=-1)}return-1===i||-1===r||0===c||1===c&&i===r-1&&i===s+1?"":e.slice(i,r)},format:m.bind(null,"\\"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let s=0,r=e.charCodeAt(0);if(1===i)return d(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(r)){if(s=1,d(e.charCodeAt(1))){let t=2,n=t;for(;t<i&&!d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&!d(e.charCodeAt(t));)t++;t===i?s=t:t!==n&&(s=t+1)}}}}else if(g(r)&&e.charCodeAt(1)===a){if(i<=2)return t.root=t.dir=e,t;if(s=2,d(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let o=-1,c=s,h=-1,u=!0,p=e.length-1,m=0;for(;p>=s;--p)if(r=e.charCodeAt(p),d(r)){if(!u){c=p+1;break}}else-1===h&&(u=!1,h=p+1),r===n?-1===o?o=p:1!==m&&(m=1):-1!==o&&(m=-1);return-1!==h&&(-1===o||0===m||1===m&&o===h-1&&o===c+1?t.base=t.name=e.slice(c,h):(t.name=e.slice(c,o),t.base=e.slice(c,h),t.ext=e.slice(o,h))),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(h){const e=/\\/g;return()=>{const t=s.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>s.bJ()})(),v={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=-1&&!i;s--){const n=s>=0?e[s]:_();l(n,`paths[${s}]`),0!==n.length&&(t=`${n}/${t}`,i=n.charCodeAt(0)===r)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r,i=e.charCodeAt(e.length-1)===r;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(l(e,"path"),e.length>0&&e.charCodeAt(0)===r),join(...e){if(0===e.length)return".";let t;for(let i=0;i<e.length;++i){const s=e[i];l(s,"path"),s.length>0&&(void 0===t?t=s:t+=`/${s}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const i=e.length,s=i-1,n=t.length-1,o=s<n?s:n;let a=-1,c=0;for(;c<o;c++){const i=e.charCodeAt(1+c);if(i!==t.charCodeAt(1+c))break;i===r&&(a=c)}if(c===o)if(n>o){if(t.charCodeAt(1+c)===r)return t.slice(1+c+1);if(0===c)return t.slice(1+c)}else s>o&&(e.charCodeAt(1+c)===r?a=c:0===c&&(a=0));let h="";for(c=1+a+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==r||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r;let i=-1,s=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===r){if(!s){i=n;break}}else s=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&l(t,"ext"),l(e,"path");let i,s=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===r){if(!o){s=i+1;break}}else-1===c&&(o=!1,c=i+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(n=i):(a=-1,n=c))}return s===n?n=c:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===r){if(!o){s=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=-1,i=0,s=-1,o=!0,a=0;for(let c=e.length-1;c>=0;--c){const l=e.charCodeAt(c);if(l!==r)-1===s&&(o=!1,s=c+1),l===n?-1===t?t=c:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){i=c+1;break}}return-1===t||-1===s||0===a||1===a&&t===s-1&&t===i+1?"":e.slice(t,s)},format:m.bind(null,"/"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===r;let s;i?(t.root="/",s=1):s=0;let o=-1,a=0,c=-1,h=!0,d=e.length-1,u=0;for(;d>=s;--d){const t=e.charCodeAt(d);if(t!==r)-1===c&&(h=!1,c=d+1),t===n?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!h){a=d+1;break}}if(-1!==c){const s=0===a&&i?1:a;-1===o||0===u||1===u&&o===c-1&&o===a+1?t.base=t.name=e.slice(s,c):(t.name=e.slice(s,o),t.base=e.slice(s,c),t.ext=e.slice(o,c))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=f.win32=f,v.posix=f.posix=v;const C=h?f.normalize:v.normalize,E=h?f.join:v.join,b=h?f.resolve:v.resolve,S=h?f.relative:v.relative,y=h?f.dirname:v.dirname,w=h?f.basename:v.basename,R=h?f.extname:v.extname,L=h?f.sep:v.sep},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>c,_8:()=>a});var s=i(98067),n=i(87908),r=i(79027);const o=s.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const s=e.get(49),n=e.get(53),r=e.get(52),o=e.get(51),c=e.get(54),l=e.get(67),h=e.get(64);return a._create(s,n,r,o,c,l,h,t,i)}static _create(e,t,i,s,c,l,h,d,u){0===l?l=o*i:l<8&&(l*=i),(l=Math.round(l))<8&&(l=8);const g=1+(u?0:.1*r.D.getZoomLevel());if(i*=g,l*=g,c===n.r_.TRANSLATE)if("normal"===t||"bold"===t)c=n.r_.OFF;else{c=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,fontVariationSettings:c,lineHeight:l,letterSpacing:h})}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(){const e=n.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class c extends a{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}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},74276:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(9394).then(i.bind(i,29394))})},74304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(2854).then(i.bind(i,32854))})},74320:(e,t,i)=>{"use strict";var s,n;i.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>l});class r{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[s]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new r(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,s]of this.map)e(s.value,s.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(s=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,0!==i&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(s);break;case 1:this.addItemFirst(s)}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}values(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}entries(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class c extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class l extends c{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},74444:(e,t,i)=>{"use strict";i.d(t,{L:()=>n,h:()=>r});var s=i(64383);class n{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let s=i;for(;s<t.length&&t[s].start<=e.endExclusive;)s++;if(i===s)t.splice(i,0,e);else{const r=Math.min(e.start,t[i].start),o=Math.max(e.endExclusive,t[s-1].endExclusive);t.splice(i,s-i,new n(r,o))}}static tryCreate(e,t){if(!(e>t))return new n(e,t)}static ofLength(e){return new n(0,e)}static ofStartAndLength(e,t){return new n(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new s.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new n(this.start+e,this.endExclusive+e)}deltaStart(e){return new n(this.start+e,this.endExclusive)}deltaEnd(e){return new n(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new n(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new n(t,i)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new s.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new s.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}class r{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const s=Math.min(e.start,this._sortedRanges[t].start),r=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new n(s,r))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new r;for(const i of this._sortedRanges){const s=i.intersect(e);s&&t.addRange(s)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},74688:(e,t,i)=>{e.exports=i(57233)},74800:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationBracket))})},74850:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});class s{constructor(e,t,i,s,n,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=s,this._scrollSize=n,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new s(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,s,n){const r=Math.max(0,i-e),o=Math.max(0,r-2*t),a=s>0&&s>i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(20,Math.floor(i*o/s))),l=(o-c)/(s-i),h=n*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=s._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnicodeTextModelHighlighter:()=>c});var s=i(36677),n=i(43264),r=i(91508),o=i(66782),a=i(26486);class c{static computeUnicodeHighlights(e,t,i){const c=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new l(t),u=d.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${r.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new n.W5(null,g),f=[];let _,v=!1,C=0,E=0,b=0;e:for(let n=c,l=h;n<=l;n++){const t=e.getLineContent(n),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,c=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);r.pc(i)&&e--}if(c+1<i){const e=t.charCodeAt(c-1);r.pc(e)&&c++}const l=t.substring(e,c);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(l,h?h.word:null);if(0!==u){3===u?C++:2===u?E++:1===u?b++:(0,o.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new s.Q(n,e+1,n,c+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:C,invisibleCharacterCount:E,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,t){const i=new l(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),n=i.ambiguousCharacters.getPrimaryConfusable(s),o=r.tl.getLocales().filter((e=>!r.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(s)));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class l{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=r.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of r.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,n=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=r.aC(o);s=s||t,t||this.ambiguousCharacters.isAmbiguous(e)||r.y_.isInvisibleCharacter(e)||(n=!0)}return!s&&n?0:this.options.invisibleCharacters&&!h(e)&&r.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>c,cj:()=>s,oc:()=>n});var s,n,r=i(42291),o=i(78209),a=i(63591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(s||(s={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,o.kg)("sev.error","Error"),t[e.Warning]=(0,o.kg)("sev.warning","Warning"),t[e.Info]=(0,o.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case r.A.Error:return e.Error;case r.A.Warning:return e.Warning;case r.A.Info:return e.Info;case r.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return r.A.Error;case e.Warning:return r.A.Warning;case e.Info:return r.A.Info;case e.Hint:return r.A.Ignore}}}(s||(s={})),function(e){const t="";function i(e,i){const n=[t];return e.source?n.push(e.source.replace("\xa6","\\\xa6")):n.push(t),e.code?"string"===typeof e.code?n.push(e.code.replace("\xa6","\\\xa6")):n.push(e.code.value.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(s.toString(e.severity)):n.push(t),e.message&&i?n.push(e.message.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(n||(n={}));const c=(0,a.u1)("markerService")},75162:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t){try{const i=BigInt(t.$value),s=BigInt(1e3),n=i%s,r=new Date(Number(i/s)),o=r.getFullYear();return o<=0&&r.setFullYear(o-1),r.toISOString().replace("Z","")+function(t){const i=String(t);return e.repeatChar("0",3-i.length)+i}(n)+"Z"}catch(i){return"Invalid timestamp"}}return t.isScalar=!0,t}},75208:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(8014).then(i.bind(i,98014))})},75295:(e,t,i)=>{"use strict";i.d(t,{CO:()=>g,WR:()=>d,mF:()=>h});var s=i(66782),n=i(64383),r=i(83069),o=i(74444),a=i(50973);class c{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new o.L(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.W(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var l=i(36677);class h{constructor(e){this.edits=e,(0,s.Ft)((()=>(0,s.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new r.y(1,1);for(const n of this.edits){const s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),a=u(i,r);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=n.text,i=o}const s=u(i,e.endPositionExclusive);return s.isEmpty()||(t+=e.getValueOfRange(s)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,s=0;for(const n of this.edits){const o=a.W.ofText(n.text),c=r.y.lift({lineNumber:n.range.startLineNumber+i,column:n.range.startColumn+(n.range.startLineNumber===t?s:0)}),l=o.createRange(c);e.push(l),i=l.endLineNumber-n.range.endLineNumber,s=l.endColumn-n.range.endColumn,t=n.range.endLineNumber}return e}}class d{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}function u(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return l.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new n.D7("start must be before end");return new l.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new r.y(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new c(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},75326:(e,t,i)=>{"use strict";i.d(t,{L:()=>r});var s=i(83069),n=i(36677);class r extends n.Q{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new s.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new s.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,s,n){return 0===n?new r(e,t,i,s):new r(i,s,e,t)}}},75639:(e,t,i)=>{"use strict";var s=i(24939),n=i(36999),r=i(31450),o=i(15092),a=i(91508),c=i(7085),l=i(36677);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const s=[];let n=0,r=0;const o=t.length;for(let h=1,d=e.getLineCount();h<=d;h++){const d=e.getLineContent(h),u=d.length+1;let g=0;if(r<o&&t[r].lineNumber===h&&(g=t[r].column,r++,g===u))continue;if(0===d.length)continue;const p=a.lT(d);let m=0;if(-1===p)m=1;else{if(p===d.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),s[n++]=c.k.delete(new l.Q(h,m,h,u))}return s}(e,this._cursors,this._trimInRegexesAndStrings);for(let s=0,n=i.length;s<n;s++){const e=i[s];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var d=i(49265),u=i(26685),g=i(83069),p=i(75326),m=i(60002);class f{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=[];for(let r=i.startLineNumber;r<=i.endLineNumber;r++)s.push(e.getLineContent(r));const n=s.join("\n");""===n&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new l.Q(i.startLineNumber,1,i.startLineNumber,1),n+"\n"):t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+n),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,s=i.endLineNumber,n=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(s+=this._endLineNumberDelta,n=1),i=p.L.createWithDirection(e,t,s,n,this._selectionDirection)}return i}}var _=i(7936),v=i(38566),C=i(17469),E=i(64395),b=i(82365),S=i(63346),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{constructor(e,t,i,s){this._languageConfigurationService=s,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=()=>e.getLanguageId(),s=(t,i)=>e.getLanguageIdAtPosition(t,i),n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumber<r.endLineNumber&&1===r.endColumn&&(this._moveEndPositionDown=!0,r=r.setEndPosition(r.endLineNumber-1,e.getLineMaxColumn(r.endLineNumber-1)));const{tabSize:o,indentSize:c,insertSpaces:h}=e.getOptions(),d=this.buildIndentConverter(o,c,h);if(r.startLineNumber===r.endLineNumber&&1===e.getLineMaxColumn(r.startLineNumber)){const i=r.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new l.Q(1,1,1,1),null):(t.addEditOperation(new l.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new l.Q(s,1,s,e.getLineMaxColumn(s)),null)),r=new p.L(s,1,s,1)}else{let n,c;if(this._isMovingDown){n=r.endLineNumber+1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=c;if(this.shouldAutoIndent(e,r)){const g=this.matchEnterRule(e,d,o,n,r.startLineNumber-1);if(null!==g){const t=a.UU(e.getLineContent(n)),i=g+E.c(t,o),s=E.k(i,o,h);u=s+this.trimStart(c)}else{const t={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?e.getLineContent(n):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(n,1),r.startLineNumber,d,this._languageConfigurationService);if(null!==l){const t=a.UU(e.getLineContent(n)),i=E.c(l,o);if(i!==E.c(t,o)){const e=E.k(i,o,h);u=e+this.trimStart(c)}}}t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n");const p=this.matchEnterRuleMovingDown(e,d,o,r.startLineNumber,n,u);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,p);else{const c={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.tokenization.getLineTokens(t-1):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?u:t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),r.startLineNumber+1,d,this._languageConfigurationService);if(null!==l){const i=a.UU(e.getLineContent(r.startLineNumber)),s=E.c(l,o),n=E.c(i,o);if(s!==n){const i=s-n;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}else t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n")}else if(n=r.startLineNumber-1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n,1,n+1,1),null),t.addEditOperation(new l.Q(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),"\n"+c),this.shouldAutoIndent(e,r)){const c={tokenization:{getLineTokens:t=>t===n?e.tokenization.getLineTokens(r.startLineNumber):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===n?e.getLineContent(r.startLineNumber):e.getLineContent(t)},l=this.matchEnterRule(e,d,o,r.startLineNumber,r.startLineNumber-2);if(null!==l)0!==l&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,l);else{const i=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(r.startLineNumber,1),n,d,this._languageConfigurationService);if(null!==i){const s=a.UU(e.getLineContent(r.startLineNumber)),n=E.c(i,o),c=E.c(s,o);if(n!==c){const i=n-c;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,i){return{shiftIndent:s=>_.Y.shiftIndent(s,s.length+1,e,t,i),unshiftIndent:s=>_.Y.unshiftIndent(s,s.length+1,e,t,i)}}parseEnterResult(e,t,i,s,n){if(n){let r=n.indentation;n.indentAction===v.l.None||n.indentAction===v.l.Indent?r=n.indentation+n.appendText:n.indentAction===v.l.IndentOutdent?r=n.indentation:n.indentAction===v.l.Outdent&&(r=t.unshiftIndent(n.indentation)+n.appendText);const o=e.getLineContent(s);if(this.trimStart(o).indexOf(this.trimStart(r))>=0){const n=a.UU(e.getLineContent(s));let o=a.UU(r);const c=(0,b.Yb)(e,s,this._languageConfigurationService);null!==c&&2&c&&(o=t.unshiftIndent(o));return E.c(o,i)-E.c(n,i)}}return null}matchEnterRuleMovingDown(e,t,i,s,n,r){if(a.lT(r)>=0){const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}{let n=s-1;for(;n>=1;){const t=e.getLineContent(n);if(a.lT(t)>=0)break;n--}if(n<1||s>e.getLineCount())return null;const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}}matchEnterRule(e,t,i,s,n,r){let o=n;for(;o>=1;){let t;t=o===n&&void 0!==r?r:e.getLineContent(o);if(a.lT(t)>=0)break;o--}if(o<1||s>e.getLineCount())return null;const c=e.getLineMaxColumn(o),h=(0,S.h)(this._autoIndent,e,new l.Q(o,c,o,c),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,s,n,r){for(let o=i.startLineNumber;o<=i.endLineNumber;o++){const c=e.getLineContent(o),h=a.UU(c),d=E.c(h,s)+r,u=E.k(d,s,n);u!==h&&(t.addEditOperation(new l.Q(o,1,o,h.length+1),u),o===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};R=y([w(3,C.JZ)],R);class L{static{this._COLLATOR=null}static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const s=T(e,t,i);if(!s)return null;return c.k.replace(new l.Q(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const s=T(e,t,i);if(!s)return!1;for(let n=0,r=s.before.length;n<r;n++)if(s.before[n]!==s.after[n])return!0;return!1}}function T(e,t,i){const s=t.startLineNumber;let n=t.endLineNumber;if(1===t.endColumn&&n--,s>=n)return null;const r=[];for(let a=s;a<=n;a++)r.push(e.getLineContent(a));let o=r.slice(0);return o.sort(L.getCollator().compare),!0===i&&(o=o.reverse()),{startLineNumber:s,endLineNumber:n,before:r,after:o}}var x=i(78209),k=i(27195),A=i(84001);class N extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.selection,t.selection)));let s=i[0];for(let r=1;r<i.length;r++){const e=i[r];s.selection.endLineNumber===e.selection.startLineNumber&&(s.index<e.index?e.ignore=!0:(s.ignore=!0,s=e))}const n=[];for(const r of i)n.push(new f(r.selection,this.down,r.ignore));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class I extends r.ks{constructor(){super({id:"editor.action.duplicateSelection",label:x.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.R.writable,menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const s=[],n=t.getSelections(),r=t.getModel();for(const a of n)if(a.isEmpty())s.push(new f(a,!0));else{const e=new p.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);s.push(new o.tA(e,r.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class O extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(C.JZ),s=[],n=t.getSelections()||[],r=t.getOption(12);for(const o of n)s.push(new R(o,this.down,r,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class D extends r.ks{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let s=t.getSelections();1===s.length&&s[0].isEmpty()&&(s=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const r of s)if(!L.canRun(t.getModel(),r,this.descending))return;const n=[];for(let r=0,o=s.length;r<o;r++)n[r]=new L(s[r],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends r.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:x.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:m.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const s=[],n=[];let r=0,o=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],o=!1);for(const l of a){const e=new Set,t=[];for(let s=l.startLineNumber;s<=l.endLineNumber;s++){const n=i.getLineContent(s);e.has(n)||(t.push(n),e.add(n))}const o=new p.L(l.startLineNumber,1,l.endLineNumber,i.getLineMaxColumn(l.endLineNumber)),a=l.startLineNumber-r,h=new p.L(a,1,a+t.length-1,t[t.length-1].length);s.push(c.k.replace(o,t.join("\n"))),n.push(h),r+=l.endLineNumber-l.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,s,o?n:void 0),t.pushUndoStop()}}class P extends r.ks{static{this.ID="editor.action.trimTrailingWhitespace"}constructor(){super({id:P.ID,label:x.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:(0,s.m5)(2089,2102),weight:100}})}run(e,t,i){let s=[];"auto-save"===i.reason&&(s=(t.getSelections()||[]).map((e=>new g.y(e.positionLineNumber,e.positionColumn))));const n=t.getSelection();if(null===n)return;const r=e.get(A.pG),o=t.getModel(),a=r.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:o?.getLanguageId(),resource:o?.uri}),c=new h(n,s,a);t.pushUndoStop(),t.executeCommands(this.id,[c]),t.pushUndoStop()}}class F extends r.ks{constructor(){super({id:"editor.action.deleteLines",label:x.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),s=t.getModel();if(1===s.getLineCount()&&1===s.getLineMaxColumn(1))return;let n=0;const r=[],o=[];for(let a=0,l=i.length;a<l;a++){const e=i[a];let t=e.startLineNumber,l=e.endLineNumber,h=1,d=s.getLineMaxColumn(l);l<s.getLineCount()?(l+=1,d=1):t>1&&(t-=1,h=s.getLineMaxColumn(t)),r.push(c.k.replace(new p.L(t,h,l,d),"")),o.push(new p.L(t-n,e.positionColumn,t-n,e.positionColumn)),n+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let s=t[0];for(let n=1;n<t.length;n++)s.endLineNumber+1>=t[n].startLineNumber?s.endLineNumber=t[n].endLineNumber:(i.push(s),s=t[n]);return i.push(s),i}}class U extends r.ks{constructor(){super({id:"editor.action.indentLines",label:x.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.T.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends r.ks{constructor(){super({id:"editor.action.outdentLines",label:x.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){n.Yh.Outdent.runEditorCommand(e,t,null)}}class B extends r.ks{constructor(){super({id:"editor.action.insertLineBefore",label:x.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends r.ks{constructor(){super({id:"editor.action.insertLineAfter",label:x.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends r.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),s=this._getRangesToDelete(t),n=[];for(let a=0,c=s.length-1;a<c;a++){const e=s[a],t=s[a+1];null===l.Q.intersectRanges(e,t)?n.push(e):s[a+1]=l.Q.plusRange(e,t)}n.push(s[s.length-1]);const r=this._getEndCursorState(i,n),o=n.map((e=>c.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}class z extends r.ks{constructor(){super({id:"editor.action.joinLines",label:x.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let s=t.getSelection();if(null===s)return;i.sort(l.Q.compareRangesUsingStarts);const n=[],r=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(s.equalsSelection(e)&&(s=t),t):t.startLineNumber>e.endLineNumber+1?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));n.push(r);const o=t.getModel();if(null===o)return;const a=[],h=[];let d=s,u=0;for(let g=0,m=n.length;g<m;g++){const e=n[g],t=e.startLineNumber,i=1;let r,m,f=0;const _=o.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<o.getLineCount()?(r=t+1,m=o.getLineMaxColumn(r)):(r=i.lineNumber,m=o.getLineMaxColumn(i.lineNumber))}else r=e.endLineNumber,m=o.getLineMaxColumn(r);let v=o.getLineContent(t);for(let s=t+1;s<=r;s++){const e=o.getLineContent(s),t=o.getLineFirstNonWhitespaceColumn(s);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const s=e.substr(t-1);v+=(i?" ":"")+s,f=i?s.length+1:s.length}else f=0}const C=new l.Q(t,i,r,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(c.k.replace(C,v)),i=new p.L(C.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==l.Q.intersectRanges(C,s)?d=i:h.push(i)}u+=C.endLineNumber-C.startLineNumber}h.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class G extends r.ks{constructor(){super({id:"editor.action.transpose",label:x.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:m.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=[];for(let r=0,a=i.length;r<a;r++){const e=i[r];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=s.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===s.getLineCount())continue;const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.iu(new p.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.ui(e,i,new p.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class j extends r.ks{run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=t.getOption(132),r=[];for(const o of i)if(o.isEmpty()){const e=o.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new l.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=s.getValueInRange(a);r.push(c.k.replace(a,this._modifyText(h,n)))}else{const e=s.getValueInRange(o);r.push(c.k.replace(o,this._modifyText(e,n)))}t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Y extends j{static{this.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu")}constructor(){super({id:"editor.action.transformToTitlecase",label:x.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.R.writable})}_modifyText(e,t){const i=Y.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}class q extends j{static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu")}constructor(){super({id:"editor.action.transformToSnakecase",label:x.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m.R.writable})}_modifyText(e,t){const i=q.caseBoundary.get(),s=q.singleLetters.get();return i&&s?e.replace(i,"$1_$2").replace(s,"$1_$2$3").toLocaleLowerCase():e}}class $ extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}constructor(){super({id:"editor.action.transformToCamelcase",label:x.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:m.R.writable})}_modifyText(e,t){const i=$.wordBoundary.get();if(!i)return e;const s=e.split(i);return s.shift()+s.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class Q extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}static{this.wordBoundaryToMaintain=new K("(?<=\\.)","gm")}constructor(){super({id:"editor.action.transformToPascalcase",label:x.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:m.R.writable})}_modifyText(e,t){const i=Q.wordBoundary.get(),s=Q.wordBoundaryToMaintain.get();if(!i||!s)return e;return e.split(s).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class X extends j{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu")}static{this.underscoreBoundary=new K("(\\S)(_)(\\S)","gm")}constructor(){super({id:"editor.action.transformToKebabcase",label:x.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:m.R.writable})}_modifyText(e,t){const i=X.caseBoundary.get(),s=X.singleLetters.get(),n=X.underscoreBoundary.get();return i&&s&&n?e.replace(n,"$1-$3").replace(i,"$1-$2").replace(s,"$1-$2").toLocaleLowerCase():e}}(0,r.Fl)(class extends N{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:x.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,r.Fl)(class extends N{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:x.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,r.Fl)(I),(0,r.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:x.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,r.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:x.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,r.Fl)(class extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:x.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.R.writable})}}),(0,r.Fl)(class extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:x.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.R.writable})}}),(0,r.Fl)(M),(0,r.Fl)(P),(0,r.Fl)(F),(0,r.Fl)(U),(0,r.Fl)(H),(0,r.Fl)(B),(0,r.Fl)(W),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllLeft",label:x.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];let n=0;return t.forEach((t=>{let r;if(1===t.endColumn&&n>0){const e=t.startLineNumber-n;r=new p.L(e,t.startColumn,e,t.startColumn)}else r=new p.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);n+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=r:s.push(r)})),i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const s=e.getModel();return null===s?[]:(i.sort(l.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:s.getLineLength(t)+1;return new l.Q(t,i,e.startLineNumber,1)}return new l.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new l.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllRight",label:x.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];for(let n=0,r=t.length,o=0;n<r;n++){const r=t[n],a=new p.L(r.startLineNumber-o,r.startColumn,r.startLineNumber-o,r.startColumn);r.intersectRanges(e)?i=a:s.push(a)}return i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const s=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return s.sort(l.Q.compareRangesUsingStarts),s}}),(0,r.Fl)(z),(0,r.Fl)(G),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToUppercase",label:x.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToLowercase",label:x.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),q.caseBoundary.isSupported()&&q.singleLetters.isSupported()&&(0,r.Fl)(q),$.wordBoundary.isSupported()&&(0,r.Fl)($),Q.wordBoundary.isSupported()&&(0,r.Fl)(Q),Y.titleBoundary.isSupported()&&(0,r.Fl)(Y),X.isSupported()&&(0,r.Fl)(X)},76007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageFeaturesService:()=>g});var s=i(41234),n=i(5662),r=i(16223),o=i(54459);function a(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,i,s,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=s,this.recursive=n}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,n.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){const i=[];return this._orderedForEach(e,t,(e=>i.push(e.provider))),i}orderedGroups(e){const t=[];let i,s;return this._orderedForEach(e,!1,(e=>{i&&s===e._score?i.push(e.provider):(s=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(const s of this._entries)s._score>0&&i(s)}_updateScores(e,t){const i=this._notebookInfoResolver?.(e.uri),s=i?new c(e.uri,e.getLanguageId(),i.uri,i.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(s)){this._lastCandidate=s;for(const i of this._entries)if(i._score=(0,o.f)(i.selector,s.uri,s.languageId,(0,r.vd)(e),s.notebookUri,s.notebookType),a(i.selector)&&i._score>0){if(!t){for(const e of this._entries)e._score=0;i._score=1e3;break}i._score=0}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:h(e.selector)&&!h(t.selector)?1:!h(e.selector)&&h(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(h):Boolean(e.isBuiltin))}var d=i(56942),u=i(14718);class g{constructor(){this.referenceProvider=new l(this._score.bind(this)),this.renameProvider=new l(this._score.bind(this)),this.newSymbolNamesProvider=new l(this._score.bind(this)),this.codeActionProvider=new l(this._score.bind(this)),this.definitionProvider=new l(this._score.bind(this)),this.typeDefinitionProvider=new l(this._score.bind(this)),this.declarationProvider=new l(this._score.bind(this)),this.implementationProvider=new l(this._score.bind(this)),this.documentSymbolProvider=new l(this._score.bind(this)),this.inlayHintsProvider=new l(this._score.bind(this)),this.colorProvider=new l(this._score.bind(this)),this.codeLensProvider=new l(this._score.bind(this)),this.documentFormattingEditProvider=new l(this._score.bind(this)),this.documentRangeFormattingEditProvider=new l(this._score.bind(this)),this.onTypeFormattingEditProvider=new l(this._score.bind(this)),this.signatureHelpProvider=new l(this._score.bind(this)),this.hoverProvider=new l(this._score.bind(this)),this.documentHighlightProvider=new l(this._score.bind(this)),this.multiDocumentHighlightProvider=new l(this._score.bind(this)),this.selectionRangeProvider=new l(this._score.bind(this)),this.foldingRangeProvider=new l(this._score.bind(this)),this.linkProvider=new l(this._score.bind(this)),this.inlineCompletionsProvider=new l(this._score.bind(this)),this.inlineEditProvider=new l(this._score.bind(this)),this.completionProvider=new l(this._score.bind(this)),this.linkedEditingRangeProvider=new l(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new l(this._score.bind(this)),this.documentSemanticTokensProvider=new l(this._score.bind(this)),this.documentDropEditProvider=new l(this._score.bind(this)),this.documentPasteEditProvider=new l(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,u.v)(d.ILanguageFeaturesService,g,1)},76319:(e,t,i)=>{e.exports=function(e){const t=i(94297);return function(i,s,n){const r=s.limitListLength>0&&i.length>s.limitListLength;return(r?i.slice(0,s.limitListLength-1):i).map((function(t){return e(t,s,n+1)})).concat(r?["... "+(i.length-s.limitListLength+1)+" hidden items"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,n))}}},76440:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(21478),o=i(68250);(0,s.HW)(r.M.ID,r.M,1),n.B2.register(o.u)},76495:(e,t,i)=>{"use strict";i.d(t,{hW:()=>r});var s=i(78049),n=i(44026);class r{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(function(e,t,i,n=a){const r=e.getOptions().tabSize,c=new o(n);let l;i&&(l=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],d=e.getLineCount()+1;h.push({indent:-1,endAbove:d,line:d});for(let o=e.getLineCount();o>0;o--){const i=e.getLineContent(o),n=(0,s.G)(i,r);let a,d=h[h.length-1];if(-1!==n){if(l&&(a=i.match(l))){if(!a[1]){h.push({indent:-2,endAbove:o,line:o});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,d=h[e],c.insertFirst(o,d.line,n),d.line=o,d.indent=n,d.endAbove=o;continue}}}if(d.indent>n){do{h.pop(),d=h[h.length-1]}while(d.indent>n);const e=d.endAbove-1;e-o>=1&&c.insertFirst(o,e,n)}d.indent===n?d.endAbove=o:h.push({indent:n,endAbove:o,line:o})}else t&&(d.endAbove=o)}return c.toIndentRanges(e)}(this.editorModel,i,n,this.foldingRangesLimit))}}class o{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>n.yy||t>n.yy)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,s=0;i>=0;i--,s++)e[s]=this._startIndexes[i],t[s]=this._endIndexes[i];return new n.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,r=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const s=this._indentOccurrences[e];if(s){if(s+i>t){r=e;break}i+=s}}const o=e.getOptions().tabSize,a=new Uint32Array(t),c=new Uint32Array(t);for(let n=this._length-1,l=0;n>=0;n--){const h=this._startIndexes[n],d=e.getLineContent(h),u=(0,s.G)(d,o);(u<r||u===r&&i++<t)&&(a[l]=h,c[l]=this._endIndexes[n],l++)}return new n.tz(a,c)}}}const a={limit:5e3,update:()=>{}}},76531:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$type",n="$value",r="$attributes";function o(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)&&"undefined"!==typeof e[t]}function a(e){return o(e,n)?e[n]:e}e.exports={hasSpecialProperty:o,attributes:function(e){return o(e,r)?e[r]:{}},value:a,type:function(e){return o(e,s)?e[s]:t(a(e))},ATTRIBUTES_KEY:r,VALUE_KEY:n,TYPE_KEY:s,INCOMPLETE_KEY:"$incomplete",BINARY_KEY:"$binary"}}()},77011:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var s=i(87758),n=i(5662),r=i(63591),o=i(64317),a=i(98031),c=i(90766),l=i(51219),h=i(8597),d=i(62083),u=i(12143),g=i(57039),p=i(88807),m=i(83069);class f extends n.jG{constructor(e,t=new h.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new p.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=h.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new h.fg(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?m.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return h.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=h.BK(t),n=h.tG(t.ownerDocument.body),r=s.top+i.top+i.height;return n.height-r-24}_findPositionPreference(e,t){const i=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),s=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),n=Math.min(Math.max(s,i),e),r=Math.min(e,n);let o;return o=this._editor.getOption(60).above?r<=s?1:2:r<=i?2:1,1===o?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),o}_resize(e){this._resizableNode.layout(e.height,e.width)}}var _,v=i(32848),C=i(84001),E=i(253),b=i(60002),S=i(52776),y=i(41234),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class extends f{static{_=this}static{this.ID="editor.contrib.resizableContentHoverWidget"}static{this._lastDimensions=new h.fg(0,0)}get isVisibleFromKeyboard(){return 1===this._renderedHover?.source}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(e,t,i,s,n){const r=e.getOption(67)+8,o=new h.fg(150,r);super(e,o),this._configurationService=i,this._accessibilityService=s,this._keybindingService=n,this._hover=this._register(new S.N4),this._onDidResize=this._register(new y.vl),this.onDidResize=this._onDidResize.event,this._minimumSize=o,this._hoverVisibleKey=b.R.hoverVisible.bindTo(t),this._hoverFocusedKey=b.R.hoverFocused.bindTo(t),h.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(h.w5(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return _.ID}static _applyDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.width=s,e.style.height=n}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return _._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return _._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.maxWidth=s,e.style.maxHeight=n}_setHoverWidgetMaxDimensions(e,t){_._applyMaxDimensions(this._hover.contentsDomNode,e,t),_._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){const e=this._findMaximumRenderingWidth()??1/0,t=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new h.fg(e,t),this._setHoverWidgetMaxDimensions(e,t)}_resize(e){_._lastDimensions=new h.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const e=this._renderedHover?.showAtPosition;if(e)return 1===this._positionPreference?this._availableVerticalSpaceAbove(e):this._availableVerticalSpaceBelow(e)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return h.tG(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._renderedHover)return!1;if(void 0===this._renderedHover.initialMousePosX||void 0===this._renderedHover.initialMousePosY)return this._renderedHover.initialMousePosX=e,this._renderedHover.initialMousePosY=t,!1;const i=h.BK(this.getDomNode());void 0===this._renderedHover.closestMouseDistance&&(this._renderedHover.closestMouseDistance=T(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,i.left,i.top,i.width,i.height));const s=T(e,t,i.left,i.top,i.width,i.height);return!(s>this._renderedHover.closestMouseDistance+4)&&(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,s),!0)}_setRenderedHover(e){this._renderedHover?.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,_._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,_._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(e){if(!this._editor||!this._editor.hasModel())return;this._render(e);const t=h.OK(this._hover.containerDomNode),i=e.showAtPosition;this._positionPreference=this._findPositionPreference(t,i)??1,this.onContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const s=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,S.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel()??"");s&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+s)}hide(){if(!this._renderedHover)return;const e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new h.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new h.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new h.fg(e,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const e=this._hover.containerDomNode;let t=h.OK(e),i=h.Tr(e);if(this._resizableNode.layout(t,i),this._setHoverWidgetDimensions(i,t),t=h.OK(e),i=h.Tr(e),this._contentWidth=i,this._updateMinimumWidth(),this._resizableNode.layout(t,i),this._renderedHover?.showAtPosition){const e=h.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function T(e,t,i,s,n,r){const o=i+n/2,a=s+r/2,c=Math.max(Math.abs(e-o)-n/2,0),l=Math.max(Math.abs(t-a)-r/2,0);return Math.sqrt(c*c+l*l)}L=_=w([R(1,v.fN),R(2,C.pG),R(3,E.j),R(4,a.b)],L);var x=i(25890);class k{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),s=t.range.startLineNumber;if(s>i.getLineCount())return[];const n=i.getLineMaxColumn(s);return e.getLineDecorations(s).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===s?e.range.startColumn:1,r=e.range.endLineNumber===s?e.range.endColumn:n;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>r)return!1}else if(i>t.range.startColumn||t.range.endColumn>r)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return c.AE.EMPTY;const i=k._getLineDecorations(this._editor,t);return c.AE.merge(this._participants.map((s=>s.computeAsync?s.computeAsync(t,i,e):c.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=k._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,x.Yc)(t)}}class A{constructor(e,t,i){this.anchor=e,this.hoverParts=t,this.isComplete=i}filter(e){const t=this.hoverParts.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.hoverParts.length?this:new N(this,this.anchor,t,this.isComplete)}}class N extends A{constructor(e,t,i,s){super(t,i,s),this.original=e}filter(e){return this.original.filter(e)}}var I=i(9270),O=i(87289),D=i(36677),M=i(57286),P=i(28712),F=i(68250),U=i(64383);class H extends n.jG{constructor(e,t,i,s,n,r){super();const o=t.anchor,a=t.hoverParts;this._renderedHoverParts=this._register(new W(e,i,a,r,n));const{showAtPosition:c,showAtSecondaryPosition:l}=H.computeHoverPositions(e,o.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=c,this.showAtSecondaryPosition=l,this.initialMousePosX=o.initialMousePosX,this.initialMousePosY=o.initialMousePosY,this.shouldFocus=s.shouldFocus,this.source=s.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}async updateHoverVerbosityLevel(e,t,i){this._renderedHoverParts.updateHoverVerbosityLevel(e,t,i)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(e,t,i){let s=1;if(e.hasModel()){const i=e._getViewModel(),n=i.coordinatesConverter,r=n.convertModelRangeToViewRange(t),o=i.getLineMinColumn(r.startLineNumber),a=new m.y(r.startLineNumber,o);s=n.convertViewPositionToModelPosition(a).column}const n=t.startLineNumber;let r,o,a,c=t.startColumn;for(const l of i){const e=l.range,t=e.startLineNumber===n,i=e.endLineNumber===n;if(t&&i){const t=e.startColumn,i=Math.min(c,t);c=Math.max(i,s)}l.forceShowAtRange&&(r=e)}if(r){const e=r.getStartPosition();o=e,a=e}else o=t.getStartPosition(),a=new m.y(n,c);return{showAtPosition:o,showAtSecondaryPosition:a}}}class B{constructor(e,t){this._statusBar=t,e.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}}class W extends n.jG{static{this._DECORATION_OPTIONS=O.kI.register({description:"content-hover-highlight",className:"hoverHighlight"})}constructor(e,t,i,s,n){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=n,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(t,i,n,s)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(e,i)),this._updateMarkdownAndColorParticipantInfo(t)}_createEditorDecorations(e,t){if(0===t.length)return n.jG.None;let i=t[0].range;for(const n of t){const e=n.range;i=D.Q.plusRange(i,e)}const s=e.createDecorationsCollection();return s.set([{range:i,options:W._DECORATION_OPTIONS}]),(0,n.s)((()=>{s.clear()}))}_renderParts(e,t,i,s){const r=new I.L(s),o={fragment:this._fragment,statusBar:r,...i},a=new n.Cm;for(const n of e){const e=this._renderHoverPartsForParticipant(t,n,o);a.add(e);for(const t of e.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:n,hoverPart:t.hoverPart,hoverElement:t.hoverElement})}const c=this._renderStatusBar(this._fragment,r);return c&&(a.add(c),this._renderedParts.push({type:"statusBar",hoverElement:c.hoverElement,actions:c.actions})),(0,n.s)((()=>{a.dispose()}))}_renderHoverPartsForParticipant(e,t,i){const s=e.filter((e=>e.owner===t));return s.length>0?t.renderHoverParts(i,s):new g.Ke([])}_renderStatusBar(e,t){if(t.hasContent)return new B(e,t)}_registerListenersOnRenderedParts(){const e=new n.Cm;return this._renderedParts.forEach(((t,i)=>{const s=t.hoverElement;s.tabIndex=0,e.add(h.ko(s,h.Bx.FOCUS_IN,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=i}))),e.add(h.ko(s,h.Bx.FOCUS_OUT,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=-1})))})),e}_updateMarkdownAndColorParticipantInfo(e){const t=e.find((e=>e instanceof M.xJ&&!(e instanceof F.u)));t&&(this._markdownHoverParticipant=t),this._colorHoverParticipant=e.find((e=>e instanceof P.BJ))}async updateHoverVerbosityLevel(e,t,i){if(!this._markdownHoverParticipant)return;const s=this._normalizedIndexToMarkdownHoverIndexRange(this._markdownHoverParticipant,t);if(void 0===s)return;const n=await this._markdownHoverParticipant.updateMarkdownHoverVerbosityLevel(e,s,i);n&&(this._renderedParts[t]={type:"hoverPart",participant:this._markdownHoverParticipant,hoverPart:n.hoverPart,hoverElement:n.hoverElement},this._context.onContentsChanged())}isColorPickerVisible(){return this._colorHoverParticipant?.isColorPickerVisible()??!1}_normalizedIndexToMarkdownHoverIndexRange(e,t){const i=this._renderedParts[t];if(!i||"hoverPart"!==i.type)return;if(!(i.participant===e))return;const s=this._renderedParts.findIndex((t=>"hoverPart"===t.type&&t.participant===e));if(-1===s)throw new U.D7;return t-s}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}}var V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new y.vl),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(L,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new k(this._editor,this._participants),this._hoverOperation=this._register(new u.w(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const e=[];for(const t of g.B2.getAll()){const i=this._instantiationService.createInstance(t,this._editor);e.push(i)}return e.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._register(this._contentHoverWidget.onDidResize((()=>{this._participants.forEach((e=>e.handleResize?.()))}))),e}_registerListeners(){this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new A(this._computer.anchor,t,e.isComplete))})));const e=this._contentHoverWidget.getDomNode();this._register(h.b2(e,"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.b2(e,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._register(d.dG.onDidChange((()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,s,n){if(!(this._contentHoverWidget.position&&this._currentResult))return!!e&&(this._startHoverOperationIfNecessary(e,t,i,s,!1),!0);const r=this._editor.getOption(60).sticky,o=n&&this._contentHoverWidget.isMouseGettingCloser(n.event.posx,n.event.posy);if(r&&o)return e&&this._startHoverOperationIfNecessary(e,t,i,s,!0),!0;if(!e)return this._setCurrentResult(null),!1;if(this._currentResult.anchor.equals(e))return!0;return e.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0)}_startHoverOperationIfNecessary(e,t,i,s,n){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=s,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=n,this._hoverOperation.start(t))}_setCurrentResult(e){let t=e;if(this._currentResult===t)return;t&&0===t.hoverParts.length&&(t=null),this._currentResult=t,this._currentResult?this._showHover(this._currentResult):this._hideHover()}_addLoadingMessage(e){if(!this._computer.anchor)return e;for(const t of this._participants){if(!t.createLoadingMessage)continue;const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(e);if(!e.isComplete)return;const t=0===e.hoverParts.length,i=this._computer.insistOnKeepingHoverVisible;t&&i||this._setCurrentResult(e)}_showHover(e){const t=this._getHoverContext();this._renderedContentHover=new H(this._editor,e,this._participants,this._computer,t,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:e=>{this._contentHoverWidget.setMinimumDimensions(e)}}}showsOrWillShow(e){if(this._contentHoverWidget.isResizing)return!0;const t=this._findHoverAnchorCandidates(e);if(!(t.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,e);const i=t[0];return this._startShowingOrUpdateHover(i,0,0,!1,e)}_findHoverAnchorCandidates(e){const t=[];for(const s of this._participants){if(!s.suggestHoverAnchor)continue;const i=s.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;switch(i.type){case 6:t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break;case 7:{const s=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(!(!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<s))break;t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break}}return t.sort(((e,t)=>t.priority-e.priority)),t}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,l.U)(t,e.x,e.y))&&this.hide()}startShowingAtRange(e,t,i,s){this._startShowingOrUpdateHover(new g.hx(0,e,void 0,void 0),t,i,s,null)}async updateHoverVerbosityLevel(e,t,i){this._renderedContentHover?.updateHoverVerbosityLevel(e,t,i)}focusedHoverPartIndex(){return this._renderedContentHover?.focusedHoverPartIndex??-1}containsNode(e){return!!e&&this._contentHoverWidget.getDomNode().contains(e)}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}getDomNode(){return this._contentHoverWidget.getDomNode()}get isColorPickerVisible(){return this._renderedContentHover?.isColorPickerVisible()??!1}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}};G=V([z(1,r._Y),z(2,a.b)],G);i(82320);var j,K=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Y=function(e,t){return function(i,s){t(i,s,e)}};let q=class extends n.jG{static{j=this}static{this.ID="editor.contrib.contentHover"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new y.vl),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new n.Cm,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new c.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(j.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return this._isMouseOnContentHoverWidget(e)||this._isContentWidgetResizing()}_isMouseOnContentHoverWidget(e){const t=this._contentWidget?.getDomNode();return!!t&&(0,l.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{const t=this._isMouseOnContentHoverWidget(e),i=this._contentWidget?.isColorPickerVisible??!1;return t&&i})(e)||((e,t)=>(t&&this._contentWidget?.containsNode(e.event.browserEvent.view?.document.activeElement)&&!e.event.browserEvent.view?.getSelection()?.isCollapsed)??!1)(e,t)}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=e,this._contentWidget?.isFocused||this._contentWidget?.isResizing)return;const t=this._hoverSettings.sticky;if(t&&this._contentWidget?.isVisibleFromKeyboard)return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const i=this._hoverSettings.hidingDelay,s=this._contentWidget?.isVisible;s&&t&&i>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(i):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;const t=e.target,i=t.element?.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(149),n=this._hoverSettings.enabled,r=this._hoverState.activatedByDecoratorClick;if(i&&("click"===s&&!r||"hover"===s&&!n||"clickAndHover"===s&&!n&&!r)||!i&&!n&&!r)return void this._hideWidgets();this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateContentWidget().showsOrWillShow(e)}_onKeyDown(e){if(!this._editor.hasModel())return;const t=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=1===t.kind||2===t.kind&&(t.commandId===s.jA||t.commandId===s.jq||t.commandId===s.Zp)&&this._contentWidget?.isVisible;5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||i||this._hideWidgets()}_hideWidgets(){this._hoverState.mouseDown&&this._contentWidget?.isColorPickerVisible||o.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._contentWidget?.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(G,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged((()=>this._onHoverContentsChanged.fire())))),this._contentWidget}showContentHover(e,t,i,s,n=!1){this._hoverState.activatedByDecoratorClick=n,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,s)}_isContentWidgetResizing(){return this._contentWidget?.widget.isResizing||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}updateHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateHoverVerbosityLevel(e,t,i)}focus(){this._contentWidget?.focus()}scrollUp(){this._contentWidget?.scrollUp()}scrollDown(){this._contentWidget?.scrollDown()}scrollLeft(){this._contentWidget?.scrollLeft()}scrollRight(){this._contentWidget?.scrollRight()}pageUp(){this._contentWidget?.pageUp()}pageDown(){this._contentWidget?.pageDown()}goToTop(){this._contentWidget?.goToTop()}goToBottom(){this._contentWidget?.goToBottom()}get isColorPickerVisible(){return this._contentWidget?.isColorPickerVisible}get isHoverVisible(){return this._contentWidget?.isVisible}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._contentWidget?.dispose()}};q=j=K([Y(1,r._Y),Y(2,a.b)],q)},77047:(e,t,i)=>{"use strict";var s=i(46359),n=i(71597),r=i(51861),o=i(80301),a=i(37882),c=i(73983),l=i(70125),h=i(64383),d=i(26690),u=i(6921),g=i(5662),p=i(74320);class m{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),s=new Map,n=[];for(const[r,o]of this.documents){if(t.isCancellationRequested)return[];for(const e of o.chunks){const t=this.computeSimilarityScore(e,i,s);t>0&&n.push({key:r,score:t})}}return n}static termFrequencies(e){return function(e){const t=new Map;for(const i of e)t.set(i,(t.get(i)??0)+1);return t}(m.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){for(const{key:t}of e)this.deleteDocument(t);for(const t of e){const e=[];for(const i of t.textChunks){const t=m.termFrequencies(i);for(const e of t.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);e.push({text:i,tf:t})}this.chunkCount+=e.length,this.documents.set(t.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let s=0;for(const[n,r]of Object.entries(t)){const t=e.tf.get(n);if(!t)continue;let o=i.get(n);"number"!==typeof o&&(o=this.computeIdf(n),i.set(n,o));s+=t*o*r}return s}computeEmbedding(e){const t=m.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){const t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){const t=Object.create(null);for(const[i,s]of e){const e=this.computeIdf(i);e>0&&(t[i]=s*e)}return t}}var f,_=i(78209),v=i(50091),C=i(84001),E=i(59599),b=i(63591),S=i(98031),y=i(18801),w=i(90766),R=i(18447),L=i(631);function T(e){const t=e;return Array.isArray(t.items)}function x(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(f||(f={}));class k extends g.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){const s=new g.Cm;let n;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new g.HE),o=async()=>{const s=r.value=new g.Cm;n?.dispose(!0),e.busy=!1,n=new R.Qi(t);const o=n.token;let a=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(a=a.trim());const c=this._getPicks(a,s,o,i),l=(t,i)=>{let s,n;if(T(t)?(s=t.items,n=t.active):s=t,0===s.length){if(i)return!1;(a.length>0||e.hideInput)&&this.options?.noResultsPick&&(s=(0,L.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(a)]:[this.options.noResultsPick])}return e.items=s,n&&(e.activeItems=[n]),!0},h=async t=>{let i=!1,s=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,w.wR)(t.mergeDelay),o.isCancellationRequested)||s||(i=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{const s=await t.additionalPicks;if(o.isCancellationRequested)return;let n,r,a,c;if(T(t.picks)?(n=t.picks.items,r=t.picks.active):n=t.picks,T(s)?(a=s.items,c=s.active):a=s,a.length>0||!i){let t;if(!r&&!c){const i=e.activeItems[0];i&&-1!==n.indexOf(i)&&(t=i)}l({items:[...n,...a],active:r||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),s=!0}})()])};if(null===c);else if(x(c))await h(c);else if(c instanceof Promise){e.busy=!0;try{const e=await c;if(o.isCancellationRequested)return;x(e)?await h(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else l(c)};s.add(e.onDidChangeValue((()=>o()))),o(),s.add(e.onDidAccept((t=>{if(i?.handleAccept)return t.inBackground||e.hide(),void i.handleAccept?.(e.activeItems[0]);const[s]=e.selectedItems;"function"===typeof s?.accept&&(t.inBackground||e.hide(),s.accept(e.keyMods,t))})));const a=async(i,s)=>{if("function"!==typeof s.trigger)return;const n=s.buttons?.indexOf(i)??-1;if(n>=0){const i=s.trigger(n,e.keyMods),r="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(r){case f.NO_ACTION:break;case f.CLOSE_PICKER:e.hide();break;case f.REFRESH_PICKER:o();break;case f.REMOVE_ITEM:{const t=e.items.indexOf(s);if(-1!==t){const i=e.items.slice(),s=i.splice(t,1),n=e.activeItems.filter((e=>e!==s[0])),r=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,n&&(e.activeItems=n),e.keepScrollPosition=r}break}}}};return s.add(e.onDidTriggerItemButton((({button:e,item:t})=>a(e,t)))),s.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>a(e,t)))),s}}var A,N,I=i(9711),O=i(90651),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};let P=class extends k{static{A=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,d.or)(d.WP,d.J1,d.Tt)}constructor(e,t,i,s,n,r){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=s,this.telemetryService=n,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=e}async _getPicks(e,t,i,s){const n=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const r=(0,u.P)((()=>{const t=new m;t.updateDocuments(n.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){const t=e.slice(0);t.sort(((e,t)=>t.score-e.score));const i=t[0]?.score??0;if(i>0)for(const s of t)s.score/=i;return t}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),o=[];for(const u of n){const t=A.WORD_FILTER(e,u.label)??void 0,s=u.commandAlias?A.WORD_FILTER(e,u.commandAlias)??void 0:void 0;if(t||s)u.highlights={label:t,detail:this.options.showAlias?s:void 0},o.push(u);else if(e===u.commandId)o.push(u);else if(e.length>=3){const e=r();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===u.commandId));t&&(u.tfIdfScore=t.score,o.push(u))}}const a=new Map;for(const u of o){const e=a.get(u.label);e?(u.description=u.commandId,e.description=e.commandId):a.set(u.label,u)}o.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),s=this.commandsHistory.peek(t.commandId);if(i&&s)return i>s?-1:1;if(i)return-1;if(s)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),s=this.options.suggestedCommandIds.has(t.commandId);if(i&&s)return 0;if(i)return-1;if(s)return 1}return e.label.localeCompare(t.label)}));const c=[];let l=!1,h=!0,d=!!this.options.suggestedCommandIds;for(let u=0;u<o.length;u++){const e=o[u];0===u&&this.commandsHistory.peek(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("recentlyUsed","recently used")}),l=!0),h&&void 0!==e.tfIdfScore&&(c.push({type:"separator",label:(0,_.kg)("suggested","similar commands")}),h=!1),d&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&this.options.suggestedCommandIds?.has(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("commonlyUsed","commonly used")}),l=!0,d=!1),!l||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||this.options.suggestedCommandIds?.has(e.commandId)||(c.push({type:"separator",label:(0,_.kg)("morecCommands","other commands")}),l=!1),c.push(this.toCommandPick(e,s))}return this.hasAdditionalCommandPicks(e,i)?{picks:c,additionalPicks:(async()=>{const t=await this.getAdditionalCommandPicks(n,o,e,i);if(i.isCancellationRequested)return[];const r=t.map((e=>this.toCommandPick(e,s)));return h&&"separator"!==r[0]?.type&&r.unshift({type:"separator",label:(0,_.kg)("suggested","similar commands")}),r})()}:c}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),s=i?(0,_.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:s,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:t?.from??"quick open"});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(i){(0,h.MB)(i)||this.dialogService.error((0,_.kg)("canNotRun","Command '{0}' resulted in an error",e.label),(0,l.r)(i))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let s=e;return t&&t!==e&&(s+=` - ${t}`),i&&i.value!==e&&(s+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),s}};P=A=D([M(1,b._Y),M(2,S.b),M(3,v.d),M(4,O.k),M(5,E.X)],P);let F=class extends g.jG{static{N=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===I.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=N.getConfiguredCommandHistoryLength(this.configurationService),N.cache&&N.cache.limit!==this.configuredCommandsHistoryLength&&(N.cache.limit=this.configuredCommandsHistoryLength,N.hasChanges=!0))}load(){const e=this.storageService.get(N.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(s){this.logService.error(`[CommandsHistory] invalid data: ${s}`)}const i=N.cache=new p.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}N.counter=this.storageService.getNumber(N.PREF_KEY_COUNTER,0,N.counter)}push(e){N.cache&&(N.cache.set(e,N.counter++),N.hasChanges=!0)}peek(e){return N.cache?.peek(e)}saveState(){if(!N.cache)return;if(!N.hasChanges)return;const e={usesLRU:!0,entries:[]};N.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(N.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N.PREF_KEY_COUNTER,N.counter,0,0),N.hasChanges=!1}static getConfiguredCommandHistoryLength(e){const t=e.getValue(),i=t.workbench?.commandPalette?.history;return"number"===typeof i?i:N.DEFAULT_COMMANDS_HISTORY_LENGTH}};F=N=D([M(0,I.CS),M(1,C.pG),M(2,y.rr)],F);class U extends P{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions()){let e;i.metadata?.description&&(e=(0,c.f)(i.metadata.description)?i.metadata.description:{original:i.metadata.description,value:i.metadata.description}),t.push({commandId:i.id,commandAlias:i.alias,commandDescription:e,label:(0,a.pS)(i.label)||i.id})}return t}}var H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends U{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,i,s,n,r){super({showAlias:!1},e,i,s,n,r),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};G=V([z(0,b._Y),z(1,o.T),z(2,S.b),z(3,v.d),z(4,O.k),z(5,E.X)],G);class j extends H.ks{static{this.ID="editor.action.quickCommand"}constructor(){super({id:j.ID,label:r.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:B.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(W.GK).quickAccess.show(G.PREFIX)}}(0,H.Fl)(j),s.O.as(n.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:G.PREFIX,helpEntries:[{description:r.gf.quickCommandHelp,commandId:j.ID}]})},77163:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new s.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},77668:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(9778).then(i.bind(i,49778))})},77888:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(7206).then(i.bind(i,57206))})},78049:(e,t,i)=>{"use strict";function s(e,t){let i=0,s=0;const n=e.length;for(;s<n;){const n=e.charCodeAt(s);if(32===n)i++;else{if(9!==n)break;i=i-i%t+t}s++}return s===n?-1:i}i.d(t,{G:()=>s})},78209:(e,t,i)=>{"use strict";function s(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}i.d(t,{i8:()=>n,Ec:()=>s,kg:()=>a,aS:()=>l});const r="pseudo"===n()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const s=i[0],n=t[s];let r=e;return"string"===typeof n?r=n:"number"!==typeof n&&"boolean"!==typeof n&&void 0!==n&&null!==n||(r=String(n)),r})),r&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function a(e,t,...i){return o("number"===typeof e?c(e,t):t,i)}function c(e,t){const i=s()?.[e];if("string"!==typeof i){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function l(e,t,...i){let s;s="number"===typeof e?c(e,t):t;const n=o(s,i);return{value:n,original:t===s?n:o(t,i)}}},78244:(e,t,i)=>{"use strict";i.d(t,{PA:()=>r,Vl:()=>n,Wt:()=>s});const s="editor.action.inlineSuggest.commit",n="editor.action.inlineSuggest.showPrevious",r="editor.action.inlineSuggest.showNext"},78381:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});const s=globalThis.performance&&"function"===typeof globalThis.performance.now;class n{static create(e){return new n(e)}constructor(e){this._now=s&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},78748:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var s=i(41234),n=i(46359);const r={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new s.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.O.add(r.JSONContribution,o)},79027:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var s=i(41234);const n=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new s.vl,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))}}},79064:(e,t,i)=>{var s=i(59368),n=i(63819);e.exports=function e(t,i,r,o,a){var c=-1,l=t.length;for(r||(r=n),a||(a=[]);++c<l;){var h=t[c];i>0&&r(h)?i>1?e(h,i-1,r,o,a):s(a,h):o||(a[a.length]=h)}return a}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>l,_1:()=>h,kb:()=>c});var s=i(74027),n=i(98067),r=i(91508);function o(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,s.SA.sep)}function c(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=s.SA.sep){if(!e)return"";const i=e.length,n=e.charCodeAt(0);if(o(n)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let s=3;const n=s;for(;s<i&&!o(e.charCodeAt(s));s++);if(n!==s&&!o(e.charCodeAt(s+1)))for(s+=1;s<i;s++)if(o(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(d(n)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r)for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1);return""}function h(e,t,i,n=s.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=n.uF){return!!t&&(d(e.charCodeAt(0))&&58===e.charCodeAt(1))}},79400:(e,t,i)=>{"use strict";i.d(t,{I:()=>_,r:()=>d});var s=i(74027),n=i(98067);const r=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const c="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,s,n,h=!1){"object"===typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,i||c),this.query=s||c,this.fragment=n||c,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:n,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===i?i=this.authority:null===i&&(i=c),void 0===s?s=this.path:null===s&&(s=c),void 0===n?n=this.query:null===n&&(n=c),void 0===r?r=this.fragment:null===r&&(r=c),t===this.scheme&&i===this.authority&&s===this.path&&n===this.query&&r===this.fragment?this:new g(t,i,s,n,r)}static parse(e,t=!1){const i=h.exec(e);return i?new g(i[2]||c,b(i[4]||c),b(i[5]||c),b(i[7]||c),b(i[9]||c),t):new g(c,c,c,c,c)}static file(e){let t=c;if(n.uF&&(e=e.replace(/\\/g,l)),e[0]===l&&e[1]===l){const i=e.indexOf(l,2);-1===i?(t=e.substring(2),e=l):(t=e.substring(2,i),e=e.substring(i)||l)}return new g("file",t,e,c,c)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=n.uF&&"file"===e.scheme?d.file(s.IN.join(_(e,!0),...t)).path:s.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=n.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let s,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==s&&(s+=e.charAt(r));else{void 0===s&&(s=e.substr(0,r));const t=p[o];void 0!==t?(-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),s+=t):-1===n&&(n=r)}}return-1!==n&&(s+=encodeURIComponent(e.substring(n))),void 0!==s?s:e}function f(e){let t;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);35===s||63===s?(void 0===t&&(t=e.substr(0,i)),t+=p[s]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n.uF&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let s="",{scheme:n,authority:r,path:o,query:a,fragment:c}=e;if(n&&(s+=n,s+=":"),(r||"file"===n)&&(s+=l,s+=l),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?s+=i(t,!1,!1):(s+=i(t.substr(0,e),!1,!1),s+=":",s+=i(t.substr(e+1),!1,!0)),s+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?s+=i(r,!1,!0):(s+=i(r.substr(0,e),!1,!0),s+=r.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}s+=i(o,!0,!1)}return a&&(s+="?",s+=i(a,!1,!1)),c&&(s+="#",s+=t?c:m(c,!1,!1)),s}function C(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(E)?e.replace(E,(e=>C(e))):e}},79614:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var s=i(64383),n=i(41234),r=i(96032),o=i(5662),a=i(74320),c=i(89403),l=i(91508),h=i(36677),d=i(78209);class u{constructor(e,t,i,s){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=s,this.id=r.r.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){const e=this.parent.getPreview(this)?.preview(this.range);return e?(0,d.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",e.value,(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,d.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:s,startColumn:n,endLineNumber:r,endColumn:o}=e,a=i.getWordUntilPosition({lineNumber:s,column:n-t}),c=new h.Q(s,a.startColumn,s,n),l=new h.Q(r,o,r,1073741824),d=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(l).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,o.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,d.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,c.P8)(this.uri),this.uri.fsPath):(0,d.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,c.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,s.dz)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let s;e.sort(m._compareReferences);for(const n of e)if(s&&c.er.isEqual(s.uri,n.uri,!0)||(s=new p(this,n.uri),this.groups.push(s)),0===s.children.length||0!==m._compareReferences(n,s.children[s.children.length-1])){const e=new u(i===n,s,n,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),s.children.push(e)}}dispose(){(0,o.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,d.kg)("aria.result.0","No results found"):1===this.references.length?(0,d.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,d.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,d.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let s=i.children.indexOf(e);const n=i.children.length,r=i.parent.groups.length;return 1===r||t&&s+1<n||!t&&s>0?(s=t?(s+1)%n:(s+n-1)%n,i.children[s]):(s=i.parent.groups.indexOf(i),t?(s=(s+1)%r,i.parent.groups[s].children[0]):(s=(s+r-1)%r,i.parent.groups[s].children[i.parent.groups[s].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,s)=>({idx:s,prefixLen:l.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return c.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},79907:(e,t,i)=>{"use strict";var s=i(78209),n=i(11007),r=i(90766),o=i(18447),a=i(64383),c=i(5662),l=i(34326),h=i(31450),d=i(80301),u=i(36677),g=i(60002),p=i(16223),m=i(56942),f=i(13864),_=i(32848),v=i(36456),C=i(74320),E=i(54459),b=i(89403),S=i(26486),y=i(62083),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};class L{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,i){const s=[],n=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!n)return Promise.resolve(s);if(e.isDisposed())return;return e.findMatches(n.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})))}provideMultiDocumentHighlights(e,t,i,s){const n=new C.fT,r=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!r)return Promise.resolve(n);for(const o of[e,...i]){if(o.isDisposed())continue;const e=o.findMatches(r.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})));e&&n.set(o.uri,e)}return n}}let T=class extends c.jG{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new L)),this._register(e.multiDocumentHighlightProvider.register("*",new L))}};T=w([R(0,m.ILanguageFeaturesService)],T);var x,k,A=i(72466),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=new _.N1("hasWordHighlights",!1);function D(e,t,i,s){const n=e.ordered(t);return(0,r.$1)(n.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,s)).then(void 0,a.M_))),(e=>void 0!==e&&null!==e)).then((e=>{if(e){const i=new C.fT;return i.set(t.uri,e),i}return new C.fT}))}class M{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,r.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new u.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const s=t.startLineNumber,n=t.startColumn,r=t.endColumn,o=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(o));for(let c=0,l=i.length;!a&&c<l;c++){const e=i.getRange(c);e&&e.startLineNumber===s&&e.startColumn<=n&&e.endColumn>=r&&(a=!0)}return a}cancel(){this.result.cancel()}}class P extends M{constructor(e,t,i,s){super(e,t,i),this._providers=s}_compute(e,t,i,s){return D(this._providers,e,t.getPosition(),s).then((e=>e||new C.fT))}}class F extends M{constructor(e,t,i,s,n){super(e,t,i),this._providers=s,this._otherModels=n}_compute(e,t,i,s){return function(e,t,i,s,n,o){const c=e.ordered(t);return(0,r.$1)(c.map((e=>()=>{const s=o.filter((e=>(0,p.vd)(e))).filter((t=>(0,E.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,s,n)).then(void 0,a.M_)})),(e=>void 0!==e&&null!==e))}(this._providers,e,t.getPosition(),0,s,this._otherModels).then((e=>e||new C.fT))}}(0,h.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const s=e.get(m.ILanguageFeaturesService),n=await D(s.documentHighlightProvider,t,i,o.XO.None);return n?.get(t.uri)}));let U=class{static{x=this}static{this.storedDecorationIDs=new C.fT}static{this.query=null}constructor(e,t,i,s,n){this.toUnhook=new c.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new C.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new r.ve(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=n,this._hasWordHighlights=O.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this.runDelayer.trigger((()=>{this._onPositionChanged(e)}))}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this.runDelayer.trigger((()=>{this._run()})))}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{(0,v.v$)(this.model.uri,"output")||this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():x.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case"off":this._stopAll();break;case"singleFile":this._stopAll(x.query?.modelInfo?.model);break;case"multiFile":x.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",t)}}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,x.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(u.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t+1)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t-1+e.length)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=x.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),x.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){const t=this.codeEditorService.listCodeEditors(),i=[];for(const s of t){if(!s.hasModel()||(0,b.n4)(s.getModel().uri,e?.uri))continue;const t=x.storedDecorationIDs.get(s.getModel().uri);if(!t)continue;s.removeDecorations(t),i.push(s.getModel().uri);const n=H.get(s);n?.wordHighlighter&&(n.wordHighlighter.decorations.length>0&&(n.wordHighlighter.decorations.clear(),n.wordHighlighter.workerRequest=null,n.wordHighlighter._hasWordHighlights.set(!1)))}for(const s of i)x.storedDecorationIDs.delete(s)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==v.ny.vscodeNotebookCell&&x.query?.modelInfo?.model.uri.scheme!==v.ny.vscodeNotebookCell?(x.query=null,this._run()):x.query?.modelInfo&&(x.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(e){this._removeAllDecorations(e),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){"off"!==this.occurrencesHighlight&&(3===e.reason||this.editor.getModel()?.uri.scheme===v.ny.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===v.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){const i=s.getModel();i&&i!==e&&i.uri.scheme===v.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){if(!(0,l.Np)(s))continue;const i=s.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const s of i){const i=s.getModel();i&&i!==e&&t.push(i)}return t}_run(e){let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return x.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,n=this._getWord();if(!n||n.startColumn>i||n.endColumn<s)return x.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),x.query={modelInfo:{model:this.model,selection:e},word:n}}else if(!x.query)return void this._stopAll();if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if((0,b.n4)(this.editor.getModel().uri,x.query.modelInfo?.model.uri)){if(!e){const e=this.decorations.getRanges();for(const t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!x.query||!x.query.modelInfo||x.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(x.query.modelInfo.model,x.query.modelInfo.selection,x.query.word,i),this.workerRequest?.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),a.dz)}}computeWithModel(e,t,i,s){return s.length?function(e,t,i,s,n,r){return new F(t,i,n,e,r)}(this.multiDocumentProviders,e,t,0,this.editor.getOption(132),s):function(e,t,i,s,n){return new P(t,i,n,e)}(this.providers,e,t,0,this.editor.getOption(132))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=this.codeEditorService.listCodeEditors();for(const t of e){const e=H.get(t);if(!e)continue;const i=[],s=t.getModel()?.uri;if(s&&this.workerRequestValue.has(s)){const n=x.storedDecorationIDs.get(s),r=this.workerRequestValue.get(s);if(r)for(const e of r)e.range&&i.push({range:e.range,options:(0,f.P)(e.kind)});let o=[];t.changeDecorations((e=>{o=e.deltaDecorations(n??[],i)})),x.storedDecorationIDs=x.storedDecorationIDs.set(s,o),i.length>0&&(e.wordHighlighter?.decorations.set(i),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};U=x=N([I(4,d.T)],U);let H=class extends c.jG{static{k=this}static{this.ID="editor.contrib.wordHighlighter"}static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s){super(),this._wordHighlighter=null;const n=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new U(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,s))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),n()}))),n()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};H=k=N([I(1,_.fN),I(2,m.ILanguageFeaturesService),I(3,d.T)],H);class B extends h.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=H.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class W extends h.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:s.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const s=H.get(t);s&&s.restoreViewState(!0)}}(0,h.HW)(H.ID,H,0),(0,h.Fl)(class extends B{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:s.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:65,weight:100}})}}),(0,h.Fl)(class extends B{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:s.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1089,weight:100}})}}),(0,h.Fl)(W),(0,A.x)(T)},79928:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},80200:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>i.e(5454).then(i.bind(i,55454))})},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},80409:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(31308),o=i(49154),a=i(60002),c=i(78244),l=i(62051),h=i(8597),d=i(5662);var u=i(11007),g=i(90766),p=i(18447),m=i(87958),f=i(13850),_=i(631),v=i(36999),C=i(38844),E=i(83069),b=i(32500),S=i(56942),y=i(80789),w=i(41234),R=i(91508),L=i(73157),T=i(87908),x=i(36677),k=i(99020),A=i(10154),N=i(16223),I=i(87469),O=i(25521),D=i(35600),M=i(92674),P=i(73401),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H="ghost-text";let B=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const s=i instanceof M.Vs?i.columnRange:void 0,n=[],r=[];function o(e,t){if(r.length>0){const i=r[r.length-1];t&&i.decorations.push(new O.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)r.push({content:i,decorations:t?[new O.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let c,l=0;for(const d of i.parts){let e=d.lines;void 0===c?(n.push({column:d.column,text:e[0],preview:d.preview}),e=e.slice(1)):o([a.substring(l,d.column-1)],void 0),e.length>0&&(o(e,H),void 0===c&&d.column<=a.length&&(c=d.column)),l=d.column-1}void 0!==c&&o([a.substring(l)],void 0);const h=void 0!==c?new P.GM(c,a.length+1):void 0;return{replacedRange:s,inlineTexts:n,additionalLines:r,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const s of t.inlineTexts)i.push({range:x.Q.fromPositions(new E.y(t.lineNumber,s.column)),options:{description:H,after:{content:s.text,inlineClassName:s.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:N.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new W(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,d.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,P.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};B=F([U(2,A.L)],B);class W extends d.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",w.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(118)||e.hasChanged(100)||e.hasChanged(95)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const s=this.editor.getModel();if(!s)return;const{tabSize:n}=s.getOptions();this.editor.changeViewZones((s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);const r=Math.max(t.length,i);if(r>0){const i=document.createElement("div");!function(e,t,i,s,n){const r=s.get(33),o=s.get(118),a="none",c=s.get(95),l=s.get(51),h=s.get(50),d=s.get(67),u=new k.fe(1e4);u.appendString('<div class="suggest-preview-text">');for(let m=0,f=i.length;m<f;m++){const e=i[m],s=e.content;u.appendString('<div class="view-line'),u.appendString('" style="top:'),u.appendString(String(m*d)),u.appendString('px;width:1000000px;">');const g=R.aC(s),p=R.E_(s),f=I.f.createEmpty(s,n);(0,D.UW)(new D.zL(h.isMonospace&&!r,h.canUseHalfwidthRightwardsArrow,s,!1,g,p,0,f,e.decorations,t,0,h.spaceWidth,h.middotWidth,h.wsmiddotWidth,o,a,c,l!==T.Bc.OFF,null),u),u.appendString("</div>")}u.appendString("</div>"),(0,L.M)(e,h);const g=u.build(),p=V?V.createHTML(g):g;e.innerHTML=p}(i,n,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:r,domNode:i,afterColumnAffinity:1})}}))}}const V=(0,y.H)("editorGhostText",{createHTML:e=>e});var z=i(64317),G=i(25890),j=i(46041),K=i(51241),Y=i(64383),q=i(7085),$=i(75326),Q=i(75295),X=i(50973),Z=i(62083),J=i(17469),ee=i(26690),te=i(20940),ie=i(83993);function se(e,t,i){const s=i?e.range.intersectRanges(i):e.range;if(!s)return e;const n=t.getValueInRange(s,1),r=(0,R.Qp)(n,e.text),o=X.W.ofText(n.substring(0,r)).addToPosition(e.range.getStartPosition()),a=e.text.substring(r),c=x.Q.fromPositions(o,e.range.getEndPosition());return new Q.WR(c,a)}function ne(e,t){return e.text.startsWith(t.text)&&(i=e.range,(s=t.range).getStartPosition().equals(i.getStartPosition())&&s.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,s}function re(e,t,i,s,n=0){let r=se(e,t);if(r.range.endLineNumber!==r.range.startLineNumber)return;const o=t.getLineContent(r.range.startLineNumber),a=(0,R.UU)(o).length;if(r.range.startColumn-1<=a){const e=(0,R.UU)(r.text).length,t=o.substring(r.range.startColumn-1,a),[i,s]=[r.range.getStartPosition(),r.range.getEndPosition()],n=i.column+t.length<=s.column?i.delta(0,t.length):s,c=x.Q.fromPositions(n,s),l=r.text.startsWith(t)?r.text.substring(t.length):r.text.substring(e);r=new Q.WR(c,l)}const c=t.getValueInRange(r.range),l=function(e,t){if(oe?.originalValue===e&&oe?.newValue===t)return oe?.changes;{let i=ce(e,t,!0);if(i){const s=ae(i);if(s>0){const n=ce(e,t,!1);n&&ae(n)<s&&(i=n)}}return oe={originalValue:e,newValue:t,changes:i},i}}(c,r.text);if(!l)return;const h=r.range.startLineNumber,d=new Array;if("prefix"===i){const e=l.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==c.length)return}const u=r.text.length-n;for(const g of l){const e=r.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&s&&s.lineNumber===r.range.startLineNumber&&e<s.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,n=Math.max(g.modifiedStart,Math.min(t,u)),o=r.text.substring(g.modifiedStart,n),a=r.text.substring(n,Math.max(g.modifiedStart,t));o.length>0&&d.push(new M.yP(e,o,!1)),a.length>0&&d.push(new M.yP(e,a,!0))}return new M.xD(h,d)}let oe;function ae(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ce(e,t,i){if(e.length>5e3||t.length>5e3)return;function s(e){let t=0;for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);s>t&&(t=s)}return t}const n=Math.max(s(e),s(t));function r(e){if(e<0)throw new Error("unexpected");return n+e+1}function o(e){let t=0,s=0;const n=new Int32Array(e.length);for(let o=0,a=e.length;o<a;o++)if(i&&"("===e[o]){const e=100*s+t;n[o]=r(2*e),t++}else if(i&&")"===e[o]){t=Math.max(t-1,0);const e=100*s+t;n[o]=r(2*e+1),0===t&&s++}else n[o]=e.charCodeAt(o);return n}const a=o(e),c=o(t);return new ie.uP({getElements:()=>a},{getElements:()=>c}).ComputeDiff(!1).changes}var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class extends d.jG{constructor(e,t,i,s,n){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=s,this.languageConfigurationService=n,this._updateOperation=this._register(new d.HE),this.inlineCompletions=(0,r.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,r.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){const s=new ue(e,t,this.textModel.getVersionId()),n=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(this._updateOperation.value?.request.satisfies(s))return this._updateOperation.value.promise;if(n.get()?.request.satisfies(s))return Promise.resolve(!0);const o=!!this._updateOperation.value;this._updateOperation.clear();const a=new p.Qi,c=(async()=>{var c,l;if((o||t.triggerKind===Z.qw.Automatic)&&await(c=this._debounceValue.get(this.textModel),l=a.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date,d=await(0,te.Yk)(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,a.token,this.languageConfigurationService);if(a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new pe(d,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!d.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,r.Rn)((e=>{n.set(g,e)})),!0})(),l=new ge(s,a,c);return this._updateOperation.value=l,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){this._updateOperation.value?.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};de=le([he(3,S.ILanguageFeaturesService),he(4,J.JZ)],de);class ue{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(0,K.KC)(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(0,K.r)())&&(e.context.triggerKind===Z.qw.Automatic||this.context.triggerKind===Z.qw.Explicit)&&this.versionId===e.versionId}}class ge{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class pe{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,s){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=s,this._refCount=1,this._prependedInlineCompletionItems=[];const n=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new me(e,n[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const s=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new me(e,s,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class me{get forwardStable(){return this.inlineCompletion.source.inlineCompletions.enableForwardStability??!1}constructor(e,t,i,s){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=s,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=(0,r.C)({owner:this,equalsFn:x.Q.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){return this.inlineCompletion.withRange(this._updatedRange.read(e)??fe)}toSingleTextEdit(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.insertText)}isVisible(e,t,i){const s=se(this._toFilterTextReplacement(i),e),n=this._updatedRange.read(i);if(!n||!this.inlineCompletion.range.getStartPosition().equals(n.getStartPosition())||t.lineNumber!==s.range.startLineNumber)return!1;const r=e.getValueInRange(s.range,1),o=s.text,a=Math.max(0,t.column-s.range.startColumn);let c=o.substring(0,a),l=o.substring(a),h=r.substring(0,a),d=r.substring(a);const u=e.getLineIndentColumn(s.range.startLineNumber);return s.range.startColumn<=u&&(h=h.trimStart(),0===h.length&&(d=d.trimStart()),c=c.trimStart(),0===c.length&&(l=l.trimStart())),c.startsWith(h)&&!!(0,ee.dE)(d,l)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&X.W.ofRange(i).isGreaterThanOrEqualTo(X.W.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.filterText)}}const fe=new x.Q(1,1,1,1);var _e=i(30936),ve=i(50091),Ce=i(63591),Ee=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},be=function(e,t){return function(i,s){t(i,s,e)}};let Se=class extends d.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,s,n,o,a,c,l,h,d,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this._textModelVersionId=i,this._positions=s,this._debounceValue=n,this._suggestPreviewEnabled=o,this._suggestPreviewMode=a,this._inlineSuggestMode=c,this._enabled=l,this._instantiationService=h,this._commandService=d,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(de,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=(0,r.FY)(this,!1),this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._primaryPosition=(0,r.un)(this,(e=>this._positions.read(e)[0]??new E.y(1,1))),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ye.Redo,ye.Undo,ye.AcceptWord]),this._fetchInlineCompletionsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Z.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(e.change))?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=Z.qw.Explicit),!0)},((e,t)=>{this._forceUpdateExplicitlySignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this._textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),s=this.selectedSuggestItem.read(e);if(i&&!s){const e=this._source.inlineCompletions.get();(0,r.Rn)((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const n=this._primaryPosition.read(e),o={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:s?.toSelectedSuggestionInfo()},a=this.selectedInlineCompletion.get(),c=t.preserveCurrentCompletion||a?.forwardStable?a:void 0;return this._source.fetch(n,o,c)})),this._filteredInlineCompletionItems=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),s=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return s})),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineCompletion=(0,r.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>this.selectedInlineCompletion.read(e)?.inlineCompletion.source.inlineCompletions.commands??[])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>e?.request.context.triggerKind)),this.inlineCompletionsCount=(0,r.un)(this,(e=>this.lastTriggerKind.read(e)===Z.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,r.C)({owner:this,equalsFn:(e,t)=>e&&t?(0,M.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{const t=this.textModel,i=this.selectedSuggestItem.read(e);if(i){const s=se(i.toSingleTextEdit(),t),n=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!n)return;const r=n?.edit??s,o=n?n.edit.text.length-s.text.length:0,a=this._suggestPreviewMode.read(e),c=this._positions.read(e),l=[r,...we(this.textModel,c,r)],h=l.map(((e,i)=>re(e,t,a,c[i],o))).filter(_.O9);return{edits:l,primaryGhostText:h[0]??new M.xD(r.range.endLineNumber,[]),ghostTexts:h,inlineCompletion:n?.completion,suggestItem:i}}{if(!this._isActive.read(e))return;const i=this.selectedInlineCompletion.read(e);if(!i)return;const s=i.toSingleTextEdit(e),n=this._inlineSuggestMode.read(e),r=this._positions.read(e),o=[s,...we(this.textModel,r,s)],a=o.map(((e,i)=>re(e,t,n,r[i],0))).filter(_.O9);if(!a[0])return;return{edits:o,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:i,suggestItem:void 0}}})),this.ghostTexts=(0,r.C)({owner:this,equalsFn:M.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,r.C)({owner:this,equalsFn:M.x9},(e=>{const t=this.state.read(e);if(t)return t?.primaryGhostText})),this._register((0,r.OI)(this._fetchInlineCompletionsPromise)),this._register((0,r.fm)((e=>{const t=this.state.read(e),i=t?.inlineCompletion;if(i?.semanticId!==g?.semanticId&&(g=i,i)){const e=i.inlineCompletion,t=e.source;t.provider.handleItemDidShow?.(t.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}_getReason(e){return e?.isUndoing?ye.Undo:e?.isRedoing?ye.Redo:this.isAcceptingPartially?ye.AcceptWord:ye.Other}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,s=this._source.suggestWidgetInlineCompletions.read(t),n=s?s.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(_.O9);return(0,j.oH)(n,(s=>{let n=s.toSingleTextEdit(t);return n=se(n,i,x.Q.fromPositions(n.range.getStartPosition(),e.range.getEndPosition())),ne(n,e)?{completion:s,edit:n}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new Y.D7;const t=this.state.get();if(!t||t.primaryGhostText.isEmpty()||!t.inlineCompletion)return;const i=t.inlineCompletion.toInlineCompletion(void 0);if(i.command&&i.source.addRef(),e.pushUndoStop(),i.snippetInfo)e.executeEdits("inlineSuggestion.accept",[q.k.replace(i.range,""),...i.additionalTextEdits]),e.setPosition(i.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),_e.O.get(e)?.insert(i.snippetInfo.snippet,{undoStopBefore:!1});else{const s=t.edits,n=Re(s).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...s.map((e=>q.k.replace(e.range,e.text))),...i.additionalTextEdits]),e.setSelections(n,"inlineCompletionAccept")}this.stop(),i.command&&(await this._commandService.executeCommand(i.command.id,...i.command.arguments||[]).then(void 0,Y.M_),i.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),s=this._languageConfigurationService.getLanguageConfiguration(i),n=new RegExp(s.wordDefinition.source,s.wordDefinition.flags.replace("g","")),r=t.match(n);let o=0;o=r&&void 0!==r.index?0===r.index?r[0].length:r.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<o&&(o=a.index+a[0].length),o}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new Y.D7;const s=this.state.get();if(!s||s.primaryGhostText.isEmpty()||!s.inlineCompletion)return;const n=s.primaryGhostText,r=s.inlineCompletion.toInlineCompletion(void 0);if(r.snippetInfo||r.filterText!==r.insertText)return void await this.accept(e);const o=n.parts[0],a=new E.y(n.lineNumber,o.column),c=o.text,l=t(a,c);if(l===c.length&&1===n.parts.length)return void this.accept(e);const h=c.substring(0,l),d=this._positions.get(),u=d[0];r.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=x.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,s=new Q.WR(t,i),n=[s,...we(this.textModel,d,s)],r=Re(n).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",n.map((e=>q.k.replace(e.range,e.text)))),e.setSelections(r,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(r.source.provider.handlePartialAccept){const t=x.Q.fromPositions(r.range.getStartPosition(),X.W.ofText(h).addToPosition(a)),s=e.getModel().getValueInRange(t,1);r.source.provider.handlePartialAccept(r.source.inlineCompletions,r.sourceInlineCompletion,s.length,{kind:i})}}finally{r.source.removeRef()}}handleSuggestAccepted(e){const t=se(e.toSingleTextEdit(),this.textModel),i=this._computeAugmentation(t,void 0);if(!i)return;const s=i.completion.inlineCompletion;s.source.provider.handlePartialAccept?.(s.source.inlineCompletions,s.sourceInlineCompletion,t.text.length,{kind:2})}};var ye;function we(e,t,i){if(1===t.length)return[];const s=t[0],n=t.slice(1),r=i.range.getStartPosition(),o=i.range.getEndPosition(),a=e.getValueInRange(x.Q.fromPositions(s,o)),c=(0,P.tN)(s,r);if(c.lineNumber<1)return(0,Y.dz)(new Y.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${s.toString()} and ${r.toString()}`)),[];const l=function(e,t){let i="";const s=(0,R.en)(e);for(let n=t.lineNumber-1;n<s.length;n++)i+=s[n].substring(n===t.lineNumber-1?t.column-1:0);return i}(i.text,c);return n.map((t=>{const i=(0,P.OA)((0,P.tN)(t,r),o),s=e.getValueInRange(x.Q.fromPositions(t,i)),n=(0,R.Qp)(a,s),c=x.Q.fromPositions(t,t.delta(0,n));return new Q.WR(c,l)}))}function Re(e){const t=G.t9.createSortPermutation(e,(0,G.VE)((e=>e.range),x.Q.compareRangesUsingStarts)),i=new Q.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}Se=Ee([be(9,Ce._Y),be(10,ve.d),be(11,J.JZ)],Se),function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ye||(ye={}));var Le=i(29319),Te=i(38280),xe=i(90870);class ke extends d.jG{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new w.vl),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=xe.D.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),o=r?se(r,n):void 0;if(!o)return-1;const a=E.y.lift(t),c=i.map(((e,t)=>{const i=se(Ae.fromSuggestion(s,n,a,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:ne(o,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),l=(0,j.Cn)(c,(0,G.VE)((e=>e.prefixLength),G.U9));return l?l.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(w.Jh.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=Ae.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=xe.D.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),s=this.editor.getModel();return t&&i&&s?Ae.fromSuggestion(e,s,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=xe.D.get(this.editor);e?.stopForceRenderingAbove()}forceRenderingAbove(){const e=xe.D.get(this.editor);e?.forceRenderingAbove()}}class Ae{static fromSuggestion(e,t,i,s,n){let{insertText:r}=s.completion,o=!1;if(4&s.completion.insertTextRules){const e=(new Le.fr).parse(r);e.children.length<100&&Te.O.adjustWhitespace(t,i,!0,e),r=e.toString(),o=!0}const a=e.getOverwriteInfo(s,n);return new Ae(x.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),r,s.completion.kind,o)}constructor(e,t,i,s){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=s}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new Z.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Q.WR(this.range,this.insertText)}}var Ne,Ie=i(78209),Oe=i(253),De=i(87213),Me=i(84001),Pe=i(32848),Fe=i(98031),Ue=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},He=function(e,t){return function(i,s){t(i,s,e)}};let Be=class extends d.jG{static{Ne=this}static{this.ID="editor.contrib.inlineCompletionsController"}static get(e){return e.getContribution(Ne.ID)}constructor(e,t,i,s,n,o,a,u,b,S){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=s,this._commandService=n,this._debounceService=o,this._languageFeaturesService=a,this._accessibilitySignalService=u,this._keybindingService=b,this._accessibilityService=S,this._editorObs=(0,C.Ud)(this.editor),this._positions=(0,r.un)(this,(e=>this._editorObs.selections.read(e)?.map((e=>e.getEndPosition()))??[new E.y(1,1)])),this._suggestWidgetAdaptor=this._register(new ke(this.editor,(()=>(this._editorObs.forceUpdate(),this.model.get()?.selectedInlineCompletion.get()?.toSingleTextEdit(void 0))),(e=>this._editorObs.forceUpdate((t=>{this.model.get()?.handleSuggestAccepted(e)}))))),this._suggestWidgetSelectedItem=(0,r.y0)(this,(e=>this._suggestWidgetAdaptor.onDidSelectedItemChange((()=>{this._editorObs.forceUpdate((t=>e(void 0)))}))),(()=>this._suggestWidgetAdaptor.selectedItem)),this._enabledInConfig=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=(0,r.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=(0,r.y0)(this,this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=(0,r.un)(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=(0,m.a0)(this,(e=>{if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance(Se,t,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).preview)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).previewMode)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).mode)),this._enabled)})).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=(0,r.un)(this,(e=>{const t=this.model.read(e);return t?.ghostTexts.read(e)??[]})),this._stablizedGhostTexts=function(e,t){const i=(0,r.FY)("result",[]),s=[];return t.add((0,r.fm)((t=>{const n=e.read(t);(0,r.Rn)((e=>{if(n.length!==s.length){s.length=n.length;for(let e=0;e<s.length;e++)s[e]||(s[e]=(0,r.FY)("item",n[e]));i.set([...s],e)}s.forEach(((t,i)=>t.set(n[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,f.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(B,this.editor,{ghostText:e,minReservedLineCount:(0,r.lk)(0),targetTextModel:this.model.map((e=>e?.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=(0,r.Yd)(this),this._fontFamily=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._register(new l.p(this._contextKeyService,this.model)),this._register((0,C.jD)(this._editorObs.onDidType,((e,t)=>{this._enabled.get()&&this.model.get()?.trigger()}))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([v.Yh.Tab.id,v.Yh.DeleteLeft.id,v.Yh.DeleteRight.id,c.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate((e=>{this.model.get()?.trigger(e)}))}))),this._register((0,C.jD)(this._editorObs.selections,((e,t)=>{t.some((e=>3===e.reason||"api"===e.source))&&this.model.get()?.stop()}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||z.bo.dropDownVisible||(0,r.Rn)((e=>{this.model.get()?.stop(e)}))}))),this._register((0,r.fm)((e=>{const t=this.model.read(e)?.state.read(e);t?.suggestItem?t.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,d.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const y=(0,f.ZX)(this,((e,t)=>{const i=this.model.read(e),s=i?.state.read(e);return this._suggestWidgetSelectedItem.get()?t:s?.inlineCompletion?.semanticId}));this._register((0,C.Qg)((0,r.un)((e=>(this._playAccessibilitySignal.read(e),y.read(e),{}))),(async(e,t,i)=>{const s=this.model.get(),n=s?.state.get();if(!n||!s)return;const o=s.textModel.getLineContent(n.primaryGhostText.lineNumber);await(0,g.wR)(50,(0,p.bs)(i)),await(0,r.oJ)(this._suggestWidgetSelectedItem,_.b0,(()=>!1),(0,p.bs)(i)),await this._accessibilitySignalService.playSignal(De.Rh.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(o))}))),this._register(new z.Pm(this.editor,this.model,this._instantiationService)),this._register(function(e){const t=new d.Cm,i=t.add((0,h.jh)());return t.add((0,r.fm)((t=>{i.setStyle(e.read(t))}))),t}((0,r.un)((e=>{const t=this._fontFamily.read(e);return""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`})))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}_provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let s;!t&&i&&this.editor.getOption(150)&&(s=(0,Ie.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),(0,u.xE)(s?e+", "+s:e)}shouldShowHoverAt(e){const t=this.model.get()?.primaryGhostText.get();return!!t&&t.parts.some((i=>e.containsPosition(new E.y(t.lineNumber,i.column))))}shouldShowHoverAtViewZone(e){return this._ghostTextWidgets.get()[0]?.ownsViewZone(e)??!1}};Be=Ne=Ue([He(1,Ce._Y),He(2,Pe.fN),He(3,Me.pG),He(4,ve.d),He(5,b.ILanguageFeatureDebounceService),He(6,S.ILanguageFeaturesService),He(7,De.Nt),He(8,Fe.b),He(9,Oe.j)],Be);var We=i(48116),Ve=i(27195);class ze extends s.ks{static{this.ID=c.PA}constructor(){super({id:ze.ID,label:Ie.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=Be.get(t);i?.model.get()?.next()}}class Ge extends s.ks{static{this.ID=c.Vl}constructor(){super({id:Ge.ID,label:Ie.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=Be.get(t);i?.model.get()?.previous()}}class je extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Ie.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=Be.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e)),i?.playAccessibilitySignal(e)}))}}class Ke extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Ie.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible)},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextWord(i.editor))}}class Ye extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Ie.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextLine(i.editor))}}class qe extends s.ks{constructor(){super({id:c.Wt,label:Ie.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:l.p.inlineSuggestionVisible,menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Pe.M$.and(l.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),l.p.inlineSuggestionHasIndentationLessThanTabSize,We.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){const i=Be.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class $e extends s.ks{static{this.ID="editor.action.inlineSuggest.hide"}constructor(){super({id:$e.ID,label:Ie.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:l.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Be.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}class Qe extends Ve.L{static{this.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"}constructor(){super({id:Qe.ID,title:Ie.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Ve.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Pe.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Me.pG),s="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",s)}}var Xe=i(16980),Ze=i(20492),Je=i(49099),et=i(90651),tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},it=function(e,t){return function(i,s){t(i,s,e)}};class st{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let nt=class{constructor(e,t,i,s,n,r){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=s,this._instantiationService=n,this._telemetryService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Be.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const s=i.detail;if(t.shouldShowHoverAtViewZone(s.viewZoneId))return new n.mm(1e3,this,x.Q.fromPositions(this._editor.getModel().validatePosition(s.positionBefore||s.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Be.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new st(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new d.Cm,s=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(e,s));const o=s.controller.model.get(),a=this._instantiationService.createInstance(z.bo,this._editor,!1,(0,r.lk)(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands),c=a.getDomNode();e.fragment.appendChild(c),o.triggerExplicitly(),i.add(a);const l={hoverPart:s,hoverElement:c,dispose(){i.dispose()}};return new n.Ke([l])}renderScreenReaderText(e,t){const i=new d.Cm,s=h.$,n=s("div.hover-row.markdown-hover"),o=h.BC(n,s("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Ze.T({editor:this._editor},this._languageService,this._openerService));return i.add((0,r.fm)((s=>{const n=t.controller.model.read(s)?.primaryGhostText.read(s);if(n){const t=this._editor.getModel().getLineContent(n.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{o.className="hover-contents code-hover-contents",e.onContentsChanged()})));const s=Ie.kg("inlineSuggestionFollows","Suggestion:"),n=i.add(a.render((new Xe.Bc).appendText(s).appendCodeblock("text",t)));o.replaceChildren(n.element)})(n.renderForScreenReader(t))}else h.Ln(o)}))),e.fragment.appendChild(n),i}};nt=tt([it(1,A.L),it(2,Je.C),it(3,Oe.j),it(4,Ce._Y),it(5,et.k)],nt);var rt=i(96282);(0,s.HW)(Be.ID,Be,3),(0,s.Fl)(je),(0,s.Fl)(ze),(0,s.Fl)(Ge),(0,s.Fl)(Ke),(0,s.Fl)(Ye),(0,s.Fl)(qe),(0,s.Fl)($e),(0,Ve.ug)(Qe),n.B2.register(nt),rt.Z.register(new class{})},80449:(e,t,i)=>{e.exports=i(17184)},80531:(e,t,i)=>{var s=i(68097),n=i(88834),r=i(12529),o=i(92061);e.exports=function(e,t){return t=s(t,e),null==(e=r(e,t))||delete e[o(n(t))]}},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>c,jN:()=>a,nu:()=>o});var s=i(63591),n=i(79400),r=i(631);const o=(0,s.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(c.is(e))return c.lift(e);if(l.is(e))return l.lift(e);throw new Error("Unsupported edit")}))}}class c extends a{static is(e){return e instanceof c||(0,r.Gv)(e)&&n.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof c?e:new c(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,s){super(s),this.resource=e,this.textEdit=t,this.versionId=i}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof l?e:new l(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}},80538:(e,t,i)=>{"use strict";i.d(t,{NN:()=>f,eS:()=>p,f9:()=>m,hE:()=>u,sv:()=>g});var s=i(25890),n=i(18447),r=i(64383),o=i(36456),a=i(31450),c=i(56942),l=i(79614);function h(e,t){return t.uri.scheme===e.uri.scheme||!(0,o.fV)(t.uri,o.ny.walkThroughSnippet,o.ny.vscodeChatCodeBlock,o.ny.vscodeChatCodeCompareBlock)}async function d(e,t,i,n,o){const a=i.ordered(e,n).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,r.M_)(e)})))),c=await Promise.all(a);return(0,s.Yc)(c.flat()).filter((t=>h(e,t)))}function u(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDefinition(t,i,n)))}function g(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDeclaration(t,i,n)))}function p(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideImplementation(t,i,n)))}function m(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function f(e,t,i,s,n,r){return d(t,i,e,n,(async(e,t,i)=>{const n=(await e.provideReferences(t,i,{includeDeclaration:!0},r))?.filter((e=>h(t,e)));if(!s||!n||2!==n.length)return n;const o=(await e.provideReferences(t,i,{includeDeclaration:!1},r))?.filter((e=>h(t,e)));return o&&1===o.length?o:n}))}async function _(e){const t=await e(),i=new l.y4(t,""),s=i.references.map((e=>e.link));return i.dispose(),s}(0,a.ke)("_executeDefinitionProvider",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDefinitionProvider_recursive",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider_recursive",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider_recursive",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider_recursive",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider_recursive",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!0,n.XO.None);return _((()=>s))}))},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(27145),n=i(59284),r=i(46734),o=i(9296);const a=(0,i(69220).om)("card"),c=n.forwardRef((function(e,t){const{type:i="container",theme:c,view:l,size:h="m",children:d,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,s.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,C=("action"===i||_)&&Boolean(g)&&!p,E=v?"normal":void 0,b=v||_?"outlined":void 0,S=C?g:void 0,{onKeyDown:y}=(0,r.N)(g);return n.createElement(o.a,Object.assign({ref:t,role:C?"button":void 0,className:a({theme:c||E,view:l||b,type:i,selected:m,size:h,disabled:p,clickable:C},u),onClick:S,onKeyDown:C?y:void 0,tabIndex:C?0:void 0},f),d)}))},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>n,pj:()=>l,qN:()=>c});class s{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends s{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i,s){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=s}}class o{static from(e){const t=new Array(e.length);for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=new o(s.left,s.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class c{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class l{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},80718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EditorWorkerHost:()=>s});class s{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(s.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(s.CHANNEL_NAME,t)}}},80781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,default:()=>Zc,editor:()=>qc,languages:()=>$c});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,editor:()=>qc,languages:()=>$c});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836);var n=i(52555),r=(i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606),i(87908)),o=i(73848),a=i(25893),c=i(5662),l=i(91508),h=i(79400),d=i(28433),u=i(31450),g=i(80301),p=i(10146),m=i(90766),f=i(51929),_=i(80789),v=i(64383),C=i(36456),E=i(25890),b=i(78209);let S;function y(e,t){const i=globalThis.MonacoEnvironment;if(i){if("function"===typeof i.getWorker)return i.getWorker("workerMain.js",t);if("function"===typeof i.getWorkerUrl){const e=i.getWorkerUrl("workerMain.js",t);return new Worker(S?S.createScriptURL(e):e,{name:t,type:"module"})}}if(e){const i=function(e,t,i){const s=/^((http:)|(https:)|(file:)|(vscode-file:))/.test(t);if(s&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{const i=t.lastIndexOf("?"),s=t.lastIndexOf("#",i),n=i>0?new URLSearchParams(t.substring(i+1,~s?s:void 0)):new URLSearchParams;C.SJ.addSearchParam(n,!0,!0);t=n.toString()?`${t}?${n.toString()}#${e}`:`${t}#${e}`}0;const n=new Blob([(0,E.Yc)([`/*${e}*/`,i?`globalThis.MonacoEnvironment = { baseUrl: '${i}' };`:void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,b.Ec)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,b.i8)())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL('${t}') ?? '${t}');`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n)}(t,e.toString(!0)),s=new Worker(S?S.createScriptURL(i):i,{name:t,type:"module"});return function(e){return new Promise(((t,i)=>{e.onmessage=function(i){"vscode-worker-ready"===i.data.type&&(e.onmessage=null,t(e))},e.onerror=i}))}(s)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}S="object"===typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==globalThis.workerttPolicy?globalThis.workerttPolicy:(0,_.H)("defaultWorkerFactory",{createScriptURL:e=>e});class w extends c.jG{constructor(e,t,i,s,n,r){super(),this.id=i,this.label=s;const o=y(e,s);"function"===typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(t,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})),this._register((0,c.s)((()=>{this.worker?.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",r),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){this.worker?.then((i=>{try{i.postMessage(e,t)}catch(s){(0,v.dz)(s),(0,v.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:s}))}}))}}class R{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=C.zl.asBrowserUri(`${e}.esm.js`)}}class L{static{this.LAST_WORKER_ID=0}constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++L.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new w(e.esmModuleLocation,e.amdModuleId,s,e.label||"anonymous"+s,t,(e=>{(0,f.logOnceWebWorkerWarning)(e),this._webWorkerFailedBeforeError=e,i(e)}))}}var T=i(36677),x=i(17469),k=i(16545),A=i(23750),N=i(90360),I=i(18801),O=i(78381),D=i(56942),M=i(41845),P=i(87723),F=i(86571),U=i(8597),H=i(47443),B=i(80718),W=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},V=function(e,t){return function(i,s){t(i,s,e)}};const z=3e5;function G(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let j=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._languageConfigurationService=n,this._modelService=t,this._workerManager=this._register(new Y(e,this._modelService)),this._logService=s,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!G(this._modelService,e.uri))return Promise.resolve({links:[]});const i=await this._workerWithResources([e.uri]),s=await i.$computeLinks(e.uri.toString());return s&&{links:s}}})),this._register(r.completionProvider.register("*",new K(this._workerManager,i,this._modelService,this._languageConfigurationService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return G(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,s){const n=await this._workerWithResources([e,t],!0),r=await n.$computeDiff(e.toString(),t.toString(),i,s);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map((e=>new M.t(new P.WL(new F.M(e[0],e[1]),new F.M(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>new P.wm(new F.M(e[0],e[1]),new F.M(e[2],e[3]),e[4]?.map((e=>new P.q6(new T.Q(e[0],e[1],e[2],e[3]),new T.Q(e[4],e[5],e[6],e[7])))))))}}async computeMoreMinimalEdits(e,t,i=!1){if((0,E.EI)(t)){if(!G(this._modelService,e))return Promise.resolve(t);const s=O.W.create(),n=this._workerWithResources([e]).then((s=>s.$computeMoreMinimalEdits(e.toString(),t,i)));return n.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([n,(0,m.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return G(this._modelService,e)}async navigateValueSet(e,t,i){const s=this._modelService.getModel(e);if(!s)return null;const n=this._languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=n.source,o=n.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return G(this._modelService,e)}async computeWordRanges(e,t){const i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);const s=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),n=s.source,r=s.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,n,r)}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){const i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};j=W([V(1,A.IModelService),V(2,N.ITextResourceConfigurationService),V(3,I.rr),V(4,x.JZ),V(5,D.ILanguageFeaturesService)],j);class K{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const s=[];if("currentDocument"===i.wordBasedSuggestions)G(this._modelService,e.uri)&&s.push(e.uri);else for(const h of this._modelService.getModels())G(this._modelService,h.uri)&&(h===e?s.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||s.push(h.uri));if(0===s.length)return;const n=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new T.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):T.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column),c=await this._workerManager.withWorker(),l=await c.textualSuggest(s,r?.word,n);return l?{duration:l.duration,suggestions:l.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}})))}:void 0}}let Y=class extends c.jG{constructor(e,t){super(),this._workerDescriptor=e,this._modelService=t,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new U.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),a.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>z&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new $(this._workerDescriptor,!1,this._modelService)),Promise.resolve(this._editorWorkerClient)}};Y=W([V(1,A.IModelService)],Y);class q{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw new Error("Not supported")}}let $=class extends c.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._disposed=!1,this._modelService=i,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(function(e,t){const i="string"===typeof e?new R(e,t):e;return new f.SimpleWorkerClient(new L,i)}(this._workerDescriptor)),B.EditorWorkerHost.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{const e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new q(new k.EditorSimpleWorker(this._createEditorWorkerHost(),null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new H.WorkerTextModelSyncClient(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,v.aD)());const i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){const s=await this.workerWithSyncedResources(e),n=i.source,r=i.flags;return s.$textualSuggest(e.map((e=>e.toString())),t,n,r)}dispose(){super.dispose(),this._disposed=!0}};$=W([V(2,A.IModelService)],$);var Q=i(41234),X=i(58925),Z=i(47612),J=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ee=function(e,t){return function(i,s){t(i,s,e)}};let te=class extends c.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new Q.vl),this._onCodeEditorAdd=this._register(new Q.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Q.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Q.vl),this._onDiffEditorAdd=this._register(new Q.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Q.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new X.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const s=e.toString();let n;this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const s of this._codeEditorOpenHandlers){const n=await s(e,t,i);if(null!==n)return n}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,c.s)(t)}};te=J([ee(0,Z.Gy)],te);var ie=i(32848),se=i(14718),ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class extends te{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===C.ny.http||i===C.ny.https)return(0,U.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};oe=ne([re(0,ie.fN),re(1,Z.Gy)],oe),(0,se.v)(g.T,oe,0);var ae=i(63591);const ce=(0,ae.u1)("layoutService");var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class{get mainContainer(){return(0,E.Fy)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??a.G.document.body}get activeContainer(){const e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return U.tG(this.mainContainer)}get activeContainerDimension(){return U.tG(this.activeContainer)}get containers(){return(0,E.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=Q.Jh.None,this.onDidLayoutActiveContainer=Q.Jh.None,this.onDidLayoutContainer=Q.Jh.None,this.onDidChangeActiveContainer=Q.Jh.None,this.onDidAddContainer=Q.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};de=le([he(0,g.T)],de);let ue=class extends de{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ue=le([he(1,g.T)],ue),(0,se.v)(ce,de,1);var ge=i(42291),pe=i(59599),me=i(58591),fe=i(47579),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=!1;function Ee(e){return e.scheme===C.ny.file?e.fsPath:e.path}let be=0;class Se{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ye{constructor(e,t){this.resourceLabel=e,this.reason=t}}class we{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,s]of this.elements){(0===s.reason?e:t).push(s.resourceLabel)}const i=[];return e.length>0&&i.push(b.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(b.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Re{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new we),this.removedResources.has(t)||this.removedResources.set(t,new ye(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new we),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new ye(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Le{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,s=this._past.length;i<s;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new fe.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,s=0,n=-1;for(let o=0,a=this._past.length;o<a;o++,s++){const r=this._past[o];i&&(s>=t||r.id!==e.elements[s])&&(i=!1,n=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let o=this._future.length-1;o>=0;o--,s++){const n=this._future[o];i&&(s>=t||n.id!==e.elements[s])&&(i=!1,r=o),i||1!==n.type||n.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Te{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const xe=new Le("","");xe.locked=!0;let ke=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e,t=fe.I_.None,i=fe.Ym.None){if(0===e.type){const s=Ee(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new Se(e,s,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const s=new Set,n=[],r=[];for(const t of e.resources){const e=Ee(t),i=this.getUriComparisonKey(t);s.has(i)||(s.add(i),n.push(e),r.push(i))}1===n.length?this._pushElement(new Se(e,n[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Re(e,n,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],s=e.strResources[t];let n;this._editStacks.has(s)?n=this._editStacks.get(s):(n=new Le(i,s),this._editStacks.set(s,n)),n.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitPastWorkspaceElement(e,s)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitFutureWorkspaceElement(e,s)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const s=this.getUriComparisonKey(e);if(this._editStacks.has(s)){this._editStacks.get(s).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new fe.To(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=s))}return[t,i]}canUndo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,v.dz)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,s,n){const r=this._acquireLocks(i);let o;try{o=t()}catch(a){return r(),s.dispose(),this._onError(a,e)}return o?o.then((()=>(r(),s.dispose(),n())),(t=>(r(),s.dispose(),this._onError(t,e)))):(r(),s.dispose(),n())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return c.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?c.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(c.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,c.Xm)(i)?t(i):i.then((e=>t(e))):t(c.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||xe);return new Te(t)}_tryToSplitAndUndo(e,t,i,s){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._undo(e,0,!0));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceUndo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestPastElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const s=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,s,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,s,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,s){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(n||(n={}));const{result:r}=await this._dialogService.prompt({type:ge.A.Info,message:b.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:b.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>n.All},{label:b.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>n.This}],cancelButton:{run:()=>n.Cancel}});if(r===n.Cancel)return;if(r===n.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const o=this._checkWorkspaceUndo(e,t,i,!1);if(o)return o.returnValue;s=!0}let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return n.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,n,(()=>this._continueUndoInGroup(t.groupId,s)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(s=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Te([e]),s,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=b.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const s=this._editStacks.get(e),n=s.getClosestPastElement();if(!n)return;if(n.groupId){const[e,s]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&s)return this._undo(s,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);try{return 1===n.type?this._workspaceUndo(e,n,i):this._resourceUndo(s,n,i)}finally{Ce}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:b.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:b.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:b.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=s))}return[t,i]}canRedo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,s){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._redo(e));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceRedo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestFutureElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),s=this._checkWorkspaceRedo(e,t,i,!1);return s?s.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return s.dispose(),n.returnValue;for(const o of i.editStacks)o.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,s,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Te([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=b.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ce}}}};ke=_e([ve(0,pe.X),ve(1,me.Ot)],ke);class Ae{constructor(e){this.returnValue=e}}(0,se.v)(fe.$D,ke,1);i(32500),i(27004),i(76007);var Ne=i(66261),Ie=i(67220),Oe=i(47508),De=i(98031),Me=i(84001),Pe=i(52776),Fe=i(17390),Ue=i(49099),He=i(20492),Be=i(16980),We=i(98067),Ve=i(253),ze=i(11007),Ge=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},je=function(e,t){return function(i,s){t(i,s,e)}};const Ke=U.$;let Ye=class extends Fe.x{get _targetWindow(){return U.zk(this._target.targetElements[0])}get _targetDocumentElement(){return U.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,s,n,o){super(),this._keybindingService=t,this._configurationService=i,this._openerService=s,this._instantiationService=n,this._accessibilityService=o,this._messageListeners=new c.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Q.vl),this._onRequestLayout=this._register(new Q.vl),this._linkHandler=e.linkHandler||(t=>(0,He.i)(this._openerService,t,(0,Be.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new $e(e.target),this._hoverPointer=e.appearance?.showPointer?Ke("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Pe.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),e.appearance?.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=e.position?.hoverPosition??3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(U.ko(this._targetWindow,"blur",(()=>this.dispose())));const a=Ke("div.hover-row.markdown-hover"),l=Ke("div.hover-contents");if("string"===typeof e.content)l.textContent=e.content,l.style.whiteSpace="pre-wrap";else if(U.sb(e.content))l.appendChild(e.content),l.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(He.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||r.jU.fontFamily}),{element:s}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});l.appendChild(s)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=Ke("div.hover-row.status-bar"),i=Ke("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),s=t?t.getLabel():null;Pe.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},s)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let h;if(this._hoverContainer=Ke("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),h=!(e.actions&&e.actions.length>0)&&(void 0===e.persistence?.hideOnHover?"string"===typeof e.content||(0,Be.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=Ke("div.hover-row.status-bar"),t=Ke("div.info");t.textContent=(0,b.kg)("hoverhint","Hold {0} key to mouse over",We.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const d=[...this._target.targetElements];h||d.push(this._hoverContainer);const u=this._register(new qe(d));if(this._register(u.onMouseOut((()=>{this._isLocked||this.dispose()}))),h){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new qe(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=u}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=U.Hs(this._hoverContainer,Ke("div")),s=U.BC(this._hoverContainer,Ke("div"));i.tabIndex=0,s.tabIndex=0,this._register(U.ko(s,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(U.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const s=this.findLastFocusableChild(i);if(s)return s}}render(e){e.appendChild(this._hoverContainer);const t=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,Pe.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel());t&&(0,ze.h5)(t),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=U.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:s,left:n}=e[0],r=i-n,o=s-t,a={top:t,right:i,bottom:s,left:n,width:r,height:o,center:{x:n+r/2,y:t+o/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+r/2,a.center.y=a.top+o/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const s=this._x+i;(s<e.left||s>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};Ye=Ge([je(1,De.b),je(2,Me.pG),je(3,Ue.C),je(4,ae._Y),je(5,Ve.j)],Ye);class qe extends Fe.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new Q.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=U.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(U.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class $e{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Qe,Xe=i(72962),Ze=i(55089),Je=i(92719);function et(e,t,i){const s=i.mode===Qe.ALIGN?i.offset:i.offset+i.size,n=i.mode===Qe.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-s?s:t<=n?n-t:Math.max(e-t,0):t<=n?n-t:t<=e-s?s:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Qe||(Qe={}));class tt extends c.jG{static{this.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"]}static{this.BUBBLE_DOWN_EVENTS=["click"]}constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=c.jG.None,this.toDisposeOnSetContainer=c.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=U.$(".context-view"),U.jD(this.view),this.setContainer(e,t),this._register((0,c.s)((()=>this.setContainer(null,1))))}setContainer(e,t){this.useFixedPosition=1!==t;const i=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||i!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=U.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=it,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(U.$("slot"))}else this.container.appendChild(this.view);const t=new c.Cm;tt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),tt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){this.isVisible()&&this.hide(),U.w_(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(e.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",U.WU(this.view),this.toDisposeOnClean=e.render(this.view)||c.jG.None,this.delegate=e,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||We.un&&Ze.e.pointerEvents?(this.delegate?.layout?.(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(U.sb(e)){const i=U.BK(e),s=U.mU(e);t={top:i.top*s,left:i.left*s,width:i.width*s,height:i.height*s}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=U.Tr(this.view),s=U.OK(this.view),n=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,o=this.delegate.anchorAxisAlignment||0;let a,c;const l=U.fz();if(0===o){const e={offset:t.top-l.pageYOffset,size:t.height,position:0===n?0:1},o={offset:t.left,size:t.width,position:0===r?0:1,mode:Qe.ALIGN};a=et(l.innerHeight,s,e)+l.pageYOffset,Je.Q.intersects({start:a,end:a+s},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),c=et(l.innerWidth,i,o)}else{const e={offset:t.left,size:t.width,position:0===r?0:1},o={offset:t.top,size:t.height,position:0===n?0:1,mode:Qe.ALIGN};c=et(l.innerWidth,i,e),Je.Q.intersects({start:c,end:c+i},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),a=et(l.innerHeight,s,o)+l.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===n?"bottom":"top"),this.view.classList.add(0===r?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=U.BK(this.container);this.view.style.top=a-(this.useFixedPosition?U.BK(this.view).top:h.top)+"px",this.view.style.left=c-(this.useFixedPosition?U.BK(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t?.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),U.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,U.zk(e).document.activeElement):t&&!U.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}const it='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var st=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},nt=function(e,t){return function(i,s){t(i,s,e)}};let rt=class extends c.jG{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new tt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let s;s=t?t===this.layoutService.getContainer((0,U.zk)(t))?1:i?3:2:1,this.contextView.setContainer(t??this.layoutService.activeContainer,s),this.contextView.show(e);const n={close:()=>{this.openContextView===n&&this.hideContextView()}};return this.openContextView=n,n}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};rt=st([nt(0,ce)],rt);class ot extends rt{getContextViewElement(){return this.contextView.getViewElement()}}var at=i(18447),ct=i(631);class lt{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,ct.Kg)(e)||(0,U.sb)(e))s=e;else if((0,ct.Tn)(e.markdown)){this._hoverWidget||this.show((0,b.kg)("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new at.Qi;const n=this._cancellationTokenSource.token;if(s=await e.markdown(n),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||n.isCancellationRequested)return}else s=e.markdown??e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const s=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!s,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(n,t)}s?.dispose()}hasContent(e){return!!e&&(!(0,Be.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var ht=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},dt=function(e,t){return function(i,s){t(i,s,e)}};let ut=class extends c.jG{constructor(e,t,i,s,n){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=s,this._accessibilityService=n,this._managedHovers=new Map,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new rt(this._layoutService))}showHover(e,t,i){if(gt(this._currentHoverOptions)===gt(e))return;if(this._currentHover&&this._currentHoverOptions?.persistence?.sticky)return;this._currentHoverOptions=e,this._lastHoverOptions=e;const s=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),n=(0,U.bq)();i||(s&&n?n.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=n):this._lastFocusedElementBeforeOpen=void 0);const r=new c.Cm,o=this._instantiationService.createInstance(Ye,e);if(e.persistence?.sticky&&(o.isLocked=!0),o.onDispose((()=>{this._currentHover?.domNode&&(0,U.nR)(this._currentHover.domNode)&&this._lastFocusedElementBeforeOpen?.focus(),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),r.dispose()}),void 0,r),!e.container){const t=(0,U.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,U.zk)(t))}if(this._contextViewHandler.showContextView(new pt(o,t),e.container),o.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,r),e.persistence?.sticky)r.add((0,U.ko)((0,U.zk)(e.container).document,U.Bx.MOUSE_DOWN,(e=>{(0,U.QX)(e.target,o.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)r.add((0,U.ko)(i,U.Bx.CLICK,(()=>this.hideHover())));else r.add((0,U.ko)(e.target,U.Bx.CLICK,(()=>this.hideHover())));const t=(0,U.bq)();if(t){const i=(0,U.zk)(t).document;r.add((0,U.ko)(t,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(i,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(t,U.Bx.KEY_UP,(e=>this._keyUp(e,o)))),r.add((0,U.ko)(i,U.Bx.KEY_UP,(e=>this._keyUp(e,o))))}}if("IntersectionObserver"in a.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,o)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,c.s)((()=>t.disconnect())))}return this._currentHover=o,o}hideHover(){!this._currentHover?.isLocked&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){if("Alt"===e.key)return void(t.isLocked=!0);const s=new Xe.Z(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||this._currentHoverOptions?.trapFocus&&"Tab"===e.key||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus())}_keyUp(e,t){"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus()))}setupManagedHover(e,t,i,s){let n,r;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const o=(t,i)=>{const s=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(n?.dispose(),n=void 0),s&&(e.onDidHideHover?.(),r=void 0)},a=(n,o,a,c)=>new m.pc((async()=>{r&&!r.isDisposed||(r=new lt(e,a||t,n>0),await r.update("function"===typeof i?i():i,o,{...s,trapFocus:c}))}),n);let l=!1;const h=(0,U.ko)(t,U.Bx.MOUSE_DOWN,(()=>{l=!0,o(!0,!0)}),!0),d=(0,U.ko)(t,U.Bx.MOUSE_UP,(()=>{l=!1}),!0),u=(0,U.ko)(t,U.Bx.MOUSE_LEAVE,(e=>{l=!1,o(!1,e.fromElement===t)}),!0),g=(0,U.ko)(t,U.Bx.MOUSE_OVER,(i=>{if(n)return;const s=new c.Cm,r={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{r.x=e.x+10,(0,U.sb)(e.target)&&mt(e.target,t)!==t&&o(!0,!0)};s.add((0,U.ko)(t,U.Bx.MOUSE_MOVE,e,!0))}n=s,(0,U.sb)(i.target)&&mt(i.target,t)!==t||s.add(a(e.delay,!1,r))}),!0),p=()=>{if(l||n)return;const i={targetElements:[t],dispose:()=>{}},s=new c.Cm;s.add((0,U.ko)(t,U.Bx.BLUR,(()=>o(!0,!0)),!0)),s.add(a(e.delay,!1,i)),n=s};let f;const _=t.tagName.toLowerCase();"input"!==_&&"textarea"!==_&&(f=(0,U.ko)(t,U.Bx.FOCUS,p,!0));const v={show:e=>{o(!1,!0),a(0,e,void 0,e)},hide:()=>{o(!0,!0)},update:async(e,t)=>{i=e,await(r?.update(i,void 0,t))},dispose:()=>{this._managedHovers.delete(t),g.dispose(),u.dispose(),h.dispose(),d.dispose(),f?.dispose(),o(!0,!0)}};return this._managedHovers.set(t,v),v}showManagedHover(e){const t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach((e=>e.dispose())),super.dispose()}};function gt(e){if(void 0!==e)return e?.id??e}ut=ht([dt(0,ae._Y),dt(1,Oe.Z),dt(2,De.b),dt(3,ce),dt(4,Ve.j)],ut);class pt{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function mt(e,t){for(t=t??(0,U.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(0,se.v)(Ie.TN,ut,1),(0,Z.zy)(((e,t)=>{const i=e.getColor(Ne.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var ft=i(42539),_t=i(80537),vt=i(94371),Ct=i(7085),Et=i(83069),bt=i(18938),St=i(50091),yt=i(74320),wt=i(1646),Rt=i(46359);function Lt(e){return Object.isFrozen(e)?e:p.ol(e)}class Tt{static createEmptyModel(e){return new Tt({},[],[],void 0,e)}constructor(e,t,i,s,n){this._contents=e,this._keys=t,this._overrides=i,this.raw=s,this.logService=n,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const e=this.raw.map((e=>{if(e instanceof Tt)return e;const t=new xt("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,Me.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Lt(i.rawConfiguration.getValue(e))},get override(){return t?Lt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Lt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:s,identifiers:n,keys:r}of i.rawConfiguration.overrides){const o=new Tt(s,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:n,value:o})}return t.length?Lt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,Me.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=p.Go(this.contents),i=p.Go(this.overrides),s=[...this.keys],n=this.raw?.length?[...this.raw]:[this];for(const r of e)if(n.push(...r.raw?.length?r.raw:[r]),!r.isEmpty()){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=i.filter((t=>E.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=E.dM(t.keys)):i.push(p.Go(e))}for(const e of r.keys)-1===s.indexOf(e)&&s.push(e)}return new Tt(t,s,i,n.every((e=>e instanceof Tt))?void 0:n,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const s of E.dM([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[s];const n=t[s];n&&("object"===typeof e&&"object"===typeof n?(e=p.Go(e),this.mergeContents(e,n)):e=n),i[s]=e}return new Tt(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&ct.Gv(e[i])&&ct.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const s=e=>{e&&(i?this.mergeContents(i,e):i=p.Go(e))};for(const n of this.overrides)1===n.identifiers.length&&n.identifiers[0]===e?t=n.contents:n.identifiers.includes(e)&&s(n.contents);return s(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,Me.iB)(this.contents,e),wt.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>E.aI(t.identifiers,(0,wt.Gv)(e)))),1))}updateValue(e,t,i){if((0,Me.kW)(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),wt.rC.test(e)){const t=(0,wt.Gv)(e),i={identifiers:t,keys:Object.keys(this.contents[e]),contents:(0,Me.ad)(this.contents[e],(e=>this.logService.error(e)))},s=this.overrides.findIndex((e=>E.aI(e.identifiers,t)));-1!==s?this.overrides[s]=i:this.overrides.push(i)}}}class xt{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||Tt.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:s,overrides:n,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new Tt(i,s,n,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){const i=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties(),s=this.filter(e,i,!0,t);e=s.raw;return{contents:(0,Me.ad)(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}filter(e,t,i,s){let n=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(wt.rC.test(a)&&i){const i=this.filter(e[a],t,!1,s);r[a]=i.raw,n=n||i.hasExcludedProperties,o.push(...i.restricted)}else{const i=t[a],c=i?"undefined"!==typeof i.scope?i.scope:3:void 0;i?.restricted&&o.push(a),s.exclude?.includes(a)||!s.include?.includes(a)&&(void 0!==c&&void 0!==s.scopes&&!s.scopes.includes(c)||s.skipRestricted&&i?.restricted)?n=!0:r[a]=e[a]}return{raw:r,restricted:o,hasExcludedProperties:n}}toOverrides(e,t){const i=[];for(const s of Object.keys(e))if(wt.rC.test(s)){const n={};for(const t in e[s])n[t]=e[s][t];i.push({identifiers:(0,wt.Gv)(s),keys:Object.keys(n),contents:(0,Me.ad)(n,t)})}return i}}class kt{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=s,this.defaultConfiguration=n,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=c,this.remoteUserConfiguration=l,this.workspaceConfiguration=h,this.folderConfigurationModel=d,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==e?.value||void 0!==e?.override||void 0!==e?.overrides?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class At{constructor(e,t,i,s,n,r,o,a,c,l){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=s,this._remoteUserConfiguration=n,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=c,this.logService=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new yt.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let s;i.resource?(s=this._memoryConfigurationByResource.get(i.resource),s||(s=Tt.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,s))):s=this._memoryConfiguration,void 0===t?s.removeValue(e):s.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const s=this.getConsolidatedConfigurationModel(e,t,i),n=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(const a of s.overrides)for(const t of a.identifiers)void 0!==s.getOverrideValue(e,t)&&o.add(t);return new kt(e,t,s.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,n||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let s=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(s=s.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(s=s.merge(this._policyConfiguration)),s}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const s=t.getFolder(e);s&&(i=this.getFolderConsolidatedConfiguration(s.uri)||i);const n=this._memoryConfigurationByResource.get(e);n&&(i=i.merge(n))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(e);s?(t=i.merge(s),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:s,keys:n}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:s,keys:n}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),s=this.parseConfigurationModel(e.policy,t),n=this.parseConfigurationModel(e.application,t),r=this.parseConfigurationModel(e.user,t),o=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(h.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new yt.fT);return new At(i,s,n,r,Tt.createEmptyModel(t),o,a,Tt.createEmptyModel(t),new yt.fT,t)}static parseConfigurationModel(e,t){return new Tt(e.contents,e.keys,e.overrides,void 0,t)}}class Nt{constructor(e,t,i,s,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this.logService=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const e of r)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const r of this.affectedKeys)this._affectsConfigStr+=r+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=At.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const i=this._marker+e,s=this._affectsConfigStr.indexOf(i);if(s<0)return!1;const n=s+i.length;if(n>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(n);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.aI(i,s)}return!0}}var It=i(2299);const Ot={kind:0},Dt={kind:1};class Mt{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Mt.handleRemovals([].concat(e).concat(t));for(let s=0,n=this._keybindings.length;s<n;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=e.when?.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let s=0;s<t.length;s++)if(t[s]!==e.chords[s])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ie.jQ)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let s=0,n=e.length;s<n;s++){const i=e[s];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];if(!n.command||0===n.command.length){i.push(n);continue}if("-"===n.command.charAt(0))continue;const r=t.get(n.command);if(!r||!n.isDefault){i.push(n);continue}let o=!1;for(const e of r){const t=e.when;if(this._isTargetedForRemoval(n,e.chords,t)){o=!0;break}}o||i.push(n)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let s=i.length-1;s>=0;s--){const e=i[s];if(e.command===t.command)continue;let n=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){n=!1;break}n&&(Mt.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,s=t.length;i<s;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ie.M0)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let s=i.length-1;s>=0;s--){const e=i[s];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const s=[...t,i];this._log(`| Resolving ${s}`);const n=this._map.get(s[0]);if(void 0===n)return this._log("\\ No keybinding entries."),Ot;let r=null;if(s.length<2)r=n;else{r=[];for(let e=0,t=n.length;e<t;e++){const t=n[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)}}const o=this._findCommand(e,r);return o?s.length<o.chords.length?(this._log(`\\ From ${r.length} keybinding entries, awaiting ${o.chords.length-s.length} more chord(s), when: ${Pt(o.when)}, source: ${Ft(o)}.`),Dt):(this._log(`\\ From ${r.length} keybinding entries, matched ${o.command}, when: ${Pt(o.when)}, source: ${Ft(o)}.`),a=o.command,c=o.commandArgs,l=o.bubble,{kind:2,commandId:a,commandArgs:c,isBubble:l}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ot);var a,c,l}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const s=t[i];if(Mt._contextMatchesRules(e,s.when))return s}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function Pt(e){return e?`${e.serialize()}`:"no when condition"}function Ft(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const Ut=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class Ht extends c.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Q.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,s,n){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=n,this._onDidUpdateKeybindings=this._register(new Q.vl),this._currentChords=[],this._currentChordChecker=new m.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new m.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),Ot;const[s]=i.getDispatchChords();if(null===s)return this._log("\\ Keyboard event cannot be dispatched"),Ot;const n=this._contextKeyService.getContext(t),r=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(n,r,s)}_scheduleLeaveChordMode(){const 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,v.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(b.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(b.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),It.M.enabled&&It.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],It.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[s]=i.getSingleModifierDispatchChords();if(s)return this._ignoreSingleModifiers.has(s)?(this._log(`+ Ignoring single modifier ${s} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Bt.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${s}.`),this._currentSingleModifier=s,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):s===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${s} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[n]=i.getChords();return this._ignoreSingleModifiers=new Bt(n),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 s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let n=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();n=t,r=t?[t]:[]}else[n]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===n)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const o=this._contextKeyService.getContext(t),a=e.getLabel(),c=this._getResolver().resolve(o,r,n);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",a,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",a,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(n,a),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",a,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId||""===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(s=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{"undefined"===typeof c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}Ut.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:e.getUserSettingsLabel()??void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class Bt{static{this.EMPTY=new Bt(null)}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}}}var Wt=i(59261);class Vt{constructor(e,t,i,s,n,r,o){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?zt(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=zt(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=s,this.isDefault=n,this.extensionId=r,this.isBuiltinExtension=o}}function zt(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s)return[];t.push(s)}return t}var Gt=i(24939),jt=i(83619);class Kt extends ft.z5{constructor(e,t){if(super(),0===t.length)throw(0,v.Qg)("chords");this._os=e,this._chords=t}getLabel(){return jt.Of.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return jt.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:jt.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return jt.G$.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 ft.FW(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 Yt extends Kt{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Gt.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Gt.YM.toString(e.keyCode)}_getElectronAccelerator(e){return Gt.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=Gt.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Yt.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+=Gt.YM.toString(e.keyCode),t}_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){const t=Gt.Fo[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:return 0;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 ft.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=zt(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Yt(i,t)]:[]}}var qt=i(67841),$t=i(73823),Qt=i(90651),Xt=i(37227),Zt=i(51861),Jt=i(89403),ei=i(51465),ti=i(17890),ii=i(36921),si=i(57629),ni=i(27195),ri=i(47358),oi=i(60413),ai=i(25154),ci=i(11799),li=i(5646),hi=i(31295),di=i(10350),ui=i(18956),gi=i(25689),pi=i(37882);const mi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,fi=/(&)?(&)([^\s&])/g;var _i,vi;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(_i||(_i={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(vi||(vi={}));class Ci extends ci.E{constructor(e,t,i,s){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...We.zx||We.j9?[10]:[]],keyDown:!0}}),this.menuStyles=s,this.menuElement=n,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,s),this._register(ai.q.addTarget(n)),this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){U.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof bi&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),We.j9&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),U.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),U.fs.stop(e,!0))}))),this._register((0,U.ko)(this.domNode,U.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,U.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,U.ko)(this.actionsList,U.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(ai.q.addTarget(this.actionsList)),this._register((0,U.ko)(this.actionsList,ai.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new hi.MU(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,s),this._register((0,U.ko)(n,ai.B.Change,(e=>{U.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,U.ko)(o,U.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,U.zk)(e);n.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,s)=>{if(i.submenuIds?.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof ii.wv){if(s===t.length-1||0===s)return!1;if(t[s-1]instanceof ii.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Si))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,U.Cl)(e)?this.styleSheet=(0,U.li)(e):(Ci.globalStyleSheet||(Ci.globalStyleSheet=(0,U.li)()),this.styleSheet=Ci.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${yi(di.W.menuSelection)}\n${yi(di.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderHoverBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const r=e.scrollbarSliderActiveBackground;r&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${r};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,U.Cl)(e))}styleScrollElement(e,t){const i=t.foregroundColor??"",s=t.backgroundColor??"",n=t.borderColor?`1px solid ${t.borderColor}`:"",r=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=n,e.style.borderRadius="5px",e.style.color=i,e.style.backgroundColor=s,e.style.boxShadow=r}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof ii.wv)return new Si(t.context,e,{icon:!0},this.menuStyles);if(e instanceof ii.YH){const s=new bi(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const s=t.getKeyBinding(e);if(s){const e=s.getLabel();e&&(i.keybinding=e)}}const s=new Ei(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}}}class Ei extends li.EH{constructor(e,t,i,s){if(i.isMenu=!0,super(t,t,i),this.menuStyle=s,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=mi.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new m.uC((()=>{this.element&&(this._register((0,U.ko)(this.element,U.Bx.MOUSE_UP,(e=>{if(U.fs.stop(e,!0),oi.gm){if(new ri.P((0,U.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,U.ko)(this.element,U.Bx.CONTEXT_MENU,(e=>{U.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,U.BC)(this.element,(0,U.$)("a.action-menu-item")),this._action.id===ii.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,U.BC)(this.item,(0,U.$)("span.menu-item-check"+gi.L.asCSSSelector(di.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,U.BC)(this.item,(0,U.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,U.BC)(this.item,(0,U.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item?.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){(0,U.w_)(this.label);let e=(0,pi.pS)(this.action.label);if(e){const t=function(e){const t=mi,i=t.exec(e);if(!i)return e;const s=!i[1];return e.replace(t,s?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=mi.exec(e);if(i){e=l.ih(e),fi.lastIndex=0;let t=fi.exec(e);for(;t&&t[1];)t=fi.exec(e);const s=e=>e.replace(/&&/g,"&");t?this.label.append(l.NB(s(e.substr(0,t.index))," "),(0,U.$)("u",{"aria-hidden":"true"},t[3]),l.BO(s(e.substr(t.index+t[0].length))," ")):this.label.innerText=s(e).trim(),this.item?.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,s=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",n=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=i??"",this.item.style.outline=s,this.item.style.outlineOffset=n),this.check&&(this.check.style.color=t??"")}}class bi extends Ei{constructor(e,t,i,s,n){super(e,e,s,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=s,this.mysubmenu=null,this.submenuDisposables=this._register(new c.Cm),this.mouseOver=!1,this.expandDirection=s&&void 0!==s.expandDirection?s.expandDirection:{horizontal:_i.Right,vertical:vi.Below},this.showScheduler=new m.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new m.uC((()=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,U.BC)(this.item,(0,U.$)("span.submenu-indicator"+gi.L.asCSSSelector(di.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,U.ko)(this.element,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);(t.equals(17)||t.equals(3))&&(U.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,U.ko)(this.element,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);(0,U.bq)()===this.item&&(t.equals(17)||t.equals(3))&&U.fs.stop(e,!0)}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,U.ko)(this.element,U.Bx.FOCUS_OUT,(e=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){U.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,s){const n={top:0,left:0};return n.left=et(e.width,t.width,{position:s.horizontal===_i.Right?0:1,offset:i.left,size:i.width}),n.left>=i.left&&n.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(n.left=i.left+10),i.top+=10,i.height=0),n.top=et(e.height,t.height,{position:0,offset:i.top,size:0}),n.top+t.height===i.top&&n.top+i.height+t.height<=e.height&&(n.top+=i.height),n}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,U.BC)(this.element,(0,U.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,U.zk)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Ci(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new ii.HJ],this.submenuOptions,this.menuStyle);const s=this.element.getBoundingClientRect(),n={top:s.top-i,left:s.left,height:s.height+2*i,width:s.width},r=this.submenuContainer.getBoundingClientRect(),o=(0,U.zk)(this.element),{top:a,left:c}=this.calculateSubmenuMenuLayout(new U.fg(o.innerWidth,o.innerHeight),U.fg.lift(r),n,this.expandDirection);this.submenuContainer.style.left=c-r.left+"px",this.submenuContainer.style.top=a-r.top+"px",this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_UP,(e=>{new Xe.Z(e).equals(15)&&(U.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(15)&&U.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){this.item&&this.item?.setAttribute("aria-expanded",e)}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Si extends li.Z4{constructor(e,t,i,s){super(e,t,i),this.menuStyles=s}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function yi(e){const t=(0,ui.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var wi=i(19070);class Ri{constructor(e,t,i,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=s,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,U.bq)();const s=(0,U.sb)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{this.lastContainer=s;const n=e.getMenuClassName?e.getMenuClassName():"";n&&(s.className+=" "+n),this.options.blockMouse&&(this.block=s.appendChild((0,U.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",this.blockDisposable?.dispose(),this.blockDisposable=(0,U.ko)(this.block,U.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new c.Cm,o=e.actionRunner||new ii.LN;o.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),o.onDidRun(this.onDidActionRun,this,r),i=new Ci(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:o,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},wi.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const a=(0,U.zk)(s);return r.add((0,U.ko)(a,U.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,U.ko)(a,U.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ri.P(a,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===s)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,c.qE)(r,i)},focus:()=>{i?.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide?.(!!t),this.block&&(this.block.remove(),this.block=null),this.blockDisposable?.dispose(),this.blockDisposable=null,this.lastContainer&&((0,U.bq)()===this.lastContainer||(0,U.QX)((0,U.bq)(),this.lastContainer))&&this.focusToReturn?.focus(),this.lastContainer=null}},s,!!s)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,v.MB)(e.error)&&this.notificationService.error(e.error)}}var Li=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ti=function(e,t){return function(i,s){t(i,s,e)}};let xi=class extends c.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Ri(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,s,n,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=s,this.menuService=n,this.contextKeyService=r,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Q.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Q.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=ki.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{e.onHide?.(t),this._onDidHideContextMenu.fire()}}),U.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var ki;xi=Li([Ti(0,Qt.k),Ti(1,me.Ot),Ti(2,Oe.l),Ti(3,De.b),Ti(4,ni.ez),Ti(5,ie.fN)],xi),function(e){e.transform=function(e,t,i){if(!((s=e)&&s.menuId instanceof ni.D8))return e;var s;const{menuId:n,menuActionOptions:r,contextKeyService:o}=e;return{...e,getActions:()=>{const s=[];if(n){const e=t.getMenuActions(n,o??i,r);(0,si.$u)(e,s)}return e.getActions?ii.wv.join(e.getActions(),s):s}}}}(ki||(ki={}));var Ai,Ni=i(908);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Ai||(Ai={}));var Ii=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Oi=function(e,t){return function(i,s){t(i,s,e)}};let Di=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,C.v$)(e,C.ny.command))return!1;if(!t?.allowCommands)return!0;if("string"===typeof e&&(e=h.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,Ni.qg)(decodeURIComponent(e.query))}catch{try{i=(0,Ni.qg)(e.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Di=Ii([Oi(0,St.d)],Di);let Mi=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.r.parse(e));const{selection:i,uri:s}=(0,Ue.e)(e);return(e=s).scheme===C.ny.file&&(e=(0,Jt.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t?.fromUserGesture?Ai.USER:Ai.API,...t?.editorOptions}},this._editorService.getFocusedCodeEditor(),t?.openToSide),!0}};Mi=Ii([Oi(0,g.T)],Mi);let Pi=class{constructor(e,t){this._openers=new X.w,this._validators=new X.w,this._resolvers=new X.w,this._resolvedUriTargets=new yt.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new X.w,this._defaultExternalOpener={openExternal:async e=>((0,C.fV)(e,C.ny.http,C.ny.https)?U.CE(e):a.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!t?.openExternal&&!(0,C.fV)(e,C.ny.mailto,C.ny.http,C.ny.https,C.ny.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Di(t)),this._openers.push(new Mi(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){const i="string"===typeof e?h.r.parse(e):e,s=this._resolvedUriTargets.get(i)??e;for(const n of this._validators)if(!await n.shouldOpen(s,t))return!1;for(const n of this._openers){if(await n.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const s=await i.resolveExternalUri(e,t);if(s)return this._resolvedUriTargets.has(s.resolved)||this._resolvedUriTargets.set(s.resolved,e),s}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.r.parse(e):e;let s,n;try{s=(await this.resolveExternalUri(i,t)).resolved}catch{s=i}if(n="string"===typeof e&&i.toString()===s.toString()?e:encodeURI(s.toString(!0)),t?.allowContributedOpeners){const e="string"===typeof t?.allowContributedOpeners?t?.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(n,{sourceUri:i,preferredOpenerId:e},at.XO.None))return!0}}return this._defaultExternalOpener.openExternal(n,{sourceUri:i},at.XO.None)}dispose(){this._validators.clear()}};Pi=Ii([Oi(0,g.T),Oi(1,St.d)],Pi);var Fi=i(10920),Ui=i(10154),Hi=i(30707),Bi=i(37550),Wi=i(16363),Vi=i(71597),zi=i(51467),Gi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ji=function(e,t){return function(i,s){t(i,s,e)}};let Ki=class extends c.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Rt.O.as(Vi.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){const[s,n]=this.getOrInstantiateProvider(e,i?.enabledProviderPrefixes),r=this.visibleQuickAccess,o=r?.descriptor;if(r&&n&&o===n)return e===n.prefix||i?.preserveValue||(r.picker.value=e),void this.adjustValueSelection(r.picker,n,i);if(n&&!i?.preserveValue){let t;if(r&&o&&o!==n){const e=r.value.substr(o.prefix.length);e&&(t=`${n.prefix}${e}`)}if(!t){const e=s?.defaultFilterValue;e===Vi.aJ.LAST?t=this.lastAcceptedPickerValues.get(n):"string"===typeof e&&(t=`${n.prefix}${e}`)}"string"===typeof t&&(e=t)}const a=r?.picker?.valueSelection,l=r?.picker?.value,h=new c.Cm,d=h.add(this.quickInputService.createQuickPick({useSeparators:!0}));let u;d.value=e,this.adjustValueSelection(d,n,i),d.placeholder=i?.placeholder??n?.placeholder,d.quickNavigate=i?.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!r,("number"===typeof i?.itemActivation||i?.quickNavigateConfiguration)&&(d.itemActivation=i?.itemActivation??zi.C1.SECOND),d.contextKey=n?.contextKey,d.filterValue=e=>e.substring(n?n.prefix.length:0),t&&(u=new m.Zv,h.add(Q.Jh.once(d.onWillAccept)((e=>{e.veto(),d.hide()})))),h.add(this.registerPickerListeners(d,s,n,e,i));const g=h.add(new at.Qi);return s&&h.add(s.provide(d,g.token,i?.providerOptions)),Q.Jh.once(d.onDidHide)((()=>{0===d.selectedItems.length&&g.cancel(),h.dispose(),u?.complete(d.selectedItems.slice(0))})),d.show(),a&&l===e&&(d.valueSelection=a),t?u?.p:void 0}adjustValueSelection(e,t,i){let s;s=i?.preserveValue?[e.value.length,e.value.length]:[t?.prefix.length??0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,s,n){const r=new c.Cm,o=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return r.add((0,c.s)((()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e,n?.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:n?.enabledProviderPrefixes,preserveValue:!0,providerOptions:n?.providerOptions}):o.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let s=this.mapProviderToDescriptor.get(i);return s||(s=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,s)),[s,i]}};Ki=Gi([ji(0,zi.GK),ji(1,ae._Y)],Ki);var Yi=i(35315),qi=i(56245),$i=i(20370),Qi=i(96032),Xi=i(58694),Zi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ji{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}Zi([Xi.B],Ji.prototype,"toString",null);const es=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ts={},is=new Qi.n("quick-input-button-icon-");function ss(e,t,i){let s=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ts[i]?t=ts[i]:(t=is.nextId(),U.Wt(`.${t}, .hc-light .${t}`,`background-image: ${U.Tf(e.light||e.dark)}`),U.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${U.Tf(e.dark)}`),ts[i]=t),t}(e.iconPath);return e.alwaysVisible&&(s=s?`${s} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:s,enabled:!0,run:i}}function ns(e,t,i){U.Ln(t);const s=function(e){const t=[];let i,s=0;for(;i=es.exec(e);){i.index-s>0&&t.push(e.substring(s,i.index));const[,n,r,,o]=i;o?t.push({label:n,href:r,title:o}):t.push({label:n,href:r}),s=i.index+i[0].length}return s<e.length&&t.push(e.substring(s)),new Ji(t)}(e);let n=0;for(const r of s.nodes)if("string"===typeof r)t.append(...(0,$i.n)(r));else{let e=r.title;!e&&r.href.startsWith("command:")?e=(0,b.kg)("executeCommand","Click to execute command '{0}'",r.href.substring(8)):e||(e=r.href);const s=U.$("a",{href:r.href,title:e,tabIndex:n++},r.label);s.style.textDecoration="underline";const o=e=>{U.sd(e)&&U.fs.stop(e,!0),i.callback(r.href)},a=i.disposables.add(new qi.f(s,U.Bx.CLICK)).event,c=i.disposables.add(new qi.f(s,U.Bx.KEY_DOWN)).event,l=Q.Jh.chain(c,(e=>e.filter((e=>{const t=new Xe.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(ai.q.addTarget(s));const h=i.disposables.add(new qi.f(s,ai.B.Tap)).event;Q.Jh.any(a,h,l)(o,null,i.disposables),t.appendChild(s)}}var rs=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},os=function(e,t){return function(i,s){t(i,s,e)}};const as="inQuickInput",cs=new ie.N1(as,!1,(0,b.kg)("inQuickInput","Whether keyboard focus is inside the quick input control")),ls=ie.M$.has(as),hs="quickInputType",ds=new ie.N1(hs,void 0,(0,b.kg)("quickInputType","The type of the currently visible quick input")),us="cursorAtEndOfQuickInputBox",gs=new ie.N1(us,!1,(0,b.kg)("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),ps=ie.M$.has(us),ms={iconClass:gi.L.asClassName(di.W.quickInputBack),tooltip:(0,b.kg)("quickInput.back","Back"),handle:-1};class fs extends c.jG{static{this.noPromptMessage=(0,b.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel")}constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=fs.noPromptMessage,this._severity=ge.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.onDidHideEmitter=this._register(new Q.vl),this.onWillHideEmitter=this._register(new Q.vl),this.onDisposeEmitter=this._register(new Q.vl),this.visibleDisposables=this._register(new c.Cm),this.onDidHide=this.onDidHideEmitter.event}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){const t=this._ignoreFocusOut!==e&&!We.un;this._ignoreFocusOut=e&&!We.un,t&&this.update()}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons]}set buttons(e){this._leftButtons=e.filter((e=>e===ms)),this._rightButtons=e.filter((e=>e!==ms&&e.location!==zi.dH.Inline)),this._inlineButtons=e.filter((e=>e.location===zi.dH.Inline)),this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=e??[],this.togglesUpdated=!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=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=zi.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=zi.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const 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._widgetUpdated&&(this._widgetUpdated=!1,this._widget?U.Ln(this.ui.widget,this._widget):U.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new m.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this._leftButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this._rightButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1}),this.ui.inlineActionBar.clear();const i=this._inlineButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.inlineActionBar.push(i,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const e=this.toggles?.filter((e=>e instanceof Yi.l))??[];this.ui.inputBox.toggles=e}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,U.Ln(this.ui.message),ns(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,b.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ge.A.Ignore){const 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()}}class _s extends fs{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Q.vl),this.onWillAcceptEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),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=zi.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Q.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Q.vl),this.onDidTriggerItemButtonEmitter=this._register(new Q.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new Q.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new Q.at,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}static{this.DEFAULT_ARIA_LABEL=(0,b.kg)("quickInputBox.ariaLabel","Type to narrow down results.")}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){if(this._value!==e){if(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 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?zi.Ym:this.ui.keyMods}get valueSelection(){const 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 ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(zi.Fp.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,E.aI)(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})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(U.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&this.visible&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(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 U.ko(this.ui.container,U.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Xe.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const s=e.getChords();return!(s.length>1)&&(s[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!s[0].altKey||6!==i)||(!(!s[0].ctrlKey||5!==i)||!(!s[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;const 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,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 s=this.ariaLabel;!s&&i.inputBox&&(s=this.placeholder||_s.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=s??null),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 zi.C1.NONE:this._itemActivation=zi.C1.FIRST;break;case zi.C1.SECOND:this.ui.list.focus(zi.Fp.Second),this._itemActivation=zi.C1.FIRST;break;case zi.C1.LAST:this.ui.list.focus(zi.Fp.Last),this._itemActivation=zi.C1.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.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(zi.Fp.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._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(e??!1))}}class vs extends fs{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),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 placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,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()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const 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 Cs=class extends Ie.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(U.sb(e.content)?e.content.textContent??"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Cs=rs([os(0,Me.pG),os(1,Ie.TN)],Cs);var Es=i(62890),bs=i(3828);const Ss="done",ys="active",ws="infinite",Rs="infinite-long-running",Ls="discrete";class Ts extends c.jG{static{this.LONG_RUNNING_INFINITE_THRESHOLD=1e4}constructor(e,t){super(),this.progressSignal=this._register(new c.HE),this.workedVal=0,this.showDelayedScheduler=this._register(new m.uC((()=>(0,U.WU)(this.element)),0)),this.longRunningScheduler=this._register(new m.uC((()=>this.infiniteLongRunning()),Ts.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"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=t?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(ys,ws,Rs,Ls),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(Ss),this.element.classList.contains(ws)?(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(Ls,Ss,Rs),this.element.classList.add(ys,ws),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Rs)}getContainer(){return this.element}}var xs=i(88443);const ks=U.$;class As extends c.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>U.b2(this.findInput.inputBox.inputElement,U.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=U.BC(this.parent,ks(".quick-input-box")),this.findInput=this._register(new xs.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const s=this.findInput.inputBox.inputElement;s.role="combobox",s.ariaHasPopup="menu",s.ariaAutoComplete="list",s.ariaExpanded="true"}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)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ge.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ge.A.Info?1:e===ge.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ge.A.Info?1:e===ge.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Ns=i(36584),Is=i(21852),Os=i(47625),Ds=i(86723),Ms=i(91090);const Ps=new Ms.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function Fs(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=function(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=s.startsWith(i),o=n.startsWith(i);if(r!==o)return r?-1:1;if(r&&o){if(s.length<n.length)return-1;if(s.length>n.length)return 1}return 0}(e,t,i);if(r)return r;const o=s.endsWith(i);if(o!==n.endsWith(i))return o?-1:1;const a=function(e,t){const i=e||"",s=t||"",n=Ps.value.collator.compare(i,s);return Ps.value.collatorIsNumeric&&0===n&&i!==s?i<s?-1:1:n}(s,n);return 0!==a?a:s.localeCompare(n)}var Us,Hs=i(19466),Bs=i(31308),Ws=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Vs=function(e,t){return function(i,s){t(i,s,e)}};const zs=U.$;class Gs{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new Ms.d((()=>{const e=i.label??"",t=(0,pi._k)(e).text.trim(),s=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map((e=>(0,pi.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:s}})),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 js extends Gs{constructor(e,t,i,s,n,r){super(e,t,n),this.fireButtonTriggered=i,this._onChecked=s,this.item=n,this._separator=r,this._checked=!1,this.onChecked=t?Q.Jh.map(Q.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):Q.Jh.None,this._saneDetail=n.detail,this._labelHighlights=n.highlights?.label,this._descriptionHighlights=n.highlights?.description,this._detailHighlights=n.highlights?.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}}var Ks;!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(Ks||(Ks={}));class Ys extends Gs{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ks.NONE}}class qs{getHeight(e){return e instanceof Ys?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof js?Xs.ID:Zs.ID}}class $s{getWidgetAriaLabel(){return(0,b.kg)("quickInput","Quick Input")}getAriaLabel(e){return 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 js)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class Qs{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new c.Cm,t.toDisposeTemplate=new c.Cm,t.entry=U.BC(e,zs(".quick-input-list-entry"));const i=U.BC(t.entry,zs("label.quick-input-list-label"));t.toDisposeTemplate.add(U.b2(i,U.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=U.BC(i,zs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const s=U.BC(i,zs(".quick-input-list-rows")),n=U.BC(s,zs(".quick-input-list-row")),r=U.BC(s,zs(".quick-input-list-row"));t.label=new Is.s(n,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=U.Hs(t.label.element,zs(".quick-input-list-icon"));const o=U.BC(n,zs(".quick-input-list-entry-keybinding"));t.keybinding=new Os.x(o,We.OS),t.toDisposeTemplate.add(t.keybinding);const a=U.BC(r,zs(".quick-input-list-label-meta"));return t.detail=new Is.s(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=U.BC(t.entry,zs(".quick-input-list-separator")),t.actionBar=new ci.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Xs=class extends Qs{static{Us=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Us.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(U.b2(t.checkbox,U.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0;const n=s.item;i.checkbox.checked=s.checked,i.toDisposeElement.add(s.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=s.checkboxDisabled;const{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;if(n.iconPath){const e=(0,Ds.HD)(this.themeService.getColorTheme().type)?n.iconPath.dark:n.iconPath.light??n.iconPath.dark,t=h.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=U.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=n.iconClass?`quick-input-list-icon ${n.iconClass}`:"";let c;!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(l.extraClasses=n.iconClasses,l.italic=n.italic,l.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),i.keybinding.set(n.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";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);const d=n.buttons;d&&d.length?(i.actionBar.push(d.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireButtonTriggered({button:e,item:s.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):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){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Xs=Us=Ws([Vs(1,Z.Gy)],Xs);class Zs extends Qs{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return Zs.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderTemplate(e){const t=super.renderTemplate(e);return t.checkbox.style.display="none",t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const n=s.separator,{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;let c;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=n.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||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){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}let Js=class extends c.jG{constructor(e,t,i,s,n,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new Q.vl,this._onLeave=new Q.vl,this.onLeave=this._onLeave.event,this._visibleCountObservable=(0,Bs.FY)("VisibleCount",0),this.onChangedVisibleCount=Q.Jh.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=(0,Bs.FY)("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=Q.Jh.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=(0,Bs.FY)("CheckedCount",0),this.onChangedCheckedCount=Q.Jh.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=(0,Bs.Zh)({equalsFn:E.aI},new Array),this.onChangedCheckedElements=Q.Jh.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new Q.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Q.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new Q.vl,this._elementCheckedEventBufferer=new Q.at,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new c.Cm),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=U.BC(this.parent,zs(".quick-input-list")),this._separatorRenderer=new Zs(t),this._itemRenderer=n.createInstance(Xs,t),this._tree=this._register(n.createInstance(Ns.zL,"QuickInput",this._container,new qs,[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Ys?2:1},sorter:{compare:(e,t)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;return function(e,t,i){const s=e.labelHighlights||[],n=t.labelHighlights||[];if(s.length&&!n.length)return-1;if(!s.length&&n.length)return 1;if(0===s.length&&0===n.length)return 0;return Fs(e.saneSortLabel,t.saneSortLabel,i)}(e,t,this._lastQueryString.toLowerCase())}},accessibilityProvider:new $s,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:Hs.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=s,this._registerListeners()}get onDidChangeFocus(){return Q.Jh.map(this._tree.onDidChangeFocus,(e=>e.elements.filter((e=>e instanceof js)).map((e=>e.item))),this._store)}get onDidChangeSelection(){return Q.Jh.map(this._tree.onDidChangeSelection,(e=>({items:e.elements.filter((e=>e instanceof js)).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??""}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._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Xe.Z(e);if(10===t.keyCode)this.toggleCheckbox();this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(U.ko(this._container,U.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(U.ko(this._container,U.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel((()=>{const 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(){const e=this._register(new m.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{if(U.nY(t.browserEvent.target))e.cancel();else if(U.nY(t.browserEvent.relatedTarget)||!U.QX(t.browserEvent.relatedTarget,t.element?.element))try{await e.trigger((async()=>{t.element instanceof js&&this.showHover(t.element)}))}catch(t){if(!(0,v.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{U.QX(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&Ks.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=Ks.ACTIVE_ITEM:i.focusInsideSeparator&=~Ks.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)||(i.focusInsideSeparator|=Ks.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)&&(i.focusInsideSeparator&=~Ks.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof js));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Ys&&(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||(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=new Array,this._elementTree=e.reduce(((i,s,n)=>{let r;if("separator"===s.type){if(!s.buttons)return i;t=new Ys(n,(e=>this._onSeparatorButtonTriggered.fire(e)),s),r=t}else{const o=n>0?e[n-1]:void 0;let a;o&&"separator"===o.type&&!o.buttons&&(t=void 0,a=o);const c=new js(n,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,s,a);if(this._itemElements.push(c),t)return t.children.push(c),i;r=c}return i.push(r),i}),new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout((()=>{const e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e?.parentNode;if(e&&t){const i=e.nextSibling;e.remove(),t.insertBefore(e,i)}}),0)}setFocusedElements(e){const 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){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const 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((()=>{const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}))}focus(e){if(this._itemElements.length)switch(e===zi.Fp.Second&&this._itemElements.length<2&&(e=zi.Fp.First),e){case zi.Fp.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof js));break;case zi.Fp.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,(t=>t.element instanceof js&&(!!e||(e=!e,!1))));break}case zi.Fp.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js));break;case zi.Fp.Next:{const e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case zi.Fp.Previous:{const e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case zi.Fp.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));break;case zi.Fp.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof js))return!1;const 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 zi.Fp.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof Ys)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 js){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;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 js)));break}case zi.Fp.PreviousSeparator:{let e,t=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,(i=>{if(i.element instanceof Ys)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 js&&!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]);break}}}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;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach((s=>{let n;n="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,pi.pz)(e,(0,pi._k)(s.saneLabel))??void 0:void 0:this.matchOnLabel?function(e,t){const{text:i,iconOffsets:s}=t;if(!s||0===s.length)return en(e,i);const n=(0,l.NB)(i," "),r=i.length-n.length,o=en(e,n);if(o)for(const a of o){const e=s[a.start+r]+r;a.start+=e,a.end+=e}return o}(t,(0,pi._k)(s.saneLabel))??void 0:void 0;const r=this.matchOnDescription?(0,pi.pz)(e,(0,pi._k)(s.saneDescription||""))??void 0:void 0,o=this.matchOnDetail?(0,pi.pz)(e,(0,pi._k)(s.saneDetail||""))??void 0:void 0;if(n||r||o?(s.labelHighlights=n,s.descriptionHighlights=r,s.detailHighlights=o,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item||!s.item.alwaysShow),s.item?s.separator=void 0:s.separator&&(s.hidden=!0),!this.sortByLabel){const e=s.index&&this._inputElements[s.index-1]||void 0;"separator"!==e?.type||e.buttons||(i=e),i&&!s.hidden&&(s.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;const 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((()=>{const e=this._tree.getFocus().filter((e=>e instanceof js)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}))}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof js))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new c.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof js&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){const t=new Array;for(const i of e)i instanceof Ys?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,s=e.length;i<s;i++){const s=e[i];if(!s.hidden){if(!s.checked)return!1;t=!0}}return t}_updateCheckedObservables(){(0,Bs.Rn)((e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);const t=this._itemElements.filter((e=>e.checked)).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)}))}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),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 en(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Ws([Xi.B],Js.prototype,"onDidChangeFocus",null),Ws([Xi.B],Js.prototype,"onDidChangeSelection",null),Js=Ws([Vs(4,ae._Y),Vs(5,Ve.j)],Js);var tn=i(28290);const sn={weight:200,when:ie.M$.and(ie.M$.equals(hs,"quickPick"),ls),metadata:{description:(0,b.kg)("quickPick","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.")}};function nn(e,t={}){Wt.f.registerCommandAndKeybindingRule({...sn,...e,secondary:on(e.primary,e.secondary??[],t)})}const rn=We.zx?256:2048;function on(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(rn+e),i.withAltMod&&t.push(512+rn+e)),i.withCmdMod&&We.zx&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t}function an(e,t){return i=>{const s=i.get(zi.GK).currentQuickInput;if(s)return t&&s.quickNavigate?s.focus(t):s.focus(e)}}nn({id:"quickInput.pageNext",primary:12,handler:an(zi.Fp.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.pagePrevious",primary:11,handler:an(zi.Fp.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.first",primary:rn+14,handler:an(zi.Fp.First)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.last",primary:rn+13,handler:an(zi.Fp.Last)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.next",primary:18,handler:an(zi.Fp.Next)},{withCtrlMod:!0}),nn({id:"quickInput.previous",primary:16,handler:an(zi.Fp.Previous)},{withCtrlMod:!0});const cn=(0,b.kg)("quickInput.nextSeparatorWithQuickAccessFallback","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."),ln=(0,b.kg)("quickInput.previousSeparatorWithQuickAccessFallback","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.");We.zx?(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:an(zi.Fp.NextSeparator)},{withCtrlMod:!0}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:an(zi.Fp.PreviousSeparator)},{withCtrlMod:!0})):(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,handler:an(zi.Fp.NextSeparator)}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,handler:an(zi.Fp.PreviousSeparator)})),nn({id:"quickInput.acceptInBackground",when:ie.M$.and(sn.when,ie.M$.or(tn.J7.negate(),ps)),primary:17,weight:250,handler:e=>{const t=e.get(zi.GK).currentQuickInput;t?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var hn,dn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},un=function(e,t){return function(i,s){t(i,s,e)}};const gn=U.$;let pn=class extends c.jG{static{hn=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,s){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=s,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Q.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Q.vl),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=cs.bindTo(this.contextKeyService),this.quickInputTypeContext=ds.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=gs.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:a.G,disposables:this._store})),this._register(U.q3((e=>{this.ui&&U.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const s of[U.Bx.KEY_DOWN,U.Bx.KEY_UP,U.Bx.MOUSE_DOWN])t.add(U.ko(e,s,i,!0))}getUI(e){if(this.ui)return e&&U.zk(this._container)!==U.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=U.BC(this._container,gn(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=U.li(t),s=U.BC(t,gn(".quick-input-titlebar")),n=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));n.domNode.classList.add("quick-input-left-action-bar");const r=U.BC(s,gn(".quick-input-title")),o=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-right-action-bar");const a=U.BC(t,gn(".quick-input-header")),c=U.BC(a,gn("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",(0,b.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(U.b2(c,U.Bx.CHANGE,(e=>{const t=c.checked;x.setAllVisibleChecked(t)}))),this._register(U.ko(c,U.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const l=U.BC(a,gn(".quick-input-description")),h=U.BC(a,gn(".quick-input-and-message")),d=U.BC(h,gn(".quick-input-filter")),u=this._register(new As(d,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U.BC(d,gn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new bs.x(g,{countFormat:(0,b.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=U.BC(d,gn(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new bs.x(m,{countFormat:(0,b.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=this._register(new ci.E(a,{hoverDelegate:this.options.hoverDelegate}));_.domNode.classList.add("quick-input-inline-action-bar");const v=U.BC(a,gn(".quick-input-action")),C=this._register(new Es.$(v,this.styles.button));C.label=(0,b.kg)("ok","OK"),this._register(C.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const E=U.BC(a,gn(".quick-input-action")),S=this._register(new Es.$(E,{...this.styles.button,supportIcons:!0}));S.label=(0,b.kg)("custom","Custom"),this._register(S.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=U.BC(h,gn(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new Ts(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const R=U.BC(t,gn(".quick-input-html-widget"));R.tabIndex=-1;const L=U.BC(t,gn(".quick-input-description")),T=this.idPrefix+"list",x=this._register(this.instantiationService.createInstance(Js,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,T));u.setAttribute("aria-controls",T),this._register(x.onDidChangeFocus((()=>{u.setAttribute("aria-activedescendant",x.getActiveDescendant()??"")}))),this._register(x.onChangedAllVisibleChecked((e=>{c.checked=e}))),this._register(x.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(x.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(x.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof _s&&this.controller.canSelectMany&&x.clearFocus())}),0)})));const k=U.w5(t);return this._register(k),this._register(U.ko(t,U.Bx.FOCUS,(e=>{const t=this.getUI();if(U.QX(e.relatedTarget,t.inputContainer)){const e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e)}U.QX(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=U.sb(e.relatedTarget)?e.relatedTarget:void 0)}),!0)),this._register(k.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(zi.kF.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0}))),this._register(u.onKeyDown((e=>{const t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t)}))),this._register(U.ko(t,U.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(U.b2(t,U.Bx.KEY_DOWN,(e=>{if(!U.QX(e.target,R))switch(e.keyCode){case 3:U.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:U.fs.stop(e,!0),this.hide(zi.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.displayed&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(U.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const s=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===s[0]?(U.fs.stop(e,!0),x.clearFocus()):!e.shiftKey&&U.QX(e.target,s[s.length-1])&&(U.fs.stop(e,!0),s[0].focus())}break;case 10:e.ctrlKey&&(U.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:n,titleBar:s,title:r,description1:L,description2:l,widget:R,rightActionBar:o,inlineActionBar:_,checkAll:c,inputContainer:h,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:C,message:y,customButtonContainer:E,customButton:S,list:x,progressBar:w,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){this.ui&&(this._container=e,U.BC(this._container,this.ui.container))}pick(e,t={},i=at.XO.None){return new Promise(((s,n)=>{let r=e=>{r=s,t.onKeyMods?.(o.keyMods),s(e)};if(i.isCancellationRequested)return void r(void 0);const o=this.createQuickPick({useSeparators:!0});let a;const l=[o,o.onDidAccept((()=>{if(o.canSelectMany)r(o.selectedItems.slice()),o.hide();else{const e=o.activeItems[0];e&&(r(e),o.hide())}})),o.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),o.onDidChangeSelection((e=>{if(!o.canSelectMany){const t=e[0];t&&(r(t),o.hide())}})),o.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=o.items.indexOf(e.item);if(-1!==t){const e=o.items.slice(),i=e.splice(t,1),s=o.activeItems.filter((e=>e!==i[0])),n=o.keepScrollPosition;o.keepScrollPosition=!0,o.items=e,s&&(o.activeItems=s),o.keepScrollPosition=n}}}))),o.onDidTriggerSeparatorButton((e=>t.onDidTriggerSeparatorButton?.(e))),o.onDidChangeValue((e=>{!a||e||1===o.activeItems.length&&o.activeItems[0]===a||(o.activeItems=[a])})),i.onCancellationRequested((()=>{o.hide()})),o.onDidHide((()=>{(0,c.AS)(l),r(void 0)}))];o.title=t.title,t.value&&(o.value=t.value),o.canSelectMany=!!t.canPickMany,o.placeholder=t.placeHolder,o.ignoreFocusOut=!!t.ignoreFocusLost,o.matchOnDescription=!!t.matchOnDescription,o.matchOnDetail=!!t.matchOnDetail,o.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,o.quickNavigate=t.quickNavigate,o.hideInput=!!t.hideInput,o.contextKey=t.contextKey,o.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,o.busy=!1,o.items=e,o.canSelectMany&&(o.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(o.activeItems=[a])})),o.show(),Promise.resolve(e).then(void 0,(e=>{n(e),o.hide()}))}))}createQuickPick(e={useSeparators:!1}){const t=this.getUI(!0);return new _s(t)}createInputBox(){const e=this.getUI(!0);return new vs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",U.Ln(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ge.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),U.Ln(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const s=this.options.backKeybindingLabel();ms.tooltip=s?(0,b.kg)("quickInput.backWithKeybinding","Back ({0})",s):(0,b.kg)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();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.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.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){const t=this.controller;if(!t)return;t.willHide(e);const i=this.ui?.container,s=i&&!U.nR(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=e.parentElement??void 0;e?.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,hn.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.list.style(this.styles.list);const r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.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)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const o=r.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o)}}};pn=hn=dn([un(1,ce),un(2,ae._Y),un(3,ie.fN)],pn);var mn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},fn=function(e,t){return function(i,s){t(i,s,e)}};let _n=class extends Z.lR{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(Ki))),this._quickAccess}constructor(e,t,i,s,n){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=s,this.configurationService=n,this._onShow=this._register(new Q.vl),this._onHide=this._register(new Q.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(Ue.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Cs))},s=this._register(this.instantiationService.createInstance(pn,{...i,...t}));return s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,U.zk)(e.activeContainer)===(0,U.zk)(s.container)&&s.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{s.isVisible()||s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(s.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(s.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),s}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ie.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t?.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t,i=at.XO.None){return this.controller.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e)}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Ne.GuP)(Ne.ELA),quickInputForeground:(0,Ne.GuP)(Ne.HJZ),quickInputTitleBackground:(0,Ne.GuP)(Ne.er1),widgetBorder:(0,Ne.GuP)(Ne.DSL),widgetShadow:(0,Ne.GuP)(Ne.f9l)},inputBox:wi.ho,toggle:wi.mk,countBadge:wi.m$,button:wi.cv,progressBar:wi.oJ,keybindingLabel:wi.ir,list:(0,wi.t8)({listBackground:Ne.ELA,listFocusBackground:Ne.AlL,listFocusForeground:Ne.nH,listInactiveFocusForeground:Ne.nH,listInactiveSelectionIconForeground:Ne.c7i,listInactiveFocusBackground:Ne.AlL,listFocusOutline:Ne.buw,listInactiveFocusOutline:Ne.buw}),pickerGroup:{pickerGroupBorder:(0,Ne.GuP)(Ne.iwL),pickerGroupForeground:(0,Ne.GuP)(Ne.NBf)}}}};_n=mn([fn(0,ae._Y),fn(1,ie.fN),fn(2,Z.Gy),fn(3,ce),fn(4,Me.pG)],_n);var vn=i(6921),Cn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},En=function(e,t){return function(i,s){t(i,s,e)}};let bn=class extends _n{constructor(e,t,i,s,n,r){super(t,i,s,new ue(e.getContainerDomNode(),n),r),this.host=void 0;const o=yn.get(e);if(o){const t=o.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 Q.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return Q.Jh.None},get onDidAddContainer(){return Q.Jh.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)}};bn=Cn([En(1,ae._Y),En(2,ie.fN),En(3,Z.Gy),En(4,g.T),En(5,Me.pG)],bn);let Sn=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(bn,e);this.mapEditorToService.set(e,t),(0,vn.P)(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=at.XO.None){return this.activeService.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createInputBox(){return this.activeService.createInputBox()}};Sn=Cn([En(0,ae._Y),En(1,g.T)],Sn);class yn{static{this.ID="editor.controller.quickInput"}static get(e){return e.getContribution(yn.ID)}constructor(e){this.editor=e,this.widget=new wn(this.editor)}dispose(){this.widget.dispose()}}class wn{static{this.ID="editor.contrib.quickInputWidget"}constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return wn.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}(0,u.HW)(yn.ID,yn,4);var Rn=i(10424),Ln=i(24520),Tn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xn=function(e,t){return function(i,s){t(i,s,e)}};let kn=class extends c.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Q.vl,this._onDidChangeReducedMotion=new Q.vl,this._onDidChangeLinkUnderline=new Q.vl,this._accessibilityModeEnabledContext=Ve.f.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),s(),this._register(this.onDidChangeScreenReaderOptimized((()=>s())));const n=a.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=n.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(n),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,U.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration((e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){const e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}})));const e=()=>{const e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines((()=>e())))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};kn=Tn([xn(0,ie.fN),xn(1,ce),xn(2,Me.pG)],kn);var An,Nn=i(60858),In=i(85600),On=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Dn=function(e,t){return function(i,s){t(i,s,e)}};const Mn="application/vnd.code.resources";let Pn=class extends c.jG{static{An=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(oi.nr||oi.c8)&&this.installWebKitWriteTextWorkaround(),this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>{t.add((0,U.ko)(e.document,"copy",(()=>this.clearResourcesState())))}),{window:a.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new m.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,U.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(Q.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,U.ko)(t,"click",e)),i.add((0,U.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.clearResourcesState(),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await(0,U.fz)().navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,U.a)(),i=t.activeElement,s=t.body.appendChild((0,U.$)("textarea",{"aria-hidden":!0}));s.style.height="1px",s.style.width="1px",s.style.position="absolute",s.value=e,s.focus(),s.select(),t.execCommand("copy"),(0,U.sb)(i)&&i.focus(),s.remove()}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await(0,U.fz)().navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{const e=await(0,U.fz)().navigator.clipboard.read();for(const t of e)if(t.types.includes(`web ${Mn}`)){const e=await t.getType(`web ${Mn}`);return JSON.parse(await e.text()).map((e=>h.r.from(e)))}}catch(t){}const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,In.tW)(e.substring(0,An.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};Pn=An=On([Dn(0,ce),Dn(1,I.rr)],Pn);var Fn=i(54770),Un=i(42522),Hn=i(4853),Bn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Wn=function(e,t){return function(i,s){t(i,s,e)}};const Vn="data-keybinding-context";class zn{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Gn extends zn{static{this.INSTANCE=new Gn}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class jn extends zn{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Hn.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new qn(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,s=this._values.findSuperstr(e);void 0!==s&&(t.push(...Un.f.map(s,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new qn(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(jn._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(jn._keyPrefix.length),i=this._configurationService.getValue(t);let s;switch(typeof i){case"number":case"boolean":case"string":s=i;break;default:s=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,s),s}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class Kn{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Yn{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class qn{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class $n{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Qn extends c.jG{constructor(e){super(),this._onDidChangeContext=this._register(new Q.fV({merge:e=>new $n(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Kn(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Zn(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Yn(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Yn(e))}getContext(e){return this._isDisposed?Gn.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Vn)){const t=e.getAttribute(Vn);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Xn=class extends Qn{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new jn(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._contexts.get(e)||Gn.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new zn(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Xn=Bn([Wn(0,Me.pG)],Xn);class Zn extends Qn{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new c.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Vn)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Vn,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Vn),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}St.w.registerCommand("_setContext",(function(e,t,i){e.get(ie.fN).createKey(String(t),function(e){return(0,p.PI)(e,(e=>"object"===typeof e&&1===e.$mid?h.r.revive(e).toString():e instanceof h.r?e.toString():void 0))}(i))})),St.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ie.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,b.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),St.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ie.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var Jn=i(84040);class er{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class tr{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new er(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(const[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(s,t);if(e)return e;t.delete(i)}}}var ir=i(58345);class sr extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class nr{constructor(e=new ir.a,t=!1,i,s=false){this._services=e,this._strict=t,this._parent=i,this._enableTracing=s,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(ae._Y,this),this._globalGraph=s?i?._globalGraph??new tr((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,c.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,c.Xm)(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,s=new class extends nr{dispose(){i._children.delete(s),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(s),t?.add(s),s}invokeFunction(e,...t){this._throwIfDisposed();const i=rr.traceInvocation(this._enableTracing,e);let s=!1;try{return e({get:e=>{if(s)throw(0,v.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{s=!0,i.stop()}}createInstance(e,...t){let i,s;return this._throwIfDisposed(),e instanceof Jn.d?(i=rr.traceCreation(this._enableTracing,e.ctor),s=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=rr.traceCreation(this._enableTracing,e),s=this._createInstance(e,t,i)),i.stop(),s}_createInstance(e,t=[],i){const s=ae._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),n=[];for(const o of s){const t=this._getOrCreateServiceInstance(o.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id}.`,!1),n.push(t)}const r=s.length>0?s[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const i=r-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,r)}return Reflect.construct(e,t.concat(n))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof Jn.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const 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));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof Jn.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new 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){const s=new tr((e=>e.id.toString()));let n=0;const r=[{id:e,desc:t,_trace:i}],o=new Set;for(;r.length;){const t=r.pop();if(!o.has(String(t.id))){if(o.add(String(t.id)),s.lookupOrInsertNode(t),n++>1e3)throw new sr(s);for(const i of ae._$.getServiceDependencies(t.desc.ctor)){const n=this._getServiceInstanceOrDescriptor(i.id);if(n||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(i.id)),n instanceof Jn.d){const e={id:i.id,desc:n,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new sr(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof Jn.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],s,n){if(this._services.get(e)instanceof Jn.d)return this._createServiceInstance(e,t,i,s,n,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,s,n);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],s,n,r){if(s){const s=new nr(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,a=new m.F6((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const s=e[t];if("function"===typeof s)for(const t of i)t.disposable=s.apply(e,t.listener)}return o.clear(),r.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=o.get(t);e||(e=new X.w,o.set(t,e));return(i,s,n)=>{if(a.isInitialized)return a.value[t](i,s,n);{const t={listener:[i,s,n],disposable:void 0},r=e.push(t);return(0,c.s)((()=>{r(),t.disposable?.dispose()}))}}}if(t in e)return e[t];const i=a.value;let s=i[t];return"function"!==typeof s||(s=s.bind(i),e[t]=s),s},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,n);return r.add(e),e}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class rr{static{this.all=new Set}static{this._None=new class extends rr{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(e,t){return e?new rr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):rr._None}static traceCreation(e,t){return e?new rr(1,t.name):rr._None}static{this._totals=0}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new rr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;rr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,s){const n=[],r=new Array(i+1).join("\t");for(const[o,a,c]of s._dep)if(a&&c){t=!0,n.push(`${r}CREATES -> ${o}`);const s=e(i+1,c);s&&n.push(s)}else n.push(`${r}uses -> ${o}`);return n.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${rr._totals.toFixed(2)}ms)`];(e>2||t)&&rr.all.add(i.join("\n"))}}var or=i(75147);const ar=new Set([C.ny.inMemory,C.ny.vscodeSourceControl,C.ny.walkThrough,C.ny.walkThroughSnippet,C.ny.vscodeChatCodeBlock]);class cr{constructor(){this._byResource=new yt.fT,this._byOwner=new Map}set(e,t,i){let s=this._byResource.get(e);s||(s=new Map,this._byResource.set(e,s)),s.set(t,i);let n=this._byOwner.get(t);n||(n=new yt.fT,this._byOwner.set(t,n)),n.set(e,i)}get(e,t){const i=this._byResource.get(e);return i?.get(t)}delete(e,t){let i=!1,s=!1;const n=this._byResource.get(e);n&&(i=n.delete(t));const r=this._byOwner.get(t);if(r&&(s=r.delete(e)),i!==s)throw new Error("illegal state");return i&&s}values(e){return"string"===typeof e?this._byOwner.get(e)?.values()??Un.f.empty():h.r.isUri(e)?this._byResource.get(e)?.values()??Un.f.empty():Un.f.map(Un.f.concat(...this._byOwner.values()),(e=>e[1]))}}class lr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new yt.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(ar.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===or.cj.Error?t.errors+=1:i===or.cj.Warning?t.warnings+=1:i===or.cj.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 hr{constructor(){this._onMarkerChanged=new Q.uI({delay:0,merge:hr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new cr,this._stats=new lr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,E.Ct)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const s=[];for(const n of i){const i=hr._toMarker(e,t,n);i&&s.push(i)}this._data.set(t,e,s),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}=i;if(r)return a=a>0?a:1,c=c>0?c:1,l=l>=a?l:a,h=h>0?h:c,{resource:t,owner:e,code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}}changeAll(e,t){const i=[],s=this._data.values(e);if(s)for(const n of s){const t=Un.f.first(n);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,E.EI)(t)){const s=new yt.fT;for(const{resource:n,marker:r}of t){const t=hr._toMarker(e,n,r);if(!t)continue;const o=s.get(n);o?o.push(t):(s.set(n,[t]),i.push(n))}for(const[t,i]of s)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:s,take:n}=e;if((!n||n<0)&&(n=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(hr._accept(i,s)){const e=t.push(i);if(n>0&&e===n)break}return t}return[]}if(t||i){const e=this._data.values(i??t),r=[];for(const t of e)for(const e of t)if(hr._accept(e,s)){const t=r.push(e);if(n>0&&t===n)return r}return r}{const e=[];for(const t of this._data.values())for(const i of t)if(hr._accept(i,s)){const t=e.push(i);if(n>0&&t===n)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new yt.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}var dr=i(9711);class ur extends c.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=Tt.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=Tt.createEmptyModel(this.logService);const e=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const s of e){const e=i[s],n=t[s];void 0!==e?this._configurationModel.setValue(s,e):n?this._configurationModel.setValue(s,n.default):this._configurationModel.removeValue(s)}}}var gr=i(87213);class pr extends c.jG{constructor(e,t=[]){super(),this.logger=new I.Dk([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)}}var mr=i(72466),fr=i(97035),_r=i(44432);var vr=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Cr=function(e,t){return function(i,s){t(i,s,e)}};class Er{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new Q.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let br=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Er(t))):Promise.reject(new Error("Model not found"))}};br=vr([Cr(0,A.IModelService)],br);class Sr{static{this.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}}}show(){return Sr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}class yr{static{this.NO_OP=new me.Kz}info(e){return this.notify({severity:ge.A.Info,message:e})}warn(e){return this.notify({severity:ge.A.Warning,message:e})}error(e){return this.notify({severity:ge.A.Error,message:e})}notify(e){switch(e.severity){case ge.A.Error:console.error(e.message);break;case ge.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return yr.NO_OP}prompt(e,t,i,s){return yr.NO_OP}status(e,t){return c.jG.None}}let wr=class{constructor(e){this._onWillExecuteCommand=new Q.vl,this._onDidExecuteCommand=new Q.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=St.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const s=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(s)}catch(s){return Promise.reject(s)}}};wr=vr([Cr(0,ae._Y)],wr);let Rr=class extends Ht{constructor(e,t,i,s,n,r){super(e,t,i,s,n),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const o=e=>{const t=new c.Cm;t.add(U.ko(e,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(U.ko(e,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Lr(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},l=e=>{e.getOption(61)||o(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(l)),this._register(r.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),r.listCodeEditors().forEach(l);const h=e=>{o(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,s){return(0,c.qE)(St.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:s}]))}addDynamicKeybindings(e){const t=e.map((e=>({keybinding:(0,ft.Zv)(e.keybinding,We.OS),command: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,c.s)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(Wt.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Mt(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let s=0;for(const n of e){const e=n.when||void 0,r=n.keybinding;if(r){const o=Yt.resolveKeybinding(r,We.OS);for(const r of o)i[s++]=new Vt(r,n.command,n.commandArgs,e,t,null,!1)}else i[s++]=new Vt(void 0,n.command,n.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Yt([t],We.OS)}};Rr=vr([Cr(0,ie.fN),Cr(1,St.d),Cr(2,Qt.k),Cr(3,me.Ot),Cr(4,I.rr),Cr(5,g.T)],Rr);class Lr extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Tr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.r)}let xr=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new Q.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new ur(e);this._configuration=new At(t.reload(),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),new yt.fT,Tt.createEmptyModel(e),new yt.fT,e),t.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,s=Tr(e)?e:Tr(t)?t:{};return this._configuration.getValue(i,s,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const s of e){const[e,t]=s;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new Nt({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,s){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};xr=vr([Cr(0,I.rr)],xr);let kr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new Q.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const s=Et.y.isIPosition(t)?t:null,n=s?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,r=e?this.getLanguage(e,s):void 0;return"undefined"===typeof n?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(n,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};kr=vr([Cr(0,Me.pG),Cr(1,A.IModelService),Cr(2,Ui.L)],kr);let Ar=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:We.j9||We.zx?"\n":"\r\n"}};Ar=vr([Cr(0,Me.pG)],Ar);class Nr{static{this.SCHEME="inmemory"}constructor(){const e=h.r.from({scheme:Nr.SCHEME,authority:"model",path:"/"});this.workspace={id:Xt.cn,folders:[new Xt.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Nr.SCHEME?this.workspace.folders[0]:null}}function Ir(e,t,i){if(!t)return;if(!(e instanceof xr))return;const s=[];Object.keys(t).forEach((e=>{(0,vt.vf)(e)&&s.push([`editor.${e}`,t[e]]),i&&(0,vt.Gn)(e)&&s.push([`diffEditor.${e}`,t[e]])})),s.length>0&&e.updateValues(s)}let Or=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:_t.jN.convert(e),s=new Map;for(const o of i){if(!(o instanceof _t.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(o.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof o.versionId&&e.getVersionId()!==o.versionId)throw new Error("bad state - model changed in the meantime");let t=s.get(e);t||(t=[],s.set(e,t)),t.push(Ct.k.replaceMove(T.Q.lift(o.textEdit.range),o.textEdit.text))}let n=0,r=0;for(const[o,a]of s)o.pushStackElement(),o.pushEditOperations([],a,(()=>[])),o.pushStackElement(),r+=1,n+=a.length;return{ariaSummary:l.GP(Zt.tu.bulkEditServiceSummary,n,r),isApplied:n>0}}};Or=vr([Cr(0,A.IModelService)],Or);let Dr=class extends ot{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Dr=vr([Cr(0,ce),Cr(1,g.T)],Dr);class Mr extends ti.LanguageService{constructor(){super()}}let Pr=class extends xi{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r),this.configure({blockMouse:!1})}};Pr=vr([Cr(0,Qt.k),Cr(1,me.Ot),Cr(2,Oe.l),Cr(3,De.b),Cr(4,ni.ez),Cr(5,ie.fN)],Pr);const Fr={amdModuleId:"vs/editor/common/services/editorSimpleWorker",esmModuleLocation:void 0,label:"editorWorkerService"};let Ur=class extends j{constructor(e,t,i,s,n){super(Fr,e,t,i,s,n)}};Ur=vr([Cr(0,A.IModelService),Cr(1,N.ITextResourceConfigurationService),Cr(2,I.rr),Cr(3,x.JZ),Cr(4,D.ILanguageFeaturesService)],Ur);var Hr;(0,se.v)(I.rr,class extends pr{constructor(){super(new I.Cr)}},0),(0,se.v)(Me.pG,xr,0),(0,se.v)(N.ITextResourceConfigurationService,kr,0),(0,se.v)(N.ITextResourcePropertiesService,Ar,0),(0,se.v)(Xt.VR,Nr,0),(0,se.v)(qt.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Jt.P8)(e)}},0),(0,se.v)(Qt.k,class{publicLog2(){}},0),(0,se.v)(pe.X,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"+t),a.G.confirm(i)}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){const i=[...e.buttons??[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&i.push(e.cancelButton),t=await(i[0]?.run({checkboxChecked:!1}))}return{result:t}}async error(e,t){await this.prompt({type:ge.A.Error,message:e,detail:t})}},0),(0,se.v)(fr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,se.v)(me.Ot,yr,0),(0,se.v)(or.DR,hr,0),(0,se.v)(Ui.L,Mr,0),(0,se.v)(Ln.L,Rn.Sx,0),(0,se.v)(A.IModelService,Wi.ModelService,0),(0,se.v)(Bi.IMarkerDecorationsService,Hi.MarkerDecorationsService,0),(0,se.v)(ie.fN,Xn,0),(0,se.v)($t.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,se.v)($t.N8,Sr,0),(0,se.v)(dr.CS,dr.pc,0),(0,se.v)(Fi.IEditorWorkerService,Ur,0),(0,se.v)(_t.nu,Or,0),(0,se.v)(ei.L,class{constructor(){this._neverEmitter=new Q.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,se.v)(bt.ITextModelService,br,0),(0,se.v)(Ve.j,kn,0),(0,se.v)(Ns.PE,Ns.aG,0),(0,se.v)(St.d,wr,0),(0,se.v)(De.b,Rr,0),(0,se.v)(zi.GK,Sn,0),(0,se.v)(Oe.l,Dr,0),(0,se.v)(Ue.C,Pi,0),(0,se.v)(Fn.h,Pn,0),(0,se.v)(Oe.Z,Pr,0),(0,se.v)(ni.ez,Nn.$,0),(0,se.v)(gr.Nt,class{async playSignal(e,t){}},0),(0,se.v)(_r.ITreeSitterParserService,class{getParseResult(e){}},0),function(e){const t=new ir.a;for(const[o,a]of(0,se.N)())t.set(o,a);const i=new nr(t,!0);t.set(ae._Y,i),e.get=function(e){s||r({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof Jn.d?i.invokeFunction((t=>t.get(e))):n};let s=!1;const n=new Q.vl;function r(e){if(s)return i;s=!0;for(const[i,s]of(0,se.N)())t.get(i)||t.set(i,s);for(const i in e)if(e.hasOwnProperty(i)){const s=(0,ae.u1)(i);t.get(s)instanceof Jn.d&&t.set(s,e[i])}const r=(0,mr.T)();for(const t of r)try{i.createInstance(t)}catch(o){(0,v.dz)(o)}return n.fire(),i}e.initialize=r,e.withServices=function(e){if(s)return e();const t=new c.Cm,i=t.add(n.event((()=>{i.dispose(),t.add(e())})));return t}}(Hr||(Hr={}));class Br extends ${constructor(e,t){super({amdModuleId:Fr.amdModuleId,esmModuleLocation:Fr.esmModuleLocation,label:t.label},t.keepIdleModels||!1,e),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.V0)(this._foreignModuleHost):[];return e.$loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.$fmr(t,i),s=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const e of t)n[e]=s(e,i);return n}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this.workerWithSyncedResources(e).then((e=>this.getProxy()))}}var Wr=i(79027),Vr=i(74196),zr=i(23452),Gr=i(62083),jr=i(83941),Kr=i(20788),Yr=i(16223),qr=i(35015),$r=i(87469),Qr=i(35600),Xr=i(92896);function Zr(e){return!function(e){return Array.isArray(e)}(e)}function Jr(e){return"string"===typeof e}function eo(e){return!Jr(e)}function to(e){return!e}function io(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function so(e){return e.replace(/[&<>'"_]/g,"-")}function no(e,t){return new Error(`${e.languageId}: ${t}`)}function ro(e,t,i,s,n){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,o,a,c,l,h,d,u,g){return to(a)?to(c)?!to(l)&&l<s.length?io(e,s[l]):!to(d)&&e&&"string"===typeof e[d]?e[d]:(null===r&&(r=n.split("."),r.unshift(n)),!to(h)&&h<r.length?io(e,r[h]):""):io(e,i):"$"}))}function oo(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const s=i.lastIndexOf(".");i=s<0?null:i.substr(0,s)}return null}var ao,co=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},lo=function(e,t){return function(i,s){t(i,s,e)}};class ho{static{this._INSTANCE=new ho(5)}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 uo(e,t);let i=uo.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new uo(e,t),this._entries[i]=s,s)}}class uo{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 uo._equals(this,e)}push(e){return ho.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ho.create(this.parent,e)}}class go{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 go(this.languageId,this.state)}}class po{static{this._INSTANCE=new po(5)}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)return new mo(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new mo(e,t);const i=uo.getStackElementId(e);let s=this._entries[i];return s||(s=new mo(e,null),this._entries[i]=s,s)}}class mo{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:po.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof mo&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class fo{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 Gr.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenize(e,t,r);if(0!==s)for(const c of a.tokens)this._tokens.push(new Gr.ou(c.offset+s,c.type,c.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 Gr.$M(this._tokens,e)}}class _o{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){const 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){const s=null!==e?e.length:0,n=t.length,r=null!==i?i.length:0;if(0===s&&0===n&&0===r)return new Uint32Array(0);if(0===s&&0===n)return i;if(0===n&&0===r)return e;const o=new Uint32Array(s+n+r);null!==e&&o.set(e);for(let a=0;a<n;a++)o[s+a]=t[a];return null!==i&&o.set(i,s+n),o}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenizeEncoded(e,t,r);if(0!==s)for(let c=0,l=a.tokens.length;c<l;c+=2)a.tokens[c]+=s;return this._prependTokens=_o._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new Gr.rY(_o._merge(this._prependTokens,this._tokens,null),e)}}let vo=ao=class extends c.jG{constructor(e,t,i,s,n){super(),this._configurationService=n,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=s,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(Gr.dG.onDidChange((e=>{if(r)return;let t=!1;for(let i=0,s=e.changedLanguages.length;i<s;i++){const s=e.changedLanguages[i];if(this._embeddedLanguages[s]){t=!0;break}}t&&(r=!0,Gr.dG.handleChange([this._languageId]),r=!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(){const e=[];for(const t in this._embeddedLanguages){const i=Gr.dG.get(t);if(i){if(i instanceof ao){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else Gr.dG.isResolved(t)||e.push(Gr.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=ho.create(null,this._lexer.start);return po.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.$H)(this._languageId,i);const s=new fo,n=this._tokenize(e,t,i,s);return s.finalize(n)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const s=new _o(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),n=this._tokenize(e,t,i,s);return s.finalize(n)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=oo(this._lexer,t.stack.state),!i))throw no(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,n=!1;for(const r of i){if(!eo(r.action)||"@pop"!==r.action.nextEmbedded)continue;n=!0;let i=r.resolveRegex(t.stack.state);const o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}const a=e.search(i);-1===a||0!==a&&r.matchOnlyAtLineStart||(-1===s||a<s)&&(s=a)}if(!n)throw no(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return s}_nestedTokenize(e,t,i,s,n){const r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){const r=n.nestedLanguageTokenize(e,t,i.embeddedLanguageData,s);return po.create(i.stack,new go(i.embeddedLanguageData.languageId,r))}const o=e.substring(0,r);o.length>0&&n.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,s);const a=e.substring(r);return this._myTokenize(a,t,i,s+r,n)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,n){n.enterLanguage(this._languageId);const r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length;let c=i.embeddedLanguageData,l=i.stack,h=0,d=null,u=!0;for(;u||h<a;){const i=h,m=l.depth,f=d?d.groups.length:0,_=l.state;let v=null,C=null,E=null,b=null,S=null;if(d){v=d.matches;const e=d.groups.shift();C=e.matched,E=e.action,b=d.rule,0===d.groups.length&&(d=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=oo(this._lexer,_),!e))throw no(this._lexer,"tokenizer state is not defined: "+_);const t=o.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){C=v[0],E=i.action;break}}if(v||(v=[""],C=""),E||(h<a&&(v=[o.charAt(h)],C=v[0]),E=this._lexer.defaultToken),null===C)break;for(h+=C.length;Zr(E)&&eo(E)&&E.test;)E=E.test(C,v,_,h===a);let y=null;if("string"===typeof E||Array.isArray(E))y=E;else if(E.group)y=E.group;else if(null!==E.token&&void 0!==E.token){if(y=E.tokenSubst?ro(this._lexer,E.token,C,v,_):E.token,E.nextEmbedded)if("@pop"===E.nextEmbedded){if(!c)throw no(this._lexer,"cannot pop embedded language if not inside one");c=null}else{if(c)throw no(this._lexer,"cannot enter embedded language from within an embedded language");S=ro(this._lexer,E.nextEmbedded,C,v,_)}if(E.goBack&&(h=Math.max(0,h-E.goBack)),E.switchTo&&"string"===typeof E.switchTo){let e=ro(this._lexer,E.switchTo,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.switchTo(e)}else{if(E.transform&&"function"===typeof E.transform)throw no(this._lexer,"action.transform not supported");if(E.next)if("@push"===E.next){if(l.depth>=this._lexer.maxStack)throw no(this._lexer,"maximum tokenizer stack size reached: ["+l.state+","+l.parent.state+",...]");l=l.push(_)}else if("@pop"===E.next){if(l.depth<=1)throw no(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));l=l.pop()}else if("@popall"===E.next)l=l.popall();else{let e=ro(this._lexer,E.next,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.push(e)}}E.log&&"string"===typeof E.log&&(g=this._lexer,p=this._lexer.languageId+": "+ro(this._lexer,E.log,C,v,_),console.log(`${g.languageId}: ${p}`))}if(null===y)throw no(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const w=i=>{const r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,po.create(l,o),s+h,n)}return po.create(l,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw no(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(v.length!==y.length+1)throw no(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==C.length)throw no(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(b));d={rule:b,matches:v,groups:[]};for(let t=0;t<y.length;t++)d.groups[t]={action:y[t],matched:v[t+1]};h-=C.length}else{{if("@rematch"===y&&(h-=C.length,C="",v=null,y="",null!==S))return w(S);if(0===C.length){if(0===a||m!==l.depth||_!==l.state||(d?d.groups.length:0)!==f)continue;throw no(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(b))}let e=null;if(Jr(y)&&0===y.indexOf("@brackets")){const t=y.substr(9),i=Co(this._lexer,C);if(!i)throw no(this._lexer,"@brackets token returned but no bracket defined as: "+C);e=so(i.token+t)}else{e=so(""===y?"":y+this._lexer.tokenPostfix)}i<r&&n.emit(i+s,e)}if(null!==S)return w(S)}}var g,p;return po.create(l,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new go(e,Kr.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Gr.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Gr.dG.get(e);return new go(e,t?t.getInitialState():Kr.r3)}};function Co(e,t){if(!t)return null;t=io(e,t);const i=e.brackets;for(const s of i){if(s.open===t)return{token:s.token,bracketType:1};if(s.close===t)return{token:s.token,bracketType:-1}}return null}vo=ao=co([lo(4,Me.pG)],vo);const Eo=(0,_.H)("standaloneColorizer",{createHTML:e=>e});class bo{static colorizeElement(e,t,i,s){const n=(s=s||{}).theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const o=t.getLanguageIdByMimeType(r)||r;e.setTheme(n);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+n;return this.colorize(t,a||"",o,s).then((e=>{const t=Eo?.createHTML(e)??e;i.innerHTML=t}),(e=>console.error(e)))}static async colorize(e,t,i,s){const n=e.languageIdCodec;let r=4;s&&"number"===typeof s.tabSize&&(r=s.tabSize),l.LU(t)&&(t=t.substr(1));const o=l.uz(t);if(!e.isRegisteredLanguageId(i))return So(o,r,n);const a=await Gr.dG.getOrCreate(i);return a?function(e,t,i,s){return new Promise(((n,r)=>{const o=()=>{const a=function(e,t,i,s){let n=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){const a=e[o],c=i.tokenizeEncoded(a,!0,r);$r.f.convertToEndOffset(c.tokens,a.length);const l=new $r.f(c.tokens,a,s),h=Xr.qL.isBasicASCII(a,!0),d=Xr.qL.containsRTL(a,h,!0),u=(0,Qr.Md)(new Qr.zL(!1,!0,a,!1,h,d,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(u.html),n.push("<br/>"),r=c.endState}return n.join("")}(e,t,i,s);if(i instanceof vo){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}n(a)};o()}))}(o,r,a,n):So(o,r,n)}static colorizeLine(e,t,i,s,n=4){const r=Xr.qL.isBasicASCII(e,t),o=Xr.qL.containsRTL(e,r,i);return(0,Qr.Md)(new Qr.zL(!1,!0,e,!1,r,o,0,s,[],n,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),n,i)}}function So(e,t,i){let s=[];const n=new Uint32Array(2);n[0]=0,n[1]=33587200;for(let r=0,o=e.length;r<o;r++){const o=e[r];n[0]=o.length;const a=new $r.f(n,o,i),c=Xr.qL.isBasicASCII(o,!0),l=Xr.qL.containsRTL(o,c,!0),h=(0,Qr.Md)(new Qr.zL(!1,!0,o,!1,c,l,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(h.html),s.push("<br/>")}return s.join("")}var yo=i(29611),wo=i(4360),Ro=i(42904),Lo=i(48196),To=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xo=function(e,t){return function(i,s){t(i,s,e)}};let ko=0,Ao=!1;let No=class extends n.x{constructor(e,t,i,s,n,r,o,c,l,h,d,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Zt.vp.editorViewAccessibleLabel,super(e,p,{},i,s,n,r,l,h,d,u,g),this._standaloneKeybindingService=c instanceof Rr?c:null,function(e){if(!e){if(Ao)return;Ao=!0}ze.vr(e||a.G.document.body)}(p.ariaContainerElement),(0,Ro.MW)(((e,t)=>i.createInstance(Ie.fO,e,t,{}))),(0,Lo.e)(o)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++ko,n=ie.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,n),s}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 new 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"),c.jG.None;const t=e.id,i=e.label,s=ie.M$.and(ie.M$.equals("editorId",this.getId()),ie.M$.deserialize(e.precondition)),n=e.keybindings,r=ie.M$.and(s,ie.M$.deserialize(e.keybindingContext)),o=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new c.Cm,d=this.getId()+":"+t;if(h.add(St.w.registerCommand(d,l)),o){const e={command:{id:d,title:i},when:s,group:o,order:a};h.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,e))}if(Array.isArray(n))for(const c of n)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,c,l,r));const u=new yo.f(d,i,i,void 0,s,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,c.s)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof oe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};No=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Z.Gy),xo(9,me.Ot),xo(10,Ve.j),xo(11,x.JZ),xo(12,D.ILanguageFeaturesService)],No);let Io=class extends No{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){const f={...t};Ir(h,f,!1);const _=c.registerEditorContainer(e);"string"===typeof f.theme&&c.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let C;if(delete f.model,super(e,f,i,s,n,r,o,a,c,l,d,p,m),this._configurationService=h,this._standaloneThemeService=c,this._register(_),"undefined"===typeof v){const e=g.getLanguageIdByMimeType(f.language)||f.language||jr.vH;C=Do(u,g,f.value||"",e,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const e={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Io=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Ln.L),xo(9,me.Ot),xo(10,Me.pG),xo(11,Ve.j),xo(12,A.IModelService),xo(13,Ui.L),xo(14,x.JZ),xo(15,D.ILanguageFeaturesService)],Io);let Oo=class extends wo.T{constructor(e,t,i,s,n,r,o,a,c,l,h,d){const u={...t};Ir(a,u,!0);const g=r.registerEditorContainer(e);"string"===typeof u.theme&&r.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&r.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},s,i,n,d,l),this._configurationService=a,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(No,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 Do(e,t,i,s,n){if(i=i||"",!s){const s=i.indexOf("\n");let r=i;return-1!==s&&(r=i.substring(0,s)),Mo(e,i,t.createByFilepathOrFirstLine(n||null,r),n)}return Mo(e,i,t.createById(s),n)}function Mo(e,t,i,s){return e.createModel(t,i,s)}Oo=To([xo(2,ae._Y),xo(3,ie.fN),xo(4,g.T),xo(5,Ln.L),xo(6,me.Ot),xo(7,Me.pG),xo(8,Oe.Z),xo(9,$t.N8),xo(10,Fn.h),xo(11,gr.Nt)],Oo);var Po=i(41127),Fo=i(46041),Uo=i(49154),Ho=i(49353),Bo=i(92368),Wo=i(74444),Vo=i(75326),zo=i(60002),Go=i(38844),jo=i(65644),Ko=i(25791),Yo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},qo=function(e,t){return function(i,s){t(i,s,e)}};class $o{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Qo=class extends c.jG{constructor(e,t,i,s,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=s,this._viewModel=(0,Uo.FY)(this,void 0),this._collapsed=(0,Bs.un)(this,(e=>this._viewModel.read(e)?.collapsed.read(e))),this._editorContentHeight=(0,Uo.FY)(this,500),this.contentHeight=(0,Bs.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,Uo.FY)(this,0),this._modifiedWidth=(0,Uo.FY)(this,0),this._originalContentWidth=(0,Uo.FY)(this,0),this._originalWidth=(0,Uo.FY)(this,0),this.maxScroll=(0,Bs.un)(this,(e=>{const 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)}})),this._elements=(0,U.h)("div.multiDiffEntry",[(0,U.h)("div.header@header",[(0,U.h)("div.header-content",[(0,U.h)("div.collapse-button@collapseButton"),(0,U.h)("div.file-path",[(0,U.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,U.h)("div.status.deleted@status",["R"]),(0,U.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,U.h)("div.actions@actions")])]),(0,U.h)("div.editorParent",[(0,U.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(wo.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=(0,Go.Ud)(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=(0,Go.Ud)(this.editor.getOriginalEditor()).isFocused,this.isFocused=(0,Bs.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new c.Cm),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new Es.$(this._elements.collapseButton,{});this._register((0,Bs.fm)((e=>{r.element.className="",r.icon=this._collapsed.read(e)?di.W.chevronRight:di.W.chevronDown}))),this._register(r.onDidClick((()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Bs.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,Uo.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e)?.isActive.read(e);this._elements.root.classList.toggle("active",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(n.createScoped(this._elements.actions));const o=this._register(this._instantiationService.createChild(new ir.a([ie.fN,this._contextKeyService])));this._register(o.createInstance(jo.m,this._elements.actions,ni.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Ko.I((()=>this._viewModel.get()?.modifiedUri))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,si.rN)(o,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)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(this._data=e,!e)return void(0,Uo.YY)((e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear()}));const i=e.viewModel.documentDiffItem;if((0,Uo.YY)((s=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let n=!1,r=!1,o=!1,a="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(a="R",n=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(a="A",o=!0):(a="D",r=!0),this._elements.status.classList.toggle("renamed",n),this._elements.status.classList.toggle("deleted",r),this._elements.status.classList.toggle("added",o),this._elements.status.innerText=a,this._resourceLabel2?.setUri(n?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,s),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,s),this.editor.updateOptions(t(i.options??{}))})),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{this.editor.updateOptions(t(i.options??{}))}))),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,(e=>{e||this.setData(void 0)})),e.viewModel.documentDiffItem.contextKeys)for(const[s,n]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(s,n)}render(e,t,i,s){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";const n=e.length-this._headerHeight,r=Math.max(0,Math.min(s.start-e.start,n));this._elements.header.style.transform=`translateY(${r}px)`,(0,Uo.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===n)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};Qo=Yo([qo(3,ae._Y),qo(4,ie.fN)],Qo);class Xo{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(0===this._unused.size)t=this._create(e),this._itemData.set(t,e);else{const i=[...this._unused.values()];t=i.find((t=>this._itemData.get(t).getId()===e.getId()))??i[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Zo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Jo=function(e,t){return function(i,s){t(i,s,e)}};let ea=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=s,this._parentContextKeyService=n,this._parentInstantiationService=r,this._scrollableElements=(0,U.h)("div.scrollContent",[(0,U.h)("div@content",{style:{overflow:"hidden"}}),(0,U.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Ho.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,U.PG)((0,U.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new hi.oO(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=(0,U.h)("div.monaco-component.multiDiffEditor",{},[(0,U.h)("div",{},[this._scrollableElement.getDomNode()]),(0,U.h)("div.placeholder@placeholder",{},[(0,U.h)("div",[(0,b.kg)("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new Bo.pN(this._element,void 0)),this._objectPool=this._register(new Xo((e=>{const t=this._instantiationService.createInstance(Qo,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this.scrollTop=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=(0,Bs.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new v.D7}};const s=i.items.read(e),n=new Map;return{items:s.map((e=>{const i=t.add(new ta(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=this._lastDocStates?.[i.getKey()];return s&&(0,Uo.Rn)((e=>{i.setViewState(s,e)})),n.set(e,i),i})),getItem:e=>n.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new ir.a([ie.fN,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(zo.R.inMultiDiffEditor.key,!0),this._register((0,Bs.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[s,n]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(s,void 0);e.set(n),t.add((0,c.s)((()=>e.reset())))}})));const o=this._parentContextKeyService.createKey(zo.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));o.set(i)}}))),this._register((0,Bs.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewItems.read(e);this._elements.placeholder.classList.toggle("visible",0===t.length)}))),this._scrollableElements.content.style.position="relative",this._register((0,Bs.fm)((e=>{const t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${i}px`;const s=this._sizeObserver.width.read(e);let n=s;const r=this._viewItems.read(e),o=(0,Fo.Cn)(r,(0,E.VE)((t=>t.maxScroll.read(e).maxScroll),E.U9));if(o){n=s+o.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:s,height:t,scrollHeight:i,scrollWidth:n})}))),e.replaceChildren(this._elements.root),this._register((0,c.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Bs.fm)((e=>{(0,Uo.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,s=0,n=0;const r=this._sizeObserver.height.read(e),o=Wo.L.ofStartAndLength(t,r),a=this._sizeObserver.width.read(e);for(const c of this._viewItems.read(e)){const l=c.contentHeight.read(e),h=Math.min(l,r),d=Wo.L.ofStartAndLength(s,h),u=Wo.L.ofStartAndLength(n,l);if(u.isBefore(o))i-=l-h,c.hide();else if(u.isAfter(o))c.hide();else{const e=Math.max(0,Math.min(o.start-u.start,l-h));i-=e;const s=Wo.L.ofStartAndLength(t+i,r);c.render(d,e,a,s)}s+=h+this._spaceBetweenPx,n+=l+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};ea=Zo([Jo(4,ie.fN),Jo(5,ae._Y)],ea);class ta extends c.jG{constructor(e,t,i,s){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=s,this._templateRef=this._register((0,Uo.X2)(this,void 0)),this.contentHeight=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.contentHeight?.read(e)??this.viewModel.lastTemplateData.read(e).contentHeight)),this.maxScroll=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.maxScroll.read(e)??{maxScroll:0,scrollWidth:0})),this.template=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object)),this._isHidden=(0,Bs.FY)(this,!1),this._isFocused=(0,Bs.un)(this,(e=>this.template.read(e)?.isFocused.read(e)??!1)),this.viewModel.setIsFocused(this._isFocused,void 0),this._register((0,Bs.fm)((e=>{const t=this._scrollLeft.read(e);this._templateRef.read(e)?.object.setScrollLeft(t)}))),this._register((0,Bs.fm)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const i=this.viewModel.lastTemplateData.get(),s=e.selections?.map(Vo.L.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:s},t);const n=this._templateRef.get();n&&s&&n.object.editor.setSelections(s)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,Uo.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,s){this._isHidden.set(!1,void 0);let n=this._templateRef.get();if(!n){n=this._objectPool.getUnusedObj(new $o(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(n,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&n.object.editor.setSelections(e)}n.object.render(e,i,t,s)}}(0,Ne.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,b.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,Ne.x1A)("multiDiffEditor.background",Ne.YtV,(0,b.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,Ne.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,b.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var ia=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},sa=function(e,t){return function(i,s){t(i,s,e)}};let na=class extends c.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Bs.FY)(this,void 0),this._viewModel=(0,Bs.FY)(this,void 0),this._widgetImpl=(0,Bs.rm)(this,((e,t)=>((0,Po.b)(Qo,e),t.add(this._instantiationService.createInstance((0,Po.b)(ea,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Bs.OI)(this._widgetImpl))}};function ra(e,t,i){return Hr.initialize(i||{}).createInstance(Io,e,t)}function oa(e){return Hr.get(g.T).onCodeEditorAdd((t=>{e(t)}))}function aa(e){return Hr.get(g.T).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Hr.get(g.T).listCodeEditors()}function la(){return Hr.get(g.T).listDiffEditors()}function ha(e,t,i){return Hr.initialize(i||{}).createInstance(Oo,e,t)}function da(e,t){const i=Hr.initialize(t||{});return new na(e,{},i)}function ua(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return St.w.registerCommand(e.id,e.run)}function ga(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ie.M$.deserialize(e.precondition),i=new c.Cm;if(i.add(St.w.registerCommand(e.id,((i,...s)=>u.DX.runEditorCommand(i,s,t,((t,i,s)=>Promise.resolve(e.run(i,...s))))))),e.contextMenuGroupId){const s={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,s))}if(Array.isArray(e.keybindings)){const s=Hr.get(De.b);if(s instanceof Rr){const n=ie.M$.and(t,ie.M$.deserialize(e.keybindingContext));i.add(s.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:n})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function pa(e){return ma([e])}function ma(e){const t=Hr.get(De.b);return t instanceof Rr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ie.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.jG.None)}function fa(e,t,i){const s=Hr.get(Ui.L),n=s.getLanguageIdByMimeType(t)||t;return Do(Hr.get(A.IModelService),s,e,n,i)}function _a(e,t){const i=Hr.get(Ui.L),s=i.getLanguageIdByMimeType(t)||t||jr.vH;e.setLanguage(i.createById(s))}function va(e,t,i){if(e){Hr.get(or.DR).changeOne(t,e.uri,i)}}function Ca(e){Hr.get(or.DR).changeAll(e,[])}function Ea(e){return Hr.get(or.DR).read(e)}function ba(e){return Hr.get(or.DR).onMarkerChanged(e)}function Sa(e){return Hr.get(A.IModelService).getModel(e)}function ya(){return Hr.get(A.IModelService).getModels()}function wa(e){return Hr.get(A.IModelService).onModelAdded(e)}function Ra(e){return Hr.get(A.IModelService).onModelRemoved(e)}function La(e){return Hr.get(A.IModelService).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t){return new Br(e,t)}(Hr.get(A.IModelService),e)}function xa(e,t){const i=Hr.get(Ui.L),s=Hr.get(Ln.L);return bo.colorizeElement(s,i,e,t).then((()=>{s.registerEditorContainer(e)}))}function ka(e,t,i){const s=Hr.get(Ui.L);return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorize(s,e,t,i)}function Aa(e,t,i=4){return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorizeModelLine(e,t,i)}function Na(e,t){Gr.dG.getOrCreate(t);const i=function(e){const t=Gr.dG.get(e);return t||{getInitialState:()=>Kr.r3,tokenize:(t,i,s)=>(0,Kr.$H)(e,s)}}(t),s=(0,l.uz)(e),n=[];let r=i.getInitialState();for(let o=0,a=s.length;o<a;o++){const e=s[o],t=i.tokenize(e,!0,r);n[o]=t.tokens,r=t.endState}return n}function Ia(e,t){Hr.get(Ln.L).defineTheme(e,t)}function Oa(e){Hr.get(Ln.L).setTheme(e)}function Da(){d.T.clearAllFontInfos()}function Ma(e,t){return St.w.registerCommand({id:e,handler:t})}function Pa(e){return Hr.get(Ue.C).registerOpener({open:async t=>("string"===typeof t&&(t=h.r.parse(t)),e.open(t))})}function Fa(e){return Hr.get(g.T).registerCodeEditorOpenHandler((async(t,i,s)=>{if(!i)return null;const n=t.options?.selection;let r;return n&&"number"===typeof n.endLineNumber&&"number"===typeof n.endColumn?r=n:n&&(r={lineNumber:n.startLineNumber,column:n.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}na=ia([sa(2,ae._Y)],na);var Ua=i(47661);function Ha(e,t){return"boolean"===typeof e?e:t}function Ba(e,t){return"string"===typeof e?e:t}function Wa(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const 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 Va(e,t,i){t=t.replace(/@@/g,"\x01");let s,n=0;do{s=!1,t=t.replace(/@(\w+)/g,(function(i,n){s=!0;let r="";if("string"===typeof e[n])r=e[n];else{if(!(e[n]&&e[n]instanceof RegExp))throw void 0===e[n]?no(e,"language definition does not contain attribute '"+n+"', used at: "+t):no(e,"attribute reference '"+n+"' must be a string, used at: "+t);r=e[n].source}return to(r)?"":"(?:"+r+")"})),n++}while(s&&n<5);t=t.replace(/\x01/g,"@");const r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,s=null;return n=>(s&&i===n||(i=n,s=new RegExp(function(e,t,i){let s=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,n){return null===s&&(s=i.split("."),s.unshift(i)),!to(n)&&n<s.length?io(e,s[n]):""}))}(e,t,n),r)),s)}}return new RegExp(t,r)}function za(e,t,i,s){let n=-1,r=i,o=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(n=parseInt(o[3]),o[2]&&(n+=100)),r=o[4]);let a,c="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?c="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(c=o[1],l=o[2])):(c="!=",l=""),"~"!==c&&"!~"!==c||!/^(\w|\|)*$/.test(l))if("@"===c||"!@"===c){const i=e[l];if(!i)throw no(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw no(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);const s=Wa(i,e.ignoreCase);a=function(e){return"@"===c?s(e):!s(e)}}else if("~"===c||"!~"===c)if(l.indexOf("$")<0){const t=Va(e,"^"+l+"$",!1);a=function(e){return"~"===c?t.test(e):!t.test(e)}}else a=function(t,i,s,n){return Va(e,"^"+ro(e,l,i,s,n)+"$",!1).test(t)};else if(l.indexOf("$")<0){const t=io(e,l);a=function(e){return"=="===c?e===t:e!==t}}else{const t=io(e,l);a=function(i,s,n,r,o){const a=ro(e,t,s,n,r);return"=="===c?i===a:i!==a}}else{const t=Wa(l.split("|"),e.ignoreCase);a=function(e){return"~"===c?t(e):!t(e)}}return-1===n?{name:i,value:s,test:function(e,t,i,s){return a(e,e,t,i,s)}}:{name:i,value:s,test:function(e,t,i,s){const r=function(e,t,i,s){if(s<0)return e;if(s<t.length)return t[s];if(s>=100){s-=100;const e=i.split(".");if(e.unshift(i),s<e.length)return e[s]}return null}(e,t,i,n);return a(r||"",e,t,i,s)}}}function Ga(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw no(e,"a 'token' attribute must be of type string, in rule: "+t);{const s={token:i.token};if(i.token.indexOf("$")>=0&&(s.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)s.bracket=1;else{if("@close"!==i.bracket)throw no(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);s.bracket=-1}if(i.next){if("string"!==typeof i.next)throw no(e,"the next state must be a string value in rule: "+t);{let n=i.next;if(!/^(@pop|@push|@popall)$/.test(n)&&("@"===n[0]&&(n=n.substr(1)),n.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,ro(e,n,"",[],""))))throw no(e,"the next state '"+i.next+"' is not defined in rule: "+t);s.next=n}}return"number"===typeof i.goBack&&(s.goBack=i.goBack),"string"===typeof i.switchTo&&(s.switchTo=i.switchTo),"string"===typeof i.log&&(s.log=i.log),"string"===typeof i.nextEmbedded&&(s.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),s}}if(Array.isArray(i)){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=Ga(e,t,i[n]);return{group:s}}if(i.cases){const s=[];for(const r in i.cases)if(i.cases.hasOwnProperty(r)){const n=Ga(e,t,i.cases[r]);"@default"===r||"@"===r||""===r?s.push({test:void 0,value:n,name:r}):"@eos"===r?s.push({test:function(e,t,i,s){return s},value:n,name:r}):s.push(za(e,t,r,n))}const n=e.defaultToken;return{test:function(e,t,i,r){for(const n of s){if(!n.test||n.test(e,t,i,r))return n.value}return n}}}throw no(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class ja{constructor(e){this.regex=new 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))throw no(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Va(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=Ga(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ka(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={languageId:e,includeLF:Ha(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"===typeof t.start?t.start:null,ignoreCase:Ha(t.ignoreCase,!1),unicode:Ha(t.unicode,!1),tokenPostfix:Ba(t.tokenPostfix,"."+e),defaultToken:Ba(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},s=t;function n(e,r,o){for(const a of o){let o=a.include;if(o){if("string"!==typeof o)throw no(i,"an 'include' attribute must be a string at: "+e);if("@"===o[0]&&(o=o.substr(1)),!t.tokenizer[o])throw no(i,"include target '"+o+"' is not defined at: "+e);n(e+"."+o,r,t.tokenizer[o])}else{const t=new ja(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(s,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(s,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw no(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: "+e);{const e=a[1];e.next=a[2],t.setAction(s,e)}}else t.setAction(s,a[1]);else{if(!a.regex)throw no(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=Ha(a.matchOnlyAtLineStart,!1)),t.setRegex(s,a.regex),t.setAction(s,a.action)}r.push(t)}}}if(s.languageId=e,s.includeLF=i.includeLF,s.ignoreCase=i.ignoreCase,s.unicode=i.unicode,s.noThrow=i.noThrow,s.usesEmbedded=i.usesEmbedded,s.stateNames=t.tokenizer,s.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw no(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const o in t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){i.start||(i.start=o);const e=t.tokenizer[o];i.tokenizer[o]=new Array,n("tokenizer."+o,i.tokenizer[o],e)}if(i.usesEmbedded=s.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw no(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"}];const r=[];for(const o of t.brackets){let e=o;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw no(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw no(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");r.push({token:e.token+i.tokenPostfix,open:io(i,e.open),close:io(i,e.close)})}return i.brackets=r,i.noThrow=!0,i}function Ya(e){jr.W6.registerLanguage(e)}function qa(){let e=[];return e=e.concat(jr.W6.getLanguages()),e}function $a(e){return Hr.get(Ui.L).languageIdCodec.encodeLanguageId(e)}function Qa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestRichLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Xa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestBasicLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Za(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Hr.get(x.JZ).register(e,t,100)}class Ja{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 ec.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const s=this._actual.tokenizeEncoded(e,i);return new Gr.rY(s.tokens,s.endState)}}class ec{constructor(e,t,i,s){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let s=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=r.startIndex;0===n?o=0:o<s&&(o=s),i[n]=new Gr.ou(o,r.scopes,t),s=o}return i}static adaptTokenize(e,t,i,s){const n=t.tokenize(i,s),r=ec._toClassicTokens(n.tokens,e);let o;return o=n.endState.equals(s)?s:n.endState,new Gr.$M(r,o)}tokenize(e,t,i){return ec.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,n=[];let r=0,o=0;for(let c=0,l=t.length;c<l;c++){const e=t[c],a=1024|s.match(i,e.scopes);if(r>0&&n[r-1]===a)continue;let l=e.startIndex;0===c?l=0:l<o&&(l=o),n[r++]=l,n[r++]=a,o=l}const a=new Uint32Array(r);for(let c=0;c<r;c++)a[c]=n[c];return a}tokenizeEncoded(e,t,i){const s=this._actual.tokenize(e,i),n=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let r;return r=s.endState.equals(i)?i:s.endState,new Gr.rY(n,r)}}function tc(e){return e&&"function"===typeof e.then}function ic(e){const t=Hr.get(Ln.L);if(e){const i=[null];for(let t=1,s=e.length;t<s;t++)i[t]=Ua.Q1.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function sc(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new Ja(e,t):new ec(e,t,Hr.get(Ui.L),Hr.get(Ln.L))}function nc(e,t){const i=new Gr.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?sc(e,i):new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,i),Hr.get(Me.pG)):null}));return Gr.dG.registerFactory(e,i)}function rc(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,sc(e,t))}function oc(e,t){return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,(t=>new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,t),Hr.get(Me.pG)))(t))}function ac(e,t){return Hr.get(D.ILanguageFeaturesService).referenceProvider.register(e,t)}function cc(e,t){return Hr.get(D.ILanguageFeaturesService).renameProvider.register(e,t)}function lc(e,t){return Hr.get(D.ILanguageFeaturesService).newSymbolNamesProvider.register(e,t)}function hc(e,t){return Hr.get(D.ILanguageFeaturesService).signatureHelpProvider.register(e,t)}function dc(e,t){return Hr.get(D.ILanguageFeaturesService).hoverProvider.register(e,{provideHover:async(e,i,s,n)=>{const r=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,s,n)).then((e=>{if(e)return!e.range&&r&&(e.range=new T.Q(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn)),e.range||(e.range=new T.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function uc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSymbolProvider.register(e,t)}function gc(e,t){return Hr.get(D.ILanguageFeaturesService).documentHighlightProvider.register(e,t)}function pc(e,t){return Hr.get(D.ILanguageFeaturesService).linkedEditingRangeProvider.register(e,t)}function mc(e,t){return Hr.get(D.ILanguageFeaturesService).definitionProvider.register(e,t)}function fc(e,t){return Hr.get(D.ILanguageFeaturesService).implementationProvider.register(e,t)}function _c(e,t){return Hr.get(D.ILanguageFeaturesService).typeDefinitionProvider.register(e,t)}function vc(e,t){return Hr.get(D.ILanguageFeaturesService).codeLensProvider.register(e,t)}function Cc(e,t,i){return Hr.get(D.ILanguageFeaturesService).codeActionProvider.register(e,{providedCodeActionKinds:i?.providedCodeActionKinds,documentation:i?.documentation,provideCodeActions:(e,i,s,n)=>{const r=Hr.get(or.DR).read({resource:e.uri}).filter((e=>T.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:r,only:s.only,trigger:s.trigger},n)},resolveCodeAction:t.resolveCodeAction})}function Ec(e,t){return Hr.get(D.ILanguageFeaturesService).documentFormattingEditProvider.register(e,t)}function bc(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(e,t)}function Sc(e,t){return Hr.get(D.ILanguageFeaturesService).onTypeFormattingEditProvider.register(e,t)}function yc(e,t){return Hr.get(D.ILanguageFeaturesService).linkProvider.register(e,t)}function wc(e,t){return Hr.get(D.ILanguageFeaturesService).completionProvider.register(e,t)}function Rc(e,t){return Hr.get(D.ILanguageFeaturesService).colorProvider.register(e,t)}function Lc(e,t){return Hr.get(D.ILanguageFeaturesService).foldingRangeProvider.register(e,t)}function Tc(e,t){return Hr.get(D.ILanguageFeaturesService).declarationProvider.register(e,t)}function xc(e,t){return Hr.get(D.ILanguageFeaturesService).selectionRangeProvider.register(e,t)}function kc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSemanticTokensProvider.register(e,t)}function Ac(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(e,t)}function Nc(e,t){return Hr.get(D.ILanguageFeaturesService).inlineCompletionsProvider.register(e,t)}function Ic(e,t){return Hr.get(D.ILanguageFeaturesService).inlineEditProvider.register(e,t)}function Oc(e,t){return Hr.get(D.ILanguageFeaturesService).inlayHintsProvider.register(e,t)}var Dc=i(49079);r.qB.wrappingIndent.defaultValue=0,r.qB.glyphMargin.defaultValue=!1,r.qB.autoIndent.defaultValue=3,r.qB.overviewRulerLanes.defaultValue=2,Dc.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Mc=(0,o.createMonacoBaseAPI)();Mc.editor={create:ra,getEditors:ca,getDiffEditors:la,onDidCreateEditor:oa,onDidCreateDiffEditor:aa,createDiffEditor:ha,addCommand:ua,addEditorAction:ga,addKeybindingRule:pa,addKeybindingRules:ma,createModel:fa,setModelLanguage:_a,setModelMarkers:va,getModelMarkers:Ea,removeAllMarkers:Ca,onDidChangeMarkers:ba,getModels:ya,getModel:Sa,onDidCreateModel:wa,onWillDisposeModel:Ra,onDidChangeModelLanguage:La,createWebWorker:Ta,colorizeElement:xa,colorize:ka,colorizeModelLine:Aa,tokenize:Na,defineTheme:Ia,setTheme:Oa,remeasureFonts:Da,registerCommand:Ma,registerLinkOpener:Pa,registerEditorOpener:Fa,AccessibilitySupport:qr.Gn,ContentWidgetPositionPreference:qr.Qj,CursorChangeReason:qr.h5,DefaultEndOfLine:qr.of,EditorAutoIndentStrategy:qr.e0,EditorOption:qr.p2,EndOfLinePreference:qr.kf,EndOfLineSequence:qr.WU,MinimapPosition:qr.R3,MinimapSectionHeaderStyle:qr.VX,MouseTargetType:qr.hS,OverlayWidgetPositionPreference:qr.dE,OverviewRulerLane:qr.A5,GlyphMarginLane:qr.ZS,RenderLineNumbersType:qr.DO,RenderMinimap:qr.hW,ScrollbarVisibility:qr.XR,ScrollType:qr.ov,TextEditorCursorBlinkingStyle:qr.U7,TextEditorCursorStyle:qr.m9,TrackedRangeStickiness:qr.kK,WrappingIndent:qr.tJ,InjectedTextCursorStops:qr.VW,PositionAffinity:qr.Ic,ShowLightbulbIconMode:qr.jT,ConfigurationChangedEvent:r.lw,BareFontInfo:Vr._8,FontInfo:Vr.YJ,TextModelResolvedOptions:Yr.X2,FindMatch:Yr.Dg,ApplyUpdateResult:r.hZ,EditorZoom:Wr.D,createMultiFileDiffEditor:da,EditorType:zr._,EditorOptions:r.qB},Mc.languages={register:Ya,getLanguages:qa,onLanguage:Qa,onLanguageEncountered:Xa,getEncodedLanguageId:$a,setLanguageConfiguration:Za,setColorMap:ic,registerTokensProviderFactory:nc,setTokensProvider:rc,setMonarchTokensProvider:oc,registerReferenceProvider:ac,registerRenameProvider:cc,registerNewSymbolNameProvider:lc,registerCompletionItemProvider:wc,registerSignatureHelpProvider:hc,registerHoverProvider:dc,registerDocumentSymbolProvider:uc,registerDocumentHighlightProvider:gc,registerLinkedEditingRangeProvider:pc,registerDefinitionProvider:mc,registerImplementationProvider:fc,registerTypeDefinitionProvider:_c,registerCodeLensProvider:vc,registerCodeActionProvider:Cc,registerDocumentFormattingEditProvider:Ec,registerDocumentRangeFormattingEditProvider:bc,registerOnTypeFormattingEditProvider:Sc,registerLinkProvider:yc,registerColorProvider:Rc,registerFoldingRangeProvider:Lc,registerDeclarationProvider:Tc,registerSelectionRangeProvider:xc,registerDocumentSemanticTokensProvider:kc,registerDocumentRangeSemanticTokensProvider:Ac,registerInlineCompletionsProvider:Nc,registerInlineEditProvider:Ic,registerInlayHintsProvider:Oc,DocumentHighlightKind:qr.Kb,CompletionItemKind:qr.Io,CompletionItemTag:qr.QP,CompletionItemInsertTextRule:qr._E,SymbolKind:qr.v0,SymbolTag:qr.H_,IndentAction:qr.l,CompletionTriggerKind:qr.t7,SignatureHelpTriggerKind:qr.WA,InlayHintKind:qr.r4,InlineCompletionTriggerKind:qr.qw,InlineEditTriggerKind:qr.sm,CodeActionTriggerType:qr.ok,NewSymbolNameTag:qr.OV,NewSymbolNameTriggerKind:qr.YT,PartialAcceptTriggerKind:qr.Ah,HoverVerbosityAction:qr.M$,FoldingRangeKind:Gr.lO,SelectedSuggestionInfo:Gr.GE};const Pc=Mc.CancellationTokenSource,Fc=Mc.Emitter,Uc=Mc.KeyCode,Hc=Mc.KeyMod,Bc=Mc.Position,Wc=Mc.Range,Vc=Mc.Selection,zc=Mc.SelectionDirection,Gc=Mc.MarkerSeverity,jc=Mc.MarkerTag,Kc=Mc.Uri,Yc=Mc.Token,qc=Mc.editor,$c=Mc.languages,Qc=globalThis.MonacoEnvironment;(Qc?.globalAPI||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Mc),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.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"]});var Xc;i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(11272),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(74800),i(37954),i(25922),i(46648),i(61082),i(19856),i(97884),i(89518),i(83488),i(3254),i(57680),i(99669),i(796),i(89336),i(19436),i(40340),i(52894),i(86492),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(24152),i(42144),i(22362),i(98408),i(61472),i(50576),i(23934);self.MonacoEnvironment=(Xc={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+Xc[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),o=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,o.length)!==o){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var a=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return n}});const Zc=s},80789:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});var s=i(64383);function n(e,t){const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t)}catch(n){return void(0,s.dz)(n)}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(n){return void(0,s.dz)(n)}}},80953:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var s=i(59284);const n=(0,i(69220).om)("spin"),r=s.forwardRef((function(e,t){const{size:i="m",style:r,className:o,qa:a}=e;return s.createElement("div",{ref:t,style:r,className:n({size:i},o),"data-qa":a},s.createElement("div",{className:n("inner")}))}))},81091:(e,t,i)=>{"use strict";var s=i(5662),n=i(34326),r=i(12437),o=i(78209);class a extends r.o{static{this.PREFIX=":"}constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,o.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,s.jG.None}provideWithTextEditor(e,t,i){const r=e.editor,o=new s.Cm;o.add(t.onDidAccept((i=>{const[s]=t.selectedItems;if(s){if(!this.isValidLineNumber(r,s.lineNumber))return;this.gotoLocation(e,{range:this.toRange(s.lineNumber,s.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const c=()=>{const e=this.parsePosition(r,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(r,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(r,e.lineNumber))return void this.clearDecorations(r);const s=this.toRange(e.lineNumber,e.column);r.revealRangeInCenter(s,0),this.addDecorations(r,s)};c(),o.add(t.onDidChangeValue((()=>c())));const l=(0,n.jA)(r);if(l){2===l.getOptions().get(68).renderType&&(l.updateOptions({lineNumbers:"on"}),o.add((0,s.s)((()=>l.updateOptions({lineNumbers:"relative"})))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),s=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:s+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,o.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,o.kg)("gotoLineLabel","Go to line {0}.",t);const s=e.getPosition()||{lineNumber:1,column:1},n=this.lineCount(e);return n>1?(0,o.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",s.lineNumber,s.column,n):(0,o.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",s.lineNumber,s.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const s=this.getModel(e);if(!s)return!1;const n={lineNumber:t,column:i};return s.validatePosition(n).equals(n)}lineCount(e){return this.getModel(e)?.getLineCount()??0}}var c=i(46359),l=i(71597),h=i(80301),d=i(51861),u=i(41234),g=i(31450),p=i(60002),m=i(51467),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};v=f([_(0,h.T)],v);class C extends g.ks{static{this.ID="editor.action.gotoLine"}constructor(){super({id:C.ID,label:d.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(v.PREFIX)}}(0,g.Fl)(C),c.O.as(l.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:d.Hw.gotoLineActionLabel,commandId:C.ID}]})},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>l,gN:()=>c,pJ:()=>d});var s=i(91090);const n="undefined"!==typeof Buffer;new s.d((()=>new Uint8Array(256)));let r;class o{static wrap(e){return n&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return n?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function c(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function l(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function d(e,t){return e[t]}function u(e,t,i){e[i]=t}},81782:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var s=i(74320),n=i(60534);class r extends n.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,s=e.length;i<s;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const s of this._getIntlSegmenterWordsOnLine(e)){if(s.index>t)break;i=s}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const o=new s.qK(10);function a(e,t){const i=`${e}/${t.join(",")}`;let s=o.get(i);return s||(s=new r(e,t),o.set(i,s)),s}},81788:(e,t,i)=>{"use strict";function s(e){return e}i.d(t,{VV:()=>r,o5:()=>n});class n{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},82320:()=>{},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>c,Yb:()=>h,_t:()=>l,vn:()=>o});var s=i(91508),n=i(38566),r=i(27760);function o(e,t,i,o=!0,a){if(e<4)return null;const c=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!c)return null;const l=new r.no(t,c,a);if(i<=1)return{indentation:"",action:null};for(let s=i-1;s>0&&""===t.getLineContent(s);s--)if(1===s)return{indentation:"",action:null};const h=function(e,t,i){const s=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let n,r=-1;for(n=t-1;n>=1;n--){if(e.tokenization.getLanguageIdAtPosition(n,0)!==s)return r;const t=e.getLineContent(n);if(!i.shouldIgnore(n)&&!/^\s+$/.test(t)&&""!==t)return n;r=n}}return-1}(t,i,l);if(h<0)return null;if(h<1)return{indentation:"",action:null};if(l.shouldIncrease(h)||l.shouldIndentNextLine(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:n.l.Indent,line:h}}if(l.shouldDecrease(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:null,line:h}}{if(1===h)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};const e=h-1,i=c.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!l.shouldIndentNextLine(t)){i=t;break}return{indentation:s.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};for(let r=h;r>0;r--){if(l.shouldIncrease(r))return{indentation:s.UU(t.getLineContent(r)),action:n.l.Indent,line:r};if(l.shouldIndentNextLine(r)){let e=0;for(let t=r-1;t>0;t--)if(!l.shouldIndentNextLine(r)){e=t;break}return{indentation:s.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(l.shouldDecrease(r))return{indentation:s.UU(t.getLineContent(r)),action:null,line:r}}return{indentation:s.UU(t.getLineContent(1)),action:null,line:1}}}function a(e,t,i,a,c,l){if(e<4)return null;const h=l.getLanguageConfiguration(i);if(!h)return null;const d=l.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;const u=new r.no(t,d,l),g=o(e,t,a,void 0,l);if(g){const i=g.line;if(void 0!==i){let r=!0;for(let e=i;e<a-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){r=!1;break}if(r){const r=h.onEnter(e,"",t.getLineContent(i),"");if(r){let e=s.UU(t.getLineContent(i));return r.removeText&&(e=e.substring(0,e.length-r.removeText)),r.indentAction===n.l.Indent||r.indentAction===n.l.IndentOutdent?e=c.shiftIndent(e):r.indentAction===n.l.Outdent&&(e=c.unshiftIndent(e)),u.shouldDecrease(a)&&(e=c.unshiftIndent(e)),r.appendText&&(e+=r.appendText),s.UU(e)}}}return u.shouldDecrease(a)?g.action===n.l.Indent?g.indentation:c.unshiftIndent(g.indentation):g.action===n.l.Indent?c.shiftIndent(g.indentation):g.indentation}return null}function c(e,t,i,a,c){if(e<4)return null;const l=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),h=c.getLanguageConfiguration(l).indentRulesSupport;if(!h)return null;t.tokenization.forceTokenization(i.startLineNumber);const d=new r.V(t,c).getProcessedTokenContextAroundRange(i),u=d.afterRangeProcessedTokens,g=d.beforeRangeProcessedTokens,p=s.UU(g.getLineContent()),m=function(e,t,i){const s={tokenization:{getLineTokens:s=>s===t?i:e.tokenization.getLineTokens(s),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:s=>s===t?i.getLineContent():e.getLineContent(s)};return s}(t,i.startLineNumber,g),f=(0,r.WR)(t,i.getStartPosition()),_=t.getLineContent(i.startLineNumber),v=s.UU(_),C=o(e,m,i.startLineNumber+1,void 0,c);if(!C){const e=f?v:p;return{beforeEnter:e,afterEnter:e}}let E=f?v:C.indentation;return C.action===n.l.Indent&&(E=a.shiftIndent(E)),h.shouldDecrease(u.getLineContent())&&(E=a.unshiftIndent(E)),{beforeEnter:f?v:p,afterEnter:E}}function l(e,t,i,a,c,l){const h=e.autoIndent;if(h<4)return null;if((0,r.WR)(t,i.getStartPosition()))return null;const d=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),u=l.getLanguageConfiguration(d).indentRulesSupport;if(!u)return null;const g=new r.V(t,l).getProcessedTokenContextAroundRange(i),p=g.beforeRangeProcessedTokens.getLineContent(),m=g.afterRangeProcessedTokens.getLineContent(),f=p+m,_=p+a+m;if(!u.shouldDecrease(f)&&u.shouldDecrease(_)){const e=o(h,t,i.startLineNumber,!1,l);if(!e)return null;let s=e.indentation;return e.action!==n.l.Indent&&(s=c.unshiftIndent(s)),s}const v=i.startLineNumber-1;if(v>0){const n=t.getLineContent(v);if(u.shouldIndentNextLine(n)&&u.shouldIncrease(_)){const n=o(h,t,i.startLineNumber,!1,l),r=n?.indentation;if(void 0!==r){const n=t.getLineContent(i.startLineNumber),o=s.UU(n),l=c.shiftIndent(r)===o,h=/^\s*$/.test(f),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=d&&d.length>0;if(l&&(u&&h))return r}}}return null}function h(e,t,i){const s=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return s?t<1||t>e.getLineCount()?null:s.getIndentMetadata(e.getLineContent(t)):null}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>o,Rl:()=>u,X5:()=>d,sq:()=>l});var s=i(25890),n=i(74444),r=i(68938);function o(e,t,i){let s=i;return s=a(e,t,s),s=a(e,t,s),s=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let s=0;s<i.length;s++){const r=s>0?i[s-1]:void 0,o=i[s],a=s+1<i.length?i[s+1]:void 0,l=new n.L(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new n.L(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?i[s]=c(o,e,t,l,h):o.seq2Range.isEmpty&&(i[s]=c(o.swap(),t,e,h,l).swap())}return i}(e,t,s),s}function a(e,t,i){if(0===i.length)return i;const s=[];s.push(i[0]);for(let a=1;a<i.length;a++){const o=s[s.length-1];let c=i[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const i=c.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(c.seq1Range.start-a)===e.getElement(c.seq1Range.endExclusive-a)&&t.getElement(c.seq2Range.start-a)===t.getElement(c.seq2Range.endExclusive-a));a++);if(a--,a===i){s[s.length-1]=new r.$8(new n.L(o.seq1Range.start,c.seq1Range.endExclusive-i),new n.L(o.seq2Range.start,c.seq2Range.endExclusive-i));continue}c=c.delta(-a)}s.push(c)}const o=[];for(let a=0;a<s.length-1;a++){const i=s[a+1];let c=s[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const o=i.seq1Range.start-c.seq1Range.endExclusive;let l;for(l=0;l<o&&(e.isStronglyEqual(c.seq1Range.start+l,c.seq1Range.endExclusive+l)&&t.isStronglyEqual(c.seq2Range.start+l,c.seq2Range.endExclusive+l));l++);if(l===o){s[a+1]=new r.$8(new n.L(c.seq1Range.start+o,i.seq1Range.endExclusive),new n.L(c.seq2Range.start+o,i.seq2Range.endExclusive));continue}l>0&&(c=c.delta(l))}o.push(c)}return s.length>0&&o.push(s[s.length-1]),o}function c(e,t,i,s,n){let r=1;for(;e.seq1Range.start-r>=s.start&&e.seq2Range.start-r>=n.start&&i.isStronglyEqual(e.seq2Range.start-r,e.seq2Range.endExclusive-r)&&r<100;)r++;r--;let o=0;for(;e.seq1Range.start+o<s.endExclusive&&e.seq2Range.endExclusive+o<n.endExclusive&&i.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===r&&0===o)return e;let a=0,c=-1;for(let l=-r;l<=o;l++){const s=e.seq2Range.start+l,n=e.seq2Range.endExclusive+l,r=e.seq1Range.start+l,o=t.getBoundaryScore(r)+i.getBoundaryScore(s)+i.getBoundaryScore(n);o>c&&(c=o,a=l)}return e.delta(a)}function l(e,t,i){const s=[];for(const n of i){const e=s[s.length-1];e?n.seq1Range.start-e.seq1Range.endExclusive<=2||n.seq2Range.start-e.seq2Range.endExclusive<=2?s[s.length-1]=new r.$8(e.seq1Range.join(n.seq1Range),e.seq2Range.join(n.seq2Range)):s.push(n):s.push(n)}return s}function h(e,t,i){const s=r.$8.invert(i,e.length),n=[];let o=new r._3(0,0);function a(i,a){if(i.offset1<o.offset1||i.offset2<o.offset2)return;const c=e.findWordContaining(i.offset1),l=t.findWordContaining(i.offset2);if(!c||!l)return;let h=new r.$8(c,l);const d=h.intersect(a);let u=d.seq1Range.length,g=d.seq2Range.length;for(;s.length>0;){const i=s[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const n=e.findWordContaining(i.seq1Range.start),o=t.findWordContaining(i.seq2Range.start),a=new r.$8(n,o),c=a.intersect(i);if(u+=c.seq1Range.length,g+=c.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;s.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&n.push(h),o=h.getEndExclusives()}for(;s.length>0;){const e=s.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const s=e[0],n=t[0];let r;r=s&&(!n||s.seq1Range.start<n.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=r.seq1Range.start?i[i.length-1]=i[i.length-1].join(r):i.push(r)}return i}(i,n)}function d(e,t,i){let s=i;if(0===s.length)return s;let r,o=0;do{r=!1;const a=[s[0]];for(let c=1;c<s.length;c++){const l=s[c],h=a[a.length-1];function d(t,i){const s=new n.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(s).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}d(h,l)?(r=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}s=a}while(o++<10&&r);return s}function u(e,t,i){let o=i;if(0===o.length)return o;let a,c=0;do{a=!1;const h=[o[0]];for(let d=1;d<o.length;d++){const u=o[d],g=h[h.length-1];function p(i,s){const r=new n.L(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),c=i.seq1Range.length,l=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,d=e.countLinesIn(s.seq1Range),p=s.seq1Range.length,m=t.countLinesIn(s.seq2Range),f=s.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+c),1.5)+Math.pow(_(40*l+h),1.5),1.5)+Math.pow(Math.pow(_(40*d+p),1.5)+Math.pow(_(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}o=h}while(c++<10&&a);const l=[];return(0,s.kj)(o,((t,i,s)=>{let o=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const c=e.extendToFullLines(i.seq1Range),h=e.getText(new n.L(c.start,i.seq1Range.start));a(h)&&(o=o.deltaStart(-h.length));const d=e.getText(new n.L(i.seq1Range.endExclusive,c.endExclusive));a(d)&&(o=o.deltaEnd(d.length));const u=r.$8.fromOffsetPairs(t?t.getEndExclusives():r._3.zero,s?s.getStarts():r._3.max),g=o.intersect(u);l.length>0&&g.getStarts().equals(l[l.length-1].getEndExclusives())?l[l.length-1]=l[l.length-1].join(g):l.push(g)})),l}},82560:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(902).then(i.bind(i,10902))})},83069:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,s=0|t.lineNumber;if(i===s){return(0|e.column)-(0|t.column)}return i-s}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},83488:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(4678).then(i.bind(i,54678))})},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>c,Of:()=>r,r0:()=>o,rr:()=>a});var s=i(78209);class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=i(r);if(null===o)return null;s[n]=l(r,o,this.modifierLabels[e])}return s.join(" ")}}const r=new n({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),o=new n({ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:s.kg({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new n({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),c=new n({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function l(e,t,i){if(null===t)return"";const s=[];return e.ctrlKey&&s.push(i.ctrlKey),e.shiftKey&&s.push(i.shiftKey),e.altKey&&s.push(i.altKey),e.metaKey&&s.push(i.metaKey),""!==t&&s.push(t),s.join(i.separator)}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>ae,SV:()=>ce,aj:()=>oe});const{entries:s,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:c,seal:l,create:h}=Object,{apply:d,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e){return e}),l||(l=function(e){return e}),d||(d=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const g=L(Array.prototype.forEach),p=L(Array.prototype.pop),m=L(Array.prototype.push),f=L(String.prototype.toLowerCase),_=L(String.prototype.toString),v=L(String.prototype.match),C=L(String.prototype.replace),E=L(String.prototype.indexOf),b=L(String.prototype.trim),S=L(Object.prototype.hasOwnProperty),y=L(RegExp.prototype.test),w=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(R,t)});var R;function L(e){return function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return d(e,t,s)}}function T(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;n&&n(e,null);let s=t.length;for(;s--;){let n=t[s];if("string"===typeof n){const e=i(n);e!==n&&(r(t)||(t[s]=e),n=e)}e[n]=!0}return e}function x(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function k(e){const t=h(null);for(const[i,n]of s(e)){S(e,i)&&(Array.isArray(n)?t[i]=x(n):n&&"object"===typeof n&&n.constructor===Object?t[i]=k(n):t[i]=n)}return t}function A(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return L(i.get);if("function"===typeof i.value)return L(i.value)}e=o(e)}return function(){return null}}const N=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=c(["#text"]),U=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=l(/<%[\w\W]*|[\w\W]*%>/gm),G=l(/\${[\w\W]*}/gm),j=l(/^data-[\-\w.\u00B7-\uFFFF]/),K=l(/^aria-[\-\w]+$/),Y=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=l(/^(?:\w+script|data):/i),$=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=l(/^html$/i),X=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:z,TMPLIT_EXPR:G,DATA_ATTR:j,ARIA_ATTR:K,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:X});const J=1,ee=3,te=7,ie=8,se=9,ne=function(){return"undefined"===typeof window?null:window};var re=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const i=t=>e(t);if(i.version="3.1.7",i.removed=[],!t||!t.document||t.document.nodeType!==se)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:R,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:V,trustedTypes:z}=t,G=u.prototype,j=A(G,"cloneNode"),K=A(G,"remove"),q=A(G,"nextSibling"),$=A(G,"childNodes"),X=A(G,"parentNode");if("function"===typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,oe="";const{implementation:ae,createNodeIterator:ce,createDocumentFragment:le,getElementsByTagName:he}=n,{importNode:de}=r;let ue={};i.isSupported="function"===typeof s&&"function"===typeof X&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:pe,TMPLIT_EXPR:me,DATA_ATTR:fe,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:Ee}=Z;let{IS_ALLOWED_URI:be}=Z,Se=null;const ye=T({},[...N,...I,...O,...M,...F]);let we=null;const Re=T({},[...U,...H,...B,...W]);let Le=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,ke=!0,Ae=!0,Ne=!1,Ie=!0,Oe=!1,De=!0,Me=!1,Pe=!1,Fe=!1,Ue=!1,He=!1,Be=!1,We=!0,Ve=!1,ze=!0,Ge=!1,je={},Ke=null;const Ye=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=T({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,it=!1,st=null;const nt=T({},[Ze,Je,et],_);let rt=null;const ot=["application/xhtml+xml","text/html"];let at=null,ct=null;const lt=n.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"===typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?_:f,Se=S(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):ye,we=S(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Re,st=S(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,_):nt,Qe=S(e,"ADD_URI_SAFE_ATTR")?T(k(Xe),e.ADD_URI_SAFE_ATTR,at):Xe,qe=S(e,"ADD_DATA_URI_TAGS")?T(k($e),e.ADD_DATA_URI_TAGS,at):$e,Ke=S(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ye,Te=S(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},xe=S(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,Le=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ae=!1),He&&(Ue=!0),je&&(Se=T({},F),we=[],!0===je.html&&(T(Se,N),T(we,U)),!0===je.svg&&(T(Se,I),T(we,H),T(we,W)),!0===je.svgFilters&&(T(Se,O),T(we,H),T(we,W)),!0===je.mathMl&&(T(Se,M),T(we,B),T(we,W))),e.ADD_TAGS&&(Se===ye&&(Se=k(Se)),T(Se,e.ADD_TAGS,at)),e.ADD_ATTR&&(we===Re&&(we=k(we)),T(we,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T(Qe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ke===Ye&&(Ke=k(Ke)),T(Ke,e.FORBID_CONTENTS,at)),ze&&(Se["#text"]=!0),Me&&T(Se,["html","head","body"]),Se.table&&(T(Se,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,oe=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(i=t.getAttribute(s));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(z,o)),null!==re&&"string"===typeof oe&&(oe=re.createHTML(""));c&&c(e),ct=e}},ut=T({},["mi","mo","mn","ms","mtext"]),gt=T({},["annotation-xml"]),pt=T({},["title","style","font","a","script"]),mt=T({},[...I,...O,...D]),ft=T({},[...M,...P]),_t=function(e){m(i.removed,{element:e});try{X(e).removeChild(e)}catch(t){K(e)}},vt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(s){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ue||He)try{_t(t)}catch(s){}else try{t.setAttribute(e,"")}catch(s){}},Ct=function(e){let t=null,i=null;if(Fe)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===rt&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=re?re.createHTML(e):e;if(tt===et)try{t=(new V).parseFromString(s,rt)}catch(o){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=it?oe:s}catch(o){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),tt===et?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:r},Et=function(e){return ce.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof L)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof d&&e instanceof d},yt=function(e,t,s){ue[e]&&g(ue[e],(e=>{e.call(i,t,s,ct)}))},wt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),bt(e))return _t(e),!0;const s=at(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:s,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return _t(e),!0;if(e.nodeType===te)return _t(e),!0;if(De&&e.nodeType===ie&&y(/<[/\w]/g,e.data))return _t(e),!0;if(!Se[s]||Te[s]){if(!Te[s]&&Lt(s)){if(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,s))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(s))return!1}if(ze&&!Ke[s]){const t=X(e)||e.parentNode,i=$(e)||e.childNodes;if(i&&t){for(let s=i.length-1;s>=0;--s){const n=j(i[s],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,q(e))}}}return _t(e),!0}return e instanceof u&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const i=f(e.tagName),s=f(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===i:t.namespaceURI===Ze?"svg"===i&&("annotation-xml"===s||ut[s]):Boolean(mt[i]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===i:t.namespaceURI===Je?"math"===i&>[s]:Boolean(ft[i]):e.namespaceURI===et?!(t.namespaceURI===Je&&!gt[s])&&!(t.namespaceURI===Ze&&!ut[s])&&!ft[i]&&(pt[i]||!mt[i]):!("application/xhtml+xml"!==rt||!st[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===ee&&(t=e.textContent,g([ge,pe,me],(e=>{t=C(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Rt=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in n||i in lt))return!1;if(Ae&&!xe[t]&&y(fe,t));else if(ke&&y(_e,t));else if(!we[t]||xe[t]){if(!(Lt(e)&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&y(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,i)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(i))))return!1}else if(Qe[t]);else if(y(be,C(i,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(i,"data:")||!qe[e]){if(Ne&&!y(ve,C(i,Ce,"")));else if(i)return!1}else;return!0},Lt=function(e){return"annotation-xml"!==e&&v(e,Ee)},Tt=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};let n=t.length;for(;n--;){const o=t[n],{name:a,namespaceURI:c,value:l}=o,h=at(a);let d="value"===a?l:b(l);if(s.attrName=h,s.attrValue=d,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),d=s.attrValue,s.forceKeepAttr)continue;if(vt(a,e),!s.keepAttr)continue;if(!Ie&&y(/\/>/i,d)){vt(a,e);continue}Oe&&g([ge,pe,me],(e=>{d=C(d,e," ")}));const u=at(e.nodeName);if(Rt(u,h,d))if(!Ve||"id"!==h&&"name"!==h||(vt(a,e),d="user-content-"+d),De&&y(/((--!?|])>)|<\/(style|title)/i,d))vt(a,e);else{if(re&&"object"===typeof z&&"function"===typeof z.getAttributeType)if(c);else switch(z.getAttributeType(u,h)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}try{c?e.setAttributeNS(c,a,d):e.setAttribute(a,d),bt(e)?_t(e):p(i.removed)}catch(r){}}}yt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const s=Et(t);for(yt("beforeSanitizeShadowDOM",t,null);i=s.nextNode();)yt("uponSanitizeShadowNode",i,null),wt(i)||(i.content instanceof a&&e(i.content),Tt(i));yt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,n=null,o=null,c=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw w("toString is not a function");if("string"!==typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Pe||dt(t),i.removed=[],"string"===typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=at(e.nodeName);if(!Se[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=Ct("\x3c!----\x3e"),n=s.ownerDocument.importNode(e,!0),n.nodeType===J&&"BODY"===n.nodeName||"HTML"===n.nodeName?s=n:s.appendChild(n);else{if(!Ue&&!Oe&&!Me&&-1===e.indexOf("<"))return re&&Be?re.createHTML(e):e;if(s=Ct(e),!s)return Ue?null:Be?oe:""}s&&Fe&&_t(s.firstChild);const l=Et(Ge?e:s);for(;o=l.nextNode();)wt(o)||(o.content instanceof a&&xt(o.content),Tt(o));if(Ge)return e;if(Ue){if(He)for(c=le.call(s.ownerDocument);s.firstChild;)c.appendChild(s.firstChild);else c=s;return(we.shadowroot||we.shadowrootmode)&&(c=de.call(r,c,!0)),c}let h=Me?s.outerHTML:s.innerHTML;return Me&&Se["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&y(Q,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),Oe&&g([ge,pe,me],(e=>{h=C(h,e," ")})),re&&Be?re.createHTML(h):h},i.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},i.clearConfig=function(){ct=null,Pe=!1},i.isValidAttribute=function(e,t,i){ct||dt({});const s=at(e),n=at(t);return Rt(s,n,i)},i.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},i.removeHook=function(e){if(ue[e])return p(ue[e])},i.removeHooks=function(e){ue[e]&&(ue[e]=[])},i.removeAllHooks=function(){ue={}},i}();re.version,re.isSupported;const oe=re.sanitize,ae=(re.setConfig,re.clearConfig,re.isValidAttribute,re.addHook),ce=re.removeHook;re.removeHooks,re.removeAllHooks},83823:(e,t,i)=>{e.exports=function(e){const t=i(94297),s={string:null,"yql.string":null};function n(e,t){const i=e[0],n=t[0];return(Object.prototype.hasOwnProperty.call(s,i.$type)&&Object.prototype.hasOwnProperty.call(s,n.$type)&&i.$value)>n.$value?1:-1}return function(i,s,r){let o=i.slice().sort(n);const a=s.limitMapLength>0&&i.length>s.limitMapLength;return a&&(o=o.slice(0,s.limitMapLength-1)),o.map((function(i){let n="";return n+=e(i[0],s,r+1),n+=t.getKeyValueSeparator(s),n+=e(i[1],s,r+1),n})).concat(a?["... "+(i.length-s.limitMapLength+1)+" hidden keys"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,r))}}},83844:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>h,Fd:()=>g,Gu:()=>d,HP:()=>u,Hz:()=>E,JO:()=>v,a:()=>_,e$:()=>f,oG:()=>b,x1:()=>m,yL:()=>C});var s=i(66782),n=i(90766),r=i(47661),o=i(41234),a=i(78748),c=i(46359),l=i(78209);function h(e){return`--vscode-${e.replace(/\./g,"-")}`}function d(e){return`var(${h(e)})`}function u(e,t){return`var(${h(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};const p=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,s=!1,n){const r={id:e,description:i,defaults:t,needsTransparency:s,deprecationMessage:n};this.colorsById[e]=r;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return n&&(o.deprecationMessage=n),s&&(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=l.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:i,oneOf:[o,{type:"string",const:"default",description:l.kg("useDefault","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){const i=this.colorsById[e];if(i?.defaults){return S(null!==(s=i.defaults)&&"object"===typeof s&&"light"in s&&"dark"in s?i.defaults[t.type]:i.defaults,t)}var s}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,s=-1===t.indexOf(".")?0:1;return i!==s?i-s:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,s,n){return p.registerColor(e,t,i,s,n)}function f(e,t){return{op:0,value:e,factor:t}}function _(e,t){return{op:1,value:e,factor:t}}function v(e,t){return{op:2,value:e,factor:t}}function C(...e){return{op:4,values:e}}function E(e,t,i){return{op:6,if:e,then:t,else:i}}function b(e,t,i,s){return{op:5,value:e,background:t,factor:i,transparency:s}}function S(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r.Q1.fromHex(e):t.getColor(e):e instanceof r.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return S(e.value,t)?.darken(e.factor);case 1:return S(e.value,t)?.lighten(e.factor);case 2:return S(e.value,t)?.transparent(e.factor);case 3:{const i=S(e.background,t);return i?S(e.value,t)?.makeOpaque(i):S(e.value,t)}case 4:for(const i of e.values){const e=S(i,t);if(e)return e}return;case 6:return S(t.defines(e.if)?e.then:e.else,t);case 5:{const i=S(e.value,t);if(!i)return;const s=S(e.background,t);return s?i.isDarkerThan(s)?r.Q1.getLighterColor(i,s,e.factor).transparent(e.transparency):r.Q1.getDarkerColor(i,s,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.xb)(e)}}(e,t):void 0}c.O.add(g.ColorContribution,p);const y="vscode://schemas/workbench-colors",w=c.O.as(a.F.JSONContribution);w.registerSchema(y,p.getColorSchema());const R=new n.uC((()=>w.notifySchemaChanged(y)),200);p.onDidChangeSchema((()=>{R.isScheduled()||R.schedule()}))},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>c,vH:()=>l});var s=i(78209),n=i(41234),r=i(46359),o=i(44320),a=i(1646);const c=new class{constructor(){this._onDidChangeLanguages=new n.vl,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}};r.O.add("editor.modesRegistry",c);const l="plaintext";c.registerLanguage({id:l,extensions:[".txt"],aliases:[s.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),r.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},83993:(e,t,i)=>{"use strict";i.d(t,{uP:()=>h,F1:()=>o});class s{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var n=i(85600);class r{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i<s;i++)t[i]=e.charCodeAt(i);return t}}function o(e,t,i){return new h(new r(e),new r(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class c{static Copy(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}static Copy2(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}}class l{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new s(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,n,r]=h._getElements(e),[o,a,c]=h._getElements(t);this._hasStrings=r&&c,this._originalStringElements=s,this._originalElementsOrHash=n,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,s=t.length;i<s;i++)e[i]=(0,n.e2)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,s,n){const r=[!1];let o=this.ComputeDiffRecursive(e,t,i,s,r);return n&&(o=this.PrettifyChanges(o)),{quitEarly:r[0],changes:o}}ComputeDiffRecursive(e,t,i,n,r){for(r[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new s(e,0,i,n-i+1)]):e<=t?(a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new s(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],c=[0],l=this.ComputeRecursionPoint(e,t,i,n,o,c,r),h=o[0],d=c[0];if(null!==l)return l;if(!r[0]){const o=this.ComputeDiffRecursive(e,h,i,d,r);let a=[];return a=r[0]?[new s(h+1,t-(h+1)+1,d+1,n-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,n,r),this.ConcatenateChanges(o,a)}return[new s(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,a,c,h,d,u,g,p,m,f,_,v,C){let E=null,b=null,S=new l,y=t,w=i,R=p[0]-_[0]-n,L=-1073741824,T=this.m_forwardHistory.length-1;do{const t=R+e;t===y||t<w&&h[t-1]<h[t+1]?(m=(u=h[t+1])-R-n,u<L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m),R=t+1-e):(m=(u=h[t-1]+1)-R-n,u<L&&S.MarkNextChange(),L=u-1,S.AddOriginalElement(u,m+1),R=t-1-e),T>=0&&(e=(h=this.m_forwardHistory[T])[0],y=1,w=h.length-1)}while(--T>=-1);if(E=S.getReverseChanges(),C[0]){let e=p[0]+1,t=_[0]+1;if(null!==E&&E.length>0){const i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}b=[new s(e,g-e+1,t,f-t+1)]}else{S=new l,y=o,w=a,R=p[0]-_[0]-c,L=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=R+r;e===y||e<w&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-R-c,u>L&&S.MarkNextChange(),L=u+1,S.AddOriginalElement(u+1,m+1),R=e+1-r):(m=(u=d[e-1])-R-c,u>L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m+1),R=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],y=1,w=d.length-1)}while(--T>=-1);b=S.getChanges()}return this.ConcatenateChanges(E,b)}ComputeRecursionPoint(e,t,i,n,r,o,a){let l=0,h=0,d=0,u=0,g=0,p=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),C=n-i,E=t-e,b=e-i,S=t-n,y=(E-C)%2===0;_[C]=e,v[E]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,R=0;d=this.ClipDiagonalBound(C-w,w,C,f),u=this.ClipDiagonalBound(C+w,w,C,f);for(let e=d;e<=u;e+=2){l=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=l-(e-C)-b;const i=l;for(;l<t&&h<n&&this.ElementsAreEqual(l+1,h+1);)l++,h++;if(_[e]=l,l+h>m+R&&(m=l,R=h),!y&&Math.abs(e-E)<=w-1&&l>=v[e])return r[0]=l,o[0]=h,i<=v[e]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}const L=(m-e+(R-i)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,r[0]=m,o[0]=R,L>0&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):(e++,i++,[new s(e,t-e+1,i,n-i+1)]);g=this.ClipDiagonalBound(E-w,w,E,f),p=this.ClipDiagonalBound(E+w,w,E,f);for(let s=g;s<=p;s+=2){l=s===g||s<p&&v[s-1]>=v[s+1]?v[s+1]-1:v[s-1],h=l-(s-E)-S;const c=l;for(;l>e&&h>i&&this.ElementsAreEqual(l,h);)l--,h--;if(v[s]=l,y&&Math.abs(s-C)<=w&&l<=_[s])return r[0]=l,o[0]=h,c>=_[s]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}if(w<=1447){let e=new Int32Array(u-d+2);e[0]=C-d+1,c.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=E-g+1,c.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],s=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,n=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength<s&&i.modifiedStart+i.modifiedLength<n&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!o||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let s=0,n=0;if(t>0){const i=e[t-1];s=i.originalStart+i.originalLength,n=i.modifiedStart+i.modifiedLength}const r=i.originalLength>0,o=i.modifiedLength>0;let a=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,l=i.modifiedStart-e;if(t<s||l<n)break;if(r&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+i.modifiedLength))break;const h=(t===s&&l===n?5:0)+this._boundaryScore(t,i.originalLength,l,i.modifiedLength);h>c&&(c=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const l=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],l)&&(e[t-1]=l[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const i=e[t-1],s=e[t],n=s.originalStart-i.originalStart-i.originalLength,r=i.originalStart,o=s.originalStart+s.originalLength,a=o-r,c=i.modifiedStart,l=s.modifiedStart+s.modifiedLength,h=l-c;if(n<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(r,a,c,h,n);if(e){const[t,r]=e;t===i.originalStart+i.originalLength&&r===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=r-i.modifiedStart,s.originalStart=t+n,s.modifiedStart=r+n,s.originalLength=o-s.originalStart,s.modifiedLength=l-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,s,n){if(t<n||s<n)return null;const r=e+t-n+1,o=i+s-n+1;let a=0,c=0,l=0;for(let h=e;h<r;h++)for(let e=i;e<o;e++){const t=this._contiguousSequenceScore(h,e,n);t>0&&t>a&&(a=t,c=h,l=e)}return a>0?[c,l]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let n=0;n<i;n++){if(!this.ElementsAreEqual(e+n,t+n))return 0;s+=this._originalStringElements[e+n].length}return s}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,s)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return c.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],c.Copy(t,1,s,e.length,t.length-1),s}{const i=new Array(e.length+t.length);return c.Copy(e,0,i,0,e.length),c.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new s(n,r,o,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e<s)return e;const n=t%2===0;if(e<0){return n===(i%2===0)?0:1}return n===((s-i-1)%2===0)?s-1:s-2}}},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>l,ad:()=>n,gD:()=>c,iB:()=>o,kW:()=>r,pG:()=>s});const s=(0,i(63591).u1)("configurationService");function n(e,t){const i=Object.create(null);for(const s in e)r(i,s,e[s],t);return i}function r(e,t,i,s){const n=t.split("."),r=n.pop();let o=e;for(let c=0;c<n.length;c++){const e=n[c];let i=o[e];switch(typeof i){case"undefined":i=o[e]=Object.create(null);break;case"object":if(null===i)return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is null`);break;default:return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is ${JSON.stringify(i)}`)}o=i}if("object"===typeof o&&null!==o)try{o[r]=i}catch(a){s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function o(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const s=e[i];"object"!==typeof s||Array.isArray(s)||(a(s,t),0===Object.keys(s).length&&delete e[i])}}else delete e[i]}function c(e,t,i){const s=function(e,t){let i=e;for(const s of t){if("object"!==typeof i||null===i)return;i=i[s]}return i}(e,t.split("."));return"undefined"===typeof s?i:s}function l(e){return e.replace(/[\[\]]/g,"")}},84040:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},84084:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var s=i(25890),n=i(94650),r=i(19131);function o(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new s.j3(c(e)),o=c(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let l=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return l&&e.unshift(l),e}const t=[];for(;l&&!(0,r.Vh)(e);){const[s,n]=l.splitAt(e);t.push(s),e=(0,r.MS)(s.lengthAfter,e),l=n??i.dequeue()}return(0,r.Vh)(e)||t.push(new a(!1,e,e)),t}const d=[];function u(e,t,i){if(d.length>0&&(0,r.wP)(d[d.length-1].endOffset,e)){const e=d[d.length-1];d[d.length-1]=new n.c(e.startOffset,t,(0,r.QB)(e.newLength,i))}else d.push({startOffset:e,endOffset:t,newLength:i})}let g=r.Vp;for(const s of o){const e=h(s.lengthBefore);if(s.modified){const t=(0,r.pW)(e,(e=>e.lengthBefore)),i=(0,r.QB)(g,t);u(g,i,s.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,r.QB)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return d}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,r.MS)(e,this.lengthAfter);return(0,r.wP)(t,r.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,r.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,r.l4)(this.lengthBefore)} -> ${(0,r.l4)(this.lengthAfter)}`}}function c(e){const t=[];let i=r.Vp;for(const s of e){const e=(0,r.MS)(i,s.startOffset);(0,r.Vh)(e)||t.push(new a(!1,e,e));const n=(0,r.MS)(s.startOffset,s.endOffset);t.push(new a(!0,n,s.newLength)),i=s.endOffset}return t}},84226:(e,t,i)=>{"use strict";i.d(t,{zn:()=>O,x2:()=>D,j6:()=>U,RL:()=>P,zl:()=>V,n6:()=>z,z0:()=>H,_X:()=>B,e3:()=>W});var s=i(8597),n=i(11799),r=i(36921),o=i(10350),a=i(25689),c=i(47661),l=i(41234),h=i(10146),d=i(31450),u=i(80301),g=i(29163),p=i(92403),m=i(96032),f=i(5662),_=i(36677),v=i(87289);const C=new c.Q1(new c.bU(0,122,204)),E={showArrow:!0,showFrame:!0,className:"",frameColor:C,arrowColor:C,keepEditorSelection:!1};class b{constructor(e,t,i,s,n,r,o,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=s,this.showInHiddenAreas=o,this.ordinal=a,this._onDomNodeTop=n,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class S{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class y{static{this._IdGenerator=new m.n(".arrow-decoration-")}constructor(e){this._editor=e,this._ruleName=y._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),s.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){s.U2(this._ruleName),s.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}class w{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.Go(t),h.co(this.options,E,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new y(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash?.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.Q.isIRange(e)?_.Q.lift(e):_.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.kI.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow?.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),s=this.editor.getLayoutInfo(),n=this._getWidth(s);this.domNode.style.width=`${n}px`,this.domNode.style.left=this._getLeft(s)+"px";const r=document.createElement("div");r.style.overflow="hidden";const o=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,e)}let a=0,c=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(o/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(o/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new b(r,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new S("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const l=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=l+"px",this.container.style.overflow="hidden"),this._doLayout(l,n),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),s=i<0?Math.ceil(i):Math.floor(i),n=e.heightInLines+s;n>5&&n<35&&this._relayout(n)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var R=i(78209),L=i(57629),T=i(32848),x=i(14718),k=i(63591),A=i(66261),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=(0,k.u1)("IPeekViewService");var D;(0,x.v)(O,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new T.N1("inReferenceSearchEditor",!0,R.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(D||(D={}));let M=class{static{this.ID="editor.contrib.referenceController"}constructor(e,t){e instanceof g.t&&D.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.T).getFocusedCodeEditor();return t instanceof g.t?t.getParentEditor():t}M=N([I(1,T.fN)],M),(0,d.HW)(M.ID,M,0);const F={headerBackgroundColor:c.Q1.white,primaryHeadingColor:c.Q1.fromHex("#333333"),secondaryHeadingColor:c.Q1.fromHex("#6c6c6cb3")};let U=class extends w{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,h.co(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=s.$(".head"),this._bodyElement=s.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=s.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),s.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),s.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=s.$("span.filename"),this._secondaryHeading=s.$("span.dirname"),this._metaHeading=s.$("span.meta"),s.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=s.$(".peekview-actions");s.BC(this._headElement,i);const c=this._getActionBarOptions();this._actionbarWidget=new n.E(i,c),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.rc("peekview.close",R.kg("label.close","Close"),a.L.asClassName(o.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:L.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:s.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,s.WU(this._metaHeading)):s.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),s=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(s,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};U=N([I(2,k._Y)],U);const H=(0,A.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewTitleBackground","Background color of the peek view title area.")),B=(0,A.x1A)("peekViewTitleLabel.foreground",{dark:c.Q1.white,light:c.Q1.black,hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewTitleForeground","Color of the peek view title.")),W=(0,A.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},R.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),V=(0,A.x1A)("peekView.border",{dark:A.pOz,light:A.pOz,hcDark:A.b1q,hcLight:A.b1q},R.kg("peekViewBorder","Color of the peek view borders and arrow.")),z=(0,A.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewResultsBackground","Background color of the peek view result list.")),G=((0,A.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.fileForeground",{dark:c.Q1.white,light:"#1E1E1E",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},R.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionForeground",{dark:c.Q1.white,light:"#6C6C6C",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,A.x1A)("peekViewEditorGutter.background",G,R.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,A.x1A)("peekViewEditorStickyScroll.background",G,R.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,A.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},R.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,A.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},R.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,A.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:A.buw,hcLight:A.buw},R.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},84316:e=>{e.exports=function(){function e(e){const t=864e5*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid date":i.toISOString().split("T")[0]}return e.isScalar=!0,e}},84325:(e,t,i)=>{"use strict";var s,n=i(8597),r=i(47661),o=i(5662),a=i(31450),c=i(62083),l=i(25982),h=i(20788),d=i(10154),u=i(24520),g=i(51861),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends o.jG{static{s=this}static{this.ID="editor.contrib.inspectTokens"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(c.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f=s=p([m(1,u.L),m(2,d.L)],f);class _ extends a.ks{constructor(){super({id:"editor.action.inspectTokens",label:g.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);i?.launch()}}class v extends o.jG{static{this._ID="editor.contrib.inspectTokensWidget"}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=c.dG.get(t);if(i)return i;const s=e.encodeLanguageId(t);return{getInitialState:()=>h.r3,tokenize:(e,i,s)=>(0,h.$H)(t,s),tokenizeEncoded:(e,t,i)=>(0,h.Lh)(s,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const s=t.tokens1[n];if(e.column-1>=s.offset){i=n;break}}let s=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){s=n;break}const o=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,s=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;a=o.substring(e,s)}(0,n.Ln)(this._domNode,(0,n.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);switch(s){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(s)}}return t}(a),(0,n.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const c=1+(s<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(s<<1)]):null;(0,n.BC)(this._domNode,(0,n.$)("table.tm-metadata-table",void 0,(0,n.$)("tbody",void 0,(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"language"),(0,n.$)("td.tm-metadata-value",void 0,`${c?c.languageId:"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"token type"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._tokenTypeToString(c.tokenType):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"font style"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._fontStyleToString(c.fontStyle):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"foreground"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.foreground):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"background"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.background):"-?-"}`))))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,n.BC)(this._domNode,(0,n.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=c.dG.getColorMap(),i=l.x.getLanguageId(e),s=l.x.getTokenType(e),n=l.x.getFontStyle(e),r=l.x.getForeground(e),o=l.x.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:s,fontStyle:n,foreground:t[r],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),s=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:s.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}(0,a.HW)(f.ID,f,4),(0,a.Fl)(_)},84565:(e,t,i)=>{"use strict";var s,n;i.d(t,{Lx:()=>n,Yo:()=>s,jh:()=>r,y2:()=>o}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(n||(n={}));class r extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class o{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}}},84585:(e,t,i)=>{"use strict";i.d(t,{K:()=>n,r:()=>s});const s="editor.semanticHighlighting";function n(e,t,i){const n=i.getValue(s,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"===typeof n?n:t.getColorTheme().semanticHighlighting}},84739:(e,t,i)=>{"use strict";var s;i.d(t,{N6:()=>s,TH:()=>n,pv:()=>r}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(s||(s={}));class n{constructor(e,t,i,s,n,r){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=s,this.forWrappedLinesAfterColumn=n,this.forWrappedLinesBeforeOrAtColumn=r,-1!==e===(-1!==t))throw new Error}}class r{constructor(e,t){this.top=e,this.endColumn=t}}},84840:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(734).then(i.bind(i,734))})},85117:(e,t,i)=>{"use strict";var s,n=i(25890),r=i(90766),o=i(18447),a=i(47661),c=i(64383),l=i(41234),h=i(5662),d=i(91508),u=i(79400),g=i(31450),p=i(80301),m=i(83069),f=i(36677),_=i(60002),v=i(87289),C=i(17469),E=i(78209),b=i(32848),S=i(56942),y=i(66261),w=i(32500),R=i(78381),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=new b.N1("LinkedEditingInputVisible",!1);let k=class extends h.jG{static{s=this}static{this.ID="editor.contrib.linkedEditing"}static{this.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"})}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this.languageConfigurationService=s,this._syncRangesToken=0,this._localToDispose=this._register(new h.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=x.bindTo(t),this._debounceInformation=n.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(94))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const s=new r.ve(this._debounceInformation.get(t)),n=()=>{this._rangeUpdateTriggerPromise=s.trigger((()=>this.updateRanges()),this._debounceDuration??this._debounceInformation.get(t))},o=new r.ve(0),a=e=>{this._rangeSyncTriggerPromise=o.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{n()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}n()}))),this._localToDispose.add({dispose:()=>{s.dispose(),o.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const s=t.getValueInRange(i);if(this._currentWordPattern){const e=s.match(this._currentWordPattern);if((e?e[0].length:0)!==s.length)return this.clearRanges()}const n=[];for(let r=1,o=this._currentDecorations.length;r<o;r++){const e=this._currentDecorations.getRange(r);if(e)if(e.startLineNumber!==e.endLineNumber)n.push({range:e,text:s});else{let i=t.getValueInRange(e),r=s,o=e.startColumn,a=e.endColumn;const c=d.Qp(i,r);o+=c,i=i.substr(c),r=r.substr(c);const l=d.Vi(i,r);a-=l,i=i.substr(0,i.length-l),r=r.substr(0,r.length-l),o===a&&0===r.length||n.push({range:new f.Q(e.startLineNumber,o,e.endLineNumber,a),text:r})}}if(0!==n.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",n),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const r=this._currentRequestCts=new o.Qi;try{const e=new R.W(!1),o=await I(this._providers,i,t,r.token);if(this._debounceInformation.update(i,e.elapsed()),r!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let a=[];o?.ranges&&(a=o.ranges),this._currentWordPattern=o?.wordPattern||this._languageWordPattern;let c=!1;for(let i=0,s=a.length;i<s;i++)if(f.Q.containsPosition(a[i],t)){if(c=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!c)return void this.clearRanges();const l=a.map((e=>({range:e,options:s.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(l),this._syncRangesToken++}catch(a){(0,c.MB)(a)||(0,c.dz)(a),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}};k=s=L([T(1,b.fN),T(2,S.ILanguageFeaturesService),T(3,C.JZ),T(4,w.ILanguageFeatureDebounceService)],k);class A extends g.ks{constructor(){super({id:"editor.action.linkedEditing",label:E.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:b.M$.and(_.R.writable,_.R.hasRenameProvider),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return u.r.isUri(s)&&m.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),c.dz):super.runCommand(e,t)}run(e,t){const i=k.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const N=g.DX.bindToContribution(k.get);function I(e,t,i,s){const o=e.ordered(t);return(0,r.$1)(o.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,s)}catch(n){return void(0,c.M_)(n)}})),(e=>!!e&&n.EI(e?.ranges)))}(0,g.E_)(new N({id:"cancelLinkedEditingInput",precondition:x,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,y.x1A)("editor.linkedEditingBackground",{dark:a.Q1.fromHex("#f00").transparent(.3),light:a.Q1.fromHex("#f00").transparent(.3),hcDark:a.Q1.fromHex("#f00").transparent(.3),hcLight:a.Q1.white},E.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:s}=e.get(S.ILanguageFeaturesService);return I(s,t,i,o.XO.None)})),(0,g.HW)(k.ID,k,1),(0,g.Fl)(A)},85152:(e,t,i)=>{"use strict";function s(e){return e<0?0:e>255?255:0|e}function n(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>s,j:()=>n})},85283:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 01-1.06 0l-2.5-2.5a.75.75 0 011.06-1.06l1.22 1.22V1.75a.75.75 0 011.5 0v7.69l1.22-1.22a.75.75 0 111.06 1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,q:()=>c});var s=i(42731),n=i(17799),r=i(44320),o=i(79400),a=i(61292);function c(e){const t=new n.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const s=new Promise((e=>i.getAsString(e)));t.append(e,(0,n.gf)(s))}else if("file"===i.kind){const s=i.getAsFile();s&&t.append(e,l(s))}}return t}function l(e){const t=e.path?o.r.parse(e.path):void 0;return(0,n.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.sV.EDITORS,a.sV.FILES,s.t.RESOURCES,s.t.INTERNAL_URI_LIST]);function d(e,t=!1){const i=c(e),a=i.get(s.t.INTERNAL_URI_LIST);if(a)i.replace(r.K.uriList,a);else if(t||!i.has(r.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(o.r.file(i).toString()):t.push(o.r.parse(e.name,!0).toString())}catch{}}}t.length&&i.replace(r.K.uriList,(0,n.gf)(n.jt.create(t)))}for(const s of h)i.delete(s);return i}},85541:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,v:()=>r});var s=i(80537),n=i(29319);function r(e,t,i){return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:i.additionalEdit?.edits??[]}:{edits:[...t.map((t=>new s.cw(e,{range:t,text:"string"===typeof i.insertText?n.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...i.additionalEdit?.edits??[]]}}function o(e){function t(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const i=new Map;for(const r of e)for(const s of r.yieldTo??[])for(const n of e)if(n!==r&&t(s,n)){let e=i.get(r);e||(e=[],i.set(r,e)),e.push(n)}if(!i.size)return Array.from(e);const s=new Set,n=[];return function e(t){if(!t.length)return[];const r=t[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),t;if(s.has(r))return e(t.slice(1));let o=[];const a=i.get(r);return a&&(n.push(r),o=e(a),n.pop()),s.add(r),[...o,r,...e(t.slice(1))]}(Array.from(e))}},85600:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>r,tW:()=>n,v7:()=>d});var s=i(91508);function n(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(i=e,s=o(104579,s=t),i.reduce(((e,t)=>r(t,e)),s)):function(e,t){return t=o(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),r(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return o(e?433:863,t)}(e,t);case"number":return o(e,t);case"undefined":return o(937,t);default:return o(617,t)}var i,s}function o(e,t){return(t<<5)-t+e|0}function a(e,t){t=o(149417,t);for(let i=0,s=e.length;i<s;i++)t=o(e.charCodeAt(i),t);return t}function c(e,t,i=32){const s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function l(e,t=0,i=e.byteLength,s=0){for(let n=0;n<i;n++)e[t+n]=s}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let n,r,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(n=a,r=-1,a=0):(n=e.charCodeAt(0),r=0);;){let c=n;if(s.pc(n)){if(!(r+1<t)){a=n;break}{const t=e.charCodeAt(r+1);s.LJ(t)?(r++,c=s.z_(n,t)):c=65533}}else s.LJ(n)&&(c=65533);if(o=this._push(i,o,c),r++,!(r<t))break;n=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,c(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,s,n,r=this._h0,o=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let d=0;d<80;d++)d<20?(i=o&a|~o&l,s=1518500249):d<40?(i=o^a^l,s=1859775393):d<60?(i=o&a|o&l|a&l,s=2400959708):(i=o^a^l,s=3395469782),n=c(r,5)+i+h+s+e.getUint32(4*d,!1)&4294967295,h=l,l=a,a=c(o,30),o=r,r=n;this._h0=this._h0+r&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}},85646:(e,t,i)=>{"use strict";var s=i(31450),n=i(87119),r=i(78209),o=i(83844),a=i(1098),c=i(30076),l=i(41127),h=i(31308),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};class p{constructor(e){this.instantiationService=e}init(...e){}}let m=class extends p{constructor(e,t){super(t),this.init(e)}};var f;m=u([g(1,d._Y)],m),(0,s.HW)(a.X.ID,(f=()=>a.X,(0,c.e)()?function(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...t){this._autorun=(0,h.yC)(((i,s)=>{const n=(0,l.b)(e(),i);s.add(this.instantiationService.createInstance(n,...t))}))}dispose(){this._autorun?.dispose()}}}(f,m):f()),0),(0,o.x1)("editor.placeholder.foreground",n.Ek,(0,r.kg)("placeholderForeground","Foreground color of the placeholder text in the editor."))},85858:e=>{!function(){"use strict";const t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(e&&(1===e.nodeType||9===e.nodeType))return"element";const t=Object.prototype.toString.call(e),i=t.substring(8,t.length-1).toLowerCase();if("number"===i){if(isNaN(e))return"nan";if(!isFinite(e))return"infinity"}return i},i=["Null","Undefined","Object","Array","String","Number","Boolean","Function","RegExp","Element","NaN","Infinite","Symbol"],s=function(e){t["is"+e]=function(i){return t(i)===e.toLowerCase()}};for(let e=0;e<i.length;e++)s(i[e]);e.exports=t}()},85872:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(1606).then(i.bind(i,1606))})},86492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(5050).then(i.bind(i,95050))})},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>c});var s=i(64383),n=i(74444),r=i(36677),o=i(46041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new c(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new c(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new s.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let s=1;s<e.length;s++)t=Math.min(t,e[s].startLineNumber),i=Math.max(i,e[s].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new s.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new r.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new r.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new n.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class c{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const s=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,s)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,s=0,n=null;for(;i<this._normalizedRanges.length||s<e._normalizedRanges.length;){let r=null;if(i<this._normalizedRanges.length&&s<e._normalizedRanges.length){const t=this._normalizedRanges[i],n=e._normalizedRanges[s];t.startLineNumber<n.startLineNumber?(r=t,i++):(r=n,s++)}else i<this._normalizedRanges.length?(r=this._normalizedRanges[i],i++):(r=e._normalizedRanges[s],s++);null===n?n=r:n.endLineNumberExclusive>=r.startLineNumber?n=new a(n.startLineNumber,Math.max(n.endLineNumberExclusive,r.endLineNumberExclusive)):(t.push(n),n=r)}return null!==n&&t.push(n),new c(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new c([e]);const s=[];let n=e.startLineNumber;for(let r=t;r<i;r++){const e=this._normalizedRanges[r];e.startLineNumber>n&&s.push(new a(n,e.startLineNumber)),n=e.endLineNumberExclusive}return n<e.endLineNumberExclusive&&s.push(new a(n,e.endLineNumberExclusive)),new c(s)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,s=0;for(;i<this._normalizedRanges.length&&s<e._normalizedRanges.length;){const n=this._normalizedRanges[i],r=e._normalizedRanges[s],o=n.intersect(r);o&&!o.isEmpty&&t.push(o),n.endLineNumberExclusive<r.endLineNumberExclusive?i++:s++}return new c(t)}getWithDelta(e){return new c(this._normalizedRanges.map((t=>t.delta(e))))}}},86723:(e,t,i)=>{"use strict";var s;function n(e){return e===s.HIGH_CONTRAST_DARK||e===s.HIGH_CONTRAST_LIGHT}function r(e){return e===s.DARK||e===s.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>n,HD:()=>r,zM:()=>s}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(s||(s={}))},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>x,AQ:()=>W,Am:()=>L,As:()=>A,BD:()=>J,Bo:()=>X,CM:()=>w,D0:()=>l,Ek:()=>P,H0:()=>R,I2:()=>Q,IW:()=>ee,If:()=>Z,JB:()=>I,L0:()=>p,Mf:()=>c,P1:()=>re,Pe:()=>se,Qt:()=>f,WD:()=>ne,WS:()=>ie,WY:()=>oe,Xr:()=>D,aZ:()=>B,bB:()=>te,hz:()=>b,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>j,lQ:()=>z,n4:()=>$,ob:()=>E,ow:()=>S,s7:()=>q,sC:()=>d,sH:()=>K,sN:()=>V,ss:()=>G,tK:()=>T,tp:()=>k,vP:()=>y,vV:()=>C,vp:()=>U,w4:()=>m,we:()=>g,x9:()=>O,yI:()=>H,yw:()=>M,zp:()=>Y});var s=i(78209),n=i(47661),r=i(66261),o=i(47612);const a=(0,r.x1A)("editor.lineHighlightBackground",null,s.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,r.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:r.b1q},s.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=((0,r.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},s.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,r.x1A)("editor.symbolHighlightBackground",{dark:r.Ubg,light:r.Ubg,hcDark:null,hcLight:null},s.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,r.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:n.Q1.black,hcDark:n.Q1.white,hcLight:"#0F4A85"},s.kg("caret","Color of the editor cursor."))),h=(0,r.x1A)("editorCursor.background",null,s.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=(0,r.x1A)("editorMultiCursor.primary.foreground",l,s.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,r.x1A)("editorMultiCursor.primary.background",h,s.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,r.x1A)("editorMultiCursor.secondary.foreground",l,s.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,r.x1A)("editorMultiCursor.secondary.background",h,s.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},s.kg("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,r.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorLineNumbers","Color of editor line numbers.")),_=(0,r.x1A)("editorIndentGuide.background",m,s.kg("editorIndentGuides","Color of the editor indentation guides."),!1,s.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,r.x1A)("editorIndentGuide.activeBackground",m,s.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,s.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),C=(0,r.x1A)("editorIndentGuide.background1",_,s.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),E=(0,r.x1A)("editorIndentGuide.background2","#00000000",s.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),b=(0,r.x1A)("editorIndentGuide.background3","#00000000",s.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),S=(0,r.x1A)("editorIndentGuide.background4","#00000000",s.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),y=(0,r.x1A)("editorIndentGuide.background5","#00000000",s.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,r.x1A)("editorIndentGuide.background6","#00000000",s.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),R=(0,r.x1A)("editorIndentGuide.activeBackground1",v,s.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),L=(0,r.x1A)("editorIndentGuide.activeBackground2","#00000000",s.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),T=(0,r.x1A)("editorIndentGuide.activeBackground3","#00000000",s.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),x=(0,r.x1A)("editorIndentGuide.activeBackground4","#00000000",s.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),k=(0,r.x1A)("editorIndentGuide.activeBackground5","#00000000",s.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),A=(0,r.x1A)("editorIndentGuide.activeBackground6","#00000000",s.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),N=(0,r.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:r.buw,hcLight:r.buw},s.kg("editorActiveLineNumber","Color of editor active line number"),!1,s.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),I=((0,r.x1A)("editorLineNumber.activeForeground",N,s.kg("editorActiveLineNumber","Color of editor active line number")),(0,r.x1A)("editorLineNumber.dimmedForeground",null,s.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),O=((0,r.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:n.Q1.lightgrey,hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorRuler","Color of the editor rulers.")),(0,r.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},s.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,r.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},s.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,r.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:r.b1q,hcLight:r.b1q},s.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,r.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},s.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),D=(0,r.x1A)("editorOverviewRuler.background",null,s.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),M=((0,r.x1A)("editorGutter.background",r.YtV,s.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:r.b1q},s.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,r.x1A)("editorUnnecessaryCode.opacity",{dark:n.Q1.fromHex("#000a"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,r.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:n.Q1.fromHex("#292929").transparent(.8)},s.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,r.x1A)("editorGhostText.foreground",{dark:n.Q1.fromHex("#ffffff56"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),F=((0,r.x1A)("editorGhostText.background",null,s.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new n.Q1(new n.bU(0,122,204,.6))),U=(0,r.x1A)("editorOverviewRuler.rangeHighlightForeground",F,s.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,r.x1A)("editorOverviewRuler.errorForeground",{dark:new n.Q1(new n.bU(255,18,18,.7)),light:new n.Q1(new n.bU(255,18,18,.7)),hcDark:new n.Q1(new n.bU(255,50,50,1)),hcLight:"#B5200D"},s.kg("overviewRuleError","Overview ruler marker color for errors.")),B=(0,r.x1A)("editorOverviewRuler.warningForeground",{dark:r.Hng,light:r.Hng,hcDark:r.Stt,hcLight:r.Stt},s.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,r.x1A)("editorOverviewRuler.infoForeground",{dark:r.pOz,light:r.pOz,hcDark:r.IIb,hcLight:r.IIb},s.kg("overviewRuleInfo","Overview ruler marker color for infos.")),V=(0,r.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},s.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,r.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},s.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),G=(0,r.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},s.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),j=(0,r.x1A)("editorBracketHighlight.foreground4","#00000000",s.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,r.x1A)("editorBracketHighlight.foreground5","#00000000",s.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Y=(0,r.x1A)("editorBracketHighlight.foreground6","#00000000",s.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),q=(0,r.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new n.Q1(new n.bU(255,18,18,.8)),light:new n.Q1(new n.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},s.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),$=(0,r.x1A)("editorBracketPairGuide.background1","#00000000",s.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,r.x1A)("editorBracketPairGuide.background2","#00000000",s.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),X=(0,r.x1A)("editorBracketPairGuide.background3","#00000000",s.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Z=(0,r.x1A)("editorBracketPairGuide.background4","#00000000",s.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),J=(0,r.x1A)("editorBracketPairGuide.background5","#00000000",s.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,r.x1A)("editorBracketPairGuide.background6","#00000000",s.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),te=(0,r.x1A)("editorBracketPairGuide.activeBackground1","#00000000",s.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ie=(0,r.x1A)("editorBracketPairGuide.activeBackground2","#00000000",s.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),se=(0,r.x1A)("editorBracketPairGuide.activeBackground3","#00000000",s.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,r.x1A)("editorBracketPairGuide.activeBackground4","#00000000",s.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),re=(0,r.x1A)("editorBracketPairGuide.activeBackground5","#00000000",s.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,r.x1A)("editorBracketPairGuide.activeBackground6","#00000000",s.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1A)("editorUnicodeHighlight.border",r.Hng,s.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,r.x1A)("editorUnicodeHighlight.background",r.whs,s.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const i=e.getColor(r.YtV),s=e.getColor(a),n=s&&!s.isTransparent()?s:i;n&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${n}; }`)}))},87152:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(2742).then(i.bind(i,32742))})},87213:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>n,Rh:()=>a});var s=i(78209);const n=(0,i(63591).u1)("accessibilitySignalService");Symbol("AcknowledgeDocCommentsToken");class r{static register(e){return new r(e.fileName)}static{this.error=r.register({fileName:"error.mp3"})}static{this.warning=r.register({fileName:"warning.mp3"})}static{this.success=r.register({fileName:"success.mp3"})}static{this.foldedArea=r.register({fileName:"foldedAreas.mp3"})}static{this.break=r.register({fileName:"break.mp3"})}static{this.quickFixes=r.register({fileName:"quickFixes.mp3"})}static{this.taskCompleted=r.register({fileName:"taskCompleted.mp3"})}static{this.taskFailed=r.register({fileName:"taskFailed.mp3"})}static{this.terminalBell=r.register({fileName:"terminalBell.mp3"})}static{this.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"})}static{this.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"})}static{this.diffLineModified=r.register({fileName:"diffLineModified.mp3"})}static{this.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"})}static{this.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"})}static{this.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"})}static{this.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"})}static{this.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"})}static{this.clear=r.register({fileName:"clear.mp3"})}static{this.save=r.register({fileName:"save.mp3"})}static{this.format=r.register({fileName:"format.mp3"})}static{this.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"})}static{this.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"})}static{this.progress=r.register({fileName:"progress.mp3"})}constructor(e){this.fileName=e}}class o{constructor(e){this.randomOneOf=e}}class a{constructor(e,t,i,s,n,r){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=s,this.legacyAnnouncementSettingsKey=n,this.announcementMessage=r}static{this._signals=new Set}static register(e){const t=new o("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new a(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return a._signals.add(i),i}static{this.errorAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasError.name","Error at Position"),sound:r.error,announcementMessage:(0,s.kg)("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"})}static{this.warningAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:r.warning,announcementMessage:(0,s.kg)("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"})}static{this.errorOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.kg)("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"})}static{this.warningOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.kg)("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"})}static{this.foldedArea=a.register({name:(0,s.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"})}static{this.break=a.register({name:(0,s.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"})}static{this.inlineSuggestion=a.register({name:(0,s.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"})}static{this.terminalQuickFix=a.register({name:(0,s.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"})}static{this.onDebugBreak=a.register({name:(0,s.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"})}static{this.noInlayHints=a.register({name:(0,s.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"})}static{this.taskCompleted=a.register({name:(0,s.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"})}static{this.taskFailed=a.register({name:(0,s.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"})}static{this.terminalCommandFailed=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"})}static{this.terminalCommandSucceeded=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:r.success,announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"})}static{this.terminalBell=a.register({name:(0,s.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"})}static{this.notebookCellCompleted=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"})}static{this.notebookCellFailed=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"})}static{this.diffLineInserted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"})}static{this.diffLineDeleted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"})}static{this.diffLineModified=a.register({name:(0,s.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"})}static{this.chatRequestSent=a.register({name:(0,s.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"})}static{this.chatResponseReceived=a.register({name:(0,s.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"})}static{this.progress=a.register({name:(0,s.kg)("accessibilitySignals.progress","Progress"),sound:r.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:(0,s.kg)("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"})}static{this.clear=a.register({name:(0,s.kg)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"})}static{this.save=a.register({name:(0,s.kg)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"})}static{this.format=a.register({name:(0,s.kg)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"})}static{this.voiceRecordingStarted=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"})}static{this.voiceRecordingStopped=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})}}},87285:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515L1.641 8l.229-.515a6.708 6.708 0 0112.26 0l.228.515-.229.515a6.708 6.708 0 01-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 000 1.079l.26.584a8.208 8.208 0 0015 0l.26-.584a1.33 1.33 0 000-1.08l-.26-.584a8.208 8.208 0 00-15 0M9.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M11 8a3 3 0 11-6 0 3 3 0 016 0",clipRule:"evenodd"})))}},87289:(e,t,i)=>{"use strict";i.d(t,{Ho:()=>Qt,kI:()=>Xt,Bz:()=>Wt});var s=i(25890),n=i(47661),r=i(64383),o=i(41234),a=i(5662),c=i(91508),l=i(79400),h=i(64454),d=i(93895),u=i(83069),g=i(36677),p=i(75326),m=i(24329),f=i(10154),_=i(17469),v=i(16223),C=i(12296),E=i(56772);class b{constructor(e,t,i,s){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=s}}class S{constructor(e,t,i,s,n,r){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s,this.nestingLevelOfEqualBracketType=n,this.bracketPairNode=r}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class y extends S{constructor(e,t,i,s,n,r,o){super(e,t,i,s,n,r),this.minVisibleColumnIndentation=o}}var w=i(94650),R=i(93630),L=i(19131),T=i(19562),x=i(32956),k=i(51934),A=i(84084);class N extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new o.vl,this.denseKeyProvider=new x.Mg,this.brackets=new R.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new k._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,T.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new w.c((0,L.qe)(e.fromLineNumber-1,0),(0,L.qe)(e.toLineNumber,0),(0,L.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=w.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,A.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,A.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const s=t,n=new k.tk(this.textModel,this.brackets);return(0,T.T)(n,e,s,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,L.qe)(e.startLineNumber-1,e.startColumn-1),n=(0,L.qe)(e.endLineNumber-1,e.endColumn-1);return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens;D(s,L.Vp,s.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,L.VL)(e.getStartPosition()),n=(0,L.VL)(e.getEndPosition());return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens,r=new M(e,t,this.textModel);P(s,L.Vp,s.length,i,n,r,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,L.Vp,t.length,(0,L.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return I(t,L.Vp,t.length,(0,L.VL)(e))}}function I(e,t,i,s){if(4===e.kind||2===e.kind){const n=[];for(const s of e.children)i=(0,L.QB)(t,s.length),n.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=n.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:r}=n[t];if((0,L.zG)(i,s)){const n=I(e.children[t],i,r,s);if(n)return n}}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function O(e,t,i,s){if(4===e.kind||2===e.kind){for(const n of e.children){if(i=(0,L.QB)(t,n.length),(0,L.zG)(s,i)){const e=O(n,t,i,s);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function D(e,t,i,s,n,r,o,a,c,l,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,L.QB)(t,a.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)){e=a;continue e}if(!D(a,t,i,s,n,r,o,0,c,l))return!1}t=i}}return!0}case 2:{const h=!l||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(c){let t=c.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,c.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,L.QB)(t,u.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!D(u,t,i,s,n,r,h?o+1:o,h?d+1:d,c,l,!e.closingBracket))return!1}}t=i}}return c?.set(e.openingBracket.text,d),!0}case 3:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,0,!0))}case 1:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,a-1,h))}case 0:return!0}}class M{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function P(e,t,i,s,n,r,o,a){if(o>200)return!0;let c=!0;if(2===e.kind){let l=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),l=t,t++,a.set(e.openingBracket.text,t)}const h=(0,L.QB)(t,e.openingBracket.length);let d=-1;if(r.includeMinIndentation&&(d=e.computeMinIndentation(t,r.textModel)),c=r.push(new y((0,L.Qx)(t,i),(0,L.Qx)(t,h),e.closingBracket?(0,L.Qx)((0,L.QB)(h,e.child?.length||L.Vp),i):void 0,o,l,e,d)),t=h,c&&e.child){const l=e.child;if(i=(0,L.QB)(t,l.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)&&(c=P(l,t,i,s,n,r,o+1,a),!c))return!1}a?.set(e.openingBracket.text,l)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,L.QB)(i,t.length),(0,L.vr)(e,n)&&(0,L.vr)(s,i)&&(c=P(t,e,i,s,n,r,o,a),!c))return!1}}return c}class F extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new N(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>t?.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||s.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||s.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||s.c1.empty}findMatchingBracketUp(e,t,i){const s=this.textModel.validatePosition(t),n=this.textModel.getLanguageIdAtPosition(s.lineNumber,s.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const s=this.getBracketPairsInRange(g.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return s?s.openingBracketRange:null}{const t=e.toLowerCase(),r=this.languageConfigurationService.getLanguageConfiguration(n).brackets;if(!r)return null;const o=r.textIsBracket[t];return o?B(this._findMatchingBracketUp(o,s,U(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(g.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,s.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),g.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=U(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,s){const n=t.getCount(),r=t.getLanguageId(s);let o=Math.max(0,e.column-1-i.maxBracketLength);for(let c=s-1;c>=0;c--){const e=t.getEndOffset(c);if(e<=o)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=s+1;c<n;c++){const e=t.getStartOffset(c);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,s=this.textModel.tokenization.getLineTokens(i),n=this.textModel.getLineContent(i),r=s.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(r)).brackets;if(o&&!(0,C.Yo)(s.getStandardTokenType(r))){let{searchStartOffset:a,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,o,r),l=null;for(;;){const s=E.Fu.findNextBracketInRange(o.forwardRegex,i,n,a,c);if(!s)break;if(s.startColumn<=e.column&&e.column<=s.endColumn){const e=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),i=this._matchFoundBracket(s,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(i){if(i instanceof H)return null;l=i}}a=s.endColumn-1}if(l)return l}if(r>0&&s.getStartOffset(r)===e.column-1){const o=r-1,a=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(o)).brackets;if(a&&!(0,C.Yo)(s.getStandardTokenType(o))){const{searchStartOffset:r,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,a,o),l=E.Fu.findPrevBracketInRange(a.reversedRegex,i,n,r,c);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),i=this._matchFoundBracket(l,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof H?null:i}}}return null}_matchFoundBracket(e,t,i,s){if(!t)return null;const n=i?this._findMatchingBracketDown(t,e.getEndPosition(),s):this._findMatchingBracketUp(t,e.getStartPosition(),s);return n?n instanceof H?n:[e,n]:null}_findMatchingBracketUp(e,t,i){const s=e.languageId,n=e.reversedRegex;let r=-1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findPrevBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;c=l.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),n=this.textModel.getLineContent(c);let r=i-1,o=n.length,l=n.length;c===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;r>=0;r--){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h?o=e.getStartOffset(r):(o=e.getStartOffset(r),l=e.getEndOffset(r));else if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const s=e.languageId,n=e.forwardRegex;let r=1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findNextBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;a=l.endColumn-1}return null},c=this.textModel.getLineCount();for(let l=t.lineNumber;l<=c;l++){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),n=this.textModel.getLineContent(l);let r=0,o=0,c=0;l===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;r<i;r++){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h||(o=e.getStartOffset(r)),c=e.getEndOffset(r);else if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let i=null,s=null,n=null;for(let r=t.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),o=e.getCount(),a=this.textModel.getLineContent(r);let c=o-1,l=a.length,h=a.length;if(r===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const r=e.getLanguageId(c);i!==r&&(i=r,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;c>=0;c--){const t=e.getLanguageId(c);if(i!==t){if(s&&n&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e);d=!1}i=t,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const o=!!s&&!(0,C.Yo)(e.getStandardTokenType(c));if(o)d?l=e.getStartOffset(c):(l=e.getStartOffset(c),h=e.getEndOffset(c));else if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}d=o}if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const i=this.textModel.getLineCount();let s=null,n=null,r=null;for(let o=t.lineNumber;o<=i;o++){const e=this.textModel.tokenization.getLineTokens(o),i=e.getCount(),a=this.textModel.getLineContent(o);let c=0,l=0,h=0;if(o===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const i=e.getLanguageId(c);s!==i&&(s=i,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let d=!0;for(;c<i;c++){const t=e.getLanguageId(c);if(s!==t){if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e);d=!1}s=t,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!n&&!(0,C.Yo)(e.getStandardTokenType(c));if(i)d||(l=e.getStartOffset(c)),h=e.getEndOffset(c);else if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}d=i}if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=g.Q.fromPositions(i),t=this.getBracketPairsInRange(g.Q.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const s=U(t),n=this.textModel.getLineCount(),r=new Map;let o=[];const a=(e,t)=>{if(!r.has(e)){const i=[];for(let e=0,s=t?t.brackets.length:0;e<s;e++)i[e]=0;r.set(e,i)}o=r.get(e)};let c=0;const l=(e,t,i,n,r)=>{for(;;){if(s&&++c%100===0&&!s())return H.INSTANCE;const a=E.Fu.findNextBracketInRange(e.forwardRegex,t,i,n,r);if(!a)break;const l=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[l];if(h&&(h.isOpen(l)?o[h.index]++:h.isClose(l)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,s);n=a.endColumn-1}return null};let h=null,d=null;for(let u=i.lineNumber;u<=n;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),s=this.textModel.getLineContent(u);let n=0,r=0,o=0;if(u===i.lineNumber){n=e.findTokenIndexAtOffset(i.column-1),r=i.column-1,o=i.column-1;const t=e.getLanguageId(n);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let c=!0;for(;n<t;n++){const t=e.getLanguageId(n);if(h!==t){if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e);c=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const i=!!d&&!(0,C.Yo)(e.getStandardTokenType(n));if(i)c||(r=e.getStartOffset(n)),o=e.getEndOffset(n);else if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}c=i}if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const s=e.getBracketInfo(i);return s?{range:t,bracketInfo:s}:null}}function U(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class H{static{this.INSTANCE=new H}constructor(){this._searchCanceledBrand=void 0}}function B(e){return e instanceof H?null:e}var W=i(87119),V=i(47612);class z extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new G,this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,s){if(s)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new g.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class G{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,V.zy)(((e,t)=>{const i=[W.sN,W.lQ,W.ss,W.l5,W.sH,W.zp],s=new G;t.addRule(`.monaco-editor .${s.unexpectedClosingBracketClassName} { color: ${e.getColor(W.s7)}; }`);const n=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let r=0;r<30;r++){const e=n[r%n.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(r)} { color: ${e}; }`)}}));var j=i(26656),K=i(53450);class Y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function q(e,t,i,s,n){let r;for(n.spacesDiff=0,n.looksLikeAlignment=!1,r=0;r<t&&r<s;r++){if(e.charCodeAt(r)!==i.charCodeAt(r))break}let o=0,a=0;for(let u=r;u<t;u++){32===e.charCodeAt(u)?o++:a++}let c=0,l=0;for(let u=r;u<s;u++){32===i.charCodeAt(u)?c++:l++}if(o>0&&a>0)return;if(c>0&&l>0)return;const h=Math.abs(a-l),d=Math.abs(o-c);if(0===h)return n.spacesDiff=d,void(d>0&&0<=c-1&&c-1<e.length&&c<i.length&&32!==i.charCodeAt(c)&&32===e.charCodeAt(c-1)&&44===e.charCodeAt(e.length-1)&&(n.looksLikeAlignment=!0));d%h!==0||(n.spacesDiff=d/h)}function $(e,t,i){const s=Math.min(e.getLineCount(),1e4);let n=0,r=0,o="",a=0;const c=[2,4,6,8,3,5,7],l=[0,0,0,0,0,0,0,0,0],h=new Y;for(let g=1;g<=s;g++){const s=e.getLineLength(g),c=e.getLineContent(g),d=s<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=s;t<i;t++){const i=d?c.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?n++:m>1&&r++,q(o,a,c,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&l[_]++,o=c,a=p}let d=i;n!==r&&(d=n<r);let u=t;if(d){let e=d?0:.1*s;c.forEach((t=>{const i=l[t];i>e&&(e=i,u=t)})),4===u&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function Z(e){return(2&e.metadata)>>>1===1}function J(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function ee(e){return(4&e.metadata)>>>2===1}function te(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ie(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function ne(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class oe{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,te(this,!1),se(this,!1),ne(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,J(this,!1)}reset(e,t,i,s){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=s}setOptions(e){this.options=e;const t=this.options.className;te(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),ne(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const ae=new oe(null,0,0);ae.parent=ae,ae.left=ae,ae.right=ae,X(ae,0);class ce{constructor(){this.root=ae,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,s,n,r){return this.root===ae?[]:function(e,t,i,s,n,r,o){let a=e.root,c=0,l=0,h=0,d=0;const u=[];let g=0;for(;a!==ae;)if(Z(a))J(a.left,!1),J(a.right,!1),a===a.parent.right&&(c-=a.parent.delta),a=a.parent;else{if(!Z(a.left)){if(l=c+a.maxEnd,l<t){J(a,!0);continue}if(a.left!==ae){a=a.left;continue}}if(h=c+a.start,h>i)J(a,!0);else{if(d=c+a.end,d>=t){a.setCachedOffsets(h,d,r);let e=!0;s&&a.ownerId&&a.ownerId!==s&&(e=!1),n&&ee(a)&&(e=!1),o&&!ie(a)&&(e=!1),e&&(u[g++]=a)}J(a,!0),a.right===ae||Z(a.right)||(c+=a.delta,a=a.right)}}return J(e.root,!1),u}(this,e,t,i,s,n,r)}search(e,t,i,s){return this.root===ae?[]:function(e,t,i,s,n){let r=e.root,o=0,a=0,c=0;const l=[];let h=0;for(;r!==ae;){if(Z(r)){J(r.left,!1),J(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==ae&&!Z(r.left)){r=r.left;continue}a=o+r.start,c=o+r.end,r.setCachedOffsets(a,c,s);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),i&&ee(r)&&(e=!1),n&&!ie(r)&&(e=!1),e&&(l[h++]=r),J(r,!0),r.right===ae||Z(r.right)||(o+=r.delta,r=r.right)}return J(e.root,!1),l}(this,e,t,i,s)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const s=[];let n=0;for(;i!==ae;)Z(i)?(J(i.left,!1),J(i.right,!1),i=i.parent):i.left===ae||Z(i.left)?(i.ownerId===t&&(s[n++]=i),J(i,!0),i.right===ae||Z(i.right)||(i=i.right)):i=i.left;return J(e.root,!1),s}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let s=0;for(;t!==ae;)Z(t)?(J(t.left,!1),J(t.right,!1),t=t.parent):t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(i[s++]=t,J(t,!0)):t=t.right:t=t.left;return J(e.root,!1),i}(this)}insert(e){de(this,e),this._normalizeDeltaIfNecessary()}delete(e){ue(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let s=0;for(;e!==this.root;)e===e.parent.right&&(s+=e.parent.delta),e=e.parent;const n=i.start+s,r=i.end+s;i.setCachedOffsets(n,r,t)}acceptReplace(e,t,i,s){const n=function(e,t,i){let s=e.root,n=0,r=0,o=0,a=0;const c=[];let l=0;for(;s!==ae;)if(Z(s))J(s.left,!1),J(s.right,!1),s===s.parent.right&&(n-=s.parent.delta),s=s.parent;else{if(!Z(s.left)){if(r=n+s.maxEnd,r<t){J(s,!0);continue}if(s.left!==ae){s=s.left;continue}}o=n+s.start,o>i?J(s,!0):(a=n+s.end,a>=t&&(s.setCachedOffsets(o,a,0),c[l++]=s),J(s,!0),s.right===ae||Z(s.right)||(n+=s.delta,s=s.right))}return J(e.root,!1),c}(this,e,e+t);for(let r=0,o=n.length;r<o;r++){ue(this,n[r])}this._normalizeDeltaIfNecessary(),function(e,t,i,s){let n=e.root,r=0,o=0,a=0;const c=s-(i-t);for(;n!==ae;)if(Z(n))J(n.left,!1),J(n.right,!1),n===n.parent.right&&(r-=n.parent.delta),_e(n),n=n.parent;else{if(!Z(n.left)){if(o=r+n.maxEnd,o<t){J(n,!0);continue}if(n.left!==ae){n=n.left;continue}}a=r+n.start,a>i?(n.start+=c,n.end+=c,n.delta+=c,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),J(n,!0)):(J(n,!0),n.right===ae||Z(n.right)||(r+=n.delta,n=n.right))}J(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let r=0,o=n.length;r<o;r++){const o=n[r];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,he(o,e,e+t,i,s),o.maxEnd=o.end,de(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==ae;)t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,_e(t),J(t,!0),J(t.left,!1),J(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;J(e.root,!1)}(this))}}function le(e,t,i,s){return e<i||!(e>i)&&(1!==s&&(2===s||t))}function he(e,t,i,s,n){const r=function(e){return(24&e.metadata)>>>3}(e),o=0===r||2===r,a=1===r||2===r,c=i-t,l=s,h=Math.min(c,l),d=e.start;let u=!1;const g=e.end;let p=!1;t<=d&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=n?1:c>0?2:0;!u&&le(d,o,t,e)&&(u=!0),!p&&le(g,a,t,e)&&(p=!0)}if(h>0&&!n){const e=c>l?2:0;!u&&le(d,o,t+h,e)&&(u=!0),!p&&le(g,a,t+h,e)&&(p=!0)}{const s=n?1:0;!u&&le(d,o,i,s)&&(e.start=t+l,u=!0),!p&&le(g,a,i,s)&&(e.end=t+l,p=!0)}const m=l-c;u||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function de(e,t){if(e.root===ae)return t.parent=ae,t.left=ae,t.right=ae,X(t,0),e.root=t,e.root;!function(e,t){let i=0,s=e.root;const n=t.start,r=t.end;for(;;){if(Ce(n,r,s.start+i,s.end+i)<0){if(s.left===ae){t.start-=i,t.end-=i,t.maxEnd-=i,s.left=t;break}s=s.left}else{if(s.right===ae){t.start-=i+s.delta,t.end-=i+s.delta,t.maxEnd-=i+s.delta,s.right=t;break}i+=s.delta,s=s.right}}t.parent=s,t.left=ae,t.right=ae,X(t,1)}(e,t),ve(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,pe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),pe(e,i.parent.parent))}return X(e.root,0),t}function ue(e,t){let i,s;if(t.left===ae?(i=t.right,s=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===ae?(i=t.left,s=t):(s=function(e){for(;e.left!==ae;)e=e.left;return e}(t.right),i=s.right,i.start+=s.delta,i.end+=s.delta,i.delta+=s.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=t.delta,s.end+=t.delta,s.delta=t.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=i,X(i,0),t.detach(),ge(),_e(i),void(e.root.parent=ae);const n=1===Q(s);if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?i.parent=s.parent:(s.parent===t?i.parent=s:i.parent=s.parent,s.left=t.left,s.right=t.right,s.parent=t.parent,X(s,Q(t)),t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==ae&&(s.left.parent=s),s.right!==ae&&(s.right.parent=s)),t.detach(),n)return ve(i.parent),s!==t&&(ve(s),ve(s.parent)),void ge();let r;for(ve(i),ve(i.parent),s!==t&&(ve(s),ve(s.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(r=i.parent.right,1===Q(r)&&(X(r,0),X(i.parent,1),pe(e,i.parent),r=i.parent.right),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.right)&&(X(r.left,0),X(r,1),me(e,r),r=i.parent.right),X(r,Q(i.parent)),X(i.parent,0),X(r.right,0),pe(e,i.parent),i=e.root)):(r=i.parent.left,1===Q(r)&&(X(r,0),X(i.parent,1),me(e,i.parent),r=i.parent.left),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.left)&&(X(r.right,0),X(r,1),pe(e,r),r=i.parent.left),X(r,Q(i.parent)),X(i.parent,0),X(r.left,0),me(e,i.parent),i=e.root));X(i,0),ge()}function ge(){ae.parent=ae,ae.delta=0,ae.start=0,ae.end=0}function pe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==ae&&(i.left.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,_e(t),_e(i)}function me(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==ae&&(i.right.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,_e(t),_e(i)}function fe(e){let t=e.end;if(e.left!==ae){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==ae){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function _e(e){e.maxEnd=fe(e)}function ve(e){for(;e!==ae;){const t=fe(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,s){return e===i?t-s:e-i}class Ee{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==be)return Se(this.right);let e=this;for(;e.parent!==be&&e.parent.left!==e;)e=e.parent;return e.parent===be?be:e.parent}prev(){if(this.left!==be)return ye(this.left);let e=this;for(;e.parent!==be&&e.parent.right!==e;)e=e.parent;return e.parent===be?be:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const be=new Ee(null,0);function Se(e){for(;e.left!==be;)e=e.left;return e}function ye(e){for(;e.right!==be;)e=e.right;return e}function we(e){return e===be?0:e.size_left+e.piece.length+we(e.right)}function Re(e){return e===be?0:e.lf_left+e.piece.lineFeedCnt+Re(e.right)}function Le(){be.parent=be}function Te(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==be&&(i.left.parent=t),i.parent=t.parent,t.parent===be?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function xe(e,t){const i=t.left;t.left=i.right,i.right!==be&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===be?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function ke(e,t){let i,s;if(t.left===be?(s=t,i=s.right):t.right===be?(s=t,i=s.left):(s=Se(t.right),i=s.right),s===e.root)return e.root=i,i.color=0,t.detach(),Le(),void(e.root.parent=be);const n=1===s.color;if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?(i.parent=s.parent,Ie(e,i)):(s.parent===t?i.parent=s:i.parent=s.parent,Ie(e,i),s.left=t.left,s.right=t.right,s.parent=t.parent,s.color=t.color,t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==be&&(s.left.parent=s),s.right!==be&&(s.right.parent=s),s.size_left=t.size_left,s.lf_left=t.lf_left,Ie(e,s)),t.detach(),i.parent.left===i){const t=we(i),s=Re(i);if(t!==i.parent.size_left||s!==i.parent.lf_left){const n=t-i.parent.size_left,r=s-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=s,Ne(e,i.parent,n,r)}}if(Ie(e,i.parent),n)return void Le();let r;for(;i!==e.root&&0===i.color;)i===i.parent.left?(r=i.parent.right,1===r.color&&(r.color=0,i.parent.color=1,Te(e,i.parent),r=i.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.right.color&&(r.left.color=0,r.color=1,xe(e,r),r=i.parent.right),r.color=i.parent.color,i.parent.color=0,r.right.color=0,Te(e,i.parent),i=e.root)):(r=i.parent.left,1===r.color&&(r.color=0,i.parent.color=1,xe(e,i.parent),r=i.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.left.color&&(r.right.color=0,r.color=1,Te(e,r),r=i.parent.left),r.color=i.parent.color,i.parent.color=0,r.left.color=0,xe(e,i.parent),i=e.root));i.color=0,Le()}function Ae(e,t){for(Ie(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Te(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,xe(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&xe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Te(e,t.parent.parent))}e.root.color=0}function Ne(e,t,i,s){for(;t!==e.root&&t!==be;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}function Ie(e,t){let i=0,s=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=we((t=t.parent).left)-t.size_left,s=Re(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=s;t!==e.root&&(0!==i||0!==s);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}}be.parent=be,be.left=be,be.right=be,be.color=0;var Oe=i(43264);const De=65535;function Me(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Pe{constructor(e,t,i,s,n){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=n}}function Fe(e,t=!0){const i=[0];let s=1;for(let n=0,r=e.length;n<r;n++){const t=e.charCodeAt(n);13===t?n+1<r&&10===e.charCodeAt(n+1)?(i[s++]=n+2,n++):i[s++]=n+1:10===t&&(i[s++]=n+1)}return t?Me(i):i}class Ue{constructor(e,t,i,s,n){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=n}}class He{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Be{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==be&&e.iterate(e.root,(e=>(e!==be&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class We{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let s=0;s<i.length;s++){const n=i[s];(null===n.node.parent||n.nodeStartOffset>=e)&&(i[s]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class Ve{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new He("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=be,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let n=0,r=e.length;n<r;n++)if(e[n].buffer.length>0){e[n].lineStarts||(e[n].lineStarts=Fe(e[n].buffer));const t=new Ue(n+1,{line:0,column:0},{line:e[n].lineStarts.length-1,column:e[n].buffer.length-e[n].lineStarts[e[n].lineStarts.length-1]},e[n].lineStarts.length-1,e[n].buffer.length);this._buffers.push(e[n]),s=this.rbInsertRight(s,t)}this._searchCache=new We(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=De,i=t-Math.floor(21845),s=2*i;let n="",r=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),c=a.length;if(r<=i||r+c<s)return n+=a,r+=c,!0;const l=n.replace(/\r\n|\r|\n/g,e);return o.push(new He(l,Fe(l))),n=a,r=c,!0})),r>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new He(t,Fe(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Be(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==be;)if(s.left!==be&&s.lf_left+1>=e)s=s.left;else{if(s.lf_left+s.piece.lineFeedCnt+1>=e){i+=s.size_left;return i+(this.getAccumulatedValue(s,e-s.lf_left-2)+t-1)}e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const s=e;for(;t!==be;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const n=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+n.index,0===n.index){const e=s-this.getOffsetAt(i+1,1);return new u.y(i+1,e+1)}return new u.y(i+1,n.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===be){const t=s-e-this.getOffsetAt(i+1,1);return new u.y(i+1,t+1)}t=t.right}return new u.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),n=this.getValueInRange2(i,s);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?n:n.replace(/\r\n|\r|\n/g,t):n}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s.substring(n+e.remainder,n+t.remainder)}let i=e.node;const s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=s.substring(n+e.remainder,n+i.piece.length);for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=e.substring(s,s+t.remainder);break}r+=e.substr(s,i.piece.length),i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",s=!1;return this.iterate(this.root,(n=>{if(n===be)return!0;const r=n.piece;let o=r.length;if(0===o)return!0;const a=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,l=r.start.line,h=r.end.line;let d=c[l]+r.start.column;if(s&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=i,i="",s=!1,0===o))return!0;if(l===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?i+=a.substr(d,o):(s=!0,i+=a.substr(d,o-1)),!0;i+=this._EOLNormalized?a.substring(d,Math.max(d,c[l+1]-this._EOLLength)):a.substring(d,c[l+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=l+1;s<h;s++)i=this._EOLNormalized?a.substring(c[s],c[s+1]-this._EOLLength):a.substring(c[s],c[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(c[h]+r.end.column-1)?i=a.substr(c[h],r.end.column):(s=!0,0===r.end.column?t--:i=a.substr(c[h],r.end.column-1)),!0})),s&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],s=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(s)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,s,n,r,o,a,c,l,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,n),m=this.offsetInBuffer(e.piece.bufferIndex,r);let f;const _={line:0,column:0};let v,C;t._wordSeparators?(v=d.buffer.substring(p,m),C=e=>e+p,t.reset(0)):(v=d.buffer,C=e=>e,t.reset(p));do{if(f=t.next(v),f){if(C(f.index)>=m)return l;this.positionInBuffer(e,C(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,n,_),r=_.line===n.line?_.column-n.column+s:_.column+1,o=r+f[0].length;if(h[l++]=(0,Oe.dr)(new g.Q(i+t,r,i+t,o),f,a),C(f.index)+f[0].length>=m)return l;if(l>=c)return l}}while(f);return l}findMatchesLineByLine(e,t,i,s){const n=[];let r=0;const o=new Oe.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===c)return[];let l=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(a.node===c.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,l,h,t,i,s,r,n),n;let d=e.startLineNumber,u=a.node;for(;u!==c.node;){const c=this.getLineFeedCnt(u.piece.bufferIndex,l,u.piece.end);if(c>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[l.line+c],p=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(u,o,d,p,l,this.positionInBuffer(u,g-h),t,i,s,r,n),r>=s)return n;d+=c}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return r=this._findMatchesInLine(t,o,a,e.endLineNumber,h,r,n,i,s),n}if(r=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,r,n,i,s),r>=s)return n;d++,a=this.nodeAt2(d,1),u=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,c=this.getLineContent(d).substring(a,e.endColumn-1);return r=this._findMatchesInLine(t,o,c,e.endLineNumber,a,r,n,i,s),n}const g=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,o,d,g,l,h,t,i,s,r,n),n}_findMatchesInLine(e,t,i,s,n,r,o,a,c){const l=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let d=-a;for(;-1!==(d=i.indexOf(t,d+a));)if((!l||(0,Oe.wC)(l,i,h,d,a))&&(o[r++]=new v.Dg(new g.Q(s,d+1+n,s,d+1+a+n),null),r>=c))return r;return r}let h;t.reset(0);do{if(h=t.next(i),h&&(o[r++]=(0,Oe.dr)(new g.Q(s,h.index+1+n,s,h.index+1+h[0].length+n),h,a),r>=c))return r}while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==be){const{node:i,remainder:s,nodeStartOffset:n}=this.nodeAt(e),r=i.piece,o=r.bufferIndex,a=this.positionInBuffer(i,s);if(0===i.piece.bufferIndex&&r.end.line===this._lastChangeBufferPos.line&&r.end.column===this._lastChangeBufferPos.column&&n+r.length===e&&t.length<De)return this.appendToNode(i,t),void this.computeBufferMetadata();if(n===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(n+i.piece.length>e){const e=[];let n=new Ue(r.bufferIndex,a,r.end,this.getLineFeedCnt(r.bufferIndex,a,r.end),this.offsetInBuffer(o,r.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,s)){const e={line:n.start.line+1,column:0};n=new Ue(n.bufferIndex,e,n.end,this.getLineFeedCnt(n.bufferIndex,e,n.end),n.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,s-1)){const n=this.positionInBuffer(i,s-1);this.deleteNodeTail(i,n),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const c=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let l=i;for(let t=0;t<c.length;t++)l=this.rbInsertRight(l,c[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===be)return;const i=this.nodeAt(e),s=this.nodeAt(e+t),n=i.node,r=s.node;if(n===r){const r=this.positionInBuffer(n,i.remainder),o=this.positionInBuffer(n,s.remainder);if(i.nodeStartOffset===e){if(t===n.piece.length){const e=n.next();return ke(this,n),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(n,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(n),void this.computeBufferMetadata()}return i.nodeStartOffset+n.piece.length===e+t?(this.deleteNodeTail(n,r),this.validateCRLFWithNextNode(n),void this.computeBufferMetadata()):(this.shrinkNode(n,r,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(n,i.remainder);this.deleteNodeTail(n,a),this._searchCache.validate(e),0===n.piece.length&&o.push(n);const c=this.positionInBuffer(r,s.remainder);this.deleteNodeHead(r,c),0===r.piece.length&&o.push(r);for(let h=n.next();h!==be&&h!==r;h=h.next())o.push(h);const l=0===n.piece.length?n.prev():n;this.deleteNodes(o),this.validateCRLFWithNextNode(l),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const s=t.piece,n={line:s.start.line+1,column:0},r=new Ue(s.bufferIndex,n,s.end,this.getLineFeedCnt(s.bufferIndex,n,s.end),s.length-1);t.piece=r,e+="\n",Ne(this,t,-1,-1),0===t.piece.length&&i.push(t)}const s=this.createNewPieces(e);let n=this.rbInsertLeft(t,s[s.length-1]);for(let r=s.length-2;r>=0;r--)n=this.rbInsertLeft(n,s[r]);this.validateCRLFWithPrevNode(n),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]);let n=s;for(let r=1;r<i.length;r++)n=this.rbInsertRight(n,i[r]);this.validateCRLFWithPrevNode(s)}positionInBuffer(e,t,i){const s=e.piece,n=e.piece.bufferIndex,r=this._buffers[n].lineStarts,o=r[s.start.line]+s.start.column+t;let a=s.start.line,c=s.end.line,l=0,h=0,d=0;for(;a<=c&&(l=a+(c-a)/2|0,d=r[l],l!==c);)if(h=r[l+1],o<d)c=l-1;else{if(!(o>=h))break;a=l+1}return i?(i.line=l,i.column=o-d,null):{line:l,column:o-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;const n=s[i.line+1],r=s[i.line]+i.column;if(n>r+1)return i.line-t.line;const o=r-1;return 13===this._buffers[e].buffer.charCodeAt(o)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)ke(this,e[t])}createNewPieces(e){if(e.length>De){const t=[];for(;e.length>De;){const i=e.charCodeAt(65534);let s;13===i||i>=55296&&i<=56319?(s=e.substring(0,65534),e=e.substring(65534)):(s=e.substring(0,De),e=e.substring(De));const n=Fe(s);t.push(new Ue(this._buffers.length,{line:0,column:0},{line:n.length-1,column:s.length-n[n.length-1]},n.length-1,s.length)),this._buffers.push(new He(s,n))}const i=Fe(e);return t.push(new Ue(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new He(e,i)),t}let t=this._buffers[0].buffer.length;const i=Fe(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const n=this._buffers[0].buffer.length,r=this._buffers[0].lineStarts.length-1,o={line:r,column:n-this._buffers[0].lineStarts[r]},a=new Ue(0,s,o,this.getLineFeedCnt(0,s,o),n-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let i=this.root,s="";const n=this._searchCache.get2(e);if(n){i=n.node;const r=this.getAccumulatedValue(i,e-n.nodeStartLineNumber-1),o=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(n.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const s=this.getAccumulatedValue(i,e-n.nodeStartLineNumber);return o.substring(a+r,a+s-t)}s=o.substring(a+r,a+i.piece.length)}else{let n=0;const r=e;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:n,nodeStartLineNumber:r-(e-1-i.lf_left)}),a.substring(c+s,c+o-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=n.substring(r+t,r+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const n=this.getAccumulatedValue(i,0),r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=e.substring(r,r+n-t),s}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substr(t,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==be;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,s=this.positionInBuffer(e,t),n=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(t!==n)return{index:t,remainder:0}}return{index:n,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,n=i.start.line+t+1;return n>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[n]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.end),r=t,o=this.offsetInBuffer(i.bufferIndex,r),a=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=a-s,l=o-n,h=i.length+l;e.piece=new Ue(i.bufferIndex,i.start,r,a,h),Ne(this,e,l,c)}deleteNodeHead(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.start),r=t,o=this.getLineFeedCnt(i.bufferIndex,r,i.end),a=o-s,c=n-this.offsetInBuffer(i.bufferIndex,r),l=i.length+c;e.piece=new Ue(i.bufferIndex,r,i.end,o,l),Ne(this,e,c,a)}shrinkNode(e,t,i){const s=e.piece,n=s.start,r=s.end,o=s.length,a=s.lineFeedCnt,c=t,l=this.getLineFeedCnt(s.bufferIndex,s.start,c),h=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new Ue(s.bufferIndex,s.start,c,l,h),Ne(this,e,h-o,l-a);const d=new Ue(s.bufferIndex,i,r,this.getLineFeedCnt(s.bufferIndex,i,r),this.offsetInBuffer(s.bufferIndex,r)-this.offsetInBuffer(s.bufferIndex,i)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const n=Fe(t,!1);for(let d=0;d<n.length;d++)n[d]+=s;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:s-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1));const r=this._buffers[0].lineStarts.length-1,o={line:r,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[r]},a=e.piece.length+t.length,c=e.piece.lineFeedCnt,l=this.getLineFeedCnt(0,e.piece.start,o),h=l-c;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,o,l,a),this._lastChangeBufferPos=o,Ne(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let s=0;for(;t!==be;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){s+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(n+t-1,r),nodeStartOffset:s}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2);if(n+t-1<=i.piece.length)return{node:i,remainder:n+t-1,nodeStartOffset:s};t-=i.piece.length-n;break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==be;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:s}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===be||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,n=i[s]+t.start.column;if(s===i.length-1)return!1;return!(i[s+1]>n+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==be&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],s=this._buffers[e.piece.bufferIndex].lineStarts;let n;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:s[e.piece.end.line]-s[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,n,o,r),Ne(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},c=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ue(t.piece.bufferIndex,a,t.piece.end,l,c),Ne(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<i.length;d++)ke(this,i[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)ke(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},s=e.length-1,n=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ue(e.bufferIndex,t,e.end,n,s),Ne(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===be)return t(be);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===be)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,s=this.offsetInBuffer(i.bufferIndex,i.start),n=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(s,n)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),s=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,s)}rbInsertRight(e,t){const i=new Ee(t,1);i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0;if(this.root===be)this.root=i,i.color=0;else if(e.right===be)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ae(this,i),i}rbInsertLeft(e,t){const i=new Ee(t,1);if(i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0,this.root===be)this.root=i,i.color=0;else if(e.left===be)e.left=i,i.parent=e;else{const t=ye(e.left);t.right=i,i.parent=t}return Ae(this,i),i}}var ze=i(64829);class Ge extends a.jG{constructor(e,t,i,s,n,r,a){super(),this._onDidChangeContent=this._register(new o.vl),this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._pieceTree=new Ve(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,s=this.getPositionAt(e),n=this.getPositionAt(i);return new g.Q(s.lineNumber,s.column,n.lineNumber,n.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),s=this.getOffsetAt(e.endLineNumber,e.endColumn);let n=0;const r=this._getEndOfLine(t),o=this.getEOL();if(r.length!==o.length){n=(r.length-o.length)*(e.endLineNumber-e.startLineNumber)}return s-i+n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const s=e.startLineNumber,n=e.endLineNumber;for(let t=s;t<=n;t++){const r=this.getLineContent(t),o=t===s?e.startColumn-1:0,a=t===n?e.endColumn-1:r.length;for(let e=o;e<a;e++)c.pc(r.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(n-s),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let s=this._mightContainRTL,n=this._mightContainUnusualLineTerminators,r=this._mightContainNonBasicASCII,o=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];o&&t._isTracked&&(o=!1);const i=t.range;if(t.text){let e=!0;r||(e=!c.aC(t.text),r=e),!s&&e&&(s=c.E_(t.text)),!n&&e&&(n=c.$X(t.text))}let l="",d=0,u=0,g=0;if(t.text){let e;[d,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();l=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:l,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ge._sortOpsAscending);let l=!1;for(let c=0,h=a.length-1;c<h;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const d=i||t?Ge._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=d[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let s="";i===t.startLineNumber&&(s=this.getLineContent(e.range.startLineNumber),-1!==c.HG(s))||u.push({lineNumber:i,oldContent:s})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],s=d[t],n=this.getValueInRange(i.range),r=i.rangeOffset+e;e+=i.text.length-n.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:s,text:n,textChange:new ze.k(i.rangeOffset,n,r,i.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._mightContainNonBasicASCII=r;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,s=this.getLineContent(t);0!==s.length&&s!==i&&-1===c.HG(s)&&m.push(t)}}return this._onDidChangeContent.fire(),new v.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,s=e[e.length-1].range,n=new g.Q(i.startLineNumber,i.startColumn,s.endLineNumber,s.endColumn);let r=i.startLineNumber,o=i.startColumn;const a=[];for(let h=0,p=e.length;h<p;h++){const i=e[h],s=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new g.Q(r,o,s.startLineNumber,s.startColumn))),i.text.length>0&&a.push(i.text),r=s.endLineNumber,o=s.endColumn}const c=a.join(""),[l,d,u]=(0,h.W)(c);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:c,eolCount:l,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ge._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const s=e[i],n=s.range.startLineNumber,r=s.range.startColumn,o=s.range.endLineNumber,a=s.range.endColumn;if(n===o&&r===a&&0===s.text.length)continue;s.text?(this._pieceTree.delete(s.rangeOffset,s.rangeLength),this._pieceTree.insert(s.rangeOffset,s.text,!0)):this._pieceTree.delete(s.rangeOffset,s.rangeLength);const c=new g.Q(n,r,o,a);t.push({range:c,rangeLength:s.rangeLength,text:s.text,rangeOffset:s.rangeOffset,forceMoveMarkers:s.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,s){return this._pieceTree.findMatchesLineByLine(e,t,i,s)}static _getInverseEditRanges(e){const t=[];let i=0,s=0,n=null;for(let r=0,o=e.length;r<o;r++){const o=e[r];let a,c,l;if(n?n.range.endLineNumber===o.range.startLineNumber?(a=i,c=s+(o.range.startColumn-n.range.endColumn)):(a=i+(o.range.startLineNumber-n.range.endLineNumber),c=o.range.startColumn):(a=o.range.startLineNumber,c=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;l=1===e?new g.Q(a,c,a,c+o.firstLineLength):new g.Q(a,c,a+e-1,o.lastLineLength+1)}else l=new g.Q(a,c,a,c);i=l.endLineNumber,s=l.endColumn,t.push(l),n=o}return t}static _sortOpsAscending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class je{constructor(e,t,i,s,n,r,o,a,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=s,this._crlf=n,this._containsRTL=r,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let n=0,r=i.length;n<r;n++){const e=i[n].buffer.replace(/\r\n|\r|\n/g,t),s=Fe(e);i[n]=new He(e,s)}const s=new Ge(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:s,disposable:s}}}class Ke{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,s=0,n=0,r=0,o=!0;for(let c=0,l=t.length;c<l;c++){const a=t.charCodeAt(c);13===a?c+1<l&&10===t.charCodeAt(c+1)?(r++,e[i++]=c+2,c++):(s++,e[i++]=c+1):10===a?(n++,e[i++]=c+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Pe(Me(e),s,n,r,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new He(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new je(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ye=i(86571),qe=i(26486),$e=i(62083),Qe=i(20761),Xe=i(90766),Ze=i(98067),Je=i(78381),et=i(74444),tt=i(20788);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const s=this._store.slice(0,e),n=this._store.slice(e+t),r=function(e,t){const i=[];for(let s=0;s<e;s++)i[s]=t;return i}(i,this._default);this._store=s.concat(r,n)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let s=0;s<t;s++)i[s]=this._default;this._store=(0,s.nK)(this._store,e,i)}}class st{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class nt{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new st(e,[t]))}finalize(){return this._tokens}}var rt=i(87469);class ot{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new ct(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends ot{constructor(e,t,i,s){super(e,t),this._textModel=i,this._languageIdCodec=s}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const s=this.getFirstInvalidLine();if(!s||s.lineNumber>t)break;const n=this._textModel.getLineContent(s.lineNumber),r=dt(this._languageIdCodec,i,this.tokenizationSupport,n,!0,s.startState);e.add(s.lineNumber,r.tokens),this.store.setEndState(s.lineNumber,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const s=this._textModel.getLanguageId(),n=this._textModel.getLineContent(e.lineNumber),r=n.substring(0,e.column-1)+t+n.substring(e.column-1),o=dt(this._languageIdCodec,s,this.tokenizationSupport,r,!0,i),a=new rt.f(o.tokens,r,this._languageIdCodec);if(0===a.getCount())return 0;const c=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const s=e.lineNumber,n=e.column,r=this.getStartState(s);if(!r)return null;const o=this._textModel.getLineContent(s),a=o.substring(0,n-1)+i+o.substring(n-1+t),c=this._textModel.getLanguageIdAtPosition(s,0),l=dt(this._languageIdCodec,c,this.tokenizationSupport,a,!0,r);return new rt.f(l.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let s=this.guessStartState(t);const n=this._textModel.getLanguageId();for(let r=t;r<=i;r++){const t=this._textModel.getLineContent(r),i=dt(this._languageIdCodec,n,this.tokenizationSupport,t,!0,s);e.add(r,i.tokens),s=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let s=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(o)),t=e,s=this.getStartState(o),s)))break}s||(s=this.tokenizationSupport.getInitialState()),i.reverse();const n=this._textModel.getLanguageId();let r=s;for(const o of i){r=dt(this._languageIdCodec,n,this.tokenizationSupport,o,!1,r).endState}return r}}class ct{constructor(e){this.lineCount=e,this._tokenizationStateStore=new lt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new r.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.L(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.W)(t.text);this.acceptChange(new Ye.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new r.D7("Start state must be defined");return{lineNumber:t,startState:i}}}class lt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.L(i.start,e):this._ranges.splice(t,1,new et.L(i.start,e),new et.L(e+1,i.endExclusive))}}addRange(e){et.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let s=i;for(;!(s>=this._ranges.length||e.endExclusive<this._ranges[s].start);)s++;const n=t-e.length;for(let r=s;r<this._ranges.length;r++)this._ranges[r]=this._ranges[r].delta(n);if(i===s){const s=new et.L(e.start,e.start+t);s.isEmpty||this._ranges.splice(i,0,s)}else{const t=Math.min(e.start,this._ranges[i].start),r=Math.max(e.endExclusive,this._ranges[s-1].endExclusive),o=new et.L(t,r+n);o.isEmpty?this._ranges.splice(i,s-i):this._ranges.splice(i,s-i,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function dt(e,t,i,s,n,o){let a=null;if(i)try{a=i.tokenizeEncoded(s,n,o.clone())}catch(c){(0,r.dz)(c)}return a||(a=(0,tt.Lh)(e.encodeLanguageId(t),o)),rt.f.convertToEndOffset(a.tokens,s.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Ze._p)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new nt,i=Je.W.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ye.M(e,t))}}class gt{constructor(){this._onDidChangeVisibleRanges=new o.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new pt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class pt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new Ye.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class mt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,s.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class ft extends a.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new o.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _t extends ft{constructor(e,t,i,s){super(t,i,s),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$e.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const i=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(i)return new rt.f(i,t,this._languageIdCodec)}return rt.f.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,i){return 0}tokenizeLineWithEdit(e,t,i){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vt=i(44432);const Ct=new Uint32Array(0).buffer;class Et{static deleteBeginning(e,t){return null===e||e===Ct?e:Et.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===Ct)return e;const i=bt(e),s=i[i.length-2];return Et.delete(e,t,s)}static delete(e,t,i){if(null===e||e===Ct||t===i)return e;const s=bt(e),n=s.length>>>1;if(0===t&&s[s.length-2]===i)return Ct;const r=rt.f.findIndexInTokensArray(s,t),o=r>0?s[r-1<<1]:0;if(i<s[r<<1]){const o=i-t;for(let e=r;e<n;e++)s[e<<1]-=o;return e}let a,c;o!==t?(s[r<<1]=t,a=r+1<<1,c=t):(a=r<<1,c=o);const l=i-t;for(let d=r+1;d<n;d++){const e=s[d<<1]-l;e>c&&(s[a++]=e,s[a++]=s[1+(d<<1)],c=e)}if(a===s.length)return e;const h=new Uint32Array(a);return h.set(s.subarray(0,a),0),h.buffer}static append(e,t){if(t===Ct)return e;if(e===Ct)return t;if(null===e)return e;if(null===t)return null;const i=bt(e),s=bt(t),n=s.length>>>1,r=new Uint32Array(i.length+s.length);r.set(i,0);let o=i.length;const a=i[i.length-2];for(let c=0;c<n;c++)r[o++]=s[c<<1]+a,r[o++]=s[1+(c<<1)];return r.buffer}static insert(e,t,i){if(null===e||e===Ct)return e;const s=bt(e),n=s.length>>>1;let r=rt.f.findIndexInTokensArray(s,t);if(r>0){s[r-1<<1]===t&&r--}for(let o=r;o<n;o++)s[o<<1]+=i;return e}}function bt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var St=i(25982);class yt{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let s=null;if(t<this._len&&(s=this._lineTokens[t]),null!==s&&s!==Ct)return new rt.f(bt(s),i,this._languageIdCodec);const n=new Uint32Array(2);return n[0]=i.length,n[1]=wt(this._languageIdCodec.encodeLanguageId(e)),new rt.f(n,i,this._languageIdCodec)}static _massageTokens(e,t,i){const s=i?bt(i):null;if(0===t){let t=!1;if(s&&s.length>1&&(t=St.x.getLanguageId(s[1])!==e),!t)return Ct}if(!s||0===s.length){const i=new Uint32Array(2);return i[0]=t,i[1]=wt(e),i.buffer}return s[s.length-2]=t,0===s.byteOffset&&s.byteLength===s.buffer.byteLength?s.buffer:s}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let s=0;s<t;s++)i[s]=null;this._lineTokens=s.nK(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,s,n){const r=yt._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,s);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=r,!!n&&!yt._equals(o,r)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=bt(e),s=bt(t);if(i.length!==s.length)return!1;for(let n=0,r=i.length;n<r;n++)if(i[n]!==s[n])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new u.y(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=Et.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=Et.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i<this._len&&(s=Et.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=Et.append(this._lineTokens[t],s),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const s=e.lineNumber-1;s>=this._len||(0!==t?(this._lineTokens[s]=Et.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=0,o=0,a=!1;for(let e=n.startLineNumber;e<=n.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!0)&&(a=!0,r=e,o=e)}a&&i.push({fromLineNumber:r,toLineNumber:o})}return{changes:i}}}function wt(e){return(32768|e|2<<24|1024)>>>0}class Rt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),n=t[t.length-1].getRange();if(!s||!n)return e;i=e.plusRange(s).plusRange(n)}let n=null;for(let s=0,r=this._pieces.length;s<r;s++){const e=this._pieces[s];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};continue}const[t,o]=e.split(i);t.isEmpty()?n=n||{index:s}:o.isEmpty()||(this._pieces.splice(s,1,t,o),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=s.nK(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const s=i[Rt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!s)return t;const n=t.getCount(),r=s.getCount();let o=0;const a=[];let c=0,l=0;const h=(e,t)=>{e!==l&&(l=e,a[c++]=e,a[c++]=t)};for(let d=0;d<r;d++){const e=s.getStartCharacter(d),i=s.getEndCharacter(d),r=s.getMetadata(d),a=((1&r?2048:0)|(2&r?4096:0)|(4&r?8192:0)|(8&r?16384:0)|(16&r?16744448:0)|(32&r?4278190080:0))>>>0,c=~a>>>0;for(;o<n&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<n&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<n&&t.getEndOffset(o)<i;)h(t.getEndOffset(o),t.getMetadata(o)&c|r&a),o++;if(o<n)h(i,t.getMetadata(o)&c|r&a),t.getEndOffset(o)===i&&o++;else{const e=Math.min(Math.max(0,o-1),n-1);h(i,t.getMetadata(e)&c|r&a)}}for(;o<n;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new rt.f(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,s=e.length-1;for(;i<s;){let n=i+Math.floor((s-i)/2);if(e[n].endLineNumber<t)i=n+1;else{if(!(e[n].startLineNumber>t)){for(;n>i&&e[n-1].startLineNumber<=t&&t<=e[n-1].endLineNumber;)n--;return n}s=n-1}}return i}acceptEdit(e,t,i,s,n){for(const r of this._pieces)r.acceptEdit(e,t,i,s,n)}}var Lt,Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=Lt=class extends Qe._{constructor(e,t,i,s,n,r,c){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=i,this._attachedViews=s,this._languageService=n,this._languageConfigurationService=r,this._treeSitterService=c,this._semanticTokens=new Rt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new o.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new a.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(o.Jh.filter($e.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new At(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _t(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$e.OB.get(this._languageId)?this._tokens instanceof _t||this.createTokens(!0):this._tokens instanceof At||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,s]=(0,h.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,s,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new r.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this._tokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),s=this.getLineTokens(t.lineNumber),n=s.findTokenIndexAtOffset(t.column-1),[r,o]=Lt._findLanguageBoundaries(s,n),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(n>0&&r===t.column-1){const[r,o]=Lt._findLanguageBoundaries(s,n-1),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n-1)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let s=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)s=e.getStartOffset(r);let n=e.getLineContent().length;for(let r=t,o=e.getCount();r<o&&e.getLanguageId(r)===i;r++)n=e.getEndOffset(r);return[s,n]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new u.y(e,t)),s=this.getLineTokens(i.lineNumber);return s.getLanguageId(s.findTokenIndexAtOffset(i.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}};kt=Lt=Tt([xt(4,f.L),xt(5,_.JZ),xt(6,vt.ITreeSitterParserService)],kt);class At extends ft{constructor(e,t,i,s){super(e,t,i),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.HE),this._tokens=new yt(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.HE),this._attachedViewStates=this._register(new a.$w),this._register($e.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(s.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new mt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new ct(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,i]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$e.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,r.dz)(i),[null,null]}return[e,t]})();if(this._tokenizer=t&&i?new at(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const i=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==i&&e>=i&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yt(this._languageIdCodec),this._debugBackgroundStates=new ct(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,i]=(0,h.W)(t.text);this._tokens.acceptEdit(t.range,e,i),this._debugBackgroundTokens?.acceptEdit(t.range,e,i)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ye.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const i=new nt,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(i,e,t),n=this.setTokens(i.finalize());if(s)for(const r of n.changes)this._backgroundTokenizer.value?.requestTokens(r.fromLineNumber,r.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new nt;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!i.equals(s)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return i}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const s=this._textModel.validatePosition(new u.y(e,t));return this.forceTokenization(s.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(s,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const s=this._textModel.validatePosition(e);return this.forceTokenization(s.lineNumber),this._tokenizer.tokenizeLineWithEdit(s,t,i)}get hasTokens(){return this._tokens.hasTokens}}var Nt,It=i(64727),Ot=i(63591),Dt=i(47579),Mt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Pt=function(e,t){return function(i,s){t(i,s,e)}};function Ft(e,t){let i;return i="string"===typeof e?function(e){const t=new Ke;return t.acceptChunk(e),t.finish()}(e):v.nk(e)?function(e){const t=new Ke;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Ut=0;class Ht{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const s=this._source.read();if(null===s)return this._eos=!0,0===t?null:e.join("");if(s.length>0&&(e[t++]=s,i+=s.length),i>=65536)return e.join("")}}}const Bt=()=>{throw new Error("Invalid change accessor")};let Wt=class extends a.jG{static{Nt=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:m.R.tabSize,indentSize:m.R.indentSize,insertSpaces:m.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:m.R.trimAutoWhitespace,largeFileOptimizations:m.R.largeFileOptimizations,bracketPairColorizationOptions:m.R.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const i=$(e,t.tabSize,t.insertSpaces);return new v.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new v.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,s=null,n,r,h,d){super(),this._undoRedoService=n,this._languageService=r,this._languageConfigurationService=h,this.instantiationService=d,this._onWillDispose=this._register(new o.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ei((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new o.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new o.vl),this._eventEmitter=this._register(new ti),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gt,Ut++,this.id="$model"+Ut,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?l.r.parse("inmemory://model/"+Ut):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=Ft(e,i.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Nt.resolveOptions(this._buffer,i);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new F(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new K.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new z(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(kt,this,this._bracketPairs,m,this._attachedViews);const f=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new g.Q(1,1,f,this._buffer.getLineLength(f)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=_>Nt.LARGE_FILE_SIZE_THRESHOLD||f>Nt.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Nt.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Nt._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ut),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager=new j.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ge([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new r.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new It.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,r.Qg)();const{textBuffer:t,disposable:i}=Ft(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,s,n,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:s}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:n,isRedoing:r,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new It.HP([new It.Wn],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new It.HP([new It.mS],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,s=t.length;i<s;i++){const s=t[i],n=s.range,r=s.cachedAbsoluteStart-s.start,o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),a=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);s.cachedAbsoluteStart=o,s.cachedAbsoluteEnd=a,s.cachedVersionId=e,s.start=o-r,s.end=a-r,_e(s)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let s=1;s<=i;s++){const i=this._buffer.getLineLength(s);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,s="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,n="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new v.X2({tabSize:t,indentSize:i,insertSpaces:s,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:n,bracketPairColorizationOptions:r});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=$(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),s=this.getValueInRange(i,e);return t?this._buffer.getBOM()+s:s}createSnapshot(e=!1){return new Ht(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+s:s}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,s=e.startColumn;let n=Math.floor("number"!==typeof i||isNaN(i)?1:i),r=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(n<1)n=1,r=1;else if(n>t)n=t,r=this.getLineMaxColumn(n);else if(r<=1)r=1;else{const e=this.getLineMaxColumn(n);r>=e&&(r=e)}const o=e.endLineNumber,a=e.endColumn;let c=Math.floor("number"!==typeof o||isNaN(o)?1:o),l=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(c<1)c=1,l=1;else if(c>t)c=t,l=this.getLineMaxColumn(c);else if(l<=1)l=1;else{const e=this.getLineMaxColumn(c);l>=e&&(l=e)}return i===n&&s===r&&o===c&&a===l&&e instanceof g.Q&&!(e instanceof p.L)?e:new g.Q(n,r,c,l)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(c.pc(i))return!1}return!0}_validatePosition(e,t,i){const s=Math.floor("number"!==typeof e||isNaN(e)?1:e),n=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(s<1)return new u.y(1,1);if(s>r)return new u.y(r,this.getLineMaxColumn(r));if(n<=1)return new u.y(s,1);const o=this.getLineMaxColumn(s);if(n>=o)return new u.y(s,o);if(1===i){const e=this._buffer.getLineCharCode(s,n-2);if(c.pc(e))return new u.y(s,n-1)}return new u.y(s,n)}validatePosition(e){return this._assertNotDisposed(),e instanceof u.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,s,0))return!1;if(!this._isValidPosition(n,r,0))return!1;if(1===t){const e=s>1?this._buffer.getLineCharCode(i,s-2):0,t=r>1&&r<=this._buffer.getLineLength(n)?this._buffer.getLineCharCode(n,r-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),s=t.lineNumber,n=t.column,r=i.lineNumber,o=i.column;{const e=n>1?this._buffer.getLineCharCode(s,n-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,i=c.pc(e),a=c.pc(t);return i||a?s===r&&n===o?new g.Q(s,n-1,r,o-1):i&&a?new g.Q(s,n-1,r,o+1):i?new g.Q(s,n-1,r,o):new g.Q(s,n,r,o+1):new g.Q(s,n,r,o)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new g.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,s){return this._buffer.findMatchesLineByLine(e,t,i,s)}findMatches(e,t,i,s,n,r,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>g.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const c=[];let l;if(c.push(a.reduce(((e,t)=>g.Q.areIntersecting(e,t)?e.plusRange(t):(c.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return[];l=e=>this.findMatchesLineByLine(e,t,r,o)}else l=t=>Oe.hB.findMatches(this,new Oe.lt(e,i,s,n),t,r,o);return c.map(l).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let c=new g.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),l=this.findMatchesLineByLine(c,t,r,1);return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r),l.length>0?l[0]:(c=new g.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),l=this.findMatchesLineByLine(c,t,r,1),l.length>0?l[0]:null)}return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r)}findPreviousMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);return Oe.hB.findPreviousMatch(this,new Oe.lt(e,i,s,n),o,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof v.Wo?e:new v.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,s){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,s)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,s){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let s=!0;if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t];let r=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,s=t.startLineNumber>n.endLineNumber,o=n.startLineNumber>t.endLineNumber;if(!s&&!o){r=!0;break}}if(!r){s=!1;break}}if(s)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){const s=this._trimAutoWhitespaceLines[e],n=this.getLineMaxColumn(s);let r=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,o=i[e].text;if(!(s<t.startLineNumber||s>t.endLineNumber)&&(!(s===t.startLineNumber&&t.startColumn===n&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(s===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){r=!1;break}}if(r){const e=new g.Q(s,1,s,n);t.push(new v.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,s)}_applyUndo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(n,t,!0,!1,i,s)}_applyRedo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(n,t,!1,!0,i,s)}_applyUndoRedoEdits(e,t,i,s,n,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=s,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(n)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==o.length){for(let i=0,s=o.length;i<s;i++){const e=o[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,n=o.length;i<n;i++){const n=o[i],[a]=(0,h.W)(n.text);this._onDidChangeDecorations.fire();const c=n.range.startLineNumber,l=n.range.endLineNumber,d=l-c,g=a,p=Math.min(d,g),m=g-d,f=r-t-m+c,_=f,v=f+g,C=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new u.y(_,1)),this.getOffsetAt(new u.y(v,this.getLineMaxColumn(v))),0),E=It.uK.fromDecorations(C),b=new s.j3(E);for(let t=p;t>=0;t--){const i=c+t,s=f+t;b.takeFromEndWhile((e=>e.lineNumber>s));const n=b.takeFromEndWhile((e=>e.lineNumber===s));e.push(new It.U0(i,this.getLineContent(s),n))}if(p<d){const t=c+p;e.push(new It.E$(t+1,l))}if(p<g){const i=new s.j3(E),n=c+p,o=g-p,a=r-t-o+n+1,l=[],h=[];for(let e=0;e<o;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),l[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new It.bg(n+1,c+g,h,l))}t+=m}this._emitContentChangedEvent(new It.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new It.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new It.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Jt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let s=null;try{s=t(i)}catch(n){(0,r.dz)(n)}return i.addDecoration=Bt,i.changeDecoration=Bt,i.changeDecorationOptions=Bt,i.removeDecoration=Bt,i.deltaDecorations=Bt,s}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,r.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const s=e?this._decorations[e]:null;if(!s)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Zt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(s),delete this._decorations[s.id],null;const n=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);return this._decorationsTree.delete(s),s.reset(this.getVersionId(),r,o,n),s.setOptions(Zt[i]),this._decorationsTree.insert(s),s.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,s=t.length;i<s;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,r=!1){const o=this.getLineCount(),a=Math.min(o,Math.max(1,e)),c=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(c),h=new g.Q(a,1,c,l),d=this._getDecorationsInRange(h,i,n,r);return(0,s.E4)(d,this._decorationProvider.getDecorationsInRange(h,i,n)),d}getDecorationsInRange(e,t=0,i=!1,n=!1,r=!1){const o=this.validateRange(e),a=this._getDecorationsInRange(o,t,i,r);return(0,s.E4)(a,this._decorationProvider.getDecorationsInRange(o,t,i,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),s=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return It.uK.fromDecorations(s).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,s){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,r,t,i,s)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const s=this._validateRangeRelaxedNoAllocations(t),n=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),n,r,s),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const s=!(!i.options.overviewRuler||!i.options.overviewRuler.color),n=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const r=s!==n,o=function(e){return!!e.after||!!e.before}(t)!==zt(i);r||o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,s=!1){const n=this.getVersionId(),r=t.length;let o=0;const a=i.length;let c=0;this._onDidChangeDecorations.beginDeferredEmit();try{const l=new Array(a);for(;o<r||c<a;){let h=null;if(o<r){do{h=this._decorations[t[o++]]}while(!h&&o<r);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),s||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(c<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new oe(t,0,0),this._decorations[t]=h}const t=i[c],r=this._validateRangeRelaxedNoAllocations(t.range),o=Jt(t.options),a=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),d=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);h.ownerId=e,h.reset(n,a,d,r),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber),s||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),l[c]=h.id,c++}else h&&delete this._decorations[h.id]}return l}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function Vt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function zt(e){return!!e.options.after||!!e.options.before}Wt=Nt=Mt([Pt(4,Dt.$D),Pt(5,f.L),Pt(6,_.JZ),Pt(7,Ot._Y)],Wt);class Gt{constructor(){this._decorationsTree0=new ce,this._decorationsTree1=new ce,this._injectedTextDecorationsTree=new ce}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,s,n,r){const o=e.getVersionId(),a=this._intervalSearch(t,i,s,n,o,r);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,s,n,r){const o=this._decorationsTree0.intervalSearch(e,t,i,s,n,r),a=this._decorationsTree1.intervalSearch(e,t,i,s,n,r),c=this._injectedTextDecorationsTree.intervalSearch(e,t,i,s,n,r);return o.concat(a).concat(c)}getInjectedTextInInterval(e,t,i,s){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.intervalSearch(t,i,s,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,s,n){const r=e.getVersionId(),o=this._search(t,i,s,r,n);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,s,n){if(i)return this._decorationsTree1.search(e,t,s,n);{const i=this._decorationsTree0.search(e,t,s,n),r=this._decorationsTree1.search(e,t,s,n),o=this._injectedTextDecorationsTree.search(e,t,s,n);return i.concat(r).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),s=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(s)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){zt(e)?this._injectedTextDecorationsTree.insert(e):Vt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){zt(e)?this._injectedTextDecorationsTree.delete(e):Vt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){zt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Vt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,s){this._decorationsTree0.acceptReplace(e,t,i,s),this._decorationsTree1.acceptReplace(e,t,i,s),this._injectedTextDecorationsTree.acceptReplace(e,t,i,s)}}function jt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Kt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Yt extends Kt{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:v.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class qt{constructor(e){this.position=e?.position??v.ZS.Center,this.persistLane=e?.persistLane}}class $t extends Kt{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?n.Q1.fromHex(e):t.getColor(e.id)}}class Qt{static from(e){return e instanceof Qt?e:new Qt(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class Xt{static register(e){return new Xt(e)}static createDynamic(e){return new Xt(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?jt(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?jt(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Yt(e.overviewRuler):null,this.minimap=e.minimap?new $t(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new qt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?jt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?jt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?jt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?jt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?jt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?jt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?jt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?jt(e.afterContentClassName):null,this.after=e.after?Qt.from(e.after):null,this.before=e.before?Qt.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}Xt.EMPTY=Xt.register({description:"empty"});const Zt=[Xt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Xt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Xt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Xt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Jt(e){return e instanceof Xt?e:Xt.createDynamic(e)}class ei extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ti extends a.jG{constructor(){super(),this._fastEmitter=this._register(new o.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},87469:(e,t,i)=>{"use strict";i.d(t,{T:()=>o,f:()=>n});var s=i(25982);class n{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const i=n.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new n(s,e,t)}static createFromTextAndMetadata(e,t){let i=0,s="";const r=new Array;for(const{text:n,metadata:o}of e)r.push(i+n.length,o),i+=n.length,s+=n;return new n(new Uint32Array(r),s,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof n&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const s=t<<1,n=s+(i<<1);for(let r=s;r<n;r++)if(this._tokens[r]!==e._tokens[r])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[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=s.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return s.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return s.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return s.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return s.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return s.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new r(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let s=0;s<i;s++)e[s<<1]=e[s+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,s=(e.length>>>1)-1;for(;i<s;){const n=i+Math.floor((s-i)/2),r=e[n<<1];if(r===t)return n+1;r<t?i=n+1:r>t&&(s=n)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,s="";const r=new Array;let o=0;for(;;){const n=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==n&&(null===a||n<=a.offset)){s+=this._text.substring(o,n);const e=this._tokens[1+(t<<1)];r.push(s.length,e),t++,o=n}else{if(!a)break;if(a.offset>o){s+=this._text.substring(o,a.offset);const e=this._tokens[1+(t<<1)];r.push(s.length,e),o=a.offset}s+=a.text,r.push(s.length,a.tokenMetadata),i++}}return new n(new Uint32Array(r),s,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i<t;i++)e(i)}}class r{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let n=this._firstTokenIndex,r=e.getCount();n<r;n++){if(e.getStartOffset(n)>=i)break;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 r&&(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){const 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){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),s=this._source.getEndOffset(t);let n=this._source.getTokenText(t);return i<this._startOffset&&(n=n.substring(this._startOffset-i)),s>this._endOffset&&(n=n.substring(0,n.length-(s-this._endOffset))),n}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}function o(e,t){const i=t.lineNumber;if(!e.tokenization.isCheapToTokenize(i))return;e.tokenization.forceTokenization(i);const s=e.tokenization.getLineTokens(i),n=s.findTokenIndexAtOffset(t.column-1);return s.getStandardTokenType(n)}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>c,q6:()=>u,wm:()=>d});var s=i(64383),n=i(86571),r=i(83069),o=i(36677),a=i(75295);class c{static inverse(e,t,i){const s=[];let r=1,o=1;for(const l of e){const e=new c(new n.M(r,l.original.startLineNumber),new n.M(o,l.modified.startLineNumber));e.modified.isEmpty||s.push(e),r=l.original.endLineNumberExclusive,o=l.modified.endLineNumberExclusive}const a=new c(new n.M(r,t+1),new n.M(o,i+1));return a.modified.isEmpty||s.push(a),s}static clip(e,t,i){const s=[];for(const n of e){const e=n.original.intersect(t),r=n.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&s.push(new c(e,r))}return s}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new c(this.modified,this.original)}join(e){return new c(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new u(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new s.D7("not a valid diff");return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new u(new o.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new o.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(h(this.original.endLineNumberExclusive,e)&&h(this.modified.endLineNumberExclusive,t))return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new u(o.Q.fromPositions(new r.y(this.original.startLineNumber,1),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new r.y(this.modified.startLineNumber,1),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new u(o.Q.fromPositions(l(new r.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(l(new r.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new s.D7}}function l(e,t){if(e.lineNumber<1)return new r.y(1,1);if(e.lineNumber>t.length)return new r.y(t.length,t[t.length-1].length+1);const i=t[e.lineNumber-1];return e.column>i.length+1?new r.y(e.lineNumber,i.length+1):e}function h(e,t){return e>=1&&e<=t.length}class d extends c{static fromRangeMappings(e){const t=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.originalRange)))),i=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.modifiedRange))));return new d(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){return new d(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new d(this.original,this.modified,[this.toRangeMapping()])}}class u{static assertSorted(e){for(let t=1;t<e.length;t++){const i=e[t-1],n=e[t];if(!i.originalRange.getEndPosition().isBeforeOrEqual(n.originalRange.getStartPosition())||!i.modifiedRange.getEndPosition().isBeforeOrEqual(n.modifiedRange.getStartPosition()))throw new s.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new u(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new a.WR(this.originalRange,t)}}},87758:(e,t,i)=>{"use strict";i.d(t,{G8:()=>_,Hm:()=>d,Hp:()=>a,K6:()=>o,MB:()=>c,Xp:()=>u,Zp:()=>f,dV:()=>r,iM:()=>m,ih:()=>h,jA:()=>n,jq:()=>p,vf:()=>l,vx:()=>g});var s=i(78209);const n="editor.action.showHover",r="editor.action.showDefinitionPreviewHover",o="editor.action.scrollUpHover",a="editor.action.scrollDownHover",c="editor.action.scrollLeftHover",l="editor.action.scrollRightHover",h="editor.action.pageUpHover",d="editor.action.pageDownHover",u="editor.action.goToTopHover",g="editor.action.goToBottomHover",p="editor.action.increaseHoverVerbosityLevel",m=s.kg({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),f="editor.action.decreaseHoverVerbosityLevel",_=s.kg({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")},87784:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var s=i(64383),n=i(5662),r=i(44026);const o={};class a{constructor(e,t,i,s,r){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=s,this.fallbackRangeProvider=r,this.id="syntax",this.disposables=new n.Cm,r&&this.disposables.add(r);for(const n of t)"function"===typeof n.onDidChange&&this.disposables.add(n.onDidChange(i))}compute(e){return function(e,t,i){let n=null;const r=e.map(((e,r)=>Promise.resolve(e.provideFoldingRanges(t,o,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:r,kind:t.kind})}}),s.M_)));return Promise.all(r).then((e=>n))}(this.providers,this.editorModel,e).then((t=>{if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),s=new c(t);let n;const r=[];for(const o of i)if(n){if(o.start>n.start)if(o.end<=n.end)r.push(n),n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);else{if(o.start>n.end){do{n=r.pop()}while(n&&o.start>n.end);n&&r.push(n),n=o}s.add(o.start,o.end,o.kind&&o.kind.value,r.length)}}else n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);return s.toIndentRanges()}(t,this.foldingRangesLimit)}return this.fallbackRangeProvider?.compute(e)??null}))}dispose(){this.disposables.dispose()}}class c{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,s){if(e>r.yy||t>r.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._nestingLevels[n]=s,this._types[n]=i,this._length++,s<30&&(this._nestingLevelCounts[s]=(this._nestingLevelCounts[s]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new r.tz(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let r=0;r<this._nestingLevelCounts.length;r++){const s=this._nestingLevelCounts[r];if(s){if(s+t>e){i=r;break}t+=s}}const s=new Uint32Array(e),n=new Uint32Array(e),o=[];for(let r=0,a=0;r<this._length;r++){const c=this._nestingLevels[r];(c<i||c===i&&t++<e)&&(s[a]=this._startIndexes[r],n[a]=this._endIndexes[r],o[a]=this._types[r],a++)}return new r.tz(s,n,o)}}}},87908:(e,t,i)=>{"use strict";i.d(t,{$C:()=>O,BE:()=>H,Bc:()=>k,O4:()=>w,Of:()=>P,XR:()=>M,hZ:()=>g,jT:()=>x,jU:()=>U,ls:()=>b,lw:()=>h,m9:()=>T,n0:()=>d,qB:()=>W,r_:()=>A,wA:()=>C,xZ:()=>I,xq:()=>l,zM:()=>_});var s=i(25890),n=i(10146),r=i(98067),o=i(24329),a=i(26486),c=i(78209);const l=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&s.aI(e,t);return new g(t,!i)}let i=!1;for(const s in t)if(t.hasOwnProperty(s)){const n=p(e[s],t[s]);n.didChange&&(e[s]=n.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return _(e,this.defaultValue)}}function C(e,t,i,s){if("undefined"===typeof e)return t;let n=parseInt(e,10);return isNaN(n)?t:(n=Math.max(i,n),n=Math.min(s,n),0|n)}class E extends f{static clampedInt(e,t,i,s){return C(e,t,i,s)}constructor(e,t,i,s,n,r=void 0){"undefined"!==typeof r&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=n),super(e,t,i,r),this.minimum=s,this.maximum=n}validate(e){return E.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function b(e,t,i,s){if("undefined"===typeof e)return t;const n=S.float(e,t);return S.clamp(n,i,s)}class S extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,n){"undefined"!==typeof n&&(n.type="number",n.default=i),super(e,t,i,n),this.validationFn=s}validate(e){return this.validationFn(S.float(e,this.defaultValue))}}class y extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return y.string(e,this.defaultValue)}}function w(e,t,i,s){return"string"!==typeof e?t:s&&e in s?s[e]:-1===i.indexOf(e)?t:e}class R extends f{constructor(e,t,i,s,n=void 0){"undefined"!==typeof n&&(n.type="string",n.enum=s,n.default=i),super(e,t,i,n),this._allowedValues=s}validate(e){return w(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,s,n,r,o=void 0){"undefined"!==typeof o&&(o.type="string",o.enum=n,o.default=s),super(e,t,i,o),this._allowedValues=n,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var T,x;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(T||(T={}));class k extends u{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",k.OFF,{anyOf:[{type:"boolean",description:c.kg("fontLigatures","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:c.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:c.kg("fontLigaturesGeneral","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"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?k.OFF:"true"===e?k.ON:e:Boolean(e)?k.ON:k.OFF}}class A extends u{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",A.OFF,{anyOf:[{type:"boolean",description:c.kg("fontVariations","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:c.kg("fontVariationSettings","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:c.kg("fontVariationsGeneral","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"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?A.OFF:"true"===e?A.TRANSLATE:e:Boolean(e)?A.TRANSLATE:A.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class N extends u{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",U.fontWeight,{anyOf:[{type:"number",minimum:N.MINIMUM_VALUE,maximum:N.MAXIMUM_VALUE,errorMessage:c.kg("fontWeightErrorMessage",'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:N.SUGGESTION_VALUES}],default:U.fontWeight,description:c.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(E.clampedInt(e,U.fontWeight,N.MINIMUM_VALUE,N.MAXIMUM_VALUE))}}class I extends m{constructor(){super(146)}compute(e,t,i){return I.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){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const n=(i+e.viewLineCount+s)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,n=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(n*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,o=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=n>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,E=d?2:3;let b=Math.floor(n*s);const S=b/n;let y=!1,w=!1,R=E*u,L=u/n,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:c,desiredRatio:l,minimapLineCount:d}=I.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:a,pixelRatio:n});if(_/d>1)y=!0,w=!0,u=1,R=1,L=u/n;else{let s=!1,h=u+1;if("fit"===p){const e=Math.ceil((r+_+c)*R);C&&o&&v<=t.stableFitRemainingWidth?(s=!0,h=t.stableFitMaxMinimapScale):s=e>b}if("fill"===p||s){y=!0;const s=u;R=Math.min(a*n,Math.max(1,Math.floor(1/l))),C&&o&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(R/E))),u>s&&(T=Math.min(2,u/s)),L=u/n/T,b=Math.ceil(Math.max(i,r+_+c)*R),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const x=Math.floor(g*L),k=Math.min(x,Math.max(0,Math.floor((v-f-2)*L/(c+L)))+l);let A=Math.floor(n*k);const N=A/n;A=Math.floor(A*T);return{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-k-f,minimapWidth:k,minimapHeightIsEditorHeight:y,minimapIsSampling:w,minimapScale:u,minimapLineHeight:R,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:b,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,s=0|t.outerHeight,n=0|t.lineHeight,r=0|t.lineNumbersDigitCount,o=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,c=t.pixelRatio,l=t.viewLineCount,h=e.get(138),u="inherit"===h?e.get(137):h,g="inherit"===u?e.get(133):u,p=e.get(136),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),C=e.get(106),E=e.get(84),b=e.get(73),S=e.get(104),y=S.verticalScrollbarSize,w=S.verticalHasArrows,R=S.arrowSize,L=S.horizontalScrollbarSize,T=e.get(43),x="never"!==e.get(111);let k=e.get(66);T&&x&&(k+=16);let A=0;if(_){const e=Math.max(r,v);A=Math.round(e*a)}let N=0;f&&(N=n*t.glyphMarginDecorationLaneCount);let O=0,D=O+N,M=D+A,P=M+k;const F=i-N-A-k;let U=!1,H=!1,B=-1;"inherit"===u&&m?(U=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(B=p);const W=I._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:n,typicalHalfwidthCharacterWidth:o,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:E.top,paddingBottom:E.bottom,minimap:b,verticalScrollbarWidth:y,viewLineCount:l,remainingWidth:F,isViewportWrapping:H},t.memory||new d);0!==W.renderMinimap&&0===W.minimapLeft&&(O+=W.minimapWidth,D+=W.minimapWidth,M+=W.minimapWidth,P+=W.minimapWidth);const V=F-W.minimapWidth,z=Math.max(1,Math.floor((V-y-2)/o)),G=w?R:0;return H&&(B=Math.max(1,z),"bounded"===g&&(B=Math.min(B,p))),{width:i,height:s,glyphMarginLeft:O,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:D,lineNumbersWidth:A,decorationsLeft:M,decorationsWidth:k,contentLeft:P,contentWidth:V,minimap:W,viewportColumn:z,isWordWrapMinified:U,isViewportWrapping:H,wrappingColumn:B,verticalScrollbarWidth:y,horizontalScrollbarHeight:L,overviewRuler:{top:G,width:y,height:s-2*G,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(x||(x={}));function O(e){const t=e.get(99);return"editable"===t?e.get(92):"on"!==t}function D(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const M="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const s=i.indexOf(e);return-1===s?t:i[s]}const U={fontFamily:r.zx?"Menlo, Monaco, 'Courier New', monospace":r.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.zx?12:14,lineHeight:0,letterSpacing:0},H=[];function B(e){return H[e.id]=e,e}const W={acceptSuggestionOnCommitCharacter:B(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:c.kg("acceptSuggestionOnCommitCharacter","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:B(new R(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",c.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:c.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:B(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[c.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),c.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),c.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:c.kg("accessibilitySupport","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:B(new E(3,"accessibilityPageSize",10,1,1073741824,{description:c.kg("accessibilityPageSize","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"]})),ariaLabel:B(new y(4,"ariaLabel",c.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:B(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:B(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:c.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:B(new R(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),c.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:B(new R(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),c.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:B(new R(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new R(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new R(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),c.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new L(12,"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:[c.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),c.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),c.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),c.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),c.kg("editor.autoIndent.full","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:c.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:B(new v(13,"automaticLayout",!1)),autoSurround:B(new R(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[c.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),c.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),c.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:c.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:B(new class extends u{constructor(){const e={enabled:o.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:o.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("bracketPairColorization.enabled","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:c.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:B(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),c.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),c.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:c.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),c.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),c.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:c.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:c.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:c.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[c.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),c.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),c.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:c.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:B(new v(117,"stickyTabStops",!1,{description:c.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:B(new v(17,"codeLens",!0,{description:c.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new y(18,"codeLensFontFamily","",{description:c.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new E(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:c.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:B(new v(20,"colorDecorators",!0,{description:c.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:B(new R(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[c.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:c.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:B(new E(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:c.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:B(new v(22,"columnSelection",!1,{description:c.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:B(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:c.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:c.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:B(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:B(new v(25,"copyWithSyntaxHighlighting",!0,{description:c.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new L(26,"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:c.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new R(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[c.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),c.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),c.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:c.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new L(28,"cursorStyle",T.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return T.Line;case"block":return T.Block;case"underline":return T.Underline;case"line-thin":return T.LineThin;case"block-outline":return T.BlockOutline;case"underline-thin":return T.UnderlineThin}}),{description:c.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new E(29,"cursorSurroundingLines",0,0,1073741824,{description:c.kg("cursorSurroundingLines","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:B(new R(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[c.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),c.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:c.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:B(new E(31,"cursorWidth",0,0,1073741824,{markdownDescription:c.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:B(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:B(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:B(new v(34,"domReadOnly",!1)),dragAndDrop:B(new v(35,"dragAndDrop",!0,{description:c.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:B(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:c.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:B(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("dropIntoEditor.enabled","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:c.kg("dropIntoEditor.showDropSelector","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:[c.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),c.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:w(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:B(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:c.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:c.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:c.kg("editor.stickyScroll.defaultModel","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:c.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:E.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:w(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:B(new R(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[c.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),c.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),c.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:c.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:B(new y(39,"extraEditorClassName","")),fastScrollSensitivity:B(new S(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:c.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:B(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:c.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[c.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),c.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),c.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:c.kg("find.seedSearchStringFromSelection","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:[c.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),c.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),c.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:c.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:c.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:c.kg("find.addExtraSpaceOnTop","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:c.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":w(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":w(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:B(new v(42,"fixedOverflowWidgets",!1)),folding:B(new v(43,"folding",!0,{description:c.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new R(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[c.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),c.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:c.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new v(45,"foldingHighlight",!0,{description:c.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new v(46,"foldingImportsByDefault",!1,{description:c.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new E(47,"foldingMaximumRegions",5e3,10,65e3,{description:c.kg("foldingMaximumRegions","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:B(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:c.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:B(new y(49,"fontFamily",U.fontFamily,{description:c.kg("fontFamily","Controls the font family.")})),fontInfo:B(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:B(new k),fontSize:B(new class extends f{constructor(){super(52,"fontSize",U.fontSize,{type:"number",minimum:6,maximum:100,default:U.fontSize,description:c.kg("fontSize","Controls the font size in pixels.")})}validate(e){const t=S.float(e,this.defaultValue);return 0===t?U.fontSize:S.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:B(new N),fontVariations:B(new A),formatOnPaste:B(new v(55,"formatOnPaste",!1,{description:c.kg("formatOnPaste","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:B(new v(56,"formatOnType",!1,{description:c.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new v(57,"glyphMargin",!0,{description:c.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:B(new class extends u{constructor(){const 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:[c.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),c.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),c.kg("editor.gotoLocation.multiple.goto","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(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:c.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:c.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:c.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:c.kg("editor.editor.gotoLocation.multipleReferences","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:c.kg("alternativeDefinitionCommand","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:c.kg("alternativeTypeDefinitionCommand","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:c.kg("alternativeDeclarationCommand","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:c.kg("alternativeImplementationCommand","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:c.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{multiple:w(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??w(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??w(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??w(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??w(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??w(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??w(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:y.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:y.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:y.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:y.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:y.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:y.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}),hideCursorInOverviewRuler:B(new v(59,"hideCursorInOverviewRuler",!1,{description:c.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:B(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:c.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:c.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:c.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:c.kg("hover.hidingDelay","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:c.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:E.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:E.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:B(new v(61,"inDiffEditor",!1)),letterSpacing:B(new S(64,"letterSpacing",U.letterSpacing,(e=>S.clamp(e,-5,20)),{description:c.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:B(new class extends u{constructor(){const e={enabled:x.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[x.Off,x.OnCode,x.On],default:e.enabled,enumDescriptions:[c.kg("editor.lightbulb.enabled.off","Disable the code action menu."),c.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),c.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:c.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:w(e.enabled,this.defaultValue.enabled,[x.Off,x.OnCode,x.On])}}}),lineDecorationsWidth:B(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return E.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?E.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:B(new class extends S{constructor(){super(67,"lineHeight",U.lineHeight,(e=>S.clamp(e,0,150)),{markdownDescription:c.kg("lineHeight","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.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:B(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[c.kg("lineNumbers.off","Line numbers are not rendered."),c.kg("lineNumbers.on","Line numbers are rendered as absolute number."),c.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),c.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:c.kg("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:B(new E(69,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new v(70,"linkedEditing",!1,{description:c.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:B(new v(71,"links",!0,{description:c.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new R(72,"matchBrackets","always",["always","near","never"],{description:c.kg("matchBrackets","Highlight matching brackets.")})),minimap:B(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:c.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:c.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[c.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),c.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),c.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:c.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:c.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:c.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:c.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:c.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:c.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:c.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:c.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:c.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:c.kg("minimap.sectionHeaderLetterSpacing","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;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),autohide:_(t.autohide,this.defaultValue.autohide),size:w(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:w(t.side,this.defaultValue.side,["right","left"]),showSlider:w(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(t.renderCharacters,this.defaultValue.renderCharacters),scale:E.clampedInt(t.scale,1,1,3),maxColumn:E.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:S.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:S.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}),mouseStyle:B(new R(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new S(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:c.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:B(new v(76,"mouseWheelZoom",!1,{markdownDescription:r.zx?c.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):c.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new v(77,"multiCursorMergeOverlapping",!0,{description:c.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new L(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[c.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),c.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:c.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"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).")})),multiCursorPaste:B(new R(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[c.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),c.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:c.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:B(new E(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:c.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:B(new R(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[c.kg("occurrencesHighlight.off","Does not highlight occurrences."),c.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),c.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:c.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:B(new v(82,"overviewRulerBorder",!0,{description:c.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new E(83,"overviewRulerLanes",3,0,3)),padding:B(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:c.kg("padding.top","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:c.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:E.clampedInt(t.top,0,0,1e3),bottom:E.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:B(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:c.kg("pasteAs.showPasteSelector","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:[c.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),c.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:w(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:B(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:c.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:c.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:B(new R(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[c.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),c.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:c.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:B(new class extends u{constructor(){super(88,"placeholder",void 0)}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:B(new v(89,"definitionLinkOpensInPeek",!1,{description:c.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:B(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[c.kg("on","Quick suggestions show inside the suggest widget"),c.kg("inline","Quick suggestions show as ghost text"),c.kg("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:c.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:c.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:c.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:c.kg("quickSuggestions","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#`")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:s}=e,n=["on","inline","off"];let r,o,a;return r="boolean"===typeof t?t?"on":"off":w(t,this.defaultValue.other,n),o="boolean"===typeof i?i?"on":"off":w(i,this.defaultValue.comments,n),a="boolean"===typeof s?s?"on":"off":w(s,this.defaultValue.strings,n),{other:r,comments:o,strings:a}}}),quickSuggestionsDelay:B(new E(91,"quickSuggestionsDelay",10,0,1073741824,{description:c.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:B(new v(92,"readOnly",!1)),readOnlyMessage:B(new class extends u{constructor(){super(93,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:B(new v(94,"renameOnType",!1,{description:c.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:c.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new v(95,"renderControlCharacters",!0,{description:c.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new R(96,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:c.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new R(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",c.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:c.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new v(98,"renderLineHighlightOnlyWhenFocus",!1,{description:c.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new R(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new R(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",c.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),c.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),c.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:c.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new E(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:B(new v(102,"roundedSelection",!0,{description:c.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new class extends u{constructor(){const e=[],t={type:"number",description:c.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:c.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:c.kg("rulers","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)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:E.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:E.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:B(new class extends u{constructor(){const 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(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),c.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),c.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),c.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),c.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:c.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:c.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:c.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:c.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","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;const t=e,i=E.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=E.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:E.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:D(t.vertical,this.defaultValue.vertical),horizontal:D(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:E.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:E.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:B(new E(105,"scrollBeyondLastColumn",4,0,1073741824,{description:c.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new v(106,"scrollBeyondLastLine",!0,{description:c.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new v(107,"scrollPredominantAxis",!0,{description:c.kg("scrollPredominantAxis","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:B(new v(108,"selectionClipboard",!0,{description:c.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:B(new v(109,"selectionHighlight",!0,{description:c.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new v(110,"selectOnLineNumbers",!0)),showFoldingControls:B(new R(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[c.kg("showFoldingControls.always","Always show the folding controls."),c.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),c.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:c.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new v(112,"showUnused",!0,{description:c.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new v(141,"showDeprecated",!0,{description:c.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:B(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:c.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[c.kg("editor.inlayHints.on","Inlay hints are enabled"),c.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:c.kg("inlayHints.fontSize","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:c.kg("inlayHints.fontFamily","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:c.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:w(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:E.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:B(new R(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[c.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),c.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),c.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),c.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:c.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:B(new class extends u{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:c.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:c.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:B(new v(115,"smoothScrolling",!1,{description:c.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new E(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:B(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,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(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[c.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),c.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:c.kg("suggest.insertMode","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:c.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:c.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:c.kg("suggest.shareSuggestSelections","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:[c.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),c.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:c.kg("suggest.selectionMode","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:c.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:c.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:c.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:c.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:c.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:c.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:c.kg("deprecated","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:c.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.matchOnWordStartOnly","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:c.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:w(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:w(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:w(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:B(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),c.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),c.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:c.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:c.kg("inlineSuggest.suppressSuggestions","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.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:w(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:B(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),c.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),c.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:c.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}),inlineCompletionsAccessibilityVerbose:B(new v(150,"inlineCompletionsAccessibilityVerbose",!1,{description:c.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:B(new E(120,"suggestFontSize",0,0,1e3,{markdownDescription:c.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:B(new E(121,"suggestLineHeight",0,0,1e3,{markdownDescription:c.kg("suggestLineHeight","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:B(new v(122,"suggestOnTriggerCharacters",!0,{description:c.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new R(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[c.kg("suggestSelection.first","Always select the first suggestion."),c.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),c.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:c.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new R(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[c.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),c.kg("tabCompletion.off","Disable tab completions."),c.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:c.kg("tabCompletion","Enables tab completions.")})),tabIndex:B(new E(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:B(new class extends u{constructor(){const e={nonBasicASCII:M,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:M,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.nonBasicASCII,description:c.kg("unicodeHighlight.nonBasicASCII","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.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:c.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:c.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeComments,description:c.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeStrings,description:c.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:c.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:c.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(n.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(n.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const s=super.applyUpdate(e,t);return i?new g(s.newValue,!0):s}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,M,[!0,!1,M]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,M,[!0,!1,M]),includeStrings:F(t.includeStrings,M,[!0,!1,M]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[s,n]of Object.entries(e))!0===n&&(i[s]=!0);return i}}),unusualLineTerminators:B(new R(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[c.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),c.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),c.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:c.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:B(new v(128,"useShadowDOM",!0)),useTabStops:B(new v(129,"useTabStops",!0,{description:c.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:B(new R(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[c.kg("wordBreak.normal","Use the default line break rule."),c.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:c.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:B(new class extends u{constructor(){super(131,"wordSegmenterLocales",[],{anyOf:[{description:c.kg("wordSegmenterLocales","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:"string"},{description:c.kg("wordSegmenterLocales","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"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"===typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}),wordSeparators:B(new y(132,"wordSeparators",a.J3,{description:c.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new R(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[c.kg("wordWrap.off","Lines will never wrap."),c.kg("wordWrap.on","Lines will wrap at the viewport width."),c.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),c.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:c.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:B(new y(134,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:B(new y(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:B(new E(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:c.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:B(new R(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new R(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:B(new class extends m{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),"default"===t.get(74)?s.push("mouse-default"):"copy"===t.get(74)&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}),defaultColorDecorators:B(new v(148,"defaultColorDecorators",!1,{markdownDescription:c.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:B(new class extends m{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:B(new v(145,"tabFocusMode",!1,{markdownDescription:c.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:B(new I),wrappingInfo:B(new class extends m{constructor(){super(147)}compute(e,t,i){const s=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}),wrappingIndent:B(new class extends u{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[c.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),c.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),c.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),c.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:c.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:B(new class extends u{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[c.kg("wrappingStrategy.simple","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."),c.kg("wrappingStrategy.advanced","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:c.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return w(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,a0:()=>p,dQ:()=>h,nb:()=>u,rm:()=>g,un:()=>l});var s=i(66782),n=i(51241),r=i(5662),o=i(49154),a=i(22311),c=i(94958);function l(e,t){return void 0!==t?new m(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx):new m(new a.nA(void 0,void 0,e),e,void 0,void 0,void 0,n.nx)}function h(e,t,i){return new f(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx,i)}function d(e,t){return new m(new a.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??n.nx)}function u(e,t){return new m(new a.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??n.nx)}function g(e,t){let i,s;void 0===t?(i=e,s=void 0):(s=e,i=t);const o=new r.Cm;return new m(new a.nA(s,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),n.nx)}function p(e,t){let i,s,o;return void 0===t?(i=e,s=void 0):(s=e,i=t),new m(new a.nA(s,void 0,i),(e=>{o?o.clear():o=new r.Cm;const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>{o&&(o.dispose(),o=void 0)}),n.nx)}(0,o.N2)(d);class m extends o.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s,n=void 0,r){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=s,this._handleLastObserverRemoved=n,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,i=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const n=t&&!this._equalityComparator(i,this.value);if((0,c.tZ)()?.handleDerivedRecomputed(this,{oldValue:i,newValue:this.value,change:void 0,didChange:n,hadValue:t}),n)for(const r of this.observers)r.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,s.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),s=3===this.state;if(i&&(1===this.state||s)&&(this.state=2,s))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class f extends m{constructor(e,t,i,s,n=void 0,r,o){super(e,t,i,s,n,r),this.set=o}}},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>E});var s,n=i(90766),r=i(5662),o=i(74320),a=i(4853),c=i(62083),l=i(84001),h=i(14718),d=i(63591),u=i(9711),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const s=i[0].score[0];for(let n=0;n<i.length;n++){const{score:e,completion:t}=i[n];if(e[0]!==s)break;if(t.preselect)return n}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}class _ extends m{constructor(){super("recentlyUsed"),this._cache=new o.qK(300,.66),this._seq=0}memorize(e,t,i){const s=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(s,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const s=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(s))return super.select(e,t,i);const n=i[0].score[0];let r=-1,o=-1,a=-1;for(let c=0;c<i.length&&i[c].score[0]===n;c++){const t=`${e.getLanguageId()}/${i[c].textLabel}`,s=this._cache.peek(t);if(s&&s.touch>a&&s.type===i[c].completion.kind&&s.insertText===i[c].completion.insertText&&(a=s.touch,o=c),i[c].completion.preselect&&-1===r)return c}return-1!==o?o:-1!==r?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}class v extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:s}=e.getWordUntilPosition(t),n=`${e.getLanguageId()}/${s}`;this._trie.set(n,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:s}=e.getWordUntilPosition(t);if(!s)return super.select(e,t,i);const n=`${e.getLanguageId()}/${s}`;let r=this._trie.get(n);if(r||(r=this._trie.findSubstr(n)),r)for(let o=0;o<i.length;o++){const{kind:e,insertText:t}=i[o].completion;if(e===r.type&&t===r.insertText)return o}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._trie.set(t,i)}}}let C=class{static{s=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",v],["recentlyUsed",_],["first",f]])}static{this._storagePrefix="suggest/memories"}constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new r.Cm,this._persistSoon=new n.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){const i=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(this._strategy?.name!==i){this._saveState();const e=s._strategyCtors.get(i)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${s._storagePrefix}/${i}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(n){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${s._storagePrefix}/${this._strategy.name}`,t,e,1)}}};C=s=g([p(0,u.CS),p(1,l.pG)],C);const E=(0,d.u1)("ISuggestMemories");(0,h.v)(E,C,1)},88443:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var s=i(8597),n=i(23034),r=i(91581),o=i(17390),a=i(41234),c=(i(10713),i(78209)),l=i(5662),h=i(42904);const d=c.kg("defaultLabel","input");class u extends o.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new l.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const o=i.appendCaseSensitiveLabel||"",c=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.bW)());if(this.showCommonFindToggles){this.regex=this._register(new n.Ix({appendTitle:u,isChecked:!1,hoverDelegate:_,...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 n.nV({appendTitle:c,isChecked:!1,hoverDelegate:_,...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 n.bc({appendTitle:o,isChecked:!1,hoverDelegate:_,...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)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let n=-1;t.equals(17)?n=(i+1)%e.length:t.equals(15)&&(n=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):n>=0&&e[n].focus(),s.fs.stop(t,!0)}}}))}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?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(s.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(s.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),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())),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(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex?.enable(),this.wholeWords?.enable(),this.caseSensitive?.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex?.disable(),this.wholeWords?.disable(),this.caseSensitive?.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new l.Cm;for(const t of 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()}updateInputBoxPadding(e=!1){this.inputBox.paddingRight=e?0:(this.caseSensitive?.width()??0)+(this.wholeWords?.width()??0)+(this.regex?.width()??0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive?.checked??!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){return this.wholeWords?.checked??!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){return this.regex?.checked??!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){this.caseSensitive?.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()}}},88608:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return"json"===t.format?e.escapeJSONString(t,i):e.escapeYSONString(t,i)}function s(i,s){let n,r;return i.$key&&"yson"===s.format?(n=e.unescapeKeyValue(i.$value),r=e.unescapeKeyValue(i.$decoded_value)):(n=i.$value,r=i.$decoded_value),i.$binary?s.binaryAsHex?e.escapeYSONBinaryString(s,n):t(s,n):s.showDecoded?e.escapeJSONString(s,r):t(s,n)}return s.isScalar=!0,s}},88807:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var s=i(8597),n=i(92403),r=i(41234),o=i(5662);class a{constructor(){let e;this._onDidWillResize=new r.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new r.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new o.Cm,this._size=new s.fg(0,0),this._minSize=new s.fg(0,0),this._maxSize=new s.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new n.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new n.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new n.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:n.B.North}),this._southSash=new n.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:n.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(r.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(r.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((s=>{e&&(i=s.currentX-s.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((s=>{e&&(i=-(s.currentX-s.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((s=>{e&&(t=-(s.currentY-s.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((s=>{e&&(t=s.currentY-s.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(r.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(r.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,s){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=s?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(i,Math.min(r,e)),t=Math.max(n,Math.min(o,t));const a=new s.fg(t,e);s.fg.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88952:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(60002),h=i(16223),d=i(87289),u=i(78209),g=i(27195),p=i(66261),m=i(47612);const f=(0,p.x1A)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",u.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends r.ks{constructor(){super({id:"editor.action.jumpToBracket",label:u.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){b.get(t)?.jumpToBracket()}}class v extends r.ks{constructor(){super({id:"editor.action.selectToBracket",label:u.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&!1===i.selectBrackets&&(s=!1),b.get(t)?.selectToBracket(s)}}class C extends r.ks{constructor(){super({id:"editor.action.removeBrackets",label:u.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){b.get(t)?.removeBrackets(this.id)}}class E{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class b extends n.jG{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(b.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new s.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),s=e.bracketPairs.matchBracket(i);let n=null;if(s)s[0].containsPosition(i)&&!s[1].containsPosition(i)?n=s[1].getStartPosition():s[1].containsPosition(i)&&(n=s[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)n=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(n=t.range.getStartPosition())}}return n?new c.L(n.lineNumber,n.column,n.lineNumber,n.column):new c.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((s=>{const n=s.getStartPosition();let r=t.bracketPairs.matchBracket(n);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(n),!r)){const e=t.bracketPairs.findNextBracket(n);e&&e.range&&(r=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,l=null;if(r){r.sort(a.Q.compareRangesUsingStarts);const[t,i]=r;if(o=e?t.getStartPosition():t.getEndPosition(),l=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(n)){const e=o;o=l,l=e}}o&&l&&i.push(new c.L(o.lineNumber,o.column,l.lineNumber,l.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const s=i.getPosition();let n=t.bracketPairs.matchBracket(s);n||(n=t.bracketPairs.findEnclosingBrackets(s)),n&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:n[0],text:""},{range:n[1],text:""}]),this._editor.pushUndoStop())}))}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=d.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.Yf)(f),position:h.A5.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=d.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const n=[];let r=0;for(let o=0,d=e.length;o<d;o++){const t=e[o];t.isEmpty()&&(n[r++]=t.getStartPosition())}n.length>1&&n.sort(o.y.compare);const a=[];let c=0,l=0;const h=s.length;for(let o=0,d=n.length;o<d;o++){const e=n[o];for(;l<h&&s[l].position.isBefore(e);)l++;if(l<h&&s[l].position.equals(e))a[c++]=s[l];else{let i=t.bracketPairs.matchBracket(e,20),s=b._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),s=b._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[c++]=new E(e,i,s)}}this._lastBracketsData=a,this._lastVersionId=i}}(0,r.HW)(b.ID,b,1),(0,r.Fl)(v),(0,r.Fl)(_),(0,r.Fl)(C),g.ZG.appendMenuItem(g.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>x,_Q:()=>k,dg:()=>b});var s=i(88443),n=i(8597),r=i(35315),o=i(91581),a=i(17390),c=i(10350),l=i(41234),h=(i(10713),i(78209)),d=i(42904);const u=h.kg("defaultLabel","input"),g=h.kg("label.preserveCaseToggle","Preserve Case");class p extends r.l{constructor(e){super({icon:c.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,d.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new l.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.vl),this._onInput=this._register(new l.vl),this._onKeyUp=this._register(new l.vl),this._onPreserveCaseKeyDown=this._register(new l.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||u;const r=s.appendPreserveCaseLabel||"",a=s.history||[],c=!!s.flexibleHeight,h=!!s.flexibleWidth,d=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:s.showHistoryHint,flexibleHeight:c,flexibleWidth:h,flexibleMaxHeight:d,inputBoxStyles:s.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:r,isChecked:!1,...s.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),n.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),e?.appendChild(this.domNode),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())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(32848),_=i(59261),v=i(5662),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),S="historyNavigationWidgetFocus",y="historyNavigationForwardsEnabled",w="historyNavigationBackwardsEnabled";let R;const L=[];function T(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);const i=new v.Cm,s=new f.N1(S,!1).bindTo(e),r=new f.N1(y,!0).bindTo(e),o=new f.N1(w,!0).bindTo(e),a=()=>{s.set(!0),R=t},c=()=>{s.set(!1),R===t&&(R=void 0)};return(0,n.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>c()))),i.add((0,v.s)((()=>{L.splice(L.indexOf(t),1),c()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){i.dispose()}}}let x=class extends s.c{constructor(e,t,i,s){super(e,t,i);const n=this._register(s.createScoped(this.inputBox.element));this._register(T(n,this.inputBox))}};x=C([E(3,f.fN)],x);let k=class extends m{constructor(e,t,i,s,n=!1){super(e,t,n,i);const r=this._register(s.createScoped(this.inputBox.element));this._register(T(r,this.inputBox))}};k=C([E(3,f.fN)],k),_.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(w,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{R?.showPreviousValue()}}),_.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(y,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{R?.showNextValue()}})},89336:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(2350).then(i.bind(i,62350))})},89403:(e,t,i)=>{"use strict";i.d(t,{B6:()=>y,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>d,iZ:()=>C,n4:()=>u,o1:()=>E,pD:()=>f,su:()=>l,uJ:()=>_});var s=i(79326),n=i(36456),r=i(74027),o=i(98067),a=i(91508),c=i(79400);function l(e){return(0,c.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(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===n.ny.file)return s._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(b(e.authority,t.authority))return s._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return r.SA.basename(e.path)}extname(e){return r.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===n.ny.file?t=c.r.file(r.pD(l(e))).path:(t=r.SA.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){if(!e.path.length)return e;let t;return t=e.scheme===n.ny.file?c.r.file(r.S8(l(e))).path:r.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!b(e.authority,t.authority))return;if(e.scheme===n.ny.file){const i=r.V8(l(e),l(t));return o.uF?s.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return r.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===n.ny.file){const i=c.r.file(r.hd(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=s.kb(t),e.with({path:r.SA.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,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=r.Vn){if(e.scheme===n.ny.file){const i=l(e);return i.length>s.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=r.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=r.Vn){let i=!1;if(e.scheme===n.ny.file){const n=l(e);i=void 0!==n&&n.length===s.Zn(n).length&&n[n.length-1]===t}else{t="/";const s=e.path;i=1===s.length&&47===s.charCodeAt(s.length-1)}return i||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==n.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d)),g=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),f=d.dirname.bind(d),_=d.joinPath.bind(d),v=d.normalizePath.bind(d),C=d.relativePath.bind(d),E=d.resolvePath.bind(d),b=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var y;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,s]=e.split(":");t&&s&&i.set(t,s)}));const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(e.META_DATA_MIME,s),i}}(y||(y={}))},89506:(e,t,i)=>{"use strict";i.d(t,{d:()=>g});var s=i(8597),n=i(5646),r=i(72962),o=i(25154),a=i(36921),c=i(41234);class l extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,s.BC)(e,(0,s.$)(".monaco-dropdown")),this._label=(0,s.BC)(this._element,(0,s.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const r of[s.Bx.CLICK,s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this.element,r,(e=>s.fs.stop(e,!0))));for(const r of[s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this._label,r,(e=>{(0,s.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,s.ko)(this._label,s.Bx.KEY_UP,(e=>{const t=new r.Z(e);(t.equals(3)||t.equals(10))&&(s.fs.stop(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(o.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends l{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var d=i(42904),u=i(48196);class g extends n.EH{constructor(e,t,i,s=Object.create(null)){super(null,e,s),this.actionItem=null,this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=s,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,s.BC)(e,(0,s.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.i)().setupManagedHover(this.options.hoverDelegate??(0,d.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{this.element?.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu?.show()}updateEnabled(){const e=!this.action.enabled;this.actionItem?.classList.toggle("disabled",e),this.element?.classList.toggle("disabled",e)}}},89518:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=w(m,g,p(m)),C=v.defaults,E=w(f,g,p(f)),b=E.defaults,S=w(_,g,p(_)),y=S.defaults;function w(e,t=g,s=p(e)){const n=new u(e,t,s);let r;const o=d.languages.onLanguage(e,(async()=>{r=(await i.e(8821).then(i.bind(i,68821))).setupMode(n)}));return{defaults:n,dispose(){o.dispose(),r?.dispose(),r=void 0}}}d.languages.html={htmlDefaults:C,razorDefaults:y,handlebarDefaults:b,htmlLanguageService:v,handlebarLanguageService:E,razorLanguageService:S,registerHTMLLanguageService:w}},89807:(e,t,i)=>{var s=i(26437),n=i(33609);e.exports=function(e){return e?s(n(e),0,4294967295):0}},89896:(e,t,i)=>{e.exports=i(34529)},89974:(e,t,i)=>{"use strict";i.d(t,{F:()=>V});var s=i(60712),n=i(59284),r=i(56993),o=i.n(r),a=i(53302),c=i(63126),l=i(72837);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),d=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,l.N)({en:h,ru:d},"ydb-navigation-tree"),g=(0,a.o)("ydb-navigation-tree-view-empty");function p({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:g(),children:u("label_empty")}),level:e})}const m=(0,a.o)("ydb-navigation-tree-view-error");function f({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:m(),children:u("label_error")}),level:e})}var _=i(80953);const v=(0,a.o)("ydb-navigation-tree-view-loader");function C({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("div",{className:v(),children:(0,s.jsx)(_.t,{size:"xs"})}),level:e})}function E(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function b(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function S(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function y(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function w(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function R(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function L(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function T(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function x(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"m1.5 3.25c0-0.41421 0.33579-0.75 0.75-0.75h1.0109c0.41421 0 0.75-0.33579 0.75-0.75s-0.33579-0.75-0.75-0.75h-1.0109c-1.2426 0-2.25 1.0074-2.25 2.25v9.5c0 1.2426 1.0074 2.25 2.25 2.25h1.0109c0.41421 0 0.75-0.3358 0.75-0.75s-0.33579-0.75-0.75-0.75h-1.0109c-0.41421 0-0.75-0.3358-0.75-0.75v-9.5zm11.239-2.25c-0.4142 0-0.75 0.33579-0.75 0.75s0.3358 0.75 0.75 0.75h1.0109c0.4142 0 0.75 0.33579 0.75 0.75v9.5c0 0.4142-0.3358 0.75-0.75 0.75h-1.0109c-0.4142 0-0.75 0.3358-0.75 0.75s0.3358 0.75 0.75 0.75h1.0109c1.2426 0 2.25-1.0074 2.25-2.25v-9.5c0-1.2426-1.0074-2.25-2.25-2.25h-1.0109zm-1.4316 6.9054c-0.9374 0.45226-2.1226 0.63619-3.3102 0.63619-1.1876 0-2.3728-0.18393-3.3103-0.63619-0.21174-0.10215-0.42044-0.22399-0.61701-0.36633v0.46091c0 1.3714 1.7583 2.0571 3.9273 2.0571 2.169 0 3.9273-0.68571 3.9273-2.0571v-0.46091c-0.1966 0.14234-0.4053 0.26418-0.6171 0.36633zm-3.3102-0.59108c2.169 0 3.9273-0.68572 3.9273-2.0571 0-1.3714-1.7583-2.0572-3.9273-2.0572-2.169 0-3.9273 0.68572-3.9273 2.0572 0 1.3714 1.7583 2.0571 3.9273 2.0571zm3.9273 3.4286c0 1.3714-1.7583 2.0571-3.9273 2.0571-2.169 0-3.9273-0.6857-3.9273-2.0571v-0.461c0.19657 0.1423 0.40527 0.2641 0.61701 0.3663 0.93748 0.4522 2.1227 0.6362 3.3103 0.6362 1.1876 0 2.3728-0.184 3.3102-0.6362 0.2118-0.1022 0.4205-0.224 0.6171-0.3663v0.461z",fill:"currentColor",clipRule:"evenodd",fillRule:"evenodd"})}))}function k(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function A(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function N(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function I(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function O(e){return"status"in e}function D(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)D(e,`${t}/${r}`,i,s+1)}var M;function P(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function F(e={},t){var i,s;switch(t.type){case M.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case M.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case M.FinishLoading:{const n=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){n[t.payload.path].children=t.payload.data.map((({name:e})=>e));for(const r of t.payload.data){const o=`${t.payload.path}/${r.name}`,{activePath:a=""}=t.payload,c=null!==(s=null===(i=e[o])||void 0===i?void 0:i.collapsed)&&void 0!==s?s:!a.startsWith(`${o}/`);n[o]=P(Object.assign(Object.assign({},r),{collapsed:c,path:o}))}}return t.payload.data&&0!==t.payload.data.length||(n[t.payload.path]=Object.assign(Object.assign({},n[t.payload.path]),{expandable:!1,collapsed:!0})),n}case M.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case M.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function U(e,t){const i=[];return D(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const s=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);s&&i.push(s)})),i}function H(e,t){switch(e){case"async_replication":return(0,s.jsx)(E,{height:16});case"transfer":return(0,s.jsx)(N,{height:16});case"database":return(0,s.jsx)(S,{height:14});case"directory":return t?(0,s.jsx)(R,{height:16}):(0,s.jsx)(L,{height:16});case"index":return(0,s.jsx)(T,{height:16});case"table":case"index_table":return(0,s.jsx)(k,{height:16});case"column_table":return(0,s.jsx)(b,{height:16});case"stream":case"topic":return(0,s.jsx)(A,{height:16});case"external_table":return(0,s.jsx)(w,{height:16});case"external_data_source":return(0,s.jsx)(y,{height:16});case"view":return(0,s.jsx)(I,{height:16});case"resource_pool":return(0,s.jsx)(x,{height:16});default:return null}}function B({path:e,fetchPath:t,activePath:i,state:r,level:o,dispatch:a,children:l,onActivate:h,getActions:d,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=r[e];n.useEffect((()=>{m.collapsed?p||a({type:M.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:M.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:M.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:M.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:M.ToggleCollapsed,payload:{path:e}})}),[a,e]),v=n.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),C=n.useMemo((()=>null===d||void 0===d?void 0:d(m.path,m.type)),[d,m]),E=n.useCallback((e=>{null===u||void 0===u||u({path:m.path,type:m.type,isOpen:e})}),[m.path,m.type,u]);return(0,s.jsx)(c.G,{name:m.name,icon:H(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:C,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:E,level:o,children:l})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(M||(M={}));const W=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,s.jsx)(C,{level:e.level},t):"error"===e.status?(0,s.jsx)(f,{level:e.level},t):(0,s.jsx)(p,{level:e.level},t)};function V({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:r,activePath:a,onActionsOpenToggle:c,onActivePathUpdate:l,cache:h=!0,virtualize:d=!1}){const[u,g]=n.useReducer(F,{[e.path]:P(e)}),p=n.useMemo((()=>U(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(B,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:l,getActions:i,onActionsOpenToggle:c,renderAdditionalNodeElements:r,cache:h,level:e.level},e.path);return d?(0,s.jsx)(o(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return O(t)?W(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>O(e)?W(e):m(e)))})}},90208:(e,t,i)=>{"use strict";i.d(t,{L9:()=>w,LR:()=>v,ZR:()=>y});var s=i(25890),n=i(17799),r=i(8995),o=i(5662),a=i(44320),c=i(36456),l=i(89403),h=i(79400),d=i(62083),u=i(56942),g=i(78209),p=i(37227),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};class _{async provideDocumentPasteEdits(e,t,i,s,n){const r=await this.getEdit(i,n);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,s){const n=await this.getEdit(i,s);if(n)return{edits:[{insertText:n.insertText,title:n.title,kind:n.kind,handledMimeType:n.handledMimeType,yieldTo:n.yieldTo}],dispose(){}}}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}static{this.id="text"}static{this.kind=new r.k("text.plain")}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const s=await i.asString();return{handledMimeType:a.K.text,title:(0,g.kg)("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class C extends _{constructor(){super(...arguments),this.kind=new r.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;let s=0;const n=i.map((({uri:e,originalText:t})=>e.scheme===c.ny.file?e.fsPath:(s++,t))).join(" ");let r;return r=s>0?i.length>1?(0,g.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.kg)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:n,title:r,kind:this.kind}}}let E=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new r.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;const n=(0,s.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,l.iZ)(t.uri,e):void 0})));return n.length?{handledMimeType:a.K.uriList,insertText:n.join(" "),title:i.length>1?(0,g.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};E=m([f(0,p.VR)],E);class b{constructor(){this.kind=new r.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,s,n){if(s.triggerKind!==d.FX.PasteAs&&!s.only?.contains(this.kind))return;const r=i.get("text/html"),o=await(r?.asString());return o&&!n.isCancellationRequested?{dispose(){},edits:[{insertText:o,yieldTo:this._yieldTo,title:(0,g.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function S(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),s=[];for(const r of n.jt.parse(i))try{s.push({uri:h.r.parse(r),originalText:r})}catch{}return s}let y=class extends o.jG{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new v)),this._register(e.documentDropEditProvider.register("*",new C)),this._register(e.documentDropEditProvider.register("*",new E(t)))}};y=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],y);let w=class extends o.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new C)),this._register(e.documentPasteEditProvider.register("*",new E(t))),this._register(e.documentPasteEditProvider.register("*",new b))}};w=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],w)},90360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextResourceConfigurationService:()=>n,ITextResourcePropertiesService:()=>r});var s=i(63591);const n=(0,s.u1)("textResourceConfigurationService"),r=(0,s.u1)("textResourcePropertiesService")},90474:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>k});var s={grad:.9,turn:360,rad:360/(2*Math.PI)},n=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},c=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},l=function(e){return{r:r(e.r),g:r(e.g),b:r(e.b),a:r(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,s=e.b,n=e.a,r=Math.max(t,i,s),o=r-Math.min(t,i,s),a=o?r===t?(i-s)/o:r===i?2+(s-t)/o:4+(t-i)/o:0;return{h:60*(a<0?a+6:a),s:r?o/r*100:0,v:r/255*100,a:n}},g=function(e){var t=e.h,i=e.s,s=e.v,n=e.a;t=t/360*6,i/=100,s/=100;var r=Math.floor(t),o=s*(1-i),a=s*(1-(t-r)*i),c=s*(1-(1-t+r)*i),l=r%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:n}},p=function(e){return{h:a(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:r(e.h),s:r(e.s),l:r(e.l),a:r(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((s=t.l)<50?s:100-s)/100)>0?2*i/(s+i)*100:0,v:s+i,a:t.a}));var t,i,s},_=function(e){return{h:(t=u(e)).h,s:(n=(200-(i=t.s))*(s=t.v)/100)>0&&n<200?i*s/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,i,s,n},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?r(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?r(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||b.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:c({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||C.exec(e);if(!t)return null;var i,n,r=p({h:(i=t[1],n=t[2],void 0===n&&(n="deg"),Number(i)*(s[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(r)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,s=e.b,r=e.a,o=void 0===r?1:r;return n(t)&&n(i)&&n(s)?c({r:Number(t),g:Number(i),b:Number(s),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,i=e.s,s=e.l,r=e.a,o=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var a=p({h:Number(t),s:Number(i),l:Number(s),a:Number(o)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,s=e.v,r=e.a,c=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var l=function(e){return{h:a(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(i),v:Number(s),a:Number(c)});return g(l)},"hsv"]]},y=function(e,t){for(var i=0;i<t.length;i++){var s=t[i][0](e);if(s)return[s,t[i][1]]}return[null,void 0]},w=function(e){return"string"==typeof e?y(e.trim(),S.string):"object"==typeof e&&null!==e?y(e,S.object):[null,void 0]},R=function(e,t){var i=_(e);return{h:i.h,s:o(i.s+100*t,0,100),l:i.l,a:i.a}},L=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},T=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:o(i.l+100*t,0,100),a:i.a}},x=function(){function e(e){this.parsed=w(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return r(L(this.rgba),2)},e.prototype.isDark=function(){return L(this.rgba)<.5},e.prototype.isLight=function(){return L(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,o=(n=e.a)<1?d(r(255*n)):"","#"+d(t)+d(i)+d(s)+o;var e,t,i,s,n,o},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,(n=e.a)<1?"rgba("+t+", "+i+", "+s+", "+n+")":"rgb("+t+", "+i+", "+s+")";var e,t,i,s,n},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,s=e.l,(n=e.a)<1?"hsla("+t+", "+i+"%, "+s+"%, "+n+")":"hsl("+t+", "+i+"%, "+s+"%)";var e,t,i,s,n},e.prototype.toHsv=function(){return e=u(this.rgba),{h:r(e.h),s:r(e.s),v:r(e.v),a:r(e.a,3)};var e},e.prototype.invert=function(){return k({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,-e))},e.prototype.grayscale=function(){return k(R(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),k(T(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),k(T(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?k({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):r(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?k({h:e,s:t.s,l:t.l,a:t.a}):r(t.h)},e.prototype.isEqual=function(e){return this.toHex()===k(e).toHex()},e}(),k=function(e){return e instanceof x?e:new x(e)}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>b,A0:()=>y,AE:()=>T,EQ:()=>f,F6:()=>w,HC:()=>L,PK:()=>d,Qg:()=>l,SS:()=>h,Th:()=>p,Zv:()=>R,b7:()=>S,bI:()=>k,pc:()=>v,uC:()=>E,vb:()=>C,ve:()=>g,wR:()=>m});var s=i(18447),n=i(64383),r=i(41234),o=i(5662),a=i(98067),c=i(44759);function l(e){return!!e&&"function"===typeof e.then}function h(e){const t=new s.Qi,i=e(t.token),r=new Promise(((e,s)=>{const r=t.token.onCancellationRequested((()=>{r.dispose(),s(new n.AL)}));Promise.resolve(i).then((i=>{r.dispose(),t.dispose(),e(i)}),(e=>{r.dispose(),t.dispose(),s(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return r.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return r.finally(e)}}}function d(e,t,i){return new Promise(((s,n)=>{const r=t.onCancellationRequested((()=>{r.dispose(),s(i)}));e.then(s,n).finally((()=>r.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===c.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const s=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}})(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new n.AL),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,s)=>{const r=setTimeout((()=>{o.dispose(),i()}),e),o=t.onCancellationRequested((()=>{clearTimeout(r),o.dispose(),s(new n.AL)}))})):h((t=>m(e,t)))}function f(e,t=0,i){const s=setTimeout((()=>{e(),i&&n.dispose()}),t),n=(0,o.s)((()=>{clearTimeout(s),i?.deleteAndLeak(n)}));return i?.add(n),n}function _(e,t=e=>!!e,i=null){let s=0;const n=e.length,r=()=>{if(s>=n)return Promise.resolve(i);const o=e[s++];return Promise.resolve(o()).then((e=>t(e)?Promise.resolve(e):r()))};return r()}class v{constructor(e,t){this._isDisposed=!1,this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'setIfNotSet' on a disposed TimeoutTimer");-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class C{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=i.setInterval((()=>{e()}),t);this.disposable=(0,o.s)((()=>{i.clearInterval(s),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class E{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let b,S;S="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,s={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(s))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const s=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let n=!1;return{dispose(){n||(n=!0,e.cancelIdleCallback(s))}}},b=e=>S(globalThis,e);class y{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=S(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class w extends y{constructor(e){super(globalThis,e)}}class R{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new n.AL)}}var L;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(s){i(s)}}))}}(L||(L={}));class T{static fromArray(e){return new T((t=>{t.emitMany(e)}))}static fromPromise(e){return new T((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new T((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new T((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}static{this.EMPTY=T.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new T((async i=>{for await(const s of e)i.emitOne(t(s))}))}map(e){return T.map(this,e)}static filter(e,t){return new T((async i=>{for await(const s of e)t(s)&&i.emitOne(s)}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,(e=>!!e))}coalesce(){return T.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}class x extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function k(e){const t=new s.Qi,i=e(t.token);return new x(t,(async e=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),e.reject(new n.AL)}));try{for await(const s of i){if(t.token.isCancellationRequested)return;e.emitOne(s)}s.dispose(),t.dispose()}catch(r){s.dispose(),t.dispose(),e.reject(r)}}))}},90851:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.522 10.68a2.14 2.14 0 0 0 2.11 1.82 2.125 2.125 0 1 0-2.11-1.82M3.64 14h-.015a3.626 3.626 0 0 1-3.558-2.927 3.6 3.6 0 0 1 .256-2.212L2.98 2.98a2.516 2.516 0 0 1 4.802 1.237L7.673 5.6a1.5 1.5 0 0 1 .655 0l-.11-1.382a2.516 2.516 0 0 1 4.801-1.237l2.658 5.88a3.6 3.6 0 0 1 .256 2.213A3.626 3.626 0 0 1 12.375 14h-.015a3.64 3.64 0 0 1-3.628-3.35l-.174-2.176A.96.96 0 0 0 8 8.312a.96.96 0 0 0-.558.162l-.174 2.176A3.64 3.64 0 0 1 3.64 14m-.015-7.25c.91 0 1.742.336 2.379.89l.283-3.542a1.016 1.016 0 0 0-1.94-.5L2.89 6.825a3.6 3.6 0 0 1 .736-.075m10.853 3.93q.022-.15.022-.305a2.125 2.125 0 1 0-2.132 2.125 2.14 2.14 0 0 0 2.11-1.82m-2.826-7.082 1.459 3.227a3.61 3.61 0 0 0-3.115.815l-.283-3.542a1.016 1.016 0 0 1 1.94-.5",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},90870:(e,t,i)=>{"use strict";i.d(t,{D:()=>je});var s,n=i(11007),r=i(25890),o=i(18447),a=i(64383),c=i(41234),l=i(42539),h=i(5662),d=i(98067),u=i(78381),g=i(631),p=i(55190),m=i(31450),f=i(7085),_=i(83069),v=i(36677),C=i(60002),E=i(30936),b=i(29319),S=i(88415),y=i(32848),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class{static{s=this}static{this.AtEnd=new y.N1("atEndOfWord",!1)}constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=s.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(124)&&this._update())),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(124);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};L=s=w([R(1,y.fN)],L);var T,x=i(78209),k=i(50091),A=i(63591),N=i(18801),I=i(48116),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};let M=class{static{T=this}static{this.OtherSuggestions=new y.N1("hasOtherSuggestions",!1)}constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=T.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(0===e.items.length)return void this.reset();T._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let s=i;for(let n=t.items.length;n>0&&(s=(s+t.items.length+(e?1:-1))%t.items.length,s!==i)&&t.items[s].completion.additionalTextEdits;n--);return s}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=T._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};M=T=O([D(1,y.fN)],M);var P=i(60534);class F{constructor(e,t,i,s){this._disposables=new h.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((n=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&s(this._active.item)}})))}_onItem(e){if(!e||!(0,r.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var U=i(96299);class H{static{this._maxSelectionLength=51200}constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let s=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){s=!0;break}if(!s)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const n=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(n.getValueLengthInRange(i)>H._maxSelectionLength)return;this._lastOvertyped[e]={value:n.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}var B=i(8597),W=(i(97791),i(93090)),V=i(90766),z=i(1592),G=i(91508),j=i(29163),K=i(11799),Y=i(57629),q=i(27195),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class{constructor(e,t,i,s,n){this._menuId=t,this._menuService=s,this._contextKeyService=n,this._menuDisposables=new h.Cm,this.element=B.BC(e,B.$(".suggest-status-bar"));const r=e=>e instanceof q.Xe?i.createInstance(Y.rr,e,{useComma:!0}):void 0;this._leftActions=new K.E(this.element,{actionViewItemProvider:r}),this._rightActions=new K.E(this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[s,n]of e.getActions())"left"===s?t.push(...n):i.push(...n);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=$([Q(2,A._Y),Q(3,q.ez),Q(4,y.fN)],X);i(93409);var Z=i(9711),J=i(66261),ee=i(86723),te=i(47612),ie=i(88807),se=i(31295),ne=i(10350),re=i(25689),oe=i(16980),ae=i(20492),ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};function he(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let de=class{constructor(e,t){this._editor=e,this._onDidClose=new c.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new c.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ae.T,{editor:e}),this._body=B.$(".body"),this._scrollbar=new se.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+re.L.asCSSSelector(ne.W.close))),this._close.title=x.kg("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),s=e.get(120)||t.fontSize,n=e.get(121)||t.lineHeight,r=t.fontWeight,o=`${s}px`,a=`${n}px`;this.domNode.style.fontSize=o,this.domNode.style.lineHeight=""+n/s,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=x.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){this._renderDisposeable.clear();let{detail:i,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${e.word??"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${e.completion.commitCharacters?.join("")}\n`,s=(new oe.Bc).appendCodeblock("empty",t),i=`Provider: ${e.provider._debugDisplayName}`}if(t||he(e)){if(this.domNode.classList.remove("no-docs","no-type"),i){const e=i.length>1e5?`${i.substr(0,1e5)}\u2026`:i;this._type.textContent=e,this._type.title=e,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),"string"===typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new B.fg(e,t);B.fg.equals(i,this._size)||(this._size=i,B.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};de=ce([le(1,A._Y)],de);class ue{constructor(e,t){let i,s;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ie.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n=0,r=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,s=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&s){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(r=s.width-e.dimension.width,t=!0),e.north&&(n=s.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+n,left:i.left+r})}e.done&&(i=void 0,s=void 0,n=0,r=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){const i=e.getBoundingClientRect();this._anchorBox=i,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,t)}_placeAtAnchor(e,t,i){const s=B.tG(this.getDomNode().ownerDocument.body),n=this.widget.getLayoutInfo(),r=new B.fg(220,2*n.lineHeight),o=e.top,a=function(){const i=s.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),a=-n.borderWidth+e.left+e.width,c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),c=function(){const i=e.left-n.borderWidth-n.horizontalPadding,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),l=function(){const i=e.left,o=-n.borderWidth+e.top+e.height,a=new B.fg(e.width-n.borderHeight,s.height-e.top-e.height-n.verticalPadding);return{top:o,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),h=[a,c,l],d=h.find((e=>e.fit>=0))??h.sort(((e,t)=>t.fit-e.fit))[0],u=e.top+e.height-n.borderHeight;let g,p=t.height;const m=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);let f;p>m&&(p=m),i?p<=d.maxSizeTop.height?(g=!0,f=d.maxSizeTop):(g=!1,f=d.maxSizeBottom):p<=d.maxSizeBottom.height?(g=!1,f=d.maxSizeBottom):(g=!0,f=d.maxSizeTop);let{top:_,left:v}=d;!g&&p>e.height&&(_=u-p);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();_-=e.top,v-=e.left}this._applyTopLeft({left:v,top:_}),this._resizable.enableSashes(!g,d===a,g,d!==a),this._resizable.minSize=d.minSize,this._resizable.maxSize=f,this._resizable.layout(p,Math.min(f.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var ge=i(21852),pe=i(26690),me=i(79400),fe=i(62083),_e=i(53068),ve=i(23750),Ce=i(10154),Ee=i(7291),be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Se=function(e,t){return function(i,s){t(i,s,e)}};function ye(e){return`suggest-aria-id:${e}`}const we=(0,i(61394).pU)("suggest-more-info",ne.W.chevronRight,x.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Re=new class e{static{this._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/}static{this._regexStrict=new RegExp(`^${e._regexRelaxed.source}$`,"i")}extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if(t.completion.documentation){const s="string"===typeof t.completion.documentation?t.completion.documentation:t.completion.documentation.value,n=e._regexRelaxed.exec(s);if(n&&(0===n.index||n.index+n[0].length===s.length))return i[0]=n[0],!0}return!1}};let Le=class{constructor(e,t,i,s){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=s,this._onDidToggleDetails=new c.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.Cm,i=e;i.classList.add("show-file-icons");const s=(0,B.BC)(e,(0,B.$)(".icon")),n=(0,B.BC)(s,(0,B.$)("span.colorspan")),r=(0,B.BC)(e,(0,B.$)(".contents")),o=(0,B.BC)(r,(0,B.$)(".main")),a=(0,B.BC)(o,(0,B.$)(".icon-label.codicon")),c=(0,B.BC)(o,(0,B.$)("span.left")),l=(0,B.BC)(o,(0,B.$)("span.right")),d=new ge.s(c,{supportHighlights:!0,supportIcons:!0});t.add(d);const u=(0,B.BC)(c,(0,B.$)("span.signature-label")),g=(0,B.BC)(c,(0,B.$)("span.qualifier-label")),p=(0,B.BC)(l,(0,B.$)("span.details-label")),m=(0,B.BC)(l,(0,B.$)("span.readMore"+re.L.asCSSSelector(we)));m.title=x.kg("readMore","Read More");return{root:i,left:c,right:l,icon:s,colorspan:n,iconLabel:d,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),n=t.getMassagedFontFamily(),r=t.fontFeatureSettings,a=e.get(120)||t.fontSize,c=e.get(121)||t.lineHeight,l=t.fontWeight,h=`${a}px`,d=`${c}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=l,i.style.letterSpacing=u,o.style.fontFamily=n,o.style.fontFeatureSettings=r,o.style.lineHeight=d,s.style.height=d,s.style.width=d,m.style.height=d,m.style.width=d}}}renderElement(e,t,i){i.configureFont();const{completion:s}=e;i.root.id=ye(t),i.colorspan.style.backgroundColor="";const n={labelEscapeNewLines:!0,matches:(0,pe.WJ)(e.score)},r=[];if(19===s.kind&&Re.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(20===s.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FILE),r=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FILE);n.extraClasses=t.length>r.length?t:r}else 23===s.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",n.extraClasses=[(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FOLDER),(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.L.asClassNameArray(fe.HC.toIcon(s.kind))));s.tags&&s.tags.indexOf(1)>=0&&(n.extraClasses=(n.extraClasses||[]).concat(["deprecated"]),n.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,n),"string"===typeof s.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Te(s.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Te(s.label.detail||""),i.detailsLabel.textContent=Te(s.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?(0,B.WU)(i.detailsLabel):(0,B.jD)(i.detailsLabel),he(e)?(i.right.classList.add("can-expand-details"),(0,B.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,B.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Te(e){return e.replace(/\r\n|\r|\n/g,"")}Le=be([Se(1,ve.IModelService),Se(2,Ce.L),Se(3,te.Gy)],Le);var xe,ke=i(19070),Ae=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ne=function(e,t){return function(i,s){t(i,s,e)}};(0,J.x1A)("editorSuggestWidget.background",J.CgL,x.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,J.x1A)("editorSuggestWidget.border",J.sIe,x.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ie=(0,J.x1A)("editorSuggestWidget.foreground",J.By2,x.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,J.x1A)("editorSuggestWidget.selectedForeground",J.nH,x.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.selectedIconForeground",J.c7i,x.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Oe=(0,J.x1A)("editorSuggestWidget.selectedBackground",J.AlL,x.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,J.x1A)("editorSuggestWidget.highlightForeground",J.QI5,x.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.focusHighlightForeground",J.eMz,x.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,J.x1A)("editorSuggestWidgetStatus.foreground",(0,J.JO0)(Ie,.5),x.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class De{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof j.t}`}restore(){const e=this._service.get(this._key,0)??"";try{const t=JSON.parse(e);if(B.fg.is(t))return B.fg.lift(t)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Me=class{static{xe=this}static{this.LOADING_MESSAGE=x.kg("suggestWidget.loading","Loading...")}static{this.NO_SUGGESTIONS_MESSAGE=x.kg("suggestWidget.noSuggestions","No suggestions.")}constructor(e,t,i,s,n){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.HE,this._pendingShowDetails=new h.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new V.pc,this._disposables=new h.Cm,this._onDidSelect=new c.fV,this._onDidFocus=new c.fV,this._onDidHide=new c.vl,this._onDidShow=new c.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new c.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ie.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Pe(this,e),this._persistedSize=new De(t,e);class r{constructor(e,t,i=!1,s=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=s}}let o;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),o=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{if(this._resize(e.dimension.width,e.dimension.height),o&&(o.persistHeight=o.persistHeight||!!e.north||!!e.south,o.persistWidth=o.persistWidth||!!e.east||!!e.west),e.done){if(o){const{itemHeight:e,defaultSize:t}=this.getLayoutInfo(),i=Math.round(e/2);let{width:s,height:n}=this.element.size;(!o.persistHeight||Math.abs(o.currentSize.height-n)<=i)&&(n=o.persistedSize?.height??t.height),(!o.persistWidth||Math.abs(o.currentSize.width-s)<=i)&&(s=o.persistedSize?.width??t.width),this._persistedSize.store(new B.fg(s,n))}this._contentWidget.unlockPreference(),o=void 0}}))),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const a=this._disposables.add(n.createInstance(de,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ue(a,this.editor);const l=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);l();const d=n.createInstance(Le,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new W.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>x.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:s}=e.completion.label;i&&s?t=x.kg("label.full","{0} {1}, {2}",t,i,s):i?t=x.kg("label.detail","{0} {1}",t,i):s&&(t=x.kg("label.desc","{0}, {1}",t,s))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:s}=e.completion,n=G.GP("{0}{1}",s||"",i?"string"===typeof i?i:i.value:"");return x.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,n)}}}),this._list.style((0,ke.t8)({listInactiveFocusBackground:Oe,listInactiveFocusOutline:J.buw})),this._status=n.createInstance(X,this.element.domNode,I.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);u(),this._disposables.add(s.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(s.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(119)&&(u(),l()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(120)||e.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=I.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=I.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=I.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=I.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),this._loadingTimeout?.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,ee.Bb)(e.type)?2:1}_onListFocus(e){if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const t=e.elements[0],i=e.indexes[0];t!==this._focusedItem&&(this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=t,this._list.reveal(i),this._currentSuggestionDetails=(0,V.SS)((async e=>{const i=(0,V.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),s=e.onCancellationRequested((()=>i.dispose()));try{return await t.resolve(e)}finally{i.dispose(),s.dispose()}})),this._currentSuggestionDetails.then((()=>{i>=this._list.length||t!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[t]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ye(i)}))})).catch(a.dz)),this._onDidFocus.fire({item:t,index:i,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:B.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,V.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,s,n){if(this._contentWidget.setPosition(this.editor.getPosition()),this._loadingTimeout?.dispose(),this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const r=this._completionModel.items.length,o=0===r;if(this._ctxSuggestWidgetMultipleSuggestions.set(r>1),o)return this._setState(s?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(n?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!he(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){this._pendingLayout.clear(),this._pendingShowDetails.clear(),this._loadingTimeout?.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const e=this._persistedSize.restore(),t=Math.ceil(4.3*this.getLayoutInfo().itemHeight);e&&e.height<t&&this._persistedSize.store(e.with(void 0,t))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const t=B.tG(this.element.domNode.ownerDocument.body),i=this.getLayoutInfo();e||(e=i.defaultSize);let s=e.height,n=e.width;if(this._status.element.style.height=`${i.itemHeight}px`,2===this._state||1===this._state)s=i.itemHeight+i.borderHeight,n=i.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new B.fg(n,s),this._contentWidget.setPreference(2);else{const r=t.width-i.borderHeight-2*i.horizontalPadding;n>r&&(n=r);const o=this._completionModel?this._completionModel.stats.pLabelLen*i.typicalHalfwidthCharacterWidth:n,a=i.statusBarHeight+this._list.contentHeight+i.borderHeight,c=i.itemHeight+i.statusBarHeight,l=B.BK(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=l.top+h.top+h.height,u=Math.min(t.height-d-i.verticalPadding,a),g=l.top+h.top-i.verticalPadding,p=Math.min(g,a);let m=Math.min(Math.max(p,u)+i.borderHeight,a);s===this._cappedHeight?.capped&&(s=this._cappedHeight.wanted),s<c&&(s=c),s>m&&(s=m);const f=150;s>u||this._forceRenderingAbove&&g>f?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),m=p):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),m=u),this.element.preferredSize=new B.fg(o,i.defaultSize.height),this.element.maxSize=new B.fg(r,m),this.element.minSize=new B.fg(220,c),this._cappedHeight=s===a?{wanted:this._cappedHeight?.wanted??e.height,capped:s}:void 0}this._resize(n,s)}_resize(e,t){const{width:i,height:s}=this.element.maxSize;e=Math.min(i,e),t=Math.min(s,t);const{statusBarHeight:n}=this.getLayoutInfo();this._list.layout(t-n,e),this._listElement.style.height=t-n+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===this._contentWidget.getPosition()?.preference[0])}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,z.qE)(this.editor.getOption(121)||e.lineHeight,8,1e3),i=this.editor.getOption(119).showStatusBar&&2!==this._state&&1!==this._state?t:0,s=this._details.widget.borderWidth,n=2*s;return{itemHeight:t,statusBarHeight:i,borderWidth:s,borderHeight:n,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,i+12*t+n)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Me=xe=Ae([Ne(1,Z.CS),Ne(2,y.fN),Ne(3,te.Gy),Ne(4,A._Y)],Me);class Pe{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:s}=this._widget.getLayoutInfo();return new B.fg(t+2*i+s,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Fe,Ue=i(90651),He=i(89403),Be=i(85600),We=i(87289),Ve=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ze=function(e,t){return function(i,s){t(i,s,e)}};class Ge{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=We.kI.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),s=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.Q.fromPositions(t,s),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let je=class{static{Fe=this}static{this.ID="editor.contrib.suggestController"}static get(e){return e.getContribution(Fe.ID)}constructor(e,t,i,s,n,r,o){this._memoryService=t,this._commandService=i,this._contextKeyService=s,this._instantiationService=n,this._logService=r,this._telemetryService=o,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new Ke((e=>e.priority)),this._onWillInsertSuggestItem=new c.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=n.createInstance(U.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=I.ob.InsertMode.bindTo(s);a.set(e.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(119).insertMode)))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Me,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=I.ob.MakesTextEdit.bindTo(this._contextKeyService),s=I.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),n=I.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),s.reset(),n.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),r=e.editStart.column,o=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&o-r===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:r,endLineNumber:t.lineNumber,endColumn:o})!==e.completion.insertText}i.set(a),s.set(!_.y.equals(e.editInsertEnd,e.editReplaceEnd)),n.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new l.dG(!0,!1,!1,!1,33))||d.zx&&e.toKeyCodeChord().equals(new l.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new H(this.editor,this.model))))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new M(this.editor,this._contextKeyService))))),this._toDispose.add(n.createInstance(L,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ge(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const s of this._selectors.itemsOrderedByPriorityDesc)if(t=s.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(119);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=I.ob.AcceptSuggestionsOnEnter.bindTo(s),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=E.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const s=this.editor.getModel(),n=s.getAlternativeVersionId(),{item:r}=e,c=[],l=new o.Qi;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(r,Boolean(8&t));this._memoryService.memorize(s,this.editor.getPosition(),r);const d=r.isResolved;let g=-1,m=-1;if(Array.isArray(r.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map((e=>{let t=v.Q.lift(e.range);if(t.startLineNumber===r.position.lineNumber&&t.startColumn>r.position.column){const e=this.editor.getPosition().column-r.position.column,i=e,s=v.Q.spansMultipleLines(t)?0:e;t=new v.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+s)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){const e=new u.W;let i;const n=s.onDidChangeContent((e=>{if(e.isFlush)return l.cancel(),void n.dispose();for(const t of e.changes){const e=v.Q.getEndPosition(t.range);i&&!_.y.isBefore(e,i)||(i=e)}})),o=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&o||this.editor.pushUndoStop()}));c.push(r.resolve(l.token).then((()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(i&&r.completion.additionalTextEdits.some((e=>_.y.isBefore(i,v.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map((e=>f.k.replaceMove(v.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&o||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{n.dispose(),h.dispose()})))}let{insertText:C}=r.completion;if(4&r.completion.insertTextRules||(C=b.fr.escape(C)),this.model.cancel(),i.insert(C,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command)if(r.completion.command.id===Ye.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;c.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch((e=>{r.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(l.cancel();s.canUndo();){n!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(r),Promise.all(c).finally((()=>{this._reportSuggestionAcceptedTelemetry(r,s,d,g,m,e.index,e.model.items),this.model.clear(),l.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,s,n,r,o){if(0===Math.floor(100*Math.random()))return;const a=new Map;for(let h=0;h<Math.min(30,o.length);h++){const e=o[h].textLabel;a.has(e)?a.get(e).push(h):a.set(e,[h])}const c=a.get(e.textLabel),l=c&&c.length>1?c[0]:-1;this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:e.extensionId?.value??"unknown",providerId:e.provider._debugDisplayName??"unknown",kind:e.completion.kind,basenameHash:(0,Be.tW)((0,He.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,He.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:s,additionalEditsAsync:n,index:r,firstIndex:l})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(119).insertMode;t&&(i=!i);const s=e.position.column-e.editStart.column,n=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:s+(this.editor.getPosition().column-e.position.column),overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.EI)(e.completion.additionalTextEdits)){const t=x.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:t??!1,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},s=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,s=t.column;if(s-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText};c.Jh.once(this.model.onDidTrigger)((e=>{const t=[];c.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const n=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),r=e.items[n];s(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:n,item:r,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let s=0;e&&(s|=4),t&&(s|=8),this._insertSuggestion(i,s)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};je=Fe=Ve([ze(1,S.GS),ze(2,k.d),ze(3,y.fN),ze(4,A._Y),ze(5,N.rr),ze(6,Ue.k)],je);class Ke{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Ye extends m.ks{static{this.id="editor.action.triggerSuggest"}constructor(){super({id:Ye.id,label:x.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:y.M$.and(C.R.writable,C.R.hasCompletionItemProvider,I.ob.Visible.toNegated()),kbOpts:{kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const s=je.get(t);if(!s)return;let n;i&&"object"===typeof i&&!0===i.auto&&(n=!0),s.triggerSuggest(void 0,n,void 0)}}(0,m.HW)(je.ID,je,2),(0,m.Fl)(Ye);const qe=190,$e=m.DX.bindToContribution(je.get);(0,m.E_)(new $e({id:"acceptSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus),weight:qe},{primary:3,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.AcceptSuggestionsOnEnter,I.ob.MakesTextEdit),weight:qe}],menuOpts:[{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:I.ob.HasInsertAndReplaceRange.toNegated()},{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert"))},{menuId:I.dt,title:x.kg("accept.replace","Replace"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new $e({id:"acceptAlternativeSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.HasFocusedSuggestion),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert")),title:x.kg("accept.replace","Replace")},{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace")),title:x.kg("accept.insert","Insert")}]})),k.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new $e({id:"hideSuggestWidget",precondition:I.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new $e({id:"selectNextSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new $e({id:"selectNextPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new $e({id:"selectLastSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new $e({id:"selectPrevSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new $e({id:"selectPrevPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new $e({id:"selectFirstSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new $e({id:"focusSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new $e({id:"focusAndAcceptSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new $e({id:"toggleSuggestionDetails",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible,I.ob.CanResolve),title:x.kg("detail.more","Show Less")},{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible.toNegated(),I.ob.CanResolve),title:x.kg("detail.less","Show More")}]})),(0,m.E_)(new $e({id:"toggleExplainMode",precondition:I.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new $e({id:"toggleSuggestionFocus",precondition:I.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new $e({id:"insertBestCompletion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),L.AtEnd,I.ob.Visible.toNegated(),M.OtherSuggestions.toNegated(),E.O.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:qe,primary:2}})),(0,m.E_)(new $e({id:"insertNextSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2}})),(0,m.E_)(new $e({id:"insertPrevSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:x.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){je.get(t)?.resetWidgetSize()}})},91090:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},91508:(e,t,i)=>{"use strict";i.d(t,{$X:()=>q,AV:()=>r,BO:()=>g,Bm:()=>p,Bq:()=>d,DB:()=>T,E_:()=>G,GP:()=>a,HG:()=>E,LJ:()=>M,LU:()=>Z,Lv:()=>x,MV:()=>W,NB:()=>u,OS:()=>f,Q_:()=>A,Qp:()=>I,S8:()=>re,Ss:()=>Q,UD:()=>y,UU:()=>b,Vi:()=>O,W1:()=>R,Wd:()=>se,Wv:()=>k,Z5:()=>F,_J:()=>Y,aC:()=>K,bm:()=>h,eY:()=>_,en:()=>C,ih:()=>l,iy:()=>B,jy:()=>c,km:()=>H,lF:()=>w,lT:()=>S,m:()=>V,ne:()=>$,ns:()=>N,pc:()=>D,r_:()=>X,tk:()=>ee,tl:()=>oe,uz:()=>v,wB:()=>m,y_:()=>ae,zY:()=>J,z_:()=>P,zd:()=>L});var s=i(81788),n=i(91090);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const o=/{(\d+)}/g;function a(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=t.length?e:t[s]}))}function c(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function l(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(e,t=" "){return g(u(e,t),t)}function u(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=i;return e.substring(s)}function g(e,t){if(!e||!t)return e;const i=t.length,s=e.length;if(0===i||0===s)return e;let n=s,r=-1;for(;r=e.lastIndexOf(t,n-1),-1!==r&&r+i===n;){if(0===r)return"";n=r}return e.substring(0,n)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function f(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return i.global&&(s+="g"),i.matchCase||(s+="i"),i.multiline&&(s+="m"),i.unicode&&(s+="u"),new RegExp(e,s)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function v(e){return e.split(/\r\n|\r|\n/)}function C(e){const t=[],i=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(i.length/2);s++)t.push(i[2*s]+(i[2*s+1]??""));return t}function E(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function b(e,t=0,i=e.length){for(let s=t;s<i;s++){const i=e.charCodeAt(s);if(32!==i&&9!==i)return e.substring(t,s)}return e.substring(t,i)}function S(e,t=e.length-1){for(let i=t;i>=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function y(e,t){return e<t?-1:e>t?1:0}function w(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){const s=e.charCodeAt(i),r=t.charCodeAt(n);if(s<r)return-1;if(s>r)return 1}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function R(e,t){return L(e,t,0,e.length,0,t.length)}function L(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){let o=e.charCodeAt(i),a=t.charCodeAt(n);if(o===a)continue;if(o>=128||a>=128)return w(e.toLowerCase(),t.toLowerCase(),i,s,n,r);x(o)&&(o-=32),x(a)&&(a-=32);const c=o-a;if(0!==c)return c}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function T(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122}function k(e){return e>=65&&e<=90}function A(e,t){return e.length===t.length&&0===L(e,t)}function N(e,t){const i=t.length;return!(t.length>e.length)&&0===L(e,t,0,i)}function I(e,t){const i=Math.min(e.length,t.length);let s;for(s=0;s<i;s++)if(e.charCodeAt(s)!==t.charCodeAt(s))return s;return i}function O(e,t){const i=Math.min(e.length,t.length);let s;const n=e.length-1,r=t.length-1;for(s=0;s<i;s++)if(e.charCodeAt(n-s)!==t.charCodeAt(r-s))return s;return i}function D(e){return 55296<=e&&e<=56319}function M(e){return 56320<=e&&e<=57343}function P(e,t){return t-56320+(e-55296<<10)+65536}function F(e,t,i){const s=e.charCodeAt(i);if(D(s)&&i+1<t){const t=e.charCodeAt(i+1);if(M(t))return P(s,t)}return s}class U{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(M(i)&&t>1){const s=e.charCodeAt(t-2);if(D(s))return P(s,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=F(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new U(e,t)}nextGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());if(te(s,n)){t.setOffset(i);break}s=n}return t.offset-i}prevGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());if(te(n,s)){t.setOffset(i);break}s=n}return i-t.offset}eol(){return this._iterator.eol()}}function B(e,t){return new H(e,t).nextGraphemeLength()}function W(e,t){return new H(e,t).prevGraphemeLength()}function V(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+B(e,t);return[i-W(e,i),i]}let z;function G(e){return z||(z=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),z.test(e)}const j=/^[\t\n\r\x20-\x7E]*$/;function K(e){return j.test(e)}const Y=/[\u2028\u2029]/;function q(e){return Y.test(e)}function $(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function Z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function te(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ie{static{this._INSTANCE=null}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(e<t[3*s])s*=2;else{if(!(e>t[3*s+1]))return t[3*s+2];s=2*s+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new U(t,e);let s=i.prevCodePoint();for(;ne(s)||65039===s||8419===s;){if(0===i.offset)return;s=i.prevCodePoint()}if(!Q(s))return;let n=i.offset;if(n>0){8205===i.prevCodePoint()&&(n=i.offset)}return n}(e,t);if(void 0!==i)return i;const s=new U(t,e);return s.prevCodePoint(),s.offset}function ne(e){return 127995<=e&&e<=127999}const re="\xa0";class oe{static{this.ambiguousCharacterData=new n.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new s.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[s,n]of e)t.has(s)&&i.set(s,n);return i}const s=this.ambiguousCharacterData.value;let n,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const a of r){n=i(n,t(s[a]))}const o=function(e,t){const i=new Map(e);for(const[s,n]of t)i.set(s,n);return i}(t(s._common),n);return new oe(o)}))}static getInstance(e){return oe.cache.get(Array.from(e))}static{this._locales=new n.d((()=>Object.keys(oe.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return oe._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>E,x8:()=>v});var s=i(8597),n=i(56245),r=i(27661),o=i(11799),a=i(11007),c=i(48196),l=i(42904),h=i(31295),d=i(17390),u=i(41234);class g{constructor(e,t=0,i=e.length,s=t-1){this.items=e,this.start=t,this.end=i,this.index=s}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 p{constructor(e=[],t=10){this._initialize(e),this._limit=t,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();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(10146),f=i(78209);const _=s.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class C extends d.x{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=this.options.tooltip??(this.placeholder||""),this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=s.BC(e,_(".monaco-inputbox.idle"));const r=this.options.flexibleHeight?"textarea":"input",a=s.BC(this.element,_(".ibwrapper"));if(this.input=s.BC(a,_(r+".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:Number.POSITIVE_INFINITY,this.mirror=s.BC(a,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),s.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new n.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return t?.anchorNode===a}));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 o.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}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?this.hover.update(e):this.hover=this._register((0,c.i)().setupManagedHover((0,l.nZ)("mouse"),this.input,e))}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:s.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return s.X7(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(){const e=this.input.selectionStart;if(null===e)return null;return{start:e,end:this.input.selectionEnd??e}}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;const 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,m.aI)(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));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${s.gI(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(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e?.type}stylesForType(e){const 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(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=s.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{if(!this.message)return null;e=s.BC(i,_(".monaco-inputbox-container")),t();const n={inline:!0,className:"monaco-inputbox-message"},o=this.message.formatContent?(0,r.yk)(this.message.content,n):(0,r.S5)(this.message.content,n);o.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return o.style.backgroundColor=a.background??"",o.style.color=a.foreground??"",o.style.border=a.border?`1px solid ${a.border}`:"",s.BC(e,o),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.kg("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.kg("alertWarningMessage","Warning: {0}",this.message.content):f.kg("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}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()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){const e=this.options.inputBoxStyles,t=e.inputBackground??"",i=e.inputForeground??"",n=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 ${s.gI(n,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=s.OK(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))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,s=t.selectionEnd,n=t.value;null!==i&&null!==s&&(this.value=n.substr(0,i)+e+n.substr(s),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar?.dispose(),super.dispose()}}class E extends C{constructor(e,t,i){const n=f.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),r=f.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?n:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!s.X7(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,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(r)||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??"",a.h5(this.value?this.value:f.kg("clearedInput","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,a.h5(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()}}},92080:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(6214).then(i.bind(i,26214))})},92159:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.22 1.22V1.75a.75.75 0 0 1 1.5 0v7.69l1.22-1.22a.75.75 0 1 1 1.06 1.06zM1.75 13.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},92368:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>E,Am:()=>d,D1:()=>v,EK:()=>w,MZ:()=>S,Mu:()=>y,Nu:()=>f,O8:()=>R,Vs:()=>b,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>_});var s=i(46041),n=i(18447),r=i(5662),o=i(31308),a=i(4983),c=i(83069),l=i(36677),h=i(50973);function d(e,t,i,s){if(0===e.length)return t;if(0===t.length)return e;const n=[];let r=0,o=0;for(;r<e.length&&o<t.length;){const a=e[r],c=t[o],l=i(a),h=i(c);l<h?(n.push(a),r++):l>h?(n.push(c),o++):(n.push(s(a,c)),r++,o++)}for(;r<e.length;)n.push(e[r]),r++;for(;o<t.length;)n.push(t[o]),o++;return n}function u(e,t){const i=new r.Cm,s=e.createDecorationsCollection();return i.add((0,o.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function g(e,t){return e.appendChild(t),(0,r.s)((()=>{t.remove()}))}function p(e,t){return e.prepend(t),(0,r.s)((()=>{t.remove()}))}class m extends r.jG{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 a.u(e,t)),this._width=(0,o.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,o.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,o.Rn)((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 f(e,t,i){let s=t.get(),n=s,r=s;const a=(0,o.FY)("animatedValue",s);let c=-1;let l;function h(){const t=Date.now()-c;var i,o,d,u;r=Math.floor((o=n,d=s-n,(i=t)===(u=300)?o+d:d*(1-Math.pow(2,-10*i/u))+o)),t<300?l=e.requestAnimationFrame(h):r=s,a.set(r,void 0)}return i.add((0,o.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,o)=>{void 0!==l&&(e.cancelAnimationFrame(l),l=void 0),n=r,s=t.read(i),c=Date.now()-(o.animate?0:300),h()}))),a}class _ extends r.jG{constructor(e,t,i){super(),this._register(new C(e,i)),this._register(E(i,{height:t.actualHeight,top:t.actualTop}))}}class v{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,o.FY)(this,void 0),this._actualHeight=(0,o.FY)(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 C{static{this._counter=0}constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+C._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function E(e,t){return(0,o.fm)((i=>{for(let[s,n]of Object.entries(t))n&&"object"===typeof n&&"read"in n&&(n=n.read(i)),"number"===typeof n&&(n=`${n}px`),s=s.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[s]=n}))}function b(e,t,i,s){const n=new r.Cm,a=[];return n.add((0,o.yC)(((n,r)=>{const c=t.read(n),l=new Map,h=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t),s?.delete(t);a.length=0;for(const t of c){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),s?.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,o.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=h.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,s)=>{for(const e of c)e.onChange&&(h.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of s.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),n.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t)})),s?.clear(),i&&i(!1)}}),n}class S extends n.Qi{dispose(){super.dispose(!0)}}function y(e,t){const i=(0,s.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return l.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return l.Q.fromPositions(new c.y(t,e.column))}if(!i.innerChanges)return l.Q.fromPositions(new c.y(i.modified.startLineNumber,1));const n=(0,s.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return l.Q.fromPositions(new c.y(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(r=n.originalRange.getEndPosition(),o=e,r.lineNumber===o.lineNumber?new h.W(0,o.column-r.column):new h.W(o.lineNumber-r.lineNumber,o.column-1));return l.Q.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var r,o}function w(e,t){let i;return e.filter((e=>{const s=t(e,i);return i=e,s}))}class R{static create(e,t=void 0){return new L(e,e,t)}static createWithDisposable(e,t,i=void 0){const s=new r.Cm;return s.add(t),s.add(e),new L(e,s,i)}}class L extends R{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 T(this,e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(e){if(this._refCount--,0===this._refCount&&this._disposable.dispose(),e){const t=this._owners.indexOf(e);-1!==t&&this._owners.splice(t,1)}}}class T extends R{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))}}},92403:(e,t,i)=>{"use strict";i.d(t,{B:()=>u,m:()=>C});var s=i(8597),n=i(56245),r=i(25154),o=i(90766),a=i(58694),c=i(41234),l=i(5662),h=i(98067),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new c.vl;const p=new c.vl;class m{constructor(e){this.el=e,this.disposables=new l.Cm}get onPointerMove(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}d([a.B],m.prototype,"onPointerMove",null),d([a.B],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new n.f(this.el,r.B.Change)).event}get onPointerUp(){return this.disposables.add(new n.f(this.el,r.B.End)).event}constructor(e){this.el=e,this.disposables=new l.Cm}dispose(){this.disposables.dispose()}}d([a.B],f.prototype,"onPointerMove",null),d([a.B],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}d([a.B],_.prototype,"onPointerMove",null),d([a.B],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class C extends l.jG{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))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,l.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};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){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,l.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new o.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new c.vl),this._onDidStart=this._register(new c.vl),this._onDidChange=this._register(new c.vl),this._onDidReset=this._register(new c.vl),this._onDidEnd=this._register(new c.vl),this.orthogonalStartSashDisposables=this._register(new l.Cm),this.orthogonalStartDragHandleDisposables=this._register(new l.Cm),this.orthogonalEndSashDisposables=this._register(new l.Cm),this.orthogonalEndDragHandleDisposables=this._register(new l.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,s.BC)(e,(0,s.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.zx&&this.el.classList.add("mac");const a=this._register(new n.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const d=this._register(new n.f(this.el,"dblclick")).event;this._register(d(this.onPointerDoublePress,this));const u=this._register(new n.f(this.el,"mouseenter")).event;this._register(u((()=>C.onMouseEnter(this))));const _=this._register(new n.f(this.el,"mouseleave")).event;this._register(_((()=>C.onMouseLeave(this)))),this._register(r.q.addTarget(this.el));const v=this._register(new n.f(this.el,r.B.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const E=this._register(new n.f(this.el,r.B.Tap)).event;let b;this._register(E((e=>{if(b)return clearTimeout(b),b=void 0,void this.onPointerDoublePress(e);clearTimeout(b),b=setTimeout((()=>b=void 0),250)}),this)),"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(g.event((e=>{this.size=e,this.layout()})))),this._register(p.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",false),this.layout()}onPointerStart(e,t){s.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const s=this.getOrthogonalSash(e);s&&(i=!0,e.__orthogonalSashEvent=!0,s.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const s of n)s.classList.add(v);const r=e.pageX,o=e.pageY,a=e.altKey,c={startX:r,currentX:r,startY:o,currentY:o,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(c);const d=(0,s.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.zx?"col-resize":"ew-resize",d.textContent=`* { cursor: ${e} !important; }`},g=new l.Cm;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{s.fs.stop(e,!1);const t={startX:r,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{s.fs.stop(e,!1),d.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of n)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const 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&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const 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{const 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){const t=e.initialTarget??e.target;if(t&&(0,s.sb)(t))return t.classList.contains("orthogonal-drag-handle")?t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},92473:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>S});var s=i(60413),n=i(55275),r=i(98067),o=i(80624);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,s,n){const r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,s),r.getClientRects()}catch(o){return null}finally{this._detachRange(r,n)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);const t=[];let i=0,s=e[0];for(let n=1,r=e.length;n<r;n++){const r=e[n];s.left+s.width+.9>=r.left?s.width=Math.max(s.width,r.left+r.width-s.left):(t[i++]=s,s=r)}return t[i++]=s,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const s=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];s[n]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(s)}static readHorizontalRanges(e,t,i,s,n,r){const o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(s=Math.min(o,Math.max(0,s)))&&i===n&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==s&&s>0&&0===n&&(s--,n=1073741824);let a=e.children[t].firstChild,c=e.children[s].firstChild;if(a&&c||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!c&&0===n&&s>0&&(c=e.children[s-1].firstChild,n=1073741824)),!a||!c)return null;i=Math.min(a.textContent.length,Math.max(0,i)),n=Math.min(c.textContent.length,Math.max(0,n));const l=this._readClientRects(a,i,c,n,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(l,r.clientRectDeltaLeft,r.clientRectScale)}}var c=i(25521),l=i(35600),h=i(86723),d=i(87908);const u=!!r.ib||!(r.j9||s.gm||s.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,s=i.get(50),n=i.get(38);this.renderWhitespace="off"===n?i.get(100):"none",this.renderControlCharacters=i.get(95),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.useMonospaceOptimizations=s.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{static{this.CLASS_NAME="view-line"}constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,n.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,s,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=s.getViewLineRenderingData(e),o=this._options,a=c.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let p=null;if((0,h.Bb)(o.themeType)||"selection"===this._options.renderWhitespace){const t=s.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:r.minColumn,s=i.endLineNumber===e?i.endColumn:r.maxColumn;t<s&&((0,h.Bb)(o.themeType)&&a.push(new c.d(t,s,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new l.MT(t-1,s-1))))}}const _=new l.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==d.Bc.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;" class="'),n.appendString(m.CLASS_NAME),n.appendString('">');const v=(0,l.UW)(_,n);n.appendString("</div>");let E=null;return g&&u&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===v.containsForeignElements&&(E=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),E||(E=C(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=E,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,s){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const n=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==n&&t>n+1&&i>n+1)return new o.pj(!0,[new o.IO(this.getWidth(s),0)]);-1!==n&&t>n+1&&(t=n+1),-1!==n&&i>n+1&&(i=n+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,s);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const s=Math.floor(t.lineContent.length/300);if(s>0){this._keyColumnPixelOffsetCache=new Float32Array(s);for(let e=0;e<s;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,s){const n=this._getColumnPixelOffset(e,t,s),r=this._getColumnPixelOffset(e,i,s);return[new o.IO(n,r-n)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const s=Math.floor((t-1)/300)-1,n=300*(s+1)+1;let r=-1;if(this._keyColumnPixelOffsetCache&&(r=this._keyColumnPixelOffsetCache[s],-1===r&&(r=this._actualReadPixelOffset(e,n,i),this._keyColumnPixelOffsetCache[s]=r)),-1===r){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const o=this._characterMapping.getHorizontalOffset(n),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const s=this._characterMapping.getDomPosition(t),n=a.readHorizontalRanges(this._getReadingTarget(this.domNode),s.partIndex,s.charIndex,s.partIndex,s.charIndex,i);return n&&0!==n.length?n[0].left:-1}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class _{constructor(e,t,i,s,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,!s||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,s){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const n=this._readPixelOffset(this.domNode,e,t,s);if(-1===n)return null;const r=this._readPixelOffset(this.domNode,e,i,s);return-1===r?null:[new o.IO(n,r-n)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,s)}_readVisibleRangesForRange(e,t,i,s,n){if(i===s){const s=this._readPixelOffset(e,t,i,n);return-1===s?null:[new o.IO(s,0)]}return this._readRawVisibleRangesForRange(e,i,s,n)}_readPixelOffset(e,t,i,s){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(s);const t=this._getReadingTarget(e);return t.firstChild?(s.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const n=this._pixelOffsetCache[i];if(-1!==n)return n;const r=this._actualReadPixelOffset(e,t,i,s);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,s)}_actualReadPixelOffset(e,t,i,s){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,s);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(s);const n=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,n.partIndex,n.charIndex,s);if(!r||0===r.length)return-1;const o=r[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-o)<=1)return t}return o}_readRawVisibleRangesForRange(e,t,i,s){if(1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(s))];const n=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,r.partIndex,r.charIndex,s)}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,s,n){const r=super._readVisibleRangesForRange(e,t,i,s,n);if(!r||0===r.length||i===s||1===i&&s===this._characterMapping.length)return r;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,s,n);if(-1!==i){const e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}const C=s.Tc?E:b;function E(e,t,i,s,n){return new v(e,t,i,s,n)}function b(e,t,i,s,n){return new _(e,t,i,s,n)}function S(e,t,i){const s=t.textContent.length;let n=-1;for(;t;)t=t.previousSibling,n++;return e.getColumn(new l.wZ(n,i),s)}},92674:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,Vs:()=>h,x9:()=>u,xD:()=>c,yP:()=>l});var s=i(25890),n=i(91508),r=i(83069),o=i(36677),a=i(75295);class c{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(o.Q.fromPositions(new r.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class l{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,n.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i,s=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=s,this.parts=[new l(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,n.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function d(e,t){return(0,s.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof c&&t instanceof c||e instanceof h&&t instanceof h)&&e.equals(t))}},92719:(e,t,i)=>{"use strict";var s;i.d(t,{Q:()=>s}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),s=Math.min(e.end,t.end);return s-i<=0?{start:0,end:0}:{start:i,end:s}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,s){return!i(t(e,s))},e.relativeComplement=function(e,t){const s=[],n={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(n)||s.push(n),i(r)||s.push(r),s}}(s||(s={}))},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},92778:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(34420);return function(i,n,r){n=Object.assign({},n,{format:t.JSON,showDecoded:!1,compact:!1,escapeWhitespace:!0});let o=i.$value;try{o=JSON.parse(i.$value)}catch(a){console.error("Invalid JSON string",i.$value)}return e(s(o,n),n,r)}}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>c,LM:()=>o,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>d,qL:()=>l,vo:()=>u});var s=i(25890),n=i(91508),r=i(36677);class o{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|s}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class c{constructor(e,t,i,s,n,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=n,this.tokens=r,this.inlineDecorations=o}}class l{constructor(e,t,i,s,n,r,o,a,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=l.isBasicASCII(i,r),this.containsRTL=l.containsRTL(i,this.isBasicASCII,n),this.tokens=o,this.inlineDecorations=a,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&n.E_(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class d{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new h(new r.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{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?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&s.aI(e.data,t.data)}static equalsArr(e,t){return s.aI(e,t,g.equals)}}},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>j,_C:()=>E,W0:()=>D,Bm:()=>F,B6:()=>A,b$:()=>O,bm:()=>I,mh:()=>z,tX:()=>V,Es:()=>P,xu:()=>M,bG:()=>Y});var s=i(8597),n=i(56245),r=i(72962),o=i(25154),a=i(11007);class c{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((s=>s.splice(e,t,i)))}}var l=i(25890),h=i(90766),d=i(47661),u=i(58694),g=i(41234),p=i(26690),m=i(5662),f=i(1592),_=i(98067),v=i(631);i(48215);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var E,b,S=i(66700),y=i(47358),w=i(31308),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const s=this.renderedElements.findIndex((e=>e.templateData===i));if(s>=0){const e=this.renderedElements[s];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const s=[];for(const n of this.renderedElements)n.index<e?s.push(n):n.index>=e+t&&s.push({index:n.index+i-t,templateData:n.templateData});this.renderedElements=s}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class T{get name(){return this._trait}get renderer(){return new L(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const s=i.length-t,n=e+t,r=[];let o=0;for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]<e;)r.push(this.sortedIndexes[o++]);for(let a=0;a<i.length;a++)i[a]&&r.push(a+e);for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]>=n;)r.push(this.sortedIndexes[o++]+s);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Q),t)}_set(e,t,i){const s=this.indexes,n=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=$(n,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return(0,l.El)(this.sortedIndexes,e,Q)>=0}dispose(){(0,m.AS)(this._onChange)}}R([u.B],T.prototype,"renderer",null);class x extends T{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class k{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===s.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=new Set(s),r=i.map((e=>n.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,r)}}function A(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function N(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&N(e.parentElement,t))}function I(e){return N(e,"monaco-editor")}function O(e){return N(e,"monaco-custom-toggle")}function D(e){return N(e,"action-item")}function M(e){return N(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class U{get onKeyDown(){return g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,l.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}R([u.B],U.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(E||(E={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(b||(b={}));const H=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class B{constructor(e,t,i,s,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=s,this.delegate=n,this.enabled=!1,this.state=b.Idle,this.mode=E.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){e.typeNavigationEnabled??1?this.enable():this.disable(),this.mode=e.typeNavigationMode??E.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!A(e.target))).filter((()=>this.mode===E.Automatic||this.triggered)).map((e=>new r.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>s.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){const e=this.list.getFocus();if(e.length>0&&e[0]===this.previouslyFocused){const t=this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(e[0]));"string"===typeof t?(0,a.xE)(t):t&&(0,a.xE)(t.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=b.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===b.Idle?1:0;this.state=b.Typing;for(let n=0;n<this.list.length;n++){const t=(i+n+s)%this.list.length,r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),o=r&&r.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof o){if((0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const s=(0,p.O)(e,o);if(s){if(s[0].end-s[0].start>1&&1===s.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof o||(0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new n.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(0,s.sb)(n)||-1===n.tabIndex)return;const r=(0,s.zk)(n).getComputedStyle(n);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function V(e){return _.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function z(e){return e.browserEvent.shiftKey}const G={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:z};class j{constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(o.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,s.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,s.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){i=this.list.getFocus()[0]??t,this.list.setAnchor(i)}const s=Math.min(i,t),n=Math.max(i,t),r=(0,l.y1)(s,n+1),o=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const s=[];let n=i-1;for(;n>=0&&e[n]===t-(i-n);)s.push(e[n--]);s.reverse(),n=i;for(;n<e.length&&e[n]===t+(n-i);)s.push(e[n++]);return s}($(o,[i]),i);if(0===a.length)return;const c=$(r,function(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){s++,n++;continue}e[s]<t[n]?i.push(e[s++]):n++}return i}(o,a));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),s=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const n=(0,s.gI)(e.listFocusAndSelectionOutline,(0,s.gI)(e.listSelectionOutline,e.listFocusOutline??""));n&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused.selected { outline: 1px solid ${n}; outline-offset: -1px;}`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const r=(0,s.gI)(e.listSelectionOutline,e.listInactiveFocusOutline??"");r&&i.push(`.monaco-list${t} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&i.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=i.join("\n")}}const Y={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:d.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:d.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:d.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function $(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){i.push(e[s]),s++,n++;continue}e[s]<t[n]?i.push(e[s++]):i.push(t[n++])}return i}const Q=(e,t)=>e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,s){let n=0;for(const r of this.renderers)r.renderElement(e,t,i[n++],s)}disposeElement(e,t,i,s){let n=0;for(const r of this.renderers)r.disposeElement?.(e,t,i[n],s),n+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class Z{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const s=this.accessibilityProvider.getAriaLabel(e),n=s&&"string"!==typeof s?s:(0,w.lk)(s);i.disposables.add((0,w.fm)((e=>{this.setAriaLabel(e.readObservable(n),i.container)})));const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?i.container.setAttribute("aria-level",`${r}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,s){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart?.(e,t)}onDragOver(e,t,i,s,n){return this.dnd.onDragOver(e,t,i,s,n)}onDragLeave(e,t,i,s){this.dnd.onDragLeave?.(e,t,i,s)}onDragEnd(e){this.dnd.onDragEnd?.(e)}drop(e,t,i,s,n){this.dnd.drop(e,t,i,s,n)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new r.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>s.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new r.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>s.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:"undefined"!==typeof i?this.view.element(i):void 0,anchor:"undefined"!==typeof i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),o=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new y.P((0,s.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,o)}get onKeyDown(){return this.disposables.add(new n.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,r=q){this.user=e,this._options=r,this.focus=new T("focused"),this.anchor=new T("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const o=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?this._options.accessibilityProvider?.getWidgetRole():"list";this.selection=new x("listbox"!==o);const a=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(a.push(new Z(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map((e=>new X(e.templateId,[...a,e])));const l={...r,dnd:r.dnd&&new J(this,r.dnd)};if(this.view=this.createListView(t,i,n,l),this.view.domNode.setAttribute("role",o),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=(0,s.li)(this.view.domNode);this.styleController=new K(e,this.view.domId)}if(this.spliceable=new c([new k(this.focus,this.view,r.identityProvider),new k(this.selection,this.view,r.identityProvider),new k(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof r.keyboardSupport||r.keyboardSupport)&&(this.keyboardController=new U(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||H;this.typeNavigationController=new B(this,this.view,r.keyboardNavigationLabelProvider,r.keyboardNavigationEventFilter??(()=>!0),e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,s){return new S.uO(e,t,i,s)}createMouseController(e){return new j(this)}updateOptions(e={}){this._options={...this._options,...e},this.typeNavigationController?.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),this.keyboardController?.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,l.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findNextIndex(n.length>0?n[0]+e:0,t,s);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findPreviousIndex(n.length>0?n[0]-e:0,t,s);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const s=this.getFocus()[0];if(s!==i&&(void 0===s||i>s)){const n=this.findPreviousIndex(i,!1,t);n>-1&&s!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();let r=n+this.view.renderHeight;i>s&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==n&&(this.setFocus([]),await(0,h.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let s;const n=i(),r=this.view.getScrollTop()+n;s=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);const o=this.getFocus()[0];if(o!==s&&(void 0===o||o>=s)){const i=this.findNextIndex(s,!1,t);i>-1&&o!==i?this.setFocus([i],e):this.setFocus([s],e)}else{const s=r;this.view.setScrollTop(r-this.view.renderHeight-n),this.view.getScrollTop()+i()!==s&&(this.setFocus([]),await(0,h.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const s=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,v.Et)(t)){const e=r-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+n-i)}else{const e=n+r,t=s+this.view.renderHeight;n<s+i&&e>=t||(n<s+i||e>=t&&r>=this.view.renderHeight?this.view.setScrollTop(n-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),s=this.view.elementTop(e),n=this.view.elementHeight(e);if(s<i+t||s+n>i+this.view.renderHeight)return null;const r=n-this.view.renderHeight+t;return Math.abs((i+t-s)/r)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){const e=this.focus.get();if(e.length>0){let t;this.accessibilityProvider?.getActiveDescendantId&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(e[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(e[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}R([u.B],ee.prototype,"onDidChangeFocus",null),R([u.B],ee.prototype,"onDidChangeSelection",null),R([u.B],ee.prototype,"onContextMenu",null),R([u.B],ee.prototype,"onKeyDown",null),R([u.B],ee.prototype,"onDidFocus",null),R([u.B],ee.prototype,"onDidBlur",null)},93409:(e,t,i)=>{"use strict";var s=i(78209),n=i(66261);(0,n.x1A)("symbolIcon.arrayForeground",n.CU6,(0,s.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.booleanForeground",n.CU6,(0,s.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.colorForeground",n.CU6,(0,s.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constantForeground",n.CU6,(0,s.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fileForeground",n.CU6,(0,s.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.folderForeground",n.CU6,(0,s.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keyForeground",n.CU6,(0,s.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keywordForeground",n.CU6,(0,s.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.moduleForeground",n.CU6,(0,s.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.namespaceForeground",n.CU6,(0,s.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.nullForeground",n.CU6,(0,s.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.numberForeground",n.CU6,(0,s.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.objectForeground",n.CU6,(0,s.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.operatorForeground",n.CU6,(0,s.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.packageForeground",n.CU6,(0,s.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.propertyForeground",n.CU6,(0,s.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.referenceForeground",n.CU6,(0,s.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.snippetForeground",n.CU6,(0,s.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.stringForeground",n.CU6,(0,s.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.structForeground",n.CU6,(0,s.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.textForeground",n.CU6,(0,s.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.typeParameterForeground",n.CU6,(0,s.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.unitForeground",n.CU6,(0,s.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},93599:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(91508),n=i(40579),r=i(19131),o=i(32956),a=i(51934);class c{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const s=new Map;for(const c of e.bracketsNew.openingBrackets){const e=(0,r.qe)(0,c.bracketText.length),t=i(c),l=o.gV.getEmpty().add(t,o.FD);s.set(c.bracketText,new a.ou(e,1,t,l,n.rh.create(e,c,l)))}for(const c of e.bracketsNew.closingBrackets){const e=(0,r.qe)(0,c.bracketText.length);let t=o.gV.getEmpty();const l=c.getOpeningBrackets();for(const s of l)t=t.add(i(s),o.FD);s.set(c.bracketText,new a.ou(e,2,i(l[0]),t,n.rh.create(e,c,t)))}return new c(s)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,s.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class l{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=c.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},93844:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},93895:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var s=i(91508),n=i(1245);function r(e,t,i){let r=s.HG(e);return-1===r&&(r=e.length),function(e,t,i){let s=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?s=n.A.nextIndentTabStop(s,t):s++;let r="";if(!i){const e=Math.floor(s/t);s%=t;for(let t=0;t<e;t++)r+="\t"}for(let n=0;n<s;n++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>c});var s=i(8597),n=i(41234),r=i(5662);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const c=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,s.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(n.Jh.once(s.Fv)((({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},94297:e=>{!function(){"use strict";function t(e,t){let i="";for(let s=0;s<t;s++)i+=e;return i}function i(e,i){return(t("0",i)+e.toString(16)).substr(-i)}function s(e,i){return(t("0",i)+e.toString(8)).substr(-i)}function n(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="7"));var s}function r(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="9"||s>="a"&&s<="f"||s>="A"&&s<="F"));var s}const o="json",a="yson",c=" ",l="\xa0",h=function(e){const t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",s=RegExp(i),n=RegExp(i,"g");return function(e){return e=null===e?"":String(e),s.test(e)?e.replace(n,t):e}},d=h({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),u=h({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"});function g(e,t,i){return 0===i||i===t-1||(" "===e[i-1]||" "===e[i+1])}function p(e,t,i){return t&&(e=d(e),i||(e='<span class="escape">'+e)),e}function m(e,t,i){return t&&(e=d(e),i&&(e="</span>"+e)),e}function f(e,t){let i='"';return e&&(i='<span class="quote">'+d(i)+"</span>",t&&(i="</span>"+i)),i}function _(e,t){return t.split("").map((function(e){const t=e.charCodeAt(0);if(t>255)throw new Error("unipika: input string is not binary.");return i(t,2)})).join(e.nonBreakingIndent?l:c)}function v(e){return e.format===a?";":","}const C=new Set(["A","B","C","D","E","G","I","N","P","R","S","T","U","V","X","Z"]);e.exports={parseSetting:function(e,t,i){return e&&"undefined"!==typeof e[t]?e[t]:i},repeatChar:t,escapeJSONString:function(e,t){const s=t,n=t.length,r=e.asHTML;let o,a,c,l="",h=!1;l+=f(r,h);for(let u=0;u<n;u++)o=s.charAt(u),a=s.charCodeAt(u),'"'===o||"\\"===o?(c="\\"+o,l+=m(c,r,h),h=!1):"\n"===o||"\t"===o?e.escapeWhitespace?(c={"\n":"\\n","\t":"\\t"}[o],l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1):"\b"===o||"\f"===o||"\r"===o?(c={"\b":"\\b","\f":"\\f","\r":"\\r"}[o],l+=p(c,r,h),h=!0):(d=a)<32&&d>=0||d>=127&&d<=159?(c="\\u"+i(a,4),e.highlightControlCharacter?(l+=p(c,r,h),h=!0):(l+=m(c,r,h),h=!1)):" "===o&&e.escapeWhitespace&&g(s,n,u)?(c=" ",l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1);var d;return l+=f(r,h),l},escapeYSONString:function(e,t){const o=t,a=t.length,c=e.asHTML;let l,h,d,u="",_=!1;u+=f(c,_);for(let f=0;f<a;f++)l=o.charAt(f),h=o.charCodeAt(f),'"'===l||"\\"===l?(d="\\"+l,u+=m(d,c,_),_=!1):"\r"===l?(d={"\r":"\\r"}[l],u+=p(d,c,_),_=!0):"\n"===l||"\t"===l?e.escapeWhitespace?(d={"\n":"\\n","\t":"\\t"}[l],u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<=126&&h>=32?" "===l&&e.escapeWhitespace&&g(o,a,f)?(d=" ",u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<8&&h>=0&&n(o,a,f)?(d="\\"+s(h,1),u+=m(d,c,_),_=!1):r(o,a,f)?(d="\\x"+i(h,2),u+=m(d,c,_),_=!1):(d="\\"+s(h,3),u+=m(d,c,_),_=!1);return u+=f(c,_),u},escapeHTMLString:function(e,t){const i=t,s=t.length,n=e.asHTML;let r,o="";o+=f(n,!1);for(let a=0;a<s;a++)r=i.charAt(a),o+=m(r,n,!1);return o+=f(n,!1),o},escapeYSONBinaryString:function(e,t){return _(e,t)},escapeYQLBinaryString:function(e,t){return _(e,atob(t))},unescapeKeyValue:function(e){return"string"===typeof e?e.replace(/^\$\$/,"$"):e},returnAsIs:function(e,t){return t},escape:d,unescape:u,normalizeUrl:function(e,t){try{return t.normalizeUrl?t.normalizeUrl(e):encodeURI(e)}catch(i){return console.error("unipika: An error occured during normalizeUrl call",{url:e},i),""}},getAttributesEnd:function(e){return e.format===o?"}"+v(e):e.format===a?">":void 0},getAttributesStart:function(e){return e.format===o?"{":e.format===a?"<":void 0},getKeyValueSeparator:function(e){const t=e.nonBreakingIndent?l:c;return e.format===a?t+"="+t:":"+t},getExpressionTerminator:v,getIndent:function(e,i){const s=e.nonBreakingIndent?l:c;return(e.break?"\n":"")+t(s,e.indent*i)},OBJECT_START:"{",OBJECT_END:"}",ARRAY_START:"[",ARRAY_END:"]",YSON_ATTRIBUTES_START:"<",YSON_ATTRIBUTES_END:">",JSON_EXPRESSION_TERMINATOR:",",JSON_KEY_VALUE_SEPARATOR:": ",EMPTY_STRING:"",WHITESPACE:c,NON_BREAKING_WHITESPACE:l,LINE_FEED:"\n",JSON:o,YSON:a,drawFullView:function(e,t){return e>1||1===e&&!t.compact},drawCompactView:function(e,t){return 1===e&&t.compact},wrapScalar:function(e,t,i){let s=e.$type.replaceAll(".","_"),n="";var r;return(r=e.$category)&&C.has(r.toUpperCase())&&(s+=" pg_category_"+e.$category.toLowerCase()),e.$incomplete&&(s+=" incomplete"),e.$binary&&(s+=" binary"),e.$key&&(s+=" key"),e.$special_key&&(s+=" special-key"),e.$incomplete&&e.$original_value&&(n=e.$original_value),t.asHTML?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapComplex:function(e,t,i){let s="",n="";return e.$incomplete&&(s+=" incomplete"),e.$incomplete&&e.$original_value&&(n=e.$original_value),"yql.yson"===e.$type&&e.$incomplete?t.asHTML&&s?'<span class="'+s+'"></span>':i:t.asHTML&&s?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapOptional:function(e,t,i){if(e.$optional>0&&null===e.$value){const s=new Array(e.$optional).fill("[").join(""),n=new Array(e.$optional).fill("]").join("");return t.asHTML?'<span class="optional">'+s+"</span>"+i+'<span class="optional">'+n+"</span>":s+i+n}return i},toPaddedHex:i,toPaddedOctal:s,binaryToHex:_}}()},94318:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9872).then(i.bind(i,99872))})},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>l,vf:()=>p});var s=i(61059),n=i(87908),r=i(24329),o=i(78209),a=i(1646),c=i(46359);const l=Object.freeze({id:"editor",order:5,type:"object",title:o.kg("editorConfigurationTitle","Editor"),scope:5}),h={...l,properties:{"editor.tabSize":{type:"number",default:r.R.tabSize,minimum:1,markdownDescription:o.kg("tabSize","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:o.kg("indentSize",'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:r.R.insertSpaces,markdownDescription:o.kg("insertSpaces","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:r.R.detectIndentation,markdownDescription:o.kg("detectIndentation","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:r.R.trimAutoWhitespace,description:o.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:r.R.largeFileOptimizations,description:o.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[o.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),o.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),o.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),o.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:o.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[o.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),o.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),o.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:o.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:o.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationVerification","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:o.kg("editor.experimental.treeSitterTelemetry","Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:o.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:o.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:s.q.maxComputationTime,description:o.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:s.q.maxFileSize,description:o.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:s.q.renderSideBySide,description:o.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:s.q.renderSideBySideInlineBreakpoint,description:o.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:s.q.useInlineViewWhenSpaceIsLimited,description:o.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:s.q.renderMarginRevertIcon,description:o.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:s.q.renderGutterMenu,description:o.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:s.q.ignoreTrimWhitespace,description:o.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:s.q.renderIndicators,description:o.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:s.q.diffCodeLens,description:o.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:s.q.diffWordWrap,markdownEnumDescriptions:[o.kg("wordWrap.off","Lines will never wrap."),o.kg("wordWrap.on","Lines will wrap at the viewport width."),o.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:s.q.diffAlgorithm,markdownEnumDescriptions:[o.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),o.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:s.q.hideUnchangedRegions.enabled,markdownDescription:o.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:s.q.hideUnchangedRegions.revealLineCount,markdownDescription:o.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:s.q.hideUnchangedRegions.minimumLineCount,markdownDescription:o.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:s.q.hideUnchangedRegions.contextLineCount,markdownDescription:o.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:s.q.experimental.showMoves,markdownDescription:o.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:s.q.experimental.showEmptyDecorations,description:o.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:s.q.experimental.useTrueInlineView,description:o.kg("useTrueInlineView","If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(const f of n.BE){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(d=e).type||"undefined"!==typeof d.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var d;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}c.O.as(a.Fd.Configuration).registerConfiguration(h)},94484:(e,t,i)=>{e.exports=i(64066)},94564:(e,t,i)=>{"use strict";i.d(t,{I:()=>h});var s=i(91508),n=i(1245),r=i(83069),o=i(36677),a=i(35817),c=i(32799);class l{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-s.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new r.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const s=e.getLineMinColumn(t.lineNumber),n=e.getLineContent(t.lineNumber),o=a.s.atomicPosition(n,t.column-1,i,0);if(-1!==o&&o+1>=s)return new r.y(t.lineNumber,o+1)}return this.leftPosition(e,t)}static left(e,t,i){const s=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new l(s.lineNumber,s.column,0)}static moveLeft(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.startLineNumber,o=i.selection.startColumn;else{const s=i.position.delta(void 0,-(n-1)),a=t.normalizePosition(h.clipPositionColumn(s,t),0),c=h.left(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static clipPositionColumn(e,t){return new r.y(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.iy(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new r.y(t,i)}static rightPositionAtomicSoftTabs(e,t,i,s,n){if(i<e.getLineIndentColumn(t)){const n=e.getLineContent(t),o=a.s.atomicPosition(n,i-1,s,1);if(-1!==o)return new r.y(t,o+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const s=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new l(s.lineNumber,s.column,0)}static moveRight(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.endLineNumber,o=i.selection.endColumn;else{const s=i.position.delta(void 0,n-1),a=t.normalizePosition(h.clipPositionColumn(s,t),1),c=h.right(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static vertical(e,t,i,s,o,a,c,h){const d=n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize)+o,u=t.getLineCount(),g=1===i&&1===s,p=i===u&&s===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,s=c?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),s)):i>u?(i=u,s=c?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),s)):s=e.columnFromVisibleColumn(t,i,d),o=m?0:d-n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize),void 0!==h){const e=new r.y(i,s),n=t.normalizePosition(e,h);o+=s-n.column,i=n.lineNumber,s=n.column}return new l(i,s,o)}static down(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i+r,o,4)}static moveDown(e,t,i,s,n){let o,a;i.hasSelection()&&!s?(o=i.selection.endLineNumber,a=i.selection.endColumn):(o=i.position.lineNumber,a=i.position.column);let c,l=0;do{c=h.down(e,t,o+l,a,i.leftoverVisibleColumns,n,!0);if(t.normalizePosition(new r.y(c.lineNumber,c.column),2).lineNumber>o)break}while(l++<10&&o+l<t.getLineCount());return i.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns)}static translateDown(e,t,i){const s=i.selection,n=h.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i-r,o,3)}static moveUp(e,t,i,s,n){let r,o;i.hasSelection()&&!s?(r=i.selection.startLineNumber,o=i.selection.startColumn):(r=i.position.lineNumber,o=i.position.column);const a=h.up(e,t,r,o,i.leftoverVisibleColumns,n,!0);return i.move(s,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const s=i.selection,n=h.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,s){let n=i.position.lineNumber;for(;n>1&&this._isBlankLine(t,n);)n--;for(;n>1&&!this._isBlankLine(t,n);)n--;return i.move(s,n,t.getLineMinColumn(n),0)}static moveToNextBlankLine(e,t,i,s){const n=t.getLineCount();let r=i.position.lineNumber;for(;r<n&&this._isBlankLine(t,r);)r++;for(;r<n&&!this._isBlankLine(t,r);)r++;return i.move(s,r,t.getLineMinColumn(r),0)}static moveToBeginningOfLine(e,t,i,s){const n=i.position.lineNumber,r=t.getLineMinColumn(n),o=t.getLineFirstNonWhitespaceColumn(n)||r;let a;return a=i.position.column===o?r:o,i.move(s,n,a,0)}static moveToEndOfLine(e,t,i,s,n){const r=i.position.lineNumber,o=t.getLineMaxColumn(r);return i.move(s,r,o,n?1073741824-o:0)}static moveToBeginningOfBuffer(e,t,i,s){return i.move(s,1,1,0)}static moveToEndOfBuffer(e,t,i,s){const n=t.getLineCount(),r=t.getLineMaxColumn(n);return i.move(s,n,r,0)}}},94630:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s,n,r=i(59284);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const a=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=r.createElement("g",{clipPath:"url(#font-case_svg__a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 001.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 001.416-.496L6.123 3.224A1.455 1.455 0 004.75 2.25M6.38 8.5L4.75 3.842 3.12 8.5zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.7.7 0 01-.193-.505m2.985.754V13a.75.75 0 101.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 10.77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5z",clipRule:"evenodd"}))),n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"font-case_svg__a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))))}},94650:(e,t,i)=>{"use strict";i.d(t,{W:()=>o,c:()=>r});var s=i(36677),n=i(19131);class r{static fromModelContentChanges(e){return e.map((e=>{const t=s.Q.lift(e.range);return new r((0,n.VL)(t.getStartPosition()),(0,n.VL)(t.getEndPosition()),(0,n.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,n.l4)(this.startOffset)}...${(0,n.l4)(this.endOffset)}) -> ${(0,n.l4)(this.newLength)}`}}class o{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,n.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,n.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,n.vr)(i,e))break;{this.nextEditIdx++;const e=(0,n.l4)(i),s=(0,n.l4)(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-s.lineCount;this.deltaOldToNewLineCount+=r;const o=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-s.columnCount;this.deltaOldToNewColumnCount=o+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,n.l4)(t),this.endOffsetAfterObj=(0,n.l4)((0,n.QB)(e,i)),this.offsetObj=(0,n.l4)(e)}}},94746:(e,t,i)=>{"use strict";i.d(t,{Hg:()=>p});var s,n=i(14718),r=i(63591),o=i(41234),a=i(78381),c=i(86571),l=i(87723),h=i(10920),d=i(90651),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=(0,r.u1)("diffProviderFactoryService");let m=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(f,e)}};m=u([g(0,r._Y)],m),(0,n.v)(p,m,1);let f=class{static{s=this}static{this.diffCache=new Map}constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new o.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(e,t,i,n){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 l.wm(new c.M(1,2),new c.M(1,t.getLineCount()+1),[new l.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),o=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),h=s.diffCache.get(r);if(h&&h.context===o)return h.result;const d=a.W.create(),u=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),g=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:g,timedOut:u?.quitEarly??!0,detectedMoves:i.computeMoves?u?.moves.length??0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!u)throw new Error("no diff result available");return s.diffCache.size>10&&s.diffCache.delete(s.diffCache.keys().next().value),s.diffCache.set(r,{result:u,context:o}),u}setOptions(e){let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.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()}};f=s=u([g(1,h.IEditorWorkerService),g(2,d.k)],f)},94803:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(5382).then(i.bind(i,35382))})},94908:(e,t,i)=>{"use strict";var s=i(60413),n=i(8597),r=i(98067),o=i(68792),a=i(31450),c=i(80301),l=i(60002),h=i(55433),d=i(78209),u=i(27195),g=i(54770),p=i(32848);const m="9_cutcopypaste",f=r.ib||document.queryCommandSupported("cut"),_=r.ib||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!s.gm||document.queryCommandSupported("paste");function C(e){return e.register(),e}const E=f?C(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:r.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1}]})):void 0,b=_?C(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:r.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:d.aS("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:d.aS("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:d.aS("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),l.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:d.aS("share","Share"),group:"11_share",order:-1});const S=v?C(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:r.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4}]})):void 0;class y extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(o.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),o.Eq.forceCopyWithSyntaxHighlighting=!1)}}function w(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const s=e.get(c.T).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const e=s.getOption(37),i=s.getSelection();return i&&i.isEmpty()&&!e||s.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,n.a)().execCommand(t),!0))))}w(E,"cut"),w(b,"copy"),S&&(S.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T),s=e.get(g.h),n=i.getFocusedCodeEditor();if(n&&n.hasTextFocus()){return n.getContainerDomNode().ownerDocument.execCommand("paste")?h.Rj.get(n)?.finishedPaste()??Promise.resolve():!r.HZ||(async()=>{const e=await s.readText();if(""!==e){const t=o.bs.INSTANCE.get(e);let i=!1,s=null,r=null;t&&(i=n.getOption(37)&&!!t.isFromEmptySelection,s="undefined"!==typeof t.multicursorText?t.multicursorText:null,r=t.mode),n.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:s,mode:r})}})()}return!1})),S.addImplementation(0,"generic-dom",((e,t)=>((0,n.a)().execCommand("paste"),!0)))),_&&(0,a.Fl)(y)},94958:(e,t,i)=>{"use strict";let s;function n(e){s=e}function r(){return s}i.d(t,{Br:()=>n,jm:()=>o,tZ:()=>r});class o{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let s="";function n(e){if("length"in e)for(const t of e)t&&n(t);else"text"in e?(s+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}n(e);const r=[s,...t];return r.push(...i),r}([a(d("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),l(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),l(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),l(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return l(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),l(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),l(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return l(e,{color:"black"})}function c(e){return l(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function l(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(s=i,Object.entries(s).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var s}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",s=!0;for(const n of e){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${h(n,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",s=!0;for(const[n,r]of Object.entries(e)){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${n}: ${h(r,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function d(e,t){let i="";for(let s=1;s<=t;s++)i+=e;return i}},95200:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450);class r extends s.jG{static{this.ID="editor.contrib.longLinesHelper"}constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(118);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}(0,n.HW)(r.ID,r,2)},96032:(e,t,i)=>{"use strict";i.d(t,{n:()=>s,r:()=>n});class s{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const n=new s("id#")},96282:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1)}}}getImplementations(){return this._implementations}}},96299:(e,t,i)=>{"use strict";i.d(t,{Y:()=>k});var s,n=i(90766),r=i(18447),o=i(64383),a=i(41234),c=i(5662),l=i(91508),h=i(75326),d=i(10920),u=i(14055),g=i(54770),p=i(84001),m=i(32848),f=i(18801),_=i(90651),v=i(51173),C=i(48116),E=i(56942),b=i(26690),S=i(631),y=i(62051),w=i(30936),R=i(97035),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};class x{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.getWordAtPosition(i);return!!s&&((s.endColumn===i.column||s.startColumn+1===i.column)&&!!isNaN(Number(s.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let k=s=class{constructor(e,t,i,s,r,o,l,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=s,this._logService=r,this._contextKeyService=o,this._configurationService=l,this._languageFeaturesService=d,this._envService=u,this._toDispose=new c.Cm,this._triggerCharacterListener=new c.Cm,this._triggerQuickSuggest=new n.pc,this._triggerState=void 0,this._completionDisposables=new c.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,c.AS)(this._triggerCharacterListener),(0,c.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let s=e.get(t);if(!s){s=new Set;const i=(0,C.f3)();i&&s.add(i),e.set(t,s)}s.add(i)}const t=t=>{if(!function(e,t){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(x.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,l.LJ)(t.charCodeAt(t.length-1))?(0,l.pc)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const s=e.get(i);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:i,retrigger:Boolean(this._completionModel),clipboardText:this._completionModel?.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),this._requestToken?.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){C.r3.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&w.O.get(this._editor)?.isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!x.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(90);if(!C.r3.isAllOff(i)){if(!C.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const s=e.tokenization.getLineTokens(t.lineNumber),n=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==C.r3.valueFor(i,n))return}(function(e,t){if(!Boolean(t.getContextKeyValue(y.p.inlineSuggestionVisible.key)))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(91)))}_refilterCompletionItems(){(0,S.j)(this._editor.hasModel()),(0,S.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new x(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=new x(t,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:e.shy??!1,position:this._editor.getPosition()}),this._context=i;let n={triggerKind:e.triggerKind??0};e.triggerCharacter&&(n={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new r.Qi;let a=1;switch(this._editor.getOption(113)){case"top":a=0;break;case"bottom":a=2}const{itemKind:c,showDeprecated:l}=s.createSuggestFilter(this._editor),h=new C.l1(a,e.completionOptions?.kindFilter??c,e.completionOptions?.providerFilter,e.completionOptions?.providerItemsToReuse,l),d=u.S.create(this._editorWorkerService,this._editor),g=(0,C.aR)(this._languageFeaturesService.completionProvider,t,this._editor.getPosition(),h,n,this._requestToken.token);Promise.all([g,d]).then((async([t,i])=>{if(this._requestToken?.dispose(),!this._editor.hasModel())return;let s=e?.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;const n=this._editor.getModel(),r=new x(n,this._editor.getPosition(),e),o={...b.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new v.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(119),this._editor.getOption(113),o,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(o.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(113)&&t.add(27);const i=e.getOption(119);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,l.UU)(e.leadingLineContent)===(0,l.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(x.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,s]of this._completionModel.getItemsByProvider())s.length>0&&s[0].container.incomplete?t.add(i):e.set(i,s);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const s=x.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(s&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};k=s=L([T(1,d.IEditorWorkerService),T(2,g.h),T(3,_.k),T(4,f.rr),T(5,m.fN),T(6,p.pG),T(7,E.ILanguageFeaturesService),T(8,R.k)],k)},96409:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return t.$binary?i.binaryAsHex?e.escapeYQLBinaryString(i,t.$value):atob(t.$value):i.escapeYQLStrings?e.escapeJSONString(i,t.$value):e.escapeHTMLString(i,t.$value)}return t.isScalar=!0,t}},96589:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1 1.225a.71.71 0 0 0-.679-.72A11 11 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10q.088 0 .175.002c.442.008.825-.335.825-.777m3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848zm-.883 4.76 3.068-3.067a.77.77 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.77.77 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848",clipRule:"evenodd"}))},96716:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(7946).then(i.bind(i,57946))})},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>L});var s,n=i(8597),r=i(25154),o=i(10350),a=i(41234),c=i(5662),l=i(25689),h=i(16223),d=i(87289),u=i(78049),g=i(55130),p=i(78209),m=i(98031),f=i(61394),_=i(36677),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};const E=(0,f.pU)("gutter-lightbulb",o.W.lightBulb,p.kg("gutterLightbulbWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor.")),b=(0,f.pU)("gutter-lightbulb-auto-fix",o.W.lightbulbAutofix,p.kg("gutterLightbulbAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.")),S=(0,f.pU)("gutter-lightbulb-sparkle",o.W.lightbulbSparkle,p.kg("gutterLightbulbAIFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.")),y=(0,f.pU)("gutter-lightbulb-aifix-auto-fix",o.W.lightbulbSparkleAutofix,p.kg("gutterLightbulbAIFixAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),w=(0,f.pU)("gutter-lightbulb-sparkle-filled",o.W.sparkleFilled,p.kg("gutterLightbulbSparkleFilledWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available."));var R;!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,s){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=s,this.type=1}}}(R||(R={}));let L=class extends c.jG{static{s=this}static{this.GUTTER_DECORATION=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(o.W.lightBulb),glyphMargin:{position:h.ZS.Left},stickiness:1})}static{this.ID="editor.contrib.lightbulbWidget"}static{this._posPref=[0]}constructor(e,t){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new a.vl),this.onClick=this._onClick.event,this._state=R.Hidden,this._gutterState=R.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+E.id,"codicon-"+y.id,"codicon-"+b.id,"codicon-"+S.id,"codicon-"+w.id],this.gutterDecoration=s.GUTTER_DECORATION,this._domNode=n.$("div.lightBulbWidget"),this._domNode.role="listbox",this._register(r.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide(),(1!==this.gutterState.type||!t||this.gutterState.editorPosition.lineNumber>=t.getLineCount())&&this.gutterHide()}))),this._register(n.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=n.BK(this._domNode),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.posx,y:t+i+r,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(n.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(a.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{this._preferredKbLabel=this._keybindingService.lookupKeybinding(g.pR)?.getLabel()??void 0,this._quickFixKbLabel=this._keybindingService.lookupKeybinding(g.pQ)?.getLabel()??void 0,this._updateLightBulbTitleAndIcon()}))),this._register(this._editor.onMouseDown((async e=>{if(!e.target.element||!this.lightbulbClasses.some((t=>e.target.element&&e.target.element.classList.contains(t))))return;if(1!==this.gutterState.type)return;this._editor.focus();const{top:t,height:i}=n.BK(e.target.element),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.gutterState.widgetPosition.position&&this.gutterState.widgetPosition.position.lineNumber<this.gutterState.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.event.posx,y:t+i+r,actions:this.gutterState.actions,trigger:this.gutterState.trigger})})))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.gutterHide(),this.hide();if(!this._editor.hasTextFocus())return this.gutterHide(),this.hide();if(!this._editor.getOptions().get(65).enabled)return this.gutterHide(),this.hide();const n=this._editor.getModel();if(!n)return this.gutterHide(),this.hide();const{lineNumber:r,column:o}=n.validatePosition(i),a=n.getOptions().tabSize,c=this._editor.getOptions().get(50),l=n.getLineContent(r),h=(0,u.G)(l,a),d=c.spaceWidth*h>22,g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),p=this._editor.getLineDecorations(r);let m=!1;if(p)for(const s of p){const e=s.options.glyphMarginClassName;if(e&&!this.lightbulbClasses.some((t=>e.includes(t)))){m=!0;break}}let f=r,_=1;if(!d){const a=e=>{const t=n.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=_};if(r>1&&!g(r-1)){const o=r===n.getLineCount(),c=r>1&&a(r-1),l=!o&&a(r+1),h=a(r),d=!l&&!c;if(!(l||c||m))return this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this.renderGutterLightbub(),this.hide();c||o||c&&!h?f-=1:(l||d&&h)&&(f+=1)}else if(1!==r||r!==n.getLineCount()&&(a(r+1)||a(r))){if(r<n.getLineCount()&&!g(r+1))f+=1;else if(o*c.spaceWidth<22)return this.hide()}else{if(this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),!m)return this.renderGutterLightbub(),this.hide();this.gutterHide()}_=/^\S\s*$/.test(n.getLineContent(f))?2:1}this.state=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());const v=e.validActions,C=e.validActions[0].action.kind;v.length,this._editor.layoutContentWidget(this)}hide(){this.state!==R.Hidden&&(this.state=R.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==R.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=R.Hidden)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}get gutterState(){return this._gutterState}set gutterState(e){this._gutterState=e,this._updateGutterLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=o.W.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?o.W.lightbulbSparkleAutofix:o.W.lightbulbAutofix:this.state.actions.hasAIFix?o.W.lightbulbSparkle:o.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=l.L.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateGutterLightBulbTitleAndIcon(){if(1!==this.gutterState.type)return;let e,t=!1;this.gutterState.actions.allAIFixes?(e=w,1===this.gutterState.actions.validActions.length&&(t=!0)):e=this.gutterState.actions.hasAutoFix?this.gutterState.actions.hasAIFix?y:b:this.gutterState.actions.hasAIFix?S:E,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,t);const i=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(e),glyphMargin:{position:h.ZS.Left},stickiness:1});this.gutterDecoration=i}renderGutterLightbub(){const e=this._editor.getSelection();e&&(void 0===this._gutterDecorationID?this._addGutterDecoration(e.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,e.startLineNumber))}_addGutterDecoration(e){this._editor.changeDecorations((t=>{this._gutterDecorationID=t.addDecoration(new _.Q(e,0,e,0),this.gutterDecoration)}))}_removeGutterDecoration(e){this._editor.changeDecorations((t=>{t.removeDecoration(e),this._gutterDecorationID=void 0}))}_updateGutterDecoration(e,t){this._editor.changeDecorations((i=>{i.changeDecoration(e,new _.Q(t,0,t,0)),i.changeDecorationOptions(e,this.gutterDecoration)}))}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=p.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=p.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=p.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=p.kg("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};L=s=v([C(1,m.b)],L)},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},97144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(9582).then(i.bind(i,49582))})},97360:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(6342).then(i.bind(i,86342))})},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>l});var s=i(91508),n=i(32799),r=i(1226),o=i(81782),a=i(83069),c=i(36677);class l{static _createWord(e,t,i,s,n){return{start:s,end:n,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(s,e,i)}static _doFindPreviousWordOnLine(e,t,i){let s=0;const n=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){const i=e.charCodeAt(r),o=t.get(i);if(n&&r===n.index)return this._createIntlWord(n,o);if(0===o){if(2===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=1}else if(2===o){if(1===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=2}else if(1===o&&0!==s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1))}return 0!==s?this._createWord(e,s,1,0,this._findEndOfWord(e,t,s,0)):null}static _findEndOfWord(e,t,i,s){const n=t.findNextIntlWordAtOrAfterOffset(e,s),r=e.length;for(let o=s;o<r;o++){const s=e.charCodeAt(o),r=t.get(s);if(n&&o===n.index+n.segment.length)return o;if(1===r)return o;if(1===i&&2===r)return o;if(2===i&&0===r)return o}return r}static _findNextWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(s,e,i)}static _doFindNextWordOnLine(e,t,i){let s=0;const n=e.length,r=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let o=i.column-1;o<n;o++){const i=e.charCodeAt(o),n=t.get(i);if(r&&o===r.index)return this._createIntlWord(r,n);if(0===n){if(2===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=1}else if(2===n){if(1===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=2}else if(1===n&&0!==s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o)}return 0!==s?this._createWord(e,s,1,this._findStartOfWord(e,t,s,n-1),n):null}static _findStartOfWord(e,t,i,s){const n=t.findPrevIntlWordBeforeOrAtOffset(e,s);for(let r=s;r>=0;r--){const s=e.charCodeAt(r),o=t.get(s);if(n&&r===n.index)return r;if(1===o)return r+1;if(1===i&&2===o)return r+1;if(2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,s,n){let r=i.lineNumber,o=i.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let c=l._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===s)return new a.y(r,c?c.start+1:1);if(1===s)return!n&&c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.start+1:1);if(3===s){for(;c&&2===c.wordType;)c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1));return new a.y(r,c?c.start+1:1)}return c&&o<=c.end+1&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const r=e.getLineContent(i);for(let o=t.column-1;o>1;o--){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95===e&&95!==t)return new a.y(i,o);if(45===e&&45!==t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,1)}static moveWordRight(e,t,i,s){let n=i.lineNumber,r=i.column,o=!1;r===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(o=!0,n+=1,r=1);let c=l._findNextWordOnLine(e,t,new a.y(n,r));if(2===s)c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.end+1:t.getLineMaxColumn(n);else if(3===s){for(o&&(r=0);c&&(2===c.wordType||c.start+1<=r);)c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1));r=c?c.start+1:t.getLineMaxColumn(n)}else c&&!o&&r>=c.start+1&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.start+1:t.getLineMaxColumn(n);return new a.y(n,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.y(i+1,1):t;const r=e.getLineContent(i);for(let o=t.column+1;o<n;o++){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95!==e&&95===t)return new a.y(i,o);if(45!==e&&45===t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,n)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-2,r=s.lT(i,n);return r+1<n?new c.Q(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,o=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(r.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new c.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.y(n.positionLineNumber,n.positionColumn);let d=h.lineNumber,u=h.column;if(1===d&&1===u)return null;if(o){const e=this._deleteWordLeftWhitespace(s,h);if(e)return e}let g=l._findPreviousWordOnLine(i,s,h);return 0===t?g?u=g.start+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d)):(g&&u<=g.end+1&&(g=l._findPreviousWordOnLine(i,s,new a.y(d,g.start+1))),g?u=g.end+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d))),new c.Q(d,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const s=new a.y(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,s);return n||this._deleteInsideWordDetermineDeleteRange(e,t,s)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=i.length;if(0===s)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let r=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(i,r))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;r+1<s&&this._charAtIsWhitespace(i,r+1);)r++;return new c.Q(t.lineNumber,n+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const s=t.getLineContent(i.lineNumber),n=s.length;if(0===n)return i.lineNumber>1?new c.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new c.Q(i.lineNumber,1,i.lineNumber+1,1):new c.Q(i.lineNumber,1,i.lineNumber,1);const r=e=>e.start+1<=i.column&&i.column<=e.end+1,o=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new c.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,r=!1;for(;i-1<n&&this._charAtIsWhitespace(s,i-1);)r=!0,i++;if(!r)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return o(t,i)},h=l._findPreviousWordOnLine(e,t,i);if(h&&r(h))return a(h);const d=l._findNextWordOnLine(e,t,i);return d&&r(d)?a(d):h&&d?o(h.end+1,d.start+1):h?o(h.start+1,h.end+1):d?o(d.start+1,d.end+1):o(1,n+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartLeft(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let s=t;s<i;s++){const t=e.charAt(s);if(" "!==t&&"\t"!==t)return s}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-1,n=this._findFirstNonWhitespaceChar(i,s);return s+1<n?new c.Q(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;const o=new a.y(n.positionLineNumber,n.positionColumn);let h=o.lineNumber,d=o.column;const u=s.getLineCount(),g=s.getLineMaxColumn(h);if(h===u&&d===g)return null;if(r){const e=this._deleteWordRightWhitespace(s,o);if(e)return e}let p=l._findNextWordOnLine(i,s,o);return 2===t?p?d=p.end+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h)):(p&&d>=p.start+1&&(p=l._findNextWordOnLine(i,s,new a.y(h,p.end+1))),p?d=p.start+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h))),new c.Q(h,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartRight(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _createWordAtPosition(e,t,i){const s=new c.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(s),startColumn:s.startColumn,endColumn:s.endColumn}}static getWordAtPosition(e,t,i,s){const n=(0,o.i)(t,i),r=l._findPreviousWordOnLine(n,e,s);if(r&&1===r.wordType&&r.start<=s.column-1&&s.column-1<=r.end)return l._createWordAtPosition(e,s.lineNumber,r);const a=l._findNextWordOnLine(n,e,s);return a&&1===a.wordType&&a.start<=s.column-1&&s.column-1<=a.end?l._createWordAtPosition(e,s.lineNumber,a):null}static word(e,t,i,s,r){const h=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),d=l._findPreviousWordOnLine(h,t,r),u=l._findNextWordOnLine(h,t,r);if(!s){let e,i;return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(e=d.start+1,i=d.end+1):u&&1===u.wordType&&u.start<=r.column-1&&r.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=d?d.end+1:1,i=u?u.start+1:t.getLineMaxColumn(r.lineNumber)),new n.mG(new c.Q(r.lineNumber,e,r.lineNumber,i),1,0,new a.y(r.lineNumber,i),0)}let g,p;d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(g=d.start+1,p=d.end+1):u&&1===u.wordType&&u.start<r.column-1&&r.column-1<u.end?(g=u.start+1,p=u.end+1):(g=r.column,p=r.column);const m=r.lineNumber;let f;if(i.selectionStart.containsPosition(r))f=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends l{static deleteWordPartLeft(e){const t=d([l.deleteWordLeft(e,0),l.deleteWordLeft(e,2),l._deleteWordPartLeft(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=d([l.deleteWordRight(e,0),l.deleteWordRight(e,2),l._deleteWordPartRight(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,s){const n=d([l.moveWordLeft(e,t,i,0,s),l.moveWordLeft(e,t,i,2,s),l._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const s=d([l.moveWordRight(e,t,i,0),l.moveWordRight(e,t,i,2),l._moveWordPartRight(t,i)]);return s.sort(a.y.compare),s[0]}}function d(e){return e.filter((e=>Boolean(e)))}},97791:()=>{},97884:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(6554).then(i.bind(i,96554))})},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},98067:(e,t,i)=>{"use strict";i.d(t,{BH:()=>D,Fr:()=>I,H8:()=>W,HZ:()=>k,OS:()=>F,UP:()=>G,_p:()=>P,cm:()=>B,gm:()=>V,ib:()=>x,j9:()=>T,lg:()=>A,m0:()=>j,nr:()=>z,uF:()=>R,un:()=>N,zx:()=>L});var s=i(78209);const n="en";let r,o,a=!1,c=!1,l=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=n,v=null,C=null;const E=globalThis;let b;"undefined"!==typeof E.vscode&&"undefined"!==typeof E.vscode.process?b=E.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(b=process);const S="string"===typeof b?.versions?.electron,y=S&&"renderer"===b?.type;if("object"===typeof b){a="win32"===b.platform,c="darwin"===b.platform,l="linux"===b.platform,h=l&&!!b.env.SNAP&&!!b.env.SNAP_REVISION,g=S,m=!!b.env.CI||!!b.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=n,_=n;const e=b.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);r=t.userLocale,v=t.osLocale,_=t.resolvedLanguage||n,C=t.languagePack?.translationsConfigFile}catch(K){}d=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,c=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=o.indexOf("Linux")>=0,f=o?.indexOf("Mobi")>=0,u=!0,_=s.i8()||n,r=navigator.language.toLowerCase(),v=r);let w=0;c?w=1:a?w=3:l&&(w=2);const R=a,L=c,T=l,x=d,k=u,A=u&&"function"===typeof E.importScripts?E.origin:void 0,N=p,I=f,O=o,D=_,M="function"===typeof E.postMessage&&!E.importScripts,P=(()=>{if(M){const e=[];E.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=e.length;i<s;i++){const s=e[i];if(s.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void s.callback()}}));let t=0;return i=>{const s=++t;e.push({id:s,callback:i}),E.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),F=c||p?2:a?1:3;let U=!0,H=!1;function B(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);U=513===t[0]}return U}const W=!!(O&&O.indexOf("Chrome")>=0),V=!!(O&&O.indexOf("Firefox")>=0),z=!!(!W&&O&&O.indexOf("Safari")>=0),G=!!(O&&O.indexOf("Edg/")>=0),j=!!(O&&O.indexOf("Android")>=0)},98192:(e,t,i)=>{"use strict";i.d(t,{CU:()=>n,om:()=>r});var s=i(82435);const n="gc-",r=((0,s.withNaming)({e:"__",m:"_",v:"_"}),(0,s.withNaming)({n:n,e:"__",m:"_",v:"_"}))},98232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{encodeSemanticTokensDto:()=>r});var s=i(81674),n=i(98067);function r(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const s of e.deltas)t[i++]=s.start,t[i++]=s.deleteCount,s.data?(t[i++]=s.data.length,t.set(s.data,i),i+=s.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return n.cm()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],s=e[t+1],n=e[t+2],r=e[t+3];e[t+0]=r,e[t+1]=n,e[t+2]=s,e[t+3]=i}}(t),s.MB.wrap(t)}(t)}},98408:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3822).then(i.bind(i,33822))})},98472:(e,t,i)=>{"use strict";var s=i(11007),n=i(77163),r=i(78209),o=i(27195);class a extends o.L{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:a.ID,title:r.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:r.aS("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!n.M.getTabFocusMode();n.M.setTabFocusMode(e),e?(0,s.xE)(r.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,s.xE)(r.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}(0,o.ug)(a)},98745:(e,t,i)=>{"use strict";var s,n=i(5662),r=i(64383),o=i(23750),a=i(84001),c=i(90766),l=i(18447),h=i(47612),d=i(45538),u=i(32371),g=i(32500),p=i(78381),m=i(56942),f=i(74243),_=i(72466),v=i(84585),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends n.jG{constructor(e,t,i,s,n,r){super(),this._watchers=Object.create(null);const o=t=>{this._watchers[t.uri.toString()]=new S(t,e,i,n,r)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},c=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.K)(e,i,s)?t||o(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.K)(e,i,s)&&o(e)})),this._register(t.onModelAdded((e=>{(0,v.K)(e,i,s)&&o(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(s.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.r)&&c()}))),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};b=C([E(0,f.ISemanticTokensStylingService),E(1,o.IModelService),E(2,h.Gy),E(3,a.pG),E(4,g.ILanguageFeatureDebounceService),E(5,m.ILanguageFeaturesService)],b);let S=class extends n.jG{static{s=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,i,r,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentSemanticTokens",{min:s.REQUEST_MIN_DELAY,max:s.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new c.uC((()=>this._fetchDocumentSemanticTokensNow()),s.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new l.Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,s=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const n=[],o=this._model.onDidChangeContent((e=>{n.push(e)})),a=new p.W(!1);s.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),e){const{provider:t,tokens:i}=e,s=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,s,n)}else this._setDocumentSemanticTokens(null,null,null,n)}),(e=>{e&&(r.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||r.dz(e),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),(n.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,s,n){n=Math.min(n,i.length-s,e.length-t);for(let r=0;r<n;r++)i[s+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){const r=this._currentDocumentResponse,o=()=>{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void o();if((0,u.yS)(t)){if(!r)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const n=r.data,o=new Uint32Array(n.length+e);let a=n.length,c=o.length;for(let l=t.edits.length-1;l>=0;l--){const e=t.edits[l];if(e.start>n.length)return i.warnInvalidEditStart(r.resultId,t.resultId,l,e.start,n.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(s._copy(n,a-h,o,c-h,h),c-=h),e.data&&(s._copy(e.data,0,o,c-e.data.length,e.data.length),c-=e.data.length),a=e.start}a>0&&s._copy(n,0,o,0,a),t={resultId:t.resultId,data:o}}}if((0,u.BB)(t)){this._currentDocumentResponse=new y(e,t.resultId,t.data);const s=(0,d.toMultilineTokens2)(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of s)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(s,!0)}else this._model.tokenization.setSemanticTokens(null,!0);o()}else this._model.tokenization.setSemanticTokens(null,!1)}};S=s=C([E(1,f.ISemanticTokensStylingService),E(2,h.Gy),E(3,g.ILanguageFeatureDebounceService),E(4,m.ILanguageFeaturesService)],S);class y{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.x)(b)},99020:(e,t,i)=>{"use strict";i.d(t,{Su:()=>d,b7:()=>h,fe:()=>u});var s=i(91508),n=i(98067),r=i(81674);let o,a,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function h(){return c||(c=n.cm()?l():(a||(a=new TextDecoder("UTF-16BE")),a)),c}function d(e,t,i){const s=new Uint16Array(e.buffer,t,i);return i>0&&(65279===s[0]||65534===s[0])?function(e,t,i){const s=[];let n=0;for(let o=0;o<i;o++){const i=r.$l(e,t);t+=2,s[n++]=String.fromCharCode(i)}return s.join("")}(e,t,i):l().decode(s)}class u{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"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||s.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},99312:(e,t,i)=>{"use strict";i.d(t,{mR:()=>K,bn:()=>j,QS:()=>G});var s=i(11007),n=i(90766),r=i(24939),o=i(631),a=i(79400),c=i(50868),l=i(34326),h=i(31450),d=i(80301),u=i(29163),g=i(83069),p=i(36677),m=i(60002),f=i(62083),_=i(23646),v=i(79614),C=i(41234),E=i(5662),b=i(89403),S=i(78209),y=i(32848),w=i(14718),R=i(63591),L=i(98031),T=i(59261),x=i(58591),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N=new y.N1("hasSymbols",!1,(0,S.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),I=(0,R.u1)("ISymbolNavigationService");let O=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=N.bindTo(e)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new D(this._editorService),s=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const s=i.getModel(),n=i.getPosition();if(!s||!n)return;let r=!1,o=!1;for(const a of t.references)if((0,b.n4)(a.uri,s.uri))r=!0,o=o||p.Q.containsPosition(a.range,n);else if(r)break;r&&o||this.reset()}));this._currentState=(0,E.qE)(i,s)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){this._currentMessage?.dispose();const e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?(0,S.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):(0,S.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};O=k([A(0,y.fN),A(1,d.T),A(2,x.Ot),A(3,L.b)],O),(0,w.v)(I,O,1),(0,h.E_)(new class extends h.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:N,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(I).revealNext(t)}}),T.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:N,primary:9,handler(e){e.get(I).reset()}});let D=class{constructor(e){this._listener=new Map,this._disposables=new E.Cm,this._onDidChange=new C.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,E.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,E.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){this._listener.get(e)?.dispose(),this._listener.delete(e)}};D=k([A(0,d.T)],D);var M=i(99645),P=i(84226),F=i(27195),U=i(50091),H=i(73823),B=i(80538),W=i(56942),V=i(42522),z=i(28290);F.ZG.appendMenuItem(F.D8.EditorContext,{submenu:F.D8.EditorContextPeek,title:S.kg("peek.submenu","Peek"),group:"navigation",order:100});class G{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof G||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class j extends h.qO{static{this._allSymbolNavigationCommands=new Map}static{this._activeAlternativeCommands=new Set}static all(){return j._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of V.f.wrap(t.menu))i.id!==F.D8.EditorContext&&i.id!==F.D8.EditorContextPeek||(i.when=y.M$.and(e.precondition,i.when));return t}constructor(e,t){super(j._patchConfig(t)),this.configuration=e,j._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,r){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(x.Ot),a=e.get(d.T),l=e.get(H.N8),h=e.get(I),u=e.get(W.ILanguageFeaturesService),g=e.get(R._Y),p=t.getModel(),m=t.getPosition(),f=G.is(i)?i:new G(p,m),_=new c.gI(t,5),v=(0,n.PK)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{if(!e||_.token.isCancellationRequested)return;let n;if((0,s.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!j._activeAlternativeCommands.has(e)&&j._allSymbolNavigationCommands.has(e)&&(n=j._allSymbolNavigationCommands.get(e))}const o=e.references.length;if(0===o){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);M.k.get(t)?.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==o||!n)return this._onResult(a,h,t,e,r);j._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>n.runEditorCommand(e,t,i,r).finally((()=>{j._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{o.error(e)})).finally((()=>{_.dispose()}));return l.showWhile(v,250),v}async _onResult(e,t,i,s,n){const r=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===r&&s.references.length>1)){const o=s.firstReference(),a=s.references.length>1&&"gotoAndPeek"===r,c=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&c?this._openInPeek(c,s,n):s.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(i,s,n)}async _openReference(e,t,i,s,n){let r;if((0,f.Iu)(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const o=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,s);if(o){if(n){const e=o.getModel(),t=o.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{o.getModel()===e&&t.clear()}),350)}return o}}_openInPeek(e,t,i){const s=_.X.get(e);s&&e.hasModel()?s.toggleWidget(i??e.getSelection(),(0,n.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}class K extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.hE)(e.definitionProvider,t,i,!1,s),S.kg("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("noResultWord","No definition found for '{0}'",e.word):S.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:S.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:2118,weight:100}],menu:[{id:F.D8.EditorContext,group:"navigation",order:1.1},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),U.w.registerCommandAlias("editor.action.goToDeclaration",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinitionAside"}constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,title:S.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:y.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,r.m5)(2089,70),weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:(0,r.m5)(2089,2118),weight:100}]}),U.w.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.peekDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,title:S.aS("actions.previewDecl.label","Peek Definition"),precondition:y.M$.and(m.R.hasDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:2}}),U.w.registerCommandAlias("editor.action.previewDeclaration",e.id)}});class Y extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.sv)(e.declarationProvider,t,i,!1,s),S.kg("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,F.ug)(class e extends Y{static{this.id="editor.action.revealDeclaration"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:S.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:y.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:F.D8.EditorContext,group:"navigation",order:1.3},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}}),(0,F.ug)(class extends Y{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:S.aS("actions.peekDecl.label","Peek Declaration"),precondition:y.M$.and(m.R.hasDeclarationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:3}})}});class q extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.f9)(e.typeDefinitionProvider,t,i,!1,s),S.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):S.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,F.ug)(class e extends q{static{this.ID="editor.action.goToTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:S.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.4},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}),(0,F.ug)(class e extends q{static{this.ID="editor.action.peekTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:y.M$.and(m.R.hasTypeDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:4}})}});class $ extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.eS)(e.implementationProvider,t,i,!1,s),S.kg("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):S.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,F.ug)(class e extends ${static{this.ID="editor.action.goToImplementation"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:S.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}),(0,F.ug)(class e extends ${static{this.ID="editor.action.peekImplementation"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekImplementation.label","Peek Implementations"),precondition:y.M$.and(m.R.hasImplementationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:5}})}});class Q extends j{_getNoResultFoundMessage(e){return e?S.kg("references.no","No references found for '{0}'",e.word):S.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...S.aS("goToReferences.label","Go to References"),mnemonicTitle:S.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!0,!1,s),S.kg("ref.title","References"))}}),(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:S.aS("references.action.label","Peek References"),precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!1,!1,s),S.kg("ref.title","References"))}});class X extends j{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:S.aS("label.generic","Go to Any Symbol"),precondition:y.M$.and(P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,s){return new v.y4(this._references,S.kg("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&S.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){return this._gotoMultipleBehaviour??e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}U.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,s,n,r,c)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i)),(0,o.j)(Array.isArray(s)),(0,o.j)("undefined"===typeof n||"string"===typeof n),(0,o.j)("undefined"===typeof c||"boolean"===typeof c);const h=e.get(d.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,l.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends X{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(c),openToSide:!1},s,n);e.get(R._Y).invokeFunction(t.run.bind(t),u)}))}}),U.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,s,n)=>{e.get(U.d).executeCommand("editor.action.goToLocations",t,i,s,n,void 0,!0)}}),U.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i));const s=e.get(W.ILanguageFeaturesService),r=e.get(d.T);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((e=>{if(!(0,l.z9)(e)||!e.hasModel())return;const t=_.X.get(e);if(!t)return;const r=(0,n.SS)((t=>(0,B.NN)(s.referenceProvider,e.getModel(),g.y.lift(i),!1,!1,t).then((e=>new v.y4(e,S.kg("ref.title","References")))))),o=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(o,r,!1))}))}}),U.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},99645:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var s,n=i(68214),r=i(11007),o=i(41234),a=i(16980),c=i(5662),l=i(31450),h=i(36677),d=i(20492),u=i(78209),g=i(32848),p=i(49099),m=i(8597),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,u.kg("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new c.HE,this._messageListeners=new c.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=s.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,r.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.VS)(e)?(0,n.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,d.i)(this._openerService,t,(0,a.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new E(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(o.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.QX(m.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(E.fadeOut(this._messageWidget.value))}};v=s=f([_(1,g.fN),_(2,p.C)],v);const C=l.DX.bindToContribution(v.get);(0,l.E_)(new C({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class E{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);const r=document.createElement("div");"string"===typeof s?(r.classList.add("message"),r.textContent=s):(s.classList.add("message"),r.appendChild(s)),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.HW)(v.ID,v,4)},99669:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=new class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function g(){return i.e(6447).then(i.bind(i,66447))}d.languages.json={jsonDefaults:u,getWorker:()=>g().then((e=>e.getWorker()))},d.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),d.languages.onLanguage("json",(()=>{g().then((e=>e.setupMode(u)))}))},99822:(e,t,i)=>{"use strict";var s,n,r=i(31450),o=i(78209),a=i(5662),c=i(28712),l=i(63591),h=i(9270),d=i(98031),u=i(41234),g=i(56942),p=i(60002),m=i(32848),f=i(52363),_=i(8597),v=(i(53396),i(10920)),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends a.jG{static{s=this}static{this.ID="editor.contrib.standaloneColorPickerController"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=i,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(S,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(e){return e.getContribution(s.ID)}};b=s=C([E(1,m.fN),E(2,l._Y)],b),(0,r.HW)(b.ID,b,1);let S=class extends a.jG{static{n=this}static{this.ID="editor.contrib.standaloneColorPickerWidget"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._keybindingService=n,this._languageFeaturesService=r,this._editorWorkerService=o,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=s.createInstance(c.WE,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const a=this._editor.getSelection(),l=a?{startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(_.w5(this._body));this._register(h.onDidBlur((e=>{this.hide()}))),this._register(h.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{const t=e.target.element?.classList;t&&t.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(l),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return n.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new y(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new f.L(this._editorWorkerService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),s={fragment:i,statusBar:this._register(new h.L(this._keybindingService)),onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=e;const n=this._standaloneColorPickerParticipant.renderHoverParts(s,[e]);if(!n)return;this._register(n.disposables);const r=n.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),r.layout();const o=r.body,a=o.saturationBox.domNode.clientWidth,c=o.domNode.clientWidth-a-22-8,l=r.body.enterButton;l?.onClicked((()=>{this.updateEditor(),this.hide()}));const d=r.header;d.pickedColorNode.style.width=a+8+"px";d.originalColorNode.style.width=c+"px";const u=r.header.closeButton;u?.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S=n=C([E(3,l._Y),E(4,d.b),E(5,g.ILanguageFeaturesService),E(6,v.IEditorWorkerService)],S);class y{constructor(e,t){this.value=e,this.foundInEditor=t}}var w=i(27195);class R extends r.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,o.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:w.D8.CommandPalette}],metadata:{description:(0,o.aS)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){b.get(t)?.showOrFocus()}}class L extends r.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,o.aS)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){b.get(t)?.hide()}}class T extends r.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,o.aS)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){b.get(t)?.insertColor()}}(0,r.Fl)(L),(0,r.Fl)(T),(0,w.ug)(R)},99908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearPlatformLanguageAssociations:()=>p,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var s=i(46958),n=i(44320),r=i(36456),o=i(74027),a=i(89403),c=i(91508),l=i(83941);let h=[],d=[],u=[];function g(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,s.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(n),n.userConfigured?u.push(n):d.push(n);i&&!n.userConfigured&&h.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,t)}function p(){h=h.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let i;if(e)switch(e.scheme){case r.ny.file:i=e.fsPath;break;case r.ny.data:i=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case r.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:n.K.unknown}];i=i.toLowerCase();const s=(0,o.P8)(i),g=f(i,s,u);if(g)return[g,{id:l.vH,mime:n.K.text}];const p=f(i,s,d);if(p)return[p,{id:l.vH,mime:n.K.text}];if(t){const e=function(e){(0,c.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const s=e.match(i.firstline);if(s&&s.length>0)return i}return}(t);if(e)return[e,{id:l.vH,mime:n.K.text}]}return[{id:"unknown",mime:n.K.unknown}]}(e,t).map((e=>e.id))}function f(e,t,i){let s,n,r;for(let o=i.length-1;o>=0;o--){const a=i[o];if(t===a.filenameLowercase){s=a;break}if(a.filepattern&&(!n||a.filepattern.length>n.filepattern.length)){const i=a.filepatternOnPath?e:t;a.filepatternLowercase?.(i)&&(n=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&t.endsWith(a.extensionLowercase)&&(r=a)}return s||(n||(r||void 0))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js b/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js deleted file mode 100644 index 4f91897eda..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2042.81e83eeb.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2042],{62042:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>i,language:()=>_});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},_={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m512","__m512d","__m512i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\s*include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword.directive"],{include:"@whitespace"},[/\[\s*\[/,{token:"annotation",next:"@annotation"}],[/[{}()<>\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/[^)]+/,"string.raw"],[/\)$S2\"/,{token:"string.raw.end",next:"@pop"}],[/\)/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2053.b4294b46.chunk.js b/ydb/core/viewer/monitoring/static/js/2053.b4294b46.chunk.js deleted file mode 100644 index b6576daf79..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2053.b4294b46.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2053],{82053:function(e,_,n){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=_(e),t={name:"jv",weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),weekStart:1,weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"}};return n.default.locale(t,null,!0),t}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/20535.b2fdb3bf.chunk.js b/ydb/core/viewer/monitoring/static/js/20535.b2fdb3bf.chunk.js new file mode 100644 index 0000000000..098be20568 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/20535.b2fdb3bf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[20535],{20535:(e,t,a)=>{a.d(t,{default:()=>r});var o=a(53188);const r=a.n(o)()},53188:e=>{function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}e.exports=t,t.displayName="sqf",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/20600.6e1ccb0d.chunk.js b/ydb/core/viewer/monitoring/static/js/20600.6e1ccb0d.chunk.js new file mode 100644 index 0000000000..0a0a1a4bf2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/20600.6e1ccb0d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[20600],{14707:e=>{function n(e){!function(e){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,t=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,(function(){return n})),i=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,(function(){return t})),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,(function(){return t})),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,(function(){return t}))),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce((function(e,n){return e[n]=i[n],e}),{});i["class-name"].forEach((function(e){e.inside=o}))}(e)}e.exports=n,n.displayName="pascaligo",n.aliases=[]},20600:(e,n,t)=>{t.d(n,{default:()=>o});var i=t(14707);const o=t.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/20654.f715fac2.chunk.js b/ydb/core/viewer/monitoring/static/js/20654.f715fac2.chunk.js new file mode 100644 index 0000000000..867f655a7f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/20654.f715fac2.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 20654.f715fac2.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[20654],{20654:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>n});var t={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/20654.f715fac2.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/20654.f715fac2.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/21053.3d2e8f28.chunk.js b/ydb/core/viewer/monitoring/static/js/21053.3d2e8f28.chunk.js new file mode 100644 index 0000000000..3ce4bd0ebd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/21053.3d2e8f28.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[21053],{21053:function(a,n,t){a.exports=function(a){"use strict";function n(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=n(a),u={name:"se",weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),weekStart:1,weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"}};return t.default.locale(u,null,!0),u}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2161.865bcd48.chunk.js b/ydb/core/viewer/monitoring/static/js/2161.865bcd48.chunk.js deleted file mode 100644 index 1586cdf540..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2161.865bcd48.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2161],{34542:function(a,_,e){a.exports=function(a){"use strict";function _(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=_(a),n={name:"uz-latn",weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),weekStart:1,weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},relativeTime:{future:"Yaqin %s ichida",past:"%s oldin",s:"soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"}};return e.default.locale(n,null,!0),n}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/21657.6821035c.chunk.js b/ydb/core/viewer/monitoring/static/js/21657.6821035c.chunk.js new file mode 100644 index 0000000000..509eb94a83 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/21657.6821035c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[21657],{21657:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_,e){return"W"===e?_+"\u5468":_+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(_,e){var t=100*_+e;return t<600?"\u51cc\u6668":t<900?"\u65e9\u4e0a":t<1100?"\u4e0a\u5348":t<1300?"\u4e2d\u5348":t<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2166.e382ccb1.chunk.js b/ydb/core/viewer/monitoring/static/js/2166.e382ccb1.chunk.js deleted file mode 100644 index 2447a90f9c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2166.e382ccb1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2166],{32166:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),n={name:"tl-ph",weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),weekStart:1,weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/21742.5a360b56.chunk.js b/ydb/core/viewer/monitoring/static/js/21742.5a360b56.chunk.js new file mode 100644 index 0000000000..ec0a429568 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/21742.5a360b56.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[21742],{7208:E=>{function T(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}E.exports=T,T.displayName="basic",T.aliases=[]},21742:(E,T,R)=>{R.d(T,{default:()=>I});var N=R(54061);const I=R.n(N)()},54061:(E,T,R)=>{var N=R(7208);function I(E){E.register(N),E.languages.vbnet=E.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}E.exports=I,I.displayName="vbnet",I.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js b/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js deleted file mode 100644 index e9decc0cae..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2182.1e53f745.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2182],{42182:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>i,language:()=>t});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+\u2023\u2022]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/21956.3e818e6c.chunk.js b/ydb/core/viewer/monitoring/static/js/21956.3e818e6c.chunk.js new file mode 100644 index 0000000000..bc76351b8c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/21956.3e818e6c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[21956],{21956:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"kn",weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/21989.76579159.chunk.js b/ydb/core/viewer/monitoring/static/js/21989.76579159.chunk.js new file mode 100644 index 0000000000..1f17677fa5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/21989.76579159.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[21989],{21989:(e,t,r)=>{r.d(t,{default:()=>s});var n=r(38766);const s=r.n(n)()},38766:e=>{function t(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}e.exports=t,t.displayName="clojure",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/21996.6a6996bf.chunk.js b/ydb/core/viewer/monitoring/static/js/21996.6a6996bf.chunk.js new file mode 100644 index 0000000000..92c827cb7f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/21996.6a6996bf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[21996],{21996:(e,t,a)=>{a.d(t,{default:()=>i});var n=a(33423);const i=a.n(n)()},33423:e=>{function t(e){!function(e){var t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,n={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},r={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},o=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],l={pattern:RegExp(t),greedy:!0},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},u={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":n,punctuation:c,string:l},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},k=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,(function(){return k})),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,(function(){return k})),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:o,function:d,"arg-value":u["arg-value"],operator:u.operator,argument:u.arg,number:a,"numeric-constant":n,punctuation:c,string:l}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,(function(){return t})),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:w,"submit-statement":g,"global-statements":b,number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:w,"submit-statement":g,"global-statements":b,number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:u}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:u},step:r,keyword:w,function:d,format:p,altformat:m,"global-statements":b,number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,inside:u},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=\xac^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:o,number:a,"numeric-constant":n}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:u},"cas-actions":y,comment:o,function:d,format:p,altformat:m,"numeric-constant":n,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:r,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|\xa6\xa6?|<[>=]?|>[<=]?|[-+\/=&]|[~\xac^]=?/,punctuation:c}}(e)}e.exports=t,t.displayName="sas",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/221.b740df48.chunk.js b/ydb/core/viewer/monitoring/static/js/221.b740df48.chunk.js deleted file mode 100644 index 5c65bfddd2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/221.b740df48.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[221],{60221:function(_,e,d){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var d=e(_),Y={name:"zh-tw",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_,e){return"W"===e?_+"\u9031":_+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(_,e){var d=100*_+e;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1100?"\u4e0a\u5348":d<1300?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return d.default.locale(Y,null,!0),Y}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/22372.9c5be99f.chunk.js b/ydb/core/viewer/monitoring/static/js/22372.9c5be99f.chunk.js new file mode 100644 index 0000000000..70d7c92965 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/22372.9c5be99f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 22372.9c5be99f.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[22372],{22372:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>f});var r,s,i=n(80781),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of a(t))c.call(e,s)||s===n||o(e,s,{get:()=>t[s],enumerable:!(r=l(t,s))||r.enumerable});return e},g={};p(g,r=i,"default"),s&&p(s,r,"default");var d={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:g.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/22372.9c5be99f.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/22372.9c5be99f.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js b/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js deleted file mode 100644 index f2bbb1e6b2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 225.cf362439.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[225],{70225:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Wt,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Ot,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>un,DocumentHighlightAdapter:()=>Jt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>cn,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>qt,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>fn,WorkerManager:()=>Nt,fromPosition:()=>Ht,fromRange:()=>Xt,setupMode:()=>hn,toRange:()=>zt,toTextEdit:()=>Bt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,h,p,m,v,b,_,k,y,w,x,I,E,C,A,S,R,L,T,M,D,P,F,j,N,U,V,O,K,W,H,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,he,pe,me,ve,be,_e,ke,ye,we,xe,Ie,Ee,Ce,Ae,Se,Re,Le,Te,Me,De,Pe,Fe,je,Ne,Ue,Ve,Oe,Ke,We,He,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,ht,pt,mt,vt,bt,_t,kt,yt,wt,xt,It,Et,Ct,At,St,Rt,Lt,Tt,Mt,Dt,Pt,Ft,jt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(p=h||(h={})).MIN_VALUE=-2147483648,p.MAX_VALUE=2147483647,p.is=function(e){return"number"===typeof e&&p.MIN_VALUE<=e&&e<=p.MAX_VALUE},(v=m||(m={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(_=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},_.is=function(e){let t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.line)&&Ut.uinteger(t.character)},(y=k||(k={})).create=function(e,t,n,r){if(Ut.uinteger(e)&&Ut.uinteger(t)&&Ut.uinteger(n)&&Ut.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},y.is=function(e){let t=e;return Ut.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(x=w||(w={})).create=function(e,t){return{uri:e,range:t}},x.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(Ut.string(t.uri)||Ut.undefined(t.uri))},(E=I||(I={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.targetRange)&&Ut.string(t.targetUri)&&k.is(t.targetSelectionRange)&&(k.is(t.originSelectionRange)||Ut.undefined(t.originSelectionRange))},(A=C||(C={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.numberRange(t.red,0,1)&&Ut.numberRange(t.green,0,1)&&Ut.numberRange(t.blue,0,1)&&Ut.numberRange(t.alpha,0,1)},(R=S||(S={})).create=function(e,t){return{range:e,color:t}},R.is=function(e){const t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&C.is(t.color)},(T=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.undefined(t.textEdit)||B.is(t))&&(Ut.undefined(t.additionalTextEdits)||Ut.typedArray(t.additionalTextEdits,B.is))},(D=M||(M={})).Comment="comment",D.Imports="imports",D.Region="region",(F=P||(P={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ut.defined(n)&&(a.startCharacter=n),Ut.defined(r)&&(a.endCharacter=r),Ut.defined(i)&&(a.kind=i),Ut.defined(o)&&(a.collapsedText=o),a},F.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.startLine)&&Ut.uinteger(t.startLine)&&(Ut.undefined(t.startCharacter)||Ut.uinteger(t.startCharacter))&&(Ut.undefined(t.endCharacter)||Ut.uinteger(t.endCharacter))&&(Ut.undefined(t.kind)||Ut.string(t.kind))},(N=j||(j={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ut.defined(t)&&w.is(t.location)&&Ut.string(t.message)},(V=U||(U={})).Error=1,V.Warning=2,V.Information=3,V.Hint=4,(K=O||(O={})).Unnecessary=1,K.Deprecated=2,(W||(W={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.href)},(X=H||(H={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ut.defined(n)&&(a.severity=n),Ut.defined(r)&&(a.code=r),Ut.defined(i)&&(a.source=i),Ut.defined(o)&&(a.relatedInformation=o),a},X.is=function(e){var t;let n=e;return Ut.defined(n)&&k.is(n.range)&&Ut.string(n.message)&&(Ut.number(n.severity)||Ut.undefined(n.severity))&&(Ut.integer(n.code)||Ut.string(n.code)||Ut.undefined(n.code))&&(Ut.undefined(n.codeDescription)||Ut.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ut.string(n.source)||Ut.undefined(n.source))&&(Ut.undefined(n.relatedInformation)||Ut.typedArray(n.relatedInformation,j.is))},($=z||(z={})).create=function(e,t,...n){let r={title:e,command:t};return Ut.defined(n)&&n.length>0&&(r.arguments=n),r},$.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.title)&&Ut.string(t.command)},(q=B||(B={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.newText)&&k.is(t.range)},(G=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},G.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ut.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){const t=e;return Ut.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return B.is(t)&&(Q.is(t.annotationId)||J.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ut.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ut.string(t.oldUri)&&Ut.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ut.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ut.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ue||(ue={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ut.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ce||(ce={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.integer(t.version)},(he=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&(null===t.version||Ut.integer(t.version))},(me=pe||(pe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.string(t.languageId)&&Ut.integer(t.version)&&Ut.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(_e||(_e={})).is=function(e){const t=e;return Ut.objectLiteral(e)&&ve.is(t.kind)&&Ut.string(t.value)},(ye=ke||(ke={})).Text=1,ye.Method=2,ye.Function=3,ye.Constructor=4,ye.Field=5,ye.Variable=6,ye.Class=7,ye.Interface=8,ye.Module=9,ye.Property=10,ye.Unit=11,ye.Value=12,ye.Enum=13,ye.Keyword=14,ye.Snippet=15,ye.Color=16,ye.File=17,ye.Reference=18,ye.Folder=19,ye.EnumMember=20,ye.Constant=21,ye.Struct=22,ye.Event=23,ye.Operator=24,ye.TypeParameter=25,(xe=we||(we={})).PlainText=1,xe.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Ce=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ce.is=function(e){const t=e;return t&&Ut.string(t.newText)&&k.is(t.insert)&&k.is(t.replace)},(Se=Ae||(Ae={})).asIs=1,Se.adjustIndentation=2,(Re||(Re={})).is=function(e){const t=e;return t&&(Ut.string(t.detail)||void 0===t.detail)&&(Ut.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){const t=e;return Ut.string(t)||Ut.objectLiteral(t)&&Ut.string(t.language)&&Ut.string(t.value)},(Pe||(Pe={})).is=function(e){let t=e;return!!t&&Ut.objectLiteral(t)&&(_e.is(t.contents)||Me.is(t.contents)||Ut.typedArray(t.contents,Me.is))&&(void 0===e.range||k.is(e.range))},(Fe||(Fe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t,...n){let r={label:e};return Ut.defined(t)&&(r.documentation=t),Ut.defined(n)?r.parameters=n:r.parameters=[],r},(Ue=Ne||(Ne={})).Text=1,Ue.Read=2,Ue.Write=3,(Ve||(Ve={})).create=function(e,t){let n={range:e};return Ut.number(t)&&(n.kind=t),n},(Ke=Oe||(Oe={})).File=1,Ke.Module=2,Ke.Namespace=3,Ke.Package=4,Ke.Class=5,Ke.Method=6,Ke.Property=7,Ke.Field=8,Ke.Constructor=9,Ke.Enum=10,Ke.Interface=11,Ke.Function=12,Ke.Variable=13,Ke.Constant=14,Ke.String=15,Ke.Number=16,Ke.Boolean=17,Ke.Array=18,Ke.Object=19,Ke.Key=20,Ke.Null=21,Ke.EnumMember=22,Ke.Struct=23,Ke.Event=24,Ke.Operator=25,Ke.TypeParameter=26,(We||(We={})).Deprecated=1,(He||(He={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Xe||(Xe={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},($e=ze||(ze={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){let t=e;return t&&Ut.string(t.name)&&Ut.number(t.kind)&&k.is(t.range)&&k.is(t.selectionRange)&&(void 0===t.detail||Ut.string(t.detail))&&(void 0===t.deprecated||Ut.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Be||(Be={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Ge=Qe||(Qe={})).Invoked=1,Ge.Automatic=2,(Ye=Je||(Je={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ut.defined(t)&&Ut.typedArray(t.diagnostics,H.is)&&(void 0===t.only||Ut.typedArray(t.only,Ut.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):z.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ut.string(t.title)&&(void 0===t.diagnostics||Ut.typedArray(t.diagnostics,H.is))&&(void 0===t.kind||Ut.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||z.is(t.command))&&(void 0===t.isPreferred||Ut.boolean(t.isPreferred))&&(void 0===t.edit||ue.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ut.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.command)||z.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ut.defined(t)&&Ut.uinteger(t.tabSize)&&Ut.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.target)||Ut.string(t.target))},(ut=st||(st={})).create=function(e,t){return{range:e,parent:t}},ut.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(void 0===t.parent||ut.is(t.parent))},(dt=ct||(ct={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(pt=ht||(ht={})).create=function(e,t){return{range:e,text:t}},pt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.string(t.text)},(vt=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.boolean(t.caseSensitiveLookup)&&(Ut.string(t.variableName)||void 0===t.variableName)},(_t=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},_t.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&(Ut.string(t.expression)||void 0===t.expression)},(yt=kt||(kt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},yt.is=function(e){const t=e;return Ut.defined(t)&&k.is(e.stoppedLocation)},(xt=wt||(wt={})).Type=1,xt.Parameter=2,xt.is=function(e){return 1===e||2===e},(Et=It||(It={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.location||w.is(t.location))&&(void 0===t.command||z.is(t.command))},(At=Ct||(Ct={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ut.objectLiteral(t)&&b.is(t.position)&&(Ut.string(t.label)||Ut.typedArray(t.label,It.is))&&(void 0===t.kind||wt.is(t.kind))&&void 0===t.textEdits||Ut.typedArray(t.textEdits,B.is)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.paddingLeft||Ut.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ut.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Rt||(Rt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Tt||(Tt={})).Invoked=0,Mt.Automatic=1,(Dt||(Dt={})).create=function(e,t){return{range:e,text:t}},(Pt||(Pt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Ft||(Ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&f.is(t.uri)&&Ut.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[u++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Vt(e,t,n,r)},e.is=function(e){let t=e;return!!(Ut.defined(t)&&Ut.string(t.uri)&&(Ut.undefined(t.languageId)||Ut.string(t.languageId))&&Ut.uinteger(t.lineCount)&&Ut.func(t.getText)&&Ut.func(t.positionAt)&&Ut.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(jt||(jt={}));var Ut,Vt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ut||(Ut={}));var Ot=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Kt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Kt(e){switch(e){case U.Error:return l.MarkerSeverity.Error;case U.Warning:return l.MarkerSeverity.Warning;case U.Information:return l.MarkerSeverity.Info;case U.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Wt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Ht(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:$t(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:zt(e.textEdit.insert),replace:zt(e.textEdit.replace)}:t.range=zt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Ht(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function zt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function $t(e){const t=l.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function Bt(e){if(e)return{range:zt(e.range),text:e.newText}}var qt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Ht(t)))).then((e=>{if(e)return{range:zt(e.range),contents:Gt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Gt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Jt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Ht(t)))).then((e=>{if(e)return e.map((e=>({range:zt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Ht(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:zt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Ht(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Ht(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:zt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:zt(e.location.range),selectionRange:zt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:zt(e.range),selectionRange:zt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Oe.File:return t.File;case Oe.Module:return t.Module;case Oe.Namespace:return t.Namespace;case Oe.Package:return t.Package;case Oe.Class:return t.Class;case Oe.Method:return t.Method;case Oe.Property:return t.Property;case Oe.Field:return t.Field;case Oe.Constructor:return t.Constructor;case Oe.Enum:return t.Enum;case Oe.Interface:return t.Interface;case Oe.Function:return t.Function;case Oe.Variable:return t.Variable;case Oe.Constant:return t.Constant;case Oe.String:return t.String;case Oe.Number:return t.Number;case Oe.Boolean:return t.Boolean;case Oe.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:zt(e.range),url:e.target})))}}))}},un=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}},cn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Xt(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:zt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Xt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=Bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Ht)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:zt(e.range)}),e=e.parent;return t}))}))}};function hn(e){const t=[],n=[],r=new Nt(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;mn(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Wt(i,["/","-",":"]))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new qt(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new Jt(i))),r.definitions&&n.push(l.languages.registerDefinitionProvider(t,new Zt(i))),r.references&&n.push(l.languages.registerReferenceProvider(t,new tn(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new nn(i))),r.colors&&n.push(l.languages.registerColorProvider(t,new ln(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(i))),r.diagnostics&&n.push(new Ot(t,i,e.onDidChange)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new fn(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new un(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new cn(i)))}(),t.push(pn(n)),pn(t)}function pn(e){return{dispose:()=>mn(e)}}function mn(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2251.651c81f8.chunk.js b/ydb/core/viewer/monitoring/static/js/2251.651c81f8.chunk.js new file mode 100644 index 0000000000..6eb0792941 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2251.651c81f8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2251],{2251:(E,T,L)=>{L.d(T,{default:()=>A});var N=L(39792);const A=L.n(N)()},39792:E=>{function T(E){E.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}E.exports=T,T.displayName="fortran",T.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/22609.bdebad49.chunk.js b/ydb/core/viewer/monitoring/static/js/22609.bdebad49.chunk.js new file mode 100644 index 0000000000..bd8b78975d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/22609.bdebad49.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[22609],{22609:(e,a,n)=>{n.d(a,{default:()=>s});var t=n(49784);const s=n.n(t)()},49784:(e,a,n)=>{var t=n(51572);function s(e){e.register(t),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(a){e.languages["markup-templating"].buildPlaceholders(a,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")})),e.languages.hbs=e.languages.handlebars}(e)}e.exports=s,s.displayName="handlebars",s.aliases=["hbs"]},51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,t,s,r){if(n.language===t){var o=n.tokenStack=[];n.code=n.code.replace(s,(function(e){if("function"===typeof r&&!r(e))return e;for(var s,i=o.length;-1!==n.code.indexOf(s=a(t,i));)++i;return o[i]=e,s})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,t){if(n.language===t&&n.tokenStack){n.grammar=e.languages[t];var s=0,r=Object.keys(n.tokenStack);!function o(i){for(var l=0;l<i.length&&!(s>=r.length);l++){var u=i[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var c=r[s],g=n.tokenStack[c],d="string"===typeof u?u:u.content,p=a(t,c),b=d.indexOf(p);if(b>-1){++s;var f=d.substring(0,b),k=new e.Token(t,e.tokenize(g,n.grammar),"language-"+t,g),h=d.substring(b+p.length),m=[];f&&m.push.apply(m,o([f])),m.push(k),h&&m.push.apply(m,o([h])),"string"===typeof u?i.splice.apply(i,[l,1].concat(m)):u.content=m}}else u.content&&o(u.content)}return i}(n.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/22626.2495b693.chunk.js b/ydb/core/viewer/monitoring/static/js/22626.2495b693.chunk.js new file mode 100644 index 0000000000..f4e9c0c2be --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/22626.2495b693.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[22626],{22626:function(e,_,t){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),a={name:"bs",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(a,null,!0),a}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2286.e992ffd4.chunk.js b/ydb/core/viewer/monitoring/static/js/2286.e992ffd4.chunk.js deleted file mode 100644 index a80663c048..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2286.e992ffd4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2286],{32286:function(a,u,e){a.exports=function(a){"use strict";function u(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=u(a),i={name:"rw",weekdays:"Ku Cyumweru_Kuwa Mbere_Kuwa Kabiri_Kuwa Gatatu_Kuwa Kane_Kuwa Gatanu_Kuwa Gatandatu".split("_"),months:"Mutarama_Gashyantare_Werurwe_Mata_Gicurasi_Kamena_Nyakanga_Kanama_Nzeri_Ukwakira_Ugushyingo_Ukuboza".split("_"),relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(a){return a}};return e.default.locale(i,null,!0),i}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/23039.f34c5f78.chunk.js b/ydb/core/viewer/monitoring/static/js/23039.f34c5f78.chunk.js new file mode 100644 index 0000000000..d9dd726edd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/23039.f34c5f78.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[23039],{11632:e=>{function s(e){!function(e){function s(e){return RegExp(/([ \t])/.source+"(?:"+e+")"+/(?=[\s;]|$)/.source,"i")}e.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:s(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:s(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:s(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:s(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:s(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:s(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:s(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}(e)}e.exports=s,s.displayName="csp",s.aliases=[]},23039:(e,s,o)=>{o.d(s,{default:()=>a});var r=o(11632);const a=o.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2308.9e3a980c.chunk.js b/ydb/core/viewer/monitoring/static/js/2308.9e3a980c.chunk.js deleted file mode 100644 index be09fe23fc..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2308.9e3a980c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2308],{62308:(e,t,n)=>{n.r(t),n.d(t,{getCLS:()=>p,getFCP:()=>y,getFID:()=>k,getLCP:()=>F,getTTFB:()=>C});var i,a,r,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},s=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},f=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},d="function"==typeof WeakSet?new WeakSet:new Set,m=function(e,t,n){var i;return function(){t.value>=0&&(n||d.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},p=function(e,t){var n,i=u("CLS",0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},r=c("layout-shift",a);r&&(n=m(e,i,t),s((function(){r.takeRecords().map(a),n()})),f((function(){i=u("CLS",0),n=m(e,i,t)})))},v=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){s((function(e){var t=e.timeStamp;v=t}),!0)},g=function(){return v<0&&(v=l(),h(),f((function(){setTimeout((function(){v=l(),h()}),0)}))),{get timeStamp(){return v}}},y=function(e,t){var n,i=g(),a=u("FCP"),r=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.timeStamp&&(a.value=e.startTime,a.entries.push(e),d.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],s=o?null:c("paint",r);(o||s)&&(n=m(e,a,t),o&&r(o),f((function(i){a=u("FCP"),n=m(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,d.add(a),n()}))}))})))},S={passive:!0,capture:!0},E=new Date,b=function(e,t){i||(i=t,a=e,r=new Date,L(removeEventListener),T())},T=function(){if(a>=0&&a<r-E){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(t){t(e)})),o=[]}},w=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){b(e,t),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,S),removeEventListener("pointercancel",i,S)};addEventListener("pointerup",n,S),addEventListener("pointercancel",i,S)}(t,e):b(t,e)}},L=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,w,S)}))},k=function(e,t){var n,r=g(),p=u("FID"),v=function(e){e.startTime<r.timeStamp&&(p.value=e.processingStart-e.startTime,p.entries.push(e),d.add(p),n())},l=c("first-input",v);n=m(e,p,t),l&&s((function(){l.takeRecords().map(v),l.disconnect()}),!0),l&&f((function(){var r;p=u("FID"),n=m(e,p,t),o=[],a=-1,i=null,L(addEventListener),r=v,o.push(r),T()}))},F=function(e,t){var n,i=g(),a=u("LCP"),r=function(e){var t=e.startTime;t<i.timeStamp&&(a.value=t,a.entries.push(e)),n()},o=c("largest-contentful-paint",r);if(o){n=m(e,a,t);var p=function(){d.has(a)||(o.takeRecords().map(r),o.disconnect(),d.add(a),n())};["keydown","click"].forEach((function(e){addEventListener(e,p,{once:!0,capture:!0})})),s(p,!0),f((function(i){a=u("LCP"),n=m(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,d.add(a),n()}))}))}))}},C=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/23158.a522a83d.chunk.js b/ydb/core/viewer/monitoring/static/js/23158.a522a83d.chunk.js new file mode 100644 index 0000000000..30affd845d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/23158.a522a83d.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 23158.a522a83d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[23158],{23158:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>r,language:()=>i});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/23158.a522a83d.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/23158.a522a83d.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/23321.4a32d0c2.chunk.js b/ydb/core/viewer/monitoring/static/js/23321.4a32d0c2.chunk.js new file mode 100644 index 0000000000..921ec418a8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/23321.4a32d0c2.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[23321],{23321:function(e,d,_){e.exports=function(e){"use strict";function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=d(e),s={name:"oc-lnc",weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"Dg_Dl_Dm_Dc_Dj_Dv_Ds".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),months:"geni\xe8r_febri\xe8r_mar\xe7_abrial_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),monthsShort:"gen_feb_mar\xe7_abr_mai_junh_julh_ago_set_oct_nov_dec".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},ordinal:function(e){return e+"\xba"}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js b/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js deleted file mode 100644 index 936b96f80a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2350.a7af0a2e.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2350],{62350:(e,i,t)=>{t.r(i),t.d(i,{conf:()=>n,language:()=>s});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[A-Z][\w\$]*/,"type.identifier"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/23702.887336e8.chunk.js b/ydb/core/viewer/monitoring/static/js/23702.887336e8.chunk.js new file mode 100644 index 0000000000..b55444f595 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/23702.887336e8.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 23702.887336e8.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[23702],{23702:(e,_,t)=>{t.r(_),t.d(_,{conf:()=>r,language:()=>i});var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","AZ64","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LANGUAGE","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY16","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/23702.887336e8.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/23702.887336e8.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js b/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js deleted file mode 100644 index 129bede95a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2372.880a31f6.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2372],{22372:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>f});var r,s,i=n(80781),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of a(t))c.call(e,s)||s===n||o(e,s,{get:()=>t[s],enumerable:!(r=l(t,s))||r.enumerable});return e},g={};p(g,r=i,"default"),s&&p(s,r,"default");var d={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:g.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/23779.2a240d6f.chunk.js b/ydb/core/viewer/monitoring/static/js/23779.2a240d6f.chunk.js new file mode 100644 index 0000000000..0dfcfdce7b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/23779.2a240d6f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[23779],{6170:(e,s,t)=>{t.d(s,{B:()=>c});var r=t(59284),a=t(73633),l=t(84375),n=t(99991);const o=(0,t(98192).om)("help-popover"),i=16;function c(e){var s;return r.createElement(l.A,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.I,{data:a.A,size:i})))}},15132:(e,s,t)=>{t.d(s,{O:()=>v});var r=t(38501),a=t(77506),l=t(56839),n=t(35736),o=t(41650),i=t(60712);const c=(0,a.cn)("progress-viewer"),d=e=>(0,l.ZV)((0,l.CR)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v({value:e,capacity:s,formatValues:t=u,percents:a,className:l,size:d="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h,dangerThreshold:N,hideCapacity:g}){const p=(0,r.D)();let f=Math.round(parseFloat(String(e))/parseFloat(String(s))*100)||0;f=f>100?100:f;let S=e,b=s,x="/";a?(S=f+"%",b="",x=""):t&&([S,b]=t(Number(e),Number(s)));const E=(0,n.w)({fillWidth:f,warningThreshold:h,dangerThreshold:N,colorizeProgress:v,inverseColorize:m});v&&!(0,o.kf)(s)&&(f=100);const j={width:f+"%"};return(0,o.kf)(e)?(0,i.jsxs)("div",{className:c({size:d,theme:p,status:E},l),children:[(0,i.jsx)("div",{className:c("line"),style:j}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kf)(s)&&!g?`${S} ${x} ${b}`:S})]}):(0,i.jsx)("div",{className:`${c({size:d})} ${l} error`,children:"no data"})}},18143:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(59284);const a=(0,t(69220).om)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n({item:e}){const{value:s,color:t,className:l,theme:n,title:o,content:i,loading:c}=e,d={loading:c};return"undefined"===typeof t&&(d.theme=n||"default"),Number.isFinite(s)?r.createElement("div",{className:a("item",d,l),style:{width:`${s}%`,backgroundColor:t},title:o},i):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,{value:s})=>e+s),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))},35736:(e,s,t)=>{t.d(s,{w:()=>a});var r=t(76086);function a({inverseColorize:e,warningThreshold:s=r.Hh,dangerThreshold:t=r.Ed,colorizeProgress:a,fillWidth:l}){let n=e?"danger":"good";return a&&(l>s&&l<=t?n="warning":l>t&&(n=e?"good":"danger")),n}},41775:(e,s,t)=>{t.d(s,{v:()=>i});var r=t(59284),a=t(28664),l=t(77506),n=t(60712);const o=(0,l.cn)("ydb-search"),i=({onChange:e,value:s="",width:t,className:l,debounce:i=200,placeholder:c})=>{const[d,u]=r.useState(s),v=r.useRef();r.useEffect((()=>{u((e=>e!==s?s:e))}),[s]);return(0,n.jsx)(a.k,{hasClear:!0,autoFocus:!0,style:{width:t},className:o(null,l),placeholder:c,value:d,onUpdate:s=>{u(s),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===e||void 0===e||e(s)}),i)}})}},43951:(e,s,t)=>{t.d(s,{K:()=>l});var r=t(59284),a=t(59001);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.f.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.f.setUserSettingsValue(s,t),i(t)}),[s])}}},48288:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>te});var r=t(59284),a=t(4557),l=t(24555),n=t(69775),o=t(61750),i=t(90053),c=t(44508),d=t(52248),u=t(17594),v=t(95963),m=t(39567),h=t(23536),N=t.n(h),g=t(41650);const p=e=>e.clusters.clusterName,f=e=>e.clusters.status,S=e=>e.clusters.service,b=e=>e.clusters.version,x=(e,s)=>0===s.length||e.status&&s.includes(e.status),E=(e,s)=>0===s.length||e.service&&s.includes(e.service),j=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),T=(e,s="")=>{var t;if(!s)return!0;const r=s.toLowerCase(),a=r.split(" "),l=(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var O=t(76086),C=t(90182),w=t(43951),A=t(38596),_=t(15132),y=t(56839),R=t(48372);const I=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),D=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),L=(0,R.g4)("ydb-clusters-page",{ru:D,en:I});var z=t(77506);const k=(0,z.cn)("clusters");var V=t(60712);const U=({count:e,stats:s})=>{const{NodesTotal:t,NodesAlive:r,Hosts:a,Tenants:l,LoadAverage:n,NumberOfCpus:o,StorageUsed:i,StorageTotal:c}=s;return(0,V.jsxs)("div",{className:k("aggregation"),children:[(0,V.jsxs)("div",{className:k("aggregation-value-container"),children:[(0,V.jsx)("span",{className:k("aggregation-label"),children:L("statistics_clusters")}),e]}),(0,V.jsxs)("div",{className:k("aggregation-value-container"),children:[(0,V.jsx)("span",{className:k("aggregation-label"),children:L("statistics_hosts")}),a]}),(0,V.jsxs)("div",{className:k("aggregation-value-container"),children:[(0,V.jsx)("span",{className:k("aggregation-label"),children:L("statistics_tenants")}),l]}),(0,V.jsxs)("div",{className:k("aggregation-value-container"),children:[(0,V.jsx)("span",{className:k("aggregation-label"),children:L("statistics_nodes")}),(0,V.jsx)(_.O,{size:"ns",value:r,capacity:t,colorizeProgress:!0,inverseColorize:!0})]}),(0,V.jsxs)("div",{className:k("aggregation-value-container"),children:[(0,V.jsx)("span",{className:k("aggregation-label"),children:L("statistics_load")}),(0,V.jsx)(_.O,{size:"ns",value:n,capacity:o,colorizeProgress:!0})]}),(0,V.jsxs)("div",{className:k("aggregation-value-container"),children:[(0,V.jsx)("span",{className:k("aggregation-label"),children:L("statistics_storage")}),(0,V.jsx)(_.O,{size:"ns",value:i,capacity:c,formatValues:y.j9,colorizeProgress:!0})]})]})};var G=t(6170),P=t(67884),W=t(18143),M=t(96873),$=t(34271);const H=(0,z.cn)("kv-user");function B({login:e,className:s}){const t=(0,$.x)("StaffCard");return(0,V.jsx)("div",{className:H(null,s),children:(0,V.jsx)(t,{login:e,children:(0,V.jsx)("div",{className:H("name"),children:e})})})}var F=t(31684),q=t(69446),J=t(87842);const K="selectedColumns",Q={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},X=[Q.TITLE,Q.VERSIONS,Q.SERVICE,Q.STATUS,Q.NODES,Q.LOAD,Q.STORAGE,Q.HOSTS,Q.TENANTS,Q.OWNER,Q.BALANCER],Y={[Q.TITLE]:"Cluster",[Q.VERSIONS]:"Versions",[Q.DC]:"DC",[Q.SERVICE]:"Service",[Q.STATUS]:"Status",[Q.NODES]:"Nodes",[Q.LOAD]:"Load",[Q.STORAGE]:"Storage",[Q.HOSTS]:"Hosts",[Q.TENANTS]:"Tenants",[Q.OWNER]:"Owner",[Q.DESCRIPTION]:"Description",[Q.BALANCER]:"Balancer"},Z="clustersTableColumnsWidth",ee=(0,V.jsx)("span",{className:k("empty-cell"),children:"\u2014"}),se=[{name:Q.TITLE,header:Y[Q.TITLE],width:230,render:({row:e})=>{var s,t;const{balancer:r,name:a,use_embedded_ui:l}=e,n=r&&(0,q.PG)(r),o=l&&n?(0,F.t1)(n):(0,J.a)(void 0,{backend:n,clusterName:a}),i=null===(s=e.cluster)||void 0===s?void 0:s.Overall;return(0,V.jsxs)("div",{className:k("cluster"),children:[i?(0,V.jsx)(P.N,{href:o,children:(0,V.jsx)("div",{className:k("cluster-status",{type:i&&i.toLowerCase()})})}):(0,V.jsx)("div",{className:k("cluster-status"),children:(0,V.jsx)(G.B,{content:(0,V.jsx)("span",{className:k("tooltip-content"),children:(null===(t=e.cluster)||void 0===t?void 0:t.error)||L("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,V.jsx)("div",{className:k("cluster-name"),children:(0,V.jsx)(P.N,{href:o,children:e.title})})]})},defaultOrder:a.Ay.ASCENDING},{name:Q.VERSIONS,header:Y[Q.VERSIONS],width:300,defaultOrder:a.Ay.DESCENDING,sortAccessor:({preparedVersions:e})=>e.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0,render:({row:e})=>{const{preparedVersions:s,versions:t=[],balancer:a,name:l}=e;if(!t.length||t.some((e=>!e.version)))return ee;const n=t.reduce(((e,s)=>e+s.count),0),o=t.map((e=>{var t;return{value:e.count/n*100,color:null===(t=s.find((s=>s.version===e.version)))||void 0===t?void 0:t.color}})),i=a&&(0,q.PG)(a);return s.length>0&&(0,V.jsx)(P.N,{className:k("cluster-versions"),href:(0,J.a)(J.Bi.versions,{backend:i,clusterName:l}),children:(0,V.jsxs)(r.Fragment,{children:[s.map(((e,s)=>(0,V.jsx)("div",{className:k("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,V.jsx)(W.k,{size:"s",value:100,stack:o})]})})}},{name:Q.DC,header:Y[Q.DC],width:120,sortable:!1,render:({row:e})=>{const s=e.cluster&&e.cluster.DataCenters||[];return(0,V.jsx)("div",{className:k("cluster-dc"),children:s.join(", ")||ee})}},{name:Q.SERVICE,header:Y[Q.SERVICE],width:100,sortable:!0},{name:Q.STATUS,header:Y[Q.STATUS],width:150,sortable:!0},{name:Q.NODES,header:Y[Q.NODES],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e={}})=>{const{NodesTotal:s=0}=e;return s},render:({row:e})=>{const{NodesAlive:s=0,NodesTotal:t=0,Overall:r}=e.cluster||{};return r?(0,V.jsx)(_.O,{value:s,capacity:t}):ee}},{name:Q.LOAD,header:Y[Q.LOAD],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>null===e||void 0===e?void 0:e.NumberOfCpus,render:({row:e})=>{const{LoadAverage:s=0,NumberOfCpus:t=0,RealNumberOfCpus:r,Overall:a}=e.cluster||{};return a?(0,V.jsx)(_.O,{value:s,capacity:null!==r&&void 0!==r?r:t}):ee}},{name:Q.STORAGE,header:Y[Q.STORAGE],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.StorageTotal),render:({row:e})=>{const{StorageUsed:s=0,StorageTotal:t=0,Overall:r}=e.cluster||{};return r?(0,V.jsx)(_.O,{value:s,capacity:t,formatValues:y.ki}):ee}},{name:Q.HOSTS,header:Y[Q.HOSTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Hosts)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Hosts)||ee}},{name:Q.TENANTS,header:Y[Q.TENANTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Tenants)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Tenants)||ee}},{name:Q.OWNER,header:Y[Q.OWNER],sortable:!1,width:120,render:({row:e})=>{var s;const t=null===(s=e.owner)||void 0===s?void 0:s.split(", ");return null!==t&&void 0!==t&&t.length?t.map((e=>(0,V.jsx)(B,{login:e},e))):ee}},{name:Q.DESCRIPTION,header:Y[Q.DESCRIPTION],sortable:!1,width:150,render:({row:e})=>e.description?(0,V.jsx)("div",{className:k("description"),children:e.description}):ee},{name:Q.BALANCER,header:Y[Q.BALANCER],sortable:!1,width:290,render:({row:e})=>{if(!e.balancer)return ee;const s=(0,q.Zd)(e.balancer);return(0,V.jsxs)("div",{className:k("balancer-cell"),children:[(0,V.jsx)("div",{className:k("balancer-text"),children:s}),(0,V.jsx)(M.b,{size:"s",text:s,className:k("balancer-icon")})]})}}];function te(){const[e]=(0,C.Nt)(),s=m.ub.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,C.YQ)(),h=(0,C.N4)(p),N=(0,C.N4)(f),_=(0,C.N4)(S),y=(0,C.N4)(b),{columnsToShow:R,columnsToSelect:I,setColumns:D}=(0,w.K)(se,K,Y,X,[Q.TITLE]),z=s.data,{servicesToSelect:G,versions:P}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==z&&void 0!==z?z:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,A.U)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[z]),W=r.useMemo((()=>function(e,s){return e.filter((e=>x(e,s.status)&&E(e,s.service)&&j(e,s.version)&&T(e,s.clusterName)))}(null!==z&&void 0!==z?z:[],{clusterName:h,status:N,service:_,version:y})),[h,z,_,N,y]),M=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((({cluster:e})=>!(null!==e&&void 0!==e&&e.error))).forEach((({cluster:e,hosts:c={}})=>{s+=(null===e||void 0===e?void 0:e.NodesTotal)||0,t+=(null===e||void 0===e?void 0:e.NodesAlive)||0,Object.keys(c).forEach((e=>i.add(e))),o+=Number(null===e||void 0===e?void 0:e.Tenants)||0,r+=Number(null===e||void 0===e?void 0:e.LoadAverage)||0,a+=(0,g.kf)(null===e||void 0===e?void 0:e.RealNumberOfCpus)?null===e||void 0===e?void 0:e.RealNumberOfCpus:(null===e||void 0===e?void 0:e.NumberOfCpus)||0,l+=null!==e&&void 0!==e&&e.StorageUsed?Math.floor(parseInt(e.StorageUsed,10)):0,n+=null!==e&&void 0!==e&&e.StorageTotal?Math.floor(parseInt(e.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(W)),[W]),$=r.useMemo((()=>Array.from(new Set((null!==z&&void 0!==z?z:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[z]);return(0,V.jsxs)("div",{className:k(),children:[(0,V.jsx)(o.mg,{children:(0,V.jsx)("title",{children:L("page_title")})}),(0,V.jsx)(U,{stats:M,count:W.length}),(0,V.jsxs)("div",{className:k("controls"),children:[(0,V.jsx)("div",{className:k("control",{wide:!0}),children:(0,V.jsx)(v.v,{placeholder:L("controls_search-placeholder"),onChange:e=>{t((0,m.Fe)({clusterName:e}))},value:h})}),(0,V.jsx)("div",{className:k("control"),children:(0,V.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:L("controls_select-placeholder"),label:L("controls_status-select-label"),value:N,options:$,onUpdate:e=>{t((0,m.Fe)({status:e}))},width:"max"})}),(0,V.jsx)("div",{className:k("control"),children:(0,V.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:L("controls_select-placeholder"),label:L("controls_service-select-label"),value:_,options:G,onUpdate:e=>{t((0,m.Fe)({service:e}))},width:"max"})}),(0,V.jsx)("div",{className:k("control"),children:(0,V.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:L("controls_select-placeholder"),label:L("controls_version-select-label"),value:y,options:P,onUpdate:e=>{t((0,m.Fe)({version:e}))},width:"max"})}),(0,V.jsx)("div",{className:k("control"),children:(0,V.jsx)(n.O,{popupWidth:242,items:I,showStatus:!0,onUpdate:D,sortable:!1},"TableColumnSetup")}),(0,V.jsx)(i.E,{className:k("autorefresh")})]}),s.isError?(0,V.jsx)(c.o,{error:s.error,className:k("error")}):null,s.isLoading?(0,V.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,V.jsx)("div",{className:k("table-wrapper"),children:(0,V.jsx)("div",{className:k("table-content"),children:(0,V.jsx)(u.l,{columnsWidthLSKey:Z,wrapperClassName:k("table"),data:W,columns:R,settings:{...O.N3,dynamicRender:!1},initialSortOrder:{columnId:Q.TITLE,order:a.Ay.ASCENDING}})})}):null]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},90053:(e,s,t)=>{t.d(s,{E:()=>h});var r=t(8873),a=t(84476),l=t(24555),n=t(21334),o=t(77506),i=t(90182),c=t(48372);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.g4)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(60712);const m=(0,o.cn)("auto-refresh-control");function h({className:e,onManualRefresh:s}){const t=(0,i.YQ)(),[o,c]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{t(n.F.util.invalidateTags(["All"])),null===s||void 0===s||s()},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(o)],onUpdate:e=>{c(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,v.jsx)(l.l.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.l.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.l.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.l.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.l.Option,{value:"300000",children:u("5 min")})]})]})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},98192:(e,s,t)=>{t.d(s,{CU:()=>a,om:()=>l});var r=t(82435);const a="gc-",l=((0,r.withNaming)({e:"__",m:"_",v:"_"}),(0,r.withNaming)({n:a,e:"__",m:"_",v:"_"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/23882.3b39c413.chunk.js b/ydb/core/viewer/monitoring/static/js/23882.3b39c413.chunk.js new file mode 100644 index 0000000000..b5cdf993b3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/23882.3b39c413.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[23882],{23882:(e,r,n)=>{n.d(r,{default:()=>a});var t=n(58151);const a=n.n(t)()},58151:(e,r,n)=>{var t=n(77831);function a(e){e.register(t),function(e){for(var r=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=0;n<5;n++)r=r.replace(/<expr>/g,(function(){return r}));r=r.replace(/<expr>/g,/[^\s\S]/.source);var t=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,(function(){return r})),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};t["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=t,e.languages.ly=t}(e)}e.exports=a,a.displayName="lilypond",a.aliases=[]},77831:e=>{function r(e){!function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var r in e)e[r]=e[r].replace(/<[\w\s]+>/g,(function(r){return"(?:"+e[r].trim()+")"}));return e[r]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(e)}e.exports=r,r.displayName="scheme",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/24130.160bfd14.chunk.js b/ydb/core/viewer/monitoring/static/js/24130.160bfd14.chunk.js new file mode 100644 index 0000000000..b966bb8827 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/24130.160bfd14.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[24130],{23536:(e,t,n)=>{var i=n(68814),s=/[\\^$.*+?()[\]{}|]/g,a=RegExp(s.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(s,"\\$&"):e}},38501:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(46878);function s(){return(0,i.w)().theme}},69775:(e,t,n)=>{"use strict";n.d(t,{O:()=>Ce});var i=n(59284),s=n(27738),a=n(84476),d=n(99991),l=n(66821);const r=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 6V5a2.5 2.5 0 0 0-5 0v1zM4 5v1a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3V5a4 4 0 0 0-8 0m6.5 2.5H12A1.5 1.5 0 0 1 13.5 9v3a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 12V9A1.5 1.5 0 0 1 4 7.5zm-1.75 2a.75.75 0 0 0-1.5 0v2a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}));var o=n(53202),c=n(90826),u=n(46734),m=n(98089),p=n(32084),I=n(51301),v=n(92609),b=n(19884),g=n(93628),f=n(27145),y=n(87184),h=n(69220);const x=(0,h.om)("list-container-view"),S=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:s,className:a,fixedHeight:d,extraProps:l,qa:r,style:o},c){return i.createElement(y.s,Object.assign({qa:r,as:e,direction:"column",ref:c,grow:!0,tabIndex:-1,id:s,role:t,style:o,className:x({"fixed-height":d},a)},l),n)})),B=e=>null!==e&&"object"===typeof e&&"data"in e,E=(0,h.om)("list-recursive-renderer");function C(e){var t,{id:n,itemSchema:s,list:a}=e,d=(0,f.Tt)(e,["id","itemSchema","list"]);const l=d.children(n,a.structure.idToFlattenIndex[n]);if(B(s)&&s.children){const e=!a.state.expandedById||!(n in a.state.expandedById)||a.state.expandedById[n];return i.createElement("ul",{style:d.style,className:E(null,d.className),role:"group"},l,e&&Boolean(null===(t=a.structure.groupsState[n])||void 0===t?void 0:t.childrenIds)&&s.children.map(((e,t)=>i.createElement(C,Object.assign({list:a,id:a.structure.groupsState[n].childrenIds[t],itemSchema:e,key:t},d)))))}return l}function O(e){var{containerRef:t,renderItem:n,list:s}=e,a=(0,f.Tt)(e,["containerRef","renderItem","list"]);return i.createElement(S,Object.assign({ref:t},a),s.structure.items.map(((e,t)=>i.createElement(C,{key:t,itemSchema:e,id:s.structure.rootIds[t],list:s},n))))}const w=({list:e,multiple:t})=>({id:n})=>{e.state.disabledById[n]||(e.state.setActiveItemId(n),e.state.expandedById&&n in e.state.expandedById&&e.state.setExpanded?e.state.setExpanded((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))):e.state.setSelected((e=>Object.assign(Object.assign({},t?e:{}),{[n]:!t||!e[n]}))))};var j=n(359);const k="data-list-item",N={s:[22,44],m:[26,44],l:[34,52],xl:[44,62]},R=({containerRef:e,onItemClick:t,enabled:n,list:s})=>{const a=i.useCallback(((t,n=!0)=>{var i,a;"number"===typeof t&&s.structure.visibleFlattenIds[t]&&(n&&((e,t)=>{var n;if(document){const i=(t||document).querySelector(`[${k}="${e}"]`);i&&(null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"nearest"}))}})(s.structure.visibleFlattenIds[t],null===e||void 0===e?void 0:e.current),null===(a=(i=s.state).setActiveItemId)||void 0===a||a.call(i,s.structure.visibleFlattenIds[t]))}),[s.structure.visibleFlattenIds,s.state,e]),d=i.useCallback(((e,t,n=0)=>{e.preventDefault();const i="string"===typeof s.state.activeItemId?s.structure.visibleFlattenIds.findIndex((e=>e===s.state.activeItemId)):-1,d=(({list:e,index:t,step:n,disabledItemsById:i={}})=>{const s=e.length;let a=(t+s)%s;for(let d=0;d<s;d+=1){const t=e[a];if(t&&!i[t])return a;a=(a+s+n)%s}})({list:s.structure.visibleFlattenIds,index:(i>-1?i:n)+t,step:Math.sign(t),disabledItemsById:s.state.disabledById});a(d)}),[a,s.state.activeItemId,s.state.disabledById,s.structure.visibleFlattenIds]);i.useLayoutEffect((()=>{const i=null===e||void 0===e?void 0:e.current;if(n||!i)return;const a=e=>{switch(e.key){case j.D.ARROW_DOWN:d(e,1,-1);break;case j.D.ARROW_UP:d(e,-1);break;case j.D.SPACEBAR:case j.D.ENTER:s.state.activeItemId&&!s.state.disabledById[s.state.activeItemId]&&(e.preventDefault(),null===t||void 0===t||t({id:s.state.activeItemId}))}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[e,n,d,s.state.activeItemId,s.state.disabledById,t])};var D=n(46423),F=n(25569),P=n(63365),T=n(33705);const $=(0,h.om)("list-item-expand-icon"),A=({expanded:e,behavior:t="action",disabled:n})=>i.createElement(T.I,{direction:z({behavior:t,expanded:e}),className:$(null,(0,P.$)({color:n?"hint":void 0})),size:16});function z({behavior:e,expanded:t}){return t&&"action"===e?"top":t&&"state"===e||t&&"state-inverse"===e||"action"===e?"bottom":"state"===e?"right":"state-inverse"===e?"left":"bottom"}const M=(0,h.om)("list-item-view"),L=e=>"object"===typeof e&&null!==e&&"title"in e,q=e=>{var{children:t,indentation:n=1,className:s}=e,a=(0,f.Tt)(e,["children","indentation","className"]);return i.createElement(y.s,Object.assign({width:16*n,className:M("slot",s)},a),t)},_=({startSlot:e,subtitle:t,endSlot:n,disabled:s,hasSelectionIcon:a,isGroup:l,indentation:r,expanded:o,selected:c,title:u,expandIconPlacement:p="start",renderExpandIcon:I=A})=>{const v=l?i.createElement(I,{behavior:"start"===p?"state":"action",expanded:o,disabled:s}):null;return i.createElement(y.s,{alignItems:"center",justifyContent:"space-between",gap:"4",className:M("content")},i.createElement(y.s,{gap:"2",alignItems:"center",grow:!0},a&&i.createElement(q,null,c?i.createElement(d.I,{data:F.A,size:16,className:(0,P.$)({color:"info"})}):null),(e=>e&&e>=1?i.createElement(q,{indentation:Math.floor(e)}):null)(r),"start"===p&&v,e,i.createElement("div",{className:M("main-content")},"string"===typeof u?i.createElement(m.E,{ellipsis:!0,color:s?"hint":void 0,variant:l?"subheader-1":void 0},u):u,"string"===typeof t?i.createElement(m.E,{ellipsis:!0,color:s?"hint":"secondary"},t):t)),i.createElement(y.s,{gap:"2"},"end"===p&&v,n))},V=i.forwardRef((function(e,t){var{id:n,as:s,size:a="m",active:d,selected:l,disabled:r,selectionViewType:o="multiple",activeOnHover:c,className:u,height:m,dragging:p,style:I,content:v,role:b="option",onClick:g}=e,y=(0,f.Tt)(e,["id","as","size","active","selected","disabled","selectionViewType","activeOnHover","className","height","dragging","style","content","role","onClick"]);const h=s||"li",x=r?void 0:g,S="boolean"===typeof c?c:Boolean(x),B=Object.assign({minHeight:`var(--g-list-item-height, ${null!==m&&void 0!==m?m:N[a][Number(Boolean(!!L(v)&&(null===v||void 0===v?void 0:v.subtitle)))]}px)`},I);return i.createElement(h,Object.assign({[k]:n,role:b,"aria-selected":l,onClick:x,className:M({active:p||d,selected:l&&"single"===o,activeOnHover:S,radius:a,size:a,dragging:p,clickable:Boolean(x)},(0,D.Y)({px:2},u)),style:B,ref:t},y),L(v)?i.createElement(_,Object.assign({},v,{hasSelectionIcon:"multiple"===o,selected:l,disabled:r})):v)})),U=(0,h.om)("tree-list"),W=({qa:e,id:t,size:n="m",className:s,list:a,multiple:d,containerRef:l,renderItem:r,renderContainer:o=O,onItemClick:u,mapItemDataToContentProps:m})=>{const p=(0,c.u)(),I=null!==t&&void 0!==t?t:p,v=i.useRef(null),b=null!==l&&void 0!==l?l:v,g=i.useMemo((()=>{if(null===u)return;return(e,t)=>{const n={id:e.id,list:a};if(u)null===u||void 0===u||u(n,t);else{w({list:a,multiple:d})(n,t)}}}),[u,a,d]);R({containerRef:b,onItemClick:g,list:a});return o({qa:e,id:`list-${I}`,size:n,containerRef:b,className:U(null,s),list:a,renderItem:(t,s,l)=>{const o=(({qa:e,list:t,onItemClick:n,mapItemDataToContentProps:i,size:s="m",multiple:a=!1,id:d})=>{var l,r;const o=Object.assign(Object.assign(Object.assign({},t.structure.itemsState[d]),t.structure.groupsState[d]),{isLastItem:d===t.structure.visibleFlattenIds[t.structure.visibleFlattenIds.length-1]}),c={id:d,size:s,selected:Boolean(t.state.selectedById[d]),disabled:Boolean(null===(l=t.state.disabledById)||void 0===l?void 0:l[d]),active:d===t.state.activeItemId,onClick:n?e=>n({id:d},e):void 0,selectionViewType:Boolean(a)&&!o.childrenIds?"multiple":"single",content:Object.assign({expanded:null===(r=t.state.expandedById)||void 0===r?void 0:r[d],indentation:o.indentation,isGroup:t.state.expandedById&&d in t.state.expandedById},i(t.structure.itemsById[d]))};return e&&(c.qa=((e,t)=>`${e}-${t}`)(e,d)),{data:t.structure.itemsById[d],props:c,context:o}})({qa:e,id:t,size:n,multiple:d,mapItemDataToContentProps:m,onItemClick:g,list:a});return r?r({id:t,data:o.data,props:o.props,context:o.context,index:s,renderContainerProps:l,list:a}):i.createElement(V,Object.assign({},o.props,l))}})};var H=n(63246),J=n(34379),G=n(46819);const Y=({item:e,groupedId:t,getItemId:n})=>{let i=t;return"function"===typeof n?i=n(B(e)?e.data:e):e&&"object"===typeof e&&"id"in e&&e.id&&(i=e.id),i},K=(e,t)=>t?`${t}-${e}`:`${e}`;function Q({items:e,expandedById:t,getItemId:n}){const s=i.useMemo((()=>function({items:e,getItemId:t,expandedById:n={}}){const i=[],s=(e,a,d,l)=>{const r=K(d,l),o=Y({groupedId:r,item:a,getItemId:t});return l||i.push(o),e.push(o),B(a)&&a.children&&(o in n&&!n[o]||e.push(...a.children.reduce(((e,t,n)=>s(e,t,n,o)),[]))),e},a=e.reduce(((e,t,n)=>s(e,t,n)),[]),d={};for(const[l,r]of a.entries())d[r]=l;return{rootIds:i,visibleFlattenIds:a,idToFlattenIndex:d}}({items:e,expandedById:t,getItemId:n})),[e,t,n]);return s}function X({items:e,defaultExpandedState:t="expanded",getItemId:n}){const i={itemsById:{},groupsState:{},itemsState:{},initialState:{disabledById:{},selectedById:{},expandedById:{}}},s=({item:e,index:a,parentGroupedId:d,parentId:l})=>{const r=K(a,d),o=Y({groupedId:r,item:e,getItemId:n});l&&i.groupsState[l].childrenIds.push(o),i.itemsById[o]=e.data,i.itemsState[o]||(i.itemsState[o]={indentation:0}),"undefined"!==typeof l&&(i.itemsState[o].parentId=l),"undefined"!==typeof e.selected&&(i.initialState.selectedById[o]=e.selected),"undefined"!==typeof e.disabled&&(i.initialState.disabledById[o]=e.disabled),r&&(i.itemsState[o].indentation=(e=>e.split("-"))(r).length-1),e.children&&(i.groupsState[o]={childrenIds:[]},i.initialState.expandedById&&("undefined"===typeof e.expanded?i.initialState.expandedById[o]="expanded"===t:i.initialState.expandedById[o]=e.expanded),e.children.forEach(((e,t)=>{s({item:e,index:t,parentGroupedId:r,parentId:o})})))};return e.forEach(((e,t)=>B(e)?s({item:e,index:t}):(({item:e,index:t})=>{const s=Y({groupedId:String(t),item:e,getItemId:n});i.itemsById[s]=e,i.itemsState[s]||(i.itemsState[s]={indentation:0}),e&&"object"===typeof e&&("selected"in e&&"boolean"===typeof e.selected&&(i.initialState.selectedById[s]=e.selected),"disabled"in e&&"boolean"===typeof e.disabled&&(i.initialState.disabledById[s]=e.disabled))})({item:e,index:t}))),i}const Z=({items:e,getItemId:t,defaultExpandedState:n="expanded",withExpandedState:s=!0,initialState:a,controlledState:d})=>{const{itemsById:l,groupsState:r,itemsState:o,initialState:c}=function({items:e,getItemId:t,defaultExpandedState:n}){const s=i.useRef(t).current;return i.useMemo((()=>X({items:e,getItemId:s,defaultExpandedState:n})),[s,n,e])}({items:e,getItemId:t,defaultExpandedState:n}),u=(({initialState:e,withExpandedState:t})=>{const n=i.useRef(e),s=n.current!==e;n.current=e;const[a,d]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.disabledById)&&void 0!==t?t:{}})),[l,r]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.selectedById)&&void 0!==t?t:{}})),[o,c]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.expandedById)&&void 0!==t?t:{}})),[u,m]=i.useState((()=>null===e||void 0===e?void 0:e.activeItemId));s&&((null===e||void 0===e?void 0:e.disabledById)&&d((t=>Object.assign(Object.assign({},e.disabledById),t))),(null===e||void 0===e?void 0:e.selectedById)&&r((t=>Object.assign(Object.assign({},e.selectedById),t))),(null===e||void 0===e?void 0:e.expandedById)&&c((t=>Object.assign(Object.assign({},e.expandedById),t))),m((t=>null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.activeItemId)));const p={disabledById:a,selectedById:l,activeItemId:u,setDisabled:d,setSelected:r,setActiveItemId:m};return t&&(p.expandedById=o,p.setExpanded=c),p})({initialState:i.useMemo((()=>({expandedById:Object.assign(Object.assign({},c.expandedById),null===a||void 0===a?void 0:a.expandedById),selectedById:Object.assign(Object.assign({},c.selectedById),null===a||void 0===a?void 0:a.selectedById),disabledById:Object.assign(Object.assign({},c.disabledById),null===a||void 0===a?void 0:a.disabledById),activeItemId:null===a||void 0===a?void 0:a.activeItemId})),[c.disabledById,c.expandedById,c.selectedById,null===a||void 0===a?void 0:a.activeItemId,null===a||void 0===a?void 0:a.disabledById,null===a||void 0===a?void 0:a.expandedById,null===a||void 0===a?void 0:a.selectedById]),withExpandedState:s}),m=i.useMemo((()=>d?Object.assign(Object.assign({},u),d):u),[d,u]),{visibleFlattenIds:p,idToFlattenIndex:I,rootIds:v}=Q({items:e,expandedById:m.expandedById,getItemId:t});return{state:m,structure:{rootIds:v,items:e,visibleFlattenIds:p,idToFlattenIndex:I,itemsById:l,groupsState:r,itemsState:o}}},ee=({defaultValue:e=[],value:t,onUpdate:n})=>{const[s,a]=i.useState(e),d=null!==t&&void 0!==t?t:s,l=!t;return i.useMemo((()=>{const e=d.reduce(((e,t)=>(e[t]=!0,e)),{});return{value:d,selectedById:e,setSelected:t=>{const i=(e=>Object.entries(e).reduce(((e,[t,n])=>(n&&e.push(t),e)),[]))("function"===typeof t?t(e):t);l?a(i):null===n||void 0===n||n(i)},setInnerValue:l?a:void 0}}),[n,l,d])},te=(0,h.om)("tree-select"),ne=e=>i.createElement(V,Object.assign({},e.props,e.renderContainerProps)),ie=i.forwardRef((function({id:e,qa:t,title:n,placement:s,slotBeforeListBody:a,slotAfterListBody:d,size:l="m",defaultOpen:r,width:o,containerRef:u,className:m,containerClassName:f,popupClassName:y,open:h,multiple:x,popupWidth:S,popupDisablePortal:B,items:E,value:C,defaultValue:O,placeholder:j,disabled:k=!1,withExpandedState:N=!0,defaultExpandedState:R="expanded",hasClear:D,errorMessage:F,errorPlacement:P,validationState:T,onClose:$,onOpenChange:A,onUpdate:z,renderControl:M,renderItem:L=ne,renderContainer:q,mapItemDataToContentProps:_,onFocus:V,onBlur:U,getItemId:Y,onItemClick:K},Q){const X=(0,G.I)(),ie=(0,c.u)(),se=null!==e&&void 0!==e?e:ie,ae=`tree-select-popup-${se}`,de=i.useRef(null),le=i.useRef(null),re=i.useRef(null),oe=null!==u&&void 0!==u?u:re,{errorMessage:ce,errorPlacement:ue,validationState:me}=(0,J.Av)({errorMessage:F,errorPlacement:P||"outside",validationState:T}),pe=(0,c.u)(),Ie="invalid"===me,ve=Ie&&Boolean(ce)&&"outside"===ue,be=Ie&&Boolean(ce)&&"inside"===ue,ge=(0,p.N)(Q,le),{toggleOpen:fe,open:ye}=(0,v.F)({defaultOpen:r,onClose:$,onOpenChange:A,open:h}),{value:he,selectedById:xe,setSelected:Se}=ee({value:C,defaultValue:O,onUpdate:z}),Be=Z({controlledState:{selectedById:xe,setSelected:Se},items:E,getItemId:Y,defaultExpandedState:R,withExpandedState:N}),Ee=i.useMemo((()=>{if(null===K)return;return(e,t)=>{const n={id:e.id,list:Be};if(K)null===K||void 0===K||K(n,t);else{w({list:Be,multiple:x})(n,t);const i=Be.state.expandedById&&e.id in Be.state.expandedById;x||i||fe(!1)}}}),[K,Be,x,fe]);i.useLayoutEffect((()=>{var e;return ye&&(null===(e=oe.current)||void 0===e||e.focus({preventScroll:!0})),()=>Be.state.setActiveItemId(void 0)}),[ye]);const Ce=i.useCallback((()=>fe(!1)),[fe]),{focusWithinProps:Oe}=(0,I.R)({onFocusWithin:V,onBlurWithin:i.useCallback((e=>{null===U||void 0===U||U(e),Ce()}),[Ce,U])}),we={list:Be,open:ye,placeholder:j,toggleOpen:fe,clearValue:()=>Be.state.setSelected({}),ref:ge,size:l,value:he,disabled:k,id:se,activeItemId:Be.state.activeItemId,title:n,errorMessage:be?ce:void 0,errorPlacement:ue,validationState:me,hasClear:D,isErrorVisible:Ie},je=M?M(we):i.createElement(b.Y,Object.assign({},we,{selectedOptionsContent:i.Children.toArray(he.map((e=>e in Be.structure.itemsById?_(Be.structure.itemsById[e]).title:""))).join(", "),view:"normal",pin:"round-round",popupId:ae,selectId:se})),ke=Object.assign({},"max"===o&&{width:o}),Ne={};return"number"===typeof o&&(Ne.width=o),i.createElement("div",Object.assign({ref:de},Oe,{className:te(ke,m),style:Ne}),je,i.createElement(g.t,{ref:de,className:te("popup",{size:l},y),controlRef:le,width:S,placement:s,open:ye,handleClose:Ce,disablePortal:B,mobile:X,id:ae},a,i.createElement(W,{list:Be,size:l,className:te("list",f),qa:t,multiple:x,id:`list-${se}`,containerRef:oe,onItemClick:Ee,renderContainer:q,mapItemDataToContentProps:_,renderItem:null!==L&&void 0!==L?L:ne}),d),i.createElement(H.o,{errorMessage:ve?ce:null,errorMessageId:pe}))}));var se=n(28664),ae=n(43781),de=n.n(ae);function le(e,t){return!t||"object"!==typeof t||!("title"in t)||"string"!==typeof t.title||t.title.toLowerCase().includes((e||"").toLowerCase())}function re({items:e,initialFilterValue:t="",filterItem:n,onFilterChange:s,filterItems:a,debounceTimeout:d=300}){const l=i.useRef(null),[r,o]=i.useState(t),[c,u]=i.useState(e),[m,p]=i.useState(e),I=i.useCallback(((e,t)=>{if(a)return()=>a(e,t);if(e){const i=n||le;return()=>function(e,t){const n=(e,i)=>{if(B(i)&&i.children){const s=i.children.reduce(n,[]);s.length?e.push(Object.assign(Object.assign({},i),{data:i.data,children:s})):t(i.data)&&e.push(Object.assign(Object.assign({},i),{data:i.data,children:[]}))}else if(B(i)&&t(i.data)){const{children:t}=i,n=(0,f.Tt)(i,["children"]);e.push(n)}else!B(i)&&t(i)&&e.push(i);return e};return e.reduce(n,[])}(t,(t=>i(e,t)))}return()=>t}),[n,a]);e!==c&&(p(I(r,e)),u(e));const v=i.useCallback(de()((t=>p(I(t,e))),d),[p,I,e,d]),{onFilterUpdate:b,reset:g}=i.useMemo((()=>({reset:()=>{o(t),null===s||void 0===s||s(t),v(t)},onFilterUpdate:e=>{o(e),null===s||void 0===s||s(e),v(e)}})),[v,t,s]);return{filterRef:l,filter:r,reset:g,items:m,onFilterUpdate:b}}var oe=n(72837);const ce=JSON.parse('{"button_apply":"Apply","button_reset":"Reset","button_switcher":"Columns"}'),ue=JSON.parse('{"button_apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c","button_reset":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),me=(0,oe.N)({en:ce,ru:ue},"TableColumnSetupInner"),pe=(0,h.om)("inner-table-column-setup"),Ie=pe("controls"),ve=pe("filter-input"),be=pe("empty-placeholder"),ge={isDragDisabled:!0},fe=e=>({title:e.title}),ye=(e,t)=>"string"!==typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),he=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:p,items:I,onUpdate:v,sortable:b,renderControls:g,className:f,defaultItems:h=I,showResetButton:x,filterable:B,filterPlaceholder:E,filterEmptyMessage:C,filterSettings:O=ye}=e,[w,j]=i.useState(!1),[k,N]=i.useState(b),[R,D]=i.useState(b);b!==R&&(D(b),N(b));const[F,P]=i.useState(I),[T,$]=i.useState(I);I!==T&&($(I),P(I));const A=re({items:F,filterItem:O,debounceTimeout:0}),z=()=>{const e=F.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));v(e),U(!1)},M=()=>i.createElement(a.$,{view:"action",width:"max",onClick:z},me("button_apply")),L="function"===typeof x?x(F):x,q=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.u)();return({renderItem:s,list:a,containerRef:d,id:l,className:r})=>{const{stickyStartItemIdList:c,sortableItemIdList:u,stickyEndItemIdList:m}=((e,t)=>{let n=0;for(;n!==t.length;n++){const i=e[t[n]];if("left"!==(null===i||void 0===i?void 0:i.sticky)&&"start"!==(null===i||void 0===i?void 0:i.sticky))break}let i=t.length;for(;0!==i;i--){const n=e[t[i-1]];if("right"!==(null===n||void 0===n?void 0:n.sticky)&&"end"!==(null===n||void 0===n?void 0:n.sticky))break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,i),stickyEndItemIdList:t.slice(i)}})(a.structure.itemsById,a.structure.visibleFlattenIds),p=c.map(((e,t)=>s(e,t,ge))),I=u.map(((e,t)=>s(e,t+c.length))),v=m.map(((e,t)=>s(e,p.length+I.length+t,ge)));return i.createElement(i.Fragment,null,i.createElement(S,{ref:d,id:l,className:r},p,i.createElement(o.JY,{onDragEnd:e},i.createElement(o.gL,{droppableId:n,renderClone:(e,t,n)=>{const i={provided:e,snapshot:t};return s(a.structure.visibleFlattenIds[n.source.index],n.source.index,i)}},(e=>i.createElement("div",Object.assign({},e.droppableProps,{ref:e.innerRef}),I,e.placeholder)))),v),i.createElement("div",{className:Ie},t()))}})({onDragEnd:({destination:e,source:t})=>{void 0!==(null===e||void 0===e?void 0:e.index)&&(null===e||void 0===e?void 0:e.index)!==t.index&&P((n=>((e,t,n)=>{const i=[...e],[s]=i.splice(t,1);return i.splice(n,0,s),i})(n,t.index,e.index)))},renderControls:()=>g?g({DefaultApplyButton:M,onApply:z}):i.createElement(y.s,{gapRow:1,direction:"column",className:Ie},L&&i.createElement(a.$,{onClick:()=>{P(h)},width:"max"},me("button_reset")),i.createElement(M,null))}),_=(e=>({data:t,props:n,index:s,renderContainerProps:a})=>{const c=!1===e||!0===(null===a||void 0===a?void 0:a.isDragDisabled),u=c?void 0:i.createElement(d.I,{data:l.A,size:16}),m=t.isRequired?i.createElement(d.I,{data:r}):void 0,p=!t.isRequired&&n.selected,I=Object.assign(Object.assign({},n),{selected:p,selectionViewType:t.isRequired?"single":"multiple",content:Object.assign(Object.assign({},n.content),{startSlot:m,endSlot:u})});if(c)return i.createElement(V,Object.assign({},I,{key:I.id}));const v=(e,t)=>i.createElement(V,Object.assign({},I,e.draggableProps,e.dragHandleProps,{ref:e.innerRef,dragging:t.isDragging}));return(null===a||void 0===a?void 0:a.provided)&&a.snapshot?v(a.provided,a.snapshot):i.createElement(o.sx,{draggableId:n.id,index:s,key:`item-key-${n.id}`,isDragDisabled:c},v)})(k),U=e=>{j(e),!1===e&&(P(I),N(b),A.reset())},W=i.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(F)),[F]),H=(J=C,()=>i.createElement(m.E,{className:be},J));var J;const G=B?i.createElement(se.k,{size:"m",view:"clear",placeholder:E,value:A.filter,className:ve,onUpdate:e=>{A.onFilterUpdate(e),N(!e.length)},hasClear:!0}):null,Y=A.filter&&!A.items.length?H:q;return i.createElement(ie,{className:pe(null,f),mapItemDataToContentProps:fe,multiple:!0,size:"l",open:w,value:W,items:A.filter?A.items:F,onUpdate:e=>{P((t=>t.map((t=>Object.assign(Object.assign({},t),{isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:U,placement:p,slotBeforeListBody:G,renderContainer:Y,renderControl:({toggleOpen:e})=>{const n=(0,u.h)(e);return(null===t||void 0===t?void 0:t({onClick:e,onKeyDown:n}))||i.createElement(a.$,{onClick:e,extraProps:{onKeyDown:n}},i.createElement(d.I,{data:s.A}),me("button_switcher"))},renderItem:_})},xe=JSON.parse('{"button_switcher":"Columns"}'),Se=JSON.parse('{"button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),Be=(0,oe.N)({en:xe,ru:Se},"TableColumnSetup"),Ee=(0,h.om)("table-column-setup"),Ce=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:r,popupPlacement:o,className:c,items:u,sortable:m=!0,showStatus:p,onUpdate:I}=e,v=u.map((({id:e,title:t,required:n,selected:i,sticky:s})=>({id:e,title:t,isRequired:n,isSelected:i,sticky:s})));return i.createElement(he,{items:v,onUpdate:e=>{I(e.map((({id:e,isSelected:t})=>{const n=u.find((t=>t.id===e));return{id:e,selected:t,title:null===n||void 0===n?void 0:n.title,required:null===n||void 0===n?void 0:n.required}})))},popupPlacement:o,popupWidth:r,renderSwitcher:e=>(null===n||void 0===n?void 0:n(e))||t||i.createElement(a.$,{disabled:l,onClick:e.onClick},i.createElement(d.I,{data:s.A}),Be("button_switcher"),(()=>{if(!p)return null;const e=`${u.reduce(((e,t)=>t.selected?e+1:e),0)}/${u.length}`;return i.createElement("span",{className:Ee("status")},e)})()),sortable:m,className:Ee(null,c)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/24349.ff3855f6.chunk.js b/ydb/core/viewer/monitoring/static/js/24349.ff3855f6.chunk.js new file mode 100644 index 0000000000..9b30d3fa01 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/24349.ff3855f6.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[24349],{24349:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-tn",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekStart:1,weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/24458.50eb1325.chunk.js b/ydb/core/viewer/monitoring/static/js/24458.50eb1325.chunk.js new file mode 100644 index 0000000000..f38e7a6381 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/24458.50eb1325.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[24458],{24458:(e,t,r)=>{r.d(t,{default:()=>n});var a=r(31687);const n=r.n(a)()},31687:(e,t,r)=>{var a=r(89343);function n(e){e.register(a),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}e.exports=n,n.displayName="hlsl",n.aliases=[]},89343:e=>{function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/245.041a06df.chunk.js b/ydb/core/viewer/monitoring/static/js/245.041a06df.chunk.js deleted file mode 100644 index 8798b9f3b8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/245.041a06df.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[245],{50245:(e,t,n)=>{n.d(t,{registerYQLCompletionItemProvider:()=>J});var i=n(80781),s=n(92727);const o={suggestTemplates:0,suggestPragmas:1,suggestEntity:2,suggestAllColumns:3,suggestColumns:4,suggestColumnAliases:5,suggestVariables:6,suggestTableIndexes:7,suggestTableHints:8,suggestEntitySettings:9,suggestKeywords:10,suggestAggregateFunctions:11,suggestTableFunctions:12,suggestWindowFunctions:13,suggestFunctions:14,suggestSimpleTypes:15,suggestUdfs:16};function a(e){return o[e]}const r="abcdefghijklmnopqrstuvwxyz";function l(e){const t=r[e];if(t)return t;const n=Math.floor(e/26),i=e%26;return r.slice(-1).repeat(n)+r[i]}function u(e){return e.startsWith("$")}function c(e=[]){return Array.from(new Set(e))}const m=/[\s'"-/@]/;function g(e){if(e.startsWith("`")&&e.endsWith("`"))return e;let t=e;return e.match(m)&&(t=`\`${e}\``),t}function d(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function T(e,t){const n=e.slice(0,t).split("\n");return{lineNumber:n.length,column:n[n.length-1].length+1}}const p=/([^\s]+)$/;function S(e,t,n=p){const i=e.slice(0,t).match(n);return i&&i[1]?i[1]:""}const I=/([^\\/\s`]+)$/;class h{constructor({getQueryParser:e,getUdfs:t,getSimpleTypes:n,getPragmas:i,getWindowFunctions:s,getTableFunctions:o,getAggregateFunctions:a,getSimpleFunctions:r,getEntitySettings:l,fetchEntities:u,fetchEntityColumns:c}){e&&(this.getQueryParser=e),t&&(this.getUdfs=t),n&&(this.getSimpleTypes=n),i&&(this.getPragmas=i),s&&(this.getWindowFunctions=s),o&&(this.getTableFunctions=o),a&&(this.getAggregateFunctions=a),r&&(this.getSimpleFunctions=r),l&&(this.getEntitySettings=l),u&&(this.fetchEntities=u),c&&(this.fetchEntityColumns=c)}async getSuggestions(e,t){const n=await this.parseInput(e,t);let i=[],o=[],r=[],m=[],p=[],h=[],y=[],f=[],C=[],A=[],b=[];const L=function(e,t){const n=T(e,t),i=S(e,t,I);return{startColumn:n.column-i.length,startLineNumber:n.lineNumber,endColumn:n.column,endLineNumber:n.lineNumber}}(e,t),D=S(e,t);if(n.suggestSimpleTypes){const e=await this.getSimpleTypes(D);y=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.TypeParameter,detail:"Type",range:e,sortText:l(a("suggestSimpleTypes"))})))}(L,e)}if(n.suggestEntity){const e=await this.fetchEntities(D,n.suggestEntity);i=await async function(e,t,n=""){const i=null===n||void 0===n?void 0:n.startsWith("`");return t.reduce(((t,{value:n,detail:o,isDir:r})=>{const u=r?`${n}/`:n;let c;r&&!i&&(c=`\`${u}$0\``);const m=t.length;return t.push({label:u,insertText:null!==c&&void 0!==c?c:u,kind:r?s.eo.CompletionItemKind.Folder:s.eo.CompletionItemKind.Text,insertTextRules:c?s.eo.CompletionItemInsertTextRule.InsertAsSnippet:s.eo.CompletionItemInsertTextRule.None,detail:o,range:e,command:u.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:l(a("suggestEntity"))+l(m)}),t}),[])}(L,e,D)}if(n.suggestVariables&&(b=function(e,t=[]){return t.map((({name:t})=>{const n="$"+t;return{label:n,insertText:n,kind:s.eo.CompletionItemKind.Variable,detail:"Variable",range:e,sortText:l(a("suggestVariables"))}}))}(L,n.suggestVariables)),n.suggestFunctions){const e=await this.getSimpleFunctions(D);o=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Function",range:e,sortText:l(a("suggestFunctions"))})))}(L,e)}if(n.suggestAggregateFunctions){const e=await this.getAggregateFunctions(D);r=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Aggregate function",range:e,sortText:l(a("suggestAggregateFunctions"))})))}(L,e)}if(n.suggestWindowFunctions){const e=await this.getWindowFunctions(D);m=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Window function",range:e,sortText:l(a("suggestWindowFunctions"))})))}(L,e)}if(n.suggestTableFunctions){const e=await this.getTableFunctions(D);p=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Table function",range:e,sortText:l(a("suggestTableFunctions"))})))}(L,e)}if(n.suggestUdfs){const e=await this.getUdfs(D);h=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"UDF",range:e,sortText:l(a("suggestUdfs"))})))}(L,e)}if(n.suggestPragmas){const e=await this.getPragmas(D);f=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Module,detail:"Pragma",range:e,sortText:l(a("suggestPragmas"))})))}(L,e)}if(n.suggestEntitySettings){const e=await this.getEntitySettings(n.suggestEntitySettings);C=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Property,detail:"Setting",range:e,sortText:l(a("suggestEntitySettings"))})))}(L,e)}const F=function(e,t=[]){return t.map((t=>({label:t.value,insertText:t.value,kind:s.eo.CompletionItemKind.Keyword,detail:"Keyword",range:e,sortText:l(a("suggestKeywords"))})))}(L,n.suggestKeywords),v=await function(e,t=[]){return t.map((t=>({label:t.name,insertText:t.name,kind:s.eo.CompletionItemKind.Variable,detail:"Column alias",range:e,sortText:l(a("suggestColumnAliases"))})))}(L,n.suggestColumnAliases);if(n.suggestColumns){const e=function(e){var t;return c(null===(t=null===e||void 0===e?void 0:e.tables)||void 0===t?void 0:t.map((e=>e.name))).filter((e=>!u(e)))}(n.suggestColumns),t=await this.fetchEntityColumns(e);A=await async function(e,t,n,i){var o;if(!(null===t||void 0===t?void 0:t.tables))return[];const r=[],m=t.all?[]:void 0,T=t.tables.length>1,p=c(t.tables.map((e=>e.name))).filter(u),S=[];p.length&&p.forEach((e=>{var t,i,s,o;const a=null!==(o=null===(s=null===(i=null===(t=null===n||void 0===n?void 0:n.find((t=>e.slice(1)===t.name)))||void 0===t?void 0:t.value)||void 0===i?void 0:i.columns)||void 0===s?void 0:s.map((t=>({name:t,parent:e}))))&&void 0!==o?o:[];S.push(...a)}));const I=t.tables.reduce(((e,t)=>{const n=t.columns;return n&&e.push(...n.map((e=>({name:e,parent:t.name})))),e}),[]),h=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var n;const i=d(t.name),s=null!==(n=e[i])&&void 0!==n?n:[];return t.alias&&s.push(t.alias),e[i]=s,e}),{});if([...i,...S,...I].forEach((t=>{const n=g(t.name),i=h[d(t.parent)],o=r.length;if(null===i||void 0===i?void 0:i.length)i.forEach((i=>{const u=`${i}.${n}`;r.push({label:{label:u,description:t.detail},insertText:u,kind:s.eo.CompletionItemKind.Variable,detail:"Column",range:e,sortText:l(a("suggestColumns"))+l(o)}),null===m||void 0===m||m.push(u)}));else{let i=n;T&&(i=`${g(t.parent)}.${n}`),r.push({label:{label:i,description:t.detail},insertText:i,kind:s.eo.CompletionItemKind.Variable,detail:"Column",range:e,sortText:l(a("suggestColumns"))+l(o)}),null===m||void 0===m||m.push(i)}})),m&&m.length>1){const t=m.join(", ");r.push({label:t,insertText:t,kind:s.eo.CompletionItemKind.Variable,range:e,sortText:l(a("suggestAllColumns"))})}return r}(L,n.suggestColumns,n.suggestVariables,t)}return[...i,...o,...m,...p,...h,...y,...f,...v,...A,...F,...r,...C,...b]}async parseInput(e,t){const n=T(e,t);return(await this.getQueryParser())(e,{line:n.lineNumber,column:n.column})}async getQueryParser(){const{parseYqlQuery:e}=await Promise.resolve().then(n.bind(n,41614));return e}async getSimpleTypes(e){return[]}async getUdfs(e){return[]}async getPragmas(e){return[]}async getWindowFunctions(e){return[]}async getTableFunctions(e){return[]}async getAggregateFunctions(e){return[]}async getSimpleFunctions(e){return[]}async getEntitySettings(e){return[]}async fetchEntities(e,t){return[]}async fetchEntityColumns(e){return[]}}function y(e={}){const t=new h(e);return async(e,n,i,s)=>({suggestions:await t.getSuggestions(e.getValue(),e.getOffsetAt(n))})}const f=new Map;function C(e,t,n){!function(e){const t=f.get(e);t&&t.dispose()}(e);const s=i.languages.registerCompletionItemProvider(e,{triggerCharacters:t,provideCompletionItems:y(n)});f.set(e,s)}var A=n(23195);const b=["Text","Bytes","String","Bool","Int32","Uint32","Int64","Uint64","Float","Double","Void","Yson","Utf8","Unit","Json","Date","Datetime","Timestamp","Interval","Date32","Datetime64","Timestamp64","Interval64","TzDate32","TzDatetime64","TzTimestamp64","Null","Int8","Uint8","Int16","Uint16","TzDate","TzDatetime","TzTimestamp","Uuid","EmptyList","EmptyDict","JsonDocument","DyNumber"],L=["CAST","COALESCE","LENGTH","LEN","SUBSTRING","FIND","RFIND","StartsWith","EndsWith","IF","NANVL","Random","RandomNumber","RandomUuid","CurrentUtcDate","CurrentUtcDatetime","CurrentUtcTimestamp","CurrentTzDate","CurrentTzDatetime","CurrentTzTimestamp","AddTimezone","RemoveTimezone","MAX_OF","MIN_OF","GREATEST","LEAST","AsTuple","AsStruct","AsList","AsDict","AsSet","AsListStrict","AsDictStrict","AsSetStrict","Variant","AsVariant","Enum","AsEnum","AsTagged","Untag","TableRow","JoinTableRow","Ensure","EnsureType","EnsureConvertibleTo","ToBytes","FromBytes","ByteAt","TestBit","ClearBit","SetBit","FlipBit","Abs","Just","Unwrap","Nothing","Callable","StaticMap","StaticZip","ListCreate","AsListStrict","ListLength","ListHasItems","ListCollect","ListSort","ListSortAsc","ListSortDesc","ListExtend","ListExtendStrict","ListUnionAll","ListZip","ListZipAll","ListEnumerate","ListReverse","ListSkip","ListTake","ListIndexOf","ListMap","ListFilter","ListFlatMap","ListNotNull","ListFlatten","ListUniq","ListAny","ListAll","ListHas","ListHead","ListLast","ListMin","ListMax","ListSum","ListAvg","ListFold","ListFold1","ListFoldMap","ListFold1Map","ListFromRange","ListReplicate","ListConcat","ListExtract","ListTakeWhile","ListSkipWhile","ListAggregate","ToDict","ToMultiDict","ToSet","DictCreate","SetCreate","DictLength","DictHasItems","DictItems","DictKeys","DictPayloads","DictLookup","DictContains","DictAggregate","SetIsDisjoint","SetIntersection","SetIncludes","SetUnion","SetDifference","SetSymmetricDifference","TryMember","ExpandStruct","AddMember","RemoveMember","ForceRemoveMember","ChooseMembers","RemoveMembers","ForceRemoveMembers","CombineMembers","FlattenMembers","StructMembers","RenameMembers","ForceRenameMembers","GatherMembers","SpreadMembers","ForceSpreadMembers","FormatType","ParseType","TypeOf","InstanceOf","DataType","OptionalType","ListType","StreamType","DictType","TupleType","StructType","VariantType","ResourceType","CallableType","GenericType","UnitType","VoidType","OptionalItemType","ListItemType","StreamItemType","DictKeyType","DictPayloadType","TupleElementType","StructMemberType","CallableResultType","CallableArgumentType","VariantUnderlyingType","JSON_EXISTS","JSON_VALUE","JSON_QUERY"],D=["COUNT","MIN","MAX","SUM","AVG","COUNT_IF","SUM_IF","AVG_IF","SOME","CountDistinctEstimate","HyperLogLog","AGGREGATE_LIST","AGGREGATE_LIST_DISTINCT","AGG_LIST","AGG_LIST_DISTINCT","MAX_BY","MIN_BY","AGGREGATE_BY","MULTI_AGGREGATE_BY","TOP","BOTTOM","TOP_BY","BOTTOM_BY","TOPFREQ","MODE","STDDEV","VARIANCE","CORRELATION","COVARIANCE","PERCENTILE","MEDIAN","HISTOGRAM","LogarithmicHistogram","LogHistogram","LinearHistogram","BOOL_AND","BOOL_OR","BOOL_XOR","BIT_AND","BIT_OR","BIT_XOR","SessionStart"],F=Object.entries({DateTime:["EndOfMonth","Format","FromMicroseconds","FromMilliseconds","FromSeconds","GetDayOfMonth","GetDayOfWeek","GetDayOfWeekName","GetDayOfYear","GetHour","GetMicrosecondOfSecond","GetMillisecondOfSecond","GetMinute","GetMonth","GetMonthName","GetSecond","GetTimezoneId","GetTimezoneName","GetWeekOfYear","GetWeekOfYearIso8601","GetYear","IntervalFromDays","IntervalFromHours","IntervalFromMicroseconds","IntervalFromMilliseconds","IntervalFromMinutes","IntervalFromSeconds","MakeDate","MakeDatetime","MakeTimestamp","MakeTzDate","MakeTzDatetime","MakeTzTimestamp","Parse","ParseHttp","ParseIso8601","ParseRfc822","ParseX509","ShiftMonths","ShiftQuarters","ShiftYears","Split","StartOf","StartOfDay","StartOfMonth","StartOfQuarter","StartOfWeek","StartOfYear","TimeOfDay","ToDays","ToHours","ToMicroseconds","ToMilliseconds","ToMinutes","ToSeconds","Update"],Dsv:["Parse","ReadRecord","Serialize"],String:["AsciiToLower","AsciiToTitle","AsciiToUpper","Base32Decode","Base32Encode","Base32StrictDecode","Base64Decode","Base64Encode","Base64EncodeUrl","Base64StrictDecode","Bin","BinText","CgiEscape","CgiUnescape","Collapse","CollapseText","Contains","DecodeHtml","EncodeHtml","EndsWith","EndsWithIgnoreCase","EscapeC","FromByteList","HasPrefix","HasPrefixIgnoreCase","HasSuffix","HasSuffixIgnoreCase","Hex","HexDecode","HexEncode","HexText","HumanReadableBytes","HumanReadableDuration","HumanReadableQuantity","IsAscii","IsAsciiAlnum","IsAsciiAlpha","IsAsciiDigit","IsAsciiHex","IsAsciiLower","IsAsciiSpace","IsAsciiUpper","JoinFromList","LeftPad","LevensteinDistance","Prec","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","RightPad","SBin","SHex","SplitToList","StartsWith","StartsWithIgnoreCase","Strip","ToByteList","UnescapeC"],Unicode:["Find","Fold","FromCodePointList","GetLength","IsAlnum","IsAlpha","IsAscii","IsDigit","IsHex","IsLower","IsSpace","IsUnicodeSet","IsUpper","IsUtf","JoinFromList","LevensteinDistance","Normalize","NormalizeNFC","NormalizeNFD","NormalizeNFKC","NormalizeNFKD","RFind","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","Reverse","SplitToList","Strip","Substring","ToCodePointList","ToLower","ToTitle","ToUint64","ToUpper","Translit","TryToUint64"],Url:["BuildQueryString","CanBePunycodeHostName","CutQueryStringAndFragment","CutScheme","CutWWW","CutWWW2","Decode","Encode","ForceHostNameToPunycode","ForcePunycodeToHostName","GetCGIParam","GetDomain","GetDomainLevel","GetFragment","GetHost","GetHostPort","GetOwner","GetPath","GetPort","GetScheme","GetSchemeHost","GetSchemeHostPort","GetSignificantDomain","GetTLD","GetTail","HostNameToPunycode","IsAllowedByRobotsTxt","IsKnownTLD","IsWellKnownTLD","Normalize","NormalizeWithDefaultHttpScheme","Parse","PunycodeToHostName","QueryStringToDict","QueryStringToList"],Yson:["Attributes","Contains","ConvertTo","ConvertToBool","ConvertToBoolDict","ConvertToBoolList","ConvertToDict","ConvertToDouble","ConvertToDoubleDict","ConvertToDoubleList","ConvertToInt64","ConvertToInt64Dict","ConvertToInt64List","ConvertToList","ConvertToString","ConvertToStringDict","ConvertToStringList","ConvertToUint64","ConvertToUint64Dict","ConvertToUint64List","Equals","From","GetHash","GetLength","IsBool","IsDict","IsDouble","IsEntity","IsInt64","IsList","IsString","IsUint64","Lookup","LookupBool","LookupDict","LookupDouble","LookupInt64","LookupList","LookupString","LookupUint64","Options","Parse","ParseJson","ParseJsonDecodeUtf8","Serialize","SerializeJson","SerializePretty","SerializeText","WithAttributes","YPath","YPathBool","YPathDict","YPathDouble","YPathInt64","YPathList","YPathString","YPathUint64"],HyperLogLog:["AddValue","Create","Deserialize","GetResult","Merge","Serialize"],Hyperscan:["BacktrackingGrep","BacktrackingMatch","Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Ip:["ConvertToIPv6","FromString","GetSubnet","GetSubnetByMask","IsEmbeddedIPv4","IsIPv4","IsIPv6","SubnetFromString","SubnetMatch","SubnetToString","ToFixedIPv6String","ToString"],Json:["BoolAsJsonNode","CompilePath","DoubleAsJsonNode","JsonAsJsonNode","JsonDocumentSqlExists","JsonDocumentSqlQuery","JsonDocumentSqlQueryConditionalWrap","JsonDocumentSqlQueryWrap","JsonDocumentSqlTryExists","JsonDocumentSqlValueBool","JsonDocumentSqlValueConvertToUtf8","JsonDocumentSqlValueInt64","JsonDocumentSqlValueNumber","JsonDocumentSqlValueUtf8","Parse","Serialize","SerializeToJsonDocument","SqlExists","SqlQuery","SqlQueryConditionalWrap","SqlQueryWrap","SqlTryExists","SqlValueBool","SqlValueConvertToUtf8","SqlValueInt64","SqlValueNumber","SqlValueUtf8","Utf8AsJsonNode"],Math:["Abs","Acos","Asin","Asinh","Atan","Atan2","Cbrt","Ceil","Cos","Cosh","E","Eps","Erf","ErfInv","ErfcInv","Exp","Exp2","Fabs","Floor","Fmod","FuzzyEquals","Hypot","IsFinite","IsInf","IsNaN","Ldexp","Lgamma","Log","Log10","Log2","Mod","NearbyInt","Pi","Pow","Rem","Remainder","Rint","Round","RoundDownward","RoundToNearest","RoundTowardZero","RoundUpward","Sigmoid","Sin","Sinh","Sqrt","Tan","Tanh","Tgamma","Trunc"],Pire:["Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Re2:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Re2posix:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Digest:["Argon2","Blake2B","CityHash","CityHash128","Crc32c","Crc64","FarmHashFingerprint","FarmHashFingerprint128","FarmHashFingerprint2","FarmHashFingerprint32","FarmHashFingerprint64","Fnv32","Fnv64","HighwayHash","IntHash64","Md5HalfMix","Md5Hex","Md5Raw","MurMurHash","MurMurHash2A","MurMurHash2A32","MurMurHash32","NumericHash","Sha1","Sha256","SipHash","SuperFastHash","XXH3","XXH3_128"],Histogram:["CalcLowerBound","CalcLowerBoundSafe","CalcUpperBound","CalcUpperBoundSafe","GetSumAboveBound","GetSumBelowBound","GetSumInRange","Normalize","Print","ToCumulativeDistributionFunction"]}).reduce(((e,[t,n])=>{const i=n.map((e=>`${t}::${e}`));return e.concat(i)}),[]),v=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],E=[],R=["TablePathPrefix","Warning"],M={table:["AUTO_PARTITIONING_BY_SIZE","AUTO_PARTITIONING_PARTITION_SIZE_MB","AUTO_PARTITIONING_BY_LOAD","AUTO_PARTITIONING_MIN_PARTITIONS_COUNT","AUTO_PARTITIONING_MAX_PARTITIONS_COUNT","UNIFORM_PARTITIONS","READ_REPLICAS_SETTINGS","TTL","KEY_BLOOM_FILTER","STORE"],view:["security_invoker"],topic:["min_active_partitions","partition_count_limit","retention_period","retention_storage_mb","partition_write_speed_bytes_per_second","partition_write_burst_bytes","metering_mode"],object:[],user:[],group:[],externalDataSource:[],externalTable:[],tableStore:[],replication:["ENDPOINT","DATABASE","USER","PASSWORD"],tableIndex:[],topicConsumer:["important","read_from"]},N={externalDataSource:["external_data_source"],externalTable:["external_table"],replication:["replication"],table:["table","column_table"],tableStore:["column_store"],topic:["pers_queue_group"],view:["view"],tableIndex:["table_index","index"]},P=["dir","unknown","ext_sub_domain"],_=["dir","ext_sub_domain"];function x(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function O(e){return e.startsWith("/")?e.slice(1):e}async function w(){return L}async function G(){return v}async function U(){return E}async function B(){return D}async function H(){return R}async function k(e){return M[e]}async function W(){return F}async function V(){return b}function z(e){const{PKIndex:t,NotNull:n,Default:i}=e,s=[];void 0!==t&&s.push(`PK${t}`),n&&s.push("NN"),i&&s.push("Default");return s.length?s.join(", "):""}function K(e,t){var n;return null!==(n=e.map((e=>{let n=x(e);return n.endsWith("/")||(n=`${n}/`),function(e="",t){const n=x(e);if(!n.startsWith("/"))return n;let i=O(n);const s=O(t);return i.startsWith(s)&&(i=i.slice(s.length)),O(i)}(n,t)})))&&void 0!==n?n:[]}function J(e){C(A.l,[" ",".","`","(","/"],{fetchEntities:async(t,n)=>{var i;const s=await window.api.viewer.autocomplete({database:e,prefix:x(t),limit:1e3});if(!s.Success||!s.Result.Entities)return[];const o=function(e,t){const n=t.reduce(((e,t)=>{const n=N[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(P));return null===e||void 0===e?void 0:e.filter((({Type:e})=>n.has(e)))}(s.Result.Entities,n);return null!==(i=null===o||void 0===o?void 0:o.map((({Name:e,Type:t})=>{return{value:e,detail:t,isDir:(n=t,_.includes(n))};var n})))&&void 0!==i?i:[]},fetchEntityColumns:async t=>{let n=[];const i=K(t,e),s=await window.api.viewer.autocomplete({database:e,table:i,limit:1e3});var o;s.Success&&(n=null!==(o=s.Result.Entities)&&void 0!==o?o:[]);const a=[];return n.forEach((e=>{(function(e){return"column"===e.Type})(e)&&a.push({name:e.Name,detail:z(e),parent:e.Parent})})),a},getEntitySettings:k,getPragmas:H,getSimpleFunctions:w,getAggregateFunctions:B,getTableFunctions:U,getWindowFunctions:G,getUdfs:W,getSimpleTypes:V})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/24534.3cac028e.chunk.js b/ydb/core/viewer/monitoring/static/js/24534.3cac028e.chunk.js new file mode 100644 index 0000000000..ab502d603e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/24534.3cac028e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 24534.3cac028e.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[24534],{24534:(e,i,t)=>{t.r(i),t.d(i,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/24534.3cac028e.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/24534.3cac028e.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js b/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js deleted file mode 100644 index 1e02b6bb88..0000000000 --- a/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 246.13bb9db2.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[246],{10246:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:"keyword.flow",next:"@specialFunc"},"@mainFunctions":"keyword","@builtinFunctions":"variable","@default":"operator.scss"}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,"metatag"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,"operator"],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/\.(?!\d|\.)[\w\-]*/,"operator.sql"],[/\d+(\.\d+)?/,"number"],[/\d+/,"number"],[/;/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@dstring"}],[/'/,{token:"string.quote",bracket:"@open",next:"@sstring"}]],dstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],sstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]']+/,"string"],[/@escapes/,"string.escape"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/#.*\\$/,{token:"comment",next:"@newlineComment"}],[/#.*(?!\\)$/,"comment"]],newlineComment:[[/.*\\$/,"comment"],[/.*(?!\\)$/,{token:"comment",next:"@pop"}]],nestedVariable:[[/[^\{\}\$]+/,"type.identifier"],[/\}/,{token:"identifier",next:"@pop"}]],nestedCall:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\]/,{token:"@brackets",next:"@pop"}],{include:"root"}],specialFunc:[[/"/,{token:"string",next:"@dstring"}],[/'/,{token:"string",next:"@sstring"}],[/\S+/,{token:"type",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2466.b8b05e16.chunk.js b/ydb/core/viewer/monitoring/static/js/2466.b8b05e16.chunk.js deleted file mode 100644 index 2b7b26653d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2466.b8b05e16.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2466],{92466:function(e,o,_){e.exports=function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=o(e),s={name:"gl",weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),ordinal:function(e){return e+"\xba"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"fai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/24662.5e8417ae.chunk.js b/ydb/core/viewer/monitoring/static/js/24662.5e8417ae.chunk.js new file mode 100644 index 0000000000..d3d5bb76e5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/24662.5e8417ae.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 24662.5e8417ae.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[24662],{24662:(E,S,e)=>{e.r(S),e.d(S,{conf:()=>T,language:()=>R});var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/24662.5e8417ae.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/24662.5e8417ae.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/25007.2ae44a13.chunk.js b/ydb/core/viewer/monitoring/static/js/25007.2ae44a13.chunk.js new file mode 100644 index 0000000000..37aad67ba9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/25007.2ae44a13.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[25007],{19678:e=>{function t(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}e.exports=t,t.displayName="autoit",t.aliases=[]},25007:(e,t,n)=>{n.d(t,{default:()=>a});var i=n(19678);const a=n.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/25101.06af1360.chunk.js b/ydb/core/viewer/monitoring/static/js/25101.06af1360.chunk.js new file mode 100644 index 0000000000..4bd0c7dbcc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/25101.06af1360.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[25101],{11348:E=>{function T(E){E.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}E.exports=T,T.displayName="n1ql",T.aliases=[]},25101:(E,T,N)=>{N.d(T,{default:()=>I});var R=N(11348);const I=N.n(R)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js b/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js deleted file mode 100644 index 9912ff589d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2518.ac97d255.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2518],{52518:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>o});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/25453.c8bfcbe1.chunk.js b/ydb/core/viewer/monitoring/static/js/25453.c8bfcbe1.chunk.js new file mode 100644 index 0000000000..8360cb4df8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/25453.c8bfcbe1.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[25453],{25453:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"mk",weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),weekStart:1,weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),ordinal:function(_){return _},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/25604.54cb85d0.chunk.js b/ydb/core/viewer/monitoring/static/js/25604.54cb85d0.chunk.js new file mode 100644 index 0000000000..daf47c5467 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/25604.54cb85d0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[25604],{25604:(e,t,i)=>{i.d(t,{default:()=>n});var a=i(99475);const n=i.n(a)()},99475:e=>{function t(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,i=0;i<2;i++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,(function(){return t}))),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}e.exports=t,t.displayName="coq",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/25636.358f92b4.chunk.js b/ydb/core/viewer/monitoring/static/js/25636.358f92b4.chunk.js new file mode 100644 index 0000000000..e459fc7c94 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/25636.358f92b4.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 25636.358f92b4.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[25636],{25636:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>s});var i={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},s={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/25636.358f92b4.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/25636.358f92b4.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/2568.5bec7af3.chunk.js b/ydb/core/viewer/monitoring/static/js/2568.5bec7af3.chunk.js deleted file mode 100644 index 8edd3dadb6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2568.5bec7af3.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2568],{72568:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},r={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"},d={name:"bn-bd",weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekStart:0,preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(_){return r[_]}))},postformat:function(_){return _.replace(/\d/g,(function(_){return n[_]}))},ordinal:function(_){var e=["\u0987","\u09b2\u09be","\u09b0\u09be","\u09a0\u09be","\u09b6\u09c7"],t=_%100;return"["+_+(e[(t-20)%10]||e[t]||e[0])+"]"},formats:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6",LL:"D MMMM YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6",LLL:"D MMMM YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6, A h:mm \u09b8\u09ae\u09df"},meridiem:function(_){return _<4?"\u09b0\u09be\u09a4":_<6?"\u09ad\u09cb\u09b0":_<12?"\u09b8\u0995\u09be\u09b2":_<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<18?"\u09ac\u09bf\u0995\u09be\u09b2":_<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2612.55127fa0.chunk.js b/ydb/core/viewer/monitoring/static/js/2612.55127fa0.chunk.js deleted file mode 100644 index af61f07a55..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2612.55127fa0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2612],{42612:function(t,h,_){t.exports=function(t){"use strict";function h(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var _=h(t),n={name:"vi",weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26214.42be0c73.chunk.js b/ydb/core/viewer/monitoring/static/js/26214.42be0c73.chunk.js new file mode 100644 index 0000000000..0f4a0d80cc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26214.42be0c73.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 26214.42be0c73.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26214],{26214:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>m});var o,i,s=n(80781),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,a=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))p.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=d(t,i))||o.enumerable});return e},k={};a(k,o=s,"default"),i&&a(i,o,"default");var l={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"\u201c",close:"\u201d"},{open:"\u2018",close:"\u2019"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:k.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:k.languages.IndentAction.Outdent}},...Array.from({length:100},((e,t)=>({beforeText:new RegExp(`^${t}\\. .+`),action:{indentAction:k.languages.IndentAction.None,appendText:`${t+1}. `}})))]},m={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/26214.42be0c73.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/26214.42be0c73.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/2626.a5b0d58c.chunk.js b/ydb/core/viewer/monitoring/static/js/2626.a5b0d58c.chunk.js deleted file mode 100644 index 84cf1f1e72..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2626.a5b0d58c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2626],{22626:function(e,_,t){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),a={name:"bs",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(a,null,!0),a}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26324.10b41523.chunk.js b/ydb/core/viewer/monitoring/static/js/26324.10b41523.chunk.js new file mode 100644 index 0000000000..aafcb37081 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26324.10b41523.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26324],{26324:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),t={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26327.62bdac9a.chunk.js b/ydb/core/viewer/monitoring/static/js/26327.62bdac9a.chunk.js new file mode 100644 index 0000000000..aeb4a7b46b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26327.62bdac9a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26327],{3899:e=>{function a(e){!function(e){var a=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(a,"addSupport",{value:function(a,t){"string"===typeof a&&(a=[a]),a.forEach((function(a){!function(a,t){var n="doc-comment",i=e.languages[a];if(i){var s=i[n];if(!s){var r={};r[n]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},s=(i=e.languages.insertBefore(a,"comment",r))[n]}if(s instanceof RegExp&&(s=i[n]={pattern:s}),Array.isArray(s))for(var o=0,l=s.length;o<l;o++)s[o]instanceof RegExp&&(s[o]={pattern:s[o]}),t(s[o]);else t(s)}}(a,(function(e){e.inside||(e.inside={}),e.inside.rest=t}))}))}}),a.addSupport(["java","javascript","php"],a)}(e)}e.exports=a,a.displayName="javadoclike",a.aliases=[]},26327:(e,a,t)=>{t.d(a,{default:()=>i});var n=t(40242);const i=t.n(n)()},32098:(e,a,t)=>{var n=t(51572);function i(e){e.register(n),function(e){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:i,punctuation:s};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:n,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(a){if(/<\?/.test(a.code)){e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")}))}(e)}e.exports=i,i.displayName="php",i.aliases=[]},40242:(e,a,t)=>{var n=t(32098),i=t(3899);function s(e){e.register(n),e.register(i),function(e){var a=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+a+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+a),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}(e)}e.exports=s,s.displayName="phpdoc",s.aliases=[]},51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,(function(e){if("function"===typeof s&&!s(e))return e;for(var i,o=r.length;-1!==t.code.indexOf(i=a(n,o));)++o;return r[o]=e,i})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(o){for(var l=0;l<o.length&&!(i>=s.length);l++){var d=o[l];if("string"===typeof d||d.content&&"string"===typeof d.content){var p=s[i],c=t.tokenStack[p],u="string"===typeof d?d:d.content,b=a(n,p),g=u.indexOf(b);if(g>-1){++i;var f=u.substring(0,g),y=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),m=u.substring(g+b.length),h=[];f&&h.push.apply(h,r([f])),h.push(y),m&&h.push.apply(h,r([m])),"string"===typeof d?o.splice.apply(o,[l,1].concat(h)):d.content=h}}else d.content&&r(d.content)}return o}(t.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26358.23555994.chunk.js b/ydb/core/viewer/monitoring/static/js/26358.23555994.chunk.js new file mode 100644 index 0000000000..b258ebff3e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26358.23555994.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26358],{26358:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"mr",weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26411.07f03301.chunk.js b/ydb/core/viewer/monitoring/static/js/26411.07f03301.chunk.js new file mode 100644 index 0000000000..bab22e9d8b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26411.07f03301.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26411],{26411:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(46222);const i=a.n(r)()},46222:e=>{function t(e){!function(e){e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var t=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;["c",{lang:"c++",alias:"cpp"},"fortran"].forEach((function(a){var r=a;if("string"!==typeof a&&(r=a.alias,a=a.lang),e.languages[r]){var i={};i["inline-lang-"+r]={pattern:RegExp(t.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},i["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",i)}})),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}(e)}e.exports=t,t.displayName="pure",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2656.6cdcd805.chunk.js b/ydb/core/viewer/monitoring/static/js/2656.6cdcd805.chunk.js new file mode 100644 index 0000000000..a991b3ff76 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2656.6cdcd805.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2656],{2656:(e,n,t)=>{t.d(n,{default:()=>a});var i=t(59129);const a=t.n(i)()},59129:e=>{function n(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}e.exports=n,n.displayName="gn",n.aliases=["gni"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26625.d5154eea.chunk.js b/ydb/core/viewer/monitoring/static/js/26625.d5154eea.chunk.js new file mode 100644 index 0000000000..0ee9896167 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26625.d5154eea.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26625],{26625:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/26833.d6c6c578.chunk.js b/ydb/core/viewer/monitoring/static/js/26833.d6c6c578.chunk.js new file mode 100644 index 0000000000..e9c328ea77 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/26833.d6c6c578.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[26833],{26833:function(e,_,i){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=_(e),n={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(n,null,!0),n}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/27148.5289994c.chunk.js b/ydb/core/viewer/monitoring/static/js/27148.5289994c.chunk.js new file mode 100644 index 0000000000..1d995f5255 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/27148.5289994c.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 27148.5289994c.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[27148],{27148:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/27148.5289994c.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/27148.5289994c.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js b/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js deleted file mode 100644 index ee6a21caf1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2742.d5c8fae8.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2742],{32742:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2775.9105769d.chunk.js b/ydb/core/viewer/monitoring/static/js/2775.9105769d.chunk.js deleted file mode 100644 index d958f69ab1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2775.9105769d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2775],{72775:function(a,_,e){a.exports=function(a){"use strict";function _(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=_(a),t={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(a){return a+"."}};return e.default.locale(t,null,!0),t}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2776.0f5e87f5.chunk.js b/ydb/core/viewer/monitoring/static/js/2776.0f5e87f5.chunk.js deleted file mode 100644 index 7248311c90..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2776.0f5e87f5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2776],{12776:function(e,u,a){e.exports=function(e){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e),_={name:"tet",weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),weekStart:1,weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"}};return a.default.locale(_,null,!0),_}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/27950.acee5eec.chunk.js b/ydb/core/viewer/monitoring/static/js/27950.acee5eec.chunk.js new file mode 100644 index 0000000000..76f060c9ef --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/27950.acee5eec.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[27950],{18989:e=>{function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}e.exports=t,t.displayName="tcl",t.aliases=[]},27950:(e,t,a)=>{a.d(t,{default:()=>n});var r=a(18989);const n=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/28125.0776827a.chunk.js b/ydb/core/viewer/monitoring/static/js/28125.0776827a.chunk.js new file mode 100644 index 0000000000..cff5873f47 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/28125.0776827a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[28125],{19560:e=>{function r(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="io",r.aliases=[]},28125:(e,r,t)=>{t.d(r,{default:()=>i});var o=t(19560);const i=t.n(o)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/28256.20804e43.chunk.js b/ydb/core/viewer/monitoring/static/js/28256.20804e43.chunk.js new file mode 100644 index 0000000000..b175562803 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/28256.20804e43.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[28256],{28256:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"ar-ly",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekStart:6,weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},meridiem:function(_){return _>12?"\u0645":"\u0635"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js b/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js deleted file mode 100644 index fb38ee3e19..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2854.48cc58dc.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2854],{32854:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>s,language:()=>t});var s={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},t={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=><!~?:&|+\-*\\\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@types":"type","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"delimiter"],[/[<>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/28868.3c0ecf71.chunk.js b/ydb/core/viewer/monitoring/static/js/28868.3c0ecf71.chunk.js new file mode 100644 index 0000000000..bf50d49270 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/28868.3c0ecf71.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[28868],{28868:(e,b,d)=>{d.r(b)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/290.b4f1e118.chunk.js b/ydb/core/viewer/monitoring/static/js/290.b4f1e118.chunk.js deleted file mode 100644 index e95f4cdf6b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/290.b4f1e118.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[290],{90290:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],_=e%100;return"["+e+(a[(_-20)%10]||a[_]||a[0])+"]"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/29043.f0a51584.chunk.js b/ydb/core/viewer/monitoring/static/js/29043.f0a51584.chunk.js new file mode 100644 index 0000000000..46de25214d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/29043.f0a51584.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[29043],{29043:(e,r,_)=>{_.d(r,{default:()=>i});var t=_(78150);const i=_.n(t)()},78150:e=>{function r(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,(function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source})),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}e.exports=r,r.displayName="keepalived",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/29193.43e37031.chunk.js b/ydb/core/viewer/monitoring/static/js/29193.43e37031.chunk.js new file mode 100644 index 0000000000..3a393bdec9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/29193.43e37031.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[29193],{29193:(e,a,t)=>{t.d(a,{default:()=>r});var n=t(77332);const r=t.n(n)()},77332:e=>{function a(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}e.exports=a,a.displayName="haxe",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/29394.e027e9c7.chunk.js b/ydb/core/viewer/monitoring/static/js/29394.e027e9c7.chunk.js new file mode 100644 index 0000000000..3260c52799 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/29394.e027e9c7.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 29394.e027e9c7.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[29394],{29394:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>a});var o={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},a={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/29394.e027e9c7.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/29394.e027e9c7.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/29461.74898902.chunk.js b/ydb/core/viewer/monitoring/static/js/29461.74898902.chunk.js new file mode 100644 index 0000000000..89a9b11b52 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/29461.74898902.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[29461],{29461:(n,e,o)=>{o.d(e,{default:()=>d});var a=o(44086);const d=o.n(a)()},44086:n=>{function e(n){!function(n){var e=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function o(n,o){return RegExp(n.replace(/<nonId>/g,e),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:o(/(^|[<nonId>])(?:\u0434\u0430|\u043d\u0435\u0442)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:o(/(^|[<nonId>])(?:\u0438|\u0438\u043b\u0438|\u043d\u0435)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:o(/(^|[<nonId>])\u0437\u043d\u0430\u0447(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:o(/(^|[<nonId>])(?:\u0432\u0435\u0449|\u043b\u0438\u0442|\u043b\u043e\u0433|\u0441\u0438\u043c|\u0446\u0435\u043b)(?:\x20*\u0442\u0430\u0431)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:o(/(^|[<nonId>])(?:\u043a\u043e\u043c\u043f\u043b|\u0441\u043a\u0430\u043d\u043a\u043e\u0434|\u0444\u0430\u0439\u043b|\u0446\u0432\u0435\u0442)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:o(/(^|[<nonId>])(?:\u0430\u043b\u0433|\u0430\u0440\u0433(?:\x20*\u0440\u0435\u0437)?|\u0432\u0432\u043e\u0434|\u0412\u041a\u041b\u042e\u0427\u0418\u0422\u042c|\u0432\u0441[\u0435\u0451]|\u0432\u044b\u0431\u043e\u0440|\u0432\u044b\u0432\u043e\u0434|\u0432\u044b\u0445\u043e\u0434|\u0434\u0430\u043d\u043e|\u0434\u043b\u044f|\u0434\u043e|\u0434\u0441|\u0435\u0441\u043b\u0438|\u0438\u043d\u0430\u0447\u0435|\u0438\u0441\u043f|\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c|\u043a\u043e\u043d(?:(?:\x20+|_)\u0438\u0441\u043f)?|\u043a\u0446(?:(?:\x20+|_)\u043f\u0440\u0438)?|\u043d\u0430\u0434\u043e|\u043d\u0430\u0447|\u043d\u0441|\u043d\u0446|\u043e\u0442|\u043f\u0430\u0443\u0437\u0430|\u043f\u043e\u043a\u0430|\u043f\u0440\u0438|\u0440\u0430\u0437\u0430?|\u0440\u0435\u0437|\u0441\u0442\u043e\u043f|\u0442\u0430\u0431|\u0442\u043e|\u0443\u0442\u0432|\u0448\u0430\u0433)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:o(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:o(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir}(n)}n.exports=e,e.displayName="kumir",e.aliases=["kum"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/29769.21fd5384.chunk.js b/ydb/core/viewer/monitoring/static/js/29769.21fd5384.chunk.js new file mode 100644 index 0000000000..5c4b995c20 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/29769.21fd5384.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[29769],{29769:(e,t,r)=>{r.d(t,{default:()=>o});var a=r(83723);const o=r.n(a)()},83723:e=>{function t(e){!function(e){var t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}(e)}e.exports=t,t.displayName="stan",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2984.df749ebe.chunk.js b/ydb/core/viewer/monitoring/static/js/2984.df749ebe.chunk.js deleted file mode 100644 index e295b0aea2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2984.df749ebe.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2984],{92984:function(_,d,t){_.exports=function(_){"use strict";function d(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=d(_),r={name:"x-pseudo",weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),weekStart:1,weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/29866.16645b0d.chunk.js b/ydb/core/viewer/monitoring/static/js/29866.16645b0d.chunk.js new file mode 100644 index 0000000000..5c8a3e566e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/29866.16645b0d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[29866],{29866:(d,e,b)=>{b.d(e,{default:()=>a});var u=b(50683);const a=b.n(u)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js b/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js deleted file mode 100644 index 7307d2de38..0000000000 --- a/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 30.69969059.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30],{80030:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>r});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},r={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3008.c8aa656b.chunk.js b/ydb/core/viewer/monitoring/static/js/3008.c8aa656b.chunk.js deleted file mode 100644 index dad0a0e877..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3008.c8aa656b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3008],{63008:function(_,e,Y){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var Y=e(_),d={name:"ja",weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_){return _+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiem:function(_){return _<12?"\u5348\u524d":"\u5348\u5f8c"},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}};return Y.default.locale(d,null,!0),d}(Y(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30226.e28d8c14.chunk.js b/ydb/core/viewer/monitoring/static/js/30226.e28d8c14.chunk.js new file mode 100644 index 0000000000..f8b75ebd58 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30226.e28d8c14.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30226],{4897:E=>{function T(E){E.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}E.exports=T,T.displayName="cobol",T.aliases=[]},30226:(E,T,I)=>{I.d(T,{default:()=>N});var R=I(4897);const N=I.n(R)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30229.9a64e8c6.chunk.js b/ydb/core/viewer/monitoring/static/js/30229.9a64e8c6.chunk.js new file mode 100644 index 0000000000..1b4612a0cb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30229.9a64e8c6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30229],{4542:e=>{function n(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}e.exports=n,n.displayName="concurnas",n.aliases=["conc"]},30229:(e,n,a)=>{a.d(n,{default:()=>o});var t=a(4542);const o=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30249.b5966caf.chunk.js b/ydb/core/viewer/monitoring/static/js/30249.b5966caf.chunk.js new file mode 100644 index 0000000000..79ddd0b4b5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30249.b5966caf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30249],{30249:(e,a,t)=>{t.d(a,{default:()=>i});var n=t(32098);const i=t.n(n)()},32098:(e,a,t)=>{var n=t(51572);function i(e){e.register(n),function(e){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:i,punctuation:s};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:n,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(a){if(/<\?/.test(a.code)){e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")}))}(e)}e.exports=i,i.displayName="php",i.aliases=[]},51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,(function(e){if("function"===typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o<l.length&&!(i>=s.length);o++){var d=l[o];if("string"===typeof d||d.content&&"string"===typeof d.content){var c=s[i],b=t.tokenStack[c],p="string"===typeof d?d:d.content,u=a(n,c),f=p.indexOf(u);if(f>-1){++i;var g=p.substring(0,f),y=new e.Token(n,e.tokenize(b,t.grammar),"language-"+n,b),h=p.substring(f+u.length),m=[];g&&m.push.apply(m,r([g])),m.push(y),h&&m.push.apply(m,r([h])),"string"===typeof d?l.splice.apply(l,[o,1].concat(m)):d.content=m}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3033.06c03554.chunk.js b/ydb/core/viewer/monitoring/static/js/3033.06c03554.chunk.js deleted file mode 100644 index cb45edb3ad..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3033.06c03554.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3033],{93033:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"gu",weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30499.28982bd3.chunk.js b/ydb/core/viewer/monitoring/static/js/30499.28982bd3.chunk.js new file mode 100644 index 0000000000..56226a5147 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30499.28982bd3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30499],{30499:(e,a,t)=>{t.d(a,{default:()=>s});var n=t(45948);const s=t.n(n)()},45948:(e,a,t)=>{var n=t(89488);function s(e){e.register(n),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function}e.exports=s,s.displayName="scala",s.aliases=[]},89488:e=>{function a(e){!function(e){var a=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:a,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return a.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=a,a.displayName="java",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30523.726a6c98.chunk.js b/ydb/core/viewer/monitoring/static/js/30523.726a6c98.chunk.js new file mode 100644 index 0000000000..1b50b31d90 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30523.726a6c98.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30523],{30523:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es-do",weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekStart:1,relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30573.df897e71.chunk.js b/ydb/core/viewer/monitoring/static/js/30573.df897e71.chunk.js new file mode 100644 index 0000000000..6f5478e9e8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30573.df897e71.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30573],{30573:(a,e,t)=>{t.d(e,{default:()=>s});var n=t(82254);const s=t.n(n)()},82254:a=>{function e(a){!function(a){var e=/\\(?:[^a-z()[\]]|[a-z*]+)/i,t={"equation-command":{pattern:e,alias:"regex"}};a.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:t,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:t,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/},a.languages.tex=a.languages.latex,a.languages.context=a.languages.latex}(a)}a.exports=e,e.displayName="latex",e.aliases=["tex","context"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3061.c2a39676.chunk.js b/ydb/core/viewer/monitoring/static/js/3061.c2a39676.chunk.js new file mode 100644 index 0000000000..7938ba65b0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3061.c2a39676.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3061],{3061:(e,m,t)=>{t.d(m,{default:()=>d});var a=t(81818);const d=t.n(a)()},81818:e=>{function m(e){e.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}e.exports=m,m.displayName="git",m.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30811.b4fed9a8.chunk.js b/ydb/core/viewer/monitoring/static/js/30811.b4fed9a8.chunk.js new file mode 100644 index 0000000000..2ae3827f18 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30811.b4fed9a8.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30811],{30811:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"my",weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),weekStart:1,weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/30850.aef4d4ce.chunk.js b/ydb/core/viewer/monitoring/static/js/30850.aef4d4ce.chunk.js new file mode 100644 index 0000000000..88eb754568 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/30850.aef4d4ce.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[30850],{16099:e=>{function t(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},30850:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(90993);const s=n.n(a)()},70191:e=>{function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function r(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return a})).replace(/<SPREAD>/g,(function(){return s})),RegExp(e,t)}s=r(s).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=r(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:r(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:r(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(i).join(""):""},g=function(t){for(var n=[],a=0;a<t.length;a++){var s=t[a],r=!1;if("string"!==typeof s&&("tag"===s.type&&s.content[0]&&"tag"===s.content[0].type?"</"===s.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===i(s.content[0].content[1])&&n.pop():"/>"===s.content[s.content.length-1].content||n.push({tagName:i(s.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===s.type&&"{"===s.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===s.type&&"}"===s.content?n[n.length-1].openedBraces--:r=!0),(r||"string"===typeof s)&&n.length>0&&0===n[n.length-1].openedBraces){var o=i(s);a<t.length-1&&("string"===typeof t[a+1]||"plain-text"===t[a+1].type)&&(o+=i(t[a+1]),t.splice(a+1,1)),a>0&&("string"===typeof t[a-1]||"plain-text"===t[a-1].type)&&(o=i(t[a-1])+o,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",o,null,o)}s.content&&"string"!==typeof s.content&&g(s.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||g(e.tokens)}))}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},90993:(e,t,n)=>{var a=n(70191),s=n(16099);function r(e){e.register(a),e.register(s),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}e.exports=r,r.displayName="tsx",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/310.b23bf6b2.chunk.js b/ydb/core/viewer/monitoring/static/js/310.b23bf6b2.chunk.js deleted file mode 100644 index 0a0eb09555..0000000000 --- a/ydb/core/viewer/monitoring/static/js/310.b23bf6b2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[310],{10310:function(e,i,_){e.exports=function(e){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=i(e),u={name:"ro",weekdays:"Duminic\u0103_Luni_Mar\u021bi_Miercuri_Joi_Vineri_S\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"peste %s",past:"acum %s",s:"c\xe2teva secunde",m:"un minut",mm:"%d minute",h:"o or\u0103",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lun\u0103",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(e){return e}};return _.default.locale(u,null,!0),u}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/31177.d892dd40.chunk.js b/ydb/core/viewer/monitoring/static/js/31177.d892dd40.chunk.js new file mode 100644 index 0000000000..eb0690369e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/31177.d892dd40.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[31177],{31177:(e,t,n)=>{n.d(t,{default:()=>r});var i=n(93078);const r=n.n(i)()},93078:e=>{function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}e.exports=t,t.displayName="nim",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/31423.b7296b03.chunk.js b/ydb/core/viewer/monitoring/static/js/31423.b7296b03.chunk.js new file mode 100644 index 0000000000..cc6fcdf092 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/31423.b7296b03.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[31423],{31423:(d,e,b)=>{b.d(e,{default:()=>a});var u=b(22216);const a=b.n(u)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3149.0c1f7eee.chunk.js b/ydb/core/viewer/monitoring/static/js/3149.0c1f7eee.chunk.js new file mode 100644 index 0000000000..3d24ce647a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3149.0c1f7eee.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3149],{3149:(e,n,t)=>{t.d(n,{default:()=>i});var a=t(73762);const i=t.n(a)()},73762:e=>{function n(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}e.exports=n,n.displayName="smali",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js b/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js deleted file mode 100644 index c7bf663b76..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3158.3f2d4e5f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3158],{23158:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>r,language:()=>i});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/31584.6ddd5f13.chunk.js b/ydb/core/viewer/monitoring/static/js/31584.6ddd5f13.chunk.js new file mode 100644 index 0000000000..f760d8b93a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/31584.6ddd5f13.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[31584],{31584:(E,T,A)=>{A.d(T,{default:()=>R});var N=A(53451);const R=A.n(N)()},53451:E=>{function T(E){E.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}E.exports=T,T.displayName="dax",T.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/31975.54132ada.chunk.js b/ydb/core/viewer/monitoring/static/js/31975.54132ada.chunk.js new file mode 100644 index 0000000000..ddaacfc765 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/31975.54132ada.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[31975],{31975:function(e,_,t){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),a={name:"me",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(a,null,!0),a}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/32166.8e70395f.chunk.js b/ydb/core/viewer/monitoring/static/js/32166.8e70395f.chunk.js new file mode 100644 index 0000000000..4a76f73f1f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/32166.8e70395f.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[32166],{32166:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),n={name:"tl-ph",weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),weekStart:1,weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/32286.23bbbad8.chunk.js b/ydb/core/viewer/monitoring/static/js/32286.23bbbad8.chunk.js new file mode 100644 index 0000000000..54a5743956 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/32286.23bbbad8.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[32286],{32286:function(a,u,e){a.exports=function(a){"use strict";function u(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=u(a),i={name:"rw",weekdays:"Ku Cyumweru_Kuwa Mbere_Kuwa Kabiri_Kuwa Gatatu_Kuwa Kane_Kuwa Gatanu_Kuwa Gatandatu".split("_"),months:"Mutarama_Gashyantare_Werurwe_Mata_Gicurasi_Kamena_Nyakanga_Kanama_Nzeri_Ukwakira_Ugushyingo_Ukuboza".split("_"),relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(a){return a}};return e.default.locale(i,null,!0),i}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3238.a9505f7f.chunk.js b/ydb/core/viewer/monitoring/static/js/3238.a9505f7f.chunk.js deleted file mode 100644 index 06c8fbc9ed..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3238.a9505f7f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3238],{73238:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,k,M=C(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)({}).hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},h.apply(null,arguments)}function Z({title:e,titleId:t,...C},Z){return M.createElement("svg",h({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?M.createElement("title",{id:t},e):null,r||(r=M.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=M.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=M.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=M.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=M.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=M.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=M.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=M.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=M.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=M.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=M.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=M.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),k||(k=M.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=M.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/32670.1e209a72.chunk.js b/ydb/core/viewer/monitoring/static/js/32670.1e209a72.chunk.js new file mode 100644 index 0000000000..5087d30428 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/32670.1e209a72.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[32670],{32670:(E,T,N)=>{N.d(T,{default:()=>L});var R=N(72517);const L=N.n(R)()},72517:E=>{function T(E){E.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}E.exports=T,T.displayName="ichigojam",T.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/32742.d4094814.chunk.js b/ydb/core/viewer/monitoring/static/js/32742.d4094814.chunk.js new file mode 100644 index 0000000000..c4f2b9b26e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/32742.d4094814.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 32742.d4094814.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[32742],{32742:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/32742.d4094814.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/32742.d4094814.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/32854.6c426003.chunk.js b/ydb/core/viewer/monitoring/static/js/32854.6c426003.chunk.js new file mode 100644 index 0000000000..3e80aa9351 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/32854.6c426003.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 32854.6c426003.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[32854],{32854:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>s,language:()=>t});var s={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},t={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=><!~?:&|+\-*\\\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@types":"type","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"delimiter"],[/[<>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/32854.6c426003.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/32854.6c426003.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/3321.3370cf83.chunk.js b/ydb/core/viewer/monitoring/static/js/3321.3370cf83.chunk.js deleted file mode 100644 index fda7c49372..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3321.3370cf83.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3321],{23321:function(e,d,_){e.exports=function(e){"use strict";function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=d(e),s={name:"oc-lnc",weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"Dg_Dl_Dm_Dc_Dj_Dv_Ds".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),months:"geni\xe8r_febri\xe8r_mar\xe7_abrial_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),monthsShort:"gen_feb_mar\xe7_abr_mai_junh_julh_ago_set_oct_nov_dec".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},ordinal:function(e){return e+"\xba"}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3333.eb9ec516.chunk.js b/ydb/core/viewer/monitoring/static/js/3333.eb9ec516.chunk.js deleted file mode 100644 index b0caa04442..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3333.eb9ec516.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3333],{83333:function(_,e,a){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var a=e(_),t={name:"yo",weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekStart:1,weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),ordinal:function(_){return _},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/33338.c39231db.chunk.js b/ydb/core/viewer/monitoring/static/js/33338.c39231db.chunk.js new file mode 100644 index 0000000000..667a163e78 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/33338.c39231db.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 33338.c39231db.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[33338],{33338:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/33338.c39231db.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/33338.c39231db.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js b/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js deleted file mode 100644 index 42bb6918f4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3338.83fe4e63.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3338],{33338:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>r});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/33436.e8e4435f.chunk.js b/ydb/core/viewer/monitoring/static/js/33436.e8e4435f.chunk.js new file mode 100644 index 0000000000..6ae105bdf8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/33436.e8e4435f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[33436],{33436:(e,r,n)=>{n.d(r,{default:()=>a});var t=n(44211);const a=n.n(t)()},44211:e=>{function r(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}e.exports=r,r.displayName="magma",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/33521.11130f2d.chunk.js b/ydb/core/viewer/monitoring/static/js/33521.11130f2d.chunk.js new file mode 100644 index 0000000000..9b126d516a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/33521.11130f2d.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[33521],{33521:function(t,_,e){t.exports=function(t){"use strict";function _(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=_(t),r={name:"sq",weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),weekStart:1,weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"}};return e.default.locale(r,null,!0),r}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/33822.3b7da7cd.chunk.js b/ydb/core/viewer/monitoring/static/js/33822.3b7da7cd.chunk.js new file mode 100644 index 0000000000..55e1ce8d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/33822.3b7da7cd.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 33822.3b7da7cd.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[33822],{33822:(t,n,e)=>{e.r(n),e.d(n,{conf:()=>r,language:()=>s});var r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function a(t){let n=[];const e=t.split(/\t+|\r+|\n+| +/);for(let r=0;r<e.length;++r)e[r].length>0&&n.push(e[r]);return n}var o=/[_\p{XID_Start}]\p{XID_Continue}*/u,i="variable.predefined",s={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:a("true false"),keywords:a("\n\t\t\t alias\n\t\t\t break\n\t\t\t case\n\t\t\t const\n\t\t\t const_assert\n\t\t\t continue\n\t\t\t continuing\n\t\t\t default\n\t\t\t diagnostic\n\t\t\t discard\n\t\t\t else\n\t\t\t enable\n\t\t\t fn\n\t\t\t for\n\t\t\t if\n\t\t\t let\n\t\t\t loop\n\t\t\t override\n\t\t\t requires\n\t\t\t return\n\t\t\t struct\n\t\t\t switch\n\t\t\t var\n\t\t\t while\n\t\t\t "),reserved:a("\n\t\t\t NULL\n\t\t\t Self\n\t\t\t abstract\n\t\t\t active\n\t\t\t alignas\n\t\t\t alignof\n\t\t\t as\n\t\t\t asm\n\t\t\t asm_fragment\n\t\t\t async\n\t\t\t attribute\n\t\t\t auto\n\t\t\t await\n\t\t\t become\n\t\t\t binding_array\n\t\t\t cast\n\t\t\t catch\n\t\t\t class\n\t\t\t co_await\n\t\t\t co_return\n\t\t\t co_yield\n\t\t\t coherent\n\t\t\t column_major\n\t\t\t common\n\t\t\t compile\n\t\t\t compile_fragment\n\t\t\t concept\n\t\t\t const_cast\n\t\t\t consteval\n\t\t\t constexpr\n\t\t\t constinit\n\t\t\t crate\n\t\t\t debugger\n\t\t\t decltype\n\t\t\t delete\n\t\t\t demote\n\t\t\t demote_to_helper\n\t\t\t do\n\t\t\t dynamic_cast\n\t\t\t enum\n\t\t\t explicit\n\t\t\t export\n\t\t\t extends\n\t\t\t extern\n\t\t\t external\n\t\t\t fallthrough\n\t\t\t filter\n\t\t\t final\n\t\t\t finally\n\t\t\t friend\n\t\t\t from\n\t\t\t fxgroup\n\t\t\t get\n\t\t\t goto\n\t\t\t groupshared\n\t\t\t highp\n\t\t\t impl\n\t\t\t implements\n\t\t\t import\n\t\t\t inline\n\t\t\t instanceof\n\t\t\t interface\n\t\t\t layout\n\t\t\t lowp\n\t\t\t macro\n\t\t\t macro_rules\n\t\t\t match\n\t\t\t mediump\n\t\t\t meta\n\t\t\t mod\n\t\t\t module\n\t\t\t move\n\t\t\t mut\n\t\t\t mutable\n\t\t\t namespace\n\t\t\t new\n\t\t\t nil\n\t\t\t noexcept\n\t\t\t noinline\n\t\t\t nointerpolation\n\t\t\t noperspective\n\t\t\t null\n\t\t\t nullptr\n\t\t\t of\n\t\t\t operator\n\t\t\t package\n\t\t\t packoffset\n\t\t\t partition\n\t\t\t pass\n\t\t\t patch\n\t\t\t pixelfragment\n\t\t\t precise\n\t\t\t precision\n\t\t\t premerge\n\t\t\t priv\n\t\t\t protected\n\t\t\t pub\n\t\t\t public\n\t\t\t readonly\n\t\t\t ref\n\t\t\t regardless\n\t\t\t register\n\t\t\t reinterpret_cast\n\t\t\t require\n\t\t\t resource\n\t\t\t restrict\n\t\t\t self\n\t\t\t set\n\t\t\t shared\n\t\t\t sizeof\n\t\t\t smooth\n\t\t\t snorm\n\t\t\t static\n\t\t\t static_assert\n\t\t\t static_cast\n\t\t\t std\n\t\t\t subroutine\n\t\t\t super\n\t\t\t target\n\t\t\t template\n\t\t\t this\n\t\t\t thread_local\n\t\t\t throw\n\t\t\t trait\n\t\t\t try\n\t\t\t type\n\t\t\t typedef\n\t\t\t typeid\n\t\t\t typename\n\t\t\t typeof\n\t\t\t union\n\t\t\t unless\n\t\t\t unorm\n\t\t\t unsafe\n\t\t\t unsized\n\t\t\t use\n\t\t\t using\n\t\t\t varying\n\t\t\t virtual\n\t\t\t volatile\n\t\t\t wgsl\n\t\t\t where\n\t\t\t with\n\t\t\t writeonly\n\t\t\t yield\n\t\t\t "),predeclared_enums:a("\n\t\tread write read_write\n\t\tfunction private workgroup uniform storage\n\t\tperspective linear flat\n\t\tcenter centroid sample\n\t\tvertex_index instance_index position front_facing frag_depth\n\t\t\tlocal_invocation_id local_invocation_index\n\t\t\tglobal_invocation_id workgroup_id num_workgroups\n\t\t\tsample_index sample_mask\n\t\trgba8unorm\n\t\trgba8snorm\n\t\trgba8uint\n\t\trgba8sint\n\t\trgba16uint\n\t\trgba16sint\n\t\trgba16float\n\t\tr32uint\n\t\tr32sint\n\t\tr32float\n\t\trg32uint\n\t\trg32sint\n\t\trg32float\n\t\trgba32uint\n\t\trgba32sint\n\t\trgba32float\n\t\tbgra8unorm\n"),predeclared_types:a("\n\t\tbool\n\t\tf16\n\t\tf32\n\t\ti32\n\t\tsampler sampler_comparison\n\t\ttexture_depth_2d\n\t\ttexture_depth_2d_array\n\t\ttexture_depth_cube\n\t\ttexture_depth_cube_array\n\t\ttexture_depth_multisampled_2d\n\t\ttexture_external\n\t\ttexture_external\n\t\tu32\n\t\t"),predeclared_type_generators:a("\n\t\tarray\n\t\tatomic\n\t\tmat2x2\n\t\tmat2x3\n\t\tmat2x4\n\t\tmat3x2\n\t\tmat3x3\n\t\tmat3x4\n\t\tmat4x2\n\t\tmat4x3\n\t\tmat4x4\n\t\tptr\n\t\ttexture_1d\n\t\ttexture_2d\n\t\ttexture_2d_array\n\t\ttexture_3d\n\t\ttexture_cube\n\t\ttexture_cube_array\n\t\ttexture_multisampled_2d\n\t\ttexture_storage_1d\n\t\ttexture_storage_2d\n\t\ttexture_storage_2d_array\n\t\ttexture_storage_3d\n\t\tvec2\n\t\tvec3\n\t\tvec4\n\t\t"),predeclared_type_aliases:a("\n\t\tvec2i vec3i vec4i\n\t\tvec2u vec3u vec4u\n\t\tvec2f vec3f vec4f\n\t\tvec2h vec3h vec4h\n\t\tmat2x2f mat2x3f mat2x4f\n\t\tmat3x2f mat3x3f mat3x4f\n\t\tmat4x2f mat4x3f mat4x4f\n\t\tmat2x2h mat2x3h mat2x4h\n\t\tmat3x2h mat3x3h mat3x4h\n\t\tmat4x2h mat4x3h mat4x4h\n\t\t"),predeclared_intrinsics:a("\n bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2\n ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross\n degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit\n firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length\n log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract\n reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose\n trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine\n textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers\n textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare\n textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge\n textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin\n atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm\n pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm\n unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier\n workgroupUniformLoad\n"),operators:a("\n\t\t\t\t\t &\n\t\t\t\t\t &&\n\t\t\t\t\t ->\n\t\t\t\t\t /\n\t\t\t\t\t =\n\t\t\t\t\t ==\n\t\t\t\t\t !=\n\t\t\t\t\t >\n\t\t\t\t\t >=\n\t\t\t\t\t <\n\t\t\t\t\t <=\n\t\t\t\t\t %\n\t\t\t\t\t -\n\t\t\t\t\t --\n\t\t\t\t\t +\n\t\t\t\t\t ++\n\t\t\t\t\t |\n\t\t\t\t\t ||\n\t\t\t\t\t *\n\t\t\t\t\t <<\n\t\t\t\t\t >>\n\t\t\t\t\t +=\n\t\t\t\t\t -=\n\t\t\t\t\t *=\n\t\t\t\t\t /=\n\t\t\t\t\t %=\n\t\t\t\t\t &=\n\t\t\t\t\t |=\n\t\t\t\t\t ^=\n\t\t\t\t\t >>=\n\t\t\t\t\t <<=\n\t\t\t\t\t "),symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[/enable|requires|diagnostic/,"keyword","@directive"],[o,{cases:{"@atoms":i,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":i,"@predeclared_types":i,"@predeclared_type_generators":i,"@predeclared_type_aliases":i,"@predeclared_intrinsics":i,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[o,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/33822.3b7da7cd.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/33822.3b7da7cd.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/34119.377036f7.chunk.js b/ydb/core/viewer/monitoring/static/js/34119.377036f7.chunk.js new file mode 100644 index 0000000000..d06456e73e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/34119.377036f7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[34119],{34119:(t,n,i)=>{i.d(n,{default:()=>e});var a=i(68734);const e=i.n(a)()},68734:t=>{function n(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-\u2022\u2023\u2043]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|\u2014|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}t.exports=n,n.displayName="rest",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/34156.b749f595.chunk.js b/ydb/core/viewer/monitoring/static/js/34156.b749f595.chunk.js new file mode 100644 index 0000000000..438ac252fa --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/34156.b749f595.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[34156],{34156:(e,s,r)=>{r.d(s,{default:()=>n});var a=r(91061);const n=r.n(a)()},91061:e=>{function s(e){!function(e){var s=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,s].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,s].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,s+/\s*/.source+s].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(e)}e.exports=s,s.displayName="perl",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/34169.9a22281f.chunk.js b/ydb/core/viewer/monitoring/static/js/34169.9a22281f.chunk.js new file mode 100644 index 0000000000..ec0c7f8914 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/34169.9a22281f.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[34169],{34169:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),o={name:"pt",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_Sa".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return _.default.locale(o,null,!0),o}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/34542.6199c708.chunk.js b/ydb/core/viewer/monitoring/static/js/34542.6199c708.chunk.js new file mode 100644 index 0000000000..a33fb79005 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/34542.6199c708.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[34542],{34542:function(a,_,e){a.exports=function(a){"use strict";function _(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=_(a),n={name:"uz-latn",weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),weekStart:1,weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},relativeTime:{future:"Yaqin %s ichida",past:"%s oldin",s:"soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"}};return e.default.locale(n,null,!0),n}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/34693.09c32626.chunk.js b/ydb/core/viewer/monitoring/static/js/34693.09c32626.chunk.js new file mode 100644 index 0000000000..f7925c4a9d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/34693.09c32626.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[34693],{9684:(e,n,t)=>{var a=t(89343);function s(e){e.register(a),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}e.exports=s,s.displayName="objectivec",s.aliases=["objc"]},34693:(e,n,t)=>{t.d(n,{default:()=>s});var a=t(9684);const s=t.n(a)()},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js b/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js deleted file mode 100644 index d41bc604d2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3478.480dafa6.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3478],{73478:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>o});var n={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},o={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/34847.ec23543c.chunk.js b/ydb/core/viewer/monitoring/static/js/34847.ec23543c.chunk.js new file mode 100644 index 0000000000..ce9e354830 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/34847.ec23543c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[34847],{34847:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ug-cn",weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekStart:1,weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3510.0740f36d.chunk.js b/ydb/core/viewer/monitoring/static/js/3510.0740f36d.chunk.js deleted file mode 100644 index 08c63eb313..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3510.0740f36d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3510],{83510:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"te",weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/35161.d7f85805.chunk.js b/ydb/core/viewer/monitoring/static/js/35161.d7f85805.chunk.js new file mode 100644 index 0000000000..5ae323f48d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35161.d7f85805.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35161],{35161:function(e,a,d){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(e),_={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"}};return d.default.locale(_,null,!0),_}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3521.775b3981.chunk.js b/ydb/core/viewer/monitoring/static/js/3521.775b3981.chunk.js deleted file mode 100644 index b60ba957cc..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3521.775b3981.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3521],{33521:function(t,_,e){t.exports=function(t){"use strict";function _(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=_(t),r={name:"sq",weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),weekStart:1,weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"}};return e.default.locale(r,null,!0),r}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js b/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js deleted file mode 100644 index 3ca19b2198..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3534.3f09429a.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3534],{73534:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"#"}},o={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3534.d7d57e03.chunk.js b/ydb/core/viewer/monitoring/static/js/3534.d7d57e03.chunk.js new file mode 100644 index 0000000000..b47232f67c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3534.d7d57e03.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3534],{3534:(e,a,t)=>{t.d(a,{default:()=>i});var n=t(88465);const i=t.n(n)()},88465:e=>{function a(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}e.exports=a,a.displayName="brainfuck",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/35382.6471a2ea.chunk.js b/ydb/core/viewer/monitoring/static/js/35382.6471a2ea.chunk.js new file mode 100644 index 0000000000..4e461bbf27 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35382.6471a2ea.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 35382.6471a2ea.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35382],{35382:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},o={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\</,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.<.>"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/35382.6471a2ea.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/35382.6471a2ea.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/35569.8ceadf10.chunk.js b/ydb/core/viewer/monitoring/static/js/35569.8ceadf10.chunk.js new file mode 100644 index 0000000000..dc5a8ed2ea --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35569.8ceadf10.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35569],{35569:(n,e,a)=>{a.d(e,{default:()=>i});var t=a(98270);const i=a.n(t)()},98270:n=>{function e(n){n.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},n.languages.gap.shell.inside.gap.inside=n.languages.gap}n.exports=e,e.displayName="gap",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/35596.d9a26c66.chunk.js b/ydb/core/viewer/monitoring/static/js/35596.d9a26c66.chunk.js new file mode 100644 index 0000000000..0ab6698f3d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35596.d9a26c66.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35596],{35596:(e,a,n)=>{n.d(a,{default:()=>o});var t=n(48133);const o=n.n(t)()},48133:e=>{function a(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}e.exports=a,a.displayName="yang",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/35803.0104654b.chunk.js b/ydb/core/viewer/monitoring/static/js/35803.0104654b.chunk.js new file mode 100644 index 0000000000..6384fd34c1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35803.0104654b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35803],{35803:(e,t,r)=>{r.d(t,{default:()=>a});var n=r(54710);const a=r.n(n)()},54710:e=>{function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}e.exports=t,t.displayName="xojo",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/35888.e5062b23.chunk.js b/ydb/core/viewer/monitoring/static/js/35888.e5062b23.chunk.js new file mode 100644 index 0000000000..1879e56081 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35888.e5062b23.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 35888.e5062b23.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35888],{35888:(e,r,n)=>{n.r(r),n.d(r,{conf:()=>t,language:()=>s});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/35888.e5062b23.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/35888.e5062b23.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/35958.73cbdbca.chunk.js b/ydb/core/viewer/monitoring/static/js/35958.73cbdbca.chunk.js new file mode 100644 index 0000000000..f2d60b1e8f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/35958.73cbdbca.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[35958],{21001:e=>{function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}e.exports=t,t.displayName="mermaid",t.aliases=[]},35958:(e,t,a)=>{a.d(t,{default:()=>o});var r=a(21001);const o=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/36374.16f4dcdb.chunk.js b/ydb/core/viewer/monitoring/static/js/36374.16f4dcdb.chunk.js new file mode 100644 index 0000000000..5bdea00cf5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/36374.16f4dcdb.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 36374.16f4dcdb.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[36374],{36374:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},s={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/36374.16f4dcdb.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/36374.16f4dcdb.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js b/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js deleted file mode 100644 index 73970a0af8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3638.ee3efb24.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3638],{13638:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>r,language:()=>o});var r={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3653.06b5272c.chunk.js b/ydb/core/viewer/monitoring/static/js/3653.06b5272c.chunk.js deleted file mode 100644 index 6150b3f059..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3653.06b5272c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3653],{63653:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-hk",months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),ordinal:function(_,e){return"W"===e?_+"\u9031":_+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",m:"\u4e00\u5206\u9418",mm:"%d \u5206\u9418",h:"\u4e00\u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"\u4e00\u5929",dd:"%d \u5929",M:"\u4e00\u500b\u6708",MM:"%d \u500b\u6708",y:"\u4e00\u5e74",yy:"%d \u5e74"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3672.12436dd6.chunk.js b/ydb/core/viewer/monitoring/static/js/3672.12436dd6.chunk.js deleted file mode 100644 index f98ab6480a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3672.12436dd6.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3672],{53672:function(e,a,t){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e);function u(e,a,t,u){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],m:["\xfche minuti","\xfcks minut"],mm:["%d minuti","%d minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:["%d tunni","%d tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:["%d kuu","%d kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:["%d aasta","%d aastat"]};return a?(s[t][2]?s[t][2]:s[t][1]).replace("%d",e):(u?s[t][0]:s[t][1]).replace("%d",e)}var s={name:"et",weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:u,m:u,mm:u,h:u,hh:u,d:u,dd:"%d p\xe4eva",M:u,MM:u,y:u,yy:u},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(s,null,!0),s}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/36754.f9faf9f5.chunk.js b/ydb/core/viewer/monitoring/static/js/36754.f9faf9f5.chunk.js new file mode 100644 index 0000000000..2c67977ffd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/36754.f9faf9f5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[36754],{36754:(n,e,a)=>{a.d(e,{default:()=>t});var i=a(87687);const t=a.n(i)()},87687:n=>{function e(n){!function(n){var e="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+e+"|<"+e+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}(n)}n.exports=e,e.displayName="abnf",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/36786.ca3962c1.chunk.js b/ydb/core/viewer/monitoring/static/js/36786.ca3962c1.chunk.js new file mode 100644 index 0000000000..ce0e072ae9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/36786.ca3962c1.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[36786],{36786:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-il",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3679.e293221d.chunk.js b/ydb/core/viewer/monitoring/static/js/3679.e293221d.chunk.js deleted file mode 100644 index cba9cb058a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3679.e293221d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3679],{86060:function(e,_,t){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),r={name:"lb",weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),weekStart:1,weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js b/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js deleted file mode 100644 index dfe1a4a344..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3702.778880f9.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3702],{23702:(e,_,t)=>{t.r(_),t.d(_,{conf:()=>r,language:()=>i});var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","AZ64","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LANGUAGE","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY16","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3738.bec1d482.chunk.js b/ydb/core/viewer/monitoring/static/js/3738.bec1d482.chunk.js new file mode 100644 index 0000000000..6733a36494 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3738.bec1d482.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3738],{1055:e=>{function a(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=a,a.displayName="hpkp",a.aliases=[]},3738:(e,a,i)=>{i.d(a,{default:()=>t});var p=i(1055);const t=i.n(p)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37380.7c50d99e.chunk.js b/ydb/core/viewer/monitoring/static/js/37380.7c50d99e.chunk.js new file mode 100644 index 0000000000..a07dc4d11f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37380.7c50d99e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37380],{37380:function(e,_,o){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=_(e),n={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xba"}};return o.default.locale(n,null,!0),n}(o(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37385.c32c6c83.chunk.js b/ydb/core/viewer/monitoring/static/js/37385.c32c6c83.chunk.js new file mode 100644 index 0000000000..846bb68ec6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37385.c32c6c83.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37385],{6676:e=>{function d(e){!function(e){var d=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,(function(){return d}))}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}(e)}e.exports=d,d.displayName="toml",d.aliases=[]},37385:(e,d,n)=>{n.d(d,{default:()=>t});var a=n(6676);const t=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3756.9a440b73.chunk.js b/ydb/core/viewer/monitoring/static/js/3756.9a440b73.chunk.js deleted file mode 100644 index f84955449d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3756.9a440b73.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3756],{93756:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"pa-in",weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37579.aa311c74.chunk.js b/ydb/core/viewer/monitoring/static/js/37579.aa311c74.chunk.js new file mode 100644 index 0000000000..ff0303e5b3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37579.aa311c74.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37579],{37579:function(_,e,d){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var d=e(_),M={name:"ko",weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),ordinal:function(_){return _+"\uc77c"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},meridiem:function(_){return _<12?"\uc624\uc804":"\uc624\ud6c4"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"}};return d.default.locale(M,null,!0),M}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37605.270ebf37.chunk.js b/ydb/core/viewer/monitoring/static/js/37605.270ebf37.chunk.js new file mode 100644 index 0000000000..250b5f3414 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37605.270ebf37.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37605],{28266:e=>{function n(e){!function(e){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,(function(){return/\s*(?:[*,]|->)/.source})).replace(/<TERMINAL>/g,(function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source})).replace(/<LONG-ID>/g,(function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source})).replace(/<KEYWORD>/g,(function(){return n.source})),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}(e)}e.exports=n,n.displayName="sml",n.aliases=["smlnj"]},37605:(e,n,a)=>{a.d(n,{default:()=>s});var t=a(28266);const s=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3761.dd957fd1.chunk.js b/ydb/core/viewer/monitoring/static/js/3761.dd957fd1.chunk.js deleted file mode 100644 index 8d3770f8bc..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3761.dd957fd1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3761],{43761:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),t={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xe7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xe7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){return e+(1===e||3===e?"r":2===e?"n":4===e?"t":"\xe8")}};return s.default.locale(t,null,!0),t}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37677.c7cb500e.chunk.js b/ydb/core/viewer/monitoring/static/js/37677.c7cb500e.chunk.js new file mode 100644 index 0000000000..1352dd8d30 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37677.c7cb500e.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37677],{37677:(e,a,i)=>{i.d(a,{default:()=>n});var t=i(68266);const n=i.n(t)()},68266:e=>{function a(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=a,a.displayName="haskell",a.aliases=["hs"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3769.860e8d58.chunk.js b/ydb/core/viewer/monitoring/static/js/3769.860e8d58.chunk.js deleted file mode 100644 index db616d2df8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3769.860e8d58.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3769],{63769:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-sg",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37747.ab1590d9.chunk.js b/ydb/core/viewer/monitoring/static/js/37747.ab1590d9.chunk.js new file mode 100644 index 0000000000..decf4c794c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37747.ab1590d9.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37747],{37747:(e,n,g)=>{g.d(n,{default:()=>i});var a=g(60586);const i=g.n(a)()},60586:e=>{function n(e){!function(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}(e)}e.exports=n,n.displayName="ignore",n.aliases=["gitignore","hgignore","npmignore"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3779.1d869a05.chunk.js b/ydb/core/viewer/monitoring/static/js/3779.1d869a05.chunk.js deleted file mode 100644 index cbc8ca3baf..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3779.1d869a05.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3779],{6170:(e,s,t)=>{t.d(s,{B:()=>c});var r=t(59284),a=t(73633),l=t(84375),n=t(99991);const o=(0,t(98192).om)("help-popover"),i=16;function c(e){var s;return r.createElement(l.A,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.I,{data:a.A,size:i})))}},15132:(e,s,t)=>{t.d(s,{O:()=>v});var r=t(38501),a=t(77506),l=t(56839),n=t(35736),o=t(41650),i=t(60712);const c=(0,a.cn)("progress-viewer"),d=e=>(0,l.ZV)((0,l.CR)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v({value:e,capacity:s,formatValues:t=u,percents:a,className:l,size:d="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h,dangerThreshold:N,hideCapacity:g}){const p=(0,r.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(s))*100)||0;S=S>100?100:S;let f=e,b=s,x="/";a?(f=S+"%",b="",x=""):t&&([f,b]=t(Number(e),Number(s)));const E=(0,n.w)({fillWidth:S,warningThreshold:h,dangerThreshold:N,colorizeProgress:v,inverseColorize:m});v&&!(0,o.kf)(s)&&(S=100);const j={width:S+"%"};return(0,o.kf)(e)?(0,i.jsxs)("div",{className:c({size:d,theme:p,status:E},l),children:[(0,i.jsx)("div",{className:c("line"),style:j}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kf)(s)&&!g?`${f} ${x} ${b}`:f})]}):(0,i.jsx)("div",{className:`${c({size:d})} ${l} error`,children:"no data"})}},16819:(e,s,t)=>{t.d(s,{a:()=>n});var r=t(59284),a=t(69024),l=t(59001);const n=e=>{const s=r.useCallback((()=>e?l.f.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&l.f.setUserSettingsValue(e,s)}),[e]);return(0,a.a)({saveSizes:t,getSizes:s})}},17594:(e,s,t)=>{t.d(s,{l:()=>c});var r=t(69024),a=t(4557),l=t(77506),n=t(16819),o=t(60712);const i=(0,l.cn)("ydb-resizeable-data-table");function c({columnsWidthLSKey:e,columns:s,settings:t,wrapperClassName:l,...c}){const[d,u]=(0,n.a)(e),v=(0,r.j)(s,d),m={...t,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,l),children:(0,o.jsx)(a.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:m,...c})})}},18143:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(59284);const a=(0,t(69220).om)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n({item:e}){const{value:s,color:t,className:l,theme:n,title:o,content:i,loading:c}=e,d={loading:c};return"undefined"===typeof t&&(d.theme=n||"default"),Number.isFinite(s)?r.createElement("div",{className:a("item",d,l),style:{width:`${s}%`,backgroundColor:t},title:o},i):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,{value:s})=>e+s),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))},35736:(e,s,t)=>{t.d(s,{w:()=>a});var r=t(76086);function a({inverseColorize:e,warningThreshold:s=r.Hh,dangerThreshold:t=r.Ed,colorizeProgress:a,fillWidth:l}){let n=e?"danger":"good";return a&&(l>s&&l<=t?n="warning":l>t&&(n=e?"good":"danger")),n}},41775:(e,s,t)=>{t.d(s,{v:()=>i});var r=t(59284),a=t(28664),l=t(77506),n=t(60712);const o=(0,l.cn)("ydb-search"),i=({onChange:e,value:s="",width:t,className:l,debounce:i=200,placeholder:c})=>{const[d,u]=r.useState(s),v=r.useRef();r.useEffect((()=>{u((e=>e!==s?s:e))}),[s]);return(0,n.jsx)(a.k,{hasClear:!0,autoFocus:!0,style:{width:t},className:o(null,l),placeholder:c,value:d,onUpdate:s=>{u(s),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===e||void 0===e||e(s)}),i)}})}},43951:(e,s,t)=>{t.d(s,{K:()=>l});var r=t(59284),a=t(59001);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.f.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.f.setUserSettingsValue(s,t),i(t)}),[s])}}},48288:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>se});var r=t(59284),a=t(4557),l=t(24555),n=t(69775),o=t(61750),i=t(90053),c=t(44508),d=t(52248),u=t(17594),v=t(95963),m=t(39567),h=t(23536),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,f=e=>e.clusters.version,b=(e,s)=>0===s.length||e.status&&s.includes(e.status),x=(e,s)=>0===s.length||e.service&&s.includes(e.service),E=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),j=(e,s="")=>{var t;if(!s)return!0;const r=s.toLowerCase(),a=r.split(" "),l=(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(76086),O=t(90182),C=t(43951),w=t(38596),A=t(15132),_=t(56839),y=t(48372);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.g4)("ydb-clusters-page",{ru:I,en:R});var z=t(77506);const L=(0,z.cn)("clusters");var k=t(60712);const V=({count:e,stats:s})=>{const{NodesTotal:t,NodesAlive:r,Hosts:a,Tenants:l,LoadAverage:n,NumberOfCpus:o,StorageUsed:i,StorageTotal:c}=s;return(0,k.jsxs)("div",{className:L("aggregation"),children:[(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_clusters")}),e]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_hosts")}),a]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_tenants")}),l]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_nodes")}),(0,k.jsx)(A.O,{size:"ns",value:r,capacity:t,colorizeProgress:!0,inverseColorize:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_load")}),(0,k.jsx)(A.O,{size:"ns",value:n,capacity:o,colorizeProgress:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_storage")}),(0,k.jsx)(A.O,{size:"ns",value:i,capacity:c,formatValues:_.j9,colorizeProgress:!0})]})]})};var U=t(6170),G=t(67884),W=t(18143),P=t(96873),M=t(34271);const $=(0,z.cn)("kv-user");function H({login:e,className:s}){const t=(0,M.x)("StaffCard");return(0,k.jsx)("div",{className:$(null,s),children:(0,k.jsx)(t,{login:e,children:(0,k.jsx)("div",{className:$("name"),children:e})})})}var B=t(31684),F=t(69446),q=t(87842);const K="selectedColumns",J={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},Q=[J.TITLE,J.VERSIONS,J.SERVICE,J.STATUS,J.NODES,J.LOAD,J.STORAGE,J.HOSTS,J.TENANTS,J.OWNER,J.BALANCER],X={[J.TITLE]:"Cluster",[J.VERSIONS]:"Versions",[J.DC]:"DC",[J.SERVICE]:"Service",[J.STATUS]:"Status",[J.NODES]:"Nodes",[J.LOAD]:"Load",[J.STORAGE]:"Storage",[J.HOSTS]:"Hosts",[J.TENANTS]:"Tenants",[J.OWNER]:"Owner",[J.DESCRIPTION]:"Description",[J.BALANCER]:"Balancer"},Y="clustersTableColumnsWidth",Z=(0,k.jsx)("span",{className:L("empty-cell"),children:"\u2014"}),ee=[{name:J.TITLE,header:X[J.TITLE],width:230,render:({row:e})=>{var s,t;const{balancer:r,name:a,use_embedded_ui:l}=e,n=r&&(0,F.PG)(r),o=l&&n?(0,B.t1)(n):(0,q.a)(void 0,{backend:n,clusterName:a}),i=null===(s=e.cluster)||void 0===s?void 0:s.Overall;return(0,k.jsxs)("div",{className:L("cluster"),children:[i?(0,k.jsx)(G.N,{href:o,children:(0,k.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,k.jsx)("div",{className:L("cluster-status"),children:(0,k.jsx)(U.B,{content:(0,k.jsx)("span",{className:L("tooltip-content"),children:(null===(t=e.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,k.jsx)("div",{className:L("cluster-name"),children:(0,k.jsx)(G.N,{href:o,children:e.title})})]})},defaultOrder:a.Ay.ASCENDING},{name:J.VERSIONS,header:X[J.VERSIONS],width:300,defaultOrder:a.Ay.DESCENDING,sortAccessor:({preparedVersions:e})=>e.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0,render:({row:e})=>{const{preparedVersions:s,versions:t=[],balancer:a,name:l}=e;if(!t.length||t.some((e=>!e.version)))return Z;const n=t.reduce(((e,s)=>e+s.count),0),o=t.map((e=>{var t;return{value:e.count/n*100,color:null===(t=s.find((s=>s.version===e.version)))||void 0===t?void 0:t.color}})),i=a&&(0,F.PG)(a);return s.length>0&&(0,k.jsx)(G.N,{className:L("cluster-versions"),href:(0,q.a)(q.Bi.versions,{backend:i,clusterName:l}),children:(0,k.jsxs)(r.Fragment,{children:[s.map(((e,s)=>(0,k.jsx)("div",{className:L("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,k.jsx)(W.k,{size:"s",value:100,stack:o})]})})}},{name:J.DC,header:X[J.DC],width:120,sortable:!1,render:({row:e})=>{const s=e.cluster&&e.cluster.DataCenters||[];return(0,k.jsx)("div",{className:L("cluster-dc"),children:s.join(", ")||Z})}},{name:J.SERVICE,header:X[J.SERVICE],width:100,sortable:!0},{name:J.STATUS,header:X[J.STATUS],width:150,sortable:!0},{name:J.NODES,header:X[J.NODES],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e={}})=>{const{NodesTotal:s=0}=e;return s},render:({row:e})=>{const{NodesAlive:s=0,NodesTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.LOAD,header:X[J.LOAD],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>null===e||void 0===e?void 0:e.NumberOfCpus,render:({row:e})=>{const{LoadAverage:s=0,NumberOfCpus:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.STORAGE,header:X[J.STORAGE],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.StorageTotal),render:({row:e})=>{const{StorageUsed:s=0,StorageTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t,formatValues:_.ki}):Z}},{name:J.HOSTS,header:X[J.HOSTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Hosts)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Hosts)||Z}},{name:J.TENANTS,header:X[J.TENANTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Tenants)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Tenants)||Z}},{name:J.OWNER,header:X[J.OWNER],sortable:!1,width:120,render:({row:e})=>{var s;const t=null===(s=e.owner)||void 0===s?void 0:s.split(", ");return null!==t&&void 0!==t&&t.length?t.map((e=>(0,k.jsx)(H,{login:e},e))):Z}},{name:J.DESCRIPTION,header:X[J.DESCRIPTION],sortable:!1,width:150,render:({row:e})=>e.description?(0,k.jsx)("div",{className:L("description"),children:e.description}):Z},{name:J.BALANCER,header:X[J.BALANCER],sortable:!1,width:290,render:({row:e})=>{if(!e.balancer)return Z;const s=(0,F.Zd)(e.balancer);return(0,k.jsxs)("div",{className:L("balancer-cell"),children:[(0,k.jsx)("div",{className:L("balancer-text"),children:s}),(0,k.jsx)(P.b,{size:"s",text:s,className:L("balancer-icon")})]})}}];function se(){const[e]=(0,O.Nt)(),s=m.ub.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,O.YQ)(),h=(0,O.N4)(g),N=(0,O.N4)(p),A=(0,O.N4)(S),_=(0,O.N4)(f),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,C.K)(ee,K,X,Q,[J.TITLE]),z=s.data,{servicesToSelect:U,versions:G}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==z&&void 0!==z?z:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,w.U)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[z]),W=r.useMemo((()=>function(e,s){return e.filter((e=>b(e,s.status)&&x(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==z&&void 0!==z?z:[],{clusterName:h,status:N,service:A,version:_})),[h,z,A,N,_]),P=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((({cluster:e})=>!(null!==e&&void 0!==e&&e.error))).forEach((({cluster:e,hosts:c={}})=>{s+=(null===e||void 0===e?void 0:e.NodesTotal)||0,t+=(null===e||void 0===e?void 0:e.NodesAlive)||0,Object.keys(c).forEach((e=>i.add(e))),o+=Number(null===e||void 0===e?void 0:e.Tenants)||0,r+=Number(null===e||void 0===e?void 0:e.LoadAverage)||0,a+=(null===e||void 0===e?void 0:e.NumberOfCpus)||0,l+=null!==e&&void 0!==e&&e.StorageUsed?Math.floor(parseInt(e.StorageUsed,10)):0,n+=null!==e&&void 0!==e&&e.StorageTotal?Math.floor(parseInt(e.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(W)),[W]),M=r.useMemo((()=>Array.from(new Set((null!==z&&void 0!==z?z:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[z]);return(0,k.jsxs)("div",{className:L(),children:[(0,k.jsx)(o.mg,{children:(0,k.jsx)("title",{children:D("page_title")})}),(0,k.jsx)(V,{stats:P,count:W.length}),(0,k.jsxs)("div",{className:L("controls"),children:[(0,k.jsx)("div",{className:L("control",{wide:!0}),children:(0,k.jsx)(v.v,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.Fe)({clusterName:e}))},value:h})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:M,onUpdate:e=>{t((0,m.Fe)({status:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.Fe)({service:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:_,options:G,onUpdate:e=>{t((0,m.Fe)({version:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(n.O,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,k.jsx)(i.E,{className:L("autorefresh")})]}),s.isError?(0,k.jsx)(c.o,{error:s.error,className:L("error")}):null,s.isLoading?(0,k.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,k.jsx)("div",{className:L("table-wrapper"),children:(0,k.jsx)("div",{className:L("table-content"),children:(0,k.jsx)(u.l,{columnsWidthLSKey:Y,wrapperClassName:L("table"),data:W,columns:y,settings:{...T.N3,dynamicRender:!1},initialSortOrder:{columnId:J.TITLE,order:a.Ay.ASCENDING}})})}):null]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},90053:(e,s,t)=>{t.d(s,{E:()=>h});var r=t(8873),a=t(84476),l=t(24555),n=t(21334),o=t(77506),i=t(90182),c=t(48372);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.g4)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(60712);const m=(0,o.cn)("auto-refresh-control");function h({className:e,onManualRefresh:s}){const t=(0,i.YQ)(),[o,c]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{t(n.F.util.invalidateTags(["All"])),null===s||void 0===s||s()},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(o)],onUpdate:e=>{c(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,v.jsx)(l.l.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.l.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.l.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.l.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.l.Option,{value:"300000",children:u("5 min")})]})]})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},98192:(e,s,t)=>{t.d(s,{CU:()=>a,om:()=>l});var r=t(82435);const a="gc-",l=((0,r.withNaming)({e:"__",m:"_",v:"_"}),(0,r.withNaming)({n:a,e:"__",m:"_",v:"_"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/37963.55ad78e4.chunk.js b/ydb/core/viewer/monitoring/static/js/37963.55ad78e4.chunk.js new file mode 100644 index 0000000000..6b216f3c82 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/37963.55ad78e4.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[37963],{37963:(e,n,r)=>{r.d(n,{default:()=>i});var t=r(69084);const i=r.n(t)()},69084:e=>{function n(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}e.exports=n,n.displayName="verilog",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/38103.a27aa378.chunk.js b/ydb/core/viewer/monitoring/static/js/38103.a27aa378.chunk.js new file mode 100644 index 0000000000..998b126243 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/38103.a27aa378.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[38103],{38103:function(e,t,r){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e),a={words:{m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["%d \u043c\u0438\u043d\u0443\u0442","%d \u043c\u0438\u043d\u0443\u0442\u0430","%d \u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["%d \u0441\u0430\u0442","%d \u0441\u0430\u0442\u0430","%d \u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["%d \u0434\u0430\u043d","%d \u0434\u0430\u043d\u0430","%d \u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["%d \u043c\u0435\u0441\u0435\u0446","%d \u043c\u0435\u0441\u0435\u0446\u0430","%d \u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["%d \u0433\u043e\u0434\u0438\u043d\u0443","%d \u0433\u043e\u0434\u0438\u043d\u0435","%d \u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,_){var m=a.words[r];if(1===r.length)return"y"===r&&t?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":_||t?m[0]:m[1];var d=a.correctGrammarCase(e,m);return"yy"===r&&t&&"%d \u0433\u043e\u0434\u0438\u043d\u0443"===d?e+" \u0433\u043e\u0434\u0438\u043d\u0430":d.replace("%d",e)}},_={name:"sr-cyrl",weekdays:"\u041d\u0435\u0434\u0435\u0459\u0430_\u041f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0423\u0442\u043e\u0440\u0430\u043a_\u0421\u0440\u0435\u0434\u0430_\u0427\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u041f\u0435\u0442\u0430\u043a_\u0421\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u041d\u0435\u0434._\u041f\u043e\u043d._\u0423\u0442\u043e._\u0421\u0440\u0435._\u0427\u0435\u0442._\u041f\u0435\u0442._\u0421\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),months:"\u0408\u0430\u043d\u0443\u0430\u0440_\u0424\u0435\u0431\u0440\u0443\u0430\u0440_\u041c\u0430\u0440\u0442_\u0410\u043f\u0440\u0438\u043b_\u041c\u0430\u0458_\u0408\u0443\u043d_\u0408\u0443\u043b_\u0410\u0432\u0433\u0443\u0441\u0442_\u0421\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u041e\u043a\u0442\u043e\u0431\u0430\u0440_\u041d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0414\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0408\u0430\u043d._\u0424\u0435\u0431._\u041c\u0430\u0440._\u0410\u043f\u0440._\u041c\u0430\u0458_\u0408\u0443\u043d_\u0408\u0443\u043b_\u0410\u0432\u0433._\u0421\u0435\u043f._\u041e\u043a\u0442._\u041d\u043e\u0432._\u0414\u0435\u0446.".split("_"),weekStart:1,relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:a.relativeTimeFormatter,mm:a.relativeTimeFormatter,h:a.relativeTimeFormatter,hh:a.relativeTimeFormatter,d:a.relativeTimeFormatter,dd:a.relativeTimeFormatter,M:a.relativeTimeFormatter,MM:a.relativeTimeFormatter,y:a.relativeTimeFormatter,yy:a.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return r.default.locale(_,null,!0),_}(r(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3812.368eb751.chunk.js b/ydb/core/viewer/monitoring/static/js/3812.368eb751.chunk.js deleted file mode 100644 index 1d5adec33a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3812.368eb751.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3812],{3685:(e,a,s)=>{s.d(a,{$:()=>u});var l=s(54090),t=s(77506),r=s(33775),n=s(60712);const o=(0,t.cn)("ydb-entity-page-title");function u({entityName:e,status:a=l.m.Grey,id:s,className:t}){return(0,n.jsxs)("div",{className:o(null,t),children:[(0,n.jsx)("span",{className:o("prefix"),children:e}),(0,n.jsx)(r.k,{className:o("icon"),status:a,size:"s"}),s]})}},42655:(e,a,s)=>{s.d(a,{y:()=>c});var l=s(59284),t=s(89169),r=s(77506),n=s(66781),o=s(60712);const u=(0,r.cn)("ydb-info-viewer-skeleton"),i=()=>(0,o.jsxs)("div",{className:u("label"),children:[(0,o.jsx)(t.E,{className:u("label__text")}),(0,o.jsx)("div",{className:u("label__dots")})]}),c=({rows:e=8,className:a,delay:s=600})=>{const[r]=(0,n.y)(s);let c=(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(i,{}),(0,o.jsx)(t.E,{className:u("value")})]});return r||(c=null),(0,o.jsx)("div",{className:u(null,a),children:[...new Array(e)].map(((e,a)=>(0,o.jsx)("div",{className:u("row"),children:c},`skeleton-row-${a}`)))})}},58389:(e,a,s)=>{s.d(a,{B:()=>p});var l=s(87184),t=s(77506),r=s(90053),n=s(70043),o=s(60712);const u=(0,t.cn)("ydb-page-meta"),i="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:a}){return(0,o.jsx)("div",{className:u("info"),children:a?(0,o.jsx)(n.E,{className:u("skeleton")}):e.filter((e=>Boolean(e))).join(i)})}function p({className:e,...a}){return(0,o.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:u(null,e),children:[(0,o.jsx)(c,{...a}),(0,o.jsx)(r.E,{})]})}},70043:(e,a,s)=>{s.d(a,{E:()=>n});var l=s(89169),t=s(66781),r=s(60712);const n=({delay:e=600,className:a})=>{const[s]=(0,t.y)(e);return s?(0,r.jsx)(l.E,{className:a}):null}},75510:(e,a,s)=>{s.r(a),s.d(a,{StorageGroupPage:()=>M});var l=s(59284),t=s(44992),r=s(61750),n=s(67087),o=s(3685),u=s(44508),i=s(42655),c=s(58389),p=s(87184),d=s(7435),g=s(56839),v=s(73891),m=s(41650),h=s(60073),y=s(15132),b=s(33775),f=s(48372);const x=JSON.parse('{"encryption":"Encryption","overall":"Overall","disk-space":"Disk Space","media-type":"Media Type","erasure-species":"Erasure Species","used-space":"Used Space","usage":"Usage","read-throughput":"Read Throughput","write-throughput":"Write Throughput","yes":"Yes","no":"No","group-generation":"Group Generation","latency":"Latency","allocation-units":"Units","state":"State","missing-disks":"Missing Disks","available":"Available Space","latency-put-tablet-log":"Latency (Put Tablet Log)","latency-put-user-data":"Latency (Put User Data)","latency-get-fast":"Latency (Get Fast)"}'),N=(0,f.g4)("storage-group-info",{en:x});var j=s(60712);function k({data:e,className:a,...s}){const{Encryption:l,Overall:t,DiskSpace:r,MediaType:n,ErasureSpecies:o,Used:u,Limit:i,Usage:c,Read:f,Write:x,GroupGeneration:k,Latency:S,AllocationUnits:w,State:G,MissingDisks:E,Available:L,LatencyPutTabletLogMs:P,LatencyPutUserDataMs:T,LatencyGetFastMs:$}=e||{},_=[];(0,d.f8)(k)&&_.push({label:N("group-generation"),value:k}),(0,d.f8)(o)&&_.push({label:N("erasure-species"),value:o}),(0,d.f8)(n)&&_.push({label:N("media-type"),value:n}),(0,d.f8)(l)&&_.push({label:N("encryption"),value:N(l?"yes":"no")}),(0,d.f8)(t)&&_.push({label:N("overall"),value:(0,j.jsx)(b.k,{status:t})}),(0,d.f8)(G)&&_.push({label:N("state"),value:G}),(0,d.f8)(E)&&_.push({label:N("missing-disks"),value:E});const I=[];return(0,d.f8)(u)&&(0,d.f8)(i)&&I.push({label:N("used-space"),value:(0,j.jsx)(y.O,{value:Number(u),capacity:Number(i),formatValues:g.vX,colorizeProgress:!0})}),(0,d.f8)(L)&&I.push({label:N("available"),value:(0,g.vX)(Number(L))}),(0,d.f8)(c)&&I.push({label:N("usage"),value:`${c.toFixed(2)}%`}),(0,d.f8)(r)&&I.push({label:N("disk-space"),value:(0,j.jsx)(b.k,{status:r})}),(0,d.f8)(S)&&I.push({label:N("latency"),value:(0,j.jsx)(b.k,{status:S})}),(0,d.f8)(P)&&I.push({label:N("latency-put-tablet-log"),value:(0,v.Xo)(P)}),(0,d.f8)(T)&&I.push({label:N("latency-put-user-data"),value:(0,v.Xo)(T)}),(0,d.f8)($)&&I.push({label:N("latency-get-fast"),value:(0,v.Xo)($)}),(0,d.f8)(w)&&I.push({label:N("allocation-units"),value:w}),(0,d.f8)(f)&&I.push({label:N("read-throughput"),value:(0,m.O4)(Number(f))}),(0,d.f8)(x)&&I.push({label:N("write-throughput"),value:(0,m.O4)(Number(x))}),(0,j.jsxs)(p.s,{className:a,gap:2,direction:"row",wrap:!0,children:[(0,j.jsx)(h.z_,{info:_,...s}),(0,j.jsx)(h.z_,{info:I,...s})]})}var S=s(67028),w=s(40174),G=s(10174),E=s(54090),L=s(77506),P=s(90182),T=s(99936);const $=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),_=(0,f.g4)("ydb-storage-group-page",{en:$}),I=(0,L.cn)("ydb-storage-group-page");function M(){var e,a;const s=(0,P.YQ)(),p=l.useRef(null),[{groupId:g}]=(0,n.useQueryParams)({groupId:n.StringParam});l.useEffect((()=>{s((0,w.g)("storageGroup",{groupId:g}))}),[s,g]);const[v]=(0,P.Nt)(),m=(0,S.YA)(),h=(0,S.Pm)(),y=G.S.useGetStorageGroupsInfoQuery((0,d.f8)(g)?{groupId:g,shouldUseGroupsHandler:m,with:"all",fieldsRequired:"all"}:t.hT,{pollingInterval:v,skip:!h}),b=null===(e=y.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],f=y.isFetching&&void 0===b;return(0,j.jsxs)("div",{className:I(null),ref:p,children:[(()=>{const e=g?`${_("storage-group")} ${g}`:_("storage-group");return(0,j.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!g)return null;const e=[`${_("pool-name")}: ${null===b||void 0===b?void 0:b.PoolName}`];return(0,j.jsx)(c.B,{className:I("meta"),loading:f,items:e})})(),(0,j.jsx)(o.$,{className:I("title"),entityName:_("storage-group"),status:(null===b||void 0===b?void 0:b.Overall)||E.m.Grey,id:g}),y.error?(0,j.jsx)(u.o,{error:y.error}):null,f?(0,j.jsx)(i.y,{className:I("info"),rows:10}):(0,j.jsx)(k,{data:b,className:I("info")}),g?(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)("div",{className:I("storage-title"),children:_("storage")}),(0,j.jsx)(T.z,{groupId:g,parentRef:p,viewContext:{groupId:null===g||void 0===g?void 0:g.toString()}})]}):null]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js b/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js deleted file mode 100644 index 9ad5f4ed20..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3822.00ab6aaa.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3822],{33822:(t,n,e)=>{e.r(n),e.d(n,{conf:()=>r,language:()=>s});var r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function a(t){let n=[];const e=t.split(/\t+|\r+|\n+| +/);for(let r=0;r<e.length;++r)e[r].length>0&&n.push(e[r]);return n}var o=/[_\p{XID_Start}]\p{XID_Continue}*/u,i="variable.predefined",s={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:a("true false"),keywords:a("\n\t\t\t alias\n\t\t\t break\n\t\t\t case\n\t\t\t const\n\t\t\t const_assert\n\t\t\t continue\n\t\t\t continuing\n\t\t\t default\n\t\t\t diagnostic\n\t\t\t discard\n\t\t\t else\n\t\t\t enable\n\t\t\t fn\n\t\t\t for\n\t\t\t if\n\t\t\t let\n\t\t\t loop\n\t\t\t override\n\t\t\t requires\n\t\t\t return\n\t\t\t struct\n\t\t\t switch\n\t\t\t var\n\t\t\t while\n\t\t\t "),reserved:a("\n\t\t\t NULL\n\t\t\t Self\n\t\t\t abstract\n\t\t\t active\n\t\t\t alignas\n\t\t\t alignof\n\t\t\t as\n\t\t\t asm\n\t\t\t asm_fragment\n\t\t\t async\n\t\t\t attribute\n\t\t\t auto\n\t\t\t await\n\t\t\t become\n\t\t\t binding_array\n\t\t\t cast\n\t\t\t catch\n\t\t\t class\n\t\t\t co_await\n\t\t\t co_return\n\t\t\t co_yield\n\t\t\t coherent\n\t\t\t column_major\n\t\t\t common\n\t\t\t compile\n\t\t\t compile_fragment\n\t\t\t concept\n\t\t\t const_cast\n\t\t\t consteval\n\t\t\t constexpr\n\t\t\t constinit\n\t\t\t crate\n\t\t\t debugger\n\t\t\t decltype\n\t\t\t delete\n\t\t\t demote\n\t\t\t demote_to_helper\n\t\t\t do\n\t\t\t dynamic_cast\n\t\t\t enum\n\t\t\t explicit\n\t\t\t export\n\t\t\t extends\n\t\t\t extern\n\t\t\t external\n\t\t\t fallthrough\n\t\t\t filter\n\t\t\t final\n\t\t\t finally\n\t\t\t friend\n\t\t\t from\n\t\t\t fxgroup\n\t\t\t get\n\t\t\t goto\n\t\t\t groupshared\n\t\t\t highp\n\t\t\t impl\n\t\t\t implements\n\t\t\t import\n\t\t\t inline\n\t\t\t instanceof\n\t\t\t interface\n\t\t\t layout\n\t\t\t lowp\n\t\t\t macro\n\t\t\t macro_rules\n\t\t\t match\n\t\t\t mediump\n\t\t\t meta\n\t\t\t mod\n\t\t\t module\n\t\t\t move\n\t\t\t mut\n\t\t\t mutable\n\t\t\t namespace\n\t\t\t new\n\t\t\t nil\n\t\t\t noexcept\n\t\t\t noinline\n\t\t\t nointerpolation\n\t\t\t noperspective\n\t\t\t null\n\t\t\t nullptr\n\t\t\t of\n\t\t\t operator\n\t\t\t package\n\t\t\t packoffset\n\t\t\t partition\n\t\t\t pass\n\t\t\t patch\n\t\t\t pixelfragment\n\t\t\t precise\n\t\t\t precision\n\t\t\t premerge\n\t\t\t priv\n\t\t\t protected\n\t\t\t pub\n\t\t\t public\n\t\t\t readonly\n\t\t\t ref\n\t\t\t regardless\n\t\t\t register\n\t\t\t reinterpret_cast\n\t\t\t require\n\t\t\t resource\n\t\t\t restrict\n\t\t\t self\n\t\t\t set\n\t\t\t shared\n\t\t\t sizeof\n\t\t\t smooth\n\t\t\t snorm\n\t\t\t static\n\t\t\t static_assert\n\t\t\t static_cast\n\t\t\t std\n\t\t\t subroutine\n\t\t\t super\n\t\t\t target\n\t\t\t template\n\t\t\t this\n\t\t\t thread_local\n\t\t\t throw\n\t\t\t trait\n\t\t\t try\n\t\t\t type\n\t\t\t typedef\n\t\t\t typeid\n\t\t\t typename\n\t\t\t typeof\n\t\t\t union\n\t\t\t unless\n\t\t\t unorm\n\t\t\t unsafe\n\t\t\t unsized\n\t\t\t use\n\t\t\t using\n\t\t\t varying\n\t\t\t virtual\n\t\t\t volatile\n\t\t\t wgsl\n\t\t\t where\n\t\t\t with\n\t\t\t writeonly\n\t\t\t yield\n\t\t\t "),predeclared_enums:a("\n\t\tread write read_write\n\t\tfunction private workgroup uniform storage\n\t\tperspective linear flat\n\t\tcenter centroid sample\n\t\tvertex_index instance_index position front_facing frag_depth\n\t\t\tlocal_invocation_id local_invocation_index\n\t\t\tglobal_invocation_id workgroup_id num_workgroups\n\t\t\tsample_index sample_mask\n\t\trgba8unorm\n\t\trgba8snorm\n\t\trgba8uint\n\t\trgba8sint\n\t\trgba16uint\n\t\trgba16sint\n\t\trgba16float\n\t\tr32uint\n\t\tr32sint\n\t\tr32float\n\t\trg32uint\n\t\trg32sint\n\t\trg32float\n\t\trgba32uint\n\t\trgba32sint\n\t\trgba32float\n\t\tbgra8unorm\n"),predeclared_types:a("\n\t\tbool\n\t\tf16\n\t\tf32\n\t\ti32\n\t\tsampler sampler_comparison\n\t\ttexture_depth_2d\n\t\ttexture_depth_2d_array\n\t\ttexture_depth_cube\n\t\ttexture_depth_cube_array\n\t\ttexture_depth_multisampled_2d\n\t\ttexture_external\n\t\ttexture_external\n\t\tu32\n\t\t"),predeclared_type_generators:a("\n\t\tarray\n\t\tatomic\n\t\tmat2x2\n\t\tmat2x3\n\t\tmat2x4\n\t\tmat3x2\n\t\tmat3x3\n\t\tmat3x4\n\t\tmat4x2\n\t\tmat4x3\n\t\tmat4x4\n\t\tptr\n\t\ttexture_1d\n\t\ttexture_2d\n\t\ttexture_2d_array\n\t\ttexture_3d\n\t\ttexture_cube\n\t\ttexture_cube_array\n\t\ttexture_multisampled_2d\n\t\ttexture_storage_1d\n\t\ttexture_storage_2d\n\t\ttexture_storage_2d_array\n\t\ttexture_storage_3d\n\t\tvec2\n\t\tvec3\n\t\tvec4\n\t\t"),predeclared_type_aliases:a("\n\t\tvec2i vec3i vec4i\n\t\tvec2u vec3u vec4u\n\t\tvec2f vec3f vec4f\n\t\tvec2h vec3h vec4h\n\t\tmat2x2f mat2x3f mat2x4f\n\t\tmat3x2f mat3x3f mat3x4f\n\t\tmat4x2f mat4x3f mat4x4f\n\t\tmat2x2h mat2x3h mat2x4h\n\t\tmat3x2h mat3x3h mat3x4h\n\t\tmat4x2h mat4x3h mat4x4h\n\t\t"),predeclared_intrinsics:a("\n bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2\n ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross\n degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit\n firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length\n log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract\n reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose\n trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine\n textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers\n textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare\n textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge\n textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin\n atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm\n pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm\n unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier\n workgroupUniformLoad\n"),operators:a("\n\t\t\t\t\t &\n\t\t\t\t\t &&\n\t\t\t\t\t ->\n\t\t\t\t\t /\n\t\t\t\t\t =\n\t\t\t\t\t ==\n\t\t\t\t\t !=\n\t\t\t\t\t >\n\t\t\t\t\t >=\n\t\t\t\t\t <\n\t\t\t\t\t <=\n\t\t\t\t\t %\n\t\t\t\t\t -\n\t\t\t\t\t --\n\t\t\t\t\t +\n\t\t\t\t\t ++\n\t\t\t\t\t |\n\t\t\t\t\t ||\n\t\t\t\t\t *\n\t\t\t\t\t <<\n\t\t\t\t\t >>\n\t\t\t\t\t +=\n\t\t\t\t\t -=\n\t\t\t\t\t *=\n\t\t\t\t\t /=\n\t\t\t\t\t %=\n\t\t\t\t\t &=\n\t\t\t\t\t |=\n\t\t\t\t\t ^=\n\t\t\t\t\t >>=\n\t\t\t\t\t <<=\n\t\t\t\t\t "),symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[/enable|requires|diagnostic/,"keyword","@directive"],[o,{cases:{"@atoms":i,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":i,"@predeclared_types":i,"@predeclared_type_generators":i,"@predeclared_type_aliases":i,"@predeclared_intrinsics":i,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[o,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/38527.b39cc908.chunk.js b/ydb/core/viewer/monitoring/static/js/38527.b39cc908.chunk.js new file mode 100644 index 0000000000..81ef98fdb0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/38527.b39cc908.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[38527],{45659:(e,t,i)=>{i.d(t,{Q:()=>v});var s=i(87184),o=i(92459),n=i(7435),a=i(46549),l=i(56839),d=i(31684),r=i(12888),c=i(18863),u=i(25196),m=i(15132),p=i(33775),g=i(50672),h=i(60712);function v({pDisk:e,nodeId:t,withPDiskPageLink:i,className:v}){const D=(0,r.X)(),[f,k,b,S]=function({pDisk:e,nodeId:t,withPDiskPageLink:i,isUserAllowedToMakeChanges:r}){const{PDiskId:c,Path:v,Guid:D,Category:f,Type:k,Device:b,Realtime:S,State:x,SerialNumber:I,TotalSize:y,AllocatedSize:w,StatusV2:N,NumActiveSlots:j,ExpectedSlotCount:T,LogUsedSize:E,LogTotalSize:P,SystemSize:C,SharedWithOs:z}=e||{},M=[];(0,n.f8)(f)&&M.push({label:(0,g.D)("type"),value:k}),(0,n.f8)(v)&&M.push({label:(0,g.D)("path"),value:v}),(0,n.f8)(D)&&M.push({label:(0,g.D)("guid"),value:D}),I&&M.push({label:(0,g.D)("serial-number"),value:I}),z&&M.push({label:(0,g.D)("shared-with-os"),value:(0,g.D)("yes")});const O=[];(0,n.f8)(N)&&O.push({label:(0,g.D)("drive-status"),value:N}),(0,n.f8)(x)&&O.push({label:(0,g.D)("state"),value:x}),(0,n.f8)(b)&&O.push({label:(0,g.D)("device"),value:(0,h.jsx)(p.k,{status:b})}),(0,n.f8)(S)&&O.push({label:(0,g.D)("realtime"),value:(0,h.jsx)(p.k,{status:S})});const A=[];A.push({label:(0,g.D)("space"),value:(0,h.jsx)(m.O,{value:w,capacity:y,formatValues:l.vX,colorizeProgress:!0})}),(0,n.f8)(j)&&(0,n.f8)(T)&&A.push({label:(0,g.D)("slots"),value:(0,h.jsx)(m.O,{value:j,capacity:T})}),(0,n.f8)(E)&&(0,n.f8)(P)&&A.push({label:(0,g.D)("log-size"),value:(0,h.jsx)(m.O,{value:E,capacity:P,formatValues:l.vX})}),(0,n.f8)(C)&&A.push({label:(0,g.D)("system-size"),value:(0,a.z3)({value:C})});const _=[];if((i||r)&&(0,n.f8)(c)&&(0,n.f8)(t)){const e=(0,o.Ck)(c,t),n=(0,d.ar)({nodeId:t,pDiskId:c});_.push({label:(0,g.D)("links"),value:(0,h.jsxs)(s.s,{wrap:"wrap",gap:2,children:[i&&(0,h.jsx)(u.K,{title:(0,g.D)("pdisk-page"),url:e,external:!1}),r&&(0,h.jsx)(u.K,{title:(0,g.D)("developer-ui"),url:n})]})})}return[M,O,A,_]}({pDisk:e,nodeId:t,withPDiskPageLink:i,isUserAllowedToMakeChanges:D});return(0,h.jsxs)(s.s,{className:v,gap:2,direction:"row",wrap:!0,children:[(0,h.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,h.jsx)(c.z,{info:f,renderEmptyState:()=>null}),(0,h.jsx)(c.z,{info:b,renderEmptyState:()=>null})]}),(0,h.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,h.jsx)(c.z,{info:k,renderEmptyState:()=>null}),(0,h.jsx)(c.z,{info:S,renderEmptyState:()=>null})]})]})}},69134:(e,t,i)=>{i.r(t),i.d(t,{PDiskPage:()=>be});var s=i(59284),o=i(76938),n=i(99991),a=i(23871),l=i(44992),d=i(61750),r=i(67087),c=i(370),u=i(22983),m=i(3685),p=i(44508),g=i(42655),h=i(82015),v=i(45659),D=i(58389),f=i(92459),k=i(21334),b=i(67028),S=i(40174),x=i(7187),I=i(68712),y=i(7435),w=i(27295),N=i(78034);const j=k.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:i,getState:s,dispatch:o})=>{let n;n=await(0,I.FC)("/pdisk/info",void 0,{getState:s,dispatch:o})>0?window.api.pdisk.getPDiskInfo({nodeId:e,pDiskId:t},{signal:i}):window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{signal:i}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const t=await Promise.all([n,window.api.viewer.getNodeInfo(e,{signal:i})]);return{data:function([e={},t]){var i,s,o;const n=null===(i=t.SystemStateInfo)||void 0===i?void 0:i[0],a=(0,N.q1)(n),{BSC:l={},Whiteboard:d={}}=e||{},{PDisk:r={},VDisks:c=[]}=d,{PDisk:u={}}=l,m=(0,w.or)({...u,...r}),p=null!==(s=m.NodeId)&&void 0!==s?s:a.NodeId,{LogUsedSize:g,LogTotalSize:h,TotalSize:v,SystemSize:D,ExpectedSlotCount:f,SlotSize:k}=m;let b;if((0,y.f8)(h)){const e=100*Number(g)/Number(h);b={SlotType:"log",Used:Number(g),Total:Number(h),UsagePercent:e,Severity:(0,x.SW)(e),SlotData:{LogUsedSize:g,LogTotalSize:h,SystemSize:D}}}const S=c.map((e=>(0,w.WT)({...e,NodeId:p})));S.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const I=S.map((e=>{var t;const i=(0,x.SW)(e.AllocatedPercent);return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:i,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let j=[];if(f&&f>I.length){const e=f-I.length;let t=Number(k);if(isNaN(t)){const i=I.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(v)-i-Number(h))/e}j=(0,y._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const T=[...I,...j];return b&&T.length>0&&T.unshift(b),{...m,NodeId:p,NodeHost:a.Host,NodeType:null===(o=a.Roles)||void 0===o?void 0:o[0],NodeDC:a.DC,SlotItems:T}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,i)=>["All",{type:"PDiskData",id:(0,x.r$)(i.nodeId,i.pDiskId)}]})}),overrideExisting:"throw"});var T=i(77506),E=i(90182),P=i(12888),C=i(99936),z=i(13066),M=i(40569),O=i(84375),A=i(84476),_=i(55974),R=i(42829),L=i(48372);const V=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","space-distribution":"Space distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),$=(0,L.g4)("ydb-pDisk-page",{en:V});var U,B,H,W;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},G.apply(null,arguments)}const J=function(e){return s.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),U||(U=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),B||(B=s.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),H||(H=s.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),W||(W=s.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var X=i(60712);const F=(0,T.cn)("ydb-pdisk-decommission-button");function Q(e){return"DECOMMIT_IMMINENT"===e?$("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?$("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?$("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?$("decommission-dialog-none-warning"):void 0}function Y({decommission:e,onConfirmAction:t,onConfirmActionSuccess:i,buttonDisabled:o,popoverDisabled:n}){const[a,l]=s.useState(),[d,r]=s.useState(!1),[c,u]=s.useState(!1),m=function(e,t){return[{text:$("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:$("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:$("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:$("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,X.jsxs)(s.Fragment,{children:[(0,X.jsx)(M.r,{renderSwitcher:e=>(0,X.jsx)(q,{popoverDisabled:n,loading:d,disabled:o,...e}),items:m,popupProps:{className:F("popup")}}),(0,X.jsx)(_.g,{visible:Boolean(a),header:$("decommission-dialog-title"),text:Q(a),withRetry:c,withCheckBox:!0,retryButtonText:$("decommission-dialog-force-change"),onConfirm:async e=>{r(!0),await t(a,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,y.uk)(5e3);try{await i()}finally{r(!1)}},onConfirmActionError:e=>{u((0,R.D)(e)),r(!1)},onClose:()=>{l(void 0)}})]})}function q({popoverDisabled:e,...t}){return(0,X.jsx)(O.A,{content:$("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,X.jsxs)(A.$,{view:"normal",className:F("button"),...t,children:[(0,X.jsx)(n.I,{data:J}),$("decommission-button"),(0,X.jsx)(n.I,{data:z.A})]})})}var K=i(47665);function Z(e){return $("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,X.jsx)(K.J,{theme:"danger",size:"m",children:Z($("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,X.jsx)(K.J,{theme:"warning",size:"m",children:Z($("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,X.jsx)(K.J,{theme:"normal",size:"m",children:Z($("decommission-rejected"))}):null}var te=i(88226),ie=i(13096),se=i(60073),oe=i(44294),ne=i(15132),ae=i(67808),le=i(46549),de=i(56839);const re=(0,T.cn)("ydb-pdisk-space-distribution"),ce=40;function ue({data:e}){const{SlotItems:t}=e,{PDiskId:i,NodeId:s}=e,o=ce*((null===t||void 0===t?void 0:t.length)||1);return null!==t&&void 0!==t&&t.length?(0,X.jsx)("div",{className:re(null),style:{height:o,minHeight:o},children:(0,X.jsx)(te.V,{className:re("pdisk-bar"),severity:e.Severity,diskAllocatedPercent:e.AllocatedPercent,content:null===t||void 0===t?void 0:t.map(((e,t)=>(0,X.jsx)(me,{item:e,pDiskId:i,nodeId:s},t))),faded:!0})}):$("no-slots-data")}function me({item:e,pDiskId:t,nodeId:i}){return(0,X.jsx)("div",{className:re("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var s;const o=(0,y.f8)(null===(s=e.SlotData)||void 0===s?void 0:s.VDiskSlotId)&&(0,y.f8)(t)&&(0,y.f8)(i)?(0,f.yX)(e.SlotData.VDiskSlotId,t,i):void 0;return(0,X.jsx)(ie.P,{popupContent:(0,X.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(oe.E,{to:o,children:(0,X.jsx)(te.V,{className:re("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,X.jsx)(ie.P,{popupContent:(0,X.jsx)(ge,{data:e.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:re("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{title:$("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,X.jsx)(ie.P,{popupContent:(0,X.jsx)(he,{data:e.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:re("slot"),severity:e.Severity,empty:!0,content:(0,X.jsx)(pe,{title:$("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:i,total:s}){return(0,X.jsxs)("div",{className:re("slot-content"),children:[(0,X.jsxs)("span",{children:[(0,y.f8)(e)?(0,X.jsx)("span",{className:re("slot-id"),children:e}):null,t]}),(0,X.jsx)("span",{className:re("slot-size"),children:(()=>{const[e,t]=(0,de.vX)(i,s);return s?`${e} / ${t}`:e})()})]})}function ge({data:e}){const{LogTotalSize:t,LogUsedSize:i,SystemSize:s}=e,o=[{label:$("label.log-size"),value:(0,X.jsx)(ne.O,{value:i,capacity:t,formatValues:de.vX})}];return(0,y.f8)(s)&&o.push({label:$("label.system-size"),value:(0,le.z3)({value:s})}),(0,X.jsx)(se.z_,{title:$("log"),info:o})}function he({data:e}){const{Size:t}=e,i=[{label:$("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,X.jsx)(se.z_,{title:$("empty-slot"),info:i})}const ve=(0,T.cn)("ydb-pdisk-page"),De={spaceDistribution:"spaceDistribution",storage:"storage"},fe=[{id:De.spaceDistribution,get title(){return $("space-distribution")}},{id:De.storage,get title(){return $("storage")}}],ke=c.z.nativeEnum(De).catch(De.spaceDistribution);function be(){const e=(0,E.YQ)(),t=(0,P.X)(),i=(0,b.c2)(),c=s.useRef(null),[{nodeId:I,pDiskId:w,activeTab:N}]=(0,r.useQueryParams)({activeTab:r.StringParam,nodeId:r.StringParam,pDiskId:r.StringParam}),T=(0,y.f8)(I)&&(0,y.f8)(w),z=ke.parse(N);s.useEffect((()=>{e((0,S.g)("pDisk",{nodeId:I,pDiskId:w}))}),[e,I,w]);const[M]=(0,E.Nt)(),O=T?{nodeId:I,pDiskId:w}:l.hT,A=j.useGetPdiskInfoQuery(O,{pollingInterval:M}),_=A.isFetching&&void 0===A.currentData,R=A.currentData,{NodeHost:L,NodeId:V,NodeType:U,NodeDC:B,Severity:H,DecommitStatus:W}=R||{},G=async e=>{if(T){const t=await window.api.pdisk[i?"restartPDisk":"restartPDiskOld"]({nodeId:I,pDiskId:w,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},J=async(e,t)=>{if(T){const i=await window.api.pdisk.changePDiskStatus({nodeId:I,pDiskId:w,force:t,decommissionStatus:e});if(!1===(null===i||void 0===i?void 0:i.result)){throw{statusText:i.error,retryPossible:i.forceRetryPossible}}}},F=()=>{T&&e(k.F.util.invalidateTags([{type:"PDiskData",id:(0,x.r$)(I,w)}]),"StorageData")};return(0,X.jsxs)("div",{className:ve(null),ref:c,children:[(()=>{const e=w?`${$("pdisk")} ${w}`:$("pdisk"),t=L||$("node");return(0,X.jsx)(d.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=L?`${$("fqdn")}: ${L}`:void 0,t=V?`${$("node")}: ${V}`:void 0;return(0,X.jsx)(D.B,{loading:_,items:[e,t,U,B],className:ve("meta")})})(),(0,X.jsxs)("div",{className:ve("title"),children:[(0,X.jsx)(m.$,{entityName:$("pdisk"),status:(0,x.XY)(H),id:(0,x.r$)(I,w)}),(0,X.jsx)(ee,{decommission:W})]}),(0,X.jsxs)("div",{className:ve("controls"),children:[(0,X.jsxs)(u.B,{onConfirmAction:G,onConfirmActionSuccess:F,buttonDisabled:!T||!t,buttonView:"normal",dialogHeader:$("restart-pdisk-dialog-header"),dialogText:$("restart-pdisk-dialog-text"),retryButtonText:$("force-restart-pdisk-button"),withPopover:!0,popoverContent:$("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,X.jsx)(n.I,{data:o.A}),$("restart-pdisk-button")]}),i?(0,X.jsx)(Y,{decommission:W,onConfirmAction:J,onConfirmActionSuccess:F,buttonDisabled:!T||!t,popoverDisabled:t}):null]}),A.error?(0,X.jsx)(p.o,{error:A.error}):null,_?(0,X.jsx)(g.y,{className:ve("info"),rows:10}):(0,X.jsx)(v.Q,{pDisk:R,nodeId:I,className:ve("info")}),(0,X.jsx)("div",{className:ve("tabs"),children:(0,X.jsx)(a.t,{size:"l",items:fe,activeTab:z,wrapTo:({id:e},t)=>{const i=T?(0,f.Ck)(w,I,{activeTab:e}):void 0;return(0,X.jsx)(h.E,{to:i,children:t},e)}})}),(()=>{switch(z){case"spaceDistribution":return R?(0,X.jsx)("div",{className:ve("disk-distribution"),children:(0,X.jsx)(ue,{data:R})}):null;case"storage":return T?(0,X.jsx)(C.z,{nodeId:I,pDiskId:w,parentRef:c,viewContext:{nodeId:null===I||void 0===I?void 0:I.toString(),pDiskId:null===w||void 0===w?void 0:w.toString()}}):null;default:return null}})()]})}},76938:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(59284);const o=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/38718.bf415be7.chunk.js b/ydb/core/viewer/monitoring/static/js/38718.bf415be7.chunk.js new file mode 100644 index 0000000000..072b73bfe3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/38718.bf415be7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[38718],{38718:(E,_,e)=>{e.d(_,{default:()=>R});var I=e(90095);const R=e.n(I)()},89343:E=>{function _(E){E.languages.c=E.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),E.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),E.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},E.languages.c.string],char:E.languages.c.char,comment:E.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:E.languages.c}}}}),E.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete E.languages.c.boolean}E.exports=_,_.displayName="c",_.aliases=[]},90095:(E,_,e)=>{var I=e(89343);function R(E){E.register(I),function(E){E.languages.opencl=E.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),E.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var _={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};E.languages.insertBefore("c","keyword",_),E.languages.cpp&&(_["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},E.languages.insertBefore("cpp","keyword",_))}(E)}E.exports=R,R.displayName="opencl",R.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3879.17f211ad.chunk.js b/ydb/core/viewer/monitoring/static/js/3879.17f211ad.chunk.js deleted file mode 100644 index f4cc5534a4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3879.17f211ad.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3879],{73879:function(e,a,d){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(e),_={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return d.default.locale(_,null,!0),_}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/39705.257f0583.chunk.js b/ydb/core/viewer/monitoring/static/js/39705.257f0583.chunk.js new file mode 100644 index 0000000000..398bf26ad9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/39705.257f0583.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[39705],{39705:(e,a,r)=>{r.d(a,{default:()=>i});var t=r(79552);const i=r.n(t)()},79552:e=>{function a(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e.exports=a,a.displayName="pascal",a.aliases=["objectpascal"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js b/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js deleted file mode 100644 index 660adc52b7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3977.4c33ec16.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3977],{56358:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>r,language:()=>n});var r={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3980.f3083535.chunk.js b/ydb/core/viewer/monitoring/static/js/3980.f3083535.chunk.js new file mode 100644 index 0000000000..d669723b62 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3980.f3083535.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3980],{3980:(n,t,E)=>{E.d(t,{default:()=>r});var e=E(90561);const r=E.n(e)()},90561:n=>{function t(n){!function(n){var t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript}(n)}n.exports=t,t.displayName="typoscript",t.aliases=["tsconfig"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/40047.1e272b92.chunk.js b/ydb/core/viewer/monitoring/static/js/40047.1e272b92.chunk.js new file mode 100644 index 0000000000..1e00917e2e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/40047.1e272b92.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[40047],{40047:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"kk",weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekStart:1,relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/40060.5f9cbddd.chunk.js b/ydb/core/viewer/monitoring/static/js/40060.5f9cbddd.chunk.js new file mode 100644 index 0000000000..e85e6d5177 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/40060.5f9cbddd.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[40060],{40060:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"fa",weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekStart:6,months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/40132.8f54cbd2.chunk.js b/ydb/core/viewer/monitoring/static/js/40132.8f54cbd2.chunk.js new file mode 100644 index 0000000000..f3c38b82c8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/40132.8f54cbd2.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 40132.8f54cbd2.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[40132],{40132:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>r,language:()=>n});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},n={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","strict","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/40132.8f54cbd2.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/40132.8f54cbd2.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/4018.f6c8e2ef.chunk.js b/ydb/core/viewer/monitoring/static/js/4018.f6c8e2ef.chunk.js new file mode 100644 index 0000000000..a2a56a9190 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4018.f6c8e2ef.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4018],{4018:(e,t,s)=>{s.d(t,{default:()=>a});var r=s(63761);const a=s.n(r)()},63761:e=>{function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}e.exports=t,t.displayName="q",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/40388.be25f07a.chunk.js b/ydb/core/viewer/monitoring/static/js/40388.be25f07a.chunk.js new file mode 100644 index 0000000000..56667eb41b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/40388.be25f07a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[40388],{33299:e=>{function u(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\u043f\u043e\u043a\u0430|\u0434\u043b\u044f|\u043d\u043e\u0432\u044b\u0439|\u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c|\u043f\u043e\u043f\u044b\u0442\u043a\u0430|\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435|\u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435|\u0438\u043d\u0430\u0447\u0435|\u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043f\u044b\u0442\u043a\u0438|\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e|\u0444\u0443\u043d\u043a\u0446\u0438\u044f|\u043f\u0435\u0440\u0435\u043c|\u0432\u043e\u0437\u0432\u0440\u0430\u0442|\u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438|\u0435\u0441\u043b\u0438|\u0438\u043d\u0430\u0447\u0435\u0435\u0441\u043b\u0438|\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430|\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b|\u0442\u043e\u0433\u0434\u0430|\u0437\u043d\u0430\u0447|\u044d\u043a\u0441\u043f\u043e\u0440\u0442|\u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438|\u0438\u0437|\u043a\u0430\u0436\u0434\u043e\u0433\u043e|\u0438\u0441\u0442\u0438\u043d\u0430|\u043b\u043e\u0436\u044c|\u043f\u043e|\u0446\u0438\u043a\u043b|\u043a\u043e\u043d\u0435\u0446\u0446\u0438\u043a\u043b\u0430|\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\u0438|\u0438\u043b\u0438|\u043d\u0435)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}e.exports=u,u.displayName="bsl",u.aliases=[]},40388:(e,u,d)=>{d.d(u,{default:()=>n});var a=d(33299);const n=d.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/40710.a00731c6.chunk.js b/ydb/core/viewer/monitoring/static/js/40710.a00731c6.chunk.js new file mode 100644 index 0000000000..d478491cd9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/40710.a00731c6.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[40710],{40710:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"uz",weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),weekStart:1,weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"%s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/40730.5e1bc3d1.chunk.js b/ydb/core/viewer/monitoring/static/js/40730.5e1bc3d1.chunk.js new file mode 100644 index 0000000000..18fdb0eb74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/40730.5e1bc3d1.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[40730],{40730:function(e){e.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var _=["th","st","nd","rd"],a=e%100;return"["+e+(_[(a-20)%10]||_[a]||_[0])+"]"}}}()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4096.33f702a0.chunk.js b/ydb/core/viewer/monitoring/static/js/4096.33f702a0.chunk.js deleted file mode 100644 index 2e52252aef..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4096.33f702a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4096],{44096:function(t,_,e){t.exports=function(t){"use strict";function _(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=_(t),a={name:"mt",weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),weekStart:1,weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"}};return e.default.locale(a,null,!0),a}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4130.4d4b9fad.chunk.js b/ydb/core/viewer/monitoring/static/js/4130.4d4b9fad.chunk.js deleted file mode 100644 index fa73a6b17a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4130.4d4b9fad.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4130],{23536:(e,t,n)=>{var i=n(68814),s=/[\\^$.*+?()[\]{}|]/g,a=RegExp(s.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(s,"\\$&"):e}},38501:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(46878);function s(){return(0,i.w)().theme}},69775:(e,t,n)=>{"use strict";n.d(t,{O:()=>Ce});var i=n(59284),s=n(27738),a=n(84476),d=n(99991),l=n(66821);const r=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 6V5a2.5 2.5 0 0 0-5 0v1zM4 5v1a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3V5a4 4 0 0 0-8 0m6.5 2.5H12A1.5 1.5 0 0 1 13.5 9v3a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 12V9A1.5 1.5 0 0 1 4 7.5zm-1.75 2a.75.75 0 0 0-1.5 0v2a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}));var o=n(53202),c=n(90826),u=n(46734),m=n(98089),p=n(32084),I=n(51301),v=n(92609),b=n(19884),g=n(93628),f=n(27145),y=n(87184),h=n(69220);const x=(0,h.om)("list-container-view"),S=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:s,className:a,fixedHeight:d,extraProps:l,qa:r,style:o},c){return i.createElement(y.s,Object.assign({qa:r,as:e,direction:"column",ref:c,grow:!0,tabIndex:-1,id:s,role:t,style:o,className:x({"fixed-height":d},a)},l),n)})),B=e=>null!==e&&"object"===typeof e&&"data"in e,E=(0,h.om)("list-recursive-renderer");function C(e){var t,{id:n,itemSchema:s,list:a}=e,d=(0,f.Tt)(e,["id","itemSchema","list"]);const l=d.children(n,a.structure.idToFlattenIndex[n]);if(B(s)&&s.children){const e=!a.state.expandedById||!(n in a.state.expandedById)||a.state.expandedById[n];return i.createElement("ul",{style:d.style,className:E(null,d.className),role:"group"},l,e&&Boolean(null===(t=a.structure.groupsState[n])||void 0===t?void 0:t.childrenIds)&&s.children.map(((e,t)=>i.createElement(C,Object.assign({list:a,id:a.structure.groupsState[n].childrenIds[t],itemSchema:e,key:t},d)))))}return l}function O(e){var{containerRef:t,renderItem:n,list:s}=e,a=(0,f.Tt)(e,["containerRef","renderItem","list"]);return i.createElement(S,Object.assign({ref:t},a),s.structure.items.map(((e,t)=>i.createElement(C,{key:t,itemSchema:e,id:s.structure.rootIds[t],list:s},n))))}const w=({list:e,multiple:t})=>({id:n})=>{e.state.disabledById[n]||(e.state.setActiveItemId(n),e.state.expandedById&&n in e.state.expandedById&&e.state.setExpanded?e.state.setExpanded((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))):e.state.setSelected((e=>Object.assign(Object.assign({},t?e:{}),{[n]:!t||!e[n]}))))};var j=n(359);const k="data-list-item",N={s:[22,44],m:[26,44],l:[34,52],xl:[44,62]},R=({containerRef:e,onItemClick:t,enabled:n,list:s})=>{const a=i.useCallback(((t,n=!0)=>{var i,a;"number"===typeof t&&s.structure.visibleFlattenIds[t]&&(n&&((e,t)=>{var n;if(document){const i=(t||document).querySelector(`[${k}="${e}"]`);i&&(null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"nearest"}))}})(s.structure.visibleFlattenIds[t],null===e||void 0===e?void 0:e.current),null===(a=(i=s.state).setActiveItemId)||void 0===a||a.call(i,s.structure.visibleFlattenIds[t]))}),[s.structure.visibleFlattenIds,s.state,e]),d=i.useCallback(((e,t,n=0)=>{e.preventDefault();const i="string"===typeof s.state.activeItemId?s.structure.visibleFlattenIds.findIndex((e=>e===s.state.activeItemId)):-1,d=(({list:e,index:t,step:n,disabledItemsById:i={}})=>{const s=e.length;let a=(t+s)%s;for(let d=0;d<s;d+=1){const t=e[a];if(t&&!i[t])return a;a=(a+s+n)%s}})({list:s.structure.visibleFlattenIds,index:(i>-1?i:n)+t,step:Math.sign(t),disabledItemsById:s.state.disabledById});a(d)}),[a,s.state.activeItemId,s.state.disabledById,s.structure.visibleFlattenIds]);i.useLayoutEffect((()=>{const i=null===e||void 0===e?void 0:e.current;if(n||!i)return;const a=e=>{switch(e.key){case j.D.ARROW_DOWN:d(e,1,-1);break;case j.D.ARROW_UP:d(e,-1);break;case j.D.SPACEBAR:case j.D.ENTER:s.state.activeItemId&&!s.state.disabledById[s.state.activeItemId]&&(e.preventDefault(),null===t||void 0===t||t({id:s.state.activeItemId}))}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[e,n,d,s.state.activeItemId,s.state.disabledById,t])};var D=n(46423),F=n(25569),P=n(63365),T=n(33705);const $=(0,h.om)("list-item-expand-icon"),A=({expanded:e,behavior:t="action",disabled:n})=>i.createElement(T.I,{direction:z({behavior:t,expanded:e}),className:$(null,(0,P.$)({color:n?"hint":void 0})),size:16});function z({behavior:e,expanded:t}){return t&&"action"===e?"top":t&&"state"===e||t&&"state-inverse"===e||"action"===e?"bottom":"state"===e?"right":"state-inverse"===e?"left":"bottom"}const M=(0,h.om)("list-item-view"),L=e=>"object"===typeof e&&null!==e&&"title"in e,q=e=>{var{children:t,indentation:n=1,className:s}=e,a=(0,f.Tt)(e,["children","indentation","className"]);return i.createElement(y.s,Object.assign({width:16*n,className:M("slot",s)},a),t)},_=({startSlot:e,subtitle:t,endSlot:n,disabled:s,hasSelectionIcon:a,isGroup:l,indentation:r,expanded:o,selected:c,title:u,expandIconPlacement:p="start",renderExpandIcon:I=A})=>{const v=l?i.createElement(I,{behavior:"start"===p?"state":"action",expanded:o,disabled:s}):null;return i.createElement(y.s,{alignItems:"center",justifyContent:"space-between",gap:"4",className:M("content")},i.createElement(y.s,{gap:"2",alignItems:"center",grow:!0},a&&i.createElement(q,null,c?i.createElement(d.I,{data:F.A,size:16,className:(0,P.$)({color:"info"})}):null),(e=>e&&e>=1?i.createElement(q,{indentation:Math.floor(e)}):null)(r),"start"===p&&v,e,i.createElement("div",{className:M("main-content")},"string"===typeof u?i.createElement(m.E,{ellipsis:!0,color:s?"hint":void 0,variant:l?"subheader-1":void 0},u):u,"string"===typeof t?i.createElement(m.E,{ellipsis:!0,color:s?"hint":"secondary"},t):t)),i.createElement(y.s,{gap:"2"},"end"===p&&v,n))},V=i.forwardRef((function(e,t){var{id:n,as:s,size:a="m",active:d,selected:l,disabled:r,selectionViewType:o="multiple",activeOnHover:c,className:u,height:m,dragging:p,style:I,content:v,role:b="option",onClick:g}=e,y=(0,f.Tt)(e,["id","as","size","active","selected","disabled","selectionViewType","activeOnHover","className","height","dragging","style","content","role","onClick"]);const h=s||"li",x=r?void 0:g,S="boolean"===typeof c?c:Boolean(x),B=Object.assign({minHeight:`var(--g-list-item-height, ${null!==m&&void 0!==m?m:N[a][Number(Boolean(!!L(v)&&(null===v||void 0===v?void 0:v.subtitle)))]}px)`},I);return i.createElement(h,Object.assign({[k]:n,role:b,"aria-selected":l,onClick:x,className:M({active:p||d,selected:l&&"single"===o,activeOnHover:S,radius:a,size:a,dragging:p,clickable:Boolean(x)},(0,D.Y)({px:2},u)),style:B,ref:t},y),L(v)?i.createElement(_,Object.assign({},v,{hasSelectionIcon:"multiple"===o,selected:l,disabled:r})):v)})),U=(0,h.om)("tree-list"),W=({qa:e,id:t,size:n="m",className:s,list:a,multiple:d,containerRef:l,renderItem:r,renderContainer:o=O,onItemClick:u,mapItemDataToContentProps:m})=>{const p=(0,c.u)(),I=null!==t&&void 0!==t?t:p,v=i.useRef(null),b=null!==l&&void 0!==l?l:v,g=i.useMemo((()=>{if(null===u)return;return(e,t)=>{const n={id:e.id,list:a};if(u)null===u||void 0===u||u(n,t);else{w({list:a,multiple:d})(n,t)}}}),[u,a,d]);R({containerRef:b,onItemClick:g,list:a});return o({qa:e,id:`list-${I}`,size:n,containerRef:b,className:U(null,s),list:a,renderItem:(t,s,l)=>{const o=(({qa:e,list:t,onItemClick:n,mapItemDataToContentProps:i,size:s="m",multiple:a=!1,id:d})=>{var l,r;const o=Object.assign(Object.assign(Object.assign({},t.structure.itemsState[d]),t.structure.groupsState[d]),{isLastItem:d===t.structure.visibleFlattenIds[t.structure.visibleFlattenIds.length-1]}),c={id:d,size:s,selected:Boolean(t.state.selectedById[d]),disabled:Boolean(null===(l=t.state.disabledById)||void 0===l?void 0:l[d]),active:d===t.state.activeItemId,onClick:n?e=>n({id:d},e):void 0,selectionViewType:Boolean(a)&&!o.childrenIds?"multiple":"single",content:Object.assign({expanded:null===(r=t.state.expandedById)||void 0===r?void 0:r[d],indentation:o.indentation,isGroup:t.state.expandedById&&d in t.state.expandedById},i(t.structure.itemsById[d]))};return e&&(c.qa=((e,t)=>`${e}-${t}`)(e,d)),{data:t.structure.itemsById[d],props:c,context:o}})({qa:e,id:t,size:n,multiple:d,mapItemDataToContentProps:m,onItemClick:g,list:a});return r?r({id:t,data:o.data,props:o.props,context:o.context,index:s,renderContainerProps:l,list:a}):i.createElement(V,Object.assign({},o.props,l))}})};var H=n(63246),J=n(34379),G=n(46819);const Y=({item:e,groupedId:t,getItemId:n})=>{let i=t;return"function"===typeof n?i=n(B(e)?e.data:e):e&&"object"===typeof e&&"id"in e&&e.id&&(i=e.id),i},K=(e,t)=>t?`${t}-${e}`:`${e}`;function Q({items:e,expandedById:t,getItemId:n}){const s=i.useMemo((()=>function({items:e,getItemId:t,expandedById:n={}}){const i=[],s=(e,a,d,l)=>{const r=K(d,l),o=Y({groupedId:r,item:a,getItemId:t});return l||i.push(o),e.push(o),B(a)&&a.children&&(o in n&&!n[o]||e.push(...a.children.reduce(((e,t,n)=>s(e,t,n,o)),[]))),e},a=e.reduce(((e,t,n)=>s(e,t,n)),[]),d={};for(const[l,r]of a.entries())d[r]=l;return{rootIds:i,visibleFlattenIds:a,idToFlattenIndex:d}}({items:e,expandedById:t,getItemId:n})),[e,t,n]);return s}function X({items:e,defaultExpandedState:t="expanded",getItemId:n}){const i={itemsById:{},groupsState:{},itemsState:{},initialState:{disabledById:{},selectedById:{},expandedById:{}}},s=({item:e,index:a,parentGroupedId:d,parentId:l})=>{const r=K(a,d),o=Y({groupedId:r,item:e,getItemId:n});l&&i.groupsState[l].childrenIds.push(o),i.itemsById[o]=e.data,i.itemsState[o]||(i.itemsState[o]={indentation:0}),"undefined"!==typeof l&&(i.itemsState[o].parentId=l),"undefined"!==typeof e.selected&&(i.initialState.selectedById[o]=e.selected),"undefined"!==typeof e.disabled&&(i.initialState.disabledById[o]=e.disabled),r&&(i.itemsState[o].indentation=(e=>e.split("-"))(r).length-1),e.children&&(i.groupsState[o]={childrenIds:[]},i.initialState.expandedById&&("undefined"===typeof e.expanded?i.initialState.expandedById[o]="expanded"===t:i.initialState.expandedById[o]=e.expanded),e.children.forEach(((e,t)=>{s({item:e,index:t,parentGroupedId:r,parentId:o})})))};return e.forEach(((e,t)=>B(e)?s({item:e,index:t}):(({item:e,index:t})=>{const s=Y({groupedId:String(t),item:e,getItemId:n});i.itemsById[s]=e,i.itemsState[s]||(i.itemsState[s]={indentation:0}),e&&"object"===typeof e&&("selected"in e&&"boolean"===typeof e.selected&&(i.initialState.selectedById[s]=e.selected),"disabled"in e&&"boolean"===typeof e.disabled&&(i.initialState.disabledById[s]=e.disabled))})({item:e,index:t}))),i}const Z=({items:e,getItemId:t,defaultExpandedState:n="expanded",withExpandedState:s=!0,initialState:a,controlledState:d})=>{const{itemsById:l,groupsState:r,itemsState:o,initialState:c}=function({items:e,getItemId:t,defaultExpandedState:n}){const s=i.useRef(t).current;return i.useMemo((()=>X({items:e,getItemId:s,defaultExpandedState:n})),[s,n,e])}({items:e,getItemId:t,defaultExpandedState:n}),u=(({initialState:e,withExpandedState:t})=>{const n=i.useRef(e),s=n.current!==e;n.current=e;const[a,d]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.disabledById)&&void 0!==t?t:{}})),[l,r]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.selectedById)&&void 0!==t?t:{}})),[o,c]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.expandedById)&&void 0!==t?t:{}})),[u,m]=i.useState((()=>null===e||void 0===e?void 0:e.activeItemId));s&&((null===e||void 0===e?void 0:e.disabledById)&&d((t=>Object.assign(Object.assign({},e.disabledById),t))),(null===e||void 0===e?void 0:e.selectedById)&&r((t=>Object.assign(Object.assign({},e.selectedById),t))),(null===e||void 0===e?void 0:e.expandedById)&&c((t=>Object.assign(Object.assign({},e.expandedById),t))),m((t=>null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.activeItemId)));const p={disabledById:a,selectedById:l,activeItemId:u,setDisabled:d,setSelected:r,setActiveItemId:m};return t&&(p.expandedById=o,p.setExpanded=c),p})({initialState:i.useMemo((()=>({expandedById:Object.assign(Object.assign({},c.expandedById),null===a||void 0===a?void 0:a.expandedById),selectedById:Object.assign(Object.assign({},c.selectedById),null===a||void 0===a?void 0:a.selectedById),disabledById:Object.assign(Object.assign({},c.disabledById),null===a||void 0===a?void 0:a.disabledById),activeItemId:null===a||void 0===a?void 0:a.activeItemId})),[c.disabledById,c.expandedById,c.selectedById,null===a||void 0===a?void 0:a.activeItemId,null===a||void 0===a?void 0:a.disabledById,null===a||void 0===a?void 0:a.expandedById,null===a||void 0===a?void 0:a.selectedById]),withExpandedState:s}),m=i.useMemo((()=>d?Object.assign(Object.assign({},u),d):u),[d,u]),{visibleFlattenIds:p,idToFlattenIndex:I,rootIds:v}=Q({items:e,expandedById:m.expandedById,getItemId:t});return{state:m,structure:{rootIds:v,items:e,visibleFlattenIds:p,idToFlattenIndex:I,itemsById:l,groupsState:r,itemsState:o}}},ee=({defaultValue:e=[],value:t,onUpdate:n})=>{const[s,a]=i.useState(e),d=null!==t&&void 0!==t?t:s,l=!t;return i.useMemo((()=>{const e=d.reduce(((e,t)=>(e[t]=!0,e)),{});return{value:d,selectedById:e,setSelected:t=>{const i=(e=>Object.entries(e).reduce(((e,[t,n])=>(n&&e.push(t),e)),[]))("function"===typeof t?t(e):t);l?a(i):null===n||void 0===n||n(i)},setInnerValue:l?a:void 0}}),[n,l,d])},te=(0,h.om)("tree-select"),ne=e=>i.createElement(V,Object.assign({},e.props,e.renderContainerProps)),ie=i.forwardRef((function({id:e,qa:t,title:n,placement:s,slotBeforeListBody:a,slotAfterListBody:d,size:l="m",defaultOpen:r,width:o,containerRef:u,className:m,containerClassName:f,popupClassName:y,open:h,multiple:x,popupWidth:S,popupDisablePortal:B,items:E,value:C,defaultValue:O,placeholder:j,disabled:k=!1,withExpandedState:N=!0,defaultExpandedState:R="expanded",hasClear:D,errorMessage:F,errorPlacement:P,validationState:T,onClose:$,onOpenChange:A,onUpdate:z,renderControl:M,renderItem:L=ne,renderContainer:q,mapItemDataToContentProps:_,onFocus:V,onBlur:U,getItemId:Y,onItemClick:K},Q){const X=(0,G.I)(),ie=(0,c.u)(),se=null!==e&&void 0!==e?e:ie,ae=`tree-select-popup-${se}`,de=i.useRef(null),le=i.useRef(null),re=i.useRef(null),oe=null!==u&&void 0!==u?u:re,{errorMessage:ce,errorPlacement:ue,validationState:me}=(0,J.Av)({errorMessage:F,errorPlacement:P||"outside",validationState:T}),pe=(0,c.u)(),Ie="invalid"===me,ve=Ie&&Boolean(ce)&&"outside"===ue,be=Ie&&Boolean(ce)&&"inside"===ue,ge=(0,p.N)(Q,le),{toggleOpen:fe,open:ye}=(0,v.F)({defaultOpen:r,onClose:$,onOpenChange:A,open:h}),{value:he,selectedById:xe,setSelected:Se}=ee({value:C,defaultValue:O,onUpdate:z}),Be=Z({controlledState:{selectedById:xe,setSelected:Se},items:E,getItemId:Y,defaultExpandedState:R,withExpandedState:N}),Ee=i.useMemo((()=>{if(null===K)return;return(e,t)=>{const n={id:e.id,list:Be};if(K)null===K||void 0===K||K(n,t);else{w({list:Be,multiple:x})(n,t);const i=Be.state.expandedById&&e.id in Be.state.expandedById;x||i||fe(!1)}}}),[K,Be,x,fe]);i.useLayoutEffect((()=>{var e;return ye&&(null===(e=oe.current)||void 0===e||e.focus({preventScroll:!0})),()=>Be.state.setActiveItemId(void 0)}),[ye]);const Ce=i.useCallback((()=>fe(!1)),[fe]),{focusWithinProps:Oe}=(0,I.R)({onFocusWithin:V,onBlurWithin:i.useCallback((e=>{null===U||void 0===U||U(e),Ce()}),[Ce,U])}),we={list:Be,open:ye,placeholder:j,toggleOpen:fe,clearValue:()=>Be.state.setSelected({}),ref:ge,size:l,value:he,disabled:k,id:se,activeItemId:Be.state.activeItemId,title:n,errorMessage:be?ce:void 0,errorPlacement:ue,validationState:me,hasClear:D,isErrorVisible:Ie},je=M?M(we):i.createElement(b.Y,Object.assign({},we,{selectedOptionsContent:i.Children.toArray(he.map((e=>e in Be.structure.itemsById?_(Be.structure.itemsById[e]).title:""))).join(", "),view:"normal",pin:"round-round",popupId:ae,selectId:se})),ke=Object.assign({},"max"===o&&{width:o}),Ne={};return"number"===typeof o&&(Ne.width=o),i.createElement("div",Object.assign({ref:de},Oe,{className:te(ke,m),style:Ne}),je,i.createElement(g.t,{ref:de,className:te("popup",{size:l},y),controlRef:le,width:S,placement:s,open:ye,handleClose:Ce,disablePortal:B,mobile:X,id:ae},a,i.createElement(W,{list:Be,size:l,className:te("list",f),qa:t,multiple:x,id:`list-${se}`,containerRef:oe,onItemClick:Ee,renderContainer:q,mapItemDataToContentProps:_,renderItem:null!==L&&void 0!==L?L:ne}),d),i.createElement(H.o,{errorMessage:ve?ce:null,errorMessageId:pe}))}));var se=n(28664),ae=n(43781),de=n.n(ae);function le(e,t){return!t||"object"!==typeof t||!("title"in t)||"string"!==typeof t.title||t.title.toLowerCase().includes((e||"").toLowerCase())}function re({items:e,initialFilterValue:t="",filterItem:n,onFilterChange:s,filterItems:a,debounceTimeout:d=300}){const l=i.useRef(null),[r,o]=i.useState(t),[c,u]=i.useState(e),[m,p]=i.useState(e),I=i.useCallback(((e,t)=>{if(a)return()=>a(e,t);if(e){const i=n||le;return()=>function(e,t){const n=(e,i)=>{if(B(i)&&i.children){const s=i.children.reduce(n,[]);s.length?e.push(Object.assign(Object.assign({},i),{data:i.data,children:s})):t(i.data)&&e.push(Object.assign(Object.assign({},i),{data:i.data,children:[]}))}else if(B(i)&&t(i.data)){const{children:t}=i,n=(0,f.Tt)(i,["children"]);e.push(n)}else!B(i)&&t(i)&&e.push(i);return e};return e.reduce(n,[])}(t,(t=>i(e,t)))}return()=>t}),[n,a]);e!==c&&(p(I(r,e)),u(e));const v=i.useCallback(de()((t=>p(I(t,e))),d),[p,I,e,d]),{onFilterUpdate:b,reset:g}=i.useMemo((()=>({reset:()=>{o(t),null===s||void 0===s||s(t),v(t)},onFilterUpdate:e=>{o(e),null===s||void 0===s||s(e),v(e)}})),[v,t,s]);return{filterRef:l,filter:r,reset:g,items:m,onFilterUpdate:b}}var oe=n(72837);const ce=JSON.parse('{"button_apply":"Apply","button_reset":"Reset","button_switcher":"Columns"}'),ue=JSON.parse('{"button_apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c","button_reset":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),me=(0,oe.N)({en:ce,ru:ue},"TableColumnSetupInner"),pe=(0,h.om)("inner-table-column-setup"),Ie=pe("controls"),ve=pe("filter-input"),be=pe("empty-placeholder"),ge={isDragDisabled:!0},fe=e=>({title:e.title}),ye=(e,t)=>"string"!==typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),he=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:p,items:I,onUpdate:v,sortable:b,renderControls:g,className:f,defaultItems:h=I,showResetButton:x,filterable:B,filterPlaceholder:E,filterEmptyMessage:C,filterSettings:O=ye}=e,[w,j]=i.useState(!1),[k,N]=i.useState(b),[R,D]=i.useState(b);b!==R&&(D(b),N(b));const[F,P]=i.useState(I),[T,$]=i.useState(I);I!==T&&($(I),P(I));const A=re({items:F,filterItem:O,debounceTimeout:0}),z=()=>{const e=F.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));v(e),U(!1)},M=()=>i.createElement(a.$,{view:"action",width:"max",onClick:z},me("button_apply")),L="function"===typeof x?x(F):x,q=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.u)();return({renderItem:s,list:a,containerRef:d,id:l,className:r})=>{const{stickyStartItemIdList:c,sortableItemIdList:u,stickyEndItemIdList:m}=((e,t)=>{let n=0;for(;n!==t.length;n++){const i=e[t[n]];if("left"!==(null===i||void 0===i?void 0:i.sticky)&&"start"!==(null===i||void 0===i?void 0:i.sticky))break}let i=t.length;for(;0!==i;i--){const n=e[t[i-1]];if("right"!==(null===n||void 0===n?void 0:n.sticky)&&"end"!==(null===n||void 0===n?void 0:n.sticky))break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,i),stickyEndItemIdList:t.slice(i)}})(a.structure.itemsById,a.structure.visibleFlattenIds),p=c.map(((e,t)=>s(e,t,ge))),I=u.map(((e,t)=>s(e,t+c.length))),v=m.map(((e,t)=>s(e,p.length+I.length+t,ge)));return i.createElement(i.Fragment,null,i.createElement(S,{ref:d,id:l,className:r},p,i.createElement(o.JY,{onDragEnd:e},i.createElement(o.gL,{droppableId:n,renderClone:(e,t,n)=>{const i={provided:e,snapshot:t};return s(a.structure.visibleFlattenIds[n.source.index],n.source.index,i)}},(e=>i.createElement("div",Object.assign({},e.droppableProps,{ref:e.innerRef}),I,e.placeholder)))),v),i.createElement("div",{className:Ie},t()))}})({onDragEnd:({destination:e,source:t})=>{void 0!==(null===e||void 0===e?void 0:e.index)&&(null===e||void 0===e?void 0:e.index)!==t.index&&P((n=>((e,t,n)=>{const i=[...e],[s]=i.splice(t,1);return i.splice(n,0,s),i})(n,t.index,e.index)))},renderControls:()=>g?g({DefaultApplyButton:M,onApply:z}):i.createElement(y.s,{gapRow:1,direction:"column",className:Ie},L&&i.createElement(a.$,{onClick:()=>{P(h)},width:"max"},me("button_reset")),i.createElement(M,null))}),_=(e=>({data:t,props:n,index:s,renderContainerProps:a})=>{const c=!1===e||!0===(null===a||void 0===a?void 0:a.isDragDisabled),u=c?void 0:i.createElement(d.I,{data:l.A,size:16}),m=t.isRequired?i.createElement(d.I,{data:r}):void 0,p=!t.isRequired&&n.selected,I=Object.assign(Object.assign({},n),{selected:p,selectionViewType:t.isRequired?"single":"multiple",content:Object.assign(Object.assign({},n.content),{startSlot:m,endSlot:u})});if(c)return i.createElement(V,Object.assign({},I,{key:I.id}));const v=(e,t)=>i.createElement(V,Object.assign({},I,e.draggableProps,e.dragHandleProps,{ref:e.innerRef,dragging:t.isDragging}));return(null===a||void 0===a?void 0:a.provided)&&a.snapshot?v(a.provided,a.snapshot):i.createElement(o.sx,{draggableId:n.id,index:s,key:`item-key-${n.id}`,isDragDisabled:c},v)})(k),U=e=>{j(e),!1===e&&(P(I),N(b),A.reset())},W=i.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(F)),[F]),H=(J=C,()=>i.createElement(m.E,{className:be},J));var J;const G=B?i.createElement(se.k,{size:"m",view:"clear",placeholder:E,value:A.filter,className:ve,onUpdate:e=>{A.onFilterUpdate(e),N(!e.length)},hasClear:!0}):null,Y=A.filter&&!A.items.length?H:q;return i.createElement(ie,{className:pe(null,f),mapItemDataToContentProps:fe,multiple:!0,size:"l",open:w,value:W,items:A.filter?A.items:F,onUpdate:e=>{P((t=>t.map((t=>Object.assign(Object.assign({},t),{isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:U,placement:p,slotBeforeListBody:G,renderContainer:Y,renderControl:({toggleOpen:e})=>{const n=(0,u.h)(e);return(null===t||void 0===t?void 0:t({onClick:e,onKeyDown:n}))||i.createElement(a.$,{onClick:e,extraProps:{onKeyDown:n}},i.createElement(d.I,{data:s.A}),me("button_switcher"))},renderItem:_})},xe=JSON.parse('{"button_switcher":"Columns"}'),Se=JSON.parse('{"button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),Be=(0,oe.N)({en:xe,ru:Se},"TableColumnSetup"),Ee=(0,h.om)("table-column-setup"),Ce=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:r,popupPlacement:o,className:c,items:u,sortable:m=!0,showStatus:p,onUpdate:I}=e,v=u.map((({id:e,title:t,required:n,selected:i,sticky:s})=>({id:e,title:t,isRequired:n,isSelected:i,sticky:s})));return i.createElement(he,{items:v,onUpdate:e=>{I(e.map((({id:e,isSelected:t})=>{const n=u.find((t=>t.id===e));return{id:e,selected:t,title:null===n||void 0===n?void 0:n.title,required:null===n||void 0===n?void 0:n.required}})))},popupPlacement:o,popupWidth:r,renderSwitcher:e=>(null===n||void 0===n?void 0:n(e))||t||i.createElement(a.$,{disabled:l,onClick:e.onClick},i.createElement(d.I,{data:s.A}),Be("button_switcher"),(()=>{if(!p)return null;const e=`${u.reduce(((e,t)=>t.selected?e+1:e),0)}/${u.length}`;return i.createElement("span",{className:Ee("status")},e)})()),sortable:m,className:Ee(null,c)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4169.f2243012.chunk.js b/ydb/core/viewer/monitoring/static/js/4169.f2243012.chunk.js deleted file mode 100644 index b41473e07e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4169.f2243012.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4169],{34169:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),o={name:"pt",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_Sa".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return _.default.locale(o,null,!0),o}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/41696.f9f2ec5d.chunk.js b/ydb/core/viewer/monitoring/static/js/41696.f9f2ec5d.chunk.js new file mode 100644 index 0000000000..8a835e81c4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/41696.f9f2ec5d.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[41696],{41696:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var _={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(_,null,!0),_}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42111.2a4b8434.chunk.js b/ydb/core/viewer/monitoring/static/js/42111.2a4b8434.chunk.js new file mode 100644 index 0000000000..c8f28d5241 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42111.2a4b8434.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42111],{42111:(e,t,i)=>{i.d(t,{default:()=>a});var n=i(54876);const a=i.n(n)()},54876:e=>{function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}e.exports=t,t.displayName="renpy",t.aliases=["rpy"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42182.a71d5155.chunk.js b/ydb/core/viewer/monitoring/static/js/42182.a71d5155.chunk.js new file mode 100644 index 0000000000..b52f0ac19e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42182.a71d5155.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 42182.a71d5155.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42182],{42182:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>i,language:()=>t});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+\u2023\u2022]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/42182.a71d5155.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/42182.a71d5155.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/42384.403ac671.chunk.js b/ydb/core/viewer/monitoring/static/js/42384.403ac671.chunk.js new file mode 100644 index 0000000000..a718622b42 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42384.403ac671.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42384],{23579:e=>{function n(e){!function(e){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,i=/\)|\((?![^|()\n]+\))/.source;function t(e,t){return RegExp(e.replace(/<MOD>/g,(function(){return"(?:"+n+")"})).replace(/<PAR>/g,(function(){return"(?:"+i+")"})),t||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},a=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:t(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:t(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:t(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:t(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:t(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:t(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:t(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:t(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:t(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:t(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:t(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:t(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:t(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:t(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:t(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:t(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:t(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:t(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:t(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:t(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:t(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),r=a.phrase.inside,s={inline:r.inline,link:r.link,image:r.image,footnote:r.footnote,acronym:r.acronym,mark:r.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=r.inline.inside;d.bold.inside=s,d.italic.inside=s,d.inserted.inside=s,d.deleted.inside=s,d.span.inside=s;var l=r.table.inside;l.inline=s.inline,l.link=s.link,l.image=s.image,l.footnote=s.footnote,l.acronym=s.acronym,l.mark=s.mark}(e)}e.exports=n,n.displayName="textile",n.aliases=[]},42384:(e,n,i)=>{i.d(n,{default:()=>o});var t=i(23579);const o=i.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42396.9af219b0.chunk.js b/ydb/core/viewer/monitoring/static/js/42396.9af219b0.chunk.js new file mode 100644 index 0000000000..6546dcaf24 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42396.9af219b0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42396],{42396:(e,t,n)=>{n.d(t,{default:()=>a});var o=n(52627);const a=n.n(o)()},52627:e=>{function t(e){!function(e){var t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ \t]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ \t]*(?:(?!"+t.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}(e)}e.exports=t,t.displayName="maxscript",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4243.697ce022.chunk.js b/ydb/core/viewer/monitoring/static/js/4243.697ce022.chunk.js new file mode 100644 index 0000000000..1154c43a86 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4243.697ce022.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4243],{4243:(e,n,t)=>{t.d(n,{default:()=>a});var r=t(65634);const a=t.n(r)()},65634:(e,n,t)=>{var r=t(90160);function a(e){e.register(r),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],t={},r=0,a=n.length;r<a;r++){var i=n[r];i="string"===typeof i?{filter:i,language:i}:i,e.languages[i.language]&&(t["filter-"+i.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return i.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[i.language,"language-"+i.language],inside:e.languages[i.language]}}})}e.languages.insertBefore("haml","filter",t)}(e)}e.exports=a,a.displayName="haml",a.aliases=[]},90160:e=>{function n(e){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var t="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+t+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+t),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+t),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}e.exports=n,n.displayName="ruby",n.aliases=["rb"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42612.7c3ffc1d.chunk.js b/ydb/core/viewer/monitoring/static/js/42612.7c3ffc1d.chunk.js new file mode 100644 index 0000000000..7d4654a6b0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42612.7c3ffc1d.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42612],{42612:function(t,h,_){t.exports=function(t){"use strict";function h(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var _=h(t),n={name:"vi",weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42615.93e0f1f6.chunk.js b/ydb/core/viewer/monitoring/static/js/42615.93e0f1f6.chunk.js new file mode 100644 index 0000000000..1744b18714 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42615.93e0f1f6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42615],{42615:(e,t,n)=>{n.d(t,{default:()=>i});var a=n(84730);const i=n.n(a)()},84730:e=>{function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}e.exports=t,t.displayName="vala",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42791.26100ebe.chunk.js b/ydb/core/viewer/monitoring/static/js/42791.26100ebe.chunk.js new file mode 100644 index 0000000000..8c888eb69e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42791.26100ebe.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42791],{37854:e=>{function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}e.exports=t,t.displayName="peoplecode",t.aliases=["pcode"]},42791:(e,t,o)=>{o.d(t,{default:()=>n});var a=o(37854);const n=o.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/42912.7ab36c78.chunk.js b/ydb/core/viewer/monitoring/static/js/42912.7ab36c78.chunk.js new file mode 100644 index 0000000000..d5c8cefff1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/42912.7ab36c78.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[42912],{34363:(e,n,t)=>{var a=t(76064),o=t(51572);function r(e){e.register(a),e.register(o),function(e){e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",(function(n){e.languages["markup-templating"].buildPlaceholders(n,"etlua",/<%[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"etlua")}))}(e)}e.exports=r,r.displayName="etlua",r.aliases=[]},42912:(e,n,t)=>{t.d(n,{default:()=>o});var a=t(34363);const o=t.n(a)()},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,o,r){if(t.language===a){var i=t.tokenStack=[];t.code=t.code.replace(o,(function(e){if("function"===typeof r&&!r(e))return e;for(var o,l=i.length;-1!==t.code.indexOf(o=n(a,l));)++l;return i[l]=e,o})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var o=0,r=Object.keys(t.tokenStack);!function i(l){for(var u=0;u<l.length&&!(o>=r.length);u++){var s=l[u];if("string"===typeof s||s.content&&"string"===typeof s.content){var g=r[o],c=t.tokenStack[g],d="string"===typeof s?s:s.content,p=n(a,g),f=d.indexOf(p);if(f>-1){++o;var k=d.substring(0,f),b=new e.Token(a,e.tokenize(c,t.grammar),"language-"+a,c),m=d.substring(f+p.length),h=[];k&&h.push.apply(h,i([k])),h.push(b),m&&h.push.apply(h,i([m])),"string"===typeof s?l.splice.apply(l,[u,1].concat(h)):s.content=h}}else s.content&&i(s.content)}return l}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},76064:e=>{function n(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=n,n.displayName="lua",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/43028.3817b0d7.chunk.js b/ydb/core/viewer/monitoring/static/js/43028.3817b0d7.chunk.js new file mode 100644 index 0000000000..55ec0bb477 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/43028.3817b0d7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[43028],{11641:n=>{function e(n){!function(n){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(n){return n=n.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+n+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(t){e!==t&&(n.languages.markdown[e].inside.content.inside[t]=n.languages.markdown[t])}))})),n.hooks.add("after-tokenize",(function(n){"markdown"!==n.language&&"md"!==n.language||function n(e){if(e&&"string"!==typeof e)for(var t=0,a=e.length;t<a;t++){var r=e[t];if("code"===r.type){var i=r.content[1],o=r.content[3];if(i&&o&&"code-language"===i.type&&"code-block"===o.type&&"string"===typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());o.alias?"string"===typeof o.alias?o.alias=[o.alias,s]:o.alias.push(s):o.alias=[s]}}else n(r.content)}}(n.tokens)})),n.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var t="",a=0,r=e.classes.length;a<r;a++){var i=e.classes[a],d=/language-(.+)/.exec(i);if(d){t=d[1];break}}var u=n.languages[t];if(u)e.content=n.highlight(function(n){var e=n.replace(o,"");return e=e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(n,e){var t;if("#"===(e=e.toLowerCase())[0])return t="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),s(t);var a=l[e];return a||n}))}(e.content.value),u,t);else if(t&&"none"!==t&&n.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=p,n.plugins.autoloader.loadLanguages(t,(function(){var e=document.getElementById(p);e&&(e.innerHTML=n.highlight(e.textContent,n.languages[t],t))}))}}}));var o=RegExp(n.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;n.languages.md=n.languages.markdown}(n)}n.exports=e,e.displayName="markdown",e.aliases=["md"]},43028:(n,e,t)=>{t.d(e,{default:()=>r});var a=t(11641);const r=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/431.f23349ec.chunk.js b/ydb/core/viewer/monitoring/static/js/431.f23349ec.chunk.js deleted file mode 100644 index f45aa09dc8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/431.f23349ec.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[431],{2748:()=>{},5890:(e,t,a)=>{var n={"./simpleWorker":51929,"./simpleWorker.js":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":51929};function r(e){return Promise.resolve().then((()=>{if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a(n[e])}))}r.keys=()=>Object.keys(n),r.id=5890,e.exports=r},8300:(e,t,a)=>{"use strict";a.d(t,{BB:()=>i,TL:()=>l,XT:()=>o});var n=a(43733),r=a(32138),s=a(62422);const i={...r.A,'pre[class*="language-"]':{...r.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...r.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},o={...s.A,'pre[class*="language-"]':{...s.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...s.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function l(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}l.displayName="yql",l.aliases=["yql"]},9204:(e,t,a)=>{var n={"./editorBaseApi":[73848],"./editorBaseApi.js":[73848],"./editorSimpleWorker":[16545],"./editorSimpleWorker.js":[16545],"./editorWorker":[10920],"./editorWorker.js":[10920],"./editorWorkerHost":[80718],"./editorWorkerHost.js":[80718],"./findSectionHeaders":[56691],"./findSectionHeaders.js":[56691],"./getIconClasses":[53068],"./getIconClasses.js":[53068],"./languageFeatureDebounce":[32500],"./languageFeatureDebounce.js":[32500],"./languageFeatures":[56942],"./languageFeatures.js":[56942],"./languageFeaturesService":[76007],"./languageFeaturesService.js":[76007],"./languageService":[17890],"./languageService.js":[17890],"./languagesAssociations":[99908],"./languagesAssociations.js":[99908],"./languagesRegistry":[69259],"./languagesRegistry.js":[69259],"./markerDecorations":[37550],"./markerDecorations.js":[37550],"./markerDecorationsService":[30707],"./markerDecorationsService.js":[30707],"./model":[23750],"./model.js":[23750],"./modelService":[16363],"./modelService.js":[16363],"./resolverService":[18938],"./resolverService.js":[18938],"./semanticTokensDto":[98232],"./semanticTokensDto.js":[98232],"./semanticTokensProviderStyling":[45538],"./semanticTokensProviderStyling.js":[45538],"./semanticTokensStyling":[74243],"./semanticTokensStyling.js":[74243],"./semanticTokensStylingService":[27004],"./semanticTokensStylingService.js":[27004],"./textModelSync/textModelSync.impl":[47443],"./textModelSync/textModelSync.impl.js":[47443],"./textModelSync/textModelSync.protocol":[28868,8868],"./textModelSync/textModelSync.protocol.js":[28868,8868],"./textResourceConfiguration":[90360],"./textResourceConfiguration.js":[90360],"./treeSitterParserService":[44432],"./treeSitterParserService.js":[44432],"./treeViewsDnd":[36723],"./treeViewsDnd.js":[36723],"./treeViewsDndService":[29100],"./treeViewsDndService.js":[29100],"./unicodeTextModelHighlighter":[74855],"./unicodeTextModelHighlighter.js":[74855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[73848],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[73848],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[16545],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[16545],"monaco-editor/esm/vs/editor/common/services/editorWorker":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[80718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[80718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[56691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[56691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[53068],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[53068],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[76007],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[76007],"monaco-editor/esm/vs/editor/common/services/languageService":[17890],"monaco-editor/esm/vs/editor/common/services/languageService.js":[17890],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[99908],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[99908],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[69259],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[69259],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[30707],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[30707],"monaco-editor/esm/vs/editor/common/services/model":[23750],"monaco-editor/esm/vs/editor/common/services/model.js":[23750],"monaco-editor/esm/vs/editor/common/services/modelService":[16363],"monaco-editor/esm/vs/editor/common/services/modelService.js":[16363],"monaco-editor/esm/vs/editor/common/services/resolverService":[18938],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[18938],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[27004],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[27004],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[90360],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[90360],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[44432],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[44432],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[29100],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[29100],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[74855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[74855]};function r(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a(r)))}r.keys=()=>Object.keys(n),r.id=9204,e.exports=r},52246:()=>{},64851:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Kg});var n=a(59284),r=a(61750),s=a(67087),i=a(64689),o=a(98167),l=a(61283),c=a(77506),d=a(60712);const u=(0,c.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),r=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,s=n||p;t&&(r(s),a(s))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.A,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:r}=e;if(r)return r;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),r(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(40174),g=a(53850),y=a(44992);let x=function(e){return e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication",e.EPathTypeTransfer="EPathTypeTransfer",e.EPathTypeResourcePool="EPathTypeResourcePool",e}({}),b=function(e){return e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl",e}({});let f=function(e){return e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD",e}({});let T=function(e){return e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS",e}({});const j={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},S={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"database",[x.EPathTypeExtSubDomain]:"database",[x.EPathTypeDir]:"directory",[x.EPathTypeColumnStore]:"directory",[x.EPathTypeTable]:"table",[x.EPathTypeTableIndex]:"index",[x.EPathTypeColumnTable]:"column_table",[x.EPathTypeCdcStream]:"stream",[x.EPathTypePersQueueGroup]:"topic",[x.EPathTypeExternalDataSource]:"external_data_source",[x.EPathTypeExternalTable]:"external_table",[x.EPathTypeView]:"view",[x.EPathTypeReplication]:"async_replication",[x.EPathTypeTransfer]:"transfer",[x.EPathTypeResourcePool]:"resource_pool"},N={table:x.EPathTypeTable,index:x.EPathTypeTableIndex,column_table:x.EPathTypeColumnTable,external_table:x.EPathTypeExternalTable,view:x.EPathTypeView},E=(e=x.EPathTypeDir,t,a="directory")=>t&&j[t]||S[e]||a,w={[b.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},C={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"Database",[x.EPathTypeExtSubDomain]:"Database",[x.EPathTypeDir]:"Directory",[x.EPathTypeTable]:"Table",[x.EPathTypeTableIndex]:"Secondary Index",[x.EPathTypeColumnStore]:"Tablestore",[x.EPathTypeColumnTable]:"Column-oriented table",[x.EPathTypeCdcStream]:"Changefeed",[x.EPathTypePersQueueGroup]:"Topic",[x.EPathTypeExternalDataSource]:"External Data Source",[x.EPathTypeExternalTable]:"External Table",[x.EPathTypeView]:"View",[x.EPathTypeReplication]:"Async Replication",[x.EPathTypeTransfer]:"Transfer",[x.EPathTypeResourcePool]:"Resource Pool"},P={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},I={[x.EPathTypeTable]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},D=e=>{var t;return null!==(t=e&&I[e])&&void 0!==t&&t},A={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},_=e=>{var t;return null!==(t=e&&A[e])&&void 0!==t&&t},R={[x.EPathTypeColumnStore]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},k=e=>{var t;return null!==(t=e&&R[e])&&void 0!==t&&t},O={[x.EPathTypeSubDomain]:!0,[x.EPathTypeExtSubDomain]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},M=e=>{var t;return null!==(t=e&&O[e])&&void 0!==t&&t},L={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},z=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},q={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},F={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeResourcePool]:!0,[x.EPathTypeReplication]:!0,[x.EPathTypeTransfer]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1},$=(e,t)=>{var a;return null!==(a=t&&q[t]||e&&F[e])&&void 0!==a&&a},U=e=>e===x.EPathTypeExternalTable,Q=e=>e===x.EPathTypeTable,B=e=>e===x.EPathTypeView;var H=a(21334);const G=H.F.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async({paths:e,database:t},{signal:a})=>{try{return{data:await Promise.all(e.map((e=>window.api.viewer.getDescribe({path:e,database:t},{signal:a}))))}}catch(n){return{error:n}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async({path:e,database:t,timeout:a},{signal:n})=>{try{return{data:await window.api.viewer.getDescribe({path:e,database:t,timeout:a},{signal:n})}}catch(r){return{error:r}}},keepUnusedDataFor:0,providesTags:["All","SchemaTree"]})})}),W=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>G.endpoints.getOverview.select({path:e,database:t}))),V=(0,g.Mz)((e=>e),((e,t,a)=>W(t,a)),((e,t)=>t(e).data)),J=(0,g.Mz)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=V(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>z(t)?null===a||void 0===a?void 0:a.map((({Name:t})=>e+"/"+t)):void 0));function K({paths:e,database:t,autoRefreshInterval:a}){const[n,...r]=e,{currentData:s,isFetching:i,error:o}=G.useGetOverviewQuery({path:n,database:t},{pollingInterval:a}),{currentData:l,isFetching:c,error:d}=G.useGetMultiOverviewQuery(r.length?{paths:r,database:t}:y.hT,{pollingInterval:a});return{loading:i&&void 0===s||c&&void 0===l,error:o||d,mergedDescribe:[s,...null!==l&&void 0!==l?l:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var Y=a(29078),Z=a(76086),X=a(90182),ee=a(81288),te=a(22680),ae=a(52531),ne=a(23871),re=a(52905),se=a(90053),ie=a(67028),oe=a(18517),le=a(24555),ce=a(74321),de=a(44508),ue=a(52248),me=a(90565),pe=a(49818),he=a(56839),ve=a(61758),ge=a.n(ve),ye=a(92459),xe=a(58351);const be=(0,c.cn)("heatmap"),fe={width:0,height:0},Te=10,je=e=>{const[t,a]=n.useState(fe),{tablets:r}=e,s=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=s.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,s=n%r*12,i=12*Math.floor(n/r);e.fillStyle=a.color||"grey",e.fillRect(s,i,Te,Te)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/12),s=Math.ceil(r.length/n);a({width:t,height:12*s,columnsCount:n,rowsCount:s})}}),[]);const o=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=Math.floor(e/12);return n*Math.floor(a/12)+r},u=ge()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const s=e.parentRef.current,i=t-l()+s.scrollLeft,d=a-o()+s.scrollTop,u=c(i,d),m=r[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:be("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:s,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,s=t.clientY-o()+a.scrollTop,i=c(n,s),d=r[i];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,ye.DM)(t);return`https://${[a,xe.P8,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},Se={r:255,g:4,b:0},Ne={r:255,g:219,b:77},Ee={r:59,g:201,b:53},we={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},Ce=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Pe=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),r=(t.g-a.g)/(e-1),s=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-s*o)});return i.map((e=>(({r:e,g:t,b:a})=>`#${Ce(e)}${Ce(t)}${Ce(a)}`)(e)))},Ie=e=>{const t=Math.floor(e/2),a=t+1;return[...Pe(e%2===0?t:t+1,Ee,Ne),...Pe(a,Ne,Se).slice(1)]},De=(e,t)=>{const a=new Set,n=we[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const r=Array.from(a.values()).sort(((e,t)=>e-t));return{min:r[0],max:r[r.length-1]}},Ae=(0,c.cn)("histogram"),_e=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:s,leftBound:i,rightBound:o,color:l}=a,c=s/r*100;return(0,d.jsx)("div",{ref:t,className:Ae("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:s,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},Re=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=De(a,t),s=Ie(50),i=(r-n)/50,o=s.map(((e,t)=>({color:e,count:0,leftBound:(0,he.ZV)(n+t*i),rightBound:(0,he.ZV)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),s=Math.floor(r/i),c=(null===(n=o[s])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[s]={...o[s],count:c}}));return(0,d.jsx)("div",{className:Ae(),children:(0,d.jsxs)("div",{className:Ae("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(_e,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:Ae("x-min"),children:(0,he.ZV)(n)}),(0,d.jsx)("div",{className:Ae("x-max"),children:(0,he.ZV)(r)}),(0,d.jsx)("div",{className:Ae("y-min"),children:"0"}),(0,d.jsx)("div",{className:Ae("y-max"),children:(0,he.ZV)(l)})]})})},ke=(0,c.cn)("heatmap"),Oe=Ie(500),Me=({path:e,database:t})=>{const a=(0,X.YQ)(),r=n.createRef(),[s]=(0,X.Nt)(),{currentData:i,isFetching:o,error:l}=me.f1.useGetHeatmapTabletsInfoQuery({path:e,database:t},{pollingInterval:s}),c=o&&void 0===i,{tablets:u=[],metrics:m}=i||{},{sort:p,heatmap:h,currentMetric:v}=(0,X.N4)((e=>e.heatmap)),g=(...e)=>{a((0,pe.DK)(...e))},y=()=>{a((0,pe.w7)())},x=e=>{a((0,me.nd)({currentMetric:e[0]}))},b=()=>{a((0,me.nd)({sort:!p}))},f=()=>{a((0,me.nd)({heatmap:!h}))},T=()=>{const{min:e,max:t}=De(v,u),a=u.map((a=>{var n;const r=v&&Number(null===(n=a.metrics)||void 0===n?void 0:n[v]),s=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),i=Oe[s];return{...a,color:i,value:r,formattedValue:(0,he.ZV)(r),currentMetric:v}})),n=p?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:r,className:ke("items"),children:(0,d.jsx)(je,{tablets:n,parentRef:r,showTooltip:g,hideTooltip:y})})};return c?(0,d.jsx)(ue.a,{}):(()=>{const{min:e,max:t}=De(v,u);let a;return l&&!i||(a=h?T():(0,d.jsx)(Re,{tablets:u,currentMetric:v,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:ke(),children:[(0,d.jsxs)("div",{className:ke("filters"),children:[(0,d.jsx)(le.l,{className:ke("heatmap-select"),value:v?[v]:[],options:m,onUpdate:x,width:200}),(0,d.jsx)("div",{className:ke("sort-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:b,checked:p,children:"Sort"})}),(0,d.jsx)("div",{className:ke("histogram-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:f,checked:h,children:"Heatmap"})}),(0,d.jsxs)("div",{className:ke("limits"),children:[(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(e)?(0,he.ZV)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(t)?(0,he.ZV)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:(0,he.ZV)(u.length)})]})]})]}),l?(0,d.jsx)(de.o,{error:l}):null,a]})})()};var Le=a(7117),ze=a(59109),qe=a(17594),Fe=a(89073);const $e=H.F.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.getOperationList(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.cancelOperation(e,{signal:t})}}catch(a){return{error:a}}}}),forgetOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.forgetOperation(e,{signal:t})}}catch(a){return{error:a}}}})}),overrideExisting:"throw"});var Ue=a(28539),Qe=a(95963),Be=a(48372);const He=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),Ge=(0,Be.g4)("ydb-operations",{en:He}),We="id",Ve="status",Je="created_by",Ke="create_time",Ye="end_time",Ze="duration",Xe={[We]:Ge("column_operationId"),[Ve]:Ge("column_status"),[Je]:Ge("column_createdBy"),[Ke]:Ge("column_createTime"),[Ye]:Ge("column_endTime"),[Ze]:Ge("column_duration")},et=[{value:"export",content:Ge("kind_export")},{value:"ss/backgrounds",content:Ge("kind_ssBackgrounds")},{value:"buildindex",content:Ge("kind_buildIndex")}],tt=(0,c.cn)("operations");function at({kind:e,searchValue:t,entitiesCountCurrent:a,entitiesCountTotal:r,entitiesLoading:s,handleKindChange:i,handleSearchChange:o}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Qe.v,{value:t,onChange:o,placeholder:Ge("pleaceholder_search"),className:tt("search")}),(0,d.jsx)(le.l,{value:[e],width:150,options:et,onUpdate:e=>i(e[0])}),(0,d.jsx)(Ue.T,{label:Ge("label_operations"),loading:s,total:r,current:a})]})}var nt=a(14750),rt=a(58272),st=a(45345),it=a(98089),ot=a(87184),lt=a(18650),ct=a(99991),dt=a(22983),ut=a(71661);let mt=function(e){return e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR",e}({});var pt=a(59625);const ht=function({name:e,title:t,type:a,content:n,autoHiding:r}){return pt.X.add({name:null!==e&&void 0!==e?e:"Request succeeded",title:null!==t&&void 0!==t?t:"Request succeeded",theme:"error"===a?"danger":"success",content:n,isClosable:!0,autoHiding:r||"success"===a&&5e3})};var vt=a(73891);function gt({database:e,refreshTable:t}){return[{name:We,header:Xe[We],width:340,render:({row:e})=>e.id?(0,d.jsx)(ut.s,{placement:["top","bottom"],content:e.id,children:e.id}):Z.Pd},{name:Ve,header:Xe[Ve],render:({row:e})=>e.status?(0,d.jsx)(it.E,{color:e.status===mt.SUCCESS?"positive":"danger",children:e.status}):Z.Pd},{name:Je,header:Xe[Je],render:({row:e})=>e.created_by?e.created_by:Z.Pd},{name:Ke,header:Xe[Ke],render:({row:e})=>e.create_time?(0,he.r6)((0,vt.ee)(e.create_time)):Z.Pd,sortAccessor:e=>e.create_time?(0,vt.ee)(e.create_time):0},{name:Ye,header:Xe[Ye],render:({row:e})=>e.end_time?(0,he.r6)((0,vt.ee)(e.end_time)):Z.Pd,sortAccessor:e=>e.end_time?(0,vt.ee)(e.end_time):Number.MAX_SAFE_INTEGER},{name:Ze,header:Xe[Ze],render:({row:e})=>{let t=0;if(!e.create_time)return Z.Pd;const a=(0,vt.ee)(e.create_time);if(e.end_time){t=(0,vt.ee)(e.end_time)-a}else t=Date.now()-a;const n=t>Z.Jg*Z.KF?(0,nt.p0)(t).format("hh:mm:ss"):(0,nt.p0)(t).format("mm:ss");return e.end_time?n:Ge("label_duration-ongoing",{value:n})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,vt.ee)(e.create_time);if(e.end_time){return(0,vt.ee)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:a})=>(0,d.jsx)(yt,{operation:a,database:e,refreshTable:t})}]}function yt({operation:e,database:t,refreshTable:a}){const[n,{isLoading:r}]=$e.useCancelOperationMutation(),[s,{isLoading:i}]=$e.useForgetOperationMutation(),o=e.id;return o?(0,d.jsxs)(ot.s,{gap:"2",children:[(0,d.jsx)(lt.m,{title:Ge("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_forget"),dialogText:Ge("text_forget"),onConfirmAction:()=>s({id:o,database:t}).unwrap().then((()=>{ht({name:"Forgotten",title:Ge("text_forgotten",{id:o}),type:"success"}),a()})),buttonDisabled:r,children:(0,d.jsx)(ct.I,{data:rt.A})})})}),(0,d.jsx)(lt.m,{title:Ge("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_cancel"),dialogText:Ge("text_cancel"),onConfirmAction:()=>n({id:o,database:t}).unwrap().then((()=>{ht({name:"Cancelled",title:Ge("text_cancelled",{id:o}),type:"success"}),a()})),buttonDisabled:i,children:(0,d.jsx)(ct.I,{data:st.A})})})})]}):null}var xt=a(370);const bt=xt.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function ft({database:e}){var t;const[a]=(0,X.Nt)(),{kind:r,searchValue:i,pageSize:o,pageToken:l,handleKindChange:c,handleSearchChange:u}=function(){var e,t,a;const[n,r]=(0,s.useQueryParams)({kind:s.StringParam,search:s.StringParam,pageSize:s.NumberParam,pageToken:s.StringParam});return{kind:bt.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:m,isLoading:p,error:h,refetch:v}=$e.useGetOperationListQuery({database:e,kind:r,page_size:o,page_token:l},{pollingInterval:a}),g=n.useMemo((()=>null!==m&&void 0!==m&&m.operations?m.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(i.toLowerCase())})):[]),[null===m||void 0===m?void 0:m.operations,i]);return(0,ee.Pq)(h)?(0,d.jsx)(ze.O,{position:"left"}):(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(at,{kind:r,searchValue:i,entitiesCountCurrent:g.length,entitiesCountTotal:null===m||void 0===m||null===(t=m.operations)||void 0===t?void 0:t.length,entitiesLoading:p,handleKindChange:c,handleSearchChange:u})}),h?(0,d.jsx)(de.o,{error:h}):null,(0,d.jsx)(Fe.L.Table,{loading:p,className:tt("table"),children:m?(0,d.jsx)(qe.l,{columns:gt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:Ge("title_empty")}):null})]})}var Tt=a(99936),jt=a(71635),St=a(19228),Nt=a(11822);function Et(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const wt=H.F.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async({database:e,path:t,timeout:a})=>{try{var n,r;const s=await window.api.viewer.sendQuery({query:Et(t),database:e,action:"execute-scan",timeout:a},{withRetries:!0});return(0,Nt.We)(s)?{error:s}:{data:(null===s||void 0===s||null===(n=s.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(s){return{error:s}}},providesTags:["All","SchemaTree"]})}),overrideExisting:"throw"});var Ct=a(47665),Pt=a(24543);const It=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),Dt=(0,Be.g4)("ydb-schema-viewer",{en:It}),At=(0,c.cn)("schema-viewer");const _t=({tableData:e,extended:t,type:a})=>{const n="primary"===a?function(e){return e.filter((e=>Boolean(void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name))).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(e):function(e){return e.filter((e=>Boolean(void 0!==e.partitioningColumnIndex&&-1!==e.partitioningColumnIndex&&e.name))).sort(((e,t)=>e.partitioningColumnIndex-t.partitioningColumnIndex)).map((e=>e.name))}(e),r=t?3:n.length,s=n.slice(0,r),i=n.slice(r);return n.length>0?(0,d.jsxs)("div",{className:At("keys",{summary:!t,type:a}),children:[(0,d.jsx)("div",{className:At("keys-header"),children:Dt("primary"===a?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:At("keys-values"),children:[" "+s.join(", "),i.length?(0,d.jsx)(Pt.u,{className:At("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:At("popup-content"),children:i.map((e=>(0,d.jsx)("div",{className:At("popup-item"),children:e},e)))}),children:(0,d.jsx)(Ct.J,{className:At("keys-label"),children:`+${i.length}`})}):null]})]}):null};var Rt=a(4557);function kt({data:e,name:t,header:a,sortable:n}){const r="string"===typeof a?a.length:t.length;let s=n?r+2:r;if(e)for(const i of e){let e=0;if(i[t]&&(e=String(i[t]).length),s=Math.max(s,e),10*s+20>=600)return 600}return 10*s+20}var Ot=a(34671);const Mt="name",Lt="type",zt="notNull",qt="autoIncrement",Ft="defaultValue",$t="familyName",Ut="prefferedPoolKind",Qt="columnCodec",Bt={name:"id",get header(){return Dt("column-title.id")},width:60,align:Rt.Ay.RIGHT,render:({row:e})=>{const t=(0,d.jsx)(ct.I,{className:At("key-icon"),size:12,data:Ot.A});return(0,d.jsxs)("span",{className:At("id-wrapper"),children:[e.id,void 0===e.keyColumnIndex||-1===e.keyColumnIndex?null:t]})}},Ht={name:Mt,get header(){return Dt("column-title.name")},width:120,render:({row:e})=>e.name},Gt={name:Lt,get header(){return Dt("column-title.type")},width:100,render:({row:e})=>e.type},Wt={name:zt,get header(){return Dt("column-title.notNull")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},Vt={name:qt,get header(){return Dt("column-title.autoIncrement")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Jt={name:Ft,get header(){return Dt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Kt={name:$t,get header(){return Dt("column-title.family")},width:100,render:({row:e})=>e.familyName},Yt={name:Ut,get header(){return Dt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Zt={name:Qt,get header(){return Dt("column-title.compression")},width:130,render:({row:e})=>e.columnCodec};function Xt(e,t){if(!t)return e;const a=t.slice(0,100);return e.map((e=>({...e,width:kt({data:a,name:e.name,header:"string"===typeof e.header?e.header:void 0,sortable:e.sortable||void 0===e.sortable})})))}function ea(e={}){const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnNames:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r,s,i;const{Id:o,Name:l,NotNull:c,Type:d,Family:u,DefaultFromSequence:m,DefaultFromLiteral:p}=e,h=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===l)))&&void 0!==a?a:-1,v=u?t[u].Name:void 0,g=u?null===(r=t[u].StorageConfig)||void 0===r||null===(s=r.Data)||void 0===s?void 0:s.PreferredPoolKind:void 0,y=u?function(e){if(e)return e===f.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[u].ColumnCodec):void 0;return{id:o,name:l,keyColumnIndex:h,type:d,notNull:c,autoIncrement:Boolean(m),defaultValue:null!==(i=Object.values((null===p||void 0===p?void 0:p.value)||{})[0])&&void 0!==i?i:"-",familyName:v,prefferedPoolKind:g,columnCodec:y}}));return null!==r&&void 0!==r?r:[]}function ta(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return Q(e)?ea(a):k(e)?function(e={}){const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:r}=t,{HashSharding:s={}}=a,{Columns:i=[]}=s,o=null===n||void 0===n?void 0:n.map((e=>{var t,a;const{Id:n,Name:s,Type:o,NotNull:l}=e,c=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===s)))&&void 0!==t?t:-1,d=null!==(a=null===i||void 0===i?void 0:i.findIndex((e=>e===s)))&&void 0!==a?a:-1;return{id:n,name:s,keyColumnIndex:c,partitioningColumnIndex:d,type:o,notNull:l}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):U(e)?function(e={}){const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e;return{id:t,name:a,type:n,notNull:r}})))||[]}(r):[]}function aa(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}const na=({type:e,path:t,tenantName:a,extended:r=!1})=>{const[s]=(0,X.Nt)(),i=r?s:void 0,{currentData:o,isLoading:l}=G.useGetOverviewQuery({path:t,database:a},{pollingInterval:i}),c=B(e)?{path:t,database:a}:y.hT,{data:u,isLoading:m}=wt.useGetViewSchemaQuery(c,{pollingInterval:i}),p=n.useMemo((()=>B(e)?aa(u):ta(e,o)),[o,e,u]),h=n.useMemo((()=>p.some((e=>e.autoIncrement))),[p]),v=n.useMemo((()=>p.some((e=>e.defaultValue))),[p]),g=n.useMemo((()=>B(e)?Xt([Ht,Gt],p):U(e)||k(e)?function(e){return Xt([Bt,Ht,Gt,Wt],e)}(p):Q(e)?function(e,t,a,n){const r=[Bt,Ht,Gt,Wt];return n&&r.push(Jt),t&&r.push(Kt,Yt,Zt),a&&r.push(Vt),Xt(r,e)}(p,r,h,v):[]),[e,r,h,v,p]);return l||m?(0,d.jsx)(St.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:At("keys-wrapper"),children:[(0,d.jsx)(_t,{tableData:p,extended:r,type:"primary"}),(0,d.jsx)(_t,{tableData:p,extended:r,type:"partitioning"})]}),(0,d.jsx)("div",{className:At(),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:p,columns:g,settings:Z.N3})})]})};var ra=a(54309),sa=a(96589),ia=a(84375),oa=a(85589);const la=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),ca=(0,Be.g4)("ydb-diagnostics-configs",{en:la}),da=(0,c.cn)("ydb-diagnostics-configs"),ua=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(ia.A,{content:ca("flag-touched"),className:da("icon-touched"),placement:"left",children:(0,d.jsx)(ct.I,{data:sa.A})}):null,width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return ca("td-feature-flag")},render:({row:e})=>e.Current?(0,d.jsx)("b",{children:e.Name}):e.Name,width:400,sortable:!0,sortAccessor:({Current:e,Name:t})=>Number(!e)+t.toLowerCase()},{name:"Default",get header(){return ca("td-default")},render:({row:e})=>{switch(e.Default){case!0:return ca("enabled");case!1:return ca("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return ca("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(oa.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ma=({database:e})=>{const[t,a]=(0,s.useQueryParam)("search",s.StringParam),[n]=(0,X.Nt)(),{currentData:r=[],isLoading:i,error:o}=oe.z6.useGetClusterConfigQuery({database:e},{pollingInterval:n}),l=null===t||void 0===t?void 0:t.toLocaleLowerCase(),c=l?r.filter((e=>e.Name.toLocaleLowerCase().includes(l))):r;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:ca("search-placeholder")})}),(0,d.jsx)(Fe.L.Table,{loading:i,children:o?(0,d.jsx)(de.o,{error:o}):(0,d.jsx)(qe.l,{emptyDataMessage:ca(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:ua,data:c,settings:Z.N3})})]})};var pa=a(23536),ha=a.n(pa),va=a(46549);const ga=H.F.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),ya=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>ga.endpoints.getTopic.select({path:e,database:t}))),xa=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),ba=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),fa=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),Ta=(0,g.Mz)(xa,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,vt.MC)(a),partitionsWriteLag:(0,vt.i6)(n),writeSpeed:(0,va.ey)(r)}})),ja=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:r,max_write_time_lag:s,bytes_read:i}=a||{};return{name:t,readSpeed:(0,va.ey)(i),writeLag:(0,vt.i6)(s),readLag:(0,vt.i6)(r),readIdleTime:(0,vt.MC)(n)}})))),Sa=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),Na=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),Ea=(0,Be.g4)("ydb-components-speed-multimeter",{ru:Na,en:Sa}),wa=(0,c.cn)("speed-multimeter"),Ca=({data:e,speedSize:t="kb",withValue:a=!0,withPopover:r=!0})=>{const{perMinute:s=0,perHour:i=0,perDay:o=0}=e||{},l=[s,i,o],c=e=>(0,va.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(s),label:Ea("perMinute")},{value:c(i),label:Ea("perHour")},{value:c(o),label:Ea("perDay")}],[m,p]=n.useState(s),[h,v]=n.useState(a?0:void 0),[g,y]=n.useState(),x=(e,t)=>{p(e[t]),v(t),y(t)},b=e=>h===e,f=e=>g===e;return(0,d.jsx)("div",{className:wa(),children:(0,d.jsxs)("div",{className:wa("content"),children:[a&&(0,d.jsx)("div",{className:wa("displayed-value"),children:c(m)}),(0,d.jsx)(ia.A,{content:(0,d.jsxs)("div",{className:wa("popover-content"),children:[(0,d.jsx)("span",{className:wa("popover-header"),children:Ea("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:wa("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:wa("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:wa("bars"),onMouseLeave:()=>{p(s),v(a?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...l,0)||1;return l.map(((t,a)=>(0,d.jsx)("div",{className:wa("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:wa("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Pa=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ia=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},r=[{label:"Write speed",value:(0,d.jsx)(Ca,{data:t})},{label:"Write lag",value:(0,he.lr)(a||0)},{label:"Write idle time",value:(0,he.lr)(n||0)}];return(0,d.jsx)("div",{className:Pa("wrapper"),children:r.map(((e,t)=>(0,d.jsxs)("div",{className:Pa("item"),children:[(0,d.jsx)("div",{className:Pa("label"),children:e.label}),(0,d.jsx)("div",{className:Pa("value"),children:e.value})]},t)))})};var Da=a(74309),Aa=a.n(Da),_a=a(44294),Ra=a(6170);const ka=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:r,buttonProps:s})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(Ra.B,{className:a,buttonProps:s,content:t,contentClassName:r})]}),Oa=70,Ma=54,La=268,za="#ADE8F5",qa="#f5be9d",Fa=({width:e,height:t,transform:a})=>(0,d.jsx)("path",{d:`M-${e/2} 0 c0 -${t}, ${e} -${t}, ${e} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:a}),$a=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),Ua=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:qa,children:(0,d.jsx)($a,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(Fa,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Qa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:za,children:(0,d.jsx)($a,{width:La})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(Fa,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Ba=({id:e,fill:t})=>(0,d.jsx)("pattern",{id:e,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:t})}),Ha=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:za}),(0,d.jsx)(Ba,{id:"latest-write",fill:qa})]}),(0,d.jsx)(Ua,{})]}),Ga=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:za}),(0,d.jsx)(Ba,{id:"latest-write",fill:qa})]}),(0,d.jsx)(Qa,{})]}),Wa=(0,c.cn)("ydb-lag-popover-content"),Va=({text:e,type:t})=>(0,d.jsxs)("div",{className:Wa({type:t}),children:[(0,d.jsx)("div",{className:Wa("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(Ga,{}):(0,d.jsx)(Ha,{})})]}),Ja=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Ka=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Ya=(0,Be.g4)("ydb-diagnostics-consumers",{ru:Ka,en:Ja}),Za="consumer",Xa="readSpeed",en="readLags",tn={[Za]:"Consumer",[Xa]:"Read speed",[en]:"Read lags, duration"},an="writeLag",nn="readLag",rn="readIdleTime",sn={[an]:"write lag",[nn]:"read lag",[rn]:"read idle time"},on=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),ln=()=>(0,d.jsx)(ka,{className:on("lags"),text:tn[en],popoverContent:(0,d.jsx)(Va,{text:Ya("lagsPopover.readLags"),type:"read"})}),cn=(0,c.cn)("ydb-diagnostics-consumers-columns"),dn=[{name:Za,header:tn[Za],align:Rt.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Aa().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(_a.E,{to:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:Xa,header:tn[Xa],align:Rt.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:en,header:(0,d.jsx)(ln,{}),className:cn("lags-header"),sub:[{name:an,header:sn[an],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.writeLag)},{name:nn,header:sn[nn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readLag)},{name:rn,header:sn[rn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readIdleTime)}]}],un=(0,c.cn)("ydb-diagnostics-consumers"),mn=({path:e,database:t,type:a})=>{const r=(e=>e===x.EPathTypeCdcStream)(a),[s,i]=n.useState(""),[o]=(0,X.Nt)(),{currentData:l,isFetching:c,error:u}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:o}),m=c&&void 0===l,p=(0,X.N4)((a=>ja(a,e,t))),h=(0,X.N4)((a=>Ta(a,e,t))),v=n.useMemo((()=>{if(!p)return[];const e=new RegExp(ha()(s),"i");return p.filter((t=>e.test(String(t.name))))}),[p,s]);return m?(0,d.jsx)(ue.a,{size:"m"}):u||p&&p.length?(0,d.jsxs)("div",{className:un(),children:[(0,d.jsxs)("div",{className:un("controls"),children:[(0,d.jsx)(Qe.v,{onChange:e=>{i(e)},placeholder:Ya("controls.search"),className:un("search"),value:s}),h&&(0,d.jsx)(Ia,{data:h})]}),u?(0,d.jsx)(de.o,{error:u}):null,p?(0,d.jsx)("div",{className:un("table-wrapper"),children:(0,d.jsx)("div",{className:un("table-content"),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:un("table"),data:v,columns:dn,settings:Z.N3,emptyDataMessage:Ya("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Ya("noConsumersMessage."+(r?"stream":"topic"))})};var pn=a(96873),hn=a(97434),vn=a(84476),gn=a(39439),yn=a.n(gn);function xn({className:e,text:t,start:a,length:r,hasComa:s}){const i=s?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;if(r&&"number"===typeof a&&a>=0&&a<t.length){const s=t.substring(0,a),o=t.substring(a,a+r),l=t.substring(a+r);return(0,d.jsxs)(n.Fragment,{children:[s&&(0,d.jsx)("span",{className:e(),children:s}),(0,d.jsx)("span",{className:e({highlighted:!0}),children:o}),l&&(0,d.jsx)("span",{className:e(),children:l}),i]})}return(0,d.jsxs)("span",{className:e(),children:[t,i]})}function bn({className:e,text:t,starts:a,length:r,hasComa:s}){if(!r||!a.length){const a=s?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;return(0,d.jsxs)("span",{className:e(),children:[t,a]})}const i=[];for(let n=0,o=0;n<a.length&&o<t.length;++n){const l=n===a.length-1,c=a[n]+(l?t.length:r),u=t.substring(o,c);u&&i.push((0,d.jsx)(xn,{className:e,text:u,start:a[n]-o,length:r,hasComa:l&&s})),o=c}return(0,d.jsx)(n.Fragment,{children:i})}const fn=(0,c.cn)("ydb-json-viewer");function Tn(e){const{collapsed:t,onToggle:a,path:n}=e;return(0,d.jsx)("span",{title:n,className:fn("collapsed"),children:(0,d.jsx)(vn.$,{onClick:a,view:"flat-secondary",size:"xs",children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)("span",{className:"unipika",children:t?"[+]":"[-]"})})})})}const jn=JSON.parse('{"action_collapse-all":"Collapse all","action_expand-all":"Expand all","action_next":"Next","action_back":"Back","description_search":"Search...","description_matched-rows":"Matched rows","description_full-value":"Full value","context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled","context_items-count":[" {{count}} item "," {{count}} items "," {{count}} items "," {{count}} items "]}'),Sn=(0,Be.g4)("ydb-json-viewer",{en:jn});var Nn=a(61674);const En=a.n(Nn)()({}),wn={asHTML:!0,format:"json",compact:!1,escapeWhitespace:!0,showDecoded:!0,binaryAsHex:!1,indent:2};function Cn(e){return En.converters.yson(e,wn)}function Pn(e){return n.useMemo((()=>Cn(e)),[e])}function In(e){return t=>fn("filtered",t,e)}var Dn=a(70983);function An(e){const{row:{level:t,open:a,close:r,key:s,value:i,hasDelimiter:o,path:l,collapsed:c,depth:u},settings:m,onToggleCollapse:p,matched:h,filter:v,showFullText:g,index:y}=e,x=n.useCallback((()=>{l&&p(l)}),[l,p]),b=n.useCallback((()=>{g(y)}),[g,y]);return(0,d.jsxs)("div",{className:fn("cell","unipika"),children:[qn(t),l&&(0,d.jsx)(Tn,{collapsed:c,path:l,onToggle:x}),(0,d.jsx)(_n,{text:s,settings:m,matched:null===h||void 0===h?void 0:h.keyMatch,filter:v}),a&&(0,d.jsx)(Ln,{type:a,settings:m}),void 0!==u&&(0,d.jsx)("span",{className:"unipika",children:Sn("context_items-count",{count:u})}),void 0!==i&&(0,d.jsx)(Rn,{text:i,settings:m,matched:null===h||void 0===h?void 0:h.valueMatch,filter:v,showFullText:b}),c&&void 0===u&&(0,d.jsx)("span",{className:"unipika",children:"..."}),r&&(0,d.jsx)(Ln,{type:r,settings:m,close:!0}),o&&(0,d.jsx)(Mn,{text:","})]})}function _n(e){const t=function(e){if(null===e||void 0===e||!e.text)return null;return On(e,fn("key"))}(e);return t?(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Mn,{text:": "})]}):null}function Rn(e){var t;return(0,d.jsx)(n.Fragment,{children:kn(e,fn("value",{type:null===(t=e.text)||void 0===t?void 0:t.$type}))})}function kn(e,t){var a;return"string"===(null===(a=e.text)||void 0===a?void 0:a.$type)?On(e,t,100):function(e,t){const{text:a,filter:n,settings:r,matched:s}=e;let i=null;if(s&&n){const e=En.format(a,{...r,asHTML:!1});i=(0,d.jsx)(bn,{className:In(t),text:e,starts:s,length:null===n||void 0===n?void 0:n.length})}else i=a?function(e,t=wn){const a=En.formatValue(e,{...wn,...t},0);return(0,d.jsx)("span",{className:"unipika",dangerouslySetInnerHTML:{__html:a}})}(a,r):void 0;return i||null}(e,fn("value"))}function On(e,t,a=1/0){const{text:n,settings:r=wn,matched:s=[],filter:i,showFullText:o}=e,l=En.format(n,{...r,asHTML:!1}),c=l.length,u=l.substring(1,Math.min(c-1,a+1)),m=u.length<l.length-2;let p=!1;if(m)for(let d=s.length-1;d>=0;--d)if(u.length<s[d]+((null===i||void 0===i?void 0:i.length)||0)){p=!0;break}return(0,d.jsxs)("span",{children:[(0,d.jsx)(bn,{className:In(t),text:u,starts:s,length:null===i||void 0===i?void 0:i.length}),m&&(0,d.jsxs)("span",{className:fn("filtered",{highlighted:p,clickable:!0}),onClick:o,children:["\u2026",(0,d.jsx)(ct.I,{data:Dn.A})]})]})}function Mn({text:e}){return(0,d.jsx)("span",{children:e})}function Ln(e){const{type:t,close:a}=e;switch(t){case"array":return(0,d.jsx)(Mn,{text:a?"]":"["});case"object":return(0,d.jsx)(Mn,{text:a?"}":"{"})}}const zn={};function qn(e){let t=zn[e];if(!t){const a=yn()(Array(3*e)," ").join("");t=zn[e]=(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})}return t}var Fn=a(28664),$n=a(59136),Un=a(26195),Qn=a(94630);const Bn=n.forwardRef((function({matchIndex:e,matchedRows:t,value:a,onUpdate:r,onKeyDown:s,onNextMatch:i,onPrevMatch:o,caseSensitive:l,onUpdateCaseSensitive:c},u){const m=t.length,p=m?1+e%m:0;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Fn.k,{ref:u,className:fn("filter"),hasClear:!0,size:"m",type:"text",value:a,placeholder:Sn("description_search"),onUpdate:r,autoFocus:!1,onKeyDown:s,endContent:(0,d.jsx)(lt.m,{title:Sn(l?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:c,selected:l,children:(0,d.jsx)(ct.I,{data:Qn.A})})})}),(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Sn("action_next"),onClick:i,disabled:!m,children:(0,d.jsx)(ct.I,{data:$n.A})}),(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Sn("action_back"),onClick:o,disabled:!m,children:(0,d.jsx)(ct.I,{data:Un.A})})]}),(0,d.jsxs)("span",{className:fn("match-counter"),title:Sn("description_matched-rows"),children:[p," / ",m||0]})]})}));var Hn=a(2198);function Gn({onClose:e,text:t,starts:a,length:n}){return(0,d.jsxs)(Hn.l,{open:!0,onClose:e,children:[(0,d.jsx)(Hn.l.Header,{caption:Sn("description_full-value")}),(0,d.jsx)(Hn.l.Divider,{}),(0,d.jsx)(Hn.l.Body,{children:(0,d.jsx)(ot.s,{direction:"column",gap:2,width:"70vw",maxHeight:"80vh",children:(0,d.jsx)("div",{className:fn("full-value"),children:(0,d.jsx)(bn,{className:In(),starts:a,text:t,length:n})})})})]})}function Wn(e,t){const a={dst:[],levels:[],path:[],collapsedState:(null===t||void 0===t?void 0:t.collapsedState)||{},matchedPath:"",collapsedPath:""};Vn(e,0,a);const n=function(e,t,a){if(!t)return{};const n=Object.assign({},null===a||void 0===a?void 0:a.settings,{asHTML:!1}),r={};for(let s=0;s<e.length;++s){const{key:i,value:o}=e[s],l=ir(i,t,n,null===a||void 0===a?void 0:a.caseSensitive),c=ir(o,t,n,null===a||void 0===a?void 0:a.caseSensitive);(l||c)&&(r[s]=Object.assign({},l&&{keyMatch:l},c&&{valueMatch:c}))}return r}(a.dst,null===t||void 0===t?void 0:t.filter,{settings:null===t||void 0===t?void 0:t.settings,caseSensitive:null===t||void 0===t?void 0:t.caseSensitive});return{data:a.dst,searchIndex:n}}function Vn(e,t,a){return function(e,t=0,a){const n=a.dst.length,{type:r}=a.levels[a.levels.length-1]||{},s=function(e){return"object"===e}(r)?n-1:a.dst.length,i=er(a),o=function(e){return"map"===e.$type||"list"===e.$type}(e);let l=0;if(i)Jn(e,t,a);else{l=function(e,t,a,n){let r=0;const s=e&&er(n);if(s)Jn(t,a,n);else switch(t.$type){case"map":!function(e,t,a){const n=tr("object",t,a,e.$value.length);(function(e,t,a,n){for(let r=0;r<e.length;++r){const[s,i]=e[r],o={key:s,level:t};a.dst.push(o),Zn(s.$value,a),Vn(i,t,a),++n.currentIndex,Xn(a)}})(e.$value,t+1,a,n),ar("object",t,a)}(t,a,n),r=t.$value.length;break;case"list":!function(e,t,a){const{$value:n}=e,r=tr("array",t,a,n.length);for(let s=0;s<n.length;++s)Zn(String(s),a),Vn(n[s],t+1,a),++r.currentIndex,Xn(a);ar("array",t,a)}(t,a,n),r=t.$value.length;break;case"string":rr(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n);break;default:rr(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n)}return r}(o,e,t,a)}o&&l&&(a.dst[s].depth=l,Yn(a,s))}(e,t,a)}function Jn(e,t,a){switch(e.$type){case"map":Kn("object",t,a,e.$value.length);break;case"list":Kn("array",t,a,e.$value.length)}}function Kn(e,t,a,n){tr(e,t,a,0);const r=a.dst[a.dst.length-1];r.depth=n,r.collapsed=!0,Yn(a,a.dst.length-1),ar(e,t,a)}function Yn(e,t){e.collapsedPath.length&&(e.dst[t].path=e.collapsedPath)}function Zn(e,t){t.path.push(e),t.collapsedPath=t.collapsedPath.length?t.collapsedPath+"/"+e:e}function Xn(e){const t=e.path.pop();void 0!==t&&(e.collapsedPath=e.collapsedPath.substring(0,e.collapsedPath.length-t.length-1))}function er(e){return Boolean(e.collapsedState[e.collapsedPath])}function tr(e,t,a,n){const{dst:r}=a,s=sr(r);null!==s&&void 0!==s&&s.key&&s.level===t?s.open=e:r.push({level:t,open:e});const i={type:e,length:n,currentIndex:0};return a.levels.push(i),i}function ar(e,t,a){const n=a.levels.pop();if(n.type!==e)throw new Error(`The unipika tree cannot be converted to array, there is some mess with levels \n${JSON.stringify({type:e,level:t,info:n,ctx:a},null,2)}`);const r=a.dst[a.dst.length-1],s=r.level===t&&r.open===e,i=s?r:{level:t,close:e};nr(a)&&(i.hasDelimiter=!0),s?i.close=e:a.dst.push(i)}function nr(e){const{length:t,currentIndex:a}=e.levels[e.levels.length-1]||{};return void 0!==t&&a<t-1}function rr(e,t){const a=sr(t.dst);a&&!a.open?Object.assign(a,e,{level:a.level}):t.dst.push(e);const n=t.dst[t.dst.length-1];nr(t)&&(n.hasDelimiter=!0)}function sr(e){const t=e[e.length-1];return null===t||void 0===t||!t.key||null!==t&&void 0!==t&&t.close?null:t}function ir(e,t,a,n){if(!e)return;const r=[];let s=En.formatValue(e,a);if(!s)return;s=String(s),"string"===e.$type&&(s=s.substring(1,s.length-1));let i=0,o=t;for(n||(s=s.toLowerCase(),o=t.toLowerCase());i>=0&&i<s.length;){const e=s.indexOf(o,i);if(-1===e)break;i=e+o.length,r.push(e)}return r.length?r:void 0}var or=a(85283),lr=a(24853);const cr={displayIndices:!1,dynamicRender:!0,sortable:!1,dynamicRenderMinSize:100};function dr(e){const{data:t}=Wn(e);return t.reduce(((e,{path:t})=>(t&&(e[t]=!0),e)),{})}function ur(e,t,a,n){const r=Wn(e,{collapsedState:t,filter:a,caseSensitive:n});return Object.assign({},{flattenResult:r,matchedRows:Object.keys(r.searchIndex).map(Number)})}function mr({tableSettings:e,value:t,unipikaSettings:a,search:r=!0,extraTools:s,collapsedInitially:i}){const[o,l]=(0,X.iK)(Z.iD,!1),[c,u]=n.useState((()=>i?dr(t):{})),[m,p]=n.useState(""),[h,v]=n.useState((()=>ur(t,c,m,o))),[g,y]=n.useState(-1),[x,b]=n.useState(),f=n.useRef(null),T=n.useRef(null),j=n.useMemo((()=>({...cr,dynamicInnerRef:f,...e})),[e]),S=({row:e,index:t})=>{const{flattenResult:{searchIndex:n}}=h;return(0,d.jsx)(An,{matched:n[t],row:e,settings:a,onToggleCollapse:N,filter:m,showFullText:R,index:t})},N=e=>{const t={...c};t[e]?delete t[e]:t[e]=!0,E({collapsedState:t})},E=(e,a)=>{const{collapsedState:n,matchIndex:r,filter:s,caseSensitive:i}=e;void 0!==n&&u(n),void 0!==r&&y(r),void 0!==s&&p(s);v(ur(t,null!==n&&void 0!==n?n:c,null!==s&&void 0!==s?s:m,null!==i&&void 0!==i?i:o)),null===a||void 0===a||a()},w=()=>{E({collapsedState:{}},(()=>{I(null,0)}))},C=()=>{const e=dr(t);E({collapsedState:e})},P=e=>{E({filter:e,matchIndex:0},(()=>{I(null,0)}))},I=(e,t=1)=>{var a,n;const{matchedRows:r}=h;if(!r.length)return;let s=(g+t)%r.length;s<0&&(s=r.length+s),s!==g&&y(s),null===(a=f.current)||void 0===a||a.scrollTo(r[s]-6),null===(n=T.current)||void 0===n||n.focus()},D=()=>{I(null,-1)},A=e=>{"Enter"===e.key&&(e.shiftKey||e.ctrlKey?D():I(null))},_=()=>{const e=!o;l(e),E({caseSensitive:e})},R=e=>{const{flattenResult:{searchIndex:t,data:a}}=h;b({value:a[e].value,searchInfo:t[e]})},k=()=>{b(void 0)};return(0,d.jsxs)("div",{className:fn(),children:[(0,d.jsxs)(ot.s,{gap:2,wrap:"nowrap",className:fn("toolbar"),children:[(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(lt.m,{title:Sn("action_expand-all"),children:(0,d.jsx)(vn.$,{onClick:w,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:or.A})})}),(0,d.jsx)(lt.m,{title:Sn("action_collapse-all"),children:(0,d.jsx)(vn.$,{onClick:C,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:lr.A})})})]}),r&&(0,d.jsx)(Bn,{onUpdate:P,matchIndex:g,matchedRows:h.matchedRows,value:m,ref:T,onKeyDown:A,onNextMatch:I,onPrevMatch:D,caseSensitive:o,onUpdateCaseSensitive:_}),(0,d.jsx)("span",{className:fn("extra-tools"),children:s})]}),(()=>{const e=[{name:"content",render:S,header:null}],{flattenResult:{data:t}}=h;return(0,d.jsx)("div",{className:fn("content"),children:(0,d.jsx)(Rt.Ay,{columns:e,data:t,theme:"yson",settings:j,rowClassName:()=>fn("row")})})})(),(()=>{const{value:e,searchInfo:t}=null!==x&&void 0!==x?x:{},n=En.format(e,{...a,asHTML:!1});return e&&(0,d.jsx)(Gn,{onClose:k,starts:(null===t||void 0===t?void 0:t.valueMatch)||[],text:n.substring(1,n.length-1),length:m.length})})()]})}const pr=(0,c.cn)("ydb-describe"),hr=({path:e,database:t,type:a})=>{const[n]=(0,X.Nt)(),r=z(a),s=(0,X.N4)((n=>J(n,e,a,t)),hn.bN);let i=[];r?s&&(i=[e,...s]):i=[e];const{mergedDescribe:o,loading:l,error:c}=K({paths:i,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}const m=Pn(u);return l||r&&!s?(0,d.jsx)(ue.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:pr(),children:[c?(0,d.jsx)(de.o,{error:c}):null,u?(0,d.jsx)("div",{className:pr("result"),children:(0,d.jsx)(mr,{value:m,extraTools:(0,d.jsx)(pn.b,{view:"flat-secondary",text:JSON.stringify(u)}),search:!0,collapsedInitially:!0})}):null]}):(0,d.jsx)("div",{className:pr("message-container"),children:"Empty"})};var vr=a(60073);const gr=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&w[r]||n&&C[n];var n,r},yr=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((({Key:e,Value:t})=>"__async_replica"===e&&"true"===t))};var xr=a(5741),br=a(82176);const fr=(0,br.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:he.r6},labels:{PathType:(0,xr.A)("common.type"),CreateStep:(0,xr.A)("common.created")}}),Tr=({value:e,withSpeedLabel:t,...a})=>{const n=(0,va.z3)({value:e,withSpeedLabel:t,...a}),r=(0,va.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:r,children:n})},jr=(e,t)=>e?(0,d.jsx)(Tr,{value:e,...t}):null,Sr=(0,br.H)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:jr},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Nr={[T.METERING_MODE_REQUEST_UNITS]:"request-units",[T.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},Er=(0,br.H)({values:{Partitions:e=>(0,he.ZV)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/Z.Jg*100)/100;return`${(0,he.ZV)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),wr=(0,br.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Nr[e]},labels:{MeteringMode:"Metering mode"}}),Cr=(0,br.H)({values:{StorageLimitBytes:he.z3,WriteSpeedInBytesPerSecond:he.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),Pr=(0,br.H)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring(14),Format:e=>null===e||void 0===e?void 0:e.substring(16)}}),Ir=(0,br.H)({values:{CPU:he.iM,Memory:jr,Storage:jr,Network:he.tC,ReadThroughput:he.tC,WriteThroughput:he.tC},defaultValueFormatter:he.ZV}),Dr=(0,br.H)({values:{FollowerCount:he.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Ar=(0,br.H)({values:{FollowerCount:he.ZV,CrossDataCenterFollowerCount:he.ZV}}),_r=(0,br.H)({values:{DataSize:jr,IndexSize:jr,LastAccessTime:he.r6,LastUpdateTime:he.r6},defaultValueFormatter:he.ZV}),Rr=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),kr=({data:e})=>{var t;const a=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=null===(t=e.PathDescription)||void 0===t?void 0:t.TableIndex,r=[];let s;for(s in n)Rr.has(s)&&r.push(Sr(s,null===n||void 0===n?void 0:n[s]));return(0,d.jsx)(vr.z_,{title:a,info:r})};var Or=a(10508);const Mr=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),Lr=(0,Be.g4)("ydb-tenant-objects-info",{en:Mr}),zr=(0,c.cn)("ydb-external-data-source-info"),qr=e=>{var t,a,n,r;return[{label:Lr("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},fr("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},Fr=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...qr(e),{label:Lr("external-objects.location"),value:(0,d.jsx)(Or.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:zr("location")})},{label:Lr("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Lr("external-objects.auth-method.service-account"):Lr("external-objects.auth-method.none")}]},$r=({data:e,prepareData:t})=>{const a=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vr.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},Ur=({data:e})=>(0,d.jsx)($r,{data:e,prepareData:Fr});var Qr=a(10755),Br=a(25196);const Hr=(0,c.cn)("ydb-external-table-info"),Gr=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:s,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop();return[{label:Lr("external-objects.source-type"),value:s},fr("CreateStep",r),{label:Lr("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(Br.K,{title:o||"",url:t})})}]},Wr=(e,t)=>{var a,n;const r=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...Gr(e,t),{label:Lr("external-objects.location"),value:(0,d.jsx)(Or.c,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Hr("location")})}]},Vr=({data:e,prepareData:t})=>{var a,n;const r=(0,Qr.zy)(),s=(0,ye.mA)(r),i=(0,ye.Ow)({...s,schema:null===e||void 0===e||null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.DataSourcePath}),o=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vr.z_,{title:o,info:t(e,i)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},Jr=({data:e})=>(0,d.jsx)(Vr,{data:e,prepareData:Wr});var Kr=a(57439);const Yr=JSON.parse('{"no-data":"No data"}'),Zr=(0,Be.g4)("ydb-definition-list",{en:Yr}),Xr=(0,c.cn)("ydb-definition-list");function es({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:r,itemClassName:s,...i}){return(0,d.jsxs)("div",{className:Xr(null),children:[e?(0,d.jsx)("div",{className:Xr("title"),children:e}):null,t.length?(0,d.jsx)(Kr.u,{items:t,nameMaxWidth:a,copyPosition:n,className:Xr("properties-list",r),itemClassName:Xr("item",s),...i}):Zr("no-data")]})}var ts=a(96298),as=a(8300);ts.A.registerLanguage("yql",as.TL);const ns=(0,c.cn)("yql-highlighter"),rs=({children:e,className:t})=>{const a=(0,te.i)(),n="dark"===a||"dark-hc"===a;return(0,d.jsx)("div",{className:ns(null,t),children:(0,d.jsx)(ts.A,{language:"yql",style:n?as.XT:as.BB,children:e})})};function ss({data:e}){const t=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",t," data"]});const a=(e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:Lr("view.query-text"),copyText:n,content:n?(0,d.jsx)(rs,{children:n}):null}]})(e);return(0,d.jsx)(es,{title:t,items:a})}function is({state:e}){return e?"StandBy"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Standby"}):"Paused"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Paused"}):"Done"in e?(0,d.jsx)(Ct.J,{theme:"success",children:"Done"}):"Error"in e?(0,d.jsx)(Ct.J,{theme:"danger",children:"Error"}):(0,d.jsx)(Ct.J,{size:"s",children:"Unknown"}):null}const os=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),ls=(0,Be.g4)("ydb-diagnostics-async-replication-paths",{en:os}),cs=(0,c.cn)("ydb-async-replication-paths"),ds=[{name:ls("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:ls("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function us({config:e}){if(!e)return null;let t=ls("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[ls("everythingWithPrefix")," ",(0,d.jsx)(it.E,{variant:"code-inline-2",children:null!==(a=null===(n=e.Everything)||void 0===n?void 0:n.DstPrefix)&&void 0!==a?a:"undefined"}),"."]}));return e.Specific&&(t=(0,d.jsx)(qe.l,{data:e.Specific.Targets,settings:Z.jp,columns:ds})),(0,d.jsxs)("div",{className:cs(),children:[(0,d.jsx)("div",{className:cs("title"),children:ls("title")}),t]})}function ms({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const ps=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),hs=(0,Be.g4)("ydb-diagnostics-async-replication-info",{en:ps});function vs({data:e}){var t,a;const n=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[hs("noData")," ",n]});const r=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,s=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=s,l=[];r&&l.push({name:hs("state.label"),content:(0,d.jsx)(is,{state:r})});i&&l.push({name:hs("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:i})});o&&l.push({name:hs("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:o})});s&&l.push({name:hs("credentials.label"),content:(0,d.jsx)(ms,{connection:s})});return l}(e);return(0,d.jsxs)(ot.s,{direction:"column",gap:"4",children:[(0,d.jsx)(es,{title:n,items:r}),(0,d.jsx)(us,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const gs=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),ys=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),xs=(0,Be.g4)("ydb-diagnostics-overview-topic-stats",{ru:ys,en:gs}),bs=(0,c.cn)("ydb-overview-topic-stats"),fs=e=>[{label:"Store size",value:(0,he.z3)(e.storeSize)},{label:(0,d.jsx)(ka,{text:"Write idle time",popoverContent:(0,d.jsx)(Va,{text:xs("writeIdleTimePopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(ka,{text:"Write lag",popoverContent:(0,d.jsx)(Va,{text:xs("writeLagPopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Ca,{data:e.writeSpeed,withValue:!1})}],Ts=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,he.tC)(t.perMinute)},{label:"per hour",value:(0,he.tC)(t.perHour)},{label:"per day",value:(0,he.tC)(t.perDay)}]},js=({path:e,database:t})=>{const[a]=(0,X.Nt)(),{currentData:r,isFetching:s,error:i}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=s&&void 0===r,l=(0,X.N4)((a=>Ta(a,e,t)));if(o)return(0,d.jsx)("div",{className:bs(),children:(0,d.jsx)(ue.a,{size:"s"})});const c=i||!l?(0,d.jsx)(de.o,{error:i}):null;return(0,d.jsxs)("div",{className:bs(),children:[(0,d.jsx)("div",{className:bs("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bs("info"),children:(0,d.jsx)(vr.z_,{info:fs(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:bs("bytes-written"),children:(0,d.jsx)(vr.z_,{info:Ts(l)})})]}):null]})},Ss=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:r={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:s,MeteringMode:i}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,vr.jl)(Er,{Partitions:n,PQTabletConfig:r}),...(0,vr.jl)(Cr,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,vr.jl)(wr,{Codecs:s,MeteringMode:i})]},Ns=(e,t)=>{var a,n,r;if(!e&&!t)return[];const s=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=s||{};return[fr("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep),...(0,vr.jl)(Pr,{Mode:i,Format:o}),...Ss(t)]},Es=({path:e,database:t,data:a,topic:n})=>{const r=gr(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(vr.z_,{title:r,info:Ns(a,n)}),(0,d.jsx)(js,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})},ws=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.connectToDB":"Connect to DB","actions.dropIndex":"Drop index","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createTransfer":"Create transfer...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.manageColumns":"Manage columns...","actions.manageAutoPartitioning":"Manage auto partitioning...","actions.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.alterTransfer":"Alter transfer...","actions.dropReplication":"Drop async replicaton...","actions.dropTransfer":"Drop transfer...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),Cs=(0,Be.g4)("ydb-tenant",{en:ws});function Ps({data:e}){const t=gr(e);return yr(e)?(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(Ct.J,{children:Cs("label.read-only")})]}):t}const Is=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Ds=(0,Be.g4)("ydb-diagnostics-overview-table-info",{en:Is});var As=a(62091),_s=a.n(As),Rs=a(7435),ks=a(41650);const Os=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Ds("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,vt.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Ds("label.ttl"),value:t}}};const Ms=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:s={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:T,InFlightTxCount:j,RowUpdates:S,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=s;let A=[];switch(t){case x.EPathTypeTable:A=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:s}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Ds("value.partitioning-by-size.enabled",{size:(0,he.z3)(n.SizeToSplit)}):Ds("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Ds("enabled"):Ds("disabled");if(i.push({label:Ds("label.partitioning-by-size"),value:o},{label:Ds("label.partitioning-by-load"),value:l},{label:Ds("label.partitions-min"),value:(0,he.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Ds("label.partitions-max"),value:(0,he.ZV)(n.MaxPartitionsCount)}),r&&r.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=r[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Ds("label.read-replicas"),value:n})}if(t){const e=Os(t);e&&i.push(e)}return(0,Rs.f8)(s)&&i.push({label:Ds("label.bloom-filter"),value:Ds(s?"enabled":"disabled")}),i})(s,i);break;case x.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var r;if(n.push({label:Ds("label.standalone"),value:String((r=e,!(r.SchemaPresetName&&void 0!==r.SchemaPresetId)))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Ds("label.partitioning"),value:(0,d.jsx)(it.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Os(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,vr.jl)(_r,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,ks.kf)(p)&&(s.EnableFilterByKey||Number(p)>0)&&_.push({label:"BloomFilterSize",value:jr(p)});const R=[_,(0,vr.jl)(_r,{LastAccessTime:h,LastUpdateTime:v}),(0,vr.jl)(_r,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:T,InFlightTxCount:j}),(0,vr.jl)(_r,{RowUpdates:S,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C})],k=(0,vr.jl)(Ir,_s()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(P)&&P.length>0?O=(0,vr.jl)(Dr,P[0]):void 0!==I?O.push(Ar("FollowerCount",I)):void 0!==D&&O.push(Ar("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:k,partitionConfigInfo:O}},Ls=(0,c.cn)("ydb-diagnostics-table-info"),zs=({data:e,type:t})=>{const a=(0,d.jsx)(Ps,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:r,tableStatsInfo:s,tabletMetricsInfo:i=[],partitionConfigInfo:o=[]}=n.useMemo((()=>Ms(e,t)),[e,t]);return(0,d.jsxs)("div",{className:Ls(),children:[(0,d.jsx)(vr.z_,{info:r,title:a,className:Ls("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:Ls("title"),children:a})}),(0,d.jsxs)("div",{className:Ls("row"),children:[s?(0,d.jsx)("div",{className:Ls("col"),children:s.map(((e,t)=>(0,d.jsx)(vr.z_,{info:e,title:0===t?Ds("tableStats"):void 0,className:Ls("info-block"),renderEmptyState:()=>null},t)))}):null,i.length>0||o.length>0?(0,d.jsxs)("div",{className:Ls("col"),children:[(0,d.jsx)(vr.z_,{info:i,title:Ds("tabletMetrics"),className:Ls("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(vr.z_,{info:o,title:Ds("partitionConfig"),className:Ls("info-block"),renderEmptyState:()=>null})]}):null]})]})},qs=({data:e,path:t,database:a})=>{const n=gr(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(vr.z_,{title:n,info:Ss(e)}),(0,d.jsx)(js,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};function Fs({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const $s=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State","srcPath.label":"Source Topic","dstPath.label":"Destination Table","transformLambda.label":"Transformation Lambda"}'),Us=(0,Be.g4)("ydb-diagnostics-transfer-info",{en:$s});function Qs({data:e}){const t=gr(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[Us("noData")," ",t]});const a=function(e){var t,a,n,r;const s=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},i=s.State,o=(null===(a=s.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:l,Database:c}=o,u=null===(n=s.Config)||void 0===n||null===(r=n.TransferSpecific)||void 0===r?void 0:r.Targets[0],m=null===u||void 0===u?void 0:u.SrcPath,p=null===u||void 0===u?void 0:u.DstPath,h=null===u||void 0===u?void 0:u.TransformLambda,v=[];i&&v.push({name:Us("state.label"),content:(0,d.jsx)(is,{state:i})});l&&v.push({name:Us("srcConnection.endpoint.label"),copyText:l,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:l})});c&&v.push({name:Us("srcConnection.database.label"),copyText:c,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:c})});o&&v.push({name:Us("credentials.label"),content:(0,d.jsx)(Fs,{connection:o})});return v.push({name:Us("srcPath.label"),copyText:m,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:m})}),v.push({name:Us("dstPath.label"),copyText:p,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:p})}),v.push({name:Us("transformLambda.label"),copyText:h,content:h?(0,d.jsx)(rs,{children:h}):null}),v}(e);return(0,d.jsx)(ot.s,{direction:"column",gap:"4",children:(0,d.jsx)(es,{title:t,items:a})})}const Bs=function({type:e,path:t,database:a}){const[r]=(0,X.Nt)(),s=z(e),i=(0,X.N4)((n=>J(n,t,e,a)),hn.bN);let o=[];s?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=K({paths:o,database:a,autoRefreshInterval:r}),m=l[t];return c||s&&!i?(0,d.jsx)(ue.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(de.o,{error:u}):null,u&&!m?null:(()=>{var n;const r=null!==m&&void 0!==m?m:void 0,s={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeResourcePool]:void 0,[x.EPathTypeTable]:void 0,[x.EPathTypeSubDomain]:void 0,[x.EPathTypeTableIndex]:()=>(0,d.jsx)(kr,{data:r}),[x.EPathTypeExtSubDomain]:void 0,[x.EPathTypeColumnStore]:void 0,[x.EPathTypeColumnTable]:void 0,[x.EPathTypeCdcStream]:()=>{const e=null===i||void 0===i?void 0:i[0];var n;if(e)return(0,d.jsx)(Es,{path:t,database:a,data:r,topic:null!==(n=null===l||void 0===l?void 0:l[e])&&void 0!==n?n:void 0})},[x.EPathTypePersQueueGroup]:()=>(0,d.jsx)(qs,{data:r,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(Jr,{data:r}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Ur,{data:r}),[x.EPathTypeView]:()=>(0,d.jsx)(ss,{data:r}),[x.EPathTypeReplication]:()=>(0,d.jsx)(vs,{data:r}),[x.EPathTypeTransfer]:()=>(0,d.jsx)(Qs,{data:r})};return e&&(null===(n=s[e])||void 0===n?void 0:n.call(s))||(0,d.jsx)(zs,{data:r,type:e})})()]})};var Hs,Gs=a(74417);function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Ws.apply(null,arguments)}const Vs=function(e){return n.createElement("svg",Ws({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Hs||(Hs=n.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))};function Js({href:e,className:t,size:a="xs"}){return(0,d.jsx)(vn.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(ct.I,{data:Vs})})}var Ks=a(20680),Ys=a(66643),Zs=a(40014),Xs=a(25533),ei=a(90474);const ti=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function ai(e){return null===e?Z.Pd:(0,vt.Xo)((0,he.CR)(si(e),2))}function ni(e){return null===e?Z.Pd:(0,va.z3)({value:si(e),precision:3})}function ri(e){return null===e?Z.Pd:Math.round(100*si(e))+"%"}function si(e){return(0,ks.kf)(e)?Number(e):0}const ii={"30m":30*Z.r0,"1h":Z.Jg,"1d":Z.tt,"1w":7*Z.tt},oi=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),li=(0,Be.g4)("ydb-metric-chart",{en:oi}),ci=H.F.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,{signal:t})=>{try{const a=await(async({database:e,metrics:t,timeFrame:a,maxDataPoints:n},{signal:r}={})=>{const s=t.map((e=>`target=${e.target}`)).join("&"),i=Math.round(Date.now()/1e3),o=i-ii[a];return window.api.viewer.getChartData({target:s,from:o,until:i,maxDataPoints:n,database:e},{signal:r})})(e,{signal:t});if(Array.isArray(a)){return{data:((e=[],t)=>{const a=e.map((({datapoints:e,target:a})=>{const n=t.find((e=>e.target===a));if(!n)return;const r=e.map((e=>e[0]));return{...n,data:r}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}})(a,e.metrics)}}return{error:new Error("string"===typeof a?li("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),di=(0,c.cn)("ydb-metric-chart");Ys.W.set({plugins:[Xs.YagrPlugin]});const ui=(e,t={})=>{const{dataType:a,scaleRange:n,showLegend:r}=t,s=(e=>{switch(e){case"ms":return ai;case"size":return ni;case"percent":return ri;default:return}})(a),i=!e.metrics.length,o=e.metrics.map(((e,t)=>{const a=e.color||ti[t],n=function(e,t){const a=(0,ei.Mj)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:s,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:o},libraryConfig:{chart:{size:{padding:i?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:s?(e,t)=>t.map(s):void 0}},tooltip:{show:!0,tracking:"sticky"},legend:{show:r}}}},mi={timeline:[],metrics:[]},pi=({database:e,title:t,metrics:a,timeFrame:r="1h",autorefresh:s,width:i=400,height:o=i/1.5,chartOptions:l,onChartDataStatusChange:c,isChartVisible:u})=>{const{currentData:m,error:p,isFetching:h,status:v}=ci.useGetChartDataQuery({database:e,metrics:a,timeFrame:r,maxDataPoints:i/2},{pollingInterval:s}),g=h&&!m;n.useEffect((()=>null===c||void 0===c?void 0:c("fulfilled"===v?"success":"loading")),[v,c]);const y=ui(m||mi,l);return(0,d.jsxs)("div",{className:di(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:di("title"),children:t}),g?(0,d.jsx)(ue.a,{}):u?(0,d.jsxs)("div",{className:di("chart"),children:[(0,d.jsx)(Zs.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(de.o,{className:di("error"),error:p}):null]}):null]})},hi=(0,c.cn)("ydb-timeframe-selector"),vi=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:hi(null,a),children:Object.keys(ii).map((a=>(0,d.jsx)(vn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),gi=(0,c.cn)("ydb-tenant-dashboard"),yi=({database:e,charts:t})=>{const[a,r]=n.useState(!0),[i="1h",o]=(0,s.useQueryParam)("timeframe",s.StringParam),[l]=(0,X.Nt)(),c=a?0:l,u=e=>{"success"===e&&r(!1)},m=1===t.length?872:428,p=428/1.5;return(0,d.jsxs)("div",{className:gi(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:gi("controls"),children:(0,d.jsx)(vi,{value:i,onChange:o})}),(0,d.jsx)("div",{className:gi("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(pi,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},xi=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour","column-header.process":"Process"}'),bi=(0,Be.g4)("ydb-diagnostics-tenant-overview",{en:xi}),fi=[{title:bi("charts.queries-per-second"),metrics:[{target:"queries.requests",title:bi("charts.queries-per-second")}]},{title:bi("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:"p50"},{target:"queries.latencies.p75",title:"p75"},{target:"queries.latencies.p90",title:"p90"},{target:"queries.latencies.p99",title:"p99"}],options:{dataType:"ms",showLegend:!0}}],Ti=({database:e})=>(0,d.jsx)(yi,{database:e,charts:fi});var ji=a(67157);const Si=H.F.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async({database:e,maxLevel:t},{signal:a})=>{try{return{data:await window.api.viewer.getHealthcheckInfo({database:e,maxLevel:t},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),Ni={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},Ei=e=>e.sort(((e,t)=>(Ni[e.status]||0)-(Ni[t.status]||0))),wi=({issue:e,data:t})=>Ei(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Ci=({data:e,roots:t})=>t?t.map((t=>{const a=Ci({roots:wi({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Pi=(0,g.Mz)((e=>e),(e=>Si.endpoints.getHealthcheckInfo.select({database:e}))),Ii=(0,g.Mz)((e=>e),((e,t)=>Pi(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),Di=(0,g.Mz)(Ii,((e=[])=>{return Ei((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Ai=(0,g.Mz)([Ii,Di],((e=[],t=[])=>Ci({data:e,roots:t}))),_i=(0,g.Mz)(Ii,((e=[])=>(e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort((([e],[t])=>(Ni[e]||0)-(Ni[t]||0)))})(e)));let Ri=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),ki=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED",e}({});var Oi=a(63126),Mi=a(54090);const Li={[ki.UNSPECIFIED]:Mi.m.Grey,[ki.GREY]:Mi.m.Grey,[ki.GREEN]:Mi.m.Green,[ki.BLUE]:Mi.m.Blue,[ki.YELLOW]:Mi.m.Yellow,[ki.ORANGE]:Mi.m.Orange,[ki.RED]:Mi.m.Red},zi=(0,c.cn)("issue-tree-item"),qi=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:zi(),onClick:n,children:[(0,d.jsx)("div",{className:zi("field",{status:!0}),children:(0,d.jsx)(Or.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:zi("field",{message:!0}),children:t})]}),Fi=(0,c.cn)("issue-tree"),$i=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:Fi("info-panel"),children:(0,d.jsx)(mr,{value:Cn(e)})}):null),[]),s=n.useCallback((e=>e.map((e=>{const{id:n}=e,{status:i,message:o,type:l,reasonsItems:c,level:u,...m}=e,p="undefined"===typeof t[n]||t[n],h=()=>{a((e=>({...e,[n]:!p})))};return(0,d.jsxs)(Oi.G,{name:(0,d.jsx)(qi,{status:Li[i],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(_s()(m,["reason"])),s(c||[])]},n)}))),[t,r]);return(0,d.jsx)("div",{className:Fi(),children:(0,d.jsx)("div",{className:Fi("block"),children:s([e])})})},Ui=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),Qi=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),Bi=(0,Be.g4)("ydb-diagnostics-healthcheck",{ru:Qi,en:Ui}),Hi=(0,c.cn)("healthcheck");function Gi({tenantName:e}){const[t]=(0,X.Nt)(),{name:a}=(0,ji.Zd)(),{issueTrees:r,loading:s,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:s}=Si.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Ri.UNSPECIFIED,o=(0,X.N4)((t=>_i(t,e)));return{issueTrees:(0,X.N4)((t=>Ai(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:s,selfCheckResult:i}})(e,{autorefresh:"ydb_ru"===a?void 0:t});return(0,d.jsx)("div",{className:Hi("details"),children:(0,d.jsx)("div",{className:Hi("details-content-wrapper"),children:i?(0,d.jsx)(de.o,{error:i,defaultMessage:Bi("no-data")}):s?(0,d.jsx)(ue.a,{size:"m"}):r&&r.length?(0,d.jsx)(n.Fragment,{children:r.map((e=>(0,d.jsx)($i,{issueTree:e},e.id)))}):Bi("status_message.ok")})})}var Wi=a(8861),Vi=a(73633),Ji=a(70825),Ki=a(43937),Yi=a(10800),Zi=a(71153),Xi=a(2102),eo=a(52358);const to=(0,c.cn)("healthcheck"),ao={[Ri.UNSPECIFIED]:Vi.A,[Ri.GOOD]:Ji.A,[Ri.DEGRADED]:Ki.A,[Ri.MAINTENANCE_REQUIRED]:Yi.A,[Ri.EMERGENCY]:Zi.A};function no(e){const{tenantName:t,active:a}=e,[r]=(0,X.Nt)(),{metricsTab:s}=(0,X.N4)((e=>e.tenant)),{name:i}=(0,ji.Zd)(),o="ydb_ru"===i,{currentData:l,isFetching:c,error:u}=Si.useGetHealthcheckInfoQuery({database:t},{pollingInterval:o?void 0:r,skip:o}),[m,{currentData:p,isFetching:h}]=Si.useLazyGetHealthcheckInfoQuery();n.useEffect((()=>{"healthcheck"===s&&o&&m({database:t})}),[s,o,t,m]),n.useEffect((()=>{const e=()=>{o&&m({database:t})};return document.addEventListener("diagnosticsRefresh",e),()=>{document.removeEventListener("diagnosticsRefresh",e)}}),[t,o,m]);const v=c&&void 0===l||h&&void 0===p;return(0,d.jsxs)(Xi.A,{className:to("preview"),active:a,children:[(0,d.jsx)("div",{className:to("preview-header"),children:(0,d.jsxs)("div",{className:to("preview-title-wrapper"),children:[(0,d.jsx)("div",{className:to("preview-title"),children:Bi("title.healthcheck")}),o?(0,d.jsx)(ia.A,{content:"Healthcheck is disabled. Please update healthcheck manually.",placement:["top"],className:to("icon-wrapper"),children:()=>(0,d.jsx)(ct.I,{size:16,className:to("icon-warn"),data:eo.A})}):null]})}),(()=>{if(u)return(0,d.jsx)(de.o,{error:u,defaultMessage:Bi("no-data")});if(v)return(0,d.jsx)(ue.a,{size:"m"});const e=(null===l||void 0===l?void 0:l.self_check_result)||(null===p||void 0===p?void 0:p.self_check_result)||Ri.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:to("preview-content"),children:(0,d.jsxs)("div",{className:to("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ct.I,{className:to("preview-status-icon"),data:ao[e]}),(0,d.jsx)("div",{className:to("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var ro=a(15132),so=a(33775);const io=(0,c.cn)("ydb-metrics-card"),oo=e=>{let t;return"Warning"===e&&(t=Mi.m.Yellow),"Danger"===e&&(t=Mi.m.Red),t?(0,d.jsx)(so.k,{status:t,mode:"icons",size:"l"}):null};function lo({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(Xi.A,{className:io({active:e}),active:e,children:[(0,d.jsxs)("div",{className:io("header"),children:[t&&(0,d.jsx)("div",{className:io("label"),children:t}),oo(a)]}),(0,d.jsx)("div",{className:io("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:io("metric"),children:[(0,d.jsx)("div",{className:io("metric-title"),children:e}),(0,d.jsx)(ro.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const co=(0,c.cn)("metrics-cards");function uo({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const s=(0,Qr.zy)(),{metricsTab:i}=(0,X.N4)((e=>e.tenant)),o=(0,ye.mA)(s),l=e=>e===i?"":e,c={[ae.pA.cpu]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.cpu)}),[ae.pA.storage]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.storage)}),[ae.pA.memory]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.memory)}),[ae.pA.healthcheck]:(0,ra.YL)({...o,[ra.vh.metricsTab]:l(ae.pA.healthcheck)})};return(0,d.jsxs)("div",{className:co(),children:[(0,d.jsx)(re.N_,{to:c.cpu,className:co("tab"),children:(0,d.jsx)(mo,{poolsCpuStats:e,active:i===ae.pA.cpu})}),(0,d.jsx)(re.N_,{to:c.storage,className:co("tab"),children:(0,d.jsx)(po,{blobStorageStats:a,tabletStorageStats:n,active:i===ae.pA.storage})}),(0,d.jsx)(re.N_,{to:c.memory,className:co("tab"),children:(0,d.jsx)(ho,{memoryStats:t,active:i===ae.pA.memory})}),(0,d.jsx)(re.N_,{to:c.healthcheck,className:co("tab"),children:(0,d.jsx)(no,{tenantName:r,active:i===ae.pA.healthcheck})})]})}function mo({poolsCpuStats:e=[],active:t}){let a=Wi.u.Unspecified;const n=e.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:n,limit:r,used:s}=e,i=(0,Ks.sf)(n);return Wi.Z[i]>Wi.Z[a]&&(a=i),{title:t,value:s,capacity:r}}));return(0,d.jsx)(lo,{label:bi("cards.cpu-label"),active:t,metrics:n,status:a})}function po({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=Wi.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,Ks.sf)(s);return Wi.Z[i]>Wi.Z[n]&&(n=i),{title:t,value:a,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(lo,{label:bi("cards.storage-label"),active:a,metrics:r,status:n})}function ho({active:e,memoryStats:t=[]}){let a=Wi.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:s}=e,i=(0,Ks.sf)(s);return Wi.Z[i]>Wi.Z[a]&&(a=i),{title:t,value:n,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(lo,{label:bi("cards.memory-label"),active:e,metrics:n,status:a})}var vo=a(78762),go=a(86782),yo=a(15298),xo=a(40781);const bo=(0,c.cn)("tenant-overview");function fo({title:e,error:t,loading:a,tableClassNameModifiers:r={},withData:s,children:i}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bo("title"),children:e}),t?(0,d.jsx)(de.o,{error:t}):null,(0,d.jsx)("div",{className:bo("table",r),children:t&&!s?null:a?(0,d.jsx)(St.Q,{rows:Z.Nz}):i})]})}var To=a(82015);const jo=({prefix:e=bi("top"),entity:t,postfix:a,link:r,onClick:s})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(To.E,{to:r,onClick:s,children:t})," ",a]}):`${e} ${t} ${a}`;function So({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,vo.Nh)(e),width:void 0},a=[(0,vo.kv)(),(0,vo._E)(),t],n=a.map((e=>e.name));return[a,(0,xo.R)(n,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",sort:"-CPU",limit:Z.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=jo({entity:bi("nodes"),postfix:bi("by-pools-usage"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:go.zO,data:u,columns:r,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}function No({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,vo.Nh)(e),width:void 0},a=[(0,vo.fR)(),(0,vo._E)(),t,(0,vo.Rn)()],n=a.map((e=>e.name));return[a,(0,xo.R)(n,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",sort:"-LoadAverage",limit:Z.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=jo({entity:bi("nodes"),postfix:bi("by-load"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:go.zO,data:u,columns:r,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}var Eo=a(69053),wo=a(73289),Co=a(16332);const Po=JSON.parse('{"action_cancel":"Cancel"}'),Io=(0,Be.g4)("ydb-confirmation-dialog",{en:Po}),Do=(0,c.cn)("confirmation-dialog"),Ao="confirmation-dialog";function _o({caption:e="",children:t,onConfirm:a,onClose:n,progress:r,textButtonApply:s,textButtonCancel:i,buttonApplyView:o="normal",className:l,renderButtons:c,open:u}){return(0,d.jsxs)(Hn.l,{className:Do(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Hn.l.Header,{caption:(0,d.jsx)("span",{className:Do("caption"),children:e})}),(0,d.jsx)(Hn.l.Body,{children:t}),(0,d.jsx)(Hn.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:s,textButtonCancel:null!==i&&void 0!==i?i:Io("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const Ro=Co.vt((e=>{const t=Co.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(_o,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));Co.kz(Ao,Ro);var ko=a(40569),Oo=a(36894);function Mo(){const[e]=(0,X.iK)(Z.ld,[]),t=(0,X.N4)(Oo.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Lo=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),zo=(0,Be.g4)("ydb-save-query-dialog",{en:Lo}),qo=(0,c.cn)("ydb-save-query");function Fo(e){const t=(0,X.YQ)();return n.useCallback((()=>{Co.Ay.show(Bo,e),t((0,Oo.gJ)())}),[t,e])}function $o({dialogProps:e,...t}){const a=Fo(e);return(0,d.jsx)(vn.$,{onClick:a,...t,children:zo("action.save")})}function Uo({buttonProps:e={}}){const t=(0,X.YQ)(),a=(0,X.N4)(Oo.aW),n=Fo(),r=()=>{t((0,Oo.Wg)(a)),t((0,Oo.gJ)())};return a?(()=>{const t=[{action:r,text:zo("action.edit-existing")},{action:n,text:zo("action.save-as-new")}];return(0,d.jsx)(ko.r,{items:t,renderSwitcher:t=>(0,d.jsx)(vn.$,{...t,...e,children:zo("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)($o,{})}function Qo({onSuccess:e,onCancel:t,onClose:a,open:r}){const s=Mo(),i=(0,X.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Oo.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},p=()=>{null===t||void 0===t||t(),m()};return(0,d.jsxs)(Hn.l,{open:r,hasCloseButton:!1,size:"s",onClose:p,children:[(0,d.jsx)(Hn.l.Header,{caption:zo("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?zo("error.name-exists"):void 0:zo("error.name-not-empty");var n;u(a),a||(i((0,Oo.Wg)(o)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Hn.l.Body,{className:qo("dialog-body"),children:[(0,d.jsx)("div",{className:qo("dialog-row"),children:zo("description")}),(0,d.jsxs)("div",{className:qo("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:qo("field-title","required"),children:zo("input-label")}),(0,d.jsx)("div",{className:qo("control-wrapper"),children:(0,d.jsx)(Fn.k,{id:"queryName",placeholder:zo("input-placeholder"),value:o,onUpdate:e=>{l(e),u(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:c?"invalid":void 0,errorMessage:c})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:zo("button-apply"),textButtonCancel:zo("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const Bo="save-query-dialog",Ho=Co.Ay.create((e=>{const t=Co.Ay.useModal();return(0,d.jsx)(Qo,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));Co.Ay.register(Bo,Ho);const Go=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),Wo=(0,Be.g4)("ydb-change-input-confirmation",{en:Go});function Vo(){const e=Co.Ay.useModal(Ao),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),r=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),s=n.useMemo((()=>({onSuccess:a,onCancel:r})),[a,r]);return(0,d.jsx)($o,{view:"action",size:"l",dialogProps:s})}async function Jo(){return await Co.Ay.show(Ao,{id:Ao,caption:Wo("context_unsaved-changes-warning"),textButtonApply:Wo("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Vo,{}),e]})})}function Ko(e){const t=(0,X.N4)(wo.Wp),a=n.useMemo((()=>function(e){return async t=>{await Jo()&&e(t)}}(e)),[e]);return t?a:e}const Yo=(0,c.cn)("kv-truncated-query"),Zo=({value:e="",maxQueryHeight:t=6})=>{const a=e.split("\n");if(a.length>t){const e=a.slice(0,t).join("\n"),r="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rs,{className:Yo(),children:e}),(0,d.jsx)("span",{className:Yo("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(rs,{children:e})};var Xo=a(70206),el=a.n(Xo);const tl={...Z.N3,dynamicRenderType:"variable"},al=JSON.parse('{"cpu-time":"CPUTime","read-rows":"ReadRows","read-bytes":"ReadBytes","query-hash":"QueryHash","user":"User","start-time":"Start time","end-time":"End time","duration":"Duration","query-text":"Query text","application":"Application"}'),nl=(0,Be.g4)("ydb-top-queries-columns",{en:al}),rl="topQueriesColumnsWidth",sl="CPUTime",il="QueryText",ol="EndTime",ll="ReadRows",cl="ReadBytes",dl="UserSID",ul="OneLineQueryText",ml="QueryHash",pl="Duration",hl="QueryStartAt",vl="ApplicationName",gl={get CPUTime(){return nl("cpu-time")},get QueryText(){return nl("query-text")},get EndTime(){return nl("end-time")},get ReadRows(){return nl("read-rows")},get ReadBytes(){return nl("read-bytes")},get UserSID(){return nl("user")},get OneLineQueryText(){return nl("query-text")},get QueryHash(){return nl("query-hash")},get Duration(){return nl("duration")},get QueryStartAt(){return nl("start-time")},get ApplicationName(){return nl("application")}},yl={CPUTime:"CPUTimeUs",QueryText:void 0,EndTime:"EndTime",ReadRows:"ReadRows",ReadBytes:"ReadBytes",UserSID:"UserSID",OneLineQueryText:void 0,QueryHash:void 0,Duration:"Duration",QueryStartAt:"QueryStartAt",ApplicationName:"ApplicationName"};function xl(e){return yl[e]}function bl(e){return Boolean(xl(e))}const fl=(0,c.cn)("kv-top-queries"),Tl={name:sl,header:gl.CPUTime,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:Rt.Ay.RIGHT,sortable:!1},jl={name:il,header:gl.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:fl("query"),children:(0,d.jsx)(Zo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},Sl={name:ol,header:gl.EndTime,render:({row:e})=>(0,he.r6)(new Date(e.EndTime).getTime()),align:Rt.Ay.RIGHT,width:200},Nl={name:ll,header:gl.ReadRows,render:({row:e})=>(0,he.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Rt.Ay.RIGHT,width:150},El={name:cl,header:gl.ReadBytes,render:({row:e})=>(0,he.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Rt.Ay.RIGHT,width:150},wl={name:dl,header:gl.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:fl("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Rt.Ay.LEFT},Cl={name:ul,header:gl.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(rs,{children:(null===(t=e.QueryText)||void 0===t?void 0:t.toString())||""})},sortable:!1,width:500},Pl={name:ml,header:gl.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(el().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},Il={name:pl,header:gl.Duration,render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:Rt.Ay.RIGHT,width:150},Dl={name:hl,header:gl.QueryStartAt,render:({row:e})=>(0,he.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Rt.Ay.DESCENDING},Al={name:vl,header:gl.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:fl("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function _l({tenantName:e}){var t,a;const r=(0,X.YQ)(),s=(0,Qr.zy)(),i=(0,Qr.W6)(),o=(0,ye.mA)(s),[l]=(0,X.Nt)(),c=n.useMemo((()=>[Pl,Cl,Tl]),[]),{currentData:u,isFetching:m,error:p}=Eo.Ke.useGetTopQueriesQuery({database:e},{pollingInterval:l}),h=m&&void 0===u,v=(null===u||void 0===u||null===(t=u.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=Ko(n.useCallback((e=>{const{QueryText:t}=e;r((0,wo.iZ)({input:t}));const a=(0,ye.mA)(s),n=(0,ra.YL)({...a,[ae.Dt]:ae.Dg.query,[ra.vh.queryTab]:ae.tQ.newQuery});i.push(n)}),[r,i,s])),y=jo({entity:bi("queries"),postfix:bi("by-cpu-time",{executionPeriod:bi("executed-last-hour")}),onClick:()=>{r((0,Eo.TX)({from:void 0,to:void 0}))},link:(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:ae.iJ.topQueries})});return(0,d.jsx)(fo,{title:y,loading:h,error:(0,Nt.Cb)(p),withData:Boolean(u),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:rl,data:v,columns:c,onRowClick:g,rowClassName:()=>bo("top-queries-row"),settings:Z.jp})})}function Rl(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${Z.Nz}`}const kl=H.F.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async({database:e,path:t=""},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({query:Rl(t,e),database:e,action:"execute-scan"},{signal:a,withRetries:!0});return(0,Nt.We)(n)?{error:n}:{data:(0,Nt.fW)(n)}}catch(n){return{error:n||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var Ol=a(67884);function Ml({path:e,location:t,...a}){const n=(0,ye.mA)(t),r=(0,ye.Ow)({...n,schema:e});return(0,d.jsx)(Ol.N,{view:"normal",...a,href:r})}var Ll=a(80420),zl=a(13342),ql=a(16439),Fl=a(29819);const $l=JSON.parse('{"tablet-id":"TabletId","cpu-cores":"CPUCores","data-size":"DataSize (B)","path":"Path","node-id":"NodeId","peak-time":"PeakTime","in-flight-tx-count":"InFlightTxCount","interval-end":"IntervalEnd"}'),Ul=(0,Be.g4)("ydb-top-shards-columns",{en:$l}),Ql="topShardsColumnsWidth",Bl="TabletId",Hl="CPUCores",Gl="DataSize",Wl="Path",Vl="NodeId",Jl="PeakTime",Kl="InFlightTxCount",Yl="IntervalEnd",Zl={get TabletId(){return Ul("tablet-id")},get CPUCores(){return Ul("cpu-cores")},get DataSize(){return Ul("data-size")},get Path(){return Ul("path")},get NodeId(){return Ul("node-id")},get PeakTime(){return Ul("peak-time")},get InFlightTxCount(){return Ul("in-flight-tx-count")},get IntervalEnd(){return Ul("interval-end")}},Xl={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function ec(e){return Xl[e]}const tc=(e,t)=>({name:Wl,header:Zl.Path,render:({row:a})=>(0,d.jsx)(Ml,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),ac={name:Gl,header:Zl.DataSize,render:({row:e})=>(0,he.ZV)(e.DataSize),align:Rt.Ay.RIGHT},nc={name:Bl,header:Zl.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(Ll.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},rc={name:Vl,header:Zl.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)(_a.E,{to:(0,Fl.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:Rt.Ay.RIGHT},sc={name:Hl,header:Zl.CPUCores,render:({row:e})=>{const t=100*Number(e.CPUCores)||0;return(0,d.jsx)(zl.U,{value:(0,he.CR)(t,2),theme:(0,ql.f)(t)})},align:Rt.Ay.RIGHT,width:110,resizeMinWidth:110},ic={name:Kl,header:Zl.InFlightTxCount,render:({row:e})=>(0,he.ZV)(e.InFlightTxCount),align:Rt.Ay.RIGHT},oc=({tenantName:e,path:t})=>{var a,n;const r=(0,Qr.zy)(),s=(0,ye.mA)(r),[i]=(0,X.Nt)(),{currentData:o,isFetching:l,error:c}=kl.useGetTopShardsQuery({database:e,path:t},{pollingInterval:i}),u=l&&void 0===o,m=(null===o||void 0===o||null===(a=o.resultSets)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.result)||[],p=((e,t)=>[nc,tc(e,t),sc])(e,r),h=jo({entity:bi("shards"),postfix:bi("by-cpu-usage"),link:(0,ra.YL)({...s,[ra.vh.diagnosticsTab]:ae.iJ.topShards})});return(0,d.jsx)(fo,{title:h,loading:u,error:(0,Nt.Cb)(c),withData:Boolean(o),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:Ql,data:m,columns:p,settings:Z.jp})})},lc=[{title:bi("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1},showLegend:!0}}];function cc({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:lc}),(0,d.jsx)(No,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(So,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(oc,{tenantName:e,path:e}),(0,d.jsx)(_l,{tenantName:e})]})}var dc=a(73473);function uc({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t=[(0,vo._E)(),(0,vo.Nh)(e),(0,vo.jl)(),(0,vo.fR)(),(0,vo.iX)(),(0,vo.oz)(),(0,vo.qp)(e)],a=t.map((e=>e.name));return[t,(0,xo.R)(a,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",tablets:!0,sort:"-Memory",limit:Z.Nz,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=jo({entity:bi("nodes"),postfix:bi("by-memory"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:go.zO,data:u,columns:r,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}const mc=[{title:bi("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:bi("charts.memory-usage")}],options:{dataType:"size"}}];function pc({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:mc}),(0,d.jsx)("div",{className:bo("title"),children:"Memory details"}),(0,d.jsx)("div",{className:bo("memory-info"),children:t?(0,d.jsx)(dc.S,{formatValues:he.vX,stats:t}):(0,d.jsx)(ro.O,{value:a,capacity:r,formatValues:he.vX,colorizeProgress:!0})}),(0,d.jsx)(uc,{tenantName:e})]})}var hc=a(18863),vc=a(10174),gc=a(20831),yc=a(10360);function xc({tenant:e}){const t=(0,X.e4)(),a=(0,ie.Pm)(),n=(0,ie.YA)(),[r]=(0,X.Nt)(),[s,i]=function(){const e=(0,gc.k)(),t=e.map((e=>e.name));return[e,(0,xo.R)(t,yc.YX)]}(),{currentData:o,isFetching:l,error:c}=vc.S.useGetStorageGroupsInfoQuery({tenant:e,sort:"-Usage",with:"all",limit:Z.Nz,shouldUseGroupsHandler:n,fieldsRequired:i},{pollingInterval:r,skip:!a}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.groups)||[],p=jo({entity:bi("groups"),postfix:bi("by-usage"),link:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.storage})});return(0,d.jsx)(fo,{title:p,loading:u||!a,error:c,withData:Boolean(o),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:yc.qK,data:m,columns:s,settings:Z.jp})})}const bc=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${Z.Nz}\n`,fc=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:bc(e),database:e,action:"execute-scan"},{signal:t,withRetries:!0});return(0,Nt.We)(a)?{error:a}:{data:(0,Nt.fW)(a)}}catch(a){return{error:a||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"});function Tc({path:e}){var t,a;const n=(0,Qr.zy)(),[r]=(0,X.Nt)(),{currentData:s,error:i,isFetching:o}=fc.useGetTopTablesQuery({path:e},{pollingInterval:r}),l=o&&void 0===s,c=(null===s||void 0===s||null===(t=s.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],u=[{name:"Size",width:100,render:({row:e})=>(e=>{const t=(0,va.fn)(null!==c&&void 0!==c&&c.length?Number(c[0].Size):0);return(0,va.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:Rt.Ay.RIGHT},{name:"Path",width:700,render:({row:e})=>e.Path?(0,d.jsx)(ut.s,{content:e.Path,children:(0,d.jsx)(Ml,{path:String(e.Path),location:n,children:e.Path})}):null}],m=jo({entity:bi("tables"),postfix:bi("by-size")});return(0,d.jsx)(fo,{title:m,loading:l,error:(0,Nt.Cb)(i),withData:Boolean(s),children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c,columns:u,settings:Z.jp})})}const jc=[{title:bi("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:bi("charts.storage-usage")}],options:{dataType:"size"}}];function Sc({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:s,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(ka,{text:bi("storage.tablet-storage-title"),popoverContent:bi("storage.tablet-storage-description")}),value:(0,d.jsx)(ro.O,{value:r,capacity:i,formatValues:he.j9,colorizeProgress:!0})},{label:(0,d.jsx)(ka,{text:bi("storage.db-storage-title"),popoverContent:bi("storage.db-storage-description")}),value:(0,d.jsx)(ro.O,{value:a,capacity:s,formatValues:he.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:jc}),(0,d.jsx)(hc.z,{className:bo("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(Tc,{path:e}),(0,d.jsx)(xc,{tenant:e})]})}function Nc({tenantName:e,additionalTenantProps:t,additionalNodesProps:a}){var n,r,s;const{metricsTab:i}=(0,X.N4)((e=>e.tenant)),[o]=(0,X.Nt)(),{currentData:l,isFetching:c}=oe.z6.useGetTenantInfoQuery({path:e},{pollingInterval:o}),u=c&&void 0===l,{Name:m,Type:p,Overall:h}=l||{},v=(g=p)&&P[g];var g;const{currentData:y}=G.useGetOverviewQuery({path:e,database:e},{pollingInterval:o}),{Tables:x,Topics:b}=(null===y||void 0===y||null===(n=y.PathDescription)||void 0===n||null===(r=n.DomainDescription)||void 0===r?void 0:r.DiskSpaceUsage)||{},f=[null===x||void 0===x?void 0:x.TotalSize,null===b||void 0===b?void 0:b.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),T={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:j,tabletStorage:S,blobStorageLimit:N,tabletStorageLimit:E,poolsStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D}=(0,Ks.uI)(T),A={blobStorageUsed:j,blobStorageLimit:N,tabletStorageUsed:S,tabletStorageLimit:E};if(u)return(0,d.jsx)("div",{className:bo("loader"),children:(0,d.jsx)(Gs.a,{size:"m"})});const _=null===t||void 0===t||null===(s=t.getMonitoringLink)||void 0===s?void 0:s.call(t,m,p);return(0,d.jsxs)("div",{className:bo(),children:[(0,d.jsxs)("div",{className:bo("info"),children:[(0,d.jsx)("div",{className:bo("top-label"),children:v}),(0,d.jsxs)("div",{className:bo("top"),children:[(0,d.jsx)("div",{className:bo("tenant-name-wrapper"),children:(0,d.jsx)(Or.c,{status:h,name:m||Z.oK,withLeftTrim:!0,hasClipboardButton:Boolean(l),clipboardButtonAlwaysVisible:!0})}),_&&(0,d.jsx)(Js,{href:_})]}),(0,d.jsx)(uo,{poolsCpuStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D,tenantName:e})]}),(()=>{switch(i){case ae.pA.cpu:return(0,d.jsx)(cc,{tenantName:e,additionalNodesProps:a});case ae.pA.storage:return(0,d.jsx)(Sc,{tenantName:e,metrics:A});case ae.pA.memory:return(0,d.jsx)(pc,{tenantName:e,memoryUsed:T.MemoryUsed,memoryLimit:T.MemoryLimit,memoryStats:T.MemoryStats});case ae.pA.healthcheck:return(0,d.jsx)(Gi,{tenantName:e});default:return(0,d.jsx)(Ti,{database:e})}})()]})}const Ec=(0,c.cn)("kv-detailed-overview");const wc=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:Ec(),children:i?(0,d.jsx)("div",{className:Ec("section"),children:(0,d.jsx)(Nc,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(Bs,{type:t,path:n,database:a})})},Cc={id:ae.iJ.overview,title:"Info"},Pc={id:ae.iJ.schema,title:"Schema"},Ic={id:ae.iJ.topQueries,title:"Queries"},Dc={id:ae.iJ.topShards,title:"Top shards"},Ac={id:ae.iJ.nodes,title:"Nodes"},_c={id:ae.iJ.tablets,title:"Tablets"},Rc={id:ae.iJ.storage,title:"Storage"},kc={id:ae.iJ.network,title:"Network"},Oc={id:ae.iJ.describe,title:"Describe"},Mc={id:ae.iJ.hotKeys,title:"Hot keys"},Lc={id:ae.iJ.graph,title:"Graph"},zc={id:ae.iJ.consumers,title:"Consumers"},qc={id:ae.iJ.partitions,title:"Partitions"},Fc=[Cc,_c,Oc],$c=[Cc,_c,Oc],Uc=[Cc,Ic,Dc,Ac,_c,Rc,kc,Oc,{id:ae.iJ.configs,title:"Configs"},{id:ae.iJ.operations,title:"Operations"}],Qc=[Cc,Pc,Dc,Ac,Lc,_c,Mc,Oc],Bc=[Cc,Pc,Dc,Ac,_c,Oc],Hc=[Cc,Dc,Ac,Oc],Gc=[Cc,zc,qc,Ac,_c,Oc],Wc=[Cc,zc,qc,Ac,_c,Oc],Vc=[Cc,Oc],Jc=[Cc,Pc,Oc],Kc=[Cc,Pc,Oc],Yc={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:Uc,[x.EPathTypeExtSubDomain]:Uc,[x.EPathTypeColumnStore]:Uc,[x.EPathTypeTable]:Qc,[x.EPathTypeColumnTable]:Bc,[x.EPathTypeDir]:Hc,[x.EPathTypeTableIndex]:Hc,[x.EPathTypeCdcStream]:Gc,[x.EPathTypePersQueueGroup]:Wc,[x.EPathTypeExternalDataSource]:Vc,[x.EPathTypeExternalTable]:Jc,[x.EPathTypeView]:Kc,[x.EPathTypeReplication]:Fc,[x.EPathTypeTransfer]:$c,[x.EPathTypeResourcePool]:Hc};var Zc=a(81240),Xc=a(80604);const ed=H.F.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{var n;const r=await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!0},{signal:a});if(Array.isArray(r.hotkeys))return{data:r.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{a.addEventListener("abort",t)}))]);return{data:null!==(n=(await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!1},{signal:a})).hotkeys)&&void 0!==n?n:null}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),td=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),ad=(0,Be.g4)("ydb-hot-keys",{en:td});var nd;function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},rd.apply(null,arguments)}const sd=function(e){return n.createElement("svg",rd({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),nd||(nd=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},id=(0,c.cn)("ydb-hot-keys"),od="accessSample";function ld({path:e,database:t}){var a,r;const{currentData:s,isFetching:i,error:o}=ed.useGetHotKeysQuery({path:e,database:t}),l=i&&void 0===s,[c]=(0,X.Nt)(),{currentData:u,isLoading:m}=G.useGetOverviewQuery({path:e,database:t},{pollingInterval:c}),p=null===u||void 0===u||null===(a=u.PathDescription)||void 0===a||null===(r=a.Table)||void 0===r?void 0:r.KeyColumnNames,h=n.useMemo((()=>((e=[])=>[...e.map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:id("primary-key-column"),children:[(0,d.jsx)(ct.I,{data:sd,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Rt.Ay.RIGHT,sortable:!1}))),{name:od,header:"Samples",render:({row:e})=>e.accessSample,align:Rt.Ay.RIGHT,sortable:!1}])(p)),[p]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(cd,{}),l||m?(0,d.jsx)("div",{children:ad("hot-keys-collecting")}):o?(0,d.jsx)(de.o,{error:o}):s?(0,d.jsx)(qe.l,{wrapperClassName:id("table"),columns:h,data:s,settings:Z.N3,initialSortOrder:{columnId:od,order:Rt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:ad("no-data")})]})}function cd(){const[e,t]=(0,X.iK)(Z.Gj);return e?null:(0,d.jsxs)(Xc.Z,{theme:"info",view:"filled",type:"container",className:id("help-card"),children:[ad("help"),(0,d.jsx)(vn.$,{className:id("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ct.I,{data:Zc.A,size:18})})]})}var dd=a(78524),ud=a(9252);const md=H.F.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNetwork({path:e,database:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var pd=a(88610);const hd=(0,c.cn)("node-network");function vd(){}function gd({nodeId:e,connected:t,capacity:a,rack:r,status:s,onClick:i=vd,onMouseEnter:o=vd,onMouseLeave:l=vd,showID:c,isBlurred:u}){const m=n.useRef(null),p=s||function(e=0,t=0){const a=Math.floor(e/t*100);return 100===a?Mi.m.Green:a>=70?Mi.m.Yellow:a>=1?Mi.m.Red:Mi.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:hd({[p.toLowerCase()]:!0,id:c,blur:u}),onMouseEnter:()=>{o(m.current,{nodeId:e,connected:t,capacity:a,rack:r},"node")},onMouseLeave:()=>{l()},onClick:()=>i(e),children:c?e:null})}const yd=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var xd,bd,fd,Td,jd,Sd,Nd,Ed,wd,Cd,Pd,Id,Dd,Ad,_d;function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Rd.apply(null,arguments)}const kd=function(e){return n.createElement("svg",Rd({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),xd||(xd=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),bd||(bd=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),fd||(fd=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Td||(Td=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),jd||(jd=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Sd||(Sd=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),Nd||(Nd=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),Ed||(Ed=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),wd||(wd=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Cd||(Cd=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),Pd||(Pd=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),Id||(Id=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),Dd||(Dd=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),Ad||(Ad=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),_d||(_d=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},Od=(0,c.cn)("network");function Md({tenantName:e}){var t,a;const[r]=(0,X.Nt)(),s=(0,X.N4)(pd.yV),i=(0,X.YQ)(),[o,l]=n.useState(),[c,u]=n.useState(!1),[m,p]=n.useState(!1),{currentData:h,isFetching:v,error:g}=md.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Gs.a,{size:"l"})});const y=h,x=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===x.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const b=zd(x,"NodeType"),f=o?zd(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Od(),children:[g?(0,d.jsx)(de.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:Od("inner"),children:(0,d.jsxs)("div",{className:Od("nodes-row"),children:[(0,d.jsxs)("div",{className:Od("left"),children:[(0,d.jsx)("div",{className:Od("controls-wrapper"),children:(0,d.jsxs)("div",{className:Od("controls"),children:[(0,d.jsx)(ud.k,{value:s,onChange:e=>{i((0,pd.$u)(e))},className:Od("problem-filter")}),(0,d.jsx)("div",{className:Od("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:Od("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(Ld,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:Od("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Od("label"),children:["Connectivity of node"," ",(0,d.jsx)(re.N_,{className:Od("link"),to:(0,Fl.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Od("nodes-row"),children:(0,d.jsx)(Ld,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:Od("placeholder"),children:[(0,d.jsx)("div",{className:Od("placeholder-img"),children:(0,d.jsx)(ct.I,{data:kd,width:221,height:204})}),(0,d.jsx)("div",{className:Od("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Ld({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:s}){const i=(0,X.N4)(pd.yV),o=(0,X.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=zd(e[c],"Rack");return(0,d.jsxs)("div",{className:Od("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:Od("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:Od("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:Od("rack-column"),children:[(0,d.jsx)("div",{className:Od("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,n)=>{let c,u;return!t&&"Peers"in e&&e.Peers&&(c=Object.keys(e.Peers).length,u=yd(e.Peers)),i===pd.s$.PROBLEMS&&c!==u||i===pd.s$.ALL||t?(l++,(0,d.jsx)(gd,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:c,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))]},n))):e[c].map(((e,n)=>{let c,u;const m=e&&"Peers"in e?e.Peers:void 0;return!t&&"Peers"in e&&e.Peers&&(c=e.Peers.length,u=yd(m)),i===pd.s$.PROBLEMS&&c!==u||i===pd.s$.ALL||t?(l++,(0,d.jsx)(gd,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))})]},u)}));return i===pd.s$.PROBLEMS&&0===l?(0,d.jsx)(dd.v,{name:"thumbsUp",width:"200"}):c}function zd(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const qd=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],Fd=["NodeId"],$d=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function Ud({database:e,path:t,parentRef:a,additionalNodesProps:n}){const r=(0,ie.Pm)(),s=(0,ie.WF)(),[i]=(0,X.iK)(Z.g5),l=s&&i;return(0,d.jsx)(o.r,{loading:!r,children:(()=>{return l?(0,d.jsx)(Le.G,{path:t,database:e,parentRef:a,withPeerRoleFilter:!0,additionalNodesProps:n,columns:(r={database:e,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef},[(0,vo._E)(),(0,vo.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,vo.uk)(),(0,vo.OX)(),(0,vo.jl)(),(0,vo.fr)(),(0,vo.kv)(),(0,vo.SH)(),(0,vo.H)(),(0,vo.DH)(),(0,vo.ui)(),(0,vo.wN)(),(0,vo.pt)()].map((e=>({...e,sortable:(0,go.sp)(e.name)})))),defaultColumnsIds:qd,requiredColumnsIds:Fd,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:$d}):(0,d.jsx)(Md,{tenantName:e});var r})()})}var Qd=a(24600),Bd=a(47058),Hd=a(69775),Gd=a(41775);const Wd=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),Vd=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),Jd=(0,Be.g4)("ydb-diagnostics-partitions",{ru:Vd,en:Wd}),Kd={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},Yd={[Kd.PARTITION_ID]:"Partition ID",[Kd.STORE_SIZE]:"Store size",[Kd.WRITE_SPEED]:"Write speed",[Kd.READ_SPEED]:"Read speed",[Kd.WRITE_LAGS]:"Write lags, duration",[Kd.READ_LAGS]:"Read lags, duration",[Kd.UNCOMMITED_MESSAGES]:"Uncommited messages",[Kd.UNREAD_MESSAGES]:"Unread messages",[Kd.START_OFFSET]:"Start offset",[Kd.END_OFFSET]:"End offset",[Kd.COMMITED_OFFSET]:"Commited offset",[Kd.READ_SESSION_ID]:"Read session ID",[Kd.READER_NAME]:"Reader name",[Kd.PARTITION_HOST]:"Partition host",[Kd.CONNECTION_HOST]:"Connection host"},Zd="partitionWriteLag",Xd="partitionWriteIdleTime",eu={[Zd]:"write lag",[Xd]:"write idle time"},tu="consumerWriteLag",au="consumerReadLag",nu="consumerReadIdleTime",ru={[tu]:"write lag",[au]:"read lag",[nu]:"read idle time"},su=[Kd.PARTITION_ID,Kd.STORE_SIZE,Kd.WRITE_SPEED,Kd.WRITE_LAGS,Kd.START_OFFSET,Kd.END_OFFSET,Kd.PARTITION_HOST],iu=Object.values(Kd),ou=({consumers:e,selectedConsumer:t,onSelectedConsumerChange:a,selectDisabled:r,partitions:s,onSearchChange:i,hiddenColumns:o,onHiddenColumnsChange:l,initialColumnsIds:c})=>{const[u,m]=n.useState(""),[p,h]=n.useState("");n.useEffect((()=>{if(!s)return;const e=new RegExp(ha()(p),"i"),t=new RegExp(ha()(u),"i"),a=s.filter((a=>{const{partitionId:n,readerName:r,readSessionId:s,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,s,i,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));i(a)}),[p,u,s,i]);const v=n.useMemo((()=>{const t=e&&e.length?e.map((e=>({value:e,content:e}))):[];return[{value:"",content:Jd("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===Kd.PARTITION_ID,n={title:Yd[t],selected:Boolean(!o.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[c,o]),y=e=>(0,d.jsx)("div",{className:xu("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(le.l,{className:xu("consumer-select"),label:Jd("controls.consumerSelector"),options:v,value:[t||""],onUpdate:e=>{a(e[0]||void 0)},filterable:e&&e.length>5,disabled:r||!e||!e.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(Gd.v,{onChange:e=>{h(e)},placeholder:Jd("controls.partitionSearch"),className:xu("search",{partition:!0}),value:p}),(0,d.jsx)(Gd.v,{onChange:e=>{m(e)},placeholder:Jd("controls.generalSearch"),className:xu("search",{general:!0}),value:u}),(0,d.jsx)(Hd.O,{popupWidth:242,items:g,showStatus:!0,onUpdate:e=>{const t=[...o];e.forEach((e=>{e.selected||o.includes(e.id)?e.selected&&o.includes(e.id)&&t.splice(o.indexOf(e.id)):t.push(e.id)})),l(t)},sortable:!1},"TableColumnSetup")]})},lu=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),cu=({title:e})=>(0,d.jsx)("div",{className:lu("multiline"),children:e}),du=()=>(0,d.jsx)("div",{className:lu("read-session"),children:Yd[Kd.READ_SESSION_ID]}),uu=()=>(0,d.jsx)(ka,{className:lu("lags"),text:Yd[Kd.WRITE_LAGS],popoverContent:(0,d.jsx)(Va,{text:Jd("lagsPopover.writeLags"),type:"write"})}),mu=()=>(0,d.jsx)(ka,{className:lu("lags"),text:Yd[Kd.READ_LAGS],popoverContent:(0,d.jsx)(Va,{text:Jd("lagsPopover.readLags"),type:"read"})}),pu=()=>(0,d.jsx)(ka,{className:lu("messages"),text:Yd[Kd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:lu("messages-popover-content"),children:Jd("headers.unread")})}),hu=()=>(0,d.jsx)(ka,{className:lu("messages"),text:Yd[Kd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:lu("messages-popover-content"),children:Jd("headers.uncommited")})}),vu=(0,c.cn)("ydb-diagnostics-partitions-columns"),gu=[{name:Kd.PARTITION_ID,header:(0,d.jsx)(cu,{title:Yd[Kd.PARTITION_ID]}),sortAccessor:e=>(0,ks.kf)(e.partitionId)&&Number(e.partitionId),align:Rt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:Kd.STORE_SIZE,header:(0,d.jsx)(cu,{title:Yd[Kd.STORE_SIZE]}),align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.z3)(e.storeSize)},{name:Kd.WRITE_SPEED,header:Yd[Kd.WRITE_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.writeSpeed})},{name:Kd.READ_SPEED,header:Yd[Kd.READ_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:Kd.WRITE_LAGS,header:(0,d.jsx)(uu,{}),className:vu("lags-header"),sub:[{name:Zd,header:eu[Zd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteLag)},{name:Xd,header:eu[Xd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteIdleTime)}]},{name:Kd.READ_LAGS,header:(0,d.jsx)(mu,{}),className:vu("lags-header"),sub:[{name:tu,header:ru[tu],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerWriteLag)},{name:au,header:ru[au],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadLag)},{name:nu,header:ru[nu],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadIdleTime)}]},{name:Kd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(hu,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:Kd.UNREAD_MESSAGES,header:(0,d.jsx)(pu,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:Kd.START_OFFSET,header:(0,d.jsx)(cu,{title:Yd[Kd.START_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.startOffset)&&Number(e.startOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:Kd.END_OFFSET,header:(0,d.jsx)(cu,{title:Yd[Kd.END_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.endOffset)&&Number(e.endOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:Kd.COMMITED_OFFSET,header:(0,d.jsx)(cu,{title:Yd[Kd.COMMITED_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:Kd.READ_SESSION_ID,header:(0,d.jsx)(du,{}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(Or.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Kd.READER_NAME,header:(0,d.jsx)(cu,{title:Yd[Kd.READER_NAME]}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(Or.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Kd.PARTITION_HOST,header:(0,d.jsx)(cu,{title:Yd[Kd.PARTITION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(Or.c,{name:e.partitionHost,path:(0,Fl.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Kd.CONNECTION_HOST,header:(0,d.jsx)(cu,{title:Yd[Kd.CONNECTION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(Or.c,{name:e.connectionHost,path:(0,Fl.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],yu=gu.filter((e=>su.includes(e.name))),xu=(0,c.cn)("ydb-diagnostics-partitions"),bu=({path:e,database:t})=>{const a=(0,X.YQ)(),[r,s]=n.useState([]),i=(0,X.N4)((a=>fa(a,e,t))),[o]=(0,X.Nt)(),{selectedConsumer:l}=(0,X.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:m}=ga.useGetTopicQuery({path:e,database:t}),p=u&&void 0===c,{currentData:h,isFetching:v,error:g}=Qd.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,X.N4)(Qd.K),[f,T]=(0,X.iK)(Z.bs),[j,S]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(gu),s(iu)):(a(yu),s(su))}),[e]),[t,r]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=Bd.aD.useGetPartitionsQuery(N,{pollingInterval:o}),P=w&&void 0===E,I=E,D=n.useMemo((()=>((e=[],t)=>null===e||void 0===e?void 0:e.map((e=>{var a,n;const r=e.partitionNodeId&&t?null===(a=t.get(e.partitionNodeId))||void 0===a?void 0:a.Host:void 0,s=e.connectionNodeId&&t?null===(n=t.get(e.connectionNodeId))||void 0===n?void 0:n.Host:void 0;return{...e,partitionHost:r,connectionHost:s}})))(I,b)),[I,b]);n.useEffect((()=>{const e=!p&&!i,t=l&&i&&!i.includes(l);(e||t)&&a((0,Bd.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>j.filter((e=>!f.includes(e.name)))),[j,f]),_=e=>{T(e)},R=e=>{a((0,Bd.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:xu(),children:[(0,d.jsx)("div",{className:xu("controls"),children:(0,d.jsx)(ou,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:s,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:S})}),O?(0,d.jsx)(de.o,{error:O}):null,(0,d.jsx)("div",{className:xu("table-wrapper"),children:(0,d.jsx)("div",{className:xu("table-content"),children:E?k?(0,d.jsx)(St.Q,{className:xu("loader")}):(0,d.jsx)(qe.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:xu("table"),data:r,columns:A,settings:Z.N3,emptyDataMessage:Jd("table.emptyDataMessage")}):null})})]})};var fu=a(44433),Tu=a(23812);const ju=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Su=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Nu=(0,Be.g4)("ydb-date-range",{ru:Su,en:ju});function Eu(e){var t,a,n,r;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?"m":"l"}const wu=(0,c.cn)("date-range"),Cu={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Pu=({from:e,to:t,className:a,onChange:r})=>{const s=n.useCallback((e=>null===r||void 0===r?void 0:r(function(e){var t,a,n,r,s,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,nt.bQ)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?e.end.value.toString():String(null===(s=(0,nt.bQ)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===s?void 0:s.valueOf())}}(e))),[r]),i=n.useMemo((()=>{if(e||t)return function(e){var t,a;const n=(0,nt.eP)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,nt.eP)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,nt.bQ)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,nt.bQ)(Number(e.to))}:null}}({from:e,to:t})}),[e,t]),o=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:wu(null,a),children:(0,d.jsx)(Tu.k,{withPresets:!0,className:wu("range-input",{[Eu(i)]:!0}),timeZone:o,value:i||Cu,allowNullableValues:!0,size:"m",format:Nu("date-time-format"),onUpdate:s,placeholder:`${Nu("date-time-format")} - ${Nu("date-time-format")}`,withApplyButton:!0})})},Iu=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),Du=(0,Be.g4)("ydb-diagnostics-top-queries",{en:Iu}),Au={...tl,disableSortReset:!0};function _u(e){const[t,a]=(0,X.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,X.JN)(t,xl)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Ru=({database:e,onRowClick:t,rowClassName:a})=>{var r;const[s]=(0,X.Nt)(),i=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:o,handleTableSort:l,backendSort:c}=_u(hl),{currentData:u,isFetching:m,error:p}=Eo.Ke.useGetRunningQueriesQuery({database:e,filters:i,sortOrder:c},{pollingInterval:s}),h=m&&void 0===u,v=(null===u||void 0===u||null===(r=u.resultSets)||void 0===r?void 0:r[0].result)||[],g=n.useMemo((()=>[wl,Dl,jl,Al].map((e=>({...e,sortable:bl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(p)}):null,(0,d.jsx)(Fe.L.Table,{loading:h,children:(0,d.jsx)(qe.l,{emptyDataMessage:Du("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:Au,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},ku=({database:e,onRowClick:t,rowClassName:a})=>{var r,s;const[i]=(0,X.Nt)(),o=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:l,handleTableSort:c,backendSort:u}=_u(sl),{currentData:m,isFetching:p,error:h}=Eo.Ke.useGetTopQueriesQuery({database:e,filters:o,sortOrder:u},{pollingInterval:i}),v=p&&void 0===m,g=(null===m||void 0===m||null===(r=m.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],y=n.useMemo((()=>[Pl,Tl,jl,Sl,Il,Nl,El,wl].map((e=>({...e,sortable:bl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(h)}):null,(0,d.jsx)(Fe.L.Table,{loading:v,children:(0,d.jsx)(qe.l,{emptyDataMessage:Du("no-data"),columnsWidthLSKey:rl,columns:y,data:g||[],settings:Au,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},Ou=(0,c.cn)("kv-top-queries"),Mu={top:"top",running:"running"},Lu=[{value:Mu.top,get content(){return Du("mode_top")}},{value:Mu.running,get content(){return Du("mode_running")}}],zu=xt.z.nativeEnum(Mu).catch(Mu.top),qu=({tenantName:e})=>{const t=(0,X.YQ)(),a=(0,Qr.zy)(),r=(0,Qr.W6)(),[i=Mu.top,o]=(0,s.useQueryParam)("queryMode",s.StringParam),l=zu.parse(i),c=l===Mu.top,u=(0,X.N4)((e=>e.executeTopQueries)),m=Ko(n.useCallback((e=>{t((0,wo.iZ)({input:e}));const n=(0,ye.mA)(a),s=(0,ra.YL)({...n,[ae.Dt]:ae.Dg.query,[ra.vh.queryTab]:ae.tQ.newQuery});r.push(s)}),[t,r,a])),p=c?ku:Ru;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsxs)(Fe.L.Controls,{children:[(0,d.jsx)(fu.a,{options:Lu,value:l,onUpdate:o}),(0,d.jsx)(Qe.v,{value:u.text,onChange:e=>{t((0,Eo.TX)({text:e}))},placeholder:Du("filter.text.placeholder"),className:Ou("search")}),c?(0,d.jsx)(Pu,{from:u.from,to:u.to,onChange:e=>{t((0,Eo.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:Ou("row")})]})};var Fu=a(46496),$u=a(87747);const Uu=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),Qu=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),Bu=(0,Be.g4)("ydb-diagnostics-top-shards",{ru:Qu,en:Uu}),Hu=({value:e,onChange:t})=>{const a=e.mode===$u.h.Immediate?void 0:e.from,r=e.mode===$u.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(fu.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))($u.h,e)){const t=Object.values($u.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(fu.a.Option,{value:$u.h.Immediate,children:Bu("filters.mode.immediate")}),(0,d.jsx)(fu.a.Option,{value:$u.h.History,children:Bu("filters.mode.history")})]}),(0,d.jsx)(Pu,{from:a,to:r,onChange:e=>{t({mode:$u.h.History,...e})}})]})};const Gu=(0,c.cn)("top-shards"),Wu={...Z.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Rt.Ay.DESCENDING};function Vu(e){return e?(0,he.r6)(new Date(e).getTime()):"\u2013"}function Ju(e){return e.to="now",e.from="now-1h",e}const Ku=({tenantName:e,path:t})=>{var a,r;const s=(0,X.YQ)(),i=(0,Qr.zy)(),[o]=(0,X.Nt)(),l=(0,X.N4)((e=>e.shardsWorkload)),[c,u]=n.useState((()=>{const e={...l};return e.mode||(e.mode=$u.h.Immediate),e.from||e.to||Ju(e),e})),{tableSort:m,handleTableSort:p,backendSort:h}=function(){const[e,t]=(0,X.GY)({initialSortColumn:Hl,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,X.JN)(e,ec)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:v,isFetching:g,error:y}=Fu.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:h,filters:c},{pollingInterval:o}),x=g&&void 0===v,b=(null===v||void 0===v||null===(a=v.resultSets)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.result)||[],f=e=>{const t={...e};if(!l.from&&!l.to&&!e.from&&!e.to)switch(e.mode){case $u.h.Immediate:t.from=t.to=void 0;break;case $u.h.History:Ju(t)}s((0,Fu.rF)(e)),u((e=>({...e,...t})))},T=n.useMemo((()=>{const t=((e,t)=>[tc(e,t),sc,ac,nc,rc,ic])(e,i),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(ec(t)))};var t}));return c.mode===$u.h.History&&(a.splice(5,0,{name:Jl,render:({row:e})=>Vu(e.PeakTime),sortable:!1}),a.push({name:Yl,render:({row:e})=>Vu(e.IntervalEnd)})),a}),[c.mode,i,e]);return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Hu,{value:c,onChange:f})}),c.mode===$u.h.History&&(0,d.jsx)("div",{className:Gu("hint"),children:Bu("description")}),y?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(y)}):null,(0,d.jsx)(Fe.L.Table,{loading:x,children:y&&!b?null:(0,d.jsx)(qe.l,{columnsWidthLSKey:Ql,columns:T,data:b,settings:Wu,onSort:p,sortOrder:m})})]})},Yu=(0,c.cn)("kv-tenant-diagnostics");const Zu=function(e){const t=n.useRef(null),a=(0,X.YQ)(),{diagnosticsTab:i=ae.iJ.overview}=(0,X.N4)((e=>e.tenant)),[o]=(0,s.useQueryParams)({database:s.StringParam,schema:s.StringParam,backend:s.StringParam,clusterName:s.StringParam}),l=M(e.type)?e.path:e.tenantName,c=M(e.type)||e.path===e.tenantName,u=(0,ie._Q)(),m=c?(({hasFeatureFlags:e})=>e?Uc:Uc.filter((e=>e.id!==ae.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&Yc[p]||Hc;var p;let h=m.find((e=>e.id===i));return h||(h=m[0]),n.useEffect((()=>{h&&h.id!==i&&a((0,oe.WO)(h.id))}),[h,i,a]),(0,d.jsxs)("div",{className:Yu(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:Yu("header-wrapper"),children:(0,d.jsxs)("div",{className:Yu("tabs"),children:[(0,d.jsx)(ne.t,{size:"l",items:m,activeTab:null===(e=h)||void 0===e?void 0:e.id,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:e});return(0,d.jsx)(re.N_,{to:a,className:Yu("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(se.E,{onManualRefresh:()=>{const e=new CustomEvent("diagnosticsRefresh");document.dispatchEvent(e)}})]})})})(),(0,d.jsx)("div",{className:Yu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=h)||void 0===a?void 0:a.id){case ae.iJ.overview:return(0,d.jsx)(wc,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ae.iJ.schema:return(0,d.jsx)(na,{path:r,tenantName:l,type:n,extended:!0});case ae.iJ.topQueries:return(0,d.jsx)(qu,{tenantName:l});case ae.iJ.topShards:return(0,d.jsx)(Ku,{tenantName:l,path:r});case ae.iJ.nodes:return(0,d.jsx)(Le.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.tablets:return(0,d.jsx)(jt.C,{path:r,database:l});case ae.iJ.storage:return(0,d.jsx)(Tt.z,{database:l,parentRef:t});case ae.iJ.network:return(0,d.jsx)(Ud,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.describe:return(0,d.jsx)(hr,{path:r,database:l,type:n});case ae.iJ.hotKeys:return(0,d.jsx)(ld,{path:r,database:l});case ae.iJ.graph:return(0,d.jsx)(Me,{path:r,database:l});case ae.iJ.consumers:return(0,d.jsx)(mn,{path:r,database:l,type:n});case ae.iJ.partitions:return(0,d.jsx)(bu,{path:r,database:l});case ae.iJ.configs:return(0,d.jsx)(ma,{database:l});case ae.iJ.operations:return(0,d.jsx)(ft,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},Xu=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","preview.truncated":"truncated","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","action.run":"Run","action.explain":"Explain","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query was executed with modified settings: ","banner.query-stopped.message":"Data is not up to date because the request was not completed.","banner.query-stopped.never-show":"Never show again","toaster.stop-error":"Something went wrong. Unable to stop request processing. Please wait.","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),em=(0,Be.g4)("ydb-query-editor",{en:Xu}),tm=(0,c.cn)("ydb-queries-history");const am=function({changeUserInput:e}){const t=(0,X.YQ)(),a=(0,X.N4)(wo.py),n=(0,X.N4)(wo.jY),r=[...a].reverse(),s=Ko((a=>{e({input:a.queryText}),t((0,oe.sH)(ae.tQ.newQuery))})),i=[{name:"queryText",header:em("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:tm("query"),children:(0,d.jsx)(Zo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:em("history.endTime"),render:({row:e})=>e.endTime?(0,he.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:em("history.duration"),render:({row:e})=>e.durationUs?(0,vt.Xo)((0,vt.Jc)(e.durationUs)):"-",align:"right",width:150,sortable:!1}];return(0,d.jsxs)(Fe.L,{className:tm(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{value:n,onChange:e=>{t((0,wo.Ni)(e))},placeholder:em("filter.text.placeholder"),className:tm("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:r,settings:tl,emptyDataMessage:em(n?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>tm("table-row")})})]})};var nm=a(13847),rm=a(72093);function sm(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const im=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),om=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),lm=(0,Be.g4)("ydb-query-settings-dialog",{en:im,ru:om}),cm=[{value:Nt.Wg.implicit,content:Nt._d[Nt.Wg.implicit],text:em("transaction-mode-description.implicit"),isDefault:!0},{value:Nt.Wg.serializable,content:Nt._d[Nt.Wg.serializable],text:em("transaction-mode-description.serializable")},{value:Nt.Wg.onlinero,content:Nt._d[Nt.Wg.onlinero],text:em("transaction-mode-description.onlinero")},{value:Nt.Wg.stalero,content:Nt._d[Nt.Wg.stalero],text:em("transaction-mode-description.stalero")},{value:Nt.Wg.snapshot,content:Nt._d[Nt.Wg.snapshot],text:em("transaction-mode-description.snapshot")}],dm=[{value:Nt.ei.query,content:Nt.om[Nt.ei.query],text:em("method-description.query"),isDefault:!0},{value:Nt.ei.script,content:Nt.om[Nt.ei.script],text:em("method-description.script")},{value:Nt.ei.scan,content:Nt.om[Nt.ei.scan],text:em("method-description.scan")},{value:Nt.ei.data,content:Nt.om[Nt.ei.data],text:em("method-description.data")},{value:Nt.ei.pg,content:Nt.om[Nt.ei.pg],text:em("method-description.pg")}],um=[{value:Nt.pE.none,content:Nt.Pn[Nt.pE.none],text:em("statistics-mode-description.none"),isDefault:!0},{value:Nt.pE.basic,content:Nt.Pn[Nt.pE.basic],text:em("statistics-mode-description.basic")},{value:Nt.pE.full,content:Nt.Pn[Nt.pE.full],text:em("statistics-mode-description.full")},{value:Nt.pE.profile,content:Nt.Pn[Nt.pE.profile],text:em("statistics-mode-description.profile")}],mm=[{value:Nt.PB.off,content:Nt.PX[Nt.PB.off],text:em("tracing-level-description.off"),isDefault:!0},{value:Nt.PB.toplevel,content:Nt.PX[Nt.PB.toplevel],text:em("tracing-level-description.toplevel")},{value:Nt.PB.basic,content:Nt.PX[Nt.PB.basic],text:em("tracing-level-description.basic")},{value:Nt.PB.detailed,content:Nt.PX[Nt.PB.detailed],text:em("tracing-level-description.detailed")},{value:Nt.PB.diagnostic,content:Nt.PX[Nt.PB.diagnostic],text:em("tracing-level-description.diagnostic")},{value:Nt.PB.trace,content:Nt.PX[Nt.PB.trace],text:em("tracing-level-description.trace")}],pm={transactionMode:{title:lm("form.transaction-mode"),options:cm},queryMode:{title:lm("form.query-mode"),options:dm},statisticsMode:{title:lm("form.statistics-mode"),options:um},tracingLevel:{title:lm("form.tracing-level"),options:mm},timeout:{title:lm("form.timeout")},limitRows:{title:lm("form.limit-rows")}};function hm({currentSettings:e,defaultSettings:t}){const a=sm(e,t),n={};return a.forEach((t=>{const a=pm[t],r=e[t];if("options"in a){var s;const e=null===(s=a.options.find((e=>e.value===r)))||void 0===s?void 0:s.content;e&&(n[a.title]=e)}else r&&(n[a.title]=String(r))})),n}var vm=a(80967);const gm=()=>{const[e,t]=(0,vm.i)(Z.fr);let a;try{a=Nt.id.parse(e)}catch{a=void 0}return[a,t]};var ym=a(95312);const xm=()=>{const[e,t]=(0,vm.i)(Z.YQ),[a]=gm(),[n]=(0,ym.X)(),r=a?sm(a,Nt.jU):[],s=n?sm(n,Nt.jU):[],i=r.length>0,o=a?hm({currentSettings:a,defaultSettings:Nt.jU}):{},l=n?hm({currentSettings:n,defaultSettings:Nt.jU}):{},c=e&&Date.now()-e<1e3*Z.Du;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:s,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}};var bm=a(53472);let fm=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const Tm=e=>{localStorage.setItem(e,"true")},jm=e=>{localStorage.removeItem(e)};function Sm(e){return function(t,a){switch(a){case fm.triggerCollapse:return Tm(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case fm.triggerExpand:return jm(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case fm.clear:return jm(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const Nm=(0,c.cn)("kv-pane-visibility-button");function Em({onCollapse:e,onExpand:t,isCollapsed:a,initialDirection:r="top",className:s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(lt.m,{title:"Collapse",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e,className:Nm({hidden:a,type:"collapse"},s),children:(0,d.jsx)(ct.I,{data:bm.A,className:Nm({[r]:!0})})})}),(0,d.jsx)(lt.m,{title:"Expand",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:t,className:Nm({hidden:!a,type:"expand"},s),children:(0,d.jsx)(ct.I,{data:bm.A,className:Nm({[r]:!0},"rotate")})})})]})}var wm=a(31819),Cm=a(72976);const Pm=function({disabled:e}){const t=(0,X.YQ)();return(0,d.jsx)(vn.$,{onClick:()=>{t((0,Cm.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(ct.I,{data:wm.A})})};var Im,Dm=a(98392);function Am(){return Am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Am.apply(null,arguments)}const _m=function(e){return n.createElement("svg",Am({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Im||(Im=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var Rm;const km=(0,c.cn)("ydb-fullscreen"),Om=null!==(Rm=document.getElementById("fullscreen-root"))&&void 0!==Rm?Rm:void 0;const Mm=function({children:e,className:t}){const a=(0,X.N4)((e=>e.fullscreen)),r=(0,X.YQ)(),s=n.useCallback((()=>{r((0,Cm.sM)())}),[r]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[s]);const[i,o]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===Om||void 0===Om||Om.appendChild(e),e.style.display="contents",o(e),()=>{o(null),e.remove()}}),[]);const l=n.useRef(null);return n.useLayoutEffect((()=>{var e;i&&(a?null===Om||void 0===Om||Om.appendChild(i):null===(e=l.current)||void 0===e||e.appendChild(i))}),[i,a]),i?(0,d.jsx)("div",{ref:l,style:{display:"contents"},children:(0,d.jsx)(Dm.Z,{container:i,children:(0,d.jsxs)("div",{className:km({fullscreen:a},t),children:[(0,d.jsx)(vn.$,{onClick:s,view:"raised",className:km("close-button"),children:(0,d.jsx)(ct.I,{data:_m})}),(0,d.jsx)("div",{className:km("content"),children:e})]})})}):null},Lm=n.memo((function(e){const{className:t,value:a}=e,n=(0,X.YQ)();return(0,d.jsx)("span",{className:Um("cell",t),onClick:e=>n((0,pe.DK)(e.target,a,"cell")),children:a})})),zm=JSON.parse('{"empty":"Table is empty"}'),qm=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Fm=(0,Be.g4)("ydb-query-result-table",{ru:qm,en:zm}),$m={...Z.N3,stripedRows:!0,sortable:!1,displayIndices:!0},Um=(0,c.cn)("ydb-query-result-table"),Qm=(e,t)=>t,Bm=(e,t)=>t+1,Hm=e=>{const{columns:t,data:a,settings:r}=e,s=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((({name:e,type:t})=>{const n=(0,Nt.nh)(t);return{name:e,width:kt({data:a,name:e}),align:"number"===n?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:t})=>(0,d.jsx)(Lm,{value:String(t[e])})}}))})(t,a):(e=>{if(null===e||void 0===e||!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:kt({data:t,name:a}),align:(0,ks.kf)(e[0][a])?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:e})=>(0,d.jsx)(Lm,{value:String(e[a])})})))})(a)),[a,t]),i=n.useMemo((()=>({...$m,...r})),[r]);return Array.isArray(a)?s.length?(0,d.jsx)(qe.l,{data:a,columns:s,settings:i,rowKey:Qm,visibleRowIndex:Bm,wrapperClassName:Um("table-wrapper")}):(0,d.jsx)("div",{className:Um("message"),children:Fm("empty")}):null},Gm=H.F.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async({query:e,database:t,action:a,limitRows:n},{signal:r})=>{try{const s=await window.api.viewer.sendQuery({query:e,database:t,action:a,limit_rows:n},{signal:r,withRetries:!0});return(0,Nt.We)(s)?{error:s}:{data:(0,Nt.fW)(s)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["PreviewData"]})}),overrideExisting:"throw"}),Wm=(0,c.cn)("kv-preview"),Vm=({database:e,path:t,type:a})=>{var n,r,s;const i=(0,X.YQ)(),o=D(a),l=`select * from \`${t}\` limit 101`,{currentData:c,isFetching:u,error:m}=Gm.useSendQueryQuery({database:e,query:l,action:U(a)?"execute-query":"execute-scan",limitRows:100},{skip:!o,refetchOnMountOrArgChange:!0}),p=u&&void 0===c,h=null!==(n=null===c||void 0===c||null===(r=c.resultSets)||void 0===r?void 0:r[0])&&void 0!==n?n:{},v=()=>{i((0,Y.o)(!1))};if(p)return(0,d.jsx)("div",{className:Wm("loader-container"),children:(0,d.jsx)(Gs.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:Wm("message-container","error"),children:(0,Nt.Cb)(m)})):g=(0,d.jsx)("div",{className:Wm("message-container"),children:em("preview.not-available")});const y=null!==(s=g)&&void 0!==s?s:(0,d.jsx)("div",{className:Wm("result"),children:(0,d.jsx)(Hm,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:Wm(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:Wm("header"),children:[(0,d.jsxs)("div",{className:Wm("title"),children:[em("preview.title"),(0,d.jsxs)(it.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${em("preview.truncated")} `:"","(",null!==(e=null===(a=h.result)||void 0===a?void 0:a.length)&&void 0!==e?e:0,")"]}),(0,d.jsx)("div",{className:Wm("table-name"),children:t})]}),(0,d.jsxs)("div",{className:Wm("controls-left"),children:[(0,d.jsx)(Pm,{disabled:Boolean(m)}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:v,title:em("preview.close"),children:(0,d.jsx)(ct.I,{data:Zc.A,size:18})})]})]})})(),(0,d.jsx)(Mm,{children:y})]})},Jm=H.F.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async({queryId:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({database:t,action:"cancel-query",query_id:e},{signal:a});if((0,Nt.We)(n))return{error:n};return{data:(0,Nt.fW)(n)}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});var Km=a(13066);async function Ym(e){var t;let a=1;const n=async()=>{if(!window.ydbEditor){if(!a)return!1;await new Promise((e=>{window.setTimeout(e,100)})),a-=1,n()}return!0};await n()?null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e):console.error("Monaco editor not found")}function Zm(e){return e.replace(/\$/g,"\\$")}const Xm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_row_table\``:"${1:my_row_table}"} (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,ep=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_column_table\``:"${1:my_column_table}"} (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,tp=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',ap=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-transfer\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\n\\$l = (\\$x) -> {\n return [\n <|\n offset:\\$x._offset,\n message:\\$x._data\n |>\n ];\n};\n\nCREATE TRANSFER my_transfer\nFROM ${1:<original_topic>} TO ${2:<target_table>} USING \\$l\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',np=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,rp=e=>`-- documentation about partitioning https://ydb.tech/docs/en/concepts/datamodel/table#partitioning\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"} SET \n(\n AUTO_PARTITIONING_BY_LOAD = ENABLED, -- If a partition consumes more than 50% of the CPU for a few dozens of seconds, it is enqueued for splitting.\n AUTO_PARTITIONING_BY_SIZE = ENABLED, -- If a partition size exceeds the value specified by the AUTO_PARTITIONING_PARTITION_SIZE_MB parameter, it is enqueued for splitting.\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 10, -- Partitions are merged only if their actual number exceeds the value specified by this parameter.\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 100 -- Partitions are split only if their number doesn't exceed the value specified by this parameter.\n)`,sp=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return"`"+Zm(null!==(t=e.name)&&void 0!==t?t:"")+"`"})).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},ip=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return`\`${Zm(null!==(t=e.name)&&void 0!==t?t:"")}\``})).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},op=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:my_table}"};`,lp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${Zm(t)}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${Zm(e.relativePath)}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},cp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_topic\``:"${1:my_topic}"} (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,dp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_topic>}"}\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,up=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_topic>}"};`,mp=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}/my_view\``:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,pp=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_view>}"};`,hp=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_replication>}"};`,vp=e=>`DROP TRANSFER ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_transfer>}"};`,gp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,yp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-transfer\n\n\\$l = (\\$x) -> {\n return [\n <|\n offset:\\$x._offset,\n message:\\$x._data\n |>\n ];\n};\n\nALTER TRANSFER ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_transfer>}"} \nSET USING \\$l;`,xp=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,bp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${Zm(a)}\``:"${1:<my_table>}"} DROP INDEX ${Zm(null!==t&&void 0!==t?t:"")||"${2:<index_name>}"};`},fp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`,Tp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",jp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",Sp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Np=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<group_name>}\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",Ep=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<user_name>}\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",wp=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.`,Cp=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`,Pp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Ip=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Zm(e.relativePath)}\``:"${1:<my_table>}"};`,Dp=JSON.parse('{"button.new-sql":"New query","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.transfer":"Transfer","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create changefeed","action.create-async-replication":"Create async replication","action.create-transfer":"Create transfer","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication","action.alter-transfer":"Alter transfer","action.drop-transfer":"Drop transfer"}'),Ap=(0,Be.g4)("ydb-new-sql",{en:Dp});function _p(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(Xm),createColumnTable:t(ep),createAsyncReplication:t(tp),alterAsyncReplication:t(gp),dropAsyncReplication:t(hp),createTransfer:t(ap),alterTransfer:t(yp),dropTransfer:t(vp),alterTable:t(np),selectQuery:t(sp),upsertQuery:t(ip),createExternalTable:t(lp),dropExternalTable:t(op),createTopic:t(cp),alterTopic:t(dp),dropTopic:t(up),createView:t(mp),dropTable:t(Ip),deleteRows:t(Sp),updateTable:t(Pp),createUser:t(jp),createGroup:t(Tp),createCdcStream:t(fp),grantPrivilege:t(wp),revokePrivilege:t(Cp),dropUser:t(Ep),dropGroup:t(Np),addTableIndex:t(xp),dropTableIndex:t(bp)}})(Ko(n.useCallback((e=>{Ym(e)}),[]))),t=[{text:Ap("menu.tables"),items:[{text:Ap("action.create-row-table"),action:e.createRowTable},{text:Ap("action.create-column-table"),action:e.createColumnTable},{text:Ap("action.create-external-table"),action:e.createExternalTable},{text:Ap("action.upsert-to-table"),action:e.upsertQuery},{text:Ap("action.update-table"),action:e.updateTable},{text:Ap("action.alter-table"),action:e.alterTable},{text:Ap("action.select-rows"),action:e.selectQuery},{text:Ap("action.delete-rows"),action:e.deleteRows},{text:Ap("action.drop-table"),action:e.dropTable},{text:Ap("action.drop-external-table"),action:e.dropExternalTable},{text:Ap("action.add-index"),action:e.addTableIndex},{text:Ap("action.drop-index"),action:e.dropTableIndex}]},{text:Ap("menu.topics"),items:[{text:Ap("action.create-topic"),action:e.createTopic},{text:Ap("action.alter-topic"),action:e.alterTopic},{text:Ap("action.drop-topic"),action:e.dropTopic}]},{text:Ap("menu.replication"),items:[{text:Ap("action.create-async-replication"),action:e.createAsyncReplication},{text:Ap("action.alter-async-replication"),action:e.alterAsyncReplication},{text:Ap("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:Ap("menu.transfer"),items:[{text:Ap("action.create-transfer"),action:e.createTransfer},{text:Ap("action.alter-transfer"),action:e.alterTransfer},{text:Ap("action.drop-transfer"),action:e.dropTransfer}]},{text:Ap("menu.capture"),items:[{text:Ap("action.create-cdc-stream"),action:e.createCdcStream}]},{text:Ap("menu.users"),items:[{text:Ap("action.create-user"),action:e.createUser},{text:Ap("action.create-group"),action:e.createGroup},{text:Ap("action.drop-user"),action:e.dropUser},{text:Ap("action.drop-group"),action:e.dropGroup},{text:Ap("action.grant-privilege"),action:e.grantPrivilege},{text:Ap("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(ko.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(vn.$,{...e,children:[Ap("button.new-sql"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Km.A,{})})]}),popupProps:{placement:"top"}})}const Rp=H.F.injectEndpoints({endpoints:e=>({getCodeAssistSuggestions:e.query({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.getCodeAssistSuggestions(e)}}throw new Error("Method is not implemented.")}catch{return{data:{items:[]}}}}}),acceptSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Accepted:{AcceptedText:e.acceptedText,ConvertedText:e.acceptedText,Timestamp:Date.now(),RequestId:e.requestId}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),discardSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Discarded:{RequestId:e.requestId,Timestamp:Date.now(),DiscardReason:"OnCancel",DiscardedText:e.suggestionText,CacheHitCount:e.hitCount}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),ignoreSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Ignored:{RequestId:e.requestId,Timestamp:Date.now(),IgnoredText:e.suggestionText}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),sendUserQueriesData:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistOpenTabs(e)}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),kp={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const Op=new class{constructor(){this.query=void 0,this.query=null}registerQuery(e){this.query=e}abortQuery(){this.query&&(this.query.abort(),this.query=null)}};var Mp=a(54503),Lp=a(90851),zp=a(27738),qp=a(1155);const Fp=(0,c.cn)("ydb-query-settings-description"),$p=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:Fp("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:Fp("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]}),Up=(0,c.cn)("ydb-query-editor-button"),Qp={Run:e=>(0,d.jsxs)(vn.$,{...e,className:Up("run-button"),children:[(0,d.jsx)(ct.I,{data:Mp.A,size:16}),em("action.run")]}),Stop:e=>(0,d.jsxs)(vn.$,{...e,className:Up("stop-button",{error:e.error}),children:[(0,d.jsx)(ct.I,{data:st.A,size:16}),em("action.stop")]}),Explain:e=>(0,d.jsxs)(vn.$,{...e,className:Up("explain-button"),children:[(0,d.jsx)(ct.I,{data:Lp.A,size:16}),em("action.explain")]}),Settings:({onClick:e,isLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=xm(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(qp.m,{disabled:0===a.length,content:(0,d.jsx)($p,{prefix:em("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(vn.$,{onClick:e,loading:t,className:Up("gear-button"),...r,children:[(0,d.jsx)(ct.I,{data:zp.A,size:16}),r?(0,d.jsxs)("div",{className:Up("changed-settings"),children:["(",a.length,")"]}):null]})})}},Bp=(0,c.cn)("ydb-query-editor-controls"),Hp=({type:e,isHighlighted:t,isLoading:a,isStoppable:n,controlsDisabled:r,onActionClick:s,renderStopButton:i})=>{if(n&&a&&t)return i();const o="run"===e?Qp.Run:Qp.Explain;return(0,d.jsx)(o,{onClick:s,disabled:r,loading:a,view:t?"action":void 0})},Gp=({disabled:e,isLoading:t,highlightedAction:a,queryId:r,tenantName:s,isStreamingEnabled:i,handleSendExecuteClick:o,onSettingsButtonClick:l,handleGetExplainQueryClick:c})=>{const u=(0,X.N4)(wo.Wp),[m,p]=Jm.useCancelQueryMutation(),[h,v]=n.useState(t),g=n.useRef(null),y=n.useRef(null),[x,b]=n.useState(!1),f=n.useCallback((async()=>{if(r)try{i?Op.abortQuery():r&&await m({queryId:r,database:s}).unwrap()}catch{ht({name:"stop-error",title:"",content:em("toaster.stop-error"),type:"error",autoHiding:5e3}),b(!0),y.current&&window.clearTimeout(y.current),y.current=window.setTimeout((()=>{b(!1)}),500)}}),[i,r,m,s]),T="execute"===a,j="explain"===a,S=n.useCallback((()=>{g.current&&window.clearTimeout(g.current),v(!1),g.current=window.setTimeout((()=>{v(!0)}),400)}),[]),N=n.useCallback((()=>{o(u),S()}),[o,u,S]),E=n.useCallback((()=>{c(u),S()}),[c,u,S]);n.useEffect((()=>()=>{g.current&&window.clearTimeout(g.current),y.current&&window.clearTimeout(y.current)}),[]);const w=e||!u,C=()=>(0,d.jsx)(Qp.Stop,{loading:p.isLoading,error:x,onClick:f,view:"action"});return(0,d.jsxs)("div",{className:Bp(),children:[(0,d.jsxs)("div",{className:Bp("left"),children:[(0,d.jsx)(Hp,{type:"run",isHighlighted:T,isLoading:t,isStoppable:h,controlsDisabled:w,onActionClick:N,renderStopButton:C}),(0,d.jsx)(Hp,{type:"explain",isHighlighted:j,isLoading:t,isStoppable:h,controlsDisabled:w,onActionClick:E,renderStopButton:C}),(0,d.jsx)(Qp.Settings,{onClick:l,isLoading:t})]}),(0,d.jsxs)("div",{className:Bp("right"),children:[(0,d.jsx)(_p,{}),(0,d.jsx)(Uo,{buttonProps:{disabled:e}})]})]})};var Wp=a(64280),Vp=a(5744),Jp=a(80953);function Kp(e){var t;if(function(e){return"object"===typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}(e))return!0;if(function(e){return"object"===typeof e&&null!==e&&"isCancelled"in e}(e)&&e.isCancelled)return!0;const a=(0,Nt.KH)(e);return(0,Nt.We)(a)&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}const Yp=(0,c.cn)("kv-query-execution-status"),Zp=({className:e,error:t,loading:a})=>{let r,s,i,o;const{startTime:l,endTime:c}=(0,X.N4)(wo.$u),[u,m]=n.useState(l?(c||Date.now())-l:0),p=Kp(t),h=n.useCallback((()=>{if(l){const e=c||Date.now();m(e-l)}}),[c,l]);n.useEffect((()=>{let e;return h(),a?e=setInterval(h,Z.KF):clearInterval(e),()=>{clearInterval(e)}}),[a,h]);const v=n.useMemo((()=>u>Z.Jg*Z.KF?(0,nt.p0)(u).format("hh:mm:ss"):(0,nt.p0)(u).format("mm:ss")),[u]);if(a)i="info",o="info-heavy",r=(0,d.jsx)(Jp.t,{size:"xs"}),s="Running";else if((0,ee.F0)(t)&&"ECONNABORTED"===t.code)i="danger",o="danger-heavy",r=(0,d.jsx)(ct.I,{data:Wp.A}),s="Connection aborted";else if(p)i="warning",o="warning-heavy",r=(0,d.jsx)(ct.I,{data:st.A,className:Yp("result-status-icon",{error:!0})}),s="Stopped";else{const e=Boolean(t);i=e?"danger":"success",o=e?"danger-heavy":"positive-heavy",r=(0,d.jsx)(ct.I,{data:e?Yi.A:Vp.A,className:Yp("result-status-icon",{error:e})}),s=e?"Failed":"Completed"}return(0,d.jsx)(Ct.J,{theme:i,size:"m",className:Yp(null,e),icon:r,value:v,children:(0,d.jsx)(it.E,{color:o,children:s})})};var Xp=a(6156);const eh=(0,c.cn)("ydb-query-settings-banner");function th(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=xm();return e?(0,d.jsx)(Xp.F,{className:eh(),theme:"info",align:"baseline",style:{paddingTop:11,paddingBottom:11},message:(0,d.jsx)($p,{prefix:em("banner.query-settings.message"),querySettings:t}),onClose:a}):null}const ah=(0,c.cn)("ydb-query-stopped-banner");function nh(){const[e,t]=(0,X.iK)(Z.J0),a=n.useCallback((()=>{t(!0)}),[t]);return e?null:(0,d.jsx)(Xp.F,{className:ah(),theme:"normal",align:"center",style:{paddingTop:11,paddingBottom:11},message:(0,d.jsx)("div",{className:ah("message"),children:em("banner.query-stopped.message")}),layout:"horizontal",actions:(0,d.jsx)(Xp.F.Actions,{children:(0,d.jsx)(Xp.F.Action,{view:"normal",onClick:a,children:em("banner.query-stopped.never-show")})})})}function rh(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var sh=a(6376);const ih=(0,c.cn)("ydb-query-ast"),oh={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function lh({ast:e,theme:t}){return(0,d.jsx)("div",{className:ih(),children:(0,d.jsx)(sh.default,{language:"s-expression",value:e,options:oh,theme:`vs-${t}`})})}var ch=a(73253);function dh(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:s,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,ch.og)(e.id,r,s,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,s,i]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const uh={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},mh={node:ch.SO};function ph(e){return(0,d.jsx)(dh,{...e,opts:uh,shapes:mh})}const hh=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","description.empty-result":"There is no {{activeSection}} for the request","action.result":"Result","action.stats":"Stats","action.schema":"Computation Graph","action.explain-plan":"Explain","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result","tooltip_actions":"Actions","text_open-execution-plan":"Open Execution Plan","text_open-execution-plan_description":"New tab","text_download":"Download Execution Plan","text_download_description":"SVG","text_diagnostics":"Download Diagnostics","text_diagnostics_description":"JSON","text_error-plan-svg":"Error: {{error}}","error.title":"Query Failed","error.description":"An error occurred, please see the Result tab for details","stopped.title":"Query stopped","stopped.description":"Query was stopped"}'),vh=(0,Be.g4)("ydb-execute-result",{en:hh}),gh=(0,c.cn)("ydb-query-result-stub-message");function yh({message:e}){return(0,d.jsx)("div",{className:gh(null),children:e})}const xh=(0,c.cn)("ydb-query-explain-graph");function bh({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:xh("canvas-container"),children:(0,d.jsx)(ph,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(yh,{message:vh("description.graph-is-not-supported")})}var fh=a(7450);const Th=(0,c.cn)("query-info-dropdown");var jh=a(112),Sh=a(92159);const Nh=H.F.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async({plan:e,database:t},{signal:a})=>{try{return{data:await window.api.viewer.planToSvg({database:t,plan:e},{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function Eh(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}const wh=JSON.parse('{"unknown-error":"An unknown error occurred"}'),Ch=(0,Be.g4)("ydb-errors",{en:wh});function Ph({title:e,description:t}){return(0,d.jsxs)("div",{className:Th("menu-item-content"),children:[(0,d.jsx)(it.E,{variant:"body-1",children:e}),(0,d.jsx)(it.E,{variant:"body-1",color:"secondary",children:t})]})}function Ih({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:r}){const[s,i]=n.useState(null),[o,{isLoading:l}]=Nh.useLazyPlanToSvgQueryQuery();n.useEffect((()=>()=>{s&&URL.revokeObjectURL(s)}),[s]);return{isLoading:l,items:n.useMemo((()=>{const n=[],l=e.plan;if(l&&a){const e=()=>s?Promise.resolve(s):o({plan:l,database:t}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);return i(a),a})).catch((e=>{const t=function(e){if("string"===typeof e)return e;if(!e)return Ch("unknown-error");if((0,ee.TX)(e))return e.message;if("object"===typeof e&&"data"in e){var t;const a=e;if(null!==(t=a.data)&&void 0!==t&&t.message)return a.data.message;if("string"===typeof a.data)return a.data}return e instanceof Error?e.message:JSON.stringify(e)}(e);return ht({title:vh("text_error-plan-svg",{error:t}),name:"plan-svg-error",type:"error"}),null})),a=()=>{e().then((e=>{e&&window.open(e,"_blank")}))},r=()=>{e().then((e=>{e&&Eh(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(Ph,{title:vh("text_open-execution-plan"),description:vh("text_open-execution-plan_description")}),icon:(0,d.jsx)(jh.A,{className:Th("icon")}),action:a,className:Th("menu-item")},{text:(0,d.jsx)(Ph,{title:vh("text_download"),description:vh("text_download_description")}),icon:(0,d.jsx)(Sh.A,{className:Th("icon")}),action:r,className:Th("menu-item")}])}if(e){const a=()=>{const a=r?(0,Nt.KH)(r):void 0;((e,t)=>{const a=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(a);Eh(n,`${t}.json`),URL.revokeObjectURL(n)})({...e,database:t,...a&&{error:a}},`query-diagnostics-${(new Date).getTime()}`)};n.push([{text:(0,d.jsx)(Ph,{title:vh("text_diagnostics"),description:vh("text_diagnostics_description")}),icon:(0,d.jsx)(Sh.A,{className:Th("icon")}),action:a,className:Th("menu-item")}])}return n}),[e,a,s,o,t,r])}}function Dh({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:r,items:s}=Ih({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return s.length?(0,d.jsx)(ko.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:Th("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(lt.m,{title:vh("tooltip_actions"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",loading:r,disabled:r,...e,children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(fh.A,{})})})}),items:s,size:"xl"}):null}const Ah=(0,c.cn)("ydb-query-json-viewer");function _h({data:e}){const t=Pn(e);return(0,d.jsx)("div",{className:Ah(),children:(0,d.jsx)("div",{className:Ah("tree"),children:(0,d.jsx)(mr,{value:t})})})}var Rh=a(89954);const kh=(0,c.cn)("ydb-query-result-error");function Oh({error:e}){const t=(0,Nt.KH)(e);return!t||Kp(e)?null:(0,ee.TX)(e)?(0,d.jsx)("div",{className:kh("message"),children:e.message}):"object"===typeof t?(0,d.jsx)("div",{className:kh("message"),children:(0,d.jsx)(Rh.O,{data:t})}):(0,d.jsx)("div",{className:kh("message"),children:t})}const Mh=(0,c.cn)("ydb-query-result-sets-viewer");function Lh(e){const{selectedResultSet:t,setSelectedResultSet:a,resultSets:n,error:r}=e,s=null===n||void 0===n?void 0:n[t];return(0,d.jsxs)("div",{className:Mh("result-wrapper"),children:[e.error?(0,d.jsx)(Oh,{error:r}):null,null!==n&&void 0!==n&&n.length?(null===n||void 0===n?void 0:n.length)>1?(()=>{const e=(null===n||void 0===n?void 0:n.map(((e,t)=>{var a,r;const s=null===n||void 0===n?void 0:n[t];return{id:String(t),title:(0,d.jsxs)(ot.s,{gap:2,alignItems:"center",children:[(0,d.jsx)(it.E,{children:`Result #${t+1}${null!==n&&void 0!==n&&null!==(a=n[t])&&void 0!==a&&a.truncated?"(T)":""}`}),(0,d.jsx)(it.E,{color:"secondary",children:(null===(r=s.result)||void 0===r?void 0:r.length)||0})]})}})))||[];return(0,d.jsx)(ne.t,{className:Mh("tabs"),size:"l",items:e,activeTab:String(t),onSelectTab:e=>a(Number(e))})})():(()=>{var e;const t=null===n||void 0===n?void 0:n[0];return(0,d.jsxs)(ot.s,{gap:2,alignItems:"center",className:Mh("title"),children:[(0,d.jsx)(it.E,{children:null!==t&&void 0!==t&&t.truncated?"Truncated":"Result"}),(0,d.jsx)(it.E,{color:"secondary",children:(null===t||void 0===t||null===(e=t.result)||void 0===e?void 0:e.length)||0})]})})():null,s?(0,d.jsx)("div",{className:Mh("result"),children:(0,d.jsx)(Hm,{settings:e.tableSettings,data:s.result,columns:s.columns})}):null]})}var zh=a(36590),qh=a(79737),Fh=a(79685);const $h=(0,c.cn)("ydb-query-simplified-plan");function Uh({value:e,formatter:t}){if(!(0,ks.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:$h("metrics-cell"),children:a})}var Qh=a(33705);const Bh={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Hh(e){return e in Bh?Bh[e]:"var(--g-color-text-secondary)"}function Gh(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Hh(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,he.vN)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...s}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(s))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],s=Hh(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,he.vN)(r)]},e))}}return t}function Wh({params:e}){return e?(0,d.jsxs)("span",{className:$h("operation-params"),children:["(",Gh(e),")"]}):null}function Vh({modifiers:e,left:t}){return(0,d.jsx)("div",{className:$h("divider",e),style:{left:t}})}function Jh({row:e,depth:t=0,params:a}){const{name:r,operationParams:s,lines:i=""}=a,o=e.getLeafRows().length>0&&e.getIsExpanded(),l=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let r=0;r<a.length;r++)r===a.length-1&&0!==r&&(a[r]?n.push((0,d.jsx)(Vh,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(Vh,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Vh,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(Vh,{left:9+25*(r-1)},r));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:$h("operation-name"),children:[l,(0,d.jsxs)(ot.s,{gap:1,alignItems:"center",className:$h("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(vn.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Qh.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:$h("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:$h("operation-name"),children:r}),"\xa0",(0,d.jsx)(Wh,{params:s})]})})]})]})}function Kh(e){return(0,d.jsx)(Uh,{value:e.getValue(),formatter:e=>e<1e8?(0,Fh.p)(e).format():(0,ks.z0)(e,1)})}const Yh=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(qh.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)(Jh,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(qh.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Uh,{value:e.getValue(),formatter:e=>(0,vt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(qh.A,{children:"A-Rows"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(qh.A,{children:"E-Cost"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(qh.A,{children:"E-Rows"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(qh.A,{children:"E-Size"}),size:90,minSize:90,cell:Kh,meta:{align:"right",verticalAlign:"top"}}];function Zh({plan:e}){const t=n.useMemo((()=>function(e,t=""){if(!e)return[];const a=[{items:e,prefix:t,parentIndex:-1,parentArray:[]}],n=[];for(;a.length>0;){const{items:e,prefix:t,parentIndex:r,parentArray:s}=a.pop(),i=[];for(let n=0;n<e.length;n++){const r={...e[n]},s=n<e.length-1?1:0;let o=`${t}.${s}`;t||(o=String(s)),r.lines=o,i.push(r),r.children&&a.push({items:r.children,prefix:o,parentIndex:n,parentArray:i})}-1===r?n.push(...i):s[r].children=i}return n}(e)),[e]),[a,r]=n.useState(!0),s=(0,zh.K)({columns:Yh,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(qh.X,{wrapperClassName:$h(),table:s,stickyHeader:!0,width:"max"})}function Xh({traceId:e}){const{traceView:t}=(0,ji.Zd)(),a=null!==t&&void 0!==t&&t.url?(n=t.url,r={traceId:e},n.replace(/\${(\w+)}/g,((e,t)=>r[t]||e))):"";var n,r;return a?(0,d.jsxs)(vn.$,{view:"flat-info",href:a,target:"_blank",children:[vh("trace"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(jh.A,{})})]}):null}const ev=(0,c.cn)("ydb-query-result"),tv="result",av="schema",nv="simplified",rv="json",sv="stats",iv="ast",ov={get result(){return vh("action.result")},get schema(){return vh("action.schema")},get simplified(){return vh("action.explain-plan")},get json(){return vh("action.json")},get stats(){return vh("action.stats")},get ast(){return vh("action.ast")}},lv=["result","schema","simplified","stats"],cv=["schema","json","simplified","ast"];function dv({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:s,queryText:i,tableSettings:l,onCollapseResults:c,onExpandResults:u}){var m;const p=(0,X.YQ)(),h="execute"===t,v="explain"===t,[g,y]=n.useState(0),[x,b]=n.useState((()=>h?tv:av)),[f]=(0,X.iK)(Z.lr),{error:T,isLoading:j,data:S={}}=e,{preparedPlan:N,simplifiedPlan:E,stats:w,resultSets:C,ast:P}=S;n.useEffect((()=>{"execute"!==t||lv.includes(x)||b("result"),"explain"!==t||cv.includes(x)||b("schema")}),[x,t]);const I=n.useMemo((()=>{let e=[];return h?e=lv:v&&(e=cv),e.map((e=>({value:e,content:ov[e]})))}),[h,v]);n.useEffect((()=>()=>{p((0,Cm.sM)())}),[p]);const D=e=>{b(e)},A=()=>{switch(x){case tv:{var e;const t=null===S||void 0===S||null===(e=S.resultSets)||void 0===e?void 0:e[g],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(rh).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(rh("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===t||void 0===t?void 0:t.result);return a}case rv:return null===N||void 0===N?void 0:N.pristine;case nv:return null===E||void 0===E?void 0:E.pristine;case sv:return w;case iv:return P;default:return}},_=()=>{if(j)return null;const e=A(),t=(0,he.vN)(e);return t?(0,d.jsx)(pn.b,{text:t,view:"flat-secondary",title:vh("action.copy",{activeSection:x})}):null},R=()=>(0,d.jsx)(yh,{message:vh("description.empty-result",{activeSection:ov[x]})}),k=e=>(0,d.jsxs)(ot.s,{justifyContent:"center",alignItems:"center",width:"100%",gap:8,children:[(0,d.jsx)(dd.v,{name:"error",className:ev("illustration")}),(0,d.jsxs)(ot.s,{direction:"column",gap:2,children:[(0,d.jsx)(it.E,{variant:"subheader-2",children:vh(e?"stopped.title":"error.title")}),(0,d.jsx)(it.E,{color:"complementary",children:vh(e?"stopped.description":"error.description")})]})]}),O=Kp(T);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:ev("controls"),children:[(0,d.jsxs)("div",{className:ev("controls-left"),children:[I.length&&x?(0,d.jsx)(fu.a,{options:I,value:x,onUpdate:D}):null,(0,d.jsx)(Zp,{error:T,loading:j}),null!==S&&void 0!==S&&S.traceId&&h?(0,d.jsx)(Xh,{traceId:S.traceId}):null]}),(0,d.jsxs)("div",{className:ev("controls-right"),children:[j||Kp(T)?null:(0,d.jsx)(Dh,{queryResultsInfo:{queryText:i,ast:S.ast,stats:S.stats,plan:S.plan},error:T,database:s,hasPlanToSvg:Boolean((null===S||void 0===S?void 0:S.plan)&&f&&h)}),_(),(0,d.jsx)(Pm,{}),(0,d.jsx)(Em,{onCollapse:c,onExpand:u,isCollapsed:a,initialDirection:"bottom"})]})]}),j||O?null:(0,d.jsx)(th,{}),O&&null!==(m=S.resultSets)&&void 0!==m&&m.length?(0,d.jsx)(nh,{}):null,(0,d.jsx)(o.r,{loading:j&&(!S.resultSets||"result"!==x),children:(0,d.jsx)(Mm,{className:ev("result"),children:(()=>{const e=Kp(T);return x===tv?!T||!e||null!==C&&void 0!==C&&C.length?(0,d.jsx)(Lh,{resultSets:C,error:T,selectedResultSet:g,tableSettings:l,setSelectedResultSet:y}):k(e):T?h||e?k(e):(0,d.jsx)(Oh,{error:T}):x===av?null!==N&&void 0!==N&&null!==(t=N.nodes)&&void 0!==t&&t.length?(0,d.jsx)(bh,{theme:r,explain:N}):R():x===rv?null!==N&&void 0!==N&&N.pristine?(0,d.jsx)(_h,{data:null===N||void 0===N?void 0:N.pristine}):R():x===nv?null!==E&&void 0!==E&&null!==(a=E.plan)&&void 0!==a&&a.length?(0,d.jsx)(Zh,{plan:E.plan}):R():x===sv?w?(0,d.jsx)(_h,{data:w}):R():x===iv?P?(0,d.jsx)(lh,{ast:P,theme:r}):R():null;var t,a})()})})]})}var uv=a(16122),mv=a(23971);const pv=()=>-1,hv=(0,c.cn)("ydb-query-settings-select");function vv(e){return(0,d.jsx)("div",{className:hv("selector"),children:(0,d.jsx)(le.l,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:pv,popupClassName:hv("popup"),renderOption:e=>(0,d.jsxs)("div",{className:hv("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:hv("item-title"),children:[e.content,e.isDefault?lm("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:hv("item-description"),children:e.text})]}),width:"max"})})}const gv=(0,c.cn)("ydb-query-settings-dialog");function yv(){const e=(0,X.YQ)(),t=(0,X.N4)(Oo.xM),[a,r]=(0,X.XS)(),s=n.useCallback((()=>{e((0,Oo.NJ)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(Hn.l,{open:"settings"===t,size:"s",onClose:s,className:gv(),hasCloseButton:!1,children:[(0,d.jsx)(Hn.l.Header,{caption:lm("action.settings")}),(0,d.jsx)(xv,{initialValues:a,onSubmit:i,onClose:s})]})}function xv({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:s,formState:{errors:i}}=(0,mv.mN)({defaultValues:e,resolver:(0,uv.u)(Nt.id)}),[o]=(0,X.iK)(Z.lr),l=(0,ie.Oi)();return(0,d.jsxs)("form",{onSubmit:s(t),children:[(0,d.jsxs)(Hn.l.Body,{className:gv("dialog-body"),children:[(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:gv("field-title"),children:pm.queryMode.title}),(0,d.jsx)("div",{className:gv("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(mv.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.queryMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:gv("field-title"),children:pm.timeout.title}),(0,d.jsx)("div",{className:gv("control-wrapper"),children:(0,d.jsx)(mv.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Fn.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:gv("timeout"),placeholder:"60",validationState:i.timeout?"invalid":void 0,errorMessage:null===(a=i.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,d.jsx)("span",{className:gv("timeout-suffix"),children:lm("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:gv("field-title"),children:pm.tracingLevel.title}),(0,d.jsx)("div",{className:gv("control-wrapper"),children:(0,d.jsx)(mv.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.tracingLevel.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:gv("field-title"),children:pm.transactionMode.title}),(0,d.jsx)("div",{className:gv("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(mv.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.transactionMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:gv("field-title"),children:pm.statisticsMode.title}),(0,d.jsx)(qp.m,{className:gv("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:lm("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:gv("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(mv.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(vv,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:pm.statisticsMode.options})})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:gv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:gv("field-title"),children:pm.limitRows.title}),(0,d.jsx)("div",{className:gv("control-wrapper"),children:(0,d.jsx)(mv.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(Fn.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:gv("limit-rows"),placeholder:"10000",validationState:i.limitRows?"invalid":void 0,errorMessage:null===(a=i.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:lm("button-done"),textButtonCancel:lm("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:gv("buttons-container"),children:[(0,d.jsx)(Ol.N,{href:"https://ydb.tech/docs",target:"_blank",className:gv("documentation-link"),children:lm("docs")}),(0,d.jsxs)("div",{className:gv("main-buttons"),children:[t,e]})]})})]})}var bv=a(52400);const fv=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var Tv=a(41614),jv=a(67913);const Sv=JSON.parse('{"context_syntax-error":"Syntax error"}'),Nv=(0,Be.g4)("ydb-monaco",{en:Sv}),Ev=(0,nm.debounce)((function(){var e;const t=null===(e=window.ydbEditor)||void 0===e?void 0:e.getModel();if(!t)return void console.error("unable to retrieve model when highlighting errors");const a=(0,Tv.kh)(t.getValue()).errors;if(!a.length)return void Cv();const n=a.map((e=>({message:Nv("context_syntax-error"),source:e.message,severity:jv.MarkerSeverity.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));jv.editor.setModelMarkers(t,"ydb",n)}),500);function wv(){const e=(t=Ev,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{Cv(),e()}),[e])}function Cv(){jv.editor.removeAllMarkers("ydb")}const Pv="navigation";function Iv({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:r}){const s=(0,X.N4)(wo.Wp),i=(0,X.YQ)(),[o,l]=n.useState(),c=(0,X.N4)(wo.py),[u]=(0,X.iK)(Z.bz),m=function(){const[e]=(0,X.iK)(Z.LK),[t]=(0,X.iK)(Z.IO);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...kp}}),[e,t])}(),p=wv(),[h]=(0,X.iK)(Z.zk),v=(0,X.A5)((()=>c&&0!==c.length?c[c.length-1].queryText:"")),g=(0,X.A5)((()=>{h===Nt.x5.explain?r(s):a(s)})),{monacoGhostConfig:y,prepareUserQueriesCache:x}=function(){const[e]=Rp.useLazyGetCodeAssistSuggestionsQuery(),[t]=Rp.useAcceptSuggestionMutation(),[a]=Rp.useDiscardSuggestionMutation(),[r]=Rp.useIgnoreSuggestionMutation(),[s]=Rp.useSendUserQueriesDataMutation(),i=(0,X.N4)(wo.py),o=Mo(),l=n.useCallback((async t=>e(t).unwrap()),[e]),c=n.useCallback((async e=>t(e).unwrap()),[t]),d=n.useCallback((async e=>a(e).unwrap()),[a]),u=n.useCallback((async e=>r(e).unwrap()),[r]),m=n.useMemo((()=>[...i.map(((e,t)=>({name:`query${t}.yql`,text:e.queryText}))),...o.map((e=>({name:e.name,text:e.body})))]),[i,o]);return{prepareUserQueriesCache:n.useCallback((async()=>{const e=m.map(((e,t)=>({FileName:e.name||`query${t}.yql`,Text:e.text})));try{return await s(e).unwrap()}catch{return{items:[]}}}),[s,m]),monacoGhostConfig:n.useMemo((()=>({api:{getCodeAssistSuggestions:l},eventHandlers:{onCompletionAccept:c,onCompletionDecline:d,onCompletionIgnore:u},config:{language:"yql"}})),[l,c,d,u])}}();n.useEffect((()=>(o&&u&&(o.register(y),x()),()=>{null===o||void 0===o||o.unregister()})),[u,y,o,x]);return(0,d.jsx)(fv,{language:"yql",value:s,options:m,onChange:t=>{p(),e({input:t})},editorDidMount:(e,t)=>{window.ydbEditor=e;const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),window.api.codeAssist&&l((0,bv._z)(e)),function(e){const t=ge()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){Dv(e.getValue(),t()),e.onDidChangeModelContent((()=>{Dv(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,v),e.focus(),e.addAction({id:"sendQuery",label:em("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Pv,contextMenuOrder:1,run:()=>g()});const r=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((({selection:e,secondarySelections:t})=>{const a=e.selectionStartLineNumber!==e.positionLineNumber||e.selectionStartColumn!==e.positionColumn,n=t.length>0;r.set(a&&!n)})),e.addAction({id:"sendSelectedQuery",label:em("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Pv,contextMenuOrder:1,run:e=>{const t=e.getSelection(),n=e.getModel();if(t&&n){const e=n.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});a(e,!0)}}}),e.addAction({id:"previous-query",label:em("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Pv,contextMenuOrder:2,run:()=>{i((0,wo.JK)())}}),e.addAction({id:"next-query",label:em("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Pv,contextMenuOrder:3,run:()=>{i((0,wo.tS)())}}),e.addAction({id:"save-query",label:em("action.save-query"),keybindings:[n.saveQuery],run:()=>{Co.Ay.show(Bo)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function Dv(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Av=(0,c.cn)("query-editor"),_v={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Rv(e){const t=(0,X.YQ)(),{tenantName:a,path:r,type:s,theme:i,changeUserInput:o}=e,l=(0,X.N4)(wo.yJ),c=(0,X.N4)(wo.wf),u=(0,X.N4)(wo.py),m=(0,X.N4)(wo.Kz),p=(0,X.N4)(Y.Ab),v=Boolean(c),[g]=(0,X.XS)(),y=(0,ie.Oi)(),[x,b]=gm(),{resetBanner:f}=xm(),[T,j]=(0,X.iK)(Z.zk),[S,N]=n.useState(""),[E]=(0,X.iK)(Z.kO),w=(0,ie.j2)()&&E,[C]=wo.JO.useUseSendQueryMutation(),[P]=wo.JO.useUseStreamQueryMutation(),I=n.useMemo((()=>w?{displayIndices:{maxIndex:(g.limitRows||Nt.jU.limitRows)+1}}:void 0),[w,g.limitRows]);n.useEffect((()=>{l!==a&&t((0,wo.Id)(a))}),[t,a,l]);const[D,A]=n.useReducer(Sm(Z.GV),_v);n.useEffect((()=>{A(fm.triggerCollapse)}),[]),n.useEffect((()=>{A(p||v?fm.triggerExpand:fm.triggerCollapse)}),[p,v]);const _=(0,X.A5)(((e,n)=>{j(Nt.x5.execute),N(e),(0,nm.isEqual)(x,g)||(f(),b(g));const r=(0,rm.A)();if(w){const t=P({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y});Op.registerQuery(t)}else{const t=C({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r});Op.registerQuery(t)}var s;(t((0,Y.o)(!1)),n)||e!==(null===(s=u[m])||void 0===s?void 0:s.queryText)&&t((0,wo.nO)({queryText:e,queryId:r}));A(fm.triggerExpand)})),R=()=>{t((0,Oo.NJ)("settings"))},k=(0,X.A5)((e=>{j(Nt.x5.explain),N(e),(0,nm.isEqual)(x,g)||(f(),b(g));const n=(0,rm.A)(),r=C({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n});Op.registerQuery(r),t((0,Y.o)(!1)),A(fm.triggerExpand)}));return(0,d.jsxs)("div",{className:Av(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.l_,triggerCollapse:D.triggerCollapse,triggerExpand:D.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{A(fm.clear)},children:[(0,d.jsxs)("div",{className:Av("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Av("monaco-wrapper"),children:(0,d.jsx)("div",{className:Av("monaco"),children:(0,d.jsx)(Iv,{changeUserInput:o,theme:i,handleSendExecuteClick:_,handleGetExplainQueryClick:k})})}),(0,d.jsx)(Gp,{handleSendExecuteClick:_,onSettingsButtonClick:R,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:k,highlightedAction:T,tenantName:a,queryId:null===c||void 0===c?void 0:c.queryId,isStreamingEnabled:w})]}),(0,d.jsx)("div",{className:Av("pane-wrapper"),children:(0,d.jsx)(kv,{resultVisibilityState:D,onExpandResultHandler:()=>{A(fm.triggerExpand)},onCollapseResultHandler:()=>{A(fm.triggerCollapse)},type:s,theme:i,result:c,tenantName:a,path:r,showPreview:p,queryText:S,tableSettings:I},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(yv,{})]})}function kv({resultVisibilityState:e,onExpandResultHandler:t,onCollapseResultHandler:a,type:n,theme:r,result:s,tenantName:i,path:o,showPreview:l,queryText:c,tableSettings:u}){return l?(0,d.jsx)(Vm,{database:i,path:o,type:n}):s?(0,d.jsx)(dv,{result:s,resultType:null===s||void 0===s?void 0:s.type,theme:r,tenantName:i,isResultsCollapsed:e.collapsed,tableSettings:u,onExpandResults:t,onCollapseResults:a,queryText:c}):null}const Ov=[{id:ae.tQ.newQuery,title:em("tabs.newQuery")},{id:ae.tQ.history,title:em("tabs.history")},{id:ae.tQ.saved,title:em("tabs.saved")}],Mv=({className:e,activeTab:t})=>{const a=(0,Qr.zy)(),n=(0,ye.mA)(a);return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ne.t,{size:"l",allowNotSelected:!0,activeTab:t,items:Ov,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...n,[ra.vh.queryTab]:e});return(0,d.jsx)(To.E,{to:a,children:t},e)}})})};var Lv=a(65872),zv=a(64470);const qv=(0,c.cn)("ydb-saved-queries"),Fv=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Hn.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Hn.l.Header,{caption:em("delete-dialog.header")}),(0,d.jsxs)(Hn.l.Body,{className:qv("dialog-body"),children:[em("delete-dialog.question"),(0,d.jsx)("span",{className:qv("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:em("delete-dialog.delete"),textButtonCancel:em("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),$v=({changeUserInput:e})=>{const t=Mo(),a=(0,X.YQ)(),r=(0,X.N4)(Oo.cu),[s,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=Ko(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Oo.JP)(n)),a((0,oe.sH)(ae.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:qv("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:qv("query"),children:[(0,d.jsx)("div",{className:qv("query-body"),children:(0,d.jsx)(Zo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:qv("controls"),children:[(0,d.jsx)(vn.$,{view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:Lv.A})}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),i(!0),l(t)}),children:(0,d.jsx)(ct.I,{data:zv.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Fe.L,{className:qv(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{onChange:e=>{a((0,Oo.ys)(e))},placeholder:em("filter.text.placeholder"),className:qv("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(qe.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:tl,emptyDataMessage:em(r?"history.empty-search":"saved.empty"),rowClassName:()=>qv("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Rt.Ay.ASCENDING}})})]}),(0,d.jsx)(Fv,{visible:s,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Oo.fu)(o)),l("")}})]})},Uv=(0,c.cn)("ydb-query"),Qv=e=>{const t=(0,X.YQ)(),{queryTab:a=ae.tQ.newQuery}=(0,X.N4)((e=>e.tenant)),s=e=>{t((0,wo.iZ)(e))},i=n.useMemo((()=>Ov.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:Uv(),children:[i?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(Mv,{className:Uv("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Uv("content"),children:(()=>{switch(a){case ae.tQ.newQuery:return(0,d.jsx)(Rv,{changeUserInput:s,...e});case ae.tQ.history:return(0,d.jsx)(am,{changeUserInput:s});case ae.tQ.saved:return(0,d.jsx)($v,{changeUserInput:s});default:return null}})()})]})};var Bv=a(46649),Hv=a(93844);const Gv=["query","diagnostics"],Wv={query:Bv.A,diagnostics:Hv.A};const Vv=(0,c.cn)("ydb-tenant-navigation"),Jv=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Vv("item"),children:[(0,d.jsx)(ct.I,{data:a,size:16,className:Vv("icon")}),(0,d.jsx)("span",{className:Vv("text"),children:t})]})}),Kv=()=>{const e=function(){const e=(0,Qr.W6)(),t=(0,Qr.zy)(),a=(0,ye.mA)(t),[,r]=(0,X.iK)(Z.Mt),{tenantPage:s}=(0,X.N4)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==ye.Ay.tenant)return[];const n=Gv.map((t=>{const n=ae.Dg[t],i=(0,ra.YL)({...a,[ae.Dt]:n});return{id:n,title:Cs(`pages.${t}`),icon:Wv[t],path:i,current:s===n,onForward:()=>{r(n),e.push(i)}}}));return n}),[s,r,t.pathname,e,a]);return i}();return(0,d.jsx)("div",{className:Vv(),children:(0,d.jsx)(fu.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Vv("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Jv)})})},Yv=(0,c.cn)("object-general");const Zv=function(e){const t=(0,te.i)(),{tenantPage:a}=(0,X.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:Yv(),children:[(0,d.jsx)(Kv,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===ae.Dg.query?(0,d.jsx)(Qv,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(Zu,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var Xv=a(40336),eg=a(1956);const tg=H.F.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.getSchemaAcl({path:e,database:t},{signal:a});return{data:{acl:n.Common.ACL,effectiveAcl:n.Common.EffectiveACL,owner:n.Common.Owner,interruptInheritance:n.Common.InterruptInheritance}}}catch(n){return{error:n}}},providesTags:["SchemaTree"]})}),overrideExisting:"throw"}),ag=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),ng=(0,Be.g4)("ydb-acl",{en:ag}),rg=(0,c.cn)("ydb-acl"),sg=["access","type","inheritance"],ig={access:"Access",type:"Access type",inheritance:"Inheritance type"},og=new Set(["Object","Container"]);function lg({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:rg("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function cg(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:s}=e,i=t.concat(a),o="Allow"===n?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==og.size||r.some((e=>!og.has(e))))&&(l=r),{access:i.length?i:void 0,type:o,inheritance:l,Subject:s}}))}(e);return t.map((({Subject:e,...t})=>{const a=Object.entries(t).filter((([e,t])=>Boolean(t)));return 1===a.length&&"access"===a[0][0]?{name:e,content:(0,d.jsx)(lg,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:rg("group-label"),children:e}),items:sg.map((e=>{const a=t[e];if(a)return{name:ig[e],content:(0,d.jsx)(lg,{value:a}),multilineName:!0}})).filter(Rs.f8)}}))}const dg=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:s}=tg.useGetSchemaAclQuery({path:e,database:t}),i=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=cg(o),p=cg(l),h=function(e){const t=(a=e,a&&a.endsWith("@staff")&&!a.startsWith("svc_")?a.split("@")[0]:a);var a;return t?[{name:t,content:ng("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:ng("title_interupt-inheritance"),content:(0,d.jsx)(ct.I,{data:eg.A,size:20}),multilineName:!0}]:[];if(i)return(0,d.jsx)(ue.a,{});if(s)return(0,d.jsx)(de.o,{error:s});if(!o&&!c&&!l)return(0,d.jsx)(n.Fragment,{children:ng("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:rg(),children:[(0,d.jsx)(ug,{items:v}),(0,d.jsx)(ug,{items:g,title:ng("title_rights")}),(0,d.jsx)(ug,{items:p,title:ng("title_effective-rights")})]})};function ug({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:rg("list-title"),children:t}),(0,d.jsx)(Kr.u,{items:e,nameMaxWidth:200,className:rg("result",{"no-title":!t}),responsive:!0})]}):null}var mg=a(87285);const pg=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(H.F.util.invalidateTags(["PreviewData"])),t((0,Y.o)(!0)),t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e)}}},hg=(e,t)=>(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e.openPreview,title:Cs("actions.openPreview"),size:t||"s",children:(0,d.jsx)(ct.I,{data:mg.A})}),vg=(e,t,a)=>(n,r)=>{const s=pg(n,e,t),i=hg(s,a);return{async_replication:void 0,transfer:void 0,database:void 0,directory:void 0,resource_pool:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[r]},gg=(e,t,a)=>(n,r)=>{const s=pg(n,e,t);return{preview:hg(s,a)}[r]};var yg=a(89974),xg=a(1064);const bg=5*Z.KF,fg=H.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if(B(a)){const a=await n(wt.endpoints.getViewSchema.initiate({database:t,path:e,timeout:bg}));if((0,Nt.We)(a))return{error:a};return{data:aa(a.data)}}const r=await n(G.endpoints.getOverview.initiate({path:e,database:t,timeout:bg}));return{data:ta(a,r.data)}}catch(r){return{error:r}}}})})});var Tg=a(51016),jg=a(49917),Sg=a(32133),Ng=a.n(Sg);function Eg(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let r=a.slice(n.length);return r=r.replace(/^\/+/,"")||"/",r}function wg(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Cg=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(ot.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(Jp.t,{size:"xs"})]}),action:t,disabled:a}),Pg=(e,t,a="")=>(n,r)=>{const s=((e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:r,getConfirmation:s,getConnectToDBDialog:i,schemaData:o}=a,l=a=>()=>{const r=()=>{t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e.path),Ym(a({...e,schemaData:o}))};s?s().then((e=>{e&&r()})):r()};return{createDirectory:r?()=>{r(e.path)}:void 0,getConnectToDBDialog:()=>null===i||void 0===i?void 0:i({database:e.path}),createTable:l(Xm),createColumnTable:l(ep),createAsyncReplication:l(tp),alterAsyncReplication:l(gp),dropAsyncReplication:l(hp),createTransfer:l(ap),alterTransfer:l(yp),dropTransfer:l(vp),alterTable:l(np),dropTable:l(Ip),manageAutoPartitioning:l(rp),selectQuery:l(sp),upsertQuery:l(ip),createExternalTable:l(lp),dropExternalTable:l(op),selectQueryFromExternalTable:l(sp),createTopic:l(cp),alterTopic:l(dp),dropTopic:l(up),createView:l(mp),dropView:l(pp),dropIndex:l(bp),addTableIndex:l(xp),createCdcStream:l(fp),copyPath:()=>{try{Ng()(e.relativePath),ht({name:"Copied",title:Cs("actions.copied"),type:"success"})}catch{ht({name:"Not copied",title:Cs("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:Eg(n,a),tenantName:a,type:r},e,t),i={text:Cs("actions.copyPath"),action:s.copyPath,iconEnd:(0,d.jsx)(Tg.A,{})},o={text:Cs("actions.connectToDB"),action:s.getConnectToDBDialog,iconEnd:(0,d.jsx)(jg.A,{})},l=[{text:Cs("actions.createTable"),action:s.createTable},{text:Cs("actions.createColumnTable"),action:s.createColumnTable},{text:Cs("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:Cs("actions.createTransfer"),action:s.createTransfer},{text:Cs("actions.createTopic"),action:s.createTopic},{text:Cs("actions.createView"),action:s.createView}],c={text:Cs("actions.alterTable"),items:[{text:Cs("actions.manageColumns"),action:s.alterTable},{text:Cs("actions.manageAutoPartitioning"),action:s.manageAutoPartitioning}]},u=[[i,o],l],m=[[i],l];if(s.createDirectory){const e={text:Cs("actions.createDirectory"),action:s.createDirectory};u.splice(1,0,[e]),m.splice(1,0,[e])}const p=[[i],[c,{text:Cs("actions.dropTable"),action:s.dropTable},Cg({text:Cs("actions.selectQuery"),action:s.selectQuery,isLoading:t.isSchemaDataLoading}),Cg({text:Cs("actions.upsertQuery"),action:s.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:Cs("actions.addTableIndex"),action:s.addTableIndex},{text:Cs("actions.createCdcStream"),action:s.createCdcStream}]],h=[[i],[c,{text:Cs("actions.dropTable"),action:s.dropTable},{text:Cs("actions.selectQuery"),action:s.selectQuery},{text:Cs("actions.upsertQuery"),action:s.upsertQuery}]],v=[[i],[{text:Cs("actions.alterTopic"),action:s.alterTopic},{text:Cs("actions.dropTopic"),action:s.dropTopic}]],g=[[i],[{text:Cs("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:Cs("actions.dropTable"),action:s.dropExternalTable}]],y=[[i],[{text:Cs("actions.createExternalTable"),action:s.createExternalTable}]],x=[[i],[{text:Cs("actions.selectQuery"),action:s.selectQuery}],[{text:Cs("actions.dropView"),action:s.dropView}]],b=[i];return{async_replication:[[i],[{text:Cs("actions.alterReplication"),action:s.alterAsyncReplication},{text:Cs("actions.dropReplication"),action:s.dropAsyncReplication}]],transfer:[[i],[{text:Cs("actions.alterTransfer"),action:s.alterTransfer},{text:Cs("actions.dropTransfer"),action:s.dropTransfer}]],database:u,directory:m,resource_pool:b,table:p,column_table:h,index_table:b,topic:v,stream:b,index:[[i,{text:Cs("actions.dropIndex"),action:s.dropIndex}]],external_table:g,external_data_source:y,view:x}[r]},Ig=(0,c.cn)("ydb-schema-create-directory-dialog"),Dg="relativePath";function Ag({open:e,onClose:t,database:a,parentPath:r,onSuccess:s}){const[i,o]=n.useState(""),[l,c]=n.useState(""),[u,m]=Y.sM.useCreateDirectoryMutation(),p=()=>{o(""),m.reset()},h=()=>{t(),c(""),p()};return(0,d.jsxs)(Hn.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Hn.l.Header,{caption:Cs("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?Cs("schema.tree.dialog.whitespace"):"":Cs("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${r}/${l}`}).unwrap().then((()=>{h(),s(l)}))},children:[(0,d.jsxs)(Hn.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:Dg,className:Ig("label"),children:[(0,d.jsx)("span",{className:Ig("description"),children:Cs("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Ig("input-wrapper"),children:(0,d.jsx)(Fn.k,{placeholder:Cs("schema.tree.dialog.placeholder"),value:l,onUpdate:e=>{c(e),p()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:m.isLoading,validationState:i?"invalid":void 0,id:Dg,errorMessage:i})}),m.isError&&(0,d.jsx)(de.o,{error:m.error,defaultMessage:Cs("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Hn.l.Footer,{loading:m.isLoading,textButtonApply:Cs("schema.tree.dialog.buttonApply"),textButtonCancel:Cs("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const _g=n.createContext(void 0),Rg=n.createContext(void 0);function kg({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(_g.Provider,{value:t,children:(0,d.jsx)(Rg.Provider,{value:a,children:e})})}function Og(){const e=n.useContext(Rg);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function Mg(e){const t=(0,ie.Ii)(),{rootPath:a,rootName:r,rootType:s,currentPath:i,onActivePathUpdate:o}=e,l=(0,X.YQ)(),c=(0,X.N4)(wo.Wp),[u,{currentData:m,isFetching:p}]=fg.useLazyGetTableSchemaDataQuery(),[h,v]=(0,X.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Og(),T=function(){const e=n.useContext(_g);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),j=wg(a,s)?"database":E(s);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const S=e=>{b(e),y(!0)},w=n.useMemo((()=>Pg(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?S:void 0,getConfirmation:c?Jo:void 0,getConnectToDBDialog:xg.S,schemaData:m,isSchemaDataLoading:p},a)),[m,t,l,c,p,o,h,a,v]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ag,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(yg.F,{rootState:{path:a,name:r,type:j,collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(Y.sM.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:s}=await n;if(n.unsubscribe(),(null===s||void 0===s?void 0:s.path)===e){t=null===r||void 0===r?void 0:r[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n,ChildrenExist:r}=e,s=$(a,n)||(0,Rs.f8)(r)&&!r;return{name:t,type:E(a,n),expandable:!s}}))},getActions:w,onActionsOpenToggle:({path:e,type:t,isOpen:n})=>{const r=N[t];return n&&r&&u({path:e,tenantName:a,type:r}),[]},renderAdditionalNodeElements:vg(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},T)]})}const Lg=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),zg=(0,Be.g4)("ydb-object-summary",{en:Lg}),qg=(0,c.cn)("ydb-object-summary");function Fg({tenantName:e,path:t}){var a;const{data:n={},isLoading:r}=(0,Y.Tn)({path:e,database:e}),i=null===n||void 0===n||null===(a=n.PathDescription)||void 0===a?void 0:a.Self,[,o]=(0,s.useQueryParam)("schema",s.StringParam);return!i&&r?(0,d.jsx)("div",{children:(0,d.jsx)(ue.a,{})}):(0,d.jsxs)("div",{className:qg("tree-wrapper"),children:[(0,d.jsx)("div",{className:qg("tree-header"),children:zg("title_navigation")}),(0,d.jsx)("div",{className:qg("tree"),children:i?(0,d.jsx)(Mg,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var $g=a(16963);function Ug(){const e=(0,X.YQ)(),{diagnosticsTab:t,tenantPage:a}=(0,X.N4)((e=>e.tenant)),n=a===ae.Dg.diagnostics&&t===ae.iJ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(vn.$,{title:zg("action_openInDiagnostics"),onClick:()=>{e((0,oe.es)(ae.Dg.diagnostics)),e((0,oe.WO)(ae.iJ.schema))},size:"s",children:(0,d.jsx)(ct.I,{data:$g.A,size:14})})})}var Qg=a(8873),Bg=a(97091);function Hg(){const e=Og(),t=(0,X.YQ)();return(0,d.jsx)(lt.m,{title:"Refresh",children:(0,d.jsx)(vn.$,{className:qg("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,Bg.Ak)()),t(H.F.util.invalidateTags(["SchemaTree"]))},children:(0,d.jsx)(ct.I,{data:Qg.A})})})}const Gg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.hh))});function Wg({type:e,subType:t,tenantName:a,path:r,onCollapseSummary:i,onExpandSummary:o,isCollapsed:l}){var c;const u=(0,X.YQ)(),[,m]=(0,s.useQueryParam)("schema",s.StringParam),[p,v]=n.useReducer(Sm(Z.hh),void 0,Gg),{summaryTab:g=ae.ml.overview}=(0,X.N4)((e=>e.tenant)),y=(0,Qr.zy)(),f=Aa().parse(y.search,{ignoreQueryPrefix:!0}),{currentData:T}=G.useGetOverviewQuery({path:r,database:a}),j=null===T||void 0===T||null===(c=T.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=D(e);!e||t||ra.x$.find((e=>e.id===g))||u((0,oe.Mj)(ae.ml.overview))}),[u,e,g]);const S=()=>{const t=D(e)?[...ra.x$,...ra.nb]:ra.x$;return(0,d.jsx)("div",{className:qg("tabs"),children:(0,d.jsxs)(ot.s,{className:qg("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ne.t,{size:"l",items:t,activeTab:g,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...f,[ra.vh.summaryTab]:e});return(0,d.jsx)(re.N_,{to:a,className:qg("tab"),children:t},e)},allowNotSelected:!0}),g===ae.ml.schema&&(0,d.jsx)(Ug,{})]})})},N=()=>{switch(g){case ae.ml.acl:return(0,d.jsx)(dg,{path:r,database:a});case ae.ml.schema:return(0,d.jsx)(na,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!j)return;const{CreateStep:t,PathType:a,PathSubType:s,PathId:i,PathVersion:o}=j,l=[],c=wg(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:zg("field_type"),content:c}),s!==b.EPathSubTypeEmpty&&l.push({name:zg("field_subtype"),content:null===s||void 0===s?void 0:s.replace(/^EPathSubType/,"")}),l.push({name:zg("field_id"),content:i}),l.push({name:zg("field_version"),content:o}),l.push({name:zg("field_created"),content:(0,he.r6)(t)});const{PathDescription:u}=T;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:zg("field_data-size"),content:jr(e)},{name:zg("field_row-count"),content:(0,he.ZV)(t)})}const m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let s=(0,he.ZV)(t),i=(0,he.ZV)(a);return s&&n&&(s=`${s} / ${(0,he.ZV)(n)}`),i&&r&&(i=`${i} / ${(0,he.ZV)(r)}`),[{name:zg("field_paths"),content:s},{name:zg("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeResourcePool]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:zg("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[x.EPathTypeSubDomain]:m,[x.EPathTypeTableIndex]:void 0,[x.EPathTypeExtSubDomain]:m,[x.EPathTypeColumnStore]:()=>{var e,t;return[{name:zg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[x.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:zg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[x.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:zg("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:zg("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[x.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.PersQueueGroup,r=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{name:zg("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:zg("field_retention"),content:r&&(0,he.Pt)(r)}]},[x.EPathTypeExternalTable]:()=>{var e,t;const a=(0,ye.Ow)({...f,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},s=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:zg("field_source-type"),content:n},{name:zg("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(Br.K,{title:s||"",url:a})})}]},[x.EPathTypeExternalDataSource]:()=>{var e;return[{name:zg("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[x.EPathTypeView]:void 0,[x.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:zg("field_state"),content:(0,d.jsx)(is,{state:t})}]:[]},[x.EPathTypeTransfer]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:zg("field_state"),content:(0,d.jsx)(is,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:qg("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:qg("overview-title"),children:(0,d.jsx)(Ps,{data:u})}),(0,d.jsx)(Xv.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(Xv.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},E=()=>{v(fm.triggerCollapse)},w=()=>{v(fm.triggerExpand)},C=()=>{v(fm.clear)},P=Eg(r,a),I=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&gg(u,{setActivePath:m},"m")(r,"preview"),(0,d.jsx)(pn.b,{text:P,view:"flat-secondary",title:zg("action_copySchemaPath")}),(0,d.jsx)(Em,{onCollapse:E,onExpand:w,isCollapsed:p.collapsed,initialDirection:"bottom"})]})},A=()=>{const{Status:t,Reason:a}=null!==T&&void 0!==T?T:{};if(e){let t=e.replace("EPathType","");return wg(r,e)&&(t="domain"),(0,d.jsx)("div",{className:qg("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:qg("entity-type",{error:!0}),children:(0,d.jsx)(Ra.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(kg,{children:(0,d.jsxs)("div",{className:qg(),children:[(0,d.jsx)("div",{className:qg({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.ED,onSplitStartDragAdditional:C,triggerCollapse:p.triggerCollapse,triggerExpand:p.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Fg,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:qg("info"),children:[(0,d.jsxs)("div",{className:qg("sticky-top"),children:[(0,d.jsxs)("div",{className:qg("info-header"),children:[(0,d.jsxs)("div",{className:qg("info-title"),children:[A(),(0,d.jsx)("div",{className:qg("path-name"),children:P})]}),(0,d.jsx)("div",{className:qg("info-controls"),children:I()})]}),S()]}),(0,d.jsx)("div",{className:qg("overview-wrapper"),children:N()})]})]})}),(0,d.jsxs)(ot.s,{className:qg("actions"),gap:.5,children:[!l&&(0,d.jsx)(Hg,{}),(0,d.jsx)(Em,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Vg=(0,c.cn)("tenant-page"),Jg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.jX))});function Kg(e){var t,l,c,u,m,p,g,y,x,b;const[f,T]=n.useReducer(Sm(Z.jX),void 0,Jg),[{database:j,name:S,schema:N},E]=(0,s.useQueryParams)({database:s.StringParam,name:s.StringParam,schema:s.StringParam});n.useEffect((()=>{S&&!j&&E({database:S,name:void 0},"replaceIn")}),[j,S,E]);const w=null!==j&&void 0!==j?j:S;if(!w)throw new Error("Tenant name is not defined");const C=n.useRef();n.useEffect((()=>{if(C.current!==w){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(245).then(a.bind(a,50245));e(w)})().catch(console.error),C.current=w}}),[w]);const P=(0,X.YQ)();n.useEffect((()=>{P((0,v.g)("tenant",{tenantName:w}))}),[w,P]);const I=null!==N&&void 0!==N?N:w,{currentData:D,error:A,isLoading:_}=G.useGetOverviewQuery({path:I,database:w}),R=(0,X.N4)((e=>(0,Y.Tp)(e,I,w))),k=null!==(t=null===D||void 0===D||null===(l=D.PathDescription)||void 0===l||null===(c=l.Self)||void 0===c?void 0:c.PathType)&&void 0!==t?t:null===R||void 0===R||null===(u=R.PathDescription)||void 0===u||null===(m=u.Self)||void 0===m?void 0:m.PathType,O=null!==(p=null===D||void 0===D||null===(g=D.PathDescription)||void 0===g||null===(y=g.Self)||void 0===y?void 0:y.PathSubType)&&void 0!==p?p:null===R||void 0===R||null===(x=R.PathDescription)||void 0===x||null===(b=x.Self)||void 0===b?void 0:b.PathSubType,M=(0,ee.Pq)(A),[L,z]=n.useState(!0);L&&!_&&z(!1);const q=I||Cs("page.title");return(0,d.jsxs)("div",{className:Vg(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${q} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${q} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:L,children:(0,d.jsx)(i.A,{error:M?A:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:Z.jQ,defaultSizes:[25,75],triggerCollapse:f.triggerCollapse,triggerExpand:f.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{T(fm.clear)},children:[(0,d.jsx)(Wg,{type:k,subType:O,tenantName:w,path:I,onCollapseSummary:()=>{T(fm.triggerCollapse)},onExpandSummary:()=>{T(fm.triggerExpand)},isCollapsed:f.collapsed}),(0,d.jsx)("div",{className:Vg("main"),children:(0,d.jsx)(Zv,{type:k,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:w,path:I})})]})})})]})}},66574:()=>{},71635:(e,t,a)=>{"use strict";a.d(t,{C:()=>y});var n=a(44992),r=a(53850),s=a(62060),i=a.n(s),o=a(21334),l=a(24600);const c=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),d=(0,r.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:r.i5,argsMemoizeOptions:{equalityCheck:i()}}),u=(0,r.Mz)((e=>e),((e,t)=>d(t)),((e,t)=>t(e).data)),m=(0,r.Mz)(((e,t)=>u(e,t)),(e=>(0,l.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const n=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:n}})):e.TabletStateInfo:[]));var p=a(7435),h=a(90182),v=a(88616),g=a(60712);function y({nodeId:e,path:t,database:a}){const[r]=(0,h.Nt)();let s={};(0,p.f8)(e)?s={nodeId:e,database:a}:t&&(s={path:t,database:a});const{isLoading:i,error:o}=c.useGetTabletsInfoQuery(0===Object.keys(s).length?n.hT:s,{pollingInterval:r}),l=(0,h.N4)((e=>m(e,s)));return(0,g.jsx)(v.Q,{tablets:l,database:a,loading:i,error:o})}},79737:(e,t,a)=>{"use strict";a.d(t,{A:()=>o,X:()=>l});var n=a(5874),r=a(77506),s=a(60712);const i=(0,r.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function l({className:e,width:t,wrapperClassName:a,...r}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,r=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":r})},className:i("table",{width:t},e),...r})})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4324.c69948f7.chunk.js b/ydb/core/viewer/monitoring/static/js/4324.c69948f7.chunk.js deleted file mode 100644 index 42b86055b4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4324.c69948f7.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4324],{74324:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es-pr",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4349.9c8d20fd.chunk.js b/ydb/core/viewer/monitoring/static/js/4349.9c8d20fd.chunk.js deleted file mode 100644 index 2085038e42..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4349.9c8d20fd.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4349],{24349:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-tn",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekStart:1,weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/43702.745d5072.chunk.js b/ydb/core/viewer/monitoring/static/js/43702.745d5072.chunk.js new file mode 100644 index 0000000000..d18074747a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/43702.745d5072.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 43702.745d5072.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[43702],{43702:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends","implements"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/43702.745d5072.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/43702.745d5072.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/43761.7a876492.chunk.js b/ydb/core/viewer/monitoring/static/js/43761.7a876492.chunk.js new file mode 100644 index 0000000000..9b00df2122 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/43761.7a876492.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[43761],{43761:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),t={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xe7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xe7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){return e+(1===e||3===e?"r":2===e?"n":4===e?"t":"\xe8")}};return s.default.locale(t,null,!0),t}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/43979.9ed5260f.chunk.js b/ydb/core/viewer/monitoring/static/js/43979.9ed5260f.chunk.js new file mode 100644 index 0000000000..d01f3e644f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/43979.9ed5260f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[43979],{1888:e=>{function n(e){!function(e){function n(e){return function(){return e}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,r="\\b(?!"+a.source+")(?!\\d)\\w+\\b",s=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(s))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(r))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,n(o)).replace(/<ALIGN>/g,n(s))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(o)).replace(/<ALIGN>/g,n(s))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach((function(n){null===n.inside&&(n.inside=e.languages.zig)}))}(e)}e.exports=n,n.displayName="zig",n.aliases=[]},43979:(e,n,a)=>{a.d(n,{default:()=>s});var r=a(1888);const s=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4401.f46d19f6.chunk.js b/ydb/core/viewer/monitoring/static/js/4401.f46d19f6.chunk.js deleted file mode 100644 index 7ee3707cf5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4401.f46d19f6.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4401],{6782:function(u,r,n){u.exports=function(u){"use strict";function r(u){return u&&"object"==typeof u&&"default"in u?u:{default:u}}var n=r(u),e={s:["nokkrar sek\xfandur","nokkrar sek\xfandur","nokkrum sek\xfandum"],m:["m\xedn\xfata","m\xedn\xfatu","m\xedn\xfatu"],mm:["m\xedn\xfatur","m\xedn\xfatur","m\xedn\xfatum"],h:["klukkustund","klukkustund","klukkustund"],hh:["klukkustundir","klukkustundir","klukkustundum"],d:["dagur","dag","degi"],dd:["dagar","daga","d\xf6gum"],M:["m\xe1nu\xf0ur","m\xe1nu\xf0","m\xe1nu\xf0i"],MM:["m\xe1nu\xf0ir","m\xe1nu\xf0i","m\xe1nu\xf0um"],y:["\xe1r","\xe1r","\xe1ri"],yy:["\xe1r","\xe1r","\xe1rum"]};function t(u,r,n,t){var m=function(u,r,n,t){var m=t?0:n?1:2,a=2===u.length&&r%10==1?u[0]:u,d=e[a][m];return 1===u.length?d:"%d "+d}(n,u,t,r);return m.replace("%d",u)}var m={name:"is",weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),weekStart:1,weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),ordinal:function(u){return u},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};return n.default.locale(m,null,!0),m}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/44096.4faf307e.chunk.js b/ydb/core/viewer/monitoring/static/js/44096.4faf307e.chunk.js new file mode 100644 index 0000000000..7c4ccb6728 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/44096.4faf307e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[44096],{44096:function(t,_,e){t.exports=function(t){"use strict";function _(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=_(t),a={name:"mt",weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),weekStart:1,weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"}};return e.default.locale(a,null,!0),a}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/44391.7bf4eade.chunk.js b/ydb/core/viewer/monitoring/static/js/44391.7bf4eade.chunk.js new file mode 100644 index 0000000000..c902dee106 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/44391.7bf4eade.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[44391],{44391:(e,a,n)=>{n.d(a,{default:()=>r});var t=n(50402);const r=n.n(t)()},50402:e=>{function a(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}e.exports=a,a.displayName="avroIdl",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/44601.53b5fa99.chunk.js b/ydb/core/viewer/monitoring/static/js/44601.53b5fa99.chunk.js new file mode 100644 index 0000000000..cd51e782ca --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/44601.53b5fa99.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[44601],{44601:function(a,j,r){a.exports=function(a){"use strict";function j(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var r=j(a),_={name:"tlh",weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),weekStart:1,weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return r.default.locale(_,null,!0),_}(r(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/44846.352e01be.chunk.js b/ydb/core/viewer/monitoring/static/js/44846.352e01be.chunk.js new file mode 100644 index 0000000000..0bece7e210 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/44846.352e01be.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 44846.352e01be.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[44846],{2120:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,s;switch(n=n||{},r.util.type(t)){case"Object":if(s=r.util.objId(t),n[s])return n[s];for(var i in a={},n[s]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return s=r.util.objId(t),n[s]?n[s]:(a=[],n[s]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var s=(a=a||r.languages)[e],i={};for(var o in s)if(s.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(o)||(i[o]=s[o])}var u=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,s){s=s||{};var i=r.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],a||o);var l=t[o],u=r.util.type(l);"Object"!==u||s[i(l)]?"Array"!==u||s[i(l)]||(s[i(l)]=!0,e(l,n,o,s)):(s[i(l)]=!0,e(l,n,null,s))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var s,i=0;s=a.elements[i++];)r.highlightElement(s,!0===t,a.callback)},highlightElement:function(t,n,a){var s=r.util.getLanguage(t),i=r.languages[s];r.util.setLanguage(t,s);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&r.util.setLanguage(o,s);var l={element:t,language:s,grammar:i,code:t.textContent};function u(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),a&&a.call(l.element)}if(r.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(a&&a.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var g=new Worker(r.filename);g.onmessage=function(e){u(e.data)},g.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(r.highlight(l.code,l.grammar,l.language));else u(r.util.encode(l.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),s.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var r=new l;return u(r,r.head,e),o(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,s=0;a=n[s++];)a(t)}},Token:s};function s(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function i(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function o(e,t,n,a,l,c){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(c&&c.cause==d+","+h)return;var f=p[h],m=f.inside,v=!!f.lookbehind,b=!!f.greedy,y=f.alias;if(b&&!f.pattern.global){var F=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,F+"g")}for(var k=f.pattern||f,x=a.next,w=l;x!==t.tail&&!(c&&w>=c.reach);w+=x.value.length,x=x.next){var A=x.value;if(t.length>e.length)return;if(!(A instanceof s)){var $,S=1;if(b){if(!($=i(k,w,e,v))||$.index>=e.length)break;var E=$.index,_=$.index+$[0].length,j=w;for(j+=x.value.length;E>=j;)j+=(x=x.next).value.length;if(w=j-=x.value.length,x.value instanceof s)continue;for(var C=x;C!==t.tail&&(j<_||"string"===typeof C.value);C=C.next)S++,j+=C.value.length;S--,A=e.slice(w,j),$.index-=w}else if(!($=i(k,0,A,v)))continue;E=$.index;var L=$[0],z=A.slice(0,E),O=A.slice(E+L.length),P=w+A.length;c&&P>c.reach&&(c.reach=P);var T=x.prev;if(z&&(T=u(t,T,z),w+=z.length),g(t,T,S),x=u(t,T,new s(d,m?r.tokenize(L,m):L,y,L)),O&&u(t,x,O),S>1){var M={cause:d+","+h,reach:P};o(e,t,n,x.prev,w,M),c&&M.reach>c.reach&&(c.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function g(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r}if(e.Prism=r,s.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var s={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(s.classes,i):s.classes.push(i)),r.hooks.run("wrap",s);var o="";for(var l in s.attributes)o+=" "+l+'="'+(s.attributes[l]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+o+">"+s.content+"</"+s.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,s=n.code,i=n.immediateClose;e.postMessage(r.highlight(s,r.languages[a],a)),i&&e.close()}),!1),r):r;var c=r.util.currentScript();function d(){r.manual||r.highlightAll()}if(c&&(r.filename=c.src,c.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var p=document.readyState;"loading"===p||"interactive"===p&&c&&c.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof n.g&&(n.g.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:a.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},a.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(){if("undefined"!==typeof a&&"undefined"!==typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",r="loaded",s="pre[data-src]:not(["+t+'="'+r+'"]):not(['+t+'="'+n+'"])';a.hooks.add("before-highlightall",(function(e){e.selector+=", "+s})),a.hooks.add("before-sanity-check",(function(i){var o=i.element;if(o.matches(s)){i.code="",o.setAttribute(t,n);var l=o.appendChild(document.createElement("CODE"));l.textContent="Loading\u2026";var u=o.getAttribute("data-src"),g=i.language;if("none"===g){var c=(/\.(\w+)$/.exec(u)||[,"none"])[1];g=e[c]||c}a.util.setLanguage(l,g),a.util.setLanguage(o,g);var d=a.plugins.autoloader;d&&d.loadLanguages(g),function(e,t,n){var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status<400&&a.responseText?t(a.responseText):a.status>=400?n("\u2716 Error "+a.status+" while fetching file: "+a.statusText):n("\u2716 Error: File does not exist or is empty"))},a.send(null)}(u,(function(e){o.setAttribute(t,r);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),a=t[2],r=t[3];return a?r?[n,Number(r)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(n){var s=e.split(/\r\n?|\n/g),i=n[0],u=null==n[1]?s.length:n[1];i<0&&(i+=s.length),i=Math.max(0,Math.min(i-1,s.length)),u<0&&(u+=s.length),u=Math.max(0,Math.min(u,s.length)),e=s.slice(i,u).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(i+1))}l.textContent=e,a.highlightElement(l)}),(function(e){o.setAttribute(t,"failed"),l.textContent=e}))}})),a.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(s),r=0;t=n[r++];)a.highlightElement(t)}};var i=!1;a.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},44846:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});var a=n(2120);const r=n.n(a)().languages.core}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/44846.352e01be.chunk.js.LICENSE.txt index 0285de9116..0285de9116 100644 --- a/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/44846.352e01be.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/44866.fde9a535.chunk.js b/ydb/core/viewer/monitoring/static/js/44866.fde9a535.chunk.js new file mode 100644 index 0000000000..6e659e547d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/44866.fde9a535.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[44866],{7569:e=>{function a(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}e.exports=a,a.displayName="hcl",a.aliases=[]},44866:(e,a,t)=>{t.d(a,{default:()=>r});var i=t(7569);const r=t.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js b/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js deleted file mode 100644 index 00c9e23dc1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4534.b98f1389.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4534],{24534:(e,i,t)=>{t.r(i),t.d(i,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js b/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js deleted file mode 100644 index 0c4b9ceb62..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4542.18433910.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4542],{14542:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/45517.dd0696d8.chunk.js b/ydb/core/viewer/monitoring/static/js/45517.dd0696d8.chunk.js new file mode 100644 index 0000000000..b733d4a0a3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/45517.dd0696d8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[45517],{1726:e=>{function t(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}e.exports=t,t.displayName="d",t.aliases=[]},45517:(e,t,r)=>{r.d(t,{default:()=>s});var a=r(1726);const s=r.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4554.8b82bb25.chunk.js b/ydb/core/viewer/monitoring/static/js/4554.8b82bb25.chunk.js new file mode 100644 index 0000000000..744ee0cb64 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4554.8b82bb25.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4554],{4554:(e,r,t)=>{t.d(r,{default:()=>o});var a=t(77831);const o=t.n(a)()},77831:e=>{function r(e){!function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var r in e)e[r]=e[r].replace(/<[\w\s]+>/g,(function(r){return"(?:"+e[r].trim()+")"}));return e[r]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(e)}e.exports=r,r.displayName="scheme",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/45685.47ca075a.chunk.js b/ydb/core/viewer/monitoring/static/js/45685.47ca075a.chunk.js new file mode 100644 index 0000000000..24ccdbff6f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/45685.47ca075a.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[45685],{45685:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-iq",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644_ \u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644".split("_"),weekStart:1,weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644_ \u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/45759.cb764ce8.chunk.js b/ydb/core/viewer/monitoring/static/js/45759.cb764ce8.chunk.js new file mode 100644 index 0000000000..e99df6df25 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/45759.cb764ce8.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[45759],{45759:function(a,e,t){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=e(a),_={name:"eu",weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),weekStart:1,weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"}};return t.default.locale(_,null,!0),_}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js b/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js deleted file mode 100644 index 2c7a5fb8af..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4582.5bf174ff.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4582],{84582:(e,_,t)=>{t.r(_),t.d(_,{conf:()=>s,language:()=>r});var s={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},r={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","FALSE","FETCH","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","NATURAL","NOT","NOTNULL","NULL","OFFSET","ON","ONLY","OR","ORDER","OUTER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["abbrev","abs","acldefault","aclexplode","acos","acosd","acosh","age","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","ascii","asin","asind","asinh","atan","atan2","atan2d","atand","atanh","avg","bit","bit_and","bit_count","bit_length","bit_or","bit_xor","bool_and","bool_or","bound_box","box","brin_desummarize_range","brin_summarize_new_values","brin_summarize_range","broadcast","btrim","cardinality","cbrt","ceil","ceiling","center","char_length","character_length","chr","circle","clock_timestamp","coalesce","col_description","concat","concat_ws","convert","convert_from","convert_to","corr","cos","cosd","cosh","cot","cotd","count","covar_pop","covar_samp","cume_dist","current_catalog","current_database","current_date","current_query","current_role","current_schema","current_schemas","current_setting","current_time","current_timestamp","current_user","currval","cursor_to_xml","cursor_to_xmlschema","date_bin","date_part","date_trunc","database_to_xml","database_to_xml_and_xmlschema","database_to_xmlschema","decode","degrees","dense_rank","diagonal","diameter","div","encode","enum_first","enum_last","enum_range","every","exp","extract","factorial","family","first_value","floor","format","format_type","gcd","gen_random_uuid","generate_series","generate_subscripts","get_bit","get_byte","get_current_ts_config","gin_clean_pending_list","greatest","grouping","has_any_column_privilege","has_column_privilege","has_database_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_schema_privilege","has_sequence_privilege","has_server_privilege","has_table_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","initcap","isclosed","isempty","isfinite","isopen","json_agg","json_array_elements","json_array_elements_text","json_array_length","json_build_array","json_build_object","json_each","json_each_text","json_extract_path","json_extract_path_text","json_object","json_object_agg","json_object_keys","json_populate_record","json_populate_recordset","json_strip_nulls","json_to_record","json_to_recordset","json_to_tsvector","json_typeof","jsonb_agg","jsonb_array_elements","jsonb_array_elements_text","jsonb_array_length","jsonb_build_array","jsonb_build_object","jsonb_each","jsonb_each_text","jsonb_extract_path","jsonb_extract_path_text","jsonb_insert","jsonb_object","jsonb_object_agg","jsonb_object_keys","jsonb_path_exists","jsonb_path_match","jsonb_path_query","jsonb_path_query_array","jsonb_path_exists_tz","jsonb_path_query_first","jsonb_path_query_array_tz","jsonb_path_query_first_tz","jsonb_path_query_tz","jsonb_path_match_tz","jsonb_populate_record","jsonb_populate_recordset","jsonb_pretty","jsonb_set","jsonb_set_lax","jsonb_strip_nulls","jsonb_to_record","jsonb_to_recordset","jsonb_to_tsvector","jsonb_typeof","justify_days","justify_hours","justify_interval","lag","last_value","lastval","lcm","lead","least","left","length","line","ln","localtime","localtimestamp","log","log10","lower","lower_inc","lower_inf","lpad","lseg","ltrim","macaddr8_set7bit","make_date","make_interval","make_time","make_timestamp","make_timestamptz","makeaclitem","masklen","max","md5","min","min_scale","mod","mode","multirange","netmask","network","nextval","normalize","now","npoints","nth_value","ntile","nullif","num_nonnulls","num_nulls","numnode","obj_description","octet_length","overlay","parse_ident","path","pclose","percent_rank","percentile_cont","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backend_pid","pg_backup_start_time","pg_blocking_pids","pg_cancel_backend","pg_client_encoding","pg_collation_actual_version","pg_collation_is_visible","pg_column_compression","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_copy_logical_replication_slot","pg_copy_physical_replication_slot","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_logfile","pg_current_snapshot","pg_current_wal_flush_lsn","pg_current_wal_insert_lsn","pg_current_wal_lsn","pg_current_xact_id","pg_current_xact_id_if_assigned","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_event_trigger_ddl_commands","pg_event_trigger_dropped_objects","pg_event_trigger_table_rewrite_oid","pg_event_trigger_table_rewrite_reason","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_catalog_foreign_keys","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_statisticsobjdef","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_get_wal_replay_pause_state","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_import_system_collations","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_wal_replay_paused","pg_is_xlog_replay_paused","pg_jit_available","pg_last_committed_xact","pg_last_wal_receive_lsn","pg_last_wal_replay_lsn","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_log_backend_memory_contexts","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_archive_statusdir","pg_ls_dir","pg_ls_logdir","pg_ls_tmpdir","pg_ls_waldir","pg_mcv_list_items","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_partition_ancestors","pg_partition_root","pg_partition_tree","pg_postmaster_start_time","pg_promote","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_advance","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_replication_slot_advance","pg_rotate_logfile","pg_safe_snapshot_blocking_pids","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_snapshot_xip","pg_snapshot_xmax","pg_snapshot_xmin","pg_start_backup","pg_stat_file","pg_statistics_obj_is_visible","pg_stop_backup","pg_switch_wal","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_terminate_backend","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_visible_in_snapshot","pg_wal_lsn_diff","pg_wal_replay_pause","pg_wal_replay_resume","pg_walfile_name","pg_walfile_name_offset","pg_xact_commit_timestamp","pg_xact_commit_timestamp_origin","pg_xact_status","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","pi","plainto_tsquery","point","polygon","popen","position","power","pqserverversion","query_to_xml","query_to_xml_and_xmlschema","query_to_xmlschema","querytree","quote_ident","quote_literal","quote_nullable","radians","radius","random","range_agg","range_intersect_agg","range_merge","rank","regexp_count","regexp_instr","regexp_like","regexp_match","regexp_matches","regexp_replace","regexp_split_to_array","regexp_split_to_table","regexp_substr","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","repeat","replace","reverse","right","round","row_number","row_security_active","row_to_json","rpad","rtrim","scale","schema_to_xml","schema_to_xml_and_xmlschema","schema_to_xmlschema","session_user","set_bit","set_byte","set_config","set_masklen","setseed","setval","setweight","sha224","sha256","sha384","sha512","shobj_description","sign","sin","sind","sinh","slope","split_part","sprintf","sqrt","starts_with","statement_timestamp","stddev","stddev_pop","stddev_samp","string_agg","string_to_array","string_to_table","strip","strpos","substr","substring","sum","suppress_redundant_updates_trigger","table_to_xml","table_to_xml_and_xmlschema","table_to_xmlschema","tan","tand","tanh","text","timeofday","timezone","to_ascii","to_char","to_date","to_hex","to_json","to_number","to_regclass","to_regcollation","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_timestamp","to_tsquery","to_tsvector","transaction_timestamp","translate","trim","trim_array","trim_scale","trunc","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_if_assigned","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_status","txid_visible_in_snapshot","unistr","unnest","upper","upper_inc","upper_inf","user","var_pop","var_samp","variance","version","websearch_to_tsquery","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4601.39745c4e.chunk.js b/ydb/core/viewer/monitoring/static/js/4601.39745c4e.chunk.js deleted file mode 100644 index 40d48f1e56..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4601.39745c4e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4601],{44601:function(a,j,r){a.exports=function(a){"use strict";function j(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var r=j(a),_={name:"tlh",weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),weekStart:1,weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return r.default.locale(_,null,!0),_}(r(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/46012.36fc4080.chunk.js b/ydb/core/viewer/monitoring/static/js/46012.36fc4080.chunk.js new file mode 100644 index 0000000000..b22df51e93 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/46012.36fc4080.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 46012.36fc4080.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[46012],{46012:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>n,language:()=>l});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},l={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/46012.36fc4080.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/46012.36fc4080.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/46047.240cef79.chunk.js b/ydb/core/viewer/monitoring/static/js/46047.240cef79.chunk.js new file mode 100644 index 0000000000..96421b4ea3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/46047.240cef79.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[46047],{46047:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function r(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,n,t,s){var _=e+" ";switch(t){case"s":return n||s?"p\xe1r sekund":"p\xe1r sekundami";case"m":return n?"minuta":s?"minutu":"minutou";case"mm":return n||s?_+(r(e)?"minuty":"minut"):_+"minutami";case"h":return n?"hodina":s?"hodinu":"hodinou";case"hh":return n||s?_+(r(e)?"hodiny":"hodin"):_+"hodinami";case"d":return n||s?"den":"dnem";case"dd":return n||s?_+(r(e)?"dny":"dn\xed"):_+"dny";case"M":return n||s?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return n||s?_+(r(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):_+"m\u011bs\xedci";case"y":return n||s?"rok":"rokem";case"yy":return n||s?_+(r(e)?"roky":"let"):_+"lety"}}var _={name:"cs",weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),months:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),monthsShort:"led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return t.default.locale(_,null,!0),_}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/46134.708fa2c1.chunk.js b/ydb/core/viewer/monitoring/static/js/46134.708fa2c1.chunk.js new file mode 100644 index 0000000000..6462d78e90 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/46134.708fa2c1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[46134],{15657:e=>{function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=e.languages.swift}))}e.exports=t,t.displayName="swift",t.aliases=[]},46134:(e,t,n)=>{n.d(t,{default:()=>a});var i=n(15657);const a=n.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4617.be8c65cd.chunk.js b/ydb/core/viewer/monitoring/static/js/4617.be8c65cd.chunk.js new file mode 100644 index 0000000000..ec20f13278 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4617.be8c65cd.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4617],{4617:(e,a,n)=>{n.d(a,{default:()=>s});var t=n(75486);const s=n.n(t)()},75486:e=>{function a(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mn\xb5]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}e.exports=a,a.displayName="kusto",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/46306.d3a5a75d.chunk.js b/ydb/core/viewer/monitoring/static/js/46306.d3a5a75d.chunk.js new file mode 100644 index 0000000000..dacaa8d549 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/46306.d3a5a75d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[46306],{46306:(e,s,n)=>{n.d(s,{default:()=>a});var r=n(90323);const a=n.n(r)()},90323:e=>{function s(e){!function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+s[+n]+")"}))}function n(e,n,r){return RegExp(s(e,n),r||"")}function r(e,s){for(var n=0;n<s;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",i="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=c(t),l=RegExp(c(a+" "+t+" "+o+" "+i)),d=c(t+" "+o+" "+i),p=c(a+" "+t+" "+i),g=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=r(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),w=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,b,k]),v=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,m,k]),_={keyword:l,punctuation:/[<>()?,.:[\]]/},$=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,B=/"(?:\\.|[^\\"\r\n])*"/.source,E=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:_},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,x]),lookbehind:!0,inside:_},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,f]),lookbehind:!0,inside:_},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:_},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:_},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,h]),inside:_}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:_},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:_,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:_,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:_}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,f,h,x,l.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,b]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:_},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=B+"|"+$,S=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),z=r(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[S]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,z]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[z]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var C=/:[^}\r\n]+/.source,T=r(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[S]),2),F=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[T,C]),N=r(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[R]),2),U=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,C]);function Z(s,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,C]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:Z(F,T)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:Z(U,N)}],char:{pattern:RegExp($),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=s,s.displayName="csharp",s.aliases=["dotnet","cs"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4652.9a5d2242.chunk.js b/ydb/core/viewer/monitoring/static/js/4652.9a5d2242.chunk.js deleted file mode 100644 index 72f160b459..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4652.9a5d2242.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4652],{84652:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"lo",weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/46541.3c0665eb.chunk.js b/ydb/core/viewer/monitoring/static/js/46541.3c0665eb.chunk.js new file mode 100644 index 0000000000..215476df1a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/46541.3c0665eb.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[46541],{46541:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"km",weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekStart:1,weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js b/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js deleted file mode 100644 index 3c41698a43..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4662.1c10232d.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4662],{24662:(E,S,e)=>{e.r(S),e.d(S,{conf:()=>T,language:()=>R});var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4664.972299e2.chunk.js b/ydb/core/viewer/monitoring/static/js/4664.972299e2.chunk.js new file mode 100644 index 0000000000..dfde6ca699 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4664.972299e2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4664],{4664:(e,n,t)=>{t.d(n,{default:()=>s});var a=t(89343);const s=t.n(a)()},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js b/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js deleted file mode 100644 index 7ebde4af5f..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4678.4e2f4af4.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4678],{54678:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47.54dd12ac.chunk.js b/ydb/core/viewer/monitoring/static/js/47.54dd12ac.chunk.js deleted file mode 100644 index 999f39d3ab..0000000000 --- a/ydb/core/viewer/monitoring/static/js/47.54dd12ac.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47],{40047:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"kk",weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekStart:1,relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47108.d6adff77.chunk.js b/ydb/core/viewer/monitoring/static/js/47108.d6adff77.chunk.js new file mode 100644 index 0000000000..c79e121048 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47108.d6adff77.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47108],{47108:(e,t,a)=>{a.d(t,{default:()=>n});var s=a(49973);const n=a.n(s)()},49973:e=>{function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}e.exports=t,t.displayName="properties",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47153.2c051af0.chunk.js b/ydb/core/viewer/monitoring/static/js/47153.2c051af0.chunk.js new file mode 100644 index 0000000000..44393d3703 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47153.2c051af0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47153],{22456:e=>{function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}e.exports=t,t.displayName="unrealscript",t.aliases=["uc","uscript"]},47153:(e,t,a)=>{a.d(t,{default:()=>n});var r=a(22456);const n=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47293.68cfbf41.chunk.js b/ydb/core/viewer/monitoring/static/js/47293.68cfbf41.chunk.js new file mode 100644 index 0000000000..a17b1c3d0f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47293.68cfbf41.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47293],{2102:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(77506),n=r(60712);const o=(0,a.cn)("ydb-diagnostic-card");function l({children:e,className:t,active:r,size:a="m",interactive:l=!0}){return(0,n.jsx)("div",{className:o({active:r,size:a,interactive:l},t),children:e})}},7117:(e,t,r)=>{r.d(t,{G:()=>ee});var a=r(59284),n=r(44508),o=r(98167),l=r(89073),s=r(86782),i=r(67028),d=r(15298),u=r(90182),c=r(88610);function p(){const e=(0,u.YQ)();return{problemFilter:(0,u.N4)(c.yV),handleProblemFilterChange:t=>{e((0,c.$u)(t))}}}var h=r(12888),m=r(43951),g=r(78034),b=r(71708),v=r(62710),y=r(98089),f=r(69775),x=r(24555),w=r(28539),j=r(9252),N=r(95963),C=r(64934),T=r(44433),S=r(48372);const F=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:","controls_peer-role-label":"Peer role:","database":"database","static":"static","other":"other","any":"any"}'),I=(0,S.g4)("ydb-nodes",{en:F}),P=["database","static","other","any"],R={get database(){return I("database")},get static(){return I("static")},get other(){return I("other")},get any(){return I("any")}};var A=r(60712);function B({value:e="database",onChange:t}){return(0,A.jsx)(T.a,{value:e,onUpdate:t,children:P.map((e=>(0,A.jsx)(T.a.Option,{value:e,children:R[e]},e)))})}const _="nodesTableSelectedColumns",k=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],G=["NodeId"],L=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function E(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var D=r(59109);const q=(0,r(77506).cn)("ydb-nodes"),O=e=>q("node",{unavailable:(0,g.X7)(e)}),U=e=>e&&403===e.status?(0,A.jsx)(D.O,{position:"left"}):(0,A.jsx)(n.o,{error:e});var V=r(67087);function $(e){var t;const[r,a]=(0,V.useQueryParams)({uptimeFilter:V.StringParam,peerRole:V.StringParam,search:V.StringParam,nodesGroupBy:V.StringParam}),n=g.Bm.parse(r.uptimeFilter),o=null!==(t=r.search)&&void 0!==t?t:"",l=(s=r.peerRole,P.find((e=>e===s)));var s;const d=(0,i.DM)(),u=function(e,t,r){return E(t,r).find((t=>t===e))}(r.nodesGroupBy,null!==e&&void 0!==e?e:[],d);return{uptimeFilter:n,searchValue:o,peerRoleFilter:l,groupByParam:u,handleSearchQueryChange:e=>{a({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{a({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{a({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{a({nodesGroupBy:e},"replaceIn")}}}function H({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:r,columnsToSelect:n,handleSelectedColumnsUpdate:o,entitiesCountCurrent:l,entitiesCountTotal:d,entitiesLoading:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:m,groupByParam:g,handleSearchQueryChange:b,handleUptimeFilterChange:v,handlePeerRoleFilterChange:T,handleGroupByParamChange:S}=$(t),{problemFilter:F,handleProblemFilterChange:P}=p(),R=(0,i.DM)(),_=function(e,t){return E(e,t).map((e=>({value:e,content:(0,s.kn)(e)})))}(t,R),k=(0,i.WF)(),G=r&&k;return(0,A.jsxs)(a.Fragment,{children:[(0,A.jsx)(N.v,{onChange:b,placeholder:I("controls_search-placeholder"),width:238,value:c}),R&&e?null:(0,A.jsx)(j.k,{value:F,onChange:P}),e?null:(0,A.jsx)(C.j,{value:h,onChange:v}),G?(0,A.jsxs)(a.Fragment,{children:[(0,A.jsx)(y.E,{variant:"body-2",children:I("controls_peer-role-label")}),(0,A.jsx)(B,{value:m,onChange:T})]}):null,(0,A.jsx)(f.O,{popupWidth:200,items:n,showStatus:!0,onUpdate:o,sortable:!1}),e?(0,A.jsxs)(a.Fragment,{children:[(0,A.jsx)(y.E,{variant:"body-2",children:I("controls_group-by-placeholder")}),(0,A.jsx)(x.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:g?[g]:void 0,onUpdate:e=>{S(e[0])},options:_,className:q("group-by-select"),popupClassName:q("group-by-popup")})]}):null,(0,A.jsx)(w.T,{current:l,total:d,label:I("nodes"),loading:u})]})}var M=r(78524),Q=r(40427),K=r(11906),W=r(69464),z=r(40781);const X=async e=>{const{type:t="any",storage:r=!1,tablets:a=!0,limit:n,offset:o,sortParams:l,filters:i,columnsIds:d}=e,{sortOrder:u,columnId:c}=null!==l&&void 0!==l?l:{},{path:p,database:h,searchValue:m,problemFilter:b,uptimeFilter:v,peerRoleFilter:y,filterGroup:f,filterGroupBy:x}=null!==i&&void 0!==i?i:{},w=(0,s.kU)(c),j=w?(0,W.T)(w,u):void 0,N=(0,z.R)(d,s.fN),C=await window.api.viewer.getNodes({type:t,storage:r,tablets:a,limit:n,offset:o,sort:j,path:p,database:h,filter:m,problems_only:(0,g.AB)(b),uptime:(0,g.Fo)(v),filter_peer_role:y,filter_group:f,filter_group_by:x,fieldsRequired:N}),T=(0,K.N)(C);return{data:T.Nodes||[],found:T.FoundNodes||0,total:T.TotalNodes||0}};function J({path:e,database:t,searchValue:r,problemFilter:n,uptimeFilter:o,peerRoleFilter:l,filterGroup:i,filterGroupBy:d,columns:u,parentRef:c,renderControls:p,initialEntitiesCount:h}){const m=a.useMemo((()=>({path:e,database:t,searchValue:r,problemFilter:n,uptimeFilter:o,peerRoleFilter:l,filterGroup:i,filterGroupBy:d})),[e,t,r,n,o,l,i,d]);return(0,A.jsx)(Q.k5,{columnsWidthLSKey:s.zO,parentRef:c,columns:u,fetchData:X,limit:50,initialEntitiesCount:h,renderControls:p,renderErrorMessage:U,renderEmptyDataMessage:()=>"All"!==n||o!==g.cW.All?(0,A.jsx)(M.v,{name:"thumbsUp",width:"200"}):I("empty.default"),getRowClassName:O,filters:m,tableName:"nodes"})}var Y=r(78762);function Z(e){return[(0,Y._E)(),(0,Y.Nh)(e),(0,Y.eT)(),(0,Y.uk)(),(0,Y.OX)(),(0,Y.jl)(),(0,Y.fr)(),(0,Y.kv)(),(0,Y.pH)(),(0,Y.iX)(),(0,Y.ID)(),(0,Y.Rn)(),(0,Y.qp)(e)].map((e=>({...e,sortable:(0,s.sp)(e.name)})))}function ee({path:e,database:t,parentRef:r,additionalNodesProps:n,withPeerRoleFilter:l,columns:d=Z({database:t,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef}),defaultColumnsIds:u=k,requiredColumnsIds:c=G,selectedColumnsKey:m=_,groupByParams:b=L}){const{uptimeFilter:v,groupByParam:y,handleUptimeFilterChange:f}=$(b),{problemFilter:x,handleProblemFilterChange:w}=p(),j=(0,i.Pm)(),N=(0,i.Ye)(),C=(0,h.X)(),T=a.useMemo((()=>C?d:d.filter((e=>!(0,s.xd)(e.name)))),[d,C]);a.useEffect((()=>{!N||"All"===x&&v===g.cW.All||(w("All"),f(g.cW.All))}),[w,f,x,v,N]);return(0,A.jsx)(o.r,{loading:!j,children:N&&y?(0,A.jsx)(re,{path:e,database:t,parentRef:r,withPeerRoleFilter:l,columns:T,defaultColumnsIds:u,requiredColumnsIds:c,selectedColumnsKey:m,groupByParams:b}):(0,A.jsx)(te,{path:e,database:t,parentRef:r,withPeerRoleFilter:l,columns:T,defaultColumnsIds:u,requiredColumnsIds:c,selectedColumnsKey:m,groupByParams:b})})}function te({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:n,defaultColumnsIds:o,requiredColumnsIds:l,selectedColumnsKey:d,groupByParams:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:g}=$(u),{problemFilter:b}=p(),v=(0,i.Ye)(),{columnsToShow:y,columnsToSelect:f,setColumns:x}=(0,m.K)(n,d,s.uG,o,l);return(0,A.jsx)(J,{path:e,database:t,searchValue:c,problemFilter:b,uptimeFilter:h,peerRoleFilter:g,columns:y,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:r})=>(0,A.jsx)(H,{withGroupBySelect:v,groupByParams:u,withPeerRoleFilter:a,columnsToSelect:f,handleSelectedColumnsUpdate:x,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!r})})}function re({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:o,defaultColumnsIds:i,requiredColumnsIds:c,selectedColumnsKey:p,groupByParams:h}){const{searchValue:y,peerRoleFilter:f,groupByParam:x}=$(h),[w]=(0,u.Nt)(),{columnsToShow:j,columnsToSelect:N,setColumns:C}=(0,m.K)(o,p,s.uG,i,c),{currentData:T,isFetching:S,error:F}=d.s.useGetNodesQuery({path:e,database:t,filter:y,filter_peer_role:f,group:x,limit:0},{pollingInterval:w}),P=void 0===T&&S,{NodeGroups:R,FoundNodes:B=0,TotalNodes:_=0}=T||{},{expandedGroups:k,setIsGroupExpanded:G}=(0,v.$)(R);return(0,A.jsxs)(l.L,{children:[(0,A.jsx)(l.L.Controls,{children:(0,A.jsx)(H,{withGroupBySelect:!0,groupByParams:h,withPeerRoleFilter:a,columnsToSelect:N,handleSelectedColumnsUpdate:C,entitiesCountCurrent:B,entitiesCountTotal:_,entitiesLoading:P})}),F?(0,A.jsx)(n.o,{error:F}):null,(0,A.jsx)(l.L.Table,{loading:P,className:q("groups-wrapper"),children:null!==R&&void 0!==R&&R.length?R.map((({name:a,count:n})=>{const o=k[a];return(0,A.jsx)(b.Q,{title:a,count:n,entityName:I("nodes"),expanded:o,onIsExpandedChange:G,children:(0,A.jsx)(J,{path:e,database:t,searchValue:y,problemFilter:"All",uptimeFilter:g.cW.All,peerRoleFilter:f,filterGroup:a,filterGroupBy:x,initialEntitiesCount:n,columns:j,parentRef:r})},a)})):I("no-nodes-groups")})]})}},9252:(e,t,r)=>{r.d(t,{k:()=>l});var a=r(44433),n=r(88610),o=r(60712);const l=({value:e,onChange:t,className:r})=>(0,o.jsxs)(a.a,{value:e,onUpdate:t,className:r,children:[(0,o.jsx)(a.a.Option,{value:n.s$.ALL,children:n.s$.ALL}),(0,o.jsx)(a.a.Option,{value:n.s$.PROBLEMS,children:n.s$.PROBLEMS})]})},11906:(e,t,r)=>{r.d(t,{N:()=>n});var a=r(78034);const n=e=>{var t;const r=(e.Nodes||[]).map((e=>{const{SystemState:t,...r}=e;return{...r,...(0,a.q1)(t)}}));return{Nodes:r,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||r.length,FoundNodes:Number(e.FoundNodes)}}},15298:(e,t,r)=>{r.d(t,{s:()=>o});var a=r(21334),n=r(11906);const o=a.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,n.N)(r)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},21545:(e,t,r)=>{r.d(t,{X:()=>n});var a=r(78034);const n=r(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t,followerId:r},{signal:n})=>{try{const[o,l,s]=await Promise.all([window.api.viewer.getTablet({id:e,database:t,followerId:r},{signal:n}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:n}),window.api.viewer.getNodesList({signal:n})]),i=(0,a.nN)(s),d=Object.keys(l).reduce(((e,t)=>{var r;const a=null===(r=l[t])||void 0===r?void 0:r.TabletStateInfo;return null===a||void 0===a||a.forEach((r=>{var a;const{ChangeTime:n,Generation:o,State:l,Leader:s,FollowerId:d}=r,u=i&&t?null===(a=i.get(Number(t)))||void 0===a?void 0:a.Host:void 0;e.push({nodeId:t,generation:o,changeTime:n,state:l,leader:s,followerId:d,fqdn:u})})),e}),[]),{TabletStateInfo:u=[]}=o,c=void 0===r?u.find((e=>e.Leader)):u.find((e=>{var t;return(null===(t=e.FollowerId)||void 0===t?void 0:t.toString())===r})),{TabletId:p}=c||{};return{data:{id:p,data:c,history:d}}}catch(o){return{error:o}}},providesTags:(e,t,r)=>["All",{type:"Tablet",id:r.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const r=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:a,PathId:n}=e;return{data:(null===r||void 0===r?void 0:r.Path)||`${a}:${n}`}}catch(r){return{error:r}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:r})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:r})}}catch(a){return{error:a}}},providesTags:(e,t,r)=>["All",{type:"Tablet",id:r.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,r)=>[{type:"Tablet",id:r.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(r){return{error:r}}},invalidatesTags:(e,t,r)=>[{type:"Tablet",id:r.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(r){return{error:r}}},invalidatesTags:(e,t,r)=>[{type:"Tablet",id:r.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},22983:(e,t,r)=>{r.d(t,{B:()=>d});var a=r(59284),n=r(84476),o=r(84375),l=r(55974),s=r(42829),i=r(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:r,dialogHeader:d,dialogText:u,retryButtonText:c,buttonDisabled:p=!1,buttonView:h="action",buttonTitle:m,buttonClassName:g,withPopover:b=!1,popoverContent:v,popoverPlacement:y="right",popoverDisabled:f=!0}){const[x,w]=a.useState(!1),[j,N]=a.useState(!1),[C,T]=a.useState(!1),S=()=>(0,i.jsx)(n.$,{onClick:()=>w(!0),view:h,disabled:p,loading:!p&&j,className:g,title:m,children:e});return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(l.g,{visible:x,header:d,text:u,withRetry:C,retryButtonText:c,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===r||void 0===r?void 0:r())}finally{N(!1)}},onConfirmActionError:e=>{T((0,s.D)(e)),N(!1)},onClose:()=>{w(!1)}}),b?(0,i.jsx)(o.A,{content:v,placement:y,disabled:f,children:S()}):S()]})}},27775:(e,t,r)=>{r.d(t,{i:()=>l});var a=r(47665),n=r(58267),o=r(60712);function l({state:e}){return(0,o.jsx)(a.J,{theme:(0,n._)(e),children:e})}},28539:(e,t,r)=>{r.d(t,{T:()=>a.T});var a=r(53755)},42829:(e,t,r)=>{r.d(t,{D:()=>a});const a=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},55974:(e,t,r)=>{r.d(t,{g:()=>y});var a=r(59284),n=r(18677),o=r(71153),l=r(74321),s=r(2198),i=r(99991),d=r(89954),u=r(77506),c=r(81288),p=r(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,p.g4)("ydb-critical-action-dialog",{en:h});var g=r(60712);const b=(0,u.cn)("ydb-critical-dialog"),v=e=>{if((0,c.cH)(e)){if(403===e.status)return m("no-rights-error");if("string"===typeof e.data)return e.data;if((0,c._E)(e)&&e.data)return(0,g.jsx)(d.O,{hideSeverity:!0,data:e.data});if(e.statusText)return e.statusText}return m("default-error")};function y({visible:e,header:t,text:r,withRetry:d,retryButtonText:u,withCheckBox:c,onClose:p,onConfirm:h,onConfirmActionSuccess:y,onConfirmActionError:f}){const[x,w]=a.useState(!1),[j,N]=a.useState(),[C,T]=a.useState(!1),S=async e=>(w(!0),h(e).then((()=>{y(),p()})).catch((e=>{f(e),N(e)})).finally((()=>{w(!1)})));return(0,g.jsx)(s.l,{open:e,hasCloseButton:!1,className:b(),size:"s",onClose:p,onTransitionExited:()=>{N(void 0),T(!1)},children:j?(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(s.l.Header,{caption:t}),(0,g.jsx)(s.l.Body,{className:b("body"),children:(0,g.jsxs)("div",{className:b("body-message",{error:!0}),children:[(0,g.jsx)("span",{className:b("error-icon"),children:(0,g.jsx)(n.A,{width:"24",height:"22"})}),v(j)]})}),(0,g.jsx)(s.l.Footer,{loading:!1,preset:"default",textButtonApply:d?u||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:p})]}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(s.l.Header,{caption:t}),(0,g.jsxs)(s.l.Body,{className:b("body"),children:[(0,g.jsxs)("div",{className:b("body-message",{warning:!0}),children:[(0,g.jsx)("span",{className:b("warning-icon"),children:(0,g.jsx)(i.I,{data:o.A,size:24})}),r]}),c?(0,g.jsx)(l.S,{checked:C,onUpdate:T,children:m("checkbox-text")}):null]}),(0,g.jsx)(s.l.Footer,{loading:x,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:c&&!C},onClickButtonCancel:p,onClickButtonApply:()=>S()})]})})}},88616:(e,t,r)=>{r.d(t,{Q:()=>P});var a=r(59284),n=r(76938),o=r(98089),l=r(99991),s=r(67087),i=r(22983),d=r(28539),u=r(10508),c=r(44508),p=r(44294),h=r(17594),m=r(41775),g=r(89073),b=r(80420),v=r(27775),y=r(41826),f=r(21545),x=r(6354),w=r(76086),j=r(12888),N=r(29819),C=r(48372);const T=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.search-placeholder":"Tablet ID","controls.entities-count-label":"Tablets"}'),S=(0,C.g4)("ydb-tablets",{en:T});var F=r(60712);function I(e){const t=e.State===x.r.Stopped,r=(0,j.X)(),[a]=f.X.useKillTabletMutation(),o=e.TabletId;return o?(0,F.jsx)(i.B,{buttonView:"outlined",buttonTitle:S("dialog.kill-header"),dialogHeader:S("dialog.kill-header"),dialogText:S("dialog.kill-text"),onConfirmAction:()=>a({id:o}).unwrap(),buttonDisabled:t||!r,withPopover:!0,popoverContent:S(r?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,F.jsx)(l.I,{data:n.A})}):null}function P({database:e,tablets:t,loading:r,error:n}){const[{tabletsSearch:l},i]=(0,s.useQueryParams)({tabletsSearch:s.StringParam}),f=a.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return S("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,F.jsxs)("span",{children:[e.Type," ",t?(0,F.jsx)(o.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return S("Tablet")},render:({row:t})=>t.TabletId?(0,F.jsx)(b.$,{tabletId:t.TabletId,database:e,followerId:t.FollowerId||void 0}):w.Pd},{name:"State",get header(){return S("State")},render:({row:e})=>(0,F.jsx)(v.i,{state:e.State})},{name:"NodeId",get header(){return S("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,N.vI)(e.NodeId);return(0,F.jsx)(p.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return S("Node FQDN")},render:({row:e})=>e.fqdn?(0,F.jsx)(u.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return S("Generation")},align:"right"},{name:"Uptime",get header(){return S("Uptime")},render:({row:e})=>(0,F.jsx)(y.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,F.jsx)(I,{...e})}]}({database:e})),[e]),x=a.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==l&&void 0!==l?l:"")))),[t,l]);return(0,F.jsxs)(g.L,{children:[(0,F.jsxs)(g.L.Controls,{children:[(0,F.jsx)(m.v,{placeholder:S("controls.search-placeholder"),onChange:e=>{i({tabletsSearch:e||void 0},"replaceIn")},value:null!==l&&void 0!==l?l:"",width:238}),(0,F.jsx)(d.T,{label:S("controls.entities-count-label"),loading:r,total:t.length,current:x.length})]}),n?(0,F.jsx)(c.o,{error:n}):null,(0,F.jsx)(g.L.Table,{loading:r,children:(0,F.jsx)(h.l,{columns:f,data:x,settings:w.N3,emptyDataMessage:S("noTabletsData")})})]})}},89954:(e,t,r)=>{r.d(t,{O:()=>S});var a=r(59284),n=r(45720),o=r(16929),l=r(71153),s=r(18677),i=r(84476),d=r(33705),u=r(67884),c=r(99991),p=r(77506),h=r(48372);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),g=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,h.g4)("ydb-shorty-string",{ru:g,en:m});var v=r(60712);const y=(0,p.cn)("kv-shorty-string");function f({value:e="",limit:t=200,strict:r=!1,displayLength:n=!0,render:o=e=>e,onToggle:l,expandLabel:s=b("default_expand_label"),collapseLabel:i=b("default_collapse_label")}){const[d,c]=a.useState(!1),p=(d?i:s)+(n&&!d?b("chars_count",{count:e.length}):""),h=e.length>t+(r?0:p.length),m=d||!h?e:e.slice(0,t-4)+"\xa0...";return(0,v.jsxs)("div",{className:y(),children:[o(m),h?(0,v.jsx)(u.N,{className:y("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),c((e=>!e)),null===l||void 0===l||l()},children:p}):null]})}var x=r(41650);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const N=(0,p.cn)("kv-result-issues"),C=(0,p.cn)("kv-issues"),T=(0,p.cn)("kv-issue");function S({data:e,hideSeverity:t}){const[r,n]=a.useState(!1),o="string"===typeof e||null===e||void 0===e?void 0:e.issues,l=Array.isArray(o)&&o.length>0;return(0,v.jsxs)("div",{className:N(),children:[(0,v.jsxs)("div",{className:N("error-message"),children:[(()=>{let r;if("string"===typeof e)r=e;else{var n,o;const l=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);r=(0,v.jsxs)(a.Fragment,{children:[t?null:(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(_,{severity:l})," "]}),(0,v.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.message})]})}return r})(),l&&(0,v.jsx)(i.$,{view:"normal",onClick:()=>n(!r),children:r?"Hide details":"Show details"})]}),l&&r&&(0,v.jsx)(F,{hideSeverity:t,issues:o})]})}function F({issues:e,hideSeverity:t}){const r=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var r;const a=null!==(r=t.severity)&&void 0!==r?r:10;return Math.min(e,a)}),10);return(0,v.jsx)("div",{className:C(null),children:null===e||void 0===e?void 0:e.map(((e,a)=>(0,v.jsx)(I,{hideSeverity:t,issue:e,expanded:e===r},a)))})}function I({issue:e,hideSeverity:t,level:r=0}){const[n,o]=a.useState(!0),l=j(e.severity),s=e.issues,u=Array.isArray(s)&&s.length>0,c=n?"bottom":"right";return(0,v.jsxs)("div",{className:T({leaf:!u,"has-issues":u}),children:[(0,v.jsxs)("div",{className:T("line"),children:[u&&(0,v.jsx)(i.$,{view:"flat-secondary",onClick:()=>o(!n),className:T("arrow-toggle"),children:(0,v.jsx)(d.I,{direction:c,size:16})}),t?null:(0,v.jsx)(_,{severity:l}),(0,v.jsx)(P,{issue:e}),e.issue_code?(0,v.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),u&&n&&(0,v.jsx)("div",{className:T("issues"),children:(0,v.jsx)(R,{issues:s,level:r+1,expanded:n})})]})}function P({issue:e}){var t;const r=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,x.kf)(t.row))return"";const{row:r,column:a}=t;return(0,x.kf)(a)?`${r}:${a}`:`line ${r}`}(e),a=window.ydbEditor,n=()=>(0,v.jsxs)("span",{className:T("message"),children:[r&&(0,v.jsx)("span",{className:T("place-text"),title:"Position",children:r}),(0,v.jsx)("div",{className:T("message-text"),children:(0,v.jsx)(f,{value:e.message,expandLabel:"Show full message"})})]}),{row:o,column:l}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,x.kf)(o)&&a))return n();return(0,v.jsx)(u.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:o,column:null!==l&&void 0!==l?l:0};a.setPosition(e),a.revealPositionInCenterIfOutsideViewport(e),a.focus()},view:"primary",children:n()})}function R(e){const{issues:t,level:r,expanded:a}=e;return(0,v.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,v.jsx)(I,{issue:e,level:r,expanded:a},t)))})}const A={S_INFO:n.A,S_WARNING:o.A,S_ERROR:l.A,S_FATAL:s.A},B=(0,p.cn)("yql-issue-severity");function _({severity:e}){const t=e.slice(2).toLowerCase();return(0,v.jsxs)("span",{className:B({severity:t}),children:[(0,v.jsx)(c.I,{className:B("icon"),data:A[e]}),(0,v.jsx)("span",{className:B("title"),children:t})]})}},95963:(e,t,r)=>{r.d(t,{v:()=>a.v});var a=r(41775)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47472.10032073.chunk.js b/ydb/core/viewer/monitoring/static/js/47472.10032073.chunk.js new file mode 100644 index 0000000000..04fd2ec4c2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47472.10032073.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47472],{47472:(a,e,b)=>{b.d(e,{default:()=>l});var d=b(98265);const l=b.n(d)()},98265:a=>{function e(a){!function(a){a.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}(a)}a.exports=e,e.displayName="llvm",e.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47512.39fd7220.chunk.js b/ydb/core/viewer/monitoring/static/js/47512.39fd7220.chunk.js new file mode 100644 index 0000000000..11d98fdc2b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47512.39fd7220.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47512],{14188:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Ws});var t=n(59284),l=n(89169),r=n(23871),a=n(61750),o=n(10755),i=n(67087),d=n(90053),c=n(10508),u=n(44294),v=n(92459),h=n(67028),m=n(67157),p=n(40174),g=n(77506),j=n(90182),x=n(7117),N=n(99936),f=n(88616),b=n(93381),y=n(64470),C=n(4557),k=n(84476),w=n(99991),T=n(40569),_=n(28539),S=n(44508),E=n(78524),V=n(48295),O=n(9252),D=n(17594),L=n(95963),A=n(89073),M=n(23900),z=n(87184),I=n(54309),G=n(12888),P=n(25196),R=n(48372);const $=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","field_logs-link":"Logs","context_unknown":"unknown database"}'),B=(0,R.g4)("ydb-tenant-name-wrapper",{en:$});var U=n(60712);function F({tenant:e,additionalTenantsProps:s}){var n,t;const l=(0,G.X)(),r=((e,s)=>{var n,t;if("function"!==typeof(null===s||void 0===s?void 0:s.prepareTenantBackend))return;let l=null!==(n=e.MonitoringEndpoint)&&void 0!==n?n:e.backend;const r=null!==(t=e.NodeIds)&&void 0!==t?t:e.sharedNodeIds;!l&&r&&r.length>0&&(l={NodeId:r[Math.floor(Math.random()*r.length)]});return s.prepareTenantBackend(l)})(e,s),a=Boolean(r),o=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,e.Name,e.Type),i=null===s||void 0===s||null===(t=s.getLogsLink)||void 0===t?void 0:t.call(s,e.Name),d=(o||i)&&l?(0,U.jsx)(M.u,{responsive:!0,children:(0,U.jsx)(M.u.Item,{name:B("field_links"),children:(0,U.jsxs)(z.s,{gap:2,wrap:"wrap",children:[o&&(0,U.jsx)(P.K,{title:B("field_monitoring-link"),url:o}),i&&(0,U.jsx)(P.K,{title:B("field_logs-link"),url:i})]})})}):null;return(0,U.jsx)(c.c,{externalLink:a,name:e.Name||B("context_unknown"),withLeftTrim:!0,status:e.Overall,infoPopoverContent:d,hasClipboardButton:!0,path:(0,I.YL)({database:e.Name,backend:r})})}var W=n(88610),Z=n(53850),q=n(23536),H=n.n(q),Q=n(54090),Y=n(76086),K=n(56674);const J=(0,Z.Mz)((e=>e),(e=>K.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),X=(0,Z.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,W.CN)(e,Y.Xm)),((e,s,n)=>{var t;const l=null!==(t=s(e).data)&&void 0!==t?t:[];return!n&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),ee=e=>e.tenants.searchValue,se=(0,Z.Mz)([X,W.yV,ee],((e,s,n)=>{let t=((e,s)=>s===W.s$.ALL?e:e.filter((e=>e.Overall&&e.Overall!==Q.m.Green)))(e,s);return t=((e,s)=>e.filter((e=>{const n=new RegExp(H()(s),"i");return n.test(e.Name||"")||n.test(e.controlPlaneName)})))(t,n),t})),ne={};const te=new Proxy(ne,{set:()=>{throw new Error("Use configureUIFactory(...) method instead of direct modifications")}});var le=n(56839),re=n(28232);const ae=JSON.parse('{"create-database":"Create database","remove":"Remove"}'),oe=(0,R.g4)("ydb-tenants-table",{en:ae}),ie=(0,g.cn)("tenants"),de=({additionalTenantsProps:e})=>{const s=(0,j.YQ)(),n=(0,re.H)(),[l]=(0,j.Nt)(),{currentData:r,isFetching:a,error:o}=K.GJ.useGetTenantsInfoQuery({clusterName:n},{pollingInterval:l}),i=a&&void 0===r,d=(0,h.sH)()&&void 0!==te.onCreateDB,c=(0,h.TW)()&&void 0!==te.onDeleteDB,u=(0,j.N4)((e=>X(e,n))),v=(0,j.N4)(ee),m=(0,j.N4)((e=>se(e,n))),p=(0,j.N4)(W.yV),g=e=>{s((0,W.$u)(e))},x=e=>{s((0,K.gB)(e))};return(0,U.jsx)("div",{className:ie("table-wrapper"),children:(0,U.jsxs)(A.L,{children:[(0,U.jsx)(A.L.Controls,{className:ie("controls"),children:(0,U.jsxs)(t.Fragment,{children:[(0,U.jsx)(L.v,{value:v,onChange:x,placeholder:"Database name",className:ie("search")}),(0,U.jsx)(O.k,{value:p,onChange:g}),(0,U.jsx)(_.T,{total:u.length,current:(null===m||void 0===m?void 0:m.length)||0,label:"Databases",loading:i}),d&&n?(0,U.jsxs)(k.$,{view:"action",onClick:()=>{var e;return null===(e=te.onCreateDB)||void 0===e?void 0:e.call(te,{clusterName:n})},className:ie("create-database"),children:[(0,U.jsx)(w.I,{data:b.A}),oe("create-database")]}):null]})}),o?(0,U.jsx)(S.o,{error:o}):null,(0,U.jsx)(A.L.Table,{loading:i,children:r?(()=>{const s=[{name:"Name",header:"Database",render:({row:s})=>(0,U.jsx)(F,{tenant:s,additionalTenantsProps:e}),width:440,sortable:!0,defaultOrder:C.Ay.DESCENDING},{name:"controlPlaneName",header:"Name",render:({row:e})=>e.controlPlaneName,width:200,sortable:!0,defaultOrder:C.Ay.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:({row:e})=>"Serverless"!==e.Type?e.Type:(0,U.jsxs)("div",{className:ie("type"),children:[(0,U.jsx)("span",{className:ie("type-value"),children:e.Type}),(0,U.jsx)(k.$,{className:ie("type-button"),onClick:()=>x(e.sharedTenantName||""),children:"Show shared"})]})},{name:"State",width:90,render:({row:e})=>e.State?e.State.toLowerCase():"\u2014",customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:({row:e})=>e.cpu&&e.cpu>1e4?(0,le.iM)(e.cpu):"\u2014",align:C.Ay.RIGHT,defaultOrder:C.Ay.DESCENDING},{name:"memory",header:"Memory",width:120,render:({row:e})=>e.memory?(0,le.vX)(e.memory):"\u2014",align:C.Ay.RIGHT,defaultOrder:C.Ay.DESCENDING},{name:"storage",header:"Storage",width:120,render:({row:e})=>e.storage?(0,le.vX)(e.storage):"\u2014",align:C.Ay.RIGHT,defaultOrder:C.Ay.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:({row:e})=>e.nodesCount?(0,le.ZV)(e.nodesCount):"\u2014",align:C.Ay.RIGHT,defaultOrder:C.Ay.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:({row:e})=>e.groupsCount?(0,le.ZV)(e.groupsCount):"\u2014",align:C.Ay.RIGHT,defaultOrder:C.Ay.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:({PoolStats:e=[]})=>e.reduce(((e,s)=>e+(s.Usage||0)),0),defaultOrder:C.Ay.DESCENDING,align:C.Ay.LEFT,render:({row:e})=>(0,U.jsx)(V._,{pools:e.PoolStats})}];return c&&s.push({name:"actions",header:"",width:40,resizeable:!1,align:C.Ay.CENTER,render:({row:e})=>{var s;const t=null===(s=e.UserAttributes)||void 0===s?void 0:s.database_id,l=e.Name;let r=[];return n&&l&&t&&(r=[{text:oe("remove"),iconStart:(0,U.jsx)(y.A,{}),action:()=>{var e;null===(e=te.onDeleteDB)||void 0===e||e.call(te,{clusterName:n,databaseId:t,databaseName:l})},className:ie("remove-db")}]),r.length?(0,U.jsx)(T.r,{defaultSwitcherProps:{view:"flat",size:"s",pin:"brick-brick"},items:r}):null}}),0===m.length&&p!==W.s$.ALL?(0,U.jsx)(E.v,{name:"thumbsUp",width:"200"}):(0,U.jsx)(D.l,{columnsWidthLSKey:"databasesTableColumnsWidth",data:m,columns:s,settings:Y.N3,emptyDataMessage:"No such tenants"})})():null})]})})};var ce=n(44433),ue=n(74321),ve=n(98167),he=n(15298),me=n(18143);const pe=(0,g.cn)("ydb-cluster-versions-bar"),ge=({versionsValues:e=[],size:s="s",progressClassName:n})=>(0,U.jsxs)("div",{className:pe(),children:[(0,U.jsx)(me.k,{value:100,stack:e,size:s,className:n}),(0,U.jsx)("div",{className:pe("versions"),children:e.map(((s,n)=>(0,U.jsx)("div",{className:pe("version-title"),style:{color:s.color},title:s.version,children:`${s.version}${n===e.length-1?"":","}`},s.version)))})]});var je=n(63126),xe=n(78762),Ne=n(88655);function fe(e){return[(0,xe._E)(),(0,xe.Nh)(e),(0,xe.jl)(),(0,xe.pH)(),(0,xe.fr)(),(0,xe.ID)()]}const be=({nodes:e})=>{const s=(0,Ne.E)(),n=fe({getNodeRef:null===s||void 0===s?void 0:s.getNodeRef});return(0,U.jsx)(D.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:n,settings:Y.N3})};var ye=n(96873);const Ce=(0,g.cn)("ydb-versions-nodes-tree-title"),ke=({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>{let r;return r=n?n.reduce(((e,s)=>s.nodes?e+s.nodes.length:e),0):s?s.length:0,(0,U.jsxs)("div",{className:Ce("overview"),children:[(0,U.jsxs)("div",{className:Ce("overview-container"),children:[t?(0,U.jsx)("div",{className:Ce("version-color"),style:{background:t}}):null,e?(0,U.jsxs)("span",{className:Ce("overview-title"),children:[e,(0,U.jsx)(ye.b,{text:e,size:"s",className:Ce("clipboard-button"),view:"normal"})]}):null]}),(0,U.jsxs)("div",{className:Ce("overview-info"),children:[(0,U.jsxs)("div",{children:[(0,U.jsx)("span",{className:Ce("info-value"),children:r}),(0,U.jsx)("span",{className:Ce("info-label",{margin:"left"}),children:"Nodes"})]}),l?(0,U.jsxs)("div",{className:Ce("version-progress"),children:[(0,U.jsx)("span",{className:Ce("info-label",{margin:"right"}),children:"Versions"}),(0,U.jsx)(me.k,{size:"s",value:100,stack:l})]}):null]})]})},we=(0,g.cn)("ydb-versions-grouped-node-tree"),Te=({title:e,nodes:s,items:n,expanded:l=!1,versionColor:r,versionsValues:a,level:o=0})=>{const[i,d]=t.useState(!1);t.useEffect((()=>{d(l)}),[l]);const c=(0,U.jsx)(ke,{title:e,nodes:s,items:n,versionColor:r,versionsValues:a}),u=()=>{d((e=>!e))};return n?(0,U.jsx)("div",{className:we({"first-level":0===o}),children:(0,U.jsx)(je.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:n.map(((e,s)=>(0,U.jsx)(Te,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:o+1},s)))},e)}):(0,U.jsx)("div",{className:we({"first-level":0===o}),children:(0,U.jsx)(je.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:(0,U.jsx)("div",{className:we("dt-wrapper"),children:(0,U.jsx)(be,{nodes:s||[]})})},e)})};var _e=n(78018),Se=n.n(_e),Ee=n(38596);const Ve=.5,Oe=(e=[],s)=>{const n=e.reduce(((e,s)=>(s.Version&&(e[s.Version]?e[s.Version]=e[s.Version]+1:e[s.Version]=1),e)),{});return Le(Object.keys(n).map((t=>{const l=n[t]/e.length*100;return{title:t,version:t,color:null===s||void 0===s?void 0:s.get((0,Ee.U)(t)),value:l<Ve?Ve:l}})))};function De(e,s,n){const t=null!==n&&void 0!==n?n:e.reduce(((e,s)=>e+s.count),0);return Le(e.map((e=>{const n=e.count/t*100;return{title:e.name,version:e.name,color:null===s||void 0===s?void 0:s.get(e.name),value:n<Ve?Ve:n}})))}function Le(e){let s=e[0].value,n=0,t=0;e.forEach(((e,l)=>{t+=e.value,e.value>s&&(s=e.value,n=l)}));const l=[...e];return l[n]={...e[n],value:s+100-t},l}let Ae=function(e){return e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage",e}({});const Me=(e,s)=>{var n;return(null===(n=e.title)||void 0===n?void 0:n.localeCompare(s.title||""))||-1},ze=(e,s,n)=>{if(e&&e.length){if(n===Ae.VERSION){const n=Se()(e,"Version");return Object.keys(n).map((e=>{const t=n[e].filter((({Tenants:e})=>Boolean(e))),l=Se()(t,"Tenants"),r=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(Me);return r.length?{title:e,items:r,versionColor:null===s||void 0===s?void 0:s.get((0,Ee.U)(e))}:null})).filter((e=>Boolean(e)))}{const n=e.filter((({Tenants:e})=>Boolean(e))),t=Se()(n,"Tenants");return Object.keys(t).map((e=>{const n=Oe(t[e],s),l=Se()(t[e],"Version"),r=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ee.U)(e))})));return r.length?{title:e,items:r,versionsValues:n}:null})).filter((e=>Boolean(e))).sort(Me)}}},Ie=(e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e})=>null===e||void 0===e?void 0:e.includes("Storage"))),t=Se()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ee.U)(e))})))},Ge=(e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e,Version:s})=>!e&&s)),t=Se()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ee.U)(e))})))},Pe=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Re=(0,R.g4)("ydb-versions",{en:Pe});var $e=n(44992),Be=n(39567),Ue=n(98730),Fe=n(40537),We=n(66592);const Ze=({cluster:e,versionToColor:s,clusterLoading:n})=>{const{currentData:l}=he.s.useGetNodesQuery((0,Ue.L)(e)||n?$e.hT:{tablets:!1,fieldsRequired:["SystemState","SubDomainKey"],group:"Version"});return t.useMemo((()=>{if((0,Ue.L)(e)&&e.MapVersions){return De(Object.entries(e.MapVersions).map((([e,s])=>({name:e,count:s}))),s,e.NodesTotal)}return l?Array.isArray(l.NodeGroups)?De(l.NodeGroups,s,null===e||void 0===e?void 0:e.NodesTotal):Oe(l.Nodes,s):[]}),[l,s,e])};function qe(e){const s=function(){const[e]=(0,i.useQueryParam)("clusterName",i.StringParam),s=(0,j.N4)((e=>e.singleClusterMode)),{data:n}=Be.ub.useGetClustersListQuery(void 0,{skip:s});return t.useMemo((()=>{if(s)return;const t=(n||[]).find((s=>s.name===e)),l=(null===t||void 0===t?void 0:t.versions)||[];return()=>(0,Fe.Vm)((0,Fe.HD)(l))}),[s,n,e])}();return t.useMemo((()=>s?s():(0,We._n)(null===e||void 0===e?void 0:e.Versions)),[null===e||void 0===e?void 0:e.Versions,s])}const He=(0,g.cn)("ydb-versions");function Qe({cluster:e,loading:s}){const[n]=(0,j.Nt)(),{currentData:t,isLoading:l}=he.s.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState","SubDomainKey"]},{pollingInterval:n}),r=qe(),a=Ze({cluster:e,versionToColor:r,clusterLoading:s});return(0,U.jsx)(ve.r,{loading:s||l,children:(0,U.jsx)(Ye,{versionsValues:a,nodes:null===t||void 0===t?void 0:t.Nodes,versionToColor:r})})}function Ye({versionsValues:e,nodes:s,versionToColor:n}){const[l,r]=t.useState(Ae.VERSION),[a,o]=t.useState(!1),i=e=>{r(e)},d=ze(s,n,l),c=Ie(s,n),u=Ge(s,n),v=null!==c&&void 0!==c&&c.length?(0,U.jsxs)(t.Fragment,{children:[(0,U.jsx)("h4",{children:Re("title_storage")}),c.map((({title:e,nodes:s,items:n,versionColor:t})=>(0,U.jsx)(Te,{title:e,nodes:s,items:n,versionColor:t},`storage-nodes-${e}`)))]}):null,h=null!==d&&void 0!==d&&d.length?(0,U.jsxs)(t.Fragment,{children:[(0,U.jsx)("h4",{children:Re("title_database")}),(0,U.jsxs)("div",{className:He("controls"),children:[(0,U.jsxs)("div",{className:He("group"),children:[(0,U.jsx)("span",{className:He("label"),children:"Group by:"}),(0,U.jsxs)(ce.a,{value:l,onUpdate:i,children:[(0,U.jsx)(ce.a.Option,{value:Ae.TENANT,children:Ae.TENANT}),(0,U.jsx)(ce.a.Option,{value:Ae.VERSION,children:Ae.VERSION})]})]}),(0,U.jsx)(ue.S,{className:He("checkbox"),onChange:()=>o((e=>!e)),checked:a,children:"All expanded"})]}),d.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,U.jsx)(Te,{title:e,nodes:s,items:n,expanded:a,versionColor:t,versionsValues:l},`tenant-nodes-${e}`)))]}):null,m=null!==u&&void 0!==u&&u.length?(0,U.jsxs)(t.Fragment,{children:[(0,U.jsx)("h4",{children:Re("title_other")}),u.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,U.jsx)(Te,{title:e,nodes:s,items:n,versionColor:t,versionsValues:l},`other-nodes-${e}`)))]}):null,p=(0,U.jsxs)(t.Fragment,{children:[(0,U.jsx)("h4",{children:Re("title_overall")}),(0,U.jsx)("div",{className:He("overall-wrapper"),children:(0,U.jsx)(ge,{progressClassName:He("overall-progress"),versionsValues:e.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,U.jsxs)("div",{className:He(),children:[p,v,h,m]})}var Ke=n(98089);const Je=(0,g.cn)("tag"),Xe=({text:e,type:s})=>(0,U.jsx)("div",{className:Je({type:s}),children:e}),es=({tags:e,tagsType:s,className:n="",gap:t=1})=>(0,U.jsx)(z.s,{className:n,gap:t,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,U.jsx)(Xe,{text:e,type:s},n)))});var ss=n(7435);const ns=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","link_cores":"Coredumps","link_logging":"Logging","link_slo-logs":"SLO Logs","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","title_info":"Info","title_links":"Links","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),ts=(0,R.g4)("ydb-cluster",{en:ns});var ls=n(2102);const rs=(0,g.cn)("ydb-doughnut-metrics");function as({status:e,fillWidth:s,children:n,className:t}){let l="var(--g-color-line-generic-solid)",r=3.6*s-90;s>50&&(l="var(--doughnut-color)",r=3.6*s+90);const a=r;return(0,U.jsx)("div",{className:rs(null,t),children:(0,U.jsx)("div",{style:{backgroundImage:`linear-gradient(${a}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:rs("doughnut",{status:e}),children:(0,U.jsx)("div",{className:rs("text-wrapper"),children:n})})})}as.Legend=function({children:e,variant:s="subheader-3"}){return(0,U.jsx)(Ke.E,{variant:s,color:"secondary",className:rs("legend"),children:e})},as.Value=function({children:e,variant:s="subheader-2"}){return(0,U.jsx)(Ke.E,{variant:s,color:"secondary",className:rs("value"),children:e})};var os=n(70043);const is=(0,g.cn)("ydb-cluster-dashboard");function ds({children:e,title:s,size:n,className:t}){return(0,U.jsxs)(ls.A,{className:is("card",{size:n},t),size:n,interactive:!1,children:[s?(0,U.jsx)(Ke.E,{variant:"subheader-3",className:is("card-title"),children:s}):null,e]})}function cs({title:e,children:s,size:n,...t}){return(0,U.jsx)(ds,{title:e,size:n,children:(0,U.jsx)(as,{...t,className:is("doughnut"),children:s})})}function us(){return(0,U.jsx)(ds,{className:is("skeleton-wrapper"),children:(0,U.jsx)(os.E,{className:is("skeleton")})})}function vs(){return(0,U.jsxs)(t.Fragment,{children:[(0,U.jsx)(us,{}),(0,U.jsx)(us,{}),(0,U.jsx)(us,{})]})}var hs=n(35736),ms=n(57439),ps=n(24543),gs=n(46549);const js=(0,g.cn)("ydb-disk-groups-stats"),xs=({stats:e,children:s})=>(0,U.jsx)("div",{className:js(),children:(0,U.jsx)(ps.u,{placement:["right"],pinOnClick:!0,content:(0,U.jsx)(Ns,{stats:e}),children:s})});function Ns({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:l}=e,r=(0,gs.fn)(Math.max(t,l)),a=(0,gs.z3)({value:t,size:r}),o=(0,gs.z3)({value:l,size:r}),i=Math.round(t/(t+l)*100),d=[{name:ts("disk-type"),content:s},{name:ts("erasure"),content:n},{name:ts("allocated"),content:a},{name:ts("available"),content:o},{name:ts("usage"),content:i+"%"}];return(0,U.jsx)(ms.u,{items:d,className:js("popup-content"),responsive:!0})}function fs({value:e,capacity:s,colorizeProgress:n=!0,warningThreshold:t,dangerThreshold:l,inverseColorize:r=!1,legendFormatter:a}){const o=parseFloat(String(e)),i=parseFloat(String(s));let d=o/i*100||0;d=d>100?100:d;const c=d<1?.5:d;return{status:(0,hs.w)({fillWidth:d,warningThreshold:t,dangerThreshold:l,colorizeProgress:n,inverseColorize:r}),percents:(0,le.l9)(d/100),legend:a({value:o,capacity:i}),fill:c}}const bs=["storage","tenant"];const ys=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function Cs({value:e,capacity:s}){let n=[];return n=s<1e4?[(0,le.ZV)(Math.round(e)),(0,le.ZV)(Math.round(s))]:(0,le.Nd)(e,s,void 0,"",!0),`${n[0]} / ${n[1]}\n${ts("context_cores")}`}function ks({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=fs({value:e,capacity:s,legendFormatter:Cs,...n});return(0,U.jsxs)(cs,{status:t,fillWidth:a,title:ts("title_cpu"),children:[(0,U.jsx)(as.Legend,{children:r}),(0,U.jsx)(as.Value,{children:l})]})}function ws({value:e,capacity:s}){const n=(0,le.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function Ts({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=fs({value:e,capacity:s,legendFormatter:ws,...n});return(0,U.jsxs)(cs,{status:t,fillWidth:a,title:ts("title_memory"),children:[(0,U.jsx)(as.Legend,{children:r}),(0,U.jsx)(as.Value,{children:l})]})}function _s({value:e,capacity:s}){const n=(0,le.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function Ss({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=fs({value:e,capacity:s,legendFormatter:_s,...n});return(0,U.jsxs)(cs,{status:t,fillWidth:a,title:ts("title_storage"),children:[(0,U.jsx)(as.Legend,{children:r}),(0,U.jsx)(as.Value,{children:l})]})}function Es({value:e}){return(0,ss.f8)(e)?(0,U.jsx)(Ke.E,{variant:"subheader-3",color:"secondary",children:(0,le.ZV)(e)}):null}function Vs({cluster:e,...s}){return s.error?(0,U.jsx)(S.o,{error:s.error,className:is("error")}):(0,U.jsx)("div",{className:is(),children:(0,U.jsxs)(z.s,{gap:4,wrap:!0,children:[(0,U.jsx)(z.s,{gap:4,wrap:"nowrap",children:(0,U.jsx)(Os,{...s,cluster:e})}),(0,U.jsx)("div",{className:is("cards-container"),children:(0,U.jsx)(Ds,{...s,cluster:e})})]})})}function Os({cluster:e,loading:s}){if(s)return(0,U.jsx)(vs,{});const n=[];if((0,Ue.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:l}=e,r=null!==l&&void 0!==l?l:t;(0,ss.f8)(s)&&(0,ss.f8)(r)&&n.push((0,U.jsx)(ks,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:l}=e;(0,ss.f8)(t)&&(0,ss.f8)(l)&&n.push((0,U.jsx)(Ss,{value:l,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:a}=e;return(0,ss.f8)(r)&&(0,ss.f8)(a)&&n.push((0,U.jsx)(Ts,{value:a,capacity:r},"memory")),n}function Ds({cluster:e,groupStats:s={},loading:n}){if(n)return null;const l=[],r=function(e){const s=[];if((0,Ue.L)(e)&&e.MapNodeRoles)for(const[n,l]of Object.entries(e.MapNodeRoles))bs.includes(n.toLowerCase())&&s.push((0,U.jsxs)(t.Fragment,{children:[n,": ",(0,le.ZV)(l)]},n));return s}(e);if(l.push((0,U.jsx)(ds,{size:"l",title:ts("label_nodes"),children:(0,U.jsxs)(z.s,{gap:2,direction:"column",children:[(0,U.jsx)(Es,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,U.jsx)(es,{tags:r,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const s=[];return Object.entries(e).forEach((([e,n])=>{Object.values(n).forEach((n=>{s.push((0,U.jsxs)(xs,{stats:n,children:[e,": ",(0,le.ZV)(n.createdGroups)," /"," ",(0,le.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=ys(s);l.push((0,U.jsx)(ds,{size:"l",title:ts("label_storage-groups"),children:(0,U.jsxs)(z.s,{gap:2,direction:"column",children:[(0,U.jsx)(Es,{value:n}),(0,U.jsx)(es,{tags:e,gap:3})]})},"groups"))}const a=function(e){var s;return(0,Ue.L)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(s=e.DataCenters)||void 0===s?void 0:s.filter(Boolean)}(e);return null!==a&&void 0!==a&&a.length&&l.push((0,U.jsx)(ds,{size:"l",title:ts("label_hosts"),children:(0,U.jsxs)(z.s,{gap:2,direction:"column",children:[(0,U.jsx)(Es,{value:null===e||void 0===e?void 0:e.Hosts}),(0,U.jsx)(es,{tags:a,gap:3})]})},"hosts")),e.Tenants&&l.push((0,U.jsx)(ds,{size:"l",title:ts("label_databases"),children:(0,U.jsx)(Es,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),l}var Ls=n(42655);const As=(0,g.cn)("cluster-info");var Ms=n(41650);function zs(){const{cores:e,logging:s}=(0,m.Zd)();return t.useMemo((()=>{const n=[],t=function(e){try{const s=(0,Ms.qF)(e);if(s&&"object"===typeof s&&"url"in s&&"string"===typeof s.url)return s.url}catch{}}(e),{logsUrl:l,sloLogsUrl:r}=function(e){try{const s=(0,Ms.qF)(e);if(s&&"object"===typeof s){return{logsUrl:"url"in s&&"string"===typeof s.url?s.url:void 0,sloLogsUrl:"slo_logs_url"in s&&"string"===typeof s.slo_logs_url?s.slo_logs_url:void 0}}}catch{}return{}}(s);return t&&n.push({title:ts("link_cores"),url:t}),l&&n.push({title:ts("link_logging"),url:l}),r&&n.push({title:ts("link_slo-logs"),url:r}),n}),[e,s])}var Is=n(15132);const Gs=(0,g.cn)("ydb-nodes-state");function Ps({state:e,children:s}){return(0,U.jsx)("div",{className:Gs({[e.toLowerCase()]:!0}),children:s})}const Rs={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},$s=(e,s)=>{var n;const l=[];if((0,Ue.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>Rs[s[0]]-Rs[e[0]]));const n=s.map((([e,s])=>(0,U.jsx)(Ps,{state:e,children:(0,le.ZV)(s)},e)));l.push({label:ts("label_nodes-state"),value:(0,U.jsx)(z.s,{gap:2,children:n})})}const r=(e=>{if((0,Ue.L)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((([e,s])=>(0,U.jsxs)(t.Fragment,{children:[e,": ",(0,le.ZV)(s)]},e)))})(e);return null!==r&&void 0!==r&&r.length&&l.push({label:ts("label_dc"),value:(0,U.jsx)(es,{tags:r,gap:2,className:As("dc")})}),l.push({label:ts("label_load"),value:(0,U.jsx)(Is.O,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null!==(n=null===e||void 0===e?void 0:e.RealNumberOfCpus)&&void 0!==n?n:null===e||void 0===e?void 0:e.NumberOfCpus})}),l.push(...s),l},Bs=({cluster:e,loading:s,error:n,additionalClusterProps:t={}})=>{const{info:l=[],links:r=[]}=t,a=zs(),o=r.concat(a),i=$s(null!==e&&void 0!==e?e:{},l);return(0,U.jsxs)("div",{className:As(),children:[n?(0,U.jsx)(S.o,{error:n,className:As("error")}):null,s?(0,U.jsx)(Ls.y,{className:As("skeleton"),rows:4}):(0,U.jsxs)(z.s,{gap:10,wrap:"nowrap",children:[n&&!e?null:(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:As("section-title"),children:ts("title_info")}),(0,U.jsx)(M.u,{nameMaxWidth:200,children:i.map((({label:e,value:s})=>(0,U.jsx)(M.u.Item,{name:e,children:s},e)))})]}),o.length?(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:As("section-title"),children:ts("title_links")}),(0,U.jsx)(z.s,{direction:"column",gap:4,children:o.map((({title:e,url:s})=>(0,U.jsx)(P.K,{title:e,url:s},e)))})]}):null]})]})};var Us=n(87842);const Fs=(0,g.cn)("ydb-cluster");function Ws({additionalClusterProps:e,additionalTenantsProps:s,additionalNodesProps:n}){const g=t.useRef(null),b=(0,h.fp)(),y=(0,j.YQ)(),C=function(){const e=(0,j.YQ)(),s=(0,j.N4)((e=>e.cluster.defaultClusterTab)),n=(0,o.W5)(v.Ay.cluster),{activeTab:l}=(null===n||void 0===n?void 0:n.params)||{};let r;r=(0,Us.eC)(l)?l:s;return t.useEffect((()=>{r!==s&&e((0,m.Yv)(r))}),[r,s,e]),r}(),[{clusterName:k,backend:w}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),T=(0,j.N4)((e=>(0,m.zR)(e,null!==k&&void 0!==k?k:void 0))),{title:_}=(0,m.Zd)(),S=null!==_&&void 0!==_?_:T,{data:{clusterData:E,groupsStats:V}={},isLoading:O,error:D}=m.Zh.useGetClusterInfoQuery(null!==k&&void 0!==k?k:void 0),L=D&&"object"===typeof D?D:void 0,A=(0,j.N4)((e=>(0,m.ds)(e,null!==k&&void 0!==k?k:void 0)));t.useEffect((()=>{y((0,p.g)("cluster",{}))}),[y]);const M=t.useMemo((()=>Us.bn.find((({id:e})=>e===C))),[C]);return(0,U.jsxs)("div",{className:Fs(),ref:g,children:[(0,U.jsx)(a.mg,{defaultTitle:`${S} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${S} \u2014 YDB Monitoring`,children:M?(0,U.jsx)("title",{children:M.title}):null}),(0,U.jsx)("div",{className:Fs("header"),children:O?(0,U.jsx)(l.E,{className:Fs("title-skeleton")}):(0,U.jsx)(c.c,{size:"m",status:null===E||void 0===E?void 0:E.Overall,name:S,className:Fs("title")})}),(0,U.jsx)("div",{className:Fs("sticky-wrapper"),children:(0,U.jsx)(d.E,{className:Fs("auto-refresh-control")})}),b&&(0,U.jsx)(Vs,{cluster:null!==E&&void 0!==E?E:{},groupStats:V,loading:O,error:L||(null===E||void 0===E?void 0:E.error)}),(0,U.jsx)("div",{className:Fs("tabs-sticky-wrapper"),children:(0,U.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:C,items:Us.bn,wrapTo:({id:e},s)=>{const n=(0,Us.a)(e,{clusterName:k,backend:w});return(0,U.jsx)(u.E,{to:n,onClick:()=>{y((0,m.Yv)(e))},children:s},e)}})}),(0,U.jsxs)(o.dO,{children:[(0,U.jsx)(o.qh,{path:(0,v.a3)((0,Us.a)(Us.Bi.overview)).pathname,children:(0,U.jsx)(Bs,{cluster:E,loading:O,error:L,additionalClusterProps:e})}),(0,U.jsx)(o.qh,{path:(0,v.a3)((0,Us.a)(Us.Bi.tablets)).pathname,children:(0,U.jsx)(f.Q,{loading:O,tablets:A})}),(0,U.jsx)(o.qh,{path:(0,v.a3)((0,Us.a)(Us.Bi.tenants)).pathname,children:(0,U.jsx)(de,{additionalTenantsProps:s})}),(0,U.jsx)(o.qh,{path:(0,v.a3)((0,Us.a)(Us.Bi.nodes)).pathname,children:(0,U.jsx)(x.G,{parentRef:g,additionalNodesProps:n})}),(0,U.jsx)(o.qh,{path:(0,v.a3)((0,Us.a)(Us.Bi.storage)).pathname,children:(0,U.jsx)(N.z,{parentRef:g})}),(0,U.jsx)(o.qh,{path:(0,v.a3)((0,Us.a)(Us.Bi.versions)).pathname,children:(0,U.jsx)(Qe,{cluster:E,loading:O})}),(0,U.jsx)(o.qh,{render:()=>(0,U.jsx)(o.rd,{to:(0,v.a3)((0,Us.a)(C))})})]})]})}},42655:(e,s,n)=>{n.d(s,{y:()=>c});var t=n(59284),l=n(89169),r=n(77506),a=n(66781),o=n(60712);const i=(0,r.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.E,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=({rows:e=8,className:s,delay:n=600})=>{const[r]=(0,a.y)(n);let c=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.E,{className:i("value")})]});return r||(c=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:i("row"),children:c},`skeleton-row-${s}`)))})}},70043:(e,s,n)=>{n.d(s,{E:()=>a});var t=n(89169),l=n(66781),r=n(60712);const a=({delay:e=600,className:s})=>{const[n]=(0,l.y)(e);return n?(0,r.jsx)(t.E,{className:s}):null}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47614.68df3ac9.chunk.js b/ydb/core/viewer/monitoring/static/js/47614.68df3ac9.chunk.js new file mode 100644 index 0000000000..30ef12c9bd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47614.68df3ac9.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[28868,47614],{28868:(e,o,s)=>{"use strict";s.r(o)},47614:(e,o,s)=>{var r={"./editorBaseApi":73848,"./editorBaseApi.js":73848,"./editorSimpleWorker":16545,"./editorSimpleWorker.js":16545,"./editorWorker":10920,"./editorWorker.js":10920,"./editorWorkerHost":80718,"./editorWorkerHost.js":80718,"./findSectionHeaders":56691,"./findSectionHeaders.js":56691,"./getIconClasses":53068,"./getIconClasses.js":53068,"./languageFeatureDebounce":32500,"./languageFeatureDebounce.js":32500,"./languageFeatures":56942,"./languageFeatures.js":56942,"./languageFeaturesService":76007,"./languageFeaturesService.js":76007,"./languageService":17890,"./languageService.js":17890,"./languagesAssociations":99908,"./languagesAssociations.js":99908,"./languagesRegistry":69259,"./languagesRegistry.js":69259,"./markerDecorations":37550,"./markerDecorations.js":37550,"./markerDecorationsService":30707,"./markerDecorationsService.js":30707,"./model":23750,"./model.js":23750,"./modelService":16363,"./modelService.js":16363,"./resolverService":18938,"./resolverService.js":18938,"./semanticTokensDto":98232,"./semanticTokensDto.js":98232,"./semanticTokensProviderStyling":45538,"./semanticTokensProviderStyling.js":45538,"./semanticTokensStyling":74243,"./semanticTokensStyling.js":74243,"./semanticTokensStylingService":27004,"./semanticTokensStylingService.js":27004,"./textModelSync/textModelSync.impl":47443,"./textModelSync/textModelSync.impl.js":47443,"./textModelSync/textModelSync.protocol":28868,"./textModelSync/textModelSync.protocol.js":28868,"./textResourceConfiguration":90360,"./textResourceConfiguration.js":90360,"./treeSitterParserService":44432,"./treeSitterParserService.js":44432,"./treeViewsDnd":36723,"./treeViewsDnd.js":36723,"./treeViewsDndService":29100,"./treeViewsDndService.js":29100,"./unicodeTextModelHighlighter":74855,"./unicodeTextModelHighlighter.js":74855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":73848,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":73848,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":16545,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":16545,"monaco-editor/esm/vs/editor/common/services/editorWorker":10920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":10920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":80718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":80718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":56691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":56691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":53068,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":53068,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":32500,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":32500,"monaco-editor/esm/vs/editor/common/services/languageFeatures":56942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":56942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":76007,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":76007,"monaco-editor/esm/vs/editor/common/services/languageService":17890,"monaco-editor/esm/vs/editor/common/services/languageService.js":17890,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":99908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":99908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":69259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":69259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":37550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":37550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":30707,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":30707,"monaco-editor/esm/vs/editor/common/services/model":23750,"monaco-editor/esm/vs/editor/common/services/model.js":23750,"monaco-editor/esm/vs/editor/common/services/modelService":16363,"monaco-editor/esm/vs/editor/common/services/modelService.js":16363,"monaco-editor/esm/vs/editor/common/services/resolverService":18938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":18938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":98232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":98232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":45538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":45538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":74243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":74243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":27004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":27004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":47443,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":47443,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":28868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":28868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":90360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":90360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":44432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":44432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":36723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":36723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":29100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":29100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":74855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":74855};function i(e){var o=t(e);return s(o)}function t(e){if(!s.o(r,e)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=t,e.exports=i,i.id=47614}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47660.d58e412b.chunk.js b/ydb/core/viewer/monitoring/static/js/47660.d58e412b.chunk.js new file mode 100644 index 0000000000..f75e15d2f8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47660.d58e412b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47660],{47660:(e,a,t)=>{t.d(a,{default:()=>r});var n=t(92779);const r=t.n(n)()},51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,r,l){if(t.language===n){var i=t.tokenStack=[];t.code=t.code.replace(r,(function(e){if("function"===typeof l&&!l(e))return e;for(var r,o=i.length;-1!==t.code.indexOf(r=a(n,o));)++o;return i[o]=e,r})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var r=0,l=Object.keys(t.tokenStack);!function i(o){for(var s=0;s<o.length&&!(r>=l.length);s++){var p=o[s];if("string"===typeof p||p.content&&"string"===typeof p.content){var u=l[r],c=t.tokenStack[u],d="string"===typeof p?p:p.content,g=a(n,u),b=d.indexOf(g);if(b>-1){++r;var m=d.substring(0,b),f=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),k=d.substring(b+g.length),h=[];m&&h.push.apply(h,i([m])),h.push(f),k&&h.push.apply(h,i([k])),"string"===typeof p?o.splice.apply(o,[s,1].concat(h)):p.content=h}}else p.content&&i(p.content)}return o}(t.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]},92779:(e,a,t)=>{var n=t(51572);function r(e){e.register(n),function(e){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:t,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:t,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",(function(a){var t=!1;e.languages["markup-templating"].buildPlaceholders(a,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,(function(e){return"{/literal}"===e&&(t=!1),!t&&("{literal}"===e&&(t=!0),!0)}))})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"soy")}))}(e)}e.exports=r,r.displayName="soy",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/47692.c0ce8e67.chunk.js b/ydb/core/viewer/monitoring/static/js/47692.c0ce8e67.chunk.js new file mode 100644 index 0000000000..565eb81b0d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47692.c0ce8e67.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 47692.c0ce8e67.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47692],{47692:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/47692.c0ce8e67.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/47692.c0ce8e67.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/47878.706bd425.chunk.js b/ydb/core/viewer/monitoring/static/js/47878.706bd425.chunk.js new file mode 100644 index 0000000000..535d20c34f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/47878.706bd425.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[47878],{47878:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var r={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/48008.f90295f8.chunk.js b/ydb/core/viewer/monitoring/static/js/48008.f90295f8.chunk.js new file mode 100644 index 0000000000..7f6e10ffd1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/48008.f90295f8.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[48008],{48008:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ne",weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),relativeTime:{future:"%s \u092a\u091b\u093f",past:"%s \u0905\u0918\u093f",s:"\u0938\u0947\u0915\u0947\u0928\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u0918\u0928\u094d\u091f\u093e",hh:"%d \u0918\u0928\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},ordinal:function(_){return(""+_).replace(/\d/g,(function(_){return"\u0966\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f"[_]}))},formats:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4847.63c73f0a.chunk.js b/ydb/core/viewer/monitoring/static/js/4847.63c73f0a.chunk.js deleted file mode 100644 index c24c9e2523..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4847.63c73f0a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4847],{34847:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ug-cn",weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekStart:1,weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/48633.41f9d3a3.chunk.js b/ydb/core/viewer/monitoring/static/js/48633.41f9d3a3.chunk.js new file mode 100644 index 0000000000..0962462df4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/48633.41f9d3a3.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[48633],{48633:function(d,e,_){d.exports=function(d){"use strict";function e(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}var _=e(d),a={name:"cy",weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),weekStart:1,weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),ordinal:function(d){return d},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"}};return _.default.locale(a,null,!0),a}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js b/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js deleted file mode 100644 index f57deacb23..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4870.1916a88d.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4870],{84870:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>m,language:()=>b});var r,o,l=t(80781),a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,n,t,r)=>{if(n&&"object"===typeof n||"function"===typeof n)for(let o of c(n))u.call(e,o)||o===t||a(e,o,{get:()=>n[o],enumerable:!(r=i(n,o))||r.enumerable});return e},s={};d(s,r=l,"default"),o&&d(o,r,"default");var m={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:s.languages.IndentAction.Indent}}]},b={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js b/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js deleted file mode 100644 index 4325f5dee5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4872.bbf7ab34.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4872],{13847:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",w="[object Array]",b="[object Boolean]",m="[object Date]",x="[object Error]",A="[object Function]",j="[object GeneratorFunction]",k="[object Map]",E="[object Number]",R="[object Object]",O="[object Promise]",I="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",L="[object WeakMap]",W="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",U="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",P="[object Uint32Array]",V=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,wn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ln="["+kn+"]",Wn="["+Sn+"]",Bn="["+En+"]",Tn="\\d+",Un="["+Rn+"]",Mn="["+On+"]",$n="[^"+kn+Sn+Tn+Rn+On+In+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^"+kn+"]",Fn="(?:\\ud83c[\\udde6-\\uddff]){2}",qn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+In+"]",Vn="\\u200d",Zn="(?:"+Mn+"|"+$n+")",Kn="(?:"+Pn+"|"+$n+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Bn+"|"+Dn+")"+"?",Yn="["+zn+"]?",Qn=Yn+Jn+("(?:"+Vn+"(?:"+[Nn,Fn,qn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Un,Fn,qn].join("|")+")"+Qn,nt="(?:"+[Nn+Bn+"?",Bn,Fn,qn,Ln].join("|")+")",tt=RegExp(Cn,"g"),rt=RegExp(Bn,"g"),et=RegExp(Dn+"(?="+Dn+")|"+nt+Qn,"g"),ut=RegExp([Pn+"?"+Mn+"+"+Gn+"(?="+[Wn,Pn,"$"].join("|")+")",Kn+"+"+Hn+"(?="+[Wn,Pn+Zn,"$"].join("|")+")",Pn+"?"+Zn+"+"+Gn,Pn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+Vn+kn+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[T]=ct[U]=ct[M]=ct[$]=ct[D]=ct[N]=ct[F]=ct[q]=ct[P]=!0,ct[d]=ct[w]=ct[W]=ct[b]=ct[B]=ct[m]=ct[x]=ct[A]=ct[k]=ct[E]=ct[R]=ct[I]=ct[z]=ct[S]=ct[L]=!1;var lt={};lt[d]=lt[w]=lt[W]=lt[B]=lt[b]=lt[m]=lt[T]=lt[U]=lt[M]=lt[$]=lt[D]=lt[k]=lt[E]=lt[R]=lt[I]=lt[z]=lt[S]=lt[C]=lt[N]=lt[F]=lt[q]=lt[P]=!0,lt[x]=lt[A]=lt[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,wt=dt&&dt.exports===yt,bt=wt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,At=mt&&mt.isDate,jt=mt&&mt.isMap,kt=mt&&mt.isRegExp,Et=mt&&mt.isSet,Rt=mt&&mt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function zt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function St(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function Ct(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function Lt(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function Wt(n,t){return!!(null==n?0:n.length)&&Pt(n,t,0)>-1}function Bt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function Tt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function Ut(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Mt(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function $t(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function Dt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var Nt=Gt("length");function Ft(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function qt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function Pt(n,t,r){return t===t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):qt(n,Zt,r)}function Vt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function Zt(n){return n!==n}function Kt(n,t){var r=null==n?0:n.length;return r?Yt(n,t)/r:_}function Gt(n){return function(t){return null==t?u:t[n]}}function Ht(n){return function(t){return null==n?u:n[t]}}function Jt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Yt(n,t){for(var r,e=-1,i=n.length;++e<i;){var o=t(n[e]);o!==u&&(r=r===u?o:r+o)}return r}function Qt(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Xt(n){return n?n.slice(0,gr(n)+1).replace(fn,""):n}function nr(n){return function(t){return n(t)}}function tr(n,t){return Tt(t,(function(t){return n[t]}))}function rr(n,t){return n.has(t)}function er(n,t){for(var r=-1,e=n.length;++r<e&&Pt(t,n[r],0)>-1;);return r}function ur(n,t){for(var r=n.length;r--&&Pt(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==f||(n[r]=f,i[u++]=r)}return i}function hr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function pr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function vr(n){return ar(n)?function(n){var t=et.lastIndex=0;for(;et.test(n);)++t;return t}(n):Nt(n)}function _r(n){return ar(n)?function(n){return n.match(et)||[]}(n):function(n){return n.split("")}(n)}function gr(n){for(var t=n.length;t--&&an.test(n.charAt(t)););return t}var yr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,an=t.Error,kn=t.Function,En=t.Math,Rn=t.Object,On=t.RegExp,In=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Ln=Rn.prototype,Wn=t["__core-js_shared__"],Bn=Cn.toString,Tn=Ln.hasOwnProperty,Un=0,Mn=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),$n=Ln.toString,Dn=Bn.call(Rn),Nn=gt._,Fn=On("^"+Bn.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=wt?t.Buffer:u,Pn=t.Symbol,Vn=t.Uint8Array,Zn=qn?qn.allocUnsafe:u,Kn=lr(Rn.getPrototypeOf,Rn),Gn=Rn.create,Hn=Ln.propertyIsEnumerable,Jn=Sn.splice,Yn=Pn?Pn.isConcatSpreadable:u,Qn=Pn?Pn.iterator:u,Xn=Pn?Pn.toStringTag:u,nt=function(){try{var n=si(Rn,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=En.ceil,_t=En.floor,yt=Rn.getOwnPropertySymbols,dt=qn?qn.isBuffer:u,bt=t.isFinite,mt=Sn.join,Nt=lr(Rn.keys,Rn),Ht=En.max,wr=En.min,br=e.now,mr=t.parseInt,xr=En.random,Ar=Sn.reverse,jr=si(t,"DataView"),kr=si(t,"Map"),Er=si(t,"Promise"),Rr=si(t,"Set"),Or=si(t,"WeakMap"),Ir=si(Rn,"create"),zr=Or&&new Or,Sr={},Cr=Ui(jr),Lr=Ui(kr),Wr=Ui(Er),Br=Ui(Rr),Tr=Ui(Or),Ur=Pn?Pn.prototype:u,Mr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Dr(n){if(tf(n)&&!Po(n)&&!(n instanceof Pr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Mi(n)}return new qr(n)}var Nr=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Fr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Pr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Zr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Kr;++t<r;)this.add(n[t])}function Hr(n){var t=this.__data__=new Zr(n);this.size=t.size}function Jr(n,t){var r=Po(n),e=!r&&qo(n),u=!r&&!e&&Go(n),i=!r&&!e&&!u&&lf(n),o=r||e||u||i,f=o?Qt(n.length,In):[],a=f.length;for(var c in n)!t&&!Tn.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||di(c,a))||f.push(c);return f}function Yr(n){var t=n.length;return t?n[Ge(0,t-1)]:u}function Qr(n,t){return Wi(Iu(n),fe(t,0,n.length))}function Xr(n){return Wi(Iu(n))}function ne(n,t,r){(r!==u&&!Do(n[t],r)||r===u&&!(t in n))&&ie(n,t,r)}function te(n,t,r){var e=n[t];Tn.call(n,t)&&Do(e,r)&&(r!==u||t in n)||ie(n,t,r)}function re(n,t){for(var r=n.length;r--;)if(Do(n[r][0],t))return r;return-1}function ee(n,t,r,e){return he(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ue(n,t){return n&&zu(t,Cf(t),n)}function ie(n,t,r){"__proto__"==t&&nt?nt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function oe(n,t){for(var e=-1,i=t.length,o=r(i),f=null==n;++e<i;)o[e]=f?u:Rf(n,t[e]);return o}function fe(n,t,r){return n===n&&(r!==u&&(n=n<=r?n:r),t!==u&&(n=n>=t?n:t)),n}function ae(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=Po(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return Iu(n,f)}else{var h=vi(n),p=h==A||h==j;if(Go(n))return Au(n,a);if(h==R||h==d||p&&!i){if(f=c||p?{}:gi(n),!a)return c?function(n,t){return zu(n,pi(n),t)}(n,function(n,t){return n&&zu(t,Lf(t),n)}(f,n)):function(n,t){return zu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return ju(n);case b:case m:return new e(+n);case B:return function(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case U:case M:case $:case D:case N:case F:case q:case P:return ku(n,r);case k:return new e;case E:case S:return new e(n);case I:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Mr?Rn(Mr.call(u)):{}}var u}(n,h,a)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ae(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ae(e,t,r,u,n,o))}));var _=s?u:(l?c?ui:ei:c?Lf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ae(e,t,r,u,n,o))})),f}function ce(n,t,r){var e=r.length;if(null==n)return!e;for(n=Rn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new zn(i);return zi((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Tt(t,nr(r))),e?(i=Bt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s===s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Dr.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:Dr}},Dr.prototype=Fr.prototype,Dr.prototype.constructor=Dr,qr.prototype=Nr(Fr.prototype),qr.prototype.constructor=qr,Pr.prototype=Nr(Fr.prototype),Pr.prototype.constructor=Pr,Vr.prototype.clear=function(){this.__data__=Ir?Ir(null):{},this.size=0},Vr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Vr.prototype.get=function(n){var t=this.__data__;if(Ir){var r=t[n];return r===o?u:r}return Tn.call(t,n)?t[n]:u},Vr.prototype.has=function(n){var t=this.__data__;return Ir?t[n]!==u:Tn.call(t,n)},Vr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Ir&&t===u?o:t,this},Zr.prototype.clear=function(){this.__data__=[],this.size=0},Zr.prototype.delete=function(n){var t=this.__data__,r=re(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Zr.prototype.get=function(n){var t=this.__data__,r=re(t,n);return r<0?u:t[r][1]},Zr.prototype.has=function(n){return re(this.__data__,n)>-1},Zr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(kr||Zr),string:new Vr}},Kr.prototype.delete=function(n){var t=ci(this,n).delete(n);return this.size-=t?1:0,t},Kr.prototype.get=function(n){return ci(this,n).get(n)},Kr.prototype.has=function(n){return ci(this,n).has(n)},Kr.prototype.set=function(n,t){var r=ci(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Zr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Zr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Kr(e)}return r.set(n,t),this.size=r.size,this};var he=Lu(be),pe=Lu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e<i;){var o=n[e],f=t(o);if(null!=f&&(a===u?f===f&&!cf(f):r(f,a)))var a=f,c=o}return c}function ge(n,t){var r=[];return he(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function ye(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=yi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ye(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var de=Wu(),we=Wu(!0);function be(n,t){return n&&de(n,t,Cf)}function me(n,t){return n&&we(n,t,Cf)}function xe(n,t){return Lt(t,(function(t){return Yo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&r<e;)n=n[Ti(t[r++])];return r&&r==e?n:u}function je(n,t,r){var e=t(n);return Po(n)?e:Ut(e,r(n))}function ke(n){return null==n?n===u?"[object Undefined]":"[object Null]":Xn&&Xn in Rn(n)?function(n){var t=Tn.call(n,Xn),r=n[Xn];try{n[Xn]=u;var e=!0}catch(o){}var i=$n.call(n);e&&(t?n[Xn]=r:delete n[Xn]);return i}(n):function(n){return $n.call(n)}(n)}function Ee(n,t){return n>t}function Re(n,t){return null!=n&&Tn.call(n,t)}function Oe(n,t){return null!=n&&t in Rn(n)}function Ie(n,t,e){for(var i=e?Bt:Wt,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Gr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p<o&&s.length<l;){var _=h[p],g=t?t(_):_;if(_=e||0!==_?_:0,!(v?rr(v,g):i(s,g,e))){for(a=f;--a;){var y=c[a];if(!(y?rr(y,g):i(n[a],g,e)))continue n}v&&v.push(g),s.push(_)}}return s}function ze(n,t,r){var e=null==(n=Ri(n,t=wu(t,n)))?n:n[Ti(Hi(t))];return null==e?u:Ot(e,n,r)}function Se(n){return tf(n)&&ke(n)==d}function Ce(n,t,r,e,i){return n===t||(null==n||null==t||!tf(n)&&!tf(t)?n!==n&&t!==t:function(n,t,r,e,i,o){var f=Po(n),a=Po(t),c=f?w:vi(n),l=a?w:vi(t),s=(c=c==d?R:c)==R,h=(l=l==d?R:l)==R,p=c==l;if(p&&Go(n)){if(!Go(t))return!1;f=!0,s=!1}if(p&&!s)return o||(o=new Hr),f||lf(n)?ti(n,t,r,e,i,o):function(n,t,r,e,u,i,o){switch(r){case B:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case W:return!(n.byteLength!=t.byteLength||!i(new Vn(n),new Vn(t)));case b:case m:case E:return Do(+n,+t);case x:return n.name==t.name&&n.message==t.message;case I:case S:return n==t+"";case k:var f=cr;case z:var a=1&e;if(f||(f=hr),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ti(f(n),f(t),e,u,i,o);return o.delete(n),l;case C:if(Mr)return Mr.call(n)==Mr.call(t)}return!1}(n,t,c,r,e,i,o);if(!(1&r)){var v=s&&Tn.call(n,"__wrapped__"),_=h&&Tn.call(t,"__wrapped__");if(v||_){var g=v?n.value():n,y=_?t.value():t;return o||(o=new Hr),i(g,y,r,e,o)}}if(!p)return!1;return o||(o=new Hr),function(n,t,r,e,i,o){var f=1&r,a=ei(n),c=a.length,l=ei(t),s=l.length;if(c!=s&&!f)return!1;var h=c;for(;h--;){var p=a[h];if(!(f?p in t:Tn.call(t,p)))return!1}var v=o.get(n),_=o.get(t);if(v&&_)return v==t&&_==n;var g=!0;o.set(n,t),o.set(t,n);var y=f;for(;++h<c;){var d=n[p=a[h]],w=t[p];if(e)var b=f?e(w,d,p,t,n,o):e(d,w,p,n,t,o);if(!(b===u?d===w||i(d,w,r,e,o):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var m=n.constructor,x=t.constructor;m==x||!("constructor"in n)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(n),o.delete(t),g}(n,t,r,e,i,o)}(n,t,r,e,Ce,i))}function Le(n,t,r,e){var i=r.length,o=i,f=!e;if(null==n)return!o;for(n=Rn(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===u&&!(c in n))return!1}else{var h=new Hr;if(e)var p=e(l,s,c,n,t,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function We(n){return!(!nf(n)||(t=n,Mn&&Mn in t))&&(Yo(n)?Fn:wn).test(Ui(n));var t}function Be(n){return"function"==typeof n?n:null==n?ua:"object"==typeof n?Po(n)?Ne(n[0],n[1]):De(n):pa(n)}function Te(n){if(!Ai(n))return Nt(n);var t=[];for(var r in Rn(n))Tn.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Ue(n){if(!nf(n))return function(n){var t=[];if(null!=n)for(var r in Rn(n))t.push(r);return t}(n);var t=Ai(n),r=[];for(var e in n)("constructor"!=e||!t&&Tn.call(n,e))&&r.push(e);return r}function Me(n,t){return n<t}function $e(n,t){var e=-1,u=Zo(n)?r(n.length):[];return he(n,(function(n,r,i){u[++e]=t(n,r,i)})),u}function De(n){var t=li(n);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Ne(n,t){return bi(n)&&ji(t)?ki(Ti(n),t):function(r){var e=Rf(r,n);return e===u&&e===t?Of(r,n):Ce(t,e,3)}}function Fe(n,t,r,e,i){n!==t&&de(t,(function(o,f){if(i||(i=new Hr),nf(o))!function(n,t,r,e,i,o,f){var a=Oi(n,r),c=Oi(t,r),l=f.get(c);if(l)return void ne(n,r,l);var s=o?o(a,c,r+"",n,t,f):u,h=s===u;if(h){var p=Po(c),v=!p&&Go(c),_=!p&&!v&&lf(c);s=c,p||v||_?Po(a)?s=a:Ko(a)?s=Iu(a):v?(h=!1,s=Au(c,!0)):_?(h=!1,s=ku(c,!0)):s=[]:uf(c)||qo(c)?(s=a,qo(a)?s=df(a):nf(a)&&!Yo(a)||(s=gi(c))):h=!1}h&&(f.set(c,s),i(s,c,e,o,f),f.delete(c));ne(n,r,s)}(n,t,f,r,Fe,e,i);else{var a=e?e(Oi(n,f),o,f+"",n,t,i):u;a===u&&(a=o),ne(n,f,a)}}),Lf)}function qe(n,t){var r=n.length;if(r)return di(t+=t<0?r:0,r)?n[t]:u}function Pe(n,t,r){t=t.length?Tt(t,(function(n){return Po(n)?function(t){return Ae(t,1===n.length?n[0]:n)}:n})):[ua];var e=-1;t=Tt(t,nr(ai()));var u=$e(n,(function(n,r,u){var i=Tt(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(u,(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=Eu(u[e],i[e]);if(a)return e>=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ve(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=Ae(n,o);r(f,o)&&Xe(i,wu(o,n),f)}return i}function Ze(n,t,r,e){var u=e?Vt:Pt,i=-1,o=t.length,f=n;for(n===t&&(t=Iu(t)),r&&(f=Tt(n,nr(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ke(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Ei(n,t,ua),n+"")}function Ye(n){return Yr(Nf(n))}function Qe(n,t){var r=Nf(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=Ti(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(i!=f){var s=a[c];(l=e?e(s,c,a):u)===u&&(l=nf(s)?s:di(t[i+1])?[]:{})}te(a,c,l),a=a[c]}return n}var nu=zr?function(n,t){return zr.set(n,t),n}:ua,tu=nt?function(n,t){return nt(n,"toString",{configurable:!0,enumerable:!1,value:ta(t),writable:!0})}:ua;function ru(n){return Wi(Nf(n))}function eu(n,t,e){var u=-1,i=n.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u<i;)o[u]=n[u+t];return o}function uu(n,t){var r;return he(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function iu(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!cf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ou(n,t,ua,r)}function ou(n,t,r,e){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!==t,a=null===t,c=cf(t),l=t===u;i<o;){var s=_t((i+o)/2),h=r(n[s]),p=h!==u,v=null===h,_=h===h,g=cf(h);if(f)var y=e||_;else y=l?_&&(e||p):a?_&&p&&(e||!v):c?_&&p&&!v&&(e||!g):!v&&!g&&(e?h<=t:h<t);y?i=s+1:o=s}return wr(o,4294967294)}function fu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Do(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function au(n){return"number"==typeof n?n:cf(n)?_:+n}function cu(n){if("string"==typeof n)return n;if(Po(n))return Tt(n,cu)+"";if(cf(n))return $r?$r.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function lu(n,t,r){var e=-1,u=Wt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=Bt;else if(i>=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,a=new Gr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s===s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function su(n,t){return null==(n=Ri(n,t=wu(t,n)))||delete n[Ti(Hi(t))]}function hu(n,t,r,e){return Xe(n,t,r(Ae(n,t)),e)}function pu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?eu(n,e?0:i,e?i+1:u):eu(n,e?i+1:0,e?u:i)}function vu(n,t){var r=n;return r instanceof Pr&&(r=r.value()),Mt(t,(function(n,t){return t.func.apply(t.thisArg,Ut([n],t.args))}),r)}function _u(n,t,e){var u=n.length;if(u<2)return u?lu(n[0]):[];for(var i=-1,o=r(u);++i<u;)for(var f=n[i],a=-1;++a<u;)a!=i&&(o[i]=se(o[i]||f,n[a],t,e));return lu(ye(o,1),t,e)}function gu(n,t,r){for(var e=-1,i=n.length,o=t.length,f={};++e<i;){var a=e<o?t[e]:u;r(f,n[e],a)}return f}function yu(n){return Ko(n)?n:[]}function du(n){return"function"==typeof n?n:ua}function wu(n,t){return Po(n)?n:bi(n,t)?[n]:Bi(wf(n))}var bu=Je;function mu(n,t,r){var e=n.length;return r=r===u?e:r,!t&&r>=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Zn?Zn(r):new n.constructor(r);return n.copy(e),e}function ju(n){var t=new n.constructor(n.byteLength);return new Vn(t).set(new Vn(n)),t}function ku(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=cf(n),f=t!==u,a=null===t,c=t===t,l=cf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n<t||l&&r&&i&&!e&&!o||a&&r&&i||!f&&i||!c)return-1}return 0}function Ru(n,t,e,u){for(var i=-1,o=n.length,f=e.length,a=-1,c=t.length,l=Ht(o-f,0),s=r(c+l),h=!u;++a<c;)s[a]=t[a];for(;++i<f;)(h||i<o)&&(s[e[i]]=n[i]);for(;l--;)s[a++]=n[i++];return s}function Ou(n,t,e,u){for(var i=-1,o=n.length,f=-1,a=e.length,c=-1,l=t.length,s=Ht(o-a,0),h=r(s+l),p=!u;++i<s;)h[i]=n[i];for(var v=i;++c<l;)h[v+c]=t[c];for(;++f<a;)(p||i<o)&&(h[v+e[f]]=n[i++]);return h}function Iu(n,t){var e=-1,u=n.length;for(t||(t=r(u));++e<u;)t[e]=n[e];return t}function zu(n,t,r,e){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=e?e(r[a],n[a],a,r,n):u;c===u&&(c=n[a]),i?ie(r,a,c):te(r,a,c)}return r}function Su(n,t){return function(r,e){var u=Po(r)?It:ee,i=t?t():{};return u(r,n,ai(e,2),i)}}function Cu(n){return Je((function(t,r){var e=-1,i=r.length,o=i>1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=Rn(t);++e<i;){var a=r[e];a&&n(t,a,e,o)}return t}))}function Lu(n,t){return function(r,e){if(null==r)return r;if(!Zo(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Rn(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Wu(n){return function(t,r,e){for(var u=-1,i=Rn(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Bu(n){return function(t){var r=ar(t=wf(t))?_r(t):u,e=r?r[0]:t.charAt(0),i=r?mu(r,1).join(""):t.slice(1);return e[n]()+i}}function Tu(n){return function(t){return Mt(Qf(Pf(t).replace(tt,"")),n,"")}}function Uu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(n.prototype),e=n.apply(r,t);return nf(e)?e:r}}function Mu(n){return function(t,r,e){var i=Rn(t);if(!Zo(t)){var o=ai(r,3);t=Cf(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,e);return f>-1?i[o?t[f]:f]:u}}function $u(n){return ri((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==oi(f))var a=new qr([],!0)}for(e=a?e:r;++e<r;){var c=oi(f=t[e]),l="wrapper"==c?ii(f):u;a=l&&mi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oi(l[0])].apply(a,l[3]):1==f.length&&mi(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&Po(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Du(n,t,e,i,o,f,a,c,l,h){var p=t&s,v=1&t,_=2&t,g=24&t,y=512&t,d=_?u:Uu(n);return function s(){for(var w=arguments.length,b=r(w),m=w;m--;)b[m]=arguments[m];if(g)var x=fi(s),A=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(b,x);if(i&&(b=Ru(b,i,o,g)),f&&(b=Ou(b,f,a,g)),w-=A,g&&w<h){var j=sr(b,x);return Ku(n,t,Du,s.placeholder,e,b,j,c,l,h-w)}var k=v?e:this,E=_?k[n]:n;return w=b.length,c?b=function(n,t){var r=n.length,e=wr(t.length,r),i=Iu(n);for(;e--;){var o=t[e];n[e]=di(o,r)?i[o]:u}return n}(b,c):y&&w>1&&b.reverse(),p&&l<w&&(b.length=l),this&&this!==gt&&this instanceof s&&(E=d||Uu(E)),E.apply(k,b)}}function Nu(n,t){return function(r,e){return function(n,t,r,e){return be(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function Fu(n,t){return function(r,e){var i;if(r===u&&e===u)return t;if(r!==u&&(i=r),e!==u){if(i===u)return e;"string"==typeof r||"string"==typeof e?(r=cu(r),e=cu(e)):(r=au(r),e=au(e)),i=n(r,e)}return i}}function qu(n){return ri((function(t){return t=Tt(t,nr(ai())),Je((function(r){var e=this;return n(t,(function(n){return Ot(n,e,r)}))}))}))}function Pu(n,t){var r=(t=t===u?" ":cu(t)).length;if(r<2)return r?He(t,n):t;var e=He(t,vt(n/vr(t)));return ar(t)?mu(_r(e),0,n).join(""):e.slice(0,n)}function Vu(n){return function(t,e,i){return i&&"number"!=typeof i&&wi(t,e,i)&&(e=i=u),t=vf(t),e===u?(e=t,t=0):e=vf(e),function(n,t,e,u){for(var i=-1,o=Ht(vt((t-n)/(e||1)),0),f=r(o);o--;)f[u?o:++i]=n,n+=e;return f}(t,e,i=i===u?t<e?1:-1:vf(i),n)}}function Zu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yf(t),r=yf(r)),n(t,r)}}function Ku(n,t,r,e,i,o,f,a,s,h){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var v=[n,t,i,p?o:u,p?f:u,p?u:o,p?u:f,a,s,h],_=r.apply(u,v);return mi(n)&&Ii(_,v),_.placeholder=e,Ci(_,n,t)}function Gu(n){var t=En[n];return function(n,r){if(n=yf(n),(r=null==r?0:wr(_f(r),292))&&bt(n)){var e=(wf(n)+"e").split("e");return+((e=(wf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Hu=Rr&&1/hr(new Rr([,-0]))[1]==p?function(n){return new Rr(n)}:ca;function Ju(n){return function(t){var r=vi(t);return r==k?cr(t):r==z?pr(t):function(n,t){return Tt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Yu(n,t,e,o,p,v,_,g){var y=2&t;if(!y&&"function"!=typeof n)throw new zn(i);var d=o?o.length:0;if(d||(t&=-97,o=p=u),_=_===u?_:Ht(_f(_),0),g=g===u?g:_f(g),d-=p?p.length:0,t&l){var w=o,b=p;o=p=u}var m=y?u:ii(n),x=[n,t,e,o,p,w,b,v,_,g];if(m&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,o=e==s&&8==r||e==s&&r==h&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!o)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?Ru(c,a,t[4]):a,n[4]=c?sr(n[3],f):t[4]}(a=t[5])&&(c=n[5],n[5]=c?Ou(c,a,t[6]):a,n[6]=c?sr(n[5],f):t[6]);(a=t[7])&&(n[7]=a);e&s&&(n[8]=null==n[8]?t[8]:wr(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=u}(x,m),n=x[0],t=x[1],e=x[2],o=x[3],p=x[4],!(g=x[9]=x[9]===u?y?0:n.length:Ht(x[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(n,t,e){var i=Uu(n);return function o(){for(var f=arguments.length,a=r(f),c=f,l=fi(o);c--;)a[c]=arguments[c];var s=f<3&&a[0]!==l&&a[f-1]!==l?[]:sr(a,l);return(f-=s.length)<e?Ku(n,t,Du,o.placeholder,u,a,s,u,u,e-f):Ot(this&&this!==gt&&this instanceof o?i:n,this,a)}}(n,t,g):t!=c&&33!=t||p.length?Du.apply(u,x):function(n,t,e,u){var i=1&t,o=Uu(n);return function t(){for(var f=-1,a=arguments.length,c=-1,l=u.length,s=r(l+a),h=this&&this!==gt&&this instanceof t?o:n;++c<l;)s[c]=u[c];for(;a--;)s[c++]=arguments[++f];return Ot(h,i?e:this,s)}}(n,t,e,o);else var A=function(n,t,r){var e=1&t,u=Uu(n);return function t(){return(this&&this!==gt&&this instanceof t?u:n).apply(e?r:this,arguments)}}(n,t,e);return Ci((m?nu:Ii)(A,x),n,t)}function Qu(n,t,r,e){return n===u||Do(n,Ln[r])&&!Tn.call(e,r)?t:n}function Xu(n,t,r,e,i,o){return nf(n)&&nf(t)&&(o.set(t,n),Fe(n,t,u,Xu,o),o.delete(t)),n}function ni(n){return uf(n)?u:n}function ti(n,t,r,e,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(e)var y=f?e(g,_,h,t,n,o):e(_,g,h,n,t,o);if(y!==u){if(y)continue;p=!1;break}if(v){if(!Dt(t,(function(n,t){if(!rr(v,t)&&(_===n||i(_,n,r,e,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,r,e,o)){p=!1;break}}return o.delete(n),o.delete(t),p}function ri(n){return Si(Ei(n,u,Pi),n+"")}function ei(n){return je(n,Cf,hi)}function ui(n){return je(n,Lf,pi)}var ii=zr?function(n){return zr.get(n)}:ca;function oi(n){for(var t=n.name+"",r=Sr[t],e=Tn.call(Sr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function fi(n){return(Tn.call(Dr,"placeholder")?Dr:n).placeholder}function ai(){var n=Dr.iteratee||ia;return n=n===ia?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function ci(n,t){var r=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?r["string"==typeof t?"string":"hash"]:r.map}function li(n){for(var t=Cf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,ji(u)]}return t}function si(n,t){var r=function(n,t){return null==n?u:n[t]}(n,t);return We(r)?r:u}var hi=yt?function(n){return null==n?[]:(n=Rn(n),Lt(yt(n),(function(t){return Hn.call(n,t)})))}:ga,pi=yt?function(n){for(var t=[];n;)Ut(t,hi(n)),n=Kn(n);return t}:ga,vi=ke;function _i(n,t,r){for(var e=-1,u=(t=wu(t,n)).length,i=!1;++e<u;){var o=Ti(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Po(n)||qo(n))}function gi(n){return"function"!=typeof n.constructor||Ai(n)?{}:Nr(Kn(n))}function yi(n){return Po(n)||qo(n)||!!(Yn&&n&&n[Yn])}function di(n,t){var r=typeof n;return!!(t=null==t?v:t)&&("number"==r||"symbol"!=r&&mn.test(n))&&n>-1&&n%1==0&&n<t}function wi(n,t,r){if(!nf(r))return!1;var e=typeof t;return!!("number"==e?Zo(r)&&di(t,r.length):"string"==e&&t in r)&&Do(r[t],n)}function bi(n,t){if(Po(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!cf(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in Rn(t))}function mi(n){var t=oi(n),r=Dr[t];if("function"!=typeof r||!(t in Pr.prototype))return!1;if(n===r)return!0;var e=ii(r);return!!e&&n===e[0]}(jr&&vi(new jr(new ArrayBuffer(1)))!=B||kr&&vi(new kr)!=k||Er&&vi(Er.resolve())!=O||Rr&&vi(new Rr)!=z||Or&&vi(new Or)!=L)&&(vi=function(n){var t=ke(n),r=t==R?n.constructor:u,e=r?Ui(r):"";if(e)switch(e){case Cr:return B;case Lr:return k;case Wr:return O;case Br:return z;case Tr:return L}return t});var xi=Wn?Yo:ya;function Ai(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Ln)}function ji(n){return n===n&&!nf(n)}function ki(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==u||n in Rn(r)))}}function Ei(n,t,e){return t=Ht(t===u?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Ht(u.length-t,0),f=r(o);++i<o;)f[i]=u[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=u[i];return a[t]=e(f),Ot(n,this,a)}}function Ri(n,t){return t.length<2?n:Ae(n,eu(t,0,-1))}function Oi(n,t){if(("constructor"!==t||"function"!==typeof n[t])&&"__proto__"!=t)return n[t]}var Ii=Li(nu),zi=st||function(n,t){return gt.setTimeout(n,t)},Si=Li(tu);function Ci(n,t,r){var e=t+"";return Si(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Li(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r<t;){var o=Ge(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var Bi=function(n){var t=Wo(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(en,(function(n,r,e,u){t.push(e?u.replace(vn,"$1"):r||n)})),t}));function Ti(n){if("string"==typeof n||cf(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ui(n){if(null!=n){try{return Bn.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function Mi(n){if(n instanceof Pr)return n.clone();var t=new qr(n.__wrapped__,n.__chain__);return t.__actions__=Iu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var $i=Je((function(n,t){return Ko(n)?se(n,ye(t,1,Ko,!0)):[]})),Di=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),ai(r,2)):[]})),Ni=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),u,r):[]}));function Fi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),qt(n,ai(t,3),u)}function qi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return r!==u&&(i=_f(r),i=r<0?Ht(e+i,0):wr(i,e-1)),qt(n,ai(t,3),i,!0)}function Pi(n){return(null==n?0:n.length)?ye(n,1):[]}function Vi(n){return n&&n.length?n[0]:u}var Zi=Je((function(n){var t=Tt(n,yu);return t.length&&t[0]===n[0]?Ie(t):[]})),Ki=Je((function(n){var t=Hi(n),r=Tt(n,yu);return t===Hi(r)?t=u:r.pop(),r.length&&r[0]===n[0]?Ie(r,ai(t,2)):[]})),Gi=Je((function(n){var t=Hi(n),r=Tt(n,yu);return(t="function"==typeof t?t:u)&&r.pop(),r.length&&r[0]===n[0]?Ie(r,u,t):[]}));function Hi(n){var t=null==n?0:n.length;return t?n[t-1]:u}var Ji=Je(Yi);function Yi(n,t){return n&&n.length&&t&&t.length?Ze(n,t):n}var Qi=ri((function(n,t){var r=null==n?0:n.length,e=oe(n,t);return Ke(n,Tt(t,(function(n){return di(n,r)?+n:n})).sort(Eu)),e}));function Xi(n){return null==n?n:Ar.call(n)}var no=Je((function(n){return lu(ye(n,1,Ko,!0))})),to=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),lu(ye(n,1,Ko,!0),ai(t,2))})),ro=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,lu(ye(n,1,Ko,!0),u,t)}));function eo(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(Ko(n))return t=Ht(n.length,t),!0})),Qt(t,(function(t){return Tt(n,Gt(t))}))}function uo(n,t){if(!n||!n.length)return[];var r=eo(n);return null==t?r:Tt(r,(function(n){return Ot(t,u,n)}))}var io=Je((function(n,t){return Ko(n)?se(n,t):[]})),oo=Je((function(n){return _u(Lt(n,Ko))})),fo=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),_u(Lt(n,Ko),ai(t,2))})),ao=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,_u(Lt(n,Ko),u,t)})),co=Je(eo);var lo=Je((function(n){var t=n.length,r=t>1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Dr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Pr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Su((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=Mu(Fi),go=Mu(qi);function yo(n,t){return(Po(n)?zt:he)(n,ai(t,3))}function wo(n,t){return(Po(n)?St:pe)(n,ai(t,3))}var bo=Su((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Zo(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?Ot(t,n,e):ze(n,t,e)})),o})),xo=Su((function(n,t,r){ie(n,r,t)}));function Ao(n,t){return(Po(n)?Tt:$e)(n,ai(t,3))}var jo=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Pe(n,ye(t,1),[])})),Eo=it||function(){return gt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Io=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Io));e|=c}return Yu(n,e,t,r,u)})),zo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(zo));e|=c}return Yu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Eo();if(g(n))return d(n);c=zi(y,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=zi(y,t),h?_(n):a}(l);if(p)return xu(c),c=zi(y,t),_(l)}return c===u&&(c=zi(y,t)),a}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&xu(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:d(Eo())},w}var Co=Je((function(n,t){return le(n,1,t)})),Lo=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Kr),r}function Bo(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Kr;var To=bu((function(n,t){var r=(t=1==t.length&&Po(t[0])?Tt(t[0],nr(ai())):Tt(ye(t,1),nr(ai()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return Ot(n,this,e)}))})),Uo=Je((function(n,t){var r=sr(t,fi(Uo));return Yu(n,c,u,t,r)})),Mo=Je((function(n,t){var r=sr(t,fi(Mo));return Yu(n,l,u,t,r)})),$o=ri((function(n,t){return Yu(n,h,u,u,u,t)}));function Do(n,t){return n===t||n!==n&&t!==t}var No=Zu(Ee),Fo=Zu((function(n,t){return n>=t})),qo=Se(function(){return arguments}())?Se:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},Po=r.isArray,Vo=xt?nr(xt):function(n){return tf(n)&&ke(n)==W};function Zo(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Ko(n){return tf(n)&&Zo(n)}var Go=dt||ya,Ho=At?nr(At):function(n){return tf(n)&&ke(n)==m};function Jo(n){if(!tf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=ke(n);return t==A||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=jt?nr(jt):function(n){return tf(n)&&vi(n)==k};function ef(n){return"number"==typeof n||tf(n)&&ke(n)==E}function uf(n){if(!tf(n)||ke(n)!=R)return!1;var t=Kn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==Dn}var of=kt?nr(kt):function(n){return tf(n)&&ke(n)==I};var ff=Et?nr(Et):function(n){return tf(n)&&vi(n)==z};function af(n){return"string"==typeof n||!Po(n)&&tf(n)&&ke(n)==S}function cf(n){return"symbol"==typeof n||tf(n)&&ke(n)==C}var lf=Rt?nr(Rt):function(n){return tf(n)&&Xo(n.length)&&!!ct[ke(n)]};var sf=Zu(Me),hf=Zu((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Zo(n))return af(n)?_r(n):Iu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==k?cr:t==z?hr:Nf)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(cf(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||bn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return zu(n,Lf(n))}function wf(n){return null==n?"":cu(n)}var bf=Cu((function(n,t){if(Ai(t)||Zo(t))zu(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=Cu((function(n,t){zu(t,Lf(t),n)})),xf=Cu((function(n,t,r,e){zu(t,Lf(t),n,e)})),Af=Cu((function(n,t,r,e){zu(t,Cf(t),n,e)})),jf=ri(oe);var kf=Je((function(n,t){n=Rn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r<e;)for(var o=t[r],f=Lf(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===u||Do(s,Ln[l])&&!Tn.call(n,l))&&(n[l]=o[l])}return n})),Ef=Je((function(n){return n.push(u,Xu),Ot(Bf,u,n)}));function Rf(n,t,r){var e=null==n?u:Ae(n,t);return e===u?r:e}function Of(n,t){return null!=n&&_i(n,t,Oe)}var If=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),n[t]=r}),ta(ua)),zf=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),Tn.call(n,t)?n[t].push(r):n[t]=[r]}),ai),Sf=Je(ze);function Cf(n){return Zo(n)?Jr(n):Te(n)}function Lf(n){return Zo(n)?Jr(n,!0):Ue(n)}var Wf=Cu((function(n,t,r){Fe(n,t,r)})),Bf=Cu((function(n,t,r,e){Fe(n,t,r,e)})),Tf=ri((function(n,t){var r={};if(null==n)return r;var e=!1;t=Tt(t,(function(t){return t=wu(t,n),e||(e=t.length>1),t})),zu(n,ui(n),r),e&&(r=ae(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Uf=ri((function(n,t){return null==n?{}:function(n,t){return Ve(n,t,(function(t,r){return Of(n,r)}))}(n,t)}));function Mf(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ai(t),Ve(n,r,(function(n,r){return t(n,r[0])}))}var $f=Ju(Cf),Df=Ju(Lf);function Nf(n){return null==n?[]:tr(n,Cf(n))}var Ff=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Yf(wf(n).toLowerCase())}function Pf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Zf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Bu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Bu("toUpperCase");function Qf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return Ot(n,u,t)}catch(r){return Jo(r)?r:new an(r)}})),na=ri((function(n,t){return zt(t,(function(t){t=Ti(t),ie(n,t,Io(n[t],n))})),n}));function ta(n){return function(){return n}}var ra=$u(),ea=$u(!0);function ua(n){return n}function ia(n){return Be("function"==typeof n?n:ae(n,1))}var oa=Je((function(n,t){return function(r){return ze(r,n,t)}})),fa=Je((function(n,t){return function(r){return ze(n,r,t)}}));function aa(n,t,r){var e=Cf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,Cf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Iu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function ca(){}var la=qu(Tt),sa=qu(Ct),ha=qu(Dt);function pa(n){return bi(n)?Gt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var va=Vu(),_a=Vu(!0);function ga(){return[]}function ya(){return!1}var da=Fu((function(n,t){return n+t}),0),wa=Gu("ceil"),ba=Fu((function(n,t){return n/t}),1),ma=Gu("floor");var xa=Fu((function(n,t){return n*t}),1),Aa=Gu("round"),ja=Fu((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=Ro,Dr.assign=bf,Dr.assignIn=mf,Dr.assignInWith=xf,Dr.assignWith=Af,Dr.at=jf,Dr.before=Oo,Dr.bind=Io,Dr.bindAll=na,Dr.bindKey=zo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Dr.chain=so,Dr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(vt(i/t));o<i;)a[f++]=eu(n,o,o+=t);return a},Dr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Dr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return Ut(Po(e)?Iu(e):[e],ye(t,1))},Dr.cond=function(n){var t=null==n?0:n.length,r=ai();return n=t?Tt(n,(function(n){if("function"!=typeof n[1])throw new zn(i);return[r(n[0]),n[1]]})):[],Je((function(r){for(var e=-1;++e<t;){var u=n[e];if(Ot(u[0],this,r))return Ot(u[1],this,r)}}))},Dr.conforms=function(n){return function(n){var t=Cf(n);return function(r){return ce(r,n,t)}}(ae(n,1))},Dr.constant=ta,Dr.countBy=vo,Dr.create=function(n,t){var r=Nr(n);return null==t?r:ue(r,t)},Dr.curry=function n(t,r,e){var i=Yu(t,8,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.curryRight=function n(t,r,e){var i=Yu(t,a,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.debounce=So,Dr.defaults=kf,Dr.defaultsDeep=Ef,Dr.defer=Co,Dr.delay=Lo,Dr.difference=$i,Dr.differenceBy=Di,Dr.differenceWith=Ni,Dr.drop=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=r||t===u?1:_f(t))<0?0:t,e):[]},Dr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,0,(t=e-(t=r||t===u?1:_f(t)))<0?0:t):[]},Dr.dropRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0,!0):[]},Dr.dropWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0):[]},Dr.fill=function(n,t,r,e){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wi(n,t,r)&&(r=0,e=i),function(n,t,r,e){var i=n.length;for((r=_f(r))<0&&(r=-r>i?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Dr.filter=function(n,t){return(Po(n)?Lt:ge)(n,ai(t,3))},Dr.flatMap=function(n,t){return ye(Ao(n,t),1)},Dr.flatMapDeep=function(n,t){return ye(Ao(n,t),p)},Dr.flatMapDepth=function(n,t,r){return r=r===u?1:_f(r),ye(Ao(n,t),r)},Dr.flatten=Pi,Dr.flattenDeep=function(n){return(null==n?0:n.length)?ye(n,p):[]},Dr.flattenDepth=function(n,t){return(null==n?0:n.length)?ye(n,t=t===u?1:_f(t)):[]},Dr.flip=function(n){return Yu(n,512)},Dr.flow=ra,Dr.flowRight=ea,Dr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Dr.functions=function(n){return null==n?[]:xe(n,Cf(n))},Dr.functionsIn=function(n){return null==n?[]:xe(n,Lf(n))},Dr.groupBy=bo,Dr.initial=function(n){return(null==n?0:n.length)?eu(n,0,-1):[]},Dr.intersection=Zi,Dr.intersectionBy=Ki,Dr.intersectionWith=Gi,Dr.invert=If,Dr.invertBy=zf,Dr.invokeMap=mo,Dr.iteratee=ia,Dr.keyBy=xo,Dr.keys=Cf,Dr.keysIn=Lf,Dr.map=Ao,Dr.mapKeys=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,t(n,e,u),n)})),r},Dr.mapValues=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,e,t(n,e,u))})),r},Dr.matches=function(n){return De(ae(n,1))},Dr.matchesProperty=function(n,t){return Ne(n,ae(t,1))},Dr.memoize=Wo,Dr.merge=Wf,Dr.mergeWith=Bf,Dr.method=oa,Dr.methodOf=fa,Dr.mixin=aa,Dr.negate=Bo,Dr.nthArg=function(n){return n=_f(n),Je((function(t){return qe(t,n)}))},Dr.omit=Tf,Dr.omitBy=function(n,t){return Mf(n,Bo(ai(t)))},Dr.once=function(n){return Oo(2,n)},Dr.orderBy=function(n,t,r,e){return null==n?[]:(Po(t)||(t=null==t?[]:[t]),Po(r=e?u:r)||(r=null==r?[]:[r]),Pe(n,t,r))},Dr.over=la,Dr.overArgs=To,Dr.overEvery=sa,Dr.overSome=ha,Dr.partial=Uo,Dr.partialRight=Mo,Dr.partition=jo,Dr.pick=Uf,Dr.pickBy=Mf,Dr.property=pa,Dr.propertyOf=function(n){return function(t){return null==n?u:Ae(n,t)}},Dr.pull=Ji,Dr.pullAll=Yi,Dr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,ai(r,2)):n},Dr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,u,r):n},Dr.pullAt=Qi,Dr.range=va,Dr.rangeRight=_a,Dr.rearg=$o,Dr.reject=function(n,t){return(Po(n)?Lt:ge)(n,Bo(ai(t,3)))},Dr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ai(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Ke(n,u),r},Dr.rest=function(n,t){if("function"!=typeof n)throw new zn(i);return Je(n,t=t===u?t:_f(t))},Dr.reverse=Xi,Dr.sampleSize=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),(Po(n)?Qr:Qe)(n,t)},Dr.set=function(n,t,r){return null==n?n:Xe(n,t,r)},Dr.setWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:Xe(n,t,r,e)},Dr.shuffle=function(n){return(Po(n)?Xr:ru)(n)},Dr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&wi(n,t,r)?(t=0,r=e):(t=null==t?0:_f(t),r=r===u?e:_f(r)),eu(n,t,r)):[]},Dr.sortBy=ko,Dr.sortedUniq=function(n){return n&&n.length?fu(n):[]},Dr.sortedUniqBy=function(n,t){return n&&n.length?fu(n,ai(t,2)):[]},Dr.split=function(n,t,r){return r&&"number"!=typeof r&&wi(n,t,r)&&(t=r=u),(r=r===u?g:r>>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=cu(t))&&ar(n)?mu(_r(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?pu(n,ai(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=ho,Dr.toArray=pf,Dr.toPairs=$f,Dr.toPairsIn=Df,Dr.toPath=function(n){return Po(n)?Tt(n,Ti):cf(n)?[n]:Iu(Bi(wf(n)))},Dr.toPlainObject=df,Dr.transform=function(n,t,r){var e=Po(n),u=e||Go(n)||lf(n);if(t=ai(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?Nr(Kn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return Ro(n,1)},Dr.union=no,Dr.unionBy=to,Dr.unionWith=ro,Dr.uniq=function(n){return n&&n.length?lu(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?lu(n,ai(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Dr.unset=function(n,t){return null==n||su(n,t)},Dr.unzip=eo,Dr.unzipWith=uo,Dr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Dr.values=Nf,Dr.valuesIn=function(n){return null==n?[]:tr(n,Lf(n))},Dr.without=io,Dr.words=Qf,Dr.wrap=function(n,t){return Uo(du(t),n)},Dr.xor=oo,Dr.xorBy=fo,Dr.xorWith=ao,Dr.zip=co,Dr.zipObject=function(n,t){return gu(n||[],t||[],te)},Dr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Dr.zipWith=lo,Dr.entries=$f,Dr.entriesIn=Df,Dr.extend=mf,Dr.extendWith=xf,aa(Dr,Dr),Dr.add=da,Dr.attempt=Xf,Dr.camelCase=Ff,Dr.capitalize=qf,Dr.ceil=wa,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Dr.clone=function(n){return ae(n,4)},Dr.cloneDeep=function(n){return ae(n,5)},Dr.cloneDeepWith=function(n,t){return ae(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return ae(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ce(n,t,Cf(t))},Dr.deburr=Pf,Dr.defaultTo=function(n,t){return null==n||n!==n?t:n},Dr.divide=ba,Dr.endsWith=function(n,t,r){n=wf(n),t=cu(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=Do,Dr.escape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(H,or):n},Dr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Dr.every=function(n,t,r){var e=Po(n)?Ct:ve;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.find=_o,Dr.findIndex=Fi,Dr.findKey=function(n,t){return Ft(n,ai(t,3),be)},Dr.findLast=go,Dr.findLastIndex=qi,Dr.findLastKey=function(n,t){return Ft(n,ai(t,3),me)},Dr.floor=ma,Dr.forEach=yo,Dr.forEachRight=wo,Dr.forIn=function(n,t){return null==n?n:de(n,ai(t,3),Lf)},Dr.forInRight=function(n,t){return null==n?n:we(n,ai(t,3),Lf)},Dr.forOwn=function(n,t){return n&&be(n,ai(t,3))},Dr.forOwnRight=function(n,t){return n&&me(n,ai(t,3))},Dr.get=Rf,Dr.gt=No,Dr.gte=Fo,Dr.has=function(n,t){return null!=n&&_i(n,t,Re)},Dr.hasIn=Of,Dr.head=Vi,Dr.identity=ua,Dr.includes=function(n,t,r,e){n=Zo(n)?n:Nf(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),af(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Pt(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Pt(n,t,u)},Dr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=wr(t,r)&&n<Ht(t,r)}(n=yf(n),t,r)},Dr.invoke=Sf,Dr.isArguments=qo,Dr.isArray=Po,Dr.isArrayBuffer=Vo,Dr.isArrayLike=Zo,Dr.isArrayLikeObject=Ko,Dr.isBoolean=function(n){return!0===n||!1===n||tf(n)&&ke(n)==b},Dr.isBuffer=Go,Dr.isDate=Ho,Dr.isElement=function(n){return tf(n)&&1===n.nodeType&&!uf(n)},Dr.isEmpty=function(n){if(null==n)return!0;if(Zo(n)&&(Po(n)||"string"==typeof n||"function"==typeof n.splice||Go(n)||lf(n)||qo(n)))return!n.length;var t=vi(n);if(t==k||t==z)return!n.size;if(Ai(n))return!Te(n).length;for(var r in n)if(Tn.call(n,r))return!1;return!0},Dr.isEqual=function(n,t){return Ce(n,t)},Dr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:u)?r(n,t):u;return e===u?Ce(n,t,u,r):!!e},Dr.isError=Jo,Dr.isFinite=function(n){return"number"==typeof n&&bt(n)},Dr.isFunction=Yo,Dr.isInteger=Qo,Dr.isLength=Xo,Dr.isMap=rf,Dr.isMatch=function(n,t){return n===t||Le(n,t,li(t))},Dr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:u,Le(n,t,li(t),r)},Dr.isNaN=function(n){return ef(n)&&n!=+n},Dr.isNative=function(n){if(xi(n))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return We(n)},Dr.isNil=function(n){return null==n},Dr.isNull=function(n){return null===n},Dr.isNumber=ef,Dr.isObject=nf,Dr.isObjectLike=tf,Dr.isPlainObject=uf,Dr.isRegExp=of,Dr.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=v},Dr.isSet=ff,Dr.isString=af,Dr.isSymbol=cf,Dr.isTypedArray=lf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return tf(n)&&vi(n)==L},Dr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==ke(n)},Dr.join=function(n,t){return null==n?"":mt.call(n,t)},Dr.kebabCase=Vf,Dr.last=Hi,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):qt(n,Zt,i,!0)},Dr.lowerCase=Zf,Dr.lowerFirst=Kf,Dr.lt=sf,Dr.lte=hf,Dr.max=function(n){return n&&n.length?_e(n,ua,Ee):u},Dr.maxBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Ee):u},Dr.mean=function(n){return Kt(n,ua)},Dr.meanBy=function(n,t){return Kt(n,ai(t,2))},Dr.min=function(n){return n&&n.length?_e(n,ua,Me):u},Dr.minBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Me):u},Dr.stubArray=ga,Dr.stubFalse=ya,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xa,Dr.nth=function(n,t){return n&&n.length?qe(n,_f(t)):u},Dr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Dr.noop=ca,Dr.now=Eo,Dr.pad=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Pu(_t(u),r)+n+Pu(vt(u),r)},Dr.padEnd=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?n+Pu(t-e,r):n},Dr.padStart=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?Pu(t-e,r)+n:n},Dr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),mr(wf(n).replace(fn,""),t||0)},Dr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&wi(n,t,r)&&(t=r=u),r===u&&("boolean"==typeof t?(r=t,t=u):"boolean"==typeof n&&(r=n,n=u)),n===u&&t===u?(n=0,t=1):(n=vf(n),t===u?(t=n,n=0):t=vf(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Dr.reduce=function(n,t,r){var e=Po(n)?Mt:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,he)},Dr.reduceRight=function(n,t,r){var e=Po(n)?$t:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,pe)},Dr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),He(wf(n),t)},Dr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++e<i;){var o=null==n?u:n[Ti(t[e])];o===u&&(e=i,o=r),n=Yo(o)?o.call(n):o}return n},Dr.round=Aa,Dr.runInContext=n,Dr.sample=function(n){return(Po(n)?Yr:Ye)(n)},Dr.size=function(n){if(null==n)return 0;if(Zo(n))return af(n)?vr(n):n.length;var t=vi(n);return t==k||t==z?n.size:Te(n).length},Dr.snakeCase=Gf,Dr.some=function(n,t,r){var e=Po(n)?Dt:uu;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.sortedIndex=function(n,t){return iu(n,t)},Dr.sortedIndexBy=function(n,t,r){return ou(n,t,ai(r,2))},Dr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=iu(n,t);if(e<r&&Do(n[e],t))return e}return-1},Dr.sortedLastIndex=function(n,t){return iu(n,t,!0)},Dr.sortedLastIndexBy=function(n,t,r){return ou(n,t,ai(r,2),!0)},Dr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=iu(n,t,!0)-1;if(Do(n[r],t))return r}return-1},Dr.startCase=Hf,Dr.startsWith=function(n,t,r){return n=wf(n),r=null==r?0:fe(_f(r),0,n.length),t=cu(t),n.slice(r,r+t.length)==t},Dr.subtract=ja,Dr.sum=function(n){return n&&n.length?Yt(n,ua):0},Dr.sumBy=function(n,t){return n&&n.length?Yt(n,ai(t,2)):0},Dr.template=function(n,t,r){var e=Dr.templateSettings;r&&wi(n,t,r)&&(t=u),n=wf(n),t=xf({},t,e,Qu);var i,o,f=xf({},t.imports,e.imports,Qu),a=Cf(f),c=tr(f,a),l=0,s=t.interpolate||An,h="__p += '",p=On((t.escape||An).source+"|"+s.source+"|"+(s===nn?_n:An).source+"|"+(t.evaluate||An).source+"|$","g"),v="//# sourceURL="+(Tn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(jn,fr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Tn.call(t,"variable")&&t.variable;if(_){if(pn.test(_))throw new an("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(V,""):h).replace(Z,"$1").replace(K,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xf((function(){return kn(a,v+"return "+h).apply(u,c)}));if(g.source=h,Jo(g))throw g;return g},Dr.times=function(n,t){if((n=_f(n))<1||n>v)return[];var r=g,e=wr(n,g);t=ai(t),n-=g;for(var u=Qt(e,t);++r<n;)t(r);return u},Dr.toFinite=vf,Dr.toInteger=_f,Dr.toLength=gf,Dr.toLower=function(n){return wf(n).toLowerCase()},Dr.toNumber=yf,Dr.toSafeInteger=function(n){return n?fe(_f(n),-9007199254740991,v):0===n?n:0},Dr.toString=wf,Dr.toUpper=function(n){return wf(n).toUpperCase()},Dr.trim=function(n,t,r){if((n=wf(n))&&(r||t===u))return Xt(n);if(!n||!(t=cu(t)))return n;var e=_r(n),i=_r(t);return mu(e,er(e,i),ur(e,i)+1).join("")},Dr.trimEnd=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.slice(0,gr(n)+1);if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,0,ur(e,_r(t))+1).join("")},Dr.trimStart=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.replace(fn,"");if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,er(e,_r(t))).join("")},Dr.truncate=function(n,t){var r=30,e="...";if(nf(t)){var i="separator"in t?t.separator:i;r="length"in t?_f(t.length):r,e="omission"in t?cu(t.omission):e}var o=(n=wf(n)).length;if(ar(n)){var f=_r(n);o=f.length}if(r>=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?mu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),of(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=On(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(cu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Dr.unescape=function(n){return(n=wf(n))&&J.test(n)?n.replace(G,yr):n},Dr.uniqueId=function(n){var t=++Un;return wf(n)+t},Dr.upperCase=Jf,Dr.upperFirst=Yf,Dr.each=yo,Dr.eachRight=wo,Dr.first=Vi,aa(Dr,function(){var n={};return be(Dr,(function(t,r){Tn.call(Dr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Dr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),zt(["drop","take"],(function(n,t){Pr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new Pr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Pr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Pr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ai(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Pr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Pr.prototype[n]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(ua)},Pr.prototype.find=function(n){return this.filter(n).head()},Pr.prototype.findLast=function(n){return this.reverse().find(n)},Pr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Pr(this):this.map((function(r){return ze(r,n,t)}))})),Pr.prototype.reject=function(n){return this.filter(Bo(ai(n)))},Pr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Pr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},Pr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pr.prototype.toArray=function(){return this.take(g)},be(Pr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Pr,c=f[0],l=a||Po(t),s=function(n){var t=i.apply(Dr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Pr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Po(u)?u:[],n)}return this[r]((function(r){return t.apply(Po(r)?r:[],n)}))}})),be(Pr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Du(u,2).name]=[{name:"wrapper",func:u}],Pr.prototype.clone=function(){var n=new Pr(this.__wrapped__);return n.__actions__=Iu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Iu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Iu(this.__views__),n},Pr.prototype.reverse=function(){if(this.__filtered__){var n=new Pr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Pr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Po(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=wr(t,n+o);break;case"takeRight":n=Ht(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=wr(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return vu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,w=y.type,b=d(g);if(2==w)g=b;else if(!b){if(1==w)continue n;break n}}v[h++]=g}return v},Dr.prototype.at=po,Dr.prototype.chain=function(){return so(this)},Dr.prototype.commit=function(){return new qr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===u&&(this.__values__=pf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Fr;){var e=Mi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Pr){var t=n;return this.__actions__.length&&(t=new Pr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new qr(t,this.__chain__)}return this.thru(Xi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qn&&(Dr.prototype[Qn]=function(){return this}),Dr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},16929:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},45720:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},71153:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},79879:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.8 1.8 0 0 1 1.554 0l4.22 2.025a.89.89 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.06 1.06 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8m3.57-3.377L2.354 3.35A2.39 2.39 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.56 2.56 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.3 3.3 0 0 0-2.852 0M9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7",clipRule:"evenodd"}))},89169:(n,t,r)=>{"use strict";r.d(t,{E:()=>i});var e=r(59284);const u=(0,r(69220).om)("skeleton");function i({className:n,style:t,qa:r}){return e.createElement("div",{className:u(null,n),style:t,"data-qa":r})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4887.f016c3bb.chunk.js b/ydb/core/viewer/monitoring/static/js/4887.f016c3bb.chunk.js new file mode 100644 index 0000000000..8e6baa829f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4887.f016c3bb.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4887],{4887:(e,t,a)=>{a.d(t,{default:()=>o});var n=a(99546);const o=a.n(n)()},99546:e=>{function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}e.exports=t,t.displayName="moonscript",t.aliases=["moon"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4891.c441be74.chunk.js b/ydb/core/viewer/monitoring/static/js/4891.c441be74.chunk.js deleted file mode 100644 index 842e4f3557..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4891.c441be74.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4891],{74891:function(a,e,_){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=e(a),i={name:"sw",weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekStart:1,ordinal:function(a){return a},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return _.default.locale(i,null,!0),i}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/48914.0bb2f1c2.chunk.js b/ydb/core/viewer/monitoring/static/js/48914.0bb2f1c2.chunk.js new file mode 100644 index 0000000000..b16d9fe6e6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/48914.0bb2f1c2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[48914],{48914:(e,n,a)=>{a.d(n,{default:()=>i});var t=a(96347);const i=a.n(t)()},96347:e=>{function n(e){!function(e){e.languages.velocity=e.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}(e)}e.exports=n,n.displayName="velocity",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/49067.2e09b756.chunk.js b/ydb/core/viewer/monitoring/static/js/49067.2e09b756.chunk.js new file mode 100644 index 0000000000..01940a7c64 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49067.2e09b756.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49067],{49067:function(a,e,i){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var i=e(a),_={name:"mi",weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),weekStart:1,weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"}};return i.default.locale(_,null,!0),_}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/49393.48f114fd.chunk.js b/ydb/core/viewer/monitoring/static/js/49393.48f114fd.chunk.js new file mode 100644 index 0000000000..cb61c25a44 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49393.48f114fd.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49393],{3685:(e,t,a)=>{a.d(t,{$:()=>i});var n=a(54090),l=a(77506),s=a(33775),o=a(60712);const r=(0,l.cn)("ydb-entity-page-title");function i({entityName:e,status:t=n.m.Grey,id:a,className:l}){return(0,o.jsxs)("div",{className:r(null,l),children:[(0,o.jsx)("span",{className:r("prefix"),children:e}),(0,o.jsx)(s.k,{className:r("icon"),status:t,size:"s"}),a]})}},21545:(e,t,a)=>{a.d(t,{X:()=>l});var n=a(78034);const l=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t,followerId:a},{signal:l})=>{try{const[s,o,r]=await Promise.all([window.api.viewer.getTablet({id:e,database:t,followerId:a},{signal:l}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:l}),window.api.viewer.getNodesList({signal:l})]),i=(0,n.nN)(r),d=Object.keys(o).reduce(((e,t)=>{var a;const n=null===(a=o[t])||void 0===a?void 0:a.TabletStateInfo;return null===n||void 0===n||n.forEach((a=>{var n;const{ChangeTime:l,Generation:s,State:o,Leader:r,FollowerId:d}=a,c=i&&t?null===(n=i.get(Number(t)))||void 0===n?void 0:n.Host:void 0;e.push({nodeId:t,generation:s,changeTime:l,state:o,leader:r,followerId:d,fqdn:c})})),e}),[]),{TabletStateInfo:c=[]}=s,u=void 0===a?c.find((e=>e.Leader)):c.find((e=>{var t;return(null===(t=e.FollowerId)||void 0===t?void 0:t.toString())===a})),{TabletId:h}=u||{};return{data:{id:h,data:u,history:d}}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:l}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${l}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),l=a(84476),s=a(84375),o=a(55974),r=a(42829),i=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:p,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:f=!0}){const[y,w]=n.useState(!1),[j,N]=n.useState(!1),[I,T]=n.useState(!1),S=()=>(0,i.jsx)(l.$,{onClick:()=>w(!0),view:m,disabled:h,loading:!h&&j,className:p,title:v,children:e});return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(o.g,{visible:y,header:d,text:c,withRetry:I,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{N(!1)}},onConfirmActionError:e=>{T((0,r.D)(e)),N(!1)},onClose:()=>{w(!1)}}),b?(0,i.jsx)(s.A,{content:g,placement:x,disabled:f,children:S()}):S()]})}},27775:(e,t,a)=>{a.d(t,{i:()=>o});var n=a(47665),l=a(58267),s=a(60712);function o({state:e}){return(0,s.jsx)(n.J,{theme:(0,l._)(e),children:e})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},55974:(e,t,a)=>{a.d(t,{g:()=>x});var n=a(59284),l=a(18677),s=a(71153),o=a(74321),r=a(2198),i=a(99991),d=a(89954),c=a(77506),u=a(81288),h=a(48372);const m=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),v=(0,h.g4)("ydb-critical-action-dialog",{en:m});var p=a(60712);const b=(0,c.cn)("ydb-critical-dialog"),g=e=>{if((0,u.cH)(e)){if(403===e.status)return v("no-rights-error");if("string"===typeof e.data)return e.data;if((0,u._E)(e)&&e.data)return(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data});if(e.statusText)return e.statusText}return v("default-error")};function x({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:m,onConfirmActionSuccess:x,onConfirmActionError:f}){const[y,w]=n.useState(!1),[j,N]=n.useState(),[I,T]=n.useState(!1),S=async e=>(w(!0),m(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{w(!1)})));return(0,p.jsx)(r.l,{open:e,hasCloseButton:!1,className:b(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:j?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(r.l.Header,{caption:t}),(0,p.jsx)(r.l.Body,{className:b("body"),children:(0,p.jsxs)("div",{className:b("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:b("error-icon"),children:(0,p.jsx)(l.A,{width:"24",height:"22"})}),g(j)]})}),(0,p.jsx)(r.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:h})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(r.l.Header,{caption:t}),(0,p.jsxs)(r.l.Body,{className:b("body"),children:[(0,p.jsxs)("div",{className:b("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:b("warning-icon"),children:(0,p.jsx)(i.I,{data:s.A,size:24})}),a]}),u?(0,p.jsx)(o.S,{checked:I,onUpdate:T,children:v("checkbox-text")}):null]}),(0,p.jsx)(r.l.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!I},onClickButtonCancel:h,onClickButtonApply:()=>S()})]})})}},58267:(e,t,a)=>{a.d(t,{P:()=>o,_:()=>r});var n=a(54090),l=a(6354);const s={[l.r.Dead]:n.m.Red,[l.r.Created]:n.m.Yellow,[l.r.ResolveStateStorage]:n.m.Yellow,[l.r.Candidate]:n.m.Yellow,[l.r.BlockBlobStorage]:n.m.Yellow,[l.r.WriteZeroEntry]:n.m.Yellow,[l.r.Restored]:n.m.Yellow,[l.r.Discover]:n.m.Yellow,[l.r.Lock]:n.m.Yellow,[l.r.Stopped]:n.m.Yellow,[l.r.ResolveLeader]:n.m.Yellow,[l.r.RebuildGraph]:n.m.Yellow,[l.r.Deleted]:n.m.Green,[l.r.Active]:n.m.Green},o=e=>{if(!e)return n.m.Grey;return t=e,Object.values(n.m).includes(t)?e:s[e];var t};function r(e){if(!e)return"unknown";switch(e){case l.r.Dead:return"danger";case l.r.Active:case l.r.Deleted:return"success";default:return"warning"}}},58389:(e,t,a)=>{a.d(t,{B:()=>u});var n=a(87184),l=a(77506),s=a(90053),o=a(70043),r=a(60712);const i=(0,l.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:t}){return(0,r.jsx)("div",{className:i("info"),children:t?(0,r.jsx)(o.E,{className:i("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...t}){return(0,r.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:i(null,e),children:[(0,r.jsx)(c,{...t}),(0,r.jsx)(s.E,{})]})}},70043:(e,t,a)=>{a.d(t,{E:()=>o});var n=a(89169),l=a(66781),s=a(60712);const o=({delay:e=600,className:t})=>{const[a]=(0,l.y)(e);return a?(0,s.jsx)(n.E,{className:t}):null}},79737:(e,t,a)=>{a.d(t,{A:()=>r,X:()=>i});var n=a(5874),l=a(77506),s=a(60712);const o=(0,l.cn)("ydb-table");function r({children:e,className:t}){return(0,s.jsx)("div",{className:o("table-header-content",t),children:e})}function i({className:e,width:t,wrapperClassName:a,...l}){return(0,s.jsx)("div",{className:o(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return o("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,l=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return o("table-cell",{align:n,"vertical-align":l})},className:o("table",{width:t},e),...l})})}},81342:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>pe});var n=a(59284),l=a(87184),s=a(23871),o=a(44992),r=a(61750),i=a(10755),d=a(67087),c=a(370),u=a(7889),h=a(3685),m=a(44508),v=a(44294),p=a(98167),b=a(58389),g=a(92459),x=a(40174),f=a(21545),y=a(54090),w=a(77506),j=a(76086),N=a(90182),I=a(12888),T=a(76938);const S=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z",clipRule:"evenodd"})),_=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164z"}));var C=a(99991),A=a(22983),k=a(6354),D=a(48372);const E=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),F=(0,D.g4)("ydb-tablet-page",{en:E});function B(e){return Boolean(e&&"0"!==e)}var R=a(60712);const O=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,I.X)(),[o]=f.X.useKillTabletMutation(),[r]=f.X.useStopTabletMutation(),[i]=f.X.useResumeTabletMutation();if(!t)return null;const d=B(a),c=e.State===k.r.Stopped,u=e.State!==k.r.Stopped&&e.State!==k.r.Dead,h=e.State===k.r.Stopped||e.State===k.r.Deleted;return(0,R.jsxs)(l.s,{gap:2,wrap:"nowrap",children:[(0,R.jsxs)(A.B,{dialogHeader:F("dialog.kill-header"),dialogText:F("dialog.kill-text"),onConfirmAction:()=>o({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:F("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(C.I,{data:T.A}),F("controls.kill")]}),d&&(0,R.jsxs)(n.Fragment,{children:[(0,R.jsxs)(A.B,{dialogHeader:F("dialog.stop-header"),dialogText:F("dialog.stop-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:F("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(C.I,{data:S}),F("controls.stop")]}),(0,R.jsxs)(A.B,{dialogHeader:F("dialog.resume-header"),dialogText:F("dialog.resume-text"),onConfirmAction:()=>i({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:F("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(C.I,{data:_}),F("controls.resume")]})]})]})};var P=a(52905),$=a(60073),G=a(25196),H=a(27775),L=a(41826),q=a(31684),z=a(29819);const Y=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),M=(0,D.g4)("ydb-tablet-info",{en:Y}),K=(0,w.cn)("ydb-tablet-info"),X=({tablet:e})=>{const t=(0,I.X)(),{ChangeTime:a,Generation:n,FollowerId:s,NodeId:o,HiveId:r,State:i,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=B(r),h=i===k.r.Active,m=[];u&&m.push({label:M("field_hive"),value:(0,R.jsx)(P.N_,{to:(0,g.DM)(r),className:K("link"),children:r})}),d&&m.push({label:M("field_scheme-shard"),value:(0,R.jsx)(P.N_,{to:(0,g.DM)(d),className:K("link"),children:d})}),m.push({label:M("field_state"),value:(0,R.jsx)(H.i,{state:i})}),h&&m.push({label:M("field_uptime"),value:(0,R.jsx)(L.H,{ChangeTime:a})}),m.push({label:M("field_generation"),value:n},{label:M("field_node"),value:(0,R.jsx)(P.N_,{className:K("link"),to:(0,z.vI)(String(o)),children:o})}),s&&m.push({label:M("field_follower"),value:s});return(0,R.jsxs)(l.s,{gap:10,wrap:"nowrap",children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:K("section-title"),children:M("title_info")}),(0,R.jsx)($.z_,{info:m})]}),t&&c?(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:K("section-title"),children:M("title_links")}),(0,R.jsxs)(l.s,{direction:"column",gap:3,children:[(0,R.jsx)(G.K,{title:M("field_developer-ui-app"),url:(0,q._t)(c,"app")}),(0,R.jsx)(G.K,{title:M("field_developer-ui-counters"),url:(0,q._t)(c,"counters")}),(0,R.jsx)(G.K,{title:M("field_developer-ui-executor"),url:(0,q._t)(c,"executorInternals")}),(0,R.jsx)(G.K,{title:M("field_developer-ui-state"),url:(0,q._t)(c,void 0,"SsId")})]})]}):null]})};var Q=a(36590),J=a(79737),V=a(84476),W=a(33705),U=a(56839);const Z=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,D.g4)("ydb-tablet-storage-info",{en:Z}),te=(0,w.cn)("ydb-tablet-storage-info");function ae(e,t){const a=e.getValue(),n="function"===typeof t?t(a):a;return(0,R.jsx)("div",{className:te("metrics-cell"),children:n})}function ne({row:e,name:t,hasExpand:a}){const n=e.getCanExpand();return(0,R.jsxs)(l.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[n&&(0,R.jsx)(V.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,R.jsx)(V.$.Icon,{children:(0,R.jsx)(W.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,R.jsx)("div",{className:te("name-content",{"no-control":a&&!n}),children:t})]})}function le({data:e}){const[t,a]=n.useState({}),l=n.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:n={}}=e,l=null!==(t=n.Channels)&&void 0!==t?t:[],s=[];for(const r of l){var o;const e=r.Channel,t=r.History;if(!e||!t||!t.length)continue;const n=[...t];n.reverse();const[l,...i]=n,d={...l,storagePoolName:null===a||void 0===a||null===(o=a[e])||void 0===o?void 0:o.StoragePoolName,channelIndex:e,children:i};s.push(d)}return s}(e)),[e]),s=n.useMemo((()=>l.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[l]),o=n.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,R.jsx)(J.A,{children:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,R.jsx)(J.A,{children:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,R.jsx)(J.A,{className:e?te("with-padding"):void 0,children:ee("label_group-id")}),size:100,cell:t=>(0,R.jsx)(ne,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,R.jsx)(J.A,{children:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,R.jsx)(J.A,{children:ee("label_timestamp")}),size:200,cell:e=>ae(e,U.Ey),meta:{align:"right"}}];var e}),[s]),r=(0,Q.K)({columns:o,data:l,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,R.jsx)(J.X,{table:r})}var se=a(4557),oe=a(10508),re=a(82015),ie=a(17594);const de={displayIndices:!1,highlightRows:!0},ce=({history:e,database:t,tabletId:a})=>{const l=n.useMemo((()=>(({database:e,tabletId:t})=>[{name:"Generation",align:se.Ay.RIGHT,render:({row:e})=>e.generation},{name:"Change time",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,R.jsx)(L.H,{ChangeTime:e.changeTime}),width:120},{name:"State",sortable:!1,render:({row:e})=>(0,R.jsx)(H.i,{state:e.state})},{name:"Tablet",sortable:!1,render:({row:a})=>{var n;const l=(0,g.DM)(t,{database:e,followerId:a.leader||null===(n=a.followerId)||void 0===n?void 0:n.toString()}),s=`${t}${a.followerId?`.${a.followerId}`:""}`;return(0,R.jsx)(re.E,{to:l,children:s})}},{name:"Node ID",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,R.jsx)(re.E,{to:(0,z.vI)(e.nodeId),children:e.nodeId})},{name:"Node FQDN",sortable:!1,width:300,render:({row:e})=>e.fqdn?(0,R.jsx)(oe.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,R.jsx)("span",{children:"\u2014"})}])({database:t,tabletId:a})),[t,a]);return(0,R.jsx)(ie.l,{columnsWidthLSKey:"tabletTableColumnsWidth",data:e,columns:l,settings:de,initialSortOrder:{columnId:"Generation",order:se.Ay.DESCENDING}})},ue=(0,w.cn)("ydb-tablet-page"),he={history:"history",channels:"channels"},me=[{id:he.history,get title(){return F("label_tablet-history")}},{id:he.channels,get title(){return F("label_tablet-channels")},isAdvanced:!0}],ve=c.z.nativeEnum(he).catch(he.history);function pe(){var e;const t=(0,N.YQ)(),{id:a}=(0,i.g)(),[{database:s,clusterName:c,followerId:u}]=(0,d.useQueryParams)(g.qc),[h]=(0,N.Nt)(),{currentData:v,isFetching:y,error:w}=f.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0,followerId:null!==u&&void 0!==u?u:void 0},{pollingInterval:h}),I=y&&void 0===v,{data:T={},history:S=[]}=v||{},{currentData:_}=f.X.useGetTabletDescribeQuery(T.TenantId?{tenantId:T.TenantId}:o.hT),C=null!==(e=_||s)&&void 0!==e?e:void 0,A=T.Type;n.useEffect((()=>{t((0,x.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:A}))}),[t,s,a,A]);const{Leader:k,Type:D}=T,E=[];return C&&E.push(`${F("tablet.meta-database")}: ${C}`),D&&E.push(D),!1===k&&E.push(F("tablet.meta-follower").toUpperCase()),(0,R.jsxs)(l.s,{gap:5,direction:"column",className:ue(),children:[(0,R.jsx)(r.mg,{children:(0,R.jsx)("title",{children:`${a} \u2014 ${F("tablet.header")} \u2014 ${C||c||j.QM}`})}),(0,R.jsx)(b.B,{items:E}),(0,R.jsxs)(p.r,{loading:I,size:"l",children:[w?(0,R.jsx)(m.o,{error:w}):null,v?(0,R.jsx)(be,{id:a,tablet:T,history:S,database:C}):null]})]})}function be({id:e,tablet:t,history:a,database:n}){const s=!Object.keys(t).length,{Overall:o,HiveId:r,FollowerId:i}=t,d=`${e}${i?`.${i}`:""}`;return(0,R.jsxs)(u.q,{title:F("emptyState"),className:ue("placeholder"),isEmpty:s,children:[(0,R.jsxs)(l.s,{gap:5,direction:"column",children:[(0,R.jsx)(h.$,{entityName:F("tablet.header"),status:null!==o&&void 0!==o?o:y.m.Grey,id:d}),(0,R.jsx)(O,{tablet:t}),(0,R.jsx)(X,{tablet:t})]}),(0,R.jsx)(ge,{id:e,hiveId:r,history:a,database:n})]})}function ge({id:e,hiveId:t,history:a,database:o}){var r;const[{activeTab:i,...c},u]=(0,d.useQueryParams)(g.qc),h=!(0,I.X)()||!B(t);let m=ve.parse(i);return h&&null!==(r=me.find((e=>e.id===m)))&&void 0!==r&&r.isAdvanced&&(m=he.history),n.useEffect((()=>{i!==m&&u({activeTab:m},"replaceIn")}),[i,m,u]),(0,R.jsxs)(l.s,{gap:5,direction:"column",children:[(0,R.jsx)("div",{children:(0,R.jsx)(s.t,{size:"l",items:me.filter((({isAdvanced:e})=>!e||!h)),activeTab:m,wrapTo:(t,a)=>{const n=(0,g.DM)(e,{...c,activeTab:t.id});return(0,R.jsx)(v.E,{to:n,children:a},t.id)}})}),"history"===m?(0,R.jsx)(ce,{history:a,tabletId:e,database:o}):null,"channels"!==m||h?null:(0,R.jsx)(xe,{id:e,hiveId:t})]})}function xe({id:e,hiveId:t}){const[a]=(0,N.Nt)(),{currentData:n,error:l,isFetching:s}=f.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),o=s&&void 0===n;return(0,R.jsxs)(p.r,{loading:o,size:"l",children:[l?(0,R.jsx)(m.o,{error:l}):null,n?(0,R.jsx)(le,{data:n}):null]})}},89169:(e,t,a)=>{a.d(t,{E:()=>s});var n=a(59284);const l=(0,a(69220).om)("skeleton");function s({className:e,style:t,qa:a}){return n.createElement("div",{className:l(null,e),style:t,"data-qa":a})}},89954:(e,t,a)=>{a.d(t,{O:()=>S});var n=a(59284),l=a(45720),s=a(16929),o=a(71153),r=a(18677),i=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),m=a(48372);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,m.g4)("ydb-shorty-string",{ru:p,en:v});var g=a(60712);const x=(0,h.cn)("kv-shorty-string");function f({value:e="",limit:t=200,strict:a=!1,displayLength:l=!0,render:s=e=>e,onToggle:o,expandLabel:r=b("default_expand_label"),collapseLabel:i=b("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?i:r)+(l&&!d?b("chars_count",{count:e.length}):""),m=e.length>t+(a?0:h.length),v=d||!m?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[s(v),m?(0,g.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===o||void 0===o||o()},children:h}):null]})}var y=a(41650);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),I=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function S({data:e,hideSeverity:t}){const[a,l]=n.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,o=Array.isArray(s)&&s.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var l,s;const o=j(null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.severity);a=(0,g.jsxs)(n.Fragment,{children:[t?null:(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(F,{severity:o})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),o&&(0,g.jsx)(i.$,{view:"normal",onClick:()=>l(!a),children:a?"Hide details":"Show details"})]}),o&&a&&(0,g.jsx)(_,{hideSeverity:t,issues:s})]})}function _({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,g.jsx)("div",{className:I(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,g.jsx)(C,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function C({issue:e,hideSeverity:t,level:a=0}){const[l,s]=n.useState(!0),o=j(e.severity),r=e.issues,c=Array.isArray(r)&&r.length>0,u=l?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:T("line"),children:[c&&(0,g.jsx)(i.$,{view:"flat-secondary",onClick:()=>s(!l),className:T("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(F,{severity:o}),(0,g.jsx)(A,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),c&&l&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:r,level:a+1,expanded:l})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:a,column:n}=t;return(0,y.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,l=()=>(0,g.jsxs)("span",{className:T("message"),children:[a&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(f,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:o}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(s)&&n))return l();return(0,g.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:s,column:null!==o&&void 0!==o?o:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:l()})}function k(e){const{issues:t,level:a,expanded:n}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(C,{issue:e,level:a,expanded:n},t)))})}const D={S_INFO:l.A,S_WARNING:s.A,S_ERROR:o.A,S_FATAL:r.A},E=(0,h.cn)("yql-issue-severity");function F({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:E({severity:t}),children:[(0,g.jsx)(u.I,{className:E("icon"),data:D[e]}),(0,g.jsx)("span",{className:E("title"),children:t})]})}},90053:(e,t,a)=>{a.d(t,{E:()=>v});var n=a(8873),l=a(84476),s=a(24555),o=a(21334),r=a(77506),i=a(90182),d=a(48372);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:c});var h=a(60712);const m=(0,r.cn)("auto-refresh-control");function v({className:e,onManualRefresh:t}){const a=(0,i.YQ)(),[r,d]=(0,i.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(l.$,{view:"flat-secondary",onClick:()=>{a(o.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(l.$.Icon,{children:(0,h.jsx)(n.A,{})})}),(0,h.jsxs)(s.l,{value:[String(r)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.l.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.l.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.l.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.l.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.l.Option,{value:"300000",children:u("5 min")})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/49523.654b328e.chunk.js b/ydb/core/viewer/monitoring/static/js/49523.654b328e.chunk.js new file mode 100644 index 0000000000..3bfe23a3b5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49523.654b328e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49523],{49523:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"dv",weekdays:"\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8_\u0780\u07aa\u0786\u07aa\u0783\u07aa_\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa".split("_"),months:"\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9_\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9_\u0789\u07a7\u0783\u07a8\u0797\u07aa_\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa_\u0789\u07ad_\u0796\u07ab\u0782\u07b0_\u0796\u07aa\u078d\u07a6\u0787\u07a8_\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa_\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa_\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa".split("_"),weekStart:7,weekdaysShort:"\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8_\u0780\u07aa\u0786\u07aa\u0783\u07aa_\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa".split("_"),monthsShort:"\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9_\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9_\u0789\u07a7\u0783\u07a8\u0797\u07aa_\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa_\u0789\u07ad_\u0796\u07ab\u0782\u07b0_\u0796\u07aa\u078d\u07a6\u0787\u07a8_\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa_\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa_\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa".split("_"),weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/49582.c5a749cc.chunk.js b/ydb/core/viewer/monitoring/static/js/49582.c5a749cc.chunk.js new file mode 100644 index 0000000000..620a645545 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49582.c5a749cc.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 49582.c5a749cc.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49582],{49582:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/49582.c5a749cc.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/49582.c5a749cc.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/49725.3529a00c.chunk.js b/ydb/core/viewer/monitoring/static/js/49725.3529a00c.chunk.js new file mode 100644 index 0000000000..5b8155c058 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49725.3529a00c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49725],{49725:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/49778.b9d397f4.chunk.js b/ydb/core/viewer/monitoring/static/js/49778.b9d397f4.chunk.js new file mode 100644 index 0000000000..686043b4d5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49778.b9d397f4.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 49778.b9d397f4.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49778],{49778:(E,T,R)=>{R.r(T),R.d(T,{conf:()=>A,language:()=>I});var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/49778.b9d397f4.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/49778.b9d397f4.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/49788.12d03dd2.chunk.js b/ydb/core/viewer/monitoring/static/js/49788.12d03dd2.chunk.js new file mode 100644 index 0000000000..58133c155d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/49788.12d03dd2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[49788],{32933:e=>{function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}e.exports=t,t.displayName="monkey",t.aliases=[]},49788:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(32933);const a=n.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/50045.c8e44e5c.chunk.js b/ydb/core/viewer/monitoring/static/js/50045.c8e44e5c.chunk.js new file mode 100644 index 0000000000..f959484d57 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/50045.c8e44e5c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[50045],{25712:(e,t,n)=>{var a=n(51572);function o(e){e.register(a),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",(function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,(function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var a=t[1];if("raw"===a&&!n)return n=!0,!0;if("endraw"===a)return n=!1,!0}return!n}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")}))}e.exports=o,o.displayName="liquid",o.aliases=[]},50045:(e,t,n)=>{n.d(t,{default:()=>o});var a=n(25712);const o=n.n(a)()},51572:e=>{function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,o,i){if(n.language===a){var r=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"===typeof i&&!i(e))return e;for(var o,l=r.length;-1!==n.code.indexOf(o=t(a,l));)++l;return r[l]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var o=0,i=Object.keys(n.tokenStack);!function r(l){for(var s=0;s<l.length&&!(o>=i.length);s++){var c=l[s];if("string"===typeof c||c.content&&"string"===typeof c.content){var u=i[o],p=n.tokenStack[u],d="string"===typeof c?c:c.content,g=t(a,u),m=d.indexOf(g);if(m>-1){++o;var f=d.substring(0,m),_=new e.Token(a,e.tokenize(p,n.grammar),"language-"+a,p),b=d.substring(m+g.length),k=[];f&&k.push.apply(k,r([f])),k.push(_),b&&k.push.apply(k,r([b])),"string"===typeof c?l.splice.apply(l,[s,1].concat(k)):c.content=k}}else c.content&&r(c.content)}return l}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/50245.1623217b.chunk.js b/ydb/core/viewer/monitoring/static/js/50245.1623217b.chunk.js new file mode 100644 index 0000000000..00fe325456 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/50245.1623217b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[50245],{50245:(e,t,n)=>{n.d(t,{registerYQLCompletionItemProvider:()=>J});var i=n(80781),s=n(92727);const o={suggestTemplates:0,suggestPragmas:1,suggestEntity:2,suggestAllColumns:3,suggestColumns:4,suggestColumnAliases:5,suggestVariables:6,suggestTableIndexes:7,suggestTableHints:8,suggestEntitySettings:9,suggestKeywords:10,suggestAggregateFunctions:11,suggestTableFunctions:12,suggestWindowFunctions:13,suggestFunctions:14,suggestSimpleTypes:15,suggestUdfs:16};function a(e){return o[e]}const r="abcdefghijklmnopqrstuvwxyz";function l(e){const t=r[e];if(t)return t;const n=Math.floor(e/26),i=e%26;return r.slice(-1).repeat(n)+r[i]}function u(e){return e.startsWith("$")}function c(e=[]){return Array.from(new Set(e))}const m=/[\s'"-/@]/;function g(e){if(e.startsWith("`")&&e.endsWith("`"))return e;let t=e;return e.match(m)&&(t=`\`${e}\``),t}function d(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function T(e,t){const n=e.slice(0,t).split("\n");return{lineNumber:n.length,column:n[n.length-1].length+1}}const p=/([^\s]+)$/;function S(e,t,n=p){const i=e.slice(0,t).match(n);return i&&i[1]?i[1]:""}const I=/([^\\/\s`]+)$/;class h{constructor({getQueryParser:e,getUdfs:t,getSimpleTypes:n,getPragmas:i,getWindowFunctions:s,getTableFunctions:o,getAggregateFunctions:a,getSimpleFunctions:r,getEntitySettings:l,fetchEntities:u,fetchEntityColumns:c}){e&&(this.getQueryParser=e),t&&(this.getUdfs=t),n&&(this.getSimpleTypes=n),i&&(this.getPragmas=i),s&&(this.getWindowFunctions=s),o&&(this.getTableFunctions=o),a&&(this.getAggregateFunctions=a),r&&(this.getSimpleFunctions=r),l&&(this.getEntitySettings=l),u&&(this.fetchEntities=u),c&&(this.fetchEntityColumns=c)}async getSuggestions(e,t){const n=await this.parseInput(e,t);let i=[],o=[],r=[],m=[],p=[],h=[],y=[],f=[],C=[],A=[],b=[];const L=function(e,t){const n=T(e,t),i=S(e,t,I);return{startColumn:n.column-i.length,startLineNumber:n.lineNumber,endColumn:n.column,endLineNumber:n.lineNumber}}(e,t),D=S(e,t);if(n.suggestSimpleTypes){const e=await this.getSimpleTypes(D);y=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.TypeParameter,detail:"Type",range:e,sortText:l(a("suggestSimpleTypes"))})))}(L,e)}if(n.suggestEntity){const e=await this.fetchEntities(D,n.suggestEntity);i=await async function(e,t,n=""){const i=null===n||void 0===n?void 0:n.startsWith("`");return t.reduce(((t,{value:n,detail:o,isDir:r})=>{const u=r?`${n}/`:n;let c;r&&!i&&(c=`\`${u}$0\``);const m=t.length;return t.push({label:u,insertText:null!==c&&void 0!==c?c:u,kind:r?s.eo.CompletionItemKind.Folder:s.eo.CompletionItemKind.Text,insertTextRules:c?s.eo.CompletionItemInsertTextRule.InsertAsSnippet:s.eo.CompletionItemInsertTextRule.None,detail:o,range:e,command:u.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:l(a("suggestEntity"))+l(m)}),t}),[])}(L,e,D)}if(n.suggestVariables&&(b=function(e,t=[]){return t.map((({name:t})=>{const n="$"+t;return{label:n,insertText:n,kind:s.eo.CompletionItemKind.Variable,detail:"Variable",range:e,sortText:l(a("suggestVariables"))}}))}(L,n.suggestVariables)),n.suggestFunctions){const e=await this.getSimpleFunctions(D);o=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Function",range:e,sortText:l(a("suggestFunctions"))})))}(L,e)}if(n.suggestAggregateFunctions){const e=await this.getAggregateFunctions(D);r=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Aggregate function",range:e,sortText:l(a("suggestAggregateFunctions"))})))}(L,e)}if(n.suggestWindowFunctions){const e=await this.getWindowFunctions(D);m=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Window function",range:e,sortText:l(a("suggestWindowFunctions"))})))}(L,e)}if(n.suggestTableFunctions){const e=await this.getTableFunctions(D);p=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"Table function",range:e,sortText:l(a("suggestTableFunctions"))})))}(L,e)}if(n.suggestUdfs){const e=await this.getUdfs(D);h=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Function,detail:"UDF",range:e,sortText:l(a("suggestUdfs"))})))}(L,e)}if(n.suggestPragmas){const e=await this.getPragmas(D);f=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Module,detail:"Pragma",range:e,sortText:l(a("suggestPragmas"))})))}(L,e)}if(n.suggestEntitySettings){const e=await this.getEntitySettings(n.suggestEntitySettings);C=await async function(e,t=[]){return t.map((t=>({label:t,insertText:t,kind:s.eo.CompletionItemKind.Property,detail:"Setting",range:e,sortText:l(a("suggestEntitySettings"))})))}(L,e)}const F=function(e,t=[]){return t.map((t=>({label:t.value,insertText:t.value,kind:s.eo.CompletionItemKind.Keyword,detail:"Keyword",range:e,sortText:l(a("suggestKeywords"))})))}(L,n.suggestKeywords),v=await function(e,t=[]){return t.map((t=>({label:t.name,insertText:t.name,kind:s.eo.CompletionItemKind.Variable,detail:"Column alias",range:e,sortText:l(a("suggestColumnAliases"))})))}(L,n.suggestColumnAliases);if(n.suggestColumns){const e=function(e){var t;return c(null===(t=null===e||void 0===e?void 0:e.tables)||void 0===t?void 0:t.map((e=>e.name))).filter((e=>!u(e)))}(n.suggestColumns),t=await this.fetchEntityColumns(e);A=await async function(e,t,n,i){var o;if(!(null===t||void 0===t?void 0:t.tables))return[];const r=[],m=t.all?[]:void 0,T=t.tables.length>1,p=c(t.tables.map((e=>e.name))).filter(u),S=[];p.length&&p.forEach((e=>{var t,i,s,o;const a=null!==(o=null===(s=null===(i=null===(t=null===n||void 0===n?void 0:n.find((t=>e.slice(1)===t.name)))||void 0===t?void 0:t.value)||void 0===i?void 0:i.columns)||void 0===s?void 0:s.map((t=>({name:t,parent:e}))))&&void 0!==o?o:[];S.push(...a)}));const I=t.tables.reduce(((e,t)=>{const n=t.columns;return n&&e.push(...n.map((e=>({name:e,parent:t.name})))),e}),[]),h=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var n;const i=d(t.name),s=null!==(n=e[i])&&void 0!==n?n:[];return t.alias&&s.push(t.alias),e[i]=s,e}),{});if([...i,...S,...I].forEach((t=>{const n=g(t.name),i=h[d(t.parent)],o=r.length;if(null===i||void 0===i?void 0:i.length)i.forEach((i=>{const u=`${i}.${n}`;r.push({label:{label:u,description:t.detail},insertText:u,kind:s.eo.CompletionItemKind.Variable,detail:"Column",range:e,sortText:l(a("suggestColumns"))+l(o)}),null===m||void 0===m||m.push(u)}));else{let i=n;T&&(i=`${g(t.parent)}.${n}`),r.push({label:{label:i,description:t.detail},insertText:i,kind:s.eo.CompletionItemKind.Variable,detail:"Column",range:e,sortText:l(a("suggestColumns"))+l(o)}),null===m||void 0===m||m.push(i)}})),m&&m.length>1){const t=m.join(", ");r.push({label:t,insertText:t,kind:s.eo.CompletionItemKind.Variable,range:e,sortText:l(a("suggestAllColumns"))})}return r}(L,n.suggestColumns,n.suggestVariables,t)}return[...i,...o,...m,...p,...h,...y,...f,...v,...A,...F,...r,...C,...b]}async parseInput(e,t){const n=T(e,t);return(await this.getQueryParser())(e,{line:n.lineNumber,column:n.column})}async getQueryParser(){const{parseYqlQuery:e}=await Promise.resolve().then(n.bind(n,41614));return e}async getSimpleTypes(e){return[]}async getUdfs(e){return[]}async getPragmas(e){return[]}async getWindowFunctions(e){return[]}async getTableFunctions(e){return[]}async getAggregateFunctions(e){return[]}async getSimpleFunctions(e){return[]}async getEntitySettings(e){return[]}async fetchEntities(e,t){return[]}async fetchEntityColumns(e){return[]}}function y(e={}){const t=new h(e);return async(e,n,i,s)=>({suggestions:await t.getSuggestions(e.getValue(),e.getOffsetAt(n))})}const f=new Map;function C(e,t,n){!function(e){const t=f.get(e);t&&t.dispose()}(e);const s=i.languages.registerCompletionItemProvider(e,{triggerCharacters:t,provideCompletionItems:y(n)});f.set(e,s)}var A=n(23195);const b=["Text","Bytes","String","Bool","Int32","Uint32","Int64","Uint64","Float","Double","Void","Yson","Utf8","Unit","Json","Date","Datetime","Timestamp","Interval","Date32","Datetime64","Timestamp64","Interval64","TzDate32","TzDatetime64","TzTimestamp64","Null","Int8","Uint8","Int16","Uint16","TzDate","TzDatetime","TzTimestamp","Uuid","EmptyList","EmptyDict","JsonDocument","DyNumber"],L=["CAST","COALESCE","LENGTH","LEN","SUBSTRING","FIND","RFIND","StartsWith","EndsWith","IF","NANVL","Random","RandomNumber","RandomUuid","CurrentUtcDate","CurrentUtcDatetime","CurrentUtcTimestamp","CurrentTzDate","CurrentTzDatetime","CurrentTzTimestamp","AddTimezone","RemoveTimezone","MAX_OF","MIN_OF","GREATEST","LEAST","AsTuple","AsStruct","AsList","AsDict","AsSet","AsListStrict","AsDictStrict","AsSetStrict","Variant","AsVariant","Enum","AsEnum","AsTagged","Untag","TableRow","JoinTableRow","Ensure","EnsureType","EnsureConvertibleTo","ToBytes","FromBytes","ByteAt","TestBit","ClearBit","SetBit","FlipBit","Abs","Just","Unwrap","Nothing","Callable","StaticMap","StaticZip","ListCreate","AsListStrict","ListLength","ListHasItems","ListCollect","ListSort","ListSortAsc","ListSortDesc","ListExtend","ListExtendStrict","ListUnionAll","ListZip","ListZipAll","ListEnumerate","ListReverse","ListSkip","ListTake","ListIndexOf","ListMap","ListFilter","ListFlatMap","ListNotNull","ListFlatten","ListUniq","ListAny","ListAll","ListHas","ListHead","ListLast","ListMin","ListMax","ListSum","ListAvg","ListFold","ListFold1","ListFoldMap","ListFold1Map","ListFromRange","ListReplicate","ListConcat","ListExtract","ListTakeWhile","ListSkipWhile","ListAggregate","ToDict","ToMultiDict","ToSet","DictCreate","SetCreate","DictLength","DictHasItems","DictItems","DictKeys","DictPayloads","DictLookup","DictContains","DictAggregate","SetIsDisjoint","SetIntersection","SetIncludes","SetUnion","SetDifference","SetSymmetricDifference","TryMember","ExpandStruct","AddMember","RemoveMember","ForceRemoveMember","ChooseMembers","RemoveMembers","ForceRemoveMembers","CombineMembers","FlattenMembers","StructMembers","RenameMembers","ForceRenameMembers","GatherMembers","SpreadMembers","ForceSpreadMembers","FormatType","ParseType","TypeOf","InstanceOf","DataType","OptionalType","ListType","StreamType","DictType","TupleType","StructType","VariantType","ResourceType","CallableType","GenericType","UnitType","VoidType","OptionalItemType","ListItemType","StreamItemType","DictKeyType","DictPayloadType","TupleElementType","StructMemberType","CallableResultType","CallableArgumentType","VariantUnderlyingType","JSON_EXISTS","JSON_VALUE","JSON_QUERY"],D=["COUNT","MIN","MAX","SUM","AVG","COUNT_IF","SUM_IF","AVG_IF","SOME","CountDistinctEstimate","HyperLogLog","AGGREGATE_LIST","AGGREGATE_LIST_DISTINCT","AGG_LIST","AGG_LIST_DISTINCT","MAX_BY","MIN_BY","AGGREGATE_BY","MULTI_AGGREGATE_BY","TOP","BOTTOM","TOP_BY","BOTTOM_BY","TOPFREQ","MODE","STDDEV","VARIANCE","CORRELATION","COVARIANCE","PERCENTILE","MEDIAN","HISTOGRAM","LogarithmicHistogram","LogHistogram","LinearHistogram","BOOL_AND","BOOL_OR","BOOL_XOR","BIT_AND","BIT_OR","BIT_XOR","SessionStart"],F=Object.entries({DateTime:["EndOfMonth","Format","FromMicroseconds","FromMilliseconds","FromSeconds","GetDayOfMonth","GetDayOfWeek","GetDayOfWeekName","GetDayOfYear","GetHour","GetMicrosecondOfSecond","GetMillisecondOfSecond","GetMinute","GetMonth","GetMonthName","GetSecond","GetTimezoneId","GetTimezoneName","GetWeekOfYear","GetWeekOfYearIso8601","GetYear","IntervalFromDays","IntervalFromHours","IntervalFromMicroseconds","IntervalFromMilliseconds","IntervalFromMinutes","IntervalFromSeconds","MakeDate","MakeDatetime","MakeTimestamp","MakeTzDate","MakeTzDatetime","MakeTzTimestamp","Parse","ParseHttp","ParseIso8601","ParseRfc822","ParseX509","ShiftMonths","ShiftQuarters","ShiftYears","Split","StartOf","StartOfDay","StartOfMonth","StartOfQuarter","StartOfWeek","StartOfYear","TimeOfDay","ToDays","ToHours","ToMicroseconds","ToMilliseconds","ToMinutes","ToSeconds","Update"],Dsv:["Parse","ReadRecord","Serialize"],String:["AsciiToLower","AsciiToTitle","AsciiToUpper","Base32Decode","Base32Encode","Base32StrictDecode","Base64Decode","Base64Encode","Base64EncodeUrl","Base64StrictDecode","Bin","BinText","CgiEscape","CgiUnescape","Collapse","CollapseText","Contains","DecodeHtml","EncodeHtml","EndsWith","EndsWithIgnoreCase","EscapeC","FromByteList","HasPrefix","HasPrefixIgnoreCase","HasSuffix","HasSuffixIgnoreCase","Hex","HexDecode","HexEncode","HexText","HumanReadableBytes","HumanReadableDuration","HumanReadableQuantity","IsAscii","IsAsciiAlnum","IsAsciiAlpha","IsAsciiDigit","IsAsciiHex","IsAsciiLower","IsAsciiSpace","IsAsciiUpper","JoinFromList","LeftPad","LevensteinDistance","Prec","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","RightPad","SBin","SHex","SplitToList","StartsWith","StartsWithIgnoreCase","Strip","ToByteList","UnescapeC"],Unicode:["Find","Fold","FromCodePointList","GetLength","IsAlnum","IsAlpha","IsAscii","IsDigit","IsHex","IsLower","IsSpace","IsUnicodeSet","IsUpper","IsUtf","JoinFromList","LevensteinDistance","Normalize","NormalizeNFC","NormalizeNFD","NormalizeNFKC","NormalizeNFKD","RFind","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","Reverse","SplitToList","Strip","Substring","ToCodePointList","ToLower","ToTitle","ToUint64","ToUpper","Translit","TryToUint64"],Url:["BuildQueryString","CanBePunycodeHostName","CutQueryStringAndFragment","CutScheme","CutWWW","CutWWW2","Decode","Encode","ForceHostNameToPunycode","ForcePunycodeToHostName","GetCGIParam","GetDomain","GetDomainLevel","GetFragment","GetHost","GetHostPort","GetOwner","GetPath","GetPort","GetScheme","GetSchemeHost","GetSchemeHostPort","GetSignificantDomain","GetTLD","GetTail","HostNameToPunycode","IsAllowedByRobotsTxt","IsKnownTLD","IsWellKnownTLD","Normalize","NormalizeWithDefaultHttpScheme","Parse","PunycodeToHostName","QueryStringToDict","QueryStringToList"],Yson:["Attributes","Contains","ConvertTo","ConvertToBool","ConvertToBoolDict","ConvertToBoolList","ConvertToDict","ConvertToDouble","ConvertToDoubleDict","ConvertToDoubleList","ConvertToInt64","ConvertToInt64Dict","ConvertToInt64List","ConvertToList","ConvertToString","ConvertToStringDict","ConvertToStringList","ConvertToUint64","ConvertToUint64Dict","ConvertToUint64List","Equals","From","GetHash","GetLength","IsBool","IsDict","IsDouble","IsEntity","IsInt64","IsList","IsString","IsUint64","Lookup","LookupBool","LookupDict","LookupDouble","LookupInt64","LookupList","LookupString","LookupUint64","Options","Parse","ParseJson","ParseJsonDecodeUtf8","Serialize","SerializeJson","SerializePretty","SerializeText","WithAttributes","YPath","YPathBool","YPathDict","YPathDouble","YPathInt64","YPathList","YPathString","YPathUint64"],HyperLogLog:["AddValue","Create","Deserialize","GetResult","Merge","Serialize"],Hyperscan:["BacktrackingGrep","BacktrackingMatch","Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Ip:["ConvertToIPv6","FromString","GetSubnet","GetSubnetByMask","IsEmbeddedIPv4","IsIPv4","IsIPv6","SubnetFromString","SubnetMatch","SubnetToString","ToFixedIPv6String","ToString"],Json:["BoolAsJsonNode","CompilePath","DoubleAsJsonNode","JsonAsJsonNode","JsonDocumentSqlExists","JsonDocumentSqlQuery","JsonDocumentSqlQueryConditionalWrap","JsonDocumentSqlQueryWrap","JsonDocumentSqlTryExists","JsonDocumentSqlValueBool","JsonDocumentSqlValueConvertToUtf8","JsonDocumentSqlValueInt64","JsonDocumentSqlValueNumber","JsonDocumentSqlValueUtf8","Parse","Serialize","SerializeToJsonDocument","SqlExists","SqlQuery","SqlQueryConditionalWrap","SqlQueryWrap","SqlTryExists","SqlValueBool","SqlValueConvertToUtf8","SqlValueInt64","SqlValueNumber","SqlValueUtf8","Utf8AsJsonNode"],Math:["Abs","Acos","Asin","Asinh","Atan","Atan2","Cbrt","Ceil","Cos","Cosh","E","Eps","Erf","ErfInv","ErfcInv","Exp","Exp2","Fabs","Floor","Fmod","FuzzyEquals","Hypot","IsFinite","IsInf","IsNaN","Ldexp","Lgamma","Log","Log10","Log2","Mod","NearbyInt","Pi","Pow","Rem","Remainder","Rint","Round","RoundDownward","RoundToNearest","RoundTowardZero","RoundUpward","Sigmoid","Sin","Sinh","Sqrt","Tan","Tanh","Tgamma","Trunc"],Pire:["Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Re2:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Re2posix:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Digest:["Argon2","Blake2B","CityHash","CityHash128","Crc32c","Crc64","FarmHashFingerprint","FarmHashFingerprint128","FarmHashFingerprint2","FarmHashFingerprint32","FarmHashFingerprint64","Fnv32","Fnv64","HighwayHash","IntHash64","Md5HalfMix","Md5Hex","Md5Raw","MurMurHash","MurMurHash2A","MurMurHash2A32","MurMurHash32","NumericHash","Sha1","Sha256","SipHash","SuperFastHash","XXH3","XXH3_128"],Histogram:["CalcLowerBound","CalcLowerBoundSafe","CalcUpperBound","CalcUpperBoundSafe","GetSumAboveBound","GetSumBelowBound","GetSumInRange","Normalize","Print","ToCumulativeDistributionFunction"]}).reduce(((e,[t,n])=>{const i=n.map((e=>`${t}::${e}`));return e.concat(i)}),[]),v=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],E=[],R=["TablePathPrefix","Warning"],M={table:["AUTO_PARTITIONING_BY_SIZE","AUTO_PARTITIONING_PARTITION_SIZE_MB","AUTO_PARTITIONING_BY_LOAD","AUTO_PARTITIONING_MIN_PARTITIONS_COUNT","AUTO_PARTITIONING_MAX_PARTITIONS_COUNT","UNIFORM_PARTITIONS","READ_REPLICAS_SETTINGS","TTL","KEY_BLOOM_FILTER","STORE"],view:["security_invoker"],topic:["min_active_partitions","partition_count_limit","retention_period","retention_storage_mb","partition_write_speed_bytes_per_second","partition_write_burst_bytes","metering_mode"],object:[],user:[],group:[],externalDataSource:[],externalTable:[],tableStore:[],replication:["ENDPOINT","DATABASE","USER","PASSWORD"],tableIndex:[],topicConsumer:["important","read_from"]},N={externalDataSource:["external_data_source"],externalTable:["external_table"],replication:["replication"],table:["table","column_table"],tableStore:["column_store"],topic:["pers_queue_group"],view:["view"],tableIndex:["table_index","index"]},P=["dir","unknown","ext_sub_domain"],_=["dir","ext_sub_domain"];function x(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function O(e){return e.startsWith("/")?e.slice(1):e}async function w(){return L}async function G(){return v}async function U(){return E}async function B(){return D}async function H(){return R}async function k(e){return M[e]}async function W(){return F}async function V(){return b}function z(e){const{PKIndex:t,NotNull:n,Default:i}=e,s=[];void 0!==t&&s.push(`PK${t}`),n&&s.push("NN"),i&&s.push("Default");return s.length?s.join(", "):""}function K(e,t){var n;return null!==(n=e.map((e=>{let n=x(e);return n.endsWith("/")||(n=`${n}/`),function(e="",t){const n=x(e);if(!n.startsWith("/"))return n;let i=O(n);const s=O(t);return i.startsWith(s)&&(i=i.slice(s.length)),O(i)}(n,t)})))&&void 0!==n?n:[]}function J(e){C(A.l,[" ",".","`","(","/"],{fetchEntities:async(t,n)=>{var i;const s=await window.api.viewer.autocomplete({database:e,prefix:x(t),limit:1e3});if(!s.Success||!s.Result.Entities)return[];const o=function(e,t){const n=t.reduce(((e,t)=>{const n=N[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(P));return null===e||void 0===e?void 0:e.filter((({Type:e})=>n.has(e)))}(s.Result.Entities,n);return null!==(i=null===o||void 0===o?void 0:o.map((({Name:e,Type:t})=>{return{value:e,detail:t,isDir:(n=t,_.includes(n))};var n})))&&void 0!==i?i:[]},fetchEntityColumns:async t=>{let n=[];const i=K(t,e),s=await window.api.viewer.autocomplete({database:e,table:i,limit:1e3});var o;s.Success&&(n=null!==(o=s.Result.Entities)&&void 0!==o?o:[]);const a=[];return n.forEach((e=>{(function(e){return"column"===e.Type})(e)&&a.push({name:e.Name,detail:z(e),parent:e.Parent})})),a},getEntitySettings:k,getPragmas:H,getSimpleFunctions:w,getAggregateFunctions:B,getTableFunctions:U,getWindowFunctions:G,getUdfs:W,getSimpleTypes:V})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5027.9e6325ef.chunk.js b/ydb/core/viewer/monitoring/static/js/5027.9e6325ef.chunk.js deleted file mode 100644 index 385feb54c0..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5027.9e6325ef.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5027],{85027:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-ca",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5047.ebc9f1b2.chunk.js b/ydb/core/viewer/monitoring/static/js/5047.ebc9f1b2.chunk.js deleted file mode 100644 index 7b150570cb..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5047.ebc9f1b2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5047],{85047:function(e,t,r){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e);function n(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,r,a){var s=e+" ";switch(r){case"s":return t||a?"p\xe1r sek\xfand":"p\xe1r sekundami";case"m":return t?"min\xfata":a?"min\xfatu":"min\xfatou";case"mm":return t||a?s+(n(e)?"min\xfaty":"min\xfat"):s+"min\xfatami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?s+(n(e)?"hodiny":"hod\xedn"):s+"hodinami";case"d":return t||a?"de\u0148":"d\u0148om";case"dd":return t||a?s+(n(e)?"dni":"dn\xed"):s+"d\u0148ami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?s+(n(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?s+(n(e)?"roky":"rokov"):s+"rokmi"}}var s={name:"sk",weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return r.default.locale(s,null,!0),s}(r(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js b/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js deleted file mode 100644 index 0a46c24874..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5050.ffa3921f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5050],{95050:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>s,language:()=>t});var s={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/50875.c6afaf0d.chunk.js b/ydb/core/viewer/monitoring/static/js/50875.c6afaf0d.chunk.js new file mode 100644 index 0000000000..84cf76f14a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/50875.c6afaf0d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[50875],{50875:(e,n,t)=>{t.d(n,{default:()=>i});var a=t(99460);const i=t.n(a)()},99460:e=>{function n(e){!function(e){var n={pattern:/[\s\S]+/,inside:null};e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}(e)}e.exports=n,n.displayName="v",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/51094.f421b808.chunk.js b/ydb/core/viewer/monitoring/static/js/51094.f421b808.chunk.js new file mode 100644 index 0000000000..ae507d4675 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51094.f421b808.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 51094.f421b808.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51094],{51094:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>a,language:()=>c});var o=e=>`\\b${e}\\b`,i=e=>`(?!${e})`,r=o("[_a-zA-Z][_a-zA-Z0-9]*"),s=o("[_a-zA-Z-0-9]+"),a={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},c={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],namedLiterals:["true","false","null","unknown","never"],escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${i('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:"[ \\t\\r\\n]"},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${i('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:r,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${r}`,action:{token:"tag"}},{regex:`#${s}`,action:{token:"directive"}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/51094.f421b808.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/51094.f421b808.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/51159.314cef1d.chunk.js b/ydb/core/viewer/monitoring/static/js/51159.314cef1d.chunk.js new file mode 100644 index 0000000000..16cebf806d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51159.314cef1d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51159],{30390:e=>{function n(e){!function(e){e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];e.languages.puppet.heredoc[0].inside.interpolation=n,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=n}(e)}e.exports=n,n.displayName="puppet",n.aliases=[]},51159:(e,n,t)=>{t.d(n,{default:()=>i});var a=t(30390);const i=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/51255.beb93f73.chunk.js b/ydb/core/viewer/monitoring/static/js/51255.beb93f73.chunk.js new file mode 100644 index 0000000000..7c78dd6ffa --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51255.beb93f73.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51255],{7208:E=>{function T(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}E.exports=T,T.displayName="basic",T.aliases=[]},51255:(E,T,R)=>{R.d(T,{default:()=>N});var I=R(7208);const N=R.n(I)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/513.46a664ad.chunk.js b/ydb/core/viewer/monitoring/static/js/513.46a664ad.chunk.js deleted file mode 100644 index 8717c8b5b9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/513.46a664ad.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[513],{90513:function(e,n,u){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e);function r(e){return e>9?r(e%10):e}function t(e,n,u){return e+" "+function(e,n){return 2===n?function(e){return{m:"v",b:"v",d:"z"}[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[u],e)}var _={name:"br",weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),weekStart:1,weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},meridiem:function(e){return e<12?"a.m.":"g.m."}};return u.default.locale(_,null,!0),_}(u(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/51400.767e472a.chunk.js b/ydb/core/viewer/monitoring/static/js/51400.767e472a.chunk.js new file mode 100644 index 0000000000..3254ac5a60 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51400.767e472a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51400],{23549:e=>{function t(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}e.exports=t,t.displayName="autohotkey",t.aliases=[]},51400:(e,t,o)=>{o.d(t,{default:()=>i});var a=o(23549);const i=o.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/51414.1b5a0681.chunk.js b/ydb/core/viewer/monitoring/static/js/51414.1b5a0681.chunk.js new file mode 100644 index 0000000000..02e86e8522 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51414.1b5a0681.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 51414.1b5a0681.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51414],{51414:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>s,language:()=>n});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/51414.1b5a0681.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/51414.1b5a0681.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/51496.423aebfa.chunk.js b/ydb/core/viewer/monitoring/static/js/51496.423aebfa.chunk.js new file mode 100644 index 0000000000..e392a119a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51496.423aebfa.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51496],{51496:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-in",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],_=e%100;return"["+e+(a[(_-20)%10]||a[_]||a[0])+"]"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5161.20e37d15.chunk.js b/ydb/core/viewer/monitoring/static/js/5161.20e37d15.chunk.js deleted file mode 100644 index 46cd2559aa..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5161.20e37d15.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5161],{35161:function(e,a,d){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(e),_={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"}};return d.default.locale(_,null,!0),_}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/51627.9762f671.chunk.js b/ydb/core/viewer/monitoring/static/js/51627.9762f671.chunk.js new file mode 100644 index 0000000000..a9933242af --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/51627.9762f671.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[51627],{51627:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),t={name:"en-nz",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){var _=["th","st","nd","rd"],a=e%100;return"["+e+(_[(a-20)%10]||_[a]||_[0])+"]"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/52036.0bcd45d5.chunk.js b/ydb/core/viewer/monitoring/static/js/52036.0bcd45d5.chunk.js new file mode 100644 index 0000000000..aef6c20585 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/52036.0bcd45d5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[52036],{3899:a=>{function e(a){!function(a){var e=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(e,"addSupport",{value:function(e,n){"string"===typeof e&&(e=[e]),e.forEach((function(e){!function(e,n){var t="doc-comment",i=a.languages[e];if(i){var r=i[t];if(!r){var o={};o[t]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},r=(i=a.languages.insertBefore(e,"comment",o))[t]}if(r instanceof RegExp&&(r=i[t]={pattern:r}),Array.isArray(r))for(var s=0,d=r.length;s<d;s++)r[s]instanceof RegExp&&(r[s]={pattern:r[s]}),n(r[s]);else n(r)}}(e,(function(a){a.inside||(a.inside={}),a.inside.rest=n}))}))}}),e.addSupport(["java","javascript","php"],e)}(a)}a.exports=e,e.displayName="javadoclike",e.aliases=[]},52036:(a,e,n)=>{n.d(e,{default:()=>i});var t=n(3899);const i=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/52182.735ff091.chunk.js b/ydb/core/viewer/monitoring/static/js/52182.735ff091.chunk.js new file mode 100644 index 0000000000..3db903bf7e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/52182.735ff091.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[52182],{52182:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function r(e){return e%100==2}function a(e){return e%100==3||e%100==4}function m(e,n,t,m){var u=e+" ";switch(t){case"s":return n||m?"nekaj sekund":"nekaj sekundami";case"m":return n?"ena minuta":"eno minuto";case"mm":return r(e)?u+(n||m?"minuti":"minutama"):a(e)?u+(n||m?"minute":"minutami"):u+(n||m?"minut":"minutami");case"h":return n?"ena ura":"eno uro";case"hh":return r(e)?u+(n||m?"uri":"urama"):a(e)?u+(n||m?"ure":"urami"):u+(n||m?"ur":"urami");case"d":return n||m?"en dan":"enim dnem";case"dd":return r(e)?u+(n||m?"dneva":"dnevoma"):u+(n||m?"dni":"dnevi");case"M":return n||m?"en mesec":"enim mesecem";case"MM":return r(e)?u+(n||m?"meseca":"mesecema"):a(e)?u+(n||m?"mesece":"meseci"):u+(n||m?"mesecev":"meseci");case"y":return n||m?"eno leto":"enim letom";case"yy":return r(e)?u+(n||m?"leti":"letoma"):a(e)?u+(n||m?"leta":"leti"):u+(n||m?"let":"leti")}}var u={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:m,m:m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};return t.default.locale(u,null,!0),u}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/523.17013d4e.chunk.js b/ydb/core/viewer/monitoring/static/js/523.17013d4e.chunk.js deleted file mode 100644 index 00e9a25fa4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/523.17013d4e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[523],{30523:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es-do",weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekStart:1,relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/52518.2a3ff21a.chunk.js b/ydb/core/viewer/monitoring/static/js/52518.2a3ff21a.chunk.js new file mode 100644 index 0000000000..feb4e1d827 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/52518.2a3ff21a.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 52518.2a3ff21a.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[52518],{52518:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>o});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/52518.2a3ff21a.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/52518.2a3ff21a.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js b/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js deleted file mode 100644 index 2d9d1f59d8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5252.991dcab8.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5252],{65252:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>h,language:()=>b});var a,r,m=n(80781),l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of o(t))d.call(e,r)||r===n||l(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e},c={};s(c,a=m,"default"),r&&s(r,a,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/52527.57100447.chunk.js b/ydb/core/viewer/monitoring/static/js/52527.57100447.chunk.js new file mode 100644 index 0000000000..2ac62272e4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/52527.57100447.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[52527],{24376:e=>{function a(e){!function(e){function a(a,n){e.languages[a]&&e.languages.insertBefore(a,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,t={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},s={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};a("csharp",t),a("fsharp",t),a("vbnet",s)}(e)}e.exports=a,a.displayName="xmlDoc",a.aliases=[]},52527:(e,a,n)=>{n.d(a,{default:()=>s});var t=n(24376);const s=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5254.ef9c1c59.chunk.js b/ydb/core/viewer/monitoring/static/js/5254.ef9c1c59.chunk.js new file mode 100644 index 0000000000..bb2c71835c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5254.ef9c1c59.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5254],{5254:(e,a,n)=>{n.d(a,{default:()=>t});var i=n(65165);const t=n.n(i)()},65165:e=>{function a(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}e.exports=a,a.displayName="dhall",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/52541.7c3f886c.chunk.js b/ydb/core/viewer/monitoring/static/js/52541.7c3f886c.chunk.js new file mode 100644 index 0000000000..c87ec3e452 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/52541.7c3f886c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[52541],{52541:(E,T,I)=>{I.d(T,{default:()=>R});var A=I(55890);const R=I.n(A)()},55890:(E,T,I)=>{var A=I(70502);function R(E){E.register(A),E.languages.plsql=E.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),E.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}E.exports=R,R.displayName="plsql",R.aliases=[]},70502:E=>{function T(E){E.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}E.exports=T,T.displayName="sql",T.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5282.37c7be51.chunk.js b/ydb/core/viewer/monitoring/static/js/5282.37c7be51.chunk.js new file mode 100644 index 0000000000..1235a841f5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5282.37c7be51.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5282],{5282:(E,T,R)=>{R.d(T,{default:()=>I});var N=R(37253);const I=R.n(N)()},7208:E=>{function T(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}E.exports=T,T.displayName="basic",T.aliases=[]},37253:(E,T,R)=>{var N=R(37260),I=R(54061);function O(E){E.register(N),E.register(I),E.languages["t4-vb"]=E.languages["t4-templating"].createT4("vbnet")}E.exports=O,O.displayName="t4Vb",O.aliases=[]},37260:E=>{function T(E){!function(E){function T(E,T,R){return{pattern:RegExp("<#"+E+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+E+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:T,alias:R}}}}E.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(R){var N=E.languages[R],I="language-"+R;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:T("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:T("=",N,I),"class-feature":T("\\+",N,I),standard:T("",N,I)}}}}})}(E)}E.exports=T,T.displayName="t4Templating",T.aliases=[]},54061:(E,T,R)=>{var N=R(7208);function I(E){E.register(N),E.languages.vbnet=E.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}E.exports=I,I.displayName="vbnet",I.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/53338.161bc4dd.chunk.js b/ydb/core/viewer/monitoring/static/js/53338.161bc4dd.chunk.js new file mode 100644 index 0000000000..6b98c8f9c6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/53338.161bc4dd.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 53338.161bc4dd.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[53338],{53338:(e,s,t)=>{t.r(s),t.d(s,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},i={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/53338.161bc4dd.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/53338.161bc4dd.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/53672.a70ebf8e.chunk.js b/ydb/core/viewer/monitoring/static/js/53672.a70ebf8e.chunk.js new file mode 100644 index 0000000000..ebc35a470c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/53672.a70ebf8e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[53672],{53672:function(e,a,t){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e);function u(e,a,t,u){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],m:["\xfche minuti","\xfcks minut"],mm:["%d minuti","%d minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:["%d tunni","%d tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:["%d kuu","%d kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:["%d aasta","%d aastat"]};return a?(s[t][2]?s[t][2]:s[t][1]).replace("%d",e):(u?s[t][0]:s[t][1]).replace("%d",e)}var s={name:"et",weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:u,m:u,mm:u,h:u,hh:u,d:u,dd:"%d p\xe4eva",M:u,MM:u,y:u,yy:u},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(s,null,!0),s}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js b/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js deleted file mode 100644 index 49501acf60..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5382.3a2e6ac6.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5382],{35382:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},o={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\</,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.<.>"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5393.cb636c81.chunk.js b/ydb/core/viewer/monitoring/static/js/5393.cb636c81.chunk.js new file mode 100644 index 0000000000..2d4c10759c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5393.cb636c81.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5393],{5393:(e,n,r)=>{r.d(n,{default:()=>i});var t=r(31418);const i=r.n(t)()},31418:e=>{function n(e){!function(e){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,t={};for(var i in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:t},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:t},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:t},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:t},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:t}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==i&&(t[i]=e.languages["web-idl"][i]);e.languages.webidl=e.languages["web-idl"]}(e)}e.exports=n,n.displayName="webIdl",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5401.dfb63825.chunk.js b/ydb/core/viewer/monitoring/static/js/5401.dfb63825.chunk.js deleted file mode 100644 index 8ab11e1998..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5401.dfb63825.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5401],{65401:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-ie",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5411.001c1dc7.chunk.js b/ydb/core/viewer/monitoring/static/js/5411.001c1dc7.chunk.js new file mode 100644 index 0000000000..34e89f3e06 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5411.001c1dc7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5411],{5411:(e,$,t)=>{t.d($,{default:()=>n});var a=t(69004);const n=t.n(a)()},69004:e=>{function $(e){!function(e){var $=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],t="(?:"+($=$.map((function(e){return e.replace("$","\\$")}))).join("|")+")\\b";e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+t+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(e)}e.exports=$,$.displayName="mongodb",$.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5418.00d0c5d1.chunk.js b/ydb/core/viewer/monitoring/static/js/5418.00d0c5d1.chunk.js deleted file mode 100644 index ca14018437..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5418.00d0c5d1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5418],{15418:function(e,t,_){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),d={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return _.default.locale(d,null,!0),d}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5438.91fe1c76.chunk.js b/ydb/core/viewer/monitoring/static/js/5438.91fe1c76.chunk.js deleted file mode 100644 index 1a9d0afcef..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5438.91fe1c76.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5438],{8300:(e,a,r)=>{r.d(a,{BB:()=>l,TL:()=>c,XT:()=>g});var n=r(43733),t=r(32138),o=r(62422);const l={...t.A,'pre[class*="language-"]':{...t.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...t.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},g={...o.A,'pre[class*="language-"]':{...o.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...o.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function c(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}c.displayName="yql",c.aliases=["yql"]},45438:(e,a,r)=>{r.r(a),r.d(a,{ConnectToDBSyntaxHighlighter:()=>x});var n=r(22680),t=r(96873),o=r(96298),l=r(80719),g=r(81571),c=r(46306),s=r(1431),i=r(56421),d=r(29866),p=r(30249),u=r(81243),b=r(62422),y=r(77506),h=r(8300),A=r(63636),m=r(60712);o.A.registerLanguage("bash",l.A),o.A.registerLanguage("cpp",g.A),o.A.registerLanguage("csharp",c.A),o.A.registerLanguage("go",s.A),o.A.registerLanguage("java",i.A),o.A.registerLanguage("javascript",d.A),o.A.registerLanguage("php",p.A),o.A.registerLanguage("python",u.A);const w={...h.XT,'pre[class*="language-"]':{...h.XT['pre[class*="language-"]'],background:b.A['pre[class*="language-"]'].background,scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.XT['code[class*="language-"]'],whiteSpace:"pre"}},k={...h.BB,'pre[class*="language-"]':{...h.BB['pre[class*="language-"]'],background:"var(--g-color-base-misc-light)",scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.BB['code[class*="language-"]'],whiteSpace:"pre"}},v=(0,y.cn)("ydb-connect-to-db-syntax-highlighter");function x({text:e,language:a}){const r=(0,n.i)(),l="dark"===r||"dark-hc"===r;return(0,m.jsxs)("div",{className:v("wrapper"),children:[(0,m.jsx)("div",{className:v("sticky-container"),children:(0,m.jsx)(t.b,{view:"flat-secondary",size:"s",className:v("copy"),text:e,children:(0,A.A)("copy")})}),(0,m.jsx)(o.A,{language:a,style:l?w:k,customStyle:{height:"100%"},children:e})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/54520.c2776d7f.chunk.js b/ydb/core/viewer/monitoring/static/js/54520.c2776d7f.chunk.js new file mode 100644 index 0000000000..396ca6ed5e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/54520.c2776d7f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[54520],{54520:(e,t,i)=>{i.d(t,{default:()=>s});var a=i(93425);const s=i.n(a)()},93425:e=>{function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}e.exports=t,t.displayName="solidity",t.aliases=["sol"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5453.921caa82.chunk.js b/ydb/core/viewer/monitoring/static/js/5453.921caa82.chunk.js deleted file mode 100644 index 84230b0ccf..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5453.921caa82.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5453],{25453:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"mk",weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),weekStart:1,weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),ordinal:function(_){return _},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js b/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js deleted file mode 100644 index c1ac2b455b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5454.e8f64f1a.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5454],{55454:(t,e,r)=>{r.r(e),r.d(e,{conf:()=>s,language:()=>o});var s={brackets:[],autoClosingPairs:[],surroundingPairs:[]},o={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/54597.f81d6f07.chunk.js b/ydb/core/viewer/monitoring/static/js/54597.f81d6f07.chunk.js new file mode 100644 index 0000000000..66f3a57bf8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/54597.f81d6f07.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[54597],{45488:e=>{function s(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}e.exports=s,s.displayName="pcaxis",s.aliases=["px"]},54597:(e,s,n)=>{n.d(s,{default:()=>t});var a=n(45488);const t=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/54651.40344b3d.chunk.js b/ydb/core/viewer/monitoring/static/js/54651.40344b3d.chunk.js new file mode 100644 index 0000000000..2215df2757 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/54651.40344b3d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[54651],{54651:(a,t,e)=>{e.d(t,{default:()=>n});var o=e(61618);const n=e.n(o)()},61618:a=>{function t(a){a.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}a.exports=t,t.displayName="roboconf",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/54678.5a7b7b35.chunk.js b/ydb/core/viewer/monitoring/static/js/54678.5a7b7b35.chunk.js new file mode 100644 index 0000000000..4f79f8d4dd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/54678.5a7b7b35.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 54678.5a7b7b35.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[54678],{54678:(e,n,s)=>{s.r(n),s.d(n,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/54678.5a7b7b35.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/54678.5a7b7b35.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/54781.9ee0aecd.chunk.js b/ydb/core/viewer/monitoring/static/js/54781.9ee0aecd.chunk.js new file mode 100644 index 0000000000..77fa9c2334 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/54781.9ee0aecd.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[54781],{54781:(e,t,n)=>{n.d(t,{default:()=>i});var a=n(76466);const i=n.n(a)()},76466:e=>{function t(e){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},i=0,r=n.length;i<r;i++){var s=n[i];s="string"===typeof s?{filter:s,language:s}:s,e.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(t.replace("<filter_name>",(function(){return s.filter})),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:e.languages[s.language]}}})}e.languages.insertBefore("pug","filter",a)}(e)}e.exports=t,t.displayName="pug",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/54861.f927c937.chunk.js b/ydb/core/viewer/monitoring/static/js/54861.f927c937.chunk.js new file mode 100644 index 0000000000..6f33626f45 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/54861.f927c937.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[54861],{5314:e=>{function a(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}e.exports=a,a.displayName="excelFormula",a.aliases=[]},54861:(e,a,n)=>{n.d(a,{default:()=>i});var t=n(5314);const i=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5530.da339b78.chunk.js b/ydb/core/viewer/monitoring/static/js/5530.da339b78.chunk.js new file mode 100644 index 0000000000..23a16bef23 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5530.da339b78.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5530],{5530:(e,s,a)=>{a.d(s,{default:()=>t});var n=a(79031);const t=a.n(n)()},79031:e=>{function s(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}e.exports=s,s.displayName="processing",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js b/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js deleted file mode 100644 index 15c4e16ac8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5542.7c13d444.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5542],{15542:(e,t,a)=>{a.r(t),a.d(t,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/55454.4f52583e.chunk.js b/ydb/core/viewer/monitoring/static/js/55454.4f52583e.chunk.js new file mode 100644 index 0000000000..f9c165dd1b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55454.4f52583e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 55454.4f52583e.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55454],{55454:(t,e,r)=>{r.r(e),r.d(e,{conf:()=>s,language:()=>o});var s={brackets:[],autoClosingPairs:[],surroundingPairs:[]},o={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/55454.4f52583e.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/55454.4f52583e.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/55528.e1e10ce0.chunk.js b/ydb/core/viewer/monitoring/static/js/55528.e1e10ce0.chunk.js new file mode 100644 index 0000000000..d229c00792 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55528.e1e10ce0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55528],{54817:e=>{function n(e){!function(e){e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}(e)}e.exports=n,n.displayName="tremor",n.aliases=[]},55528:(e,n,t)=>{t.d(n,{default:()=>a});var r=t(54817);const a=t.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/55534.43828e20.chunk.js b/ydb/core/viewer/monitoring/static/js/55534.43828e20.chunk.js new file mode 100644 index 0000000000..ef20dba1a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55534.43828e20.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55534],{8063:(e,s,a)=>{var n=a(90323);function r(e){e.register(n),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}e.exports=r,r.displayName="aspnet",r.aliases=[]},55534:(e,s,a)=>{a.d(s,{default:()=>r});var n=a(8063);const r=a.n(n)()},90323:e=>{function s(e){!function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,(function(e,a){return"(?:"+s[+a]+")"}))}function a(e,a,n){return RegExp(s(e,a),n||"")}function n(e,s){for(var a=0;a<s;a++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var r="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=c(t),l=RegExp(c(r+" "+t+" "+i+" "+o)),p=c(t+" "+i+" "+o),d=c(r+" "+t+" "+o),g=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=n(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),v=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,b,k]),w=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,k]),_={keyword:l,punctuation:/[<>()?,.:[\]]/},$=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,B=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:_},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,x]),lookbehind:!0,inside:_},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[u,f]),lookbehind:!0,inside:_},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:_},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:_},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,h]),inside:_}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:_},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:_,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:_,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:_}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,f,h,x,l.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,b]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:_},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var S=B+"|"+$,E=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[S]),C=n(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[E]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,C]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[C]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,A=n(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[E]),2),P=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,z]),I=n(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[S]),2),N=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,z]);function F(s,n){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:F(P,A)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:F(N,I)}],char:{pattern:RegExp($),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=s,s.displayName="csharp",s.aliases=["dotnet","cs"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/55651.bd57c77c.chunk.js b/ydb/core/viewer/monitoring/static/js/55651.bd57c77c.chunk.js new file mode 100644 index 0000000000..29ddcb90fa --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55651.bd57c77c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55651],{55651:(e,n,r)=>{r.d(n,{default:()=>a});var t=r(63270);const a=r.n(t)()},63270:e=>{function n(e){!function(e){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},t={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};t.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:t}},t.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:t}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:t}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:t}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:t}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:t.interpolation}},rest:t}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:t.interpolation,comment:t.comment,punctuation:/[{},]/}},func:t.func,string:t.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:t.interpolation,punctuation:/[{}()\[\];:.]/}}(e)}e.exports=n,n.displayName="stylus",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5579.a2c9515c.chunk.js b/ydb/core/viewer/monitoring/static/js/5579.a2c9515c.chunk.js deleted file mode 100644 index 55fcc28fd8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5579.a2c9515c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5579],{65579:function(_,e,a){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var a=e(_),t={name:"tzl",weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),weekStart:1,weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),ordinal:function(_){return _},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/55816.ceb201d4.chunk.js b/ydb/core/viewer/monitoring/static/js/55816.ceb201d4.chunk.js new file mode 100644 index 0000000000..f8b9533b32 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55816.ceb201d4.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55816],{55816:function(e,_,n){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=_(e),t={name:"tk",weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e){return e+"."}};return n.default.locale(t,null,!0),t}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/55853.2ca378d0.chunk.js b/ydb/core/viewer/monitoring/static/js/55853.2ca378d0.chunk.js new file mode 100644 index 0000000000..ad8e4860f7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55853.2ca378d0.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55853],{55853:function(s,i,e){s.exports=function(s){"use strict";function i(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}var e=i(s),M="sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),a="sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),d=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,l=function(s,i){return d.test(i)?M[s.month()]:a[s.month()]};l.s=a,l.f=M;var Y={name:"lt",weekdays:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),weekdaysShort:"sek_pir_ant_tre_ket_pen_\u0161e\u0161".split("_"),weekdaysMin:"s_p_a_t_k_pn_\u0161".split("_"),months:l,monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),ordinal:function(s){return s+"."},weekStart:1,relativeTime:{future:"u\u017e %s",past:"prie\u0161 %s",s:"kelias sekundes",m:"minut\u0119",mm:"%d minutes",h:"valand\u0105",hh:"%d valandas",d:"dien\u0105",dd:"%d dienas",M:"m\u0117nes\u012f",MM:"%d m\u0117nesius",y:"metus",yy:"%d metus"},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"}};return e.default.locale(Y,null,!0),Y}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/55990.c86b7669.chunk.js b/ydb/core/viewer/monitoring/static/js/55990.c86b7669.chunk.js new file mode 100644 index 0000000000..3625e0fba7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/55990.c86b7669.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[55990],{16027:e=>{function a(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}e.exports=a,a.displayName="ebnf",a.aliases=[]},55990:(e,a,n)=>{n.d(a,{default:()=>i});var t=n(16027);const i=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56013.d9e34466.chunk.js b/ydb/core/viewer/monitoring/static/js/56013.d9e34466.chunk.js new file mode 100644 index 0000000000..14a9875e0f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56013.d9e34466.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 56013.d9e34466.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56013],{13847:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",b="[object Array]",w="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",k="[object Map]",O="[object Number]",E="[object Object]",I="[object Promise]",R="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",L="[object WeakMap]",W="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",U="[object Float64Array]",$="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",P="[object Uint32Array]",Z=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",On="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",En="\\u2700-\\u27bf",In="a-z\\xdf-\\xf6\\xf8-\\xff",Rn="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ln="["+kn+"]",Wn="["+Sn+"]",Bn="["+On+"]",Tn="\\d+",Un="["+En+"]",$n="["+In+"]",Dn="[^"+kn+Sn+Tn+En+In+Rn+"]",Mn="\\ud83c[\\udffb-\\udfff]",Nn="[^"+kn+"]",Fn="(?:\\ud83c[\\udde6-\\uddff]){2}",qn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+Rn+"]",Zn="\\u200d",Vn="(?:"+$n+"|"+Dn+")",Kn="(?:"+Pn+"|"+Dn+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Bn+"|"+Mn+")"+"?",Yn="["+zn+"]?",Qn=Yn+Jn+("(?:"+Zn+"(?:"+[Nn,Fn,qn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Un,Fn,qn].join("|")+")"+Qn,nt="(?:"+[Nn+Bn+"?",Bn,Fn,qn,Ln].join("|")+")",tt=RegExp(Cn,"g"),rt=RegExp(Bn,"g"),et=RegExp(Mn+"(?="+Mn+")|"+nt+Qn,"g"),ut=RegExp([Pn+"?"+$n+"+"+Gn+"(?="+[Wn,Pn,"$"].join("|")+")",Kn+"+"+Hn+"(?="+[Wn,Pn+Vn,"$"].join("|")+")",Pn+"?"+Vn+"+"+Gn,Pn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+Zn+kn+On+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[T]=ct[U]=ct[$]=ct[D]=ct[M]=ct[N]=ct[F]=ct[q]=ct[P]=!0,ct[d]=ct[b]=ct[W]=ct[w]=ct[B]=ct[m]=ct[x]=ct[j]=ct[k]=ct[O]=ct[E]=ct[R]=ct[z]=ct[S]=ct[L]=!1;var lt={};lt[d]=lt[b]=lt[W]=lt[B]=lt[w]=lt[m]=lt[T]=lt[U]=lt[$]=lt[D]=lt[M]=lt[k]=lt[O]=lt[E]=lt[R]=lt[z]=lt[S]=lt[C]=lt[N]=lt[F]=lt[q]=lt[P]=!0,lt[x]=lt[j]=lt[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,bt=dt&&dt.exports===yt,wt=bt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,jt=mt&&mt.isDate,At=mt&&mt.isMap,kt=mt&&mt.isRegExp,Ot=mt&&mt.isSet,Et=mt&&mt.isTypedArray;function It(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Rt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function zt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function St(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function Ct(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function Lt(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function Wt(n,t){return!!(null==n?0:n.length)&&Pt(n,t,0)>-1}function Bt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function Tt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function Ut(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function $t(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function Dt(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function Mt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var Nt=Gt("length");function Ft(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function qt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function Pt(n,t,r){return t===t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):qt(n,Vt,r)}function Zt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function Vt(n){return n!==n}function Kt(n,t){var r=null==n?0:n.length;return r?Yt(n,t)/r:_}function Gt(n){return function(t){return null==t?u:t[n]}}function Ht(n){return function(t){return null==n?u:n[t]}}function Jt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Yt(n,t){for(var r,e=-1,i=n.length;++e<i;){var o=t(n[e]);o!==u&&(r=r===u?o:r+o)}return r}function Qt(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Xt(n){return n?n.slice(0,gr(n)+1).replace(fn,""):n}function nr(n){return function(t){return n(t)}}function tr(n,t){return Tt(t,(function(t){return n[t]}))}function rr(n,t){return n.has(t)}function er(n,t){for(var r=-1,e=n.length;++r<e&&Pt(t,n[r],0)>-1;);return r}function ur(n,t){for(var r=n.length;r--&&Pt(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==f||(n[r]=f,i[u++]=r)}return i}function hr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function pr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function vr(n){return ar(n)?function(n){var t=et.lastIndex=0;for(;et.test(n);)++t;return t}(n):Nt(n)}function _r(n){return ar(n)?function(n){return n.match(et)||[]}(n):function(n){return n.split("")}(n)}function gr(n){for(var t=n.length;t--&&an.test(n.charAt(t)););return t}var yr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,an=t.Error,kn=t.Function,On=t.Math,En=t.Object,In=t.RegExp,Rn=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Ln=En.prototype,Wn=t["__core-js_shared__"],Bn=Cn.toString,Tn=Ln.hasOwnProperty,Un=0,$n=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Dn=Ln.toString,Mn=Bn.call(En),Nn=gt._,Fn=In("^"+Bn.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=bt?t.Buffer:u,Pn=t.Symbol,Zn=t.Uint8Array,Vn=qn?qn.allocUnsafe:u,Kn=lr(En.getPrototypeOf,En),Gn=En.create,Hn=Ln.propertyIsEnumerable,Jn=Sn.splice,Yn=Pn?Pn.isConcatSpreadable:u,Qn=Pn?Pn.iterator:u,Xn=Pn?Pn.toStringTag:u,nt=function(){try{var n=si(En,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=On.ceil,_t=On.floor,yt=En.getOwnPropertySymbols,dt=qn?qn.isBuffer:u,wt=t.isFinite,mt=Sn.join,Nt=lr(En.keys,En),Ht=On.max,br=On.min,wr=e.now,mr=t.parseInt,xr=On.random,jr=Sn.reverse,Ar=si(t,"DataView"),kr=si(t,"Map"),Or=si(t,"Promise"),Er=si(t,"Set"),Ir=si(t,"WeakMap"),Rr=si(En,"create"),zr=Ir&&new Ir,Sr={},Cr=Ui(Ar),Lr=Ui(kr),Wr=Ui(Or),Br=Ui(Er),Tr=Ui(Ir),Ur=Pn?Pn.prototype:u,$r=Ur?Ur.valueOf:u,Dr=Ur?Ur.toString:u;function Mr(n){if(tf(n)&&!Po(n)&&!(n instanceof Pr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return $i(n)}return new qr(n)}var Nr=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Fr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Pr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Zr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Vr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Kr;++t<r;)this.add(n[t])}function Hr(n){var t=this.__data__=new Vr(n);this.size=t.size}function Jr(n,t){var r=Po(n),e=!r&&qo(n),u=!r&&!e&&Go(n),i=!r&&!e&&!u&&lf(n),o=r||e||u||i,f=o?Qt(n.length,Rn):[],a=f.length;for(var c in n)!t&&!Tn.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||di(c,a))||f.push(c);return f}function Yr(n){var t=n.length;return t?n[Ge(0,t-1)]:u}function Qr(n,t){return Wi(Ru(n),fe(t,0,n.length))}function Xr(n){return Wi(Ru(n))}function ne(n,t,r){(r!==u&&!Mo(n[t],r)||r===u&&!(t in n))&&ie(n,t,r)}function te(n,t,r){var e=n[t];Tn.call(n,t)&&Mo(e,r)&&(r!==u||t in n)||ie(n,t,r)}function re(n,t){for(var r=n.length;r--;)if(Mo(n[r][0],t))return r;return-1}function ee(n,t,r,e){return he(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ue(n,t){return n&&zu(t,Cf(t),n)}function ie(n,t,r){"__proto__"==t&&nt?nt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function oe(n,t){for(var e=-1,i=t.length,o=r(i),f=null==n;++e<i;)o[e]=f?u:Ef(n,t[e]);return o}function fe(n,t,r){return n===n&&(r!==u&&(n=n<=r?n:r),t!==u&&(n=n>=t?n:t)),n}function ae(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=Po(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return Ru(n,f)}else{var h=vi(n),p=h==j||h==A;if(Go(n))return ju(n,a);if(h==E||h==d||p&&!i){if(f=c||p?{}:gi(n),!a)return c?function(n,t){return zu(n,pi(n),t)}(n,function(n,t){return n&&zu(t,Lf(t),n)}(f,n)):function(n,t){return zu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return Au(n);case w:case m:return new e(+n);case B:return function(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case U:case $:case D:case M:case N:case F:case q:case P:return ku(n,r);case k:return new e;case O:case S:return new e(n);case R:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,$r?En($r.call(u)):{}}var u}(n,h,a)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ae(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ae(e,t,r,u,n,o))}));var _=s?u:(l?c?ui:ei:c?Lf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ae(e,t,r,u,n,o))})),f}function ce(n,t,r){var e=r.length;if(null==n)return!e;for(n=En(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new zn(i);return zi((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Tt(t,nr(r))),e?(i=Bt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s===s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Mr.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:Mr}},Mr.prototype=Fr.prototype,Mr.prototype.constructor=Mr,qr.prototype=Nr(Fr.prototype),qr.prototype.constructor=qr,Pr.prototype=Nr(Fr.prototype),Pr.prototype.constructor=Pr,Zr.prototype.clear=function(){this.__data__=Rr?Rr(null):{},this.size=0},Zr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Zr.prototype.get=function(n){var t=this.__data__;if(Rr){var r=t[n];return r===o?u:r}return Tn.call(t,n)?t[n]:u},Zr.prototype.has=function(n){var t=this.__data__;return Rr?t[n]!==u:Tn.call(t,n)},Zr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Rr&&t===u?o:t,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=re(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Vr.prototype.get=function(n){var t=this.__data__,r=re(t,n);return r<0?u:t[r][1]},Vr.prototype.has=function(n){return re(this.__data__,n)>-1},Vr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Zr,map:new(kr||Vr),string:new Zr}},Kr.prototype.delete=function(n){var t=ci(this,n).delete(n);return this.size-=t?1:0,t},Kr.prototype.get=function(n){return ci(this,n).get(n)},Kr.prototype.has=function(n){return ci(this,n).has(n)},Kr.prototype.set=function(n,t){var r=ci(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Vr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Kr(e)}return r.set(n,t),this.size=r.size,this};var he=Lu(we),pe=Lu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e<i;){var o=n[e],f=t(o);if(null!=f&&(a===u?f===f&&!cf(f):r(f,a)))var a=f,c=o}return c}function ge(n,t){var r=[];return he(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function ye(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=yi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ye(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var de=Wu(),be=Wu(!0);function we(n,t){return n&&de(n,t,Cf)}function me(n,t){return n&&be(n,t,Cf)}function xe(n,t){return Lt(t,(function(t){return Yo(n[t])}))}function je(n,t){for(var r=0,e=(t=bu(t,n)).length;null!=n&&r<e;)n=n[Ti(t[r++])];return r&&r==e?n:u}function Ae(n,t,r){var e=t(n);return Po(n)?e:Ut(e,r(n))}function ke(n){return null==n?n===u?"[object Undefined]":"[object Null]":Xn&&Xn in En(n)?function(n){var t=Tn.call(n,Xn),r=n[Xn];try{n[Xn]=u;var e=!0}catch(o){}var i=Dn.call(n);e&&(t?n[Xn]=r:delete n[Xn]);return i}(n):function(n){return Dn.call(n)}(n)}function Oe(n,t){return n>t}function Ee(n,t){return null!=n&&Tn.call(n,t)}function Ie(n,t){return null!=n&&t in En(n)}function Re(n,t,e){for(var i=e?Bt:Wt,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Tt(h,nr(t))),l=br(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Gr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p<o&&s.length<l;){var _=h[p],g=t?t(_):_;if(_=e||0!==_?_:0,!(v?rr(v,g):i(s,g,e))){for(a=f;--a;){var y=c[a];if(!(y?rr(y,g):i(n[a],g,e)))continue n}v&&v.push(g),s.push(_)}}return s}function ze(n,t,r){var e=null==(n=Ei(n,t=bu(t,n)))?n:n[Ti(Hi(t))];return null==e?u:It(e,n,r)}function Se(n){return tf(n)&&ke(n)==d}function Ce(n,t,r,e,i){return n===t||(null==n||null==t||!tf(n)&&!tf(t)?n!==n&&t!==t:function(n,t,r,e,i,o){var f=Po(n),a=Po(t),c=f?b:vi(n),l=a?b:vi(t),s=(c=c==d?E:c)==E,h=(l=l==d?E:l)==E,p=c==l;if(p&&Go(n)){if(!Go(t))return!1;f=!0,s=!1}if(p&&!s)return o||(o=new Hr),f||lf(n)?ti(n,t,r,e,i,o):function(n,t,r,e,u,i,o){switch(r){case B:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case W:return!(n.byteLength!=t.byteLength||!i(new Zn(n),new Zn(t)));case w:case m:case O:return Mo(+n,+t);case x:return n.name==t.name&&n.message==t.message;case R:case S:return n==t+"";case k:var f=cr;case z:var a=1&e;if(f||(f=hr),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ti(f(n),f(t),e,u,i,o);return o.delete(n),l;case C:if($r)return $r.call(n)==$r.call(t)}return!1}(n,t,c,r,e,i,o);if(!(1&r)){var v=s&&Tn.call(n,"__wrapped__"),_=h&&Tn.call(t,"__wrapped__");if(v||_){var g=v?n.value():n,y=_?t.value():t;return o||(o=new Hr),i(g,y,r,e,o)}}if(!p)return!1;return o||(o=new Hr),function(n,t,r,e,i,o){var f=1&r,a=ei(n),c=a.length,l=ei(t),s=l.length;if(c!=s&&!f)return!1;var h=c;for(;h--;){var p=a[h];if(!(f?p in t:Tn.call(t,p)))return!1}var v=o.get(n),_=o.get(t);if(v&&_)return v==t&&_==n;var g=!0;o.set(n,t),o.set(t,n);var y=f;for(;++h<c;){var d=n[p=a[h]],b=t[p];if(e)var w=f?e(b,d,p,t,n,o):e(d,b,p,n,t,o);if(!(w===u?d===b||i(d,b,r,e,o):w)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var m=n.constructor,x=t.constructor;m==x||!("constructor"in n)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(n),o.delete(t),g}(n,t,r,e,i,o)}(n,t,r,e,Ce,i))}function Le(n,t,r,e){var i=r.length,o=i,f=!e;if(null==n)return!o;for(n=En(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===u&&!(c in n))return!1}else{var h=new Hr;if(e)var p=e(l,s,c,n,t,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function We(n){return!(!nf(n)||(t=n,$n&&$n in t))&&(Yo(n)?Fn:bn).test(Ui(n));var t}function Be(n){return"function"==typeof n?n:null==n?ua:"object"==typeof n?Po(n)?Ne(n[0],n[1]):Me(n):pa(n)}function Te(n){if(!ji(n))return Nt(n);var t=[];for(var r in En(n))Tn.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Ue(n){if(!nf(n))return function(n){var t=[];if(null!=n)for(var r in En(n))t.push(r);return t}(n);var t=ji(n),r=[];for(var e in n)("constructor"!=e||!t&&Tn.call(n,e))&&r.push(e);return r}function $e(n,t){return n<t}function De(n,t){var e=-1,u=Vo(n)?r(n.length):[];return he(n,(function(n,r,i){u[++e]=t(n,r,i)})),u}function Me(n){var t=li(n);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Ne(n,t){return wi(n)&&Ai(t)?ki(Ti(n),t):function(r){var e=Ef(r,n);return e===u&&e===t?If(r,n):Ce(t,e,3)}}function Fe(n,t,r,e,i){n!==t&&de(t,(function(o,f){if(i||(i=new Hr),nf(o))!function(n,t,r,e,i,o,f){var a=Ii(n,r),c=Ii(t,r),l=f.get(c);if(l)return void ne(n,r,l);var s=o?o(a,c,r+"",n,t,f):u,h=s===u;if(h){var p=Po(c),v=!p&&Go(c),_=!p&&!v&&lf(c);s=c,p||v||_?Po(a)?s=a:Ko(a)?s=Ru(a):v?(h=!1,s=ju(c,!0)):_?(h=!1,s=ku(c,!0)):s=[]:uf(c)||qo(c)?(s=a,qo(a)?s=df(a):nf(a)&&!Yo(a)||(s=gi(c))):h=!1}h&&(f.set(c,s),i(s,c,e,o,f),f.delete(c));ne(n,r,s)}(n,t,f,r,Fe,e,i);else{var a=e?e(Ii(n,f),o,f+"",n,t,i):u;a===u&&(a=o),ne(n,f,a)}}),Lf)}function qe(n,t){var r=n.length;if(r)return di(t+=t<0?r:0,r)?n[t]:u}function Pe(n,t,r){t=t.length?Tt(t,(function(n){return Po(n)?function(t){return je(t,1===n.length?n[0]:n)}:n})):[ua];var e=-1;t=Tt(t,nr(ai()));var u=De(n,(function(n,r,u){var i=Tt(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(u,(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=Ou(u[e],i[e]);if(a)return e>=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ze(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=je(n,o);r(f,o)&&Xe(i,bu(o,n),f)}return i}function Ve(n,t,r,e){var u=e?Zt:Pt,i=-1,o=t.length,f=n;for(n===t&&(t=Ru(t)),r&&(f=Tt(n,nr(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ke(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Oi(n,t,ua),n+"")}function Ye(n){return Yr(Nf(n))}function Qe(n,t){var r=Nf(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=bu(t,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=Ti(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(i!=f){var s=a[c];(l=e?e(s,c,a):u)===u&&(l=nf(s)?s:di(t[i+1])?[]:{})}te(a,c,l),a=a[c]}return n}var nu=zr?function(n,t){return zr.set(n,t),n}:ua,tu=nt?function(n,t){return nt(n,"toString",{configurable:!0,enumerable:!1,value:ta(t),writable:!0})}:ua;function ru(n){return Wi(Nf(n))}function eu(n,t,e){var u=-1,i=n.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u<i;)o[u]=n[u+t];return o}function uu(n,t){var r;return he(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function iu(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!cf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ou(n,t,ua,r)}function ou(n,t,r,e){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!==t,a=null===t,c=cf(t),l=t===u;i<o;){var s=_t((i+o)/2),h=r(n[s]),p=h!==u,v=null===h,_=h===h,g=cf(h);if(f)var y=e||_;else y=l?_&&(e||p):a?_&&p&&(e||!v):c?_&&p&&!v&&(e||!g):!v&&!g&&(e?h<=t:h<t);y?i=s+1:o=s}return br(o,4294967294)}function fu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Mo(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function au(n){return"number"==typeof n?n:cf(n)?_:+n}function cu(n){if("string"==typeof n)return n;if(Po(n))return Tt(n,cu)+"";if(cf(n))return Dr?Dr.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function lu(n,t,r){var e=-1,u=Wt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=Bt;else if(i>=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,a=new Gr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s===s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function su(n,t){return null==(n=Ei(n,t=bu(t,n)))||delete n[Ti(Hi(t))]}function hu(n,t,r,e){return Xe(n,t,r(je(n,t)),e)}function pu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?eu(n,e?0:i,e?i+1:u):eu(n,e?i+1:0,e?u:i)}function vu(n,t){var r=n;return r instanceof Pr&&(r=r.value()),$t(t,(function(n,t){return t.func.apply(t.thisArg,Ut([n],t.args))}),r)}function _u(n,t,e){var u=n.length;if(u<2)return u?lu(n[0]):[];for(var i=-1,o=r(u);++i<u;)for(var f=n[i],a=-1;++a<u;)a!=i&&(o[i]=se(o[i]||f,n[a],t,e));return lu(ye(o,1),t,e)}function gu(n,t,r){for(var e=-1,i=n.length,o=t.length,f={};++e<i;){var a=e<o?t[e]:u;r(f,n[e],a)}return f}function yu(n){return Ko(n)?n:[]}function du(n){return"function"==typeof n?n:ua}function bu(n,t){return Po(n)?n:wi(n,t)?[n]:Bi(bf(n))}var wu=Je;function mu(n,t,r){var e=n.length;return r=r===u?e:r,!t&&r>=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function ju(n,t){if(t)return n.slice();var r=n.length,e=Vn?Vn(r):new n.constructor(r);return n.copy(e),e}function Au(n){var t=new n.constructor(n.byteLength);return new Zn(t).set(new Zn(n)),t}function ku(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Ou(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=cf(n),f=t!==u,a=null===t,c=t===t,l=cf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n<t||l&&r&&i&&!e&&!o||a&&r&&i||!f&&i||!c)return-1}return 0}function Eu(n,t,e,u){for(var i=-1,o=n.length,f=e.length,a=-1,c=t.length,l=Ht(o-f,0),s=r(c+l),h=!u;++a<c;)s[a]=t[a];for(;++i<f;)(h||i<o)&&(s[e[i]]=n[i]);for(;l--;)s[a++]=n[i++];return s}function Iu(n,t,e,u){for(var i=-1,o=n.length,f=-1,a=e.length,c=-1,l=t.length,s=Ht(o-a,0),h=r(s+l),p=!u;++i<s;)h[i]=n[i];for(var v=i;++c<l;)h[v+c]=t[c];for(;++f<a;)(p||i<o)&&(h[v+e[f]]=n[i++]);return h}function Ru(n,t){var e=-1,u=n.length;for(t||(t=r(u));++e<u;)t[e]=n[e];return t}function zu(n,t,r,e){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=e?e(r[a],n[a],a,r,n):u;c===u&&(c=n[a]),i?ie(r,a,c):te(r,a,c)}return r}function Su(n,t){return function(r,e){var u=Po(r)?Rt:ee,i=t?t():{};return u(r,n,ai(e,2),i)}}function Cu(n){return Je((function(t,r){var e=-1,i=r.length,o=i>1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&bi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=En(t);++e<i;){var a=r[e];a&&n(t,a,e,o)}return t}))}function Lu(n,t){return function(r,e){if(null==r)return r;if(!Vo(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=En(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Wu(n){return function(t,r,e){for(var u=-1,i=En(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Bu(n){return function(t){var r=ar(t=bf(t))?_r(t):u,e=r?r[0]:t.charAt(0),i=r?mu(r,1).join(""):t.slice(1);return e[n]()+i}}function Tu(n){return function(t){return $t(Qf(Pf(t).replace(tt,"")),n,"")}}function Uu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(n.prototype),e=n.apply(r,t);return nf(e)?e:r}}function $u(n){return function(t,r,e){var i=En(t);if(!Vo(t)){var o=ai(r,3);t=Cf(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,e);return f>-1?i[o?t[f]:f]:u}}function Du(n){return ri((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==oi(f))var a=new qr([],!0)}for(e=a?e:r;++e<r;){var c=oi(f=t[e]),l="wrapper"==c?ii(f):u;a=l&&mi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oi(l[0])].apply(a,l[3]):1==f.length&&mi(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&Po(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Mu(n,t,e,i,o,f,a,c,l,h){var p=t&s,v=1&t,_=2&t,g=24&t,y=512&t,d=_?u:Uu(n);return function s(){for(var b=arguments.length,w=r(b),m=b;m--;)w[m]=arguments[m];if(g)var x=fi(s),j=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(w,x);if(i&&(w=Eu(w,i,o,g)),f&&(w=Iu(w,f,a,g)),b-=j,g&&b<h){var A=sr(w,x);return Ku(n,t,Mu,s.placeholder,e,w,A,c,l,h-b)}var k=v?e:this,O=_?k[n]:n;return b=w.length,c?w=function(n,t){var r=n.length,e=br(t.length,r),i=Ru(n);for(;e--;){var o=t[e];n[e]=di(o,r)?i[o]:u}return n}(w,c):y&&b>1&&w.reverse(),p&&l<b&&(w.length=l),this&&this!==gt&&this instanceof s&&(O=d||Uu(O)),O.apply(k,w)}}function Nu(n,t){return function(r,e){return function(n,t,r,e){return we(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function Fu(n,t){return function(r,e){var i;if(r===u&&e===u)return t;if(r!==u&&(i=r),e!==u){if(i===u)return e;"string"==typeof r||"string"==typeof e?(r=cu(r),e=cu(e)):(r=au(r),e=au(e)),i=n(r,e)}return i}}function qu(n){return ri((function(t){return t=Tt(t,nr(ai())),Je((function(r){var e=this;return n(t,(function(n){return It(n,e,r)}))}))}))}function Pu(n,t){var r=(t=t===u?" ":cu(t)).length;if(r<2)return r?He(t,n):t;var e=He(t,vt(n/vr(t)));return ar(t)?mu(_r(e),0,n).join(""):e.slice(0,n)}function Zu(n){return function(t,e,i){return i&&"number"!=typeof i&&bi(t,e,i)&&(e=i=u),t=vf(t),e===u?(e=t,t=0):e=vf(e),function(n,t,e,u){for(var i=-1,o=Ht(vt((t-n)/(e||1)),0),f=r(o);o--;)f[u?o:++i]=n,n+=e;return f}(t,e,i=i===u?t<e?1:-1:vf(i),n)}}function Vu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yf(t),r=yf(r)),n(t,r)}}function Ku(n,t,r,e,i,o,f,a,s,h){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var v=[n,t,i,p?o:u,p?f:u,p?u:o,p?u:f,a,s,h],_=r.apply(u,v);return mi(n)&&Ri(_,v),_.placeholder=e,Ci(_,n,t)}function Gu(n){var t=On[n];return function(n,r){if(n=yf(n),(r=null==r?0:br(_f(r),292))&&wt(n)){var e=(bf(n)+"e").split("e");return+((e=(bf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Hu=Er&&1/hr(new Er([,-0]))[1]==p?function(n){return new Er(n)}:ca;function Ju(n){return function(t){var r=vi(t);return r==k?cr(t):r==z?pr(t):function(n,t){return Tt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Yu(n,t,e,o,p,v,_,g){var y=2&t;if(!y&&"function"!=typeof n)throw new zn(i);var d=o?o.length:0;if(d||(t&=-97,o=p=u),_=_===u?_:Ht(_f(_),0),g=g===u?g:_f(g),d-=p?p.length:0,t&l){var b=o,w=p;o=p=u}var m=y?u:ii(n),x=[n,t,e,o,p,b,w,v,_,g];if(m&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,o=e==s&&8==r||e==s&&r==h&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!o)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?Eu(c,a,t[4]):a,n[4]=c?sr(n[3],f):t[4]}(a=t[5])&&(c=n[5],n[5]=c?Iu(c,a,t[6]):a,n[6]=c?sr(n[5],f):t[6]);(a=t[7])&&(n[7]=a);e&s&&(n[8]=null==n[8]?t[8]:br(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=u}(x,m),n=x[0],t=x[1],e=x[2],o=x[3],p=x[4],!(g=x[9]=x[9]===u?y?0:n.length:Ht(x[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)j=8==t||t==a?function(n,t,e){var i=Uu(n);return function o(){for(var f=arguments.length,a=r(f),c=f,l=fi(o);c--;)a[c]=arguments[c];var s=f<3&&a[0]!==l&&a[f-1]!==l?[]:sr(a,l);return(f-=s.length)<e?Ku(n,t,Mu,o.placeholder,u,a,s,u,u,e-f):It(this&&this!==gt&&this instanceof o?i:n,this,a)}}(n,t,g):t!=c&&33!=t||p.length?Mu.apply(u,x):function(n,t,e,u){var i=1&t,o=Uu(n);return function t(){for(var f=-1,a=arguments.length,c=-1,l=u.length,s=r(l+a),h=this&&this!==gt&&this instanceof t?o:n;++c<l;)s[c]=u[c];for(;a--;)s[c++]=arguments[++f];return It(h,i?e:this,s)}}(n,t,e,o);else var j=function(n,t,r){var e=1&t,u=Uu(n);return function t(){return(this&&this!==gt&&this instanceof t?u:n).apply(e?r:this,arguments)}}(n,t,e);return Ci((m?nu:Ri)(j,x),n,t)}function Qu(n,t,r,e){return n===u||Mo(n,Ln[r])&&!Tn.call(e,r)?t:n}function Xu(n,t,r,e,i,o){return nf(n)&&nf(t)&&(o.set(t,n),Fe(n,t,u,Xu,o),o.delete(t)),n}function ni(n){return uf(n)?u:n}function ti(n,t,r,e,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(e)var y=f?e(g,_,h,t,n,o):e(_,g,h,n,t,o);if(y!==u){if(y)continue;p=!1;break}if(v){if(!Mt(t,(function(n,t){if(!rr(v,t)&&(_===n||i(_,n,r,e,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,r,e,o)){p=!1;break}}return o.delete(n),o.delete(t),p}function ri(n){return Si(Oi(n,u,Pi),n+"")}function ei(n){return Ae(n,Cf,hi)}function ui(n){return Ae(n,Lf,pi)}var ii=zr?function(n){return zr.get(n)}:ca;function oi(n){for(var t=n.name+"",r=Sr[t],e=Tn.call(Sr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function fi(n){return(Tn.call(Mr,"placeholder")?Mr:n).placeholder}function ai(){var n=Mr.iteratee||ia;return n=n===ia?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function ci(n,t){var r=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?r["string"==typeof t?"string":"hash"]:r.map}function li(n){for(var t=Cf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,Ai(u)]}return t}function si(n,t){var r=function(n,t){return null==n?u:n[t]}(n,t);return We(r)?r:u}var hi=yt?function(n){return null==n?[]:(n=En(n),Lt(yt(n),(function(t){return Hn.call(n,t)})))}:ga,pi=yt?function(n){for(var t=[];n;)Ut(t,hi(n)),n=Kn(n);return t}:ga,vi=ke;function _i(n,t,r){for(var e=-1,u=(t=bu(t,n)).length,i=!1;++e<u;){var o=Ti(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Po(n)||qo(n))}function gi(n){return"function"!=typeof n.constructor||ji(n)?{}:Nr(Kn(n))}function yi(n){return Po(n)||qo(n)||!!(Yn&&n&&n[Yn])}function di(n,t){var r=typeof n;return!!(t=null==t?v:t)&&("number"==r||"symbol"!=r&&mn.test(n))&&n>-1&&n%1==0&&n<t}function bi(n,t,r){if(!nf(r))return!1;var e=typeof t;return!!("number"==e?Vo(r)&&di(t,r.length):"string"==e&&t in r)&&Mo(r[t],n)}function wi(n,t){if(Po(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!cf(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in En(t))}function mi(n){var t=oi(n),r=Mr[t];if("function"!=typeof r||!(t in Pr.prototype))return!1;if(n===r)return!0;var e=ii(r);return!!e&&n===e[0]}(Ar&&vi(new Ar(new ArrayBuffer(1)))!=B||kr&&vi(new kr)!=k||Or&&vi(Or.resolve())!=I||Er&&vi(new Er)!=z||Ir&&vi(new Ir)!=L)&&(vi=function(n){var t=ke(n),r=t==E?n.constructor:u,e=r?Ui(r):"";if(e)switch(e){case Cr:return B;case Lr:return k;case Wr:return I;case Br:return z;case Tr:return L}return t});var xi=Wn?Yo:ya;function ji(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Ln)}function Ai(n){return n===n&&!nf(n)}function ki(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==u||n in En(r)))}}function Oi(n,t,e){return t=Ht(t===u?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Ht(u.length-t,0),f=r(o);++i<o;)f[i]=u[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=u[i];return a[t]=e(f),It(n,this,a)}}function Ei(n,t){return t.length<2?n:je(n,eu(t,0,-1))}function Ii(n,t){if(("constructor"!==t||"function"!==typeof n[t])&&"__proto__"!=t)return n[t]}var Ri=Li(nu),zi=st||function(n,t){return gt.setTimeout(n,t)},Si=Li(tu);function Ci(n,t,r){var e=t+"";return Si(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Li(n){var t=0,r=0;return function(){var e=wr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r<t;){var o=Ge(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var Bi=function(n){var t=Wo(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(en,(function(n,r,e,u){t.push(e?u.replace(vn,"$1"):r||n)})),t}));function Ti(n){if("string"==typeof n||cf(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ui(n){if(null!=n){try{return Bn.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function $i(n){if(n instanceof Pr)return n.clone();var t=new qr(n.__wrapped__,n.__chain__);return t.__actions__=Ru(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var Di=Je((function(n,t){return Ko(n)?se(n,ye(t,1,Ko,!0)):[]})),Mi=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),ai(r,2)):[]})),Ni=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),u,r):[]}));function Fi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),qt(n,ai(t,3),u)}function qi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return r!==u&&(i=_f(r),i=r<0?Ht(e+i,0):br(i,e-1)),qt(n,ai(t,3),i,!0)}function Pi(n){return(null==n?0:n.length)?ye(n,1):[]}function Zi(n){return n&&n.length?n[0]:u}var Vi=Je((function(n){var t=Tt(n,yu);return t.length&&t[0]===n[0]?Re(t):[]})),Ki=Je((function(n){var t=Hi(n),r=Tt(n,yu);return t===Hi(r)?t=u:r.pop(),r.length&&r[0]===n[0]?Re(r,ai(t,2)):[]})),Gi=Je((function(n){var t=Hi(n),r=Tt(n,yu);return(t="function"==typeof t?t:u)&&r.pop(),r.length&&r[0]===n[0]?Re(r,u,t):[]}));function Hi(n){var t=null==n?0:n.length;return t?n[t-1]:u}var Ji=Je(Yi);function Yi(n,t){return n&&n.length&&t&&t.length?Ve(n,t):n}var Qi=ri((function(n,t){var r=null==n?0:n.length,e=oe(n,t);return Ke(n,Tt(t,(function(n){return di(n,r)?+n:n})).sort(Ou)),e}));function Xi(n){return null==n?n:jr.call(n)}var no=Je((function(n){return lu(ye(n,1,Ko,!0))})),to=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),lu(ye(n,1,Ko,!0),ai(t,2))})),ro=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,lu(ye(n,1,Ko,!0),u,t)}));function eo(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(Ko(n))return t=Ht(n.length,t),!0})),Qt(t,(function(t){return Tt(n,Gt(t))}))}function uo(n,t){if(!n||!n.length)return[];var r=eo(n);return null==t?r:Tt(r,(function(n){return It(t,u,n)}))}var io=Je((function(n,t){return Ko(n)?se(n,t):[]})),oo=Je((function(n){return _u(Lt(n,Ko))})),fo=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),_u(Lt(n,Ko),ai(t,2))})),ao=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,_u(Lt(n,Ko),u,t)})),co=Je(eo);var lo=Je((function(n){var t=n.length,r=t>1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Mr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Pr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Su((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=$u(Fi),go=$u(qi);function yo(n,t){return(Po(n)?zt:he)(n,ai(t,3))}function bo(n,t){return(Po(n)?St:pe)(n,ai(t,3))}var wo=Su((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Vo(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?It(t,n,e):ze(n,t,e)})),o})),xo=Su((function(n,t,r){ie(n,r,t)}));function jo(n,t){return(Po(n)?Tt:De)(n,ai(t,3))}var Ao=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&bi(n,t[0],t[1])?t=[]:r>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Pe(n,ye(t,1),[])})),Oo=it||function(){return gt.Date.now()};function Eo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Io(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Ro=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Ro));e|=c}return Yu(n,e,t,r,u)})),zo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(zo));e|=c}return Yu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Oo();if(g(n))return d(n);c=zi(y,function(n){var r=t-(n-l);return p?br(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function b(){var n=Oo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=zi(y,t),h?_(n):a}(l);if(p)return xu(c),c=zi(y,t),_(l)}return c===u&&(c=zi(y,t)),a}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){c!==u&&xu(c),s=0,e=l=o=c=u},b.flush=function(){return c===u?a:d(Oo())},b}var Co=Je((function(n,t){return le(n,1,t)})),Lo=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Kr),r}function Bo(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Kr;var To=wu((function(n,t){var r=(t=1==t.length&&Po(t[0])?Tt(t[0],nr(ai())):Tt(ye(t,1),nr(ai()))).length;return Je((function(e){for(var u=-1,i=br(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return It(n,this,e)}))})),Uo=Je((function(n,t){var r=sr(t,fi(Uo));return Yu(n,c,u,t,r)})),$o=Je((function(n,t){var r=sr(t,fi($o));return Yu(n,l,u,t,r)})),Do=ri((function(n,t){return Yu(n,h,u,u,u,t)}));function Mo(n,t){return n===t||n!==n&&t!==t}var No=Vu(Oe),Fo=Vu((function(n,t){return n>=t})),qo=Se(function(){return arguments}())?Se:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},Po=r.isArray,Zo=xt?nr(xt):function(n){return tf(n)&&ke(n)==W};function Vo(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Ko(n){return tf(n)&&Vo(n)}var Go=dt||ya,Ho=jt?nr(jt):function(n){return tf(n)&&ke(n)==m};function Jo(n){if(!tf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=ke(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=At?nr(At):function(n){return tf(n)&&vi(n)==k};function ef(n){return"number"==typeof n||tf(n)&&ke(n)==O}function uf(n){if(!tf(n)||ke(n)!=E)return!1;var t=Kn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==Mn}var of=kt?nr(kt):function(n){return tf(n)&&ke(n)==R};var ff=Ot?nr(Ot):function(n){return tf(n)&&vi(n)==z};function af(n){return"string"==typeof n||!Po(n)&&tf(n)&&ke(n)==S}function cf(n){return"symbol"==typeof n||tf(n)&&ke(n)==C}var lf=Et?nr(Et):function(n){return tf(n)&&Xo(n.length)&&!!ct[ke(n)]};var sf=Vu($e),hf=Vu((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Vo(n))return af(n)?_r(n):Ru(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==k?cr:t==z?hr:Nf)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(cf(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return zu(n,Lf(n))}function bf(n){return null==n?"":cu(n)}var wf=Cu((function(n,t){if(ji(t)||Vo(t))zu(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=Cu((function(n,t){zu(t,Lf(t),n)})),xf=Cu((function(n,t,r,e){zu(t,Lf(t),n,e)})),jf=Cu((function(n,t,r,e){zu(t,Cf(t),n,e)})),Af=ri(oe);var kf=Je((function(n,t){n=En(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&bi(t[0],t[1],i)&&(e=1);++r<e;)for(var o=t[r],f=Lf(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===u||Mo(s,Ln[l])&&!Tn.call(n,l))&&(n[l]=o[l])}return n})),Of=Je((function(n){return n.push(u,Xu),It(Bf,u,n)}));function Ef(n,t,r){var e=null==n?u:je(n,t);return e===u?r:e}function If(n,t){return null!=n&&_i(n,t,Ie)}var Rf=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=Dn.call(t)),n[t]=r}),ta(ua)),zf=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=Dn.call(t)),Tn.call(n,t)?n[t].push(r):n[t]=[r]}),ai),Sf=Je(ze);function Cf(n){return Vo(n)?Jr(n):Te(n)}function Lf(n){return Vo(n)?Jr(n,!0):Ue(n)}var Wf=Cu((function(n,t,r){Fe(n,t,r)})),Bf=Cu((function(n,t,r,e){Fe(n,t,r,e)})),Tf=ri((function(n,t){var r={};if(null==n)return r;var e=!1;t=Tt(t,(function(t){return t=bu(t,n),e||(e=t.length>1),t})),zu(n,ui(n),r),e&&(r=ae(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Uf=ri((function(n,t){return null==n?{}:function(n,t){return Ze(n,t,(function(t,r){return If(n,r)}))}(n,t)}));function $f(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ai(t),Ze(n,r,(function(n,r){return t(n,r[0])}))}var Df=Ju(Cf),Mf=Ju(Lf);function Nf(n){return null==n?[]:tr(n,Cf(n))}var Ff=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Yf(bf(n).toLowerCase())}function Pf(n){return(n=bf(n))&&n.replace(xn,ir).replace(rt,"")}var Zf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Vf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Bu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Bu("toUpperCase");function Qf(n,t,r){return n=bf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return It(n,u,t)}catch(r){return Jo(r)?r:new an(r)}})),na=ri((function(n,t){return zt(t,(function(t){t=Ti(t),ie(n,t,Ro(n[t],n))})),n}));function ta(n){return function(){return n}}var ra=Du(),ea=Du(!0);function ua(n){return n}function ia(n){return Be("function"==typeof n?n:ae(n,1))}var oa=Je((function(n,t){return function(r){return ze(r,n,t)}})),fa=Je((function(n,t){return function(r){return ze(n,r,t)}}));function aa(n,t,r){var e=Cf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,Cf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Ru(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function ca(){}var la=qu(Tt),sa=qu(Ct),ha=qu(Mt);function pa(n){return wi(n)?Gt(Ti(n)):function(n){return function(t){return je(t,n)}}(n)}var va=Zu(),_a=Zu(!0);function ga(){return[]}function ya(){return!1}var da=Fu((function(n,t){return n+t}),0),ba=Gu("ceil"),wa=Fu((function(n,t){return n/t}),1),ma=Gu("floor");var xa=Fu((function(n,t){return n*t}),1),ja=Gu("round"),Aa=Fu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Eo,Mr.assign=wf,Mr.assignIn=mf,Mr.assignInWith=xf,Mr.assignWith=jf,Mr.at=Af,Mr.before=Io,Mr.bind=Ro,Mr.bindAll=na,Mr.bindKey=zo,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Mr.chain=so,Mr.chunk=function(n,t,e){t=(e?bi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(vt(i/t));o<i;)a[f++]=eu(n,o,o+=t);return a},Mr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Mr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return Ut(Po(e)?Ru(e):[e],ye(t,1))},Mr.cond=function(n){var t=null==n?0:n.length,r=ai();return n=t?Tt(n,(function(n){if("function"!=typeof n[1])throw new zn(i);return[r(n[0]),n[1]]})):[],Je((function(r){for(var e=-1;++e<t;){var u=n[e];if(It(u[0],this,r))return It(u[1],this,r)}}))},Mr.conforms=function(n){return function(n){var t=Cf(n);return function(r){return ce(r,n,t)}}(ae(n,1))},Mr.constant=ta,Mr.countBy=vo,Mr.create=function(n,t){var r=Nr(n);return null==t?r:ue(r,t)},Mr.curry=function n(t,r,e){var i=Yu(t,8,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Mr.curryRight=function n(t,r,e){var i=Yu(t,a,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Mr.debounce=So,Mr.defaults=kf,Mr.defaultsDeep=Of,Mr.defer=Co,Mr.delay=Lo,Mr.difference=Di,Mr.differenceBy=Mi,Mr.differenceWith=Ni,Mr.drop=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=r||t===u?1:_f(t))<0?0:t,e):[]},Mr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,0,(t=e-(t=r||t===u?1:_f(t)))<0?0:t):[]},Mr.dropRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0,!0):[]},Mr.dropWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0):[]},Mr.fill=function(n,t,r,e){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&bi(n,t,r)&&(r=0,e=i),function(n,t,r,e){var i=n.length;for((r=_f(r))<0&&(r=-r>i?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Mr.filter=function(n,t){return(Po(n)?Lt:ge)(n,ai(t,3))},Mr.flatMap=function(n,t){return ye(jo(n,t),1)},Mr.flatMapDeep=function(n,t){return ye(jo(n,t),p)},Mr.flatMapDepth=function(n,t,r){return r=r===u?1:_f(r),ye(jo(n,t),r)},Mr.flatten=Pi,Mr.flattenDeep=function(n){return(null==n?0:n.length)?ye(n,p):[]},Mr.flattenDepth=function(n,t){return(null==n?0:n.length)?ye(n,t=t===u?1:_f(t)):[]},Mr.flip=function(n){return Yu(n,512)},Mr.flow=ra,Mr.flowRight=ea,Mr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Mr.functions=function(n){return null==n?[]:xe(n,Cf(n))},Mr.functionsIn=function(n){return null==n?[]:xe(n,Lf(n))},Mr.groupBy=wo,Mr.initial=function(n){return(null==n?0:n.length)?eu(n,0,-1):[]},Mr.intersection=Vi,Mr.intersectionBy=Ki,Mr.intersectionWith=Gi,Mr.invert=Rf,Mr.invertBy=zf,Mr.invokeMap=mo,Mr.iteratee=ia,Mr.keyBy=xo,Mr.keys=Cf,Mr.keysIn=Lf,Mr.map=jo,Mr.mapKeys=function(n,t){var r={};return t=ai(t,3),we(n,(function(n,e,u){ie(r,t(n,e,u),n)})),r},Mr.mapValues=function(n,t){var r={};return t=ai(t,3),we(n,(function(n,e,u){ie(r,e,t(n,e,u))})),r},Mr.matches=function(n){return Me(ae(n,1))},Mr.matchesProperty=function(n,t){return Ne(n,ae(t,1))},Mr.memoize=Wo,Mr.merge=Wf,Mr.mergeWith=Bf,Mr.method=oa,Mr.methodOf=fa,Mr.mixin=aa,Mr.negate=Bo,Mr.nthArg=function(n){return n=_f(n),Je((function(t){return qe(t,n)}))},Mr.omit=Tf,Mr.omitBy=function(n,t){return $f(n,Bo(ai(t)))},Mr.once=function(n){return Io(2,n)},Mr.orderBy=function(n,t,r,e){return null==n?[]:(Po(t)||(t=null==t?[]:[t]),Po(r=e?u:r)||(r=null==r?[]:[r]),Pe(n,t,r))},Mr.over=la,Mr.overArgs=To,Mr.overEvery=sa,Mr.overSome=ha,Mr.partial=Uo,Mr.partialRight=$o,Mr.partition=Ao,Mr.pick=Uf,Mr.pickBy=$f,Mr.property=pa,Mr.propertyOf=function(n){return function(t){return null==n?u:je(n,t)}},Mr.pull=Ji,Mr.pullAll=Yi,Mr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ve(n,t,ai(r,2)):n},Mr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ve(n,t,u,r):n},Mr.pullAt=Qi,Mr.range=va,Mr.rangeRight=_a,Mr.rearg=Do,Mr.reject=function(n,t){return(Po(n)?Lt:ge)(n,Bo(ai(t,3)))},Mr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ai(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Ke(n,u),r},Mr.rest=function(n,t){if("function"!=typeof n)throw new zn(i);return Je(n,t=t===u?t:_f(t))},Mr.reverse=Xi,Mr.sampleSize=function(n,t,r){return t=(r?bi(n,t,r):t===u)?1:_f(t),(Po(n)?Qr:Qe)(n,t)},Mr.set=function(n,t,r){return null==n?n:Xe(n,t,r)},Mr.setWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:Xe(n,t,r,e)},Mr.shuffle=function(n){return(Po(n)?Xr:ru)(n)},Mr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&bi(n,t,r)?(t=0,r=e):(t=null==t?0:_f(t),r=r===u?e:_f(r)),eu(n,t,r)):[]},Mr.sortBy=ko,Mr.sortedUniq=function(n){return n&&n.length?fu(n):[]},Mr.sortedUniqBy=function(n,t){return n&&n.length?fu(n,ai(t,2)):[]},Mr.split=function(n,t,r){return r&&"number"!=typeof r&&bi(n,t,r)&&(t=r=u),(r=r===u?g:r>>>0)?(n=bf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=cu(t))&&ar(n)?mu(_r(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Ut(u,e),It(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?pu(n,ai(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=ho,Mr.toArray=pf,Mr.toPairs=Df,Mr.toPairsIn=Mf,Mr.toPath=function(n){return Po(n)?Tt(n,Ti):cf(n)?[n]:Ru(Bi(bf(n)))},Mr.toPlainObject=df,Mr.transform=function(n,t,r){var e=Po(n),u=e||Go(n)||lf(n);if(t=ai(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?Nr(Kn(n)):{}}return(u?zt:we)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Eo(n,1)},Mr.union=no,Mr.unionBy=to,Mr.unionWith=ro,Mr.uniq=function(n){return n&&n.length?lu(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?lu(n,ai(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Mr.unset=function(n,t){return null==n||su(n,t)},Mr.unzip=eo,Mr.unzipWith=uo,Mr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Mr.values=Nf,Mr.valuesIn=function(n){return null==n?[]:tr(n,Lf(n))},Mr.without=io,Mr.words=Qf,Mr.wrap=function(n,t){return Uo(du(t),n)},Mr.xor=oo,Mr.xorBy=fo,Mr.xorWith=ao,Mr.zip=co,Mr.zipObject=function(n,t){return gu(n||[],t||[],te)},Mr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Mr.zipWith=lo,Mr.entries=Df,Mr.entriesIn=Mf,Mr.extend=mf,Mr.extendWith=xf,aa(Mr,Mr),Mr.add=da,Mr.attempt=Xf,Mr.camelCase=Ff,Mr.capitalize=qf,Mr.ceil=ba,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Mr.clone=function(n){return ae(n,4)},Mr.cloneDeep=function(n){return ae(n,5)},Mr.cloneDeepWith=function(n,t){return ae(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ae(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||ce(n,t,Cf(t))},Mr.deburr=Pf,Mr.defaultTo=function(n,t){return null==n||n!==n?t:n},Mr.divide=wa,Mr.endsWith=function(n,t,r){n=bf(n),t=cu(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Mo,Mr.escape=function(n){return(n=bf(n))&&Y.test(n)?n.replace(H,or):n},Mr.escapeRegExp=function(n){return(n=bf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Po(n)?Ct:ve;return r&&bi(n,t,r)&&(t=u),e(n,ai(t,3))},Mr.find=_o,Mr.findIndex=Fi,Mr.findKey=function(n,t){return Ft(n,ai(t,3),we)},Mr.findLast=go,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Ft(n,ai(t,3),me)},Mr.floor=ma,Mr.forEach=yo,Mr.forEachRight=bo,Mr.forIn=function(n,t){return null==n?n:de(n,ai(t,3),Lf)},Mr.forInRight=function(n,t){return null==n?n:be(n,ai(t,3),Lf)},Mr.forOwn=function(n,t){return n&&we(n,ai(t,3))},Mr.forOwnRight=function(n,t){return n&&me(n,ai(t,3))},Mr.get=Ef,Mr.gt=No,Mr.gte=Fo,Mr.has=function(n,t){return null!=n&&_i(n,t,Ee)},Mr.hasIn=If,Mr.head=Zi,Mr.identity=ua,Mr.includes=function(n,t,r,e){n=Vo(n)?n:Nf(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),af(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Pt(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Pt(n,t,u)},Mr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=br(t,r)&&n<Ht(t,r)}(n=yf(n),t,r)},Mr.invoke=Sf,Mr.isArguments=qo,Mr.isArray=Po,Mr.isArrayBuffer=Zo,Mr.isArrayLike=Vo,Mr.isArrayLikeObject=Ko,Mr.isBoolean=function(n){return!0===n||!1===n||tf(n)&&ke(n)==w},Mr.isBuffer=Go,Mr.isDate=Ho,Mr.isElement=function(n){return tf(n)&&1===n.nodeType&&!uf(n)},Mr.isEmpty=function(n){if(null==n)return!0;if(Vo(n)&&(Po(n)||"string"==typeof n||"function"==typeof n.splice||Go(n)||lf(n)||qo(n)))return!n.length;var t=vi(n);if(t==k||t==z)return!n.size;if(ji(n))return!Te(n).length;for(var r in n)if(Tn.call(n,r))return!1;return!0},Mr.isEqual=function(n,t){return Ce(n,t)},Mr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:u)?r(n,t):u;return e===u?Ce(n,t,u,r):!!e},Mr.isError=Jo,Mr.isFinite=function(n){return"number"==typeof n&&wt(n)},Mr.isFunction=Yo,Mr.isInteger=Qo,Mr.isLength=Xo,Mr.isMap=rf,Mr.isMatch=function(n,t){return n===t||Le(n,t,li(t))},Mr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:u,Le(n,t,li(t),r)},Mr.isNaN=function(n){return ef(n)&&n!=+n},Mr.isNative=function(n){if(xi(n))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return We(n)},Mr.isNil=function(n){return null==n},Mr.isNull=function(n){return null===n},Mr.isNumber=ef,Mr.isObject=nf,Mr.isObjectLike=tf,Mr.isPlainObject=uf,Mr.isRegExp=of,Mr.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=v},Mr.isSet=ff,Mr.isString=af,Mr.isSymbol=cf,Mr.isTypedArray=lf,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return tf(n)&&vi(n)==L},Mr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==ke(n)},Mr.join=function(n,t){return null==n?"":mt.call(n,t)},Mr.kebabCase=Zf,Mr.last=Hi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):br(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):qt(n,Vt,i,!0)},Mr.lowerCase=Vf,Mr.lowerFirst=Kf,Mr.lt=sf,Mr.lte=hf,Mr.max=function(n){return n&&n.length?_e(n,ua,Oe):u},Mr.maxBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Oe):u},Mr.mean=function(n){return Kt(n,ua)},Mr.meanBy=function(n,t){return Kt(n,ai(t,2))},Mr.min=function(n){return n&&n.length?_e(n,ua,$e):u},Mr.minBy=function(n,t){return n&&n.length?_e(n,ai(t,2),$e):u},Mr.stubArray=ga,Mr.stubFalse=ya,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=xa,Mr.nth=function(n,t){return n&&n.length?qe(n,_f(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Mr.noop=ca,Mr.now=Oo,Mr.pad=function(n,t,r){n=bf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Pu(_t(u),r)+n+Pu(vt(u),r)},Mr.padEnd=function(n,t,r){n=bf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?n+Pu(t-e,r):n},Mr.padStart=function(n,t,r){n=bf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?Pu(t-e,r)+n:n},Mr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),mr(bf(n).replace(fn,""),t||0)},Mr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&bi(n,t,r)&&(t=r=u),r===u&&("boolean"==typeof t?(r=t,t=u):"boolean"==typeof n&&(r=n,n=u)),n===u&&t===u?(n=0,t=1):(n=vf(n),t===u?(t=n,n=0):t=vf(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return br(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Mr.reduce=function(n,t,r){var e=Po(n)?$t:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,he)},Mr.reduceRight=function(n,t,r){var e=Po(n)?Dt:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,pe)},Mr.repeat=function(n,t,r){return t=(r?bi(n,t,r):t===u)?1:_f(t),He(bf(n),t)},Mr.replace=function(){var n=arguments,t=bf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=bu(t,n)).length;for(i||(i=1,n=u);++e<i;){var o=null==n?u:n[Ti(t[e])];o===u&&(e=i,o=r),n=Yo(o)?o.call(n):o}return n},Mr.round=ja,Mr.runInContext=n,Mr.sample=function(n){return(Po(n)?Yr:Ye)(n)},Mr.size=function(n){if(null==n)return 0;if(Vo(n))return af(n)?vr(n):n.length;var t=vi(n);return t==k||t==z?n.size:Te(n).length},Mr.snakeCase=Gf,Mr.some=function(n,t,r){var e=Po(n)?Mt:uu;return r&&bi(n,t,r)&&(t=u),e(n,ai(t,3))},Mr.sortedIndex=function(n,t){return iu(n,t)},Mr.sortedIndexBy=function(n,t,r){return ou(n,t,ai(r,2))},Mr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=iu(n,t);if(e<r&&Mo(n[e],t))return e}return-1},Mr.sortedLastIndex=function(n,t){return iu(n,t,!0)},Mr.sortedLastIndexBy=function(n,t,r){return ou(n,t,ai(r,2),!0)},Mr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=iu(n,t,!0)-1;if(Mo(n[r],t))return r}return-1},Mr.startCase=Hf,Mr.startsWith=function(n,t,r){return n=bf(n),r=null==r?0:fe(_f(r),0,n.length),t=cu(t),n.slice(r,r+t.length)==t},Mr.subtract=Aa,Mr.sum=function(n){return n&&n.length?Yt(n,ua):0},Mr.sumBy=function(n,t){return n&&n.length?Yt(n,ai(t,2)):0},Mr.template=function(n,t,r){var e=Mr.templateSettings;r&&bi(n,t,r)&&(t=u),n=bf(n),t=xf({},t,e,Qu);var i,o,f=xf({},t.imports,e.imports,Qu),a=Cf(f),c=tr(f,a),l=0,s=t.interpolate||jn,h="__p += '",p=In((t.escape||jn).source+"|"+s.source+"|"+(s===nn?_n:jn).source+"|"+(t.evaluate||jn).source+"|$","g"),v="//# sourceURL="+(Tn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(An,fr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Tn.call(t,"variable")&&t.variable;if(_){if(pn.test(_))throw new an("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(Z,""):h).replace(V,"$1").replace(K,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xf((function(){return kn(a,v+"return "+h).apply(u,c)}));if(g.source=h,Jo(g))throw g;return g},Mr.times=function(n,t){if((n=_f(n))<1||n>v)return[];var r=g,e=br(n,g);t=ai(t),n-=g;for(var u=Qt(e,t);++r<n;)t(r);return u},Mr.toFinite=vf,Mr.toInteger=_f,Mr.toLength=gf,Mr.toLower=function(n){return bf(n).toLowerCase()},Mr.toNumber=yf,Mr.toSafeInteger=function(n){return n?fe(_f(n),-9007199254740991,v):0===n?n:0},Mr.toString=bf,Mr.toUpper=function(n){return bf(n).toUpperCase()},Mr.trim=function(n,t,r){if((n=bf(n))&&(r||t===u))return Xt(n);if(!n||!(t=cu(t)))return n;var e=_r(n),i=_r(t);return mu(e,er(e,i),ur(e,i)+1).join("")},Mr.trimEnd=function(n,t,r){if((n=bf(n))&&(r||t===u))return n.slice(0,gr(n)+1);if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,0,ur(e,_r(t))+1).join("")},Mr.trimStart=function(n,t,r){if((n=bf(n))&&(r||t===u))return n.replace(fn,"");if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,er(e,_r(t))).join("")},Mr.truncate=function(n,t){var r=30,e="...";if(nf(t)){var i="separator"in t?t.separator:i;r="length"in t?_f(t.length):r,e="omission"in t?cu(t.omission):e}var o=(n=bf(n)).length;if(ar(n)){var f=_r(n);o=f.length}if(r>=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?mu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),of(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=In(i.source,bf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(cu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=bf(n))&&J.test(n)?n.replace(G,yr):n},Mr.uniqueId=function(n){var t=++Un;return bf(n)+t},Mr.upperCase=Jf,Mr.upperFirst=Yf,Mr.each=yo,Mr.eachRight=bo,Mr.first=Zi,aa(Mr,function(){var n={};return we(Mr,(function(t,r){Tn.call(Mr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Mr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),zt(["drop","take"],(function(n,t){Pr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new Pr(this):this.clone();return e.__filtered__?e.__takeCount__=br(r,e.__takeCount__):e.__views__.push({size:br(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Pr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Pr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ai(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Pr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Pr.prototype[n]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(ua)},Pr.prototype.find=function(n){return this.filter(n).head()},Pr.prototype.findLast=function(n){return this.reverse().find(n)},Pr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Pr(this):this.map((function(r){return ze(r,n,t)}))})),Pr.prototype.reject=function(n){return this.filter(Bo(ai(n)))},Pr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Pr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},Pr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pr.prototype.toArray=function(){return this.take(g)},we(Pr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Pr,c=f[0],l=a||Po(t),s=function(n){var t=i.apply(Mr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Pr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Po(u)?u:[],n)}return this[r]((function(r){return t.apply(Po(r)?r:[],n)}))}})),we(Pr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Mu(u,2).name]=[{name:"wrapper",func:u}],Pr.prototype.clone=function(){var n=new Pr(this.__wrapped__);return n.__actions__=Ru(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ru(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ru(this.__views__),n},Pr.prototype.reverse=function(){if(this.__filtered__){var n=new Pr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Pr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Po(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=br(t,n+o);break;case"takeRight":n=Ht(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=br(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return vu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,b=y.type,w=d(g);if(2==b)g=w;else if(!w){if(1==b)continue n;break n}}v[h++]=g}return v},Mr.prototype.at=po,Mr.prototype.chain=function(){return so(this)},Mr.prototype.commit=function(){return new qr(this.value(),this.__chain__)},Mr.prototype.next=function(){this.__values__===u&&(this.__values__=pf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Fr;){var e=$i(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Pr){var t=n;return this.__actions__.length&&(t=new Pr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new qr(t,this.__chain__)}return this.thru(Xi)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},79879:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.8 1.8 0 0 1 1.554 0l4.22 2.025a.89.89 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.06 1.06 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8m3.57-3.377L2.354 3.35A2.39 2.39 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.56 2.56 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.3 3.3 0 0 0-2.852 0M9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7",clipRule:"evenodd"}))},89169:(n,t,r)=>{"use strict";r.d(t,{E:()=>i});var e=r(59284);const u=(0,r(69220).om)("skeleton");function i({className:n,style:t,qa:r}){return e.createElement("div",{className:u(null,n),style:t,"data-qa":r})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/56013.d9e34466.chunk.js.LICENSE.txt index b1121f519a..b1121f519a 100644 --- a/ydb/core/viewer/monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/56013.d9e34466.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/56026.85d58e2b.chunk.js b/ydb/core/viewer/monitoring/static/js/56026.85d58e2b.chunk.js new file mode 100644 index 0000000000..6cac0dbe42 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56026.85d58e2b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56026],{22053:e=>{function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}e.exports=t,t.displayName="jolie",t.aliases=[]},56026:(e,t,n)=>{n.d(t,{default:()=>s});var i=n(22053);const s=n.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56054.9d70a2ed.chunk.js b/ydb/core/viewer/monitoring/static/js/56054.9d70a2ed.chunk.js new file mode 100644 index 0000000000..5b01cca3e5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56054.9d70a2ed.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56054],{55485:a=>{function e(a){!function(a){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,t="(?:[^\\\\-]|"+n.source+")",s=RegExp(t+"-"+t),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(a)}a.exports=e,e.displayName="regex",e.aliases=[]},56054:(a,e,n)=>{n.d(e,{default:()=>s});var t=n(55485);const s=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56174.562b7d92.chunk.js b/ydb/core/viewer/monitoring/static/js/56174.562b7d92.chunk.js new file mode 100644 index 0000000000..aca1a1324e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56174.562b7d92.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56174],{35901:(e,n,t)=>{var s=t(53950);function a(e){e.register(s),function(e){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,(function(){return n})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(e)}e.exports=a,a.displayName="shellSession",a.aliases=[]},53950:e=>{function n(e){!function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},s={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:s},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:s},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:s.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:s.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=s.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.shell=e.languages.bash}(e)}e.exports=n,n.displayName="bash",n.aliases=["shell"]},56174:(e,n,t)=>{t.d(n,{default:()=>a});var s=t(35901);const a=t.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56358.3a141569.chunk.js b/ydb/core/viewer/monitoring/static/js/56358.3a141569.chunk.js new file mode 100644 index 0000000000..200ab60d49 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56358.3a141569.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 56358.3a141569.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56358],{56358:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>r,language:()=>n});var r={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/56358.3a141569.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/56358.3a141569.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js b/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js deleted file mode 100644 index 29725dfcfa..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5636.da9c4c85.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5636],{25636:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>s});var i={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},s={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56405.5fa107d3.chunk.js b/ydb/core/viewer/monitoring/static/js/56405.5fa107d3.chunk.js new file mode 100644 index 0000000000..6dacc82f03 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56405.5fa107d3.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56405],{56405:function(e,t,n){!function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),u={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},a=["\u06a9\u0627\u0646\u0648\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u062f\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u06a9\u0627\u0646\u0648\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"],i={name:"ku",months:a,monthsShort:a,weekdays:"\u06cc\u06d5\u06a9\u0634\u06d5\u0645\u0645\u06d5_\u062f\u0648\u0648\u0634\u06d5\u0645\u0645\u06d5_\u0633\u06ce\u0634\u06d5\u0645\u0645\u06d5_\u0686\u0648\u0627\u0631\u0634\u06d5\u0645\u0645\u06d5_\u067e\u06ce\u0646\u062c\u0634\u06d5\u0645\u0645\u06d5_\u0647\u06d5\u06cc\u0646\u06cc_\u0634\u06d5\u0645\u0645\u06d5".split("_"),weekdaysShort:"\u06cc\u06d5\u06a9\u0634\u06d5\u0645_\u062f\u0648\u0648\u0634\u06d5\u0645_\u0633\u06ce\u0634\u06d5\u0645_\u0686\u0648\u0627\u0631\u0634\u06d5\u0645_\u067e\u06ce\u0646\u062c\u0634\u06d5\u0645_\u0647\u06d5\u06cc\u0646\u06cc_\u0634\u06d5\u0645\u0645\u06d5".split("_"),weekStart:6,weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647\u0640_\u0634".split("_"),preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return d[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return u[e]})).replace(/,/g,"\u060c")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiem:function(e){return e<12?"\u067e.\u0646":"\u062f.\u0646"},relativeTime:{future:"\u0644\u06d5 %s",past:"\u0644\u06d5\u0645\u06d5\u0648\u067e\u06ce\u0634 %s",s:"\u0686\u06d5\u0646\u062f \u0686\u0631\u06a9\u06d5\u06cc\u06d5\u06a9",m:"\u06cc\u06d5\u06a9 \u062e\u0648\u0644\u06d5\u06a9",mm:"%d \u062e\u0648\u0644\u06d5\u06a9",h:"\u06cc\u06d5\u06a9 \u06a9\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u06a9\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u06d5\u06a9 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u06d5\u06a9 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u06d5\u06a9 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"}};r.default.locale(i,null,!0),e.default=i,e.englishToArabicNumbersMap=u,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56421.a250ca1b.chunk.js b/ydb/core/viewer/monitoring/static/js/56421.a250ca1b.chunk.js new file mode 100644 index 0000000000..f6d4ad8f3f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56421.a250ca1b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56421],{56421:(e,a,t)=>{t.d(a,{default:()=>s});var n=t(89488);const s=t.n(n)()},89488:e=>{function a(e){!function(e){var a=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:a,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return a.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=a,a.displayName="java",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5652.40b9a7d3.chunk.js b/ydb/core/viewer/monitoring/static/js/5652.40b9a7d3.chunk.js deleted file mode 100644 index 735fd7b4e9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5652.40b9a7d3.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5652],{5252:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Os});var t=n(59284),l=n(89169),r=n(23871),a=n(61750),o=n(10755),i=n(67087),d=n(90053),c=n(10508),u=n(44294),v=n(92459),h=n(67028),p=n(67157),m=n(40174),g=n(77506),j=n(90182),x=n(66592),N=n(7117),f=n(99936),b=n(88616),y=n(4557),C=n(84476),k=n(28539),w=n(44508),T=n(78524),_=n(48295),S=n(9252),V=n(17594),E=n(95963),O=n(89073),L=n(40336),M=n(63291),D=n(54309),z=n(12888),A=n(71661),G=n(25196),I=n(48372);const P=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),R=(0,I.g4)("ydb-tenant-name-wrapper",{en:P});var $=n(60712);function B({tenant:e,additionalTenantsProps:s}){var n;const t=(0,z.X)(),l=((e,s)=>{var n,t;if("function"!==typeof(null===s||void 0===s?void 0:s.prepareTenantBackend))return;let l=null!==(n=e.MonitoringEndpoint)&&void 0!==n?n:e.backend;const r=null!==(t=e.NodeIds)&&void 0!==t?t:e.sharedNodeIds;!l&&r&&r.length>0&&(l={NodeId:r[Math.floor(Math.random()*r.length)]});return s.prepareTenantBackend(l)})(e,s),r=Boolean(l),a=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,e.Name,e.Type);return(0,$.jsx)(A.s,{disabled:!t||!a,delayClosing:200,content:a?(0,$.jsx)(L.u,{responsive:!0,children:(0,$.jsx)(L.u.Item,{name:R("field_links"),children:(0,$.jsx)(G.K,{title:R("field_monitoring-link"),url:a})})}):null,placement:["top","bottom"],behavior:M.m.Immediate,children:(0,$.jsx)(c.c,{externalLink:r,name:e.Name||R("context_unknown"),withLeftTrim:!0,status:e.Overall,hasClipboardButton:!0,path:(0,D.YL)({database:e.Name,backend:l})})})}var F=n(58351),U=n(88610),W=n(53850),Z=n(23536),q=n.n(Z),Q=n(54090),Y=n(76086),H=n(56674);const J=(0,W.Mz)((e=>e),(e=>H.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,W.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,U.CN)(e,Y.Xm)),((e,s,n)=>{var t;const l=null!==(t=s(e).data)&&void 0!==t?t:[];return!n&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),X=e=>e.tenants.searchValue,ee=(0,W.Mz)([K,U.yV,X],((e,s,n)=>{let t=((e,s)=>s===U.s$.ALL?e:e.filter((e=>e.Overall&&e.Overall!==Q.m.Green)))(e,s);return t=((e,s)=>e.filter((e=>{const n=new RegExp(q()(s),"i");return n.test(e.Name||"")||n.test(e.controlPlaneName)})))(t,n),t}));var se=n(56839);const ne=(0,g.cn)("tenants"),te=({additionalTenantsProps:e})=>{const s=(0,j.YQ)(),[n]=(0,j.Nt)(),{currentData:l,isFetching:r,error:a}=H.GJ.useGetTenantsInfoQuery({clusterName:F.SL},{pollingInterval:n}),o=r&&void 0===l,i=(0,j.N4)((e=>K(e,F.SL))),d=(0,j.N4)(X),c=(0,j.N4)((e=>ee(e,F.SL))),u=(0,j.N4)(U.yV),v=e=>{s((0,U.$u)(e))},h=e=>{s((0,H.gB)(e))};return(0,$.jsxs)(O.L,{children:[(0,$.jsx)(O.L.Controls,{children:(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(E.v,{value:d,onChange:h,placeholder:"Database name",className:ne("search")}),(0,$.jsx)(S.k,{value:u,onChange:v}),(0,$.jsx)(k.T,{total:i.length,current:(null===c||void 0===c?void 0:c.length)||0,label:"Databases",loading:o})]})}),a?(0,$.jsx)(w.o,{error:a}):null,(0,$.jsx)(O.L.Table,{loading:o,children:l?(()=>{const s=[{name:"Name",header:"Database",render:({row:s})=>(0,$.jsx)(B,{tenant:s,additionalTenantsProps:e}),width:440,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"controlPlaneName",header:"Name",render:({row:e})=>e.controlPlaneName,width:200,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:({row:e})=>"Serverless"!==e.Type?e.Type:(0,$.jsxs)("div",{className:ne("type"),children:[(0,$.jsx)("span",{className:ne("type-value"),children:e.Type}),(0,$.jsx)(C.$,{className:ne("type-button"),onClick:()=>h(e.sharedTenantName||""),children:"Show shared"})]})},{name:"State",width:90,render:({row:e})=>e.State?e.State.toLowerCase():"\u2014",customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:({row:e})=>e.cpu&&e.cpu>1e4?(0,se.iM)(e.cpu):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"memory",header:"Memory",width:120,render:({row:e})=>e.memory?(0,se.vX)(e.memory):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"storage",header:"Storage",width:120,render:({row:e})=>e.storage?(0,se.vX)(e.storage):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:({row:e})=>e.nodesCount?(0,se.ZV)(e.nodesCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:({row:e})=>e.groupsCount?(0,se.ZV)(e.groupsCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:({PoolStats:e=[]})=>e.reduce(((e,s)=>e+(s.Usage||0)),0),defaultOrder:y.Ay.DESCENDING,align:y.Ay.LEFT,render:({row:e})=>(0,$.jsx)(_._,{pools:e.PoolStats})}];return 0===c.length&&u!==U.s$.ALL?(0,$.jsx)(T.v,{name:"thumbsUp",width:"200"}):(0,$.jsx)(V.l,{columnsWidthLSKey:"databasesTableColumnsWidth",data:c,columns:s,settings:Y.N3,emptyDataMessage:"No such tenants"})})():null})]})};var le=n(44433),re=n(74321),ae=n(52248),oe=n(15298),ie=n(18143);const de=(0,g.cn)("ydb-cluster-versions-bar"),ce=({versionsValues:e=[],size:s="s",progressClassName:n})=>(0,$.jsxs)("div",{className:de(),children:[(0,$.jsx)(ie.k,{value:100,stack:e,size:s,className:n}),(0,$.jsx)("div",{className:de("versions"),children:e.map(((s,n)=>(0,$.jsx)("div",{className:de("version-title"),style:{color:s.color},title:s.version,children:`${s.version}${n===e.length-1?"":","}`},s.version)))})]});var ue=n(63126),ve=n(78762),he=n(88655);function pe(e){return[(0,ve._E)(),(0,ve.Nh)(e),(0,ve.jl)(),(0,ve.pH)(),(0,ve.fr)(),(0,ve.ID)()]}const me=({nodes:e})=>{const s=(0,he.E)(),n=pe({getNodeRef:null===s||void 0===s?void 0:s.getNodeRef});return(0,$.jsx)(V.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:n,settings:Y.N3})};var ge=n(96873);const je=(0,g.cn)("ydb-versions-nodes-tree-title"),xe=({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>{let r;return r=n?n.reduce(((e,s)=>s.nodes?e+s.nodes.length:e),0):s?s.length:0,(0,$.jsxs)("div",{className:je("overview"),children:[(0,$.jsxs)("div",{className:je("overview-container"),children:[t?(0,$.jsx)("div",{className:je("version-color"),style:{background:t}}):null,e?(0,$.jsxs)("span",{className:je("overview-title"),children:[e,(0,$.jsx)(ge.b,{text:e,size:"s",className:je("clipboard-button"),view:"normal"})]}):null]}),(0,$.jsxs)("div",{className:je("overview-info"),children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("span",{className:je("info-value"),children:r}),(0,$.jsx)("span",{className:je("info-label",{margin:"left"}),children:"Nodes"})]}),l?(0,$.jsxs)("div",{className:je("version-progress"),children:[(0,$.jsx)("span",{className:je("info-label",{margin:"right"}),children:"Versions"}),(0,$.jsx)(ie.k,{size:"s",value:100,stack:l})]}):null]})]})},Ne=(0,g.cn)("ydb-versions-grouped-node-tree"),fe=({title:e,nodes:s,items:n,expanded:l=!1,versionColor:r,versionsValues:a,level:o=0})=>{const[i,d]=t.useState(!1);t.useEffect((()=>{d(l)}),[l]);const c=(0,$.jsx)(xe,{title:e,nodes:s,items:n,versionColor:r,versionsValues:a}),u=()=>{d((e=>!e))};return n?(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:n.map(((e,s)=>(0,$.jsx)(fe,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:o+1},s)))},e)}):(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:(0,$.jsx)("div",{className:Ne("dt-wrapper"),children:(0,$.jsx)(me,{nodes:s||[]})})},e)})};var be=n(78018),ye=n.n(be),Ce=n(38596);const ke=.5,we=(e=[],s)=>{const n=e.reduce(((e,s)=>(s.Version&&(e[s.Version]?e[s.Version]=e[s.Version]+1:e[s.Version]=1),e)),{});return _e(Object.keys(n).map((t=>{const l=n[t]/e.length*100;return{title:t,version:t,color:null===s||void 0===s?void 0:s.get((0,Ce.U)(t)),value:l<ke?ke:l}})))};function Te(e,s,n){const t=null!==n&&void 0!==n?n:e.reduce(((e,s)=>e+s.count),0);return _e(e.map((e=>{const n=e.count/t*100;return{title:e.name,version:e.name,color:null===s||void 0===s?void 0:s.get(e.name),value:n<ke?ke:n}})))}function _e(e){let s=e[0].value,n=0,t=0;e.forEach(((e,l)=>{t+=e.value,e.value>s&&(s=e.value,n=l)}));const l=[...e];return l[n]={...e[n],value:s+100-t},l}let Se=function(e){return e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage",e}({});const Ve=(e,s)=>{var n;return(null===(n=e.title)||void 0===n?void 0:n.localeCompare(s.title||""))||-1},Ee=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Oe=(0,I.g4)("ydb-versions",{en:Ee});var Le=n(44992),Me=n(98730);const De=(0,g.cn)("ydb-versions"),ze=({versionToColor:e,cluster:s})=>{const[n]=(0,j.Nt)(),l=((e,s)=>{const{currentData:n}=oe.s.useGetNodesQuery((0,Me.L)(e)?Le.hT:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return t.useMemo((()=>(0,Me.L)(e)&&e.MapVersions?Te(Object.entries(e.MapVersions).map((([e,s])=>({name:e,count:s}))),s,e.NodesTotal):n?Array.isArray(n.NodeGroups)?Te(n.NodeGroups,s,null===e||void 0===e?void 0:e.NodesTotal):we(n.Nodes,s):[]),[n,s,e])})(s,e),{currentData:r,isLoading:a}=oe.s.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),o=null===r||void 0===r?void 0:r.Nodes,[i,d]=t.useState(Se.VERSION),[c,u]=t.useState(!1),v=e=>{d(e)};if(a)return(0,$.jsx)(ae.a,{});const h=((e,s,n)=>{if(e&&e.length){if(n===Se.VERSION){const n=ye()(e,"Version");return Object.keys(n).map((e=>{const t=n[e].filter((({Tenants:e})=>Boolean(e))),l=ye()(t,"Tenants"),r=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(Ve);return r.length?{title:e,items:r,versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))}:null})).filter((e=>Boolean(e)))}{const n=e.filter((({Tenants:e})=>Boolean(e))),t=ye()(n,"Tenants");return Object.keys(t).map((e=>{const n=we(t[e],s),l=ye()(t[e],"Version"),r=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})));return r.length?{title:e,items:r,versionsValues:n}:null})).filter((e=>Boolean(e))).sort(Ve)}}})(o,e,i),p=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e})=>null===e||void 0===e?void 0:e.includes("Storage"))),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),m=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e,Version:s})=>!e&&s)),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),g=null!==p&&void 0!==p&&p.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_storage")}),p.map((({title:e,nodes:s,items:n,versionColor:t})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t},`storage-nodes-${e}`)))]}):null,x=null!==h&&void 0!==h&&h.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_database")}),(0,$.jsxs)("div",{className:De("controls"),children:[(0,$.jsxs)("div",{className:De("group"),children:[(0,$.jsx)("span",{className:De("label"),children:"Group by:"}),(0,$.jsxs)(le.a,{value:i,onUpdate:v,children:[(0,$.jsx)(le.a.Option,{value:Se.TENANT,children:Se.TENANT}),(0,$.jsx)(le.a.Option,{value:Se.VERSION,children:Se.VERSION})]})]}),(0,$.jsx)(re.S,{className:De("checkbox"),onChange:()=>u((e=>!e)),checked:c,children:"All expanded"})]}),h.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,expanded:c,versionColor:t,versionsValues:l},`tenant-nodes-${e}`)))]}):null,N=null!==m&&void 0!==m&&m.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_other")}),m.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t,versionsValues:l},`other-nodes-${e}`)))]}):null,f=(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_overall")}),(0,$.jsx)("div",{className:De("overall-wrapper"),children:(0,$.jsx)(ce,{progressClassName:De("overall-progress"),versionsValues:l.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,$.jsxs)("div",{className:De(),children:[f,g,x,N]})};var Ae=n(98089),Ge=n(87184);const Ie=(0,g.cn)("tag"),Pe=({text:e,type:s})=>(0,$.jsx)("div",{className:Ie({type:s}),children:e}),Re=({tags:e,tagsType:s,className:n="",gap:t=1})=>(0,$.jsx)(Ge.s,{className:n,gap:t,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,$.jsx)(Pe,{text:e,type:s},n)))});var $e=n(7435);const Be=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","link_cores":"Coredumps","link_logging":"Logging","link_slo-logs":"SLO Logs","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","title_info":"Info","title_links":"Links","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),Fe=(0,I.g4)("ydb-cluster",{en:Be});var Ue=n(2102);const We=(0,g.cn)("ydb-doughnut-metrics");function Ze({status:e,fillWidth:s,children:n,className:t}){let l="var(--g-color-line-generic-solid)",r=3.6*s-90;s>50&&(l="var(--doughnut-color)",r=3.6*s+90);const a=r;return(0,$.jsx)("div",{className:We(null,t),children:(0,$.jsx)("div",{style:{backgroundImage:`linear-gradient(${a}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:We("doughnut",{status:e}),children:(0,$.jsx)("div",{className:We("text-wrapper"),children:n})})})}Ze.Legend=function({children:e,variant:s="subheader-3"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:We("legend"),children:e})},Ze.Value=function({children:e,variant:s="subheader-2"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:We("value"),children:e})};var qe=n(70043);const Qe=(0,g.cn)("ydb-cluster-dashboard");function Ye({children:e,title:s,size:n,className:t}){return(0,$.jsxs)(Ue.A,{className:Qe("card",{size:n},t),size:n,interactive:!1,children:[s?(0,$.jsx)(Ae.E,{variant:"subheader-3",className:Qe("card-title"),children:s}):null,e]})}function He({title:e,children:s,size:n,...t}){return(0,$.jsx)(Ye,{title:e,size:n,children:(0,$.jsx)(Ze,{...t,className:Qe("doughnut"),children:s})})}function Je(){return(0,$.jsx)(Ye,{className:Qe("skeleton-wrapper"),children:(0,$.jsx)(qe.E,{className:Qe("skeleton")})})}function Ke(){return(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{}),(0,$.jsx)(Je,{})]})}var Xe=n(35736),es=n(57439),ss=n(24543),ns=n(46549);const ts=(0,g.cn)("ydb-disk-groups-stats"),ls=({stats:e,children:s})=>(0,$.jsx)("div",{className:ts(),children:(0,$.jsx)(ss.u,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(rs,{stats:e}),children:s})});function rs({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:l}=e,r=(0,ns.fn)(Math.max(t,l)),a=(0,ns.z3)({value:t,size:r}),o=(0,ns.z3)({value:l,size:r}),i=Math.round(t/(t+l)*100),d=[{name:Fe("disk-type"),content:s},{name:Fe("erasure"),content:n},{name:Fe("allocated"),content:a},{name:Fe("available"),content:o},{name:Fe("usage"),content:i+"%"}];return(0,$.jsx)(es.u,{items:d,className:ts("popup-content"),responsive:!0})}function as({value:e,capacity:s,colorizeProgress:n=!0,warningThreshold:t,dangerThreshold:l,inverseColorize:r=!1,legendFormatter:a}){const o=parseFloat(String(e)),i=parseFloat(String(s));let d=o/i*100||0;d=d>100?100:d;const c=d<1?.5:d;return{status:(0,Xe.w)({fillWidth:d,warningThreshold:t,dangerThreshold:l,colorizeProgress:n,inverseColorize:r}),percents:(0,se.l9)(d/100),legend:a({value:o,capacity:i}),fill:c}}const os=["storage","tenant"];const is=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function ds({value:e,capacity:s}){let n=[];return n=s<1e4?[(0,se.ZV)(Math.round(e)),(0,se.ZV)(Math.round(s))]:(0,se.Nd)(e,s,void 0,"",!0),`${n[0]} / ${n[1]}\n${Fe("context_cores")}`}function cs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:ds,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_cpu"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function us({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function vs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:us,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_memory"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function hs({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function ps({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=as({value:e,capacity:s,legendFormatter:hs,...n});return(0,$.jsxs)(He,{status:t,fillWidth:a,title:Fe("title_storage"),children:[(0,$.jsx)(Ze.Legend,{children:r}),(0,$.jsx)(Ze.Value,{children:l})]})}function ms({value:e}){return(0,$e.f8)(e)?(0,$.jsx)(Ae.E,{variant:"subheader-3",color:"secondary",children:(0,se.ZV)(e)}):null}function gs({cluster:e,...s}){return s.error?(0,$.jsx)(w.o,{error:s.error,className:Qe("error")}):(0,$.jsx)("div",{className:Qe(),children:(0,$.jsxs)(Ge.s,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.s,{gap:4,wrap:"nowrap",children:(0,$.jsx)(js,{...s,cluster:e})}),(0,$.jsx)("div",{className:Qe("cards-container"),children:(0,$.jsx)(xs,{...s,cluster:e})})]})})}function js({cluster:e,loading:s}){if(s)return(0,$.jsx)(Ke,{});const n=[];if((0,Me.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:l}=e,r=null!==l&&void 0!==l?l:t;(0,$e.f8)(s)&&(0,$e.f8)(r)&&n.push((0,$.jsx)(cs,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:l}=e;(0,$e.f8)(t)&&(0,$e.f8)(l)&&n.push((0,$.jsx)(ps,{value:l,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:a}=e;return(0,$e.f8)(r)&&(0,$e.f8)(a)&&n.push((0,$.jsx)(vs,{value:a,capacity:r},"memory")),n}function xs({cluster:e,groupStats:s={},loading:n}){if(n)return null;const l=[],r=function(e){const s=[];if((0,Me.L)(e)&&e.MapNodeRoles)for(const[n,l]of Object.entries(e.MapNodeRoles))os.includes(n.toLowerCase())&&s.push((0,$.jsxs)(t.Fragment,{children:[n,": ",(0,se.ZV)(l)]},n));return s}(e);if(l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_nodes"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,$.jsx)(Re,{tags:r,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const s=[];return Object.entries(e).forEach((([e,n])=>{Object.values(n).forEach((n=>{s.push((0,$.jsxs)(ls,{stats:n,children:[e,": ",(0,se.ZV)(n.createdGroups)," /"," ",(0,se.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=is(s);l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_storage-groups"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:n}),(0,$.jsx)(Re,{tags:e,gap:3})]})},"groups"))}const a=function(e){var s;return(0,Me.L)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(s=e.DataCenters)||void 0===s?void 0:s.filter(Boolean)}(e);return null!==a&&void 0!==a&&a.length&&l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_hosts"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.Hosts}),(0,$.jsx)(Re,{tags:a,gap:3})]})},"hosts")),e.Tenants&&l.push((0,$.jsx)(Ye,{size:"l",title:Fe("label_databases"),children:(0,$.jsx)(ms,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),l}var Ns=n(42655);const fs=(0,g.cn)("cluster-info");var bs=n(41650);function ys(){const{cores:e,logging:s}=(0,p.Zd)();return t.useMemo((()=>{const n=[],t=function(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s&&"url"in s&&"string"===typeof s.url)return s.url}catch{}}(e),{logsUrl:l,sloLogsUrl:r}=function(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s){return{logsUrl:"url"in s&&"string"===typeof s.url?s.url:void 0,sloLogsUrl:"slo_logs_url"in s&&"string"===typeof s.slo_logs_url?s.slo_logs_url:void 0}}}catch{}return{}}(s);return t&&n.push({title:Fe("link_cores"),url:t}),l&&n.push({title:Fe("link_logging"),url:l}),r&&n.push({title:Fe("link_slo-logs"),url:r}),n}),[e,s])}var Cs=n(15132);const ks=(0,g.cn)("ydb-nodes-state");function ws({state:e,children:s}){return(0,$.jsx)("div",{className:ks({[e.toLowerCase()]:!0}),children:s})}const Ts={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},_s=(e,s)=>{const n=[];if((0,Me.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>Ts[s[0]]-Ts[e[0]]));const t=s.map((([e,s])=>(0,$.jsx)(ws,{state:e,children:(0,se.ZV)(s)},e)));n.push({label:Fe("label_nodes-state"),value:(0,$.jsx)(Ge.s,{gap:2,children:t})})}const l=(e=>{if((0,Me.L)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((([e,s])=>(0,$.jsxs)(t.Fragment,{children:[e,": ",(0,se.ZV)(s)]},e)))})(e);return null!==l&&void 0!==l&&l.length&&n.push({label:Fe("label_dc"),value:(0,$.jsx)(Re,{tags:l,gap:2,className:fs("dc")})}),n.push({label:Fe("label_load"),value:(0,$.jsx)(Cs.O,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),n.push(...s),n},Ss=({cluster:e,loading:s,error:n,additionalClusterProps:t={}})=>{const{info:l=[],links:r=[]}=t,a=ys(),o=r.concat(a),i=_s(null!==e&&void 0!==e?e:{},l);return(0,$.jsxs)("div",{className:fs(),children:[n?(0,$.jsx)(w.o,{error:n,className:fs("error")}):null,s?(0,$.jsx)(Ns.y,{className:fs("skeleton"),rows:4}):(0,$.jsxs)(Ge.s,{gap:10,wrap:"nowrap",children:[n&&!e?null:(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:fs("section-title"),children:Fe("title_info")}),(0,$.jsx)(L.u,{nameMaxWidth:200,children:i.map((({label:e,value:s})=>(0,$.jsx)(L.u.Item,{name:e,children:s},e)))})]}),o.length?(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:fs("section-title"),children:Fe("title_links")}),(0,$.jsx)(Ge.s,{direction:"column",gap:4,children:o.map((({title:e,url:s})=>(0,$.jsx)(G.K,{title:e,url:s},e)))})]}):null]})]})};var Vs=n(87842);const Es=(0,g.cn)("ydb-cluster");function Os({additionalClusterProps:e,additionalTenantsProps:s,additionalNodesProps:n,additionalVersionsProps:g}){const y=t.useRef(null),C=(0,h.fp)(),k=(0,j.YQ)(),w=function(){const e=(0,j.YQ)(),s=(0,j.N4)((e=>e.cluster.defaultClusterTab)),n=(0,o.W5)(v.Ay.cluster),{activeTab:l}=(null===n||void 0===n?void 0:n.params)||{};let r;r=(0,Vs.eC)(l)?l:s;return t.useEffect((()=>{r!==s&&e((0,p.Yv)(r))}),[r,s,e]),r}(),[{clusterName:T,backend:_}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),S=(0,j.N4)((e=>(0,p.zR)(e,null!==T&&void 0!==T?T:void 0))),{title:V}=(0,p.Zd)(),E=null!==V&&void 0!==V?V:S,{data:{clusterData:O={},groupsStats:L}={},isLoading:M,error:D}=p.Zh.useGetClusterInfoQuery(null!==T&&void 0!==T?T:void 0),z=D&&"object"===typeof D?D:void 0,A=(0,j.N4)((e=>(0,p.ds)(e,null!==T&&void 0!==T?T:void 0)));t.useEffect((()=>{k((0,m.g)("cluster",{}))}),[k]);const G=t.useMemo((()=>null!==g&&void 0!==g&&g.getVersionToColorMap?null===g||void 0===g?void 0:g.getVersionToColorMap():(0,x._n)(null===O||void 0===O?void 0:O.Versions)),[g,O]),I=t.useMemo((()=>Vs.bn.find((({id:e})=>e===w))),[w]);return(0,$.jsxs)("div",{className:Es(),ref:y,children:[(0,$.jsx)(a.mg,{defaultTitle:`${E} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${E} \u2014 YDB Monitoring`,children:I?(0,$.jsx)("title",{children:I.title}):null}),(0,$.jsx)("div",{className:Es("header"),children:M?(0,$.jsx)(l.E,{className:Es("title-skeleton")}):(0,$.jsx)(c.c,{size:"m",status:null===O||void 0===O?void 0:O.Overall,name:E,className:Es("title")})}),(0,$.jsx)("div",{className:Es("sticky-wrapper"),children:(0,$.jsx)(d.E,{className:Es("auto-refresh-control")})}),C&&(0,$.jsx)(gs,{cluster:O,groupStats:L,loading:M,error:z||(null===O||void 0===O?void 0:O.error)}),(0,$.jsx)("div",{className:Es("tabs-sticky-wrapper"),children:(0,$.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:w,items:Vs.bn,wrapTo:({id:e},s)=>{const n=(0,Vs.a)(e,{clusterName:T,backend:_});return(0,$.jsx)(u.E,{to:n,onClick:()=>{k((0,p.Yv)(e))},children:s},e)}})}),(0,$.jsxs)(o.dO,{children:[(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.overview)).pathname,children:(0,$.jsx)(Ss,{cluster:O,loading:M,error:z,additionalClusterProps:e})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.tablets)).pathname,children:(0,$.jsx)(b.Q,{loading:M,tablets:A})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.tenants)).pathname,children:(0,$.jsx)(te,{additionalTenantsProps:s})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:y,additionalNodesProps:n})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.storage)).pathname,children:(0,$.jsx)(f.z,{parentRef:y})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,Vs.a)(Vs.Bi.versions)).pathname,children:(0,$.jsx)(ze,{versionToColor:G,cluster:O})}),(0,$.jsx)(o.qh,{render:()=>(0,$.jsx)(o.rd,{to:(0,v.a3)((0,Vs.a)(w))})})]})]})}},42655:(e,s,n)=>{n.d(s,{y:()=>c});var t=n(59284),l=n(89169),r=n(77506),a=n(66781),o=n(60712);const i=(0,r.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.E,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=({rows:e=8,className:s,delay:n=600})=>{const[r]=(0,a.y)(n);let c=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.E,{className:i("value")})]});return r||(c=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:i("row"),children:c},`skeleton-row-${s}`)))})}},70043:(e,s,n)=>{n.d(s,{E:()=>a});var t=n(89169),l=n(66781),r=n(60712);const a=({delay:e=600,className:s})=>{const[n]=(0,l.y)(e);return n?(0,r.jsx)(t.E,{className:s}):null}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56761.638c1141.chunk.js b/ydb/core/viewer/monitoring/static/js/56761.638c1141.chunk.js new file mode 100644 index 0000000000..7f2e976834 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56761.638c1141.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56761],{56761:(e,t,a)=>{a.d(t,{default:()=>r});var s=a(80694);const r=a.n(s)()},80694:e=>{function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}e.exports=t,t.displayName="uorazor",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5685.c0a21a10.chunk.js b/ydb/core/viewer/monitoring/static/js/5685.c0a21a10.chunk.js deleted file mode 100644 index 724c5b2171..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5685.c0a21a10.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5685],{45685:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-iq",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644_ \u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644".split("_"),weekStart:1,weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644_ \u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/56990.be6d200f.chunk.js b/ydb/core/viewer/monitoring/static/js/56990.be6d200f.chunk.js new file mode 100644 index 0000000000..8f6be773c7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/56990.be6d200f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[56990],{56990:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>m,default:()=>h});var a,r,i,n,c,d,o,s,f=t(59284);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p({title:e,titleId:l,...t},p){return f.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:230,height:230,fill:"none",ref:p,"aria-labelledby":l},t),e?f.createElement("title",{id:l},e):null,a||(a=f.createElement("path",{fill:"#BECFE0",fillOpacity:.8,fillRule:"evenodd",d:"M169.001 51.666c5.523 0 10 4.477 10 10v21.017l18.197-10.506c4.783-2.762 10.899-1.123 13.66 3.66 2.761 4.783 1.123 10.899-3.66 13.66l-18.197 10.507 18.198 10.506c4.783 2.762 6.421 8.878 3.66 13.661-2.762 4.782-8.877 6.421-13.66 3.66l-18.198-10.506v21.008c0 5.523-4.477 10-10 10-5.522 0-10-4.477-10-10v-21.009l-18.199 10.507c-4.782 2.761-10.898 1.122-13.66-3.66-2.761-4.783-1.122-10.899 3.66-13.661l18.199-10.506-18.198-10.507c-4.783-2.761-6.421-8.877-3.66-13.66 2.762-4.783 8.877-6.422 13.66-3.66l18.198 10.507V61.666c0-5.523 4.478-10 10-10Z",clipRule:"evenodd"})),r||(r=f.createElement("path",{fill:"#E7E7E7",fillRule:"evenodd",d:"M171.523 95.922a11.003 11.003 0 0 1 1.099 8.347l-13.208 49.291c-1.572 5.868-7.604 9.351-13.472 7.778l-25.356-6.794a44.998 44.998 0 0 1-.53 1.929l25.368 6.797c6.935 1.858 14.064-2.257 15.922-9.192l13.207-49.291c.893-3.33.426-6.879-1.298-9.865L155.598 64.34a12.999 12.999 0 0 0-7.894-6.057l-29.972-8.031c-6.935-1.858-14.063 2.257-15.922 9.192l-11.328 42.277c.64.192 1.276.398 1.905.618l11.355-42.377c1.573-5.868 7.604-9.35 13.472-7.778l29.973 8.03a11 11 0 0 1 6.679 5.126l17.657 30.582Z",clipRule:"evenodd"})),i||(i=f.createElement("path",{fill:"#FF5958",fillOpacity:.8,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"})),n||(n=f.createElement("path",{stroke:"#E7E7E7",strokeWidth:2,d:"M60.636 117.734c53.586-33.459-26.868-81.505-36.557-61.318-11.802 24.59 99.395 51.098 128.865-26.3"})),f.createElement("mask",{id:"b",width:89,height:89,x:33,y:99,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},c||(c=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"}))),d||(d=f.createElement("g",{filter:"url(#a)",mask:"url(#b)"},f.createElement("path",{stroke:"#E7E7E7",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.6,strokeWidth:2,d:"M172.389 95.422a12.004 12.004 0 0 1 1.199 9.106l-13.208 49.291c-1.715 6.401-8.295 10.2-14.697 8.485L91.591 147.81c-6.401-1.715-10.2-8.295-8.485-14.697l19.67-73.41c1.716-6.402 8.296-10.2 14.697-8.485l29.972 8.03a11.998 11.998 0 0 1 7.287 5.592l17.657 30.582Z"}))),o||(o=f.createElement("g",{filter:"url(#c)"},f.createElement("path",{fill:"#fff",fillOpacity:.72,fillRule:"evenodd",d:"M80.866 130.432a6.359 6.359 0 1 1-12.284 3.29 6.359 6.359 0 0 1 12.284-3.29Zm4.817-1.291c1.621 6.052-1.97 12.273-8.022 13.894-6.052 1.622-12.273-1.97-13.895-8.022-1.621-6.052 1.97-12.272 8.022-13.894 6.052-1.622 12.273 1.97 13.895 8.022Zm-21.346 32.565c-.154-.577-.009-2.61 2.877-5.555 2.665-2.721 6.917-5.33 12.158-6.734 5.24-1.404 10.227-1.271 13.896-.247 3.971 1.108 5.114 2.796 5.268 3.372a3.116 3.116 0 0 1-2.204 3.817l-28.178 7.55a3.116 3.116 0 0 1-3.817-2.203ZM78.081 144.6c-12.054 3.23-20.238 12.134-18.56 18.396a8.103 8.103 0 0 0 9.924 5.73l28.178-7.55a8.104 8.104 0 0 0 5.73-9.925c-1.678-6.261-13.218-9.881-25.272-6.651Z",clipRule:"evenodd"}))),s||(s=f.createElement("defs",null,f.createElement("filter",{id:"a",width:113.303,height:133.91,x:71.693,y:39.806,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_1301_35376",stdDeviation:5})),f.createElement("filter",{id:"c",width:73.289,height:73.288,x:41.018,y:106.391,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),f.createElement("feOffset",null),f.createElement("feGaussianBlur",{stdDeviation:1.917}),f.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),f.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_1301_35376"})))))}const m=f.forwardRef(p),h=t.p+"static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/57016.ccc30938.chunk.js b/ydb/core/viewer/monitoring/static/js/57016.ccc30938.chunk.js new file mode 100644 index 0000000000..4f409521e8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57016.ccc30938.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57016],{57016:(e,a,t)=>{t.d(a,{default:()=>E});var n=t(72681);const E=t.n(n)()},70586:e=>{function a(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}e.exports=a,a.displayName="turtle",a.aliases=[]},72681:(e,a,t)=>{var n=t(70586);function E(e){e.register(n),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}e.exports=E,E.displayName="sparql",E.aliases=["rq"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/57118.e38774e7.chunk.js b/ydb/core/viewer/monitoring/static/js/57118.e38774e7.chunk.js new file mode 100644 index 0000000000..59b33e50a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57118.e38774e7.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 57118.e38774e7.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57118],{57118:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/57118.e38774e7.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/57118.e38774e7.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/57206.7544a09d.chunk.js b/ydb/core/viewer/monitoring/static/js/57206.7544a09d.chunk.js new file mode 100644 index 0000000000..7b51129340 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57206.7544a09d.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 57206.7544a09d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57206],{57206:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>s});var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/57206.7544a09d.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/57206.7544a09d.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/57320.74fc8316.chunk.js b/ydb/core/viewer/monitoring/static/js/57320.74fc8316.chunk.js new file mode 100644 index 0000000000..cfc6dd3e8e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57320.74fc8316.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57320],{5819:(e,n,a)=>{var s=a(24450);function t(e){e.register(s),function(e){var n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(e)}e.exports=t,t.displayName="json5",t.aliases=[]},24450:e=>{function n(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=n,n.displayName="json",n.aliases=["webmanifest"]},57320:(e,n,a)=>{a.d(n,{default:()=>t});var s=a(5819);const t=a.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/57469.85faf9a5.chunk.js b/ydb/core/viewer/monitoring/static/js/57469.85faf9a5.chunk.js new file mode 100644 index 0000000000..b13981003a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57469.85faf9a5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57469],{57469:(e,a,d)=>{d.d(a,{default:()=>l});var r=d(77678);const l=d.n(r)()},77678:e=>{function a(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}e.exports=a,a.displayName="purebasic",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5759.52418ea5.chunk.js b/ydb/core/viewer/monitoring/static/js/5759.52418ea5.chunk.js deleted file mode 100644 index 2626472969..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5759.52418ea5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5759],{45759:function(a,e,t){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=e(a),_={name:"eu",weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),weekStart:1,weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"}};return t.default.locale(_,null,!0),_}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/57708.c2b518ee.chunk.js b/ydb/core/viewer/monitoring/static/js/57708.c2b518ee.chunk.js new file mode 100644 index 0000000000..88fcc463d8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57708.c2b518ee.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57708],{23025:e=>{function a(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}e.exports=a,a.displayName="n4js",a.aliases=["n4jsd"]},57708:(e,a,t)=>{t.d(a,{default:()=>s});var n=t(23025);const s=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/57946.31f41343.chunk.js b/ydb/core/viewer/monitoring/static/js/57946.31f41343.chunk.js new file mode 100644 index 0000000000..8f449ec683 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57946.31f41343.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 57946.31f41343.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57946],{57946:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/57946.31f41343.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/57946.31f41343.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/57970.67e88902.chunk.js b/ydb/core/viewer/monitoring/static/js/57970.67e88902.chunk.js new file mode 100644 index 0000000000..c4f6c976aa --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/57970.67e88902.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[57970],{57970:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),r={name:"hu",weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s m\xfalva",past:"%s",s:function(e,n,t,r){return"n\xe9h\xe1ny m\xe1sodperc"+(r||n?"":"e")},m:function(e,n,t,r){return"egy perc"+(r||n?"":"e")},mm:function(e,n,t,r){return e+" perc"+(r||n?"":"e")},h:function(e,n,t,r){return"egy "+(r||n?"\xf3ra":"\xf3r\xe1ja")},hh:function(e,n,t,r){return e+" "+(r||n?"\xf3ra":"\xf3r\xe1ja")},d:function(e,n,t,r){return"egy "+(r||n?"nap":"napja")},dd:function(e,n,t,r){return e+" "+(r||n?"nap":"napja")},M:function(e,n,t,r){return"egy "+(r||n?"h\xf3nap":"h\xf3napja")},MM:function(e,n,t,r){return e+" "+(r||n?"h\xf3nap":"h\xf3napja")},y:function(e,n,t,r){return"egy "+(r||n?"\xe9v":"\xe9ve")},yy:function(e,n,t,r){return e+" "+(r||n?"\xe9v":"\xe9ve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5816.144b5755.chunk.js b/ydb/core/viewer/monitoring/static/js/5816.144b5755.chunk.js deleted file mode 100644 index f1ec44516b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5816.144b5755.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5816],{55816:function(e,_,n){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=_(e),t={name:"tk",weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e){return e+"."}};return n.default.locale(t,null,!0),t}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5819.0ae2eb3d.chunk.js b/ydb/core/viewer/monitoring/static/js/5819.0ae2eb3d.chunk.js deleted file mode 100644 index 0cc9dbe558..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5819.0ae2eb3d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5819],{95819:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),s={name:"lv",weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:"da\u017e\u0101m sekund\u0113m",m:"min\u016btes",mm:"%d min\u016bt\u0113m",h:"stundas",hh:"%d stund\u0101m",d:"dienas",dd:"%d dien\u0101m",M:"m\u0113ne\u0161a",MM:"%d m\u0113ne\u0161iem",y:"gada",yy:"%d gadiem"}};return a.default.locale(s,null,!0),s}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/58457.708b5a15.chunk.js b/ydb/core/viewer/monitoring/static/js/58457.708b5a15.chunk.js new file mode 100644 index 0000000000..2b810fd34f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/58457.708b5a15.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[58457],{58457:(e,a,n)=>{n.d(a,{default:()=>t});var s=n(76280);const t=n.n(s)()},76280:e=>{function a(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}e.exports=a,a.displayName="hoon",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5853.0c5ec1d1.chunk.js b/ydb/core/viewer/monitoring/static/js/5853.0c5ec1d1.chunk.js deleted file mode 100644 index 3e89310fc9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5853.0c5ec1d1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5853],{55853:function(s,i,e){s.exports=function(s){"use strict";function i(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}var e=i(s),M="sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),a="sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),d=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,l=function(s,i){return d.test(i)?M[s.month()]:a[s.month()]};l.s=a,l.f=M;var Y={name:"lt",weekdays:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),weekdaysShort:"sek_pir_ant_tre_ket_pen_\u0161e\u0161".split("_"),weekdaysMin:"s_p_a_t_k_pn_\u0161".split("_"),months:l,monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),ordinal:function(s){return s+"."},weekStart:1,relativeTime:{future:"u\u017e %s",past:"prie\u0161 %s",s:"kelias sekundes",m:"minut\u0119",mm:"%d minutes",h:"valand\u0105",hh:"%d valandas",d:"dien\u0105",dd:"%d dienas",M:"m\u0117nes\u012f",MM:"%d m\u0117nesius",y:"metus",yy:"%d metus"},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"}};return e.default.locale(Y,null,!0),Y}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/58666.91b79adf.chunk.js b/ydb/core/viewer/monitoring/static/js/58666.91b79adf.chunk.js new file mode 100644 index 0000000000..32ea32a320 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/58666.91b79adf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[58666],{29309:a=>{function e(a){!function(a){a.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~\xdf\xf8]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO\xae]/,alias:"bold"}}}(a)}a.exports=e,e.displayName="$false",e.aliases=[]},58666:(a,e,t)=>{t.d(e,{default:()=>r});var n=t(29309);const r=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5875.f8a190bf.chunk.js b/ydb/core/viewer/monitoring/static/js/5875.f8a190bf.chunk.js deleted file mode 100644 index 7e6298b22c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5875.f8a190bf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5875],{98256:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,k,M=C(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)({}).hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},h.apply(null,arguments)}function Z({title:e,titleId:t,...C},Z){return M.createElement("svg",h({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?M.createElement("title",{id:t},e):null,r||(r=M.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=M.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=M.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=M.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=M.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=M.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=M.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=M.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=M.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=M.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=M.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=M.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),k||(k=M.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=M.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/58840.529e7b9b.chunk.js b/ydb/core/viewer/monitoring/static/js/58840.529e7b9b.chunk.js new file mode 100644 index 0000000000..69f5857b85 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/58840.529e7b9b.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[58840],{58840:function(e,a,t){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),r={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,a){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?a[0]:a[1]:a[2]},relativeTimeFormatter:function(e,a,t,d){var n=r.words[t];if(1===t.length)return"y"===t&&a?"jedna godina":d||a?n[0]:n[1];var i=r.correctGrammarCase(e,n);return"yy"===t&&a&&"%d godinu"===i?e+" godina":i.replace("%d",e)}},d={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_\u010cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._\u010cet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:r.relativeTimeFormatter,mm:r.relativeTimeFormatter,h:r.relativeTimeFormatter,hh:r.relativeTimeFormatter,d:r.relativeTimeFormatter,dd:r.relativeTimeFormatter,M:r.relativeTimeFormatter,MM:r.relativeTimeFormatter,y:r.relativeTimeFormatter,yy:r.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js b/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js deleted file mode 100644 index abe026a776..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5888.4fa64369.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5888],{35888:(e,r,n)=>{n.r(r),n.d(r,{conf:()=>t,language:()=>s});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/58884.1009923e.chunk.js b/ydb/core/viewer/monitoring/static/js/58884.1009923e.chunk.js new file mode 100644 index 0000000000..03b9e563a8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/58884.1009923e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 58884.1009923e.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[58884],{253:(e,t,i)=>{"use strict";i.d(t,{f:()=>r,j:()=>n});var s=i(32848);const n=(0,i(63591).u1)("accessibilityService"),r=new s.N1("accessibilityModeEnabled",!1)},538:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(40132).then(i.bind(i,40132))})},631:(e,t,i)=>{"use strict";function s(e){return"string"===typeof e}function n(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function r(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function o(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function c(e){return!0===e||!1===e}function l(e){return"undefined"===typeof e}function h(e){return!d(e)}function d(e){return l(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let s=0;s<i;s++)f(e[s],t[s])}function f(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{Et:()=>o,Gv:()=>n,Kg:()=>s,Lm:()=>c,O9:()=>h,Tn:()=>p,b0:()=>l,eU:()=>g,iu:()=>r,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>d})},796:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(77642).then(i.bind(i,77642))})},908:(e,t,i)=>{"use strict";i.d(t,{As:()=>r,qg:()=>o});var s=i(81674),n=i(79400);function r(e){return JSON.stringify(e,a)}function o(e){let t=JSON.parse(e);return t=c(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function c(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return n.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof s.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=c(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=c(e[i],t+1))}return e}},1019:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(85858),n=i(76531),r=i(1449).decode,o="$value",a="$type",c="$attributes",l="$incomplete",h={string:null,number:null,boolean:null,null:null,object:null,array:null};const d="_type_tag";function u(e){if(Object.prototype.hasOwnProperty.call(e,"$attributes")&&!Object.prototype.hasOwnProperty.call(e,"$incomplete")){const t=e.$attributes[d];if("undefined"!==typeof t){const i=n.value(t),s=function(e,t){if("url"===e)return function(e){const t=e.$value,i=e.$type;if("string"===i)return{$type:"tag_value",$value:{href:t}};if("map"===i&&Object.prototype.hasOwnProperty.call(t,"href"))return{$type:"tag_value",$value:{href:n.value(t.href),text:n.value(t.text),title:n.value(t.title)}}}(t);return function(e){return{$type:e.$type,$value:e.$value}}(t)}(i,e);s&&(e.$type="tagged",e.$tag=i,e.$value=s,delete e.$attributes[d])}}}function g(e){const t={};return function(e,t){e[o]=n.hasSpecialProperty(t,o)?t[o]:t;const i=s(e[o]);if(!Object.prototype.hasOwnProperty.call(h,i))throw new Error('unipika: invalid input - $value type "'+i+'" is not supported.');if(n.hasSpecialProperty(t,a)){const i=s(t[a]);if("undefined"!==i&&"string"!==i)throw new Error('unipika: invalid input - $type must be a string instead got "'+i+'".');e[a]=t[a]}else e[a]=function(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}(i)}(t,e),function(e,t){if(n.hasSpecialProperty(t,c)){const i=s(t[c]);if("object"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[c]=Object.assign({},t[c])}}(t,e),function(e,t){if(n.hasSpecialProperty(t,l)){const i=s(t[l]);if("boolean"!==i)throw new Error('unipika: invalid input - $attributes must be an object instead got "'+i+'".');e[l]=t[l]}}(t,e),u(t),t}function p(e,t){return Object.keys(e).map((function(i){const s=m(g(i),t);return s.$key=!0,[s,m(e[i],t)]}))}const m=function(e,i){let s;return(i=i||{}).decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),(e=g(e))&&(n.hasSpecialProperty(e,c)&&(e=function(e,t){return e[c]=p(e[c],t),e}(e)),s=e[a],"map"===s?e=function(e,t){return e[o]=p(e[o],t),e}(e,i):"list"===s?e=function(e,t){return e[o]=e[o].map((function(e){return m(e,t)})),e}(e,i):"string"===s&&(e=function(e,t){try{e.$decoded_value=t.decodeUTF8?r(e[o],{allowTruncatedEnd:e[l]}):e[o]}catch(i){e.$binary=!0}return e}(e,i))),e};e.exports=m}()},1098:(e,t,i)=>{"use strict";i.d(t,{X:()=>l});var s=i(8597),n=i(51241),r=i(5662),o=i(31308),a=i(87958),c=i(38844);class l extends r.jG{static{this.ID="editor.contrib.placeholderText"}constructor(e){var t,i;super(),this._editor=e,this._editorObs=(0,c.Ud)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,o.C)({owner:this,equalsFn:n.dB},(e=>{const t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}})),this._shouldViewBeAlive=(t=this,i=e=>void 0!==this._state.read(e)?.placeholder,(0,o.ZX)(t,((e,t)=>!0===t||i(e)))),this._view=(0,a.rm)(((e,t)=>{if(!this._shouldViewBeAlive.read(e))return;const i=(0,s.h)("div.editorPlaceholder");t.add((0,o.fm)((e=>{const t=this._state.read(e),s=void 0!==t?.placeholder;i.root.style.display=s?"block":"none",i.root.innerText=t?.placeholder??""}))),t.add((0,o.fm)((e=>{const t=this._editorObs.layoutInfo.read(e);i.root.style.left=`${t.contentLeft}px`,i.root.style.width=t.contentWidth-t.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`}))),t.add((0,o.fm)((e=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(e),i.root.style.fontSize=this._editorObs.getOption(52).read(e)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(e)+"px"}))),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,o.lk)(0),position:(0,o.lk)(null),domNode:i.root}))})),this._view.recomputeInitiallyAndOnChange(this._store)}}},1155:(e,t,i)=>{"use strict";i.d(t,{m:()=>u});var s=i(59284),n=i(32084),r=i(81517),o=i(39238),a=i(98089),c=i(69220),l=i(7412);const h=(0,c.om)("tooltip"),d=["bottom","top"],u=e=>{const{children:t,content:i,disabled:c,placement:u=d,qa:g,id:p,className:m,style:f,disablePortal:_,contentClassName:v,openDelay:C=1e3,closeDelay:E}=e,[b,S]=s.useState(null),y=(0,r.d)(b,{openDelay:C,closeDelay:E,preventTriggerOnFocus:!0}),w=s.Children.only(t),R=(0,l.Q)(w),L=(0,n.N)(S,R);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:L}),b?s.createElement(o.z,{id:p,role:"tooltip",className:h(null,m),style:f,open:y&&!c,placement:u,anchorRef:{current:b},disablePortal:_,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:g},s.createElement("div",{className:h("content",v)},s.createElement(a.E,{variant:"body-short",color:"complementary"},i))):null)}},1226:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var s=i(91508),n=i(15092),r=i(32799),o=i(1245),a=i(94564),c=i(36677),l=i(83069);class h{static deleteRight(e,t,i,s){const r=[];let o=3!==e;for(let l=0,h=s.length;l<h;l++){const e=s[l];let h=e;if(h.isEmpty()){const s=e.getPosition(),n=a.I.right(t,i,s);h=new c.Q(n.lineNumber,n.column,s.lineNumber,s.column)}h.isEmpty()?r[l]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[l]=new n.iu(h,""))}return[o,r]}static isAutoClosingPairDelete(e,t,i,s,n,o,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let c=0,l=o.length;c<l;c++){const l=o[c],h=l.getPosition();if(!l.isEmpty())return!1;const d=n.getLineContent(h.lineNumber);if(h.column<2||h.column>=d.length+1)return!1;const u=d.charAt(h.column-2),g=s.get(u);if(!g)return!1;if((0,r.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=d.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const s=[];for(let r=0,o=i.length;r<o;r++){const e=i[r].getPosition(),t=new c.Q(e.lineNumber,e.column-1,e.lineNumber,e.column+1);s[r]=new n.iu(t,"")}return[!0,s]}static deleteLeft(e,t,i,s,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,s,r))return this._runAutoClosingPairDelete(t,i,s);const o=[];let a=2!==e;for(let c=0,l=s.length;c<l;c++){const e=h.getDeleteRange(s[c],i,t);e.isEmpty()?o[c]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),o[c]=new n.iu(e,""))}return[a,o]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const n=e.getPosition();if(i.useTabStops&&n.column>1){const e=t.getLineContent(n.lineNumber),r=s.HG(e),a=-1===r?e.length+1:r+1;if(n.column<=a){const e=i.visibleColumnFromColumn(t,n),s=o.A.prevIndentTabStop(e,i.indentSize),r=i.columnFromVisibleColumn(t,n.lineNumber,s);return new c.Q(n.lineNumber,r,n.lineNumber,n.column)}}return c.Q.fromPositions(h.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=s.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new l.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const s=[];let o=null;i.sort(((e,t)=>l.y.compare(e.getStartPosition(),t.getEndPosition())));for(let r=0,a=i.length;r<a;r++){const a=i[r];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,l,h,d;e.lineNumber<t.getLineCount()?(i=e.lineNumber,l=1,h=e.lineNumber+1,d=1):e.lineNumber>1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,l=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,l=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new c.Q(i,l,h,d);o=u,u.isEmpty()?s[r]=null:s[r]=new n.iu(u,"")}else s[r]=null;else s[r]=new n.iu(a,"")}return new r.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},1245:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(91508);class n{static _nextVisibleColumn(e,t,i){return 9===e?n.nextRenderTabStop(t,i):s.ne(e)||s.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const n=Math.min(t-1,e.length),r=e.substring(0,n),o=new s.km(r);let a=0;for(;!o.eol();){const e=s.Z5(r,n,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const n=e.length,r=new s.km(e);let o=0,a=1;for(;!r.eol();){const c=s.Z5(e,n,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(c,o,i),h=r.offset+1;if(l>=t){return l-t<t-o?h:a}o=l,a=h}return n+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},1449:(e,t,i)=>{!function(){"use strict";const t=i(59170);e.exports={encode:t.encode,decode:t.decode}}()},1592:(e,t,i)=>{"use strict";function s(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>n,mu:()=>r,qE:()=>s});class n{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 r{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const 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}}},1646:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gv:()=>y,rC:()=>S});var s=i(25890),n=i(41234),r=i(631),o=i(78209),a=i(84001),c=i(78748),l=i(46359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=l.O.as(c.F.JSONContribution);const C="\\[([^\\]]+)\\]",E=new RegExp(C,"g"),b=`^(${C})+$`,S=new RegExp(b);function y(e){const t=[];if(S.test(e)){let i=E.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=E.exec(e)}}return(0,s.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.vl,this._onDidUpdateConfiguration=new n.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","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.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:s,source:n}of e)for(const e in s){t.add(e);const r=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=s[e];if(r.configurationDefaultOverrides.push({value:o,source:n}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,n),i.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t;const i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i))}}this.doRegisterOverrideIdentifiers(i)}updateDefaultOverrideProperty(e,t,i){const s={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=s,this.defaultLanguageConfigurationOverridesNode.properties[e]=s}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,s){const n=s?.value||{},o=s?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const s=t[e];if(r.Gv(s)&&(r.b0(n[e])||r.Gv(n[e]))){if(n[e]={...n[e]??{},...s},i)for(const t in s)o.set(`${e}.${t}`,i)}else n[e]=s,i?o.set(e,i):o.delete(e)}return{value:n,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,s){const n=this.configurationProperties[e],o=s?.value??n?.defaultDefaultValue;let a=i;if(r.Gv(t)&&(void 0!==n&&"object"===n.type||void 0===n&&(r.b0(o)||r.Gv(o)))){if(a=s?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const s in t)i&&a.set(`${e}.${s}`,i);t={...r.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const 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,s,n=3,o){n=r.z(e.scope)?n:e.scope;const a=e.properties;if(a)for(const l in a){const e=a[l];t&&R(l,e)?delete a[l]:(e.source=i,e.defaultDefaultValue=a[l].default,this.updatePropertyDefaultValue(l,e),S.test(l)?e.scope=void 0:(e.scope=r.z(e.scope)?n:e.scope,e.restricted=r.z(e.restricted)?!!s?.includes(l):e.restricted),!a[l].hasOwnProperty("included")||a[l].included?(this.configurationProperties[l]=a[l],a[l].policy?.name&&this.policyConfigurations.set(a[l].policy.name,l),!a[l].deprecationMessage&&a[l].markdownDeprecationMessage&&(a[l].deprecationMessage=a[l].markdownDeprecationMessage),o.add(l)):(this.excludedConfigurationProperties[l]=a[l],delete a[l]))}const c=e.allOf;if(c)for(const r of c)this.validateAndRegisterProperties(r,t,i,s,n,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const s=e.allOf;s?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[b]=e,u.patternProperties[b]=e,g.patternProperties[b]=e,p.patternProperties[b]=e,m.patternProperties[b]=e,f.patternProperties[b]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let s,n;!i||t.disallowConfigurationDefault&&i.source||(s=i.value,n=i.source),r.b0(s)&&(s=t.defaultDefaultValue,n=void 0),r.b0(s)&&(s=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=s,t.defaultValueSource=n}};function R(e,t){return e.trim()?S.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}l.O.add(h.Configuration,w)},1956:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07z",clipRule:"evenodd"}))},2068:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(79842).then(i.bind(i,79842))})},2183:(e,t,i)=>{"use strict";var s=i(5662),n=i(98067),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(87289);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new c.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new c.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function d(e){return n.zx?e.altKey:e.ctrlKey}class u extends s.jG{static{this.ID="editor.contrib.dragAndDrop"}static{this.TRIGGER_KEY_VALUE=n.zx?6:5}constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new o.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:s,selectionStartColumn:n}=e;i=[new c.L(s,n,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new c.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}static{this._DECORATION_OPTIONS=l.kI.register({description:"dnd-target",className:"dnd-target"})}showAt(e){this._dndDecorationIds.set([{range:new a.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}(0,r.HW)(u.ID,u,2)},2299:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},2539:e=>{e.exports=function(){function e(e,t){const i=e.$value;return"function"===typeof t.customNumberFormatter?t.customNumberFormatter(e.$value,e.$type):"yson"===t.format?i+"u":i}return e.isScalar=!0,e}},3254:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(99176).then(i.bind(i,99176))})},3730:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>l,P8:()=>d});var s=i(64383),n=i(5662),r=i(83069),o=i(36677),a=i(36456),c=i(79400);class l{constructor(e,t){this.range=e,this.direction=t}}class h{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new h(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){try{const t=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=t?.tooltip??this.hint.tooltip,this.hint.label=t?.label??this.hint.label,this.hint.textEdits=t?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(t){(0,s.M_)(t),this._isResolved=!1}}}class d{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(e,t,i,n){const r=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const s=await e.provideInlayHints(t,i,n);(s?.hints.length||e.onDidChangeInlayHints)&&r.push([s??d._emptyInlayHintList,e])}catch(o){(0,s.M_)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new s.AL;return new d(i,r,t)}constructor(e,t,i){this._disposables=new n.Cm,this.ranges=e,this.provider=new Set;const s=[];for(const[n,r]of t){this._disposables.add(n),this.provider.add(r);for(const e of n.hints){const t=i.validatePosition(e.position);let n="before";const a=d._getRangeAtPosition(i,t);let c;a.getStartPosition().isBefore(t)?(c=o.Q.fromPositions(a.getStartPosition(),t),n="after"):(c=o.Q.fromPositions(t,a.getEndPosition()),n="before"),s.push(new h(e,new l(c,n),r))}}this.items=s.sort(((e,t)=>r.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,s=e.getWordAtPosition(t);if(s)return new o.Q(i,s.startColumn,i,s.endColumn);e.tokenization.tokenizeIfCheap(i);const n=e.tokenization.getLineTokens(i),r=t.column-1,a=n.findTokenIndexAtOffset(r);let c=n.getStartOffset(a),l=n.getEndOffset(a);return l-c===1&&(c===r&&a>1?(c=n.getStartOffset(a-1),l=n.getEndOffset(a-1)):l===r&&a<n.getCount()-1&&(c=n.getStartOffset(a+1),l=n.getEndOffset(a+1))),new o.Q(i,c+1,i,l+1)}}function u(e){return c.r.from({scheme:a.ny.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}},3828:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var s=i(8597),n=i(91508);class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,s.BC)(e,(0,s.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,n.GP)(this.countFormat,this.count),this.element.title=(0,n.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=this.styles.badgeBackground??"",this.element.style.color=this.styles.badgeForeground??"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},4360:(e,t,i)=>{"use strict";i.d(t,{T:()=>Bt});var s=i(8597),n=i(46041),r=i(64383),o=i(41234),a=i(5662),c=i(31308),l=i(87958),h=i(31450),d=i(80301),u=i(55190),g=i(52555),p=i(80789),m=i(11799),f=i(31295),_=i(36921),v=i(25890),C=i(10350),E=i(25689),b=i(73157),S=i(92368),y=i(87908),w=i(86571),R=i(74444),L=i(83069),T=i(36677),x=i(87723),k=i(10154),A=i(87469),N=i(35600),I=i(92896),O=i(78209),D=i(87213),M=i(63591),P=i(61394),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=(0,P.pU)("diff-review-insert",C.W.add,(0,O.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),B=(0,P.pU)("diff-review-remove",C.W.remove,(0,O.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),W=(0,P.pU)("diff-review-close",C.W.close,(0,O.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let V=class extends a.jG{static{this._ttPolicy=(0,p.H)("diffReview",{createHTML:e=>e})}constructor(e,t,i,s,n,r,o,a,l){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=s,this._width=n,this._height=r,this._diffs=o,this._models=a,this._instantiationService=l,this._state=(0,c.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const s=t.add(this._instantiationService.createInstance(z,this._diffs,this._models,this._setVisible,this._canClose));return{model:s,view:t.add(this._instantiationService.createInstance(X,this._parentNode,s,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,c.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,c.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,c.Rn)((e=>{this._setVisible(!1,e)}))}};V=F([U(8,M._Y)],V);let z=class extends a.jG{constructor(e,t,i,s,n){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=s,this._accessibilitySignalService=n,this._groups=(0,c.FY)(this,[]),this._currentGroupIdx=(0,c.FY)(this,0),this._currentElementIdx=(0,c.FY)(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)=>this.currentGroup.read(t)?.lines[e])),this._register((0,c.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const s=[];for(const n of(0,v.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*G))){const e=[];e.push(new Y);const r=new w.M(Math.max(1,n[0].original.startLineNumber-G),Math.min(n[n.length-1].original.endLineNumberExclusive+G,t+1)),o=new w.M(Math.max(1,n[0].modified.startLineNumber-G),Math.min(n[n.length-1].modified.endLineNumberExclusive+G,i+1));(0,v.pN)(n,((t,i)=>{const s=new w.M(t?t.original.endLineNumberExclusive:r.startLineNumber,i?i.original.startLineNumber:r.endLineNumberExclusive),n=new w.M(t?t.modified.endLineNumberExclusive:o.startLineNumber,i?i.modified.startLineNumber:o.endLineNumberExclusive);s.forEach((t=>{e.push(new Q(t,n.startLineNumber+(t-s.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new q(i,t))})),i.modified.forEach((t=>{e.push(new $(i,t))})))}));const a=n[0].modified.join(n[n.length-1].modified),c=n[0].original.join(n[n.length-1].original);s.push(new K(new x.WL(a,c),e))}return s}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,c.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const s=i.findIndex((e=>t?.lineNumber<e.range.modified.endLineNumberExclusive));-1!==s&&this._currentGroupIdx.set(s,e)}this._groups.set(i,e)}))}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);t?.type===j.Deleted?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):t?.type===j.Added&&this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,c.fm)((e=>{const t=this.currentElement.read(e);if(t&&t.type!==j.Header){const e=t.modifiedLineNumber??t.diff.modified.startLineNumber;this._models.modifiedSetSelection(T.Q.fromPositions(new L.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,c.PO)(t,(t=>{this._currentGroupIdx.set(R.L.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){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,c.Rn)((i=>{this._currentElementIdx.set(R.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,c.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===j.Deleted?this._models.originalReveal(T.Q.fromPositions(new L.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==j.Header?T.Q.fromPositions(new L.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};z=F([U(4,D.Nt)],z);const G=3;var j;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(j||(j={}));class K{constructor(e,t){this.range=e,this.lines=t}}class Y{constructor(){this.type=j.Header}}class q{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=j.Deleted,this.modifiedLineNumber=void 0}}class ${constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=j.Added,this.originalLineNumber=void 0}}class Q{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=j.Unchanged}}let X=class extends a.jG{constructor(e,t,i,n,r,o){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=r,this._languageService=o,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const l=document.createElement("div");l.className="diff-review-actions",this._actionBar=this._register(new m.E(l)),this._register((0,c.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.rc("diffreview.close",(0,O.kg)("label.close","Close"),"close-diff-review "+E.L.asClassName(W),!0,(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 f.MU(this._content,{})),(0,s.Ln)(this.domNode,this._scrollbar.getDomNode(),l),this._register((0,c.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,s.Ln)(this.domNode)}))),this._register((0,S.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,S.AV)(this._content,{width:this._width,height:this._height})),this._register((0,c.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,s.b2)(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){const 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,O.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,b.M)(n,i.get(50)),(0,s.Ln)(this._content,n);const r=this._models.getOriginalModel(),o=this._models.getModifiedModel();if(!r||!o)return;const a=r.getOptions(),l=o.getOptions(),h=i.get(67),d=this._model.currentGroup.get();for(const u of d?.lines||[]){if(!d)break;let g;if(u.type===j.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=d.range,i=this._model.currentGroupIndex.get(),s=this._model.groups.get().length,n=e=>0===e?(0,O.kg)("no_lines_changed","no lines changed"):1===e?(0,O.kg)("one_line_changed","1 line changed"):(0,O.kg)("more_lines_changed","{0} lines changed",e),r=n(t.original.length),o=n(t.modified.length);e.setAttribute("aria-label",(0,O.kg)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,s,t.original.startLineNumber,r,t.modified.startLineNumber,o));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${s}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,r,a,i,o,l);n.appendChild(g);const p=(0,c.un)((e=>this._model.currentElement.read(e)===u));e.add((0,c.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,s.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,s,n,r,o,a,c){const l=s.get(146),h=l.glyphMarginWidth+l.lineNumbersWidth,d=o.get(146),u=10+d.glyphMarginWidth+d.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case j.Added:g="diff-review-row line-insert",p=" char-insert",m=H;break;case j.Deleted:g="diff-review-row line-delete",p=" char-delete",m=B}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const C=document.createElement("span");C.style.width=u+"px",C.style.minWidth=u+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText="\xa0",_.appendChild(C);const b=document.createElement("span");if(b.className="diff-review-spacer",m){const e=document.createElement("span");e.className=E.L.asClassName(m),e.innerText="\xa0\xa0",b.appendChild(e)}else b.innerText="\xa0\xa0";let S;if(_.appendChild(b),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,o,c.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(n,s,r.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=n.getLineContent(e.originalLineNumber)}0===S.length&&(S=(0,O.kg)("blankLine","blank"));let y="";switch(e.type){case j.Unchanged:y=e.originalLineNumber===e.modifiedLineNumber?(0,O.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",S,e.originalLineNumber):(0,O.kg)("equalLine","{0} original line {1} modified line {2}",S,e.originalLineNumber,e.modifiedLineNumber);break;case j.Added:y=(0,O.kg)("insertLine","+ {0} modified line {1}",S,e.modifiedLineNumber);break;case j.Deleted:y=(0,O.kg)("deleteLine","- {0} original line {1}",S,e.originalLineNumber)}return f.setAttribute("aria-label",y),f}_getLineHtml(e,t,i,s,n){const r=e.getLineContent(s),o=t.get(50),a=A.f.createEmpty(r,n),c=I.qL.isBasicASCII(r,e.mightContainNonBasicASCII()),l=I.qL.containsRTL(r,c,e.mightContainRTL());return(0,N.Md)(new N.zL(o.isMonospace&&!t.get(33),o.canUseHalfwidthRightwardsArrow,r,!1,c,l,0,a,[],i,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(118),t.get(100),t.get(95),t.get(51)!==y.Bc.OFF,null)).html}};X=F([U(5,k.L)],X);class Z{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(){return this.editors.modified.getPosition()??void 0}}var J=i(90766),ee=i(631),te=i(10691),ie=i(18447),se=i(94746),ne=i(41127),re=i(26746),oe=i(94650),ae=i(84084),ce=i(82518),le=i(66782),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,c.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,c.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,c.FY)(this,void 0),this.unchangedRegions=(0,c.un)(this,(e=>this._options.hideUnchangedRegions.read(e)?this._unchangedRegions.read(e)?.regions??[]:((0,c.Rn)((e=>{for(const t of this._unchangedRegions.get()?.regions||[])t.collapseAll(e)})),[]))),this.movedTextToCompare=(0,c.FY)(this,void 0),this._activeMovedText=(0,c.FY)(this,void 0),this._hoveredMovedText=(0,c.FY)(this,void 0),this.activeMovedText=(0,c.un)(this,(e=>this.movedTextToCompare.read(e)??this._hoveredMovedText.read(e)??this._activeMovedText.read(e))),this._cancellationTokenSource=new ie.Qi,this._diffProvider=(0,c.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,c.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const s=(0,c.Yd)("contentChangedSignal"),n=this._register(new J.uC((()=>s.trigger(void 0)),200));this._register((0,c.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const s=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),n=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),r=i.regions.map(((e,i)=>s[i]&&n[i]?new me(s[i].startLineNumber,n[i].startLineNumber,s[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(ee.O9),o=[];let a=!1;for(const e of(0,v.n)(r,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new me(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());o.push(i)}else o.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,o.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),s=e.modified.deltaDecorations(i.modifiedDecorationIds,o.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,c.Rn)((e=>{this._unchangedRegions.set({regions:o,originalDecorationIds:t,modifiedDecorationIds:s},e)}))}})));const r=(t,i,s)=>{const n=me.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(s),this._options.hideUnchangedRegionsContextLineCount.read(s));let r;const o=this._unchangedRegions.get();if(o){const t=o.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),i=o.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0));let n=(0,S.EK)(o.regions.map(((e,s)=>{if(!t[s]||!i[s])return;const n=t[s].length;return new me(t[s].startLineNumber,i[s].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()))})).filter(ee.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new x.WL(e.getHiddenOriginalRange(s),e.getHiddenModifiedRange(s))));n=x.WL.clip(n,w.M.ofLength(1,e.original.getLineCount()),w.M.ofLength(1,e.modified.getLineCount())),r=x.WL.inverse(n,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(r)for(const e of n){const t=r.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...n);const c=e.original.deltaDecorations(o?.originalDecorationIds||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),l=e.modified.deltaDecorations(o?.modifiedDecorationIds||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:c,modifiedDecorationIds:l},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=_e(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=fe(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,c.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register((0,c.yC)((async(t,i)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),n.cancel(),s.read(t);const o=this._diffProvider.read(t);o.onChangeSignal.read(t),(0,ne.b)(re.D8,t),(0,ne.b)(ce.NC,t),this._isDiffUpToDate.set(!1,void 0);let a=[];i.add(e.original.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);a=(0,ae.M)(a,t)})));let l=[];i.add(e.modified.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);l=(0,ae.M)(l,t)})));let h=await o.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);var d,u,g;this._cancellationTokenSource.token.isCancellationRequested||(e.original.isDisposed()||e.modified.isDisposed()||(d=h,u=e.original,g=e.modified,h={changes:d.changes.map((e=>new x.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let s=e.originalRange,n=e.modifiedRange;return 1===s.startColumn&&1===n.startColumn&&(1!==s.endColumn||1!==n.endColumn)&&s.endColumn===t.getLineMaxColumn(s.endLineNumber)&&n.endColumn===i.getLineMaxColumn(n.endLineNumber)&&s.endLineNumber<t.getLineCount()&&n.endLineNumber<i.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),n=n.setEndPosition(n.endLineNumber+1,1)),new x.q6(s,n)}(e,u,g))):void 0))),moves:d.moves,identical:d.identical,quitEarly:d.quitEarly},h=fe(h,a,e.original,e.modified)??h,h=_e(h,l,e.original,e.modified)??h,(0,c.Rn)((e=>{r(h,e),this._lastDiff=h;const t=ge.fromDiffResult(h);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)}))))})))}ensureModifiedLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i)}async waitForDiff(){await(0,c.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:e?.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){const t=e.collapsedRegions?.map((e=>w.M.deserialize(e.range))),i=this._unchangedRegions.get();i&&t&&(0,c.Rn)((e=>{for(const s of i.regions)for(const i of t)if(s.modifiedUnchangedRange.intersect(i)){s.setHiddenModifiedRange(i,e);break}}))}};ue=he([de(2,se.Hg)],ue);class ge{static fromDiffResult(e){return new ge(e.changes.map((e=>new pe(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,s){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=s}}class pe{constructor(e){this.lineRangeMapping=e}}class me{static fromDiffs(e,t,i,s,n){const r=x.wm.inverse(e,t,i),o=[];for(const a of r){let e=a.original.startLineNumber,r=a.modified.startLineNumber,c=a.original.length;const l=1===e&&1===r,h=e+c===t+1&&r+c===i+1;(l||h)&&c>=n+s?(l&&!h&&(c-=n),h&&!l&&(e+=n,r+=n,c-=n),o.push(new me(e,r,c,0,0))):c>=2*n+s&&(e+=n,r+=n,c-=2*n,o.push(new me(e,r,c,0,0)))}return o}get originalUnchangedRange(){return w.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return w.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,s,n){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,c.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,c.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,c.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,c.FY)(this,void 0);const r=Math.max(Math.min(s,this.lineCount),0),o=Math.max(Math.min(n,this.lineCount-s),0);(0,le.V7)(s===r),(0,le.V7)(n===o),this._visibleLineCountTop.set(r,void 0),this._visibleLineCountBottom.set(o,void 0)}setVisibleRanges(e,t){const i=[],s=new w.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let n=this.originalLineNumber,r=this.modifiedLineNumber;const o=this.modifiedLineNumber+this.lineCount;if(0===s.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of s.ranges){const c=e===s.ranges.length-1;e++;const l=(c?o:a.endLineNumberExclusive)-r,h=new me(n,r,l,0,0);h.setHiddenModifiedRange(a,t),i.push(h),n=h.originalUnchangedRange.endLineNumberExclusive,r=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return w.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return w.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,s=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,s,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const 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){const s=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),n=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+s,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+n,i)}showOriginalLine(e,t,i){const s=e-this.originalLineNumber,n=this.originalLineNumber+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+n-s,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+s-n,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 fe(e,t,i,s){}function _e(e,t,i,s){}var ve=i(98067);class Ce extends a.jG{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,r,o,a,c,l){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=n,this._editor=r,this._viewLineCounts=o,this._originalTextModel=a,this._contextMenuService=c,this._clipboardService=l,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=E.L.asClassName(C.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let d=0;const u=i.getOption(128)&&!ve.un,g=(e,t)=>{this._contextMenuService.showContextMenu({domForShadowRoot:u?i.getDomNode()??void 0:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=n.modified.isEmpty;e.push(new _.rc("diff.clipboard.copyDeletedContent",t?n.original.length>1?(0,O.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,O.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?(0,O.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,O.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),n.original.length>1&&e.push(new _.rc("diff.clipboard.copyDeletedLineContent",t?(0,O.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+d):(0,O.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+d),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(n.original.startLineNumber+d);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(92)||e.push(new _.rc("diff.inline.revertChange",(0,O.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,s.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,s.BK)(this._diffActions),n=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:n}=(0,s.BK)(e),r=t-n,o=Math.floor(r/i),a=o*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],o<e)return t}return o}}var Ee=i(99020),be=i(25521);const Se=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function ye(e,t,i,s){(0,b.M)(s,t.fontInfo);const n=i.length>0,r=new Ee.fe(1e4);let o=0,a=0;const c=[];for(let d=0;d<e.lineTokens.length;d++){const s=d+1,l=e.lineTokens[d],h=e.lineBreakData[d],u=be.d.filter(i,s,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const s of h.breakOffsets){const c=l.sliceAndInflate(i,s,0);o=Math.max(o,Le(a,c,be.d.extractWrapped(u,i,s),n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++,i=s}c.push(h.breakOffsets.length)}else c.push(1),o=Math.max(o,Le(a,l,u,n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++}o+=t.scrollBeyondLastColumn;const l=r.build(),h=Se?Se.createHTML(l):l;s.innerHTML=h;return{heightInLines:a,minWidthInPx:o*t.typicalHalfwidthCharacterWidth,viewLineCounts:c}}class we{constructor(e,t,i,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=s}}class Re{static fromEditor(e){const t=e.getOptions(),i=t.get(50),s=t.get(146);return new Re(e.getModel()?.getOptions().tabSize||0,i,t.get(33),i.typicalHalfwidthCharacterWidth,t.get(105),t.get(67),s.decorationsWidth,t.get(118),t.get(100),t.get(95),t.get(51))}constructor(e,t,i,s,n,r,o,a,c,l,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=s,this.scrollBeyondLastColumn=n,this.lineHeight=r,this.lineDecorationsWidth=o,this.stopRenderingLineAfter=a,this.renderWhitespace=c,this.renderControlCharacters=l,this.fontLigatures=h}}function Le(e,t,i,s,n,r,o,a){a.appendString('<div class="view-line'),s||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*o.lineHeight)),a.appendString('px;width:1000000px;">');const c=t.getLineContent(),l=I.qL.isBasicASCII(c,n),h=I.qL.containsRTL(c,l,r),d=(0,N.UW)(new N.zL(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,l,h,0,t,i,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==y.Bc.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var Te=i(54770),xe=i(47508),ke=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ae=function(e,t){return function(i,s){t(i,s,e)}};let Ne=class extends a.jG{constructor(e,t,i,n,r,o,l,h,d,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=l,this._modViewZonesToIgnore=h,this._clipboardService=d,this._contextMenuService=u,this._originalTopPadding=(0,c.FY)(this,0),this._originalScrollOffset=(0,c.FY)(this,0),this._originalScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,c.FY)(this,0),this._modifiedScrollOffset=(0,c.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,c.FY)("invalidateAlignmentsState",0),p=this._register(new J.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,c.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>e?.read(t))),f=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!t||!i)return null;g.read(e);const s=this._options.renderSideBySide.read(e);return Ie(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,s)})),_=(0,c.un)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);if(!t)return null;g.read(e);const i=t.changes.map((e=>new pe(e)));return Ie(this._editors.original,this._editors.modified,i,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const y=this._register(new a.Cm);this.viewZones=(0,c.rm)(this,((e,t)=>{y.clear();const i=f.read(e)||[],n=[],o=[],a=this._modifiedTopPadding.read(e);a>0&&o.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:a,showInHiddenAreas:!0,suppressMouseDown:!0});const c=this._originalTopPadding.read(e);c>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:c,showInHiddenAreas:!0,suppressMouseDown:!0});const l=this._options.renderSideBySide.read(e),h=l?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(h){const L=this._editors.original.getModel();for(const T of i)if(T.diff)for(let x=T.originalRange.startLineNumber;x<T.originalRange.endLineNumberExclusive;x++){if(x>L.getLineCount())return{orig:n,mod:o};h?.addRequest(L.getLineContent(x),null,null)}}const d=h?.finalize()??[];let u=0;const g=this._editors.modified.getOption(67),p=this._diffModel.read(e)?.movedTextToCompare.read(e),S=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,w=this._editors.original.getModel()?.mightContainRTL()??!1,R=Re.fromEditor(this._editors.modified);for(const k of i)if(!k.diff||l||this._options.useTrueInlineDiffRendering.read(e)&&De(k.diff)){const A=k.modifiedHeightInPx-k.originalHeightInPx;if(A>0){if(p?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(k.originalRange.endLineNumberExclusive-1))continue;n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:A,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(p?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(k.modifiedRange.endLineNumberExclusive-1))continue;function N(){const e=document.createElement("div");return e.className="arrow-revert-change "+E.L.asClassName(C.W.arrowRight),t.add((0,s.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,s.ko)(e,"click",(e=>{e.stopPropagation(),r.revert(k.diff)}))),(0,s.$)("div",{},e)}let O;k.diff&&k.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(O=N()),o.push({afterLineNumber:k.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-A,marginDomNode:O,showInHiddenAreas:!0,suppressMouseDown:!0})}}else{if(!k.originalRange.isEmpty){m.read(e);const M=document.createElement("div");M.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const P=this._editors.original.getModel();if(k.originalRange.endLineNumberExclusive-1>P.getLineCount())return{orig:n,mod:o};const F=new we(k.originalRange.mapToLineArray((e=>P.tokenization.getLineTokens(e))),k.originalRange.mapToLineArray((e=>d[u++])),S,w),U=[];for(const V of k.diff.innerChanges||[])U.push(new I.kI(V.originalRange.delta(-(k.diff.original.startLineNumber-1)),te.Zb.className,0));const H=ye(F,R,U,M),B=document.createElement("div");if(B.className="inline-deleted-margin-view-zone",(0,b.M)(B,R.fontInfo),this._options.renderIndicators.read(e))for(let z=0;z<H.heightInLines;z++){const G=document.createElement("div");G.className=`delete-sign ${E.L.asClassName(te.dv)}`,G.setAttribute("style",`position:absolute;top:${z*g}px;width:${R.lineDecorationsWidth}px;height:${g}px;right:0;`),B.appendChild(G)}let W;y.add(new Ce((()=>(0,ee.eU)(W)),B,this._editors.modified,k.diff,this._diffEditorWidget,H.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let j=0;j<H.viewLineCounts.length;j++){const K=H.viewLineCounts[j];K>1&&n.push({afterLineNumber:k.originalRange.startLineNumber+j,domNode:v(),heightInPx:(K-1)*g,showInHiddenAreas:!0,suppressMouseDown:!0})}o.push({afterLineNumber:k.modifiedRange.startLineNumber-1,domNode:M,heightInPx:H.heightInLines*g,minWidthInPx:H.minWidthInPx,marginDomNode:B,setZoneId(e){W=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const D=document.createElement("div");D.className="gutter-delete",n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:k.modifiedHeightInPx,marginDomNode:D,showInHiddenAreas:!0,suppressMouseDown:!0})}for(const Y of _.read(e)??[]){if(!p?.lineRangeMapping.original.intersect(Y.originalRange)||!p?.lineRangeMapping.modified.intersect(Y.modifiedRange))continue;const q=Y.modifiedHeightInPx-Y.originalHeightInPx;q>0?n.push({afterLineNumber:Y.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:q,showInHiddenAreas:!0,suppressMouseDown:!0}):o.push({afterLineNumber:Y.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-q,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:n,mod:o}}));let w=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.modified.setScrollLeft(e.scrollLeft),w=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.original.setScrollLeft(e.scrollLeft),w=!1)}))),this._originalScrollTop=(0,c.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,c.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,c.fm)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);let i=0;if(t){const e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();i=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-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.get()-i,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+i,void 0,!0)})))}};function Ie(e,t,i,s,n,r){const o=new v.j3(Oe(e,s)),a=new v.j3(Oe(t,n)),c=e.getOption(67),l=t.getOption(67),h=[];let d=0,u=0;function g(e,t){for(;;){let i=o.peek(),s=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),s&&s.lineNumber>=t&&(s=void 0),!i&&!s)break;const n=i?i.lineNumber-d:Number.MAX_VALUE,r=s?s.lineNumber-u:Number.MAX_VALUE;n<r?(o.dequeue(),s={lineNumber:i.lineNumber-d+u,heightInPx:0}):n>r?(a.dequeue(),i={lineNumber:s.lineNumber-u+d,heightInPx:0}):(o.dequeue(),a.dequeue()),h.push({originalRange:w.M.ofLength(i.lineNumber,1),modifiedRange:w.M.ofLength(s.lineNumber,1),originalHeightInPx:c+i.heightInPx,modifiedHeightInPx:l+s.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,C=m.original.startLineNumber;function E(e,t,i=!1){if(e<C||t<_)return;if(f)f=!1;else if(!i&&(e===C||t===_))return;const s=new w.M(C,e),n=new w.M(_,t);if(s.isEmpty&&n.isEmpty)return;const r=o.takeWhile((t=>t.lineNumber<e))?.reduce(((e,t)=>e+t.heightInPx),0)??0,d=a.takeWhile((e=>e.lineNumber<t))?.reduce(((e,t)=>e+t.heightInPx),0)??0;h.push({originalRange:s,modifiedRange:n,originalHeightInPx:s.length*c+r,modifiedHeightInPx:n.length*l+d,diff:p.lineRangeMapping}),C=e,_=t}if(r)for(const b of m.innerChanges||[]){b.originalRange.startColumn>1&&b.modifiedRange.startColumn>1&&E(b.originalRange.startLineNumber,b.modifiedRange.startLineNumber);const S=e.getModel(),y=b.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(b.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;b.originalRange.endColumn<y&&E(b.originalRange.endLineNumber,b.modifiedRange.endLineNumber)}E(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive,!0),d=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function Oe(e,t){const i=[],s=[],n=-1!==e.getOption(147).wrappingColumn,r=e._getViewModel().coordinatesConverter,o=e.getOption(67);if(n)for(let a=1;a<=e.getModel().getLineCount();a++){const e=r.getModelLineViewLineCount(a);e>1&&s.push({lineNumber:a,heightInPx:o*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:r.convertViewPositionToModelPosition(new L.y(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,S.Am)(i,s,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}function De(e){return!!e.innerChanges&&e.innerChanges.every((e=>Me(e.modifiedRange)&&Me(e.originalRange)||e.originalRange.equalsRange(new T.Q(1,1,1,1))))}function Me(e){return e.startLineNumber===e.endLineNumber}Ne=ke([Ae(8,Te.h),Ae(9,xe.Z)],Ne);class Pe extends a.jG{static{this.movedCodeBlockPadding=4}constructor(e,t,i,s,n){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=s,this._editors=n,this._originalScrollTop=(0,c.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,c.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,c.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,c.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,c.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,c.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,c.rm)(this,((e,t)=>{this._element.replaceChildren();const i=this._diffModel.read(e),s=i?.diff.read(e)?.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const n=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!n||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const o=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const s=i(t.lineRangeMapping.original,this._editors.original),n=this._originalScrollTop.read(e),r=i(t.lineRangeMapping.modified,this._editors.modified),o=s-n,a=r-this._modifiedScrollTop.read(e),c=Math.min(s,r),l=Math.max(s,r);return{range:new R.L(c,l),from:o,to:a,fromWithoutScroll:s,toWithoutScroll:r,move:t}}));o.sort((0,v.nH)((0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.TS),(0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.U9)));const a=Fe.compute(o.map((e=>e.range))),l=n.verticalScrollbarWidth,h=10*(a.getTrackCount()-1)+20,d=l+h+(r.contentLeft-Pe.movedCodeBlockPadding);let u=0;for(const g of o){const e=l+10+10*a.getTrack(u),s=15,n=15,o=d,h=r.glyphMarginWidth+r.lineNumbersWidth,p=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-h)),m.setAttribute("y",""+(g.to-p/2)),m.setAttribute("width",`${h}`),m.setAttribute("height",`${p}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${g.from} L ${e} ${g.from} L ${e} ${g.to} L ${o-n} ${g.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,c.fm)((e=>{_.classList.toggle("currentMove",g.move===i.activeMovedText.read(e)),v.classList.toggle("currentMove",g.move===i.activeMovedText.read(e))}))),v.setAttribute("points",`${o-n},${g.to-s/2} ${o},${g.to} ${o-n},${g.to+s/2}`),f.appendChild(v),this._element.appendChild(f),u++}this.width.set(h,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,a.s)((()=>this._element.remove()))),this._register((0,c.fm)((e=>{const 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-Pe.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,c.OI)(this._state));const r=(0,c.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new S.D1((0,c.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new S.D1((0,c.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,S.Vs)(this._editors.original,r.map((e=>e.map((e=>e.original)))))),this._register((0,S.Vs)(this._editors.modified,r.map((e=>e.map((e=>e.modified)))))),this._register((0,c.yC)(((e,t)=>{const i=r.read(e);for(const s of i)t.add(new Ue(this._editors.original,s.original,s.move,"original",this._diffModel.get())),t.add(new Ue(this._editors.modified,s.modified,s.move,"modified",this._diffModel.get()))})));const o=(0,c.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),l=(0,c.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,c.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(o)&&(h="original"),e.didChange(l)&&(h="modified"),!0)},(e=>{o.read(e),l.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let s;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}s!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(s)})))}}class Fe{static compute(e){const t=[],i=[];for(const s of e){let e=t.findIndex((e=>!e.intersectsStrict(s)));if(-1===e){const i=6;t.length>=i?e=(0,n.TM)(t,(0,v.VE)((e=>e.intersectWithRangeLength(s)),v.U9)):(e=t.length,t.push(new R.h))}t[e].addRange(s),i.push(e)}return new Fe(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class Ue extends S.uN{constructor(e,t,i,n,r){const o=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,o.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=r,this._nodes=(0,s.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,s.h)("div.text-content@textContent"),(0,s.h)("div.action-bar@actionBar")]),o.root.appendChild(this._nodes.root);const a=(0,c.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let l;this._register((0,S.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),l=i.changes.length>0?"original"===this._kind?(0,O.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,O.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.E(this._nodes.actionBar,{highlightToggledItems:!0})),d=new _.rc("",l,"",!1);h.push(d,{icon:!1,label:!0});const u=new _.rc("","Compare",E.L.asClassName(C.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,c.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}class He extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return null;const s=this._diffModel.read(e).movedTextToCompare.read(e),n=this._options.renderIndicators.read(e),r=this._options.showEmptyDecorations.read(e),o=[],a=[];if(!s)for(const l of i.mappings)if(l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:n?te.Ob:te.XT}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:n?te.Kl:te.Zw}),l.lineRangeMapping.modified.isEmpty||l.lineRangeMapping.original.isEmpty)l.lineRangeMapping.original.isEmpty||o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:te.KL}),l.lineRangeMapping.modified.isEmpty||a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:te.Ou});else{const i=this._options.useTrueInlineDiffRendering.read(e)&&De(l.lineRangeMapping);for(const e of l.lineRangeMapping.innerChanges||[])if(l.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&r?te.wp:te.Zb}),l.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&r&&!i?te.GM:te.bk}),i){const 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(s)for(const l of s.changes){const e=l.original.toInclusiveRange();e&&o.push({range:e,options:n?te.Ob:te.XT});const t=l.modified.toInclusiveRange();t&&a.push({range:t,options:n?te.Kl:te.Zw});for(const i of l.innerChanges||[])o.push({range:i.originalRange,options:te.Zb}),a.push({range:i.modifiedRange,options:te.bk})}const c=this._diffModel.read(e).activeMovedText.read(e);for(const l of i.movedTexts)o.push({range:l.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(l===c?" currentMove":""),blockPadding:[Pe.movedCodeBlockPadding,0,Pe.movedCodeBlockPadding,Pe.movedCodeBlockPadding]}}),a.push({range:l.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(l===c?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:o,modifiedDecorations:a}})),this._register((0,S.pY)(this._editors.original,this._decorations.map((e=>e?.originalDecorations||[])))),this._register((0,S.pY)(this._editors.modified,this._decorations.map((e=>e?.modifiedDecorations||[]))))}}var Be=i(92403);class We{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=(0,l.dQ)(this,(e=>{const t=this._sashRatio.read(e)??this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e)}),((e,t)=>{const i=this.dimensions.width.get();this._sashRatio.set(e/i,t)})),this._sashRatio=(0,c.FY)(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),s=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),n=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):s,r=100;return i<=200?s:n<r?r:n>i-r?i-r:n}}class Ve extends a.jG{constructor(e,t,i,s,n,r){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=s,this.sashLeft=n,this._resetSash=r,this._sash=this._register(new Be.m(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((0,c.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,c.fm)((e=>{const t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}}class ze extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,c.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,c.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,c.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,c.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,c.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild((0,s.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver((()=>{(0,c.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));r.observe(this._domNode),this._register((0,a.s)((()=>r.disconnect()))),this._register((0,c.fm)((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,c.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,s.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),s=new Set(this.views.keys()),n=R.L.ofStartAndLength(0,this._domNode.clientHeight);if(!n.isEmpty)for(const r of i){const i=new w.M(r.startLineNumber,r.endLineNumber+1),o=this.itemProvider.getIntersectingGutterItems(i,e);(0,c.Rn)((e=>{for(const r of o){if(!r.range.intersect(i))continue;s.delete(r.id);let o=this.views.get(r.id);if(o)o.item.set(r,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,c.FY)("item",r),i=this.itemProvider.createView(t,e);o=new Ge(t,i,e),this.views.set(r.id,o)}const a=r.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(r.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(r.range.startLineNumber-1,!1)-t,l=(1===r.range.endLineNumberExclusive?Math.max(a,this._editor.getTopForLineNumber(r.range.startLineNumber,!1)-t):Math.max(a,this._editor.getBottomForLineNumber(r.range.endLineNumberExclusive-1,!0)-t))-a;o.domNode.style.top=`${a}px`,o.domNode.style.height=`${l}px`,o.gutterItemView.layout(R.L.ofStartAndLength(a,l),n)}}))}for(const r of s){const e=this.views.get(r);e.gutterItemView.dispose(),e.domNode.remove(),this.views.delete(r)}}}class Ge{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var je=i(25791),Ke=i(75295),Ye=i(50973);class qe extends Ke.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Ye.W(e-1,t)}}var $e=i(65644),Qe=i(27195),Xe=i(32848),Ze=i(67220),Je=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},et=function(e,t){return function(i,s){t(i,s,e)}};const tt=[];let it=class extends a.jG{constructor(e,t,i,n,r,o,a,h,d){super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=r,this._boundarySashes=o,this._instantiationService=a,this._contextKeyService=h,this._menuService=d,this._menu=this._register(this._menuService.createMenu(Qe.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,c.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,c.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,c.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,s.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,c.un)(this,(e=>{const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e)?.mappings,s=this._editors.modifiedCursor.read(e);return s?i?.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return tt;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return tt;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?tt:r})),this._register((0,S.$y)(e,this.elements.root)),this._register((0,s.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,S.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),(0,l.a0)(this,(t=>this._showSash.read(t)?new Ve(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,l.dQ)(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),this._register(new ze(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const s=i.diff.read(t);if(!s)return[];const n=this._selectedDiffs.read(t);if(n.length>0){const e=x.wm.fromRangeMappings(n.flatMap((e=>e.rangeMappings)));return[new st(e,!0,Qe.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const r=this._currentDiff.read(t);return s.mappings.map((e=>new st(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===r?.lineRangeMapping,Qe.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(nt,e,t,this)})),this._register((0,s.ko)(this.elements.gutter,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){const t=e.innerChanges??[],i=new qe(this._editors.modifiedModel.get()),s=new qe(this._editors.original.getModel()),n=new Ke.mF(t.map((e=>e.toTextEdit(i))));return n.apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};it=Je([et(6,M._Y),et(7,Xe.fN),et(8,Qe.ez)],it);class st{constructor(e,t,i,s,n,r){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=s,this.originalUri=n,this.modifiedUri=r}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let nt=class extends a.jG{constructor(e,t,i,n){super(),this._item=e,this._elements=(0,s.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,s.h)("div.background@background",{},[]),(0,s.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,c.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const r=this._register(n.createInstance(Ze.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,S.rX)(t,this._elements.root)),this._register((0,c.fm)((e=>{const 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((0,c.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const s=t.add(n.createInstance($e.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:r,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new je.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(s.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;const s=e.length/2-i/2,n=i;let r=e.start+s;const o=R.L.tryCreate(n,t.endExclusive-n-i),a=R.L.tryCreate(e.start+n,e.endExclusive-i-n);a&&o&&a.start<a.endExclusive&&(r=o.clip(r),r=a.clip(r)),this._elements.buttons.style.top=r-e.start+"px"}};nt=Je([et(3,M._Y)],nt);var rt,ot=i(34309),at=i(55275),ct=i(74850),lt=i(19531),ht=i(66261),dt=i(47612),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};let pt=class extends a.jG{static{rt=this}static{this.ONE_OVERVIEW_WIDTH=15}static{this.ENTIRE_DIFF_OVERVIEW_WIDTH=2*this.ONE_OVERVIEW_WIDTH}constructor(e,t,i,n,r,o,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=r,this._modifiedEditorLayoutInfo=o,this._themeService=a,this.width=rt.ENTIRE_DIFF_OVERVIEW_WIDTH;const l=(0,c.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,c.un)((e=>{const t=l.read(e);return{insertColor:t.getColor(ht.ld8)||(t.getColor(ht.Gj6)||ht.EY1).transparent(2),removeColor:t.getColor(ht.$BZ)||(t.getColor(ht.GNm)||ht.ZEf).transparent(2)}})),d=(0,at.Z)(document.createElement("div"));d.setClassName("diffViewport"),d.setPosition("absolute");const u=(0,s.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,S.rX)(u,d.domNode)),this._register((0,s.b2)(u,s.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,s.ko)(u,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,S.rX)(this._rootElement,u)),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e),s=this._editors.original.createOverviewRuler("original diffOverviewRuler");s&&(t.add(s),t.add((0,S.rX)(u,s.getDomNode())));const n=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(n&&(t.add(n),t.add((0,S.rX)(u,n.getDomNode()))),!s||!n)return;const r=(0,c.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),o=(0,c.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,c.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),l=(0,c.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,c.fm)((e=>{r.read(e),o.read(e),a.read(e),l.read(e);const t=h.read(e),c=i?.diff.read(e)?.mappings;function d(e,t,i){const s=i._getViewModel();return s?e.filter((e=>e.length>0)).map((e=>{const i=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.startLineNumber,1)),n=s.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.endLineNumberExclusive,1)),r=n.lineNumber-i.lineNumber;return new lt.iE(i.lineNumber,n.lineNumber,r,t.toString())})):[]}const u=d((c||[]).map((e=>e.lineRangeMapping.original)),t.removeColor,this._editors.original),g=d((c||[]).map((e=>e.lineRangeMapping.modified)),t.insertColor,this._editors.modified);s?.setZones(u),n?.setZones(g)}))),t.add((0,c.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(r){const i=rt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*rt.ONE_OVERVIEW_WIDTH;s.setLayout({top:0,height:t,right:i+rt.ONE_OVERVIEW_WIDTH,width:rt.ONE_OVERVIEW_WIDTH}),n.setLayout({top:0,height:t,right:0,width:rt.ONE_OVERVIEW_WIDTH});const o=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),c=this._editors.modified.getOption(104),l=new ct.m(c.verticalHasArrows?c.arrowSize:0,c.verticalScrollbarSize,0,r.height,a,o);d.setTop(l.getSliderPosition()),d.setHeight(l.getSliderSize())}else d.setTop(0),d.setHeight(0);u.style.height=t+"px",u.style.left=i-rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",d.setWidth(rt.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};pt=rt=ut([gt(6,dt.Gy)],pt);var mt=i(20370),ft=i(16223);const _t=[];class vt extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=s,this._selectedDiffs=(0,c.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return _t;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return _t;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?_t:r})),this._register((0,c.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),s=i?.diff.read(e);if(!i||!s)return;if(i.movedTextToCompare.read(e))return;const n=[],r=this._selectedDiffs.read(e),o=new Set(r.map((e=>e.mapping)));if(r.length>0){const i=this._editors.modifiedSelections.read(e),s=t.add(new Ct(i[i.length-1].positionLineNumber,this._widget,r.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(s),n.push(s)}for(const a of s.mappings)if(!o.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new Ct(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),n.push(e)}t.add((0,a.s)((()=>{for(const e of n)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Ct extends a.jG{static{this.counter=0}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"+Ct.counter++,this._domNode=(0,s.h)("div.revertButton",{title:this._revertSelection?(0,O.kg)("revertSelectedChanges","Revert Selected Changes"):(0,O.kg)("revertChange","Revert Change")},[(0,mt.s)(C.W.arrowRight)]).root,this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,s.ko)(this._domNode,s.Bx.CLICK,(e=>{this._diffs instanceof x.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ft.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}var Et=i(71319),bt=i(23452),St=i(60002),yt=i(58345),wt=i(73823),Rt=i(38844),Lt=i(98031),Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,s,n,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=s,this._createInnerEditor=n,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 o.vl),this.modifiedScrollTop=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,c.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedObs=(0,Rt.Ud)(this.modified),this.originalObs=(0,Rt.Ud)(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=(0,c.y0)(this,this.modified.onDidChangeCursorSelection,(()=>this.modified.getSelections()??[])),this.modifiedCursor=(0,c.C)({owner:this,equalsFn:L.y.equals},(e=>this.modifiedSelections.read(e)[0]?.getPosition()??new L.y(1,1))),this.originalCursor=(0,c.y0)(this,this.original.onDidChangeCursorPosition,(()=>this.original.getPosition()??new L.y(1,1))),this._argCodeEditorWidgetOptions=null,this._register((0,c.Y)({createEmptyChangeSummary:()=>({}),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){const i=this._adjustOptionsForLeftHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return s.setContextValue("isInDiffLeftEditor",!0),s}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return s.setContextValue("isInDiffRightEditor",!0),s}_constructInnerEditor(e,t,i,s){const n=this._createInnerEditor(e,t,i,s);return this._register(n.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),n}_adjustOptionsForLeftHandSide(e,t){const 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){const 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=y.qB.revealHorizontalRightPadding.defaultValue+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!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){e||(e="");const t=(0,O.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):""}};kt=Tt([xt(5,M._Y),xt(6,Lt.b)],kt);class At extends a.jG{constructor(){super(...arguments),this._id=++At.idCounter,this._onDidDispose=this._register(new o.vl),this.onDidDispose=this._onDidDispose.event}static{this.idCounter=0}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,s=!0){this._targetEditor.revealRange(e,t,i,s)}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)}}var Nt=i(13850),It=i(61059),Ot=i(253),Dt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mt=function(e,t){return function(i,s){t(i,s,e)}};let Pt=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,c.FY)(this,0),this._screenReaderMode=(0,c.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,c.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,c.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,c.un)(this,(e=>(!this.compactMode.read(e)||!this.shouldRenderInlineViewInSmartMode.read(e))&&(this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))))),this.readOnly=(0,c.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,c.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,c.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,c.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,c.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,c.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,c.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,c.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,c.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,c.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,c.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,c.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,c.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,c.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,c.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,c.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,c.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.compactMode=(0,c.un)(this,(e=>this._options.read(e).compactMode)),this.trueInlineDiffRenderingEnabled=(0,c.un)(this,(e=>this._options.read(e).experimental.useTrueInlineView)),this.useTrueInlineDiffRendering=(0,c.un)(this,(e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e))),this.hideUnchangedRegions=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,c.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount)),this._model=(0,c.FY)(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,(e=>(0,Nt.t)(this,(t=>{const i=e?.diff.read(t);return i?(s=i,n=this.trueInlineDiffRenderingEnabled.read(t),s.mappings.every((e=>0===e.lineRangeMapping.original.length||function(e){return 0===e.modified.length}(e.lineRangeMapping)||n&&De(e.lineRangeMapping)))):void 0;var s,n})))).flatten().map(this,(e=>!!e)),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...e,...Ft(e,It.q)};this._options=(0,c.FY)(this,i)}updateOptions(e){const t=Ft(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};function Ft(e,t){return{enableSplitViewResizing:(0,y.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,y.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,y.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,y.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,y.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,y.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,y.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,y.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,y.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,y.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,y.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,y.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,y.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,y.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,y.zM)(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,y.zM)(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:(0,y.zM)(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:(0,y.zM)(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,y.wA)(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,y.wA)(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,y.wA)(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,y.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,y.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,y.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,y.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,y.zM)(e.renderGutterMenu,t.renderGutterMenu),compactMode:(0,y.zM)(e.compactMode,t.compactMode)}}Pt=Dt([Mt(1,Ot.j)],Pt);var Ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ht=function(e,t){return function(i,s){t(i,s,e)}};let Bt=class extends At{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,h,d,g,p){super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=h,this._accessibilitySignalService=g,this._editorProgressService=p,this.elements=(0,s.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,s.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register((0,c.X2)(this,void 0)),this._diffModel=(0,c.un)(this,(e=>this._diffModelSrc.read(e)?.object)),this.onDidChangeModel=o.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new yt.a([Xe.fN,this._contextKeyService]))),this._boundarySashes=(0,c.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,c.FY)(this,!1),this._accessibleDiffViewerVisible=(0,c.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,c.FY)(this,void 0),this._layoutInfo=(0,c.un)(this,(e=>{const t=this._rootSizeObserver.width.read(e),i=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=i+"px";const s=this._sash.read(e),n=this._gutter.read(e),r=n?.width.read(e)??0,o=this._overviewRulerPart.read(e)?.width??0;let a,c,l,h,d;if(!!s){const i=s.sashLeft.read(e);a=0,c=i-r-(this._movedBlocksLinesPart.read(e)?.width.read(e)??0),d=i-r,l=i,h=t-l-o}else{d=0;a=r,c=this._options.inlineViewHideOriginalLineNumbers.read(e)?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),l=r+c,h=t-l-o}return this.elements.original.style.left=a+"px",this.elements.original.style.width=c+"px",this._editors.original.layout({width:c,height:i},!0),n?.layout(d),this.elements.modified.style.left=l+"px",this.elements.modified.style.width=h+"px",this._editors.modified.layout({width:h,height:i},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>e?.diff.read(t))),this.onDidUpdateDiff=o.Jh.fromObservableLight(this._diffValue),d.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this.elements.root.remove()))),this._rootSizeObserver=this._register(new S.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(Pt,t),this._register((0,c.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(St.R.isEmbeddedDiffEditor.key,!1),this._register((0,Et.w)(St.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,Et.w)(St.R.comparingMovedCode,this._contextKeyService,(e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e)))),this._register((0,Et.w)(St.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,Et.w)(St.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,Et.w)(St.R.hasChanges,this._contextKeyService,(e=>(this._diffModel.read(e)?.diff.read(e)?.mappings.length??0)>0))),this._editors=this._register(this._instantiationService.createInstance(kt,this.elements.original,this.elements.modified,this._options,i,((e,t,i,s)=>this._createInnerEditor(e,t,i,s)))),this._register((0,Et.w)(St.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,Et.w)(St.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,Et.w)(St.R.diffEditorOriginalUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.original.uri.toString()??""))),this._register((0,Et.w)(St.R.diffEditorModifiedUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.modified.uri.toString()??""))),this._overviewRulerPart=(0,l.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,ne.b)(pt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store);const m={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>e-(this._overviewRulerPart.read(t)?.width??0)))};this._sashLayout=new We(this._options,m),this._sash=(0,l.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ve(this.elements.root,m,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,(()=>this._sashLayout.resetSash())):void 0})).recomputeInitiallyAndOnChange(this._store);const f=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(ot.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(He,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const _=new Set,v=new Set;let C=!1;const E=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(Ne,e),(0,s.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>C||f.get().isUpdatingHiddenAreas),_,v))).recomputeInitiallyAndOnChange(this._store),b=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,c.un)(this,(e=>{const t=E.read(e).viewZones.read(e).mod,i=f.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let w;this._register((0,S.Vs)(this._editors.original,b,(e=>{C=e}),_)),this._register((0,S.Vs)(this._editors.modified,y,(e=>{C=e,C?w=u.D.capture(this._editors.modified):(w?.restore(this._editors.modified),w=void 0)}),v)),this._accessibleDiffViewer=(0,l.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(V,e),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)=>e?.diff.read(t)?.mappings.map((e=>e.lineRangeMapping)))),new Z(this._editors)))).recomputeInitiallyAndOnChange(this._store);const R=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,S.AV)(this.elements.modified,{visibility:R})),this._register((0,S.AV)(this.elements.original,{visibility:R})),this._createDiffEditorContributions(),d.addDiffEditor(this),this._gutter=(0,l.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,ne.b)(it,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0)),this._register((0,c.OI)(this._layoutInfo)),(0,l.a0)(this,(e=>new((0,ne.b)(Pe,e))(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(o.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(o.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const L=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,c.yC)(((e,t)=>{if(!0===L.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,c.yC)(((e,t)=>{t.add(new((0,ne.b)(vt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,c.yC)(((e,t)=>{const i=this._diffModel.read(e);if(i)for(const s of[i.model.original,i.model.modified])t.add(s.onWillDispose((e=>{(0,r.dz)(new r.D7("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)})))}))),this._register((0,c.fm)((e=>{this._options.setModel(this._diffModel.read(e))})))}_createInnerEditor(e,t,i,s){return e.createInstance(g.x,t,i,s)}_createDiffEditorContributions(){const e=h.dS.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,r.dz)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return bt._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ue,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const t=e?"model"in e?S.O8.create(e).createNewRef(this):S.O8.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){const i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&(0,c.PO)(t,(t=>{const i=e?.object;c.y0.batchEventsGlobally(t,(()=>{this._editors.original.setModel(i?i.model.original:null),this._editors.modified.setModel(i?i.model.modified:null)}));const s=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),t),setTimeout((()=>{s?.dispose()}),0)}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?e.mappings.map((e=>{const t=e.lineRangeMapping;let i,s,n,r,o=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,s=0,o=void 0):(i=t.original.startLineNumber,s=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(n=t.modified.startLineNumber-1,r=0,o=void 0):(n=t.modified.startLineNumber,r=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:s,modifiedStartLineNumber:n,modifiedEndLineNumber:r,charChanges:o?.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}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new L.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const t=this._diffModel.get()?.diff.get()?.mappings;if(!t||0===t.length)return;const i=this._editors.modified.getPosition().lineNumber;let s;s="next"===e?t.find((e=>e.lineRangeMapping.modified.startLineNumber>i))??t[0]:(0,n.Uk)(t,(e=>e.lineRangeMapping.modified.startLineNumber<i))??t[t.length-1],this._goTo(s),s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):s&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{const t=e.diff.get()?.mappings;t&&0!==t.length&&this._goTo(t[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,i=e?this._editors.original:this._editors.modified;let s;const n=t.getSelection();if(n){const t=this._diffModel.get()?.diff.get()?.mappings.map((t=>e?t.lineRangeMapping.flip():t.lineRangeMapping));if(t){const e=(0,S.Mu)(n.getStartPosition(),t),i=(0,S.Mu)(n.getEndPosition(),t);s=T.Q.plusRange(e,i)}}return{destination:i,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.collapseAll(t)}))}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,c.Rn)((t=>{for(const i of e)i.showAll(t)}))}_handleCursorPositionChange(e,t){if(3===e?.reason){const i=this._diffModel.get()?.diff.get()?.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Bt=Ut([Ht(3,Xe.fN),Ht(4,M._Y),Ht(5,d.T),Ht(6,D.Nt),Ht(7,wt.N8)],Bt)},4519:(e,t,i)=>{"use strict";var s=i(91090),n=i(5662),r=i(31450),o=i(60002),a=i(62083),c=i(56942),l=i(90766),h=i(64383),d=i(41234),u=i(60534),g=i(18447),p=i(631),m=i(79400),f=i(83069),_=i(18938),v=i(50091),C=i(32848);const E={Visible:new C.N1("parameterHintsVisible",!1),MultipleSignatures:new C.N1("parameterHintsMultipleSignatures",!1)};async function b(e,t,i,s,n){const r=e.ordered(t);for(const a of r)try{const e=await a.provideSignatureHelp(t,i,n,s);if(e)return e}catch(o){(0,h.M_)(o)}}var S;v.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,s,n]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(s)),(0,p.j)("string"===typeof n||!n);const r=e.get(c.ILanguageFeaturesService),o=await e.get(_.ITextModelService).createModelReference(i);try{const e=await b(r.signatureHelpProvider,o.object.textEditorModel,f.y.lift(s),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:n},g.XO.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{o.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class y extends n.jG{static{this.DEFAULT_DELAY=120}constructor(e,t,i=y.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new n.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new l.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const s=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(s)),t).catch(h.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const s=this._pendingTriggers.reduce(w);this._pendingTriggers=[];const n={triggerKind:s.triggerKind,triggerCharacter:s.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),o=this.editor.getPosition();this.state=new S.Pending((0,l.SS)((e=>b(this.providers,r,o,n,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(t?.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=S.Default),(0,h.dz)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function w(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}var R,L=i(78209),T=i(63591),x=i(8597),k=i(11007),A=i(31295),N=i(10350),I=i(91508),O=i(87908),D=i(10154),M=i(20492),P=i(49099),F=i(66261),U=i(61394),H=i(25689),B=i(78381),W=i(90651),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};const G=x.$,j=(0,U.pU)("parameter-hints-next",N.W.chevronDown,L.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),K=(0,U.pU)("parameter-hints-previous",N.W.chevronUp,L.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Y=class extends n.jG{static{R=this}static{this.ID="editor.widget.parameterHintsWidget"}constructor(e,t,i,s,r,o){super(),this.editor=e,this.model=t,this.telemetryService=o,this.renderDisposeables=this._register(new n.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new M.T({editor:e},r,s)),this.keyVisible=E.Visible.bindTo(i),this.keyMultipleSignatures=E.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=G(".editor-widget.parameter-hints-widget"),t=x.BC(e,G(".phwrapper"));t.tabIndex=-1;const i=x.BC(t,G(".controls")),s=x.BC(i,G(".button"+H.L.asCSSSelector(K))),n=x.BC(i,G(".overloads")),r=x.BC(i,G(".button"+H.L.asCSSSelector(j)));this._register(x.ko(s,"click",(e=>{x.fs.stop(e),this.previous()}))),this._register(x.ko(r,"click",(e=>{x.fs.stop(e),this.next()})));const o=G(".body"),a=new A.MU(o,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const c=x.BC(o,G(".signature")),l=x.BC(o,G(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:n,docs:l,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=""+e.lineHeight/e.fontSize,t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",e.fontFamily),t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",O.jU.fontFamily)};h(),this._register(d.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{this.domNodes?.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;const t=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const i=e.signatures[e.activeSignature];if(!i)return;const s=x.BC(this.domNodes.signature,G(".code")),n=i.parameters.length>0,r=i.activeParameter??e.activeParameter;if(n)this.renderParameters(s,i,r);else{x.BC(s,G("span")).textContent=i.label}const o=i.parameters[r];if(o?.documentation){const e=G("span.documentation");if("string"===typeof o.documentation)e.textContent=o.documentation;else{const t=this.renderMarkdownDocs(o.documentation);e.appendChild(t.element)}x.BC(this.domNodes.docs,G("p",{},e))}if(void 0===i.documentation);else if("string"===typeof i.documentation)x.BC(this.domNodes.docs,G("p",{},i.documentation));else{const e=this.renderMarkdownDocs(i.documentation);x.BC(this.domNodes.docs,e.element)}const a=this.hasDocs(i,o);if(this.domNodes.signature.classList.toggle("has-docs",a),this.domNodes.docs.classList.toggle("empty",!a),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,o){let e="";const t=i.parameters[r];e=Array.isArray(t.label)?i.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),i.documentation&&(e+="string"===typeof i.documentation?`, ${i.documentation}`:`, ${i.documentation.value}`),this.announcedLabel!==e&&(k.xE(L.kg("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new B.W,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const s=t.elapsed();return s>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:s}),i}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.eU)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.eU)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[s,n]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,s);const o=document.createElement("span");o.textContent=t.label.substring(s,n),o.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(n),x.BC(e,r,o,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,I.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const s=t.lastIndex-i.label.length;return s>=0?[s,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return R.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};Y=R=V([z(2,C.fN),z(3,P.C),z(4,D.L),z(5,W.k)],Y),(0,F.x1A)("editorHoverWidget.highlightForeground",F.QI5,L.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var q,$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class extends n.jG{static{q=this}static{this.ID="editor.controller.parameterHints"}static get(e){return e.getContribution(q.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new y(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()}))),this.widget=new s.d((()=>this._register(t.createInstance(Y,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};X=q=$([Q(1,T._Y),Q(2,c.ILanguageFeaturesService)],X);class Z extends r.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:L.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:o.R.hasSignatureHelpProvider,kbOpts:{kbExpr:o.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=X.get(t);i?.trigger({triggerKind:a.WA.Invoke})}}(0,r.HW)(X.ID,X,2),(0,r.Fl)(Z);const J=r.DX.bindToContribution(X.get);(0,r.E_)(new J({id:"closeParameterHints",precondition:E.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:9,secondary:[1033]}})),(0,r.E_)(new J({id:"showPrevParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,r.E_)(new J({id:"showNextParameterHint",precondition:C.M$.and(E.Visible,E.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},4836:(e,t,i)=>{"use strict";var s=i(31450),n=i(94371),r=i(8995),o=i(91508),a=i(60002),c=i(55130),l=i(78209),h=i(32848),d=i(61407),u=i(71933),g=i(59473);function p(e){return h.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,o.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:l.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:l.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[l.kg("args.schema.apply.first","Always apply the first returned code action."),l.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),l.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:l.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,s,n=d.fo.Default){if(e.hasModel()){const r=u.C.get(e);r?.manualTriggerAtCurrentPosition(t,n,i,s)}}class _ extends s.ks{constructor(){super({id:c.pQ,label:l.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,l.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.fo.QuickFix)}}class v extends s.DX{constructor(){super({id:c.k_,precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const s=d.QA.fromUser(i,{kind:r.k.Empty,apply:"ifSingle"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):l.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):l.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:s.kind,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class C extends s.ks{constructor(){super({id:c.Xj,label:l.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.M$.and(a.R.writable,p(d.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Refactor,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):l.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?l.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):l.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:d.gB.Refactor.contains(s.kind)?s.kind:r.k.None,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.Refactor)}}class E extends s.ks{constructor(){super({id:c.C9,label:l.kg("source.label","Source Action..."),alias:"Source Action...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.M$.and(a.R.writable,p(d.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Source,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?l.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):l.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?l.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):l.kg("editor.action.source.noneMessage","No source actions available"),{include:d.gB.Source.contains(s.kind)?s.kind:r.k.None,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.SourceAction)}}class b extends s.ks{constructor(){super({id:c.Uy,label:l.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.M$.and(a.R.writable,p(d.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,l.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:d.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",d.fo.OrganizeImports)}}class S extends s.ks{constructor(){super({id:c.Rw,label:l.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:h.M$.and(a.R.writable,p(d.gB.SourceFixAll))})}run(e,t){return f(t,l.kg("fixAll.noneMessage","No fix all action available"),{include:d.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",d.fo.FixAll)}}class y extends s.ks{constructor(){super({id:c.pR,label:l.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.M$.and(a.R.writable,p(d.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,l.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.fo.AutoFix)}}var w=i(96758),R=i(1646),L=i(46359);(0,s.HW)(u.C.ID,u.C,3),(0,s.HW)(w.E.ID,w.E,4),(0,s.Fl)(_),(0,s.Fl)(C),(0,s.Fl)(E),(0,s.Fl)(b),(0,s.Fl)(y),(0,s.Fl)(S),(0,s.E_)(new v),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:l.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:l.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),L.O.as(R.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:l.kg("triggerOnFocusChange","Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}})},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>l});var s=i(91508);class n{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class r{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class o{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new o(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.W1)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.W1)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.UD)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.UD)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class c{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}class l{static forUris(e=()=>!1,t=()=>!1){return new l(new a(e,t))}static forStrings(){return new l(new n)}static forConfigKeys(){return new l(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let s;this._root||(this._root=new c,this._root.segment=i.value());const n=[];for(s=this._root;;){const e=i.cmp(s.segment);if(e>0)s.left||(s.left=new c,s.left.segment=i.value()),n.push([-1,s]),s=s.left;else if(e<0)s.right||(s.right=new c,s.right.segment=i.value()),n.push([1,s]),s=s.right;else{if(!i.hasNext())break;i.next(),s.mid||(s.mid=new c,s.mid.segment=i.value()),n.push([0,s]),s=s.mid}}const r=s.value;s.value=t,s.key=e;for(let o=n.length-1;o>=0;o--){const e=n[o][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=n[o][0],i=n[o+1][0];if(1===t&&1===i)n[o][1]=e.rotateLeft();else if(-1===t&&-1===i)n[o][1]=e.rotateRight();else if(1===t&&-1===i)e.right=n[o+1][1]=n[o+1][1].rotateRight(),n[o][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=n[o+1][1]=n[o+1][1].rotateLeft(),n[o][1]=e.rotateRight()}if(o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1]}else this._root=n[0][1]}}return r}get(e){return this._getNode(e)?.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===t?.value&&void 0===t?.mid)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const i=this._iter.reset(e),s=[];let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)s.push([-1,n]),n=n.left;else if(e<0)s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),s.push([0,n]),n=n.mid}}if(n){if(t?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const e=this._min(n.right);if(e.key){const{key:t,value:i,segment:s}=e;this._delete(e.key,!1),n.key=t,n.value=i,n.segment=s}}else{const e=n.left??n.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),i=s.value||i,s=s.mid}}return s&&s.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let s=this._root;for(;s;){const e=i.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!i.hasNext())return s.mid?this._entries(s.mid):t?s.value:void 0;i.next(),s=s.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},4983:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var s=i(5662),n=i(41234),r=i(8597);class o extends s.jG{constructor(e,t){super(),this._onDidChange=this._register(new n.vl),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;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,s=!1;const n=()=>{if(i&&!s)try{i=!1,s=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),(()=>{s=!1,n()}))}};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,n()})),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,s=0;t?(i=t.width,s=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,s=this._referenceDomElement.clientHeight),i=Math.max(5,i),s=Math.max(5,s),this._width===i&&this._height===s||(this._width=i,this._height=s,e&&this._onDidChange.fire())}}},5239:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},s={...t},n={...t};let r=0;const o={keydown:0,input:0,render:0};function a(){1===o.keydown&&(performance.mark("keydown/end"),o.keydown=2)}function c(){performance.mark("input/start"),o.input=1,d()}function l(){1===o.input&&(performance.mark("input/end"),o.input=2)}function h(){1===o.render&&(performance.mark("render/end"),o.render=2)}function d(){setTimeout(u)}function u(){2===o.keydown&&2===o.input&&2===o.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",s),g("inputlatency",n),r++,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"),o.keydown=0,o.input=0,o.render=0)}function g(e,t){const 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/r,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),o.keydown=1,queueMicrotask(a)},e.onBeforeInput=c,e.onInput=function(){0===o.input&&c(),queueMicrotask(l)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===o.keydown&&2===o.input&&0===o.render&&(performance.mark("render/start"),o.render=1,queueMicrotask(h),d())},e.getAndClearMeasurements=function(){if(0===r)return;const e={keydown:p(t),input:p(i),render:p(s),total:p(n),sampleCount:r};return m(t),m(i),m(s),m(n),r=0,e}}(s||(s={}))},5646:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>k,EH:()=>x,XF:()=>A});var s=i(60413),n=i(42731),r=i(8597),o=i(25154),a=i(42904),c=i(56245),l=i(72962),h=i(68214),d=i(48196),u=i(93090),g=i(25890),p=i(41234),m=i(24939),f=i(5662),_=i(98067),v=i(78209);const C=r.$,E="selectOption.entry.template";class b{get templateId(){return E}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=r.BC(e,C(".option-text")),t.detail=r.BC(e,C(".option-detail")),t.decoratorRight=r.BC(e,C(".option-decorator-right")),t}renderElement(e,t,i){const s=i,n=e.text,r=e.detail,o=e.decoratorRight,a=e.isDisabled;s.text.textContent=n,s.detail.textContent=r||"",s.decoratorRight.innerText=o||"",a?s.root.classList.add("option-disabled"):s.root.classList.remove("option-disabled")}disposeTemplate(e){}}class S extends f.jG{static{this.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32}static{this.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2}static{this.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3}constructor(e,t,i,s,n){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=s,this.selectBoxOptions=n||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=S.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,d.i)().setupManagedHover((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return E}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.BC(this.selectDropDownContainer,C(".select-box-details-pane"));const t=r.BC(this.selectDropDownContainer,C(".select-box-dropdown-container-width-control")),i=r.BC(t,C(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(r.ko(this.selectDropDownContainer,r.Bx.DRAG_START,(e=>{r.fs.stop(e,!0)})))}registerListeners(){let e;this._register(r.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(r.ko(this.selectElement,r.Bx.CLICK,(e=>{r.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.MOUSE_DOWN,(e=>{r.fs.stop(e)}))),this._register(r.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(r.ko(this.selectElement,"touchend",(t=>{r.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.KEY_DOWN,(e=>{const t=new l.Z(e);let i=!1;_.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){this.selectList?.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){const e=this.styles.selectBackground??"",t=this.styles.selectForeground??"",i=this.styles.selectBorder??"";this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}styleList(){const e=this.styles.selectBackground??"",t=r.gI(this.styles.selectListBackground,e);this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;const i=this.styles.focusBorder??"";this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.zk(this.selectElement),i=r.BK(this.selectElement),s=r.zk(this.selectElement).getComputedStyle(this.selectElement),n=parseFloat(s.getPropertyValue("--dropdown-padding-top"))+parseFloat(s.getPropertyValue("--dropdown-padding-bottom")),o=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),h=Math.max(l,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=d+n+u,p=Math.floor((o-n-u)/this.getHeight()),m=Math.floor((a-n-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<S.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>o&&(d=p*this.getHeight())}else g>a&&(d=m*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,s=0;this.options.forEach(((e,t)=>{const n=e.detail?e.detail.length:0,r=e.decoratorRight?e.decoratorRight.length:0,o=e.text.length+n+r;o>s&&(i=t,s=o)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.BC(e,C(".select-box-dropdown-list-container")),this.listRenderer=new b,this.selectList=this._register(new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.zx?"":"option",getWidgetRole:()=>"listbox"}})),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new c.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new l.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(r.ko(this.selectList.getHTMLElement(),r.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(r.ko(this.selectDropDownContainer,r.Bx.FOCUS_OUT,(e=>{this._isVisible&&!r.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;r.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const s=Number(i.getAttribute("data-index")),n=i.classList.contains("option-disabled");s>=0&&s<this.options.length&&!n&&(this.selected=s,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const s=e.childNodes.item(t);"img"===(s.tagName&&s.tagName.toLowerCase())?s.remove():i(s)}},s=(0,h.Gc)({value:e,supportThemeIcons:!0},{actionHandler:t});return s.element.classList.add("select-box-description-markdown"),i(s.element),s.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){this.selectionDetailsPane.innerText="";const t=this.options[e],i=t?.description??"";if(i){if(t?.descriptionIsMarkdown??!1){const e=t.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i,e))}else this.selectionDetailsPane.innerText=i;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){r.fs.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){r.fs.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){r.fs.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){r.fs.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){r.fs.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){r.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let s=0;s<this.options.length-1;s++)if(i=(s+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),r.fs.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}class y extends f.jG{constructor(e,t,i,s){super(),this.selected=0,this.selectBoxOptions=s||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(o.q.addTarget(this.selectElement)),[o.B.Tap].forEach((e=>{this._register(r.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(r.b2(this.selectElement,"click",(e=>{r.fs.stop(e,!0)}))),this._register(r.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(r.b2(this.selectElement,"keydown",(e=>{let t=!1;_.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}}var w=i(17390);class R extends w.x{constructor(e,t,i,s,n){super(),_.zx&&!n?.useCustomDrawn?this.selectBoxDelegate=new y(e,t,s,n):this.selectBoxDelegate=new S(e,t,i,s,n),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var L=i(36921),T=i(631);i(62469);class x extends f.jG{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof L.rc&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(o.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,s.gm&&this._register((0,r.ko)(e,r.Bx.DRAG_START,(e=>e.dataTransfer?.setData(n.t.TEXT,this._action.label))))),this._register((0,r.ko)(t,o.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,r.ko)(t,r.Bx.MOUSE_DOWN,(e=>{i||r.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.zx&&this._register((0,r.ko)(t,r.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.CLICK,(e=>{r.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.DBLCLICK,(e=>{r.fs.stop(e,!0)}))),[r.Bx.MOUSE_UP,r.Bx.MOUSE_OUT].forEach((e=>{this._register((0,r.ko)(t,e,(e=>{r.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){r.fs.stop(e,!0);const i=T.z(this._context)?this.options?.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){if(!this.element)return;const e=this.getTooltip()??"";if(this.updateAriaLabel(),this.options.hoverDelegate?.showNativeHover)this.element.title=e;else if(this.customHover||""===e)this.customHover&&this.customHover.update(e);else{const t=this.options.hoverDelegate??(0,a.nZ)("element");this.customHover=this._store.add((0,d.i)().setupManagedHover(t,this.element,e))}}updateAriaLabel(){if(this.element){const e=this.getTooltip()??"";this.element.setAttribute("aria-label",e)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class k extends x{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),T.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.wv.ID?"presentation":this.options.isMenu?"menuitem":this.options.isTabList?"tab":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label?.classList.remove("codicon")}updateEnabled(){this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element?.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element?.classList.add("disabled"))}updateAriaLabel(){if(this.label){const e=this.getTooltip()??"";this.label.setAttribute("aria-label",e)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.options.isTabList?this.label.setAttribute("aria-selected",this.action.checked?"true":"false"):(this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox"))):(this.label.classList.remove("checked"),this.label.removeAttribute(this.options.isTabList?"aria-selected":"aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class A extends x{constructor(e,t,i,s,n,r,o){super(e,t),this.selectBox=new R(i,s,n,r,o),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){this.selectBox?.focus()}blur(){this.selectBox?.blur()}render(e){this.selectBox.render(e)}}},5662:(e,t,i)=>{"use strict";i.d(t,{$w:()=>C,AS:()=>d,Ay:()=>o,BO:()=>v,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>h,jG:()=>m,lC:()=>l,mp:()=>_,qE:()=>u,s:()=>g});var s=i(6921),n=i(42522);let r=null;function o(e){return r?.trackDisposable(e),e}function a(e){r?.markAsDisposed(e)}function c(e,t){r?.setParent(e,t)}function l(e){return r?.markAsSingleton(e),e}function h(e){return"object"===typeof e&&null!==e&&"function"===typeof e.dispose&&0===e.dispose.length}function d(e){if(n.f.is(e)){const i=[];for(const s of e)if(s)try{s.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>d(e)));return function(e,t){if(r)for(const i of e)r.setParent(i,t)}(e,t),t}function g(e){const t=o({dispose:(0,s.P)((()=>{a(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),c(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,o(this),c(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},5744:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},6156:(e,t,i)=>{"use strict";i.d(t,{F:()=>O});var s=i(59284),n=i(81240),r=i(84476),o=i(80604),a=i(99991),c=i(63365),l=i(46423),h=i(87184);const d=s.createContext(null),u=()=>{const e=s.useContext(d);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return s.createElement(r.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(69220);const m=(0,p.om)("alert"),f=({layout:e,view:t,children:i})=>s.createElement(d.Provider,{value:{layout:e,view:t}},i);var _=i(18677),v=i(10800),C=i(45720),E=i(43937),b=i(5744),S=i(70825),y=i(71153),w=i(94420);const R=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var L=i(27612);const T={danger:{filled:_.A,outlined:v.A},info:{filled:C.A,outlined:E.A},success:{filled:b.A,outlined:S.A},warning:{filled:y.A,outlined:w.A},utility:{filled:R,outlined:L.A},normal:null};var x=i(98089);var k=i(72837);const A=JSON.parse('{"label_close":"Close"}'),N=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),I=(0,k.N)({en:A,ru:N},"Alert"),O=e=>{const{theme:t="normal",view:i="filled",layout:d="vertical",message:u,className:g,corners:p,style:_,onClose:v,align:C,qa:E}=e;return s.createElement(f,{layout:d,view:i},s.createElement(o.Z,{style:_,className:m({corners:p},(0,l.Y)({py:4,px:5},g)),theme:t,view:i,qa:E},s.createElement(h.s,{gap:"3",alignItems:C},"undefined"===typeof e.icon?s.createElement(O.Icon,{theme:t,view:i}):e.icon,s.createElement(h.s,{direction:"vertical"===d?"column":"row",gap:"5",grow:!0},s.createElement(h.s,{gap:"2",grow:!0,className:m("text-content")},s.createElement(h.s,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?s.createElement(O.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?s.createElement(O.Actions,{items:e.actions}):e.actions),v&&s.createElement(r.$,{view:"flat",className:m("close-btn"),onClick:v,extraProps:{"aria-label":I("label_close")}},s.createElement(a.I,{data:n.A,size:18,className:(0,c.$)({color:"secondary"})})))))};O.Icon=({className:e,theme:t,view:i="filled",size:n=18})=>{const r=T[t];if(!r)return null;let o;return"success"===t?o="positive":"normal"!==t&&(o=t),s.createElement("div",{className:m("icon",(0,c.$)({color:o},e))},s.createElement(a.I,{data:r[i],size:n}))},O.Title=({text:e,className:t})=>s.createElement(x.E,{variant:"subheader-2",className:m("title",t)},e),O.Actions=({items:e,children:t,className:i})=>{const{layout:n}=u();return s.createElement(h.s,{className:m("actions",{minContent:"horizontal"===n},i),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===n?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},i)=>s.createElement(g,{key:i,onClick:e},t))))||t)},O.Action=g},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var s=i(59284),n=i(73633),r=i(84375),o=i(99991);const a=(0,i(98192).om)("help-popover"),c=16;function l(e){var t;return s.createElement(r.A,Object.assign({},e,{className:a(null,e.className)}),s.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),s.createElement(o.I,{data:n.A,size:c})))}},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>l,default:()=>g,monaco:()=>s});var s=i(80781),n=i(59284);function r(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function o(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};function c(e){var t=e.width,i=e.height,o=e.value,c=e.defaultValue,l=e.language,h=e.theme,d=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,C=e.originalUri,E=e.modifiedUri,b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,n.useRef)(null),R=r(t),L=r(i),T=(0,n.useMemo)((function(){return{width:R,height:L}}),[R,L]);return(0,n.useEffect)((function(){b.current&&(g(s),S.current=s.editor.createDiffEditor(b.current,a(a(a({},_?{extraEditorClassName:_}:{}),d),h?{theme:h}:{}),u),function(){var e=null!=o?o:c,t=null===C||void 0===C?void 0:C(s),i=null===E||void 0===E?void 0:E(s),n=t&&s.editor.getModel(t),r=i&&s.editor.getModel(i);n?(n.setValue(v),s.editor.setModelLanguage(n,l)):n=s.editor.createModel(e,l,t),r?(n.setValue(e),s.editor.setModelLanguage(r,l)):r=s.editor.createModel(e,l,i),S.current.setModel({original:n,modified:r})}(),function(){p(S.current,s);var e=S.current.getModel().modified;y.current=e.onDidChangeContent((function(t){w.current||f(e.getValue(),t)}))}())}),[]),(0,n.useEffect)((function(){S.current&&S.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),d))}),[_,d]),(0,n.useEffect)((function(){S.current&&S.current.layout()}),[t,i]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel(),t=e.original,i=e.modified;s.editor.setModelLanguage(t,l),s.editor.setModelLanguage(i,l)}}),[l]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().modified;w.current=!0,S.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}]),S.current.getModifiedEditor().pushUndoStop(),w.current=!1}}),[o]),(0,n.useEffect)((function(){s.editor.setTheme(h)}),[h]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,n.useEffect)((function(){return function(){if(S.current){m(S.current,s),S.current.dispose();var e=S.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}y.current&&y.current.dispose()}}),[]),n.createElement("div",{ref:b,style:T,className:"react-monaco-editor-container"})}c.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},c.displayName="MonacoDiffEditor";const l=c;var h=function(){return h=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},d=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function u(e){var t=e.width,i=e.height,o=e.value,a=e.defaultValue,c=e.language,l=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,C=e.uri,E=(0,n.useRef)(null),b=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=r(t),R=r(i),L=(0,n.useRef)(_);L.current=_;var T=(0,n.useMemo)((function(){return{width:w,height:R}}),[w,R]);return(0,n.useEffect)((function(){var e=null!==o?o:a;if(E.current){var t=h(h({},u),p(s)||{}),i=null===C||void 0===C?void 0:C(s),n=i&&s.editor.getModel(i);n?(n.setValue(e),s.editor.setModelLanguage(n,c)):n=s.editor.createModel(e,c,i),b.current=s.editor.create(E.current,h(h(h({model:n},v?{extraEditorClassName:v}:{}),t),l?{theme:l}:{}),g),m(b.current,s),S.current=b.current.onDidChangeModelContent((function(e){var t;y.current||null===(t=L.current)||void 0===t||t.call(L,b.current.getValue(),e)}))}}),[]),(0,n.useEffect)((function(){if(b.current){if(o===b.current.getValue())return;var e=b.current.getModel();y.current=!0,b.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}],void 0),b.current.pushUndoStop(),y.current=!1}}),[o]),(0,n.useEffect)((function(){if(b.current){var e=b.current.getModel();s.editor.setModelLanguage(e,c)}}),[c]),(0,n.useEffect)((function(){if(b.current){u.model;var e=d(u,["model"]);b.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,n.useEffect)((function(){b.current&&b.current.layout()}),[t,i]),(0,n.useEffect)((function(){s.editor.setTheme(l)}),[l]),(0,n.useEffect)((function(){return function(){b.current&&(f(b.current,s),b.current.dispose()),S.current&&S.current.dispose()}}),[]),n.createElement("div",{ref:E,style:T,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},u.displayName="MonacoEditor";const g=u},6429:(e,t,i)=>{"use strict";var s,n=i(46359),r=i(71597),o=i(51861),a=i(78209),c=i(5662),l=i(98031),h=i(51467),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class{static{s=this}static{this.PREFIX="?"}constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=n.O.as(r.Fd.Quickaccess)}provide(e){const t=new c.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(s.PREFIX.length));t&&t.prefix&&t.prefix!==s.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==s.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,s=i||"\u2026";return{prefix:i,label:s,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.kg)("helpPickAriaLabel","{0}, {1}",s,t.description),description:t.description}}))}};g=s=d([u(0,h.GK),u(1,l.b)],g),n.O.as(r.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:o.oq.helpQuickAccessActionLabel}]})},6438:(e,t,i)=>{"use strict";var s=i(31450),n=i(15092),r=i(94564),o=i(36677),a=i(60002),c=i(78209);class l extends s.ks{constructor(){super({id:"editor.action.transposeLetters",label:c.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],a=t.getSelections();for(const c of a){if(!c.isEmpty())continue;const e=c.startLineNumber,t=c.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const l=t===a?c.getPosition():r.I.rightPosition(i,c.getPosition().lineNumber,c.getPosition().column),h=r.I.leftPosition(i,l),d=r.I.leftPosition(i,h),u=i.getValueInRange(o.Q.fromPositions(d,h)),g=i.getValueInRange(o.Q.fromPositions(h,l)),p=o.Q.fromPositions(d,l);s.push(new n.iu(p,g+u))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}(0,s.Fl)(l)},6921:(e,t,i)=>{"use strict";function s(e,t){const i=this;let s,n=!1;return function(){if(n)return s;if(n=!0,t)try{s=e.apply(i,arguments)}finally{t()}else s=e.apply(i,arguments);return s}}i.d(t,{P:()=>s})},7085:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});var s=i(36677);class n{static insert(e,t){return{range:new s.Q(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}}}},7142:(e,t,i)=>{"use strict";i.d(t,{U:()=>l});var s=i(90766),n=i(18447),r=i(64383),o=i(31450),a=i(56942);class c{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function l(e,t,i,n,o=!1){const a=e.ordered(t,o).map(((e,s)=>async function(e,t,i,s,n){const o=await Promise.resolve(e.provideHover(i,s,n)).catch(r.M_);if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new c(e,o,t)}(e,s,t,i,n)));return s.AE.fromPromises(a).coalesce()}function h(e,t,i,s,n=!1){return l(e,t,i,s,n).map((e=>e.hover)).toPromise()}(0,o.ke)("_executeHoverProvider",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None))),(0,o.ke)("_executeHoverProvider_recursive",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None,!0)))},7252:(e,t,i)=>{var s,n=n||{version:"5.4.2"};if(t.fabric=n,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?n.document=document:n.document=document.implementation.createHTMLDocument(""),n.window=window;else{var r=new(i(66574).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;n.document=r.document,n.jsdomImplForWrapper=i(2748).implForWrapper,n.nodeCanvas=i(52246).Canvas,n.window=r,DOMParser=n.window.DOMParser}function o(e,t){var i=e.canvas,s=t.targetCanvas,n=s.getContext("2d");n.translate(0,s.height),n.scale(1,-1);var r=i.height-s.height;n.drawImage(i,0,r,s.width,s.height,0,0,s.width,s.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),s=t.destinationWidth,n=t.destinationHeight,r=s*n*4,o=new Uint8Array(this.imageBuffer,0,r),a=new Uint8ClampedArray(this.imageBuffer,0,r);e.readPixels(0,0,s,n,e.RGBA,e.UNSIGNED_BYTE,o);var c=new ImageData(a,s,n);i.putImageData(c,0,0)}n.isTouchSupported="ontouchstart"in n.window||"ontouchstart"in n.document||n.window&&n.window.navigator&&n.window.navigator.maxTouchPoints>0,n.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,n.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],n.DPI=96,n.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",n.commaWsp="(?:\\s+,?\\s*|,\\s*)",n.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,n.reNonWord=/[ \n\.,;!\?\-]/,n.fontPaths={},n.iMatrix=[1,0,0,1,0,0],n.svgNS="http://www.w3.org/2000/svg",n.perfLimitSizeTotal=2097152,n.maxCacheSideLimit=4096,n.minCacheSideLimit=256,n.charWidthsCache={},n.textureSize=2048,n.disableStyleCopyPaste=!1,n.enableGLFiltering=!0,n.devicePixelRatio=n.window.devicePixelRatio||n.window.webkitDevicePixelRatio||n.window.mozDevicePixelRatio||1,n.browserShadowBlurConstant=1,n.arcToSegmentsCache={},n.boundsOfCurveCache={},n.cachesBoundsOfCurve=!0,n.forceGLPutImageData=!1,n.initFilterBackend=function(){return n.enableGLFiltering&&n.isWebglSupported&&n.isWebglSupported(n.textureSize)?(console.log("max texture size: "+n.maxTextureSize),new n.WebglFilterBackend({tileSize:n.textureSize})):n.Canvas2dFilterBackend?new n.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=n),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:n.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}n.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var s=0,n=i.length;s<n;s++)i[s]&&i[s].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var s in e)t.call(this,s,e[s]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var s in t)e.call(this,s,t[s]);else e.call(this,t,i);return this}}}(),n.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var s=this._objects;return i?s[t]=e:s.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,s=0,n=arguments.length;s<n;s++)-1!==(e=t.indexOf(arguments[s]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[s]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),s=0,n=i.length;s<n;s++)e.call(t,i[s],s,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},n.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof n.Gradient||this.set(t,new n.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof n.Pattern?i&&i():this.set(t,new n.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,s=Math.pow,r=Math.PI/180,o=Math.PI/2;n.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/o){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*r},radiansToDegrees:function(e){return e/r},rotatePoint:function(e,t,i){var s=new n.Point(e.x-t.x,e.y-t.y),r=n.util.rotateVector(s,i);return new n.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var i=n.util.sin(t),s=n.util.cos(t);return{x:e.x*s-e.y*i,y:e.x*i+e.y*s}},createVector:function(e,t){return new n.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new n.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var s=n.util.createVector(e,t),r=n.util.createVector(e,i),o=n.util.calcAngleBetweenVectors(s,r),a=o*(0===n.util.calcAngleBetweenVectors(n.util.rotateVector(s,o),r)?1:-1)/2;return{vector:n.util.getHatVector(n.util.rotateVector(s,a)),angle:o}},projectStrokeOnPoints:function(e,t,i){var s=[],r=t.strokeWidth/2,o=t.strokeUniform?new n.Point(1/t.scaleX,1/t.scaleY):new n.Point(1,1),a=function(e){var t=r/Math.hypot(e.x,e.y);return new n.Point(e.x*t*o.x,e.y*t*o.y)};return e.length<=1||e.forEach((function(c,l){var h,d,u=new n.Point(c.x,c.y);0===l?(d=e[l+1],h=i?a(n.util.createVector(d,u)).addEquals(u):e[e.length-1]):l===e.length-1?(h=e[l-1],d=i?a(n.util.createVector(h,u)).addEquals(u):e[0]):(h=e[l-1],d=e[l+1]);var g,p,m=n.util.getBisector(u,h,d),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-r/Math.sin(_/2),p=new n.Point(f.x*g*o.x,f.y*g*o.y),Math.hypot(p.x,p.y)/r<=t.strokeMiterLimit))return s.push(u.add(p)),void s.push(u.subtract(p));g=-r*Math.SQRT2,p=new n.Point(f.x*g*o.x,f.y*g*o.y),s.push(u.add(p)),s.push(u.subtract(p))})),s},transformPoint:function(e,t,i){return i?new n.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new n.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=n.util.transformPoint(e[i],t);var s=[e[0].x,e[1].x,e[2].x,e[3].x],r=n.util.array.min(s),o=n.util.array.max(s)-r,a=[e[0].y,e[1].y,e[2].y,e[3].y],c=n.util.array.min(a);return{left:r,top:c,width:o,height:n.util.array.max(a)-c}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],s=n.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-s.x,i[5]=-s.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),s=parseFloat(e);switch(t||(t=n.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return s*n.DPI/25.4;case"cm":return s*n.DPI/2.54;case"in":return s*n.DPI;case"pt":return s*n.DPI/72;case"pc":return s*n.DPI/72*12;case"em":return s*t;default:return s}},falseFunction:function(){return!1},getKlass:function(e,t){return e=n.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),n.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return n;var i,s=t.split("."),r=s.length,o=e||n.window;for(i=0;i<r;++i)o=o[s[i]];return o},loadImage:function(e,t,i,s){if(e){var r=n.util.createImage(),o=function(){t&&t.call(i,r,!1),r=r.onload=r.onerror=null};r.onload=o,r.onerror=function(){n.log("Error loading "+r.src),t&&t.call(i,null,!0),r=r.onload=r.onerror=null},0!==e.indexOf("data")&&void 0!==s&&null!==s&&(r.crossOrigin=s),"data:image/svg"===e.substring(0,14)&&(r.onload=null,n.util.loadImageInDom(r,o)),r.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=n.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),n.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,s){var r=[],o=0,a=(e=e||[]).length;function c(){++o===a&&t&&t(r.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?n.util.getKlass(e.type,i).fromObject(e,(function(i,n){n||(r[t]=i),s&&s(e,i,n),c()})):c()})):t&&t(r)},enlivenObjectEnlivables:function(e,t,i){var s=n.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));n.util.enlivenObjects(s.map((function(t){return e[t]})),(function(e){var n={};s.forEach((function(i,s){n[i]=e[s],t&&(t[i]=e[s])})),i&&i(n)}))},enlivenPatterns:function(e,t){function i(){++r===o&&t&&t(s)}var s=[],r=0,o=(e=e||[]).length;o?e.forEach((function(e,t){e&&e.source?new n.Pattern(e,(function(e){s[t]=e,i()})):(s[t]=e,i())})):t&&t(s)},groupSVGElements:function(e,t,i){var s;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),s=new n.Group(e,t),"undefined"!==typeof i&&(s.sourcePath=i),s)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var s=0,n=i.length;s<n;s++)i[s]in e&&(t[i[s]]=e[i[s]])},createCanvasElement:function(){return n.document.createElement("canvas")},copyCanvasElement:function(e){var t=n.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return n.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var n=i(e[1],e[0]),o=s(e[0],2)+s(e[1],2),a=t(o),c=(e[0]*e[3]-e[2]*e[1])/a,l=i(e[0]*e[2]+e[1]*e[3],o);return{angle:n/r,scaleX:a,scaleY:c,skewX:l/r,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return n.iMatrix.concat();var t=n.util.degreesToRadians(e.angle),i=n.util.cos(t),s=n.util.sin(t);return[i,s,-s,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,s=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],r=n.util.multiplyTransformMatrices,o=n.util.degreesToRadians;return e.skewX&&(s=r(s,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(s=r(s,[1,Math.tan(o(e.skewY)),0,1],!0)),s},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=n.util.multiplyTransformMatrices;return e.angle&&(t=i(t,n.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,n.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,s){s>0&&(t>s?t-=s:t=0,i>s?i-=s:i=0);var n,r=!0,o=e.getImageData(t,i,2*s||1,2*s||1),a=o.data.length;for(n=3;n<a&&!1!==(r=o.data[n]<=0);n+=4);return o=null,r},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",s=e.split(" ");return s&&s.length&&("meet"!==(i=s.pop())&&"slice"!==i?(t=i,i="meet"):s.length&&(t=s.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?n.charWidthsCache[e]&&delete n.charWidthsCache[e]:n.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),s=Math.floor(t/i);return{x:Math.floor(i),y:s}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return n.util.toFixed(e,n.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=n.util.invertTransform(t),s=n.util.multiplyTransformMatrices(i,e.calcOwnMatrix());n.util.applyTransformToObject(e,s)},addTransformToObject:function(e,t){n.util.applyTransformToObject(e,n.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=n.util.qrDecompose(t),s=new n.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(s,"center","center")},sizeAfterTransform:function(e,t,i){var s=e/2,r=t/2,o=[{x:-s,y:-r},{x:s,y:-r},{x:-s,y:r},{x:s,y:r}],a=n.util.calcDimensionsMatrix(i),c=n.util.makeBoundingBoxFromPoints(o,a);return{x:c.width,y:c.height}},mergeClipPaths:function(e,t){var i=e,s=t;i.inverted&&!s.inverted&&(i=t,s=e),n.util.applyTransformToObject(s,n.util.multiplyTransformMatrices(n.util.invertTransform(i.calcTransformMatrix()),s.calcTransformMatrix()));var r=i.inverted&&s.inverted;return r&&(i.inverted=s.inverted=!1),new n.Group([i],{clipPath:s,inverted:r})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=n.util.object.clone(e,!0);for(var i=t.split("\n"),s=-1,r={},o=[],a=0;a<i.length;a++)if(e[a])for(var c=0;c<i[a].length;c++){s++;var l=e[a][c];if(l&&Object.keys(l).length>0)n.util.hasStyleChanged(r,l,!0)?o.push({start:s,end:s+1,style:l}):o[o.length-1].end++;r=l||{}}else s+=i[a].length;return o},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),s=-1,n=0,r={},o=0;o<i.length;o++)for(var a=0;a<i[o].length;a++)s++,e[n]&&e[n].start<=s&&s<e[n].end&&(r[o]=r[o]||{},r[o][a]=Object.assign({},e[n].style),s===e[n].end-1&&n++);return r}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function s(e,t,i,s,r,o,a,c,l,h,d){var u=n.util.cos(e),g=n.util.sin(e),p=n.util.cos(t),m=n.util.sin(t),f=i*r*p-s*o*m+a,_=s*r*p+i*o*m+c;return["C",h+l*(-i*r*g-s*o*u),d+l*(-s*r*g+i*o*u),f+l*(i*r*m+s*o*p),_+l*(s*r*m-i*o*p),f,_]}function r(e,t,i,s){var n=Math.atan2(t,e),r=Math.atan2(s,i);return r>=n?r-n:2*Math.PI-(n-r)}function o(e,t,i){for(var o=i[1],a=i[2],c=i[3],l=i[4],h=i[5],d=function(e,t,i,o,a,c,l){var h=Math.PI,d=l*h/180,u=n.util.sin(d),g=n.util.cos(d),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,C=(o=Math.abs(o))*o,E=_*_,b=f*f,S=v*C-v*E-C*b,y=0;if(S<0){var w=Math.sqrt(1-S/(v*C));i*=w,o*=w}else y=(a===c?-1:1)*Math.sqrt(S/(v*E+C*b));var R=y*i*_/o,L=-y*o*f/i,T=g*R-u*L+.5*e,x=u*R+g*L+.5*t,k=r(1,0,(f-R)/i,(_-L)/o),A=r((f-R)/i,(_-L)/o,(-f-R)/i,(-_-L)/o);0===c&&A>0?A-=2*h:1===c&&A<0&&(A+=2*h);for(var N=Math.ceil(Math.abs(A/h*2)),I=[],O=A/N,D=8/3*Math.sin(O/4)*Math.sin(O/4)/Math.sin(O/2),M=k+O,P=0;P<N;P++)I[P]=s(k,M,g,u,i,o,T,x,D,p,m),p=I[P][5],m=I[P][6],k=M,M+=O;return I}(i[6]-e,i[7]-t,o,a,l,h,c),u=0,g=d.length;u<g;u++)d[u][1]+=e,d[u][2]+=t,d[u][3]+=e,d[u][4]+=t,d[u][5]+=e,d[u][6]+=t;return d}function a(e,t,i,s){return Math.sqrt((i-e)*(i-e)+(s-t)*(s-t))}function c(e,t,i,s,n,r,o,a){return function(c){var l,h=(l=c)*l*l,d=function(e){return 3*e*e*(1-e)}(c),u=function(e){return 3*e*(1-e)*(1-e)}(c),g=function(e){return(1-e)*(1-e)*(1-e)}(c);return{x:o*h+n*d+i*u+e*g,y:a*h+r*d+s*u+t*g}}}function l(e,t,i,s,n,r,o,a){return function(c){var l=1-c,h=3*l*l*(i-e)+6*l*c*(n-i)+3*c*c*(o-n),d=3*l*l*(s-t)+6*l*c*(r-s)+3*c*c*(a-r);return Math.atan2(d,h)}}function h(e,t,i,s,n,r){return function(o){var a,c=(a=o)*a,l=function(e){return 2*e*(1-e)}(o),h=function(e){return(1-e)*(1-e)}(o);return{x:n*c+i*l+e*h,y:r*c+s*l+t*h}}}function d(e,t,i,s,n,r){return function(o){var a=1-o,c=2*a*(i-e)+2*o*(n-i),l=2*a*(s-t)+2*o*(r-s);return Math.atan2(l,c)}}function u(e,t,i){var s,n,r={x:t,y:i},o=0;for(n=1;n<=100;n+=1)s=e(n/100),o+=a(r.x,r.y,s.x,s.y),r=s;return o}function g(e,t){for(var i,s,n,r=0,o=0,c=e.iterator,l={x:e.x,y:e.y},h=.01,d=e.angleFinder;o<t&&h>1e-4;)i=c(r),n=r,(s=a(l.x,l.y,i.x,i.y))+o>t?(r-=h,h/=2):(l=i,r+=h,o+=s);return i.angle=d(n),i}function p(e){for(var t,i,s,n,r=0,o=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<o;v++){switch(s={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":s.length=0,m=g=t[1],f=p=t[2];break;case"L":s.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=c(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),n=d(g,p,t[1],t[2],t[3],t[4]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":s.destX=m,s.destY=f,s.length=a(g,p,m,f),g=m,p=f}r+=s.length,_.push(s)}return _.push({length:r,x:g,y:p}),_}n.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},n.util.parsePath=function(e){var s,r,o,a,c,l=[],h=[],d=n.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+n.commaWsp,p="([01])"+n.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return l;for(var f,_=0,v=(c=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(s=c[_]).slice(1).trim(),h.length=0;var C=s.charAt(0);if(f=[C],"a"===C.toLowerCase())for(var E;E=m.exec(a);)for(var b=1;b<E.length;b++)h.push(E[b]);else for(;o=d.exec(a);)h.push(o[0]);b=0;for(var S=h.length;b<S;b++)r=parseFloat(h[b]),isNaN(r)||f.push(r);var y=t[C.toLowerCase()],w=i[C]||C;if(f.length-1>y)for(var R=1,L=f.length;R<L;R+=y)l.push([C].concat(f.slice(R,R+y))),C=w;else l.push(f)}return l},n.util.makePathSimpler=function(e){var t,i,s,n,r,a,c=0,l=0,h=e.length,d=0,u=0,g=[];for(i=0;i<h;++i){switch(s=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=c,t[2]+=l;case"L":c=t[1],l=t[2];break;case"h":t[1]+=c;case"H":t[0]="L",t[2]=l,c=t[1];break;case"v":t[1]+=l;case"V":t[0]="L",l=t[1],t[1]=c,t[2]=l;break;case"m":t[0]="M",t[1]+=c,t[2]+=l;case"M":c=t[1],l=t[2],d=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l,t[5]+=c,t[6]+=l;case"C":r=t[3],a=t[4],c=t[5],l=t[6];break;case"s":t[0]="S",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"S":"C"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),c=t[3],l=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=r,t[2]=a,r=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=c,t[2]+=l,t[3]+=c,t[4]+=l;case"Q":r=t[1],a=t[2],c=t[3],l=t[4];break;case"t":t[0]="T",t[1]+=c,t[2]+=l;case"T":"Q"===n?(r=2*c-r,a=2*l-a):(r=c,a=l),t[0]="Q",c=t[1],l=t[2],t[1]=r,t[2]=a,t[3]=c,t[4]=l;break;case"a":t[0]="A",t[6]+=c,t[7]+=l;case"A":s=!0,g=g.concat(o(c,l,t)),c=t[6],l=t[7];break;case"z":case"Z":c=d,l=u}s||g.push(t),n=t[0]}return g},n.util.getSmoothPathFromPoints=function(e,t){var i,s=[],r=new n.Point(e[0].x,e[0].y),o=new n.Point(e[1].x,e[1].y),a=e.length,c=1,l=0,h=a>2;for(t=t||0,h&&(c=e[2].x<o.x?-1:e[2].x===o.x?0:1,l=e[2].y<o.y?-1:e[2].y===o.y?0:1),s.push(["M",r.x-c*t,r.y-l*t]),i=1;i<a;i++){if(!r.eq(o)){var d=r.midPointFrom(o);s.push(["Q",r.x,r.y,d.x,d.y])}r=e[i],i+1<e.length&&(o=e[i+1])}return h&&(c=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,l=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),s.push(["L",r.x+c*t,r.y+l*t]),s},n.util.getPathSegmentsInfo=p,n.util.getBoundsOfCurve=function(t,i,s,r,o,a,c,l){var h;if(n.cachesBoundsOfCurve&&(h=e.call(arguments),n.boundsOfCurveCache[h]))return n.boundsOfCurveCache[h];var d,u,g,p,m,f,_,v,C=Math.sqrt,E=Math.min,b=Math.max,S=Math.abs,y=[],w=[[],[]];u=6*t-12*s+6*o,d=-3*t+9*s-9*o+3*c,g=3*s-3*t;for(var R=0;R<2;++R)if(R>0&&(u=6*i-12*r+6*a,d=-3*i+9*r-9*a+3*l,g=3*r-3*i),S(d)<1e-12){if(S(u)<1e-12)continue;0<(p=-g/u)&&p<1&&y.push(p)}else(_=u*u-4*g*d)<0||(0<(m=(-u+(v=C(_)))/(2*d))&&m<1&&y.push(m),0<(f=(-u-v)/(2*d))&&f<1&&y.push(f));for(var L,T,x,k=y.length,A=k;k--;)L=(x=1-(p=y[k]))*x*x*t+3*x*x*p*s+3*x*p*p*o+p*p*p*c,w[0][k]=L,T=x*x*x*i+3*x*x*p*r+3*x*p*p*a+p*p*p*l,w[1][k]=T;w[0][A]=t,w[1][A]=i,w[0][A+1]=c,w[1][A+1]=l;var N=[{x:E.apply(null,w[0]),y:E.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return n.cachesBoundsOfCurve&&(n.boundsOfCurveCache[h]=N),N},n.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var s=0;t-i[s].length>0&&s<i.length-2;)t-=i[s].length,s++;var r,o=i[s],a=t/o.length,c=o.command,l=e[s];switch(c){case"M":return{x:o.x,y:o.y,angle:0};case"Z":case"z":return(r=new n.Point(o.x,o.y).lerp(new n.Point(o.destX,o.destY),a)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),r;case"L":return(r=new n.Point(o.x,o.y).lerp(new n.Point(l[1],l[2]),a)).angle=Math.atan2(l[2]-o.y,l[1]-o.x),r;case"C":case"Q":return g(o,t)}},n.util.transformPath=function(e,t,i){return i&&(t=n.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),s={},r=1;r<e.length-1;r+=2)s.x=e[r],s.y=e[r+1],s=n.util.transformPoint(s,t),i[r]=s.x,i[r+1]=s.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var s=e.length-1,n=t?e[s][t]:e[s];if(t)for(;s--;)i(e[s][t],n)&&(n=e[s][t]);else for(;s--;)i(e[s],n)&&(n=e[s]);return n}}n.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var s=e.call(arguments,2),n=[],r=0,o=t.length;r<o;r++)n[r]=s.length?t[r][i].apply(t[r],s):t[r][i].call(t[r]);return n},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,s){if(s)if(!n.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var r=0,o=i.length;r<o;r++)t[r]=e({},i[r],s)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],s));else t=i;else for(var a in i)t[a]=i[a];return t}n.util.object={extend:e,clone:function(t,i){return e({},t,i)}},n.util.object.extend(n.util,n.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var s=e.charCodeAt(t+1);if(56320>s||s>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var n=e.charCodeAt(t-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1}n.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,s=0,n=[];for(s=0;s<t.length;s++)!1!==(i=e(t,s))&&n.push(i);return n}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),s=function(e,t,s){for(var n in t)n in e.prototype&&"function"===typeof e.prototype[n]&&(t[n]+"").indexOf("callSuper")>-1?e.prototype[n]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=s;var n=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return n}}(n):e.prototype[n]=t[n],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function r(){}function o(t){for(var i=null,s=this;s.constructor.superclass;){var n=s.constructor.superclass.prototype[t];if(s[t]!==n){i=n;break}s=s.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}n.util.createClass=function(){var i=null,n=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof n[0]&&(i=n.shift()),a.superclass=i,a.subclasses=[],i&&(r.prototype=i.prototype,a.prototype=new r,i.subclasses.push(a));for(var c=0,l=n.length;c<l;c++)s(a,n[c],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),function(){var e=!!n.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];n.util.addListener=function(t,i,s,n){t&&t.addEventListener(i,s,!e&&n)},n.util.removeListener=function(t,i,s,n){t&&t.removeEventListener(i,s,!e&&n)},n.util.getPointer=function(e){var t=e.target,i=n.util.getScrollLeftTop(t),s=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:s.clientX+i.left,y:s.clientY+i.top}},n.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=n.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,s=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,r=function(e){return e};t?r=function(e,t){return e.style.opacity=t,e}:i&&(r=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),s.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(s,t)):i.filter+=" alpha(opacity="+100*t+")",e}),n.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?r(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var s in t)if("opacity"===s)r(e,t[s]);else{var n="float"===s||"cssFloat"===s?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":s;i.setProperty(n,t[s])}return e}}(),function(){var e=Array.prototype.slice;var t,i,s=function(t){return e.call(t,0)};try{t=s(n.document.childNodes)instanceof Array}catch(a){}function r(e,t){var i=n.document.createElement(e);for(var s in t)"class"===s?i.className=t[s]:"for"===s?i.htmlFor=t[s]:i.setAttribute(s,t[s]);return i}function o(e){for(var t=0,i=0,s=n.document.documentElement,r=n.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===n.document?(t=r.scrollLeft||s.scrollLeft||0,i=r.scrollTop||s.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(s=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=n.document.defaultView&&n.document.defaultView.getComputedStyle?function(e,t){var i=n.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=n.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";n.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=n.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},n.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),n.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},n.util.getById=function(e){return"string"===typeof e?n.document.getElementById(e):e},n.util.toArray=s,n.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},n.util.makeElement=r,n.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=r(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},n.util.getScrollLeftTop=o,n.util.getElementOffset=function(e){var t,s,n=e&&e.ownerDocument,r={left:0,top:0},a={left:0,top:0},c={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return a;for(var l in c)a[c[l]]+=parseInt(i(e,l),10)||0;return t=n.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),s=o(e),{left:r.left+s.left-(t.clientLeft||0)+a.left,top:r.top+s.top-(t.clientTop||0)+a.top}},n.util.getNodeCanvas=function(e){var t=n.jsdomImplForWrapper(e);return t._canvas||t._image},n.util.cleanUpJsdomNode=function(e){if(n.isLikelyNode){var t=n.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}n.util.request=function(t,i){i||(i={});var s=i.method?i.method.toUpperCase():"GET",r=i.onComplete||function(){},o=new n.window.XMLHttpRequest,a=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState&&(r(o),o.onreadystatechange=e)},"GET"===s&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),o.open(s,t,!0),"POST"!==s&&"PUT"!==s||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(a),o}}(),n.log=console.log,n.warn=console.warn,function(){var e=n.util.object.extend,t=n.util.object.clone,i=[];function s(){return!1}function r(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t}n.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var o=n.window.requestAnimationFrame||n.window.webkitRequestAnimationFrame||n.window.mozRequestAnimationFrame||n.window.oRequestAnimationFrame||n.window.msRequestAnimationFrame||function(e){return n.window.setTimeout(e,1e3/60)},a=n.window.cancelAnimationFrame||n.window.clearTimeout;function c(){return o.apply(n.window,arguments)}n.util.animate=function(i){i||(i={});var o,a=!1,l=function(){var e=n.runningAnimations.indexOf(o);return e>-1&&n.runningAnimations.splice(e,1)[0]};return o=e(t(i),{cancel:function(){return a=!0,l()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),n.runningAnimations.push(o),c((function(e){var t,n=e||+new Date,h=i.duration||500,d=n+h,u=i.onChange||s,g=i.abort||s,p=i.onComplete||s,m=i.easing||r,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,C=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var s=(t=i||+new Date)>d?h:t-n,r=s/h,E=f?_.map((function(e,t){return m(s,_[t],C[t],h)})):m(s,_,C,h),b=f?Math.abs((E[0]-_[0])/C[0]):Math.abs((E-_)/C);if(o.currentValue=f?E.slice():E,o.completionRate=b,o.durationRate=r,!a){if(!g(E,b,r))return t>d?(o.currentValue=f?v.slice():v,o.completionRate=1,o.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void l()):(u(E,b,r),void c(e));l()}}(n)})),o.cancel},n.util.requestAnimFrame=c,n.util.cancelAnimFrame=function(){return a.apply(n.window,arguments)},n.runningAnimations=i}(),function(){function e(e,t,i){var s="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return s+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),s+=")"}n.util.animateColor=function(t,i,s,r){var o=new n.Color(t).getSource(),a=new n.Color(i).getSource(),c=r.onComplete,l=r.onChange;return r=r||{},n.util.animate(n.util.object.extend(r,{duration:s||500,startValue:o,endValue:a,byValue:a,easing:function(t,i,s,n){return e(i,s,r.colorEasing?r.colorEasing(t,n):1-Math.cos(t/n*(Math.PI/2)))},onComplete:function(t,i,s){if(c)return c(e(a,a,0),i,s)},onChange:function(t,i,s){if(l){if(Array.isArray(t))return l(e(t,t,0),i,s);l(t,i,s)}}}))}}(),function(){function e(e,t,i,s){return e<Math.abs(t)?(e=t,s=i/4):s=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:s}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,n){return i-s(n-e,0,i,n)+t}function s(e,t,i,s){return(e/=s)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}n.util.ease={easeInQuad:function(e,t,i,s){return i*(e/=s)*e+t},easeOutQuad:function(e,t,i,s){return-i*(e/=s)*(e-2)+t},easeInOutQuad:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,s){return i*(e/=s)*e*e+t},easeOutCubic:function(e,t,i,s){return i*((e=e/s-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,s){return i*(e/=s)*e*e*e+t},easeOutQuart:function(e,t,i,s){return-i*((e=e/s-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,s){return i*(e/=s)*e*e*e*e+t},easeOutQuint:function(e,t,i,s){return i*((e=e/s-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,s){return i*Math.sin(e/s*(Math.PI/2))+t},easeInOutSine:function(e,t,i,s){return-i/2*(Math.cos(Math.PI*e/s)-1)+t},easeInExpo:function(e,t,i,s){return 0===e?t:i*Math.pow(2,10*(e/s-1))+t},easeOutExpo:function(e,t,i,s){return e===s?t+i:i*(1-Math.pow(2,-10*e/s))+t},easeInOutExpo:function(e,t,i,s){return 0===e?t:e===s?t+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,s){return-i*(Math.sqrt(1-(e/=s)*e)-1)+t},easeOutCirc:function(e,t,i,s){return i*Math.sqrt(1-(e=e/s-1)*e)+t},easeInOutCirc:function(e,t,i,s){return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,s,n,r){var o=0;return 0===i?s:1===(i/=r)?s+n:(o||(o=.3*r),-t(e(n,n,o,1.70158),i,r)+s)},easeOutElastic:function(t,i,s,n){var r=0;if(0===t)return i;if(1===(t/=n))return i+s;r||(r=.3*n);var o=e(s,s,r,1.70158);return o.a*Math.pow(2,-10*t)*Math.sin((t*n-o.s)*(2*Math.PI)/o.p)+o.c+i},easeInOutElastic:function(i,s,n,r){var o=0;if(0===i)return s;if(2===(i/=r/2))return s+n;o||(o=r*(.3*1.5));var a=e(n,n,o,1.70158);return i<1?-.5*t(a,i,r)+s:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*r-a.s)*(2*Math.PI)/a.p)*.5+a.c+s},easeInBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*(e/=s)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*((e=e/s-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),(e/=s/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:i,easeOutBounce:s,easeInOutBounce:function(e,t,n,r){return e<r/2?.5*i(2*e,0,n,r)+t:.5*s(2*e-r,0,n,r)+.5*n+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.parseUnit,o=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},c={stroke:"strokeOpacity",fill:"fillOpacity"},l="font-size",h="clip-path";function d(e){return e in a?a[e]:e}function u(e,i,s,n){var a,c=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=s&&s.transformMatrix?o(s.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,s&&!1===s.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),s&&"undefined"!==typeof s.opacity&&(i*=s.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=r(i,n)/n*1e3;else if("paintFirst"===e){var l=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(l>-1&&h>-1&&h<l||-1===l&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=c?i.map(r):r(i,n)}}else i="";return!c&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,s,n,r,o=[];for(n=0,r=t.length;n<r;n++)i=t[n],s=e.getElementsByTagName(i),o=o.concat(Array.prototype.slice.call(s));return o}function m(e,t){var i,s=!0;return(i=f(e,t.pop()))&&t.length&&(s=function(e,t){var i,s=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)s&&(i=t.pop()),s=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&s&&0===t.length}function f(e,t){var i,s,n=e.nodeName,r=e.getAttribute("class"),o=e.getAttribute("id");if(i=new RegExp("^"+n,"i"),t=t.replace(i,""),o&&t.length&&(i=new RegExp("#"+o+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(s=(r=r.split(" ")).length;s--;)i=new RegExp("\\."+r[s]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var s,n,r,o=e.getElementsByTagName("*");for(n=0,r=o.length;n<r;n++)if(t===(s=o[n]).getAttribute("id"))return s}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,s){e[s]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,s=t.reNum,n=t.commaWsp,r="(?:"+("(?:(matrix)\\s*\\(\\s*("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+")"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))")+")",o=new RegExp("^\\s*(?:"+("(?:"+r+"(?:"+n+"*"+r+")*)")+"?)\\s*$"),a=new RegExp(r,"g");return function(s){var n=i.concat(),c=[];if(!s||s&&!o.test(s))return n;s.replace(a,(function(s){var o=new RegExp(r).exec(s).filter((function(e){return!!e})),a=o[1],l=o.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(n,l);break;case"rotate":l[0]=t.util.degreesToRadians(l[0]),function(e,i){var s=t.util.cos(i[0]),n=t.util.sin(i[0]),r=0,o=0;3===i.length&&(r=i[1],o=i[2]),e[0]=s,e[1]=n,e[2]=-n,e[3]=s,e[4]=r-(s*r-n*o),e[5]=o-(n*r+s*o)}(n,l);break;case"scale":!function(e,t){var i=t[0],s=2===t.length?t[1]:t[0];e[0]=i,e[3]=s}(n,l);break;case"skewX":e(n,l,2);break;case"skewY":e(n,l,1);break;case"matrix":n=l}c.push(n.concat()),n=i.concat()}));for(var l=c[0];c.length>1;)c.shift(),l=t.util.multiplyTransformMatrices(l,c[0]);return l}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function C(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,s,n,o,a,c,l=e.getAttribute("viewBox"),h=1,d=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!l||!(l=l.match(v)),C=!u||!g||"100%"===u||"100%"===g,E=_&&C,b={},S="",y=0,w=0;if(b.width=0,b.height=0,b.toBeParsed=E,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") ",a=(e.getAttribute("transform")||"")+S,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),E)return b;if(_)return b.width=r(u),b.height=r(g),b;if(i=-parseFloat(l[1]),s=-parseFloat(l[2]),n=parseFloat(l[3]),o=parseFloat(l[4]),b.minX=i,b.minY=s,b.viewBoxWidth=n,b.viewBoxHeight=o,C?(b.width=n,b.height=o):(b.width=r(u),b.height=r(g),h=b.width/n,d=b.height/o),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(d=h=h>d?d:h),"slice"===f.meetOrSlice&&(d=h=h>d?h:d),y=b.width-n*h,w=b.height-o*h,"Mid"===f.alignX&&(y/=2),"Mid"===f.alignY&&(w/=2),"Min"===f.alignX&&(y=0),"Min"===f.alignY&&(w=0)),1===h&&1===d&&0===i&&0===s&&0===p&&0===m)return b;if((p||m)&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") "),a=S+" matrix("+h+" 0 0 "+d+" "+(i*h+y)+" "+(s*d+w)+") ","svg"===e.nodeName){for(c=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)c.appendChild(e.firstChild);e.appendChild(c)}else(c=e).removeAttribute("x"),c.removeAttribute("y"),a=c.getAttribute("transform")+a;return c.setAttribute("transform",a),b}function E(e,t){var i="xlink:href",s=_(e,t.getAttribute(i).slice(1));if(s&&s.getAttribute(i)&&E(e,s),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){s&&!t.hasAttribute(e)&&s.hasAttribute(e)&&t.setAttribute(e,s.getAttribute(e))})),!t.children.length)for(var n=s.cloneNode(!0);n.firstChild;)t.appendChild(n.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,n,r){if(e){!function(e){for(var i=p(e,["use","svg:use"]),s=0;i.length&&s<i.length;){var n=i[s],r=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===r)return;var o,a,c,l,h=r.slice(1),d=n.getAttribute("x")||0,u=n.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+d+", "+u+")",f=i.length,v=t.svgNS;if(C(g),/^svg$/i.test(g.nodeName)){var E=g.ownerDocument.createElementNS(v,"g");for(a=0,l=(c=g.attributes).length;a<l;a++)o=c.item(a),E.setAttributeNS(v,o.nodeName,o.nodeValue);for(;g.firstChild;)E.appendChild(g.firstChild);g=E}for(a=0,l=(c=n.attributes).length;a<l;a++)"x"!==(o=c.item(a)).nodeName&&"y"!==o.nodeName&&"xlink:href"!==o.nodeName&&"href"!==o.nodeName&&("transform"===o.nodeName?m=o.nodeValue+" "+m:g.setAttribute(o.nodeName,o.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),n.parentNode.replaceChild(g,n),i.length===f&&s++}}(e);var o,a,c=t.Object.__uid++,l=C(e),h=t.util.toArray(e.getElementsByTagName("*"));if(l.crossOrigin=r&&r.crossOrigin,l.svgUid=c,0===h.length&&t.isLikelyNode){var d=[];for(o=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;o<a;o++)d[o]=h[o];h=d}var u=h.filter((function(e){return C(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[c]=t.getGradientDefs(e),t.cssRules[c]=t.getCSSRules(e),t.clipPaths[c]=g,t.parseElements(u,(function(e,s){i&&(i(e,l,s,h),delete t.gradientDefs[c],delete t.cssRules[c],delete t.clipPaths[c])}),s(l),n,r)}}};var b=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(b);if(i){var s=i[1],n=i[3],o=i[4],a=i[5],c=i[6];s&&(t.fontStyle=s),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),o&&(t.fontSize=r(o)),c&&(t.fontFamily=c),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),s=0,n={};for(s=i.length;s--;)(t=i[s]).getAttribute("xlink:href")&&E(e,t),n[t.getAttribute("id")]=t;return n},parseAttributes:function(e,s,o){if(e){var a,g,p,f={};"undefined"===typeof o&&(o=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,s,o));var _=s.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var s={};for(var n in t.cssRules[i])if(m(e,n.split(" ")))for(var r in t.cssRules[i][n])s[r]=t.cssRules[i][n][r];return s}(e,o),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[l]&&(_[l]=g=r(_[l],p));var C,E,b={};for(var S in _)E=u(C=d(S),_[S],f,g),b[C]=E;b&&b.font&&t.parseFontDeclaration(b.font,b);var y=i(f,b);return t.svgValidParentsRegEx.test(e.nodeName)?y:function(e){for(var i in c)if("undefined"!==typeof e[c[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var s=new t.Color(e[i]);e[i]=s.setAlpha(n(s.getAlpha()*e[c[i]],2)).toRgba()}}return e}(y)}},parseElements:function(e,i,s,n,r){new t.ElementsParser(e,i,s,n,r).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,s;e.replace(/;\s*$/,"").split(";").forEach((function(e){var n=e.split(":");i=n[0].trim().toLowerCase(),s=n[1].trim(),t[i]=s}))}(i,t):function(e,t){var i,s;for(var n in e)"undefined"!==typeof e[n]&&(i=n.toLowerCase(),s=e[n],t[i]=s)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,s=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)s.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return s},getCSSRules:function(e){var i,s,n=e.getElementsByTagName("style"),r={};for(i=0,s=n.length;i<s;i++){var o=n[i].textContent;""!==(o=o.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&o.split("}").filter((function(e){return e.trim()})).forEach((function(e){var n=e.split("{"),o={},a=n[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,s=a.length;i<s;i++){var c=a[i].split(":"),l=c[0].trim(),h=c[1].trim();o[l]=h}(e=n[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(r[e]?t.util.object.extend(r[e],o):r[e]=t.util.object.clone(o))}))}))}return r},loadSVGFromURL:function(e,i,s,n){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var r=e.responseXML;if(!r||!r.documentElement)return i&&i(null),!1;t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i&&i(e,t,s,n)}),s,n)}})},loadSVGFromString:function(e,i,s,n){var r=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i(e,t,s,n)}),s,n)}})}(t),n.ElementsParser=function(e,t,i,s,n,r){this.elements=e,this.callback=t,this.options=i,this.reviver=s,this.svgUid=i&&i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r},(s=n.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},s.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},s.findTag=function(e){return n[n.util.string.capitalize(e.tagName.replace("svg:",""))]},s.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(s){n.log(s)}else this.checkIfDone()},s.createCallback=function(e,t){var i=this;return function(s){var r;i.resolveGradient(s,t,"fill"),i.resolveGradient(s,t,"stroke"),s instanceof n.Image&&s._originalElement&&(r=s.parsePreserveAspectRatioAttribute(t)),s._removeTransformMatrix(r),i.resolveClipPath(s,t),i.reviver&&i.reviver(t,s),i.instances[e]=s,i.checkIfDone()}},s.extractPropertyDefinition=function(e,t,i){var s=e[t],r=this.regexUrl;if(r.test(s)){r.lastIndex=0;var o=r.exec(s)[1];return r.lastIndex=0,n[i][this.svgUid][o]}},s.resolveGradient=function(e,t,i){var s=this.extractPropertyDefinition(e,i,"gradientDefs");if(s){var r=t.getAttribute(i+"-opacity"),o=n.Gradient.fromElement(s,e,r,this.options);e.set(i,o)}},s.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},s.resolveClipPath=function(e,t){var i,s,r,o,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){r=[],s=n.util.invertTransform(e.calcTransformMatrix());for(var c=a[0].parentNode,l=t;l.parentNode&&l.getAttribute("clip-path")!==e.clipPath;)l=l.parentNode;l.parentNode.appendChild(c);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,r),this.options);a=1===r.length?r[0]:new n.Group(r),o=n.util.multiplyTransformMatrices(s,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,l);var d=n.util.qrDecompose(o);a.flipX=!1,a.flipY=!1,a.set("scaleX",d.scaleX),a.set("scaleY",d.scaleY),a.angle=d.angle,a.skewX=d.skewX,a.skewY=0,a.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},s.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,s,n,r){var o,a=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),c=(s.x-e.x)*(e.y-n.y)-(s.y-e.y)*(e.x-n.x),l=(r.y-n.y)*(s.x-e.x)-(r.x-n.x)*(s.y-e.y);if(0!==l){var h=a/l,d=c/l;0<=h&&h<=1&&0<=d&&d<=1?(o=new i("Intersection")).appendPoint(new t.Point(e.x+h*(s.x-e.x),e.y+h*(s.y-e.y))):o=new i}else o=new i(0===a||0===c?"Coincident":"Parallel");return o},t.Intersection.intersectLinePolygon=function(e,t,s){var n,r,o,a,c=new i,l=s.length;for(a=0;a<l;a++)n=s[a],r=s[(a+1)%l],o=i.intersectLineLine(e,t,n,r),c.appendPoints(o.points);return c.points.length>0&&(c.status="Intersection"),c},t.Intersection.intersectPolygonPolygon=function(e,t){var s,n=new i,r=e.length;for(s=0;s<r;s++){var o=e[s],a=e[(s+1)%r],c=i.intersectLinePolygon(o,a,t);n.appendPoints(c.points)}return n.points.length>0&&(n.status="Intersection"),n},t.Intersection.intersectPolygonRectangle=function(e,s,n){var r=s.min(n),o=s.max(n),a=new t.Point(o.x,r.y),c=new t.Point(r.x,o.y),l=i.intersectLinePolygon(r,a,e),h=i.intersectLinePolygon(a,o,e),d=i.intersectLinePolygon(o,c,e),u=i.intersectLinePolygon(c,r,e),g=new i;return g.appendPoints(l.points),g.appendPoints(h.points),g.appendPoints(d.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function s(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,s){e/=255,i/=255,s/=255;var n,r,o,a=t.util.array.max([e,i,s]),c=t.util.array.min([e,i,s]);if(o=(a+c)/2,a===c)n=r=0;else{var l=a-c;switch(r=o>.5?l/(2-a-c):l/(a+c),a){case e:n=(i-s)/l+(i<s?6:0);break;case i:n=(s-e)/l+2;break;case s:n=(e-i)/l+4}n/=6}return[Math.round(360*n),Math.round(100*r),Math.round(100*o)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,s=this.getSource();return e=1===(e=s[0].toString(16)).length?"0"+e:e,t=1===(t=s[1].toString(16)).length?"0"+t:t,i=1===(i=s[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),s=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,s]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,s=[],n=this.getAlpha(),r=this.getSource(),o=e.getSource();for(t=0;t<3;t++)s.push(Math.round(.5*r[t]+.5*o[t]));return s[3]=n,this.setSource(s),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var s=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),n=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),r=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(s,10),parseInt(n,10),parseInt(r,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var n,r,o,a=(parseFloat(t[1])%360+360)%360/360,c=parseFloat(t[2])/(/%$/.test(t[2])?100:1),l=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===c)n=r=o=l;else{var h=l<=.5?l*(c+1):l+c-l*c,d=2*l-h;n=s(d,h,a+1/3),r=s(d,h,a),o=s(d,h,a-1/3)}return[Math.round(255*n),Math.round(255*r),Math.round(255*o),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),s=3===t.length||4===t.length,n=8===t.length||4===t.length,r=s?t.charAt(0)+t.charAt(0):t.substring(0,2),o=s?t.charAt(1)+t.charAt(1):t.substring(2,4),a=s?t.charAt(2)+t.charAt(2):t.substring(4,6),c=n?s?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(r,16),parseInt(o,16),parseInt(a,16),parseFloat((parseInt(c,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],s=["ns","nesw","ew","nwse"],n={},r="left",o="top",a="right",c="bottom",l="center",h={top:c,bottom:o,left:a,right:r,center:l},d=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var s=i.transform.target,n=s.canvas,r=t.util.object.clone(i);r.target=s,n&&n.fire("object:"+e,r),s.fire(e,i)}function m(e,t){var i=t.canvas,s=e[i.uniScaleKey];return i.uniformScaling&&!s||!i.uniformScaling&&s}function f(e){return e.originX===l&&e.originY===l}function _(e,t,i){var s=e.lockScalingX,n=e.lockScalingY;return!(!s||!n)||(!(t||!s&&!n||!i)||(!(!s||"x"!==t)||!(!n||"y"!==t)))}function v(e,t,i,s){return{e:e,transform:t,pointer:{x:i,y:s}}}function C(e){return function(t,i,s,n){var r=i.target,o=r.getCenterPoint(),a=r.translateToOriginPoint(o,i.originX,i.originY),c=e(t,i,s,n);return r.setPositionByOrigin(a,i.originX,i.originY),c}}function E(e,t){return function(i,s,n,r){var o=t(i,s,n,r);return o&&p(e,v(i,s,n,r)),o}}function b(e,i,s,n,r){var o=e.target,a=o.controls[e.corner],c=o.canvas.getZoom(),l=o.padding/c,h=o.toLocalPoint(new t.Point(n,r),i,s);return h.x>=l&&(h.x-=l),h.x<=-l&&(h.x+=l),h.y>=l&&(h.y-=l),h.y<=l&&(h.y+=l),h.x-=a.offsetX,h.y-=a.offsetY,h}function S(e){return e.flipX!==e.flipY}function y(e,t,i,s,n){if(0!==e[t]){var r=n/e._getTransformedDimensions()[s]*e[i];e.set(i,r)}}function w(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(0,l.skewY),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.x)-h.x,p=l.skewX;g<2?n=0:(n=d(Math.atan2(g/l.scaleX,h.y/l.scaleY)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().y;l.set("skewX",n),y(l,"skewY","scaleY","y",f)}return m}function R(e,t,i,s){var n,l=t.target,h=l._getTransformedDimensions(l.skewX,0),u=b(t,t.originX,t.originY,i,s),g=Math.abs(2*u.y)-h.y,p=l.skewY;g<2?n=0:(n=d(Math.atan2(g/l.scaleY,h.x/l.scaleX)),t.originX===r&&t.originY===c&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(l)&&(n=-n));var m=p!==n;if(m){var f=l._getTransformedDimensions().x;l.set("skewY",n),y(l,"skewX","scaleX","x",f)}return m}function L(e,t,i,s,n){n=n||{};var r,o,a,c,l,d,g=t.target,p=g.lockScalingX,v=g.lockScalingY,C=n.by,E=m(e,g),S=_(g,C,E),y=t.gestureScale;if(S)return!1;if(y)o=t.scaleX*y,a=t.scaleY*y;else{if(r=b(t,t.originX,t.originY,i,s),l="y"!==C?u(r.x):1,d="x"!==C?u(r.y):1,t.signX||(t.signX=l),t.signY||(t.signY=d),g.lockScalingFlip&&(t.signX!==l||t.signY!==d))return!1;if(c=g._getTransformedDimensions(),E&&!C){var w=Math.abs(r.x)+Math.abs(r.y),R=t.original,L=w/(Math.abs(c.x*R.scaleX/g.scaleX)+Math.abs(c.y*R.scaleY/g.scaleY));o=R.scaleX*L,a=R.scaleY*L}else o=Math.abs(r.x*g.scaleX/c.x),a=Math.abs(r.y*g.scaleY/c.y);f(t)&&(o*=2,a*=2),t.signX!==l&&"y"!==C&&(t.originX=h[t.originX],o*=-1,t.signX=l),t.signY!==d&&"x"!==C&&(t.originY=h[t.originY],a*=-1,t.signY=d)}var T=g.scaleX,x=g.scaleY;return C?("x"===C&&g.set("scaleX",o),"y"===C&&g.set("scaleY",a)):(!p&&g.set("scaleX",o),!v&&g.set("scaleY",a)),T!==g.scaleX||x!==g.scaleY}n.scaleCursorStyleHandler=function(e,t,s){var n=m(e,s),r="";if(0!==t.x&&0===t.y?r="x":0===t.x&&0!==t.y&&(r="y"),_(s,r,n))return"not-allowed";var o=g(s,t);return i[o]+"-resize"},n.skewCursorStyleHandler=function(e,t,i){var n="not-allowed";if(0!==t.x&&i.lockSkewingY)return n;if(0!==t.y&&i.lockSkewingX)return n;var r=g(i,t)%4;return s[r]+"-resize"},n.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?n.skewCursorStyleHandler(e,t,i):n.scaleCursorStyleHandler(e,t,i)},n.rotationWithSnapping=E("rotating",C((function(e,t,i,s){var n=t,r=n.target,o=r.translateToOriginPoint(r.getCenterPoint(),n.originX,n.originY);if(r.lockRotation)return!1;var a,c=Math.atan2(n.ey-o.y,n.ex-o.x),l=Math.atan2(s-o.y,i-o.x),h=d(l-c+n.theta);if(r.snapAngle>0){var u=r.snapAngle,g=r.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=r.angle!==h,r.angle=h,a}))),n.scalingEqually=E("scaling",C((function(e,t,i,s){return L(e,t,i,s)}))),n.scalingX=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"x"})}))),n.scalingY=E("scaling",C((function(e,t,i,s){return L(e,t,i,s,{by:"y"})}))),n.scalingYOrSkewingX=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerX(e,t,i,s):n.scalingY(e,t,i,s)},n.scalingXOrSkewingY=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerY(e,t,i,s):n.scalingX(e,t,i,s)},n.changeWidth=E("resizing",C((function(e,t,i,s){var n=t.target,r=b(t,t.originX,t.originY,i,s),o=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=f(t)?2:1,c=n.width,l=Math.abs(r.x*a/n.scaleX)-o;return n.set("width",Math.max(l,0)),c!==l}))),n.skewHandlerX=function(e,t,i,s){var n,c=t.target,h=c.skewX,d=t.originY;return!c.lockSkewingX&&(0===h?n=b(t,l,l,i,s).x>0?r:a:(h>0&&(n=d===o?r:a),h<0&&(n=d===o?a:r),S(c)&&(n=n===r?a:r)),t.originX=n,E("skewing",C(w))(e,t,i,s))},n.skewHandlerY=function(e,t,i,s){var n,a=t.target,h=a.skewY,d=t.originX;return!a.lockSkewingY&&(0===h?n=b(t,l,l,i,s).y>0?o:c:(h>0&&(n=d===r?o:c),h<0&&(n=d===r?c:o),S(a)&&(n=n===o?c:o)),t.originY=n,E("skewing",C(R))(e,t,i,s))},n.dragHandler=function(e,t,i,s){var n=t.target,r=i-t.offsetX,o=s-t.offsetY,a=!n.get("lockMovementX")&&n.left!==r,c=!n.get("lockMovementY")&&n.top!==o;return a&&n.set("left",r),c&&n.set("top",o),(a||c)&&p("moving",v(e,t,i,s)),a||c},n.scaleOrSkewActionName=function(e,t,i){var s=e[i.canvas.altActionKey];return 0===t.x?s?"skewX":"scaleY":0===t.y?s?"skewY":"scaleX":void 0},n.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},n.fireEvent=p,n.wrapWithFixedAnchor=C,n.wrapWithFireEvent=E,n.getLocalPoint=b,t.controlsUtils=n}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,s=t.controlsUtils;s.renderCircleControl=function(e,t,i,s,n){s=s||{};var r,o=this.sizeX||s.cornerSize||n.cornerSize,a=this.sizeY||s.cornerSize||n.cornerSize,c="undefined"!==typeof s.transparentCorners?s.transparentCorners:n.transparentCorners,l=c?"stroke":"fill",h=!c&&(s.cornerStrokeColor||n.cornerStrokeColor),d=t,u=i;e.save(),e.fillStyle=s.cornerColor||n.cornerColor,e.strokeStyle=s.cornerStrokeColor||n.cornerStrokeColor,o>a?(r=o,e.scale(1,a/o),u=i*o/a):a>o?(r=a,e.scale(o/a,1),d=t*a/o):r=o,e.lineWidth=1,e.beginPath(),e.arc(d,u,r/2,0,2*Math.PI,!1),e[l](),h&&e.stroke(),e.restore()},s.renderSquareControl=function(e,t,s,n,r){n=n||{};var o=this.sizeX||n.cornerSize||r.cornerSize,a=this.sizeY||n.cornerSize||r.cornerSize,c="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,l=c?"stroke":"fill",h=!c&&(n.cornerStrokeColor||r.cornerStrokeColor),d=o/2,u=a/2;e.save(),e.fillStyle=n.cornerColor||r.cornerColor,e.strokeStyle=n.cornerStrokeColor||r.cornerStrokeColor,e.lineWidth=1,e.translate(t,s),e.rotate(i(r.angle)),e[l+"Rect"](-d,-u,o,a),h&&e.strokeRect(-d,-u,o,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,s,n,r){var o,a,c,l,h=r?this.touchSizeX:this.sizeX,d=r?this.touchSizeY:this.sizeY;if(h&&d&&h!==d){var u=Math.atan2(d,h),g=Math.sqrt(h*h+d*d)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);o=g*t.util.cos(p),a=g*t.util.sin(p),c=g*t.util.cos(m),l=g*t.util.sin(m)}else{g=.7071067812*(h&&d?h:i);p=t.util.degreesToRadians(45-e);o=c=g*t.util.cos(p),a=l=g*t.util.sin(p)}return{tl:{x:s-l,y:n-c},tr:{x:s+o,y:n-a},bl:{x:s-o,y:n+a},br:{x:s+l,y:n+c}}},render:function(e,i,s,n,r){if("circle"===((n=n||{}).cornerStyle||r.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,s,n,r);else t.controlsUtils.renderSquareControl.call(this,e,i,s,n,r)}}}(t),function(){function e(e,t){var i,s,r,o,a=e.getAttribute("style"),c=e.getAttribute("offset")||0;if(c=(c=parseFloat(c)/(/%$/.test(c)?100:1))<0?0:c>1?1:c,a){var l=a.split(/\s*;\s*/);for(""===l[l.length-1]&&l.pop(),o=l.length;o--;){var h=l[o].split(/\s*:\s*/),d=h[0].trim(),u=h[1].trim();"stop-color"===d?i=u:"stop-opacity"===d&&(r=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),r||(r=e.getAttribute("stop-opacity")),s=(i=new n.Color(i)).getAlpha(),r=isNaN(parseFloat(r))?1:parseFloat(r),r*=s*t,{offset:c,color:i.toRgb(),opacity:r}}var t=n.util.object.clone;n.Gradient=n.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+n.Object.__uid++:this.id=n.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new n.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return n.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var s,r,o,a,c=t(this.coords,!0),l=(i=i||{},t(this.colorStops,!0)),h=c.r1>c.r2,d=this.gradientTransform?this.gradientTransform.concat():n.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(l.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),d[4]-=u,d[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+n.util.matrixToSVG(d)+'" ',"linear"===this.type?o=["<linearGradient ",a,' x1="',c.x1,'" y1="',c.y1,'" x2="',c.x2,'" y2="',c.y2,'">\n']:"radial"===this.type&&(o=["<radialGradient ",a,' cx="',h?c.x1:c.x2,'" cy="',h?c.y1:c.y2,'" r="',h?c.r1:c.r2,'" fx="',h?c.x2:c.x1,'" fy="',h?c.y2:c.y1,'">\n']),"radial"===this.type){if(h)for((l=l.concat()).reverse(),s=0,r=l.length;s<r;s++)l[s].offset=1-l[s].offset;var f=Math.min(c.r1,c.r2);if(f>0){var _=f/Math.max(c.r1,c.r2);for(s=0,r=l.length;s<r;s++)l[s].offset+=_*(1-l[s].offset)}}for(s=0,r=l.length;s<r;s++){var v=l[s];o.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return o.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),o.join("")},toLive:function(e){var t,i,s,r=n.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(t=e.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),i=0,s=this.colorStops.length;i<s;i++){var o=this.colorStops[i].color,a=this.colorStops[i].opacity,c=this.colorStops[i].offset;"undefined"!==typeof a&&(o=new n.Color(o).setAlpha(a).toRgba()),t.addColorStop(c,o)}return t}}}),n.util.object.extend(n.Gradient,{fromElement:function(t,i,s,r){var o=parseFloat(s)/(/%$/.test(s)?100:1);o=o<0?0:o>1?1:o,isNaN(o)&&(o=1);var a,c,l,h,d=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",c=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",c=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),l=d.length;l--;)p.push(e(d[l],o));return h=n.parseTransformAttribute(g),function(e,t,i,s){var n,r;Object.keys(t).forEach((function(e){"Infinity"===(n=t[e])?r=1:"-Infinity"===n?r=0:(r=parseFloat(t[e],10),"string"===typeof n&&/^(\d+\.\d+)%|(\d+)%$/.test(n)&&(r*=.01,"pixels"===s&&("x1"!==e&&"x2"!==e&&"r2"!==e||(r*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(r*=i.viewBoxHeight||i.height)))),t[e]=r}))}(0,c,r,u),"pixels"===u&&(m=-i.left,f=-i.top),new n.Gradient({id:t.getAttribute("id"),type:a,coords:c,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=n.util.toFixed;n.Pattern=n.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=n.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=n.util.createImage(),n.util.loadImage(e.source,(function(e,s){i.source=e,t&&t(i,s)}),null,this.crossOrigin)}},toObject:function(t){var i,s,r=n.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),s={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,r),offsetY:e(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},n.util.populateWithProperties(this,s,t),s},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,s=t.height/e.height,n=this.offsetX/e.width,r=this.offsetY/e.height,o="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(s=1,r&&(s+=Math.abs(r))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,n&&(i+=Math.abs(n))),t.src?o=t.src:t.toDataURL&&(o=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+r+'" width="'+i+'" height="'+s+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+o+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),s=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(s[1],10)||0,offsetY:parseFloat(s[2],10)||0,blur:parseFloat(s[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var s=40,n=40,r=t.Object.NUM_FRACTION_DIGITS,o=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(s=100*i((Math.abs(o.x)+this.blur)/e.width,r)+20,n=100*i((Math.abs(o.y)+this.blur)/e.height,r)+20),e.flipX&&(o.x*=-1),e.flipY&&(o.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+s+'%" width="'+(100+2*s)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,r)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(o.x,r)+'" dy="'+i(o.y,r)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(n.StaticCanvas)n.warn("fabric.StaticCanvas is already defined.");else{var e=n.util.object.extend,t=n.util.getElementOffset,i=n.util.removeFromArray,s=n.util.toFixed,r=n.util.transformPoint,o=n.util.invertTransform,a=n.util.getNodeCanvas,c=n.util.createCanvasElement,l=new Error("Could not initialize `canvas` element");n.StaticCanvas=n.util.createClass(n.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:n.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return n.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,n.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=n.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,s){return"string"===typeof t?n.util.loadImage(t,(function(t,r){if(t){var o=new n.Image(t,s);this[e]=o,o.canvas=this}i&&i(t,r)}),this,s&&s.crossOrigin):(s&&t.setOptions(s),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=c();if(!e)throw l;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw l;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=n.util.getById(e)||this._createCanvasElement(),n.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var s in t=t||{},e)i=e[s],t.cssOnly||(this._setBackstoreDimension(s,e[s]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(s,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,s,n=this._activeObject,r=this.backgroundImage,o=this.overlayImage;for(this.viewportTransform=e,i=0,s=this._objects.length;i<s;i++)(t=this._objects[i]).group||t.setCoords(!0);return n&&n.setCoords(),r&&r.setCoords(!0),o&&o.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,s=this.viewportTransform.slice(0);e=r(e,o(this.viewportTransform)),s[0]=t,s[3]=t;var n=r(e,s);return s[4]+=i.x-n.x,s[5]+=i.y-n.y,this.setViewportTransform(s)},setZoom:function(e){return this.zoomToPoint(new n.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new n.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=n.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,s=o(this.viewportTransform);return e.tl=r({x:0,y:0},s),e.br=r({x:t,y:i},s),e.tr=new n.Point(e.br.x,e.tl.y),e.bl=new n.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,s=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),n.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),s&&(s.canvas=this,s.shouldCache(),s._transformDone=!0,s.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,s;for(i=0,s=t.length;i<s;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],s=this[t+"Image"],n=this.viewportTransform,r=this[t+"Vpt"];if(i||s){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var o=i.gradientTransform||i.patternTransform;o&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.fill(),e.restore()}if(s){e.save();var a=this.skipOffscreen;this.skipOffscreen=r,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),s.render(e),this.skipOffscreen=a,e.restore()}}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new n.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new n.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new n.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=o(this.viewportTransform);return r(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var s=this.clipPath,r={version:n.version,objects:this._toObjects(t,i)};return s&&!s.excludeFromExport&&(r.clipPath=this._toObject(this.clipPath,t,i)),e(r,this.__serializeBgOverlay(t,i)),n.util.populateWithProperties(this,r,i),r},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var s;this.includeDefaultValues||(s=e.includeDefaultValues,e.includeDefaultValues=!1);var n=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=s),n},__serializeBgOverlay:function(e,t){var i={},s=this.backgroundImage,n=this.overlayImage,r=this.backgroundColor,o=this.overlayColor;return r&&r.toObject?r.excludeFromExport||(i.background=r.toObject(t)):r&&(i.background=r),o&&o.toObject?o.excludeFromExport||(i.overlay=o.toObject(t)):o&&(i.overlay=o),s&&!s.excludeFromExport&&(i.backgroundImage=this._toObject(s,e,t)),n&&!n.excludeFromExport&&(i.overlayImage=this._toObject(n,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,r=t.width||this.width,o=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',c=n.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+s(-i[4]/i[0],c)+" "+s(-i[5]/i[3],c)+" "+s(this.width/i[0],c)+" "+s(this.height/i[3],c)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',o,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",n.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+n.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var s=e[t+"Vpt"],r=e.viewportTransform,o={width:e.width/(s?r[0]:1),height:e.height/(s?r[3]:1)};return i.toSVG(o,{additionalTransform:s?n.util.matrixToSVG(r):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,s,r,o,a,c,l="",h={},d=n.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,c=u.length;a<c;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&d[t]&&(h[t]=!0,e.styles))for(r in i=e.styles)for(o in s=i[r])!h[t=s[o].fontFamily]&&d[t]&&(h[t]=!0);for(var g in h)l+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",d[g],"');\n","\t\t}\n"].join("");return l&&(l=['\t<style type="text/css">',"<![CDATA[\n",l,"]]>","</style>\n"].join("")),l},_setSVGObjects:function(e,t){var i,s,n,r=this._objects;for(s=0,n=r.length;s<n;s++)(i=r[s]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],s=this.viewportTransform,r=this.width,o=this.height;if(i)if(i.toLive){var a=i.repeat,c=n.util.invertTransform(s),l=this[t+"Vpt"]?n.util.matrixToSVG(c):"";e.push('<rect transform="'+l+" translate(",r/2,",",o/2,')"',' x="',i.offsetX-r/2,'" y="',i.offsetY-o/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:r,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:o,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(t=(n=r._objects).length;t--;)s=n[t],i(this._objects,s),this._objects.unshift(s);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=0;t<n.length;t++)s=n[t],i(this._objects,s),this._objects.push(s);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(a=c._objects,s=0;s<a.length;s++)n=a[s],(r=this._objects.indexOf(n))>0+l&&(o=r-1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else 0!==(r=this._objects.indexOf(e))&&(o=this._findNewLowerIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var s,n;if(i)for(s=t,n=t-1;n>=0;--n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t-1;return s},bringForward:function(e,t){if(!e)return this;var s,n,r,o,a,c=this._activeObject,l=0;if(e===c&&"activeSelection"===e.type)for(s=(a=c._objects).length;s--;)n=a[s],(r=this._objects.indexOf(n))<this._objects.length-1-l&&(o=r+1,i(this._objects,n),this._objects.splice(o,0,n)),l++;else(r=this._objects.indexOf(e))!==this._objects.length-1&&(o=this._findNewUpperIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var s,n,r;if(i)for(s=t,n=t+1,r=this._objects.length;n<r;++n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t+1;return s},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),n.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),n.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(n.StaticCanvas.prototype,n.Observable),e(n.StaticCanvas.prototype,n.Collection),e(n.StaticCanvas.prototype,n.DataURLExporter),e(n.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=c();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),n.StaticCanvas.prototype.toJSON=n.StaticCanvas.prototype.toObject,n.isLikelyNode&&(n.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},n.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),n.BaseBrush=n.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,s=e.getZoom();e&&e._isRetinaScaling()&&(s*=n.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*s,i.shadowOffsetX=t.offsetX*s,i.shadowOffsetY=t.offsetY*s}},needsFullRender:function(){return new n.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),n.PencilBrush=n.util.createClass(n.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var s=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,s.x,s.y),s},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,s=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[s-2],i[s-1],!0),n.stroke(),n.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new n.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new n.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,s=this._points[0],r=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&s.x===r.x&&s.y===r.y){var o=this.width/1e3;s=new n.Point(s.x,s.y),r=new n.Point(r.x,r.y),s.x-=o,r.x+=o}for(e.moveTo(s.x,s.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,s,r),s=this._points[t],r=this._points[t+1];e.lineTo(s.x,s.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return n.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===n.util.joinPath(e)},createPath:function(e){var t=new n.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new n.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,s=this.canvas.getZoom(),n=Math.pow(t/s,2),r=e.length-1,o=e[0],a=[o];for(i=1;i<r-1;i++)Math.pow(o.x-e[i].x,2)+Math.pow(o.y-e[i].y,2)>=n&&(o=e[i],a.push(o));return a.push(e[r]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),n.CircleBrush=n.util.createClass(n.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,s=this.points;for(this._saveAndTransform(i),e=0,t=s.length;e<t;e++)this.dot(i,s[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var s=[];for(e=0,t=this.points.length;e<t;e++){var r=this.points[e],o=new n.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&(o.shadow=new n.Shadow(this.shadow)),s.push(o)}var a=new n.Group(s);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new n.Point(e.x,e.y),i=n.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,s=new n.Color(this.color).setAlpha(n.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=s,this.points.push(t),t}}),n.SprayBrush=n.util.createClass(n.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,s=this.sprayChunks.length;i<s;i++)for(var r=this.sprayChunks[i],o=0,a=r.length;o<a;o++){var c=new n.Rect({width:r[o].width,height:r[o].width,left:r[o].x+1,top:r[o].y+1,originX:"center",originY:"center",fill:this.color});t.push(c)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var l=new n.Group(t);this.shadow&&l.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:l}),this.canvas.add(l),this.canvas.fire("path:created",{path:l}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,s,n={};for(i=0,s=e.length;i<s;i++)n[t=e[i].left+""+e[i].top]||(n[t]=e[i]);var r=[];for(t in n)r.push(n[t]);return r},render:function(e){var t,i,s=this.canvas.contextTop;for(s.fillStyle=this.color,this._saveAndTransform(s),t=0,i=e.length;t<i;t++){var n=e[t];"undefined"!==typeof n.opacity&&(s.globalAlpha=n.opacity),s.fillRect(n.x,n.y,n.width,n.width)}s.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,s,r,o=this.width/2;for(r=0;r<this.density;r++){t=n.util.getRandomInt(e.x-o,e.x+o),i=n.util.getRandomInt(e.y-o,e.y+o),s=this.dotWidthVariance?n.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new n.Point(t,i);a.width=s,this.randomOpacity&&(a.opacity=n.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),n.PatternBrush=n.util.createClass(n.PencilBrush,{getPatternSrc:function(){var e=n.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new n.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=n.util.getPointer,t=n.util.degreesToRadians,i=n.util.isTouchEvent;for(var s in n.Canvas=n.util.createClass(n.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=n.PencilBrush&&new n.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,s=this.getActiveObjects();if(s.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var n=0,r=this._objects.length;n<r;n++)e=this._objects[n],-1===s.indexOf(e)?t.push(e):i.push(e);s.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),s=n.util.invertTransform(i),r=this.restorePointerVpt(t);return n.util.transformPoint(r,s)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var s=this._normalizePointer(e,{x:t,y:i}),r=Math.max(e.cacheTranslationX+s.x*e.zoomX,0),o=Math.max(e.cacheTranslationY+s.y*e.zoomY,0);return n.util.isTransparent(e._cacheContext,Math.round(r),Math.round(o),this.targetFindTolerance)}var a=this.contextCache,c=e.selectionBackgroundColor,l=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),e.render(a),a.restore(),e.selectionBackgroundColor=c,n.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),s=this._activeObject;return!t||t&&s&&i.length>1&&-1===i.indexOf(t)&&s!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&s&&s!==t},_shouldCenterTransform:function(e,t,i){var s;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?s=this.centeredScaling||e.centeredScaling:"rotate"===t&&(s=this.centeredRotation||e.centeredRotation),s?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,s){if(!t||!e)return"drag";var n=s.controls[t];return n.getActionName(i,n,s)},_setupCurrentTransform:function(e,i,s){if(i){var r=this.getPointer(e),o=i.__corner,a=i.controls[o],c=s&&o?a.getActionHandler(e,i,a):n.controlsUtils.dragHandler,l=this._getActionFromCorner(s,o,e,i),h=this._getOriginFromCorner(i,o),d=e[this.centeredKey],u={target:i,action:l,actionHandler:c,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:r.x-i.left,offsetY:r.y-i.top,originX:h.x,originY:h.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:d,original:n.util.saveObjectTransform(i)};this._shouldCenterTransform(i,l,d)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new n.Point(t.ex,t.ey),s=n.util.transformPoint(i,this.viewportTransform),r=new n.Point(t.ex+t.left,t.ey+t.top),o=n.util.transformPoint(r,this.viewportTransform),a=Math.min(s.x,o.x),c=Math.min(s.y,o.y),l=Math.max(s.x,o.x),h=Math.max(s.y,o.y),d=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,c,l-a,h-c)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=d,c+=d,l-=d,h-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,c,l-a,h-c))},findTarget:function(e,t){if(!this.skipTargetFind){var s,n,r=this.getPointer(e,!0),o=this._activeObject,a=this.getActiveObjects(),c=i(e),l=a.length>1&&!t||1===a.length;if(this.targets=[],l&&o._findTargetCorner(r,c))return o;if(a.length>1&&!t&&o===this._searchPossibleTargets([o],r))return o;if(1===a.length&&o===this._searchPossibleTargets([o],r)){if(!this.preserveObjectStacking)return o;s=o,n=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,r);return e[this.altSelectionKey]&&h&&s&&h!==s&&(h=s,this.targets=n),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,s,r=e.length;r--;){var o=e[r],a=o.group?this._normalizePointer(o.group,t):t;if(this._checkTarget(a,o,t)){(i=e[r]).subTargetCheck&&i instanceof n.Group&&(s=this._searchPossibleTargets(i._objects,t))&&this.targets.push(s);break}}return i},restorePointerVpt:function(e){return n.util.transformPoint(e,n.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var s,n=e(t),r=this.upperCanvasEl,o=r.getBoundingClientRect(),a=o.width||0,c=o.height||0;a&&c||("top"in o&&"bottom"in o&&(c=Math.abs(o.top-o.bottom)),"right"in o&&"left"in o&&(a=Math.abs(o.right-o.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var l=this.getRetinaScaling();return 1!==l&&(n.x/=l,n.y/=l),s=0===a||0===c?{width:1,height:1}:{width:r.width/a,height:r.height/c},{x:n.x*s.width,y:n.y*s.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),n.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=n.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),n.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),n.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;n.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,n.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,s=this.getActiveObjects(),n=[],r=[];e.forEach((function(e){-1===s.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),r.push(e))})),s.forEach((function(s){-1===e.indexOf(s)&&(i=!0,s.fire("selected",{e:t,target:s}),n.push(s))})),e.length>0&&s.length>0?i&&this.fire("selection:updated",{e:t,selected:n,deselected:r}):s.length>0?this.fire("selection:created",{e:t,selected:n}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:r})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,n.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(e),n=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,s),n},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),n.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,s)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),n.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),n.StaticCanvas)"prototype"!==s&&(n.Canvas[s]=n.StaticCanvas[s])}(),function(){var e=n.util.addListener,t=n.util.removeListener,i={passive:!1};function s(e,t){return e.button&&e.button===t-1}n.util.object.extend(n.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var s=this.upperCanvasEl,r=this._getEventPrefix();e(n.window,"resize",this._onResize),e(s,r+"down",this._onMouseDown),e(s,r+"move",this._onMouseMove,i),e(s,r+"out",this._onMouseOut),e(s,r+"enter",this._onMouseEnter),e(s,"wheel",this._onMouseWheel),e(s,"contextmenu",this._onContextMenu),e(s,"dblclick",this._onDoubleClick),e(s,"dragover",this._onDragOver),e(s,"dragenter",this._onDragEnter),e(s,"dragleave",this._onDragLeave),e(s,"drop",this._onDrop),this.enablePointerEvents||e(s,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](s,"gesture",this._onGesture),eventjs[t](s,"drag",this._onDrag),eventjs[t](s,"orientation",this._onOrientationChange),eventjs[t](s,"shake",this._onShake),eventjs[t](s,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(n.document,e+"up",this._onMouseUp),t(n.document,"touchend",this._onTouchEnd,i),t(n.document,e+"move",this._onMouseMove,i),t(n.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(t){i.fire("mouse:out",{target:t,e:e}),t&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(s){s.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(s)),this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();e(n.document,"touchend",this._onTouchEnd,i),e(n.document,"touchmove",this._onMouseMove,i),t(r,o+"down",this._onMouseDown)},_onMouseDown:function(s){this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();t(r,o+"move",this._onMouseMove,i),e(n.document,o+"up",this._onMouseUp),e(n.document,o+"move",this._onMouseMove,i)},_onTouchEnd:function(s){if(!(s.touches.length>0)){this.__onMouseUp(s),this._resetTransformEventData(),this.mainTouchId=null;var r=this._getEventPrefix();t(n.document,"touchend",this._onTouchEnd,i),t(n.document,"touchmove",this._onMouseMove,i);var o=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(o.upperCanvasEl,r+"down",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(s){this.__onMouseUp(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(s)&&(t(n.document,o+"up",this._onMouseUp),t(n.document,o+"move",this._onMouseMove,i),e(r,o+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,r=this._groupSelector,o=!1,a=!r||0===r.left&&0===r.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),s(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(s(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),o=i.actionPerformed),!a){var c=t===this._activeObject;this._maybeGroupObjects(e),o||(o=this._shouldRender(t)||!c&&t===this._activeObject)}var l,h;if(t){if(l=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),o=!0;else{var d=t.controls[l],u=d&&d.getMouseUpHandler(e,t,d);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==l)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,d);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),o?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),s=this.targets,n={e:t,target:i,subTargets:s};if(this.fire(e,n),i&&i.fire(e,n),!s)return i;for(var r=0;r<s.length;r++)s[r].fire(e,n);return i},_handleEvent:function(e,t,i,s){var n=this._target,r=this.targets||[],o={e:e,target:n,subTargets:r,button:i||1,isClick:s||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(o.currentTarget=this.findTarget(e),o.currentSubTargets=this.targets),this.fire("mouse:"+t,o),n&&n.fire("mouse"+t,o);for(var a=0;a<r.length;a++)r[a].fire("mouse"+t,o)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,s={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",s)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(s(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(s(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var r=this._shouldRender(t),o=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):o&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var c=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=c,t===this._activeObject&&(c||!o)){this._setupCurrentTransform(e,t,a);var l=t.controls[c],h=(i=this.getPointer(e),l&&l.getMouseDownHandler(e,t,l));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(r||o)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var s=this._groupSelector;s?(i=this._absolutePointer,s.left=i.x-s.ex,s.top=i.y-s.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var s,n,r,o=i.oldTarget,a=o!==e,c=i.canvasEvtIn,l=i.canvasEvtOut;a&&(s={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),r=e&&a,o&&a&&(l&&this.fire(l,n),o.fire(i.evtOut,n)),r&&(c&&this.fire(c,s),e.fire(i.evtIn,s))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var s=i.x,n=i.y,r=t.action,o=!1,a=t.actionHandler;a&&(o=a(e,t,s,n)),"drag"===r&&o&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||o},_fire:n.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,s=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,n=(!s||!s.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));n?this.setCursor(this.getCornerCursor(n,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var s=t.controls[e];return s.cursorStyleHandler(i,s,t)}})}(),function(){var e=Math.min,t=Math.max;n.util.object.extend(n.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,s=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(s,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),s=this._createGroup(e);this._hoveredTarget=s,this._setActiveObject(s,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new n.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new n.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var s,r=[],o=this._groupSelector.ex,a=this._groupSelector.ey,c=o+this._groupSelector.left,l=a+this._groupSelector.top,h=new n.Point(e(o,c),e(a,l)),d=new n.Point(t(o,c),t(a,l)),u=!this.selectionFullyContained,g=o===c&&a===l,p=this._objects.length;p--&&!((s=this._objects[p])&&s.selectable&&s.visible&&(u&&s.intersectsWithRect(h,d,!0)||s.isContainedWithinRect(h,d,!0)||u&&s.containsPoint(h,null,!0)||u&&s.containsPoint(d,null,!0))&&(r.push(s),g)););return r.length>1&&(r=r.filter((function(e){return!e.onSelect({e:i})}))),r},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),n.util.object.extend(n.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,s=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),r=this.toCanvasElement(s,e);return n.util.toDataURL(r,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,s=(t.height||this.height)*e,r=this.getZoom(),o=this.width,a=this.height,c=r*e,l=this.viewportTransform,h=(l[4]-(t.left||0))*e,d=(l[5]-(t.top||0))*e,u=this.interactive,g=[c,0,0,c,h,d],p=this.enableRetinaScaling,m=n.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=s,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=s,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=l,this.width=o,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),n.util.object.extend(n.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var s="string"===typeof e?JSON.parse(e):n.util.object.clone(e),r=this,o=s.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete s.clipPath,this._enlivenObjects(s.objects,(function(e){r.clear(),r._setBgOverlay(s,(function(){o?r._enlivenObjects([o],(function(i){r.clipPath=i[0],r.__setupCanvas.call(r,s,e,a,t)})):r.__setupCanvas.call(r,s,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,s){var n=this;t.forEach((function(e,t){n.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),s&&s()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var s=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,s),this.__setBgOverlay("overlayImage",e.overlayImage,i,s),this.__setBgOverlay("backgroundColor",e.background,i,s),this.__setBgOverlay("overlayColor",e.overlay,i,s)}else t&&t()},__setBgOverlay:function(e,t,i,s){var r=this;if(!t)return i[e]=!0,void(s&&s());"backgroundImage"===e||"overlayImage"===e?n.util.enlivenObjects([t],(function(t){r[e]=t[0],i[e]=!0,s&&s()})):this["set"+n.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,s&&s()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(s){i(s.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=n.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new n.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.string.capitalize,o=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,s=e.width,n=e.height,r=t.maxCacheSideLimit,o=t.minCacheSideLimit;if(s<=r&&n<=r&&s*n<=i)return s<o&&(e.width=o),n<o&&(e.height=o),e;var a=s/n,c=t.util.limitDimsByArea(a,i),l=t.util.capValue,h=l(o,c.x,r),d=l(o,c.y,r);return s>h&&(e.zoomX/=s/h,e.width=h,e.capped=!0),n>d&&(e.zoomY/=n/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,s=t.y*e.scaleY/this.scaleY;return{width:Math.ceil(i+2),height:Math.ceil(s+2),zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:s}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var t=e._currentTransform.target,i=e._currentTransform.action;if(this===t&&i.slice&&"scale"===i.slice(0,5))return!1}var s,n,r=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),a=o.width,c=o.height,l=o.zoomX,h=o.zoomY,d=a!==this.cacheWidth||c!==this.cacheHeight,u=this.zoomX!==l||this.zoomY!==h;return!(!d&&!u)&&(d?(r.width=a,r.height=c):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=o.x/2,n=o.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-n)+n,this.cacheWidth=a,this.cacheHeight=c,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(l,h),this.zoomX=l,this.zoomY=h,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,s={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(s.clipPath=this.clipPath.toObject(e),s.clipPath.inverted=this.clipPath.inverted,s.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,s,e),this.includeDefaultValues||(s=this._removeDefaultValues(s)),s},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+r(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var s=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();t*=s*n,i*=s*n}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var s="scaleX"===e||"scaleY"===e,n=this[e]!==i,r=!1;return s&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,n&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var s=t.util.invertTransform(this.calcTransformMatrix());e.transform(s[0],s[1],s[2],s[3],s[4],s[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,s=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=s},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var s,n,r,a=this.getViewportTransform(),c=this.calcTransformMatrix();n="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,c=t.util.multiplyTransformMatrices(a,c),s=t.util.qrDecompose(c),e.save(),e.translate(s.translateX,s.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(s.angle-=180),e.rotate(o(this.group?s.angle:this.angle)),i.forActiveSelection||this.group?n&&this.drawBordersInGroup(e,s,i):n&&this.drawBorders(e,i),r&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,s=this.shadow,n=this.canvas,r=n&&n.viewportTransform[0]||1,o=n&&n.viewportTransform[3]||1;i=s.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n&&n._isRetinaScaling()&&(r*=t.devicePixelRatio,o*=t.devicePixelRatio),e.shadowColor=s.color,e.shadowBlur=s.blur*t.browserShadowBlurConstant*(r+o)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=s.offsetX*r*i.scaleX,e.shadowOffsetY=s.offsetY*o*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,s=-this.width/2+t.offsetX||0,n=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,s,n):e.transform(1,0,0,1,s,n),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:s,offsetY:n}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var s,n=this._limitCacheSize(this._getCacheCanvasDimensions()),r=t.util.createCanvasElement(),o=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/o,c=n.y/this.scaleY/o;r.width=Math.ceil(a),r.height=Math.ceil(c),(s=r.getContext("2d")).beginPath(),s.moveTo(0,0),s.lineTo(a,0),s.lineTo(a,c),s.lineTo(0,c),s.closePath(),s.translate(a/2,c/2),s.scale(n.zoomX/this.scaleX/o,n.zoomY/this.scaleY/o),this._applyPatternGradientTransform(s,i),s.fillStyle=i.toLive(e),s.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(o*this.scaleX/n.zoomX,o*this.scaleY/n.zoomY),e.strokeStyle=s.createPattern(r,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var s=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(s,e):t.Object._fromObject("Object",s,e)},cloneAsImage:function(e,i){var s=this.toCanvasElement(i);return e&&e(new t.Image(s)),this},toCanvasElement:function(e){e||(e={});var i=t.util,s=i.saveObjectTransform(this),n=this.group,r=this.shadow,o=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var c,l,h,d,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(l=p.blur,c=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(o(p.offsetX)+l)*o(c.scaleX),m.y=2*Math.round(o(p.offsetY)+l)*o(c.scaleY)),h=g.width+m.x,d=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(d);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=r,this.set("canvas",_),n&&(this.group=n),this.set(s).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var s=new t.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle&&(s=t.util.rotatePoint(s,n,o(-this.angle))),{x:s.x-n.x,y:s.y-n.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,n,r){var o=t[e];i=s(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=r?new o(i[r],i):new o(i);n&&n(e)}))}))},t.Object.__uid=0)}(t),function(){var e=n.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};n.util.object.extend(n.Object.prototype,{translateToGivenOrigin:function(e,s,r,o,a){var c,l,h,d=e.x,u=e.y;return"string"===typeof s?s=t[s]:s-=.5,"string"===typeof o?o=t[o]:o-=.5,"string"===typeof r?r=i[r]:r-=.5,"string"===typeof a?a=i[a]:a-=.5,l=a-r,((c=o-s)||l)&&(h=this._getTransformedDimensions(),d=e.x+c*h.x,u=e.y+l*h.y),new n.Point(d,u)},translateToCenterPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,i,s,"center","center");return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},translateToOriginPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,"center","center",i,s);return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},getCenterPoint:function(){var e=new n.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,s){var r,o,a=this.getCenterPoint();return r="undefined"!==typeof i&&"undefined"!==typeof s?this.translateToGivenOrigin(a,"center","center",i,s):new n.Point(this.left,this.top),o=new n.Point(t.x,t.y),this.angle&&(o=n.util.rotatePoint(o,a,-e(this.angle))),o.subtractEquals(r)},setPositionByOrigin:function(e,t,i){var s=this.translateToCenterPoint(e,t,i),n=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",n.x),this.set("top",n.y)},adjustPosition:function(i){var s,r,o=e(this.angle),a=this.getScaledWidth(),c=n.util.cos(o)*a,l=n.util.sin(o)*a;s="string"===typeof this.originX?t[this.originX]:this.originX-.5,r="string"===typeof i?t[i]:i-.5,this.left+=c*(r-s),this.top+=l*(r-s),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=n.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,s=e.transformPoint;e.object.extend(n.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new n.Point(i.tl.x,i.tl.y),new n.Point(i.tr.x,i.tr.y),new n.Point(i.br.x,i.br.y),new n.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,s){var r=this.getCoords(i,s);return"Intersection"===n.Intersection.intersectPolygonRectangle(r,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===n.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var s=this.getCoords(t,i),n=t?e.aCoords:e.lineCoords,r=0,o=e._getImageLines(n);r<4;r++)if(!e.containsPoint(s[r],o))return!1;return!0},isContainedWithinRect:function(e,t,i,s){var n=this.getBoundingRect(i,s);return n.left>=e.x&&n.left+n.width<=t.x&&n.top>=e.y&&n.top+n.height<=t.y},containsPoint:function(e,t,i,s){var n=this._getCoords(i,s),r=(t=t||this._getImageLines(n),this._findCrossPoints(e,t));return 0!==r&&r%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var s={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(s,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,s,n,r=0;for(var o in t)if(!((n=t[o]).o.y<e.y&&n.d.y<e.y)&&!(n.o.y>=e.y&&n.d.y>=e.y)&&(n.o.x===n.d.x&&n.o.x>=e.x?s=n.o.x:(i=(n.d.y-n.o.y)/(n.d.x-n.o.x),s=-(e.y-0*e.x-(n.o.y-i*n.o.x))/(0-i)),s>=e.x&&(r+=1),2===r))break;return r},getBoundingRect:function(t,i){var s=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(s)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,r=t(this.angle),o=e.cos(r)*n,a=e.sin(r)*n,c=o+a,l=o-a,h=this.calcACoords(),d={tl:s(h.tl,i),tr:s(h.tr,i),bl:s(h.bl,i),br:s(h.br,i)};return n&&(d.tl.x-=l,d.tl.y-=c,d.tr.x+=c,d.tr.y-=l,d.bl.x-=c,d.bl.y+=l,d.br.x+=l,d.br.y+=c),d},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=this.getViewportTransform(),n=i(s,t),r=i(n,e),o=(r=i(r,[1/s[0],0,0,1/s[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(o,r,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=i(t,e),r=this._getTransformedDimensions(),o=r.x/2,a=r.y/2;return{tl:s({x:-o,y:-a},n),tr:s({x:o,y:-a},n),bl:s({x:-o,y:a},n),br:s({x:o,y:a},n)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var s=this.transformMatrixKey(e),n=this.matrixCache||(this.matrixCache={});return n.key===s?n.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),n.key=s,n.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var s=this._calcTranslateMatrix(),n={angle:this.angle,translateX:s[4],translateY:s[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(n),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var s,n,r,o=0===t&&0===i;if(this.strokeUniform?(n=this.width,r=this.height):(n=(s=this._getNonTransformedDimensions()).x,r=s.y),o)return this._finalizeDimensions(n*this.scaleX,r*this.scaleY);var a=e.sizeAfterTransform(n,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return s(t,e,!0).scalarAdd(2*this.padding)}})}(),n.util.object.extend(n.Object.prototype,{sendToBack:function(){return this.group?n.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?n.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?n.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?n.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?n.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new n.Color(t),s=e+": "+i.toRgb()+"; ",r=i.getAlpha();return 1!==r&&(s+=e+"-opacity: "+r.toString()+"; "),s}return e+": none; "}var t=n.util.toFixed;n.util.object.extend(n.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",s=this.strokeWidth?this.strokeWidth:"0",n=this.strokeDashArray?this.strokeDashArray.join(" "):"none",r=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",c=this.strokeMiterLimit?this.strokeMiterLimit:"4",l="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",d=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",s,"; ","stroke-dasharray: ",n,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",c,"; ",u,"fill-rule: ",i,"; ","opacity: ",l,";",d,h].join("")},getSvgSpanStyles:function(t,i){var s="; ",n=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+s:"",r=t.strokeWidth?"stroke-width: "+t.strokeWidth+s:"",o=(n=n,t.fontSize?"font-size: "+t.fontSize+"px"+s:""),a=t.fontStyle?"font-style: "+t.fontStyle+s:"",c=t.fontWeight?"font-weight: "+t.fontWeight+s:"",l=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",d=this.getSvgTextDecoration(t);return d&&(d="text-decoration: "+d+s),[h,r,n,o,a,c,d,l,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+n.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=n.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,s=t.additionalTransform||"",n=[this.getSvgTransform(!0,s),this.getSvgCommons()].join(""),r=e.indexOf("COMMON_PARTS");return e[r]=n,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,s,r=(t=t||{}).noStyle,o=t.reviver,a=r?"":'style="'+this.getSvgStyles()+'" ',c=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",l=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=l&&l.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return l&&(l.clipPathId="CLIPPATH_"+n.Object.__uid++,s='<clipPath id="'+l.clipPathId+'" >\n'+l.toClipPathSVG(o)+"</clipPath>\n"),d&&m.push("<g ",c,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),d?"":c+this.getSvgCommons()," >\n"),i=[a,h,r?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),l&&m.push(s),m.push(e.join("")),m.push("</g>\n"),d&&m.push("</g>\n"),o?o(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=n.util.object.extend,t="stateProperties";function i(t,i,s){var n={};s.forEach((function(e){n[e]=t[e]})),e(t[i],n,!0)}function s(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!s(e[n],t[n]))return!1;return!0}if(e&&"object"===typeof e){var o,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(n=0,r=a.length;n<r;n++)if("canvas"!==(o=a[n])&&"group"!==o&&!s(e[o],t[o]))return!1;return!0}}n.util.object.extend(n.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!s(this[i],this,!0)},saveState:function(e){var s=e&&e.propertySet||t,n="_"+s;return this[n]?(i(this,n,this[s]),e&&e.stateProperties&&i(this,n,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=n.util.degreesToRadians;n.util.object.extend(n.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,s,n,r=e.x,o=e.y,a=Object.keys(this.oCoords),c=a.length-1;for(this.__corner=0;c>=0;c--)if(n=a[c],this.isControlVisible(n)&&(s=this._getImageLines(t?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:r,y:o},s))&&i%2===1))return this.__corner=n,n;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),s=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/n[0],1/n[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-s.x/2,-s.y/2,s.x,s.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),s=this.borderScaleFactor,n=i.x+s,r=i.y+s,o="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-n/2,-r/2,n,r),o&&(e.beginPath(),this.forEachControl((function(t,i,s){t.withConnection&&t.getVisibility(s,i)&&(a=!0,e.moveTo(t.x*n,t.y*r),e.lineTo(t.x*n+t.offsetX,t.y*r+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var s=n.util.sizeAfterTransform(this.width,this.height,t),r=this.strokeWidth,o=this.strokeUniform,a=this.borderScaleFactor,c=s.x+r*(o?this.canvas.getZoom():t.scaleX)+a,l=s.y+r*(o?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-c/2,-l/2,c,l),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,s,r=1;return this.canvas&&(r=this.canvas.getRetinaScaling()),e.setTransform(r,0,0,r,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(r,o,a){s=a.oCoords[o],r.getVisibility(a,o)&&(i&&(s=n.util.transformPoint(s,i)),r.render(e,s.x,s.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),n.util.object.extend(n.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxCenterObjectV:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxRemove:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),o.requestRenderAll(),r()},onComplete:function(){o.remove(e),s()}})}}),n.util.object.extend(n.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],s=[];for(e in arguments[0])i.push(e);for(var n=0,r=i.length;n<r;n++)e=i[n],t=n!==r-1,s.push(this._animate(e,arguments[0][e],arguments[1],t));return s}return this._animate.apply(this,arguments)},_animate:function(e,t,i,s){var r,o=this;t=t.toString(),i=i?n.util.object.clone(i):{},~e.indexOf(".")&&(r=e.split("."));var a=o.colorProperties.indexOf(e)>-1||r&&o.colorProperties.indexOf(r[1])>-1,c=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=c),a||(t=~t.indexOf("=")?c+parseFloat(t.replace("=","")):parseFloat(t));var l={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,s){return i.abort.call(o,e,t,s)},onChange:function(t,n,a){r?o[r[0]][r[1]]=t:o.set(e,t),s||i.onChange&&i.onChange(t,n,a)},onComplete:function(e,t,n){s||(o.setCoords(),i.onComplete&&i.onComplete(e,t,n))}};return a?n.util.animateColor(l.startValue,l.endValue,l.duration,l):n.util.animate(l)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function r(e,t){var i=e.origin,s=e.axis1,n=e.axis2,r=e.dimension,o=t.nearest,a=t.center,c=t.farthest;return function(){switch(this.get(i)){case o:return Math.min(this.get(s),this.get(n));case a:return Math.min(this.get(s),this.get(n))+.5*this.get(r);case c:return Math.max(this.get(s),this.get(n))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof n[e]&&this._setWidthHeight(),this},_getLeftToOriginX:r({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:r({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,s=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:s,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,s,n){n=n||{};var r=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),o=[r.x1||0,r.y1||0,r.x2||0,r.y2||0];s(new t.Line(o,i(r,n)))},t.Line.fromObject=function(e,i){var n=s(e,!0);n.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",n,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,s=(this.endAngle-this.startAngle)%360;if(0===s)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var n=i(this.startAngle),r=i(this.endAngle),o=this.radius;e=['<path d="M '+t.util.cos(n)*o+" "+t.util.sin(n)*o," A "+o+" "+o," 0 ",+(s>180?"1":"0")+" 1"," "+t.util.cos(r)*o+" "+t.util.sin(r)*o,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var s,n=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(s=n)&&s.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new t.Circle(n))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var s=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);s.left=(s.left||0)-s.rx,s.top=(s.top||0)-s.ry,i(new t.Ellipse(s))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,n=this.height,r=-this.width/2,o=-this.height/2,a=0!==t||0!==i,c=.4477152502;e.beginPath(),e.moveTo(r+t,o),e.lineTo(r+s-t,o),a&&e.bezierCurveTo(r+s-c*t,o,r+s,o+c*i,r+s,o+i),e.lineTo(r+s,o+n-i),a&&e.bezierCurveTo(r+s,o+n-c*i,r+s-c*t,o+n,r+s-t,o+n),e.lineTo(r+t,o+n),a&&e.bezierCurveTo(r+c*t,o+n,r,o+n-c*i,r,o+n-i),e.lineTo(r,o+i),a&&e.bezierCurveTo(r,o+c*i,r+c*t,o,r+t,o),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,s,n){if(!e)return s(null);n=n||{};var r=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);r.left=r.left||0,r.top=r.top||0,r.height=r.height||0,r.width=r.width||0;var o=new t.Rect(i(n?t.util.object.clone(n):{},r));o.visible=o.visible&&o.width>0&&o.height>0,s(o)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.array.min,n=t.util.array.max,r=t.util.toFixed,o=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return o(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),s=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-s,this.height=i.height-s,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+s/2,y:i.top-this.strokeWidth/2+s/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+s/2,y:i.top+this.height/2+s/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=s(e,"x")||0,i=s(e,"y")||0;return{left:t,top:i,width:(n(e,"x")||0)-t,height:(n(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,s=this.pathOffset.y,n=t.Object.NUM_FRACTION_DIGITS,o=0,a=this.points.length;o<a;o++)e.push(r(this.points[o].x-i,n),",",r(this.points[o].y-s,n)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,s=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-s,this.points[0].y-n);for(var r=0;r<i;r++)t=this.points[r],e.lineTo(t.x-s,t.y-n);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(s,n,r){if(!s)return n(null);r||(r={});var o=t.parsePointsAttribute(s.getAttribute("points")),a=t.parseAttributes(s,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new t[e](o,i(a,r)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max,n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=r(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,s=0,n=0,r=0,o=0,a=0,c=-this.pathOffset.x,l=-this.pathOffset.y;e.beginPath();for(var h=0,d=this.path.length;h<d;++h)switch((t=this.path[h])[0]){case"L":n=t[1],r=t[2],e.lineTo(n+c,r+l);break;case"M":i=n=t[1],s=r=t[2],e.moveTo(n+c,r+l);break;case"C":n=t[5],r=t[6],o=t[3],a=t[4],e.bezierCurveTo(t[1]+c,t[2]+l,o+c,a+l,n+c,r+l);break;case"Q":e.quadraticCurveTo(t[1]+c,t[2]+l,t[3]+c,t[4]+l),n=t[3],r=t[4],o=t[1],a=t[2];break;case"z":case"Z":n=i,r=s,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return n(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+o(-this.pathOffset.x,e)+", "+o(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,n,r=[],o=[],a=0,c=0,l=0,h=0,d=0,u=this.path.length;d<u;++d){switch((e=this.path[d])[0]){case"L":l=e[1],h=e[2],n=[];break;case"M":a=l=e[1],c=h=e[2],n=[];break;case"C":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[3],e[4],e[5],e[6]),l=e[5],h=e[6];break;case"Q":n=t.util.getBoundsOfCurve(l,h,e[1],e[2],e[1],e[2],e[3],e[4]),l=e[3],h=e[4];break;case"z":case"Z":l=a,h=c}n.forEach((function(e){r.push(e.x),o.push(e.y)})),r.push(l),o.push(h)}var g=i(r)||0,p=i(o)||0;return{left:g,top:p,width:(s(r)||0)-g,height:(s(o)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var s=e.sourcePath;t.loadSVGFromURL(s,(function(s){var n=s[0];n.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){n.clipPath=e[0],i&&i(n)})):i&&i(n)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,s){var r=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);r.fromSVG=!0,i(new t.Path(r.d,n(r,s)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;if(i)this._updateObjectsACoords();else{var n=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,s=e.top;e.set({left:i-t.x,top:s-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(e,i);if("canvas"===e)for(;s--;)this._objects[s]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,s=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var s=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toObject(e);return t.includeDefaultValues=s,n})),n=t.Object.prototype.toObject.call(this,e);return n.objects=s,n},toDatalessObject:function(e){var i,s=this.sourcePath;if(s)i=s;else{var n=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=n;var s=t.toDatalessObject(e);return t.includeDefaultValues=i,s}))}var r=t.Object.prototype.toDatalessObject.call(this,e);return r.objects=i,r},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,s=this._objects.length;i<s;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var s=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-s/2,-n/2,s,n)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var n=new t.ActiveSelection([]);return n.set(s),n.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=n,e.dirty=!0,i.add(e)})),n.canvas=i,n._objects=e,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,s,n,r=[],o=[],a=["tr","br","bl","tl"],c=0,l=this._objects.length,h=a.length;c<l;++c){for(s=(t=this._objects[c]).calcACoords(),n=0;n<h;n++)i=a[n],r.push(s[i].x),o.push(s[i].y);t.aCoords=s}this._getBounds(r,o,e)},_getBounds:function(e,n,r){var o=new t.Point(i(e),i(n)),a=new t.Point(s(e),s(n)),c=o.y||0,l=o.x||0,h=a.x-o.x||0,d=a.y-o.y||0;this.width=h,this.height=d,r||this.setPositionByOrigin({x:l,y:c},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,s=this._objects.length;i<s;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,s=this._objects.length;i<s;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var s=e.objects,n=t.util.object.clone(e,!0);delete n.objects,"string"!==typeof s?t.util.enlivenObjects(s,(function(s){t.util.enlivenObjectEnlivables(e,n,(function(){i&&i(new t.Group(s,n,!0))}))})):t.loadSVGFromURL(s,(function(r){var o=t.util.groupSVGElements(r,e,s),a=n.clipPath;delete n.clipPath,o.set(n),a?t.util.enlivenObjects([a],(function(e){o.clipPath=e[0],i&&i(o)})):i&&i(o)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),s=new t.Group([]);if(delete i.type,s.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=s})),s._objects=e,!this.canvas)return s;var n=this.canvas;return n.add(s),n._activeObject=s,s.setCoords(),s},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var s=0,n=this._objects.length;s<n;s++)this._objects[s]._renderControls(e,i);this.callSuper("_renderControls",e,t),e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(s){delete e.objects,i&&i(new t.ActiveSelection(s,e,!0))}))})}(t),function(e){"use strict";var t=n.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?n.warn("fabric.Image is already defined."):(n.Image=n.util.createClass(n.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:n.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:n.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+n.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=n.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var s=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(s.resizeFilter=this.resizeFilter.toObject()),s},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],s=this._element,r=-this.width/2,o=-this.height/2,a="",c="";if(!s)return[];if(this.hasCrop()){var l=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+l+'">\n','\t<rect x="'+r+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+l+')" '}if(this.imageSmoothing||(c='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',r-this.cropX,'" y="',o-this.cropY,'" width="',s.width||s.naturalWidth,'" height="',s.height||s.height,c,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',r,'" y="',o,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return n.util.loadImage(e,(function(e,s){this.setElement(e,i),this._setWidthHeight(),t&&t(this,s)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),s=i.scaleX,r=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||s>t&&r>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=s,void(this._lastScaleY=r);n.filterBackend||(n.filterBackend=n.initFilterBackend());var a=n.util.createCanvasElement(),c=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,l=o.width,h=o.height;a.width=l,a.height=h,this._element=a,this._lastScaleX=e.scaleX=s,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],o,l,h,this._element,c),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,s=t.naturalHeight||t.height;if(this._element===this._originalElement){var r=n.util.createCanvasElement();r.width=i,r.height=s,this._element=r,this._filteredEl=r}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,s),this._lastScaleX=1,this._lastScaleY=1;return n.filterBackend||(n.filterBackend=n.initFilterBackend()),n.filterBackend.applyFilters(e,this._originalElement,i,s,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),n.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,s=this._filterScalingY,n=this.width,r=this.height,o=Math.min,a=Math.max,c=a(this.cropX,0),l=a(this.cropY,0),h=t.naturalWidth||t.width,d=t.naturalHeight||t.height,u=c*i,g=l*s,p=o(n*i,h-u),m=o(r*s,d-g),f=-n/2,_=-r/2,v=o(n,h/i-c),C=o(r,d/s-l);t&&e.drawImage(t,u,g,p,m,f,_,v,C)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(n.util.getById(e),t),n.util.addClass(this.getElement(),n.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=n.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,s=this._element.height,r=1,o=1,a=0,c=0,l=0,h=0,d=this.width,u=this.height,g={width:d,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(r=d/i,o=u/s):("meet"===t.meetOrSlice&&(e=(d-i*(r=o=n.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-s*o)/2,"Min"===t.alignY&&(c=-e),"Max"===t.alignY&&(c=e)),"slice"===t.meetOrSlice&&(e=i-d/(r=o=n.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(l=e/2),"Max"===t.alignX&&(l=e),e=s-u/o,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=d/r,s=u/o)),{width:i,height:s,scaleX:r,scaleY:o,offsetLeft:a,offsetTop:c,cropX:l,cropY:h}}}),n.Image.CSS_CANVAS="canvas-img",n.Image.prototype.getSvgSrc=n.Image.prototype.getSrc,n.Image.fromObject=function(e,t){var i=n.util.object.clone(e);n.util.loadImage(i.src,(function(e,s){s?t&&t(null,!0):n.Image.prototype._initFilters.call(i,i.filters,(function(s){i.filters=s||[],n.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(s){i.resizeFilter=s[0],n.util.enlivenObjectEnlivables(i,i,(function(){var s=new n.Image(e,i);t(s,!1)}))}))}))}),null,i.crossOrigin)},n.Image.fromURL=function(e,t,i){n.util.loadImage(e,(function(e,s){t&&t(new n.Image(e,i),s)}),null,i&&i.crossOrigin)},n.Image.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),n.Image.fromElement=function(e,i,s){var r=n.parseAttributes(e,n.Image.ATTRIBUTE_NAMES);n.Image.fromURL(r["xlink:href"],i,t(s?n.util.object.clone(s):{},r))})}(t),n.util.object.extend(n.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,s=e.onChange||t,r=this;return n.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){r.rotate(e),s()},onComplete:function(){r.setCoords(),i()}})}}),n.util.object.extend(n.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",s=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(s,i),e.compileShader(s),!!e.getShaderParameter(s,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}n.isWebglSupported=function(t){if(n.isLikelyNode)return!1;t=t||n.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),s=i.getContext("webgl")||i.getContext("experimental-webgl"),r=!1;if(s){n.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),r=n.maxTextureSize>=t;for(var o=["highp","mediump","lowp"],a=0;a<3;a++)if(e(s,o[a])){n.webGlPrecision=o[a];break}}return this.isSupported=r,r},n.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,s="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var r="undefined"!==typeof ArrayBuffer,c="undefined"!==typeof Uint8ClampedArray;if(s&&i&&r&&c){var l=n.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(n.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var d,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:l};l.width=e,l.height=t,d=window.performance.now(),o.call(g,this.gl,g),u=window.performance.now()-d,d=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-d?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=o}},createWebGLCanvas:function(e,t){var i=n.util.createCanvasElement();i.width=e,i.height=t;var s={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=i.getContext("webgl",s);r||(r=i.getContext("experimental-webgl",s)),r&&(r.clearColor(0,0,0,0),this.canvas=i,this.gl=r)},applyFilters:function(e,t,i,s,n,r){var o,a=this.gl;r&&(o=this.getCachedTexture(r,t));var c={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:s,destinationWidth:i,destinationHeight:s,context:a,sourceTexture:this.createTexture(a,i,s,!o&&t),targetTexture:this.createTexture(a,i,s),originalTexture:o||this.createTexture(a,i,s,!o&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},l=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,l),e.forEach((function(e){e&&e.applyTo(c)})),function(e){var t=e.targetCanvas,i=t.width,s=t.height,n=e.destinationWidth,r=e.destinationHeight;i===n&&s===r||(t.width=n,t.height=r)}(c),this.copyGLTo2D(a,c),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(c.sourceTexture),a.deleteTexture(c.targetTexture),a.deleteFramebuffer(l),n.getContext("2d").setTransform(1,0,0,1,0,0),c},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,s,n){var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),s?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),r},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:o,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var s=e.getParameter(i.UNMASKED_RENDERER_WEBGL),n=e.getParameter(i.UNMASKED_VENDOR_WEBGL);s&&(t.renderer=s.toLowerCase()),n&&(t.vendor=n.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}n.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,s,n){var r=n.getContext("2d");r.drawImage(t,0,0,i,s);var o={sourceWidth:i,sourceHeight:s,imageData:r.getImageData(0,0,i,s),originalEl:t,originalImageData:r.getImageData(0,0,i,s),canvasEl:n,ctx:r,filterBackend:this};return e.forEach((function(e){e.applyTo(o)})),o.imageData.width===i&&o.imageData.height===s||(n.width=o.imageData.width,n.height=o.imageData.height),r.putImageData(o.imageData,0,0),o}}}(),n.Image=n.Image||{},n.Image.filters=n.Image.filters||{},n.Image.filters.BaseFilter=n.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==n.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+n.webGlPrecision+" float"));var s=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(s,i),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(s));var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var o=e.createProgram();if(e.attachShader(o,s),e.attachShader(o,r),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(o));var a=this.getAttributeLocations(e,o),c=this.getUniformLocations(e,o)||{};return c.uStepW=e.getUniformLocation(o,"uStepW"),c.uStepH=e.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:c}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var s=t.aPosition,n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,s=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(s.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(s,t,i)),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.targetTexture,0)):(s.bindFramebuffer(s.FRAMEBUFFER,null),s.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=n.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),n.Image.filters.BaseFilter.fromObject=function(e,t){var i=new n.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.ColorMatrix=s(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,s,n,r,o=e.imageData.data,a=o.length,c=this.matrix,l=this.colorsOnly;for(r=0;r<a;r+=4)t=o[r],i=o[r+1],s=o[r+2],l?(o[r]=t*c[0]+i*c[1]+s*c[2]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+255*c[14]):(n=o[r+3],o[r]=t*c[0]+i*c[1]+s*c[2]+n*c[3]+255*c[4],o[r+1]=t*c[5]+i*c[6]+s*c[7]+n*c[8]+255*c[9],o[r+2]=t*c[10]+i*c[11]+s*c[12]+n*c[13]+255*c[14],o[r+3]=t*c[15]+i*c[16]+s*c[17]+n*c[18]+255*c[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,s=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,s),e.uniform4fv(t.uConstants,n)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Brightness=s(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,s=i.length,n=Math.round(255*this.brightness);for(t=0;t<s;t+=4)i[t]=i[t]+n,i[t+1]=i[t+1]+n,i[t+2]=i[t+2]+n}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Convolute=n(s.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),s=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,s)),e.programCache[i]},applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),C=p.width,E=p.height,b=e.ctx.createImageData(C,E),S=b.data,y=this.opaque?1:0;for(d=0;d<E;d++)for(h=0;h<C;h++){for(r=4*(d*C+h),t=0,i=0,s=0,n=0,g=0;g<_;g++)for(u=0;u<_;u++)o=h+u-v,(a=d+g-v)<0||a>=E||o<0||o>=C||(c=4*(a*C+o),l=f[g*_+u],t+=m[c]*l,i+=m[c+1]*l,s+=m[c+2]*l,y||(n+=m[c+3]*l));S[r]=t,S[r+1]=i,S[r+2]=s,S[r+3]=y?m[r+3]:n}e.imageData=b},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Grayscale=s(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,s=e.imageData.data,n=s.length,r=this.mode;for(t=0;t<n;t+=4)"average"===r?i=(s[t]+s[t+1]+s[t+2])/3:"lightness"===r?i=(Math.min(s[t],s[t+1],s[t+2])+Math.max(s[t],s[t+1],s[t+2]))/2:"luminosity"===r&&(i=.21*s[t]+.72*s[t+1]+.07*s[t+2]),s[t]=i,s[t+1]=i,s[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Invert=s(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,s=i.length;for(t=0;t<s;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Noise=n(s.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,s=e.imageData.data,n=s.length,r=this.noise;for(t=0,n=s.length;t<n;t+=4)i=(.5-Math.random())*r,s[t]+=i,s[t+1]+=i,s[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Pixelate=s(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,s,n,r,o,a,c,l,h,d,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(s=0;s<m;s+=this.blocksize)for(n=g[t=4*i*m+4*s],r=g[t+1],o=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),d=Math.min(s+this.blocksize,m),c=i;c<h;c++)for(l=s;l<d;l++)g[t=4*c*m+4*l]=n,g[t+1]=r,g[t+2]=o,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.RemoveColor=n(s.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,s,n,r,o=e.imageData.data,a=255*this.distance,c=new t.Color(this.color).getSource(),l=[c[0]-a,c[1]-a,c[2]-a],h=[c[0]+a,c[1]+a,c[2]+a];for(i=0;i<o.length;i+=4)s=o[i],n=o[i+1],r=o[i+2],s>l[0]&&n>l[1]&&r>l[2]&&s<h[0]&&n<h[1]&&r<h[2]&&(o[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource(),n=parseFloat(this.distance),r=[0+s[0]/255-n,0+s[1]/255-n,0+s[2]/255-n,1],o=[s[0]/255+n,s[1]/255+n,s[2]/255+n,1];e.uniform4fv(i.uLow,r),e.uniform4fv(i.uHigh,o)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var r in n)i[r]=s(i.ColorMatrix,{type:r,matrix:n[r],mainParameter:!1,colorsOnly:!0}),t.Image.filters[r].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendColor=s(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,s,n,r,o,a,c,l=e.imageData.data,h=l.length,d=1-this.alpha;i=(c=new t.Color(this.color).getSource())[0]*this.alpha,s=c[1]*this.alpha,n=c[2]*this.alpha;for(var u=0;u<h;u+=4)switch(r=l[u],o=l[u+1],a=l[u+2],this.mode){case"multiply":l[u]=r*i/255,l[u+1]=o*s/255,l[u+2]=a*n/255;break;case"screen":l[u]=255-(255-r)*(255-i)/255,l[u+1]=255-(255-o)*(255-s)/255,l[u+2]=255-(255-a)*(255-n)/255;break;case"add":l[u]=r+i,l[u+1]=o+s,l[u+2]=a+n;break;case"diff":case"difference":l[u]=Math.abs(r-i),l[u+1]=Math.abs(o-s),l[u+2]=Math.abs(a-n);break;case"subtract":l[u]=r-i,l[u+1]=o-s,l[u+2]=a-n;break;case"darken":l[u]=Math.min(r,i),l[u+1]=Math.min(o,s),l[u+2]=Math.min(a,n);break;case"lighten":l[u]=Math.max(r,i),l[u+1]=Math.max(o,s),l[u+2]=Math.max(a,n);break;case"overlay":l[u]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,l[u+1]=s<128?2*o*s/255:255-2*(255-o)*(255-s)/255,l[u+2]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case"exclusion":l[u]=i+r-2*i*r/255,l[u+1]=s+o-2*s*o/255,l[u+2]=n+a-2*n*a/255;break;case"tint":l[u]=i+r*d,l[u+1]=s+o*d,l[u+2]=n+a*d}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,e.uniform4fv(i.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendImage=s(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,s,n,r,o,a,c,l,h,d,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,C=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),d=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):d.clearRect(0,0,_,v),d.setTransform(C.scaleX,0,0,C.scaleY,C.left,C.top),d.drawImage(C._element,0,0,_,v),u=d.getImageData(0,0,_,v).data;for(var E=0;E<f;E+=4)switch(o=m[E],a=m[E+1],c=m[E+2],l=m[E+3],i=u[E],s=u[E+1],n=u[E+2],r=u[E+3],this.mode){case"multiply":m[E]=o*i/255,m[E+1]=a*s/255,m[E+2]=c*n/255,m[E+3]=l*r/255;break;case"mask":m[E+3]=r}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(s){var n=t.util.object.clone(e);n.image=s,i(new t.Image.filters.BlendImage(n))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,s=Math.floor,n=Math.sqrt,r=Math.abs,o=Math.round,a=Math.sin,c=Math.ceil,l=t.Image.filters,h=t.util.createClass;l.Resize=h(l.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var s=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,s)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),s=new Array(i),n=1;n<=i;n++)s[n-1]=e(n*t);return s},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,s=1;s<=e;s++)t[s-1]=s+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,s=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/s;var n,r=t.width,a=t.height,c=o(r*i),l=o(a*s);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,a,c,l):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,a,c,l):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,a,c,l):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,a,c,l)),e.imageData=n},sliceByTwo:function(e,i,n,r,o){var a,c,l=e.imageData,h=.5,d=!1,u=!1,g=i*h,p=n*h,m=t.filterBackend.resources,f=0,_=0,v=i,C=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<n)&&(a.width=1.5*i,a.height=n),(c=a.getContext("2d")).clearRect(0,0,1.5*i,n),c.putImageData(l,0,0),r=s(r),o=s(o);!d||!u;)i=g,n=p,r<s(g*h)?g=s(g*h):(g=r,d=!0),o<s(p*h)?p=s(p*h):(p=o,u=!0),c.drawImage(a,f,_,i,n,v,C,g,p),f=v,_=C,C+=p;return c.getImageData(f,_,r,o)},lanczosResize:function(e,t,o,a,l){var h=e.imageData.data,d=e.ctx.createImageData(a,l),u=d.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=c(p*this.lanczosLobes/2),C=c(m*this.lanczosLobes/2),E={},b={},S={};return function e(c){var y,w,R,L,T,x,k,A,N,I,O;for(b.x=(c+.5)*p,S.x=s(b.x),y=0;y<l;y++){for(b.y=(y+.5)*m,S.y=s(b.y),T=0,x=0,k=0,A=0,N=0,w=S.x-v;w<=S.x+v;w++)if(!(w<0||w>=t)){I=s(1e3*r(w-b.x)),E[I]||(E[I]={});for(var D=S.y-C;D<=S.y+C;D++)D<0||D>=o||(O=s(1e3*r(D-b.y)),E[I][O]||(E[I][O]=g(n(i(I*f,2)+i(O*_,2))/1e3)),(R=E[I][O])>0&&(T+=R,x+=R*h[L=4*(D*t+w)],k+=R*h[L+1],A+=R*h[L+2],N+=R*h[L+3]))}u[L=4*(y*a+c)]=x/T,u[L+1]=k/T,u[L+2]=A/T,u[L+3]=N/T}return++c<a?e(c):d}(0)},bilinearFiltering:function(e,t,i,n,r){var o,a,c,l,h,d,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),C=e.imageData.data,E=e.ctx.createImageData(n,r),b=E.data;for(c=0;c<r;c++)for(l=0;l<n;l++)for(h=f*l-(o=s(f*l)),d=_*c-(a=s(_*c)),p=4*(a*t+o),u=0;u<4;u++)g=C[p+u]*(1-h)*(1-d)+C[p+4+u]*h*(1-d)+C[p+v+u]*d*(1-h)+C[p+v+4+u]*h*d,b[m++]=g;return E},hermiteFastResize:function(e,t,i,o,a){for(var l=this.rcpScaleX,h=this.rcpScaleY,d=c(l/2),u=c(h/2),g=e.imageData.data,p=e.ctx.createImageData(o,a),m=p.data,f=0;f<a;f++)for(var _=0;_<o;_++){for(var v=4*(_+f*o),C=0,E=0,b=0,S=0,y=0,w=0,R=0,L=(f+.5)*h,T=s(f*h);T<(f+1)*h;T++)for(var x=r(L-(T+.5))/u,k=(_+.5)*l,A=x*x,N=s(_*l);N<(_+1)*l;N++){var I=r(k-(N+.5))/d,O=n(A+I*I);O>1&&O<-1||(C=2*O*O*O-3*O*O+1)>0&&(R+=C*g[(I=4*(N+T*t))+3],b+=C,g[I+3]<255&&(C=C*g[I+3]/250),S+=C*g[I],y+=C*g[I+1],w+=C*g[I+2],E+=C)}m[v]=S/E,m[v+1]=y/E,m[v+2]=w/E,m[v+3]=R/b}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Contrast=s(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,s=i.length,n=Math.floor(255*this.contrast),r=259*(n+255)/(255*(259-n));for(t=0;t<s;t+=4)i[t]=r*(i[t]-128)+128,i[t+1]=r*(i[t+1]-128)+128,i[t+2]=r*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Saturation=s(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,s=e.imageData.data,n=s.length,r=-this.saturation;for(t=0;t<n;t+=4)i=Math.max(s[t],s[t+1],s[t+2]),s[t]+=i!==s[t]?(i-s[t])*r:0,s[t+1]+=i!==s[t+1]?(i-s[t+1])*r:0,s[t+2]+=i!==s[t+2]?(i-s[t+2])*r:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Vibrance=s(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,s,n,r=e.imageData.data,o=r.length,a=-this.vibrance;for(t=0;t<o;t+=4)i=Math.max(r[t],r[t+1],r[t+2]),s=(r[t]+r[t+1]+r[t+2])/3,n=2*Math.abs(i-s)/255*a,r[t]+=i!==r[t]?(i-r[t])*n:0,r[t+1]+=i!==r[t+1]?(i-r[t+1])*n:0,r[t+2]+=i!==r[t+2]?(i-r[t+2])*n:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Blur=s(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,s,n=e.filterBackend.resources,r=e.imageData.width,o=e.imageData.height;n.blurLayer1||(n.blurLayer1=t.util.createCanvasElement(),n.blurLayer2=t.util.createCanvasElement()),i=n.blurLayer1,s=n.blurLayer2,i.width===r&&i.height===o||(s.width=i.width=r,s.height=i.height=o);var a,c,l,h,d=i.getContext("2d"),u=s.getContext("2d"),g=15,p=.06*this.blur*.5;for(d.putImageData(e.imageData,0,0),u.clearRect(0,0,r,o),h=-15;h<=g;h++)l=p*(c=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,l,a),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);for(h=-15;h<=g;h++)l=p*(c=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(c),u.drawImage(i,a,l),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return d.globalAlpha=1,d.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Gamma=s(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,s=this.gamma,n=i.length,r=1/s[0],o=1/s[1],a=1/s[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,n=256;t<n;t++)this.rVals[t]=255*Math.pow(t/255,r),this.gVals[t]=255*Math.pow(t/255,o),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,n=i.length;t<n;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Composed=s(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var s=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),n=new t.Image.filters.Composed({subFilters:s});return i&&i(n),n}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.HueRotation=s(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),s=t.util.sin(e),n=1/3,r=Math.sqrt(n)*s,o=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+o/3,this.matrix[1]=n*o-r,this.matrix[2]=n*o+r,this.matrix[5]=n*o+r,this.matrix[6]=i+n*o,this.matrix[7]=n*o-r,this.matrix[10]=n*o-r,this.matrix[11]=n*o+r,this.matrix[12]=i+n*o},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var s="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(s),cacheProperties:t.Object.prototype.cacheProperties.concat(s),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var e=1.1*this.getHeightOfLine(0);this.width=this.path.width+e,this.height=this.path.height+e}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var e,t,i,s,n,r,o,a=0,c=this._textLines.length;a<c;a++)if(("justify"===this.textAlign||a!==c-1&&!this.isEndOfWrapping(a))&&(s=0,n=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(o=this.textLines[a].match(this._reSpacesAndTabs)))){i=o.length,e=(this.width-t)/i;for(var l=0,h=n.length;l<=h;l++)r=this.__charBounds[a][l],this._reSpaceAndTab.test(n[l])?(r.width+=e,r.kernedWidth+=e,r.left+=s,s+=e):r.left+=s}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var s=this.getLineWidth(t);s>e&&(e=s)}return e},_renderTextLine:function(e,t,i,s,n,r){this._renderChars(e,t,i,s,n,r)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,s,n,r,o,a,c=e.fillStyle,l=this._getLeftOffset(),h=this._getTopOffset(),d=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){s=this._textLines[p],i=this._getLineLeftOffset(p),u=0,d=0,n=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=s.length;f<_;f++)r=this.__charBounds[p][f],o=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(r.renderLeft,r.renderTop),e.rotate(r.angle),e.fillStyle=o,o&&e.fillRect(-r.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),r.width,t/this.lineHeight),e.restore()):o!==n?(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=n,n&&e.fillRect(a,h,u,t/this.lineHeight),d=r.left,u=r.width,n=o):u+=r.kernedWidth;o&&!g&&(a=l+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=o,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=c,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var s=t.charWidthsCache[i],n=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return s[n]||(s[n]={}),s[n]},_measureChar:function(e,t,i,s){var n,r,o,a,c=this.getFontCache(t),l=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(s),d=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==c[i]&&(o=c[i]),void 0!==c[e]&&(a=n=c[e]),h&&void 0!==c[l]&&(a=(r=c[l])-o),void 0===n||void 0===o||void 0===r){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===n&&(a=n=u.measureText(e).width,c[e]=n),void 0===o&&h&&i&&(o=u.measureText(i).width,c[i]=o),h&&void 0===r&&(r=u.measureText(l).width,c[l]=r,a=r-o),{width:n*d,kernedWidth:a*d}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,s,n,r,o,a,c=0,l=this._textLines[e],h=new Array(l.length),d=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<l.length;i++)s=l[i],r=this._getGraphemeBox(s,e,i,n),h[i]=r,c+=r.kernedWidth,n=s;if(h[i]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(o=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,o.y+=u.pathOffset.y,this.textAlign){case"left":d=g?a-c:0;break;case"center":d=(a-c)/2;break;case"right":d=g?0:a-c}for(d+=this.pathStartOffset*(g?-1:1),i=g?l.length-1:0;g?i>=0:i<l.length;g?i--:i++)r=h[i],d>a?d%=a:d<0&&(d+=a),this._setGraphemeOnPath(d,r,o),d+=r.kernedWidth}return{width:c,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,s){var n=e+i.kernedWidth/2,r=this.path,o=t.util.getPointOnPath(r.path,n,r.segmentsInfo);i.renderLeft=o.x-s.x,i.renderTop=o.y-s.y,i.angle=o.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,s,n){var r,o=this.getCompleteStyleDeclaration(t,i),a=s?this.getCompleteStyleDeclaration(t,i-1):{},c=this._measureChar(e,o,s,a),l=c.kernedWidth,h=c.width;0!==this.charSpacing&&(h+=r=this._getWidthOfCharSpacing(),l+=r);var d={width:h,left:0,height:o.fontSize,kernedWidth:l,deltaY:o.deltaY};if(i>0&&!n){var u=this.__charBounds[t][i-1];d.left=u.left+u.width+c.kernedWidth-c.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),s=1,n=t.length;s<n;s++)i=Math.max(this.getHeightOfChar(e,s),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,s=this._textLines.length;i<s;i++)e=this.getHeightOfLine(i),t+=i===s-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,s=this._getLeftOffset(),n=this._getTopOffset(),r=0,o=this._textLines.length;r<o;r++){var a=this.getHeightOfLine(r),c=a/this.lineHeight,l=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],s+l,n+i+c,r),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,s,n,r,o){var a,c,l,h,d,u=this.getHeightOfLine(o),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(o)&&!f,v="ltr"===this.direction,C="ltr"===this.direction?1:-1,E=i.canvas.getAttribute("dir");if(i.save(),E!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),r-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,o,0,s.join(""),n,r,u),void i.restore();for(var b=0,S=s.length-1;b<=S;b++)h=b===S||this.charSpacing||f,p+=s[b],l=this.__charBounds[o][b],0===m?(n+=C*(l.kernedWidth-l.width),m+=l.width):m+=l.kernedWidth,g&&!h&&this._reSpaceAndTab.test(s[b])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(o,b),c=this.getCompleteStyleDeclaration(o,b+1),h=t.util.hasStyleChanged(a,c,!1)),h&&(f?(i.save(),i.translate(l.renderLeft,l.renderTop),i.rotate(l.angle),this._renderChar(e,i,o,b,p,-m/2,0,u),i.restore()):(d=n,this._renderChar(e,i,o,b,p,d,r,u)),p="",a=c,n+=C*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,s=t.util.createCanvasElement(),n=this.width+this.strokeWidth,r=this.height+this.strokeWidth;return s.width=n,s.height=r,(i=s.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,r),i.lineTo(0,r),i.closePath(),i.translate(n/2,r/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(s,"no-repeat")},handleFiller:function(e,t,i){var s,n;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(s=-this.width/2,n=-this.height/2,e.translate(s,n),e[t]=this._applyPatternGradientTransformText(i),{offsetX:s,offsetY:n}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,s,n,r,o){var a,c,l=this._getStyleDeclaration(i,s),h=this.getCompleteStyleDeclaration(i,s),d="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||d)&&(t.save(),d&&(a=this._setFillStyles(t,h)),u&&(c=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),l&&l.textBackgroundColor&&this._removeShadow(t),l&&l.deltaY&&(o+=l.deltaY),d&&t.fillText(n,r-a.offsetX,o-a.offsetY),u&&t.strokeText(n,r-c.offsetX,o-c.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var s=this.get2DCursorLocation(e,!0),n=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"fontSize"),r=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"deltaY"),o={fontSize:n*i.size,deltaY:r+n*i.baseline};return this.setSelectionStyles(o,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,s=this.textAlign,n=this.direction,r=0,o=this.isEndOfWrapping(e);return"justify"===s||"justify-center"===s&&!o||"justify-right"===s&&!o||"justify-left"===s&&!o?0:("center"===s&&(r=i/2),"right"===s&&(r=i),"justify-center"===s&&(r=i/2),"justify-right"===s&&(r=i),"rtl"===n&&(r-=i),r)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var s=this._getStyleDeclaration(e,t);return s&&"undefined"!==typeof s[i]?s[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){e.save(),"overline"!==t&&"linethrough"!==t||this._removeShadow(e);for(var i,s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v=this._getLeftOffset(),C=this._getTopOffset(),E=this.path,b=this._getWidthOfCharSpacing(),S=this.offsets[t],y=0,w=this._textLines.length;y<w;y++)if(i=this.getHeightOfLine(y),this[t]||this.styleHas(t,y)){c=this._textLines[y],m=i/this.lineHeight,r=this._getLineLeftOffset(y),d=0,u=0,l=this.getValueOfPropertyAt(y,0,t),_=this.getValueOfPropertyAt(y,0,"fill"),h=C+m*(1-this._fontSizeFraction),s=this.getHeightOfChar(y,0),o=this.getValueOfPropertyAt(y,0,"deltaY");for(var R=0,L=c.length;R<L;R++)if(g=this.__charBounds[y][R],p=this.getValueOfPropertyAt(y,R,t),f=this.getValueOfPropertyAt(y,R,"fill"),n=this.getHeightOfChar(y,R),a=this.getValueOfPropertyAt(y,R,"deltaY"),E&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,S*n+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==l||f!==_||n!==s||a!==o)&&u>0){var T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),l&&_&&(e.fillStyle=_,e.fillRect(T,h+S*s+o,u,this.fontSize/15)),d=g.left,u=g.width,l=p,_=f,s=n,o=a}else u+=g.kernedWidth;T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),e.fillStyle=f,p&&f&&e.fillRect(T,h+S*s+o,u-b,this.fontSize/15),C+=i}else C+=i;e.restore()}},_getFontDeclaration:function(e,i){var s=e||this,n=this.fontFamily,r=t.Text.genericFonts.indexOf(n.toLowerCase())>-1,o=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||r?s.fontFamily:'"'+s.fontFamily+'"';return[t.isLikelyNode?s.fontWeight:s.fontStyle,t.isLikelyNode?s.fontStyle:s.fontWeight,i?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",o].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),s=new Array(i.length),n=["\n"],r=[],o=0;o<i.length;o++)s[o]=t.util.string.graphemeSplit(i[o]),r=r.concat(s[o],n);return r.pop(),{_unwrappedLines:s,lines:i,graphemeText:r,graphemeLines:s}},toObject:function(e){var i=s.concat(e),n=this.callSuper("toObject",i);return n.styles=t.util.stylesToArray(this.styles,this.text),n.path&&(n.path=this.path.toObject()),n},set:function(e,t){this.callSuper("set",e,t);var i=!1,s=!1;if("object"===typeof e)for(var n in e)"path"===n&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),s=s||"path"===n;else i=-1!==this._dimensionAffectingProps.indexOf(e),s="path"===e;return s&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,s,n){if(!e)return s(null);var r=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),o=r.textAnchor||"left";if((n=t.util.object.extend(n?i(n):{},r)).top=n.top||0,n.left=n.left||0,r.textDecoration){var a=r.textDecoration;-1!==a.indexOf("underline")&&(n.underline=!0),-1!==a.indexOf("overline")&&(n.overline=!0),-1!==a.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in r&&(n.left+=r.dx),"dy"in r&&(n.top+=r.dy),"fontSize"in n||(n.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var c="";"textContent"in e?c=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(c=e.firstChild.data),c=c.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var l=n.strokeWidth;n.strokeWidth=0;var h=new t.Text(c,n),d=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*d,g=h.getScaledHeight()+u,p=0;"center"===o&&(p=h.getScaledWidth()/2),"right"===o&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof l?l:1}),s(h)},t.Text.fromObject=function(e,s){var n=i(e),r=e.path;return delete n.path,t.Object._fromObject("Text",n,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),r?t.Object._fromObject("Path",r,(function(e){i.set("path",e),s(i)}),"path"):s(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),n.util.object.extend(n.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var s in t[i])for(var n in t[i][s])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var s in i)for(var n in i[s])if("undefined"!==typeof i[s][n][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,s=this.styles,n=0,r=!0,o=0;for(var a in s){for(var c in t=0,s[a]){var l;n++,(l=s[a][c]).hasOwnProperty(e)?(i?l[e]!==i&&(r=!1):i=l[e],l[e]===this[e]&&delete l[e]):r=!1,0!==Object.keys(l).length?t++:delete s[a][c]}0===t&&delete s[a]}for(var h=0;h<this._textLines.length;h++)o+=this._textLines[h].length;r&&n===o&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,s,n=this.styles;for(i in n){for(s in t=n[i])delete t[s][e],0===Object.keys(t[s]).length&&delete t[s];0===Object.keys(t).length&&delete n[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),n.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,s=i.length,n=0;n<s;n++){if(e<=i[n].length)return{lineIndex:n,charIndex:e};e-=i[n].length+this.missingNewlineOffset(n,t)}return{lineIndex:n-1,charIndex:i[n-1].length<e?i[n-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var s=[],n=e;n<t;n++)s.push(this.getStyleAtPosition(n,i));return s},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var s=t;s<i;s++)this._extendStyles(s,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,s=this._getStyleDeclaration(e,t)||{},n={},r=0;r<this._styleProperties.length;r++)n[i=this._styleProperties[r]]="undefined"===typeof s[i]?this[i]:s[i];return n},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}n.IText=n.util.createClass(n.Text,n.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),s=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:s.left,topOffset:s.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,s,n,r=0,o=0,a=this.get2DCursorLocation(e);s=a.charIndex,i=a.lineIndex;for(var c=0;c<i;c++)r+=this.getHeightOfLine(c);t=this._getLineLeftOffset(i);var l=this.__charBounds[i][s];return l&&(o=l.left),0!==this.charSpacing&&s===this._textLines[i].length&&(o-=this._getWidthOfCharSpacing()),n={top:r,left:t+(o>0?o:0)},"rtl"===this.direction&&(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),s=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,r=this.getValueOfPropertyAt(s,n,"fontSize"),o=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/o,c=e.topOffset,l=this.getValueOfPropertyAt(s,n,"deltaY");c+=(1-this._fontSizeFraction)*this.getHeightOfLine(s)/this.lineHeight-r*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(s,n,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,c+e.top+l,a,r)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,s=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf("justify"),r=this.get2DCursorLocation(i),o=this.get2DCursorLocation(s),a=r.lineIndex,c=o.lineIndex,l=r.charIndex<0?0:r.charIndex,h=o.charIndex<0?0:o.charIndex,d=a;d<=c;d++){var u,g=this._getLineLeftOffset(d)||0,p=this.getHeightOfLine(d),m=0,f=0;if(d===a&&(m=this.__charBounds[a][l].left),d>=a&&d<c)f=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===c)if(0===h)f=this.__charBounds[c][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[c][h-1].left+this.__charBounds[c][h-1].width-_}u=p,(this.lineHeight<1||d===c&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,C=f-m,E=p,b=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",E=1,b=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-C),t.fillRect(v,e.top+e.topOffset+b,C,E),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),n.IText.fromObject=function(t,i){var s=n.util.stylesFromArray(t.styles,t.text),r=Object.assign({},t,{styles:s});if(delete r.path,e(r),r.styles)for(var o in r.styles)for(var a in r.styles[o])e(r.styles[o][a]);n.Object._fromObject("IText",r,(function(e){t.path?n.Object._fromObject("Path",t.path,(function(t){e.set("path",t),i(e)}),"path"):i(e)}),"text")}}(),function(){var e=n.util.object.clone;n.util.object.extend(n.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],n.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,s){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){n.isAborted||e[s]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,s=this._reSpace.test(i[e])?e-1:e,r=i[s],o=n.reNonWord;!o.test(r)&&s>0&&s<i.length;)r=i[s+=t];return o.test(r)&&(s+=1===t?0:1),s},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,s=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==s||i!==t&&s!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===s||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var s=i.slice(0,e),r=n.util.string.graphemeSplit(s).length;if(e===t)return{selectionStart:r,selectionEnd:r};var o=i.slice(e,t);return{selectionStart:r,selectionEnd:r+n.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(e,t,i){var s=i.slice(0,e).join("").length;return e===t?{selectionStart:s,selectionEnd:s}:{selectionStart:s,selectionEnd:s+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),s=i.lineIndex,r=i.charIndex,o=this.getValueOfPropertyAt(s,r,"fontSize")*this.lineHeight,a=t.leftOffset,c=this.calcTransformMatrix(),l={x:t.left+a,y:t.top+t.topOffset+o},h=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,u=d.width/h,g=d.height/h,p=u-o,m=g-o,f=d.clientWidth/u,_=d.clientHeight/g;return l=n.util.transformPoint(l,c),(l=n.util.transformPoint(l,this.canvas.viewportTransform)).x*=f,l.y*=_,l.x<0&&(l.x=0),l.x>p&&(l.x=p),l.y<0&&(l.y=0),l.y>m&&(l.y=m),l.x+=this.canvas._offset.left,l.y+=this.canvas._offset.top,{left:l.x+"px",top:l.y+"px",fontSize:o+"px",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,s,n=this.get2DCursorLocation(e,!0),r=this.get2DCursorLocation(t,!0),o=n.lineIndex,a=n.charIndex,c=r.lineIndex,l=r.charIndex;if(o!==c){if(this.styles[o])for(i=a;i<this._unwrappedTextLines[o].length;i++)delete this.styles[o][i];if(this.styles[c])for(i=l;i<this._unwrappedTextLines[c].length;i++)(s=this.styles[c][i])&&(this.styles[o]||(this.styles[o]={}),this.styles[o][a+i-l]=s);for(i=o+1;i<=c;i++)delete this.styles[i];this.shiftLineStyles(c,o-c)}else if(this.styles[o]){s=this.styles[o];var h,d,u=l-a;for(i=a;i<l;i++)delete s[i];for(d in this.styles[o])(h=parseInt(d,10))>=l&&(s[h-u]=s[d],delete s[d])}},shiftLineStyles:function(t,i){var s=e(this.styles);for(var n in this.styles){var r=parseInt(n,10);r>t&&(this.styles[r+i]=s[r],s[r-i]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,s,n){var r,o={},a=!1,c=this._unwrappedTextLines[t].length,l=c===i;for(var h in s||(s=1),this.shiftLineStyles(t,s),this.styles[t]&&(r=this.styles[t][0===i?i:i-1]),this.styles[t]){var d=parseInt(h,10);d>=i&&(a=!0,o[d-i]=this.styles[t][h],l&&0===i||delete this.styles[t][h])}var u=!1;for(a&&!l&&(this.styles[t+s]=o,u=!0),(u||c>i)&&s--;s>0;)n&&n[s-1]?this.styles[t+s]={0:e(n[s-1])}:r?this.styles[t+s]={0:e(r)}:delete this.styles[t+s],s--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,s,n){this.styles||(this.styles={});var r=this.styles[t],o=r?e(r):{};for(var a in s||(s=1),o){var c=parseInt(a,10);c>=i&&(r[c+s]=o[c],o[c-s]||delete r[c])}if(this._forceClearCache=!0,n)for(;s--;)Object.keys(n[s]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+s]=e(n[s]));else if(r)for(var l=r[i?i-1:1];l&&s--;)this.styles[t][i+s]=e(l)},insertNewStyleBlock:function(e,t,i){for(var s=this.get2DCursorLocation(t,!0),n=[0],r=0,o=0;o<e.length;o++)"\n"===e[o]?n[++r]=0:n[r]++;n[0]>0&&(this.insertCharStyleObject(s.lineIndex,s.charIndex,n[0],i),i=i&&i.slice(n[0]+1)),r&&this.insertNewlineStyleObject(s.lineIndex,s.charIndex+n[0],r);for(o=1;o<r;o++)n[o]>0?this.insertCharStyleObject(s.lineIndex+o,0,n[o],i):i&&this.styles[s.lineIndex+o]&&i[0]&&(this.styles[s.lineIndex+o][0]=i[0]),i=i&&i.slice(n[o]+1);n[o]>0&&this.insertCharStyleObject(s.lineIndex+o,0,n[o],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),n.util.object.extend(n.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,s=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,s,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),s=0,n=0,r=0,o=0,a=0,c=0,l=this._textLines.length;c<l&&r<=i.y;c++)r+=this.getHeightOfLine(c)*this.scaleY,a=c,c>0&&(o+=this._textLines[c-1].length+this.missingNewlineOffset(c-1));n=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+n);for(var h=0,d=t.length;h<d&&(s=n,(n+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)o++;return this._getNewSelectionStartFromOffset(i,s,n,o,d)},_getNewSelectionStartFromOffset:function(e,t,i,s,n){var r=e.x-t,o=i-e.x,a=s+(o>r||o<0?0:1);return this.flipX&&(a=n-a),a>this._text.length&&(a=this._text.length),a}}),n.util.object.extend(n.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=n.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):n.document.body.appendChild(this.hiddenTextarea),n.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),n.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),n.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),n.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(n.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,s,r,o,a,c=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,l=this._text.length,h=c.length,d=h-l,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),d+=g-u):h<l&&(i=f?this._text.slice(g+d,g):this._text.slice(u,u-d)),s=c.slice(m.selectionEnd-d,m.selectionEnd),i&&i.length&&(s.length&&(r=this.getSelectionStyles(u,u+1,!1),r=s.map((function(){return r[0]}))),p?(o=u,a=g):f?(o=g-i.length,a=g):(o=g,a=g+i.length),this.removeStyleFromTo(o,a)),s.length&&(t&&s.join("")===n.copiedText&&!n.disableStyleCopyPaste&&(r=n.copiedTextStyle),this.insertNewStyleBlock(s,u,r)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(n.copiedText=this.getSelectedText(),n.disableStyleCopyPaste?n.copiedTextStyle=null:n.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||n.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,s=this._getLineLeftOffset(e);return t>0&&(s+=(i=this.__charBounds[e][t-1]).left+i.width),s},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(n===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n+1,o);return this._textLines[n].slice(r).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(0===n||e.metaKey||33===e.keyCode)return-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n-1,o),c=this._textLines[n].slice(0,r),l=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-c.length+(1-l)},_getIndexOnLine:function(e,t){for(var i,s,n=this._textLines[e],r=this._getLineLeftOffset(e),o=0,a=0,c=n.length;a<c;a++)if((r+=i=this.__charBounds[e][a].width)>t){s=!0;var l=r-i,h=r,d=Math.abs(l-t);o=Math.abs(h-t)<d?a:a-1;break}return s||(o=n.length-1),o},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var s;if(e.altKey)s=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;s=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof s&&this[t]!==s)return this[t]=s,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,s){"undefined"===typeof s&&(s=i),s>i&&this.removeStyleFromTo(i,s);var r=n.util.string.graphemeSplit(e);this.insertNewStyleBlock(r,i,t),this._text=[].concat(this._text.slice(0,i),r,this._text.slice(s)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=n.util.toFixed,t=n.util.radiansToDegrees,i=n.util.calcRotateMatrix,s=n.util.transformPoint,r=/ +/g;n.util.object.extend(n.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){var t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}),i=this.path;return i?t+i._createBaseSVGMarkup(i._toSVG(),{reviver:e,withShadow:!0}):t},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,s=[],n=[],r=e;this._setSVGBg(n);for(var o=0,a=this._textLines.length;o<a;o++)i=this._getLineLeftOffset(o),(this.textBackgroundColor||this.styleHas("textBackgroundColor",o))&&this._setSVGTextLineBg(n,o,t+i,r),this._setSVGTextLineText(s,o,t+i,r),r+=this.getHeightOfLine(o);return{textSpans:s,textBgRects:n}},_createTextCharSpan:function(o,a,c,l,h){var d=o!==o.trim()||o.match(r),u=this.getSvgSpanStyles(a,d),g=u?'style="'+u+'"':"",p=a.deltaY,m="",f=n.Object.NUM_FRACTION_DIGITS,_="";if(p&&(m=' dy="'+e(p,f)+'" '),void 0!==h.renderLeft){var v=h.angle;_=' rotate="'+e(t(v),n.Object.NUM_FRACTION_DIGITS)+'" ';var C=h.width/2,E=i({angle:t(v)});E[4]=h.renderLeft,E[5]=h.renderTop;var b=s({x:-C,y:0},E);c=b.x,l=b.y}return['<tspan x="',e(c,f),'" y="',e(l,f),'" ',m,g,_,">",n.util.string.escapeXml(o),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,s){var r,o,a,c,l,h=this.getHeightOfLine(t),d=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];s+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)l=m===f||this.charSpacing||this.path,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,d&&!l&&this._reSpaceAndTab.test(p[m])&&(l=!0),l||(r=r||this.getCompleteStyleDeclaration(t,m),o=this.getCompleteStyleDeclaration(t,m+1),l=n.util.hasStyleChanged(r,o,!0)),l&&(c=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,c,i,s,a)),u="",r=o,i+=g,g=0)},_pushTextBgRect:function(t,i,s,r,o,a){var c=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(s,c),'" y="',e(r,c),'" width="',e(o,c),'" height="',e(a,c),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,s){for(var n,r,o=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,c=0,l=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,u=o.length;d<u;d++)n=this.__charBounds[t][d],(r=this.getValueOfPropertyAt(t,d,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+l,s,c,a),l=n.left,c=n.width,h=r):c+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+l,s,c,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new n.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,s=0;s<e;s++)i+=this.getHeightOfLine(s);return t=this.getHeightOfLine(s),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return n.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,s=0,n={},r=0;r<e.graphemeLines.length;r++)"\n"===e.graphemeText[s]&&r>0?(i=0,s++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[s])&&r>0&&(i++,s++),n[r]={line:t,offset:i},s+=e.graphemeLines[r].length,i+=e.graphemeLines[r].length;return n},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var s=this._styleMap[i];s&&(i=s.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,s=0,n=!1,r=this._styleMap[e],o=this._styleMap[e+1];for(var a in r&&(e=r.line,s=r.offset),o&&(n=o.line===e,t=o.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var c in i[a])if(c>=s&&(!n||c<t))for(var l in i[a][c])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var s=this._styleMap[e];e=s.line,t=s.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,s=[];for(this.isWrapping=!0,i=0;i<e.length;i++)s=s.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,s},_measureWord:function(e,t,i){var s,n=0;i=i||0;for(var r=0,o=e.length;r<o;r++){n+=this._getGraphemeBox(e[r],t,r+i,s,true).kernedWidth,s=e[r]}return n},_wrapLine:function(e,i,s,n){var r=0,o=this.splitByGrapheme,a=[],c=[],l=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",d=0,u=o?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();n=n||0;0===l.length&&l.push([]),s-=n;for(var v=0;v<l.length;v++)h=o?l[v]:t.util.string.graphemeSplit(l[v]),g=this._measureWord(h,i,d),d+=h.length,(r+=p+g-_)>s&&!f?(a.push(c),c=[],r=g,f=!0):r+=_,f||o||c.push(u),c=c.concat(h),p=o?0:this._measureWord([u],i,d),d++,f=!1,g>m&&(m=g);return v&&a.push(c),m+n>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+n),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),s=this._wrapText(i.lines,this.width),n=new Array(s.length),r=0;r<s.length;r++)n[r]=s[r].join("");return i.lines=n,i.graphemeLines=s,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var s=t.util.stylesFromArray(e.styles,e.text),n=Object.assign({},e,{styles:s});return delete n.path,t.Object._fromObject("Textbox",n,(function(s){e.path?t.Object._fromObject("Path",e.path,(function(e){s.set("path",e),i(s)}),"path"):i(s)}),"text")}}(t),function(){var e=n.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,s=e.scalingEqually,r=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,c=n.Object.prototype.controls;if(c.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),c.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),c.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),c.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:s}),c.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var l=n.Textbox.prototype.controls={};l.mtr=c.mtr,l.tr=c.tr,l.br=c.br,l.tl=c.tl,l.bl=c.bl,l.mt=c.mt,l.mb=c.mb,l.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),l.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},7291:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(s||(s={}))},7936:(e,t,i)=>{"use strict";i.d(t,{Y:()=>p});var s,n=i(91508),r=i(1245),o=i(36677),a=i(75326),c=i(63346),l=i(17469),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let s=i.length;s<=t;s++)i[s]=i[s-1]+e;return i[t]}let p=s=class{static unshiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.prevIndentTabStop(o,s)/s)}return g("\t",r.A.prevRenderTabStop(o,i)/i)}static shiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.nextIndentTabStop(o,s)/s)}return g("\t",r.A.nextRenderTabStop(o,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:l,indentSize:h,insertSpaces:d}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(r.A.visibleColumnFromColumn(a,_+1,l)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,c.h)(this._opts.autoIndent,e,new o.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?s.unshiftIndent(a,_+1,l,h,d):s.shiftIndent(a,_+1,l,h,d),this._addEditOperation(t,new o.Q(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const s=d?g(" ",h):"\t";for(let r=i;r<=a;r++){const a=e.getLineContent(r);let c=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==c)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===c&&(c=a.length),!this._opts.isUnshift||0!==c)))if(this._opts.isUnshift){c=Math.min(c,h);for(let e=0;e<c;e++){if(9===a.charCodeAt(e)){c=e+1;break}}this._addEditOperation(t,new o.Q(r,1,r,c+1),"")}else this._addEditOperation(t,new o.Q(r,1,r,1),s),r!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.L(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.L(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.L(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=s=h([d(2,l.JZ)],p)},8597:(e,t,i)=>{"use strict";i.d(t,{$:()=>Ue,BC:()=>Ie,BK:()=>j,Be:()=>F,Bx:()=>we,CE:()=>ze,Cl:()=>ee,Di:()=>Qe,Ej:()=>G,Er:()=>Se,Fv:()=>L,H4:()=>$,Hs:()=>Oe,Ij:()=>D,Iv:()=>w,L9:()=>H,Ln:()=>De,Mc:()=>et,OK:()=>Q,Oq:()=>M,PG:()=>P,Pl:()=>Ne,Q2:()=>b,QX:()=>X,TT:()=>$e,Tf:()=>je,Tr:()=>Y,U2:()=>_e,U3:()=>O,WU:()=>Be,Wt:()=>fe,X7:()=>se,XD:()=>Z,Xc:()=>I,ZF:()=>S,a:()=>re,a4:()=>qe,b2:()=>N,bo:()=>He,bq:()=>ie,cL:()=>z,fg:()=>V,fs:()=>Le,fz:()=>oe,gI:()=>Ye,h:()=>Je,i0:()=>Ge,jD:()=>We,jG:()=>te,jh:()=>ce,ko:()=>k,kx:()=>ye,li:()=>he,mU:()=>K,nR:()=>ne,nY:()=>Ee,pN:()=>Xe,q3:()=>R,sb:()=>Ce,sd:()=>Re,tG:()=>B,vT:()=>Ve,w5:()=>Ae,w_:()=>T,wk:()=>xe,xZ:()=>be,y6:()=>q,yt:()=>Ke,zK:()=>Te,zk:()=>_});var s=i(60413),n=i(55089),r=i(72962),o=i(47358),a=i(90766),c=i(64383),l=i(41234),h=i(83750),d=i(5662),u=i(36456),g=i(98067),p=i(85600),m=i(25893);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:C,getWindowsCount:E,getWindowId:b,getWindowById:S,hasWindow:y,onDidRegisterWindow:w,onWillUnregisterWindow:R,onDidUnregisterWindow:L}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new d.Cm};e.set(m.G.vscodeWindowId,t);const i=new l.vl,s=new l.vl,n=new l.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:s.event,registerWindow(t){if(e.has(t.vscodeWindowId))return d.jG.None;const r=new d.Cm,o={window:t,disposables:r.add(new d.Cm)};return e.set(t.vscodeWindowId,o),r.add((0,d.s)((()=>{e.delete(t.vscodeWindowId),s.fire(t)}))),r.add(k(t,we.BEFORE_UNLOAD,(()=>{n.fire(t)}))),i.fire(o),r},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,s){return("number"===typeof i?e.get(i):void 0)??(s?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:m.G},getDocument:e=>_(e).document}}();function T(e){for(;e.firstChild;)e.firstChild.remove()}class x{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!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 k(e,t,i,s){return new x(e,t,i,s)}function A(e,t){return function(i){return t(new o.P(e,i))}}const N=function(e,t,i,s){let n=i;return"click"===t||"mousedown"===t||"contextmenu"===t?n=A(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(n=function(e){return function(t){return e(new r.Z(t))}}(i)),k(e,t,n,s)},I=function(e,t,i){return function(e,t,i){return k(e,g.un&&n.e.pointerEvents?we.POINTER_DOWN:we.MOUSE_DOWN,t,i)}(e,A(_(e),t),i)};function O(e,t,i){return(0,a.b7)(e,t,i)}class D extends a.A0{constructor(e,t){super(e,t)}}let M,P;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class U{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,c.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function H(e){return _(e).getComputedStyle(e,null)}function B(e,t){const i=_(e),s=i.document;if(e!==s.body)return new V(e.clientWidth,e.clientHeight);if(g.un&&i?.visualViewport)return new V(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new V(i.innerWidth,i.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new V(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new V(s.documentElement.clientWidth,s.documentElement.clientHeight);if(t)return B(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,s=new Map;P=(n,r,o=0)=>{const a=b(n),c=new U(r,o);let l=e.get(a);return l||(l=[],e.set(a,l)),l.push(c),i.get(a)||(i.set(a,!0),n.requestAnimationFrame((()=>(n=>{i.set(n,!1);const r=e.get(n)??[];for(t.set(n,r),e.set(n,[]),s.set(n,!0);r.length>0;)r.sort(U.sort),r.shift().execute();s.set(n,!1)})(a)))),c},M=(e,i,n)=>{const r=b(e);if(s.get(r)){const e=new U(i,n);let s=t.get(r);return s||(s=[],t.set(r,s)),s.push(e),e}return P(e,i,n)}}();class W{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const s=H(e),n=s?s.getPropertyValue(t):"0";return W.convertToPixels(e,n)}static getBorderLeftWidth(e){return W.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return W.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return W.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return W.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return W.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return W.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return W.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return W.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return W.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return W.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return W.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return W.getDimension(e,"margin-bottom","marginBottom")}}class V{static{this.None=new V(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new V(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof V?e:new V(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function z(e){let t=e.offsetParent,i=e.offsetTop,s=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const n=J(e)?null:H(e);n&&(s-="rtl"!==n.direction?e.scrollLeft:-e.scrollLeft),e===t&&(s+=W.getBorderLeftWidth(e),i+=W.getBorderTopWidth(e),i+=e.offsetTop,s+=e.offsetLeft,t=e.offsetParent)}return{left:s,top:i}}function G(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function j(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function K(e){let t=e,i=1;do{const e=H(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Y(e){const t=W.getMarginLeft(e)+W.getMarginRight(e);return e.offsetWidth+t}function q(e){const t=W.getBorderLeftWidth(e)+W.getBorderRightWidth(e),i=W.getPaddingLeft(e)+W.getPaddingRight(e);return e.offsetWidth-t-i}function $(e){const t=W.getBorderTopWidth(e)+W.getBorderBottomWidth(e),i=W.getPaddingTop(e)+W.getPaddingBottom(e);return e.offsetHeight-t-i}function Q(e){const t=W.getMarginTop(e)+W.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(t?.contains(e))}function Z(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=re().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function se(e){return ie()===e}function ne(e){return X(ie(),e)}function re(){if(E()<=1)return m.G.document;return Array.from(C()).map((({window:e})=>e.document)).find((e=>e.hasFocus()))??m.G.document}function oe(){const e=re();return e.defaultView?.window??m.G}const ae=new Map;function ce(){return new le}class le{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(e=m.G.document.head,t,i){const s=document.createElement("style");if(s.type="text/css",s.media="screen",t?.(s),e.appendChild(s),i&&i.add((0,d.s)((()=>s.remove()))),e===m.G.document.head){const e=new Set;ae.set(s,e);for(const{window:t,disposables:n}of C()){if(t===m.G)continue;const r=n.add(de(s,e,t));i?.add(r)}}return s}function de(e,t,i){const s=new d.Cm,n=e.cloneNode(!0);i.document.head.appendChild(n),s.add((0,d.s)((()=>n.remove())));for(const r of me(e))n.sheet?.insertRule(r.cssText,n.sheet?.cssRules.length);return s.add(ue.observe(e,s,{childList:!0})((()=>{n.textContent=e.textContent}))),t.add(n),s.add((0,d.s)((()=>t.delete(n)))),s}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let s=this.mutationObservers.get(e);s||(s=new Map,this.mutationObservers.set(e,s));const n=(0,p.tW)(i);let r=s.get(n);if(r)r.users+=1;else{const o=new l.vl,a=new MutationObserver((e=>o.fire(e)));a.observe(e,i);const c=r={users:1,observer:a,onDidMutate:o.event};t.add((0,d.s)((()=>{c.users-=1,0===c.users&&(o.dispose(),a.disconnect(),s?.delete(n),0===s?.size&&this.mutationObservers.delete(e))}))),s.set(n,r)}return r.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function fe(e,t,i=pe()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const s of ae.get(i)??[])fe(e,t,s)}}function _e(e,t=pe()){if(!t)return;const i=me(t),s=[];for(let n=0;n<i.length;n++){const t=i[n];ve(t)&&-1!==t.selectorText.indexOf(e)&&s.push(n)}for(let n=s.length-1;n>=0;n--)t.sheet?.deleteRule(s[n]);for(const n of ae.get(t)??[])_e(e,n)}function ve(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof HTMLElement||e instanceof _(e).HTMLElement}function Ee(e){return e instanceof HTMLAnchorElement||e instanceof _(e).HTMLAnchorElement}function be(e){return e instanceof SVGElement||e instanceof _(e).SVGElement}function Se(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function ye(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const we={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",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:s.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:s.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:s.Tc?"webkitAnimationIteration":"animationiteration"};function Re(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Le={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Te(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(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 ke extends d.jG{static hasFocusWithin(e){if(Ce(e)){const t=te(e);return X(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new l.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const s=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},n=()=>{t&&(i=!0,(Ce(e)?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?n():s())},this._register(k(e,we.FOCUS,s,!0)),this._register(k(e,we.BLUR,n,!0)),Ce(e)&&(this._register(k(e,we.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(k(e,we.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Ae(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ie(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Oe(e,t){return e.insertBefore(t,e.firstChild),t}function De(e,...t){e.innerText="",Ie(e,...t)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Pe;function Fe(e,t,i,...s){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const r=n[1]||"div";let o;return o=e!==Pe.HTML?document.createElementNS(e,r):document.createElement(r),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))})),o.append(...s),o}function Ue(e,t,...i){return Fe(Pe.HTML,e,t,...i)}function He(e,...t){e?Be(...t):We(...t)}function Be(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function We(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){m.G.open(e,"_blank","noopener")}function Ge(e,t){const i=()=>{t(),s=P(e,i)};let s=P(e,i);return(0,d.s)((()=>s.dispose()))}function je(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Ke(e){return`'${e.replace(/'/g,"%27")}'`}function Ye(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ye(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function qe(e,t=!1){const i=document.createElement("a");return h.$w("afterSanitizeAttributes",(s=>{for(const n of["href","src"])if(s.hasAttribute(n)){const r=s.getAttribute(n);if("href"===n&&r.startsWith("#"))continue;if(i.href=r,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===n&&i.href.startsWith("data:"))continue;s.removeAttribute(n)}}})),(0,d.s)((()=>{h.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Pe||(Pe={})),Ue.SVG=function(e,t,...i){return Fe(Pe.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const $e=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends l.vl{constructor(){super(),this._subscriptions=new d.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(l.Jh.runAndSubscribe(w,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(k(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new r.Z(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(k(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(k(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(k(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 Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Xe extends d.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(k(this.element,we.DRAG_START,(e=>{this.callbacks.onDragStart?.(e)}))),this.callbacks.onDrag&&this._register(k(this.element,we.DRAG,(e=>{this.callbacks.onDrag?.(e)}))),this._register(k(this.element,we.DRAG_ENTER,(e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)}))),this._register(k(this.element,we.DRAG_OVER,(e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)}))),this._register(k(this.element,we.DRAG_LEAVE,(e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))}))),this._register(k(this.element,we.DRAG_END,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)}))),this._register(k(this.element,we.DROP,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)})))}}const Ze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Je(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElement(r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function et(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElementNS("http://www.w3.org/2000/svg",r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const l of n.groups.class.split("."))""!==l&&a.push(l);if(void 0!==i.className)for(const l of i.className.split("."))""!==l&&a.push(l);a.length>0&&(o.className=a.join(" "));const c={};if(n.groups.name&&(c[n.groups.name]=o),s)for(const l of s)Ce(l)?o.appendChild(l):"string"===typeof l?o.append(l):"root"in l&&(Object.assign(c,l),o.appendChild(l.root));for(const[l,h]of Object.entries(i))if("className"!==l)if("style"===l)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===l?o.tabIndex=h:o.setAttribute(tt(l),h.toString());return c.root=o,c}function tt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},8603:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.OBJECT_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.OBJECT_END):t.drawCompactView(a,i)?(r+=t.OBJECT_START,r+=s(o,i,n-1),r+=t.OBJECT_END):r+=t.OBJECT_START+t.OBJECT_END,r}}},8868:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2994).then(i.bind(i,2994))})},8964:(e,t,i)=>{"use strict";i.d(t,{R:()=>a,J:()=>o});var s=i(1448);const n=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),r=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),o=new s.TH;o.registerKeysets("en",n),o.registerKeysets("ru",r);const a=o.i18n.bind(o)},8995:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});class s{static{this.sep="."}static{this.None=new s("@@none@@")}static{this.Empty=new s("")}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+s.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new s((this.value?[this.value,...e]:e).join(s.sep))}}},9208:(e,t,i)=>{e.exports=i(8603)},9270:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(8597),n=i(52776),r=i(5662),o=i(98031),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=s.$;let h=class extends r.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this.actions=[],this._hasContent=!1,this.hoverElement=l("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=s.BC(this.hoverElement,l("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;this._hasContent=!0;const s=this._register(n.jQ.render(this.actionsElement,e,i));return this.actions.push(s),s}append(e){const t=s.BC(this.actionsElement,e);return this._hasContent=!0,t}};h=a([c(0,o.b)],h)},9711:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>_,LP:()=>m});var s,n,r=i(41234),o=i(5662),a=i(631),c=i(90766),l=i(908);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(n||(n={}));class h extends o.jG{static{this.DEFAULT_FLUSH_DELAY=100}constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=this._register(new c.Th(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){this._onDidChangeStorage.pause();try{e.changed?.forEach(((e,t)=>this.acceptExternal(t,e))),e.deleted?.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===n.Closed)return;let i=!1;if((0,a.z)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===n.Closed)return;if((0,a.z)(t))return this.delete(e,i);const s=(0,a.Gv)(t)||Array.isArray(t)?(0,l.As)(t):String(t);return this.cache.get(e)!==s?(this.cache.set(e,s),this.pendingInserts.set(e,s),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===n.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()}))}async doFlush(e){return this.options.hint===s.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}class d{constructor(){this.onDidChangeItemsExternal=r.Jh.None,this.items=new Map}async updateItems(e){e.insert?.forEach(((e,t)=>this.items.set(t,e))),e.delete?.forEach((e=>this.items.delete(e)))}}var u=i(63591);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends o.jG{static{this.DEFAULT_FLUSH_INTERVAL=6e4}constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.fV),this._onDidChangeTarget=this._register(new r.fV),this._onWillSaveState=this._register(new r.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:s}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:s})}get(e,t,i){return this.getStorage(t)?.get(e,i)}getBoolean(e,t,i){return this.getStorage(t)?.getBoolean(e,i)}getNumber(e,t,i){return this.getStorage(t)?.getNumber(e,i)}store(e,t,i,s,n=!1){(0,a.z)(t)?this.remove(e,i,n):this.withPausedEmitters((()=>{this.updateKeyTarget(e,i,s),this.getStorage(i)?.set(e,t,n)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{this.updateKeyTarget(e,t,void 0),this.getStorage(t)?.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,s=!1){const n=this.getKeyTargets(t);"number"===typeof i?n[e]!==i&&(n[e]=i,this.getStorage(t)?.set(g,JSON.stringify(n),s)):"number"===typeof n[e]&&(delete n[e],this.getStorage(t)?.set(g,JSON.stringify(n),s))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>S,nM:()=>b});var s,n=i(90766),r=i(47661),o=i(64383),a=i(41234),c=i(5662),l=i(78381),h=i(91508),d=i(37734),u=i(31450),g=i(36677),p=i(87289),m=i(32500),f=i(56942),_=i(68310),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=Object.create({});let S=class extends c.jG{static{s=this}static{this.ID="editor.contrib.colorDetector"}static{this.RECOMPUTE_TIME=1e3}constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new c.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d.Qn(this._editor),this._decoratorLimitReporter=new y,this._colorDecorationClassRefs=this._register(new c.Cm),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:s.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),s=e.hasChanged(148);(i||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new n.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,n.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new l.W(!1),s=await(0,_.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),s}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,o.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let n=0;n<e.length&&t.length<i;n++){const{red:i,green:s,blue:o,alpha:a}=e[n].colorInfo.color,c=new r.bU(Math.round(255*i),Math.round(255*s),Math.round(255*o),a),l=`rgba(${c.r}, ${c.g}, ${c.b}, ${c.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:l}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.S8,inlineClassName:`${d.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:b}}})}const s=i<e.length&&i;this._decoratorLimitReporter.update(e.length,s),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};S=s=C([E(1,v.pG),E(2,f.ILanguageFeaturesService),E(3,m.ILanguageFeatureDebounceService)],S);class y{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(S.ID,S,1)},9948:(e,t,i)=>{"use strict";i.d(t,{I:()=>f});var s=i(8597),n=i(90766),r=i(10350),o=i(5662),a=i(91508),c=i(25689),l=i(36677),h=i(87289),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=h.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends o.jG{static{this.baseId="editor.widget.inlineProgressWidget"}constructor(e,t,i,s,n){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=s.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=s.$("span.icon");this.domNode.append(t),t.classList.add(...c.L.asClassNameArray(r.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(s.ko(this.domNode,s.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}let f=class extends o.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new o.HE),this._currentWidget=this._register(new o.HE),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=(0,n.EQ)((()=>{const i=l.Q.fromPositions(e);this._currentDecorations.set([{range:i,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,i,t,s))}),r??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,d._Y)],f)},10072:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(11278).then(i.bind(i,11278))})},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>n,PI:()=>a,V0:()=>d,aI:()=>h,co:()=>l,kT:()=>u,ol:()=>r});var s=i(631);function n(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?n(i):i})),t}function r(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(o.call(e,i)){const n=e[i];"object"!==typeof n||Object.isFrozen(n)||(0,s.iu)(n)||t.push(n)}}return e}const o=Object.prototype.hasOwnProperty;function a(e,t){return c(e,t,new Set)}function c(e,t,i){if((0,s.z)(e))return e;const n=t(e);if("undefined"!==typeof n)return n;if(Array.isArray(e)){const s=[];for(const n of e)s.push(c(n,t,i));return s}if((0,s.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const s={};for(const n in e)o.call(e,n)&&(s[n]=c(e[n],t,i));return i.delete(e),s}return e}function l(e,t,i=!0){return(0,s.Gv)(e)?((0,s.Gv)(t)&&Object.keys(t).forEach((n=>{n in e?i&&((0,s.Gv)(e[n])&&(0,s.Gv)(t[n])?l(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const n=[];for(s in e)n.push(s);n.sort();const r=[];for(s in t)r.push(s);if(r.sort(),!h(n,r))return!1;for(i=0;i<n.length;i++)if(!h(e[n[i]],t[n[i]]))return!1}return!0}function d(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const n of e)s[n]=i(n);return s}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},10350:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});var s=i(18956);const n={...{add:(0,s.k)("add",6e4),plus:(0,s.k)("plus",6e4),gistNew:(0,s.k)("gist-new",6e4),repoCreate:(0,s.k)("repo-create",6e4),lightbulb:(0,s.k)("lightbulb",60001),lightBulb:(0,s.k)("light-bulb",60001),repo:(0,s.k)("repo",60002),repoDelete:(0,s.k)("repo-delete",60002),gistFork:(0,s.k)("gist-fork",60003),repoForked:(0,s.k)("repo-forked",60003),gitPullRequest:(0,s.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,s.k)("git-pull-request-abandoned",60004),recordKeys:(0,s.k)("record-keys",60005),keyboard:(0,s.k)("keyboard",60005),tag:(0,s.k)("tag",60006),gitPullRequestLabel:(0,s.k)("git-pull-request-label",60006),tagAdd:(0,s.k)("tag-add",60006),tagRemove:(0,s.k)("tag-remove",60006),person:(0,s.k)("person",60007),personFollow:(0,s.k)("person-follow",60007),personOutline:(0,s.k)("person-outline",60007),personFilled:(0,s.k)("person-filled",60007),gitBranch:(0,s.k)("git-branch",60008),gitBranchCreate:(0,s.k)("git-branch-create",60008),gitBranchDelete:(0,s.k)("git-branch-delete",60008),sourceControl:(0,s.k)("source-control",60008),mirror:(0,s.k)("mirror",60009),mirrorPublic:(0,s.k)("mirror-public",60009),star:(0,s.k)("star",60010),starAdd:(0,s.k)("star-add",60010),starDelete:(0,s.k)("star-delete",60010),starEmpty:(0,s.k)("star-empty",60010),comment:(0,s.k)("comment",60011),commentAdd:(0,s.k)("comment-add",60011),alert:(0,s.k)("alert",60012),warning:(0,s.k)("warning",60012),search:(0,s.k)("search",60013),searchSave:(0,s.k)("search-save",60013),logOut:(0,s.k)("log-out",60014),signOut:(0,s.k)("sign-out",60014),logIn:(0,s.k)("log-in",60015),signIn:(0,s.k)("sign-in",60015),eye:(0,s.k)("eye",60016),eyeUnwatch:(0,s.k)("eye-unwatch",60016),eyeWatch:(0,s.k)("eye-watch",60016),circleFilled:(0,s.k)("circle-filled",60017),primitiveDot:(0,s.k)("primitive-dot",60017),closeDirty:(0,s.k)("close-dirty",60017),debugBreakpoint:(0,s.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,s.k)("debug-breakpoint-disabled",60017),debugHint:(0,s.k)("debug-hint",60017),terminalDecorationSuccess:(0,s.k)("terminal-decoration-success",60017),primitiveSquare:(0,s.k)("primitive-square",60018),edit:(0,s.k)("edit",60019),pencil:(0,s.k)("pencil",60019),info:(0,s.k)("info",60020),issueOpened:(0,s.k)("issue-opened",60020),gistPrivate:(0,s.k)("gist-private",60021),gitForkPrivate:(0,s.k)("git-fork-private",60021),lock:(0,s.k)("lock",60021),mirrorPrivate:(0,s.k)("mirror-private",60021),close:(0,s.k)("close",60022),removeClose:(0,s.k)("remove-close",60022),x:(0,s.k)("x",60022),repoSync:(0,s.k)("repo-sync",60023),sync:(0,s.k)("sync",60023),clone:(0,s.k)("clone",60024),desktopDownload:(0,s.k)("desktop-download",60024),beaker:(0,s.k)("beaker",60025),microscope:(0,s.k)("microscope",60025),vm:(0,s.k)("vm",60026),deviceDesktop:(0,s.k)("device-desktop",60026),file:(0,s.k)("file",60027),fileText:(0,s.k)("file-text",60027),more:(0,s.k)("more",60028),ellipsis:(0,s.k)("ellipsis",60028),kebabHorizontal:(0,s.k)("kebab-horizontal",60028),mailReply:(0,s.k)("mail-reply",60029),reply:(0,s.k)("reply",60029),organization:(0,s.k)("organization",60030),organizationFilled:(0,s.k)("organization-filled",60030),organizationOutline:(0,s.k)("organization-outline",60030),newFile:(0,s.k)("new-file",60031),fileAdd:(0,s.k)("file-add",60031),newFolder:(0,s.k)("new-folder",60032),fileDirectoryCreate:(0,s.k)("file-directory-create",60032),trash:(0,s.k)("trash",60033),trashcan:(0,s.k)("trashcan",60033),history:(0,s.k)("history",60034),clock:(0,s.k)("clock",60034),folder:(0,s.k)("folder",60035),fileDirectory:(0,s.k)("file-directory",60035),symbolFolder:(0,s.k)("symbol-folder",60035),logoGithub:(0,s.k)("logo-github",60036),markGithub:(0,s.k)("mark-github",60036),github:(0,s.k)("github",60036),terminal:(0,s.k)("terminal",60037),console:(0,s.k)("console",60037),repl:(0,s.k)("repl",60037),zap:(0,s.k)("zap",60038),symbolEvent:(0,s.k)("symbol-event",60038),error:(0,s.k)("error",60039),stop:(0,s.k)("stop",60039),variable:(0,s.k)("variable",60040),symbolVariable:(0,s.k)("symbol-variable",60040),array:(0,s.k)("array",60042),symbolArray:(0,s.k)("symbol-array",60042),symbolModule:(0,s.k)("symbol-module",60043),symbolPackage:(0,s.k)("symbol-package",60043),symbolNamespace:(0,s.k)("symbol-namespace",60043),symbolObject:(0,s.k)("symbol-object",60043),symbolMethod:(0,s.k)("symbol-method",60044),symbolFunction:(0,s.k)("symbol-function",60044),symbolConstructor:(0,s.k)("symbol-constructor",60044),symbolBoolean:(0,s.k)("symbol-boolean",60047),symbolNull:(0,s.k)("symbol-null",60047),symbolNumeric:(0,s.k)("symbol-numeric",60048),symbolNumber:(0,s.k)("symbol-number",60048),symbolStructure:(0,s.k)("symbol-structure",60049),symbolStruct:(0,s.k)("symbol-struct",60049),symbolParameter:(0,s.k)("symbol-parameter",60050),symbolTypeParameter:(0,s.k)("symbol-type-parameter",60050),symbolKey:(0,s.k)("symbol-key",60051),symbolText:(0,s.k)("symbol-text",60051),symbolReference:(0,s.k)("symbol-reference",60052),goToFile:(0,s.k)("go-to-file",60052),symbolEnum:(0,s.k)("symbol-enum",60053),symbolValue:(0,s.k)("symbol-value",60053),symbolRuler:(0,s.k)("symbol-ruler",60054),symbolUnit:(0,s.k)("symbol-unit",60054),activateBreakpoints:(0,s.k)("activate-breakpoints",60055),archive:(0,s.k)("archive",60056),arrowBoth:(0,s.k)("arrow-both",60057),arrowDown:(0,s.k)("arrow-down",60058),arrowLeft:(0,s.k)("arrow-left",60059),arrowRight:(0,s.k)("arrow-right",60060),arrowSmallDown:(0,s.k)("arrow-small-down",60061),arrowSmallLeft:(0,s.k)("arrow-small-left",60062),arrowSmallRight:(0,s.k)("arrow-small-right",60063),arrowSmallUp:(0,s.k)("arrow-small-up",60064),arrowUp:(0,s.k)("arrow-up",60065),bell:(0,s.k)("bell",60066),bold:(0,s.k)("bold",60067),book:(0,s.k)("book",60068),bookmark:(0,s.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,s.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,s.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,s.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,s.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,s.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,s.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,s.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,s.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,s.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,s.k)("briefcase",60076),broadcast:(0,s.k)("broadcast",60077),browser:(0,s.k)("browser",60078),bug:(0,s.k)("bug",60079),calendar:(0,s.k)("calendar",60080),caseSensitive:(0,s.k)("case-sensitive",60081),check:(0,s.k)("check",60082),checklist:(0,s.k)("checklist",60083),chevronDown:(0,s.k)("chevron-down",60084),chevronLeft:(0,s.k)("chevron-left",60085),chevronRight:(0,s.k)("chevron-right",60086),chevronUp:(0,s.k)("chevron-up",60087),chromeClose:(0,s.k)("chrome-close",60088),chromeMaximize:(0,s.k)("chrome-maximize",60089),chromeMinimize:(0,s.k)("chrome-minimize",60090),chromeRestore:(0,s.k)("chrome-restore",60091),circleOutline:(0,s.k)("circle-outline",60092),circle:(0,s.k)("circle",60092),debugBreakpointUnverified:(0,s.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,s.k)("terminal-decoration-incomplete",60092),circleSlash:(0,s.k)("circle-slash",60093),circuitBoard:(0,s.k)("circuit-board",60094),clearAll:(0,s.k)("clear-all",60095),clippy:(0,s.k)("clippy",60096),closeAll:(0,s.k)("close-all",60097),cloudDownload:(0,s.k)("cloud-download",60098),cloudUpload:(0,s.k)("cloud-upload",60099),code:(0,s.k)("code",60100),collapseAll:(0,s.k)("collapse-all",60101),colorMode:(0,s.k)("color-mode",60102),commentDiscussion:(0,s.k)("comment-discussion",60103),creditCard:(0,s.k)("credit-card",60105),dash:(0,s.k)("dash",60108),dashboard:(0,s.k)("dashboard",60109),database:(0,s.k)("database",60110),debugContinue:(0,s.k)("debug-continue",60111),debugDisconnect:(0,s.k)("debug-disconnect",60112),debugPause:(0,s.k)("debug-pause",60113),debugRestart:(0,s.k)("debug-restart",60114),debugStart:(0,s.k)("debug-start",60115),debugStepInto:(0,s.k)("debug-step-into",60116),debugStepOut:(0,s.k)("debug-step-out",60117),debugStepOver:(0,s.k)("debug-step-over",60118),debugStop:(0,s.k)("debug-stop",60119),debug:(0,s.k)("debug",60120),deviceCameraVideo:(0,s.k)("device-camera-video",60121),deviceCamera:(0,s.k)("device-camera",60122),deviceMobile:(0,s.k)("device-mobile",60123),diffAdded:(0,s.k)("diff-added",60124),diffIgnored:(0,s.k)("diff-ignored",60125),diffModified:(0,s.k)("diff-modified",60126),diffRemoved:(0,s.k)("diff-removed",60127),diffRenamed:(0,s.k)("diff-renamed",60128),diff:(0,s.k)("diff",60129),diffSidebyside:(0,s.k)("diff-sidebyside",60129),discard:(0,s.k)("discard",60130),editorLayout:(0,s.k)("editor-layout",60131),emptyWindow:(0,s.k)("empty-window",60132),exclude:(0,s.k)("exclude",60133),extensions:(0,s.k)("extensions",60134),eyeClosed:(0,s.k)("eye-closed",60135),fileBinary:(0,s.k)("file-binary",60136),fileCode:(0,s.k)("file-code",60137),fileMedia:(0,s.k)("file-media",60138),filePdf:(0,s.k)("file-pdf",60139),fileSubmodule:(0,s.k)("file-submodule",60140),fileSymlinkDirectory:(0,s.k)("file-symlink-directory",60141),fileSymlinkFile:(0,s.k)("file-symlink-file",60142),fileZip:(0,s.k)("file-zip",60143),files:(0,s.k)("files",60144),filter:(0,s.k)("filter",60145),flame:(0,s.k)("flame",60146),foldDown:(0,s.k)("fold-down",60147),foldUp:(0,s.k)("fold-up",60148),fold:(0,s.k)("fold",60149),folderActive:(0,s.k)("folder-active",60150),folderOpened:(0,s.k)("folder-opened",60151),gear:(0,s.k)("gear",60152),gift:(0,s.k)("gift",60153),gistSecret:(0,s.k)("gist-secret",60154),gist:(0,s.k)("gist",60155),gitCommit:(0,s.k)("git-commit",60156),gitCompare:(0,s.k)("git-compare",60157),compareChanges:(0,s.k)("compare-changes",60157),gitMerge:(0,s.k)("git-merge",60158),githubAction:(0,s.k)("github-action",60159),githubAlt:(0,s.k)("github-alt",60160),globe:(0,s.k)("globe",60161),grabber:(0,s.k)("grabber",60162),graph:(0,s.k)("graph",60163),gripper:(0,s.k)("gripper",60164),heart:(0,s.k)("heart",60165),home:(0,s.k)("home",60166),horizontalRule:(0,s.k)("horizontal-rule",60167),hubot:(0,s.k)("hubot",60168),inbox:(0,s.k)("inbox",60169),issueReopened:(0,s.k)("issue-reopened",60171),issues:(0,s.k)("issues",60172),italic:(0,s.k)("italic",60173),jersey:(0,s.k)("jersey",60174),json:(0,s.k)("json",60175),kebabVertical:(0,s.k)("kebab-vertical",60176),key:(0,s.k)("key",60177),law:(0,s.k)("law",60178),lightbulbAutofix:(0,s.k)("lightbulb-autofix",60179),linkExternal:(0,s.k)("link-external",60180),link:(0,s.k)("link",60181),listOrdered:(0,s.k)("list-ordered",60182),listUnordered:(0,s.k)("list-unordered",60183),liveShare:(0,s.k)("live-share",60184),loading:(0,s.k)("loading",60185),location:(0,s.k)("location",60186),mailRead:(0,s.k)("mail-read",60187),mail:(0,s.k)("mail",60188),markdown:(0,s.k)("markdown",60189),megaphone:(0,s.k)("megaphone",60190),mention:(0,s.k)("mention",60191),milestone:(0,s.k)("milestone",60192),gitPullRequestMilestone:(0,s.k)("git-pull-request-milestone",60192),mortarBoard:(0,s.k)("mortar-board",60193),move:(0,s.k)("move",60194),multipleWindows:(0,s.k)("multiple-windows",60195),mute:(0,s.k)("mute",60196),noNewline:(0,s.k)("no-newline",60197),note:(0,s.k)("note",60198),octoface:(0,s.k)("octoface",60199),openPreview:(0,s.k)("open-preview",60200),package:(0,s.k)("package",60201),paintcan:(0,s.k)("paintcan",60202),pin:(0,s.k)("pin",60203),play:(0,s.k)("play",60204),run:(0,s.k)("run",60204),plug:(0,s.k)("plug",60205),preserveCase:(0,s.k)("preserve-case",60206),preview:(0,s.k)("preview",60207),project:(0,s.k)("project",60208),pulse:(0,s.k)("pulse",60209),question:(0,s.k)("question",60210),quote:(0,s.k)("quote",60211),radioTower:(0,s.k)("radio-tower",60212),reactions:(0,s.k)("reactions",60213),references:(0,s.k)("references",60214),refresh:(0,s.k)("refresh",60215),regex:(0,s.k)("regex",60216),remoteExplorer:(0,s.k)("remote-explorer",60217),remote:(0,s.k)("remote",60218),remove:(0,s.k)("remove",60219),replaceAll:(0,s.k)("replace-all",60220),replace:(0,s.k)("replace",60221),repoClone:(0,s.k)("repo-clone",60222),repoForcePush:(0,s.k)("repo-force-push",60223),repoPull:(0,s.k)("repo-pull",60224),repoPush:(0,s.k)("repo-push",60225),report:(0,s.k)("report",60226),requestChanges:(0,s.k)("request-changes",60227),rocket:(0,s.k)("rocket",60228),rootFolderOpened:(0,s.k)("root-folder-opened",60229),rootFolder:(0,s.k)("root-folder",60230),rss:(0,s.k)("rss",60231),ruby:(0,s.k)("ruby",60232),saveAll:(0,s.k)("save-all",60233),saveAs:(0,s.k)("save-as",60234),save:(0,s.k)("save",60235),screenFull:(0,s.k)("screen-full",60236),screenNormal:(0,s.k)("screen-normal",60237),searchStop:(0,s.k)("search-stop",60238),server:(0,s.k)("server",60240),settingsGear:(0,s.k)("settings-gear",60241),settings:(0,s.k)("settings",60242),shield:(0,s.k)("shield",60243),smiley:(0,s.k)("smiley",60244),sortPrecedence:(0,s.k)("sort-precedence",60245),splitHorizontal:(0,s.k)("split-horizontal",60246),splitVertical:(0,s.k)("split-vertical",60247),squirrel:(0,s.k)("squirrel",60248),starFull:(0,s.k)("star-full",60249),starHalf:(0,s.k)("star-half",60250),symbolClass:(0,s.k)("symbol-class",60251),symbolColor:(0,s.k)("symbol-color",60252),symbolConstant:(0,s.k)("symbol-constant",60253),symbolEnumMember:(0,s.k)("symbol-enum-member",60254),symbolField:(0,s.k)("symbol-field",60255),symbolFile:(0,s.k)("symbol-file",60256),symbolInterface:(0,s.k)("symbol-interface",60257),symbolKeyword:(0,s.k)("symbol-keyword",60258),symbolMisc:(0,s.k)("symbol-misc",60259),symbolOperator:(0,s.k)("symbol-operator",60260),symbolProperty:(0,s.k)("symbol-property",60261),wrench:(0,s.k)("wrench",60261),wrenchSubaction:(0,s.k)("wrench-subaction",60261),symbolSnippet:(0,s.k)("symbol-snippet",60262),tasklist:(0,s.k)("tasklist",60263),telescope:(0,s.k)("telescope",60264),textSize:(0,s.k)("text-size",60265),threeBars:(0,s.k)("three-bars",60266),thumbsdown:(0,s.k)("thumbsdown",60267),thumbsup:(0,s.k)("thumbsup",60268),tools:(0,s.k)("tools",60269),triangleDown:(0,s.k)("triangle-down",60270),triangleLeft:(0,s.k)("triangle-left",60271),triangleRight:(0,s.k)("triangle-right",60272),triangleUp:(0,s.k)("triangle-up",60273),twitter:(0,s.k)("twitter",60274),unfold:(0,s.k)("unfold",60275),unlock:(0,s.k)("unlock",60276),unmute:(0,s.k)("unmute",60277),unverified:(0,s.k)("unverified",60278),verified:(0,s.k)("verified",60279),versions:(0,s.k)("versions",60280),vmActive:(0,s.k)("vm-active",60281),vmOutline:(0,s.k)("vm-outline",60282),vmRunning:(0,s.k)("vm-running",60283),watch:(0,s.k)("watch",60284),whitespace:(0,s.k)("whitespace",60285),wholeWord:(0,s.k)("whole-word",60286),window:(0,s.k)("window",60287),wordWrap:(0,s.k)("word-wrap",60288),zoomIn:(0,s.k)("zoom-in",60289),zoomOut:(0,s.k)("zoom-out",60290),listFilter:(0,s.k)("list-filter",60291),listFlat:(0,s.k)("list-flat",60292),listSelection:(0,s.k)("list-selection",60293),selection:(0,s.k)("selection",60293),listTree:(0,s.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,s.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,s.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,s.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,s.k)("debug-stackframe-active",60297),circleSmallFilled:(0,s.k)("circle-small-filled",60298),debugStackframeDot:(0,s.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,s.k)("terminal-decoration-mark",60298),debugStackframe:(0,s.k)("debug-stackframe",60299),debugStackframeFocused:(0,s.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,s.k)("debug-breakpoint-unsupported",60300),symbolString:(0,s.k)("symbol-string",60301),debugReverseContinue:(0,s.k)("debug-reverse-continue",60302),debugStepBack:(0,s.k)("debug-step-back",60303),debugRestartFrame:(0,s.k)("debug-restart-frame",60304),debugAlt:(0,s.k)("debug-alt",60305),callIncoming:(0,s.k)("call-incoming",60306),callOutgoing:(0,s.k)("call-outgoing",60307),menu:(0,s.k)("menu",60308),expandAll:(0,s.k)("expand-all",60309),feedback:(0,s.k)("feedback",60310),gitPullRequestReviewer:(0,s.k)("git-pull-request-reviewer",60310),groupByRefType:(0,s.k)("group-by-ref-type",60311),ungroupByRefType:(0,s.k)("ungroup-by-ref-type",60312),account:(0,s.k)("account",60313),gitPullRequestAssignee:(0,s.k)("git-pull-request-assignee",60313),bellDot:(0,s.k)("bell-dot",60314),debugConsole:(0,s.k)("debug-console",60315),library:(0,s.k)("library",60316),output:(0,s.k)("output",60317),runAll:(0,s.k)("run-all",60318),syncIgnored:(0,s.k)("sync-ignored",60319),pinned:(0,s.k)("pinned",60320),githubInverted:(0,s.k)("github-inverted",60321),serverProcess:(0,s.k)("server-process",60322),serverEnvironment:(0,s.k)("server-environment",60323),pass:(0,s.k)("pass",60324),issueClosed:(0,s.k)("issue-closed",60324),stopCircle:(0,s.k)("stop-circle",60325),playCircle:(0,s.k)("play-circle",60326),record:(0,s.k)("record",60327),debugAltSmall:(0,s.k)("debug-alt-small",60328),vmConnect:(0,s.k)("vm-connect",60329),cloud:(0,s.k)("cloud",60330),merge:(0,s.k)("merge",60331),export:(0,s.k)("export",60332),graphLeft:(0,s.k)("graph-left",60333),magnet:(0,s.k)("magnet",60334),notebook:(0,s.k)("notebook",60335),redo:(0,s.k)("redo",60336),checkAll:(0,s.k)("check-all",60337),pinnedDirty:(0,s.k)("pinned-dirty",60338),passFilled:(0,s.k)("pass-filled",60339),circleLargeFilled:(0,s.k)("circle-large-filled",60340),circleLarge:(0,s.k)("circle-large",60341),circleLargeOutline:(0,s.k)("circle-large-outline",60341),combine:(0,s.k)("combine",60342),gather:(0,s.k)("gather",60342),table:(0,s.k)("table",60343),variableGroup:(0,s.k)("variable-group",60344),typeHierarchy:(0,s.k)("type-hierarchy",60345),typeHierarchySub:(0,s.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,s.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,s.k)("git-pull-request-create",60348),runAbove:(0,s.k)("run-above",60349),runBelow:(0,s.k)("run-below",60350),notebookTemplate:(0,s.k)("notebook-template",60351),debugRerun:(0,s.k)("debug-rerun",60352),workspaceTrusted:(0,s.k)("workspace-trusted",60353),workspaceUntrusted:(0,s.k)("workspace-untrusted",60354),workspaceUnknown:(0,s.k)("workspace-unknown",60355),terminalCmd:(0,s.k)("terminal-cmd",60356),terminalDebian:(0,s.k)("terminal-debian",60357),terminalLinux:(0,s.k)("terminal-linux",60358),terminalPowershell:(0,s.k)("terminal-powershell",60359),terminalTmux:(0,s.k)("terminal-tmux",60360),terminalUbuntu:(0,s.k)("terminal-ubuntu",60361),terminalBash:(0,s.k)("terminal-bash",60362),arrowSwap:(0,s.k)("arrow-swap",60363),copy:(0,s.k)("copy",60364),personAdd:(0,s.k)("person-add",60365),filterFilled:(0,s.k)("filter-filled",60366),wand:(0,s.k)("wand",60367),debugLineByLine:(0,s.k)("debug-line-by-line",60368),inspect:(0,s.k)("inspect",60369),layers:(0,s.k)("layers",60370),layersDot:(0,s.k)("layers-dot",60371),layersActive:(0,s.k)("layers-active",60372),compass:(0,s.k)("compass",60373),compassDot:(0,s.k)("compass-dot",60374),compassActive:(0,s.k)("compass-active",60375),azure:(0,s.k)("azure",60376),issueDraft:(0,s.k)("issue-draft",60377),gitPullRequestClosed:(0,s.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,s.k)("git-pull-request-draft",60379),debugAll:(0,s.k)("debug-all",60380),debugCoverage:(0,s.k)("debug-coverage",60381),runErrors:(0,s.k)("run-errors",60382),folderLibrary:(0,s.k)("folder-library",60383),debugContinueSmall:(0,s.k)("debug-continue-small",60384),beakerStop:(0,s.k)("beaker-stop",60385),graphLine:(0,s.k)("graph-line",60386),graphScatter:(0,s.k)("graph-scatter",60387),pieChart:(0,s.k)("pie-chart",60388),bracket:(0,s.k)("bracket",60175),bracketDot:(0,s.k)("bracket-dot",60389),bracketError:(0,s.k)("bracket-error",60390),lockSmall:(0,s.k)("lock-small",60391),azureDevops:(0,s.k)("azure-devops",60392),verifiedFilled:(0,s.k)("verified-filled",60393),newline:(0,s.k)("newline",60394),layout:(0,s.k)("layout",60395),layoutActivitybarLeft:(0,s.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,s.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,s.k)("layout-panel-left",60398),layoutPanelCenter:(0,s.k)("layout-panel-center",60399),layoutPanelJustify:(0,s.k)("layout-panel-justify",60400),layoutPanelRight:(0,s.k)("layout-panel-right",60401),layoutPanel:(0,s.k)("layout-panel",60402),layoutSidebarLeft:(0,s.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,s.k)("layout-sidebar-right",60404),layoutStatusbar:(0,s.k)("layout-statusbar",60405),layoutMenubar:(0,s.k)("layout-menubar",60406),layoutCentered:(0,s.k)("layout-centered",60407),target:(0,s.k)("target",60408),indent:(0,s.k)("indent",60409),recordSmall:(0,s.k)("record-small",60410),errorSmall:(0,s.k)("error-small",60411),terminalDecorationError:(0,s.k)("terminal-decoration-error",60411),arrowCircleDown:(0,s.k)("arrow-circle-down",60412),arrowCircleLeft:(0,s.k)("arrow-circle-left",60413),arrowCircleRight:(0,s.k)("arrow-circle-right",60414),arrowCircleUp:(0,s.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,s.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,s.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,s.k)("layout-sidebar-left-off",60418),blank:(0,s.k)("blank",60419),heartFilled:(0,s.k)("heart-filled",60420),map:(0,s.k)("map",60421),mapHorizontal:(0,s.k)("map-horizontal",60421),foldHorizontal:(0,s.k)("fold-horizontal",60421),mapFilled:(0,s.k)("map-filled",60422),mapHorizontalFilled:(0,s.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,s.k)("fold-horizontal-filled",60422),circleSmall:(0,s.k)("circle-small",60423),bellSlash:(0,s.k)("bell-slash",60424),bellSlashDot:(0,s.k)("bell-slash-dot",60425),commentUnresolved:(0,s.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,s.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,s.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,s.k)("search-fuzzy",60429),commentDraft:(0,s.k)("comment-draft",60430),send:(0,s.k)("send",60431),sparkle:(0,s.k)("sparkle",60432),insert:(0,s.k)("insert",60433),mic:(0,s.k)("mic",60434),thumbsdownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsupFilled:(0,s.k)("thumbsup-filled",60436),coffee:(0,s.k)("coffee",60437),snake:(0,s.k)("snake",60438),game:(0,s.k)("game",60439),vr:(0,s.k)("vr",60440),chip:(0,s.k)("chip",60441),piano:(0,s.k)("piano",60442),music:(0,s.k)("music",60443),micFilled:(0,s.k)("mic-filled",60444),repoFetch:(0,s.k)("repo-fetch",60445),copilot:(0,s.k)("copilot",60446),lightbulbSparkle:(0,s.k)("lightbulb-sparkle",60447),robot:(0,s.k)("robot",60448),sparkleFilled:(0,s.k)("sparkle-filled",60449),diffSingle:(0,s.k)("diff-single",60450),diffMultiple:(0,s.k)("diff-multiple",60451),surroundWith:(0,s.k)("surround-with",60452),share:(0,s.k)("share",60453),gitStash:(0,s.k)("git-stash",60454),gitStashApply:(0,s.k)("git-stash-apply",60455),gitStashPop:(0,s.k)("git-stash-pop",60456),vscode:(0,s.k)("vscode",60457),vscodeInsiders:(0,s.k)("vscode-insiders",60458),codeOss:(0,s.k)("code-oss",60459),runCoverage:(0,s.k)("run-coverage",60460),runAllCoverage:(0,s.k)("run-all-coverage",60461),coverage:(0,s.k)("coverage",60462),githubProject:(0,s.k)("github-project",60463),mapVertical:(0,s.k)("map-vertical",60464),foldVertical:(0,s.k)("fold-vertical",60464),mapVerticalFilled:(0,s.k)("map-vertical-filled",60465),foldVerticalFilled:(0,s.k)("fold-vertical-filled",60465),goToSearch:(0,s.k)("go-to-search",60466),percentage:(0,s.k)("percentage",60467),sortPercentage:(0,s.k)("sort-percentage",60467),attach:(0,s.k)("attach",60468)},...{dialogError:(0,s.k)("dialog-error","error"),dialogWarning:(0,s.k)("dialog-warning","warning"),dialogInfo:(0,s.k)("dialog-info","info"),dialogClose:(0,s.k)("dialog-close","close"),treeItemExpanded:(0,s.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,s.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,s.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,s.k)("tree-filter-clear","close"),treeItemLoading:(0,s.k)("tree-item-loading","loading"),menuSelection:(0,s.k)("menu-selection","check"),menuSubmenu:(0,s.k)("menu-submenu","chevron-right"),menuBarMore:(0,s.k)("menubar-more","more"),scrollbarButtonLeft:(0,s.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,s.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,s.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,s.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,s.k)("toolbar-more","more"),quickInputBack:(0,s.k)("quick-input-back","arrow-left"),dropDownButton:(0,s.k)("drop-down-button",60084),symbolCustomColor:(0,s.k)("symbol-customcolor",60252),exportIcon:(0,s.k)("export",60332),workspaceUnspecified:(0,s.k)("workspace-unspecified",60355),newLine:(0,s.k)("newline",60394),thumbsDownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,s.k)("thumbsup-filled",60436),gitFetch:(0,s.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,s.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,s.k)("debug-breakpoint-pending",60377)}}},10411:(e,t,i)=>{e.exports=function(e){const t=i(83823)(e);return function(e,i,s){const n=e.$value;return t(n,i,s-1)}}},10424:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>I,nr:()=>O,Sx:()=>B,po:()=>N,tj:()=>A});var s=i(8597),n=i(60413),r=i(47661),o=i(41234),a=i(62083),c=i(25982);class l{constructor(e,t,i,s,n){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=s,this.background=n}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=r.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=-1;if("string"===typeof n.fontStyle){r=0;const e=n.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let o=null;"string"===typeof n.foreground&&(o=n.foreground);let a=null;"string"===typeof n.background&&(a=n.background),t[i++]=new l(n.token||"",s,r,o,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,s="000000",n="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(s=t.foreground),null!==t.background&&(n=t.background)}const r=new d;for(const h of t)r.getId(h);const o=r.getId(s),a=r.getId(n),c=new p(i,o,a),l=new m(c);for(let h=0,d=e.length;h<d;h++){const t=e[h];l.insert(t.token,t.fontStyle,r.getId(t.foreground),r.getId(t.background))}return new u(r,l)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),s=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,s;-1===t?(i=e,s=""):(i=e.substring(0,t),s=e.substring(t+1));const n=this._children.get(i);return"undefined"!==typeof n?n.match(s):this._mainRule}insert(e,t,i,s){if(""===e)return void this._mainRule.acceptOverwrite(t,i,s);const n=e.indexOf(".");let r,o;-1===n?(r=e,o=""):(r=e.substring(0,n),o=e.substring(n+1));let a=this._children.get(r);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,i,s)}}var f=i(87119),_=i(66261);const v={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:{[_.YtV]:"#FFFFFE",[_.By2]:"#000000",[_.tan]:"#E5EBF1",[f.vV]:"#D3D3D3",[f.H0]:"#939393",[_.QwA]:"#ADD6FF4D"}},C={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:{[_.YtV]:"#1E1E1E",[_.By2]:"#D4D4D4",[_.tan]:"#3A3D41",[f.vV]:"#404040",[f.H0]:"#707070",[_.QwA]:"#ADD6FF26"}},E={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:{[_.YtV]:"#000000",[_.By2]:"#FFFFFF",[f.vV]:"#FFFFFF",[f.H0]:"#FFFFFF"}},b={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:{[_.YtV]:"#FFFFFF",[_.By2]:"#292929",[f.vV]:"#292929",[f.H0]:"#292929"}};var S=i(46359),y=i(47612),w=i(5662),R=i(86723),L=i(25689),T=i(61394);class x{getIcon(e){const t=(0,T.HT)();let i=e.defaults;for(;L.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var k=i(25893);const A="vs",N="vs-dark",I="hc-black",O="hc-light",D=S.O.as(_.FdG.ColorContribution),M=S.O.as(y.Fd.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(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){const e=new Map;for(const t in this.themeData.colors)e.set(t,r.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=U(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,r.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=D.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case A:return R.zM.LIGHT;case I:return R.zM.HIGH_CONTRAST_DARK;case O:return R.zM.HIGH_CONTRAST_LIGHT;default:return R.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=U(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],s=this.themeData.colors["editor.background"];if(i||s){const t={token:""};i&&(t.foreground=i),s&&(t.background=s),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=c.x.getForeground(s),r=c.x.getFontStyle(s);return{foreground:n,italic:Boolean(1&r),bold:Boolean(2&r),underline:Boolean(4&r),strikethrough:Boolean(8&r)}}}function F(e){return e===A||e===N||e===I||e===O}function U(e){switch(e){case A:return v;case N:return C;case I:return E;case O:return b}}function H(e){const t=U(e);return new P(e,t)}class B extends w.jG{constructor(){super(),this._onColorThemeChange=this._register(new o.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new o.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new x,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(A,H(A)),this._knownThemes.set(N,H(N)),this._knownThemes.set(I,H(I)),this._knownThemes.set(O,H(O));const e=this._register(function(e){const t=new w.Cm,i=t.add(new o.vl),n=(0,T.HT)();return t.add(n.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new x,i={},r=[],o=[];for(const e of n.getIcons()){const n=t.getIcon(e);if(!n)continue;const a=n.font,c=`--vscode-icon-${e.id}-font-family`,l=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,o.push(`${c}: ${(0,s.yt)(a.id)};`,`${l}: '${n.fontCharacter}';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,s.yt)(a.id)}; }`)):(o.push(`${l}: '${n.fontCharacter}'; ${c}: 'codicon';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; }`))}for(const e in i){const t=i[e],n=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,s.Tf)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,s.yt)(e)};${n}${o} font-display: block; }`)}return r.push(`:root { ${o.join(" ")} }`),r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(A),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,n.Dy)(k.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return s.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=s.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),w.jG.None}_registerShadowDomContainer(e){const t=s.li(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 new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(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(A),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=k.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,R.Bb)(this._theme.type)){let t;t=(0,R.HD)(this._theme.type)?e?I:N:e?O:A,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};M.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const s=[];for(const r of D.getColors()){const e=this._theme.getColor(r.id,!0);e&&s.push(`${(0,_.Bbc)(r.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${s.join("\n")} }`);const n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,s=e.length;i<s;i++){const s=e[i];t[i]=`.mtk${i} { color: ${s}; }`}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")}(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},10602:(e,t,i)=>{e.exports=i(2539)},10617:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(31450),a=i(83069),c=i(36677),l=i(75326),h=i(60002),d=i(39286),u=i(91508);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,s),this._addWordRanges(t,e,s),this._addWhitespaceLine(t,e,s),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const s=t.getWordAtPosition(i);if(!s)return;const{word:n,startColumn:r}=s,o=i.column-r;let a=o,l=o,h=0;for(;a>=0;a--){const e=n.charCodeAt(a);if(a!==o&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(h))break;h=e}for(a+=1;l<n.length;l++){const e=n.charCodeAt(l);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<l&&e.push({range:new c.Q(i.lineNumber,r+a,i.lineNumber,r+l)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new c.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new c.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(78209),f=i(27195),_=i(50091),v=i(56942),C=i(18938),E=i(631),b=i(79400),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new w(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let R=class{static{p=this}static{this.ID="editor.contrib.smartSelectController"}static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await T(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(114),n.XO.None).then((e=>{if(s.EI(e)&&e.length===t.length&&this._editor.hasModel()&&s.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new w(0,e))),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const r=this._state.map((e=>l.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};R=p=S([y(1,v.ILanguageFeaturesService)],R);class L extends o.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=R.get(t);i&&await i.run(this._forward)}}_.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function T(e,t,i,n,o){const l=e.all(t).concat(new g(n.selectSubwords));1===l.length&&l.unshift(new d.n);const h=[],u=[];for(const a of l)h.push(Promise.resolve(a.provideSelectionRanges(t,i,o)).then((e=>{if(s.EI(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const s of e[t])c.Q.isIRange(s.range)&&c.Q.containsPosition(s.range,i[t])&&u[t].push(c.Q.lift(s.range))}}),r.M_));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let s;for(const t of e)(!s||c.Q.containsRange(t,s)&&!c.Q.equalsRange(t,s))&&(i.push(t),s=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const r=[i[0]];for(let n=1;n<i.length;n++){const e=i[n-1],s=i[n];if(s.startLineNumber!==e.startLineNumber||s.endLineNumber!==e.endLineNumber){const i=new c.Q(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&s.containsRange(i)&&!s.equalsRange(i)&&r.push(i);const n=new c.Q(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));n.containsRange(e)&&!n.equalsRange(i)&&s.containsRange(n)&&!s.equalsRange(n)&&r.push(n)}r.push(s)}return r}))}(0,o.HW)(R.ID,R,4),(0,o.Fl)(class extends L{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,o.Fl)(class extends L{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.w.registerCommand("_executeSelectionRangeProvider",(async function(e,...t){const[i,s]=t;(0,E.j)(b.r.isUri(i));const r=e.get(v.ILanguageFeaturesService).selectionRangeProvider,o=await e.get(C.ITextModelService).createModelReference(i);try{return T(r,o.object.textEditorModel,s,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},n.XO.None)}finally{o.dispose()}}))},10691:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>C,Kl:()=>d,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>m,dv:()=>h,wp:()=>E});var s=i(10350),n=i(25689),r=i(87289),o=i(78209),a=i(66261),c=i(61394);(0,a.x1A)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border","#FFA500",(0,o.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const l=(0,c.pU)("diff-insert",s.W.add,(0,o.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,c.pU)("diff-remove",s.W.remove,(0,o.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),d=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+n.L.asClassName(l),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+n.L.asClassName(h),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),C=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),E=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},10713:()=>{},10800:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},10846:(e,t,i)=>{"use strict";var s=i(18447),n=i(26690),r=i(42522),o=i(5662),a=i(80301),c=i(36677),l=i(72466),h=i(56942),d=i(51173),u=i(48116),g=i(88415),p=i(96299),m=i(14055),f=i(54770),_=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},v=function(e,t){return function(i,s){t(i,s,e)}};class C{constructor(e,t,i,s,n,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=s,this.command=n,this.completion=r}}let E=class extends o.mp{constructor(e,t,i,s,n,r){super(n.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=s,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){const e=[],{items:t}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),o=r.f.slice(t,i),a=r.f.slice(t,0,i);let l=5;for(const h of r.f.concat(o,a)){if(h.score===n.ne.Default)continue;const t=new c.Q(h.editStart.lineNumber,h.editStart.column,h.editInsertEnd.lineNumber,h.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),i=h.completion.insertTextRules&&4&h.completion.insertTextRules?{snippet:h.completion.insertText}:h.completion.insertText;e.push(new C(t,i,h.filterTextLow??h.labelLow,h.completion.additionalTextEdits,h.completion.command,h)),l-- >=0&&h.resolve(s.XO.None)}return e}};E=_([v(5,g.GS)],E);let b=class extends o.jG{constructor(e,t,i,s){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=s,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,s){if(i.selectedSuggestionInfo)return;let n;for(const c of this._editorService.listCodeEditors())if(c.getModel()===e){n=c;break}if(!n)return;const r=n.getOption(90);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const o=e.tokenization.getLineTokens(t.lineNumber),a=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,a))return;let l,h,g=e.getWordAtPosition(t);if(g?.word||(l=this._getTriggerCharacterInfo(e,t)),!g?.word&&!l)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const f=e.getValueInRange(new c.Q(t.lineNumber,1,t.lineNumber,t.column));if(!l&&this._lastResult?.canBeReused(e,t.lineNumber,g)){const e=new d.O(f,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(n).itemKind,l?.providers),l&&{triggerKind:1,triggerCharacter:l.ch},s);let r;i.needsClipboard&&(r=await this._clipboardService.readText());const o=new d.C(i.items,t.column,new d.O(f,0),m.S.None,n.getOption(119),n.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},r);h=new E(e,t.lineNumber,g,o,i,this._suggestMemoryService)}return this._lastResult=h,h}handleItemDidShow(e,t){t.completion.resolve(s.XO.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){const i=e.getValueInRange(c.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const n of this._languageFeatureService.completionProvider.all(e))n.triggerCharacters?.includes(i)&&s.add(n);if(0!==s.size)return{providers:s,ch:i}}};b=_([v(0,h.ILanguageFeaturesService),v(1,f.h),v(2,g.GS),v(3,a.T)],b),(0,l.x)(b)},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},11007:(e,t,i)=>{"use strict";i.d(t,{xE:()=>d,vr:()=>h,h5:()=>u});var s=i(8597);const n=2e4;let r,o,a,c,l;function h(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};o=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};c=i(),l=i(),e.appendChild(r)}function d(e){r&&(o.textContent!==e?(s.w_(a),g(o,e)):(s.w_(o),g(a,e)))}function u(e){r&&(c.textContent!==e?(s.w_(l),g(c,e)):(s.w_(c),g(l,e)))}function g(e,t){s.w_(e),t.length>n&&(t=t.substr(0,n)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},11272:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(70225).then(i.bind(i,70225))}d.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},d.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),d.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),d.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},11799:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var s=i(8597),n=i(72962),r=i(5646),o=i(42904),a=i(36921),c=i(41234),l=i(5662),h=i(631);i(62469);class d extends l.jG{constructor(e,t={}){let i,h;switch(super(),this._actionRunnerDisposables=this._register(new l.Cm),this.viewItemDisposables=this._register(new l.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new c.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new c.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new c.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new c.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register((0,o.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:i=[15],h=[17];break;case 1:i=[16],h=[18],this.domNode.className+=" vertical"}this._register(s.ko(this.domNode,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);let s=!0;const o="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;i&&(t.equals(i[0])||t.equals(i[1]))?s=this.focusPrevious():h&&(t.equals(h[0])||t.equals(h[1]))?s=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?s=this.focusFirst():t.equals(13)?s=this.focusLast():t.equals(2)&&o instanceof r.EH&&o.trapsArrowNavigation?s=this.focusNext(void 0,!0):this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:s=!1,s&&(t.preventDefault(),t.stopPropagation())}))),this._register(s.ko(this.domNode,s.Bx.KEY_UP,(e=>{const t=new n.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(s.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{s.bq()!==this.domNode&&s.QX(s.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof r.EH&&e.isEnabled()));e instanceof r.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof r.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(s.QX(s.bq(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){if("number"===typeof e)return this.viewItems[e]?.action;if(s.sb(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=h.Et(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let o;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t,isTabList:"tablist"===this.options.ariaRole};this.options.actionViewItemProvider&&(o=this.options.actionViewItemProvider(e,a)),o||(o=new r.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(o,s.ko(i,s.Bx.CONTEXT_MENU,(e=>{s.fs.stop(e,!0)}))),o.actionRunner=this._actionRunner,o.setActionContext(this.context),o.render(i),this.focusable&&o instanceof r.EH&&0===this.viewItems.length&&o.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(o)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,o),n++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,l.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),s.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let s;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===a.wv.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;h.Tn(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.Tn(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&s.showHover?.()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof r.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,l.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>c});var s=i(90766),n=i(64383),r=i(41234),o=i(5662);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class c extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new r.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new s.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new s.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new s.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,s.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,n.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},12296:(e,t,i)=>{"use strict";function s(e,t){const i=e.getCount(),s=e.findTokenIndexAtOffset(t),r=e.getLanguageId(s);let o=s;for(;o+1<i&&e.getLanguageId(o+1)===r;)o++;let a=s;for(;a>0&&e.getLanguageId(a-1)===r;)a--;return new n(e,r,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}i.d(t,{BQ:()=>s,Yo:()=>r});class n{constructor(e,t,i,s,n,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=n,this._lastCharOffset=r,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 r(e){return 0!==(3&e)}},12437:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var s=i(6921),n=i(5662),r=i(34326),o=i(16223),a=i(87119),c=i(47612),l=i(11007);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){const s=new n.Cm;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new n.HE);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange((()=>{r.value=void 0,r.value=this.doProvide(e,t)}))),s}doProvide(e,t,i){const o=new n.Cm,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const c={editor:a},l=(0,r.jA)(a);if(l){let e=a.saveViewState()??void 0;o.add(l.onDidChangeCursorPosition((()=>{e=a.saveViewState()??void 0}))),c.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},o.add((0,s.P)(t.onCancellationRequested)((()=>c.restoreViewState?.())))}o.add((0,n.s)((()=>this.clearDecorations(a)))),o.add(this.provideWithTextEditor(c,e,t,i))}else o.add(this.provideWithoutTextEditor(e,t));return o}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,l.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){return(0,r.Np)(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,c.Yf)(a.vp),position:o.A5.Full}}}],[n,r]=e.deltaDecorations(i,s);this.rangeHighlightDecorationId={rangeHighlightId:n,overviewRulerDecorationId:r}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},12529:(e,t,i)=>{var s=i(43238),n=i(32112);e.exports=function(e,t){return t.length<2?e:s(e,n(t,0,-1))}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>v,Rl:()=>b,Yd:()=>f,ZX:()=>E,eP:()=>u,lk:()=>l,t:()=>y,y0:()=>d,yQ:()=>p});i(41234);var s=i(5662),n=i(49154),r=i(22311),o=i(87958),a=i(94958),c=i(51241);function l(e){return new h(e)}class h extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(...e){let t,i,s;return 3===e.length?[t,i,s]=e:[i,s]=e,new g(new r.nA(t,void 0,s),i,s,(()=>g.globalTransaction),c.nx)}function u(e,t,i){return new g(new r.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,(()=>g.globalTransaction),e.equalsFn??c.nx)}class g extends n.ZK{constructor(e,t,i,s,r){super(),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=s,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),i=this.value,s=!this.hasValue||!this._equalityComparator(i,t);let r=!1;s&&(this.value=t,this.hasValue&&(r=!0,(0,n.PO)(this._getTransaction(),(e=>{(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const 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(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}function p(e,t){return new m(e,t)}!function(e){e.Observer=g,e.batchEventsGlobally=function(e,t){let i=!1;void 0===g.globalTransaction&&(g.globalTransaction=e,i=!0);try{t()}finally{i&&(g.globalTransaction=void 0)}}}(d||(d={}));class m extends n.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,n.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function f(e){return"string"===typeof e?new _(e):new _(void 0,e)}class _ extends n.ZK{get debugName(){return new r.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,n.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function v(e,t){const i=new C(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,s.s)((()=>{e.removeObserver(i)}))}(0,n.FB)((function(e){const t=new C(!1,void 0);return e.addObserver(t),(0,s.s)((()=>{e.removeObserver(t)}))})),(0,n.Bm)(v);class C{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function E(e,t){let i;return(0,o.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function b(e,t,i,s){let n=new S(i,s);return(0,o.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{n.dispose(),n=new S(i)}},(e=>(n.setItems(t.read(e)),n.getItems())))}class S{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){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let r=this._cache.get(e);if(r)i.delete(e);else{const t=new s.Cm;r={out:this._map(n,t),store:t},this._cache.set(e,r)}t.push(r.out)}for(const s of i){this._cache.get(s).store.dispose(),this._cache.delete(s)}this._items=t}getItems(){return this._items}}function y(e,t){return E(e,((e,i)=>i??t(e)))}},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>C,v:()=>E});var s=i(16223),n=i(87289),r=i(62083),o=i(78209),a=i(66261),c=i(47612);const l=(0,a.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},o.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},o.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.x1A)("editor.wordHighlightTextBackground",l,o.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.x1A)("editor.wordHighlightTextBorder",h,o.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const d=(0,a.x1A)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",o.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.x1A)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",o.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.x1A)("editorOverviewRuler.wordHighlightTextForeground",a.z5H,o.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=n.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,c.Yf)(u),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),m=n.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,c.Yf)(g),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),f=n.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,c.Yf)(a.z5H),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}}),_=n.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=n.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,c.Yf)(d),position:s.A5.Center},minimap:{color:(0,c.Yf)(a.Xp1),position:1}});function C(e){return e===r.Kb.Write?p:e===r.Kb.Text?m:v}function E(e){return e?_:f}(0,c.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},14055:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var s=i(25890),n=i(36677),r=i(39286);class o{static{this.None=new class extends o{distance(){return 0}}}static async create(e,t){if(!t.getOption(119).localityBonus)return o.None;if(!t.hasModel())return o.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return o.None;const[c]=await(new r.n).provideSelectionRanges(i,[a]);if(0===c.length)return o.None;const l=await e.computeWordRanges(i.uri,c[0].range);if(!l)return o.None;const h=i.getWordUntilPosition(a);return delete l[h.word],new class extends o{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const r="string"===typeof i.label?i.label:i.label.label,o=l[r];if((0,s.Ct)(o))return 2<<20;const h=(0,s.El)(o,n.Q.fromPositions(e),n.Q.compareRangesUsingStarts),d=h>=0?o[h]:o[Math.max(0,~h-1)];let u=c.length;for(const t of c){if(!n.Q.containsRange(t.range,d))break;u-=1}return u}}}}},14614:(e,t,i)=>{"use strict";var s=i(90766),n=i(18447),r=i(64383),o=i(16980),a=i(5662),c=i(36456),l=i(98067),h=i(89403),d=i(78381),u=i(79400),g=i(31450),p=i(87289),m=i(32500),f=i(56942),_=i(37927),v=i(25890),C=i(631),E=i(36677),b=i(23750),S=i(50091);class y{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class w{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,s]of e){const e=i.links.map((e=>new y(e,s)));t=w._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let s,n,r,o;for(s=0,r=0,n=e.length,o=t.length;s<n&&r<o;){const n=e[s],o=t[r];if(E.Q.areIntersectingOrTouching(n.range,o.range)){s++;continue}E.Q.compareRangesUsingStarts(n.range,o.range)<0?(i.push(n),s++):(i.push(o),r++)}for(;s<n;s++)i.push(e[s]);for(;r<o;r++)i.push(t[r]);return i}}function R(e,t,i){const s=[],n=e.ordered(t).reverse().map(((e,n)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(s[n]=[t,e])}),r.M_)));return Promise.all(n).then((()=>{const e=new w((0,v.Yc)(s));return i.isCancellationRequested?(e.dispose(),new w([])):e}))}S.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,s]=t;(0,C.j)(i instanceof u.r),"number"!==typeof s&&(s=0);const{linkProvider:r}=e.get(f.ILanguageFeaturesService),o=e.get(b.IModelService).getModel(i);if(!o)return[];const a=await R(r,o,n.XO.None);if(!a)return[];for(let l=0;l<Math.min(s,a.links.length);l++)await a.links[l].resolve(n.XO.None);const c=a.links.slice(0);return a.dispose(),c}));var L,T=i(78209),x=i(58591),k=i(49099),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends a.jG{static{L=this}static{this.ID="editor.linkDetector"}static get(e){return e.getContribution(L.ID)}constructor(e,t,i,n,r){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=r.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new s.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const o=this._register(new _.gi(e));this._register(o.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(o.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(o.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,s.SS)((t=>R(this.providers,e,t)));try{const t=new d.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,r.dz)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],s=Object.keys(this.currentOccurrences);for(const r of s){const e=this.currentOccurrences[r];i.push(e.decorationId)}const n=[];if(e)for(const r of e)n.push(M.decoration(r,t));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,n=s.length;i<n;i++){const t=new M(e[i],s[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:s}=e;s.resolve(n.XO.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===c.ny.file&&e.startsWith(`${c.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===c.ny.file){const s=h.su(i);let n=null;s.startsWith("/./")||s.startsWith("\\.\\")?n=`.${s.substr(1)}`:(s.startsWith("//./")||s.startsWith("\\\\.\\"))&&(n=`.${s.substr(2)}`),n&&(e=h.uJ(t,n))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(T.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",s.url.toString())):"missing"===t?this.notificationService.warn(T.kg("missing.url","Failed to open this link because its target is missing.")):(0,r.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.computeLinks.cancel(),this.activeLinksList&&(this.activeLinksList?.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};I=L=A([N(1,k.C),N(2,x.Ot),N(3,f.ILanguageFeaturesService),N(4,m.ILanguageFeatureDebounceService)],I);const O=p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),D=p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class M{static decoration(e,t){return{range:e.range,options:M._getOptions(e,t,!1)}}static _getOptions(e,t,i){const s={...i?D:O};return s.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),s=e.tooltip?e.tooltip:i?T.kg("links.navigate.executeCmd","Execute command"):T.kg("links.navigate.follow","Follow link"),n=t?l.zx?T.kg("links.navigate.kb.meta.mac","cmd + click"):T.kg("links.navigate.kb.meta","ctrl + click"):l.zx?T.kg("links.navigate.kb.alt.mac","option + click"):T.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=T.kg("tooltip.explanation","Execute command {0}",e)}}return new o.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),s,t).appendMarkdown(` (${n})`)}return(new o.Bc).appendText(`${s} (${n})`)}(e,t),s}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!1))}}class P extends g.ks{constructor(){super({id:"editor.action.openLink",label:T.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=I.get(t);if(!i)return;if(!t.hasModel())return;const s=t.getSelections();for(const n of s){const e=i.getLinkOccurrence(n.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(I.ID,I,1),(0,g.Fl)(P)},14718:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var s=i(84040);const n=[];function r(e,t,i){t instanceof s.d||(t=new s.d(t,[],Boolean(i))),n.push([e,t])}function o(){return n}},14720:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(67574).then(i.bind(i,67574))})},14853:e=>{e.exports=function(){function e(e){return String(e.$value)}return e.isScalar=!0,e}},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(28291),r=i(60002),o=i(78209);class a extends s.ks{constructor(){super({id:"expandLineSelection",label:o.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:r.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const s=t._getViewModel();s.model.pushStackElement(),s.setCursorStates(i.source,3,n.c.expandLineSelection(s,s.getCursorStates())),s.revealAllCursors(i.source,!0)}}(0,s.Fl)(a)},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>n,q2:()=>o,tA:()=>r,ui:()=>c});var s=i(75326);class n{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition())}}class r{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromRange(i,0)}}class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,s,n=!1){this._range=e,this._text=t,this._columnDeltaOffset=s,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class c{constructor(e,t,i,s=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=s,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},15482:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(65988).then(i.bind(i,65988))})},15600:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(52518).then(i.bind(i,52518))})},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var s=i(23971);const n=(e,t,i)=>{if(e&&"reportValidity"in e){const n=(0,s.Jt)(i,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},r=(e,t)=>{for(const i in t.fields){const s=t.fields[i];s&&s.ref&&"reportValidity"in s.ref?n(s.ref,i,e):s.refs&&s.refs.forEach((t=>n(t,i,e)))}},o=(e,t)=>{t.shouldUseNativeValidation&&r(e,t);const i={};for(const n in e){const r=(0,s.Jt)(t.fields,n),o=Object.assign(e[n]||{},{ref:r&&r.ref});if(a(t.names||Object.keys(e),n)){const e=Object.assign({},(0,s.Jt)(i,n));(0,s.hZ)(e,"root",o),(0,s.hZ)(i,n,e)}else(0,s.hZ)(i,n,o)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var c=function(e,t){for(var i={};e.length;){var n=e[0],r=n.code,o=n.message,a=n.path.join(".");if(!i[a])if("unionErrors"in n){var c=n.unionErrors[0].errors[0];i[a]={message:c.message,type:c.code}}else i[a]={message:o,type:r};if("unionErrors"in n&&n.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=i[a].types,h=l&&l[n.code];i[a]=(0,s.Gb)(a,t,i,r,h?[].concat(h,n.message):n.message)}e.shift()}return i},l=function(e,t,i){return void 0===i&&(i={}),function(s,n,a){try{return Promise.resolve(function(n,o){try{var c=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](s,t)).then((function(e){return a.shouldUseNativeValidation&&r({},a),{errors:{},values:i.raw?s:e}}))}catch(l){return o(l)}return c&&c.then?c.then(void 0,o):c}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:o(c(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(l){return Promise.reject(l)}}}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,Dg:()=>c,F4:()=>u,L5:()=>d,VW:()=>r,Wo:()=>h,X2:()=>a,ZS:()=>n,nk:()=>l,vd:()=>g});var s,n,r,o=i(10146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(s||(s={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(n||(n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(r||(r={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function l(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,s,n,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=s,this.isAutoWhitespaceEdit=n,this._isTracked=r}}class d{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},16363:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultModelSHA1Computer:()=>R,ModelService:()=>w});var s,n=i(41234),r=i(5662),o=i(98067),a=i(87289),c=i(24329),l=i(83941),h=i(90360),d=i(84001),u=i(47579),g=i(85600),p=i(26656),m=i(36456),f=i(10146),_=i(63591),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};function E(e){return e.toString()}class b{constructor(e,t,i){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const S=o.j9||o.zx?1:2;class y{constructor(e,t,i,s,n,r,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=n,this.sha1=r,this.versionId=o,this.alternativeVersionId=a}}let w=class extends r.jG{static{s=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,i,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=s,this._onModelAdded=this._register(new n.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.vl),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){let i=c.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let n=c.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(n="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=S;const o=e.eol;"\r\n"===o?r=2:"\n"===o&&(r=1);let a=c.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=c.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=c.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=c.R.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:s,insertSpaces:n,detectIndentation:l,defaultEOL:r,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===o.OS||2===o.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[n+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);r=s._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,r=i.length;n<r;n++){const r=i[n],o=this._models[r],a=o.model.getLanguageId(),c=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:c})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:c}))continue;const l=t[a+c],h=this.getCreationOptions(a,c,o.model.isForSimpleWidget);s._setModelOptionsForModel(o.model,h,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,f.aI)(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(E(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(E(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(E(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const 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;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){const n=this.getCreationOptions(t,i,s),r=this._instantiationService.createInstance(a.Bz,e,t,n,i);if(i&&this._disposedModels.has(E(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),s=this._getSHA1Computer(),n=!!s.canComputeSHA1(r)&&s.computeSHA1(r)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);for(const e of t.future)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,p.Th)(e)&&e.matchesResource(i))),n&&(r._overwriteVersionId(e.versionId),r._overwriteAlternativeVersionId(e.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=E(r.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const c=new b(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=c,c}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,l.vH,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push(this._models[s].model)}return e}getModel(e){const t=E(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===m.ny.file||e.scheme===m.ny.vscodeRemote||e.scheme===m.ny.vscodeUserData||e.scheme===m.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=E(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const a=s.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,c=this._getSHA1Computer();if(r)if(n||!(o>a)&&c.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,p.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new y(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,c.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const 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){const i=t.oldLanguage,n=e.getLanguageId(),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);s._setModelOptionsForModel(e,o,r),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new R}};w=s=v([C(0,d.pG),C(1,h.ITextResourcePropertiesService),C(2,u.$D),C(3,_._Y)],w);class R{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=R.MAX_MODEL_SIZE}computeSHA1(e){const t=new g.v7,i=e.createSnapshot();let s;for(;s=i.read();)t.update(s);return t.digest()}}},16545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BaseEditorSimpleWorker:()=>Y,EditorSimpleWorker:()=>q,create:()=>$});var s=i(83993),n=i(36677),r=i(60534);class o{constructor(e,t,i){const s=new Uint8Array(e*t);for(let n=0,r=e*t;n<r;n++)s[n]=i;this._data=s,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class a{constructor(e){let t=0,i=0;for(let n=0,r=e.length;n<r;n++){const[s,r,o]=e[n];r>t&&(t=r),s>i&&(i=s),o>i&&(i=o)}t++,i++;const s=new o(i,t,0);for(let n=0,r=e.length;n<r;n++){const[t,i,r]=e[n];s.set(t,i,r)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let c=null;let l=null;class h{static _createLink(e,t,i,s,n){let r=n-1;do{const i=t.charCodeAt(r);if(2!==e.get(i))break;r--}while(r>s);if(s>0){const e=t.charCodeAt(s-1),i=t.charCodeAt(r);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=function(){return null===c&&(c=new a([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),c}()){const i=function(){if(null===l){l=new r.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)l.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)l.set(t.charCodeAt(i),2)}return l}(),s=[];for(let n=1,r=e.getLineCount();n<=r;n++){const r=e.getLineContent(n),o=r.length;let a=0,c=0,l=0,d=1,u=!1,g=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=r.charCodeAt(a);if(13===d){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=l===o?1:39===l||34===l||96===l?0:1;break;case 42:t=42===l?1:0;break;case 124:t=124===l?1:0;break;case 32:t=p?0:1;break;default:t=i.get(o)}1===t&&(s.push(h._createLink(i,r,n,c,a)),e=!0)}else if(12===d){let t;91===o?(g=!0,t=0):t=i.get(o),1===t?e=!0:d=13}else d=t.nextState(d,o),0===d&&(e=!0);e&&(d=1,u=!1,g=!1,m=!1,c=a+1,l=o),a++}13===d&&s.push(h._createLink(i,r,n,c,o))}return s}}class d{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new d}navigateValueSet(e,t,i,s,n){if(e&&t){const i=this.doNavigateValueSet(t,n);if(i)return{range:e,value:i}}if(i&&s){const e=this.doNavigateValueSet(s,n);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let s=Number(e);const n=parseFloat(e);return isNaN(s)||isNaN(n)||s!==n?null:0!==s||t?(s=Math.floor(s*i),s+=t?i:-i,String(s/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let s=null;for(let n=0,r=e.length;null===s&&n<r;n++)s=this.valueSetReplace(e[n],t,i);return s}valueSetReplace(e,t,i){let s=e.indexOf(t);return s>=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}var u=i(73848),g=i(80718),p=i(78381),m=i(74855),f=i(41845),_=i(87723),v=i(91508),C=i(66782),E=i(86571);class b{computeDiff(e,t,i){const s=new T(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let o=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new E.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new E.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new E.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new E.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new _.wm(e,t,a.charChanges?.map((e=>new _.q6(new n.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new n.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==i.modified.startLineNumber&&o.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new _.wm(o.original.join(i.original),o.modified.join(i.modified),o.innerChanges&&i.innerChanges?o.innerChanges.concat(i.innerChanges):void 0),r.pop())),r.push(i),o=i}return(0,C.Ft)((()=>(0,C.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new f.p(r,[],s.quitEarly)}}function S(e,t,i,n){return new s.uP(e,t,i).ComputeDiff(n)}class y{constructor(e){const t=[],i=[];for(let s=0,n=e.length;s<n;s++)t[s]=x(e[s],1),i[s]=k(e[s],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const s=[],n=[],r=[];let o=0;for(let a=t;a<=i;a++){const t=this.lines[a],c=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=c;e<l;e++)s[o]=t.charCodeAt(e-1),n[o]=a+1,r[o]=e,o++;!e&&a<i&&(s[o]=10,n[o]=a+1,r[o]=t.length+1,o++)}return new w(s,n,r)}}class w{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class R{constructor(e,t,i,s,n,r,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=n,this.modifiedStartColumn=r,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const s=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),l=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new R(s,n,r,o,a,c,l,h)}}class L{constructor(e,t,i,s,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=s,this.charChanges=n}static createFromDiffResult(e,t,i,s,n,r,o){let a,c,l,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,c=0):(a=i.getStartLineNumber(t.originalStart),c=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(l=s.getStartLineNumber(t.modifiedStart)-1,h=0):(l=s.getStartLineNumber(t.modifiedStart),h=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){const r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&a.getElements().length>0){let e=S(r,a,n,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let s=1,n=e.length;s<n;s++){const n=e[s],r=n.originalStart-(i.originalStart+i.originalLength),o=n.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(r,o)<3?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),d=[];for(let t=0,i=e.length;t<i;t++)d.push(R.createFromDiffChange(e[t],r,a))}}return new L(a,c,l,h,d)}}class T{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new y(e),this.modified=new y(t),this.continueLineDiff=A(i.maxComputationTime),this.continueCharDiff=A(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=S(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,s=t.length;i<s;i++)e.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const s=[];let n=0,r=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,i=e?e.originalStart:this.originalLines.length,c=e?e.modifiedStart:this.modifiedLines.length;for(;n<i&&r<c;){const e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=x(e,1),o=x(t,1);for(;i>1&&o>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(o-2))break;i--,o--}(i>1||o>1)&&this._pushTrimWhitespaceCharChange(s,n+1,1,i,r+1,1,o)}{let i=k(e,1),o=k(t,1);const a=e.length+1,c=t.length+1;for(;i<a&&o<c;){if(e.charCodeAt(i-1)!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<c)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,c)}}n++,r++}e&&(s.push(L.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=e.originalLength,r+=e.modifiedLength)}return{quitEarly:i,changes:s}}_pushTrimWhitespaceCharChange(e,t,i,s,n,r,o){if(this._mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o))return;let a;this.shouldComputeCharChanges&&(a=[new R(t,i,t,s,n,r,n,o)]),e.push(new L(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o){const a=e.length;if(0===a)return!1;const c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&(c.originalEndLineNumber===t&&c.modifiedEndLineNumber===n?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new R(t,i,t,s,n,r,n,o)),!0))}}function x(e,t){const i=v.HG(e);return-1===i?t:i+1}function k(e,t){const i=v.lT(e);return-1===i?t:i+2}function A(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var N=i(26746);const I=()=>new b,O=()=>new N.D8;var D=i(10146),M=i(36456),P=i(47661);function F(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function U(e,t,i,s){return{red:e/255,blue:i/255,green:t/255,alpha:s}}function H(e,t){const i=t.index,s=t[0].length;if(!i)return;const n=e.positionAt(i);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:n.lineNumber,endColumn:n.column+s}}function B(e,t){if(!e)return;const i=P.Q1.Format.CSS.parseHex(t);return i?{range:e,color:U(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function W(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values());return{range:e,color:U(s[0],s[1],s[2],i?s[3]:1)}}function V(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values()),n=new P.Q1(new P.hB(s[0],s[1]/100,s[2]/100,i?s[3]:1));return{range:e,color:U(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function z(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function G(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=z(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const s of i){const i=s.filter((e=>void 0!==e)),n=i[1],r=i[2];if(!r)continue;let o;if("rgb"===n){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=W(H(e,s),z(r,t),!1)}else if("rgba"===n){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=W(H(e,s),z(r,t),!0)}else if("hsl"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=V(H(e,s),z(r,t),!1)}else if("hsla"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=V(H(e,s),z(r,t),!0)}else"#"===n&&(o=B(H(e,s),n+r));o&&t.push(o)}return t}(e):[]}var j=i(56691),K=i(47443);class Y{constructor(){this._workerTextModelSyncServer=new K.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,i){const s=this._getModel(e);return s?m.UnicodeTextModelHighlighter.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const i=this._getModel(e);return i?(0,j.findSectionHeaders)(i,t):[]}async $computeDiff(e,t,i,s){const n=this._getModel(e),r=this._getModel(t);if(!n||!r)return null;return q.computeDiff(n,r,i,s)}static computeDiff(e,t,i,s){const n="advanced"===s?O():I(),r=e.getLinesContent(),o=t.getLinesContent(),a=n.computeDiff(r,o,i);function c(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:c(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,c(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let s=1;s<=i;s++){if(e.getLineContent(s)!==t.getLineContent(s))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,i){const r=this._getModel(e);if(!r)return t;const o=[];let a;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return n.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let c=0;for(let s=1;s<t.length;s++)n.Q.getEndPosition(t[c].range).equals(n.Q.getStartPosition(t[s].range))?(t[c].range=n.Q.fromPositions(n.Q.getStartPosition(t[c].range),n.Q.getEndPosition(t[s].range)),t[c].text+=t[s].text):(c++,t[c]=t[s]);t.length=c+1;for(let{range:l,text:h,eol:d}of t){if("number"===typeof d&&(a=d),n.Q.isEmpty(l)&&!h)continue;const e=r.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,r.eol),e===h)continue;if(Math.max(h.length,e.length)>q._diffLimit){o.push({range:l,text:h});continue}const t=(0,s.F1)(e,h,i),c=r.offsetAt(n.Q.lift(l).getStartPosition());for(const i of t){const e=r.positionAt(c+i.originalStart),t=r.positionAt(c+i.originalStart+i.originalLength),s={text:h.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"===typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?h.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?G(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,i,s){const n=new p.W,r=new RegExp(i,s),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(r))if(i!==t&&isNaN(Number(i))&&(o.add(i),o.size>q._suggestionsLimit))break e}return{words:Array.from(o),duration:n.elapsed()}}async $computeWordRanges(e,t,i,s){const n=this._getModel(e);if(!n)return Object.create(null);const r=new RegExp(i,s),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=n.getLineWords(a,r);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,i,s,n){const r=this._getModel(e);if(!r)return null;const o=new RegExp(s,n);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=r.getValueInRange(t),c=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;const l=r.getValueInRange(c);return d.INSTANCE.navigateValueSet(t,a,c,l,i)}}class q extends Y{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,s){const n={host:(0,D.kT)(s,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,D.V0)(this._foreignModule))):new Promise(((s,r)=>{const o=e=>{this._foreignModule=e.create(n,t),s((0,D.V0)(this._foreignModule))};{const t=M.zl.asBrowserUri(`${e}.js`).toString(!0);i(9204)(`${t}`).then(o).catch(r)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}function $(e){return new q(g.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,u.createMonacoBaseAPI)())},16963:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3z",clipRule:"evenodd"})))}},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>c,VS:()=>h,_W:()=>g,it:()=>l,nI:()=>p,nK:()=>d,oO:()=>u});var s=i(64383),n=i(37882),r=i(89403),o=i(91508),a=i(79400);class c{constructor(e="",t=!1){if(this.value=e,"string"!==typeof this.value)throw(0,s.Qg)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,n.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){const i=e.match(/^`+/gm)?.reduce(((e,t)=>e.length>t.length?e:t)).length??0,s=i>=3?i+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,o.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function l(e){return h(e)?!e.value:!Array.isArray(e)||e.every(l)}function h(e){return e instanceof c||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,r.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const s=i[1];if(s){const e=/height=(\d+)/.exec(s),i=/width=(\d+)/.exec(s),n=e?e[1]:"",r=i?i[1]:"",o=isFinite(parseInt(r)),a=isFinite(parseInt(n));o&&t.push(`width="${r}"`),a&&t.push(`height="${n}"`)}return{href:e,dimensions:t}}},17184:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"#":e.$value}return e.isScalar=!0,e}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var s=i(8597),n=i(72962),r=i(47358),o=i(25154),a=i(5662);class c extends a.jG{onclick(e,t){this._register(s.ko(e,s.Bx.CLICK,(i=>t(new r.P(s.zk(e),i)))))}onmousedown(e,t){this._register(s.ko(e,s.Bx.MOUSE_DOWN,(i=>t(new r.P(s.zk(e),i)))))}onmouseover(e,t){this._register(s.ko(e,s.Bx.MOUSE_OVER,(i=>t(new r.P(s.zk(e),i)))))}onmouseleave(e,t){this._register(s.ko(e,s.Bx.MOUSE_LEAVE,(i=>t(new r.P(s.zk(e),i)))))}onkeydown(e,t){this._register(s.ko(e,s.Bx.KEY_DOWN,(e=>t(new n.Z(e)))))}onkeyup(e,t){this._register(s.ko(e,s.Bx.KEY_UP,(e=>t(new n.Z(e)))))}oninput(e,t){this._register(s.ko(e,s.Bx.INPUT,t))}onblur(e,t){this._register(s.ko(e,s.Bx.BLUR,t))}onfocus(e,t){this._register(s.ko(e,s.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},17469:(e,t,i)=>{"use strict";i.d(t,{JZ:()=>N,Cw:()=>M});var s=i(41234),n=i(5662),r=i(91508),o=i(26486),a=i(38566);class c{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.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}}var l=i(25890),h=i(12296),d=i(56772);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,l.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const s=t.findTokenIndexAtOffset(i-1);if((0,h.Yo)(t.getStandardTokenType(s)))return null;const n=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,o=d.Fu.findPrevBracketInRange(n,1,r,0,r.length);if(!o)return null;const a=r.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(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}}var m=i(64383);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._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,s){if(e>=3)for(let n=0,r=this._regExpRules.length;n<r;n++){const e=this._regExpRules[n];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:s},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&s.length>0)for(let n=0,r=this._brackets.length;n<r;n++){const e=this._brackets[n];if(e.openRegExp.test(i)&&e.closeRegExp.test(s))return{indentAction:a.l.IndentOutdent}}if(e>=2&&i.length>0)for(let n=0,r=this._brackets.length;n<r;n++){if(this._brackets[n].openRegExp.test(i))return{indentAction:a.l.Indent}}return null}static _createOpenBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dz)(t),null}}}var _=i(63591),v=i(84001),C=i(10154),E=i(14718),b=i(83941),S=i(81788);class y{constructor(e,t){this.languageId=e;const i=t.brackets?w(t.brackets):[],s=new S.VV((e=>{const t=new Set;return{info:new L(this,e,t),closing:t}})),n=new S.VV((e=>{const t=new Set,i=new Set;return{info:new T(this,e,t,i),opening:t,openingColorized:i}}));for(const[o,a]of i){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.opening.add(e.info)}const r=t.colorizedBracketPairs?w(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of r){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...s.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...n.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){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,d.xb)(t,e)}}function w(e){return e.filter((([e,t])=>""!==e&&""!==t))}class R{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends R{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class T extends R{constructor(e,t,i,s){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=s,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 x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};class A{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const N=(0,_.u1)("languageConfigurationService");let I=class extends n.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new B),this.onDidChangeEmitter=this._register(new s.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(O));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),s=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new A(void 0));else for(const i of s)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new A(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new A(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,s){let n=t.getLanguageConfiguration(e);if(!n){if(!s.isRegisteredLanguageId(e))return new W(e,{});n=new W(e,{})}const r=function(e,t){const i=t.getValue(O.brackets,{overrideIdentifier:e}),s=t.getValue(O.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:D(i),colorizedBracketPairs:D(s)}}(n.languageId,i),o=F([n.underlyingConfig,r]);return new W(n.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=x([k(0,v.pG),k(1,C.L)],I);const O={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function D(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 M(e,t,i){const s=e.getLineContent(t);let n=r.UU(s);return n.length>i-1&&(n=n.substring(0,i-1)),n}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new U(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,n.s)((()=>{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){const e=this._resolve();e&&(this._resolved=new W(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(U.cmp),F(this._entries.map((e=>e.configuration))))}}function F(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(const 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 U{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 H{constructor(e){this.languageId=e}}class B extends n.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(b.vH,{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 s=this._entries.get(e);s||(s=new P(e),this._entries.set(e,s));const r=s.register(t,i);return this._onDidChange.fire(new H(e)),(0,n.s)((()=>{r.dispose(),this._onDidChange.fire(new H(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class W{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 f(this.underlyingConfig):null,this.comments=W._handleComments(this.underlyingConfig),this.characterPair=new c(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new y(e,this.underlyingConfig)}getWordDefinition(){return(0,o.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,s]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=s}return i}}(0,E.v)(N,I,1)},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>c,Y:()=>h,gf:()=>o,jt:()=>u});var s=i(25890),n=i(42522),r=i(58255);function o(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const s={id:(0,r.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>s,value:void 0}}class c{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return n.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),d(l(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return l(e)}}function l(e){return e.toLowerCase()}function h(e,t){return d(l(e),t.map(l))}function d(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[s,n,r]=i;return"*"===r&&t.some((e=>e.startsWith(n+"/")))}const u=Object.freeze({create:e=>(0,s.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},17890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageService:()=>h});var s=i(41234),n=i(5662),r=i(69259),o=i(25890),a=i(62083),c=i(83941),l=i(31308);class h extends n.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new s.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new s.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new s.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,h.instanceCount++,this._registry=this._register(new r.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){h.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){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(i,null)}createById(e){return new d(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new d(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=c.vH),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),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class d{constructor(e,t){this._value=(0,l.y0)(this,e,(()=>t())),this.onDidChange=s.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},18278:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(17469),a=i(87289),c=i(10920),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};let d=class extends n.jG{static{this.ID="editor.sectionHeaderDetector"}constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{const i=this.editor.getModel()?.getLanguageId();i&&t.affects(i)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new s.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,s=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||s?.markers?{foldingRules:s,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;const e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;const t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then((i=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(i)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),s=t.tokenization.getLineTokens(i.startLineNumber),n=s.findTokenIndexAtOffset(i.startColumn-1),r=s.getStandardTokenType(n);return s.getLanguageId(n)===t.getLanguageId()&&1===r})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),s=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={};for(let i=0,s=n.length;i<s;i++){const t={sectionHeader:e[i],decorationId:n[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};d=l([h(1,o.JZ),h(2,c.IEditorWorkerService)],d),(0,r.HW)(d.ID,d,1)},18447:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>r,bs:()=>c});var s=i(41234);const n=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(r||(r={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?n:(this._emitter||(this._emitter=new s.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=r.None}}function c(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},18544:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(97638).then(i.bind(i,97638))})},18801:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>h,Dk:()=>d,rr:()=>o});var s=i(41234),n=i(5662),r=i(32848);const o=(0,i(63591).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const c=a.Info;class l extends n.jG{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new s.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends l{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class d extends l{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new r.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},18864:(e,t,i)=>{"use strict";i.d(t,{d:()=>E});var s,n=i(8597),r=i(5646),o=i(36921),a=i(5662),c=i(98067),l=i(31450),h=i(60002),d=i(78209),u=i(27195),g=i(32848),p=i(47508),m=i(98031),f=i(84001),_=i(37227),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};let E=class{static{s=this}static{this.ID="editor.contrib.contextmenu"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,c,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=r,this._menuService=o,this._configurationService=c,this._workspaceContextService=l,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&n.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],s=this._menuService.getMenuActions(t,this._contextKeyService,{arg:e.uri});for(const n of s){const[,t]=n;let s=0;for(const n of t)if(n instanceof u.nI){const t=this._getMenuActions(e,n.item.submenu);t.length>0&&(i.push(new o.YH(n.id,n.label,t)),s++)}else i.push(n),s++;s&&i.push(new o.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let s=t;if(!s){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=n.BK(this._editor.getDomNode()),i=t.left+e.left,r=t.top+e.top+e.height;s={x:i,y:r}}const o=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getOverflowWidgetsDomNode()??this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new r.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new r.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const s=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),n=(e,t,n,r,a)=>{if(!t)return s({label:e,enabled:t,run:()=>{}});const c=e=>()=>{this._configurationService.updateValue(n,e)},l=[];for(const i of a)l.push(s({label:i.label,checked:r===i.value,run:c(i.value)}));return((e,t)=>new o.YH("menu-action-"+ ++i,e,t,void 0))(e,l)},r=[];r.push(s({label:d.kg("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new o.wv),r.push(s({label:d.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(n(d.kg("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:d.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:d.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:d.kg("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(n(d.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:d.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:d.kg("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(128)&&!c.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};E=s=v([C(1,p.Z),C(2,p.l),C(3,g.fN),C(4,m.b),C(5,u.ez),C(6,f.pG),C(7,_.VR)],E);class b extends l.ks{constructor(){super({id:"editor.action.showContextMenu",label:d.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.R.textInputFocus,primary:1092,weight:100}})}run(e,t){E.get(t)?.showContextMenu()}}(0,l.HW)(E.ID,E,2),(0,l.Fl)(b)},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},18956:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var s=i(631);const n=Object.create(null);function r(e,t){if((0,s.Kg)(t)){const i=n[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return n[e]=t,{id:e}}function o(){return n}},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>o,ho:()=>l,ir:()=>r,m$:()=>d,mk:()=>c,oJ:()=>a,t8:()=>g});var s=i(66261),n=i(47661);const r={keybindingLabelBackground:(0,s.GuP)(s.HDX),keybindingLabelForeground:(0,s.GuP)(s.eUu),keybindingLabelBorder:(0,s.GuP)(s.zUX),keybindingLabelBottomBorder:(0,s.GuP)(s.Qfh),keybindingLabelShadow:(0,s.GuP)(s.f9l)},o={buttonForeground:(0,s.GuP)(s.G_h),buttonSeparator:(0,s.GuP)(s.Q1$),buttonBackground:(0,s.GuP)(s.XJc),buttonHoverBackground:(0,s.GuP)(s.T9h),buttonSecondaryForeground:(0,s.GuP)(s.Inn),buttonSecondaryBackground:(0,s.GuP)(s.xOA),buttonSecondaryHoverBackground:(0,s.GuP)(s.nZG),buttonBorder:(0,s.GuP)(s.raQ)},a={progressBarBackground:(0,s.GuP)(s.BTi)},c={inputActiveOptionBorder:(0,s.GuP)(s.uNK),inputActiveOptionForeground:(0,s.GuP)(s.$$0),inputActiveOptionBackground:(0,s.GuP)(s.c1f)},l=((0,s.GuP)(s.jOE),(0,s.GuP)(s.Ukx),(0,s.GuP)(s.Ips),(0,s.GuP)(s.kPT),(0,s.GuP)(s.xWN),(0,s.GuP)(s.ZBU),(0,s.GuP)(s.jr9),(0,s.GuP)(s.OcU),(0,s.GuP)(s.C5U),(0,s.GuP)(s.t0B),(0,s.GuP)(s.CgL),(0,s.GuP)(s.FiB),(0,s.GuP)(s.f9l),(0,s.GuP)(s.b1q),(0,s.GuP)(s.tYX),(0,s.GuP)(s.JPj),(0,s.GuP)(s.bNw),(0,s.GuP)(s.vwp),{inputBackground:(0,s.GuP)(s.L4c),inputForeground:(0,s.GuP)(s.cws),inputBorder:(0,s.GuP)(s.Zgs),inputValidationInfoBorder:(0,s.GuP)(s.YSW),inputValidationInfoBackground:(0,s.GuP)(s.I$A),inputValidationInfoForeground:(0,s.GuP)(s.L9Z),inputValidationWarningBorder:(0,s.GuP)(s.C1n),inputValidationWarningBackground:(0,s.GuP)(s.ULt),inputValidationWarningForeground:(0,s.GuP)(s.T5N),inputValidationErrorBorder:(0,s.GuP)(s.eYZ),inputValidationErrorBackground:(0,s.GuP)(s._$n),inputValidationErrorForeground:(0,s.GuP)(s.h9z)}),h={listFilterWidgetBackground:(0,s.GuP)(s.pnl),listFilterWidgetOutline:(0,s.GuP)(s.fiM),listFilterWidgetNoMatchesOutline:(0,s.GuP)(s.P9Z),listFilterWidgetShadow:(0,s.GuP)(s.H8q),inputBoxStyles:l,toggleStyles:c},d={badgeBackground:(0,s.GuP)(s.WMx),badgeForeground:(0,s.GuP)(s.zRE),badgeBorder:(0,s.GuP)(s.b1q)},u=((0,s.GuP)(s.vV$),(0,s.GuP)(s.mc0),(0,s.GuP)(s.etE),(0,s.GuP)(s.etE),(0,s.GuP)(s.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,s.GuP)(s.VFX),listFocusForeground:(0,s.GuP)(s.efJ),listFocusOutline:(0,s.GuP)(s.p7Y),listActiveSelectionBackground:(0,s.GuP)(s.Rjz),listActiveSelectionForeground:(0,s.GuP)(s.GVV),listActiveSelectionIconForeground:(0,s.GuP)(s.fED),listFocusAndSelectionOutline:(0,s.GuP)(s.gtq),listFocusAndSelectionBackground:(0,s.GuP)(s.Rjz),listFocusAndSelectionForeground:(0,s.GuP)(s.GVV),listInactiveSelectionBackground:(0,s.GuP)(s.uNx),listInactiveSelectionIconForeground:(0,s.GuP)(s.C9U),listInactiveSelectionForeground:(0,s.GuP)(s.f4y),listInactiveFocusBackground:(0,s.GuP)(s.CQ3),listInactiveFocusOutline:(0,s.GuP)(s.ijf),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listDropOverBackground:(0,s.GuP)(s.Yoe),listDropBetweenBackground:(0,s.GuP)(s.yIp),listSelectionOutline:(0,s.GuP)(s.buw),listHoverOutline:(0,s.GuP)(s.buw),treeIndentGuidesStroke:(0,s.GuP)(s.U4U),treeInactiveIndentGuidesStroke:(0,s.GuP)(s.pft),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:(0,s.GuP)(s.bXl),tableColumnsBorder:(0,s.GuP)(s.k5u),tableOddRowsBackgroundColor:(0,s.GuP)(s.sbQ)});function g(e){return function(e,t){const i={...t};for(const n in e){const t=e[n];i[n]=void 0!==t?(0,s.GuP)(t):void 0}return i}(e,u)}const p={selectBackground:(0,s.GuP)(s.rvE),selectListBackground:(0,s.GuP)(s.lWP),selectForeground:(0,s.GuP)(s.yqq),decoratorRightForeground:(0,s.GuP)(s.NBf),selectBorder:(0,s.GuP)(s.HcB),focusBorder:(0,s.GuP)(s.tAP),listFocusBackground:(0,s.GuP)(s.AlL),listInactiveSelectionIconForeground:(0,s.GuP)(s.c7i),listFocusForeground:(0,s.GuP)(s.nH),listFocusOutline:(0,s.HP_)(s.buw,n.Q1.transparent.toString()),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listHoverOutline:(0,s.GuP)(s.buw),selectListBorder:(0,s.GuP)(s.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},m={shadowColor:(0,s.GuP)(s.f9l),borderColor:(0,s.GuP)(s.g$2),foregroundColor:(0,s.GuP)(s.dd_),backgroundColor:(0,s.GuP)(s.c6Y),selectionForegroundColor:(0,s.GuP)(s.pmr),selectionBackgroundColor:(0,s.GuP)(s.Ux$),selectionBorderColor:(0,s.GuP)(s.SNb),separatorColor:(0,s.GuP)(s.D7X),scrollbarShadow:(0,s.GuP)(s.bXl),scrollbarSliderBackground:(0,s.GuP)(s.gnV),scrollbarSliderHoverBackground:(0,s.GuP)(s.cI_),scrollbarSliderActiveBackground:(0,s.GuP)(s.mhZ)}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>_,QB:()=>p,Qx:()=>S,VL:()=>b,Vh:()=>c,Vp:()=>a,eu:()=>u,l4:()=>d,o0:()=>E,pW:()=>m,qe:()=>h,rR:()=>y,sS:()=>g,vr:()=>C,wP:()=>f,zG:()=>v});var s=i(91508),n=i(36677),r=i(50973);function o(e,t,i,s){return e!==i?h(i-e,s):h(0,s-t)}const a=0;function c(e){return 0===e}const l=2**26;function h(e,t){return e*l+t}function d(e){const t=e,i=Math.floor(t/l),s=t-i*l;return new r.W(i,s)}function u(e){return Math.floor(e/l)}function g(e){return e}function p(e,t){let i=e+t;return t>=l&&(i-=e%l),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,s=t;if(s-i<=0)return a;const n=Math.floor(i/l),r=Math.floor(s/l),o=s-r*l;if(n===r){return h(0,o-(i-n*l))}return h(r-n,o)}function v(e,t){return e<t}function C(e,t){return e<=t}function E(e,t){return e>=t}function b(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){const i=e,s=Math.floor(i/l),r=i-s*l,o=t,a=Math.floor(o/l),c=o-a*l;return new n.Q(s+1,r+1,a+1,c+1)}function y(e){const t=(0,s.uz)(e);return h(t.length-1,t[t.length-1].length)}},19436:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(33338).then(i.bind(i,33338))})},19466:(e,t,i)=>{"use strict";i.d(t,{DO:()=>q,w0:()=>x,KP:()=>s,RD:()=>O,vD:()=>I});var s,n=i(8597),r=(i(56245),i(72962)),o=(i(11799),i(88443),i(91581)),a=i(66700),c=i(93090),l=i(35315),h=i(37472),d=i(84565),u=(i(36921),i(25890)),g=i(90766),p=i(10350),m=i(25689),f=i(74320),_=i(41234),v=i(26690),C=i(5662),E=i(1592),b=i(631),S=i(78209),y=(i(42904),i(31308)),w=i(11007);class R extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function L(e){return e instanceof a.ur?new R(e):e}class T{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=C.jG.None,this.disposables=new C.Cm}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){this.dnd.onDragStart?.(L(e),t)}onDragOver(e,t,i,s,n,r=!0){const o=this.dnd.onDragOver(L(e),t&&t.element,i,s,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return o;if(a&&"boolean"!==typeof o&&o.autoExpand&&(this.autoExpandDisposable=(0,g.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof o||!o.accept||"undefined"===typeof o.bubble||o.feedback){if(!r){return{accept:"boolean"===typeof o?o:o.accept,effect:"boolean"===typeof o?void 0:o.effect,feedback:[i]}}return o}if(1===o.bubble){const i=this.modelProvider(),r=i.getNodeLocation(t),o=i.getParentNodeLocation(r),a=i.getNode(o),c=o&&i.getListIndex(o);return this.onDragOver(e,a,c,s,n,!1)}const c=this.modelProvider(),l=c.getNodeLocation(t),h=c.getListIndex(l),d=c.getListRenderCount(l);return{...o,feedback:(0,u.y1)(h,h+d)}}drop(e,t,i,s,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(L(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class x{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){this.delegate.setDynamicHeight?.(e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(s||(s={}));class k{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new C.Cm,this.onDidChange=_.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class A{static{this.DefaultIndent=8}constructor(e,t,i,s,n,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=s,this.renderedIndentGuides=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=A.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=C.jG.None,this.disposables=new C.Cm,this.templateId=e.templateId,this.updateOptions(r),_.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState?.(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,E.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==s.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new C.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.BC)(t,(0,n.$)(".monaco-tl-indent")),s=(0,n.BC)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.BC)(t,(0,n.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:s,indentGuidesDisposable:C.jG.None,templateData:o}}renderElement(e,t,i,s){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,s)}disposeElement(e,t,i,s){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement?.(e,t,i.templateData,s),"number"===typeof s&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=A.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.L.asClassNameArray(p.W.treeItemExpanded));let s=!1;this.renderer.renderTwistie&&(s=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(s||t.twistie.classList.add(...m.L.asClassNameArray(p.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new C.Cm,s=this.modelProvider();for(;;){const r=s.getNodeLocation(e),o=s.getParentNodeLocation(r);if(!o)break;const a=s.getNode(o),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(a,c),i.add((0,C.s)((()=>this.renderedIndentGuides.delete(a,c)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const s=i.getNodeLocation(e);try{const n=i.getParentNodeLocation(s);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(i.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,C.AS)(this.disposables)}}class N{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new C.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const s=this._filter.filter(e,t);if(i="boolean"===typeof s?s?1:0:(0,h.iZ)(s)?(0,h.Mn)(s.visibility):s,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(s)?s:[s];for(const r of n){const e=r&&r.toString();if("undefined"===typeof e)return{data:v.ne.Default,visibility:i};let t;if(this.tree.findMatchType===O.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.dt)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===n.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,C.AS)(this.disposables)}}l.l;l.l;o.x8,l.F;var I,O;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(O||(O={}));C.jG;class D{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,s,n,r={}){this.tree=e,this.view=i,this.filter=s,this.contextViewProvider=n,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new _.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.vl,this._onDidChangeOpenState=new _.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new C.Cm,this.disposables=new C.Cm,this._mode=e.options.defaultFindMode??I.Highlight,this._matchType=e.options.defaultFindMatchType??O.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&e?((0,w.xE)((0,S.kg)("replFindNoResults","No results")),this.tree.options.showNotFoundMessage??1?this.widget?.showMessage({type:2,content:(0,S.kg)("not found","No elements found.")}):this.widget?.showMessage({type:2})):(this.widget?.clearMessage(),this.pattern&&(0,w.xE)((0,S.kg)("replFindResults","{0} results",this.filter.matchCount)))}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData))}layout(e){this.width=e,this.widget?.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function M(e,t){return e.position===t.position&&P(e,t)}function P(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class F{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.aI)(this.stickyNodes,e.stickyNodes,M)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.aI)(this.stickyNodes,e.stickyNodes,P))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class U{constrainStickyScrollNodes(e,t,i){for(let s=0;s<e.length;s++){const n=e[s];if(n.position+n.height>i||s>=t)return e.slice(0,s)}return e}}class H extends C.jG{constructor(e,t,i,s,n,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=n,this.maxWidgetViewRatio=.4;const o=this.validateStickySettings(r);this.stickyScrollMaxItemCount=o.stickyScrollMaxItemCount,this.stickyScrollDelegate=r.stickyScrollDelegate??new U,this._widget=this._register(new B(i.getScrollableElement(),i,e,s,n,r.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.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),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,s=0,n=this.getNextStickyNode(i,void 0,s);for(;n&&(t.push(n),s+=n.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(n),i));)n=this.getNextStickyNode(i,n.node,s);const r=this.constrainStickyNodes(t);return r.length?new F(r):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const s=this.getAncestorUnderPrevious(e,t);if(s){if(s===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(s,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),s=this.view.getElementTop(i),n=t;return this.view.scrollTop===s-n}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:s,endIndex:n}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(n,t,i),height:i,startIndex:s,endIndex:n}}getAncestorUnderPrevious(e,t=void 0){let i=e,s=this.getParentNode(i);for(;s;){if(s===t)return i;i=s,s=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let s=this.view.getRelativeTop(e);if(null===s&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);s=i?i-t/this.view.renderHeight:null}if(null===s)return t;const n=this.view.element(e),r=this.treeDelegate.getHeight(n),o=s*this.view.renderHeight+r;return t+i>o&&t<=o?o-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const s=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!s.length)return[];const n=s[s.length-1];if(s.length>this.stickyScrollMaxItemCount||n.position+n.height>t)throw new Error("stickyScrollDelegate violates constraints");return s}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let s=0;for(let n=0;n<t.length&&n<this.stickyScrollMaxItemCount;n++)s+=this.treeDelegate.getHeight(t[n]);return s}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(e={}){if(!e.stickyScrollMaxItemCount)return;const 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 B{constructor(e,t,i,s,r,o){this.view=t,this.tree=i,this.treeRenderers=s,this.treeDelegate=r,this.accessibilityProvider=o,this._previousElements=[],this._previousStateDisposables=new C.Cm,this._rootDomNode=(0,n.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const s=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${s.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const s=e.stickyNodes[i],{element:n,disposable:r}=this.createElement(s,i,e.count);t[i]=n,this._rootDomNode.appendChild(n),this._previousStateDisposables.add(r)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t,i){const s=e.startIndex,n=document.createElement("div");n.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(n.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(n.style.lineHeight=`${e.height}px`),n.classList.add("monaco-tree-sticky-row"),n.classList.add("monaco-list-row"),n.setAttribute("data-index",`${s}`),n.setAttribute("data-parity",s%2===0?"even":"odd"),n.setAttribute("id",this.view.getElementID(s));const r=this.setAccessibilityAttributes(n,e.node.element,t,i),o=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===o));if(!a)throw new Error(`No renderer found for template id ${o}`);let c=e.node;c===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(c=new Proxy(e.node,{}));const l=a.renderTemplate(n);a.renderElement(c,e.startIndex,l,e.height);const h=(0,C.s)((()=>{r.dispose(),a.disposeElement(c,e.startIndex,l,e.height),a.disposeTemplate(l),n.remove()}));return{element:n,disposable:h}}setAccessibilityAttributes(e,t,i,s){if(!this.accessibilityProvider)return C.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,s))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",this.accessibilityProvider.getRole(t)??"treeitem");const n=this.accessibilityProvider.getAriaLabel(t),r=n&&"string"!==typeof n?n:(0,y.lk)(n),o=(0,y.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof n||n&&e.setAttribute("aria-label",n.get());const a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof a&&e.setAttribute("aria-level",`${a}`),e.setAttribute("aria-selected",String(!1)),o}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.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends C.jG{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=new _.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register((0,n.ko)(this.container,"focus",(()=>this.onFocus()))),this._register((0,n.ko)(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){const t=e.browserEvent.target;if(!(0,c.Es)(t)&&!(0,c.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,n.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>t.node.element===e.element?.element));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,s=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:s,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){const 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){const t=e.browserEvent.target;((0,c.Es)(t)||(0,c.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,E.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],s=t.count>1?t.stickyNodes[t.count-2]:void 0,n=this.view.getElementTop(e),r=s?s.position+s.height+i.height:i.height;this.view.scrollTop=n-r}domFocus(){if(!this.state)throw new 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 new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const 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 new 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 V(e){let t=d.Lx.Unknown;return(0,n.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=d.Lx.Twistie:(0,n.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=d.Lx.Element:(0,n.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=d.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,c.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function G(e,t){t(e),e.children.forEach((e=>G(e,t)))}class j{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 _.vl,this.onDidChange=this._onDidChange.event}set(e,t){!t?.__forceEvent&&(0,u.aI)(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){const 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){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>G(e,i))),void this.set([...e.values()])}const i=new Set,s=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>G(e,s)));const n=new Map,r=e=>n.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>G(e,r)));const o=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=n.get(e);t&&t.visible&&o.push(t)}else o.push(a)}if(this.nodes.length>0&&0===o.length){const e=this.getFirstViewElementWithTrait();e&&o.push(e)}this._set(o,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends c.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,c.Bm)(e.browserEvent.target)||(0,c.B6)(e.browserEvent.target)||(0,c.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,s=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,n=(0,c.xu)(e.browserEvent.target);let r=!1;if(r=!!n||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),n)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!s&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!n||s)){const i=this.tree.getNodeLocation(t),n=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,n),s)return void(e.browserEvent.isHandledByList=!0)}n||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,c.b$)(e.browserEvent.target)||(0,c.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const s=this.list.indexOf(t),n=this.list.getElementTop(s),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=n-r,this.list.domFocus(),this.list.setFocus([s]),this.list.setSelection([s])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,c.Es)(t)||(0,c.xu)(t)||super.onContextMenu(e)}}class Y extends c.B8{constructor(e,t,i,s,n,r,o,a){super(e,t,i,s,a),this.focusTrait=n,this.selectionTrait=r,this.anchorTrait=o}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const s=[],n=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&n.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),s.length>0&&super.setFocus((0,u.dM)([...super.getFocus(),...s])),n.length>0&&super.setSelection((0,u.dM)([...super.getSelection(),...n])),"number"===typeof r&&super.setAnchor(r)}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||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class q{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 _.Jh.filter(_.Jh.map(this.view.onMouseDblClick,V),(e=>e.target!==d.Lx.Filter))}get onMouseOver(){return _.Jh.map(this.view.onMouseOver,V)}get onMouseOut(){return _.Jh.map(this.view.onMouseOut,V)}get onContextMenu(){return _.Jh.any(_.Jh.filter(_.Jh.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),this.stickyScrollController?.onContextMenu??_.Jh.None)}get onPointer(){return _.Jh.map(this.view.onPointer,V)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){return this.findController?.mode??I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){return this.findController?.matchType??O.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,a={}){this._user=e,this._options=a,this.eventBufferer=new _.at,this.onDidChangeFindOpenState=_.Jh.None,this.onDidChangeStickyScrollFocused=_.Jh.None,this.disposables=new C.Cm,this._onWillRefilter=new _.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.vl,this.treeDelegate=new x(i);const l=new _.Wj,h=new _.Wj,d=this.disposables.add(new k(h.event)),u=new f.db;this.renderers=o.map((e=>new A(e,(()=>this.model),l.event,d,u,a)));for(const s of this.renderers)this.disposables.add(s);let p;var m,v;a.keyboardNavigationLabelProvider&&(p=new N(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:p},this.disposables.add(p)),this.focus=new j((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new j((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new j((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new Y(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(m=()=>this.model,v=a,v&&{...v,identityProvider:v.identityProvider&&{getId:e=>v.identityProvider.getId(e.element)},dnd:v.dnd&&new T(m,v.dnd),multipleSelectionController:v.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>v.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>v.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:v.accessibilityProvider&&{...v.accessibilityProvider,getSetSize(e){const t=m(),i=t.getNodeLocation(e),s=t.getParentNodeLocation(i);return t.getNode(s).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:v.accessibilityProvider&&v.accessibilityProvider.isChecked?e=>v.accessibilityProvider.isChecked(e.element):void 0,getRole:v.accessibilityProvider&&v.accessibilityProvider.getRole?e=>v.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>v.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>v.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:v.accessibilityProvider&&v.accessibilityProvider.getWidgetRole?()=>v.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:v.accessibilityProvider&&v.accessibilityProvider.getAriaLevel?e=>v.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:v.accessibilityProvider.getActiveDescendantId&&(e=>v.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:v.keyboardNavigationLabelProvider&&{...v.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>v.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),l.input=this.model.onDidChangeCollapseState;const E=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);E((()=>null),null,this.disposables);const b=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(E,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);b.fire([...e.values()])}))}))),h.input=b.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,c.B6)(e.target))).map((e=>new r.Z(e)))));_.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((a.findWidgetEnabled??1)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new D(this,this.model,this.view,p,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.Jh.None,this.onDidChangeFindMatchType=_.Jh.None;a.enableStickyScroll&&(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,n.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}updateOptions(e={}){this._options={...this._options,...e};for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this.findController?.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}get options(){return this._options}updateStickyScroll(e){!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),this.stickyScrollController?.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}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(){this.stickyScrollController?.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){this.view.layout(e,t),(0,b.Et)(t)&&this.findController?.layout(t)}style(e){const 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 { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const s=e.treeStickyScrollBackground??e.listBackground;s&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${s}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${s}; }`)),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; }`));const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,e.listFocusOutline??""));r&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; 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(`.monaco-workbench.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(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.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){const 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((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(s,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(s,t,!0)}))}focusNext(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,s)}focusPrevious(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,s)}focusNextPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>this.stickyScrollController?.height??0))}focusLast(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusLast(e,t)}focusFirst(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const s=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,s)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!0)){const e=this.model.getParentNodeLocation(s);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i),n=e.browserEvent.altKey;this.model.setCollapsed(s,void 0,n)}dispose(){(0,C.AS)(this.disposables),this.stickyScrollController?.dispose(),this.view.dispose()}}},19531:(e,t,i)=>{"use strict";i.d(t,{iE:()=>n,rW:()=>r});class s{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class n{constructor(e,t,i,s){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=s,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),o=[];for(let a=0,c=this._zones.length;a<c;a++){const c=this._zones[a];if(!e){const e=c.getColorZones();if(e){o.push(e);continue}}const l=this._getVerticalOffsetForLine(c.startLineNumber),h=0===c.heightInLines?this._getVerticalOffsetForLine(c.endLineNumber)+t:l+c.heightInLines*t,d=Math.floor(n*l),u=Math.floor(n*h);let g=Math.floor((d+u)/2),p=u-g;p<r&&(p=r),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=c.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new s(g-p,g+p,f);c.setColorZone(_),o.push(_)}return this._colorZonesInvalid=!1,o.sort(s.compare),o}}},19562:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var s=i(40579),n=i(94650),r=i(32956),o=i(19131);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=s.Xw.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return s.Xw.create23(e[0],e[1],i>=3?e[2]:null,t)}function c(e,t){return Math.abs(e.listHeight-t.listHeight)}function l(e,t){return e.listHeight===t.listHeight?s.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let r;for(;;){if(t.listHeight===i.listHeight){r=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(e,r,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let r=t;for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(r,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=o.Vp,this.nextNodes=[e],this.offsets=[o.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,o.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const s=u(this.offsets);if((0,o.zG)(e,s))return;if((0,o.zG)(s,e))if((0,o.QB)(s,i.length)<=e)this.nextNodeAfterCurrent();else{const e=d(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=d(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),s=d(i,this.idxs[this.idxs.length-1]);if(-1!==s){this.nextNodes.push(i.getChild(s)),this.offsets.push((0,o.QB)(e,t.length)),this.idxs[this.idxs.length-1]=s;break}this.idxs.pop()}}}function d(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,s){return new p(e,t,i,s).parseDocument()}class p{constructor(e,t,i,s){if(this.tokenizer=e,this.createImmutableLists=s,this._itemsConstructed=0,this._itemsFromCache=0,i&&s)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new n.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(r.gV.getEmpty(),0);return e||(e=s.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let s=this.tryReadChildFromCache(e);if(!s){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;s=this.parseChild(e,t+1)}4===s.kind&&0===s.childrenLength||i.push(s)}const s=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,s=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===s;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let s=i(),n=i();if(!n)return s;for(let r=i();r;r=i())c(s,n)<=c(n,r)?(s=l(s,n),n=r):n=l(n,r);return l(s,n)}(i):a(i,this.createImmutableLists);return s}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,o.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,o.zG)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new s.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new s.yF(i.length);const n=e.merge(i.bracketIds),r=this.parseList(n,t+1),o=this.tokenizer.peek();return o&&2===o.kind&&(o.bracketId===i.bracketId||o.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),s.Nn.create(i.astNode,r,o.astNode)):s.Nn.create(i.astNode,r,null)}default:throw new Error("unexpected")}}}},19856:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(13638).then(i.bind(i,13638))})},20370:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,s:()=>a});var s=i(8597),n=i(25689);const r=new RegExp(`(\\\\)?\\$\\((${n.L.iconNameExpression}(?:${n.L.iconModifierExpression})?)\\)`,"g");function o(e){const t=new Array;let i,s=0,n=0;for(;null!==(i=r.exec(e));){n=i.index||0,s<n&&t.push(e.substring(s,n)),s=(i.index||0)+i[0].length;const[,r,o]=i;t.push(r?`$(${o})`:a({id:o}))}return s<e.length&&t.push(e.substring(s)),t}function a(e){const t=s.$("span");return t.classList.add(...n.L.asClassNameArray(e)),t}},20492:(e,t,i)=>{"use strict";i.d(t,{T:()=>f,i:()=>_});var s,n=i(68214),r=i(80789),o=i(64383),a=i(41234),c=i(5662),l=i(73157),h=i(10154),d=i(83941),u=i(58314),g=i(49099),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class{static{s=this}static{this._ttpTokenizer=(0,r.H)("tokenizeToString",{createHTML:e=>e})}constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const s=new c.Cm,r=s.add((0,n.Gc)(e,{...this._getRenderOptions(e,s),...t},i));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>s.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{let i;e?i=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(i=this._options.editor.getModel()?.getLanguageId()),i||(i=d.vH);const n=await(0,u.Yj)(this._languageService,t,i),r=document.createElement("span");if(r.innerHTML=s._ttpTokenizer?.createHTML(n)??n,this._options.editor){const e=this._options.editor.getOption(50);(0,l.M)(r,e)}else this._options.codeBlockFontFamily&&(r.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(r.style.fontSize=this._options.codeBlockFontSize),r},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(s){return(0,o.dz)(s),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f=s=p([m(1,h.L),m(2,g.C)],f)},20761:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});var s=i(5662);class n extends s.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},20788:(e,t,i)=>{"use strict";i.d(t,{$H:()=>r,Lh:()=>o,r3:()=>n});var s=i(62083);const n=new class{clone(){return this}equals(e){return this===e}};function r(e,t){return new s.$M([new s.ou(0,"",e)],t)}function o(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new s.rY(i,null===t?n:t)}},20897:e=>{e.exports=function(){function e(e){const t=1e3*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid datetime":i.toISOString().replace(/\.\d{3}Z$/,"Z")}return e.isScalar=!0,e}},20940:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>C});var s=i(66782),n=i(90766),r=i(18447),o=i(74320),a=i(64383),c=i(83069),l=i(36677),h=i(93630),d=i(19131),u=i(19562),g=i(32956),p=i(51934);class m{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var f=i(75295),_=i(73401),v=i(29319);async function C(e,t,i,s,h=r.XO.None,d){const u=t instanceof c.y?function(e,t){const i=t.getWordAtPosition(e),s=t.getLineMaxColumn(e.lineNumber);return i?new l.Q(e.lineNumber,i.startColumn,e.lineNumber,s):l.Q.fromPositions(e,e.with(void 0,s))}(t,i):t,g=e.all(i),p=new o.db;for(const n of g)n.groupId&&p.add(n.groupId,n);function m(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=p.get(i);for(const i of e)t.push(i)}return t}const f=new Map,_=new Set;function v(e,t){if(t=[...t,e],_.has(e))return t;_.add(e);try{const i=m(e);for(const e of i){const i=v(e,t);if(i)return i}}finally{_.delete(e)}}function C(e){const r=f.get(e);if(r)return r;const o=v(e,[]);o&&(0,a.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${o.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const l=new n.Zv;return f.set(e,l.p),(async()=>{if(!o){const t=m(e);for(const e of t){const t=await C(e);if(t&&t.items.length>0)return}}try{if(t instanceof c.y){return await e.provideInlineCompletions(i,t,s,h)}return await(e.provideInlineEdits?.(i,t,s,h))}catch(n){return void(0,a.M_)(n)}})().then((e=>l.complete(e)),(e=>l.error(e))),l.p}const y=await Promise.all(g.map((async e=>({provider:e,completions:await C(e)})))),w=new Map,R=[];for(const n of y){const e=n.completions;if(!e)continue;const t=new b(e,n.provider);R.push(t);for(const s of e.items){const e=S.from(s,t,u,i,d);w.set(e.hash(),e)}}return new E(Array.from(w.values()),new Set(w.keys()),R)}class E{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class b{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class S{static from(e,t,i,n,r){let o,a,c=e.range?l.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,r&&e.completeBracketPairs){o=y(o,c.getStartPosition(),n,r);const t=o.length-e.insertText.length;0!==t&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+t))}a=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(r&&e.completeBracketPairs){e.insertText.snippet=y(e.insertText.snippet,c.getStartPosition(),n,r);const i=e.insertText.snippet.length-t;0!==i&&(c=new l.Q(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+i))}const i=(new v.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof v.EY?(o=i.children[0].value,a=void 0):(o=i.toString(),a={snippet:e.insertText.snippet,range:c})}else(0,s.xb)(e.insertText);return new S(o,e.command,c,o,a,e.additionalTextEdits||(0,_.zk)(),e,t)}constructor(e,t,i,s,n,r,o,a){this.filterText=e,this.command=t,this.range=i,this.insertText=s,this.snippetInfo=n,this.additionalTextEdits=r,this.sourceInlineCompletion=o,this.source=a,s=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new S(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new f.WR(this.range,this.insertText)}}function y(e,t,i,s){const n=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,r=i.tokenization.tokenizeLineWithEdit(t,n.length-(t.column-1),e),o=r?.sliceAndInflate(t.column-1,n.length,0);if(!o)return e;const a=function(e,t){const i=new g.Mg,s=new h.Z(i,(e=>t.getLanguageConfiguration(e))),n=new p.tk(new m([e]),s),r=(0,u.T)(n,[],void 0,!0);let o="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,d.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,d.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,d.QB)(i,t.closingBracket.length);else{const e=s.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);o+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)o+=a.substring((0,d.sS)(i),(0,d.sS)((0,d.QB)(i,t.length)));else if(4===t.kind)for(const s of t.children)e(s,i),i=(0,d.QB)(i,s.length)}(r,d.Vp),o}(o,s);return a}},20961:(e,t,i)=>{"use strict";var s=i(10350),n=i(8597),r=i(31450),o=i(80301),a=i(4360),c=i(60002),l=i(78209),h=i(27195),d=i(84001),u=i(32848);i(10691);class g extends h.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,l.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:s.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:h.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class p extends h.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,l.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class m extends h.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,l.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const f=(0,l.aS)("diffEditor","Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,l.aS)("switchSide","Switch Side"),icon:s.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const s=R(e);if(s instanceof a.T){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class v extends r.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,l.aS)("exitCompareMove","Exit Compare Move"),icon:s.W.close,precondition:c.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.exitCompareMove()}}class C extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,l.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:s.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.collapseAllUnchangedRegions()}}class E extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,l.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:s.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=R(e);s instanceof a.T&&s.showAllUnchangedRegions()}}class b extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,l.aS)("revert","Revert"),f1:!1,category:f})}run(e,t){const i=function(e,t,i){const s=e.get(o.T);return s.listDiffEditors().find((e=>{const s=e.getModifiedEditor(),n=e.getOriginalEditor();return s&&s.getModel()?.uri.toString()===i.toString()&&n&&n.getModel()?.uri.toString()===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);i instanceof a.T&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const S=(0,l.aS)("accessibleDiffViewer","Accessible Diff Viewer");class y extends h.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:y.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerNext()}}class w extends h.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w.id,title:(0,l.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=R(e);t?.accessibleDiffViewerPrev()}}function R(e){const t=e.get(o.T).listDiffEditors(),i=(0,n.bq)();if(i)for(const s of t){if(L(s.getContainerDomNode(),i))return s}return null}function L(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}var T=i(50091);(0,h.ug)(g),(0,h.ug)(p),(0,h.ug)(m),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,l.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(c.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,l.kg)("showMoves","Show Moved Code Blocks"),icon:s.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,h.ug)(b);for(const x of[{icon:s.W.arrowRight,key:c.R.diffEditorInlineMode.toNegated()},{icon:s.W.discard,key:c.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertHunk","Revert Block"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new b).desc.id,title:(0,l.kg)("revertSelection","Revert Selection"),icon:x.icon},when:u.M$.and(c.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(C),(0,h.ug)(E),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:y.id,title:(0,l.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(c.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),T.w.registerCommandAlias("editor.action.diffReview.next",y.id),(0,h.ug)(y),T.w.registerCommandAlias("editor.action.diffReview.prev",w.id),(0,h.ug)(w)},21152:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n),r+=")"):r+="()",r}}},21377:(e,t,i)=>{e.exports=i(64066)},21478:(e,t,i)=>{"use strict";i.d(t,{M:()=>H,z:()=>F});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(64383),l=i(5662),h=i(74320),d=i(631),u=i(79400),g=i(37734),p=i(55190),m=i(87908),f=i(7085),_=i(36677),v=i(62083),C=i(16223),E=i(87289),b=i(32500),S=i(56942),y=i(18938),w=i(37927),R=i(3730),L=i(60952),T=i(50091),x=i(14718),k=i(63591),A=i(58591),N=i(66261),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(){this._entries=new h.qK(50)}get(e){const t=M._key(e);return this._entries.get(t)}set(e,t){const i=M._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const P=(0,k.u1)("IInlayHintsCache");(0,x.v)(P,M,1);class F{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let H=class{static{s=this}static{this.ID="editor.contrib.InlayHints"}static{this._MAX_DECORATORS=1500}static{this._MAX_LABEL_LEN=43}static get(e){return e.getContribution(s.ID)??void 0}constructor(e,t,i,s,n,r,o){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=s,this._commandService=n,this._notificationService=r,this._instaService=o,this._disposables=new l.Cm,this._sessionDisposables=new l.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new g.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(142)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(142);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(n.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const s=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(s!==this._activeRenderMode){this._activeRenderMode=s;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),h.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let s;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,l.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const r=new Set,h=new o.uC((async()=>{const e=Date.now();s?.dispose(!0),s=new a.Qi;const i=t.onWillDispose((()=>s?.cancel()));try{const i=s.token,n=await R.P8.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(h.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void n.dispose();for(const e of n.provider)"function"!==typeof e.onDidChangeInlayHints||r.has(e)||(r.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{h.isScheduled()||h.schedule()}))));this._sessionDisposables.add(n),this._updateHintsDecorators(n.ranges,n.items),this._cacheHintsForFastRestore(t)}catch(n){(0,c.dz)(n)}finally{s.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(h),this._sessionDisposables.add((0,l.s)((()=>s?.dispose(!0)))),h.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&h.isScheduled()||h.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{s?.cancel();const t=Math.max(h.delay,1250);h.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>h.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new l.Cm,t=e.add(new w.gi(this._editor)),i=new l.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,s=this._getInlayHintLabelPart(t),n=this._editor.getModel();if(!s||!n)return void i.clear();const r=new a.Qi;i.add((0,l.s)((()=>r.dispose(!0)))),s.item.resolve(r.token),this._activeInlayHintPart=s.part.command||s.part.location?new U(s,t.hasTriggerModifier):void 0;const o=n.validatePosition(s.item.hint.position).lineNumber,c=new _.Q(o,1,o,n.getLineMaxColumn(o)),h=this._getInlineHintsForRange(c);this._updateHintsDecorators([c],h),i.add((0,l.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([c],h)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(L.U,e,this._editor,i.location):v.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(a.XO.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(_.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(0,n.sb)(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(L.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){if(6!==e.target.type)return;const t=e.target.detail.injectedText?.options;return t instanceof E.Ho&&t?.attachedData instanceof F?t.attachedData:void 0}async _invokeCommand(e,t){try{await this._commandService.executeCommand(e.id,...e.arguments??[])}catch(i){this._notificationService.notify({severity:A.AI.Error,source:t.provider.displayName,message:i})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,s]of this._decorationsMetadata){if(t.has(s.item))continue;const n=e.getDecorationRange(i);if(n){const e=new R.EP(n,s.item.anchor.direction),i=s.item.with({anchor:e});t.set(s.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const s of t.sort(_.Q.compareRangesUsingStarts)){const t=e.validateRange(new _.Q(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));0!==i.length&&_.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=_.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){const i=[],n=(e,t,s,n,r)=>{const o={content:s,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:r};i.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?o:void 0}}})},o=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(a/3|0)+"px",display:"inline-block"});n(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:a,fontFamily:c,padding:l,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,c);let u={line:0,totalLen:0};for(const p of t){if(u.line!==p.anchor.range.startLineNumber&&(u={line:p.anchor.range.startLineNumber,totalLen:0}),u.totalLen>s._MAX_LABEL_LEN)continue;p.hint.paddingLeft&&o(p,!1);const e="string"===typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let t=0;t<e.length;t++){const i=e[t],o=0===t,c=t===e.length-1,g={fontSize:`${a}px`,fontFamily:`var(${d}), ${m.jU.fontFamily}`,verticalAlign:h?"baseline":"middle",unicodeBidi:"isolate"};(0,r.EI)(p.hint.textEdits)&&(g.cursor="default"),this._fillInColors(g,p.hint),(i.command||i.location)&&this._activeInlayHintPart?.part.item===p&&this._activeInlayHintPart.part.index===t&&(g.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(g.color=(0,I.Yf)(N.Ztu),g.cursor="pointer")),l&&(o&&c?(g.padding=`1px ${0|Math.max(1,a/4)}px`,g.borderRadius=(a/4|0)+"px"):o?(g.padding=`1px 0 1px ${0|Math.max(1,a/4)}px`,g.borderRadius=`${a/4|0}px 0 0 ${a/4|0}px`):c?(g.padding=`1px ${0|Math.max(1,a/4)}px 1px 0`,g.borderRadius=`0 ${a/4|0}px ${a/4|0}px 0`):g.padding="1px 0 1px 0");let f=i.label;u.totalLen+=f.length;let _=!1;const v=u.totalLen-s._MAX_LABEL_LEN;if(v>0&&(f=f.slice(0,-v)+"\u2026",_=!0),n(p,this._ruleFactory.createClassNameRef(g),B(f),c&&!p.hint.paddingRight?C.VW.Right:C.VW.None,new F(p,t)),_)break}if(p.hint.paddingRight&&o(p,!0),i.length>s._MAX_DECORATORS)break}const g=[];for(const[s,r]of this._decorationsMetadata){const t=this._editor.getModel()?.getDecorationRange(s);t&&e.some((e=>e.containsRange(t)))&&(g.push(s),r.classNameRef.dispose(),this._decorationsMetadata.delete(s))}const f=p.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(g,i.map((e=>e.decoration)));for(let s=0;s<t.length;s++){const e=i[s];this._decorationsMetadata.set(t[s],e)}})),f.restore(this._editor)}_fillInColors(e,t){t.kind===v.r4.Parameter?(e.backgroundColor=(0,I.Yf)(N.B2L),e.color=(0,I.Yf)(N.sjA)):t.kind===v.r4.Type?(e.backgroundColor=(0,I.Yf)(N._pU),e.color=(0,I.Yf)(N.HwT)):(e.backgroundColor=(0,I.Yf)(N.WL6),e.color=(0,I.Yf)(N.P6i))}_getLayoutInfo(){const e=this._editor.getOption(142),t=e.padding,i=this._editor.getOption(52),s=this._editor.getOption(49);let n=e.fontSize;(!n||n<5||n>i)&&(n=i);const r=e.fontFamily||s;return{fontSize:n,fontFamily:r,padding:t,isUniform:!t&&r===s&&n===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function B(e){return e.replace(/[ \t]/g,"\xa0")}H=s=O([D(1,S.ILanguageFeaturesService),D(2,b.ILanguageFeatureDebounceService),D(3,P),D(4,T.d),D(5,A.Ot),D(6,k._Y)],H),T.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)(_.Q.isIRange(s));const{inlayHintsProvider:n}=e.get(S.ILanguageFeaturesService),r=await e.get(y.ITextModelService).createModelReference(i);try{const e=await R.P8.create(n,r.object.textEditorModel,[_.Q.lift(s)],a.XO.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{r.dispose()}}))},21852:(e,t,i)=>{"use strict";i.d(t,{s:()=>g});var s=i(8597),n=i(37479),r=i(5662),o=i(10146),a=i(92719),c=i(42904),l=i(48196),h=i(631),d=i(37882);class u{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,o.aI)(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 g extends r.jG{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(s.BC(e,s.$(".monaco-icon-label")))),this.labelContainer=s.BC(this.domNode.element,s.$(".monaco-icon-label-container")),this.nameContainer=s.BC(this.labelContainer,s.$("span.monaco-icon-name-container")),this.nameNode=t?.supportHighlights||t?.supportIcons?this._register(new m(this.nameContainer,!!t.supportIcons)):new p(this.nameContainer),this.hoverDelegate=t?.hoverDelegate??(0,c.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){const r=["monaco-icon-label"],o=["monaco-icon-label-container"];let a="";i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e));const c=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i?.iconPath){let e;c&&s.sb(c)?e=c:(e=s.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=s.Tf(i?.iconPath)}else c&&c.remove();if(this.domNode.classNames=r,this.domNode.element.setAttribute("aria-label",a),this.labelContainer.classList.value="",this.labelContainer.classList.add(...o),this.setupHover(i?.descriptionTitle?this.labelContainer:this.element,i?.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof n._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,i?.labelEscapeNewLines),this.setupHover(e.element,i?.descriptionTitle)):(e.textContent=t&&i?.labelEscapeNewLines?n._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,i?.descriptionTitle||""),e.empty=!t)}if(i?.suffix||this.suffixNode){this.getOrCreateSuffixNode().textContent=i?.suffix??""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){function s(e,t){(0,h.Kg)(t)?e.title=(0,d.pS)(t):t?.markdownNotSupportedFallback?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}s(e,t)}else{const n=(0,l.i)().setupManagedHover(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new u(s.Pl(this.nameContainer,s.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(s.BC(e.element,s.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){if(!this.descriptionNode){const e=this._register(new u(s.BC(this.labelContainer,s.$("span.monaco-icon-description-container"))));this.creationOptions?.supportDescriptionHighlights?this.descriptionNode=this._register(new n._(s.BC(e.element,s.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(s.BC(e.element,s.$("span.label-description"))))}return this.descriptionNode}}class p{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=s.BC(this.container,s.$("a.label-name",{id:t?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const n=e[i],r=t?.domId&&`${t?.domId}_${i}`;s.BC(this.container,s.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&s.BC(this.container,s.$("span.label-separator",void 0,t?.separator||"/"))}}}}class m extends r.jG{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new n._(s.BC(this.container,s.$("a.label-name",{id:t?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t?.matches,void 0,t?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=t?.separator||"/",r=function(e,t,i){if(!i)return;let s=0;return e.map((e=>{const n={start:s,end:s+e.length},r=i.map((e=>a.Q.intersect(n,e))).filter((e=>!a.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-s,end:t-s})));return s=n.end+t.length,r}))}(e,i,t?.matches);for(let o=0;o<e.length;o++){const a=e[o],c=r?r[o]:void 0,l=t?.domId&&`${t?.domId}_${o}`,h=s.$("a.label-name",{id:l,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new n._(s.BC(this.container,h),{supportIcons:this.supportIcons})).set(a,c,void 0,t?.labelEscapeNewLines),o<e.length-1&&s.BC(h,s.$("span.label-separator",void 0,i))}}}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>s,qQ:()=>c});class s{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){const i=r.get(e);if(i)return i;const s=function(e,t){const i=r.get(e);if(i)return i;const s=t.owner?function(e){const t=a.get(e);if(t)return t;const i=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=o.get(i)??0;s++,o.set(i,s);const n=1===s?i:`${i}#${s}`;return a.set(e,n),n}(t.owner)+".":"";let n;const l=t.debugNameSource;if(void 0!==l){if("function"!==typeof l)return s+l;if(n=l(),void 0!==n)return s+n}const h=t.referenceFn;if(void 0!==h&&(n=c(h),void 0!==n))return s+n;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return s+i}return}(e,t);if(s){let t=n.get(s)??0;t++,n.set(s,t);const i=1===t?s:`${s}#${t}`;return r.set(e,i),i}return}(e,this)}}const n=new Map,r=new WeakMap;const o=new Map,a=new WeakMap;function c(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),s=i?i[1]:void 0;return s?.trim()}},22362:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(59748).then(i.bind(i,59748))})},22890:(e,t,i)=>{"use strict";var s=i(31450),n=i(24520),r=i(51861),o=i(86723),a=i(10424);class c extends s.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:r.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(n.L),s=i.getColorTheme();(0,o.Bb)(s.type)?(i.setTheme(this._originalThemeName||((0,o.HD)(s.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,o.HD)(s.type)?a.aQ:a.nr),this._originalThemeName=s.themeName)}}(0,s.Fl)(c)},23034:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>h,nV:()=>d});var s=i(42904),n=i(35315),r=i(10350),o=i(78209);const a=o.kg("caseDescription","Match Case"),c=o.kg("wordsDescription","Match Whole Word"),l=o.kg("regexDescription","Use Regular Expression");class h extends n.l{constructor(e){super({icon:r.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.l{constructor(e){super({icon:r.W.wholeWord,title:c+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.l{constructor(e){super({icon:r.W.regex,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},23157:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(83823)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="("+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+")"):t.drawCompactView(a,i)?(r+="(",r+=s(o,i,n-1),r+=")"):r+="()",r}}},23195:(e,t,i)=>{"use strict";i.d(t,{l:()=>n});var s=i(61850);const n="yql";(0,s.KV)({id:n,extensions:[],loader:()=>i.e(19507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},23304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(73534).then(i.bind(i,73534))})},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>le});var s,n=i(90766),r=i(64383),o=i(24939),a=i(5662),c=i(80301),l=i(83069),h=i(36677),d=i(84226),u=i(78209),g=i(50091),p=i(84001),m=i(32848),f=i(63591),_=i(59261),v=i(36584),C=i(58591),E=i(9711),b=i(79614),S=i(8597),y=i(35151),w=i(47661),R=i(41234),L=i(36456),T=i(89403),x=i(29163),k=i(87289),A=i(83941),N=i(18938),I=i(3828),O=i(37479),D=i(21852),M=i(26690),P=i(98031),F=i(67841),U=i(19070),H=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},B=function(e,t){return function(i,s){t(i,s,e)}};let W=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof b.y4||e instanceof b.$L}getChildren(e){if(e instanceof b.y4)return e.groups;if(e instanceof b.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};W=H([B(0,N.ITextModelService)],W);class V{getHeight(){return 23}getTemplateId(e){return e instanceof b.$L?K.id:q.id}}let z=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof b.yc){const t=e.parent.getPreview(e)?.preview(e.range);if(t)return t.value}return(0,T.P8)(e.uri)}};z=H([B(0,P.b)],z);class G{getId(e){return e instanceof b.yc?e.id:e.uri}}let j=class extends a.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new D.s(i,{supportHighlights:!0})),this.badge=new I.x(S.BC(i,S.$(".count")),{},U.m$),e.appendChild(i)}set(e,t){const i=(0,T.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const s=e.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat((0,u.kg)("referencesCount","{0} references",s)):this.badge.setTitleFormat((0,u.kg)("referenceCount","{0} reference",s))}};j=H([B(1,F.L)],j);let K=class{static{s=this}static{this.id="FileReferencesRenderer"}constructor(e){this._instantiationService=e,this.templateId=s.id}renderTemplate(e){return this._instantiationService.createInstance(j,e)}renderElement(e,t,i){i.set(e.element,(0,M.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};K=s=H([B(0,f._Y)],K);class Y extends a.jG{constructor(e){super(),this.label=this._register(new O._(e))}set(e,t){const i=e.parent.getPreview(e)?.preview(e.range);if(i&&i.value){const{value:e,highlight:s}=i;t&&!M.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,M.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[s]))}else this.label.set(`${(0,T.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class q{constructor(){this.templateId=q.id}static{this.id="OneReferenceRenderer"}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}class ${getWidgetAriaLabel(){return(0,u.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Q=i(47612),X=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Z=function(e,t){return function(i,s){t(i,s,e)}};class J{static{this.DecorationOptions=k.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"})}constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.Cm,this._callOnModelChange=new a.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:J.DecorationOptions}),i.push(s))}this._editor.changeDecorations((s=>{const n=s.deltaDecorations([],t);for(let t=0;t<n.length;t++)this._decorations.set(n[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,s]of this._decorations){const n=t.getDecorationRange(i);if(!n)continue;let r=!1;if(!h.Q.equalsRange(n,s.range)){if(h.Q.spansMultipleLines(n))r=!0;else{s.range.endColumn-s.range.startColumn!==n.endColumn-n.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(s.id),e.push(i)):s.range=n}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}class ee{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const s=JSON.parse(e);t=s.ratio,i=s.heightInLines}catch{}return{ratio:t||.7,heightInLines:i||18}}}class te extends v.er{}let ie=class extends d.j6{constructor(e,t,i,s,n,r,o,c,l){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=n,this._instantiationService=r,this._peekViewService=o,this._uriLabel=c,this._keybindingService=l,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new R.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new S.fg(0,0),this._isClosing=!1,this._applyTheme(s.getColorTheme()),this._callOnDispose.add(s.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}get isClosing(){return this._isClosing}dispose(){this._isClosing=!0,this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.AS)(this._preview),(0,a.AS)(this._previewNotAvailableMessage),(0,a.AS)(this._tree),(0,a.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(d.zl)||w.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(d.z0)||w.Q1.transparent,primaryHeadingColor:e.getColor(d._X),secondaryHeadingColor:e.getColor(d.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=S.BC(e,S.$("div.messages")),S.jD(this._messageContainer),this._splitView=new y.U(e,{orientation:1}),this._previewContainer=S.BC(e,S.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(x.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),S.jD(this._previewContainer),this._previewNotAvailableMessage=this._instantiationService.createInstance(k.Bz,u.kg("missingPreviewMessage","no preview available"),A.vH,k.Bz.DEFAULT_CREATION_OPTIONS,null),this._treeContainer=S.BC(e,S.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new $,keyboardNavigationLabelProvider:this._instantiationService.createInstance(z),identityProvider:new G,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:d.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(S.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(te,"ReferencesWidget",this._treeContainer,new V,[this._instantiationService.createInstance(K),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(W),t),this._splitView.addView({onDidChange:R.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},y.X.Distribute),this._splitView.addView({onDidChange:R.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},y.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof b.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._disposables.add(this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}))),S.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new S.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.kg("noResults","No results"),S.WU(this._messageContainer),Promise.resolve(void 0)):(S.jD(this._messageContainer),this._decorationsManager=new J(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const s=this._getFocusedReference();s&&this._onDidSelectReference.fire({element:{uri:s.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),S.WU(this._treeContainer),S.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof b.yc?e:e instanceof b.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==L.ny.inMemory?this.setTitle((0,T.Pi)(e.uri),this._uriLabel.getUriLabel((0,T.pD)(e.uri))):this.setTitle(u.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const s=await i;if(!this._model)return void s.dispose();(0,a.AS)(this._previewModelReference);const n=s.object;if(n){const t=this._preview.getModel()===n.textEditorModel?0:1,i=h.Q.lift(e.range).collapseToStart();this._previewModelReference=s,this._preview.setModel(n.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),s.dispose()}};ie=X([Z(3,Q.Gy),Z(4,N.ITextModelService),Z(5,f._Y),Z(6,d.zn),Z(7,F.L),Z(8,P.b)],ie);var se,ne=i(60002),re=i(28290),oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let le=class{static{se=this}static{this.ID="editor.contrib.referencesController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,n,r,o,c){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=n,this._instantiationService=r,this._storageService=o,this._configurationService=c,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),this._widget?.dispose(),this._model?.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let s;if(this._widget&&(s=this._widget.position),this.closeWidget(),s&&e.containsPosition(s))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const n="peekViewLayout",r=ee.fromJSON(this._storageService.get(n,0,"{}"));this._widget=this._instantiationService.createInstance(ie,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(u.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget?(this._storageService.store(n,JSON.stringify(this._widget.layoutData),0,1),this._widget.isClosing||this.closeWidget(),this._widget=void 0):this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:s}=e;if(t)switch(s){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const o=++this._requestIdPool;t.then((t=>{if(o===this._requestIdPool&&this._widget)return this._model?.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.y(e.startLineNumber,e.startColumn),s=this._model.nearestReference(t,i);if(s)return this._widget.setSelection(s).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const s=this._model.nextOrPreviousReference(i,e),n=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();await this._widget.setSelection(s),await this._gotoReference(s,!1),n?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){this._widget?.dispose(),this._model?.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){this._widget?.hide(),this._ignoreModelChangeEvent=!0;const i=h.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(i),this._widget.focusOnReferenceTree();else{const t=se.get(e),s=this._model.clone();this.closeWidget(),e.focus(),t?.toggleWidget(i,(0,n.SS)((e=>Promise.resolve(s))),this._peekMode??!1)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,r.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:s,range:n}=e;this._editorService.openCodeEditor({resource:s,options:{selection:n,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,d.RL)(e);if(!i)return;const s=le.get(i);s&&t(s)}le=se=oe([ae(2,m.fN),ae(3,c.T),ae(4,C.Ot),ae(5,f._Y),ae(6,E.CS),ae(7,p.pG)],le),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,o.m5)(2089,60),when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.M$.or(ce,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.w.registerCommand("closeReferenceSearch",(e=>he(e,(e=>e.closeWidget())))),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.M$.and(d.x2.inPeekEditor,m.M$.not("config.editor.stablePeek"))}),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.M$.and(ce,m.M$.not("config.editor.stablePeek"),m.M$.or(ne.R.editorTextFocus,re.J7.negate()))}),_.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),g.w.registerCommand("openReference",(e=>{const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof b.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},23812:(e,t,i)=>{"use strict";i.d(t,{k:()=>ai});var s=i(60712),n=i(59284),r=i(46819),o=i(85736),a=i(51301);const c="g-date-",l=(0,i(82435).withNaming)({n:c,e:"__",m:"_"});function h({name:e,value:t,onReset:i,form:r,disabled:o,toStringValue:a}){const c=function({initialValue:e,onReset:t}){const[i,s]=n.useState(null),r=n.useRef(e);n.useEffect((()=>{if(!i||!t)return;const e=()=>{t(r.current)};return i.addEventListener("reset",e),()=>{i.removeEventListener("reset",e)}}),[i,t]);const o=n.useCallback((e=>{var t;s(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return o}({initialValue:t,onReset:i});if(!e)return null;const l=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,s.jsx)("input",{ref:c,type:"hidden",name:e,value:l,disabled:o,form:r})}const d=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75M10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0zM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8z",clipRule:"evenodd"}));var u=i(28664),g=i(84476),p=i(99991);function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(14750),_=i(72837);const v=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last second":"Last second","Last minute":"Last minute","Last {count} second":["Last {{count}} second","Last {{count}} seconds","Last {{count}} seconds"],"Last {count} minute":["Last {{count}} minute","Last {{count}} minutes","Last {{count}} minutes"],"Last {count} hour":["Last {{count}} hour","Last {{count}} hours","Last {{count}} hours"],"Last {count} day":["Last {{count}} day","Last {{count}} days","Last {{count}} days"],"Last {count} week":["Last {{count}} week","Last {{count}} weeks","Last {{count}} weeks"],"Last {count} month":["Last {{count}} month","Last {{count}} months","Last {{count}} months"],"Last {count} year":["Last {{count}} year","Last {{count}} years","Last {{count}} years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),C=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last second":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u0430","Last minute":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043c\u0438\u043d\u0443\u0442\u0430","Last {count} second":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"],"Last {count} minute":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043c\u0438\u043d\u0443\u0442\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"],"Last {count} hour":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0447\u0430\u0441","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u043e\u0432"],"Last {count} day":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0434\u0435\u043d\u044c","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u0435\u0439"],"Last {count} week":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043d\u0435\u0434\u0435\u043b\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"],"Last {count} month":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u043c\u0435\u0441\u044f\u0446","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"],"Last {count} year":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0433\u043e\u0434","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0433\u043e\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043b\u0435\u0442"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),E=(0,_.N)({en:v,ru:C},`${c}relative-range-date-picker-presets`),b=[{from:"now-1d",to:"now",get title(){return E("Last day")}},{from:"now-3d",to:"now",get title(){return E("Last 3 days")}},{from:"now-1w",to:"now",get title(){return E("Last week")}},{from:"now-1M",to:"now",get title(){return E("Last month")}},{from:"now-3M",to:"now",get title(){return E("Last 3 months")}},{from:"now-6M",to:"now",get title(){return E("Last 6 months")}},{from:"now-1y",to:"now",get title(){return E("Last year")}},{from:"now-3y",to:"now",get title(){return E("Last 3 years")}}],S=[{from:"now-5m",to:"now",get title(){return E("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return E("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return E("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return E("Last hour")}},{from:"now-3h",to:"now",get title(){return E("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return E("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return E("Last 12 hours")}}],y=[{from:"now/d",to:"now/d",get title(){return E("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return E("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return E("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return E("This week")}},{from:"now/M",to:"now/M",get title(){return E("This month")}},{from:"now/y",to:"now/y",get title(){return E("This year")}},{from:"now/d",to:"now",get title(){return E("From start of day")}},{from:"now/w",to:"now",get title(){return E("From start of week")}},{from:"now/M",to:"now",get title(){return E("From start of month")}},{from:"now/y",to:"now",get title(){return E("From start of year")}}],w=S.concat(b,y),R=/^now-(\d+)([smhdwMy])$/,L={s:"Last second",m:"Last minute",h:"Last hour",d:"Last day",w:"Last week",M:"Last month",y:"Last year"},T={s:"Last {count} second",m:"Last {count} minute",h:"Last {count} hour",d:"Last {count} day",w:"Last {count} week",M:"Last {count} month",y:"Last {count} year"};function x(e,t){return e.filter((e=>{const i=(0,f.bQ)(e.from),s=(0,f.bQ)(e.to,{roundUp:!0});return!(!i||!s)&&(!s.isBefore(i)&&(!t||!i.isBefore(t)))}))}function k(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.KQ)({timeZone:e}).timeZone():e}(e)}function A(e){return`UTC ${(0,f.KQ)({timeZone:e}).format("Z")}`}function N({value:e,timeZone:t,alwaysShowAsAbsolute:i,format:s="L",presets:n}){var r,o,a,c,l,h;if(!e)return"";const d="default"===t?"":` (${A(t)})`;let u="";e.start&&(u="relative"!==e.start.type||i?null!==(o=null===(r=(0,f.bQ)(e.start.value,{timeZone:t}))||void 0===r?void 0:r.format(s))&&void 0!==o?o:"":e.start.value);let g="";if(e.end&&(g="relative"!==e.end.type||i?null!==(c=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(s))&&void 0!==c?c:"":e.end.value),!i&&"relative"===(null===(l=e.start)||void 0===l?void 0:l.type)&&"relative"===(null===(h=e.end)||void 0===h?void 0:h.type))return`${function(e,t,i=w){const s=e.replace(/\s+/g,""),n=t.replace(/\s+/g,"");for(const r of i)if(r.from===s&&r.to===n)return r.title;if("now"===t){const e=R.exec(s);if(e){const[,t,i]=e;if(["s","m","h","d","w","M","y"].includes(i)){const e=1===Number(t)?L[i]:T[i];return E(e,{count:t})}}}return s+" \u2014 "+n}(e.start.value,e.end.value,n)}`;return`${u} \u2014 ${g}${d}`}const I=JSON.parse('{"Range date picker":"Range date picker"}'),O=JSON.parse('{"Range date picker":"\u0412\u044b\u0431\u043e\u0440 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u0430\u0442"}'),D=(0,_.N)({en:I,ru:O},`${c}relative-range-date-picker-control`),M=l("relative-range-date-picker-control"),P=n.forwardRef((({props:e,state:t,open:i,isMobile:r,onClick:o,onKeyDown:a,onFocus:c,onClickCalendar:l,onUpdate:h},f)=>{var _;const{alwaysShowAsAbsolute:v,presetTabs:C,getRangeTitle:E}=e,b=e.format||"L",S=n.useMemo((()=>"function"===typeof E?E(t.value,t.timeZone):N({value:t.value,timeZone:t.timeZone,alwaysShowAsAbsolute:v,format:b,presets:null===C||void 0===C?void 0:C.flatMap((({presets:e})=>e))})),[v,b,E,C,t.timeZone,t.value]),y=e.validationState||(t.isInvalid?"invalid":void 0),w=null!==(_=e.errorMessage)&&void 0!==_?_:t.errors.join("\n"),R={id:e.id,role:"combobox","aria-haspopup":"dialog","aria-expanded":i,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:e.disabled,readOnly:e.readOnly,onClick:l,onKeyDown:a};return e.renderControl?e.renderControl({ref:f,value:t.value,title:S,validationState:y,errorMessage:w,open:i,triggerProps:R}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(u.k,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:S,placeholder:e.placeholder,onUpdate:h,controlProps:Object.assign(Object.assign({className:M("input",{mobile:r})},R),{disabled:r,onClick:o}),onKeyDown:a,onFocus:c,validationState:y,errorMessage:w,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,s.jsx)(g.$,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":i,"aria-label":D("Range date picker")},onClick:l,children:(0,s.jsx)(p.I,{data:d})})}),r?(0,s.jsx)("button",{className:M("mobile-trigger",{"has-clear":Boolean(e.hasClear&&t.value),"has-errors":t.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:o}):null]})}));P.displayName="Control";var F=i(12640),U=i(39238);const H=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),B=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"}));var W=i(32084),V=i(9187),z=i(38602),G=i(33705);function j({placeholderValue:e,timeZone:t}){return null!==e&&void 0!==e?e:(0,f.KQ)({timeZone:t}).set("hour",0).set("minute",0).set("second",0)}function K(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}function Y(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function q(e,t,i){return(0,f.KQ)({input:e,timeZone:i}).format(t)}function $(e,t){const i=n.useRef(null),s=t.isCellFocused(e);n.useEffect((()=>{var e;s&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);const r=t.focusedDate.isSame(e,t.mode)?0:-1,o=t.isCellDisabled(e),a=t.isSelected(e),c="highlightedRange"in t&&t.highlightedRange,l=Boolean(c&&a),h=a&&c&&e.isSame(c.start,t.mode),d=a&&c&&e.isSame(c.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!o&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){switch(t.mode){case"days":return`${q(e,"dddd",t.timeZone)}, ${q(e,"LL",t.timeZone)}`;case"months":return`${q(e,"MMMM YYYY",t.timeZone)}`;case"quarters":return`${q(e,"[Q]Q YYYY",t.timeZone)}`;case"years":return`${q(e,"YYYY",t.timeZone)}`;default:return""}}(e,t),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":o?"true":void 0},C={ref:i,role:"button",tabIndex:o?void 0:r,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let E=q(e,"D",t.timeZone);return"months"===t.mode?E=q(e,"MMM",t.timeZone):"quarters"===t.mode?E=q(e,"[Q]Q",t.timeZone):"years"===t.mode&&(E=q(e,"YYYY",t.timeZone)),{cellProps:v,buttonProps:C,formattedDate:E,isDisabled:o,isSelected:a,isRangeSelection:l,isSelectionStart:h,isSelectionEnd:d,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}const Q=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),X=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),Z=(0,_.N)({en:Q,ru:X},`${c}calendar`),J="yc-button_disabled g-button_disabled";function ee(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:Z("Switch to months view"),quarters:Z("Switch to quarters view"),years:Z("Switch to years view")}[t[i]]}const te=["days","months","quarters","years"],ie=l("calendar"),se=n.forwardRef((function(e,t){const{state:i}=e,{calendarProps:r,modeButtonProps:o,nextButtonProps:c,previousButtonProps:l}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:q(t.focusedDate,"days"===t.mode?"MMMM YYYY":"YYYY",t.timeZone),{focusWithinProps:s}=(0,a.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),r=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},s),o=t.availableModes.indexOf(t.mode),c=o+1===t.availableModes.length,l=o+2===t.availableModes.length,h=t.disabled||c,d={disabled:t.disabled,className:h?J:void 0,onClick:h?void 0:()=>{t.zoomOut(),l&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":ee(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=n.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();n.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?J:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":Z("Previous"),"aria-disabled":g?"true":void 0}},m=n.useRef(!1),f=t.disabled||t.isNextPageInvalid();return n.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:r,modeButtonProps:d,nextButtonProps:{disabled:t.disabled,className:f?J:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":Z("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return n.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,s.jsxs)("div",Object.assign({},r,{className:ie({size:e.size}),children:[(0,s.jsxs)("div",{className:ie("header"),children:[(0,s.jsx)(g.$,Object.assign({},o,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,s.jsx)("span",{className:ie("mode-label",ie("years-label")),children:o.children},"label"):[(0,s.jsx)("span",{className:ie("mode-label"),children:o.children},"label"),(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(G.I,{direction:"bottom"})},"icon")]})),(0,s.jsxs)("div",{className:ie("controls"),children:[(0,s.jsx)(g.$,Object.assign({},l,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(V.A,{className:ie("control-icon")})})})),(0,s.jsx)(g.$,Object.assign({},c,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(z.A,{className:ie("control-icon")})})}))]})]}),(0,s.jsx)(ne,{state:i})]}))}));function ne({state:e}){const[t,i]=n.useState((()=>Object.assign(Object.assign({},e),{isFocused:!1}))),r=e.mode!==t.mode,o=!e.startDate.isSame(t.startDate,"days");let c;r?c=te.indexOf(t.mode)>te.indexOf(e.mode)?"zoom-out":"zoom-in":o&&(c=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:l}=function(e){const{focusWithinProps:t}=(0,a.R)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:q(e.focusedDate,"days"===e.mode?"MMMM YYYY":"YYYY",e.timeZone),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(e);return(0,s.jsxs)("div",Object.assign({className:ie("grid")},l,{children:[c&&(0,s.jsx)(re,{className:ie("previous-state"),state:t,animation:c}),(0,s.jsx)(re,{className:ie("current-state"),state:e,animation:c,onAnimationEnd:()=>{i(Object.assign(Object.assign({},e),{isFocused:!1}))}},"current")]}))}function re({className:e,state:t,animation:i,onAnimationEnd:n}){return(0,s.jsxs)("div",{className:ie("content",{animation:i},e),onAnimationEnd:n,role:"presentation",children:["days"===t.mode&&(0,s.jsx)(oe,{state:t}),(0,s.jsx)(ae,{state:t})]})}function oe({state:e}){const t=function(e){const t=[],i=(0,f.KQ)({timeZone:e.timeZone}).startOf("week");for(let s=0;s<7;s++){const e=i.add({days:s});t.push(e)}return t}(e);return(0,s.jsx)("div",{className:ie("grid-row"),role:"row",children:t.map((t=>(0,s.jsx)("div",{className:ie("weekday",{weekend:e.isWeekend(t)}),role:"columnheader","aria-label":q(t,"dddd",e.timeZone),children:q(t,"dd",e.timeZone)},t.day())))})}function ae({state:e}){const t="days"===e.mode?6:4,i="days"===e.mode?7:3+("quarters"===e.mode?1:0),n=function(e){const t=[],i=(0,f.KQ)({input:e.startDate,timeZone:e.timeZone});if("days"===e.mode){const e=i.startOf("week");for(let i=0;i<42;i++)t.push(e.add({days:i}))}else if("quarters"===e.mode)for(let s=0;s<16;s++)t.push(i.add(s,"quarters"));else for(let s=0;s<12;s++)t.push(i.add({[e.mode]:s}));return t}(e);return(0,s.jsx)("div",{className:ie("grid-rowgroup",{mode:e.mode}),role:"rowgroup",children:[...new Array(t).keys()].map((t=>(0,s.jsxs)("div",{className:ie("grid-row"),role:"row",children:["quarters"===e.mode?(0,s.jsx)("span",{role:"rowheader",className:ie("grid-rowgroup-header"),children:q(n[t*i],"YYYY",e.timeZone)}):null,n.slice(t*i,(t+1)*i).map((t=>(0,s.jsx)(ce,{date:t,state:e},t.unix())))]},t)))})}function ce({date:e,state:t}){const{cellProps:i,buttonProps:n,formattedDate:r,isDisabled:o,isSelected:a,isRangeSelection:c,isSelectionStart:l,isSelectionEnd:h,isOutsideCurrentRange:d,isUnavailable:u,isCurrent:g,isWeekend:p}=$(e,t);return(0,s.jsx)("div",Object.assign({},i,{children:(0,s.jsx)("div",Object.assign({},n,{className:ie("button",{disabled:o,selected:a,"range-selection":c,"selection-start":l,"selection-end":h,"out-of-boundary":d,unavailable:u,current:g,weekend:p}),children:r}))}))}function le(e){const t=e?e.timeZone():"default",[i,s]=n.useState(t);e&&t!==i&&s(t);return e?t:i}const he={days:!0,months:!0,quarters:!1,years:!0};function de(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function ue(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=de(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function ge(e,t,i,s="days"){return!K(e,t,i).isSame(e,s)}const pe=n.forwardRef((function(e,t){const i=function(e){var t,i,s;const{disabled:r,readOnly:a,modes:c=he}=e,[l,h]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),d=te.filter((e=>c[e])),u=d[0]||"days",[g,p]=(0,o.P)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&d.includes(g)?g:u,_=le(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,C=n.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),E=n.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),b=n.useMemo((()=>e.focusedValue?K(e.focusedValue.timeZone(v),C,E):e.focusedValue),[e.focusedValue,C,E,v]),S=n.useMemo((()=>{var t;return K((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:l)||void 0===t?void 0:t.timeZone(v))||j({timeZone:v}).startOf(u),C,E)}),[E,C,e.defaultFocusedValue,v,l,u]),[y,w]=(0,o.P)(b,S,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),R=null!==(s=null===y||void 0===y?void 0:y.timeZone(v))&&void 0!==s?s:K(j({timeZone:v}),C,E);function L(e){w(K(e.startOf(m),C,E))}ge(R,C,E)&&w(K(R,C,E));const[T,x]=n.useState(e.autoFocus||!1),k=de(R,m),A=ue(R,m);return{disabled:r,readOnly:a,value:l,setValue(e){if(!r&&!a){let t=K(e,C,E);if(this.isCellUnavailable(t))return;l&&(t=Y(t,l.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e,t=!1){r||(a||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:C,maxValue:E,focusedDate:R,startDate:k,endDate:A,setFocusedDate(e){L(e),x(!0)},focusNextCell(){L(R.add(1,this.mode))},focusPreviousCell(){L(R.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?L(R.add(1,"week")):"quarters"===this.mode?L(R.add(1,"years")):L(R.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?L(R.subtract(1,"week")):"quarters"===this.mode?L(R.subtract(1,"years")):L(R.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?L(R.add({months:e?12:1})):"quarters"===this.mode?L(R.add(4,"years")):L(R.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?L(R.subtract({months:e?12:1})):"quarters"===this.mode?L(R.subtract(4,"years")):L(R.subtract(12,this.mode))},focusSectionStart(){L(de(R,this.mode))},focusSectionEnd(){L(ue(R,this.mode))},zoomIn(){const e=d[d.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=d[d.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(R,!0)},isFocused:T,setFocused:x,isInvalid(e){return ge(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(l&&e.isSame(l.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&R&&e.isSame(R,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(t){return"days"===this.mode&&("function"===typeof e.isWeekend?e.isWeekend(t):function(e){return[0,6].includes(e.day())}(t))},isCurrent(e){return(0,f.KQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:d}}(e);return(0,s.jsx)(se,Object.assign({ref:t},e,{state:i}))}));var me=i(27145);const fe=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),_e=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),ve=(0,_.N)({en:fe,ru:_e},`${c}date-field`),Ce={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},Ee={start:"[",end:"]"},be={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function Se(e){return 4===(0,f.KQ)().format(e).length}function ye(e,t){const{type:i,format:s}=e;switch(i){case"year":{const e=Se(s);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.KQ)().set("hour",15).format(e)}(s)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function we(e,t){const i=e.type;switch(i){case"year":return Se(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const Re={weekday:"day",day:"date",dayPeriod:"hour"};function Le(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in Re?Re[e]:e}function Te(e,t){switch(e.type){case"year":return ve("year_placeholder").repeat((0,f.KQ)().format(t).length);case"month":return ve("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return ve("day_placeholder").repeat(2);case"weekday":return ve("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return ve("hour_placeholder").repeat(2);case"minute":return ve("minute_placeholder").repeat(2);case"second":return ve("second_placeholder").repeat(2);case"dayPeriod":return ve("dayPeriod_placeholder");default:return t}}function xe(e){const t=[],i=(0,f.cS)(e);let s="",n=!1,r=!1;for(let o=0;o<i.length;o++){const e=i[o]||"";if(r){if(e===Ee.end){r=!1;continue}s+=e}else e.match(/[a-zA-Z]/)?(n&&(Ae(t,s),s=""),n=!1,s+=e):(n||(ke(t,s),s=""),n=!0,e===Ee.start?r=!0:s+=e)}return s&&(n?Ae(t,s):ke(t,s)),t}function ke(e,t){if(!t)return;const i=function(e){const t=be[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),s=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return Se(i)?"0001"===(0,f.KQ)().set("year",1).format(i):"01"===(0,f.KQ)().set("year",2001).format(i);case"month":return(0,f.KQ)().startOf("year").format(i).length>1;case"day":return(0,f.KQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.KQ)().startOf("week").format(i).length>1;case"hour":return(0,f.KQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.KQ)().set("minute",1).format(i).length>1;case"second":return(0,f.KQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:Te(i,t),options:Ne(i,t),hasLeadingZeros:s}))}function Ae(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function Ne(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let s=(0,f.KQ)().startOf("year");const n=[];for(let e=0;e<12;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"months");return n}case"dayPeriod":{const e=(0,f.KQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let s=(0,f.KQ)().day(0);const n=[];for(let e=0;e<7;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"day");return n}}}function Ie(e,t,i){let s=1;const n=[];let r=-1;for(let o=0;o<e.length;o++){const a=e[o];if(!a)continue;const c=De(a,t,i,s,r);if(n.push(c),Oe(a)){for(let e=Math.max(0,r);e<=o;e++){const t=n[e];t&&(t.nextEditableSection=o,-1===t.previousEditableSection&&(t.previousEditableSection=o))}r=o}s+=c.textValue.length}return n}function Oe(e){var t;return null!==(t=Ce[e.type])&&void 0!==t&&t}function De(e,t,i,s,n){const r=Oe(e);let o=e.placeholder;(r&&i[e.type]||"timeZoneName"===e.type)&&(o=t.format(e.format),"digit"===e.contentType&&o.length<e.placeholder.length&&(o=o.padStart(e.placeholder.length,"0"))),o="\u2068"+o+"\u2069";const a=o.length;return Object.assign(Object.assign(Object.assign({},e),{value:we(e,t),textValue:o,start:s,end:s+a,modified:!1,previousEditableSection:n,nextEditableSection:n}),ye(e,t))}function Me(e,t){const i="all"===t||-1===t?0:t,s=e[i];return s&&!Ce[s.type]?s.nextEditableSection:s?i:-1}function Pe(e){let t=(0,f.KQ)(e);return t.isValid()||(t=(0,f.KQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function Fe(e,t){return Object.keys(e).every((e=>t[e]))}function Ue(e,t){const i=n.useRef(null),[,s]=n.useState({});function r(t){e.setSelectedSections(t),s({})}function o(){var t,n;e.focusSectionInPosition(null!==(n=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==n?n:0),s({})}n.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const s=e.sections[e.selectedSectionIndexes.startIndex],n=e.sections[e.selectedSectionIndexes.endIndex];if(s&&n){const e=s.start,i=n.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=n.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(s){var n;if(null===(n=t.onFocus)||void 0===n||n.call(t,s),null!==e.selectedSectionIndexes)return;const a=s.target,c=!i.current;setTimeout((()=>{a&&a===i.current&&(c?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?r("all"):o())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),r(-1)},onKeyDown(i){var s;null===(s=t.onKeyDown)||void 0===s||s.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),r("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly,inputMode:a,onClick(){o()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],s=/^\d+$/.test(i),n=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&s||"letter"===t.contentType&&n)))return void e.onInput(i);if(s||n)return}e.setValueFromString(i)}}}}}const He={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function Be(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),a=le(e.value||e.defaultValue||e.placeholderValue),c=e.timeZone||a,l=e=>{r(e?e.timeZone(a):e)},[h,d]=n.useState((()=>j({placeholderValue:e.placeholderValue,timeZone:c}))),u=e.format||"L",g=function(e){const t=e,[i,s]=n.useState((()=>xe(t))),[r,o]=n.useState(t);return t!==r&&(o(t),s(xe(t))),i}(u),p=n.useMemo((()=>g.filter((e=>Ce[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=n.useState((()=>s?Object.assign({},p):{}));let _=m[0];const v=m[1];s&&!Fe(p,_)&&v(Object.assign({},p)),!s&&Object.keys(p).length>0&&Fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),d(j({placeholderValue:e.placeholderValue,timeZone:c})));const C=s&&s.isValid()&&Fe(p,_)?s.timeZone(c):h.timeZone(c),E=function(e,t,i){const[s,r]=n.useState((()=>({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)})));e===s.sections&&i===s.validSegments&&t.isSame(s.value)&&t.timeZone()===s.value.timeZone()||r({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)});return s}(g,C,_),[b,S]=n.useState(-1),y=n.useMemo((()=>{if(-1===b)return null;if("all"===b)return{startIndex:0,endIndex:E.editableSections.length-1};if("number"===typeof b)return{startIndex:b,endIndex:b};if("string"===typeof b){const e=E.editableSections.findIndex((e=>e.type===b));return{startIndex:e,endIndex:e}}return b}),[b,E.editableSections]);function w(t){e.disabled||e.readOnly||(Fe(p,_)?s&&t.isSame(s)||l(t):(s&&l(null),d(t)))}function R(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const L=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(s,e.minValue,e.maxValue)?"invalid":void 0)||(s&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,s))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:s,editableSections:r,selectedSectionIndexes:o,selectedSections:a,isEmpty:c,flushAllValidSections:l,flushValidSection:h,setSelectedSections:d,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:C}=e,E=n.useRef(""),{hasDate:b,hasTime:S}=n.useMemo((()=>{let e=!1,t=!1;for(const i of r)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[r]);return{value:t,isEmpty:c,displayValue:s,setValue:u,setDate:g,text:(y=r,"\u2066"+y.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:r,hasDate:b,hasTime:S,selectedSectionIndexes:o,validationState:i,setSelectedSections(e){E.current="",d(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,s=this.sections[i];s&&this.setSelectedSections(Ce[s.type]?i:s.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusPreviousSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&d(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,He[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);-1!==e&&p(e,-(He[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;E.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(E.current="","all"===a)return void this.clearAll();const t=Me(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],s=j({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),n=f(t);let r=n;if("dayPeriod"===i.type){const e=n.hour()>=12,t=s.hour()>=12;e&&!t?r=n.set("hour",n.hour()-12):!e&&t&&(r=n.set("hour",n.hour()+12))}else{const e=Le(i.type);r=n.set(e,s[e]())}_(t,r)},clearAll(){if(this.readOnly||this.disabled)return;E.current="",l(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=Me(this.sections,a);if(-1===t)return;const i=this.sections[t];let s=E.current+e;const n=n=>{var r,o,a;let c="month"===i.type?n-1:n;const l=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(c>(null!==(r=i.maxValue)&&void 0!==r?r:0)&&(c=Number(e)-("month"===i.type?1:0),s=e,c>(null!==(o=i.maxValue)&&void 0!==o?o:0)))return void(E.current="")}else n>12&&(c=Number(e)),12===i.minValue&&c>1&&(c+=12);const h=c>0||0===c&&l;h&&m(t,c),Number(n+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||s.length>=String(i.maxValue).length?(E.current="",h&&this.focusNextSection()):E.current=s},r=n=>{var r;const o=null!==(r=i.options)&&void 0!==r?r:[];let a=n.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)));if(0===c.length&&(n!==e&&(a=e.toLocaleUpperCase(),c=o.filter((e=>e.startsWith(a)))),0===c.length))return void(E.current="");const l=c[0],h=o.indexOf(l);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),c.length>1?E.current=s:(E.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(s)))return;n(Number(s));break;case"dayPeriod":r(s);break;case"weekday":case"month":Number.isInteger(Number(s))?n(Number(s)):r(s)}},setValueFromString:e=>(E.current="",C(e))};var y}({value:s,displayValue:C,placeholderValue:e.placeholderValue,timeZone:c,validationState:L,editableSections:E.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:y,selectedSections:b,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=E.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:S,setValue:w,setDate:l,adjustSection:function(e,t){const i=E.editableSections[e];i&&(_[i.type]?w(function(e,t,i){var s;let n=null!==(s=e.value)&&void 0!==s?s:0;if("dayPeriod"===e.type)n=t.hour()+(t.hour()>=12?-12:12);else{n+=i;const t=e.minValue,s=e.maxValue;if("number"===typeof t&&"number"===typeof s){const e=s-t+1;n=(n-t+e)%e+t}}"year"!==e.type||Se(e.format)||(n=(0,f.KQ)({input:`${n}`.padStart(2,"0"),format:e.format}).year());const r=Le(e.type);return t.set(r,n)}(i,C,t)):(R(i.type),Object.keys(_).length>=Object.keys(p).length&&w(C)))},setSection:function(e,t){const i=E.editableSections[e];i&&(R(i.type),w(function(e,t,i){const s=e.type;switch(s){case"year":return t.set("year",Se(e.format)?i:(0,f.KQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(Le(s),i);case"dayPeriod":{const e=t.hour(),s=e>=12;return i>=12===s?t:t.set("hour",s?e-12:e+12)}case"hour":{let s=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==s||(s=0),e&&s<12&&(s+=12)}return t.set("hour",s)}case"minute":case"second":return t.set(s,i)}return t}(i,C,t)))},getSectionValue:function(e){return C},setSectionValue:function(e,t){w(t)},createPlaceholder:function(){return j({placeholderValue:e.placeholderValue,timeZone:c}).timeZone(c)},setValueFromString:function(e){const t=function(e,t,i){let s=Pe({input:e,format:t,timeZone:i});s.isValid()&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(s=Y(s,Pe({input:e,format:t})));return s}(e,u,c);return!!t.isValid()&&(l(t),!0)}})}const We=l("date-field");function Ve(e){var{className:t}=e,i=(0,me.Tt)(e,["className"]);const r=Be(i),{inputProps:o}=Ue(r,i),[c,l]=n.useState(!1),{focusWithinProps:d}=(0,a.R)({onFocusWithinChange(e){l(e)}});return(0,s.jsxs)("div",Object.assign({className:We(null,t),style:i.style},d,{children:[(0,s.jsx)(u.k,Object.assign({},o,{value:r.isEmpty&&!c&&i.placeholder?"":o.value})),(0,s.jsx)(h,{name:i.name,value:r.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{r.setDate(e)},disabled:r.disabled,form:i.form})]}))}const ze=l("mobile-calendar");function Ge({props:e,state:t}){var i,n;let r="date";return t.hasTime&&t.hasDate?r="datetime-local":t.hasTime&&(r="time"),(0,s.jsx)("input",{className:ze(),disabled:e.disabled,type:r,value:Ke(t.dateFieldState.value,r),id:e.id,min:Ke(null===(i=e.minValue)||void 0===i?void 0:i.timeZone(t.timeZone),r),max:Ke(null===(n=e.maxValue)||void 0===n?void 0:n.timeZone(t.timeZone),r),tabIndex:-1,onChange:i=>{var s,n;if(e.readOnly)return;const o=i.target.value;if(o){const i=(0,f.KQ)({input:o,format:je(r),timeZone:"system"}).timeZone(t.timeZone,!0);let a=t.hasDate?i:j({placeholderValue:null===(s=e.placeholderValue)||void 0===s?void 0:s.timeZone(t.timeZone),timeZone:t.timeZone});a=t.hasTime?Y(a,i):t.value?Y(a,t.value.timeZone(t.timeZone)):Y(a,j({placeholderValue:null===(n=e.placeholderValue)||void 0===n?void 0:n.timeZone(t.timeZone),timeZone:t.timeZone})),t.setValue(a)}else t.setValue(null)}})}function je(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Ke(e,t){if(!e)return"";const i=je(t);return e.format(i)}const Ye=l("stub-button");function qe({size:e,icon:t}){return(0,s.jsx)("span",{className:Ye({size:e}),children:(0,s.jsx)("span",{className:Ye("icon"),children:(0,s.jsx)(p.I,{data:t})})})}function $e(...e){const t=Object.assign({},e[0]);for(let i=1;i<e.length;i++){const s=e[i];if(s)for(const e of Object.keys(s)){const i=t[e],n=s[e];"function"===typeof i&&"function"===typeof n&&e.startsWith("on")&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Qe(i,n):t[e]="className"===e&&"string"===typeof i&&"string"===typeof n?i+" "+n:"controlProps"===e&&"object"===typeof i&&"object"===typeof n?$e(i,n):void 0===n?i:n}}return t}function Qe(...e){return(...t)=>{for(const i of e)"function"===typeof i&&i(...t)}}const Xe=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ze=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Je=(0,_.N)({en:Xe,ru:Ze},`${c}relative-date-picker`);function et(e,t){var{onFocus:i,onBlur:s}=t,r=(0,me.Tt)(t,["onFocus","onBlur"]);const{mode:c,setMode:l,datePickerState:h,relativeDateState:d}=e,[u,g]=n.useState("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=n.useState(d.lastCorrectDate);p!==d.lastCorrectDate&&(f(d.lastCorrectDate),g(d.lastCorrectDate));const[_,v]=n.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:C}=(0,a.R)({onFocusWithin:i,onBlurWithin:s,onFocusWithinChange(t){t||e.setActive(!1)}}),[E,b]=(0,o.P)(void 0,!1,r.onOpenChange);!e.isActive&&E&&b(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),b(!0))},errorMessage:r.errorMessage,errorPlacement:r.errorPlacement,controlProps:{onClick:()=>{e.disabled||E||(e.setActive(!0),b(!0))},role:"combobox","aria-expanded":E}},{inputProps:y}=Ue(h.dateFieldState,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:w}=function(e,t){const[i,s]=n.useState(e.lastCorrectDate),[r,o]=n.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(s(e.lastCorrectDate),o(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:r,onFocusUpdate:o},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(d,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let R=r.validationState;R||(R="relative"===c?d.validationState:h.dateFieldState.validationState);const L=n.useRef(null),T=(0,W.N)(L,"relative"===c?w.controlRef:y.controlRef),x=n.useRef(null);function k(){setTimeout((()=>{var e;null===(e=x.current)||void 0===e||e.focus()}))}function A(){setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus({preventScroll:!0})}))}const N=n.useRef(null);return{groupProps:Object.assign(Object.assign({ref:N,tabIndex:-1,role:"group"},C),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),b(!0),k())}}),fieldProps:$e(S,"relative"===c?w:y,"absolute"===c&&h.dateFieldState.isEmpty&&!e.isActive&&r.placeholder?{value:""}:void 0,{controlRef:T,validationState:R}),modeSwitcherProps:{size:m(r.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===c,extraProps:{"aria-label":Je("Formula input mode")},onClick:()=>{if(l("relative"===c?"absolute":"relative"),"relative"===c){const e=h.value;e&&g(e)}else d.parsedDate&&g(d.parsedDate);A()}},calendarButtonProps:{size:m(r.size),disabled:e.disabled,extraProps:{"aria-label":Je("Calendar"),"aria-haspopup":"dialog","aria-expanded":E},view:"flat-secondary",onClick:()=>{e.setActive(!0),b(!E),E||k()}},popupProps:{open:E,onEscapeKeyDown:()=>{b(!1),A()},onOutsideClick:e=>{var t;e.target&&!(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))&&b(!1)},onTransitionExited:()=>{g("relative"===c?d.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:x,size:"s"===r.size?"m":r.size,readOnly:r.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(b(!1),A())},focusedValue:u,onFocusUpdate:g,minValue:r.minValue,maxValue:r.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:r.timeZone,hasClear:r.hasClear,size:r.size}}}const tt=function({getPlaceholderTime:e,mergeDateTime:t,setTimezone:i,getDateTime:s,useDateFieldState:r}){return function(a){var c,l;const{disabled:h,readOnly:d}=a,[u,g]=(0,o.P)(a.open,null!==(c=a.defaultOpen)&&void 0!==c&&c,a.onOpenChange),p=g,[m,f]=(0,o.P)(a.value,null!==(l=a.defaultValue)&&void 0!==l?l:null,a.onUpdate),[_,v]=n.useState(null),[C,E]=n.useState(null),b=le(s(a.value)||s(a.defaultValue)||a.placeholderValue),S=a.timeZone||b;let y=_,w=C;const R=a.format||"L",L=(e,s)=>{h||d||(f(i(t(e,s),b)),v(null),E(null))},T=r(Object.assign(Object.assign({},a),{value:m,onUpdate(e){e?L(e,e):f(null)},disabled:h,readOnly:d,validationState:a.validationState,minValue:a.minValue,maxValue:a.maxValue,isDateUnavailable:a.isDateUnavailable,format:R,placeholderValue:a.placeholderValue,timeZone:S})),x=n.useMemo((()=>{if(!T.hasTime)return;const e=[],t=T.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=T.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const s=T.sections.find((e=>"second"===e.type));s&&e.push(s.format);const n=T.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(n?` ${n.format}`:"")}),[T.hasTime,T.sections]);m&&(y=i(m,S),T.hasTime&&(w=i(m,S)));return T.hasTime&&!w&&(w=T.displayValue),{value:m,setValue(e){a.readOnly||a.disabled||f(e?i(e,b):null)},dateValue:y,timeValue:w,setDateValue:e=>{if(h||d)return;const t=!T.hasTime;T.hasTime?w||t?L(e,w||e):v(e):L(e,e),t&&p(!1,"ValueSelected")},setTimeValue:t=>{if(h||d)return;const i=null!==t&&void 0!==t?t:e(a.placeholderValue,S);y?L(y,i):E(i)},disabled:h,readOnly:d,format:R,hasDate:T.hasDate,hasTime:T.hasTime,timeFormat:x,timeZone:S,isOpen:u,setOpen(t,i){!t&&!m&&y&&T.hasTime&&L(y,w||e(a.placeholderValue,a.timeZone)),p(t,i)},dateFieldState:T}}}({getPlaceholderTime:function(e,t){return j({placeholderValue:e,timeZone:t})},mergeDateTime:Y,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:Be});function it(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[c,l]=n.useState(i);i!==c&&(l(i),i&&i.type!==r&&a(i.type));const[h,d]=n.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&d(i.value);const u=tt({value:h,onUpdate:e=>{d(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||s(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState(null!==i&&void 0!==i?i:"");i&&i!==r&&a(i);const c=n.useMemo((()=>{var t;return i&&null!==(t=(0,f.bQ)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[l,h]=n.useState(c);c&&c!==l&&h(c);const d=e.validationState||r&&!c?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||s(t)},text:r,setText:t=>{if(!e.disabled&&!e.readOnly)if(a(t),(0,f.eP)(t)){const e=(0,f.bQ)(t);e&&e.isValid()?s(t):s(null)}else s(null)},parsedDate:c,lastCorrectDate:l,validationState:d,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||s(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===r&&h?d(null):"relative"===r&&g&&p(null));const _="relative"===r?m.parsedDate:u.dateFieldState.displayValue,[v,C]=n.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||s(t)},disabled:e.disabled,readOnly:e.readOnly,mode:r,setMode(t){e.readOnly||e.disabled||t===r||(a(t),"relative"===t?(!i&&g||i)&&s(g?{type:"relative",value:g}:null):(!i&&h||i)&&s(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:C}}const st=l("relative-date-picker");function nt(e){var t;const i=it(e),{groupProps:o,fieldProps:a,modeSwitcherProps:c,calendarButtonProps:l,popupProps:m,calendarProps:f,timeInputProps:_}=et(i,e),v=n.useRef(null),C=(0,W.N)(v,o.ref),E=(0,r.I)(),b=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,s.jsxs)("div",Object.assign({},o,{ref:C,className:st(null,e.className),children:[E&&"absolute"===i.mode&&(0,s.jsx)(Ge,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,s.jsx)(u.k,Object.assign({},a,{controlProps:Object.assign(Object.assign({},a.controlProps),{disabled:E&&"absolute"===i.mode,className:st("input",{mobile:E&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(E&&"absolute"===i.mode),startContent:(0,s.jsx)(g.$,Object.assign({},c,{children:(0,s.jsx)(p.I,{data:H})})),endContent:(0,s.jsxs)(n.Fragment,{children:[!E&&!b&&(0,s.jsx)(g.$,Object.assign({},l,{children:(0,s.jsx)(p.I,{data:d})})),!E&&b&&(0,s.jsx)(qe,{size:l.size,icon:B}),E&&"absolute"===i.mode&&(0,s.jsx)(qe,{size:l.size,icon:b?B:d})]})})),(0,s.jsx)(h,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,s.jsx)(h,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!E&&!b&&(0,s.jsx)(U.z,Object.assign({},m,{anchorRef:v,children:(0,s.jsxs)("div",{className:st("popup-content"),children:["function"===typeof e.children?e.children(f):(0,s.jsx)(pe,Object.assign({},f)),i.datePickerState.hasTime&&(0,s.jsx)("div",{className:st("time-field-wrapper"),children:(0,s.jsx)(Ve,Object.assign({},_))})]})}))]}))}var rt=i(23871),ot=i(40091),at=i(73633),ct=i(87924),lt=i.n(ct),ht=i(81824),dt=i.n(ht),ut=i(61199),gt=i.n(ut),pt=i(69220),mt=i(27629);const ft=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),_t=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),vt=(0,_.N)({en:ft,ru:_t},"Table");function Ct(e){(0,mt.m)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Et(e,t){return"left"===e?(Ct(t),"start"):"right"===e?(Ct(t),"end"):e}const bt=(0,pt.om)("table");class St extends n.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>n.createRef()))},this.tableRef=n.createRef(),this.scrollContainerRef=n.createRef(),this.horizontalScrollBarRef=n.createRef(),this.horizontalScrollBarInnerRef=n.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:s,onRowClick:r,onRowMouseEnter:o,onRowMouseLeave:a,onRowMouseDown:c,getRowClassNames:l,verticalAlign:h,edgePadding:d,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===s||void 0===s?void 0:s(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===l||void 0===l?void 0:l(e,t))||[],v=Boolean(!f&&r);return n.createElement("tr",{key:St.getRowId(this.props,e,t),onClick:!f&&r?r.bind(null,e,t):void 0,onMouseEnter:!f&&o?o.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&c?c.bind(null,e,t):void 0,className:bt("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,s)=>{const{id:r,align:o,primary:a,className:c,sticky:l}=i,h=St.getBodyCellContent(i,e,t),g=Et(o,"column.align"),m=Et(l,"column.sticky");return n.createElement("td",{key:r,style:p[s],className:bt("cell",{align:g,primary:a,sticky:m,"edge-padding":d,"word-wrap":u},c)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:s,getRowId:n,getRowDescriptor:r}=e,o=null!==i&&void 0!==i?i:s.indexOf(t),a=null===r||void 0===r?void 0:r(t,o);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof n?n(t,o):String(n&&n in t?t[n]:o)}static getHeadCellContent(e){const{id:t,name:i}=e;let s;return s="function"===typeof i?i():"string"===typeof i?i:t,s}static getBodyCellContent(e,t,i){const{id:s,template:n,placeholder:r}=e;let o,a;return o="function"===typeof r?r(t,i):null!==r&&void 0!==r?r:"\u2014","function"===typeof n?a=n(t,i):"string"===typeof n?a=lt()(t,n):dt()(t,s)&&(a=lt()(t,s)),[void 0,null,""].includes(a)&&o?o:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>n.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:s}=this.props,r=e.some((({primary:e})=>e));return n.createElement("div",{className:bt({"with-primary":r,"with-sticky-scroll":t},i),"data-qa":s},t?n.createElement(n.Fragment,null,n.createElement("div",{ref:this.scrollContainerRef,className:bt("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:s}=this.state;return n.createElement("thead",{className:bt("head")},n.createElement("tr",{className:bt("row")},e.map(((e,r)=>{const{id:o,align:a,primary:c,sticky:l,className:h}=e,d=Et(a,"column.align"),u=Et(l,"column.sticky"),g=St.getHeadCellContent(e);return n.createElement("th",{key:o,ref:this.state.columnHeaderRefs[r],style:s[r],className:bt("cell",{align:d,primary:c,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return n.createElement("tbody",{className:bt("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return n.createElement("table",{ref:this.tableRef,className:bt("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return n.createElement("tr",{className:bt("row",{empty:!0})},n.createElement("td",{className:bt("cell"),colSpan:e.length},t||vt("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return n.createElement("div",{ref:this.horizontalScrollBarRef,className:bt("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},n.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:bt("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,s=i[e],n={};if("string"===typeof s.width)return{maxWidth:0,width:s.width};if("undefined"!==typeof s.width&&(n.width=s.width),!s.sticky)return n;const r="left"===s.sticky||"start"===s.sticky?t.slice(0,e):t.slice(e+1);return n["left"===s.sticky||"start"===s.sticky?"insetInlineStart":"insetInlineEnd"]=r.reduce(((e,t)=>gt()(t)?e+t:e),0),n}}St.defaultProps={edgePadding:!0};var yt=i(84375);const wt=l("relative-range-date-picker-presets-doc"),Rt=[{id:"title",name:()=>E("Range")},{id:"from",name:()=>E("From")},{id:"to",name:()=>E("To")}],Lt=[{get title(){return E("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return E("From start of day")},from:"now/d",to:"now"},{get title(){return E("This week")},from:"now/w",to:"now/w"},{get title(){return E("From start of week")},from:"now/w",to:"now"},{get title(){return E("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function Tt({size:e,docs:t}){return(0,s.jsx)(St,{columns:Rt,data:t,className:wt("table",{size:e})})}function xt({className:e,size:t,docs:i}){return(0,s.jsx)(yt.A,{className:wt(null,e),tooltipContentClassName:wt("content"),hasArrow:!1,content:(0,s.jsx)(Tt,{size:t,docs:i}),children:(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:m(t),children:(0,s.jsx)(p.I,{data:at.A})})})}function kt({className:e,size:t,docs:i}){const[r,o]=n.useState(!1);return(0,s.jsxs)("div",{className:wt(null,e),children:[(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:"l",onClick:()=>{o(!0)},children:(0,s.jsx)(p.I,{data:at.A})}),(0,s.jsx)(F.c,{visible:r,onClose:()=>o(!1),children:(0,s.jsx)(Tt,{size:t,docs:i})})]})}function At({className:e,size:t,docs:i=Lt}){const n=(0,r.I)();return Array.isArray(i)&&0!==i.length?n?(0,s.jsx)(kt,{className:e,size:t,docs:i}):(0,s.jsx)(xt,{className:e,size:t,docs:i}):null}const Nt=l("relative-range-date-picker-presets");function It({className:e,size:t="m",minValue:i,withTime:r,onChoosePreset:o,presetTabs:a,docs:c}){var l,h;const d=n.useMemo((()=>function(e,{minValue:t}={}){return e.reduce(((e,i)=>{const s=x(i.presets,t);return s.length&&e.push(Object.assign(Object.assign({},i),{presets:s})),e}),[])}(null!==a&&void 0!==a?a:function({withTime:e,minValue:t}){const i=[],s={id:"main",title:E("Main"),presets:[]},n=b;e&&n.unshift(...S),s.presets=x(n,t),s.presets.length>0&&i.push(s);const r={id:"other",title:E("Other"),presets:x(y,t)};return r.presets.length>0&&i.push(r),i}({withTime:r}),{minValue:i})),[r,i,a]),[u,g]=n.useState(null===(l=d[0])||void 0===l?void 0:l.id);if(0===d.length)return null;const p=null!==(h=d.find((e=>e.id===u)))&&void 0!==h?h:d[0];return p?(p.id!==u&&g(p.id),(0,s.jsxs)("div",{className:Nt({size:t},e),children:[(0,s.jsxs)("div",{className:Nt("tabs"),children:[(0,s.jsx)(rt.t,{activeTab:u,onSelectTab:g,items:d,size:"s"===t?"m":t}),(0,s.jsx)(At,{className:Nt("doc"),size:t,docs:c})]}),(0,s.jsx)("div",{className:Nt("content"),children:(0,s.jsx)(Dt,{presets:p.presets,onChoosePreset:o,size:t})})]})):null}const Ot={s:28,m:28,l:32,xl:36};function Dt({presets:e,onChoosePreset:t,size:i="m"}){const r=n.useRef(null);return n.useEffect((()=>{var e,t;const i=r.current,s=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&s)try{s.setAttribute("tabindex","0"),s.setAttribute("class",Nt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return s.addEventListener("focus",e),()=>{s.removeEventListener("focus",e)}}catch(n){}}),[]),(0,s.jsx)(ot.B,{ref:r,className:Nt("list"),itemClassName:Nt("item"),items:e,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ot[i],onItemClick:e=>{t(e.from,e.to)}})}var Mt=i(24555),Pt=i(98089);const Ft=JSON.parse('{"default":"Default","system":"Browser time"}'),Ut=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Ht=(0,_.N)({en:Ft,ru:Ut},`${c}relative-range-date-picker-zones`),Bt={},Wt=(0,f.Pn)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let s=Bt[i];s||(s={label:i,options:[]},Bt[i]=s,e.push(s)),s.options.push({value:t})}return e}),[]);Wt.unshift({value:"UTC"}),Wt.unshift({value:"system",get content(){return Ht("system")}}),Wt.unshift({value:"default",get content(){return Ht("default")}});const Vt=l("relative-range-date-picker-zones");function zt(e){const t=k(e.value),i=e.isMobile?"xl":e.size;return(0,s.jsx)(Mt.l,{disabled:e.disabled,value:[t],options:Wt,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:n=>{const r="system"===t||"default"===t?Ht(t):t;return(0,s.jsxs)(g.$,{onClick:n.onClick,ref:n.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,disabled:e.disabled,extraProps:{"aria-haspopup":"listbox","aria-expanded":n.open,onKeyDown:n.onKeyDown},className:Vt("control"),children:[`${r} (${A(t)})`,(0,s.jsx)(p.I,{className:Vt("control-icon"),data:z.A,size:e.isMobile?20:16})]})},renderOption:({value:e,content:t})=>{const i=null!==t&&void 0!==t?t:e;return(0,s.jsxs)("span",{className:Vt("item"),children:[(0,s.jsxs)("span",{className:Vt("item-title"),title:e,children:[i,"\xa0"]}),(0,s.jsx)(Pt.E,{color:"secondary",children:A(e)})]})},filterable:!0})}const Gt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),jt=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Kt=(0,_.N)({en:Gt,ru:jt},`${c}relative-range-date-picker-dialog`),Yt=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),qt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),$t=(0,_.N)({en:Yt,ru:qt},`${c}validation`);function Qt(e,t,i,s,n,r="Value"){const o=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),c=e&&(null===s||void 0===s?void 0:s(e))||!1,l=o||a||c,h=[];return l&&(a&&t&&h.push($t("Value must be {minValue} or later.",{minValue:t.timeZone(n).format(),value:r})),o&&i&&h.push($t("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(n).format(),value:r})),c&&h.push($t("Selected date unavailable."))),{isInvalid:l,errors:h}}function Xt(e,t,i={}){var s;if(!e&&!t)return null;const{isInvalid:n}=Zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(s=i.timeZone)&&void 0!==s?s:"default");return n?null:{start:e,end:t}}function Zt(e,t,i,s,n,r,o){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.bQ)(e.value,{timeZone:o}):null,c=t?(0,f.bQ)(t.value,{timeZone:o,roundUp:!0}):null,l=Qt(a,s,n,r,o);a||i||(l.isInvalid=!0,l.errors.push(Kt("Value is required.")));const h=Qt(c,s,n,r,o);return c||i||(h.isInvalid=!0,h.errors.push(Kt("Value is required."))),a&&c&&c.isBefore(a)&&(l.isInvalid=!0,l.errors.push(Kt('"From" can\'t be after "To".'))),{isInvalid:l.isInvalid||h.isInvalid,startValidationResult:l,endValidationResult:h}}const Jt=l("relative-range-date-picker-dialog");function ei({props:e,state:t,open:i,onClose:n,focusInput:r,isMobile:o,anchorRef:a,className:c}){return o?(0,s.jsx)(F.c,{visible:i,onClose:n,contentClassName:Jt("content",{mobile:!0,size:"xl"},c),children:(0,s.jsx)(ti,Object.assign({},e,{size:"xl",state:t,onApply:n}))}):(0,s.jsx)(U.z,{open:i,onEscapeKeyDown:()=>{n(),r()},onClose:n,role:"dialog",anchorRef:a,contentClassName:Jt("content",{size:e.size},c),autoFocus:!0,focusTrap:!0,children:(0,s.jsx)(ti,Object.assign({},e,{state:t,onApply:n}))})}function ti(e){var t,i,r,o,a,c,l;const h=function(e,t){var i,s,r,o;const{withApplyButton:a,allowNullableValues:c}=t,[l,h]=n.useState(null!==(s=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==s?s:null),[d,u]=n.useState(null!==(o=null===(r=e.value)||void 0===r?void 0:r.end)&&void 0!==o?o:null),[g,p]=n.useState(e.timeZone),m=a?g:e.timeZone,f=n.useMemo((()=>Zt(l,d,c,t.minValue,t.maxValue,t.isDateUnavailable,m)),[c,d,t.isDateUnavailable,t.maxValue,t.minValue,l,m]);return{start:l,end:d,timeZone:m,setStart:function(i){h(i),a||e.setValue(Xt(i,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Xt(l,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,s){h(i),u(s),a||e.setValue(Xt(i,s,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Xt(l,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),d=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.KQ)({timeZone:e.state.timeZone}),u={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:Jt("pickers"),children:[(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(i=h.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(o=null===(r=h.startValidation)||void 0===r?void 0:r.errors)||void 0===o?void 0:o.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.startOf("day"),label:Kt("From"),value:h.start,onUpdate:h.setStart})),(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(a=h.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(l=null===(c=h.endValidation)||void 0===c?void 0:c.errors)||void 0===l?void 0:l.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.endOf("day"),label:Kt("To"),value:h.end,onUpdate:h.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,s.jsx)(g.$,{disabled:h.isInvalid,size:e.size,onClick:()=>{h.applyValue(),e.onApply()},className:Jt("apply"),width:"max",children:Kt("Apply")}):null,e.withPresets&&!e.readOnly?(0,s.jsx)(It,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{h.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:Jt("presets")}):null,e.withZonesList?(0,s.jsx)("div",{className:Jt("zone"),children:(0,s.jsx)(zt,{value:h.timeZone,onUpdate:h.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const ii=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),si=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),ni=(0,_.N)({en:ii,ru:si},`${c}relative-range-date-picker`);function ri(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[a,c]=(0,o.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),l=n.useMemo((()=>function(e,t,i,s,n,r){if(!e)return{isInvalid:!1,errors:[]};const o=e.start?(0,f.bQ)(e.start.value,{timeZone:r}):null,a=e.end?(0,f.bQ)(e.end.value,{timeZone:r,roundUp:!0}):null,c=Qt(o,i,s,n,r,ni('"From"'));o||t||(c.isInvalid=!0,c.errors.push(ni('"From" is required.')));const l=Qt(a,i,s,n,r,ni('"To"'));a||t||(l.isInvalid=!0,l.errors.push(ni('"To" is required.')));o&&a&&a.isBefore(o)&&(c.isInvalid=!0,c.errors.push(ni('"From" can\'t be after "To".')));return{isInvalid:c.isInvalid||l.isInvalid,errors:c.errors.concat(l.errors)}}(s,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,a)),[s,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,a]);return Object.assign({value:s,timeZone:a,setValue(t,i){var n;r(t),c(i),(s!==t||s&&a!==i)&&(null===(n=e.onUpdate)||void 0===n||n.call(e,t,i))}},l)}const oi=l("relative-range-date-picker");function ai(e){const t=ri(e),i=(0,r.I)(),c=n.useRef(null),l=n.useRef(null),[d,u]=n.useState(!1),[g,p]=(0,o.P)(void 0,!1,e.onOpenChange),{focusWithinProps:m}=(0,a.R)({isDisabled:e.disabled,onFocusWithin:t=>{var i;d||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;g||(u(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}});return(0,s.jsxs)("div",Object.assign({ref:c},m,{className:oi(null,e.className),style:e.style,children:[(0,s.jsx)(P,{props:e,state:t,open:g,isMobile:i,ref:l,onClick:()=>{e.disabled||g||(u(!0),p(!0))},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),p(!0))},onClickCalendar:()=>{u(!0),p(!g)},onFocus:()=>{d||(u(!0),p(!0))},onUpdate:i=>{e.readOnly||i||t.setValue(null,"default")}}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return ci(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,onReset:e=>{t.setValue(e.value,e.timeZone)},value:{value:t.value,timeZone:t.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,s.jsx)(ei,{state:t,props:e,open:g,onClose:()=>{p(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:c,isMobile:i,className:e.popupClassName})]}))}function ci(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},23934:(e,t,i)=>{"use strict";var s=i(61850),n=i(92727);const r="clickhouse";(0,s.KV)({id:r,extensions:[],loader:()=>i.e(66397).then(i.bind(i,66397)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const o=new s.IK(r,s.bC,s.RQ);n.eo[r]=o;(0,s.KV)({id:"s-expression",extensions:[],loader:()=>i.e(5475).then(i.bind(i,5475))}),n.EN.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),n.EN.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(23195);(0,s.KV)({id:"yql_ansi",extensions:[],loader:()=>i.e(19507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))});i(43733)},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>V,Jt:()=>f,hZ:()=>E,mN:()=>Ae,xI:()=>W});var s=i(59284),n=e=>"checkbox"===e.type,r=e=>e instanceof Date,o=e=>null==e;const a=e=>"object"===typeof e;var c=e=>!o(e)&&!Array.isArray(e)&&a(e)&&!r(e),l=e=>c(e)&&e.target?n(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return c(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e),s="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||s)||!i&&!c(e))return e;if(t=i?[]:{},i||d(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!c(e))return i;const s=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>o(e)?e:e[t]),e);return m(s)||s===e?m(e[t])?i:e[t]:s},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),C=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),E=(e,t,i)=>{let s=-1;const n=v(t)?[t]:C(t),r=n.length,o=r-1;for(;++s<r;){const t=n[s];let r=i;if(s!==o){const i=e[t];r=c(i)||Array.isArray(i)?i:isNaN(+n[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}return e};const b={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},y="max",w="min",R="maxLength",L="minLength",T="pattern",x="required",k="validate",A=s.createContext(null),N=()=>s.useContext(A);var I=(e,t,i,s=!0)=>{const n={defaultValues:t._defaultValues};for(const r in e)Object.defineProperty(n,r,{get:()=>{const n=r;return t._proxyFormState[n]!==S.all&&(t._proxyFormState[n]=!s||S.all),i&&(i[n]=!0),e[n]}});return n},O=e=>c(e)&&!Object.keys(e).length,D=(e,t,i,s)=>{i(e);const{name:n,...r}=e;return O(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!s||S.all)))},M=e=>Array.isArray(e)?e:[e],P=(e,t,i)=>!e||!t||e===t||M(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function F(e){const t=s.useRef(e);t.current=e,s.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var U=e=>"string"===typeof e,H=(e,t,i,s,n)=>U(e)?(s&&t.watch.add(e),f(i,e,n)):Array.isArray(e)?e.map((e=>(s&&t.watch.add(e),f(i,e)))):(s&&(t.watchAll=!0),i);function B(e){const t=N(),{name:i,disabled:n,control:r=t.control,shouldUnregister:o}=e,a=h(r._names.array,i),c=function(e){const t=N(),{control:i=t.control,name:n,defaultValue:r,disabled:o,exact:a}=e||{},c=s.useRef(n);c.current=n,F({disabled:o,subject:i._subjects.values,next:e=>{P(c.current,e.name,a)&&h(g(H(c.current,i._names,e.values||i._formValues,!1,r)))}});const[l,h]=s.useState(i._getWatch(n,r));return s.useEffect((()=>i._removeUnmounted())),l}({control:r,name:i,defaultValue:f(r._formValues,i,f(r._defaultValues,i,e.defaultValue)),exact:!0}),d=function(e){const t=N(),{control:i=t.control,disabled:n,name:r,exact:o}=e||{},[a,c]=s.useState(i._formState),l=s.useRef(!0),h=s.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=s.useRef(r);return d.current=r,F({disabled:n,next:e=>l.current&&P(d.current,e.name,o)&&D(e,h.current,i._updateFormState)&&c({...i._formState,...e}),subject:i._subjects.state}),s.useEffect((()=>(l.current=!0,h.current.isValid&&i._updateValid(!0),()=>{l.current=!1})),[i]),s.useMemo((()=>I(a,i,h.current,!1)),[a,i])}({control:r,name:i,exact:!0}),u=s.useRef(r.register(i,{...e.rules,value:c,..._(e.disabled)?{disabled:e.disabled}:{}})),p=s.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(d.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(d.validatingFields,i)},error:{enumerable:!0,get:()=>f(d.errors,i)}})),[d,i]),v=s.useMemo((()=>({name:i,value:c,..._(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:e=>u.current.onChange({target:{value:l(e),name:i},type:b.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:f(r._formValues,i),name:i},type:b.BLUR}),ref:e=>{const t=f(r._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[i,r._formValues,n,d.disabled,c,r._fields]);return s.useEffect((()=>{const e=r._options.shouldUnregister||o,t=(e,t)=>{const i=f(r._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(r._options.defaultValues,i));E(r._defaultValues,i,e),m(f(r._formValues,i))&&E(r._formValues,i,e)}return!a&&r.register(i),()=>{(a?e&&!r._state.action:e)?r.unregister(i):t(i,!1)}}),[i,r,a,o]),s.useEffect((()=>{r._updateDisabledField({disabled:n,fields:r._fields,name:i})}),[n,i,r]),s.useMemo((()=>({field:v,formState:d,fieldState:p})),[v,d,p])}const W=e=>e.render(B(e));var V=(e,t,i,s,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[s]:n||!0}}:{},z=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched}),G=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const j=(e,t,i,s)=>{for(const n of i||Object.keys(e)){const i=f(e,n);if(i){const{_f:e,...r}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!s)return!0;if(e.ref&&t(e.ref,e.name)&&!s)return!0;if(j(r,t))break}else if(c(r)&&j(r,t))break}}};var K=(e,t,i)=>{const s=M(f(e,i));return E(s,"root",t[i]),E(e,i,s),e},Y=e=>"file"===e.type,q=e=>"function"===typeof e,$=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>U(e),X=e=>"radio"===e.type,Z=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ie={isValid:!1,value:null};var se=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ie):ie;function ne(e,t,i="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||_(e)&&!e)return{type:i,message:Q(e)?e:"",ref:t}}var re=e=>c(e)&&!Z(e)?e:{value:e,message:""},oe=async(e,t,i,s,r,a)=>{const{ref:l,refs:h,required:d,maxLength:u,minLength:g,min:p,max:v,pattern:C,validate:E,name:b,valueAsNumber:S,mount:A}=e._f,N=f(i,b);if(!A||t.has(b))return{};const I=h?h[0]:l,D=e=>{r&&I.reportValidity&&(I.setCustomValidity(_(e)?"":e||""),I.reportValidity())},M={},P=X(l),F=n(l),H=P||F,B=(S||Y(l))&&m(l.value)&&m(N)||$(l)&&""===l.value||""===N||Array.isArray(N)&&!N.length,W=V.bind(null,b,s,M),z=(e,t,i,s=R,n=L)=>{const r=e?t:i;M[b]={type:e?s:n,message:r,ref:l,...W(e?s:n,r)}};if(a?!Array.isArray(N)||!N.length:d&&(!H&&(B||o(N))||_(N)&&!N||F&&!te(h).isValid||P&&!se(h).isValid)){const{value:e,message:t}=Q(d)?{value:!!d,message:d}:re(d);if(e&&(M[b]={type:x,message:t,ref:I,...W(x,t)},!s))return D(t),M}if(!B&&(!o(p)||!o(v))){let e,t;const i=re(v),n=re(p);if(o(N)||isNaN(N)){const s=l.valueAsDate||new Date(N),r=e=>new Date((new Date).toDateString()+" "+e),o="time"==l.type,a="week"==l.type;U(i.value)&&N&&(e=o?r(N)>r(i.value):a?N>i.value:s>new Date(i.value)),U(n.value)&&N&&(t=o?r(N)<r(n.value):a?N<n.value:s<new Date(n.value))}else{const s=l.valueAsNumber||(N?+N:N);o(i.value)||(e=s>i.value),o(n.value)||(t=s<n.value)}if((e||t)&&(z(!!e,i.message,n.message,y,w),!s))return D(M[b].message),M}if((u||g)&&!B&&(U(N)||a&&Array.isArray(N))){const e=re(u),t=re(g),i=!o(e.value)&&N.length>+e.value,n=!o(t.value)&&N.length<+t.value;if((i||n)&&(z(i,e.message,t.message),!s))return D(M[b].message),M}if(C&&!B&&U(N)){const{value:e,message:t}=re(C);if(Z(e)&&!N.match(e)&&(M[b]={type:T,message:t,ref:l,...W(T,t)},!s))return D(t),M}if(E)if(q(E)){const e=ne(await E(N,i),I);if(e&&(M[b]={...e,...W(k,e.message)},!s))return D(e.message),M}else if(c(E)){let e={};for(const t in E){if(!O(e)&&!s)break;const n=ne(await E[t](N,i),I,t);n&&(e={...n,...W(t,n.message)},D(n.message),s&&(M[b]=e))}if(!O(e)&&(M[b]={ref:I,...e},!s))return M}return D(!0),M};function ae(e,t){const i=Array.isArray(t)?t:v(t)?[t]:C(t),s=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let s=0;for(;s<i;)e=m(e)?s++:e[t[s++]];return e}(e,i),n=i.length-1,r=i[n];return s&&delete s[r],0!==n&&(c(s)&&O(s)||Array.isArray(s)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(s))&&ae(e,i.slice(0,-1)),e}var ce=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},le=e=>o(e)||!a(e);function he(e,t){if(le(e)||le(t))return e===t;if(r(e)&&r(t))return e.getTime()===t.getTime();const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const n of i){const i=e[n];if(!s.includes(n))return!1;if("ref"!==n){const e=t[n];if(r(i)&&r(e)||c(i)&&c(e)||Array.isArray(i)&&Array.isArray(e)?!he(i,e):i!==e)return!1}}return!0}var de=e=>"select-multiple"===e.type,ue=e=>X(e)||n(e),ge=e=>$(e)&&e.isConnected,pe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function me(e,t={}){const i=Array.isArray(e);if(c(e)||i)for(const s in e)Array.isArray(e[s])||c(e[s])&&!pe(e[s])?(t[s]=Array.isArray(e[s])?[]:{},me(e[s],t[s])):o(e[s])||(t[s]=!0);return t}function fe(e,t,i){const s=Array.isArray(e);if(c(e)||s)for(const n in e)Array.isArray(e[n])||c(e[n])&&!pe(e[n])?m(t)||le(i[n])?i[n]=Array.isArray(e[n])?me(e[n],[]):{...me(e[n])}:fe(e[n],o(t)?{}:t[n],i[n]):i[n]=!he(e[n],t[n]);return i}var _e=(e,t)=>fe(e,t,me(t)),ve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:s})=>m(e)?e:t?""===e?NaN:e?+e:e:i&&U(e)?new Date(e):s?s(e):e;function Ce(e){const t=e.ref;return Y(t)?t.files:X(t)?se(e.refs).value:de(t)?[...t.selectedOptions].map((({value:e})=>e)):n(t)?te(e.refs).value:ve(m(t.value)?e.ref.value:t.value,e)}var Ee=(e,t,i,s)=>{const n={};for(const r of e){const e=f(t,r);e&&E(n,r,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:s}},be=e=>m(e)?e:Z(e)?e.source:c(e)?Z(e.value)?e.value.source:e.value:e;const Se="AsyncFunction";var ye=e=>!!e&&!!e.validate&&!!(q(e.validate)&&e.validate.constructor.name===Se||c(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Se))),we=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Re(e,t,i){const s=f(e,i);if(s||v(i))return{error:s,name:i};const n=i.split(".");for(;n.length;){const s=n.join("."),r=f(t,s),o=f(e,s);if(r&&!Array.isArray(r)&&i!==s)return{name:i};if(o&&o.type)return{name:s,error:o};n.pop()}return{name:i}}var Le=(e,t,i,s,n)=>!n.isOnAll&&(!i&&n.isOnTouch?!(t||e):(i?s.isOnBlur:n.isOnBlur)?!e:!(i?s.isOnChange:n.isOnChange)||e),Te=(e,t)=>!p(f(e,t)).length&&ae(e,t);const xe={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ke(e={}){let t,i={...xe,...e},s={submitCount:0,isDirty:!1,isLoading:q(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},d=(c(i.defaultValues)||c(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(d),C={action:!1,mount:!1,watch:!1},y={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},w=0;const R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},L={values:ce(),array:ce(),state:ce()},T=z(i.mode),x=z(i.reValidateMode),k=i.criteriaMode===S.all,A=async e=>{if(!i.disabled&&(R.isValid||e)){const e=i.resolver?O((await F()).errors):await B(a,!0);e!==s.isValid&&L.state.next({isValid:e})}},N=(e,t)=>{i.disabled||!R.isValidating&&!R.validatingFields||((e||Array.from(y.mount)).forEach((e=>{e&&(t?E(s.validatingFields,e,t):ae(s.validatingFields,e))})),L.state.next({validatingFields:s.validatingFields,isValidating:!O(s.validatingFields)}))},I=(e,t,i,s)=>{const n=f(a,e);if(n){const r=f(v,e,m(i)?f(d,e):i);m(r)||s&&s.defaultChecked||t?E(v,e,t?r:Ce(n._f)):Q(e,r),C.mount&&A()}},D=(e,t,n,r,o)=>{let c=!1,l=!1;const h={name:e};if(!i.disabled){const i=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!n||r){R.isDirty&&(l=s.isDirty,s.isDirty=h.isDirty=W(),c=l!==h.isDirty);const n=i||he(f(d,e),t);l=!(i||!f(s.dirtyFields,e)),n||i?ae(s.dirtyFields,e):E(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,c=c||R.dirtyFields&&l!==!n}if(n){const t=f(s.touchedFields,e);t||(E(s.touchedFields,e,n),h.touchedFields=s.touchedFields,c=c||R.touchedFields&&t!==n)}c&&o&&L.state.next(h)}return c?h:{}},P=(e,n,r,o)=>{const a=f(s.errors,e),c=R.isValid&&_(n)&&s.isValid!==n;var l;if(i.delayError&&r?(l=()=>((e,t)=>{E(s.errors,e,t),L.state.next({errors:s.errors})})(e,r),t=e=>{clearTimeout(w),w=setTimeout(l,e)},t(i.delayError)):(clearTimeout(w),t=null,r?E(s.errors,e,r):ae(s.errors,e)),(r?!he(a,r):a)||!O(o)||c){const t={...o,...c&&_(n)?{isValid:n}:{},errors:s.errors,name:e};s={...s,...t},L.state.next(t)}},F=async e=>{N(e,!0);const t=await i.resolver(v,i.context,Ee(e||y.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return N(e),t},B=async(e,t,n={valid:!0})=>{for(const r in e){const o=e[r];if(o){const{_f:e,...a}=o;if(e){const a=y.array.has(e.name),c=o._f&&ye(o._f);c&&R.validatingFields&&N([r],!0);const l=await oe(o,y.disabled,v,k,i.shouldUseNativeValidation&&!t,a);if(c&&R.validatingFields&&N([r]),l[e.name]&&(n.valid=!1,t))break;!t&&(f(l,e.name)?a?K(s.errors,l,e.name):E(s.errors,e.name,l[e.name]):ae(s.errors,e.name))}!O(a)&&await B(a,t,n)}}return n.valid},W=(e,t)=>!i.disabled&&(e&&t&&E(v,e,t),!he(ie(),d)),V=(e,t,i)=>H(e,y,{...C.mount?v:m(t)?d:U(e)?{[e]:t}:t},i,t),Q=(e,t,i={})=>{const s=f(a,e);let r=t;if(s){const i=s._f;i&&(!i.disabled&&E(v,e,ve(t,i)),r=$(i.ref)&&o(t)?"":t,de(i.ref)?[...i.ref.options].forEach((e=>e.selected=r.includes(e.value))):i.refs?n(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((t=>t===e.value)):r===e.value))):i.refs[0]&&(i.refs[0].checked=!!r):i.refs.forEach((e=>e.checked=e.value===r)):Y(i.ref)?i.ref.value="":(i.ref.value=r,i.ref.type||L.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&D(e,r,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&te(e)},X=(e,t,i)=>{for(const s in t){const n=t[s],o=`${e}.${s}`,l=f(a,o);(y.array.has(e)||c(n)||l&&!l._f)&&!r(n)?X(o,n,i):Q(o,n,i)}},Z=(e,t,i={})=>{const n=f(a,e),r=y.array.has(e),c=g(t);E(v,e,c),r?(L.array.next({name:e,values:{...v}}),(R.isDirty||R.dirtyFields)&&i.shouldDirty&&L.state.next({name:e,dirtyFields:_e(d,v),isDirty:W(e,c)})):!n||n._f||o(c)?Q(e,c,i):X(e,c,i),G(e,y)&&L.state.next({...s}),L.values.next({name:C.mount?e:void 0,values:{...v}})},J=async e=>{C.mount=!0;const n=e.target;let o=n.name,c=!0;const h=f(a,o),d=e=>{c=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||he(e,f(v,o,e))};if(h){let r,u;const g=n.type?Ce(h._f):l(e),p=e.type===b.BLUR||e.type===b.FOCUS_OUT,m=!we(h._f)&&!i.resolver&&!f(s.errors,o)&&!h._f.deps||Le(p,f(s.touchedFields,o),s.isSubmitted,x,T),_=G(o,y,p);E(v,o,g),p?(h._f.onBlur&&h._f.onBlur(e),t&&t(0)):h._f.onChange&&h._f.onChange(e);const C=D(o,g,p,!1),S=!O(C)||_;if(!p&&L.values.next({name:o,type:e.type,values:{...v}}),m)return R.isValid&&("onBlur"===i.mode&&p?A():p||A()),S&&L.state.next({name:o,..._?{}:C});if(!p&&_&&L.state.next({...s}),i.resolver){const{errors:e}=await F([o]);if(d(g),c){const t=Re(s.errors,a,o),i=Re(e,a,t.name||o);r=i.error,o=i.name,u=O(e)}}else N([o],!0),r=(await oe(h,y.disabled,v,k,i.shouldUseNativeValidation))[o],N([o]),d(g),c&&(r?u=!1:R.isValid&&(u=await B(a,!0)));c&&(h._f.deps&&te(h._f.deps),P(o,u,r,C))}},ee=(e,t)=>{if(f(s.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let n,r;const o=M(e);if(i.resolver){const t=await(async e=>{const{errors:t}=await F(e);if(e)for(const i of e){const e=f(t,i);e?E(s.errors,i,e):ae(s.errors,i)}else s.errors=t;return t})(m(e)?e:o);n=O(t),r=e?!o.some((e=>f(t,e))):n}else e?(r=(await Promise.all(o.map((async e=>{const t=f(a,e);return await B(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||s.isValid)&&A()):r=n=await B(a);return L.state.next({...!U(e)||R.isValid&&n!==s.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:s.errors}),t.shouldFocus&&!r&&j(a,ee,e?o:y.mount),r},ie=e=>{const t={...C.mount?v:d};return m(e)?t:U(e)?f(t,e):e.map((e=>f(t,e)))},se=(e,t)=>({invalid:!!f((t||s).errors,e),isDirty:!!f((t||s).dirtyFields,e),error:f((t||s).errors,e),isValidating:!!f(s.validatingFields,e),isTouched:!!f((t||s).touchedFields,e)}),ne=(e,t,i)=>{const n=(f(a,e,{_f:{}})._f||{}).ref,r=f(s.errors,e)||{},{ref:o,message:c,type:l,...h}=r;E(s.errors,e,{...h,...t,ref:n}),L.state.next({name:e,errors:s.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},re=(e,t={})=>{for(const n of e?M(e):y.mount)y.mount.delete(n),y.array.delete(n),t.keepValue||(ae(a,n),ae(v,n)),!t.keepError&&ae(s.errors,n),!t.keepDirty&&ae(s.dirtyFields,n),!t.keepTouched&&ae(s.touchedFields,n),!t.keepIsValidating&&ae(s.validatingFields,n),!i.shouldUnregister&&!t.keepDefaultValue&&ae(d,n);L.values.next({values:{...v}}),L.state.next({...s,...t.keepDirty?{isDirty:W()}:{}}),!t.keepIsValid&&A()},le=({disabled:e,name:t,field:i,fields:s})=>{(_(e)&&C.mount||e||y.disabled.has(t))&&(e?y.disabled.add(t):y.disabled.delete(t),D(t,Ce(i?i._f:f(s,t)._f),!1,!1,!0))},pe=(e,t={})=>{let s=f(a,e);const n=_(t.disabled)||_(i.disabled);return E(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),s?le({field:s,disabled:_(t.disabled)?t.disabled:i.disabled,name:e}):I(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:be(t.min),max:be(t.max),minLength:be(t.minLength),maxLength:be(t.maxLength),pattern:be(t.pattern)}:{},name:e,onChange:J,onBlur:J,ref:n=>{if(n){pe(e,t),s=f(a,e);const i=m(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,r=ue(i),o=s._f.refs||[];if(r?o.find((e=>e===i)):i===s._f.ref)return;E(a,e,{_f:{...s._f,...r?{refs:[...o.filter(ge),i,...Array.isArray(f(d,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),I(e,!1,void 0,i)}else s=f(a,e,{}),s._f&&(s._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(y.array,e)||!C.action)&&y.unMount.add(e)}}},me=()=>i.shouldFocusError&&j(a,ee,y.mount),fe=(e,t)=>async n=>{let r;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=g(v);if(y.disabled.size)for(const e of y.disabled)E(o,e,void 0);if(L.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await F();s.errors=e,o=t}else await B(a);if(ae(s.errors,"root"),O(s.errors)){L.state.next({errors:{}});try{await e(o,n)}catch(c){r=c}}else t&&await t({...s.errors},n),me(),setTimeout(me);if(L.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(s.errors)&&!r,submitCount:s.submitCount+1,errors:s.errors}),r)throw r},Se=(e,t={})=>{const n=e?g(e):d,r=g(n),o=O(e),c=o?d:r;if(t.keepDefaultValues||(d=n),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...y.mount,...Object.keys(_e(d,v))]);for(const t of Array.from(e))f(s.dirtyFields,t)?E(c,t,f(v,t)):Z(t,f(c,t))}else{if(u&&m(e))for(const e of y.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if($(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=i.shouldUnregister?t.keepDefaultValues?g(d):{}:g(c),L.array.next({values:{...c}}),L.values.next({values:{...c}})}y={mount:t.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},C.mount=!R.isValid||!!t.keepIsValid||!!t.keepDirtyValues,C.watch=!!i.shouldUnregister,L.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!o&&(t.keepDirty?s.isDirty:!(!t.keepDefaultValues||he(e,d))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&v?_e(d,v):s.dirtyFields:t.keepDefaultValues&&e?_e(d,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1})},ke=(e,t)=>Se(q(e)?e(v):e,t);return{control:{register:pe,unregister:re,getFieldState:se,handleSubmit:fe,setError:ne,_executeSchema:F,_getWatch:V,_getDirty:W,_updateValid:A,_removeUnmounted:()=>{for(const e of y.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ge(e))):!ge(t._f.ref))&&re(e)}y.unMount=new Set},_updateFieldArray:(e,t=[],n,r,o=!0,c=!0)=>{if(r&&n&&!i.disabled){if(C.action=!0,c&&Array.isArray(f(a,e))){const t=n(f(a,e),r.argA,r.argB);o&&E(a,e,t)}if(c&&Array.isArray(f(s.errors,e))){const t=n(f(s.errors,e),r.argA,r.argB);o&&E(s.errors,e,t),Te(s.errors,e)}if(R.touchedFields&&c&&Array.isArray(f(s.touchedFields,e))){const t=n(f(s.touchedFields,e),r.argA,r.argB);o&&E(s.touchedFields,e,t)}R.dirtyFields&&(s.dirtyFields=_e(d,v)),L.state.next({name:e,isDirty:W(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else E(v,e,t)},_updateDisabledField:le,_getFieldArray:e=>p(f(C.mount?v:d,e,i.shouldUnregister?f(d,e,[]):[])),_reset:Se,_resetDefaultValues:()=>q(i.defaultValues)&&i.defaultValues().then((e=>{ke(e,i.resetOptions),L.state.next({isLoading:!1})})),_updateFormState:e=>{s={...s,...e}},_disableForm:e=>{_(e)&&(L.state.next({disabled:e}),j(a,((t,i)=>{const s=f(a,i);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach((t=>{t.disabled=s._f.disabled||e})))}),0,!1))},_subjects:L,_proxyFormState:R,_setErrors:e=>{s.errors=e,L.state.next({errors:s.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return C},set _state(e){C=e},get _defaultValues(){return d},get _names(){return y},set _names(e){y=e},get _formState(){return s},set _formState(e){s=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:te,register:pe,handleSubmit:fe,watch:(e,t)=>q(e)?L.values.subscribe({next:i=>e(V(void 0,t),i)}):V(e,t,!0),setValue:Z,getValues:ie,reset:ke,resetField:(e,t={})=>{f(a,e)&&(m(t.defaultValue)?Z(e,g(f(d,e))):(Z(e,t.defaultValue),E(d,e,g(t.defaultValue))),t.keepTouched||ae(s.touchedFields,e),t.keepDirty||(ae(s.dirtyFields,e),s.isDirty=t.defaultValue?W(e,g(f(d,e))):W()),t.keepError||(ae(s.errors,e),R.isValid&&A()),L.state.next({...s}))},clearErrors:e=>{e&&M(e).forEach((e=>ae(s.errors,e))),L.state.next({errors:e?s.errors:{}})},unregister:re,setError:ne,setFocus:(e,t={})=>{const i=f(a,e),s=i&&i._f;if(s){const e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&q(e.select)&&e.select())}},getFieldState:se}}function Ae(e={}){const t=s.useRef(void 0),i=s.useRef(void 0),[n,r]=s.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ke(e),formState:n});const o=t.current.control;return o._options=e,F({subject:o._subjects.state,next:e=>{D(e,o._proxyFormState,o._updateFormState,!0)&&r({...o._formState})}}),s.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),s.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),s.useEffect((()=>{e.values&&!he(e.values,i.current)?(o._reset(e.values,o._options.resetOptions),i.current=e.values,r((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),s.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),s.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),s.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=I(n,o),t.current}},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>C});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,s,n){this._onDidChange=new d.Emitter,this._onDidExtraLibsChange=new d.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(s),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(s=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===s&&(delete this._extraLibs[i],this._removedExtraLibs[i]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let s=1;this._removedExtraLibs[e]&&(s=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},C=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),E=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function b(){return i.e(78979).then(i.bind(i,78979))}d.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.4.5",typescriptDefaults:C,javascriptDefaults:E,getTypeScriptWorker:()=>b().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>b().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>b().then((e=>e.setupTypeScript(C))))),d.languages.onLanguage("javascript",(()=>b().then((e=>e.setupJavaScript(E)))))},24329:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});const s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},24853:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.47 1.22a.75.75 0 011.06 0l2.5 2.5a.75.75 0 11-1.06 1.06L8.75 3.56v7.69a.75.75 0 01-1.5 0V3.56L6.03 4.78a.75.75 0 01-1.06-1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},24939:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const n=new s,r=new s,o=new s,a=new Array(230),c={},l=[],h=Object.create(null),d=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],s=[];for(const p of t){const[e,t,m,f,_,v,C,E,b]=p;if(s[t]||(s[t]=!0,l[t]=m,h[m]=t,d[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);n.define(f,_),r.define(f,E||_),o.define(f,b||E||_)}v&&(a[v]=f),C&&(c[C]=f)}g[3]=46}(),function(e){e.toString=function(e){return n.keyCodeToStr(e)},e.fromString=function(e){return n.strToKeyCode(e)},e.toUserSettingsUS=function(e){return r.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return r.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return n.keyCodeToStr(e)}}(p||(p={}))},25064:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(57118).then(i.bind(i,57118))})},25154:(e,t,i)=>{"use strict";i.d(t,{B:()=>s,q:()=>u});var s,n=i(8597),r=i(25893),o=i(25890),a=i(58694),c=i(41234),l=i(5662),h=i(58925),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s||(s={}));class u extends l.jG{static{this.SCROLL_FRICTION=-.005}static{this.HOLD_DELAY=700}static{this.CLEAR_TAP_COUNT_TIME=400}constructor(){super(),this.dispatched=!1,this.targets=new h.w,this.ignoreTargets=new h.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(c.Jh.runAndSubscribe(n.Iv,(({window:e,disposables:t})=>{t.add(n.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(n.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(n.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:r.G,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,l.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return l.jG.None;u.INSTANCE||(u.INSTANCE=(0,l.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,l.s)(t)}static isTouchDevice(){return"ontouchstart"in r.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i<n;i++){const n=e.targetTouches.item(i);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:t,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[t],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};const r=this.newGestureEvent(s.Start,n.target);r.pageX=n.pageX,r.pageY=n.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),n=Object.keys(this.activeTouches).length;for(let r=0,a=t.changedTouches.length;r<a;r++){const a=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const c=this.activeTouches[a.identifier],l=Date.now()-c.initialTimeStamp;if(l<u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Tap,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(l>=u.HOLD_DELAY&&Math.abs(c.initialPageX-o.RT(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.RT(c.rollingPageY))<30){const e=this.newGestureEvent(s.Contextmenu,c.initialTarget);e.pageX=o.RT(c.rollingPageX),e.pageY=o.RT(c.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=o.RT(c.rollingPageX),s=o.RT(c.rollingPageY),n=o.RT(c.rollingTimestamps)-c.rollingTimestamps[0],r=t-c.rollingPageX[0],a=s-c.rollingPageY[0],l=[...this.targets].filter((e=>c.initialTarget instanceof Node&&e.contains(c.initialTarget)));this.inertia(e,l,i,Math.abs(r)/n,r>0?1:-1,t,Math.abs(a)/n,a>0?1:-1,s)}this.dispatchEvent(this.newGestureEvent(s.End,c.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===s.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==s.Change&&e.type!==s.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let s=0,n=e.initialTarget;for(;n&&n!==i;)s++,n=n.parentElement;t.push([s,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,s]of t)s.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,r,o,a,c,l,h){this.handle=n.PG(e,(()=>{const n=Date.now(),d=n-i;let g=0,p=0,m=!0;r+=u.SCROLL_FRICTION*d,c+=u.SCROLL_FRICTION*d,r>0&&(m=!1,g=o*r*d),c>0&&(m=!1,p=l*c*d);const f=this.newGestureEvent(s.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,n,r,o,a+g,c,l,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i<n;i++){const n=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}const r=this.activeTouches[n.identifier],a=this.newGestureEvent(s.Change,r.initialTarget);a.translationX=n.pageX-o.RT(r.rollingPageX),a.translationY=n.pageY-o.RT(r.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(n.pageX),r.rollingPageY.push(n.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}d([a.B],u,"isTouchDevice",null)},25521:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>a,d:()=>n});var s=i(91508);class n{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,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){const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!n._equals(e[s],t[s]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const s=t+1,r=i+1,o=i-t,a=[];let c=0;for(const l of e)l.endColumn<=s||l.startColumn>=r||(a[c++]=new n(Math.max(1,l.startColumn-s+1),Math.min(o+1,l.endColumn-s+1),l.className,l.type));return a}static filter(e,t,i,s){if(0===e.length)return[];const r=[];let o=0;for(let a=0,c=e.length;a<c;a++){const c=e[a],l=c.range;if(l.endLineNumber<t||l.startLineNumber>t)continue;if(l.isEmpty()&&(0===c.type||3===c.type))continue;const h=l.startLineNumber===t?l.startColumn:i,d=l.endLineNumber===t?l.endColumn:s;r[o++]=new n(h,d,c.inlineClassName,c.type)}return r}static _typeCompare(e,t){const i=[2,0,1,3];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;const i=n._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class r{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=s}}class o{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,s=e.length;i<s;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 r(t,this.stopOffsets[e],this.classNames.join(" "),o._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 r(t,e-1,this.classNames.join(" "),o._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 s=0;s<this.count;s++)if(this.stopOffsets[s]>=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],n=new o;let r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];let c=a.startColumn,l=a.endColumn;const h=a.className,d=1===a.type?2:2===a.type?4:0;if(c>1){const t=e.charCodeAt(c-2);s.pc(t)&&c--}if(l>1){const t=e.charCodeAt(l-2);s.pc(t)&&l--}const u=c-1,g=l-2;r=n.consumeLowerThan(u,r,i),0===n.count&&(r=u),n.insert(g,h,d)}return n.consumeLowerThan(1073741824,r,i),i}}},25533:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>s});const s={type:"yagr",renderer:i(59284).lazy((()=>Promise.all([i.e(81836),i.e(48593)]).then(i.bind(i,81836))))}},25689:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});var s,n,r=i(10350);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(s||(s={})),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~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const s=t.exec(e.id);if(!s)return i(r.W.error);const[,n,o]=s,a=["codicon","codicon-"+n];return o&&a.push("codicon-modifier-"+o.substring(1)),a}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&&("undefined"===typeof e.color||s.isThemeColor(e.color))};const n=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=n.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const s=i.lastIndexOf("~");return-1!==s&&(i=i.substring(0,s)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(n||(n={}))},25783:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{length:4,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!0},{length:2,reverse:!1},{length:6,reverse:!1}];function s(i){let s=0;const n=[],r=i.$binary?atob(i.$value):i.$value;return t.forEach((function(t){const i=r.substr(s,t.length).split(e.EMPTY_STRING).map((function(t){return e.toPaddedHex(t.charCodeAt(0),2)}));s+=t.length,t.reverse&&i.reverse(),n.push(i.join(e.EMPTY_STRING))})),n.join("-")}return s.isScalar=!0,s}},25791:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(36921);class n extends s.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},25890:(e,t,i)=>{"use strict";function s(e,t=0){return e[e.length-(1+t)]}function n(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(!i(e[s],t[s]))return!1;return!0}function o(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,s=e-1;for(;i<=s;){const e=(i+s)/2|0,n=t(e);if(n<0)i=e+1;else{if(!(n>0))return e;s=e-1}}return-(i+1)}(e.length,(s=>i(e[s],t)))}function c(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const s=t[Math.floor(t.length*Math.random())],n=[],r=[],o=[];for(const a of t){const e=i(a,s);e<0?n.push(a):e>0?r.push(a):o.push(a)}return e<n.length?c(e,n,i):e<n.length+o.length?o[0]:c(e-(n.length+o.length),r,i)}function l(e,t){const i=[];let s;for(const n of e.slice(0).sort(t))s&&0===t(s[0],n)?s.push(n):(s=[n],i.push(s));return i}function*h(e,t){let i,s;for(const n of e)void 0!==s&&t(s,n)?i.push(n):(i&&(yield i),i=[n]),s=n;i&&(yield i)}function d(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e,t=e=>e){const i=new Set;return e.filter((e=>{const s=t(e);return!i.has(s)&&(i.add(s),!0)}))}function v(e,t){return e.length>0?e[0]:t}function C(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const s=[];if(i<=t)for(let n=i;n<t;n++)s.push(n);else for(let n=i;n>t;n--)s.push(n);return s}function E(e,t,i){const s=e.slice(0,t),n=e.slice(t);return s.concat(i,n)}function b(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function y(e,t){for(const i of t)e.push(i)}function w(e){return Array.isArray(e)?e:[e]}function R(e,t,i,s){const n=L(e,t);let r=e.splice(n,i);return void 0===r&&(r=[]),function(e,t,i){const s=L(e,t),n=e.length,r=i.length;e.length=n+r;for(let o=n-1;o>=s;o--)e[o+r]=e[o];for(let o=0;o<r;o++)e[o+s]=i[o]}(e,n,s),r}function L(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var T;function x(e,t){return(i,s)=>t(e(i),e(s))}function k(...e){return(t,i)=>{for(const s of e){const e=s(t,i);if(!T.isNeitherLessOrGreaterThan(e))return e}return T.neitherLessOrGreaterThan}}i.d(t,{$z:()=>l,Ct:()=>m,E4:()=>y,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>I,RT:()=>s,SK:()=>p,SO:()=>c,TS:()=>N,U9:()=>A,UH:()=>o,V4:()=>R,VE:()=>x,Yc:()=>g,_A:()=>b,_j:()=>w,aI:()=>r,bS:()=>n,c1:()=>D,dM:()=>_,j3:()=>O,kj:()=>u,n:()=>h,nH:()=>k,nK:()=>E,pN:()=>d,r7:()=>S,t9:()=>M,y1:()=>C}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(T||(T={}));const A=(e,t)=>e-t,N=(e,t)=>A(e?1:0,t?1:0);function I(e){return(t,i)=>-e(t,i)}class O{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class D{static{this.empty=new D((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new D((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new D((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((s=>((i||T.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0))),t}}class M{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,s)=>t(e[i],e[s])));return new M(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new M(e)}}},25893:(e,t,i)=>{"use strict";function s(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>n,y:()=>s});const n=window},25922:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(27148).then(i.bind(i,27148))})},25982:(e,t,i)=>{"use strict";i.d(t,{x:()=>s});class s{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const 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){const i=this.getForeground(e),s=this.getFontStyle(e);let n=`color: ${t[i]};`;1&s&&(n+="font-style: italic;"),2&s&&(n+="font-weight: bold;");let r="";return 4&s&&(r+=" underline"),8&s&&(r+=" line-through"),r&&(n+=`text-decoration:${r};`),n}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},26195:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.03 10.53a.75.75 0 01-1.06 0L8 6.56l-3.97 3.97a.75.75 0 11-1.06-1.06l4.5-4.5a.75.75 0 011.06 0l4.5 4.5a.75.75 0 010 1.06",clipRule:"evenodd"})))}},26437:e=>{e.exports=function(e,t,i){return e===e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>r,Ld:()=>o,Th:()=>l});var s=i(42522),n=i(58925);const r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of r)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const c=new n.w;function l(e,t,i,n,r){if(t=a(t),r||(r=s.f.first(c)),i.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:n+=s,l(e,t,i=i.substring(s,e+r.maxLen/2),n,r)}const o=Date.now(),d=e-1-n;let u=-1,g=null;for(let s=1;!(Date.now()-o>=r.timeBudget);s++){const e=d-r.windowSize*s;t.lastIndex=Math.max(0,e);const n=h(t,i,d,u);if(!n&&g)break;if(g=n,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,s){let n;for(;n=e.exec(t);){const t=n.index||0;if(t<=i&&e.lastIndex>=i)return n;if(s>0&&t>s)return null}return null}c.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},26656:(e,t,i)=>{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var s=i(78209),n=i(64383),r=i(75326),o=i(79400),a=i(64829),c=i(81674),l=i(89403);function h(e){return e.toString()}class d{static create(e,t){const i=e.getAlternativeVersionId(),s=p(e);return new d(i,i,s,s,t,t,[])}constructor(e,t,i,s,n,r,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=s,this.beforeCursorState=n,this.afterCursorState=r,this.changes=o}append(e,t,i,s,n){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=s,this.afterCursorState=n}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(c.Sw(e,t?t.length:0,i),i+=4,t)for(const s of t)c.Sw(e,s.selectionStartLineNumber,i),i+=4,c.Sw(e,s.selectionStartColumn,i),i+=4,c.Sw(e,s.positionLineNumber,i),i+=4,c.Sw(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=c.bb(e,t);t+=4;for(let n=0;n<s;n++){const s=c.bb(e,t);t+=4;const n=c.bb(e,t);t+=4;const o=c.bb(e,t);t+=4;const a=c.bb(e,t);t+=4,i.push(new r.L(s,n,o,a))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const s of this.changes)e+=s.writeSize();const t=new Uint8Array(e);let i=0;c.Sw(t,this.beforeVersionId,i),i+=4,c.Sw(t,this.afterVersionId,i),i+=4,c.Gs(t,this.beforeEOL,i),i+=1,c.Gs(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),c.Sw(t,this.changes.length,i),i+=4;for(const s of this.changes)i=s.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const s=c.bb(t,i);i+=4;const n=c.bb(t,i);i+=4;const r=c.pJ(t,i);i+=1;const o=c.pJ(t,i);i+=1;const l=[];i=d._readSelections(t,i,l);const h=[];i=d._readSelections(t,i,h);const u=c.bb(t,i);i+=4;const g=[];for(let c=0;c<u;c++)i=a.k.read(t,i,g);return new d(s,n,r,o,l,h,g)}}class u{get type(){return 0}get resource(){return o.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,s){this.label=e,this.code=t,this.model=i,this._data=d.create(i,s)}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(o.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,s,n){this._data instanceof d&&this._data.append(e,t,i,s,n)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const s of this._editStackElementsArr){const e=h(s.resource);this._editStackElementsMap.set(e,s)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(o.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,s,n){const r=h(e.uri);this._editStackElementsMap.get(r).append(e,t,i,s,n)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,l.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const n=new u(s.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,s){const n=this._getOrCreateEditStackElement(e,s),r=this._model.applyEdits(t,!0),o=f._computeCursorState(i,r),a=r.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,n.dz)(i),null}}}},26685:(e,t,i)=>{"use strict";i.d(t,{AO:()=>w,Dr:()=>R,Hs:()=>k,K4:()=>C,Ls:()=>y,UN:()=>T,YA:()=>L,dU:()=>_,ey:()=>B,h0:()=>x,is:()=>b,kr:()=>S,oi:()=>E,sx:()=>v});var s=i(64383),n=i(91508),r=i(15092),o=i(7936),a=i(71964),c=i(32799),l=i(81782),h=i(36677),d=i(83069),u=i(38566),g=i(17469),p=i(12296),m=i(82365),f=i(63346);class _{static getEdits(e,t,i,s,n){if(!n&&this._isAutoIndentType(e,t,i)){const n=[];for(const o of i){const i=this._findActualIndentationForSelection(e,t,o,s);if(null===i)return;n.push({selection:o,indentation:i})}const r=E.getAutoClosingPairClose(e,t,i,s,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,n,s,r)}}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let s=0,n=i.length;s<n;s++)if(!t.tokenization.isCheapToTokenize(i[s].getEndPosition().lineNumber))return!1;return!0}static _findActualIndentationForSelection(e,t,i,s){const n=(0,m._t)(e,t,i,s,{shiftIndent:t=>U(e,t),unshiftIndent:t=>H(e,t)},e.languageConfigurationService);if(null===n)return null;const r=(0,g.Cw)(t,i.startLineNumber,i.startColumn);return n===e.normalizeIndentation(r)?null:n}static _getIndentationAndAutoClosingPairEdits(e,t,i,s,n){const r=i.map((({selection:i,indentation:r})=>{if(null!==n){const o=this._getEditFromIndentationAndSelection(e,t,r,i,s,!1);return new N(o,i,s,n)}{const n=this._getEditFromIndentationAndSelection(e,t,r,i,s,!0);return F(n.range,n.text,!1)}}));return new c.vY(4,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,s,n,r=!0){const o=s.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(o);let c=e.normalizeIndentation(i);if(0!==a){c+=t.getLineContent(o).substring(a-1,s.startColumn-1)}c+=r?n:"";return{range:new h.Q(o,1,s.endLineNumber,s.endColumn),text:c}}}class v{static getEdits(e,t,i,s,n,r){if(P(t,i,s,n,r))return this._runAutoClosingOvertype(e,s,r)}static _runAutoClosingOvertype(e,t,i){const s=[];for(let n=0,o=t.length;n<o;n++){const e=t[n].getPosition(),o=new h.Q(e.lineNumber,e.column,e.lineNumber,e.column+1);s[n]=new r.iu(o,i)}return new c.vY(4,s,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}}class C{static getEdits(e,t,i,s,n){if(P(e,t,i,s,n)){const e=i.map((e=>new r.iu(new h.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class E{static getEdits(e,t,i,s,n,r){if(!r){const r=this.getAutoClosingPairClose(e,t,i,s,n);if(null!==r)return this._runAutoClosingOpenCharType(i,s,n,r)}}static _runAutoClosingOpenCharType(e,t,i,s){const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];n[r]=new A(o,t,!i,s)}return new c.vY(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,i,s,n){for(const c of i)if(!c.isEmpty())return null;const r=i.map((e=>{const t=e.getPosition();return n?{lineNumber:t.lineNumber,beforeColumn:t.column-s.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),o=this._findAutoClosingPairOpen(e,t,r.map((e=>new d.y(e.lineNumber,e.beforeColumn))),s);if(!o)return null;let a,h;if((0,c.vG)(s))a=e.autoClosingQuotes,h=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&o.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,h=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,h=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const u=this._findContainedAutoClosingPair(e,o),g=u?u.close:"";let m=!0;for(const c of r){const{lineNumber:i,beforeColumn:n,afterColumn:r}=c,d=t.getLineContent(i),u=d.substring(0,n-1),f=d.substring(r-1);if(f.startsWith(g)||(m=!1),f.length>0){const t=f.charAt(0);if(!this._isBeforeClosingBrace(e,f)&&!h(t))return null}if(1===o.open.length&&("'"===s||'"'===s)&&"always"!==a){const t=(0,l.i)(e.wordSeparators,[]);if(u.length>0){const e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,p.BQ)(_,n-1);if(!o.shouldAutoClose(v,n-v.firstCharOffset))return null;const C=o.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,n,C);if(!o.isOK(e))return null}}return m?o.close.substring(0,o.close.length-g.length):o.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),s=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let n=null;for(const r of s)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!n||r.open.length>n.open.length)&&(n=r);return n}static _findAutoClosingPairOpen(e,t,i,s){const n=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(s);if(!n)return null;let r=null;for(const o of n)if(null===r||o.open.length>r.open.length){let e=!0;for(const n of i){if(t.getValueInRange(new h.Q(n.lineNumber,n.column-o.open.length+1,n.lineNumber,n.column))+s!==o.open){e=!1;break}}e&&(r=o)}return r}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),s=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],n=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],r=s.some((e=>t.startsWith(e.open))),o=n.some((e=>t.startsWith(e.close)));return!r&&o}}class b{static getEdits(e,t,i,s,n){if(!n&&this._isSurroundSelectionType(e,t,i,s))return this._runSurroundSelectionType(e,i,s)}static _runSurroundSelectionType(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=e.surroundingPairs[i];s[n]=new a.i(r,i,o)}return new c.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isSurroundSelectionType(e,t,i,s){if(!B(e,s)||!e.surroundingPairs.hasOwnProperty(s))return!1;const n=(0,c.vG)(s);for(const r of i){if(r.isEmpty())return!1;let e=!0;for(let i=r.startLineNumber;i<=r.endLineNumber;i++){const s=t.getLineContent(i),n=i===r.startLineNumber?r.startColumn-1:0,o=i===r.endLineNumber?r.endColumn-1:s.length,a=s.substring(n,o);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(n&&r.startLineNumber===r.endLineNumber&&r.startColumn+1===r.endColumn){const e=t.getValueInRange(r);if((0,c.vG)(e))return!1}}return!0}}class S{static getEdits(e,t,i,s,n,r){if(!r&&this._isTypeInterceptorElectricChar(t,i,s)){const r=this._typeInterceptorElectricChar(e,t,i,s[0],n);if(r)return r}}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,o,a){if(!t.electricChars.hasOwnProperty(a)||!o.isEmpty())return null;const l=o.getPosition();i.tokenization.forceTokenization(l.lineNumber);const d=i.tokenization.getLineTokens(l.lineNumber);let u;try{u=t.onElectricCharacter(a,d,l.column)}catch(g){return(0,s.dz)(g),null}if(!u)return null;if(u.matchOpenBracket){const s=(d.getLineContent()+a).lastIndexOf(u.matchOpenBracket)+1,o=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:l.lineNumber,column:s},500);if(o){if(o.startLineNumber===l.lineNumber)return null;const s=i.getLineContent(o.startLineNumber),d=n.UU(s),u=t.normalizeIndentation(d),g=i.getLineContent(l.lineNumber),p=i.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,m=u+g.substring(p-1,l.column-1)+a,f=new h.Q(l.lineNumber,1,l.lineNumber,l.column),_=new r.iu(f,m);return new c.vY(I(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}}class y{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class w{static getEdits(e,t,i,s,n){if(!n&&"\n"===s){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!1,i[n]);return new c.vY(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}static _enter(e,t,i,s){if(0===e.autoIndent)return F(s,"\n",i);if(!t.tokenization.isCheapToTokenize(s.getStartPosition().lineNumber)||1===e.autoIndent){const r=t.getLineContent(s.startLineNumber),o=n.UU(r).substring(0,s.startColumn-1);return F(s,"\n"+e.normalizeIndentation(o),i)}const o=(0,f.h)(e.autoIndent,t,s,e.languageConfigurationService);if(o){if(o.indentAction===u.l.None)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.Indent)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.IndentOutdent){const t=e.normalizeIndentation(o.indentation),n=e.normalizeIndentation(o.indentation+o.appendText),a="\n"+n+"\n"+t;return i?new r.q2(s,a,!0):new r.iP(s,a,-1,n.length-t.length,!0)}if(o.indentAction===u.l.Outdent){const t=H(e,o.indentation);return F(s,"\n"+e.normalizeIndentation(t+o.appendText),i)}}const a=t.getLineContent(s.startLineNumber),c=n.UU(a).substring(0,s.startColumn-1);if(e.autoIndent>=4){const o=(0,m.MU)(e.autoIndent,t,s,{unshiftIndent:t=>H(e,t),shiftIndent:t=>U(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let a=e.visibleColumnFromColumn(t,s.getEndPosition());const c=s.endColumn,l=t.getLineContent(s.endLineNumber),h=n.HG(l);if(s=h>=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,h+1)):s.setEndPosition(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),i)return new r.q2(s,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return c<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new r.iP(s,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return F(s,"\n"+e.normalizeIndentation(c),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,o=i.length;n<o;n++){let o=i[n].positionLineNumber;if(1===o)s[n]=new r.q2(new h.Q(1,1,1,1),"\n");else{o--;const i=t.getLineMaxColumn(o);s[n]=this._enter(e,t,!1,new h.Q(o,i,o,i))}}return s}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,r=i.length;n<r;n++){const r=i[n].positionLineNumber,o=t.getLineMaxColumn(r);s[n]=this._enter(e,t,!1,new h.Q(r,o,r,o))}return s}static lineBreakInsert(e,t,i){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!0,i[n]);return s}}class R{static getEdits(e,t,i,s,n,r){const o=this._distributePasteToCursors(e,i,s,n,r);return o?(i=i.sort(h.Q.compareRangesUsingStarts),this._distributedPaste(e,t,i,o)):this._simplePaste(e,t,i,s,n)}static _distributePasteToCursors(e,t,i,s,r){if(s)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1));const e=n.uz(i);if(e.length===t.length)return e}return null}static _distributedPaste(e,t,i,s){const n=[];for(let o=0,a=i.length;o<a;o++)n[o]=new r.iu(i[o],s[o]);return new c.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,s,n){const o=[];for(let a=0,c=i.length;a<c;a++){const e=i[a],t=e.getPosition();if(n&&!e.isEmpty()&&(n=!1),n&&s.indexOf("\n")!==s.length-1&&(n=!1),n){const i=new h.Q(t.lineNumber,1,t.lineNumber,1);o[a]=new r.ui(i,s,e,!0)}else o[a]=new r.iu(e,s)}return new c.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class L{static getEdits(e,t,i,s,n,r,o,a){const l=s.map((e=>this._compositionType(i,e,n,r,o,a)));return new c.vY(4,l,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,n,o){if(!t.isEmpty())return null;const a=t.getPosition(),c=Math.max(1,a.column-s),l=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+n),d=new h.Q(a.lineNumber,c,a.lineNumber,l);return e.getValueInRange(d)===i&&0===o?null:new r.iP(d,i,0,o)}}class T{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new c.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class x{static getCommands(e,t,i){const s=[];for(let n=0,a=i.length;n<a;n++){const a=i[n];if(a.isEmpty()){const i=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(a.startLineNumber)){let o=this._goodIndentForLine(e,t,a.startLineNumber);o=o||"\t";const c=e.normalizeIndentation(o);if(!i.startsWith(c)){s[n]=new r.iu(new h.Q(a.startLineNumber,1,a.startLineNumber,i.length+1),c,!0);continue}}s[n]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){const i=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==i){s[n]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}s[n]=new o.Y(a,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return s}static _goodIndentForLine(e,t,i){let s=null,r="";const o=(0,m.vn)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(o)s=o.action,r=o.indentation;else if(i>1){let s;for(s=i-1;s>=1;s--){const e=t.getLineContent(s);if(n.lT(e)>=0)break}if(s<1)return null;const o=t.getLineMaxColumn(s),a=(0,f.h)(e.autoIndent,t,new h.Q(s,o,s,o),e.languageConfigurationService);a&&(r=a.indentation+a.appendText)}return s&&(s===u.l.Indent&&(r=U(e,r)),s===u.l.Outdent&&(r=H(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,i,s){let n="";const o=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,o),s=e.indentSize,r=s-i%s;for(let e=0;e<r;e++)n+=" "}else n="\t";return new r.iu(i,n,s)}}class k extends r.iP{constructor(e,t,i,s,n,r){super(e,t,i,s),this._openCharacter=n,this._closeCharacter=r,this.closeCharacterRange=null,this.enclosingRange=null}_computeCursorStateWithRange(e,t,i){return this.closeCharacterRange=new h.Q(t.startLineNumber,t.endColumn-this._closeCharacter.length,t.endLineNumber,t.endColumn),this.enclosingRange=new h.Q(t.startLineNumber,t.endColumn-this._openCharacter.length-this._closeCharacter.length,t.endLineNumber,t.endColumn),super.computeCursorState(e,i)}}class A extends k{constructor(e,t,i,s){super(e,(i?t:"")+s,0,-s.length,t,s)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._computeCursorStateWithRange(e,i,t)}}class N extends k{constructor(e,t,i,s){const n=i+s;super(t,n,0,i.length,i,s),this._autoIndentationEdit=e,this._autoClosingEdit={range:t,text:n}}getEditOperations(e,t){t.addTrackedEditOperation(this._autoIndentationEdit.range,this._autoIndentationEdit.text),t.addTrackedEditOperation(this._autoClosingEdit.range,this._autoClosingEdit.text)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2!==i.length)throw new Error("There should be two inverse edit operations!");const s=i[0].range,n=i[1].range,r=s.plusRange(n);return this._computeCursorStateWithRange(e,r,t)}}function I(e,t){return" "===e?5===t||6===t?6:5:4}function O(e,t){return!(!M(e)||M(t))||5!==e&&D(e)!==D(t)}function D(e){return 6===e||5===e?"space":e}function M(e){return 4===e||5===e||6===e}function P(e,t,i,s,n){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(n))return!1;for(let r=0,o=i.length;r<o;r++){const o=i[r];if(!o.isEmpty())return!1;const a=o.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==n)return!1;const h=(0,c.vG)(n);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=s.length;t<i;t++){const i=s[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}function F(e,t,i){return i?new r.q2(e,t,!0):new r.iu(e,t,!0)}function U(e,t,i){return i=i||1,o.Y.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function H(e,t,i){return i=i||1,o.Y.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function B(e,t){return(0,c.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},26690:(e,t,i)=>{"use strict";i.d(t,{ne:()=>ie,Nd:()=>se,Jo:()=>W,WJ:()=>V,dt:()=>ne,uU:()=>oe,Tt:()=>f,yr:()=>H,O:()=>B,WP:()=>p,dE:()=>_,J1:()=>O,or:()=>g});var s=i(74320);function n(e){const t=function(e){if(r=0,a(e,c,4352),r>0)return o.subarray(0,r);if(a(e,l,4449),r>0)return o.subarray(0,r);if(a(e,h,4520),r>0)return o.subarray(0,r);if(a(e,d,12593),r)return o.subarray(0,r);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,s=Math.floor(t/588),n=Math.floor(i/28),u=i%28-1;if(s<c.length?a(s,c,0):4352+s-12593<d.length&&a(4352+s,d,12593),n<l.length?a(n,l,0):4449+n-12593<d.length&&a(4449+n-12593,d,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<d.length&&a(4520+u-12593,d,12593)),r>0)return o.subarray(0,r)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let r=0;const o=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;o[r++]=255&e,e>>8&&(o[r++]=e>>8&255);e>>16&&(o[r++]=e>>16&255)}(t[e-i])}const c=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),l=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),d=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(91508);function g(...e){return function(t,i){for(let s=0,n=e.length;s<n;s++){const n=e[s](t,i);if(n)return n}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let s;return s=e?u.ns(i,t):0===i.indexOf(t),s?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]===t[s]){let n=null;return(n=v(e,t,i+1,s+1))?k({start:s,end:s+1},n):null}return v(e,t,i,s+1)}function C(e){return 97<=e&&e<=122}function E(e){return 65<=e&&e<=90}function b(e){return 48<=e&&e<=57}function S(e){return 32===e||9===e||10===e||13===e}const y=new Set;function w(e){return S(e)||y.has(e)}function R(e,t){return e===t||w(e)&&w(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>y.add(e.charCodeAt(0))));const L=new Map;function T(e){if(L.has(e))return L.get(e);let t;const i=n(e);return i&&(t=i),L.set(e,t),t}function x(e){return C(e)||E(e)||b(e)}function k(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function A(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(E(t)||b(t)||i>0&&!x(e.charCodeAt(i-1)))return i}return e.length}function N(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]!==t[s].toLowerCase())return null;{let n=null,r=s+1;for(n=N(e,t,i+1,s+1);!n&&(r=A(t,r))<t.length;)n=N(e,t,i+1,r),r++;return null===n?null:k({start:s,end:s+1},n)}}function I(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,s=0,n=0;for(let r=0;r<e.length;r++)s=e.charCodeAt(r),E(s)&&t++,C(s)&&i++,S(s)&&n++;return 0!==t&&0!==i||0!==n?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,s=0,n=0,r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o),E(r)&&t++,C(r)&&i++,x(r)&&s++,b(r)&&n++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:s/e.length,numericPercent:n/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:s,numericPercent:n}=e;return i>.2&&t<.8&&s>.6&&n<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let s=null,n=0;for(e=e.toLowerCase();n<t.length&&null===(s=N(e,t,0,n));)n=A(t,n+1);return s}function O(e,t,i=!1){if(!t||0===t.length)return null;let s=null,n=0;for(e=e.toLowerCase(),t=t.toLowerCase();n<t.length&&(s=D(e,t,0,n,i),null===s);)n=M(t,n+1);return s}function D(e,t,i,s,n){let r=0;if(i===e.length)return[];if(s===t.length)return null;if(!R(e.charCodeAt(i),t.charCodeAt(s))){const n=T(e.charCodeAt(i));if(!n)return null;for(let e=0;e<n.length;e++)if(!R(n[e],t.charCodeAt(s+e)))return null;r+=n.length-1}let o=null,a=s+r+1;if(o=D(e,t,i+1,a,n),!n)for(;!o&&(a=M(t,a))<t.length;)o=D(e,t,i+1,a,n),a++;if(!o)return null;if(e.charCodeAt(i)!==t.charCodeAt(s)){const n=T(e.charCodeAt(i));if(!n)return o;for(let e=0;e<n.length;e++)if(n[e]!==t.charCodeAt(s+e))return o}return k({start:s,end:s+r+1},o)}function M(e,t){for(let i=t;i<e.length;i++)if(w(e.charCodeAt(i))||i>0&&w(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,I,f),F=g(p,I,_),U=new s.qK(1e4);function H(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let s=U.get(e);s||(s=new RegExp(u.Bm(e),"i"),U.set(e,s));const n=s.exec(t);return n?[{start:n.index,end:n.index+n[0].length}]:i?F(e,t):P(e,t)}function B(e,t){const i=ne(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?V(i):null}function W(e,t,i,s,n,r){const o=Math.min(13,e.length);for(;i<o;i++){const o=ne(e,t,i,s,n,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(o)return o}return[0,r]}function V(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let s=e.length-1;s>1;s--){const n=e[s]+i,r=t[t.length-1];r&&r.end===n?r.end=n+1:t.push({start:n,end:n+1})}return t}const z=128;function G(){const e=[],t=[];for(let i=0;i<=z;i++)t[i]=0;for(let i=0;i<=z;i++)e.push(t.slice(0));return e}function j(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const K=j(2*z),Y=j(2*z),q=G(),$=G(),Q=G(),X=!1;function Z(e,t,i,s,n){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let o=` | |${s.split("").map((e=>r(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)o+=0===a?" |":`${t[a-1]}|`,o+=e[a].slice(0,n+1).map((e=>r(e.toString(),3))).join("|")+"\n";return o}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.Ss(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class se{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function ne(e,t,i,s,n,r,o=se.default){const a=e.length>z?z:e.length,c=s.length>z?z:s.length;if(i>=a||r>=c||a-i>c-r)return;if(!function(e,t,i,s,n,r,o=!1){for(;t<i&&n<r;)e[t]===s[n]&&(o&&(K[t]=n),t+=1),n+=1;return t===i}(t,i,a,n,r,c,!0))return;!function(e,t,i,s,n,r){let o=e-1,a=t-1;for(;o>=i&&a>=s;)n[o]===r[a]&&(Y[o]=a,o--),a--}(a,c,i,r,t,n);let l=1,h=1,d=i,u=r;const g=[!1];for(l=1,d=i;d<a;l++,d++){const o=K[d],p=Y[d],m=d+1<a?Y[d+1]:c;for(h=o-r+1,u=o;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=re(e,t,d,i,s,n,u,c,r,0===q[l-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+$[l-1][h-1]);const _=u>o,v=_?$[l][h-1]+(q[l][h-1]>0?-5:0):0,C=u>o+1&&q[l][h-1]>0,E=C?$[l][h-2]+(q[l][h-2]>0?-5:0):0;if(C&&(!_||E>=v)&&(!m||E>=f))$[l][h]=E,Q[l][h]=3,q[l][h]=0;else if(_&&(!m||v>=f))$[l][h]=v,Q[l][h]=2,q[l][h]=0;else{if(!m)throw new Error("not possible");$[l][h]=f,Q[l][h]=1,q[l][h]=q[l-1][h-1]+1}}}if(X&&function(e,t,i,s){e=e.substr(t),i=i.substr(s),console.log(Z($,e,e.length,i,i.length)),console.log(Z(Q,e,e.length,i,i.length)),console.log(Z(q,e,e.length,i,i.length))}(e,i,s,r),!g[0]&&!o.firstMatchCanBeWeak)return;l--,h--;const p=[$[l][h],r];let m=0,f=0;for(;l>=1;){let e=h;do{const t=Q[l][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+l-1]===n[r+h-1]&&!te(e+r-1,s,n)&&m+1>q[l][e]&&(e=h),e===h?m++:m=1,f||(f=e),l--,h=e-1,p.push(h)}c-r===a&&o.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function re(e,t,i,s,n,r,o,a,c,l,h){if(t[i]!==r[o])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return o===i-s?d=e[i]===n[o]?7:5:!te(o,n,r)||0!==o&&te(o-1,n,r)?!J(r,o)||0!==o&&J(r,o-1)?(J(r,o-1)||ee(r,o-1))&&(d=5,u=!0):d=5:(d=e[i]===n[o]?7:5,u=!0),d>1&&i===s&&(h[0]=!0),u||(u=te(o,n,r)||J(r,o-1)||ee(r,o-1)),i===s?o>c&&(d-=u?3:5):d+=l?u?2:0:u?0:1,o+1===a&&(d-=u?3:5),d}function oe(e,t,i,s,n,r,o){return function(e,t,i,s,n,r,o,a){let c=ne(e,t,i,s,n,r,a);if(c&&!o)return c;if(e.length>=3){const t=Math.min(7,e.length-1);for(let o=i+1;o<t;o++){const t=ae(e,o);if(t){const e=ne(t,t.toLowerCase(),i,s,n,r,a);e&&(e[0]-=3,(!c||e[0]>c[0])&&(c=e))}}}return c}(e,t,i,s,n,r,!0,o)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],s=e[t+1];return i!==s?e.slice(0,t)+s+i+e.slice(t+2):void 0}},26746:(e,t,i)=>{"use strict";i.d(t,{D8:()=>I});var s=i(25890),n=i(66782),r=i(86571),o=i(74444),a=i(36677),c=i(68938);class l{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class d{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let s=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){s++;const i=e[t],n=d.getKey(i);this.histogram[n]=(this.histogram[n]||0)+1}s++;const i=d.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=s}computeSimilarity(e){let t=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)t+=Math.abs((this.histogram[s]??0)-(e.histogram[s]??0));return 1-t/(this.totalCount+e.totalCount)}}class u{compute(e,t,i=c.uY.instance,s){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const n=new l(e.length,t.length),r=new l(e.length,t.length),a=new l(e.length,t.length);for(let o=0;o<e.length;o++)for(let l=0;l<t.length;l++){if(!i.isValid())return c.SL.trivialTimedOut(e,t);const h=0===o?0:n.get(o-1,l),d=0===l?0:n.get(o,l-1);let u;e.getElement(o)===t.getElement(l)?(u=0===o||0===l?0:n.get(o-1,l-1),o>0&&l>0&&3===r.get(o-1,l-1)&&(u+=a.get(o-1,l-1)),u+=s?s(o,l):1):u=-1;const g=Math.max(h,d,u);if(g===u){const e=o>0&&l>0?a.get(o-1,l-1):0;a.set(o,l,e+1),r.set(o,l,3)}else g===h?(a.set(o,l,0),r.set(o,l,1)):g===d&&(a.set(o,l,0),r.set(o,l,2));n.set(o,l,g)}const h=[];let d=e.length,u=t.length;function g(e,t){e+1===d&&t+1===u||h.push(new c.$8(new o.L(e+1,d),new o.L(t+1,u))),d=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===r.get(p,m)?(g(p,m),p--,m--):1===r.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new c.SL(h,!1)}}class g{compute(e,t,i=c.uY.instance){if(0===e.length||0===t.length)return c.SL.trivial(e,t);const s=e,n=t;function r(e,t){for(;e<s.length&&t<n.length&&s.getElement(e)===n.getElement(t);)e++,t++;return e}let a=0;const l=new m;l.set(0,r(0,0));const h=new f;h.set(0,0===l.get(0)?null:new p(null,0,0,l.get(0)));let d=0;e:for(;;){if(a++,!i.isValid())return c.SL.trivialTimedOut(s,n);const e=-Math.min(a,n.length+a%2),t=Math.min(a,s.length+a%2);for(d=e;d<=t;d+=2){let i=0;const o=d===t?-1:l.get(d+1),a=d===e?-1:l.get(d-1)+1;i++;const c=Math.min(Math.max(o,a),s.length),u=c-d;if(i++,c>s.length||u>n.length)continue;const g=r(c,u);l.set(d,g);const m=c===o?h.get(d+1):h.get(d-1);if(h.set(d,g!==c?new p(m,c,u,g-c):m),l.get(d)===s.length&&l.get(d)-d===n.length)break e}}let u=h.get(d);const g=[];let _=s.length,v=n.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new c.$8(new o.L(e,_),new o.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new c.SL(g,!1)}}class p{constructor(e,t,i,s){this.prev=e,this.x=t,this.y=i,this.length=s}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var _=i(87723),v=i(46041),C=i(74320),E=i(83069);class b{constructor(e,t,i){this.lines=e,this.range=t,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let t=e[s-1],n=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(n=this.range.startColumn-1,t=t.substring(n)),this.lineStartOffsets.push(n);let r=0;if(!i){const e=t.trimStart();r=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(r);const o=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-n-r,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));s<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new o.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=R(e>0?this.elements[e-1]:-1),i=R(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let s=0;return t!==i&&(s+=10,0===t&&1===i&&(s+=1)),s+=w(t),s+=w(i),s}translateOffset(e,t="right"){const i=(0,v.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),s=e-this.firstElementOffsetByLineIdx[i];return new E.y(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+s+(0===s&&"left"===t?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const t=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(t)?a.Q.fromPositions(i,i):a.Q.fromPositions(t,i)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!S(this.elements[e]))return;let t=e;for(;t>0&&S(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&S(this.elements[i]);)i++;return new o.L(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,v.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,i=(0,v.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new o.L(t,i)}}function S(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const y={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function w(e){return y[e]}function R(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function L(e,t,i,n,o,a){let{moves:c,excludedChanges:l}=function(e,t,i,s){const n=[],r=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new d(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new d(e.modified,i,e)))),a=new Set;for(const c of r){let e,t=-1;for(const i of o){const s=c.computeSimilarity(i);s>t&&(t=s,e=i)}if(t>.9&&e&&(o.delete(e),n.push(new _.WL(c.range,e.range)),a.add(c.source),a.add(e.source)),!s.isValid())return{moves:n,excludedChanges:a}}return{moves:n,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,n,o,a){const c=[],l=new C.db;for(const s of e)for(let e=s.original.startLineNumber;e<s.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;l.add(i,{range:new r.M(e,e+3)})}const h=[];e.sort((0,s.VE)((e=>e.modified.startLineNumber),s.U9));for(const s of e){let e=[];for(let t=s.modified.startLineNumber;t<s.modified.endLineNumberExclusive-2;t++){const s=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,n=new r.M(t,t+3),o=[];l.forEach(s,(({range:t})=>{for(const s of e)if(s.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&s.modifiedLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive)return s.originalLineRange=new r.M(s.originalLineRange.startLineNumber,t.endLineNumberExclusive),s.modifiedLineRange=new r.M(s.modifiedLineRange.startLineNumber,n.endLineNumberExclusive),void o.push(s);const i={modifiedLineRange:n,originalLineRange:t};h.push(i),o.push(i)})),e=o}if(!a.isValid())return[]}h.sort((0,s.Hw)((0,s.VE)((e=>e.modifiedLineRange.length),s.U9)));const d=new r.S,u=new r.S;for(const s of h){const e=s.modifiedLineRange.startLineNumber-s.originalLineRange.startLineNumber,t=d.subtractFrom(s.modifiedLineRange),i=u.subtractFrom(s.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const s of n.ranges){if(s.length<3)continue;const t=s,i=s.delta(-e);c.push(new _.WL(i,t)),d.addRange(t),u.addRange(i)}}c.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const g=new v.vJ(e);for(let s=0;s<c.length;s++){const t=c[s],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),l=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-l.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let C,E;for(C=0;C<h;C++){const e=t.original.startLineNumber-C-1,i=t.modified.startLineNumber-C-1;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}for(C>0&&(u.addRange(new r.M(t.original.startLineNumber-C,t.original.startLineNumber)),d.addRange(new r.M(t.modified.startLineNumber-C,t.modified.startLineNumber))),E=0;E<f;E++){const e=t.original.endLineNumberExclusive+E,i=t.modified.endLineNumberExclusive+E;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}E>0&&(u.addRange(new r.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+E)),d.addRange(new r.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+E))),(C>0||E>0)&&(c[s]=new _.WL(new r.M(t.original.startLineNumber-C,t.original.endLineNumberExclusive+E),new r.M(t.modified.startLineNumber-C,t.modified.endLineNumberExclusive+E)))}return c}(e.filter((e=>!l.has(e))),n,o,t,i,a);return(0,s.E4)(c,h),c=function(e){if(0===e.length)return e;e.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const t=[e[0]];for(let i=1;i<e.length;i++){const s=t[t.length-1],n=e[i],r=n.original.startLineNumber-s.original.endLineNumberExclusive,o=n.modified.startLineNumber-s.modified.endLineNumberExclusive;r>=0&&o>=0&&r+o<=2?t[t.length-1]=s.join(n):t.push(n)}return t}(c),c=c.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const s of e)t(s)&&i++;return i}(i,(e=>e.length>=2))>=2})),c=function(e,t){const i=new v.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.WL(new r.M(1,1),new r.M(1,1)))!==(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,c),c}function T(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=(new g).compute(new b([e],new a.Q(1,1,1,e.length),!1),new b([t],new a.Q(1,1,1,t.length),!1),i);let n=0;const r=c.$8.invert(s.diffs,e.length);for(const a of r)a.seq1Range.forEach((t=>{h(e.charCodeAt(t))||n++}));const o=function(t){let i=0;for(let s=0;s<e.length;s++)h(t.charCodeAt(s))||i++;return i}(e.length>t.length?e:t);return n/o>.6&&o>10}var x=i(82518);class k{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:A(this.lines[e-1]))+(e===this.lines.length?0:A(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function A(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var N=i(41845);class I{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,s.aI)(e,t,((e,t)=>e===t)))return new N.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new N.p([new _.wm(new r.M(1,e.length+1),new r.M(1,t.length+1),[new _.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const l=0===i.maxComputationTimeMs?c.uY.instance:new c.aY(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,d=new Map;function u(e){let t=d.get(e);return void 0===t&&(t=d.size,d.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new k(g,e),f=new k(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,l,((i,s)=>e[i]===t[s]?0===t[s].length?.1:1+Math.log(1+t[s].length):.99)):this.myersDiffingAlgorithm.compute(m,f,l))();let C=v.diffs,E=v.hitTimeout;C=(0,x.NC)(m,f,C),C=(0,x.X5)(m,f,C);const b=[],S=i=>{if(h)for(let s=0;s<i;s++){const i=y+s,n=w+s;if(e[i]!==t[n]){const s=this.refineDiff(e,t,new c.$8(new o.L(i,i+1),new o.L(n,n+1)),l,h);for(const e of s.mappings)b.push(e);s.hitTimeout&&(E=!0)}}};let y=0,w=0;for(const s of C){(0,n.Ft)((()=>s.seq1Range.start-y===s.seq2Range.start-w));S(s.seq1Range.start-y),y=s.seq1Range.endExclusive,w=s.seq2Range.endExclusive;const i=this.refineDiff(e,t,s,l,h);i.hitTimeout&&(E=!0);for(const e of i.mappings)b.push(e)}S(e.length-y);const R=O(b,e,t);let L=[];return i.computeMoves&&(L=this.computeMoves(R,e,t,g,p,l,h)),(0,n.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function s(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const n of R){if(!n.innerChanges)return!1;for(const s of n.innerChanges){if(!(i(s.modifiedRange.getStartPosition(),t)&&i(s.modifiedRange.getEndPosition(),t)&&i(s.originalRange.getStartPosition(),e)&&i(s.originalRange.getEndPosition(),e)))return!1}if(!s(n.modified,t)||!s(n.original,e))return!1}return!0})),new N.p(R,L,E)}computeMoves(e,t,i,s,n,r,o){return L(e,t,i,s,n,r).map((e=>{const s=O(this.refineDiff(t,i,new c.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),r,o).mappings,t,i,!0);return new N.t(e,s)}))}refineDiff(e,t,i,s,n){var o;const a=(o=i,new _.WL(new r.M(o.seq1Range.start+1,o.seq1Range.endExclusive+1),new r.M(o.seq2Range.start+1,o.seq2Range.endExclusive+1))).toRangeMapping2(e,t),c=new b(e,a.originalRange,n),l=new b(t,a.modifiedRange,n),h=c.length+l.length<500?this.dynamicProgrammingDiffing.compute(c,l,s):this.myersDiffingAlgorithm.compute(c,l,s),d=!1;let u=h.diffs;u=(0,x.NC)(c,l,u),u=(0,x.Lk)(c,l,u),u=(0,x.sq)(c,l,u),u=(0,x.Rl)(c,l,u);const g=u.map((e=>new _.q6(c.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:g,hitTimeout:h.hitTimeout}}}function O(e,t,i,o=!1){const a=[];for(const n of(0,s.n)(e.map((e=>function(e,t,i){let s=0,n=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+s<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+s<=e.modifiedRange.endLineNumber&&(n=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+n&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+n&&(s=1);const o=new r.M(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+n),a=new r.M(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+n);return new _.wm(o,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=n[0],t=n[n.length-1];a.push(new _.wm(e.original.join(t.original),e.modified.join(t.modified),n.map((e=>e.innerChanges[0]))))}return(0,n.Ft)((()=>{if(!o&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,n.Xo)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),a}},27004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensStylingService:()=>u});var s=i(5662),n=i(10154),r=i(47612),o=i(18801),a=i(45538),c=i(74243),l=i(14718),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};let u=class extends s.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,r.Gy),d(1,o.rr),d(2,n.L)],u),(0,l.v)(c.ISemanticTokensStylingService,u,1)},27020:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(62042).then(i.bind(i,62042))}),(0,s.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(62042).then(i.bind(i,62042))})},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>y,Xe:()=>S,ZG:()=>E,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>b,ug:()=>w});var s,n=i(36921),r=i(25689),o=i(41234),a=i(5662),c=i(58925),l=i(50091),h=i(32848),d=i(63591),u=i(59261),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{static{this._instances=new Map}static{this.CommandPalette=new _("CommandPalette")}static{this.DebugBreakpointsContext=new _("DebugBreakpointsContext")}static{this.DebugCallStackContext=new _("DebugCallStackContext")}static{this.DebugConsoleContext=new _("DebugConsoleContext")}static{this.DebugVariablesContext=new _("DebugVariablesContext")}static{this.NotebookVariablesContext=new _("NotebookVariablesContext")}static{this.DebugHoverContext=new _("DebugHoverContext")}static{this.DebugWatchContext=new _("DebugWatchContext")}static{this.DebugToolBar=new _("DebugToolBar")}static{this.DebugToolBarStop=new _("DebugToolBarStop")}static{this.DebugCallStackToolbar=new _("DebugCallStackToolbar")}static{this.DebugCreateConfiguration=new _("DebugCreateConfiguration")}static{this.EditorContext=new _("EditorContext")}static{this.SimpleEditorContext=new _("SimpleEditorContext")}static{this.EditorContent=new _("EditorContent")}static{this.EditorLineNumberContext=new _("EditorLineNumberContext")}static{this.EditorContextCopy=new _("EditorContextCopy")}static{this.EditorContextPeek=new _("EditorContextPeek")}static{this.EditorContextShare=new _("EditorContextShare")}static{this.EditorTitle=new _("EditorTitle")}static{this.EditorTitleRun=new _("EditorTitleRun")}static{this.EditorTitleContext=new _("EditorTitleContext")}static{this.EditorTitleContextShare=new _("EditorTitleContextShare")}static{this.EmptyEditorGroup=new _("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new _("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new _("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new _("ExplorerContext")}static{this.ExplorerContextShare=new _("ExplorerContextShare")}static{this.ExtensionContext=new _("ExtensionContext")}static{this.GlobalActivity=new _("GlobalActivity")}static{this.CommandCenter=new _("CommandCenter")}static{this.CommandCenterCenter=new _("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new _("LayoutControlMenu")}static{this.MenubarMainMenu=new _("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new _("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new _("MenubarDebugMenu")}static{this.MenubarEditMenu=new _("MenubarEditMenu")}static{this.MenubarCopy=new _("MenubarCopy")}static{this.MenubarFileMenu=new _("MenubarFileMenu")}static{this.MenubarGoMenu=new _("MenubarGoMenu")}static{this.MenubarHelpMenu=new _("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new _("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new _("PanelAlignmentMenu")}static{this.PanelPositionMenu=new _("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new _("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new _("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new _("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new _("MenubarSelectionMenu")}static{this.MenubarShare=new _("MenubarShare")}static{this.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new _("MenubarTerminalMenu")}static{this.MenubarViewMenu=new _("MenubarViewMenu")}static{this.MenubarHomeMenu=new _("MenubarHomeMenu")}static{this.OpenEditorsContext=new _("OpenEditorsContext")}static{this.OpenEditorsContextShare=new _("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new _("ProblemsPanelContext")}static{this.SCMInputBox=new _("SCMInputBox")}static{this.SCMChangesSeparator=new _("SCMChangesSeparator")}static{this.SCMChangesContext=new _("SCMChangesContext")}static{this.SCMIncomingChanges=new _("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new _("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new _("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new _("SCMChangeContext")}static{this.SCMResourceContext=new _("SCMResourceContext")}static{this.SCMResourceContextShare=new _("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new _("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new _("SCMResourceGroupContext")}static{this.SCMSourceControl=new _("SCMSourceControl")}static{this.SCMSourceControlInline=new _("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new _("SCMSourceControlTitle")}static{this.SCMHistoryTitle=new _("SCMHistoryTitle")}static{this.SCMTitle=new _("SCMTitle")}static{this.SearchContext=new _("SearchContext")}static{this.SearchActionMenu=new _("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new _("StickyScrollContext")}static{this.TestItem=new _("TestItem")}static{this.TestItemGutter=new _("TestItemGutter")}static{this.TestProfilesContext=new _("TestProfilesContext")}static{this.TestMessageContext=new _("TestMessageContext")}static{this.TestMessageContent=new _("TestMessageContent")}static{this.TestPeekElement=new _("TestPeekElement")}static{this.TestPeekTitle=new _("TestPeekTitle")}static{this.TestCallStack=new _("TestCallStack")}static{this.TouchBarContext=new _("TouchBarContext")}static{this.TitleBarContext=new _("TitleBarContext")}static{this.TitleBarTitleContext=new _("TitleBarTitleContext")}static{this.TunnelContext=new _("TunnelContext")}static{this.TunnelPrivacy=new _("TunnelPrivacy")}static{this.TunnelProtocol=new _("TunnelProtocol")}static{this.TunnelPortInline=new _("TunnelInline")}static{this.TunnelTitle=new _("TunnelTitle")}static{this.TunnelLocalAddressInline=new _("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new _("TunnelOriginInline")}static{this.ViewItemContext=new _("ViewItemContext")}static{this.ViewContainerTitle=new _("ViewContainerTitle")}static{this.ViewContainerTitleContext=new _("ViewContainerTitleContext")}static{this.ViewTitle=new _("ViewTitle")}static{this.ViewTitleContext=new _("ViewTitleContext")}static{this.CommentEditorActions=new _("CommentEditorActions")}static{this.CommentThreadTitle=new _("CommentThreadTitle")}static{this.CommentThreadActions=new _("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new _("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new _("CommentThreadCommentContext")}static{this.CommentTitle=new _("CommentTitle")}static{this.CommentActions=new _("CommentActions")}static{this.CommentsViewThreadActions=new _("CommentsViewThreadActions")}static{this.InteractiveToolbar=new _("InteractiveToolbar")}static{this.InteractiveCellTitle=new _("InteractiveCellTitle")}static{this.InteractiveCellDelete=new _("InteractiveCellDelete")}static{this.InteractiveCellExecute=new _("InteractiveCellExecute")}static{this.InteractiveInputExecute=new _("InteractiveInputExecute")}static{this.InteractiveInputConfig=new _("InteractiveInputConfig")}static{this.ReplInputExecute=new _("ReplInputExecute")}static{this.IssueReporter=new _("IssueReporter")}static{this.NotebookToolbar=new _("NotebookToolbar")}static{this.NotebookStickyScrollContext=new _("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new _("NotebookCellTitle")}static{this.NotebookCellDelete=new _("NotebookCellDelete")}static{this.NotebookCellInsert=new _("NotebookCellInsert")}static{this.NotebookCellBetween=new _("NotebookCellBetween")}static{this.NotebookCellListTop=new _("NotebookCellTop")}static{this.NotebookCellExecute=new _("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new _("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new _("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new _("NotebookKernelSource")}static{this.BulkEditTitle=new _("BulkEditTitle")}static{this.BulkEditContext=new _("BulkEditContext")}static{this.TimelineItemContext=new _("TimelineItemContext")}static{this.TimelineTitle=new _("TimelineTitle")}static{this.TimelineTitleContext=new _("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new _("TimelineFilterSubMenu")}static{this.AccountsContext=new _("AccountsContext")}static{this.SidebarTitle=new _("SidebarTitle")}static{this.PanelTitle=new _("PanelTitle")}static{this.AuxiliaryBarTitle=new _("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new _("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new _("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new _("TerminalNewDropdownContext")}static{this.TerminalTabContext=new _("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new _("TerminalStickyScrollContext")}static{this.WebviewContext=new _("WebviewContext")}static{this.InlineCompletionsActions=new _("InlineCompletionsActions")}static{this.InlineEditsActions=new _("InlineEditsActions")}static{this.InlineEditActions=new _("InlineEditActions")}static{this.NewFile=new _("NewFile")}static{this.MergeInput1Toolbar=new _("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new _("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new _("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new _("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new _("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new _("InlineEditToolbar")}static{this.ChatContext=new _("ChatContext")}static{this.ChatCodeBlock=new _("ChatCodeblock")}static{this.ChatCompareBlock=new _("ChatCompareBlock")}static{this.ChatMessageTitle=new _("ChatMessageTitle")}static{this.ChatExecute=new _("ChatExecute")}static{this.ChatExecuteSecondary=new _("ChatExecuteSecondary")}static{this.ChatInputSide=new _("ChatInputSide")}static{this.AccessibleView=new _("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar")}constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}const v=(0,d.u1)("menuService");class C{static{this._all=new Map}static for(e){let t=this._all.get(e);return t||(t=new C(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof C&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}const E=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.QT({merge:C.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(C.for(_.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(C.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const 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 c.w,this._menuItems.set(e,i));const s=i.push(t);return this._onDidChangeMenu.fire(C.for(e)),(0,a.s)((()=>{s(),this._onDidChangeMenu.fire(C.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:s}of e)t.add(this.appendMenuItem(i,s));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,s)=>{t.has(s)||e.push({command:i})}))}};class b extends n.YH{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 S=s=class{static label(e,t){return 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,o,a,c){let l;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=c,this.id=e.id,this.label=s.label(e,i),this.tooltip=("string"===typeof e.tooltip?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.L.isThemeIcon(t.icon)&&(l=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}l||(l=r.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new s(t,void 0,i,n,void 0,a,c):void 0,this._options=i,this.class=l&&r.L.asClassName(l)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};S=s=g([p(5,h.fN),p(6,l.d)],S);class y{constructor(e){this.desc=e}}function w(e){const t=[],i=new e,{f1:s,menu:n,keybinding:r,...o}=i.desc;if(l.w.getCommand(o.id))throw new Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(l.w.registerCommand({id:o.id,handler:(e,...t)=>i.run(e,...t),metadata:o.metadata})),Array.isArray(n))for(const a of n)t.push(E.appendMenuItem(a.id,{command:{...o,precondition:null===a.precondition?void 0:o.precondition},...a}));else n&&t.push(E.appendMenuItem(n.id,{command:{...o,precondition:null===n.precondition?void 0:o.precondition},...n}));if(s&&(t.push(E.appendMenuItem(_.CommandPalette,{command:o,when:o.precondition})),t.push(E.addCommand(o))),Array.isArray(r))for(const a of r)t.push(u.f.registerKeybindingRule({...a,id:o.id,when:o.precondition?h.M$.and(o.precondition,a.when):a.when}));else r&&t.push(u.f.registerKeybindingRule({...r,id:o.id,when:o.precondition?h.M$.and(o.precondition,r.when):r.when}));return{dispose(){(0,a.AS)(t)}}}},27414:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,c2:()=>o});var s=i(25890),n=i(85152);class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,n.j)(e);const i=this.values,s=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,n.j)(e),t=(0,n.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,n.j)(e),t=(0,n.j)(t);const i=this.values,s=this.prefixSum;if(e>=i.length)return!1;const r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,n.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,n=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,n=this.prefixSum[s],r=n-this.values[s],e<r)i=s-1;else{if(!(e>=n))break;t=s+1}return new a(s,e-r)}}class o{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,s.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let s=0;s<t;s++)this._indexBySum[i+s]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},27661:(e,t,i)=>{"use strict";i.d(t,{S5:()=>n,n:()=>o,yk:()=>r});var s=i(8597);function n(e,t={}){const i=o(t);return i.textContent=e,i}function r(e,t={}){const i=o(t);return c(i,function(e,t){const i={type:1,children:[]};let s=0,n=i;const r=[],o=new a(e);for(;!o.eos();){let e=o.next();const i="\\"===e&&0!==h(o.peek(),t);if(i&&(e=o.next()),!i&&l(e,t)&&e===o.peek()){o.advance(),2===n.type&&(n=r.pop());const i=h(e,t);if(n.type===i||5===n.type&&6===i)n=r.pop();else{const e={type:i,children:[]};5===i&&(e.index=s,s++),n.children.push(e),r.push(n),n=e}}else if("\n"===e)2===n.type&&(n=r.pop()),n.children.push({type:8});else if(2!==n.type){const t={type:2,content:e};n.children.push(t),r.push(n),n=t}else n.content+=e}2===n.type&&(n=r.pop());r.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function c(e,t,i,n){let r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&n)r=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(s.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),r=e}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((e=>{c(r,e,i,n)}))}function l(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},27734:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(3048).then(i.bind(i,3048))})},27760:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>l,no:()=>o});var s=i(91508),n=i(12296),r=i(87469);class o{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new c(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}}class a{constructor(e,t){this.model=e,this.indentationLineProcessor=new c(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1);let s;if(l(this.model,e.getStartPosition())){const n=e.startColumn-1-i.firstCharOffset,r=i.firstCharOffset,o=r+n;s=t.sliceAndInflate(r,o,0)}else{const i=e.startColumn-1;s=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(s)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=t.column-1-s.firstCharOffset,o=s.firstCharOffset+r,a=s.firstCharOffset+s.getLineLength(),c=i.sliceAndInflate(o,a,0);return this.indentationLineProcessor.getProcessedTokens(c)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1),s=r.f.createEmpty("",i.languageIdCodec),o=e.startLineNumber-1;if(0===o)return s;if(!(0===i.firstCharOffset))return s;const a=(e=>{this.model.tokenization.forceTokenization(e);const t=this.model.tokenization.getLineTokens(e),i=this.model.getLineMaxColumn(e)-1;return(0,n.BQ)(t,i)})(o);if(!(i.languageId===a.languageId))return s;const c=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(c)}}class c{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let n=this.getProcessedTokens(i).getLineContent();return void 0!==t&&(n=((e,t)=>{const i=s.UU(e);return t+e.substring(i.length)})(n,t)),n}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),s=[];e.forEach((t=>{const n=e.getStandardTokenType(t);let r=e.getTokenText(t);(e=>2===e||3===e||1===e)(n)&&(r=r.replace(i,""));const o=e.getMetadata(t);s.push({text:r,metadata:o})}));return r.f.createFromTextAndMetadata(s,e.languageIdCodec)}}function l(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=0===s.firstCharOffset,o=i.getLanguageId(0)===s.languageId;return!r&&!o}},27769:e=>{e.exports=function(){return"Unipika Pika!"}},28211:(e,t,i)=>{"use strict";i(97791),i(93409);var s=i(90766),n=i(18447),r=i(10350),o=i(25689),a=i(26690),c=i(74027),l=i(98067),h=i(91508);const d=[void 0,[]];function u(e,t,i=0,s=0){const n=t;return n.values&&n.values.length>1?function(e,t,i,s){let n=0;const r=[];for(const o of t){const[t,a]=g(e,o,i,s);if("number"!==typeof t)return d;n+=t,r.push(...a)}return[n,p(r)]}(e,n.values,i,s):g(e,t,i,s)}function g(e,t,i,s){const n=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),s,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],(0,a.WJ)(n)]:d}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let s;for(const n of t)s&&m(s,n)?(s.start=Math.min(s.start,n.start),s.end=Math.max(s.end,n.end)):(s=n,i.push(n));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:s,normalizedLowercase:n}=v(e),r=i.indexOf(c.Vn)>=0,o=f(e);let a;const l=e.split(" ");if(l.length>1)for(const c of l){const e=f(c),{pathNormalized:t,normalized:i,normalizedLowercase:s}=v(c);i&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:s,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:s,normalizedLowercase:n,values:a,containsPathSeparator:r,expectContiguousMatch:o}}function v(e){let t;t=l.uF?e.replace(/\//g,c.Vn):e.replace(/\\/g,c.Vn);const i=(0,h.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(" ")):_(e.original)}var E,b=i(5662),S=i(36677),y=i(62083),w=i(29999),R=i(12437),L=i(78209),T=i(56942),x=i(46041),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};let N=class extends R.o{static{E=this}static{this.PREFIX="@"}static{this.SCOPE_PREFIX=":"}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,L.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),b.jG.None}provideWithTextEditor(e,t,i,s){const n=e.editor,r=this.getModel(n);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,i,s):this.doProvideWithoutEditorSymbols(e,r,t,i):b.jG.None}doProvideWithoutEditorSymbols(e,t,i,s){const n=new b.Cm;return this.provideLabelPick(i,(0,L.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,n)&&!s.isCancellationRequested&&n.add(this.doProvideWithEditorSymbols(e,t,i,s))})(),n}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new s.Zv,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))})));return t.add((0,b.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,s,r){const o=e.editor,a=new b.Cm;a.add(i.onDidAccept((t=>{const[s]=i.selectedItems;s&&s.range&&(this.gotoLocation(e,{range:s.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),r?.handleAccept?.(s),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const c=this.getDocumentSymbols(t,s);let l;const h=async e=>{l?.dispose(!0),i.busy=!1,l=new n.Qi(s),i.busy=!0;try{const n=_(i.value.substr(E.PREFIX.length).trim()),r=await this.doGetSymbolPicks(c,n,void 0,l.token,t);if(s.isCancellationRequested)return;if(r.length>0){if(i.items=r,e&&0===n.original.length){const t=(0,x.Uk)(r,(t=>Boolean("separator"!==t.type&&t.range&&S.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else n.original.length>0?this.provideLabelPick(i,(0,L.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,L.kg)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(o.getSelection()?.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(o.revealRangeInCenter(e.range.selection,0),this.addDecorations(o,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,s,n){const a=await e;if(s.isCancellationRequested)return[];const c=0===t.original.indexOf(E.SCOPE_PREFIX),l=c?1:0;let d,g,p;t.values&&t.values.length>1?(d=C(t.values[0]),g=C(t.values.slice(1))):d=t;const m=this.options?.openSideBySideDirection?.();m&&(p=[{iconClass:"right"===m?o.L.asClassName(r.W.splitHorizontal):o.L.asClassName(r.W.splitVertical),tooltip:"right"===m?(0,L.kg)("openToSide","Open to the Side"):(0,L.kg)("openToBottom","Open to the Bottom")}]);const f=[];for(let b=0;b<a.length;b++){const w=a[b],R=(0,h.Bq)(w.name),T=`$(${y.gP.toIcon(w.kind).id}) ${R}`,x=T.length-R.length;let k,A,N,D,M=w.containerName;if(i?.extraContainerLabel&&(M=M?`${i.extraContainerLabel} \u2022 ${M}`:i.extraContainerLabel),t.original.length>l){let F=!1;if(d!==t&&([k,A]=u(T,{...t,values:void 0},l,x),"number"===typeof k&&(F=!0)),"number"!==typeof k&&([k,A]=u(T,d,l,x),"number"!==typeof k))continue;if(!F&&g){if(M&&g.original.length>0&&([N,D]=u(M,g)),"number"!==typeof N)continue;"number"===typeof k&&(k+=N)}}const P=w.tags&&w.tags.indexOf(1)>=0;f.push({index:b,kind:w.kind,score:k,label:T,ariaLabel:(0,y.PK)(w.name,w.kind),description:M,highlights:P?void 0:{label:A,description:D},range:{selection:S.Q.collapseToStart(w.selectionRange),decoration:w.range},uri:n.uri,symbolName:R,strikethrough:P,buttons:p})}const _=f.sort(((e,t)=>c?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let v=[];if(c){let U,H,B=0;function W(){H&&"number"===typeof U&&B>0&&(H.label=(0,h.GP)(O[U]||I,B))}for(const V of _)U!==V.kind?(W(),U=V.kind,B=1,H={type:"separator"},v.push(H)):B++,v.push(V);W()}else _.length>0&&(v=[{label:(0,L.kg)("symbols","symbols ({0})",f.length),type:"separator"},..._]);return v}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=O[e.kind]||I,s=O[t.kind]||I,n=i.localeCompare(s);return 0===n?this.compareByScore(e,t):n}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};N=E=k([A(0,T.ILanguageFeaturesService),A(1,w.gW)],N);const I=(0,L.kg)("property","properties ({0})"),O={5:(0,L.kg)("method","methods ({0})"),11:(0,L.kg)("function","functions ({0})"),8:(0,L.kg)("_constructor","constructors ({0})"),12:(0,L.kg)("variable","variables ({0})"),4:(0,L.kg)("class","classes ({0})"),22:(0,L.kg)("struct","structs ({0})"),23:(0,L.kg)("event","events ({0})"),24:(0,L.kg)("operator","operators ({0})"),10:(0,L.kg)("interface","interfaces ({0})"),2:(0,L.kg)("namespace","namespaces ({0})"),3:(0,L.kg)("package","packages ({0})"),25:(0,L.kg)("typeParameter","type parameters ({0})"),1:(0,L.kg)("modules","modules ({0})"),6:(0,L.kg)("property","properties ({0})"),9:(0,L.kg)("enum","enumerations ({0})"),21:(0,L.kg)("enumMember","enumeration members ({0})"),14:(0,L.kg)("string","strings ({0})"),0:(0,L.kg)("file","files ({0})"),17:(0,L.kg)("array","arrays ({0})"),15:(0,L.kg)("number","numbers ({0})"),16:(0,L.kg)("boolean","booleans ({0})"),18:(0,L.kg)("object","objects ({0})"),19:(0,L.kg)("key","keys ({0})"),7:(0,L.kg)("field","fields ({0})"),13:(0,L.kg)("constant","constants ({0})")};var D=i(46359),M=i(71597),P=i(80301),F=i(51861),U=i(41234),H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends N{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=U.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};G=V([z(0,P.T),z(1,T.ILanguageFeaturesService),z(2,w.gW)],G);class j extends H.ks{static{this.ID="editor.action.quickOutline"}constructor(){super({id:j.ID,label:F.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:B.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:B.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(W.GK).quickAccess.show(N.PREFIX,{itemActivation:W.C1.NONE})}}(0,H.Fl)(j),D.O.as(M.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:N.PREFIX,helpEntries:[{description:F.n9.quickOutlineActionLabel,prefix:N.PREFIX,commandId:j.ID},{description:F.n9.quickOutlineByCategoryActionLabel,prefix:N.PREFIX_BY_CATEGORY}]})},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>l,W0:()=>a,aV:()=>c,nd:()=>o});var s=i(98067),n=i(78209),r=i(32848);new r.N1("isMac",s.zx,(0,n.kg)("isMac","Whether the operating system is macOS")),new r.N1("isLinux",s.j9,(0,n.kg)("isLinux","Whether the operating system is Linux"));const o=new r.N1("isWindows",s.uF,(0,n.kg)("isWindows","Whether the operating system is Windows")),a=new r.N1("isWeb",s.HZ,(0,n.kg)("isWeb","Whether the platform is a web browser")),c=(new r.N1("isMacNative",s.zx&&!s.HZ,(0,n.kg)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.N1("isIOS",s.un,(0,n.kg)("isIOS","Whether the operating system is iOS")),new r.N1("isMobile",s.Fr,(0,n.kg)("isMobile","Whether the platform is a mobile web browser")),new r.N1("isDevelopment",!1,!0),new r.N1("productQualityType","",(0,n.kg)("productQualityType","Quality type of VS Code")),"inputFocus"),l=new r.N1(c,!1,(0,n.kg)("inputFocus","Whether keyboard focus is inside an input box"))},28291:(e,t,i)=>{"use strict";i.d(t,{S:()=>s,c:()=>h});var s,n=i(631),r=i(32799),o=i(94564),a=i(97681),c=i(83069),l=i(36677);class h{static addCursorDown(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateDown(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateDown(e.cursorConfig,e,c.viewState))}return s}static addCursorUp(e,t,i){const s=[];let n=0;for(let a=0,c=t.length;a<c;a++){const c=t[a];s[n++]=new r.MF(c.modelState,c.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateUp(e.cursorConfig,e.model,c.modelState)):r.MF.fromViewState(o.I.translateUp(e.cursorConfig,e,c.viewState))}return s}static moveToBeginningOfLine(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];s[n]=this._moveToLineStart(e,r,i)}return s}static _moveToLineStart(e,t,i){const s=t.viewState.position.column,n=s===t.modelState.position.column,r=t.viewState.position.lineNumber,o=e.getLineFirstNonWhitespaceColumn(r);return n||s===o?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return r.MF.fromViewState(o.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return r.MF.fromModelState(o.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,s){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];n[r]=this._moveToLineEnd(e,o,i,s)}return n}static _moveToLineEnd(e,t,i,s){const n=t.viewState.position,r=e.getLineMaxColumn(n.lineNumber),o=n.column===r,a=t.modelState.position,c=e.model.getLineMaxColumn(a.lineNumber),l=r-n.column===c-a.column;return o||l?this._moveToLineEndByModel(e,t,i,s):this._moveToLineEndByView(e,t,i,s)}static _moveToLineEndByView(e,t,i,s){return r.MF.fromViewState(o.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,s))}static _moveToLineEndByModel(e,t,i,s){return r.MF.fromModelState(o.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,s))}static expandLineSelection(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],o=n.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,d=n.modelState.selection.endLineNumber;d===a?h=e.model.getLineMaxColumn(a):(d++,h=1),i[s]=r.MF.fromModelState(new r.mG(new l.Q(o,1,o,1),0,0,new c.y(d,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static moveToEndOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static selectAll(e,t){const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return r.MF.fromModelState(new r.mG(new l.Q(1,1,1,1),0,0,new c.y(i,s),0))}static line(e,t,i,s,n){const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!i){const t=e.model.getLineCount();let i=o.lineNumber+1,s=1;return i>t&&(i=t,s=e.model.getLineMaxColumn(i)),r.MF.fromModelState(new r.mG(new l.Q(o.lineNumber,1,i,s),2,0,new c.y(i,s),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<h)return r.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(o.lineNumber>h){const i=e.getLineCount();let s=a.lineNumber+1,n=1;return s>i&&(s=i,n=e.getLineMaxColumn(s)),r.MF.fromViewState(t.viewState.move(!0,s,n,0))}{const e=t.modelState.selectionStart.getEndPosition();return r.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,s){const n=e.model.validatePosition(s);return r.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,n))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new r.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,s=t.viewState.position.column;return r.MF.fromViewState(new r.mG(new l.Q(i,s,i,s),0,0,new c.y(i,s),0))}static moveTo(e,t,i,s,n){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,s);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,s,n)}const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new c.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return r.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,s,n,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,s):this._moveLeft(e,t,s,n);case 1:return 4===a?this._moveHalfLineRight(e,t,s):this._moveRight(e,t,s,n);case 2:return 2===a?this._moveUpByViewLines(e,t,s,n):this._moveUpByModelLines(e,t,s,n);case 3:return 2===a?this._moveDownByViewLines(e,t,s,n):this._moveDownByModelLines(e,t,s,n);case 4:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 5:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 6:return this._moveToViewMinColumn(e,t,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,s);case 8:return this._moveToViewCenterColumn(e,t,s);case 9:return this._moveToViewMaxColumn(e,t,s);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,s);default:return null}}static viewportMove(e,t,i,s,n){const r=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 13:{const i=this._lastLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 12:{const i=Math.round((o.startLineNumber+o.endLineNumber)/2),n=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,n)]}case 14:{const i=[];for(let n=0,o=t.length;n<o;n++){const o=t[n];i[n]=this.findPositionInViewportIfOutside(e,o,r,s)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,s){const n=t.viewState.position.lineNumber;if(i.startLineNumber<=n&&n<=i.endLineNumber-1)return new r.MF(t.modelState,t.viewState);{let a;a=n>i.endLineNumber-1?i.endLineNumber-1:n<i.startLineNumber?i.startLineNumber:n;const c=o.I.vertical(e.cursorConfig,e,n,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return r.MF.fromViewState(t.viewState.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.min(t.endLineNumber,s+i-1)}static _lastLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.max(s,t.endLineNumber-i+1)}static _moveLeft(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineLeft(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveRight(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineRight(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],c=a.viewState.position.lineNumber,l=Math.round(e.getLineLength(c)/2);s[n]=r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,a.viewState,i,l))}return s}static _moveDownByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveDown(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveDownByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveDown(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveUpByViewLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromViewState(o.I.moveUp(e.cursorConfig,e,c.viewState,i,s))}return n}static _moveUpByModelLines(e,t,i,s){const n=[];for(let a=0,c=t.length;a<c;a++){const c=t[a];n[a]=r.MF.fromModelState(o.I.moveUp(e.cursorConfig,e.model,c.modelState,i,s))}return n}static _moveToViewPosition(e,t,i,s,n){return r.MF.fromViewState(t.viewState.move(i,s,n,0))}static _moveToModelPosition(e,t,i,s,n){return r.MF.fromModelState(t.modelState.move(i,s,n,0))}static _moveToViewMinColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMinColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewCenterColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(o)+e.getLineMinColumn(o))/2);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewMaxColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMaxColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewLastNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!n.Gv(e))return!1;const t=e;return!!n.Kg(t.to)&&(!(!n.b0(t.select)&&!n.Lm(t.select))&&(!(!n.b0(t.by)&&!n.Kg(t.by))&&!(!n.b0(t.value)&&!n.Et(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let s=0;switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Character:s=3;break;case e.RawUnit.HalfLine:s=4}return{direction:i,unit:s,select:!!t.select,value:t.value||1}}}(s||(s={}))},28304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(56358).then(i.bind(i,56358))})},28433:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var s=i(8597),n=i(94106),r=i(41234),o=i(5662),a=i(73157);class c{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");(0,a.M)(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const n=[];for(const r of this._requests){let e;0===r.type&&(e=t),2===r.type&&(e=i),1===r.type&&(e=s),e.appendChild(document.createElement("br"));const o=document.createElement("span");l._render(o,r),e.appendChild(o),n.push(o)}this._container=e,this._testElements=n}static _render(e,t){if(" "===t.chr){let t="\xa0";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++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(87908),d=i(74196);class u extends o.jG{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new r.vl),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){const t=(0,s.Q2)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let s=!1;for(const n of i)n.isTrusted||(s=!0,t.remove(n));s&&this._onDidChange.fire()}readFontInfo(e,t){const 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 d.YJ({pixelRatio:n.c.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)}return i.get(t)}_createRequest(e,t,i,s){const n=new c(e,t);return i.push(n),s?.push(n),n}_actualReadFontInfo(e,t){const i=[],s=[],r=this._createRequest("n",0,i,s),o=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,s),c=this._createRequest("0",0,i,s),u=this._createRequest("1",0,i,s),g=this._createRequest("2",0,i,s),p=this._createRequest("3",0,i,s),m=this._createRequest("4",0,i,s),f=this._createRequest("5",0,i,s),_=this._createRequest("6",0,i,s),v=this._createRequest("7",0,i,s),C=this._createRequest("8",0,i,s),E=this._createRequest("9",0,i,s),b=this._createRequest("\u2192",0,i,s),S=this._createRequest("\uffeb",0,i,null),y=this._createRequest("\xb7",0,i,s),w=this._createRequest(String.fromCharCode(11825),0,i,null),R="|/-_ilm%";for(let n=0,l=8;n<l;n++)this._createRequest(R.charAt(n),0,i,s),this._createRequest(R.charAt(n),1,i,s),this._createRequest(R.charAt(n),2,i,s);!function(e,t,i){new l(t,i).read(e)}(e,t,i);const L=Math.max(c.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,C.width,E.width);let T=t.fontFeatureSettings===h.Bc.OFF;const x=s[0].width;for(let n=1,l=s.length;T&&n<l;n++){const e=x-s[n].width;if(e<-.001||e>.001){T=!1;break}}let k=!0;return T&&S.width!==x&&(k=!1),S.width>b.width&&(k=!1),new d.YJ({pixelRatio:n.c.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:T,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:a.width,middotWidth:y.width,wsmiddotWidth:w.width,maxDigitWidth:L},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},28449:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(50868),o=i(31450),a=i(36677),c=i(75326),l=i(60002),h=i(87289),d=i(10920),u=i(78209);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new c.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new c.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class{static{p=this}static{this.ID="editor.contrib.inPlaceReplaceController"}static get(e){return e.getContribution(p.ID)}static{this.DECORATION=h.kI.register({description:"in-place-replace",className:"valueSetReplacement"})}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){this.currentRequest?.cancel();const i=this.editor.getSelection(),o=this.editor.getModel();if(!o||!i)return;let l=i;if(l.startLineNumber!==l.endLineNumber)return;const h=new r.$t(this.editor,5),d=o.uri;return this.editorWorkerService.canNavigateValueSet(d)?(this.currentRequest=(0,s.SS)((e=>this.editorWorkerService.navigateValueSet(d,l,t))),this.currentRequest.then((t=>{if(!t||!t.range||!t.value)return;if(!h.validate(this.editor))return;const i=a.Q.lift(t.range);let r=t.range;const o=t.value.length-(l.endColumn-l.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},o>1&&(l=new c.L(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+o-1));const d=new g(i,l,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,d),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=(0,s.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(n.dz)})).catch(n.dz)):Promise.resolve(void 0)}};_=p=m([f(1,d.IEditorWorkerService)],_);class v extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class C extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:l.R.writable,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,o.HW)(_.ID,_,4),(0,o.Fl)(v),(0,o.Fl)(C)},28712:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>P,WE:()=>U});var s=i(90766),n=i(18447),r=i(47661),o=i(5662),a=i(36677),c=i(68310),l=i(9772),h=i(41234);class d{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let s=0;s<this.colorPresentations.length;s++)if(t.toLowerCase()===this.colorPresentations[s].label){i=s;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(94106),g=i(8597),p=i(34072),m=i(17390),f=i(10350),_=i(25689),v=(i(53396),i(78209)),C=i(66261),E=i(61394);const b=g.$;class S extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.showingStandaloneColorPicker=s,this._closeButton=null,this._domNode=b(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,b(".picked-color")),g.BC(this._pickedColorNode,b("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const n=(0,v.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",n),this._originalColorNode=g.BC(this._domNode,b(".original-color")),this._originalColorNode.style.backgroundColor=r.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(C.WfR)||r.Q1.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(C.WfR)||r.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new y(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class y extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t);g.BC(t,b(".button"+_.L.asCSSSelector((0,E.pU)("color-picker-close",f.W.close,(0,v.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class w extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=b(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new R(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new T(this._domNode,this.model,s),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new x(this._domNode,this.model,s),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),s&&(this._insertButton=this._register(new k(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new r.Q1(new r.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class R extends o.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=b(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=b(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),s=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,s),this._onDidChange.fire({s:i,v:s})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new r.Q1(new r.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),s=i.createLinearGradient(0,0,this._canvas.width,0);s.addColorStop(0,"rgba(255, 255, 255, 1)"),s.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),s.addColorStop(1,"rgba(255, 255, 255, 0)");const n=i.createLinearGradient(0,0,0,this._canvas.height);n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=r.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=s,i.fill(),i.fillStyle=n,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class L extends o.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,b(".standalone-strip")),this.overlay=g.BC(this.domNode,b(".standalone-overlay"))):(this.domNode=g.BC(e,b(".strip")),this.overlay=g.BC(this.domNode,b(".overlay"))),this.slider=g.BC(this.domNode,b(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const s=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),s.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class T extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:s}=e.rgba,n=new r.Q1(new r.bU(t,i,s,1)),o=new r.Q1(new r.bU(t,i,s,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class x extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class k extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class A extends m.x{constructor(e,t,i,s,n=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout()))),this._domNode=b(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new S(this._domNode,this.model,s,n)),this.body=this._register(new w(this._domNode,this.model,this.pixelRatio,n))}layout(){this.body.layout()}get domNode(){return this._domNode}}var N=i(57039),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let P=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const s=l.mn.get(this._editor);if(!s)return[];for(const n of t){if(!s.isColorDecoration(n))continue;const e=s.getColorData(n.range.getStartPosition());if(e){return[await H(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){const i=B(this,this._editor,this._themeService,t,e);if(!i)return new N.Ke([]);this._colorPicker=i.colorPicker;const s={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new N.Ke([s])}handleResize(){this._colorPicker?.layout()}isColorPickerVisible(){return!!this._colorPicker}};P=O([D(1,I.Gy)],P);class F{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s}}let U=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!l.mn.get(this._editor))return null;const s=await(0,c.j)(i,this._editor.getModel(),n.XO.None);let r=null,o=null;for(const n of s){const t=n.colorInfo;a.Q.containsRange(t.range,e.range)&&(r=t,o=n.provider)}const h=r??e,d=o??t,u=!!r;return{colorHover:await H(this,this._editor.getModel(),h,d),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await V(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return B(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function H(e,t,i,s){const o=t.getValueInRange(i.range),{red:l,green:h,blue:u,alpha:g}=i.color,p=new r.bU(Math.round(255*l),Math.round(255*h),Math.round(255*u),g),m=new r.Q1(p),f=await(0,c.R)(t,i,s,n.XO.None),_=new d(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,o),e instanceof P?new M(e,a.Q.lift(i.range),_,s):new F(e,a.Q.lift(i.range),_,s)}function B(e,t,i,s,n){if(0===s.length||!t.hasModel())return;if(n.setMinimumDimensions){const e=t.getOption(67)+8;n.setMinimumDimensions(new g.fg(302,e))}const r=new o.Cm,c=s[0],l=t.getModel(),h=c.model,d=r.add(new A(n.fragment,h,t.getOption(144),i,e instanceof U));let u=!1,p=new a.Q(c.range.startLineNumber,c.range.startColumn,c.range.endLineNumber,c.range.endColumn);if(e instanceof U){const t=c.model.color;e.color=t,V(l,h,t,p,c),r.add(h.onColorFlushed((t=>{e.color=t})))}else r.add(h.onColorFlushed((async e=>{await V(l,h,e,p,c),u=!0,p=W(t,p,h)})));return r.add(h.onDidChangeColor((e=>{V(l,h,e,p,c)}))),r.add(t.onDidChangeModelContent((e=>{u?u=!1:(n.hide(),t.focus())}))),{hoverPart:c,colorPicker:d,disposables:r}}function W(e,t,i){const s=[],n=i.presentation.textEdit??{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(n),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const r=a.Q.lift(n.range),o=e.getModel()._setTrackedRange(null,r,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),e.getModel()._getTrackedRange(o)??r}async function V(e,t,i,s,r){const o=await(0,c.R)(e,{range:s,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},r.provider,n.XO.None);t.colorPresentations=o||[]}U=O([D(1,I.Gy)],U)},29100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeViewsDnDService:()=>o});var s=i(14718),n=i(63591),r=i(36723);const o=(0,n.u1)("treeViewsDndService");(0,s.v)(o,r.TreeViewsDnDService,1)},29163:(e,t,i)=>{"use strict";i.d(t,{t:()=>f});var s=i(10146),n=i(80301),r=i(52555),o=i(17469),a=i(56942),c=i(253),l=i(50091),h=i(32848),d=i(63591),u=i(58591),g=i(47612),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends r.x{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){super(e,{...s.getRawOptions(),overflowWidgetsDomNode:s.getOverflowWidgetsDomNode()},i,n,r,o,a,c,l,h,d,u),this._parentEditor=s,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(s.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){s.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,d._Y),m(5,n.T),m(6,l.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,c.j),m(11,o.JZ),m(12,a.ILanguageFeaturesService)],f)},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>r,GR:()=>c,Or:()=>a,fr:()=>p,mQ:()=>g});class s{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,n=this.value.charCodeAt(e);if(t=s._table[n],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(s.isDigitCharacter(n)){t=8;do{i+=1,n=this.value.charCodeAt(e+i)}while(s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}if(s.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++i)}while(s.isVariableCharacter(n)||s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,n=this.value.charCodeAt(e+i)}while(!isNaN(n)&&"undefined"===typeof s._table[n]&&!s.isDigitCharacter(n)&&!s.isVariableCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}}class n{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),n=i.children.slice(0);n.splice(s,1,...t),i._children=n,function e(t,i){for(const s of t)s.parent=i,e(s.children,s)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class r extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class o extends n{}class a extends o{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof c?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class c extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new c;return this.options.forEach(e.appendChild,e),e}}class l extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new l;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends n{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class d extends o{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends n{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((s=>s===e?(i=!0,!1):(t+=s.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new s,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const s=new g;return this.parseFragment(e,s),this.ensureFinalTabstop(s,i??!1,t??!1),s}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,n=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?s.set(0,void 0):!s.has(e.index)&&e.children.length>0?s.set(e.index,e.children):n.push(e)),!0)));const r=(e,i)=>{const n=s.get(e.index);if(!n)return;const o=new a(e.index);o.transform=e.transform;for(const t of n){const e=t.clone();o.appendChild(e),e instanceof a&&s.has(e.index)&&!i.has(e.index)&&(i.add(e.index),r(e,i),i.delete(e.index))}t.replace(e,[o])},o=new Set;for(const a of n)r(a,o);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else{if(!(s.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);{const t=new c;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(t),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new l;let i="",s="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,s)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const s=this._accept(8,!0);if(!s)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(s))),!0;if(this._accept(4))return e.appendChild(new h(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(s),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(s),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},29611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});class s{constructor(e,t,i,s,n,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=s,this._precondition=n,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},29818:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>C,e0:()=>E,gW:()=>S,i9:()=>b});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(74320),c=i(83069),l=i(36677),h=i(32500),d=i(63591),u=i(14718),g=i(23750),p=i(5662),m=i(56942),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};class v{remove(){this.parent?.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let s=i;for(let n=0;void 0!==t.children.get(s);n++)s=`${i}_${n}`;return s}static empty(e){return 0===e.children.size}}class C extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class E extends v{constructor(e,t,i,s){super(),this.id=e,this.parent=t,this.label=i,this.order=s,this.children=new Map}}class b extends v{static create(e,t,i){const o=new n.Qi(i),a=new b(t.uri),c=e.ordered(t),l=c.map(((e,i)=>{const s=v.findId(`provider_${i}`,a),n=new E(s,a,e.displayName??"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,o.token)).then((e=>{for(const t of e||[])b._makeOutlineElement(t,n);return n}),(e=>((0,r.M_)(e),n))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,s.aI)(i,c)||o.cancel()}));return Promise.all(l).then((()=>o.token.isCancellationRequested&&!i.isCancellationRequested?b.create(e,t,i):a._compact())).finally((()=>{o.dispose(),h.dispose(),o.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),s=new C(i,t,e);if(e.children)for(const n of e.children)b._makeOutlineElement(n,s);t.children.set(s.id,s)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=o.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof C?e.push(t.symbol):e.push(...o.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return b._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>c.y.compare(l.Q.getStartPosition(e.range),l.Q.getStartPosition(t.range))||c.y.compare(l.Q.getEndPosition(t.range),l.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const s of t)e.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&b._flattenDocumentSymbols(e,s.children,s.name)}}const S=(0,d.u1)("IOutlineModelService");let y=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,r=i.ordered(e);let o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!(0,s.aI)(o.provider,r)){const t=new n.Qi;o={versionId:e.getVersionId(),provider:r,promiseCnt:0,source:t,promise:b.create(i,e,t.token),model:void 0},this._cache.set(e.id,o);const s=Date.now();o.promise.then((t=>{o.model=t,this._debounceInformation.update(e,Date.now()-s)})).catch((t=>{this._cache.delete(e.id)}))}if(o.model)return o.model;o.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--o.promiseCnt&&(o.source.cancel(),this._cache.delete(e.id))}));try{return await o.promise}finally{a.dispose()}}};y=f([_(0,m.ILanguageFeaturesService),_(1,h.ILanguageFeatureDebounceService),_(2,g.IModelService)],y),(0,u.v)(S,y,1)},30076:(e,t,i)=>{"use strict";i.d(t,{O:()=>r,e:()=>n});var s=i(59911);function n(){return s._K&&!!s._K.VSCODE_DEV}function r(e){if(n()){const t=function(){o||(o=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e},i=[];for(const s of o){const e=s(t);e&&i.push(e)}if(i.length>0)return e=>{let t=!1;for(const s of i)s(e)&&(t=!0);return t}});return o}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let o;n()&&r((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{for(const i in t){const s=t[i];if(console.log(`[hot-reload] Patching prototype methods of '${i}'`,{exportedItem:s}),"function"===typeof s&&s.prototype){const n=e[i];if(n){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),r=Object.getOwnPropertyDescriptor(n.prototype,e);t?.value?.toString()!==r?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${i}.${e}'`),Object.defineProperty(n.prototype,e,t)}t[i]=n}}}return!0}}))},30707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerDecorationsService:()=>_});var s=i(75147),n=i(5662),r=i(16223),o=i(47612),a=i(87119),c=i(23750),l=i(36677),h=i(36456),d=i(41234),u=i(66261),g=i(74320),p=i(48495),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new d.vl),this._markerDecorations=new g.fT,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){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new v(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==h.ny.inMemory&&e.uri.scheme!==h.ny.internal&&e.uri.scheme!==h.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};_=m([f(0,c.IModelService),f(1,s.DR)],_);class v extends n.jG{constructor(e){super(),this.model=e,this._map=new g.cO,this._register((0,n.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,p.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const s=i.map((e=>this._map.get(e))),n=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),r=this.model.deltaDecorations(s,n);for(const o of i)this._map.delete(o);for(let o=0;o<r.length;o++)this._map.set(t[o],r[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=l.Q.lift(t);if(t.severity!==s.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new l.Q(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s<i.endColumn&&(i=new l.Q(i.startLineNumber,s,i.endLineNumber,i.endColumn),t.startColumn=s)}return i}_createDecorationOption(e){let t,i,n,c,l;switch(e.severity){case s.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case s.cj.Info:t="squiggly-info",i=(0,o.Yf)(a.AQ),n=10,l={color:(0,o.Yf)(u.KoI),position:1};break;case s.cj.Warning:t="squiggly-warning",i=(0,o.Yf)(a.aZ),n=20,l={color:(0,o.Yf)(u.uMG),position:1};break;case s.cj.Error:default:t="squiggly-error",i=(0,o.Yf)(a.yI),n=30,l={color:(0,o.Yf)(u.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(c="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(c="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:r.A5.Right},minimap:l,zIndex:n,inlineClassName:c}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},30936:(e,t,i)=>{"use strict";i.d(t,{O:()=>C});var s,n=i(5662),r=i(631),o=i(31450),a=i(83069),c=i(60002),l=i(17469),h=i(56942),d=i(48116),u=i(78209),g=i(32848),p=i(18801),m=i(38280),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let C=class{static{s=this}static{this.ID="snippetController2"}static get(e){return e.getContribution(s.ID)}static{this.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.kg)("inSnippetMode","Whether the editor in current in snippet mode"))}static{this.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode"))}static{this.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"))}constructor(e,t,i,r,o){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=o,this._snippetListener=new n.Cm,this._modelVersionId=-1,this._inSnippet=s.InSnippetMode.bindTo(r),this._hasNextTabstop=s.HasNextTabstop.bindTo(r),this._hasPrevTabstop=s.HasPrevTabstop.bindTo(r)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._session?.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,r.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._session?.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const s=e.getValueInRange(i.range),n=Boolean(i.choice.options.find((e=>e.value===s))),r=[];for(let o=0;o<i.choice.options.length;o++){const e=i.choice.options[o];r.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(o+1),range:i.range,filterText:n?`${s}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.kg)("next","Go to next placeholder...")}})}return{suggestions:r}}},t=this._editor.getModel();let i,s=!1;const n=()=>{i?.dispose(),s=!1},r=()=>{s||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),s=!0)};this._choiceCompletions={provider:e,enable:r,disable:n}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;if(!e||!this._choiceCompletions)return this._choiceCompletions?.disable(),void(this._currentChoice=void 0);this._currentChoice!==e.choice&&(this._currentChoice=e.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,d.p3)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,this._session?.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session?.prev(),this._updateState()}next(){this._session?.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};C=s=f([_(1,p.rr),_(2,h.ILanguageFeaturesService),_(3,g.fN),_(4,l.JZ)],C),(0,o.HW)(C.ID,C,4);const E=o.DX.bindToContribution(C.get);(0,o.E_)(new E({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:2}})),(0,o.E_)(new E({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:1026}})),(0,o.E_)(new E({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:c.R.textInputFocus,primary:9,secondary:[1033]}})),(0,o.E_)(new E({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>x,QC:()=>w,Se:()=>L,oO:()=>T});var s=i(60413),n=i(8597),r=i(55275),o=i(47358),a=i(34072),c=i(17390),l=i(90766),h=i(25689);const d=11;class u extends c.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(n.b2(this.bgDomNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(n.b2(this.domNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new n.Be),this._pointerdownScheduleRepeatTimer=this._register(new l.pc)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,n.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(5662);class p extends g.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode?.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(98067);class f extends c.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,r.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(n.ko(this.domNode.domNode,n.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,s){this.slider=(0,r.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof s&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(n.ko(this.slider.domNode,n.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),n=this._sliderPointerPosition(e);i<=n&&n<=s?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const s=n.BK(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const s=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const n=this._sliderOrthogonalPointerPosition(e),r=Math.abs(n-i);if(m.uF&&r>140)return void this._setDesiredScrollPositionNow(s.getScrollPosition());const o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(o))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(74850),v=i(10350);class C extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,s.width,s.scrollWidth,n.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-d)/2,i=(t.horizontalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class E extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,s.height,s.scrollHeight,n.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var b=i(41234),S=i(49353);class y{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class w{static{this.INSTANCE=new w}constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,s=this._rear;for(;;){const n=s===this._front?e:Math.pow(2,-i);if(e-=n,t+=this._memory[s].score*n,s===this._front)break;s=(this._capacity+s-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(s.H8){const t=n.zk(e.browserEvent),i=(0,s.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let s=null;const n=new y(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(s=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,s)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const s=Math.abs(e.deltaX),n=Math.abs(e.deltaY),r=Math.abs(t.deltaX),o=Math.abs(t.deltaY),a=Math.max(Math.min(s,r),1),c=Math.max(Math.min(n,o),1),l=Math.max(s,r),h=Math.max(n,o);l%a===0&&h%c===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}class R extends c.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new b.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new b.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.zx&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const s={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new E(this._scrollable,this._options,s)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,s)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new l.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new o.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o.$(e))};this._mouseWheelToDispose.push(n.ko(this._listenOnDomNode,n.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;const t=w.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+s===0?n=s=0:Math.abs(s)>=Math.abs(n)?n=0:s=0),this._options.flipAxes&&([s,n]=[n,s]);const r=!m.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||n||(n=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(n*=this._options.fastScrollSensitivity,s*=this._options.fastScrollSensitivity);const o=this._scrollable.getFutureScrollPosition();let a={};if(s){const e=50*s,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(n){const e=50*n,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),o.scrollLeft!==a.scrollLeft||o.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let s=i;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,s=i?" left":"",n=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${s}`),this._topShadowDomNode.setClassName(`shadow${n}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${n}${s}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class L extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class T extends R{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class x extends R{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},31308:(e,t,i)=>{"use strict";i.d(t,{BK:()=>_,fm:()=>l,Y:()=>d,zL:()=>h,yC:()=>g,ht:()=>u,lk:()=>m.lk,un:()=>n.un,nb:()=>n.nb,ZX:()=>m.ZX,C:()=>n.C,rm:()=>n.rm,X2:()=>s.X2,y0:()=>m.y0,Yd:()=>m.Yd,yQ:()=>m.yQ,FY:()=>s.FY,Zh:()=>S,OI:()=>m.OI,PO:()=>s.PO,Rn:()=>s.Rn,oJ:()=>C});var s=i(49154),n=i(87958),r=i(66782),o=i(5662),a=i(22311),c=i(94958);function l(e){return new p(new a.nA(void 0,void 0,e),e,void 0,void 0)}function h(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,void 0)}function d(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e,t){const i=new o.Cm,s=d({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},((e,s)=>{i.clear(),t(e,s,i)}));return(0,o.s)((()=>{s.dispose(),i.dispose()}))}function g(e){const t=new o.Cm,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,o.s)((()=>{i.dispose(),t.dispose()}))}class p{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s){this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=s,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){(0,c.tZ)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,c.tZ)()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,r.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=p}(l||(l={}));var m=i(13850),f=i(64383);class _{static fromFn(e){return new _(e())}constructor(e){this._value=(0,s.FY)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,s.Rn)((t=>{this._value.set(new v(e,void 0),t)})),e)),(e=>{throw(0,s.Rn)((t=>{this._value.set(new v(void 0,e),t)})),e}))}}class v{constructor(e,t){this.data=e,this.error=t}}function C(e,t,i,s){return t||(t=e=>null!==e&&void 0!==e),new Promise(((n,r)=>{let o=!0,a=!1;const c=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),h=l((e=>{const{isFinished:t,error:i,state:s}=c.read(e);(t||i)&&(o?a=!0:h.dispose(),i?r(!0===i?s:i):n(s))}));if(s){const e=s.onCancellationRequested((()=>{h.dispose(),e.dispose(),r(new f.AL)}));if(s.isCancellationRequested)return h.dispose(),e.dispose(),void r(new f.AL)}o=!1,a&&h.dispose()}))}var E=i(51241);class b extends s.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new s.XL((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){return e.lazy?new b(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx):new s.Lj(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??E.nx)}},31396:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(16210).then(i.bind(i,93829))})},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>y,E_:()=>x,Fl:()=>k,HW:()=>I,PF:()=>R,aU:()=>M,dS:()=>s,fE:()=>b,gW:()=>A,ih:()=>P,ke:()=>T,ks:()=>w,qO:()=>L,tc:()=>F,uB:()=>E,xX:()=>N});var s,n=i(78209),r=i(79400),o=i(80301),a=i(83069),c=i(23750),l=i(18938),h=i(27195),d=i(50091),u=i(32848),g=i(63591),p=i(59261),m=i(46359),f=i(90651),_=i(631),v=i(18801),C=i(8597);class E{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}d.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.ZG.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 b extends E{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,s){return this._implementations.push({priority:e,name:t,implementation:i,when:s}),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){const i=e.get(v.rr),s=e.get(u.fN);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const n of this._implementations){if(n.when){const e=s.getContext((0,C.bq)());if(!n.when.evaluate(e))continue}const r=n.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${n.name}'.`),"boolean"===typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class S extends E{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends E{static bindToContribution(e){return class extends y{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,s){const n=e(i);n&&this._callback(n,s)}}}static runEditorCommand(e,t,i,s){const n=e.get(o.T),r=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(r)return r.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules(i??void 0))return s(e,r,t)}))}runCommand(e,t){return y.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class w extends y{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.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){super(w.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class R extends w{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(const s of this._implementations){const n=s[1](e,t,i);if(n){if("boolean"===typeof n)return;return n}}}}class L extends h.L{run(e,...t){const i=e.get(o.T),s=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(s)return s.invokeWithinContext((e=>{const i=e.get(u.fN),n=e.get(v.rr);if(i.contextMatchesRules(this.desc.precondition??void 0))return this.runEditorCommand(e,s,...t);n.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())}))}}function T(e,t){d.w.registerCommand(e,(function(e,...i){const s=e.get(g._Y),[n,o]=i;(0,_.j)(r.r.isUri(n)),(0,_.j)(a.y.isIPosition(o));const h=e.get(c.IModelService).getModel(n);if(h){const e=a.y.lift(o);return s.invokeFunction(t,h,e,...i.slice(2))}return e.get(l.ITextModelService).createModelReference(n).then((e=>new Promise(((n,r)=>{try{n(s.invokeFunction(t,e.object.textEditorModel,a.y.lift(o),i.slice(2)))}catch(c){r(c)}})).finally((()=>{e.dispose()}))))}))}function x(e){return O.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return O.INSTANCE.registerEditorAction(t),t}function A(e){return O.INSTANCE.registerEditorAction(e),e}function N(e){O.INSTANCE.registerEditorAction(e)}function I(e,t,i){O.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return O.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return O.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return O.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return O.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return O.INSTANCE.getDiffEditorContributions()}}(s||(s={}));class O{static{this.INSTANCE=new O}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}}function D(e){return e.register(),e}m.O.add("editor.contributions",O.INSTANCE);const M=D(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("undo","Undo"),order:1}]}));D(new S(M,{id:"default:undo",precondition:void 0}));const P=D(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.D8.CommandPalette,group:"",title:n.kg("redo","Redo"),order:1}]}));D(new S(P,{id:"default:redo",precondition:void 0}));const F=D(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.D8.MenubarSelectionMenu,group:"1_basic",title:n.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("selectAll","Select All"),order:1}]}))},31474:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(46012).then(i.bind(i,46012))})},31659:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(36677),o=i(9772),a=i(28712),c=i(77011),l=i(57039);class h extends s.jG{static{this.ID="editor.contrib.colorContribution"}constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(149);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==o.nM)return;if(!i.range)return;const s=this._editor.getContribution(c.A.ID);if(s&&!s.isColorPickerVisible){const e=new r.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);s.showContentHover(e,1,0,!1,!0)}}}(0,n.HW)(h.ID,h,2),l.B2.register(a.BJ)},31819:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5zM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25M2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9m11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},32371:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,WG:()=>v,aw:()=>f,br:()=>m,nZ:()=>E,yS:()=>g});var s=i(18447),n=i(64383),r=i(79400),o=i(23750),a=i(50091),c=i(631),l=i(98232),h=i(36677),d=i(56942);function u(e){return e&&!!e.data}function g(e){return e&&Array.isArray(e.edits)}class p{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function m(e,t){return e.has(t)}async function f(e,t,i,s,n){const r=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),o=await Promise.all(r.map((async e=>{let r,o=null;try{r=await e.provideDocumentSemanticTokens(t,e===i?s:null,n)}catch(a){o=a,r=null}return r&&(u(r)||g(r))||(r=null),new p(e,r,o)})));for(const a of o){if(a.error)throw a.error;if(a.tokens)return a}return o.length>0?o[0]:null}class _{constructor(e,t){this.provider=e,this.tokens=t}}function v(e,t){return e.has(t)}function C(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function E(e,t,i,s){const r=C(e,t),o=await Promise.all(r.map((async e=>{let r;try{r=await e.provideDocumentRangeSemanticTokens(t,i,s)}catch(o){(0,n.M_)(o),r=null}return r&&u(r)||(r=null),new _(e,r)})));for(const n of o)if(n.tokens)return n;return o.length>0?o[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const s=e.get(o.IModelService).getModel(i);if(!s)return;const{documentSemanticTokensProvider:n}=e.get(d.ILanguageFeaturesService),l=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(n,s);return l?l[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,c.j)(i instanceof r.r);const n=e.get(o.IModelService).getModel(i);if(!n)return;const{documentSemanticTokensProvider:h}=e.get(d.ILanguageFeaturesService);if(!m(h,n))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,n.getFullModelRange());const g=await f(h,n,null,null,s.XO.None);if(!g)return;const{provider:p,tokens:_}=g;if(!_||!u(_))return;const v=(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:_.data});return _.resultId&&p.releaseDocumentSemanticTokens(_.resultId),v})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r);const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:l}=e.get(d.ILanguageFeaturesService),u=C(l,a);if(0===u.length)return;if(1===u.length)return u[0].getLegend();if(!n||!h.Q.isIRange(n))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),u[0].getLegend();const g=await E(l,a,h.Q.lift(n),s.XO.None);return g?g.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,n]=t;(0,c.j)(i instanceof r.r),(0,c.j)(h.Q.isIRange(n));const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:u}=e.get(d.ILanguageFeaturesService),g=await E(u,a,h.Q.lift(n),s.XO.None);return g&&g.tokens?(0,l.encodeSemanticTokensDto)({id:0,type:"full",data:g.tokens.data}):void 0}))},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>c,UB:()=>a,a6:()=>l,wc:()=>h});var s=i(83069),n=i(36677),r=i(92896),o=i(87908);class a{constructor(e,t,i,s,n){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=s,this._coordinatesConverter=n,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const o=e.range,a=e.options;let c;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);c=new n.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new r.vo(c,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const s=new n.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(s,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const s=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,o.$C)(this.configuration.options),t,i),a=e.startLineNumber,l=e.endLineNumber,h=[];let d=0;const u=[];for(let n=a;n<=l;n++)u[n-a]=[];for(let o=0,g=s.length;o<g;o++){const e=s[o],t=e.options;if(!c(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[d++]=i,t.inlineClassName){const e=new r.kI(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),s=Math.min(l,g.endLineNumber);for(let t=i;t<=s;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=l){const e=new r.kI(new n.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=l){const e=new r.kI(new n.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function c(e,t){return(!t.options.hideInCommentTokens||!l(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function l(e,t){return d(e,t.range,(e=>1===e))}function h(e,t){return d(e,t.range,(e=>2===e))}function d(e,t,i){for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const n=e.tokenization.getLineTokens(s),r=s===t.startLineNumber,o=s===t.endLineNumber;let a=r?n.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<n.getCount();){if(o){if(n.getStartOffset(a)>t.endColumn-1)break}if(!i(n.getStandardTokenType(a)))return!1;a++}}return!0}},32500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeatureDebounceService:()=>g,LanguageFeatureDebounceService:()=>_});var s=i(85600),n=i(74320),r=i(1592),o=i(97035),a=i(14718),c=i(63591),l=i(18801),h=i(36456),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};const g=(0,c.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let s=t.get(e);return void 0===s&&(s=++i,t.set(e,s)),s}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,s,r,o){this._logService=e,this._name=t,this._registry=i,this._default=s,this._min=r,this._max=o,this._cache=new n.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,s.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,r.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let s=this._cache.get(i);s||(s=new r.mu(6),this._cache.set(i,s));const n=(0,r.qE)(s.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${n}ms`),n}_overall(){const e=new r.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,r.qE)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){const s=i?.min??50,n=i?.max??s**2,r=i?.key??void 0,o=`${p.of(e)},${s}${r?","+r:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new m(1.5*s)):a=new f(this._logService,t,e,0|this._overallAverage()||1.5*s,s,n),this._data.set(o,a)),a}_overallAverage(){const e=new r.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};_=d([u(0,l.rr),u(1,o.k)],_),(0,a.v)(g,_,1)},32516:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(60002),o=i(78209);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class c{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class l extends s.jG{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(l.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new c(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}class h extends n.ks{constructor(){super({id:"cursorUndo",label:o.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){l.get(t)?.cursorUndo()}}class d extends n.ks{constructor(){super({id:"cursorRedo",label:o.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){l.get(t)?.cursorRedo()}}(0,n.HW)(l.ID,l,0),(0,n.Fl)(h),(0,n.Fl)(d)},32624:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(84582).then(i.bind(i,84582))})},32799:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>v,vY:()=>_});var s=i(83069),n=i(36677),r=i(75326),o=i(12296),a=i(1245),c=i(93895);const l=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,i,s){this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,r=n.get(146),o=n.get(50);this.readOnly=n.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(117),this.lineHeight=o.lineHeight,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=n.get(129),this.wordSeparators=n.get(132),this.emptySelectionClipboard=n.get(37),this.copyWithSyntaxHighlighting=n.get(25),this.multiCursorMergeOverlapping=n.get(77),this.multiCursorPaste=n.get(79),this.multiCursorLimit=n.get(80),this.autoClosingBrackets=n.get(6),this.autoClosingComments=n.get(7),this.autoClosingQuotes=n.get(11),this.autoClosingDelete=n.get(9),this.autoClosingOvertype=n.get(10),this.autoSurround=n.get(14),this.autoIndent=n.get(12),this.wordSegmenterLocales=n.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close;const c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=c?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}onElectricCharacter(e,t,i){const s=(0,o.BQ)(t,i-1),n=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return n?n.onElectricCharacter(e,s,i-s.firstCharOffset):null}normalizeIndentation(e){return(0,c.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return d;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return l;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const s=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),n=e.getLineMinColumn(t);if(s<n)return n;const r=e.getLineMaxColumn(t);return s>r?r:s}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=r.L.liftSelection(e),i=new f(n.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,s,n){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=s,this.leftoverVisibleColumns=n,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,r){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new s.y(t,i),r):new f(new n.Q(t,i,t,i),0,r,new s.y(t,i),r)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?r.L.fromPositions(e.getStartPosition(),t):r.L.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>A,M$:()=>w,fN:()=>K,N1:()=>j,jQ:()=>R,M0:()=>$});var s=i(98067),n=i(91508),r=i(64383),o=i(78209);function a(...e){switch(e.length){case 1:return(0,o.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,o.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,o.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),l=(0,o.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/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: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,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const 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)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));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(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));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){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._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(c):(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)return this._current=e,void this._error(l);const s=this._input.charCodeAt(e);if(t)t=!1;else{if(47===s&&!i){e++;break}91===s?i=!0:92===s?t=!0:93===s&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=i(63591);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",s.zx),u.set("isLinux",s.j9),u.set("isWindows",s.uF),u.set("isWeb",s.HZ),u.set("isMacNative",s.zx&&!s.HZ),u.set("isEdge",s.UP),u.set("isFirefox",s.gm),u.set("isChrome",s.H8),u.set("isSafari",s.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,o.kg)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,o.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,o.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),C=(0,o.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,o.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),b=(0,o.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),S=(0,o.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class y{static{this._parseError=new Error}constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:C,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),y._parseError}return e}catch(t){if(t!==y._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:w.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:w.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),T.INSTANCE;case 12:return this._advance(),x.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),w.true();case 12:return this._advance(),w.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const s=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),r=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let o;try{o=new RegExp(i.substring(1,n),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(s,o)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==n.type&&16!==n.type;){switch(n.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<n.lexeme.length;t++)40===n.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;i.push(h.getLexeme(n)),this._advance(),n=this._peek()}const o=i.join(""),a=o.lastIndexOf("/"),c=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let l;try{l=new RegExp(o.substring(1,a),c)}catch(t){throw this._errExpectedButGot("REGEX",e)}return w.regex(s,l)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,n.AV)(t)){const s=t.indexOf("/"),n=t.lastIndexOf("/");if(s!==n&&s>=0){const o=t.slice(s+1,n),a="i"===t[n+1]?"i":"";try{r=new RegExp(o,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return B.create(s,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return w.notIn(s,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return w.equals(s,e);switch(e){case"true":return w.has(s);case"false":return w.not(s);default:return w.equals(s,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return w.notEquals(s,e);switch(e){case"true":return w.not(s);case"false":return w.has(s);default:return w.notEquals(s,e)}}case 5:return this._advance(),U.create(s,this._value());case 6:return this._advance(),H.create(s,this._value());case 7:return this._advance(),P.create(s,this._value());case 8:return this._advance(),F.create(s,this._value());case 13:return this._advance(),w.in(s,this._value());default:return w.has(s)}}case 20:throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:"",additionalInfo:S}),y._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const 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){const s=(0,o.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),n=t.offset,r=h.getLexeme(t);return this._parsingErrors.push({message:s,offset:n,lexeme:r,additionalInfo:i}),y._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class w{static false(){return T.INSTANCE}static true(){return x.INSTANCE}static has(e){return k.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return O.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return I.create(e,t)}static not(e){return D.create(e)}static and(...e){return z.create(e,null,!0)}static or(...e){return G.create(e,null,!0)}static{this._parser=new y({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function R(e,t){const i=e?e.substituteConstants():void 0,s=t?t.substituteConstants():void 0;return!i&&!s||!(!i||!s)&&i.equals(s)}function L(e,t){return e.cmp(t)}class T{static{this.INSTANCE=new T}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 x.INSTANCE}}class x{static{this.INSTANCE=new x}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 T.INSTANCE}}class k{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?x.INSTANCE:T.INSTANCE:new k(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:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:T.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?k.create(e,i):D.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?x.INSTANCE:T.INSTANCE}return new A(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:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:T.INSTANCE}return 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=O.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(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:q(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){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this.key,this.valueKey)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.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 O{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):k.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?T.INSTANCE:x.INSTANCE}return new O(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:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?T.INSTANCE:x.INSTANCE}return 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=A.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?T.INSTANCE:x.INSTANCE:new D(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:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?T.INSTANCE:x.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):T.INSTANCE}class P{static create(e,t,i=null){return M(t,(t=>new P(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:q(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=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return M(t,(t=>new F(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:q(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=U.create(this.key,this.value,this)),this.negated}}class U{static create(e,t,i=null){return M(t,(t=>new U(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:q(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=F.create(this.key,this.value,this)),this.negated}}class H{static create(e,t,i=null){return M(t,(t=>new H(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:q(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=P.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(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;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const 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){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(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 V(e){let t=null;for(let i=0,s=e.length;i<s;i++){const s=e[i].substituteConstants();if(e[i]!==s&&null===t){t=[];for(let s=0;s<i;s++)t[s]=e[s]}null!==t&&(t[i]=s)}return null===t?e:t}class z{static create(e,t,i){return z._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++){const i=L(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(){const e=V(this.expr);return e===this.expr?this:z.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){const s=[];let n=!1;for(const r of e)if(r)if(1!==r.type){if(0===r.type)return T.INSTANCE;6!==r.type?s.push(r):s.push(...r.expr)}else n=!0;if(0===s.length&&n)return x.INSTANCE;if(0!==s.length){if(1===s.length)return s[0];s.sort(L);for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];for(;s.length>1;){const e=s[s.length-1];if(9!==e.type)break;s.pop();const t=s.pop(),n=0===s.length,r=G.create(e.expr.map((e=>z.create([e,t],null,i))),null,n);r&&(s.push(r),s.sort(L))}if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return T.INSTANCE;if(1===s.length)return s[0]}return new z(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=G.create(e,this,!0)}return this.negated}}class G{static create(e,t,i){return G._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++){const i=L(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(){const e=V(this.expr);return e===this.expr?this:G.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 s=[],n=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return x.INSTANCE;9!==i.type?s.push(i):s=s.concat(i.expr)}else n=!0}if(0===s.length&&n)return T.INSTANCE;s.sort(L)}if(0!==s.length){if(1===s.length)return s[0];for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return x.INSTANCE;if(1===s.length)return s[0]}return new G(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const e of X(t))for(const t of X(i))s.push(z.create([e,t],null,!1));e.unshift(G.create(s,null,!1))}this.negated=G.create(e,this,!0)}return this.negated}}class j extends k{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?j._info.push({...i,key:e}):!0!==i&&j._info.push({key:e,description:i,type:null!==t&&void 0!==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 A.create(this.key,e)}}const K=(0,d.u1)("contextKeyService");function Y(e,t){return e<t?-1:e>t?1:0}function q(e,t,i,s){return e<i?-1:e>i?1:t<s?-1:t>s?1:0}function $(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if($(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if($(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,s=0;for(;i<e.length&&s<t.length;){const n=e[i].cmp(t[s]);if(n<0)return!1;0===n?(i++,s++):s++}return i===e.length}function X(e){return 9===e.type?e.expr:[e]}},32956:(e,t,i)=>{"use strict";i.d(t,{FD:()=>r,Mg:()=>o,gV:()=>n});const s=[];class n{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let i=n.cache[e];return i||(i=new n(e,t),n.cache[e]=i),i}return new n(e,t)}static{this.empty=n.create(0,s)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let s=i>>5;if(0===s){const e=1<<i|this.items;return e===this.items?this:n.create(e,this.additionalItems)}s--;const r=this.additionalItems.slice(0);for(;r.length<s;)r.push(0);return r[s]|=1<<(31&i),n.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===s&&e.additionalItems===s)return t===this.items?this:t===e.items?e:n.create(t,s);const i=[];for(let s=0;s<Math.max(this.additionalItems.length,e.additionalItems.length);s++){const t=this.additionalItems[s]||0,n=e.additionalItems[s]||0;i.push(t|n)}return n.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const r={getKey:e=>e};class o{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},33157:(e,t,i)=>{var s=i(33609),n=i(89807);e.exports=function(e,t,i,r){var o=e.length;for((i=s(i))<0&&(i=-i>o?0:o+i),(r=void 0===r||r>o?o:s(r))<0&&(r+=o),r=i>r?0:n(r);i<r;)e[i++]=t;return e}},33358:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(3648).then(i.bind(i,3648))})},34072:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var s=i(8597),n=i(5662);class r{constructor(){this._hooks=new n.Cm,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;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=o;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,n.s)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(c){a=s.zk(e)}this._hooks.add(s.ko(a,s.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(s.ko(a,s.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},34132:e=>{!function(){function t(e){return"yql."+e}function i(e,i){const s=t(i.toLowerCase());switch(i){case"String":case"Uuid":if(Array.isArray(e))return{$binary:!0,$type:s,$value:e[0]}}return{$type:s,$value:e}}function s(e,t){let s;return s="StructType"===t[0]?i(t[1][e][0],"String"):i(e,"Int32"),s.$key=!0,s}function n(e){const i={};return e.$value.forEach((function(e){const s=e[0],n=e[1];if(s.$type!==t("string"))throw new Error("unipika: try to convert struct with no-string keys to object");i[s.$value]=n.$value})),i}function r(e={}){return Object.prototype.hasOwnProperty.call(e,"src")&&"string"===typeof e.src?e.src:"string"===typeof e.$value?e.$value:void 0}function o(e,o,a){function c(e){return o.maxListSize>0&&Array.isArray(e)&&e.length>o.maxListSize?e.slice(0,o.maxListSize):e}function l(e,t){return t&&(e.$incomplete=!0),e}function h(e){if(o.maxStringSize>0&&e.$value){if(!e.$binary&&!e.$tag&&e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=e.$value.substr(0,o.maxStringSize),l(e,!0);if(e.$binary&&!e.$tag&&.75*e.$value.length>o.maxStringSize)return e.$original_value=e.$value,e.$value=function(e,t){const i=Math.min(Math.floor(t/3),Math.ceil(e.length/4)),s=4*i,n=Math.min(t-3*i,e.length-s),r=e.substr(0,s);return 1==n?r+e.substr(s,2)+"==":2==n?r+e.substr(s,3)+"=":r}(e.$value,o.maxStringSize),l(e,!0)}return e}return function e(d,u){const g=u[0],p=u[1];let m,f,_;switch(o.treatValAsData&&d&&Object.hasOwnProperty.call(d,"val")&&(m=d.inc,f=d.b64,d=d.val),m?_=d:(_=c(d),m=_!==d),a.incomplete=a.incomplete||m,g){case"OptionalType":{const t=Array.isArray(d)&&d.length,i=t?e(d[0],p):e(null,["VoidType"]);return t&&(i.$optional=(i.$optional||0)+1),i}case"TaggedType":return function(e,i,s,o,a){let c,l=o(s,i);switch(e){case"url":if("StructType"===i[0]){if(c=n(l),!Object.prototype.hasOwnProperty.call(c,"href")||"string"!==typeof c.href)return l;l={$type:"tag_value",$value:c}}break;case"videourl":case"audiourl":case"imageurl":{if("StructType"===i[0]){c=n(l);const e=r(c);if(!e||!a(e))return l;l={$type:"tag_value",$value:c}}const e=r(l);if(e&&!a(e))return l;break}case"image/svg":case"image/svg+xml":case"image/jpeg":case"image/png":case"image/gif":case"image/webp":case"video/mp4":case"video/webm":if("StructType"===i[0]){if(c=n(l),!r(c))return l;l={$type:"tag_value",$value:c}}}return{$type:t("tagged"),$tag:e,$value:l}}(u[1],u[2],d,e,o.validateSrcUrl);case"ListType":return l({$type:t("list"),$value:_.map((function(t){return e(t,u[1])}))},m);case"StreamType":return l({$type:t("stream"),$value:_.map((function(t){return e(t,u[1])}))},m);case"TupleType":return l({$type:t("tuple"),$value:_.map((function(t,i){return e(t,p[i])}))},m);case"DictType":return"VoidType"===u[2][0]?l({$type:t("set"),$value:_.map((function(t){return e(t[0],u[1])}))},m):l({$type:t("dict"),$value:_.map((function(t){return[e(t[0],u[1]),e(t[1],u[2])]}))},m);case"StructType":{const s=d.map((function(t,s){const n=p[s],r=e(t,n[1]);if(o.omitStructNull&&null===r.$value)return null;const a=i(n[0],"String");return a.$key=!0,[a,r]})).filter(Boolean);return _=c(s),l({$type:t("struct"),$value:_},_!==s)}case"VariantType":{const i=function(e){const t=e[0];return e[1].map((function(e){return"StructType"===t?e[1]:e}))}(p);return function(e){return e.every((function(e){return"VoidType"===e[0]}))}(i)?{$type:t("enum"),$value:s(d[0],p).$value}:{$type:t("variant"),$value:[[s(d[0],p),e(d[1],i[d[0]])]]}}case"VoidType":case"NullType":return{$type:t("null"),$value:null};case"EmptyListType":return{$type:t("list"),$value:[]};case"EmptyDictType":return{$type:t("dict"),$value:[]};case"DataType":switch(p){case"String":case"Utf8":{const e=i(d,p);return f&&(e.$binary=!0),m?l(e,!0):h(e)}case"JsonDocument":return{$type:"yql.json",$value:d};case"Yson":{const e=i(d,p);return m?l(e,!0):e}default:return i(d,p)}case"PgType":{const e=u[2];return function(e,t,i){return{$type:"yql.pg."+t.toLowerCase(),$value:e,$category:i}}(d,p,e)}}}(...e)}e.exports=function(e,t,i){const s=function(e){const t=e||{},i=e&&e.validateSrcUrl?e.validateSrcUrl:()=>!1;return t.validateSrcUrl=i,t}(t);return o(e,s,i||{})}}()},34175:(e,t,i)=>{"use strict";i.d(t,{z0:()=>mt});var s=i(90766),n=i(5662),r=i(91508),o=i(31450),a=i(87119),c=i(60002),l=i(16223),h=i(46041),d=i(15092),u=i(83069),g=i(36677),p=i(75326),m=i(43264),f=i(87289),_=i(66261),v=i(47612);class C{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===C._FIND_MATCH_DECORATION||e===C._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let s=0,n=this._decorations.length;s<n;s++){const n=this._editor.getModel().getDecorationRange(this._decorations[s]);if(e.equalsRange(n)){t=this._decorations[s],i=s+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,C._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,C._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,C._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let s=C._FIND_MATCH_DECORATION;const n=[];if(e.length>1e3){s=C._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,r=Math.max(2,Math.ceil(3/i));let o=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let s=1,c=e.length;s<c;s++){const t=e[s].range;a+r>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),o=t.startLineNumber,a=t.endLineNumber)}n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let t=0,o=e.length;t<o;t++)r[t]={range:e[t].range,options:s};this._decorations=i.deltaDecorations(this._decorations,r),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,n),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),t?.length&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,C._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.endLineNumber>e.lineNumber)){if(s.endLineNumber<e.lineNumber)return s;if(!(s.endColumn>e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}static{this._CURRENT_FIND_MATCH_DECORATION=f.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",inlineClassName:"currentFindMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_DECORATION=f.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",inlineClassName:"findMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_NO_OVERVIEW_DECORATION=f.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0})}static{this._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.Yf)(_.fAP),position:l.A5.Center}})}static{this._RANGE_HIGHLIGHT_DECORATION=f.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0})}static{this._FIND_SCOPE_DECORATION=f.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0})}}class E{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let s=e[0];for(let t=1;t<e.length;t++)s.range.endLineNumber===e[t].range.startLineNumber&&s.range.endColumn===e[t].range.startColumn?(s.range=s.range.plusRange(e[t].range),s.text=s.text+e[t].text):(i.push(s),s=e[t]);i.push(s);for(const n of i)t.addEditOperation(n.range,n.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function b(e,t){if(e&&""!==e[0]){const i=S(e,t,"-"),s=S(e,t,"_");return i&&!s?y(e,t,"-"):!i&&s?y(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():r.zY(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function S(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function y(e,t,i){const s=t.split(i),n=e[0].split(i);let r="";return s.forEach(((e,t)=>{r+=b([n[t]],e)+i})),r.slice(0,-1)}class w{constructor(e){this.staticValue=e,this.kind=0}}class R{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([T.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new w(e[0].staticValue):this._state=new R(e):this._state=new w("")}buildReplaceString(e,t){if(0===this._state.kind)return t?b(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,n=this._state.pieces.length;s<n;s++){const t=this._state.pieces[s];if(null!==t.staticValue){i+=t.staticValue;continue}let n=L._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let s=0;for(let r=0,o=n.length;r<o;r++){if(s>=i){e.push(n.slice(r));break}switch(t.caseOps[s]){case"U":e.push(n[r].toUpperCase());break;case"u":e.push(n[r].toUpperCase()),s++;break;case"L":e.push(n[r].toLowerCase());break;case"l":e.push(n[r].toLowerCase()),s++;break;default:e.push(n[r])}}n=e.join("")}i+=n}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class T{static staticValue(e){return new T(e,-1,null)}static caseOps(e,t){return new T(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class x{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=T.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)}}var k=i(32848);const A=new k.N1("findWidgetVisible",!1),N=(A.toNegated(),new k.N1("findInputFocussed",!1)),I=new k.N1("replaceInputFocussed",!1),O={primary:545,mac:{primary:2593}},D={primary:565,mac:{primary:2613}},M={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},U="actions.find",H="actions.findWithSelection",B="editor.actions.findWithArgs",W="editor.action.nextMatchFindAction",V="editor.action.previousMatchFindAction",z="editor.action.goToMatchFindAction",G="editor.action.nextSelectionMatchFindAction",j="editor.action.previousSelectionMatchFindAction",K="editor.action.startFindReplaceAction",Y="closeFindWidget",q="toggleFindCaseSensitive",$="toggleFindWholeWord",Q="toggleFindRegex",X="toggleFindInSelection",Z="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class se{constructor(e,t){this._toDispose=new n.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new s.pc,this._decorations=new C(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new s.uC((()=>{if(this._editor.hasModel())return this.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,n.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const s=this._findMatches(i,!1,ie);this._decorations.set(s,i);const n=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(n);if(0===r&&s.length>0){const e=(0,h.hw)(s.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,n)>=0));r=e>0?e-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||1===s?(1===i?i=n.getLineCount():i--,s=n.getLineMaxColumn(i)):s--,new u.y(i,s)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),s=se._getSearchRange(this._editor.getModel(),i);s.getEndPosition().isBefore(e)&&(e=s.getEndPosition()),e.isBefore(s.getStartPosition())&&(e=s.getEndPosition());const{lineNumber:n,column:r}=e,o=this._editor.getModel();let a=new u.y(n,r),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);return c&&c.range.isEmpty()&&c.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),c=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),c?t||s.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||s===n.getLineMaxColumn(i)?(i===n.getLineCount()?i=1:i++,s=1):s++,new u.y(i,s)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,s=!1){if(this._cannotFind())return null;const n=this._decorations.getFindScope(),r=se._getSearchRange(this._editor.getModel(),n);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());const{lineNumber:o,column:a}=e,c=this._editor.getModel();let l=new u.y(o,a),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(l)&&(l=this._nextSearchPosition(l),h=c.findNextMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t)),h?s||r.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new L(null);const t=[],i=new x(e);for(let s=0,n=e.length;s<n;s++){const r=e.charCodeAt(s);if(92!==r){if(36===r){if(s++,s>=n)break;const r=e.charCodeAt(s);if(36===r){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===r||38===r){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=r&&r<=57){let o=r-48;if(s+1<n){const n=e.charCodeAt(s+1);if(48<=n&&n<=57){s++,o=10*o+(n-48),i.emitUnchanged(s-2),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}}else{if(s++,s>=n)break;const r=e.charCodeAt(s);switch(r){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic("\t",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(r))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const s=e.buildReplaceString(i.matches,this._state.preserveCase),n=new d.iu(t,s);this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+s.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const s=(e||[null]).map((e=>se._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,s,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),s=i.getValue(1),n=i.getFullModelRange(),r=this._getReplacePattern();let o;const a=this._state.preserveCase;o=r.hasReplacementPatterns||a?s.replace(t,(function(){return r.buildReplaceString(arguments,a)})):s.replace(t,r.buildReplaceString(null,a));const c=new d.ui(n,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),s=[];for(let r=0,o=i.length;r<o;r++)s[r]=t.buildReplaceString(i[r].matches,this._state.preserveCase);const n=new E(this._editor.getSelection(),i.map((e=>e.range)),s);this._executeEditorCommand("replaceAll",n)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let s=0,n=t.length;s<n;s++){if(t[s].equalsRange(i)){t=[i].concat(t.slice(0,s)).concat(t.slice(s+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ne=i(8597),re=i(23034),oe=i(17390),ae=i(42904);class ce extends oe.x{static{this.ID="editor.contrib.findOptionsWidget"}constructor(e,t,i){super(),this._hideSoon=this._register(new s.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0),inputActiveOptionBackground:(0,_.GuP)(_.c1f)},r=this._register((0,ae.bW)());this.caseSensitive=this._register(new re.bc({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.matchCase,hoverDelegate:r,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new re.nV({appendTitle:this._keybindingLabelFor($),isChecked:this._state.wholeWord,hoverDelegate:r,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new re.Ix({appendTitle:this._keybindingLabelFor(Q),isChecked:this._state.isRegex,hoverDelegate:r,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(ne.ko(this._domNode,ne.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(ne.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return ce.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}var le=i(41234);function he(e,t){return 1===e||2!==e&&t}class de extends n.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new le.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const s={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,s.matchesPosition=!0,n=!0),this._matchesCount!==t&&(this._matchesCount=t,s.matchesCount=!0,n=!0),"undefined"!==typeof i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,s.currentMatch=!0,n=!0)),n&&this._onFindReplaceStateChange.fire(s)}change(e,t,i=!0){const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;const r=this.isRegex,o=this.wholeWord,a=this.matchCase,c=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,n=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,n=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,n=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,n=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(e.searchScope?.every((e=>this._searchScope?.some((t=>!g.Q.equalsRange(t,e)))))||(this._searchScope=e.searchScope,s.searchScope=!0,n=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,n=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,n=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,n=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(n=!0,s.isRegex=!0),o!==this.wholeWord&&(n=!0,s.wholeWord=!0),a!==this.matchCase&&(n=!0,s.matchCase=!0),c!==this.preserveCase&&(n=!0,s.preserveCase=!0),n&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(11007),ge=i(35315),pe=i(92403),me=i(10350),fe=i(64383),_e=i(98067),ve=i(78209),Ce=i(89100);function Ee(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}var be=i(61394),Se=i(25689),ye=i(86723),we=i(631),Re=i(19070);const Le=(0,be.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Te=(0,be.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=(0,be.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ke=(0,be.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=(0,be.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=(0,be.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,be.pU)("find-next-match",me.W.arrowDown,ve.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Oe=ve.kg("label.findDialog","Find / Replace"),De=ve.kg("label.find","Find"),Me=ve.kg("placeholder.find","Find"),Pe=ve.kg("label.previousMatchButton","Previous Match"),Fe=ve.kg("label.nextMatchButton","Next Match"),Ue=ve.kg("label.toggleSelectionFind","Find in Selection"),He=ve.kg("label.closeButton","Close"),Be=ve.kg("label.replace","Replace"),We=ve.kg("placeholder.replace","Replace"),Ve=ve.kg("label.replaceButton","Replace"),ze=ve.kg("label.replaceAllButton","Replace All"),Ge=ve.kg("label.toggleReplaceButton","Toggle Replace"),je=ve.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),Ke=ve.kg("label.matchesLocation","{0} of {1}"),Ye=ve.kg("label.noResults","No results"),qe=419;let $e=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.zx?256:2048;class Ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Je(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionStart>0&&e.stopPropagation()}function et(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionEnd<i.value.length&&e.stopPropagation()}class tt extends oe.x{static{this.ID="editor.contrib.findWidget"}constructor(e,t,i,r,o,a,c,l,h,d){super(),this._hoverService=d,this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=r,this._keybindingService=o,this._contextKeyService=a,this._storageService=l,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new s.ve(500),this._register((0,n.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(146)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Ze(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=N.bindTo(a),this._findFocusTracker=this._register(ne.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=I.bindTo(a),this._replaceFocusTracker=this._register(ne.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Ze(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return tt.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(92)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ne.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=$e+"px",this._state.matchesCount>=ie?this._matchesCount.title=je:this._matchesCount.title="",this._matchesCount.firstChild?.remove(),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=r.GP(Ke,i,t)}else e=Ye;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),$e=Math.max($e,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ye)return""===i?ve.kg("ariaSearchNoResultEmpty","{0} found",e):ve.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const s=ve.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),n=this._codeEditor.getModel();if(n&&t.startLineNumber<=n.getLineCount()&&t.startLineNumber>=1){return`${n.getLineContent(t.startLineNumber)}, ${s}`}return s}return ve.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const s=ne.BK(i),n=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=s.left+(n?n.left:0),o=n?n.top:0;if(this._viewZone&&o<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=ne.cL(this._domNode).left;r>i&&(t=!1);const n=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());s.left+(n?n.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const s=this._getHeight();if(s===t.heightInPx)return;const n=s-t.heightInPx;return t.heightInPx=s,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n))}{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let s=!1,n=!1,r=!1;if(this._resized){if(ne.Tr(this._domNode)>qe)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=ne.Tr(this._findInput.domNode))}if(447+i>=t&&(n=!0),447+i-$e>=t&&(r=!0),447+i-$e>=t+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",r),this._domNode.classList.toggle("reduced-find-widget",n),r||s||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:r,reducedFindWidget:n}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.uF&&_e.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new Ce.pG(null,this._contextViewProvider,{width:221,label:De,placeholder:Me,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor($),appendRegexLabel:this._keybindingLabelFor(Q),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ae.bW)());this._prevBtn=this._register(new it({label:Pe+this._keybindingLabelFor(V),icon:Ne,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(V)).run().then(void 0,fe.dz)}},this._hoverService)),this._nextBtn=this._register(new it({label:Fe+this._keybindingLabelFor(W),icon:Ie,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(W)).run().then(void 0,fe.dz)}},this._hoverService));const s=document.createElement("div");s.className="find-part",s.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",s.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.l({icon:xe,title:Ue+this._keybindingLabelFor(X),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,_.GuP)(_.c1f),inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new it({label:He+this._keybindingLabelFor(Y),icon:be.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new Ce._Q(null,void 0,{label:Be,placeholder:We,appendPreserveCaseLabel:this._keybindingLabelFor(Z),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Re.ho,toggleStyles:Re.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const r=this._register((0,ae.bW)());this._replaceBtn=this._register(new it({label:Ve+this._keybindingLabelFor(J),icon:ke,hoverDelegate:r,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new it({label:ze+this._keybindingLabelFor(ee),icon:Ae,hoverDelegate:r,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",o.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new it({label:Ge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Oe,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(s),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=this._register(new pe.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let c=qe;this._register(this._resizeSash.onDidStart((()=>{c=ne.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=c+e.startX-e.currentX;if(t<qe)return;t>(parseFloat(ne.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=ne.Tr(this._domNode);if(e<qe)return;let t=qe;if(!this._resized||e===qe){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}class it extends oe.x{constructor(e,t){super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+Se.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(t.setupManagedHover(e.hoverDelegate??(0,ae.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown?.(e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...Se.L.asClassNameArray(Le)),this._domNode.classList.add(...Se.L.asClassNameArray(Te))):(this._domNode.classList.remove(...Se.L.asClassNameArray(Te)),this._domNode.classList.add(...Se.L.asClassNameArray(Le)))}}(0,v.zy)(((e,t)=>{const i=e.getColor(_.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,ye.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const s=e.getColor(_.S5J);s&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,ye.Bb)(e.type)?"dashed":"solid"} ${s}; }`);const n=e.getColor(_.b1q);n&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${n}; }`);const r=e.getColor(_.f3U);r&&t.addRule(`.monaco-editor .findMatchInline { color: ${r}; }`);const o=e.getColor(_.p8Y);o&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${o}; }`)}));var st,nt=i(27195),rt=i(54770),ot=i(47508),at=i(98031),ct=i(58591),lt=i(51467),ht=i(9711),dt=i(67220),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};function pt(e,t="single",i=!1){if(!e.hasModel())return null;const s=e.getSelection();if("single"===t&&s.startLineNumber===s.endLineNumber||"multiple"===t)if(s.isEmpty()){const t=e.getConfiguredWordAtPosition(s.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(s)<524288)return e.getModel().getValueInRange(s);return null}let mt=class extends n.jG{static{st=this}static{this.ID="editor.contrib.findController"}get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,n,r,o){super(),this._editor=e,this._findWidgetVisible=A.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._notificationService=r,this._hoverService=o,this._updateHistoryDelayer=new s.ve(500),this._state=this._register(new de),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!N.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=r.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=pt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=r.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=pt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new se(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn(ve.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};mt=st=ut([gt(1,k.fN),gt(2,ht.CS),gt(3,rt.h),gt(4,ct.Ot),gt(5,dt.TN)],mt);let ft=class extends mt{constructor(e,t,i,s,n,r,o,a,c){super(e,i,o,a,r,c),this._contextViewService=t,this._keybindingService=s,this._themeService=n,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let s=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":s=!0;break;case"never":s=!1;break;case"multiline":s=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||s,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new tt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new ce(this._editor,this._state,this._keybindingService))}};ft=ut([gt(1,ot.l),gt(2,k.fN),gt(3,at.b),gt(4,v.Gy),gt(5,ct.Ot),gt(6,ht.CS),gt(7,rt.h),gt(8,dt.TN)],ft);(0,o.gW)(new o.PF({id:U,label:ve.kg("startFindAction","Find"),alias:"Find",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const s=mt.get(t);return!!s&&s.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const _t={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class vt extends o.ks{constructor(){super({id:B,label:ve.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:_t})}async run(e,t,i){const s=mt.get(t);if(s){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await s.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===s.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:t.getOption(41).loop},e),s.setGlobalBufferTerm(s.getState().searchString)}}}class Ct extends o.ks{constructor(){super({id:H,label:ve.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=mt.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class Et extends o.ks{async run(e,t){const i=mt.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class bt extends o.ks{constructor(){super({id:z,label:ve.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:A}),this._highlightDecorations=[]}run(e,t,i){const s=mt.get(t);if(!s)return;const r=s.getState().matchesCount;if(r<1){return void e.get(ct.Ot).notify({severity:ct.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(lt.GK),a=new n.Cm,c=a.add(o.createInputBox());c.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",r);const l=e=>{const t=parseInt(e);if(isNaN(t))return;const i=s.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},h=e=>{const i=l(e);if("number"===typeof i){c.validationMessage=void 0,s.goToMatch(i);const e=s.getState().currentMatch;e&&this.addDecorations(t,e)}else c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount),this.clearDecorations(t)};a.add(c.onDidChangeValue((e=>{h(e)}))),a.add(c.onDidAccept((()=>{const e=l(c.value);"number"===typeof e?(s.goToMatch(e),c.hide()):c.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount)}))),a.add(c.onDidHide((()=>{this.clearDecorations(t),a.dispose()}))),c.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.Yf)(a.vp),position:l.A5.Full}}}])}))}}class St extends o.ks{async run(e,t){const i=mt.get(t);if(!i)return;const s=pt(t,"single",!1);s&&i.setSearchString(s),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,o.gW)(new o.PF({id:K,label:ve.kg("startReplace","Replace"),alias:"Replace",precondition:k.M$.or(c.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(92))return!1;const s=mt.get(t);if(!s)return!1;const n=t.getSelection(),r=s.isFindInputFocused(),o=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!r,a=r||o?2:1;return s.start({forceRevealReplace:!0,seedSearchStringFromSelection:o?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,o.HW)(mt.ID,ft,0),(0,o.Fl)(vt),(0,o.Fl)(Ct),(0,o.Fl)(class extends Et{constructor(){super({id:W,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,o.Fl)(class extends Et{constructor(){super({id:V,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:c.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:k.M$.and(c.R.focus,N),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,o.Fl)(bt),(0,o.Fl)(class extends St{constructor(){super({id:G,label:ve.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,o.Fl)(class extends St{constructor(){super({id:j,label:ve.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const yt=o.DX.bindToContribution(mt.get);(0,o.E_)(new yt({id:Y,precondition:A,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,k.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,o.E_)(new yt({id:q,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,o.E_)(new yt({id:$,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),(0,o.E_)(new yt({id:Q,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,o.E_)(new yt({id:X,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,o.E_)(new yt({id:Z,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:3094}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:3}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:2563}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:k.M$.and(c.R.focus,I),primary:void 0,mac:{primary:2051}}})),(0,o.E_)(new yt({id:te,precondition:A,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:c.R.focus,primary:515}}))},34309:(e,t,i)=>{"use strict";i.d(t,{N:()=>y});var s,n=i(8597),r=i(20370),o=i(10350),a=i(16980),c=i(5662),l=i(31308),h=i(87958),d=i(25689),u=i(631),g=i(38844),p=i(92368),m=i(86571),f=i(83069),_=i(36677),v=i(62083),C=i(78209),E=i(63591),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class extends c.jG{static{s=this}static{this._breadcrumbsSourceFactory=(0,l.FY)(s,(()=>({dispose(){},getBreadcrumbItems:(e,t)=>[]})))}static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=(0,h.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=s._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;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])t?.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,l.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])t?.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const r=this._diffModel.map(((e,t)=>{const i=e?.unchangedRegions.read(t)??[];return 1===i.length&&1===i[0].modifiedLineNumber&&i[0].lineCount===this._editors.modifiedModel.read(t)?.getLineCount()?[]:i}));this.viewZones=(0,l.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const s=[],n=[],o=this._options.renderSideBySide.read(e),a=this._options.compactMode.read(e),c=r.read(e);for(let r=0;r<c.length;r++){const h=c[r];if(!h.shouldHideControls(e)&&(!a||0!==r&&r!==c.length-1))if(a){{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),i=new p.D1(e,12);s.push(i),t.add(new w(this._editors.original,i,h,!o))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),i=new p.D1(e,12);n.push(i),t.add(new w(this._editors.modified,i,h))}}else{{const e=(0,l.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),n=new p.D1(e,24);s.push(n),t.add(new R(this._editors.original,n,h,h.originalUnchangedRange,!o,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,l.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),s=new p.D1(e,24);n.push(s),t.add(new R(this._editors.modified,s,h,h.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}}return{origViewZones:s,modViewZones:n}}));const c={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},g={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,C.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+d.L.asClassName(o.W.fold),zIndex:10001};this._register((0,p.pY)(this._editors.original,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:_.Q.fromPositions(new f.y(s.originalLineNumber,1)),options:g});return i})))),this._register((0,p.pY)(this._editors.modified,(0,l.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:c})));for(const s of t)s.shouldHideControls(e)&&i.push({range:m.M.ofLength(s.modifiedLineNumber,1).toInclusiveRange(),options:g});return i})))),this._register((0,l.fm)((e=>{const t=r.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};y=s=b([S(3,E._Y)],y);class w extends p.uN{constructor(e,t,i,s=!1){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._unchangedRegion=i,this._hide=s,this._nodes=(0,n.h)("div.diff-hidden-lines-compact",[(0,n.h)("div.line-left",[]),(0,n.h)("div.text@text",[]),(0,n.h)("div.line-right",[])]),r.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register((0,l.fm)((e=>{if(!this._hide){const t=this._unchangedRegion.getHiddenModifiedRange(e).length,i=(0,C.kg)("hiddenLines","{0} hidden lines",t);this._nodes.text.innerText=i}})))}}class R extends p.uN{constructor(e,t,i,s,a,c,h,d){const u=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=s,this._hide=a,this._modifiedOutlineSource=c,this._revealModifiedHiddenLine=h,this._options=d,this._nodes=(0,n.h)("div.diff-hidden-lines",[(0,n.h)("div.top@top",{title:(0,C.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,n.h)("div.center@content",{style:{display:"flex"}},[(0,n.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,n.$)("a",{title:(0,C.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,r.n)("$(unfold)"))]),(0,n.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,n.h)("div.bottom@bottom",{title:(0,C.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root),this._hide?(0,n.Ln)(this._nodes.first):this._register((0,p.AV)(this._nodes.first,{width:(0,g.Ud)(this._editor).layoutInfoContentLeft})),this._register((0,l.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;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);const i=this._unchangedRegion.isDragged.read(e),s=this._editor.getDomNode();s&&(s.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(s.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),s.classList.toggle("canMoveBottom",!t)):"bottom"===i?(s.classList.toggle("canMoveTop",!t),s.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(s.classList.toggle("canMoveTop",!1),s.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,n.ko)(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();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const r=(0,n.zk)(this._nodes.top),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s+r,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0)})),a=(0,n.ko)(r,"mouseup",(e=>{i||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(),a.dispose()}))}))),this._register((0,n.ko)(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();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const r=(0,n.zk)(this._nodes.bottom),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s-r,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(o,void 0);const c=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(c-a))})),a=(0,n.ko)(r,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),o.dispose(),a.dispose()}))}))),this._register((0,l.fm)((e=>{const t=[];if(!this._hide){const s=i.getHiddenModifiedRange(e).length,a=(0,C.kg)("hiddenLines","{0} hidden lines",s),c=(0,n.$)("span",{title:(0,C.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);c.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(c);const l=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(l,e);if(h.length>0){t.push((0,n.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],s=v.gP.toIcon(i.kind),a=(0,n.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,r.s)(s),"\xa0",i.name,...e===h.length-1?[]:[(0,r.s)(o.W.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,n.Ln)(this._nodes.others,...t)})))}}},34326:(e,t,i)=>{"use strict";i.d(t,{Np:()=>r,jA:()=>o,z9:()=>n});var s=i(23452);function n(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.ICodeEditor}function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.IDiffEditor}function o(e){return n(e)?e:r(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&n(e.activeCodeEditor)?e.activeCodeEditor:null}},34408:(e,t,i)=>{var s=i(73917),n=i(39069),r=i(72633);e.exports=function(e){return r(n(e,void 0,s),e+"")}},34420:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$value",n={string:null,number:null,boolean:null,null:null,object:null,array:null};function r(e){switch(e){case"array":return"list";case"object":return"map";default:return e}}function o(e){const i=t(e);if(!Object.prototype.hasOwnProperty.call(n,i))throw new Error('unipika: invalid input - node type "'+i+'" is not supported.');return{$type:r(i),$value:e}}function a(e,t){return e[s]=function(e,t){return Object.keys(e).map((function(i){const s=o(i);return"$attributes"===i||"$value"===i||"$incomplete"===i||"$type"===i?s.$special_key=!0:s.$key=!0,[s,c(e[i],t)]}))}(e[s],t),e}const c=function(e,t){let i;return(e=o(e))&&(i=e.$type,"map"===i?e=a(e,t):"list"===i&&(e=function(e,t){return e[s]=e[s].map((function(e){return c(e,t)})),e}(e,t))),e};e.exports=c}()},34529:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);return function(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+=t.ARRAY_START+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+t.ARRAY_END):t.drawCompactView(a,i)?(r+=t.ARRAY_START,r+=s(o,i,n-1),r+=t.ARRAY_END):r+=t.ARRAY_START+t.ARRAY_END,r}}},34671:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.313 7.488L9 7.653v5.37a.5.5 0 01-.353.478l-1.62.498-.006.001h-.008l-.007-.006-.005-.007v-.003L7 13.979V7.653l-1.313-.165a1.5 1.5 0 01-1.271-1.144l-.588-2.5A1.5 1.5 0 015.288 2h5.424a1.5 1.5 0 011.46 1.844l-.588 2.5a1.5 1.5 0 01-1.271 1.144m2.731-.8A3 3 0 0110.5 8.976v4.046a2 2 0 01-1.412 1.911l-1.62.499A1.52 1.52 0 015.5 13.979V8.977a3 3 0 01-2.544-2.29l-.588-2.5A3 3 0 015.288.5h5.424a3 3 0 012.92 3.687zM6.75 3.5a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,d.languages.register(e);const i=p.getOrCreate(t);d.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),d.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();d.languages.setLanguageConfiguration(t,e.conf)}))}},35015:(e,t,i)=>{"use strict";var s,n,r,o,a,c,l,h,d,u,g,p,m,f,_,v,C,E,b,S,y,w,R,L,T,x,k,A,N,I,O,D,M,P,F,U,H,B,W,V,z,G,j,K,Y,q;i.d(t,{A5:()=>O,Ah:()=>D,DD:()=>w,DO:()=>P,Gn:()=>s,H_:()=>G,Ic:()=>M,Io:()=>o,Kb:()=>u,M$:()=>v,OV:()=>A,QP:()=>a,Qj:()=>l,R3:()=>T,SB:()=>B,U7:()=>j,VW:()=>E,VX:()=>x,WA:()=>V,WU:()=>f,XR:()=>H,YT:()=>N,ZS:()=>_,_E:()=>r,cj:()=>R,dE:()=>I,d_:()=>L,e0:()=>g,h5:()=>h,hS:()=>k,hW:()=>F,jT:()=>W,kK:()=>Y,kf:()=>m,l:()=>C,m9:()=>K,of:()=>d,ok:()=>n,ov:()=>U,p2:()=>p,qw:()=>S,r4:()=>b,sm:()=>y,t7:()=>c,tJ:()=>q,v0:()=>z}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(s||(s={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(c||(c={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(C||(C={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(E||(E={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(b||(b={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(S||(S={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(R||(R={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(T||(T={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(x||(x={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(k||(k={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(A||(A={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(O||(O={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(D||(D={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(M||(M={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(F||(F={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(U||(U={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(H||(H={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(W||(W={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(V||(V={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(z||(z={})),function(e){e[e.Deprecated=1]="Deprecated"}(G||(G={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(j||(j={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(K||(K={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>C,U:()=>E});var s=i(8597),n=i(56245),r=i(92403),o=i(31295),a=i(25890),c=i(47661),l=i(41234),h=i(5662),d=i(1592),u=i(49353),g=i(631);const p={separatorBorder:c.Q1.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){if(e!==this.visible){e?(this.size=(0,d.qE)(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{this.view.setVisible?.(e)}catch(i){console.error("Splitview: Failed to set visible view"),console.error(i)}}}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(){return this.view.proportionalLayout??!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,s){this.container=e,this.view=t,this.disposable=s,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(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,C;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(C||(C={}));class E extends h.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const 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={}){super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new l.vl),this._onDidSashReset=this._register(new l.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=t.orientation??0,this.inverseAltBehavior=t.inverseAltBehavior??!1,this.proportionalLayout=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=(0,s.BC)(this.el,(0,s.$)(".sash-container")),this.viewContainer=(0,s.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,s.PG)((0,s.zk)(this.el),e)})),this.scrollableElement=this._register(new o.oO(this.viewContainer,{vertical:0===this.orientation?t.scrollbarVisibility??1:2,horizontal:1===this.orientation?t.scrollbarVisibility??1:2},this.scrollable));const i=this._register(new n.f(this.viewContainer,"scroll")).event;this._register(i((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,s=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===s||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:s})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,s.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},s=e.view;this.doAddView(s,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,s){this.doAddView(e,t,i,s)}layout(e,t){const 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++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n?t+=n:e-=s.size}for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n&&t>0&&(s.size=(0,d.qE)(Math.round(n*e/t),s.minimumSize,s.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),s=t.filter((e=>1===this.viewItems[e].priority)),n=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,s,n)}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(const s of this.viewItems)s.enabled=!1;const n=this.sashItems.findIndex((t=>t.sash===e)),r=(0,h.qE)((0,s.ko)(this.el.ownerDocument.body,"keydown",(e=>o(this.sashDragState.current,e.altKey))),(0,s.ko)(this.el.ownerDocument.body,"keyup",(()=>o(this.sashDragState.current,!1)))),o=(e,t)=>{const i=this.viewItems.map((e=>e.size));let s,o,c=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){const e=this.viewItems[n];c=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];c=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.y1)(n,-1),t=(0,a.y1)(n+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),c=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),l=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(r,h),u=Math.min(l,c),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);s={index:g,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);o={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:c,maxDelta:l,alt:t,snapBefore:s,snapAfter:o,disposable:r}};o(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:s,alt:n,minDelta:r,maxDelta:o,snapBefore:a,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const l=e-i,h=this.resize(t,l,s,void 0,void 0,r,o,a,c);if(n){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),s=e?t:t+1,n=this.viewItems[s],r=n.size-n.maximumSize,o=n.size-n.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,d.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),s=[...i.filter((e=>1===this.viewItems[e].priority)),e],n=i.filter((e=>2===this.viewItems[e].priority)),r=this.viewItems[e];t=Math.round(t),t=(0,d.qE)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(s,n)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const o of this.viewItems)o.maximumSize-o.minimumSize>0&&(e.push(o),t+=o.size);const i=Math.floor(t/e.length);for(const o of e)o.size=(0,d.qE)(i,o.minimumSize,o.maximumSize);const s=(0,a.y1)(this.viewItems.length),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));this.relayout(n,r)}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!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const o=(0,s.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const c=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.s)((()=>o.remove())),u=(0,h.qE)(c,d);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(o,e,g,u):new _(o,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new r.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new r.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),s=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}),n=l.Jh.map(t.onDidStart,s)(this.onSashStart,this),o=l.Jh.map(t.onDidChange,s)(this.onSashChange,this),c=l.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=c(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),s=(0,a.y1)(e+1,this.viewItems.length),n=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(s);("number"!==typeof n||this.viewItems[n].visible)&&("number"!==typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.qE)(n,o,d,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;o.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),n||this.relayout([i],m),n||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const 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)),s,n,r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,c,l){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(n)for(const d of n)(0,a._A)(h,d),(0,a._A)(u,d);if(s)for(const d of s)(0,a.r7)(h,d),(0,a.r7)(u,d);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),C=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),E=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),b=Math.max(_,E,r),S=Math.min(C,v,o);let y=!1;if(c){const e=this.viewItems[c.index],i=t>=c.limitDelta;y=i!==e.visible,e.setVisible(i,c.size)}if(!y&&l){const e=this.viewItems[l.index],i=t<l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(y)return this.resize(e,t,i,s,n,r,o);for(let a=0,w=t=(0,d.qE)(t,b,S);a<g.length;a++){const e=g[a],t=(0,d.qE)(p[a]+w,e.minimumSize,e.maximumSize);w-=t-p[a],e.size=t}for(let a=0,w=t;a<m.length;a++){const e=m[a],t=(0,d.qE)(f[a]-w,e.minimumSize,e.maximumSize);w+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const s=(0,a.y1)(this.viewItems.length-1,-1),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));for(const o of r)(0,a._A)(s,o);for(const o of n)(0,a.r7)(s,o);"number"===typeof e&&(0,a.r7)(s,e);for(let o=0;0!==i&&o<s.length;o++){const e=this.viewItems[s[o]],t=(0,d.qE)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const 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;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),s=[...this.viewItems].reverse();e=!1;const n=s.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const r=s.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let o=0;for(let c=0;c<this.sashItems.length;c++){const{sash:e}=this.sashItems[c];o+=this.viewItems[c].size;const s=!(t[c]&&r[c+1]),l=!(i[c]&&n[c+1]);if(s&&l){const i=(0,a.y1)(c,-1),s=(0,a.y1)(c+1,this.viewItems.length),r=this.findFirstSnapIndex(i),l=this.findFirstSnapIndex(s),h="number"===typeof r&&!this.viewItems[r].visible,d="number"===typeof l&&!this.viewItems[l].visible;h&&n[c]&&(o>0||this.startSnappingEnabled)?e.state=1:d&&t[c]&&(o<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=s&&!l?1:!s&&l?2: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(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const 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),t-e>2)return!1;return!0}dispose(){this.sashDragState?.disposable.dispose(),(0,h.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},35315:(e,t,i)=>{"use strict";i.d(t,{l:()=>l,F:()=>c});var s=i(17390),n=i(25689),r=i(41234),o=i(42904),a=i(48196);const c={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class l extends s.x{constructor(e){super(),this._onChange=this._register(new r.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.L.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,a.i)().setupManagedHover(e.hoverDelegate??(0,o.nZ)("mouse"),this.domNode,this._opts.title)),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.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();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()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",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))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>c,zL:()=>l,UW:()=>g,Md:()=>m});var s=i(78209),n=i(91508),r=i(99020),o=i(25521);class a{constructor(e,t,i,s){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class c{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,s,n,r,a,c,l,h,d,u,g,p,m,f,_,v,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=n,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=c,this.lineDecorations=l.sort(o.d.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=C&&C.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(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&&o.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class d{static getPartIndex(e){return(4294901760&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,s){const n=(t<<16|i)>>>0;this._data[e-1]=n,this._horizontalOffset[e-1]=s}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){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),s=d.getCharIndex(t);return new h(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const s=(e<<16|i)>>>0;let n=0,r=this.length-1;for(;n+1<r;){const e=n+r>>>1,t=this._data[e];if(t===s)return e;t>s?r=e:n=e}if(n===r)return n;const o=this._data[n],a=this._data[r];if(o===s)return n;if(a===s)return r;const c=d.getPartIndex(o),l=d.getCharIndex(o);let h;h=c!==d.getPartIndex(a)?t:d.getCharIndex(a);return i-l<=h-i?n:r}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,s=0,n=0;for(const o of e.lineDecorations)1!==o.type&&2!==o.type||(t.appendString('<span class="'),t.appendString(o.className),t.appendString('"></span>'),1===o.type&&(n|=1,i++),2===o.type&&(n|=2,s++));t.appendString("</span>");const r=new d(1,i+s);return r.setColumnInfo(1,i,0,0),new u(r,!1,n)}return t.appendString("<span><span></span></span>"),new u(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,c=e.len,l=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,C=e.containsRTL,E=e.spaceWidth,b=e.renderSpaceCharCode,S=e.renderWhitespace,y=e.renderControlCharacters,w=new d(c+1,g.length);let R=!1,L=0,T=f,x=0,k=0,A=0;C?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let s=0,d=g.length;s<d;s++){const e=g[s],l=e.endIndex,h=e.type,d=e.containsRTL,u=0!==S&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!o),C=L===l&&e.isPseudoAfter();if(x=0,t.appendString("<span "),d&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=L,i=T;for(;t<l;t++){const s=0|(9===a.charCodeAt(t)?m-i%m:1);e+=s,t>=p&&(i+=s)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(E*e)),t.appendString('px"')),t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;let e,i;if(9===a.charCodeAt(L)){e=m-T%m|0,i=e,!r||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(b),t.appendCharCode(8204);x+=e,k+=i,L>=p&&(T+=i)}}else for(t.appendASCIICharCode(62);L<l;L++){w.setColumnInfo(L+1,s-A,x,k),A=0;const e=a.charCodeAt(L);let i=1,r=1;switch(e){case 9:i=m-T%m,r=i;for(let e=1;e<=i;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:y?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:n.ne(e)&&r++,y&&e<32?t.appendCharCode(9216+e):y&&127===e?t.appendCharCode(9249):y&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,r=i):t.appendCharCode(e)}x+=i,k+=r,L>=p&&(T+=r)}C?A++:A=0,L>=c&&!R&&e.isPseudoAfter()&&(R=!0,w.setColumnInfo(L+1,s,x,k)),t.appendString("</span>")}R||w.setColumnInfo(c+1,g.length-1,x,k);l&&(t.appendString('<span class="mtkoverflow">'),t.appendString(s.kg("showMore","Show more ({0})",function(e){if(e<1024)return s.kg("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(w,C,o)}(function(e){const t=e.lineContent;let i,s,r;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,s=t.length-e.stopRenderingLineAfter,r=e.stopRenderingLineAfter):(i=!1,s=0,r=t.length);let c=function(e,t,i,s,r){const o=[];let c=0;s>0&&(o[c++]=new a(s,"",0,!1));let l=s;for(let h=0,d=i.getCount();h<d;h++){const d=i.getEndOffset(h);if(d<=s)continue;const u=i.getClassName(h);if(d>=r){const i=!!t&&n.E_(e.substring(l,r));o[c++]=new a(r,u,0,i);break}const g=!!t&&n.E_(e.substring(l,d));o[c++]=new a(d,u,0,g),l=d}return o}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(c=function(e,t){const i=[];let s=new a(0,"",0,!1),n=0;for(const r of t){const t=r.endIndex;for(;n<t;n++){_(e.charCodeAt(n))&&(n>s.endIndex&&(s=new a(n,r.type,r.metadata,r.containsRTL),i.push(s)),s=new a(n+1,"mtkcontrol",r.metadata,!1),i.push(s))}n>s.endIndex&&(s=new a(t,r.type,r.metadata,r.containsRTL),i.push(s))}return i}(t,c));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(c=function(e,t,i,s){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,c=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex;const b=s.length;let S,y=!1,w=n.HG(t);-1===w?(y=!0,w=i,S=i):S=n.lT(t);let R=!1,L=0,T=d&&d[L],x=l%c;for(let A=o;A<i;A++){const e=t.charCodeAt(A);let r;if(T&&A>=T.endOffset&&(L++,T=d&&d[L]),A<w||A>S)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(R)r=!0;else{const e=A+1<i?t.charCodeAt(A+1):0;r=32===e||9===e}else r=!0;else r=!1;if(r&&d&&(r=!!T&&T.startOffset<=A&&T.endOffset>A),r&&g&&(r=y||A>S),r&&C&&A>=w&&A<=S&&(r=!1),R){if(!r||!h&&x>=c){if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=A;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(A,"mtkw",1,!1);x%=c}}else(A===E||r&&A>o)&&(m[f++]=new a(A,v,0,C),x%=c);for(9===e?x=c:n.ne(e)?x+=2:x++,R=r;A===E&&(_++,_<b);)v=s[_].type,C=s[_].containsRTL,E=s[_].endIndex}let k=!1;if(R)if(r&&u){const e=i>0?t.charCodeAt(i-1):0,s=i>1?t.charCodeAt(i-2):0;32===e&&32!==s&&9!==s||(k=!0)}else k=!0;if(k)if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,C);return m}(e,t,r,c));let l=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?l|=1:2===i.type&&(l|=2)}c=function(e,t,i,s){s.sort(o.d.compare);const n=o.Bs.normalize(e,s),r=n.length;let c=0;const l=[];let h=0,d=0;for(let o=0,g=i.length;o<g;o++){const e=i[o],t=e.endIndex,s=e.type,u=e.metadata,g=e.containsRTL;for(;c<r&&n[c].startOffset<t;){const e=n[c];if(e.startOffset>d&&(d=e.startOffset,l[h++]=new a(d,s,u,g)),!(e.endOffset+1<=t)){d=t,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,l[h++]=new a(d,s+" "+e.className,u|e.metadata,g),c++}t>d&&(d=t,l[h++]=new a(d,s,u,g))}const u=i[i.length-1].endIndex;if(c<r&&n[c].startOffset===u)for(;c<r&&n[c].startOffset===u;){const e=n[c];l[h++]=new a(d,e.className,e.metadata,!1),c++}return l}(t,0,c,e.lineDecorations)}e.containsRTL||(c=function(e,t,i){let s=0;const n=[];let r=0;if(i)for(let o=0,c=t.length;o<c;o++){const i=t[o],c=i.endIndex;if(s+50<c){const t=i.type,o=i.metadata,l=i.containsRTL;let h=-1,d=s;for(let i=s;i<c;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-d>=50&&(n[r++]=new a(h+1,t,o,l),d=h+1,h=-1);d!==c&&(n[r++]=new a(c,t,o,l))}else n[r++]=i;s=c}else for(let o=0,c=t.length;o<c;o++){const e=t[o],i=e.endIndex,c=i-s;if(c>50){const t=e.type,o=e.metadata,l=e.containsRTL,h=Math.ceil(c/50);for(let e=1;e<h;e++){const i=s+50*e;n[r++]=new a(i,t,o,l)}n[r++]=new a(i,t,o,l)}else n[r++]=e;s=i}return n}(t,c,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,i,s,c,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function m(e){const t=new r.fe(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=n,this.overflowingCharCount=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=c,this.tabSize=l,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},35762:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(76319)(e);function n(e,i,n){let r="";const o=e.$value,a=o.length;return t.drawFullView(a,i)?(r+="{"+t.getIndent(i,n),r+=s(o,i,n),r+=t.getIndent(i,n-1)+"}"):t.drawCompactView(a,i)?(r+="{",r+=s(o,i,n),r+="}"):r+="{}",r}return n.isScalar=!0,n}},35817:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});var s=i(1245);class n{static whitespaceVisibleColumn(e,t,i){const n=e.length;let r=0,o=-1,a=-1;for(let c=0;c<n;c++){if(c===t)return[o,a,r];r%i===0&&(o=c,a=r);switch(e.charCodeAt(c)){case 32:r+=1;break;case 9:r=s.A.nextRenderTabStop(r,i);break;default:return[-1,-1,-1]}}return t===n?[o,a,r]:[-1,-1,-1]}static atomicPosition(e,t,i,r){const o=e.length,[a,c,l]=n.whitespaceVisibleColumn(e,t,i);if(-1===l)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(l%i===0)return t;h=l%i<=i/2}if(h){if(-1===a)return-1;let t=c;for(let n=a;n<o;++n){if(t===c+i)return a;switch(e.charCodeAt(n)){case 32:t+=1;break;case 9:t=s.A.nextRenderTabStop(t,i);break;default:return-1}}return t===c+i?a:-1}const d=s.A.nextRenderTabStop(l,i);let u=l;for(let n=t;n<o;n++){if(u===d)return n;switch(e.charCodeAt(n)){case 32:u+=1;break;case 9:u=s.A.nextRenderTabStop(u,i);break;default:return-1}}return u===d?o:-1}}},36e3:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(43702).then(i.bind(i,43702))})},36317:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>d,SJ:()=>p,fV:()=>h,ny:()=>s,v$:()=>l,zl:()=>g});var s,n=i(64383),r=i(98067),o=i(91508),a=i(79400),c=i(74027);function l(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}function h(e,...t){return t.some((t=>l(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(s||(s={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return c.SA.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return n.dz(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const o=this._ports[t],c=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"===typeof c&&(l+=`&tkn=${encodeURIComponent(c)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${o}`,path:this._remoteResourcesPath,query:l})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===s.vscodeRemote?d.rewrite(e):e.scheme!==s.file||!r.ib&&r.lg!==`${s.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:s.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const i=c.fj(t,e);return a.r.file(i)}return a.r.parse(t.toUrl(e))}}const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let s;"string"===typeof e?s=new URL(e).searchParams:e instanceof URL?s=e.searchParams:a.r.isUri(e)&&(s=new URL(e.toString(!0)).searchParams);const n=s?.get(i);if(n)return t.get(n)},e.addSearchParam=function(e,t,s){if(!globalThis.crossOriginIsolated)return;const n=t&&s?"3":s?"2":"1";e instanceof URLSearchParams?e.set(i,n):e[i]=n}}(p||(p={}))},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ce,aG:()=>Ee,er:()=>ft,YD:()=>Re,zL:()=>gt,Nf:()=>Ne,cH:()=>Oe});var s=i(8597),n=i(25890),r=i(18447),o=i(41234),a=i(5662),c=(i(48215),i(93090));class l{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,s){if(i.disposable?.dispose(),!i.data)return;const n=this.modelProvider();if(n.isResolved(e))return this.renderer.renderElement(n.get(e),e,i.data,s);const o=new r.Qi,a=n.resolve(e,o.token);i.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,s)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class d{constructor(e,t,i,s,n={}){const r=()=>this.model,o=s.map((e=>new l(e,r)));this.list=new c.B8(e,t,i,o,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(r,n))}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 o.Jh.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 o.Jh.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 o.Jh.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._model=e,this.list.splice(0,this.list.length,(0,n.y1)(e.length))}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()}}var u=i(48196),g=i(42904),p=i(35151);class m{static{this.TemplateId="row"}constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const n of e){const e=s.get(n.templateId);if(!e)throw new Error(`Table cell renderer for template id ${n.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,s.BC)(e,(0,s.$)(".monaco-table-tr")),i=[],n=[];for(let o=0;o<this.columns.length;o++){const e=this.renderers[o],r=(0,s.BC)(t,(0,s.$)(".monaco-table-td",{"data-col-index":o}));r.style.width=`${this.getColumnSize(o)}px`,i.push(r),n.push(e.renderTemplate(r))}const r={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(r),r}renderElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.columns[n].project(e);this.renderers[n].renderElement(r,t,i.cellTemplateData[n],s)}}disposeElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.renderers[n];if(r.disposeElement){const o=this.columns[n].project(e);r.disposeElement(o,t,i.cellTemplateData[n],s)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,s.w_)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}class f extends a.jG{get minimumSize(){return this.column.minimumWidth??120}get maximumSize(){return this.column.maximumWidth??Number.POSITIVE_INFINITY}get onDidChange(){return this.column.onDidChangeWidthConstraints??o.Jh.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new o.vl,this.onDidLayout=this._onDidLayout.event,this.element=(0,s.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,u.i)().setupManagedHover((0,g.nZ)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{static{this.InstanceCount=0}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,r,l){this.virtualDelegate=i,this.columns=n,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.Cm,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,s.BC)(t,(0,s.$)(`.monaco-table.${this.domId}`));const h=n.map(((e,t)=>this.disposables.add(new f(e,t)))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(n,r,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new c.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],l)),o.Jh.any(...h.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const 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=(0,s.li)(this.domNode),this.style(c.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),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()}}var v=i(19466),C=i(66700),E=i(37472),b=i(84565),S=i(42522);class y{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new E.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i={}){const s=this.getElementLocation(e);this._setChildren(s,this.preserveCollapseState(t),i)}_setChildren(e,t=S.f.empty(),i){const s=new Set,n=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{if(null===e.element)return;const t=e;if(s.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.add(e),this.nodesByIdentity.set(e,t)}i.onDidCreateNode?.(t)},onDidDeleteNode:e=>{if(null===e.element)return;const t=e;if(s.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.has(e)||this.nodesByIdentity.delete(e)}i.onDidDeleteNode?.(t)}})}preserveCollapseState(e=S.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===b.Yo.Collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed!==b.Yo.Expanded&&e.collapsed!==b.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let s;return s="undefined"===typeof e.collapsed||e.collapsed===b.Yo.PreserveOrCollapsed||e.collapsed===b.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===b.Yo.Collapsed||e.collapsed!==b.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:s,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getElementLocation(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const 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);const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new b.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),s=this.model.getParentNodeLocation(i);return this.model.getNode(s).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function w(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:S.f.map(S.f.from(e.children),w),collapsible:e.collapsible,collapsed:e.collapsed}}function R(e){const t=[e.element],i=e.incompressible||!1;let s,n;for(;[n,s]=S.f.consume(S.f.from(e.children),2),1===n.length&&!n[0].incompressible;)e=n[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:S.f.map(S.f.concat(n,s),R),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e,t=0){let i;return i=t<e.element.elements.length-1?[L(e,t+1)]:S.f.map(S.f.from(e.children),(e=>L(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function T(e){return L(e,0)}function x(e,t,i){return e.element===t?{...e,children:i}:{...e,children:S.f.map(S.f.from(e.children),(e=>x(e,t,i)))}}class k{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new y(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i){const s=i.diffIdentityProvider&&(r=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>r.getId(e).toString())).join("\0")});var r;if(null===e){const e=S.f.map(t,this.enabled?R:w);return void this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0})}const o=this.nodes.get(e);if(!o)throw new b.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(o),c=this.model.getParentNodeLocation(o),l=this.model.getNode(c),h=x(T(a),e,t),d=(this.enabled?R:w)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,n.aI)(d.element.elements,a.element.elements,u))return void this._setChildren(o,d.children||S.f.empty(),{diffIdentityProvider:s,diffDepth:1});const g=l.children.map((e=>e===a?d:e));this._setChildren(l.element,g,{diffIdentityProvider:s,diffDepth:a.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=S.f.map(t,T),s=S.f.map(i,e?R:w);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const s=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)s.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)s.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getCompressedNode(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new b.jh(this.user,`Tree element not found: ${e}`);return t}}const A=e=>e[e.length-1];class N{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new N(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 I{get onDidSplice(){return o.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return o.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return o.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||A;const s=e=>this.elementMapper(e.elements);this.nodeMapper=new b.y2((e=>new N(s,e))),this.model=new k(e,function(e,t){return{splice(i,s,n){t.splice(i,s,n.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,s)=>t.filter.filter(e(i),s)}}}(s,i))}setChildren(e,t=S.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){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof 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()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var O=i(58694),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class M extends v.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,s,n={}){super(e,t,i,s,n),this.user=e}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new y(e,t,i)}}class P{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,s){let n=this.stickyScrollDelegate.getCompressedNode(e);n||(n=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===n.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,s)):(i.compressedTreeNode=n,this.renderer.renderCompressedElements(n,t,i.data,s))}disposeElement(e,t,i,s){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,s):this.renderer.disposeElement?.(e,t,i.data,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}D([O.B],P.prototype,"compressedTreeNodeProvider",null);class F{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 s=0;s<e.length;s++){const n=e[s],r=n.position+n.height;if(s+1<e.length&&r+e[s+1].height>i||s>=t-1&&t<e.length){const t=e.slice(0,s),i=e.slice(s);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");const t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];const i=[];for(let c=0;c<e.length;c++){const s=e[c],n=t.getCompressedTreeNode(s.node.element);if(n.element){if(0!==c&&n.element.incompressible)break;i.push(...n.element.elements)}}if(i.length<2)return e[0];const s=e[e.length-1],n={elements:i,incompressible:!1},r={...s.node,children:[],element:n},o=new Proxy(e[0].node,{}),a={node:o,startIndex:e[0].startIndex,endIndex:s.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,r),a}}function U(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let s;try{s=e().getCompressedTreeNode(i)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===s.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(s.element.elements)}}}}class H extends M{constructor(e,t,i,s,n={}){const r=()=>this,o=new F((()=>this.model));super(e,t,i,s.map((e=>new P(r,o,e))),{...U(r,n),stickyScrollDelegate:o})}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new I(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var B=i(90766),W=i(10350),V=i(25689),z=i(64383),G=i(631);function j(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function K(e,t){return!!t.parent&&(t.parent===e||K(e,t.parent))}class Y{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Y(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 q{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,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function $(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Q(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class X extends C.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Z(e){return e instanceof C.ur?new X(e):e}class J{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){this.dnd.onDragStart?.(Z(e),t)}onDragOver(e,t,i,s,n,r=!0){return this.dnd.onDragOver(Z(e),t&&t.element,i,s,n)}drop(e,t,i,s,n){this.dnd.drop(Z(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(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=>!!e.accessibilityProvider?.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)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return o.Jh.map(this.tree.onDidChangeFocus,$)}get onDidChangeSelection(){return o.Jh.map(this.tree.onDidChangeSelection,$)}get onMouseDblClick(){return o.Jh.map(this.tree.onMouseDblClick,Q)}get onPointer(){return o.Jh.map(this.tree.onPointer,Q)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,s,n,r={}){this.user=e,this.dataSource=n,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new o.vl,this._onDidChangeNodeSlowState=new o.vl,this.nodeMapper=new b.y2((e=>new Y(e))),this.disposables=new a.Cm,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?b.Yo.PreserveOrCollapsed:b.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,s,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=j({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)}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new q(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(n)||{};return new M(e,t,r,o,a)}updateOptions(e={}){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.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const 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)}async _updateChildren(e=this.root.element,t=!0,i=!1,s,n){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,s,n),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new b.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const s=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),s}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const 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){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new b.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,s){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,s)}async refreshNode(e,t,i){let s;if(this.subTreeRefreshPromises.forEach(((n,r)=>{!s&&function(e,t){return e===t||K(e,t)||K(t,e)}(r,e)&&(s=n.then((()=>this.refreshNode(e,t,i))))})),s)return s;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let s;e.refreshPromise=new Promise((e=>s=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const s=await this.doRefreshNode(e,t,i);e.stale=!1,await B.HC.settled(s.map((e=>this.doRefreshSubTree(e,t,i))))}finally{s()}}async doRefreshNode(e,t,i){let s;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,G.xZ)(t))s=Promise.resolve(t);else{const i=(0,B.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),s=t.finally((()=>i.cancel()))}}else s=Promise.resolve(S.f.empty());try{const n=await s;return this.setChildren(e,n,t,i)}catch(n){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,z.MB)(n))return[];throw n}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,G.xZ)(i)?this.processChildren(i):(t=(0,B.SS)((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(z.dz))}setChildren(e,t,i,s){const n=[...t];if(0===e.children.length&&0===n.length)return[];const r=new Map,o=new Map;for(const l of e.children)r.set(l.element,l),this.identityProvider&&o.set(l.id,{node:l,collapsed:this.tree.hasElement(l)&&this.tree.isCollapsed(l)});const a=[],c=n.map((t=>{const n=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=j({element:t,parent:e,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&i.defaultCollapseState===b.Yo.PreserveOrExpanded&&a.push(i),i}const c=this.identityProvider.getId(t).toString(),l=o.get(c);if(l){const e=l.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=n,i?l.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):n&&!l.collapsed&&a.push(e),e}const h=j({element:t,parent:e,id:c,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&s.viewState.focus&&s.viewState.focus.indexOf(c)>-1&&s.focus.push(h),s&&s.viewState.selection&&s.viewState.selection.indexOf(c)>-1&&s.selection.push(h),(s&&s.viewState.expanded&&s.viewState.expanded.indexOf(c)>-1||n&&h.defaultCollapseState===b.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const l of r.values())te(l,(e=>this.nodes.delete(e.element)));for(const l of c)this.nodes.set(l.element,l);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&1===c.length&&0===a.length&&(c[0].forceExpanded=!0,a.push(c[0])),a}render(e,t,i){const s=e.children.map((e=>this.asTreeElement(e,t))),n=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,s,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return 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?S.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.disposables.dispose(),this.tree.dispose()}}class se{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 se(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 ne{constructor(e,t,i,s){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderCompressedElements(e,t,i,s){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeCompressedElements(e,t,i,s){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class re extends ie{constructor(e,t,i,s,n,r,o={}){super(e,t,i,n,r,o),this.compressionDelegate=s,this.compressibleNodeMapper=new b.y2((e=>new se(e))),this.filter=o.filter}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new ne(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(n)||{};return new H(e,t,r,o,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const s=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(s(i.element))}return t},r=n(this.tree.getSelection()),o=n(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let c=!1;const l=this.getFocus();let h=!1;const d=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=s(t.elements[i].element),n=t.elements[t.elements.length-1].element;r.has(e)&&-1===a.indexOf(n)&&(a.push(n),c=!0),o.has(e)&&-1===l.indexOf(n)&&(l.push(n),h=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),c&&this.setSelection(a),h&&this.setFocus(l)}processChildren(e){return this.filter&&(e=S.f.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(s=t)?s?1:0:(0,E.iZ)(s)?(0,E.Mn)(s.visibility):(0,E.Mn)(s);var s;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class oe extends v.DO{constructor(e,t,i,s,n,r={}){super(e,t,i,s,r),this.user=e,this.dataSource=n,this.identityProvider=r.identityProvider}createModel(e,t,i){return new y(e,t,i)}}var ae=i(78209),ce=i(84001),le=i(1646),he=i(32848),de=i(28290),ue=i(47508),ge=i(63591),pe=i(98031),me=i(46359),fe=i(19070),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=(0,ge.u1)("listService");class Ee{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new c.hb((0,s.li)(),"").style(fe.IN)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,s.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>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()}}const be=new he.N1("listScrollAtBoundary","none"),Se=(he.M$.or(be.isEqualTo("top"),be.isEqualTo("both")),he.M$.or(be.isEqualTo("bottom"),be.isEqualTo("both")),new he.N1("listFocus",!0)),ye=new he.N1("treestickyScrollFocused",!1),we=new he.N1("listSupportsMultiselect",!0),Re=he.M$.and(Se,he.M$.not(de.aV),ye.negate()),Le=new he.N1("listHasSelectionOrFocus",!1),Te=new he.N1("listDoubleSelection",!1),xe=new he.N1("listMultiSelection",!1),ke=new he.N1("listSelectionNavigation",!1),Ae=new he.N1("listSupportsFind",!0),Ne=new he.N1("treeElementCanCollapse",!1),Ie=new he.N1("treeElementHasParent",!1),Oe=new he.N1("treeElementCanExpand",!1),De=new he.N1("treeElementHasChild",!1),Me=new he.N1("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Ue(e,t){const i=e.createScoped(t.getHTMLElement());return Se.bindTo(i),i}function He(e,t){const i=be.bindTo(e),s=()=>{const e=0===t.scrollTop,s=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&s?i.set("both"):e?i.set("top"):s?i.set("bottom"):i.set("none")};return s(),t.onDidScroll(s)}const Be="workbench.list.multiSelectModifier",We="workbench.list.openMode",Ve="workbench.list.horizontalScrolling",ze="workbench.list.defaultFindMode",Ge="workbench.list.typeNavigationMode",je="workbench.list.keyboardNavigation",Ke="workbench.list.scrollByPage",Ye="workbench.list.defaultFindMatchType",qe="workbench.tree.indent",$e="workbench.tree.renderIndentGuides",Qe="workbench.list.smoothScrolling",Xe="workbench.list.mouseWheelScrollSensitivity",Ze="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(Be)}class st extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,c.tX)(e)}isSelectionRangeChangeEvent(e){return(0,c.mh)(e)}}function nt(e,t){const i=e.get(ce.pG),s=e.get(pe.b),n=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(i.getValue(Qe)),mouseWheelScrollSensitivity:i.getValue(Xe),fastScrollSensitivity:i.getValue(Ze),multipleSelectionController:t.multipleSelectionController??n.add(new st(i)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(i.getValue(Ke))},n]}let rt=class extends c.B8{constructor(e,t,i,s,n,r,o,a,c){const l="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(a.getValue(Ve)),[h,d]=c.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...h,horizontalScrolling:l}),this.disposables.add(d),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=n.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const 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((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(a.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(a.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=a.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:a,...n}),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?(0,fe.t8)(e):fe.IN)}};rt=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],rt);let ot=class extends d{constructor(e,t,i,s,n,r,o,c,l){const h="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this.widget)),this.horizontalScrolling=n.horizontalScrolling,this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new lt(this,{configurationService:c,...n}),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?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};ot=_e([ve(5,he.fN),ve(6,Ce),ve(7,ce.pG),ve(8,ge._Y)],ot);let at=class extends _{constructor(e,t,i,s,n,r,o,a,c,l){const h="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(c.getValue(Ve)),[d,u]=l.invokeFunction(nt,r);super(e,t,i,s,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Ue(o,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const 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((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(c.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(c.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(c.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=c.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=c.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:c,...r}),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?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.fN),ve(7,Ce),ve(8,ce.pG),ve(9,ge._Y)],at);class ct extends a.jG{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new o.vl),this.onDidOpen=this._onDidOpen.event,this._register(o.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,s.kx)(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?.openOnSingleClick&&t?.configurationService?(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We),this._register(t?.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We))})))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,s="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,s,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,s,t)}onMouseDblClick(e,t){if(!t)return;const 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;const s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,s,t)}_open(e,t,i,s,n){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:s,element:e,browserEvent:n})}}class lt extends ct{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends ct{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const s=e.softDispatch(i,i.target);return 1===s.kind?(t=!0,!1):(t=!1,0===s.kind)}}let gt=class extends M{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],gt);let pt=class extends H{constructor(e,t,i,s,n,r,o,a,c){const{options:l,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(Et,n);super(e,t,i,s,l),this.disposables.add(d),this.internals=new bt(this,n,h,n.overrideStyles,o,a,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,ce.pG)],pt);let mt=class extends oe{constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,s,n,r,o,a,c,l){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(Et,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new bt(this,r,d,r.overrideStyles,a,c,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,ce.pG)],ft);let _t=class extends re{constructor(e,t,i,s,n,r,o,a,c,l,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Et,o);super(e,t,i,s,n,r,d),this.disposables.add(g),this.internals=new bt(this,o,u,o.overrideStyles,c,l,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(ze);if("highlight"===t)return v.vD.Highlight;if("filter"===t)return v.vD.Filter;const i=e.getValue(je);return"simple"===i||"highlight"===i?v.vD.Highlight:"filter"===i?v.vD.Filter:void 0}function Ct(e){const t=e.getValue(Ye);return"fuzzy"===t?v.RD.Fuzzy:"contiguous"===t?v.RD.Contiguous:void 0}function Et(e,t){const i=e.get(ce.pG),s=e.get(ue.l),n=e.get(he.fN),r=e.get(ge._Y),o=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(Ve)),[a,l]=r.invokeFunction(nt,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue($e);return{getTypeNavigationMode:()=>{const e=n.getContextKeyValue(Pe);if("automatic"===e)return c._C.Automatic;if("trigger"===e)return c._C.Trigger;if(!1===n.getContextKeyValue(Fe))return c._C.Trigger;const t=i.getValue(Ge);return"automatic"===t?c._C.Automatic:"trigger"===t?c._C.Trigger:void 0},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"===typeof i.getValue(qe)?i.getValue(qe):void 0,renderIndentGuides:d,smoothScrolling:Boolean(i.getValue(Qe)),defaultFindMode:vt(i),defaultFindMatchType:Ct(i),horizontalScrolling:o,scrollByPage:Boolean(i.getValue(Ke)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??"doubleClick"===i.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.Dk,enableStickyScroll:Boolean(i.getValue(et)),stickyScrollMaxItemCount:Number(i.getValue(tt))}}}_t=_e([ve(7,ge._Y),ve(8,he.fN),ve(9,Ce),ve(10,ce.pG)],_t);let bt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,s,n,r,o){this.tree=e,this.disposables=[],this.contextKeyService=Ue(n,e),this.disposables.push(He(this.contextKeyService,e)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Ae.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.hasDoubleSelection=Te.bindTo(this.contextKeyService),this.hasMultiSelection=xe.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ne.bindTo(this.contextKeyService),this.treeElementHasParent=Ie.bindTo(this.contextKeyService),this.treeElementCanExpand=Oe.bindTo(this.contextKeyService),this.treeElementHasChild=De.bindTo(this.contextKeyService),this.treeFindOpen=Me.bindTo(this.contextKeyService),this.treeStickyScrollFocused=ye.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(o),this.updateStyleOverrides(s);const a=()=>{const t=e.getFocus()[0];if(!t)return;const 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))},c=new Set;c.add(Pe),c.add(Fe),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const 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((()=>{const 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))),o.onDidChangeConfiguration((s=>{let n={};if(s.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(o)),s.affectsConfiguration(qe)){const e=o.getValue(qe);n={...n,indent:e}}if(s.affectsConfiguration($e)&&void 0===t.renderIndentGuides){const e=o.getValue($e);n={...n,renderIndentGuides:e}}if(s.affectsConfiguration(Qe)){const e=Boolean(o.getValue(Qe));n={...n,smoothScrolling:e}}if(s.affectsConfiguration(ze)||s.affectsConfiguration(je)){const e=vt(o);n={...n,defaultFindMode:e}}if(s.affectsConfiguration(Ge)||s.affectsConfiguration(je)){const e=i();n={...n,typeNavigationMode:e}}if(s.affectsConfiguration(Ye)){const e=Ct(o);n={...n,defaultFindMatchType:e}}if(s.affectsConfiguration(Ve)&&void 0===t.horizontalScrolling){const e=Boolean(o.getValue(Ve));n={...n,horizontalScrolling:e}}if(s.affectsConfiguration(Ke)){const e=Boolean(o.getValue(Ke));n={...n,scrollByPage:e}}if(s.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(n={...n,expandOnlyOnTwistieClick:"doubleClick"===o.getValue(Je)}),s.affectsConfiguration(et)){const e=o.getValue(et);n={...n,enableStickyScroll:e}}if(s.affectsConfiguration(tt)){const e=Math.max(1,o.getValue(tt));n={...n,stickyScrollMaxItemCount:e}}if(s.affectsConfiguration(Xe)){const e=o.getValue(Xe);n={...n,mouseWheelScrollSensitivity:e}}if(s.affectsConfiguration(Ze)){const e=o.getValue(Ze);n={...n,fastScrollSensitivity:e}}Object.keys(n).length>0&&e.updateOptions(n)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(c)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new dt(e,{configurationService:o,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};bt=_e([ve(4,he.fN),ve(5,Ce),ve(6,ce.pG)],bt);me.O.as(le.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Be]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"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.")},[We]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"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.")},[Ve]:{type:"boolean",default:!1,description:(0,ae.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ke]:{type:"boolean",default:!1,description:(0,ae.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[qe]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.kg)("tree indent setting","Controls tree indentation in pixels.")},[$e]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Qe]:{type:"boolean",default:!1,description:(0,ae.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Xe]:{type:"number",default:1,markdownDescription:(0,ae.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Ze]:{type:"number",default:5,markdownDescription:(0,ae.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[ze]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[je]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Ye]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)("expand mode","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.")},[et]:{type:"boolean",default:!0,description:(0,ae.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[Ge]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.kg)("typeNavigationMode2","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.")}}})},36677:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});var s=i(83069);class n{constructor(e,t,i,s){e>i||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return n.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return n.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return n.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return n.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return n.plusRange(this,e)}static plusRange(e,t){let i,s,r,o;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,s=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,s=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,s=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new n(i,s,r,o)}intersectRanges(e){return n.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,r=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,c=t.startColumn,l=t.endLineNumber,h=t.endColumn;return i<a?(i=a,s=c):i===a&&(s=Math.max(s,c)),r>l?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&s>o?null:new n(i,s,r,o)}equalsRange(e){return n.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return n.getEndPosition(this)}static getEndPosition(e){return new s.y(e.endLineNumber,e.endColumn)}getStartPosition(){return n.getStartPosition(this)}static getStartPosition(e){return new s.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new n(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new n(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return n.collapseToStart(this)}static collapseToStart(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return n.collapseToEnd(this)}static collapseToEnd(e){return new n(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new n(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new n(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,s=0|t.startLineNumber;if(i===s){const i=0|e.startColumn,s=0|t.startColumn;if(i===s){const i=0|e.endLineNumber,s=0|t.endLineNumber;if(i===s){return(0|e.endColumn)-(0|t.endColumn)}return i-s}return i-s}return i-s}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},36723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DraggedTreeItemsIdentifier:()=>n,TreeViewsDnDService:()=>s});class s{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class n{constructor(e){this.identifier=e}}},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>l,ih:()=>d,rc:()=>o,wv:()=>c});var s=i(41234),n=i(5662),r=i(78209);class o extends n.jG{constructor(e,t="",i="",n=!0,r){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=r}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 a extends n.jG{constructor(){super(...arguments),this._onWillRun=this._register(new s.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new s.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(s){i=s}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class c{constructor(){this.id=c.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new c,...i]:i);return t}static{this.ID="vs.actions.separator"}async run(){}}class l{get actions(){return this._actions}constructor(e,t,i,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=s,this._actions=i}async run(){}}class h extends o{static{this.ID="vs.actions.empty"}constructor(){super(h.ID,r.kg("submenu.empty","(empty)"),void 0,!1)}}function d(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},36998:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var s=i(7085),n=i(36677),r=i(55190);class o{static _handleEolEdits(e,t){let i;const s=[];for(const n of t)"number"===typeof n.eol&&(i=n.eol),n.range&&"string"===typeof n.text&&s.push(n);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),s=i.validateRange(t.range);return i.getFullModelRange().equalsRange(s)}static execute(e,t,i){i&&e.pushUndoStop();const a=r.D.capture(e),c=o._handleEolEdits(e,t);1===c.length&&o._isFullModelReplaceEdit(e,c[0])?e.executeEdits("formatEditsCommand",c.map((e=>s.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",c.map((e=>s.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},36999:(e,t,i)=>{"use strict";i.d(t,{Yh:()=>k,QM:()=>w});var s=i(78209),n=i(60413),r=i(631),o=i(11007),a=i(31450),c=i(80301),l=i(32799),h=i(83069),d=i(36677);class u{static columnSelect(e,t,i,s,n,r){const o=Math.abs(n-i)+1,a=i>n,c=s>r,u=s<r,g=[];for(let p=0;p<o;p++){const n=i+(a?-p:p),o=e.columnFromVisibleColumn(t,n,s),m=e.columnFromVisibleColumn(t,n,r),f=e.visibleColumnFromColumn(t,new h.y(n,o)),_=e.visibleColumnFromColumn(t,new h.y(n,m));if(u){if(f>r)continue;if(_<s)continue}if(c){if(_>s)continue;if(f<r)continue}g.push(new l.mG(new d.Q(n,o,n,o),0,0,new h.y(n,m),0))}if(0===g.length)for(let p=0;p<o;p++){const e=i+(a?-p:p),s=t.getLineMaxColumn(e);g.push(new l.mG(new d.Q(e,s,e,s),0,0,new h.y(e,s),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:s,toLineNumber:n,toVisualColumn:r}}static columnSelectLeft(e,t,i){let s=i.toViewVisualColumn;return s>0&&s--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,s)}static columnSelectRight(e,t,i){let s=0;const n=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=n;a<=r;a++){const i=t.getLineMaxColumn(a),n=e.visibleColumnFromColumn(t,new h.y(a,i));s=Math.max(s,n)}let o=i.toViewVisualColumn;return o<s&&o++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)}static columnSelectUp(e,t,i,s){const n=s?e.pageSize:1,r=Math.max(1,i.toViewLineNumber-n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}static columnSelectDown(e,t,i,s){const n=s?e.pageSize:1,r=Math.min(t.getLineCount(),i.toViewLineNumber+n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}}var g=i(1226),p=i(28291),m=i(49265),f=i(60002),_=i(32848),v=i(59261),C=i(8597),E=i(26685);class b extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i||{})}}var S,y,w;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!!r.Kg(t.to)&&(!(!r.b0(t.by)&&!r.Kg(t.by))&&(!(!r.b0(t.value)&&!r.Et(t.value))&&!(!r.b0(t.revealCursor)&&!r.Lm(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,s;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Page:s=3;break;case e.RawUnit.HalfPage:s=4;break;case e.RawUnit.Editor:s=5;break;case e.RawUnit.Column:s=6;break;default:s=2}return{direction:i,unit:s,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(S||(S={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!(!r.Et(t.lineNumber)&&!r.Kg(t.lineNumber))&&!(!r.b0(t.at)&&!r.Kg(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(y||(y={}));class R{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,C.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(c.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const s=this.runEditorCommand(e,t,i);return s||!0}}!function(e){class t extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends b{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>l.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,s){if("undefined"===typeof s.position||"undefined"===typeof s.viewPosition||"undefined"===typeof s.mouseColumn)return null;const n=e.model.validatePosition(s.position),r=e.coordinatesConverter.validateViewPosition(new h.y(s.viewPosition.lineNumber,s.viewPosition.column),n),o=s.doColumnSelect?i.fromViewLineNumber:r.lineNumber,a=s.doColumnSelect?i.fromViewVisualColumn:s.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,o,a,r.lineNumber,s.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectRight(e.cursorConfig,e,i)}});class r extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3595,linux:{primary:0}}}));class c extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new c({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new c({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends b{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.S.metadata})}runCoreEditorCommand(e,t){const i=p.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const s=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.c.simpleMove(e,t,i.direction,s,n,i.unit);case 11:case 13:case 12:case 14:return p.c.viewportMove(e,t,i.direction,s,n);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.E_)(new g);class m extends b{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends b{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const s=e.getCursorStates();if(s.length>1){const n=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,o=s.length;i<o;i++){const o=s[i];if((!n||o.modelState.selection.containsPosition(n))&&(!r||o.viewState.selection.containsPosition(r)))return s.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,s)}}s.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}),e.LastCursorMoveToSelect=(0,a.E_)(new class extends b{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.moveTo(e,s[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class _ extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.E_)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.E_)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i],n=s.modelState.position.lineNumber;t[i]=l.MF.fromModelState(s.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=(0,a.E_)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.E_)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.E_)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.E_)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class E extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],r=n.modelState.position.lineNumber,o=e.model.getLineMaxColumn(r);i[s]=l.MF.fromModelState(n.modelState.move(this._inSelectionMode,r,o,0))}return i}}e.CursorLineEnd=(0,a.E_)(new E({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.E_)(new E({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class w extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.E_)(new w({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.E_)(new w({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3086,mac:{primary:3088}}}));class L extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.E_)(new L({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.E_)(new L({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class T extends b{constructor(){super({id:"editorScroll",precondition:void 0,metadata:S.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=S.parse(t);if(!i)return;const s=this.determineScrollMethod(i);s&&s(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const s=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const n=e.getCompletelyVisibleViewRangeAtScrollTop(s);e.setCursorStates(t,3,[p.c.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:s},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),s=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),n=e.coordinatesConverter.convertViewRangeToModelRange(s);let r;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new h.y(r,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const s=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+s*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const s=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:s},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=T,e.EditorScroll=(0,a.E_)(new T),e.ScrollLineUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.E_)(new class extends b{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.E_)(new class extends b{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.E_)(new class extends b{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Left,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.E_)(new class extends b{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Right,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class x extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.E_)(new x({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.E_)(new x({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.E_)(new class extends b{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0),r=s[i];n[i]=p.c.word(e,r,r.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class k extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.E_)(new k({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.E_)(new k({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class A extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.line(e,s[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=(0,a.E_)(new A({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.E_)(new A({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.E_)(new class extends b{constructor(){super({id:"cancelSelection",precondition:f.R.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.E_)(new class extends b{constructor(){super({id:"removeSecondaryCursors",precondition:f.R.hasMultipleSelections,kbOpts:{weight:1,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,o.h5)(s.kg("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.E_)(new class extends b{constructor(){super({id:"revealLine",precondition:void 0,metadata:y.metadata})}runCoreEditorCommand(e,t){const i=t,s=i.lineNumber||0;let n="number"===typeof s?s+1:parseInt(s)+1;n<1&&(n=1);const r=e.model.getLineCount();n>r&&(n=r);const o=new d.Q(n,1,n,e.model.getLineMaxColumn(n));let a=0;if(i.at)switch(i.at){case y.RawAtArgument.Top:a=3;break;case y.RawAtArgument.Center:a=1;break;case y.RawAtArgument.Bottom:a=4}const c=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,c,a,0)}}),e.SelectAll=new class extends R{constructor(){super(a.tc)}runDOMCommand(e){n.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends b{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[l.MF.fromModelSelection(t.selection)]))}})}(w||(w={}));const L=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function T(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function x(e){return e.register(),e}var k;T(w.CursorColumnSelectLeft.id,1039),T(w.CursorColumnSelectRight.id,1041),T(w.CursorColumnSelectUp.id,1040),T(w.CursorColumnSelectPageUp.id,1035),T(w.CursorColumnSelectDown.id,1042),T(w.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditingCommand(t,s,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,E.AO.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends R{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().undo()}},e.Redo=new class extends R{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().redo()}}}(k||(k={}));class A extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(c.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function N(e,t){x(new A("default:"+e,e)),x(new A(e,e,t))}N("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N("replacePreviousChar"),N("compositionType"),N("compositionStart"),N("compositionEnd"),N("paste"),N("cut")},37035:(e,t,i)=>{e.exports=i(96409)},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>c,Q_:()=>d,VR:()=>o,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var s=i(78209),n=i(74027),r=(i(4853),i(79400));const o=(0,i(63591).u1)("contextService");function a(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.uri)}function c(e){const t=e;return"string"===typeof t?.id&&!a(e)&&!function(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.configPath)}(e)}const l={id:"ext-dev"},h={id:"empty-window"};function d(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,n.P8)(e)}:t?l:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{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}}}const g="code-workspace",p=((0,s.kg)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},37301:(e,t,i)=>{e.exports=function(){const e=i(94297),t=[{name:"microsecond",divisor:1e6},{name:"second",divisor:60},{name:"minute",divisor:60},{name:"hour",divisor:24},{name:"day"}];function s(i){const s=Number(i.$value)<0?"-":"";let n=Math.abs(i.$value);if(0===n)return"0";return s+t.map((function(e){let t=n;return e.divisor?(t=n%e.divisor,n=Math.floor(n/e.divisor)):(t=n,n=0),[t,e.name]})).reverse().filter((function(e){return e[0]>0})).map((function(t){const i=t[0],s=i>1?"s":"";return i+e.NON_BREAKING_WHITESPACE+t[1]+s})).join(e.WHITESPACE)}return s.isScalar=!0,s}},37403:(e,t,i)=>{!function(){"use strict";const t=i(94297),s=i(1019),n=i(34132),r=i(34420),o="json";function a(e){return String(e.$value)}const c={};function l(e,i,s){const n=e.$type?.startsWith("yql.pg")?"yql.pg":e.$type,r=Object.prototype.hasOwnProperty.call(c,n)?c[n]:a,o=r(e,i,s),l=r.isScalar?t.wrapScalar(e,i,o):t.wrapComplex(e,i,o);return t.wrapOptional(e,i,l)}function h(e,t,i){return l({$type:"string",$special_key:!0,$value:e,$decoded_value:e},t,i)}function d(e,i,s){let n="";const r=e.$attributes,a=r.length;return t.drawFullView(a,i)?(n+=t.getAttributesStart(i)+t.getIndent(i,s),n+=p(r,i,s),n+=t.getIndent(i,s-1)+t.getAttributesEnd(i)+t.getIndent(i,s-1)):t.drawCompactView(a,i)?(n+=t.getAttributesStart(i),n+=p(r,i,s-1),n+=t.getAttributesEnd(i)+(i.format===o?t.getIndent(i,s-1):"")):n+=t.getAttributesStart(i)+t.getAttributesEnd(i),n}function u(e){return Object.prototype.hasOwnProperty.call(e,"$attributes")&&e.$attributes.length>0}const g=function(e,i,s){s=s||1;let n="";return i.format===o?u(e)?(n+=t.OBJECT_START+t.getIndent(i,s),n+=h("$attributes",i,s)+t.getKeyValueSeparator(i),n+=d(e,i,s+1),n+=h("$value",i,s)+t.getKeyValueSeparator(i),n+=l(e,i,s+1),n+=t.getIndent(i,s-1)+t.OBJECT_END):n+=l(e,i,s):"yson"===i.format&&(u(e)&&(n+=d(e,i,s)),n+=l(e,i,s)),n},p=i(83823)(g);function m(e,i,s){return"undefined"===typeof e?t.EMPTY_STRING:(s=s||function(e){return e},(i=i||{}).format=t.parseSetting(i,"format",o),i.decodeUTF8=t.parseSetting(i,"decodeUTF8",!0),i.showDecoded=t.parseSetting(i,"showDecoded",!0),i.asHTML=t.parseSetting(i,"asHTML",!0),i.indent=t.parseSetting(i,"indent",4),i.break=t.parseSetting(i,"break",!0),i.compact=t.parseSetting(i,"compact",!1),i.binaryAsHex=t.parseSetting(i,"binaryAsHex",!0),i.escapeWhitespace=t.parseSetting(i,"escapeWhitespace",!0),i.highlightControlCharacter=t.parseSetting(i,"highlightControlCharacter",!1),i.escapeYQLStrings=t.parseSetting(i,"escapeYQLStrings",!0),i.nonBreakingIndent=t.parseSetting(i,"nonBreakingIndent",!0),i.treatValAsData=t.parseSetting(i,"treatValAsData",!1),i.validateSrcUrl=t.parseSetting(i,"validateSrcUrl",(()=>!1)),i.normalizeUrl=t.parseSetting(i,"normalizeUrl",(e=>encodeURI(e))),g(s(e,i),i))}c.list=i(34529)(g),c.map=i(8603)(g),c.string=i(88608)(g),c.number=i(94484)(g),c.int64=i(64066)(g),c.uint64=i(2539)(g),c.double=i(66668)(g),c.boolean=i(50629)(g),c.null=i(17184)(g),c.tagged=i(57233)(g),c["yql.list"]=i(56976)(g),c["yql.stream"]=i(89896)(g),c["yql.tuple"]=i(21152)(g),c["yql.struct"]=i(23157)(g),c["yql.dict"]=i(9208)(g),c["yql.string"]=i(96409)(g),c["yql.utf8"]=i(37035)(g),c["yql.int64"]=i(38785)(g),c["yql.int8"]=c["yql.int64"],c["yql.int16"]=c["yql.int64"],c["yql.int32"]=c["yql.int64"],c["yql.uint64"]=i(10602)(g),c["yql.uint8"]=c["yql.uint64"],c["yql.uint16"]=c["yql.uint64"],c["yql.uint32"]=c["yql.uint64"],c["yql.double"]=i(21377)(g),c["yql.float"]=c["yql.double"],c["yql.decimal"]=i(46133)(g),c["yql.bool"]=i(43932)(g),c["yql.date"]=i(84316)(g),c["yql.date32"]=c["yql.date"],c["yql.datetime"]=i(20897)(g),c["yql.datetime64"]=c["yql.datetime"],c["yql.timestamp"]=i(75162)(g),c["yql.timestamp64"]=c["yql.timestamp"],c["yql.tzdate"]=i(29818)(g),c["yql.tzdate32"]=i(29818)(g),c["yql.tzdatetime"]=i(93599)(g),c["yql.tzdatetime64"]=i(93599)(g),c["yql.tztimestamp"]=i(79928)(g),c["yql.tztimestamp64"]=i(79928)(g),c["yql.interval"]=i(37301)(g),c["yql.interval64"]=c["yql.interval"],c["yql.uuid"]=i(25783)(g),c["yql.null"]=i(80449)(g),c["yql.variant"]=i(10411)(g),c["yql.enum"]=i(36317)(g),c["yql.set"]=i(35762)(g),c["yql.json"]=i(92778)(g),c["yql.yson"]=i(41893)(g),c["yql.tagged"]=i(74688)(g),c["yql.pg"]=i(14853)(g),e.exports={format:m,formatFromYSON:function(e,t){return m(e,t,s)},formatFromYQL:function(e,t){return m(e,t,n)},formatRaw:function(e,t){return(t=t||{}).format="json",t.showDecoded=!1,t.compact=!1,t.escapeWhitespace=!0,m(e,t,r)},formatAttributes:d,formatKey:h,formatValue:l}}()},37472:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>d,iZ:()=>h});var s=i(84565),n=i(25890),r=i(90766),o=i(44759),a=i(83993),c=i(41234),l=i(42522);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function d(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i,s={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new c.at,this._onDidChangeCollapseState=new c.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new c.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new c.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new r.ve(o.h),this.collapseByDefault="undefined"!==typeof s.collapseByDefault&&s.collapseByDefault,this.allowNonCollapsibleParents=s.allowNonCollapsibleParents??!1,this.filter=s.filter,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=l.f.empty(),n={}){if(0===e.length)throw new s.jh(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,s=l.f.empty(),n,r=n.diffDepth??0){const{parentNode:o}=this.getParentNodeWithListIndex(t);if(!o.lastDiffIds)return this.spliceSimple(t,i,s,n);const c=[...s],h=t[t.length-1],d=new a.uP({getElements:()=>o.lastDiffIds},{getElements:()=>[...o.children.slice(0,h),...c,...o.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return o.lastDiffIds=void 0,this.spliceSimple(t,i,c,n);const u=t.slice(0,-1),g=(t,i,s)=>{if(r>0)for(let o=0;o<s;o++)t--,i--,this.spliceSmart(e,[...u,t,0],Number.MAX_SAFE_INTEGER,c[i].children,n,r-1)};let p=Math.min(o.children.length,h+i),m=c.length;for(const a of d.changes.sort(((e,t)=>t.originalStart-e.originalStart)))g(p,m,p-(a.originalStart+a.originalLength)),p=a.originalStart,m=a.modifiedStart-h,this.spliceSimple([...u,p],a.originalLength,l.f.slice(c,m,m+a.modifiedLength),n);g(p,m,p)}spliceSimple(e,t,i=l.f.empty(),{onDidCreateNode:s,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:a,listIndex:c,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),u=[],g=l.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,s))),p=e[e.length-1];let m=0;for(let n=p;n>=0&&n<a.children.length;n--){const e=a.children[n];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const n of g)f.push(n),v+=n.renderNodeCount,n.visible&&(n.visibleChildIndex=m+_++);const C=(0,n.V4)(a.children,p,t,f);o?a.lastDiffIds?(0,n.V4)(a.lastDiffIds,p,t,f.map((e=>o.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>o.getId(e.element).toString())):a.lastDiffIds=void 0;let E=0;for(const n of C)n.visible&&E++;if(0!==E)for(let n=p+f.length;n<a.children.length;n++){const e=a.children[n];e.visible&&(e.visibleChildIndex-=E)}if(a.visibleChildrenCount+=_-E,h&&d){const e=C.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(c,e,u)}if(C.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};C.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:C});let b=a;for(;b;){if(2===b.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}b=b.parent}}rerender(e){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:s}=this.getTreeNodeWithListIndex(e);return i&&s?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const s={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const s=this.getTreeNode(e);"undefined"===typeof t&&(t=!s.collapsed);const n={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}_setCollapseState(e,t){const{node:i,listIndex:s,revealed:n}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,s,n,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let s=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(s>-1){s=-1;break}s=e}}s>-1&&this._setCollapseState([...e,s],t)}return r}_setListNodeCollapseState(e,t,i,s){const n=this._setNodeCollapseState(e,s,!1);if(!i||!e.visible||!n)return n;const r=e.renderNodeCount,o=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,o.slice(1)),n}_setNodeCollapseState(e,t,i){let s;if(e===this.root?s=!1:(u(t)?(s=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(s=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):s=!1,s&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const n of e.children)s=this._setNodeCollapseState(n,t,!0)||s;return s}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(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,s,n,r){const o={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(o,i);o.visibility=a,s&&n.push(o);const c=e.children||l.f.empty(),h=s&&0!==a&&!o.collapsed;let d=0,u=1;for(const l of c){const e=this.createTreeNode(l,o,a,h,n,r);o.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return this.allowNonCollapsibleParents||(o.collapsible=o.collapsible||o.children.length>0),o.visibleChildrenCount=d,o.visible=2===a?d>0:1===a,o.visible?o.collapsed||(o.renderNodeCount=u):(o.renderNodeCount=0,s&&n.pop()),r?.(o),o}updateNodeAfterCollapseChange(e){const 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(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,s=!0){let n;if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let o=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)o=this._updateNodeAfterFilterChange(r,n,i,s&&!e.collapsed)||o,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?o:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,s&&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){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,d(i.visibility)):(e.filterData=void 0,d(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...s]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(s,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new s.jh(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};const{parentNode:t,listIndex:i,revealed:n,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");const a=t.children[o];return{node:a,listIndex:i,revealed:n,visible:r&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,r=!0){const[o,...a]=e;if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");for(let s=0;s<o;s++)i+=t.children[s].renderNodeCount;return n=n&&!t.collapsed,r=r&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:n,visible:r}:this.getParentNodeWithListIndex(a,t.children[o],i+1,n,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let 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,n.bS)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>l});var s=i(8597),n=i(48196),r=i(42904),o=i(20370),a=i(5662),c=i(10146);class l extends a.jG{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=t?.supportIcons??!1,this.domNode=s.BC(e,s.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){e||(e=""),s&&(e=l.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&c.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t<i.start){const s=this.text.substring(t,i.start);this.supportIcons?e.push(...(0,o.n)(s)):e.push(s),t=i.start}const n=this.text.substring(t,i.end),r=s.$("span.highlight",void 0,...this.supportIcons?(0,o.n)(n):[n]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){const i=this.text.substring(t);this.supportIcons?e.push(...(0,o.n)(i)):e.push(i)}if(s.Ln(this.domNode,...e),this.options?.hoverDelegate?.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=this.options?.hoverDelegate??(0,r.nZ)("mouse");this.customHover=this._register((0,n.i)().setupManagedHover(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,s=0;return e.replace(/\r\n|\r|\n/g,((e,n)=>{s="\r\n"===e?-1:0,n+=i;for(const i of t)i.end<=n||(i.start>=n&&(i.start+=s),i.end>=n&&(i.end+=s));return i+=s,"\u23ce"}))}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>C,dO:()=>m,i_:()=>p,nz:()=>l,wt:()=>g});var s=i(8597),n=i(34072),r=i(47358),o=i(90766),a=i(5662),c=i(66261);class l{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new l(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class d{constructor(e,t,i,s){this.x=e,this.y=t,this.width=i,this.height=s,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=s.BK(e);return new d(t.left,t.top,t.width,t.height)}function p(e,t,i){const s=t.width/e.offsetWidth,n=t.height/e.offsetHeight,r=(i.x-t.x)/s,o=(i.y-t.y)/n;return new u(r,o)}class m extends r.P{constructor(e,t,i){super(s.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new l(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return s.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return s.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return s.ko(e,s.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return s.ko(e,s.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return s.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return s.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return s.ko(e,s.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return s.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new n._),this._keydownListener=null}startMonitoring(e,t,i,n,r){this._keydownListener=s.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{n(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),r(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class C{static{this._idPool=0}constructor(e){this._editor=e,this._instanceId=++C._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new o.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new E(t,`dyn-rule-${this._instanceId}-${n}`,s.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}class E{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=s.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const s in t){const e=t[s];let n;n="object"===typeof e?(0,c.GuP)(e.id):e;i+=`\n\t${b(s)}: ${n};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function b(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>l,pS:()=>g,pz:()=>_,sA:()=>d});var s=i(26690),n=i(91508),r=i(25689);const o="$(",a=new RegExp(`\\$\\(${r.L.iconNameExpression}(?:${r.L.iconModifierExpression})?\\)`,"g"),c=new RegExp(`(\\\\)?${a.source}`,"g");function l(e){return e.replace(c,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function d(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(o)?e:e.replace(u,((e,t,i,s)=>i?e:t||s||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${r.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let s=0;for(;;){const n=m.lastIndex,r=m.exec(e),o=e.substring(n,r?.index);if(o.length>0){t+=o;for(let e=0;e<o.length;e++)i.push(s)}if(!r)break;s+=r[0].length}return{text:t,iconOffsets:i}}function _(e,t,i=!1){const{text:r,iconOffsets:o}=t;if(!o||0===o.length)return(0,s.yr)(e,r,i);const a=(0,n.NB)(r," "),c=r.length-a.length,l=(0,s.yr)(e,a,i);if(l)for(const s of l){const e=o[s.start+c]+c;s.start+=e,s.end+=e}return l}},37927:(e,t,i)=>{"use strict";i.d(t,{gi:()=>d});var s=i(41234),n=i(5662),r=i(98067);function o(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=o(e.event,t.triggerModifier),this.hasSideBySideModifier=o(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class c{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=o(e,t.triggerModifier)}}class l{constructor(e,t,i,s){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=s}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?r.zx?new l(57,"metaKey",6,"altKey"):new l(5,"ctrlKey",6,"altKey"):r.zx?new l(6,"altKey",57,"metaKey"):new l(6,"altKey",5,"ctrlKey")}class d extends n.jG{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new s.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new s.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new s.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(e=>e.target.position?e.target.position.lineNumber:0),this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new c(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new c(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},37954:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(47692).then(i.bind(i,47692))})},38280:(e,t,i)=>{"use strict";i.d(t,{O:()=>P});var s=i(25890),n=i(5662),r=i(91508),o=i(7085),a=i(36677),c=i(75326),l=i(17469),h=i(87289),d=i(67841),u=i(37227),g=i(29319),p=i(79326),m=i(98067);function f(e,t=m.uF){return(0,p.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(74027),v=i(89403),C=i(58255),E=i(78209),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class y{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class w{constructor(e,t,i,s){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=s}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),s=(0,r.UU)(i,0,this._selection.startColumn-1);let n=s;e.snippet.walk((t=>t!==e&&(t instanceof g.EY&&(n=(0,r.UU)((0,r.uz)(t.value).pop())),!0)));const o=(0,r.Qp)(n,s);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${n.substr(o)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class R{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class L{constructor(e,t,i,s){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=s}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,r.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let T=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),s=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(s)return"LINE_COMMENT"===t?s.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?s.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&s.blockCommentEndToken||void 0}};T=b([S(2,l.JZ)],T);class x{constructor(){this._date=new Date}static{this.dayNames=[E.kg("Sunday","Sunday"),E.kg("Monday","Monday"),E.kg("Tuesday","Tuesday"),E.kg("Wednesday","Wednesday"),E.kg("Thursday","Thursday"),E.kg("Friday","Friday"),E.kg("Saturday","Saturday")]}static{this.dayNamesShort=[E.kg("SundayShort","Sun"),E.kg("MondayShort","Mon"),E.kg("TuesdayShort","Tue"),E.kg("WednesdayShort","Wed"),E.kg("ThursdayShort","Thu"),E.kg("FridayShort","Fri"),E.kg("SaturdayShort","Sat")]}static{this.monthNames=[E.kg("January","January"),E.kg("February","February"),E.kg("March","March"),E.kg("April","April"),E.kg("May","May"),E.kg("June","June"),E.kg("July","July"),E.kg("August","August"),E.kg("September","September"),E.kg("October","October"),E.kg("November","November"),E.kg("December","December")]}static{this.monthNamesShort=[E.kg("JanuaryShort","Jan"),E.kg("FebruaryShort","Feb"),E.kg("MarchShort","Mar"),E.kg("AprilShort","Apr"),E.kg("MayShort","May"),E.kg("JuneShort","Jun"),E.kg("JulyShort","Jul"),E.kg("AugustShort","Aug"),E.kg("SeptemberShort","Sep"),E.kg("OctoberShort","Oct"),E.kg("NovemberShort","Nov"),E.kg("DecemberShort","Dec")]}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return x.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return x.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return x.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return x.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),s=i<10?"0"+i:i,n=Math.abs(e)-60*i;return t+s+":"+(n<10?"0"+n:n)}}}class k{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.Q_)(this._workspaceService.getWorkspace());return(0,u.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.jB)(e))return _.P8(e.uri.path);let t=_.P8(e.configPath.path);return t.endsWith(u.kF)&&(t=t.substr(0,t.length-u.kF.length-1)),t}_resoveWorkspacePath(e){if((0,u.jB)(e))return f(e.uri.fsPath);const t=_.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class A{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,C.b)():void 0}}var N,I=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},O=function(e,t){return function(i,s){t(i,s,e)}};class D{static{this._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})}}constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,s.$z)(t.placeholders,g.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const s=this._snippet.offset(i),n=this._snippet.fullLen(i),r=a.Q.fromPositions(e.getPositionAt(this._offset+s),e.getPositionAt(this._offset+s+n)),o=i.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive,c=t.addDecoration(r,o);this._placeholderDecorations.set(i,c)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),s=this._editor.getModel().getDecorationRange(i),n=this._editor.getModel().getValueInRange(s),r=t.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<r.length;e++)r[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+r[e]);e.push(o.k.replace(s,r.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,s=[];for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const r=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(r);s.push(new c.L(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(n),e.changeDecorationOptions(r,n.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(n);for(const t of this._snippet.enclosingPlaceholders(n)){const s=this._placeholderDecorations.get(t);e.changeDecorationOptions(s,t.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive);return s}));return t?this.move(e):i??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const s of t){if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));const t=this._placeholderDecorations.get(s),n=this._editor.getModel().getDecorationRange(t);if(!n){e.delete(s.index);break}i.push(n)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!e?.choice)return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=e.shift();console.assert(-1!==n._offset),console.assert(!n._placeholderDecorations);const r=n._snippet.placeholderInfo.last.index;for(const e of n._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=s.index+(r+1)/this._nestingLevel:e.index=s.index+e.index/this._nestingLevel;this._snippet.replace(s,n._snippet.children);const o=this._placeholderDecorations.get(s);i.removeDecoration(o),this._placeholderDecorations.delete(s);for(const e of n._snippet.placeholders){const s=n._snippet.offset(e),r=n._snippet.fullLen(e),o=a.Q.fromPositions(t.getPositionAt(n._offset+s),t.getPositionAt(n._offset+s+r)),c=i.addDecoration(o,D._decor.inactive);this._placeholderDecorations.set(e,c)}}this._placeholderGroups=(0,s.$z)(this._snippet.placeholders,g.Or.compareByIndex)}))}}const M={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=N=class{static adjustWhitespace(e,t,i,s,n){const o=e.getLineContent(t.lineNumber),a=(0,r.UU)(o,0,t.column-1);let c;return s.walk((t=>{if(!(t instanceof g.EY)||t.parent instanceof g.GR)return!0;if(n&&!n.has(t))return!0;const r=t.value.split(/\r\n|\r|\n/);if(i){const i=s.offset(t);if(0===i)r[0]=e.normalizeIndentation(r[0]);else{c=c??s.toString();const t=c.charCodeAt(i-1);10!==t&&13!==t||(r[0]=e.normalizeIndentation(a+r[0]))}for(let t=1;t<r.length;t++)r[t]=e.normalizeIndentation(a+r[t])}const o=r.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new g.EY(o)]),c=void 0),!0})),a}static adjustSelection(e,t,i,s){if(0!==i||0!==s){const{positionLineNumber:n,positionColumn:r}=t,o=r-i,a=r+s,l=e.validateRange({startLineNumber:n,startColumn:o,endLineNumber:n,endColumn:a});t=c.L.createWithDirection(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,s,n,r,c,l,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.VR))),v=e.invokeWithinContext((e=>new R(e.get(d.L),f))),C=()=>c,E=f.getValueInRange(N.adjustSelection(f,e.getSelection(),i,0)),b=f.getValueInRange(N.adjustSelection(f,e.getSelection(),0,s)),S=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:d}of I){let c=N.adjustSelection(f,a,i,0),u=N.adjustSelection(f,a,0,s);E!==f.getValueInRange(c)&&(c=a),b!==f.getValueInRange(u)&&(u=a);const R=a.setStartPosition(c.startLineNumber,c.startColumn).setEndPosition(u.endLineNumber,u.endColumn),O=(new g.fr).parse(t,!0,n),M=R.getStartPosition(),P=N.adjustWhitespace(f,M,r||d>0&&S!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),O);O.resolveVariables(new y([v,new L(C,d,I.length,"spread"===e.getOption(79)),new w(f,a,d,l),new T(f,a,h),new x,new k(_),new A])),p[d]=o.k.replace(R,O.toString()),p[d].identifier={major:d,minor:0},p[d]._isTracked=!0,m[d]=new D(e,O,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,s,n,r,c){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const l=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new y([e.invokeWithinContext((e=>new R(e.get(d.L),h))),new L((()=>n),0,e.getSelections().length,"spread"===e.getOption(79)),new w(h,e.getSelection(),0,r),new T(h,e.getSelection(),c),new x,new k(e.invokeWithinContext((e=>e.get(u.VR)))),new A]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let d=0;d<t.length;d++){const{range:e,template:i}=t[d];if(d>0){const i=t[d-1].range,s=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),n=new g.EY(h.getValueInRange(s));m.appendChild(n),_+=n.value.length}const s=p.parseFragment(i,m);N.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(s)),m.resolveVariables(f);const n=m.toString(),r=n.slice(_);_=n.length;const c=o.k.replace(e,r);c.identifier={major:d,minor:0},c._isTracked=!0,l.push(c)}return p.ensureFinalTabstop(m,i,!0),{edits:l,snippets:[new D(e,m,"")]}}constructor(e,t,i=M,s){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=s,this._templateMerges=[],this._snippets=[]}dispose(){(0,n.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?N.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):N.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let s=0;s<t.length;s++)t[s].initialize(i[s].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>c.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=M){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:s}=N.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let n=0;n<s.length;n++)s[n].initialize(t[n].textChange);const i=s[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(s);console.assert(0===s.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>c.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const s=i.move(e);t.push(...s)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const s=i.computePossibleSelections();if(0===t.size)for(const[i,n]of s){n.sort(a.Q.compareRangesUsingStarts);for(const s of e)if(n[0].containsRange(s)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...s.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,s]of t)if(s.length===e.length){s.sort(a.Q.compareRangesUsingStarts);for(let n=0;n<s.length;n++)s[n].containsRange(e[n])||t.delete(i)}else t.delete(i);return t.size>0}};P=N=I([O(3,l.JZ)],P)},38320:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(73478).then(i.bind(i,73478))})},38566:(e,t,i)=>{"use strict";var s;i.d(t,{GB:()=>r,i3:()=>n,l:()=>s}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(s||(s={}));class n{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;const i=e.findTokenIndexAtOffset(t-2),s=e.getStandardTokenType(i);return this.isOK(s)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const 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 r{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)o(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),o(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),o(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),o(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&o(this.autoClosingPairsCloseSingleChar,t.close,t)}}function o(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>b});var s=i(31450),n=i(15092),r=i(87908),o=i(32799),a=i(97681),c=i(81782),l=i(83069),h=i(36677),d=i(75326),u=i(60002),g=i(17469),p=i(78209),m=i(253),f=i(32848),_=i(28290);class v extends s.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),n=t.getModel(),r=t.getSelections(),a=r.length>1,h=r.map((e=>{const t=new l.y(e.positionLineNumber,e.positionColumn),i=this._move(s,n,t,this._wordNavigationType,a);return this._moveTo(e,i,this._inSelectionMode)}));if(n.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,h.map((e=>o.MF.fromModelSelection(e)))),1===h.length){const e=new l.y(h[0].positionLineNumber,h[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new d.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class C extends v{_move(e,t,i,s,n){return a.z.moveWordLeft(e,t,i,s,n)}}class E extends v{_move(e,t,i,s,n){return a.z.moveWordRight(e,t,i,s)}}class b extends s.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const s=e.get(g.JZ);if(!t.hasModel())return;const r=(0,c.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),a=t.getSelections(),l=t.getOption(6),h=t.getOption(11),d=s.getLanguageConfiguration(o.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:r,model:o,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:l,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new n.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class S extends b{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class y extends b{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const s=e.model.getLineCount(),n=e.model.getLineMaxColumn(s);return new h.Q(s,n,s,n)}}class w extends s.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const s=(0,c.i)(t.getOption(132),t.getOption(131)),r=t.getModel(),o=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(s,r,e);return new n.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends E{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,c.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,s.Fl)(w)},38785:(e,t,i)=>{e.exports=i(64066)},38844:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>l,jD:()=>d});var s=i(51241),n=i(5662),r=i(31308),o=i(49154),a=i(87958),c=i(75326);function l(e){return h.get(e)}class h extends n.jG{static{this._map=new Map}static get(e){let t=h._map.get(e);if(!t){t=new h(e),h._map.set(e,t);const i=e.onDidDispose((()=>{const t=h._map.get(e);t&&(h._map.delete(e),t.dispose(),i.dispose())}))}return t}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new o.XL((()=>{})))}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=(0,r.FY)(this,this.editor.getModel()),this.model=this._model,this.isReadonly=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(92))),this._versionId=(0,r.Zh)({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=(0,r.Zh)({owner:this,equalsFn:(0,s.KC)((0,s.S3)(c.L.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=(0,r.y0)(this,(e=>{const t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose()}}}),(()=>this.editor.hasWidgetFocus())),this.value=(0,a.dQ)(this,(e=>(this.versionId.read(e),this.model.read(e)?.getValue()??"")),((e,t)=>{const i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e)})),this.valueIsEmpty=(0,r.un)(this,(e=>(this.versionId.read(e),0===this.editor.getModel()?.getValueLength()))),this.cursorSelection=(0,r.C)({owner:this,equalsFn:(0,s.KC)(c.L.selectionsEqual)},(e=>this.selections.read(e)?.[0]??null)),this.onDidType=(0,r.Yd)(this),this.scrollTop=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollTop())),this.scrollLeft=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollLeft())),this.layoutInfo=(0,r.y0)(this.editor.onDidLayoutChange,(()=>this.editor.getLayoutInfo())),this.layoutInfoContentLeft=this.layoutInfo.map((e=>e.contentLeft)),this.layoutInfoDecorationsLeft=this.layoutInfo.map((e=>e.decorationsLeft)),this.contentWidth=(0,r.y0)(this.editor.onDidContentSizeChange,(()=>this.editor.getContentWidth())),this._overlayWidgetCounter=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.onDidChangeModelContent((e=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??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()}})))}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction)}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return(0,r.y0)(this,(t=>this.editor.onDidChangeConfiguration((i=>{i.hasChanged(e)&&t(void 0)}))),(()=>this.editor.getOption(e)))}setDecorations(e){const t=new n.Cm,i=this.editor.createDecorationsCollection();return t.add((0,r.zL)({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},(t=>{const s=e.read(t);i.set(s)}))),t.add({dispose:()=>{i.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const s=(0,r.fm)((t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i)}));return(0,n.s)((()=>{s.dispose(),this.editor.removeOverlayWidget(i)}))}}function d(e,t){return(0,r.ht)({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}},((i,s)=>{const n=e.read(i);s.didChange&&t(n,s.deltas)}))}function u(e,t){const i=new n.Cm,s=d(e,((e,s)=>{i.clear(),t(e,s,i)}));return{dispose(){s.dispose(),i.dispose()}}}},39286:(e,t,i)=>{"use strict";i.d(t,{n:()=>o});var s=i(58925),n=i(83069),r=i(36677);class o{async provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t);const n=new Map;await new Promise((t=>o._bracketsRightYield(t,0,e,s,n))),await new Promise((i=>o._bracketsLeftYield(i,0,e,s,n,t)))}return i}static{this._maxDuration=30}static{this._maxRounds=2}static _bracketsRightYield(e,t,i,n,r){const a=new Map,c=Date.now();for(;;){if(t>=o._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-c>o._maxDuration){setTimeout((()=>o._bracketsRightYield(e,t+1,i,n,r)));break}if(l.bracketInfo.isOpeningBracket){const e=l.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=l.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=r.get(e);t||(t=new s.w,r.set(e,t)),t.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,a){const c=new Map,l=Date.now();for(;;){if(t>=o._maxRounds&&0===n.size){e();break}if(!s){e();break}const h=i.bracketPairs.findPrevBracket(s);if(!h){e();break}if(Date.now()-l>o._maxDuration){setTimeout((()=>o._bracketsLeftYield(e,t+1,i,s,n,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=c.has(e)?c.get(e):0;if(t-=1,c.set(e,Math.max(0,t)),t<0){const t=n.get(e);if(t){const s=t.shift();0===t.size&&n.delete(e);const c=r.Q.fromPositions(h.range.getEndPosition(),s.getStartPosition()),l=r.Q.fromPositions(h.range.getStartPosition(),s.getEndPosition());a.push({range:c}),a.push({range:l}),o._addBracketLeading(i,l,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=c.has(e)?c.get(e):0;c.set(e,t+1)}s=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(s);0!==o&&o!==t.startColumn&&(i.push({range:r.Q.fromPositions(new n.y(s,o),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:r.Q.fromPositions(new n.y(a,s),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(a,1),t.getEndPosition())}))}}}},39439:(e,t,i)=>{var s=i(33157),n=i(90552);e.exports=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&n(e,t,i)&&(i=0,r=o),s(e,t,i,r)):[]}},39866:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(22372).then(i.bind(i,22372))})},40014:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>C});var s=i(27145),n=i(59284),r=i(8964),o=i(66643),a=i(42392);const c=()=>`ck.${((e,t)=>{let i="";for(let s=e;s>0;--s)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,l=n.memo;var h=i(82435);const d=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends n.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.iY.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,r.R)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):n.createElement("div",null,t)}return this.props.children}}var p=i(74417);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,s.Tt)(e,["renderPluginLoader"]);const r=null===t||void 0===t?void 0:t();return"undefined"!==typeof r?r:n.createElement("div",{className:m()},n.createElement(p.a,Object.assign({},i)))},_=d("chartkit"),v=e=>{const t=n.useRef(),{instanceRef:i,id:l,type:h,isMobile:d,renderPluginLoader:u}=e,g=(0,s.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=n.useMemo((()=>c()),[]),m=l||p,v=o.W.get("lang"),C=o.W.get("plugins").find((e=>e.type===h));if(!C)throw new a.R({code:a.iY.UNKNOWN_PLUGIN,message:(0,r.R)("error","label_unknown-plugin",{type:h})});const E=C.renderer;return n.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),n.createElement(n.Suspense,{fallback:n.createElement(f,{renderPluginLoader:u})},n.createElement("div",{className:_({mobile:d},"chartkit-theme_common")},n.createElement(E,Object.assign({ref:t,id:m,lang:v},g))))},C=l(n.forwardRef((function(e,t){return n.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},n.createElement(v,Object.assign({instanceRef:t},e)))})))},40142:(e,t,i)=>{"use strict";var s=i(24939),n=i(31450),r=i(36677),o=i(60002),a=i(17469),c=i(7085),l=i(83069),h=i(75326);class d{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const s=t.length;if(i+s>e.length)return!1;for(let n=0;n<s;n++){const s=e.charCodeAt(i+n),r=t.charCodeAt(n);if(s!==r&&(!(s>=65&&s<=90&&s+32===r)&&!(r>=65&&r<=90&&r+32===s)))return!1}return!0}_createOperationsForBlockComment(e,t,i,s,n,o){const a=e.startLineNumber,c=e.startColumn,l=e.endLineNumber,h=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(l);let p,m=u.lastIndexOf(t,c-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===l){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),s=g.substring(0,f);(e.indexOf(i)>=0||s.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(s&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),s&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=d._createRemoveBlockCommentOperations(new r.Q(a,m+t.length+1,l,f+1),t,i)):(p=d._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const r of p)o.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){const s=[];return r.Q.isEmpty(e)?s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(c.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(c.k.delete(new r.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),s}static _createAddBlockCommentOperations(e,t,i,s){const n=[];return r.Q.isEmpty(e)?n.push(c.k.replace(new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(n.push(c.k.insert(new l.y(e.startLineNumber,e.startColumn),t+(s?" ":""))),n.push(c.k.insert(new l.y(e.endLineNumber,e.endColumn),(s?" ":"")+i))),n}getEditOperations(e,t){const i=this._selection.startLineNumber,s=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const n=e.getLanguageIdAtPosition(i,s),r=this.languageConfigurationService.getLanguageConfiguration(n).comments;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(91508);class g{constructor(e,t,i,s,n,r,o){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=s,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,i,s){e.tokenization.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),r=s.getLanguageConfiguration(n).comments,o=r?r.lineCommentToken:null;if(!o)return null;const a=[];for(let c=0,l=i-t+1;c<l;c++)a[c]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return a}static _analyzeLines(e,t,i,s,n,r,o,a){let c,l=!0;c=0===e||1!==e;for(let h=0,g=s.length;h<g;h++){const a=s[h],g=n+h;if(g===n&&o){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.HG(p);if(-1!==m){if(l=!1,a.ignore=!1,a.commentStrOffset=m,c&&!d._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?c=!1:1===e||(a.ignore=!0)),c&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=r,a.commentStrOffset=p.length}if(0===e&&l){c=!1;for(let e=0,t=s.length;e<t;e++)s[e].ignore=!1}return{supported:!0,shouldRemoveComments:c,lines:s}}static _gatherPreflightData(e,t,i,s,n,r,o,a){const c=g._gatherPreflightCommentStrings(i,s,n,a);return null===c?{supported:!1}:g._analyzeLines(e,t,i,c,s,r,o,a)}_executeLineComments(e,t,i,s){let n;i.shouldRemoveComments?n=g._createRemoveLineCommentsOperations(i.lines,s.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,s.startLineNumber,this._indentSize),n=this._createAddLineCommentsOperations(i.lines,s.startLineNumber));const o=new l.y(s.positionLineNumber,s.positionColumn);for(let a=0,c=n.length;a<c;a++)if(t.addEditOperation(n[a].range,n[a].text),r.Q.isEmpty(n[a].range)&&r.Q.getStartPosition(n[a].range).equals(o)){e.getLineContent(o.lineNumber).length+1===o.column&&(this._deltaColumn=(n[a].text||"").length)}this._selectionId=t.trackSelection(s)}_attemptRemoveBlockComment(e,t,i,s){let n=t.startLineNumber,o=t.endLineNumber;const a=s.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let c=e.getLineContent(n).lastIndexOf(i,a-1),l=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return-1!==c&&-1===l&&(l=e.getLineContent(n).indexOf(s,c+i.length),o=n),-1===c&&-1!==l&&(c=e.getLineContent(o).lastIndexOf(i,l),n=o),!t.isEmpty()||-1!==c&&-1!==l||(c=e.getLineContent(n).indexOf(i),-1!==c&&(l=e.getLineContent(n).indexOf(s,c+i.length))),-1!==c&&32===e.getLineContent(n).charCodeAt(c+i.length)&&(i+=" "),-1!==l&&32===e.getLineContent(o).charCodeAt(l-1)&&(s=" "+s,l-=1),-1!==c&&-1!==l?d._createRemoveBlockCommentOperations(new r.Q(n,c+i.length+1,o,l+1),i,s):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const s=e.getLanguageIdAtPosition(i.startLineNumber,1),n=this.languageConfigurationService.getLanguageConfiguration(s).comments;if(!n||!n.blockCommentStartToken||!n.blockCommentEndToken)return;const o=n.blockCommentStartToken,a=n.blockCommentEndToken;let c=this._attemptRemoveBlockComment(e,i,o,a);if(!c){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let s=u.HG(t);-1===s&&(s=t.length),c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,s+1,i.startLineNumber,t.length+1),o,a,this._insertSpace)}else c=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,a,this._insertSpace);1===c.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const r of c)t.addEditOperation(r.range,r.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new r.Q(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return s.supported?this._executeLineComments(e,t,s,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.L(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];n.ignore||i.push(c.k.delete(new r.Q(t+s,n.commentStrOffset+1,t+s,n.commentStrOffset+n.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],s=this._insertSpace?" ":"";for(let n=0,r=e.length;n<r;n++){const r=e[n];r.ignore||i.push(c.k.insert(new l.y(t+n,r.commentStrOffset+1),r.commentStr+s))}return i}static nextVisibleColumn(e,t,i,s){return i?e+(t-e%t):e+s}static _normalizeInsertionPoint(e,t,i,s){let n,r,o=1073741824;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const n=e.getLineContent(i+a);let r=0;for(let e=0,i=t[a].commentStrOffset;r<o&&e<i;e++)r=g.nextVisibleColumn(r,s,9===n.charCodeAt(e),1);r<o&&(o=r)}o=Math.floor(o/s)*s;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const c=e.getLineContent(i+a);let l=0;for(n=0,r=t[a].commentStrOffset;l<o&&n<r;n++)l=g.nextVisibleColumn(l,s,9===c.charCodeAt(n),1);t[a].commentStrOffset=l>o?n-1:n}}}var p=i(78209),m=i(27195);class f extends n.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=[],n=t.getModel().getOptions(),o=t.getOption(23),c=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));c.sort(((e,t)=>r.Q.compareRangesUsingStarts(e.selection,t.selection)));let l=c[0];for(let r=1;r<c.length;r++){const e=c[r];l.selection.endLineNumber===e.selection.startLineNumber&&(l.index<e.index?e.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=e))}for(const r of c)s.push(new g(i,r.selection,n.indentSize,this._type,o.insertSpace,o.ignoreEmptyLines,r.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class _ extends n.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=t.getOption(23),n=[],r=t.getSelections();for(const o of r)n.push(new d(o,s.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}(0,n.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,n.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2081),weight:100}})}}),(0,n.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2099),weight:100}})}}),(0,n.Fl)(_)},40340:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(99010).then(i.bind(i,99010))})},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>c,Xw:()=>l,rh:()=>_,yF:()=>f});var s=i(64383),n=i(1245),r=i(19131),o=i(32956);class a{get length(){return this._length}constructor(e){this._length=e}}class c extends a{static create(e,t,i){let s=e.length;return t&&(s=(0,r.QB)(s,t.length)),i&&(s=(0,r.QB)(s,i.length)),new c(s,e,t,i,t?t.missingOpeningBracketIds:o.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,s,n){super(e),this.openingBracket=t,this.child=i,this.closingBracket=s,this.missingOpeningBracketIds=n}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new c(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,r.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class l extends a{static create23(e,t,i,s=!1){let n=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(n=(0,r.QB)(n,t.length),o=o.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");n=(0,r.QB)(n,i.length),o=o.merge(i.missingOpeningBracketIds)}return s?new d(n,e.listHeight+1,e,t,i,o):new h(n,e.listHeight+1,e,t,i,o)}static getEmpty(){return new g(r.Vp,0,[],o.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new s.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let s=1;s<e;s++){const e=this.getChild(s);t=(0,r.QB)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,s=e;for(let n=0;n<this.childrenLength;n++){const e=this.getChild(n);e&&(i=Math.min(i,e.computeMinIndentation(s,t)),s=(0,r.QB)(s,e.length))}return this.cachedMinIndentation=i,i}}class h extends l{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,s,n,r){super(e,t,r),this._item1=i,this._item2=s,this._item3=n}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class d extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends l{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,s){super(e,t,s),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return o.gV.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,r.l4)(e),s=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,o=(0,r.eu)((0,r.QB)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let r=s;r<=o;r++){const e=t.getLineFirstNonWhitespaceColumn(r),i=t.getLineContent(r);if(0===e)continue;const s=n.A.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,s)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return o.gV.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},40677:(e,t,i)=>{"use strict";var s=i(31450),n=i(10350),r=i(31308),o=i(49154),a=i(29163),c=i(60002),l=i(78209),h=i(32848);const d=new h.N1("inlineEditsVisible",!1,(0,l.kg)("inlineEditsVisible","Whether an inline edit is visible")),u=new h.N1("inlineEditsIsPinned",!1,(0,l.kg)("isPinned","Whether an inline edit is visible"));var g=i(5662),p=i(87958),m=i(38844),f=i(41127),_=i(75326),v=i(32500),C=i(56942),E=i(90766),b=i(18447),S=i(51241),y=i(64383),w=i(79400),R=i(94746),L=i(86571),T=i(62083),x=i(23750),k=i(20940),A=i(8597),N=i(49435),I=i(10691),O=i(92368),D=i(83941),M=i(87289),P=i(18864),F=i(1098),U=i(90870),H=i(63591),B=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},W=function(e,t){return function(i,s){t(i,s,e)}};class V{constructor(e,t,i){this.range=e,this.newLines=t,this.changes=i}}let z=class extends g.jG{constructor(e,t,i,n){super(),this._editor=e,this._edit=t,this._userPrompt=i,this._instantiationService=n,this._editorObs=(0,m.Ud)(this._editor),this._elements=(0,A.h)("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[(0,A.h)("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[(0,A.h)("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),(0,A.h)("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),(0,A.h)("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),(0,A.Mc)("svg",{style:{overflow:"visible",pointerEvents:"none"}},[(0,A.Mc)("defs",[(0,A.Mc)("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[(0,A.Mc)("stop",{offset:"0%",class:"gradient-stop"}),(0,A.Mc)("stop",{offset:"100%",class:"gradient-stop"})])]),(0,A.Mc)("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,r.un)((e=>{const t=this._edit.read(e);t&&this._previewTextModel.setValue(t.newLines.join("\n"))})).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:N.z},{contributions:s.dS.getSomeEditorContributions([U.D.ID,F.X.ID,P.d.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=(0,m.Ud)(this._previewEditor),this._decorations=(0,r.un)(this,(e=>{this._setText.read(e);const t=this._edit.read(e)?.changes;if(!t)return[];const i=[],s=[];if(1===t.length&&t[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const n of t)if(n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.Ob}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Kl}),n.modified.isEmpty||n.original.isEmpty)n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.KL}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Ou});else for(const e of n.innerChanges||[])n.original.contains(e.originalRange.startLineNumber)&&i.push({range:e.originalRange,options:e.originalRange.isEmpty()?I.wp:I.Zb}),n.modified.contains(e.modifiedRange.startLineNumber)&&s.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?I.GM:I.bk});return s})),this._layout1=(0,r.un)(this,(e=>{const t=this._editor.getModel(),i=this._edit.read(e);if(!i)return null;const s=i.range;let n=0;for(let r=s.startLineNumber;r<s.endLineNumberExclusive;r++){const e=t.getLineMaxColumn(r),i=this._editor.getOffsetForColumn(r,e);n=Math.max(n,i)}return{left:this._editor.getLayoutInfo().contentLeft+n}})),this._layout=(0,r.un)(this,(e=>{const t=this._edit.read(e);if(!t)return null;const i=t.range,s=this._editorObs.scrollLeft.read(e),n=this._layout1.read(e).left+20-s,r=this._editor.getTopForLineNumber(i.startLineNumber)-this._editorObs.scrollTop.read(e),o=this._editor.getTopForLineNumber(i.endLineNumberExclusive)-this._editorObs.scrollTop.read(e),a=new G(n,r),c=new G(n,o),l=o-r,h=this._editor.getOption(67)*t.newLines.length,d=l-h;return{topCode:a,bottomCode:c,codeHeight:l,topEdit:new G(n+50,r+d/2),bottomEdit:new G(n+50,o-d/2),editHeight:h}}));const o=(0,r.un)(this,(e=>void 0!==this._edit.read(e)||void 0!==this._userPrompt.read(e)));var c,l,h;this._register((0,O.AV)(this._elements.root,{display:(0,r.un)(this,(e=>o.read(e)?"block":"none"))})),this._register((0,O.rX)(this._editor.getDomNode(),this._elements.root)),this._register((0,m.Ud)(e).createOverlayWidget({domNode:this._elements.root,position:(0,r.lk)(null),allowEditorOverflow:!1,minContentWidthInPx:(0,r.un)((e=>{const t=this._layout1.read(e)?.left;if(void 0===t)return 0;return t+this._previewEditorObs.contentWidth.read(e)}))})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register((0,r.fm)((e=>{const t=this._layout.read(e);if(!t)return;const{topCode:i,bottomCode:s,topEdit:n,bottomEdit:r,editHeight:o}=t,a=(new j).moveTo(i).lineTo(i.deltaX(10)).curveTo(i.deltaX(50),n.deltaX(-40),n.deltaX(-0)).lineTo(n).lineTo(r).lineTo(r.deltaX(-0)).curveTo(r.deltaX(-40),s.deltaX(50),s.deltaX(10)).lineTo(s).build();this._elements.path.setAttribute("d",a),this._elements.editorContainer.style.top=`${n.y}px`,this._elements.editorContainer.style.left=`${n.x}px`,this._elements.editorContainer.style.height=`${o}px`;const c=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:o,width:c})}))),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(function(e,t){const i=new g.Cm;return i.add((0,r.fm)((i=>{const s=e.read(i);t.set(s,void 0)}))),i.add((0,r.fm)((i=>{const s=t.read(i);e.set(s,void 0)}))),i}((c=this._userPrompt,l=e=>e??"",h=e=>e,(0,p.dQ)(void 0,(e=>l(c.read(e))),((e,t)=>c.set(h(e),t)))),(0,m.Ud)(this._promptEditor).value)),this._register((0,r.fm)((e=>{const t=(0,m.Ud)(this._promptEditor).isFocused.read(e);this._elements.root.classList.toggle("focused",t)})))}};z=B([W(3,H._Y)],z);class G{constructor(e,t){this.x=e,this.y=t}deltaX(e){return new G(this.x+e,this.y)}}class j{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,i){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${i.x} ${i.y} `,this}build(){return this._data}}var K,Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};let $=class extends g.jG{static{K=this}static{this._modelId=0}static _createUniqueUri(){return w.r.from({scheme:"inline-edits",path:(new Date).toString()+String(K._modelId++)})}constructor(e,t,i,s,n,o,a){super(),this.textModel=e,this._textModelVersionId=t,this._selection=i,this._debounceValue=s,this.languageFeaturesService=n,this._diffProviderFactoryService=o,this._modelService=a,this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._isActive=(0,r.FY)(this,!1),this._originalModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._pinnedRange=new X(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map((e=>!!e)),this.userPrompt=(0,r.FY)(this,void 0),this.inlineEdit=(0,r.un)(this,(e=>this._inlineEdit.read(e)?.promiseResult.read(e)?.data)),this._inlineEdit=(0,r.un)(this,(e=>{const t=this.selectedInlineEdit.read(e);if(!t)return;const i=t.inlineCompletion.range;if(""===t.inlineCompletion.insertText.trim())return;let s=t.inlineCompletion.insertText.split(/\r\n|\r|\n/);function n(e){const t=e[0].match(/^\s*/)?.[0]??"";return e.map((e=>e.replace(new RegExp("^"+t),"")))}s=n(s);let o=this.textModel.getValueInRange(i).split(/\r\n|\r|\n/);o=n(o),this._originalModel.get().setValue(o.join("\n")),this._modifiedModel.get().setValue(s.join("\n"));const a=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return r.BK.fromFn((async()=>{const e=await a.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},b.XO.None);if(!e.identical)return new V(L.M.fromRangeInclusive(i),n(s),e.changes)}))})),this._fetchStore=this._register(new g.Cm),this._inlineEditsFetchResult=(0,r.X2)(this,void 0),this._inlineEdits=(0,r.C)({owner:this,equalsFn:S.dB},(e=>this._inlineEditsFetchResult.read(e)?.completions.map((e=>new Q(e)))??[])),this._fetchInlineEditsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:T.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=T.qw.Explicit),!0)},(async(e,t)=>{this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(e),this._textModelVersionId.read(e);const i=this._pinnedRange.range.read(e)??(s=this._selection.read(e),(e=>e.isEmpty()?void 0:e)(s));var s;if(!i)return this._inlineEditsFetchResult.set(void 0,void 0),void this.userPrompt.set(void 0,void 0);const n={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(e)},r=(0,b.bs)(this._fetchStore);await(0,E.wR)(200,r);const o=await(0,k.Yk)(this.languageFeaturesService.inlineCompletionsProvider,i,this.textModel,n,r);r.isCancellationRequested||this._inlineEditsFetchResult.set(o,void 0)})),this._filteredInlineEditItems=(0,r.C)({owner:this,equalsFn:(0,S.S3)()},(e=>this._inlineEdits.read(e))),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineEditItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineEdit=(0,r.un)(this,(e=>this._filteredInlineEditItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this._register((0,r.OI)(this._fetchInlineEditsPromise))}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineEditsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this.userPrompt.set(void 0,e),this._isActive.set(!1,e),this._inlineEditsFetchResult.set(void 0,e),this._pinnedRange.setRange(void 0,e)}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineEditItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new y.D7;const t=this.selectedInlineEdit.get();t&&(e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[t.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}};$=K=Y([q(4,C.ILanguageFeaturesService),q(5,R.Hg),q(6,x.IModelService)],$);class Q{constructor(e){this.inlineCompletion=e,this.semanticId=this.inlineCompletion.hash()}}class X extends g.jG{constructor(e,t){super(),this._textModel=e,this._versionId=t,this._decorations=(0,r.FY)(this,[]),this.range=(0,r.un)(this,(e=>{this._versionId.read(e);const t=this._decorations.read(e)[0];return t?this._textModel.getDecorationRange(t)??null:null})),this._register((0,g.s)((()=>{this._textModel.deltaDecorations(this._decorations.get(),[])})))}setRange(e,t){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),e?[{range:e,options:{description:"trackedRange"}}]:[]),t)}}var Z,J=i(84001),ee=i(71319),te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};let se=class extends g.jG{static{Z=this}static{this.ID="editor.contrib.inlineEditsController"}static get(e){return e.getContribution(Z.ID)}constructor(e,t,i,s,n,o){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._debounceService=s,this._languageFeaturesService=n,this._configurationService=o,this._enabled=(0,ee.V)("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=(0,m.Ud)(this.editor),this._selection=(0,r.un)(this,(e=>this._editorObs.cursorSelection.read(e)??new _.L(1,1,1,1))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=(0,p.a0)(this,(e=>{if(!this._enabled.read(e))return;if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance((0,f.b)($,e),t,this._editorObs.versionId,this._selection,this._debounceValue)})),this._hadInlineEdit=(0,r.ZX)(this,((e,t)=>t||void 0!==this.model.read(e)?.inlineEdit.read(e))),this._widget=(0,p.a0)(this,(e=>{var t;if(this._hadInlineEdit.read(e))return this._instantiationService.createInstance((0,f.b)(z,e),this.editor,this.model.map(((e,t)=>e?.inlineEdit.read(t))),(t=e=>this.model.read(e)?.userPrompt??(0,r.FY)("empty",""),(0,p.dQ)(void 0,(e=>t(e).read(e)),((e,i)=>{t(void 0).set(e,i)}))))})),this._register((0,ee.w)(d,this._contextKeyService,(e=>!!this.model.read(e)?.inlineEdit.read(e)))),this._register((0,ee.w)(u,this._contextKeyService,(e=>!!this.model.read(e)?.isPinned.read(e)))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}};se=Z=te([ie(1,H._Y),ie(2,h.fN),ie(3,v.ILanguageFeatureDebounceService),ie(4,C.ILanguageFeaturesService),ie(5,J.pG)],se);var ne=i(27195);function re(e){return{label:e.value,alias:e.original}}class oe extends s.ks{static{this.ID="editor.action.inlineEdits.showNext"}constructor(){super({id:oe.ID,...re(l.aS("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=se.get(t);i?.model.get()?.next()}}class ae extends s.ks{static{this.ID="editor.action.inlineEdits.showPrevious"}constructor(){super({id:ae.ID,...re(l.aS("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:h.M$.and(c.R.writable,d),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=se.get(t);i?.model.get()?.previous()}}class ce extends s.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...re(l.aS("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:c.R.writable})}async run(e,t){const i=se.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e))}))}}class le extends s.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...re(l.aS("action.inlineEdits.accept","Accept Inline Edit")),precondition:d,menuOpts:{menuId:ne.D8.InlineEditsActions,title:l.kg("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:n.W.check},kbOpts:{primary:2058,weight:2e4,kbExpr:d}})}async run(e,t){t instanceof a.t&&(t=t.getParentEditor());const i=se.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class he extends s.ks{static{this.ID="editor.action.inlineEdits.hide"}constructor(){super({id:he.ID,...re(l.aS("action.inlineEdits.hide","Hide Inline Edit")),precondition:d,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=se.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}(0,s.HW)(se.ID,se,3),(0,s.Fl)(ce),(0,s.Fl)(oe),(0,s.Fl)(ae),(0,s.Fl)(le),(0,s.Fl)(he)},40800:(e,t,i)=>{"use strict";var s=i(25890),n=i(31308),r=i(34309),o=i(92368),a=i(56942),c=i(29999),l=i(5662),h=i(41234),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends l.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,n.FY)(this,void 0);const s=(0,n.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),r=(0,n.yQ)("_textModel.onDidChangeContent",h.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,n.yC)((async(e,t)=>{s.read(e),r.read(e);const i=t.add(new o.MZ),n=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(n,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return n.sort((0,s.Hw)((0,s.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),s.U9))),n.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=d([u(1,a.ILanguageFeaturesService),u(2,c.gW)],g),r.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},41127:(e,t,i)=>{"use strict";i.d(t,{b:()=>r});var s=i(30076),n=i(31308);function r(e,t){return function(e,t){if((0,s.e)()){(0,n.yQ)("reload",(t=>(0,s.O)((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>c,QT:()=>b,Qy:()=>_,Wj:()=>w,_B:()=>S,at:()=>y,fV:()=>C,uI:()=>E,vl:()=>f});var s=i(64383),n=i(6921),r=i(5662),o=i(58925),a=i(78381);var c;!function(e){function t(e){false}function i(e){return(t,i=null,s)=>{let n,r=!1;return n=e((e=>{if(!r)return n?n.dispose():r=!0,t.call(i,e)}),null,s),r&&n.dispose(),n}}function s(e,t,i){return o(((i,s=null,n)=>e((e=>i.call(s,t(e))),null,n)),i)}function n(e,t,i){return o(((i,s=null,n)=>e((e=>t(e)&&i.call(s,e)),null,n)),i)}function o(e,i){let s;const n={onWillAddFirstListener(){s=e(r.fire,r)},onDidRemoveLastListener(){s?.dispose()}};i||t();const r=new f(n);return i?.add(r),r.event}function a(e,i,s=100,n=!1,r=!1,o,a){let c,l,h,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){c=e((e=>{u++,l=i(l,e),n&&!h&&(p.fire(l),l=void 0),d=()=>{const e=l;l=void 0,h=void 0,(!n||u>1)&&p.fire(e),u=0},"number"===typeof s?(clearTimeout(h),h=setTimeout(d,s)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){r&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,c.dispose()}};a||t();const p=new f(g);return a?.add(p),p.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.onceIf=function(t,i){return e.once(e.filter(t,i))},e.map=s,e.forEach=function(e,t,i){return o(((i,s=null,n)=>e((e=>{t(e),i.call(s,e)}),null,n)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,s)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(i,e)))))),s)},e.reduce=function(e,t,i,n){let r=i;return s(e,(e=>(r=t(r,e),r)),n)},e.debounce=a,e.accumulate=function(t,i=0,s){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,s)},e.latch=function(e,t=(e,t)=>e===t,i){let s,r=!0;return n(e,(e=>{const i=r||!t(e,s);return r=!1,s=e,i}),i)},e.split=function(t,i,s){return[e.filter(t,i,s),e.filter(t,(e=>!i(e)),s)]},e.buffer=function(e,t=!1,i=[],s){let n=i.slice(),r=e((e=>{n?n.push(e):a.fire(e)}));s&&s.add(r);const o=()=>{n?.forEach((e=>a.fire(e))),n=null},a=new f({onWillAddFirstListener(){r||(r=e((e=>a.fire(e))),s&&s.add(r))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s&&s.add(a),a.event},e.chain=function(e,t){return(i,s,n)=>{const r=t(new l);return e((function(e){const t=r.evaluate(e);t!==c&&i.call(s,t)}),void 0,n)}};const c=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:c)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push((s=>{const n=i||!e(s,t);return i=!1,t=s,n?s:c})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===c)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.on(t,s),onDidRemoveLastListener:()=>e.removeListener(t,s)});return n.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.addEventListener(t,s),onDidRemoveLastListener:()=>e.removeEventListener(t,s)});return n.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const s={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(),this.emitter=new f(s),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,s)=>{let n=0,o=!1;const a={beginUpdate(){n++},endUpdate(){n--,0===n&&(e.reportChanges(),o&&(o=!1,t.call(i)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const c={dispose(){e.removeObserver(a)}};return s instanceof r.Cm?s.add(c):Array.isArray(s)&&s.push(c),c}}}(c||(c={}));class l{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${l._idPool++}`,l.all.add(this)}start(e){this._stopWatch=new a.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class h{static{this._idPool=1}constructor(e,t,i=(h._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;const[e,s]=this.getMostFrequentStack(),n=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${s}):`;console.warn(n),console.warn(e);const r=new u(n,e);this._errorHandler(r)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,s]of this._stacks)(!e||t<s)&&(e=[i,s],t=s);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class g extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let m;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new h(e?.onListenerError??s.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new l(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new g(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||s.dz)(i),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const n=new p(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(n.stack=d.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new v,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{m?.unregister(a),o?.(),this._removeListener(n)}));if(i instanceof r.Cm?i.add(a):Array.isArray(i)&&i.push(a),m){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);m.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,i=t.indexOf(e);if(-1===i)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||s.dz;if(i)try{e.value(t)}catch(n){i(n)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}const _=()=>new v;class v{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class C extends f{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.w,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class E extends C{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class b extends f{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class S{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new f({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,r.s)((0,n.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class y{constructor(){this.data=[]}wrapEvent(e,t,i){return(s,n,r)=>e((e=>{const r=this.data[this.data.length-1];if(!t)return void(r?r.buffers.push((()=>s.call(n,e))):s.call(n,e));const o=r;o?(o.items??=[],o.items.push(e),0===o.buffers.length&&r.buffers.push((()=>{o.reducedResult??=i?o.items.reduce(t,i):o.items.reduce(t),s.call(n,o.reducedResult)}))):s.call(n,t(i,e))}),void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=r.jG.None,this.emitter=new f({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},41614:(e,t,i)=>{"use strict";i.d(t,{parseYqlQuery:()=>Au,kh:()=>ku});var s,n,r,o,a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});(n=s||(s={})).EOF=-1,n.UNKNOWN_SOURCE_NAME="<unknown>",(o=r||(r={})).INVALID_TYPE=0,o.EPSILON=-2,o.MIN_USER_TOKEN_TYPE=1,o.EOF=s.EOF,o.DEFAULT_CHANNEL=0,o.HIDDEN_CHANNEL=1,o.MIN_USER_CHANNEL_VALUE=2;var l=c((e=>{const t=e;return void 0!==t.tokenSource&&void 0!==t.channel}),"isToken"),h=class{static{c(this,"BitSet")}data;constructor(e){this.data=e?new Uint32Array(e.map((e=>e>>>0))):new Uint32Array(1)}[Symbol.iterator](){const e=this.data.length;let t=0,i=this.data[t];const s=this.data;return{[Symbol.iterator](){return this},next:c((()=>{for(;t<e;){if(0!==i){const e=i&-i,s=(t<<5)+this.bitCount(e-1);return i^=e,{done:!1,value:s}}t++,t<e&&(i=s[t])}return{done:!0,value:void 0}}),"next")}}clear(e){void 0===e?this.data=new Uint32Array:(this.resize(e),this.data[e>>>5]&=~(1<<e))}or(e){const t=Math.min(this.data.length,e.data.length);for(let i=0;i<t;++i)this.data[i]|=e.data[i];if(this.data.length<e.data.length){this.resize((e.data.length<<5)-1);const i=e.data.length;for(let s=t;s<i;++s)this.data[s]=e.data[s]}}get(e){if(e<0)throw new RangeError("index cannot be negative");const t=e>>>5;return!(t>=this.data.length)&&0!==(this.data[t]&1<<e%32)}get length(){let e=0;const t=this.data.length,i=this.data;for(let s=0;s<t;s++)e+=this.bitCount(i[s]);return e}values(){const e=new Array(this.length);let t=0;const i=this.data.length;for(let s=0;s<i;++s){let i=this.data[s];for(;0!==i;){const n=i&-i;e[t++]=(s<<5)+this.bitCount(n-1),i^=n}}return e}nextSetBit(e){if(e<0)throw new RangeError("index cannot be negative");for(const t of this)if(t>=e)return t}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<<e%32}toString(){return"{"+this.values().join(", ")+"}"}resize(e){const t=e+32>>>5;if(t<=this.data.length)return;const i=new Uint32Array(t);i.set(this.data),i.fill(0,this.data.length),this.data=i}bitCount(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,63&(e+=e>>16)}},d=class e{static{c(this,"MurmurHash")}static defaultSeed=701;constructor(){}static initialize(t=e.defaultSeed){return t}static updateFromComparable(e,t){return this.update(e,t?.hashCode()??0)}static update(e,t){return t=(t=Math.imul(t,3432918353))<<15|t>>>17,e=(e^=t=Math.imul(t,461845907))<<13|e>>>19,e=Math.imul(e,5)+3864292196}static finish(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}static hashCode(t,i){return e.finish(e.update(i??e.defaultSeed,t),1)}},u=class e{static{c(this,"ObjectEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}},g=class e{static{c(this,"DefaultEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:u.instance.hashCode(e)}equals(e,t){return null==e?null==t:"string"===typeof e||"number"===typeof e?e===t:u.instance.equals(e,t)}},p=class e{static{c(this,"HashSet")}static defaultLoadFactor=.75;static initialCapacity=16;comparator;buckets;threshold;itemCount=0;constructor(t,i=e.initialCapacity){if(t instanceof e){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let e=0;e<this.buckets.length;e++){const t=this.buckets[e];t&&(this.buckets[e]=t.slice(0))}this.itemCount=t.itemCount,this.threshold=t.threshold}else this.comparator=t??g.instance,this.buckets=this.createBuckets(i),this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}getOrAdd(e){this.itemCount>this.threshold&&this.expand();const t=this.getBucket(e);let i=this.buckets[t];if(!i)return i=[e],this.buckets[t]=i,++this.itemCount,e;for(const s of i)if(this.comparator.equals(s,e))return s;return i.push(e),++this.itemCount,e}get(e){if(null==e)return e;const t=this.getBucket(e),i=this.buckets[t];if(i)for(const s of i)if(this.comparator.equals(s,e))return s}remove(e){if(null==e)return!1;const t=this.getBucket(e),i=this.buckets[t];if(!i)return!1;for(let s=0;s<i.length;s++){const t=i[s];if(this.comparator.equals(t,e))return i.splice(s,1),--this.itemCount,!0}return!1}hashCode(){let e=d.initialize();for(const t of this.buckets)if(null!=t)for(const i of t){if(null==i)break;e=d.update(e,this.comparator.hashCode(i))}return e=d.finish(e,this.size),e}equals(t){return t===this||t instanceof e&&(t.size===this.size&&this.containsAll(t))}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return null!=e&&void 0!==this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;e[t++]=s}return e}containsAll(t){if(t instanceof e){for(const e of t.buckets)if(null!=e)for(const t of e){if(null==t)break;if(!this.containsFast(t))return!1}}else for(const e of t)if(!this.containsFast(e))return!1;return!0}addAll(e){let t=!1;for(const i of e){this.getOrAdd(i)!==i&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(e.initialCapacity),this.itemCount=0,this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;t?t=!1:e+=", ",e+=s.toString()}return e+="}",e}toTableString(){let e="";for(const t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let i=!0;for(const s of t)i?i=!1:e+=" ",e+=null==s?"_":s.toString();e+="]\n"}return e}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}expand(){const t=this.buckets,i=2*this.buckets.length,s=this.createBuckets(i);this.buckets=s,this.threshold=Math.floor(i*e.defaultLoadFactor);for(const e of t)if(e)for(const t of e){const e=this.getBucket(t);let i=this.buckets[e];i||(i=[],this.buckets[e]=i),i.push(t)}}get size(){return this.itemCount}get isEmpty(){return 0===this.itemCount}createBuckets(e){return new Array(e)}},m=class e{static{c(this,"Interval")}static INVALID_INTERVAL=new e(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;static cache=[];start;stop;cachedHashCode;constructor(e,t){this.start=e,this.stop=t,this.cachedHashCode=Math.imul(651+e,31)+t}static of(t,i){return t!==i||t<0||t>e.INTERVAL_POOL_MAX_VALUE?new e(t,i):(e.cache[t]||(e.cache[t]=new e(t,t)),e.cache[t])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return this.cachedHashCode}startsBeforeDisjoint(e){return this.start<e.start&&this.stop<e.start}startsBeforeNonDisjoint(e){return this.start<=e.start&&this.stop>=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(t){return e.of(Math.min(this.start,t.start),Math.max(this.stop,t.stop))}intersection(t){return e.of(Math.max(this.start,t.start),Math.min(this.stop,t.stop))}differenceNotProperlyContained(t){let i=null;return t.startsBeforeNonDisjoint(this)?i=e.of(Math.max(this.start,t.stop+1),this.stop):t.startsAfterNonDisjoint(this)&&(i=e.of(this.start,t.start-1)),i}toString(){return`${this.start}..${this.stop}`}get length(){return this.stop<this.start?0:this.stop-this.start+1}},f=class e{static{c(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new e(e.EMPTY_NAMES,e.EMPTY_NAMES,e.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(t,i,s){this.literalNames=t??e.EMPTY_NAMES,this.symbolicNames=i??e.EMPTY_NAMES,this.displayNames=s??e.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(t){if(null==t||0===t.length)return e.EMPTY_VOCABULARY;const i=[...t],s=[...t];for(let e=0;e<t.length;e++){const n=t[e];if(null!=n){if(n.length>0){const t=n.codePointAt(0);if(39===t){s[e]=null;continue}if(t>=65&&t<=90){i[e]=null;continue}}i[e]=null,s[e]=null}}return new e(i,s,t)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e<this.literalNames.length?this.literalNames[e]:null}getSymbolicName(e){return e>=0&&e<this.symbolicNames.length?this.symbolicNames[e]:e===r.EOF?"EOF":null}getDisplayName(e){if(e>=0&&e<this.displayNames.length){const t=this.displayNames[e];if(null!=t)return t}const t=this.getLiteralName(e);if(null!=t)return t;const i=this.getSymbolicName(e);return null!=i?i:`${e}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},_=class e{static{c(this,"IntervalSet")}intervals=[];cachedHashCode;constructor(e){if(e)if(Array.isArray(e))for(const t of e)this.addOne(t);else this.addSet(e)}static of(t,i){const s=new e;return s.addRange(t,i),s}static or(t){const i=new e;for(const e of t)i.addSet(e);return i}[Symbol.iterator](){return this.intervals[Symbol.iterator]()}get(e){return this.intervals[e]}get minElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start}get maxElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[this.intervals.length-1].stop}clear(){this.cachedHashCode=void 0,this.intervals=[]}addOne(e){this.addInterval(new m(e,e))}addRange(e,t){this.addInterval(new m(e,t))}addInterval(e){if(this.cachedHashCode=void 0,0===this.intervals.length)this.intervals.push(e);else{for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e.equals(i))return;if(e.adjacent(i)||!e.disjoint(i)){const s=e.union(i);this.intervals[t]=s;for(let e=t+1;e<this.intervals.length;){const i=this.intervals[e];if(!s.adjacent(i)&&s.disjoint(i))break;this.intervals.splice(e,1),this.intervals[t]=s.union(i)}return}if(e.startsBeforeDisjoint(i))return void this.intervals.splice(t,0,e)}this.intervals.push(e)}}addSet(e){return e.intervals.forEach((e=>this.addInterval(e)),this),this}complementWithVocabulary(t){const i=new e;return t?0===t.length?i:(i.addSet(t),i.subtract(this)):i}complement(t,i){const s=new e;return s.addInterval(new m(t,i)),s.subtract(this)}or(t){const i=new e;return i.addSet(this),t.forEach((e=>i.addSet(e))),i}and(t){if(0===t.length)return new e;const i=this.intervals,s=t.intervals;let n;const r=i.length,o=s.length;let a=0,c=0;for(;a<r&&c<o;){const t=i[a],r=s[c];t.startsBeforeDisjoint(r)?a++:r.startsBeforeDisjoint(t)?c++:t.properlyContains(r)?(n||(n=new e),n.addInterval(t.intersection(r)),c++):r.properlyContains(t)?(n||(n=new e),n.addInterval(t.intersection(r)),a++):t.disjoint(r)||(n||(n=new e),n.addInterval(t.intersection(r)),t.startsAfterNonDisjoint(r)?c++:r.startsAfterNonDisjoint(t)&&a++)}return n||new e}subtract(t){if(0===this.length)return new e;const i=new e(this);if(0===t.length)return i;let s=0,n=0;for(;s<i.intervals.length&&n<t.intervals.length;){const e=i.intervals[s],r=t.intervals[n];if(r.stop<e.start){n++;continue}if(r.start>e.stop){s++;continue}let o,a;r.start>e.start&&(o=new m(e.start,r.start-1)),r.stop<e.stop&&(a=new m(r.stop+1,e.stop)),o?a?(i.intervals[s]=o,i.intervals.splice(s+1,0,a),s++,n++):(i.intervals[s]=o,s++):a?(i.intervals[s]=a,n++):i.intervals.splice(s,1)}return i}contains(e){let t=0,i=this.intervals.length-1;for(;t<=i;){const s=Math.floor((t+i)/2),n=this.intervals[s];if(n.stop<e)t=s+1;else{if(!(n.start>e))return!0;i=s-1}}return!1}removeRange(e){if(this.cachedHashCode=void 0,e.start===e.stop)this.removeOne(e.start);else if(null!==this.intervals){let t=0;for(const i of this.intervals){if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new m(i.start,e.start);const s=new m(e.stop,i.stop);return void this.intervals.splice(t,0,s)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new m(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new m(e.stop,i.stop)),t+=1}}}removeOne(e){this.cachedHashCode=void 0;for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e<i.start)return;if(e===i.start&&e===i.stop)return void this.intervals.splice(t,1);if(e===i.start)return void(this.intervals[t]=new m(i.start+1,i.stop));if(e===i.stop)return void(this.intervals[t]=new m(i.start,i.stop-1));if(e<i.stop){const s=new m(i.start,e-1);return this.intervals[t]=new m(e+1,i.stop),void this.intervals.splice(t,0,s)}}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.intervals)e=d.update(e,t.start),e=d.update(e,t.stop);this.cachedHashCode=d.finish(e,2*this.intervals.length)}return this.cachedHashCode}equals(e){if(this===e)return!0;if(this.intervals.length!==e.intervals.length)return!1;for(let t=0;t<this.intervals.length;t++)if(!this.intervals[t].equals(e.intervals[t]))return!1;return!0}toString(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;n===o?n===r.EOF?t+="<EOF>":t+=e?"'"+String.fromCodePoint(n)+"'":n:t+=e?"'"+String.fromCodePoint(n)+"'..'"+String.fromCodePoint(o)+"'":n+".."+o,i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithVocabulary(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(e,n);else for(let i=n;i<=o;++i)i>n&&(t+=", "),t+=this.elementName(e,i);i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithRuleNames(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");const i=f.fromTokenNames(e);for(let s=0;s<this.intervals.length;++s){const e=this.intervals[s],n=e.start,o=e.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(i,n);else for(let s=n;s<=o;++s)s>n&&(t+=", "),t+=this.elementName(i,s);s<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toArray(){const e=[];for(const t of this.intervals)for(let i=t.start;i<=t.stop;i++)e.push(i);return e}get length(){let e=0;for(const t of this.intervals)e+=t.length;return e}elementName(e,t){return t===r.EOF?"<EOF>":t===r.EPSILON?"<EPSILON>":e.getDisplayName(t)}},v=c((e=>null===e?"null":e),"valueToString"),C=c((e=>Array.isArray(e)?"["+e.map(v).join(", ")+"]":"null"),"arrayToString"),E=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const s=e[i],n=t[i];if(s!==n&&(!s||!s.equals(n)))return!1}return!0}),"equalArrays"),b=c(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}),"equalNumberArrays"),S=c(((e,t=!1)=>(e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"\xb7")),e)),"escapeWhitespace"),y=class e{static{c(this,"SemanticContext")}cachedHashCode;static andContext(t,i){if(null===t||t===e.NONE)return i;if(null===i||i===e.NONE)return t;const s=new w(t,i);return 1===s.operands.length?s.operands[0]:s}static orContext(t,i){if(null===t)return i;if(null===i)return t;if(t===e.NONE||i===e.NONE)return e.NONE;const s=new R(t,i);return 1===s.operands.length?s.operands[0]:s}static filterPrecedencePredicates(t){const i=[];for(const s of t)s instanceof e.PrecedencePredicate&&i.push(s);return i}evalPrecedence(e,t){return this}},w=class e extends y{static{c(this,"AND")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){let e=null;n.forEach((t=>{(null===e||t.precedence<e.precedence)&&(e=t)})),e&&s.add(e)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3813686060),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(!i.evaluate(e,t))return!1;return!0}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,null===n)return null;n!==y.NONE&&s.push(n)}if(!i)return this;if(0===s.length)return y.NONE;let n=null;return s.forEach((e=>{n=null===n?e:y.andContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("&&")}},R=class e extends y{static{c(this,"OR")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){const e=n.sort(((e,t)=>e.compareTo(t))),t=e[e.length-1];s.add(t)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&E(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3383313031),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(i.evaluate(e,t))return!0;return!1}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,n===y.NONE)return y.NONE;null!==n&&s.push(n)}if(!i)return this;if(0===s.length)return null;let n=null;return s.forEach((e=>{n=null===n?e:y.orContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("||")}};(e=>{class t extends e{static{c(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i){super(),this.ruleIndex=e??-1,this.predIndex=t??-1,this.isCtxDependent=i??!1}evaluate(e,t){const i=this.isCtxDependent?t:null;return e.sempred(i,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.ruleIndex),e=d.update(e,this.predIndex),e=d.update(e,this.isCtxDependent?1:0),e=d.finish(e,3),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}e.Predicate=t;class i extends e{static{c(this,"PrecedencePredicate")}precedence;constructor(e){super(),this.precedence=e??0}evaluate(e,t){return e.precpred(t,this.precedence)}evalPrecedence(t,i){return t.precpred(i??null,this.precedence)?e.NONE:null}compareTo(e){return this.precedence-e.precedence}hashCode(){return 31+this.precedence}equals(e){return this===e||this.precedence===e.precedence}toString(){return"{"+this.precedence+">=prec}?"}}e.PrecedencePredicate=i,e.NONE=new t})(y||(y={}));var L,T=class e{static{c(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#e}cachedHashCode;#t=null;#e;constructor(e,t,i,s){this.state=t,this.alt=e.alt,this.context=i,this.#e=s??y.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,void 0!==e.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}static duplicate(t,i){return new e(t,t.state,t.context,i??t.semanticContext)}static createWithContext(t,i,s,n){return new e({alt:i},t,s,n)}static createWithConfig(t,i,s){return new e(i,t,s??i.context,i.semanticContext)}static createWithSemanticContext(t,i,s){return new e(i,t??i.state,i.context,s)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.#t),e=d.updateFromComparable(e,this.semanticContext),e=d.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return this.#t}set context(e){this.#t=e,this.cachedHashCode=void 0}equals(e){return this===e||this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,t=!0){let i="";return t&&(i=","+this.alt),"("+this.state+i+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==y.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},x=class e{static{c(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=e.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,t)}addTransition(e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,t){this.transitions.splice(e,1,t)}removeTransition(e){return this.transitions.splice(e,1)[0]}},k=class e{static{c(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static traceATNSimulator=!1;cachedHashCode;constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=d.initialize(31);return e=d.finish(e,0),e}static calculateHashCodeSingle(e,t){let i=d.initialize(31);return i=d.updateFromComparable(i,e),i=d.update(i,t),i=d.finish(i,2),i}static calculateHashCodeList(e,t){let i=d.initialize(31);for(const s of e)i=d.updateFromComparable(i,s);for(const s of t)i=d.update(i,s);return i=d.finish(i,2*e.length),i}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}toString(e){return""}},A=class e extends k{static{c(this,"SingletonPredictionContext")}parent;returnState;constructor(e,t){super(e?k.calculateHashCodeSingle(e,t):k.calculateEmptyHashCode()),this.parent=e??null,this.returnState=t}getParent(e){return this.parent}getReturnState(e){return this.returnState}equals(t){return this===t||t instanceof e&&(this.hashCode()===t.hashCode()&&(this.returnState===t.returnState&&(null==this.parent?null==t.parent:this.parent.equals(t.parent))))}toString(){const e=null===this.parent?"":this.parent.toString();return 0===e.length?this.returnState===k.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e}get length(){return 1}},N=class e extends A{static{c(this,"EmptyPredictionContext")}static instance=new e;constructor(){super(void 0,k.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(e){return this===e}toString(){return"$"}},I=class{static{c(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(e){this.target=e}get isEpsilon(){return!1}get label(){return null}toString(){return""}},O=class extends I{static{c(this,"SetTransition")}set;constructor(e,t){super(e),this.set=t||_.of(r.INVALID_TYPE,r.INVALID_TYPE)}get transitionType(){return I.SET}get label(){return this.set}matches(e,t,i){return this.set.contains(e)}toString(){return this.set.toString()}},D=class extends O{static{c(this,"NotSetTransition")}get transitionType(){return I.NOT_SET}matches(e,t,i){return e>=t&&e<=i&&!super.matches(e,t,i)}toString(){return"~"+super.toString()}},M=class{static{c(this,"MapKeyEqualityComparator")}keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,t){return this.keyComparator.equals(e.key,t.key)}},P=class e{static{c(this,"HashMap")}backingStore;constructor(t){t instanceof e?this.backingStore=new p(t.backingStore):(t=t??g.instance,this.backingStore=new p(new M(t)))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){const t=this.backingStore.get({key:e});if(t)return t.value}get isEmpty(){return this.backingStore.isEmpty}set(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?(s=i.value,i.value=t):this.backingStore.add({key:e,value:t}),s}setIfAbsent(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?s=i.value:this.backingStore.add({key:e,value:t}),s}keys(){return this.backingStore.toArray().map((e=>e.key))}values(){return this.backingStore.toArray().map((e=>e.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},F=class{static{c(this,"TerminalNode")}parent=null;symbol;constructor(e){this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return m.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new m(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===r.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},U=class extends F{static{c(this,"ErrorNode")}accept(e){return e.visitErrorNode(this)}},H=class e{static{c(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(e){this.type=e.type,this.source=e.source,this.tokenIndex=e.tokenIndex??-1,this.line=e.line??0,this.column=e.column??-1,this.channel=e.channel??r.DEFAULT_CHANNEL,this.start=e.start??0,this.stop=e.stop??0,this.#i=e.text,void 0===e.line&&null!==e.source[0]&&(this.line=e.source[0].line),void 0===e.column&&null!==e.source[0]&&(this.column=e.source[0].column)}static fromToken(t){const i=[t.tokenSource,t.inputStream];return new e({type:t.type,line:t.line,tokenIndex:t.tokenIndex,column:t.column,channel:t.channel,start:t.start,stop:t.stop,text:t.text,source:i})}static fromType(t,i){return new e({type:t,text:i,source:e.EMPTY_SOURCE})}static fromSource(t,i,s,n,r){return new e({type:i,channel:s,start:n,stop:r,source:t})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(e){this.source[1]=e}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(e){let t="";this.channel>0&&(t=",channel="+this.channel);let i=this.text;i?(i=i.replace(/\n/g,"\\n"),i=i.replace(/\r/g,"\\r"),i=i.replace(/\t/g,"\\t")):i="<no text>";let s=String(this.type);return e&&(s=e.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+i+"',<"+s+">"+t+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const e=this.inputStream;if(!e)return;const t=e.size;return this.start<t&&this.stop<t?e.getTextFromRange(this.start,this.stop):"<EOF>"}set text(e){this.#i=e}setText(e){this.#i=e}setType(e){this.type=e}setLine(e){this.line=e}setCharPositionInLine(e){this.column=e}setChannel(e){this.channel=e}setTokenIndex(e){this.tokenIndex=e}},B=class e{static{c(this,"Trees")}static toStringTree(t,i,s){i=i??null,s&&(i=s.ruleNames);let n=e.getNodeText(t,i);n=S(n,!1);const r=t.getChildCount();if(0===r)return n;let o="("+n+" ";r>0&&(n=e.toStringTree(t.getChild(0),i),o=o.concat(n));for(let a=1;a<r;a++)n=e.toStringTree(t.getChild(a),i),o=o.concat(" "+n);return o=o.concat(")"),o}static getNodeText(e,t,i){if(t=t??null,i&&(t=i.ruleNames),null!==t){if(e instanceof W){const i=e.ruleContext.getAltNumber();return 0!==i?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof U)return e.toString();if(e instanceof F)return e.symbol.text}const s=e.getPayload();return l(s)?s.text:String(e.getPayload())}static getChildren(e){const t=[];for(let i=0;i<e.getChildCount();i++)t.push(e.getChild(i));return t}static getAncestors(e){if(null===e.parent)return[];let t=[],i=e.parent;for(;null!==i;)t=[i].concat(t),i=i.parent;return t}static isAncestorOf(e,t){if(null===e||null===t||null===e.parent)return!1;let i=t.parent;for(;null!==i;){if(e===i)return!0;i=i.parent}return!1}static findAllTokenNodes(t,i){return e.findAllNodes(t,i,!0)}static findAllRuleNodes(t,i){return e.findAllNodes(t,i,!1)}static findAllNodes(t,i,s){const n=[];return e.doFindAllNodes(t,i,s,n),n}static descendants(t){let i=[t];for(let s=0;s<t.getChildCount();s++)i=i.concat(e.descendants(t.getChild(s)));return i}static getRootOfSubtreeEnclosingRegion(e,t,i){const s=e.getChildCount();for(let n=0;n<s;n++){const s=e.getChild(n),r=this.getRootOfSubtreeEnclosingRegion(s,t,i);if(null!==r)return r}return e instanceof W&&t>=e.start.tokenIndex&&(null===e.stop||i<=e.stop.tokenIndex)?e:null}static stripChildrenOutOfRange(e,t,i,s){if(null!==e)for(let n=0;n<e.getChildCount();n++){const o=e.getChild(n),a=o.getSourceInterval();if(e instanceof W&&(a.stop<i||a.start>s)&&this.isAncestorOf(o,t)){const t=H.fromType(r.INVALID_TYPE,"...");e.children[n]=new F(t)}}}static doFindAllNodes(t,i,s,n){s&&t instanceof F?t.symbol?.type===i&&n.push(t):!s&&t instanceof W&&t.ruleIndex===i&&n.push(t);for(let r=0;r<t.getChildCount();r++)e.doFindAllNodes(t.getChild(r),i,s,n)}},W=class e{static{c(this,"ParserRuleContext")}static empty=new e(null);start=null;stop=null;children=[];invokingState;parent;constructor(e,t=-1){this.parent=e,this.invokingState=t}copyFrom(e){this.parent=e.parent,this.invokingState=e.invokingState,this.children.slice(0,this.children.length),this.start=e.start,this.stop=e.stop,e.children&&e.children.forEach((e=>{e instanceof U&&(this.children.push(e),e.parent=this)}))}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){const t=new F(e);return this.children.push(t),t.parent=this,t}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,t){if(e<0||e>=this.children.length)return null;if(!t)return this.children[e];for(const i of this.children)if(i instanceof t){if(0===e)return i;e-=1}return null}getToken(e,t){if(t<0||t>=this.children.length)return null;for(const i of this.children)if("symbol"in i&&i.symbol?.type===e){if(0===t)return i;t-=1}return null}getTokens(e){const t=[];for(const i of this.children)"symbol"in i&&i.symbol?.type===e&&t.push(i);return t}getRuleContext(e,t){return this.getChild(e,t)}getRuleContexts(e){const t=[];for(const i of this.children)i instanceof e&&t.push(i);return t}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start?m.INVALID_INTERVAL:null===this.stop||this.stop.tokenIndex<this.start.tokenIndex?new m(this.start.tokenIndex,this.start.tokenIndex-1):new m(this.start.tokenIndex,this.stop.tokenIndex)}depth(){let e=0,t=this;for(;null!==t;)t=t.parent,e+=1;return e}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((e=>e.getText())).join("")}getAltNumber(){return Z.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length<2?B.toStringTree(this,null,e[0]):B.toStringTree(this,e[0],e[1])}toString(e,t){e=e??null,t=t??null;let i=this,s="[";for(;null!==i&&i!==t;){if(null===e)i.isEmpty()||(s+=i.invokingState);else{const t=i.ruleIndex;s+=t>=0&&t<e.length?e[t]:""+t}null===i.parent||null===e&&i.parent.isEmpty()||(s+=" "),i=i.parent}return s+="]",s}},V=class e extends k{static{c(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(e,t){return super(k.calculateHashCodeList(e,t)),this.parents=e,this.returnStates=t,this}isEmpty(){return this.returnStates[0]===k.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()&&(b(this.returnStates,t.returnStates)&&E(this.parents,t.parents))}toString(){if(this.isEmpty())return"[]";const e=[];for(let t=0;t<this.returnStates.length;t++)this.returnStates[t]!==k.EMPTY_RETURN_STATE?(e.push(this.returnStates[t].toString()),this.parents[t]?e.push(this.parents[t].toString()):e.push("null")):e.push("$");return`[${e.join(", ")}]`}},z=c(((e,t)=>t===k.EMPTY_RETURN_STATE&&null===e?N.instance:new A(e,t)),"createSingletonPredictionContext"),G=c(((e,t)=>{if(t||(t=W.empty),!t.parent||t===W.empty)return N.instance;const i=G(e,t.parent),s=e.states[t.invokingState].transitions[0];return z(i,s.followState.stateNumber)}),"predictionContextFromRuleContext"),j=c(((e,t,i)=>{if(e.isEmpty())return e;let s=i.get(e);if(s)return s;if(s=t.get(e),s)return i.set(e,s),s;let n,r=!1,o=[];for(let a=0;a<o.length;a++){const s=j(e.getParent(a),t,i);if(r||s!==e.getParent(a)){if(!r){o=[];for(let t=0;t<e.length;t++)o[t]=e.getParent(t);r=!0}o[a]=s}}return r?(n=0===o.length?N.instance:1===o.length?z(o[0]??void 0,e.getReturnState(0)):new V(o,e.returnStates),t.add(n),i.set(n,n),i.set(e,n),n):(t.add(e),i.set(e,e),e)}),"getCachedPredictionContext"),K=c(((e,t,i,s)=>{if(e===t||e.equals(t))return e;if(e instanceof A&&t instanceof A)return $(e,t,i,s);if(i){if(e instanceof N)return e;if(t instanceof N)return t}return e instanceof A&&(e=new V([e.parent],[e.returnState])),t instanceof A&&(t=new V([t.parent],[t.returnState])),Y(e,t,i,s)}),"merge"),Y=c(((e,t,i,s)=>{if(s){let i=s.get(e,t);if(i)return i;if(i=s.get(t,e),i)return i}let n=0,r=0,o=0,a=new Array(e.returnStates.length+t.returnStates.length).fill(0),c=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;n<e.returnStates.length&&r<t.returnStates.length;){const l=e.parents[n],h=t.parents[r];if(e.returnStates[n]===t.returnStates[r]){const t=e.returnStates[n];t===k.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[o]=l,a[o]=t):(c[o]=K(l,h,i,s),a[o]=t),n+=1,r+=1}else e.returnStates[n]<t.returnStates[r]?(c[o]=l,a[o]=e.returnStates[n],n+=1):(c[o]=h,a[o]=t.returnStates[r],r+=1);o+=1}if(n<e.returnStates.length)for(let h=n;h<e.returnStates.length;h++)c[o]=e.parents[h],a[o]=e.returnStates[h],o+=1;else for(let h=r;h<t.returnStates.length;h++)c[o]=t.parents[h],a[o]=t.returnStates[h],o+=1;if(o<c.length){if(1===o){const i=z(c[0]??void 0,a[0]);return null!==s&&s.set(e,t,i),i}c=c.slice(0,o),a=a.slice(0,o)}const l=new V(c,a);return l.equals(e)?(null!==s&&s.set(e,t,e),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):l.equals(t)?(null!==s&&s.set(e,t,t),t):(q(c),null!==s&&s.set(e,t,l),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> "+l),l)}),"mergeArrays"),q=c((e=>{const t=new P(u.instance);for(const i of e)i&&(t.containsKey(i)||t.set(i,i));for(let i=0;i<e.length;i++)e[i]&&(e[i]=t.get(e[i])??null)}),"combineCommonParents"),$=c(((e,t,i,s)=>{if(null!==s){let i=s.get(e,t);if(null!==i)return i;if(i=s.get(t,e),null!==i)return i}const n=Q(e,t,i);if(null!==n)return null!==s&&s.set(e,t,n),n;if(e.returnState===t.returnState){const n=K(e.parent,t.parent,i,s);if(n===e.parent)return e;if(n===t.parent)return t;const r=z(n,e.returnState);return null!==s&&s.set(e,t,r),r}{let i=null;if((e===t||null!==e.parent&&e.parent.equals(t.parent))&&(i=e.parent),null!==i){const n=[e.returnState,t.returnState];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState);const r=new V([i,i],n);return null!==s&&s.set(e,t,r),r}const n=[e.returnState,t.returnState];let r=[e.parent,t.parent];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState,r=[t.parent,e.parent]);const o=new V(r,n);return null!==s&&s.set(e,t,o),o}}),"mergeSingletons"),Q=c(((e,t,i)=>{if(i){if(e===N.instance||t===N.instance)return N.instance}else{if(e===N.instance&&t===N.instance)return N.instance;if(e===N.instance){const e=[t.returnState,k.EMPTY_RETURN_STATE],i=[t.parent,null];return new V(i,e)}if(t===N.instance){const t=[e.returnState,k.EMPTY_RETURN_STATE],i=[e.parent,null];return new V(i,t)}}return null}),"mergeRoot"),X=class e{constructor(e){this.atn=e}static{c(this,"LL1Analyzer")}static hitPredicate=r.INVALID_TYPE;getDecisionLookahead(t){if(!t)return;const i=t.transitions.length,s=new Array(i);for(let n=0;n<i;n++){const i=new _,r=new p;this.doLook(t.transitions[n].target,void 0,N.instance,i,r,new h,!1,!1),i.length>0&&!i.contains(e.hitPredicate)&&(s[n]=i)}return s}look(e,t,i){const s=new _,n=i?G(this.atn,i):null;return this.doLook(e,t,n,s,new p,new h,!0,!0),s}doLook(t,i,s,n,o,a,c,l){const h=T.createWithContext(t,0,s);if(!o.get(h)){if(o.add(h),t===i){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF)}if(t.constructor.stateType===x.RULE_STOP){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&l)return void n.addOne(r.EOF);if(s!==N.instance){const e=a.get(t.ruleIndex);try{a.clear(t.ruleIndex);for(let e=0;e<s.length;e++){const t=this.atn.states[s.getReturnState(e)];this.doLook(t,i,s.getParent(e),n,o,a,c,l)}}finally{e&&a.set(t.ruleIndex)}return}}for(const h of t.transitions)switch(h.transitionType){case I.RULE:{if(a.get(h.target.ruleIndex))continue;const e=z(s??void 0,h.followState.stateNumber);try{a.set(h.target.ruleIndex),this.doLook(h.target,i,e,n,o,a,c,l)}finally{a.clear(h.target.ruleIndex)}break}case I.PREDICATE:case I.PRECEDENCE:c?this.doLook(h.target,i,s,n,o,a,c,l):n.addOne(e.hitPredicate);break;case I.WILDCARD:n.addRange(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);break;default:if(h.isEpsilon)this.doLook(h.target,i,s,n,o,a,c,l);else{let e=h.label;e&&(h instanceof D&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),n.addSet(e))}}}}},Z=class{static{c(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];analyzer;constructor(e,t){this.grammarType=e,this.maxTokenType=t,this.analyzer=new X(this)}nextTokens(e,t){if(!t&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const i=this.analyzer.look(e,void 0,t);return t||(e.nextTokenWithinRule=i),i}addState(e){e&&(e.stateNumber=this.states.length),this.states.push(e)}removeState(e){this.states[e.stateNumber]=null}defineDecisionState(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision}getDecisionState(e){return 0===this.decisionToState.length?null:this.decisionToState[e]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new Error("Invalid state number.");const i=this.states[e];let s=this.nextTokens(i);if(!s.contains(r.EPSILON))return s;let n=t;const o=new _;for(o.addSet(s),o.removeOne(r.EPSILON);null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){const e=this.states[n.invokingState].transitions[0];s=this.nextTokens(e.followState),o.addSet(s),o.removeOne(r.EPSILON),n=n.parent}return s.contains(r.EPSILON)&&o.addOne(r.EOF),o}},J=class e{static{c(this,"KeyTypeEqualityComparer")}static instance=new e;hashCode(e){let t=7;return t=31*t+e.state.stateNumber,t=31*t+e.alt,t=31*t+e.semanticContext.hashCode(),t}equals(e,t){return e===t||e.state.stateNumber===t.state.stateNumber&&e.alt===t.alt&&e.semanticContext.equals(t.semanticContext)}},ee=class{static{c(this,"ATNConfigSet")}configLookup=new p(J.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#s=-1;constructor(e){if(void 0!==e)if("boolean"===typeof e)this.fullCtx=e??!0;else{const t=e;this.addAll(t.configs),this.uniqueAlt=t.uniqueAlt,this.conflictingAlts=t.conflictingAlts,this.hasSemanticContext=t.hasSemanticContext,this.dipsIntoOuterContext=t.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,t=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||e.state.constructor.stateType!==x.RULE_STOP||(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==y.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;const i=this.configLookup.getOrAdd(e);if(i===e)return this.#s=-1,void this.configs.push(e);const s=!this.fullCtx,n=K(i.context,e.context,s,t);i.reachesIntoOuterContext||=e.reachesIntoOuterContext,i.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,i.context=n}get elements(){return this.configs}getAlts(){const e=new h;for(const t of this.configs)e.set(t.alt);return e}getPredicates(){const e=[];for(const t of this.configs)t.semanticContext!==y.NONE&&e.push(t.semanticContext);return e}getStates(){const e=new p;for(const t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const t of this.configs)t.context=e.getCachedContext(t.context)}addAll(e){for(const t of e)this.add(t);return!1}equals(e){return this===e||!(this.fullCtx!==e.fullCtx||this.uniqueAlt!==e.uniqueAlt||this.conflictingAlts!==e.conflictingAlts||this.hasSemanticContext!==e.hasSemanticContext||this.dipsIntoOuterContext!==e.dipsIntoOuterContext||!E(this.configs,e.configs))}hashCode(){return-1===this.#s&&(this.#s=this.computeHashCode()),this.#s}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#s=-1,this.configLookup=new p(J.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return C(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=d.initialize();return this.configs.forEach((t=>{e=d.update(e,t.hashCode())})),e=d.finish(e,this.configs.length),e}},te=class extends x{static{c(this,"BasicState")}static stateType=x.BASIC},ie=class extends x{static{c(this,"DecisionState")}decision=-1;nonGreedy=!1},se=class extends ie{static{c(this,"BlockStartState")}endState},ne=class extends x{static{c(this,"BlockEndState")}static stateType=x.BLOCK_END;startState},re=class extends x{static{c(this,"LoopEndState")}static stateType=x.LOOP_END;loopBackState},oe=class extends x{static{c(this,"RuleStartState")}static stateType=x.RULE_START;stopState;isLeftRecursiveRule=!1},ae=class extends x{static{c(this,"RuleStopState")}static stateType=x.RULE_STOP},ce=class extends ie{static{c(this,"TokensStartState")}static stateType=x.TOKEN_START},le=class extends ie{static{c(this,"PlusLoopbackState")}static stateType=x.PLUS_LOOP_BACK},he=class extends x{static{c(this,"StarLoopbackState")}static stateType=x.STAR_LOOP_BACK},de=class extends ie{static{c(this,"StarLoopEntryState")}static stateType=x.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},ue=class extends se{static{c(this,"PlusBlockStartState")}static stateType=x.PLUS_BLOCK_START;loopBackState},ge=class extends se{static{c(this,"StarBlockStartState")}static stateType=x.STAR_BLOCK_START},pe=class extends se{static{c(this,"BasicBlockStartState")}static stateType=x.BLOCK_START},me=class extends I{static{c(this,"AtomTransition")}labelValue;#n;constructor(e,t){super(e),this.labelValue=t,this.#n=_.of(t,t)}get label(){return this.#n}get transitionType(){return I.ATOM}matches(e){return this.labelValue===e}toString(){return this.labelValue.toString()}},fe=class extends I{static{c(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.precedence=i,this.followState=s}get isEpsilon(){return!0}get transitionType(){return I.RULE}matches(e,t,i){return!1}},_e=class extends I{static{c(this,"RangeTransition")}start;stop;#n=new _;constructor(e,t,i){super(e),this.start=t,this.stop=i,this.#n.addRange(t,i)}get label(){return this.#n}get transitionType(){return I.RANGE}matches(e,t,i){return e>=this.start&&e<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},ve=class extends I{static{c(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.actionIndex=i??-1,this.isCtxDependent=s??!1}get isEpsilon(){return!0}get transitionType(){return I.ACTION}matches(e,t,i){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},Ce=class extends I{static{c(this,"EpsilonTransition")}#r;constructor(e,t=-1){super(e),this.#r=t}get outermostPrecedenceReturn(){return this.#r}get isEpsilon(){return!0}get transitionType(){return I.EPSILON}matches(){return!1}toString(){return"epsilon"}},Ee=class extends I{static{c(this,"WildcardTransition")}get transitionType(){return I.WILDCARD}matches(e,t,i){return e>=t&&e<=i}toString(){return"."}},be=class extends I{static{c(this,"AbstractPredicateTransition")}constructor(e){super(e)}},Se=class extends be{static{c(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.predIndex=i,this.isCtxDependent=s}get isEpsilon(){return!0}matches(e,t,i){return!1}get transitionType(){return I.PREDICATE}getPredicate(){return new y.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},ye=class extends be{static{c(this,"PrecedencePredicateTransition")}precedence;constructor(e,t){super(e),this.precedence=t}get isEpsilon(){return!0}matches(e,t,i){return!1}getPredicate(){return new y.PrecedencePredicate(this.precedence)}get transitionType(){return I.PRECEDENCE}toString(){return this.precedence+" >= _p"}},we=0,Re=1,Le=2,Te=3,xe=4,ke=5,Ae=6,Ne=7,Ie=class e{static{c(this,"LexerSkipAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Ae}equals(e){return e===this}hashCode(){return Ae}execute(e){e.skip()}toString(){return"skip"}},Oe=class e{static{c(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=we,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.channel),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}},De=class e{static{c(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=Re,this.ruleIndex=e,this.actionIndex=t}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.ruleIndex),e=d.update(e,this.actionIndex),this.cachedHashCode=d.finish(e,3)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex)}},Me=class e{static{c(this,"LexerMoreAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Te}equals(e){return e===this}hashCode(){return Te}execute(e){e.more()}toString(){return"more"}},Pe=class e{static{c(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Ne,this.type=e}execute(e){e.type=this.type}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.type),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.type===t.type}toString(){return"type("+this.type+")"}},Fe=class e{static{c(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=ke,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}},Ue=class e{static{c(this,"LexerPopModeAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=xe}equals(e){return e===this}hashCode(){return xe}execute(e){e.popMode()}toString(){return"popMode"}},He=class e{static{c(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Le,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}},Be=class e{static{c(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[x.INVALID_TYPE,void 0],[x.BASIC,te],[x.RULE_START,oe],[x.BLOCK_START,pe],[x.PLUS_BLOCK_START,ue],[x.STAR_BLOCK_START,ge],[x.TOKEN_START,ce],[x.RULE_STOP,ae],[x.BLOCK_END,ne],[x.STAR_LOOP_BACK,he],[x.STAR_LOOP_ENTRY,de],[x.PLUS_LOOP_BACK,le],[x.LOOP_END,re]]);static lexerActionFactoryMapper=new Map([[we,e=>new Oe(e)],[Re,(e,t)=>new De(e,t)],[Le,e=>new He(e)],[Te,()=>Me.instance],[xe,()=>Ue.instance],[ke,e=>new Fe(e)],[Ae,()=>Ie.instance],[Ne,e=>new Pe(e)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(e){e||(e={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=e}deserialize(e){this.data=e,this.checkVersion();const t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);const i=[];return this.readSets(t,i),this.readEdges(t,i),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===Z.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t}checkVersion(){const t=this.data[this.pos++];if(t!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+t+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){const e=this.data[this.pos++],t=this.data[this.pos++];return new Z(e,t)}readStates(e){let t,i;const s=[],n=[],r=this.data[this.pos++];for(let c=0;c<r;c++){const t=this.data[this.pos++];if(t===x.INVALID_TYPE){e.addState(null);continue}const i=this.data[this.pos++],r=this.stateFactory(t,i);if(t===x.LOOP_END){const e=this.data[this.pos++];s.push([r,e])}else if(r instanceof se){const e=this.data[this.pos++];n.push([r,e])}e.addState(r)}for(t=0;t<s.length;t++){const i=s[t];i[0].loopBackState=e.states[i[1]]??void 0}for(t=0;t<n.length;t++){const i=n[t];i[0].endState=e.states[i[1]]}const o=this.data[this.pos++];for(t=0;t<o;t++)i=this.data[this.pos++],e.states[i].nonGreedy=!0;const a=this.data[this.pos++];for(t=0;t<a;t++)i=this.data[this.pos++],e.states[i].isLeftRecursiveRule=!0}readRules(e){let t;const i=this.data[this.pos++];for(e.grammarType===Z.LEXER&&(e.ruleToTokenType=new Array(i),e.ruleToTokenType.fill(0)),e.ruleToStartState=new Array(i),e.ruleToStartState.fill(null),t=0;t<i;t++){const i=this.data[this.pos++];if(e.ruleToStartState[t]=e.states[i],e.grammarType===Z.LEXER){const i=this.data[this.pos++];e.ruleToTokenType[t]=i}}for(e.ruleToStopState=new Array(i),e.ruleToStopState.fill(null),t=0;t<e.states.length;t++){const i=e.states[t];i instanceof ae&&(e.ruleToStopState[i.ruleIndex]=i,e.ruleToStartState[i.ruleIndex].stopState=i)}}readModes(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++];e.modeToStartState.push(e.states[t])}}readSets(e,t){const i=this.data[this.pos++];for(let s=0;s<i;s++){const e=new _;t.push(e);const i=this.data[this.pos++];0!==this.data[this.pos++]&&e.addOne(-1);for(let t=0;t<i;t++){const t=this.data[this.pos++],i=this.data[this.pos++];e.addRange(t,i)}}}readEdges(e,t){let i,s,n,r,o;const a=this.data[this.pos++];for(i=0;i<a;i++){const i=this.data[this.pos++],s=this.data[this.pos++],n=this.data[this.pos++],o=this.data[this.pos++],a=this.data[this.pos++],c=this.data[this.pos++];r=this.edgeFactory(e,n,s,o,a,c,t);e.states[i].addTransition(r)}for(i=0;i<e.states.length;i++)for(n=e.states[i],s=0;s<n.transitions.length;s++){const t=n.transitions[s];if(!(t instanceof fe))continue;let i=-1;e.ruleToStartState[t.target.ruleIndex].isLeftRecursiveRule&&0===t.precedence&&(i=t.target.ruleIndex),r=new Ce(t.followState,i),e.ruleToStopState[t.target.ruleIndex].addTransition(r)}for(i=0;i<e.states.length;i++){if(n=e.states[i],n instanceof se){if(!n.endState)throw new Error("IllegalState");if(n.endState.startState)throw new Error("IllegalState");n.endState.startState=n}if(n instanceof le)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof ue&&(o.loopBackState=n);else if(n instanceof he)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof de&&(o.loopBackState=n)}}readDecisions(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++],s=e.states[t];e.decisionToState.push(s),s.decision=i}}readLexerActions(e){if(e.grammarType===Z.LEXER){const t=this.data[this.pos++];e.lexerActions=[];for(let i=0;i<t;i++){const t=this.data[this.pos++],i=this.data[this.pos++],s=this.data[this.pos++];e.lexerActions.push(this.lexerActionFactory(t,i,s))}}}generateRuleBypassTransitions(e){let t;const i=e.ruleToStartState.length;for(t=0;t<i;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<i;t++)this.generateRuleBypassTransition(e,t)}generateRuleBypassTransition(e,t){let i,s;const n=new pe;n.ruleIndex=t,e.addState(n);const r=new ne;r.ruleIndex=t,e.addState(r),n.endState=r,e.defineDecisionState(n),r.startState=n;let o=null,a=null;if(e.ruleToStartState[t].isLeftRecursiveRule){for(a=null,i=0;i<e.states.length;i++)if(s=e.states[i],this.stateIsEndStateFor(s,t)){a=s,o=s.loopBackState.transitions[0];break}if(null===o)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else a=e.ruleToStopState[t];for(i=0;i<e.states.length;i++){s=e.states[i];for(const e of s.transitions)e!==o&&e.target===a&&(e.target=r)}const c=e.ruleToStartState[t];for(;c.transitions.length>0;){const e=c.removeTransition(c.transitions.length-1);n.addTransition(e)}e.ruleToStartState[t].addTransition(new Ce(n)),a&&r.addTransition(new Ce(a));const l=new te;e.addState(l),l.addTransition(new me(r,e.ruleToTokenType[t])),n.addTransition(new Ce(l))}stateIsEndStateFor(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof de))return null;const i=e.transitions[e.transitions.length-1].target;return i instanceof re&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof ae?e:null}markPrecedenceDecisions(e){for(const t of e.states)if(t instanceof de&&e.ruleToStartState[t.ruleIndex].isLeftRecursiveRule){const e=t.transitions[t.transitions.length-1].target;e instanceof re&&e.epsilonOnlyTransitions&&e.transitions[0].target instanceof ae&&(t.precedenceRuleDecision=!0)}}verifyATN(e){if(this.deserializationOptions.verifyATN)for(const t of e.states)if(null!==t)if(this.checkCondition(t.epsilonOnlyTransitions||t.transitions.length<=1),t instanceof ue)this.checkCondition(null!==t.loopBackState);else if(t instanceof de)if(this.checkCondition(null!==t.loopBackState),this.checkCondition(2===t.transitions.length),t.transitions[0].target instanceof ge)this.checkCondition(t.transitions[1].target instanceof re),this.checkCondition(!t.nonGreedy);else{if(!(t.transitions[0].target instanceof re))throw new Error("IllegalState");this.checkCondition(t.transitions[1].target instanceof ge),this.checkCondition(t.nonGreedy)}else t instanceof he?(this.checkCondition(1===t.transitions.length),this.checkCondition(t.transitions[0].target instanceof de)):t instanceof re?this.checkCondition(null!==t.loopBackState):t instanceof oe?this.checkCondition(null!==t.stopState):t instanceof se?this.checkCondition(null!==t.endState):t instanceof ne?this.checkCondition(null!==t.startState):t instanceof ie?this.checkCondition(t.transitions.length<=1||t.decision>=0):this.checkCondition(t.transitions.length<=1||t instanceof ae)}checkCondition(e,t){if(!e)throw void 0!==t&&null!==t||(t="IllegalState"),t}edgeFactory(e,t,i,s,n,o,a){const c=e.states[i];switch(t){case I.EPSILON:return new Ce(c);case I.RANGE:return new _e(c,0!==o?r.EOF:s,n);case I.RULE:return new fe(e.states[s],n,o,c);case I.PREDICATE:return new Se(c,s,n,0!==o);case I.PRECEDENCE:return new ye(c,s);case I.ATOM:return new me(c,0!==o?r.EOF:s);case I.ACTION:return new ve(c,s,n,0!==o);case I.SET:return new O(c,a[s]);case I.NOT_SET:return new D(c,a[s]);case I.WILDCARD:return new Ee(c);default:throw new Error("The specified transition type: "+t+" is not valid.")}}stateFactory(t,i){const s=e.stateTypeMapper.get(t);if(!s)throw new Error("The specified state type "+t+" is not valid.");const n=new s;return n.ruleIndex=i,n}lexerActionFactory(t,i,s){const n=e.lexerActionFactoryMapper.get(t);if(!n)throw new Error("The specified lexer action type "+t+" is not valid.");return n(i,s)}},We=class e extends P{static{c(this,"OrderedHashMap")}#o=[];clear(){super.clear(),this.#o=[]}get(e){return super.get(e)}set(e,t){const i=super.set(e,t);return void 0===i&&this.#o.push(e),i}setIfAbsent(e,t){const i=super.setIfAbsent(e,t);return void 0===i&&this.#o.push(e),i}values(){return{[Symbol.iterator]:()=>{let e=0;return{next:c((()=>e<this.#o.length?{done:!1,value:super.get(this.#o[e++])}:{done:!0,value:void 0}),"next")}}}}keys(){return this.#o[Symbol.iterator]()}equals(t){return t instanceof e&&super.equals(t)}},Ve=(class e{static{c(this,"ATNSerializer")}atn;data=[];sets=new We(u.instance);nonGreedyStates=[];precedenceStates=[];constructor(e){this.atn=e}static getSerialized(t){return new e(t).serialize()}static serializeSets(e,t){e.push(t.length);for(const i of t){const t=i.contains(r.EOF),s=[...i];t&&s[0].stop===r.EOF?e.push(s.length-1):e.push(s.length),e.push(t?1:0);for(const i of s){if(i.start===r.EOF){if(i.stop===r.EOF)continue;e.push(0)}else e.push(i.start);e.push(i.stop)}}}serialize(){this.addPreamble();const e=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();const t=this.addSets();return this.addEdges(e,t),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Be.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===Z.LEXER){this.data.push(this.atn.lexerActions.length);for(const e of this.atn.lexerActions)switch(this.data.push(e.actionType),e.actionType){case we:{const t=e.channel;this.data.push(t),this.data.push(0);break}case Re:{const t=e.ruleIndex,i=e.actionIndex;this.data.push(t),this.data.push(i);break}case Le:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Te:case xe:this.data.push(0),this.data.push(0);break;case ke:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Ae:this.data.push(0),this.data.push(0);break;case Ne:{const t=e.type;this.data.push(t),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${e.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const e of this.atn.decisionToState)this.data.push(e.stateNumber)}addEdges(...e){switch(e.length){case 0:{let e=0;this.data.push(this.atn.states.length);for(const t of this.atn.states){if(null===t){this.data.push(x.INVALID_TYPE);continue}const i=t.constructor.stateType;t instanceof ie&&t.nonGreedy&&this.nonGreedyStates.push(t.stateNumber),t instanceof oe&&t.isLeftRecursiveRule&&this.precedenceStates.push(t.stateNumber),this.data.push(i),this.data.push(t.ruleIndex),t.constructor.stateType===x.LOOP_END?this.data.push(t.loopBackState.stateNumber):t instanceof se&&this.data.push(t.endState.stateNumber),t.constructor.stateType!==x.RULE_STOP&&(e+=t.transitions.length);for(const e of t.transitions){const t=e.transitionType;if(t===I.SET||t===I.NOT_SET){const t=e;this.sets.set(t.set,!0)}}}return e}case 2:{const[t,i]=e;this.data.push(t);for(const e of this.atn.states)if(null!==e&&e.constructor.stateType!==x.RULE_STOP)for(const t of e.transitions){if(null===this.atn.states[t.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const s=e.stateNumber;let n=t.target.stateNumber;const o=t.transitionType;let a=0,c=0,l=0;switch(o){case I.RULE:n=t.followState.stateNumber,a=t.target.stateNumber,c=t.ruleIndex,l=t.precedence;break;case I.PRECEDENCE:a=t.precedence;break;case I.PREDICATE:{const e=t;a=e.ruleIndex,c=e.predIndex,l=e.isCtxDependent?1:0;break}case I.RANGE:a=t.start,c=t.stop,a===r.EOF&&(a=0,l=1);break;case I.ATOM:a=t.labelValue,a===r.EOF&&(a=0,l=1);break;case I.ACTION:{const e=t;a=e.ruleIndex,c=e.actionIndex,l=e.isCtxDependent?1:0;break}case I.SET:case I.NOT_SET:a=i.get(t.set)}this.data.push(s),this.data.push(n),this.data.push(o),this.data.push(a),this.data.push(c),this.data.push(l)}break}default:throw new Error("Invalid number of arguments")}}addSets(){e.serializeSets(this.data,[...this.sets.keys()]);const t=new P;let i=0;for(const e of this.sets.keys())t.set(e,i++);return t}addModeStartStates(){const e=this.atn.modeToStartState.length;if(this.data.push(e),e>0)for(const t of this.atn.modeToStartState)this.data.push(t.stateNumber)}addRuleStatesAndLexerTokenTypes(){const e=this.atn.ruleToStartState.length;this.data.push(e);for(let t=0;t<e;t++){const e=this.atn.ruleToStartState[t];this.data.push(e.stateNumber),this.atn.grammarType===Z.LEXER&&this.data.push(this.atn.ruleToTokenType[t])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const e of this.precedenceStates)this.data.push(e)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const e of this.nonGreedyStates)this.data.push(e)}},class e{static{c(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(e){e&&(this.configs=e)}static fromState(t){const i=new e;return i.stateNumber=t,i}static fromConfigs(t){return new e(t)}static hashCode(e){return e.configs.hashCode()}static equals(e,t){return e.configs.equals(t.configs)}getAltSet(){const e=new Set;for(const t of this.configs)e.add(t.alt);return 0===e.size?null:e}toString(){let e="";return e+=this.stateNumber,e+=":",e+=this.configs?this.configs.toString():"",this.isAcceptState&&(e+="=>",this.predicates?e+=C(this.predicates):e+=this.prediction),e.toString()}}),ze=class{static{c(this,"ATNSimulator")}static ERROR=Ve.fromState(2147483647);atn;sharedContextCache;constructor(e,t){return this.atn=e,this.sharedContextCache=t,this}getCachedContext(e){if(!this.sharedContextCache)return e;const t=new P(u.instance);return j(e,this.sharedContextCache,t)}},Ge=(class e{static{c(this,"CodePointTransitions")}static createWithCodePoint(t,i){return e.createWithCodePointRange(t,i,i)}static createWithCodePointRange(e,t,i){return t===i?new me(e,t):new _e(e,t,i)}},class{static{c(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),je=class e extends T{static{c(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(t,i,s,n){return super(t,i,s??t.context,s?y.NONE:t.semanticContext),this.lexerActionExecutor=s?n:t.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=e.checkNonGreedyDecision(t,this.state),this}static createWithExecutor(t,i,s){return new e(t,i,t.context,s)}static createWithConfig(t,i,s){return new e(i,t,s??null,i.lexerActionExecutor)}static createWithContext(t,i,s){return new e({alt:i},t,s,null)}static checkNonGreedyDecision(e,t){return e.passedThroughNonGreedyDecision||"nonGreedy"in t&&t.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.context),e=d.updateFromComparable(e,this.semanticContext),e=d.update(e,this.passedThroughNonGreedyDecision?1:0),e=d.updateFromComparable(e,this.lexerActionExecutor),e=d.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},Ke=class{static{c(this,"BaseErrorListener")}syntaxError(e,t,i,s,n,r){}reportAmbiguity(e,t,i,s,n,r,o){}reportAttemptingFullContext(e,t,i,s,n,r){}reportContextSensitivity(e,t,i,s,n,r){}},Ye=class e extends Ke{static{c(this,"ConsoleErrorListener")}static instance=new e;syntaxError(e,t,i,s,n,r){console.error("line "+i+":"+s+" "+n)}},qe=class extends Ke{constructor(e){return super(),this.delegates=e,this}static{c(this,"ProxyErrorListener")}syntaxError(e,t,i,s,n,r){this.delegates.forEach((o=>{o.syntaxError(e,t,i,s,n,r)}))}reportAmbiguity(e,t,i,s,n,r,o){this.delegates.forEach((a=>{a.reportAmbiguity(e,t,i,s,n,r,o)}))}reportAttemptingFullContext(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportAttemptingFullContext(e,t,i,s,n,r)}))}reportContextSensitivity(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportContextSensitivity(e,t,i,s,n,r)}))}},$e=class e{static{c(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;listeners=[Ye.instance];stateNumber=-1;checkVersion(e){const t="4.13.1";t!==e&&console.error("ANTLR runtime and generated code versions disagree: "+t+"!="+e)}addErrorListener(e){this.listeners.push(e)}removeErrorListeners(){this.listeners=[]}removeErrorListener(e){for(let t=0;t<this.listeners.length;t++)if(this.listeners[t]===e)return void this.listeners.splice(t,1)}getErrorListeners(){return this.listeners}getTokenTypeMap(){const t=this.vocabulary;let i=e.tokenTypeMapCache.get(t);if(!i){i=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){const s=t.getLiteralName(e);s&&i.set(s,e);const n=t.getSymbolicName(e);n&&i.set(n,e)}i.set("EOF",r.EOF),e.tokenTypeMapCache.set(t,i)}return i}getRuleIndexMap(){const t=this.ruleNames;let i=e.ruleIndexMapCache.get(t);return i||(i=new Map,t.forEach(((e,t)=>i.set(e,t))),e.ruleIndexMapCache.set(t,i)),i}getTokenType(e){const t=this.getTokenTypeMap().get(e);return t||r.INVALID_TYPE}getErrorHeader(e){const t=e.offendingToken?.line,i=e.offendingToken?.column;return"line "+t+":"+i}get errorListenerDispatch(){return new qe(this.listeners)}sempred(e,t,i){return!0}precpred(e,t){return!0}action(e,t,i){}get atn(){return this.interpreter.atn}get state(){return this.stateNumber}set state(e){this.stateNumber=e}getParseInfo(){}},Qe=class e{static{c(this,"CommonTokenFactory")}static DEFAULT=new e;copyText=!1;constructor(e){this.copyText=e??!1}create(e,t,i,s,n,r,o,a){const c=H.fromSource(e,t,s,n,r);return c.line=o,c.column=a,i?c.text=i:this.copyText&&null!==e[1]&&(c.text=e[1].getTextFromRange(n,r)),c}},Xe=class e extends Error{static{c(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},Ze=class extends Xe{static{c(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(e,t,i,s){super({message:"",recognizer:e,input:t,ctx:null}),this.startIndex=i,this.deadEndConfigs=s}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getTextFromRange(this.startIndex,this.startIndex)),`LexerNoViableAltException(${e})`}},Je=class e extends $e{static{c(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL;static HIDDEN=r.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=e.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;input;token=null;hitEOF=!1;factory;#a=[];#i;constructor(e,t){super(),this.options={...this.options,...t},this.input=e,this.factory=Qe.DEFAULT}reset(t=!0){t&&this.input.seek(0),this.token=null,this.type=r.INVALID_TYPE,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.hitEOF=!1,this.mode=e.DEFAULT_MODE,this.#a=[],this.interpreter.reset()}nextToken(){if(null===this.input)throw new Error("nextToken requires a non-null input stream.");const t=this.input.mark();try{for(;;){if(this.hitEOF)return this.emitEOF(),this.token;this.token=null,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.input.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let t=!1;for(;;){this.type=r.INVALID_TYPE;let s=e.SKIP;try{s=this.interpreter.match(this.input,this.mode)}catch(i){if(!(i instanceof Ze))throw i;this.notifyListeners(i),this.recover(i)}if(this.input.LA(1)===r.EOF&&(this.hitEOF=!0),this.type===r.INVALID_TYPE&&(this.type=s),this.type===e.SKIP){t=!0;break}if(this.type!==e.MORE)break}if(!t)return null===this.token&&this.emit(),this.token}}finally{this.input.release(t)}}skip(){this.type=e.SKIP}more(){this.type=e.MORE}pushMode(e){at.debug&&console.log("pushMode "+e),this.#a.push(this.mode),this.mode=e}popMode(){if(0===this.#a.length)throw new Error("Empty Stack");return at.debug&&console.log("popMode back to "+this.#a.slice(0,-1)),this.mode=this.#a.pop(),this.mode}get modeStack(){return this.#a}emitToken(e){this.token=e}emit(){const e=this.factory.create([this,this.input],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(e),e}emitEOF(){const e=this.factory.create([this,this.input],r.EOF,void 0,r.DEFAULT_CHANNEL,this.input.index,this.input.index-1,this.line,this.column);return this.emitToken(e),e}getCharIndex(){return this.input.index}getAllTokens(){const e=[];let t=this.nextToken();for(;t.type!==r.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){const t=this.tokenStartCharIndex,i=this.input.index,s=this.input.getTextFromRange(t,i),n="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,n,e)}getErrorDisplay(e){return e}getErrorDisplayForChar(e){return e.charCodeAt(0)===r.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(e){return"'"+this.getErrorDisplayForChar(e)+"'"}recover(e){this.input.LA(1)!==r.EOF&&(e instanceof Ze?this.interpreter.consume(this.input):this.input.consume())}get inputStream(){return this.input}set inputStream(e){this.reset(!1),this.input=e}set tokenFactory(e){this.factory=e}get tokenFactory(){return this.factory}get sourceName(){return this.input.getSourceName()}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get column(){return this.interpreter.column}set column(e){this.interpreter.column=e}get text(){return this.#i?this.#i:this.interpreter.getText(this.input)}set text(e){this.#i=e}},et=class{static{c(this,"DFASerializer")}dfa;vocabulary;constructor(e,t){this.dfa=e,this.vocabulary=t}toString(){if(!this.dfa.s0)return"";let e="";const t=this.dfa.getStates();for(const i of t){let t=0;t=i.edges.length;for(let s=0;s<t;s++){const t=i.edges[s];if(t&&2147483647!==t.stateNumber){e+=this.getStateString(i);e+="-",e+=this.getEdgeLabel(s),e+="->",e+=this.getStateString(t),e+="\n"}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){const t=e.stateNumber,i=(e.isAcceptState?":":"")+"s"+t+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?`${i}=>${e.predicates.toString()}`:`${i}=>${e.prediction}`:`${i}`}},tt=class extends et{static{c(this,"LexerDFASerializer")}constructor(e){super(e,f.EMPTY_VOCABULARY)}getEdgeLabel=c((e=>"'"+String.fromCharCode(e)+"'"),"getEdgeLabel")},it=class{static{c(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;states=new Map;constructor(e,t){this.atnStartState=e,this.decision=t??0;let i=!1;e instanceof de&&e.precedenceRuleDecision&&(i=!0,this.s0=Ve.fromState(-1)),this.isPrecedenceDfa=i}[Symbol.iterator]=()=>this.states.values()[Symbol.iterator]();getPrecedenceStartState=c((e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]}),"getPrecedenceStartState");setPrecedenceStartState=c(((e,t)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=t)}),"setPrecedenceStartState");getStates(){const e=[...this.states.values()];return e.sort(((e,t)=>e.stateNumber-t.stateNumber)),e}getState(e){return this.states.get(e.configs.hashCode())??null}getStateForConfigs(e){return this.states.get(e.hashCode())??null}addState(e){const t=e.configs.hashCode();this.states.has(t)||(this.states.set(t,e),e.stateNumber=this.states.size-1)}toString(e){if(!e)return this.toString(f.EMPTY_VOCABULARY);if(!this.s0)return"";return new et(this,e).toString()??""}toLexerString(){if(!this.s0)return"";return new tt(this).toString()??""}get length(){return this.states.size}},st=class e{static{c(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=t.actionType,this.offset=e,this.action=t}execute(e){this.action.execute(e)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.offset),e=d.updateFromComparable(e,this.action),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.offset===t.offset&&this.action===t.action)}},nt=class e{static{c(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){return this.actionType=-1,this.lexerActions=e??[],this}static append(t,i){if(null===t)return new e([i]);const s=t.lexerActions.concat([i]);return new e(s)}fixOffsetBeforeMatch(t){let i=null;for(let e=0;e<this.lexerActions.length;e++)!this.lexerActions[e].isPositionDependent||this.lexerActions[e]instanceof st||(null===i&&(i=this.lexerActions.concat([])),i[e]=new st(t,this.lexerActions[e]));return null===i?this:new e(i)}execute(e,t,i){if(void 0===t||void 0===i)return;let s=!1;const n=t.index;try{for(const r of this.lexerActions){let o=r;if(r instanceof st){const e=r.offset;t.seek(i+e),o=r.action,s=i+e!==n}else r.isPositionDependent&&(t.seek(n),s=!1);o.execute(e)}}finally{s&&t.seek(n)}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);for(const t of this.lexerActions)e=d.update(e,t.hashCode());this.cachedHashCode=d.finish(e,this.lexerActions.length)}return this.cachedHashCode}equals(e){return this===e||this.cachedHashCode===e.cachedHashCode&&(this.lexerActions.length===e.lexerActions.length&&this.lexerActions.every(((t,i)=>t.equals(e.lexerActions[i]))))}},rt=class e extends p{static{c(this,"OrderedHashSet")}elements=[];getOrAdd(e){const t=this.size,i=super.getOrAdd(e);return this.size>t&&this.elements.push(e),i}equals(t){return t instanceof e&&super.equals(t)}clear(){super.clear(),this.elements=[]}*[Symbol.iterator](){yield*this.elements}toArray(){return this.elements.slice(0)}},ot=class extends ee{static{c(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new rt}},at=class e extends ze{static{c(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Je.DEFAULT_MODE;prevAccept;options;lexerATNConfigFactory;constructor(e,t,i,s){super(t,s),this.decisionToDFA=i,this.recognizer=e,this.options=e?e.options:{minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111}}match(e,t){this.mode=t;const i=e.mark();try{this.startIndex=e.index,this.prevAccept=void 0;const i=this.decisionToDFA[t];return i.s0?this.execATN(e,i.s0):this.matchATN(e)}finally{e.release(i)}}reset(){this.prevAccept=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Je.DEFAULT_MODE}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getTextFromRange(this.startIndex,e.index-1)}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return e===r.EOF?"EOF":"'"+String.fromCharCode(e)+"'"}matchATN(t){const i=this.atn.modeToStartState[this.mode];e.debug&&console.log("matchATN mode "+this.mode+" start: "+i);const s=this.mode,n=this.computeStartState(t,i),r=n.hasSemanticContext;n.hasSemanticContext=!1;const o=this.addDFAState(n);r||(this.decisionToDFA[this.mode].s0=o);const a=this.execATN(t,o);return e.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[s].toLexerString()),a}execATN(t,i){e.debug&&console.log("start state closure="+i.configs),i.isAcceptState&&this.captureSimState(t,i);let s=t.LA(1);for(;;){e.debug&&console.log("execATN loop starting closure: "+i.configs);let n=this.getExistingTargetState(i,s);if(n||(n=this.computeTargetState(t,i,s)),n===ze.ERROR)break;if(s!==r.EOF&&this.consume(t),n.isAcceptState&&(this.captureSimState(t,n),s===r.EOF))break;s=t.LA(1),i=n}return this.failOrAccept(t,i.configs,s)}getExistingTargetState(t,i){if(i>=this.options.minDFAEdge&&i<=this.options.maxDFAEdge){const s=t.edges[i-this.options.minDFAEdge];return e.debug&&s&&console.log("reuse state "+t.stateNumber+" edge to "+s.stateNumber),s}}computeTargetState(e,t,i){const s=new ot;return this.getReachableConfigSet(e,t.configs,s,i),0===s.length?(s.hasSemanticContext||this.addDFAEdge(t,i,ze.ERROR),ze.ERROR):this.addDFAEdge(t,i,null,s)}failOrAccept(e,t,i){if(this.prevAccept?.dfaState){const{dfaState:t,index:i,line:s,column:n}=this.prevAccept;return this.accept(e,t.lexerActionExecutor,this.startIndex,i,s,n),t.prediction}if(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new Ze(this.recognizer,e,this.startIndex,t)}getReachableConfigSet(t,i,s,n){let o=Z.INVALID_ALT_NUMBER;for(const a of i){const i=a.alt===o;if(!i||!a.passedThroughNonGreedyDecision){e.debug&&console.log("testing %s at %s\n",this.getTokenName(n),a.toString(this.recognizer,!0));for(const e of a.state.transitions){const c=this.getReachableTarget(e,n);if(c){let e=a.lexerActionExecutor;e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const l=n===r.EOF,h=je.createWithExecutor(a,c,e);this.closure(t,h,s,i,!0,l)&&(o=a.alt)}}}}}accept(t,i,s,n,r,o){e.debug&&console.log("ACTION %s\n",i),t.seek(n),this.line=r,this.column=o,i&&this.recognizer&&i.execute(this.recognizer,t,s)}getReachableTarget(e,t){return e.matches(t,this.options.minCodePoint,this.options.maxCodePoint)?e.target:void 0}computeStartState(e,t){const i=N.instance,s=new ot;for(let n=0;n<t.transitions.length;n++){const r=t.transitions[n].target,o=je.createWithContext(r,n+1,i);this.closure(e,o,s,!1,!1,!1)}return s}closure(t,i,s,n,r,o){let a=null;if(e.debug&&console.log("closure("+i.toString(this.recognizer,!0)+")"),i.state.constructor.stateType===x.RULE_STOP){if(e.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[i.state.ruleIndex],i):console.log("closure at rule stop %s\n",i)),!i.context||i.context.hasEmptyPath()){if(!i.context||i.context.isEmpty())return s.add(i),!0;s.add(je.createWithConfig(i.state,i,N.instance)),n=!0}if(i.context&&!i.context.isEmpty())for(let e=0;e<i.context.length;e++)if(i.context.getReturnState(e)!==k.EMPTY_RETURN_STATE){const c=i.context.getParent(e),l=this.atn.states[i.context.getReturnState(e)];a=je.createWithConfig(l,i,c),n=this.closure(t,a,s,n,r,o)}return n}i.state.epsilonOnlyTransitions||n&&i.passedThroughNonGreedyDecision||s.add(i);for(const e of i.state.transitions)a=this.getEpsilonTarget(t,i,e,s,r,o),a&&(n=this.closure(t,a,s,n,r,o));return n}getEpsilonTarget(e,t,i,s,n,r){this.lexerATNConfigFactory||this.setupATNFactoryLookup();const o=this.lexerATNConfigFactory[i.transitionType];return o?o(e,t,i,s,n,r):null}setupATNFactoryLookup(){this.lexerATNConfigFactory=[],this.lexerATNConfigFactory[I.RULE]=(e,t,i)=>{const s=z(t.context??void 0,i.followState.stateNumber);return je.createWithConfig(i.target,t,s)},this.lexerATNConfigFactory[I.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.lexerATNConfigFactory[I.PREDICATE]=(t,i,s,n,r)=>{const o=s;return e.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),n.hasSemanticContext=!0,this.evaluatePredicate(t,o.ruleIndex,o.predIndex,r)?je.createWithConfig(s.target,i):null},this.lexerATNConfigFactory[I.ACTION]=(e,t,i)=>{if(null===t.context||t.context.hasEmptyPath()){const e=nt.append(t.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);return je.createWithExecutor(t,i.target,e)}return je.createWithConfig(i.target,t)},this.lexerATNConfigFactory[I.EPSILON]=(e,t,i)=>je.createWithConfig(i.target,t);const t=c(((e,t,i,s,n,o)=>o&&i.matches(r.EOF,this.options.minCodePoint,this.options.maxCodePoint)?je.createWithConfig(i.target,t):null),"simple");this.lexerATNConfigFactory[I.ATOM]=t,this.lexerATNConfigFactory[I.RANGE]=t,this.lexerATNConfigFactory[I.SET]=t}evaluatePredicate(e,t,i,s){if(!this.recognizer)return!0;if(!s)return this.recognizer.sempred(null,t,i);const n=this.column,r=this.line,o=e.index,a=e.mark();try{return this.consume(e),this.recognizer.sempred(null,t,i)}finally{this.column=n,this.line=r,e.seek(o),e.release(a)}}captureSimState(e,t){this.prevAccept={index:e.index,line:this.line,column:this.column,dfaState:t}}addDFAEdge(t,i,s,n){if(!s&&n){const e=n.hasSemanticContext;if(n.hasSemanticContext=!1,s=this.addDFAState(n),e)return s}return i<this.options.minDFAEdge||i>this.options.maxDFAEdge||(e.debug&&console.log("EDGE "+t+" -> "+s+" upon "+i),t.edges[i-this.options.minDFAEdge]=s),s}addDFAState(e){const t=this.decisionToDFA[this.mode],i=t.getStateForConfigs(e);if(i)return i;const s=Ve.fromConfigs(e),n=e.firstStopState;return n&&(s.isAcceptState=!0,s.lexerActionExecutor=n.lexerActionExecutor,s.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]),e.setReadonly(!0),t.addState(s),s}},ct=class{static{c(this,"ParseInfo")}atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const e=this.atnSimulator.getDecisionInfo(),t=new Array;for(let i=0;i<e.length;i++){e[i].llFallback>0&&t.push(i)}return t}getTotalTimeInPrediction(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.timeInPrediction;return t}getTotalSLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllTotalLook;return t}getTotalLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llTotalLook;return t}getTotalSLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions;return t}getTotalLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llATNTransitions;return t}getTotalATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions,t+=i.llATNTransitions;return t}getDFASize(e){if(void 0===e){let e=0;const t=this.atnSimulator.decisionToDFA;for(let i=0;i<t.length;i++)e+=this.getDFASize(i);return e}return this.atnSimulator.decisionToDFA[e].length}},lt=class extends Xe{static{c(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(e,t=null,i=null,s=null,n=null,r=null){r=r??e.context,s=s??e.getCurrentToken(),i=i??e.getCurrentToken(),super({message:"",recognizer:e,input:t=t??e.inputStream,ctx:r}),this.deadEndConfigs=n,this.startToken=i,this.offendingToken=s}},ht=class{static{c(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new P}get(e,t){const i=this.cacheMap.get(e)??null;return null===i?null:i.get(t)??null}set(e,t,i){let s=this.cacheMap.get(e);s||(s=new P,this.cacheMap.set(e,s)),s.set(t,i)}},dt=class e{static{c(this,"SubsetEqualityComparer")}static instance=new e;hashCode(e){let t=d.initialize(7);return t=d.update(t,e.state.stateNumber),t=d.updateFromComparable(t,e.context),t=d.finish(t,2),t}equals(e,t){return e.state.stateNumber===t.state.stateNumber&&(e.context?.equals(t.context)??!0)}},ut=class e{static{c(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(t,i){if(e.allConfigsInRuleStopStates(i))return!0;if(t===e.SLL&&i.hasSemanticContext){const e=new ee;for(let t of i)t=T.duplicate(t,y.NONE),e.add(t);i=e}const s=e.getConflictingAltSubsets(i);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(i)}static hasConfigInRuleStopState(e){for(const t of e)if(t.state instanceof ae)return!0;return!1}static allConfigsInRuleStopStates(e){for(const t of e)if(!(t.state instanceof ae))return!1;return!0}static resolvesToJustOneViableAlt(t){return e.getSingleViableAlt(t)}static allSubsetsConflict(t){return!e.hasNonConflictingAltSet(t)}static hasNonConflictingAltSet(e){for(const t of e)if(1===t.length)return!0;return!1}static hasConflictingAltSet(e){for(const t of e)if(t.length>1)return!0;return!1}static allSubsetsEqual(e){let t=null;for(const i of e)if(null===t)t=i;else if(i!==t)return!1;return!0}static getUniqueAlt(t){const i=e.getAlts(t);return 1===i.length?i.nextSetBit(0):Z.INVALID_ALT_NUMBER}static getAlts(e){const t=new h;return e.forEach((e=>{t.or(e)})),t}static getConflictingAltSubsets(e){const t=new P(dt.instance);for(const i of e){let e=t.get(i);e||(e=new h,t.set(i,e)),e.set(i.alt)}return Array.from(t.values())}static getStateToAltMap(e){const t=new P(u.instance);for(const i of e){let e=t.get(i.state);e||(e=new h,t.set(i.state,e)),e.set(i.alt)}return t}static hasStateAssociatedWithOneAlt(e){const t={};for(const i of e){const e=i.state.stateNumber;t[e]||(t[e]=0),t[e]++}return Object.values(t).some((e=>1===e))}static getSingleViableAlt(e){let t=null;for(const i of e){const e=i.nextSetBit(0);if(null===t)t=e;else if(t!==e)return Z.INVALID_ALT_NUMBER}return t??0}},gt=class e extends ze{static{c(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new ht;predictionState;constructor(e,t,i,s){super(t,s),this.parser=e,this.decisionToDFA=i}static getUniqueAlt(e){let t=Z.INVALID_ALT_NUMBER;for(const i of e)if(t===Z.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return Z.INVALID_ALT_NUMBER;return t}reset(){}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}adaptivePredict(t,i,s){(e.debug||e.traceATNSimulator)&&console.log("adaptivePredict decision "+i+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column);const n=this.decisionToDFA[i];this.predictionState={input:t,startIndex:t.index,outerContext:s??void 0,dfa:n};const r=t.mark(),o=t.index;try{let i;if(i=n.isPrecedenceDfa?n.getPrecedenceStartState(this.parser.getPrecedence()):n.s0,!i){s||(s=W.empty),e.debug&&console.log("predictATN decision "+n.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+s.toString(this.parser.ruleNames));const r=!1;let o=this.computeStartState(n.atnStartState,W.empty,r);n.isPrecedenceDfa?(o=this.applyPrecedenceFilter(o),i=this.addDFAState(n,Ve.fromConfigs(o)),n.setPrecedenceStartState(this.parser.getPrecedence(),i)):(i=this.addDFAState(n,Ve.fromConfigs(o)),n.s0=i)}const r=this.execATN(n,i,t,o,s);return e.debug&&console.log("DFA after predictATN: "+n.toString(this.parser.vocabulary)),r}finally{this.predictionState.dfa=void 0,this.mergeCache=new ht,t.seek(o),t.release(r)}}execATN(t,i,s,n,o){let a;(e.debug||e.traceATNSimulator)&&console.log("execATN decision "+t.decision+", DFA state "+i+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let c=i,l=s.LA(1);for(;;){let i=this.getExistingTargetState(c,l);if(i||(i=this.computeTargetState(t,c,l)),i===ze.ERROR){const e=this.noViableAlt(s,o,c.configs,n);if(s.seek(n),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c.configs,o),a!==Z.INVALID_ALT_NUMBER)return a;throw e}if(i.requiresFullContext&&this.predictionMode!==ut.SLL){let r=null;if(null!==i.predicates){e.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=s.index;if(t!==n&&s.seek(n),r=this.evalSemanticContext(i.predicates,o,!0),1===r.length)return e.debug&&console.log("Full LL avoided"),r.nextSetBit(0);t!==n&&s.seek(t)}e.dfaDebug&&console.log("ctx sensitive state "+o+" in "+i);const c=!0,l=this.computeStartState(t.atnStartState,o,c);return this.reportAttemptingFullContext(t,r,i.configs,n,s.index),a=this.execATNWithFullContext(t,i,l,s,n,o),a}if(i.isAcceptState){if(null===i.predicates)return i.prediction;const e=s.index;s.seek(n);const r=this.evalSemanticContext(i.predicates,o,!0);if(0===r.length)throw this.noViableAlt(s,o,i.configs,n);return 1===r.length||this.reportAmbiguity(t,i,n,e,!1,r,i.configs),r.nextSetBit(0)}c=i,l!==r.EOF&&(s.consume(),l=s.LA(1))}}getExistingTargetState(e,t){return e.edges[t+1]}computeTargetState(t,i,s){const n=this.computeReachSet(i.configs,s,!1);if(null===n)return this.addDFAEdge(t,i,s,ze.ERROR),ze.ERROR;let r=Ve.fromConfigs(n);const o=e.getUniqueAlt(n);if(e.debug){const e=ut.getConflictingAltSubsets(n);console.log("SLL altSubSets="+C(e)+", configs="+n+", predict="+o+", allSubsetsConflict="+ut.allSubsetsConflict(e)+", conflictingAlts="+this.getConflictingAlts(n))}return o!==Z.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=o,r.prediction=o):ut.hasSLLConflictTerminatingPrediction(this.predictionMode,n)&&(r.configs.conflictingAlts=this.getConflictingAlts(n),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.nextSetBit(0)),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(t.decision)),null!==r.predicates&&(r.prediction=Z.INVALID_ALT_NUMBER)),r=this.addDFAEdge(t,i,s,r),r}getRuleName(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getTokenName(e){if(e===r.EOF)return"EOF";const t=(this.parser?.vocabulary??f.EMPTY_VOCABULARY).getDisplayName(e);return t===e.toString()?t:t+"<"+e+">"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const t=e.deadEndConfigs;for(const i of t){let e="no edges";if(i.state.transitions.length>0){const t=i.state.transitions[0];if(t instanceof me)e="Atom "+this.getTokenName(t.labelValue);else if(t instanceof O){e=(t instanceof D?"~":"")+"Set "+t.label}}console.error(i.toString(this.parser,!0)+":"+e)}}predicateDFAState(e,t){const i=t.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),n=this.getPredsForAmbigAlts(s,e.configs,i);null!==n?(e.predicates=this.getPredicatePredictions(s,n),e.prediction=Z.INVALID_ALT_NUMBER):e.prediction=s.nextSetBit(0)}execATNWithFullContext(t,i,s,n,o,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let c,l=!1,h=s;n.seek(o);let d=n.LA(1),u=-1;for(;;){if(c=this.computeReachSet(h,d,true),null===c){const e=this.noViableAlt(n,a,h,o);n.seek(o);const t=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(t!==Z.INVALID_ALT_NUMBER)return t;throw e}const t=ut.getConflictingAltSubsets(c);if(e.debug&&console.log("LL altSubSets="+t+", predict="+ut.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+ut.resolvesToJustOneViableAlt(t)),c.uniqueAlt=e.getUniqueAlt(c),c.uniqueAlt!==Z.INVALID_ALT_NUMBER){u=c.uniqueAlt;break}if(this.predictionMode!==ut.LL_EXACT_AMBIG_DETECTION){if(u=ut.resolvesToJustOneViableAlt(t),u!==Z.INVALID_ALT_NUMBER)break}else if(ut.allSubsetsConflict(t)&&ut.allSubsetsEqual(t)){l=!0,u=ut.getSingleViableAlt(t);break}h=c,d!==r.EOF&&(n.consume(),d=n.LA(1))}return c.uniqueAlt!==Z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,c,o,n.index),u):(this.reportAmbiguity(t,i,o,n.index,l,c.getAlts(),c),u)}computeReachSet(t,i,s){e.debug&&console.log("in computeReachSet, starting closure: "+t);const n=new ee(s);let o=null;for(const c of t)if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+c),c.state instanceof ae)(s||i===r.EOF)&&(null===o&&(o=[]),o.push(c));else for(const t of c.state.transitions){const s=this.getReachableTarget(t,i);if(null!==s){const t=T.createWithConfig(s,c);n.add(t,this.mergeCache),e.debugAdd&&console.log("added "+t+" to intermediate")}}let a=null;if(null===o&&i!==r.EOF&&(1===n.length||e.getUniqueAlt(n)!==Z.INVALID_ALT_NUMBER)&&(a=n),null===a){a=new ee(s);const e=new p,t=i===r.EOF;for(const i of n)this.closure(i,a,e,!1,s,t)}if(i===r.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===n)),null!==o&&(!s||!ut.hasConfigInRuleStopState(a)))for(const e of o)a.add(e,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+t+" -> "+a),0===a.length?null:a}removeAllConfigsNotInRuleStopState(e,t){if(ut.allConfigsInRuleStopStates(e))return e;const i=new ee(e.fullCtx);for(const s of e)if(s.state instanceof ae)i.add(s,this.mergeCache);else if(t&&s.state.epsilonOnlyTransitions){if(this.atn.nextTokens(s.state).contains(r.EPSILON)){const e=this.atn.ruleToStopState[s.state.ruleIndex];i.add(T.createWithConfig(e,s),this.mergeCache)}}return i}computeStartState(t,i,s){const n=G(this.atn,i),r=new ee(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+t+" initialContext="+n.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const i=t.transitions[e].target,o=T.createWithContext(i,e+1,n),a=new p;this.closure(o,r,a,!0,s,!1)}return r}applyPrecedenceFilter(e){const t=[],i=new ee(e.fullCtx);for(const s of e){if(1!==s.alt)continue;const e=s.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==e&&(t[s.state.stateNumber]=s.context,e!==s.semanticContext?i.add(T.duplicate(s,e),this.mergeCache):i.add(s,this.mergeCache))}for(const s of e)if(1!==s.alt){if(!s.precedenceFilterSuppressed){const e=t[s.state.stateNumber]||null;if(null!==e&&e.equals(s.context))continue}i.add(s,this.mergeCache)}return i}getReachableTarget(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(t,i,s){let n=[];for(const e of i)t.get(e.alt)&&(n[e.alt]=y.orContext(n[e.alt]??null,e.semanticContext));let r=0;for(let e=1;e<s+1;e++){const t=n[e]??null;null===t?n[e]=y.NONE:t!==y.NONE&&(r+=1)}return 0===r&&(n=null),e.debug&&console.log("getPredsForAmbigAlts result "+C(n)),n}getPredicatePredictions(e,t){const i=[];let s=!1;for(let n=1;n<t.length;n++){const r=t[n];e.get(n)&&i.push({pred:r,alt:n}),r!==y.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,t){const i=this.splitAccordingToSemanticValidity(e,t),s=i[0],n=i[1];let r=this.getAltThatFinishedDecisionEntryRule(s);return r!==Z.INVALID_ALT_NUMBER||n.length>0&&(r=this.getAltThatFinishedDecisionEntryRule(n),r!==Z.INVALID_ALT_NUMBER)?r:Z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const t=[];for(const i of e)(i.reachesIntoOuterContext||i.state instanceof ae&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt);return 0===t.length?Z.INVALID_ALT_NUMBER:Math.min(...t)}splitAccordingToSemanticValidity(e,t){const i=new ee(e.fullCtx),s=new ee(e.fullCtx);for(const n of e)if(n.semanticContext!==y.NONE){n.semanticContext.evaluate(this.parser,t)?i.add(n):s.add(n)}else i.add(n);return[i,s]}evalSemanticContext(t,i,s){const n=new h;for(const r of t){if(r.pred===y.NONE){if(n.set(r.alt),!s)break;continue}const t=r.pred.evaluate(this.parser,i);if((e.debug||e.dfaDebug)&&console.log("eval pred "+r+"="+t),t&&(n.set(r.alt),!s))break}return n}closure(e,t,i,s,n,r){this.closureCheckingStopState(e,t,i,s,n,0,r)}closureCheckingStopState(t,i,s,n,r,o,a){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof ae){if(t.context&&!t.context.isEmpty()){for(let c=0;c<t.context.length;c++){if(t.context.getReturnState(c)===k.EMPTY_RETURN_STATE){if(r){i.add(T.createWithConfig(t.state,t,N.instance),this.mergeCache);continue}e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,i,s,n,r,o,a);continue}const l=this.atn.states[t.context.getReturnState(c)],h=t.context.getParent(c),d=T.createWithContext(l,t.alt,h,t.semanticContext);d.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(d,i,s,n,r,o-1,a)}return}if(r)return void i.add(t,this.mergeCache);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,i,s,n,r,o,a)}closure_(t,i,s,n,r,o,a){const c=t.state;c.epsilonOnlyTransitions||i.add(t,this.mergeCache);for(let l=0;l<c.transitions.length;l++){if(0===l&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=c.transitions[l],d=n&&!(h instanceof ve),u=this.getEpsilonTarget(t,h,d,0===o,r,a);if(u){let n=o;if(t.state.constructor.stateType===x.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){h.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,s.getOrAdd(u)!==u)continue;i.dipsIntoOuterContext=!0,n-=1,e.debug&&console.log("dips into outer ctx: "+u)}else{if(!h.isEpsilon&&s.getOrAdd(u)!==u)continue;h instanceof fe&&n>=0&&(n+=1)}this.closureCheckingStopState(u,i,s,d,r,n,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const t=e.state;if(t.constructor.stateType!==x.STAR_LOOP_ENTRY||!e.context)return!1;if(!t.precedenceRuleDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const i=e.context.length;for(let r=0;r<i;r++){if(this.atn.states[e.context.getReturnState(r)].ruleIndex!==t.ruleIndex)return!1}const s=t.transitions[0].target.endState.stateNumber,n=this.atn.states[s];for(let r=0;r<i;r++){const i=e.context.getReturnState(r),s=this.atn.states[i];if(1!==s.transitions.length||!s.transitions[0].isEpsilon)return!1;const o=s.transitions[0].target;if((s.constructor.stateType!==x.BLOCK_END||o!==t)&&(s!==n&&o!==n&&(o.constructor.stateType!==x.BLOCK_END||1!==o.transitions.length||!o.transitions[0].isEpsilon||o.transitions[0].target!==t)))return!1}return!0}getEpsilonTarget(t,i,s,n,o,a){switch(i.transitionType){case I.RULE:return this.ruleTransition(t,i);case I.PRECEDENCE:return this.precedenceTransition(t,i,s,n,o);case I.PREDICATE:return this.predTransition(t,i,s,n,o);case I.ACTION:if(e.debug){const e=i,t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return T.createWithConfig(i.target,t);case I.EPSILON:return T.createWithConfig(i.target,t);case I.ATOM:case I.RANGE:case I.SET:return a&&i.matches(r.EOF,0,1)?T.createWithConfig(i.target,t):null;default:return null}}precedenceTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&n)if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}predTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.ruleIndex+":"+i.predIndex+", ctx dependent="+i.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&(i.isCtxDependent&&n||!i.isCtxDependent))if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,i){e.debug&&console.log("CALL rule "+this.getRuleName(i.target.ruleIndex)+", ctx="+t.context);const s=i.followState,n=z(t.context??void 0,s.stateNumber);return T.createWithConfig(i.target,t,n)}getConflictingAlts(e){const t=ut.getConflictingAltSubsets(e);return ut.getAlts(t)}getConflictingAltsOrUniqueAlt(e){let t;return e.uniqueAlt!==Z.INVALID_ALT_NUMBER?(t=new h,t.set(e.uniqueAlt)):t=e.conflictingAlts,t}noViableAlt(e,t,i,s){return new lt(this.parser,e,e.get(s),e.LT(1),i,t)}addDFAEdge(t,i,s,n){return e.debug&&console.log("EDGE "+i+" -> "+n+" upon "+this.getTokenName(s)),n=this.addDFAState(t,n),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log("DFA=\n"+t.toString(null!=this.parser?this.parser.vocabulary:f.EMPTY_VOCABULARY)),i.edges[s+1]=n),n}addDFAState(t,i){if(i===ze.ERROR)return i;const s=t.getState(i);return null!==s?s:(i.configs.readOnly||(i.configs.optimizeConfigs(this),i.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+i),t.addState(i),i)}reportAttemptingFullContext(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,t,n,r,i,s)}reportContextSensitivity(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportContextSensitivity decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,t,n,r,i,s)}reportAmbiguity(t,i,s,n,r,o,a){if(e.debug||e.retryDebug){const e=new m(s,n+1);console.log("reportAmbiguity "+o+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,t,s,n,r,o,a)}},pt=class{static{c(this,"PredictionContextCache")}cache=new P(u.instance);add(e){if(e===N.instance)return e;const t=this.cache.get(e);return t||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},mt=class extends gt{static{c(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;sllStopIndex=0;llStopIndex=0;constructor(e){const t=e.interpreter.sharedContextCache;if(super(e,e.interpreter.atn,e.interpreter.decisionToDFA,t),t){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let e=0;e<this.numDecisions;e++)this.decisions[e]=new Ge(e)}}adaptivePredict(e,t,i){try{this.sllStopIndex=-1,this.llStopIndex=-1,this.currentDecision=t;const s=performance.now(),n=super.adaptivePredict(e,t,i),r=performance.now();this.decisions[t].timeInPrediction+=r-s,this.decisions[t].invocations++;const o=this.sllStopIndex-this.predictionState.startIndex+1;if(this.decisions[t].sllTotalLook+=o,this.decisions[t].sllMinLook=0===this.decisions[t].sllMinLook?o:Math.min(this.decisions[t].sllMinLook,o),o>this.decisions[t].sllMaxLook&&(this.decisions[t].sllMaxLook=o,this.decisions[t].sllMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}),this.llStopIndex>=0){const i=this.llStopIndex-this.predictionState.startIndex+1;this.decisions[t].llTotalLook+=i,this.decisions[t].llMinLook=0===this.decisions[t].llMinLook?i:Math.min(this.decisions[t].llMinLook,i),i>this.decisions[t].llMaxLook&&(this.decisions[t].llMaxLook=i,this.decisions[t].llMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.llStopIndex,fullCtx:!0})}return n}finally{this.currentDecision=-1}}getExistingTargetState(e,t){this.sllStopIndex=this.predictionState.input.index;const i=super.getExistingTargetState(e,t);return void 0!==i&&(this.decisions[this.currentDecision].sllDFATransitions++,i===ze.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1})),this.currentState=i,i}computeTargetState(e,t,i){const s=super.computeTargetState(e,t,i);return this.currentState=s,s}computeReachSet(e,t,i){i&&this.predictionState?.input&&(this.llStopIndex=this.predictionState.input.index);const s=super.computeReachSet(e,t,i);return this.predictionState?.input&&(i?(this.decisions[this.currentDecision].llATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}))),s}reportAttemptingFullContext(e,t,i,s,n){this.conflictingAltResolvedBySLL=null!==t?t.nextSetBit(0):i.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,t&&super.reportAttemptingFullContext(e,t,i,s,n)}reportContextSensitivity(e,t,i,s,n){t!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:s,stopIndex:n,fullCtx:!0}),super.reportContextSensitivity(e,t,i,s,n)}reportAmbiguity(e,t,i,s,n,r,o){let a;a=r?r.nextSetBit(0):o.getAlts().nextSetBit(0),this.predictionState?.input&&(o.fullCtx&&a!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:r,decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:o.fullCtx})),super.reportAmbiguity(e,t,i,s,n,r,o)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(L||(L={})).toString=c((e=>`(${e.pred}, ${e.alt})`),"toString");var ft,_t=class extends Error{static{c(this,"ParseCancellationException")}constructor(e){super(),this.cause=e}},vt=(class{static{c(this,"InterpreterDataReader")}static parseInterpreterData(e){const t=[],i=[],s=[],n=[],r=[],o=e.split("\n");let a=0,c=o[a++];if("token literal names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;n.push("null"===c?null:c)}if(c=o[a++],"token symbolic names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;r.push("null"===c?null:c)}if(c=o[a++],"rule names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;t.push(c)}if(c=o[a++],"channel names:"===c){for(;;){if(c=o[a++],0===c.length)break;i.push(c)}if(c=o[a++],"mode names:"!==c)throw new Error("Unexpected data entry");for(;;){if(c=o[a++],0===c.length)break;s.push(c)}}if(c=o[a++],"atn:"!==c)throw new Error("Unexpected data entry");c=o[a++];const l=c.split(",");let h;const d=[];for(let u=0;u<l.length;++u){const e=l[u];h=e.startsWith("[")?Number(e.substring(1).trim()):e.endsWith("]")?Number(e.substring(0,e.length-1).trim()):Number(e.trim()),d[u]=h}return{atn:(new Be).deserialize(d),vocabulary:new f(n,r,[]),ruleNames:t,channels:i.length>0?i:void 0,modes:s.length>0?s:void 0}}},class{static{c(this,"AbstractParseTreeVisitor")}visit(e){return e.accept(this)}visitChildren(e){let t=this.defaultResult();const i=e.getChildCount();for(let s=0;s<i&&this.shouldVisitNextChild(e,t);s++){const i=e.getChild(s);if(i){const e=i.accept(this);t=this.aggregateResult(t,e)}}return t}visitTerminal(e){return this.defaultResult()}visitErrorNode(e){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(e,t){return!0}aggregateResult(e,t){return t}});(class e{static{c(this,"ParseTreeWalker")}static DEFAULT=new e;walk(e,t){if(t instanceof U)e.visitErrorNode(t);else if(t instanceof F)e.visitTerminal(t);else{const i=t;this.enterRule(e,i);for(let s=0;s<t.getChildCount();s++)this.walk(e,t.getChild(s));this.exitRule(e,i)}}enterRule(e,t){const i=t.ruleContext;e.enterEveryRule(i),i.enterRule(e)}exitRule(e,t){const i=t.ruleContext;i.exitRule(e),e.exitEveryRule(i)}});(ft||(ft={})).fromString=c((e=>new Ct(e)),"fromString");var Ct=class{static{c(this,"CharStreamImpl")}name="";index=0;data;constructor(e){const t=[];for(const i of e)t.push(i.codePointAt(0));this.data=new Uint32Array(t)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const t=this.index+e-1;return t<0||t>=this.data.length?r.EOF:this.data[t]}mark(){return-1}release(e){}seek(e){e<=this.index?this.index=e:this.index=Math.min(e,this.data.length)}getTextFromRange(e,t){return(t=t??this.data.length-1)>=this.data.length&&(t=this.data.length-1),e>=this.data.length?"":this.stringFromRange(e,t+1)}getTextFromInterval(e){const t=e.start;let i=e.stop;return i>=this.data.length&&(i=this.data.length-1),t>=this.data.length?"":this.stringFromRange(t,i+1)}toString(){return this.stringFromRange(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:s.UNKNOWN_SOURCE_NAME}stringFromRange(e,t){const i=this.data.slice(e,t);let s="";return i.forEach((e=>{s+=String.fromCodePoint(e)})),s}},Et=c((e=>void 0!==e.setText),"isWritableToken"),bt=class{static{c(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(e=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!e&&this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){const t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t<e;t++){const e=this.tokenSource.nextToken();if(Et(e)&&(e.tokenIndex=this.tokens.length),this.tokens.push(e),e.type===r.EOF)return this.fetchedEOF=!0,t+1}return e}getTokens(e,t,i){if(this.lazyInit(),void 0===e&&void 0===t)return this.tokens;if(e??=0,void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===i)return this.tokens.slice(e,t+1);const s=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(let n=e;n<t;n++){const e=this.tokens[n];if(e.type===r.EOF){s.push(e);break}i.has(e.type)&&s.push(e)}return s}LA(e){return this.LT(e)?.type??r.INVALID_TYPE}LB(e){return this.p-e<0?null:this.tokens[this.p-e]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);const t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==t;){if(i.type===r.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(e>=this.tokens.length)return this.tokens.length-1;for(;e>=0;){const i=this.tokens[e];if(i.type===r.EOF||i.channel===t)return e;--e}return e}getHiddenTokensToRight(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.nextTokenOnChannel(e+1,Je.DEFAULT_TOKEN_CHANNEL),s=e+1,n=-1===i?this.tokens.length-1:i;return this.filterForChannel(s,n,t)}getHiddenTokensToLeft(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.previousTokenOnChannel(e-1,Je.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return;const s=i+1,n=e-1;return this.filterForChannel(s,n,t)}filterForChannel(e,t,i){const s=[];for(let n=e;n<t+1;n++){const e=this.tokens[n];-1===i?e.channel!==Je.DEFAULT_TOKEN_CHANNEL&&s.push(e):e.channel===i&&s.push(e)}if(0!==s.length)return s}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(m.of(0,this.size-1))}getTextFromInterval(e){const t=e.start;let i=e.stop;if(t<0||i<0)return"";this.sync(i),i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let n=t;n<=i;++n){const e=this.tokens[n];if(e.type===r.EOF)break;s+=e.text}return s}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,t){return null!==e&&null!==t?this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}},St=class extends bt{static{c(this,"CommonTokenStream")}channel=r.DEFAULT_CHANNEL;constructor(e,t){super(e),this.channel=t??r.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(0===e||this.index-e<0)return null;let t=this.index,i=1;for(;i<=e;)t=this.previousTokenOnChannel(t-1,this.channel),i+=1;return t<0?null:this.tokens[t]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);let t=this.index,i=1;for(;i<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),i+=1;return this.tokens[t]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(const t of this.tokens)if(t.channel===this.channel&&(e+=1),t.type===r.EOF)break;return e}},yt=class e extends Je{static{c(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}action(e,t,i){if(4===t)this.ID_action(e,i)}ID_action(t,i){if(0===i){const t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=e.TOKEN_REF:this.type=e.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static vocabulary=new f(e.literalNames,e.symbolicNames,[]);get vocabulary(){return e.vocabulary}static decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))},wt=class extends Ke{static{c(this,"XPathLexerErrorListener")}syntaxError(e,t,i,s,n,r){}},Rt=class{static{c(this,"XPathElement")}invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Lt=class extends Rt{static{c(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return B.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Tt=class extends Rt{static{c(this,"XPathRuleElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof W&&(i.ruleIndex===this.ruleIndex&&!this.invert||i.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(i);return t}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},xt=class extends Rt{static{c(this,"XPathTokenAnywhereElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){return B.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},kt=class extends Rt{static{c(this,"XPathTokenElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof F&&i.symbol&&(i.symbol.type===this.tokenType&&!this.invert||i.symbol.type!==this.tokenType&&this.invert)&&t.push(i);return t}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},At=class extends Rt{static{c(this,"XPathWildcardAnywhereElement")}constructor(){super(It.WILDCARD)}evaluate(e){return this.invert?[]:B.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Nt=class extends Rt{static{c(this,"XPathWildcardElement")}constructor(){super(It.WILDCARD)}evaluate(e){const t=[];if(this.invert)return t;for(const i of B.getChildren(e))t.push(i);return t}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},It=class e{static{c(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(e,t){this.parser=e,this.path=t,this.elements=this.split(t)}static findAll(t,i,s){return new e(s,i).evaluate(t)}split(e){const t=new yt(ft.fromString(e));t.recover=e=>{throw e},t.removeErrorListeners(),t.addErrorListener(new wt);const i=new St(t);try{i.fill()}catch(c){if(c instanceof Ze){const i="Invalid tokens or characters at index "+t.column+" in path '"+e+"' -- "+c.message;throw new RangeError(i)}throw c}const s=i.getTokens(),n=[],o=s.length;let a=0;e:for(;a<o;){const e=s[a];let t;switch(e.type){case yt.ROOT:case yt.ANYWHERE:const i=e.type===yt.ANYWHERE;a++,t=s[a];const o=t.type===yt.BANG;o&&(a++,t=s[a]);const c=this.getXPathElement(t,i);c.invert=o,n.push(c),a++;break;case yt.TOKEN_REF:case yt.RULE_REF:case yt.WILDCARD:n.push(this.getXPathElement(e,!1)),++a;break;case r.EOF:break e;default:throw new Error("Unknown path element "+e)}}return n}evaluate(e){const t=new W(null);t.addChild(e);let i=new Set([t]),s=0;for(;s<this.elements.length;){const e=new Set;for(const t of i)if(t.getChildCount()>0){this.elements[s].evaluate(t).forEach((t=>{e.add(t)}),e)}s++,i=e}return i}getXPathElement(e,t){if(e.type===r.EOF)throw new Error("Missing path element at end of path");const i=e.text;if(null==i)throw new Error("Expected wordToken to have text content.");const s=this.parser.getTokenType(i),n=this.parser.getRuleIndex(i);switch(e.type){case yt.WILDCARD:return t?new At:new Nt;case yt.TOKEN_REF:case yt.STRING:if(s===r.INVALID_TYPE)throw new Error(i+" at index "+e.start+" isn't a valid token name");return t?new xt(i,s):new kt(i,s);default:if(-1===n)throw new Error(i+" at index "+e.start+" isn't a valid rule name");return t?new Lt(i,n):new Tt(i,n)}}},Ot=class{static{c(this,"Chunk")}},Dt=class{static{c(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(e,t,i,s){this.tree=e,this.pattern=t,this.labels=i,this.mismatchedNode=s}get(e){const t=this.labels.get(e);return t&&0!==t.length?t[t.length-1]:null}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Mt=class{static{c(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(e,t,i,s){this.matcher=e,this.patternRuleIndex=i,this.pattern=t,this.patternTree=s}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,t){const i=It.findAll(e,t,this.matcher.getParser()),s=new Array;for(const n of i){const e=this.match(n);e.succeeded()&&s.push(e)}return s}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},Pt=class extends Xe{static{c(this,"InputMismatchException")}constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},Ft=class extends Xe{static{c(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(e,t,i=null){super({message:Ut(t??"no predicate",i??null),recognizer:e,input:e.inputStream,ctx:e.context});const s=e.atn.states[e.state].transitions[0];s instanceof Se?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken()}},Ut=c(((e,t)=>null!==t?t:"failed predicate: {"+e+"}?"),"formatMessage"),Ht=class{static{c(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new _;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new _,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof lt?this.reportNoViableAlternative(e,t):t instanceof Pt?this.reportInputMismatch(e,t):t instanceof Ft?this.reportFailedPredicate(e,t):e.notifyErrorListeners(t.message,t.offendingToken,t))}recover(e,t){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const t=e.atn.states[e.state],i=e.tokenStream.LA(1),s=e.atn.nextTokens(t);if(s.contains(i))return this.nextTokensContext=null,void(this.nextTokenState=x.INVALID_STATE_NUMBER);if(s.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);else switch(t.constructor.stateType){case x.BLOCK_START:case x.STAR_BLOCK_START:case x.PLUS_BLOCK_START:case x.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new Pt(e);case x.PLUS_LOOP_BACK:case x.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new _;t.addSet(e.getExpectedTokens());const i=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,i);break}}}reportNoViableAlternative(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i=e.tokenStream;let s;s=null!==i&&t.startToken?t.startToken.type===r.EOF?"<EOF>":i.getTextFromRange(t.startToken,t.offendingToken):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(n,t.offendingToken,t)}reportInputMismatch(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t.offendingToken,t)}reportFailedPredicate(e,t){const i="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;e.notifyErrorListeners(i,t.offendingToken,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(i,t,null)}recoverInline(e){const t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Pt(e)}singleTokenInsertion(e){const t=e.tokenStream?.LA(1)??-1,i=e.atn,s=i.states[e.state].transitions[0].target;return!!i.nextTokens(s,e.context??void 0).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){const t=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();const t=e.getCurrentToken();return this.reportMatch(e),t}return null}getMissingSymbol(e){const t=e.getCurrentToken(),i=this.getExpectedTokens(e);let s,n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement),s=n===r.EOF?"<missing EOF>":"<missing "+e.vocabulary.getDisplayName(n)+">";let o=t;const a=e.tokenStream?.LT(-1);return o.type===r.EOF&&null!==a&&(o=a),e.getTokenFactory().create(o.source,n,s,r.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let t=e.text;return t||(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const t=e.atn;let i=e.context;const s=new _;for(;null!==i&&i.invokingState>=0;){const e=t.states[i.invokingState].transitions[0],n=t.nextTokens(e.followState);s.addSet(n),i=i.parent}return s.removeOne(r.EPSILON),s}consumeUntil(e,t){let i=e.tokenStream?.LA(1)??-1;for(;i!==r.EOF&&!t.contains(i);)e.consume(),i=e.tokenStream?.LA(1)??-1}},Bt=class extends Ht{static{c(this,"BailErrorStrategy")}recover(e,t){throw new _t(t)}recoverInline(e){const t=new Pt(e);throw new _t(t)}sync(e){}},Wt=class{static{c(this,"ListTokenSource")}sourceName;tokenFactory=Qe.DEFAULT;tokens=[];i=0;eofToken=null;constructor(e,t){this.tokens=e,this.sourceName=t??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1],t=e.text;if(t){const e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.column+e.stop-e.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let e=-1;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1].stop;-1!==t&&(e=t+1)}const t=Math.max(-1,e-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],r.EOF,"EOF",r.DEFAULT_CHANNEL,e,t,this.line,this.column)}return this.eofToken}const e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===r.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1];let t=e.line;const i=e.text;if(i)for(const s of i)"\n"===s&&t++;return t}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const e=this.inputStream;return null!==e?e.getSourceName():"List"}},Vt=class extends W{static{c(this,"InterpreterRuleContext")}#c;constructor(e,t,i){super(t,i),this.#c=e}get ruleIndex(){return this.#c}},zt=class{static{c(this,"TraceListener")}parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},Gt=class extends $e{static{c(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new Ht;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;tracer=null;bypassAltsAtnCache=null;#l;constructor(e){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#l=e}reset(e=!0){e&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(e){let t=this.getCurrentToken();return t.type===e?(e===r.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}getParseListeners(){return this.parseListeners??[]}addParseListener(e){if(null===e)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(e)}removeParseListener(e){if(null!==this.parseListeners&&null!==e){const t=this.parseListeners.indexOf(e);t>=0&&this.parseListeners.splice(t,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.forEach((t=>{t.enterEveryRule(e),e.enterRule(t)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.slice(0).reverse().forEach((t=>{e.exitRule(t),t.exitEveryRule(e)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(e){this.inputStream.tokenSource.tokenFactory=e}compileParseTreePattern(e,t,i){if(!i&&null!==this.tokenStream){const e=this.tokenStream.tokenSource;e instanceof Je&&(i=e)}if(!i)throw new Error("Parser can't discover a lexer to use");return new Jt(i,this).compile(e,t)}getATNWithBypassAlts(){const e=this.serializedATN;if(null===e)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.bypassAltsAtnCache)return this.bypassAltsAtnCache;return this.bypassAltsAtnCache=new Be({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(e),this.bypassAltsAtnCache}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#l}set inputStream(e){this.tokenStream=e}get tokenStream(){return this.#l}set tokenStream(e){this.reset(!1),this.#l=e}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(e,t,i){i=i??null,null===(t=t??null)&&(t=this.getCurrentToken()),this.syntaxErrors+=1;const s=t.line,n=t.column;this.errorListenerDispatch.syntaxError(this,t,s,n,e,i)}consume(){const e=this.getCurrentToken();e.type!==r.EOF&&this.tokenStream.consume();const t=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||t){let i;i=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,e)):this.context.addTokenNode(e),t&&this.parseListeners.forEach((e=>{i instanceof U?e.visitErrorNode(i):e.visitTerminal(i)}))}return e}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(e,t,i){this.state=t,this.context=e,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(e,t){e.setAltNumber(t),this.buildParseTrees&&this.context!==e&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(e)),this.context=e}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(e,t,i,s){this.state=t,this.precedenceStack.push(s),this.context=e,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,i){const s=this.context;s.parent=e,s.invokingState=t,s.stop=this.inputStream.LT(-1),this.context=e,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const t=this.context,i=this.getParseListeners();if(null!==i&&i.length>0)for(;this.context!==e;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=e;t.parent=e,this.buildParseTrees&&null!==e&&e.addChild(t)}getInvokingContext(e){let t=this.context;for(;null!==t;){if(t.ruleIndex===e)return t;t=t.parent}return null}precpred(e,t){return t>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(e){const t=this.interpreter.atn;let i=this.context;const s=t.states[this.state];let n=t.nextTokens(s);if(n.contains(e))return!0;if(!n.contains(r.EPSILON))return!1;for(;null!==i&&i.invokingState>=0&&n.contains(r.EPSILON);){const s=t.states[i.invokingState].transitions[0];if(n=t.nextTokens(s.followState),n.contains(e))return!0;i=i.parent}return!(!n.contains(r.EPSILON)||e!==r.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){return this.getRuleIndexMap().get(e)??-1}getRuleInvocationStack(e){null===(e=e??null)&&(e=this.context);const t=[];for(;null!==e;){const i=e.ruleIndex;i<0?t.push("n/a"):t.push(this.ruleNames[i]),e=e.parent}return t}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let e=!1;for(const t of this.interpreter.decisionToDFA)t.length>0&&(e&&console.log(),this.printer&&(this.printer.println("Decision "+t.decision+":"),this.printer.print(t.toString(this.vocabulary))),e=!0)}getSourceName(){return this.inputStream.getSourceName()}getParseInfo(){const e=this.interpreter;if(e instanceof mt)return new ct(e)}setProfile(e){const t=this.interpreter,i=t.predictionMode;if(e)t instanceof mt||(this.interpreter=new mt(this));else if(t instanceof mt){const e=t.sharedContextCache;if(e){const i=new gt(this,this.atn,t.decisionToDFA,e);this.interpreter=i}}this.interpreter.predictionMode=i}setTrace(e){e?(null!==this.tracer&&this.removeParseListener(this.tracer),this.tracer=new zt(this),this.addParseListener(this.tracer)):(this.removeParseListener(this.tracer),this.tracer=null)}createTerminalNode(e,t){return new F(t)}createErrorNode(e,t){return new U(t)}},jt=class extends Gt{static{c(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];overrideDecisionAlt=-1;overrideDecisionReached=!1;decisionToDFA;sharedContextCache=new pt;pushRecursionContextStates;#h=-1;#d=-1;#u;#g;#p;#m;constructor(e,t,i,s,n){super(n),this.#u=e,this.#g=s,this.#p=i.slice(0),this.#m=t,this.pushRecursionContextStates=new h;for(const r of s.states)r instanceof de&&r.precedenceRuleDecision&&this.pushRecursionContextStates.set(r.stateNumber);this.decisionToDFA=s.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new gt(this,s,this.decisionToDFA,this.sharedContextCache)}reset(){super.reset(),this.overrideDecisionReached=!1,this.overrideDecisionRoot=null}get atn(){return this.#g}get vocabulary(){return this.#m}get ruleNames(){return this.#p}get grammarFileName(){return this.#u}get atnState(){return this.#g.states[this.state]}parse(e){const t=this.#g.ruleToStartState[e];for(this.rootContext=this.createInterpreterRuleContext(null,x.INVALID_STATE_NUMBER,e),t.isLeftRecursiveRule?this.enterRecursionRule(this.rootContext,t.stateNumber,e,0):this.enterRule(this.rootContext,t.stateNumber,e);;){const e=this.atnState;if(e.constructor.stateType===x.RULE_STOP){if(this.context?.isEmpty()){if(t.isLeftRecursiveRule){const e=this.context,t=this.parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this.rootContext}this.visitRuleStopState(e)}else try{this.visitState(e)}catch(i){if(!(i instanceof Xe))throw i;this.state=this.#g.ruleToStopState[e.ruleIndex].stateNumber,this.errorHandler.reportError(this,i),this.recover(i)}}}addDecisionOverride(e,t,i){this.#h=e,this.#d=t,this.overrideDecisionAlt=i}get overrideDecision(){return this.#h}get overrideDecisionInputIndex(){return this.#d}enterRecursionRule(e,t,i,s){this.parentContextStack.push([this.context,e.invokingState]),super.enterRecursionRule(e,t,i,s)}get serializedATN(){throw new Error("The ParserInterpreter does not support the serializedATN property.")}visitState(e){let t=1;e instanceof ie&&(t=this.visitDecisionState(e));const i=e.transitions[t-1];switch(i.transitionType){case I.EPSILON:if(this.pushRecursionContextStates.get(e.stateNumber)&&i.target.constructor.stateType!==x.LOOP_END){const t=this.parentContextStack[this.parentContextStack.length-1],i=this.createInterpreterRuleContext(t[0],t[1],this.context.ruleIndex);this.pushNewRecursionContext(i,this.#g.ruleToStartState[e.ruleIndex].stateNumber,this.context.ruleIndex)}break;case I.ATOM:this.match(i.label.minElement);break;case I.RANGE:case I.SET:case I.NOT_SET:i.matches(this.inputStream.LA(1),r.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case I.WILDCARD:this.matchWildcard();break;case I.RULE:const t=i.target,s=t.ruleIndex,n=this.createInterpreterRuleContext(this.context,e.stateNumber,s);t.isLeftRecursiveRule?this.enterRecursionRule(n,t.stateNumber,s,i.precedence):this.enterRule(n,i.target.stateNumber,s);break;case I.PREDICATE:const o=i;if(!this.sempred(this.context,o.ruleIndex,o.predIndex))throw new Ft(this);break;case I.ACTION:const a=i;this.action(this.context,a.ruleIndex,a.actionIndex);break;case I.PRECEDENCE:if(!this.precpred(this.context,i.precedence)){const e=i.precedence;throw new Ft(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=i.target.stateNumber}visitDecisionState(e){let t=1;if(e.transitions.length>1){this.errorHandler.sync(this);const i=e.decision;i!==this.#h||this.inputStream.index!==this.#d||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this.inputStream,i,this.context):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0)}return t}createInterpreterRuleContext(e,t,i){return new Vt(i,e,t)}visitRuleStopState(e){if(this.#g.ruleToStartState[e.ruleIndex].isLeftRecursiveRule){const[e,t]=this.parentContextStack.pop();this.unrollRecursionContexts(e),this.state=t}else this.exitRule();const t=this.#g.states[this.state].transitions[0];this.state=t.followState.stateNumber}recover(e){const t=this.inputStream.index;if(this.errorHandler.recover(this,e),this.inputStream.index===t){const t=e.offendingToken;if(!t)throw new Error("Expected exception to have an offending token");const i=t.tokenSource,s=[i,i?.inputStream??null];if(e instanceof Pt){const i=e.getExpectedTokens();if(!i)throw new Error("Expected the exception to provide expected tokens");let n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement);const o=this.getTokenFactory().create(s,n,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,o))}else{const e=this.getTokenFactory().create(s,r.INVALID_TYPE,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,e))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Kt=class extends Map{static{c(this,"MultiMap")}map(e,t){let i=this.get(e);i||(i=new Array,this.set(e,i)),i.push(t)}getPairs(){const e=new Array;for(const t of this.keys()){const i=this.get(t)??[];for(const s of i)e.push([t,s])}return e}toString(){const e=[];return this.forEach(((t,i)=>{e.push(`${i}=[${t.join(", ")}]`)})),`{${e.join(", ")}}`}},Yt=class extends Error{static{c(this,"CannotInvokeStartRuleError")}constructor(e){super(),this.cause=e}},qt=class{static{c(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(e,t,i){this.ruleName=e,this.bypassTokenType=t,this.label=i}get channel(){return r.DEFAULT_CHANNEL}get text(){return void 0!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},$t=class extends Error{static{c(this,"StartRuleDoesNotConsumeFullPatternError")}},Qt=class extends Ot{static{c(this,"TagChunk")}tag;label;constructor(...e){let t,i;if(1===e.length?i=e[0]:(t=e[0],i=e[1]),super(),!i)throw new Error("tag cannot be null or empty");this.label=t,this.tag=i}toString(){return void 0!==this.label?this.label+":"+this.tag:this.tag}},Xt=class extends Ot{static{c(this,"TextChunk")}text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},Zt=class extends H{static{c(this,"TokenTagToken")}tokenName;label;constructor(e,t,i){super({type:t,source:H.EMPTY_SOURCE}),this.tokenName=e,this.label=i}get text(){return void 0!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Jt=class{static{c(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(e,t){this.lexer=e,this.parser=t}setDelimiters(e,t,i){if(null===e||0===e.length)throw new Error("start cannot be null or empty");if(null===t||0===t.length)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=i}matches(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt;return null===this.matchImpl(t,i.getPatternTree(),s)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.matches(t,n)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt,n=this.matchImpl(t,i.getPatternTree(),s);return new Dt(t,i,s,n)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.match(t,n)}default:throw new Error("Invalid number of arguments")}}compile(e,t){const i=this.tokenize(e),s=new Wt(i),n=new St(s),o=new jt(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),n);o.removeErrorListeners();let a=null;try{o.errorHandler=new Bt,a=o.parse(t)}catch(c){throw c instanceof _t?c.cause:c instanceof Xe?c:c instanceof Error?new Yt(c):c}if(n.LA(1)!==r.EOF)throw new $t;return new Mt(this,e,t,a)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){const t=this.split(e),i=new Array;for(const s of t)if(s instanceof Qt){const t=s,n=t.tag[0];if(n===n.toUpperCase()){const s=this.parser.getTokenType(t.tag);if(s===r.INVALID_TYPE)throw new Error("Unknown token "+t.tag+" in pattern: "+e);const n=new Zt(t.tag,s,t.label);i.push(n)}else{if(n!==n.toLowerCase())throw new Error("invalid tag: "+t.tag+" in pattern: "+e);{const s=this.parser.getRuleIndex(t.tag);if(-1===s)throw new Error("Unknown rule "+t.tag+" in pattern: "+e);const n=this.parser.getATNWithBypassAlts().ruleToTokenType[s];i.push(new qt(t.tag,n,t.label))}}}else{const e=s,t=ft.fromString(e.text);this.lexer.inputStream=t;let n=this.lexer.nextToken();for(;n.type!==r.EOF;)i.push(n),n=this.lexer.nextToken()}return i}split(e){let t=0;const i=e.length,s=new Array,n=new Array,r=new Array;for(;t<i;)t===e.indexOf(this.escape+this.start,t)?t+=this.escape.length+this.start.length:t===e.indexOf(this.escape+this.stop,t)?t+=this.escape.length+this.stop.length:t===e.indexOf(this.start,t)?(n.push(t),t+=this.start.length):t===e.indexOf(this.stop,t)?(r.push(t),t+=this.stop.length):t++;if(n.length>r.length)throw new Error("unterminated tag in pattern: "+e);if(n.length<r.length)throw new Error("missing start tag in pattern: "+e);const o=n.length;for(let a=0;a<o;a++)if(n[a]>=r[a])throw new Error("tag delimiters out of order in pattern: "+e);if(0===o){const t=e.substring(0,i);s.push(new Xt(t))}if(o>0&&n[0]>0){const t=e.substring(0,n[0]);s.push(new Xt(t))}for(let a=0;a<o;a++){const t=e.substring(n[a]+this.start.length,r[a]);let i,c=t;const l=t.indexOf(":");if(l>=0&&(i=t.substring(0,l),c=t.substring(l+1,t.length)),s.push(new Qt(i,c)),a+1<o){const t=e.substring(r[a]+this.stop.length,n[a+1]);s.push(new Xt(t))}}if(o>0){const t=r[o-1]+this.stop.length;if(t<i){const n=e.substring(t,i);s.push(new Xt(n))}}for(let a=0;a<s.length;a++){const e=s[a];if(e instanceof Xt){const t=e,i=t.text.replaceAll(this.escape,"");i.length<t.text.length&&(s[a]=new Xt(i))}}return s}matchImpl(e,t,i){if(e instanceof F&&t instanceof F){const s=e,n=t;let r;if(s.getSymbol().type===n.getSymbol().type)if(n.getSymbol()instanceof Zt){const t=n.getSymbol();i.map(t.tokenName,e),void 0!==t.label&&i.map(t.label,e)}else s.getText()===n.getText()||r||(r=s);else r||(r=s);return r}if(e instanceof W&&t instanceof W){let s;const n=this.getRuleTagToken(t);if(n)return e.ruleIndex===t.ruleIndex?(i.map(n.ruleName,e),n.label&&i.map(n.label,e)):s||(s=e),s;if(e.getChildCount()!==t.getChildCount())return s||(s=e),s;const r=e.getChildCount();for(let o=0;o<r;o++){const s=this.matchImpl(e.getChild(o),t.getChild(o),i);if(s)return s}return s}return e}getRuleTagToken(e){if(e instanceof W&&1===e.getChildCount()&&e.getChild(0)instanceof F){const t=e.getChild(0);if(t.getSymbol()instanceof qt)return t.getSymbol()}}},ei=(class extends Ke{static{c(this,"DiagnosticErrorListener")}exactOnly;constructor(e){super(),this.exactOnly=e??!0}reportAmbiguity=c(((e,t,i,s,n,r,o)=>{if(this.exactOnly&&!n)return;const a=this.getDecisionDescription(e,t),c=this.getConflictingAlts(r,o),l=e.tokenStream?.getTextFromInterval(m.of(i,s)),h=`reportAmbiguity d=${a}: ambigAlts=${c}, input='${l}'`;e.notifyErrorListeners(h,null,null)}),"reportAmbiguity");reportAttemptingFullContext=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportAttemptingFullContext d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportAttemptingFullContext");reportContextSensitivity=c(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),c=`reportContextSensitivity d=${o}, input='${a}'`;e.notifyErrorListeners(c,null,null)}),"reportContextSensitivity");getDecisionDescription=c(((e,t)=>{const i=t.decision,s=t.atnStartState.ruleIndex,n=e.ruleNames;if(s<0||s>=n.length)return i.toString();const r=n[s];return 0===r.length?i.toString():`${i} (${r})`}),"getDecisionDescription");getConflictingAlts=c(((e,t)=>{if(e)return e;const i=new h;for(let s=0;s<t.configs.length;s++)i.set(t.configs[s].alt);return i}),"getConflictingAlts")},class extends Je{static{c(this,"LexerInterpreter")}decisionToDFA;sharedContextCache=new pt;#u;#g;#p;#f;#_;#m;constructor(e,t,i,s,n,r,o){if(super(o),r.grammarType!==Z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#u=e,this.#g=r,this.#p=i.slice(0),this.#f=s.slice(0),this.#_=n.slice(0),this.#m=t,this.decisionToDFA=r.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new at(this,r,this.decisionToDFA,this.sharedContextCache)}get atn(){return this.#g}get grammarFileName(){return this.#u}get ruleNames(){return this.#p}get channelNames(){return this.#f}get modeNames(){return this.#_}get vocabulary(){return this.#m}get serializedATN(){throw new Error("The LexerInterpreter does not support the serializedATN property.")}},class e{static{c(this,"RuntimeMetaData")}static VERSION="4.13.1";static getRuntimeVersion(){return e.VERSION}static checkVersion(t,i){const s=e.VERSION;let n=!1,r=!1;n=s!==t&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(t),r=s!==i&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(i),n&&console.error(`ANTLR Tool version ${t} used for code generation does not match the current runtime version ${s}`),r&&console.error(`ANTLR Runtime version ${i} used for parser compilation does not match the current runtime version ${s}`)}static getMajorMinorVersion(e){const t=e.indexOf("."),i=t>=0?e.indexOf(".",t+1):-1,s=e.indexOf("-");let n=e.length;return i>=0&&(n=Math.min(n,i)),s>=0&&(n=Math.min(n,s)),e.substring(0,n)}},class e{static{c(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME="default";static PROGRAM_INIT_SIZE=100;static MIN_TOKEN_INDEX=0;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(e){this.tokens=e}getTokenStream(){return this.tokens}insertAfter(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ii(this.tokens,n,r.length,i);r.push(o)}insertBefore(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ti(this.tokens,n,r.length,i);r.push(o)}replaceSingle(t,i,s=e.DEFAULT_PROGRAM_NAME){this.replace(t,t,i,s)}replace(t,i,s,n=e.DEFAULT_PROGRAM_NAME){if("number"!==typeof t&&(t=t.tokenIndex),"number"!==typeof i&&(i=i.tokenIndex),t>i||t<0||i<0||i>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${i}(size=${this.tokens.size})`);const r=this.getProgram(n),o=new si(this.tokens,t,i,r.length,s);r.push(o)}delete(t,i,s=e.DEFAULT_PROGRAM_NAME){null==i&&(i=t),this.replace(t,i,null,s)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){const t=[];return this.programs.set(e,t),t}getText(t,i=e.DEFAULT_PROGRAM_NAME){let s;s=t instanceof m?t:new m(0,this.tokens.size-1),"string"===typeof t&&(i=t);const n=this.programs.get(i);let o=s.start,a=s.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getTextFromInterval(new m(o,a));const c=[],l=this.reduceToSingleOperationPerIndex(n);let h=o;for(;h<=a&&h<this.tokens.size;){const e=l.get(h);l.delete(h);const t=this.tokens.get(h);null==e?(t.type!==r.EOF&&c.push(String(t.text)),h++):h=e.execute(c)}if(a===this.tokens.size-1)for(const e of l.values())e&&e.index>=this.tokens.size-1&&c.push(String(e.text));return c.join("")}reduceToSingleOperationPerIndex(e){for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof si))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index?(e[i.instructionIndex]=null,s.text=String(i.text)+(null!=s.text?s.text.toString():"")):i.index>s.index&&i.index<=s.lastIndex&&(e[i.instructionIndex]=null);const r=this.getKindOfOps(e,si,i);for(const i of r){if(i.index>=s.index&&i.lastIndex<=s.lastIndex){e[i.instructionIndex]=null;continue}const t=i.lastIndex<s.index||i.index>s.lastIndex;if(null!=i.text||null!=s.text||t){if(!t)throw new Error(`replace op boundaries of ${s} overlap with previous ${i}`)}else e[i.instructionIndex]=null,s.index=Math.min(i.index,s.index),s.lastIndex=Math.max(i.lastIndex,s.lastIndex)}}for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof ti))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index&&(i instanceof ii?(s.text=this.catOpText(i.text,s.text),e[i.instructionIndex]=null):i instanceof ti&&(s.text=this.catOpText(s.text,i.text),e[i.instructionIndex]=null));const r=this.getKindOfOps(e,si,i);for(const o of r)if(s.index!==o.index){if(s.index>=o.index&&s.index<=o.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${o}`)}else o.text=this.catOpText(s.text,o.text),e[i]=null}const t=new Map;for(const i of e)if(null!=i){if(null!=t.get(i.index))throw new Error("should only be one op per index");t.set(i.index,i)}return t}catOpText(e,t){let i="",s="";return null!=e&&(i=e.toString()),null!=t&&(s=t.toString()),i+s}getKindOfOps(e,t,i){return e.slice(0,i).filter((e=>e&&e instanceof t))}},class{static{c(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(e,t,i,s){this.tokens=e,this.instructionIndex=i,this.index=t,this.text=void 0===s?"":s}execute(e){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),ti=class extends ei{static{c(this,"InsertBeforeOp")}constructor(e,t,i,s){super(e,t,i,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==r.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},ii=class extends ti{static{c(this,"InsertAfterOp")}constructor(e,t,i,s){super(e,t+1,i,s)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},si=class extends ei{static{c(this,"ReplaceOp")}lastIndex;constructor(e,t,i,s,n){super(e,t,s,n),this.lastIndex=i}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ni=(class{static{c(this,"UnbufferedTokenStream")}tokenSource;tokens;n;p=0;numMarkers=0;lastToken;lastTokenBufferStart;currentTokenIndex=0;constructor(e,t){this.tokenSource=e,t=t??256,this.tokens=new Array(t),this.n=0,this.fill(1)}get(e){const t=this.getBufferStartIndex();if(e<t||e>=t+this.n)throw new Error("get("+e+") outside buffer: "+t+".."+(t+this.n));return this.tokens[e-t]}LT(e){if(-1===e)return this.lastToken;this.sync(e);const t=this.p+e-1;if(t<0)throw new Error("LT("+e+") gives negative index");return t>=this.n?this.tokens[this.n-1]:this.tokens[t]}LA(e){return this.LT(e).type}getText(){return""}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromInterval(e){const t=this.getBufferStartIndex(),i=t+this.tokens.length-1,s=e.start,n=e.stop;if(s<t||n>i)throw new Error("interval "+e+" not in token buffer window: "+t+".."+i);const r=n-t;let o="";for(let a=s-t;a<=r;a++){o+=this.tokens[a].text}return o}getTextFromRange(e,t){return this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex))}consume(){if(this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.lastToken=this.tokens[this.p],this.p===this.n-1&&0===this.numMarkers&&(this.n=0,this.p=-1,this.lastTokenBufferStart=this.lastToken),this.p++,this.currentTokenIndex++,this.sync(1)}mark(){0===this.numMarkers&&(this.lastTokenBufferStart=this.lastToken);const e=-this.numMarkers-1;return this.numMarkers++,e}release(e){if(e!==-this.numMarkers)throw new Error("release() called with an invalid marker.");this.numMarkers--,0===this.numMarkers&&(this.p>0&&(this.tokens.copyWithin(0,this.p,this.n),this.n=this.n-this.p,this.p=0),this.lastTokenBufferStart=this.lastToken)}get index(){return this.currentTokenIndex}seek(e){if(e===this.currentTokenIndex)return;e>this.currentTokenIndex&&(this.sync(e-this.currentTokenIndex),e=Math.min(e,this.getBufferStartIndex()+this.n-1));const t=this.getBufferStartIndex(),i=e-t;if(i<0)throw new Error("cannot seek to negative index "+e);if(i>=this.n)throw new Error("seek to index outside buffer: "+e+" not in "+t+".."+(t+this.n));this.p=i,this.currentTokenIndex=e,0===this.p?this.lastToken=this.lastTokenBufferStart:this.lastToken=this.tokens[this.p-1]}get size(){throw new Error("Unbuffered stream cannot know its size")}getSourceName(){return this.tokenSource.sourceName}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}sync(e){const t=this.p+e-1-this.n+1;t>0&&this.fill(t)}fill(e){for(let t=0;t<e;t++){if(this.n>0&&this.tokens[this.n-1].type===r.EOF)return t;const e=this.tokenSource.nextToken();this.add(e)}return e}add(e){this.n>=this.tokens.length&&(this.tokens.length=2*this.tokens.length),Et(e)&&e.setTokenIndex(this.getBufferStartIndex()+this.n),this.tokens[this.n++]=e}getBufferStartIndex(){return this.currentTokenIndex-this.p}},Object.defineProperty),ri=(e,t)=>ni(e,"name",{value:t,configurable:!0}),oi=class{static{ri(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#v;constructor(e=""){this.name=e}get parent(){return this.#v}get firstSibling(){if(this.#v)return this.#v?.firstChild}get previousSibling(){if(this.#v)return this.#v?this.#v.previousSiblingOf(this):this}get nextSibling(){return this.#v?.nextSiblingOf(this)}get lastSibling(){return this.#v?.lastChild}get next(){return this.#v?.nextOf(this)}get root(){let e=this.#v;for(;e;){if(!e.parent||this.isSymbolTable(e.parent))return e;e=e.parent}return e}get symbolTable(){if(this.isSymbolTable(this))return this;let e=this.#v;for(;e;){if(this.isSymbolTable(e))return e;e=e.parent}}get symbolPath(){const e=[];let t=this;for(;t&&(e.push(t),t.parent);)t=t.parent;return e}setParent(e){this.#v=e}removeFromParent(){this.#v?.removeSymbol(this),this.#v=void 0}async resolve(e,t=!1){return this.#v?.resolve(e,t)}resolveSync(e,t=!1){return this.#v?.resolveSync(e,t)}getParentOfType(e){let t=this.#v;for(;t;){if(t instanceof e)return t;t=t.parent}}qualifiedName(e=".",t=!1,i=!1){if(!i&&0===this.name.length)return"";let s=0===this.name.length?"<anonymous>":this.name,n=this.#v;for(;n&&((i||n.name.length>0)&&(s=(0===n.name.length?"<anonymous>":n.name)+e+s),t&&n.parent);)n=n.parent;return s}isSymbolTable(e){return void 0!==e.info}},ai=(class extends oi{static{ri(this,"ArrayType")}elementType;size;referenceKind;constructor(e,t,i,s=0){super(e),this.referenceKind=t,this.elementType=i,this.size=s}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{ri(this,"DuplicateSymbolError")}}),ci=class e extends oi{static{ri(this,"ScopedSymbol")}#C=[];#E=new Map;constructor(e=""){super(e)}get directScopes(){return this.getSymbolsOfType(e)}get children(){return this.#C}get firstChild(){if(this.#C.length>0)return this.#C[0]}get lastChild(){if(this.#C.length>0)return this.#C[this.#C.length-1]}clear(){this.#C=[],this.#E.clear()}addSymbol(e){e.removeFromParent();const t=this.symbolTable,i=this.#E.get(e.name);if(t&&t.options.allowDuplicateSymbols)this.#E.set(e.name,void 0===i?1:i+1);else{if(void 0!==i)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'");this.#E.set(e.name,1);if(this.#C.indexOf(e)>-1)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'")}this.#C.push(e),e.setParent(this)}removeSymbol(e){const t=this.#C.indexOf(e);if(t>-1){this.#C.splice(t,1),e.setParent(void 0);const i=this.#E.get(e.name);void 0!==i&&(1===i?this.#E.delete(e.name):this.#E.set(e.name,i-1))}}async getNestedSymbolsOfType(t){const i=[],s=[];this.#C.forEach((n=>{n instanceof t&&i.push(n),n instanceof e&&s.push(n.getNestedSymbolsOfType(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getNestedSymbolsOfTypeSync(t){const i=[];return this.#C.forEach((s=>{s instanceof t&&i.push(s),s instanceof e&&i.push(...s.getNestedSymbolsOfTypeSync(t))})),i}async getAllNestedSymbols(t){const i=[],s=[];this.#C.forEach((n=>{t&&n.name!==t||i.push(n),n instanceof e&&s.push(n.getAllNestedSymbols(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getAllNestedSymbolsSync(t){const i=[];return this.#C.forEach((s=>{t&&s.name!==t||i.push(s),s instanceof e&&i.push(...s.getAllNestedSymbolsSync(t))})),i}getSymbolsOfType(e){return new Promise((t=>{const i=[];this.#C.forEach((t=>{t instanceof e&&i.push(t)})),t(i)}))}async getAllSymbols(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=await s.getAllSymbols(e,!0);i.push(...t)}if(!t&&this.parent){const t=await this.getAllSymbols(e,!0);i.push(...t)}return i}getAllSymbolsSync(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=s.getAllSymbolsSync(e,!0);i.push(...t)}if(!t&&this.parent){const t=this.getAllSymbolsSync(e,!0);i.push(...t)}return i}async resolve(e,t=!1){return new Promise((i=>{for(const t of this.#C)if(t.name===e)return void i(t);t||!this.parent?i(void 0):i(this.parent.resolve(e,!1))}))}resolveSync(e,t=!1){for(const i of this.#C)if(i.name===e)return i;if(!t&&this.parent)return this.parent.resolveSync(e,!1)}symbolFromPath(t,i="."){const s=t.split(i);let n=0;s[0]!==this.name&&0!==s[0].length||++n;let r=this;for(;n<s.length;){if(!(r instanceof e))return;const t=r.children.find((e=>e.name===s[n]));if(!t)return;r=t,++n}return r}indexOfChild(e){return this.#C.findIndex((t=>t===e))}nextSiblingOf(e){const t=this.indexOfChild(e);if(!(-1===t||t>=this.#C.length-1))return this.#C[t+1]}previousSiblingOf(e){const t=this.indexOfChild(e);if(!(t<1))return this.#C[t-1]}nextOf(t){if(!t.parent)return;if(t.parent!==this)return t.parent.nextOf(t);if(t instanceof e&&t.children.length>0)return t.children[0];const i=this.nextSiblingOf(t);return i||this.parent.nextOf(this)}isNamespace(e){return void 0!==e.inline&&void 0!==e.attributes}},li=(class extends ci{static{ri(this,"BlockSymbol")}},class extends oi{static{ri(this,"TypedSymbol")}type;constructor(e,t){super(e),this.type=t}}),hi=class extends li{static{ri(this,"VariableSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},di=class extends hi{static{ri(this,"FieldSymbol")}setter;getter},ui=class extends hi{static{ri(this,"ParameterSymbol")}},gi=class extends ci{static{ri(this,"RoutineSymbol")}returnType;constructor(e,t){super(e),this.returnType=t}getVariables(e=!0){return this.getSymbolsOfType(hi)}getParameters(e=!0){return this.getSymbolsOfType(ui)}},pi=class extends gi{static{ri(this,"MethodSymbol")}methodFlags=0},mi=(class extends ci{static{ri(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(e,t,i){super(e),this.extends=t,this.implements=i}get baseTypes(){return this.extends}get kind(){return 7}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class e{static{ri(this,"FundamentalType")}static integerType=new e("int",1,3);static floatType=new e("float",2,3);static stringType=new e("string",4,3);static boolType=new e("bool",6,3);name;typeKind;referenceKind;constructor(e,t=0,i=0){this.name=e,this.typeKind=t,this.referenceKind=i}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends ci{static{ri(this,"InterfaceSymbol")}reference=0;extends;constructor(e,t){super(e),this.extends=t}get baseTypes(){return this.extends}get kind(){return 8}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class extends li{static{ri(this,"LiteralSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},class extends ci{static{ri(this,"NamespaceSymbol")}inline;attributes;constructor(e,t=!1,i=[]){super(e),this.inline=t,this.attributes=i}}),fi=(class extends oi{static{ri(this,"TypeAlias")}targetType;constructor(e,t){super(e),this.targetType=t}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},ri(((e,t)=>{if(!e||!t)return[];let i;for(i=0;i<Math.min(e.length,t.length)&&e[i]===t[i];i++);return e.slice(0,i)}),"longestCommonPrefix")),_i=class{static{ri(this,"CandidatesCollection")}tokens=new Map;rules=new Map},vi=class{static{ri(this,"FollowSetWithPath")}intervals;path=[];following=[]},Ci=class e{static{ri(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new _i;constructor(e){this.parser=e,this.atn=e.atn,this.vocabulary=e.vocabulary,this.ruleNames=e.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(e,t){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=t?.start?t.start.tokenIndex:0;const i=this.parser.tokenStream;this.tokens=[];let s=this.tokenStartIndex;for(;;){const t=i.get(s++);if(!t)break;if(t.channel===r.DEFAULT_CHANNEL&&(this.tokens.push(t),t.tokenIndex>=e||t.type===r.EOF))break;if(t.type===r.EOF)break}const n=t?t.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[n],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const t of this.candidates.rules){let e="";for(const i of t[1].ruleList)e+=this.ruleNames[i]+" ";console.log(this.ruleNames[t[0]]+", path: ",e)}const e=new Set;for(const t of this.candidates.tokens){let i=this.vocabulary.getDisplayName(t[0])??"";for(const e of t[1])i+=" "+this.vocabulary.getDisplayName(e);e.add(i)}console.log("\n\nCollected tokens:\n");for(const t of e)console.log(t);console.log("\n\n")}return this.candidates}checkPredicate(e){return e.getPredicate().evaluate(this.parser,W.empty)}translateStackToRuleIndex(e){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let t=e.length-1;t>=0;t--)if(this.translateToRuleIndex(t,e))return!0}else for(let t=0;t<e.length;t++)if(this.translateToRuleIndex(t,e))return!0;return!1}translateToRuleIndex(e,t){const{ruleIndex:i,startTokenIndex:s}=t[e];if(this.preferredRules.has(i)){const n=t.slice(0,e).map((({ruleIndex:e})=>e));let r=!0;for(const e of this.candidates.rules)if(e[0]===i&&e[1].ruleList.length===n.length&&n.every(((t,i)=>t===e[1].ruleList[i]))){r=!1;break}return r&&(this.candidates.rules.set(i,{startTokenIndex:s,ruleList:n}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[i])),!0}return!1}getFollowingTokens(e){const t=[],i=[e.target];for(;i.length>0;){const e=i.pop();e&&e.transitions.forEach((e=>{if(e.transitionType===I.ATOM)if(e.isEpsilon)i.push(e.target);else{const s=e.label.toArray();1!==s.length||this.ignoredTokens.has(s[0])||(t.push(s[0]),i.push(e.target))}}))}return t}determineFollowSets(e,t){const i=[],s=this.collectFollowSets(e,t,i,[],[]),n=new _;for(const r of i)n.addSet(r.intervals);return{sets:i,isExhaustive:s,combined:n}}collectFollowSets(e,t,i,s,n){if(s.find((t=>t===e)))return!0;if(s.push(e),e===t||e.constructor.stateType===x.RULE_STOP)return s.pop(),!1;let o=!0;for(const a of e.transitions)if(a.transitionType===I.RULE){const e=a;if(-1!==n.indexOf(e.target.ruleIndex))continue;n.push(e.target.ruleIndex);const r=this.collectFollowSets(a.target,t,i,s,n);if(n.pop(),!r){const r=this.collectFollowSets(e.followState,t,i,s,n);o&&=r}}else if(a.transitionType===I.PREDICATE){if(this.checkPredicate(a)){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}}else if(a.isEpsilon){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}else if(a.transitionType===I.WILDCARD){const e=new vi;e.intervals=_.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),e.path=n.slice(),i.push(e)}else{let e=a.label;if(e&&e.length>0){a.transitionType===I.NOT_SET&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const t=new vi;t.intervals=e??new _,t.path=n.slice(),t.following=this.getFollowingTokens(a),i.push(t)}}return s.pop(),o}processRule(t,i,s,n,o){let a=this.shortcutMap.get(t.ruleIndex);if(a){if(a.has(i))return this.showDebugOutput&&console.log("=====> shortcut"),a.get(i)}else a=new Map,this.shortcutMap.set(t.ruleIndex,a);const c=new Set;let l=e.followSetsByATN.get(this.parser.constructor.name);l||(l=new Map,e.followSetsByATN.set(this.parser.constructor.name,l));let h=l.get(t.stateNumber);if(!h){const e=this.atn.ruleToStopState[t.ruleIndex];h=this.determineFollowSets(t,e),l.set(t.stateNumber,h)}const d=this.tokens[i].tokenIndex;if(s.push({startTokenIndex:d,ruleIndex:t.ruleIndex}),i>=this.tokens.length-1){if(this.preferredRules.has(t.ruleIndex))this.translateStackToRuleIndex(s);else for(const e of h.sets){const t=s.slice(),i=e.path.map((e=>({startTokenIndex:d,ruleIndex:e})));if(t.push(...i),!this.translateStackToRuleIndex(t))for(const s of e.intervals.toArray())this.ignoredTokens.has(s)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s)),this.candidates.tokens.has(s)?this.candidates.tokens.get(s)!==e.following&&this.candidates.tokens.set(s,[]):this.candidates.tokens.set(s,e.following))}return h.isExhaustive||c.add(i),s.pop(),c}{const e=this.tokens[i].type;if(h.isExhaustive&&!h.combined.contains(e))return s.pop(),c}t.isPrecedenceRule&&this.precedenceStack.push(n);const u=[];let g;for(u.push({state:t,tokenListIndex:i});u.length>0;){g=u.pop(),++this.statesProcessed;const e=this.tokens[g.tokenListIndex].type,t=g.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(o,g.state,this.generateBaseDescription(g.state),g.tokenListIndex),this.showRuleStack&&this.printRuleState(s)),g.state.constructor.stateType===x.RULE_STOP){c.add(g.tokenListIndex);continue}const i=g.state.transitions;for(const n of i)switch(n.transitionType){case I.RULE:{const e=n,t=this.processRule(n.target,g.tokenListIndex,s,e.precedence,o+1);for(const i of t)u.push({state:n.followState,tokenListIndex:i});break}case I.PREDICATE:this.checkPredicate(n)&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.PRECEDENCE:n.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.WILDCARD:if(t){if(!this.translateStackToRuleIndex(s))for(const e of _.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(e)||this.candidates.tokens.set(e,[])}else u.push({state:n.target,tokenListIndex:g.tokenListIndex+1});break;default:{if(n.isEpsilon){u.push({state:n.target,tokenListIndex:g.tokenListIndex});continue}let i=n.label;if(i&&i.length>0)if(n.transitionType===I.NOT_SET&&(i=i.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),t){if(!this.translateStackToRuleIndex(s)){const e=i.toArray(),t=1===e.length;for(const i of e)if(!this.ignoredTokens.has(i)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(i));const e=t?this.getFollowingTokens(n):[];this.candidates.tokens.has(i)?this.candidates.tokens.set(i,fi(e,this.candidates.tokens.get(i))):this.candidates.tokens.set(i,e)}}}else i.contains(e)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(e)),u.push({state:n.target,tokenListIndex:g.tokenListIndex+1}))}}}return s.pop(),t.isPrecedenceRule&&this.precedenceStack.pop(),a.set(i,c),c}generateBaseDescription(t){return`[${t.stateNumber===x.INVALID_STATE_NUMBER?"Invalid":t.stateNumber} ${e.atnStateTypeMap[t.constructor.stateType]}] in ${this.ruleNames[t.ruleIndex]}`}printDescription(t,i,s,n){const r=" ".repeat(t);let o=r,a="";if(this.debugOutputWithTransitions)for(const c of i.transitions){let t="";const i=c.label?c.label.toArray():[];if(i.length>2)t=this.vocabulary.getDisplayName(i[0])+" .. "+this.vocabulary.getDisplayName(i[i.length-1]);else for(const e of i)t.length>0&&(t+=", "),t+=this.vocabulary.getDisplayName(e);0===t.length&&(t="\u03b5");const s=e.atnStateTypeMap[c.target.constructor.stateType];a+=`\n${r}\t(${t}) [${c.target.stateNumber} ${s}] in ${this.ruleNames[c.target.ruleIndex]}`}n>=this.tokens.length-1?o+=`<<${this.tokenStartIndex+n}>> `:o+=`<${this.tokenStartIndex+n}> `,console.log(o+"Current state: "+s+a)}printRuleState(e){if(0!==e.length)for(const t of e)console.log(this.ruleNames[t.ruleIndex]);else console.log("<empty stack>")}},Ei=class extends ci{constructor(e,t){super(e),this.options=t}static{ri(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...e){e.forEach((e=>{this.dependencies.add(e)}))}removeDependency(e){this.dependencies.has(e)&&this.dependencies.delete(e)}addNewSymbolOfType(e,t,...i){const s=new e(...i);return t&&t!==this?t.addSymbol(s):this.addSymbol(s),s}async addNewNamespaceFromPath(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=await r.resolve(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}addNewNamespaceFromPathSync(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=r.resolveSync(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}async getAllSymbols(e,t=!1){const i=await super.getAllSymbols(e,t);if(!t){(await Promise.all([...this.dependencies].map((i=>i.getAllSymbols(e,t))))).forEach((e=>{i.push(...e)}))}return i}getAllSymbolsSync(e,t=!1){const i=super.getAllSymbolsSync(e,t);return t||this.dependencies.forEach((s=>{i.push(...s.getAllSymbolsSync(e,t))})),i}async symbolWithContext(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=await this.getAllSymbols(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=await s.getAllSymbols(oi);for(const e of i){const i=t(e);if(i)return i}}}symbolWithContextSync(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof ci)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=this.getAllSymbolsSync(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=s.getAllSymbolsSync(oi);for(const e of i){const i=t(e);if(i)return i}}}async resolve(e,t=!1){let i=await super.resolve(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=await s.resolve(e,!1),i)return i;return i}resolveSync(e,t=!1){let i=super.resolveSync(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=s.resolveSync(e,!1),i)return i;return i}},bi=(Object.create,Object.defineProperty),Si=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty,(e,t)=>bi(e,"name",{value:t,configurable:!0})),yi=/[\w]$/,wi=/\r\n|\n|\r/g;function Ri(e,t){let i=e.column,s=e.column+(e.text?.length||0),n=e.line;return{startColumn:i,startLine:n,endColumn:s,endLine:e.type===t&&e.text?n+(e.text.match(wi)?.length||0):n}}function Li(e,t,i,s){let n=t.column-1;for(let r=0;r<e.size;r++){let o=e.get(r),{startColumn:a,startLine:c,endColumn:l,endLine:h}=Ri(o,i);if(h>t.line||c===t.line&&l>n)return s?r:r>0&&c===t.line&&a===n&&yi.test(e.get(r-1).text||"")?r-1:e.get(r).type===i?r+1:r}}function Ti(e,t){let i=e.split(wi),s=e.match(wi),n="";s&&(n=s[0]);let r=0;return i.reduce(((e,i,s)=>(t.line-1===s&&(r=e.length?e.length+t.column:t.column-1),0===s?i:e+n+i)),""),r}function xi(e,t){return e===t.startTokenIndex}function ki(e,t){let i=e.slice(0,t-1),s=e.slice(t-1),n=i.lastIndexOf(";"),r=s.indexOf(";"),o=n>-1?n+1:0,a=r>-1?r+i.length:e.length;return{statement:e.slice(o,a),cursorIndex:t-o}}Si(Ri,"getTokenPosition"),Si(Li,"findCursorTokenIndex"),Si(Ti,"getCursorIndex"),Si(xi,"isStartingToWriteRule"),Si(ki,"getCurrentStatement");var Ai="(\\s|\r\n|\n|\r)+",Ni=new RegExp(`^(${Ai})?explain${Ai}$`),Ii=new RegExp(`^(${Ai})?\\S+${Ai}`);function Oi(e,t){let i=Ti(e,t),s=ki(e,i),n=s.statement.slice(0,s.cursorIndex).toLowerCase();return!(0!==i&&n.match(Ii)&&!n.match(Ni))}function Di(e,t,i){let s=new e(ft.fromString(i)),n=new t(new St(s));return n.removeErrorListeners(),n}function Mi(e,t){return new e(ft.fromString(t))}Si(Oi,"shouldSuggestTemplates"),Si(Di,"createParser"),Si(Mi,"createLexer");var Pi,Fi=class{static{Si(this,"SqlErrorListener")}constructor(e){this.errors=[],this.whitespaceToken=e}syntaxError(e,t,i,s,n){if(t){let e=Ri(t,this.whitespaceToken);this.errors.push({message:n,...e})}else this.errors.push({message:n,startLine:i,startColumn:s,endLine:i,endColumn:s})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},Ui=((Pi=Ui||{}).Autocomplete="autocomplete",Pi.Tokens="tokens",Pi);function Hi(e,t,i,s,n,r,o,a){let c=Di(t,i,e),{tokenStream:l}=c,h=new Fi(s);c.removeErrorListeners(),c.addErrorListener(h),a(c);let d=Wi(c,l,o,r);return d.length?{statementPositions:d,strategy:"autocomplete"}:{statementPositions:Bi(l,n,r),strategy:"tokens"}}function Bi(e,t,i){let s=0,n=!1,r=e.size-2,o=[];for(let a=0;a<=r;a++){let c=e.get(a),l=c.type===i,h=t.includes(c.type);if(n||!h)if(n||(n=!0,s=c.start),l&&s===c.start)n=!1;else{if(l||a===r){let e=c.text?.length||0,t={startIndex:s,endIndex:c.start+e};o.push(t)}l&&(n=!1)}}return o}function Wi(e,t,i,s){let n=new Ci(e);n.preferredRules=new Set([i]);let r=t.get(t.size-2),o=[];for(;r?.tokenIndex>0;){let e,a=n.collectCandidates(r.tokenIndex).rules;!a.size&&r.type===s&&(a=n.collectCandidates(r.tokenIndex-1).rules);for(let[s,{startTokenIndex:n}]of a)if(s===i){e=t.get(n);break}if(!e)break;e.tokenIndex>r.tokenIndex?r=t.get(r.tokenIndex-1):(o.push({startIndex:e.start,endIndex:r.start+(r.text?.length||0)}),r=t.get(e.tokenIndex-1))}return o.reverse(),o}Si(Hi,"extractStatementPositionsFromQuery"),Si(Bi,"extractStatementsUsingTokens"),Si(Wi,"extractStatementsUsingAutocomplete");function Vi(e,t,i,s){let n=Mi(e,s),r=new Fi(i);n.removeErrorListeners(),n.addErrorListener(r);let o=[],a=!1;do{let e=n.nextToken();if(null===e||-1===e.type)a=!0;else{let i=t[e.type];i&&o.push({ruleName:i,startIndex:e.start,column:e.column,line:e.line,type:e.type,text:e.text})}}while(!a);return{tokens:o,errors:r.errors}}function zi(e,t,i,s,n){let r=Di(e,t,n),o=new Fi(i);return r.removeErrorListeners(),r.addErrorListener(o),s(r),{errors:o.errors}}Si(Vi,"tokenize"),Si(zi,"parseQueryWithoutCursor");var Gi=/^'(.*)'$/;function ji(e,t,i,s,n,r,o,a,c,l){let h=Di(e,t,a),{tokenStream:d}=h,u=new Fi(i);h.removeErrorListeners(),h.addErrorListener(u),r(h);let g=new Ci(h);g.ignoredTokens=s,g.preferredRules=n;let p=Li(d,c,i);if(void 0===p)throw new Error(`Could not find cursor token index for line: ${c.line}, column: ${c.column}`);let m=[],{tokens:f,rules:_}=g.collectCandidates(p,l);return f.forEach(((e,t)=>{let i=h.vocabulary.getLiteralName(t)?.replace(Gi,"$1")||h.vocabulary.getSymbolicName(t);if(!i)throw new Error(`Could not get name for token ${t}`);m.push({value:i})})),o({errors:u.errors,suggestKeywords:m},_,d,p,c,a)}function Ki(e){let t,i=e.split(wi);for(let h=0;h<i.length;h++)if(i[h]?.includes("|")){t=h;break}if(void 0===t)throw new Error(`Cursor not provided for query ${e}`);let s=i[t];if(!s)throw new Error(`Line ${t} not found`);let[n,r,...o]=e.split("|"),[a,c,...l]=s.split("|");if(o.length>0||l.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${e}`);if(void 0===n||void 0===r||void 0===a||void 0===c)throw new Error(`Cursor not provided for query ${e}`);return[n+r,{line:t+1,column:a.length+1}]}Si(ji,"parseQuery"),Si(Ki,"separateQueryAndCursor");var Yi=class extends li{static{Si(this,"TableSymbol")}constructor(e,t,i,s){super(e,s),this.name=e,this.alias=t,this.columns=i}},qi=class extends hi{static{Si(this,"VariableSymbol")}};function $i(e=[]){let t=e.reduce(((e,t)=>{let i=e[t.name]?.aliases??new Set;return t.alias&&i.add(t.alias),e[t.name]={aliases:i,columns:t.columns},e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i]?.aliases,n=t[i]?.columns;return s&&s.size>0?s?.forEach((t=>{e.push({name:i,alias:t,columns:n})})):e.push({name:i,columns:n}),e}),[])}function Qi(e){return $i(e.symbolTable.getNestedSymbolsOfTypeSync(Yi))}Si($i,"getUniqueTableSuggestions"),Si(Qi,"getTablesFromSymbolTable");var Xi=class extends li{static{Si(this,"ColumnAliasSymbol")}constructor(e,t){super(e,t),this.name=e}};function Zi(e){return e.symbolTable.getNestedSymbolsOfTypeSync(Xi).map((({name:e})=>({name:e})))}function Ji(e,t){let i=t.symbolWithContextSync(e);return i||(e.parent?Ji(e.parent,t):void 0)}function es(e,t,i){let s=t;for(;s<e.size;){let t=e.get(s);if(t.type===i.CLOSING_BRACKET||t.type===i.SEMICOLON)return{cursorIndex:t.start,tokenIndex:s};if(t.type===i.OPENING_BRACKET)return;s++}let n=e.size-1;return{cursorIndex:e.get(n).start,tokenIndex:n}}function ts(e,t,i){let s=e.get(e.size-1).start,n=t,r=!1;for(;n>=0&&n<e.size;){let s=e.get(n);if(s.type===i.OPENING_BRACKET||s.type===i.CLOSING_BRACKET||s.type===i.SEMICOLON){if(r)break;n=t,r=!0}if(s.type===i.FROM){let r=es(e,t,i);if(!r)break;let o=is(e,n,r.tokenIndex,i),a=o?{start:o,end:r.cursorIndex}:void 0,c=ss(e,i,r.tokenIndex,i.SELECT),l=c?{start:c.start,end:r.cursorIndex}:void 0;return{start:s.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:a,selectTableQueryPosition:l}}r?n++:n--,-1===n&&(n=t,r=!0)}for(n=t;n>=0;){let t=e.get(n);if(t.type===i.SEMICOLON)return;if(t.type===i.ALTER&&!ss(e,i,n,i.ALTER))return{start:t.start,end:s,type:"alter"};if(t.type===i.INSERT||t.type===i.UPSERT)return{start:t.start,end:s,type:"insert"};if(t.type===i.UPDATE)return{start:t.start,end:s,type:"update"};n--}}function is(e,t,i,s){let n=t;for(;n<i;){let t=e.get(n);if(t.type===s.JOIN)return t.stop+1;n++}}function ss(e,t,i,s){let n=i-1;for(;n>-1;){let i=e.get(n);if(i.type===t.SEMICOLON)return;if(i.type===s)return i;n--}}Si(Zi,"getColumnAliasesFromSymbolTable"),Si(Ji,"getScope"),Si(es,"getClosingBracketIndex"),Si(ts,"getTableQueryPosition"),Si(is,"getJoinIndex"),Si(ss,"getPreviousToken"),Si((function(e,t,i,s,n,r,o,a,c){let l=Li(r,o,s.SPACE,!0);if(!l)throw new Error(`Could not find actualCursorTokenIndex at Ln ${o.line}, Col ${o.column}`);let h={},d=ts(r,l,s);if(d){let s=n(Di(e,t,a.slice(d.start,d.end)),d.type);if(i.visit(s),c&&d.joinTableQueryPosition){let s=n(Di(e,t,a.slice(d.joinTableQueryPosition.start,d.joinTableQueryPosition.end)),"from");i.visit(s)}if(d.selectTableQueryPosition){let s=n(Di(e,t,a.slice(d.selectTableQueryPosition.start,d.selectTableQueryPosition.end)),"select");i.visit(s)}let r=Qi(i);r.length&&(h.tableContextSuggestion={tables:r});let o=Zi(i);o.length&&(h.suggestColumnAliases=o.map((({name:e})=>({name:e}))))}return h}),"getContextSuggestions");var ns=class e extends Je{static{Si(this,"YQLLexer")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","DOUBLE_COMMAT","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}static{this._serializedATN=[4,0,334,3207,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,200,1,200,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,349,1,349,1,349,1,349,1,349,1,350,1,350,1,350,1,350,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,354,1,355,1,355,1,355,1,355,1,356,1,356,1,356,1,356,3,356,2996,8,356,1,357,1,357,1,357,1,357,3,357,3002,8,357,1,358,1,358,5,358,3006,8,358,10,358,12,358,3009,9,358,1,358,1,358,1,359,1,359,5,359,3015,8,359,10,359,12,359,3018,9,359,1,359,1,359,1,360,1,360,5,360,3024,8,360,10,360,12,360,3027,9,360,1,360,1,360,4,360,3031,8,360,11,360,12,360,3032,1,360,3,360,3036,8,360,1,361,1,361,1,361,3,361,3041,8,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,1,361,3,361,3051,8,361,3,361,3053,8,361,1,362,1,362,1,362,5,362,3058,8,362,10,362,12,362,3061,9,362,1,363,1,363,1,363,1,363,1,363,3,363,3068,8,363,1,364,1,364,5,364,3072,8,364,10,364,12,364,3075,9,364,1,364,1,364,1,365,1,365,1,366,1,366,1,367,1,367,1,367,4,367,3086,8,367,11,367,12,367,3087,1,368,1,368,1,368,4,368,3093,8,368,11,368,12,368,3094,1,369,1,369,1,369,4,369,3100,8,369,11,369,12,369,3101,1,370,4,370,3105,8,370,11,370,12,370,3106,1,371,1,371,1,371,1,371,3,371,3113,8,371,1,372,1,372,1,372,3,372,3118,8,372,1,372,1,372,1,372,1,372,1,372,1,372,3,372,3126,8,372,1,373,1,373,1,373,3,373,3131,8,373,1,373,1,373,1,374,1,374,1,374,5,374,3138,8,374,10,374,12,374,3141,9,374,1,374,3,374,3144,8,374,1,374,1,374,1,374,3,374,3149,8,374,1,374,1,374,1,374,1,374,1,374,1,374,3,374,3157,8,374,3,374,3159,8,374,1,375,1,375,1,375,4,375,3164,8,375,11,375,12,375,3165,1,375,1,375,1,376,1,376,1,376,1,376,5,376,3174,8,376,10,376,12,376,3177,9,376,1,376,1,376,1,376,1,377,1,377,1,377,1,377,5,377,3186,8,377,10,377,12,377,3189,9,377,1,377,1,377,3,377,3193,8,377,1,377,3,377,3196,8,377,1,378,1,378,1,378,1,378,1,379,1,379,3,379,3204,8,379,1,379,1,379,2,3025,3175,0,380,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,0,77,0,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,38,139,39,141,40,143,41,145,42,147,43,149,44,151,45,153,46,155,47,157,48,159,49,161,50,163,51,165,52,167,53,169,54,171,55,173,56,175,57,177,58,179,59,181,60,183,61,185,62,187,63,189,64,191,65,193,66,195,67,197,68,199,69,201,70,203,71,205,72,207,73,209,74,211,75,213,76,215,77,217,78,219,79,221,80,223,81,225,82,227,83,229,84,231,85,233,86,235,87,237,88,239,89,241,90,243,91,245,92,247,93,249,94,251,95,253,96,255,97,257,98,259,99,261,100,263,101,265,102,267,103,269,104,271,105,273,106,275,107,277,108,279,109,281,110,283,111,285,112,287,113,289,114,291,115,293,116,295,117,297,118,299,119,301,120,303,121,305,122,307,123,309,124,311,125,313,126,315,127,317,128,319,129,321,130,323,131,325,132,327,133,329,134,331,135,333,136,335,137,337,138,339,139,341,140,343,141,345,142,347,143,349,144,351,145,353,146,355,147,357,148,359,149,361,150,363,151,365,152,367,153,369,154,371,155,373,156,375,157,377,158,379,159,381,160,383,161,385,162,387,163,389,164,391,165,393,166,395,167,397,168,399,169,401,170,403,171,405,172,407,173,409,174,411,175,413,176,415,177,417,178,419,179,421,180,423,181,425,182,427,183,429,184,431,185,433,186,435,187,437,188,439,189,441,190,443,191,445,192,447,193,449,194,451,195,453,196,455,197,457,198,459,199,461,200,463,201,465,202,467,203,469,204,471,205,473,206,475,207,477,208,479,209,481,210,483,211,485,212,487,213,489,214,491,215,493,216,495,217,497,218,499,219,501,220,503,221,505,222,507,223,509,224,511,225,513,226,515,227,517,228,519,229,521,230,523,231,525,232,527,233,529,234,531,235,533,236,535,237,537,238,539,239,541,240,543,241,545,242,547,243,549,244,551,245,553,246,555,247,557,248,559,249,561,250,563,251,565,252,567,253,569,254,571,255,573,256,575,257,577,258,579,259,581,260,583,261,585,262,587,263,589,264,591,265,593,266,595,267,597,268,599,269,601,270,603,271,605,272,607,273,609,274,611,275,613,276,615,277,617,278,619,279,621,280,623,281,625,282,627,283,629,284,631,285,633,286,635,287,637,288,639,289,641,290,643,291,645,292,647,293,649,294,651,295,653,296,655,297,657,298,659,299,661,300,663,301,665,302,667,303,669,304,671,305,673,306,675,307,677,308,679,309,681,310,683,311,685,312,687,313,689,314,691,315,693,316,695,317,697,318,699,319,701,320,703,321,705,322,707,323,709,324,711,325,713,0,715,0,717,0,719,0,721,0,723,326,725,327,727,0,729,328,731,0,733,0,735,0,737,0,739,0,741,0,743,329,745,330,747,0,749,331,751,332,753,0,755,0,757,333,759,334,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3212,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,697,1,0,0,0,0,699,1,0,0,0,0,701,1,0,0,0,0,703,1,0,0,0,0,705,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,711,1,0,0,0,0,723,1,0,0,0,0,725,1,0,0,0,0,729,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,749,1,0,0,0,0,751,1,0,0,0,0,757,1,0,0,0,0,759,1,0,0,0,1,761,1,0,0,0,3,763,1,0,0,0,5,766,1,0,0,0,7,769,1,0,0,0,9,772,1,0,0,0,11,774,1,0,0,0,13,777,1,0,0,0,15,779,1,0,0,0,17,782,1,0,0,0,19,785,1,0,0,0,21,789,1,0,0,0,23,791,1,0,0,0,25,793,1,0,0,0,27,796,1,0,0,0,29,799,1,0,0,0,31,802,1,0,0,0,33,804,1,0,0,0,35,806,1,0,0,0,37,808,1,0,0,0,39,810,1,0,0,0,41,812,1,0,0,0,43,814,1,0,0,0,45,816,1,0,0,0,47,818,1,0,0,0,49,820,1,0,0,0,51,822,1,0,0,0,53,824,1,0,0,0,55,826,1,0,0,0,57,828,1,0,0,0,59,830,1,0,0,0,61,832,1,0,0,0,63,834,1,0,0,0,65,836,1,0,0,0,67,838,1,0,0,0,69,841,1,0,0,0,71,844,1,0,0,0,73,846,1,0,0,0,75,848,1,0,0,0,77,850,1,0,0,0,79,852,1,0,0,0,81,854,1,0,0,0,83,856,1,0,0,0,85,859,1,0,0,0,87,861,1,0,0,0,89,863,1,0,0,0,91,865,1,0,0,0,93,867,1,0,0,0,95,869,1,0,0,0,97,871,1,0,0,0,99,873,1,0,0,0,101,875,1,0,0,0,103,877,1,0,0,0,105,879,1,0,0,0,107,881,1,0,0,0,109,883,1,0,0,0,111,885,1,0,0,0,113,887,1,0,0,0,115,889,1,0,0,0,117,891,1,0,0,0,119,893,1,0,0,0,121,895,1,0,0,0,123,897,1,0,0,0,125,899,1,0,0,0,127,901,1,0,0,0,129,903,1,0,0,0,131,905,1,0,0,0,133,907,1,0,0,0,135,909,1,0,0,0,137,911,1,0,0,0,139,917,1,0,0,0,141,924,1,0,0,0,143,928,1,0,0,0,145,934,1,0,0,0,147,938,1,0,0,0,149,944,1,0,0,0,151,952,1,0,0,0,153,956,1,0,0,0,155,961,1,0,0,0,157,965,1,0,0,0,159,971,1,0,0,0,161,974,1,0,0,0,163,978,1,0,0,0,165,985,1,0,0,0,167,996,1,0,0,0,169,1002,1,0,0,0,171,1005,1,0,0,0,173,1012,1,0,0,0,175,1023,1,0,0,0,177,1037,1,0,0,0,179,1045,1,0,0,0,181,1052,1,0,0,0,183,1058,1,0,0,0,185,1069,1,0,0,0,187,1076,1,0,0,0,189,1082,1,0,0,0,191,1092,1,0,0,0,193,1100,1,0,0,0,195,1108,1,0,0,0,197,1111,1,0,0,0,199,1120,1,0,0,0,201,1128,1,0,0,0,203,1133,1,0,0,0,205,1138,1,0,0,0,207,1149,1,0,0,0,209,1155,1,0,0,0,211,1166,1,0,0,0,213,1174,1,0,0,0,215,1181,1,0,0,0,217,1189,1,0,0,0,219,1196,1,0,0,0,221,1204,1,0,0,0,223,1216,1,0,0,0,225,1225,1,0,0,0,227,1233,1,0,0,0,229,1244,1,0,0,0,231,1253,1,0,0,0,233,1259,1,0,0,0,235,1266,1,0,0,0,237,1272,1,0,0,0,239,1277,1,0,0,0,241,1285,1,0,0,0,243,1298,1,0,0,0,245,1311,1,0,0,0,247,1329,1,0,0,0,249,1334,1,0,0,0,251,1343,1,0,0,0,253,1351,1,0,0,0,255,1359,1,0,0,0,257,1367,1,0,0,0,259,1378,1,0,0,0,261,1387,1,0,0,0,263,1394,1,0,0,0,265,1401,1,0,0,0,267,1406,1,0,0,0,269,1415,1,0,0,0,271,1422,1,0,0,0,273,1427,1,0,0,0,275,1437,1,0,0,0,277,1445,1,0,0,0,279,1453,1,0,0,0,281,1462,1,0,0,0,283,1465,1,0,0,0,285,1470,1,0,0,0,287,1475,1,0,0,0,289,1480,1,0,0,0,291,1486,1,0,0,0,293,1499,1,0,0,0,295,1509,1,0,0,0,297,1513,1,0,0,0,299,1518,1,0,0,0,301,1524,1,0,0,0,303,1530,1,0,0,0,305,1537,1,0,0,0,307,1546,1,0,0,0,309,1553,1,0,0,0,311,1561,1,0,0,0,313,1571,1,0,0,0,315,1581,1,0,0,0,317,1588,1,0,0,0,319,1596,1,0,0,0,321,1603,1,0,0,0,323,1612,1,0,0,0,325,1617,1,0,0,0,327,1623,1,0,0,0,329,1630,1,0,0,0,331,1637,1,0,0,0,333,1643,1,0,0,0,335,1651,1,0,0,0,337,1656,1,0,0,0,339,1666,1,0,0,0,341,1670,1,0,0,0,343,1678,1,0,0,0,345,1683,1,0,0,0,347,1688,1,0,0,0,349,1697,1,0,0,0,351,1702,1,0,0,0,353,1709,1,0,0,0,355,1715,1,0,0,0,357,1721,1,0,0,0,359,1730,1,0,0,0,361,1737,1,0,0,0,363,1742,1,0,0,0,365,1749,1,0,0,0,367,1753,1,0,0,0,369,1756,1,0,0,0,371,1763,1,0,0,0,373,1769,1,0,0,0,375,1779,1,0,0,0,377,1786,1,0,0,0,379,1789,1,0,0,0,381,1799,1,0,0,0,383,1811,1,0,0,0,385,1817,1,0,0,0,387,1825,1,0,0,0,389,1834,1,0,0,0,391,1842,1,0,0,0,393,1852,1,0,0,0,395,1858,1,0,0,0,397,1865,1,0,0,0,399,1873,1,0,0,0,401,1883,1,0,0,0,403,1888,1,0,0,0,405,1891,1,0,0,0,407,1898,1,0,0,0,409,1903,1,0,0,0,411,1915,1,0,0,0,413,1926,1,0,0,0,415,1937,1,0,0,0,417,1941,1,0,0,0,419,1946,1,0,0,0,421,1951,1,0,0,0,423,1958,1,0,0,0,425,1963,1,0,0,0,427,1969,1,0,0,0,429,1974,1,0,0,0,431,1980,1,0,0,0,433,1986,1,0,0,0,435,1993,1,0,0,0,437,1999,1,0,0,0,439,2007,1,0,0,0,441,2023,1,0,0,0,443,2032,1,0,0,0,445,2045,1,0,0,0,447,2058,1,0,0,0,449,2065,1,0,0,0,451,2077,1,0,0,0,453,2085,1,0,0,0,455,2090,1,0,0,0,457,2093,1,0,0,0,459,2101,1,0,0,0,461,2105,1,0,0,0,463,2113,1,0,0,0,465,2118,1,0,0,0,467,2124,1,0,0,0,469,2131,1,0,0,0,471,2134,1,0,0,0,473,2141,1,0,0,0,475,2146,1,0,0,0,477,2149,1,0,0,0,479,2153,1,0,0,0,481,2158,1,0,0,0,483,2165,1,0,0,0,485,2174,1,0,0,0,487,2177,1,0,0,0,489,2183,1,0,0,0,491,2190,1,0,0,0,493,2196,1,0,0,0,495,2201,1,0,0,0,497,2210,1,0,0,0,499,2220,1,0,0,0,501,2228,1,0,0,0,503,2237,1,0,0,0,505,2242,1,0,0,0,507,2250,1,0,0,0,509,2254,1,0,0,0,511,2262,1,0,0,0,513,2267,1,0,0,0,515,2272,1,0,0,0,517,2279,1,0,0,0,519,2289,1,0,0,0,521,2297,1,0,0,0,523,2305,1,0,0,0,525,2316,1,0,0,0,527,2324,1,0,0,0,529,2330,1,0,0,0,531,2336,1,0,0,0,533,2342,1,0,0,0,535,2348,1,0,0,0,537,2355,1,0,0,0,539,2366,1,0,0,0,541,2373,1,0,0,0,543,2381,1,0,0,0,545,2389,1,0,0,0,547,2396,1,0,0,0,549,2403,1,0,0,0,551,2414,1,0,0,0,553,2422,1,0,0,0,555,2434,1,0,0,0,557,2440,1,0,0,0,559,2449,1,0,0,0,561,2457,1,0,0,0,563,2465,1,0,0,0,565,2473,1,0,0,0,567,2482,1,0,0,0,569,2489,1,0,0,0,571,2496,1,0,0,0,573,2506,1,0,0,0,575,2513,1,0,0,0,577,2520,1,0,0,0,579,2526,1,0,0,0,581,2532,1,0,0,0,583,2541,1,0,0,0,585,2548,1,0,0,0,587,2552,1,0,0,0,589,2557,1,0,0,0,591,2564,1,0,0,0,593,2574,1,0,0,0,595,2581,1,0,0,0,597,2589,1,0,0,0,599,2594,1,0,0,0,601,2601,1,0,0,0,603,2606,1,0,0,0,605,2610,1,0,0,0,607,2615,1,0,0,0,609,2620,1,0,0,0,611,2625,1,0,0,0,613,2634,1,0,0,0,615,2641,1,0,0,0,617,2647,1,0,0,0,619,2654,1,0,0,0,621,2661,1,0,0,0,623,2670,1,0,0,0,625,2677,1,0,0,0,627,2685,1,0,0,0,629,2695,1,0,0,0,631,2700,1,0,0,0,633,2707,1,0,0,0,635,2713,1,0,0,0,637,2720,1,0,0,0,639,2732,1,0,0,0,641,2743,1,0,0,0,643,2750,1,0,0,0,645,2755,1,0,0,0,647,2765,1,0,0,0,649,2770,1,0,0,0,651,2775,1,0,0,0,653,2778,1,0,0,0,655,2784,1,0,0,0,657,2796,1,0,0,0,659,2805,1,0,0,0,661,2813,1,0,0,0,663,2818,1,0,0,0,665,2824,1,0,0,0,667,2829,1,0,0,0,669,2839,1,0,0,0,671,2853,1,0,0,0,673,2859,1,0,0,0,675,2866,1,0,0,0,677,2874,1,0,0,0,679,2884,1,0,0,0,681,2891,1,0,0,0,683,2898,1,0,0,0,685,2902,1,0,0,0,687,2907,1,0,0,0,689,2913,1,0,0,0,691,2920,1,0,0,0,693,2927,1,0,0,0,695,2935,1,0,0,0,697,2940,1,0,0,0,699,2948,1,0,0,0,701,2953,1,0,0,0,703,2959,1,0,0,0,705,2966,1,0,0,0,707,2971,1,0,0,0,709,2979,1,0,0,0,711,2987,1,0,0,0,713,2995,1,0,0,0,715,3001,1,0,0,0,717,3003,1,0,0,0,719,3012,1,0,0,0,721,3030,1,0,0,0,723,3040,1,0,0,0,725,3054,1,0,0,0,727,3067,1,0,0,0,729,3069,1,0,0,0,731,3078,1,0,0,0,733,3080,1,0,0,0,735,3082,1,0,0,0,737,3089,1,0,0,0,739,3096,1,0,0,0,741,3104,1,0,0,0,743,3112,1,0,0,0,745,3114,1,0,0,0,747,3127,1,0,0,0,749,3148,1,0,0,0,751,3160,1,0,0,0,753,3169,1,0,0,0,755,3181,1,0,0,0,757,3197,1,0,0,0,759,3203,1,0,0,0,761,762,5,61,0,0,762,2,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,4,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,6,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,8,1,0,0,0,772,773,5,60,0,0,773,10,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,12,1,0,0,0,777,778,5,62,0,0,778,14,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,16,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,18,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,20,1,0,0,0,789,790,5,38,0,0,790,22,1,0,0,0,791,792,5,124,0,0,792,24,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,26,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,28,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,30,1,0,0,0,802,803,5,43,0,0,803,32,1,0,0,0,804,805,5,45,0,0,805,34,1,0,0,0,806,807,5,126,0,0,807,36,1,0,0,0,808,809,5,42,0,0,809,38,1,0,0,0,810,811,5,47,0,0,811,40,1,0,0,0,812,813,5,37,0,0,813,42,1,0,0,0,814,815,5,59,0,0,815,44,1,0,0,0,816,817,5,46,0,0,817,46,1,0,0,0,818,819,5,44,0,0,819,48,1,0,0,0,820,821,5,40,0,0,821,50,1,0,0,0,822,823,5,41,0,0,823,52,1,0,0,0,824,825,5,63,0,0,825,54,1,0,0,0,826,827,5,58,0,0,827,56,1,0,0,0,828,829,5,64,0,0,829,58,1,0,0,0,830,831,5,36,0,0,831,60,1,0,0,0,832,833,5,123,0,0,833,62,1,0,0,0,834,835,5,125,0,0,835,64,1,0,0,0,836,837,5,94,0,0,837,66,1,0,0,0,838,839,5,58,0,0,839,840,5,58,0,0,840,68,1,0,0,0,841,842,5,45,0,0,842,843,5,62,0,0,843,70,1,0,0,0,844,845,5,93,0,0,845,72,1,0,0,0,846,847,5,91,0,0,847,74,1,0,0,0,848,849,5,92,0,0,849,76,1,0,0,0,850,851,5,34,0,0,851,78,1,0,0,0,852,853,5,39,0,0,853,80,1,0,0,0,854,855,5,96,0,0,855,82,1,0,0,0,856,857,5,64,0,0,857,858,5,64,0,0,858,84,1,0,0,0,859,860,7,0,0,0,860,86,1,0,0,0,861,862,7,1,0,0,862,88,1,0,0,0,863,864,7,2,0,0,864,90,1,0,0,0,865,866,7,3,0,0,866,92,1,0,0,0,867,868,7,4,0,0,868,94,1,0,0,0,869,870,7,5,0,0,870,96,1,0,0,0,871,872,7,6,0,0,872,98,1,0,0,0,873,874,7,7,0,0,874,100,1,0,0,0,875,876,7,8,0,0,876,102,1,0,0,0,877,878,7,9,0,0,878,104,1,0,0,0,879,880,7,10,0,0,880,106,1,0,0,0,881,882,7,11,0,0,882,108,1,0,0,0,883,884,7,12,0,0,884,110,1,0,0,0,885,886,7,13,0,0,886,112,1,0,0,0,887,888,7,14,0,0,888,114,1,0,0,0,889,890,7,15,0,0,890,116,1,0,0,0,891,892,7,16,0,0,892,118,1,0,0,0,893,894,7,17,0,0,894,120,1,0,0,0,895,896,7,18,0,0,896,122,1,0,0,0,897,898,7,19,0,0,898,124,1,0,0,0,899,900,7,20,0,0,900,126,1,0,0,0,901,902,7,21,0,0,902,128,1,0,0,0,903,904,7,22,0,0,904,130,1,0,0,0,905,906,7,23,0,0,906,132,1,0,0,0,907,908,7,24,0,0,908,134,1,0,0,0,909,910,7,25,0,0,910,136,1,0,0,0,911,912,3,85,42,0,912,913,3,87,43,0,913,914,3,113,56,0,914,915,3,119,59,0,915,916,3,123,61,0,916,138,1,0,0,0,917,918,3,85,42,0,918,919,3,89,44,0,919,920,3,123,61,0,920,921,3,101,50,0,921,922,3,113,56,0,922,923,3,111,55,0,923,140,1,0,0,0,924,925,3,85,42,0,925,926,3,91,45,0,926,927,3,91,45,0,927,142,1,0,0,0,928,929,3,85,42,0,929,930,3,95,47,0,930,931,3,123,61,0,931,932,3,93,46,0,932,933,3,119,59,0,933,144,1,0,0,0,934,935,3,85,42,0,935,936,3,107,53,0,936,937,3,107,53,0,937,146,1,0,0,0,938,939,3,85,42,0,939,940,3,107,53,0,940,941,3,123,61,0,941,942,3,93,46,0,942,943,3,119,59,0,943,148,1,0,0,0,944,945,3,85,42,0,945,946,3,111,55,0,946,947,3,85,42,0,947,948,3,107,53,0,948,949,3,133,66,0,949,950,3,135,67,0,950,951,3,93,46,0,951,150,1,0,0,0,952,953,3,85,42,0,953,954,3,111,55,0,954,955,3,91,45,0,955,152,1,0,0,0,956,957,3,85,42,0,957,958,3,111,55,0,958,959,3,121,60,0,959,960,3,101,50,0,960,154,1,0,0,0,961,962,3,85,42,0,962,963,3,111,55,0,963,964,3,133,66,0,964,156,1,0,0,0,965,966,3,85,42,0,966,967,3,119,59,0,967,968,3,119,59,0,968,969,3,85,42,0,969,970,3,133,66,0,970,158,1,0,0,0,971,972,3,85,42,0,972,973,3,121,60,0,973,160,1,0,0,0,974,975,3,85,42,0,975,976,3,121,60,0,976,977,3,89,44,0,977,162,1,0,0,0,978,979,3,85,42,0,979,980,3,121,60,0,980,981,3,121,60,0,981,982,3,125,62,0,982,983,3,109,54,0,983,984,3,93,46,0,984,164,1,0,0,0,985,986,3,85,42,0,986,987,3,121,60,0,987,988,3,133,66,0,988,989,3,109,54,0,989,990,3,109,54,0,990,991,3,93,46,0,991,992,3,123,61,0,992,993,3,119,59,0,993,994,3,101,50,0,994,995,3,89,44,0,995,166,1,0,0,0,996,997,3,85,42,0,997,998,3,121,60,0,998,999,3,133,66,0,999,1e3,3,111,55,0,1e3,1001,3,89,44,0,1001,168,1,0,0,0,1002,1003,3,85,42,0,1003,1004,3,123,61,0,1004,170,1,0,0,0,1005,1006,3,85,42,0,1006,1007,3,123,61,0,1007,1008,3,123,61,0,1008,1009,3,85,42,0,1009,1010,3,89,44,0,1010,1011,3,99,49,0,1011,172,1,0,0,0,1012,1013,3,85,42,0,1013,1014,3,123,61,0,1014,1015,3,123,61,0,1015,1016,3,119,59,0,1016,1017,3,101,50,0,1017,1018,3,87,43,0,1018,1019,3,125,62,0,1019,1020,3,123,61,0,1020,1021,3,93,46,0,1021,1022,3,121,60,0,1022,174,1,0,0,0,1023,1024,3,85,42,0,1024,1025,3,125,62,0,1025,1026,3,123,61,0,1026,1027,3,113,56,0,1027,1028,3,101,50,0,1028,1029,3,111,55,0,1029,1030,3,89,44,0,1030,1031,3,119,59,0,1031,1032,3,93,46,0,1032,1033,3,109,54,0,1033,1034,3,93,46,0,1034,1035,3,111,55,0,1035,1036,3,123,61,0,1036,176,1,0,0,0,1037,1038,3,85,42,0,1038,1039,3,125,62,0,1039,1040,3,123,61,0,1040,1041,3,113,56,0,1041,1042,3,109,54,0,1042,1043,3,85,42,0,1043,1044,3,115,57,0,1044,178,1,0,0,0,1045,1046,3,87,43,0,1046,1047,3,85,42,0,1047,1048,3,89,44,0,1048,1049,3,105,52,0,1049,1050,3,125,62,0,1050,1051,3,115,57,0,1051,180,1,0,0,0,1052,1053,3,87,43,0,1053,1054,3,85,42,0,1054,1055,3,123,61,0,1055,1056,3,89,44,0,1056,1057,3,99,49,0,1057,182,1,0,0,0,1058,1059,3,89,44,0,1059,1060,3,113,56,0,1060,1061,3,107,53,0,1061,1062,3,107,53,0,1062,1063,3,93,46,0,1063,1064,3,89,44,0,1064,1065,3,123,61,0,1065,1066,3,101,50,0,1066,1067,3,113,56,0,1067,1068,3,111,55,0,1068,184,1,0,0,0,1069,1070,3,87,43,0,1070,1071,3,93,46,0,1071,1072,3,95,47,0,1072,1073,3,113,56,0,1073,1074,3,119,59,0,1074,1075,3,93,46,0,1075,186,1,0,0,0,1076,1077,3,87,43,0,1077,1078,3,93,46,0,1078,1079,3,97,48,0,1079,1080,3,101,50,0,1080,1081,3,111,55,0,1081,188,1,0,0,0,1082,1083,3,87,43,0,1083,1084,3,93,46,0,1084,1085,3,119,59,0,1085,1086,3,111,55,0,1086,1087,3,113,56,0,1087,1088,3,125,62,0,1088,1089,3,107,53,0,1089,1090,3,107,53,0,1090,1091,3,101,50,0,1091,190,1,0,0,0,1092,1093,3,87,43,0,1093,1094,3,93,46,0,1094,1095,3,123,61,0,1095,1096,3,129,64,0,1096,1097,3,93,46,0,1097,1098,3,93,46,0,1098,1099,3,111,55,0,1099,192,1,0,0,0,1100,1101,3,87,43,0,1101,1102,3,101,50,0,1102,1103,3,123,61,0,1103,1104,3,89,44,0,1104,1105,3,85,42,0,1105,1106,3,121,60,0,1106,1107,3,123,61,0,1107,194,1,0,0,0,1108,1109,3,87,43,0,1109,1110,3,133,66,0,1110,196,1,0,0,0,1111,1112,3,89,44,0,1112,1113,3,85,42,0,1113,1114,3,107,53,0,1114,1115,3,107,53,0,1115,1116,3,85,42,0,1116,1117,3,87,43,0,1117,1118,3,107,53,0,1118,1119,3,93,46,0,1119,198,1,0,0,0,1120,1121,3,89,44,0,1121,1122,3,85,42,0,1122,1123,3,121,60,0,1123,1124,3,89,44,0,1124,1125,3,85,42,0,1125,1126,3,91,45,0,1126,1127,3,93,46,0,1127,200,1,0,0,0,1128,1129,3,89,44,0,1129,1130,3,85,42,0,1130,1131,3,121,60,0,1131,1132,3,93,46,0,1132,202,1,0,0,0,1133,1134,3,89,44,0,1134,1135,3,85,42,0,1135,1136,3,121,60,0,1136,1137,3,123,61,0,1137,204,1,0,0,0,1138,1139,3,89,44,0,1139,1140,3,99,49,0,1140,1141,3,85,42,0,1141,1142,3,111,55,0,1142,1143,3,97,48,0,1143,1144,3,93,46,0,1144,1145,3,95,47,0,1145,1146,3,93,46,0,1146,1147,3,93,46,0,1147,1148,3,91,45,0,1148,206,1,0,0,0,1149,1150,3,89,44,0,1150,1151,3,99,49,0,1151,1152,3,93,46,0,1152,1153,3,89,44,0,1153,1154,3,105,52,0,1154,208,1,0,0,0,1155,1156,3,89,44,0,1156,1157,3,107,53,0,1157,1158,3,85,42,0,1158,1159,3,121,60,0,1159,1160,3,121,60,0,1160,1161,3,101,50,0,1161,1162,3,95,47,0,1162,1163,3,101,50,0,1163,1164,3,93,46,0,1164,1165,3,119,59,0,1165,210,1,0,0,0,1166,1167,3,89,44,0,1167,1168,3,113,56,0,1168,1169,3,107,53,0,1169,1170,3,107,53,0,1170,1171,3,85,42,0,1171,1172,3,123,61,0,1172,1173,3,93,46,0,1173,212,1,0,0,0,1174,1175,3,89,44,0,1175,1176,3,113,56,0,1176,1177,3,107,53,0,1177,1178,3,125,62,0,1178,1179,3,109,54,0,1179,1180,3,111,55,0,1180,214,1,0,0,0,1181,1182,3,89,44,0,1182,1183,3,113,56,0,1183,1184,3,107,53,0,1184,1185,3,125,62,0,1185,1186,3,109,54,0,1186,1187,3,111,55,0,1187,1188,3,121,60,0,1188,216,1,0,0,0,1189,1190,3,89,44,0,1190,1191,3,113,56,0,1191,1192,3,109,54,0,1192,1193,3,109,54,0,1193,1194,3,101,50,0,1194,1195,3,123,61,0,1195,218,1,0,0,0,1196,1197,3,89,44,0,1197,1198,3,113,56,0,1198,1199,3,109,54,0,1199,1200,3,115,57,0,1200,1201,3,85,42,0,1201,1202,3,89,44,0,1202,1203,3,123,61,0,1203,220,1,0,0,0,1204,1205,3,89,44,0,1205,1206,3,113,56,0,1206,1207,3,111,55,0,1207,1208,3,91,45,0,1208,1209,3,101,50,0,1209,1210,3,123,61,0,1210,1211,3,101,50,0,1211,1212,3,113,56,0,1212,1213,3,111,55,0,1213,1214,3,85,42,0,1214,1215,3,107,53,0,1215,222,1,0,0,0,1216,1217,3,89,44,0,1217,1218,3,113,56,0,1218,1219,3,111,55,0,1219,1220,3,95,47,0,1220,1221,3,107,53,0,1221,1222,3,101,50,0,1222,1223,3,89,44,0,1223,1224,3,123,61,0,1224,224,1,0,0,0,1225,1226,3,89,44,0,1226,1227,3,113,56,0,1227,1228,3,111,55,0,1228,1229,3,111,55,0,1229,1230,3,93,46,0,1230,1231,3,89,44,0,1231,1232,3,123,61,0,1232,226,1,0,0,0,1233,1234,3,89,44,0,1234,1235,3,113,56,0,1235,1236,3,111,55,0,1236,1237,3,121,60,0,1237,1238,3,123,61,0,1238,1239,3,119,59,0,1239,1240,3,85,42,0,1240,1241,3,101,50,0,1241,1242,3,111,55,0,1242,1243,3,123,61,0,1243,228,1,0,0,0,1244,1245,3,89,44,0,1245,1246,3,113,56,0,1246,1247,3,111,55,0,1247,1248,3,121,60,0,1248,1249,3,125,62,0,1249,1250,3,109,54,0,1250,1251,3,93,46,0,1251,1252,3,119,59,0,1252,230,1,0,0,0,1253,1254,3,89,44,0,1254,1255,3,113,56,0,1255,1256,3,127,63,0,1256,1257,3,93,46,0,1257,1258,3,119,59,0,1258,232,1,0,0,0,1259,1260,3,89,44,0,1260,1261,3,119,59,0,1261,1262,3,93,46,0,1262,1263,3,85,42,0,1263,1264,3,123,61,0,1264,1265,3,93,46,0,1265,234,1,0,0,0,1266,1267,3,89,44,0,1267,1268,3,119,59,0,1268,1269,3,113,56,0,1269,1270,3,121,60,0,1270,1271,3,121,60,0,1271,236,1,0,0,0,1272,1273,3,89,44,0,1273,1274,3,125,62,0,1274,1275,3,87,43,0,1275,1276,3,93,46,0,1276,238,1,0,0,0,1277,1278,3,89,44,0,1278,1279,3,125,62,0,1279,1280,3,119,59,0,1280,1281,3,119,59,0,1281,1282,3,93,46,0,1282,1283,3,111,55,0,1283,1284,3,123,61,0,1284,240,1,0,0,0,1285,1286,3,89,44,0,1286,1287,3,125,62,0,1287,1288,3,119,59,0,1288,1289,3,119,59,0,1289,1290,3,93,46,0,1290,1291,3,111,55,0,1291,1292,3,123,61,0,1292,1293,5,95,0,0,1293,1294,3,91,45,0,1294,1295,3,85,42,0,1295,1296,3,123,61,0,1296,1297,3,93,46,0,1297,242,1,0,0,0,1298,1299,3,89,44,0,1299,1300,3,125,62,0,1300,1301,3,119,59,0,1301,1302,3,119,59,0,1302,1303,3,93,46,0,1303,1304,3,111,55,0,1304,1305,3,123,61,0,1305,1306,5,95,0,0,1306,1307,3,123,61,0,1307,1308,3,101,50,0,1308,1309,3,109,54,0,1309,1310,3,93,46,0,1310,244,1,0,0,0,1311,1312,3,89,44,0,1312,1313,3,125,62,0,1313,1314,3,119,59,0,1314,1315,3,119,59,0,1315,1316,3,93,46,0,1316,1317,3,111,55,0,1317,1318,3,123,61,0,1318,1319,5,95,0,0,1319,1320,3,123,61,0,1320,1321,3,101,50,0,1321,1322,3,109,54,0,1322,1323,3,93,46,0,1323,1324,3,121,60,0,1324,1325,3,123,61,0,1325,1326,3,85,42,0,1326,1327,3,109,54,0,1327,1328,3,115,57,0,1328,246,1,0,0,0,1329,1330,3,91,45,0,1330,1331,3,85,42,0,1331,1332,3,123,61,0,1332,1333,3,85,42,0,1333,248,1,0,0,0,1334,1335,3,91,45,0,1335,1336,3,85,42,0,1336,1337,3,123,61,0,1337,1338,3,85,42,0,1338,1339,3,87,43,0,1339,1340,3,85,42,0,1340,1341,3,121,60,0,1341,1342,3,93,46,0,1342,250,1,0,0,0,1343,1344,3,91,45,0,1344,1345,3,93,46,0,1345,1346,3,89,44,0,1346,1347,3,101,50,0,1347,1348,3,109,54,0,1348,1349,3,85,42,0,1349,1350,3,107,53,0,1350,252,1,0,0,0,1351,1352,3,91,45,0,1352,1353,3,93,46,0,1353,1354,3,89,44,0,1354,1355,3,107,53,0,1355,1356,3,85,42,0,1356,1357,3,119,59,0,1357,1358,3,93,46,0,1358,254,1,0,0,0,1359,1360,3,91,45,0,1360,1361,3,93,46,0,1361,1362,3,95,47,0,1362,1363,3,85,42,0,1363,1364,3,125,62,0,1364,1365,3,107,53,0,1365,1366,3,123,61,0,1366,256,1,0,0,0,1367,1368,3,91,45,0,1368,1369,3,93,46,0,1369,1370,3,95,47,0,1370,1371,3,93,46,0,1371,1372,3,119,59,0,1372,1373,3,119,59,0,1373,1374,3,85,42,0,1374,1375,3,87,43,0,1375,1376,3,107,53,0,1376,1377,3,93,46,0,1377,258,1,0,0,0,1378,1379,3,91,45,0,1379,1380,3,93,46,0,1380,1381,3,95,47,0,1381,1382,3,93,46,0,1382,1383,3,119,59,0,1383,1384,3,119,59,0,1384,1385,3,93,46,0,1385,1386,3,91,45,0,1386,260,1,0,0,0,1387,1388,3,91,45,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,101,50,0,1391,1392,3,111,55,0,1392,1393,3,93,46,0,1393,262,1,0,0,0,1394,1395,3,91,45,0,1395,1396,3,93,46,0,1396,1397,3,107,53,0,1397,1398,3,93,46,0,1398,1399,3,123,61,0,1399,1400,3,93,46,0,1400,264,1,0,0,0,1401,1402,3,91,45,0,1402,1403,3,93,46,0,1403,1404,3,121,60,0,1404,1405,3,89,44,0,1405,266,1,0,0,0,1406,1407,3,91,45,0,1407,1408,3,93,46,0,1408,1409,3,121,60,0,1409,1410,3,89,44,0,1410,1411,3,119,59,0,1411,1412,3,101,50,0,1412,1413,3,87,43,0,1413,1414,3,93,46,0,1414,268,1,0,0,0,1415,1416,3,91,45,0,1416,1417,3,93,46,0,1417,1418,3,123,61,0,1418,1419,3,85,42,0,1419,1420,3,89,44,0,1420,1421,3,99,49,0,1421,270,1,0,0,0,1422,1423,3,91,45,0,1423,1424,3,101,50,0,1424,1425,3,89,44,0,1425,1426,3,123,61,0,1426,272,1,0,0,0,1427,1428,3,91,45,0,1428,1429,3,101,50,0,1429,1430,3,119,59,0,1430,1431,3,93,46,0,1431,1432,3,89,44,0,1432,1433,3,123,61,0,1433,1434,3,113,56,0,1434,1435,3,119,59,0,1435,1436,3,133,66,0,1436,274,1,0,0,0,1437,1438,3,91,45,0,1438,1439,3,101,50,0,1439,1440,3,121,60,0,1440,1441,3,85,42,0,1441,1442,3,87,43,0,1442,1443,3,107,53,0,1443,1444,3,93,46,0,1444,276,1,0,0,0,1445,1446,3,91,45,0,1446,1447,3,101,50,0,1447,1448,3,121,60,0,1448,1449,3,89,44,0,1449,1450,3,85,42,0,1450,1451,3,119,59,0,1451,1452,3,91,45,0,1452,278,1,0,0,0,1453,1454,3,91,45,0,1454,1455,3,101,50,0,1455,1456,3,121,60,0,1456,1457,3,123,61,0,1457,1458,3,101,50,0,1458,1459,3,111,55,0,1459,1460,3,89,44,0,1460,1461,3,123,61,0,1461,280,1,0,0,0,1462,1463,3,91,45,0,1463,1464,3,113,56,0,1464,282,1,0,0,0,1465,1466,3,91,45,0,1466,1467,3,119,59,0,1467,1468,3,113,56,0,1468,1469,3,115,57,0,1469,284,1,0,0,0,1470,1471,3,93,46,0,1471,1472,3,85,42,0,1472,1473,3,89,44,0,1473,1474,3,99,49,0,1474,286,1,0,0,0,1475,1476,3,93,46,0,1476,1477,3,107,53,0,1477,1478,3,121,60,0,1478,1479,3,93,46,0,1479,288,1,0,0,0,1480,1481,3,93,46,0,1481,1482,3,109,54,0,1482,1483,3,115,57,0,1483,1484,3,123,61,0,1484,1485,3,133,66,0,1485,290,1,0,0,0,1486,1487,3,93,46,0,1487,1488,3,109,54,0,1488,1489,3,115,57,0,1489,1490,3,123,61,0,1490,1491,3,133,66,0,1491,1492,5,95,0,0,1492,1493,3,85,42,0,1493,1494,3,89,44,0,1494,1495,3,123,61,0,1495,1496,3,101,50,0,1496,1497,3,113,56,0,1497,1498,3,111,55,0,1498,292,1,0,0,0,1499,1500,3,93,46,0,1500,1501,3,111,55,0,1501,1502,3,89,44,0,1502,1503,3,119,59,0,1503,1504,3,133,66,0,1504,1505,3,115,57,0,1505,1506,3,123,61,0,1506,1507,3,93,46,0,1507,1508,3,91,45,0,1508,294,1,0,0,0,1509,1510,3,93,46,0,1510,1511,3,111,55,0,1511,1512,3,91,45,0,1512,296,1,0,0,0,1513,1514,3,93,46,0,1514,1515,3,111,55,0,1515,1516,3,125,62,0,1516,1517,3,109,54,0,1517,298,1,0,0,0,1518,1519,3,93,46,0,1519,1520,3,119,59,0,1520,1521,3,85,42,0,1521,1522,3,121,60,0,1522,1523,3,93,46,0,1523,300,1,0,0,0,1524,1525,3,93,46,0,1525,1526,3,119,59,0,1526,1527,3,119,59,0,1527,1528,3,113,56,0,1528,1529,3,119,59,0,1529,302,1,0,0,0,1530,1531,3,93,46,0,1531,1532,3,121,60,0,1532,1533,3,89,44,0,1533,1534,3,85,42,0,1534,1535,3,115,57,0,1535,1536,3,93,46,0,1536,304,1,0,0,0,1537,1538,3,93,46,0,1538,1539,3,127,63,0,1539,1540,3,85,42,0,1540,1541,3,107,53,0,1541,1542,3,125,62,0,1542,1543,3,85,42,0,1543,1544,3,123,61,0,1544,1545,3,93,46,0,1545,306,1,0,0,0,1546,1547,3,93,46,0,1547,1548,3,131,65,0,1548,1549,3,89,44,0,1549,1550,3,93,46,0,1550,1551,3,115,57,0,1551,1552,3,123,61,0,1552,308,1,0,0,0,1553,1554,3,93,46,0,1554,1555,3,131,65,0,1555,1556,3,89,44,0,1556,1557,3,107,53,0,1557,1558,3,125,62,0,1558,1559,3,91,45,0,1559,1560,3,93,46,0,1560,310,1,0,0,0,1561,1562,3,93,46,0,1562,1563,3,131,65,0,1563,1564,3,89,44,0,1564,1565,3,107,53,0,1565,1566,3,125,62,0,1566,1567,3,121,60,0,1567,1568,3,101,50,0,1568,1569,3,113,56,0,1569,1570,3,111,55,0,1570,312,1,0,0,0,1571,1572,3,93,46,0,1572,1573,3,131,65,0,1573,1574,3,89,44,0,1574,1575,3,107,53,0,1575,1576,3,125,62,0,1576,1577,3,121,60,0,1577,1578,3,101,50,0,1578,1579,3,127,63,0,1579,1580,3,93,46,0,1580,314,1,0,0,0,1581,1582,3,93,46,0,1582,1583,3,131,65,0,1583,1584,3,101,50,0,1584,1585,3,121,60,0,1585,1586,3,123,61,0,1586,1587,3,121,60,0,1587,316,1,0,0,0,1588,1589,3,93,46,0,1589,1590,3,131,65,0,1590,1591,3,115,57,0,1591,1592,3,107,53,0,1592,1593,3,85,42,0,1593,1594,3,101,50,0,1594,1595,3,111,55,0,1595,318,1,0,0,0,1596,1597,3,93,46,0,1597,1598,3,131,65,0,1598,1599,3,115,57,0,1599,1600,3,113,56,0,1600,1601,3,119,59,0,1601,1602,3,123,61,0,1602,320,1,0,0,0,1603,1604,3,93,46,0,1604,1605,3,131,65,0,1605,1606,3,123,61,0,1606,1607,3,93,46,0,1607,1608,3,119,59,0,1608,1609,3,111,55,0,1609,1610,3,85,42,0,1610,1611,3,107,53,0,1611,322,1,0,0,0,1612,1613,3,95,47,0,1613,1614,3,85,42,0,1614,1615,3,101,50,0,1615,1616,3,107,53,0,1616,324,1,0,0,0,1617,1618,3,95,47,0,1618,1619,3,85,42,0,1619,1620,3,107,53,0,1620,1621,3,121,60,0,1621,1622,3,93,46,0,1622,326,1,0,0,0,1623,1624,3,95,47,0,1624,1625,3,85,42,0,1625,1626,3,109,54,0,1626,1627,3,101,50,0,1627,1628,3,107,53,0,1628,1629,3,133,66,0,1629,328,1,0,0,0,1630,1631,3,95,47,0,1631,1632,3,101,50,0,1632,1633,3,107,53,0,1633,1634,3,123,61,0,1634,1635,3,93,46,0,1635,1636,3,119,59,0,1636,330,1,0,0,0,1637,1638,3,95,47,0,1638,1639,3,101,50,0,1639,1640,3,119,59,0,1640,1641,3,121,60,0,1641,1642,3,123,61,0,1642,332,1,0,0,0,1643,1644,3,95,47,0,1644,1645,3,107,53,0,1645,1646,3,85,42,0,1646,1647,3,123,61,0,1647,1648,3,123,61,0,1648,1649,3,93,46,0,1649,1650,3,111,55,0,1650,334,1,0,0,0,1651,1652,3,95,47,0,1652,1653,3,107,53,0,1653,1654,3,113,56,0,1654,1655,3,129,64,0,1655,336,1,0,0,0,1656,1657,3,95,47,0,1657,1658,3,113,56,0,1658,1659,3,107,53,0,1659,1660,3,107,53,0,1660,1661,3,113,56,0,1661,1662,3,129,64,0,1662,1663,3,101,50,0,1663,1664,3,111,55,0,1664,1665,3,97,48,0,1665,338,1,0,0,0,1666,1667,3,95,47,0,1667,1668,3,113,56,0,1668,1669,3,119,59,0,1669,340,1,0,0,0,1670,1671,3,95,47,0,1671,1672,3,113,56,0,1672,1673,3,119,59,0,1673,1674,3,93,46,0,1674,1675,3,101,50,0,1675,1676,3,97,48,0,1676,1677,3,111,55,0,1677,342,1,0,0,0,1678,1679,3,95,47,0,1679,1680,3,119,59,0,1680,1681,3,113,56,0,1681,1682,3,109,54,0,1682,344,1,0,0,0,1683,1684,3,95,47,0,1684,1685,3,125,62,0,1685,1686,3,107,53,0,1686,1687,3,107,53,0,1687,346,1,0,0,0,1688,1689,3,95,47,0,1689,1690,3,125,62,0,1690,1691,3,111,55,0,1691,1692,3,89,44,0,1692,1693,3,123,61,0,1693,1694,3,101,50,0,1694,1695,3,113,56,0,1695,1696,3,111,55,0,1696,348,1,0,0,0,1697,1698,3,97,48,0,1698,1699,3,107,53,0,1699,1700,3,113,56,0,1700,1701,3,87,43,0,1701,350,1,0,0,0,1702,1703,3,97,48,0,1703,1704,3,107,53,0,1704,1705,3,113,56,0,1705,1706,3,87,43,0,1706,1707,3,85,42,0,1707,1708,3,107,53,0,1708,352,1,0,0,0,1709,1710,3,97,48,0,1710,1711,3,119,59,0,1711,1712,3,85,42,0,1712,1713,3,111,55,0,1713,1714,3,123,61,0,1714,354,1,0,0,0,1715,1716,3,97,48,0,1716,1717,3,119,59,0,1717,1718,3,113,56,0,1718,1719,3,125,62,0,1719,1720,3,115,57,0,1720,356,1,0,0,0,1721,1722,3,97,48,0,1722,1723,3,119,59,0,1723,1724,3,113,56,0,1724,1725,3,125,62,0,1725,1726,3,115,57,0,1726,1727,3,101,50,0,1727,1728,3,111,55,0,1728,1729,3,97,48,0,1729,358,1,0,0,0,1730,1731,3,97,48,0,1731,1732,3,119,59,0,1732,1733,3,113,56,0,1733,1734,3,125,62,0,1734,1735,3,115,57,0,1735,1736,3,121,60,0,1736,360,1,0,0,0,1737,1738,3,99,49,0,1738,1739,3,85,42,0,1739,1740,3,121,60,0,1740,1741,3,99,49,0,1741,362,1,0,0,0,1742,1743,3,99,49,0,1743,1744,3,85,42,0,1744,1745,3,127,63,0,1745,1746,3,101,50,0,1746,1747,3,111,55,0,1747,1748,3,97,48,0,1748,364,1,0,0,0,1749,1750,3,99,49,0,1750,1751,3,113,56,0,1751,1752,3,115,57,0,1752,366,1,0,0,0,1753,1754,3,101,50,0,1754,1755,3,95,47,0,1755,368,1,0,0,0,1756,1757,3,101,50,0,1757,1758,3,97,48,0,1758,1759,3,111,55,0,1759,1760,3,113,56,0,1760,1761,3,119,59,0,1761,1762,3,93,46,0,1762,370,1,0,0,0,1763,1764,3,101,50,0,1764,1765,3,107,53,0,1765,1766,3,101,50,0,1766,1767,3,105,52,0,1767,1768,3,93,46,0,1768,372,1,0,0,0,1769,1770,3,101,50,0,1770,1771,3,109,54,0,1771,1772,3,109,54,0,1772,1773,3,93,46,0,1773,1774,3,91,45,0,1774,1775,3,101,50,0,1775,1776,3,85,42,0,1776,1777,3,123,61,0,1777,1778,3,93,46,0,1778,374,1,0,0,0,1779,1780,3,101,50,0,1780,1781,3,109,54,0,1781,1782,3,115,57,0,1782,1783,3,113,56,0,1783,1784,3,119,59,0,1784,1785,3,123,61,0,1785,376,1,0,0,0,1786,1787,3,101,50,0,1787,1788,3,111,55,0,1788,378,1,0,0,0,1789,1790,3,101,50,0,1790,1791,3,111,55,0,1791,1792,3,89,44,0,1792,1793,3,119,59,0,1793,1794,3,93,46,0,1794,1795,3,109,54,0,1795,1796,3,93,46,0,1796,1797,3,111,55,0,1797,1798,3,123,61,0,1798,380,1,0,0,0,1799,1800,3,101,50,0,1800,1801,3,111,55,0,1801,1802,3,89,44,0,1802,1803,3,119,59,0,1803,1804,3,93,46,0,1804,1805,3,109,54,0,1805,1806,3,93,46,0,1806,1807,3,111,55,0,1807,1808,3,123,61,0,1808,1809,3,85,42,0,1809,1810,3,107,53,0,1810,382,1,0,0,0,1811,1812,3,101,50,0,1812,1813,3,111,55,0,1813,1814,3,91,45,0,1814,1815,3,93,46,0,1815,1816,3,131,65,0,1816,384,1,0,0,0,1817,1818,3,101,50,0,1818,1819,3,111,55,0,1819,1820,3,91,45,0,1820,1821,3,93,46,0,1821,1822,3,131,65,0,1822,1823,3,93,46,0,1823,1824,3,91,45,0,1824,386,1,0,0,0,1825,1826,3,101,50,0,1826,1827,3,111,55,0,1827,1828,3,99,49,0,1828,1829,3,93,46,0,1829,1830,3,119,59,0,1830,1831,3,101,50,0,1831,1832,3,123,61,0,1832,1833,3,121,60,0,1833,388,1,0,0,0,1834,1835,3,101,50,0,1835,1836,3,111,55,0,1836,1837,3,101,50,0,1837,1838,3,123,61,0,1838,1839,3,101,50,0,1839,1840,3,85,42,0,1840,1841,3,107,53,0,1841,390,1,0,0,0,1842,1843,3,101,50,0,1843,1844,3,111,55,0,1844,1845,3,101,50,0,1845,1846,3,123,61,0,1846,1847,3,101,50,0,1847,1848,3,85,42,0,1848,1849,3,107,53,0,1849,1850,3,107,53,0,1850,1851,3,133,66,0,1851,392,1,0,0,0,1852,1853,3,101,50,0,1853,1854,3,111,55,0,1854,1855,3,111,55,0,1855,1856,3,93,46,0,1856,1857,3,119,59,0,1857,394,1,0,0,0,1858,1859,3,101,50,0,1859,1860,3,111,55,0,1860,1861,3,121,60,0,1861,1862,3,93,46,0,1862,1863,3,119,59,0,1863,1864,3,123,61,0,1864,396,1,0,0,0,1865,1866,3,101,50,0,1866,1867,3,111,55,0,1867,1868,3,121,60,0,1868,1869,3,123,61,0,1869,1870,3,93,46,0,1870,1871,3,85,42,0,1871,1872,3,91,45,0,1872,398,1,0,0,0,1873,1874,3,101,50,0,1874,1875,3,111,55,0,1875,1876,3,123,61,0,1876,1877,3,93,46,0,1877,1878,3,119,59,0,1878,1879,3,121,60,0,1879,1880,3,93,46,0,1880,1881,3,89,44,0,1881,1882,3,123,61,0,1882,400,1,0,0,0,1883,1884,3,101,50,0,1884,1885,3,111,55,0,1885,1886,3,123,61,0,1886,1887,3,113,56,0,1887,402,1,0,0,0,1888,1889,3,101,50,0,1889,1890,3,121,60,0,1890,404,1,0,0,0,1891,1892,3,101,50,0,1892,1893,3,121,60,0,1893,1894,3,111,55,0,1894,1895,3,125,62,0,1895,1896,3,107,53,0,1896,1897,3,107,53,0,1897,406,1,0,0,0,1898,1899,3,103,51,0,1899,1900,3,113,56,0,1900,1901,3,101,50,0,1901,1902,3,111,55,0,1902,408,1,0,0,0,1903,1904,3,103,51,0,1904,1905,3,121,60,0,1905,1906,3,113,56,0,1906,1907,3,111,55,0,1907,1908,5,95,0,0,1908,1909,3,93,46,0,1909,1910,3,131,65,0,1910,1911,3,101,50,0,1911,1912,3,121,60,0,1912,1913,3,123,61,0,1913,1914,3,121,60,0,1914,410,1,0,0,0,1915,1916,3,103,51,0,1916,1917,3,121,60,0,1917,1918,3,113,56,0,1918,1919,3,111,55,0,1919,1920,5,95,0,0,1920,1921,3,117,58,0,1921,1922,3,125,62,0,1922,1923,3,93,46,0,1923,1924,3,119,59,0,1924,1925,3,133,66,0,1925,412,1,0,0,0,1926,1927,3,103,51,0,1927,1928,3,121,60,0,1928,1929,3,113,56,0,1929,1930,3,111,55,0,1930,1931,5,95,0,0,1931,1932,3,127,63,0,1932,1933,3,85,42,0,1933,1934,3,107,53,0,1934,1935,3,125,62,0,1935,1936,3,93,46,0,1936,414,1,0,0,0,1937,1938,3,105,52,0,1938,1939,3,93,46,0,1939,1940,3,133,66,0,1940,416,1,0,0,0,1941,1942,3,107,53,0,1942,1943,3,85,42,0,1943,1944,3,121,60,0,1944,1945,3,123,61,0,1945,418,1,0,0,0,1946,1947,3,107,53,0,1947,1948,3,93,46,0,1948,1949,3,95,47,0,1949,1950,3,123,61,0,1950,420,1,0,0,0,1951,1952,3,107,53,0,1952,1953,3,93,46,0,1953,1954,3,97,48,0,1954,1955,3,85,42,0,1955,1956,3,89,44,0,1956,1957,3,133,66,0,1957,422,1,0,0,0,1958,1959,3,107,53,0,1959,1960,3,101,50,0,1960,1961,3,105,52,0,1961,1962,3,93,46,0,1962,424,1,0,0,0,1963,1964,3,107,53,0,1964,1965,3,101,50,0,1965,1966,3,109,54,0,1966,1967,3,101,50,0,1967,1968,3,123,61,0,1968,426,1,0,0,0,1969,1970,3,107,53,0,1970,1971,3,101,50,0,1971,1972,3,121,60,0,1972,1973,3,123,61,0,1973,428,1,0,0,0,1974,1975,3,107,53,0,1975,1976,3,113,56,0,1976,1977,3,89,44,0,1977,1978,3,85,42,0,1978,1979,3,107,53,0,1979,430,1,0,0,0,1980,1981,3,107,53,0,1981,1982,3,113,56,0,1982,1983,3,97,48,0,1983,1984,3,101,50,0,1984,1985,3,111,55,0,1985,432,1,0,0,0,1986,1987,3,109,54,0,1987,1988,3,85,42,0,1988,1989,3,111,55,0,1989,1990,3,85,42,0,1990,1991,3,97,48,0,1991,1992,3,93,46,0,1992,434,1,0,0,0,1993,1994,3,109,54,0,1994,1995,3,85,42,0,1995,1996,3,123,61,0,1996,1997,3,89,44,0,1997,1998,3,99,49,0,1998,436,1,0,0,0,1999,2e3,3,109,54,0,2e3,2001,3,85,42,0,2001,2002,3,123,61,0,2002,2003,3,89,44,0,2003,2004,3,99,49,0,2004,2005,3,93,46,0,2005,2006,3,121,60,0,2006,438,1,0,0,0,2007,2008,3,109,54,0,2008,2009,3,85,42,0,2009,2010,3,123,61,0,2010,2011,3,89,44,0,2011,2012,3,99,49,0,2012,2013,5,95,0,0,2013,2014,3,119,59,0,2014,2015,3,93,46,0,2015,2016,3,89,44,0,2016,2017,3,113,56,0,2017,2018,3,97,48,0,2018,2019,3,111,55,0,2019,2020,3,101,50,0,2020,2021,3,135,67,0,2021,2022,3,93,46,0,2022,440,1,0,0,0,2023,2024,3,109,54,0,2024,2025,3,93,46,0,2025,2026,3,85,42,0,2026,2027,3,121,60,0,2027,2028,3,125,62,0,2028,2029,3,119,59,0,2029,2030,3,93,46,0,2030,2031,3,121,60,0,2031,442,1,0,0,0,2032,2033,3,109,54,0,2033,2034,3,101,50,0,2034,2035,3,89,44,0,2035,2036,3,119,59,0,2036,2037,3,113,56,0,2037,2038,3,121,60,0,2038,2039,3,93,46,0,2039,2040,3,89,44,0,2040,2041,3,113,56,0,2041,2042,3,111,55,0,2042,2043,3,91,45,0,2043,2044,3,121,60,0,2044,444,1,0,0,0,2045,2046,3,109,54,0,2046,2047,3,101,50,0,2047,2048,3,107,53,0,2048,2049,3,107,53,0,2049,2050,3,101,50,0,2050,2051,3,121,60,0,2051,2052,3,93,46,0,2052,2053,3,89,44,0,2053,2054,3,113,56,0,2054,2055,3,111,55,0,2055,2056,3,91,45,0,2056,2057,3,121,60,0,2057,446,1,0,0,0,2058,2059,3,109,54,0,2059,2060,3,113,56,0,2060,2061,3,91,45,0,2061,2062,3,101,50,0,2062,2063,3,95,47,0,2063,2064,3,133,66,0,2064,448,1,0,0,0,2065,2066,3,111,55,0,2066,2067,3,85,42,0,2067,2068,3,111,55,0,2068,2069,3,113,56,0,2069,2070,3,121,60,0,2070,2071,3,93,46,0,2071,2072,3,89,44,0,2072,2073,3,113,56,0,2073,2074,3,111,55,0,2074,2075,3,91,45,0,2075,2076,3,121,60,0,2076,450,1,0,0,0,2077,2078,3,111,55,0,2078,2079,3,85,42,0,2079,2080,3,123,61,0,2080,2081,3,125,62,0,2081,2082,3,119,59,0,2082,2083,3,85,42,0,2083,2084,3,107,53,0,2084,452,1,0,0,0,2085,2086,3,111,55,0,2086,2087,3,93,46,0,2087,2088,3,131,65,0,2088,2089,3,123,61,0,2089,454,1,0,0,0,2090,2091,3,111,55,0,2091,2092,3,113,56,0,2092,456,1,0,0,0,2093,2094,3,111,55,0,2094,2095,3,113,56,0,2095,2096,3,107,53,0,2096,2097,3,113,56,0,2097,2098,3,97,48,0,2098,2099,3,101,50,0,2099,2100,3,111,55,0,2100,458,1,0,0,0,2101,2102,3,111,55,0,2102,2103,3,113,56,0,2103,2104,3,123,61,0,2104,460,1,0,0,0,2105,2106,3,111,55,0,2106,2107,3,113,56,0,2107,2108,3,123,61,0,2108,2109,3,111,55,0,2109,2110,3,125,62,0,2110,2111,3,107,53,0,2111,2112,3,107,53,0,2112,462,1,0,0,0,2113,2114,3,111,55,0,2114,2115,3,125,62,0,2115,2116,3,107,53,0,2116,2117,3,107,53,0,2117,464,1,0,0,0,2118,2119,3,111,55,0,2119,2120,3,125,62,0,2120,2121,3,107,53,0,2121,2122,3,107,53,0,2122,2123,3,121,60,0,2123,466,1,0,0,0,2124,2125,3,113,56,0,2125,2126,3,87,43,0,2126,2127,3,103,51,0,2127,2128,3,93,46,0,2128,2129,3,89,44,0,2129,2130,3,123,61,0,2130,468,1,0,0,0,2131,2132,3,113,56,0,2132,2133,3,95,47,0,2133,470,1,0,0,0,2134,2135,3,113,56,0,2135,2136,3,95,47,0,2136,2137,3,95,47,0,2137,2138,3,121,60,0,2138,2139,3,93,46,0,2139,2140,3,123,61,0,2140,472,1,0,0,0,2141,2142,3,113,56,0,2142,2143,3,109,54,0,2143,2144,3,101,50,0,2144,2145,3,123,61,0,2145,474,1,0,0,0,2146,2147,3,113,56,0,2147,2148,3,111,55,0,2148,476,1,0,0,0,2149,2150,3,113,56,0,2150,2151,3,111,55,0,2151,2152,3,93,46,0,2152,478,1,0,0,0,2153,2154,3,113,56,0,2154,2155,3,111,55,0,2155,2156,3,107,53,0,2156,2157,3,133,66,0,2157,480,1,0,0,0,2158,2159,3,113,56,0,2159,2160,3,115,57,0,2160,2161,3,123,61,0,2161,2162,3,101,50,0,2162,2163,3,113,56,0,2163,2164,3,111,55,0,2164,482,1,0,0,0,2165,2166,3,113,56,0,2166,2167,3,115,57,0,2167,2168,3,123,61,0,2168,2169,3,101,50,0,2169,2170,3,113,56,0,2170,2171,3,111,55,0,2171,2172,3,85,42,0,2172,2173,3,107,53,0,2173,484,1,0,0,0,2174,2175,3,113,56,0,2175,2176,3,119,59,0,2176,486,1,0,0,0,2177,2178,3,113,56,0,2178,2179,3,119,59,0,2179,2180,3,91,45,0,2180,2181,3,93,46,0,2181,2182,3,119,59,0,2182,488,1,0,0,0,2183,2184,3,113,56,0,2184,2185,3,123,61,0,2185,2186,3,99,49,0,2186,2187,3,93,46,0,2187,2188,3,119,59,0,2188,2189,3,121,60,0,2189,490,1,0,0,0,2190,2191,3,113,56,0,2191,2192,3,125,62,0,2192,2193,3,123,61,0,2193,2194,3,93,46,0,2194,2195,3,119,59,0,2195,492,1,0,0,0,2196,2197,3,113,56,0,2197,2198,3,127,63,0,2198,2199,3,93,46,0,2199,2200,3,119,59,0,2200,494,1,0,0,0,2201,2202,3,115,57,0,2202,2203,3,85,42,0,2203,2204,3,119,59,0,2204,2205,3,85,42,0,2205,2206,3,107,53,0,2206,2207,3,107,53,0,2207,2208,3,93,46,0,2208,2209,3,107,53,0,2209,496,1,0,0,0,2210,2211,3,115,57,0,2211,2212,3,85,42,0,2212,2213,3,119,59,0,2213,2214,3,123,61,0,2214,2215,3,101,50,0,2215,2216,3,123,61,0,2216,2217,3,101,50,0,2217,2218,3,113,56,0,2218,2219,3,111,55,0,2219,498,1,0,0,0,2220,2221,3,115,57,0,2221,2222,3,85,42,0,2222,2223,3,121,60,0,2223,2224,3,121,60,0,2224,2225,3,101,50,0,2225,2226,3,111,55,0,2226,2227,3,97,48,0,2227,500,1,0,0,0,2228,2229,3,115,57,0,2229,2230,3,85,42,0,2230,2231,3,121,60,0,2231,2232,3,121,60,0,2232,2233,3,129,64,0,2233,2234,3,113,56,0,2234,2235,3,119,59,0,2235,2236,3,91,45,0,2236,502,1,0,0,0,2237,2238,3,115,57,0,2238,2239,3,85,42,0,2239,2240,3,121,60,0,2240,2241,3,123,61,0,2241,504,1,0,0,0,2242,2243,3,115,57,0,2243,2244,3,85,42,0,2244,2245,3,123,61,0,2245,2246,3,123,61,0,2246,2247,3,93,46,0,2247,2248,3,119,59,0,2248,2249,3,111,55,0,2249,506,1,0,0,0,2250,2251,3,115,57,0,2251,2252,3,93,46,0,2252,2253,3,119,59,0,2253,508,1,0,0,0,2254,2255,3,115,57,0,2255,2256,3,93,46,0,2256,2257,3,119,59,0,2257,2258,3,109,54,0,2258,2259,3,125,62,0,2259,2260,3,123,61,0,2260,2261,3,93,46,0,2261,510,1,0,0,0,2262,2263,3,115,57,0,2263,2264,3,107,53,0,2264,2265,3,85,42,0,2265,2266,3,111,55,0,2266,512,1,0,0,0,2267,2268,3,115,57,0,2268,2269,3,113,56,0,2269,2270,3,113,56,0,2270,2271,3,107,53,0,2271,514,1,0,0,0,2272,2273,3,115,57,0,2273,2274,3,119,59,0,2274,2275,3,85,42,0,2275,2276,3,97,48,0,2276,2277,3,109,54,0,2277,2278,3,85,42,0,2278,516,1,0,0,0,2279,2280,3,115,57,0,2280,2281,3,119,59,0,2281,2282,3,93,46,0,2282,2283,3,89,44,0,2283,2284,3,93,46,0,2284,2285,3,91,45,0,2285,2286,3,101,50,0,2286,2287,3,111,55,0,2287,2288,3,97,48,0,2288,518,1,0,0,0,2289,2290,3,115,57,0,2290,2291,3,119,59,0,2291,2292,3,93,46,0,2292,2293,3,121,60,0,2293,2294,3,113,56,0,2294,2295,3,119,59,0,2295,2296,3,123,61,0,2296,520,1,0,0,0,2297,2298,3,115,57,0,2298,2299,3,119,59,0,2299,2300,3,101,50,0,2300,2301,3,109,54,0,2301,2302,3,85,42,0,2302,2303,3,119,59,0,2303,2304,3,133,66,0,2304,522,1,0,0,0,2305,2306,3,115,57,0,2306,2307,3,119,59,0,2307,2308,3,101,50,0,2308,2309,3,127,63,0,2309,2310,3,101,50,0,2310,2311,3,107,53,0,2311,2312,3,93,46,0,2312,2313,3,97,48,0,2313,2314,3,93,46,0,2314,2315,3,121,60,0,2315,524,1,0,0,0,2316,2317,3,115,57,0,2317,2318,3,119,59,0,2318,2319,3,113,56,0,2319,2320,3,89,44,0,2320,2321,3,93,46,0,2321,2322,3,121,60,0,2322,2323,3,121,60,0,2323,526,1,0,0,0,2324,2325,3,117,58,0,2325,2326,3,125,62,0,2326,2327,3,93,46,0,2327,2328,3,119,59,0,2328,2329,3,133,66,0,2329,528,1,0,0,0,2330,2331,3,117,58,0,2331,2332,3,125,62,0,2332,2333,3,93,46,0,2333,2334,3,125,62,0,2334,2335,3,93,46,0,2335,530,1,0,0,0,2336,2337,3,119,59,0,2337,2338,3,85,42,0,2338,2339,3,101,50,0,2339,2340,3,121,60,0,2340,2341,3,93,46,0,2341,532,1,0,0,0,2342,2343,3,119,59,0,2343,2344,3,85,42,0,2344,2345,3,111,55,0,2345,2346,3,97,48,0,2346,2347,3,93,46,0,2347,534,1,0,0,0,2348,2349,3,119,59,0,2349,2350,3,93,46,0,2350,2351,3,91,45,0,2351,2352,3,125,62,0,2352,2353,3,89,44,0,2353,2354,3,93,46,0,2354,536,1,0,0,0,2355,2356,3,119,59,0,2356,2357,3,93,46,0,2357,2358,3,95,47,0,2358,2359,3,93,46,0,2359,2360,3,119,59,0,2360,2361,3,93,46,0,2361,2362,3,111,55,0,2362,2363,3,89,44,0,2363,2364,3,93,46,0,2364,2365,3,121,60,0,2365,538,1,0,0,0,2366,2367,3,119,59,0,2367,2368,3,93,46,0,2368,2369,3,97,48,0,2369,2370,3,93,46,0,2370,2371,3,131,65,0,2371,2372,3,115,57,0,2372,540,1,0,0,0,2373,2374,3,119,59,0,2374,2375,3,93,46,0,2375,2376,3,101,50,0,2376,2377,3,111,55,0,2377,2378,3,91,45,0,2378,2379,3,93,46,0,2379,2380,3,131,65,0,2380,542,1,0,0,0,2381,2382,3,119,59,0,2382,2383,3,93,46,0,2383,2384,3,107,53,0,2384,2385,3,93,46,0,2385,2386,3,85,42,0,2386,2387,3,121,60,0,2387,2388,3,93,46,0,2388,544,1,0,0,0,2389,2390,3,119,59,0,2390,2391,3,93,46,0,2391,2392,3,109,54,0,2392,2393,3,113,56,0,2393,2394,3,127,63,0,2394,2395,3,93,46,0,2395,546,1,0,0,0,2396,2397,3,119,59,0,2397,2398,3,93,46,0,2398,2399,3,111,55,0,2399,2400,3,85,42,0,2400,2401,3,109,54,0,2401,2402,3,93,46,0,2402,548,1,0,0,0,2403,2404,3,119,59,0,2404,2405,3,93,46,0,2405,2406,3,115,57,0,2406,2407,3,93,46,0,2407,2408,3,85,42,0,2408,2409,3,123,61,0,2409,2410,3,85,42,0,2410,2411,3,87,43,0,2411,2412,3,107,53,0,2412,2413,3,93,46,0,2413,550,1,0,0,0,2414,2415,3,119,59,0,2415,2416,3,93,46,0,2416,2417,3,115,57,0,2417,2418,3,107,53,0,2418,2419,3,85,42,0,2419,2420,3,89,44,0,2420,2421,3,93,46,0,2421,552,1,0,0,0,2422,2423,3,119,59,0,2423,2424,3,93,46,0,2424,2425,3,115,57,0,2425,2426,3,107,53,0,2426,2427,3,101,50,0,2427,2428,3,89,44,0,2428,2429,3,85,42,0,2429,2430,3,123,61,0,2430,2431,3,101,50,0,2431,2432,3,113,56,0,2432,2433,3,111,55,0,2433,554,1,0,0,0,2434,2435,3,119,59,0,2435,2436,3,93,46,0,2436,2437,3,121,60,0,2437,2438,3,93,46,0,2438,2439,3,123,61,0,2439,556,1,0,0,0,2440,2441,3,119,59,0,2441,2442,3,93,46,0,2442,2443,3,121,60,0,2443,2444,3,113,56,0,2444,2445,3,125,62,0,2445,2446,3,119,59,0,2446,2447,3,89,44,0,2447,2448,3,93,46,0,2448,558,1,0,0,0,2449,2450,3,119,59,0,2450,2451,3,93,46,0,2451,2452,3,121,60,0,2452,2453,3,115,57,0,2453,2454,3,93,46,0,2454,2455,3,89,44,0,2455,2456,3,123,61,0,2456,560,1,0,0,0,2457,2458,3,119,59,0,2458,2459,3,93,46,0,2459,2460,3,121,60,0,2460,2461,3,123,61,0,2461,2462,3,85,42,0,2462,2463,3,119,59,0,2463,2464,3,123,61,0,2464,562,1,0,0,0,2465,2466,3,119,59,0,2466,2467,3,93,46,0,2467,2468,3,121,60,0,2468,2469,3,123,61,0,2469,2470,3,113,56,0,2470,2471,3,119,59,0,2471,2472,3,93,46,0,2472,564,1,0,0,0,2473,2474,3,119,59,0,2474,2475,3,93,46,0,2475,2476,3,121,60,0,2476,2477,3,123,61,0,2477,2478,3,119,59,0,2478,2479,3,101,50,0,2479,2480,3,89,44,0,2480,2481,3,123,61,0,2481,566,1,0,0,0,2482,2483,3,119,59,0,2483,2484,3,93,46,0,2484,2485,3,121,60,0,2485,2486,3,125,62,0,2486,2487,3,107,53,0,2487,2488,3,123,61,0,2488,568,1,0,0,0,2489,2490,3,119,59,0,2490,2491,3,93,46,0,2491,2492,3,123,61,0,2492,2493,3,125,62,0,2493,2494,3,119,59,0,2494,2495,3,111,55,0,2495,570,1,0,0,0,2496,2497,3,119,59,0,2497,2498,3,93,46,0,2498,2499,3,123,61,0,2499,2500,3,125,62,0,2500,2501,3,119,59,0,2501,2502,3,111,55,0,2502,2503,3,101,50,0,2503,2504,3,111,55,0,2504,2505,3,97,48,0,2505,572,1,0,0,0,2506,2507,3,119,59,0,2507,2508,3,93,46,0,2508,2509,3,127,63,0,2509,2510,3,93,46,0,2510,2511,3,119,59,0,2511,2512,3,123,61,0,2512,574,1,0,0,0,2513,2514,3,119,59,0,2514,2515,3,93,46,0,2515,2516,3,127,63,0,2516,2517,3,113,56,0,2517,2518,3,105,52,0,2518,2519,3,93,46,0,2519,576,1,0,0,0,2520,2521,3,119,59,0,2521,2522,3,101,50,0,2522,2523,3,97,48,0,2523,2524,3,99,49,0,2524,2525,3,123,61,0,2525,578,1,0,0,0,2526,2527,3,119,59,0,2527,2528,3,107,53,0,2528,2529,3,101,50,0,2529,2530,3,105,52,0,2530,2531,3,93,46,0,2531,580,1,0,0,0,2532,2533,3,119,59,0,2533,2534,3,113,56,0,2534,2535,3,107,53,0,2535,2536,3,107,53,0,2536,2537,3,87,43,0,2537,2538,3,85,42,0,2538,2539,3,89,44,0,2539,2540,3,105,52,0,2540,582,1,0,0,0,2541,2542,3,119,59,0,2542,2543,3,113,56,0,2543,2544,3,107,53,0,2544,2545,3,107,53,0,2545,2546,3,125,62,0,2546,2547,3,115,57,0,2547,584,1,0,0,0,2548,2549,3,119,59,0,2549,2550,3,113,56,0,2550,2551,3,129,64,0,2551,586,1,0,0,0,2552,2553,3,119,59,0,2553,2554,3,113,56,0,2554,2555,3,129,64,0,2555,2556,3,121,60,0,2556,588,1,0,0,0,2557,2558,3,121,60,0,2558,2559,3,85,42,0,2559,2560,3,109,54,0,2560,2561,3,115,57,0,2561,2562,3,107,53,0,2562,2563,3,93,46,0,2563,590,1,0,0,0,2564,2565,3,121,60,0,2565,2566,3,85,42,0,2566,2567,3,127,63,0,2567,2568,3,93,46,0,2568,2569,3,115,57,0,2569,2570,3,113,56,0,2570,2571,3,101,50,0,2571,2572,3,111,55,0,2572,2573,3,123,61,0,2573,592,1,0,0,0,2574,2575,3,121,60,0,2575,2576,3,89,44,0,2576,2577,3,99,49,0,2577,2578,3,93,46,0,2578,2579,3,109,54,0,2579,2580,3,85,42,0,2580,594,1,0,0,0,2581,2582,3,121,60,0,2582,2583,3,93,46,0,2583,2584,3,89,44,0,2584,2585,3,113,56,0,2585,2586,3,111,55,0,2586,2587,3,91,45,0,2587,2588,3,121,60,0,2588,596,1,0,0,0,2589,2590,3,121,60,0,2590,2591,3,93,46,0,2591,2592,3,93,46,0,2592,2593,3,105,52,0,2593,598,1,0,0,0,2594,2595,3,121,60,0,2595,2596,3,93,46,0,2596,2597,3,107,53,0,2597,2598,3,93,46,0,2598,2599,3,89,44,0,2599,2600,3,123,61,0,2600,600,1,0,0,0,2601,2602,3,121,60,0,2602,2603,3,93,46,0,2603,2604,3,109,54,0,2604,2605,3,101,50,0,2605,602,1,0,0,0,2606,2607,3,121,60,0,2607,2608,3,93,46,0,2608,2609,3,123,61,0,2609,604,1,0,0,0,2610,2611,3,121,60,0,2611,2612,3,93,46,0,2612,2613,3,123,61,0,2613,2614,3,121,60,0,2614,606,1,0,0,0,2615,2616,3,121,60,0,2616,2617,3,99,49,0,2617,2618,3,113,56,0,2618,2619,3,129,64,0,2619,608,1,0,0,0,2620,2621,3,121,60,0,2621,2622,3,105,52,0,2622,2623,3,101,50,0,2623,2624,3,115,57,0,2624,610,1,0,0,0,2625,2626,3,121,60,0,2626,2627,3,93,46,0,2627,2628,3,117,58,0,2628,2629,3,125,62,0,2629,2630,3,93,46,0,2630,2631,3,111,55,0,2631,2632,3,89,44,0,2632,2633,3,93,46,0,2633,612,1,0,0,0,2634,2635,3,121,60,0,2635,2636,3,113,56,0,2636,2637,3,125,62,0,2637,2638,3,119,59,0,2638,2639,3,89,44,0,2639,2640,3,93,46,0,2640,614,1,0,0,0,2641,2642,3,121,60,0,2642,2643,3,123,61,0,2643,2644,3,85,42,0,2644,2645,3,119,59,0,2645,2646,3,123,61,0,2646,616,1,0,0,0,2647,2648,3,121,60,0,2648,2649,3,123,61,0,2649,2650,3,119,59,0,2650,2651,3,93,46,0,2651,2652,3,85,42,0,2652,2653,3,109,54,0,2653,618,1,0,0,0,2654,2655,3,121,60,0,2655,2656,3,123,61,0,2656,2657,3,119,59,0,2657,2658,3,125,62,0,2658,2659,3,89,44,0,2659,2660,3,123,61,0,2660,620,1,0,0,0,2661,2662,3,121,60,0,2662,2663,3,125,62,0,2663,2664,3,87,43,0,2664,2665,3,117,58,0,2665,2666,3,125,62,0,2666,2667,3,93,46,0,2667,2668,3,119,59,0,2668,2669,3,133,66,0,2669,622,1,0,0,0,2670,2671,3,121,60,0,2671,2672,3,125,62,0,2672,2673,3,87,43,0,2673,2674,3,121,60,0,2674,2675,3,93,46,0,2675,2676,3,123,61,0,2676,624,1,0,0,0,2677,2678,3,121,60,0,2678,2679,3,133,66,0,2679,2680,3,109,54,0,2680,2681,3,87,43,0,2681,2682,3,113,56,0,2682,2683,3,107,53,0,2683,2684,3,121,60,0,2684,626,1,0,0,0,2685,2686,3,121,60,0,2686,2687,3,133,66,0,2687,2688,3,109,54,0,2688,2689,3,109,54,0,2689,2690,3,93,46,0,2690,2691,3,123,61,0,2691,2692,3,119,59,0,2692,2693,3,101,50,0,2693,2694,3,89,44,0,2694,628,1,0,0,0,2695,2696,3,121,60,0,2696,2697,3,133,66,0,2697,2698,3,111,55,0,2698,2699,3,89,44,0,2699,630,1,0,0,0,2700,2701,3,121,60,0,2701,2702,3,133,66,0,2702,2703,3,121,60,0,2703,2704,3,123,61,0,2704,2705,3,93,46,0,2705,2706,3,109,54,0,2706,632,1,0,0,0,2707,2708,3,123,61,0,2708,2709,3,85,42,0,2709,2710,3,87,43,0,2710,2711,3,107,53,0,2711,2712,3,93,46,0,2712,634,1,0,0,0,2713,2714,3,123,61,0,2714,2715,3,85,42,0,2715,2716,3,87,43,0,2716,2717,3,107,53,0,2717,2718,3,93,46,0,2718,2719,3,121,60,0,2719,636,1,0,0,0,2720,2721,3,123,61,0,2721,2722,3,85,42,0,2722,2723,3,87,43,0,2723,2724,3,107,53,0,2724,2725,3,93,46,0,2725,2726,3,121,60,0,2726,2727,3,85,42,0,2727,2728,3,109,54,0,2728,2729,3,115,57,0,2729,2730,3,107,53,0,2730,2731,3,93,46,0,2731,638,1,0,0,0,2732,2733,3,123,61,0,2733,2734,3,85,42,0,2734,2735,3,87,43,0,2735,2736,3,107,53,0,2736,2737,3,93,46,0,2737,2738,3,121,60,0,2738,2739,3,123,61,0,2739,2740,3,113,56,0,2740,2741,3,119,59,0,2741,2742,3,93,46,0,2742,640,1,0,0,0,2743,2744,3,123,61,0,2744,2745,3,85,42,0,2745,2746,3,97,48,0,2746,2747,3,97,48,0,2747,2748,3,93,46,0,2748,2749,3,91,45,0,2749,642,1,0,0,0,2750,2751,3,123,61,0,2751,2752,3,93,46,0,2752,2753,3,109,54,0,2753,2754,3,115,57,0,2754,644,1,0,0,0,2755,2756,3,123,61,0,2756,2757,3,93,46,0,2757,2758,3,109,54,0,2758,2759,3,115,57,0,2759,2760,3,113,56,0,2760,2761,3,119,59,0,2761,2762,3,85,42,0,2762,2763,3,119,59,0,2763,2764,3,133,66,0,2764,646,1,0,0,0,2765,2766,3,123,61,0,2766,2767,3,99,49,0,2767,2768,3,93,46,0,2768,2769,3,111,55,0,2769,648,1,0,0,0,2770,2771,3,123,61,0,2771,2772,3,101,50,0,2772,2773,3,93,46,0,2773,2774,3,121,60,0,2774,650,1,0,0,0,2775,2776,3,123,61,0,2776,2777,3,113,56,0,2777,652,1,0,0,0,2778,2779,3,123,61,0,2779,2780,3,113,56,0,2780,2781,3,115,57,0,2781,2782,3,101,50,0,2782,2783,3,89,44,0,2783,654,1,0,0,0,2784,2785,3,123,61,0,2785,2786,3,119,59,0,2786,2787,3,85,42,0,2787,2788,3,111,55,0,2788,2789,3,121,60,0,2789,2790,3,85,42,0,2790,2791,3,89,44,0,2791,2792,3,123,61,0,2792,2793,3,101,50,0,2793,2794,3,113,56,0,2794,2795,3,111,55,0,2795,656,1,0,0,0,2796,2797,3,123,61,0,2797,2798,3,119,59,0,2798,2799,3,85,42,0,2799,2800,3,111,55,0,2800,2801,3,121,60,0,2801,2802,3,95,47,0,2802,2803,3,93,46,0,2803,2804,3,119,59,0,2804,658,1,0,0,0,2805,2806,3,123,61,0,2806,2807,3,119,59,0,2807,2808,3,101,50,0,2808,2809,3,97,48,0,2809,2810,3,97,48,0,2810,2811,3,93,46,0,2811,2812,3,119,59,0,2812,660,1,0,0,0,2813,2814,3,123,61,0,2814,2815,3,119,59,0,2815,2816,3,125,62,0,2816,2817,3,93,46,0,2817,662,1,0,0,0,2818,2819,3,123,61,0,2819,2820,3,125,62,0,2820,2821,3,115,57,0,2821,2822,3,107,53,0,2822,2823,3,93,46,0,2823,664,1,0,0,0,2824,2825,3,123,61,0,2825,2826,3,133,66,0,2826,2827,3,115,57,0,2827,2828,3,93,46,0,2828,666,1,0,0,0,2829,2830,3,125,62,0,2830,2831,3,111,55,0,2831,2832,3,87,43,0,2832,2833,3,113,56,0,2833,2834,3,125,62,0,2834,2835,3,111,55,0,2835,2836,3,91,45,0,2836,2837,3,93,46,0,2837,2838,3,91,45,0,2838,668,1,0,0,0,2839,2840,3,125,62,0,2840,2841,3,111,55,0,2841,2842,3,89,44,0,2842,2843,3,113,56,0,2843,2844,3,111,55,0,2844,2845,3,91,45,0,2845,2846,3,101,50,0,2846,2847,3,123,61,0,2847,2848,3,101,50,0,2848,2849,3,113,56,0,2849,2850,3,111,55,0,2850,2851,3,85,42,0,2851,2852,3,107,53,0,2852,670,1,0,0,0,2853,2854,3,125,62,0,2854,2855,3,111,55,0,2855,2856,3,101,50,0,2856,2857,3,113,56,0,2857,2858,3,111,55,0,2858,672,1,0,0,0,2859,2860,3,125,62,0,2860,2861,3,111,55,0,2861,2862,3,101,50,0,2862,2863,3,117,58,0,2863,2864,3,125,62,0,2864,2865,3,93,46,0,2865,674,1,0,0,0,2866,2867,3,125,62,0,2867,2868,3,111,55,0,2868,2869,3,105,52,0,2869,2870,3,111,55,0,2870,2871,3,113,56,0,2871,2872,3,129,64,0,2872,2873,3,111,55,0,2873,676,1,0,0,0,2874,2875,3,125,62,0,2875,2876,3,111,55,0,2876,2877,3,109,54,0,2877,2878,3,85,42,0,2878,2879,3,123,61,0,2879,2880,3,89,44,0,2880,2881,3,99,49,0,2881,2882,3,93,46,0,2882,2883,3,91,45,0,2883,678,1,0,0,0,2884,2885,3,125,62,0,2885,2886,3,115,57,0,2886,2887,3,91,45,0,2887,2888,3,85,42,0,2888,2889,3,123,61,0,2889,2890,3,93,46,0,2890,680,1,0,0,0,2891,2892,3,125,62,0,2892,2893,3,115,57,0,2893,2894,3,121,60,0,2894,2895,3,93,46,0,2895,2896,3,119,59,0,2896,2897,3,123,61,0,2897,682,1,0,0,0,2898,2899,3,125,62,0,2899,2900,3,121,60,0,2900,2901,3,93,46,0,2901,684,1,0,0,0,2902,2903,3,125,62,0,2903,2904,3,121,60,0,2904,2905,3,93,46,0,2905,2906,3,119,59,0,2906,686,1,0,0,0,2907,2908,3,125,62,0,2908,2909,3,121,60,0,2909,2910,3,101,50,0,2910,2911,3,111,55,0,2911,2912,3,97,48,0,2912,688,1,0,0,0,2913,2914,3,127,63,0,2914,2915,3,85,42,0,2915,2916,3,89,44,0,2916,2917,3,125,62,0,2917,2918,3,125,62,0,2918,2919,3,109,54,0,2919,690,1,0,0,0,2920,2921,3,127,63,0,2921,2922,3,85,42,0,2922,2923,3,107,53,0,2923,2924,3,125,62,0,2924,2925,3,93,46,0,2925,2926,3,121,60,0,2926,692,1,0,0,0,2927,2928,3,127,63,0,2928,2929,3,85,42,0,2929,2930,3,119,59,0,2930,2931,3,101,50,0,2931,2932,3,85,42,0,2932,2933,3,111,55,0,2933,2934,3,123,61,0,2934,694,1,0,0,0,2935,2936,3,127,63,0,2936,2937,3,101,50,0,2937,2938,3,93,46,0,2938,2939,3,129,64,0,2939,696,1,0,0,0,2940,2941,3,127,63,0,2941,2942,3,101,50,0,2942,2943,3,119,59,0,2943,2944,3,123,61,0,2944,2945,3,125,62,0,2945,2946,3,85,42,0,2946,2947,3,107,53,0,2947,698,1,0,0,0,2948,2949,3,129,64,0,2949,2950,3,99,49,0,2950,2951,3,93,46,0,2951,2952,3,111,55,0,2952,700,1,0,0,0,2953,2954,3,129,64,0,2954,2955,3,99,49,0,2955,2956,3,93,46,0,2956,2957,3,119,59,0,2957,2958,3,93,46,0,2958,702,1,0,0,0,2959,2960,3,129,64,0,2960,2961,3,101,50,0,2961,2962,3,111,55,0,2962,2963,3,91,45,0,2963,2964,3,113,56,0,2964,2965,3,129,64,0,2965,704,1,0,0,0,2966,2967,3,129,64,0,2967,2968,3,101,50,0,2968,2969,3,123,61,0,2969,2970,3,99,49,0,2970,706,1,0,0,0,2971,2972,3,129,64,0,2972,2973,3,101,50,0,2973,2974,3,123,61,0,2974,2975,3,99,49,0,2975,2976,3,113,56,0,2976,2977,3,125,62,0,2977,2978,3,123,61,0,2978,708,1,0,0,0,2979,2980,3,129,64,0,2980,2981,3,119,59,0,2981,2982,3,85,42,0,2982,2983,3,115,57,0,2983,2984,3,115,57,0,2984,2985,3,93,46,0,2985,2986,3,119,59,0,2986,710,1,0,0,0,2987,2988,3,131,65,0,2988,2989,3,113,56,0,2989,2990,3,119,59,0,2990,712,1,0,0,0,2991,2996,8,26,0,0,2992,2993,3,75,37,0,2993,2994,9,0,0,0,2994,2996,1,0,0,0,2995,2991,1,0,0,0,2995,2992,1,0,0,0,2996,714,1,0,0,0,2997,3002,8,27,0,0,2998,2999,3,75,37,0,2999,3e3,9,0,0,0,3e3,3002,1,0,0,0,3001,2997,1,0,0,0,3001,2998,1,0,0,0,3002,716,1,0,0,0,3003,3007,3,79,39,0,3004,3006,3,713,356,0,3005,3004,1,0,0,0,3006,3009,1,0,0,0,3007,3005,1,0,0,0,3007,3008,1,0,0,0,3008,3010,1,0,0,0,3009,3007,1,0,0,0,3010,3011,3,79,39,0,3011,718,1,0,0,0,3012,3016,3,77,38,0,3013,3015,3,715,357,0,3014,3013,1,0,0,0,3015,3018,1,0,0,0,3016,3014,1,0,0,0,3016,3017,1,0,0,0,3017,3019,1,0,0,0,3018,3016,1,0,0,0,3019,3020,3,77,38,0,3020,720,1,0,0,0,3021,3025,3,83,41,0,3022,3024,9,0,0,0,3023,3022,1,0,0,0,3024,3027,1,0,0,0,3025,3026,1,0,0,0,3025,3023,1,0,0,0,3026,3028,1,0,0,0,3027,3025,1,0,0,0,3028,3029,3,83,41,0,3029,3031,1,0,0,0,3030,3021,1,0,0,0,3031,3032,1,0,0,0,3032,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3035,1,0,0,0,3034,3036,3,57,28,0,3035,3034,1,0,0,0,3035,3036,1,0,0,0,3036,722,1,0,0,0,3037,3041,3,717,358,0,3038,3041,3,719,359,0,3039,3041,3,721,360,0,3040,3037,1,0,0,0,3040,3038,1,0,0,0,3040,3039,1,0,0,0,3041,3052,1,0,0,0,3042,3053,3,121,60,0,3043,3053,3,125,62,0,3044,3053,3,133,66,0,3045,3053,3,103,51,0,3046,3050,3,115,57,0,3047,3051,3,123,61,0,3048,3051,3,87,43,0,3049,3051,3,127,63,0,3050,3047,1,0,0,0,3050,3048,1,0,0,0,3050,3049,1,0,0,0,3050,3051,1,0,0,0,3051,3053,1,0,0,0,3052,3042,1,0,0,0,3052,3043,1,0,0,0,3052,3044,1,0,0,0,3052,3045,1,0,0,0,3052,3046,1,0,0,0,3052,3053,1,0,0,0,3053,724,1,0,0,0,3054,3059,7,28,0,0,3055,3058,7,28,0,0,3056,3058,3,731,365,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3058,3061,1,0,0,0,3059,3057,1,0,0,0,3059,3060,1,0,0,0,3060,726,1,0,0,0,3061,3059,1,0,0,0,3062,3063,5,92,0,0,3063,3068,9,0,0,0,3064,3065,5,96,0,0,3065,3068,5,96,0,0,3066,3068,8,29,0,0,3067,3062,1,0,0,0,3067,3064,1,0,0,0,3067,3066,1,0,0,0,3068,728,1,0,0,0,3069,3073,3,81,40,0,3070,3072,3,727,363,0,3071,3070,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,3076,1,0,0,0,3075,3073,1,0,0,0,3076,3077,3,81,40,0,3077,730,1,0,0,0,3078,3079,2,48,57,0,3079,732,1,0,0,0,3080,3081,7,30,0,0,3081,734,1,0,0,0,3082,3083,5,48,0,0,3083,3085,3,131,65,0,3084,3086,3,733,366,0,3085,3084,1,0,0,0,3086,3087,1,0,0,0,3087,3085,1,0,0,0,3087,3088,1,0,0,0,3088,736,1,0,0,0,3089,3090,5,48,0,0,3090,3092,3,113,56,0,3091,3093,2,48,56,0,3092,3091,1,0,0,0,3093,3094,1,0,0,0,3094,3092,1,0,0,0,3094,3095,1,0,0,0,3095,738,1,0,0,0,3096,3097,5,48,0,0,3097,3099,3,87,43,0,3098,3100,2,48,49,0,3099,3098,1,0,0,0,3100,3101,1,0,0,0,3101,3099,1,0,0,0,3101,3102,1,0,0,0,3102,740,1,0,0,0,3103,3105,3,731,365,0,3104,3103,1,0,0,0,3105,3106,1,0,0,0,3106,3104,1,0,0,0,3106,3107,1,0,0,0,3107,742,1,0,0,0,3108,3113,3,741,370,0,3109,3113,3,735,367,0,3110,3113,3,737,368,0,3111,3113,3,739,369,0,3112,3108,1,0,0,0,3112,3109,1,0,0,0,3112,3110,1,0,0,0,3112,3111,1,0,0,0,3113,744,1,0,0,0,3114,3117,3,743,371,0,3115,3118,3,115,57,0,3116,3118,3,125,62,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3117,3118,1,0,0,0,3118,3125,1,0,0,0,3119,3126,3,107,53,0,3120,3126,3,121,60,0,3121,3126,3,123,61,0,3122,3126,3,101,50,0,3123,3126,3,87,43,0,3124,3126,3,111,55,0,3125,3119,1,0,0,0,3125,3120,1,0,0,0,3125,3121,1,0,0,0,3125,3122,1,0,0,0,3125,3123,1,0,0,0,3125,3124,1,0,0,0,3125,3126,1,0,0,0,3126,746,1,0,0,0,3127,3130,3,93,46,0,3128,3131,3,31,15,0,3129,3131,3,33,16,0,3130,3128,1,0,0,0,3130,3129,1,0,0,0,3130,3131,1,0,0,0,3131,3132,1,0,0,0,3132,3133,3,741,370,0,3133,748,1,0,0,0,3134,3135,3,741,370,0,3135,3139,3,45,22,0,3136,3138,3,731,365,0,3137,3136,1,0,0,0,3138,3141,1,0,0,0,3139,3137,1,0,0,0,3139,3140,1,0,0,0,3140,3143,1,0,0,0,3141,3139,1,0,0,0,3142,3144,3,747,373,0,3143,3142,1,0,0,0,3143,3144,1,0,0,0,3144,3149,1,0,0,0,3145,3146,3,741,370,0,3146,3147,3,747,373,0,3147,3149,1,0,0,0,3148,3134,1,0,0,0,3148,3145,1,0,0,0,3149,3158,1,0,0,0,3150,3159,3,95,47,0,3151,3156,3,115,57,0,3152,3153,3,95,47,0,3153,3154,7,31,0,0,3154,3157,1,0,0,0,3155,3157,3,111,55,0,3156,3152,1,0,0,0,3156,3155,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3150,1,0,0,0,3158,3151,1,0,0,0,3158,3159,1,0,0,0,3159,750,1,0,0,0,3160,3161,3,131,65,0,3161,3163,3,79,39,0,3162,3164,3,733,366,0,3163,3162,1,0,0,0,3164,3165,1,0,0,0,3165,3163,1,0,0,0,3165,3166,1,0,0,0,3166,3167,1,0,0,0,3167,3168,3,79,39,0,3168,752,1,0,0,0,3169,3170,5,47,0,0,3170,3171,5,42,0,0,3171,3175,1,0,0,0,3172,3174,9,0,0,0,3173,3172,1,0,0,0,3174,3177,1,0,0,0,3175,3176,1,0,0,0,3175,3173,1,0,0,0,3176,3178,1,0,0,0,3177,3175,1,0,0,0,3178,3179,5,42,0,0,3179,3180,5,47,0,0,3180,754,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,45,0,0,3183,3187,1,0,0,0,3184,3186,8,32,0,0,3185,3184,1,0,0,0,3186,3189,1,0,0,0,3187,3185,1,0,0,0,3187,3188,1,0,0,0,3188,3195,1,0,0,0,3189,3187,1,0,0,0,3190,3192,5,13,0,0,3191,3193,5,10,0,0,3192,3191,1,0,0,0,3192,3193,1,0,0,0,3193,3196,1,0,0,0,3194,3196,7,33,0,0,3195,3190,1,0,0,0,3195,3194,1,0,0,0,3196,756,1,0,0,0,3197,3198,7,34,0,0,3198,3199,1,0,0,0,3199,3200,6,378,0,0,3200,758,1,0,0,0,3201,3204,3,753,376,0,3202,3204,3,755,377,0,3203,3201,1,0,0,0,3203,3202,1,0,0,0,3204,3205,1,0,0,0,3205,3206,6,379,1,0,3206,760,1,0,0,0,34,0,2995,3001,3007,3016,3025,3032,3035,3040,3050,3052,3057,3059,3067,3073,3087,3094,3101,3106,3112,3117,3125,3130,3139,3143,3148,3156,3158,3165,3175,3187,3192,3195,3203,2,0,1,0,6,0,0]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},rs=class e extends Gt{static{Si(this,"YQLParser")}static{this.EQUALS=1}static{this.EQUALS2=2}static{this.NOT_EQUALS=3}static{this.NOT_EQUALS2=4}static{this.LESS=5}static{this.LESS_OR_EQ=6}static{this.GREATER=7}static{this.GREATER_OR_EQ=8}static{this.SHIFT_LEFT=9}static{this.ROT_LEFT=10}static{this.AMPERSAND=11}static{this.PIPE=12}static{this.DOUBLE_PIPE=13}static{this.STRUCT_OPEN=14}static{this.STRUCT_CLOSE=15}static{this.PLUS=16}static{this.MINUS=17}static{this.TILDA=18}static{this.ASTERISK=19}static{this.SLASH=20}static{this.PERCENT=21}static{this.SEMICOLON=22}static{this.DOT=23}static{this.COMMA=24}static{this.LPAREN=25}static{this.RPAREN=26}static{this.QUESTION=27}static{this.COLON=28}static{this.COMMAT=29}static{this.DOLLAR=30}static{this.LBRACE_CURLY=31}static{this.RBRACE_CURLY=32}static{this.CARET=33}static{this.NAMESPACE=34}static{this.ARROW=35}static{this.RBRACE_SQUARE=36}static{this.LBRACE_SQUARE=37}static{this.ABORT=38}static{this.ACTION=39}static{this.ADD=40}static{this.AFTER=41}static{this.ALL=42}static{this.ALTER=43}static{this.ANALYZE=44}static{this.AND=45}static{this.ANSI=46}static{this.ANY=47}static{this.ARRAY=48}static{this.AS=49}static{this.ASC=50}static{this.ASSUME=51}static{this.ASYMMETRIC=52}static{this.ASYNC=53}static{this.AT=54}static{this.ATTACH=55}static{this.ATTRIBUTES=56}static{this.AUTOINCREMENT=57}static{this.AUTOMAP=58}static{this.BACKUP=59}static{this.BATCH=60}static{this.COLLECTION=61}static{this.BEFORE=62}static{this.BEGIN=63}static{this.BERNOULLI=64}static{this.BETWEEN=65}static{this.BITCAST=66}static{this.BY=67}static{this.CALLABLE=68}static{this.CASCADE=69}static{this.CASE=70}static{this.CAST=71}static{this.CHANGEFEED=72}static{this.CHECK=73}static{this.CLASSIFIER=74}static{this.COLLATE=75}static{this.COLUMN=76}static{this.COLUMNS=77}static{this.COMMIT=78}static{this.COMPACT=79}static{this.CONDITIONAL=80}static{this.CONFLICT=81}static{this.CONNECT=82}static{this.CONSTRAINT=83}static{this.CONSUMER=84}static{this.COVER=85}static{this.CREATE=86}static{this.CROSS=87}static{this.CUBE=88}static{this.CURRENT=89}static{this.CURRENT_DATE=90}static{this.CURRENT_TIME=91}static{this.CURRENT_TIMESTAMP=92}static{this.DATA=93}static{this.DATABASE=94}static{this.DECIMAL=95}static{this.DECLARE=96}static{this.DEFAULT=97}static{this.DEFERRABLE=98}static{this.DEFERRED=99}static{this.DEFINE=100}static{this.DELETE=101}static{this.DESC=102}static{this.DESCRIBE=103}static{this.DETACH=104}static{this.DICT=105}static{this.DIRECTORY=106}static{this.DISABLE=107}static{this.DISCARD=108}static{this.DISTINCT=109}static{this.DO=110}static{this.DROP=111}static{this.EACH=112}static{this.ELSE=113}static{this.EMPTY=114}static{this.EMPTY_ACTION=115}static{this.ENCRYPTED=116}static{this.END=117}static{this.ENUM=118}static{this.ERASE=119}static{this.ERROR=120}static{this.ESCAPE=121}static{this.EVALUATE=122}static{this.EXCEPT=123}static{this.EXCLUDE=124}static{this.EXCLUSION=125}static{this.EXCLUSIVE=126}static{this.EXISTS=127}static{this.EXPLAIN=128}static{this.EXPORT=129}static{this.EXTERNAL=130}static{this.FAIL=131}static{this.FALSE=132}static{this.FAMILY=133}static{this.FILTER=134}static{this.FIRST=135}static{this.FLATTEN=136}static{this.FLOW=137}static{this.FOLLOWING=138}static{this.FOR=139}static{this.FOREIGN=140}static{this.FROM=141}static{this.FULL=142}static{this.FUNCTION=143}static{this.GLOB=144}static{this.GLOBAL=145}static{this.GRANT=146}static{this.GROUP=147}static{this.GROUPING=148}static{this.GROUPS=149}static{this.HASH=150}static{this.HAVING=151}static{this.HOP=152}static{this.IF=153}static{this.IGNORE=154}static{this.ILIKE=155}static{this.IMMEDIATE=156}static{this.IMPORT=157}static{this.IN=158}static{this.INCREMENT=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.LOGIN=185}static{this.MANAGE=186}static{this.MATCH=187}static{this.MATCHES=188}static{this.MATCH_RECOGNIZE=189}static{this.MEASURES=190}static{this.MICROSECONDS=191}static{this.MILLISECONDS=192}static{this.MODIFY=193}static{this.NANOSECONDS=194}static{this.NATURAL=195}static{this.NEXT=196}static{this.NO=197}static{this.NOLOGIN=198}static{this.NOT=199}static{this.NOTNULL=200}static{this.NULL=201}static{this.NULLS=202}static{this.OBJECT=203}static{this.OF=204}static{this.OFFSET=205}static{this.OMIT=206}static{this.ON=207}static{this.ONE=208}static{this.ONLY=209}static{this.OPTION=210}static{this.OPTIONAL=211}static{this.OR=212}static{this.ORDER=213}static{this.OTHERS=214}static{this.OUTER=215}static{this.OVER=216}static{this.PARALLEL=217}static{this.PARTITION=218}static{this.PASSING=219}static{this.PASSWORD=220}static{this.PAST=221}static{this.PATTERN=222}static{this.PER=223}static{this.PERMUTE=224}static{this.PLAN=225}static{this.POOL=226}static{this.PRAGMA=227}static{this.PRECEDING=228}static{this.PRESORT=229}static{this.PRIMARY=230}static{this.PRIVILEGES=231}static{this.PROCESS=232}static{this.QUERY=233}static{this.QUEUE=234}static{this.RAISE=235}static{this.RANGE=236}static{this.REDUCE=237}static{this.REFERENCES=238}static{this.REGEXP=239}static{this.REINDEX=240}static{this.RELEASE=241}static{this.REMOVE=242}static{this.RENAME=243}static{this.REPEATABLE=244}static{this.REPLACE=245}static{this.REPLICATION=246}static{this.RESET=247}static{this.RESOURCE=248}static{this.RESPECT=249}static{this.RESTART=250}static{this.RESTORE=251}static{this.RESTRICT=252}static{this.RESULT=253}static{this.RETURN=254}static{this.RETURNING=255}static{this.REVERT=256}static{this.REVOKE=257}static{this.RIGHT=258}static{this.RLIKE=259}static{this.ROLLBACK=260}static{this.ROLLUP=261}static{this.ROW=262}static{this.ROWS=263}static{this.SAMPLE=264}static{this.SAVEPOINT=265}static{this.SCHEMA=266}static{this.SECONDS=267}static{this.SEEK=268}static{this.SELECT=269}static{this.SEMI=270}static{this.SET=271}static{this.SETS=272}static{this.SHOW=273}static{this.TSKIP=274}static{this.SEQUENCE=275}static{this.SOURCE=276}static{this.START=277}static{this.STREAM=278}static{this.STRUCT=279}static{this.SUBQUERY=280}static{this.SUBSET=281}static{this.SYMBOLS=282}static{this.SYMMETRIC=283}static{this.SYNC=284}static{this.SYSTEM=285}static{this.TABLE=286}static{this.TABLES=287}static{this.TABLESAMPLE=288}static{this.TABLESTORE=289}static{this.TAGGED=290}static{this.TEMP=291}static{this.TEMPORARY=292}static{this.THEN=293}static{this.TIES=294}static{this.TO=295}static{this.TOPIC=296}static{this.TRANSACTION=297}static{this.TRANSFER=298}static{this.TRIGGER=299}static{this.TRUE=300}static{this.TUPLE=301}static{this.TYPE=302}static{this.UNBOUNDED=303}static{this.UNCONDITIONAL=304}static{this.UNION=305}static{this.UNIQUE=306}static{this.UNKNOWN=307}static{this.UNMATCHED=308}static{this.UPDATE=309}static{this.UPSERT=310}static{this.USE=311}static{this.USER=312}static{this.USING=313}static{this.VACUUM=314}static{this.VALUES=315}static{this.VARIANT=316}static{this.VIEW=317}static{this.VIRTUAL=318}static{this.WHEN=319}static{this.WHERE=320}static{this.WINDOW=321}static{this.WITH=322}static{this.WITHOUT=323}static{this.WRAPPER=324}static{this.XOR=325}static{this.STRING_VALUE=326}static{this.ID_PLAIN=327}static{this.ID_QUOTED=328}static{this.DIGITS=329}static{this.INTEGER_VALUE=330}static{this.REAL=331}static{this.BLOB=332}static{this.WS=333}static{this.COMMENT=334}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_ttl_tier_list=275}static{this.RULE_ttl_tier_action=276}static{this.RULE_family_entry=277}static{this.RULE_family_settings=278}static{this.RULE_family_settings_entry=279}static{this.RULE_family_setting_value=280}static{this.RULE_split_boundaries=281}static{this.RULE_literal_value_list=282}static{this.RULE_alter_table_alter_index_action=283}static{this.RULE_drop_table_stmt=284}static{this.RULE_create_user_stmt=285}static{this.RULE_alter_user_stmt=286}static{this.RULE_create_group_stmt=287}static{this.RULE_alter_group_stmt=288}static{this.RULE_drop_role_stmt=289}static{this.RULE_role_name=290}static{this.RULE_user_option=291}static{this.RULE_authentication_option=292}static{this.RULE_password_option=293}static{this.RULE_hash_option=294}static{this.RULE_login_option=295}static{this.RULE_grant_permissions_stmt=296}static{this.RULE_revoke_permissions_stmt=297}static{this.RULE_permission_id=298}static{this.RULE_permission_name=299}static{this.RULE_permission_name_target=300}static{this.RULE_create_resource_pool_stmt=301}static{this.RULE_alter_resource_pool_stmt=302}static{this.RULE_alter_resource_pool_action=303}static{this.RULE_drop_resource_pool_stmt=304}static{this.RULE_create_resource_pool_classifier_stmt=305}static{this.RULE_alter_resource_pool_classifier_stmt=306}static{this.RULE_alter_resource_pool_classifier_action=307}static{this.RULE_drop_resource_pool_classifier_stmt=308}static{this.RULE_create_replication_stmt=309}static{this.RULE_replication_target=310}static{this.RULE_replication_settings=311}static{this.RULE_replication_settings_entry=312}static{this.RULE_alter_replication_stmt=313}static{this.RULE_alter_replication_action=314}static{this.RULE_alter_replication_set_setting=315}static{this.RULE_drop_replication_stmt=316}static{this.RULE_lambda_or_parameter=317}static{this.RULE_create_transfer_stmt=318}static{this.RULE_transfer_settings=319}static{this.RULE_transfer_settings_entry=320}static{this.RULE_alter_transfer_stmt=321}static{this.RULE_alter_transfer_action=322}static{this.RULE_alter_transfer_set_setting=323}static{this.RULE_alter_transfer_set_using=324}static{this.RULE_drop_transfer_stmt=325}static{this.RULE_action_or_subquery_args=326}static{this.RULE_define_action_or_subquery_stmt=327}static{this.RULE_define_action_or_subquery_body=328}static{this.RULE_if_stmt=329}static{this.RULE_for_stmt=330}static{this.RULE_table_ref=331}static{this.RULE_table_key=332}static{this.RULE_table_arg=333}static{this.RULE_table_hints=334}static{this.RULE_table_hint=335}static{this.RULE_object_ref=336}static{this.RULE_simple_table_ref_core=337}static{this.RULE_simple_table_ref=338}static{this.RULE_into_simple_table_ref=339}static{this.RULE_delete_stmt=340}static{this.RULE_update_stmt=341}static{this.RULE_set_clause_choice=342}static{this.RULE_set_clause_list=343}static{this.RULE_set_clause=344}static{this.RULE_set_target=345}static{this.RULE_multiple_column_assignment=346}static{this.RULE_set_target_list=347}static{this.RULE_create_topic_stmt=348}static{this.RULE_create_topic_entries=349}static{this.RULE_create_topic_entry=350}static{this.RULE_with_topic_settings=351}static{this.RULE_alter_topic_stmt=352}static{this.RULE_alter_topic_action=353}static{this.RULE_alter_topic_add_consumer=354}static{this.RULE_topic_create_consumer_entry=355}static{this.RULE_alter_topic_alter_consumer=356}static{this.RULE_alter_topic_alter_consumer_entry=357}static{this.RULE_alter_topic_drop_consumer=358}static{this.RULE_topic_alter_consumer_set=359}static{this.RULE_topic_alter_consumer_reset=360}static{this.RULE_alter_topic_set_settings=361}static{this.RULE_alter_topic_reset_settings=362}static{this.RULE_drop_topic_stmt=363}static{this.RULE_topic_settings=364}static{this.RULE_topic_settings_entry=365}static{this.RULE_topic_setting_value=366}static{this.RULE_topic_consumer_with_settings=367}static{this.RULE_topic_consumer_settings=368}static{this.RULE_topic_consumer_settings_entry=369}static{this.RULE_topic_consumer_setting_value=370}static{this.RULE_topic_ref=371}static{this.RULE_topic_consumer_ref=372}static{this.RULE_null_treatment=373}static{this.RULE_filter_clause=374}static{this.RULE_window_name_or_specification=375}static{this.RULE_window_name=376}static{this.RULE_window_clause=377}static{this.RULE_window_definition_list=378}static{this.RULE_window_definition=379}static{this.RULE_new_window_name=380}static{this.RULE_window_specification=381}static{this.RULE_window_specification_details=382}static{this.RULE_existing_window_name=383}static{this.RULE_window_partition_clause=384}static{this.RULE_window_order_clause=385}static{this.RULE_window_frame_clause=386}static{this.RULE_window_frame_units=387}static{this.RULE_window_frame_extent=388}static{this.RULE_window_frame_between=389}static{this.RULE_window_frame_bound=390}static{this.RULE_window_frame_exclusion=391}static{this.RULE_use_stmt=392}static{this.RULE_subselect_stmt=393}static{this.RULE_named_nodes_stmt=394}static{this.RULE_commit_stmt=395}static{this.RULE_rollback_stmt=396}static{this.RULE_analyze_table=397}static{this.RULE_analyze_table_list=398}static{this.RULE_analyze_stmt=399}static{this.RULE_alter_sequence_stmt=400}static{this.RULE_alter_sequence_action=401}static{this.RULE_identifier=402}static{this.RULE_id=403}static{this.RULE_id_schema=404}static{this.RULE_id_expr=405}static{this.RULE_id_expr_in=406}static{this.RULE_id_window=407}static{this.RULE_id_table=408}static{this.RULE_id_without=409}static{this.RULE_id_hint=410}static{this.RULE_id_as_compat=411}static{this.RULE_an_id=412}static{this.RULE_an_id_or_type=413}static{this.RULE_an_id_schema=414}static{this.RULE_an_id_expr=415}static{this.RULE_an_id_expr_in=416}static{this.RULE_an_id_window=417}static{this.RULE_an_id_table=418}static{this.RULE_an_id_without=419}static{this.RULE_an_id_hint=420}static{this.RULE_an_id_pure=421}static{this.RULE_an_id_as_compat=422}static{this.RULE_view_name=423}static{this.RULE_opt_id_prefix=424}static{this.RULE_cluster_expr=425}static{this.RULE_id_or_type=426}static{this.RULE_opt_id_prefix_or_type=427}static{this.RULE_id_or_at=428}static{this.RULE_id_table_or_type=429}static{this.RULE_id_table_or_at=430}static{this.RULE_keyword=431}static{this.RULE_keyword_expr_uncompat=432}static{this.RULE_keyword_table_uncompat=433}static{this.RULE_keyword_select_uncompat=434}static{this.RULE_keyword_alter_uncompat=435}static{this.RULE_keyword_in_uncompat=436}static{this.RULE_keyword_window_uncompat=437}static{this.RULE_keyword_hint_uncompat=438}static{this.RULE_keyword_as_compat=439}static{this.RULE_keyword_compat=440}static{this.RULE_type_id=441}static{this.RULE_bool_value=442}static{this.RULE_real=443}static{this.RULE_integer=444}static{this.RULE_sql_query_yq=445}static{this.RULE_sql_stmt_list_yq=446}static{this.RULE_sql_stmt_yq=447}static{this.RULE_sql_stmt_core_yq=448}static{this.RULE_replication_name=449}static{this.RULE_where_expr=450}static{this.literalNames=[null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","BATCH","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENT","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","LOGIN","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOLOGIN","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUERY","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SEQUENCE","SOURCE","START","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRANSFER","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","ttl_tier_list","ttl_tier_action","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","user_option","authentication_option","password_option","hash_option","login_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","lambda_or_parameter","create_transfer_stmt","transfer_settings","transfer_settings_entry","alter_transfer_stmt","alter_transfer_action","alter_transfer_set_setting","alter_transfer_set_using","drop_transfer_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","alter_sequence_stmt","alter_sequence_action","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}createFailedPredicateException(e,t){return new Ft(this,e,t)}constructor(t){super(t),this.interpreter=new gt(this,e._ATN,e.decisionsToDFA,new pt)}sql_query(){let t=new os(this.context,this.state);this.enterRule(t,0,e.RULE_sql_query);try{switch(this.state=907,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(t,1),this.state=902,this.sql_stmt_list();break;case 2:this.enterOuterAlt(t,2),this.state=903,this.match(e.PRAGMA),this.state=904,this.match(e.ANSI),this.state=905,this.match(e.DIGITS),this.state=906,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list(){let t,i=new as(this.context,this.state);this.enterRule(i,2,e.RULE_sql_stmt_list);try{let s;for(this.enterOuterAlt(i,1),this.state=912,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=909,this.match(e.SEMICOLON),this.state=914,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=915,this.sql_stmt(),this.state=924,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=917,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=916,this.match(e.SEMICOLON),this.state=919,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=921,this.sql_stmt()}this.state=926,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=930,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=927,this.match(e.SEMICOLON),this.state=932,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=933,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ansi_sql_stmt_list(){let t,i=new cs(this.context,this.state);this.enterRule(i,4,e.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(i,1),this.state=938,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=935,this.match(e.SEMICOLON),this.state=940,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=941,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_body(){let t,i=new ls(this.context,this.state);this.enterRule(i,6,e.RULE_lambda_body);try{for(this.enterOuterAlt(i,1),this.state=946,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=943,this.match(e.SEMICOLON),this.state=948,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=957,this.errorHandler.sync(this),t=this.tokenStream.LA(1);30===t||157===t;){this.state=949,this.lambda_stmt(),this.state=951,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=950,this.match(e.SEMICOLON),this.state=953,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=959,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}for(this.state=960,this.match(e.RETURN),this.state=961,this.expr(),this.state=965,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=962,this.match(e.SEMICOLON),this.state=967,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_stmt(){let t=new hs(this.context,this.state);this.enterRule(t,8,e.RULE_lambda_stmt);try{switch(this.state=970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=968,this.named_nodes_stmt();break;case e.IMPORT:this.enterOuterAlt(t,2),this.state=969,this.import_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt(){let t,i=new ds(this.context,this.state);this.enterRule(i,10,e.RULE_sql_stmt);try{this.enterOuterAlt(i,1),this.state=977,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=972,this.match(e.EXPLAIN),this.state=975,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=973,this.match(e.QUERY),this.state=974,this.match(e.PLAN))),this.state=979,this.sql_stmt_core()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core(){let t=new us(this.context,this.state);this.enterRule(t,12,e.RULE_sql_stmt_core);try{switch(this.state=1041,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(t,1),this.state=981,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=982,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=983,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=984,this.create_table_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=985,this.drop_table_stmt();break;case 6:this.enterOuterAlt(t,6),this.state=986,this.use_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=987,this.into_table_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=988,this.commit_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=989,this.update_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=990,this.delete_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=991,this.rollback_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=992,this.declare_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=993,this.import_stmt();break;case 14:this.enterOuterAlt(t,14),this.state=994,this.export_stmt();break;case 15:this.enterOuterAlt(t,15),this.state=995,this.alter_table_stmt();break;case 16:this.enterOuterAlt(t,16),this.state=996,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(t,17),this.state=997,this.do_stmt();break;case 18:this.enterOuterAlt(t,18),this.state=998,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(t,19),this.state=999,this.if_stmt();break;case 20:this.enterOuterAlt(t,20),this.state=1e3,this.for_stmt();break;case 21:this.enterOuterAlt(t,21),this.state=1001,this.values_stmt();break;case 22:this.enterOuterAlt(t,22),this.state=1002,this.create_user_stmt();break;case 23:this.enterOuterAlt(t,23),this.state=1003,this.alter_user_stmt();break;case 24:this.enterOuterAlt(t,24),this.state=1004,this.create_group_stmt();break;case 25:this.enterOuterAlt(t,25),this.state=1005,this.alter_group_stmt();break;case 26:this.enterOuterAlt(t,26),this.state=1006,this.drop_role_stmt();break;case 27:this.enterOuterAlt(t,27),this.state=1007,this.create_object_stmt();break;case 28:this.enterOuterAlt(t,28),this.state=1008,this.alter_object_stmt();break;case 29:this.enterOuterAlt(t,29),this.state=1009,this.drop_object_stmt();break;case 30:this.enterOuterAlt(t,30),this.state=1010,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(t,31),this.state=1011,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(t,32),this.state=1012,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(t,33),this.state=1013,this.create_replication_stmt();break;case 34:this.enterOuterAlt(t,34),this.state=1014,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(t,35),this.state=1015,this.create_topic_stmt();break;case 36:this.enterOuterAlt(t,36),this.state=1016,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(t,37),this.state=1017,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(t,38),this.state=1018,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(t,39),this.state=1019,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(t,40),this.state=1020,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(t,41),this.state=1021,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(t,42),this.state=1022,this.create_view_stmt();break;case 43:this.enterOuterAlt(t,43),this.state=1023,this.drop_view_stmt();break;case 44:this.enterOuterAlt(t,44),this.state=1024,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(t,45),this.state=1025,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(t,46),this.state=1026,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(t,47),this.state=1027,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(t,48),this.state=1028,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(t,49),this.state=1029,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(t,50),this.state=1030,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(t,51),this.state=1031,this.analyze_stmt();break;case 52:this.enterOuterAlt(t,52),this.state=1032,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(t,53),this.state=1033,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(t,54),this.state=1034,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(t,55),this.state=1035,this.backup_stmt();break;case 56:this.enterOuterAlt(t,56),this.state=1036,this.restore_stmt();break;case 57:this.enterOuterAlt(t,57),this.state=1037,this.alter_sequence_stmt();break;case 58:this.enterOuterAlt(t,58),this.state=1038,this.create_transfer_stmt();break;case 59:this.enterOuterAlt(t,59),this.state=1039,this.alter_transfer_stmt();break;case 60:this.enterOuterAlt(t,60),this.state=1040,this.drop_transfer_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}expr(){let t=new gs(this.context,this.state);this.enterRule(t,14,e.RULE_expr);try{let i;switch(this.state=1052,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(t,1),this.state=1043,this.or_subexpr(),this.state=1048,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1044,this.match(e.OR),this.state=1045,this.or_subexpr()),this.state=1050,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(t,2),this.state=1051,this.type_name_composite()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}or_subexpr(){let t=new ps(this.context,this.state);this.enterRule(t,16,e.RULE_or_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1054,this.and_subexpr(),this.state=1059,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1055,this.match(e.AND),this.state=1056,this.and_subexpr()),this.state=1061,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}and_subexpr(){let t=new ms(this.context,this.state);this.enterRule(t,18,e.RULE_and_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1062,this.xor_subexpr(),this.state=1067,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1063,this.match(e.XOR),this.state=1064,this.xor_subexpr()),this.state=1069,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}xor_subexpr(){let t=new fs(this.context,this.state);this.enterRule(t,20,e.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(t,1),this.state=1070,this.eq_subexpr(),this.state=1072,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1071,this.cond_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}distinct_from_op(){let t,i=new _s(this.context,this.state);this.enterRule(i,22,e.RULE_distinct_from_op);try{this.enterOuterAlt(i,1),this.state=1074,this.match(e.IS),this.state=1076,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1075,this.match(e.NOT)),this.state=1078,this.match(e.DISTINCT),this.state=1079,this.match(e.FROM)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}cond_expr(){let t,i=new vs(this.context,this.state);this.enterRule(i,24,e.RULE_cond_expr);try{let s;switch(this.state=1132,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(i,1),this.state=1082,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1081,this.match(e.NOT)),this.state=1084,this.match_op(),this.state=1085,this.eq_subexpr(),this.state=1088,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1086,this.match(e.ESCAPE),this.state=1087,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(i,2),1===(this.state=1091,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1090,this.match(e.NOT)),this.state=1093,this.match(e.IN),this.state=1095,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1094,this.match(e.COMPACT);this.state=1097,this.in_expr();break;case 3:switch(this.enterOuterAlt(i,3),this.state=1107,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1098,this.match(e.ISNULL);break;case 2:this.state=1099,this.match(e.NOTNULL);break;case 3:this.state=1100,this.match(e.IS),this.state=1101,this.match(e.NULL);break;case 4:this.state=1103,this.errorHandler.sync(this),t=this.tokenStream.LA(1),171===t&&(this.state=1102,this.match(e.IS)),this.state=1105,this.match(e.NOT),this.state=1106,this.match(e.NULL)}break;case 4:if(this.enterOuterAlt(i,4),1===(this.state=1110,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1109,this.match(e.NOT)),this.state=1112,this.match(e.BETWEEN),this.state=1114,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1113,t=this.tokenStream.LA(1),52===t||283===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1116,this.eq_subexpr(),this.state=1117,this.match(e.AND),this.state=1118,this.eq_subexpr();break;case 5:this.enterOuterAlt(i,5),this.state=1128,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new lt(this);switch(this.state=1125,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1120,this.match(e.EQUALS);break;case e.EQUALS2:this.state=1121,this.match(e.EQUALS2);break;case e.NOT_EQUALS:this.state=1122,this.match(e.NOT_EQUALS);break;case e.NOT_EQUALS2:this.state=1123,this.match(e.NOT_EQUALS2);break;case e.IS:this.state=1124,this.distinct_from_op();break;default:throw new lt(this)}this.state=1127,this.eq_subexpr(),this.state=1130,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==s&&s!==Z.INVALID_ALT_NUMBER)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}match_op(){let t,i=new Cs(this.context,this.state);this.enterRule(i,26,e.RULE_match_op);try{this.enterOuterAlt(i,1),this.state=1134,t=this.tokenStream.LA(1),144===t||155===t||181===t||187===t||239===t||259===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}eq_subexpr(){let t,i=new Es(this.context,this.state);this.enterRule(i,28,e.RULE_eq_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1136,this.neq_subexpr(),this.state=1141,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&480;)this.state=1137,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&480?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1138,this.neq_subexpr(),this.state=1143,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}shift_right(){let t=new bs(this.context,this.state);this.enterRule(t,30,e.RULE_shift_right);try{this.enterOuterAlt(t,1),this.state=1144,this.match(e.GREATER),this.state=1145,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rot_right(){let t=new Ss(this.context,this.state);this.enterRule(t,32,e.RULE_rot_right);try{this.enterOuterAlt(t,1),this.state=1147,this.match(e.GREATER),this.state=1148,this.match(e.GREATER),this.state=1149,this.match(e.PIPE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}double_question(){let t=new ys(this.context,this.state);this.enterRule(t,34,e.RULE_double_question);try{this.enterOuterAlt(t,1),this.state=1151,this.match(e.QUESTION),this.state=1152,this.match(e.QUESTION)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}neq_subexpr(){let t,i=new ws(this.context,this.state);this.enterRule(i,36,e.RULE_neq_subexpr);try{let s;for(this.enterOuterAlt(i,1),this.state=1154,this.bit_subexpr(),this.state=1167,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){switch(this.state=1162,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1155,this.match(e.SHIFT_LEFT);break;case 2:this.state=1156,this.shift_right();break;case 3:this.state=1157,this.match(e.ROT_LEFT);break;case 4:this.state=1158,this.rot_right();break;case 5:this.state=1159,this.match(e.AMPERSAND);break;case 6:this.state=1160,this.match(e.PIPE);break;case 7:this.state=1161,this.match(e.CARET)}this.state=1164,this.bit_subexpr()}this.state=1169,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1178,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1170,this.double_question(),this.state=1171,this.neq_subexpr();break;case 2:this.state=1174,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1173,this.match(e.QUESTION),this.state=1176,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(27===t)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bit_subexpr(){let t,i=new Rs(this.context,this.state);this.enterRule(i,38,e.RULE_bit_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1180,this.add_subexpr(),this.state=1185,this.errorHandler.sync(this),t=this.tokenStream.LA(1);16===t||17===t;)this.state=1181,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1182,this.add_subexpr(),this.state=1187,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}add_subexpr(){let t,i=new Ls(this.context,this.state);this.enterRule(i,40,e.RULE_add_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1188,this.mul_subexpr(),this.state=1193,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&3670016;)this.state=1189,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&3670016?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1190,this.mul_subexpr(),this.state=1195,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}mul_subexpr(){let t,i=new Ts(this.context,this.state);this.enterRule(i,42,e.RULE_mul_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1196,this.con_subexpr(),this.state=1201,this.errorHandler.sync(this),t=this.tokenStream.LA(1);13===t;)this.state=1197,this.match(e.DOUBLE_PIPE),this.state=1198,this.con_subexpr(),this.state=1203,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}con_subexpr(){let t=new xs(this.context,this.state);this.enterRule(t,44,e.RULE_con_subexpr);try{switch(this.state=1208,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1204,this.unary_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1205,this.unary_op(),this.state=1206,this.unary_subexpr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_op(){let t,i=new ks(this.context,this.state);this.enterRule(i,46,e.RULE_unary_op);try{this.enterOuterAlt(i,1),this.state=1210,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&458752||199===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_subexpr_suffix(){let t,i=new As(this.context,this.state);this.enterRule(i,48,e.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(i,1),this.state=1224,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(t-23&-32)&&1<<t-23&16389;){switch(this.state=1220,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LBRACE_SQUARE:this.state=1212,this.key_expr();break;case e.LPAREN:this.state=1213,this.invoke_expr();break;case e.DOT:switch(this.state=1214,this.match(e.DOT),this.state=1218,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1215,this.bind_parameter();break;case e.DIGITS:this.state=1216,this.match(e.DIGITS);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1217,this.an_id_or_type();break;default:throw new lt(this)}break;default:throw new lt(this)}this.state=1226,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}this.state=1229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),75===t&&(this.state=1227,this.match(e.COLLATE),this.state=1228,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_casual_subexpr(){let t=new Ns(this.context,this.state);this.enterRule(t,50,e.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1233,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1231,this.id_expr();break;case 2:this.state=1232,this.atom_expr()}this.state=1235,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_casual_subexpr(){let t=new Is(this.context,this.state);this.enterRule(t,52,e.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1239,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1237,this.id_expr_in();break;case 2:this.state=1238,this.in_atom_expr()}this.state=1241,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_subexpr(){let t=new Os(this.context,this.state);this.enterRule(t,54,e.RULE_unary_subexpr);try{switch(this.state=1245,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1243,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1244,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_subexpr(){let t=new Ds(this.context,this.state);this.enterRule(t,56,e.RULE_in_unary_subexpr);try{switch(this.state=1249,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1247,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1248,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}list_literal(){let t,i=new Ms(this.context,this.state);this.enterRule(i,58,e.RULE_list_literal);try{this.enterOuterAlt(i,1),this.state=1251,this.match(e.LBRACE_SQUARE),this.state=1253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1252,this.expr_list()),this.state=1256,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1255,this.match(e.COMMA)),this.state=1258,this.match(e.RBRACE_SQUARE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_dict_list(){let t,i=new Ps(this.context,this.state);this.enterRule(i,60,e.RULE_expr_dict_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1260,this.expr(),this.state=1263,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1261,this.match(e.COLON),this.state=1262,this.expr()),this.state=1273,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1265,this.match(e.COMMA),this.state=1266,this.expr(),this.state=1269,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1267,this.match(e.COLON),this.state=1268,this.expr())),this.state=1275,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}dict_literal(){let t,i=new Fs(this.context,this.state);this.enterRule(i,62,e.RULE_dict_literal);try{this.enterOuterAlt(i,1),this.state=1276,this.match(e.LBRACE_CURLY),this.state=1278,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1277,this.expr_dict_list()),this.state=1281,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1280,this.match(e.COMMA)),this.state=1283,this.match(e.RBRACE_CURLY)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_struct_list(){let t=new Us(this.context,this.state);this.enterRule(t,64,e.RULE_expr_struct_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1285,this.expr(),this.state=1286,this.match(e.COLON),this.state=1287,this.expr(),this.state=1295,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1288,this.match(e.COMMA),this.state=1289,this.expr(),this.state=1290,this.match(e.COLON),this.state=1291,this.expr()),this.state=1297,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_literal(){let t,i=new Hs(this.context,this.state);this.enterRule(i,66,e.RULE_struct_literal);try{this.enterOuterAlt(i,1),this.state=1298,this.match(e.STRUCT_OPEN),this.state=1300,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1299,this.expr_struct_list()),this.state=1303,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1302,this.match(e.COMMA)),this.state=1305,this.match(e.STRUCT_CLOSE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}atom_expr(){let t=new Bs(this.context,this.state);this.enterRule(t,68,e.RULE_atom_expr);try{switch(this.state=1324,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1307,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1308,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1309,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1310,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1311,this.exists_expr();break;case 6:this.enterOuterAlt(t,6),this.state=1312,this.case_expr();break;case 7:switch(this.enterOuterAlt(t,7),this.state=1313,this.an_id_or_type(),this.state=1314,this.match(e.NAMESPACE),this.state=1317,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1315,this.id_or_type();break;case e.STRING_VALUE:this.state=1316,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 8:this.enterOuterAlt(t,8),this.state=1319,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1320,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1321,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1322,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1323,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_atom_expr(){let t=new Ws(this.context,this.state);this.enterRule(t,70,e.RULE_in_atom_expr);try{switch(this.state=1346,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1326,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1327,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1328,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1329,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1330,this.case_expr();break;case 6:switch(this.enterOuterAlt(t,6),this.state=1331,this.an_id_or_type(),this.state=1332,this.match(e.NAMESPACE),this.state=1335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1333,this.id_or_type();break;case e.STRING_VALUE:this.state=1334,this.match(e.STRING_VALUE);break;default:throw new lt(this)}break;case 7:this.enterOuterAlt(t,7),this.state=1337,this.match(e.LPAREN),this.state=1338,this.select_stmt(),this.state=1339,this.match(e.RPAREN);break;case 8:this.enterOuterAlt(t,8),this.state=1341,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1342,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1343,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1344,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1345,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cast_expr(){let t=new Vs(this.context,this.state);this.enterRule(t,72,e.RULE_cast_expr);try{this.enterOuterAlt(t,1),this.state=1348,this.match(e.CAST),this.state=1349,this.match(e.LPAREN),this.state=1350,this.expr(),this.state=1351,this.match(e.AS),this.state=1352,this.type_name_or_bind(),this.state=1353,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bitcast_expr(){let t=new zs(this.context,this.state);this.enterRule(t,74,e.RULE_bitcast_expr);try{this.enterOuterAlt(t,1),this.state=1355,this.match(e.BITCAST),this.state=1356,this.match(e.LPAREN),this.state=1357,this.expr(),this.state=1358,this.match(e.AS),this.state=1359,this.type_name_simple(),this.state=1360,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}exists_expr(){let t=new Gs(this.context,this.state);this.enterRule(t,76,e.RULE_exists_expr);try{switch(this.enterOuterAlt(t,1),this.state=1362,this.match(e.EXISTS),this.state=1363,this.match(e.LPAREN),this.state=1366,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=1364,this.select_stmt();break;case e.VALUES:this.state=1365,this.values_stmt();break;default:throw new lt(this)}this.state=1368,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}case_expr(){let t,i=new js(this.context,this.state);this.enterRule(i,78,e.RULE_case_expr);try{if(this.enterOuterAlt(i,1),1===(this.state=1370,this.match(e.CASE),this.state=1372,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1371,this.expr();this.state=1375,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1374,this.when_expr(),this.state=1377,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(319===t);this.state=1381,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=1379,this.match(e.ELSE),this.state=1380,this.expr()),this.state=1383,this.match(e.END)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda(){let t,i=new Ks(this.context,this.state);this.enterRule(i,80,e.RULE_lambda);try{if(this.enterOuterAlt(i,1),this.state=1385,this.smart_parenthesis(),this.state=1397,this.errorHandler.sync(this),t=this.tokenStream.LA(1),35===t)switch(this.state=1386,this.match(e.ARROW),this.state=1395,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=1387,this.match(e.LPAREN),this.state=1388,this.expr(),this.state=1389,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.state=1391,this.match(e.LBRACE_CURLY),this.state=1392,this.lambda_body(),this.state=1393,this.match(e.RBRACE_CURLY);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}in_expr(){let t=new Ys(this.context,this.state);this.enterRule(t,82,e.RULE_in_expr);try{this.enterOuterAlt(t,1),this.state=1399,this.in_unary_subexpr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_api_expr(){let t=new qs(this.context,this.state);this.enterRule(t,84,e.RULE_json_api_expr);try{switch(this.state=1404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.JSON_VALUE:this.enterOuterAlt(t,1),this.state=1401,this.json_value();break;case e.JSON_EXISTS:this.enterOuterAlt(t,2),this.state=1402,this.json_exists();break;case e.JSON_QUERY:this.enterOuterAlt(t,3),this.state=1403,this.json_query();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}jsonpath_spec(){let t=new $s(this.context,this.state);this.enterRule(t,86,e.RULE_jsonpath_spec);try{this.enterOuterAlt(t,1),this.state=1406,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable_name(){let t=new Qs(this.context,this.state);this.enterRule(t,88,e.RULE_json_variable_name);try{switch(this.state=1410,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1408,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1409,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable(){let t=new Xs(this.context,this.state);this.enterRule(t,90,e.RULE_json_variable);try{this.enterOuterAlt(t,1),this.state=1412,this.expr(),this.state=1413,this.match(e.AS),this.state=1414,this.json_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variables(){let t,i=new Zs(this.context,this.state);this.enterRule(i,92,e.RULE_json_variables);try{for(this.enterOuterAlt(i,1),this.state=1416,this.json_variable(),this.state=1421,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1417,this.match(e.COMMA),this.state=1418,this.json_variable(),this.state=1423,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_common_args(){let t,i=new Js(this.context,this.state);this.enterRule(i,94,e.RULE_json_common_args);try{this.enterOuterAlt(i,1),this.state=1424,this.expr(),this.state=1425,this.match(e.COMMA),this.state=1426,this.jsonpath_spec(),this.state=1429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),219===t&&(this.state=1427,this.match(e.PASSING),this.state=1428,this.json_variables())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_case_handler(){let t=new en(this.context,this.state);this.enterRule(t,96,e.RULE_json_case_handler);try{switch(this.state=1435,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ERROR:this.enterOuterAlt(t,1),this.state=1431,this.match(e.ERROR);break;case e.NULL:this.enterOuterAlt(t,2),this.state=1432,this.match(e.NULL);break;case e.DEFAULT:this.enterOuterAlt(t,3),this.state=1433,this.match(e.DEFAULT),this.state=1434,this.expr();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_value(){let t,i=new tn(this.context,this.state);this.enterRule(i,98,e.RULE_json_value);try{for(this.enterOuterAlt(i,1),this.state=1437,this.match(e.JSON_VALUE),this.state=1438,this.match(e.LPAREN),this.state=1439,this.json_common_args(),this.state=1442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=1440,this.match(e.RETURNING),this.state=1441,this.type_name_simple()),this.state=1450,this.errorHandler.sync(this),t=this.tokenStream.LA(1);97===t||120===t||201===t;)this.state=1444,this.json_case_handler(),this.state=1445,this.match(e.ON),this.state=1446,t=this.tokenStream.LA(1),114===t||120===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1452,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1453,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists_handler(){let t,i=new sn(this.context,this.state);this.enterRule(i,100,e.RULE_json_exists_handler);try{this.enterOuterAlt(i,1),this.state=1455,t=this.tokenStream.LA(1),120===t||132===t||300===t||307===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1456,this.match(e.ON),this.state=1457,this.match(e.ERROR)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists(){let t,i=new nn(this.context,this.state);this.enterRule(i,102,e.RULE_json_exists);try{this.enterOuterAlt(i,1),this.state=1459,this.match(e.JSON_EXISTS),this.state=1460,this.match(e.LPAREN),this.state=1461,this.json_common_args(),this.state=1463,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(120===t||132===t||300===t||307===t)&&(this.state=1462,this.json_exists_handler()),this.state=1465,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_wrapper(){let t,i=new rn(this.context,this.state);this.enterRule(i,104,e.RULE_json_query_wrapper);try{switch(this.state=1478,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WITHOUT:this.enterOuterAlt(i,1),this.state=1467,this.match(e.WITHOUT),this.state=1469,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1468,this.match(e.ARRAY));break;case e.WITH:this.enterOuterAlt(i,2),this.state=1471,this.match(e.WITH),this.state=1473,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(80===t||304===t)&&(this.state=1472,t=this.tokenStream.LA(1),80===t||304===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1476,this.errorHandler.sync(this),t=this.tokenStream.LA(1),48===t&&(this.state=1475,this.match(e.ARRAY));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_handler(){let t=new on(this.context,this.state);this.enterRule(t,106,e.RULE_json_query_handler);try{switch(this.state=1486,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1480,this.match(e.ERROR);break;case 2:this.enterOuterAlt(t,2),this.state=1481,this.match(e.NULL);break;case 3:this.enterOuterAlt(t,3),this.state=1482,this.match(e.EMPTY),this.state=1483,this.match(e.ARRAY);break;case 4:this.enterOuterAlt(t,4),this.state=1484,this.match(e.EMPTY),this.state=1485,this.match(e.OBJECT)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_query(){let t,i=new an(this.context,this.state);this.enterRule(i,108,e.RULE_json_query);try{if(this.enterOuterAlt(i,1),1===(this.state=1488,this.match(e.JSON_QUERY),this.state=1489,this.match(e.LPAREN),this.state=1490,this.json_common_args(),this.state=1494,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=1491,this.json_query_wrapper(),this.state=1492,this.match(e.WRAPPER)),this.state=1500,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1496,this.json_query_handler(),this.state=1497,this.match(e.ON),this.state=1498,this.match(e.EMPTY);this.state=1506,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(114===t||120===t||201===t)&&(this.state=1502,this.json_query_handler(),this.state=1503,this.match(e.ON),this.state=1504,this.match(e.ERROR)),this.state=1508,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}smart_parenthesis(){let t,i=new cn(this.context,this.state);this.enterRule(i,110,e.RULE_smart_parenthesis);try{this.enterOuterAlt(i,1),this.state=1510,this.match(e.LPAREN),this.state=1512,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1511,this.named_expr_list()),this.state=1515,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1514,this.match(e.COMMA)),this.state=1517,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_list(){let t=new ln(this.context,this.state);this.enterRule(t,112,e.RULE_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1519,this.expr(),this.state=1524,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1520,this.match(e.COMMA),this.state=1521,this.expr()),this.state=1526,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_list(){let t,i=new hn(this.context,this.state);this.enterRule(i,114,e.RULE_pure_column_list);try{for(this.enterOuterAlt(i,1),this.state=1527,this.match(e.LPAREN),this.state=1528,this.an_id(),this.state=1533,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1529,this.match(e.COMMA),this.state=1530,this.an_id(),this.state=1535,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1536,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pure_column_or_named(){let t=new dn(this.context,this.state);this.enterRule(t,116,e.RULE_pure_column_or_named);try{switch(this.state=1540,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=1538,this.bind_parameter();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=1539,this.an_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_or_named_list(){let t,i=new un(this.context,this.state);this.enterRule(i,118,e.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(i,1),this.state=1542,this.match(e.LPAREN),this.state=1543,this.pure_column_or_named(),this.state=1548,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1544,this.match(e.COMMA),this.state=1545,this.pure_column_or_named(),this.state=1550,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1551,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_name(){let t=new gn(this.context,this.state);this.enterRule(t,120,e.RULE_column_name);try{this.enterOuterAlt(t,1),this.state=1553,this.opt_id_prefix(),this.state=1554,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}without_column_name(){let t=new pn(this.context,this.state);this.enterRule(t,122,e.RULE_without_column_name);try{switch(this.state=1561,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1556,this.an_id(),this.state=1557,this.match(e.DOT),this.state=1558,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=1560,this.an_id_without()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_list(){let t,i=new mn(this.context,this.state);this.enterRule(i,124,e.RULE_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1563,this.column_name(),this.state=1568,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1564,this.match(e.COMMA),this.state=1565,this.column_name()),this.state=1570,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1572,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1571,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}without_column_list(){let t,i=new fn(this.context,this.state);this.enterRule(i,126,e.RULE_without_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1574,this.without_column_name(),this.state=1579,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1575,this.match(e.COMMA),this.state=1576,this.without_column_name()),this.state=1581,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1583,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1582,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr(){let t,i=new _n(this.context,this.state);this.enterRule(i,128,e.RULE_named_expr);try{this.enterOuterAlt(i,1),this.state=1585,this.expr(),this.state=1588,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1586,this.match(e.AS),this.state=1587,this.an_id_or_type())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr_list(){let t=new vn(this.context,this.state);this.enterRule(t,130,e.RULE_named_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1590,this.named_expr(),this.state=1595,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1591,this.match(e.COMMA),this.state=1592,this.named_expr()),this.state=1597,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}invoke_expr(){let t,i=new Cn(this.context,this.state);this.enterRule(i,132,e.RULE_invoke_expr);try{switch(this.enterOuterAlt(i,1),this.state=1598,this.match(e.LPAREN),this.state=1605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRUCT_OPEN:case e.PLUS:case e.MINUS:case e.TILDA:case e.LPAREN:case e.DOLLAR:case e.LBRACE_CURLY:case e.LBRACE_SQUARE:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FALSE:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TRUE:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:case e.BLOB:this.state=1599,this.opt_set_quantifier(),this.state=1600,this.named_expr_list(),this.state=1602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1601,this.match(e.COMMA));break;case e.ASTERISK:this.state=1604,this.match(e.ASTERISK);case e.RPAREN:}this.state=1607,this.match(e.RPAREN),this.state=1608,this.invoke_expr_tail()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}invoke_expr_tail(){let t,i=new En(this.context,this.state);this.enterRule(i,134,e.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(i,1),this.state=1612,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1610,this.null_treatment();break;case 2:this.state=1611,this.filter_clause()}this.state=1616,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=1614,this.match(e.OVER),this.state=1615,this.window_name_or_specification())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}using_call_expr(){let t=new bn(this.context,this.state);this.enterRule(t,136,e.RULE_using_call_expr);try{switch(this.enterOuterAlt(t,1),this.state=1626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1618,this.an_id_or_type(),this.state=1619,this.match(e.NAMESPACE),this.state=1620,this.an_id_or_type();break;case 2:this.state=1622,this.an_id_expr();break;case 3:this.state=1623,this.bind_parameter();break;case 4:this.state=1624,this.match(e.EXTERNAL),this.state=1625,this.match(e.FUNCTION)}this.state=1628,this.invoke_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}key_expr(){let t=new Sn(this.context,this.state);this.enterRule(t,138,e.RULE_key_expr);try{this.enterOuterAlt(t,1),this.state=1630,this.match(e.LBRACE_SQUARE),this.state=1631,this.expr(),this.state=1632,this.match(e.RBRACE_SQUARE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}when_expr(){let t=new yn(this.context,this.state);this.enterRule(t,140,e.RULE_when_expr);try{this.enterOuterAlt(t,1),this.state=1634,this.match(e.WHEN),this.state=1635,this.expr(),this.state=1636,this.match(e.THEN),this.state=1637,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}literal_value(){let t=new wn(this.context,this.state);this.enterRule(t,142,e.RULE_literal_value);try{switch(this.state=1649,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1639,this.integer();break;case e.REAL:this.enterOuterAlt(t,2),this.state=1640,this.real();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1641,this.match(e.STRING_VALUE);break;case e.BLOB:this.enterOuterAlt(t,4),this.state=1642,this.match(e.BLOB);break;case e.NULL:this.enterOuterAlt(t,5),this.state=1643,this.match(e.NULL);break;case e.CURRENT_TIME:this.enterOuterAlt(t,6),this.state=1644,this.match(e.CURRENT_TIME);break;case e.CURRENT_DATE:this.enterOuterAlt(t,7),this.state=1645,this.match(e.CURRENT_DATE);break;case e.CURRENT_TIMESTAMP:this.enterOuterAlt(t,8),this.state=1646,this.match(e.CURRENT_TIMESTAMP);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,9),this.state=1647,this.bool_value();break;case e.EMPTY_ACTION:this.enterOuterAlt(t,10),this.state=1648,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bind_parameter(){let t=new Rn(this.context,this.state);this.enterRule(t,144,e.RULE_bind_parameter);try{switch(this.enterOuterAlt(t,1),this.state=1651,this.match(e.DOLLAR),this.state=1655,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1652,this.an_id_or_type();break;case e.TRUE:this.state=1653,this.match(e.TRUE);break;case e.FALSE:this.state=1654,this.match(e.FALSE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_bind_parameter(){let t,i=new Ln(this.context,this.state);this.enterRule(i,146,e.RULE_opt_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1657,this.bind_parameter(),this.state=1659,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=1658,this.match(e.QUESTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bind_parameter_list(){let t,i=new Tn(this.context,this.state);this.enterRule(i,148,e.RULE_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1661,this.bind_parameter(),this.state=1666,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1662,this.match(e.COMMA),this.state=1663,this.bind_parameter(),this.state=1668,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter(){let t,i=new xn(this.context,this.state);this.enterRule(i,150,e.RULE_named_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1669,this.bind_parameter(),this.state=1672,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=1670,this.match(e.AS),this.state=1671,this.bind_parameter())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter_list(){let t,i=new kn(this.context,this.state);this.enterRule(i,152,e.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1674,this.named_bind_parameter(),this.state=1679,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1675,this.match(e.COMMA),this.state=1676,this.named_bind_parameter(),this.state=1681,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}signed_number(){let t,i=new An(this.context,this.state);this.enterRule(i,154,e.RULE_signed_number);try{switch(this.enterOuterAlt(i,1),this.state=1683,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(16===t||17===t)&&(this.state=1682,t=this.tokenStream.LA(1),16===t||17===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1687,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.state=1685,this.integer();break;case e.REAL:this.state=1686,this.real();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_simple(){let t=new Nn(this.context,this.state);this.enterRule(t,156,e.RULE_type_name_simple);try{this.enterOuterAlt(t,1),this.state=1689,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer_or_bind(){let t=new In(this.context,this.state);this.enterRule(t,158,e.RULE_integer_or_bind);try{switch(this.state=1693,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1691,this.integer();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1692,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tag(){let t=new On(this.context,this.state);this.enterRule(t,160,e.RULE_type_name_tag);try{switch(this.state=1698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1695,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1696,this.match(e.STRING_VALUE);break;case e.DOLLAR:this.enterOuterAlt(t,3),this.state=1697,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg(){let t=new Dn(this.context,this.state);this.enterRule(t,162,e.RULE_struct_arg);try{this.enterOuterAlt(t,1),this.state=1700,this.type_name_tag(),this.state=1701,this.match(e.COLON),this.state=1702,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg_positional(){let t,i=new Mn(this.context,this.state);this.enterRule(i,164,e.RULE_struct_arg_positional);try{switch(this.state=1716,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(i,1),this.state=1704,this.type_name_tag(),this.state=1705,this.type_name_or_bind(),this.state=1710,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=1707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=1706,this.match(e.NOT)),this.state=1709,this.match(e.NULL));break;case 2:this.enterOuterAlt(i,2),this.state=1712,this.type_name_or_bind(),this.state=1713,this.match(e.AS),this.state=1714,this.type_name_tag()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}variant_arg(){let t=new Pn(this.context,this.state);this.enterRule(t,166,e.RULE_variant_arg);try{if(this.enterOuterAlt(t,1),1===(this.state=1721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1718,this.type_name_tag(),this.state=1719,this.match(e.COLON);this.state=1723,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}callable_arg(){let t,i=new Fn(this.context,this.state);this.enterRule(i,168,e.RULE_callable_arg);try{this.enterOuterAlt(i,1),this.state=1725,this.variant_arg(),this.state=1729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),31===t&&(this.state=1726,this.match(e.LBRACE_CURLY),this.state=1727,this.match(e.AUTOMAP),this.state=1728,this.match(e.RBRACE_CURLY))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}callable_arg_list(){let t=new Un(this.context,this.state);this.enterRule(t,170,e.RULE_callable_arg_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1731,this.callable_arg(),this.state=1736,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1732,this.match(e.COMMA),this.state=1733,this.callable_arg()),this.state=1738,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_decimal(){let t=new Hn(this.context,this.state);this.enterRule(t,172,e.RULE_type_name_decimal);try{this.enterOuterAlt(t,1),this.state=1739,this.match(e.DECIMAL),this.state=1740,this.match(e.LPAREN),this.state=1741,this.integer_or_bind(),this.state=1742,this.match(e.COMMA),this.state=1743,this.integer_or_bind(),this.state=1744,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_optional(){let t=new Bn(this.context,this.state);this.enterRule(t,174,e.RULE_type_name_optional);try{this.enterOuterAlt(t,1),this.state=1746,this.match(e.OPTIONAL),this.state=1747,this.match(e.LESS),this.state=1748,this.type_name_or_bind(),this.state=1749,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tuple(){let t,i=new Wn(this.context,this.state);this.enterRule(i,176,e.RULE_type_name_tuple);try{let s;switch(this.enterOuterAlt(i,1),this.state=1751,this.match(e.TUPLE),this.state=1768,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1752,this.match(e.LESS),this.state=1764,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t||68===t||95===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&3229614081||!(t-290&-32)&&1<<t-290&67110913||!(t-326&-32)&&1<<t-326&7){for(this.state=1753,this.type_name_or_bind(),this.state=1758,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1754,this.match(e.COMMA),this.state=1755,this.type_name_or_bind()),this.state=1760,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1762,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1761,this.match(e.COMMA))}this.state=1766,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1767,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_struct(){let t,i=new Vn(this.context,this.state);this.enterRule(i,178,e.RULE_type_name_struct);try{let s;switch(this.enterOuterAlt(i,1),this.state=1770,this.match(e.STRUCT),this.state=1787,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1771,this.match(e.LESS),this.state=1783,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967231||!(t-94&-32)&&1<<t-94&4278188031||!(t-126&-32)&&1<<t-126&4294965183||!(t-158&-32)&&1<<t-158&4261412863||!(t-190&-32)&&1<<t-190&4292870143||!(t-222&-32)&&1<<t-222&4223664127||!(t-254&-32)&&1<<t-254&4261281791||!(t-286&-32)&&1<<t-286&3221176303||!(t-318&-32)&&1<<t-318&2047){for(this.state=1772,this.struct_arg(),this.state=1777,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1773,this.match(e.COMMA),this.state=1774,this.struct_arg()),this.state=1779,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1781,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1780,this.match(e.COMMA))}this.state=1785,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1786,this.match(e.NOT_EQUALS2);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_variant(){let t,i=new zn(this.context,this.state);this.enterRule(i,180,e.RULE_type_name_variant);try{let s;for(this.enterOuterAlt(i,1),this.state=1789,this.match(e.VARIANT),this.state=1790,this.match(e.LESS),this.state=1791,this.variant_arg(),this.state=1796,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1792,this.match(e.COMMA),this.state=1793,this.variant_arg()),this.state=1798,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1800,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1799,this.match(e.COMMA)),this.state=1802,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_list(){let t=new Gn(this.context,this.state);this.enterRule(t,182,e.RULE_type_name_list);try{this.enterOuterAlt(t,1),this.state=1804,this.match(e.LIST),this.state=1805,this.match(e.LESS),this.state=1806,this.type_name_or_bind(),this.state=1807,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_stream(){let t=new jn(this.context,this.state);this.enterRule(t,184,e.RULE_type_name_stream);try{this.enterOuterAlt(t,1),this.state=1809,this.match(e.STREAM),this.state=1810,this.match(e.LESS),this.state=1811,this.type_name_or_bind(),this.state=1812,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_flow(){let t=new Kn(this.context,this.state);this.enterRule(t,186,e.RULE_type_name_flow);try{this.enterOuterAlt(t,1),this.state=1814,this.match(e.FLOW),this.state=1815,this.match(e.LESS),this.state=1816,this.type_name_or_bind(),this.state=1817,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_dict(){let t=new Yn(this.context,this.state);this.enterRule(t,188,e.RULE_type_name_dict);try{this.enterOuterAlt(t,1),this.state=1819,this.match(e.DICT),this.state=1820,this.match(e.LESS),this.state=1821,this.type_name_or_bind(),this.state=1822,this.match(e.COMMA),this.state=1823,this.type_name_or_bind(),this.state=1824,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_set(){let t=new qn(this.context,this.state);this.enterRule(t,190,e.RULE_type_name_set);try{this.enterOuterAlt(t,1),this.state=1826,this.match(e.SET),this.state=1827,this.match(e.LESS),this.state=1828,this.type_name_or_bind(),this.state=1829,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_enum(){let t,i=new $n(this.context,this.state);this.enterRule(i,192,e.RULE_type_name_enum);try{let s;for(this.enterOuterAlt(i,1),this.state=1831,this.match(e.ENUM),this.state=1832,this.match(e.LESS),this.state=1833,this.type_name_tag(),this.state=1838,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1834,this.match(e.COMMA),this.state=1835,this.type_name_tag()),this.state=1840,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1842,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1841,this.match(e.COMMA)),this.state=1844,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_resource(){let t=new Qn(this.context,this.state);this.enterRule(t,194,e.RULE_type_name_resource);try{this.enterOuterAlt(t,1),this.state=1846,this.match(e.RESOURCE),this.state=1847,this.match(e.LESS),this.state=1848,this.type_name_tag(),this.state=1849,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tagged(){let t=new Xn(this.context,this.state);this.enterRule(t,196,e.RULE_type_name_tagged);try{this.enterOuterAlt(t,1),this.state=1851,this.match(e.TAGGED),this.state=1852,this.match(e.LESS),this.state=1853,this.type_name_or_bind(),this.state=1854,this.match(e.COMMA),this.state=1855,this.type_name_tag(),this.state=1856,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_callable(){let t,i=new Zn(this.context,this.state);this.enterRule(i,198,e.RULE_type_name_callable);try{this.enterOuterAlt(i,1),this.state=1858,this.match(e.CALLABLE),this.state=1859,this.match(e.LESS),this.state=1860,this.match(e.LPAREN),this.state=1862,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)&&(this.state=1861,this.callable_arg_list()),this.state=1865,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1864,this.match(e.COMMA)),this.state=1871,this.errorHandler.sync(this),t=this.tokenStream.LA(1),37===t&&(this.state=1867,this.match(e.LBRACE_SQUARE),this.state=1868,this.callable_arg_list(),this.state=1869,this.match(e.RBRACE_SQUARE)),this.state=1873,this.match(e.RPAREN),this.state=1874,this.match(e.ARROW),this.state=1875,this.type_name_or_bind(),this.state=1876,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_composite(){let t,i=new Jn(this.context,this.state);this.enterRule(i,200,e.RULE_type_name_composite);try{switch(this.enterOuterAlt(i,1),this.state=1891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.OPTIONAL:this.state=1878,this.type_name_optional();break;case e.TUPLE:this.state=1879,this.type_name_tuple();break;case e.STRUCT:this.state=1880,this.type_name_struct();break;case e.VARIANT:this.state=1881,this.type_name_variant();break;case e.LIST:this.state=1882,this.type_name_list();break;case e.STREAM:this.state=1883,this.type_name_stream();break;case e.FLOW:this.state=1884,this.type_name_flow();break;case e.DICT:this.state=1885,this.type_name_dict();break;case e.SET:this.state=1886,this.type_name_set();break;case e.ENUM:this.state=1887,this.type_name_enum();break;case e.RESOURCE:this.state=1888,this.type_name_resource();break;case e.TAGGED:this.state=1889,this.type_name_tagged();break;case e.CALLABLE:this.state=1890,this.type_name_callable();break;default:throw new lt(this)}for(this.state=1896,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1893,this.match(e.QUESTION),this.state=1898,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name(){let t,i=new er(this.context,this.state);this.enterRule(i,202,e.RULE_type_name);try{switch(this.state=1910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(i,1),this.state=1899,this.type_name_composite();break;case e.DECIMAL:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:switch(this.enterOuterAlt(i,2),this.state=1902,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DECIMAL:this.state=1900,this.type_name_decimal();break;case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1901,this.type_name_simple();break;default:throw new lt(this)}for(this.state=1907,this.errorHandler.sync(this),t=this.tokenStream.LA(1);27===t;)this.state=1904,this.match(e.QUESTION),this.state=1909,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_or_bind(){let t=new tr(this.context,this.state);this.enterRule(t,204,e.RULE_type_name_or_bind);try{switch(this.state=1914,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DECIMAL:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1912,this.type_name();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1913,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor_literal(){let t=new ir(this.context,this.state);this.enterRule(t,206,e.RULE_value_constructor_literal);try{this.enterOuterAlt(t,1),this.state=1916,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor(){let t=new sr(this.context,this.state);this.enterRule(t,208,e.RULE_value_constructor);try{switch(this.state=1941,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VARIANT:this.enterOuterAlt(t,1),this.state=1918,this.match(e.VARIANT),this.state=1919,this.match(e.LPAREN),this.state=1920,this.expr(),this.state=1921,this.match(e.COMMA),this.state=1922,this.expr(),this.state=1923,this.match(e.COMMA),this.state=1924,this.expr(),this.state=1925,this.match(e.RPAREN);break;case e.ENUM:this.enterOuterAlt(t,2),this.state=1927,this.match(e.ENUM),this.state=1928,this.match(e.LPAREN),this.state=1929,this.expr(),this.state=1930,this.match(e.COMMA),this.state=1931,this.expr(),this.state=1932,this.match(e.RPAREN);break;case e.CALLABLE:this.enterOuterAlt(t,3),this.state=1934,this.match(e.CALLABLE),this.state=1935,this.match(e.LPAREN),this.state=1936,this.expr(),this.state=1937,this.match(e.COMMA),this.state=1938,this.expr(),this.state=1939,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}declare_stmt(){let t,i=new nr(this.context,this.state);this.enterRule(i,210,e.RULE_declare_stmt);try{this.enterOuterAlt(i,1),this.state=1943,this.match(e.DECLARE),this.state=1944,this.bind_parameter(),this.state=1945,this.match(e.AS),this.state=1946,this.type_name(),this.state=1949,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=1947,this.match(e.EQUALS),this.state=1948,this.literal_value())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}module_path(){let t,i=new rr(this.context,this.state);this.enterRule(i,212,e.RULE_module_path);try{for(this.enterOuterAlt(i,1),this.state=1952,this.errorHandler.sync(this),t=this.tokenStream.LA(1),23===t&&(this.state=1951,this.match(e.DOT)),this.state=1954,this.an_id(),this.state=1959,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=1955,this.match(e.DOT),this.state=1956,this.an_id(),this.state=1961,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}import_stmt(){let t=new or(this.context,this.state);this.enterRule(t,214,e.RULE_import_stmt);try{this.enterOuterAlt(t,1),this.state=1962,this.match(e.IMPORT),this.state=1963,this.module_path(),this.state=1964,this.match(e.SYMBOLS),this.state=1965,this.named_bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}export_stmt(){let t=new ar(this.context,this.state);this.enterRule(t,216,e.RULE_export_stmt);try{this.enterOuterAlt(t,1),this.state=1967,this.match(e.EXPORT),this.state=1968,this.bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}call_action(){let t,i=new cr(this.context,this.state);this.enterRule(i,218,e.RULE_call_action);try{switch(this.enterOuterAlt(i,1),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1970,this.bind_parameter();break;case e.EMPTY_ACTION:this.state=1971,this.match(e.EMPTY_ACTION);break;default:throw new lt(this)}this.state=1974,this.match(e.LPAREN),this.state=1976,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=1975,this.expr_list()),this.state=1978,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}inline_action(){let t=new lr(this.context,this.state);this.enterRule(t,220,e.RULE_inline_action);try{this.enterOuterAlt(t,1),this.state=1980,this.match(e.BEGIN),this.state=1981,this.define_action_or_subquery_body(),this.state=1982,this.match(e.END),this.state=1983,this.match(e.DO)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}do_stmt(){let t=new hr(this.context,this.state);this.enterRule(t,222,e.RULE_do_stmt);try{switch(this.enterOuterAlt(t,1),this.state=1985,this.match(e.DO),this.state=1988,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.EMPTY_ACTION:this.state=1986,this.call_action();break;case e.BEGIN:this.state=1987,this.inline_action();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pragma_stmt(){let t,i=new dr(this.context,this.state);this.enterRule(i,224,e.RULE_pragma_stmt);try{switch(this.enterOuterAlt(i,1),this.state=1990,this.match(e.PRAGMA),this.state=1991,this.opt_id_prefix_or_type(),this.state=1992,this.an_id(),this.state=2006,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1993,this.match(e.EQUALS),this.state=1994,this.pragma_value();break;case e.LPAREN:for(this.state=1995,this.match(e.LPAREN),this.state=1996,this.pragma_value(),this.state=2001,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1997,this.match(e.COMMA),this.state=1998,this.pragma_value(),this.state=2003,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2004,this.match(e.RPAREN);case e.EOF:case e.SEMICOLON:case e.END:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pragma_value(){let t=new ur(this.context,this.state);this.enterRule(t,226,e.RULE_pragma_value);try{switch(this.state=2013,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PLUS:case e.MINUS:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:this.enterOuterAlt(t,1),this.state=2008,this.signed_number();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=2009,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2010,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2011,this.bool_value();break;case e.DOLLAR:this.enterOuterAlt(t,5),this.state=2012,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sort_specification(){let t,i=new gr(this.context,this.state);this.enterRule(i,228,e.RULE_sort_specification);try{this.enterOuterAlt(i,1),this.state=2015,this.expr(),this.state=2017,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=2016,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sort_specification_list(){let t,i=new pr(this.context,this.state);this.enterRule(i,230,e.RULE_sort_specification_list);try{for(this.enterOuterAlt(i,1),this.state=2019,this.sort_specification(),this.state=2024,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2020,this.match(e.COMMA),this.state=2021,this.sort_specification(),this.state=2026,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_stmt(){let t,i=new mr(this.context,this.state);this.enterRule(i,232,e.RULE_select_stmt);try{for(this.enterOuterAlt(i,1),this.state=2027,this.select_kind_parenthesis(),this.state=2033,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2028,this.select_op(),this.state=2029,this.select_kind_parenthesis(),this.state=2035,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_unparenthesized_stmt(){let t,i=new fr(this.context,this.state);this.enterRule(i,234,e.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(i,1),this.state=2036,this.select_kind_partial(),this.state=2042,this.errorHandler.sync(this),t=this.tokenStream.LA(1);123===t||169===t||305===t;)this.state=2037,this.select_op(),this.state=2038,this.select_kind_parenthesis(),this.state=2044,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_parenthesis(){let t=new _r(this.context,this.state);this.enterRule(t,236,e.RULE_select_kind_parenthesis);try{switch(this.state=2050,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,1),this.state=2045,this.select_kind_partial();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2046,this.match(e.LPAREN),this.state=2047,this.select_kind_partial(),this.state=2048,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}select_op(){let t,i=new vr(this.context,this.state);this.enterRule(i,238,e.RULE_select_op);try{switch(this.state=2058,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.UNION:this.enterOuterAlt(i,1),this.state=2052,this.match(e.UNION),this.state=2054,this.errorHandler.sync(this),t=this.tokenStream.LA(1),42===t&&(this.state=2053,this.match(e.ALL));break;case e.INTERSECT:this.enterOuterAlt(i,2),this.state=2056,this.match(e.INTERSECT);break;case e.EXCEPT:this.enterOuterAlt(i,3),this.state=2057,this.match(e.EXCEPT);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_partial(){let t,i=new Cr(this.context,this.state);this.enterRule(i,240,e.RULE_select_kind_partial);try{this.enterOuterAlt(i,1),this.state=2060,this.select_kind(),this.state=2067,this.errorHandler.sync(this),t=this.tokenStream.LA(1),182===t&&(this.state=2061,this.match(e.LIMIT),this.state=2062,this.expr(),this.state=2065,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(24===t||205===t)&&(this.state=2063,t=this.tokenStream.LA(1),24===t||205===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2064,this.expr()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind(){let t,i=new Er(this.context,this.state);this.enterRule(i,242,e.RULE_select_kind);try{switch(this.enterOuterAlt(i,1),this.state=2070,this.errorHandler.sync(this),t=this.tokenStream.LA(1),108===t&&(this.state=2069,this.match(e.DISCARD)),this.state=2075,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PROCESS:this.state=2072,this.process_core();break;case e.REDUCE:this.state=2073,this.reduce_core();break;case e.FROM:case e.SELECT:this.state=2074,this.select_core();break;default:throw new lt(this)}this.state=2080,this.errorHandler.sync(this),t=this.tokenStream.LA(1),170===t&&(this.state=2077,this.match(e.INTO),this.state=2078,this.match(e.RESULT),this.state=2079,this.pure_column_or_named())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}process_core(){let t,i=new br(this.context,this.state);this.enterRule(i,244,e.RULE_process_core);try{if(this.enterOuterAlt(i,1),1===(this.state=2082,this.match(e.PROCESS),this.state=2084,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2083,this.match(e.STREAM);for(this.state=2086,this.named_single_source(),this.state=2091,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2087,this.match(e.COMMA),this.state=2088,this.named_single_source(),this.state=2093,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2094,this.match(e.USING),this.state=2095,this.using_call_expr(),this.state=2098,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2096,this.match(e.AS),this.state=2097,this.an_id()),this.state=2102,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2100,this.match(e.WITH),this.state=2101,this.external_call_settings()),this.state=2105,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2104,this.where_expr()),this.state=2109,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2107,this.match(e.HAVING),this.state=2108,this.expr()),this.state=2113,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2111,this.match(e.ASSUME),this.state=2112,this.order_by_clause()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}external_call_param(){let t=new Sr(this.context,this.state);this.enterRule(t,246,e.RULE_external_call_param);try{this.enterOuterAlt(t,1),this.state=2117,this.an_id(),this.state=2118,this.match(e.EQUALS),this.state=2119,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}external_call_settings(){let t,i=new yr(this.context,this.state);this.enterRule(i,248,e.RULE_external_call_settings);try{for(this.enterOuterAlt(i,1),this.state=2121,this.external_call_param(),this.state=2126,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2122,this.match(e.COMMA),this.state=2123,this.external_call_param(),this.state=2128,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}reduce_core(){let t,i=new wr(this.context,this.state);this.enterRule(i,250,e.RULE_reduce_core);try{for(this.enterOuterAlt(i,1),this.state=2129,this.match(e.REDUCE),this.state=2130,this.named_single_source(),this.state=2135,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2131,this.match(e.COMMA),this.state=2132,this.named_single_source(),this.state=2137,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(1===(this.state=2140,this.errorHandler.sync(this),t=this.tokenStream.LA(1),229===t&&(this.state=2138,this.match(e.PRESORT),this.state=2139,this.sort_specification_list()),this.state=2142,this.match(e.ON),this.state=2143,this.column_list(),this.state=2144,this.match(e.USING),this.state=2146,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2145,this.match(e.ALL);this.state=2148,this.using_call_expr(),this.state=2151,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2149,this.match(e.AS),this.state=2150,this.an_id()),this.state=2154,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2153,this.where_expr()),this.state=2158,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2156,this.match(e.HAVING),this.state=2157,this.expr()),this.state=2162,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2160,this.match(e.ASSUME),this.state=2161,this.order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}opt_set_quantifier(){let t,i=new Rr(this.context,this.state);this.enterRule(i,252,e.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(i,1),this.state=2165,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2164,t=this.tokenStream.LA(1),42===t||109===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_core(){let t,i=new Lr(this.context,this.state);this.enterRule(i,254,e.RULE_select_core);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=2169,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2167,this.match(e.FROM),this.state=2168,this.join_source()),this.state=2171,this.match(e.SELECT),this.state=2173,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2172,this.match(e.STREAM);for(this.state=2175,this.opt_set_quantifier(),this.state=2176,this.result_column(),this.state=2181,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2177,this.match(e.COMMA),this.state=2178,this.result_column()),this.state=2183,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2185,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2184,this.match(e.COMMA)),this.state=2189,this.errorHandler.sync(this),t=this.tokenStream.LA(1),323===t&&(this.state=2187,this.match(e.WITHOUT),this.state=2188,this.without_column_list()),this.state=2193,this.errorHandler.sync(this),t=this.tokenStream.LA(1),141===t&&(this.state=2191,this.match(e.FROM),this.state=2192,this.join_source()),this.state=2196,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=2195,this.where_expr()),this.state=2199,this.errorHandler.sync(this),t=this.tokenStream.LA(1),147===t&&(this.state=2198,this.group_by_clause()),this.state=2203,this.errorHandler.sync(this),t=this.tokenStream.LA(1),151===t&&(this.state=2201,this.match(e.HAVING),this.state=2202,this.expr()),this.state=2206,this.errorHandler.sync(this),t=this.tokenStream.LA(1),321===t&&(this.state=2205,this.window_clause()),this.state=2209,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(51===t||213===t)&&(this.state=2208,this.ext_order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_recognition_clause(){let t,i=new Tr(this.context,this.state);this.enterRule(i,256,e.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(i,1),this.state=2211,this.match(e.MATCH_RECOGNIZE),this.state=2212,this.match(e.LPAREN),this.state=2214,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2213,this.window_partition_clause()),this.state=2217,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=2216,this.order_by_clause()),this.state=2220,this.errorHandler.sync(this),t=this.tokenStream.LA(1),190===t&&(this.state=2219,this.row_pattern_measures()),this.state=2223,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(42===t||208===t)&&(this.state=2222,this.row_pattern_rows_per_match()),this.state=2225,this.row_pattern_common_syntax(),this.state=2226,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_rows_per_match(){let t,i=new xr(this.context,this.state);this.enterRule(i,258,e.RULE_row_pattern_rows_per_match);try{switch(this.state=2239,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ONE:this.enterOuterAlt(i,1),this.state=2228,this.match(e.ONE),this.state=2229,this.match(e.ROW),this.state=2230,this.match(e.PER),this.state=2231,this.match(e.MATCH);break;case e.ALL:this.enterOuterAlt(i,2),this.state=2232,this.match(e.ALL),this.state=2233,this.match(e.ROWS),this.state=2234,this.match(e.PER),this.state=2235,this.match(e.MATCH),this.state=2237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(206===t||273===t||322===t)&&(this.state=2236,this.row_pattern_empty_match_handling());break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_empty_match_handling(){let t=new kr(this.context,this.state);this.enterRule(t,260,e.RULE_row_pattern_empty_match_handling);try{switch(this.state=2250,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SHOW:this.enterOuterAlt(t,1),this.state=2241,this.match(e.SHOW),this.state=2242,this.match(e.EMPTY),this.state=2243,this.match(e.MATCHES);break;case e.OMIT:this.enterOuterAlt(t,2),this.state=2244,this.match(e.OMIT),this.state=2245,this.match(e.EMPTY),this.state=2246,this.match(e.MATCHES);break;case e.WITH:this.enterOuterAlt(t,3),this.state=2247,this.match(e.WITH),this.state=2248,this.match(e.UNMATCHED),this.state=2249,this.match(e.ROWS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measures(){let t=new Ar(this.context,this.state);this.enterRule(t,262,e.RULE_row_pattern_measures);try{this.enterOuterAlt(t,1),this.state=2252,this.match(e.MEASURES),this.state=2253,this.row_pattern_measure_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measure_list(){let t,i=new Nr(this.context,this.state);this.enterRule(i,264,e.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(i,1),this.state=2255,this.row_pattern_measure_definition(),this.state=2260,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2256,this.match(e.COMMA),this.state=2257,this.row_pattern_measure_definition(),this.state=2262,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_measure_definition(){let t=new Ir(this.context,this.state);this.enterRule(t,266,e.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(t,1),this.state=2263,this.expr(),this.state=2264,this.match(e.AS),this.state=2265,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_common_syntax(){let t,i=new Or(this.context,this.state);this.enterRule(i,268,e.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(i,1),this.state=2270,this.errorHandler.sync(this),t=this.tokenStream.LA(1),41===t&&(this.state=2267,this.match(e.AFTER),this.state=2268,this.match(e.MATCH),this.state=2269,this.row_pattern_skip_to()),this.state=2273,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(164===t||268===t)&&(this.state=2272,this.row_pattern_initial_or_seek()),this.state=2275,this.match(e.PATTERN),this.state=2276,this.match(e.LPAREN),this.state=2277,this.row_pattern(),this.state=2278,this.match(e.RPAREN),this.state=2280,this.errorHandler.sync(this),t=this.tokenStream.LA(1),281===t&&(this.state=2279,this.row_pattern_subset_clause()),this.state=2282,this.match(e.DEFINE),this.state=2283,this.row_pattern_definition_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_skip_to(){let t=new Dr(this.context,this.state);this.enterRule(t,270,e.RULE_row_pattern_skip_to);try{switch(this.state=2304,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2285,this.match(e.TSKIP),this.state=2286,this.match(e.TO),this.state=2287,this.match(e.NEXT),this.state=2288,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=2289,this.match(e.TSKIP),this.state=2290,this.match(e.PAST),this.state=2291,this.match(e.LAST),this.state=2292,this.match(e.ROW);break;case 3:this.enterOuterAlt(t,3),this.state=2293,this.match(e.TSKIP),this.state=2294,this.match(e.TO),this.state=2295,this.match(e.FIRST),this.state=2296,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(t,4),this.state=2297,this.match(e.TSKIP),this.state=2298,this.match(e.TO),this.state=2299,this.match(e.LAST),this.state=2300,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(t,5),this.state=2301,this.match(e.TSKIP),this.state=2302,this.match(e.TO),this.state=2303,this.row_pattern_skip_to_variable_name()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_skip_to_variable_name(){let t=new Mr(this.context,this.state);this.enterRule(t,272,e.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(t,1),this.state=2306,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_initial_or_seek(){let t,i=new Pr(this.context,this.state);this.enterRule(i,274,e.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(i,1),this.state=2308,t=this.tokenStream.LA(1),164===t||268===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern(){let t,i=new Fr(this.context,this.state);this.enterRule(i,276,e.RULE_row_pattern);try{for(this.enterOuterAlt(i,1),this.state=2310,this.row_pattern_term(),this.state=2315,this.errorHandler.sync(this),t=this.tokenStream.LA(1);12===t;)this.state=2311,this.match(e.PIPE),this.state=2312,this.row_pattern_term(),this.state=2317,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_term(){let t,i=new Ur(this.context,this.state);this.enterRule(i,278,e.RULE_row_pattern_term);try{this.enterOuterAlt(i,1),this.state=2319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=2318,this.row_pattern_factor(),this.state=2321,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_factor(){let t=new Hr(this.context,this.state);this.enterRule(t,280,e.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(t,1),this.state=2323,this.row_pattern_primary(),this.state=2325,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2324,this.row_pattern_quantifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_quantifier(){let t,i=new Br(this.context,this.state);this.enterRule(i,282,e.RULE_row_pattern_quantifier);try{switch(this.state=2355,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(i,1),this.state=2327,this.match(e.ASTERISK),this.state=2329,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2328,this.match(e.QUESTION));break;case 2:this.enterOuterAlt(i,2),this.state=2331,this.match(e.PLUS),this.state=2333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2332,this.match(e.QUESTION));break;case 3:this.enterOuterAlt(i,3),this.state=2335,this.match(e.QUESTION),this.state=2337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2336,this.match(e.QUESTION));break;case 4:this.enterOuterAlt(i,4),this.state=2339,this.match(e.LBRACE_CURLY),this.state=2341,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2340,this.integer()),this.state=2343,this.match(e.COMMA),this.state=2345,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(329===t||330===t)&&(this.state=2344,this.integer()),this.state=2347,this.match(e.RBRACE_CURLY),this.state=2349,this.errorHandler.sync(this),t=this.tokenStream.LA(1),27===t&&(this.state=2348,this.match(e.QUESTION));break;case 5:this.enterOuterAlt(i,5),this.state=2351,this.match(e.LBRACE_CURLY),this.state=2352,this.integer(),this.state=2353,this.match(e.RBRACE_CURLY)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary(){let t,i=new Wr(this.context,this.state);this.enterRule(i,284,e.RULE_row_pattern_primary);try{switch(this.state=2372,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2357,this.row_pattern_primary_variable_name();break;case e.DOLLAR:this.enterOuterAlt(i,2),this.state=2358,this.match(e.DOLLAR);break;case e.CARET:this.enterOuterAlt(i,3),this.state=2359,this.match(e.CARET);break;case e.LPAREN:this.enterOuterAlt(i,4),this.state=2360,this.match(e.LPAREN),this.state=2362,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-25&-32)&&1<<t-25&353||224===t||327===t||328===t)&&(this.state=2361,this.row_pattern()),this.state=2364,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.enterOuterAlt(i,5),this.state=2365,this.match(e.LBRACE_CURLY),this.state=2366,this.match(e.MINUS),this.state=2367,this.row_pattern(),this.state=2368,this.match(e.MINUS),this.state=2369,this.match(e.RBRACE_CURLY);break;case e.PERMUTE:this.enterOuterAlt(i,6),this.state=2371,this.row_pattern_permute();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary_variable_name(){let t=new Vr(this.context,this.state);this.enterRule(t,286,e.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(t,1),this.state=2374,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_permute(){let t,i=new zr(this.context,this.state);this.enterRule(i,288,e.RULE_row_pattern_permute);try{for(this.enterOuterAlt(i,1),this.state=2376,this.match(e.PERMUTE),this.state=2377,this.match(e.LPAREN),this.state=2378,this.row_pattern(),this.state=2383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2379,this.match(e.COMMA),this.state=2380,this.row_pattern(),this.state=2385,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2386,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_clause(){let t=new Gr(this.context,this.state);this.enterRule(t,290,e.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(t,1),this.state=2388,this.match(e.SUBSET),this.state=2389,this.row_pattern_subset_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_list(){let t,i=new jr(this.context,this.state);this.enterRule(i,292,e.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(i,1),this.state=2391,this.row_pattern_subset_item(),this.state=2396,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2392,this.match(e.COMMA),this.state=2393,this.row_pattern_subset_item(),this.state=2398,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_item(){let t=new Kr(this.context,this.state);this.enterRule(t,294,e.RULE_row_pattern_subset_item);try{this.enterOuterAlt(t,1),this.state=2399,this.row_pattern_subset_item_variable_name(),this.state=2400,this.match(e.EQUALS),this.state=2401,this.match(e.LPAREN),this.state=2402,this.row_pattern_subset_rhs(),this.state=2403,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_item_variable_name(){let t=new Yr(this.context,this.state);this.enterRule(t,296,e.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(t,1),this.state=2405,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_rhs(){let t,i=new qr(this.context,this.state);this.enterRule(i,298,e.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(i,1),this.state=2407,this.row_pattern_subset_rhs_variable_name(),this.state=2412,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2408,this.match(e.COMMA),this.state=2409,this.row_pattern_subset_rhs_variable_name(),this.state=2414,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_rhs_variable_name(){let t=new $r(this.context,this.state);this.enterRule(t,300,e.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(t,1),this.state=2415,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_list(){let t,i=new Qr(this.context,this.state);this.enterRule(i,302,e.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(i,1),this.state=2417,this.row_pattern_definition(),this.state=2422,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2418,this.match(e.COMMA),this.state=2419,this.row_pattern_definition(),this.state=2424,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_definition(){let t=new Xr(this.context,this.state);this.enterRule(t,304,e.RULE_row_pattern_definition);try{this.enterOuterAlt(t,1),this.state=2425,this.row_pattern_definition_variable_name(),this.state=2426,this.match(e.AS),this.state=2427,this.row_pattern_definition_search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_variable_name(){let t=new Zr(this.context,this.state);this.enterRule(t,306,e.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(t,1),this.state=2429,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_search_condition(){let t=new Jr(this.context,this.state);this.enterRule(t,308,e.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(t,1),this.state=2431,this.search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}search_condition(){let t=new eo(this.context,this.state);this.enterRule(t,310,e.RULE_search_condition);try{this.enterOuterAlt(t,1),this.state=2433,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_variable_name(){let t=new to(this.context,this.state);this.enterRule(t,312,e.RULE_row_pattern_variable_name);try{this.enterOuterAlt(t,1),this.state=2435,this.identifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}order_by_clause(){let t=new io(this.context,this.state);this.enterRule(t,314,e.RULE_order_by_clause);try{this.enterOuterAlt(t,1),this.state=2437,this.match(e.ORDER),this.state=2438,this.match(e.BY),this.state=2439,this.sort_specification_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ext_order_by_clause(){let t,i=new so(this.context,this.state);this.enterRule(i,316,e.RULE_ext_order_by_clause);try{this.enterOuterAlt(i,1),this.state=2442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2441,this.match(e.ASSUME)),this.state=2444,this.order_by_clause()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}group_by_clause(){let t,i=new no(this.context,this.state);this.enterRule(i,318,e.RULE_group_by_clause);try{this.enterOuterAlt(i,1),this.state=2446,this.match(e.GROUP),this.state=2448,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=2447,this.match(e.COMPACT)),this.state=2450,this.match(e.BY),this.state=2451,this.opt_set_quantifier(),this.state=2452,this.grouping_element_list(),this.state=2455,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2453,this.match(e.WITH),this.state=2454,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element_list(){let t,i=new ro(this.context,this.state);this.enterRule(i,320,e.RULE_grouping_element_list);try{for(this.enterOuterAlt(i,1),this.state=2457,this.grouping_element(),this.state=2462,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2458,this.match(e.COMMA),this.state=2459,this.grouping_element(),this.state=2464,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element(){let t=new oo(this.context,this.state);this.enterRule(t,322,e.RULE_grouping_element);try{switch(this.state=2470,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2465,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(t,2),this.state=2466,this.rollup_list();break;case 3:this.enterOuterAlt(t,3),this.state=2467,this.cube_list();break;case 4:this.enterOuterAlt(t,4),this.state=2468,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(t,5),this.state=2469,this.hopping_window_specification()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set(){let t=new ao(this.context,this.state);this.enterRule(t,324,e.RULE_ordinary_grouping_set);try{this.enterOuterAlt(t,1),this.state=2472,this.named_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set_list(){let t,i=new co(this.context,this.state);this.enterRule(i,326,e.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(i,1),this.state=2474,this.ordinary_grouping_set(),this.state=2479,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2475,this.match(e.COMMA),this.state=2476,this.ordinary_grouping_set(),this.state=2481,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}rollup_list(){let t=new lo(this.context,this.state);this.enterRule(t,328,e.RULE_rollup_list);try{this.enterOuterAlt(t,1),this.state=2482,this.match(e.ROLLUP),this.state=2483,this.match(e.LPAREN),this.state=2484,this.ordinary_grouping_set_list(),this.state=2485,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cube_list(){let t=new ho(this.context,this.state);this.enterRule(t,330,e.RULE_cube_list);try{this.enterOuterAlt(t,1),this.state=2487,this.match(e.CUBE),this.state=2488,this.match(e.LPAREN),this.state=2489,this.ordinary_grouping_set_list(),this.state=2490,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}grouping_sets_specification(){let t=new uo(this.context,this.state);this.enterRule(t,332,e.RULE_grouping_sets_specification);try{this.enterOuterAlt(t,1),this.state=2492,this.match(e.GROUPING),this.state=2493,this.match(e.SETS),this.state=2494,this.match(e.LPAREN),this.state=2495,this.grouping_element_list(),this.state=2496,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}hopping_window_specification(){let t=new go(this.context,this.state);this.enterRule(t,334,e.RULE_hopping_window_specification);try{this.enterOuterAlt(t,1),this.state=2498,this.match(e.HOP),this.state=2499,this.match(e.LPAREN),this.state=2500,this.expr(),this.state=2501,this.match(e.COMMA),this.state=2502,this.expr(),this.state=2503,this.match(e.COMMA),this.state=2504,this.expr(),this.state=2505,this.match(e.COMMA),this.state=2506,this.expr(),this.state=2507,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}result_column(){let t=new po(this.context,this.state);this.enterRule(t,336,e.RULE_result_column);try{switch(this.state=2518,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2509,this.opt_id_prefix(),this.state=2510,this.match(e.ASTERISK);break;case 2:switch(this.enterOuterAlt(t,2),this.state=2512,this.expr(),this.state=2516,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2513,this.match(e.AS),this.state=2514,this.an_id_or_type();break;case 2:this.state=2515,this.an_id_as_compat()}}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_source(){let t,i=new mo(this.context,this.state);this.enterRule(i,338,e.RULE_join_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2520,this.match(e.ANY);for(this.state=2523,this.flatten_source(),this.state=2534,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t||87===t||125===t||142===t||!(t-166&-32)&&1<<t-166&536879233||215===t||258===t;){if(1===(this.state=2524,this.join_op(),this.state=2526,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2525,this.match(e.ANY);this.state=2528,this.flatten_source(),this.state=2530,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||313===t)&&(this.state=2529,this.join_constraint()),this.state=2536,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_column(){let t,i=new fo(this.context,this.state);this.enterRule(i,340,e.RULE_named_column);try{this.enterOuterAlt(i,1),this.state=2537,this.column_name(),this.state=2540,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2538,this.match(e.AS),this.state=2539,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_by_arg(){let t,i=new _o(this.context,this.state);this.enterRule(i,342,e.RULE_flatten_by_arg);try{switch(this.state=2550,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2542,this.named_column();break;case e.LPAREN:this.enterOuterAlt(i,2),this.state=2543,this.match(e.LPAREN),this.state=2544,this.named_expr_list(),this.state=2546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2545,this.match(e.COMMA)),this.state=2548,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_source(){let t,i=new vo(this.context,this.state);this.enterRule(i,344,e.RULE_flatten_source);try{if(this.enterOuterAlt(i,1),this.state=2552,this.named_single_source(),this.state=2562,this.errorHandler.sync(this),t=this.tokenStream.LA(1),136===t)switch(this.state=2553,this.match(e.FLATTEN),this.state=2560,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.BY:case e.DICT:case e.LIST:case e.OPTIONAL:this.state=2555,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(105===t||183===t||211===t)&&(this.state=2554,t=this.tokenStream.LA(1),105===t||183===t||211===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2557,this.match(e.BY),this.state=2558,this.flatten_by_arg();break;case e.COLUMNS:this.state=2559,this.match(e.COLUMNS);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_single_source(){let t,i=new Co(this.context,this.state);this.enterRule(i,346,e.RULE_named_single_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2564,this.single_source(),this.state=2566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2565,this.row_pattern_recognition_clause();if(1===(this.state=2576,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.AS:this.state=2568,this.match(e.AS),this.state=2569,this.an_id();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=2570,this.an_id_as_compat();break;default:throw new lt(this)}this.state=2574,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2573,this.pure_column_list())}switch(this.state=2580,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SAMPLE:this.state=2578,this.sample_clause();break;case e.TABLESAMPLE:this.state=2579,this.tablesample_clause();case e.EOF:case e.SEMICOLON:case e.COMMA:case e.RPAREN:case e.ASSUME:case e.CROSS:case e.END:case e.EXCEPT:case e.EXCLUSION:case e.FLATTEN:case e.FULL:case e.GROUP:case e.HAVING:case e.INNER:case e.INTERSECT:case e.INTO:case e.JOIN:case e.LEFT:case e.LIMIT:case e.NATURAL:case e.ON:case e.ORDER:case e.OUTER:case e.PRESORT:case e.RETURNING:case e.RIGHT:case e.SELECT:case e.UNION:case e.USING:case e.WHERE:case e.WINDOW:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}single_source(){let t=new Eo(this.context,this.state);this.enterRule(t,348,e.RULE_single_source);try{switch(this.state=2591,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2582,this.table_ref();break;case 2:this.enterOuterAlt(t,2),this.state=2583,this.match(e.LPAREN),this.state=2584,this.select_stmt(),this.state=2585,this.match(e.RPAREN);break;case 3:this.enterOuterAlt(t,3),this.state=2587,this.match(e.LPAREN),this.state=2588,this.values_stmt(),this.state=2589,this.match(e.RPAREN)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sample_clause(){let t=new bo(this.context,this.state);this.enterRule(t,350,e.RULE_sample_clause);try{this.enterOuterAlt(t,1),this.state=2593,this.match(e.SAMPLE),this.state=2594,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}tablesample_clause(){let t,i=new So(this.context,this.state);this.enterRule(i,352,e.RULE_tablesample_clause);try{this.enterOuterAlt(i,1),this.state=2596,this.match(e.TABLESAMPLE),this.state=2597,this.sampling_mode(),this.state=2598,this.match(e.LPAREN),this.state=2599,this.expr(),this.state=2600,this.match(e.RPAREN),this.state=2602,this.errorHandler.sync(this),t=this.tokenStream.LA(1),244===t&&(this.state=2601,this.repeatable_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sampling_mode(){let t,i=new yo(this.context,this.state);this.enterRule(i,354,e.RULE_sampling_mode);try{this.enterOuterAlt(i,1),this.state=2604,t=this.tokenStream.LA(1),64===t||285===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}repeatable_clause(){let t=new wo(this.context,this.state);this.enterRule(t,356,e.RULE_repeatable_clause);try{this.enterOuterAlt(t,1),this.state=2606,this.match(e.REPEATABLE),this.state=2607,this.match(e.LPAREN),this.state=2608,this.expr(),this.state=2609,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_op(){let t,i=new Ro(this.context,this.state);this.enterRule(i,358,e.RULE_join_op);try{switch(this.state=2635,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.COMMA:this.enterOuterAlt(i,1),this.state=2611,this.match(e.COMMA);break;case e.CROSS:case e.EXCLUSION:case e.FULL:case e.INNER:case e.JOIN:case e.LEFT:case e.NATURAL:case e.OUTER:case e.RIGHT:switch(this.enterOuterAlt(i,2),this.state=2613,this.errorHandler.sync(this),t=this.tokenStream.LA(1),195===t&&(this.state=2612,this.match(e.NATURAL)),this.state=2632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EXCLUSION:case e.FULL:case e.JOIN:case e.LEFT:case e.OUTER:case e.RIGHT:switch(this.state=2625,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LEFT:this.state=2615,this.match(e.LEFT),this.state=2617,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2616,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.RIGHT:this.state=2619,this.match(e.RIGHT),this.state=2621,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(209===t||270===t)&&(this.state=2620,t=this.tokenStream.LA(1),209===t||270===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.EXCLUSION:this.state=2623,this.match(e.EXCLUSION);break;case e.FULL:this.state=2624,this.match(e.FULL);case e.JOIN:case e.OUTER:}this.state=2628,this.errorHandler.sync(this),t=this.tokenStream.LA(1),215===t&&(this.state=2627,this.match(e.OUTER));break;case e.INNER:this.state=2630,this.match(e.INNER);break;case e.CROSS:this.state=2631,this.match(e.CROSS);break;default:throw new lt(this)}this.state=2634,this.match(e.JOIN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}join_constraint(){let t=new Lo(this.context,this.state);this.enterRule(t,360,e.RULE_join_constraint);try{switch(this.state=2641,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ON:this.enterOuterAlt(t,1),this.state=2637,this.match(e.ON),this.state=2638,this.expr();break;case e.USING:this.enterOuterAlt(t,2),this.state=2639,this.match(e.USING),this.state=2640,this.pure_column_or_named_list();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}returning_columns_list(){let t,i=new To(this.context,this.state);this.enterRule(i,362,e.RULE_returning_columns_list);try{switch(this.enterOuterAlt(i,1),this.state=2643,this.match(e.RETURNING),this.state=2653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ASTERISK:this.state=2644,this.match(e.ASTERISK);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:for(this.state=2645,this.an_id(),this.state=2650,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2646,this.match(e.COMMA),this.state=2647,this.an_id(),this.state=2652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt(){let t,i=new xo(this.context,this.state);this.enterRule(i,364,e.RULE_into_table_stmt);try{switch(this.enterOuterAlt(i,1),this.state=2667,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2655,this.match(e.INSERT);break;case 2:this.state=2656,this.match(e.INSERT),this.state=2657,this.match(e.OR),this.state=2658,this.match(e.ABORT);break;case 3:this.state=2659,this.match(e.INSERT),this.state=2660,this.match(e.OR),this.state=2661,this.match(e.REVERT);break;case 4:this.state=2662,this.match(e.INSERT),this.state=2663,this.match(e.OR),this.state=2664,this.match(e.IGNORE);break;case 5:this.state=2665,this.match(e.UPSERT);break;case 6:this.state=2666,this.match(e.REPLACE)}this.state=2669,this.match(e.INTO),this.state=2670,this.into_simple_table_ref(),this.state=2671,this.into_values_source(),this.state=2673,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=2672,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt_yq(){let t=new ko(this.context,this.state);this.enterRule(t,366,e.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(t,1),this.state=2686,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2675,this.match(e.INSERT);break;case 2:this.state=2676,this.match(e.INSERT),this.state=2677,this.match(e.OR),this.state=2678,this.match(e.ABORT);break;case 3:this.state=2679,this.match(e.INSERT),this.state=2680,this.match(e.OR),this.state=2681,this.match(e.REVERT);break;case 4:this.state=2682,this.match(e.INSERT),this.state=2683,this.match(e.OR),this.state=2684,this.match(e.IGNORE);break;case 5:this.state=2685,this.match(e.REPLACE)}this.state=2688,this.match(e.INTO),this.state=2689,this.into_simple_table_ref(),this.state=2690,this.into_values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}into_values_source(){let t=new Ao(this.context,this.state);this.enterRule(t,368,e.RULE_into_values_source);try{switch(this.state=2698,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:case e.VALUES:if(this.enterOuterAlt(t,1),1===(this.state=2693,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2692,this.pure_column_list();this.state=2695,this.values_source();break;case e.DEFAULT:this.enterOuterAlt(t,2),this.state=2696,this.match(e.DEFAULT),this.state=2697,this.match(e.VALUES);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_stmt(){let t=new No(this.context,this.state);this.enterRule(t,370,e.RULE_values_stmt);try{this.enterOuterAlt(t,1),this.state=2700,this.match(e.VALUES),this.state=2701,this.values_source_row_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source(){let t=new Io(this.context,this.state);this.enterRule(t,372,e.RULE_values_source);try{switch(this.state=2705,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VALUES:this.enterOuterAlt(t,1),this.state=2703,this.values_stmt();break;case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,2),this.state=2704,this.select_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source_row_list(){let t,i=new Oo(this.context,this.state);this.enterRule(i,374,e.RULE_values_source_row_list);try{for(this.enterOuterAlt(i,1),this.state=2707,this.values_source_row(),this.state=2712,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2708,this.match(e.COMMA),this.state=2709,this.values_source_row(),this.state=2714,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}values_source_row(){let t=new Do(this.context,this.state);this.enterRule(t,376,e.RULE_values_source_row);try{this.enterOuterAlt(t,1),this.state=2715,this.match(e.LPAREN),this.state=2716,this.expr_list(),this.state=2717,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_values_source(){let t=new Mo(this.context,this.state);this.enterRule(t,378,e.RULE_simple_values_source);try{switch(this.state=2721,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2719,this.expr_list();break;case 2:this.enterOuterAlt(t,2),this.state=2720,this.select_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_external_data_source_stmt(){let t,i=new Po(this.context,this.state);this.enterRule(i,380,e.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2723,this.match(e.CREATE),this.state=2726,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2724,this.match(e.OR),this.state=2725,this.match(e.REPLACE)),this.state=2728,this.match(e.EXTERNAL),this.state=2729,this.match(e.DATA),this.state=2730,this.match(e.SOURCE),this.state=2734,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2731,this.match(e.IF),this.state=2732,this.match(e.NOT),this.state=2733,this.match(e.EXISTS);this.state=2736,this.object_ref(),this.state=2737,this.with_table_settings()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_stmt(){let t,i=new Fo(this.context,this.state);this.enterRule(i,382,e.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(i,1),this.state=2739,this.match(e.ALTER),this.state=2740,this.match(e.EXTERNAL),this.state=2741,this.match(e.DATA),this.state=2742,this.match(e.SOURCE),this.state=2743,this.object_ref(),this.state=2744,this.alter_external_data_source_action(),this.state=2749,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2745,this.match(e.COMMA),this.state=2746,this.alter_external_data_source_action(),this.state=2751,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_action(){let t=new Uo(this.context,this.state);this.enterRule(t,384,e.RULE_alter_external_data_source_action);try{switch(this.state=2755,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2752,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=2753,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=2754,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_external_data_source_stmt(){let t=new Ho(this.context,this.state);this.enterRule(t,386,e.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2757,this.match(e.DROP),this.state=2758,this.match(e.EXTERNAL),this.state=2759,this.match(e.DATA),this.state=2760,this.match(e.SOURCE),this.state=2763,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2761,this.match(e.IF),this.state=2762,this.match(e.EXISTS);this.state=2765,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_view_stmt(){let t,i=new Bo(this.context,this.state);this.enterRule(i,388,e.RULE_create_view_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2767,this.match(e.CREATE),this.state=2768,this.match(e.VIEW),this.state=2772,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2769,this.match(e.IF),this.state=2770,this.match(e.NOT),this.state=2771,this.match(e.EXISTS);this.state=2774,this.object_ref(),this.state=2776,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2775,this.create_object_features()),this.state=2778,this.match(e.AS),this.state=2779,this.select_stmt()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_view_stmt(){let t=new Wo(this.context,this.state);this.enterRule(t,390,e.RULE_drop_view_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2781,this.match(e.DROP),this.state=2782,this.match(e.VIEW),this.state=2785,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2783,this.match(e.IF),this.state=2784,this.match(e.EXISTS);this.state=2787,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}upsert_object_stmt(){let t,i=new Vo(this.context,this.state);this.enterRule(i,392,e.RULE_upsert_object_stmt);try{this.enterOuterAlt(i,1),this.state=2789,this.match(e.UPSERT),this.state=2790,this.match(e.OBJECT),this.state=2791,this.object_ref(),this.state=2792,this.match(e.LPAREN),this.state=2793,this.match(e.TYPE),this.state=2794,this.object_type_ref(),this.state=2795,this.match(e.RPAREN),this.state=2797,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2796,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_stmt(){let t,i=new zo(this.context,this.state);this.enterRule(i,394,e.RULE_create_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2799,this.match(e.CREATE),this.state=2800,this.match(e.OBJECT),this.state=2804,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2801,this.match(e.IF),this.state=2802,this.match(e.NOT),this.state=2803,this.match(e.EXISTS);this.state=2806,this.object_ref(),this.state=2807,this.match(e.LPAREN),this.state=2808,this.match(e.TYPE),this.state=2809,this.object_type_ref(),this.state=2810,this.match(e.RPAREN),this.state=2812,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2811,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_features(){let t=new Go(this.context,this.state);this.enterRule(t,396,e.RULE_create_object_features);try{this.enterOuterAlt(t,1),this.state=2814,this.match(e.WITH),this.state=2815,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_stmt(){let t=new jo(this.context,this.state);this.enterRule(t,398,e.RULE_alter_object_stmt);try{this.enterOuterAlt(t,1),this.state=2817,this.match(e.ALTER),this.state=2818,this.match(e.OBJECT),this.state=2819,this.object_ref(),this.state=2820,this.match(e.LPAREN),this.state=2821,this.match(e.TYPE),this.state=2822,this.object_type_ref(),this.state=2823,this.match(e.RPAREN),this.state=2824,this.alter_object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_features(){let t=new Ko(this.context,this.state);this.enterRule(t,400,e.RULE_alter_object_features);try{this.enterOuterAlt(t,1),this.state=2826,this.match(e.SET),this.state=2827,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_object_stmt(){let t,i=new Yo(this.context,this.state);this.enterRule(i,402,e.RULE_drop_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2829,this.match(e.DROP),this.state=2830,this.match(e.OBJECT),this.state=2833,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2831,this.match(e.IF),this.state=2832,this.match(e.EXISTS);this.state=2835,this.object_ref(),this.state=2836,this.match(e.LPAREN),this.state=2837,this.match(e.TYPE),this.state=2838,this.object_type_ref(),this.state=2839,this.match(e.RPAREN),this.state=2841,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2840,this.drop_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_object_features(){let t=new qo(this.context,this.state);this.enterRule(t,404,e.RULE_drop_object_features);try{this.enterOuterAlt(t,1),this.state=2843,this.match(e.WITH),this.state=2844,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_value(){let t=new $o(this.context,this.state);this.enterRule(t,406,e.RULE_object_feature_value);try{switch(this.state=2850,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=2846,this.id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=2847,this.bind_parameter();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2848,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2849,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_kv(){let t=new Qo(this.context,this.state);this.enterRule(t,408,e.RULE_object_feature_kv);try{this.enterOuterAlt(t,1),this.state=2852,this.an_id_or_type(),this.state=2853,this.match(e.EQUALS),this.state=2854,this.object_feature_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_flag(){let t=new Xo(this.context,this.state);this.enterRule(t,410,e.RULE_object_feature_flag);try{this.enterOuterAlt(t,1),this.state=2856,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature(){let t=new Zo(this.context,this.state);this.enterRule(t,412,e.RULE_object_feature);try{switch(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2858,this.object_feature_kv();break;case 2:this.enterOuterAlt(t,2),this.state=2859,this.object_feature_flag()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_features(){let t,i=new Jo(this.context,this.state);this.enterRule(i,414,e.RULE_object_features);try{switch(this.state=2874,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2862,this.object_feature();break;case e.LPAREN:for(this.enterOuterAlt(i,2),this.state=2863,this.match(e.LPAREN),this.state=2864,this.object_feature(),this.state=2869,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2865,this.match(e.COMMA),this.state=2866,this.object_feature(),this.state=2871,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2872,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_type_ref(){let t=new ea(this.context,this.state);this.enterRule(t,416,e.RULE_object_type_ref);try{this.enterOuterAlt(t,1),this.state=2876,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_table_stmt(){let t,i=new ta(this.context,this.state);this.enterRule(i,418,e.RULE_create_table_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=2878,this.match(e.CREATE),this.state=2881,this.errorHandler.sync(this),t=this.tokenStream.LA(1),212===t&&(this.state=2879,this.match(e.OR),this.state=2880,this.match(e.REPLACE)),this.state=2891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=2883,this.match(e.TABLE);break;case e.TABLESTORE:this.state=2884,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=2885,this.match(e.EXTERNAL),this.state=2886,this.match(e.TABLE);break;case e.TEMP:this.state=2887,this.match(e.TEMP),this.state=2888,this.match(e.TABLE);break;case e.TEMPORARY:this.state=2889,this.match(e.TEMPORARY),this.state=2890,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=2896,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2893,this.match(e.IF),this.state=2894,this.match(e.NOT),this.state=2895,this.match(e.EXISTS);for(this.state=2898,this.simple_table_ref(),this.state=2899,this.match(e.LPAREN),this.state=2900,this.create_table_entry(),this.state=2905,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2901,this.match(e.COMMA),this.state=2902,this.create_table_entry()),this.state=2907,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2909,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=2908,this.match(e.COMMA)),this.state=2911,this.match(e.RPAREN),this.state=2913,this.errorHandler.sync(this),t=this.tokenStream.LA(1),163===t&&(this.state=2912,this.table_inherits()),this.state=2916,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=2915,this.table_partition_by()),this.state=2919,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=2918,this.with_table_settings()),this.state=2922,this.errorHandler.sync(this),t=this.tokenStream.LA(1),289===t&&(this.state=2921,this.table_tablestore()),this.state=2925,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=2924,this.table_as_source())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_table_entry(){let t=new ia(this.context,this.state);this.enterRule(t,420,e.RULE_create_table_entry);try{switch(this.state=2933,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2927,this.column_schema();break;case 2:this.enterOuterAlt(t,2),this.state=2928,this.table_constraint();break;case 3:this.enterOuterAlt(t,3),this.state=2929,this.table_index();break;case 4:this.enterOuterAlt(t,4),this.state=2930,this.family_entry();break;case 5:this.enterOuterAlt(t,5),this.state=2931,this.changefeed();break;case 6:this.enterOuterAlt(t,6),this.state=2932,this.an_id_schema()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_stmt(){let t,i=new sa(this.context,this.state);this.enterRule(i,422,e.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(i,1),this.state=2935,this.match(e.CREATE),this.state=2936,this.backup_collection(),this.state=2938,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(25===t||94===t)&&(this.state=2937,this.create_backup_collection_entries()),this.state=2940,this.match(e.WITH),this.state=2941,this.match(e.LPAREN),this.state=2942,this.backup_collection_settings(),this.state=2943,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_stmt(){let t=new na(this.context,this.state);this.enterRule(t,424,e.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(t,1),this.state=2945,this.match(e.ALTER),this.state=2946,this.backup_collection(),this.state=2949,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESET:case e.SET:this.state=2947,this.alter_backup_collection_actions();break;case e.ADD:case e.DROP:this.state=2948,this.alter_backup_collection_entries();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_backup_collection_stmt(){let t=new ra(this.context,this.state);this.enterRule(t,426,e.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(t,1),this.state=2951,this.match(e.DROP),this.state=2952,this.backup_collection()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries(){let t=new oa(this.context,this.state);this.enterRule(t,428,e.RULE_create_backup_collection_entries);try{switch(this.state=2956,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DATABASE:this.enterOuterAlt(t,1),this.state=2954,this.match(e.DATABASE);break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2955,this.create_backup_collection_entries_many();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries_many(){let t=new aa(this.context,this.state);this.enterRule(t,430,e.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(t,1),this.state=2958,this.match(e.LPAREN),this.state=2959,this.table_list(),this.state=2960,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_list(){let t,i=new ca(this.context,this.state);this.enterRule(i,432,e.RULE_table_list);try{for(this.enterOuterAlt(i,1),this.state=2962,this.match(e.TABLE),this.state=2963,this.an_id_table(),this.state=2969,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2964,this.match(e.COMMA),this.state=2965,this.match(e.TABLE),this.state=2966,this.an_id_table(),this.state=2971,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_actions(){let t,i=new la(this.context,this.state);this.enterRule(i,434,e.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(i,1),this.state=2972,this.alter_backup_collection_action(),this.state=2977,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2973,this.match(e.COMMA),this.state=2974,this.alter_backup_collection_action(),this.state=2979,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_action(){let t=new ha(this.context,this.state);this.enterRule(t,436,e.RULE_alter_backup_collection_action);try{switch(this.state=2982,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=2980,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=2981,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_backup_collection_entries(){let t,i=new da(this.context,this.state);this.enterRule(i,438,e.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(i,1),this.state=2984,this.alter_backup_collection_entry(),this.state=2989,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=2985,this.match(e.COMMA),this.state=2986,this.alter_backup_collection_entry(),this.state=2991,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_entry(){let t=new ua(this.context,this.state);this.enterRule(t,440,e.RULE_alter_backup_collection_entry);try{switch(this.state=3002,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2992,this.match(e.ADD),this.state=2993,this.match(e.DATABASE);break;case 2:this.enterOuterAlt(t,2),this.state=2994,this.match(e.DROP),this.state=2995,this.match(e.DATABASE);break;case 3:this.enterOuterAlt(t,3),this.state=2996,this.match(e.ADD),this.state=2997,this.match(e.TABLE),this.state=2998,this.an_id_table();break;case 4:this.enterOuterAlt(t,4),this.state=2999,this.match(e.DROP),this.state=3e3,this.match(e.TABLE),this.state=3001,this.an_id_table()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection(){let t=new ga(this.context,this.state);this.enterRule(t,442,e.RULE_backup_collection);try{this.enterOuterAlt(t,1),this.state=3004,this.match(e.BACKUP),this.state=3005,this.match(e.COLLECTION),this.state=3006,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection_settings(){let t,i=new pa(this.context,this.state);this.enterRule(i,444,e.RULE_backup_collection_settings);try{for(this.enterOuterAlt(i,1),this.state=3008,this.backup_collection_settings_entry(),this.state=3013,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3009,this.match(e.COMMA),this.state=3010,this.backup_collection_settings_entry(),this.state=3015,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}backup_collection_settings_entry(){let t=new ma(this.context,this.state);this.enterRule(t,446,e.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(t,1),this.state=3016,this.an_id(),this.state=3017,this.match(e.EQUALS),this.state=3018,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_stmt(){let t,i=new fa(this.context,this.state);this.enterRule(i,448,e.RULE_backup_stmt);try{this.enterOuterAlt(i,1),this.state=3020,this.match(e.BACKUP),this.state=3021,this.object_ref(),this.state=3023,this.errorHandler.sync(this),t=this.tokenStream.LA(1),160===t&&(this.state=3022,this.match(e.INCREMENTAL))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}restore_stmt(){let t,i=new _a(this.context,this.state);this.enterRule(i,450,e.RULE_restore_stmt);try{this.enterOuterAlt(i,1),this.state=3025,this.match(e.RESTORE),this.state=3026,this.object_ref(),this.state=3029,this.errorHandler.sync(this),t=this.tokenStream.LA(1),54===t&&(this.state=3027,this.match(e.AT),this.state=3028,this.match(e.STRING_VALUE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_inherits(){let t,i=new va(this.context,this.state);this.enterRule(i,452,e.RULE_table_inherits);try{for(this.enterOuterAlt(i,1),this.state=3031,this.match(e.INHERITS),this.state=3032,this.match(e.LPAREN),this.state=3033,this.simple_table_ref_core(),this.state=3038,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3034,this.match(e.COMMA),this.state=3035,this.simple_table_ref_core(),this.state=3040,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3041,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_partition_by(){let t=new Ca(this.context,this.state);this.enterRule(t,454,e.RULE_table_partition_by);try{this.enterOuterAlt(t,1),this.state=3043,this.match(e.PARTITION),this.state=3044,this.match(e.BY),this.state=3045,this.match(e.HASH),this.state=3046,this.pure_column_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_table_settings(){let t,i=new Ea(this.context,this.state);this.enterRule(i,456,e.RULE_with_table_settings);try{for(this.enterOuterAlt(i,1),this.state=3048,this.match(e.WITH),this.state=3049,this.match(e.LPAREN),this.state=3050,this.table_settings_entry(),this.state=3055,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3051,this.match(e.COMMA),this.state=3052,this.table_settings_entry(),this.state=3057,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3058,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_tablestore(){let t=new ba(this.context,this.state);this.enterRule(t,458,e.RULE_table_tablestore);try{this.enterOuterAlt(t,1),this.state=3060,this.match(e.TABLESTORE),this.state=3061,this.simple_table_ref_core()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_settings_entry(){let t=new Sa(this.context,this.state);this.enterRule(t,460,e.RULE_table_settings_entry);try{this.enterOuterAlt(t,1),this.state=3063,this.an_id(),this.state=3064,this.match(e.EQUALS),this.state=3065,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_as_source(){let t=new ya(this.context,this.state);this.enterRule(t,462,e.RULE_table_as_source);try{this.enterOuterAlt(t,1),this.state=3067,this.match(e.AS),this.state=3068,this.values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_stmt(){let t,i=new wa(this.context,this.state);this.enterRule(i,464,e.RULE_alter_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3070,this.match(e.ALTER),this.state=3071,this.match(e.TABLE),this.state=3072,this.simple_table_ref(),this.state=3073,this.alter_table_action(),this.state=3078,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3074,this.match(e.COMMA),this.state=3075,this.alter_table_action(),this.state=3080,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_action(){let t=new Ra(this.context,this.state);this.enterRule(t,466,e.RULE_alter_table_action);try{switch(this.state=3098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3081,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3082,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3083,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(t,4),this.state=3084,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(t,5),this.state=3085,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(t,6),this.state=3086,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(t,7),this.state=3087,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(t,8),this.state=3088,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(t,9),this.state=3089,this.alter_table_add_index();break;case 10:this.enterOuterAlt(t,10),this.state=3090,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(t,11),this.state=3091,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(t,12),this.state=3092,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(t,13),this.state=3093,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(t,14),this.state=3094,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(t,15),this.state=3095,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(t,16),this.state=3096,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(t,17),this.state=3097,this.alter_table_alter_column_drop_not_null()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_external_table_stmt(){let t,i=new La(this.context,this.state);this.enterRule(i,468,e.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3100,this.match(e.ALTER),this.state=3101,this.match(e.EXTERNAL),this.state=3102,this.match(e.TABLE),this.state=3103,this.simple_table_ref(),this.state=3104,this.alter_external_table_action(),this.state=3109,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3105,this.match(e.COMMA),this.state=3106,this.alter_external_table_action(),this.state=3111,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_table_action(){let t=new Ta(this.context,this.state);this.enterRule(t,470,e.RULE_alter_external_table_action);try{switch(this.state=3117,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3112,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3113,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3114,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(t,4),this.state=3115,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(t,5),this.state=3116,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_store_stmt(){let t,i=new xa(this.context,this.state);this.enterRule(i,472,e.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(i,1),this.state=3119,this.match(e.ALTER),this.state=3120,this.match(e.TABLESTORE),this.state=3121,this.object_ref(),this.state=3122,this.alter_table_store_action(),this.state=3127,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3123,this.match(e.COMMA),this.state=3124,this.alter_table_store_action(),this.state=3129,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_store_action(){let t=new ka(this.context,this.state);this.enterRule(t,474,e.RULE_alter_table_store_action);try{switch(this.state=3132,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=3130,this.alter_table_add_column();break;case e.DROP:this.enterOuterAlt(t,2),this.state=3131,this.alter_table_drop_column();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column(){let t,i=new Aa(this.context,this.state);this.enterRule(i,476,e.RULE_alter_table_add_column);try{this.enterOuterAlt(i,1),this.state=3134,this.match(e.ADD),this.state=3136,this.errorHandler.sync(this),t=this.tokenStream.LA(1),76===t&&(this.state=3135,this.match(e.COLUMN)),this.state=3138,this.column_schema()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_drop_column(){let t=new Na(this.context,this.state);this.enterRule(t,478,e.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(t,1),1===(this.state=3140,this.match(e.DROP),this.state=3142,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3141,this.match(e.COLUMN);this.state=3144,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column(){let t=new Ia(this.context,this.state);this.enterRule(t,480,e.RULE_alter_table_alter_column);try{this.enterOuterAlt(t,1),this.state=3146,this.match(e.ALTER),this.state=3147,this.match(e.COLUMN),this.state=3148,this.an_id(),this.state=3149,this.match(e.SET),this.state=3150,this.family_relation()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_drop_not_null(){let t=new Oa(this.context,this.state);this.enterRule(t,482,e.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(t,1),this.state=3152,this.match(e.ALTER),this.state=3153,this.match(e.COLUMN),this.state=3154,this.an_id(),this.state=3155,this.match(e.DROP),this.state=3156,this.match(e.NOT),this.state=3157,this.match(e.NULL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column_family(){let t=new Da(this.context,this.state);this.enterRule(t,484,e.RULE_alter_table_add_column_family);try{this.enterOuterAlt(t,1),this.state=3159,this.match(e.ADD),this.state=3160,this.family_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_family(){let t=new Ma(this.context,this.state);this.enterRule(t,486,e.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(t,1),this.state=3162,this.match(e.ALTER),this.state=3163,this.match(e.FAMILY),this.state=3164,this.an_id(),this.state=3165,this.match(e.SET),this.state=3166,this.an_id(),this.state=3167,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_uncompat(){let t=new Pa(this.context,this.state);this.enterRule(t,488,e.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(t,1),this.state=3169,this.match(e.SET),this.state=3170,this.an_id(),this.state=3171,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_compat(){let t,i=new Fa(this.context,this.state);this.enterRule(i,490,e.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(i,1),this.state=3173,this.match(e.SET),this.state=3174,this.match(e.LPAREN),this.state=3175,this.alter_table_setting_entry(),this.state=3180,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3176,this.match(e.COMMA),this.state=3177,this.alter_table_setting_entry(),this.state=3182,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3183,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_reset_table_setting(){let t,i=new Ua(this.context,this.state);this.enterRule(i,492,e.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(i,1),this.state=3185,this.match(e.RESET),this.state=3186,this.match(e.LPAREN),this.state=3187,this.an_id(),this.state=3192,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3188,this.match(e.COMMA),this.state=3189,this.an_id(),this.state=3194,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3195,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_add_index(){let t=new Ha(this.context,this.state);this.enterRule(t,494,e.RULE_alter_table_add_index);try{this.enterOuterAlt(t,1),this.state=3197,this.match(e.ADD),this.state=3198,this.table_index()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_index(){let t=new Ba(this.context,this.state);this.enterRule(t,496,e.RULE_alter_table_drop_index);try{this.enterOuterAlt(t,1),this.state=3200,this.match(e.DROP),this.state=3201,this.match(e.INDEX),this.state=3202,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_to(){let t=new Wa(this.context,this.state);this.enterRule(t,498,e.RULE_alter_table_rename_to);try{this.enterOuterAlt(t,1),this.state=3204,this.match(e.RENAME),this.state=3205,this.match(e.TO),this.state=3206,this.an_id_table()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_index_to(){let t=new Va(this.context,this.state);this.enterRule(t,500,e.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(t,1),this.state=3208,this.match(e.RENAME),this.state=3209,this.match(e.INDEX),this.state=3210,this.an_id(),this.state=3211,this.match(e.TO),this.state=3212,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_changefeed(){let t=new za(this.context,this.state);this.enterRule(t,502,e.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(t,1),this.state=3214,this.match(e.ADD),this.state=3215,this.changefeed()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_changefeed(){let t=new Ga(this.context,this.state);this.enterRule(t,504,e.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(t,1),this.state=3217,this.match(e.ALTER),this.state=3218,this.match(e.CHANGEFEED),this.state=3219,this.an_id(),this.state=3220,this.changefeed_alter_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_changefeed(){let t=new ja(this.context,this.state);this.enterRule(t,506,e.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(t,1),this.state=3222,this.match(e.DROP),this.state=3223,this.match(e.CHANGEFEED),this.state=3224,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_index(){let t=new Ka(this.context,this.state);this.enterRule(t,508,e.RULE_alter_table_alter_index);try{this.enterOuterAlt(t,1),this.state=3226,this.match(e.ALTER),this.state=3227,this.match(e.INDEX),this.state=3228,this.an_id(),this.state=3229,this.alter_table_alter_index_action()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_schema(){let t,i=new Ya(this.context,this.state);this.enterRule(i,510,e.RULE_column_schema);try{this.enterOuterAlt(i,1),this.state=3231,this.an_id_schema(),this.state=3232,this.type_name_or_bind(),this.state=3234,this.errorHandler.sync(this),t=this.tokenStream.LA(1),133===t&&(this.state=3233,this.family_relation()),this.state=3236,this.opt_column_constraints()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_relation(){let t=new qa(this.context,this.state);this.enterRule(t,512,e.RULE_family_relation);try{this.enterOuterAlt(t,1),this.state=3238,this.match(e.FAMILY),this.state=3239,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_column_constraints(){let t,i=new $a(this.context,this.state);this.enterRule(i,514,e.RULE_opt_column_constraints);try{this.enterOuterAlt(i,1),this.state=3245,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(199===t||201===t)&&(this.state=3242,this.errorHandler.sync(this),t=this.tokenStream.LA(1),199===t&&(this.state=3241,this.match(e.NOT)),this.state=3244,this.match(e.NULL)),this.state=3249,this.errorHandler.sync(this),t=this.tokenStream.LA(1),97===t&&(this.state=3247,this.match(e.DEFAULT),this.state=3248,this.expr())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_order_by_specification(){let t,i=new Qa(this.context,this.state);this.enterRule(i,516,e.RULE_column_order_by_specification);try{this.enterOuterAlt(i,1),this.state=3251,this.an_id(),this.state=3253,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(50===t||102===t)&&(this.state=3252,t=this.tokenStream.LA(1),50===t||102===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_constraint(){let t,i=new Xa(this.context,this.state);this.enterRule(i,518,e.RULE_table_constraint);try{switch(this.state=3294,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PRIMARY:for(this.enterOuterAlt(i,1),this.state=3255,this.match(e.PRIMARY),this.state=3256,this.match(e.KEY),this.state=3257,this.match(e.LPAREN),this.state=3258,this.an_id(),this.state=3263,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3259,this.match(e.COMMA),this.state=3260,this.an_id(),this.state=3265,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3266,this.match(e.RPAREN);break;case e.PARTITION:for(this.enterOuterAlt(i,2),this.state=3268,this.match(e.PARTITION),this.state=3269,this.match(e.BY),this.state=3270,this.match(e.LPAREN),this.state=3271,this.an_id(),this.state=3276,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3272,this.match(e.COMMA),this.state=3273,this.an_id(),this.state=3278,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3279,this.match(e.RPAREN);break;case e.ORDER:for(this.enterOuterAlt(i,3),this.state=3281,this.match(e.ORDER),this.state=3282,this.match(e.BY),this.state=3283,this.match(e.LPAREN),this.state=3284,this.column_order_by_specification(),this.state=3289,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3285,this.match(e.COMMA),this.state=3286,this.column_order_by_specification(),this.state=3291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3292,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index(){let t,i=new Za(this.context,this.state);this.enterRule(i,520,e.RULE_table_index);try{for(this.enterOuterAlt(i,1),this.state=3296,this.match(e.INDEX),this.state=3297,this.an_id(),this.state=3298,this.table_index_type(),this.state=3299,this.match(e.ON),this.state=3300,this.match(e.LPAREN),this.state=3301,this.an_id_schema(),this.state=3306,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3302,this.match(e.COMMA),this.state=3303,this.an_id_schema(),this.state=3308,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3309,this.match(e.RPAREN),this.state=3322,this.errorHandler.sync(this),t=this.tokenStream.LA(1),85===t){for(this.state=3310,this.match(e.COVER),this.state=3311,this.match(e.LPAREN),this.state=3312,this.an_id_schema(),this.state=3317,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3313,this.match(e.COMMA),this.state=3314,this.an_id_schema(),this.state=3319,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3320,this.match(e.RPAREN)}this.state=3325,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3324,this.with_index_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index_type(){let t,i=new Ja(this.context,this.state);this.enterRule(i,522,e.RULE_table_index_type);try{switch(this.enterOuterAlt(i,1),this.state=3329,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.GLOBAL:this.state=3327,this.global_index();break;case e.LOCAL:this.state=3328,this.local_index();break;default:throw new lt(this)}this.state=3333,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3331,this.match(e.USING),this.state=3332,this.index_subtype())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}global_index(){let t,i=new ec(this.context,this.state);this.enterRule(i,524,e.RULE_global_index);try{this.enterOuterAlt(i,1),this.state=3335,this.match(e.GLOBAL),this.state=3337,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=3336,this.match(e.UNIQUE)),this.state=3340,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(53===t||284===t)&&(this.state=3339,t=this.tokenStream.LA(1),53===t||284===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}local_index(){let t=new tc(this.context,this.state);this.enterRule(t,526,e.RULE_local_index);try{this.enterOuterAlt(t,1),this.state=3342,this.match(e.LOCAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_subtype(){let t=new ic(this.context,this.state);this.enterRule(t,528,e.RULE_index_subtype);try{this.enterOuterAlt(t,1),this.state=3344,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_index_settings(){let t,i=new sc(this.context,this.state);this.enterRule(i,530,e.RULE_with_index_settings);try{let s;for(this.enterOuterAlt(i,1),this.state=3346,this.match(e.WITH),this.state=3347,this.match(e.LPAREN),this.state=3348,this.index_setting_entry(),this.state=3353,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3349,this.match(e.COMMA),this.state=3350,this.index_setting_entry()),this.state=3355,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3357,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3356,this.match(e.COMMA)),this.state=3359,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}index_setting_entry(){let t=new nc(this.context,this.state);this.enterRule(t,532,e.RULE_index_setting_entry);try{this.enterOuterAlt(t,1),this.state=3361,this.an_id(),this.state=3362,this.match(e.EQUALS),this.state=3363,this.index_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_setting_value(){let t=new rc(this.context,this.state);this.enterRule(t,534,e.RULE_index_setting_value);try{switch(this.state=3369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3365,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3366,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,3),this.state=3367,this.integer();break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=3368,this.bool_value();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed(){let t=new oc(this.context,this.state);this.enterRule(t,536,e.RULE_changefeed);try{this.enterOuterAlt(t,1),this.state=3371,this.match(e.CHANGEFEED),this.state=3372,this.an_id(),this.state=3373,this.match(e.WITH),this.state=3374,this.match(e.LPAREN),this.state=3375,this.changefeed_settings(),this.state=3376,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_settings(){let t,i=new ac(this.context,this.state);this.enterRule(i,538,e.RULE_changefeed_settings);try{for(this.enterOuterAlt(i,1),this.state=3378,this.changefeed_settings_entry(),this.state=3383,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3379,this.match(e.COMMA),this.state=3380,this.changefeed_settings_entry(),this.state=3385,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}changefeed_settings_entry(){let t=new cc(this.context,this.state);this.enterRule(t,540,e.RULE_changefeed_settings_entry);try{this.enterOuterAlt(t,1),this.state=3386,this.an_id(),this.state=3387,this.match(e.EQUALS),this.state=3388,this.changefeed_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_setting_value(){let t=new lc(this.context,this.state);this.enterRule(t,542,e.RULE_changefeed_setting_value);try{this.enterOuterAlt(t,1),this.state=3390,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_alter_settings(){let t=new hc(this.context,this.state);this.enterRule(t,544,e.RULE_changefeed_alter_settings);try{switch(this.state=3398,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISABLE:this.enterOuterAlt(t,1),this.state=3392,this.match(e.DISABLE);break;case e.SET:this.enterOuterAlt(t,2),this.state=3393,this.match(e.SET),this.state=3394,this.match(e.LPAREN),this.state=3395,this.changefeed_settings(),this.state=3396,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_setting_entry(){let t=new dc(this.context,this.state);this.enterRule(t,546,e.RULE_alter_table_setting_entry);try{this.enterOuterAlt(t,1),this.state=3400,this.an_id(),this.state=3401,this.match(e.EQUALS),this.state=3402,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_setting_value(){let t,i=new uc(this.context,this.state);this.enterRule(i,548,e.RULE_table_setting_value);try{switch(this.state=3416,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3404,this.id();break;case 2:this.enterOuterAlt(i,2),this.state=3405,this.match(e.STRING_VALUE);break;case 3:this.enterOuterAlt(i,3),this.state=3406,this.integer();break;case 4:this.enterOuterAlt(i,4),this.state=3407,this.split_boundaries();break;case 5:this.enterOuterAlt(i,5),this.state=3408,this.ttl_tier_list(),this.state=3409,this.match(e.ON),this.state=3410,this.an_id(),this.state=3413,this.errorHandler.sync(this),t=this.tokenStream.LA(1),49===t&&(this.state=3411,this.match(e.AS),this.state=3412,t=this.tokenStream.LA(1),!(t-191&-32)&&1<<t-191&11||267===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(i,6),this.state=3415,this.bool_value()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_list(){let t,i=new gc(this.context,this.state);this.enterRule(i,550,e.RULE_ttl_tier_list);try{if(this.enterOuterAlt(i,1),this.state=3418,this.expr(),this.state=3429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),101===t||295===t)for(this.state=3419,this.ttl_tier_action(),this.state=3426,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3420,this.match(e.COMMA),this.state=3421,this.expr(),this.state=3422,this.ttl_tier_action(),this.state=3428,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ttl_tier_action(){let t=new pc(this.context,this.state);this.enterRule(t,552,e.RULE_ttl_tier_action);try{switch(this.state=3437,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TO:this.enterOuterAlt(t,1),this.state=3431,this.match(e.TO),this.state=3432,this.match(e.EXTERNAL),this.state=3433,this.match(e.DATA),this.state=3434,this.match(e.SOURCE),this.state=3435,this.an_id();break;case e.DELETE:this.enterOuterAlt(t,2),this.state=3436,this.match(e.DELETE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_entry(){let t=new mc(this.context,this.state);this.enterRule(t,554,e.RULE_family_entry);try{this.enterOuterAlt(t,1),this.state=3439,this.match(e.FAMILY),this.state=3440,this.an_id(),this.state=3441,this.family_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_settings(){let t,i=new fc(this.context,this.state);this.enterRule(i,556,e.RULE_family_settings);try{if(this.enterOuterAlt(i,1),this.state=3443,this.match(e.LPAREN),this.state=3452,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&3220176895||!(t-70&-32)&&1<<t-70&4294967295||!(t-102&-32)&&1<<t-102&3221159927||!(t-134&-32)&&1<<t-134&4294967287||!(t-166&-32)&&1<<t-166&4294836223||!(t-198&-32)&&1<<t-198&4294959103||!(t-230&-32)&&1<<t-230&4294688767||!(t-262&-32)&&1<<t-262&4026400255||!(t-294&-32)&&1<<t-294&4290772799||!(t-326&-32)&&1<<t-326&7)for(this.state=3444,this.family_settings_entry(),this.state=3449,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3445,this.match(e.COMMA),this.state=3446,this.family_settings_entry(),this.state=3451,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3454,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_settings_entry(){let t=new _c(this.context,this.state);this.enterRule(t,558,e.RULE_family_settings_entry);try{this.enterOuterAlt(t,1),this.state=3456,this.an_id(),this.state=3457,this.match(e.EQUALS),this.state=3458,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_setting_value(){let t=new vc(this.context,this.state);this.enterRule(t,560,e.RULE_family_setting_value);try{switch(this.state=3462,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRING_VALUE:this.enterOuterAlt(t,1),this.state=3460,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,2),this.state=3461,this.integer();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}split_boundaries(){let t,i=new Cc(this.context,this.state);this.enterRule(i,562,e.RULE_split_boundaries);try{switch(this.state=3476,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,342,this.context)){case 1:for(this.enterOuterAlt(i,1),this.state=3464,this.match(e.LPAREN),this.state=3465,this.literal_value_list(),this.state=3470,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3466,this.match(e.COMMA),this.state=3467,this.literal_value_list(),this.state=3472,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3473,this.match(e.RPAREN);break;case 2:this.enterOuterAlt(i,2),this.state=3475,this.literal_value_list()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}literal_value_list(){let t,i=new Ec(this.context,this.state);this.enterRule(i,564,e.RULE_literal_value_list);try{for(this.enterOuterAlt(i,1),this.state=3478,this.match(e.LPAREN),this.state=3479,this.literal_value(),this.state=3484,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3480,this.match(e.COMMA),this.state=3481,this.literal_value(),this.state=3486,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3487,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_alter_index_action(){let t=new bc(this.context,this.state);this.enterRule(t,566,e.RULE_alter_table_alter_index_action);try{switch(this.state=3492,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,344,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3489,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=3490,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=3491,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_table_stmt(){let t=new Sc(this.context,this.state);this.enterRule(t,568,e.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(t,1),this.state=3494,this.match(e.DROP),this.state=3499,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=3495,this.match(e.TABLE);break;case e.TABLESTORE:this.state=3496,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=3497,this.match(e.EXTERNAL),this.state=3498,this.match(e.TABLE);break;default:throw new lt(this)}if(1===(this.state=3503,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,346,this.context)))this.state=3501,this.match(e.IF),this.state=3502,this.match(e.EXISTS);this.state=3505,this.simple_table_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_user_stmt(){let t,i=new yc(this.context,this.state);this.enterRule(i,570,e.RULE_create_user_stmt);try{for(this.enterOuterAlt(i,1),this.state=3507,this.match(e.CREATE),this.state=3508,this.match(e.USER),this.state=3509,this.role_name(),this.state=3513,this.errorHandler.sync(this),t=this.tokenStream.LA(1);116===t||150===t||185===t||198===t||220===t;)this.state=3510,this.user_option(),this.state=3515,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_user_stmt(){let t,i=new wc(this.context,this.state);this.enterRule(i,572,e.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3516,this.match(e.ALTER),this.state=3517,this.match(e.USER),this.state=3518,this.role_name(),this.state=3530,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.LOGIN:case e.NOLOGIN:case e.PASSWORD:case e.WITH:this.state=3520,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3519,this.match(e.WITH)),this.state=3523,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3522,this.user_option(),this.state=3525,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(116===t||150===t||185===t||198===t||220===t);break;case e.RENAME:this.state=3527,this.match(e.RENAME),this.state=3528,this.match(e.TO),this.state=3529,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_group_stmt(){let t,i=new Rc(this.context,this.state);this.enterRule(i,574,e.RULE_create_group_stmt);try{let s;if(this.enterOuterAlt(i,1),this.state=3532,this.match(e.CREATE),this.state=3533,this.match(e.GROUP),this.state=3534,this.role_name(),this.state=3548,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t){for(this.state=3535,this.match(e.WITH),this.state=3536,this.match(e.USER),this.state=3537,this.role_name(),this.state=3542,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3538,this.match(e.COMMA),this.state=3539,this.role_name()),this.state=3544,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,351,this.context);this.state=3546,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3545,this.match(e.COMMA))}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_group_stmt(){let t,i=new Lc(this.context,this.state);this.enterRule(i,576,e.RULE_alter_group_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=3550,this.match(e.ALTER),this.state=3551,this.match(e.GROUP),this.state=3552,this.role_name(),this.state=3569,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:case e.DROP:for(this.state=3553,t=this.tokenStream.LA(1),40===t||111===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3554,this.match(e.USER),this.state=3555,this.role_name(),this.state=3560,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3556,this.match(e.COMMA),this.state=3557,this.role_name()),this.state=3562,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3564,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3563,this.match(e.COMMA));break;case e.RENAME:this.state=3566,this.match(e.RENAME),this.state=3567,this.match(e.TO),this.state=3568,this.role_name();break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_role_stmt(){let t,i=new Tc(this.context,this.state);this.enterRule(i,578,e.RULE_drop_role_stmt);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3571,this.match(e.DROP),this.state=3572,t=this.tokenStream.LA(1),147===t||312===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3575,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,357,this.context)))this.state=3573,this.match(e.IF),this.state=3574,this.match(e.EXISTS);for(this.state=3577,this.role_name(),this.state=3582,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3578,this.match(e.COMMA),this.state=3579,this.role_name()),this.state=3584,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,358,this.context);this.state=3586,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3585,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}role_name(){let t=new xc(this.context,this.state);this.enterRule(t,580,e.RULE_role_name);try{switch(this.state=3590,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3588,this.an_id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3589,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}user_option(){let t=new kc(this.context,this.state);this.enterRule(t,582,e.RULE_user_option);try{switch(this.state=3594,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.HASH:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3592,this.authentication_option();break;case e.LOGIN:case e.NOLOGIN:this.enterOuterAlt(t,2),this.state=3593,this.login_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}authentication_option(){let t=new Ac(this.context,this.state);this.enterRule(t,584,e.RULE_authentication_option);try{switch(this.state=3598,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.PASSWORD:this.enterOuterAlt(t,1),this.state=3596,this.password_option();break;case e.HASH:this.enterOuterAlt(t,2),this.state=3597,this.hash_option();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}password_option(){let t,i=new Nc(this.context,this.state);this.enterRule(i,586,e.RULE_password_option);try{this.enterOuterAlt(i,1),this.state=3601,this.errorHandler.sync(this),t=this.tokenStream.LA(1),116===t&&(this.state=3600,this.match(e.ENCRYPTED)),this.state=3603,this.match(e.PASSWORD),this.state=3604,this.expr()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}hash_option(){let t=new Ic(this.context,this.state);this.enterRule(t,588,e.RULE_hash_option);try{this.enterOuterAlt(t,1),this.state=3606,this.match(e.HASH),this.state=3607,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}login_option(){let t,i=new Oc(this.context,this.state);this.enterRule(i,590,e.RULE_login_option);try{this.enterOuterAlt(i,1),this.state=3609,t=this.tokenStream.LA(1),185===t||198===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grant_permissions_stmt(){let t,i=new Dc(this.context,this.state);this.enterRule(i,592,e.RULE_grant_permissions_stmt);try{let s;for(this.enterOuterAlt(i,1),this.state=3611,this.match(e.GRANT),this.state=3612,this.permission_name_target(),this.state=3613,this.match(e.ON),this.state=3614,this.an_id_schema(),this.state=3619,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3615,this.match(e.COMMA),this.state=3616,this.an_id_schema(),this.state=3621,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3622,this.match(e.TO),this.state=3623,this.role_name(),this.state=3628,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3624,this.match(e.COMMA),this.state=3625,this.role_name()),this.state=3630,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,365,this.context);this.state=3632,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3631,this.match(e.COMMA)),this.state=3637,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=3634,this.match(e.WITH),this.state=3635,this.match(e.GRANT),this.state=3636,this.match(e.OPTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}revoke_permissions_stmt(){let t,i=new Mc(this.context,this.state);this.enterRule(i,594,e.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=3639,this.match(e.REVOKE),this.state=3643,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,368,this.context)))this.state=3640,this.match(e.GRANT),this.state=3641,this.match(e.OPTION),this.state=3642,this.match(e.FOR);for(this.state=3645,this.permission_name_target(),this.state=3646,this.match(e.ON),this.state=3647,this.an_id_schema(),this.state=3652,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3648,this.match(e.COMMA),this.state=3649,this.an_id_schema(),this.state=3654,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3655,this.match(e.FROM),this.state=3656,this.role_name(),this.state=3661,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3657,this.match(e.COMMA),this.state=3658,this.role_name(),this.state=3663,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_id(){let t,i=new Pc(this.context,this.state);this.enterRule(i,596,e.RULE_permission_id);try{switch(this.state=3688,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CONNECT:this.enterOuterAlt(i,1),this.state=3664,this.match(e.CONNECT);break;case e.LIST:this.enterOuterAlt(i,2),this.state=3665,this.match(e.LIST);break;case e.INSERT:this.enterOuterAlt(i,3),this.state=3666,this.match(e.INSERT);break;case e.MANAGE:this.enterOuterAlt(i,4),this.state=3667,this.match(e.MANAGE);break;case e.DROP:this.enterOuterAlt(i,5),this.state=3668,this.match(e.DROP);break;case e.GRANT:this.enterOuterAlt(i,6),this.state=3669,this.match(e.GRANT);break;case e.MODIFY:this.enterOuterAlt(i,7),this.state=3670,this.match(e.MODIFY),this.state=3671,t=this.tokenStream.LA(1),56===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case e.ERASE:case e.UPDATE:this.enterOuterAlt(i,8),this.state=3672,t=this.tokenStream.LA(1),119===t||309===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3673,this.match(e.ROW);break;case e.ALTER:case e.DESCRIBE:case e.REMOVE:this.enterOuterAlt(i,9),this.state=3674,t=this.tokenStream.LA(1),43===t||103===t||242===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3675,this.match(e.SCHEMA);break;case e.SELECT:this.enterOuterAlt(i,10),this.state=3676,this.match(e.SELECT),this.state=3678,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(56===t||262===t||287===t)&&(this.state=3677,t=this.tokenStream.LA(1),56===t||262===t||287===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.FULL:case e.USE:this.enterOuterAlt(i,11),this.state=3680,t=this.tokenStream.LA(1),142===t||311===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3682,this.errorHandler.sync(this),t=this.tokenStream.LA(1),180===t&&(this.state=3681,this.match(e.LEGACY));break;case e.CREATE:this.enterOuterAlt(i,12),this.state=3684,this.match(e.CREATE),this.state=3686,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(106===t||234===t||286===t)&&(this.state=3685,t=this.tokenStream.LA(1),106===t||234===t||286===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_name(){let t=new Fc(this.context,this.state);this.enterRule(t,598,e.RULE_permission_name);try{switch(this.state=3692,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:this.enterOuterAlt(t,1),this.state=3690,this.permission_id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3691,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}permission_name_target(){let t,i=new Uc(this.context,this.state);this.enterRule(i,600,e.RULE_permission_name_target);try{let s;switch(this.state=3709,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:case e.STRING_VALUE:for(this.enterOuterAlt(i,1),this.state=3694,this.permission_name(),this.state=3699,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3695,this.match(e.COMMA),this.state=3696,this.permission_name()),this.state=3701,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,376,this.context);this.state=3703,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3702,this.match(e.COMMA));break;case e.ALL:this.enterOuterAlt(i,2),this.state=3705,this.match(e.ALL),this.state=3707,this.errorHandler.sync(this),t=this.tokenStream.LA(1),231===t&&(this.state=3706,this.match(e.PRIVILEGES));break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_resource_pool_stmt(){let t=new Hc(this.context,this.state);this.enterRule(t,602,e.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3711,this.match(e.CREATE),this.state=3712,this.match(e.RESOURCE),this.state=3713,this.match(e.POOL),this.state=3714,this.object_ref(),this.state=3715,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_stmt(){let t,i=new Bc(this.context,this.state);this.enterRule(i,604,e.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(i,1),this.state=3717,this.match(e.ALTER),this.state=3718,this.match(e.RESOURCE),this.state=3719,this.match(e.POOL),this.state=3720,this.object_ref(),this.state=3721,this.alter_resource_pool_action(),this.state=3726,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3722,this.match(e.COMMA),this.state=3723,this.alter_resource_pool_action(),this.state=3728,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_action(){let t=new Wc(this.context,this.state);this.enterRule(t,606,e.RULE_alter_resource_pool_action);try{switch(this.state=3731,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3729,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3730,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_stmt(){let t=new Vc(this.context,this.state);this.enterRule(t,608,e.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3733,this.match(e.DROP),this.state=3734,this.match(e.RESOURCE),this.state=3735,this.match(e.POOL),this.state=3736,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_resource_pool_classifier_stmt(){let t=new zc(this.context,this.state);this.enterRule(t,610,e.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3738,this.match(e.CREATE),this.state=3739,this.match(e.RESOURCE),this.state=3740,this.match(e.POOL),this.state=3741,this.match(e.CLASSIFIER),this.state=3742,this.object_ref(),this.state=3743,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_classifier_stmt(){let t,i=new Gc(this.context,this.state);this.enterRule(i,612,e.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(i,1),this.state=3745,this.match(e.ALTER),this.state=3746,this.match(e.RESOURCE),this.state=3747,this.match(e.POOL),this.state=3748,this.match(e.CLASSIFIER),this.state=3749,this.object_ref(),this.state=3750,this.alter_resource_pool_classifier_action(),this.state=3755,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3751,this.match(e.COMMA),this.state=3752,this.alter_resource_pool_classifier_action(),this.state=3757,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_classifier_action(){let t=new jc(this.context,this.state);this.enterRule(t,614,e.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3760,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3758,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3759,this.alter_table_reset_table_setting();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_classifier_stmt(){let t=new Kc(this.context,this.state);this.enterRule(t,616,e.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3762,this.match(e.DROP),this.state=3763,this.match(e.RESOURCE),this.state=3764,this.match(e.POOL),this.state=3765,this.match(e.CLASSIFIER),this.state=3766,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_replication_stmt(){let t,i=new Yc(this.context,this.state);this.enterRule(i,618,e.RULE_create_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3768,this.match(e.CREATE),this.state=3769,this.match(e.ASYNC),this.state=3770,this.match(e.REPLICATION),this.state=3771,this.object_ref(),this.state=3772,this.match(e.FOR),this.state=3773,this.replication_target(),this.state=3778,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3774,this.match(e.COMMA),this.state=3775,this.replication_target(),this.state=3780,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3781,this.match(e.WITH),this.state=3782,this.match(e.LPAREN),this.state=3783,this.replication_settings(),this.state=3784,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_target(){let t=new qc(this.context,this.state);this.enterRule(t,620,e.RULE_replication_target);try{this.enterOuterAlt(t,1),this.state=3786,this.object_ref(),this.state=3787,this.replication_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_settings(){let t,i=new $c(this.context,this.state);this.enterRule(i,622,e.RULE_replication_settings);try{for(this.enterOuterAlt(i,1),this.state=3789,this.replication_settings_entry(),this.state=3794,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3790,this.match(e.COMMA),this.state=3791,this.replication_settings_entry(),this.state=3796,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_settings_entry(){let t=new Qc(this.context,this.state);this.enterRule(t,624,e.RULE_replication_settings_entry);try{this.enterOuterAlt(t,1),this.state=3797,this.an_id(),this.state=3798,this.match(e.EQUALS),this.state=3799,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_stmt(){let t,i=new Xc(this.context,this.state);this.enterRule(i,626,e.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3801,this.match(e.ALTER),this.state=3802,this.match(e.ASYNC),this.state=3803,this.match(e.REPLICATION),this.state=3804,this.object_ref(),this.state=3805,this.alter_replication_action(),this.state=3810,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3806,this.match(e.COMMA),this.state=3807,this.alter_replication_action(),this.state=3812,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_replication_action(){let t=new Zc(this.context,this.state);this.enterRule(t,628,e.RULE_alter_replication_action);try{this.enterOuterAlt(t,1),this.state=3813,this.alter_replication_set_setting()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_set_setting(){let t=new Jc(this.context,this.state);this.enterRule(t,630,e.RULE_alter_replication_set_setting);try{this.enterOuterAlt(t,1),this.state=3815,this.match(e.SET),this.state=3816,this.match(e.LPAREN),this.state=3817,this.replication_settings(),this.state=3818,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_replication_stmt(){let t,i=new el(this.context,this.state);this.enterRule(i,632,e.RULE_drop_replication_stmt);try{this.enterOuterAlt(i,1),this.state=3820,this.match(e.DROP),this.state=3821,this.match(e.ASYNC),this.state=3822,this.match(e.REPLICATION),this.state=3823,this.object_ref(),this.state=3825,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3824,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_or_parameter(){let t=new tl(this.context,this.state);this.enterRule(t,634,e.RULE_lambda_or_parameter);try{switch(this.state=3829,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.enterOuterAlt(t,1),this.state=3827,this.lambda();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3828,this.bind_parameter();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_transfer_stmt(){let t,i=new il(this.context,this.state);this.enterRule(i,636,e.RULE_create_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3831,this.match(e.CREATE),this.state=3832,this.match(e.TRANSFER),this.state=3833,this.object_ref(),this.state=3834,this.match(e.FROM),this.state=3835,this.object_ref(),this.state=3836,this.match(e.TO),this.state=3837,this.object_ref(),this.state=3840,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3838,this.match(e.USING),this.state=3839,this.lambda_or_parameter()),this.state=3842,this.match(e.WITH),this.state=3843,this.match(e.LPAREN),this.state=3844,this.transfer_settings(),this.state=3845,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings(){let t,i=new sl(this.context,this.state);this.enterRule(i,638,e.RULE_transfer_settings);try{for(this.enterOuterAlt(i,1),this.state=3847,this.transfer_settings_entry(),this.state=3852,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3848,this.match(e.COMMA),this.state=3849,this.transfer_settings_entry(),this.state=3854,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}transfer_settings_entry(){let t=new nl(this.context,this.state);this.enterRule(t,640,e.RULE_transfer_settings_entry);try{this.enterOuterAlt(t,1),this.state=3855,this.an_id(),this.state=3856,this.match(e.EQUALS),this.state=3857,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_stmt(){let t,i=new rl(this.context,this.state);this.enterRule(i,642,e.RULE_alter_transfer_stmt);try{for(this.enterOuterAlt(i,1),this.state=3859,this.match(e.ALTER),this.state=3860,this.match(e.TRANSFER),this.state=3861,this.object_ref(),this.state=3862,this.alter_transfer_action(),this.state=3867,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3863,this.match(e.COMMA),this.state=3864,this.alter_transfer_action(),this.state=3869,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_transfer_action(){let t=new ol(this.context,this.state);this.enterRule(t,644,e.RULE_alter_transfer_action);try{switch(this.state=3872,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,392,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3870,this.alter_transfer_set_setting();break;case 2:this.enterOuterAlt(t,2),this.state=3871,this.alter_transfer_set_using()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_setting(){let t=new al(this.context,this.state);this.enterRule(t,646,e.RULE_alter_transfer_set_setting);try{this.enterOuterAlt(t,1),this.state=3874,this.match(e.SET),this.state=3875,this.match(e.LPAREN),this.state=3876,this.transfer_settings(),this.state=3877,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_transfer_set_using(){let t=new cl(this.context,this.state);this.enterRule(t,648,e.RULE_alter_transfer_set_using);try{this.enterOuterAlt(t,1),this.state=3879,this.match(e.SET),this.state=3880,this.match(e.USING),this.state=3881,this.lambda_or_parameter()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_transfer_stmt(){let t,i=new ll(this.context,this.state);this.enterRule(i,650,e.RULE_drop_transfer_stmt);try{this.enterOuterAlt(i,1),this.state=3883,this.match(e.DROP),this.state=3884,this.match(e.TRANSFER),this.state=3885,this.object_ref(),this.state=3887,this.errorHandler.sync(this),t=this.tokenStream.LA(1),69===t&&(this.state=3886,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}action_or_subquery_args(){let t,i=new hl(this.context,this.state);this.enterRule(i,652,e.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(i,1),this.state=3889,this.opt_bind_parameter(),this.state=3894,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=3890,this.match(e.COMMA),this.state=3891,this.opt_bind_parameter(),this.state=3896,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_stmt(){let t,i=new dl(this.context,this.state);this.enterRule(i,654,e.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(i,1),this.state=3897,this.match(e.DEFINE),this.state=3898,t=this.tokenStream.LA(1),39===t||280===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3899,this.bind_parameter(),this.state=3900,this.match(e.LPAREN),this.state=3902,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3901,this.action_or_subquery_args()),this.state=3904,this.match(e.RPAREN),this.state=3905,this.match(e.AS),this.state=3906,this.define_action_or_subquery_body(),this.state=3907,this.match(e.END),this.state=3908,this.match(e.DEFINE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_body(){let t,i=new ul(this.context,this.state);this.enterRule(i,656,e.RULE_define_action_or_subquery_body);try{let s;for(this.enterOuterAlt(i,1),this.state=3913,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3910,this.match(e.SEMICOLON),this.state=3915,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3934,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t||30===t||!(t-43&-32)&&1<<t-43&196611||!(t-78&-32)&&1<<t-78&1086587137||!(t-110&-32)&&1<<t-110&2684882947||!(t-146&-32)&&1<<t-146&2099329||!(t-217&-32)&&1<<t-217&269517825||!(t-251&-32)&&1<<t-251&262721||!(t-309&-32)&&1<<t-309&71){for(this.state=3916,this.sql_stmt_core(),this.state=3925,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=3918,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3917,this.match(e.SEMICOLON),this.state=3920,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=3922,this.sql_stmt_core()}this.state=3927,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,398,this.context)}for(this.state=3931,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=3928,this.match(e.SEMICOLON),this.state=3933,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}if_stmt(){let t,i=new gl(this.context,this.state);this.enterRule(i,658,e.RULE_if_stmt);try{this.enterOuterAlt(i,1),this.state=3937,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3936,this.match(e.EVALUATE)),this.state=3939,this.match(e.IF),this.state=3940,this.expr(),this.state=3941,this.do_stmt(),this.state=3944,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3942,this.match(e.ELSE),this.state=3943,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}for_stmt(){let t,i=new pl(this.context,this.state);this.enterRule(i,660,e.RULE_for_stmt);try{this.enterOuterAlt(i,1),this.state=3947,this.errorHandler.sync(this),t=this.tokenStream.LA(1),122===t&&(this.state=3946,this.match(e.EVALUATE)),this.state=3950,this.errorHandler.sync(this),t=this.tokenStream.LA(1),217===t&&(this.state=3949,this.match(e.PARALLEL)),this.state=3952,this.match(e.FOR),this.state=3953,this.bind_parameter(),this.state=3954,this.match(e.IN),this.state=3955,this.expr(),this.state=3956,this.do_stmt(),this.state=3959,this.errorHandler.sync(this),t=this.tokenStream.LA(1),113===t&&(this.state=3957,this.match(e.ELSE),this.state=3958,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_ref(){let t,i=new ml(this.context,this.state);this.enterRule(i,662,e.RULE_table_ref);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3964,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,406,this.context)))this.state=3961,this.cluster_expr(),this.state=3962,this.match(e.DOT);switch(this.state=3967,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=3966,this.match(e.COMMAT)),this.state=3999,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,414,this.context)){case 1:this.state=3969,this.table_key();break;case 2:if(this.state=3970,this.an_id_expr(),this.state=3971,this.match(e.LPAREN),this.state=3983,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-14&-32)&&1<<t-14&4286810141||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647){for(this.state=3972,this.table_arg(),this.state=3977,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3973,this.match(e.COMMA),this.state=3974,this.table_arg()),this.state=3979,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,408,this.context);this.state=3981,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=3980,this.match(e.COMMA))}this.state=3985,this.match(e.RPAREN);break;case 3:this.state=3987,this.bind_parameter(),this.state=3993,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3988,this.match(e.LPAREN),this.state=3990,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-14&-32)&&1<<t-14&4286777373||!(t-46&-32)&&1<<t-46&4294963199||!(t-78&-32)&&1<<t-78&4294967295||!(t-110&-32)&&1<<t-110&4294967295||!(t-142&-32)&&1<<t-142&4294967295||!(t-174&-32)&&1<<t-174&4294967295||!(t-206&-32)&&1<<t-206&4294967295||!(t-238&-32)&&1<<t-238&4294967231||!(t-270&-32)&&1<<t-270&4294967295||!(t-302&-32)&&1<<t-302&2147483647)&&(this.state=3989,this.expr_list()),this.state=3992,this.match(e.RPAREN)),this.state=3997,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=3995,this.match(e.VIEW),this.state=3996,this.view_name())}this.state=4002,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4001,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_key(){let t,i=new fl(this.context,this.state);this.enterRule(i,664,e.RULE_table_key);try{this.enterOuterAlt(i,1),this.state=4004,this.id_table_or_type(),this.state=4007,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4005,this.match(e.VIEW),this.state=4006,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_arg(){let t,i=new _l(this.context,this.state);this.enterRule(i,666,e.RULE_table_arg);try{this.enterOuterAlt(i,1),this.state=4010,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4009,this.match(e.COMMAT)),this.state=4012,this.named_expr(),this.state=4015,this.errorHandler.sync(this),t=this.tokenStream.LA(1),317===t&&(this.state=4013,this.match(e.VIEW),this.state=4014,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hints(){let t,i=new vl(this.context,this.state);this.enterRule(i,668,e.RULE_table_hints);try{switch(this.enterOuterAlt(i,1),this.state=4017,this.match(e.WITH),this.state=4030,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4018,this.table_hint();break;case e.LPAREN:for(this.state=4019,this.match(e.LPAREN),this.state=4020,this.table_hint(),this.state=4025,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4021,this.match(e.COMMA),this.state=4022,this.table_hint(),this.state=4027,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4028,this.match(e.RPAREN);break;default:throw new lt(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hint(){let t,i=new Cl(this.context,this.state);this.enterRule(i,670,e.RULE_table_hint);try{let s;switch(this.state=4077,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,430,this.context)){case 1:if(this.enterOuterAlt(i,1),this.state=4032,this.an_id_hint(),this.state=4051,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t)switch(this.state=4033,this.match(e.EQUALS),this.state=4049,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4034,this.type_name_tag();break;case e.LPAREN:for(this.state=4035,this.match(e.LPAREN),this.state=4036,this.type_name_tag(),this.state=4041,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4037,this.match(e.COMMA),this.state=4038,this.type_name_tag()),this.state=4043,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,421,this.context);this.state=4045,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4044,this.match(e.COMMA)),this.state=4047,this.match(e.RPAREN);break;default:throw new lt(this)}break;case 2:this.enterOuterAlt(i,2),this.state=4053,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=4055,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4054,this.match(e.EQUALS)),this.state=4057,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(i,3),this.state=4058,this.match(e.SCHEMA),this.state=4060,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4059,this.match(e.EQUALS)),this.state=4062,this.match(e.LPAREN),this.state=4071,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-30&-32)&&1<<t-30&4026531585||!(t-62&-32)&&1<<t-62&4294967295||!(t-94&-32)&&1<<t-94&4294967295||!(t-126&-32)&&1<<t-126&4294967231||!(t-158&-32)&&1<<t-158&4294967295||!(t-190&-32)&&1<<t-190&4294967295||!(t-222&-32)&&1<<t-222&4290772991||!(t-254&-32)&&1<<t-254&4294967295||!(t-286&-32)&&1<<t-286&4294950911||!(t-318&-32)&&1<<t-318&2047)for(this.state=4063,this.struct_arg_positional(),this.state=4068,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4064,this.match(e.COMMA),this.state=4065,this.struct_arg_positional()),this.state=4070,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,427,this.context);this.state=4074,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4073,this.match(e.COMMA)),this.state=4076,this.match(e.RPAREN)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_ref(){let t=new El(this.context,this.state);this.enterRule(t,672,e.RULE_object_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4082,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,431,this.context)))this.state=4079,this.cluster_expr(),this.state=4080,this.match(e.DOT);this.state=4084,this.id_or_at()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_table_ref_core(){let t,i=new bl(this.context,this.state);this.enterRule(i,674,e.RULE_simple_table_ref_core);try{switch(this.state=4091,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,433,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4086,this.object_ref();break;case 2:this.enterOuterAlt(i,2),this.state=4088,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4087,this.match(e.COMMAT)),this.state=4090,this.bind_parameter()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}simple_table_ref(){let t,i=new Sl(this.context,this.state);this.enterRule(i,676,e.RULE_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4093,this.simple_table_ref_core(),this.state=4095,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4094,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_simple_table_ref(){let t,i=new yl(this.context,this.state);this.enterRule(i,678,e.RULE_into_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=4097,this.simple_table_ref(),this.state=4101,this.errorHandler.sync(this),t=this.tokenStream.LA(1),119===t&&(this.state=4098,this.match(e.ERASE),this.state=4099,this.match(e.BY),this.state=4100,this.pure_column_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}delete_stmt(){let t,i=new wl(this.context,this.state);this.enterRule(i,680,e.RULE_delete_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4104,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4103,this.match(e.BATCH)),this.state=4106,this.match(e.DELETE),this.state=4107,this.match(e.FROM),this.state=4108,this.simple_table_ref(),this.state=4112,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WHERE:this.state=4109,this.where_expr();break;case e.ON:this.state=4110,this.match(e.ON),this.state=4111,this.into_values_source();case e.EOF:case e.SEMICOLON:case e.END:case e.RETURNING:}this.state=4115,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4114,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}update_stmt(){let t,i=new Rl(this.context,this.state);this.enterRule(i,682,e.RULE_update_stmt);try{switch(this.enterOuterAlt(i,1),this.state=4118,this.errorHandler.sync(this),t=this.tokenStream.LA(1),60===t&&(this.state=4117,this.match(e.BATCH)),this.state=4120,this.match(e.UPDATE),this.state=4121,this.simple_table_ref(),this.state=4129,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.state=4122,this.match(e.SET),this.state=4123,this.set_clause_choice(),this.state=4125,this.errorHandler.sync(this),t=this.tokenStream.LA(1),320===t&&(this.state=4124,this.where_expr());break;case e.ON:this.state=4127,this.match(e.ON),this.state=4128,this.into_values_source();break;default:throw new lt(this)}this.state=4132,this.errorHandler.sync(this),t=this.tokenStream.LA(1),255===t&&(this.state=4131,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause_choice(){let t=new Ll(this.context,this.state);this.enterRule(t,684,e.RULE_set_clause_choice);try{switch(this.state=4136,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4134,this.set_clause_list();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4135,this.multiple_column_assignment();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_clause_list(){let t,i=new Tl(this.context,this.state);this.enterRule(i,686,e.RULE_set_clause_list);try{for(this.enterOuterAlt(i,1),this.state=4138,this.set_clause(),this.state=4143,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4139,this.match(e.COMMA),this.state=4140,this.set_clause(),this.state=4145,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause(){let t=new xl(this.context,this.state);this.enterRule(t,688,e.RULE_set_clause);try{this.enterOuterAlt(t,1),this.state=4146,this.set_target(),this.state=4147,this.match(e.EQUALS),this.state=4148,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target(){let t=new kl(this.context,this.state);this.enterRule(t,690,e.RULE_set_target);try{this.enterOuterAlt(t,1),this.state=4150,this.column_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}multiple_column_assignment(){let t=new Al(this.context,this.state);this.enterRule(t,692,e.RULE_multiple_column_assignment);try{this.enterOuterAlt(t,1),this.state=4152,this.set_target_list(),this.state=4153,this.match(e.EQUALS),this.state=4154,this.match(e.LPAREN),this.state=4155,this.simple_values_source(),this.state=4156,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target_list(){let t,i=new Nl(this.context,this.state);this.enterRule(i,694,e.RULE_set_target_list);try{for(this.enterOuterAlt(i,1),this.state=4158,this.match(e.LPAREN),this.state=4159,this.set_target(),this.state=4164,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4160,this.match(e.COMMA),this.state=4161,this.set_target(),this.state=4166,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4167,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_stmt(){let t,i=new Il(this.context,this.state);this.enterRule(i,696,e.RULE_create_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4169,this.match(e.CREATE),this.state=4170,this.match(e.TOPIC),this.state=4174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4171,this.match(e.IF),this.state=4172,this.match(e.NOT),this.state=4173,this.match(e.EXISTS);this.state=4176,this.topic_ref(),this.state=4178,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4177,this.create_topic_entries()),this.state=4181,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4180,this.with_topic_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entries(){let t,i=new Ol(this.context,this.state);this.enterRule(i,698,e.RULE_create_topic_entries);try{for(this.enterOuterAlt(i,1),this.state=4183,this.match(e.LPAREN),this.state=4184,this.create_topic_entry(),this.state=4189,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4185,this.match(e.COMMA),this.state=4186,this.create_topic_entry(),this.state=4191,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4192,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entry(){let t=new Dl(this.context,this.state);this.enterRule(t,700,e.RULE_create_topic_entry);try{this.enterOuterAlt(t,1),this.state=4194,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_topic_settings(){let t=new Ml(this.context,this.state);this.enterRule(t,702,e.RULE_with_topic_settings);try{this.enterOuterAlt(t,1),this.state=4196,this.match(e.WITH),this.state=4197,this.match(e.LPAREN),this.state=4198,this.topic_settings(),this.state=4199,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_stmt(){let t,i=new Pl(this.context,this.state);this.enterRule(i,704,e.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4201,this.match(e.ALTER),this.state=4202,this.match(e.TOPIC),this.state=4205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4203,this.match(e.IF),this.state=4204,this.match(e.EXISTS);for(this.state=4207,this.topic_ref(),this.state=4208,this.alter_topic_action(),this.state=4213,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4209,this.match(e.COMMA),this.state=4210,this.alter_topic_action(),this.state=4215,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_action(){let t=new Fl(this.context,this.state);this.enterRule(t,706,e.RULE_alter_topic_action);try{switch(this.state=4221,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=4216,this.alter_topic_add_consumer();break;case e.ALTER:this.enterOuterAlt(t,2),this.state=4217,this.alter_topic_alter_consumer();break;case e.DROP:this.enterOuterAlt(t,3),this.state=4218,this.alter_topic_drop_consumer();break;case e.SET:this.enterOuterAlt(t,4),this.state=4219,this.alter_topic_set_settings();break;case e.RESET:this.enterOuterAlt(t,5),this.state=4220,this.alter_topic_reset_settings();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_add_consumer(){let t=new Ul(this.context,this.state);this.enterRule(t,708,e.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(t,1),this.state=4223,this.match(e.ADD),this.state=4224,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_create_consumer_entry(){let t,i=new Hl(this.context,this.state);this.enterRule(i,710,e.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(i,1),this.state=4226,this.match(e.CONSUMER),this.state=4227,this.an_id(),this.state=4229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4228,this.topic_consumer_with_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_alter_consumer(){let t=new Bl(this.context,this.state);this.enterRule(t,712,e.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(t,1),this.state=4231,this.match(e.ALTER),this.state=4232,this.match(e.CONSUMER),this.state=4233,this.topic_consumer_ref(),this.state=4234,this.alter_topic_alter_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_alter_consumer_entry(){let t=new Wl(this.context,this.state);this.enterRule(t,714,e.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4238,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=4236,this.topic_alter_consumer_set();break;case e.RESET:this.enterOuterAlt(t,2),this.state=4237,this.topic_alter_consumer_reset();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_drop_consumer(){let t=new Vl(this.context,this.state);this.enterRule(t,716,e.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(t,1),this.state=4240,this.match(e.DROP),this.state=4241,this.match(e.CONSUMER),this.state=4242,this.topic_consumer_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_set(){let t=new zl(this.context,this.state);this.enterRule(t,718,e.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(t,1),this.state=4244,this.match(e.SET),this.state=4245,this.match(e.LPAREN),this.state=4246,this.topic_consumer_settings(),this.state=4247,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_reset(){let t,i=new Gl(this.context,this.state);this.enterRule(i,720,e.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(i,1),this.state=4249,this.match(e.RESET),this.state=4250,this.match(e.LPAREN),this.state=4251,this.an_id(),this.state=4256,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4252,this.match(e.COMMA),this.state=4253,this.an_id(),this.state=4258,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4259,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_set_settings(){let t=new jl(this.context,this.state);this.enterRule(t,722,e.RULE_alter_topic_set_settings);try{this.enterOuterAlt(t,1),this.state=4261,this.match(e.SET),this.state=4262,this.match(e.LPAREN),this.state=4263,this.topic_settings(),this.state=4264,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_reset_settings(){let t,i=new Kl(this.context,this.state);this.enterRule(i,724,e.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(i,1),this.state=4266,this.match(e.RESET),this.state=4267,this.match(e.LPAREN),this.state=4268,this.an_id(),this.state=4273,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4269,this.match(e.COMMA),this.state=4270,this.an_id_pure(),this.state=4275,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4276,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_topic_stmt(){let t=new Yl(this.context,this.state);this.enterRule(t,726,e.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=4278,this.match(e.DROP),this.state=4279,this.match(e.TOPIC),this.state=4282,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)))this.state=4280,this.match(e.IF),this.state=4281,this.match(e.EXISTS);this.state=4284,this.topic_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_settings(){let t,i=new ql(this.context,this.state);this.enterRule(i,728,e.RULE_topic_settings);try{for(this.enterOuterAlt(i,1),this.state=4286,this.topic_settings_entry(),this.state=4291,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4287,this.match(e.COMMA),this.state=4288,this.topic_settings_entry(),this.state=4293,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_settings_entry(){let t=new $l(this.context,this.state);this.enterRule(t,730,e.RULE_topic_settings_entry);try{this.enterOuterAlt(t,1),this.state=4294,this.an_id(),this.state=4295,this.match(e.EQUALS),this.state=4296,this.topic_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_setting_value(){let t=new Ql(this.context,this.state);this.enterRule(t,732,e.RULE_topic_setting_value);try{this.enterOuterAlt(t,1),this.state=4298,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_with_settings(){let t=new Xl(this.context,this.state);this.enterRule(t,734,e.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(t,1),this.state=4300,this.match(e.WITH),this.state=4301,this.match(e.LPAREN),this.state=4302,this.topic_consumer_settings(),this.state=4303,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_settings(){let t,i=new Zl(this.context,this.state);this.enterRule(i,736,e.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(i,1),this.state=4305,this.topic_consumer_settings_entry(),this.state=4310,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4306,this.match(e.COMMA),this.state=4307,this.topic_consumer_settings_entry(),this.state=4312,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_consumer_settings_entry(){let t=new Jl(this.context,this.state);this.enterRule(t,738,e.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(t,1),this.state=4313,this.an_id(),this.state=4314,this.match(e.EQUALS),this.state=4315,this.topic_consumer_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_setting_value(){let t=new eh(this.context,this.state);this.enterRule(t,740,e.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(t,1),this.state=4317,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_ref(){let t=new th(this.context,this.state);this.enterRule(t,742,e.RULE_topic_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4322,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,460,this.context)))this.state=4319,this.cluster_expr(),this.state=4320,this.match(e.DOT);this.state=4324,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_ref(){let t=new ih(this.context,this.state);this.enterRule(t,744,e.RULE_topic_consumer_ref);try{this.enterOuterAlt(t,1),this.state=4326,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}null_treatment(){let t=new sh(this.context,this.state);this.enterRule(t,746,e.RULE_null_treatment);try{switch(this.state=4332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESPECT:this.enterOuterAlt(t,1),this.state=4328,this.match(e.RESPECT),this.state=4329,this.match(e.NULLS);break;case e.IGNORE:this.enterOuterAlt(t,2),this.state=4330,this.match(e.IGNORE),this.state=4331,this.match(e.NULLS);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}filter_clause(){let t=new nh(this.context,this.state);this.enterRule(t,748,e.RULE_filter_clause);try{this.enterOuterAlt(t,1),this.state=4334,this.match(e.FILTER),this.state=4335,this.match(e.LPAREN),this.state=4336,this.where_expr(),this.state=4337,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name_or_specification(){let t=new rh(this.context,this.state);this.enterRule(t,750,e.RULE_window_name_or_specification);try{switch(this.state=4341,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4339,this.window_name();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4340,this.window_specification();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name(){let t=new oh(this.context,this.state);this.enterRule(t,752,e.RULE_window_name);try{this.enterOuterAlt(t,1),this.state=4343,this.an_id_window()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_clause(){let t=new ah(this.context,this.state);this.enterRule(t,754,e.RULE_window_clause);try{this.enterOuterAlt(t,1),this.state=4345,this.match(e.WINDOW),this.state=4346,this.window_definition_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_definition_list(){let t,i=new ch(this.context,this.state);this.enterRule(i,756,e.RULE_window_definition_list);try{for(this.enterOuterAlt(i,1),this.state=4348,this.window_definition(),this.state=4353,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=4349,this.match(e.COMMA),this.state=4350,this.window_definition(),this.state=4355,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_definition(){let t=new lh(this.context,this.state);this.enterRule(t,758,e.RULE_window_definition);try{this.enterOuterAlt(t,1),this.state=4356,this.new_window_name(),this.state=4357,this.match(e.AS),this.state=4358,this.window_specification()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}new_window_name(){let t=new hh(this.context,this.state);this.enterRule(t,760,e.RULE_new_window_name);try{this.enterOuterAlt(t,1),this.state=4360,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification(){let t=new dh(this.context,this.state);this.enterRule(t,762,e.RULE_window_specification);try{this.enterOuterAlt(t,1),this.state=4362,this.match(e.LPAREN),this.state=4363,this.window_specification_details(),this.state=4364,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification_details(){let t,i=new uh(this.context,this.state);this.enterRule(i,764,e.RULE_window_specification_details);try{if(this.enterOuterAlt(i,1),1===(this.state=4367,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,464,this.context)))this.state=4366,this.existing_window_name();this.state=4370,this.errorHandler.sync(this),t=this.tokenStream.LA(1),218===t&&(this.state=4369,this.window_partition_clause()),this.state=4373,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=4372,this.window_order_clause()),this.state=4376,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(149===t||236===t||263===t)&&(this.state=4375,this.window_frame_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}existing_window_name(){let t=new gh(this.context,this.state);this.enterRule(t,766,e.RULE_existing_window_name);try{this.enterOuterAlt(t,1),this.state=4378,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_partition_clause(){let t,i=new ph(this.context,this.state);this.enterRule(i,768,e.RULE_window_partition_clause);try{this.enterOuterAlt(i,1),this.state=4380,this.match(e.PARTITION),this.state=4382,this.errorHandler.sync(this),t=this.tokenStream.LA(1),79===t&&(this.state=4381,this.match(e.COMPACT)),this.state=4384,this.match(e.BY),this.state=4385,this.named_expr_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_order_clause(){let t=new mh(this.context,this.state);this.enterRule(t,770,e.RULE_window_order_clause);try{this.enterOuterAlt(t,1),this.state=4387,this.order_by_clause()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_clause(){let t,i=new fh(this.context,this.state);this.enterRule(i,772,e.RULE_window_frame_clause);try{this.enterOuterAlt(i,1),this.state=4389,this.window_frame_units(),this.state=4390,this.window_frame_extent(),this.state=4392,this.errorHandler.sync(this),t=this.tokenStream.LA(1),124===t&&(this.state=4391,this.window_frame_exclusion())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_units(){let t,i=new _h(this.context,this.state);this.enterRule(i,774,e.RULE_window_frame_units);try{this.enterOuterAlt(i,1),this.state=4394,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_extent(){let t=new vh(this.context,this.state);this.enterRule(t,776,e.RULE_window_frame_extent);try{switch(this.state=4398,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,470,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4396,this.window_frame_bound();break;case 2:this.enterOuterAlt(t,2),this.state=4397,this.window_frame_between()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_between(){let t=new Ch(this.context,this.state);this.enterRule(t,778,e.RULE_window_frame_between);try{this.enterOuterAlt(t,1),this.state=4400,this.match(e.BETWEEN),this.state=4401,this.window_frame_bound(),this.state=4402,this.match(e.AND),this.state=4403,this.window_frame_bound()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_bound(){let t,i=new Eh(this.context,this.state);this.enterRule(i,780,e.RULE_window_frame_bound);try{switch(this.state=4412,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,472,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4405,this.match(e.CURRENT),this.state=4406,this.match(e.ROW);break;case 2:switch(this.enterOuterAlt(i,2),this.state=4409,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,471,this.context)){case 1:this.state=4407,this.expr();break;case 2:this.state=4408,this.match(e.UNBOUNDED)}this.state=4411,t=this.tokenStream.LA(1),138===t||228===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_exclusion(){let t=new bh(this.context,this.state);this.enterRule(t,782,e.RULE_window_frame_exclusion);try{switch(this.state=4424,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,473,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4414,this.match(e.EXCLUDE),this.state=4415,this.match(e.CURRENT),this.state=4416,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=4417,this.match(e.EXCLUDE),this.state=4418,this.match(e.GROUP);break;case 3:this.enterOuterAlt(t,3),this.state=4419,this.match(e.EXCLUDE),this.state=4420,this.match(e.TIES);break;case 4:this.enterOuterAlt(t,4),this.state=4421,this.match(e.EXCLUDE),this.state=4422,this.match(e.NO),this.state=4423,this.match(e.OTHERS)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}use_stmt(){let t=new Sh(this.context,this.state);this.enterRule(t,784,e.RULE_use_stmt);try{this.enterOuterAlt(t,1),this.state=4426,this.match(e.USE),this.state=4427,this.cluster_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}subselect_stmt(){let t=new yh(this.context,this.state);this.enterRule(t,786,e.RULE_subselect_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4434,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=4429,this.match(e.LPAREN),this.state=4430,this.select_stmt(),this.state=4431,this.match(e.RPAREN);break;case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=4433,this.select_unparenthesized_stmt();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}named_nodes_stmt(){let t=new wh(this.context,this.state);this.enterRule(t,788,e.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4436,this.bind_parameter_list(),this.state=4437,this.match(e.EQUALS),this.state=4440,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,475,this.context)){case 1:this.state=4438,this.expr();break;case 2:this.state=4439,this.subselect_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}commit_stmt(){let t=new Rh(this.context,this.state);this.enterRule(t,790,e.RULE_commit_stmt);try{this.enterOuterAlt(t,1),this.state=4442,this.match(e.COMMIT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rollback_stmt(){let t=new Lh(this.context,this.state);this.enterRule(t,792,e.RULE_rollback_stmt);try{this.enterOuterAlt(t,1),this.state=4444,this.match(e.ROLLBACK)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}analyze_table(){let t,i=new Th(this.context,this.state);this.enterRule(i,794,e.RULE_analyze_table);try{this.enterOuterAlt(i,1),this.state=4446,this.simple_table_ref(),this.state=4451,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4447,this.match(e.LPAREN),this.state=4448,this.column_list(),this.state=4449,this.match(e.RPAREN))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_table_list(){let t,i=new xh(this.context,this.state);this.enterRule(i,796,e.RULE_analyze_table_list);try{let s;for(this.enterOuterAlt(i,1),this.state=4453,this.analyze_table(),this.state=4458,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4454,this.match(e.COMMA),this.state=4455,this.analyze_table()),this.state=4460,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,477,this.context);this.state=4462,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=4461,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_stmt(){let t=new kh(this.context,this.state);this.enterRule(t,798,e.RULE_analyze_stmt);try{this.enterOuterAlt(t,1),this.state=4464,this.match(e.ANALYZE),this.state=4465,this.analyze_table_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_sequence_stmt(){let t,i=new Ah(this.context,this.state);this.enterRule(i,800,e.RULE_alter_sequence_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4467,this.match(e.ALTER),this.state=4468,this.match(e.SEQUENCE),this.state=4471,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,479,this.context)))this.state=4469,this.match(e.IF),this.state=4470,this.match(e.EXISTS);this.state=4473,this.object_ref(),this.state=4475,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4474,this.alter_sequence_action(),this.state=4477,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(159===t||250===t||277===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_sequence_action(){let t,i=new Nh(this.context,this.state);this.enterRule(i,802,e.RULE_alter_sequence_action);try{switch(this.state=4495,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,484,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4479,this.match(e.START),this.state=4481,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4480,this.match(e.WITH)),this.state=4483,this.integer();break;case 2:this.enterOuterAlt(i,2),this.state=4484,this.match(e.RESTART),this.state=4486,this.errorHandler.sync(this),t=this.tokenStream.LA(1),322===t&&(this.state=4485,this.match(e.WITH)),this.state=4488,this.integer();break;case 3:this.enterOuterAlt(i,3),this.state=4489,this.match(e.RESTART);break;case 4:this.enterOuterAlt(i,4),this.state=4490,this.match(e.INCREMENT),this.state=4492,this.errorHandler.sync(this),t=this.tokenStream.LA(1),67===t&&(this.state=4491,this.match(e.BY)),this.state=4494,this.integer()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}identifier(){let t,i=new Ih(this.context,this.state);this.enterRule(i,804,e.RULE_identifier);try{this.enterOuterAlt(i,1),this.state=4497,t=this.tokenStream.LA(1),327===t||328===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id(){let t=new Oh(this.context,this.state);this.enterRule(t,806,e.RULE_id);try{switch(this.state=4501,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4499,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4500,this.keyword();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_schema(){let t=new Dh(this.context,this.state);this.enterRule(t,808,e.RULE_id_schema);try{switch(this.state=4510,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4503,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4504,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4505,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4506,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4507,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4508,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4509,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr(){let t=new Mh(this.context,this.state);this.enterRule(t,810,e.RULE_id_expr);try{switch(this.state=4518,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4512,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4513,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4514,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,4),this.state=4515,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,5),this.state=4516,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,6),this.state=4517,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr_in(){let t=new Ph(this.context,this.state);this.enterRule(t,812,e.RULE_id_expr_in);try{switch(this.state=4525,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4520,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4521,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4522,this.keyword_alter_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,4),this.state=4523,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,5),this.state=4524,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_window(){let t=new Fh(this.context,this.state);this.enterRule(t,814,e.RULE_id_window);try{switch(this.state=4535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4527,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4528,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4529,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4530,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4531,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4532,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4533,this.keyword_in_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4534,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table(){let t=new Uh(this.context,this.state);this.enterRule(t,816,e.RULE_id_table);try{switch(this.state=4544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4537,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4538,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4539,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4540,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4541,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4542,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4543,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_without(){let t=new Hh(this.context,this.state);this.enterRule(t,818,e.RULE_id_without);try{switch(this.state=4553,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4546,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4547,this.keyword_compat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4548,this.keyword_table_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,4),this.state=4549,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4550,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4551,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4552,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_hint(){let t=new Bh(this.context,this.state);this.enterRule(t,820,e.RULE_id_hint);try{switch(this.state=4563,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4555,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4556,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4557,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4558,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4559,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4560,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4561,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,8),this.state=4562,this.keyword_window_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_as_compat(){let t=new Wh(this.context,this.state);this.enterRule(t,822,e.RULE_id_as_compat);try{switch(this.state=4567,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4565,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4566,this.keyword_as_compat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id(){let t=new Vh(this.context,this.state);this.enterRule(t,824,e.RULE_an_id);try{switch(this.state=4571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4569,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4570,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_or_type(){let t=new zh(this.context,this.state);this.enterRule(t,826,e.RULE_an_id_or_type);try{switch(this.state=4575,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4573,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4574,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_schema(){let t=new Gh(this.context,this.state);this.enterRule(t,828,e.RULE_an_id_schema);try{switch(this.state=4579,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4577,this.id_schema();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4578,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr(){let t=new jh(this.context,this.state);this.enterRule(t,830,e.RULE_an_id_expr);try{switch(this.state=4583,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4581,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4582,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr_in(){let t=new Kh(this.context,this.state);this.enterRule(t,832,e.RULE_an_id_expr_in);try{switch(this.state=4587,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4585,this.id_expr_in();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4586,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_window(){let t=new Yh(this.context,this.state);this.enterRule(t,834,e.RULE_an_id_window);try{switch(this.state=4591,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4589,this.id_window();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4590,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_table(){let t=new qh(this.context,this.state);this.enterRule(t,836,e.RULE_an_id_table);try{switch(this.state=4595,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4593,this.id_table();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4594,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_without(){let t=new $h(this.context,this.state);this.enterRule(t,838,e.RULE_an_id_without);try{switch(this.state=4599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4597,this.id_without();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4598,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_hint(){let t=new Qh(this.context,this.state);this.enterRule(t,840,e.RULE_an_id_hint);try{switch(this.state=4603,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4601,this.id_hint();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4602,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_pure(){let t=new Xh(this.context,this.state);this.enterRule(t,842,e.RULE_an_id_pure);try{switch(this.state=4607,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4605,this.identifier();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4606,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_as_compat(){let t=new Zh(this.context,this.state);this.enterRule(t,844,e.RULE_an_id_as_compat);try{switch(this.state=4611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4609,this.id_as_compat();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4610,this.match(e.STRING_VALUE);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}view_name(){let t=new Jh(this.context,this.state);this.enterRule(t,846,e.RULE_view_name);try{switch(this.state=4616,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,505,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4613,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=4614,this.match(e.PRIMARY),this.state=4615,this.match(e.KEY)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix(){let t=new ed(this.context,this.state);this.enterRule(t,848,e.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(t,1),this.state=4621,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,506,this.context)))this.state=4618,this.an_id(),this.state=4619,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cluster_expr(){let t=new td(this.context,this.state);this.enterRule(t,850,e.RULE_cluster_expr);try{if(this.enterOuterAlt(t,1),1===(this.state=4626,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,507,this.context)))this.state=4623,this.an_id(),this.state=4624,this.match(e.COLON);switch(this.state=4630,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4628,this.pure_column_or_named();break;case e.ASTERISK:this.state=4629,this.match(e.ASTERISK);break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_type(){let t=new id(this.context,this.state);this.enterRule(t,852,e.RULE_id_or_type);try{switch(this.state=4634,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4632,this.id();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4633,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix_or_type(){let t=new sd(this.context,this.state);this.enterRule(t,854,e.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(t,1),this.state=4639,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,510,this.context)))this.state=4636,this.an_id_or_type(),this.state=4637,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_at(){let t,i=new nd(this.context,this.state);this.enterRule(i,856,e.RULE_id_or_at);try{this.enterOuterAlt(i,1),this.state=4642,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4641,this.match(e.COMMAT)),this.state=4644,this.an_id_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id_table_or_type(){let t=new rd(this.context,this.state);this.enterRule(t,858,e.RULE_id_table_or_type);try{switch(this.state=4648,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUERY:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4646,this.an_id_table();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4647,this.type_id();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table_or_at(){let t,i=new od(this.context,this.state);this.enterRule(i,860,e.RULE_id_table_or_at);try{this.enterOuterAlt(i,1),this.state=4651,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=4650,this.match(e.COMMAT)),this.state=4653,this.id_table_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword(){let t=new ad(this.context,this.state);this.enterRule(t,862,e.RULE_keyword);try{switch(this.state=4663,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.BATCH:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GLOBAL:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENT:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LOCAL:case e.LOGIN:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOLOGIN:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUERY:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTART:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SEQUENCE:case e.SOURCE:case e.START:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRANSFER:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,1),this.state=4655,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,2),this.state=4656,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4657,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4658,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,5),this.state=4659,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,6),this.state=4660,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,7),this.state=4661,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4662,this.keyword_hint_uncompat();break;default:throw new lt(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_expr_uncompat(){let t,i=new cd(this.context,this.state);this.enterRule(i,864,e.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(i,1),this.state=4665,t=this.tokenStream.LA(1),!(t-52&-32)&&1<<t-52&811009||!(t-88&-32)&&1<<t-88&134217757||!(t-127&-32)&&1<<t-127&33603585||!(t-174&-32)&&1<<t-174&167772167||!(t-232&-32)&&1<<t-232&549453857||269===t||283===t||!(t-303&-32)&&1<<t-303&196609?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_table_uncompat(){let t,i=new ld(this.context,this.state);this.enterRule(i,866,e.RULE_keyword_table_uncompat);try{this.enterOuterAlt(i,1),this.state=4667,t=this.tokenStream.LA(1),47===t||119===t||278===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_select_uncompat(){let t,i=new hd(this.context,this.state);this.enterRule(i,868,e.RULE_keyword_select_uncompat);try{this.enterOuterAlt(i,1),this.state=4669,t=this.tokenStream.LA(1),!(t-42&-32)&&1<<t-42&641||109===t||123===t||!(t-151&-32)&&1<<t-151&2147745793||!(t-305&-32)&&1<<t-305&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_alter_uncompat(){let t=new dd(this.context,this.state);this.enterRule(t,870,e.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(t,1),this.state=4671,this.match(e.COLUMN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_in_uncompat(){let t=new ud(this.context,this.state);this.enterRule(t,872,e.RULE_keyword_in_uncompat);try{this.enterOuterAlt(t,1),this.state=4673,this.match(e.COMPACT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_window_uncompat(){let t,i=new gd(this.context,this.state);this.enterRule(i,874,e.RULE_keyword_window_uncompat);try{this.enterOuterAlt(i,1),this.state=4675,t=this.tokenStream.LA(1),149===t||236===t||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_hint_uncompat(){let t,i=new pd(this.context,this.state);this.enterRule(i,876,e.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(i,1),this.state=4677,t=this.tokenStream.LA(1),77===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_as_compat(){let t,i=new md(this.context,this.state);this.enterRule(i,878,e.RULE_keyword_as_compat);try{this.enterOuterAlt(i,1),this.state=4679,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4024598343||!(t-104&-32)&&1<<t-104&4015470493||!(t-136&-32)&&1<<t-136&3221118877||!(t-168&-32)&&1<<t-168&2013213709||!(t-202&-32)&&1<<t-202&3086980575||!(t-234&-32)&&1<<t-234&2529672179||!(t-267&-32)&&1<<t-267&4286506979||!(t-299&-32)&&1<<t-299&101302185?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_compat(){let t,i=new fd(this.context,this.state);this.enterRule(i,880,e.RULE_keyword_compat);try{this.enterOuterAlt(i,1),this.state=4681,t=this.tokenStream.LA(1),!(t-38&-32)&&1<<t-38&2817496559||!(t-72&-32)&&1<<t-72&4293066575||!(t-104&-32)&&1<<t-104&4017567709||!(t-136&-32)&&1<<t-136&4294860701||!(t-168&-32)&&1<<t-168&2147434045||!(t-200&-32)&&1<<t-200&4294965245||!(t-233&-32)&&1<<t-233&2946463719||!(t-265&-32)&&1<<t-265&4261126061||!(t-297&-32)&&1<<t-297&439877287?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_id(){let t,i=new _d(this.context,this.state);this.enterRule(i,882,e.RULE_type_id);try{this.enterOuterAlt(i,1),this.state=4683,t=this.tokenStream.LA(1),68===t||105===t||118===t||137===t||183===t||211===t||!(t-248&-32)&&1<<t-248&2155872257||!(t-290&-32)&&1<<t-290&67110913?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bool_value(){let t,i=new vd(this.context,this.state);this.enterRule(i,884,e.RULE_bool_value);try{this.enterOuterAlt(i,1),this.state=4685,t=this.tokenStream.LA(1),132===t||300===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}real(){let t=new Cd(this.context,this.state);this.enterRule(t,886,e.RULE_real);try{this.enterOuterAlt(t,1),this.state=4687,this.match(e.REAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer(){let t,i=new Ed(this.context,this.state);this.enterRule(i,888,e.RULE_integer);try{this.enterOuterAlt(i,1),this.state=4689,t=this.tokenStream.LA(1),329===t||330===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_query_yq(){let t=new bd(this.context,this.state);this.enterRule(t,890,e.RULE_sql_query_yq);try{switch(this.state=4696,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,515,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4691,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(t,2),this.state=4692,this.match(e.PRAGMA),this.state=4693,this.match(e.ANSI),this.state=4694,this.match(e.DIGITS),this.state=4695,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list_yq(){let t,i=new Sd(this.context,this.state);this.enterRule(i,892,e.RULE_sql_stmt_list_yq);try{let s;for(this.enterOuterAlt(i,1),this.state=4701,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4698,this.match(e.SEMICOLON),this.state=4703,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=4704,this.sql_stmt_yq(),this.state=4713,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=4706,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4705,this.match(e.SEMICOLON),this.state=4708,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(22===t);this.state=4710,this.sql_stmt_yq()}this.state=4715,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,518,this.context)}for(this.state=4719,this.errorHandler.sync(this),t=this.tokenStream.LA(1);22===t;)this.state=4716,this.match(e.SEMICOLON),this.state=4721,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4722,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_yq(){let t,i=new yd(this.context,this.state);this.enterRule(i,894,e.RULE_sql_stmt_yq);try{this.enterOuterAlt(i,1),this.state=4729,this.errorHandler.sync(this),t=this.tokenStream.LA(1),128===t&&(this.state=4724,this.match(e.EXPLAIN),this.state=4727,this.errorHandler.sync(this),t=this.tokenStream.LA(1),233===t&&(this.state=4725,this.match(e.QUERY),this.state=4726,this.match(e.PLAN))),this.state=4731,this.sql_stmt_core_yq()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core_yq(){let t=new wd(this.context,this.state);this.enterRule(t,896,e.RULE_sql_stmt_core_yq);try{switch(this.state=4746,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,522,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4733,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4734,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=4735,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=4736,this.use_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=4737,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(t,6),this.state=4738,this.declare_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=4739,this.import_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=4740,this.export_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=4741,this.do_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=4742,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=4743,this.if_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=4744,this.for_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=4745,this.values_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_name(){let t=new Rd(this.context,this.state);this.enterRule(t,898,e.RULE_replication_name);try{this.enterOuterAlt(t,1),this.state=4748,this.match(e.AS),this.state=4749,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}where_expr(){let t=new Ld(this.context,this.state);this.enterRule(t,900,e.RULE_where_expr);try{this.enterOuterAlt(t,1),this.state=4751,this.match(e.WHERE),this.state=4752,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}static{this._serializedATN=[4,1,334,4755,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439,7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444,2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450,7,450,1,0,1,0,1,0,1,0,1,0,3,0,908,8,0,1,1,5,1,911,8,1,10,1,12,1,914,9,1,1,1,1,1,4,1,918,8,1,11,1,12,1,919,1,1,5,1,923,8,1,10,1,12,1,926,9,1,1,1,5,1,929,8,1,10,1,12,1,932,9,1,1,1,1,1,1,2,5,2,937,8,2,10,2,12,2,940,9,2,1,2,1,2,1,3,5,3,945,8,3,10,3,12,3,948,9,3,1,3,1,3,4,3,952,8,3,11,3,12,3,953,5,3,956,8,3,10,3,12,3,959,9,3,1,3,1,3,1,3,5,3,964,8,3,10,3,12,3,967,9,3,1,4,1,4,3,4,971,8,4,1,5,1,5,1,5,3,5,976,8,5,3,5,978,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1042,8,6,1,7,1,7,1,7,5,7,1047,8,7,10,7,12,7,1050,9,7,1,7,3,7,1053,8,7,1,8,1,8,1,8,5,8,1058,8,8,10,8,12,8,1061,9,8,1,9,1,9,1,9,5,9,1066,8,9,10,9,12,9,1069,9,9,1,10,1,10,3,10,1073,8,10,1,11,1,11,3,11,1077,8,11,1,11,1,11,1,11,1,12,3,12,1083,8,12,1,12,1,12,1,12,1,12,3,12,1089,8,12,1,12,3,12,1092,8,12,1,12,1,12,3,12,1096,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1104,8,12,1,12,1,12,3,12,1108,8,12,1,12,3,12,1111,8,12,1,12,1,12,3,12,1115,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1126,8,12,1,12,4,12,1129,8,12,11,12,12,12,1130,3,12,1133,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1140,8,14,10,14,12,14,1143,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1163,8,18,1,18,5,18,1166,8,18,10,18,12,18,1169,9,18,1,18,1,18,1,18,1,18,4,18,1175,8,18,11,18,12,18,1176,3,18,1179,8,18,1,19,1,19,1,19,5,19,1184,8,19,10,19,12,19,1187,9,19,1,20,1,20,1,20,5,20,1192,8,20,10,20,12,20,1195,9,20,1,21,1,21,1,21,5,21,1200,8,21,10,21,12,21,1203,9,21,1,22,1,22,1,22,1,22,3,22,1209,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1219,8,24,3,24,1221,8,24,5,24,1223,8,24,10,24,12,24,1226,9,24,1,24,1,24,3,24,1230,8,24,1,25,1,25,3,25,1234,8,25,1,25,1,25,1,26,1,26,3,26,1240,8,26,1,26,1,26,1,27,1,27,3,27,1246,8,27,1,28,1,28,3,28,1250,8,28,1,29,1,29,3,29,1254,8,29,1,29,3,29,1257,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1264,8,30,1,30,1,30,1,30,1,30,3,30,1270,8,30,5,30,1272,8,30,10,30,12,30,1275,9,30,1,31,1,31,3,31,1279,8,31,1,31,3,31,1282,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1294,8,32,10,32,12,32,1297,9,32,1,33,1,33,3,33,1301,8,33,1,33,3,33,1304,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1318,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1325,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1336,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1347,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1367,8,38,1,38,1,38,1,39,1,39,3,39,1373,8,39,1,39,4,39,1376,8,39,11,39,12,39,1377,1,39,1,39,3,39,1382,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1396,8,40,3,40,1398,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1405,8,42,1,43,1,43,1,44,1,44,3,44,1411,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1420,8,46,10,46,12,46,1423,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1430,8,47,1,48,1,48,1,48,1,48,3,48,1436,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1443,8,49,1,49,1,49,1,49,1,49,5,49,1449,8,49,10,49,12,49,1452,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1464,8,51,1,51,1,51,1,52,1,52,3,52,1470,8,52,1,52,1,52,3,52,1474,8,52,1,52,3,52,1477,8,52,3,52,1479,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1487,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1495,8,54,1,54,1,54,1,54,1,54,3,54,1501,8,54,1,54,1,54,1,54,1,54,3,54,1507,8,54,1,54,1,54,1,55,1,55,3,55,1513,8,55,1,55,3,55,1516,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1523,8,56,10,56,12,56,1526,9,56,1,57,1,57,1,57,1,57,5,57,1532,8,57,10,57,12,57,1535,9,57,1,57,1,57,1,58,1,58,3,58,1541,8,58,1,59,1,59,1,59,1,59,5,59,1547,8,59,10,59,12,59,1550,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1562,8,61,1,62,1,62,1,62,5,62,1567,8,62,10,62,12,62,1570,9,62,1,62,3,62,1573,8,62,1,63,1,63,1,63,5,63,1578,8,63,10,63,12,63,1581,9,63,1,63,3,63,1584,8,63,1,64,1,64,1,64,3,64,1589,8,64,1,65,1,65,1,65,5,65,1594,8,65,10,65,12,65,1597,9,65,1,66,1,66,1,66,1,66,3,66,1603,8,66,1,66,3,66,1606,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1613,8,67,1,67,1,67,3,67,1617,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1627,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1650,8,71,1,72,1,72,1,72,1,72,3,72,1656,8,72,1,73,1,73,3,73,1660,8,73,1,74,1,74,1,74,5,74,1665,8,74,10,74,12,74,1668,9,74,1,75,1,75,1,75,3,75,1673,8,75,1,76,1,76,1,76,5,76,1678,8,76,10,76,12,76,1681,9,76,1,77,3,77,1684,8,77,1,77,1,77,3,77,1688,8,77,1,78,1,78,1,79,1,79,3,79,1694,8,79,1,80,1,80,1,80,3,80,1699,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1708,8,82,1,82,3,82,1711,8,82,1,82,1,82,1,82,1,82,3,82,1717,8,82,1,83,1,83,1,83,3,83,1722,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1730,8,84,1,85,1,85,1,85,5,85,1735,8,85,10,85,12,85,1738,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1757,8,88,10,88,12,88,1760,9,88,1,88,3,88,1763,8,88,3,88,1765,8,88,1,88,1,88,3,88,1769,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1776,8,89,10,89,12,89,1779,9,89,1,89,3,89,1782,8,89,3,89,1784,8,89,1,89,1,89,3,89,1788,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1795,8,90,10,90,12,90,1798,9,90,1,90,3,90,1801,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1837,8,96,10,96,12,96,1840,9,96,1,96,3,96,1843,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1863,8,99,1,99,3,99,1866,8,99,1,99,1,99,1,99,1,99,3,99,1872,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1892,8,100,1,100,5,100,1895,8,100,10,100,12,100,1898,9,100,1,101,1,101,1,101,3,101,1903,8,101,1,101,5,101,1906,8,101,10,101,12,101,1909,9,101,3,101,1911,8,101,1,102,1,102,3,102,1915,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1942,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1950,8,105,1,106,3,106,1953,8,106,1,106,1,106,1,106,5,106,1958,8,106,10,106,12,106,1961,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1973,8,109,1,109,1,109,3,109,1977,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1989,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,2e3,8,112,10,112,12,112,2003,9,112,1,112,1,112,3,112,2007,8,112,1,113,1,113,1,113,1,113,1,113,3,113,2014,8,113,1,114,1,114,3,114,2018,8,114,1,115,1,115,1,115,5,115,2023,8,115,10,115,12,115,2026,9,115,1,116,1,116,1,116,1,116,5,116,2032,8,116,10,116,12,116,2035,9,116,1,117,1,117,1,117,1,117,5,117,2041,8,117,10,117,12,117,2044,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2051,8,118,1,119,1,119,3,119,2055,8,119,1,119,1,119,3,119,2059,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2066,8,120,3,120,2068,8,120,1,121,3,121,2071,8,121,1,121,1,121,1,121,3,121,2076,8,121,1,121,1,121,1,121,3,121,2081,8,121,1,122,1,122,3,122,2085,8,122,1,122,1,122,1,122,5,122,2090,8,122,10,122,12,122,2093,9,122,1,122,1,122,1,122,1,122,3,122,2099,8,122,1,122,1,122,3,122,2103,8,122,1,122,3,122,2106,8,122,1,122,1,122,3,122,2110,8,122,1,122,1,122,3,122,2114,8,122,3,122,2116,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2125,8,124,10,124,12,124,2128,9,124,1,125,1,125,1,125,1,125,5,125,2134,8,125,10,125,12,125,2137,9,125,1,125,1,125,3,125,2141,8,125,1,125,1,125,1,125,1,125,3,125,2147,8,125,1,125,1,125,1,125,3,125,2152,8,125,1,125,3,125,2155,8,125,1,125,1,125,3,125,2159,8,125,1,125,1,125,3,125,2163,8,125,1,126,3,126,2166,8,126,1,127,1,127,3,127,2170,8,127,1,127,1,127,3,127,2174,8,127,1,127,1,127,1,127,1,127,5,127,2180,8,127,10,127,12,127,2183,9,127,1,127,3,127,2186,8,127,1,127,1,127,3,127,2190,8,127,1,127,1,127,3,127,2194,8,127,1,127,3,127,2197,8,127,1,127,3,127,2200,8,127,1,127,1,127,3,127,2204,8,127,1,127,3,127,2207,8,127,1,127,3,127,2210,8,127,1,128,1,128,1,128,3,128,2215,8,128,1,128,3,128,2218,8,128,1,128,3,128,2221,8,128,1,128,3,128,2224,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2238,8,129,3,129,2240,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2251,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2259,8,132,10,132,12,132,2262,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2271,8,134,1,134,3,134,2274,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2281,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2305,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2314,8,138,10,138,12,138,2317,9,138,1,139,4,139,2320,8,139,11,139,12,139,2321,1,140,1,140,3,140,2326,8,140,1,141,1,141,3,141,2330,8,141,1,141,1,141,3,141,2334,8,141,1,141,1,141,3,141,2338,8,141,1,141,1,141,3,141,2342,8,141,1,141,1,141,3,141,2346,8,141,1,141,1,141,3,141,2350,8,141,1,141,1,141,1,141,1,141,3,141,2356,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2363,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2373,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2382,8,144,10,144,12,144,2385,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2395,8,146,10,146,12,146,2398,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2411,8,149,10,149,12,149,2414,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2421,8,151,10,151,12,151,2424,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2443,8,158,1,158,1,158,1,159,1,159,3,159,2449,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2456,8,159,1,160,1,160,1,160,5,160,2461,8,160,10,160,12,160,2464,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2471,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2478,8,163,10,163,12,163,2481,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2517,8,168,3,168,2519,8,168,1,169,3,169,2522,8,169,1,169,1,169,1,169,3,169,2527,8,169,1,169,1,169,3,169,2531,8,169,5,169,2533,8,169,10,169,12,169,2536,9,169,1,170,1,170,1,170,3,170,2541,8,170,1,171,1,171,1,171,1,171,3,171,2547,8,171,1,171,1,171,3,171,2551,8,171,1,172,1,172,1,172,3,172,2556,8,172,1,172,1,172,1,172,3,172,2561,8,172,3,172,2563,8,172,1,173,1,173,3,173,2567,8,173,1,173,1,173,1,173,3,173,2572,8,173,1,173,3,173,2575,8,173,3,173,2577,8,173,1,173,1,173,3,173,2581,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2592,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2603,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2614,8,179,1,179,1,179,3,179,2618,8,179,1,179,1,179,3,179,2622,8,179,1,179,1,179,3,179,2626,8,179,1,179,3,179,2629,8,179,1,179,1,179,3,179,2633,8,179,1,179,3,179,2636,8,179,1,180,1,180,1,180,1,180,3,180,2642,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2649,8,181,10,181,12,181,2652,9,181,3,181,2654,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2668,8,182,1,182,1,182,1,182,1,182,3,182,2674,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2687,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2694,8,184,1,184,1,184,1,184,3,184,2699,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2706,8,186,1,187,1,187,1,187,5,187,2711,8,187,10,187,12,187,2714,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2722,8,189,1,190,1,190,1,190,3,190,2727,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2735,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2748,8,191,10,191,12,191,2751,9,191,1,192,1,192,1,192,3,192,2756,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2764,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2773,8,194,1,194,1,194,3,194,2777,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2786,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2798,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2805,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2813,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2834,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2842,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2851,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2861,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2868,8,207,10,207,12,207,2871,9,207,1,207,1,207,3,207,2875,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2882,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2892,8,209,1,209,1,209,1,209,3,209,2897,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2904,8,209,10,209,12,209,2907,9,209,1,209,3,209,2910,8,209,1,209,1,209,3,209,2914,8,209,1,209,3,209,2917,8,209,1,209,3,209,2920,8,209,1,209,3,209,2923,8,209,1,209,3,209,2926,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2934,8,210,1,211,1,211,1,211,3,211,2939,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2950,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2957,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2968,8,216,10,216,12,216,2971,9,216,1,217,1,217,1,217,5,217,2976,8,217,10,217,12,217,2979,9,217,1,218,1,218,3,218,2983,8,218,1,219,1,219,1,219,5,219,2988,8,219,10,219,12,219,2991,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,3003,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,3012,8,222,10,222,12,222,3015,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,3024,8,224,1,225,1,225,1,225,1,225,3,225,3030,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3037,8,226,10,226,12,226,3040,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3054,8,228,10,228,12,228,3057,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3077,8,232,10,232,12,232,3080,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3099,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3108,8,234,10,234,12,234,3111,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3118,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3126,8,236,10,236,12,236,3129,9,236,1,237,1,237,3,237,3133,8,237,1,238,1,238,3,238,3137,8,238,1,238,1,238,1,239,1,239,3,239,3143,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3179,8,245,10,245,12,245,3182,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3191,8,246,10,246,12,246,3194,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3235,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3243,8,257,1,257,3,257,3246,8,257,1,257,1,257,3,257,3250,8,257,1,258,1,258,3,258,3254,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3262,8,259,10,259,12,259,3265,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3275,8,259,10,259,12,259,3278,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3288,8,259,10,259,12,259,3291,9,259,1,259,1,259,3,259,3295,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3305,8,260,10,260,12,260,3308,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3316,8,260,10,260,12,260,3319,9,260,1,260,1,260,3,260,3323,8,260,1,260,3,260,3326,8,260,1,261,1,261,3,261,3330,8,261,1,261,1,261,3,261,3334,8,261,1,262,1,262,3,262,3338,8,262,1,262,3,262,3341,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3352,8,265,10,265,12,265,3355,9,265,1,265,3,265,3358,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3370,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3382,8,269,10,269,12,269,3385,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3399,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3414,8,274,1,274,3,274,3417,8,274,1,275,1,275,1,275,1,275,1,275,1,275,5,275,3425,8,275,10,275,12,275,3428,9,275,3,275,3430,8,275,1,276,1,276,1,276,1,276,1,276,1,276,3,276,3438,8,276,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,5,278,3448,8,278,10,278,12,278,3451,9,278,3,278,3453,8,278,1,278,1,278,1,279,1,279,1,279,1,279,1,280,1,280,3,280,3463,8,280,1,281,1,281,1,281,1,281,5,281,3469,8,281,10,281,12,281,3472,9,281,1,281,1,281,1,281,3,281,3477,8,281,1,282,1,282,1,282,1,282,5,282,3483,8,282,10,282,12,282,3486,9,282,1,282,1,282,1,283,1,283,1,283,3,283,3493,8,283,1,284,1,284,1,284,1,284,1,284,3,284,3500,8,284,1,284,1,284,3,284,3504,8,284,1,284,1,284,1,285,1,285,1,285,1,285,5,285,3512,8,285,10,285,12,285,3515,9,285,1,286,1,286,1,286,1,286,3,286,3521,8,286,1,286,4,286,3524,8,286,11,286,12,286,3525,1,286,1,286,1,286,3,286,3531,8,286,1,287,1,287,1,287,1,287,1,287,1,287,1,287,1,287,5,287,3541,8,287,10,287,12,287,3544,9,287,1,287,3,287,3547,8,287,3,287,3549,8,287,1,288,1,288,1,288,1,288,1,288,1,288,1,288,1,288,5,288,3559,8,288,10,288,12,288,3562,9,288,1,288,3,288,3565,8,288,1,288,1,288,1,288,3,288,3570,8,288,1,289,1,289,1,289,1,289,3,289,3576,8,289,1,289,1,289,1,289,5,289,3581,8,289,10,289,12,289,3584,9,289,1,289,3,289,3587,8,289,1,290,1,290,3,290,3591,8,290,1,291,1,291,3,291,3595,8,291,1,292,1,292,3,292,3599,8,292,1,293,3,293,3602,8,293,1,293,1,293,1,293,1,294,1,294,1,294,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3618,8,296,10,296,12,296,3621,9,296,1,296,1,296,1,296,1,296,5,296,3627,8,296,10,296,12,296,3630,9,296,1,296,3,296,3633,8,296,1,296,1,296,1,296,3,296,3638,8,296,1,297,1,297,1,297,1,297,3,297,3644,8,297,1,297,1,297,1,297,1,297,1,297,5,297,3651,8,297,10,297,12,297,3654,9,297,1,297,1,297,1,297,1,297,5,297,3660,8,297,10,297,12,297,3663,9,297,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,1,298,3,298,3679,8,298,1,298,1,298,3,298,3683,8,298,1,298,1,298,3,298,3687,8,298,3,298,3689,8,298,1,299,1,299,3,299,3693,8,299,1,300,1,300,1,300,5,300,3698,8,300,10,300,12,300,3701,9,300,1,300,3,300,3704,8,300,1,300,1,300,3,300,3708,8,300,3,300,3710,8,300,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,5,302,3725,8,302,10,302,12,302,3728,9,302,1,303,1,303,3,303,3732,8,303,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,5,306,3754,8,306,10,306,12,306,3757,9,306,1,307,1,307,3,307,3761,8,307,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,309,1,309,5,309,3777,8,309,10,309,12,309,3780,9,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,311,1,311,1,311,5,311,3793,8,311,10,311,12,311,3796,9,311,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,5,313,3809,8,313,10,313,12,313,3812,9,313,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,3,316,3826,8,316,1,317,1,317,3,317,3830,8,317,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,1,318,3,318,3841,8,318,1,318,1,318,1,318,1,318,1,318,1,319,1,319,1,319,5,319,3851,8,319,10,319,12,319,3854,9,319,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,5,321,3866,8,321,10,321,12,321,3869,9,321,1,322,1,322,3,322,3873,8,322,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,3,325,3888,8,325,1,326,1,326,1,326,5,326,3893,8,326,10,326,12,326,3896,9,326,1,327,1,327,1,327,1,327,1,327,3,327,3903,8,327,1,327,1,327,1,327,1,327,1,327,1,327,1,328,5,328,3912,8,328,10,328,12,328,3915,9,328,1,328,1,328,4,328,3919,8,328,11,328,12,328,3920,1,328,5,328,3924,8,328,10,328,12,328,3927,9,328,1,328,5,328,3930,8,328,10,328,12,328,3933,9,328,3,328,3935,8,328,1,329,3,329,3938,8,329,1,329,1,329,1,329,1,329,1,329,3,329,3945,8,329,1,330,3,330,3948,8,330,1,330,3,330,3951,8,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,3,330,3960,8,330,1,331,1,331,1,331,3,331,3965,8,331,1,331,3,331,3968,8,331,1,331,1,331,1,331,1,331,1,331,1,331,5,331,3976,8,331,10,331,12,331,3979,9,331,1,331,3,331,3982,8,331,3,331,3984,8,331,1,331,1,331,1,331,1,331,1,331,3,331,3991,8,331,1,331,3,331,3994,8,331,1,331,1,331,3,331,3998,8,331,3,331,4e3,8,331,1,331,3,331,4003,8,331,1,332,1,332,1,332,3,332,4008,8,332,1,333,3,333,4011,8,333,1,333,1,333,1,333,3,333,4016,8,333,1,334,1,334,1,334,1,334,1,334,1,334,5,334,4024,8,334,10,334,12,334,4027,9,334,1,334,1,334,3,334,4031,8,334,1,335,1,335,1,335,1,335,1,335,1,335,1,335,5,335,4040,8,335,10,335,12,335,4043,9,335,1,335,3,335,4046,8,335,1,335,1,335,3,335,4050,8,335,3,335,4052,8,335,1,335,1,335,3,335,4056,8,335,1,335,1,335,1,335,3,335,4061,8,335,1,335,1,335,1,335,1,335,5,335,4067,8,335,10,335,12,335,4070,9,335,3,335,4072,8,335,1,335,3,335,4075,8,335,1,335,3,335,4078,8,335,1,336,1,336,1,336,3,336,4083,8,336,1,336,1,336,1,337,1,337,3,337,4089,8,337,1,337,3,337,4092,8,337,1,338,1,338,3,338,4096,8,338,1,339,1,339,1,339,1,339,3,339,4102,8,339,1,340,3,340,4105,8,340,1,340,1,340,1,340,1,340,1,340,1,340,3,340,4113,8,340,1,340,3,340,4116,8,340,1,341,3,341,4119,8,341,1,341,1,341,1,341,1,341,1,341,3,341,4126,8,341,1,341,1,341,3,341,4130,8,341,1,341,3,341,4133,8,341,1,342,1,342,3,342,4137,8,342,1,343,1,343,1,343,5,343,4142,8,343,10,343,12,343,4145,9,343,1,344,1,344,1,344,1,344,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,5,347,4163,8,347,10,347,12,347,4166,9,347,1,347,1,347,1,348,1,348,1,348,1,348,1,348,3,348,4175,8,348,1,348,1,348,3,348,4179,8,348,1,348,3,348,4182,8,348,1,349,1,349,1,349,1,349,5,349,4188,8,349,10,349,12,349,4191,9,349,1,349,1,349,1,350,1,350,1,351,1,351,1,351,1,351,1,351,1,352,1,352,1,352,1,352,3,352,4206,8,352,1,352,1,352,1,352,1,352,5,352,4212,8,352,10,352,12,352,4215,9,352,1,353,1,353,1,353,1,353,1,353,3,353,4222,8,353,1,354,1,354,1,354,1,355,1,355,1,355,3,355,4230,8,355,1,356,1,356,1,356,1,356,1,356,1,357,1,357,3,357,4239,8,357,1,358,1,358,1,358,1,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,1,360,1,360,1,360,5,360,4255,8,360,10,360,12,360,4258,9,360,1,360,1,360,1,361,1,361,1,361,1,361,1,361,1,362,1,362,1,362,1,362,1,362,5,362,4272,8,362,10,362,12,362,4275,9,362,1,362,1,362,1,363,1,363,1,363,1,363,3,363,4283,8,363,1,363,1,363,1,364,1,364,1,364,5,364,4290,8,364,10,364,12,364,4293,9,364,1,365,1,365,1,365,1,365,1,366,1,366,1,367,1,367,1,367,1,367,1,367,1,368,1,368,1,368,5,368,4309,8,368,10,368,12,368,4312,9,368,1,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4323,8,371,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,3,373,4333,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,3,375,4342,8,375,1,376,1,376,1,377,1,377,1,377,1,378,1,378,1,378,5,378,4352,8,378,10,378,12,378,4355,9,378,1,379,1,379,1,379,1,379,1,380,1,380,1,381,1,381,1,381,1,381,1,382,3,382,4368,8,382,1,382,3,382,4371,8,382,1,382,3,382,4374,8,382,1,382,3,382,4377,8,382,1,383,1,383,1,384,1,384,3,384,4383,8,384,1,384,1,384,1,384,1,385,1,385,1,386,1,386,1,386,3,386,4393,8,386,1,387,1,387,1,388,1,388,3,388,4399,8,388,1,389,1,389,1,389,1,389,1,389,1,390,1,390,1,390,1,390,3,390,4410,8,390,1,390,3,390,4413,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4425,8,391,1,392,1,392,1,392,1,393,1,393,1,393,1,393,1,393,3,393,4435,8,393,1,394,1,394,1,394,1,394,3,394,4441,8,394,1,395,1,395,1,396,1,396,1,397,1,397,1,397,1,397,1,397,3,397,4452,8,397,1,398,1,398,1,398,5,398,4457,8,398,10,398,12,398,4460,9,398,1,398,3,398,4463,8,398,1,399,1,399,1,399,1,400,1,400,1,400,1,400,3,400,4472,8,400,1,400,1,400,4,400,4476,8,400,11,400,12,400,4477,1,401,1,401,3,401,4482,8,401,1,401,1,401,1,401,3,401,4487,8,401,1,401,1,401,1,401,1,401,3,401,4493,8,401,1,401,3,401,4496,8,401,1,402,1,402,1,403,1,403,3,403,4502,8,403,1,404,1,404,1,404,1,404,1,404,1,404,1,404,3,404,4511,8,404,1,405,1,405,1,405,1,405,1,405,1,405,3,405,4519,8,405,1,406,1,406,1,406,1,406,1,406,3,406,4526,8,406,1,407,1,407,1,407,1,407,1,407,1,407,1,407,1,407,3,407,4536,8,407,1,408,1,408,1,408,1,408,1,408,1,408,1,408,3,408,4545,8,408,1,409,1,409,1,409,1,409,1,409,1,409,1,409,3,409,4554,8,409,1,410,1,410,1,410,1,410,1,410,1,410,1,410,1,410,3,410,4564,8,410,1,411,1,411,3,411,4568,8,411,1,412,1,412,3,412,4572,8,412,1,413,1,413,3,413,4576,8,413,1,414,1,414,3,414,4580,8,414,1,415,1,415,3,415,4584,8,415,1,416,1,416,3,416,4588,8,416,1,417,1,417,3,417,4592,8,417,1,418,1,418,3,418,4596,8,418,1,419,1,419,3,419,4600,8,419,1,420,1,420,3,420,4604,8,420,1,421,1,421,3,421,4608,8,421,1,422,1,422,3,422,4612,8,422,1,423,1,423,1,423,3,423,4617,8,423,1,424,1,424,1,424,3,424,4622,8,424,1,425,1,425,1,425,3,425,4627,8,425,1,425,1,425,3,425,4631,8,425,1,426,1,426,3,426,4635,8,426,1,427,1,427,1,427,3,427,4640,8,427,1,428,3,428,4643,8,428,1,428,1,428,1,429,1,429,3,429,4649,8,429,1,430,3,430,4652,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4664,8,431,1,432,1,432,1,433,1,433,1,434,1,434,1,435,1,435,1,436,1,436,1,437,1,437,1,438,1,438,1,439,1,439,1,440,1,440,1,441,1,441,1,442,1,442,1,443,1,443,1,444,1,444,1,445,1,445,1,445,1,445,1,445,3,445,4697,8,445,1,446,5,446,4700,8,446,10,446,12,446,4703,9,446,1,446,1,446,4,446,4707,8,446,11,446,12,446,4708,1,446,5,446,4712,8,446,10,446,12,446,4715,9,446,1,446,5,446,4718,8,446,10,446,12,446,4721,9,446,1,446,1,446,1,447,1,447,1,447,3,447,4728,8,447,3,447,4730,8,447,1,447,1,447,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,1,448,3,448,4747,8,448,1,449,1,449,1,449,1,450,1,450,1,450,1,450,0,0,451,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,0,40,2,0,52,52,283,283,6,0,144,144,155,155,181,181,187,187,239,239,259,259,1,0,5,8,1,0,16,17,1,0,19,21,2,0,16,18,199,199,2,0,114,114,120,120,4,0,120,120,132,132,300,300,307,307,2,0,80,80,304,304,2,0,50,50,102,102,2,0,24,24,205,205,2,0,42,42,109,109,2,0,164,164,268,268,3,0,105,105,183,183,211,211,2,0,64,64,285,285,2,0,209,209,270,270,2,0,53,53,284,284,3,0,191,192,194,194,267,267,2,0,40,40,111,111,2,0,147,147,312,312,2,0,185,185,198,198,2,0,56,56,287,287,2,0,119,119,309,309,3,0,43,43,103,103,242,242,3,0,56,56,262,262,287,287,2,0,142,142,311,311,3,0,106,106,234,234,286,286,2,0,39,39,280,280,2,0,77,77,266,266,3,0,149,149,236,236,263,263,2,0,138,138,228,228,1,0,327,328,20,0,52,52,65,66,70,71,88,88,90,92,115,115,127,127,141,142,152,152,174,176,199,199,201,201,232,232,237,237,254,255,261,261,269,269,283,283,303,303,319,320,3,0,47,47,119,119,278,278,11,0,42,42,49,49,51,51,109,109,123,123,151,151,169,169,182,182,305,305,321,321,323,323,57,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,74,78,78,80,86,89,89,93,99,101,104,106,108,111,114,116,117,120,122,124,124,126,126,128,131,133,136,138,140,143,148,150,150,153,165,167,168,170,171,178,178,180,181,184,194,196,198,202,206,208,210,212,212,214,214,217,228,230,231,233,235,238,243,245,247,249,252,256,257,259,260,262,262,265,265,267,268,272,277,280,282,284,289,291,299,302,302,304,304,306,312,314,315,318,318,324,325,49,0,38,41,43,46,48,48,50,50,53,57,59,64,67,67,69,69,72,75,78,78,80,87,89,89,93,104,106,108,110,114,116,117,120,122,124,126,128,131,133,136,138,140,143,148,150,150,153,168,170,173,177,181,184,198,200,200,202,210,212,231,233,235,238,243,245,247,249,253,256,260,262,262,264,265,267,268,270,270,272,277,280,282,284,289,291,299,302,302,304,304,306,315,317,318,322,322,324,325,12,0,68,68,105,105,118,118,137,137,183,183,211,211,248,248,271,271,279,279,290,290,301,301,316,316,2,0,132,132,300,300,1,0,329,330,5094,0,907,1,0,0,0,2,912,1,0,0,0,4,938,1,0,0,0,6,946,1,0,0,0,8,970,1,0,0,0,10,977,1,0,0,0,12,1041,1,0,0,0,14,1052,1,0,0,0,16,1054,1,0,0,0,18,1062,1,0,0,0,20,1070,1,0,0,0,22,1074,1,0,0,0,24,1132,1,0,0,0,26,1134,1,0,0,0,28,1136,1,0,0,0,30,1144,1,0,0,0,32,1147,1,0,0,0,34,1151,1,0,0,0,36,1154,1,0,0,0,38,1180,1,0,0,0,40,1188,1,0,0,0,42,1196,1,0,0,0,44,1208,1,0,0,0,46,1210,1,0,0,0,48,1224,1,0,0,0,50,1233,1,0,0,0,52,1239,1,0,0,0,54,1245,1,0,0,0,56,1249,1,0,0,0,58,1251,1,0,0,0,60,1260,1,0,0,0,62,1276,1,0,0,0,64,1285,1,0,0,0,66,1298,1,0,0,0,68,1324,1,0,0,0,70,1346,1,0,0,0,72,1348,1,0,0,0,74,1355,1,0,0,0,76,1362,1,0,0,0,78,1370,1,0,0,0,80,1385,1,0,0,0,82,1399,1,0,0,0,84,1404,1,0,0,0,86,1406,1,0,0,0,88,1410,1,0,0,0,90,1412,1,0,0,0,92,1416,1,0,0,0,94,1424,1,0,0,0,96,1435,1,0,0,0,98,1437,1,0,0,0,100,1455,1,0,0,0,102,1459,1,0,0,0,104,1478,1,0,0,0,106,1486,1,0,0,0,108,1488,1,0,0,0,110,1510,1,0,0,0,112,1519,1,0,0,0,114,1527,1,0,0,0,116,1540,1,0,0,0,118,1542,1,0,0,0,120,1553,1,0,0,0,122,1561,1,0,0,0,124,1563,1,0,0,0,126,1574,1,0,0,0,128,1585,1,0,0,0,130,1590,1,0,0,0,132,1598,1,0,0,0,134,1612,1,0,0,0,136,1626,1,0,0,0,138,1630,1,0,0,0,140,1634,1,0,0,0,142,1649,1,0,0,0,144,1651,1,0,0,0,146,1657,1,0,0,0,148,1661,1,0,0,0,150,1669,1,0,0,0,152,1674,1,0,0,0,154,1683,1,0,0,0,156,1689,1,0,0,0,158,1693,1,0,0,0,160,1698,1,0,0,0,162,1700,1,0,0,0,164,1716,1,0,0,0,166,1721,1,0,0,0,168,1725,1,0,0,0,170,1731,1,0,0,0,172,1739,1,0,0,0,174,1746,1,0,0,0,176,1751,1,0,0,0,178,1770,1,0,0,0,180,1789,1,0,0,0,182,1804,1,0,0,0,184,1809,1,0,0,0,186,1814,1,0,0,0,188,1819,1,0,0,0,190,1826,1,0,0,0,192,1831,1,0,0,0,194,1846,1,0,0,0,196,1851,1,0,0,0,198,1858,1,0,0,0,200,1891,1,0,0,0,202,1910,1,0,0,0,204,1914,1,0,0,0,206,1916,1,0,0,0,208,1941,1,0,0,0,210,1943,1,0,0,0,212,1952,1,0,0,0,214,1962,1,0,0,0,216,1967,1,0,0,0,218,1972,1,0,0,0,220,1980,1,0,0,0,222,1985,1,0,0,0,224,1990,1,0,0,0,226,2013,1,0,0,0,228,2015,1,0,0,0,230,2019,1,0,0,0,232,2027,1,0,0,0,234,2036,1,0,0,0,236,2050,1,0,0,0,238,2058,1,0,0,0,240,2060,1,0,0,0,242,2070,1,0,0,0,244,2082,1,0,0,0,246,2117,1,0,0,0,248,2121,1,0,0,0,250,2129,1,0,0,0,252,2165,1,0,0,0,254,2169,1,0,0,0,256,2211,1,0,0,0,258,2239,1,0,0,0,260,2250,1,0,0,0,262,2252,1,0,0,0,264,2255,1,0,0,0,266,2263,1,0,0,0,268,2270,1,0,0,0,270,2304,1,0,0,0,272,2306,1,0,0,0,274,2308,1,0,0,0,276,2310,1,0,0,0,278,2319,1,0,0,0,280,2323,1,0,0,0,282,2355,1,0,0,0,284,2372,1,0,0,0,286,2374,1,0,0,0,288,2376,1,0,0,0,290,2388,1,0,0,0,292,2391,1,0,0,0,294,2399,1,0,0,0,296,2405,1,0,0,0,298,2407,1,0,0,0,300,2415,1,0,0,0,302,2417,1,0,0,0,304,2425,1,0,0,0,306,2429,1,0,0,0,308,2431,1,0,0,0,310,2433,1,0,0,0,312,2435,1,0,0,0,314,2437,1,0,0,0,316,2442,1,0,0,0,318,2446,1,0,0,0,320,2457,1,0,0,0,322,2470,1,0,0,0,324,2472,1,0,0,0,326,2474,1,0,0,0,328,2482,1,0,0,0,330,2487,1,0,0,0,332,2492,1,0,0,0,334,2498,1,0,0,0,336,2518,1,0,0,0,338,2521,1,0,0,0,340,2537,1,0,0,0,342,2550,1,0,0,0,344,2552,1,0,0,0,346,2564,1,0,0,0,348,2591,1,0,0,0,350,2593,1,0,0,0,352,2596,1,0,0,0,354,2604,1,0,0,0,356,2606,1,0,0,0,358,2635,1,0,0,0,360,2641,1,0,0,0,362,2643,1,0,0,0,364,2667,1,0,0,0,366,2686,1,0,0,0,368,2698,1,0,0,0,370,2700,1,0,0,0,372,2705,1,0,0,0,374,2707,1,0,0,0,376,2715,1,0,0,0,378,2721,1,0,0,0,380,2723,1,0,0,0,382,2739,1,0,0,0,384,2755,1,0,0,0,386,2757,1,0,0,0,388,2767,1,0,0,0,390,2781,1,0,0,0,392,2789,1,0,0,0,394,2799,1,0,0,0,396,2814,1,0,0,0,398,2817,1,0,0,0,400,2826,1,0,0,0,402,2829,1,0,0,0,404,2843,1,0,0,0,406,2850,1,0,0,0,408,2852,1,0,0,0,410,2856,1,0,0,0,412,2860,1,0,0,0,414,2874,1,0,0,0,416,2876,1,0,0,0,418,2878,1,0,0,0,420,2933,1,0,0,0,422,2935,1,0,0,0,424,2945,1,0,0,0,426,2951,1,0,0,0,428,2956,1,0,0,0,430,2958,1,0,0,0,432,2962,1,0,0,0,434,2972,1,0,0,0,436,2982,1,0,0,0,438,2984,1,0,0,0,440,3002,1,0,0,0,442,3004,1,0,0,0,444,3008,1,0,0,0,446,3016,1,0,0,0,448,3020,1,0,0,0,450,3025,1,0,0,0,452,3031,1,0,0,0,454,3043,1,0,0,0,456,3048,1,0,0,0,458,3060,1,0,0,0,460,3063,1,0,0,0,462,3067,1,0,0,0,464,3070,1,0,0,0,466,3098,1,0,0,0,468,3100,1,0,0,0,470,3117,1,0,0,0,472,3119,1,0,0,0,474,3132,1,0,0,0,476,3134,1,0,0,0,478,3140,1,0,0,0,480,3146,1,0,0,0,482,3152,1,0,0,0,484,3159,1,0,0,0,486,3162,1,0,0,0,488,3169,1,0,0,0,490,3173,1,0,0,0,492,3185,1,0,0,0,494,3197,1,0,0,0,496,3200,1,0,0,0,498,3204,1,0,0,0,500,3208,1,0,0,0,502,3214,1,0,0,0,504,3217,1,0,0,0,506,3222,1,0,0,0,508,3226,1,0,0,0,510,3231,1,0,0,0,512,3238,1,0,0,0,514,3245,1,0,0,0,516,3251,1,0,0,0,518,3294,1,0,0,0,520,3296,1,0,0,0,522,3329,1,0,0,0,524,3335,1,0,0,0,526,3342,1,0,0,0,528,3344,1,0,0,0,530,3346,1,0,0,0,532,3361,1,0,0,0,534,3369,1,0,0,0,536,3371,1,0,0,0,538,3378,1,0,0,0,540,3386,1,0,0,0,542,3390,1,0,0,0,544,3398,1,0,0,0,546,3400,1,0,0,0,548,3416,1,0,0,0,550,3418,1,0,0,0,552,3437,1,0,0,0,554,3439,1,0,0,0,556,3443,1,0,0,0,558,3456,1,0,0,0,560,3462,1,0,0,0,562,3476,1,0,0,0,564,3478,1,0,0,0,566,3492,1,0,0,0,568,3494,1,0,0,0,570,3507,1,0,0,0,572,3516,1,0,0,0,574,3532,1,0,0,0,576,3550,1,0,0,0,578,3571,1,0,0,0,580,3590,1,0,0,0,582,3594,1,0,0,0,584,3598,1,0,0,0,586,3601,1,0,0,0,588,3606,1,0,0,0,590,3609,1,0,0,0,592,3611,1,0,0,0,594,3639,1,0,0,0,596,3688,1,0,0,0,598,3692,1,0,0,0,600,3709,1,0,0,0,602,3711,1,0,0,0,604,3717,1,0,0,0,606,3731,1,0,0,0,608,3733,1,0,0,0,610,3738,1,0,0,0,612,3745,1,0,0,0,614,3760,1,0,0,0,616,3762,1,0,0,0,618,3768,1,0,0,0,620,3786,1,0,0,0,622,3789,1,0,0,0,624,3797,1,0,0,0,626,3801,1,0,0,0,628,3813,1,0,0,0,630,3815,1,0,0,0,632,3820,1,0,0,0,634,3829,1,0,0,0,636,3831,1,0,0,0,638,3847,1,0,0,0,640,3855,1,0,0,0,642,3859,1,0,0,0,644,3872,1,0,0,0,646,3874,1,0,0,0,648,3879,1,0,0,0,650,3883,1,0,0,0,652,3889,1,0,0,0,654,3897,1,0,0,0,656,3913,1,0,0,0,658,3937,1,0,0,0,660,3947,1,0,0,0,662,3964,1,0,0,0,664,4004,1,0,0,0,666,4010,1,0,0,0,668,4017,1,0,0,0,670,4077,1,0,0,0,672,4082,1,0,0,0,674,4091,1,0,0,0,676,4093,1,0,0,0,678,4097,1,0,0,0,680,4104,1,0,0,0,682,4118,1,0,0,0,684,4136,1,0,0,0,686,4138,1,0,0,0,688,4146,1,0,0,0,690,4150,1,0,0,0,692,4152,1,0,0,0,694,4158,1,0,0,0,696,4169,1,0,0,0,698,4183,1,0,0,0,700,4194,1,0,0,0,702,4196,1,0,0,0,704,4201,1,0,0,0,706,4221,1,0,0,0,708,4223,1,0,0,0,710,4226,1,0,0,0,712,4231,1,0,0,0,714,4238,1,0,0,0,716,4240,1,0,0,0,718,4244,1,0,0,0,720,4249,1,0,0,0,722,4261,1,0,0,0,724,4266,1,0,0,0,726,4278,1,0,0,0,728,4286,1,0,0,0,730,4294,1,0,0,0,732,4298,1,0,0,0,734,4300,1,0,0,0,736,4305,1,0,0,0,738,4313,1,0,0,0,740,4317,1,0,0,0,742,4322,1,0,0,0,744,4326,1,0,0,0,746,4332,1,0,0,0,748,4334,1,0,0,0,750,4341,1,0,0,0,752,4343,1,0,0,0,754,4345,1,0,0,0,756,4348,1,0,0,0,758,4356,1,0,0,0,760,4360,1,0,0,0,762,4362,1,0,0,0,764,4367,1,0,0,0,766,4378,1,0,0,0,768,4380,1,0,0,0,770,4387,1,0,0,0,772,4389,1,0,0,0,774,4394,1,0,0,0,776,4398,1,0,0,0,778,4400,1,0,0,0,780,4412,1,0,0,0,782,4424,1,0,0,0,784,4426,1,0,0,0,786,4434,1,0,0,0,788,4436,1,0,0,0,790,4442,1,0,0,0,792,4444,1,0,0,0,794,4446,1,0,0,0,796,4453,1,0,0,0,798,4464,1,0,0,0,800,4467,1,0,0,0,802,4495,1,0,0,0,804,4497,1,0,0,0,806,4501,1,0,0,0,808,4510,1,0,0,0,810,4518,1,0,0,0,812,4525,1,0,0,0,814,4535,1,0,0,0,816,4544,1,0,0,0,818,4553,1,0,0,0,820,4563,1,0,0,0,822,4567,1,0,0,0,824,4571,1,0,0,0,826,4575,1,0,0,0,828,4579,1,0,0,0,830,4583,1,0,0,0,832,4587,1,0,0,0,834,4591,1,0,0,0,836,4595,1,0,0,0,838,4599,1,0,0,0,840,4603,1,0,0,0,842,4607,1,0,0,0,844,4611,1,0,0,0,846,4616,1,0,0,0,848,4621,1,0,0,0,850,4626,1,0,0,0,852,4634,1,0,0,0,854,4639,1,0,0,0,856,4642,1,0,0,0,858,4648,1,0,0,0,860,4651,1,0,0,0,862,4663,1,0,0,0,864,4665,1,0,0,0,866,4667,1,0,0,0,868,4669,1,0,0,0,870,4671,1,0,0,0,872,4673,1,0,0,0,874,4675,1,0,0,0,876,4677,1,0,0,0,878,4679,1,0,0,0,880,4681,1,0,0,0,882,4683,1,0,0,0,884,4685,1,0,0,0,886,4687,1,0,0,0,888,4689,1,0,0,0,890,4696,1,0,0,0,892,4701,1,0,0,0,894,4729,1,0,0,0,896,4746,1,0,0,0,898,4748,1,0,0,0,900,4751,1,0,0,0,902,908,3,2,1,0,903,904,5,227,0,0,904,905,5,46,0,0,905,906,5,329,0,0,906,908,3,4,2,0,907,902,1,0,0,0,907,903,1,0,0,0,908,1,1,0,0,0,909,911,5,22,0,0,910,909,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,915,1,0,0,0,914,912,1,0,0,0,915,924,3,10,5,0,916,918,5,22,0,0,917,916,1,0,0,0,918,919,1,0,0,0,919,917,1,0,0,0,919,920,1,0,0,0,920,921,1,0,0,0,921,923,3,10,5,0,922,917,1,0,0,0,923,926,1,0,0,0,924,922,1,0,0,0,924,925,1,0,0,0,925,930,1,0,0,0,926,924,1,0,0,0,927,929,5,22,0,0,928,927,1,0,0,0,929,932,1,0,0,0,930,928,1,0,0,0,930,931,1,0,0,0,931,933,1,0,0,0,932,930,1,0,0,0,933,934,5,0,0,1,934,3,1,0,0,0,935,937,5,22,0,0,936,935,1,0,0,0,937,940,1,0,0,0,938,936,1,0,0,0,938,939,1,0,0,0,939,941,1,0,0,0,940,938,1,0,0,0,941,942,5,0,0,1,942,5,1,0,0,0,943,945,5,22,0,0,944,943,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,957,1,0,0,0,948,946,1,0,0,0,949,951,3,8,4,0,950,952,5,22,0,0,951,950,1,0,0,0,952,953,1,0,0,0,953,951,1,0,0,0,953,954,1,0,0,0,954,956,1,0,0,0,955,949,1,0,0,0,956,959,1,0,0,0,957,955,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,957,1,0,0,0,960,961,5,254,0,0,961,965,3,14,7,0,962,964,5,22,0,0,963,962,1,0,0,0,964,967,1,0,0,0,965,963,1,0,0,0,965,966,1,0,0,0,966,7,1,0,0,0,967,965,1,0,0,0,968,971,3,788,394,0,969,971,3,214,107,0,970,968,1,0,0,0,970,969,1,0,0,0,971,9,1,0,0,0,972,975,5,128,0,0,973,974,5,233,0,0,974,976,5,225,0,0,975,973,1,0,0,0,975,976,1,0,0,0,976,978,1,0,0,0,977,972,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,980,3,12,6,0,980,11,1,0,0,0,981,1042,3,224,112,0,982,1042,3,232,116,0,983,1042,3,788,394,0,984,1042,3,418,209,0,985,1042,3,568,284,0,986,1042,3,784,392,0,987,1042,3,364,182,0,988,1042,3,790,395,0,989,1042,3,682,341,0,990,1042,3,680,340,0,991,1042,3,792,396,0,992,1042,3,210,105,0,993,1042,3,214,107,0,994,1042,3,216,108,0,995,1042,3,464,232,0,996,1042,3,468,234,0,997,1042,3,222,111,0,998,1042,3,654,327,0,999,1042,3,658,329,0,1e3,1042,3,660,330,0,1001,1042,3,370,185,0,1002,1042,3,570,285,0,1003,1042,3,572,286,0,1004,1042,3,574,287,0,1005,1042,3,576,288,0,1006,1042,3,578,289,0,1007,1042,3,394,197,0,1008,1042,3,398,199,0,1009,1042,3,402,201,0,1010,1042,3,380,190,0,1011,1042,3,382,191,0,1012,1042,3,386,193,0,1013,1042,3,618,309,0,1014,1042,3,632,316,0,1015,1042,3,696,348,0,1016,1042,3,704,352,0,1017,1042,3,726,363,0,1018,1042,3,592,296,0,1019,1042,3,594,297,0,1020,1042,3,472,236,0,1021,1042,3,392,196,0,1022,1042,3,388,194,0,1023,1042,3,390,195,0,1024,1042,3,626,313,0,1025,1042,3,602,301,0,1026,1042,3,604,302,0,1027,1042,3,608,304,0,1028,1042,3,422,211,0,1029,1042,3,424,212,0,1030,1042,3,426,213,0,1031,1042,3,798,399,0,1032,1042,3,610,305,0,1033,1042,3,612,306,0,1034,1042,3,616,308,0,1035,1042,3,448,224,0,1036,1042,3,450,225,0,1037,1042,3,800,400,0,1038,1042,3,636,318,0,1039,1042,3,642,321,0,1040,1042,3,650,325,0,1041,981,1,0,0,0,1041,982,1,0,0,0,1041,983,1,0,0,0,1041,984,1,0,0,0,1041,985,1,0,0,0,1041,986,1,0,0,0,1041,987,1,0,0,0,1041,988,1,0,0,0,1041,989,1,0,0,0,1041,990,1,0,0,0,1041,991,1,0,0,0,1041,992,1,0,0,0,1041,993,1,0,0,0,1041,994,1,0,0,0,1041,995,1,0,0,0,1041,996,1,0,0,0,1041,997,1,0,0,0,1041,998,1,0,0,0,1041,999,1,0,0,0,1041,1e3,1,0,0,0,1041,1001,1,0,0,0,1041,1002,1,0,0,0,1041,1003,1,0,0,0,1041,1004,1,0,0,0,1041,1005,1,0,0,0,1041,1006,1,0,0,0,1041,1007,1,0,0,0,1041,1008,1,0,0,0,1041,1009,1,0,0,0,1041,1010,1,0,0,0,1041,1011,1,0,0,0,1041,1012,1,0,0,0,1041,1013,1,0,0,0,1041,1014,1,0,0,0,1041,1015,1,0,0,0,1041,1016,1,0,0,0,1041,1017,1,0,0,0,1041,1018,1,0,0,0,1041,1019,1,0,0,0,1041,1020,1,0,0,0,1041,1021,1,0,0,0,1041,1022,1,0,0,0,1041,1023,1,0,0,0,1041,1024,1,0,0,0,1041,1025,1,0,0,0,1041,1026,1,0,0,0,1041,1027,1,0,0,0,1041,1028,1,0,0,0,1041,1029,1,0,0,0,1041,1030,1,0,0,0,1041,1031,1,0,0,0,1041,1032,1,0,0,0,1041,1033,1,0,0,0,1041,1034,1,0,0,0,1041,1035,1,0,0,0,1041,1036,1,0,0,0,1041,1037,1,0,0,0,1041,1038,1,0,0,0,1041,1039,1,0,0,0,1041,1040,1,0,0,0,1042,13,1,0,0,0,1043,1048,3,16,8,0,1044,1045,5,212,0,0,1045,1047,3,16,8,0,1046,1044,1,0,0,0,1047,1050,1,0,0,0,1048,1046,1,0,0,0,1048,1049,1,0,0,0,1049,1053,1,0,0,0,1050,1048,1,0,0,0,1051,1053,3,200,100,0,1052,1043,1,0,0,0,1052,1051,1,0,0,0,1053,15,1,0,0,0,1054,1059,3,18,9,0,1055,1056,5,45,0,0,1056,1058,3,18,9,0,1057,1055,1,0,0,0,1058,1061,1,0,0,0,1059,1057,1,0,0,0,1059,1060,1,0,0,0,1060,17,1,0,0,0,1061,1059,1,0,0,0,1062,1067,3,20,10,0,1063,1064,5,325,0,0,1064,1066,3,20,10,0,1065,1063,1,0,0,0,1066,1069,1,0,0,0,1067,1065,1,0,0,0,1067,1068,1,0,0,0,1068,19,1,0,0,0,1069,1067,1,0,0,0,1070,1072,3,28,14,0,1071,1073,3,24,12,0,1072,1071,1,0,0,0,1072,1073,1,0,0,0,1073,21,1,0,0,0,1074,1076,5,171,0,0,1075,1077,5,199,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1079,5,109,0,0,1079,1080,5,141,0,0,1080,23,1,0,0,0,1081,1083,5,199,0,0,1082,1081,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1085,3,26,13,0,1085,1088,3,28,14,0,1086,1087,5,121,0,0,1087,1089,3,28,14,0,1088,1086,1,0,0,0,1088,1089,1,0,0,0,1089,1133,1,0,0,0,1090,1092,5,199,0,0,1091,1090,1,0,0,0,1091,1092,1,0,0,0,1092,1093,1,0,0,0,1093,1095,5,158,0,0,1094,1096,5,79,0,0,1095,1094,1,0,0,0,1095,1096,1,0,0,0,1096,1097,1,0,0,0,1097,1133,3,82,41,0,1098,1108,5,172,0,0,1099,1108,5,200,0,0,1100,1101,5,171,0,0,1101,1108,5,201,0,0,1102,1104,5,171,0,0,1103,1102,1,0,0,0,1103,1104,1,0,0,0,1104,1105,1,0,0,0,1105,1106,5,199,0,0,1106,1108,5,201,0,0,1107,1098,1,0,0,0,1107,1099,1,0,0,0,1107,1100,1,0,0,0,1107,1103,1,0,0,0,1108,1133,1,0,0,0,1109,1111,5,199,0,0,1110,1109,1,0,0,0,1110,1111,1,0,0,0,1111,1112,1,0,0,0,1112,1114,5,65,0,0,1113,1115,7,0,0,0,1114,1113,1,0,0,0,1114,1115,1,0,0,0,1115,1116,1,0,0,0,1116,1117,3,28,14,0,1117,1118,5,45,0,0,1118,1119,3,28,14,0,1119,1133,1,0,0,0,1120,1126,5,1,0,0,1121,1126,5,2,0,0,1122,1126,5,3,0,0,1123,1126,5,4,0,0,1124,1126,3,22,11,0,1125,1120,1,0,0,0,1125,1121,1,0,0,0,1125,1122,1,0,0,0,1125,1123,1,0,0,0,1125,1124,1,0,0,0,1126,1127,1,0,0,0,1127,1129,3,28,14,0,1128,1125,1,0,0,0,1129,1130,1,0,0,0,1130,1128,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1082,1,0,0,0,1132,1091,1,0,0,0,1132,1107,1,0,0,0,1132,1110,1,0,0,0,1132,1128,1,0,0,0,1133,25,1,0,0,0,1134,1135,7,1,0,0,1135,27,1,0,0,0,1136,1141,3,36,18,0,1137,1138,7,2,0,0,1138,1140,3,36,18,0,1139,1137,1,0,0,0,1140,1143,1,0,0,0,1141,1139,1,0,0,0,1141,1142,1,0,0,0,1142,29,1,0,0,0,1143,1141,1,0,0,0,1144,1145,5,7,0,0,1145,1146,5,7,0,0,1146,31,1,0,0,0,1147,1148,5,7,0,0,1148,1149,5,7,0,0,1149,1150,5,12,0,0,1150,33,1,0,0,0,1151,1152,5,27,0,0,1152,1153,5,27,0,0,1153,35,1,0,0,0,1154,1167,3,38,19,0,1155,1163,5,9,0,0,1156,1163,3,30,15,0,1157,1163,5,10,0,0,1158,1163,3,32,16,0,1159,1163,5,11,0,0,1160,1163,5,12,0,0,1161,1163,5,33,0,0,1162,1155,1,0,0,0,1162,1156,1,0,0,0,1162,1157,1,0,0,0,1162,1158,1,0,0,0,1162,1159,1,0,0,0,1162,1160,1,0,0,0,1162,1161,1,0,0,0,1163,1164,1,0,0,0,1164,1166,3,38,19,0,1165,1162,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,1178,1,0,0,0,1169,1167,1,0,0,0,1170,1171,3,34,17,0,1171,1172,3,36,18,0,1172,1179,1,0,0,0,1173,1175,5,27,0,0,1174,1173,1,0,0,0,1175,1176,1,0,0,0,1176,1174,1,0,0,0,1176,1177,1,0,0,0,1177,1179,1,0,0,0,1178,1170,1,0,0,0,1178,1174,1,0,0,0,1178,1179,1,0,0,0,1179,37,1,0,0,0,1180,1185,3,40,20,0,1181,1182,7,3,0,0,1182,1184,3,40,20,0,1183,1181,1,0,0,0,1184,1187,1,0,0,0,1185,1183,1,0,0,0,1185,1186,1,0,0,0,1186,39,1,0,0,0,1187,1185,1,0,0,0,1188,1193,3,42,21,0,1189,1190,7,4,0,0,1190,1192,3,42,21,0,1191,1189,1,0,0,0,1192,1195,1,0,0,0,1193,1191,1,0,0,0,1193,1194,1,0,0,0,1194,41,1,0,0,0,1195,1193,1,0,0,0,1196,1201,3,44,22,0,1197,1198,5,13,0,0,1198,1200,3,44,22,0,1199,1197,1,0,0,0,1200,1203,1,0,0,0,1201,1199,1,0,0,0,1201,1202,1,0,0,0,1202,43,1,0,0,0,1203,1201,1,0,0,0,1204,1209,3,54,27,0,1205,1206,3,46,23,0,1206,1207,3,54,27,0,1207,1209,1,0,0,0,1208,1204,1,0,0,0,1208,1205,1,0,0,0,1209,45,1,0,0,0,1210,1211,7,5,0,0,1211,47,1,0,0,0,1212,1221,3,138,69,0,1213,1221,3,132,66,0,1214,1218,5,23,0,0,1215,1219,3,144,72,0,1216,1219,5,329,0,0,1217,1219,3,826,413,0,1218,1215,1,0,0,0,1218,1216,1,0,0,0,1218,1217,1,0,0,0,1219,1221,1,0,0,0,1220,1212,1,0,0,0,1220,1213,1,0,0,0,1220,1214,1,0,0,0,1221,1223,1,0,0,0,1222,1220,1,0,0,0,1223,1226,1,0,0,0,1224,1222,1,0,0,0,1224,1225,1,0,0,0,1225,1229,1,0,0,0,1226,1224,1,0,0,0,1227,1228,5,75,0,0,1228,1230,3,824,412,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,49,1,0,0,0,1231,1234,3,810,405,0,1232,1234,3,68,34,0,1233,1231,1,0,0,0,1233,1232,1,0,0,0,1234,1235,1,0,0,0,1235,1236,3,48,24,0,1236,51,1,0,0,0,1237,1240,3,812,406,0,1238,1240,3,70,35,0,1239,1237,1,0,0,0,1239,1238,1,0,0,0,1240,1241,1,0,0,0,1241,1242,3,48,24,0,1242,53,1,0,0,0,1243,1246,3,50,25,0,1244,1246,3,84,42,0,1245,1243,1,0,0,0,1245,1244,1,0,0,0,1246,55,1,0,0,0,1247,1250,3,52,26,0,1248,1250,3,84,42,0,1249,1247,1,0,0,0,1249,1248,1,0,0,0,1250,57,1,0,0,0,1251,1253,5,37,0,0,1252,1254,3,112,56,0,1253,1252,1,0,0,0,1253,1254,1,0,0,0,1254,1256,1,0,0,0,1255,1257,5,24,0,0,1256,1255,1,0,0,0,1256,1257,1,0,0,0,1257,1258,1,0,0,0,1258,1259,5,36,0,0,1259,59,1,0,0,0,1260,1263,3,14,7,0,1261,1262,5,28,0,0,1262,1264,3,14,7,0,1263,1261,1,0,0,0,1263,1264,1,0,0,0,1264,1273,1,0,0,0,1265,1266,5,24,0,0,1266,1269,3,14,7,0,1267,1268,5,28,0,0,1268,1270,3,14,7,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1265,1,0,0,0,1272,1275,1,0,0,0,1273,1271,1,0,0,0,1273,1274,1,0,0,0,1274,61,1,0,0,0,1275,1273,1,0,0,0,1276,1278,5,31,0,0,1277,1279,3,60,30,0,1278,1277,1,0,0,0,1278,1279,1,0,0,0,1279,1281,1,0,0,0,1280,1282,5,24,0,0,1281,1280,1,0,0,0,1281,1282,1,0,0,0,1282,1283,1,0,0,0,1283,1284,5,32,0,0,1284,63,1,0,0,0,1285,1286,3,14,7,0,1286,1287,5,28,0,0,1287,1295,3,14,7,0,1288,1289,5,24,0,0,1289,1290,3,14,7,0,1290,1291,5,28,0,0,1291,1292,3,14,7,0,1292,1294,1,0,0,0,1293,1288,1,0,0,0,1294,1297,1,0,0,0,1295,1293,1,0,0,0,1295,1296,1,0,0,0,1296,65,1,0,0,0,1297,1295,1,0,0,0,1298,1300,5,14,0,0,1299,1301,3,64,32,0,1300,1299,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1304,5,24,0,0,1303,1302,1,0,0,0,1303,1304,1,0,0,0,1304,1305,1,0,0,0,1305,1306,5,15,0,0,1306,67,1,0,0,0,1307,1325,3,142,71,0,1308,1325,3,144,72,0,1309,1325,3,80,40,0,1310,1325,3,72,36,0,1311,1325,3,76,38,0,1312,1325,3,78,39,0,1313,1314,3,826,413,0,1314,1317,5,34,0,0,1315,1318,3,852,426,0,1316,1318,5,326,0,0,1317,1315,1,0,0,0,1317,1316,1,0,0,0,1318,1325,1,0,0,0,1319,1325,3,208,104,0,1320,1325,3,74,37,0,1321,1325,3,58,29,0,1322,1325,3,62,31,0,1323,1325,3,66,33,0,1324,1307,1,0,0,0,1324,1308,1,0,0,0,1324,1309,1,0,0,0,1324,1310,1,0,0,0,1324,1311,1,0,0,0,1324,1312,1,0,0,0,1324,1313,1,0,0,0,1324,1319,1,0,0,0,1324,1320,1,0,0,0,1324,1321,1,0,0,0,1324,1322,1,0,0,0,1324,1323,1,0,0,0,1325,69,1,0,0,0,1326,1347,3,142,71,0,1327,1347,3,144,72,0,1328,1347,3,80,40,0,1329,1347,3,72,36,0,1330,1347,3,78,39,0,1331,1332,3,826,413,0,1332,1335,5,34,0,0,1333,1336,3,852,426,0,1334,1336,5,326,0,0,1335,1333,1,0,0,0,1335,1334,1,0,0,0,1336,1347,1,0,0,0,1337,1338,5,25,0,0,1338,1339,3,232,116,0,1339,1340,5,26,0,0,1340,1347,1,0,0,0,1341,1347,3,208,104,0,1342,1347,3,74,37,0,1343,1347,3,58,29,0,1344,1347,3,62,31,0,1345,1347,3,66,33,0,1346,1326,1,0,0,0,1346,1327,1,0,0,0,1346,1328,1,0,0,0,1346,1329,1,0,0,0,1346,1330,1,0,0,0,1346,1331,1,0,0,0,1346,1337,1,0,0,0,1346,1341,1,0,0,0,1346,1342,1,0,0,0,1346,1343,1,0,0,0,1346,1344,1,0,0,0,1346,1345,1,0,0,0,1347,71,1,0,0,0,1348,1349,5,71,0,0,1349,1350,5,25,0,0,1350,1351,3,14,7,0,1351,1352,5,49,0,0,1352,1353,3,204,102,0,1353,1354,5,26,0,0,1354,73,1,0,0,0,1355,1356,5,66,0,0,1356,1357,5,25,0,0,1357,1358,3,14,7,0,1358,1359,5,49,0,0,1359,1360,3,156,78,0,1360,1361,5,26,0,0,1361,75,1,0,0,0,1362,1363,5,127,0,0,1363,1366,5,25,0,0,1364,1367,3,232,116,0,1365,1367,3,370,185,0,1366,1364,1,0,0,0,1366,1365,1,0,0,0,1367,1368,1,0,0,0,1368,1369,5,26,0,0,1369,77,1,0,0,0,1370,1372,5,70,0,0,1371,1373,3,14,7,0,1372,1371,1,0,0,0,1372,1373,1,0,0,0,1373,1375,1,0,0,0,1374,1376,3,140,70,0,1375,1374,1,0,0,0,1376,1377,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1381,1,0,0,0,1379,1380,5,113,0,0,1380,1382,3,14,7,0,1381,1379,1,0,0,0,1381,1382,1,0,0,0,1382,1383,1,0,0,0,1383,1384,5,117,0,0,1384,79,1,0,0,0,1385,1397,3,110,55,0,1386,1395,5,35,0,0,1387,1388,5,25,0,0,1388,1389,3,14,7,0,1389,1390,5,26,0,0,1390,1396,1,0,0,0,1391,1392,5,31,0,0,1392,1393,3,6,3,0,1393,1394,5,32,0,0,1394,1396,1,0,0,0,1395,1387,1,0,0,0,1395,1391,1,0,0,0,1396,1398,1,0,0,0,1397,1386,1,0,0,0,1397,1398,1,0,0,0,1398,81,1,0,0,0,1399,1400,3,56,28,0,1400,83,1,0,0,0,1401,1405,3,98,49,0,1402,1405,3,102,51,0,1403,1405,3,108,54,0,1404,1401,1,0,0,0,1404,1402,1,0,0,0,1404,1403,1,0,0,0,1405,85,1,0,0,0,1406,1407,5,326,0,0,1407,87,1,0,0,0,1408,1411,3,810,405,0,1409,1411,5,326,0,0,1410,1408,1,0,0,0,1410,1409,1,0,0,0,1411,89,1,0,0,0,1412,1413,3,14,7,0,1413,1414,5,49,0,0,1414,1415,3,88,44,0,1415,91,1,0,0,0,1416,1421,3,90,45,0,1417,1418,5,24,0,0,1418,1420,3,90,45,0,1419,1417,1,0,0,0,1420,1423,1,0,0,0,1421,1419,1,0,0,0,1421,1422,1,0,0,0,1422,93,1,0,0,0,1423,1421,1,0,0,0,1424,1425,3,14,7,0,1425,1426,5,24,0,0,1426,1429,3,86,43,0,1427,1428,5,219,0,0,1428,1430,3,92,46,0,1429,1427,1,0,0,0,1429,1430,1,0,0,0,1430,95,1,0,0,0,1431,1436,5,120,0,0,1432,1436,5,201,0,0,1433,1434,5,97,0,0,1434,1436,3,14,7,0,1435,1431,1,0,0,0,1435,1432,1,0,0,0,1435,1433,1,0,0,0,1436,97,1,0,0,0,1437,1438,5,176,0,0,1438,1439,5,25,0,0,1439,1442,3,94,47,0,1440,1441,5,255,0,0,1441,1443,3,156,78,0,1442,1440,1,0,0,0,1442,1443,1,0,0,0,1443,1450,1,0,0,0,1444,1445,3,96,48,0,1445,1446,5,207,0,0,1446,1447,7,6,0,0,1447,1449,1,0,0,0,1448,1444,1,0,0,0,1449,1452,1,0,0,0,1450,1448,1,0,0,0,1450,1451,1,0,0,0,1451,1453,1,0,0,0,1452,1450,1,0,0,0,1453,1454,5,26,0,0,1454,99,1,0,0,0,1455,1456,7,7,0,0,1456,1457,5,207,0,0,1457,1458,5,120,0,0,1458,101,1,0,0,0,1459,1460,5,174,0,0,1460,1461,5,25,0,0,1461,1463,3,94,47,0,1462,1464,3,100,50,0,1463,1462,1,0,0,0,1463,1464,1,0,0,0,1464,1465,1,0,0,0,1465,1466,5,26,0,0,1466,103,1,0,0,0,1467,1469,5,323,0,0,1468,1470,5,48,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,1479,1,0,0,0,1471,1473,5,322,0,0,1472,1474,7,8,0,0,1473,1472,1,0,0,0,1473,1474,1,0,0,0,1474,1476,1,0,0,0,1475,1477,5,48,0,0,1476,1475,1,0,0,0,1476,1477,1,0,0,0,1477,1479,1,0,0,0,1478,1467,1,0,0,0,1478,1471,1,0,0,0,1479,105,1,0,0,0,1480,1487,5,120,0,0,1481,1487,5,201,0,0,1482,1483,5,114,0,0,1483,1487,5,48,0,0,1484,1485,5,114,0,0,1485,1487,5,203,0,0,1486,1480,1,0,0,0,1486,1481,1,0,0,0,1486,1482,1,0,0,0,1486,1484,1,0,0,0,1487,107,1,0,0,0,1488,1489,5,175,0,0,1489,1490,5,25,0,0,1490,1494,3,94,47,0,1491,1492,3,104,52,0,1492,1493,5,324,0,0,1493,1495,1,0,0,0,1494,1491,1,0,0,0,1494,1495,1,0,0,0,1495,1500,1,0,0,0,1496,1497,3,106,53,0,1497,1498,5,207,0,0,1498,1499,5,114,0,0,1499,1501,1,0,0,0,1500,1496,1,0,0,0,1500,1501,1,0,0,0,1501,1506,1,0,0,0,1502,1503,3,106,53,0,1503,1504,5,207,0,0,1504,1505,5,120,0,0,1505,1507,1,0,0,0,1506,1502,1,0,0,0,1506,1507,1,0,0,0,1507,1508,1,0,0,0,1508,1509,5,26,0,0,1509,109,1,0,0,0,1510,1512,5,25,0,0,1511,1513,3,130,65,0,1512,1511,1,0,0,0,1512,1513,1,0,0,0,1513,1515,1,0,0,0,1514,1516,5,24,0,0,1515,1514,1,0,0,0,1515,1516,1,0,0,0,1516,1517,1,0,0,0,1517,1518,5,26,0,0,1518,111,1,0,0,0,1519,1524,3,14,7,0,1520,1521,5,24,0,0,1521,1523,3,14,7,0,1522,1520,1,0,0,0,1523,1526,1,0,0,0,1524,1522,1,0,0,0,1524,1525,1,0,0,0,1525,113,1,0,0,0,1526,1524,1,0,0,0,1527,1528,5,25,0,0,1528,1533,3,824,412,0,1529,1530,5,24,0,0,1530,1532,3,824,412,0,1531,1529,1,0,0,0,1532,1535,1,0,0,0,1533,1531,1,0,0,0,1533,1534,1,0,0,0,1534,1536,1,0,0,0,1535,1533,1,0,0,0,1536,1537,5,26,0,0,1537,115,1,0,0,0,1538,1541,3,144,72,0,1539,1541,3,824,412,0,1540,1538,1,0,0,0,1540,1539,1,0,0,0,1541,117,1,0,0,0,1542,1543,5,25,0,0,1543,1548,3,116,58,0,1544,1545,5,24,0,0,1545,1547,3,116,58,0,1546,1544,1,0,0,0,1547,1550,1,0,0,0,1548,1546,1,0,0,0,1548,1549,1,0,0,0,1549,1551,1,0,0,0,1550,1548,1,0,0,0,1551,1552,5,26,0,0,1552,119,1,0,0,0,1553,1554,3,848,424,0,1554,1555,3,824,412,0,1555,121,1,0,0,0,1556,1557,3,824,412,0,1557,1558,5,23,0,0,1558,1559,3,824,412,0,1559,1562,1,0,0,0,1560,1562,3,838,419,0,1561,1556,1,0,0,0,1561,1560,1,0,0,0,1562,123,1,0,0,0,1563,1568,3,120,60,0,1564,1565,5,24,0,0,1565,1567,3,120,60,0,1566,1564,1,0,0,0,1567,1570,1,0,0,0,1568,1566,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1568,1,0,0,0,1571,1573,5,24,0,0,1572,1571,1,0,0,0,1572,1573,1,0,0,0,1573,125,1,0,0,0,1574,1579,3,122,61,0,1575,1576,5,24,0,0,1576,1578,3,122,61,0,1577,1575,1,0,0,0,1578,1581,1,0,0,0,1579,1577,1,0,0,0,1579,1580,1,0,0,0,1580,1583,1,0,0,0,1581,1579,1,0,0,0,1582,1584,5,24,0,0,1583,1582,1,0,0,0,1583,1584,1,0,0,0,1584,127,1,0,0,0,1585,1588,3,14,7,0,1586,1587,5,49,0,0,1587,1589,3,826,413,0,1588,1586,1,0,0,0,1588,1589,1,0,0,0,1589,129,1,0,0,0,1590,1595,3,128,64,0,1591,1592,5,24,0,0,1592,1594,3,128,64,0,1593,1591,1,0,0,0,1594,1597,1,0,0,0,1595,1593,1,0,0,0,1595,1596,1,0,0,0,1596,131,1,0,0,0,1597,1595,1,0,0,0,1598,1605,5,25,0,0,1599,1600,3,252,126,0,1600,1602,3,130,65,0,1601,1603,5,24,0,0,1602,1601,1,0,0,0,1602,1603,1,0,0,0,1603,1606,1,0,0,0,1604,1606,5,19,0,0,1605,1599,1,0,0,0,1605,1604,1,0,0,0,1605,1606,1,0,0,0,1606,1607,1,0,0,0,1607,1608,5,26,0,0,1608,1609,3,134,67,0,1609,133,1,0,0,0,1610,1613,3,746,373,0,1611,1613,3,748,374,0,1612,1610,1,0,0,0,1612,1611,1,0,0,0,1612,1613,1,0,0,0,1613,1616,1,0,0,0,1614,1615,5,216,0,0,1615,1617,3,750,375,0,1616,1614,1,0,0,0,1616,1617,1,0,0,0,1617,135,1,0,0,0,1618,1619,3,826,413,0,1619,1620,5,34,0,0,1620,1621,3,826,413,0,1621,1627,1,0,0,0,1622,1627,3,830,415,0,1623,1627,3,144,72,0,1624,1625,5,130,0,0,1625,1627,5,143,0,0,1626,1618,1,0,0,0,1626,1622,1,0,0,0,1626,1623,1,0,0,0,1626,1624,1,0,0,0,1627,1628,1,0,0,0,1628,1629,3,132,66,0,1629,137,1,0,0,0,1630,1631,5,37,0,0,1631,1632,3,14,7,0,1632,1633,5,36,0,0,1633,139,1,0,0,0,1634,1635,5,319,0,0,1635,1636,3,14,7,0,1636,1637,5,293,0,0,1637,1638,3,14,7,0,1638,141,1,0,0,0,1639,1650,3,888,444,0,1640,1650,3,886,443,0,1641,1650,5,326,0,0,1642,1650,5,332,0,0,1643,1650,5,201,0,0,1644,1650,5,91,0,0,1645,1650,5,90,0,0,1646,1650,5,92,0,0,1647,1650,3,884,442,0,1648,1650,5,115,0,0,1649,1639,1,0,0,0,1649,1640,1,0,0,0,1649,1641,1,0,0,0,1649,1642,1,0,0,0,1649,1643,1,0,0,0,1649,1644,1,0,0,0,1649,1645,1,0,0,0,1649,1646,1,0,0,0,1649,1647,1,0,0,0,1649,1648,1,0,0,0,1650,143,1,0,0,0,1651,1655,5,30,0,0,1652,1656,3,826,413,0,1653,1656,5,300,0,0,1654,1656,5,132,0,0,1655,1652,1,0,0,0,1655,1653,1,0,0,0,1655,1654,1,0,0,0,1656,145,1,0,0,0,1657,1659,3,144,72,0,1658,1660,5,27,0,0,1659,1658,1,0,0,0,1659,1660,1,0,0,0,1660,147,1,0,0,0,1661,1666,3,144,72,0,1662,1663,5,24,0,0,1663,1665,3,144,72,0,1664,1662,1,0,0,0,1665,1668,1,0,0,0,1666,1664,1,0,0,0,1666,1667,1,0,0,0,1667,149,1,0,0,0,1668,1666,1,0,0,0,1669,1672,3,144,72,0,1670,1671,5,49,0,0,1671,1673,3,144,72,0,1672,1670,1,0,0,0,1672,1673,1,0,0,0,1673,151,1,0,0,0,1674,1679,3,150,75,0,1675,1676,5,24,0,0,1676,1678,3,150,75,0,1677,1675,1,0,0,0,1678,1681,1,0,0,0,1679,1677,1,0,0,0,1679,1680,1,0,0,0,1680,153,1,0,0,0,1681,1679,1,0,0,0,1682,1684,7,3,0,0,1683,1682,1,0,0,0,1683,1684,1,0,0,0,1684,1687,1,0,0,0,1685,1688,3,888,444,0,1686,1688,3,886,443,0,1687,1685,1,0,0,0,1687,1686,1,0,0,0,1688,155,1,0,0,0,1689,1690,3,842,421,0,1690,157,1,0,0,0,1691,1694,3,888,444,0,1692,1694,3,144,72,0,1693,1691,1,0,0,0,1693,1692,1,0,0,0,1694,159,1,0,0,0,1695,1699,3,806,403,0,1696,1699,5,326,0,0,1697,1699,3,144,72,0,1698,1695,1,0,0,0,1698,1696,1,0,0,0,1698,1697,1,0,0,0,1699,161,1,0,0,0,1700,1701,3,160,80,0,1701,1702,5,28,0,0,1702,1703,3,204,102,0,1703,163,1,0,0,0,1704,1705,3,160,80,0,1705,1710,3,204,102,0,1706,1708,5,199,0,0,1707,1706,1,0,0,0,1707,1708,1,0,0,0,1708,1709,1,0,0,0,1709,1711,5,201,0,0,1710,1707,1,0,0,0,1710,1711,1,0,0,0,1711,1717,1,0,0,0,1712,1713,3,204,102,0,1713,1714,5,49,0,0,1714,1715,3,160,80,0,1715,1717,1,0,0,0,1716,1704,1,0,0,0,1716,1712,1,0,0,0,1717,165,1,0,0,0,1718,1719,3,160,80,0,1719,1720,5,28,0,0,1720,1722,1,0,0,0,1721,1718,1,0,0,0,1721,1722,1,0,0,0,1722,1723,1,0,0,0,1723,1724,3,204,102,0,1724,167,1,0,0,0,1725,1729,3,166,83,0,1726,1727,5,31,0,0,1727,1728,5,58,0,0,1728,1730,5,32,0,0,1729,1726,1,0,0,0,1729,1730,1,0,0,0,1730,169,1,0,0,0,1731,1736,3,168,84,0,1732,1733,5,24,0,0,1733,1735,3,168,84,0,1734,1732,1,0,0,0,1735,1738,1,0,0,0,1736,1734,1,0,0,0,1736,1737,1,0,0,0,1737,171,1,0,0,0,1738,1736,1,0,0,0,1739,1740,5,95,0,0,1740,1741,5,25,0,0,1741,1742,3,158,79,0,1742,1743,5,24,0,0,1743,1744,3,158,79,0,1744,1745,5,26,0,0,1745,173,1,0,0,0,1746,1747,5,211,0,0,1747,1748,5,5,0,0,1748,1749,3,204,102,0,1749,1750,5,7,0,0,1750,175,1,0,0,0,1751,1768,5,301,0,0,1752,1764,5,5,0,0,1753,1758,3,204,102,0,1754,1755,5,24,0,0,1755,1757,3,204,102,0,1756,1754,1,0,0,0,1757,1760,1,0,0,0,1758,1756,1,0,0,0,1758,1759,1,0,0,0,1759,1762,1,0,0,0,1760,1758,1,0,0,0,1761,1763,5,24,0,0,1762,1761,1,0,0,0,1762,1763,1,0,0,0,1763,1765,1,0,0,0,1764,1753,1,0,0,0,1764,1765,1,0,0,0,1765,1766,1,0,0,0,1766,1769,5,7,0,0,1767,1769,5,4,0,0,1768,1752,1,0,0,0,1768,1767,1,0,0,0,1769,177,1,0,0,0,1770,1787,5,279,0,0,1771,1783,5,5,0,0,1772,1777,3,162,81,0,1773,1774,5,24,0,0,1774,1776,3,162,81,0,1775,1773,1,0,0,0,1776,1779,1,0,0,0,1777,1775,1,0,0,0,1777,1778,1,0,0,0,1778,1781,1,0,0,0,1779,1777,1,0,0,0,1780,1782,5,24,0,0,1781,1780,1,0,0,0,1781,1782,1,0,0,0,1782,1784,1,0,0,0,1783,1772,1,0,0,0,1783,1784,1,0,0,0,1784,1785,1,0,0,0,1785,1788,5,7,0,0,1786,1788,5,4,0,0,1787,1771,1,0,0,0,1787,1786,1,0,0,0,1788,179,1,0,0,0,1789,1790,5,316,0,0,1790,1791,5,5,0,0,1791,1796,3,166,83,0,1792,1793,5,24,0,0,1793,1795,3,166,83,0,1794,1792,1,0,0,0,1795,1798,1,0,0,0,1796,1794,1,0,0,0,1796,1797,1,0,0,0,1797,1800,1,0,0,0,1798,1796,1,0,0,0,1799,1801,5,24,0,0,1800,1799,1,0,0,0,1800,1801,1,0,0,0,1801,1802,1,0,0,0,1802,1803,5,7,0,0,1803,181,1,0,0,0,1804,1805,5,183,0,0,1805,1806,5,5,0,0,1806,1807,3,204,102,0,1807,1808,5,7,0,0,1808,183,1,0,0,0,1809,1810,5,278,0,0,1810,1811,5,5,0,0,1811,1812,3,204,102,0,1812,1813,5,7,0,0,1813,185,1,0,0,0,1814,1815,5,137,0,0,1815,1816,5,5,0,0,1816,1817,3,204,102,0,1817,1818,5,7,0,0,1818,187,1,0,0,0,1819,1820,5,105,0,0,1820,1821,5,5,0,0,1821,1822,3,204,102,0,1822,1823,5,24,0,0,1823,1824,3,204,102,0,1824,1825,5,7,0,0,1825,189,1,0,0,0,1826,1827,5,271,0,0,1827,1828,5,5,0,0,1828,1829,3,204,102,0,1829,1830,5,7,0,0,1830,191,1,0,0,0,1831,1832,5,118,0,0,1832,1833,5,5,0,0,1833,1838,3,160,80,0,1834,1835,5,24,0,0,1835,1837,3,160,80,0,1836,1834,1,0,0,0,1837,1840,1,0,0,0,1838,1836,1,0,0,0,1838,1839,1,0,0,0,1839,1842,1,0,0,0,1840,1838,1,0,0,0,1841,1843,5,24,0,0,1842,1841,1,0,0,0,1842,1843,1,0,0,0,1843,1844,1,0,0,0,1844,1845,5,7,0,0,1845,193,1,0,0,0,1846,1847,5,248,0,0,1847,1848,5,5,0,0,1848,1849,3,160,80,0,1849,1850,5,7,0,0,1850,195,1,0,0,0,1851,1852,5,290,0,0,1852,1853,5,5,0,0,1853,1854,3,204,102,0,1854,1855,5,24,0,0,1855,1856,3,160,80,0,1856,1857,5,7,0,0,1857,197,1,0,0,0,1858,1859,5,68,0,0,1859,1860,5,5,0,0,1860,1862,5,25,0,0,1861,1863,3,170,85,0,1862,1861,1,0,0,0,1862,1863,1,0,0,0,1863,1865,1,0,0,0,1864,1866,5,24,0,0,1865,1864,1,0,0,0,1865,1866,1,0,0,0,1866,1871,1,0,0,0,1867,1868,5,37,0,0,1868,1869,3,170,85,0,1869,1870,5,36,0,0,1870,1872,1,0,0,0,1871,1867,1,0,0,0,1871,1872,1,0,0,0,1872,1873,1,0,0,0,1873,1874,5,26,0,0,1874,1875,5,35,0,0,1875,1876,3,204,102,0,1876,1877,5,7,0,0,1877,199,1,0,0,0,1878,1892,3,174,87,0,1879,1892,3,176,88,0,1880,1892,3,178,89,0,1881,1892,3,180,90,0,1882,1892,3,182,91,0,1883,1892,3,184,92,0,1884,1892,3,186,93,0,1885,1892,3,188,94,0,1886,1892,3,190,95,0,1887,1892,3,192,96,0,1888,1892,3,194,97,0,1889,1892,3,196,98,0,1890,1892,3,198,99,0,1891,1878,1,0,0,0,1891,1879,1,0,0,0,1891,1880,1,0,0,0,1891,1881,1,0,0,0,1891,1882,1,0,0,0,1891,1883,1,0,0,0,1891,1884,1,0,0,0,1891,1885,1,0,0,0,1891,1886,1,0,0,0,1891,1887,1,0,0,0,1891,1888,1,0,0,0,1891,1889,1,0,0,0,1891,1890,1,0,0,0,1892,1896,1,0,0,0,1893,1895,5,27,0,0,1894,1893,1,0,0,0,1895,1898,1,0,0,0,1896,1894,1,0,0,0,1896,1897,1,0,0,0,1897,201,1,0,0,0,1898,1896,1,0,0,0,1899,1911,3,200,100,0,1900,1903,3,172,86,0,1901,1903,3,156,78,0,1902,1900,1,0,0,0,1902,1901,1,0,0,0,1903,1907,1,0,0,0,1904,1906,5,27,0,0,1905,1904,1,0,0,0,1906,1909,1,0,0,0,1907,1905,1,0,0,0,1907,1908,1,0,0,0,1908,1911,1,0,0,0,1909,1907,1,0,0,0,1910,1899,1,0,0,0,1910,1902,1,0,0,0,1911,203,1,0,0,0,1912,1915,3,202,101,0,1913,1915,3,144,72,0,1914,1912,1,0,0,0,1914,1913,1,0,0,0,1915,205,1,0,0,0,1916,1917,5,326,0,0,1917,207,1,0,0,0,1918,1919,5,316,0,0,1919,1920,5,25,0,0,1920,1921,3,14,7,0,1921,1922,5,24,0,0,1922,1923,3,14,7,0,1923,1924,5,24,0,0,1924,1925,3,14,7,0,1925,1926,5,26,0,0,1926,1942,1,0,0,0,1927,1928,5,118,0,0,1928,1929,5,25,0,0,1929,1930,3,14,7,0,1930,1931,5,24,0,0,1931,1932,3,14,7,0,1932,1933,5,26,0,0,1933,1942,1,0,0,0,1934,1935,5,68,0,0,1935,1936,5,25,0,0,1936,1937,3,14,7,0,1937,1938,5,24,0,0,1938,1939,3,14,7,0,1939,1940,5,26,0,0,1940,1942,1,0,0,0,1941,1918,1,0,0,0,1941,1927,1,0,0,0,1941,1934,1,0,0,0,1942,209,1,0,0,0,1943,1944,5,96,0,0,1944,1945,3,144,72,0,1945,1946,5,49,0,0,1946,1949,3,202,101,0,1947,1948,5,1,0,0,1948,1950,3,142,71,0,1949,1947,1,0,0,0,1949,1950,1,0,0,0,1950,211,1,0,0,0,1951,1953,5,23,0,0,1952,1951,1,0,0,0,1952,1953,1,0,0,0,1953,1954,1,0,0,0,1954,1959,3,824,412,0,1955,1956,5,23,0,0,1956,1958,3,824,412,0,1957,1955,1,0,0,0,1958,1961,1,0,0,0,1959,1957,1,0,0,0,1959,1960,1,0,0,0,1960,213,1,0,0,0,1961,1959,1,0,0,0,1962,1963,5,157,0,0,1963,1964,3,212,106,0,1964,1965,5,282,0,0,1965,1966,3,152,76,0,1966,215,1,0,0,0,1967,1968,5,129,0,0,1968,1969,3,148,74,0,1969,217,1,0,0,0,1970,1973,3,144,72,0,1971,1973,5,115,0,0,1972,1970,1,0,0,0,1972,1971,1,0,0,0,1973,1974,1,0,0,0,1974,1976,5,25,0,0,1975,1977,3,112,56,0,1976,1975,1,0,0,0,1976,1977,1,0,0,0,1977,1978,1,0,0,0,1978,1979,5,26,0,0,1979,219,1,0,0,0,1980,1981,5,63,0,0,1981,1982,3,656,328,0,1982,1983,5,117,0,0,1983,1984,5,110,0,0,1984,221,1,0,0,0,1985,1988,5,110,0,0,1986,1989,3,218,109,0,1987,1989,3,220,110,0,1988,1986,1,0,0,0,1988,1987,1,0,0,0,1989,223,1,0,0,0,1990,1991,5,227,0,0,1991,1992,3,854,427,0,1992,2006,3,824,412,0,1993,1994,5,1,0,0,1994,2007,3,226,113,0,1995,1996,5,25,0,0,1996,2001,3,226,113,0,1997,1998,5,24,0,0,1998,2e3,3,226,113,0,1999,1997,1,0,0,0,2e3,2003,1,0,0,0,2001,1999,1,0,0,0,2001,2002,1,0,0,0,2002,2004,1,0,0,0,2003,2001,1,0,0,0,2004,2005,5,26,0,0,2005,2007,1,0,0,0,2006,1993,1,0,0,0,2006,1995,1,0,0,0,2006,2007,1,0,0,0,2007,225,1,0,0,0,2008,2014,3,154,77,0,2009,2014,3,806,403,0,2010,2014,5,326,0,0,2011,2014,3,884,442,0,2012,2014,3,144,72,0,2013,2008,1,0,0,0,2013,2009,1,0,0,0,2013,2010,1,0,0,0,2013,2011,1,0,0,0,2013,2012,1,0,0,0,2014,227,1,0,0,0,2015,2017,3,14,7,0,2016,2018,7,9,0,0,2017,2016,1,0,0,0,2017,2018,1,0,0,0,2018,229,1,0,0,0,2019,2024,3,228,114,0,2020,2021,5,24,0,0,2021,2023,3,228,114,0,2022,2020,1,0,0,0,2023,2026,1,0,0,0,2024,2022,1,0,0,0,2024,2025,1,0,0,0,2025,231,1,0,0,0,2026,2024,1,0,0,0,2027,2033,3,236,118,0,2028,2029,3,238,119,0,2029,2030,3,236,118,0,2030,2032,1,0,0,0,2031,2028,1,0,0,0,2032,2035,1,0,0,0,2033,2031,1,0,0,0,2033,2034,1,0,0,0,2034,233,1,0,0,0,2035,2033,1,0,0,0,2036,2042,3,240,120,0,2037,2038,3,238,119,0,2038,2039,3,236,118,0,2039,2041,1,0,0,0,2040,2037,1,0,0,0,2041,2044,1,0,0,0,2042,2040,1,0,0,0,2042,2043,1,0,0,0,2043,235,1,0,0,0,2044,2042,1,0,0,0,2045,2051,3,240,120,0,2046,2047,5,25,0,0,2047,2048,3,240,120,0,2048,2049,5,26,0,0,2049,2051,1,0,0,0,2050,2045,1,0,0,0,2050,2046,1,0,0,0,2051,237,1,0,0,0,2052,2054,5,305,0,0,2053,2055,5,42,0,0,2054,2053,1,0,0,0,2054,2055,1,0,0,0,2055,2059,1,0,0,0,2056,2059,5,169,0,0,2057,2059,5,123,0,0,2058,2052,1,0,0,0,2058,2056,1,0,0,0,2058,2057,1,0,0,0,2059,239,1,0,0,0,2060,2067,3,242,121,0,2061,2062,5,182,0,0,2062,2065,3,14,7,0,2063,2064,7,10,0,0,2064,2066,3,14,7,0,2065,2063,1,0,0,0,2065,2066,1,0,0,0,2066,2068,1,0,0,0,2067,2061,1,0,0,0,2067,2068,1,0,0,0,2068,241,1,0,0,0,2069,2071,5,108,0,0,2070,2069,1,0,0,0,2070,2071,1,0,0,0,2071,2075,1,0,0,0,2072,2076,3,244,122,0,2073,2076,3,250,125,0,2074,2076,3,254,127,0,2075,2072,1,0,0,0,2075,2073,1,0,0,0,2075,2074,1,0,0,0,2076,2080,1,0,0,0,2077,2078,5,170,0,0,2078,2079,5,253,0,0,2079,2081,3,116,58,0,2080,2077,1,0,0,0,2080,2081,1,0,0,0,2081,243,1,0,0,0,2082,2084,5,232,0,0,2083,2085,5,278,0,0,2084,2083,1,0,0,0,2084,2085,1,0,0,0,2085,2086,1,0,0,0,2086,2091,3,346,173,0,2087,2088,5,24,0,0,2088,2090,3,346,173,0,2089,2087,1,0,0,0,2090,2093,1,0,0,0,2091,2089,1,0,0,0,2091,2092,1,0,0,0,2092,2115,1,0,0,0,2093,2091,1,0,0,0,2094,2095,5,313,0,0,2095,2098,3,136,68,0,2096,2097,5,49,0,0,2097,2099,3,824,412,0,2098,2096,1,0,0,0,2098,2099,1,0,0,0,2099,2102,1,0,0,0,2100,2101,5,322,0,0,2101,2103,3,248,124,0,2102,2100,1,0,0,0,2102,2103,1,0,0,0,2103,2105,1,0,0,0,2104,2106,3,900,450,0,2105,2104,1,0,0,0,2105,2106,1,0,0,0,2106,2109,1,0,0,0,2107,2108,5,151,0,0,2108,2110,3,14,7,0,2109,2107,1,0,0,0,2109,2110,1,0,0,0,2110,2113,1,0,0,0,2111,2112,5,51,0,0,2112,2114,3,314,157,0,2113,2111,1,0,0,0,2113,2114,1,0,0,0,2114,2116,1,0,0,0,2115,2094,1,0,0,0,2115,2116,1,0,0,0,2116,245,1,0,0,0,2117,2118,3,824,412,0,2118,2119,5,1,0,0,2119,2120,3,14,7,0,2120,247,1,0,0,0,2121,2126,3,246,123,0,2122,2123,5,24,0,0,2123,2125,3,246,123,0,2124,2122,1,0,0,0,2125,2128,1,0,0,0,2126,2124,1,0,0,0,2126,2127,1,0,0,0,2127,249,1,0,0,0,2128,2126,1,0,0,0,2129,2130,5,237,0,0,2130,2135,3,346,173,0,2131,2132,5,24,0,0,2132,2134,3,346,173,0,2133,2131,1,0,0,0,2134,2137,1,0,0,0,2135,2133,1,0,0,0,2135,2136,1,0,0,0,2136,2140,1,0,0,0,2137,2135,1,0,0,0,2138,2139,5,229,0,0,2139,2141,3,230,115,0,2140,2138,1,0,0,0,2140,2141,1,0,0,0,2141,2142,1,0,0,0,2142,2143,5,207,0,0,2143,2144,3,124,62,0,2144,2146,5,313,0,0,2145,2147,5,42,0,0,2146,2145,1,0,0,0,2146,2147,1,0,0,0,2147,2148,1,0,0,0,2148,2151,3,136,68,0,2149,2150,5,49,0,0,2150,2152,3,824,412,0,2151,2149,1,0,0,0,2151,2152,1,0,0,0,2152,2154,1,0,0,0,2153,2155,3,900,450,0,2154,2153,1,0,0,0,2154,2155,1,0,0,0,2155,2158,1,0,0,0,2156,2157,5,151,0,0,2157,2159,3,14,7,0,2158,2156,1,0,0,0,2158,2159,1,0,0,0,2159,2162,1,0,0,0,2160,2161,5,51,0,0,2161,2163,3,314,157,0,2162,2160,1,0,0,0,2162,2163,1,0,0,0,2163,251,1,0,0,0,2164,2166,7,11,0,0,2165,2164,1,0,0,0,2165,2166,1,0,0,0,2166,253,1,0,0,0,2167,2168,5,141,0,0,2168,2170,3,338,169,0,2169,2167,1,0,0,0,2169,2170,1,0,0,0,2170,2171,1,0,0,0,2171,2173,5,269,0,0,2172,2174,5,278,0,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,2175,1,0,0,0,2175,2176,3,252,126,0,2176,2181,3,336,168,0,2177,2178,5,24,0,0,2178,2180,3,336,168,0,2179,2177,1,0,0,0,2180,2183,1,0,0,0,2181,2179,1,0,0,0,2181,2182,1,0,0,0,2182,2185,1,0,0,0,2183,2181,1,0,0,0,2184,2186,5,24,0,0,2185,2184,1,0,0,0,2185,2186,1,0,0,0,2186,2189,1,0,0,0,2187,2188,5,323,0,0,2188,2190,3,126,63,0,2189,2187,1,0,0,0,2189,2190,1,0,0,0,2190,2193,1,0,0,0,2191,2192,5,141,0,0,2192,2194,3,338,169,0,2193,2191,1,0,0,0,2193,2194,1,0,0,0,2194,2196,1,0,0,0,2195,2197,3,900,450,0,2196,2195,1,0,0,0,2196,2197,1,0,0,0,2197,2199,1,0,0,0,2198,2200,3,318,159,0,2199,2198,1,0,0,0,2199,2200,1,0,0,0,2200,2203,1,0,0,0,2201,2202,5,151,0,0,2202,2204,3,14,7,0,2203,2201,1,0,0,0,2203,2204,1,0,0,0,2204,2206,1,0,0,0,2205,2207,3,754,377,0,2206,2205,1,0,0,0,2206,2207,1,0,0,0,2207,2209,1,0,0,0,2208,2210,3,316,158,0,2209,2208,1,0,0,0,2209,2210,1,0,0,0,2210,255,1,0,0,0,2211,2212,5,189,0,0,2212,2214,5,25,0,0,2213,2215,3,768,384,0,2214,2213,1,0,0,0,2214,2215,1,0,0,0,2215,2217,1,0,0,0,2216,2218,3,314,157,0,2217,2216,1,0,0,0,2217,2218,1,0,0,0,2218,2220,1,0,0,0,2219,2221,3,262,131,0,2220,2219,1,0,0,0,2220,2221,1,0,0,0,2221,2223,1,0,0,0,2222,2224,3,258,129,0,2223,2222,1,0,0,0,2223,2224,1,0,0,0,2224,2225,1,0,0,0,2225,2226,3,268,134,0,2226,2227,5,26,0,0,2227,257,1,0,0,0,2228,2229,5,208,0,0,2229,2230,5,262,0,0,2230,2231,5,223,0,0,2231,2240,5,187,0,0,2232,2233,5,42,0,0,2233,2234,5,263,0,0,2234,2235,5,223,0,0,2235,2237,5,187,0,0,2236,2238,3,260,130,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2240,1,0,0,0,2239,2228,1,0,0,0,2239,2232,1,0,0,0,2240,259,1,0,0,0,2241,2242,5,273,0,0,2242,2243,5,114,0,0,2243,2251,5,188,0,0,2244,2245,5,206,0,0,2245,2246,5,114,0,0,2246,2251,5,188,0,0,2247,2248,5,322,0,0,2248,2249,5,308,0,0,2249,2251,5,263,0,0,2250,2241,1,0,0,0,2250,2244,1,0,0,0,2250,2247,1,0,0,0,2251,261,1,0,0,0,2252,2253,5,190,0,0,2253,2254,3,264,132,0,2254,263,1,0,0,0,2255,2260,3,266,133,0,2256,2257,5,24,0,0,2257,2259,3,266,133,0,2258,2256,1,0,0,0,2259,2262,1,0,0,0,2260,2258,1,0,0,0,2260,2261,1,0,0,0,2261,265,1,0,0,0,2262,2260,1,0,0,0,2263,2264,3,14,7,0,2264,2265,5,49,0,0,2265,2266,3,824,412,0,2266,267,1,0,0,0,2267,2268,5,41,0,0,2268,2269,5,187,0,0,2269,2271,3,270,135,0,2270,2267,1,0,0,0,2270,2271,1,0,0,0,2271,2273,1,0,0,0,2272,2274,3,274,137,0,2273,2272,1,0,0,0,2273,2274,1,0,0,0,2274,2275,1,0,0,0,2275,2276,5,222,0,0,2276,2277,5,25,0,0,2277,2278,3,276,138,0,2278,2280,5,26,0,0,2279,2281,3,290,145,0,2280,2279,1,0,0,0,2280,2281,1,0,0,0,2281,2282,1,0,0,0,2282,2283,5,100,0,0,2283,2284,3,302,151,0,2284,269,1,0,0,0,2285,2286,5,274,0,0,2286,2287,5,295,0,0,2287,2288,5,196,0,0,2288,2305,5,262,0,0,2289,2290,5,274,0,0,2290,2291,5,221,0,0,2291,2292,5,178,0,0,2292,2305,5,262,0,0,2293,2294,5,274,0,0,2294,2295,5,295,0,0,2295,2296,5,135,0,0,2296,2305,3,272,136,0,2297,2298,5,274,0,0,2298,2299,5,295,0,0,2299,2300,5,178,0,0,2300,2305,3,272,136,0,2301,2302,5,274,0,0,2302,2303,5,295,0,0,2303,2305,3,272,136,0,2304,2285,1,0,0,0,2304,2289,1,0,0,0,2304,2293,1,0,0,0,2304,2297,1,0,0,0,2304,2301,1,0,0,0,2305,271,1,0,0,0,2306,2307,3,312,156,0,2307,273,1,0,0,0,2308,2309,7,12,0,0,2309,275,1,0,0,0,2310,2315,3,278,139,0,2311,2312,5,12,0,0,2312,2314,3,278,139,0,2313,2311,1,0,0,0,2314,2317,1,0,0,0,2315,2313,1,0,0,0,2315,2316,1,0,0,0,2316,277,1,0,0,0,2317,2315,1,0,0,0,2318,2320,3,280,140,0,2319,2318,1,0,0,0,2320,2321,1,0,0,0,2321,2319,1,0,0,0,2321,2322,1,0,0,0,2322,279,1,0,0,0,2323,2325,3,284,142,0,2324,2326,3,282,141,0,2325,2324,1,0,0,0,2325,2326,1,0,0,0,2326,281,1,0,0,0,2327,2329,5,19,0,0,2328,2330,5,27,0,0,2329,2328,1,0,0,0,2329,2330,1,0,0,0,2330,2356,1,0,0,0,2331,2333,5,16,0,0,2332,2334,5,27,0,0,2333,2332,1,0,0,0,2333,2334,1,0,0,0,2334,2356,1,0,0,0,2335,2337,5,27,0,0,2336,2338,5,27,0,0,2337,2336,1,0,0,0,2337,2338,1,0,0,0,2338,2356,1,0,0,0,2339,2341,5,31,0,0,2340,2342,3,888,444,0,2341,2340,1,0,0,0,2341,2342,1,0,0,0,2342,2343,1,0,0,0,2343,2345,5,24,0,0,2344,2346,3,888,444,0,2345,2344,1,0,0,0,2345,2346,1,0,0,0,2346,2347,1,0,0,0,2347,2349,5,32,0,0,2348,2350,5,27,0,0,2349,2348,1,0,0,0,2349,2350,1,0,0,0,2350,2356,1,0,0,0,2351,2352,5,31,0,0,2352,2353,3,888,444,0,2353,2354,5,32,0,0,2354,2356,1,0,0,0,2355,2327,1,0,0,0,2355,2331,1,0,0,0,2355,2335,1,0,0,0,2355,2339,1,0,0,0,2355,2351,1,0,0,0,2356,283,1,0,0,0,2357,2373,3,286,143,0,2358,2373,5,30,0,0,2359,2373,5,33,0,0,2360,2362,5,25,0,0,2361,2363,3,276,138,0,2362,2361,1,0,0,0,2362,2363,1,0,0,0,2363,2364,1,0,0,0,2364,2373,5,26,0,0,2365,2366,5,31,0,0,2366,2367,5,17,0,0,2367,2368,3,276,138,0,2368,2369,5,17,0,0,2369,2370,5,32,0,0,2370,2373,1,0,0,0,2371,2373,3,288,144,0,2372,2357,1,0,0,0,2372,2358,1,0,0,0,2372,2359,1,0,0,0,2372,2360,1,0,0,0,2372,2365,1,0,0,0,2372,2371,1,0,0,0,2373,285,1,0,0,0,2374,2375,3,312,156,0,2375,287,1,0,0,0,2376,2377,5,224,0,0,2377,2378,5,25,0,0,2378,2383,3,276,138,0,2379,2380,5,24,0,0,2380,2382,3,276,138,0,2381,2379,1,0,0,0,2382,2385,1,0,0,0,2383,2381,1,0,0,0,2383,2384,1,0,0,0,2384,2386,1,0,0,0,2385,2383,1,0,0,0,2386,2387,5,26,0,0,2387,289,1,0,0,0,2388,2389,5,281,0,0,2389,2390,3,292,146,0,2390,291,1,0,0,0,2391,2396,3,294,147,0,2392,2393,5,24,0,0,2393,2395,3,294,147,0,2394,2392,1,0,0,0,2395,2398,1,0,0,0,2396,2394,1,0,0,0,2396,2397,1,0,0,0,2397,293,1,0,0,0,2398,2396,1,0,0,0,2399,2400,3,296,148,0,2400,2401,5,1,0,0,2401,2402,5,25,0,0,2402,2403,3,298,149,0,2403,2404,5,26,0,0,2404,295,1,0,0,0,2405,2406,3,312,156,0,2406,297,1,0,0,0,2407,2412,3,300,150,0,2408,2409,5,24,0,0,2409,2411,3,300,150,0,2410,2408,1,0,0,0,2411,2414,1,0,0,0,2412,2410,1,0,0,0,2412,2413,1,0,0,0,2413,299,1,0,0,0,2414,2412,1,0,0,0,2415,2416,3,312,156,0,2416,301,1,0,0,0,2417,2422,3,304,152,0,2418,2419,5,24,0,0,2419,2421,3,304,152,0,2420,2418,1,0,0,0,2421,2424,1,0,0,0,2422,2420,1,0,0,0,2422,2423,1,0,0,0,2423,303,1,0,0,0,2424,2422,1,0,0,0,2425,2426,3,306,153,0,2426,2427,5,49,0,0,2427,2428,3,308,154,0,2428,305,1,0,0,0,2429,2430,3,312,156,0,2430,307,1,0,0,0,2431,2432,3,310,155,0,2432,309,1,0,0,0,2433,2434,3,14,7,0,2434,311,1,0,0,0,2435,2436,3,804,402,0,2436,313,1,0,0,0,2437,2438,5,213,0,0,2438,2439,5,67,0,0,2439,2440,3,230,115,0,2440,315,1,0,0,0,2441,2443,5,51,0,0,2442,2441,1,0,0,0,2442,2443,1,0,0,0,2443,2444,1,0,0,0,2444,2445,3,314,157,0,2445,317,1,0,0,0,2446,2448,5,147,0,0,2447,2449,5,79,0,0,2448,2447,1,0,0,0,2448,2449,1,0,0,0,2449,2450,1,0,0,0,2450,2451,5,67,0,0,2451,2452,3,252,126,0,2452,2455,3,320,160,0,2453,2454,5,322,0,0,2454,2456,3,824,412,0,2455,2453,1,0,0,0,2455,2456,1,0,0,0,2456,319,1,0,0,0,2457,2462,3,322,161,0,2458,2459,5,24,0,0,2459,2461,3,322,161,0,2460,2458,1,0,0,0,2461,2464,1,0,0,0,2462,2460,1,0,0,0,2462,2463,1,0,0,0,2463,321,1,0,0,0,2464,2462,1,0,0,0,2465,2471,3,324,162,0,2466,2471,3,328,164,0,2467,2471,3,330,165,0,2468,2471,3,332,166,0,2469,2471,3,334,167,0,2470,2465,1,0,0,0,2470,2466,1,0,0,0,2470,2467,1,0,0,0,2470,2468,1,0,0,0,2470,2469,1,0,0,0,2471,323,1,0,0,0,2472,2473,3,128,64,0,2473,325,1,0,0,0,2474,2479,3,324,162,0,2475,2476,5,24,0,0,2476,2478,3,324,162,0,2477,2475,1,0,0,0,2478,2481,1,0,0,0,2479,2477,1,0,0,0,2479,2480,1,0,0,0,2480,327,1,0,0,0,2481,2479,1,0,0,0,2482,2483,5,261,0,0,2483,2484,5,25,0,0,2484,2485,3,326,163,0,2485,2486,5,26,0,0,2486,329,1,0,0,0,2487,2488,5,88,0,0,2488,2489,5,25,0,0,2489,2490,3,326,163,0,2490,2491,5,26,0,0,2491,331,1,0,0,0,2492,2493,5,148,0,0,2493,2494,5,272,0,0,2494,2495,5,25,0,0,2495,2496,3,320,160,0,2496,2497,5,26,0,0,2497,333,1,0,0,0,2498,2499,5,152,0,0,2499,2500,5,25,0,0,2500,2501,3,14,7,0,2501,2502,5,24,0,0,2502,2503,3,14,7,0,2503,2504,5,24,0,0,2504,2505,3,14,7,0,2505,2506,5,24,0,0,2506,2507,3,14,7,0,2507,2508,5,26,0,0,2508,335,1,0,0,0,2509,2510,3,848,424,0,2510,2511,5,19,0,0,2511,2519,1,0,0,0,2512,2516,3,14,7,0,2513,2514,5,49,0,0,2514,2517,3,826,413,0,2515,2517,3,844,422,0,2516,2513,1,0,0,0,2516,2515,1,0,0,0,2516,2517,1,0,0,0,2517,2519,1,0,0,0,2518,2509,1,0,0,0,2518,2512,1,0,0,0,2519,337,1,0,0,0,2520,2522,5,47,0,0,2521,2520,1,0,0,0,2521,2522,1,0,0,0,2522,2523,1,0,0,0,2523,2534,3,344,172,0,2524,2526,3,358,179,0,2525,2527,5,47,0,0,2526,2525,1,0,0,0,2526,2527,1,0,0,0,2527,2528,1,0,0,0,2528,2530,3,344,172,0,2529,2531,3,360,180,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2533,1,0,0,0,2532,2524,1,0,0,0,2533,2536,1,0,0,0,2534,2532,1,0,0,0,2534,2535,1,0,0,0,2535,339,1,0,0,0,2536,2534,1,0,0,0,2537,2540,3,120,60,0,2538,2539,5,49,0,0,2539,2541,3,824,412,0,2540,2538,1,0,0,0,2540,2541,1,0,0,0,2541,341,1,0,0,0,2542,2551,3,340,170,0,2543,2544,5,25,0,0,2544,2546,3,130,65,0,2545,2547,5,24,0,0,2546,2545,1,0,0,0,2546,2547,1,0,0,0,2547,2548,1,0,0,0,2548,2549,5,26,0,0,2549,2551,1,0,0,0,2550,2542,1,0,0,0,2550,2543,1,0,0,0,2551,343,1,0,0,0,2552,2562,3,346,173,0,2553,2560,5,136,0,0,2554,2556,7,13,0,0,2555,2554,1,0,0,0,2555,2556,1,0,0,0,2556,2557,1,0,0,0,2557,2558,5,67,0,0,2558,2561,3,342,171,0,2559,2561,5,77,0,0,2560,2555,1,0,0,0,2560,2559,1,0,0,0,2561,2563,1,0,0,0,2562,2553,1,0,0,0,2562,2563,1,0,0,0,2563,345,1,0,0,0,2564,2566,3,348,174,0,2565,2567,3,256,128,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,2576,1,0,0,0,2568,2569,5,49,0,0,2569,2572,3,824,412,0,2570,2572,3,844,422,0,2571,2568,1,0,0,0,2571,2570,1,0,0,0,2572,2574,1,0,0,0,2573,2575,3,114,57,0,2574,2573,1,0,0,0,2574,2575,1,0,0,0,2575,2577,1,0,0,0,2576,2571,1,0,0,0,2576,2577,1,0,0,0,2577,2580,1,0,0,0,2578,2581,3,350,175,0,2579,2581,3,352,176,0,2580,2578,1,0,0,0,2580,2579,1,0,0,0,2580,2581,1,0,0,0,2581,347,1,0,0,0,2582,2592,3,662,331,0,2583,2584,5,25,0,0,2584,2585,3,232,116,0,2585,2586,5,26,0,0,2586,2592,1,0,0,0,2587,2588,5,25,0,0,2588,2589,3,370,185,0,2589,2590,5,26,0,0,2590,2592,1,0,0,0,2591,2582,1,0,0,0,2591,2583,1,0,0,0,2591,2587,1,0,0,0,2592,349,1,0,0,0,2593,2594,5,264,0,0,2594,2595,3,14,7,0,2595,351,1,0,0,0,2596,2597,5,288,0,0,2597,2598,3,354,177,0,2598,2599,5,25,0,0,2599,2600,3,14,7,0,2600,2602,5,26,0,0,2601,2603,3,356,178,0,2602,2601,1,0,0,0,2602,2603,1,0,0,0,2603,353,1,0,0,0,2604,2605,7,14,0,0,2605,355,1,0,0,0,2606,2607,5,244,0,0,2607,2608,5,25,0,0,2608,2609,3,14,7,0,2609,2610,5,26,0,0,2610,357,1,0,0,0,2611,2636,5,24,0,0,2612,2614,5,195,0,0,2613,2612,1,0,0,0,2613,2614,1,0,0,0,2614,2632,1,0,0,0,2615,2617,5,179,0,0,2616,2618,7,15,0,0,2617,2616,1,0,0,0,2617,2618,1,0,0,0,2618,2626,1,0,0,0,2619,2621,5,258,0,0,2620,2622,7,15,0,0,2621,2620,1,0,0,0,2621,2622,1,0,0,0,2622,2626,1,0,0,0,2623,2626,5,125,0,0,2624,2626,5,142,0,0,2625,2615,1,0,0,0,2625,2619,1,0,0,0,2625,2623,1,0,0,0,2625,2624,1,0,0,0,2625,2626,1,0,0,0,2626,2628,1,0,0,0,2627,2629,5,215,0,0,2628,2627,1,0,0,0,2628,2629,1,0,0,0,2629,2633,1,0,0,0,2630,2633,5,166,0,0,2631,2633,5,87,0,0,2632,2625,1,0,0,0,2632,2630,1,0,0,0,2632,2631,1,0,0,0,2633,2634,1,0,0,0,2634,2636,5,173,0,0,2635,2611,1,0,0,0,2635,2613,1,0,0,0,2636,359,1,0,0,0,2637,2638,5,207,0,0,2638,2642,3,14,7,0,2639,2640,5,313,0,0,2640,2642,3,118,59,0,2641,2637,1,0,0,0,2641,2639,1,0,0,0,2642,361,1,0,0,0,2643,2653,5,255,0,0,2644,2654,5,19,0,0,2645,2650,3,824,412,0,2646,2647,5,24,0,0,2647,2649,3,824,412,0,2648,2646,1,0,0,0,2649,2652,1,0,0,0,2650,2648,1,0,0,0,2650,2651,1,0,0,0,2651,2654,1,0,0,0,2652,2650,1,0,0,0,2653,2644,1,0,0,0,2653,2645,1,0,0,0,2654,363,1,0,0,0,2655,2668,5,167,0,0,2656,2657,5,167,0,0,2657,2658,5,212,0,0,2658,2668,5,38,0,0,2659,2660,5,167,0,0,2660,2661,5,212,0,0,2661,2668,5,256,0,0,2662,2663,5,167,0,0,2663,2664,5,212,0,0,2664,2668,5,154,0,0,2665,2668,5,310,0,0,2666,2668,5,245,0,0,2667,2655,1,0,0,0,2667,2656,1,0,0,0,2667,2659,1,0,0,0,2667,2662,1,0,0,0,2667,2665,1,0,0,0,2667,2666,1,0,0,0,2668,2669,1,0,0,0,2669,2670,5,170,0,0,2670,2671,3,678,339,0,2671,2673,3,368,184,0,2672,2674,3,362,181,0,2673,2672,1,0,0,0,2673,2674,1,0,0,0,2674,365,1,0,0,0,2675,2687,5,167,0,0,2676,2677,5,167,0,0,2677,2678,5,212,0,0,2678,2687,5,38,0,0,2679,2680,5,167,0,0,2680,2681,5,212,0,0,2681,2687,5,256,0,0,2682,2683,5,167,0,0,2683,2684,5,212,0,0,2684,2687,5,154,0,0,2685,2687,5,245,0,0,2686,2675,1,0,0,0,2686,2676,1,0,0,0,2686,2679,1,0,0,0,2686,2682,1,0,0,0,2686,2685,1,0,0,0,2687,2688,1,0,0,0,2688,2689,5,170,0,0,2689,2690,3,678,339,0,2690,2691,3,368,184,0,2691,367,1,0,0,0,2692,2694,3,114,57,0,2693,2692,1,0,0,0,2693,2694,1,0,0,0,2694,2695,1,0,0,0,2695,2699,3,372,186,0,2696,2697,5,97,0,0,2697,2699,5,315,0,0,2698,2693,1,0,0,0,2698,2696,1,0,0,0,2699,369,1,0,0,0,2700,2701,5,315,0,0,2701,2702,3,374,187,0,2702,371,1,0,0,0,2703,2706,3,370,185,0,2704,2706,3,232,116,0,2705,2703,1,0,0,0,2705,2704,1,0,0,0,2706,373,1,0,0,0,2707,2712,3,376,188,0,2708,2709,5,24,0,0,2709,2711,3,376,188,0,2710,2708,1,0,0,0,2711,2714,1,0,0,0,2712,2710,1,0,0,0,2712,2713,1,0,0,0,2713,375,1,0,0,0,2714,2712,1,0,0,0,2715,2716,5,25,0,0,2716,2717,3,112,56,0,2717,2718,5,26,0,0,2718,377,1,0,0,0,2719,2722,3,112,56,0,2720,2722,3,232,116,0,2721,2719,1,0,0,0,2721,2720,1,0,0,0,2722,379,1,0,0,0,2723,2726,5,86,0,0,2724,2725,5,212,0,0,2725,2727,5,245,0,0,2726,2724,1,0,0,0,2726,2727,1,0,0,0,2727,2728,1,0,0,0,2728,2729,5,130,0,0,2729,2730,5,93,0,0,2730,2734,5,276,0,0,2731,2732,5,153,0,0,2732,2733,5,199,0,0,2733,2735,5,127,0,0,2734,2731,1,0,0,0,2734,2735,1,0,0,0,2735,2736,1,0,0,0,2736,2737,3,672,336,0,2737,2738,3,456,228,0,2738,381,1,0,0,0,2739,2740,5,43,0,0,2740,2741,5,130,0,0,2741,2742,5,93,0,0,2742,2743,5,276,0,0,2743,2744,3,672,336,0,2744,2749,3,384,192,0,2745,2746,5,24,0,0,2746,2748,3,384,192,0,2747,2745,1,0,0,0,2748,2751,1,0,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,383,1,0,0,0,2751,2749,1,0,0,0,2752,2756,3,488,244,0,2753,2756,3,490,245,0,2754,2756,3,492,246,0,2755,2752,1,0,0,0,2755,2753,1,0,0,0,2755,2754,1,0,0,0,2756,385,1,0,0,0,2757,2758,5,111,0,0,2758,2759,5,130,0,0,2759,2760,5,93,0,0,2760,2763,5,276,0,0,2761,2762,5,153,0,0,2762,2764,5,127,0,0,2763,2761,1,0,0,0,2763,2764,1,0,0,0,2764,2765,1,0,0,0,2765,2766,3,672,336,0,2766,387,1,0,0,0,2767,2768,5,86,0,0,2768,2772,5,317,0,0,2769,2770,5,153,0,0,2770,2771,5,199,0,0,2771,2773,5,127,0,0,2772,2769,1,0,0,0,2772,2773,1,0,0,0,2773,2774,1,0,0,0,2774,2776,3,672,336,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,2778,1,0,0,0,2778,2779,5,49,0,0,2779,2780,3,232,116,0,2780,389,1,0,0,0,2781,2782,5,111,0,0,2782,2785,5,317,0,0,2783,2784,5,153,0,0,2784,2786,5,127,0,0,2785,2783,1,0,0,0,2785,2786,1,0,0,0,2786,2787,1,0,0,0,2787,2788,3,672,336,0,2788,391,1,0,0,0,2789,2790,5,310,0,0,2790,2791,5,203,0,0,2791,2792,3,672,336,0,2792,2793,5,25,0,0,2793,2794,5,302,0,0,2794,2795,3,416,208,0,2795,2797,5,26,0,0,2796,2798,3,396,198,0,2797,2796,1,0,0,0,2797,2798,1,0,0,0,2798,393,1,0,0,0,2799,2800,5,86,0,0,2800,2804,5,203,0,0,2801,2802,5,153,0,0,2802,2803,5,199,0,0,2803,2805,5,127,0,0,2804,2801,1,0,0,0,2804,2805,1,0,0,0,2805,2806,1,0,0,0,2806,2807,3,672,336,0,2807,2808,5,25,0,0,2808,2809,5,302,0,0,2809,2810,3,416,208,0,2810,2812,5,26,0,0,2811,2813,3,396,198,0,2812,2811,1,0,0,0,2812,2813,1,0,0,0,2813,395,1,0,0,0,2814,2815,5,322,0,0,2815,2816,3,414,207,0,2816,397,1,0,0,0,2817,2818,5,43,0,0,2818,2819,5,203,0,0,2819,2820,3,672,336,0,2820,2821,5,25,0,0,2821,2822,5,302,0,0,2822,2823,3,416,208,0,2823,2824,5,26,0,0,2824,2825,3,400,200,0,2825,399,1,0,0,0,2826,2827,5,271,0,0,2827,2828,3,414,207,0,2828,401,1,0,0,0,2829,2830,5,111,0,0,2830,2833,5,203,0,0,2831,2832,5,153,0,0,2832,2834,5,127,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2835,1,0,0,0,2835,2836,3,672,336,0,2836,2837,5,25,0,0,2837,2838,5,302,0,0,2838,2839,3,416,208,0,2839,2841,5,26,0,0,2840,2842,3,404,202,0,2841,2840,1,0,0,0,2841,2842,1,0,0,0,2842,403,1,0,0,0,2843,2844,5,322,0,0,2844,2845,3,414,207,0,2845,405,1,0,0,0,2846,2851,3,852,426,0,2847,2851,3,144,72,0,2848,2851,5,326,0,0,2849,2851,3,884,442,0,2850,2846,1,0,0,0,2850,2847,1,0,0,0,2850,2848,1,0,0,0,2850,2849,1,0,0,0,2851,407,1,0,0,0,2852,2853,3,826,413,0,2853,2854,5,1,0,0,2854,2855,3,406,203,0,2855,409,1,0,0,0,2856,2857,3,826,413,0,2857,411,1,0,0,0,2858,2861,3,408,204,0,2859,2861,3,410,205,0,2860,2858,1,0,0,0,2860,2859,1,0,0,0,2861,413,1,0,0,0,2862,2875,3,412,206,0,2863,2864,5,25,0,0,2864,2869,3,412,206,0,2865,2866,5,24,0,0,2866,2868,3,412,206,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2872,1,0,0,0,2871,2869,1,0,0,0,2872,2873,5,26,0,0,2873,2875,1,0,0,0,2874,2862,1,0,0,0,2874,2863,1,0,0,0,2875,415,1,0,0,0,2876,2877,3,826,413,0,2877,417,1,0,0,0,2878,2881,5,86,0,0,2879,2880,5,212,0,0,2880,2882,5,245,0,0,2881,2879,1,0,0,0,2881,2882,1,0,0,0,2882,2891,1,0,0,0,2883,2892,5,286,0,0,2884,2892,5,289,0,0,2885,2886,5,130,0,0,2886,2892,5,286,0,0,2887,2888,5,291,0,0,2888,2892,5,286,0,0,2889,2890,5,292,0,0,2890,2892,5,286,0,0,2891,2883,1,0,0,0,2891,2884,1,0,0,0,2891,2885,1,0,0,0,2891,2887,1,0,0,0,2891,2889,1,0,0,0,2892,2896,1,0,0,0,2893,2894,5,153,0,0,2894,2895,5,199,0,0,2895,2897,5,127,0,0,2896,2893,1,0,0,0,2896,2897,1,0,0,0,2897,2898,1,0,0,0,2898,2899,3,676,338,0,2899,2900,5,25,0,0,2900,2905,3,420,210,0,2901,2902,5,24,0,0,2902,2904,3,420,210,0,2903,2901,1,0,0,0,2904,2907,1,0,0,0,2905,2903,1,0,0,0,2905,2906,1,0,0,0,2906,2909,1,0,0,0,2907,2905,1,0,0,0,2908,2910,5,24,0,0,2909,2908,1,0,0,0,2909,2910,1,0,0,0,2910,2911,1,0,0,0,2911,2913,5,26,0,0,2912,2914,3,452,226,0,2913,2912,1,0,0,0,2913,2914,1,0,0,0,2914,2916,1,0,0,0,2915,2917,3,454,227,0,2916,2915,1,0,0,0,2916,2917,1,0,0,0,2917,2919,1,0,0,0,2918,2920,3,456,228,0,2919,2918,1,0,0,0,2919,2920,1,0,0,0,2920,2922,1,0,0,0,2921,2923,3,458,229,0,2922,2921,1,0,0,0,2922,2923,1,0,0,0,2923,2925,1,0,0,0,2924,2926,3,462,231,0,2925,2924,1,0,0,0,2925,2926,1,0,0,0,2926,419,1,0,0,0,2927,2934,3,510,255,0,2928,2934,3,518,259,0,2929,2934,3,520,260,0,2930,2934,3,554,277,0,2931,2934,3,536,268,0,2932,2934,3,828,414,0,2933,2927,1,0,0,0,2933,2928,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2933,2931,1,0,0,0,2933,2932,1,0,0,0,2934,421,1,0,0,0,2935,2936,5,86,0,0,2936,2938,3,442,221,0,2937,2939,3,428,214,0,2938,2937,1,0,0,0,2938,2939,1,0,0,0,2939,2940,1,0,0,0,2940,2941,5,322,0,0,2941,2942,5,25,0,0,2942,2943,3,444,222,0,2943,2944,5,26,0,0,2944,423,1,0,0,0,2945,2946,5,43,0,0,2946,2949,3,442,221,0,2947,2950,3,434,217,0,2948,2950,3,438,219,0,2949,2947,1,0,0,0,2949,2948,1,0,0,0,2950,425,1,0,0,0,2951,2952,5,111,0,0,2952,2953,3,442,221,0,2953,427,1,0,0,0,2954,2957,5,94,0,0,2955,2957,3,430,215,0,2956,2954,1,0,0,0,2956,2955,1,0,0,0,2957,429,1,0,0,0,2958,2959,5,25,0,0,2959,2960,3,432,216,0,2960,2961,5,26,0,0,2961,431,1,0,0,0,2962,2963,5,286,0,0,2963,2969,3,836,418,0,2964,2965,5,24,0,0,2965,2966,5,286,0,0,2966,2968,3,836,418,0,2967,2964,1,0,0,0,2968,2971,1,0,0,0,2969,2967,1,0,0,0,2969,2970,1,0,0,0,2970,433,1,0,0,0,2971,2969,1,0,0,0,2972,2977,3,436,218,0,2973,2974,5,24,0,0,2974,2976,3,436,218,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,435,1,0,0,0,2979,2977,1,0,0,0,2980,2983,3,490,245,0,2981,2983,3,492,246,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2983,437,1,0,0,0,2984,2989,3,440,220,0,2985,2986,5,24,0,0,2986,2988,3,440,220,0,2987,2985,1,0,0,0,2988,2991,1,0,0,0,2989,2987,1,0,0,0,2989,2990,1,0,0,0,2990,439,1,0,0,0,2991,2989,1,0,0,0,2992,2993,5,40,0,0,2993,3003,5,94,0,0,2994,2995,5,111,0,0,2995,3003,5,94,0,0,2996,2997,5,40,0,0,2997,2998,5,286,0,0,2998,3003,3,836,418,0,2999,3e3,5,111,0,0,3e3,3001,5,286,0,0,3001,3003,3,836,418,0,3002,2992,1,0,0,0,3002,2994,1,0,0,0,3002,2996,1,0,0,0,3002,2999,1,0,0,0,3003,441,1,0,0,0,3004,3005,5,59,0,0,3005,3006,5,61,0,0,3006,3007,3,672,336,0,3007,443,1,0,0,0,3008,3013,3,446,223,0,3009,3010,5,24,0,0,3010,3012,3,446,223,0,3011,3009,1,0,0,0,3012,3015,1,0,0,0,3013,3011,1,0,0,0,3013,3014,1,0,0,0,3014,445,1,0,0,0,3015,3013,1,0,0,0,3016,3017,3,824,412,0,3017,3018,5,1,0,0,3018,3019,3,548,274,0,3019,447,1,0,0,0,3020,3021,5,59,0,0,3021,3023,3,672,336,0,3022,3024,5,160,0,0,3023,3022,1,0,0,0,3023,3024,1,0,0,0,3024,449,1,0,0,0,3025,3026,5,251,0,0,3026,3029,3,672,336,0,3027,3028,5,54,0,0,3028,3030,5,326,0,0,3029,3027,1,0,0,0,3029,3030,1,0,0,0,3030,451,1,0,0,0,3031,3032,5,163,0,0,3032,3033,5,25,0,0,3033,3038,3,674,337,0,3034,3035,5,24,0,0,3035,3037,3,674,337,0,3036,3034,1,0,0,0,3037,3040,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,3041,1,0,0,0,3040,3038,1,0,0,0,3041,3042,5,26,0,0,3042,453,1,0,0,0,3043,3044,5,218,0,0,3044,3045,5,67,0,0,3045,3046,5,150,0,0,3046,3047,3,114,57,0,3047,455,1,0,0,0,3048,3049,5,322,0,0,3049,3050,5,25,0,0,3050,3055,3,460,230,0,3051,3052,5,24,0,0,3052,3054,3,460,230,0,3053,3051,1,0,0,0,3054,3057,1,0,0,0,3055,3053,1,0,0,0,3055,3056,1,0,0,0,3056,3058,1,0,0,0,3057,3055,1,0,0,0,3058,3059,5,26,0,0,3059,457,1,0,0,0,3060,3061,5,289,0,0,3061,3062,3,674,337,0,3062,459,1,0,0,0,3063,3064,3,824,412,0,3064,3065,5,1,0,0,3065,3066,3,548,274,0,3066,461,1,0,0,0,3067,3068,5,49,0,0,3068,3069,3,372,186,0,3069,463,1,0,0,0,3070,3071,5,43,0,0,3071,3072,5,286,0,0,3072,3073,3,676,338,0,3073,3078,3,466,233,0,3074,3075,5,24,0,0,3075,3077,3,466,233,0,3076,3074,1,0,0,0,3077,3080,1,0,0,0,3078,3076,1,0,0,0,3078,3079,1,0,0,0,3079,465,1,0,0,0,3080,3078,1,0,0,0,3081,3099,3,476,238,0,3082,3099,3,478,239,0,3083,3099,3,480,240,0,3084,3099,3,484,242,0,3085,3099,3,486,243,0,3086,3099,3,488,244,0,3087,3099,3,490,245,0,3088,3099,3,492,246,0,3089,3099,3,494,247,0,3090,3099,3,496,248,0,3091,3099,3,498,249,0,3092,3099,3,502,251,0,3093,3099,3,504,252,0,3094,3099,3,506,253,0,3095,3099,3,500,250,0,3096,3099,3,508,254,0,3097,3099,3,482,241,0,3098,3081,1,0,0,0,3098,3082,1,0,0,0,3098,3083,1,0,0,0,3098,3084,1,0,0,0,3098,3085,1,0,0,0,3098,3086,1,0,0,0,3098,3087,1,0,0,0,3098,3088,1,0,0,0,3098,3089,1,0,0,0,3098,3090,1,0,0,0,3098,3091,1,0,0,0,3098,3092,1,0,0,0,3098,3093,1,0,0,0,3098,3094,1,0,0,0,3098,3095,1,0,0,0,3098,3096,1,0,0,0,3098,3097,1,0,0,0,3099,467,1,0,0,0,3100,3101,5,43,0,0,3101,3102,5,130,0,0,3102,3103,5,286,0,0,3103,3104,3,676,338,0,3104,3109,3,470,235,0,3105,3106,5,24,0,0,3106,3108,3,470,235,0,3107,3105,1,0,0,0,3108,3111,1,0,0,0,3109,3107,1,0,0,0,3109,3110,1,0,0,0,3110,469,1,0,0,0,3111,3109,1,0,0,0,3112,3118,3,476,238,0,3113,3118,3,478,239,0,3114,3118,3,488,244,0,3115,3118,3,490,245,0,3116,3118,3,492,246,0,3117,3112,1,0,0,0,3117,3113,1,0,0,0,3117,3114,1,0,0,0,3117,3115,1,0,0,0,3117,3116,1,0,0,0,3118,471,1,0,0,0,3119,3120,5,43,0,0,3120,3121,5,289,0,0,3121,3122,3,672,336,0,3122,3127,3,474,237,0,3123,3124,5,24,0,0,3124,3126,3,474,237,0,3125,3123,1,0,0,0,3126,3129,1,0,0,0,3127,3125,1,0,0,0,3127,3128,1,0,0,0,3128,473,1,0,0,0,3129,3127,1,0,0,0,3130,3133,3,476,238,0,3131,3133,3,478,239,0,3132,3130,1,0,0,0,3132,3131,1,0,0,0,3133,475,1,0,0,0,3134,3136,5,40,0,0,3135,3137,5,76,0,0,3136,3135,1,0,0,0,3136,3137,1,0,0,0,3137,3138,1,0,0,0,3138,3139,3,510,255,0,3139,477,1,0,0,0,3140,3142,5,111,0,0,3141,3143,5,76,0,0,3142,3141,1,0,0,0,3142,3143,1,0,0,0,3143,3144,1,0,0,0,3144,3145,3,824,412,0,3145,479,1,0,0,0,3146,3147,5,43,0,0,3147,3148,5,76,0,0,3148,3149,3,824,412,0,3149,3150,5,271,0,0,3150,3151,3,512,256,0,3151,481,1,0,0,0,3152,3153,5,43,0,0,3153,3154,5,76,0,0,3154,3155,3,824,412,0,3155,3156,5,111,0,0,3156,3157,5,199,0,0,3157,3158,5,201,0,0,3158,483,1,0,0,0,3159,3160,5,40,0,0,3160,3161,3,554,277,0,3161,485,1,0,0,0,3162,3163,5,43,0,0,3163,3164,5,133,0,0,3164,3165,3,824,412,0,3165,3166,5,271,0,0,3166,3167,3,824,412,0,3167,3168,3,560,280,0,3168,487,1,0,0,0,3169,3170,5,271,0,0,3170,3171,3,824,412,0,3171,3172,3,548,274,0,3172,489,1,0,0,0,3173,3174,5,271,0,0,3174,3175,5,25,0,0,3175,3180,3,546,273,0,3176,3177,5,24,0,0,3177,3179,3,546,273,0,3178,3176,1,0,0,0,3179,3182,1,0,0,0,3180,3178,1,0,0,0,3180,3181,1,0,0,0,3181,3183,1,0,0,0,3182,3180,1,0,0,0,3183,3184,5,26,0,0,3184,491,1,0,0,0,3185,3186,5,247,0,0,3186,3187,5,25,0,0,3187,3192,3,824,412,0,3188,3189,5,24,0,0,3189,3191,3,824,412,0,3190,3188,1,0,0,0,3191,3194,1,0,0,0,3192,3190,1,0,0,0,3192,3193,1,0,0,0,3193,3195,1,0,0,0,3194,3192,1,0,0,0,3195,3196,5,26,0,0,3196,493,1,0,0,0,3197,3198,5,40,0,0,3198,3199,3,520,260,0,3199,495,1,0,0,0,3200,3201,5,111,0,0,3201,3202,5,161,0,0,3202,3203,3,824,412,0,3203,497,1,0,0,0,3204,3205,5,243,0,0,3205,3206,5,295,0,0,3206,3207,3,836,418,0,3207,499,1,0,0,0,3208,3209,5,243,0,0,3209,3210,5,161,0,0,3210,3211,3,824,412,0,3211,3212,5,295,0,0,3212,3213,3,824,412,0,3213,501,1,0,0,0,3214,3215,5,40,0,0,3215,3216,3,536,268,0,3216,503,1,0,0,0,3217,3218,5,43,0,0,3218,3219,5,72,0,0,3219,3220,3,824,412,0,3220,3221,3,544,272,0,3221,505,1,0,0,0,3222,3223,5,111,0,0,3223,3224,5,72,0,0,3224,3225,3,824,412,0,3225,507,1,0,0,0,3226,3227,5,43,0,0,3227,3228,5,161,0,0,3228,3229,3,824,412,0,3229,3230,3,566,283,0,3230,509,1,0,0,0,3231,3232,3,828,414,0,3232,3234,3,204,102,0,3233,3235,3,512,256,0,3234,3233,1,0,0,0,3234,3235,1,0,0,0,3235,3236,1,0,0,0,3236,3237,3,514,257,0,3237,511,1,0,0,0,3238,3239,5,133,0,0,3239,3240,3,824,412,0,3240,513,1,0,0,0,3241,3243,5,199,0,0,3242,3241,1,0,0,0,3242,3243,1,0,0,0,3243,3244,1,0,0,0,3244,3246,5,201,0,0,3245,3242,1,0,0,0,3245,3246,1,0,0,0,3246,3249,1,0,0,0,3247,3248,5,97,0,0,3248,3250,3,14,7,0,3249,3247,1,0,0,0,3249,3250,1,0,0,0,3250,515,1,0,0,0,3251,3253,3,824,412,0,3252,3254,7,9,0,0,3253,3252,1,0,0,0,3253,3254,1,0,0,0,3254,517,1,0,0,0,3255,3256,5,230,0,0,3256,3257,5,177,0,0,3257,3258,5,25,0,0,3258,3263,3,824,412,0,3259,3260,5,24,0,0,3260,3262,3,824,412,0,3261,3259,1,0,0,0,3262,3265,1,0,0,0,3263,3261,1,0,0,0,3263,3264,1,0,0,0,3264,3266,1,0,0,0,3265,3263,1,0,0,0,3266,3267,5,26,0,0,3267,3295,1,0,0,0,3268,3269,5,218,0,0,3269,3270,5,67,0,0,3270,3271,5,25,0,0,3271,3276,3,824,412,0,3272,3273,5,24,0,0,3273,3275,3,824,412,0,3274,3272,1,0,0,0,3275,3278,1,0,0,0,3276,3274,1,0,0,0,3276,3277,1,0,0,0,3277,3279,1,0,0,0,3278,3276,1,0,0,0,3279,3280,5,26,0,0,3280,3295,1,0,0,0,3281,3282,5,213,0,0,3282,3283,5,67,0,0,3283,3284,5,25,0,0,3284,3289,3,516,258,0,3285,3286,5,24,0,0,3286,3288,3,516,258,0,3287,3285,1,0,0,0,3288,3291,1,0,0,0,3289,3287,1,0,0,0,3289,3290,1,0,0,0,3290,3292,1,0,0,0,3291,3289,1,0,0,0,3292,3293,5,26,0,0,3293,3295,1,0,0,0,3294,3255,1,0,0,0,3294,3268,1,0,0,0,3294,3281,1,0,0,0,3295,519,1,0,0,0,3296,3297,5,161,0,0,3297,3298,3,824,412,0,3298,3299,3,522,261,0,3299,3300,5,207,0,0,3300,3301,5,25,0,0,3301,3306,3,828,414,0,3302,3303,5,24,0,0,3303,3305,3,828,414,0,3304,3302,1,0,0,0,3305,3308,1,0,0,0,3306,3304,1,0,0,0,3306,3307,1,0,0,0,3307,3309,1,0,0,0,3308,3306,1,0,0,0,3309,3322,5,26,0,0,3310,3311,5,85,0,0,3311,3312,5,25,0,0,3312,3317,3,828,414,0,3313,3314,5,24,0,0,3314,3316,3,828,414,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3320,1,0,0,0,3319,3317,1,0,0,0,3320,3321,5,26,0,0,3321,3323,1,0,0,0,3322,3310,1,0,0,0,3322,3323,1,0,0,0,3323,3325,1,0,0,0,3324,3326,3,530,265,0,3325,3324,1,0,0,0,3325,3326,1,0,0,0,3326,521,1,0,0,0,3327,3330,3,524,262,0,3328,3330,3,526,263,0,3329,3327,1,0,0,0,3329,3328,1,0,0,0,3330,3333,1,0,0,0,3331,3332,5,313,0,0,3332,3334,3,528,264,0,3333,3331,1,0,0,0,3333,3334,1,0,0,0,3334,523,1,0,0,0,3335,3337,5,145,0,0,3336,3338,5,306,0,0,3337,3336,1,0,0,0,3337,3338,1,0,0,0,3338,3340,1,0,0,0,3339,3341,7,16,0,0,3340,3339,1,0,0,0,3340,3341,1,0,0,0,3341,525,1,0,0,0,3342,3343,5,184,0,0,3343,527,1,0,0,0,3344,3345,3,824,412,0,3345,529,1,0,0,0,3346,3347,5,322,0,0,3347,3348,5,25,0,0,3348,3353,3,532,266,0,3349,3350,5,24,0,0,3350,3352,3,532,266,0,3351,3349,1,0,0,0,3352,3355,1,0,0,0,3353,3351,1,0,0,0,3353,3354,1,0,0,0,3354,3357,1,0,0,0,3355,3353,1,0,0,0,3356,3358,5,24,0,0,3357,3356,1,0,0,0,3357,3358,1,0,0,0,3358,3359,1,0,0,0,3359,3360,5,26,0,0,3360,531,1,0,0,0,3361,3362,3,824,412,0,3362,3363,5,1,0,0,3363,3364,3,534,267,0,3364,533,1,0,0,0,3365,3370,3,852,426,0,3366,3370,5,326,0,0,3367,3370,3,888,444,0,3368,3370,3,884,442,0,3369,3365,1,0,0,0,3369,3366,1,0,0,0,3369,3367,1,0,0,0,3369,3368,1,0,0,0,3370,535,1,0,0,0,3371,3372,5,72,0,0,3372,3373,3,824,412,0,3373,3374,5,322,0,0,3374,3375,5,25,0,0,3375,3376,3,538,269,0,3376,3377,5,26,0,0,3377,537,1,0,0,0,3378,3383,3,540,270,0,3379,3380,5,24,0,0,3380,3382,3,540,270,0,3381,3379,1,0,0,0,3382,3385,1,0,0,0,3383,3381,1,0,0,0,3383,3384,1,0,0,0,3384,539,1,0,0,0,3385,3383,1,0,0,0,3386,3387,3,824,412,0,3387,3388,5,1,0,0,3388,3389,3,542,271,0,3389,541,1,0,0,0,3390,3391,3,14,7,0,3391,543,1,0,0,0,3392,3399,5,107,0,0,3393,3394,5,271,0,0,3394,3395,5,25,0,0,3395,3396,3,538,269,0,3396,3397,5,26,0,0,3397,3399,1,0,0,0,3398,3392,1,0,0,0,3398,3393,1,0,0,0,3399,545,1,0,0,0,3400,3401,3,824,412,0,3401,3402,5,1,0,0,3402,3403,3,548,274,0,3403,547,1,0,0,0,3404,3417,3,806,403,0,3405,3417,5,326,0,0,3406,3417,3,888,444,0,3407,3417,3,562,281,0,3408,3409,3,550,275,0,3409,3410,5,207,0,0,3410,3413,3,824,412,0,3411,3412,5,49,0,0,3412,3414,7,17,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3417,1,0,0,0,3415,3417,3,884,442,0,3416,3404,1,0,0,0,3416,3405,1,0,0,0,3416,3406,1,0,0,0,3416,3407,1,0,0,0,3416,3408,1,0,0,0,3416,3415,1,0,0,0,3417,549,1,0,0,0,3418,3429,3,14,7,0,3419,3426,3,552,276,0,3420,3421,5,24,0,0,3421,3422,3,14,7,0,3422,3423,3,552,276,0,3423,3425,1,0,0,0,3424,3420,1,0,0,0,3425,3428,1,0,0,0,3426,3424,1,0,0,0,3426,3427,1,0,0,0,3427,3430,1,0,0,0,3428,3426,1,0,0,0,3429,3419,1,0,0,0,3429,3430,1,0,0,0,3430,551,1,0,0,0,3431,3432,5,295,0,0,3432,3433,5,130,0,0,3433,3434,5,93,0,0,3434,3435,5,276,0,0,3435,3438,3,824,412,0,3436,3438,5,101,0,0,3437,3431,1,0,0,0,3437,3436,1,0,0,0,3438,553,1,0,0,0,3439,3440,5,133,0,0,3440,3441,3,824,412,0,3441,3442,3,556,278,0,3442,555,1,0,0,0,3443,3452,5,25,0,0,3444,3449,3,558,279,0,3445,3446,5,24,0,0,3446,3448,3,558,279,0,3447,3445,1,0,0,0,3448,3451,1,0,0,0,3449,3447,1,0,0,0,3449,3450,1,0,0,0,3450,3453,1,0,0,0,3451,3449,1,0,0,0,3452,3444,1,0,0,0,3452,3453,1,0,0,0,3453,3454,1,0,0,0,3454,3455,5,26,0,0,3455,557,1,0,0,0,3456,3457,3,824,412,0,3457,3458,5,1,0,0,3458,3459,3,560,280,0,3459,559,1,0,0,0,3460,3463,5,326,0,0,3461,3463,3,888,444,0,3462,3460,1,0,0,0,3462,3461,1,0,0,0,3463,561,1,0,0,0,3464,3465,5,25,0,0,3465,3470,3,564,282,0,3466,3467,5,24,0,0,3467,3469,3,564,282,0,3468,3466,1,0,0,0,3469,3472,1,0,0,0,3470,3468,1,0,0,0,3470,3471,1,0,0,0,3471,3473,1,0,0,0,3472,3470,1,0,0,0,3473,3474,5,26,0,0,3474,3477,1,0,0,0,3475,3477,3,564,282,0,3476,3464,1,0,0,0,3476,3475,1,0,0,0,3477,563,1,0,0,0,3478,3479,5,25,0,0,3479,3484,3,142,71,0,3480,3481,5,24,0,0,3481,3483,3,142,71,0,3482,3480,1,0,0,0,3483,3486,1,0,0,0,3484,3482,1,0,0,0,3484,3485,1,0,0,0,3485,3487,1,0,0,0,3486,3484,1,0,0,0,3487,3488,5,26,0,0,3488,565,1,0,0,0,3489,3493,3,488,244,0,3490,3493,3,490,245,0,3491,3493,3,492,246,0,3492,3489,1,0,0,0,3492,3490,1,0,0,0,3492,3491,1,0,0,0,3493,567,1,0,0,0,3494,3499,5,111,0,0,3495,3500,5,286,0,0,3496,3500,5,289,0,0,3497,3498,5,130,0,0,3498,3500,5,286,0,0,3499,3495,1,0,0,0,3499,3496,1,0,0,0,3499,3497,1,0,0,0,3500,3503,1,0,0,0,3501,3502,5,153,0,0,3502,3504,5,127,0,0,3503,3501,1,0,0,0,3503,3504,1,0,0,0,3504,3505,1,0,0,0,3505,3506,3,676,338,0,3506,569,1,0,0,0,3507,3508,5,86,0,0,3508,3509,5,312,0,0,3509,3513,3,580,290,0,3510,3512,3,582,291,0,3511,3510,1,0,0,0,3512,3515,1,0,0,0,3513,3511,1,0,0,0,3513,3514,1,0,0,0,3514,571,1,0,0,0,3515,3513,1,0,0,0,3516,3517,5,43,0,0,3517,3518,5,312,0,0,3518,3530,3,580,290,0,3519,3521,5,322,0,0,3520,3519,1,0,0,0,3520,3521,1,0,0,0,3521,3523,1,0,0,0,3522,3524,3,582,291,0,3523,3522,1,0,0,0,3524,3525,1,0,0,0,3525,3523,1,0,0,0,3525,3526,1,0,0,0,3526,3531,1,0,0,0,3527,3528,5,243,0,0,3528,3529,5,295,0,0,3529,3531,3,580,290,0,3530,3520,1,0,0,0,3530,3527,1,0,0,0,3531,573,1,0,0,0,3532,3533,5,86,0,0,3533,3534,5,147,0,0,3534,3548,3,580,290,0,3535,3536,5,322,0,0,3536,3537,5,312,0,0,3537,3542,3,580,290,0,3538,3539,5,24,0,0,3539,3541,3,580,290,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3546,1,0,0,0,3544,3542,1,0,0,0,3545,3547,5,24,0,0,3546,3545,1,0,0,0,3546,3547,1,0,0,0,3547,3549,1,0,0,0,3548,3535,1,0,0,0,3548,3549,1,0,0,0,3549,575,1,0,0,0,3550,3551,5,43,0,0,3551,3552,5,147,0,0,3552,3569,3,580,290,0,3553,3554,7,18,0,0,3554,3555,5,312,0,0,3555,3560,3,580,290,0,3556,3557,5,24,0,0,3557,3559,3,580,290,0,3558,3556,1,0,0,0,3559,3562,1,0,0,0,3560,3558,1,0,0,0,3560,3561,1,0,0,0,3561,3564,1,0,0,0,3562,3560,1,0,0,0,3563,3565,5,24,0,0,3564,3563,1,0,0,0,3564,3565,1,0,0,0,3565,3570,1,0,0,0,3566,3567,5,243,0,0,3567,3568,5,295,0,0,3568,3570,3,580,290,0,3569,3553,1,0,0,0,3569,3566,1,0,0,0,3570,577,1,0,0,0,3571,3572,5,111,0,0,3572,3575,7,19,0,0,3573,3574,5,153,0,0,3574,3576,5,127,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3577,1,0,0,0,3577,3582,3,580,290,0,3578,3579,5,24,0,0,3579,3581,3,580,290,0,3580,3578,1,0,0,0,3581,3584,1,0,0,0,3582,3580,1,0,0,0,3582,3583,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3585,3587,5,24,0,0,3586,3585,1,0,0,0,3586,3587,1,0,0,0,3587,579,1,0,0,0,3588,3591,3,826,413,0,3589,3591,3,144,72,0,3590,3588,1,0,0,0,3590,3589,1,0,0,0,3591,581,1,0,0,0,3592,3595,3,584,292,0,3593,3595,3,590,295,0,3594,3592,1,0,0,0,3594,3593,1,0,0,0,3595,583,1,0,0,0,3596,3599,3,586,293,0,3597,3599,3,588,294,0,3598,3596,1,0,0,0,3598,3597,1,0,0,0,3599,585,1,0,0,0,3600,3602,5,116,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3603,1,0,0,0,3603,3604,5,220,0,0,3604,3605,3,14,7,0,3605,587,1,0,0,0,3606,3607,5,150,0,0,3607,3608,3,14,7,0,3608,589,1,0,0,0,3609,3610,7,20,0,0,3610,591,1,0,0,0,3611,3612,5,146,0,0,3612,3613,3,600,300,0,3613,3614,5,207,0,0,3614,3619,3,828,414,0,3615,3616,5,24,0,0,3616,3618,3,828,414,0,3617,3615,1,0,0,0,3618,3621,1,0,0,0,3619,3617,1,0,0,0,3619,3620,1,0,0,0,3620,3622,1,0,0,0,3621,3619,1,0,0,0,3622,3623,5,295,0,0,3623,3628,3,580,290,0,3624,3625,5,24,0,0,3625,3627,3,580,290,0,3626,3624,1,0,0,0,3627,3630,1,0,0,0,3628,3626,1,0,0,0,3628,3629,1,0,0,0,3629,3632,1,0,0,0,3630,3628,1,0,0,0,3631,3633,5,24,0,0,3632,3631,1,0,0,0,3632,3633,1,0,0,0,3633,3637,1,0,0,0,3634,3635,5,322,0,0,3635,3636,5,146,0,0,3636,3638,5,210,0,0,3637,3634,1,0,0,0,3637,3638,1,0,0,0,3638,593,1,0,0,0,3639,3643,5,257,0,0,3640,3641,5,146,0,0,3641,3642,5,210,0,0,3642,3644,5,139,0,0,3643,3640,1,0,0,0,3643,3644,1,0,0,0,3644,3645,1,0,0,0,3645,3646,3,600,300,0,3646,3647,5,207,0,0,3647,3652,3,828,414,0,3648,3649,5,24,0,0,3649,3651,3,828,414,0,3650,3648,1,0,0,0,3651,3654,1,0,0,0,3652,3650,1,0,0,0,3652,3653,1,0,0,0,3653,3655,1,0,0,0,3654,3652,1,0,0,0,3655,3656,5,141,0,0,3656,3661,3,580,290,0,3657,3658,5,24,0,0,3658,3660,3,580,290,0,3659,3657,1,0,0,0,3660,3663,1,0,0,0,3661,3659,1,0,0,0,3661,3662,1,0,0,0,3662,595,1,0,0,0,3663,3661,1,0,0,0,3664,3689,5,82,0,0,3665,3689,5,183,0,0,3666,3689,5,167,0,0,3667,3689,5,186,0,0,3668,3689,5,111,0,0,3669,3689,5,146,0,0,3670,3671,5,193,0,0,3671,3689,7,21,0,0,3672,3673,7,22,0,0,3673,3689,5,262,0,0,3674,3675,7,23,0,0,3675,3689,5,266,0,0,3676,3678,5,269,0,0,3677,3679,7,24,0,0,3678,3677,1,0,0,0,3678,3679,1,0,0,0,3679,3689,1,0,0,0,3680,3682,7,25,0,0,3681,3683,5,180,0,0,3682,3681,1,0,0,0,3682,3683,1,0,0,0,3683,3689,1,0,0,0,3684,3686,5,86,0,0,3685,3687,7,26,0,0,3686,3685,1,0,0,0,3686,3687,1,0,0,0,3687,3689,1,0,0,0,3688,3664,1,0,0,0,3688,3665,1,0,0,0,3688,3666,1,0,0,0,3688,3667,1,0,0,0,3688,3668,1,0,0,0,3688,3669,1,0,0,0,3688,3670,1,0,0,0,3688,3672,1,0,0,0,3688,3674,1,0,0,0,3688,3676,1,0,0,0,3688,3680,1,0,0,0,3688,3684,1,0,0,0,3689,597,1,0,0,0,3690,3693,3,596,298,0,3691,3693,5,326,0,0,3692,3690,1,0,0,0,3692,3691,1,0,0,0,3693,599,1,0,0,0,3694,3699,3,598,299,0,3695,3696,5,24,0,0,3696,3698,3,598,299,0,3697,3695,1,0,0,0,3698,3701,1,0,0,0,3699,3697,1,0,0,0,3699,3700,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3702,3704,5,24,0,0,3703,3702,1,0,0,0,3703,3704,1,0,0,0,3704,3710,1,0,0,0,3705,3707,5,42,0,0,3706,3708,5,231,0,0,3707,3706,1,0,0,0,3707,3708,1,0,0,0,3708,3710,1,0,0,0,3709,3694,1,0,0,0,3709,3705,1,0,0,0,3710,601,1,0,0,0,3711,3712,5,86,0,0,3712,3713,5,248,0,0,3713,3714,5,226,0,0,3714,3715,3,672,336,0,3715,3716,3,456,228,0,3716,603,1,0,0,0,3717,3718,5,43,0,0,3718,3719,5,248,0,0,3719,3720,5,226,0,0,3720,3721,3,672,336,0,3721,3726,3,606,303,0,3722,3723,5,24,0,0,3723,3725,3,606,303,0,3724,3722,1,0,0,0,3725,3728,1,0,0,0,3726,3724,1,0,0,0,3726,3727,1,0,0,0,3727,605,1,0,0,0,3728,3726,1,0,0,0,3729,3732,3,490,245,0,3730,3732,3,492,246,0,3731,3729,1,0,0,0,3731,3730,1,0,0,0,3732,607,1,0,0,0,3733,3734,5,111,0,0,3734,3735,5,248,0,0,3735,3736,5,226,0,0,3736,3737,3,672,336,0,3737,609,1,0,0,0,3738,3739,5,86,0,0,3739,3740,5,248,0,0,3740,3741,5,226,0,0,3741,3742,5,74,0,0,3742,3743,3,672,336,0,3743,3744,3,456,228,0,3744,611,1,0,0,0,3745,3746,5,43,0,0,3746,3747,5,248,0,0,3747,3748,5,226,0,0,3748,3749,5,74,0,0,3749,3750,3,672,336,0,3750,3755,3,614,307,0,3751,3752,5,24,0,0,3752,3754,3,614,307,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,613,1,0,0,0,3757,3755,1,0,0,0,3758,3761,3,490,245,0,3759,3761,3,492,246,0,3760,3758,1,0,0,0,3760,3759,1,0,0,0,3761,615,1,0,0,0,3762,3763,5,111,0,0,3763,3764,5,248,0,0,3764,3765,5,226,0,0,3765,3766,5,74,0,0,3766,3767,3,672,336,0,3767,617,1,0,0,0,3768,3769,5,86,0,0,3769,3770,5,53,0,0,3770,3771,5,246,0,0,3771,3772,3,672,336,0,3772,3773,5,139,0,0,3773,3778,3,620,310,0,3774,3775,5,24,0,0,3775,3777,3,620,310,0,3776,3774,1,0,0,0,3777,3780,1,0,0,0,3778,3776,1,0,0,0,3778,3779,1,0,0,0,3779,3781,1,0,0,0,3780,3778,1,0,0,0,3781,3782,5,322,0,0,3782,3783,5,25,0,0,3783,3784,3,622,311,0,3784,3785,5,26,0,0,3785,619,1,0,0,0,3786,3787,3,672,336,0,3787,3788,3,898,449,0,3788,621,1,0,0,0,3789,3794,3,624,312,0,3790,3791,5,24,0,0,3791,3793,3,624,312,0,3792,3790,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3794,3795,1,0,0,0,3795,623,1,0,0,0,3796,3794,1,0,0,0,3797,3798,3,824,412,0,3798,3799,5,1,0,0,3799,3800,3,14,7,0,3800,625,1,0,0,0,3801,3802,5,43,0,0,3802,3803,5,53,0,0,3803,3804,5,246,0,0,3804,3805,3,672,336,0,3805,3810,3,628,314,0,3806,3807,5,24,0,0,3807,3809,3,628,314,0,3808,3806,1,0,0,0,3809,3812,1,0,0,0,3810,3808,1,0,0,0,3810,3811,1,0,0,0,3811,627,1,0,0,0,3812,3810,1,0,0,0,3813,3814,3,630,315,0,3814,629,1,0,0,0,3815,3816,5,271,0,0,3816,3817,5,25,0,0,3817,3818,3,622,311,0,3818,3819,5,26,0,0,3819,631,1,0,0,0,3820,3821,5,111,0,0,3821,3822,5,53,0,0,3822,3823,5,246,0,0,3823,3825,3,672,336,0,3824,3826,5,69,0,0,3825,3824,1,0,0,0,3825,3826,1,0,0,0,3826,633,1,0,0,0,3827,3830,3,80,40,0,3828,3830,3,144,72,0,3829,3827,1,0,0,0,3829,3828,1,0,0,0,3830,635,1,0,0,0,3831,3832,5,86,0,0,3832,3833,5,298,0,0,3833,3834,3,672,336,0,3834,3835,5,141,0,0,3835,3836,3,672,336,0,3836,3837,5,295,0,0,3837,3840,3,672,336,0,3838,3839,5,313,0,0,3839,3841,3,634,317,0,3840,3838,1,0,0,0,3840,3841,1,0,0,0,3841,3842,1,0,0,0,3842,3843,5,322,0,0,3843,3844,5,25,0,0,3844,3845,3,638,319,0,3845,3846,5,26,0,0,3846,637,1,0,0,0,3847,3852,3,640,320,0,3848,3849,5,24,0,0,3849,3851,3,640,320,0,3850,3848,1,0,0,0,3851,3854,1,0,0,0,3852,3850,1,0,0,0,3852,3853,1,0,0,0,3853,639,1,0,0,0,3854,3852,1,0,0,0,3855,3856,3,824,412,0,3856,3857,5,1,0,0,3857,3858,3,14,7,0,3858,641,1,0,0,0,3859,3860,5,43,0,0,3860,3861,5,298,0,0,3861,3862,3,672,336,0,3862,3867,3,644,322,0,3863,3864,5,24,0,0,3864,3866,3,644,322,0,3865,3863,1,0,0,0,3866,3869,1,0,0,0,3867,3865,1,0,0,0,3867,3868,1,0,0,0,3868,643,1,0,0,0,3869,3867,1,0,0,0,3870,3873,3,646,323,0,3871,3873,3,648,324,0,3872,3870,1,0,0,0,3872,3871,1,0,0,0,3873,645,1,0,0,0,3874,3875,5,271,0,0,3875,3876,5,25,0,0,3876,3877,3,638,319,0,3877,3878,5,26,0,0,3878,647,1,0,0,0,3879,3880,5,271,0,0,3880,3881,5,313,0,0,3881,3882,3,634,317,0,3882,649,1,0,0,0,3883,3884,5,111,0,0,3884,3885,5,298,0,0,3885,3887,3,672,336,0,3886,3888,5,69,0,0,3887,3886,1,0,0,0,3887,3888,1,0,0,0,3888,651,1,0,0,0,3889,3894,3,146,73,0,3890,3891,5,24,0,0,3891,3893,3,146,73,0,3892,3890,1,0,0,0,3893,3896,1,0,0,0,3894,3892,1,0,0,0,3894,3895,1,0,0,0,3895,653,1,0,0,0,3896,3894,1,0,0,0,3897,3898,5,100,0,0,3898,3899,7,27,0,0,3899,3900,3,144,72,0,3900,3902,5,25,0,0,3901,3903,3,652,326,0,3902,3901,1,0,0,0,3902,3903,1,0,0,0,3903,3904,1,0,0,0,3904,3905,5,26,0,0,3905,3906,5,49,0,0,3906,3907,3,656,328,0,3907,3908,5,117,0,0,3908,3909,5,100,0,0,3909,655,1,0,0,0,3910,3912,5,22,0,0,3911,3910,1,0,0,0,3912,3915,1,0,0,0,3913,3911,1,0,0,0,3913,3914,1,0,0,0,3914,3934,1,0,0,0,3915,3913,1,0,0,0,3916,3925,3,12,6,0,3917,3919,5,22,0,0,3918,3917,1,0,0,0,3919,3920,1,0,0,0,3920,3918,1,0,0,0,3920,3921,1,0,0,0,3921,3922,1,0,0,0,3922,3924,3,12,6,0,3923,3918,1,0,0,0,3924,3927,1,0,0,0,3925,3923,1,0,0,0,3925,3926,1,0,0,0,3926,3931,1,0,0,0,3927,3925,1,0,0,0,3928,3930,5,22,0,0,3929,3928,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3931,3932,1,0,0,0,3932,3935,1,0,0,0,3933,3931,1,0,0,0,3934,3916,1,0,0,0,3934,3935,1,0,0,0,3935,657,1,0,0,0,3936,3938,5,122,0,0,3937,3936,1,0,0,0,3937,3938,1,0,0,0,3938,3939,1,0,0,0,3939,3940,5,153,0,0,3940,3941,3,14,7,0,3941,3944,3,222,111,0,3942,3943,5,113,0,0,3943,3945,3,222,111,0,3944,3942,1,0,0,0,3944,3945,1,0,0,0,3945,659,1,0,0,0,3946,3948,5,122,0,0,3947,3946,1,0,0,0,3947,3948,1,0,0,0,3948,3950,1,0,0,0,3949,3951,5,217,0,0,3950,3949,1,0,0,0,3950,3951,1,0,0,0,3951,3952,1,0,0,0,3952,3953,5,139,0,0,3953,3954,3,144,72,0,3954,3955,5,158,0,0,3955,3956,3,14,7,0,3956,3959,3,222,111,0,3957,3958,5,113,0,0,3958,3960,3,222,111,0,3959,3957,1,0,0,0,3959,3960,1,0,0,0,3960,661,1,0,0,0,3961,3962,3,850,425,0,3962,3963,5,23,0,0,3963,3965,1,0,0,0,3964,3961,1,0,0,0,3964,3965,1,0,0,0,3965,3967,1,0,0,0,3966,3968,5,29,0,0,3967,3966,1,0,0,0,3967,3968,1,0,0,0,3968,3999,1,0,0,0,3969,4e3,3,664,332,0,3970,3971,3,830,415,0,3971,3983,5,25,0,0,3972,3977,3,666,333,0,3973,3974,5,24,0,0,3974,3976,3,666,333,0,3975,3973,1,0,0,0,3976,3979,1,0,0,0,3977,3975,1,0,0,0,3977,3978,1,0,0,0,3978,3981,1,0,0,0,3979,3977,1,0,0,0,3980,3982,5,24,0,0,3981,3980,1,0,0,0,3981,3982,1,0,0,0,3982,3984,1,0,0,0,3983,3972,1,0,0,0,3983,3984,1,0,0,0,3984,3985,1,0,0,0,3985,3986,5,26,0,0,3986,4e3,1,0,0,0,3987,3993,3,144,72,0,3988,3990,5,25,0,0,3989,3991,3,112,56,0,3990,3989,1,0,0,0,3990,3991,1,0,0,0,3991,3992,1,0,0,0,3992,3994,5,26,0,0,3993,3988,1,0,0,0,3993,3994,1,0,0,0,3994,3997,1,0,0,0,3995,3996,5,317,0,0,3996,3998,3,846,423,0,3997,3995,1,0,0,0,3997,3998,1,0,0,0,3998,4e3,1,0,0,0,3999,3969,1,0,0,0,3999,3970,1,0,0,0,3999,3987,1,0,0,0,4e3,4002,1,0,0,0,4001,4003,3,668,334,0,4002,4001,1,0,0,0,4002,4003,1,0,0,0,4003,663,1,0,0,0,4004,4007,3,858,429,0,4005,4006,5,317,0,0,4006,4008,3,846,423,0,4007,4005,1,0,0,0,4007,4008,1,0,0,0,4008,665,1,0,0,0,4009,4011,5,29,0,0,4010,4009,1,0,0,0,4010,4011,1,0,0,0,4011,4012,1,0,0,0,4012,4015,3,128,64,0,4013,4014,5,317,0,0,4014,4016,3,846,423,0,4015,4013,1,0,0,0,4015,4016,1,0,0,0,4016,667,1,0,0,0,4017,4030,5,322,0,0,4018,4031,3,670,335,0,4019,4020,5,25,0,0,4020,4025,3,670,335,0,4021,4022,5,24,0,0,4022,4024,3,670,335,0,4023,4021,1,0,0,0,4024,4027,1,0,0,0,4025,4023,1,0,0,0,4025,4026,1,0,0,0,4026,4028,1,0,0,0,4027,4025,1,0,0,0,4028,4029,5,26,0,0,4029,4031,1,0,0,0,4030,4018,1,0,0,0,4030,4019,1,0,0,0,4031,669,1,0,0,0,4032,4051,3,840,420,0,4033,4049,5,1,0,0,4034,4050,3,160,80,0,4035,4036,5,25,0,0,4036,4041,3,160,80,0,4037,4038,5,24,0,0,4038,4040,3,160,80,0,4039,4037,1,0,0,0,4040,4043,1,0,0,0,4041,4039,1,0,0,0,4041,4042,1,0,0,0,4042,4045,1,0,0,0,4043,4041,1,0,0,0,4044,4046,5,24,0,0,4045,4044,1,0,0,0,4045,4046,1,0,0,0,4046,4047,1,0,0,0,4047,4048,5,26,0,0,4048,4050,1,0,0,0,4049,4034,1,0,0,0,4049,4035,1,0,0,0,4050,4052,1,0,0,0,4051,4033,1,0,0,0,4051,4052,1,0,0,0,4052,4078,1,0,0,0,4053,4055,7,28,0,0,4054,4056,5,1,0,0,4055,4054,1,0,0,0,4055,4056,1,0,0,0,4056,4057,1,0,0,0,4057,4078,3,204,102,0,4058,4060,5,266,0,0,4059,4061,5,1,0,0,4060,4059,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4071,5,25,0,0,4063,4068,3,164,82,0,4064,4065,5,24,0,0,4065,4067,3,164,82,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,4072,1,0,0,0,4070,4068,1,0,0,0,4071,4063,1,0,0,0,4071,4072,1,0,0,0,4072,4074,1,0,0,0,4073,4075,5,24,0,0,4074,4073,1,0,0,0,4074,4075,1,0,0,0,4075,4076,1,0,0,0,4076,4078,5,26,0,0,4077,4032,1,0,0,0,4077,4053,1,0,0,0,4077,4058,1,0,0,0,4078,671,1,0,0,0,4079,4080,3,850,425,0,4080,4081,5,23,0,0,4081,4083,1,0,0,0,4082,4079,1,0,0,0,4082,4083,1,0,0,0,4083,4084,1,0,0,0,4084,4085,3,856,428,0,4085,673,1,0,0,0,4086,4092,3,672,336,0,4087,4089,5,29,0,0,4088,4087,1,0,0,0,4088,4089,1,0,0,0,4089,4090,1,0,0,0,4090,4092,3,144,72,0,4091,4086,1,0,0,0,4091,4088,1,0,0,0,4092,675,1,0,0,0,4093,4095,3,674,337,0,4094,4096,3,668,334,0,4095,4094,1,0,0,0,4095,4096,1,0,0,0,4096,677,1,0,0,0,4097,4101,3,676,338,0,4098,4099,5,119,0,0,4099,4100,5,67,0,0,4100,4102,3,114,57,0,4101,4098,1,0,0,0,4101,4102,1,0,0,0,4102,679,1,0,0,0,4103,4105,5,60,0,0,4104,4103,1,0,0,0,4104,4105,1,0,0,0,4105,4106,1,0,0,0,4106,4107,5,101,0,0,4107,4108,5,141,0,0,4108,4112,3,676,338,0,4109,4113,3,900,450,0,4110,4111,5,207,0,0,4111,4113,3,368,184,0,4112,4109,1,0,0,0,4112,4110,1,0,0,0,4112,4113,1,0,0,0,4113,4115,1,0,0,0,4114,4116,3,362,181,0,4115,4114,1,0,0,0,4115,4116,1,0,0,0,4116,681,1,0,0,0,4117,4119,5,60,0,0,4118,4117,1,0,0,0,4118,4119,1,0,0,0,4119,4120,1,0,0,0,4120,4121,5,309,0,0,4121,4129,3,676,338,0,4122,4123,5,271,0,0,4123,4125,3,684,342,0,4124,4126,3,900,450,0,4125,4124,1,0,0,0,4125,4126,1,0,0,0,4126,4130,1,0,0,0,4127,4128,5,207,0,0,4128,4130,3,368,184,0,4129,4122,1,0,0,0,4129,4127,1,0,0,0,4130,4132,1,0,0,0,4131,4133,3,362,181,0,4132,4131,1,0,0,0,4132,4133,1,0,0,0,4133,683,1,0,0,0,4134,4137,3,686,343,0,4135,4137,3,692,346,0,4136,4134,1,0,0,0,4136,4135,1,0,0,0,4137,685,1,0,0,0,4138,4143,3,688,344,0,4139,4140,5,24,0,0,4140,4142,3,688,344,0,4141,4139,1,0,0,0,4142,4145,1,0,0,0,4143,4141,1,0,0,0,4143,4144,1,0,0,0,4144,687,1,0,0,0,4145,4143,1,0,0,0,4146,4147,3,690,345,0,4147,4148,5,1,0,0,4148,4149,3,14,7,0,4149,689,1,0,0,0,4150,4151,3,120,60,0,4151,691,1,0,0,0,4152,4153,3,694,347,0,4153,4154,5,1,0,0,4154,4155,5,25,0,0,4155,4156,3,378,189,0,4156,4157,5,26,0,0,4157,693,1,0,0,0,4158,4159,5,25,0,0,4159,4164,3,690,345,0,4160,4161,5,24,0,0,4161,4163,3,690,345,0,4162,4160,1,0,0,0,4163,4166,1,0,0,0,4164,4162,1,0,0,0,4164,4165,1,0,0,0,4165,4167,1,0,0,0,4166,4164,1,0,0,0,4167,4168,5,26,0,0,4168,695,1,0,0,0,4169,4170,5,86,0,0,4170,4174,5,296,0,0,4171,4172,5,153,0,0,4172,4173,5,199,0,0,4173,4175,5,127,0,0,4174,4171,1,0,0,0,4174,4175,1,0,0,0,4175,4176,1,0,0,0,4176,4178,3,742,371,0,4177,4179,3,698,349,0,4178,4177,1,0,0,0,4178,4179,1,0,0,0,4179,4181,1,0,0,0,4180,4182,3,702,351,0,4181,4180,1,0,0,0,4181,4182,1,0,0,0,4182,697,1,0,0,0,4183,4184,5,25,0,0,4184,4189,3,700,350,0,4185,4186,5,24,0,0,4186,4188,3,700,350,0,4187,4185,1,0,0,0,4188,4191,1,0,0,0,4189,4187,1,0,0,0,4189,4190,1,0,0,0,4190,4192,1,0,0,0,4191,4189,1,0,0,0,4192,4193,5,26,0,0,4193,699,1,0,0,0,4194,4195,3,710,355,0,4195,701,1,0,0,0,4196,4197,5,322,0,0,4197,4198,5,25,0,0,4198,4199,3,728,364,0,4199,4200,5,26,0,0,4200,703,1,0,0,0,4201,4202,5,43,0,0,4202,4205,5,296,0,0,4203,4204,5,153,0,0,4204,4206,5,127,0,0,4205,4203,1,0,0,0,4205,4206,1,0,0,0,4206,4207,1,0,0,0,4207,4208,3,742,371,0,4208,4213,3,706,353,0,4209,4210,5,24,0,0,4210,4212,3,706,353,0,4211,4209,1,0,0,0,4212,4215,1,0,0,0,4213,4211,1,0,0,0,4213,4214,1,0,0,0,4214,705,1,0,0,0,4215,4213,1,0,0,0,4216,4222,3,708,354,0,4217,4222,3,712,356,0,4218,4222,3,716,358,0,4219,4222,3,722,361,0,4220,4222,3,724,362,0,4221,4216,1,0,0,0,4221,4217,1,0,0,0,4221,4218,1,0,0,0,4221,4219,1,0,0,0,4221,4220,1,0,0,0,4222,707,1,0,0,0,4223,4224,5,40,0,0,4224,4225,3,710,355,0,4225,709,1,0,0,0,4226,4227,5,84,0,0,4227,4229,3,824,412,0,4228,4230,3,734,367,0,4229,4228,1,0,0,0,4229,4230,1,0,0,0,4230,711,1,0,0,0,4231,4232,5,43,0,0,4232,4233,5,84,0,0,4233,4234,3,744,372,0,4234,4235,3,714,357,0,4235,713,1,0,0,0,4236,4239,3,718,359,0,4237,4239,3,720,360,0,4238,4236,1,0,0,0,4238,4237,1,0,0,0,4239,715,1,0,0,0,4240,4241,5,111,0,0,4241,4242,5,84,0,0,4242,4243,3,744,372,0,4243,717,1,0,0,0,4244,4245,5,271,0,0,4245,4246,5,25,0,0,4246,4247,3,736,368,0,4247,4248,5,26,0,0,4248,719,1,0,0,0,4249,4250,5,247,0,0,4250,4251,5,25,0,0,4251,4256,3,824,412,0,4252,4253,5,24,0,0,4253,4255,3,824,412,0,4254,4252,1,0,0,0,4255,4258,1,0,0,0,4256,4254,1,0,0,0,4256,4257,1,0,0,0,4257,4259,1,0,0,0,4258,4256,1,0,0,0,4259,4260,5,26,0,0,4260,721,1,0,0,0,4261,4262,5,271,0,0,4262,4263,5,25,0,0,4263,4264,3,728,364,0,4264,4265,5,26,0,0,4265,723,1,0,0,0,4266,4267,5,247,0,0,4267,4268,5,25,0,0,4268,4273,3,824,412,0,4269,4270,5,24,0,0,4270,4272,3,842,421,0,4271,4269,1,0,0,0,4272,4275,1,0,0,0,4273,4271,1,0,0,0,4273,4274,1,0,0,0,4274,4276,1,0,0,0,4275,4273,1,0,0,0,4276,4277,5,26,0,0,4277,725,1,0,0,0,4278,4279,5,111,0,0,4279,4282,5,296,0,0,4280,4281,5,153,0,0,4281,4283,5,127,0,0,4282,4280,1,0,0,0,4282,4283,1,0,0,0,4283,4284,1,0,0,0,4284,4285,3,742,371,0,4285,727,1,0,0,0,4286,4291,3,730,365,0,4287,4288,5,24,0,0,4288,4290,3,730,365,0,4289,4287,1,0,0,0,4290,4293,1,0,0,0,4291,4289,1,0,0,0,4291,4292,1,0,0,0,4292,729,1,0,0,0,4293,4291,1,0,0,0,4294,4295,3,824,412,0,4295,4296,5,1,0,0,4296,4297,3,732,366,0,4297,731,1,0,0,0,4298,4299,3,14,7,0,4299,733,1,0,0,0,4300,4301,5,322,0,0,4301,4302,5,25,0,0,4302,4303,3,736,368,0,4303,4304,5,26,0,0,4304,735,1,0,0,0,4305,4310,3,738,369,0,4306,4307,5,24,0,0,4307,4309,3,738,369,0,4308,4306,1,0,0,0,4309,4312,1,0,0,0,4310,4308,1,0,0,0,4310,4311,1,0,0,0,4311,737,1,0,0,0,4312,4310,1,0,0,0,4313,4314,3,824,412,0,4314,4315,5,1,0,0,4315,4316,3,740,370,0,4316,739,1,0,0,0,4317,4318,3,14,7,0,4318,741,1,0,0,0,4319,4320,3,850,425,0,4320,4321,5,23,0,0,4321,4323,1,0,0,0,4322,4319,1,0,0,0,4322,4323,1,0,0,0,4323,4324,1,0,0,0,4324,4325,3,824,412,0,4325,743,1,0,0,0,4326,4327,3,842,421,0,4327,745,1,0,0,0,4328,4329,5,249,0,0,4329,4333,5,202,0,0,4330,4331,5,154,0,0,4331,4333,5,202,0,0,4332,4328,1,0,0,0,4332,4330,1,0,0,0,4333,747,1,0,0,0,4334,4335,5,134,0,0,4335,4336,5,25,0,0,4336,4337,3,900,450,0,4337,4338,5,26,0,0,4338,749,1,0,0,0,4339,4342,3,752,376,0,4340,4342,3,762,381,0,4341,4339,1,0,0,0,4341,4340,1,0,0,0,4342,751,1,0,0,0,4343,4344,3,834,417,0,4344,753,1,0,0,0,4345,4346,5,321,0,0,4346,4347,3,756,378,0,4347,755,1,0,0,0,4348,4353,3,758,379,0,4349,4350,5,24,0,0,4350,4352,3,758,379,0,4351,4349,1,0,0,0,4352,4355,1,0,0,0,4353,4351,1,0,0,0,4353,4354,1,0,0,0,4354,757,1,0,0,0,4355,4353,1,0,0,0,4356,4357,3,760,380,0,4357,4358,5,49,0,0,4358,4359,3,762,381,0,4359,759,1,0,0,0,4360,4361,3,752,376,0,4361,761,1,0,0,0,4362,4363,5,25,0,0,4363,4364,3,764,382,0,4364,4365,5,26,0,0,4365,763,1,0,0,0,4366,4368,3,766,383,0,4367,4366,1,0,0,0,4367,4368,1,0,0,0,4368,4370,1,0,0,0,4369,4371,3,768,384,0,4370,4369,1,0,0,0,4370,4371,1,0,0,0,4371,4373,1,0,0,0,4372,4374,3,770,385,0,4373,4372,1,0,0,0,4373,4374,1,0,0,0,4374,4376,1,0,0,0,4375,4377,3,772,386,0,4376,4375,1,0,0,0,4376,4377,1,0,0,0,4377,765,1,0,0,0,4378,4379,3,752,376,0,4379,767,1,0,0,0,4380,4382,5,218,0,0,4381,4383,5,79,0,0,4382,4381,1,0,0,0,4382,4383,1,0,0,0,4383,4384,1,0,0,0,4384,4385,5,67,0,0,4385,4386,3,130,65,0,4386,769,1,0,0,0,4387,4388,3,314,157,0,4388,771,1,0,0,0,4389,4390,3,774,387,0,4390,4392,3,776,388,0,4391,4393,3,782,391,0,4392,4391,1,0,0,0,4392,4393,1,0,0,0,4393,773,1,0,0,0,4394,4395,7,29,0,0,4395,775,1,0,0,0,4396,4399,3,780,390,0,4397,4399,3,778,389,0,4398,4396,1,0,0,0,4398,4397,1,0,0,0,4399,777,1,0,0,0,4400,4401,5,65,0,0,4401,4402,3,780,390,0,4402,4403,5,45,0,0,4403,4404,3,780,390,0,4404,779,1,0,0,0,4405,4406,5,89,0,0,4406,4413,5,262,0,0,4407,4410,3,14,7,0,4408,4410,5,303,0,0,4409,4407,1,0,0,0,4409,4408,1,0,0,0,4410,4411,1,0,0,0,4411,4413,7,30,0,0,4412,4405,1,0,0,0,4412,4409,1,0,0,0,4413,781,1,0,0,0,4414,4415,5,124,0,0,4415,4416,5,89,0,0,4416,4425,5,262,0,0,4417,4418,5,124,0,0,4418,4425,5,147,0,0,4419,4420,5,124,0,0,4420,4425,5,294,0,0,4421,4422,5,124,0,0,4422,4423,5,197,0,0,4423,4425,5,214,0,0,4424,4414,1,0,0,0,4424,4417,1,0,0,0,4424,4419,1,0,0,0,4424,4421,1,0,0,0,4425,783,1,0,0,0,4426,4427,5,311,0,0,4427,4428,3,850,425,0,4428,785,1,0,0,0,4429,4430,5,25,0,0,4430,4431,3,232,116,0,4431,4432,5,26,0,0,4432,4435,1,0,0,0,4433,4435,3,234,117,0,4434,4429,1,0,0,0,4434,4433,1,0,0,0,4435,787,1,0,0,0,4436,4437,3,148,74,0,4437,4440,5,1,0,0,4438,4441,3,14,7,0,4439,4441,3,786,393,0,4440,4438,1,0,0,0,4440,4439,1,0,0,0,4441,789,1,0,0,0,4442,4443,5,78,0,0,4443,791,1,0,0,0,4444,4445,5,260,0,0,4445,793,1,0,0,0,4446,4451,3,676,338,0,4447,4448,5,25,0,0,4448,4449,3,124,62,0,4449,4450,5,26,0,0,4450,4452,1,0,0,0,4451,4447,1,0,0,0,4451,4452,1,0,0,0,4452,795,1,0,0,0,4453,4458,3,794,397,0,4454,4455,5,24,0,0,4455,4457,3,794,397,0,4456,4454,1,0,0,0,4457,4460,1,0,0,0,4458,4456,1,0,0,0,4458,4459,1,0,0,0,4459,4462,1,0,0,0,4460,4458,1,0,0,0,4461,4463,5,24,0,0,4462,4461,1,0,0,0,4462,4463,1,0,0,0,4463,797,1,0,0,0,4464,4465,5,44,0,0,4465,4466,3,796,398,0,4466,799,1,0,0,0,4467,4468,5,43,0,0,4468,4471,5,275,0,0,4469,4470,5,153,0,0,4470,4472,5,127,0,0,4471,4469,1,0,0,0,4471,4472,1,0,0,0,4472,4473,1,0,0,0,4473,4475,3,672,336,0,4474,4476,3,802,401,0,4475,4474,1,0,0,0,4476,4477,1,0,0,0,4477,4475,1,0,0,0,4477,4478,1,0,0,0,4478,801,1,0,0,0,4479,4481,5,277,0,0,4480,4482,5,322,0,0,4481,4480,1,0,0,0,4481,4482,1,0,0,0,4482,4483,1,0,0,0,4483,4496,3,888,444,0,4484,4486,5,250,0,0,4485,4487,5,322,0,0,4486,4485,1,0,0,0,4486,4487,1,0,0,0,4487,4488,1,0,0,0,4488,4496,3,888,444,0,4489,4496,5,250,0,0,4490,4492,5,159,0,0,4491,4493,5,67,0,0,4492,4491,1,0,0,0,4492,4493,1,0,0,0,4493,4494,1,0,0,0,4494,4496,3,888,444,0,4495,4479,1,0,0,0,4495,4484,1,0,0,0,4495,4489,1,0,0,0,4495,4490,1,0,0,0,4496,803,1,0,0,0,4497,4498,7,31,0,0,4498,805,1,0,0,0,4499,4502,3,804,402,0,4500,4502,3,862,431,0,4501,4499,1,0,0,0,4501,4500,1,0,0,0,4502,807,1,0,0,0,4503,4511,3,804,402,0,4504,4511,3,880,440,0,4505,4511,3,864,432,0,4506,4511,3,868,434,0,4507,4511,3,872,436,0,4508,4511,3,874,437,0,4509,4511,3,876,438,0,4510,4503,1,0,0,0,4510,4504,1,0,0,0,4510,4505,1,0,0,0,4510,4506,1,0,0,0,4510,4507,1,0,0,0,4510,4508,1,0,0,0,4510,4509,1,0,0,0,4511,809,1,0,0,0,4512,4519,3,804,402,0,4513,4519,3,880,440,0,4514,4519,3,870,435,0,4515,4519,3,872,436,0,4516,4519,3,874,437,0,4517,4519,3,876,438,0,4518,4512,1,0,0,0,4518,4513,1,0,0,0,4518,4514,1,0,0,0,4518,4515,1,0,0,0,4518,4516,1,0,0,0,4518,4517,1,0,0,0,4519,811,1,0,0,0,4520,4526,3,804,402,0,4521,4526,3,880,440,0,4522,4526,3,870,435,0,4523,4526,3,874,437,0,4524,4526,3,876,438,0,4525,4520,1,0,0,0,4525,4521,1,0,0,0,4525,4522,1,0,0,0,4525,4523,1,0,0,0,4525,4524,1,0,0,0,4526,813,1,0,0,0,4527,4536,3,804,402,0,4528,4536,3,880,440,0,4529,4536,3,864,432,0,4530,4536,3,866,433,0,4531,4536,3,868,434,0,4532,4536,3,870,435,0,4533,4536,3,872,436,0,4534,4536,3,876,438,0,4535,4527,1,0,0,0,4535,4528,1,0,0,0,4535,4529,1,0,0,0,4535,4530,1,0,0,0,4535,4531,1,0,0,0,4535,4532,1,0,0,0,4535,4533,1,0,0,0,4535,4534,1,0,0,0,4536,815,1,0,0,0,4537,4545,3,804,402,0,4538,4545,3,880,440,0,4539,4545,3,864,432,0,4540,4545,3,868,434,0,4541,4545,3,872,436,0,4542,4545,3,874,437,0,4543,4545,3,876,438,0,4544,4537,1,0,0,0,4544,4538,1,0,0,0,4544,4539,1,0,0,0,4544,4540,1,0,0,0,4544,4541,1,0,0,0,4544,4542,1,0,0,0,4544,4543,1,0,0,0,4545,817,1,0,0,0,4546,4554,3,804,402,0,4547,4554,3,880,440,0,4548,4554,3,866,433,0,4549,4554,3,870,435,0,4550,4554,3,872,436,0,4551,4554,3,874,437,0,4552,4554,3,876,438,0,4553,4546,1,0,0,0,4553,4547,1,0,0,0,4553,4548,1,0,0,0,4553,4549,1,0,0,0,4553,4550,1,0,0,0,4553,4551,1,0,0,0,4553,4552,1,0,0,0,4554,819,1,0,0,0,4555,4564,3,804,402,0,4556,4564,3,880,440,0,4557,4564,3,864,432,0,4558,4564,3,866,433,0,4559,4564,3,868,434,0,4560,4564,3,870,435,0,4561,4564,3,872,436,0,4562,4564,3,874,437,0,4563,4555,1,0,0,0,4563,4556,1,0,0,0,4563,4557,1,0,0,0,4563,4558,1,0,0,0,4563,4559,1,0,0,0,4563,4560,1,0,0,0,4563,4561,1,0,0,0,4563,4562,1,0,0,0,4564,821,1,0,0,0,4565,4568,3,804,402,0,4566,4568,3,878,439,0,4567,4565,1,0,0,0,4567,4566,1,0,0,0,4568,823,1,0,0,0,4569,4572,3,806,403,0,4570,4572,5,326,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,825,1,0,0,0,4573,4576,3,852,426,0,4574,4576,5,326,0,0,4575,4573,1,0,0,0,4575,4574,1,0,0,0,4576,827,1,0,0,0,4577,4580,3,808,404,0,4578,4580,5,326,0,0,4579,4577,1,0,0,0,4579,4578,1,0,0,0,4580,829,1,0,0,0,4581,4584,3,810,405,0,4582,4584,5,326,0,0,4583,4581,1,0,0,0,4583,4582,1,0,0,0,4584,831,1,0,0,0,4585,4588,3,812,406,0,4586,4588,5,326,0,0,4587,4585,1,0,0,0,4587,4586,1,0,0,0,4588,833,1,0,0,0,4589,4592,3,814,407,0,4590,4592,5,326,0,0,4591,4589,1,0,0,0,4591,4590,1,0,0,0,4592,835,1,0,0,0,4593,4596,3,816,408,0,4594,4596,5,326,0,0,4595,4593,1,0,0,0,4595,4594,1,0,0,0,4596,837,1,0,0,0,4597,4600,3,818,409,0,4598,4600,5,326,0,0,4599,4597,1,0,0,0,4599,4598,1,0,0,0,4600,839,1,0,0,0,4601,4604,3,820,410,0,4602,4604,5,326,0,0,4603,4601,1,0,0,0,4603,4602,1,0,0,0,4604,841,1,0,0,0,4605,4608,3,804,402,0,4606,4608,5,326,0,0,4607,4605,1,0,0,0,4607,4606,1,0,0,0,4608,843,1,0,0,0,4609,4612,3,822,411,0,4610,4612,5,326,0,0,4611,4609,1,0,0,0,4611,4610,1,0,0,0,4612,845,1,0,0,0,4613,4617,3,824,412,0,4614,4615,5,230,0,0,4615,4617,5,177,0,0,4616,4613,1,0,0,0,4616,4614,1,0,0,0,4617,847,1,0,0,0,4618,4619,3,824,412,0,4619,4620,5,23,0,0,4620,4622,1,0,0,0,4621,4618,1,0,0,0,4621,4622,1,0,0,0,4622,849,1,0,0,0,4623,4624,3,824,412,0,4624,4625,5,28,0,0,4625,4627,1,0,0,0,4626,4623,1,0,0,0,4626,4627,1,0,0,0,4627,4630,1,0,0,0,4628,4631,3,116,58,0,4629,4631,5,19,0,0,4630,4628,1,0,0,0,4630,4629,1,0,0,0,4631,851,1,0,0,0,4632,4635,3,806,403,0,4633,4635,3,882,441,0,4634,4632,1,0,0,0,4634,4633,1,0,0,0,4635,853,1,0,0,0,4636,4637,3,826,413,0,4637,4638,5,23,0,0,4638,4640,1,0,0,0,4639,4636,1,0,0,0,4639,4640,1,0,0,0,4640,855,1,0,0,0,4641,4643,5,29,0,0,4642,4641,1,0,0,0,4642,4643,1,0,0,0,4643,4644,1,0,0,0,4644,4645,3,826,413,0,4645,857,1,0,0,0,4646,4649,3,836,418,0,4647,4649,3,882,441,0,4648,4646,1,0,0,0,4648,4647,1,0,0,0,4649,859,1,0,0,0,4650,4652,5,29,0,0,4651,4650,1,0,0,0,4651,4652,1,0,0,0,4652,4653,1,0,0,0,4653,4654,3,858,429,0,4654,861,1,0,0,0,4655,4664,3,880,440,0,4656,4664,3,864,432,0,4657,4664,3,866,433,0,4658,4664,3,868,434,0,4659,4664,3,870,435,0,4660,4664,3,872,436,0,4661,4664,3,874,437,0,4662,4664,3,876,438,0,4663,4655,1,0,0,0,4663,4656,1,0,0,0,4663,4657,1,0,0,0,4663,4658,1,0,0,0,4663,4659,1,0,0,0,4663,4660,1,0,0,0,4663,4661,1,0,0,0,4663,4662,1,0,0,0,4664,863,1,0,0,0,4665,4666,7,32,0,0,4666,865,1,0,0,0,4667,4668,7,33,0,0,4668,867,1,0,0,0,4669,4670,7,34,0,0,4670,869,1,0,0,0,4671,4672,5,76,0,0,4672,871,1,0,0,0,4673,4674,5,79,0,0,4674,873,1,0,0,0,4675,4676,7,29,0,0,4676,875,1,0,0,0,4677,4678,7,28,0,0,4678,877,1,0,0,0,4679,4680,7,35,0,0,4680,879,1,0,0,0,4681,4682,7,36,0,0,4682,881,1,0,0,0,4683,4684,7,37,0,0,4684,883,1,0,0,0,4685,4686,7,38,0,0,4686,885,1,0,0,0,4687,4688,5,331,0,0,4688,887,1,0,0,0,4689,4690,7,39,0,0,4690,889,1,0,0,0,4691,4697,3,892,446,0,4692,4693,5,227,0,0,4693,4694,5,46,0,0,4694,4695,5,329,0,0,4695,4697,3,4,2,0,4696,4691,1,0,0,0,4696,4692,1,0,0,0,4697,891,1,0,0,0,4698,4700,5,22,0,0,4699,4698,1,0,0,0,4700,4703,1,0,0,0,4701,4699,1,0,0,0,4701,4702,1,0,0,0,4702,4704,1,0,0,0,4703,4701,1,0,0,0,4704,4713,3,894,447,0,4705,4707,5,22,0,0,4706,4705,1,0,0,0,4707,4708,1,0,0,0,4708,4706,1,0,0,0,4708,4709,1,0,0,0,4709,4710,1,0,0,0,4710,4712,3,894,447,0,4711,4706,1,0,0,0,4712,4715,1,0,0,0,4713,4711,1,0,0,0,4713,4714,1,0,0,0,4714,4719,1,0,0,0,4715,4713,1,0,0,0,4716,4718,5,22,0,0,4717,4716,1,0,0,0,4718,4721,1,0,0,0,4719,4717,1,0,0,0,4719,4720,1,0,0,0,4720,4722,1,0,0,0,4721,4719,1,0,0,0,4722,4723,5,0,0,1,4723,893,1,0,0,0,4724,4727,5,128,0,0,4725,4726,5,233,0,0,4726,4728,5,225,0,0,4727,4725,1,0,0,0,4727,4728,1,0,0,0,4728,4730,1,0,0,0,4729,4724,1,0,0,0,4729,4730,1,0,0,0,4730,4731,1,0,0,0,4731,4732,3,896,448,0,4732,895,1,0,0,0,4733,4747,3,224,112,0,4734,4747,3,232,116,0,4735,4747,3,788,394,0,4736,4747,3,784,392,0,4737,4747,3,366,183,0,4738,4747,3,210,105,0,4739,4747,3,214,107,0,4740,4747,3,216,108,0,4741,4747,3,222,111,0,4742,4747,3,654,327,0,4743,4747,3,658,329,0,4744,4747,3,660,330,0,4745,4747,3,370,185,0,4746,4733,1,0,0,0,4746,4734,1,0,0,0,4746,4735,1,0,0,0,4746,4736,1,0,0,0,4746,4737,1,0,0,0,4746,4738,1,0,0,0,4746,4739,1,0,0,0,4746,4740,1,0,0,0,4746,4741,1,0,0,0,4746,4742,1,0,0,0,4746,4743,1,0,0,0,4746,4744,1,0,0,0,4746,4745,1,0,0,0,4747,897,1,0,0,0,4748,4749,5,49,0,0,4749,4750,3,672,336,0,4750,899,1,0,0,0,4751,4752,5,320,0,0,4752,4753,3,14,7,0,4753,901,1,0,0,0,523,907,912,919,924,930,938,946,953,957,965,970,975,977,1041,1048,1052,1059,1067,1072,1076,1082,1088,1091,1095,1103,1107,1110,1114,1125,1130,1132,1141,1162,1167,1176,1178,1185,1193,1201,1208,1218,1220,1224,1229,1233,1239,1245,1249,1253,1256,1263,1269,1273,1278,1281,1295,1300,1303,1317,1324,1335,1346,1366,1372,1377,1381,1395,1397,1404,1410,1421,1429,1435,1442,1450,1463,1469,1473,1476,1478,1486,1494,1500,1506,1512,1515,1524,1533,1540,1548,1561,1568,1572,1579,1583,1588,1595,1602,1605,1612,1616,1626,1649,1655,1659,1666,1672,1679,1683,1687,1693,1698,1707,1710,1716,1721,1729,1736,1758,1762,1764,1768,1777,1781,1783,1787,1796,1800,1838,1842,1862,1865,1871,1891,1896,1902,1907,1910,1914,1941,1949,1952,1959,1972,1976,1988,2001,2006,2013,2017,2024,2033,2042,2050,2054,2058,2065,2067,2070,2075,2080,2084,2091,2098,2102,2105,2109,2113,2115,2126,2135,2140,2146,2151,2154,2158,2162,2165,2169,2173,2181,2185,2189,2193,2196,2199,2203,2206,2209,2214,2217,2220,2223,2237,2239,2250,2260,2270,2273,2280,2304,2315,2321,2325,2329,2333,2337,2341,2345,2349,2355,2362,2372,2383,2396,2412,2422,2442,2448,2455,2462,2470,2479,2516,2518,2521,2526,2530,2534,2540,2546,2550,2555,2560,2562,2566,2571,2574,2576,2580,2591,2602,2613,2617,2621,2625,2628,2632,2635,2641,2650,2653,2667,2673,2686,2693,2698,2705,2712,2721,2726,2734,2749,2755,2763,2772,2776,2785,2797,2804,2812,2833,2841,2850,2860,2869,2874,2881,2891,2896,2905,2909,2913,2916,2919,2922,2925,2933,2938,2949,2956,2969,2977,2982,2989,3002,3013,3023,3029,3038,3055,3078,3098,3109,3117,3127,3132,3136,3142,3180,3192,3234,3242,3245,3249,3253,3263,3276,3289,3294,3306,3317,3322,3325,3329,3333,3337,3340,3353,3357,3369,3383,3398,3413,3416,3426,3429,3437,3449,3452,3462,3470,3476,3484,3492,3499,3503,3513,3520,3525,3530,3542,3546,3548,3560,3564,3569,3575,3582,3586,3590,3594,3598,3601,3619,3628,3632,3637,3643,3652,3661,3678,3682,3686,3688,3692,3699,3703,3707,3709,3726,3731,3755,3760,3778,3794,3810,3825,3829,3840,3852,3867,3872,3887,3894,3902,3913,3920,3925,3931,3934,3937,3944,3947,3950,3959,3964,3967,3977,3981,3983,3990,3993,3997,3999,4002,4007,4010,4015,4025,4030,4041,4045,4049,4051,4055,4060,4068,4071,4074,4077,4082,4088,4091,4095,4101,4104,4112,4115,4118,4125,4129,4132,4136,4143,4164,4174,4178,4181,4189,4205,4213,4221,4229,4238,4256,4273,4282,4291,4310,4322,4332,4341,4353,4367,4370,4373,4376,4382,4392,4398,4409,4412,4424,4434,4440,4451,4458,4462,4471,4477,4481,4486,4492,4495,4501,4510,4518,4525,4535,4544,4553,4563,4567,4571,4575,4579,4583,4587,4591,4595,4599,4603,4607,4611,4616,4621,4626,4630,4634,4639,4642,4648,4651,4663,4696,4701,4708,4713,4719,4727,4729,4746]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},os=class extends W{static{Si(this,"Sql_queryContext")}constructor(e,t){super(e,t)}sql_stmt_list(){return this.getRuleContext(0,as)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query}accept(e){return e.visitSql_query?e.visitSql_query(this):e.visitChildren(this)}},as=class extends W{static{Si(this,"Sql_stmt_listContext")}constructor(e,t){super(e,t)}sql_stmt(e){return void 0===e?this.getRuleContexts(ds):this.getRuleContext(e,ds)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list}accept(e){return e.visitSql_stmt_list?e.visitSql_stmt_list(this):e.visitChildren(this)}},cs=class extends W{static{Si(this,"Ansi_sql_stmt_listContext")}constructor(e,t){super(e,t)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_ansi_sql_stmt_list}accept(e){return e.visitAnsi_sql_stmt_list?e.visitAnsi_sql_stmt_list(this):e.visitChildren(this)}},ls=class extends W{static{Si(this,"Lambda_bodyContext")}constructor(e,t){super(e,t)}RETURN(){return this.getToken(rs.RETURN,0)}expr(){return this.getRuleContext(0,gs)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}lambda_stmt(e){return void 0===e?this.getRuleContexts(hs):this.getRuleContext(e,hs)}get ruleIndex(){return rs.RULE_lambda_body}accept(e){return e.visitLambda_body?e.visitLambda_body(this):e.visitChildren(this)}},hs=class extends W{static{Si(this,"Lambda_stmtContext")}constructor(e,t){super(e,t)}named_nodes_stmt(){return this.getRuleContext(0,wh)}import_stmt(){return this.getRuleContext(0,or)}get ruleIndex(){return rs.RULE_lambda_stmt}accept(e){return e.visitLambda_stmt?e.visitLambda_stmt(this):e.visitChildren(this)}},ds=class extends W{static{Si(this,"Sql_stmtContext")}constructor(e,t){super(e,t)}sql_stmt_core(){return this.getRuleContext(0,us)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt}accept(e){return e.visitSql_stmt?e.visitSql_stmt(this):e.visitChildren(this)}},us=class extends W{static{Si(this,"Sql_stmt_coreContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}create_table_stmt(){return this.getRuleContext(0,ta)}drop_table_stmt(){return this.getRuleContext(0,Sc)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt(){return this.getRuleContext(0,xo)}commit_stmt(){return this.getRuleContext(0,Rh)}update_stmt(){return this.getRuleContext(0,Rl)}delete_stmt(){return this.getRuleContext(0,wl)}rollback_stmt(){return this.getRuleContext(0,Lh)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_external_table_stmt(){return this.getRuleContext(0,La)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}create_user_stmt(){return this.getRuleContext(0,yc)}alter_user_stmt(){return this.getRuleContext(0,wc)}create_group_stmt(){return this.getRuleContext(0,Rc)}alter_group_stmt(){return this.getRuleContext(0,Lc)}drop_role_stmt(){return this.getRuleContext(0,Tc)}create_object_stmt(){return this.getRuleContext(0,zo)}alter_object_stmt(){return this.getRuleContext(0,jo)}drop_object_stmt(){return this.getRuleContext(0,Yo)}create_external_data_source_stmt(){return this.getRuleContext(0,Po)}alter_external_data_source_stmt(){return this.getRuleContext(0,Fo)}drop_external_data_source_stmt(){return this.getRuleContext(0,Ho)}create_replication_stmt(){return this.getRuleContext(0,Yc)}drop_replication_stmt(){return this.getRuleContext(0,el)}create_topic_stmt(){return this.getRuleContext(0,Il)}alter_topic_stmt(){return this.getRuleContext(0,Pl)}drop_topic_stmt(){return this.getRuleContext(0,Yl)}grant_permissions_stmt(){return this.getRuleContext(0,Dc)}revoke_permissions_stmt(){return this.getRuleContext(0,Mc)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}upsert_object_stmt(){return this.getRuleContext(0,Vo)}create_view_stmt(){return this.getRuleContext(0,Bo)}drop_view_stmt(){return this.getRuleContext(0,Wo)}alter_replication_stmt(){return this.getRuleContext(0,Xc)}create_resource_pool_stmt(){return this.getRuleContext(0,Hc)}alter_resource_pool_stmt(){return this.getRuleContext(0,Bc)}drop_resource_pool_stmt(){return this.getRuleContext(0,Vc)}create_backup_collection_stmt(){return this.getRuleContext(0,sa)}alter_backup_collection_stmt(){return this.getRuleContext(0,na)}drop_backup_collection_stmt(){return this.getRuleContext(0,ra)}analyze_stmt(){return this.getRuleContext(0,kh)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,zc)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Gc)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Kc)}backup_stmt(){return this.getRuleContext(0,fa)}restore_stmt(){return this.getRuleContext(0,_a)}alter_sequence_stmt(){return this.getRuleContext(0,Ah)}create_transfer_stmt(){return this.getRuleContext(0,il)}alter_transfer_stmt(){return this.getRuleContext(0,rl)}drop_transfer_stmt(){return this.getRuleContext(0,ll)}get ruleIndex(){return rs.RULE_sql_stmt_core}accept(e){return e.visitSql_stmt_core?e.visitSql_stmt_core(this):e.visitChildren(this)}},gs=class extends W{static{Si(this,"ExprContext")}constructor(e,t){super(e,t)}or_subexpr(e){return void 0===e?this.getRuleContexts(ps):this.getRuleContext(e,ps)}OR(e){return void 0===e?this.getTokens(rs.OR):this.getToken(rs.OR,e)}type_name_composite(){return this.getRuleContext(0,Jn)}get ruleIndex(){return rs.RULE_expr}accept(e){return e.visitExpr?e.visitExpr(this):e.visitChildren(this)}},ps=class extends W{static{Si(this,"Or_subexprContext")}constructor(e,t){super(e,t)}and_subexpr(e){return void 0===e?this.getRuleContexts(ms):this.getRuleContext(e,ms)}AND(e){return void 0===e?this.getTokens(rs.AND):this.getToken(rs.AND,e)}get ruleIndex(){return rs.RULE_or_subexpr}accept(e){return e.visitOr_subexpr?e.visitOr_subexpr(this):e.visitChildren(this)}},ms=class extends W{static{Si(this,"And_subexprContext")}constructor(e,t){super(e,t)}xor_subexpr(e){return void 0===e?this.getRuleContexts(fs):this.getRuleContext(e,fs)}XOR(e){return void 0===e?this.getTokens(rs.XOR):this.getToken(rs.XOR,e)}get ruleIndex(){return rs.RULE_and_subexpr}accept(e){return e.visitAnd_subexpr?e.visitAnd_subexpr(this):e.visitChildren(this)}},fs=class extends W{static{Si(this,"Xor_subexprContext")}constructor(e,t){super(e,t)}eq_subexpr(){return this.getRuleContext(0,Es)}cond_expr(){return this.getRuleContext(0,vs)}get ruleIndex(){return rs.RULE_xor_subexpr}accept(e){return e.visitXor_subexpr?e.visitXor_subexpr(this):e.visitChildren(this)}},_s=class extends W{static{Si(this,"Distinct_from_opContext")}constructor(e,t){super(e,t)}IS(){return this.getToken(rs.IS,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}FROM(){return this.getToken(rs.FROM,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_distinct_from_op}accept(e){return e.visitDistinct_from_op?e.visitDistinct_from_op(this):e.visitChildren(this)}},vs=class extends W{static{Si(this,"Cond_exprContext")}constructor(e,t){super(e,t)}match_op(){return this.getRuleContext(0,Cs)}eq_subexpr(e){return void 0===e?this.getRuleContexts(Es):this.getRuleContext(e,Es)}NOT(){return this.getToken(rs.NOT,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}IN(){return this.getToken(rs.IN,0)}in_expr(){return this.getRuleContext(0,Ys)}COMPACT(){return this.getToken(rs.COMPACT,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}IS(){return this.getToken(rs.IS,0)}NULL(){return this.getToken(rs.NULL,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}AND(){return this.getToken(rs.AND,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}EQUALS(e){return void 0===e?this.getTokens(rs.EQUALS):this.getToken(rs.EQUALS,e)}EQUALS2(e){return void 0===e?this.getTokens(rs.EQUALS2):this.getToken(rs.EQUALS2,e)}NOT_EQUALS(e){return void 0===e?this.getTokens(rs.NOT_EQUALS):this.getToken(rs.NOT_EQUALS,e)}NOT_EQUALS2(e){return void 0===e?this.getTokens(rs.NOT_EQUALS2):this.getToken(rs.NOT_EQUALS2,e)}distinct_from_op(e){return void 0===e?this.getRuleContexts(_s):this.getRuleContext(e,_s)}get ruleIndex(){return rs.RULE_cond_expr}accept(e){return e.visitCond_expr?e.visitCond_expr(this):e.visitChildren(this)}},Cs=class extends W{static{Si(this,"Match_opContext")}constructor(e,t){super(e,t)}LIKE(){return this.getToken(rs.LIKE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}GLOB(){return this.getToken(rs.GLOB,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}MATCH(){return this.getToken(rs.MATCH,0)}get ruleIndex(){return rs.RULE_match_op}accept(e){return e.visitMatch_op?e.visitMatch_op(this):e.visitChildren(this)}},Es=class extends W{static{Si(this,"Eq_subexprContext")}constructor(e,t){super(e,t)}neq_subexpr(e){return void 0===e?this.getRuleContexts(ws):this.getRuleContext(e,ws)}LESS(e){return void 0===e?this.getTokens(rs.LESS):this.getToken(rs.LESS,e)}LESS_OR_EQ(e){return void 0===e?this.getTokens(rs.LESS_OR_EQ):this.getToken(rs.LESS_OR_EQ,e)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}GREATER_OR_EQ(e){return void 0===e?this.getTokens(rs.GREATER_OR_EQ):this.getToken(rs.GREATER_OR_EQ,e)}get ruleIndex(){return rs.RULE_eq_subexpr}accept(e){return e.visitEq_subexpr?e.visitEq_subexpr(this):e.visitChildren(this)}},bs=class extends W{static{Si(this,"Shift_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}get ruleIndex(){return rs.RULE_shift_right}accept(e){return e.visitShift_right?e.visitShift_right(this):e.visitChildren(this)}},Ss=class extends W{static{Si(this,"Rot_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}PIPE(){return this.getToken(rs.PIPE,0)}get ruleIndex(){return rs.RULE_rot_right}accept(e){return e.visitRot_right?e.visitRot_right(this):e.visitChildren(this)}},ys=class extends W{static{Si(this,"Double_questionContext")}constructor(e,t){super(e,t)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_double_question}accept(e){return e.visitDouble_question?e.visitDouble_question(this):e.visitChildren(this)}},ws=class e extends W{static{Si(this,"Neq_subexprContext")}constructor(e,t){super(e,t)}bit_subexpr(e){return void 0===e?this.getRuleContexts(Rs):this.getRuleContext(e,Rs)}double_question(){return this.getRuleContext(0,ys)}neq_subexpr(){return this.getRuleContext(0,e)}SHIFT_LEFT(e){return void 0===e?this.getTokens(rs.SHIFT_LEFT):this.getToken(rs.SHIFT_LEFT,e)}shift_right(e){return void 0===e?this.getRuleContexts(bs):this.getRuleContext(e,bs)}ROT_LEFT(e){return void 0===e?this.getTokens(rs.ROT_LEFT):this.getToken(rs.ROT_LEFT,e)}rot_right(e){return void 0===e?this.getRuleContexts(Ss):this.getRuleContext(e,Ss)}AMPERSAND(e){return void 0===e?this.getTokens(rs.AMPERSAND):this.getToken(rs.AMPERSAND,e)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}CARET(e){return void 0===e?this.getTokens(rs.CARET):this.getToken(rs.CARET,e)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_neq_subexpr}accept(e){return e.visitNeq_subexpr?e.visitNeq_subexpr(this):e.visitChildren(this)}},Rs=class extends W{static{Si(this,"Bit_subexprContext")}constructor(e,t){super(e,t)}add_subexpr(e){return void 0===e?this.getRuleContexts(Ls):this.getRuleContext(e,Ls)}PLUS(e){return void 0===e?this.getTokens(rs.PLUS):this.getToken(rs.PLUS,e)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}get ruleIndex(){return rs.RULE_bit_subexpr}accept(e){return e.visitBit_subexpr?e.visitBit_subexpr(this):e.visitChildren(this)}},Ls=class extends W{static{Si(this,"Add_subexprContext")}constructor(e,t){super(e,t)}mul_subexpr(e){return void 0===e?this.getRuleContexts(Ts):this.getRuleContext(e,Ts)}ASTERISK(e){return void 0===e?this.getTokens(rs.ASTERISK):this.getToken(rs.ASTERISK,e)}SLASH(e){return void 0===e?this.getTokens(rs.SLASH):this.getToken(rs.SLASH,e)}PERCENT(e){return void 0===e?this.getTokens(rs.PERCENT):this.getToken(rs.PERCENT,e)}get ruleIndex(){return rs.RULE_add_subexpr}accept(e){return e.visitAdd_subexpr?e.visitAdd_subexpr(this):e.visitChildren(this)}},Ts=class extends W{static{Si(this,"Mul_subexprContext")}constructor(e,t){super(e,t)}con_subexpr(e){return void 0===e?this.getRuleContexts(xs):this.getRuleContext(e,xs)}DOUBLE_PIPE(e){return void 0===e?this.getTokens(rs.DOUBLE_PIPE):this.getToken(rs.DOUBLE_PIPE,e)}get ruleIndex(){return rs.RULE_mul_subexpr}accept(e){return e.visitMul_subexpr?e.visitMul_subexpr(this):e.visitChildren(this)}},xs=class extends W{static{Si(this,"Con_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr(){return this.getRuleContext(0,Os)}unary_op(){return this.getRuleContext(0,ks)}get ruleIndex(){return rs.RULE_con_subexpr}accept(e){return e.visitCon_subexpr?e.visitCon_subexpr(this):e.visitChildren(this)}},ks=class extends W{static{Si(this,"Unary_opContext")}constructor(e,t){super(e,t)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}TILDA(){return this.getToken(rs.TILDA,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_unary_op}accept(e){return e.visitUnary_op?e.visitUnary_op(this):e.visitChildren(this)}},As=class extends W{static{Si(this,"Unary_subexpr_suffixContext")}constructor(e,t){super(e,t)}COLLATE(){return this.getToken(rs.COLLATE,0)}an_id(){return this.getRuleContext(0,Vh)}key_expr(e){return void 0===e?this.getRuleContexts(Sn):this.getRuleContext(e,Sn)}invoke_expr(e){return void 0===e?this.getRuleContexts(Cn):this.getRuleContext(e,Cn)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}DIGITS(e){return void 0===e?this.getTokens(rs.DIGITS):this.getToken(rs.DIGITS,e)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}get ruleIndex(){return rs.RULE_unary_subexpr_suffix}accept(e){return e.visitUnary_subexpr_suffix?e.visitUnary_subexpr_suffix(this):e.visitChildren(this)}},Ns=class extends W{static{Si(this,"Unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr(){return this.getRuleContext(0,Mh)}atom_expr(){return this.getRuleContext(0,Bs)}get ruleIndex(){return rs.RULE_unary_casual_subexpr}accept(e){return e.visitUnary_casual_subexpr?e.visitUnary_casual_subexpr(this):e.visitChildren(this)}},Is=class extends W{static{Si(this,"In_unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr_in(){return this.getRuleContext(0,Ph)}in_atom_expr(){return this.getRuleContext(0,Ws)}get ruleIndex(){return rs.RULE_in_unary_casual_subexpr}accept(e){return e.visitIn_unary_casual_subexpr?e.visitIn_unary_casual_subexpr(this):e.visitChildren(this)}},Os=class extends W{static{Si(this,"Unary_subexprContext")}constructor(e,t){super(e,t)}unary_casual_subexpr(){return this.getRuleContext(0,Ns)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_unary_subexpr}accept(e){return e.visitUnary_subexpr?e.visitUnary_subexpr(this):e.visitChildren(this)}},Ds=class extends W{static{Si(this,"In_unary_subexprContext")}constructor(e,t){super(e,t)}in_unary_casual_subexpr(){return this.getRuleContext(0,Is)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_in_unary_subexpr}accept(e){return e.visitIn_unary_subexpr?e.visitIn_unary_subexpr(this):e.visitChildren(this)}},Ms=class extends W{static{Si(this,"List_literalContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,ln)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_list_literal}accept(e){return e.visitList_literal?e.visitList_literal(this):e.visitChildren(this)}},Ps=class extends W{static{Si(this,"Expr_dict_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_dict_list}accept(e){return e.visitExpr_dict_list?e.visitExpr_dict_list(this):e.visitChildren(this)}},Fs=class extends W{static{Si(this,"Dict_literalContext")}constructor(e,t){super(e,t)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,Ps)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_dict_literal}accept(e){return e.visitDict_literal?e.visitDict_literal(this):e.visitChildren(this)}},Us=class extends W{static{Si(this,"Expr_struct_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_struct_list}accept(e){return e.visitExpr_struct_list?e.visitExpr_struct_list(this):e.visitChildren(this)}},Hs=class extends W{static{Si(this,"Struct_literalContext")}constructor(e,t){super(e,t)}STRUCT_OPEN(){return this.getToken(rs.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(rs.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,Us)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_struct_literal}accept(e){return e.visitStruct_literal?e.visitStruct_literal(this):e.visitChildren(this)}},Bs=class extends W{static{Si(this,"Atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}exists_expr(){return this.getRuleContext(0,Gs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_atom_expr}accept(e){return e.visitAtom_expr?e.visitAtom_expr(this):e.visitChildren(this)}},Ws=class extends W{static{Si(this,"In_atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Rn)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_in_atom_expr}accept(e){return e.visitIn_atom_expr?e.visitIn_atom_expr(this):e.visitChildren(this)}},Vs=class extends W{static{Si(this,"Cast_exprContext")}constructor(e,t){super(e,t)}CAST(){return this.getToken(rs.CAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cast_expr}accept(e){return e.visitCast_expr?e.visitCast_expr(this):e.visitChildren(this)}},zs=class extends W{static{Si(this,"Bitcast_exprContext")}constructor(e,t){super(e,t)}BITCAST(){return this.getToken(rs.BITCAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_simple(){return this.getRuleContext(0,Nn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_bitcast_expr}accept(e){return e.visitBitcast_expr?e.visitBitcast_expr(this):e.visitChildren(this)}},Gs=class extends W{static{Si(this,"Exists_exprContext")}constructor(e,t){super(e,t)}EXISTS(){return this.getToken(rs.EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_exists_expr}accept(e){return e.visitExists_expr?e.visitExists_expr(this):e.visitChildren(this)}},js=class extends W{static{Si(this,"Case_exprContext")}constructor(e,t){super(e,t)}CASE(){return this.getToken(rs.CASE,0)}END(){return this.getToken(rs.END,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}when_expr(e){return void 0===e?this.getRuleContexts(yn):this.getRuleContext(e,yn)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_case_expr}accept(e){return e.visitCase_expr?e.visitCase_expr(this):e.visitChildren(this)}},Ks=class extends W{static{Si(this,"LambdaContext")}constructor(e,t){super(e,t)}smart_parenthesis(){return this.getRuleContext(0,cn)}ARROW(){return this.getToken(rs.ARROW,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,ls)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_lambda}accept(e){return e.visitLambda?e.visitLambda(this):e.visitChildren(this)}},Ys=class extends W{static{Si(this,"In_exprContext")}constructor(e,t){super(e,t)}in_unary_subexpr(){return this.getRuleContext(0,Ds)}get ruleIndex(){return rs.RULE_in_expr}accept(e){return e.visitIn_expr?e.visitIn_expr(this):e.visitChildren(this)}},qs=class extends W{static{Si(this,"Json_api_exprContext")}constructor(e,t){super(e,t)}json_value(){return this.getRuleContext(0,tn)}json_exists(){return this.getRuleContext(0,nn)}json_query(){return this.getRuleContext(0,an)}get ruleIndex(){return rs.RULE_json_api_expr}accept(e){return e.visitJson_api_expr?e.visitJson_api_expr(this):e.visitChildren(this)}},$s=class extends W{static{Si(this,"Jsonpath_specContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_jsonpath_spec}accept(e){return e.visitJsonpath_spec?e.visitJsonpath_spec(this):e.visitChildren(this)}},Qs=class extends W{static{Si(this,"Json_variable_nameContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_json_variable_name}accept(e){return e.visitJson_variable_name?e.visitJson_variable_name(this):e.visitChildren(this)}},Xs=class extends W{static{Si(this,"Json_variableContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}json_variable_name(){return this.getRuleContext(0,Qs)}get ruleIndex(){return rs.RULE_json_variable}accept(e){return e.visitJson_variable?e.visitJson_variable(this):e.visitChildren(this)}},Zs=class extends W{static{Si(this,"Json_variablesContext")}constructor(e,t){super(e,t)}json_variable(e){return void 0===e?this.getRuleContexts(Xs):this.getRuleContext(e,Xs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_json_variables}accept(e){return e.visitJson_variables?e.visitJson_variables(this):e.visitChildren(this)}},Js=class extends W{static{Si(this,"Json_common_argsContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}COMMA(){return this.getToken(rs.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,$s)}PASSING(){return this.getToken(rs.PASSING,0)}json_variables(){return this.getRuleContext(0,Zs)}get ruleIndex(){return rs.RULE_json_common_args}accept(e){return e.visitJson_common_args?e.visitJson_common_args(this):e.visitChildren(this)}},en=class extends W{static{Si(this,"Json_case_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_json_case_handler}accept(e){return e.visitJson_case_handler?e.visitJson_case_handler(this):e.visitChildren(this)}},tn=class extends W{static{Si(this,"Json_valueContext")}constructor(e,t){super(e,t)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,Nn)}json_case_handler(e){return void 0===e?this.getRuleContexts(en):this.getRuleContext(e,en)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(e){return void 0===e?this.getTokens(rs.EMPTY):this.getToken(rs.EMPTY,e)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}get ruleIndex(){return rs.RULE_json_value}accept(e){return e.visitJson_value?e.visitJson_value(this):e.visitChildren(this)}},sn=class extends W{static{Si(this,"Json_exists_handlerContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}get ruleIndex(){return rs.RULE_json_exists_handler}accept(e){return e.visitJson_exists_handler?e.visitJson_exists_handler(this):e.visitChildren(this)}},nn=class extends W{static{Si(this,"Json_existsContext")}constructor(e,t){super(e,t)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,sn)}get ruleIndex(){return rs.RULE_json_exists}accept(e){return e.visitJson_exists?e.visitJson_exists(this):e.visitChildren(this)}},rn=class extends W{static{Si(this,"Json_query_wrapperContext")}constructor(e,t){super(e,t)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}WITH(){return this.getToken(rs.WITH,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}get ruleIndex(){return rs.RULE_json_query_wrapper}accept(e){return e.visitJson_query_wrapper?e.visitJson_query_wrapper(this):e.visitChildren(this)}},on=class extends W{static{Si(this,"Json_query_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}get ruleIndex(){return rs.RULE_json_query_handler}accept(e){return e.visitJson_query_handler?e.visitJson_query_handler(this):e.visitChildren(this)}},an=class extends W{static{Si(this,"Json_queryContext")}constructor(e,t){super(e,t)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,rn)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}json_query_handler(e){return void 0===e?this.getRuleContexts(on):this.getRuleContext(e,on)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(){return this.getToken(rs.EMPTY,0)}ERROR(){return this.getToken(rs.ERROR,0)}get ruleIndex(){return rs.RULE_json_query}accept(e){return e.visitJson_query?e.visitJson_query(this):e.visitChildren(this)}},cn=class extends W{static{Si(this,"Smart_parenthesisContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_smart_parenthesis}accept(e){return e.visitSmart_parenthesis?e.visitSmart_parenthesis(this):e.visitChildren(this)}},ln=class extends W{static{Si(this,"Expr_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_list}accept(e){return e.visitExpr_list?e.visitExpr_list(this):e.visitChildren(this)}},hn=class extends W{static{Si(this,"Pure_column_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_list}accept(e){return e.visitPure_column_list?e.visitPure_column_list(this):e.visitChildren(this)}},dn=class extends W{static{Si(this,"Pure_column_or_namedContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_pure_column_or_named}accept(e){return e.visitPure_column_or_named?e.visitPure_column_or_named(this):e.visitChildren(this)}},un=class extends W{static{Si(this,"Pure_column_or_named_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}pure_column_or_named(e){return void 0===e?this.getRuleContexts(dn):this.getRuleContext(e,dn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_or_named_list}accept(e){return e.visitPure_column_or_named_list?e.visitPure_column_or_named_list(this):e.visitChildren(this)}},gn=class extends W{static{Si(this,"Column_nameContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_column_name}accept(e){return e.visitColumn_name?e.visitColumn_name(this):e.visitChildren(this)}},pn=class extends W{static{Si(this,"Without_column_nameContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(){return this.getToken(rs.DOT,0)}an_id_without(){return this.getRuleContext(0,$h)}get ruleIndex(){return rs.RULE_without_column_name}accept(e){return e.visitWithout_column_name?e.visitWithout_column_name(this):e.visitChildren(this)}},mn=class extends W{static{Si(this,"Column_listContext")}constructor(e,t){super(e,t)}column_name(e){return void 0===e?this.getRuleContexts(gn):this.getRuleContext(e,gn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_column_list}accept(e){return e.visitColumn_list?e.visitColumn_list(this):e.visitChildren(this)}},fn=class extends W{static{Si(this,"Without_column_listContext")}constructor(e,t){super(e,t)}without_column_name(e){return void 0===e?this.getRuleContexts(pn):this.getRuleContext(e,pn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_without_column_list}accept(e){return e.visitWithout_column_list?e.visitWithout_column_list(this):e.visitChildren(this)}},_n=class extends W{static{Si(this,"Named_exprContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_named_expr}accept(e){return e.visitNamed_expr?e.visitNamed_expr(this):e.visitChildren(this)}},vn=class extends W{static{Si(this,"Named_expr_listContext")}constructor(e,t){super(e,t)}named_expr(e){return void 0===e?this.getRuleContexts(_n):this.getRuleContext(e,_n)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_expr_list}accept(e){return e.visitNamed_expr_list?e.visitNamed_expr_list(this):e.visitChildren(this)}},Cn=class extends W{static{Si(this,"Invoke_exprContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,En)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}named_expr_list(){return this.getRuleContext(0,vn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_invoke_expr}accept(e){return e.visitInvoke_expr?e.visitInvoke_expr(this):e.visitChildren(this)}},En=class extends W{static{Si(this,"Invoke_expr_tailContext")}constructor(e,t){super(e,t)}null_treatment(){return this.getRuleContext(0,sh)}filter_clause(){return this.getRuleContext(0,nh)}OVER(){return this.getToken(rs.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,rh)}get ruleIndex(){return rs.RULE_invoke_expr_tail}accept(e){return e.visitInvoke_expr_tail?e.visitInvoke_expr_tail(this):e.visitChildren(this)}},bn=class extends W{static{Si(this,"Using_call_exprContext")}constructor(e,t){super(e,t)}invoke_expr(){return this.getRuleContext(0,Cn)}an_id_or_type(e){return void 0===e?this.getRuleContexts(zh):this.getRuleContext(e,zh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,jh)}bind_parameter(){return this.getRuleContext(0,Rn)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}get ruleIndex(){return rs.RULE_using_call_expr}accept(e){return e.visitUsing_call_expr?e.visitUsing_call_expr(this):e.visitChildren(this)}},Sn=class extends W{static{Si(this,"Key_exprContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,gs)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_key_expr}accept(e){return e.visitKey_expr?e.visitKey_expr(this):e.visitChildren(this)}},yn=class extends W{static{Si(this,"When_exprContext")}constructor(e,t){super(e,t)}WHEN(){return this.getToken(rs.WHEN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}THEN(){return this.getToken(rs.THEN,0)}get ruleIndex(){return rs.RULE_when_expr}accept(e){return e.visitWhen_expr?e.visitWhen_expr(this):e.visitChildren(this)}},wn=class extends W{static{Si(this,"Literal_valueContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}BLOB(){return this.getToken(rs.BLOB,0)}NULL(){return this.getToken(rs.NULL,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,vd)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}get ruleIndex(){return rs.RULE_literal_value}accept(e){return e.visitLiteral_value?e.visitLiteral_value(this):e.visitChildren(this)}},Rn=class extends W{static{Si(this,"Bind_parameterContext")}constructor(e,t){super(e,t)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,zh)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bind_parameter}accept(e){return e.visitBind_parameter?e.visitBind_parameter(this):e.visitChildren(this)}},Ln=class extends W{static{Si(this,"Opt_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Rn)}QUESTION(){return this.getToken(rs.QUESTION,0)}get ruleIndex(){return rs.RULE_opt_bind_parameter}accept(e){return e.visitOpt_bind_parameter?e.visitOpt_bind_parameter(this):e.visitChildren(this)}},Tn=class extends W{static{Si(this,"Bind_parameter_listContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_bind_parameter_list}accept(e){return e.visitBind_parameter_list?e.visitBind_parameter_list(this):e.visitChildren(this)}},xn=class extends W{static{Si(this,"Named_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_named_bind_parameter}accept(e){return e.visitNamed_bind_parameter?e.visitNamed_bind_parameter(this):e.visitChildren(this)}},kn=class extends W{static{Si(this,"Named_bind_parameter_listContext")}constructor(e,t){super(e,t)}named_bind_parameter(e){return void 0===e?this.getRuleContexts(xn):this.getRuleContext(e,xn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_bind_parameter_list}accept(e){return e.visitNamed_bind_parameter_list?e.visitNamed_bind_parameter_list(this):e.visitChildren(this)}},An=class extends W{static{Si(this,"Signed_numberContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}real(){return this.getRuleContext(0,Cd)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}get ruleIndex(){return rs.RULE_signed_number}accept(e){return e.visitSigned_number?e.visitSigned_number(this):e.visitChildren(this)}},Nn=class extends W{static{Si(this,"Type_name_simpleContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_type_name_simple}accept(e){return e.visitType_name_simple?e.visitType_name_simple(this):e.visitChildren(this)}},In=class extends W{static{Si(this,"Integer_or_bindContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,Ed)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_integer_or_bind}accept(e){return e.visitInteger_or_bind?e.visitInteger_or_bind(this):e.visitChildren(this)}},On=class extends W{static{Si(this,"Type_name_tagContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_tag}accept(e){return e.visitType_name_tag?e.visitType_name_tag(this):e.visitChildren(this)}},Dn=class extends W{static{Si(this,"Struct_argContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}get ruleIndex(){return rs.RULE_struct_arg}accept(e){return e.visitStruct_arg?e.visitStruct_arg(this):e.visitChildren(this)}},Mn=class extends W{static{Si(this,"Struct_arg_positionalContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}type_name_or_bind(){return this.getRuleContext(0,tr)}NULL(){return this.getToken(rs.NULL,0)}NOT(){return this.getToken(rs.NOT,0)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_struct_arg_positional}accept(e){return e.visitStruct_arg_positional?e.visitStruct_arg_positional(this):e.visitChildren(this)}},Pn=class extends W{static{Si(this,"Variant_argContext")}constructor(e,t){super(e,t)}type_name_or_bind(){return this.getRuleContext(0,tr)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_variant_arg}accept(e){return e.visitVariant_arg?e.visitVariant_arg(this):e.visitChildren(this)}},Fn=class extends W{static{Si(this,"Callable_argContext")}constructor(e,t){super(e,t)}variant_arg(){return this.getRuleContext(0,Pn)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(rs.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_callable_arg}accept(e){return e.visitCallable_arg?e.visitCallable_arg(this):e.visitChildren(this)}},Un=class extends W{static{Si(this,"Callable_arg_listContext")}constructor(e,t){super(e,t)}callable_arg(e){return void 0===e?this.getRuleContexts(Fn):this.getRuleContext(e,Fn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_callable_arg_list}accept(e){return e.visitCallable_arg_list?e.visitCallable_arg_list(this):e.visitChildren(this)}},Hn=class extends W{static{Si(this,"Type_name_decimalContext")}constructor(e,t){super(e,t)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}integer_or_bind(e){return void 0===e?this.getRuleContexts(In):this.getRuleContext(e,In)}COMMA(){return this.getToken(rs.COMMA,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_type_name_decimal}accept(e){return e.visitType_name_decimal?e.visitType_name_decimal(this):e.visitChildren(this)}},Bn=class extends W{static{Si(this,"Type_name_optionalContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_optional}accept(e){return e.visitType_name_optional?e.visitType_name_optional(this):e.visitChildren(this)}},Wn=class extends W{static{Si(this,"Type_name_tupleContext")}constructor(e,t){super(e,t)}TUPLE(){return this.getToken(rs.TUPLE,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_tuple}accept(e){return e.visitType_name_tuple?e.visitType_name_tuple(this):e.visitChildren(this)}},Vn=class extends W{static{Si(this,"Type_name_structContext")}constructor(e,t){super(e,t)}STRUCT(){return this.getToken(rs.STRUCT,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}struct_arg(e){return void 0===e?this.getRuleContexts(Dn):this.getRuleContext(e,Dn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_struct}accept(e){return e.visitType_name_struct?e.visitType_name_struct(this):e.visitChildren(this)}},zn=class extends W{static{Si(this,"Type_name_variantContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LESS(){return this.getToken(rs.LESS,0)}variant_arg(e){return void 0===e?this.getRuleContexts(Pn):this.getRuleContext(e,Pn)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_variant}accept(e){return e.visitType_name_variant?e.visitType_name_variant(this):e.visitChildren(this)}},Gn=class extends W{static{Si(this,"Type_name_listContext")}constructor(e,t){super(e,t)}LIST(){return this.getToken(rs.LIST,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_list}accept(e){return e.visitType_name_list?e.visitType_name_list(this):e.visitChildren(this)}},jn=class extends W{static{Si(this,"Type_name_streamContext")}constructor(e,t){super(e,t)}STREAM(){return this.getToken(rs.STREAM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_stream}accept(e){return e.visitType_name_stream?e.visitType_name_stream(this):e.visitChildren(this)}},Kn=class extends W{static{Si(this,"Type_name_flowContext")}constructor(e,t){super(e,t)}FLOW(){return this.getToken(rs.FLOW,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_flow}accept(e){return e.visitType_name_flow?e.visitType_name_flow(this):e.visitChildren(this)}},Yn=class extends W{static{Si(this,"Type_name_dictContext")}constructor(e,t){super(e,t)}DICT(){return this.getToken(rs.DICT,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(){return this.getToken(rs.COMMA,0)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_dict}accept(e){return e.visitType_name_dict?e.visitType_name_dict(this):e.visitChildren(this)}},qn=class extends W{static{Si(this,"Type_name_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_set}accept(e){return e.visitType_name_set?e.visitType_name_set(this):e.visitChildren(this)}},$n=class extends W{static{Si(this,"Type_name_enumContext")}constructor(e,t){super(e,t)}ENUM(){return this.getToken(rs.ENUM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_enum}accept(e){return e.visitType_name_enum?e.visitType_name_enum(this):e.visitChildren(this)}},Qn=class extends W{static{Si(this,"Type_name_resourceContext")}constructor(e,t){super(e,t)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_resource}accept(e){return e.visitType_name_resource?e.visitType_name_resource(this):e.visitChildren(this)}},Xn=class extends W{static{Si(this,"Type_name_taggedContext")}constructor(e,t){super(e,t)}TAGGED(){return this.getToken(rs.TAGGED,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}COMMA(){return this.getToken(rs.COMMA,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_tagged}accept(e){return e.visitType_name_tagged?e.visitType_name_tagged(this):e.visitChildren(this)}},Zn=class extends W{static{Si(this,"Type_name_callableContext")}constructor(e,t){super(e,t)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}LESS(){return this.getToken(rs.LESS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}ARROW(){return this.getToken(rs.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}callable_arg_list(e){return void 0===e?this.getRuleContexts(Un):this.getRuleContext(e,Un)}COMMA(){return this.getToken(rs.COMMA,0)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_type_name_callable}accept(e){return e.visitType_name_callable?e.visitType_name_callable(this):e.visitChildren(this)}},Jn=class extends W{static{Si(this,"Type_name_compositeContext")}constructor(e,t){super(e,t)}type_name_optional(){return this.getRuleContext(0,Bn)}type_name_tuple(){return this.getRuleContext(0,Wn)}type_name_struct(){return this.getRuleContext(0,Vn)}type_name_variant(){return this.getRuleContext(0,zn)}type_name_list(){return this.getRuleContext(0,Gn)}type_name_stream(){return this.getRuleContext(0,jn)}type_name_flow(){return this.getRuleContext(0,Kn)}type_name_dict(){return this.getRuleContext(0,Yn)}type_name_set(){return this.getRuleContext(0,qn)}type_name_enum(){return this.getRuleContext(0,$n)}type_name_resource(){return this.getRuleContext(0,Qn)}type_name_tagged(){return this.getRuleContext(0,Xn)}type_name_callable(){return this.getRuleContext(0,Zn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name_composite}accept(e){return e.visitType_name_composite?e.visitType_name_composite(this):e.visitChildren(this)}},er=class extends W{static{Si(this,"Type_nameContext")}constructor(e,t){super(e,t)}type_name_composite(){return this.getRuleContext(0,Jn)}type_name_decimal(){return this.getRuleContext(0,Hn)}type_name_simple(){return this.getRuleContext(0,Nn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name}accept(e){return e.visitType_name?e.visitType_name(this):e.visitChildren(this)}},tr=class extends W{static{Si(this,"Type_name_or_bindContext")}constructor(e,t){super(e,t)}type_name(){return this.getRuleContext(0,er)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_type_name_or_bind}accept(e){return e.visitType_name_or_bind?e.visitType_name_or_bind(this):e.visitChildren(this)}},ir=class extends W{static{Si(this,"Value_constructor_literalContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_value_constructor_literal}accept(e){return e.visitValue_constructor_literal?e.visitValue_constructor_literal(this):e.visitChildren(this)}},sr=class extends W{static{Si(this,"Value_constructorContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}ENUM(){return this.getToken(rs.ENUM,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_value_constructor}accept(e){return e.visitValue_constructor?e.visitValue_constructor(this):e.visitChildren(this)}},nr=class extends W{static{Si(this,"Declare_stmtContext")}constructor(e,t){super(e,t)}DECLARE(){return this.getToken(rs.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Rn)}AS(){return this.getToken(rs.AS,0)}type_name(){return this.getRuleContext(0,er)}EQUALS(){return this.getToken(rs.EQUALS,0)}literal_value(){return this.getRuleContext(0,wn)}get ruleIndex(){return rs.RULE_declare_stmt}accept(e){return e.visitDeclare_stmt?e.visitDeclare_stmt(this):e.visitChildren(this)}},rr=class extends W{static{Si(this,"Module_pathContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}get ruleIndex(){return rs.RULE_module_path}accept(e){return e.visitModule_path?e.visitModule_path(this):e.visitChildren(this)}},or=class extends W{static{Si(this,"Import_stmtContext")}constructor(e,t){super(e,t)}IMPORT(){return this.getToken(rs.IMPORT,0)}module_path(){return this.getRuleContext(0,rr)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,kn)}get ruleIndex(){return rs.RULE_import_stmt}accept(e){return e.visitImport_stmt?e.visitImport_stmt(this):e.visitChildren(this)}},ar=class extends W{static{Si(this,"Export_stmtContext")}constructor(e,t){super(e,t)}EXPORT(){return this.getToken(rs.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Tn)}get ruleIndex(){return rs.RULE_export_stmt}accept(e){return e.visitExport_stmt?e.visitExport_stmt(this):e.visitChildren(this)}},cr=class extends W{static{Si(this,"Call_actionContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_call_action}accept(e){return e.visitCall_action?e.visitCall_action(this):e.visitChildren(this)}},lr=class extends W{static{Si(this,"Inline_actionContext")}constructor(e,t){super(e,t)}BEGIN(){return this.getToken(rs.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}DO(){return this.getToken(rs.DO,0)}get ruleIndex(){return rs.RULE_inline_action}accept(e){return e.visitInline_action?e.visitInline_action(this):e.visitChildren(this)}},hr=class extends W{static{Si(this,"Do_stmtContext")}constructor(e,t){super(e,t)}DO(){return this.getToken(rs.DO,0)}call_action(){return this.getRuleContext(0,cr)}inline_action(){return this.getRuleContext(0,lr)}get ruleIndex(){return rs.RULE_do_stmt}accept(e){return e.visitDo_stmt?e.visitDo_stmt(this):e.visitChildren(this)}},dr=class extends W{static{Si(this,"Pragma_stmtContext")}constructor(e,t){super(e,t)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,sd)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}pragma_value(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pragma_stmt}accept(e){return e.visitPragma_stmt?e.visitPragma_stmt(this):e.visitChildren(this)}},ur=class extends W{static{Si(this,"Pragma_valueContext")}constructor(e,t){super(e,t)}signed_number(){return this.getRuleContext(0,An)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_pragma_value}accept(e){return e.visitPragma_value?e.visitPragma_value(this):e.visitChildren(this)}},gr=class extends W{static{Si(this,"Sort_specificationContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_sort_specification}accept(e){return e.visitSort_specification?e.visitSort_specification(this):e.visitChildren(this)}},pr=class extends W{static{Si(this,"Sort_specification_listContext")}constructor(e,t){super(e,t)}sort_specification(e){return void 0===e?this.getRuleContexts(gr):this.getRuleContext(e,gr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_sort_specification_list}accept(e){return e.visitSort_specification_list?e.visitSort_specification_list(this):e.visitChildren(this)}},mr=class extends W{static{Si(this,"Select_stmtContext")}constructor(e,t){super(e,t)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}get ruleIndex(){return rs.RULE_select_stmt}accept(e){return e.visitSelect_stmt?e.visitSelect_stmt(this):e.visitChildren(this)}},fr=class extends W{static{Si(this,"Select_unparenthesized_stmtContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}get ruleIndex(){return rs.RULE_select_unparenthesized_stmt}accept(e){return e.visitSelect_unparenthesized_stmt?e.visitSelect_unparenthesized_stmt(this):e.visitChildren(this)}},_r=class extends W{static{Si(this,"Select_kind_parenthesisContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_select_kind_parenthesis}accept(e){return e.visitSelect_kind_parenthesis?e.visitSelect_kind_parenthesis(this):e.visitChildren(this)}},vr=class extends W{static{Si(this,"Select_opContext")}constructor(e,t){super(e,t)}UNION(){return this.getToken(rs.UNION,0)}ALL(){return this.getToken(rs.ALL,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}get ruleIndex(){return rs.RULE_select_op}accept(e){return e.visitSelect_op?e.visitSelect_op(this):e.visitChildren(this)}},Cr=class extends W{static{Si(this,"Select_kind_partialContext")}constructor(e,t){super(e,t)}select_kind(){return this.getRuleContext(0,Er)}LIMIT(){return this.getToken(rs.LIMIT,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}OFFSET(){return this.getToken(rs.OFFSET,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_select_kind_partial}accept(e){return e.visitSelect_kind_partial?e.visitSelect_kind_partial(this):e.visitChildren(this)}},Er=class extends W{static{Si(this,"Select_kindContext")}constructor(e,t){super(e,t)}process_core(){return this.getRuleContext(0,br)}reduce_core(){return this.getRuleContext(0,wr)}select_core(){return this.getRuleContext(0,Lr)}DISCARD(){return this.getToken(rs.DISCARD,0)}INTO(){return this.getToken(rs.INTO,0)}RESULT(){return this.getToken(rs.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,dn)}get ruleIndex(){return rs.RULE_select_kind}accept(e){return e.visitSelect_kind?e.visitSelect_kind(this):e.visitChildren(this)}},br=class extends W{static{Si(this,"Process_coreContext")}constructor(e,t){super(e,t)}PROCESS(){return this.getToken(rs.PROCESS,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}external_call_settings(){return this.getRuleContext(0,yr)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_process_core}accept(e){return e.visitProcess_core?e.visitProcess_core(this):e.visitChildren(this)}},Sr=class extends W{static{Si(this,"External_call_paramContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_external_call_param}accept(e){return e.visitExternal_call_param?e.visitExternal_call_param(this):e.visitChildren(this)}},yr=class extends W{static{Si(this,"External_call_settingsContext")}constructor(e,t){super(e,t)}external_call_param(e){return void 0===e?this.getRuleContexts(Sr):this.getRuleContext(e,Sr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_external_call_settings}accept(e){return e.visitExternal_call_settings?e.visitExternal_call_settings(this):e.visitChildren(this)}},wr=class extends W{static{Si(this,"Reduce_coreContext")}constructor(e,t){super(e,t)}REDUCE(){return this.getToken(rs.REDUCE,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}ON(){return this.getToken(rs.ON,0)}column_list(){return this.getRuleContext(0,mn)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,bn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PRESORT(){return this.getToken(rs.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,pr)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}where_expr(){return this.getRuleContext(0,Ld)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_reduce_core}accept(e){return e.visitReduce_core?e.visitReduce_core(this):e.visitChildren(this)}},Rr=class extends W{static{Si(this,"Opt_set_quantifierContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}get ruleIndex(){return rs.RULE_opt_set_quantifier}accept(e){return e.visitOpt_set_quantifier?e.visitOpt_set_quantifier(this):e.visitChildren(this)}},Lr=class extends W{static{Si(this,"Select_coreContext")}constructor(e,t){super(e,t)}SELECT(){return this.getToken(rs.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}result_column(e){return void 0===e?this.getRuleContexts(po):this.getRuleContext(e,po)}FROM(e){return void 0===e?this.getTokens(rs.FROM):this.getToken(rs.FROM,e)}join_source(e){return void 0===e?this.getRuleContexts(mo):this.getRuleContext(e,mo)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,fn)}where_expr(){return this.getRuleContext(0,Ld)}group_by_clause(){return this.getRuleContext(0,no)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}window_clause(){return this.getRuleContext(0,ah)}ext_order_by_clause(){return this.getRuleContext(0,so)}get ruleIndex(){return rs.RULE_select_core}accept(e){return e.visitSelect_core?e.visitSelect_core(this):e.visitChildren(this)}},Tr=class extends W{static{Si(this,"Row_pattern_recognition_clauseContext")}constructor(e,t){super(e,t)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Or)}RPAREN(){return this.getToken(rs.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,ph)}order_by_clause(){return this.getRuleContext(0,io)}row_pattern_measures(){return this.getRuleContext(0,Ar)}row_pattern_rows_per_match(){return this.getRuleContext(0,xr)}get ruleIndex(){return rs.RULE_row_pattern_recognition_clause}accept(e){return e.visitRow_pattern_recognition_clause?e.visitRow_pattern_recognition_clause(this):e.visitChildren(this)}},xr=class extends W{static{Si(this,"Row_pattern_rows_per_matchContext")}constructor(e,t){super(e,t)}ONE(){return this.getToken(rs.ONE,0)}ROW(){return this.getToken(rs.ROW,0)}PER(){return this.getToken(rs.PER,0)}MATCH(){return this.getToken(rs.MATCH,0)}ALL(){return this.getToken(rs.ALL,0)}ROWS(){return this.getToken(rs.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,kr)}get ruleIndex(){return rs.RULE_row_pattern_rows_per_match}accept(e){return e.visitRow_pattern_rows_per_match?e.visitRow_pattern_rows_per_match(this):e.visitChildren(this)}},kr=class extends W{static{Si(this,"Row_pattern_empty_match_handlingContext")}constructor(e,t){super(e,t)}SHOW(){return this.getToken(rs.SHOW,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}OMIT(){return this.getToken(rs.OMIT,0)}WITH(){return this.getToken(rs.WITH,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_row_pattern_empty_match_handling}accept(e){return e.visitRow_pattern_empty_match_handling?e.visitRow_pattern_empty_match_handling(this):e.visitChildren(this)}},Ar=class extends W{static{Si(this,"Row_pattern_measuresContext")}constructor(e,t){super(e,t)}MEASURES(){return this.getToken(rs.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,Nr)}get ruleIndex(){return rs.RULE_row_pattern_measures}accept(e){return e.visitRow_pattern_measures?e.visitRow_pattern_measures(this):e.visitChildren(this)}},Nr=class extends W{static{Si(this,"Row_pattern_measure_listContext")}constructor(e,t){super(e,t)}row_pattern_measure_definition(e){return void 0===e?this.getRuleContexts(Ir):this.getRuleContext(e,Ir)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_measure_list}accept(e){return e.visitRow_pattern_measure_list?e.visitRow_pattern_measure_list(this):e.visitChildren(this)}},Ir=class extends W{static{Si(this,"Row_pattern_measure_definitionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_row_pattern_measure_definition}accept(e){return e.visitRow_pattern_measure_definition?e.visitRow_pattern_measure_definition(this):e.visitChildren(this)}},Or=class extends W{static{Si(this,"Row_pattern_common_syntaxContext")}constructor(e,t){super(e,t)}PATTERN(){return this.getToken(rs.PATTERN,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Qr)}AFTER(){return this.getToken(rs.AFTER,0)}MATCH(){return this.getToken(rs.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Dr)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Pr)}row_pattern_subset_clause(){return this.getRuleContext(0,Gr)}get ruleIndex(){return rs.RULE_row_pattern_common_syntax}accept(e){return e.visitRow_pattern_common_syntax?e.visitRow_pattern_common_syntax(this):e.visitChildren(this)}},Dr=class extends W{static{Si(this,"Row_pattern_skip_toContext")}constructor(e,t){super(e,t)}TSKIP(){return this.getToken(rs.TSKIP,0)}TO(){return this.getToken(rs.TO,0)}NEXT(){return this.getToken(rs.NEXT,0)}ROW(){return this.getToken(rs.ROW,0)}PAST(){return this.getToken(rs.PAST,0)}LAST(){return this.getToken(rs.LAST,0)}FIRST(){return this.getToken(rs.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Mr)}get ruleIndex(){return rs.RULE_row_pattern_skip_to}accept(e){return e.visitRow_pattern_skip_to?e.visitRow_pattern_skip_to(this):e.visitChildren(this)}},Mr=class extends W{static{Si(this,"Row_pattern_skip_to_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_skip_to_variable_name}accept(e){return e.visitRow_pattern_skip_to_variable_name?e.visitRow_pattern_skip_to_variable_name(this):e.visitChildren(this)}},Pr=class extends W{static{Si(this,"Row_pattern_initial_or_seekContext")}constructor(e,t){super(e,t)}INITIAL(){return this.getToken(rs.INITIAL,0)}SEEK(){return this.getToken(rs.SEEK,0)}get ruleIndex(){return rs.RULE_row_pattern_initial_or_seek}accept(e){return e.visitRow_pattern_initial_or_seek?e.visitRow_pattern_initial_or_seek(this):e.visitChildren(this)}},Fr=class extends W{static{Si(this,"Row_patternContext")}constructor(e,t){super(e,t)}row_pattern_term(e){return void 0===e?this.getRuleContexts(Ur):this.getRuleContext(e,Ur)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}get ruleIndex(){return rs.RULE_row_pattern}accept(e){return e.visitRow_pattern?e.visitRow_pattern(this):e.visitChildren(this)}},Ur=class extends W{static{Si(this,"Row_pattern_termContext")}constructor(e,t){super(e,t)}row_pattern_factor(e){return void 0===e?this.getRuleContexts(Hr):this.getRuleContext(e,Hr)}get ruleIndex(){return rs.RULE_row_pattern_term}accept(e){return e.visitRow_pattern_term?e.visitRow_pattern_term(this):e.visitChildren(this)}},Hr=class extends W{static{Si(this,"Row_pattern_factorContext")}constructor(e,t){super(e,t)}row_pattern_primary(){return this.getRuleContext(0,Wr)}row_pattern_quantifier(){return this.getRuleContext(0,Br)}get ruleIndex(){return rs.RULE_row_pattern_factor}accept(e){return e.visitRow_pattern_factor?e.visitRow_pattern_factor(this):e.visitChildren(this)}},Br=class extends W{static{Si(this,"Row_pattern_quantifierContext")}constructor(e,t){super(e,t)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}PLUS(){return this.getToken(rs.PLUS,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}COMMA(){return this.getToken(rs.COMMA,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}integer(e){return void 0===e?this.getRuleContexts(Ed):this.getRuleContext(e,Ed)}get ruleIndex(){return rs.RULE_row_pattern_quantifier}accept(e){return e.visitRow_pattern_quantifier?e.visitRow_pattern_quantifier(this):e.visitChildren(this)}},Wr=class extends W{static{Si(this,"Row_pattern_primaryContext")}constructor(e,t){super(e,t)}row_pattern_primary_variable_name(){return this.getRuleContext(0,Vr)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}CARET(){return this.getToken(rs.CARET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,zr)}get ruleIndex(){return rs.RULE_row_pattern_primary}accept(e){return e.visitRow_pattern_primary?e.visitRow_pattern_primary(this):e.visitChildren(this)}},Vr=class extends W{static{Si(this,"Row_pattern_primary_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_primary_variable_name}accept(e){return e.visitRow_pattern_primary_variable_name?e.visitRow_pattern_primary_variable_name(this):e.visitChildren(this)}},zr=class extends W{static{Si(this,"Row_pattern_permuteContext")}constructor(e,t){super(e,t)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(e){return void 0===e?this.getRuleContexts(Fr):this.getRuleContext(e,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_permute}accept(e){return e.visitRow_pattern_permute?e.visitRow_pattern_permute(this):e.visitChildren(this)}},Gr=class extends W{static{Si(this,"Row_pattern_subset_clauseContext")}constructor(e,t){super(e,t)}SUBSET(){return this.getToken(rs.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,jr)}get ruleIndex(){return rs.RULE_row_pattern_subset_clause}accept(e){return e.visitRow_pattern_subset_clause?e.visitRow_pattern_subset_clause(this):e.visitChildren(this)}},jr=class extends W{static{Si(this,"Row_pattern_subset_listContext")}constructor(e,t){super(e,t)}row_pattern_subset_item(e){return void 0===e?this.getRuleContexts(Kr):this.getRuleContext(e,Kr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_list}accept(e){return e.visitRow_pattern_subset_list?e.visitRow_pattern_subset_list(this):e.visitChildren(this)}},Kr=class extends W{static{Si(this,"Row_pattern_subset_itemContext")}constructor(e,t){super(e,t)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Yr)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_row_pattern_subset_item}accept(e){return e.visitRow_pattern_subset_item?e.visitRow_pattern_subset_item(this):e.visitChildren(this)}},Yr=class extends W{static{Si(this,"Row_pattern_subset_item_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_item_variable_name}accept(e){return e.visitRow_pattern_subset_item_variable_name?e.visitRow_pattern_subset_item_variable_name(this):e.visitChildren(this)}},qr=class extends W{static{Si(this,"Row_pattern_subset_rhsContext")}constructor(e,t){super(e,t)}row_pattern_subset_rhs_variable_name(e){return void 0===e?this.getRuleContexts($r):this.getRuleContext(e,$r)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs}accept(e){return e.visitRow_pattern_subset_rhs?e.visitRow_pattern_subset_rhs(this):e.visitChildren(this)}},$r=class extends W{static{Si(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs_variable_name}accept(e){return e.visitRow_pattern_subset_rhs_variable_name?e.visitRow_pattern_subset_rhs_variable_name(this):e.visitChildren(this)}},Qr=class extends W{static{Si(this,"Row_pattern_definition_listContext")}constructor(e,t){super(e,t)}row_pattern_definition(e){return void 0===e?this.getRuleContexts(Xr):this.getRuleContext(e,Xr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_definition_list}accept(e){return e.visitRow_pattern_definition_list?e.visitRow_pattern_definition_list(this):e.visitChildren(this)}},Xr=class extends W{static{Si(this,"Row_pattern_definitionContext")}constructor(e,t){super(e,t)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Zr)}AS(){return this.getToken(rs.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,Jr)}get ruleIndex(){return rs.RULE_row_pattern_definition}accept(e){return e.visitRow_pattern_definition?e.visitRow_pattern_definition(this):e.visitChildren(this)}},Zr=class extends W{static{Si(this,"Row_pattern_definition_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_definition_variable_name}accept(e){return e.visitRow_pattern_definition_variable_name?e.visitRow_pattern_definition_variable_name(this):e.visitChildren(this)}},Jr=class extends W{static{Si(this,"Row_pattern_definition_search_conditionContext")}constructor(e,t){super(e,t)}search_condition(){return this.getRuleContext(0,eo)}get ruleIndex(){return rs.RULE_row_pattern_definition_search_condition}accept(e){return e.visitRow_pattern_definition_search_condition?e.visitRow_pattern_definition_search_condition(this):e.visitChildren(this)}},eo=class extends W{static{Si(this,"Search_conditionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_search_condition}accept(e){return e.visitSearch_condition?e.visitSearch_condition(this):e.visitChildren(this)}},to=class extends W{static{Si(this,"Row_pattern_variable_nameContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}get ruleIndex(){return rs.RULE_row_pattern_variable_name}accept(e){return e.visitRow_pattern_variable_name?e.visitRow_pattern_variable_name(this):e.visitChildren(this)}},io=class extends W{static{Si(this,"Order_by_clauseContext")}constructor(e,t){super(e,t)}ORDER(){return this.getToken(rs.ORDER,0)}BY(){return this.getToken(rs.BY,0)}sort_specification_list(){return this.getRuleContext(0,pr)}get ruleIndex(){return rs.RULE_order_by_clause}accept(e){return e.visitOrder_by_clause?e.visitOrder_by_clause(this):e.visitChildren(this)}},so=class extends W{static{Si(this,"Ext_order_by_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}ASSUME(){return this.getToken(rs.ASSUME,0)}get ruleIndex(){return rs.RULE_ext_order_by_clause}accept(e){return e.visitExt_order_by_clause?e.visitExt_order_by_clause(this):e.visitChildren(this)}},no=class extends W{static{Si(this,"Group_by_clauseContext")}constructor(e,t){super(e,t)}GROUP(){return this.getToken(rs.GROUP,0)}BY(){return this.getToken(rs.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Rr)}grouping_element_list(){return this.getRuleContext(0,ro)}COMPACT(){return this.getToken(rs.COMPACT,0)}WITH(){return this.getToken(rs.WITH,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_group_by_clause}accept(e){return e.visitGroup_by_clause?e.visitGroup_by_clause(this):e.visitChildren(this)}},ro=class extends W{static{Si(this,"Grouping_element_listContext")}constructor(e,t){super(e,t)}grouping_element(e){return void 0===e?this.getRuleContexts(oo):this.getRuleContext(e,oo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_grouping_element_list}accept(e){return e.visitGrouping_element_list?e.visitGrouping_element_list(this):e.visitChildren(this)}},oo=class extends W{static{Si(this,"Grouping_elementContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(){return this.getRuleContext(0,ao)}rollup_list(){return this.getRuleContext(0,lo)}cube_list(){return this.getRuleContext(0,ho)}grouping_sets_specification(){return this.getRuleContext(0,uo)}hopping_window_specification(){return this.getRuleContext(0,go)}get ruleIndex(){return rs.RULE_grouping_element}accept(e){return e.visitGrouping_element?e.visitGrouping_element(this):e.visitChildren(this)}},ao=class extends W{static{Si(this,"Ordinary_grouping_setContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}get ruleIndex(){return rs.RULE_ordinary_grouping_set}accept(e){return e.visitOrdinary_grouping_set?e.visitOrdinary_grouping_set(this):e.visitChildren(this)}},co=class extends W{static{Si(this,"Ordinary_grouping_set_listContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(e){return void 0===e?this.getRuleContexts(ao):this.getRuleContext(e,ao)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ordinary_grouping_set_list}accept(e){return e.visitOrdinary_grouping_set_list?e.visitOrdinary_grouping_set_list(this):e.visitChildren(this)}},lo=class extends W{static{Si(this,"Rollup_listContext")}constructor(e,t){super(e,t)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_rollup_list}accept(e){return e.visitRollup_list?e.visitRollup_list(this):e.visitChildren(this)}},ho=class extends W{static{Si(this,"Cube_listContext")}constructor(e,t){super(e,t)}CUBE(){return this.getToken(rs.CUBE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,co)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cube_list}accept(e){return e.visitCube_list?e.visitCube_list(this):e.visitChildren(this)}},uo=class extends W{static{Si(this,"Grouping_sets_specificationContext")}constructor(e,t){super(e,t)}GROUPING(){return this.getToken(rs.GROUPING,0)}SETS(){return this.getToken(rs.SETS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,ro)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_grouping_sets_specification}accept(e){return e.visitGrouping_sets_specification?e.visitGrouping_sets_specification(this):e.visitChildren(this)}},go=class extends W{static{Si(this,"Hopping_window_specificationContext")}constructor(e,t){super(e,t)}HOP(){return this.getToken(rs.HOP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_hopping_window_specification}accept(e){return e.visitHopping_window_specification?e.visitHopping_window_specification(this):e.visitChildren(this)}},po=class extends W{static{Si(this,"Result_columnContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,ed)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,zh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}get ruleIndex(){return rs.RULE_result_column}accept(e){return e.visitResult_column?e.visitResult_column(this):e.visitChildren(this)}},mo=class extends W{static{Si(this,"Join_sourceContext")}constructor(e,t){super(e,t)}flatten_source(e){return void 0===e?this.getRuleContexts(vo):this.getRuleContext(e,vo)}ANY(e){return void 0===e?this.getTokens(rs.ANY):this.getToken(rs.ANY,e)}join_op(e){return void 0===e?this.getRuleContexts(Ro):this.getRuleContext(e,Ro)}join_constraint(e){return void 0===e?this.getRuleContexts(Lo):this.getRuleContext(e,Lo)}get ruleIndex(){return rs.RULE_join_source}accept(e){return e.visitJoin_source?e.visitJoin_source(this):e.visitChildren(this)}},fo=class extends W{static{Si(this,"Named_columnContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_named_column}accept(e){return e.visitNamed_column?e.visitNamed_column(this):e.visitChildren(this)}},_o=class extends W{static{Si(this,"Flatten_by_argContext")}constructor(e,t){super(e,t)}named_column(){return this.getRuleContext(0,fo)}LPAREN(){return this.getToken(rs.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_flatten_by_arg}accept(e){return e.visitFlatten_by_arg?e.visitFlatten_by_arg(this):e.visitChildren(this)}},vo=class extends W{static{Si(this,"Flatten_sourceContext")}constructor(e,t){super(e,t)}named_single_source(){return this.getRuleContext(0,Co)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}BY(){return this.getToken(rs.BY,0)}flatten_by_arg(){return this.getRuleContext(0,_o)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LIST(){return this.getToken(rs.LIST,0)}DICT(){return this.getToken(rs.DICT,0)}get ruleIndex(){return rs.RULE_flatten_source}accept(e){return e.visitFlatten_source?e.visitFlatten_source(this):e.visitChildren(this)}},Co=class extends W{static{Si(this,"Named_single_sourceContext")}constructor(e,t){super(e,t)}single_source(){return this.getRuleContext(0,Eo)}row_pattern_recognition_clause(){return this.getRuleContext(0,Tr)}sample_clause(){return this.getRuleContext(0,bo)}tablesample_clause(){return this.getRuleContext(0,So)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Vh)}an_id_as_compat(){return this.getRuleContext(0,Zh)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_named_single_source}accept(e){return e.visitNamed_single_source?e.visitNamed_single_source(this):e.visitChildren(this)}},Eo=class extends W{static{Si(this,"Single_sourceContext")}constructor(e,t){super(e,t)}table_ref(){return this.getRuleContext(0,ml)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_single_source}accept(e){return e.visitSingle_source?e.visitSingle_source(this):e.visitChildren(this)}},bo=class extends W{static{Si(this,"Sample_clauseContext")}constructor(e,t){super(e,t)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_sample_clause}accept(e){return e.visitSample_clause?e.visitSample_clause(this):e.visitChildren(this)}},So=class extends W{static{Si(this,"Tablesample_clauseContext")}constructor(e,t){super(e,t)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,yo)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,wo)}get ruleIndex(){return rs.RULE_tablesample_clause}accept(e){return e.visitTablesample_clause?e.visitTablesample_clause(this):e.visitChildren(this)}},yo=class extends W{static{Si(this,"Sampling_modeContext")}constructor(e,t){super(e,t)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}get ruleIndex(){return rs.RULE_sampling_mode}accept(e){return e.visitSampling_mode?e.visitSampling_mode(this):e.visitChildren(this)}},wo=class extends W{static{Si(this,"Repeatable_clauseContext")}constructor(e,t){super(e,t)}REPEATABLE(){return this.getToken(rs.REPEATABLE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_repeatable_clause}accept(e){return e.visitRepeatable_clause?e.visitRepeatable_clause(this):e.visitChildren(this)}},Ro=class extends W{static{Si(this,"Join_opContext")}constructor(e,t){super(e,t)}COMMA(){return this.getToken(rs.COMMA,0)}JOIN(){return this.getToken(rs.JOIN,0)}INNER(){return this.getToken(rs.INNER,0)}CROSS(){return this.getToken(rs.CROSS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}LEFT(){return this.getToken(rs.LEFT,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}FULL(){return this.getToken(rs.FULL,0)}OUTER(){return this.getToken(rs.OUTER,0)}ONLY(){return this.getToken(rs.ONLY,0)}SEMI(){return this.getToken(rs.SEMI,0)}get ruleIndex(){return rs.RULE_join_op}accept(e){return e.visitJoin_op?e.visitJoin_op(this):e.visitChildren(this)}},Lo=class extends W{static{Si(this,"Join_constraintContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}expr(){return this.getRuleContext(0,gs)}USING(){return this.getToken(rs.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,un)}get ruleIndex(){return rs.RULE_join_constraint}accept(e){return e.visitJoin_constraint?e.visitJoin_constraint(this):e.visitChildren(this)}},To=class extends W{static{Si(this,"Returning_columns_listContext")}constructor(e,t){super(e,t)}RETURNING(){return this.getToken(rs.RETURNING,0)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_returning_columns_list}accept(e){return e.visitReturning_columns_list?e.visitReturning_columns_list(this):e.visitChildren(this)}},xo=class extends W{static{Si(this,"Into_table_stmtContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_into_table_stmt}accept(e){return e.visitInto_table_stmt?e.visitInto_table_stmt(this):e.visitChildren(this)}},ko=class extends W{static{Si(this,"Into_table_stmt_yqContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,yl)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}get ruleIndex(){return rs.RULE_into_table_stmt_yq}accept(e){return e.visitInto_table_stmt_yq?e.visitInto_table_stmt_yq(this):e.visitChildren(this)}},Ao=class extends W{static{Si(this,"Into_values_sourceContext")}constructor(e,t){super(e,t)}values_source(){return this.getRuleContext(0,Io)}pure_column_list(){return this.getRuleContext(0,hn)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}VALUES(){return this.getToken(rs.VALUES,0)}get ruleIndex(){return rs.RULE_into_values_source}accept(e){return e.visitInto_values_source?e.visitInto_values_source(this):e.visitChildren(this)}},No=class extends W{static{Si(this,"Values_stmtContext")}constructor(e,t){super(e,t)}VALUES(){return this.getToken(rs.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,Oo)}get ruleIndex(){return rs.RULE_values_stmt}accept(e){return e.visitValues_stmt?e.visitValues_stmt(this):e.visitChildren(this)}},Io=class extends W{static{Si(this,"Values_sourceContext")}constructor(e,t){super(e,t)}values_stmt(){return this.getRuleContext(0,No)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_values_source}accept(e){return e.visitValues_source?e.visitValues_source(this):e.visitChildren(this)}},Oo=class extends W{static{Si(this,"Values_source_row_listContext")}constructor(e,t){super(e,t)}values_source_row(e){return void 0===e?this.getRuleContexts(Do):this.getRuleContext(e,Do)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_values_source_row_list}accept(e){return e.visitValues_source_row_list?e.visitValues_source_row_list(this):e.visitChildren(this)}},Do=class extends W{static{Si(this,"Values_source_rowContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr_list(){return this.getRuleContext(0,ln)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_values_source_row}accept(e){return e.visitValues_source_row?e.visitValues_source_row(this):e.visitChildren(this)}},Mo=class extends W{static{Si(this,"Simple_values_sourceContext")}constructor(e,t){super(e,t)}expr_list(){return this.getRuleContext(0,ln)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_simple_values_source}accept(e){return e.visitSimple_values_source?e.visitSimple_values_source(this):e.visitChildren(this)}},Po=class extends W{static{Si(this,"Create_external_data_source_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_create_external_data_source_stmt}accept(e){return e.visitCreate_external_data_source_stmt?e.visitCreate_external_data_source_stmt(this):e.visitChildren(this)}},Fo=class extends W{static{Si(this,"Alter_external_data_source_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}alter_external_data_source_action(e){return void 0===e?this.getRuleContexts(Uo):this.getRuleContext(e,Uo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_data_source_stmt}accept(e){return e.visitAlter_external_data_source_stmt?e.visitAlter_external_data_source_stmt(this):e.visitChildren(this)}},Uo=class extends W{static{Si(this,"Alter_external_data_source_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_data_source_action}accept(e){return e.visitAlter_external_data_source_action?e.visitAlter_external_data_source_action(this):e.visitChildren(this)}},Ho=class extends W{static{Si(this,"Drop_external_data_source_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_external_data_source_stmt}accept(e){return e.visitDrop_external_data_source_stmt?e.visitDrop_external_data_source_stmt(this):e.visitChildren(this)}},Bo=class extends W{static{Si(this,"Create_view_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}AS(){return this.getToken(rs.AS,0)}select_stmt(){return this.getRuleContext(0,mr)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_view_stmt}accept(e){return e.visitCreate_view_stmt?e.visitCreate_view_stmt(this):e.visitChildren(this)}},Wo=class extends W{static{Si(this,"Drop_view_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_view_stmt}accept(e){return e.visitDrop_view_stmt?e.visitDrop_view_stmt(this):e.visitChildren(this)}},Vo=class extends W{static{Si(this,"Upsert_object_stmtContext")}constructor(e,t){super(e,t)}UPSERT(){return this.getToken(rs.UPSERT,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_upsert_object_stmt}accept(e){return e.visitUpsert_object_stmt?e.visitUpsert_object_stmt(this):e.visitChildren(this)}},zo=class extends W{static{Si(this,"Create_object_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_object_stmt}accept(e){return e.visitCreate_object_stmt?e.visitCreate_object_stmt(this):e.visitChildren(this)}},Go=class extends W{static{Si(this,"Create_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_create_object_features}accept(e){return e.visitCreate_object_features?e.visitCreate_object_features(this):e.visitChildren(this)}},jo=class extends W{static{Si(this,"Alter_object_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Ko)}get ruleIndex(){return rs.RULE_alter_object_stmt}accept(e){return e.visitAlter_object_stmt?e.visitAlter_object_stmt(this):e.visitChildren(this)}},Ko=class extends W{static{Si(this,"Alter_object_featuresContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_alter_object_features}accept(e){return e.visitAlter_object_features?e.visitAlter_object_features(this):e.visitChildren(this)}},Yo=class extends W{static{Si(this,"Drop_object_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,El)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,qo)}get ruleIndex(){return rs.RULE_drop_object_stmt}accept(e){return e.visitDrop_object_stmt?e.visitDrop_object_stmt(this):e.visitChildren(this)}},qo=class extends W{static{Si(this,"Drop_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_drop_object_features}accept(e){return e.visitDrop_object_features?e.visitDrop_object_features(this):e.visitChildren(this)}},$o=class extends W{static{Si(this,"Object_feature_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}bind_parameter(){return this.getRuleContext(0,Rn)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_object_feature_value}accept(e){return e.visitObject_feature_value?e.visitObject_feature_value(this):e.visitChildren(this)}},Qo=class extends W{static{Si(this,"Object_feature_kvContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}EQUALS(){return this.getToken(rs.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,$o)}get ruleIndex(){return rs.RULE_object_feature_kv}accept(e){return e.visitObject_feature_kv?e.visitObject_feature_kv(this):e.visitChildren(this)}},Xo=class extends W{static{Si(this,"Object_feature_flagContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_feature_flag}accept(e){return e.visitObject_feature_flag?e.visitObject_feature_flag(this):e.visitChildren(this)}},Zo=class extends W{static{Si(this,"Object_featureContext")}constructor(e,t){super(e,t)}object_feature_kv(){return this.getRuleContext(0,Qo)}object_feature_flag(){return this.getRuleContext(0,Xo)}get ruleIndex(){return rs.RULE_object_feature}accept(e){return e.visitObject_feature?e.visitObject_feature(this):e.visitChildren(this)}},Jo=class extends W{static{Si(this,"Object_featuresContext")}constructor(e,t){super(e,t)}object_feature(e){return void 0===e?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_object_features}accept(e){return e.visitObject_features?e.visitObject_features(this):e.visitChildren(this)}},ea=class extends W{static{Si(this,"Object_type_refContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}get ruleIndex(){return rs.RULE_object_type_ref}accept(e){return e.visitObject_type_ref?e.visitObject_type_ref(this):e.visitChildren(this)}},ta=class extends W{static{Si(this,"Create_table_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_table_entry(e){return void 0===e?this.getRuleContexts(ia):this.getRuleContext(e,ia)}RPAREN(){return this.getToken(rs.RPAREN,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}table_inherits(){return this.getRuleContext(0,va)}table_partition_by(){return this.getRuleContext(0,Ca)}with_table_settings(){return this.getRuleContext(0,Ea)}table_tablestore(){return this.getRuleContext(0,ba)}table_as_source(){return this.getRuleContext(0,ya)}get ruleIndex(){return rs.RULE_create_table_stmt}accept(e){return e.visitCreate_table_stmt?e.visitCreate_table_stmt(this):e.visitChildren(this)}},ia=class extends W{static{Si(this,"Create_table_entryContext")}constructor(e,t){super(e,t)}column_schema(){return this.getRuleContext(0,Ya)}table_constraint(){return this.getRuleContext(0,Xa)}table_index(){return this.getRuleContext(0,Za)}family_entry(){return this.getRuleContext(0,mc)}changefeed(){return this.getRuleContext(0,oc)}an_id_schema(){return this.getRuleContext(0,Gh)}get ruleIndex(){return rs.RULE_create_table_entry}accept(e){return e.visitCreate_table_entry?e.visitCreate_table_entry(this):e.visitChildren(this)}},sa=class extends W{static{Si(this,"Create_backup_collection_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}backup_collection(){return this.getRuleContext(0,ga)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,pa)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,oa)}get ruleIndex(){return rs.RULE_create_backup_collection_stmt}accept(e){return e.visitCreate_backup_collection_stmt?e.visitCreate_backup_collection_stmt(this):e.visitChildren(this)}},na=class extends W{static{Si(this,"Alter_backup_collection_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}backup_collection(){return this.getRuleContext(0,ga)}alter_backup_collection_actions(){return this.getRuleContext(0,la)}alter_backup_collection_entries(){return this.getRuleContext(0,da)}get ruleIndex(){return rs.RULE_alter_backup_collection_stmt}accept(e){return e.visitAlter_backup_collection_stmt?e.visitAlter_backup_collection_stmt(this):e.visitChildren(this)}},ra=class extends W{static{Si(this,"Drop_backup_collection_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}backup_collection(){return this.getRuleContext(0,ga)}get ruleIndex(){return rs.RULE_drop_backup_collection_stmt}accept(e){return e.visitDrop_backup_collection_stmt?e.visitDrop_backup_collection_stmt(this):e.visitChildren(this)}},oa=class extends W{static{Si(this,"Create_backup_collection_entriesContext")}constructor(e,t){super(e,t)}DATABASE(){return this.getToken(rs.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,aa)}get ruleIndex(){return rs.RULE_create_backup_collection_entries}accept(e){return e.visitCreate_backup_collection_entries?e.visitCreate_backup_collection_entries(this):e.visitChildren(this)}},aa=class extends W{static{Si(this,"Create_backup_collection_entries_manyContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_list(){return this.getRuleContext(0,ca)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_create_backup_collection_entries_many}accept(e){return e.visitCreate_backup_collection_entries_many?e.visitCreate_backup_collection_entries_many(this):e.visitChildren(this)}},ca=class extends W{static{Si(this,"Table_listContext")}constructor(e,t){super(e,t)}TABLE(e){return void 0===e?this.getTokens(rs.TABLE):this.getToken(rs.TABLE,e)}an_id_table(e){return void 0===e?this.getRuleContexts(qh):this.getRuleContext(e,qh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_list}accept(e){return e.visitTable_list?e.visitTable_list(this):e.visitChildren(this)}},la=class extends W{static{Si(this,"Alter_backup_collection_actionsContext")}constructor(e,t){super(e,t)}alter_backup_collection_action(e){return void 0===e?this.getRuleContexts(ha):this.getRuleContext(e,ha)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_actions}accept(e){return e.visitAlter_backup_collection_actions?e.visitAlter_backup_collection_actions(this):e.visitChildren(this)}},ha=class extends W{static{Si(this,"Alter_backup_collection_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_backup_collection_action}accept(e){return e.visitAlter_backup_collection_action?e.visitAlter_backup_collection_action(this):e.visitChildren(this)}},da=class extends W{static{Si(this,"Alter_backup_collection_entriesContext")}constructor(e,t){super(e,t)}alter_backup_collection_entry(e){return void 0===e?this.getRuleContexts(ua):this.getRuleContext(e,ua)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_entries}accept(e){return e.visitAlter_backup_collection_entries?e.visitAlter_backup_collection_entries(this):e.visitChildren(this)}},ua=class extends W{static{Si(this,"Alter_backup_collection_entryContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DROP(){return this.getToken(rs.DROP,0)}TABLE(){return this.getToken(rs.TABLE,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_backup_collection_entry}accept(e){return e.visitAlter_backup_collection_entry?e.visitAlter_backup_collection_entry(this):e.visitChildren(this)}},ga=class extends W{static{Si(this,"Backup_collectionContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_backup_collection}accept(e){return e.visitBackup_collection?e.visitBackup_collection(this):e.visitChildren(this)}},pa=class extends W{static{Si(this,"Backup_collection_settingsContext")}constructor(e,t){super(e,t)}backup_collection_settings_entry(e){return void 0===e?this.getRuleContexts(ma):this.getRuleContext(e,ma)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_backup_collection_settings}accept(e){return e.visitBackup_collection_settings?e.visitBackup_collection_settings(this):e.visitChildren(this)}},ma=class extends W{static{Si(this,"Backup_collection_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_backup_collection_settings_entry}accept(e){return e.visitBackup_collection_settings_entry?e.visitBackup_collection_settings_entry(this):e.visitChildren(this)}},fa=class extends W{static{Si(this,"Backup_stmtContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}object_ref(){return this.getRuleContext(0,El)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}get ruleIndex(){return rs.RULE_backup_stmt}accept(e){return e.visitBackup_stmt?e.visitBackup_stmt(this):e.visitChildren(this)}},_a=class extends W{static{Si(this,"Restore_stmtContext")}constructor(e,t){super(e,t)}RESTORE(){return this.getToken(rs.RESTORE,0)}object_ref(){return this.getRuleContext(0,El)}AT(){return this.getToken(rs.AT,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_restore_stmt}accept(e){return e.visitRestore_stmt?e.visitRestore_stmt(this):e.visitChildren(this)}},va=class extends W{static{Si(this,"Table_inheritsContext")}constructor(e,t){super(e,t)}INHERITS(){return this.getToken(rs.INHERITS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_table_ref_core(e){return void 0===e?this.getRuleContexts(bl):this.getRuleContext(e,bl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_inherits}accept(e){return e.visitTable_inherits?e.visitTable_inherits(this):e.visitChildren(this)}},Ca=class extends W{static{Si(this,"Table_partition_byContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}HASH(){return this.getToken(rs.HASH,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_table_partition_by}accept(e){return e.visitTable_partition_by?e.visitTable_partition_by(this):e.visitChildren(this)}},Ea=class extends W{static{Si(this,"With_table_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_settings_entry(e){return void 0===e?this.getRuleContexts(Sa):this.getRuleContext(e,Sa)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_table_settings}accept(e){return e.visitWith_table_settings?e.visitWith_table_settings(this):e.visitChildren(this)}},ba=class extends W{static{Si(this,"Table_tablestoreContext")}constructor(e,t){super(e,t)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,bl)}get ruleIndex(){return rs.RULE_table_tablestore}accept(e){return e.visitTable_tablestore?e.visitTable_tablestore(this):e.visitChildren(this)}},Sa=class extends W{static{Si(this,"Table_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_table_settings_entry}accept(e){return e.visitTable_settings_entry?e.visitTable_settings_entry(this):e.visitChildren(this)}},ya=class extends W{static{Si(this,"Table_as_sourceContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}values_source(){return this.getRuleContext(0,Io)}get ruleIndex(){return rs.RULE_table_as_source}accept(e){return e.visitTable_as_source?e.visitTable_as_source(this):e.visitChildren(this)}},wa=class extends W{static{Si(this,"Alter_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_table_action(e){return void 0===e?this.getRuleContexts(Ra):this.getRuleContext(e,Ra)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_stmt}accept(e){return e.visitAlter_table_stmt?e.visitAlter_table_stmt(this):e.visitChildren(this)}},Ra=class extends W{static{Si(this,"Alter_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_alter_column(){return this.getRuleContext(0,Ia)}alter_table_add_column_family(){return this.getRuleContext(0,Da)}alter_table_alter_column_family(){return this.getRuleContext(0,Ma)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}alter_table_add_index(){return this.getRuleContext(0,Ha)}alter_table_drop_index(){return this.getRuleContext(0,Ba)}alter_table_rename_to(){return this.getRuleContext(0,Wa)}alter_table_add_changefeed(){return this.getRuleContext(0,za)}alter_table_alter_changefeed(){return this.getRuleContext(0,Ga)}alter_table_drop_changefeed(){return this.getRuleContext(0,ja)}alter_table_rename_index_to(){return this.getRuleContext(0,Va)}alter_table_alter_index(){return this.getRuleContext(0,Ka)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,Oa)}get ruleIndex(){return rs.RULE_alter_table_action}accept(e){return e.visitAlter_table_action?e.visitAlter_table_action(this):e.visitChildren(this)}},La=class extends W{static{Si(this,"Alter_external_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}alter_external_table_action(e){return void 0===e?this.getRuleContexts(Ta):this.getRuleContext(e,Ta)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_table_stmt}accept(e){return e.visitAlter_external_table_stmt?e.visitAlter_external_table_stmt(this):e.visitChildren(this)}},Ta=class extends W{static{Si(this,"Alter_external_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_table_action}accept(e){return e.visitAlter_external_table_action?e.visitAlter_external_table_action(this):e.visitChildren(this)}},xa=class extends W{static{Si(this,"Alter_table_store_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,El)}alter_table_store_action(e){return void 0===e?this.getRuleContexts(ka):this.getRuleContext(e,ka)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_store_stmt}accept(e){return e.visitAlter_table_store_stmt?e.visitAlter_table_store_stmt(this):e.visitChildren(this)}},ka=class extends W{static{Si(this,"Alter_table_store_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}get ruleIndex(){return rs.RULE_alter_table_store_action}accept(e){return e.visitAlter_table_store_action?e.visitAlter_table_store_action(this):e.visitChildren(this)}},Aa=class extends W{static{Si(this,"Alter_table_add_columnContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}column_schema(){return this.getRuleContext(0,Ya)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_add_column}accept(e){return e.visitAlter_table_add_column?e.visitAlter_table_add_column(this):e.visitChildren(this)}},Na=class extends W{static{Si(this,"Alter_table_drop_columnContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}an_id(){return this.getRuleContext(0,Vh)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_drop_column}accept(e){return e.visitAlter_table_drop_column?e.visitAlter_table_drop_column(this):e.visitChildren(this)}},Ia=class extends W{static{Si(this,"Alter_table_alter_columnContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}SET(){return this.getToken(rs.SET,0)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_alter_table_alter_column}accept(e){return e.visitAlter_table_alter_column?e.visitAlter_table_alter_column(this):e.visitChildren(this)}},Oa=class extends W{static{Si(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Vh)}DROP(){return this.getToken(rs.DROP,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}get ruleIndex(){return rs.RULE_alter_table_alter_column_drop_not_null}accept(e){return e.visitAlter_table_alter_column_drop_not_null?e.visitAlter_table_alter_column_drop_not_null(this):e.visitChildren(this)}},Da=class extends W{static{Si(this,"Alter_table_add_column_familyContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}family_entry(){return this.getRuleContext(0,mc)}get ruleIndex(){return rs.RULE_alter_table_add_column_family}accept(e){return e.visitAlter_table_add_column_family?e.visitAlter_table_add_column_family(this):e.visitChildren(this)}},Ma=class extends W{static{Si(this,"Alter_table_alter_column_familyContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}SET(){return this.getToken(rs.SET,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_alter_table_alter_column_family}accept(e){return e.visitAlter_table_alter_column_family?e.visitAlter_table_alter_column_family(this):e.visitChildren(this)}},Pa=class extends W{static{Si(this,"Alter_table_set_table_setting_uncompatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}an_id(){return this.getRuleContext(0,Vh)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_uncompat}accept(e){return e.visitAlter_table_set_table_setting_uncompat?e.visitAlter_table_set_table_setting_uncompat(this):e.visitChildren(this)}},Fa=class extends W{static{Si(this,"Alter_table_set_table_setting_compatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}alter_table_setting_entry(e){return void 0===e?this.getRuleContexts(dc):this.getRuleContext(e,dc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_compat}accept(e){return e.visitAlter_table_set_table_setting_compat?e.visitAlter_table_set_table_setting_compat(this):e.visitChildren(this)}},Ua=class extends W{static{Si(this,"Alter_table_reset_table_settingContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_reset_table_setting}accept(e){return e.visitAlter_table_reset_table_setting?e.visitAlter_table_reset_table_setting(this):e.visitChildren(this)}},Ha=class extends W{static{Si(this,"Alter_table_add_indexContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}table_index(){return this.getRuleContext(0,Za)}get ruleIndex(){return rs.RULE_alter_table_add_index}accept(e){return e.visitAlter_table_add_index?e.visitAlter_table_add_index(this):e.visitChildren(this)}},Ba=class extends W{static{Si(this,"Alter_table_drop_indexContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_index}accept(e){return e.visitAlter_table_drop_index?e.visitAlter_table_drop_index(this):e.visitChildren(this)}},Wa=class extends W{static{Si(this,"Alter_table_rename_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}an_id_table(){return this.getRuleContext(0,qh)}get ruleIndex(){return rs.RULE_alter_table_rename_to}accept(e){return e.visitAlter_table_rename_to?e.visitAlter_table_rename_to(this):e.visitChildren(this)}},Va=class extends W{static{Si(this,"Alter_table_rename_index_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}TO(){return this.getToken(rs.TO,0)}get ruleIndex(){return rs.RULE_alter_table_rename_index_to}accept(e){return e.visitAlter_table_rename_index_to?e.visitAlter_table_rename_index_to(this):e.visitChildren(this)}},za=class extends W{static{Si(this,"Alter_table_add_changefeedContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}changefeed(){return this.getRuleContext(0,oc)}get ruleIndex(){return rs.RULE_alter_table_add_changefeed}accept(e){return e.visitAlter_table_add_changefeed?e.visitAlter_table_add_changefeed(this):e.visitChildren(this)}},Ga=class extends W{static{Si(this,"Alter_table_alter_changefeedContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}changefeed_alter_settings(){return this.getRuleContext(0,hc)}get ruleIndex(){return rs.RULE_alter_table_alter_changefeed}accept(e){return e.visitAlter_table_alter_changefeed?e.visitAlter_table_alter_changefeed(this):e.visitChildren(this)}},ja=class extends W{static{Si(this,"Alter_table_drop_changefeedContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_alter_table_drop_changefeed}accept(e){return e.visitAlter_table_drop_changefeed?e.visitAlter_table_drop_changefeed(this):e.visitChildren(this)}},Ka=class extends W{static{Si(this,"Alter_table_alter_indexContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}alter_table_alter_index_action(){return this.getRuleContext(0,bc)}get ruleIndex(){return rs.RULE_alter_table_alter_index}accept(e){return e.visitAlter_table_alter_index?e.visitAlter_table_alter_index(this):e.visitChildren(this)}},Ya=class extends W{static{Si(this,"Column_schemaContext")}constructor(e,t){super(e,t)}an_id_schema(){return this.getRuleContext(0,Gh)}type_name_or_bind(){return this.getRuleContext(0,tr)}opt_column_constraints(){return this.getRuleContext(0,$a)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_column_schema}accept(e){return e.visitColumn_schema?e.visitColumn_schema(this):e.visitChildren(this)}},qa=class extends W{static{Si(this,"Family_relationContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_family_relation}accept(e){return e.visitFamily_relation?e.visitFamily_relation(this):e.visitChildren(this)}},$a=class extends W{static{Si(this,"Opt_column_constraintsContext")}constructor(e,t){super(e,t)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_opt_column_constraints}accept(e){return e.visitOpt_column_constraints?e.visitOpt_column_constraints(this):e.visitChildren(this)}},Qa=class extends W{static{Si(this,"Column_order_by_specificationContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_column_order_by_specification}accept(e){return e.visitColumn_order_by_specification?e.visitColumn_order_by_specification(this):e.visitChildren(this)}},Xa=class extends W{static{Si(this,"Table_constraintContext")}constructor(e,t){super(e,t)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}ORDER(){return this.getToken(rs.ORDER,0)}column_order_by_specification(e){return void 0===e?this.getRuleContexts(Qa):this.getRuleContext(e,Qa)}get ruleIndex(){return rs.RULE_table_constraint}accept(e){return e.visitTable_constraint?e.visitTable_constraint(this):e.visitChildren(this)}},Za=class extends W{static{Si(this,"Table_indexContext")}constructor(e,t){super(e,t)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Vh)}table_index_type(){return this.getRuleContext(0,Ja)}ON(){return this.getToken(rs.ON,0)}LPAREN(e){return void 0===e?this.getTokens(rs.LPAREN):this.getToken(rs.LPAREN,e)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}RPAREN(e){return void 0===e?this.getTokens(rs.RPAREN):this.getToken(rs.RPAREN,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}COVER(){return this.getToken(rs.COVER,0)}with_index_settings(){return this.getRuleContext(0,sc)}get ruleIndex(){return rs.RULE_table_index}accept(e){return e.visitTable_index?e.visitTable_index(this):e.visitChildren(this)}},Ja=class extends W{static{Si(this,"Table_index_typeContext")}constructor(e,t){super(e,t)}global_index(){return this.getRuleContext(0,ec)}local_index(){return this.getRuleContext(0,tc)}USING(){return this.getToken(rs.USING,0)}index_subtype(){return this.getRuleContext(0,ic)}get ruleIndex(){return rs.RULE_table_index_type}accept(e){return e.visitTable_index_type?e.visitTable_index_type(this):e.visitChildren(this)}},ec=class extends W{static{Si(this,"Global_indexContext")}constructor(e,t){super(e,t)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}SYNC(){return this.getToken(rs.SYNC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}get ruleIndex(){return rs.RULE_global_index}accept(e){return e.visitGlobal_index?e.visitGlobal_index(this):e.visitChildren(this)}},tc=class extends W{static{Si(this,"Local_indexContext")}constructor(e,t){super(e,t)}LOCAL(){return this.getToken(rs.LOCAL,0)}get ruleIndex(){return rs.RULE_local_index}accept(e){return e.visitLocal_index?e.visitLocal_index(this):e.visitChildren(this)}},ic=class extends W{static{Si(this,"Index_subtypeContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}get ruleIndex(){return rs.RULE_index_subtype}accept(e){return e.visitIndex_subtype?e.visitIndex_subtype(this):e.visitChildren(this)}},sc=class extends W{static{Si(this,"With_index_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}index_setting_entry(e){return void 0===e?this.getRuleContexts(nc):this.getRuleContext(e,nc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_index_settings}accept(e){return e.visitWith_index_settings?e.visitWith_index_settings(this):e.visitChildren(this)}},nc=class extends W{static{Si(this,"Index_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_index_setting_entry}accept(e){return e.visitIndex_setting_entry?e.visitIndex_setting_entry(this):e.visitChildren(this)}},rc=class extends W{static{Si(this,"Index_setting_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_index_setting_value}accept(e){return e.visitIndex_setting_value?e.visitIndex_setting_value(this):e.visitChildren(this)}},oc=class extends W{static{Si(this,"ChangefeedContext")}constructor(e,t){super(e,t)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Vh)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed}accept(e){return e.visitChangefeed?e.visitChangefeed(this):e.visitChildren(this)}},ac=class extends W{static{Si(this,"Changefeed_settingsContext")}constructor(e,t){super(e,t)}changefeed_settings_entry(e){return void 0===e?this.getRuleContexts(cc):this.getRuleContext(e,cc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_changefeed_settings}accept(e){return e.visitChangefeed_settings?e.visitChangefeed_settings(this):e.visitChildren(this)}},cc=class extends W{static{Si(this,"Changefeed_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,lc)}get ruleIndex(){return rs.RULE_changefeed_settings_entry}accept(e){return e.visitChangefeed_settings_entry?e.visitChangefeed_settings_entry(this):e.visitChildren(this)}},lc=class extends W{static{Si(this,"Changefeed_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_changefeed_setting_value}accept(e){return e.visitChangefeed_setting_value?e.visitChangefeed_setting_value(this):e.visitChildren(this)}},hc=class extends W{static{Si(this,"Changefeed_alter_settingsContext")}constructor(e,t){super(e,t)}DISABLE(){return this.getToken(rs.DISABLE,0)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,ac)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed_alter_settings}accept(e){return e.visitChangefeed_alter_settings?e.visitChangefeed_alter_settings(this):e.visitChildren(this)}},dc=class extends W{static{Si(this,"Alter_table_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,uc)}get ruleIndex(){return rs.RULE_alter_table_setting_entry}accept(e){return e.visitAlter_table_setting_entry?e.visitAlter_table_setting_entry(this):e.visitChildren(this)}},uc=class extends W{static{Si(this,"Table_setting_valueContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}split_boundaries(){return this.getRuleContext(0,Cc)}ttl_tier_list(){return this.getRuleContext(0,gc)}ON(){return this.getToken(rs.ON,0)}an_id(){return this.getRuleContext(0,Vh)}AS(){return this.getToken(rs.AS,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,vd)}get ruleIndex(){return rs.RULE_table_setting_value}accept(e){return e.visitTable_setting_value?e.visitTable_setting_value(this):e.visitChildren(this)}},gc=class extends W{static{Si(this,"Ttl_tier_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}ttl_tier_action(e){return void 0===e?this.getRuleContexts(pc):this.getRuleContext(e,pc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ttl_tier_list}accept(e){return e.visitTtl_tier_list?e.visitTtl_tier_list(this):e.visitChildren(this)}},pc=class extends W{static{Si(this,"Ttl_tier_actionContext")}constructor(e,t){super(e,t)}TO(){return this.getToken(rs.TO,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}an_id(){return this.getRuleContext(0,Vh)}DELETE(){return this.getToken(rs.DELETE,0)}get ruleIndex(){return rs.RULE_ttl_tier_action}accept(e){return e.visitTtl_tier_action?e.visitTtl_tier_action(this):e.visitChildren(this)}},mc=class extends W{static{Si(this,"Family_entryContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Vh)}family_settings(){return this.getRuleContext(0,fc)}get ruleIndex(){return rs.RULE_family_entry}accept(e){return e.visitFamily_entry?e.visitFamily_entry(this):e.visitChildren(this)}},fc=class extends W{static{Si(this,"Family_settingsContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}family_settings_entry(e){return void 0===e?this.getRuleContexts(_c):this.getRuleContext(e,_c)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_family_settings}accept(e){return e.visitFamily_settings?e.visitFamily_settings(this):e.visitChildren(this)}},_c=class extends W{static{Si(this,"Family_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,vc)}get ruleIndex(){return rs.RULE_family_settings_entry}accept(e){return e.visitFamily_settings_entry?e.visitFamily_settings_entry(this):e.visitChildren(this)}},vc=class extends W{static{Si(this,"Family_setting_valueContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,Ed)}get ruleIndex(){return rs.RULE_family_setting_value}accept(e){return e.visitFamily_setting_value?e.visitFamily_setting_value(this):e.visitChildren(this)}},Cc=class extends W{static{Si(this,"Split_boundariesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value_list(e){return void 0===e?this.getRuleContexts(Ec):this.getRuleContext(e,Ec)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_split_boundaries}accept(e){return e.visitSplit_boundaries?e.visitSplit_boundaries(this):e.visitChildren(this)}},Ec=class extends W{static{Si(this,"Literal_value_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value(e){return void 0===e?this.getRuleContexts(wn):this.getRuleContext(e,wn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_literal_value_list}accept(e){return e.visitLiteral_value_list?e.visitLiteral_value_list(this):e.visitChildren(this)}},bc=class extends W{static{Si(this,"Alter_table_alter_index_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_table_alter_index_action}accept(e){return e.visitAlter_table_alter_index_action?e.visitAlter_table_alter_index_action(this):e.visitChildren(this)}},Sc=class extends W{static{Si(this,"Drop_table_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_table_stmt}accept(e){return e.visitDrop_table_stmt?e.visitDrop_table_stmt(this):e.visitChildren(this)}},yc=class extends W{static{Si(this,"Create_user_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}USER(){return this.getToken(rs.USER,0)}role_name(){return this.getRuleContext(0,xc)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_create_user_stmt}accept(e){return e.visitCreate_user_stmt?e.visitCreate_user_stmt(this):e.visitChildren(this)}},wc=class extends W{static{Si(this,"Alter_user_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}USER(){return this.getToken(rs.USER,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}user_option(e){return void 0===e?this.getRuleContexts(kc):this.getRuleContext(e,kc)}get ruleIndex(){return rs.RULE_alter_user_stmt}accept(e){return e.visitAlter_user_stmt?e.visitAlter_user_stmt(this):e.visitChildren(this)}},Rc=class extends W{static{Si(this,"Create_group_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}WITH(){return this.getToken(rs.WITH,0)}USER(){return this.getToken(rs.USER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_group_stmt}accept(e){return e.visitCreate_group_stmt?e.visitCreate_group_stmt(this):e.visitChildren(this)}},Lc=class extends W{static{Si(this,"Alter_group_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}ADD(){return this.getToken(rs.ADD,0)}DROP(){return this.getToken(rs.DROP,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_group_stmt}accept(e){return e.visitAlter_group_stmt?e.visitAlter_group_stmt(this):e.visitChildren(this)}},Tc=class extends W{static{Si(this,"Drop_role_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}USER(){return this.getToken(rs.USER,0)}GROUP(){return this.getToken(rs.GROUP,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_drop_role_stmt}accept(e){return e.visitDrop_role_stmt?e.visitDrop_role_stmt(this):e.visitChildren(this)}},xc=class extends W{static{Si(this,"Role_nameContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_role_name}accept(e){return e.visitRole_name?e.visitRole_name(this):e.visitChildren(this)}},kc=class extends W{static{Si(this,"User_optionContext")}constructor(e,t){super(e,t)}authentication_option(){return this.getRuleContext(0,Ac)}login_option(){return this.getRuleContext(0,Oc)}get ruleIndex(){return rs.RULE_user_option}accept(e){return e.visitUser_option?e.visitUser_option(this):e.visitChildren(this)}},Ac=class extends W{static{Si(this,"Authentication_optionContext")}constructor(e,t){super(e,t)}password_option(){return this.getRuleContext(0,Nc)}hash_option(){return this.getRuleContext(0,Ic)}get ruleIndex(){return rs.RULE_authentication_option}accept(e){return e.visitAuthentication_option?e.visitAuthentication_option(this):e.visitChildren(this)}},Nc=class extends W{static{Si(this,"Password_optionContext")}constructor(e,t){super(e,t)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}expr(){return this.getRuleContext(0,gs)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}get ruleIndex(){return rs.RULE_password_option}accept(e){return e.visitPassword_option?e.visitPassword_option(this):e.visitChildren(this)}},Ic=class extends W{static{Si(this,"Hash_optionContext")}constructor(e,t){super(e,t)}HASH(){return this.getToken(rs.HASH,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_hash_option}accept(e){return e.visitHash_option?e.visitHash_option(this):e.visitChildren(this)}},Oc=class extends W{static{Si(this,"Login_optionContext")}constructor(e,t){super(e,t)}LOGIN(){return this.getToken(rs.LOGIN,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}get ruleIndex(){return rs.RULE_login_option}accept(e){return e.visitLogin_option?e.visitLogin_option(this):e.visitChildren(this)}},Dc=class extends W{static{Si(this,"Grant_permissions_stmtContext")}constructor(e,t){super(e,t)}GRANT(e){return void 0===e?this.getTokens(rs.GRANT):this.getToken(rs.GRANT,e)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}TO(){return this.getToken(rs.TO,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITH(){return this.getToken(rs.WITH,0)}OPTION(){return this.getToken(rs.OPTION,0)}get ruleIndex(){return rs.RULE_grant_permissions_stmt}accept(e){return e.visitGrant_permissions_stmt?e.visitGrant_permissions_stmt(this):e.visitChildren(this)}},Mc=class extends W{static{Si(this,"Revoke_permissions_stmtContext")}constructor(e,t){super(e,t)}REVOKE(){return this.getToken(rs.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,Uc)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Gh):this.getRuleContext(e,Gh)}FROM(){return this.getToken(rs.FROM,0)}role_name(e){return void 0===e?this.getRuleContexts(xc):this.getRuleContext(e,xc)}GRANT(){return this.getToken(rs.GRANT,0)}OPTION(){return this.getToken(rs.OPTION,0)}FOR(){return this.getToken(rs.FOR,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_revoke_permissions_stmt}accept(e){return e.visitRevoke_permissions_stmt?e.visitRevoke_permissions_stmt(this):e.visitChildren(this)}},Pc=class extends W{static{Si(this,"Permission_idContext")}constructor(e,t){super(e,t)}CONNECT(){return this.getToken(rs.CONNECT,0)}LIST(){return this.getToken(rs.LIST,0)}INSERT(){return this.getToken(rs.INSERT,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}DROP(){return this.getToken(rs.DROP,0)}GRANT(){return this.getToken(rs.GRANT,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}TABLES(){return this.getToken(rs.TABLES,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}ROW(){return this.getToken(rs.ROW,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}ERASE(){return this.getToken(rs.ERASE,0)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}ALTER(){return this.getToken(rs.ALTER,0)}SELECT(){return this.getToken(rs.SELECT,0)}USE(){return this.getToken(rs.USE,0)}FULL(){return this.getToken(rs.FULL,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}CREATE(){return this.getToken(rs.CREATE,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}TABLE(){return this.getToken(rs.TABLE,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}get ruleIndex(){return rs.RULE_permission_id}accept(e){return e.visitPermission_id?e.visitPermission_id(this):e.visitChildren(this)}},Fc=class extends W{static{Si(this,"Permission_nameContext")}constructor(e,t){super(e,t)}permission_id(){return this.getRuleContext(0,Pc)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_permission_name}accept(e){return e.visitPermission_name?e.visitPermission_name(this):e.visitChildren(this)}},Uc=class extends W{static{Si(this,"Permission_name_targetContext")}constructor(e,t){super(e,t)}permission_name(e){return void 0===e?this.getRuleContexts(Fc):this.getRuleContext(e,Fc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}ALL(){return this.getToken(rs.ALL,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}get ruleIndex(){return rs.RULE_permission_name_target}accept(e){return e.visitPermission_name_target?e.visitPermission_name_target(this):e.visitChildren(this)}},Hc=class extends W{static{Si(this,"Create_resource_pool_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_stmt}accept(e){return e.visitCreate_resource_pool_stmt?e.visitCreate_resource_pool_stmt(this):e.visitChildren(this)}},Bc=class extends W{static{Si(this,"Alter_resource_pool_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_action(e){return void 0===e?this.getRuleContexts(Wc):this.getRuleContext(e,Wc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_stmt}accept(e){return e.visitAlter_resource_pool_stmt?e.visitAlter_resource_pool_stmt(this):e.visitChildren(this)}},Wc=class extends W{static{Si(this,"Alter_resource_pool_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_action}accept(e){return e.visitAlter_resource_pool_action?e.visitAlter_resource_pool_action(this):e.visitChildren(this)}},Vc=class extends W{static{Si(this,"Drop_resource_pool_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_stmt}accept(e){return e.visitDrop_resource_pool_stmt?e.visitDrop_resource_pool_stmt(this):e.visitChildren(this)}},zc=class extends W{static{Si(this,"Create_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}with_table_settings(){return this.getRuleContext(0,Ea)}get ruleIndex(){return rs.RULE_create_resource_pool_classifier_stmt}accept(e){return e.visitCreate_resource_pool_classifier_stmt?e.visitCreate_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Gc=class extends W{static{Si(this,"Alter_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}alter_resource_pool_classifier_action(e){return void 0===e?this.getRuleContexts(jc):this.getRuleContext(e,jc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_stmt}accept(e){return e.visitAlter_resource_pool_classifier_stmt?e.visitAlter_resource_pool_classifier_stmt(this):e.visitChildren(this)}},jc=class extends W{static{Si(this,"Alter_resource_pool_classifier_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_action}accept(e){return e.visitAlter_resource_pool_classifier_action?e.visitAlter_resource_pool_classifier_action(this):e.visitChildren(this)}},Kc=class extends W{static{Si(this,"Drop_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_drop_resource_pool_classifier_stmt}accept(e){return e.visitDrop_resource_pool_classifier_stmt?e.visitDrop_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Yc=class extends W{static{Si(this,"Create_replication_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}FOR(){return this.getToken(rs.FOR,0)}replication_target(e){return void 0===e?this.getRuleContexts(qc):this.getRuleContext(e,qc)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_replication_stmt}accept(e){return e.visitCreate_replication_stmt?e.visitCreate_replication_stmt(this):e.visitChildren(this)}},qc=class extends W{static{Si(this,"Replication_targetContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}replication_name(){return this.getRuleContext(0,Rd)}get ruleIndex(){return rs.RULE_replication_target}accept(e){return e.visitReplication_target?e.visitReplication_target(this):e.visitChildren(this)}},$c=class extends W{static{Si(this,"Replication_settingsContext")}constructor(e,t){super(e,t)}replication_settings_entry(e){return void 0===e?this.getRuleContexts(Qc):this.getRuleContext(e,Qc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_replication_settings}accept(e){return e.visitReplication_settings?e.visitReplication_settings(this):e.visitChildren(this)}},Qc=class extends W{static{Si(this,"Replication_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_replication_settings_entry}accept(e){return e.visitReplication_settings_entry?e.visitReplication_settings_entry(this):e.visitChildren(this)}},Xc=class extends W{static{Si(this,"Alter_replication_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}alter_replication_action(e){return void 0===e?this.getRuleContexts(Zc):this.getRuleContext(e,Zc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_replication_stmt}accept(e){return e.visitAlter_replication_stmt?e.visitAlter_replication_stmt(this):e.visitChildren(this)}},Zc=class extends W{static{Si(this,"Alter_replication_actionContext")}constructor(e,t){super(e,t)}alter_replication_set_setting(){return this.getRuleContext(0,Jc)}get ruleIndex(){return rs.RULE_alter_replication_action}accept(e){return e.visitAlter_replication_action?e.visitAlter_replication_action(this):e.visitChildren(this)}},Jc=class extends W{static{Si(this,"Alter_replication_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,$c)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_replication_set_setting}accept(e){return e.visitAlter_replication_set_setting?e.visitAlter_replication_set_setting(this):e.visitChildren(this)}},el=class extends W{static{Si(this,"Drop_replication_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_replication_stmt}accept(e){return e.visitDrop_replication_stmt?e.visitDrop_replication_stmt(this):e.visitChildren(this)}},tl=class extends W{static{Si(this,"Lambda_or_parameterContext")}constructor(e,t){super(e,t)}lambda(){return this.getRuleContext(0,Ks)}bind_parameter(){return this.getRuleContext(0,Rn)}get ruleIndex(){return rs.RULE_lambda_or_parameter}accept(e){return e.visitLambda_or_parameter?e.visitLambda_or_parameter(this):e.visitChildren(this)}},il=class extends W{static{Si(this,"Create_transfer_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(e){return void 0===e?this.getRuleContexts(El):this.getRuleContext(e,El)}FROM(){return this.getToken(rs.FROM,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_create_transfer_stmt}accept(e){return e.visitCreate_transfer_stmt?e.visitCreate_transfer_stmt(this):e.visitChildren(this)}},sl=class extends W{static{Si(this,"Transfer_settingsContext")}constructor(e,t){super(e,t)}transfer_settings_entry(e){return void 0===e?this.getRuleContexts(nl):this.getRuleContext(e,nl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_transfer_settings}accept(e){return e.visitTransfer_settings?e.visitTransfer_settings(this):e.visitChildren(this)}},nl=class extends W{static{Si(this,"Transfer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_transfer_settings_entry}accept(e){return e.visitTransfer_settings_entry?e.visitTransfer_settings_entry(this):e.visitChildren(this)}},rl=class extends W{static{Si(this,"Alter_transfer_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}alter_transfer_action(e){return void 0===e?this.getRuleContexts(ol):this.getRuleContext(e,ol)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_transfer_stmt}accept(e){return e.visitAlter_transfer_stmt?e.visitAlter_transfer_stmt(this):e.visitChildren(this)}},ol=class extends W{static{Si(this,"Alter_transfer_actionContext")}constructor(e,t){super(e,t)}alter_transfer_set_setting(){return this.getRuleContext(0,al)}alter_transfer_set_using(){return this.getRuleContext(0,cl)}get ruleIndex(){return rs.RULE_alter_transfer_action}accept(e){return e.visitAlter_transfer_action?e.visitAlter_transfer_action(this):e.visitChildren(this)}},al=class extends W{static{Si(this,"Alter_transfer_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}transfer_settings(){return this.getRuleContext(0,sl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_transfer_set_setting}accept(e){return e.visitAlter_transfer_set_setting?e.visitAlter_transfer_set_setting(this):e.visitChildren(this)}},cl=class extends W{static{Si(this,"Alter_transfer_set_usingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}USING(){return this.getToken(rs.USING,0)}lambda_or_parameter(){return this.getRuleContext(0,tl)}get ruleIndex(){return rs.RULE_alter_transfer_set_using}accept(e){return e.visitAlter_transfer_set_using?e.visitAlter_transfer_set_using(this):e.visitChildren(this)}},ll=class extends W{static{Si(this,"Drop_transfer_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}object_ref(){return this.getRuleContext(0,El)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_transfer_stmt}accept(e){return e.visitDrop_transfer_stmt?e.visitDrop_transfer_stmt(this):e.visitChildren(this)}},hl=class extends W{static{Si(this,"Action_or_subquery_argsContext")}constructor(e,t){super(e,t)}opt_bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_action_or_subquery_args}accept(e){return e.visitAction_or_subquery_args?e.visitAction_or_subquery_args(this):e.visitChildren(this)}},dl=class extends W{static{Si(this,"Define_action_or_subquery_stmtContext")}constructor(e,t){super(e,t)}DEFINE(e){return void 0===e?this.getTokens(rs.DEFINE):this.getToken(rs.DEFINE,e)}bind_parameter(){return this.getRuleContext(0,Rn)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}AS(){return this.getToken(rs.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,ul)}END(){return this.getToken(rs.END,0)}ACTION(){return this.getToken(rs.ACTION,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,hl)}get ruleIndex(){return rs.RULE_define_action_or_subquery_stmt}accept(e){return e.visitDefine_action_or_subquery_stmt?e.visitDefine_action_or_subquery_stmt(this):e.visitChildren(this)}},ul=class extends W{static{Si(this,"Define_action_or_subquery_bodyContext")}constructor(e,t){super(e,t)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}sql_stmt_core(e){return void 0===e?this.getRuleContexts(us):this.getRuleContext(e,us)}get ruleIndex(){return rs.RULE_define_action_or_subquery_body}accept(e){return e.visitDefine_action_or_subquery_body?e.visitDefine_action_or_subquery_body(this):e.visitChildren(this)}},gl=class extends W{static{Si(this,"If_stmtContext")}constructor(e,t){super(e,t)}IF(){return this.getToken(rs.IF,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_if_stmt}accept(e){return e.visitIf_stmt?e.visitIf_stmt(this):e.visitChildren(this)}},pl=class extends W{static{Si(this,"For_stmtContext")}constructor(e,t){super(e,t)}FOR(){return this.getToken(rs.FOR,0)}bind_parameter(){return this.getRuleContext(0,Rn)}IN(){return this.getToken(rs.IN,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_for_stmt}accept(e){return e.visitFor_stmt?e.visitFor_stmt(this):e.visitChildren(this)}},ml=class extends W{static{Si(this,"Table_refContext")}constructor(e,t){super(e,t)}table_key(){return this.getRuleContext(0,fl)}an_id_expr(){return this.getRuleContext(0,jh)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Rn)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}COMMAT(){return this.getToken(rs.COMMAT,0)}table_hints(){return this.getRuleContext(0,vl)}table_arg(e){return void 0===e?this.getRuleContexts(_l):this.getRuleContext(e,_l)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}expr_list(){return this.getRuleContext(0,ln)}get ruleIndex(){return rs.RULE_table_ref}accept(e){return e.visitTable_ref?e.visitTable_ref(this):e.visitChildren(this)}},fl=class extends W{static{Si(this,"Table_keyContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_key}accept(e){return e.visitTable_key?e.visitTable_key(this):e.visitChildren(this)}},_l=class extends W{static{Si(this,"Table_argContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}COMMAT(){return this.getToken(rs.COMMAT,0)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Jh)}get ruleIndex(){return rs.RULE_table_arg}accept(e){return e.visitTable_arg?e.visitTable_arg(this):e.visitChildren(this)}},vl=class extends W{static{Si(this,"Table_hintsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}table_hint(e){return void 0===e?this.getRuleContexts(Cl):this.getRuleContext(e,Cl)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_hints}accept(e){return e.visitTable_hints?e.visitTable_hints(this):e.visitChildren(this)}},Cl=class extends W{static{Si(this,"Table_hintContext")}constructor(e,t){super(e,t)}an_id_hint(){return this.getRuleContext(0,Qh)}EQUALS(){return this.getToken(rs.EQUALS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}type_name_or_bind(){return this.getRuleContext(0,tr)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}struct_arg_positional(e){return void 0===e?this.getRuleContexts(Mn):this.getRuleContext(e,Mn)}get ruleIndex(){return rs.RULE_table_hint}accept(e){return e.visitTable_hint?e.visitTable_hint(this):e.visitChildren(this)}},El=class extends W{static{Si(this,"Object_refContext")}constructor(e,t){super(e,t)}id_or_at(){return this.getRuleContext(0,nd)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_object_ref}accept(e){return e.visitObject_ref?e.visitObject_ref(this):e.visitChildren(this)}},bl=class extends W{static{Si(this,"Simple_table_ref_coreContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,El)}bind_parameter(){return this.getRuleContext(0,Rn)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_simple_table_ref_core}accept(e){return e.visitSimple_table_ref_core?e.visitSimple_table_ref_core(this):e.visitChildren(this)}},Sl=class extends W{static{Si(this,"Simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref_core(){return this.getRuleContext(0,bl)}table_hints(){return this.getRuleContext(0,vl)}get ruleIndex(){return rs.RULE_simple_table_ref}accept(e){return e.visitSimple_table_ref?e.visitSimple_table_ref(this):e.visitChildren(this)}},yl=class extends W{static{Si(this,"Into_simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}ERASE(){return this.getToken(rs.ERASE,0)}BY(){return this.getToken(rs.BY,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_into_simple_table_ref}accept(e){return e.visitInto_simple_table_ref?e.visitInto_simple_table_ref(this):e.visitChildren(this)}},wl=class extends W{static{Si(this,"Delete_stmtContext")}constructor(e,t){super(e,t)}DELETE(){return this.getToken(rs.DELETE,0)}FROM(){return this.getToken(rs.FROM,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}BATCH(){return this.getToken(rs.BATCH,0)}where_expr(){return this.getRuleContext(0,Ld)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_delete_stmt}accept(e){return e.visitDelete_stmt?e.visitDelete_stmt(this):e.visitChildren(this)}},Rl=class extends W{static{Si(this,"Update_stmtContext")}constructor(e,t){super(e,t)}UPDATE(){return this.getToken(rs.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,Sl)}SET(){return this.getToken(rs.SET,0)}set_clause_choice(){return this.getRuleContext(0,Ll)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}BATCH(){return this.getToken(rs.BATCH,0)}returning_columns_list(){return this.getRuleContext(0,To)}where_expr(){return this.getRuleContext(0,Ld)}get ruleIndex(){return rs.RULE_update_stmt}accept(e){return e.visitUpdate_stmt?e.visitUpdate_stmt(this):e.visitChildren(this)}},Ll=class extends W{static{Si(this,"Set_clause_choiceContext")}constructor(e,t){super(e,t)}set_clause_list(){return this.getRuleContext(0,Tl)}multiple_column_assignment(){return this.getRuleContext(0,Al)}get ruleIndex(){return rs.RULE_set_clause_choice}accept(e){return e.visitSet_clause_choice?e.visitSet_clause_choice(this):e.visitChildren(this)}},Tl=class extends W{static{Si(this,"Set_clause_listContext")}constructor(e,t){super(e,t)}set_clause(e){return void 0===e?this.getRuleContexts(xl):this.getRuleContext(e,xl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_clause_list}accept(e){return e.visitSet_clause_list?e.visitSet_clause_list(this):e.visitChildren(this)}},xl=class extends W{static{Si(this,"Set_clauseContext")}constructor(e,t){super(e,t)}set_target(){return this.getRuleContext(0,kl)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_set_clause}accept(e){return e.visitSet_clause?e.visitSet_clause(this):e.visitChildren(this)}},kl=class extends W{static{Si(this,"Set_targetContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}get ruleIndex(){return rs.RULE_set_target}accept(e){return e.visitSet_target?e.visitSet_target(this):e.visitChildren(this)}},Al=class extends W{static{Si(this,"Multiple_column_assignmentContext")}constructor(e,t){super(e,t)}set_target_list(){return this.getRuleContext(0,Nl)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_multiple_column_assignment}accept(e){return e.visitMultiple_column_assignment?e.visitMultiple_column_assignment(this):e.visitChildren(this)}},Nl=class extends W{static{Si(this,"Set_target_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}set_target(e){return void 0===e?this.getRuleContexts(kl):this.getRuleContext(e,kl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_target_list}accept(e){return e.visitSet_target_list?e.visitSet_target_list(this):e.visitChildren(this)}},Il=class extends W{static{Si(this,"Create_topic_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,Ol)}with_topic_settings(){return this.getRuleContext(0,Ml)}get ruleIndex(){return rs.RULE_create_topic_stmt}accept(e){return e.visitCreate_topic_stmt?e.visitCreate_topic_stmt(this):e.visitChildren(this)}},Ol=class extends W{static{Si(this,"Create_topic_entriesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_topic_entry(e){return void 0===e?this.getRuleContexts(Dl):this.getRuleContext(e,Dl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_topic_entries}accept(e){return e.visitCreate_topic_entries?e.visitCreate_topic_entries(this):e.visitChildren(this)}},Dl=class extends W{static{Si(this,"Create_topic_entryContext")}constructor(e,t){super(e,t)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_create_topic_entry}accept(e){return e.visitCreate_topic_entry?e.visitCreate_topic_entry(this):e.visitChildren(this)}},Ml=class extends W{static{Si(this,"With_topic_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_with_topic_settings}accept(e){return e.visitWith_topic_settings?e.visitWith_topic_settings(this):e.visitChildren(this)}},Pl=class extends W{static{Si(this,"Alter_topic_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}alter_topic_action(e){return void 0===e?this.getRuleContexts(Fl):this.getRuleContext(e,Fl)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_topic_stmt}accept(e){return e.visitAlter_topic_stmt?e.visitAlter_topic_stmt(this):e.visitChildren(this)}},Fl=class extends W{static{Si(this,"Alter_topic_actionContext")}constructor(e,t){super(e,t)}alter_topic_add_consumer(){return this.getRuleContext(0,Ul)}alter_topic_alter_consumer(){return this.getRuleContext(0,Bl)}alter_topic_drop_consumer(){return this.getRuleContext(0,Vl)}alter_topic_set_settings(){return this.getRuleContext(0,jl)}alter_topic_reset_settings(){return this.getRuleContext(0,Kl)}get ruleIndex(){return rs.RULE_alter_topic_action}accept(e){return e.visitAlter_topic_action?e.visitAlter_topic_action(this):e.visitChildren(this)}},Ul=class extends W{static{Si(this,"Alter_topic_add_consumerContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,Hl)}get ruleIndex(){return rs.RULE_alter_topic_add_consumer}accept(e){return e.visitAlter_topic_add_consumer?e.visitAlter_topic_add_consumer(this):e.visitChildren(this)}},Hl=class extends W{static{Si(this,"Topic_create_consumer_entryContext")}constructor(e,t){super(e,t)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}an_id(){return this.getRuleContext(0,Vh)}topic_consumer_with_settings(){return this.getRuleContext(0,Xl)}get ruleIndex(){return rs.RULE_topic_create_consumer_entry}accept(e){return e.visitTopic_create_consumer_entry?e.visitTopic_create_consumer_entry(this):e.visitChildren(this)}},Bl=class extends W{static{Si(this,"Alter_topic_alter_consumerContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Wl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer}accept(e){return e.visitAlter_topic_alter_consumer?e.visitAlter_topic_alter_consumer(this):e.visitChildren(this)}},Wl=class extends W{static{Si(this,"Alter_topic_alter_consumer_entryContext")}constructor(e,t){super(e,t)}topic_alter_consumer_set(){return this.getRuleContext(0,zl)}topic_alter_consumer_reset(){return this.getRuleContext(0,Gl)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer_entry}accept(e){return e.visitAlter_topic_alter_consumer_entry?e.visitAlter_topic_alter_consumer_entry(this):e.visitChildren(this)}},Vl=class extends W{static{Si(this,"Alter_topic_drop_consumerContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,ih)}get ruleIndex(){return rs.RULE_alter_topic_drop_consumer}accept(e){return e.visitAlter_topic_drop_consumer?e.visitAlter_topic_drop_consumer(this):e.visitChildren(this)}},zl=class extends W{static{Si(this,"Topic_alter_consumer_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_alter_consumer_set}accept(e){return e.visitTopic_alter_consumer_set?e.visitTopic_alter_consumer_set(this):e.visitChildren(this)}},Gl=class extends W{static{Si(this,"Topic_alter_consumer_resetContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Vh):this.getRuleContext(e,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_alter_consumer_reset}accept(e){return e.visitTopic_alter_consumer_reset?e.visitTopic_alter_consumer_reset(this):e.visitChildren(this)}},jl=class extends W{static{Si(this,"Alter_topic_set_settingsContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,ql)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_topic_set_settings}accept(e){return e.visitAlter_topic_set_settings?e.visitAlter_topic_set_settings(this):e.visitChildren(this)}},Kl=class extends W{static{Si(this,"Alter_topic_reset_settingsContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(){return this.getRuleContext(0,Vh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}an_id_pure(e){return void 0===e?this.getRuleContexts(Xh):this.getRuleContext(e,Xh)}get ruleIndex(){return rs.RULE_alter_topic_reset_settings}accept(e){return e.visitAlter_topic_reset_settings?e.visitAlter_topic_reset_settings(this):e.visitChildren(this)}},Yl=class extends W{static{Si(this,"Drop_topic_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,th)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_topic_stmt}accept(e){return e.visitDrop_topic_stmt?e.visitDrop_topic_stmt(this):e.visitChildren(this)}},ql=class extends W{static{Si(this,"Topic_settingsContext")}constructor(e,t){super(e,t)}topic_settings_entry(e){return void 0===e?this.getRuleContexts($l):this.getRuleContext(e,$l)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_settings}accept(e){return e.visitTopic_settings?e.visitTopic_settings(this):e.visitChildren(this)}},$l=class extends W{static{Si(this,"Topic_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Ql)}get ruleIndex(){return rs.RULE_topic_settings_entry}accept(e){return e.visitTopic_settings_entry?e.visitTopic_settings_entry(this):e.visitChildren(this)}},Ql=class extends W{static{Si(this,"Topic_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_setting_value}accept(e){return e.visitTopic_setting_value?e.visitTopic_setting_value(this):e.visitChildren(this)}},Xl=class extends W{static{Si(this,"Topic_consumer_with_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_consumer_with_settings}accept(e){return e.visitTopic_consumer_with_settings?e.visitTopic_consumer_with_settings(this):e.visitChildren(this)}},Zl=class extends W{static{Si(this,"Topic_consumer_settingsContext")}constructor(e,t){super(e,t)}topic_consumer_settings_entry(e){return void 0===e?this.getRuleContexts(Jl):this.getRuleContext(e,Jl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_consumer_settings}accept(e){return e.visitTopic_consumer_settings?e.visitTopic_consumer_settings(this):e.visitChildren(this)}},Jl=class extends W{static{Si(this,"Topic_consumer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,eh)}get ruleIndex(){return rs.RULE_topic_consumer_settings_entry}accept(e){return e.visitTopic_consumer_settings_entry?e.visitTopic_consumer_settings_entry(this):e.visitChildren(this)}},eh=class extends W{static{Si(this,"Topic_consumer_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_consumer_setting_value}accept(e){return e.visitTopic_consumer_setting_value?e.visitTopic_consumer_setting_value(this):e.visitChildren(this)}},th=class extends W{static{Si(this,"Topic_refContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}cluster_expr(){return this.getRuleContext(0,td)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_topic_ref}accept(e){return e.visitTopic_ref?e.visitTopic_ref(this):e.visitChildren(this)}},ih=class extends W{static{Si(this,"Topic_consumer_refContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_topic_consumer_ref}accept(e){return e.visitTopic_consumer_ref?e.visitTopic_consumer_ref(this):e.visitChildren(this)}},sh=class extends W{static{Si(this,"Null_treatmentContext")}constructor(e,t){super(e,t)}RESPECT(){return this.getToken(rs.RESPECT,0)}NULLS(){return this.getToken(rs.NULLS,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}get ruleIndex(){return rs.RULE_null_treatment}accept(e){return e.visitNull_treatment?e.visitNull_treatment(this):e.visitChildren(this)}},nh=class extends W{static{Si(this,"Filter_clauseContext")}constructor(e,t){super(e,t)}FILTER(){return this.getToken(rs.FILTER,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}where_expr(){return this.getRuleContext(0,Ld)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_filter_clause}accept(e){return e.visitFilter_clause?e.visitFilter_clause(this):e.visitChildren(this)}},rh=class extends W{static{Si(this,"Window_name_or_specificationContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_name_or_specification}accept(e){return e.visitWindow_name_or_specification?e.visitWindow_name_or_specification(this):e.visitChildren(this)}},oh=class extends W{static{Si(this,"Window_nameContext")}constructor(e,t){super(e,t)}an_id_window(){return this.getRuleContext(0,Yh)}get ruleIndex(){return rs.RULE_window_name}accept(e){return e.visitWindow_name?e.visitWindow_name(this):e.visitChildren(this)}},ah=class extends W{static{Si(this,"Window_clauseContext")}constructor(e,t){super(e,t)}WINDOW(){return this.getToken(rs.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,ch)}get ruleIndex(){return rs.RULE_window_clause}accept(e){return e.visitWindow_clause?e.visitWindow_clause(this):e.visitChildren(this)}},ch=class extends W{static{Si(this,"Window_definition_listContext")}constructor(e,t){super(e,t)}window_definition(e){return void 0===e?this.getRuleContexts(lh):this.getRuleContext(e,lh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_window_definition_list}accept(e){return e.visitWindow_definition_list?e.visitWindow_definition_list(this):e.visitChildren(this)}},lh=class extends W{static{Si(this,"Window_definitionContext")}constructor(e,t){super(e,t)}new_window_name(){return this.getRuleContext(0,hh)}AS(){return this.getToken(rs.AS,0)}window_specification(){return this.getRuleContext(0,dh)}get ruleIndex(){return rs.RULE_window_definition}accept(e){return e.visitWindow_definition?e.visitWindow_definition(this):e.visitChildren(this)}},hh=class extends W{static{Si(this,"New_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_new_window_name}accept(e){return e.visitNew_window_name?e.visitNew_window_name(this):e.visitChildren(this)}},dh=class extends W{static{Si(this,"Window_specificationContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,uh)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_window_specification}accept(e){return e.visitWindow_specification?e.visitWindow_specification(this):e.visitChildren(this)}},uh=class extends W{static{Si(this,"Window_specification_detailsContext")}constructor(e,t){super(e,t)}existing_window_name(){return this.getRuleContext(0,gh)}window_partition_clause(){return this.getRuleContext(0,ph)}window_order_clause(){return this.getRuleContext(0,mh)}window_frame_clause(){return this.getRuleContext(0,fh)}get ruleIndex(){return rs.RULE_window_specification_details}accept(e){return e.visitWindow_specification_details?e.visitWindow_specification_details(this):e.visitChildren(this)}},gh=class extends W{static{Si(this,"Existing_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_existing_window_name}accept(e){return e.visitExisting_window_name?e.visitExisting_window_name(this):e.visitChildren(this)}},ph=class extends W{static{Si(this,"Window_partition_clauseContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_window_partition_clause}accept(e){return e.visitWindow_partition_clause?e.visitWindow_partition_clause(this):e.visitChildren(this)}},mh=class extends W{static{Si(this,"Window_order_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_window_order_clause}accept(e){return e.visitWindow_order_clause?e.visitWindow_order_clause(this):e.visitChildren(this)}},fh=class extends W{static{Si(this,"Window_frame_clauseContext")}constructor(e,t){super(e,t)}window_frame_units(){return this.getRuleContext(0,_h)}window_frame_extent(){return this.getRuleContext(0,vh)}window_frame_exclusion(){return this.getRuleContext(0,bh)}get ruleIndex(){return rs.RULE_window_frame_clause}accept(e){return e.visitWindow_frame_clause?e.visitWindow_frame_clause(this):e.visitChildren(this)}},_h=class extends W{static{Si(this,"Window_frame_unitsContext")}constructor(e,t){super(e,t)}ROWS(){return this.getToken(rs.ROWS,0)}RANGE(){return this.getToken(rs.RANGE,0)}GROUPS(){return this.getToken(rs.GROUPS,0)}get ruleIndex(){return rs.RULE_window_frame_units}accept(e){return e.visitWindow_frame_units?e.visitWindow_frame_units(this):e.visitChildren(this)}},vh=class extends W{static{Si(this,"Window_frame_extentContext")}constructor(e,t){super(e,t)}window_frame_bound(){return this.getRuleContext(0,Eh)}window_frame_between(){return this.getRuleContext(0,Ch)}get ruleIndex(){return rs.RULE_window_frame_extent}accept(e){return e.visitWindow_frame_extent?e.visitWindow_frame_extent(this):e.visitChildren(this)}},Ch=class extends W{static{Si(this,"Window_frame_betweenContext")}constructor(e,t){super(e,t)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}window_frame_bound(e){return void 0===e?this.getRuleContexts(Eh):this.getRuleContext(e,Eh)}AND(){return this.getToken(rs.AND,0)}get ruleIndex(){return rs.RULE_window_frame_between}accept(e){return e.visitWindow_frame_between?e.visitWindow_frame_between(this):e.visitChildren(this)}},Eh=class extends W{static{Si(this,"Window_frame_boundContext")}constructor(e,t){super(e,t)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}expr(){return this.getRuleContext(0,gs)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}get ruleIndex(){return rs.RULE_window_frame_bound}accept(e){return e.visitWindow_frame_bound?e.visitWindow_frame_bound(this):e.visitChildren(this)}},bh=class extends W{static{Si(this,"Window_frame_exclusionContext")}constructor(e,t){super(e,t)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}GROUP(){return this.getToken(rs.GROUP,0)}TIES(){return this.getToken(rs.TIES,0)}NO(){return this.getToken(rs.NO,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}get ruleIndex(){return rs.RULE_window_frame_exclusion}accept(e){return e.visitWindow_frame_exclusion?e.visitWindow_frame_exclusion(this):e.visitChildren(this)}},Sh=class extends W{static{Si(this,"Use_stmtContext")}constructor(e,t){super(e,t)}USE(){return this.getToken(rs.USE,0)}cluster_expr(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_use_stmt}accept(e){return e.visitUse_stmt?e.visitUse_stmt(this):e.visitChildren(this)}},yh=class extends W{static{Si(this,"Subselect_stmtContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,fr)}get ruleIndex(){return rs.RULE_subselect_stmt}accept(e){return e.visitSubselect_stmt?e.visitSubselect_stmt(this):e.visitChildren(this)}},wh=class extends W{static{Si(this,"Named_nodes_stmtContext")}constructor(e,t){super(e,t)}bind_parameter_list(){return this.getRuleContext(0,Tn)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}subselect_stmt(){return this.getRuleContext(0,yh)}get ruleIndex(){return rs.RULE_named_nodes_stmt}accept(e){return e.visitNamed_nodes_stmt?e.visitNamed_nodes_stmt(this):e.visitChildren(this)}},Rh=class extends W{static{Si(this,"Commit_stmtContext")}constructor(e,t){super(e,t)}COMMIT(){return this.getToken(rs.COMMIT,0)}get ruleIndex(){return rs.RULE_commit_stmt}accept(e){return e.visitCommit_stmt?e.visitCommit_stmt(this):e.visitChildren(this)}},Lh=class extends W{static{Si(this,"Rollback_stmtContext")}constructor(e,t){super(e,t)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}get ruleIndex(){return rs.RULE_rollback_stmt}accept(e){return e.visitRollback_stmt?e.visitRollback_stmt(this):e.visitChildren(this)}},Th=class extends W{static{Si(this,"Analyze_tableContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,Sl)}LPAREN(){return this.getToken(rs.LPAREN,0)}column_list(){return this.getRuleContext(0,mn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_analyze_table}accept(e){return e.visitAnalyze_table?e.visitAnalyze_table(this):e.visitChildren(this)}},xh=class extends W{static{Si(this,"Analyze_table_listContext")}constructor(e,t){super(e,t)}analyze_table(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_analyze_table_list}accept(e){return e.visitAnalyze_table_list?e.visitAnalyze_table_list(this):e.visitChildren(this)}},kh=class extends W{static{Si(this,"Analyze_stmtContext")}constructor(e,t){super(e,t)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,xh)}get ruleIndex(){return rs.RULE_analyze_stmt}accept(e){return e.visitAnalyze_stmt?e.visitAnalyze_stmt(this):e.visitChildren(this)}},Ah=class extends W{static{Si(this,"Alter_sequence_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}object_ref(){return this.getRuleContext(0,El)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}alter_sequence_action(e){return void 0===e?this.getRuleContexts(Nh):this.getRuleContext(e,Nh)}get ruleIndex(){return rs.RULE_alter_sequence_stmt}accept(e){return e.visitAlter_sequence_stmt?e.visitAlter_sequence_stmt(this):e.visitChildren(this)}},Nh=class extends W{static{Si(this,"Alter_sequence_actionContext")}constructor(e,t){super(e,t)}START(){return this.getToken(rs.START,0)}integer(){return this.getRuleContext(0,Ed)}WITH(){return this.getToken(rs.WITH,0)}RESTART(){return this.getToken(rs.RESTART,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}BY(){return this.getToken(rs.BY,0)}get ruleIndex(){return rs.RULE_alter_sequence_action}accept(e){return e.visitAlter_sequence_action?e.visitAlter_sequence_action(this):e.visitChildren(this)}},Ih=class extends W{static{Si(this,"IdentifierContext")}constructor(e,t){super(e,t)}ID_PLAIN(){return this.getToken(rs.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(rs.ID_QUOTED,0)}get ruleIndex(){return rs.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}},Oh=class extends W{static{Si(this,"IdContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword(){return this.getRuleContext(0,ad)}get ruleIndex(){return rs.RULE_id}accept(e){return e.visitId?e.visitId(this):e.visitChildren(this)}},Dh=class extends W{static{Si(this,"Id_schemaContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_schema}accept(e){return e.visitId_schema?e.visitId_schema(this):e.visitChildren(this)}},Mh=class extends W{static{Si(this,"Id_exprContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr}accept(e){return e.visitId_expr?e.visitId_expr(this):e.visitChildren(this)}},Ph=class extends W{static{Si(this,"Id_expr_inContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_expr_in}accept(e){return e.visitId_expr_in?e.visitId_expr_in(this):e.visitChildren(this)}},Fh=class extends W{static{Si(this,"Id_windowContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_window}accept(e){return e.visitId_window?e.visitId_window(this):e.visitChildren(this)}},Uh=class extends W{static{Si(this,"Id_tableContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_table}accept(e){return e.visitId_table?e.visitId_table(this):e.visitChildren(this)}},Hh=class extends W{static{Si(this,"Id_withoutContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_id_without}accept(e){return e.visitId_without?e.visitId_without(this):e.visitChildren(this)}},Bh=class extends W{static{Si(this,"Id_hintContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}get ruleIndex(){return rs.RULE_id_hint}accept(e){return e.visitId_hint?e.visitId_hint(this):e.visitChildren(this)}},Wh=class extends W{static{Si(this,"Id_as_compatContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}keyword_as_compat(){return this.getRuleContext(0,md)}get ruleIndex(){return rs.RULE_id_as_compat}accept(e){return e.visitId_as_compat?e.visitId_as_compat(this):e.visitChildren(this)}},Vh=class extends W{static{Si(this,"An_idContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id}accept(e){return e.visitAn_id?e.visitAn_id(this):e.visitChildren(this)}},zh=class extends W{static{Si(this,"An_id_or_typeContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_or_type}accept(e){return e.visitAn_id_or_type?e.visitAn_id_or_type(this):e.visitChildren(this)}},Gh=class extends W{static{Si(this,"An_id_schemaContext")}constructor(e,t){super(e,t)}id_schema(){return this.getRuleContext(0,Dh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_schema}accept(e){return e.visitAn_id_schema?e.visitAn_id_schema(this):e.visitChildren(this)}},jh=class extends W{static{Si(this,"An_id_exprContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,Mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr}accept(e){return e.visitAn_id_expr?e.visitAn_id_expr(this):e.visitChildren(this)}},Kh=class extends W{static{Si(this,"An_id_expr_inContext")}constructor(e,t){super(e,t)}id_expr_in(){return this.getRuleContext(0,Ph)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr_in}accept(e){return e.visitAn_id_expr_in?e.visitAn_id_expr_in(this):e.visitChildren(this)}},Yh=class extends W{static{Si(this,"An_id_windowContext")}constructor(e,t){super(e,t)}id_window(){return this.getRuleContext(0,Fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_window}accept(e){return e.visitAn_id_window?e.visitAn_id_window(this):e.visitChildren(this)}},qh=class extends W{static{Si(this,"An_id_tableContext")}constructor(e,t){super(e,t)}id_table(){return this.getRuleContext(0,Uh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_table}accept(e){return e.visitAn_id_table?e.visitAn_id_table(this):e.visitChildren(this)}},$h=class extends W{static{Si(this,"An_id_withoutContext")}constructor(e,t){super(e,t)}id_without(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_without}accept(e){return e.visitAn_id_without?e.visitAn_id_without(this):e.visitChildren(this)}},Qh=class extends W{static{Si(this,"An_id_hintContext")}constructor(e,t){super(e,t)}id_hint(){return this.getRuleContext(0,Bh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_hint}accept(e){return e.visitAn_id_hint?e.visitAn_id_hint(this):e.visitChildren(this)}},Xh=class extends W{static{Si(this,"An_id_pureContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,Ih)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_pure}accept(e){return e.visitAn_id_pure?e.visitAn_id_pure(this):e.visitChildren(this)}},Zh=class extends W{static{Si(this,"An_id_as_compatContext")}constructor(e,t){super(e,t)}id_as_compat(){return this.getRuleContext(0,Wh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_as_compat}accept(e){return e.visitAn_id_as_compat?e.visitAn_id_as_compat(this):e.visitChildren(this)}},Jh=class extends W{static{Si(this,"View_nameContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}get ruleIndex(){return rs.RULE_view_name}accept(e){return e.visitView_name?e.visitView_name(this):e.visitChildren(this)}},ed=class extends W{static{Si(this,"Opt_id_prefixContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Vh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix}accept(e){return e.visitOpt_id_prefix?e.visitOpt_id_prefix(this):e.visitChildren(this)}},td=class extends W{static{Si(this,"Cluster_exprContext")}constructor(e,t){super(e,t)}pure_column_or_named(){return this.getRuleContext(0,dn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(){return this.getRuleContext(0,Vh)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_cluster_expr}accept(e){return e.visitCluster_expr?e.visitCluster_expr(this):e.visitChildren(this)}},id=class extends W{static{Si(this,"Id_or_typeContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,Oh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_or_type}accept(e){return e.visitId_or_type?e.visitId_or_type(this):e.visitChildren(this)}},sd=class extends W{static{Si(this,"Opt_id_prefix_or_typeContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix_or_type}accept(e){return e.visitOpt_id_prefix_or_type?e.visitOpt_id_prefix_or_type(this):e.visitChildren(this)}},nd=class extends W{static{Si(this,"Id_or_atContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,zh)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_or_at}accept(e){return e.visitId_or_at?e.visitId_or_at(this):e.visitChildren(this)}},rd=class extends W{static{Si(this,"Id_table_or_typeContext")}constructor(e,t){super(e,t)}an_id_table(){return this.getRuleContext(0,qh)}type_id(){return this.getRuleContext(0,_d)}get ruleIndex(){return rs.RULE_id_table_or_type}accept(e){return e.visitId_table_or_type?e.visitId_table_or_type(this):e.visitChildren(this)}},od=class extends W{static{Si(this,"Id_table_or_atContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,rd)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_table_or_at}accept(e){return e.visitId_table_or_at?e.visitId_table_or_at(this):e.visitChildren(this)}},ad=class extends W{static{Si(this,"KeywordContext")}constructor(e,t){super(e,t)}keyword_compat(){return this.getRuleContext(0,fd)}keyword_expr_uncompat(){return this.getRuleContext(0,cd)}keyword_table_uncompat(){return this.getRuleContext(0,ld)}keyword_select_uncompat(){return this.getRuleContext(0,hd)}keyword_alter_uncompat(){return this.getRuleContext(0,dd)}keyword_in_uncompat(){return this.getRuleContext(0,ud)}keyword_window_uncompat(){return this.getRuleContext(0,gd)}keyword_hint_uncompat(){return this.getRuleContext(0,pd)}get ruleIndex(){return rs.RULE_keyword}accept(e){return e.visitKeyword?e.visitKeyword(this):e.visitChildren(this)}},cd=class extends W{static{Si(this,"Keyword_expr_uncompatContext")}constructor(e,t){super(e,t)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}BITCAST(){return this.getToken(rs.BITCAST,0)}CASE(){return this.getToken(rs.CASE,0)}CAST(){return this.getToken(rs.CAST,0)}CUBE(){return this.getToken(rs.CUBE,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}FROM(){return this.getToken(rs.FROM,0)}FULL(){return this.getToken(rs.FULL,0)}HOP(){return this.getToken(rs.HOP,0)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}PROCESS(){return this.getToken(rs.PROCESS,0)}REDUCE(){return this.getToken(rs.REDUCE,0)}RETURN(){return this.getToken(rs.RETURN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}SELECT(){return this.getToken(rs.SELECT,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}WHEN(){return this.getToken(rs.WHEN,0)}WHERE(){return this.getToken(rs.WHERE,0)}get ruleIndex(){return rs.RULE_keyword_expr_uncompat}accept(e){return e.visitKeyword_expr_uncompat?e.visitKeyword_expr_uncompat(this):e.visitChildren(this)}},ld=class extends W{static{Si(this,"Keyword_table_uncompatContext")}constructor(e,t){super(e,t)}ANY(){return this.getToken(rs.ANY,0)}ERASE(){return this.getToken(rs.ERASE,0)}STREAM(){return this.getToken(rs.STREAM,0)}get ruleIndex(){return rs.RULE_keyword_table_uncompat}accept(e){return e.visitKeyword_table_uncompat?e.visitKeyword_table_uncompat(this):e.visitChildren(this)}},hd=class extends W{static{Si(this,"Keyword_select_uncompatContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}ASSUME(){return this.getToken(rs.ASSUME,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}HAVING(){return this.getToken(rs.HAVING,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}LIMIT(){return this.getToken(rs.LIMIT,0)}UNION(){return this.getToken(rs.UNION,0)}WINDOW(){return this.getToken(rs.WINDOW,0)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}get ruleIndex(){return rs.RULE_keyword_select_uncompat}accept(e){return e.visitKeyword_select_uncompat?e.visitKeyword_select_uncompat(this):e.visitChildren(this)}},dd=class extends W{static{Si(this,"Keyword_alter_uncompatContext")}constructor(e,t){super(e,t)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_keyword_alter_uncompat}accept(e){return e.visitKeyword_alter_uncompat?e.visitKeyword_alter_uncompat(this):e.visitChildren(this)}},ud=class extends W{static{Si(this,"Keyword_in_uncompatContext")}constructor(e,t){super(e,t)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_keyword_in_uncompat}accept(e){return e.visitKeyword_in_uncompat?e.visitKeyword_in_uncompat(this):e.visitChildren(this)}},gd=class extends W{static{Si(this,"Keyword_window_uncompatContext")}constructor(e,t){super(e,t)}GROUPS(){return this.getToken(rs.GROUPS,0)}RANGE(){return this.getToken(rs.RANGE,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_keyword_window_uncompat}accept(e){return e.visitKeyword_window_uncompat?e.visitKeyword_window_uncompat(this):e.visitChildren(this)}},pd=class extends W{static{Si(this,"Keyword_hint_uncompatContext")}constructor(e,t){super(e,t)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}get ruleIndex(){return rs.RULE_keyword_hint_uncompat}accept(e){return e.visitKeyword_hint_uncompat?e.visitKeyword_hint_uncompat(this):e.visitChildren(this)}},md=class extends W{static{Si(this,"Keyword_as_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}LAST(){return this.getToken(rs.LAST,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_as_compat}accept(e){return e.visitKeyword_as_compat?e.visitKeyword_as_compat(this):e.visitChildren(this)}},fd=class extends W{static{Si(this,"Keyword_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BATCH(){return this.getToken(rs.BATCH,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLATE(){return this.getToken(rs.COLLATE,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CROSS(){return this.getToken(rs.CROSS,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DO(){return this.getToken(rs.DO,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENT(){return this.getToken(rs.INCREMENT,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INNER(){return this.getToken(rs.INNER,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}JOIN(){return this.getToken(rs.JOIN,0)}KEY(){return this.getToken(rs.KEY,0)}LAST(){return this.getToken(rs.LAST,0)}LEFT(){return this.getToken(rs.LEFT,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}LOGIN(){return this.getToken(rs.LOGIN,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOLOGIN(){return this.getToken(rs.NOLOGIN,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ON(){return this.getToken(rs.ON,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}ORDER(){return this.getToken(rs.ORDER,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}OUTER(){return this.getToken(rs.OUTER,0)}OVER(){return this.getToken(rs.OVER,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRESORT(){return this.getToken(rs.PRESORT,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUERY(){return this.getToken(rs.QUERY,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTART(){return this.getToken(rs.RESTART,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}RESULT(){return this.getToken(rs.RESULT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SEMI(){return this.getToken(rs.SEMI,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SEQUENCE(){return this.getToken(rs.SEQUENCE,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}START(){return this.getToken(rs.START,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRANSFER(){return this.getToken(rs.TRANSFER,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}USING(){return this.getToken(rs.USING,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIEW(){return this.getToken(rs.VIEW,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WITH(){return this.getToken(rs.WITH,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_compat}accept(e){return e.visitKeyword_compat?e.visitKeyword_compat(this):e.visitChildren(this)}},_d=class extends W{static{Si(this,"Type_idContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}TUPLE(){return this.getToken(rs.TUPLE,0)}STRUCT(){return this.getToken(rs.STRUCT,0)}VARIANT(){return this.getToken(rs.VARIANT,0)}LIST(){return this.getToken(rs.LIST,0)}FLOW(){return this.getToken(rs.FLOW,0)}DICT(){return this.getToken(rs.DICT,0)}SET(){return this.getToken(rs.SET,0)}ENUM(){return this.getToken(rs.ENUM,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}TAGGED(){return this.getToken(rs.TAGGED,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_type_id}accept(e){return e.visitType_id?e.visitType_id(this):e.visitChildren(this)}},vd=class extends W{static{Si(this,"Bool_valueContext")}constructor(e,t){super(e,t)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bool_value}accept(e){return e.visitBool_value?e.visitBool_value(this):e.visitChildren(this)}},Cd=class extends W{static{Si(this,"RealContext")}constructor(e,t){super(e,t)}REAL(){return this.getToken(rs.REAL,0)}get ruleIndex(){return rs.RULE_real}accept(e){return e.visitReal?e.visitReal(this):e.visitChildren(this)}},Ed=class extends W{static{Si(this,"IntegerContext")}constructor(e,t){super(e,t)}DIGITS(){return this.getToken(rs.DIGITS,0)}INTEGER_VALUE(){return this.getToken(rs.INTEGER_VALUE,0)}get ruleIndex(){return rs.RULE_integer}accept(e){return e.visitInteger?e.visitInteger(this):e.visitChildren(this)}},bd=class extends W{static{Si(this,"Sql_query_yqContext")}constructor(e,t){super(e,t)}sql_stmt_list_yq(){return this.getRuleContext(0,Sd)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,cs)}get ruleIndex(){return rs.RULE_sql_query_yq}accept(e){return e.visitSql_query_yq?e.visitSql_query_yq(this):e.visitChildren(this)}},Sd=class extends W{static{Si(this,"Sql_stmt_list_yqContext")}constructor(e,t){super(e,t)}sql_stmt_yq(e){return void 0===e?this.getRuleContexts(yd):this.getRuleContext(e,yd)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list_yq}accept(e){return e.visitSql_stmt_list_yq?e.visitSql_stmt_list_yq(this):e.visitChildren(this)}},yd=class extends W{static{Si(this,"Sql_stmt_yqContext")}constructor(e,t){super(e,t)}sql_stmt_core_yq(){return this.getRuleContext(0,wd)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt_yq}accept(e){return e.visitSql_stmt_yq?e.visitSql_stmt_yq(this):e.visitChildren(this)}},wd=class extends W{static{Si(this,"Sql_stmt_core_yqContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,wh)}use_stmt(){return this.getRuleContext(0,Sh)}into_table_stmt_yq(){return this.getRuleContext(0,ko)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,dl)}if_stmt(){return this.getRuleContext(0,gl)}for_stmt(){return this.getRuleContext(0,pl)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_sql_stmt_core_yq}accept(e){return e.visitSql_stmt_core_yq?e.visitSql_stmt_core_yq(this):e.visitChildren(this)}},Rd=class extends W{static{Si(this,"Replication_nameContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}object_ref(){return this.getRuleContext(0,El)}get ruleIndex(){return rs.RULE_replication_name}accept(e){return e.visitReplication_name?e.visitReplication_name(this):e.visitChildren(this)}},Ld=class extends W{static{Si(this,"Where_exprContext")}constructor(e,t){super(e,t)}WHERE(){return this.getToken(rs.WHERE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_where_expr}accept(e){return e.visitWhere_expr?e.visitWhere_expr(this):e.visitChildren(this)}},Td=class extends vt{static{Si(this,"YQLVisitor")}},xd={SPACE:rs.WS,FROM:rs.FROM,OPENING_BRACKET:rs.LPAREN,CLOSING_BRACKET:rs.RPAREN,ALTER:rs.ALTER,INSERT:rs.INSERT,UPSERT:rs.UPSERT,UPDATE:rs.UPDATE,JOIN:rs.JOIN,SEMICOLON:rs.SEMICOLON,SELECT:rs.SELECT};function kd(e,t,i,s){let n,r=i-1;do{if(n=e.get(r),n?.type===s)return!0;r--}while(n?.type===t.SPACE);return!1}function Ad(e){let t=new Map(e.map((e=>[e,!0])));return{anyRuleInList:e=>(Array.isArray(e)?e:[e]).some((e=>t.has(e))),allRulesInList:e=>!e.some((e=>!t.has(e)))}}function Nd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_window_specification_details,rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Id({anyRuleInList:e}){return e([rs.RULE_alter_object_stmt,rs.RULE_drop_object_stmt])&&e(rs.RULE_id_or_at)}function Od({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_id_or_at))return;let s=e(rs.RULE_drop_table_stmt)&&!!ss(t,xd,i,rs.TABLESTORE);return e(rs.RULE_alter_table_store_stmt)||s}function Dd({anyRuleInList:e,allRulesInList:t,tokenStream:i,cursorTokenIndex:s}){if(!e([rs.RULE_id_or_at,rs.RULE_id_table_or_type]))return;let n=e(rs.RULE_replication_target)&&!e(rs.RULE_replication_name),r=t([rs.RULE_simple_table_ref])&&!ss(i,xd,s,rs.CREATE)&&!ss(i,xd,s,rs.EXTERNAL);return e([rs.RULE_table_ref,rs.RULE_table_inherits])||r||n}function Md({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.USER),n=!!ss(t,xd,i,rs.RENAME),r=e(rs.RULE_revoke_permissions_stmt),o=e(rs.RULE_alter_group_stmt)&&!n&&s,a=e(rs.RULE_create_group_stmt)&&s,c=e(rs.RULE_alter_user_stmt)&&!n;return e(rs.RULE_drop_role_stmt)&&s||c||a||o||r}function Pd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,xd,i,rs.GROUP),n=!!ss(t,xd,i,rs.USER),r=!!ss(t,xd,i,rs.RENAME),o=e(rs.RULE_drop_role_stmt)&&s,a=e(rs.RULE_alter_group_stmt)&&!r&&!n;return e(rs.RULE_revoke_permissions_stmt)||a||o}function Fd({anyRuleInList:e}){if(e([rs.RULE_an_id,rs.RULE_topic_ref]))return e([rs.RULE_drop_topic_stmt,rs.RULE_alter_topic_stmt])}function Ud({allRulesInList:e}){return e([rs.RULE_drop_view_stmt,rs.RULE_id_or_at])||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Hd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_alter_replication_stmt,rs.RULE_drop_replication_stmt])}function Bd({allRulesInList:e,tokenStream:t,cursorTokenIndex:i}){let s=!!ss(t,xd,i,rs.EXTERNAL);return e([rs.RULE_id_or_at,rs.RULE_drop_table_stmt])&&s||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Wd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_drop_external_data_source_stmt,rs.RULE_alter_external_data_source_stmt])}function Vd({anyRuleInList:e}){return!!e(rs.RULE_an_id)&&e([rs.RULE_alter_table_drop_index,rs.RULE_alter_table_rename_index_to])}function zd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e([rs.RULE_an_id,rs.RULE_id_expr])||e([rs.RULE_table_ref,rs.RULE_values_stmt,rs.RULE_alter_table_add_column,rs.RULE_lambda_stmt]))return!1;let s=e(rs.RULE_select_kind)&&!ss(t,xd,i,rs.LIMIT),n=e(rs.RULE_alter_table_alter_column)&&!ss(t,xd,i,rs.FAMILY);return e([rs.RULE_pure_column_list,rs.RULE_pure_column_or_named,rs.RULE_column_name,rs.RULE_without_column_name,rs.RULE_alter_table_drop_column,rs.RULE_delete_stmt])||n||s}function Gd(e){if(!zd(e))return!1;let{tokenStream:t,cursorTokenIndex:i,anyRuleInList:s,allRulesInList:n}=e;return s([rs.RULE_into_table_stmt,rs.RULE_into_table_stmt_yq])&&s(rs.RULE_into_values_source)?kd(t,xd,i,rs.LPAREN):!!n([rs.RULE_select_stmt,rs.RULE_result_column])&&kd(t,xd,i,rs.SELECT)}function jd({anyRuleInList:e}){return e([rs.RULE_expr,rs.RULE_table_ref,rs.RULE_simple_table_ref_core,rs.RULE_pure_column_or_named,rs.RULE_using_call_expr])}function Kd({anyRuleInList:e,allRulesInList:t}){let i=t([rs.RULE_id_expr,rs.RULE_select_stmt])&&!e(rs.RULE_table_ref);return e(rs.RULE_type_name_simple)||i}function Yd({allRulesInList:e}){return e([rs.RULE_an_id,rs.RULE_pragma_stmt])}function qd({anyRuleInList:e}){if(e([rs.RULE_atom_expr,rs.RULE_in_atom_expr])&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function $d({allRulesInList:e}){return e([rs.RULE_id_expr,rs.RULE_table_ref])}function Qd({anyRuleInList:e}){if(e(rs.RULE_id_expr)&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Xd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Zd({allRulesInList:e}){return e([rs.RULE_an_id_hint,rs.RULE_table_hint])}function Jd({allRulesInList:e,anyRuleInList:t}){if(!t([rs.RULE_table_setting_value,rs.RULE_topic_setting_value,rs.RULE_topic_consumer_setting_value])){if(e([rs.RULE_with_table_settings,rs.RULE_an_id]))return t(rs.RULE_create_external_data_source_stmt)?"externalDataSource":t(rs.RULE_create_view_stmt)?"view":t(rs.RULE_create_table_stmt)?"table":void 0;if(e([rs.RULE_with_topic_settings,rs.RULE_an_id]))return"topic";if(e([rs.RULE_topic_consumer_with_settings,rs.RULE_an_id]))return"topicConsumer";if(e([rs.RULE_replication_settings,rs.RULE_an_id]))return"replication"}}Si(kd,"isFirstPreviousTokenOfType"),Si(Ad,"getRuleCheckHelpers"),Si(Nd,"getWindowFunctionsSuggestions"),Si(Id,"getObjectSuggestions"),Si(Od,"getTablestoreSuggestions"),Si(Dd,"getTableSuggestions"),Si(Md,"getUserSuggestions"),Si(Pd,"getGroupSuggestions"),Si(Fd,"getTopicSuggestions"),Si(Ud,"getViewSuggestions"),Si(Hd,"getReplicationSuggestions"),Si(Bd,"getExternalTableSuggestions"),Si(Wd,"getExternalDatasourceSuggestions"),Si(Vd,"checkShouldSuggestTableIndexes"),Si(zd,"checkShouldSuggestColumns"),Si(Gd,"checkShouldSuggestAllColumns"),Si(jd,"checkShouldSuggestVariables"),Si(Kd,"getSimpleTypesSuggestions"),Si(Yd,"getPragmasSuggestions"),Si(qd,"getUdfsSuggestions"),Si($d,"getTableFunctionsSuggestions"),Si(Qd,"getFunctionsSuggestions"),Si(Xd,"getAggregateFunctionsSuggestions"),Si(Zd,"checkShouldSuggestTableHints"),Si(Jd,"getEntitySettingsSuggestions");var eu=rs.ruleNames;function tu(e){let t=e.findIndex((e=>e===rs.RULE_sql_stmt_core||e===rs.RULE_sql_stmt_core_yq));if(-1===t)return;let i=e[t+1];return i?eu[i]:void 0}Si(tu,"getParticularStatement");var iu={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function su(e,t,i){let s={...Ad(e),cursorTokenIndex:t,tokenStream:i},n=Nd(s),r=Id(s),o=Od(s),a=Dd(s),c=Md(s),l=Pd(s),h=Fd(s),d=Ud(s),u=Hd(s),g=Bd(s),p=Wd(s),m=Vd(s),f=zd(s),_=Gd(s),v=Kd(s),C=Yd(s),E=qd(s),b=$d(s),S=Qd(s),y=Xd(s),w=Zd(s),R=Jd(s);return{suggestWindowFunctions:n,shouldSuggestTableIndexes:m,shouldSuggestColumns:f,shouldSuggestAllColumns:_,shouldSuggestColumnAliases:f,shouldSuggestVariables:jd(s),suggestSimpleTypes:v,suggestPragmas:C,suggestUdfs:E,suggestTableFunctions:b,suggestFunctions:S,suggestAggregateFunctions:y,suggestTableHints:w?tu(e):void 0,suggestEntitySettings:R,suggestObject:r,suggestTableStore:o,suggestTable:a,suggestUser:c,suggestGroup:l,suggestTopic:h,suggestView:d,suggestReplication:u,suggestExternalTable:g,suggestExternalDatasource:p}}function nu(e,t,i){for(let s=0;s<e.size;s++){let n=e.get(s),r=n.column,o=n.text?.length??0,a=n.column+o;if(n.line===t.line&&r<=t.column-1&&a>=t.column-1&&i.includes(n.type)){let t=s-1;for(;t>=0;){let n=e.get(t);if(!i.includes(n.type))return s+1-t;t-=1}}}return 0}function ru(e,t,i,s=[]){return ou(e,t,i,nu(t,i,s))}function ou(e,t,i,s){return e instanceof F?cu(e,i,s):lu(e,t,i,s)}function au(e,t,i,s,n){let r=e.column,o=e.column+t.length;return e.start>e.stop?{index:e.tokenIndex,context:s,text:t.substring(0,i.column)}:e.line===i.line&&r<=i.column-1-n&&o>=i.column-1-n?{index:e.tokenIndex,context:s,text:t.substring(0,i.column-r)}:void 0}function cu(e,t,i){return au(e.symbol,e.getText(),t,e,i)}function lu(e,t,i,s){if(!(!e.start||!e.stop||e.start.line>i.line||e.stop.line<i.line)){for(let n=0;n<e.getChildCount();n++){let r=e.getChild(n);if(!r)continue;let o=ou(r,t,i,s);if(o)return o}for(let n=e.start.tokenIndex;n<=e.stop.tokenIndex;n++){let r=au(t.get(n),t.get(n).text??"",i,e,s);if(r)return r}}}function hu(e,t,i,s,n,r,o,a=[]){let c=s(Di(e,t,o)),l=ru(c,n,r,a);if(!l)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);return i.visit(c),du(i.symbolTable,l.context)}function du(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(qi):e&&(s=e.getNestedSymbolsOfTypeSync(qi).filter((e=>!e.parent?.context))),s.map((e=>({name:e.name,value:e.value})))}function uu(e,t,i,s,n,r,o,a=[]){let c={},l=s(Di(e,t,o)),h=ru(l,n,r,a);if(!h)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);i.visit(l);let d=gu(i.symbolTable,h.context),u=pu(i.symbolTable,h.context);return d.length&&(c.tableContextSuggestion={tables:d}),u.length&&(c.suggestColumnAliases=u),c}function gu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Yi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Yi)),$i(s)}function pu(e,t){let i=Ji(t,e),s=[];return i instanceof ci?s=i.getNestedSymbolsOfTypeSync(Xi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Xi)),s.map((({name:e})=>({name:e})))}function mu(){let e=[],t=rs.LBRACE_SQUARE;for(let i=rs.EQUALS;i<=t;i++)i!==rs.ASTERISK&&e.push(i);return e.push(rs.STREAM),e.push(rs.STRING_VALUE),e.push(rs.REAL),e.push(rs.EOF),e.push(rs.DIGITS),e.push(rs.BLOB),e.push(rs.CURRENT_TIME),e.push(rs.CURRENT_DATE),e.push(rs.CURRENT_TIMESTAMP),e}Si(su,"getGranularSuggestions"),Si(nu,"getWhitespaceBeforeCursor"),Si(ru,"computeTokenContext"),Si(ou,"computeTokenContextInternal"),Si(au,"getTokenContext"),Si(cu,"computeTokenContextOfTerminalNode"),Si(lu,"computeTokenContextOfChildNode"),Si(hu,"getVariableSuggestions"),Si(du,"suggestVariables"),Si(uu,"getExtendedTableSuggestions"),Si(gu,"suggestTables"),Si(pu,"suggestColumnAliases"),Si(mu,"getIgnoredTokens");var fu=new Set(mu()),_u=new Set([rs.RULE_id_or_type,rs.RULE_cluster_expr,rs.RULE_identifier,rs.RULE_id,rs.RULE_integer,rs.RULE_type_id,rs.RULE_keyword,rs.RULE_keyword_compat,rs.RULE_keyword_as_compat,rs.RULE_keyword_expr_uncompat,rs.RULE_keyword_table_uncompat,rs.RULE_keyword_select_uncompat,rs.RULE_keyword_alter_uncompat,rs.RULE_keyword_in_uncompat,rs.RULE_keyword_window_uncompat,rs.RULE_keyword_hint_uncompat,rs.RULE_id_schema,rs.RULE_id_expr_in,rs.RULE_id_window,rs.RULE_id_table,rs.RULE_id_without,rs.RULE_id_hint,rs.RULE_id_as_compat]),vu=class extends Td{static{Si(this,"YQLSymbolTableVisitor")}constructor(){super(),this.symbolTable=new Ei("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(ci,void 0)}withScope(e,t,i,s){let n=this.symbolTable.addNewSymbolOfType(t,this.scope,...i);n.context=e,this.scope=n;try{return s()}finally{this.scope=n.parent}}getColumnsFromSelectCore(e){let t=[],i=0;for(;i>=0;){let s=e?.result_column(i);if(!s){i=-1;continue}let n=s.an_id_as_compat()?.getText()||s.an_id_or_type()?.getText();if(n)t.push(n);else{let e=s.expr()?.getText();e&&t.push(e)}i+=1}return t.length?t:void 0}defaultResult(){return this.symbolTable}},Cu=class extends vu{constructor(){super(...arguments),this.addVariableSymbol=(e,t)=>{try{let i=0;for(;null!==i;){let s=e(i);s?(this.symbolTable.addNewSymbolOfType(qi,this.scope,s,t),i++):i=null}}catch(Ai){if(!(Ai instanceof ai))throw Ai}},this.visitDeclare_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();if(t){let i=e.literal_value()?.getText();this.symbolTable.addNewSymbolOfType(qi,this.scope,t,i)}}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAction_or_subquery_args=e=>(this.addVariableSymbol((t=>e.opt_bind_parameter(t)?.bind_parameter()?.an_id_or_type()?.getText())),this.visitChildren(e)),this.visitNamed_nodes_stmt=e=>{let t=(e.subselect_stmt()?.select_stmt()?.select_kind_parenthesis(0)||e.subselect_stmt()?.select_unparenthesized_stmt())?.select_kind_partial()?.select_kind()?.select_core(),i=t?this.getColumnsFromSelectCore(t):void 0;return this.addVariableSymbol((t=>e.bind_parameter_list()?.bind_parameter(t)?.an_id_or_type()?.getText()),i?{columns:i}:void 0),this.visitChildren(e)},this.visitDefine_action_or_subquery_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(qi,this.scope,t,void 0)}catch(t){if(!(t instanceof ai))throw t}return this.withScope(e,gi,[e.bind_parameter()?.an_id_or_type()?.getText()],(()=>this.visitChildren(e)))??{}},this.visitLambda=e=>{let t=Si((()=>{let t=e.smart_parenthesis()?.named_expr_list();return this.addVariableSymbol((e=>{let i=t?.named_expr(e)?.expr()?.getText();if(i&&i.startsWith("$"))return i.slice(1)})),this.visitChildren(e)}),"addVariables");return this.withScope(e,gi,[e.getText()],t)??{}}}static{Si(this,"YQLVariableSymbolTableVisitor")}},Eu=class extends vu{constructor(){super(...arguments),this.visitSql_stmt_core=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSelect_stmt=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSql_stmt_core_yq=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSimple_table_ref_core=e=>{try{let t=e.object_ref()?.id_or_at()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAlter_table_store_stmt=e=>{try{e.object_ref()?.id_or_at()?.getText()&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,e.object_ref()?.id_or_at()?.getText())}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_single_source=e=>{try{let t=e.single_source().table_ref()?.getText()??"",i=e.an_id()?.getText()??e.an_id_as_compat()?.getText(),s=e.single_source().select_stmt()?.select_kind_parenthesis(0)?.select_kind_partial()?.select_kind()?.select_core(),n=s?this.getColumnsFromSelectCore(s):void 0;this.symbolTable.addNewSymbolOfType(Yi,this.scope,t,i,n)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_column=e=>{try{let t=e.an_id()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_expr=e=>{try{let t=e.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitResult_column=e=>{try{let t=e.an_id_or_type()?.getText()??e.an_id_as_compat()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)}}static{Si(this,"YQLTableSymbolTableVisitor")}};function bu(e,t,i){let s={};for(let[f,_]of e){if(!xi(t,_))break;switch(f){case rs.RULE_id_table:case rs.RULE_id_hint:case rs.RULE_identifier:case rs.RULE_id_or_type:case rs.RULE_id:{let e=su(_.ruleList,t,i),n=Object.fromEntries(Object.entries(e).filter((([e,t])=>t)));s={...s,...n}}}}let{suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g,...p}=s,m=Object.entries({suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:c,suggestTopic:l,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g}).filter((([e,t])=>t)).map((([e])=>iu[e]));return{suggestEntity:m.length?m:void 0,...p}}function Su(e){return e.sql_query()}function yu(e){return e.sql_query_yq()}function wu(e){return(t,i,s,n,r,o)=>{let{shouldSuggestColumns:a,shouldSuggestAllColumns:c,shouldSuggestColumnAliases:l,shouldSuggestTableIndexes:h,shouldSuggestVariables:d,...u}=bu(i,n,s),g={...t,...u,suggestTemplates:Oi(o,r)},p=a||l||h;if(d){let t=new Cu,i=hu(ns,rs,t,e,s,r,o,[rs.WS]);i.length&&(g.suggestVariables=i)}if(p){let t=new Eu,{tableContextSuggestion:i,suggestColumnAliases:n}=uu(ns,rs,t,e,s,r,o,[rs.WS]);a&&i&&(g.suggestColumns={tables:i.tables},c&&(g.suggestColumns.all=!0)),h&&i&&(g.suggestTableIndexes={tables:i.tables}),l&&n&&(g.suggestColumnAliases=n)}return g}}Si(bu,"processVisitedRules"),Si(Su,"getParseTree"),Si(yu,"getParseTreeYQ"),Si(wu,"getEnrichAutocompleteResult");var Ru=new os(null,-1),Lu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:Su,enrichAutocompleteResult:wu(Su),context:Ru},Tu=new bd(null,-1),xu={Lexer:ns,Parser:rs,tokenDictionary:xd,ignoredTokens:fu,rulesToVisit:_u,getParseTree:yu,enrichAutocompleteResult:wu(yu),context:Tu};function ku(e){return zi(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.getParseTree,e)}function Au(e,t){return ji(Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,Lu.ignoredTokens,Lu.rulesToVisit,Lu.getParseTree,Lu.enrichAutocompleteResult,e,t,Lu.context)}function Nu(e,t){return ji(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.ignoredTokens,xu.rulesToVisit,xu.getParseTree,xu.enrichAutocompleteResult,e,t,xu.context)}Si(ku,"parseYqlQueryWithoutCursor"),Si(Au,"parseYqlQuery"),Si((function(e){return zi(xu.Lexer,xu.Parser,xu.tokenDictionary.SPACE,xu.getParseTree,e)}),"parseYqQueryWithoutCursor"),Si(Nu,"parseYqQuery"),Si((function(e){return Au(...Ki(e))}),"parseYqlQueryWithCursor"),Si((function(e){return Nu(...Ki(e))}),"parseYqQueryWithCursor"),Si((function(e){return Vi(ns,ns.symbolicNames,Lu.tokenDictionary.SPACE,e)}),"tokenizeYqlQuery"),Si((function(e){return Hi(e,Lu.Lexer,Lu.Parser,Lu.tokenDictionary.SPACE,[Lu.tokenDictionary.SPACE],Lu.tokenDictionary.SEMICOLON,rs.RULE_sql_stmt,Lu.getParseTree)}),"extractYqlStatementPositionsFromQuery")},41845:(e,t,i)=>{"use strict";i.d(t,{p:()=>s,t:()=>n});class s{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class n{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},41893:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(1019);return function(i,n,r){return(n=JSON.parse(JSON.stringify(n))).format=t.YSON,e(s(i.$value,n),n,r)}}},42144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>i.e(51094).then(i.bind(i,51094))})},42291:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s,n=i(91508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(s||(s={})),function(e){const t="error",i="warning",s="info";e.fromValue=function(r){return r?n.Q_(t,r)?e.Error:n.Q_(i,r)||n.Q_("warn",r)?e.Warning:n.Q_(s,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return s;default:return"ignore"}}}(s||(s={}));const r=s},42392:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,iY:()=>s});const s={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class n extends Error{constructor({originalError:e,message:t,code:i=s.UNKNOWN}={}){super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},42522:(e,t,i)=>{"use strict";var s;i.d(t,{f:()=>s}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*s(e){yield e}e.empty=function(){return i},e.single=s,e.wrap=function(e){return t(e)?e:s(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const s of e)if(t(s,i++))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const s of e)yield t(s,i++)},e.flatMap=function*(e,t){let i=0;for(const s of e)yield*t(s,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let s=i;for(const n of e)s=t(s,n);return s},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=Number.POSITIVE_INFINITY){const s=[];if(0===i)return[s,t];const n=t[Symbol.iterator]();for(let r=0;r<i;r++){const t=n.next();if(t.done)return[s,e.empty()];s.push(t.value)}return[s,{[Symbol.iterator]:()=>n}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(s||(s={}))},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>c,Zv:()=>n,dG:()=>o,z5:()=>l});var s=i(64383);function n(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,s=(4294901760&e)>>>16;return new a(0!==s?[r(i,t),r(s,t)]:[r(i,t)])}{const i=[];for(let s=0;s<e.length;s++)i.push(r(e[s],t));return new a(i)}}function r(e,t){const i=!!(2048&e),s=!!(256&e);return new o(2===t?s:i,!!(1024&e),!!(512&e),2===t?i:s,255&e)}class o{constructor(e,t,i,s,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=n}equals(e){return e instanceof o&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}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 a{constructor(e){if(0===e.length)throw(0,s.Qg)("chords");this.chords=e}}class c{constructor(e,t,i,s,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=n,this.keyAriaLabel=r}}class l{}},42572:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(53338).then(i.bind(i,53338))})},42731:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});const s={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(44320).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(14542).then(i.bind(i,14542))})},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>l,nZ:()=>c});var s=i(91090);let n=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const r=new s.d((()=>n("mouse",!1))),o=new s.d((()=>n("element",!1)));function a(e){n=e}function c(e){return"element"===e?o.value:r.value}function l(){return n("element",!0)}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>l,hB:()=>d,lt:()=>c,wC:()=>u});var s=i(91508),n=i(81782),r=i(83069),o=i(36677),a=i(16223);class c{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);if(10===s)return!0;if(92===s){if(t++,t>=i)break;const s=e.charCodeAt(t);if(110===s||114===s||87===s)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=s.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,n.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function l(e,t,i){if(!i)return new a.Dg(e,null);const s=[];for(let n=0,r=t.length;n<r;n++)s[n]=t[n];return new a.Dg(e,s)}class h{constructor(e){const t=[];let i=0;for(let s=0,n=e.length;s<n;s++)10===e.charCodeAt(s)&&(t[i++]=s);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,s=t.length-1;if(-1===s)return 0;if(e<=t[0])return 0;for(;i<s;){const n=i+((s-i)/2|0);t[n]>=e?s=n-1:t[n+1]>=e?(i=n,s=n):i=n+1}return i+1}}class d{static findMatches(e,t,i,s,n){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new g(r.wordSeparators,r.regex),s,n):this._doFindMatchesLineByLine(e,i,r,s,n):[]}static _getMultilineMatchRange(e,t,i,s,n,r){let a,c,l=0;if(s?(l=s.findLineFeedCountBeforeOffset(n),a=t+n+l):a=t+n,s){const e=s.findLineFeedCountBeforeOffset(n+r.length)-l;c=a+r.length+e}else c=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new o.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,s,n){const r=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(o):null,c=[];let d,u=0;for(i.reset(0);d=i.next(o);)if(c[u++]=l(this._getMultilineMatchRange(e,r,o,a,d.index,d[0]),d,s),u>=n)return c;return c}static _doFindMatchesLineByLine(e,t,i,s,n){const r=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n),r}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n);for(let c=t.startLineNumber+1;c<t.endLineNumber&&o<n;c++)o=this._findMatchesInLine(i,e.getLineContent(c),c,0,o,r,s,n);if(o<n){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(i,a,t.endLineNumber,0,o,r,s,n)}return r}static _findMatchesInLine(e,t,i,s,n,r,c,h){const d=e.wordSeparators;if(!c&&e.simpleSearch){const c=e.simpleSearch,l=c.length,g=t.length;let p=-l;for(;-1!==(p=t.indexOf(c,p+l));)if((!d||u(d,t,g,p,l))&&(r[n++]=new a.Dg(new o.Q(i,p+1+s,i,p+1+l+s),null),n>=h))return n;return n}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(r[n++]=l(new o.Q(i,m.index+1+s,i,m.index+1+m[0].length+s),m,c),n>=h))return n}while(m);return n}static findNextMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const n=new r.y(t.lineNumber,1),a=e.getOffsetAt(n),c=e.getLineCount(),d=e.getValueInRange(new o.Q(n.lineNumber,n.column,c,e.getLineMaxColumn(c)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?l(this._getMultilineMatchRange(e,a,d,u,g.index,g[0]),g,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.y(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r),a=this._findFirstMatchInLine(i,o,r,t.column,s);if(a)return a;for(let c=1;c<=n;c++){const t=(r+c-1)%n,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,o,t+1,1,s);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,s,n){e.reset(s-1);const r=e.next(t);return r?l(new o.Q(i,r.index+1,i,r.index+1+r[0].length),r,n):null}static findPreviousMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const n=this._doFindMatchesMultiline(e,new o.Q(1,1,t.lineNumber,t.column),i,s,9990);if(n.length>0)return n[n.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.y(a,e.getLineMaxColumn(a)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,o,r,s);if(a)return a;for(let c=1;c<=n;c++){const t=(n+r-c-1)%n,o=e.getLineContent(t+1),a=this._findLastMatchInLine(i,o,t+1,s);if(a)return a}return null}static _findLastMatchInLine(e,t,i,s){let n,r=null;for(e.reset(0);n=e.next(t);)r=l(new o.Q(i,n.index+1,i,n.index+1+n[0].length),n,s);return r}}function u(e,t,i,s,n){return function(e,t,i,s,n){if(0===s)return!0;const r=t.charCodeAt(s-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s);if(0!==e.get(i))return!0}return!1}(e,t,0,s,n)&&function(e,t,i,s,n){if(s+n===i)return!0;const r=t.charCodeAt(s+n);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s+n-1);if(0!==e.get(i))return!0}return!1}(e,t,i,s,n)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const n=i.index,r=i[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){s.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||u(this._wordSeparators,e,t,n,r))return i}while(i);return null}}},43932:(e,t,i)=>{e.exports=i(50629)},44026:(e,t,i)=>{"use strict";i.d(t,{tz:()=>a,yy:()=>n});const s={0:" ",1:"u",2:"r"},n=16777215,r=4278190080;class o{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,s=e%32,n=this._states[i];this._states[i]=t?n|1<<s:n&~(1<<s)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new o(e.length),this._userDefinedStates=new o(e.length),this._recoveredStates=new o(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const s=e[e.length-1];return this.getStartLineNumber(s)<=t&&this.getEndLineNumber(s)>=i};for(let i=0,s=this._startIndexes.length;i<s;i++){const s=this._startIndexes[i],r=this._endIndexes[i];if(s>n||r>n)throw new Error("startLineNumber or endLineNumber must not exceed "+n);for(;e.length>0&&!t(s,r);)e.pop();const o=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=s+((255&o)<<24),this._endIndexes[i]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&n}getEndLineNumber(e){return this._endIndexes[e]&n}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let s=0;s<this._types.length;s++)this._types[s]===e&&(this.setCollapsed(s,t),i=!0);return i}toRegion(e){return new c(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&r)>>>24)+((this._endIndexes[e]&r)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const s=Math.floor((t+i)/2);e<this.getStartLineNumber(s)?i=s:t=s+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${s[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&n,endLineNumber:this._endIndexes[e]&n,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),s=new Uint32Array(t);let n=[],r=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,s[a]=t.endLineNumber,n.push(t.type),t.type&&(r=!0)}r||(n=void 0);const o=new a(i,s,n);for(let a=0;a<t;a++)e[a].isCollapsed&&o.setCollapsed(a,!0),o.setSource(a,e[a].source);return o}static sanitizeAndMerge(e,t,i,s){i=i??Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,r=n(e,e.length),o=n(t,t.length);let a=0,c=0,l=r(0),h=o(0);const d=[];let u,g=0;const p=[];for(;l||h;){let e;if(h&&(!l||l.startLineNumber>=h.startLineNumber))l&&l.startLineNumber===h.startLineNumber?(1===h.source?e=h:(e=l,e.isCollapsed=h.isCollapsed&&(l.endLineNumber===h.endLineNumber||!s?.startsInside(l.startLineNumber+1,l.endLineNumber+1)),e.source=0),l=r(++a)):(e=h,h.isCollapsed&&0===h.source&&(e.source=2)),h=o(++c);else{let t=c,i=h;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=r(++a)}if(e){for(;u&&u.endLineNumber<e.startLineNumber;)u=d.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>g&&e.endLineNumber<=i&&(!u||u.endLineNumber>=e.endLineNumber)&&(p.push(e),g=e.startLineNumber,u&&d.push(u),u=e)}}return p}}class c{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},44320:(e,t,i)=>{"use strict";i.d(t,{K:()=>s});const s=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},44588:(e,t,i)=>{"use strict";i.d(t,{WR:()=>B,BP:()=>W});var s=i(90766),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(91508),l=i(631),h=i(55190),d=i(31450),u=i(60002),g=i(62083),p=i(17469),m=i(52903),f=i(46041),_=i(41234),v=i(36677),C=i(64454);class E{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,C.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,s=0,n=Number.MAX_VALUE,r=-1;const o=this._foldingModel.regions;for(;i<o.length;i++){if(!o.isCollapsed(i))continue;const a=o.getStartLineNumber(i)+1,c=o.getEndLineNumber(i);n<=a&&c<=r||(!e&&s<this._hiddenRanges.length&&this._hiddenRanges[s].startLineNumber===a&&this._hiddenRanges[s].endLineNumber===c?(t.push(this._hiddenRanges[s]),s++):(e=!0,t.push(new v.Q(a,1,c,1))),n=a,r=c)}(this._hasLineChanges||e||s<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==b(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let s=null;const n=e=>(s&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,s)||(s=b(this._hiddenRanges,e)),s?s.startLineNumber-1:null);for(let r=0,o=e.length;r<o;r++){let s=e[r];const o=n(s.startLineNumber);o&&(s=s.setStartPosition(o,i.getLineMaxColumn(o)),t=!0);const a=n(s.endLineNumber);a&&(s=s.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[r]=s}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function b(e,t){const i=(0,f.hw)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var S,y=i(76495),w=i(78209),R=i(32848),L=i(46109),T=i(44026),x=i(87784),k=i(58591),A=i(32500),N=i(78381),I=i(56942),O=i(50091),D=i(79400),M=i(23750),P=i(84001),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=new R.N1("foldingEnabled",!1);let B=class extends a.jG{static{S=this}static{this.ID="editor.contrib.folding"}static get(e){return e.getContribution(S.ID)}static getFoldingRangeProviders(e,t){const i=e.foldingRangeProvider.ordered(t);return S._foldingRangeSelector?.(i,t)??i}constructor(e,t,i,s,n,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new W(e);const o=this.editor.getOptions();this._isEnabled=o.get(43),this._useFoldingProviders="indentation"!==o.get(44),this._unfoldOnClickAfterEndOfLine=o.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=o.get(46),this.updateDebounceInfo=n.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new L.rv(e),this.foldingDecorationProvider.showFoldingControls=o.get(111),this.foldingDecorationProvider.showFoldingHighlights=o.get(45),this.foldingEnabled=H.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(111)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(111),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new E(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new s.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new s.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler?.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider?.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider?.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new y.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=S.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new x.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){this.hiddenRangeModel?.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new N.W,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=(0,s.SS)((e=>i.compute(e)));return n.then((i=>{if(i&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(s=h.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const n=this.editor.getSelections();e.update(i,function(e){if(!e||0===e.length)return{startsInside:()=>!1};return{startsInside(t,i){for(const s of e){const e=s.startLineNumber;if(e>=t&&e<=i)return!0}return!1}}}(n)),s?.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,r.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const s of t){const t=s.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,r.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,s=e.target.element.offsetLeft;if(t.offsetX-s<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,s=this.mouseDownInfo.iconClicked,n=e.target.range;if(!n||n.startLineNumber!==i)return;if(s){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||n.startColumn!==e.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const n=r.isCollapsed;if(s||n){let s=[];if(e.event.altKey){const e=e=>!e.containedBy(r)&&!r.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&s.push(t);0===s.length&&(s=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(r))e.isCollapsed===n&&s.push(e);!n&&i&&0!==s.length||s.push(r)}t.toggleCollapseState(s),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};B=S=F([U(1,R.fN),U(2,p.JZ),U(3,k.Ot),U(4,A.ILanguageFeatureDebounceService),U(5,I.ILanguageFeaturesService)],B);class W{constructor(e){this.editor=e,this._onDidChange=new _.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class V extends d.ks{runEditorCommand(e,t,i){const s=e.get(p.JZ),n=B.get(t);if(!n)return;const r=n.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((e=>{if(e){this.invoke(n,e,t,i,s);const r=t.getSelection();r&&n.reveal(r.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function z(e){if(!l.b0(e)){if(!l.Gv(e))return!1;const t=e;if(!l.b0(t.levels)&&!l.Et(t.levels))return!1;if(!l.b0(t.direction)&&!l.Kg(t.direction))return!1;if(!l.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(l.Et)))return!1}return!0}class G extends V{static{this.ID_PREFIX="editor.foldLevel"}static{this.ID=e=>G.ID_PREFIX+e}getFoldingLevel(){return parseInt(this.id.substr(G.ID_PREFIX.length))}invoke(e,t,i){(0,m.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}(0,d.HW)(B.ID,B,0),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfold",label:w.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=s&&s.levels||1,r=this.getLineNumbers(s,i);s&&"up"===s.direction?(0,m.dN)(t,!1,n,r):(0,m.uV)(t,!1,n,r)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldRecursively",label:w.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2142),weight:100}})}invoke(e,t,i,s){(0,m.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.fold",label:w.kg("foldAction.label","Fold"),alias:"Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=this.getLineNumbers(s,i),r=s&&s.levels,o=s&&s.direction;"number"!==typeof r&&"string"!==typeof o?(0,m.W8)(t,!0,n):"up"===o?(0,m.dN)(t,!0,r||1,n):(0,m.uV)(t,!0,r||1,n)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldRecursively",label:w.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2140),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.uV)(t,!0,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFoldRecursively",label:w.kg("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,3114),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAll",label:w.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!0)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAll",label:w.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!1)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllBlockComments",label:w.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2138),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).comments;if(s&&s.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,c.bm)(s.blockCommentStartToken));(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllMarkerRegions",label:w.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2077),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:w.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2078),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!1)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllExcept",label:w.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2136),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!0,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllExcept",label:w.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2134),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFold",label:w.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2090),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoParentFold",label:w.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.kK)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoPreviousFold",label:w.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.JX)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoNextFold",label:w.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.pr)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:w.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2135),weight:100}})}invoke(e,t,i){const s=[],n=i.getSelections();if(n){for(const e of n){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=T.tz.sanitizeAndMerge(t.regions,s,i.getModel()?.getLineCount());t.updatePost(T.tz.fromFoldRanges(e))}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.removeManualFoldingRanges",label:w.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2137),weight:100}})}invoke(e,t,i){const s=i.getSelections();if(s){const i=[];for(const e of s){const{startLineNumber:t,endLineNumber:s}=e;i.push(s>=t?{startLineNumber:t,endLineNumber:s}:{endLineNumber:s,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let j=1;j<=7;j++)(0,d.xX)(new G({id:G.ID(j),label:w.kg("foldLevelAction.label","Fold Level {0}",j),alias:`Fold Level ${j}`,precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2048|21+j),weight:100}}));O.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof D.r))throw(0,r.Qg)();const s=e.get(I.ILanguageFeaturesService),o=e.get(M.IModelService).getModel(i);if(!o)throw(0,r.Qg)();const a=e.get(P.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const c=e.get(p.JZ),l=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new y.hW(o,c,h);let u=d;if("indentation"!==l){const e=B.getFoldingRangeProviders(s,o);e.length&&(u=new x.M(o,e,(()=>{}),h,d))}const m=await u.compute(n.XO.None),f=[];try{if(m)for(let e=0;e<m.length;e++){const t=m.getType(e);f.push({start:m.getStartLineNumber(e),end:m.getEndLineNumber(e),kind:t?g.lO.fromValue(t):void 0})}return f}finally{u.dispose()}}))},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},44798:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(32371),a=i(84585),c=i(45538),l=i(84001),h=i(47612),d=i(32500),u=i(78381),g=i(56942),p=i(74243),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{static{this.ID="editor.contrib.viewportSemanticTokens"}constructor(e,t,i,n,r,o){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=o.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new s.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const c=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{c()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),c()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),c()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),c()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),c())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),c()}))),c()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.K)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,o.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),n=(0,s.SS)((i=>Promise.resolve((0,o.nZ)(this._provider,e,t,i)))),r=new u.W(!1);return n.then((s=>{if(this._debounceInformation.update(e,r.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:n,tokens:o}=s,a=this._semanticTokensStylingService.getStyling(n);e.tokenization.setPartialSemanticTokens(t,(0,c.toMultilineTokens2)(o,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};_=m([f(1,p.ISemanticTokensStylingService),f(2,h.Gy),f(3,l.pG),f(4,d.ILanguageFeatureDebounceService),f(5,g.ILanguageFeaturesService)],_),(0,r.HW)(_.ID,_,1)},44915:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(16980),o=i(24939),a=i(31450),c=i(75326),l=i(60002),h=i(78209),d=i(32848),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=new d.N1("selectionAnchorSet",!1);let m=class{static{s=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(c.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new r.Bc).appendText((0,h.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.xE)((0,h.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(c.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m=s=u([g(1,d.fN)],m);class f extends a.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2080),weight:100}})}async run(e,t){m.get(t)?.setSelectionAnchor()}}class _ extends a.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){m.get(t)?.goToSelectionAnchor()}}class v extends a.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,o.m5)(2089,2089),weight:100}})}async run(e,t){m.get(t)?.selectFromAnchorToCursor()}}class C extends a.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:l.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){m.get(t)?.cancelSelectionAnchor()}}(0,a.HW)(m.ID,m,4),(0,a.Fl)(f),(0,a.Fl)(_),(0,a.Fl)(v),(0,a.Fl)(C)},45345:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1z",clipRule:"evenodd"}))},45538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>f});i(25982);var s=i(47612),n=i(18801),r=i(83069),o=i(36677),a=i(64454);class c{static create(e,t){return new c(e,new l(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[s,n,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new c(this._startLineNumber,s),new c(this._startLineNumber+r,n)]}applyEdit(e,t){const[i,s,n]=(0,a.W)(t);this.acceptEdit(e,i,s,n,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,i,s,n),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const s=this._tokens.getMaxDeltaLine();if(!(t>=s+1)){if(t<0&&i>=s+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,s,n){if(0===t&&0===i)return;const r=e.lineNumber-this._startLineNumber;if(r<0)return void(this._startLineNumber+=t);r>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(r,e.column-1,t,i,s,n)}}class l{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),s=this._getEndCharacter(e-1);return new o.Q(0,t+1,i,s+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const s=t+Math.floor((i-t)/2),n=this._getDeltaLine(s);if(n<e)t=s+1;else{if(!(n>e)){let n=s;for(;n>t&&this._getDeltaLine(n-1)===e;)n--;let r=s;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new h(this._tokens.subarray(4*n,4*r+4))}i=s-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,s){const n=this._tokens,r=this._tokenCount;let o=0,a=!1,c=0;for(let l=0;l<r;l++){const r=4*l,h=n[r],d=n[r+1],u=n[r+2],g=n[r+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&d<=s))a=!0;else{if(0===o&&(c=h),a){const e=4*o;n[e]=h-c,n[e+1]=d,n[e+2]=u,n[e+3]=g}o++}}return this._tokenCount=o,c}split(e,t,i,s){const n=this._tokens,r=this._tokenCount,o=[],a=[];let c=o,h=0,d=0;for(let l=0;l<r;l++){const r=4*l,o=n[r],u=n[r+1],g=n[r+2],p=n[r+3];if(o>e||o===e&&g>=t){if(o<i||o===i&&u<=s)continue;c!==a&&(c=a,h=0,d=o)}c[h++]=o-d,c[h++]=u,c[h++]=g,c[h++]=p}return[new l(new Uint32Array(o)),new l(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,s,n){const r=this._tokens,o=this._tokenCount,a=s-t;let c=0,l=!1;for(let h=0;h<o;h++){const d=4*h;let u=r[d],g=r[d+1],p=r[d+2];const m=r[d+3];if(u<t||u===t&&p<=i){c++;continue}if(u===t&&g<i)u===s&&p>n?p-=n-i:p=i;else if(u===t&&g===i){if(!(u===s&&p>n)){l=!0;continue}p-=n-i}else if(u<s||u===s&&g<n){if(!(u===s&&p>n)){l=!0;continue}u=t,g=i,p=g+(p-n)}else if(u>s){if(0===a&&!l){c=o;break}u-=a}else{if(!(u===s&&g>=n))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=n-i,p-=n-i}const f=4*c;r[f]=u,r[f+1]=g,r[f+2]=p,r[f+3]=m,c++}this._tokenCount=c}acceptInsertText(e,t,i,s,n,r){const o=0===i&&1===s&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,c=this._tokenCount;for(let l=0;l<c;l++){const r=4*l;let c=a[r],h=a[r+1],d=a[r+2];if(!(c<e||c===e&&d<t)){if(c===e&&d===t){if(!o)continue;d+=1}else if(c===e&&h<t&&t<d)0===i?d+=s:d=t;else{if(c===e&&h===t&&o)continue;if(c===e)if(c+=i,0===i)h+=s,d+=s;else{const e=d-h;h=n+(h-t),d=h+e}else c+=i}a[r]=c,a[r+1]=h,a[r+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=i(10154),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=!1;let m=class{constructor(e,t,i,s){this._legend=e,this._themeService=t,this._languageService=i,this._logService=s,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),n=this._hashTable.get(e,t,s);let r;if(n)r=n.metadata;else{let n=this._legend.tokenTypes[e];const o=[];if(n){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;p;const s=this._themeService.getColorTheme().getTokenStyleMetadata(n,o,i);if("undefined"===typeof s)r=2147483647;else{if(r=0,"undefined"!==typeof s.italic){r|=1|(s.italic?1:0)<<11}if("undefined"!==typeof s.bold){r|=2|(s.bold?2:0)<<11}if("undefined"!==typeof s.underline){r|=4|(s.underline?4:0)<<11}if("undefined"!==typeof s.strikethrough){r|=8|(s.strikethrough?8:0)<<11}if(s.foreground){r|=16|s.foreground<<15}0===r&&(r=2147483647)}}else r=2147483647,n="not-in-legend";this._hashTable.add(e,t,s,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,s,n){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${s} is outside the previous data (length ${n}).`))}};function f(e,t,i){const s=e.data,n=e.data.length/5|0,r=Math.max(Math.ceil(n/1024),400),o=[];let a=0,l=1,h=0;for(;a<n;){const e=a;let d=Math.min(e+r,n);if(d<n){let t=d;for(;t-1>e&&0===s[5*t];)t--;if(t-1===e){let e=d;for(;e+1<n&&0===s[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,p=0,m=0,f=0;for(;a<d;){const e=5*a,n=s[e],r=s[e+1],o=l+n|0,c=0===n?h+r|0:r,d=c+s[e+2]|0,_=s[e+3],v=s[e+4];if(d<=c)t.warnInvalidLengthSemanticTokens(o,c+1);else if(m===o&&f>c)t.warnOverlappingSemanticTokens(o,c+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=o),u[g]=o-p,u[g+1]=c,u[g+2]=d,u[g+3]=e,g+=4,m=o,f=d)}l=o,h=c,a++}g!==u.length&&(u=u.subarray(0,g));const _=c.create(p,u);o.push(_)}return o}m=u([g(1,s.Gy),g(2,d.L),g(3,n.rr)],m);class _{constructor(e,t,i,s){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=s,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const s=this._hashFunc(e,t,i);let n=this._elements[s];for(;n;){if(n.tokenTypeIndex===e&&n.tokenModifierSet===t&&n.languageId===i)return n;n=n.next}return null}add(e,t,i,s){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,s))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},46041:(e,t,i)=>{"use strict";function s(e,t){const i=function(e,t,i=e.length-1){for(let s=i;s>=0;s--){if(t(e[s]))return s}return-1}(e,t);if(-1!==i)return e[i]}function n(e,t){const i=r(e,t);return-1===i?void 0:e[i]}function r(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?n=i+1:r=i}return n-1}function o(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}i.d(t,{Cn:()=>l,TM:()=>u,Uk:()=>s,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>d,lx:()=>n,oH:()=>g,ot:()=>h,vJ:()=>c});class c{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(c.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function l(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>0&&(i=n)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>=0&&(i=n)}return i}function d(e,t){return l(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let s=1;s<e.length;s++){t(e[s],e[i])>0&&(i=s)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}},46109:(e,t,i)=>{"use strict";i.d(t,{E0:()=>d,k0:()=>u,rv:()=>v});var s=i(10350),n=i(87289),r=i(78209),o=i(66261),a=i(61394),c=i(47612),l=i(25689);const h=(0,o.x1A)("editor.foldBackground",{light:(0,o.JO0)(o.seu,.3),dark:(0,o.JO0)(o.seu,.3),hcDark:null,hcLight:null},(0,r.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,o.x1A)("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},(0,r.kg)("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),(0,o.x1A)("editorGutter.foldingControlForeground",o.t4B,(0,r.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const d=(0,a.pU)("folding-expanded",s.W.chevronDown,(0,r.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",s.W.chevronRight,(0,r.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,r.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",d,(0,r.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,c.Yf)(h),position:1},f=(0,r.kg)("linesCollapsed","Click to expand the range."),_=(0,r.kg)("linesExpanded","Click to collapse the range.");class v{static{this.COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(u)})}static{this.MANUALLY_COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:l.L.asClassName(g)})}static{this.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f})}static{this.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f})}static{this.EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(d),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:l.L.asClassName(p),linesDecorationsTooltip:_})}static{this.NO_CONTROLS_EXPANDED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0})}static{this.HIDDEN_RANGE_DECORATION=n.kI.register({description:"folding-hidden-range-decoration",stickiness:1})}constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}},46133:(e,t,i)=>{e.exports=i(64066)},46304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(15542).then(i.bind(i,15542))})},46359:(e,t,i)=>{"use strict";i.d(t,{O:()=>r});var s=i(66782),n=i(631);const r=new class{constructor(){this.data=new Map}add(e,t){s.ok(n.Kg(e)),s.ok(n.Gv(t)),s.ok(!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}}},46576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(42182).then(i.bind(i,42182))})},46606:(e,t,i)=>{"use strict";var s=i(31450),n=i(97681),r=i(36677),o=i(60002),a=i(38728),c=i(50091);class l extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartLeft(e);return i||new r.Q(1,1,1,1)}}class h extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartRight(e);if(i)return i;const s=e.model.getLineCount(),o=e.model.getLineMaxColumn(s);return new r.Q(s,o,s,o)}}class d extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartLeft(e,t,i,r)}}c.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");c.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartRight(e,t,i)}}(0,s.E_)(new l),(0,s.E_)(new h),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},46648:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(60110).then(i.bind(i,60110))})},46649:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5M4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0M8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},46686:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(35888).then(i.bind(i,35888))})},46958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>A,qg:()=>N});var s=i(90766),n=i(79326),r=i(74320),o=i(74027),a=i(98067),c=i(91508);const l="**",h="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let s=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!s&&!n){i.push(r),r="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":n=!0;break;case"]":n=!1}r+=o}return r&&i.push(r),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===l)))t=".*";else{let e=!1;i.forEach(((s,n)=>{if(s===l){if(e)return;t+=p(2,n===i.length-1)}else{let e=!1,r="",o=!1,a="";for(const i of s)if("}"!==i&&e)r+=i;else if(!o||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const i=`(?:${m(r,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,r="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,c.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,c.bm)(i):"^",a+=e}n<i.length-1&&(i[n+1]!==l||n+2<i.length)&&(t+=d)}e=s===l}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,C=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,E=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.qK(1e4),w=function(){return!1},R=function(){return null};function L(e,t){if(!e)return R;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const s=`${i}_${!!t.trimForExclusions}`;let n,r=y.get(s);return r||(r=_.test(i)?function(e,t){return function(i,s){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(n=v.exec(x(i,t)))?function(e,t){const i=`/${e}`,s=`\\${e}`,n=function(n,r){return"string"!==typeof n?null:r?r===e?t:null:n===e||n.endsWith(i)||n.endsWith(s)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}(n[1],i):(t.trimForExclusions?E:C).test(i)?function(e,t){const i=I(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==R)),e),s=i.length;if(!s)return R;if(1===s)return i[0];const n=function(t,s){for(let n=0,r=i.length;n<r;n++)if(i[n](t,s))return e;return null},r=i.find((e=>!!e.allBasenames));r&&(n.allBasenames=r.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(n.allPaths=o);return n}(i,t):(n=b.exec(x(i,t)))?k(n[1].substr(1),i,!0):(n=S.exec(x(i,t)))?k(n[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return R}}(i),y.set(s,r)),T(r,e)}function T(e,t){if("string"===typeof t)return e;const i=function(i,s){return(0,n._1)(i,t.base,!a.j9)?e((0,c.NB)(i.substr(t.base.length),o.Vn),s):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const s=o.Vn===o.SA.sep,n=s?e:e.replace(g,o.Vn),r=o.Vn+n,a=o.SA.sep+e;let c;return c=i?function(i,o){return"string"!==typeof i||i!==n&&!i.endsWith(r)&&(s||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!==typeof i||i!==n&&(s||i!==e)?null:t},c.allPaths=[(i?"*/":"./")+e],c}function A(e,t,i){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=L(e,t);if(i===R)return w;const s=function(e,t){return!!i(e,t)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return R;const n=L(e,i);if(n===R)return R;if("boolean"===typeof t)return n;if(t){const i=t.when;if("string"===typeof i){const t=(t,r,o,a)=>{if(!a||!n(t,r))return null;const c=a(i.replace("$(basename)",(()=>o)));return(0,s.Qg)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==R))),n=i.length;if(!n)return R;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let r=0,o=i.length;r<o;r++){const o=i[r](e,t);if("string"===typeof o)return o;(0,s.Qg)(o)&&(n||(n=[]),n.push(o))}return n?(async()=>{for(const e of n){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,n){let r,a;for(let c=0,l=i.length;c<l;c++){const l=i[c];l.requiresSiblings&&n&&(t||(t=(0,o.P8)(e)),r||(r=t.substr(0,t.length-(0,o.LC)(e).length)));const h=l(e,t,r,n);if("string"===typeof h)return h;(0,s.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(r.allBasenames=a.allBasenames);const c=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);c.length&&(r.allPaths=c);return r}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const s=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let n;if(t){n=[];for(let e=0,i=s.length;e<i;e++)n.push(t)}else n=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const r=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=s.indexOf(t);return-1!==i?n[i]:null};r.basenames=s,r.patterns=n,r.allBasenames=s;const o=e.filter((e=>!e.basenames));return o.push(r),o}},47210:(e,t,i)=>{"use strict";var s=i(5662),n=i(89403),r=i(31450),o=i(80301),a=i(78209),c=i(59599),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};const d="ignoreUnusualLineTerminators";let u=class extends s.jG{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,d)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(92))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.P8)(e.uri)),primaryButton:a.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,d,i)}(this._codeEditorService,e,!0)}};u=l([h(1,c.X),h(2,o.T)],u),(0,r.HW)(u.ID,u,1)},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>c,$:()=>l});var s=i(60413);const n=new WeakMap;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class o{static getSameOriginWindowChain(e){let t=n.get(e);if(!t){t=[],n.set(e,t);let i,s=e;do{i=r(s),i?t.push({window:new WeakRef(s),iframeElement:s.frameElement||null}):t.push({window:new WeakRef(s),iframeElement:null}),s=i}while(s)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,s=0;const n=this.getSameOriginWindowChain(e);for(const r of n){const e=r.window.deref();if(i+=e?.scrollY??0,s+=e?.scrollX??0,e===t)break;if(!r.iframeElement)break;const n=r.iframeElement.getBoundingClientRect();i+=n.top,s+=n.left}return{top:i,left:s}}}var a=i(98067);class c{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.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,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=o.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{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(s.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=e.view?.devicePixelRatio||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=n?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)s.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=n?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=n?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}},47443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MirrorModel:()=>m,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>u,WorkerTextModelSyncClient:()=>g,WorkerTextModelSyncServer:()=>p});var s=i(90766),n=i(5662),r=i(79400),o=i(83069),a=i(36677),c=i(26486),l=i(91508),h=i(27414);class d{constructor(e,t,i,s){this._uri=e,this._lines=t,this._eol=i,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new o.y(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let s=0;s<t;s++)i[s]=this._lines[s].length+e;this._lineStarts=new h.N(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,l.uz)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const s=new Uint32Array(i.length-1);for(let n=1;n<i.length;n++)this._lines.splice(e.lineNumber+n-1,0,i[n]),s[n-1]=i[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,s)}}const u=6e4;class g extends n.jG{constructor(e,t,i=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new s.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(u/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,n.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>u&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.$acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const r=new n.Cm;r.add(i.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(s.toString(),e)}))),r.add(i.onWillDispose((()=>{this._stopModelSync(s)}))),r.add((0,n.s)((()=>{this._proxy.$acceptRemovedModel(s)}))),this._syncedModels[s]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,n.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new m(r.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class m extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const s=this._lines[i],n=this.offsetAt(new o.y(i+1,1)),r=s.matchAll(e);for(const e of r)(e.index||0===e.index)&&(e.index=e.index+n),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=(0,c.Th)(e.column,(0,c.Io)(t),this._lines[e.lineNumber-1],0);return i?new a.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,n="",r=0,o=[];return{*[Symbol.iterator](){for(;;)if(r<o.length){const e=n.substring(o[r].start,o[r].end);r+=1,yield e}else{if(!(s<t.length))break;n=t[s],o=i(n,e),r=0,s+=1}}}}getLineWords(e,t){const i=this._lines[e-1],s=this._wordenize(i,t),n=[];for(const r of s)n.push({word:i.substring(r.start,r.end),startColumn:r.start+1,endColumn:r.end+1});return n}_wordenize(e,t){const i=[];let s;for(t.lastIndex=0;(s=t.exec(e))&&0!==s[0].length;)i.push({start:s.index,end:s.index+s[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,s=e.endLineNumber-1,n=[];n.push(this._lines[i].substring(e.startColumn-1));for(let r=i+1;r<s;r++)n.push(this._lines[r]);return n.push(this._lines[s].substring(0,e.endColumn-1)),n.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,s=!1;if(t<1)t=1,i=1,s=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>e&&(i=e,s=!0)}return s?{lineNumber:t,column:i}:e}}},47508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,l:()=>n});var s=i(63591);const n=(0,s.u1)("contextViewService"),r=(0,s.u1)("contextMenuService")},47579:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,I_:()=>r,To:()=>n,Ym:()=>o});const s=(0,i(63591).u1)("undoRedoService");class n{constructor(e,t){this.resource=e,this.elements=t}}class r{static{this._ID=0}constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new r}}class o{static{this._ID=0}constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new o}}},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>d,Gy:()=>c,Pz:()=>h,Yf:()=>l,lR:()=>p,zy:()=>g});var s=i(41234),n=i(5662),r=i(63591),o=i(46359),a=i(86723);const c=(0,r.u1)("themeService");function l(e){return{id:e}}function h(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,n.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}o.O.add(d.ThemingContribution,u);class p extends n.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},47625:(e,t,i)=>{"use strict";i.d(t,{x:()=>u,l:()=>d});var s=i(8597),n=i(48196),r=i(42904),o=i(83619),a=i(5662),c=i(10146),l=i(78209);const h=s.$,d={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=s.BC(e,h(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,n.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){const e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let i=1;i<e.length;i++)s.BC(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[i],this.matches?this.matches.chordPart:null);const 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(){s.w_(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const s=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,s.ctrlKey,Boolean(i?.ctrlKey),s.separator),t.shiftKey&&this.renderKey(e,s.shiftKey,Boolean(i?.shiftKey),s.separator),t.altKey&&this.renderKey(e,s.altKey,Boolean(i?.altKey),s.separator),t.metaKey&&this.renderKey(e,s.metaKey,Boolean(i?.metaKey),s.separator);const n=t.keyLabel;n&&this.renderKey(e,n,Boolean(i?.keyCode),"")}renderKey(e,t,i,n){s.BC(e,this.createKeyElement(t,i?".highlight":"")),n&&s.BC(e,h("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){s.BC(e,this.createKeyElement((0,l.kg)("unbound","Unbound")))}createKeyElement(e,t=""){const i=h("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,c.aI)(e.firstPart,t.firstPart)&&(0,c.aI)(e.chordPart,t.chordPart)}}},47661:(e,t,i)=>{"use strict";function s(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>o,Q1:()=>a,bU:()=>n,hB:()=>r});class n{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.l=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=e.a,o=Math.max(t,i,s),a=Math.min(t,i,s);let c=0,l=0;const h=(a+o)/2,d=o-a;if(d>0){switch(l=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:c=(i-s)/d+(i<s?6:0);break;case i:c=(s-t)/d+2;break;case s:c=(t-i)/d+4}c*=60,c=Math.round(c)}return new r(c,l,h,n)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:s,a:o}=e;let a,c,l;if(0===i)a=c=l=s;else{const e=s<.5?s*(1+i):s+i-s*i,n=2*s-e;a=r._hue2rgb(n,e,t+1/3),c=r._hue2rgb(n,e,t),l=r._hue2rgb(n,e,t-1/3)}return new n(Math.round(255*a),Math.round(255*c),Math.round(255*l),o)}}class o{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.v=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=Math.max(t,i,s),r=n-Math.min(t,i,s),a=0===n?0:r/n;let c;return c=0===r?0:n===t?((i-s)/r%6+6)%6:n===i?(s-t)/r+2:(t-i)/r+4,new o(Math.round(60*c),a,n,e.a)}static toRGBA(e){const{h:t,s:i,v:s,a:r}=e,o=s*i,a=o*(1-Math.abs(t/60%2-1)),c=s-o;let[l,h,d]=[0,0,0];return t<60?(l=o,h=a):t<120?(l=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(l=a,d=o):t<=360&&(l=o,d=a),l=Math.round(255*(l+c)),h=Math.round(255*(h+c)),d=Math.round(255*(d+c)),new n(l,h,d,r)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return s(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(t,i,s,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new n(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-i),e.rgba.b-r*(e.rgba.b-s),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const s=e.getRelativeLuminance(),n=t.getRelativeLuminance();return i=i*(n-s)/n,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const s=e.getRelativeLuminance();return i=i*(s-t.getRelativeLuminance())/s,e.darken(i)}static{this.white=new a(new n(255,255,255,1))}static{this.black=new a(new n(0,0,0,1))}static{this.red=new a(new n(255,0,0,1))}static{this.blue=new a(new n(0,0,255,1))}static{this.green=new a(new n(0,255,0,1))}static{this.cyan=new a(new n(0,255,255,1))}static{this.lightgrey=new a(new n(211,211,211,1))}static{this.transparent=new a(new n(0,0,0,0))}}!function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function s(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t,s=!1){return s&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6));return new e(new n(i,r,o,1))}if(9===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6)),a=16*s(t.charCodeAt(7))+s(t.charCodeAt(8));return new e(new n(i,r,o,a/255))}if(4===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3));return new e(new n(16*i+i,16*r+r,16*o+o))}if(5===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3)),a=s(t.charCodeAt(4));return new e(new n(16*i+i,16*r+r,16*o+o,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>L,dt:()=>E,f3:()=>w,l1:()=>S,ob:()=>C,p3:()=>k,r3:()=>A});var s=i(18447),n=i(64383),r=i(26690),o=i(5662),a=i(78381),c=i(631),l=i(79400),h=i(83069),d=i(36677),u=i(18938),g=i(29319),p=i(78209),m=i(27195),f=i(50091),_=i(32848),v=i(56942);const C={Visible:i(89100).dg,HasFocusedSuggestion:new _.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},E=new m.D8("suggestWidgetStatusBar");class b{constructor(e,t,i,s){this.position=e,this.completion=t,this.container=i,this.provider=s,this.isInvalid=!1,this.score=r.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,d.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range.insert)||d.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof s.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,n.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class S{static{this.default=new S}constructor(e=2,t=new Set,i=new Set,s=new Map,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=s,this.showDeprecated=n}}let y;function w(){return y}class R{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}async function L(e,t,i,r=S.default,c={triggerKind:0},l=s.XO.None){const h=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new d.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):d.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new o.Cm,v=[];let C=!1;const E=(e,t,s)=>{let n=!1;if(!t)return n;for(const o of t.suggestions)if(!r.kindFilter.has(o.kind)){if(!r.showDeprecated&&o?.tags?.includes(1))continue;o.range||(o.range=m),o.sortText||(o.sortText="string"===typeof o.label?o.label:o.label.label),!C&&o.insertTextRules&&4&o.insertTextRules&&(C=g.fr.guessNeedsClipboard(o.insertText)),f.push(new b(i,o,t,e)),n=!0}return(0,o.Xm)(t)&&_.add(t),v.push({providerName:e._debugDisplayName??"unknown_provider",elapsedProvider:t.duration??-1,elapsedOverall:s.elapsed()}),n},w=(async()=>{if(!y||r.kindFilter.has(27))return;const e=r.providerItemsToReuse.get(y);if(e)return void e.forEach((e=>f.push(e)));if(r.providerFilter.size>0&&!r.providerFilter.has(y))return;const s=new a.W,n=await y.provideCompletionItems(t,i,c,l);E(y,n,s)})();for(const s of e.orderedGroups(t)){let e=!1;if(await Promise.all(s.map((async s=>{if(r.providerItemsToReuse.has(s)){const t=r.providerItemsToReuse.get(s);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(r.providerFilter.size>0)||r.providerFilter.has(s))try{const n=new a.W,r=await s.provideCompletionItems(t,i,c,l);e=E(s,r,n)||e}catch(o){(0,n.M_)(o)}}))),e||l.isCancellationRequested)break}return await w,l.isCancellationRequested?(_.dispose(),Promise.reject(new n.AL)):new R(f.sort((L=r.snippetSortOrder,x.get(L))),C,{entries:v,elapsed:h.elapsed()},_);var L}function T(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const x=new Map;function k(e,t){e.getContribution("editor.contrib.suggestController")?.triggerSuggest((new Set).add(t),void 0,!0)}x.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return T(e,t)})),x.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return T(e,t)})),x.set(1,T),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,n,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(h.y.isIPosition(n)),(0,c.j)("string"===typeof r||!r),(0,c.j)("number"===typeof o||!o);const{completionProvider:a}=e.get(v.ILanguageFeaturesService),d=await e.get(u.ITextModelService).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=d.object.textEditorModel.validatePosition(n),c=await L(a,d.object.textEditorModel,i,void 0,{triggerCharacter:r??void 0,triggerKind:r?1:0});for(const n of c.items)t.length<(o??0)&&t.push(n.resolve(s.XO.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>c.disposable.dispose()),100)}}finally{d.dispose()}}));class A{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},48196:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,i:()=>r});let s={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}};function n(e){s=e}function r(){return s}},48215:()=>{},48279:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(24939),a=i(5662),c=i(31450),l=i(80301),h=i(60534),d=i(36677),u=i(60002),g=i(10920),p=i(56942),m=i(49079),f=i(36998),_=i(78209),v=i(87213),C=i(50091),E=i(32848),b=i(63591),S=i(73823),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{static{this.ID="editor.contrib.autoFormat"}constructor(e,t,i,s){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=s,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.y;for(const s of t.autoFormatTriggerCharacters)i.add(s.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),r=new n.Qi,o=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void o.dispose();for(let t=0,s=e.changes.length;t<s;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void o.dispose()}}));(0,m._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then((e=>{r.token.isCancellationRequested||(0,s.EI)(e)&&(this._accessibilitySignalService.playSignal(v.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{o.dispose()}))}};R=y([w(1,p.ILanguageFeaturesService),w(2,g.IEditorWorkerService),w(3,v.Nt)],R);let L=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,S.ke.None,n.XO.None,!1).catch(r.dz))}};L=y([w(1,p.ILanguageFeaturesService),w(2,b._Y)],L);class T extends c.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:E.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(b._Y),s=e.get(S.N8);await s.showWhile(i.invokeFunction(m.vg,t,1,S.ke.None,n.XO.None,!0),250)}}}class x extends c.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:E.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(b._Y),s=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new d.Q(e.startLineNumber,1,e.startLineNumber,s.getLineMaxColumn(e.startLineNumber)):e)),o=e.get(S.N8);await o.showWhile(i.invokeFunction(m.jX,t,r,1,S.ke.None,n.XO.None,!0),250)}}(0,c.HW)(R.ID,R,2),(0,c.HW)(L.ID,L,2),(0,c.Fl)(T),(0,c.Fl)(x),C.w.registerCommand("editor.action.format",(async e=>{const t=e.get(l.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(C.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},48448:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(66262).then(i.bind(i,66262))}),(0,s.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(66262).then(i.bind(i,66262))})},48495:(e,t,i)=>{"use strict";function s(e,t){const i=[],s=[];for(const n of e)t.has(n)||i.push(n);for(const n of t)e.has(n)||s.push(n);return{removed:i,added:s}}function n(e,t){const i=new Set;for(const s of t)e.has(s)&&i.add(s);return i}i.d(t,{E:()=>n,Z:()=>s})},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>L,jX:()=>T,vg:()=>k,_V:()=>N});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(58925),c=i(631),l=i(79400),h=i(50868),d=i(34326),u=i(83069),g=i(36677),p=i(75326),m=i(10920),f=i(18938),_=i(36998),v=i(50091);class C{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class E{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(C.toKey(e))}has(e){return this._set.has(C.toKey(e))}}var b=i(63591),S=i(56942),y=i(18801),w=i(87213);function R(e,t,i){const s=[],n=new E,r=e.ordered(i);for(const a of r)s.push(a),a.extensionId&&n.add(a.extensionId);const o=t.ordered(i);for(const a of o){if(a.extensionId){if(n.has(a.extensionId))continue;n.add(a.extensionId)}s.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return s}class L{static{this._selectors=new a.w}static setFormatterSelector(e){return{dispose:L._selectors.unshift(e)}}static async select(e,t,i,s){if(0===e.length)return;const n=o.f.first(L._selectors);return n?await n(e,t,i,s):void 0}}async function T(e,t,i,s,n,r,o){const a=e.get(b._Y),{documentRangeFormattingEditProvider:c}=e.get(S.ILanguageFeaturesService),l=(0,d.z9)(t)?t.getModel():t,h=c.ordered(l),u=await L.select(h,l,s,2);u&&(n.report(u),await a.invokeFunction(x,u,t,i,r,o))}async function x(e,t,i,n,r,o){const a=e.get(m.IEditorWorkerService),c=e.get(y.rr),l=e.get(w.Nt);let u,f;(0,d.z9)(i)?(u=i.getModel(),f=new h.gI(i,5,void 0,r)):(u=i,f=new h.ER(i,r));const v=[];let C=0;for(const h of(0,s._j)(n).sort(g.Q.compareRangesUsingStarts))C>0&&g.Q.areIntersectingOrTouching(v[C-1],h)?v[C-1]=g.Q.fromPositions(v[C-1].getStartPosition(),h.getEndPosition()):C=v.push(h);const E=async e=>{c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(u,e,u.getFormattingOptions(),f.token)||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},b=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const s of e)for(const e of t)if(g.Q.intersectRanges(s.range,e.range))return!0;return!1},S=[],R=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const e=await t.provideDocumentRangesFormattingEdits(u,v,u.getFormattingOptions(),f.token)||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),R.push(e)}else{for(const e of v){if(f.token.isCancellationRequested)return!0;R.push(await E(e))}for(let e=0;e<v.length;++e)for(let t=e+1;t<v.length;++t){if(f.token.isCancellationRequested)return!0;if(b(R[e],R[t])){const i=g.Q.plusRange(v[e],v[t]),s=await E(i);v.splice(t,1),v.splice(e,1),v.push(i),R.splice(t,1),R.splice(e,1),R.push(s),e=0,t=0}}}for(const e of R){if(f.token.isCancellationRequested)return!0;const t=await a.computeMoreMinimalEdits(u.uri,e);t&&S.push(...t)}}finally{f.dispose()}if(0===S.length)return!1;if((0,d.z9)(i))_.c.execute(i,S,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=S,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);u.pushEditOperations([t],S.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return l.playSignal(w.Rh.format,{userGesture:o}),!0}async function k(e,t,i,s,n,r){const o=e.get(b._Y),a=e.get(S.ILanguageFeaturesService),c=(0,d.z9)(t)?t.getModel():t,l=R(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,c),h=await L.select(l,c,i,1);h&&(s.report(h),await o.invokeFunction(A,h,t,i,n,r))}async function A(e,t,i,s,n,r){const o=e.get(m.IEditorWorkerService),a=e.get(w.Nt);let c,l,u;(0,d.z9)(i)?(c=i.getModel(),l=new h.gI(i,5,void 0,n)):(c=i,l=new h.ER(i,n));try{const e=await t.provideDocumentFormattingEdits(c,c.getFormattingOptions(),l.token);if(u=await o.computeMoreMinimalEdits(c.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!u||0===u.length)return!1;if((0,d.z9)(i))_.c.execute(i,u,2!==s),2!==s&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);c.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(w.Rh.format,{userGesture:r}),!0}function N(e,t,i,s,n,o,a){const c=t.onTypeFormattingEditProvider.ordered(i);return 0===c.length||c[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(c[0].provideOnTypeFormattingEdits(i,s,n,o,a)).catch(r.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}v.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,o,a]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(g.Q.isIRange(o));const h=e.get(f.ITextModelService),d=e.get(m.IEditorWorkerService),u=e.get(S.ILanguageFeaturesService),p=await h.createModelReference(i);try{return async function(e,t,i,n,o,a){const c=t.documentRangeFormattingEditProvider.ordered(i);for(const l of c){const t=await Promise.resolve(l.provideDocumentRangeFormattingEdits(i,n,o,a)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(d,u,p.object.textEditorModel,g.Q.lift(o),a,n.XO.None)}finally{p.dispose()}})),v.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,o]=t;(0,c.j)(l.r.isUri(i));const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),u=await a.createModelReference(i);try{return async function(e,t,i,n,o){const a=R(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const c of a){const t=await Promise.resolve(c.provideDocumentFormattingEdits(i,n,o)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(h,d,u.object.textEditorModel,o,n.XO.None)}finally{u.dispose()}})),v.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,s,r,o]=t;(0,c.j)(l.r.isUri(i)),(0,c.j)(u.y.isIPosition(s)),(0,c.j)("string"===typeof r);const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),g=await a.createModelReference(i);try{return N(h,d,g.object.textEditorModel,u.y.lift(s),r,o,n.XO.None)}finally{g.dispose()}}))},49099:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,e:()=>n});const s=(0,i(63591).u1)("openerService");function n(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},49150:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(92016).then(i.bind(i,92016))})},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,FB:()=>d,FY:()=>E,Lj:()=>b,N2:()=>u,PO:()=>v,Rn:()=>m,X2:()=>S,XL:()=>C,YY:()=>f,ZK:()=>p,fL:()=>_,zV:()=>g});var s=i(51241),n=i(22311),r=i(94958);let o,a,c,l;function h(e){o=e}function d(e){a=e}function u(e){c=e}class g{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return c({owner:i,debugName:()=>{const e=(0,n.qQ)(s);if(void 0!==e)return e;const 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(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:s},(e=>s(this.read(e),e)))}flatten(){return c({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class p extends g{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){const i=new C(e,t);try{e(i)}finally{i.finish()}}function f(e){if(l)e(l);else{const t=new C(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function _(e,t){const i=new C(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):m(t,i)}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],(0,r.tZ)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:i,observable:s}=e[t];i.endUpdate(s)}this.updatingObservers=null,(0,r.tZ)()?.handleEndTransaction()}}function E(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new b(i,t,s.nx)}class b extends p{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let s;t||(t=s=new C((()=>{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),(0,r.tZ)()?.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new y(i,t,s.nx)}class y extends b{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},49265:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,v:()=>c});var s=i(7936),n=i(71964),r=i(32799),o=i(26685);class a{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static paste(e,t,i,s,n,r){return o.Dr.getEdits(e,t,i,s,n,r)}static tab(e,t,i){return o.h0.getCommands(e,t,i)}static compositionType(e,t,i,s,n,r,a,c){return o.YA.getEdits(e,t,i,s,n,r,a,c)}static compositionEndWithInterceptors(e,t,i,s,a,c){if(!s)return null;let l=null;for(const n of s)if(null===l)l=n.insertedText;else if(l!==n.insertedText)return null;if(!l||1!==l.length)return null;const h=l;let d=!1;for(const n of s)if(0!==n.deletedText.length){d=!0;break}if(d){if(!(0,o.ey)(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;const e=(0,r.vG)(h);for(const t of s){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,r.vG)(t.deletedText))return null}const i=[];for(const t of a){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==s.length)return null;const c=[];for(let r=0,o=i.length;r<o;r++)c.push(new n.y(i[r],s[r].deletedText,t.surroundingPairs[h]));return new r.vY(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=o.K4.getEdits(t,i,a,c,h);if(void 0!==u)return u;const g=o.oi.getEdits(t,i,a,h,!0,!1);return void 0!==g?g:null}static typeWithInterceptors(e,t,i,s,n,r,a){const c=o.AO.getEdits(i,s,n,a,e);if(void 0!==c)return c;const l=o.dU.getEdits(i,s,n,a,e);if(void 0!==l)return l;const h=o.sx.getEdits(t,i,s,n,r,a);if(void 0!==h)return h;const d=o.oi.getEdits(i,s,n,a,!1,e);if(void 0!==d)return d;const u=o.is.getEdits(i,s,n,a,e);if(void 0!==u)return u;const g=o.kr.getEdits(t,i,s,n,a,e);return void 0!==g?g:o.Ls.getEdits(t,n,a)}static typeWithoutInterceptors(e,t,i,s,n){return o.UN.getEdits(e,s,n)}}class c{constructor(e,t,i,s,n,r){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=s,this.insertedSelectionStart=n,this.insertedSelectionEnd=r}}},49353:(e,t,i)=>{"use strict";i.d(t,{yE:()=>o});var s=i(41234),n=i(5662);class r{constructor(e,t,i,s,n,r,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,s|=0,n|=0,r|=0,o|=0),this.rawScrollLeft=s,this.rawScrollTop=o,t<0&&(t=0),s+t>i&&(s=i-t),s<0&&(s=0),n<0&&(n=0),o+n>r&&(o=r-n),o<0&&(o=0),this.width=t,this.scrollWidth=i,this.scrollLeft=s,this.height=n,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,s=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:s,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:a}}}class o extends n.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new s.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let s;s=t?new l(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=s}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=l.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function c(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class l{constructor(e,t,i,s){this.from=e,this.to=t,this.duration=s,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let o,a;return e<t?(o=e+.75*i,a=t-.75*i):(o=e-.75*i,a=t+.75*i),s=c(e,o),n=c(a,t),r=.33,function(e){return e<r?s(e/r):n((e-r)/(1-r))}}var s,n,r;return c(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return l.start(e,t,i)}static start(e,t,i){i+=10;const s=Date.now()-10;return new l(e,t,s,i)}}},49435:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});var s=i(98067);const n=s.uF?'"Segoe WPC", "Segoe UI", sans-serif':s.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'},50071:(e,t,i)=>{"use strict";var s=i(11007),n=i(90766),r=i(18447),o=i(64383),a=i(16980),c=i(5662),l=i(631),h=i(79400),d=i(31450),u=i(80537),g=i(80301),p=i(83069),m=i(36677),f=i(60002),_=i(62083),v=i(56942),C=i(90360),E=i(50868),b=i(99645),S=i(78209),y=i(27195),w=i(1646),R=i(32848),L=i(63591),T=i(18801),x=i(58591),k=i(73823),A=i(46359),N=i(90651),I=i(8597),O=i(72962),D=i(48196),M=i(42904),P=i(20370),F=i(93090),U=i(25890),H=i(10350),B=i(41234),W=i(78381),V=i(73157),z=i(98031),G=i(19070),j=i(66261),K=i(47612),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};const $=new R.N1("renameInputVisible",!1,S.kg("renameInputVisible","Whether the rename input widget is visible"));new R.N1("renameInputFocused",!1,S.kg("renameInputFocused","Whether the rename input widget is focused"));let Q=class{constructor(e,t,i,s,n,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=s,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new c.Cm,this._visibleContextKey=$.bindTo(n),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new W.W,this._inputWithButton=new Z,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new X(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{void 0!==this._renameCandidateListView?.focusedCandidate&&(this._isEditingRenameCandidate=!0),this._timeBeforeFirstInputFieldEdit??=this._beforeFirstInputFieldEditSW.elapsed(),!1===this._renameCandidateProvidersCts?.token.isCancellationRequested&&this._renameCandidateProvidersCts.cancel(),this._renameCandidateListView?.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){if(!this._domNode)return;const t=e.getColor(j.f9l),i=e.getColor(j.DSL);this._domNode.style.backgroundColor=String(e.getColor(j.CgL)??""),this._domNode.style.boxShadow=t?` 0 0 8px 2px ${t}`:"",this._domNode.style.border=i?`1px solid ${i}`:"",this._domNode.style.color=String(e.getColor(j.cws)??"");const s=e.getColor(j.Zgs);this._inputWithButton.domNode.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.input.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.domNode.style.borderWidth=s?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=s?"solid":"none",this._inputWithButton.domNode.style.borderColor=s?.toString()??"none"}_updateFont(){if(void 0===this._domNode)return;(0,l.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.tG(this.getDomNode().ownerDocument.body),t=I.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const s=this._editor.getOption(67),{totalHeight:n}=J.getLayoutInfo({lineHeight:s}),r=this._nPxAvailableBelow>6*n?[2,1]:[1,2];return{position:this._position,preference:r}}beforeRender(){const[e,t]=this._acceptKeybindings;return this._label.innerText=S.kg({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",this._keybindingService.lookupKeybinding(e)?.getLabel(),this._keybindingService.lookupKeybinding(t)?.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,l.j)(this._renameCandidateListView),(0,l.j)(void 0!==this._nPxAvailableAbove),(0,l.j)(void 0!==this._nPxAvailableBelow);const t=I.OK(this._inputWithButton.domNode),i=I.OK(this._label);let s;s=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:s-i-t,width:I.Tr(this._inputWithButton.domNode)})}acceptInput(e){this._trace("invoking acceptInput"),this._currentAcceptInput?.(e)}cancelInput(e,t){this._currentCancelInput?.(e)}focusNextRenameSuggestion(){this._renameCandidateListView?.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){this._renameCandidateListView?.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,s,r){const{start:o,end:a}=this._getSelection(e,t);this._renameCts=r;const h=new c.Cm;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===s?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=s,this._requestRenameCandidates(t,!1),h.add(I.ko(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),h.add(I.ko(this._inputWithButton.button,I.Bx.KEY_DOWN,(e=>{const i=new O.Z(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",o.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),h.add((0,c.s)((()=>{this._renameCts=void 0,r.dispose(!0)}))),h.add((0,c.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),h.add((0,c.s)((()=>this._candidates.clear())));const d=new n.Zv;return d.p.finally((()=>{h.dispose(),this._hide()})),this._currentCancelInput=e=>(this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView?.clearCandidates(),d.complete(e),!0),this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,l.j)(void 0!==this._renameCandidateListView);const s=this._renameCandidateListView.nCandidates;let n,r;const o=this._renameCandidateListView.focusedCandidate;void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,r={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,r=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n!==t&&0!==n.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),d.complete({newName:n,wantsPreview:i&&e,stats:{source:r,nRenameSuggestions:s,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},h.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),h.add(this._editor.onDidBlurEditorWidget((()=>this.cancelInput(!this._domNode?.ownerDocument.hasFocus(),"editor.onDidBlurEditorWidget")))),this._show(),d.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,l.j)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new r.Qi;const i=t?_.YT.Invoke:_.YT.Automatic,s=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===s.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(s,e,this._renameCts.token)}}_getSelection(e,t){(0,l.j)(this._editor.hasModel());const i=this._editor.getSelection();let s=0,n=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(s=Math.max(0,i.startColumn-e.startColumn),n=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:s,end:n}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const s=(...e)=>this._trace("_updateRenameCandidates",...e);s("start");const r=await(0,n.PK)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===r)return void s("returning early - received updateRenameCandidates results - undefined");const o=r.flatMap((e=>"fulfilled"===e.status&&(0,l.O9)(e.value)?e.value:[]));s(`received updateRenameCandidates results - total (unfiltered) ${o.length} candidates.`);const a=U.dM(o,(e=>e.newSymbolName));s(`distinct candidates - ${a.length} candidates.`);const c=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));s(`valid distinct candidates - ${o.length} candidates.`),c.forEach((e=>this._candidates.add(e.newSymbolName))),c.length<1?s("returning early - no valid distinct candidates"):(s("setting candidates"),this._renameCandidateListView.setCandidates(c),s("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};Q=Y([q(2,K.Gy),q(3,z.b),q(4,R.fN),q(5,T.rr)],Q);class X{constructor(e,t){this._disposables=new c.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=X._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,G.t8)({listInactiveFocusForeground:j.nH,listInactiveFocusBackground:j.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,s.h5(S.kg("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=J.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const s=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},n=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new J(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new F.B8("NewSymbolNameCandidates",e,s,[n],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Z{constructor(){this._onDidInputChange=new B.vl,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new c.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",S.kg("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.kg("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.kg("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,D.i)().setupManagedHover((0,M.nZ)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(I.ko(this.input,I.Bx.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.KEY_DOWN,(e=>{const t=new O.Z(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(I.ko(this.input,I.Bx.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(I.ko(this.input,I.Bx.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return(0,l.j)(this._inputNode),this._inputNode}get button(){return(0,l.j)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){this._buttonState="sparkle",this._sparkleIcon??=(0,P.s)(H.W.sparkle),I.w_(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),this._buttonHover?.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){this._buttonState="stop",this._stopIcon??=(0,P.s)(H.W.primitiveSquare),I.w_(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),this._buttonHover?.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class J{static{this._PADDING=2}constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${J._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,P.s)(H.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),V.M(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){const t=!!e.tags?.includes(_.OV.AIGenerated);this._icon.style.display=t?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*J._PADDING}}dispose(){}}var ee,te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const s=await i.resolveRenameLocation(this.model,this.position,e);if(s){if(!s.rejectReason)return s;t.push(s.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.Q(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,s){const n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};const r=await n.provideRenameEdits(this.model,this.position,e,s);return r?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),s):r:this._provideRenameEdits(e,t+1,i.concat(S.kg("no result","No result.")),s)}}let ne=class{static{ee=this}static{this.ID="editor.contrib.renameController"}static get(e){return e.getContribution(ee.ID)}constructor(e,t,i,s,n,o,a,l,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=a,this._languageFeaturesService=l,this._telemetryService=h,this._disposableStore=new c.Cm,this._cts=new r.Qi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Q,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){const e=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new r.Qi,!this.editor.hasModel())return void e("editor has no model");const t=this.editor.getPosition(),i=new se(this.editor.getModel(),t,this._languageFeaturesService.renameProvider);if(!i.hasProvider())return void e("skeleton has no provider");const c=new E.gI(this.editor,5,void 0,this._cts.token);let l;try{e("resolving rename location");const t=i.resolveRenameLocation(c.token);this._progressService.showWhile(t,250),l=await t,e("resolved rename location")}catch(C){return void(C instanceof o.AL?e("resolve rename location cancelled",JSON.stringify(C,null,"\t")):(e("resolve rename location failed",C instanceof Error?C:JSON.stringify(C,null,"\t")),("string"===typeof C||(0,a.VS)(C))&&b.k.get(this.editor)?.showMessage(C||S.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t)))}finally{c.dispose()}if(!l)return void e("returning early - no loc");if(l.rejectReason)return e(`returning early - rejected with reason: ${l.rejectReason}`,l.rejectReason),void b.k.get(this.editor)?.showMessage(l.rejectReason,t);if(c.token.isCancellationRequested)return void e("returning early - cts1 cancelled");const h=new E.gI(this.editor,5,l.range,this._cts.token),d=this.editor.getModel(),u=this._languageFeaturesService.newSymbolNamesProvider.all(d),g=await Promise.all(u.map((async e=>[e,await e.supportsAutomaticNewSymbolNamesTriggerKind??!1])));e("creating rename input field and awaiting its result");const p=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(l.range,l.text,p,u.length>0?(e,t)=>{let i=g.slice();return e===_.YT.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(d,l.range,e,t)))}:void 0,h);if(e("received response from rename input field"),u.length>0&&this._reportTelemetry(u.length,d.getLanguageId(),f),"boolean"===typeof f)return e(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),void h.dispose();this.editor.focus(),e("requesting rename edits");const v=(0,n.PK)(i.provideRenameEdits(f.newName,h.token),h.token).then((async t=>{if(t)if(this.editor.hasModel()){if(t.rejectReason)return e(`returning early - rejected with reason: ${t.rejectReason}`),void this._notificationService.info(t.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),e("applying edits"),this._bulkEditService.apply(t,{editor:this.editor,showPreview:f.wantsPreview,label:S.kg("label","Renaming '{0}' to '{1}'",l?.text,f.newName),code:"undoredo.rename",quotableLabel:S.kg("quotableLabel","Renaming {0} to {1}",l?.text,f.newName),respectAutoSaveConfig:!0}).then((t=>{e("edits applied"),t.ariaSummary&&(0,s.xE)(S.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",l.text,f.newName,t.ariaSummary))})).catch((t=>{e(`error when applying edits ${JSON.stringify(t,null,"\t")}`),this._notificationService.error(S.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(t)}))}else e("returning early - no model after rename edits are provided");else e("returning early - no rename edits result")}),(t=>{e("error when providing rename edits",JSON.stringify(t,null,"\t")),this._notificationService.error(S.kg("rename.failed","Rename failed to compute edits")),this._logService.error(t)})).finally((()=>{h.dispose()}));return e("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const s="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",s)}};ne=ee=te([ie(1,L._Y),ie(2,x.Ot),ie(3,u.nu),ie(4,k.N8),ie(5,T.rr),ie(6,C.ITextResourceConfigurationService),ie(7,v.ILanguageFeaturesService),ie(8,N.k)],ne);class re extends d.ks{constructor(){super({id:"editor.action.rename",label:S.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:R.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(s)&&p.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),o.dz):super.runCommand(e,t)}run(e,t){const i=e.get(T.rr),s=ne.get(t);return s?(i.trace("[RenameAction] got controller, running..."),s.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,d.HW)(ne.ID,ne,4),(0,d.Fl)(re);const oe=d.DX.bindToContribution(ne.get);(0,d.E_)(new oe({id:"acceptRenameInput",precondition:$,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:3}})),(0,d.E_)(new oe({id:"acceptRenameInputWithPreview",precondition:R.M$.and($,R.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:R.M$.and(f.R.focus,R.M$.not("isComposing")),primary:2051}})),(0,d.E_)(new oe({id:"cancelRenameInput",precondition:$,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,y.ug)(class extends y.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...S.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:$,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusNextRenameSuggestion()}}),(0,y.ug)(class extends y.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...S.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:$,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,d.ke)("_executeDocumentRenameProvider",(function(e,t,i,...s){const[n]=s;(0,l.j)("string"===typeof n);const{renameProvider:o}=e.get(v.ILanguageFeaturesService);return async function(e,t,i,s){const n=new se(t,i,e),o=await n.resolveRenameLocation(r.XO.None);return o?.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(s,r.XO.None)}(o,t,i,n)})),(0,d.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:s}=e.get(v.ILanguageFeaturesService),n=new se(t,i,s),o=await n.resolveRenameLocation(r.XO.None);if(o?.rejectReason)throw new Error(o.rejectReason);return o})),A.O.as(w.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:S.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>c,w:()=>l});var s=i(41234),n=i(42522),r=i(5662),o=i(58925),a=i(631);const c=(0,i(63591).u1)("commandService"),l=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const s of e.metadata.args)t.push(s.constraint);const i=e.handler;e.handler=function(e,...s){return(0,a.jx)(s,t),i(e,...s)}}const{id:i}=e;let s=this._commands.get(i);s||(s=new o.w,this._commands.set(i,s));const n=s.unshift(e),c=(0,r.s)((()=>{n();const e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),c}registerCommandAlias(e,t){return l.registerCommand(e,((e,...i)=>e.get(c).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return n.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};l.registerCommand("noop",(()=>{}))},50166:(e,t,i)=>{"use strict";var s=i(78381),n=i(31450),r=i(78209);class o extends n.ks{constructor(){super({id:"editor.action.forceRetokenize",label:r.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new s.W;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}(0,n.Fl)(o)},50352:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(90766),o=i(24939),a=i(5662),c=i(31450),l=i(28291),h=i(36677),d=i(75326),u=i(60002),g=i(34175),p=i(78209),m=i(27195),f=i(32848),_=i(56942),v=i(13864),C=i(63591),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};function S(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.kg("cursorAdded","Cursor added: {0}",e):p.kg("cursorsAdded","Cursors added: {0}",e);(0,n.h5)(t)}}class y extends c.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorUp(n,r,s)),n.revealTopMostCursor(i.source),S(r,n.getCursorStates())}}class w extends c.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,l.c.addCursorDown(n,r,s)),n.revealBottomMostCursor(i.source),S(r,n.getCursorStates())}}class R extends c.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let s=e.startLineNumber;s<e.endLineNumber;s++){const e=t.getLineMaxColumn(s);i.push(new d.L(s,e,s,e))}e.endColumn>1&&i.push(new d.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=t.getSelections(),n=t._getViewModel(),r=n.getCursorStates(),o=[];s.forEach((e=>this.getCursorsForSelection(e,i,o))),o.length>0&&t.setSelections(o),S(r,n.getCursorStates())}}class L extends c.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=t.getModel().getLineCount(),n=[];for(let a=i[0].startLineNumber;a<=s;a++)n.push(new d.L(a,i[0].startColumn,a,i[0].endColumn));const r=t._getViewModel(),o=r.getCursorStates();n.length>0&&t.setSelections(n),S(o,r.getCursorStates())}}class T extends c.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=[];for(let o=i[0].startLineNumber;o>=1;o--)s.push(new d.L(o,i[0].startColumn,o,i[0].endColumn));const n=t._getViewModel(),r=n.getCursorStates();s.length>0&&t.setSelections(s),S(r,n.getCursorStates())}}class x{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class k{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new k(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let s,n,r=!1;const o=e.getSelections();1===o.length&&o[0].isEmpty()?(r=!0,s=!0,n=!0):(s=i.wholeWord,n=i.matchCase);const a=e.getSelection();let c,l=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;c=t.word,l=new d.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else c=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new k(e,t,r,c,s,n,l)}constructor(e,t,i,s,n,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=s,this.wholeWord=n,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}}class A extends a.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(A.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=k.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new d.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!D(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let s=0,n=t.length;s<n;s++)i[s]=this._expandEmptyToWord(e,t[s]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.range.intersectRanges(e)){t[i]=t[0],t[0]=s;break}}this._setSelections(t.map((e=>new d.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}class N extends c.ks{run(e,t){const i=A.get(t);if(!i)return;const s=t._getViewModel();if(s){const n=s.getCursorStates(),r=g.z0.get(t);if(r)this._run(i,r);else{const s=e.get(C._Y).createInstance(g.z0,t);this._run(i,s),s.dispose()}S(n,s.getCursorStates())}}}class I{constructor(e,t,i,s,n){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=s,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,n&&this._model===n._model&&this._searchText===n._searchText&&this._matchCase===n._matchCase&&this._wordSeparators===n._wordSeparators&&this._modelVersionId===n._modelVersionId&&(this._cachedFindMatches=n._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let O=class extends a.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(109),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new r.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(109)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const s=i.getSelection();if(s.startLineNumber!==s.endLineNumber)return null;const n=A.get(i);if(!n)return null;const r=g.z0.get(i);if(!r)return null;let o=n.getSession(r);if(!o){const e=i.getSelections();if(e.length>1){const t=r.getState().matchCase;if(!D(i.getModel(),e,t))return null}o=k.create(i,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const a=r.getState(),c=a.matchCase;if(a.isRevealed){let e=a.searchString;c||(e=e.toLowerCase());let t=o.searchText;if(c||(t=t.toLowerCase()),e===t&&o.matchCase===a.matchCase&&o.wholeWord===a.wholeWord&&!a.isRegex)return null}return new I(i.getModel(),o.searchText,o.matchCase,o.wholeWord?i.getOption(132):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),s=this.editor.getSelections();s.sort(h.Q.compareRangesUsingStarts);const n=[];for(let c=0,l=0,d=i.length,u=s.length;c<d;){const e=i[c];if(l>=u)n.push(e),c++;else{const t=h.Q.compareRangesUsingStarts(e,s[l]);t<0?(!s[l].isEmpty()&&h.Q.areIntersecting(e,s[l])||n.push(e),c++):(t>0||c++,l++)}}const r="off"!==this.editor.getOption(81),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=n.map((e=>({range:e,options:(0,v.v)(o)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function D(e,t,i){const s=M(e,t[0],!i);for(let n=1,r=t.length;n<r;n++){const r=t[n];if(r.isEmpty())return!1;if(s!==M(e,r,!i))return!1}return!0}function M(e,t,i){const s=e.getValueInRange(t);return i?s.toLowerCase():s}O=s=E([b(1,_.ILanguageFeaturesService)],O);class P extends c.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.shift();r&&(n.push(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}class F extends c.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.pop();r&&(n.unshift(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}(0,c.HW)(A.ID,A,4),(0,c.HW)(O.ID,O,1),(0,c.Fl)(y),(0,c.Fl)(w),(0,c.Fl)(R),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,o.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.selectHighlights",label:p.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(class extends N{constructor(){super({id:"editor.action.changeAll",label:p.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,c.Fl)(L),(0,c.Fl)(T),(0,c.Fl)(P),(0,c.Fl)(F)},50576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(84870).then(i.bind(i,84870))})},50629:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"%"+e.$value:e.$value}return e.isScalar=!0,e}},50848:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(24662).then(i.bind(i,24662))})},50868:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>_,ER:()=>v});var s=i(91508),n=i(36677),r=i(18447),o=i(5662),a=i(31450),c=i(32848),l=i(58925),h=i(63591),d=i(14718),u=i(78209);const g=(0,h.u1)("IEditorCancelService"),p=new c.N1("cancellableOperation",!1,(0,u.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,d.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,s=this._tokens.get(e);return s||(s=e.invokeWithinContext((e=>({key:p.bindTo(e.get(c.fN)),tokens:new l.w}))),this._tokens.set(e,s)),s.key.set(!0),i=s.tokens.push(t),()=>{i&&(i(),s.key.set(!s.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends r.Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?s.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return 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))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,s){super(e,s),this._listener=new o.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&n.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&n.Q.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 v extends r.Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},50973:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var s=i(83069),n=i(36677);class r{static{this.zero=new r(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const s of e)"\n"===s?(t++,i=0):i++;return new r(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new n.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new n.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new s.y(e.lineNumber,e.column+this.columnCount):new s.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},51173:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>o});var s=i(25890),n=i(26690),r=i(91508);class o{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,s,r,o,c=n.Nd.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=r,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=c,"top"===o?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let o="",a="";const c=1===this._refilterKind?this._items:this._filteredItems,l=[],h=!this._options.filterGraceful||c.length>2e3?n.dt:n.uU;for(let s=0;s<c.length;s++){const d=c[s];if(d.isInvalid)continue;const u=this._itemsByProvider.get(d.provider);u?u.push(d):this._itemsByProvider.set(d.provider,[d]);const g=d.position.column-d.editStart.column,p=g+i-(d.position.column-this._column);if(o.length!==p&&(o=0===p?"":t.slice(-p),a=o.toLowerCase()),d.word=o,0===p)d.score=n.ne.Default;else{let e=0;for(;e<g;){const t=o.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)d.score=n.ne.Default;else if("string"===typeof d.completion.filterText){const t=h(o,a,e,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,r.W1)(d.completion.filterText,d.textLabel)?d.score=t:(d.score=(0,n.Jo)(o,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{const t=h(o,a,e,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;d.score=t}}d.idx=s,d.distance=this._wordDistance.distance(d.position,d.completion),l.push(d),e.push(d.textLabel.length)}this._filteredItems=l.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,s.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},51219:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var s=i(8597);function n(e,t,i){const n=s.BK(e);return!(t<n.left||t>n.left+n.width||i<n.top||i>n.top+n.height)}},51232:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(36374).then(i.bind(i,36374))})},51241:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>r,dB:()=>c,nx:()=>n,r:()=>o});var s=i(25890);const n=(e,t)=>e===t;function r(e=n){return(t,i)=>s.aI(t,i,e)}function o(){return(e,t)=>e.equals(t)}function a(e,t,i){if(void 0!==i){return void 0===e||null===e||void 0===t||null===t?t===e:i(e,t)}{const t=e;return(e,i)=>void 0===e||null===e||void 0===i||null===i?i===e:t(e,i)}}function c(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(!c(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){const i=e,s=t,n=Object.keys(i),r=Object.keys(s),o=new Set(r);if(n.length!==r.length)return!1;for(const e of n){if(!o.has(e))return!1;if(!c(i[e],s[e]))return!1}return!0}return!1}new WeakMap},51376:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(10246).then(i.bind(i,10246))})},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>o,Fp:()=>a,GK:()=>l,Ym:()=>n,dH:()=>c,kF:()=>r});var s=i(63591);const n={ctrlCmd:!1,alt:!1};var r,o,a,c;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(o||(o={})),function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(a||(a={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(c||(c={}));new class{constructor(e){this.options=e}};const l=(0,s.u1)("quickInputService")},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>l,Hw:()=>n,YN:()=>s,gf:()=>o,n9:()=>a,oq:()=>r,tu:()=>h,vp:()=>c});var s,n,r,o,a,c,l,h,d=i(78209);!function(e){e.inspectTokensAction=d.kg("inspectTokens","Developer: Inspect Tokens")}(s||(s={})),function(e){e.gotoLineActionLabel=d.kg("gotoLineActionLabel","Go to Line/Column...")}(n||(n={})),function(e){e.helpQuickAccessActionLabel=d.kg("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=d.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d.kg("quickCommandActionHelp","Show And Run Commands")}(o||(o={})),function(e){e.quickOutlineActionLabel=d.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d.kg("editorViewAccessibleLabel","Editor content")}(c||(c={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(l||(l={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},51929:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SimpleWorkerClient:()=>C,SimpleWorkerServer:()=>S,create:()=>y,logOnceWebWorkerWarning:()=>u});var s=i(64383),n=i(41234),r=i(5662),o=i(36456),a=i(98067),c=i(91508);const l="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.method=s,this.args=n,this.type=0}}class p{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class m{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=s,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,i){const s=String(++this._lastSentReq);return new Promise(((n,r)=>{this._pendingReplies[s]={resolve:n,reject:r},this._send(new g(this._workerId,s,e,t,i))}))}listen(e,t,i){let s=null;const r=new n.vl({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new m(this._workerId,s,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new _(this._workerId,s)),s=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const i={get:(i,s)=>("string"!==typeof s||i[s]||(b(s)?i[s]=t=>this.listen(e,s,t):E(s)?i[s]=this.listen(e,s,void 0):36===s.charCodeAt(0)&&(i[s]=async(...i)=>(await(t?.()),this.sendMessage(e,s,i)))),i[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,s.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class C extends r.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,s.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId());let i=null;const n=globalThis.require;"undefined"!==typeof n&&"function"===typeof n.getConfig?i=n.getConfig():"undefined"!==typeof globalThis.requirejs&&(i=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(l,h,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(l,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,i){const s=this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on main thread`);if(b(t)){const n=s[t].call(s,i);if("function"!==typeof n)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return n}if(E(t)){const i=s[t];if("function"!==typeof i)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function E(e){return"o"===e[0]&&"n"===e[1]&&c.Wv(e.charCodeAt(2))}function b(e){return/^onDynamic/.test(e)&&c.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,i)=>{e(t,i)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,i){if(e===l&&t===h)return this.initialize(i[0],i[1],i[2]);const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=e===l?this._requestHandler:this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on worker thread`);if(b(t)){const e=s[t].call(s,i);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(E(t)){const e=s[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,s){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${s}.js`).toString(!0);return i(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new S(e,null)}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>d,ou:()=>c,tk:()=>l});var s=i(64383),n=i(25982),r=i(40579),o=i(19131),a=i(32956);class c{constructor(e,t,i,s,n){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=s,this.astNode=n}}class l{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=o.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,o.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,o.QB)(this._offset,e);const t=(0,o.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,o.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,o.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset<r){const c=s.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&c===s.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const l=0===n.x.getTokenType(c),h=n.x.containsBalancedBrackets(c),d=s.getEndOffset(this.lineTokenOffset);if(h&&l&&this.lineCharOffset<d){const e=s.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,d),i=this.bracketTokens.getSingleLanguageBracketTokens(e),n=i.regExpGlobal;if(n){n.lastIndex=0;const e=n.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=d-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,o.sS)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=d}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const s=(0,o.C7)(e,t,this.lineIdx,this.lineCharOffset);return new c(s,0,-1,a.gV.getEmpty(),new r.yF(s))}}class d{constructor(e,t){this.text=e,this._offset=o.Vp,this.idx=0;const i=t.getRegExpStr(),s=i?new RegExp(i+"|\n","gi"):null,n=[];let l,h=0,d=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new c((0,o.qe)(0,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new c((0,o.qe)(1,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(1,_))));if(s)for(s.lastIndex=0;null!==(l=s.exec(e));){const e=l.index,i=l[0];if("\n"===i)h++,d=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,o.qe)(0,i);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}else{const i=h-g,s=e-d;if(1===i&&s<m.length)t=m[s];else{const e=(0,o.qe)(i,s);t=new c(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}n.push(t)}n.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,o.qe)(0,f-u):(0,o.qe)(h-g,f-d);n.push(new c(e,0,-1,a.gV.getEmpty(),new r.yF(e)))}this.length=(0,o.qe)(h,f-d),this.tokens=n}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new s.EM}}},52358:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11M8 15A7 7 0 108 1a7 7 0 000 14m1-4.5a1 1 0 11-2 0 1 1 0 012 0M8.75 5a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0z",clipRule:"evenodd"})))}},52363:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(47661),n=i(5662),r=i(56942),o=i(72466),a=i(10920),c=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){return function(i,s){t(i,s,e)}};let h=class{constructor(e){this._editorWorkerService=e}async provideDocumentColors(e,t){return this._editorWorkerService.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,r=t.color,o=r.alpha,a=new s.Q1(new s.bU(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),o)),c=o?s.Q1.Format.CSS.formatRGB(a):s.Q1.Format.CSS.formatRGBA(a),l=o?s.Q1.Format.CSS.formatHSL(a):s.Q1.Format.CSS.formatHSLA(a),h=o?s.Q1.Format.CSS.formatHex(a):s.Q1.Format.CSS.formatHexA(a),d=[];return d.push({label:c,textEdit:{range:n,text:c}}),d.push({label:l,textEdit:{range:n,text:l}}),d.push({label:h,textEdit:{range:n,text:h}}),d}};h=c([l(0,a.IEditorWorkerService)],h);let d=class extends n.jG{constructor(e,t){super(),this._register(e.colorProvider.register("*",new h(t)))}};d=c([l(0,r.ILanguageFeaturesService),l(1,a.IEditorWorkerService)],d),(0,o.x)(d)},52400:(e,t,i)=>{"use strict";i.d(t,{_z:()=>v});var s,n=i(80781),r=i(67913),o=(i(59284),new Uint8Array(16));function a(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}var c=[];for(let E=0;E<256;++E)c.push((E+256).toString(16).slice(1));var l={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var h=function(e,t,i){if(l.randomUUID&&!t&&!e)return l.randomUUID();const s=(e=e||{}).random||(e.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=s[e];return t}return function(e,t=0){return c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]}(s)},d={debounceTime:200,suggestionCache:{enabled:!0},sessionId:h()};var u=class{constructor(){this.currentGroup=null,this.activeCompletion=null}setCompletionGroup(e){this.currentGroup=e}getCompletionGroup(){return this.currentGroup}getActiveCompletion(){return this.activeCompletion}getCachedCompletion(e,t){const i=[];if(this.currentGroup)for(const s of this.currentGroup.items){if(!s.range)continue;if(t.lineNumber<s.range.startLineNumber||t.column<s.range.startColumn)continue;const r=new n.Position(s.range.startLineNumber,s.range.startColumn),o=e.getOffsetAt(r),a=o+s.insertText.toString().length,c=e.getOffsetAt(t);if(c>a)continue;const l=s.insertText.toString().slice(0,c-o),h=new n.Range(s.range.startLineNumber,s.range.startColumn,t.lineNumber,t.column),d=e.getValueInRange(h);l.toLowerCase()===d.toLowerCase()&&i.push({insertText:d+s.insertText.toString().slice(c-o),range:h,command:s.command,pristine:s.pristine})}return i}emptyCache(){this.currentGroup=null,this.activeCompletion=null}incrementShownCount(e){if(this.currentGroup)for(const t of this.currentGroup.items)if(t.pristine===e){this.currentGroup.shownCount++,this.activeCompletion=e;break}}markAsAccepted(e){var t;(null==(t=this.currentGroup)?void 0:t.items.some((t=>t.pristine===e)))&&(this.currentGroup.wasAccepted=!0)}};var g=class{constructor(e,t){this.timer=null,this.pendingPromise=null,this.pendingResolve=null,this.config=e,this.events=t}async getSuggestions(e,t){this.timer&&window.clearTimeout(this.timer),this.pendingPromise||(this.pendingPromise=new Promise((e=>{this.pendingResolve=e})));const i=this.pendingPromise;return this.timer=window.setTimeout((async()=>{var i,s,r;try{let r=[],o="";const a=function(e,t,i=h()){const s=e.getLinesContent(),n=s[t.lineNumber-1];if(!n)return;const r=n.slice(0,t.column-1),o=n.slice(t.column-1),a=s.slice(0,t.lineNumber-1).concat([r]).join("\n"),c=[o].concat(s.slice(t.lineNumber)).join("\n"),l={lineNumber:t.lineNumber,column:t.column},d=[];if(a&&d.push({text:a,start:{lineNumber:1,column:1},end:l}),c){const e=s[s.length-1];if(!e)return;d.push({text:c,start:l,end:{lineNumber:s.length,column:e.length}})}return d.length?[{fragments:d,cursorPosition:l,path:`${i}`}]:void 0}(e,t,this.config.sessionId);if(!a)return void(null==(i=this.pendingResolve)||i.call(this,{suggestions:[],requestId:""}));const c=await this.config.api.getCodeAssistSuggestions(a);o=(null==c?void 0:c.requestId)||"";const{word:l,startColumn:d}=e.getWordUntilPosition(t);r=((null==c?void 0:c.items)||[]).map((e=>{const i=e,s=l+i;return{label:s,sortText:"a",insertText:s,pristine:i,range:new n.Range(t.lineNumber,d,t.lineNumber,t.column),command:{id:"acceptCodeAssistCompletion",title:"",arguments:[{requestId:o,suggestionText:i,prevWordLength:l.length}]}}})),null==(s=this.pendingResolve)||s.call(this,{suggestions:r,requestId:o})}catch(o){this.events.emit("completion:error",o instanceof Error?o:new Error(String(o))),null==(r=this.pendingResolve)||r.call(this,{suggestions:[],requestId:""})}finally{this.pendingPromise=null,this.pendingResolve=null,this.timer=null}}),this.config.debounceTime),i}},p=class{constructor(){this.events=new Map}on(e,t){var i;this.events.has(e)||this.events.set(e,new Set),null==(i=this.events.get(e))||i.add(t)}off(e,t){var i;null==(i=this.events.get(e))||i.delete(t)}emit(e,t){var i;null==(i=this.events.get(e))||i.forEach((i=>{try{i(t)}catch(s){console.error(`Error in event listener for ${e}:`,s)}}))}},m=class{constructor(e,t){this.events=new p,this.config=function(e,t){return{...d,...t,suggestionCache:{...d.suggestionCache,...(null==t?void 0:t.suggestionCache)||{}},api:e}}(e,t),this.cacheManager=new u,this.suggestionProvider=new g(this.config,this.events)}async provideInlineCompletions(e,t,i,s){if(this.config.suggestionCache.enabled){const i=this.cacheManager.getCachedCompletion(e,t);if(i.length)return{items:i}}const n=this.cacheManager.getCompletionGroup();n&&!n.wasAccepted&&this.dismissCompletion(n),this.cacheManager.emptyCache();const{suggestions:r,requestId:o}=await this.suggestionProvider.getSuggestions(e,t),a={items:r,shownCount:0,requestId:o};return this.cacheManager.setCompletionGroup(a),{items:r}}handleItemDidShow(e,t){this.config.suggestionCache.enabled&&this.cacheManager.incrementShownCount(t.pristine)}handlePartialAccept(e,t,i){var s,n;const{command:r}=t,o=null!=(n=null==(s=null==r?void 0:r.arguments)?void 0:s[0])?n:{},{suggestionText:a,requestId:c,prevWordLength:l=0}=o;if(c&&a&&"string"===typeof t.insertText){const e=t.insertText.slice(l,i);e&&(this.cacheManager.markAsAccepted(a),this.events.emit("completion:accept",{requestId:c,acceptedText:e}))}}handleAccept({requestId:e,suggestionText:t}){this.cacheManager.emptyCache(),this.events.emit("completion:accept",{requestId:e,acceptedText:t})}commandDiscard(e="OnCancel",t){var i,s;const n=this.cacheManager.getCompletionGroup();if((null==n?void 0:n.requestId)&&(null==(i=n.items)?void 0:i.length)){const t=n.items.map((e=>e.pristine)),i=this.cacheManager.getActiveCompletion()||(null==(s=n.items[0])?void 0:s.pristine)||"";this.events.emit("completion:decline",{requestId:n.requestId,suggestionText:i,reason:e,hitCount:n.shownCount,allSuggestions:t}),this.cacheManager.emptyCache()}t.trigger(void 0,"editor.action.inlineSuggest.hide",void 0)}emptyCache(){this.cacheManager.emptyCache()}hasActiveSuggestions(){return null!==this.cacheManager.getCompletionGroup()}freeInlineCompletions(){}dismissCompletion(e){var t;if(!e.requestId||!(null==(t=e.items)?void 0:t.length)||!e.shownCount||e.wasAccepted)return;const[i]=e.items;if(!i)return;const s=e.items.map((e=>e.pristine)),n=this.cacheManager.getActiveCompletion()||i.pristine||"";this.events.emit("completion:ignore",{requestId:e.requestId,suggestionText:n,allSuggestions:s})}};function f(e,t={}){return new m(e,t)}var _=class{constructor(e){this.editor=e,this.disposables=[],this.completionProvider=null}register({api:e,config:t,eventHandlers:i}){this.completionProvider=f(e,t);const s=r.languages.registerInlineCompletionsProvider([t.language],this.completionProvider);this.disposables.push(s);const n=C(r,this.completionProvider,this.editor);if(this.disposables.push(...n),i){const e=this.completionProvider;i.onCompletionAccept&&e.events.on("completion:accept",i.onCompletionAccept),i.onCompletionDecline&&e.events.on("completion:decline",i.onCompletionDecline),i.onCompletionIgnore&&e.events.on("completion:ignore",i.onCompletionIgnore),i.onCompletionError&&e.events.on("completion:error",i.onCompletionError)}}dispose(){this.disposables.forEach((e=>e.dispose())),this.disposables=[],this.completionProvider=null}};function v(e){const t=new _(e);return{register:e=>t.register(e),unregister:()=>t.dispose()}}function C(e,t,i){const s=[],n=e.editor.registerCommand("acceptCodeAssistCompletion",((e,...i)=>{var s;const n=null!=(s=i[0])?s:{};if(!n||"object"!==typeof n)return;const{requestId:r,suggestionText:o}=n;r&&o&&t.handleAccept({requestId:r,suggestionText:o})}));s.push(n);const r=e.editor.registerCommand("declineCodeAssistCompletion",(()=>{t.commandDiscard("OnCancel",i)}));s.push(r);const o=i.onKeyDown((s=>{var n,r,o,a;if(s.keyCode===e.KeyCode.Escape){const e=i.getContribution("editor.contrib.suggestController"),c=null!=(a=null==(o=null==(r=null==(n=null==e?void 0:e.widget)?void 0:n.value)?void 0:r.selectFirst)?void 0:o.call(r))&&a;t.hasActiveSuggestions()&&!c&&(s.preventDefault(),i.trigger("keyboard","declineCodeAssistCompletion",null))}}));return s.push(o),s}},52555:(e,t,i)=>{"use strict";i.d(t,{x:()=>Xn});var s=i(37550),n=i(31450),r=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},o=function(e,t){return function(i,s){t(i,s,e)}};let a=class{static{this.ID="editor.contrib.markerDecorations"}constructor(e,t){}dispose(){}};a=r([o(1,s.IMarkerDecorationsService)],a),(0,n.HW)(a.ID,a,0);var c=i(8597),l=i(64383),h=i(41234),d=i(5662),u=i(36456),g=i(73157),p=i(60413),m=i(25890),f=i(10146),_=i(98067),v=i(4983),C=i(28433);class E{static{this.items=[]}constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=E._read(e,this.key);this.migrate(t,(t=>E._read(e,t)),((t,i)=>E._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const s=t.substring(0,i);return this._read(e[s],t.substring(i+1))}return e[t]}static _write(e,t,i){const s=t.indexOf(".");if(s>=0){const n=t.substring(0,s);return e[n]=e[n]||{},void this._write(e[n],t.substring(s+1),i)}e[t]=i}}function b(e,t){E.items.push(new E(e,t))}function S(e,t){b(e,((i,s,n)=>{if("undefined"!==typeof i)for(const[r,o]of t)if(i===r)return void n(e,o)}))}S("wordWrap",[[!0,"on"],[!1,"off"]]),S("lineNumbers",[[!0,"on"],[!1,"off"]]),S("cursorBlinking",[["visible","solid"]]),S("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),S("renderLineHighlight",[[!0,"line"],[!1,"none"]]),S("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),S("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),S("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("autoIndent",[[!1,"advanced"],[!0,"full"]]),S("matchBrackets",[[!0,"always"],[!1,"never"]]),S("renderFinalNewline",[[!0,"on"],[!1,"off"]]),S("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),S("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),S("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),b("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),b("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),b("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const y={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"};b("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const s of Object.entries(y)){!1===e[s[0]]&&"undefined"===typeof t(`suggest.${s[1]}`)&&i(`suggest.${s[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),b("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),b("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),b("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),b("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const s={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,s[i[0]]=i[1]?"explicit":"never"):s[i[0]]=i[1];t&&i("codeActionsOnSave",s)}})),b("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),b("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var w=i(77163),R=i(87908),L=i(79027),T=i(74196),x=i(253),k=i(94106),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i,s,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new R.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new v.u(s,i.dimension)),this._targetWindowId=(0,c.zk)(s).vscodeWindowId,this._rawOptions=F(i),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(L.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(w.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(C.T.onDidChange((()=>this._recomputeOptions()))),this._register(k.c.getInstance((0,c.zk)(s)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=T._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),s={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:w.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,s)}_readEnvConfiguration(){return{extraEditorClassName:O(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Tc||p.gm,pixelRatio:k.c.getInstance((0,c.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return C.T.readFontInfo((0,c.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const 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())}};function O(){let e="";return p.nr||p.c8||(e+="no-user-select "),p.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.zx&&(e+="mac "),e}I=A([N(4,x.j)],I);class D{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class M{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new D;for(const i of R.BE){const s="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(s))}return t}static computeOptions(e,t){const i=new M;for(const s of R.BE)i._write(s.id,s.compute(t,i,e._read(s.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))&&m.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let s=!1;for(const n of R.BE){const r=!P._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=r,r&&(s=!0)}return s?new R.lw(i):null}static applyUpdate(e,t){let i=!1;for(const s of R.BE)if(t.hasOwnProperty(s.name)){const n=s.applyUpdate(e[s.name],t[s.name]);e[s.name]=n.newValue,i=i||n.didChange}return i}}function F(e){const t=f.Go(e);return function(e){E.items.forEach((t=>t.apply(e)))}(t),t}var U=i(80301),H=i(55275),B=i(5239),W=i(37734);class V extends d.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,s=e.length;i<s;i++){const s=e[i];switch(s.type){case 0:this.onCompositionStart(s)&&(t=!0);break;case 1:this.onCompositionEnd(s)&&(t=!0);break;case 2:this.onConfigurationChanged(s)&&(t=!0);break;case 3:this.onCursorStateChanged(s)&&(t=!0);break;case 4:this.onDecorationsChanged(s)&&(t=!0);break;case 5:this.onFlushed(s)&&(t=!0);break;case 6:this.onFocusChanged(s)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(s)&&(t=!0);break;case 8:this.onLineMappingChanged(s)&&(t=!0);break;case 9:this.onLinesChanged(s)&&(t=!0);break;case 10:this.onLinesDeleted(s)&&(t=!0);break;case 11:this.onLinesInserted(s)&&(t=!0);break;case 12:this.onRevealRangeRequest(s)&&(t=!0);break;case 13:this.onScrollChanged(s)&&(t=!0);break;case 15:this.onTokensChanged(s)&&(t=!0);break;case 14:this.onThemeChanged(s)&&(t=!0);break;case 16:this.onTokensColorsChanged(s)&&(t=!0);break;case 17:this.onZonesChanged(s)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(s)}}t&&(this._shouldRender=!0)}}class z extends V{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class G{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let s=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[s++]=this.read(e)),e=e.parentElement;const n=new Uint8Array(s);for(let r=0;r<s;r++)n[r]=i[s-r-1];return n}}var j,K=i(92473),Y=i(83069),q=i(36677),$=i(1245),Q=i(35817),X=i(91090);class Z{constructor(e=null){this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const s=e.getPositionFromDOMInfo(t,i);return s?new J(s,t,null):new Z(t)}}(j||(j={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e,t=null){return!t&&e?new q.Q(e.lineNumber,e.column,e.lineNumber,e.column):t??null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,s,n,r){return{type:e,element:t,mouseColumn:i,position:s,range:n,detail:r}}static createViewZone(e,t,i,s,n){return{type:e,element:t,mouseColumn:i,position:s,range:this._deduceRage(s),detail:n}}static createContentText(e,t,i,s,n){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,s),detail:n}}static createContentEmpty(e,t,i,s){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:s}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,s){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:s}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class se{constructor(e,t,i){this.viewModel=e.viewModel;const s=e.configuration.options;this.layoutInfo=s.get(146),this.viewDomNode=t.viewDomNode,this.lineHeight=s.get(67),this.stickyTabStops=s.get(117),this.typicalHalfwidthCharacterWidth=s.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return se.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const s=i.verticalOffset+i.height/2,n=e.viewModel.getLineCount();let r,o=null,a=null;return i.afterLineNumber!==n&&(a=new Y.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(o=new Y.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),r=null===a?o:null===o?a:t<s?o:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:o,positionAfter:a,position:r}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new q.Q(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new q.Q(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return se._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ne{constructor(e,t,i,s){this.editorPos=t,this.pos=i,this.relativePos=s,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ce._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class re extends ne{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=G.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,s,n){super(e,t,i,s),this.hitTestResult=new X.d((()=>ce.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=n;const r=Boolean(this._eventTarget);this._useHitTestTarget=!r}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?$.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,s){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,s)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const oe={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class ce{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=G.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,s,n){const r=new se(this._context,this._viewHelper,e),o=new re(r,t,i,s,n);try{const e=ce._createMouseTarget(r,o);if(6===e.type&&r.stickyTabStops&&null!==e.position){const t=ce._snapToSoftTabBoundary(e.position,r.viewModel),i=q.Q.fromPositions(t,t).plusRange(e.range);return o.fulfillContentText(t,i,e.detail)}return e}catch(a){return o.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let s=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(s=s||t.fulfillUnknown()),s=s||ce._hitTestContentWidget(e,i),s=s||ce._hitTestOverlayWidget(e,i),s=s||ce._hitTestMinimap(e,i),s=s||ce._hitTestScrollbarSlider(e,i),s=s||ce._hitTestViewZone(e,i),s=s||ce._hitTestMargin(e,i),s=s||ce._hitTestViewCursor(e,i),s=s||ce._hitTestTextArea(e,i),s=s||ce._hitTestViewLines(e,i),s=s||ce._hitTestScrollbar(e,i),s||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,n=t.mouseVerticalOffset;for(const r of i){if(s<r.contentLeft)continue;if(s>r.contentLeft+r.width)continue;const i=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(i<=n&&n<=i+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),s=i.range.getStartPosition();let n=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:n};if(n-=e.layoutInfo.glyphMarginLeft,n<=e.layoutInfo.glyphMarginWidth){const o=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(o.lineNumber);return r.glyphMarginLane=a[Math.floor(n/e.lineHeight)],t.fulfillMargin(2,s,i.range,r)}return n-=e.layoutInfo.glyphMarginWidth,n<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,s,i.range,r):(n-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,s,i.range,r))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Y.y(1,1),oe);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),s=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new Y.y(i,s),oe)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const s=e.getLineWidth(i),n=ae(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(new Y.y(i,1),n)}const s=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=s){const n=ae(t.mouseContentHorizontalOffset-s),r=new Y.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(r,n)}}const i=t.hitTestResult.value;return 1===i.type?ce.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(146),s=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return ce._getMouseColumn(s,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,s,n){const r=s.lineNumber,o=s.column,a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(s,e)}const l=e.visibleRangeForPosition(r,o);if(!l)return t.fulfillUnknown(s);const h=l.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(s,null,{mightBeForeignElement:!!n,injectedText:n});const d=[];if(d.push({offset:l.left,column:o}),o>1){const t=e.visibleRangeForPosition(r,o-1);t&&d.push({offset:t.left,column:o-1})}if(o<e.viewModel.getLineMaxColumn(r)){const t=e.visibleRangeForPosition(r,o+1);t&&d.push({offset:t.left,column:o+1})}d.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(c.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let c=1;c<d.length;c++){const e=d[c-1],i=d[c];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new q.Q(r,e.column,r,i.column);s=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new Y.y(r,e.column):new Y.y(r,i.column);break}}return t.fulfillContentText(s,m,{mightBeForeignElement:!p||!!n,injectedText:n})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.getVerticalOffsetForLineNumber(i),n=s+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>n)){const i=Math.floor((s+n)/2);let r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const o=new W.nz(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates(c.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=c.jG(e.viewDomNode);let s;if(s=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const s=document.createRange();let n=e.elementFromPoint(t,i);if(null!==n){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const e=n.getBoundingClientRect(),i=c.zk(n),r=`${i.getComputedStyle(n,null).getPropertyValue("font-style")} ${i.getComputedStyle(n,null).getPropertyValue("font-variant")} ${i.getComputedStyle(n,null).getPropertyValue("font-weight")} ${i.getComputedStyle(n,null).getPropertyValue("font-size")}/${i.getComputedStyle(n,null).getPropertyValue("line-height")} ${i.getComputedStyle(n,null).getPropertyValue("font-family")}`,o=n.innerText;let a,l=e.left,h=0;if(t>e.left+e.width)h=o.length;else{const e=le.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),r)/2,l+=a,t<l){h=i;break}l+=a}}s.setStart(n.firstChild,h),s.setEnd(n.firstChild,h)}return s}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!s||!s.startContainer)return new Z;const n=s.startContainer;if(n.nodeType===n.TEXT_NODE){const t=n.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,t,s.startOffset):new Z(n.parentNode)}if(n.nodeType===n.ELEMENT_NODE){const t=n.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,n,n.textContent.length):new Z(n)}return new Z}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,s=t?t.parentNode:null,n=s?s.parentNode:null;return(n&&n.nodeType===n.ELEMENT_NODE?n.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Z(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,s=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,n=t?t.parentNode:null,r=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;if(s===K.Gb.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return j.createFromDOMInfo(e,t,0)}else if(r===K.Gb.CLASS_NAME)return j.createFromDOMInfo(e,i.offsetNode,0)}return new Z(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:s}=t.model.getOptions(),n=Q.s.atomicPosition(i,e.column-1,s,2);return-1!==n?new Y.y(e.lineNumber,n+1):e}static doHitTest(e,t){let i=new Z;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(c.zk(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);!t&&s.equals(i.position)||(i=new J(s,i.spanNode,t))}return i}}class le{static{this._INSTANCE=null}static getInstance(){return le._INSTANCE||(le._INSTANCE=new le),le._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const s=this._canvas.getContext("2d");s.font=t;const n=s.measureText(e).width;return this._cache[i]=n,n}}var he=i(55089),de=i(25154),ue=i(25893),ge=i(47358),pe=i(75326),me=i(31295);class fe extends V{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new ce(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const s=new W.$z(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=c.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new W.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(s.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let n=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{n=t}))),this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,n)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.QC.INSTANCE;let t=0,i=L.D.getZoomLevel(),s=!1,n=0;function r(e){return _.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(c.ko(this.viewHelper.viewDomNode,c.Bx.MOUSE_WHEEL,(o=>{if(this.viewController.emitMouseWheel(o),!this._context.configuration.options.get(76))return;const a=new ge.$(o);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(r(o)){const e=L.D.getZoomLevel(),t=a.deltaY>0?1:-1;L.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=L.D.getZoomLevel(),s=r(o),n=0),t=Date.now(),n+=a.deltaY,s&&(L.D.setZoomLevel(i+n/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(146)){const e=this._context.configuration.options.get(146).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new W.Hh(e,t).toPageCoordinates(c.zk(this.viewHelper.viewDomNode)),s=(0,W.wt)(this.viewHelper.viewDomNode);if(i.y<s.y||i.y>s.y+s.height||i.x<s.x||i.x>s.x+s.width)return null;const n=(0,W.i_)(this.viewHelper.viewDomNode,s,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,i,n,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=c.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),s=6===i.type||7===i.type,n=2===i.type||3===i.type||4===i.type,r=3===i.type,o=this._context.configuration.options.get(110),a=8===i.type||5===i.type,c=9===i.type;let l=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(l=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(s||r&&o))h(),this._mouseDownOperation.start(i.type,e,t);else if(n)e.preventDefault();else if(a){const s=i.detail;l&&this.viewHelper.shouldSuppressMouseDownOnViewZone(s.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=s,this._createMouseTarget=n,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new W.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ee,this._currentSelection=new pe.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const s=this._findMousePosition(t,!0);if(!s||!s.position)return;this._mouseState.trySetCount(t.detail,s.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(92)&&n.get(35)&&!n.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===s.type&&s.position&&this._currentSelection.containsPosition(s.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);c.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(s,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,s=this._context.viewLayout,n=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,r=Math.max(s.getCurrentScrollTop()-i,0),o=se.getZoneAtCoord(this._context,r);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return te.createOutsideEditor(n,e,"above",i)}const a=s.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(n,new Y.y(a,1),"above",i)}if(e.posy>t.y+t.height){const r=e.posy-t.y-t.height,o=s.getCurrentScrollTop()+e.relativePos.y,a=se.getZoneAtCoord(this._context,o);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(n,e,"below",r)}const c=s.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(n,new Y.y(c,i.getLineMaxColumn(c)),"below",r)}const r=s.getLineNumberAtVerticalOffset(s.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(n,new Y.y(r,1),"left",i)}if(e.posx>t.x+t.width){const s=e.posx-t.x-t.width;return te.createOutsideEditor(n,new Y.y(r,i.getLineMaxColumn(r)),"right",s)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const s=this._createMouseTarget(e,t);if(!s.position)return null;if(8===s.type||5===s.type){const e=this._helpPositionJumpOverViewZone(s.detail);if(e)return te.createViewZone(s.type,s.element,s.mouseColumn,e,s.detail)}return s}_helpPositionJumpOverViewZone(e){const t=new Y.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,s=e.positionAfter;return i&&s?i.isBefore(t)?i:s:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends d.jG{constructor(e,t,i,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Ce(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Ce extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._position=n,this._mouseEvent=r,this._lastTime=Date.now(),this._animationFrameDisposable=c.PG(c.zk(r.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(146).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const s=this._context.viewLayout.getLinesViewportData(),n="above"===this._position.outsidePosition?s.startLineNumber:s.endLineNumber;let r;{const e=(0,W.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(146).horizontalScrollbarHeight,i=new W.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),s=(0,W.i_)(this._viewHelper.viewDomNode,e,i);r=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,s,null)}r.position&&r.position.lineNumber===n||(r="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,this._context.viewModel.getLineMaxColumn(n)),"below",this._position.outsideDistance)),this._dispatchMouse(r,!0,2),this._animationFrameDisposable=c.PG(c.zk(r.element),(()=>this._execute()))}}class Ee{static{this.CLEAR_MOUSE_DOWN_COUNT_TIME=400}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ee.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}var be=i(68792);class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(c.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const s=new W.DW(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class ye extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(c.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(be.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class we extends d.jG{constructor(e,t,i){super();(_.un||_.m0&&_.Fr)&&he.e.pointerEvents?this.handler=this._register(new Se(e,t,i)):ue.G.TouchEvent?this.handler=this._register(new ye(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Re=i(78209),Le=i(91508),Te=i(69785);class xe extends V{}var ke=i(47612),Ae=i(87119);class Ne extends xe{static{this.CLASS_NAME="line-numbers"}constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Y.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(96);const i=e.get(146);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));n.sort(((e,t)=>q.Q.compareRangesUsingEnds(e.range,t.range)));let r=0;const o=this._context.viewModel.getLineCount(),a=[];for(let c=i;c<=s;c++){const e=c-i;let s=this._getLineRenderLineNumber(c),l="";for(;r<n.length&&n[r].range.endLineNumber<c;)r++;for(let t=r;t<n.length;t++){const{range:e,options:i}=n[t];e.startLineNumber<=c&&(l+=" "+i.lineNumberClassName)}s||l?(c===o&&0===this._context.viewModel.getLineLength(c)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(l+=" dimmed-line-number")),c===this._activeLineNumber&&(l+=" active-line-number"),a[e]=`<div class="${Ne.CLASS_NAME}${t}${l}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.Qt),s=e.getColor(Ae.JB);s?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${s}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Ie extends z{static{this.CLASS_NAME="glyph-margin"}static{this.OUTER_CLASS_NAME="margin"}constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(Ie.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,H.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ie.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}var Oe=i(81782);const De="monaco-mouse-cursor-text";var Me=i(62083),Pe=i(47661),Fe=i(2299),Ue=i(98031),He=i(63591),Be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},We=function(e,t){return function(i,s){t(i,s,e)}};class Ve{constructor(e,t,i,s,n){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=s,this.distanceToModelLineEnd=n,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Y.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Y.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const ze=p.gm;let Ge=class extends z{constructor(e,t,i,s,n){super(e),this._keybindingService=s,this._instantiationService=n,this._primaryCursorPosition=new Y.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,o=r.get(146);this._setAccessibilityOptions(r),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=r.get(50),this._lineHeight=r.get(67),this._emptySelectionClipboard=r.get(37),this._copyWithSyntaxHighlighting=r.get(25),this._visibleTextArea=null,this._selections=[new pe.L(1,1,1,1)],this._modelSelections=[new pe.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,H.Z)(document.createElement("textarea")),G.write(this.textArea,7),this.textArea.setClassName(`inputarea ${De}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(r)),this.textArea.setAttribute("aria-required",r.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(r.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Re.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",r.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,H.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const c={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},l={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),s=Array.isArray(e)?e:null,n=Array.isArray(e)?e.join(t):e;let r,o=null;if(be.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&n.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,o=e.mode)}return{isFromEmptySelection:i,multicursorText:s,text:n,html:r,mode:o}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Te._O(i,i.length,i.length,q.Q.fromPositions(t),0)}const t=500;if(_.zx&&!e.isEmpty()&&c.getValueLengthInRange(e,0)<t){const t=c.getValueInRange(e,0);return new Te._O(t,0,t.length,e,0)}if(p.nr&&!e.isEmpty()){const e="vscode-placeholder";return new Te._O(e,0,e.length,null,void 0)}return Te._O.EMPTY}if(p.m0){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,s]=this._getAndroidWordAtPosition(t);if(i.length>0)return new Te._O(i,s,s,q.Q.fromPositions(t),0)}return Te._O.EMPTY}return Te.Al.fromEditorSelection(c,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new be.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(be.No,l,h,_.OS,{isAndroid:p.m0,isChrome:p.H8,isFirefox:p.gm,isSafari:p.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,s=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,s=e.metadata.mode),this._viewController.paste(e.text,t,i,s)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Te.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Te.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:s,widthOfHiddenTextBefore:n}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),s=e.lastIndexOf("\n"),n=e.substring(s+1),r=n.lastIndexOf("\t"),o=n.length-r-1,a=i.getStartPosition(),c=Math.min(a.column-1,o),l=a.column-1-c,h=n.substring(0,n.length-c),{tabSize:d}=this._context.viewModel.model.getOptions(),u=function(e,t,i,s){if(0===t.length)return 0;const n=e.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const r=e.createElement("span");(0,g.M)(r,i),r.style.whiteSpace="pre",r.style.tabSize=s*i.spaceWidth+"px",r.append(t),n.appendChild(r),e.body.appendChild(n);const o=r.offsetWidth;return n.remove(),o}(this.textArea.domNode.ownerDocument,h,this._fontInfo,d);return{distanceToModelLineStart:l,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:r}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),s=e.indexOf("\n"),n=-1===s?e:e.substring(0,s),r=n.indexOf("\t"),o=-1===r?n.length:n.length-r-1,a=i.getEndPosition(),c=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,o);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-c}})();this._context.viewModel.revealRange("keyboard",!0,q.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ve(this._context,i.startLineNumber,s,n,r),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${De} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${De}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let s=!0,n=e.column,r=!0,o=e.column,a=0;for(;a<50&&(s||r);){if(s&&n<=1&&(s=!1),s){const e=t.charCodeAt(n-2);0!==i.get(e)?s=!1:n--}if(r&&o>t.length&&(r=!1),r){const e=t.charCodeAt(o-1);0!==i.get(e)?r=!1:o++}a++}return[t.substring(n-1,o-1),e.column-n]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)(this._context.configuration.options.get(132),[]);let s=e.column,n=0;for(;s>1;){const r=t.charCodeAt(s-2);if(0!==i.get(r)||n>50)return t.substring(s-1,e.column-1);n++,s--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Le.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){if(1===e.get(2)){const e=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),t=this._keybindingService.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),i=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),s=Re.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?Re.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,e):t?Re.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",s,t):i?Re.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",s,i):s}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===R.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(146).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ze?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:s}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=s*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(125))),(e.hasChanged(34)||e.hasChanged(92))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.M.enabled||e.get(34)&&e.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){this._primaryCursorPosition=new Y.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea?.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,s=this._visibleTextArea.endPosition;if(i&&s&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,r=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let o=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,c=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,o+=e,c-=e}c>this._contentWidth&&(c=this._contentWidth);const l=this._context.viewModel.getViewLineData(i.lineNumber),h=l.tokens.findTokenIndexAtOffset(i.column-1),d=h===l.tokens.findTokenIndexAtOffset(s.column-1),u=this._visibleTextArea.definePresentation(d?l.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=r*this._lineHeight,this.textArea.domNode.scrollLeft=o,this._doRender({lastRenderPosition:null,top:n,left:a,width:c,height:this._lineHeight,useCover:!1,color:(Me.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight)this._renderAtTopLeft();else if(_.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._textAreaInput.textAreaState.newlineCountBeforeSelection??this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:ze?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ze?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const s=this._context.configuration.options;s.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Ie.OUTER_CLASS_NAME):0!==s.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ne.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ge=Be([We(3,Ue.b),We(4,He._Y)],Ge);var je=i(80624),Ke=i(36999);class Ye{constructor(e,t,i,s){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=s}paste(e,t,i,s){this.commandDelegate.paste(e,t,i,s)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,s){this.commandDelegate.compositionType(e,t,i,s)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Y.y(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.j9&&t.get(108),s=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||s?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Ke.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Ke.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ke.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ke.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Ke.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Ke.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Ke.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Ke.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Ke.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Ke.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Ke.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Ke.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Ke.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var qe=i(80789),$e=i(99020);class Qe{constructor(e){this._lineFactory=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new l.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),s=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>s)return null;let n=0,r=0;for(let o=i;o<=s;o++){const i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(n=i,r=1):r++)}if(e<i){let s=0;s=t<i?t-e+1:i-e,this._rendLineNumberStart-=s}return this._lines.splice(n,r)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const s=this.getStartLineNumber(),n=this.getEndLineNumber();let r=!1;for(let o=e;o<=i;o++)o>=s&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,s=this.getStartLineNumber(),n=this.getEndLineNumber();if(e<=s)return this._rendLineNumberStart+=i,null;if(e>n)return null;if(i+e>n){return this._lines.splice(e-this._rendLineNumberStart,n-e+1)}const r=[];for(let h=0;h<i;h++)r[h]=this._lineFactory.createLine();const o=e-this._rendLineNumberStart,a=this._lines.slice(0,o),c=this._lines.slice(o,this._lines.length-i),l=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(r).concat(c),l}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let s=!1;for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.toLineNumber<t||r.fromLineNumber>i)continue;const o=Math.max(t,r.fromLineNumber),a=Math.min(i,r.toLineNumber);for(let e=o;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),s=!0}}return s}}class Xe{constructor(e){this._lineFactory=e,this.domNode=this._createDomNode(),this._linesCollection=new Qe(this._lineFactory)}_createDomNode(){const e=(0,H.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(146)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Ze(this.domNode.domNode,this._lineFactory,e),s={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},n=i.render(s,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(n.rendLineNumberStart,n.lines)}}class Ze{static{this._ttPolicy=(0,qe.H)("editorViewLayer",{createHTML:e=>e})}constructor(e,t,i){this._domNode=e,this._lineFactory=t,this._viewportData=i}render(e,t,i,s){const n={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(n.rendLineNumberStart+n.linesLength-1<t||i<n.rendLineNumberStart){n.rendLineNumberStart=t,n.linesLength=i-t+1,n.lines=[];for(let e=t;e<=i;e++)n.lines[e-t]=this._lineFactory.createLine();return this._finishRendering(n,!0,s),n}if(this._renderUntouchedLines(n,Math.max(t-n.rendLineNumberStart,0),Math.min(i-n.rendLineNumberStart,n.linesLength-1),s,t),n.rendLineNumberStart>t){const e=t,r=Math.min(i,n.rendLineNumberStart-1);e<=r&&(this._insertLinesBefore(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart<t){const e=Math.min(n.linesLength,t-n.rendLineNumberStart);e>0&&(this._removeLinesBefore(n,e),n.linesLength-=e)}if(n.rendLineNumberStart=t,n.rendLineNumberStart+n.linesLength-1<i){const e=n.rendLineNumberStart+n.linesLength,r=i;e<=r&&(this._insertLinesAfter(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart+n.linesLength-1>i){const e=Math.max(0,i-n.rendLineNumberStart+1),t=n.linesLength-1-e+1;t>0&&(this._removeLinesAfter(n,t),n.linesLength-=t)}return this._finishRendering(n,!1,s),n}_renderUntouchedLines(e,t,i,s,n){const r=e.rendLineNumberStart,o=e.lines;for(let a=t;a<=i;a++){const e=r+a;o[a].layoutLine(e,s[e-n],this._viewportData.lineHeight)}}_insertLinesBefore(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t?.remove()}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let s=0;s<t;s++){const t=e.lines[i+s].getDomNode();t?.remove()}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,s){Ze._ttPolicy&&(i=Ze._ttPolicy.createHTML(i));const n=this._domNode.lastChild;t||!n?this._domNode.innerHTML=i:n.insertAdjacentHTML("afterend",i);let r=this._domNode.lastChild;for(let o=e.linesLength-1;o>=0;o--){const t=e.lines[o];s[o]&&(t.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const s=document.createElement("div");Ze._ttPolicy&&(t=Ze._ttPolicy.createHTML(t)),s.innerHTML=t;for(let n=0;n<e.linesLength;n++){const t=e.lines[n];if(i[n]){const e=s.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}static{this._sb=new $e.fe(1e5)}_finishRendering(e,t,i){const s=Ze._sb,n=e.linesLength,r=e.lines,o=e.rendLineNumberStart,a=[];{s.reset();let c=!1;for(let e=0;e<n;e++){const t=r[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(a[e]=!0,c=!0)}c&&this._finishRenderingNewLines(e,t,s.build(),a)}{s.reset();let t=!1;const c=[];for(let e=0;e<n;e++){const n=r[e];if(c[e]=!1,a[e])continue;n.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(c[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,s.build(),c)}}}class Je extends z{constructor(e){super(e),this._dynamicOverlays=[],this._isFocused=!1,this._visibleLines=new Xe({createLine:()=>new et(this._dynamicOverlays)}),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.M)(this.domNode,t),this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.M)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,s=t.length;i<s;i++){const s=t[i];s.prepareRender(e),s.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,H.Z)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,s,n){let r="";for(let o=0,a=this._dynamicOverlays.length;o<a;o++){r+=this._dynamicOverlays[o].render(s.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;">'),n.appendString(r),n.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.M)(this.domNode,t.get(50));const i=t.get(146);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class st{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown?.(e)}emitKeyUp(e){this.onKeyUp?.(e)}emitContextMenu(e){this.onContextMenu?.(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove?.(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave?.(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown?.(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp?.(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag?.(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop?.(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled?.()}emitMouseWheel(e){this.onMouseWheel?.(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return st.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new Y.y(e.afterLineNumber,1)).lineNumber}}}class nt extends z{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(146),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const s=t.contentLeft;return this.contentLeft!==s&&(this.contentLeft=s,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){let t=0;const i=e.getDecorationsInViewport();for(const s of i){if(!s.options.blockClassName)continue;let i,n,r=this.blocks[t];r||(r=this.blocks[t]=(0,H.Z)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(i=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(i=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),n=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[o,a,c,l]=s.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-l),r.setWidth(this.contentWidth+l+a),r.setTop(i-e.scrollTop-o),r.setHeight(n-i+o+c),t++}for(let s=t;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=t}}class rt extends z{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,H.Z)(document.createElement("div")),G.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new ot(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,s,n){this._widgets[e.getId()].setPosition(t,i,s,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.remove(),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ot{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,H.Z)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const s=this._context.configuration.options,n=s.get(146);this._fixedOverflowWidgets=s.get(42),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this._lineHeight=s.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(146)){const e=t.get(146);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function s(e,t,i){if(!e)return new at(null,null);const s=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(s)){const n=t.coordinatesConverter.convertModelPositionToViewPosition(s,i??void 0);return new at(e,n)}return new at(e,null)}this._affinity=e,this._primaryAnchor=s(t,this._context.viewModel,this._affinity),this._secondaryAnchor=s(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?t?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,s){this._setPosition(s,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,s){const n=e.top,r=n,o=e.top+e.height,a=n-i,c=r>=i,l=o,h=s.viewportHeight-o>=i;let d=e.left;return d+t>s.scrollLeft+s.viewportWidth&&(d=s.scrollLeft+s.viewportWidth-t),d<s.scrollLeft&&(d=s.scrollLeft),{fitsAbove:c,aboveTop:a,fitsBelow:h,belowTop:l,left:d}}_layoutHorizontalSegmentInPage(e,t,i,s){const n=Math.max(15,t.left-s),r=Math.min(t.left+t.width+s,e.width-15),o=this._viewDomNode.domNode.ownerDocument.defaultView;let a=t.left+i-(o?.scrollX??0);if(a+s>r){const e=a-(r-s);a-=e,i-=e}if(a<n){const e=a-n;a-=e,i-=e}return[i,a]}_layoutBoxInPage(e,t,i,s){const n=e.top-i,r=e.top+e.height,o=c.BK(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,l=a.defaultView,h=o.top+n-(l?.scrollY??0),d=o.top+r-(l?.scrollY??0),u=c.tG(a.body),[g,p]=this._layoutHorizontalSegmentInPage(u,o,e.left-s.scrollLeft+this._contentLeft,t),m=h>=22,f=d+i<=u.height-22;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(h,22),fitsBelow:f,belowTop:d,left:p}:{fitsAbove:m,aboveTop:n,fitsBelow:f,belowTop:r,left:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new ct(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){return{primary:t(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:t(this._secondaryAnchor.viewPosition?.lineNumber===this._primaryAnchor.viewPosition?.lineNumber?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function t(t,i,s){if(!t)return null;const n=e.visibleRangeForPosition(t);if(!n)return null;const r=1===t.column&&3===i?0:n.left,o=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new lt(o,r,s)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const s=this._context.configuration.options.get(50);let n=t.left;return n=n<e.left?Math.max(n,e.left-i+s.typicalFullwidthCharacterWidth):Math.min(n,e.left+i-s.typicalFullwidthCharacterWidth),new lt(e.top,n,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return{kind:"offViewport",preserveFocus:this.domNode.domNode.contains(this.domNode.domNode.ownerDocument.activeElement)};if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const s=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let n;n=this.allowEditorOverflow?this._layoutBoxInPage(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!n)return null;if(2===r||n.fitsAbove)return{kind:"inViewport",coordinate:new ct(n.aboveTop,n.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new ct(s.top,s.left)),position:0}:{kind:"inViewport",coordinate:new ct(s.top,s.left),position:0};if(!n)return null;if(2===r||n.fitsBelow)return{kind:"inViewport",coordinate:new ct(n.belowTop,n.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData||"offViewport"===this._renderData.kind)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,"offViewport"===this._renderData?.kind&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class ct{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class lt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t,...i){try{return e.call(t,...i)}catch{return null}}var dt=i(86723);class ut extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const n of this._selections)t.add(n.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const s=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==s&&(this._selectionIsEmpty=s,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=[];for(let r=t;r<=i;r++){s[r-t]=""}if(this._wordWrap){const n=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const r=this._context.viewModel.coordinatesConverter,o=r.convertViewPositionToModelPosition(new Y.y(e,1)).lineNumber,a=r.convertModelPositionToViewPosition(new Y.y(o,1)).lineNumber,c=r.convertModelPositionToViewPosition(new Y.y(o,this._context.viewModel.model.getLineMaxColumn(o))).lineNumber,l=Math.max(a,t),h=Math.min(c,i);for(let e=l;e<=h;e++){s[e-t]=n}}}const n=this._renderOne(e,!0);for(const r of this._cursorLineNumbers){if(r<t||r>i)continue;s[r-t]=n}this._renderData=s}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ae.Mf)){const i=e.getColor(Ae.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,dt.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],s=0;for(let a=0,c=t.length;a<c;a++){const e=t[a];e.options.className&&(i[s++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,s=t.options.className;return i<s?-1:i>s?1:q.Q.compareRangesUsingStarts(e.range,t.range)}));const n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o=[];for(let a=n;a<=r;a++){o[a-n]=""}this._renderWholeLineDecorations(e,i,o),this._renderNormalDecorations(e,i,o),this._renderResult=o}_renderWholeLineDecorations(e,t,i){const s=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let r=0,o=t.length;r<o;r++){const e=t[r];if(!e.options.isWholeLine)continue;const o='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,s),c=Math.min(e.range.endLineNumber,n);for(let t=a;t<=c;t++){i[t-s]+=o}}}_renderNormalDecorations(e,t,i){const s=e.visibleRange.startLineNumber;let n=null,r=!1,o=null,a=!1;for(let c=0,l=t.length;c<l;c++){const l=t[c];if(l.options.isWholeLine)continue;const h=l.options.className,d=Boolean(l.options.showIfCollapsed);let u=l.range;d&&1===u.endColumn&&u.endLineNumber!==u.startLineNumber&&(u=new q.Q(u.startLineNumber,u.startColumn,u.endLineNumber-1,this._context.viewModel.getLineMaxColumn(u.endLineNumber-1))),n===h&&r===d&&q.Q.areIntersectingOrTouching(o,u)?o=q.Q.plusRange(o,u):(null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i),n=h,r=d,o=u,a=l.options.shouldFillLineOnLineBreak??!1)}null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i)}_renderNormalDecoration(e,t,i,s,n,r,o){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let c=0,l=a.length;c<l;c++){const e=a[c];if(e.outsideRenderedLine)continue;const t=e.lineNumber-r;if(n&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),s=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new je.Y(s,this._typicalHalfwidthCharacterWidth)}}for(let n=0,r=e.ranges.length;n<r;n++){const a=s&&e.continuesOnNextLine&&1===r,c=e.ranges[n],l='<div class="cdr '+i+'" style="left:'+String(c.left)+"px;width:"+(a?"100%;":String(c.width)+"px;")+'"></div>';o[t]+=l}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends z{constructor(e,t,i,s){super(e);const n=this._context.configuration.options,r=n.get(104),o=n.get(75),a=n.get(40),l=n.get(107),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,ke.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:o,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new me.oO(t.domNode,h,this._context.viewLayout.getScrollable())),G.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,H.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const s={};if(t){const t=e.scrollTop;t&&(s.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(s.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(s,1)};this._register(c.ko(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(c.ko(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(c.ko(s.domNode,"scroll",(e=>d(s.domNode,!0,!1)))),this._register(c.ko(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(104),i=e.get(75),s=e.get(40),n=e.get(107),r={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:s,scrollPredominantAxis:n};this.scrollbar.updateOptions(r)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,ke.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(16223);class vt{constructor(e,t,i,s,n){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=s,this._decorationToRenderBrand=void 0,this.zIndex=n??0}}class Ct{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Et{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class bt extends xe{_render(e,t,i){const s=[];for(let o=e;o<=t;o++){s[o-e]=new Et}if(0===i.length)return s;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let n=null,r=0;for(let o=0,a=i.length;o<a;o++){const a=i[o],c=a.className,l=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;n===c?(h=Math.max(r+1,h),r=Math.max(r,d)):(n=c,r=d);for(let e=h;e<=r;e++)s[e].add(new Ct(c,l,a.tooltip))}return s}}class St extends z{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(146);this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!q.Q.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets[t]){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=e.getDecorationsInViewport();for(const r of n){const e=r.options.glyphMarginClassName;if(!e)continue;const n=Math.max(r.range.startLineNumber,i),o=Math.min(r.range.endLineNumber,s),a=r.options.glyphMargin?.position??_t.ZS.Center,c=r.options.zIndex??0;for(let i=n;i<=o;i++){const s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,0)),n=this._context.viewModel.glyphLanes.getLanesAtLine(s.lineNumber).indexOf(a);t.push(new yt(i,n,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(const n of Object.values(this._widgets)){const e=n.preference.range,{startLineNumber:r,endLineNumber:o}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(q.Q.lift(e));if(!r||!o||o<i||r>s)continue;const a=Math.max(r,i),c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(a,0)),l=this._context.viewModel.glyphLanes.getLanesAtLine(c.lineNumber).indexOf(n.preference.lane);t.push(new wt(a,l,n.preference.zIndex,n))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const s of Object.values(this._widgets))s.renderInfo=null;const t=new m.j3(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const s=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!s||0===s.length)break;const n=s[0];if(0===n.type){const e=[];for(const t of s){if(t.zIndex!==n.zIndex||t.type!==n.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(n.accept(e.join(" ")))}else n.widget.renderInfo={lineNumber:n.lineNumber,laneIndex:n.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();e?.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const s=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],n=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(s),i.domNode.setLeft(n),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const s=this._decorationGlyphsToRender[i],n=e.viewportData.relativeVerticalOffset[s.lineNumber-e.viewportData.startLineNumber],r=this._glyphMarginLeft+s.laneIndex*this._lineHeight;let o;i<this._managedDomNodes.length?o=this._managedDomNodes[i]:(o=(0,H.Z)(document.createElement("div")),this._managedDomNodes.push(o),this.domNode.appendChild(o)),o.setClassName("cgmr codicon "+s.combinedClassName),o.setPosition("absolute"),o.setTop(n),o.setLeft(r),o.setWidth(t),o.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();e?.domNode.remove()}}}class yt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=s,this.type=0}accept(e){return new Rt(this.lineNumber,this.laneIndex,e)}}class wt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=s,this.type=1}}class Rt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Lt=i(631),Tt=i(53450),xt=i(84739);class kt extends xe{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(147),s=t.get(50);this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(147),s=t.get(50);return this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return!this._primaryPosition?.equals(t)&&(this._primaryPosition=t,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=e.scrollWidth,n=this._primaryPosition,r=this.getGuidesByLine(t,Math.min(i+1,this._context.viewModel.getLineCount()),n),o=[];for(let a=t;a<=i;a++){const i=a-t,n=r[i];let c="";const l=e.visibleRangeForPosition(new Y.y(a,1))?.left??0;for(const t of n){const i=-1===t.column?l+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new Y.y(a,t.column)).left;if(i>s||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const n=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(e.visibleRangeForPosition(new Y.y(a,t.horizontalLine.endColumn))?.left??i+this._spaceWidth)-i:this._spaceWidth;c+=`<div class="core-guide ${t.className} ${n}" style="left:${i}px;width:${r}px"></div>`}o[i]=c}this._renderResult=o}getGuidesByLine(e,t,i){const s=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.EnabledForActive:xt.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,n=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,o=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const s=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=s.startLineNumber,o=s.endLineNumber,a=s.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),l=[];for(let h=e;h<=t;h++){const t=new Array;l.push(t);const i=s?s[h-e]:[],d=new m.j3(i),u=n?n[h-e]:0;for(let e=1;e<=u;e++){const s=(e-1)*c+1,n=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&r<=h&&h<=o&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn<s))||[]);const l=d.peek();l&&l.visibleColumn===s&&!l.horizontalLine||t.push(new xt.TH(s,-1,"core-guide-indent lvl-"+(e-1)%30+(n?" indent-active":""),null,-1,-1))}t.push(...d.takeWhile((e=>!0))||[])}return l}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function At(e){if(!e||!e.isTransparent())return e}(0,ke.zy)(((e,t)=>{const i=[{bracketColor:Ae.sN,guideColor:Ae.n4,guideColorActive:Ae.bB},{bracketColor:Ae.lQ,guideColor:Ae.I2,guideColorActive:Ae.WS},{bracketColor:Ae.ss,guideColor:Ae.Bo,guideColorActive:Ae.Pe},{bracketColor:Ae.l5,guideColor:Ae.If,guideColorActive:Ae.WD},{bracketColor:Ae.sH,guideColor:Ae.BD,guideColorActive:Ae.P1},{bracketColor:Ae.zp,guideColor:Ae.IW,guideColorActive:Ae.WY}],s=new Tt.k,n=[{indentColor:Ae.vV,indentColorActive:Ae.H0},{indentColor:Ae.ob,indentColorActive:Ae.Am},{indentColor:Ae.hz,indentColorActive:Ae.tK},{indentColor:Ae.ow,indentColorActive:Ae.A3},{indentColor:Ae.vP,indentColorActive:Ae.tp},{indentColor:Ae.CM,indentColorActive:Ae.As}],r=i.map((t=>{const i=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),n=e.getColor(t.guideColorActive),r=At(At(s)??i?.transparent(.3)),o=At(At(n)??i);if(r&&o)return{guideColor:r,guideColorActive:o}})).filter(Lt.O9),o=n.map((t=>{const i=e.getColor(t.indentColor),s=e.getColor(t.indentColorActive),n=At(i),r=At(s);if(n&&r)return{indentColor:n,indentColorActive:r}})).filter(Lt.O9);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var Nt=i(90766);class It{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class Ot{constructor(){this._currentVisibleRange=new q.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Dt{constructor(e,t,i,s,n,r,o){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=n,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Mt{constructor(e,t,i,s,n){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=n,this.type="selections";let r=t[0].startLineNumber,o=t[0].endLineNumber;for(let a=1,c=t.length;a<c;a++){const e=t[a];r=Math.min(r,e.startLineNumber),o=Math.max(o,e.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class Pt extends z{static{this.HORIZONTAL_EXTRA_PX=30}constructor(e,t){super(e);const i=this._context.configuration,s=this._context.configuration.options,n=s.get(50),r=s.get(147);this._lineHeight=s.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=r.isViewportWrapping,this._revealHorizontalRightPadding=s.get(101),this._cursorSurroundingLines=s.get(29),this._cursorSurroundingLinesStyle=s.get(30),this._canUseLayerHinting=!s.get(32),this._viewLineOptions=new K.Ax(i,this._context.theme.type),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Xe({createLine:()=>new K.Gb(this._viewLineOptions)}),this.domNode=this._visibleLines.domNode,G.write(this.domNode,8),this.domNode.setClassName(`view-lines ${De}`),(0,g.M)(this.domNode,n),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Nt.uC((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new Nt.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new Ot,this._horizontalRevealRequest=null,this._stickyScrollEnabled=s.get(116).enabled,this._maxNumberStickyLines=s.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(147)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),s=t.get(147);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(101),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(116).enabled,this._maxNumberStickyLines=t.get(116).maxLineCount,(0,g.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new K.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=!1;for(let n=t;n<=i;n++)s=this._visibleLines.getVisibleLine(n).onSelectionChanged()||s;return s}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Dt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Mt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const s=this._getLineNumberFor(i);if(-1===s)return null;if(s<1||s>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(s))return new Y.y(s,1);const n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(s<n||s>r)return null;let o=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(s);return o<a&&(o=a),new Y.y(s,o)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===K.Gb.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++){if(e===this._visibleLines.getVisibleLine(s).getDomNode())return s}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getWidth(s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,s=q.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;const n=[];let r=0;const o=new It(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(s.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber();for(let h=s.startLineNumber;h<=s.endLineNumber;h++){if(h<c||h>l)continue;const e=h===s.startLineNumber?s.startColumn:1,d=h!==s.endLineNumber,u=d?this._context.viewModel.getLineMaxColumn(h):s.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,o);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}n[r++]=new je.BG(g.outsideRenderedLine,h,je.Y.from(g.ranges),d)}}return this._updateLineWidthsSlowIfDomDidLayout(o),0===r?null:n}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new je.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=1,n=!0;for(let r=t;r<=i;r++){const t=this._visibleLines.getVisibleLine(r);!e||t.getWidthIsFast()?s=Math.max(s,t.getWidth(null)):n=!1}return n&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),n}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let n=i;n<=s;n++){const i=this._visibleLines.getVisibleLine(n);if(i.needsMonospaceFontCheck()){const s=i.getWidth(null);s>t&&(t=s,e=n)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let n=i;n<=s;n++){this._visibleLines.getVisibleLine(n).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,s,n,r){const o=e.top,a=e.height,c=o+a;let l,h,d;if(n&&n.length>0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,s=n.length;i<s;i++){const s=n[i];e=Math.min(e,s.startLineNumber),t=Math.max(t,s.endLineNumber)}l=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return-1;l=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(s.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(s.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=a/this._lineHeight,t=Math.max(this._cursorSurroundingLines,this._stickyScrollEnabled?this._maxNumberStickyLines:0),i=Math.min(e/2,t);g=i*this._lineHeight,p=Math.max(0,i-1)*this._lineHeight}if(i||0!==r&&4!==r||(p+=this._lineHeight),h-=g,d+=p,d-h>a){if(!l)return-1;u=h}else if(5===r||6===r)if(6===r&&o<=h&&d<=c)u=o;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=d-a;u=Math.max(t,e)}else if(1===r||2===r)if(2===r&&o<=h&&d<=c)u=o;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(o,c,h,d,3===r,4===r);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(146),s=t.left,n=s+t.width-i.verticalScrollbarWidth;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,Math.round(e.left)),o=Math.max(o,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,Math.round(t.left)),o=Math.max(o,Math.round(t.left+t.width))}if(e.minimalReveal||(r=Math.max(0,r-Pt.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding),"selections"===e.type&&o-r>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(s,n,r,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,i,s,n,r){n=!!n,r=!!r;const o=(t|=0)-(e|=0);return(s|=0)-(i|=0)<o?n?i:r?Math.max(0,s-o):i<e?i:s>t?Math.max(0,s-o):e:i}}class Ft extends bt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(146);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.linesDecorationsClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,e.options.linesDecorationsTooltip??null,o));const a=e.options.firstLineDecorationClassName;a&&(i[s++]=new vt(e.range.startLineNumber,e.range.startLineNumber,a,e.options.linesDecorationsTooltip??null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let o=t;o<=i;o++){const e=o-t,i=s[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=n,a+=e}r[e]=a}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Ut extends bt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.marginClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n=[];for(let r=t;r<=i;r++){const e=r-t,i=s[e].getDecorations();let o="";for(const t of i)o+='<div class="cmdr '+t.className+'" style=""></div>';n[e]=o}this._renderResult=n}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Ht=i(34072);class Bt{static{this.Empty=new Bt(0,0,0,0)}constructor(e,t,i,s){this._rgba8Brand=void 0,this.r=Bt._clamp(e),this.g=Bt._clamp(t),this.b=Bt._clamp(i),this.a=Bt._clamp(s)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}class Wt extends d.jG{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,d.lC)(new Wt)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Me.dG.getColorMap();if(!e)return this._colors=[Bt.Empty],void(this._backgroundIsLight=!0);this._colors=[Bt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Bt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}var Vt=i(92896),zt=i(66261);const Gt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var jt=i(85152);class Kt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Kt.soften(e,.8),this.charDataLight=Kt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let s=0,n=e.length;s<n;s++)i[s]=(0,jt.W)(e[s]*t);return i}renderChar(e,t,i,s,n,r,o,a,c,l,h){const d=1*this.scale,u=2*this.scale,g=h?1:u;if(t+d>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=l?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(s,c),f=4*e.width,_=o.r,v=o.g,C=o.b,E=n.r-_,b=n.g-v,S=n.b-C,y=Math.max(r,a),w=e.data;let R=m*d*u,L=i*f+4*t;for(let T=0;T<g;T++){let e=L;for(let t=0;t<d;t++){const t=p[R++]/255*(r/255);w[e++]=_+E*t,w[e++]=v+b*t,w[e++]=C+S*t,w[e++]=y}L+=f}}blockRenderChar(e,t,i,s,n,r,o,a){const c=1*this.scale,l=2*this.scale,h=a?1:l;if(t+c>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=n/255*.5,g=r.r,p=r.g,m=r.b,f=g+(s.r-g)*u,_=p+(s.g-p)*u,v=m+(s.b-m)*u,C=Math.max(n,o),E=e.data;let b=i*d+4*t;for(let S=0;S<h;S++){let e=b;for(let t=0;t<c;t++)E[e++]=f,E[e++]=_,E[e++]=v,E[e++]=C;b+=d}}}var Yt=i(6921);const qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},$t=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=qt[e[i]]<<4|15&qt[e[i+1]];return t},Qt={1:(0,Yt.P)((()=>$t("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Yt.P)((()=>$t("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Xt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Qt[e]?new Kt(Qt[e](),e):Xt.createFromSampleData(Xt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let s=0;for(const n of Gt)i.fillText(String.fromCharCode(n),s,8),s+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Xt._downsample(e,t);return new Kt(i,t)}static _downsampleChar(e,t,i,s,n){const r=1*n,o=2*n;let a=s,c=0;for(let l=0;l<o;l++){const s=l/o*16,n=(l+1)/o*16;for(let o=0;o<r;o++){const l=o/r*10,h=(o+1)/r*10;let d=0,u=0;for(let i=s;i<n;i++){const s=t+3840*Math.floor(i),n=1-(i-Math.floor(i));for(let t=l;t<h;t++){const i=1-(t-Math.floor(t)),r=s+4*Math.floor(t),o=i*n;u+=o,d+=e[r]*e[r+3]/255*o}}const g=d/u;c=Math.max(c,g),i[a++]=(0,jt.W)(g)}}return c}static _downsample(e,t){const i=2*t*1*t,s=96*i,n=new Uint8ClampedArray(s);let r=0,o=0,a=0;for(let c=0;c<96;c++)a=Math.max(a,this._downsampleChar(e,o,n,r,t)),r+=i,o+=40;if(a>0){const e=255/a;for(let t=0;t<s;t++)n[t]*=e}return n}}var Zt=i(74320),Jt=i(49435);class ei{constructor(e,t,i){const s=e.options,n=s.get(144),r=s.get(146),o=r.minimap,a=s.get(50),c=s.get(73);this.renderMinimap=o.renderMinimap,this.size=c.size,this.minimapHeightIsEditorHeight=o.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=s.get(106),this.paddingTop=s.get(84).top,this.paddingBottom=s.get(84).bottom,this.showSlider=c.showSlider,this.autohide=c.autohide,this.pixelRatio=n,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=s.get(67),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=o.minimapCanvasInnerWidth,this.canvasInnerHeight=o.minimapCanvasInnerHeight,this.canvasOuterWidth=o.minimapCanvasOuterWidth,this.canvasOuterHeight=o.minimapCanvasOuterHeight,this.isSampling=o.minimapIsSampling,this.editorHeight=r.height,this.fontScale=o.minimapScale,this.minimapLineHeight=o.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt.z,this.sectionHeaderFontSize=c.sectionHeaderFontSize*n,this.sectionHeaderLetterSpacing=c.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,Yt.P)((()=>Xt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(zt.ILr);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(zt.K1Z);return t?Bt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(zt.By2);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,s,n,r,o,a,c){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=s,this.sliderTop=n,this.sliderHeight=r,this.topPaddingLineCount=o,this.startLineNumber=a,this.endLineNumber=c}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,s,n,r,o,a,c,l,h){const d=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,n-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(n*n/t)),s=Math.max(0,e.minimapHeight-i),r=s/(l-n),h=c*r,d=s>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(c,l,d,r,h,i,g,1,Math.min(o,u))}let m;if(r&&i!==o){const e=i-t+1;m=Math.floor(e*u/d)}else{const e=n/p;m=Math.floor(e*u/d)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=n/p;v=Math.max(v,e-1)}if(v>0){_=(f+o+v-n/p-1)*u/d}else _=Math.max(0,(f+o)*u/d-m);_=Math.min(e.minimapHeight-m,_);const C=_/(l-n),E=c*C;if(g>=f+o+v){return new ti(c,l,_>0,C,E,m,f,1,o)}{let i,n;i=t>1?t+f:Math.max(1,c/p);let r=Math.max(1,Math.floor(i-E*d/u));r<f?(n=f-r+1,r=1):(n=0,r=Math.max(1,r-f)),h&&h.scrollHeight===l&&(h.scrollTop>c&&(r=Math.min(r,h.startLineNumber),n=Math.max(n,h.topPaddingLineCount)),h.scrollTop<c&&(r=Math.max(r,h.startLineNumber),n=Math.min(n,h.topPaddingLineCount)));const a=Math.min(o,r-n+g-1),_=(c-s)/p;let v;return v=c>=e.paddingTop?(t-r+n+_)*u/d:c/e.paddingTop*(n+_)*u/d,new ti(c,l,!0,C,v,m,n,r,a)}}}class ii{static{this.INVALID=new ii(-1)}constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}class si{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Qe({createLine:()=>ii.INVALID}),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,s=t.length;i<s;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class ni{constructor(e,t,i,s){this._backgroundFillData=ni._createBackgroundFillData(t,i,s),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const s=i.r,n=i.g,r=i.b,o=i.a,a=new Uint8ClampedArray(e*t*4);let c=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)a[c]=s,a[c+1]=n,a[c+2]=r,a[c+3]=o,c+=4;return a}}class ri{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:s}=R.xZ.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),n=t/s,r=n/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,s>1){for(let t=0,i=s-1;t<i;t++)e[t]=Math.round(t*n+r);e[s-1]=t}return[new ri(n,e),[]]}const o=i.minimapLines,a=o.length,c=[];let l=0,h=0,d=1;let u=[],g=null;for(let p=0;p<s;p++){const e=Math.max(d,Math.round(p*n)),i=Math.max(e,Math.round((p+1)*n));for(;l<a&&o[l]<e;){if(u.length<10){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}l++}let m;if(l<a&&o[l]<=i)m=o[l],l++;else if(m=0===p?1:p+1===s?t:Math.round(p*n+r),u.length<10){const e=l+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}c[p]=m,d=m}if(u.length<10)for(;l<a;){const e=l+1+h;g&&"deleted"===g.type&&g._oldIndex===l-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:l,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,l++}else u=[{type:"flush"}];return[new ri(n,c),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let s=this.modelLineToMinimapLine(t)-1;for(;s+1<this.minimapLines.length&&this.minimapLines[s+1]<=t;)s++;if(i===s){const s=this.minimapLines[i];if(s<e||s>t)return null}return[i+1,s+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),s=this.modelLineToMinimapLine(t);return e!==t&&s===i&&(s===this.minimapLines.length?i>1&&i--:s++),[i,s]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,s=0;for(let n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]<=e.toLineNumber?(this.minimapLines[n]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,n),s=Math.max(s,n)):this.minimapLines[n]-=t;return[i,s]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class oi extends z{constructor(e){super(e),this._sectionHeaderCache=new Zt.qK(10,1.5),this.tokensColorTracker=Wt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=ri.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const s={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(s)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=ri.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const s of i)switch(s.type){case"deleted":this._actual.onLinesDeleted(s.deleteFromLineNumber,s.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(s.insertFromLineNumber,s.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const s=[];for(let n=0,r=t-e+1;n<r;n++)i[n]?s[n]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+n-1]):s[n]=null;return s}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.L(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>!e.options.minimap?.sectionHeaderStyle));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,s=this._samplingState.modelLineToMinimapLine(i.startLineNumber),n=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new Vt.vo(new q.Q(s,i.startColumn,n,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,s=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-s)),this._getMinimapDecorationsInViewport(e,t).filter((e=>!!e.options.minimap?.sectionHeaderStyle))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const s=this._samplingState.minimapLines[e-1],n=this._samplingState.minimapLines[t-1];i=new q.Q(s,1,n,this._context.viewModel.getLineMaxColumn(n))}else i=new q.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){const i=e.options.minimap?.sectionHeaderText;if(!i)return null;const s=this._sectionHeaderCache.get(i);if(s)return s;const n=t(i);return this._sectionHeaderCache.set(i,n),n}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new q.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends d.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(zt.yr0),this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,H.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,H.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,H.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,H.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,H.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=c.b2(this._domNode.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=c.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let s=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;s=Math.min(s,this._model.getLineCount()),this._model.revealLineNumber(s)})),this._sliderPointerMoveMonitor=new Ht._,this._sliderPointerDownListener=c.b2(this._slider.domNode,c.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=de.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=c.ko(this._domNode.domNode,de.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=c.ko(this._domNode.domNode,de.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=c.b2(this._domNode.domNode,de.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const s=e.pageX;this._slider.toggleClassName("active",!0);const n=(e,n)=>{const r=c.BK(this._domNode.domNode),o=Math.min(Math.abs(n-s),Math.abs(n-r.left),Math.abs(n-r.left-r.width));if(_.uF&&o>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&n(e.pageY,s),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>n(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new ni(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData?.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData?.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(zt.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(q.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:s,canvasInnerHeight:n}=this._model.options,r=this._model.options.minimapLineHeight,o=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,s,n);const l=new ci(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,l,e,r),this._renderDecorationsLineHighlights(c,i,l,e,r);const h=new ci(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,a,o,s),this._renderDecorationsHighlights(c,i,h,e,r,a,o,s),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,s,n){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,o=0;for(const a of t){const t=s.intersectWithViewport(a);if(!t)continue;const[c,l]=t;for(let e=c;e<=l;e++)i.set(e,!0);const h=s.getYForLineNumber(c,n),d=s.getYForLineNumber(l,n);o>=h||(o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r),r=h),o=d}o>r&&e.fillRect(R.xq,r,e.canvas.width,o-r)}_renderDecorationsLineHighlights(e,t,i,s,n){const r=new Map;for(let o=t.length-1;o>=0;o--){const a=t[o],c=a.options.minimap;if(!c||1!==c.position)continue;const l=s.intersectWithViewport(a.range);if(!l)continue;const[h,d]=l,u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const r=s.getYForLineNumber(h,n);e.fillRect(R.xq,r,e.canvas.width,n)}}}_renderSelectionsHighlights(e,t,i,s,n,r,o,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const c of t){const t=s.intersectWithViewport(c);if(!t)continue;const[l,h]=t;for(let d=l;d<=h;d++)this.renderDecorationOnLine(e,i,c,this._selectionColor,s,d,n,n,r,o,a)}}_renderDecorationsHighlights(e,t,i,s,n,r,o,a){for(const c of t){const t=c.options.minimap;if(!t)continue;const l=s.intersectWithViewport(c.range);if(!l)continue;const[h,d]=l,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=d;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,c.range,u,s,g,n,n,r,o,a);continue;case 2:{const t=s.getYForLineNumber(g,n),i=2;this.renderDecoration(e,u,i,t,2,n);continue}}}}renderDecorationOnLine(e,t,i,s,n,r,o,a,c,l,h){const d=n.getYForLineNumber(r,a);if(d+o<0||d>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===r?i.startColumn:1,m=g===r?i.endColumn:this._model.getLineMaxColumn(r),f=this.getXOffsetForPosition(t,r,p,c,l,h),_=this.getXOffsetForPosition(t,r,m,c,l,h);this.renderDecoration(e,s,f,d,_-f,o)}getXOffsetForPosition(e,t,i,s,n,r){if(1===i)return R.xq;if((i-1)*n>=r)return r;let o=e.get(t);if(!o){const i=this._model.getLineContent(t);o=[R.xq];let a=R.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),c=a+(9===t?s*n:Le.ne(t)?2*n:n);if(c>=r){o[e]=r;break}o[e]=c,a=c}e.set(t,o)}return i-1<o.length?o[i-1]:r}renderDecoration(e,t,i,s,n,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,s,n,r)}_renderSectionHeaders(e){const t=this._model.options.minimapLineHeight,i=this._model.options.sectionHeaderFontSize,s=this._model.options.sectionHeaderLetterSpacing,n=1.5*i,{canvasInnerWidth:r}=this._model.options,o=this._model.options.backgroundColor,a=`rgb(${o.r} ${o.g} ${o.b} / .7)`,c=this._model.options.sectionHeaderFontColor,l=`rgb(${c.r} ${c.g} ${c.b})`,h=l,d=this._decorationsCanvas.domNode.getContext("2d");d.letterSpacing=s+"px",d.font="500 "+i+"px "+this._model.options.sectionHeaderFontFamily,d.strokeStyle=h,d.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,d,r-R.xq);for(const p of u){const s=e.getYForLineNumber(p.range.startLineNumber,t)+i,o=s-i,c=o+2,h=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(d,h,2===p.options.minimap?.sectionHeaderStyle,a,l,r,o,n,s,c)}}static _fitSectionHeader(e,t,i){if(!i)return i;const s=e.measureText(i).width,n=e.measureText("\u2026").width;if(s<=t||s<=n)return i;const r=i.length,o=s/i.length,a=Math.floor((t-n)/o)-1;let c=Math.ceil(a/2);for(;c>0&&/\s/.test(i[c-1]);)--c;return i.substring(0,c)+"\u2026"+i.substring(r-(a-c))}static _renderSectionLabel(e,t,i,s,n,r,o,a,c,l){t&&(e.fillStyle=s,e.fillRect(0,o,r,a),e.fillStyle=n,e.fillText(t,R.xq,c)),i&&(e.beginPath(),e.moveTo(0,l),e.lineTo(r,l),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,s=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new si(e,t.imageData,t.lines)}const n=this._getBuffer();if(!n)return null;const[r,o,a]=ai._renderUntouchedLines(n,e.topPaddingLineCount,t,i,s,this._lastRenderData),c=this._model.getMinimapLinesRenderingData(t,i,a),l=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,d=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,C=(1===m?2:3)*_,E=s>C?Math.floor((s-C)/2):0,b=d.a/255,S=new Bt(Math.round((d.r-h.r)*b+h.r),Math.round((d.g-h.g)*b+h.g),Math.round((d.b-h.b)*b+h.b),255);let y=e.topPaddingLineCount*s;const w=[];for(let T=0,x=i-t+1;T<x;T++)a[T]&&ai._renderLine(n,S,d.a,p,m,v,g,u,f,y,E,l,c[T],_,s),w[T]=new ii(y),y+=s;const R=-1===r?0:r,L=(-1===o?n.height:o)-R;return this._canvas.domNode.getContext("2d").putImageData(n,0,0,0,R,n.width,L),new si(e,n,w)}static _renderUntouchedLines(e,t,i,s,n,r){const o=[];if(!r){for(let e=0,t=s-i+1;e<t;e++)o[e]=!0;return[-1,-1,o]}const a=r._get(),c=a.imageData.data,l=a.rendLineNumberStart,h=a.lines,d=h.length,u=e.width,g=e.data,p=(s-i+1)*n*u*4;let m=-1,f=-1,_=-1,v=-1,C=-1,E=-1,b=t*n;for(let S=i;S<=s;S++){const e=S-i,t=S-l,s=t>=0&&t<d?h[t].dy:-1;if(-1===s){o[e]=!0,b+=n;continue}const r=s*u*4,a=(s+n)*u*4,y=b*u*4,w=(b+n)*u*4;v===r&&E===y?(v=a,E=w):(-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_)),_=r,v=a,C=y,E=w),o[e]=!1,b+=n}-1!==_&&(g.set(c.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),o]}static _renderLine(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p){const m=u.content,f=u.tokens,_=e.width-r,v=1===p;let C=R.xq,E=0,b=0;for(let S=0,y=f.getCount();S<y;S++){const u=f.getEndOffset(S),p=f.getForeground(S),y=o.getColor(p);for(;E<u;E++){if(C>_)return;const o=m.charCodeAt(E);if(9===o){const e=d-(E+b)%d;b+=e-1,C+=e*r}else if(32===o)C+=r;else{const d=Le.ne(o)?2:1;for(let u=0;u<d;u++)if(2===n?c.blockRenderChar(e,C,l+h,y,a,t,i,v):c.renderChar(e,C,l+h,o,y,a,t,i,g,s,v),C+=r,C>_)return}}}}}class ci{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let s=0,n=this._endLineNumber-this._startLineNumber+1;s<n;s++)this._values[s]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class li extends z{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],s=t?t.preference:null,n=t?.stackOridinal;return i.preference===s&&i.stack===n?(this._updateMaxMinWidth(),!1):(i.preference=s,i.stack=n,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){let e=0;const t=Object.keys(this._widgets);for(let i=0,s=t.length;i<s;i++){const s=t[i],n=this._widgets[s],r=n.widget.getMinContentWidthInPx?.();"undefined"!==typeof r&&(e=Math.max(e,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(e)}_renderWidget(e,t){const i=e.domNode;if(null===e.preference)return void i.setTop("");const s=2*this._verticalScrollbarWidth+this._minimapWidth;if(0===e.preference||1===e.preference){if(1===e.preference){const e=i.domNode.clientHeight;i.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight)}else i.setTop(0);void 0!==e.stack?(i.setTop(t[e.preference]),t[e.preference]+=i.domNode.clientWidth):i.setRight(s)}else if(2===e.preference)i.domNode.style.right="50%",void 0!==e.stack?(i.setTop(t[2]),t[2]+=i.domNode.clientHeight):i.setTop(0);else{const{top:t,left:s}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;i.setTop(t+e.top),i.setLeft(s+e.left),i.setPosition("fixed")}else i.setTop(t),i.setLeft(s),i.setPosition("absolute")}}prepareRender(e){this._viewDomNodeRect=c.BK(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets),i=Array.from({length:3},(()=>0));t.sort(((e,t)=>(this._widgets[e].stack||0)-(this._widgets[t].stack||0)));for(let s=0,n=t.length;s<n;s++){const e=t[s];this._renderWidget(this._widgets[e],i)}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(144),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const s=t.getColor(Ae.x9);this.borderColor=s?s.toString():null,this.hideCursor=i.get(59);const n=t.getColor(Ae.D0);this.cursorColorSingle=n?n.transparent(.7).toString():null;const r=t.getColor(Ae.sC);this.cursorColorPrimary=r?r.transparent(.7).toString():null;const o=t.getColor(Ae.we);this.cursorColorSecondary=o?o.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),c=a.enabled,l=a.side,h=t.getColor(Ae.Xr),d=Me.dG.getDefaultBackground();this.backgroundColor=h||(c&&"right"===l?d:null);const u=i.get(146).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const s=t-e;if(i>=3){const t=Math.floor(s/3),i=Math.floor(s/3),n=s-t-i,r=e+t;return[[0,e,r,e,e+t+n,e,r,e],[0,t,n,t+n,i,t+n+i,n+i,t+n+i]]}if(2===i){const t=Math.floor(s/2),i=s-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,s,s,s,s,s,s,s]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class di extends z{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new Y.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let s=this._settings.cursorColorSingle;i>1&&(s=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:s})}return this._cursorPositions.sort(((e,t)=>Y.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Vt.Uv.compareByRenderingProps),1!==this._actualShouldRender||Vt.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,s=this._settings.canvasHeight,n=this._settings.lineHeight,r=this._context.viewLayout,o=s/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,c=a/2|0,l=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):(l.clearRect(0,0,i,s),l.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),l.fillRect(0,0,i,s)):l.clearRect(0,0,i,s);const h=this._settings.x,d=this._settings.w;for(const u of t){const e=u.color,t=u.data;l.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=r.getVerticalOffsetForLineNumber(m)*o|0,v=(r.getVerticalOffsetForLineNumber(f)+n)*o|0;if(v-_<a){let e=(_+v)/2|0;e<c?e=c:e+c>s&&(e=s-c),_=e-c,v=e+c}_>p+1||e!==i?(0!==u&&l.fillRect(h[i],g,d[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}l.fillRect(h[i],g,d[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],n=this._settings.w[7];let a=-100,c=-100,h=null;for(let d=0,u=this._cursorPositions.length;d<u;d++){const u=this._cursorPositions[d].color;if(!u)continue;const g=this._cursorPositions[d].position;let p=r.getVerticalOffsetForLineNumber(g.lineNumber)*o|0;p<t?p=t:p+t>s&&(p=s-t);const m=p-t,f=m+e;m>c+1||u!==h?(0!==d&&h&&l.fillRect(i,a,n,c-a),a=m,c=f):f>c&&(c=f),h=u,l.fillStyle=u}h&&l.fillRect(i,a,n,c-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,s),l.moveTo(1,0),l.lineTo(i,0),l.stroke())}}var ui,gi=i(19531);class pi extends V{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,s,e),!0}_renderOneLane(e,t,i,s){let n=0,r=0,o=0;for(const a of t){const t=a.colorId,c=a.from,l=a.to;t!==n?(e.fillRect(0,r,s,o-r),n=t,e.fillStyle=i[n],r=c,o=l):o>=c?o=Math.max(o,l):(e.fillRect(0,r,s,o-r),r=c,o=l)}e.fillRect(0,r,s,o-r)}}class mi extends z{constructor(e){super(e),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),s=i;let n=t-e;for(;n>0;){const e=(0,H.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(s),this.domNode.appendChild(e),this._renderedRulers.push(e),n--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],s=this._rulers[t];i.setBoxShadow(s.color?`1px 0 0 0 ${s.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(s.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends z{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(104);this._useShadows=t.useShadows,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(146);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(104);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Ci(e){return new _i(e)}function Ei(e){return new vi(e.lineNumber,e.ranges.map(Ci))}class bi extends xe{static{this.SELECTION_CLASS_NAME="selected-text"}static{this.SELECTION_TOP_LEFT="top-left-radius"}static{this.SELECTION_BOTTOM_LEFT="bottom-left-radius"}static{this.SELECTION_TOP_RIGHT="top-right-radius"}static{this.SELECTION_BOTTOM_RIGHT="bottom-right-radius"}static{this.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background"}static{this.ROUNDED_PIECE_WIDTH=10}constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const s=this._typicalHalfwidthCharacterWidth/4;let n=null,r=null;if(i&&i.length>0&&t.length>0){const s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===s&&(n=i[e].ranges[0]);const o=t[t.length-1].lineNumber;if(o===e.endLineNumber)for(let e=i.length-1;!r&&e>=0;e--)i[e].lineNumber===o&&(r=i[e].ranges[0]);n&&!n.startStyle&&(n=null),r&&!r.startStyle&&(r=null)}for(let o=0,a=t.length;o<a;o++){const e=t[o].ranges[0],i=e.left,c=e.left+e.width,l={top:0,bottom:0},h={top:0,bottom:0};if(o>0){const e=t[o-1].ranges[0].left,n=t[o-1].ranges[0].left+t[o-1].ranges[0].width;Si(i-e)<s?l.top=2:i>e&&(l.top=1),Si(c-n)<s?h.top=2:e<c&&c<n&&(h.top=1)}else n&&(l.top=n.startStyle.top,h.top=n.endStyle.top);if(o+1<a){const e=t[o+1].ranges[0].left,n=t[o+1].ranges[0].left+t[o+1].ranges[0].width;Si(i-e)<s?l.bottom=2:e<i&&i<n&&(l.bottom=1),Si(c-n)<s?h.bottom=2:c<n&&(h.bottom=1)}else r&&(l.bottom=r.startStyle.bottom,h.bottom=r.endStyle.bottom);e.startStyle=l,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const s=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ei);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,i),s}_createSelectionPiece(e,t,i,s,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+s.toString()+"px;width:"+n.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,s){if(0===s.length)return;const n=!!s[0].ranges[0].startStyle,r=s[0].lineNumber,o=s[s.length-1].lineNumber;for(let a=0,c=s.length;a<c;a++){const c=s[a],l=c.lineNumber,h=l-t,d=i&&l===r?1:0,u=i&&l!==r&&l===o?1:0;let g="",p="";for(let e=0,t=c.ranges.length;e<t;e++){const t=c.ranges[e];if(n){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH);let i=bi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(d,u,i,t.left-bi.ROUNDED_PIECE_WIDTH,bi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(d,u,bi.SELECTION_CLASS_NAME,t.left+t.width,bi.ROUNDED_PIECE_WIDTH);let e=bi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+bi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+bi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(d,u,e,t.left+t.width,bi.ROUNDED_PIECE_WIDTH)}}let i=bi.SELECTION_CLASS_NAME;if(n){const e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+bi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+bi.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+bi.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+bi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(d,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let r=i;r<=s;r++){t[r-i]=["",""]}const n=[];for(let r=0,o=this._selections.length;r<o;r++){const s=this._selections[r];if(s.isEmpty()){n[r]=null;continue}const o=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[r]);n[r]=o,this._actualRenderOneSelection(t,i,this._selections.length>1,o)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Si(e){return e<0?-e:e}(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class yi{constructor(e,t,i,s,n,r,o){this.top=e,this.left=t,this.paddingLeft=i,this.width=s,this.height=n,this.textContent=r,this.textContentClassName=o}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class wi{constructor(e,t){this._context=e;const i=this._context.configuration.options,s=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${De}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.M)(this._domNode,s),this._domNode.setDisplay("none"),this._position=new Y.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[s,n]=Le.m(i,t-1);return[new Y.y(e,s+1),i.substring(s,n)]}_prepareRender(e){let t="",i="";const[s,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===R.m9.Line||this._cursorStyle===R.m9.LineThin){const r=e.visibleRangeForPosition(s);if(!r||r.outsideRenderedLine)return null;const o=c.zk(this._domNode.domNode);let a;this._cursorStyle===R.m9.Line?(a=c.vT(o,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=n,i=this._getTokenClassName(s))):a=c.vT(o,1);let l=r.left,h=0;a>=2&&l>=1&&(h=1,l-=h);const d=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta;return new yi(d,l,h,a,this._lineHeight,t,i)}const r=e.linesVisibleRangesForRange(new q.Q(s.lineNumber,s.column,s.lineNumber,s.column+n.length),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const a=o.ranges[0],l="\t"===n||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===R.m9.Block&&(t=n,i=this._getTokenClassName(s));let h=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==R.m9.Underline&&this._cursorStyle!==R.m9.UnderlineThin||(h+=this._lineHeight-2,d=2),new yi(h,a.left,0,l,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${De} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Ri extends z{static{this.BLINK_INTERVAL=500}constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new wi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Nt.pc,this._cursorFlatBlinkInterval=new c.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,s=this._secondaryCursors.length;i<s;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const s=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,s),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new wi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n],s)}onCursorStateChanged(e){const t=[];for(let s=0,n=e.selections.length;s<n;s++)t[s]=e.selections[s].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,s=e.ranges.length;i<s;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Ri.BLINK_INTERVAL,(0,c.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Ri.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case R.m9.Line:e+=" cursor-line-style";break;case R.m9.Block:e+=" cursor-block-style";break;case R.m9.Underline:e+=" cursor-underline-style";break;case R.m9.LineThin:e+=" cursor-line-thin-style";break;case R.m9.BlockOutline:e+=" cursor-block-outline-style";break;case R.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const s=this._primaryCursor.render(e);s&&(t[i++]=s);for(let n=0,r=this._secondaryCursors.length;n<r;n++){const s=this._secondaryCursors[n].render(e);s&&(t[i++]=s)}this._renderData=t}getLastRenderData(){return this._renderData}}(0,ke.zy)(((e,t)=>{const i=[{class:".cursor",foreground:Ae.D0,background:Ae.kM},{class:".cursor-primary",foreground:Ae.sC,background:Ae.je},{class:".cursor-secondary",foreground:Ae.we,background:Ae.L0}];for(const s of i){const i=e.getColor(s.foreground);if(i){let n=e.getColor(s.background);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${s.class} { background-color: ${i}; border-color: ${i}; color: ${n}; }`),(0,dt.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${s.class} { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}}));const Li=()=>{throw new Error("Invalid change accessor")};class Ti extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,H.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const s of e)t.set(s.id,s);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const s=Object.keys(this._zones);for(let n=0,r=s.length;n<r;n++){const r=s[n],o=this._zones[r],a=this._computeWhitespaceProps(o.delegate);o.isInHiddenArea=a.isInHiddenArea;const c=t.get(r);!c||c.afterLineNumber===a.afterViewLineNumber&&c.height===a.heightInPx||(e.changeOneWhitespace(r,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(o.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return e.ordinal??e.afterColumn??1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Y.y(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),n=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!n,afterViewLineNumber:s.lineNumber,heightInPx:n?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const s={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,l.dz)(i)}}(e,s),s.addZone=Li,s.removeZone=Li,s.layoutZone=Li})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,H.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,H.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.remove(),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],s=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=s.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(i.delegate,s.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,l.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,l.dz)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let s=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,s=!0);const n=Object.keys(this._zones);for(let r=0,o=n.length;r<o;r++){const t=n[r],s=this._zones[t];let o=0,a=0,c="none";i.hasOwnProperty(t)?(o=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,c="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(o),s.domNode.setHeight(a),s.domNode.setDisplay(c),s.marginDomNode&&(s.marginDomNode.setTop(o),s.marginDomNode.setHeight(a),s.marginDomNode.setDisplay(c))}s&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var xi=i(35600);class ki extends xe{constructor(e){super(),this._context=e,this._options=new Ai(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ai(this._context.configuration);return this._options.equals(t)?e.hasChanged(146):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,s=new Array(i);for(let r=0;r<i;r++)s[r]=!0;const n=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,s);this._renderResult=[];for(let r=e.viewportData.startLineNumber;r<=e.viewportData.endLineNumber;r++){const t=r-e.viewportData.startLineNumber,i=n.data[t];let s=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<r||t.startLineNumber>r)continue;const e=t.startLineNumber===r?t.startColumn:i.minColumn,n=t.endLineNumber===r?t.endColumn:i.maxColumn;e<n&&(s||(s=[]),s.push(new xi.MT(e-1,n-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,r,s,i)}}_applyRenderWhitespace(e,t,i,s){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&s.continuesWithWrappedLine)return"";const n=this._context.theme.getColor(Ae.w4),r=this._options.renderWithSVG,o=s.content,a=-1===this._options.stopRenderingLineAfter?o.length:Math.min(this._options.stopRenderingLineAfter,o.length),c=s.continuesWithWrappedLine,l=s.minColumn-1,h="boundary"===this._options.renderWhitespace,d="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,C="",E=!1,b=Le.HG(o);-1===b?(E=!0,b=a,v=a):v=Le.lT(o);let S=0,y=i&&i[S],w=0;for(let R=l;R<a;R++){const s=o.charCodeAt(R);if(y&&R>=y.endOffset&&(S++,y=i&&i[S]),9!==s&&32!==s)continue;if(d&&!E&&R<=v)continue;if(h&&R>=b&&R<=v&&32===s){const e=R-1>=0?o.charCodeAt(R-1):0,t=R+1<a?o.charCodeAt(R+1):0;if(32!==e&&32!==t)continue}if(h&&c&&R===a-1){const e=R-1>=0?o.charCodeAt(R-1):0;if(32===s&&32!==e&&9!==e)continue}if(i&&(!y||y.startOffset>R||y.endOffset<=R))continue;const n=e.visibleRangeForPosition(new Y.y(t,R+1));n&&(r?(w=Math.max(w,n.left),C+=9===s?this._renderArrow(u,m,n.left):`<circle cx="${(n.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):C+=9===s?`<div class="mwh" style="left:${n.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${n.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return r?(w=Math.round(w+m),`<svg style="bottom:0;position:absolute;width:${w}px;height:${u}px" viewBox="0 0 ${w} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${n}">`+C+"</svg>"):C}_renderArrow(e,t,i){const s=e/2,n=i,r={x:0,y:t/7/2},o={x:.8*t,y:r.y},a={x:o.x-.2*o.x,y:o.y+.2*o.x},c={x:a.x+.1*o.x,y:a.y+.1*o.x},l={x:c.x+.35*o.x,y:c.y-.35*o.x};return`<path d="M ${[r,o,a,c,l,{x:l.x,y:-l.y},{x:c.x,y:-c.y},{x:a.x,y:-a.y},{x:o.x,y:-o.y},{x:r.x,y:-r.y}].map((e=>`${(n+e.x).toFixed(2)} ${(s+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ai{constructor(e){const t=e.options,i=t.get(50),s=t.get(38);"off"===s?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===s?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ni{constructor(e,t,i,s){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=s,this.visibleRange=new q.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Ii{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Oi{constructor(e,t,i){this.configuration=e,this.theme=new Ii(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Di=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mi=function(e,t){return function(i,s){t(i,s,e)}};let Pi=class extends V{constructor(e,t,i,s,n,r,o){super(),this._instantiationService=o,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new Ye(t,s,n,e);this._context=new Oi(t,i,s),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ge,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,H.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,H.Z)(document.createElement("div")),G.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Ti(this._context),this._viewParts.push(this._viewZones);const c=new di(this._context);this._viewParts.push(c);const l=new fi(this._context);this._viewParts.push(l);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new bi(this._context)),h.addDynamicOverlay(new kt(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new ki(this._context));const d=new it(this._context);this._viewParts.push(d),d.addDynamicOverlay(new pt(this._context)),d.addDynamicOverlay(new Ut(this._context)),d.addDynamicOverlay(new Ft(this._context)),d.addDynamicOverlay(new Ne(this._context)),this._glyphMarginWidgets=new St(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Ie(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new rt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Ri(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new li(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new nt(this._context);this._viewParts.push(p);const m=new oi(this._context);if(this._viewParts.push(m),c){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(c.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),r?(r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),r.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new we(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],s=0;i=i.concat(e.getAllMarginDecorations().map((e=>{const t=e.options.glyphMargin?.position??_t.ZS.Center;return s=Math.max(s,e.range.endLineNumber),{range:e.range,lane:t,persist:e.options.glyphMargin?.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return s=Math.max(s,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>q.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(s);for(const n of i)t.push(n.lane,n.range,n.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Y.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(146);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+(0,ke.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new l.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Ui.INSTANCE.scheduleCoordinatedRendering({window:c.zk(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new l.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new l.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new l.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,s]=t;Fi((()=>e.prepareRender(i,s))),Fi((()=>e.render(i,s)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}B.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ni(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new je.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const n=this._viewLines.visibleRangeForPosition(new Y.y(s.lineNumber,s.column));return n?n.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?st.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){this._contentWidgets.setWidgetPosition(e.widget,e.position?.position??null,e.position?.secondaryPosition??null,e.position?.preference??null,e.position?.positionAffinity??null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,l.dz)(t),null}}Pi=Di([Mi(6,He._Y)],Pi);class Ui{static{this.INSTANCE=new Ui}constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,c.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=Fi((()=>s.renderText()))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.prepareRender(r,o)))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.render(r,o)))}}}var Hi=i(66782);class Bi{constructor(e,t,i,s,n){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=n}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&i>this.injectionOffsets[s];s++)i<this.injectionOffsets[s]+this.injectionOptions[s].content.length?i=this.injectionOffsets[s]:i-=this.injectionOptions[s].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&!(e<this.injectionOffsets[s])&&(1===t||e!==this.injectionOffsets[s]);s++)i+=this.injectionOptions[s].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,s=this.breakOffsets.length-1,n=0,r=0;for(;i<=s;){n=i+(s-i)/2|0;const o=this.breakOffsets[n];if(r=n>0?this.breakOffsets[n-1]:0,0===t)if(e<=r)s=n-1;else{if(!(e>o))break;i=n+1}else if(e<r)s=n-1;else{if(!(e>=o))break;i=n+1}}let o=e-r;return n>0&&(o+=this.wrappedTextIndentLength),new zi(n,o)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const s=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,i);if(n!==s)return this.offsetInInputWithInjectionsToOutputPosition(n,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new zi(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new zi(e+1,this.getMinOutputOffset(e+1))}return new zi(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Wi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(Vi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Wi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!Vi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Hi.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.getInjectedTextAtOffset(i);return s?{options:this.injectionOptions[s.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let s=0;for(let n=0;n<t.length;n++){const r=i[n].content.length,o=t[n]+s,a=t[n]+s+r;if(o>e)break;if(e<=a)return{injectedTextIndex:n,offsetInInputWithInjections:o,length:r};s+=r}}}}function Wi(e){return null===e||void 0===e||(e===_t.VW.Right||e===_t.VW.Both)}function Vi(e){return null===e||void 0===e||(e===_t.VW.Left||e===_t.VW.Both)}class zi{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Y.y(e+this.outputLineIndex,this.outputOffset+1)}}var Gi=i(64727);const ji=(0,qe.H)("domLineBreaksComputer",{createHTML:e=>e});class Ki{static create(e){return new Ki(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t)},finalize:()=>function(e,t,i,s,n,r,o,a){function c(e){const i=a[e];if(i){const s=Gi.uK.applyInjectedText(t[e],i),n=i.map((e=>e.options)),r=i.map((e=>e.column-1));return new Bi(r,n,[s.length],[],0)}return null}if(-1===n){const e=[];for(let i=0,s=t.length;i<s;i++)e[i]=c(i);return e}const l=Math.round(n*i.typicalHalfwidthCharacterWidth),h=3===r?2:2===r?1:0,d=Math.round(s*h),u=Math.ceil(i.spaceWidth*d),p=document.createElement("div");(0,g.M)(p,i);const m=new $e.fe(1e4),f=[],_=[],v=[],C=[],E=[];for(let g=0;g<t.length;g++){const e=Gi.uK.applyInjectedText(t[g],a[g]);let n=0,o=0,c=l;if(0!==r)if(n=Le.HG(e),-1===n)n=0;else{for(let i=0;i<n;i++){o+=9===e.charCodeAt(i)?s-o%s:1}const t=Math.ceil(i.spaceWidth*o);t+i.typicalFullwidthCharacterWidth>l?(n=0,o=0):c=l-t}const h=e.substr(n),d=Yi(h,o,s,c,m,u);f[g]=n,_[g]=o,v[g]=h,C[g]=d[0],E[g]=d[1]}const b=m.build(),S=ji?.createHTML(b)??b;p.innerHTML=S,p.style.position="absolute",p.style.top="10000","keepAll"===o?(p.style.wordBreak="keep-all",p.style.overflowWrap="anywhere"):(p.style.wordBreak="inherit",p.style.overflowWrap="break-word");e.document.body.appendChild(p);const y=document.createRange(),w=Array.prototype.slice.call(p.children,0),R=[];for(let g=0;g<t.length;g++){const e=qi(y,w[g],v[g],C[g]);if(null===e){R[g]=c(g);continue}const t=f[g],i=_[g]+d,s=E[g],n=[];for(let a=0,c=e.length;a<c;a++)n[a]=s[e[a]];if(0!==t)for(let a=0,c=e.length;a<c;a++)e[a]+=t;let r,o;const l=a[g];l?(r=l.map((e=>e.options)),o=l.map((e=>e.column-1))):(r=null,o=null),R[g]=new Bi(o,r,e,n,i)}return p.remove(),R}((0,Lt.eU)(this.targetWindow.deref()),r,e,t,i,s,n,o)}}}function Yi(e,t,i,s,n,r){if(0!==r){const e=String(r);n.appendString('<div style="text-indent: -'),n.appendString(e),n.appendString("px; padding-left: "),n.appendString(e),n.appendString("px; box-sizing: border-box; width:")}else n.appendString('<div style="width:');n.appendString(String(s)),n.appendString('px;">');const o=e.length;let a=t,c=0;const l=[],h=[];let d=0<o?e.charCodeAt(0):0;n.appendString("<span>");for(let u=0;u<o;u++){0!==u&&u%16384===0&&n.appendString("</span><span>"),l[u]=c,h[u]=a;const t=d;d=u+1<o?e.charCodeAt(u+1):0;let s=1,r=1;switch(t){case 9:s=i-a%i,r=s;for(let e=1;e<=s;e++)e<s?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 32:32===d?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 60:n.appendString("<");break;case 62:n.appendString(">");break;case 38:n.appendString("&");break;case 0:n.appendString("�");break;case 65279:case 8232:case 8233:case 133:n.appendCharCode(65533);break;default:Le.ne(t)&&r++,t<32?n.appendCharCode(9216+t):n.appendCharCode(t)}c+=s,a+=r}return n.appendString("</span>"),l[e.length]=c,h[e.length]=a,n.appendString("</div>"),[l,h]}function qi(e,t,i,s){if(i.length<=1)return null;const n=Array.prototype.slice.call(t.children,0),r=[];try{$i(e,n,s,0,null,i.length-1,null,r)}catch(o){return console.log(o),null}return 0===r.length?null:(r.push(i.length),r)}function $i(e,t,i,s,n,r,o,a){if(s===r)return;if(n=n||Qi(e,t,i[s],i[s+1]),o=o||Qi(e,t,i[r],i[r+1]),Math.abs(n[0].top-o[0].top)<=.1)return;if(s+1===r)return void a.push(r);const c=s+(r-s)/2|0,l=Qi(e,t,i[c],i[c+1]);$i(e,t,i,s,n,c,l,a),$i(e,t,i,c,l,r,o,a)}function Qi(e,t,i,s){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[s/16384|0].firstChild,s%16384),e.getClientRects()}class Xi extends d.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new d.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const s of t)this._pending.has(s.id)?(0,l.dz)(new Error(`Cannot have two contributions with the same id ${s.id}`)):this._pending.set(s.id,s);this._instantiateSome(0),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,c.U3)((0,c.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){return(0,c.U3)((0,c.zk)(this._editor?.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,l.dz)(i)}}}}var Zi=i(97681),Ji=i(29611),es=i(23452),ts=i(60002),is=i(17469),ss=i(87289),ns=i(56942),rs=i(60534);class os{static create(e){return new os(e.get(135),e.get(134))}constructor(e,t){this.classifier=new as(e,t)}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[],a=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t),a.push(i)},finalize:()=>{const c=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[];for(let e=0,h=r.length;e<h;e++){const h=o[e],d=a[e];!d||d.injectionOptions||h?l[e]=ds(this.classifier,r[e],h,t,i,c,s,n):l[e]=hs(this.classifier,d,r[e],t,i,c,s,n)}return cs.length=0,ls.length=0,l}}}}class as extends rs.V{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let cs=[],ls=[];function hs(e,t,i,s,n,r,o,a){if(-1===n)return null;const c=i.length;if(c<=1)return null;const l="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=ms(i,s,n,r,o),g=n-u,p=cs,m=ls;let f=0,_=0,v=0,C=n;const E=h.length;let b=0;if(b>=0){let e=Math.abs(d[b]-C);for(;b+1<E;){const t=Math.abs(d[b+1]-C);if(t>=e)break;e=t,b++}}for(;b<E;){let t=b<0?0:h[b],n=b<0?0:d[b];_>t&&(t=_,n=v);let o=0,a=0,u=0,S=0;if(n<=C){let v=n,E=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(E),y=!0;for(let n=t;n<c;n++){const t=n,c=i.charCodeAt(n);let h,d;if(Le.pc(c)?(n++,h=0,d=2):(h=e.get(c),d=us(c,v,s,r)),t>_&&ps(E,b,c,h,l)&&(o=t,a=v),v+=d,v>C){t>_?(u=t,S=v-d):(u=n+1,S=v),v-a>g&&(o=0),y=!1;break}E=c,b=h}if(y){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===o){let c=n,h=i.charCodeAt(t),d=e.get(h),p=!1;for(let s=t-1;s>=_;s--){const t=s+1,n=i.charCodeAt(s);if(9===n){p=!0;break}let m,f;if(Le.LJ(n)?(s--,m=0,f=2):(m=e.get(n),f=Le.ne(n)?r:1),c<=C){if(0===u&&(u=t,S=c),c<=C-g)break;if(ps(n,m,h,d,l)){o=t,a=c;break}}c-=f,h=n,d=m}if(0!==o){const e=g-(S-a);if(e<=s){const t=i.charCodeAt(u);let n;n=Le.pc(t)?2:us(t,S,s,r),e-n<0&&(o=0)}}if(p){b--;continue}}if(0===o&&(o=u,a=S),o<=_){const e=i.charCodeAt(_);Le.pc(e)?(o=_+2,a=v+2):(o=_+1,a=v+us(e,v,s,r))}for(_=o,p[f]=o,v=a,m[f]=a,f++,C=a+g;b<0||b<E&&d[b]<a;)b++;let y=Math.abs(d[b]-C);for(;b+1<E;){const e=Math.abs(d[b+1]-C);if(e>=y)break;y=e,b++}}return 0===f?null:(p.length=f,m.length=f,cs=t.breakOffsets,ls=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function ds(e,t,i,s,n,r,o,a){const c=Gi.uK.applyInjectedText(t,i);let l,h;if(i&&i.length>0?(l=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(l=null,h=null),-1===n)return l?new Bi(h,l,[c.length],[],0):null;const d=c.length;if(d<=1)return l?new Bi(h,l,[c.length],[],0):null;const u="keepAll"===a,g=ms(c,s,n,r,o),p=n-g,m=[],f=[];let _=0,v=0,C=0,E=n,b=c.charCodeAt(0),S=e.get(b),y=us(b,0,s,r),w=1;Le.pc(b)&&(y+=1,b=c.charCodeAt(1),S=e.get(b),w++);for(let R=w;R<d;R++){const t=R,i=c.charCodeAt(R);let n,o;Le.pc(i)?(R++,n=0,o=2):(n=e.get(i),o=us(i,y,s,r)),ps(b,S,i,n,u)&&(v=t,C=y),y+=o,y>E&&((0===v||y-C>p)&&(v=t,C=y-o),m[_]=v,f[_]=C,_++,E=C+p,v=0),b=i,S=n}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=y,new Bi(h,l,m,f,g)):null}function us(e,t,i,s){return 9===e?i-t%i:Le.ne(e)||e<32?s:1}function gs(e,t){return t-e%t}function ps(e,t,i,s,n){return 32!==i&&(2===t&&2!==s||1!==t&&1===s||!n&&3===t&&2!==s||!n&&3===s&&1!==t)}function ms(e,t,i,s,n){let r=0;if(0!==n){const o=Le.HG(e);if(-1!==o){for(let i=0;i<o;i++){r+=9===e.charCodeAt(i)?gs(r,t):1}const a=3===n?2:2===n?1:0;for(let e=0;e<a;e++){r+=gs(r,t)}r+s>i&&(r=0)}}return r}var fs=i(46041),_s=i(32799);class vs{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0),new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _s.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,s){return t.equals(i)?s:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,s=t.selectionStart.getStartPosition(),n=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),o=this._validatePositionWithCache(e,s,i,r),a=this._validatePositionWithCache(e,n,s,o);return i.equals(r)&&s.equals(o)&&n.equals(a)?t:new _s.mG(q.Q.fromPositions(o,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+s.column-o.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=vs._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,n=e.model.validatePosition(t.position),r=t.position.equals(n)?t.leftoverVisibleColumns:0;t=new _s.mG(i,t.selectionStartKind,s,n,r)}else{if(!i)return;const s=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),n=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new _s.mG(s,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,n,i.leftoverVisibleColumns)}if(i){const s=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),n=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new _s.mG(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,n,t.leftoverVisibleColumns)}else{const s=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),n=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new q.Q(s.lineNumber,s.column,n.lineNumber,n.column),o=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new _s.mG(r,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cs{constructor(e){this.context=e,this.cursors=[new vs(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,fs.kh)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,fs.ot)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(_s.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let s=0;s<i;s++)this.cursors[s+1].setState(this.context,e[s].modelState,e[s].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new vs(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,s=e.length;i<s;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.VE)((e=>e.selection),q.Q.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const s=t[i],n=t[i+1],r=s.selection,o=n.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=o.isEmpty()||r.isEmpty()?o.getStartPosition().isBeforeOrEqual(r.getEndPosition()):o.getStartPosition().isBefore(r.getEndPosition()),a){const r=s.index<n.index?i:i+1,o=s.index<n.index?i+1:i,a=t[o].index,c=t[r].index,l=t[o].selection,h=t[r].selection;if(!l.equalsSelection(h)){const i=l.plusRange(h),s=l.selectionStartLineNumber===l.startLineNumber&&l.selectionStartColumn===l.startColumn,n=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let o,d;a===this.lastAddedCursorIndex?(o=s,this.lastAddedCursorIndex=c):o=n,d=o?new pe.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.L(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[r].selection=d;const u=_s.MF.fromModelSelection(d);e[c].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(o,1),this._removeSecondaryCursor(a-1),i--}}}}class Es{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}var bs=i(1226),Ss=i(49265),ys=i(26685);class ws{constructor(){this.type=0}}class Rs{constructor(){this.type=1}}class Ls{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Ts{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class xs{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class ks{constructor(){this.type=5}}class As{constructor(e){this.type=6,this.isFocused=e}}class Ns{constructor(){this.type=7}}class Is{constructor(){this.type=8}}class Os{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Ds{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Ms{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Ps{constructor(e,t,i,s,n,r,o){this.source=e,this.minimalReveal=t,this.range=i,this.selections=s,this.verticalType=n,this.revealHorizontal=r,this.scrollType=o,this.type=12}}class Fs{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Us{constructor(e){this.theme=e,this.type=14}}class Hs{constructor(e){this.type=15,this.ranges=e}}class Bs{constructor(){this.type=16}}class Ws{constructor(){this.type=17}}class Vs extends d.jG{constructor(){super(),this._onEvent=this._register(new h.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new zs),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class zs{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Gs{constructor(e,t,i,s){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=s,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Gs(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class js{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new js(this.oldHasFocus,e.hasFocus)}}class Ks{constructor(e,t,i,s,n,r,o,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=s,this.scrollWidth=n,this.scrollLeft=r,this.scrollHeight=o,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Ks(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Ys{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class qs{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class $s{constructor(e,t,i,s,n,r,o){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=s,this.source=n,this.reason=r,this.reachedMaxCursorCount=o}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!e[s].equalsSelection(t[s]))return!1;return!0}isNoOp(){return $s._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new $s(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Qs{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Xs{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Zs{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Js{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class en{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class tn{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class sn{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class nn extends d.jG{constructor(e,t,i,s){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,s),this._cursors=new Cs(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,d.AS)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new Es(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,s){let n=!1;const r=this.context.cursorConfig.multiCursorLimit;null!==s&&s.length>r&&(s=s.slice(0,r),n=!0);const o=rn.from(this._model,this);return this._cursors.setStates(s),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,o,n)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,s,n,r){const o=this._cursors.getViewPositions();let a=null,c=null;o.length>1?c=this._cursors.getViewSelections():a=q.Q.fromPositions(o[0],o[0]),e.emitViewEvent(new Ps(t,i,a,c,s,n,r))}revealPrimary(e,t,i,s,n,r){const o=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Ps(t,i,null,o,s,n,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push({inSelectionMode:!s.isEmpty(),selectionStart:{lineNumber:s.selectionStartLineNumber,column:s.selectionStartColumn},position:{lineNumber:s.positionLineNumber,column:s.positionColumn}})}return e}restoreState(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const e=t[s];let n=1,r=1;e.position&&e.position.lineNumber&&(n=e.position.lineNumber),e.position&&e.position.column&&(r=e.position.column);let o=n,a=r;e.selectionStart&&e.selectionStart.lineNumber&&(o=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:o,selectionStartColumn:a,positionLineNumber:n,positionColumn:r})}this.setStates(e,"restoreState",0,_s.MF.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Gi.vn){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const s=i.containsEvent(1);if(this._prevEditOperationType=0,s)this._cursors.dispose(),this._cursors=new Cs(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=_s.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,_s.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,s){this.setStates(e,t,s,_s.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],s=[];for(let o=0,a=e.length;o<a;o++)i.push({range:e[o],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),s.push({range:t[o],options:{description:"auto-closed-enclosing",stickiness:1}});const n=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],s);this._autoClosedActions.push(new on(this._model,n,r))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=an.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],s=[];for(let t=0;t<e.commands.length;t++){const n=e.commands[t];n instanceof ys.Hs&&n.enclosingRange&&n.closeCharacterRange&&(i.push(n.closeCharacterRange),s.push(n.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,s),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,s,n){const r=rn.from(this._model,this);if(r.equals(s))return!1;const o=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Ts(a,o,i)),!s||s.cursorState.length!==r.cursorState.length||r.cursorState.some(((e,t)=>!e.modelState.equals(s.cursorState[t].modelState)))){const a=s?s.cursorState.map((e=>e.modelState.selection)):null,c=s?s.modelVersionId:0;e.emitOutgoingEvent(new $s(a,o,c,r.modelVersionId,t||"keyboard",i,n))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.text||s.text.indexOf("\n")>=0)return null;const n=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!n)return null;const r=n[1],o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(r);if(!o||1!==o.length)return null;const a=o[0].open,c=s.text.length-n[2].length-1,l=s.text.lastIndexOf(a,c-1);if(-1===l)return null;t.push([l,c])}return t}executeEdits(e,t,i,s){let n=null;"snippet"===t&&(n=this._findAutoClosingPairs(i)),n&&(i[0]._isTracked=!0);const r=[],o=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(n)for(let i=0,s=n.length;i<s;i++){const[t,s]=n[i],a=e[i],c=a.range.startLineNumber,l=a.range.startColumn-1+t,h=a.range.startColumn-1+s;r.push(new q.Q(c,h+1,c,h+2)),o.push(new q.Q(c,l+1,c,h+2))}const t=s(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),r.length>0&&this._pushAutoClosedAction(r,o)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;const n=rn.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){(0,l.dz)(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,n,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return on.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ln(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Ss.T.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=Le.iy(t,i),s=t.substr(i,e);this._executeEditOperation(Ss.T.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),s)),i+=e}}else this._executeEditOperation(Ss.T.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,s,n,r){if(0!==t.length||0!==i||0!==s)this._executeEdit((()=>{this._executeEditOperation(Ss.T.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,s,n))}),e,r);else if(0!==n){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.L(t.lineNumber,t.column+n,t.lineNumber,t.column+n)}));this.setSelections(e,r,t,0)}}paste(e,t,i,s,n){this._executeEdit((()=>{this._executeEditOperation(Ss.T.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,s||[]))}),e,n,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(bs.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _s.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new _s.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class rn{static from(e,t){return new rn(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class on{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(q.Q.compareRangesUsingStarts),e.sort(q.Q.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class an{static executeCommands(e,t,i){const s={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},n=this._innerExecuteCommands(s,i);for(let r=0,o=s.trackedRanges.length;r<o;r++)s.model._setTrackedRange(s.trackedRanges[r],null,0);return n}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const s=i.operations,n=this._getLoserCursorMap(s);if(n.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const r=[];for(let c=0,l=s.length;c<l;c++)n.hasOwnProperty(s[c].identifier.major.toString())||r.push(s[c]);i.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);let o=e.model.pushEditOperations(e.selectionsBefore,r,(i=>{const s=[];for(let t=0;t<e.selectionsBefore.length;t++)s[t]=[];for(const e of i)e.identifier&&s[e.identifier.major].push(e);const n=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let o=0;o<e.selectionsBefore.length;o++)s[o].length>0?(s[o].sort(n),r[o]=t[o].computeCursorState(e.model,{getInverseEditOperations:()=>s[o],getTrackedSelection:t=>{const i=parseInt(t,10),s=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.L(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):new pe.L(s.endLineNumber,s.endColumn,s.startLineNumber,s.startColumn)}})):r[o]=e.selectionsBefore[o];return r}));o||(o=e.selectionsBefore);const a=[];for(const c in n)n.hasOwnProperty(c)&&a.push(parseInt(c,10));a.sort(((e,t)=>t-e));for(const c of a)o.splice(c,1);return o}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],s=!1;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const t=this._getEditOperationsFromCommand(e,n,r);i=i.concat(t.operations),s=s||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:s}}static _getEditOperationsFromCommand(e,t,i){const s=[];let n=0;const r=(e,r,o=!1)=>{q.Q.isEmpty(e)&&""===r||s.push({identifier:{major:t,minor:n++},range:e,text:r,forceMoveMarkers:o,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let o=!1;const a={addEditOperation:r,addTrackedEditOperation:(e,t,i)=>{o=!0,r(e,t,i)},trackSelection:(t,i)=>{const s=pe.L.liftSelection(t);let n;if(s.isEmpty())if("boolean"===typeof i)n=i?2:3;else{const t=e.model.getLineMaxColumn(s.startLineNumber);n=s.startColumn===t?2:3}else n=1;const r=e.trackedRanges.length,o=e.model._setTrackedRange(null,s,n);return e.trackedRanges[r]=o,e.trackedRangesDirection[r]=s.getDirection(),r.toString()}};try{i.getEditOperations(e.model,a)}catch(c){return(0,l.dz)(c),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:o}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-q.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const s=e[i-1],n=e[i];if(q.Q.getStartPosition(s.range).isBefore(q.Q.getEndPosition(n.range))){let r;r=s.identifier.major>n.identifier.major?s.identifier.major:n.identifier.major,t[r.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class cn{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ln{static _capture(e,t){const i=[];for(const s of t){if(s.startLineNumber!==s.endLineNumber)return null;i.push(new cn(e.getLineContent(s.startLineNumber),s.startColumn-1,s.endColumn-1))}return i}constructor(e,t){this._original=ln._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ln._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const s=[];for(let n=0,r=this._original.length;n<r;n++)s.push(ln._deduceOutcome(this._original[n],i[n]));return s}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Le.Qp(e.text,t.text)),s=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Le.Vi(e.text,t.text)),n=e.text.substring(i,e.text.length-s),r=t.text.substring(i,t.text.length-s);return new Ss.v(n,e.startSelection-i,e.endSelection-i,r,t.startSelection-i,t.endSelection-i)}}var hn=i(83941),dn=i(58314),un=i(49353);class gn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,s=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,s)}}class pn{constructor(e,t,i,s,n){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=s,this.minWidth=n,this.prefixSum=0}}class mn{static{this.INSTANCE_COUNT=0}constructor(e,t,i,s){this._instanceId=Le.tk(++mn.INSTANCE_COUNT),this._pendingChanges=new gn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=s}static findInsertionIndex(e,t,i){let s=0,n=e.length;for(;s<n;){const r=s+n>>>1;t===e[r].afterLineNumber?i<e[r].ordinal?n=r:s=r+1:t<e[r].afterLineNumber?n=r:s=r+1}return s}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,s,n)=>{t=!0,e|=0,i|=0,s|=0,n|=0;const r=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new pn(r,e,i,s,n)),r},changeOneWhitespace:(e,i,s)=>{t=!0,i|=0,s|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:s})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const s=new Set;for(const a of i)s.add(a.id);const n=new Map;for(const a of t)n.set(a.id,a);const r=e=>{const t=[];for(const i of e)if(!s.has(i.id)){if(n.has(i.id)){const e=n.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},o=r(this._arr).concat(r(e));o.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=o,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=mn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,s=t.length;i<s;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const s=this._findWhitespaceIndex(e);if(-1!==s&&(this._arr[s].height!==i&&(this._arr[s].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,s-1)),this._arr[s].afterLineNumber!==t)){const e=this._arr[s];this._removeWhitespace(s),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){const s=this._arr[i].afterLineNumber;e<=s&&s<=t?this._arr[i].afterLineNumber=e-1:s>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,s=t.length-1;for(;i<=s;){const n=i+((s-i|0)/2|0)|0;if(t[n].afterLineNumber<e){if(n+1>=t.length||t[n+1].afterLineNumber>=e)return n;i=n+1|0}else s=n-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;this._checkPendingChanges(),i=(e|=0)>1?this._lineHeight*(e-1):0;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let s=1,n=t;for(;s<n;){const t=(s+n)/2|0,r=0|this.getVerticalOffsetForLineNumber(t);if(e>=r+i)s=t+1;else{if(e>=r)return t;n=t}}return s>t?t:s}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,s=0|this.getLineNumberAtOrAfterVerticalOffset(e),n=0|this.getVerticalOffsetForLineNumber(s);let r=0|this._lineCount,o=0|this.getFirstWhitespaceIndexAfterLineNumber(s);const a=0|this.getWhitespacesCount();let c,l;-1===o?(o=a,l=r+1,c=0):(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));let h=n,d=h;const u=5e5;let g=0;n>=u&&(g=Math.floor(n/u)*u,g=Math.floor(g/i)*i,d-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let E=s;E<=r;E++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=E)}for(h+=i,p[E-s]=d,d+=i;l===E;)d+=c,h+=c,o++,o>=a?l=r+1:(l=0|this.getAfterLineNumberForWhitespaceIndex(o),c=0|this.getHeightForWhitespaceIndex(o));if(h>=t){r=E;break}}-1===f&&(f=r);const _=0|this.getVerticalOffsetForLineNumber(r);let v=s,C=r;return v<C&&n<e&&v++,v<C&&_+i>t&&C--,{bigNumbersDelta:g,startLineNumber:s,endLineNumber:r,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:C,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,s;return i=t>=1?this._lineHeight*t:0,s=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+s+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const s=Math.floor((t+i)/2),n=this.getVerticalOffsetForWhitespaceIndex(s);if(e>=n+this.getHeightForWhitespaceIndex(s))t=s+1;else{if(e>=n)return s;i=s}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const s=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:s}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),s=this.getWhitespacesCount()-1;if(i<0)return[];const n=[];for(let r=i;r<=s;r++){const e=this.getVerticalOffsetForWhitespaceIndex(r),i=this.getHeightForWhitespaceIndex(r);if(e>=t)break;n.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:e,height:i})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}class fn{constructor(e,t,i,s){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(s|=0)<0&&(s=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=s,this.scrollHeight=Math.max(i,s)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class _n extends d.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new fn(0,0,0,0),this._scrollable=this._register(new un.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,s=t.contentHeight!==e.contentHeight;(i||s)&&this._onDidContentSizeChange.fire(new Gs(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class vn extends d.jG{constructor(e,t,i){super(),this._configuration=e;const s=this._configuration.options,n=s.get(146),r=s.get(84);this._linesLayout=new mn(t,s.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new _n(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new fn(n.contentWidth,0,n.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(146)){const e=t.get(146),i=e.contentWidth,s=e.height,n=this._scrollable.getScrollDimensions(),r=n.contentWidth;this._scrollable.setScrollDimensions(new fn(i,n.contentWidth,s,this._getContentHeight(i,s,r)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const s=this._configuration.options;let n=this._linesLayout.getLinesTotalHeight();return s.get(106)?n+=Math.max(0,t-s.get(67)-s.get(84).bottom):s.get(104).ignoreHorizontalScrollbarInContentHeight||(n+=this._getHorizontalScrollbarHeight(e,i)),n}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,s=e.contentWidth;this._scrollable.setScrollDimensions(new fn(t,e.contentWidth,i,this._getContentHeight(t,i,s)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(147),s=e.get(50),n=e.get(146);if(i.isViewportWrapping){const i=e.get(73);return t>n.contentWidth+s.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+n.verticalScrollbarWidth:t}{const i=e.get(105)*s.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+n.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new fn(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var Cn=i(32398),En=i(87469);function bn(e,t){return null===e?t?yn.INSTANCE:wn.INSTANCE:new Sn(e,t)}class Sn{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const s=i>0?this._projectionData.breakOffsets[i-1]:0,n=this._projectionData.breakOffsets[i];let r;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Gi.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));r=Gi.uK.applyInjectedText(e.getLineContent(t),i).substring(s,n)}else r=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:n+1});return i>0&&(r=Ln(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const s=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],s),s[0]}getViewLinesData(e,t,i,s,n,r,o){this._assertVisible();const a=this._projectionData,c=a.injectionOffsets,l=a.injectionOptions;let h,d=null;if(c){d=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const s=new Array;d[i]=s;const n=i>0?a.breakOffsets[i-1]:0,r=a.breakOffsets[i];for(;t<c.length;){const o=l[t].content.length,h=c[t]+e,d=h+o;if(h>r)break;if(n<d){const e=l[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,o=t+Math.max(h-n,0),c=t+Math.min(d-n,r-n);o!==c&&s.push(new Vt.or(o,c,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=r))break;e+=o,t++}}}h=c?e.tokenization.getLineTokens(t).withInserted(c.map(((e,t)=>({offset:e,text:l[t].content,tokenMetadata:En.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+s;u++){const e=n+u-i;r[e]?o[e]=this._getViewLineData(h,d?d[u]:null,u):o[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const s=this._projectionData,n=i>0?s.wrappedTextIndentLength:0,r=i>0?s.breakOffsets[i-1]:0,o=s.breakOffsets[i],a=e.sliceAndInflate(r,o,n);let c=a.getLineContent();i>0&&(c=Ln(s.wrappedTextIndentLength)+c);const l=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,d=i+1<this.getViewLineCount(),u=0===i?0:s.breakOffsetsVisibleColumn[i-1];return new Vt.GP(c,d,l,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const s=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(s)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class yn{static{this.INSTANCE=new yn}constructor(){}isVisible(){return!0}setVisible(e){return e?this:wn.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const s=e.tokenization.getLineTokens(t),n=s.getLineContent();return new Vt.GP(n,!1,1,n.length+1,0,s.inflate(),null)}getViewLinesData(e,t,i,s,n,r,o){r[n]?o[n]=this.getViewLineData(e,t,0):o[n]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new Y.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}class wn{static{this.INSTANCE=new wn}constructor(){}isVisible(){return!1}setVisible(e){return e?yn.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,s,n,r,o){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}const Rn=[""];function Ln(e){if(e>=Rn.length)for(let t=1;t<=e;t++)Rn[t]=Tn(t);return Rn[e]}function Tn(e){return new Array(e+1).join(" ")}var xn=i(27414);class kn{constructor(e,t,i,s,n,r,o,a,c,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=s,this.fontInfo=n,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=a,this.wrappingIndent=c,this.wordBreak=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new In(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),n=i.length,r=this.createLineBreaksComputer(),o=new m.j3(Gi.uK.fromDecorations(s));for(let p=0;p<n;p++){const e=o.takeWhile((e=>e.lineNumber===p+1));r.addRequest(i[p],e,t?t[p]:null)}const a=r.finalize(),c=[],l=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1<l.length?d+1:n+2;for(let p=0;p<n;p++){const e=p+1;e===g&&(u++,h=l[u].startLineNumber,d=l[u].endLineNumber,g=u+1<l.length?d+1:n+2);const t=e>=h&&e<=d,i=bn(a[p],!t);c[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new xn.c2(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(q.Q.compareRangesUsingStarts);const i=[];let s=t[0].startLineNumber,n=t[0].endLineNumber;for(let r=1,o=t.length;r<o;r++){const e=t[r];e.startLineNumber>n+1?(i.push(new q.Q(s,1,n,1)),s=e.startLineNumber,n=e.endLineNumber):e.endLineNumber>n&&(n=e.endLineNumber)}return i.push(new q.Q(s,1,n,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let s=0;s<t.length;s++)if(!t[s].equalsRange(i[s])){e=!0;break}if(!e)return!1}const s=t.map((e=>({range:e,options:ss.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const n=t;let r=1,o=0,a=-1,c=a+1<n.length?o+1:this.modelLineProjections.length+2,l=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===c&&(a++,r=n[a].startLineNumber,o=n[a].endLineNumber,c=a+1<n.length?o+1:this.modelLineProjections.length+2);let t=!1;if(e>=r&&e<=o?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(l=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return l||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,s,n){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===i,c=this.wrappingIndent===s,l=this.wordBreak===n;if(r&&o&&a&&c&&l)return!1;const h=r&&o&&!a&&c&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=s,this.wordBreak=n;let d=null;if(h){d=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)d[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,d),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,n=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Ds(s,n)}onModelLinesInserted(e,t,i,s){if(!e||e<=this._validModelVersionId)return null;const n=t>2&&!this.modelLineProjections[t-2].isVisible(),r=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let o=0;const a=[],c=[];for(let l=0,h=s.length;l<h;l++){const e=bn(s[l],!n);a.push(e);const t=e.getViewLineCount();o+=t,c[l]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,c),new Ms(r,r+o-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const s=t-1,n=this.modelLineProjections[s].getViewLineCount(),r=bn(i,this.modelLineProjections[s].isVisible());this.modelLineProjections[s]=r;const o=this.modelLineProjections[s].getViewLineCount();let a=!1,c=0,l=-1,h=0,d=-1,u=0,g=-1;n>o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1,u=l+1,g=u+(n-o)-1,a=!0):n<o?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+n-1,h=l+1,d=h+(o-n)-1,a=!0):(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,l=c+o-1),this.projectedModelLineLineCounts.setValue(s,o);return[a,c<=l?new Os(c,l-c+1):null,h<=d?new Ms(h,d):null,u<=g?new Ds(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const s=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),o=this.model.guides.getActiveIndentGuide(s.lineNumber,n.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(o.startLineNumber,1),c=this.convertModelPositionToViewPosition(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:c.lineNumber,indent:o.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,s=t.remainder;return new An(i+1,s)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),s=this.getViewLineInfo(t),n=new Array;let r=this.getModelStartPositionOfViewLine(i),o=new Array;for(let a=i.modelLineNumber;a<=s.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,n=a===s.modelLineNumber?s.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<n;e++)o.push(new An(a,e))}if(!e.isVisible()&&r){const e=new Y.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=q.Q.fromPositions(r,e);n.push(new Nn(t,o)),o=[],r=null}else e.isVisible()&&!r&&(r=new Y.y(a,1))}if(r){const e=q.Q.fromPositions(r,this.getModelEndPositionOfViewLine(s));n.push(new Nn(e,o))}return n}getViewLinesBracketGuides(e,t,i,s){const n=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,r=[];for(const o of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=o.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,o.modelRange.endLineNumber,n,s);for(const i of o.viewLines){const s=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(s.lineNumber===i.modelLineWrappedLineIdx)t=s.column;else if(s.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(s.lineNumber>i.modelLineWrappedLineIdx)return}const s=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return n.lineNumber===i.modelLineWrappedLineIdx?new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,s.column),-1,-1):n.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));r.push(s.filter((e=>!!e)))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let n=[];const r=[],o=[],a=i.lineNumber-1,c=s.lineNumber-1;let l=null;for(let g=a;g<=c;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),s=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),n=s-t+1;let c=0;n>1&&1===e.getViewLineMinColumn(this.model,g+1,s)&&(c=0===t?1:2),r.push(n),o.push(c),null===l&&(l=new Y.y(g+1,0))}else null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,g)),l=null)}null!==l&&(n=n.concat(this.model.guides.getLinesIndentGuides(l.lineNumber,s.lineNumber)),l=null);const h=t-e+1,d=new Array(h);let u=0;for(let g=0,p=n.length;g<p;g++){let e=n[g];const t=Math.min(h-u,r[g]),i=o[g];let s;s=2===i?0:1===i?1:t;for(let n=0;n<t;n++)n===s&&(e=0),d[u++]=e}return d}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const s=this.projectedModelLineLineCounts.getIndexOf(e-1);let n=e;const r=s.index,o=s.remainder,a=[];for(let c=r,l=this.model.getLineCount();c<l;c++){const s=this.modelLineProjections[c];if(!s.isVisible())continue;const l=c===r?o:0;let h=s.getViewLineCount()-l,d=!1;if(n+h>t&&(d=!0,h=t-n+1),s.getViewLinesData(this.model,c+1,l,h,n-e,i,a),n+=h,d)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const s=this.projectedModelLineLineCounts.getIndexOf(e-1),n=s.index,r=s.remainder,o=this.modelLineProjections[n],a=o.getViewLineMinColumn(this.model,n+1,r),c=o.getViewLineMaxColumn(this.model,n+1,r);t<a&&(t=a),t>c&&(t=c);const l=o.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Y.y(n+1,l)).equals(i)?new Y.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),s=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q.Q(i.lineNumber,i.column,s.lineNumber,s.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),s=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Y.y(i.modelLineNumber,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,s=!1,n=!1){const r=this.model.validatePosition(new Y.y(e,t)),o=r.lineNumber,a=r.column;let c=o-1,l=!1;if(n)for(;c<this.modelLineProjections.length&&!this.modelLineProjections[c].isVisible();)c++,l=!0;else for(;c>0&&!this.modelLineProjections[c].isVisible();)c--,l=!0;if(0===c&&!this.modelLineProjections[c].isVisible())return new Y.y(s?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(c);let d;return d=l?n?this.modelLineProjections[c].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[c].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(c+1),i):this.modelLineProjections[o-1].getViewPositionOfModelPosition(h,a,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return q.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,s,n){const r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new q.Q(r.lineNumber,1,o.lineNumber,o.column),t,i,s,n);let a=[];const c=r.lineNumber-1,l=o.lineNumber-1;let h=null;for(let p=c;p<=l;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new Y.y(p+1,p===c?r.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,p,e),t,i,s)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,o.lineNumber,o.column),t,i,s)),h=null),a.sort(((e,t)=>{const i=q.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const d=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,d[u++]=p)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class An{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Nn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class In{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,s){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,s)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class On{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Dn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,s){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,s)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ds(t,i)}onModelLinesInserted(e,t,i,s){return new Ms(t,i)}onModelLineChanged(e,t,i){return[!1,new Os(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,s=new Array(i);for(let n=0;n<i;n++)s[n]=0;return s}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new Vt.GP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const s=this.model.getLineCount();e=Math.min(Math.max(1,e),s),t=Math.min(Math.max(1,t),s);const n=[];for(let r=e;r<=t;r++){const t=r-e;n[t]=i[t]?this.getViewLineData(r):null}return n}getDecorationsInRange(e,t,i,s,n){return this.model.getDecorationsInRange(e,t,i,s,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Dn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Mn=_t.ZS.Right;class Pn{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Mn/8))}reset(e){const t=Math.ceil((e+1)*Mn/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const t=Mn*s+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(s))}}getLanesAtLine(e){const t=[];let i=Mn*e;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[i>>>3]&1<<i%8)&&t.push(s+1),i++;return t.length?t:[_t.ZS.Center]}countAtLine(e){let t=Mn*e,i=0;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Fn extends d.jG{constructor(e,t,i,s,n,r,o,a,c,l){if(super(),this.languageConfigurationService=o,this._themeService=a,this._attachedView=c,this._transactionalTarget=l,this.hiddenAreasModel=new Bn,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new Vs,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Nt.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Un.create(this.model),this.glyphLanes=new Pn(0),this.model.isTooLargeForTokenization())this._lines=new On(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(140),r=e.get(147),o=e.get(139),a=e.get(130);this._lines=new kn(this._editorId,this.model,s,n,t,this.model.getOptions().tabSize,i,r.wrappingColumn,o,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new nn(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new vn(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fs(e)),this._eventDispatcher.emitOutgoingEvent(new Ks(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Cn.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Wt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Bs)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Us(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new q.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new As(e)),this._eventDispatcher.emitOutgoingEvent(new js(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new ws)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Rs)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new Y.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Vn(t,this._viewportStart.startLineDelta)}return new Vn(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),s=this._configuration.options,n=s.get(50),r=s.get(140),o=s.get(147),a=s.get(139),c=s.get(130);this._lines.setWrappingSettings(n,r,o.wrappingColumn,a,c)&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),e.emitViewEvent(new Ls(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),_s.d$.shouldRecreate(t)&&(this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,s=!1;const n=e instanceof Gi.Ic?e.rawContentChangedEvent.changes:e.changes,r=e instanceof Gi.Ic?e.rawContentChangedEvent.versionId:null,o=this._lines.createLineBreaksComputer();for(const e of n)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let s=e.injectedTexts[t];s&&(s=s.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(i,s,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(e.detail,t,null);break}}const a=o.finalize(),c=new m.j3(a);for(const e of n)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new ks),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const s=this._lines.onModelLinesDeleted(r,e.fromLineNumber,e.toLineNumber);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesDeleted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 4:{const s=c.takeCount(e.detail.length),n=this._lines.onModelLinesInserted(r,e.fromLineNumber,e.toLineNumber,s);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesInserted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 2:{const i=c.dequeue(),[n,o,a,l]=this._lines.onModelLineChanged(r,e.lineNumber,i);s=n,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),l&&(t.emitViewEvent(l),this.viewLayout.onLinesDeleted(l.fromLineNumber,l.toLineNumber));break}}null!==r&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&s&&(t.emitViewEvent(new Is),t.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Gi.Ic&&t.emitOutgoingEvent(new en(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,s=e.ranges.length;i<s;i++){const s=e.ranges[i],n=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.fromLineNumber,1)).lineNumber,r=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.toLineNumber,this.model.getLineMaxColumn(s.toLineNumber))).lineNumber;t[i]={fromLineNumber:n,toLineNumber:r}}this._eventDispatcher.emitSingleViewEvent(new Hs(t)),this._eventDispatcher.emitOutgoingEvent(new sn(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new Ns),this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Js(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zs(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new tn(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new xs(e)),this._eventDispatcher.emitOutgoingEvent(new Xs(e))})))}setHiddenAreas(e,t){this.hiddenAreasModel.setHiddenAreas(t,e);const i=this.hiddenAreasModel.getMergedRanges();if(i===this.previousHiddenAreas)return;this.previousHiddenAreas=i;const s=this._captureStableViewport();let n=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();n=this._lines.setHiddenAreas(i),n&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=s.viewportStartModelPosition?.lineNumber;t&&i.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),n&&this._eventDispatcher.emitOutgoingEvent(new qs)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),s=this.viewLayout.getLinesViewportData(),n=Math.max(1,s.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),s.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new q.Q(n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const s=[];let n=0,r=t.startLineNumber,o=t.startColumn;const a=t.endLineNumber,c=t.endColumn;for(let l=0,h=i.length;l<h;l++){const e=i[l].startLineNumber,t=i[l].endLineNumber;t<r||(e>a||(r<e&&(s[n++]=new q.Q(r,o,e-1,this.model.getLineMaxColumn(e-1))),r=t+1,o=1))}return(r<a||r===a&&o<c)&&(s[n++]=new q.Q(r,o,a,c)),s}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new q.Q(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,s=t.completelyVisibleEndLineNumber;return new q.Q(i,this.getLineMinColumn(i),s,this.getLineMaxColumn(s))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),s=this.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,this.getLineMinColumn(i))),n=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:s,firstPositionDeltaTop:n}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:s}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,s){return this._lines.getViewLinesBracketGuides(e,t,i,s)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Le.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Le.lT(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),s=this.model.mightContainNonBasicASCII(),n=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new Vt.qL(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,s,r.tokens,t,n,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const s=this._lines.getViewLinesData(e,t,i);return new Vt.nt(this.getTabSize(),s)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,R.$C)(this._configuration.options)),i=new Hn;for(const s of t){const t=s.options,n=t.overviewRuler;if(!n)continue;const r=n.position;if(0===r)continue;const o=n.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.startLineNumber,s.range.startColumn),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(o,t.zIndex,a,c,r)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e?.invalidateCachedColor();const i=t.options.minimap;i?.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),s=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(s)}deduceModelPositionRelativeToViewPosition(e,t,i){const s=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const n=this.model.getOffsetAt(s)+t;return this.model.getPositionAt(n)}getPlainTextToCopy(e,t,i){const s=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(q.Q.compareRangesUsingStarts);let n=!1,r=!1;for(const a of e)a.isEmpty()?n=!0:r=!0;if(!r){if(!t)return"";const i=e.map((e=>e.startLineNumber));let n="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(n+=this.model.getLineContent(i[e])+s);return n}if(n&&t){const t=[];let s=0;for(const n of e){const e=n.startLineNumber;n.isEmpty()?e!==s&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(n,i?2:0)),s=e}return 1===t.length?t[0]:t}const o=[];for(const a of e)a.isEmpty()||o.push(this.model.getValueInRange(a,i?2:0));return 1===o.length?o[0]:o}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===hn.vH)return null;if(1!==e.length)return null;let s=e[0];if(s.isEmpty()){if(!t)return null;const e=s.startLineNumber;s=new q.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const n=this._configuration.options.get(50),r=this._getColorMap();let o;if(/[:;\\\/<>]/.test(n.fontFamily)||n.fontFamily===R.jU.fontFamily)o=R.jU.fontFamily;else{o=n.fontFamily,o=o.replace(/"/g,"'");if(!/[,']/.test(o)){/[+ ]/.test(o)&&(o=`'${o}'`)}o=`${o}, ${R.jU.fontFamily}`}return{mode:i,html:`<div style="color: ${r[1]};background-color: ${r[2]};font-family: ${o};font-weight: ${n.fontWeight};font-size: ${n.fontSize}px;line-height: ${n.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(s,r)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn,o=this.getTabSize();let a="";for(let c=i;c<=n;c++){const e=this.model.tokenization.getLineTokens(c),l=e.getLineContent(),h=c===i?s-1:0,d=c===n?r-1:l.length;a+=""===l?"<br>":(0,dn.s0)(l,e.inflate(),t,h,d,o,_.uF)}return a}_getColorMap(){const e=Me.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,s=e.length;i<s;i++)t[i]=Pe.Q1.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((s=>this._cursor.setStates(s,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((s=>this._cursor.setSelections(s,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Qs):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((s=>this._cursor.executeEdits(s,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,s,n){this._executeCursorEdit((r=>this._cursor.compositionType(r,e,t,i,s,n)))}paste(e,t,i,s){this._executeCursorEdit((n=>this._cursor.paste(n,e,t,i,s)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealAll(s,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealPrimary(s,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,s,n){this._withViewEventsCollector((r=>r.emitViewEvent(new Ps(e,!1,i,null,s,t,n))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Ws),this._eventDispatcher.emitOutgoingEvent(new Ys))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges((()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}))}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Un{static create(e){const t=e._setTrackedRange(null,new q.Q(1,1,1,1),1);return new Un(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,s,n){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=s,this._startLineDelta=n}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(t,e.getLineMinColumn(t))),s=e.model._setTrackedRange(this._modelTrackedRange,new q.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),n=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=s,this._startLineDelta=r-n}invalidate(){this._isValid=!1}}class Hn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,s,n){const r=this._asMap[e];if(r){const e=r.data,t=e[e.length-3],o=e[e.length-1];if(t===n&&o+1>=i)return void(s>o&&(e[e.length-1]=s));e.push(n,i,s)}else{const r=new Vt.Uv(e,t,[n,i,s]);this._asMap[e]=r,this.asArray.push(r)}}}class Bn{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Wn(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let s=0,n=0;for(;s<e.length&&n<t.length;){const r=e[s],o=t[n];if(r.endLineNumber<o.startLineNumber-1)i.push(e[s++]);else if(o.endLineNumber<r.startLineNumber-1)i.push(t[n++]);else{const e=Math.min(r.startLineNumber,o.startLineNumber),t=Math.max(r.endLineNumber,o.endLineNumber);i.push(new q.Q(e,1,t,1)),s++,n++}}for(;s<e.length;)i.push(e[s++]);for(;n<t.length;)i.push(t[n++]);return i}(e,t)),[]);return Wn(this.ranges,e)||(this.ranges=e),this.ranges}}function Wn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Vn{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),s=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:s+this.startLineDelta},1)}}var zn,Gn=i(50091),jn=i(32848),Kn=i(58345),Yn=i(58591),qn=i(27195),$n=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Qn=function(e,t){return function(i,s){t(i,s,e)}};let Xn=class extends d.jG{static{zn=this}static{this.dropIntoEditorDecorationOptions=ss.kI.register({description:"workbench-dnd-target",className:"dnd-target"})}get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,s,r,o,a,d,u,g,p,m){super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Qy)(),this._contributions=this._register(new Xi),this._onDidDispose=this._register(new h.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new tr(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new h.vl),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new h.vl),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),r.willCreateCodeEditor();const f={...t};let _;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++Zn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,i.contextMenuId??(i.isSimpleWidget?qn.D8.SimpleEditorContext:qn.D8.EditorContext),f,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(146)){const e=t.get(146);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=r,this._commandService=o,this._themeService=d,this._register(new ir(this,this._contextKeyService)),this._register(new sr(this,this._contextKeyService,m)),this._instantiationService=this._register(s.createChild(new Kn.a([jn.fN,this._contextKeyService]))),this._modelData=null,this._focusTracker=new nr(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},_=Array.isArray(i.contributions)?i.contributions:n.dS.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const c of n.dS.getEditorActions()){if(this._actions.has(c.id)){(0,l.dz)(new Error(`Cannot have two actions with the same id ${c.id}`));continue}const e=new Ji.f(c.id,c.label,c.alias,c.metadata,c.precondition??void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(c.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const v=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new c.pN(this._domElement,{onDragOver:e=>{if(!v())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!v())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){this._modelData?.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,s){return new I(e,t,i,this._domElement,s)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return es._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Zi.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){try{this._beginUpdate();const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:this._modelData?.model.uri||null,newModelUrl:t?.uri||null};this._onWillChangeModel.fire(i);const s=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(n),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,s){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,s)}getTopForLineNumber(e,t=!1){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,s=!1){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,s)}getBottomForLineNumber(e,t=!1){if(!this._modelData)return-1;const i=this._modelData.model.getLineMaxColumn(e);return zn._getVerticalOffsetAfterPosition(this._modelData,e,i,t)}setHiddenAreas(e,t){this._modelData?.viewModel.setHiddenAreas(e.map((e=>q.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return $.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,s){if(!this._modelData)return;if(!q.Q.isIRange(e))throw new Error("Invalid arguments");const n=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(n);this._modelData.viewModel.revealRange("api",i,r,t,s)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,s){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,s)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=pe.L.isISelection(e),s=q.Q.isIRange(e);if(!i&&!s)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(s){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,s){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,t,1),i,!1,s)}revealRange(e,t=0,i=!1,s=!0){this._revealRange(e,i?1:0,s,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,s){if(!q.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(q.Q.lift(e),t,i,s)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.L.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){this._getViewModel()?.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const s=this.getAction(t);if(s)return void Promise.resolve(s.run(i)).then(void 0,l.dz);if(!this._modelData)return;if(this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,s,n){this._modelData&&this._modelData.viewModel.compositionType(t,i,s,n,e)}_paste(e,t,i,s,n,r){if(!this._modelData)return;const o=this._modelData.viewModel,a=o.getSelection().getStartPosition();o.paste(t,i,s,e);const c=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:r,range:new q.Q(a.lineNumber,a.column,c.lineNumber,c.column),languageId:n})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const s=n.dS.getEditorCommand(t);return!!s&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(s.runEditorCommand(e,this,i)).then(void 0,l.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(92))return!1;let s;return s=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,s),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new rr(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,R.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,R.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,s=i.get(146);return{top:zn._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+s.glyphMarginWidth+s.lineNumbersWidth+s.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),s=new Fn(this._id,this._configuration,e,Ki.create(c.zk(this._domElement)),os.create(this._configuration.options),(e=>c.PG(c.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i,{batchChanges:e=>{try{return this._beginUpdate(),e()}finally{this._endUpdate()}}});t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(s.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Re.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Yn.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Re.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let n=0,r=t.selections.length;n<r;n++)e[n]=t.selections[n].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const s={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(s);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[n,r]=this._createView(s);if(r){this._domElement.appendChild(n.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addGlyphMarginWidget(this._glyphMarginWidgets[i])}n.render(!1,!0),n.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Jn(e,s,n,r,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,s)=>{this._paste("keyboard",e,t,i,s)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,s)=>{this._compositionType("keyboard",e,t,i,s)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,s)=>{const n={text:e,pasteOnNewLine:t,multicursorText:i,mode:s};this._commandService.executeCommand("paste",n)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,s)=>{if(i||s){const n={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:s};this._commandService.executeCommand("compositionType",n)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new st(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(this._contributionsDisposable?.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&t.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:zn.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,0===this._updateCounter&&this._onEndUpdate.fire()}};Xn=zn=$n([Qn(3,He._Y),Qn(4,U.T),Qn(5,Gn.d),Qn(6,jn.fN),Qn(7,ke.Gy),Qn(8,Yn.Ot),Qn(9,x.j),Qn(10,is.JZ),Qn(11,ns.ILanguageFeaturesService)],Xn);let Zn=0;class Jn{constructor(e,t,i,s,n,r){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=s,this.listenersToRemove=n,this.attachedView=r}dispose(){(0,d.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class er extends d.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class tr extends h.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class ir extends d.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=ts.R.editorSimpleInput.bindTo(t),this._editorFocus=ts.R.focus.bindTo(t),this._textInputFocus=ts.R.textInputFocus.bindTo(t),this._editorTextFocus=ts.R.editorTextFocus.bindTo(t),this._tabMovesFocus=ts.R.tabMovesFocus.bindTo(t),this._editorReadonly=ts.R.readOnly.bindTo(t),this._inDiffEditor=ts.R.inDiffEditor.bindTo(t),this._editorColumnSelection=ts.R.columnSelection.bindTo(t),this._hasMultipleSelections=ts.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=ts.R.hasNonEmptySelection.bindTo(t),this._canUndo=ts.R.canUndo.bindTo(t),this._canRedo=ts.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(w.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(w.M.getTabFocusMode()),this._editorReadonly.set(e.get(92)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class sr extends d.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=ts.R.languageId.bindTo(t),this._hasCompletionItemProvider=ts.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=ts.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=ts.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=ts.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=ts.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=ts.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=ts.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=ts.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=ts.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=ts.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=ts.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=ts.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=ts.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=ts.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=ts.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=ts.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=ts.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=ts.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=ts.R.isInEmbeddedEditor.bindTo(t);const s=()=>this._update();this._register(e.onDidChangeModel(s)),this._register(e.onDidChangeModelLanguage(s)),this._register(i.completionProvider.onDidChange(s)),this._register(i.codeActionProvider.onDidChange(s)),this._register(i.codeLensProvider.onDidChange(s)),this._register(i.definitionProvider.onDidChange(s)),this._register(i.declarationProvider.onDidChange(s)),this._register(i.implementationProvider.onDidChange(s)),this._register(i.typeDefinitionProvider.onDidChange(s)),this._register(i.hoverProvider.onDidChange(s)),this._register(i.documentHighlightProvider.onDidChange(s)),this._register(i.documentSymbolProvider.onDidChange(s)),this._register(i.referenceProvider.onDidChange(s)),this._register(i.renameProvider.onDidChange(s)),this._register(i.documentFormattingEditProvider.onDidChange(s)),this._register(i.documentRangeFormattingEditProvider.onDidChange(s)),this._register(i.signatureHelpProvider.onDidChange(s)),this._register(i.inlayHintsProvider.onDidChange(s)),s()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class nr extends d.jG{constructor(e,t){super(),this._onChange=this._register(new h.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(c.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(c.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){return this._hadFocus??!1}}class rr{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const s=e.getDecorationRange(i);s&&t.push(s)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const or=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),ar=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function cr(e){return or+encodeURIComponent(e.toString())+ar}const lr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),hr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${cr(i)}") repeat-x bottom left; }`);const s=e.getColor(zt.Hng);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${cr(s)}") repeat-x bottom left; }`);const n=e.getColor(zt.pOz);n&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${cr(n)}") repeat-x bottom left; }`);const r=e.getColor(zt.i61);r&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return lr+encodeURIComponent(e.toString())+hr}(r)}") no-repeat bottom left; }`);const o=e.getColor(Ae.yw);o&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${o.rgba.a}; }`)}))},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},52776:(e,t,i)=>{"use strict";i.d(t,{vV:()=>u,jQ:()=>h,N4:()=>l,M4:()=>g,vr:()=>d});var s=i(8597),n=i(72962),r=i(31295),o=i(5662),a=i(78209);const c=s.$;class l extends o.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new r.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends o.jG{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=s.BC(e,c("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=s.BC(this.actionContainer,c("a.action")),this.action.setAttribute("role","button"),t.iconClass&&s.BC(this.action,c(`span.icon.${t.iconClass}`));s.BC(this.action,c("span")).textContent=i?`${t.label} (${i})`:t.label,this._store.add(new u(this.actionContainer,t.run)),this._store.add(new g(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function d(e,t){return e&&t?(0,a.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}class u extends o.jG{constructor(e,t){super(),this._register(s.ko(e,s.Bx.CLICK,(i=>{i.stopPropagation(),i.preventDefault(),t(e)})))}}class g extends o.jG{constructor(e,t,i){super(),this._register(s.ko(e,s.Bx.KEY_DOWN,(s=>{const r=new n.Z(s);i.some((e=>r.equals(e)))&&(s.stopPropagation(),s.preventDefault(),t(e))})))}}},52894:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(19728).then(i.bind(i,19728))})},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>l,kK:()=>m,pN:()=>o,pr:()=>_,sO:()=>d,uV:()=>c});var s=i(41234),n=i(44026),r=i(85600);class o{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new s.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new n.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let s=0,n=-1,r=-1;const o=e=>{for(;s<e;){const e=this._regions.getEndLineNumber(s),t=this._regions.isCollapsed(s);if(e<=n){const n=0!==this.regions.getSource(s);i.changeDecorationOptions(this._editorDecorationIds[s],this._decorationProvider.getDecorationOption(t,e<=r,n))}t&&e>r&&(r=e),s++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,o(e);const s=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,s),n=Math.max(n,this._regions.getEndLineNumber(e))}}o(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let s=0;s<this._regions.length;s++){const e=this._regions.toFoldRange(s);0!==e.source&&i(e)||t.push(e)}this.updatePost(n.tz.fromFoldRanges(t))}update(e,t){const i=this._currentFoldedOrManualRanges(t),s=n.tz.sanitizeAndMerge(e,i,this._textModel.getLineCount(),t);this.updatePost(n.tz.fromFoldRanges(s))}updatePost(e){const t=[];let i=-1;for(let s=0,n=e.length;s<n;s++){const n=e.getStartLineNumber(s),r=e.getEndLineNumber(s),o=e.isCollapsed(s),a=0!==e.getSource(s),c={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:c,options:this._decorationProvider.getDecorationOption(o,r<=i,a)}),o&&r>i&&(i=r)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e){const t=[];for(let i=0,s=this._regions.length;i<s;i++){let s=this.regions.isCollapsed(i);const n=this.regions.getSource(i);if(s||0!==n){const r=this._regions.toFoldRange(i),o=this._textModel.getDecorationRange(this._editorDecorationIds[i]);o&&(s&&e?.startsInside(o.startLineNumber+1,o.endLineNumber)&&(s=!1),t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:r.type,isCollapsed:s,source:n}))}}return t}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let s=0,n=e.length;s<n;s++){const n=e[s];if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const r=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,isCollapsed:n.isCollapsed,source:n.source,checksum:r})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],i=this._textModel.getLineCount();for(const n of e){if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const e=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);n.checksum&&e!==n.checksum||t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,type:void 0,isCollapsed:n.isCollapsed??!0,source:n.source??0})}const s=n.tz.sanitizeAndMerge(this._regions,t,i);this.updatePost(n.tz.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,r.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let s=this._regions.findRange(e),n=1;for(;s>=0;){const e=this._regions.toRegion(s);t&&!t(e,n)||i.push(e),n++,s=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],s=e?e.regionIndex+1:0,n=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let r=s,o=this._regions.length;r<o;r++){const s=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;for(;e.length>0&&!s.containedBy(e[e.length-1]);)e.pop();e.push(s),t(s,e.length)&&i.push(s)}}else for(let r=s,o=this._regions.length;r<o;r++){const e=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const s=[];for(const n of i){const i=e.getRegionAtLine(n);if(i){const n=!i.isCollapsed;if(s.push(i),t>1){const r=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==n&&i<t));s.push(...r)}}}e.toggleCollapseState(s)}function c(e,t,i=Number.MAX_VALUE,s){const n=[];if(s&&s.length>0)for(const r of s){const s=e.getRegionAtLine(r);if(s&&(s.isCollapsed!==t&&n.push(s),i>1)){const r=e.getRegionsInside(s,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...r)}}else{const s=e.getRegionsInside(null,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...s)}e.toggleCollapseState(n)}function l(e,t,i,s){const n=[];for(const r of s){const s=e.getAllRegionsAtLine(r,((e,s)=>e.isCollapsed!==t&&s<=i));n.push(...s)}e.toggleCollapseState(n)}function h(e,t,i){const s=[];for(const n of i){const i=e.getAllRegionsAtLine(n,(e=>e.isCollapsed!==t));i.length>0&&s.push(i[0])}e.toggleCollapseState(s)}function d(e,t,i,s){const n=e.getRegionsInside(null,((e,n)=>n===t&&e.isCollapsed!==i&&!s.some((t=>e.containsLine(t)))));e.toggleCollapseState(n)}function u(e,t,i){const s=[];for(const r of i){const t=e.getAllRegionsAtLine(r,void 0);t.length>0&&s.push(t[0])}const n=e.getRegionsInside(null,(e=>s.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(n)}function g(e,t,i){const s=e.textModel,n=e.regions,r=[];for(let o=n.length-1;o>=0;o--)if(i!==n.isCollapsed(o)){const e=n.getStartLineNumber(o);t.test(s.getLineContent(e))&&r.push(n.toRegion(o))}e.toggleCollapseState(r)}function p(e,t,i){const s=e.regions,n=[];for(let r=s.length-1;r>=0;r--)i!==s.isCollapsed(r)&&t===s.getType(r)&&n.push(s.toRegion(r));e.toggleCollapseState(n)}function m(e,t){let i=null;const s=t.getRegionAtLine(e);if(null!==s&&(i=s.startLineNumber,e===i)){const e=s.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let s=0;for(-1!==e&&(s=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=s)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let s=0;if(-1!==e)s=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;s=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=s)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},53068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getIconClasses:()=>h});var s=i(36456),n=i(89403),r=i(79400),o=i(83941),a=i(7291),c=i(25689);const l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function h(e,t,i,h,u){if(c.L.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(r.r.isUri(u))return[];const g=h===a.p.ROOT_FOLDER?["rootfolder-icon"]:h===a.p.FOLDER?["folder-icon"]:["file-icon"];if(i){let r;if(i.scheme===s.ny.data){r=n.B6.parseMetaData(i).get(n.B6.META_DATA_LABEL)}else{const e=i.path.match(l);e?(r=d(e[2].toLowerCase()),e[1]&&g.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):r=d(i.authority.toLowerCase())}if(h===a.p.ROOT_FOLDER)g.push(`${r}-root-name-folder-icon`);else if(h===a.p.FOLDER)g.push(`${r}-name-folder-icon`);else{if(r){if(g.push(`${r}-name-file-icon`),g.push("name-file-icon"),r.length<=255){const e=r.split(".");for(let t=1;t<e.length;t++)g.push(`${e.slice(t).join(".")}-ext-file-icon`)}g.push("ext-file-icon")}const a=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===s.ny.data){const e=n.B6.parseMetaData(i).get(n.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(r=t.getLanguageId())}if(r&&r!==o.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);a&&g.push(`${d(a)}-lang-file-icon`)}}return g}function d(e){return e.replace(/[\s]/g,"/")}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},53396:()=>{},53450:(e,t,i)=>{"use strict";i.d(t,{P:()=>d,k:()=>u});var s=i(46041),n=i(91508),r=i(1245),o=i(36677),a=i(20761),c=i(78049),l=i(84739),h=i(64383);class d extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,c.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const s=this.textModel.getLineCount();if(e<1||e>s)throw new h.D7("Illegal value for lineNumber");const n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide);let o=-2,a=-1,c=-2,l=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,l=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,l=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,C=0,E=!0,b=0,S=0;for(let h=0;v||E;h++){const n=e-h,o=e+h;h>1&&(n<1||n<t)&&(v=!1),h>1&&(o>s||o>i)&&(E=!1),h>5e4&&(v=!1,E=!1);let p=-1;if(v&&n>=1){const e=this._computeIndentLevel(n-1);e>=0?(c=n-1,l=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(n),p=this._getIndentLevelForWhitespaceLine(r,a,l))}let y=-1;if(E&&o<=s){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(o),y=this._getIndentLevelForWhitespaceLine(r,g,m))}if(0!==h){if(1===h){if(o<=s&&y>=0&&S+1===y){v=!1,_=o,C=o,b=y;continue}if(n>=1&&p>=0&&p-1===S){E=!1,_=n,C=n,b=p;continue}if(_=e,C=e,b=S,0===b)return{startLineNumber:_,endLineNumber:C,indent:b}}v&&(p>=b?_=n:v=!1),E&&(y>=b?C=o:E=!1)}else S=p}return{startLineNumber:_,endLineNumber:C,indent:b}}getLinesBracketGuides(e,t,i,r){const a=[];for(let s=e;s<=t;s++)a.push([]);const c=!0,h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new o.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let d;if(i&&h.length>0){const n=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(o.Q.fromPositions(i)).toArray()).filter((e=>o.Q.strictContainsPosition(e.range,i)));d=(0,s.Uk)(n,(e=>c))?.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const s of h){if(!s.closingBracketRange)continue;const i=d&&s.range.equalsRange(d);if(!i&&!r.includeInactive)continue;const o=p.getInlineClassName(s.nestingLevel,s.nestingLevelOfEqualBracketType,g)+(r.highlightActive&&i?" "+p.activeClassName:""),c=s.openingBracketRange.getStartPosition(),h=s.closingBracketRange.getStartPosition(),u=r.horizontalGuides===l.N6.Enabled||r.horizontalGuides===l.N6.EnabledForActive&&i;if(s.range.startLineNumber===s.range.endLineNumber){u&&a[s.range.startLineNumber-e].push(new l.TH(-1,s.openingBracketRange.getEndPosition().column,o,new l.pv(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(s.openingBracketRange.getStartPosition()),_=Math.min(f,m,s.minVisibleColumnIndentation+1);let v=!1;n.HG(this.textModel.getLineContent(s.closingBracketRange.startLineNumber))<s.closingBracketRange.startColumn-1&&(v=!0);const C=Math.max(c.lineNumber,e),E=Math.min(h.lineNumber,t),b=v?1:0;for(let t=C;t<E+b;t++)a[t-e].push(new l.TH(_,-1,o,null,t===c.lineNumber?c.column:-1,t===h.lineNumber?h.column:-1));u&&(c.lineNumber>=e&&f>_&&a[c.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!1,c.column),-1,-1)),h.lineNumber<=t&&m>_&&a[h.lineNumber-e].push(new l.TH(_,-1,o,new l.pv(!v,h.column),-1,-1)))}for(const s of a)s.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return a}getVisibleColumnFromPosition(e){return r.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide),o=new Array(t-e+1);let a=-2,c=-1,l=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,n=this._computeIndentLevel(d-1);if(n>=0)a=d-1,c=n,o[t]=Math.ceil(n/s.indentSize);else{if(-2===a){a=-1,c=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,c=t;break}}}if(-1!==l&&(-2===l||l<d-1)){l=-1,h=-1;for(let e=d;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){l=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,c,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,i){const s=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/s.indentSize):t===i||e?Math.ceil(i/s.indentSize):1+Math.floor(i/s.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},53472:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56z",clipRule:"evenodd"}))},54459:(e,t,i)=>{"use strict";i.d(t,{f:()=>r});var s=i(46958),n=i(74027);function r(e,t,i,o,a,c){if(Array.isArray(e)){let s=0;for(const n of e){const e=r(n,t,i,o,a,c);if(10===e)return e;e>s&&(s=e)}return s}if("string"===typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){const{language:r,pattern:l,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!o&&!d)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(r)if(r===i)g=10;else{if("*"!==r)return 0;g=Math.max(g,5)}if(u)if(u===c)g=10;else{if("*"!==u||void 0===c)return 0;g=Math.max(g,5)}if(l){let e;if(e="string"===typeof l?l:{...l,base:(0,n.S8)(l.base)},e!==t.fsPath&&!(0,s.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},54503:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 3.031L11 8.866a1 1 0 0 0 0-1.732L7.25 4.969a1 1 0 0 0-1.5.866v4.33a1 1 0 0 0 1.5.866",clipRule:"evenodd"}))},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},55089:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var s=i(60413),n=i(25893),r=i(98067);const o={clipboard:{writeText:r.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.ib||s.Qu()?0:navigator.keyboard||s.nr?1:2,touch:"ontouchstart"in n.G||navigator.maxTouchPoints>0,pointerEvents:n.G.PointerEvent&&("ontouchstart"in n.G||navigator.maxTouchPoints>0)}},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>R,Qp:()=>I,Rw:()=>T,Uy:()=>L,W4:()=>O,Xj:()=>w,dU:()=>A,k_:()=>b,pQ:()=>S,pR:()=>y});var s=i(25890),n=i(18447),r=i(64383),o=i(5662),a=i(79400),c=i(80537),l=i(36677),h=i(75326),d=i(56942),u=i(23750),g=i(50868),p=i(78209),m=i(50091),f=i(58591),_=i(73823),v=i(90651),C=i(61407),E=i(8995);const b="editor.action.codeAction",S="editor.action.quickFix",y="editor.action.autoFix",w="editor.action.refactor",R="editor.action.sourceAction",L="editor.action.organizeImports",T="editor.action.fixAll";class x extends o.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,s.EI)(e.diagnostics)?(0,s.EI)(t.diagnostics)?x.codeActionsPreferredComparator(e,t):-1:(0,s.EI)(t.diagnostics)?1:x.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(x.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&C.gB.QuickFix.contains(new E.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const k={actions:[],documentation:void 0};async function A(e,t,i,n,a,c){const l=n.filter||{},h={...l,excludes:[...l.excludes||[],C.gB.Notebook]},d={only:l.include?.value,trigger:n.type},u=new g.ER(t,c),p=2===n.type,m=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,C.uJ)(i,new E.k(e))))))}(e,t,p?h:l),f=new o.Cm,_=m.map((async e=>{try{a.report(e);const s=await e.provideCodeActions(t,i,d,u.token);if(s&&f.add(s),u.token.isCancellationRequested)return k;const n=(s?.actions||[]).filter((e=>e&&(0,C.aF)(l,e))),r=function(e,t,i){if(!e.documentation)return;const s=e.documentation.map((e=>({kind:new E.k(e.kind),command:e.command})));if(i){let e;for(const t of s)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(const n of t)if(n.kind)for(const e of s)if(e.kind.contains(new E.k(n.kind)))return e.command;return}(e,n,l.include);return{actions:n.map((t=>new C.Vi(t,e))),documentation:r}}catch(s){if((0,r.MB)(s))throw s;return(0,r.M_)(s),k}})),v=e.onDidChange((()=>{const i=e.all(t);(0,s.aI)(i,m)||u.cancel()}));try{const i=await Promise.all(_),r=i.map((e=>e.actions)).flat(),o=[...(0,s.Yc)(i.map((e=>e.documentation))),...N(e,t,n,r)];return new x(r,o,f)}finally{v.dispose(),u.dispose()}}function*N(e,t,i,s){if(t&&s.length)for(const n of e.all(t))n._getAdditionalMenuItems&&(yield*n._getAdditionalMenuItems?.({trigger:i.type,only:i.filter?.include?.value},s.map((e=>e.action))))}var I;async function O(e,t,i,s,r=n.XO.None){const o=e.get(c.nu),a=e.get(m.d),l=e.get(v.k),h=e.get(f.Ot);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(r),!r.isCancellationRequested){if(t.action.edit?.edits.length){if(!(await o.apply(t.action.edit,{editor:s?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==I.OnSave,showPreview:s?.preview})).isApplied)return}if(t.action.command)try{await a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(d){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(d);h.error("string"===typeof e?e:p.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(I||(I={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,s,o){if(!(t instanceof a.r))throw(0,r.Qg)();const{codeActionProvider:c}=e.get(d.ILanguageFeaturesService),g=e.get(u.IModelService).getModel(t);if(!g)throw(0,r.Qg)();const p=h.L.isISelection(i)?h.L.liftSelection(i):l.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,r.Qg)();const m="string"===typeof s?new E.k(s):void 0,f=await A(c,g,p,{type:1,triggerAction:C.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,n.XO.None),v=[],b=Math.min(f.validActions.length,"number"===typeof o?o:0);for(let r=0;r<b;r++)v.push(f.validActions[r].resolve(n.XO.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},55190:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});class s{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new s(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new s(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,s,n){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=s,this._cursorPosition=n}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const 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;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},55275:(e,t,i)=>{"use strict";i.d(t,{D:()=>s,Z:()=>r});class s{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=""}setMaxWidth(e){const t=n(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=n(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=n(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=n(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=n(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=n(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=n(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=n(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){const t=n(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){const t=n(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=n(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 n(e){return"number"===typeof e?`${e}px`:e}function r(e){return new s(e)}},55433:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>U,lr:()=>P,qs:()=>M});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),c=i(17799),l=i(8995),h=i(5662),d=i(44320),u=i(98067),g=i(58255),p=i(68792),m=i(85411),f=i(80537),_=i(36677),v=i(62083),C=i(56942),E=i(90208),b=i(85541),S=i(50868),y=i(9948),w=i(99645),R=i(78209),L=i(54770),T=i(32848),x=i(63591),k=i(73823),A=i(51467),N=i(56687),I=i(64383),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};const M="editor.changePasteType",P=new T.N1("pasteWidgetVisible",!1,(0,R.kg)("pasteWidgetVisible","Whether the paste widget is showing")),F="application/vnd.code.copyMetadata";let U=class extends h.jG{static{s=this}static{this.ID="editor.contrib.copyPasteActionController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,a){super(),this._bulkEditService=i,this._clipboardService=s,this._languageFeaturesService=r,this._quickInputService=o,this._progressService=a,this._editor=e;const c=e.getContainerDomNode();this._register((0,n.ko)(c,"copy",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"cut",(e=>this.handleCopy(e)))),this._register((0,n.ko)(c,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new y.I("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(N.G,"pasteIntoEditor",e,P,{id:M,label:(0,R.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,n.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){if(!this._editor.hasTextFocus())return;if(this._clipboardService.clearInternalState?.(),!e.clipboardData||!this.isPasteAsEnabled())return;const t=this._editor.getModel(),i=this._editor.getSelections();if(!t||!i?.length)return;const n=this._editor.getOption(37);let a=i;const c=1===i.length&&i[0].isEmpty();if(c){if(!n)return;a=[new _.Q(a[0].startLineNumber,1,a[0].startLineNumber,1+t.getLineLength(a[0].startLineNumber))]}const l=this._editor._getViewModel()?.getPlainTextToCopy(i,n,u.uF),h={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:c,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>!!e.prepareDocumentPaste));if(!d.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});const p=(0,m.q)(e.clipboardData),f=d.flatMap((e=>e.copyMimeTypes??[])),v=(0,g.b)();this.setCopyMetadata(e.clipboardData,{id:v,providerCopyMimeTypes:f,defaultPastePayload:h});const C=(0,o.SS)((async e=>{const i=(0,r.Yc)(await Promise.all(d.map((async i=>{try{return await i.prepareDocumentPaste(t,a,p,e)}catch(s){return void console.error(s)}}))));i.reverse();for(const t of i)for(const[e,i]of t)p.replace(e,i);return p}));s._currentCopyOperation?.dataTransferPromise.cancel(),s._currentCopyOperation={handle:v,dataTransferPromise:C}}async handlePaste(e){if(!e.clipboardData||!this._editor.hasTextFocus())return;w.k.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;const t=this._editor.getModel(),i=this._editor.getSelections();if(!i?.length||!t)return;if(this._editor.getOption(92)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const s=this.fetchCopyMetadata(e),n=(0,m.l)(e.clipboardData);n.delete(F);const r=[...e.clipboardData.types,...s?.providerCopyMimeTypes??[],d.K.uriList],o=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>{const t=this._pasteAsActionContext?.preferred;return!(t&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,t))&&e.pasteMimeTypes?.some((e=>(0,c.Y)(e,r)))}));o.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,o,i,n,s):this.doPasteInline(o,i,n,s,e)):this._pasteAsActionContext?.preferred&&this.showPasteAsNoEditMessage(i,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){w.k.get(this._editor)?.showMessage((0,R.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof l.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,s,n){const r=this._editor;if(!r.hasModel())return;const c=new S.gI(r,3,void 0),l=(0,o.SS)((async r=>{const d=this._editor;if(!d.hasModel())return;const u=d.getModel(),g=new h.Cm,p=g.add(new a.Qi(r));g.add(c.token.onCancellationRequested((()=>p.cancel())));const m=p.token;try{if(await this.mergeInDataFromCopy(i,s,m),m.isCancellationRequested)return;const r=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!r.length||1===r.length&&r[0]instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);const a={triggerKind:v.FX.Automatic},c=await this.getPasteEdits(r,i,u,t,a,m);if(g.add(c),m.isCancellationRequested)return;if(1===c.edits.length&&c.edits[0].provider instanceof E.LR)return this.applyDefaultPasteHandler(i,s,m,n);if(c.edits.length){const e="afterPaste"===d.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:c.edits},e,((e,i)=>new Promise(((s,n)=>{(async()=>{try{const r=e.provider.resolveDocumentPasteEdit?.(e,i),a=new o.Zv,c=r&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([a.p,r]),{cancel:()=>(a.cancel(),n(new I.AL))},0);return c&&(e.additionalEdit=c.additionalEdit),s(e)}catch(r){return n(r)}})()}))),m)}await this.applyDefaultPasteHandler(i,s,m,n)}finally{g.dispose(),this._currentPasteOperation===l&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,R.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),l,{cancel:async()=>{try{if(l.cancel(),c.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,s,c.token,n)}finally{c.dispose()}}}).then((()=>{c.dispose()})),this._currentPasteOperation=l}showPasteAsPick(e,t,i,s,n){const r=(0,o.SS)((async o=>{const a=this._editor;if(!a.hasModel())return;const c=a.getModel(),d=new h.Cm,u=d.add(new S.gI(a,3,void 0,o));try{if(await this.mergeInDataFromCopy(s,n,u.token),u.token.isCancellationRequested)return;let r=t.filter((t=>this.isSupportedPasteProvider(t,s,e)));e&&(r=r.filter((t=>this.providerMatchesPreference(t,e))));const o={triggerKind:v.FX.PasteAs,only:e&&e instanceof l.k?e:void 0};let a,h=d.add(await this.getPasteEdits(r,s,c,i,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(h={edits:h.edits.filter((t=>e instanceof l.k?e.contains(t.kind):e.providerId===t.provider.id)),dispose:h.dispose}),!h.edits.length)return void(o.only&&this.showPasteAsNoEditMessage(i,o.only));if(e)a=h.edits.at(0);else{const e=await this._quickInputService.pick(h.edits.map((e=>({label:e.title,description:e.kind?.value,edit:e}))),{placeHolder:(0,R.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=e?.edit}if(!a)return;const g=(0,b.v)(c.uri,i,a);await this._bulkEditService.apply(g,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,R.kg)("pasteAsProgress","Running paste handlers")},(()=>r))}setCopyMetadata(e,t){e.setData(F,JSON.stringify(t))}fetchCopyMetadata(e){if(!e.clipboardData)return;const t=e.clipboardData.getData(F);if(t)try{return JSON.parse(t)}catch{return}const[i,s]=p.Mz.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:s.multicursorText??null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){if(t?.id&&s._currentCopyOperation?.handle===t.id){const t=await s._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,s]of t)e.replace(i,s)}if(!e.has(d.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(d.K.uriList,(0,c.gf)(c.jt.create(t)))}}async getPasteEdits(e,t,i,s,n,a){const c=new h.Cm,l=await(0,o.PK)(Promise.all(e.map((async e=>{try{const r=await(e.provideDocumentPasteEdits?.(i,s,t,n,a));return r&&c.add(r),r?.edits?.map((t=>({...t,provider:e})))}catch(r){return void((0,I.MB)(r)||console.error(r))}}))),a),d=(0,r.Yc)(l??[]).flat().filter((e=>!n.only||n.only.contains(e.kind)));return{edits:(0,b.H)(d),dispose:()=>c.dispose()}}async applyDefaultPasteHandler(e,t,i,s){const n=e.get(d.K.text)??e.get("text"),r=await(n?.asString())??"";if(i.isCancellationRequested)return;const o={clipboardEvent:s,text:r,pasteOnNewLine:t?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:t?.defaultPastePayload.multicursorText??null,mode:null};this._editor.trigger("keyboard","paste",o)}isSupportedPasteProvider(e,t,i){return!!e.pasteMimeTypes?.some((e=>t.matches(e)))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};U=s=O([D(1,x._Y),D(2,f.nu),D(3,L.h),D(4,C.ILanguageFeaturesService),D(5,A.GK),D(6,k.G5)],U)},56245:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var s=i(41234);class n{get event(){return this.emitter.event}constructor(e,t,i){const n=e=>this.emitter.fire(e);this.emitter=new s.vl({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}},56687:(e,t,i)=>{"use strict";i.d(t,{G:()=>S});var s,n=i(8597),r=i(62890),o=i(36921),a=i(70125),c=i(64383),l=i(41234),h=i(5662),d=i(80537),u=i(85541),g=i(78209),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends h.jG{static{s=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,n,r,o,a,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=n,this.edits=r,this.onSelectNewEdit=o,this._contextMenuService=a,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register((0,h.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,h.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{n.containsPosition(e.position)||this.dispose()}))),this._register(l.Jh.runAndSubscribe(d.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=n.$(".post-edit-widget"),this.button=this._register(new r.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(n.ko(this.domNode,n.Bx.CLICK,(()=>this.showSelector())))}getId(){return s.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=n.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,o.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};b=s=C([E(7,m.Z),E(8,p.fN),E(9,_.b)],b);let S=class extends h.jG{constructor(e,t,i,s,n,r,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=s,this._instantiationService=n,this._bulkEditService=r,this._notificationService=o,this._currentWidget=this._register(new h.HE),this._register(l.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,s,n){const r=this._editor.getModel();if(!r||!e.length)return;const o=t.allEdits.at(t.activeEditIndex);if(!o)return;const l=async r=>{const o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:r,allEdits:t.allEdits},i,s,n))},h=(s,n)=>{(0,c.MB)(s)||(this._notificationService.error(n),i&&this.show(e[0],t,l))};let d;try{d=await s(o,n)}catch(C){return h(C,(0,g.kg)("resolveError","Error resolving edit '{0}':\n{1}",o.title,(0,a.r)(C)))}if(n.isCancellationRequested)return;const p=(0,u.v)(r.uri,e,d),m=e[0],f=r.deltaDecorations([],[{range:m,options:{description:"paste-line-suffix",stickiness:0}}]);let _,v;this._editor.focus();try{_=await this._bulkEditService.apply(p,{editor:this._editor,token:n}),v=r.getDecorationRange(f[0])}catch(C){return h(C,(0,g.kg)("applyError","Error applying edit '{0}':\n{1}",o.title,(0,a.r)(C)))}finally{r.deltaDecorations(f,[])}n.isCancellationRequested||i&&_.isApplied&&t.allEdits.length>1&&this.show(v??m,t,l)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(b,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};S=C([E(4,f._Y),E(5,d.nu),E(6,v.Ot)],S)},56691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{findSectionHeaders:()=>r});const s=new RegExp("\\bMARK:\\s*(.*)$","d"),n=/^-+|-+$/g;function r(e,t){let i=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const s=function(e,t){const i=[],s=e.getLineCount();for(let n=1;n<=s;n++){const s=e.getLineContent(n),r=s.match(t.foldingRules.markers.start);if(r){const e={startLineNumber:n,startColumn:r[0].length+1,endLineNumber:n,endColumn:s.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(s.substring(r[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);i=i.concat(s)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let s=1;s<=i;s++){o(e.getLineContent(s),s,t)}return t}(e);i=i.concat(t)}return i}function o(e,t,i){s.lastIndex=0;const n=s.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(n,""),hasSeparatorLine:t}}},56772:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a,xb:()=>u});var s=i(91508),n=i(99020),r=i(36677);class o{constructor(e,t,i,s,n,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=s,this.forwardRegex=n,this.reversedRegex=r,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let o=0;o<t;o++)i[o]=o;const s=(e,t)=>{const[i,s]=e,[n,r]=t;return i===n||i===r||s===n||s===r},n=(e,s)=>{const n=Math.min(e,s),r=Math.max(e,s);for(let o=0;o<t;o++)i[o]===r&&(i[o]=n)};for(let o=0;o<t;o++){const r=e[o];for(let a=o+1;a<t;a++)s(r,e[a])&&n(i[o],i[a])}const r=[];for(let o=0;o<t;o++){const s=[],n=[];for(let r=0;r<t;r++)if(i[r]===o){const[t,i]=e[r];s.push(t),n.push(i)}s.length>0&&r.push({open:s,close:n})}return r}(t);this.brackets=i.map(((t,s)=>new o(e,s,t.open,t.close,function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n)}(t.open,t.close,i,s),function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)c(n[r],i,s,n);return n=h(n),n.sort(l),n.reverse(),u(n.map(g))}(t.open,t.close,i,s)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const e of s.open)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of s.close)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,i,s){for(let n=0,r=t.length;n<r;n++){if(n===i)continue;const r=t[n];for(const t of r.open)t.indexOf(e)>=0&&s.push(t);for(const t of r.close)t.indexOf(e)>=0&&s.push(t)}}function l(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const s of e)i.has(s)||(t.push(s),i.add(s));return t}function d(e){const t=/^[\w ]+$/.test(e);return e=s.bm(e),t?`\\b${e}\\b`:e}function u(e,t){const i=`(${e.map(d).join(")|(")})`;return s.OS(i,!0,t)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let s=e.length-1;s>=0;s--)t[i++]=e.charCodeAt(s);return n.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=i.length-(n.index||0),a=n[0].length,c=s+o;return new r.Q(t,c-a+1,t,c+1)}static findPrevBracketInRange(e,t,i,s,n){const r=g(i).substring(i.length-n,i.length-s);return this._findPrevBracketInText(e,t,r,s)}static findNextBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=n.index||0,a=n[0].length;if(0===a)return null;const c=s+o;return new r.Q(t,c+1,t,c+1+a)}static findNextBracketInRange(e,t,i,s,n){const r=i.substring(s,n);return this.findNextBracketInText(e,t,r,s)}}},56800:(e,t,i)=>{"use strict";var s=i(8597),n=i(5662),r=i(31450),o=i(98067);class a extends n.jG{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(e){super(),this.editor=e,this.widget=null,o.un&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(92);!this.widget&&e?this.widget=new c(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class c extends n.jG{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(s.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(s.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return c.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,r.HW)(a.ID,a,3)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},56976:(e,t,i)=>{e.exports=i(34529)},57039:(e,t,i)=>{"use strict";i.d(t,{B2:()=>o,Ke:()=>r,hx:()=>s,mm:()=>n});class s{constructor(e,t,i,s){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=s,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class n{constructor(e,t,i,s,n,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=s,this.initialMousePosY=n,this.supportsMarkerHover=r,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}class r{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},57197:(e,t,i)=>{"use strict";var s=i(31450),n=i(78209);const r=Object.freeze({View:(0,n.aS)("view","View"),Help:(0,n.aS)("help","Help"),Test:(0,n.aS)("test","Test"),File:(0,n.aS)("file","File"),Preferences:(0,n.aS)("preferences","Preferences"),Developer:(0,n.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var o=i(27195),a=i(84001),c=i(32848),l=i(60002),h=i(5662),d=i(56942),u=i(8597),g=i(80789),p=i(25890),m=i(25689),f=i(92473),_=i(29163),v=i(83069),C=i(99020),E=i(25521),b=i(35600),S=i(46109);class y{constructor(e,t,i,s=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=s}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new y([],[],0)}}const w=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),R="data-sticky-line-index",L="data-sticky-is-line",T="data-sticky-is-folding-icon";class x extends h.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const s=this._isWidgetHeightZero(e),n=s?void 0:e,r=s?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(n,t,r),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,s=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===s?0:s}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const o of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(o);const s=this._editor.getLayoutInfo(),n=this._lineNumbers.slice(i);for(const[o,a]of n.entries()){const e=this._renderChildNode(o+i,a,t,s);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const r=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${r}px`,this._linesDomNodeScrollable.style.height=`${r}px`,this._rootDomNode.style.height=`${r}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+s.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(111)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,s){const n=this._editor._getViewModel();if(!n)return;const r=n.coordinatesConverter.convertModelPositionToViewPosition(new v.y(t,1)).lineNumber,o=n.getViewLineRenderingData(r),a=this._editor.getOption(68);let c;try{c=E.d.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(y){c=[]}const l=new b.zL(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,c,o.tabSize,o.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new C.fe(2e3),d=(0,b.UW)(l,h);let u;u=w?w.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(R,String(e)),g.setAttribute(L,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(R,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=s.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${s.lineNumbersWidth}px`,f.style.paddingLeft=`${s.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const S=new k(e,t,g,p,_,d.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(S)}_updateTopAndZIndexOfStickyLine(e){const t=e.index,i=e.lineDomNode,s=e.lineNumberDomNode,n=t===this._lineNumbers.length-1;i.style.zIndex=n?"0":"1",s.style.zIndex=n?"0":"1";const r=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,o=t*this._lineHeight+"px";return i.style.top=n?r:o,s.style.top=n?r:o,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(111);if(!e||"never"===i)return;const s=e.regions,n=s.findRange(t),r=s.getStartLineNumber(n);if(!(t===r))return;const o=s.isCollapsed(n),a=new A(o,r,s.getEndLineNumber(n),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(o||"always"===i)),a.domNode.setAttribute(T,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.rk)(t.characterMapping,e,0);return new v.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,R);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,L)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,T)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class k{constructor(e,t,i,s,n,r,o){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=s,this.foldingIcon=n,this.characterMapping=r,this.scrollWidth=o}}class A{constructor(e,t,i,s){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=s,this.domNode=document.createElement("div"),this.domNode.style.width=`${s}px`,this.domNode.style.height=`${s}px`,this.domNode.className=m.L.asClassName(e?S.k0:S.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var N=i(18447),I=i(90766),O=i(41234),D=i(17469),M=i(29999),P=i(44588),F=i(87784),U=i(76495),H=i(64383);class B{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class W{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class V{constructor(e,t,i,s){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=s}}var z,G,j=i(42522),K=i(63591),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(z||(z={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(G||(G={}));let $=class extends h.jG{constructor(e,t,i,s){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new I.ve(300)),this._updateOperation=this._register(new h.Cm),this._editor.getOption(116).defaultModel){case z.OUTLINE_MODEL:this._modelProviders.push(new X(this._editor,s));case z.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,s));case z.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:s}=t.computeStickyModel(e);this._modelPromise=s;const n=await i;if(this._modelPromise!==s)return null;switch(n){case G.CANCELED:return this._updateOperation.clear(),null;case G.VALID:return t.stickyModel}}return null})).catch((e=>((0,H.dz)(e),null)))}};$=Y([q(2,K._Y),q(3,d.ILanguageFeaturesService)],$);class Q extends h.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,G.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,I.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?G.CANCELED:(this._stickyModel=this.createStickyModel(e,t),G.VALID):this._invalid())).then(void 0,(e=>((0,H.dz)(e),G.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let X=class extends Q{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return M.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){const{stickyOutlineElement:i,providerID:s}=this._stickyModelFromOutlineModel(t,this._stickyModel?.outlineProviderId),n=this._editor.getModel();return new V(n.uri,n.getVersionId(),i,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(j.f.first(e.children.values())instanceof M.e0){const s=j.f.find(e.children.values(),(e=>e.id===t));if(s)i=s.children;else{let s,n="",r=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>r&&(s=i,r=e,n=i.id)}t=n,i=s.children}}else i=e.children;const s=[],n=Array.from(i.values()).sort(((e,t)=>{const i=new B(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),s=new B(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,s)}));for(const r of n)s.push(this._stickyModelFromOutlineElement(r,r.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new W(void 0,s,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const s=new B(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new W(s,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof M.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};X=Y([q(1,d.ILanguageFeaturesService)],X);class Z extends Q{constructor(e){super(e),this._foldingLimitReporter=new P.BP(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),s=this._editor.getModel();return new V(s.uri,s.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],s=new W(void 0,[],void 0);for(let n=0;n<t;n++){const t=e.getParentIndex(n);let r;r=-1!==t?i[t]:s;const o=new W(new B(e.getStartLineNumber(n),e.getEndLineNumber(n)+1),[],r);r.children.push(o),i.push(o)}return s}}let J=class extends Z{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new U.hW(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=Y([q(1,D.JZ)],J);let ee=class extends Z{constructor(e,t,i){super(e),this._languageFeaturesService=i;const s=P.WR.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());s.length>0&&(this.provider=this._register(new F.M(e.getModel(),s,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){return this.provider?.compute(e)??null}};ee=Y([q(2,d.ILanguageFeaturesService)],ee);var te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ne=class extends h.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new O.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.Cm),this._updateSoon=this._register(new I.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.s)((()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;const e=this._editor;e.hasModel()&&(this._stickyModelProvider=new $(e,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new N.Qi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,s,n){if(0===t.children.length)return;let r=n;const o=[];for(let l=0;l<t.children.length;l++){const e=t.children[l];e.range&&o.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(o,e.startLineNumber,((e,t)=>e-t))),c=this.updateIndex((0,p.El)(o,e.startLineNumber+s,((e,t)=>e-t)));for(let l=a;l<=c;l++){const o=t.children[l];if(!o)return;if(o.range){const t=o.range.startLineNumber,n=o.range.endLineNumber;e.startLineNumber<=n+1&&t-1<=e.endLineNumber&&t!==r&&(r=t,i.push(new se(t,n-1,s+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s,n)}}getCandidateStickyLinesIntersecting(e){if(!this._model?.element)return[];let t=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,t,0,-1);const i=this._editor._getViewModel()?.getHiddenAreas();if(i)for(const s of i)t=t.filter((e=>!(e.startLineNumber>=s.startLineNumber&&e.endLineNumber<=s.endLineNumber+1)));return t}};ne=te([ie(1,d.ILanguageFeaturesService),ie(2,D.JZ)],ne);var re,oe=i(47508),ae=i(37927),ce=i(36677),le=i(80538),he=i(60952),de=i(32500),ue=i(47358),ge=i(52903),pe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},me=function(e,t){return function(i,s){t(i,s,e)}};let fe=class extends h.jG{static{re=this}static{this.ID="store.contrib.stickyScrollController"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=s,this._contextKeyService=o,this._sessionStore=new h.Cm,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new x(this._editor),this._stickyLineCandidateProvider=new ne(this._editor,i,n),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=y.Empty,this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=l.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=l.R.stickyScrollVisible.bindTo(this._contextKeyService);const c=this._register(u.w5(a));this._register(c.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(c.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(re.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(ce.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.Cm),t=this._register(new ae.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new ce.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},s=this._stickyScrollWidget.getDomNode();this._register(u.b2(s,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(s,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(u.ko(s,u.Bx.MOUSE_LEAVE,(e=>{void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,s])=>{const n=i(t);if(!n||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:o}=n;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===o.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const a=new N.Qi;let c;e.add((0,h.s)((()=>a.dispose(!0)))),(0,le.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.y(r.startLineNumber,r.startColumn+1),!1,a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=o;c!==i?(e.clear(),c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"})))):c||(c=i,c.style.textDecoration="underline",e.add((0,h.s)((()=>{c.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.P(e,t);this._contextMenuService.showContextMenu({menuId:o.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=t?.foldingIcon;if(!i)return;(0,ge.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const s=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(s),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(116);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=void 0,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){const t=this._editor.getModel();if(!t||t.isTooLargeForTokenization())return void this._resetState();const i=this._updateAndGetMinRebuildFromLine(e),s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===t.getVersionId())if(this._focused)if(-1===this._focusedStickyElementIndex)await this._updateState(i),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(await this._updateState(i),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else await this._updateState(i)}_updateAndGetMinRebuildFromLine(e){if(void 0!==e){const t=void 0!==this._minRebuildFromLine?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){this._minRebuildFromLine=void 0,this._foldingModel=await(P.WR.get(this._editor)?.getFoldingModel())??void 0,this._widgetState=this.findScrollWidgetState();const t=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(t),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=y.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),i=this._editor.getScrollTop();let s=0;const n=[],r=[],o=this._editor.getVisibleRanges();if(0!==o.length){const a=new B(o[0].startLineNumber,o[o.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const o of c){const a=o.startLineNumber,c=o.endLineNumber,l=o.nestingDepth;if(c-a>0){const o=(l-1)*e,h=l*e,d=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(c)-i,g=this._editor.getBottomForLineNumber(c)-i;if(o>u&&o<=g){n.push(a),r.push(c+1),s=g-h;break}if(h>d&&h<=g&&(n.push(a),r.push(c+1)),n.length===t)break}}}return this._endLineNumbers=r,new y(n,r,s,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe=re=pe([me(1,oe.Z),me(2,d.ILanguageFeaturesService),me(3,K._Y),me(4,D.JZ),me(5,de.ILanguageFeatureDebounceService),me(6,c.fN)],fe);class _e extends o.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,n.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,n.aS)("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:r.View,toggled:{condition:c.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,n.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:o.D8.CommandPalette},{id:o.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:o.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class Ce extends s.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,n.aS)("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:(0,n.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:c.M$.and(c.M$.has("config.editor.stickyScroll.enabled"),l.R.stickyScrollVisible),menu:[{id:o.D8.CommandPalette}]})}runEditorCommand(e,t){fe.get(t)?.focus()}}class Ee extends s.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,n.aS)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){fe.get(t)?.focusNext()}}class be extends s.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,n.aS)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){fe.get(t)?.focusPrevious()}}class Se extends s.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,n.aS)("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){fe.get(t)?.goToFocused()}}class ye extends s.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,n.aS)("selectEditor.title","Select Editor"),precondition:l.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){fe.get(t)?.selectEditor()}}(0,s.HW)(fe.ID,fe,1),(0,o.ug)(_e),(0,o.ug)(Ce),(0,o.ug)(be),(0,o.ug)(Ee),(0,o.ug)(Se),(0,o.ug)(ye)},57233:(e,t,i)=>{e.exports=function(e){const t=i(94297);function s(e){return"yql_tagged"+t.WHITESPACE+"tagged"+t.WHITESPACE+"tag_"+e}function n(e,i,s){return"url"===e?t.normalizeUrl(i,s):"data:"+t.escape(e)+";base64,"+t.escape(i)}function r(e){return function(i,r){return function(e,i,r={}){const{asHTML:o}=r;function a(e,t){return'<img class="'+s("image")+'" src="'+e+'"'+(t?'" style="'+t+'"':"")+"/>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function o(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r;function a(e,t){return'<video class="'+s("video")+'" controls src="'+e+'"'+(t?' style="'+t+'"':"")+"></video>"}return"tag_value"===e.$type?function(){const s=n(i,e.$value.src,r);if(!o)return s;const c={width:e.$value.width,height:e.$value.height,"max-width":e.$value.maxWidth,"max-height":e.$value.maxHeight},l=["width","height","max-width","max-height"].map((function(e){const t=c[e];return t?e+":"+(isNaN(t)?t:t+"px"):""})).filter(Boolean).join(";");return a(s,t.escape(l))}():function(){const t=n(i,e.$value,r);return o?a(t):t}()}(i,e,r)}}function a(e){return function(i,r){return function(e,i,r){const{asHTML:o}=r,a=s("audio"),c=n(i,e,r);return o?'<audio class="'+a+'" controls src="'+c+'"></audio>':t.escape(e)}(i.$value,e,r)}}const c={"image/svg":r("image/svg+xml"),"image/svg+xml":r("image/svg+xml"),"image/jpeg":r("image/jpeg"),"image/png":r("image/png"),"image/gif":r("image/gif"),"image/webp":r("image/webp"),imageurl:r("url"),"video/mp4":o("video/mp4"),"video/webm":o("video/webm"),videourl:o("url"),"audio/mpeg":a("audio/mpeg"),"audio/webm":a("audio/webm"),"audio/wav":a("audio/wav"),audiourl:a("url"),url:function(i,n,r){function o(e,i,n){return'<a class="'+s("url")+'" target="_blank" href="'+e+'"'+(n?' title="'+t.escape(n)+'"':"")+">"+i+"</a>"}if(n.asHTML){if("tag_value"===i.$type)return function(){const e=t.escape(i.$value.text||i.$value.href);return o(t.normalizeUrl(i.$value.href||"",n),e,i.$value.title)}();if("string"===typeof i.$value)return function(){const e=t.escape(i.$value);return o(t.normalizeUrl(i.$value,n),e,"")}()}return e(i,n,r)}};return function(t,i,s){return(c[t.$tag]||e)(t.$value,i,s)}}},57244:(e,t,i)=>{"use strict";var s=i(5662),n=i(91508),r=i(31450),o=i(7936),a=i(36677),c=i(60002),l=i(17469),h=i(23750),d=i(64395),u=i(78209),g=i(51467),p=i(82365),m=i(7085),f=i(93895),_=i(75326),v=i(27760);function C(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];const a=new v.no(e,r,t);for(s=Math.min(s,e.getLineCount());i<=s&&a.shouldIgnore(i);)i++;if(i>s-1)return[];const{tabSize:c,indentSize:l,insertSpaces:h}=e.getOptions(),d=(e,t)=>(t=t||1,o.Y.shiftIndent(e,e.length+t,c,l,h)),u=(e,t)=>(t=t||1,o.Y.unshiftIndent(e,e.length+t,c,l,h)),g=[],p=e.getLineContent(i);let C=n.UU(p),b=C;a.shouldIncrease(i)?(b=d(b),C=d(C)):a.shouldIndentNextLine(i)&&(b=d(b));for(let o=++i;o<=s;o++){if(E(e,o))continue;const t=e.getLineContent(o),i=n.UU(t),s=b;a.shouldDecrease(o,s)&&(b=u(b),C=u(C)),i!==b&&g.push(m.k.replaceMove(new _.L(o,1,o,i.length+1),(0,f.P)(b,l,h))),a.shouldIgnore(o)||(a.shouldIncrease(o,s)?(C=d(C),b=C):b=a.shouldIndentNextLine(o,s)?d(b):C)}return g}function E(e,t){if(!e.tokenization.isCheapToTokenize(t))return!1;return 2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var b=i(87469),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w extends r.ks{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:w.ID,label:u.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:c.R.writable,metadata:{description:u.aS("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new P(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}class R extends r.ks{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:R.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:c.R.writable,metadata:{description:u.aS("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new F(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}class L extends r.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),s=e.get(h.IModelService),n=t.getModel();if(!n)return;const r=s.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget),o=n.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize&&e===o.tabSize?u.kg("configuredTabSize","Configured Tab Size"):e===r.tabSize?u.kg("defaultTabSize","Default Tab Size"):e===o.tabSize?u.kg("currentTabSize","Current Tab Size"):void 0}))),c=Math.min(n.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[c]}).then((e=>{if(e&&n&&!n.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?n.updateOptions({tabSize:t}):n.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class T extends L{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:T.ID,label:u.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:u.aS("indentUsingTabsDescription","Use indentation with tabs.")}})}}class x extends L{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:x.ID,label:u.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:u.aS("indentUsingSpacesDescription","Use indentation with spaces.")}})}}class k extends L{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:k.ID,label:u.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:u.aS("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}class A extends r.ks{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:A.ID,label:u.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:u.aS("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(h.IModelService),s=t.getModel();if(!s)return;const n=i.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget);s.detectIndentation(n.insertSpaces,n.tabSize)}}class N extends r.ks{constructor(){super({id:"editor.action.reindentlines",label:u.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=C(s,i,1,s.getLineCount());n.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,n),t.pushUndoStop())}}class I extends r.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:c.R.writable,metadata:{description:u.aS("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(l.JZ),s=t.getModel();if(!s)return;const n=t.getSelections();if(null===n)return;const r=[];for(const o of n){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;const n=C(s,i,e,t);r.push(...n)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class O{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const s of this._edits)t.addEditOperation(a.Q.lift(s.range),s.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let D=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new s.Cm,this.callOnModel=new s.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(this.rangeContainsOnlyWhitespaceCharacters(i,e))return;if(function(e,t){const i=t=>2===(0,b.T)(e,t);return i(t.getStartPosition())||i(t.getEndPosition())}(i,e))return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const s=this.editor.getOption(12),{tabSize:r,indentSize:c,insertSpaces:l}=i.getOptions(),h=[],u={shiftIndent:e=>o.Y.shiftIndent(e,e.length+1,r,c,l),unshiftIndent:e=>o.Y.unshiftIndent(e,e.length+1,r,c,l)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(s,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=n.UU(m),s=d.c(e,r);if(s!==d.c(t,r)){const e=d.k(s,r,l);h.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substring(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},o=(0,p.$f)(s,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==o){const t=d.c(o,r),s=d.c(n.UU(i.getLineContent(g+1)),r);if(t!==s){const o=t-s;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),s=n.UU(e),c=d.c(s,r)+o,u=d.k(c,r,l);u!==s&&h.push({range:new a.Q(t,1,t,s.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new O(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){const i=e=>0===e.trim().length;let s=!0;if(t.startLineNumber===t.endLineNumber){s=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1))}else for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const r=e.getLineContent(n);if(n===t.startLineNumber){s=i(r.substring(t.startColumn-1))}else if(n===t.endLineNumber){s=i(r.substring(0,t.endColumn-1))}else s=0===e.getLineFirstNonWhitespaceColumn(n);if(!s)break}return s}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const s=e.tokenization.getLineTokens(t);if(s.getCount()>0){const e=s.findTokenIndexAtOffset(i);if(e>=0&&1===s.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let n="";for(let o=0;o<i;o++)n+=" ";const r=new RegExp(n,"gi");for(let o=1,c=e.getLineCount();o<=c;o++){let i=e.getLineFirstNonWhitespaceColumn(o);if(0===i&&(i=e.getLineMaxColumn(o)),1===i)continue;const c=new a.Q(o,1,o,i),l=e.getValueInRange(c),h=s?l.replace(/\t/gi,n):l.replace(r,"\t");t.addEditOperation(c,h)}}D=S([y(1,l.JZ)],D);class P{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class F{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,r.HW)(D.ID,D,2),(0,r.Fl)(w),(0,r.Fl)(R),(0,r.Fl)(T),(0,r.Fl)(x),(0,r.Fl)(k),(0,r.Fl)(A),(0,r.Fl)(N),(0,r.Fl)(I)},57286:(e,t,i)=>{"use strict";i.d(t,{eH:()=>O,fm:()=>U,xJ:()=>M});var s=i(8597),n=i(25890),r=i(18447),o=i(16980),a=i(5662),c=i(20492),l=i(87758),h=i(36677),d=i(10154),u=i(57039),g=i(78209),p=i(84001),m=i(49099),f=i(56942),_=i(62083),v=i(61394),C=i(10350),E=i(25689),b=i(64383),S=i(98031),y=i(52776),w=i(67220),R=i(90766),L=i(7142),T=i(50091),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};const A=s.$,N=(0,v.pU)("hover-increase-verbosity",C.W.add,g.kg("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),I=(0,v.pU)("hover-decrease-verbosity",C.W.remove,g.kg("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class O{constructor(e,t,i,s,n,r=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=s,this.ordinal=n,this.source=r}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class D{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){switch(e){case _.M$.Increase:return this.hover.canIncreaseVerbosity??!1;case _.M$.Decrease:return this.hover.canDecreaseVerbosity??!1}}}let M=class{constructor(e,t,i,s,n,r,o,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=s,this._languageFeaturesService=n,this._keybindingService=r,this._hoverService=o,this._commandService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new O(this,e.range,[(new o.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,r=i.getLineMaxColumn(s),a=[];let c=1e3;const l=i.getLineLength(s),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(118),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let m=!1;u>=0&&l>u&&e.range.startColumn>=u&&(m=!0,a.push(new O(this,e.range,[{value:g.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,c++))),!m&&"number"===typeof p&&l>=p&&a.push(new O(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,c++));let f=!1;for(const g of t){const t=g.range.startLineNumber===s?g.range.startColumn:1,i=g.range.endLineNumber===s?g.range.endColumn:r,l=g.options.hoverMessage;if(!l||(0,o.it)(l))continue;g.options.beforeContentClassName&&(f=!0);const d=new h.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new O(this,d,(0,n._j)(l),f,c++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return R.AE.EMPTY;const s=this._editor.getModel(),n=this._languageFeaturesService.hoverProvider;if(!n.has(s))return R.AE.EMPTY;return this._getMarkdownHovers(n,s,e,i)}_getMarkdownHovers(e,t,i,s){const n=i.range.getStartPosition();return(0,L.U)(e,t,n,s).filter((e=>!(0,o.it)(e.hover.contents))).map((e=>{const t=e.hover.range?h.Q.lift(e.hover.range):i.range,s=new D(e.hover,e.provider,n);return new O(this,t,e.hover.contents,!1,e.ordinal,s)}))}renderHoverParts(e,t){return this._renderedHoverParts=new F(t,e.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateMarkdownHoverVerbosityLevel(e,t,i){return Promise.resolve(this._renderedHoverParts?.updateMarkdownHoverPartVerbosityLevel(e,t,i))}};M=x([k(1,d.L),k(2,m.C),k(3,p.pG),k(4,f.ILanguageFeaturesService),k(5,S.b),k(6,w.TN),k(7,T.d)],M);class P{constructor(e,t,i){this.hoverPart=e,this.hoverElement=t,this.disposables=i}dispose(){this.disposables.dispose()}}class F{constructor(e,t,i,s,n,r,o,c,l,h,d){this._hoverParticipant=i,this._editor=s,this._languageService=n,this._openerService=r,this._commandService=o,this._keybindingService=c,this._hoverService=l,this._configurationService=h,this._onFinishedRendering=d,this._ongoingHoverOperations=new Map,this._disposables=new a.Cm,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add((0,a.s)((()=>{this.renderedHoverParts.forEach((e=>{e.dispose()})),this._ongoingHoverOperations.forEach((e=>{e.tokenSource.dispose(!0)}))})))}_renderHoverParts(e,t,i){return e.sort((0,n.VE)((e=>e.ordinal),n.U9)),e.map((e=>{const s=this._renderHoverPart(e,i);return t.appendChild(s.hoverElement),s}))}_renderHoverPart(e,t){const i=this._renderMarkdownHover(e,t),s=i.hoverElement,n=e.source,r=new a.Cm;if(r.add(i),!n)return new P(e,s,r);const o=n.supportsVerbosityAction(_.M$.Increase),c=n.supportsVerbosityAction(_.M$.Decrease);if(!o&&!c)return new P(e,s,r);const l=A("div.verbosity-actions");return s.prepend(l),r.add(this._renderHoverExpansionAction(l,_.M$.Increase,o)),r.add(this._renderHoverExpansionAction(l,_.M$.Decrease,c)),new P(e,s,r)}_renderMarkdownHover(e,t){return H(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,i){const n=new a.Cm,r=t===_.M$.Increase,o=s.BC(e,A(E.L.asCSSSelector(r?N:I)));o.tabIndex=0;const c=new w.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupManagedHover(c,o,function(e,t){switch(t){case _.M$.Increase:{const t=e.lookupKeybinding(l.jq);return t?g.kg("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):g.kg("increaseVerbosity","Increase Hover Verbosity")}case _.M$.Decrease:{const t=e.lookupKeybinding(l.Zp);return t?g.kg("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):g.kg("decreaseVerbosity","Decrease Hover Verbosity")}}}(this._keybindingService,t))),!i)return o.classList.add("disabled"),n;o.classList.add("enabled");const h=()=>this._commandService.executeCommand(t===_.M$.Increase?l.jq:l.Zp);return n.add(new y.vV(o,h)),n.add(new y.M4(o,h,[3,10])),n}async updateMarkdownHoverPartVerbosityLevel(e,t,i=!0){const s=this._editor.getModel();if(!s)return;const n=this._getRenderedHoverPartAtIndex(t),r=n?.hoverPart.source;if(!n||!r?.supportsVerbosityAction(e))return;const o=await this._fetchHover(r,s,e);if(!o)return;const a=new D(o,r.hoverProvider,r.hoverPosition),c=n.hoverPart,l=new O(this._hoverParticipant,c.range,o.contents,c.isBeforeContent,c.ordinal,a),h=this._renderHoverPart(l,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,h,l),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:l,hoverElement:h.hoverElement}}async _fetchHover(e,t,i){let s=i===_.M$.Increase?1:-1;const n=e.hoverProvider,o=this._ongoingHoverOperations.get(n);o&&(o.tokenSource.cancel(),s+=o.verbosityDelta);const a=new r.Qi;this._ongoingHoverOperations.set(n,{verbosityDelta:s,tokenSource:a});const c={verbosityRequest:{verbosityDelta:s,previousHover:e.hover}};let l;try{l=await Promise.resolve(n.provideHover(t,e.hoverPosition,a.token,c))}catch(h){(0,b.M_)(h)}return a.dispose(),this._ongoingHoverOperations.delete(n),l}_replaceRenderedHoverPartAtIndex(e,t,i){if(e>=this.renderedHoverParts.length||e<0)return;const s=this.renderedHoverParts[e],n=s.hoverElement,r=t.hoverElement,o=Array.from(r.children);n.replaceChildren(...o);const a=new P(i,n,t.disposables);n.focus(),s.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}function U(e,t,i,s,r){t.sort((0,n.VE)((e=>e.ordinal),n.U9));const o=[];for(const n of t)o.push(H(i,n,s,r,e.onContentsChanged));return new u.Ke(o)}function H(e,t,i,n,r){const l=new a.Cm,h=A("div.hover-row"),d=A("div.hover-row-contents");h.appendChild(d);const u=t.contents;for(const a of u){if((0,o.it)(a))continue;const t=A("div.markdown-hover"),h=s.BC(t,A("div.hover-contents")),u=l.add(new c.T({editor:e},i,n));l.add(u.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",r()})));const g=l.add(u.render(a));h.appendChild(g.element),d.appendChild(t)}return{hoverPart:t,hoverElement:h,dispose(){l.dispose()}}}},57377:(e,t,i)=>{"use strict";var s=i(31450),n=i(80301),r=i(23646),o=i(84001),a=i(32848),c=i(63591),l=i(58591),h=i(9711),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends r.X{constructor(e,t,i,s,n,r,o){super(!0,e,t,i,s,n,r,o)}};g=d([u(1,a.fN),u(2,n.T),u(3,l.Ot),u(4,c._Y),u(5,h.CS),u(6,o.pG)],g),(0,s.HW)(r.X.ID,g,4)},57439:(e,t,i)=>{"use strict";i.d(t,{u:()=>w});var s=i(59284),n=i(96873),r=i(98192);const o=(0,r.om)("definition-list");const a=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>a(e)));function l(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function h({copyText:e,content:t,copyPosition:i}){const r="inside"===i,a=null!==t&&void 0!==t?t:"\u2014";return e?s.createElement("div",{className:o("copy-container",{"icon-inside":r})},s.createElement("span",null,a),s.createElement(n.b,{size:"s",text:e,className:o("copy-button"),view:r?"raised":"flat-secondary"})):a}var d=i(98089);function u({label:e}){return s.createElement("div",{className:o("group-title")},s.createElement(d.E,{variant:"subheader-1",color:"complementary"},e))}var g=i(6170),p=i(72837);const m=JSON.parse('{"label_note":"Note"}'),f=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),_=(0,p.N)({en:m,ru:f},`${r.CU}definition-list`);var v=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function C({note:e}){if(!e)return null;const t=o("item-note-tooltip");if("string"===typeof e)return s.createElement(g.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":_("label_note")}});if("object"===typeof e){const{buttonProps:i}=e,n=v(e,["buttonProps"]);return s.createElement(g.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":_("label_note")},i)},n))}return null}function E({note:e,name:t,nameTitle:i,multilineName:n,direction:r}){const a=s.createElement(s.Fragment,null,"\xa0",s.createElement(C,{note:e}));return s.createElement(s.Fragment,null,s.createElement("div",{className:o("term-wrapper")},s.createElement("span",{title:l(i,t)},t),n&&a),!n&&a,"horizontal"===r&&s.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}var b=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function S({items:e,responsive:t,direction:i="horizontal",nameMaxWidth:n,contentMaxWidth:r="auto",className:a,itemClassName:c,copyPosition:d="outside",qa:u}){const g=n?{maxWidth:n,width:n}:{},p="number"===typeof r?{width:r,maxWidth:r}:{},m=s.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return s.createElement("div",{className:o({responsive:t,vertical:"vertical"===i},a),"data-qa":u},s.createElement("dl",{className:o("list")},m.map((e=>{const{name:t,key:n,content:r,contentTitle:a,nameTitle:u,copyText:m,note:f,multilineName:_}=e;return s.createElement("div",{key:n,className:o("item",c)},s.createElement("dt",{className:o("term-container",{multiline:_}),style:g},s.createElement(E,{direction:i,name:t,nameTitle:u,note:f,multilineName:_})),s.createElement("dd",{className:o("definition"),title:l(a,r),style:Object.assign(Object.assign({},p),{lineBreak:"string"===typeof r&&(v=20,function(e){return e.split(/\s+/).some((e=>e.length>v))})(r)?"anywhere":void 0})},s.createElement(h,{copyPosition:d,copyText:m,content:r})));var v}))))}function y(e){var{items:t,className:i,itemClassName:n}=e,r=b(e,["items","className","itemClassName"]);const a=s.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return s.createElement("div",{className:o({vertical:"vertical"===r.direction},i)},a.map((e=>{const{key:t,label:i}=e;return s.createElement(s.Fragment,{key:t},i&&s.createElement(u,{label:i}),e.items&&s.createElement(S,Object.assign({},r,{className:o({margin:!i}),items:e.items,itemClassName:o("item",{grouped:Boolean(i)},n)})))})))}function w(e){var{items:t}=e,i=b(e,["items"]);if(c(t))return s.createElement(S,Object.assign({},i,{items:t}));const n=function(e){const t=[];let i=[];for(const s of e)a(s)?(i.length&&(t.push({items:i,label:null}),i=[]),t.push(s)):i.push(s);return i.length&&(t.push({items:i,label:null}),i=[]),t}(t);return s.createElement(y,Object.assign({},i,{items:n}))}},57629:(e,t,i)=>{"use strict";i.d(t,{oq:()=>I,rr:()=>O,rN:()=>F,Ot:()=>A,$u:()=>k});var s=i(8597),n=i(72962),r=i(5646),o=i(89506),a=i(36921),c=i(83619),l=i(5662),h=i(98067),d=i(78209),u=i(27195),g=i(73983),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=i(9711),E=i(47612),b=i(25689),S=i(86723),y=i(631),w=i(66261),R=i(19070),L=i(253),T=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,s){t(i,s,e)}};function k(e,t,i,n){let r,o,a;if(Array.isArray(e))a=e,r=t,o=i;else{const s=t;a=e.getActions(s),r=i,o=n}const c=s.Di.getInstance();N(a,r,c.keyStatus.altKey||(h.uF||h.j9)&&c.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function A(e,t,i,s,n,r){let o,a,c,l,h;if(Array.isArray(e))h=e,o=t,a=i,c=s,l=n;else{const d=t;h=e.getActions(d),o=i,a=s,c=n,l=r}N(h,o,!1,"string"===typeof a?e=>e===a:a,c,l)}function N(e,t,i,s=e=>"navigation"===e,n=()=>!1,r=!1){let o,c;Array.isArray(t)?(o=t,c=t):(o=t.primary,c=t.secondary);const l=new Set;for(const[h,d]of e){let e;s(h)?(e=o,e.length>0&&r&&e.push(new a.wv)):(e=c,e.length>0&&e.push(new a.wv));for(let t of d){i&&(t=t instanceof u.Xe&&t.alt?t.alt:t);const s=e.push(t);t instanceof a.YH&&l.add({group:h,action:t,index:s-1})}}for(const{group:a,action:h,index:d}of l){const e=s(a)?o:c,t=h.actions;n(h,a,e.length)&&e.splice(d,1,...t)}}let I=class extends r.Z4{constructor(e,t,i,n,r,o,a,c){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:t?.draggable,keybinding:t?.keybinding,hoverDelegate:t?.hoverDelegate}),this._options=t,this._keybindingService=i,this._notificationService=n,this._contextKeyService=r,this._themeService=o,this._contextMenuService=a,this._accessibilityService=c,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new l.HE),this._altKey=s.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{const e=!!this._menuItemAction.alt?.enabled&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,s.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,s.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let s=t?(0,d.kg)("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt?.enabled){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,d.kg)("titleAndKb","{0} ({1})",e,i):e;s=(0,d.kg)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,c.Of.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&(0,g.N)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(n)if(b.L.isThemeIcon(n)){const e=b.L.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=(0,l.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(n.dark):(0,s.Tf)(n.light),i.classList.add("icon"),this._itemClassDispose.value=(0,l.qE)((0,l.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=T([x(2,_.b),x(3,v.Ot),x(4,p.fN),x(5,E.Gy),x(6,m.Z),x(7,L.j)],I);class O extends I{render(e){this.options.label=!0,this.options.icon=!1,super.render(e),e.classList.add("text-only"),e.classList.toggle("use-comma",this._options?.useComma??!1)}updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=O._symbolPrintEnter(e);this._options?.conversational?this.label.textContent=(0,d.kg)({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,t):this.label.textContent=(0,d.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,t)}}static _symbolPrintEnter(e){return e.getLabel()?.replace(/\benter\b/gi,"\u23ce").replace(/\bEscape\b/gi,"Esc")}}let D=class extends o.d{constructor(e,t,i,s,n){const r={...t,menuAsChild:t?.menuAsChild??!1,classNames:t?.classNames??(b.L.isThemeIcon(e.item.icon)?b.L.asClassName(e.item.icon):void 0),keybindingProvider:t?.keybindingProvider??(e=>i.lookupKeybinding(e.id))};super(e,{getActions:()=>e.actions},s,r),this._keybindingService=i,this._contextMenuService=s,this._themeService=n}render(e){super.render(e),(0,y.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!b.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(i.dark):(0,s.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};D=T([x(2,_.b),x(3,m.Z),x(4,E.Gy)],D);let M=class extends r.EH{constructor(e,t,i,s,n,r,c,l){let h;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=r,this._instaService=c,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const d=t?.persistLastActionId?l.get(this._storageKey,1):void 0;d&&(h=e.actions.find((e=>d===e.id))),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,h,{keybinding:this._getDefaultActionKeybindingLabel(h)});const g={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:t?.menuAsChild??!0,classNames:t?.classNames??["codicon","codicon-chevron-down"],actionRunner:t?.actionRunner??new a.LN};this._dropdown=new o.d(e,e.actions,this._contextMenuService,g),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.Xe&&this.update(e.action)})))}update(e){this._options?.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,s.Hs)(this._container,(0,s.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){let t;if(this._options?.renderKeybindingWithDefaultActionLabel){const i=this._keybindingService.lookupKeybinding(e.id);i&&(t=`(${i.getLabel()})`)}return t}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,s.$)(".action-container");this._defaultAction.render((0,s.BC)(this._container,t)),this._register((0,s.ko)(t,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,s.$)(".dropdown-action-container");this._dropdown.render((0,s.BC)(this._container,i)),this._register((0,s.ko)(i,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),this._defaultAction.element?.focus(),t.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};M=T([x(2,_.b),x(3,v.Ot),x(4,m.Z),x(5,u.ez),x(6,f._Y),x(7,C.CS)],M);let P=class extends r.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,R.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,w.GuP)(w.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function F(e,t,i){return t instanceof u.Xe?e.createInstance(I,t,i):t instanceof u.nI?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(M,t,{...i,persistLastActionId:!0}):e.createInstance(D,t,i):void 0}P=T([x(1,m.l)],P)},57664:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(51414).then(i.bind(i,51414))})},57680:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(2726).then(i.bind(i,2726))})},58145:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002);var r=i(5662),o=i(31308),a=i(7085),c=i(83069),l=i(36677),h=i(10154),d=i(16223),u=i(25521),g=i(73401),p=i(10691),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};const _="inline-edit";let v=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,o.FY)(this,!1),this.currentTextModel=(0,o.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,o.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;let s=this.model.range?.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const n=(!s||s.startLineNumber===s.endLineNumber)&&1===i.parts.length&&1===i.parts[0].lines.length,r=1===i.parts.length&&i.parts[0].lines.every((e=>0===e.length)),o=[],a=[];function c(e,t){if(a.length>0){const i=a[a.length-1];t&&i.decorations.push(new u.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)a.push({content:i,decorations:t?[new u.d(1,i.length+1,t,0)]:[]})}const l=t.getLineContent(i.lineNumber);let h,d=0;if(!r&&(n||!s)){for(const e of i.parts){let t=e.lines;s&&!n&&(c(t,_),t=[]),void 0===h?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):c([l.substring(d,e.column-1)],void 0),t.length>0&&(c(t,_),void 0===h&&e.column<=l.length&&(h=e.column)),d=e.column-1}void 0!==h&&c([l.substring(d)],void 0)}const p=void 0!==h?new g.GM(h,l.length+1):void 0,m=n||!s?i.lineNumber:s.endLineNumber-1;return{inlineTexts:o,additionalLines:a,hiddenRange:p,lineNumber:m,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t,range:s,isSingleLine:n,isPureRemove:r}})),this.decorations=(0,o.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(!t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let s=0;s<i;s++){const i=t.range.startLineNumber+s,n=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),r=t.targetTextModel.getLineLastNonWhitespaceColumn(i),o=new l.Q(i,n,i,r);e.push(o)}}for(const t of e)i.push({range:t,options:p.Zb})}if(t.range&&!t.isSingleLine&&t.isPureRemove){const e=new l.Q(t.range.startLineNumber,1,t.range.endLineNumber-1,1);i.push({range:e,options:p.Ob})}for(const s of t.inlineTexts)i.push({range:l.Q.fromPositions(new c.y(t.lineNumber,s.column)),options:{description:_,after:{content:s.text,inlineClassName:s.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:d.VW.Left},showIfCollapsed:!0}});return i})),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,g.pY)(this.editor,this.decorations))}};v=m([f(2,h.L)],v);var C,E=i(32848),b=i(63591),S=i(62083),y=i(56942),w=i(18447),R=i(92674),L=i(50091),T=i(8597),x=i(47625),k=i(36921),A=i(25890),N=i(98067),I=i(57629),O=i(65644),D=i(27195),M=i(47508),P=i(98031),F=i(90651),U=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},H=function(e,t){return function(i,s){t(i,s,e)}};let B=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,o.un)(this,(e=>{const t=this.model.read(e)?.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new c.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,o.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(W,this.editor,!0,this.position));e.addContentWidget(s),i.add((0,r.s)((()=>e.removeContentWidget(s))))})))}};B=U([H(2,b._Y)],B);let W=class extends r.jG{static{C=this}static{this._dropDownVisible=!1}static{this.id=0}constructor(e,t,i,s,n,r){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=n,this._menuService=r,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,T.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,T.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(D.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(s.createInstance(z,this.nodes.toolBar,this.editor,D.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof D.Xe)return s.createInstance(V,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,o.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,o.fm)((e=>{const t=[];for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof D.Xe&&t.push(e);t.length>0&&t.unshift(new k.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};W=C=U([H(3,b._Y),H(4,E.fN),H(5,D.ez)],W);class V extends I.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,T.h)("div.keybinding").root;this._register(new x.x(t,N.OS,{disableTitle:!0,...x.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let z=class extends O.p{constructor(e,t,i,s,n,r,o,a,c,l){super(e,{resetMenu:i,...s},n,r,o,a,c,l),this.editor=t,this.menuId=i,this.options2=s,this.menuService=n,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,I.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setAdditionalSecondaryActions(e){(0,A.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};z=U([H(4,D.ez),H(5,E.fN),H(6,M.Z),H(7,P.b),H(8,L.d),H(9,F.k)],z);var G,j,K=i(84001),Y=i(64383),q=i(87958),$=i(79400),Q=i(38844),X=i(29163),Z=i(94746),J=i(83941),ee=i(87289),te=i(23750),ie=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},se=function(e,t){return function(i,s){t(i,s,e)}};function ne(e){const t=e[0].match(/^\s*/)?.[0]??"",i=t.length;return{text:e.map((e=>e.replace(new RegExp("^"+t),""))),shift:i}}let re=class extends r.jG{static{G=this}static{this._modelId=0}static _createUniqueUri(){return $.r.from({scheme:"inline-edit-widget",path:(new Date).toString()+String(G._modelId++)})}constructor(e,t,i,s,n){super(),this._editor=e,this._model=t,this._instantiationService=i,this._diffProviderFactoryService=s,this._modelService=n,this._position=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t||0===t.text.length)return null;if(t.range.startLineNumber===t.range.endLineNumber&&(t.range.startColumn!==t.range.endColumn||1!==t.range.startColumn))return null;const i=this._editor.getModel();if(!i)return null;const s=Array.from(function*(e,t,i=1){void 0===t&&([t,e]=[e,0]);for(let s=e;s<t;s+=i)yield s}(t.range.startLineNumber,t.range.endLineNumber+1)),n=s.map((e=>i.getLineLastNonWhitespaceColumn(e))),r=Math.max(...n),o=s[n.indexOf(r)],a=new c.y(o,r);return{top:t.range.startLineNumber,left:a}})),this._text=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return{text:"",shift:0};const i=ne(t.text.split("\n"));return{text:i.text.join("\n"),shift:i.shift}})),this._originalModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._diff=(0,o.un)(this,(e=>this._diffPromise.read(e)?.promiseResult.read(e)?.data)),this._diffPromise=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return;const i=this._editor.getModel();if(!i)return;const s=ne(i.getValueInRange(t.range).split("\n")).text.join("\n"),n=ne(t.text.split("\n")).text.join("\n");this._originalModel.get().setValue(s),this._modifiedModel.get().setValue(n);const r=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return o.BK.fromFn((async()=>{const e=await r.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},w.XO.None);if(!e.identical)return e.changes}))})),this._register((0,o.yC)(((t,i)=>{if(!this._model.read(t))return;if(null===this._position.get())return;const s=i.add(this._instantiationService.createInstance(oe,this._editor,this._position,this._text.map((e=>e.text)),this._text.map((e=>e.shift)),this._diff));e.addOverlayWidget(s),i.add((0,r.s)((()=>e.removeOverlayWidget(s))))})))}};re=G=ie([se(2,b._Y),se(3,Z.Hg),se(4,te.IModelService)],re);let oe=class extends r.jG{static{j=this}static{this.id=0}constructor(e,t,i,s,n,r){super(),this._editor=e,this._position=t,this._text=i,this._shift=s,this._diff=n,this._instantiationService=r,this.id="InlineEditSideBySideContentWidget"+j.id++,this.allowEditorOverflow=!1,this._nodes=(0,T.$)("div.inlineEditSideBySide",void 0),this._scrollChanged=(0,o.yQ)("editor.onDidScrollChange",this._editor.onDidScrollChange),this._previewEditor=this._register(this._instantiationService.createInstance(X.t,this._nodes,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},readOnly:!0,wordWrap:"off",wordWrapOverride1:"off",wordWrapOverride2:"off",wrappingIndent:"none",wrappingStrategy:void 0},{contributions:[],isSimpleWidget:!0},this._editor)),this._previewEditorObs=(0,Q.Ud)(this._previewEditor),this._editorObs=(0,Q.Ud)(this._editor),this._previewTextModel=this._register(this._instantiationService.createInstance(ee.Bz,"",this._editor.getModel()?.getLanguageId()??J.vH,ee.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,o.un)((e=>{const t=this._text.read(e);t&&this._previewTextModel.setValue(t)})).recomputeInitiallyAndOnChange(this._store),this._decorations=(0,o.un)(this,(e=>{this._setText.read(e);const t=this._position.read(e);if(!t)return{org:[],mod:[]};const i=this._diff.read(e);if(!i)return{org:[],mod:[]};const s=[],n=[];if(1===i.length&&i[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return{org:[],mod:[]};const r=this._shift.get(),o=e=>new l.Q(e.startLineNumber+t.top-1,e.startColumn+r,e.endLineNumber+t.top-1,e.endColumn+r);for(const a of i)if(a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.Ob}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Kl}),a.modified.isEmpty||a.original.isEmpty)a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.KL}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Ou});else for(const e of a.innerChanges||[])a.original.contains(e.originalRange.startLineNumber)&&s.push({range:o(e.originalRange),options:e.originalRange.isEmpty()?p.wp:p.Zb}),a.modified.contains(e.modifiedRange.startLineNumber)&&n.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?p.GM:p.bk});return{org:s,mod:n}})),this._originalDecorations=(0,o.un)(this,(e=>this._decorations.read(e).org)),this._modifiedDecorations=(0,o.un)(this,(e=>this._decorations.read(e).mod)),this._previewEditor.setModel(this._previewTextModel),this._register(this._editorObs.setDecorations(this._originalDecorations)),this._register(this._previewEditorObs.setDecorations(this._modifiedDecorations)),this._register((0,o.fm)((e=>{const t=this._previewEditorObs.contentWidth.read(e),i=this._text.read(e).split("\n").length-1,s=this._editor.getOption(67)*i;t<=0||this._previewEditor.layout({height:s,width:t})}))),this._register((0,o.fm)((e=>{this._position.read(e),this._editor.layoutOverlayWidget(this)}))),this._register((0,o.fm)((e=>{this._scrollChanged.read(e);this._position.read(e)&&this._editor.layoutOverlayWidget(this)})))}getId(){return this.id}getDomNode(){return this._nodes}getPosition(){const e=this._position.get();if(!e)return null;const t=this._editor.getLayoutInfo(),i=this._editor.getScrolledVisiblePosition(new c.y(e.top,1));if(!i)return null;const s=i.top-1,n=this._editor.getOffsetForColumn(e.left.lineNumber,e.left.column);return{preference:{left:t.contentLeft+n+10,top:s}}}};oe=j=ie([se(5,b._Y)],oe);var ae,ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};let he=class extends r.jG{static{ae=this}static{this.ID="editor.contrib.inlineEditController"}static{this.inlineEditVisibleKey="inlineEditVisible"}static{this.inlineEditVisibleContext=new E.N1(this.inlineEditVisibleKey,!1)}static{this.cursorAtInlineEditKey="cursorAtInlineEdit"}static{this.cursorAtInlineEditContext=new E.N1(this.cursorAtInlineEditKey,!1)}static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,s,n,r,a,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=s,this._commandService=n,this._configurationService=r,this._diffProviderFactoryService=a,this._modelService=c,this._isVisibleContext=ae.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ae.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=(0,o.FY)(this,void 0),this._currentWidget=(0,q.a0)(this._currentEdit,(e=>{const t=this._currentEdit.read(e);if(!t)return;const i=t.range.endLineNumber,s=t.range.endColumn,n=!t.text.endsWith("\n")||t.range.startLineNumber===t.range.endLineNumber&&t.range.startColumn===t.range.endColumn?t.text:t.text.slice(0,-1),r=new R.xD(i,[new R.yP(s,n,!1)]),a=t.range.startLineNumber===t.range.endLineNumber&&1===r.parts.length&&1===r.parts[0].lines.length,c=""===t.text;if(!a&&!c)return;return this.instantiationService.createInstance(v,this.editor,{ghostText:(0,o.lk)(r),minReservedLineCount:(0,o.lk)(0),targetTextModel:(0,o.lk)(this.editor.getModel()??void 0),range:(0,o.lk)(t.range)})})),this._isAccepting=(0,o.FY)(this,!1),this._enabled=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily));const l=(0,o.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(l.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const h=(0,o.y0)(this,e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,o.fm)((e=>{if(!this._enabled.read(e))return;const t=h.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,o.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const s=e.getPosition();s&&this.checkCursorPosition(s)})));const d=(0,o.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,o.fm)((async t=>{this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(this._currentRequestCts?.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const u=(0,o.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(u.read(t),this.getInlineEdit(e,!0))})));const g=this._register((0,T.jh)());this._register((0,o.fm)((e=>{const t=this._fontFamily.read(e);g.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new B(this.editor,this._currentWidget,this.instantiationService)),this._register(new re(this.editor,this._currentEdit,this.instantiationService,this._diffProviderFactoryService,this._modelService))}checkCursorPosition(e){if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const t=this._currentEdit.get();t?this._isCursorAtInlineEditContext.set(l.Q.containsPosition(t.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const i=t.range.endLineNumber;if(t.range.endColumn!==(e.getModel()?.getLineLength(i)??0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const s=i.getVersionId(),n=this.languageFeaturesService.inlineEditProvider.all(i);if(0===n.length)return;const r=n[0];this._currentRequestCts=new w.Qi;const o=this._currentRequestCts.token,a=t?S.sm.Automatic:S.sm.Invoke;var c,l;if(t&&await(c=50,l=o,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),o.isCancellationRequested||i.isDisposed()||i.getVersionId()!==s)return;const h=await r.provideInlineEdit(i,{triggerKind:a},o);return h&&!o.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===s&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){this._isCursorAtInlineEditContext.set(!1),await this.clear();const i=await this.fetchInlineEdit(e,t);i&&this._currentEdit.set(i,void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){this._isAccepting.set(!0,void 0);const e=this._currentEdit.get();if(!e)return;let t=e.text;e.text.startsWith("\n")&&(t=e.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[a.k.replace(l.Q.lift(e.range),t)]),e.accepted&&await this._commandService.executeCommand(e.accepted.id,...e.accepted.arguments||[]).then(void 0,Y.M_),this.freeEdit(e),(0,o.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){this._jumpBackPosition=this.editor.getSelection()?.getStartPosition();const e=this._currentEdit.get();if(!e)return;const t=c.y.lift({lineNumber:e.range.startLineNumber,column:e.range.startColumn});this.editor.setPosition(t),this.editor.revealPositionInCenterIfOutsideViewport(t)}async clear(e=!0){const t=this._currentEdit.get();t&&t?.rejected&&e&&await this._commandService.executeCommand(t.rejected.id,...t.rejected.arguments||[]).then(void 0,Y.M_),t&&this.freeEdit(t),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}};he=ae=ce([le(1,b._Y),le(2,E.fN),le(3,y.ILanguageFeaturesService),le(4,L.d),le(5,K.pG),le(6,Z.Hg),le(7,te.IModelService)],he);class de extends s.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:E.M$.and(n.R.writable,he.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:E.M$.and(n.R.writable,he.inlineEditVisibleContext,he.cursorAtInlineEditContext)}],menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=he.get(t);await(i?.accept())}}class ue extends s.ks{constructor(){const e=E.M$.and(n.R.writable,E.M$.not(he.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=he.get(t);i?.trigger()}}class ge extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext,E.M$.not(he.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpToCurrent()}}class pe extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpBack()}}class me extends s.ks{constructor(){const e=E.M$.and(n.R.writable,he.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=he.get(t);await(i?.clear())}}(0,s.Fl)(de),(0,s.Fl)(me),(0,s.Fl)(ge),(0,s.Fl)(pe),(0,s.Fl)(ue),(0,s.HW)(he.ID,he,3)},58255:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let s=0;s<256;s++)i.push(s.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let s=0,n="";return n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n}}()},58272:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0",clipRule:"evenodd"}))},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>c,s0:()=>l});var s=i(91508),n=i(87469),r=i(62083),o=i(20788);const a={getInitialState:()=>o.r3,tokenizeEncoded:(e,t,i)=>(0,o.Lh)(0,i)};async function c(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const s=await r.dG.getOrCreate(i);return h(t,e.languageIdCodec,s||a)}function l(e,t,i,s,n,r,o){let a="<div>",c=s,l=0,h=!0;for(let d=0,u=t.getCount();d<u;d++){const u=t.getEndOffset(d);if(u<=s)continue;let g="";for(;c<u&&c<n;c++){const t=e.charCodeAt(c);switch(t){case 9:{let e=r-(c+l)%r;for(l+=e-1;e>0;)o&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:o&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(d,i)}">${g}</span>`,u>n||c>=n)break}return a+="</div>",a}function h(e,t,i){let r='<div class="monaco-tokenized-source">';const o=s.uz(e);let a=i.getInitialState();for(let c=0,l=o.length;c<l;c++){const e=o[c];c>0&&(r+="<br/>");const l=i.tokenizeEncoded(e,!0,a);n.f.convertToEndOffset(l.tokens,e.length);const h=new n.f(l.tokens,e,t).inflate();let d=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),n=h.getEndOffset(t);r+=`<span class="${i}">${s.ih(e.substring(d,n))}</span>`,d=n}a=l.endState}return r+="</div>",r}},58345:(e,t,i)=>{"use strict";i.d(t,{a:()=>s});class s{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},58466:(e,t,i)=>{"use strict";var s,n=i(87758),r=i(24939),o=i(31450),a=i(36677),c=i(60002),l=i(62427),h=i(77011),d=i(62083),u=i(78209);i(82320);!function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(s||(s={}));class g extends o.ks{constructor(){super({id:n.jA,label:u.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:u.aS("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[s.NoAutoFocus,s.FocusIfVisible,s.AutoFocusImmediately],enumDescriptions:[u.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),u.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),u.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:s.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,r.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=h.A.get(t);if(!n)return;const r=i?.focus;let o=s.FocusIfVisible;Object.values(s).includes(r)?o=r:"boolean"===typeof r&&r&&(o=s.AutoFocusImmediately);const c=e=>{const i=t.getPosition(),s=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==s.NoAutoFocus?n.focus():c(l):c(l||o===s.AutoFocusImmediately)}}class p extends o.ks{constructor(){super({id:n.dV,label:u.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:u.aS("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=h.A.get(t);if(!i)return;const s=t.getPosition();if(!s)return;const n=new a.Q(s.lineNumber,s.column,s.lineNumber,s.column),r=l.k.get(t);if(!r)return;r.startFindDefinitionFromCursor(s).then((()=>{i.showContentHover(n,1,1,!0)}))}}class m extends o.ks{constructor(){super({id:n.K6,label:u.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:16,weight:100},metadata:{description:u.aS("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollUp()}}class f extends o.ks{constructor(){super({id:n.Hp,label:u.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:18,weight:100},metadata:{description:u.aS("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollDown()}}class _ extends o.ks{constructor(){super({id:n.MB,label:u.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:15,weight:100},metadata:{description:u.aS("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollLeft()}}class v extends o.ks{constructor(){super({id:n.vf,label:u.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:17,weight:100},metadata:{description:u.aS("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollRight()}}class C extends o.ks{constructor(){super({id:n.ih,label:u.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:u.aS("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageUp()}}class E extends o.ks{constructor(){super({id:n.Hm,label:u.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:u.aS("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageDown()}}class b extends o.ks{constructor(){super({id:n.Xp,label:u.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:u.aS("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToTop()}}class S extends o.ks{constructor(){super({id:n.vx,label:u.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:c.R.hoverFocused,kbOpts:{kbExpr:c.R.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:u.aS("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToBottom()}}class y extends o.ks{constructor(){super({id:n.jq,label:n.iM,alias:"Increase Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();s.updateHoverVerbosityLevel(d.M$.Increase,n,i?.focus)}}class w extends o.ks{constructor(){super({id:n.Zp,label:n.G8,alias:"Decrease Hover Verbosity Level",precondition:c.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();h.A.get(t)?.updateHoverVerbosityLevel(d.M$.Decrease,n,i?.focus)}}var R=i(66261),L=i(47612),T=i(57039),x=i(57286),k=i(8597),A=i(25890),N=i(90766),I=i(64383),O=i(5662),D=i(89403),M=i(56942),P=i(37550),F=i(55130),U=i(71933),H=i(61407),B=i(65877),W=i(75147),V=i(49099),z=i(73823),G=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},j=function(e,t){return function(i,s){t(i,s,e)}};const K=k.$;class Y{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const q={type:1,filter:{include:H.gB.QuickFix},triggerAction:H.fo.QuickFixHover};let $=class{constructor(e,t,i,s){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=s,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,n=i.getLineMaxColumn(s),r=[];for(const o of t){const t=o.range.startLineNumber===s?o.range.startColumn:1,c=o.range.endLineNumber===s?o.range.endColumn:n,l=this._markerDecorationsService.getMarker(i.uri,o);if(!l)continue;const h=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,c);r.push(new Y(this,h,l))}return r}renderHoverParts(e,t){if(!t.length)return new T.Ke([]);const i=new O.Cm,s=[];t.forEach((t=>{const i=this._renderMarkerHover(t);e.fragment.appendChild(i.hoverElement),s.push(i)}));const n=1===t.length?t[0]:t.sort(((e,t)=>W.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),new T.Ke(s)}_renderMarkerHover(e){const t=new O.Cm,i=K("div.hover-row"),s=k.BC(i,K("div.marker.hover-contents")),{source:n,message:r,code:o,relatedInformation:a}=e.marker;this._editor.applyFontInfo(s);const c=k.BC(s,K("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,n||o)if(o&&"string"!==typeof o){const e=K("span");if(n){k.BC(e,K("span")).innerText=n}const i=k.BC(e,K("a.code-link"));i.setAttribute("href",o.target.toString()),t.add(k.ko(i,"click",(e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));k.BC(i,K("span")).innerText=o.value;const r=k.BC(s,e);r.style.opacity="0.6",r.style.paddingLeft="6px"}else{const e=k.BC(s,K("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=n&&o?`${n}(${o})`:n||`(${o})`}if((0,A.EI)(a))for(const{message:l,resource:h,startLineNumber:d,startColumn:u}of a){const e=k.BC(s,K("div"));e.style.marginTop="8px";const i=k.BC(e,K("a"));i.innerText=`${(0,D.P8)(h)}(${d}, ${u}): `,i.style.cursor="pointer",t.add(k.ko(i,"click",(e=>{if(e.stopPropagation(),e.preventDefault(),this._openerService){const e={selection:{startLineNumber:d,startColumn:u}};this._openerService.open(h,{fromUserGesture:!0,editorOptions:e}).catch(I.dz)}})));const n=k.BC(e,K("span"));n.innerText=l,this._editor.applyFontInfo(n)}return{hoverPart:e,hoverElement:i,dispose:()=>t.dispose()}}renderMarkerStatusbar(e,t,i){if(t.marker.severity===W.cj.Error||t.marker.severity===W.cj.Warning||t.marker.severity===W.cj.Info){const i=B.j.get(this._editor);i&&e.statusBar.addAction({label:u.kg("view problem","View Problem"),commandId:B.i.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const s=e.statusBar.append(K("div"));this.recentMarkerCodeActionsInfo&&(W.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===W.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(s.textContent=u.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const n=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?O.jG.None:(0,N.EQ)((()=>s.textContent=u.kg("checkingForQuickFixes","Checking for quick fixes...")),200,i);s.textContent||(s.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,O.s)((()=>r.cancel()))),r.then((r=>{if(n.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(s.textContent=u.kg("noQuickFixes","No quick fixes available"));s.style.display="none";let o=!1;i.add((0,O.s)((()=>{o||r.dispose()}))),e.statusBar.addAction({label:u.kg("quick fixes","Quick Fix..."),commandId:F.pQ,run:t=>{o=!0;const i=U.C.get(this._editor),s=k.BK(t);e.hide(),i?.showCodeActions(q,r,{x:s.left,y:s.top,width:s.width,height:s.height})}})}),I.dz)}}getCodeActions(e){return(0,N.SS)((t=>(0,F.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new a.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),q,z.ke.None,t)))}};$=G([j(1,P.IMarkerDecorationsService),j(2,V.C),j(3,M.ILanguageFeaturesService)],$);var Q=i(63591),X=i(51219),Z=i(20492),J=i(10154),ee=i(12143),te=i(52776),ie=i(16980),se=i(16223);class ne{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=se.ZS.Center}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[],s="lineNo"===this._laneOrLine;if(!t)return i;for(const n of t){const t=n.options.glyphMargin?.position??se.ZS.Center;if(!s&&t!==this._laneOrLine)continue;const r=s?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;r&&!(0,ie.it)(r)&&i.push(...(0,A._j)(r).map(e))}return i}}var re,oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const ce=k.$;let le=class extends O.jG{static{re=this}static{this.ID="editor.contrib.modesGlyphHoverWidget"}constructor(e,t,i){super(),this._renderDisposeables=this._register(new O.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new te.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Z.T({editor:this._editor},t,i)),this._computer=new ne(this._editor),this._hoverOperation=this._register(new ee.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._register(k.b2(this._hover.containerDomNode,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return re.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const s of t){const e=ce("div.hover-row.markdown-hover"),t=k.BC(e,ce("div.hover-contents")),n=this._renderDisposeables.add(this._markdownRenderer.render(s.value));t.appendChild(n.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),s=this._editor.getScrollTop(),n=this._editor.getOption(67),r=i-s-(this._hover.containerDomNode.clientHeight-n)/2,o=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${o}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(r),0)}px`}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,X.U)(t,e.x,e.y))&&this.hide()}};le=re=oe([ae(1,J.L),ae(2,V.C)],le);var he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends O.jG{static{this.ID="editor.contrib.marginHover"}constructor(e,t){super(),this._editor=e,this._instantiationService=t,this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new O.Cm,this._hoverState={mouseDown:!1},this._reactToEditorMouseMoveRunner=this._register(new N.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_isMouseOnMarginHoverWidget(e){const t=this._glyphWidget?.getDomNode();return!!t&&(0,X.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=this._isMouseOnMarginHoverWidget(e);return t&&i}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._mouseMoveEvent=e;this._shouldNotRecomputeCurrentHoverWidget(e)?this._reactToEditorMouseMoveRunner.cancel():this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateGlyphWidget().showsOrWillShow(e)}_onKeyDown(e){this._editor.hasModel()&&5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){this._glyphWidget?.hide()}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(le,this._editor)),this._glyphWidget}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._glyphWidget?.dispose()}};ue=he([de(1,Q._Y)],ue);var ge=i(96282);(0,o.HW)(h.A.ID,h.A,2),(0,o.HW)(ue.ID,ue,2),(0,o.Fl)(g),(0,o.Fl)(p),(0,o.Fl)(m),(0,o.Fl)(f),(0,o.Fl)(_),(0,o.Fl)(v),(0,o.Fl)(C),(0,o.Fl)(E),(0,o.Fl)(b),(0,o.Fl)(S),(0,o.Fl)(y),(0,o.Fl)(w),T.B2.register(x.xJ),T.B2.register($),(0,L.zy)(((e,t)=>{const i=e.getColor(R.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})),ge.Z.register(new class{}),ge.Z.register(new class{}),ge.Z.register(new class{})},58568:(e,t,i)=>{"use strict";var s=i(18447),n=i(631),r=i(79400),o=i(18938),a=i(29999);i(50091).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,n.j)(r.r.isUri(i));const c=e.get(a.gW),l=e.get(o.ITextModelService),h=await l.createModelReference(i);try{return(await c.getOrCreate(h.object.textEditorModel,s.XO.None)).getTopLevelSymbols()}finally{h.dispose()}}))},58590:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002),r=i(36677),o=i(75326);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,n=this._selection.endColumn;if((!this._isMovingLeft||1!==s)&&(this._isMovingLeft||n!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new r.Q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,n,i,n),a)}else{const o=new r.Q(i,n,i,n+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new o.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new o.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var c=i(78209);class l extends s.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const n of s)i.push(new a(n,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,s.Fl)(class extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:c.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,s.Fl)(class extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:c.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},58591:(e,t,i)=>{"use strict";i.d(t,{AI:()=>r,Kz:()=>a,Ot:()=>o});var s=i(42291),n=i(63591),r=s.A;const o=(0,n.u1)("notificationService");class a{}},58694:(e,t,i)=>{"use strict";function s(e,t,i){let s=null,n=null;if("function"===typeof i.value?(s="value",n=i.value,0!==n.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(s="get",n=i.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;i[s]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,e)}),this[r]}}i.d(t,{B:()=>s})},58820:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(4818).then(i.bind(i,4818))})},58925:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});class s{static{this.Undefined=new s(void 0)}constructor(e){this.element=e,this.next=s.Undefined,this.prev=s.Undefined}}class n{constructor(){this._first=s.Undefined,this._last=s.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===s.Undefined}clear(){let e=this._first;for(;e!==s.Undefined;){const t=e.next;e.prev=s.Undefined,e.next=s.Undefined,e=t}this._first=s.Undefined,this._last=s.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new s(e);if(this._first===s.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==s.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==s.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==s.Undefined&&e.next!==s.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===s.Undefined&&e.next===s.Undefined?(this._first=s.Undefined,this._last=s.Undefined):e.next===s.Undefined?(this._last=this._last.prev,this._last.next=s.Undefined):e.prev===s.Undefined&&(this._first=this._first.next,this._first.prev=s.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==s.Undefined;)yield e.element,e=e.next}}},59136:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 011.06 0L8 9.44l3.97-3.97a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 010-1.06",clipRule:"evenodd"})))}},59170:function(e,t,i){var s;e=i.nmd(e),function(){var n=t,r=(e&&e.exports,"object"==typeof i.g&&i.g);r.global!==r&&r.window;var o,a,c,l,h=String.fromCharCode;function d(e){for(var t,i,s=[],n=0,r=e.length;n<r;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r?56320==(64512&(i=e.charCodeAt(n++)))?s.push(((1023&t)<<10)+(1023&i)+65536):(s.push(t),n--):s.push(t);return s}function u(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function g(e,t){return h(e>>t&63|128)}function p(e){if(0==(4294967168&e))return h(e);var t="";return 0==(4294965248&e)?t=h(e>>6&31|192):0==(4294901760&e)?(u(e),t=h(e>>12&15|224),t+=g(e,6)):0==(4292870144&e)&&(t=h(e>>18&7|240),t+=g(e,12),t+=g(e,6)),t+=h(63&e|128)}function m(){if(c>=a){if(l)return!1;throw Error("Invalid byte index")}var e=255&o[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,t,i,s,n;if(c>a)throw Error("Invalid byte index");if(c==a)return!1;if(e=255&o[c],c++,0==(128&e))return e;if(192==(224&e)){if(!1===(t=m()))return!1;if((n=(31&e)<<6|t)>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=m(),!1===(i=m()))return!1;if((n=(15&e)<<12|t<<6|i)>=2048)return u(n),n;throw Error("Invalid continuation byte")}if(240==(248&e)){if(t=m(),i=m(),!1===(s=m()))return!1;if((n=(7&e)<<18|t<<12|i<<6|s)>=65536&&n<=1114111)return n}throw Error("Invalid UTF-8 detected")}var _={version:"2.1.2",encode:function(e){for(var t=d(e),i=t.length,s=-1,n="";++s<i;)n+=p(t[s]);return n},decode:function(e,t){l="undefined"!=typeof t&&t.allowTruncatedEnd,o=d(e),a=o.length,c=0;for(var i,s=[];!1!==(i=f());)s.push(i);return function(e){for(var t,i=e.length,s=-1,n="";++s<i;)(t=e[s])>65535&&(n+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+=h(t);return n}(s)}};void 0===(s=function(){return _}.call(t,i,t,e))||(e.exports=s)}()},59261:(e,t,i)=>{"use strict";i.d(t,{f:()=>h});var s=i(42539),n=i(98067),r=i(50091),o=i(46359),a=i(5662),c=i(58925);class l{constructor(){this._coreKeybindings=new c.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===n.OS){if(e&&e.win)return e.win}else if(2===n.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=l.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const r=(0,s.Zv)(t.primary,n.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){const o=t.secondary[r],a=(0,s.Zv)(o,n.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,s,n,r){const o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:s,weight2:n,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)((()=>{o(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(d)),this._cachedMergedKeybindings.slice(0)}}const h=new l;function d(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}o.O.add("platform.keybindingsRegistry",h)},59473:(e,t,i)=>{"use strict";i.d(t,{D_:()=>_,Dc:()=>S});var s=i(90766),n=i(64383),r=i(41234),o=i(5662),a=i(89403),c=i(87908),l=i(83069),h=i(75326),d=i(32848),u=i(73823),g=i(61407),p=i(55130),m=i(8995),f=i(78381);const _=new d.N1("supportedCodeAction",""),v="_typescript.applyFixAllCodeAction";class C extends o.jG{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new s.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==c.jT.Off){if(i===c.jT.On)return t;if(i===c.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:s}=t.getPosition(),n=e.getLineContent(i);if(0===n.length)return;if(1===s){if(/\s/.test(n[0]))return}else if(s===e.getLineMaxColumn(i)){if(/\s/.test(n[n.length-1]))return}else if(/\s/.test(n[s-2])&&/\s/.test(n[s-1]))return}return t}}}var E;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,n.MB)(e))return b;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(E||(E={}));const b=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class S extends o.jG{constructor(e,t,i,s,n,a,c){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=n,this._configurationService=a,this._telemetryService=c,this._codeActionOracle=this._register(new o.HE),this._state=E.Empty,this._onDidChangeState=this._register(new r.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=_.bindTo(s),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(E.Empty,!0))}_settingEnabledNearbyQuickfixes(){const e=this._editor?.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:e?.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(E.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap((e=>e.providedCodeActionKinds??[]));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new C(this._editor,this._markerService,(t=>{if(!t)return void this.setState(E.Empty);const i=t.selection.getStartPosition(),n=(0,s.SS)((async i=>{if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||t.trigger.filter?.include?.contains(g.gB.QuickFix))){const s=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),n=[...s.allActions];if(i.isCancellationRequested)return b;const r=s.validActions?.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),o=this._markerService.read({resource:e.uri});if(r){for(const e of s.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);return{validActions:s.validActions,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}if(!r&&o.length>0){const r=t.selection.getPosition();let a=r,c=Number.MAX_VALUE;const d=[...s.validActions];for(const f of o){const m=f.endColumn,_=f.endLineNumber,C=f.startLineNumber;if(_===r.lineNumber||C===r.lineNumber){a=new l.y(_,m);const f={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:t.trigger.filter?.include?t.trigger.filter?.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:t.trigger.context?.notAvailableMessage||"",position:a}},C=new h.L(a.lineNumber,a.column,a.lineNumber,a.column),E=await(0,p.dU)(this._registry,e,C,f,u.ke.None,i);if(0!==E.validActions.length){for(const e of E.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);0===s.allActions.length&&n.push(...E.allActions),Math.abs(r.column-m)<c?d.unshift(...E.validActions):d.push(...E.validActions)}c=Math.abs(r.column-m)}}const m=d.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return m.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:m,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}}if(1===t.trigger.type){const s=new f.W,n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i);return this._telemetryService&&this._telemetryService.publicLog2("codeAction.invokedDurations",{codeActions:n.validActions.length,duration:s.elapsed()}),n}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&this._progressService?.showWhile(n,250);const r=new E.Triggered(t.trigger,i,n);let o=!1;1===this._state.type&&(o=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),o?setTimeout((()=>{this.setState(r)}),500):this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},59520:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(23702).then(i.bind(i,23702))})},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},59731:(e,t,i)=>{"use strict";var s=i(16980),n=i(5662),r=i(31450),o=i(99645),a=i(78209);class c extends n.jG{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=o.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||(t=this.editor.isSimpleWidget?new s.Bc(a.kg("editor.simple.readonly","Cannot edit in read-only input")):new s.Bc(a.kg("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}(0,r.HW)(c.ID,c,2)},59896:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(20654).then(i.bind(i,20654))})},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>o,iD:()=>c});var s=i(98067);let n;const r=globalThis.vscode;if("undefined"!==typeof r&&"undefined"!==typeof r.process){const e=r.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return s.uF?"win32":s.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=n.cwd,a=n.env,c=n.platform},60002:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var s,n=i(78209),r=i(32848);!function(e){e.editorSimpleInput=new r.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new r.N1("editorTextFocus",!1,n.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new r.N1("editorFocus",!1,n.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new r.N1("textInputFocus",!1,n.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new r.N1("editorReadonly",!1,n.kg("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new r.N1("inDiffEditor",!1,n.kg("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new r.N1("isEmbeddedDiffEditor",!1,n.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new r.N1("inMultiDiffEditor",!1,n.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new r.N1("multiDiffEditorAllCollapsed",void 0,n.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new r.N1("diffEditorHasChanges",!1,n.kg("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new r.N1("comparingMovedCode",!1,n.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new r.N1("accessibleDiffViewerVisible",!1,n.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new r.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,n.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new r.N1("diffEditorInlineMode",!1,n.kg("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new r.N1("diffEditorOriginalWritable",!1,n.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new r.N1("diffEditorModifiedWritable",!1,n.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new r.N1("diffEditorOriginalUri","",n.kg("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new r.N1("diffEditorModifiedUri","",n.kg("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new r.N1("editorColumnSelection",!1,n.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r.N1("editorHasSelection",!1,n.kg("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r.N1("editorHasMultipleSelections",!1,n.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r.N1("editorTabMovesFocus",!1,n.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new r.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new r.N1("canUndo",!1,!0),e.canRedo=new r.N1("canRedo",!1,!0),e.hoverVisible=new r.N1("editorHoverVisible",!1,n.kg("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new r.N1("editorHoverFocused",!1,n.kg("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new r.N1("stickyScrollFocused",!1,n.kg("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new r.N1("stickyScrollVisible",!1,n.kg("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new r.N1("standaloneColorPickerVisible",!1,n.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new r.N1("standaloneColorPickerFocused",!1,n.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new r.N1("inCompositeEditor",void 0,n.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new r.N1("editorLangId","",n.kg("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new r.N1("editorHasCompletionItemProvider",!1,n.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new r.N1("editorHasCodeActionsProvider",!1,n.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new r.N1("editorHasCodeLensProvider",!1,n.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new r.N1("editorHasDefinitionProvider",!1,n.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new r.N1("editorHasDeclarationProvider",!1,n.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new r.N1("editorHasImplementationProvider",!1,n.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new r.N1("editorHasTypeDefinitionProvider",!1,n.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new r.N1("editorHasHoverProvider",!1,n.kg("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new r.N1("editorHasDocumentHighlightProvider",!1,n.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new r.N1("editorHasDocumentSymbolProvider",!1,n.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new r.N1("editorHasReferenceProvider",!1,n.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new r.N1("editorHasRenameProvider",!1,n.kg("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new r.N1("editorHasSignatureHelpProvider",!1,n.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new r.N1("editorHasInlayHintsProvider",!1,n.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new r.N1("editorHasDocumentFormattingProvider",!1,n.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new r.N1("editorHasDocumentSelectionFormattingProvider",!1,n.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new r.N1("editorHasMultipleDocumentFormattingProvider",!1,n.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new r.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,n.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(s||(s={}))},60352:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(24534).then(i.bind(i,24534))})},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,H8:()=>h,Qu:()=>m,Tc:()=>l,c8:()=>u,gm:()=>c,m0:()=>g,nr:()=>d,pR:()=>o});var s=i(25893);class n{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new n}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}function r(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function o(e){return n.INSTANCE.getZoomFactor(e)}const a=navigator.userAgent,c=a.indexOf("Firefox")>=0,l=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,d=!h&&a.indexOf("Safari")>=0,u=!h&&!d&&l,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof s.G.matchMedia){const e=s.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=s.G.matchMedia("(display-mode: fullscreen)");p=e.matches,r(s.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},60534:(e,t,i)=>{"use strict";i.d(t,{V:()=>n,y:()=>r});var s=i(85152);class n{constructor(e){const t=(0,s.W)(e);this._defaultValue=t,this._asciiMap=n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,s.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class r{constructor(){this._actual=new n(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},60858:(e,t,i)=>{"use strict";i.d(t,{$:()=>v,D:()=>w});var s,n,r=i(90766),o=i(41234),a=i(5662),c=i(27195),l=i(50091),h=i(32848),d=i(36921),u=i(9711),g=i(25890),p=i(78209),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new C(i)}createMenu(e,t,i){return new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}getMenuActions(e,t,i){const s=new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t),n=s.getActions(i);return s.dispose(),n}resetHiddenStates(e){this._hiddenStates.reset(e)}};v=f([_(0,l.d),_(1,m.b),_(2,u.CS)],v);let C=class{static{s=this}static{this._key="menu.hiddenCommands"}constructor(e){this._storageService=e,this._disposables=new a.Cm,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,s._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){return this._hiddenByDefaultCache.get(`${e.id}/${t}`)??!1}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){const i=this._isHiddenByDefault(e,t),s=this._data[e.id]?.includes(t)??!1;return i?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const s=this._data[e.id];if(i)if(s){s.indexOf(t)<0&&s.push(t)}else this._data[e.id]=[t];else if(s){const i=s.indexOf(t);i>=0&&(0,g.UH)(s,i),0===s.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(s._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};C=s=f([_(0,u.CS)],C);class E{constructor(e,t){this._id=e,this._collectContextKeysForSubmenus=t,this._menuGroups=[],this._allMenuIds=new Set,this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get allMenuIds(){return this._allMenuIds}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._allMenuIds.clear(),this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=this._sort(c.ZG.getMenuItems(this._id));let t;for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeysAndSubmenuIds(i)}this._allMenuIds.add(this._id)}_sort(e){return e}_collectContextKeysAndSubmenuIds(e){if(E._fillInKbExprKeys(e.when,this._structureContextKeys),(0,c.is)(e)){if(e.command.precondition&&E._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;E._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(c.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeysAndSubmenuIds,this),this._allMenuIds.add(e.submenu))}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}}let b=n=class extends E{constructor(e,t,i,s,n,r){super(e,i),this._hiddenStates=t,this._commandService=s,this._keybindingService=n,this._contextKeyService=r,this.refresh()}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[s,r]=i;let o;for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,c.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const s=y(this._id,i?t.command:t,this._hiddenStates);if(i){const i=w(this._commandService,this._keybindingService,t.command.id,t.when);(o??=[]).push(new c.Xe(t.command,t.alt,e,s,i,this._contextKeyService,this._commandService))}else{const i=new n(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),r=d.wv.join(...i.map((e=>e[1])));r.length>0&&(o??=[]).push(new c.nI(t,s,r))}}o&&o.length>0&&t.push([s,o])}return t}_sort(e){return e.sort(n._compareMenuItems)}static _compareMenuItems(e,t){const i=e.group,s=t.group;if(i!==s){if(!i)return 1;if(!s)return-1;if("navigation"===i)return-1;if("navigation"===s)return 1;const e=i.localeCompare(s);if(0!==e)return e}const r=e.order||0,o=t.order||0;return r<o?-1:r>o?1:n._compareTitles((0,c.is)(e)?e.command.title:e.title,(0,c.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,s="string"===typeof t?t:t.original;return i.localeCompare(s)}};b=n=f([_(3,l.d),_(4,m.b),_(5,h.fN)],b);let S=class{constructor(e,t,i,s,n,l){this._disposables=new a.Cm,this._menuInfo=new b(e,t,i.emitEventsForSubmenuChanges,s,n,l);const h=new r.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(h),this._disposables.add(c.ZG.onDidChangeMenu((e=>{for(const t of this._menuInfo.allMenuIds)if(e.has(t)){h.schedule();break}})));const d=this._disposables.add(new a.Cm);this._onDidChange=new o.uI({onWillAddFirstListener:()=>{d.add(l.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),s=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||s)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s})}))),d.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:d.clear.bind(d),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,s=!1;for(const n of e)if(t=t||n.isStructuralChange,i=i||n.isEnablementChange,s=s||n.isToggleChange,t&&i&&s)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function y(e,t,i){const s=(0,c.i1)(t)?t.submenu.id:t.id,n="string"===typeof t.title?t.title:t.title.value,r=(0,d.ih)({id:`hide/${e.id}/${s}`,label:(0,p.kg)("hide.label","Hide '{0}'",n),run(){i.updateHidden(e,s,!0)}}),o=(0,d.ih)({id:`toggle/${e.id}/${s}`,label:n,get checked(){return!i.isHidden(e,s)},run(){i.updateHidden(e,s,!!this.checked)}});return{hide:r,toggle:o,get isHidden(){return!o.checked}}}function w(e,t,i,s=void 0,n=!0){return(0,d.ih)({id:`configureKeybinding/${i}`,label:(0,p.kg)("configure keybinding","Configure Keybinding"),enabled:n,run(){const n=!!!t.lookupKeybinding(i)&&s?s.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(n?` +when:${n}`:""))}})}S=f([_(3,l.d),_(4,m.b),_(5,h.fN)],S)},60952:(e,t,i)=>{"use strict";i.d(t,{U:()=>v,h:()=>_});var s=i(8597),n=i(36921),r=i(18447),o=i(58255),a=i(36677),c=i(18938),l=i(99312),h=i(84226),d=i(27195),u=i(50091),g=i(32848),p=i(47508),m=i(63591),f=i(58591);async function _(e,t,i,h){const g=e.get(c.ITextModelService),_=e.get(p.Z),v=e.get(u.d),C=e.get(m._Y),E=e.get(f.Ot);if(await h.item.resolve(r.XO.None),!h.part.location)return;const b=h.part.location,S=[],y=new Set(d.ZG.getMenuItems(d.D8.EditorContext).map((e=>(0,d.is)(e)?e.command.id:(0,o.b)())));for(const s of l.bn.all())y.has(s.desc.id)&&S.push(new n.rc(s.desc.id,d.Xe.label(s.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await g.createModelReference(b.uri);try{const i=new l.QS(e.object.textEditorModel,a.Q.getStartPosition(b.range)),n=h.item.anchor.range;await C.invokeFunction(s.runEditorCommand.bind(s),t,i,n)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new n.wv),S.push(new n.rc(e.id,e.title,void 0,!0,(async()=>{try{await v.executeCommand(e.id,...e.arguments??[])}catch(t){E.notify({severity:f.AI.Error,source:h.item.provider.displayName,message:t})}})))}const w=t.getOption(128);_.showContextMenu({domForShadowRoot:w?t.getDomNode()??void 0:void 0,getAnchor:()=>{const e=s.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,s){const n=e.get(c.ITextModelService),r=await n.createModelReference(s.uri);await i.invokeWithinContext((async e=>{const n=t.hasSideBySideModifier,o=e.get(g.fN),c=h.x2.inPeekEditor.getValue(o),d=!n&&i.getOption(89)&&!c;return new l.mR({openToSide:n,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new l.QS(r.object.textEditorModel,a.Q.getStartPosition(s.range)),a.Q.lift(s.range))})),r.dispose()}},61059:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});const s={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,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}},61082:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(65252).then(i.bind(i,65252))})},61199:(e,t,i)=>{var s=i(16320),n=i(59698);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},61283:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var s=i(59284),n=i(13260),r=i.n(n),o="undefined"!==typeof window?window:null,a=null===o,c=a?void 0:o.document,l="addEventListener",h="removeEventListener",d="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=c.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},C=function(e){if(v(e)){var t=c.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},E=function(e,t,i){var s=e[t];return void 0!==s?s:i},b=function(e,t,i,s){if(t){if("end"===s)return 0;if("center"===s)return e/2}else if(i){if("start"===s)return 0;if("center"===s)return e/2}return e},S=function(e,t){var i=c.createElement("div");return i.className="gutter gutter-"+t,i},y=function(e,t,i){var s={};return v(t)?s[e]=t:s[e]=_+"("+t+"% - "+i+"px)",s},w=function(e,t){var i;return(i={})[e]=t+"px",i};const R=function(e,t){if(void 0===t&&(t={}),a)return{};var i,s,n,r,_,v,R=e;Array.from&&(R=Array.from(R));var L=C(R[0]).parentNode,T=getComputedStyle?getComputedStyle(L):null,x=T?T.flexDirection:null,k=E(t,"sizes")||R.map((function(){return 100/R.length})),A=E(t,"minSize",100),N=Array.isArray(A)?A:R.map((function(){return A})),I=E(t,"maxSize",1/0),O=Array.isArray(I)?I:R.map((function(){return I})),D=E(t,"expandToMin",!1),M=E(t,"gutterSize",10),P=E(t,"gutterAlign","center"),F=E(t,"snapOffset",30),U=Array.isArray(F)?F:R.map((function(){return F})),H=E(t,"dragInterval",1),B=E(t,"direction",m),W=E(t,"cursor",B===m?"col-resize":"row-resize"),V=E(t,"gutter",S),z=E(t,"elementStyle",y),G=E(t,"gutterStyle",w);function j(e,t,s,n){var r=z(i,t,s,n);Object.keys(r).forEach((function(t){e.style[t]=r[t]}))}function K(){return v.map((function(e){return e.size}))}function Y(e){return"touches"in e?e.touches[0][s]:e[s]}function q(e){var t=v[this.a],i=v[this.b],s=t.size+i.size;t.size=e/this.size*s,i.size=s-e/this.size*s,j(t.element,t.size,this[g],t.i),j(i.element,i.size,this[p],i.i)}function $(e){var i,s=v[this.a],n=v[this.b];this.dragging&&(i=Y(e)-this.start+(this[g]-this.dragOffset),H>1&&(i=Math.round(i/H)*H),i<=s.minSize+s.snapOffset+this[g]?i=s.minSize+this[g]:i>=this.size-(n.minSize+n.snapOffset+this[p])&&(i=this.size-(n.minSize+this[p])),i>=s.maxSize-s.snapOffset+this[g]?i=s.maxSize+this[g]:i<=this.size-(n.maxSize-n.snapOffset+this[p])&&(i=this.size-(n.maxSize+this[p])),q.call(this,i),E(t,"onDrag",f)(K()))}function Q(){var e=v[this.a].element,t=v[this.b].element,s=e[d](),o=t[d]();this.size=s[i]+o[i]+this[g]+this[p],this.start=s[n],this.end=s[r]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=B===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(L);if(null===t)return e;if(N.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,s=[],n=e.map((function(n,r){var o=t*n/100,a=b(M,0===r,r===e.length-1,P),c=N[r]+a;return o<c?(i+=c-o,s.push(0),c):(s.push(o-c),o)}));return 0===i?e:n.map((function(e,n){var r=e;if(i>0&&s[n]-i>0){var o=Math.min(i,s[n]-i);i-=o,r=e-o}return r/t*100}))}function Z(){var e=this,i=v[e.a].element,s=v[e.b].element;e.dragging&&E(t,"onDragEnd",f)(K()),e.dragging=!1,o[h]("mouseup",e.stop),o[h]("touchend",e.stop),o[h]("touchcancel",e.stop),o[h]("mousemove",e.move),o[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),s[h]("selectstart",f),s[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",s.style.userSelect="",s.style.webkitUserSelect="",s.style.MozUserSelect="",s.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",c.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,s=v[i.a].element,n=v[i.b].element;i.dragging||E(t,"onDragStart",f)(K()),e.preventDefault(),i.dragging=!0,i.move=$.bind(i),i.stop=Z.bind(i),o[l]("mouseup",i.stop),o[l]("touchend",i.stop),o[l]("touchcancel",i.stop),o[l]("mousemove",i.move),o[l]("touchmove",i.move),s[l]("selectstart",f),s[l]("dragstart",f),n[l]("selectstart",f),n[l]("dragstart",f),s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",i.gutter.style.cursor=W,i.parent.style.cursor=W,c.body.style.cursor=W,Q.call(i),i.dragOffset=Y(e)-i.end}}B===m?(i="width",s="clientX",n="left",r="right",_="clientWidth"):"vertical"===B&&(i="height",s="clientY",n="top",r="bottom",_="clientHeight"),k=X(k);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Q.call(i);var s=t?i.size-e.minSize-i[p]:e.minSize+i[g];q.call(i,s)}return(v=R.map((function(e,t){var s,n={element:C(e),size:k[t],minSize:N[t],maxSize:O[t],snapOffset:U[t],i:t};if(t>0&&((s={a:t-1,b:t,dragging:!1,direction:B,parent:L})[g]=b(M,t-1===0,!1,P),s[p]=b(M,!1,t===R.length-1,P),"row-reverse"===x||"column-reverse"===x)){var r=s.a;s.a=s.b,s.b=r}if(t>0){var o=V(t,B,n.element);!function(e,t,s){var n=G(i,t,s);Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}(o,M,t),s[u]=J.bind(s),o[l]("mousedown",s[u]),o[l]("touchstart",s[u]),L.insertBefore(o,n.element),s.gutter=o}return j(n.element,n.size,b(M,0===t,t===R.length-1,P),t),t>0&&ee.push(s),n}))).forEach((function(e){var t=e.element[d]()[i];t<e.minSize&&(D?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,i){if(i>0){var s=ee[i-1],n=v[s.a],r=v[s.b];n.size=t[i-1],r.size=e,j(n.element,n.size,s[g],n.i),j(r.element,r.size,s[p],r.i)}}))},getSizes:K,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(s){if(!0!==t?s.parent.removeChild(s.gutter):(s.gutter[h]("mousedown",s[u]),s.gutter[h]("touchstart",s[u])),!0!==e){var n=z(i,s.a.size,s[g]);Object.keys(n).forEach((function(e){v[s.a].element.style[e]="",v[s.b].element.style[e]=""}))}}))},parent:L,pairs:ee}};function L(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&-1===t.indexOf(s)&&(i[s]=e[s]);return i}var T=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=L(e,["children","gutter"]);i.gutter=function(e,i){var s;return t?s=t(e,i):(s=document.createElement("div")).className="gutter gutter-"+i,s.__isSplitGutter=!0,s},this.split=R(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var s=i.minSize,n=i.sizes,r=i.collapsed,o=L(i,["children","minSize","sizes","collapsed"]),a=e.minSize,c=e.sizes,l=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(s)&&Array.isArray(a)){var d=!1;s.forEach((function(e,t){d=d||e!==a[t]})),h=h||d}else h=!(!Array.isArray(s)&&!Array.isArray(a))||(h||s!==a);if(h)o.minSize=s,o.sizes=n||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,t,i){return i.previousSibling},this.split=R(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),o);else if(n){var u=!1;n.forEach((function(e,t){u=u||e!==c[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(r)&&(r!==l||h)&&this.split.collapse(r)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,n=L(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return s.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),i)},t}(s.Component);T.propTypes={sizes:r().arrayOf(r().number),minSize:r().oneOfType([r().number,r().arrayOf(r().number)]),maxSize:r().oneOfType([r().number,r().arrayOf(r().number)]),expandToMin:r().bool,gutterSize:r().number,gutterAlign:r().string,snapOffset:r().oneOfType([r().number,r().arrayOf(r().number)]),dragInterval:r().number,direction:r().string,cursor:r().string,gutter:r().func,elementStyle:r().func,gutterStyle:r().func,onDrag:r().func,onDragStart:r().func,onDragEnd:r().func,collapsed:r().number,children:r().arrayOf(r().element)},T.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const x=T},61292:(e,t,i)=>{"use strict";i.d(t,{PD:()=>r,sV:()=>n});var s=i(46359);const n={EDITORS:"CodeEditors",FILES:"CodeFiles"};s.O.add("workbench.contributions.dragAndDrop",new class{});class r{static{this.INSTANCE=new r}constructor(){}static getInstance(){return r.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>b,HT:()=>_,pU:()=>f});var s=i(90766),n=i(10350),r=i(18956),o=i(25689),a=i(41234),c=i(631),l=i(79400),h=i(78209),d=i(78748),u=i(46359);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;o.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:l.r.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${o.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,s){const n=this.iconsById[e];if(n){if(i&&!n.description){n.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return n}const r={id:e,description:i,defaults:t,deprecationMessage:s};this.iconsById[e]=r;const o={$ref:"#/definitions/icons"};return s&&(o.deprecationMessage=s),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(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;o.L.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("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const s=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const n of s.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|${o.L.isThemeIcon(n.defaults)?n.defaults.id:n.id}|${n.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const n of s.filter((e=>!o.L.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|`);return i.join("\n")}};function f(e,t,i,s){return m.registerIcon(e,t,i,s)}function _(){return m}u.O.add("base.contributions.icons",m),function(){const e=(0,r.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",C=u.O.as(d.F.JSONContribution);C.registerSchema(v,m.getIconSchema());const E=new s.uC((()=>C.notifySchemaChanged(v)),200);m.onDidChange((()=>{E.isScheduled()||E.schedule()}));const b=f("widget-close",n.W.close,(0,h.kg)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",n.W.arrowUp,(0,h.kg)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",n.W.arrowDown,(0,h.kg)("nextChangeIcon","Icon for goto next editor location.")),o.L.modify(n.W.sync,"spin"),o.L.modify(n.W.loading,"spin")},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>d,aF:()=>c,fo:()=>o,gB:()=>r,uJ:()=>a});var s=i(64383),n=i(8995);const r=new class{constructor(){this.QuickFix=new n.k("quickfix"),this.Refactor=new n.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new n.k("notebook"),this.Source=new n.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var o;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>l(t,i,e.include))))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function c(e,t){const i=t.kind?new n.k(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>l(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&r.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function l(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(o||(o={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new n.k(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class d{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(t){(0,s.M_)(t)}i&&(this.action.edit=i.edit)}return this}}},61472:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(77718).then(i.bind(i,77718))})},61562:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(25636).then(i.bind(i,25636))})},61674:(e,t,i)=>{e.exports=function(e){const t=i(37403),s={say:i(27769),format:t.format,formatFromYSON:t.formatFromYSON,formatFromYQL:t.formatFromYQL,formatRaw:t.formatRaw,formatAttributes:t.formatAttributes,formatKey:t.formatKey,formatValue:t.formatValue,converters:{yson:i(1019),yql:i(34132),raw:i(34420)},utils:{format:i(94297),yson:i(76531),utf8:i(1449),type:i(85858)}};if((e=e||{}).exportBrowserModule){if("undefined"===typeof window)return s;let e;const t="function"===typeof window.define&&window.define.amd,i="object"===typeof window.modules,n=function(e){return e},r=function(e){return t?e.bind(null,n):i?e:e.bind(null,n)};e=t?window.define:i?window.modules.define.bind(window.modules):function(e,t){window[e]=t()},e("unipika",r((function(e){"use strict";return e(s)})))}return s}},61731:(e,t,i)=>{"use strict";var s,n=i(31450),r=i(94371),o=i(72466),a=i(90208),c=i(78209),l=i(1646),h=i(46359),d=i(25890),u=i(90766),g=i(17799),p=i(8995),m=i(5662),f=i(85411),_=i(36677),v=i(56942),C=i(36723),E=i(29100),b=i(50868),S=i(9948),y=i(84001),w=i(32848),R=i(61292),L=i(63591),T=i(85541),x=i(56687),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N="editor.experimental.dropIntoEditor.defaultProvider",I="editor.changeDropType",O=new w.N1("dropWidgetVisible",!1,(0,c.kg)("dropWidgetVisible","Whether the drop widget is showing"));let D=class extends m.jG{static{s=this}static{this.ID="editor.contrib.dropIntoEditorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this._configService=i,this._languageFeaturesService=s,this._treeViewsDragAndDropService=n,this.treeItemsTransfer=R.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(S.I,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(x.G,"dropIntoEditor",e,O,{id:I,label:(0,c.kg)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){if(!i.dataTransfer||!e.hasModel())return;this._currentOperation?.cancel(),e.focus(),e.setPosition(t);const s=(0,u.SS)((async n=>{const r=new m.Cm,o=r.add(new b.gI(e,1,void 0,n));try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const c=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=r.add(await this.getDropEdits(c,a,t,s,o));if(o.token.isCancellationRequested)return;if(l.edits.length){const i=this.getInitialActiveEditIndex(a,l.edits),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([_.Q.fromPositions(t)],{activeEditIndex:i,allEdits:l.edits},s,(async e=>e),n)}}finally{r.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,c.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s,{cancel:()=>s.cancel()}),this._currentOperation=s}async getDropEdits(e,t,i,s,n){const r=new m.Cm,o=await(0,u.PK)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentDropEdits(t,i,s,n.token);return o&&r.add(o),o?.edits.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),n.token),a=(0,d.Yc)(o??[]).flat();return{edits:(0,T.H)(a),dispose:()=>r.dispose()}}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(N,{resource:e.uri});for(const[s,n]of Object.entries(i)){const e=new p.k(n),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,g.Y)(s,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new g.Vq;const t=(0,f.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(C.DraggedTreeItemsIdentifier.prototype)){const e=this.treeItemsTransfer.getData(C.DraggedTreeItemsIdentifier.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,s]of e)t.replace(i,s)}}return t}};D=s=k([A(1,L._Y),A(2,y.pG),A(3,v.ILanguageFeaturesService),A(4,E.ITreeViewsDnDService)],D),(0,n.HW)(D.ID,D,2),(0,o.x)(a.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:I,precondition:O,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){D.get(t)?.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:O,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){D.get(t)?.clearWidgets()}}),h.O.as(l.Fd.Configuration).registerConfiguration({...r.JJ,properties:{[N]:{type:"object",scope:5,description:c.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},61764:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(2162).then(i.bind(i,2162))})},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>d,KV:()=>c});const s=new RegExp("^[$A-Z_\\s]+$");var n=i(92727);const r={},o={};class a{static getOrCreate(e){return o[e]||(o[e]=new a(e)),o[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function c(e){const t=e.id;r[t]=e,n.eo.register(e);const i=a.getOrCreate(t);n.eo.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),n.eo.onLanguage(t,(()=>{i.load().then((e=>{n.eo.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&l(t,e.completions)}))}function l(e,t){const i=[];const r=n.eo[e];r&&!r.modeConfiguration.completionItems||i.push(n.eo.registerCompletionItemProvider(e,function(e,t){const i=[];for(const n in t)if(!isNaN(Number(n))){const r=`${t[n].toLowerCase()}List`;if(r in e)for(const t of e[r])i.push({label:t,filterText:s.test(t)?t.toLowerCase():t,insertText:t,kind:Number(n),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,s,n){const r=e.getWordUntilPosition(t),o={startLineNumber:t.lineNumber,startColumn:r.startColumn,endLineNumber:t.lineNumber,endColumn:r.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:o})))}}}}(t,n.eo.CompletionItemKind))),r&&i.push(r.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),l(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new n.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},62051:(e,t,i)=>{"use strict";i.d(t,{p:()=>l});var s=i(31308),n=i(91508),r=i(1245),o=i(32848),a=i(5662),c=i(78209);class l extends a.jG{static{this.inlineSuggestionVisible=new o.N1("inlineSuggestionVisible",!1,(0,c.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new o.N1("inlineSuggestionHasIndentation",!1,(0,c.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new o.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,c.kg)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new o.N1("inlineSuggestionSuppressSuggestions",void 0,(0,c.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))}constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=l.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=l.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=l.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=l.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,s.fm)((e=>{const t=this.model.read(e),i=t?.state.read(e),s=!!i?.inlineCompletion&&void 0!==i?.primaryGhostText&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(s),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,s.fm)((e=>{const t=this.model.read(e);let i=!1,s=!0;const o=t?.primaryGhostText.read(e);if(t?.selectedSuggestItem&&o&&o.parts.length>0){const{column:e,lines:a}=o.parts[0],c=a[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=(0,n.HG)(c);-1===e&&(e=c.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;s=r.A.visibleColumnFromColumn(c,e+1,o)<o}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(s)})))}}},62083:(e,t,i)=>{"use strict";i.d(t,{uB:()=>T,HC:()=>d,Kb:()=>m,FX:()=>g,rY:()=>C,lO:()=>k,M$:()=>h,r4:()=>x,qw:()=>u,sm:()=>O,v_:()=>A,OV:()=>R,YT:()=>L,GE:()=>E,WA:()=>p,gP:()=>w,ou:()=>_,dG:()=>N,$M:()=>v,OB:()=>I,PK:()=>y,Iu:()=>b});var s=i(10350),n=i(79400),r=i(36677),o=i(41234),a=i(5662);class c{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const i=new l(this,e,t);return this._factories.set(e,i),(0,a.s)((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class l extends a.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var h,d,u,g,p,m,f=i(78209);class _{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class C{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(h||(h={})),function(e){const t=new Map;t.set(0,s.W.symbolMethod),t.set(1,s.W.symbolFunction),t.set(2,s.W.symbolConstructor),t.set(3,s.W.symbolField),t.set(4,s.W.symbolVariable),t.set(5,s.W.symbolClass),t.set(6,s.W.symbolStruct),t.set(7,s.W.symbolInterface),t.set(8,s.W.symbolModule),t.set(9,s.W.symbolProperty),t.set(10,s.W.symbolEvent),t.set(11,s.W.symbolOperator),t.set(12,s.W.symbolUnit),t.set(13,s.W.symbolValue),t.set(15,s.W.symbolEnum),t.set(14,s.W.symbolConstant),t.set(15,s.W.symbolEnum),t.set(16,s.W.symbolEnumMember),t.set(17,s.W.symbolKeyword),t.set(27,s.W.symbolSnippet),t.set(18,s.W.symbolText),t.set(19,s.W.symbolColor),t.set(20,s.W.symbolFile),t.set(21,s.W.symbolReference),t.set(22,s.W.symbolCustomColor),t.set(23,s.W.symbolFolder),t.set(24,s.W.symbolTypeParameter),t.set(25,s.W.account),t.set(26,s.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=s.W.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let s=i.get(e);return"undefined"!==typeof s||t||(s=9),s}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(u||(u={}));class E{constructor(e,t,i,s){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=s}equals(e){return r.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&n.r.isUri(e.uri)&&r.Q.isIRange(e.range)&&(r.Q.isIRange(e.originSelectionRange)||r.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(m||(m={}));const S={17:(0,f.kg)("Array","array"),16:(0,f.kg)("Boolean","boolean"),4:(0,f.kg)("Class","class"),13:(0,f.kg)("Constant","constant"),8:(0,f.kg)("Constructor","constructor"),9:(0,f.kg)("Enum","enumeration"),21:(0,f.kg)("EnumMember","enumeration member"),23:(0,f.kg)("Event","event"),7:(0,f.kg)("Field","field"),0:(0,f.kg)("File","file"),11:(0,f.kg)("Function","function"),10:(0,f.kg)("Interface","interface"),19:(0,f.kg)("Key","key"),5:(0,f.kg)("Method","method"),1:(0,f.kg)("Module","module"),2:(0,f.kg)("Namespace","namespace"),20:(0,f.kg)("Null","null"),15:(0,f.kg)("Number","number"),18:(0,f.kg)("Object","object"),24:(0,f.kg)("Operator","operator"),3:(0,f.kg)("Package","package"),6:(0,f.kg)("Property","property"),14:(0,f.kg)("String","string"),22:(0,f.kg)("Struct","struct"),25:(0,f.kg)("TypeParameter","type parameter"),12:(0,f.kg)("Variable","variable")};function y(e,t){return(0,f.kg)("symbolAriaLabel","{0} ({1})",e,S[t])}var w,R,L,T,x;!function(e){const t=new Map;t.set(0,s.W.symbolFile),t.set(1,s.W.symbolModule),t.set(2,s.W.symbolNamespace),t.set(3,s.W.symbolPackage),t.set(4,s.W.symbolClass),t.set(5,s.W.symbolMethod),t.set(6,s.W.symbolProperty),t.set(7,s.W.symbolField),t.set(8,s.W.symbolConstructor),t.set(9,s.W.symbolEnum),t.set(10,s.W.symbolInterface),t.set(11,s.W.symbolFunction),t.set(12,s.W.symbolVariable),t.set(13,s.W.symbolConstant),t.set(14,s.W.symbolString),t.set(15,s.W.symbolNumber),t.set(16,s.W.symbolBoolean),t.set(17,s.W.symbolArray),t.set(18,s.W.symbolObject),t.set(19,s.W.symbolKey),t.set(20,s.W.symbolNull),t.set(21,s.W.symbolEnumMember),t.set(22,s.W.symbolStruct),t.set(23,s.W.symbolEvent),t.set(24,s.W.symbolOperator),t.set(25,s.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=s.W.symbolProperty),i}}(w||(w={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(R||(R={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(L||(L={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class A{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new c,I=new c;var O;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(O||(O={}))},62091:(e,t,i)=>{var s=i(54380),n=i(35367),r=i(80531),o=i(68097),a=i(62871),c=i(24410),l=i(34408),h=i(35725),d=l((function(e,t){var i={};if(null==e)return i;var l=!1;t=s(t,(function(t){return t=o(t,e),l||(l=t.length>1),t})),a(e,h(e),i),l&&(i=n(i,7,c));for(var d=t.length;d--;)r(i,t[d]);return i}));e.exports=d},62427:(e,t,i)=>{"use strict";i.d(t,{k:()=>y});var s,n=i(90766),r=i(64383),o=i(16980),a=i(5662),c=i(50868),l=i(31450),h=i(36677),d=i(10154),u=i(18938),g=i(37927),p=i(84226),m=i(78209),f=i(32848),_=i(99312),v=i(80538),C=i(56942),E=i(87289),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class{static{s=this}static{this.ID="editor.contrib.gotodefinitionatposition"}static{this.MAX_SOURCE_PREVIEW_LINES=8}constructor(e,t,i,s){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=s,this.toUnhook=new a.Cm,this.toUnhookForKeyboard=new a.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const n=new g.gi(e);this.toUnhook.add(n),this.toUnhook.add(n.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,t??void 0)}))),this.toUnhook.add(n.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,r.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(n.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(s.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){this.toUnhookForKeyboard.clear();const t=e?this.editor.getModel()?.getWordAtPosition(e):null;if(!t)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===t.startColumn&&this.currentWordAtPosition.endColumn===t.endColumn&&this.currentWordAtPosition.word===t.word)return;this.currentWordAtPosition=t;const i=new c.$t(this.editor,15);let s;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t)));try{s=await this.previousPromise}catch(l){return void(0,r.dz)(l)}if(!s||!s.length||!i.validate(this.editor))return void this.removeLinkDecorations();const a=s[0].originSelectionRange?h.Q.lift(s[0].originSelectionRange):new h.Q(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn);if(s.length>1){let e=a;for(const{originSelectionRange:t}of s)t&&(e=h.Q.plusRange(e,t));this.addDecoration(e,(new o.Bc).appendText(m.kg("multipleResults","Click to show {0} definitions.",s.length)))}else{const e=s[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:s}=e.range;if(s<1||s>i.getLineCount())return void t.dispose();const n=this.getPreviewValue(i,s,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(a,n?(new o.Bc).appendCodeblock(r||"",n):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;n.endLineNumber-n.startLineNumber>=s.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let n=t+1;n<i.endLineNumber;n++){const t=e.getLineFirstNonWhitespaceColumn(n);s=Math.min(s,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${s-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),n=Math.min(e.getLineCount(),t+s.MAX_SOURCE_PREVIEW_LINES);let r=t+1;for(;r<n;r++){if(i===e.getLineFirstNonWhitespaceColumn(r))break}return new h.Q(t,1,r+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!(e.target.detail.injectedText?.options instanceof E.Ho)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.hE)(this.languageFeaturesService.definitionProvider,i,e,!1,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(89)&&!this.isInPeekEditor(e);return new _.mR({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};y=s=b([S(1,u.ITextModelService),S(2,d.L),S(3,C.ILanguageFeaturesService)],y),(0,l.HW)(y.ID,y,2)},62469:()=>{},62890:(e,t,i)=>{"use strict";i.d(t,{$:()=>f});var s=i(8597),n=i(83750),r=i(72962),o=i(68214),a=i(25154),c=i(42904),l=i(20370),h=i(47661),d=i(41234),u=i(16980),g=i(5662),p=i(25689),m=i(48196);h.Q1.white.toString(),h.Q1.white.toString();class f extends g.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new d.vl),this._onDidEscape=this._register(new d.vl),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);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",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._register(a.q.addTarget(this._element)),[s.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,s.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):s.fs.stop(e)})))})),this._register((0,s.ko)(this._element,s.Bx.KEY_DOWN,(e=>{const t=new r.Z(e);let 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&&s.fs.stop(t,!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,s.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,l.n)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){if(this._label===e)return;if((0,u.VS)(this._label)&&(0,u.VS)(e)&&(0,u.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const t=this.options.supportShortLabel?this._labelElement:this._element;if((0,u.VS)(e)){const i=(0,o.Gc)(e,{inline:!0});i.dispose();const r=i.element.querySelector("p")?.innerHTML;if(r){const e=(0,n.aj)(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});t.innerHTML=e}else(0,s.Ln)(t)}else this.options.supportIcons?(0,s.Ln)(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"===typeof this.options.title?i=this.options.title:this.options.title&&(i=(0,o.R9)(e)),this.setTitle(i),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",i),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...p.L.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")}setTitle(e){this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,m.i)().setupManagedHover(this.options.hoverDelegate??(0,c.nZ)("mouse"),this._element,e))}}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>l});var s=i(60712),n=i(59284),r=i(40569),o=i(53302);const a="--ydb-tree-view-level",c=(0,o.o)("ydb-tree-view");function l({children:e,name:t,title:i,icon:o,collapsed:l=!0,active:h=!1,onClick:d,onArrowClick:u,onActionsOpenToggle:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}){const v=n.useCallback((e=>{if(!d)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||d()}),[d]),C=u||d;let E="tree-view_arrow",b="tree-view_children";return l&&(E+=" tree-view_arrow-collapsed",b+=" tree-view_children-collapsed"),(0,s.jsx)("div",{className:c(),style:{[a]:_},children:(0,s.jsxs)("div",{className:"tree-view",children:[(0,s.jsxs)("div",{className:`tree-view_item ${c("item",{active:h})}`,onClick:v,children:[(0,s.jsx)("button",{type:"button",className:`${E} ${c("arrow",{collapsed:l,hidden:!p})}`,disabled:!C,onClick:C}),(0,s.jsxs)("div",{className:c("content"),children:[o&&(0,s.jsx)("div",{className:c("icon"),children:o}),(0,s.jsx)("div",{className:c("text"),title:i,children:t}),m&&m.length>0&&(0,s.jsxs)("div",{className:c("actions"),children:[f,(0,s.jsx)(r.r,{onOpenToggle:g,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,s.jsx)("div",{className:`${b} ${c("container",{collapsed:l})}`,children:l?null:e})]})})}},63346:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var s=i(38566),n=i(17469),r=i(27760);function o(e,t,i,o){t.tokenization.forceTokenization(i.startLineNumber);const a=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),c=o.getLanguageConfiguration(a);if(!c)return null;const l=new r.V(t,o).getProcessedTokenContextAroundRange(i),h=l.previousLineProcessedTokens.getLineContent(),d=l.beforeRangeProcessedTokens.getLineContent(),u=l.afterRangeProcessedTokens.getLineContent(),g=c.onEnter(e,h,d,u);if(!g)return null;const p=g.indentAction;let m=g.appendText;const f=g.removeText||0;m?p===s.l.Indent&&(m="\t"+m):m=p===s.l.Indent||p===s.l.IndentOutdent?"\t":"";let _=(0,n.Cw)(t,i.startLineNumber,i.startColumn);return f&&(_=_.substring(0,_.length-f)),{indentAction:p,appendText:m,removeText:f,indentation:_}}},63591:(e,t,i)=>{"use strict";var s;i.d(t,{_$:()=>s,_Y:()=>n,u1:()=>r}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(s||(s={}));const n=r("instantiationService");function r(e){if(s.serviceIds.has(e))return s.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[s.DI_TARGET]===t?t[s.DI_DEPENDENCIES].push({id:e,index:i}):(t[s.DI_DEPENDENCIES]=[{id:e,index:i}],t[s.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,s.serviceIds.set(e,t),t}},63819:(e,t,i)=>{var s=i(537),n=i(52964),r=i(19305),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||n(e)||!!(o&&e&&e[o])}},63867:(e,t,i)=>{"use strict";var s=i(8995),n=i(31450),r=i(60002),o=i(72466),a=i(55433),c=i(90208),l=i(78209);(0,n.HW)(a.Rj.ID,a.Rj,0),(0,o.x)(c.L9),(0,n.E_)(new class extends n.DX{constructor(){super({id:a.qs,precondition:a.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){return a.Rj.get(t)?.changePasteType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:a.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){a.Rj.get(t)?.clearWidgets()}}),(0,n.Fl)(class e extends n.ks{static{this.argsSchema={type:"object",properties:{kind:{type:"string",description:l.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}}}constructor(){super({id:"editor.action.pasteAs",label:l.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]}})}run(e,t,i){let n="string"===typeof i?.kind?i.kind:void 0;return!n&&i&&(n="string"===typeof i.id?i.id:void 0),a.Rj.get(t)?.pasteAs(n?new s.k(n):void 0)}}),(0,n.Fl)(class extends n.ks{constructor(){super({id:"editor.action.pasteAsText",label:l.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){return a.Rj.get(t)?.pasteAs({providerId:c.LR.id})}})},64066:e=>{e.exports=function(){function e(e,t){let i=e.$value;return"function"===typeof t.customNumberFormatter&&(i=t.customNumberFormatter(e.$value,e.$type)),i}return e.isScalar=!0,e}},64215:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(5662),o=i(55190),a=i(31450),c=i(87908),l=i(60002),h=i(18447),d=i(631),u=i(79400),g=i(23750),p=i(50091),m=i(56942);class f{constructor(){this.lenses=[],this._disposables=new r.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const s=e.ordered(t),r=new Map,o=new f,a=s.map((async(e,s)=>{r.set(e,s);try{const s=await Promise.resolve(e.provideCodeLenses(t,i));s&&o.add(s,e)}catch(a){(0,n.M_)(a)}}));return await Promise.all(a),o.lenses=o.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:r.get(e.provider)<r.get(t.provider)?-1:r.get(e.provider)>r.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),o}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)("number"===typeof s||!s);const{codeLensProvider:o}=e.get(m.ILanguageFeaturesService),a=e.get(g.IModelService).getModel(i);if(!a)throw(0,n.Qg)();const c=[],l=new r.Cm;return _(o,a,h.XO.None).then((e=>{l.add(e);const t=[];for(const i of e.lenses)void 0===s||null===s||Boolean(i.symbol.command)?c.push(i.symbol):s-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.XO.None)).then((e=>c.push(e||i.symbol))));return Promise.all(t)})).then((()=>c)).finally((()=>{setTimeout((()=>l.dispose()),100)}))}));var v=i(41234),C=i(74320),E=i(36677),b=i(14718),S=i(63591),y=i(9711),w=i(25893),R=i(8597),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=(0,S.u1)("ICodeLensCache");class k{constructor(e,t){this.lineCount=e,this.data=t}}let A=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new C.qK(20,.75);(0,R.U3)(w.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i);const s=v.Jh.filter(e.onWillSaveState,(e=>e.reason===y.LP.SHUTDOWN));v.Jh.once(s)((i=>{e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:e.symbol.command?.title}}))),s=new f;s.add({lenses:i,dispose:()=>{}},this._fakeProvider);const n=new k(e.getLineCount(),s);this._cache.set(e.uri.toString(),n)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const s=new Set;for(const e of i.data.lenses)s.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...s.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],s=[];for(const e of i.lines)s.push({range:new E.Q(e,1,e,11)});const n=new f;n.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(e,new k(i.lineCount,n))}}catch{}}};A=L([T(0,y.CS)],A),(0,b.v)(x,A,1);var N=i(20370),I=i(87289);class O{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class D{static{this._idPool=0}constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+D._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let s=!1;for(let n=0;n<e.length;n++){const t=e[n];if(t&&(s=!0,t.command)){const s=(0,N.n)(t.command.title.trim());if(t.command.id){const e="c"+D._idPool++;i.push(R.$("a",{id:e,title:t.command.tooltip,role:"button"},...s)),this._commands.set(e,t.command)}else i.push(R.$("span",{title:t.command.tooltip},...s));n+1<e.length&&i.push(R.$("span",void 0,"\xa0|\xa0"))}}s?(R.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):R.Ln(this._domNode,R.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}class M{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,s=t.length;i<s;i++)this._addDecorationsCallbacks[i](t[i])}}const P=I.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,s,n,r){let o;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),o=o?E.Q.plusRange(o,e.symbol.range):E.Q.lift(e.symbol.range)})),this._viewZone=new O(o.startLineNumber-1,n,r),this._viewZoneId=s.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new D(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),s=this._data[t].symbol;return!(!i||E.Q.isEmpty(s.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var U=i(78209),H=i(58591),B=i(51467),W=i(32500),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class{static{this.ID="css.editor.codeLens"}constructor(e,t,i,n,o,a){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=a,this._disposables=new r.Cm,this._localToDispose=new r.Cm,this._lenses=[],this._oldCodeLensModels=new r.Cm,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new s.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),s=this._editor.getOption(50),{style:n}=this._editor.getContainerDomNode();n.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),n.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),n.setProperty("--vscode-editorCodeLens-fontFeatureSettings",s.fontFeatureSettings),i&&(n.setProperty("--vscode-editorCodeLens-fontFamily",i),n.setProperty("--vscode-editorCodeLens-fontFamilyDefault",c.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,s.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const s of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof s.onDidChange){const e=s.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new s.uC((()=>{const t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=(0,s.SS)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);const n=this._provideCodeLensDebounce.update(e,Date.now()-t);i.delay=n,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()}),n.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,r.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let s=-1;this._lenses.forEach((e=>{e.isValid()&&s!==e.getLineNumber()?(e.update(t),s=e.getLineNumber()):i.push(e)}));const n=new M;i.forEach((e=>{e.dispose(n,t),this._lenses.splice(this._lenses.indexOf(e),1)})),n.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorText((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,r.s)((()=>{if(this._editor.getModel()){const e=o.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===t?.tagName&&(t=t.parentElement),"A"===t?.tagName)for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new M;for(const s of this._lenses)s.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let s;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(s&&s[s.length-1].symbol.range.startLineNumber===e?s.push(o):(s=[o],i.push(s)))}if(!i.length&&!this._lenses.length)return;const n=o.D.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const s=new M;let n=0,o=0;for(;o<i.length&&n<this._lenses.length;){const e=i[o][0].symbol.range.startLineNumber,a=this._lenses[n].getLineNumber();a<e?(this._lenses[n].dispose(s,t),this._lenses.splice(n,1)):a===e?(this._lenses[n].updateCodeLensSymbols(i[o],s),o++,n++):(this._lenses.splice(n,0,new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),n++,o++)}for(;n<this._lenses.length;)this._lenses[n].dispose(s,t),this._lenses.splice(n,1);for(;o<i.length;)this._lenses.push(new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),o++;s.commit(e)}))})),n.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;const e=this._editor.getModel();if(!e)return;const t=[],i=[];if(this._lenses.forEach((s=>{const n=s.computeIfNecessary(e);n&&(t.push(n),i.push(s))})),0===t.length)return;const r=Date.now(),o=(0,s.SS)((s=>{const r=t.map(((t,r)=>{const o=new Array(t.length),a=t.map(((t,i)=>t.symbol.command||"function"!==typeof t.provider.resolveCodeLens?(o[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,s)).then((e=>{o[i]=e}),n.M_)));return Promise.all(a).then((()=>{s.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(o)}))}));return Promise.all(r)}));this._resolveCodeLensesPromise=o,this._resolveCodeLensesPromise.then((()=>{const t=this._resolveCodeLensesDebounce.update(e,Date.now()-r);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,n.dz)(e),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};G=V([z(1,m.ILanguageFeaturesService),z(2,W.ILanguageFeatureDebounceService),z(3,p.d),z(4,H.Ot),z(5,x)],G),(0,a.HW)(G.ID,G,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:l.R.hasCodeLensProvider,label:(0,U.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(B.GK),s=e.get(p.d),n=e.get(H.Ot),r=t.getSelection().positionLineNumber,o=t.getContribution(G.ID);if(!o)return;const a=await o.getModel();if(!a)return;const c=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(0===c.length)return;const l=await i.pick(c,{canPickMany:!1,placeHolder:(0,U.kg)("placeHolder","Select a command")});if(!l)return;let h=l.command;if(a.isDisposed){const e=await o.getModel(),t=e?.lenses.find((e=>e.symbol.range.startLineNumber===r&&e.symbol.command?.title===h.title));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await s.executeCommand(h.id,...h.arguments||[])}catch(d){n.error(d)}}})},64256:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(23158).then(i.bind(i,23158))})},64280:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.056-1.645.28-.196.402-.332.46-.425a.54.54 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a1 1 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577M9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},64317:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>I,bo:()=>M});var s,n=i(8597),r=i(5646),o=i(47625),a=i(36921),c=i(25890),l=i(90766),h=i(10350),d=i(5662),u=i(31308),g=i(87958),p=i(98067),m=i(25689),f=i(83069),_=i(62083),v=i(78244),C=i(78209),E=i(57629),b=i(65644),S=i(27195),y=i(50091),w=i(32848),R=i(47508),L=i(63591),T=i(98031),x=i(90651),k=i(61394),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.un)(this,(e=>{const t=this.model.read(e)?.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new f.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,u.yC)(((t,i)=>{const s=this.model.read(t);if(!s||!this.alwaysShowToolbar.read(t))return;const n=(0,g.rm)(((t,i)=>{const n=i.add(this.instantiationService.createInstance(M,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.activeCommands));return e.addContentWidget(n),i.add((0,d.s)((()=>e.removeContentWidget(n)))),i.add((0,u.fm)((e=>{this.position.read(e)&&s.lastTriggerKind.read(e)!==_.qw.Explicit&&s.triggerExplicitly()}))),n})),r=(0,u.ZX)(this,((e,t)=>!!this.position.read(e)||!!t));i.add((0,u.fm)((e=>{r.read(e)&&n.read(e)})))})))}};I=A([N(2,L._Y)],I);const O=(0,k.pU)("inline-suggestion-hints-next",h.W.chevronRight,(0,C.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),D=(0,k.pU)("inline-suggestion-hints-previous",h.W.chevronLeft,(0,C.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let M=class extends d.jG{static{s=this}static{this._dropDownVisible=!1}static get dropDownVisible(){return this._dropDownVisible}static{this.id=0}createCommandAction(e,t,i){const s=new a.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),n=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return n&&(r=(0,C.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,n.getLabel())),s.tooltip=r,s}constructor(e,t,i,r,o,c,h,d,g,p,f){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=c,this._commandService=h,this.keybindingService=g,this._contextKeyService=p,this._menuService=f,this.id="InlineSuggestionHintsContentWidget"+s.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div@toolBar")]),this.previousAction=this.createCommandAction(v.Vl,(0,C.kg)("previous","Previous"),m.L.asClassName(D)),this.availableSuggestionCountAction=new a.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(v.PA,(0,C.kg)("next","Next"),m.L.asClassName(O)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(S.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new l.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new l.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(d.createInstance(U,this.nodes.toolBar,S.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof S.Xe)return d.createInstance(F,e,void 0);if(e===this.availableSuggestionCountAction){const t=new P(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{s._dropDownVisible=e}))),this._register((0,u.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.fm)((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof S.Xe&&t.push(e);t.length>0&&t.unshift(new a.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};M=s=A([N(6,y.d),N(7,L._Y),N(8,T.b),N(9,w.fN),N(10,S.ez)],M);class P extends r.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class F extends E.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;this._register(new o.x(t,p.OS,{disableTitle:!0,...o.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let U=class extends b.p{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this.menuId=t,this.options2=i,this.menuService=s,this.contextKeyService=n,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,E.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setPrependedPrimaryActions(e){(0,c.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,c.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=A([N(3,S.ez),N(4,w.fN),N(5,R.Z),N(6,T.b),N(7,y.d),N(8,x.k)],U)},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>l,D7:()=>m,EM:()=>g,MB:()=>c,M_:()=>r,Qg:()=>d,aD:()=>h,cU:()=>o,dz:()=>n,iH:()=>u});const s=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(e){c(e)||s.onUnexpectedError(e)}function r(e){c(e)||s.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},64395:(e,t,i)=>{"use strict";function s(e,t){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i+=t:i++;return i}function n(e,t,i){e=e<0?0:e;let s="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)s+="\t"}for(let n=0;n<e;n++)s+=" ";return s}i.d(t,{c:()=>s,k:()=>n})},64454:(e,t,i)=>{"use strict";function s(e){let t=0,i=0,s=0,n=0;for(let r=0,o=e.length;r<o;r++){const a=e.charCodeAt(r);13===a?(0===t&&(i=r),t++,r+1<o&&10===e.charCodeAt(r+1)?(n|=2,r++):n|=3,s=r+1):10===a&&(n|=1,0===t&&(i=r),t++,s=r+1)}return 0===t&&(i=e.length),[t,i,e.length-s,n]}i.d(t,{W:()=>s})},64470:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>o,HP:()=>l,Ic:()=>d,U0:()=>r,Wn:()=>s,bg:()=>a,mS:()=>c,uK:()=>n,vn:()=>h});class s{constructor(){this.changeType=1}}class n{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",s=0;for(const n of t)i+=e.substring(s,n.column-1),s=n.column-1,i+=n.options.content;return i+=e.substring(s),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new n(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new n(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,s,n){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=s,this.order=n}}class r{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class o{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class c{constructor(){this.changeType=5}}class l{constructor(e,t,i,s){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=s,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.versionId,n=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing;return new l(i,s,n,r)}}class h{constructor(e){this.changes=e}}class d{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=l.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=d._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new d(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.eol,n=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:s,isEolChange:e.isEolChange&&t.isEolChange,versionId:n,isUndoing:r,isRedoing:o,isFlush:a}}}},64829:(e,t,i)=>{"use strict";i.d(t,{k:()=>o,x:()=>a});var s=i(81674),n=i(99020);function r(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class o{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,s){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=s}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${r(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${r(this.oldText)}")`:`(replace@${this.oldPosition} "${r(this.oldText)}" with "${r(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;s.Sw(e,n,i),i+=4;for(let r=0;r<n;r++)s.gN(e,t.charCodeAt(r),i),i+=2;return i}static _readString(e,t){const i=s.bb(e,t);return t+=4,(0,n.Su)(e,t,i)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return s.Sw(e,this.oldPosition,t),t+=4,s.Sw(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),t=o._writeString(e,this.newText,t)}static read(e,t,i){const n=s.bb(e,t);t+=4;const r=s.bb(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const c=o._readString(e,t);return t+=o._writeStringSize(c),i.push(new o(n,a,r,c)),t}}function a(e,t){if(null===e||0===e.length)return t;return new c(e,t).compress()}class c{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),s=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(s),s=this._getCurr(++t);continue}if(null===s){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldEnd<=i.newPosition){this._acceptCurr(s),s=this._getCurr(++t);continue}if(i.newEnd<=s.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldPosition<i.newPosition){const[e,t]=c._splitCurr(s,i.newPosition-s.oldPosition);this._acceptCurr(e),s=t;continue}if(i.newPosition<s.oldPosition){const[e,t]=c._splitPrev(i,s.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let n,r;if(s.oldEnd===i.newEnd)n=i,r=s,i=this._getPrev(++e),s=this._getCurr(++t);else if(s.oldEnd<i.newEnd){const[e,o]=c._splitPrev(i,s.oldLength);n=e,r=s,i=o,s=this._getCurr(++t)}else{const[t,o]=c._splitCurr(s,i.newLength);n=i,r=t,i=this._getPrev(++e),s=o}this._result[this._resultLen++]=new o(n.oldPosition,n.oldText,r.newPosition,r.newText),this._prevDeltaOffset+=n.newLength-n.oldLength,this._currDeltaOffset+=r.newLength-r.oldLength}const n=c._merge(this._result);return c._removeNoOps(n)}_acceptCurr(e){this._result[this._resultLen++]=c._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=c._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),s=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,i),new o(e.oldEnd,"",e.newPosition+t,s)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),s=e.oldText.substr(t);return[new o(e.oldPosition,i,e.newPosition,e.newText),new o(e.oldPosition+t,s,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,s=e[0];for(let n=1;n<e.length;n++){const r=e[n];s.oldEnd===r.oldPosition?s=new o(s.oldPosition,s.oldText+r.oldText,s.newPosition,s.newText+r.newText):(t[i++]=s,s=r)}return t[i++]=s,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let s=0;s<e.length;s++){const n=e[s];n.oldText!==n.newText&&(t[i++]=n)}return t}}},65644:(e,t,i)=>{"use strict";i.d(t,{m:()=>N,p:()=>A});var s=i(8597),n=i(47358),r=i(11799),o=i(89506),a=i(36921),c=i(10350),l=i(25689),h=i(41234),d=i(5662),u=i(78209),g=i(42904);class p extends d.jG{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,g.bW)()),this.options=i,this.toggleMenuAction=this._register(new m((()=>this.toggleMenuActionViewItem?.show()),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,s)=>{if(e.id===m.ID)return this.toggleMenuActionViewItem=new o.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:l.L.asClassNameArray(i.moreIcon??c.W.toolBarMore),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){const t=i.actionViewItemProvider(e,s);if(t)return t}if(e instanceof a.YH){const i=new o.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,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}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){const t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||u.kg("moreActions","More Actions..."),super(m.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}}var f=i(25890),_=i(48495),v=i(64383),C=i(42522),E=i(57629),b=i(27195),S=i(60858),y=i(50091),w=i(32848),R=i(47508),L=i(98031),T=i(90651),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};let A=class extends p{constructor(e,t,i,s,n,r,o,a){super(e,n,{getKeyBinding:e=>r.lookupKeybinding(e.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:"string"===typeof t?.telemetrySource}),this._options=t,this._menuService=i,this._contextKeyService=s,this._contextMenuService=n,this._keybindingService=r,this._commandService=o,this._sessionDisposables=this._store.add(new d.Cm);const c=t?.telemetrySource;c&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:c}))))}setActions(e,t=[],i){this._sessionDisposables.clear();const r=e.slice(),o=t.slice(),c=[];let l=0;const h=[];let d=!1;if(-1!==this._options?.hiddenItemStrategy)for(let s=0;s<r.length;s++){const e=r[s];(e instanceof b.Xe||e instanceof b.nI)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&l++,e.hideActions.isHidden&&(d=!0,r[s]=void 0,0!==this._options?.hiddenItemStrategy&&(h[s]=e))))}if(void 0!==this._options?.overflowBehavior){const e=(0,_.E)(new Set(this._options.overflowBehavior.exempted),C.f.map(r,(e=>e?.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let s=0;s<r.length;s++){const n=r[s];n&&(i++,e.has(n.id)||i>=t&&(r[s]=void 0,h[s]=n))}}(0,f.SK)(r),(0,f.SK)(h),super.setActions(r,a.wv.join(h,o)),(c.length>0||r.length>0)&&this._sessionDisposables.add((0,s.ko)(this.getElement(),"contextmenu",(e=>{const t=new n.P((0,s.zk)(this.getElement()),e),r=this.getItemAction(t.target);if(!r)return;t.preventDefault(),t.stopPropagation();const o=[];if(r instanceof b.Xe&&r.menuKeybinding)o.push(r.menuKeybinding);else if(!(r instanceof b.nI||r instanceof m)){const e=!!this._keybindingService.lookupKeybinding(r.id);o.push((0,S.D)(this._commandService,this._keybindingService,r.id,void 0,e))}if(c.length>0){let e=!1;if(1===l&&0===this._options?.hiddenItemStrategy){e=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.ih)({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof b.Xe||r instanceof b.nI)){if(!r.hideActions)return;o.push(r.hideActions.hide)}else o.push((0,a.ih)({id:"label",label:(0,u.kg)("hide","Hide"),enabled:!1,run(){}}))}const h=a.wv.join(o,c);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),d&&i&&(h.push(new a.wv),h.push((0,a.ih)({id:"resetThisMenu",label:(0,u.kg)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),0!==h.length&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>h,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:"string"===typeof this._options?.telemetrySource,contextKeyService:this._contextKeyService})})))}};A=x([k(2,b.ez),k(3,w.fN),k(4,R.Z),k(5,L.b),k(6,y.d),k(7,T.k)],A);let N=class extends A{constructor(e,t,i,s,n,r,o,a,c){super(e,{resetMenu:t,...i},s,n,r,o,a,c),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(s.createMenu(t,n,{emitEventsForSubmenuChanges:!0})),d=()=>{const t=[],s=[];(0,E.Ot)(l,i?.menuOptions,{primary:t,secondary:s},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===t.length&&0===s.length),super.setActions(t,s)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=x([k(3,b.ez),k(4,w.fN),k(5,R.Z),k(6,L.b),k(7,y.d),k(8,T.k)],N)},65872:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299m-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.08 2.08 0 0 0-1.88-1.88m3.098.658a3.6 3.6 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88z",clipRule:"evenodd"}))},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>oe,i:()=>ce});var s=i(10350),n=i(5662),r=i(31450),o=i(80301),a=i(83069),c=i(36677),l=i(60002),h=i(25890),d=i(41234),u=i(58925),g=i(91508),p=i(79400),m=i(14718),f=i(63591),_=i(75147),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};class b{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let S=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new d.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new n.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const s=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===s?c.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||c.Q.compareRangesUsingStarts(e,t)),i},o=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(r)};o(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(o(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new b(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let s=!1,n=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));n<0&&(n=(0,h.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),n<0&&(n=~n));for(let r=n;r<this._markers.length;r++){let i=c.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new c.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,s=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}s||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const s=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),s!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(c.Q.containsPosition(this._markers[i],t))return new b(this._markers[i],i+1,this._markers.length)}};S=C([E(1,_.DR),E(2,v.pG)],S);const y=(0,f.u1)("IMarkerNavigationService");let w=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new S(e,this._markerService,this._configService)}};w=C([E(0,_.DR),E(1,v.pG)],w),(0,m.v)(y,w,1);var R,L=i(78209),T=i(27195),x=i(32848),k=i(61394),A=i(8597),N=i(31295),I=i(47661),O=i(89403),D=i(84226),M=i(57629),P=i(67841),F=i(49099),U=i(25689),H=i(42291);!function(e){e.className=function(e){switch(e){case H.A.Ignore:return"severity-ignore "+U.L.asClassName(s.W.info);case H.A.Info:return U.L.asClassName(s.W.info);case H.A.Warning:return U.L.asClassName(s.W.warning);case H.A.Error:return U.L.asClassName(s.W.error);default:return""}}}(R||(R={}));var B,W=i(66261),V=i(47612),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};class j{constructor(e,t,i,s,r){this._openerService=s,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new n.Cm,this._editor=t;const o=document.createElement("div");o.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.add(A.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new N.Se(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{o.style.left=`-${e.scrollLeft}px`,o.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,n.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:s,code:n}=e;let r=(t?.length||0)+2;n&&(r+="string"===typeof n?n.length:n.value.length);const o=(0,g.uz)(i);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+r,this._longestLineLength);A.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of o)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||n){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(n)if("string"===typeof n){const t=document.createElement("span");t.innerText=`(${n})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=A.$("a.code-link"),this._codeLink.setAttribute("href",`${n.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(n.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};A.BC(this._codeLink,A.$("span")).innerText=n.value,e.appendChild(this._codeLink)}}if(A.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.EI)(s)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of s){const i=document.createElement("div"),s=document.createElement("a");s.classList.add("filename"),s.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,s.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(s,t);const n=document.createElement("span");n.innerText=t.message,i.appendChild(s),i.appendChild(n),this._lines+=1,e.appendChild(i)}}const c=this._editor.getOption(50),l=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:l,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=L.kg("Error","Error");break;case _.cj.Warning:t=L.kg("Warning","Warning");break;case _.cj.Info:t=L.kg("Info","Info");break;case _.cj.Hint:t=L.kg("Hint","Hint")}let i=L.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const s=this._editor.getModel();if(s&&e.startLineNumber<=s.getLineCount()&&e.startLineNumber>=1){i=`${s.getLineContent(e.startLineNumber)}, ${i}`}return i}}let K=class extends D.j6{static{B=this}static{this.TitleMenu=new T.D8("gotoErrorTitleMenu")}constructor(e,t,i,s,r,o,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=s,this._contextKeyService=o,this._labelService=a,this._callOnDispose=new n.Cm,this._onDidSelectRelatedInformation=new d.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=I.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Q,i=X;this._severity===_.cj.Warning?(t=Z,i=J):this._severity===_.cj.Info&&(t=ee,i=te);const s=e.getColor(t),n=e.getColor(i);this.style({arrowColor:s,frameColor:s,headerBackgroundColor:n,primaryHeadingColor:e.getColor(D._X),secondaryHeadingColor:e.getColor(D.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.getMenuActions(B.TitleMenu,this._contextKeyService);(0,M.Ot)(i,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0})}_fillTitleIcon(e){this._icon=A.BC(e,A.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new j(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const s=c.Q.lift(e),n=this.editor.getPosition(),r=n&&s.containsPosition(n)?n:s.getStartPosition();super.show(r,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const e=i>1?L.kg("problems","{0} of {1} problems",t,i):L.kg("change","{0} of {1} problem",t,i);this.setTitle((0,O.P8)(o.uri),e)}this._icon.className=`codicon ${R.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};K=B=z([G(1,V.Gy),G(2,F.C),G(3,T.ez),G(4,f._Y),G(5,x.fN),G(6,P.L)],K);const Y=(0,W.yLr)(W.Rbi,W.AN$),q=(0,W.yLr)(W.Hng,W.Stt),$=(0,W.yLr)(W.pOz,W.IIb),Q=(0,W.x1A)("editorMarkerNavigationError.background",{dark:Y,light:Y,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),X=(0,W.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,W.JO0)(Q,.1),light:(0,W.JO0)(Q,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Z=(0,W.x1A)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,W.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,W.JO0)(Z,.1),light:(0,W.JO0)(Z,.1),hcDark:"#0C141F",hcLight:(0,W.JO0)(Z,.2)},L.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},L.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,W.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,W.JO0)(ee,.1),light:(0,W.JO0)(ee,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,W.x1A)("editorMarkerNavigation.background",W.YtV,L.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var se,ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class{static{se=this}static{this.ID="editor.contrib.markerController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=s,this._instantiationService=r,this._sessionDispoables=new n.Cm,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(K,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{this._model?.selected&&c.Q.containsPosition(this._model?.selected.marker,e.position)||this._model?.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:c.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){if(this._editor.hasModel()){const i=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(i.move(e,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=await this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);s&&(se.get(s)?.close(),se.get(s)?.nagivate(e,t))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}};oe=se=ne([re(1,y),re(2,x.fN),re(3,o.T),re(4,f._Y)],oe);class ae extends r.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){t.hasModel()&&oe.get(t)?.nagivate(this._next,this._multiFile)}}class ce extends ae{static{this.ID="editor.action.marker.next"}static{this.LABEL=L.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)")}constructor(){super(!0,!1,{id:ce.ID,label:ce.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:578,weight:100},menuOpts:{menuId:K.TitleMenu,title:ce.LABEL,icon:(0,k.pU)("marker-navigation-next",s.W.arrowDown,L.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}class le extends ae{static{this.ID="editor.action.marker.prev"}static{this.LABEL=L.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)")}constructor(){super(!1,!1,{id:le.ID,label:le.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1602,weight:100},menuOpts:{menuId:K.TitleMenu,title:le.LABEL,icon:(0,k.pU)("marker-navigation-previous",s.W.arrowUp,L.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}(0,r.HW)(oe.ID,oe,4),(0,r.Fl)(ce),(0,r.Fl)(le),(0,r.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:L.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:66,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:L.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1090,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:L.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new x.N1("markersNavigationVisible",!1),de=r.DX.bindToContribution(oe.get);(0,r.E_)(new de({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:l.R.focus,primary:9,secondary:[1033]}}))},66235:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(80030).then(i.bind(i,80030))})},66261:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>s.Fd,buw:()=>h,GuP:()=>s.Gu,Bbc:()=>s.Bb,HP_:()=>s.HP,WMx:()=>u,zRE:()=>g,sAS:()=>le,vV$:()=>ae,etE:()=>ce,mc0:()=>oe,XJc:()=>Ze,raQ:()=>et,G_h:()=>Qe,T9h:()=>Je,xOA:()=>it,Inn:()=>tt,nZG:()=>st,Q1$:()=>Xe,OcU:()=>dt,C5U:()=>gt,t0B:()=>ut,b1q:()=>l,EY1:()=>X,ZEf:()=>Z,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>I,YtV:()=>C,AN$:()=>R,Rbi:()=>w,f3U:()=>F,Ubg:()=>U,ECk:()=>B,p8Y:()=>H,S5J:()=>W,By2:()=>E,i61:()=>N,WfR:()=>V,oZ8:()=>z,tan:()=>M,IIb:()=>A,pOz:()=>k,WL6:()=>j,P6i:()=>G,B2L:()=>$,sjA:()=>q,_pU:()=>Y,HwT:()=>K,seu:()=>O,rm4:()=>D,QwA:()=>P,whs:()=>L,Stt:()=>x,Hng:()=>T,CgL:()=>b,sIe:()=>y,FiB:()=>S,tAP:()=>c,CU6:()=>o,t4B:()=>a,c1f:()=>Me,uNK:()=>Oe,$$0:()=>Pe,L4c:()=>Ae,Zgs:()=>Ie,cws:()=>Ne,_$n:()=>ze,eYZ:()=>je,h9z:()=>Ge,I$A:()=>Fe,YSW:()=>He,L9Z:()=>Ue,ULt:()=>Be,C1n:()=>Ve,T5N:()=>We,HDX:()=>pt,zUX:()=>ft,Qfh:()=>_t,eUu:()=>mt,Rjz:()=>St,GVV:()=>yt,fED:()=>wt,yIp:()=>Ot,Yoe:()=>It,pnl:()=>Pt,P9Z:()=>Ut,fiM:()=>Ft,H8q:()=>Ht,gtq:()=>bt,VFX:()=>vt,efJ:()=>Ct,eMz:()=>Mt,p7Y:()=>Et,QI5:()=>Dt,lO1:()=>At,QRv:()=>Nt,CQ3:()=>xt,ijf:()=>kt,uNx:()=>Rt,f4y:()=>Lt,C9U:()=>Tt,c6Y:()=>Kt,g$2:()=>Gt,dd_:()=>jt,Ux$:()=>qt,SNb:()=>$t,pmr:()=>Yt,D7X:()=>Qt,ILr:()=>xe,yLC:()=>Te,AjU:()=>Se,K1Z:()=>ke,KoI:()=>Re,yr0:()=>we,Xp1:()=>ye,uMG:()=>Le,yLr:()=>s.yL,fAP:()=>_e,z5H:()=>ve,iwL:()=>ti,NBf:()=>ei,tYX:()=>Ce,bNw:()=>be,JPj:()=>Ee,BTi:()=>v,ELA:()=>Xt,HJZ:()=>Zt,AlL:()=>ri,nH:()=>si,c7i:()=>ni,er1:()=>Jt,Ukx:()=>rt,Ips:()=>ot,jOE:()=>nt,xWN:()=>ct,ZBU:()=>lt,kPT:()=>at,jr9:()=>ht,x1A:()=>s.x1,bXl:()=>p,mhZ:()=>_,gnV:()=>m,cI_:()=>f,rvE:()=>Ke,HcB:()=>$e,yqq:()=>qe,lWP:()=>Ye,k5u:()=>Vt,sbQ:()=>zt,vwp:()=>d,JO0:()=>s.JO,pft:()=>Wt,U4U:()=>Bt,DSL:()=>ne,f9l:()=>se});var s=i(83844),n=i(78209),r=i(47661);const o=(0,s.x1)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=((0,s.x1)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,s.x1)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,s.x1)("descriptionForeground",{light:"#717171",dark:(0,s.JO)(o,.7),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),(0,s.x1)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("iconForeground","The default color for icons in the workbench."))),c=(0,s.x1)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),l=(0,s.x1)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),h=(0,s.x1)("contrastActiveBorder",{light:null,dark:null,hcDark:c,hcLight:c},n.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),d=((0,s.x1)("selection.background",null,n.kg("selectionBackground","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.")),(0,s.x1)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkForeground","Foreground color for links in text."))),u=((0,s.x1)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,s.x1)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Q1.black,hcLight:"#292929"},n.kg("textSeparatorForeground","Color for text separators.")),(0,s.x1)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.kg("textPreformatForeground","Foreground color for preformatted text segments.")),(0,s.x1)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.kg("textPreformatBackground","Background color for preformatted text segments.")),(0,s.x1)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.kg("textBlockQuoteBackground","Background color for block quotes in text.")),(0,s.x1)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Q1.white,hcLight:"#292929"},n.kg("textBlockQuoteBorder","Border color for block quotes in text.")),(0,s.x1)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Q1.black,hcLight:"#F2F2F2"},n.kg("textCodeBlockBackground","Background color for code blocks in text.")),(0,s.x1)("sash.hoverBorder",c,n.kg("sashActiveBorder","Border color of active sashes.")),(0,s.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Q1.black,hcLight:"#0F4A85"},n.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),g=(0,s.x1)("badge.foreground",{dark:r.Q1.white,light:"#333",hcDark:r.Q1.white,hcLight:r.Q1.white},n.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),p=(0,s.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),m=(0,s.x1)("scrollbarSlider.background",{dark:r.Q1.fromHex("#797979").transparent(.4),light:r.Q1.fromHex("#646464").transparent(.4),hcDark:(0,s.JO)(l,.6),hcLight:(0,s.JO)(l,.4)},n.kg("scrollbarSliderBackground","Scrollbar slider background color.")),f=(0,s.x1)("scrollbarSlider.hoverBackground",{dark:r.Q1.fromHex("#646464").transparent(.7),light:r.Q1.fromHex("#646464").transparent(.7),hcDark:(0,s.JO)(l,.8),hcLight:(0,s.JO)(l,.8)},n.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),_=(0,s.x1)("scrollbarSlider.activeBackground",{dark:r.Q1.fromHex("#BFBFBF").transparent(.4),light:r.Q1.fromHex("#000000").transparent(.6),hcDark:l,hcLight:l},n.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),v=(0,s.x1)("progressBar.background",{dark:r.Q1.fromHex("#0E70C0"),light:r.Q1.fromHex("#0E70C0"),hcDark:l,hcLight:l},n.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),C=(0,s.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("editorBackground","Editor background color.")),E=(0,s.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Q1.white,hcLight:o},n.kg("editorForeground","Editor default foreground color.")),b=((0,s.x1)("editorStickyScroll.background",C,n.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,s.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,s.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,s.x1)("editorStickyScroll.shadow",p,n.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),(0,s.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Q1.white},n.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),S=(0,s.x1)("editorWidget.foreground",o,n.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),y=(0,s.x1)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:l,hcLight:l},n.kg("editorWidgetBorder","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.")),w=((0,s.x1)("editorWidget.resizeBorder",null,n.kg("editorWidgetResizeBorder","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.")),(0,s.x1)("editorError.background",null,n.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),R=(0,s.x1)("editorError.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.kg("errorBorder","If set, color of double underlines for errors in the editor.")),L=(0,s.x1)("editorWarning.background",null,n.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),T=(0,s.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),x=(0,s.x1)("editorWarning.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#FFCC00").transparent(.8),hcLight:r.Q1.fromHex("#FFCC00").transparent(.8)},n.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),k=((0,s.x1)("editorInfo.background",null,n.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),A=(0,s.x1)("editorInfo.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.kg("infoBorder","If set, color of double underlines for infos in the editor.")),N=(0,s.x1)("editorHint.foreground",{dark:r.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),I=((0,s.x1)("editorHint.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.kg("hintBorder","If set, color of double underlines for hints in the editor.")),(0,s.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:r.Q1.blue,hcDark:r.Q1.cyan,hcLight:"#292929"},n.kg("activeLinkForeground","Color of active links."))),O=(0,s.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.kg("editorSelectionBackground","Color of the editor selection.")),D=(0,s.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Q1.white},n.kg("editorSelectionForeground","Color of the selected text for high contrast.")),M=(0,s.x1)("editor.inactiveSelectionBackground",{light:(0,s.JO)(O,.5),dark:(0,s.JO)(O,.5),hcDark:(0,s.JO)(O,.7),hcLight:(0,s.JO)(O,.5)},n.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),P=(0,s.x1)("editor.selectionHighlightBackground",{light:(0,s.oG)(O,C,.3,.6),dark:(0,s.oG)(O,C,.3,.6),hcDark:null,hcLight:null},n.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),F=((0,s.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,s.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.kg("editorFindMatch","Color of the current search match.")),(0,s.x1)("editor.findMatchForeground",null,n.kg("editorFindMatchForeground","Text color of the current search match."))),U=(0,s.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,s.x1)("editor.findMatchHighlightForeground",null,n.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),B=((0,s.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorFindMatchBorder","Border color of the current search match.")),(0,s.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("findMatchHighlightBorder","Border color of the other search matches."))),W=(0,s.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,s.JO)(h,.4),hcLight:(0,s.JO)(h,.4)},n.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),V=((0,s.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorHoverWidget.background",b,n.kg("hoverBackground","Background color of the editor hover."))),z=((0,s.x1)("editorHoverWidget.foreground",S,n.kg("hoverForeground","Foreground color of the editor hover.")),(0,s.x1)("editorHoverWidget.border",y,n.kg("hoverBorder","Border color of the editor hover."))),G=((0,s.x1)("editorHoverWidget.statusBarBackground",{dark:(0,s.a)(V,.2),light:(0,s.e$)(V,.05),hcDark:b,hcLight:b},n.kg("statusBarBackground","Background color of the editor hover status bar.")),(0,s.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:r.Q1.white,hcLight:r.Q1.black},n.kg("editorInlayHintForeground","Foreground color of inline hints"))),j=(0,s.x1)("editorInlayHint.background",{dark:(0,s.JO)(u,.1),light:(0,s.JO)(u,.1),hcDark:(0,s.JO)(r.Q1.white,.1),hcLight:(0,s.JO)(u,.1)},n.kg("editorInlayHintBackground","Background color of inline hints")),K=(0,s.x1)("editorInlayHint.typeForeground",G,n.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Y=(0,s.x1)("editorInlayHint.typeBackground",j,n.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),q=(0,s.x1)("editorInlayHint.parameterForeground",G,n.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),$=(0,s.x1)("editorInlayHint.parameterBackground",j,n.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Q=(0,s.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),X=((0,s.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,s.x1)("editorLightBulbAi.foreground",Q,n.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,s.x1)("editor.snippetTabstopHighlightBackground",{dark:new r.Q1(new r.bU(124,124,124,.3)),light:new r.Q1(new r.bU(10,50,100,.2)),hcDark:new r.Q1(new r.bU(124,124,124,.3)),hcLight:new r.Q1(new r.bU(10,50,100,.2))},n.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,s.x1)("editor.snippetTabstopHighlightBorder",null,n.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBackground",null,n.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Q1(new r.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new r.Q1(new r.bU(155,185,85,.2))),Z=new r.Q1(new r.bU(255,0,0,.2)),J=(0,s.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ee=(0,s.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),te=((0,s.x1)("diffEditor.insertedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},n.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditor.removedLineBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},n.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditorGutter.insertedLineBackground",null,n.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,s.x1)("diffEditorGutter.removedLineBackground",null,n.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),(0,s.x1)("diffEditorOverview.insertedForeground",null,n.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),ie=(0,s.x1)("diffEditorOverview.removedForeground",null,n.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),se=((0,s.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,s.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,s.x1)("diffEditor.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("diffEditorBorder","Border color between the two text editors.")),(0,s.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,s.x1)("diffEditor.unchangedRegionBackground","sideBar.background",n.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedRegionForeground","foreground",n.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),(0,s.x1)("widget.shadow",{dark:(0,s.JO)(r.Q1.black,.36),light:(0,s.JO)(r.Q1.black,.16),hcDark:null,hcLight:null},n.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ne=(0,s.x1)("widget.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),re=(0,s.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),oe=((0,s.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,s.x1)("toolbar.activeBackground",{dark:(0,s.a)(re,.1),light:(0,s.e$)(re,.1),hcDark:null,hcLight:null},n.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),(0,s.x1)("breadcrumb.foreground",(0,s.JO)(o,.8),n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ae=(0,s.x1)("breadcrumb.background",C,n.kg("breadcrumbsBackground","Background color of breadcrumb items.")),ce=(0,s.x1)("breadcrumb.focusForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),le=(0,s.x1)("breadcrumb.activeSelectionForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),he=((0,s.x1)("breadcrumbPicker.background",b,n.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),r.Q1.fromHex("#40C8AE").transparent(.5)),de=r.Q1.fromHex("#40A6FF").transparent(.5),ue=r.Q1.fromHex("#606060").transparent(.4),ge=(0,s.x1)("merge.currentHeaderBackground",{dark:he,light:he,hcDark:null,hcLight:null},n.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),pe=((0,s.x1)("merge.currentContentBackground",(0,s.JO)(ge,.4),n.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.incomingHeaderBackground",{dark:de,light:de,hcDark:null,hcLight:null},n.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),me=((0,s.x1)("merge.incomingContentBackground",(0,s.JO)(pe,.4),n.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.commonHeaderBackground",{dark:ue,light:ue,hcDark:null,hcLight:null},n.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),fe=((0,s.x1)("merge.commonContentBackground",(0,s.JO)(me,.4),n.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),_e=((0,s.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,s.JO)(ge,1),light:(0,s.JO)(ge,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,s.JO)(pe,1),light:(0,s.JO)(pe,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,s.JO)(me,1),light:(0,s.JO)(me,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},n.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ve=(0,s.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",n.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ce=(0,s.x1)("problemsErrorIcon.foreground",w,n.kg("problemsErrorIconForeground","The color used for the problems error icon.")),Ee=(0,s.x1)("problemsWarningIcon.foreground",T,n.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),be=(0,s.x1)("problemsInfoIcon.foreground",k,n.kg("problemsInfoIconForeground","The color used for the problems info icon.")),Se=(0,s.x1)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},n.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ye=(0,s.x1)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),we=(0,s.x1)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Re=(0,s.x1)("minimap.infoHighlight",{dark:k,light:k,hcDark:A,hcLight:A},n.kg("minimapInfo","Minimap marker color for infos.")),Le=(0,s.x1)("minimap.warningHighlight",{dark:T,light:T,hcDark:x,hcLight:x},n.kg("overviewRuleWarning","Minimap marker color for warnings.")),Te=(0,s.x1)("minimap.errorHighlight",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},n.kg("minimapError","Minimap marker color for errors.")),xe=(0,s.x1)("minimap.background",null,n.kg("minimapBackground","Minimap background color.")),ke=(0,s.x1)("minimap.foregroundOpacity",r.Q1.fromHex("#000f"),n.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ae=((0,s.x1)("minimapSlider.background",(0,s.JO)(m,.5),n.kg("minimapSliderBackground","Minimap slider background color.")),(0,s.x1)("minimapSlider.hoverBackground",(0,s.JO)(f,.5),n.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),(0,s.x1)("minimapSlider.activeBackground",(0,s.JO)(_,.5),n.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),(0,s.x1)("charts.foreground",o,n.kg("chartsForeground","The foreground color used in charts.")),(0,s.x1)("charts.lines",(0,s.JO)(o,.5),n.kg("chartsLines","The color used for horizontal lines in charts.")),(0,s.x1)("charts.red",w,n.kg("chartsRed","The red color used in chart visualizations.")),(0,s.x1)("charts.blue",k,n.kg("chartsBlue","The blue color used in chart visualizations.")),(0,s.x1)("charts.yellow",T,n.kg("chartsYellow","The yellow color used in chart visualizations.")),(0,s.x1)("charts.orange",Se,n.kg("chartsOrange","The orange color used in chart visualizations.")),(0,s.x1)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.kg("chartsGreen","The green color used in chart visualizations.")),(0,s.x1)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.kg("chartsPurple","The purple color used in chart visualizations.")),(0,s.x1)("input.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputBoxBackground","Input box background."))),Ne=(0,s.x1)("input.foreground",o,n.kg("inputBoxForeground","Input box foreground.")),Ie=(0,s.x1)("input.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("inputBoxBorder","Input box border.")),Oe=(0,s.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:l,hcLight:l},n.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),De=(0,s.x1)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),Me=(0,s.x1)("inputOption.activeBackground",{dark:(0,s.JO)(c,.4),light:(0,s.JO)(c,.2),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("inputOption.activeBackground","Background hover color of options in input fields.")),Pe=(0,s.x1)("inputOption.activeForeground",{dark:r.Q1.white,light:r.Q1.black,hcDark:o,hcLight:o},n.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),Fe=((0,s.x1)("input.placeholderForeground",{light:(0,s.JO)(o,.5),dark:(0,s.JO)(o,.5),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),(0,s.x1)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationInfoBackground","Input validation background color for information severity."))),Ue=(0,s.x1)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),He=(0,s.x1)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:l,hcLight:l},n.kg("inputValidationInfoBorder","Input validation border color for information severity.")),Be=(0,s.x1)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),We=(0,s.x1)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ve=(0,s.x1)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:l,hcLight:l},n.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),ze=(0,s.x1)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationErrorBackground","Input validation background color for error severity.")),Ge=(0,s.x1)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),je=(0,s.x1)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("inputValidationErrorBorder","Input validation border color for error severity.")),Ke=(0,s.x1)("dropdown.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownBackground","Dropdown background.")),Ye=(0,s.x1)("dropdown.listBackground",{dark:null,light:null,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownListBackground","Dropdown list background.")),qe=(0,s.x1)("dropdown.foreground",{dark:"#F0F0F0",light:o,hcDark:r.Q1.white,hcLight:o},n.kg("dropdownForeground","Dropdown foreground.")),$e=(0,s.x1)("dropdown.border",{dark:Ke,light:"#CECECE",hcDark:l,hcLight:l},n.kg("dropdownBorder","Dropdown border.")),Qe=(0,s.x1)("button.foreground",r.Q1.white,n.kg("buttonForeground","Button foreground color.")),Xe=(0,s.x1)("button.separator",(0,s.JO)(Qe,.4),n.kg("buttonSeparator","Button separator color.")),Ze=(0,s.x1)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},n.kg("buttonBackground","Button background color.")),Je=(0,s.x1)("button.hoverBackground",{dark:(0,s.a)(Ze,.2),light:(0,s.e$)(Ze,.2),hcDark:Ze,hcLight:Ze},n.kg("buttonHoverBackground","Button background color when hovering.")),et=(0,s.x1)("button.border",l,n.kg("buttonBorder","Button border color.")),tt=(0,s.x1)("button.secondaryForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:r.Q1.white,hcLight:o},n.kg("buttonSecondaryForeground","Secondary button foreground color.")),it=(0,s.x1)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Q1.white},n.kg("buttonSecondaryBackground","Secondary button background color.")),st=(0,s.x1)("button.secondaryHoverBackground",{dark:(0,s.a)(it,.2),light:(0,s.e$)(it,.2),hcDark:null,hcLight:null},n.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),nt=(0,s.x1)("radio.activeForeground",Pe,n.kg("radioActiveForeground","Foreground color of active radio option.")),rt=(0,s.x1)("radio.activeBackground",Me,n.kg("radioBackground","Background color of active radio option.")),ot=(0,s.x1)("radio.activeBorder",Oe,n.kg("radioActiveBorder","Border color of the active radio option.")),at=(0,s.x1)("radio.inactiveForeground",null,n.kg("radioInactiveForeground","Foreground color of inactive radio option.")),ct=(0,s.x1)("radio.inactiveBackground",null,n.kg("radioInactiveBackground","Background color of inactive radio option.")),lt=(0,s.x1)("radio.inactiveBorder",{light:(0,s.JO)(nt,.2),dark:(0,s.JO)(nt,.2),hcDark:(0,s.JO)(nt,.4),hcLight:(0,s.JO)(nt,.2)},n.kg("radioInactiveBorder","Border color of the inactive radio option.")),ht=(0,s.x1)("radio.inactiveHoverBackground",De,n.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),dt=(0,s.x1)("checkbox.background",Ke,n.kg("checkbox.background","Background color of checkbox widget.")),ut=((0,s.x1)("checkbox.selectBackground",b,n.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),(0,s.x1)("checkbox.foreground",qe,n.kg("checkbox.foreground","Foreground color of checkbox widget."))),gt=(0,s.x1)("checkbox.border",$e,n.kg("checkbox.border","Border color of checkbox widget.")),pt=((0,s.x1)("checkbox.selectBorder",a,n.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),(0,s.x1)("keybindingLabel.background",{dark:new r.Q1(new r.bU(128,128,128,.17)),light:new r.Q1(new r.bU(221,221,221,.4)),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),mt=(0,s.x1)("keybindingLabel.foreground",{dark:r.Q1.fromHex("#CCCCCC"),light:r.Q1.fromHex("#555555"),hcDark:r.Q1.white,hcLight:o},n.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ft=(0,s.x1)("keybindingLabel.border",{dark:new r.Q1(new r.bU(51,51,51,.6)),light:new r.Q1(new r.bU(204,204,204,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:l},n.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),_t=(0,s.x1)("keybindingLabel.bottomBorder",{dark:new r.Q1(new r.bU(68,68,68,.6)),light:new r.Q1(new r.bU(187,187,187,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:o},n.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),vt=(0,s.x1)("list.focusBackground",null,n.kg("listFocusBackground","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.")),Ct=(0,s.x1)("list.focusForeground",null,n.kg("listFocusForeground","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.")),Et=(0,s.x1)("list.focusOutline",{dark:c,light:c,hcDark:h,hcLight:h},n.kg("listFocusOutline","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.")),bt=(0,s.x1)("list.focusAndSelectionOutline",null,n.kg("listFocusAndSelectionOutline","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.")),St=(0,s.x1)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listActiveSelectionBackground","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.")),yt=(0,s.x1)("list.activeSelectionForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:null,hcLight:null},n.kg("listActiveSelectionForeground","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.")),wt=(0,s.x1)("list.activeSelectionIconForeground",null,n.kg("listActiveSelectionIconForeground","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.")),Rt=(0,s.x1)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listInactiveSelectionBackground","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.")),Lt=(0,s.x1)("list.inactiveSelectionForeground",null,n.kg("listInactiveSelectionForeground","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.")),Tt=(0,s.x1)("list.inactiveSelectionIconForeground",null,n.kg("listInactiveSelectionIconForeground","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.")),xt=(0,s.x1)("list.inactiveFocusBackground",null,n.kg("listInactiveFocusBackground","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.")),kt=(0,s.x1)("list.inactiveFocusOutline",null,n.kg("listInactiveFocusOutline","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.")),At=(0,s.x1)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:r.Q1.white.transparent(.1),hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nt=(0,s.x1)("list.hoverForeground",null,n.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),It=(0,s.x1)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),Ot=(0,s.x1)("list.dropBetweenBackground",{dark:a,light:a,hcDark:null,hcLight:null},n.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Dt=(0,s.x1)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:c,hcLight:c},n.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Mt=(0,s.x1)("list.focusHighlightForeground",{dark:Dt,light:(0,s.Hz)(St,Dt,"#BBE7FF"),hcDark:Dt,hcLight:Dt},n.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Pt=((0,s.x1)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,s.x1)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.kg("listErrorForeground","Foreground color of list items containing errors.")),(0,s.x1)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.kg("listWarningForeground","Foreground color of list items containing warnings.")),(0,s.x1)("listFilterWidget.background",{light:(0,s.e$)(b,0),dark:(0,s.a)(b,0),hcDark:b,hcLight:b},n.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Ft=(0,s.x1)("listFilterWidget.outline",{dark:r.Q1.transparent,light:r.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ut=(0,s.x1)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:l,hcLight:l},n.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ht=(0,s.x1)("listFilterWidget.shadow",se,n.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Bt=((0,s.x1)("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},n.kg("listFilterMatchHighlight","Background color of the filtered match.")),(0,s.x1)("list.filterMatchBorder",{dark:B,light:B,hcDark:l,hcLight:h},n.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,s.x1)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),(0,s.x1)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Wt=(0,s.x1)("tree.inactiveIndentGuidesStroke",(0,s.JO)(Bt,.4),n.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Vt=(0,s.x1)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.kg("tableColumnsBorder","Table border color between columns.")),zt=(0,s.x1)("tree.tableOddRowsBackground",{dark:(0,s.JO)(o,.04),light:(0,s.JO)(o,.04),hcDark:null,hcLight:null},n.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),Gt=((0,s.x1)("editorActionList.background",b,n.kg("editorActionListBackground","Action List background color.")),(0,s.x1)("editorActionList.foreground",S,n.kg("editorActionListForeground","Action List foreground color.")),(0,s.x1)("editorActionList.focusForeground",yt,n.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),(0,s.x1)("editorActionList.focusBackground",St,n.kg("editorActionListFocusBackground","Action List background color for the focused item.")),(0,s.x1)("menu.border",{dark:null,light:null,hcDark:l,hcLight:l},n.kg("menuBorder","Border color of menus."))),jt=(0,s.x1)("menu.foreground",qe,n.kg("menuForeground","Foreground color of menu items.")),Kt=(0,s.x1)("menu.background",Ke,n.kg("menuBackground","Background color of menu items.")),Yt=(0,s.x1)("menu.selectionForeground",yt,n.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),qt=(0,s.x1)("menu.selectionBackground",St,n.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),$t=(0,s.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),Qt=(0,s.x1)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:l,hcLight:l},n.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Xt=(0,s.x1)("quickInput.background",b,n.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Zt=(0,s.x1)("quickInput.foreground",S,n.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Jt=(0,s.x1)("quickInputTitle.background",{dark:new r.Q1(new r.bU(255,255,255,.105)),light:new r.Q1(new r.bU(0,0,0,.06)),hcDark:"#000000",hcLight:r.Q1.white},n.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ei=(0,s.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupForeground","Quick picker color for grouping labels.")),ti=(0,s.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupBorder","Quick picker color for grouping borders.")),ii=(0,s.x1)("quickInput.list.focusBackground",null,"",void 0,n.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),si=(0,s.x1)("quickInputList.focusForeground",yt,n.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),ni=(0,s.x1)("quickInputList.focusIconForeground",wt,n.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),ri=(0,s.x1)("quickInputList.focusBackground",{dark:(0,s.yL)(ii,St),light:(0,s.yL)(ii,St),hcDark:null,hcLight:null},n.kg("quickInput.listFocusBackground","Quick picker background color for the focused item."));(0,s.x1)("search.resultsInfoForeground",{light:o,dark:(0,s.JO)(o,.65),hcDark:o,hcLight:o},n.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),(0,s.x1)("searchEditor.findMatchBackground",{light:(0,s.JO)(U,.66),dark:(0,s.JO)(U,.66),hcDark:U,hcLight:U},n.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),(0,s.x1)("searchEditor.findMatchBorder",{light:(0,s.JO)(B,.66),dark:(0,s.JO)(B,.66),hcDark:B,hcLight:B},n.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},66643:(e,t,i)=>{"use strict";i.d(t,{W:()=>p});var s=i(3357),n=i(87924),r=i.n(n),o=i(52708),a=i.n(o),c=i(8964);var l=i(38469),h=i.n(l);function d(e,t,i){if("plugins"===i){const i=[...e],s=[...t];let n=i.map((e=>{const t=s.findIndex((({type:t})=>t===e.type));if(-1!==t){const i=s[t];return s.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return s.length>0&&(n=[...n,...s]),n}return h()(e)?a()(e,t,d):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((({id:e})=>e!==t)))}dispatch(e,t){this.events[e]&&this.events[e].forEach((({action:e})=>{e(t)}))}},g=e=>{(0,s.jK)({lang:e}),c.J.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return r()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,[t,i])=>("undefined"!==typeof i&&(e[t]=i),e)),{}));var i;if(this.settings=a()(this.settings,t,d),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},66668:(e,t,i)=>{e.exports=i(64066)},66700:(e,t,i)=>{"use strict";i.d(t,{ur:()=>w,uO:()=>x});var s=i(42731),n=i(8597),r=i(56245),o=i(25154),a=i(31295),c=i(25890),l=i(90766),h=i(58694),d=i(41234),u=i(5662),g=i(92719),p=i(49353);function m(e,t){const i=[];for(const s of t){if(e.start>=s.range.end)continue;if(e.end<s.range.start)break;const t=g.Q.intersect(e,s.range);g.Q.isEmpty(t)||i.push({range:t,size:s.size})}return i}function f({start:e,end:t},i){return{start:e+i,end:t+i}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,i=[]){const s=i.length-t,n=m({start:0,end:e},this.groups),r=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,s),size:e.size}))),o=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const s of e){const e=s.range.start,n=s.range.end,r=s.size;i&&r===i.size?i.range.end=n:(i={range:{start:e,end:n},size:r},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(n,o,r),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n*s.size;if(e<r)return t+Math.floor((e-i)/s.size);t+=n,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n;if(e<r)return this._paddingTop+t+(e-i)*s.size;t+=n*s.size,i=r}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,n.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),e.remove()}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(64383),E=i(1592),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const S={CurrentDragAndDropData:void 0},y={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class R{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class T{constructor(e){this.getSetSize=e?.getSetSize?e.getSetSize.bind(e):(e,t,i)=>i,this.getPosInSet=e?.getPosInSet?e.getPosInSet.bind(e):(e,t)=>t+1,this.getRole=e?.getRole?e.getRole.bind(e):e=>"listitem",this.isChecked=e?.isChecked?e.isChecked.bind(e):e=>{}}}class x{static{this.InstanceCount=0}get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,n.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,s=y){if(this.virtualDelegate=t,this.domId="list_id_"+ ++x.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new l.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new d.vl,this._onDidChangeContentWidth=new d.vl,this.onDidChangeContentHeight=d.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,s.horizontalScrolling&&s.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(s.paddingTop??0);for(const n of i)this.renderers.set(n.templateId,n);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof s.mouseSupport||s.mouseSupport),this._horizontalScrolling=s.horizontalScrolling??y.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof s.paddingBottom?0:s.paddingBottom,this.accessibilityProvider=new T(s.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(s.transformOptimization??y.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:s.smoothScrolling?125:0,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel??y.alwaysConsumeMouseWheel,horizontal:1,vertical:s.verticalScrollMode??y.verticalScrollMode,useShadows:s.useShadows??y.useShadows,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity,scrollByPage:s.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,n.ko)(this.rowsContainer,o.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,n.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,n.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=s.setRowLineHeight??y.setRowLineHeight,this.setRowHeight=s.setRowHeight??y.setRowHeight,this.supportDynamicHeights=s.supportDynamicHeights??y.supportDynamicHeights,this.dnd=s.dnd??this.disposables.add(y.dnd),this.layout(s.initialSize?.height,s.initialSize?.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...t??{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...t??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...t??{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),n={start:e,end:e+t},r=g.Q.intersect(s,n),o=new Map;for(let u=r.end-1;u>=r.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=o.get(e.templateId);t||(t=[],o.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.unshift(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},c=g.Q.intersect(a,s),l=g.Q.relativeComplement(a,s),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let d;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),d=this.items,this.items=h):(this.rangeMap.splice(e,t,h),d=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(c,p),v=g.Q.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const C=g.Q.relativeComplement(_,m);for(const u of C)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const E=l.map((e=>f(e,p))),b=[{start:e,end:e+i.length},...E].map((e=>g.Q.intersect(m,e))).reverse();for(const u of b)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=o.get(t.templateId),s=i?.pop();this.insertItemInDOM(e,s)}for(const u of o.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,n.PG)((0,n.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,n.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,n.y6)(this.domNode)})}render(e,t,i,s,n,r=!1){const o=this.getRenderRange(t,i),a=g.Q.relativeComplement(o,e).reverse(),c=g.Q.relativeComplement(e,o);if(r){const t=g.Q.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of c)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==s&&(this.rowsContainer.style.left=`-${s}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==n&&(this.rowsContainer.style.width=`${Math.max(n,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){const i=this.items[e];if(!i.row)if(t)i.row=t,i.stale=!0;else{const e=this.cache.alloc(i.templateId);i.row=e.row,i.stale||=e.isReusingConnectedDomNode}const s=this.accessibilityProvider.getRole(i.element)||"listitem";i.row.domNode.setAttribute("role",s);const r=this.accessibilityProvider.isChecked(i.element);if("boolean"===typeof r)i.row.domNode.setAttribute("aria-checked",String(!!r));else if(r){const e=e=>i.row.domNode.setAttribute("aria-checked",String(!!e));e(r.value),i.checkedDisposable=r.onDidChange((()=>e(r.value)))}if(i.stale||!i.row.domNode.parentElement){const t=this.items.at(e+1)?.row?.domNode??null;i.row.domNode.parentElement===this.rowsContainer&&i.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(i.row.domNode,t),i.stale=!1}this.updateItemInDOM(i,e);const o=this.renderers.get(i.templateId);if(!o)throw new Error(`No renderer found for template id ${i.templateId}`);o?.renderElement(i.element,e,i.row.templateData,i.size);const a=this.dnd.getDragURI(i.element);i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a&&(i.dragStartDisposable=(0,n.ko)(i.row.domNode,"dragstart",(e=>this.onDragStart(i.element,a,e)))),this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,n.y6)(e.row.domNode);const t=(0,n.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return d.Jh.filter(d.Jh.map(this.disposables.add(new r.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return d.Jh.any(d.Jh.map(this.disposables.add(new r.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),d.Jh.map(this.disposables.add(new r.f(this.domNode,o.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return d.Jh.map(this.disposables.add(new r.f(this.rowsContainer,o.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(s.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(r,i)),"undefined"===typeof e&&(e=String(r.length));const t=(0,n.$)(".monaco-drag-image");t.textContent=e;(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode).appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>t.remove()),0)}this.domNode.classList.add("dragging"),this.currentDragData=new w(r),S.CurrentDragAndDropData=new R(r),this.dnd.onDragStart?.(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),S.CurrentDragAndDropData&&"vscode-ui"===S.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(S.CurrentDragAndDropData)this.currentDragData=S.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?.type?"copy":"move",i="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],i=(0,c.dM)(i).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),i=-1===i[0]?[-1]:i;let s="boolean"!==typeof t&&t.effect&&t.effect.position?t.effect.position:"drop-target";if(n=this.currentDragFeedback,r=i,(Array.isArray(n)&&Array.isArray(r)?(0,c.aI)(n,r):n===r)&&this.currentDragFeedbackPosition===s)return!0;var n,r;if(this.currentDragFeedback=i,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(i.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&i[0]<this.length-1&&(i[0]+=1,s="drop-target-before");for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row?.domNode.classList.add(s)}this.currentDragFeedbackDisposable=(0,u.s)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row?.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,l.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&this.dnd.onDragLeave?.(this.currentDragData,e.element,e.index,e.browserEvent)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,this.dnd.onDragEnd?.(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,n.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,n.i0)((0,n.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,l.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,s=Math.floor(i/.25);return(0,E.qE)(s,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;((0,n.sb)(i)||(0,n.xZ)(i))&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const s=this.getRenderRange(e,t);let n,r;e===this.elementTop(s.start)?(n=s.start,r=0):s.end-s.start>1&&(n=s.start+1,r=this.elementTop(n)-e);let o=0;for(;;){const a=this.getRenderRange(e,t);let c=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,c=c||0!==t}if(!c){0!==o&&this.eventuallyUpdateScrollDimensions();const t=g.Q.relativeComplement(s,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const c=g.Q.relativeComplement(a,s).reverse();for(const e of c)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof n){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,s=this.elementTop(n)-r+t;this.setScrollTop(s,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(t.element);if(null!==e){const i=t.size;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-i}}if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const i=t.size;if(t.row)return t.row.domNode.style.height="",t.size=t.row.domNode.offsetHeight,0!==t.size||(0,n.QX)(t.row.domNode,(0,n.zk)(t.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!",(new Error).stack),t.lastDynamicHeightWidth=this.renderWidth,t.size-i;const{row:s}=this.cache.alloc(t.templateId);s.domNode.style.height="",this.rowsContainer.appendChild(s.domNode);const r=this.renderers.get(t.templateId);if(!r)throw new C.D7("Missing renderer for templateId: "+t.templateId);return r.renderElement(t.element,e,s.templateData,void 0),t.size=s.domNode.offsetHeight,r.disposeElement?.(t.element,e,s.templateData,void 0),this.virtualDelegate.setDynamicHeight?.(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,s.domNode.remove(),this.cache.release(s),t.size-i}getElementDomId(e){return`${this.domId}_${e}`}dispose(){for(const e of this.items)if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){const t=this.renderers.get(e.row.templateId);t&&(t.disposeElement?.(e.element,-1,e.row.templateData,void 0),t.disposeTemplate(e.row.templateData))}this.items=[],this.domNode?.remove(),this.dragOverAnimationDisposable?.dispose(),this.disposables.dispose()}}b([h.B],x.prototype,"onMouseClick",null),b([h.B],x.prototype,"onMouseDblClick",null),b([h.B],x.prototype,"onMouseMiddleClick",null),b([h.B],x.prototype,"onMouseDown",null),b([h.B],x.prototype,"onMouseOver",null),b([h.B],x.prototype,"onMouseOut",null),b([h.B],x.prototype,"onContextMenu",null),b([h.B],x.prototype,"onTouchStart",null),b([h.B],x.prototype,"onTap",null)},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>o,Xo:()=>c,ok:()=>n,xb:()=>r});var s=i(64383);function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw new Error(t)}function o(e){e||(0,s.dz)(new s.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,s.dz)(new s.D7("Assertion Failed")))}function c(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>l,fO:()=>h});var s=i(63591),n=i(5662),r=i(84001),o=i(8597),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};const l=(0,s.u1)("hoverService");let h=class extends n.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},s,r){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=s,this.hoverService=r,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new n.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const s=(0,o.sb)(e.target)?[e.target]:e.target.targetElements;for(const r of s)this.hoverDisposables.add((0,o.b2)(r,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const n=(0,o.sb)(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:n,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([c(3,r.pG),c(4,l)],h)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},67913:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,default:()=>o,editor:()=>r.editor,languages:()=>r.languages});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>r.CancellationTokenSource,Emitter:()=>r.Emitter,KeyCode:()=>r.KeyCode,KeyMod:()=>r.KeyMod,MarkerSeverity:()=>r.MarkerSeverity,MarkerTag:()=>r.MarkerTag,Position:()=>r.Position,Range:()=>r.Range,Selection:()=>r.Selection,SelectionDirection:()=>r.SelectionDirection,Token:()=>r.Token,Uri:()=>r.Uri,editor:()=>r.editor,languages:()=>r.languages});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836),i(52555),i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606);var n,r=i(80781);i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(37954),i(74800),i(25922),i(46648),i(61082),i(19856),i(97884),i(83488),i(3254),i(57680),i(796),i(89336),i(19436),i(40340),i(86492),i(52894),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(42144),i(22362),i(98408),i(61472),i(50576),i(11272),i(89518),i(99669),i(24152),i(51861),i(97791),i(23934);self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,r=(s?s.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var o=String(window.location),a=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}});const o=s},68214:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>A,R9:()=>P});var s=i(8597),n=i(83750),r=i(56245),o=i(27661),a=i(72962),c=i(47358),l=i(20370),h=i(64383),d=i(41234),u=i(16980),g=i(37882),p=i(96032),m=i(91090),f=i(5662);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function i(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,n=new RegExp(s.source,"g"),r=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,o=new RegExp(r.source,"g"),a={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>a[e];function l(e,t){if(t){if(s.test(e))return e.replace(n,c)}else if(r.test(e))return e.replace(o,c);return e}const h=/(^|[^\[])\^/g;function d(e,t){let i="string"===typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let n="string"===typeof t?t:t.source;return n=n.replace(h,"$1"),i=i.replace(e,n),s},getRegex:()=>new RegExp(i,t)};return s}function u(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function p(e,t){const i=e.replace(/\|/g,((e,t,i)=>{let s=!1,n=t;for(;--n>=0&&"\\"===i[n];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function m(e,t,i){const s=e.length;if(0===s)return"";let n=0;for(;n<s;){const r=e.charAt(s-n-1);if(r!==t||i){if(r===t||!i)break;n++}else n++}return e.slice(0,s-n)}function f(e,t,i,s){const n=t.href,r=t.title?l(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:i,href:n,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:i,href:n,title:r,text:l(o)}}class _{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:m(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){const i=e.match(/^(\s+)(?:```)/);if(null===i)return t;const s=i[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[i]=t;return i.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=m(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:m(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=m(t[0],"\n").split("\n"),i="",s="";const n=[];for(;e.length>0;){let t=!1;const r=[];let o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.test(e[o]))r.push(e[o]),t=!0;else{if(t)break;r.push(e[o])}e=e.slice(o);const a=r.join("\n"),c=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}\n${a}`:a,s=s?`${s}\n${c}`:c;const l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=l,0===e.length)break;const h=n[n.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,r=t.raw+"\n"+e.join("\n"),o=this.blockquote(r);n[n.length-1]=o,i=i.substring(0,i.length-t.raw.length)+o.raw,s=s.substring(0,s.length-t.text.length)+o.text;break}if("list"!==h?.type);else{const t=h,r=t.raw+"\n"+e.join("\n"),o=this.list(r);n[n.length-1]=o,i=i.substring(0,i.length-h.raw.length)+o.raw,s=s.substring(0,s.length-t.raw.length)+o.raw,e=r.substring(n[n.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:i,tokens:n,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim();const s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");const r=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let i=!1,s="",a="";if(!(t=r.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],h=!c.trim(),d=0;if(this.options.pedantic?(d=2,a=c.trimStart()):h?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,a=c.slice(d),d+=t[1].length),h&&/^ *$/.test(l)&&(s+=l+"\n",e=e.substring(l.length+1),i=!0),!i){const t=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){const o=e.split("\n",1)[0];if(l=o,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(l))break;if(r.test(l))break;if(t.test(l))break;if(i.test(e))break;if(l.search(/[^ ]/)>=d||!l.trim())a+="\n"+l.slice(d);else{if(h)break;if(c.search(/[^ ]/)>=4)break;if(n.test(c))break;if(r.test(c))break;if(i.test(c))break;a+="\n"+l}h||l.trim()||(h=!0),s+=o+"\n",e=e.substring(o.length+1),c=l.slice(d)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(s)&&(o=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(a),g&&(u="[ ] "!==g[0],a=a.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:a,tokens:[]}),n.raw+=s}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){const t=n.items[e].tokens.filter((e=>"space"===e.type)),i=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const i=p(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(let e=0;e<i.length;e++)r.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:r.align[e]});for(const e of n)r.rows.push(p(e,r.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:r.align[t]}))));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:l(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=m(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let i=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return-1}(t[2],"()");if(e>-1){const i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),f(t,{href:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const e=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return f(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!i.match(/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!i||this.rules.inline.punctuation.exec(i))){const i=[...s[0]].length-1;let n,r,o=i,a=0;const c="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);null!=(s=c.exec(t));){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(r=[...n].length,s[3]||s[4]){o+=r;continue}if((s[5]||s[6])&&i%3&&!((i+r)%3)){a+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+a);const t=[...s[0]][0].length,c=e.slice(0,i+s.index+t+r);if(Math.min(i,r)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const i=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return i&&s&&(e=e.substring(1,e.length-1)),e=l(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,i;return"@"===t[2]?(e=l(t[1]),i="mailto:"+e):(e=l(t[1]),i=e),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])e=l(t[0]),i="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=l(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:l(t[0]),{type:"text",raw:t[0],text:e}}}}const v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,E=d(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,C).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\.|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),R="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",L).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),k={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:v,html:T,lheading:E,list:w,newline:/^(?: *(?:\n|$))+/,paragraph:x,table:g,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),N={...k,table:A,paragraph:d(b).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex()},I={...k,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(b).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",E).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D=/^( {2,}|\\)\n(?!\s*$)/,M="\\p{P}\\p{S}",P=d(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,M).getRegex(),F=d(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,M).getRegex(),U=d("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,M).getRegex(),H=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,M).getRegex(),B=d(/\\([punct])/,"gu").replace(/punct/g,M).getRegex(),W=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=d(L).replace("(?:--\x3e|$)","--\x3e").getRegex(),z=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j=d(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=d(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",S).getRegex(),Y=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),q={_backpedal:g,anyPunctuation:B,autolink:W,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:D,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:U,emStrongRDelimUnd:H,escape:O,link:j,nolink:Y,punctuation:P,reflink:K,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",Y).getRegex(),tag:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},$={...q,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},Q={...q,escape:d(O).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...Q,br:d(D).replace("{2,}","*").getRegex(),text:d(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:N,pedantic:I},J={normal:q,gfm:Q,breaks:X,pedantic:$};class ee{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new _,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:Z.normal,inline:J.normal};this.options.pedantic?(i.block=Z.pedantic,i.inline=J.pedantic):this.options.gfm&&(i.block=Z.gfm,this.options.breaks?i.inline=J.breaks:i.inline=J.gfm),this.tokenizer.rules=i}static get rules(){return{block:Z,inline:J}}static lex(e,t){return new ee(t).lex(e)}static lexInline(e,t){return new ee(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){let s,n,r;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,i)=>t+" ".repeat(i.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(s=i.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))))if(s=this.tokenizer.space(e))e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);else if(s=this.tokenizer.code(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(s):(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.fences(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.heading(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.hr(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.blockquote(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.list(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.html(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.def(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}):(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.table(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.lheading(e))e=e.substring(s.raw.length),t.push(s);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r)))n=t[t.length-1],i&&"paragraph"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s),i=r.length!==e.length,e=e.substring(s.raw.length);else if(s=this.tokenizer.text(e))e=e.substring(s.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,s,n,r,o,a,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(i=s.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,a))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(n))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),o=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}class te{options;parser;constructor(t){this.options=t||e.defaults}space(e){return""}code({text:e,lang:t,escaped:i}){const s=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+"\n";return s?'<pre><code class="language-'+l(s)+'">'+(i?n:l(n,!0))+"</code></pre>\n":"<pre><code>"+(i?n:l(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,i=e.start;let s="";for(let r=0;r<e.items.length;r++){const t=e.items[r];s+=this.listitem(t)}const n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+s+"</"+n+">\n"}listitem(e){let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);t+=this.tablerow({text:i});let s="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];i="";for(let e=0;e<t.length;e++)i+=this.tablecell(t[e]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),n=u(e);if(null===n)return s;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i}){const s=u(e);if(null===s)return i;let n=`<img src="${e=s}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class ie{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class se{options;renderer;textRenderer;constructor(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ie}static parse(e,t){return new se(t).parse(e)}static parseInline(e,t){return new se(t).parseInline(e)}parse(e,t=!0){let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=n,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}const r=n;switch(r.type){case"space":i+=this.renderer.space(r);continue;case"hr":i+=this.renderer.hr(r);continue;case"heading":i+=this.renderer.heading(r);continue;case"code":i+=this.renderer.code(r);continue;case"table":i+=this.renderer.table(r);continue;case"blockquote":i+=this.renderer.blockquote(r);continue;case"list":i+=this.renderer.list(r);continue;case"html":i+=this.renderer.html(r);continue;case"paragraph":i+=this.renderer.paragraph(r);continue;case"text":{let n=r,o=this.renderer.text(n);for(;s+1<e.length&&"text"===e[s+1].type;)n=e[++s],o+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):o;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=e||"";continue}}const r=n;switch(r.type){case"escape":case"text":i+=t.text(r);break;case"html":i+=t.html(r);break;case"link":i+=t.link(r);break;case"image":i+=t.image(r);break;case"strong":i+=t.strong(r);break;case"em":i+=t.em(r);break;case"codespan":i+=t.codespan(r);break;case"br":i+=t.br(r);break;case"del":i+=t.del(r);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}}class ne{options;constructor(t){this.options=t||e.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class re{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(ee.lex,se.parse);parseInline=this.parseMarkdown(ee.lexInline,se.parseInline);Parser=se;Renderer=te;TextRenderer=ie;Lexer=ee;Tokenizer=_;Hooks=ne;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(const s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)i=i.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;i=i.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const n=e[s].flat(1/0);i=i.concat(this.walkTokens(n,t))})):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=i.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),i.extensions=t),e.renderer){const t=this.defaults.renderer||new te(this.defaults);for(const i in e.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const s=i,n=e.renderer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _(this.defaults);for(const i in e.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const s=i,n=e.tokenizer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ne;for(const i in e.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if("options"===i)continue;const s=i,n=e.hooks[s],r=t[s];ne.passThroughHooks.has(i)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>r.call(t,e)));const i=n.call(t,e);return r.call(t,i)}:t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(s.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ee.lex(e,t??this.defaults)}parser(e,t){return se.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,s)=>{const n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("undefined"===typeof i||null===i)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof i)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then((t=>e(t,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(i=r.hooks.preprocess(i));let s=e(i,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let n=t(s,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(a){return o(a)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+l(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}const oe=new re;function ae(e,t){return oe.parse(e,t)}ae.options=ae.setOptions=function(e){return oe.setOptions(e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.getDefaults=t,ae.defaults=e.defaults,ae.use=function(...e){return oe.use(...e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.walkTokens=function(e,t){return oe.walkTokens(e,t)},ae.parseInline=oe.parseInline,ae.Parser=se,ae.parser=se.parse,ae.Renderer=te,ae.TextRenderer=ie,ae.Lexer=ee,ae.lexer=ee.lex,ae.Tokenizer=_,ae.Hooks=ne,ae.parse=ae;const ce=ae.options,le=ae.setOptions,he=ae.use,de=ae.walkTokens,ue=ae.parseInline,ge=ae,pe=se.parse,me=ee.lex;e.Hooks=ne,e.Lexer=ee,e.Marked=re,e.Parser=se,e.Renderer=te,e.TextRenderer=ie,e.Tokenizer=_,e.getDefaults=t,e.lexer=me,e.marked=ae,e.options=ce,e.parse=ge,e.parseInline=ue,e.parser=pe,e.setOptions=le,e.use=he,e.walkTokens=de},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Hooks||exports.Hooks,_.Lexer||exports.Lexer,_.Marked||exports.Marked,_.Parser||exports.Parser;var v=_.Renderer||exports.Renderer,C=(_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.defaults||exports.defaults),E=(_.getDefaults||exports.getDefaults,_.lexer||exports.lexer),b=(_.marked||exports.marked,_.options||exports.options,_.parse||exports.parse),S=(_.parseInline||exports.parseInline,_.parser||exports.parser),y=(_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(908)),w=i(36456),R=i(10146),L=i(89403),T=i(91508),x=i(79400);const k=Object.freeze({image:({href:e,title:t,text:i})=>{let s=[],n=[];return e&&(({href:e,dimensions:s}=(0,u.nI)(e)),n.push(`src="${(0,u.oO)(e)}"`)),i&&n.push(`alt="${(0,u.oO)(i)}"`),t&&n.push(`title="${(0,u.oO)(t)}"`),s.length&&(n=n.concat(s)),"<img "+n.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i);return"string"!==typeof e?"":(e===s&&(s=(0,u._W)(s)),t="string"===typeof t?(0,u.oO)((0,u._W)(t)):"",`<a href="${e=(e=(0,u._W)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${s}</a>`)}});function A(e,t={},i={}){const n=new f.Cm;let u=!1;const m=(0,o.n)(t),_=function(t){let i;try{i=(0,y.qg)(decodeURIComponent(t))}catch(s){}return i?(i=(0,R.PI)(i,(t=>e.uris&&e.uris[t]?x.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},L=function(t,i){const s=e.uris&&e.uris[t];let n=x.r.revive(s);return i?t.startsWith(w.ny.data+":")?t:(n||(n=x.r.parse(t)),w.zl.uriToBrowserUri(n).toString(!0)):n?x.r.parse(t).toString()===n.toString()?t:(n.query&&(n=n.with({query:_(n.query)})),n.toString()):t},A=new v;A.image=k.image,A.link=k.link,A.paragraph=k.paragraph;const O=[],M=[];if(t.codeBlockRendererSync?A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRendererSync(N(i),e);return M.push([s,n]),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}:t.codeBlockRenderer&&(A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRenderer(N(i),e);return O.push(n.then((e=>[s,e]))),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}),t.actionHandler){const i=function(i){let s=i.target;if("A"===s.tagName||(s=s.parentElement,s&&"A"===s.tagName))try{let n=s.dataset.href;n&&(e.baseUri&&(n=I(x.r.from(e.baseUri),n)),t.actionHandler.callback(n,i))}catch(n){(0,h.dz)(n)}finally{i.preventDefault()}},n=t.actionHandler.disposables.add(new r.f(m,"click")),o=t.actionHandler.disposables.add(new r.f(m,"auxclick"));t.actionHandler.disposables.add(d.Jh.any(n.event,o.event)((e=>{const t=new c.P(s.zk(m),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(s.ko(m,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(A.html=({text:i})=>{if(t.sanitizerOptions?.replaceWithPlaintext)return(0,T.ih)(i);return(e.isTrusted?i.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?i:""}),i.renderer=A;let P,F=e.value??"";if(F.length>1e5&&(F=`${F.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(F=(0,g.sA)(F)),t.fillInIncompleteTokens){const e={...C,...i},t=function(e){for(let t=0;t<j;t++){const t=K(e);if(!t)break;e=t}return e}(E(F,e));P=S(t,e)}else P=b(F,{...i,async:!1});if(e.supportThemeIcons){P=(0,l.n)(P).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const U=(new DOMParser).parseFromString(D({isTrusted:e.isTrusted,...t.sanitizerOptions},P),"text/html");if(U.body.querySelectorAll("img, audio, video, source").forEach((i=>{const n=i.getAttribute("src");if(n){let o=n;try{e.baseUri&&(o=I(x.r.from(e.baseUri),o))}catch(r){}if(i.setAttribute("src",L(o,!0)),t.remoteImageIsAllowed){const e=x.r.parse(o);e.scheme===w.ny.file||e.scheme===w.ny.data||t.remoteImageIsAllowed(e)||i.replaceWith(s.$("",void 0,i.outerHTML))}}})),U.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let s=L(i,!1);e.baseUri&&(s=I(x.r.from(e.baseUri),i)),t.dataset.href=s}})),m.innerHTML=D({isTrusted:e.isTrusted,...t.sanitizerOptions},U.body.innerHTML),O.length>0)Promise.all(O).then((e=>{if(u)return;const i=new Map(e),n=m.querySelectorAll("div[data-code]");for(const t of n){const e=i.get(t.dataset.code??"");e&&s.Ln(t,e)}t.asyncRenderCallback?.()}));else if(M.length>0){const e=new Map(M),t=m.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(i.dataset.code??"");t&&s.Ln(i,t)}}if(t.asyncRenderCallback)for(const r of m.getElementsByTagName("img")){const e=n.add(s.ko(r,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:m,dispose:()=>{u=!0,n.dispose()}}}function N(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function I(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,L.o1)(e,t).toString():(0,L.o1)((0,L.pD)(e),t).toString()}const O=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function D(e,t){const{config:i,allowedSchemes:r}=function(e){const t=[w.ny.http,w.ny.https,w.ny.mailto,w.ny.data,w.ny.file,w.ny.vscodeFileResource,w.ny.vscodeRemote,w.ny.vscodeRemoteResource];e.isTrusted&&t.push(w.ny.command);return{config:{ALLOWED_TAGS:e.allowedTags??[...s.TT],ALLOWED_ATTR:M,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),o=new f.Cm;o.add(ie("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===e.attributes.getNamedItem("type")?.value){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}))),o.add(ie("uponSanitizeElement",((t,i)=>{if("input"===i.tagName&&("checkbox"===t.attributes.getNamedItem("type")?.value?t.setAttribute("disabled",""):e.replaceWithPlaintext||t.remove()),e.replaceWithPlaintext&&!i.allowedTags[i.tagName]&&"body"!==i.tagName&&t.parentElement){let e,s;if("#comment"===i.tagName)e=`\x3c!--${t.textContent}--\x3e`;else{const n=O.includes(i.tagName),r=t.attributes.length?" "+Array.from(t.attributes).map((e=>`${e.name}="${e.value}"`)).join(" "):"";e=`<${i.tagName}${r}>`,n||(s=`</${i.tagName}>`)}const n=document.createDocumentFragment(),r=t.parentElement.ownerDocument.createTextNode(e);n.appendChild(r);const o=s?t.parentElement.ownerDocument.createTextNode(s):void 0;for(;t.firstChild;)n.appendChild(t.firstChild);o&&n.appendChild(o),t.nodeType===Node.COMMENT_NODE?t.parentElement.insertBefore(n,t):t.parentElement.replaceChild(n,t)}}))),o.add(s.a4(r));try{return n.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.dispose()}}const M=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"];function P(e){return"string"===typeof e?e:function(e,t){let i=e.value??"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return D({isTrusted:!1},b(i,{async:!1,renderer:t?B.value:H.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>F.get(e)??e))).toString()}(e)}const F=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function U(){const e=new v;return e.code=({text:e})=>e,e.blockquote=({text:e})=>e+"\n",e.html=e=>"",e.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.hr=()=>"",e.list=function({items:e}){return e.map((e=>this.listitem(e))).join("\n")+"\n"},e.listitem=({text:e})=>e+"\n",e.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.table=function({header:e,rows:t}){return e.map((e=>this.tablecell(e))).join(" ")+"\n"+t.map((e=>e.map((e=>this.tablecell(e))).join(" "))).join("\n")+"\n"},e.tablerow=({text:e})=>e,e.tablecell=function({tokens:e}){return this.parser.parseInline(e)},e.strong=({text:e})=>e,e.em=({text:e})=>e,e.codespan=({text:e})=>e,e.br=e=>"\n",e.del=({text:e})=>e,e.image=e=>"",e.text=({text:e})=>e,e.link=({text:e})=>e,e}const H=new m.d((e=>U())),B=new m.d((()=>{const e=U();return e.code=({text:e})=>`\n\`\`\`\n${e}\n\`\`\`\n`,e}));function W(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function V(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const i=e.tokens[t];if("text"===i.type){const s=i.raw.split("\n"),n=s[s.length-1];if(n.includes("`"))return Y(e);if(n.includes("**"))return ee(e,"**");if(n.match(/\*\w/))return q(e);if(n.match(/(^|\s)__\w/))return J(e);if(n.match(/(^|\s)_\w/))return $(e);if(n.match(/(^|\s)\[.*\]\(\w*/)||z(n)&&e.tokens.slice(0,t).some((e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/)))){const i=e.tokens.slice(t+1);return"link"===i[0]?.type&&"text"===i[1]?.type&&i[1].raw.match(/^ *"[^"]*$/)||n.match(/^[^"]* +"[^"]*$/)?X(e):Q(e)}if(n.match(/(^|\s)\[\w*/))return Z(e)}}}function z(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function G(e){const t=e.items[e.items.length-1],i=t.tokens?t.tokens[t.tokens.length-1]:void 0;let s;if("text"!==i?.type||"inRawBlock"in t||(s=V(i)),!s||"paragraph"!==s.type)return;const n=W(e.items.slice(0,-1)),r=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!r)return;const o=r+W(t.tokens.slice(0,-1))+s.raw,a=E(n+o)[0];return"list"===a.type?a:void 0}const j=3;function K(e){let t,i;for(t=0;t<e.length;t++){const s=e[t];if("paragraph"===s.type&&s.raw.match(/(\n|^)\|/)){i=te(e.slice(t));break}if(t===e.length-1&&"list"===s.type){const e=G(s);if(e){i=[e];break}}if(t===e.length-1&&"paragraph"===s.type){const e=V(s);if(e){i=[e];break}}}if(i){const s=[...e.slice(0,t),...i];return s.links=e.links,s}return null}function Y(e){return ee(e,"`")}function q(e){return ee(e,"*")}function $(e){return ee(e,"_")}function Q(e){return ee(e,")")}function X(e){return ee(e,'")')}function Z(e){return ee(e,"](https://microsoft.com)")}function J(e){return ee(e,"__")}function ee(e,t){const i=W(Array.isArray(e)?e:[e]);return E(i+t)[0]}function te(e){const t=W(e),i=t.split("\n");let s,n=!1;for(let r=0;r<i.length;r++){const e=i[r].trim();if("undefined"===typeof s&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(s=t.length)}else if("number"===typeof s){if(!e.match(/^\s*\|/))return;if(r!==i.length-1)return;n=!0}}if("number"===typeof s&&s>0){const e=n?i.slice(0,-1).join("\n"):t,r=!!e.match(/\|\s*$/),o=e+(r?"":"|")+`\n|${" --- |".repeat(s)}`;return E(o)}}function ie(e,t){return n.$w(e,t),(0,f.s)((()=>n.SV(e)))}},68250:(e,t,i)=>{"use strict";i.d(t,{u:()=>L});var s=i(90766),n=i(16980),r=i(83069),o=i(87289),a=i(57039),c=i(10154),l=i(18938),h=i(7142),d=i(57286),u=i(21478),g=i(84001),p=i(49099),m=i(56942),f=i(78209),_=i(98067),v=i(3730),C=i(25890),E=i(98031),b=i(67220),S=i(50091),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};class R extends a.mm{constructor(e,t,i,s){super(10,t,e.item.anchor.range,i,s,!0),this.part=e}}let L=class extends d.xJ{constructor(e,t,i,s,n,r,o,a,c){super(e,t,i,r,a,s,n,c),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){if(!u.M.get(this._editor))return null;if(6!==e.target.type)return null;const t=e.target.detail.injectedText?.options;return t instanceof o.Ho&&t.attachedData instanceof u.z?new R(t.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof R?new s.AE((async t=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let r,o;if("string"===typeof s.item.hint.tooltip?r=(new n.Bc).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&t.emitOne(new d.eH(this,e.range,[r],!1,0)),(0,C.EI)(s.item.hint.textEdits)&&t.emitOne(new d.eH(this,e.range,[(new n.Bc).appendText((0,f.kg)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof s.part.tooltip?o=(new n.Bc).appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&t.emitOne(new d.eH(this,e.range,[o],!1,1)),s.part.location||s.part.command){let i;const r="altKey"===this._editor.getOption(78)?_.zx?(0,f.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,f.kg)("links.navigate.kb.meta","ctrl + click"):_.zx?(0,f.kg)("links.navigate.kb.alt.mac","option + click"):(0,f.kg)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new n.Bc).appendText((0,f.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",r)):s.part.location?i=(new n.Bc).appendText((0,f.kg)("hint.def","Go to Definition ({0})",r)):s.part.command&&(i=new n.Bc(`[${(0,f.kg)("hint.cmd","Execute Command")}](${(0,v.CN)(s.part.command)} "${s.part.command.title}") (${r})`,{isTrusted:!0})),i&&t.emitOne(new d.eH(this,e.range,[i],!1,1e4))}const a=await this._resolveInlayHintLabelPartHover(s,i);for await(const e of a)t.emitOne(e)})):s.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return s.AE.EMPTY;const{uri:i,range:o}=e.part.location,a=await this._resolverService.createModelReference(i);try{const i=a.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,h.U)(this._languageFeaturesService.hoverProvider,i,new r.y(o.startLineNumber,o.startColumn),t).filter((e=>!(0,n.it)(e.hover.contents))).map((t=>new d.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):s.AE.EMPTY}finally{a.dispose()}}};L=y([w(1,c.L),w(2,p.C),w(3,E.b),w(4,b.TN),w(5,g.pG),w(6,l.ITextModelService),w(7,m.ILanguageFeaturesService),w(8,S.d)],L)},68310:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var s=i(18447),n=i(64383),r=i(79400),o=i(36677),a=i(23750),c=i(50091),l=i(56942),h=i(52363),d=i(84001);async function u(e,t,i,s=!0){return _(new p,e,t,i,s)}function g(e,t,i,s){return Promise.resolve(i.provideColorPresentations(e,t,s))}class p{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({colorInfo:r,provider:e});return Array.isArray(n)}}class m{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(n)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const r=await e.provideColorPresentations(t,this.colorInfo,s.XO.None);return Array.isArray(r)&&n.push(...r),Array.isArray(r)}}async function _(e,t,i,s,r){let o,a=!1;const c=[],l=t.ordered(i);for(let u=l.length-1;u>=0;u--){const t=l[u];if(t instanceof h.L)o=t;else try{await e.compute(t,i,s,c)&&(a=!0)}catch(d){(0,n.M_)(d)}}return a?c:o&&r?(await e.compute(o,i,s,c),c):[]}function v(e,t){const{colorProvider:i}=e.get(l.ILanguageFeaturesService),s=e.get(a.IModelService).getModel(t);if(!s)throw(0,n.Qg)();return{model:s,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(d.pG).getValue("editor.defaultColorDecorators",{resource:t})}}c.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof r.r))throw(0,n.Qg)();const{model:o,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:c}=v(e,i);return _(new m,a,o,s.XO.None,c)})),c.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:c,range:l}=a;if(!(c instanceof r.r)||!Array.isArray(i)||4!==i.length||!o.Q.isIRange(l))throw(0,n.Qg)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=v(e,c),[g,p,m,C]=i;return _(new f({range:l,color:{red:g,green:p,blue:m,alpha:C}}),d,h,s.XO.None,u)}))},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,Eq:()=>E,M0:()=>R,Mz:()=>w,No:()=>y,bs:()=>b});var s,n=i(60413),r=i(8597),o=i(56245),a=i(72962),c=i(5239),l=i(90766),h=i(41234),d=i(5662),u=i(44320),g=i(91508),p=i(69785),m=i(75326),f=i(253),_=i(18801),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(s||(s={}));const E={forceCopyWithSyntaxHighlighting:!1};class b{static{this.INSTANCE=new b}constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}class S{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let y=class extends d.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,s,n,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=s,this._accessibilityService=n,this._logService=r,this._onFocus=this._register(new h.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new h.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new h.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new d.HE),this._asyncTriggerCut=this._register(new l.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),o=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new S;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&o&&o.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===o.code||"ArrowLeft"===o.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=w.getTextData(e.clipboardData);t&&(i=i||b.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new l.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return r.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(c.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),s=i-e;if(e=i,s<5)return;const n=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),n<100)return;if(!this._textAreaState.selection)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const o=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===o&&this._textAreaState.selectionEnd===a)return;const l=this._textAreaState.deduceEditorPosition(o),h=this._host.deduceModelPosition(l[0],l[1],l[2]),d=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(d[0],d[1],d[2]),g=new m.L(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};b.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&w.setTextData(e.clipboardData,t.text,t.html,i)}};y=v([C(4,f.j),C(5,_.rr)],y);const w={getTextData(e){const t=e.getData(u.K.text);let i=null;const s=e.getData("vscode-editor-data");if("string"===typeof s)try{i=JSON.parse(s),1!==i.version&&(i=null)}catch(n){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,s){e.setData(u.K.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(s))}};class R extends d.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new o.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new o.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new o.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new o.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new o.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new o.f(this._actual,"beforeinput")).event,this.onInput=this._register(new o.f(this._actual,"input")).event,this.onCut=this._register(new o.f(this._actual,"cut")).event,this.onCopy=this._register(new o.f(this._actual,"copy")).event,this.onPaste=this._register(new o.f(this._actual,"paste")).event,this.onFocus=this._register(new o.f(this._actual,"focus")).event,this.onBlur=this._register(new o.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>c.p.onKeyDown()))),this._register(this.onBeforeInput((()=>c.p.onBeforeInput()))),this._register(this.onInput((()=>c.p.onInput()))),this._register(this.onKeyUp((()=>c.p.onKeyUp()))),this._register(r.ko(this._actual,s.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=r.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&r.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const s=this._actual;let o=null;const a=r.jG(s);o=a?a.activeElement:r.bq();const c=r.zk(o),l=o===s,h=s.selectionStart,d=s.selectionEnd;if(l&&h===t&&d===i)n.gm&&c.parent!==c&&s.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),void(n.gm&&c.parent!==c&&s.focus());try{const e=r.zK(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),r.wk(s,e)}catch(u){}}}}},68887:(e,t,i)=>{"use strict";var s=i(90766),n=i(10350),r=i(16980),o=i(5662),a=i(98067),c=i(91508),l=i(31450),h=i(87908),d=i(87289),u=i(74855),g=i(10920),p=i(10154),m=i(32398),f=i(57039),_=i(57286),v=i(8597),C=i(11799),E=i(36921),b=i(20492),S=i(63591),y=i(56245),w=i(72962),R=i(25154),L=i(41234),T=i(49099),x=i(42904),k=i(67220),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends o.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},s,n){super(),this._link=t,this._hoverService=s,this._enabled=!0,this.el=(0,v.BC)(e,(0,v.$)("a.monaco-link",{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=i.hoverDelegate??(0,x.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new y.f(this.el,"click")),o=this._register(new y.f(this.el,"keypress")),a=L.Jh.chain(o.event,(e=>e.map((e=>new w.Z(e))).filter((e=>3===e.keyCode)))),c=this._register(new y.f(this.el,R.B.Tap)).event;this._register(R.q.addTarget(this.el));const l=L.Jh.any(r.event,a,c);this._register(l((e=>{this.enabled&&(v.fs.stop(e,!0),i?.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??"":!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};I=A([N(3,k.TN),N(4,T.C)],I);var O=i(61394),D=i(25689),M=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},P=function(e,t){return function(i,s){t(i,s,e)}};let F=class extends o.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(U))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,26)}};F=M([P(1,S._Y)],F);let U=class extends o.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(b.T,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.w_)(this.element)}show(e){(0,v.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.BC)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${D.L.asCSSSelector(e.icon)}`));const s=(0,v.BC)(this.element,(0,v.$)("div.message-container"));if(s.setAttribute("aria-hidden","true"),s.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.BC)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(I,this.messageActionsContainer,{...r,tabIndex:-1},{}));const n=(0,v.BC)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new C.E(n)),this.actionBar.push(this._register(new E.rc("banner.close","Close Banner",D.L.asClassName(O.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};U=M([P(0,S._Y)],U);var H=i(78209),B=i(84001),W=i(51467),V=i(51465),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};const j=(0,O.pU)("extensions-warning-message",n.W.warning,H.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let K=class extends o.jG{static{this.ID="editor.contrib.unicodeHighlighter"}constructor(e,t,i,s){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new re};else if(e.ambiguousCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new se};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:H.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ne}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:j,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(s.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(126),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Y(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new q(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};K=z([G(1,g.IEditorWorkerService),G(2,V.L),G(3,S._Y)],K);let Y=class extends o.jG{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};Y=z([G(3,g.IEditorWorkerService)],Y);class q extends o.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const s of e){const e=u.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,s);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const s of i.ranges)t.push({range:s,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:J(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}const $=H.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Q=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=this._editor.getContribution(K.ID);if(!s)return[];const n=[],o=new Set;let a=300;for(const l of t){const e=s.getDecorationInfo(l);if(!e)continue;const t=i.getValueInRange(l.range).codePointAt(0),h=Z(t);let d;switch(e.reason.kind){case 0:d=(0,c.aC)(e.reason.confusableWith)?H.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0))):H.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0)));break;case 1:d=H.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:d=H.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(o.has(d))continue;o.add(d);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=H.kg("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${oe.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new r.Bc("",!0).appendMarkdown(d).appendText(" ").appendLink(p,g,$);n.push(new _.eH(this,l.range,[m],!1,a++))}return n}renderHoverParts(e,t){return(0,_.fm)(e,t,this._editor,this._languageService,this._openerService)}};function X(e){return`U+${e.toString(16).padStart(4,"0")}`}function Z(e){let t=`\`${X(e)}\``;return c.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(e,t)}Q=z([G(1,p.L),G(2,T.C)],Q);class ee{constructor(){this.map=new Map}static{this.instance=new ee}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let s=this.map.get(i);return s||(s=d.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,s)),s}}class te extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeComments,!1,2)}}class ie extends l.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeStrings,!1,2)}}class se extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters"}constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.ambiguousCharacters,!1,2)}}class ne extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters"}constructor(){super({id:ne.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.invisibleCharacters,!1,2)}}class re extends l.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters"}constructor(){super({id:re.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.nonBasicASCII,!1,2)}}class oe extends l.ks{static{this.ID="editor.action.unicodeHighlight.showExcludeOptions"}constructor(){super({id:oe.ID,label:H.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:s,reason:n,inString:r,inComment:o}=i,a=String.fromCodePoint(s),l=e.get(W.GK),d=e.get(B.pG);const u=[];if(0===n.kind)for(const c of n.notAmbiguousInLocales)u.push({label:H.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',c),run:async()=>{ae(d,[c])}});if(u.push({label:function(e){return c.y_.isInvisibleCharacter(e)?H.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",X(e)):H.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${X(e)} "${a}"`)}(s),run:()=>async function(e,t){const i=e.getValue(h.Of.allowedCharacters);let s;s="object"===typeof i&&i?i:{};for(const n of t)s[String.fromCodePoint(n)]=!0;await e.updateValue(h.Of.allowedCharacters,s,2)}(d,[s])}),o){const e=new te;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(r){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(d)})}if(0===n.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(1===n.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(2===n.kind){const e=new re;u.push({label:e.label,run:async()=>e.runAction(d)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(n);const g=await l.pick(u,{title:$});g&&await g.run()}}async function ae(e,t){const i=e.inspect(h.Of.allowedLocales).user?.value;let s;s="object"===typeof i&&i?Object.assign({},i):{};for(const n of t)s[n]=!0;await e.updateValue(h.Of.allowedLocales,s,2)}(0,l.Fl)(se),(0,l.Fl)(ne),(0,l.Fl)(re),(0,l.Fl)(oe),(0,l.HW)(K.ID,K,1),f.B2.register(Q)},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>o,_3:()=>c,aY:()=>h,uY:()=>l});var s=i(25890),n=i(64383),r=i(74444);class o{static trivial(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,s.pN)(e,((e,s)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():c.zero,s?s.getStarts():new c(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new r.L(e.offset1,t.offset1),new r.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const i of e){if(t&&!(t.seq1Range.endExclusive<=i.seq1Range.start&&t.seq2Range.endExclusive<=i.seq2Range.start))throw new n.D7("Sequence diffs must be sorted");t=i}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new c(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new c(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class c{static{this.zero=new c(0,0)}static{this.max=new c(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new c(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class l{static{this.instance=new l}isValid(){return!0}}class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new n.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},69259:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var s=i(41234),n=i(5662),r=i(91508),o=i(99908),a=i(83941),c=i(1646),l=i(46359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends n.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const 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}))})),l.O.as(c.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;h.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let s=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),s=t.mimetypes[0]),s||(s=`text/x-${i}`,e.mimetypes.push(s)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const r of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(const r of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filepattern:r},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,firstline:t},this._warnOnOverwrite)}catch(c){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,c)}}e.aliases.push(i);let n=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(n=0===t.aliases.length?[null]:t.aliases),null!==n)for(const r of n)r&&0!==r.length&&e.aliases.push(r);const a=null!==n&&n.length>0;if(a&&null===n[0]);else{const t=(a?n[0]:null)||i;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},69785:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>r,_O:()=>o});var s=i(91508),n=i(36677);const r=!1;class o{static{this.EMPTY=new o("",0,0,null,void 0)}constructor(e,t,i,s,n){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=s,this.newlineCountBeforeSelection=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),s=e.getSelectionStart(),n=e.getSelectionEnd();let r;if(t){i.substring(0,s)===t.value.substring(0,t.selectionStart)&&(r=t.newlineCountBeforeSelection)}return new o(i,s,n,null,r)}collapseSelection(){return this.selectionStart===this.value.length?this:new o(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){r&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,i,-1)}_finishDeduceEditorPosition(e,t,i){let s=0,n=-1;for(;-1!==(n=t.indexOf("\n",n+1));)s++;return[e,i*t.length,s]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const n=Math.min(s.Qp(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(n,e.value.length-o),c=t.value.substring(n,t.value.length-o),l=e.selectionStart-n,h=e.selectionEnd-n,d=t.selectionStart-n,u=t.selectionEnd-n;if(r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${l}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${c}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:c,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:c,replacePrevCharCnt:h-l,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(s.Qp(e.value,t.value),e.selectionEnd),n=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),a=t.value.substring(i,t.value.length-n),c=e.selectionStart-i,l=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${c}, selectionEnd: ${l}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:l,replaceNextCharCnt:o.length-l,positionDelta:d-a.length}}}class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,s=i+1,r=i+t;return new n.Q(s,1,r+1,1)}static fromEditorSelection(e,t,i,s){const r=500,c=a._getPageOfLine(t.startLineNumber,i),l=a._getRangeForPage(c,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=l.intersectRanges(new n.Q(1,1,t.startLineNumber,t.startColumn));if(s&&e.getValueLengthInRange(u,1)>r){const t=e.modifyPosition(u.getEndPosition(),-500);u=n.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=d.intersectRanges(new n.Q(t.endLineNumber,t.endColumn,p,m));if(s&&e.getValueLengthInRange(f,1)>r){const t=e.modifyPosition(f.getStartPosition(),r);f=n.Q.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(c===h||c+1===h)v=e.getValueInRange(t,1);else{const i=l.intersectRanges(t),s=d.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(s,1)}return s&&v.length>1e3&&(v=v.substring(0,r)+String.fromCharCode(8230)+v.substring(v.length-r,v.length)),new o(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},70125:(e,t,i)=>{"use strict";i.d(t,{r:()=>l});var s=i(25890),n=i(631),r=i(78209);function o(e,t){return t&&(e.stack||e.stacktrace)?r.kg("stackTrace.format","{0}: {1}",c(e),a(e.stack)||a(e.stacktrace)):c(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function c(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?r.kg("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function l(e=null,t=!1){if(!e)return r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=s.Yc(e),n=l(i[0],t);return i.length>1?r.kg("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(n.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return o(i.error,t);if(i.exception)return o(i.exception,t)}return e.stack?o(e,t):e.message?e.message:r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},70206:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,s=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(s=0;256!=s;++s)n[s]=e[s];for(s=0;256!=s;++s)for(i=e[s],t=256+s;t<4096;t+=256)i=n[t]=i>>>8^e[255&i];var r=[];for(s=1;16!=s;++s)r[s-1]="undefined"!==typeof Int32Array?n.subarray(256*s,256*s+256):n.slice(256*s,256*s+256);return r}(t),s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],c=i[5],l=i[6],h=i[7],d=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var s=~i,n=0,r=e.length;n<r;)s=s>>>8^t[255&(s^e.charCodeAt(n++))];return~s},e.buf=function(e,i){for(var v=~i,C=e.length-15,E=0;E<C;)v=_[e[E++]^255&v]^f[e[E++]^v>>8&255]^m[e[E++]^v>>16&255]^p[e[E++]^v>>>24]^g[e[E++]]^u[e[E++]]^d[e[E++]]^h[e[E++]]^l[e[E++]]^c[e[E++]]^a[e[E++]]^o[e[E++]]^r[e[E++]]^n[e[E++]]^s[e[E++]]^t[e[E++]];for(C+=15;E<C;)v=v>>>8^t[255&(v^e[E++])];return~v},e.str=function(e,i){for(var s=~i,n=0,r=e.length,o=0,a=0;n<r;)(o=e.charCodeAt(n++))<128?s=s>>>8^t[255&(s^o)]:o<2048?s=(s=s>>>8^t[255&(s^(192|o>>6&31))])>>>8^t[255&(s^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&e.charCodeAt(n++),s=(s=(s=(s=s>>>8^t[255&(s^(240|o>>8&7))])>>>8^t[255&(s^(128|o>>2&63))])>>>8^t[255&(s^(128|a>>6&15|(3&o)<<4))])>>>8^t[255&(s^(128|63&a))]):s=(s=(s=s>>>8^t[255&(s^(224|o>>12&15))])>>>8^t[255&(s^(128|o>>6&63))])>>>8^t[255&(s^(128|63&o))];return~s}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},70492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(58986).then(i.bind(i,58986))})},70552:(e,t,i)=>{"use strict";var s=i(31450),n=i(79027),r=i(78209);class o extends s.ks{constructor(){super({id:"editor.action.fontZoomIn",label:r.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()+1)}}class a extends s.ks{constructor(){super({id:"editor.action.fontZoomOut",label:r.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()-1)}}class c extends s.ks{constructor(){super({id:"editor.action.fontZoomReset",label:r.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(0)}}(0,s.Fl)(o),(0,s.Fl)(a),(0,s.Fl)(c)},70983:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0010 3h1.94L6.97 7.97a.75.75 0 001.06 1.06L13 4.06V6a.75.75 0 001.5 0V2.25a.75.75 0 00-.75-.75zM7.5 3.25a.75.75 0 00-.75-.75H4.5a3 3 0 00-3 3v6a3 3 0 003 3h6a3 3 0 003-3V9.25a.75.75 0 00-1.5 0v2.25a1.5 1.5 0 01-1.5 1.5h-6A1.5 1.5 0 013 11.5v-6A1.5 1.5 0 014.5 4h2.25a.75.75 0 00.75-.75",clipRule:"evenodd"})))}},71316:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(86658).then(i.bind(i,86658))})},71319:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,w:()=>o});var s=i(31308),n=i(13850);function r(e,t,i){return(0,n.eP)({debugName:()=>`Configuration Key "${e}"`},(t=>i.onDidChangeConfiguration((i=>{i.affectsConfiguration(e)&&t(i)}))),(()=>i.getValue(e)??t))}function o(e,t,i){const n=e.bindTo(t);return(0,s.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}},71468:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(98234).then(i.bind(i,98234))})},71597:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>s});var s,n=i(25890),r=i(5662),o=i(46359);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(s||(s={}));const a={Quickaccess:"workbench.contributions.quickaccess"};o.O.add(a.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,r.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,n.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},71933:(e,t,i)=>{"use strict";i.d(t,{C:()=>ue});var s,n=i(8597),r=i(11007),o=i(64383),a=i(91090),c=i(5662),l=i(83069),h=i(87289),d=i(56942),u=i(55130),g=i(8995),p=i(61407),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw]}constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>s.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i?.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v=s=f([_(0,m.b)],v);i(97791);var C=i(10350),E=(i(93409),i(78209));const b=Object.freeze({kind:g.k.Empty,title:(0,E.kg)("codeAction.widget.id.more","More Actions...")}),S=Object.freeze([{kind:p.gB.QuickFix,title:(0,E.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,E.kg)("codeAction.widget.id.extract","Extract"),icon:C.W.wrench},{kind:p.gB.RefactorInline,title:(0,E.kg)("codeAction.widget.id.inline","Inline"),icon:C.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,E.kg)("codeAction.widget.id.convert","Rewrite"),icon:C.W.wrench},{kind:p.gB.RefactorMove,title:(0,E.kg)("codeAction.widget.id.move","Move"),icon:C.W.wrench},{kind:p.gB.SurroundWith,title:(0,E.kg)("codeAction.widget.id.surround","Surround With"),icon:C.W.surroundWith},{kind:p.gB.Source,title:(0,E.kg)("codeAction.widget.id.source","Source Action"),icon:C.W.symbolFile},b]);var y=i(96758),w=i(99645),R=i(11799),L=i(47625),T=i(93090),x=i(18447),k=i(98067),A=i(25689),N=i(47508),I=i(19070),O=i(66261),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class U{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??""}disposeTemplate(e){}}let H=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new L.x(e,k.OS)}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=A.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,O.GuP)(e.group.icon.color.id))):(i.icon.className=A.L.asClassName(C.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=G(e.label),i.keybinding.set(e.keybinding),n.bo(!!e.keybinding,i.keybinding.element);const s=this._keybindingService.lookupKeybinding(P)?.getLabel(),r=this._keybindingService.lookupKeybinding(F)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:s&&r?this._supportsPreview&&e.canPreview?i.container.title=(0,E.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",s,r):i.container.title=(0,E.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",s):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};H=D([M(1,m.b)],H);class B extends UIEvent{constructor(){super("acceptSelectedAction")}}class W extends UIEvent{constructor(){super("previewSelectedAction")}}function V(e){if("action"===e.kind)return e.label}let z=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._delegate=s,this._contextViewService=n,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new x.Qi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new T.B8(e,this.domNode,o,[new H(t,this._keybindingService),new U],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:V},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?G(e?.label):"";return e.disabled&&(t=(0,E.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,E.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(I.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let s=e;if(this._allMenuItems.length>=50)s=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));s=Math.max(...t,e)}const n=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(n,s),this.domNode.style.height=`${n}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],s=this._list.element(i);if(!this.focusCondition(s))return;const n=e?new W:new B;this._list.setSelection([i],n)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof W):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(0===e.length)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function G(e){return e.replace(/\r\n|\r|\n/g," ")}z=D([M(4,N.l),M(5,m.b)],z);var j=i(27195),K=i(32848),Y=i(14718),q=i(63591),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};(0,O.x1A)("actionBar.toggledBackground",O.c1f,(0,E.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const X={Visible:new K.N1("codeActionMenuVisible",!1,(0,E.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},Z=(0,q.u1)("actionWidgetService");let J=class extends c.jG{get isVisible(){return X.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new c.HE)}show(e,t,i,s,n,r,o){const a=X.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(z,e,t,i,s);this._contextViewService.showContextView({getAnchor:()=>n,render:e=>(a.set(!0),this._renderWidget(e,c,o??[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},r,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new c.Cm,o=document.createElement("div"),a=e.appendChild(o);a.classList.add("context-view-block"),r.add(n.ko(a,n.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const l=document.createElement("div"),h=e.appendChild(l);h.classList.add("context-view-pointerBlock"),r.add(n.ko(h,n.Bx.POINTER_MOVE,(()=>h.remove()))),r.add(n.ko(h,n.Bx.MOUSE_DOWN,(()=>h.remove())));let d=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),d=e.getContainer().offsetWidth)}const u=this._list.value?.layout(d);s.style.width=`${u}px`;const g=r.add(n.w5(e));return r.add(g.onDidBlur((()=>this.hide(!0)))),r}_createActionBar(e,t){if(!t.length)return;const i=n.$(e),s=new R.E(i);return s.push(t,{icon:!1,label:!0}),s}_onWidgetClosed(e){this._list.value?.hide(e)}};J=$([Q(0,N.l),Q(1,K.fN),Q(2,q._Y)],J),(0,Y.v)(Z,J,1);const ee=1100;(0,j.ug)(class extends j.L{constructor(){super({id:"hideCodeActionWidget",title:(0,E.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:X.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(Z).hide(!0)}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectPrevCodeAction",title:(0,E.aS)("selectPrevCodeAction.title","Select previous action"),precondition:X.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusPrevious()}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectNextCodeAction",title:(0,E.aS)("selectNextCodeAction.title","Select next action"),precondition:X.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusNext()}}),(0,j.ug)(class extends j.L{constructor(){super({id:P,title:(0,E.aS)("acceptSelected.title","Accept selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected()}}),(0,j.ug)(class extends j.L{constructor(){super({id:F,title:(0,E.aS)("previewSelected.title","Preview selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(50091),se=i(84001),ne=i(75147),re=i(73823),oe=i(86723),ae=i(47612),ce=i(59473),le=i(90651),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends c.jG{static{te=this}static{this.ID="editor.contrib.codeActionController"}static get(e){return e.getContribution(te.ID)}constructor(e,t,i,s,n,r,o,l,h,d,u){super(),this._commandService=o,this._configurationService=l,this._actionWidgetService=h,this._instantiationService=d,this._telemetryService=u,this._activeCodeActions=this._register(new c.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new ce.Dc(this._editor,n.codeActionProvider,t,i,r,l,this._telemetryService)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(y.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=s.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,s){if(!this._editor.hasModel())return;w.k.get(this._editor)?.closeMessage();const n=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:s,context:{notAvailableMessage:e,position:n}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,s){try{await this._instantiationService.invokeFunction(u.W4,e,s,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(e){if(1!==e.type)return void this.hideLightBulbWidget();let t;try{t=await e.actions}catch(s){return void(0,o.dz)(s)}if(this._disposed)return;const i=this._editor.getSelection();if(i?.startLineNumber===e.position.lineNumber)if(this._lightBulbWidget.value?.update(t,e.trigger,e.position),1===e.trigger.type){if(e.trigger.filter?.include){const i=this.tryGetValidActionToApply(e.trigger,t);if(i){try{this.hideLightBulbWidget(),await this._applyCodeAction(i,!1,!1,u.Qp.FromCodeActions)}finally{t.dispose()}return}if(e.trigger.context){const i=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,t);if(i&&i.action.disabled)return w.k.get(this._editor)?.showMessage(i.action.disabled,e.trigger.context.position),void t.dispose()}}const i=!!e.trigger.filter?.include;if(e.trigger.context&&(!t.allActions.length||!i&&!t.validActions.length))return w.k.get(this._editor)?.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,void t.dispose();this._activeCodeActions.value=t,this.showCodeActionList(t,this.toCoords(e.position),{includeDisabledActions:i,fromLightbulb:!1})}else this._actionWidgetService.isVisible?t.dispose():this._activeCodeActions.value=t}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}static{this.DECORATION=h.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"})}async showCodeActionList(e,t,i){const s=this._editor.createDecorationsCollection(),n=this._editor.getDomNode();if(!n)return;const o=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!o.length)return;const a=l.y.isIPosition(t)?this.toCoords(t):t,c={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?u.Qp.FromAILightbulb:u.Qp.FromCodeActions),this._actionWidgetService.hide(!1),s.clear()},onHide:e=>{this._editor?.focus(),s.clear()},onHover:async(e,t)=>{if(t.isCancellationRequested)return;let i=!1;const s=e.action.kind;if(s){const e=new g.k(s);i=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite,p.gB.RefactorMove,p.gB.Source].some((t=>t.contains(e)))}return{canPreview:i||!!e.action.edit?.edits.length}},onFocus:e=>{if(e&&e.action){const t=e.action.ranges,i=e.action.diagnostics;if(s.clear(),t&&t.length>0){const e=i&&i?.length>1?i.map((e=>({range:e,options:te.DECORATION}))):t.map((e=>({range:e,options:te.DECORATION})));s.set(e)}else if(i&&i.length>0){const e=i.map((e=>({range:e,options:te.DECORATION})));s.set(e);const t=i[0];if(t.startLineNumber&&t.startColumn){const e=this._editor.getModel()?.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn})?.word;r.h5((0,E.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,t.startLineNumber,t.startColumn))}}}else s.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>({kind:"action",item:e,group:b,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!e.action.edit?.edits.length})));const s=S.map((e=>({group:e,actions:[]})));for(const r of e){const e=r.action.kind?new g.k(r.action.kind):g.k.None;for(const t of s)if(t.group.kind.contains(e)){t.actions.push(r);break}}const n=[];for(const r of s)if(r.actions.length){n.push({kind:"header",group:r.group});for(const e of r.actions){const t=r.group;n.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:C.W.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return n}(o,this._shouldShowHeaders(),this._resolver.getResolver()),c,a,n,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,n.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){const e=this._editor?.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:e?.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const s=e.documentation.map((e=>({id:e.id,label:e.title,tooltip:e.tooltip??"",class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(e.id,...e.arguments??[])})));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&s.push(this._showDisabled?{id:"hideMoreActions",label:(0,E.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,E.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),s}};ue=te=he([de(1,ne.DR),de(2,K.fN),de(3,q._Y),de(4,d.ILanguageFeaturesService),de(5,re.N8),de(6,ie.d),de(7,se.pG),de(8,Z),de(9,q._Y),de(10,le.k)],ue),(0,ae.zy)(((e,t)=>{var i,s;i=".quickfix-edit-highlight",(s=e.getColor(O.Ubg))&&t.addRule(`.monaco-editor ${i} { background-color: ${s}; }`);const n=e.getColor(O.ECk);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,oe.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}))},71964:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,y:()=>o});var s=i(36677),n=i(75326);class r{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),s=i[0].range,r=i[1].range;return new n.L(s.endLineNumber,s.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}class o{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},72093:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});const s={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var n,r=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).slice(1));function l(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(s.randomUUID&&!t&&!e)return s.randomUUID();var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return l(n)}},72466:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,x:()=>n});const s=[];function n(e){s.push(e)}function r(){return s.slice(0)}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(60413),n=i(24939),r=i(42539),o=i(98067);const a=o.zx?256:2048,c=o.zx?2048:256;class l{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return n.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(s.gm)switch(t){case 59:return 85;case 60:if(o.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(o.zx)return 57}else if(s.Tc){if(o.zx&&93===t)return 57;if(!o.zx&&92===t)return 57}return n.uw[t]||0}(t),this.code=t.code,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;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=c),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},73020:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(5866).then(i.bind(i,5866))})},73157:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(55275);function n(e,t){e instanceof s.D?(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")}},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>L,SO:()=>me});var s=i(7252);function n(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const r="ParanoidC";function o(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const o=n("+","plus"),a=n("-","minus"),c=n("1:1","normal"),l=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",r),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const n=t.colors||{};return new s.fabric.Canvas(r,{selection:!1,backgroundColor:n.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,s){const n=document.createElement("div");n.className="paranoid-controls";const r=document.createElement("style");return r.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(s),n.appendChild(r),n.appendChild(t),n.appendChild(e),n.appendChild(i),n}(o,a,c,t.colors);return i.appendChild(h),function(e,t,i,s,n){const r=n.minZoom||.2,o=n.zoomStep||.2,a=n.maxZoom||2,c=n.startZoom||1;e.setZoom(c),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=o,i<r&&(i=r),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=o,i>a&&(i=a),e.setZoom(i)})),s.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(l,o,a,c,t),function(e){let t=!1,i=0,s=0;e.on("mouse:down",(n=>{n.target||(e.setCursor("grabbing"),t=!0,i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:move",(n=>{t&&(e.viewportTransform[4]+=n.pointer.x-i,e.viewportTransform[5]+=n.pointer.y-s,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(l),l}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},c={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},l="Arial, sans-serif",h=13,d=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(32133);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let s=!1;i&&(i.children.length>0?t.unshift(...i.children):s=!0,e(i,s))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const s=this.findSources(i,e.links);let n=[],r={},o=new Map;return s.forEach((t=>{const s=this.mapNodesToTree(t,i,e.links);r=Object.assign(Object.assign({},s.groups),r),o=new Map([...o,...s.notGroupMemebersChildren]),n.push(s.tree)})),o.forEach(((e,t)=>{r[t]&&r[t].addNodes(e)})),n=n.reduce(((e,t)=>{const i=t.root.data.group;return i?r[i].members.push(t):e.push(t),e}),[]),n}getGroups({nodes:e}){const t=new Map;return e.forEach((e=>{if(e.group){const i=t.get(e.group);i?i.push(e.name):t.set(e.group,[e.name])}})),t}findSources(e,t){const i=t.map((({to:e})=>e));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var s;const n=this.createNode(e),r={};this.appendGoup(r,n);const o=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(o,r)(n,(null===(s=o.find((t=>t.name===e.name)))||void 0===s?void 0:s.children)||[]);return{tree:new p(n),groups:r,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,s=(n,r)=>{const o=r.map((i=>{const n=e.find((({name:e})=>e===i)),r=this.createNode(n);return this.appendGoup(t,r),n.children.length>0&&s(r,n.children),r})),a=n.data.group,c=Boolean(a),l=[],h=[];if(o.forEach((e=>{const t=e.data.group;c?a===t?l.push(e):h.push(e):l.push(e)})),n.addNodes(l),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return s}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}function v(e){switch(e){case 0:return 0;case 1:return 16;default:return 24}}function C(e,t,i,s,n,r){const o=function(e,t,i,s,n,r,o){const a=new Map,c=new Map,l=new Map,h=[];return s.traverseBF((s=>{const{object:n,width:r,height:c}=function(e,t,i,s,n,r,o){var a,c;const l=null!==(a=t.shapeInstance)&&void 0!==a?a:r.node(e,{top:i,left:s},t,n,o),h=null!==(c=t.canvasNode)&&void 0!==c?c:l.getShape();return t.addShapeInstance(l),t.addCanvasNode(h),{object:h,top:i,left:s,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,s,0,0,t,i,o);a.set(s,{width:r,height:c}),h.push(n)})),function e(t){const{width:i}=a.get(t);let s=i,n=0;if(t.parent&&1===t.parent.children.length&&c.has(t.parent)){const e=c.get(t.parent);s<e&&(s=e)}return c.set(t,s),t.children.length>0&&(n=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),l.set(t,n)),s=Math.max(s,n),c.set(t,s),s}(s.root),function e(t,i,s){let n=s,r=s;for(const o of t){const{width:t,height:s}=a.get(o),h=c.get(o),d=i,u=n+Math.floor(h/2)-Math.floor(t/2);if(o.canvasNode.set({top:d,left:u}),o.canvasNode.setCoords(),n=n+h+16,o.children.length){let t=0;const n=l.get(o);n<h&&(t=Math.floor((h-n)/2));const a=i+s+v(o.children.length),c=r+t;e(o.children,a,c)}r=n}}([s.root],n,r),h}(e.canvas,s,n,e,t,i,r);let a=0,c=0;return o.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),c=Math.max(c,(e.top||0)+e.getScaledHeight())})),{nodes:o,bottom:c,right:a}}function E(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function b(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class S{constructor(e,t,i,s){this.canvas=o(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=s,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(r);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,n=t;const r=this.opts.initialTop;let o=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:s,right:a}=C(e,r,o,this.opts,this.shapes,this.em);o=a+15,i=Math.max(s,i),n=Math.max(a,n),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,n=[];return e.data.links.reduce(((t,{from:r})=>{const o=e.nodes.get(r);if(o&&1===o.children.length&&!n.includes(r)){const{x:e,y:a}=E(o),l=new s.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new s.fabric.Group([l],Object.assign({},c))),n.push(r)}if(o&&o.children.length>1&&!n.includes(r)){const{x:e,y:a}=E(o),l=12,h=6,d=[new s.fabric.Path(`M ${e} ${a}\n V ${a+l}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=b(o.children[0]),{x:p,y:m}=b(o.children[o.children.length-1]),f=new s.fabric.Path(`M ${u} ${g}\n V ${g-l+h}\n Q ${u} ${g-l} ${u+h} ${g-l}\n H ${p-h}\n Q ${p} ${m-l} ${p} ${m+h-l}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(f),o.children.forEach(((e,t)=>{if(0===t||t===o.children.length-1)return;const{x:n,y:r}=b(e),a=new s.fabric.Path(`M ${n} ${r}\n V ${r-l}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(a)})),t.push(new s.fabric.Group(d,Object.assign({},c))),n.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:s,left:n,height:r,width:o}=i.getBoundingRect(),a=n+o,c=s+r;a>e&&(e=a),c>t&&(t=c)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,n=this.canvas.getHeight()/t,r=Math.min(i,n);if(r<1){this.canvas.setZoom(r);const e=this.opts.initialTop*r,t=this.opts.initialLeft*r,i=this.opts.initialTop-e,n=this.opts.initialLeft-t;this.canvas.relativePan(new s.fabric.Point(n,i))}}}function y(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,s)=>{const n=t.getPropertyValue(e[s]).replace(/ /g,"");return n&&(i[s]=n),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const w={linkType:"arrow"};function R(e=w){const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),y()),t)})}function L(e,t,i,s){const n=R(i);return new S(e,n,t,s)}var T=i(59284),x=(i(43781),i(62060),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,s){return e[0]===t&&(i=s,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(t,i){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,s=e(i,t);~s&&i.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,s=this.__entries__;i<s.length;i++){var n=s[i];e.call(t,n[1],n[0])}},t}()}()),k="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),N="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var I=["top","right","bottom","left","width","height","size","weight"],O="undefined"!==typeof MutationObserver,D=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,s=!1,n=0;function r(){i&&(i=!1,e()),s&&a()}function o(){N(r)}function a(){var e=Date.now();if(i){if(e-n<2)return;s=!0}else i=!0,s=!1,setTimeout(o,t);n=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;I.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),M=function(e,t){for(var i=0,s=Object.keys(t);i<s.length;i++){var n=s[i];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},P=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},F=z(0,0,0,0);function U(e){return parseFloat(e)||0}function H(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+U(e["border-"+i+"-width"])}),0)}function B(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return F;var s=P(e).getComputedStyle(e),n=function(e){for(var t={},i=0,s=["top","right","bottom","left"];i<s.length;i++){var n=s[i],r=e["padding-"+n];t[n]=U(r)}return t}(s),r=n.left+n.right,o=n.top+n.bottom,a=U(s.width),c=U(s.height);if("border-box"===s.boxSizing&&(Math.round(a+r)!==t&&(a-=H(s,"left","right")+r),Math.round(c+o)!==i&&(c-=H(s,"top","bottom")+o)),!function(e){return e===P(e).document.documentElement}(e)){var l=Math.round(a+r)-t,h=Math.round(c+o)-i;1!==Math.abs(l)&&(a-=l),1!==Math.abs(h)&&(c-=h)}return z(n.left,n.top,a,c)}var W="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof P(e).SVGGraphicsElement}:function(e){return e instanceof P(e).SVGElement&&"function"===typeof e.getBBox};function V(e){return k?W(e)?function(e){var t=e.getBBox();return z(0,0,t.width,t.height)}(e):B(e):F}function z(e,t,i,s){return{x:e,y:t,width:i,height:s}}var G=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=V(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j=function(e,t){var i=function(e){var t=e.x,i=e.y,s=e.width,n=e.height,r="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(r.prototype);return M(o,{x:t,y:i,width:s,height:n,top:i,right:t+s,bottom:n+i,left:t}),o}(t);M(this,{target:e,contentRect:i})},K=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new x,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new G(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Y="undefined"!==typeof WeakMap?new WeakMap:new x,q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=D.getInstance(),s=new K(t,i,this);Y.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){q.prototype[e]=function(){var t;return(t=Y.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;T.Component;T.Component;var $=i(87924),Q=i.n($);const X={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class Z{constructor(e,t,i,s){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=s,this.textProps={fontSize:X.textFontSize,lineHeight:X.textLineHeight,fontFamily:l,fill:null===s||void 0===s?void 0:s.titleColor},this.selectedGroup=t[0].group;const n=this.createTitles(),r=n.map((e=>e.getScaledHeight())),o=Math.max.apply(null,r);this.lineTop=this.top+o+X.textOffset;const a=this.createLine();this.content=this.createContent(n),this.group=this.createGroup(n,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((({group:e})=>e)).map((t=>{var i,n;const r=new s.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(n=this.colors)||void 0===n?void 0:n.textColor}));return e+=r.getScaledWidth()+X.statsOffset,r}))}createLine(){return new s.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map((({group:t,stats:i},n)=>{const r=this.getContentItems(i,this.lineTop),o=e[n],a=o.left||0,c=a+o.getScaledWidth();return{group:t,items:new s.fabric.Group(r,{opacity:this.selectedGroup===t?1:0}),title:o,hoverLine:this.createHoverLine(a,c,t)}}))}getContentItems(e,t){let i=t+2*X.textOffset;const n=[],r=e=>{e.forEach((({name:e,value:t})=>{var r;const o=new s.fabric.Text(e,Object.assign({left:this.left,top:i},this.textProps)),a=X.expandedWidth/2-X.padding,c=X.expandedWidth-2*X.padding,l=new s.fabric.Textbox(String(t),Object.assign(Object.assign({left:a,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:c-a}));n.push(o,l),i+=Math.max(o.getScaledHeight(),l.getScaledHeight())+X.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?r(e):e.forEach((({name:t,items:o},a)=>{const c=new s.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(n.push(c),i+=c.getScaledHeight()+X.textOffset,r(o),a!==e.length-1){const e=new s.fabric.Path(`M ${this.left} ${i}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});n.push(e),i+=e.getScaledHeight()+X.textOffset}})),n}createGroup(e,t,i){const n=i.map((({items:e})=>e)),r=i.map((({hoverLine:e})=>e));return new s.fabric.Group([...e,t,...n,...r],Object.assign({left:this.coords.left,top:this.coords.top},c))}createHoverLine(e,t,i){return new s.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((({group:e,title:t,items:i,hoverLine:s})=>{t.on("mousedown",(()=>{const n=this.selectedGroup,r=this.content.find((e=>e.group===n));r&&(r.title.set({fill:this.colors.textColor}),r.items.set({opacity:0}),r.hoverLine.set({opacity:0}),t.set({fill:this.colors.titleColor}),i.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=e,this.canvas.requestRenderAll())}))}))}}function J(e,t,i,s,n){return new Z(e,t,{top:i,left:s},n).getCanvasObject()}function ee(e,t,i){return new s.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:l,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const te={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:16,textOffset:8},ie={scaleX:16/512,scaleY:16/512,originY:"center"};function se(e,t,i){const n=new s.fabric.Text(e,{fontSize:te.textFontSize,lineHeight:te.textFontSize,fontFamily:l,fill:i.getCommonColor("text-misc"),originY:"center"}),r=[n];let o;switch(e){case"Merge":o=new s.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",ie);break;case"UnionAll":o=new s.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",ie);break;case"HashShuffle":o=new s.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",ie);break;case"Map":o=new s.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",ie);break;case"Broadcast":o=new s.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",ie)}return o&&(o.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),n.set({left:22}),r.push(o)),new s.fabric.Group(r,Object.assign(Object.assign({},c),{hoverCursor:t?"pointer":"default"}))}class ne{constructor(e,t,i,s,n){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=n,this.data=Q()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+te.padding,new s.fabric.Rect({width:te.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:te.borderRadius,ry:te.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ee(this.data.id,this.isExpandable(),this.opts.colors),se(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=te.padding,s=this.expanded?te.expandedWidth:te.width,n=t.getScaledWidth();e.set({left:0,top:4,width:s-4}),t.set({left:s/2-n/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,s=i.getScaledWidth();let n,r;this.expanded?(this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+te.padding,(this.group.left||0)+te.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*te.padding,n=te.expandedWidth,r=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(n=te.width,r=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const o=function(e,t){const i=[];return t.forEachObject((s=>{i.push(s),t.removeWithUpdate(s),e.add(s)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:n,height:r,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:n-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-s/2}),o()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const re={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:d,padding:12};class oe{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+re.padding,new s.fabric.Polygon([{x:re.bevelSize,y:0},{x:re.width-re.bevelSize,y:0},{x:re.width,y:re.bevelSize},{x:re.width,y:this.nodeHeight-re.bevelSize},{x:re.width-re.bevelSize,y:this.nodeHeight},{x:re.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-re.bevelSize},{x:0,y:re.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:re.titleFontSize,lineHeight:re.titleLineHeight,left:0,top:26,fontFamily:l,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=re.padding,i=e.getScaledWidth();e.set({left:re.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ae=40,ce=40,le=20;class he{constructor(e,t,i,n,r){this.coords=t,this.opts=n,this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new s.fabric.Rect({width:ae,height:ce,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:le,ry:le,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body],Object.assign({top:e,left:t},c))}}const de={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class ue{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+de.padding,new s.fabric.Rect({width:de.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:de.textFontSize,lineHeight:de.textLineHeight,left:0,top:26,fontFamily:l,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=de.padding,i=e.getScaledWidth();e.set({left:de.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}}const ge={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class pe{constructor(e,t,i,n,r){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=r,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ge.padding,new s.fabric.Rect({width:ge.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ge.borderRadius,ry:ge.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ee(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],n=this.isExpandable(),r=this.opts.colors,new s.fabric.Text(i.join("\n"),{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:r.getCommonColor("text-primary"),hoverCursor:n?"pointer":"default"}));var i,n,r;const o=function(e,t){if(0===e.length)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e.join("\n"),{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new s.fabric.Group([],Object.assign({top:0,left:0},c));const i=new s.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e,{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:l,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},c))}(this.data.cte||"",this.opts.colors);return[e,t,o,a]}setShapeObjectsCoords(){const[e,t,i,s]=this.objects;let n=ge.padding;const r=ge.padding;e.set({left:0,top:4,width:(this.expanded?ge.expandedWidth:ge.width)-4}),t.set({left:r,top:n}),n+=t.getScaledHeight(),i.set({left:r,top:n+(0===i.size()?0:ge.textOffset)}),n+=i.getScaledHeight(),s.set({left:r,top:n+(0===s.size()?0:ge.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},c))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=ge.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+ge.padding,(this.group.left||0)+ge.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*ge.padding;const t=ge.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function me(e,t,i,s,n){return function(e){const t=Q()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ne(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new ue(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new he(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new oe(e,t,i,s,n):new pe(e,t,i,s,n)}},73374:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(79312).then(i.bind(i,79312))})},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>d,tN:()=>g,zk:()=>l});var s=i(64383),n=i(5662),r=i(31308),o=i(83069),a=i(36677);const c=[];function l(){return c}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new s.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function d(e,t){const i=new n.Cm,s=e.createDecorationsCollection();return i.add((0,r.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function u(e,t){return new o.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new o.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},73823:(e,t,i)=>{"use strict";i.d(t,{G5:()=>n,N8:()=>o,ke:()=>r});var s=i(63591);const n=(0,s.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{static{this.None=Object.freeze({report(){}})}constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}const o=(0,s.u1)("editorProgressService")},73848:(e,t,i)=>{"use strict";i.r(t),i.d(t,{KeyMod:()=>u,createMonacoBaseAPI:()=>g});var s=i(18447),n=i(41234),r=i(24939),o=i(79400),a=i(83069),c=i(36677),l=i(75326),h=i(62083),d=i(35015);class u{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,r.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:s.Qi,Emitter:n.vl,KeyCode:d.DD,KeyMod:u,Position:a.y,Range:c.Q,Selection:l.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:h.ou}}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},73983:(e,t,i)=>{"use strict";function s(e){return e&&"object"===typeof e&&"string"===typeof e.original&&"string"===typeof e.value}function n(e){return!!e&&void 0!==e.condition}i.d(t,{N:()=>n,f:()=>s})},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>R,P8:()=>w,S8:()=>C,SA:()=>v,V8:()=>S,Vn:()=>L,fj:()=>E,hd:()=>b,pD:()=>y});var s=i(59911);const n=46,r=47,o=92,a=58;class c extends Error{constructor(e,t,i){let s;"string"===typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";const n=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${n} ${s} of type ${t}`;r+=". Received type "+typeof i,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function l(e,t){if("string"!==typeof e)throw new c(t,"string",e)}const h="win32"===s.iD;function d(e){return e===r||e===o}function u(e){return e===r}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,s){let o="",a=0,c=-1,l=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(s(h))break;h=r}if(s(h)){if(c===d-1||1===l);else if(2===l){if(o.length<2||2!==a||o.charCodeAt(o.length-1)!==n||o.charCodeAt(o.length-2)!==n){if(o.length>2){const e=o.lastIndexOf(i);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(i)),c=d,l=0;continue}if(0!==o.length){o="",a=0,c=d,l=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",a=2)}else o.length>0?o+=`${i}${e.slice(c+1,d)}`:o=e.slice(c+1,d),a=d-c-1;c=d,l=0}else h===n&&-1!==l?++l:l=-1}return o}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new c(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,s=t.base||`${t.name||""}${n=t.ext,n?`${"."===n[0]?"":"."}${n}`:""}`;var n;return i?i===t.root?`${i}${s}`:`${i}${e}${s}`:s}const f={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let c;if(r>=0){if(c=e[r],l(c,`paths[${r}]`),0===c.length)continue}else 0===t.length?c=s.bJ():(c={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||s.bJ(),(void 0===c||c.slice(0,2).toLowerCase()!==t.toLowerCase()&&c.charCodeAt(2)===o)&&(c=`${t}\\`));const h=c.length;let u=0,p="",m=!1;const f=c.charCodeAt(0);if(1===h)d(f)&&(u=1,m=!0);else if(d(f))if(m=!0,d(c.charCodeAt(1))){let e=2,t=e;for(;e<h&&!d(c.charCodeAt(e));)e++;if(e<h&&e!==t){const i=c.slice(t,e);for(t=e;e<h&&d(c.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!d(c.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${c.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&c.charCodeAt(1)===a&&(p=c.slice(0,2),u=2,h>2&&d(c.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(n){if(t.length>0)break}else if(i=`${c.slice(u)}\\${i}`,n=m,m&&t.length>0)break}return i=p(i,!n,"\\",d),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){l(e,"path");const t=e.length;if(0===t)return".";let i,s=0,n=!1;const r=e.charCodeAt(0);if(1===t)return u(r)?"\\":e;if(d(r))if(n=!0,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){const o=e.slice(r,n);for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return`\\\\${o}\\${e.slice(r)}\\`;n!==r&&(i=`\\\\${o}\\${e.slice(r,n)}`,s=n)}}}else s=1;else g(r)&&e.charCodeAt(1)===a&&(i=e.slice(0,2),s=2,t>2&&d(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?p(e.slice(s),!n,"\\",d):"";return 0!==o.length||n||(o="."),o.length>0&&d(e.charCodeAt(t-1))&&(o+="\\"),void 0===i?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){l(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return d(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let r=0;r<e.length;++r){const s=e[r];l(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let s=!0,n=0;if("string"===typeof i&&d(i.charCodeAt(0))){++n;const e=i.length;e>1&&d(i.charCodeAt(1))&&(++n,e>2&&(d(i.charCodeAt(2))?++n:s=!1))}if(s){for(;n<t.length&&d(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return f.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";const i=f.resolve(e),s=f.resolve(t);if(i===s)return"";if((e=i.toLowerCase())===(t=s.toLowerCase()))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===o;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===o;)r--;const a=r-n;let c=0;for(;c<t.length&&t.charCodeAt(c)===o;)c++;let h=t.length;for(;h-1>c&&t.charCodeAt(h-1)===o;)h--;const d=h-c,u=a<d?a:d;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(n+p);if(i!==t.charCodeAt(c+p))break;i===o&&(g=p)}if(p!==u){if(-1===g)return s}else{if(d>u){if(t.charCodeAt(c+p)===o)return s.slice(c+p+1);if(2===p)return s.slice(c+p)}a>u&&(e.charCodeAt(n+p)===o?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=n+g+1;p<=r;++p)p!==r&&e.charCodeAt(p)!==o||(m+=0===m.length?"..":"\\..");return c+=g,m.length>0?`${m}${s.slice(c,h)}`:(s.charCodeAt(c)===o&&++c,s.slice(c,h))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===o){if(t.charCodeAt(1)===o){const e=t.charCodeAt(2);if(63!==e&&e!==n)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===o)return`\\\\?\\${t}`;return e},dirname(e){l(e,"path");const t=e.length;if(0===t)return".";let i=-1,s=0;const n=e.charCodeAt(0);if(1===t)return d(n)?e:".";if(d(n)){if(i=s=1,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return e;n!==r&&(i=s=n+1)}}}}else g(n)&&e.charCodeAt(1)===a&&(i=t>2&&d(e.charCodeAt(2))?3:2,s=i);let r=-1,o=!0;for(let a=t-1;a>=s;--a)if(d(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&l(t,"suffix"),l(e,"path");let i,s=0,n=-1,r=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(s=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(i=e.length-1;i>=s;--i){const c=e.charCodeAt(i);if(d(c)){if(!r){s=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(c===t.charCodeAt(o)?-1===--o&&(n=i):(o=-1,n=a))}return s===n?n=a:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=s;--i)if(d(e.charCodeAt(i))){if(!r){s=i+1;break}}else-1===n&&(r=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=0,i=-1,s=0,r=-1,o=!0,c=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!o){s=a+1;break}}else-1===r&&(o=!1,r=a+1),t===n?-1===i?i=a:1!==c&&(c=1):-1!==i&&(c=-1)}return-1===i||-1===r||0===c||1===c&&i===r-1&&i===s+1?"":e.slice(i,r)},format:m.bind(null,"\\"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let s=0,r=e.charCodeAt(0);if(1===i)return d(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(r)){if(s=1,d(e.charCodeAt(1))){let t=2,n=t;for(;t<i&&!d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&!d(e.charCodeAt(t));)t++;t===i?s=t:t!==n&&(s=t+1)}}}}else if(g(r)&&e.charCodeAt(1)===a){if(i<=2)return t.root=t.dir=e,t;if(s=2,d(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let o=-1,c=s,h=-1,u=!0,p=e.length-1,m=0;for(;p>=s;--p)if(r=e.charCodeAt(p),d(r)){if(!u){c=p+1;break}}else-1===h&&(u=!1,h=p+1),r===n?-1===o?o=p:1!==m&&(m=1):-1!==o&&(m=-1);return-1!==h&&(-1===o||0===m||1===m&&o===h-1&&o===c+1?t.base=t.name=e.slice(c,h):(t.name=e.slice(c,o),t.base=e.slice(c,h),t.ext=e.slice(o,h))),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(h){const e=/\\/g;return()=>{const t=s.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>s.bJ()})(),v={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=-1&&!i;s--){const n=s>=0?e[s]:_();l(n,`paths[${s}]`),0!==n.length&&(t=`${n}/${t}`,i=n.charCodeAt(0)===r)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r,i=e.charCodeAt(e.length-1)===r;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(l(e,"path"),e.length>0&&e.charCodeAt(0)===r),join(...e){if(0===e.length)return".";let t;for(let i=0;i<e.length;++i){const s=e[i];l(s,"path"),s.length>0&&(void 0===t?t=s:t+=`/${s}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(l(e,"from"),l(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const i=e.length,s=i-1,n=t.length-1,o=s<n?s:n;let a=-1,c=0;for(;c<o;c++){const i=e.charCodeAt(1+c);if(i!==t.charCodeAt(1+c))break;i===r&&(a=c)}if(c===o)if(n>o){if(t.charCodeAt(1+c)===r)return t.slice(1+c+1);if(0===c)return t.slice(1+c)}else s>o&&(e.charCodeAt(1+c)===r?a=c:0===c&&(a=0));let h="";for(c=1+a+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==r||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(l(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r;let i=-1,s=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===r){if(!s){i=n;break}}else s=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&l(t,"ext"),l(e,"path");let i,s=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===r){if(!o){s=i+1;break}}else-1===c&&(o=!1,c=i+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(n=i):(a=-1,n=c))}return s===n?n=c:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===r){if(!o){s=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){l(e,"path");let t=-1,i=0,s=-1,o=!0,a=0;for(let c=e.length-1;c>=0;--c){const l=e.charCodeAt(c);if(l!==r)-1===s&&(o=!1,s=c+1),l===n?-1===t?t=c:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){i=c+1;break}}return-1===t||-1===s||0===a||1===a&&t===s-1&&t===i+1?"":e.slice(t,s)},format:m.bind(null,"/"),parse(e){l(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===r;let s;i?(t.root="/",s=1):s=0;let o=-1,a=0,c=-1,h=!0,d=e.length-1,u=0;for(;d>=s;--d){const t=e.charCodeAt(d);if(t!==r)-1===c&&(h=!1,c=d+1),t===n?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!h){a=d+1;break}}if(-1!==c){const s=0===a&&i?1:a;-1===o||0===u||1===u&&o===c-1&&o===a+1?t.base=t.name=e.slice(s,c):(t.name=e.slice(s,o),t.base=e.slice(s,c),t.ext=e.slice(o,c))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=f.win32=f,v.posix=f.posix=v;const C=h?f.normalize:v.normalize,E=h?f.join:v.join,b=h?f.resolve:v.resolve,S=h?f.relative:v.relative,y=h?f.dirname:v.dirname,w=h?f.basename:v.basename,R=h?f.extname:v.extname,L=h?f.sep:v.sep},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>c,_8:()=>a});var s=i(98067),n=i(87908),r=i(79027);const o=s.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const s=e.get(49),n=e.get(53),r=e.get(52),o=e.get(51),c=e.get(54),l=e.get(67),h=e.get(64);return a._create(s,n,r,o,c,l,h,t,i)}static _create(e,t,i,s,c,l,h,d,u){0===l?l=o*i:l<8&&(l*=i),(l=Math.round(l))<8&&(l=8);const g=1+(u?0:.1*r.D.getZoomLevel());if(i*=g,l*=g,c===n.r_.TRANSLATE)if("normal"===t||"bold"===t)c=n.r_.OFF;else{c=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,fontVariationSettings:c,lineHeight:l,letterSpacing:h})}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(){const e=n.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class c extends a{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}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},74276:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(29394).then(i.bind(i,29394))})},74304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(32854).then(i.bind(i,32854))})},74320:(e,t,i)=>{"use strict";var s,n;i.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>l});class r{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[s]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new r(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,s]of this.map)e(s.value,s.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(s=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,0!==i&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(s);break;case 1:this.addItemFirst(s)}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}values(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}entries(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class c extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class l extends c{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},74444:(e,t,i)=>{"use strict";i.d(t,{L:()=>n,h:()=>r});var s=i(64383);class n{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let s=i;for(;s<t.length&&t[s].start<=e.endExclusive;)s++;if(i===s)t.splice(i,0,e);else{const r=Math.min(e.start,t[i].start),o=Math.max(e.endExclusive,t[s-1].endExclusive);t.splice(i,s-i,new n(r,o))}}static tryCreate(e,t){if(!(e>t))return new n(e,t)}static ofLength(e){return new n(0,e)}static ofStartAndLength(e,t){return new n(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new s.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new n(this.start+e,this.endExclusive+e)}deltaStart(e){return new n(this.start+e,this.endExclusive)}deltaEnd(e){return new n(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new n(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new n(t,i)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new s.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new s.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}class r{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const s=Math.min(e.start,this._sortedRanges[t].start),r=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new n(s,r))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new r;for(const i of this._sortedRanges){const s=i.intersect(e);s&&t.addRange(s)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},74688:(e,t,i)=>{e.exports=i(57233)},74800:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(90118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationBracket))})},74850:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});class s{constructor(e,t,i,s,n,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=s,this._scrollSize=n,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new s(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,s,n){const r=Math.max(0,i-e),o=Math.max(0,r-2*t),a=s>0&&s>i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(20,Math.floor(i*o/s))),l=(o-c)/(s-i),h=n*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=s._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnicodeTextModelHighlighter:()=>c});var s=i(36677),n=i(43264),r=i(91508),o=i(66782),a=i(26486);class c{static computeUnicodeHighlights(e,t,i){const c=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new l(t),u=d.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${r.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new n.W5(null,g),f=[];let _,v=!1,C=0,E=0,b=0;e:for(let n=c,l=h;n<=l;n++){const t=e.getLineContent(n),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,c=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);r.pc(i)&&e--}if(c+1<i){const e=t.charCodeAt(c-1);r.pc(e)&&c++}const l=t.substring(e,c);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(l,h?h.word:null);if(0!==u){3===u?C++:2===u?E++:1===u?b++:(0,o.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new s.Q(n,e+1,n,c+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:C,invisibleCharacterCount:E,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,t){const i=new l(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),n=i.ambiguousCharacters.getPrimaryConfusable(s),o=r.tl.getLocales().filter((e=>!r.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(s)));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class l{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=r.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of r.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,n=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=r.aC(o);s=s||t,t||this.ambiguousCharacters.isAmbiguous(e)||r.y_.isInvisibleCharacter(e)||(n=!0)}return!s&&n?0:this.options.invisibleCharacters&&!h(e)&&r.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>c,cj:()=>s,oc:()=>n});var s,n,r=i(42291),o=i(78209),a=i(63591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(s||(s={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,o.kg)("sev.error","Error"),t[e.Warning]=(0,o.kg)("sev.warning","Warning"),t[e.Info]=(0,o.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case r.A.Error:return e.Error;case r.A.Warning:return e.Warning;case r.A.Info:return e.Info;case r.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return r.A.Error;case e.Warning:return r.A.Warning;case e.Info:return r.A.Info;case e.Hint:return r.A.Ignore}}}(s||(s={})),function(e){const t="";function i(e,i){const n=[t];return e.source?n.push(e.source.replace("\xa6","\\\xa6")):n.push(t),e.code?"string"===typeof e.code?n.push(e.code.replace("\xa6","\\\xa6")):n.push(e.code.value.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(s.toString(e.severity)):n.push(t),e.message&&i?n.push(e.message.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(n||(n={}));const c=(0,a.u1)("markerService")},75162:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t){try{const i=BigInt(t.$value),s=BigInt(1e3),n=i%s,r=new Date(Number(i/s)),o=r.getFullYear();return o<=0&&r.setFullYear(o-1),r.toISOString().replace("Z","")+function(t){const i=String(t);return e.repeatChar("0",3-i.length)+i}(n)+"Z"}catch(i){return"Invalid timestamp"}}return t.isScalar=!0,t}},75208:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(98014).then(i.bind(i,98014))})},75295:(e,t,i)=>{"use strict";i.d(t,{CO:()=>g,WR:()=>d,mF:()=>h});var s=i(66782),n=i(64383),r=i(83069),o=i(74444),a=i(50973);class c{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new o.L(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.W(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var l=i(36677);class h{constructor(e){this.edits=e,(0,s.Ft)((()=>(0,s.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new r.y(1,1);for(const n of this.edits){const s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),a=u(i,r);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=n.text,i=o}const s=u(i,e.endPositionExclusive);return s.isEmpty()||(t+=e.getValueOfRange(s)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,s=0;for(const n of this.edits){const o=a.W.ofText(n.text),c=r.y.lift({lineNumber:n.range.startLineNumber+i,column:n.range.startColumn+(n.range.startLineNumber===t?s:0)}),l=o.createRange(c);e.push(l),i=l.endLineNumber-n.range.endLineNumber,s=l.endColumn-n.range.endColumn,t=n.range.endLineNumber}return e}}class d{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}function u(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return l.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new n.D7("start must be before end");return new l.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new r.y(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new c(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},75326:(e,t,i)=>{"use strict";i.d(t,{L:()=>r});var s=i(83069),n=i(36677);class r extends n.Q{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new s.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new s.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,s,n){return 0===n?new r(e,t,i,s):new r(i,s,e,t)}}},75639:(e,t,i)=>{"use strict";var s=i(24939),n=i(36999),r=i(31450),o=i(15092),a=i(91508),c=i(7085),l=i(36677);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const s=[];let n=0,r=0;const o=t.length;for(let h=1,d=e.getLineCount();h<=d;h++){const d=e.getLineContent(h),u=d.length+1;let g=0;if(r<o&&t[r].lineNumber===h&&(g=t[r].column,r++,g===u))continue;if(0===d.length)continue;const p=a.lT(d);let m=0;if(-1===p)m=1;else{if(p===d.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),s[n++]=c.k.delete(new l.Q(h,m,h,u))}return s}(e,this._cursors,this._trimInRegexesAndStrings);for(let s=0,n=i.length;s<n;s++){const e=i[s];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var d=i(49265),u=i(26685),g=i(83069),p=i(75326),m=i(60002);class f{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=[];for(let r=i.startLineNumber;r<=i.endLineNumber;r++)s.push(e.getLineContent(r));const n=s.join("\n");""===n&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new l.Q(i.startLineNumber,1,i.startLineNumber,1),n+"\n"):t.addEditOperation(new l.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+n),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,s=i.endLineNumber,n=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(s+=this._endLineNumberDelta,n=1),i=p.L.createWithDirection(e,t,s,n,this._selectionDirection)}return i}}var _=i(7936),v=i(38566),C=i(17469),E=i(64395),b=i(82365),S=i(63346),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let R=class{constructor(e,t,i,s){this._languageConfigurationService=s,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=()=>e.getLanguageId(),s=(t,i)=>e.getLanguageIdAtPosition(t,i),n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumber<r.endLineNumber&&1===r.endColumn&&(this._moveEndPositionDown=!0,r=r.setEndPosition(r.endLineNumber-1,e.getLineMaxColumn(r.endLineNumber-1)));const{tabSize:o,indentSize:c,insertSpaces:h}=e.getOptions(),d=this.buildIndentConverter(o,c,h);if(r.startLineNumber===r.endLineNumber&&1===e.getLineMaxColumn(r.startLineNumber)){const i=r.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new l.Q(1,1,1,1),null):(t.addEditOperation(new l.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new l.Q(s,1,s,e.getLineMaxColumn(s)),null)),r=new p.L(s,1,s,1)}else{let n,c;if(this._isMovingDown){n=r.endLineNumber+1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=c;if(this.shouldAutoIndent(e,r)){const g=this.matchEnterRule(e,d,o,n,r.startLineNumber-1);if(null!==g){const t=a.UU(e.getLineContent(n)),i=g+E.c(t,o),s=E.k(i,o,h);u=s+this.trimStart(c)}else{const t={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?e.getLineContent(n):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(n,1),r.startLineNumber,d,this._languageConfigurationService);if(null!==l){const t=a.UU(e.getLineContent(n)),i=E.c(l,o);if(i!==E.c(t,o)){const e=E.k(i,o,h);u=e+this.trimStart(c)}}}t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n");const p=this.matchEnterRuleMovingDown(e,d,o,r.startLineNumber,n,u);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,p);else{const c={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.tokenization.getLineTokens(t-1):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?u:t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)},l=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),r.startLineNumber+1,d,this._languageConfigurationService);if(null!==l){const i=a.UU(e.getLineContent(r.startLineNumber)),s=E.c(l,o),n=E.c(i,o);if(s!==n){const i=s-n;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}else t.addEditOperation(new l.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n")}else if(n=r.startLineNumber-1,c=e.getLineContent(n),t.addEditOperation(new l.Q(n,1,n+1,1),null),t.addEditOperation(new l.Q(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),"\n"+c),this.shouldAutoIndent(e,r)){const c={tokenization:{getLineTokens:t=>t===n?e.tokenization.getLineTokens(r.startLineNumber):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===n?e.getLineContent(r.startLineNumber):e.getLineContent(t)},l=this.matchEnterRule(e,d,o,r.startLineNumber,r.startLineNumber-2);if(null!==l)0!==l&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,l);else{const i=(0,b.$f)(this._autoIndent,c,e.getLanguageIdAtPosition(r.startLineNumber,1),n,d,this._languageConfigurationService);if(null!==i){const s=a.UU(e.getLineContent(r.startLineNumber)),n=E.c(i,o),c=E.c(s,o);if(n!==c){const i=n-c;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,i){return{shiftIndent:s=>_.Y.shiftIndent(s,s.length+1,e,t,i),unshiftIndent:s=>_.Y.unshiftIndent(s,s.length+1,e,t,i)}}parseEnterResult(e,t,i,s,n){if(n){let r=n.indentation;n.indentAction===v.l.None||n.indentAction===v.l.Indent?r=n.indentation+n.appendText:n.indentAction===v.l.IndentOutdent?r=n.indentation:n.indentAction===v.l.Outdent&&(r=t.unshiftIndent(n.indentation)+n.appendText);const o=e.getLineContent(s);if(this.trimStart(o).indexOf(this.trimStart(r))>=0){const n=a.UU(e.getLineContent(s));let o=a.UU(r);const c=(0,b.Yb)(e,s,this._languageConfigurationService);null!==c&&2&c&&(o=t.unshiftIndent(o));return E.c(o,i)-E.c(n,i)}}return null}matchEnterRuleMovingDown(e,t,i,s,n,r){if(a.lT(r)>=0){const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}{let n=s-1;for(;n>=1;){const t=e.getLineContent(n);if(a.lT(t)>=0)break;n--}if(n<1||s>e.getLineCount())return null;const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new l.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}}matchEnterRule(e,t,i,s,n,r){let o=n;for(;o>=1;){let t;t=o===n&&void 0!==r?r:e.getLineContent(o);if(a.lT(t)>=0)break;o--}if(o<1||s>e.getLineCount())return null;const c=e.getLineMaxColumn(o),h=(0,S.h)(this._autoIndent,e,new l.Q(o,c,o,c),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,s,n,r){for(let o=i.startLineNumber;o<=i.endLineNumber;o++){const c=e.getLineContent(o),h=a.UU(c),d=E.c(h,s)+r,u=E.k(d,s,n);u!==h&&(t.addEditOperation(new l.Q(o,1,o,h.length+1),u),o===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};R=y([w(3,C.JZ)],R);class L{static{this._COLLATOR=null}static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const s=T(e,t,i);if(!s)return null;return c.k.replace(new l.Q(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const s=T(e,t,i);if(!s)return!1;for(let n=0,r=s.before.length;n<r;n++)if(s.before[n]!==s.after[n])return!0;return!1}}function T(e,t,i){const s=t.startLineNumber;let n=t.endLineNumber;if(1===t.endColumn&&n--,s>=n)return null;const r=[];for(let a=s;a<=n;a++)r.push(e.getLineContent(a));let o=r.slice(0);return o.sort(L.getCollator().compare),!0===i&&(o=o.reverse()),{startLineNumber:s,endLineNumber:n,before:r,after:o}}var x=i(78209),k=i(27195),A=i(84001);class N extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.selection,t.selection)));let s=i[0];for(let r=1;r<i.length;r++){const e=i[r];s.selection.endLineNumber===e.selection.startLineNumber&&(s.index<e.index?e.ignore=!0:(s.ignore=!0,s=e))}const n=[];for(const r of i)n.push(new f(r.selection,this.down,r.ignore));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class I extends r.ks{constructor(){super({id:"editor.action.duplicateSelection",label:x.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.R.writable,menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const s=[],n=t.getSelections(),r=t.getModel();for(const a of n)if(a.isEmpty())s.push(new f(a,!0));else{const e=new p.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);s.push(new o.tA(e,r.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class O extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(C.JZ),s=[],n=t.getSelections()||[],r=t.getOption(12);for(const o of n)s.push(new R(o,this.down,r,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class D extends r.ks{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let s=t.getSelections();1===s.length&&s[0].isEmpty()&&(s=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const r of s)if(!L.canRun(t.getModel(),r,this.descending))return;const n=[];for(let r=0,o=s.length;r<o;r++)n[r]=new L(s[r],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends r.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:x.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:m.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const s=[],n=[];let r=0,o=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],o=!1);for(const l of a){const e=new Set,t=[];for(let s=l.startLineNumber;s<=l.endLineNumber;s++){const n=i.getLineContent(s);e.has(n)||(t.push(n),e.add(n))}const o=new p.L(l.startLineNumber,1,l.endLineNumber,i.getLineMaxColumn(l.endLineNumber)),a=l.startLineNumber-r,h=new p.L(a,1,a+t.length-1,t[t.length-1].length);s.push(c.k.replace(o,t.join("\n"))),n.push(h),r+=l.endLineNumber-l.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,s,o?n:void 0),t.pushUndoStop()}}class P extends r.ks{static{this.ID="editor.action.trimTrailingWhitespace"}constructor(){super({id:P.ID,label:x.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:(0,s.m5)(2089,2102),weight:100}})}run(e,t,i){let s=[];"auto-save"===i.reason&&(s=(t.getSelections()||[]).map((e=>new g.y(e.positionLineNumber,e.positionColumn))));const n=t.getSelection();if(null===n)return;const r=e.get(A.pG),o=t.getModel(),a=r.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:o?.getLanguageId(),resource:o?.uri}),c=new h(n,s,a);t.pushUndoStop(),t.executeCommands(this.id,[c]),t.pushUndoStop()}}class F extends r.ks{constructor(){super({id:"editor.action.deleteLines",label:x.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),s=t.getModel();if(1===s.getLineCount()&&1===s.getLineMaxColumn(1))return;let n=0;const r=[],o=[];for(let a=0,l=i.length;a<l;a++){const e=i[a];let t=e.startLineNumber,l=e.endLineNumber,h=1,d=s.getLineMaxColumn(l);l<s.getLineCount()?(l+=1,d=1):t>1&&(t-=1,h=s.getLineMaxColumn(t)),r.push(c.k.replace(new p.L(t,h,l,d),"")),o.push(new p.L(t-n,e.positionColumn,t-n,e.positionColumn)),n+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let s=t[0];for(let n=1;n<t.length;n++)s.endLineNumber+1>=t[n].startLineNumber?s.endLineNumber=t[n].endLineNumber:(i.push(s),s=t[n]);return i.push(s),i}}class U extends r.ks{constructor(){super({id:"editor.action.indentLines",label:x.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.T.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends r.ks{constructor(){super({id:"editor.action.outdentLines",label:x.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){n.Yh.Outdent.runEditorCommand(e,t,null)}}class B extends r.ks{constructor(){super({id:"editor.action.insertLineBefore",label:x.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends r.ks{constructor(){super({id:"editor.action.insertLineAfter",label:x.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends r.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),s=this._getRangesToDelete(t),n=[];for(let a=0,c=s.length-1;a<c;a++){const e=s[a],t=s[a+1];null===l.Q.intersectRanges(e,t)?n.push(e):s[a+1]=l.Q.plusRange(e,t)}n.push(s[s.length-1]);const r=this._getEndCursorState(i,n),o=n.map((e=>c.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}class z extends r.ks{constructor(){super({id:"editor.action.joinLines",label:x.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let s=t.getSelection();if(null===s)return;i.sort(l.Q.compareRangesUsingStarts);const n=[],r=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(s.equalsSelection(e)&&(s=t),t):t.startLineNumber>e.endLineNumber+1?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));n.push(r);const o=t.getModel();if(null===o)return;const a=[],h=[];let d=s,u=0;for(let g=0,m=n.length;g<m;g++){const e=n[g],t=e.startLineNumber,i=1;let r,m,f=0;const _=o.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<o.getLineCount()?(r=t+1,m=o.getLineMaxColumn(r)):(r=i.lineNumber,m=o.getLineMaxColumn(i.lineNumber))}else r=e.endLineNumber,m=o.getLineMaxColumn(r);let v=o.getLineContent(t);for(let s=t+1;s<=r;s++){const e=o.getLineContent(s),t=o.getLineFirstNonWhitespaceColumn(s);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const s=e.substr(t-1);v+=(i?" ":"")+s,f=i?s.length+1:s.length}else f=0}const C=new l.Q(t,i,r,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(c.k.replace(C,v)),i=new p.L(C.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(c.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==l.Q.intersectRanges(C,s)?d=i:h.push(i)}u+=C.endLineNumber-C.startLineNumber}h.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class G extends r.ks{constructor(){super({id:"editor.action.transpose",label:x.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:m.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=[];for(let r=0,a=i.length;r<a;r++){const e=i[r];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=s.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===s.getLineCount())continue;const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.iu(new p.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new l.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.ui(e,i,new p.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class j extends r.ks{run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=t.getOption(132),r=[];for(const o of i)if(o.isEmpty()){const e=o.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new l.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=s.getValueInRange(a);r.push(c.k.replace(a,this._modifyText(h,n)))}else{const e=s.getValueInRange(o);r.push(c.k.replace(o,this._modifyText(e,n)))}t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Y extends j{static{this.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu")}constructor(){super({id:"editor.action.transformToTitlecase",label:x.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.R.writable})}_modifyText(e,t){const i=Y.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}class q extends j{static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu")}constructor(){super({id:"editor.action.transformToSnakecase",label:x.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m.R.writable})}_modifyText(e,t){const i=q.caseBoundary.get(),s=q.singleLetters.get();return i&&s?e.replace(i,"$1_$2").replace(s,"$1_$2$3").toLocaleLowerCase():e}}class $ extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}constructor(){super({id:"editor.action.transformToCamelcase",label:x.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:m.R.writable})}_modifyText(e,t){const i=$.wordBoundary.get();if(!i)return e;const s=e.split(i);return s.shift()+s.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class Q extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}static{this.wordBoundaryToMaintain=new K("(?<=\\.)","gm")}constructor(){super({id:"editor.action.transformToPascalcase",label:x.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:m.R.writable})}_modifyText(e,t){const i=Q.wordBoundary.get(),s=Q.wordBoundaryToMaintain.get();if(!i||!s)return e;return e.split(s).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class X extends j{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu")}static{this.underscoreBoundary=new K("(\\S)(_)(\\S)","gm")}constructor(){super({id:"editor.action.transformToKebabcase",label:x.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:m.R.writable})}_modifyText(e,t){const i=X.caseBoundary.get(),s=X.singleLetters.get(),n=X.underscoreBoundary.get();return i&&s&&n?e.replace(n,"$1-$3").replace(i,"$1-$2").replace(s,"$1-$2").toLocaleLowerCase():e}}(0,r.Fl)(class extends N{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:x.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,r.Fl)(class extends N{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:x.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,r.Fl)(I),(0,r.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:x.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,r.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:x.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,r.Fl)(class extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:x.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.R.writable})}}),(0,r.Fl)(class extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:x.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.R.writable})}}),(0,r.Fl)(M),(0,r.Fl)(P),(0,r.Fl)(F),(0,r.Fl)(U),(0,r.Fl)(H),(0,r.Fl)(B),(0,r.Fl)(W),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllLeft",label:x.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];let n=0;return t.forEach((t=>{let r;if(1===t.endColumn&&n>0){const e=t.startLineNumber-n;r=new p.L(e,t.startColumn,e,t.startColumn)}else r=new p.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);n+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=r:s.push(r)})),i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const s=e.getModel();return null===s?[]:(i.sort(l.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:s.getLineLength(t)+1;return new l.Q(t,i,e.startLineNumber,1)}return new l.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new l.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllRight",label:x.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];for(let n=0,r=t.length,o=0;n<r;n++){const r=t[n],a=new p.L(r.startLineNumber-o,r.startColumn,r.startLineNumber-o,r.startColumn);r.intersectRanges(e)?i=a:s.push(a)}return i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const s=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new l.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return s.sort(l.Q.compareRangesUsingStarts),s}}),(0,r.Fl)(z),(0,r.Fl)(G),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToUppercase",label:x.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToLowercase",label:x.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),q.caseBoundary.isSupported()&&q.singleLetters.isSupported()&&(0,r.Fl)(q),$.wordBoundary.isSupported()&&(0,r.Fl)($),Q.wordBoundary.isSupported()&&(0,r.Fl)(Q),Y.titleBoundary.isSupported()&&(0,r.Fl)(Y),X.isSupported()&&(0,r.Fl)(X)},76007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageFeaturesService:()=>g});var s=i(41234),n=i(5662),r=i(16223),o=i(54459);function a(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,i,s,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=s,this.recursive=n}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,n.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){const i=[];return this._orderedForEach(e,t,(e=>i.push(e.provider))),i}orderedGroups(e){const t=[];let i,s;return this._orderedForEach(e,!1,(e=>{i&&s===e._score?i.push(e.provider):(s=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(const s of this._entries)s._score>0&&i(s)}_updateScores(e,t){const i=this._notebookInfoResolver?.(e.uri),s=i?new c(e.uri,e.getLanguageId(),i.uri,i.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(s)){this._lastCandidate=s;for(const i of this._entries)if(i._score=(0,o.f)(i.selector,s.uri,s.languageId,(0,r.vd)(e),s.notebookUri,s.notebookType),a(i.selector)&&i._score>0){if(!t){for(const e of this._entries)e._score=0;i._score=1e3;break}i._score=0}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:h(e.selector)&&!h(t.selector)?1:!h(e.selector)&&h(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(h):Boolean(e.isBuiltin))}var d=i(56942),u=i(14718);class g{constructor(){this.referenceProvider=new l(this._score.bind(this)),this.renameProvider=new l(this._score.bind(this)),this.newSymbolNamesProvider=new l(this._score.bind(this)),this.codeActionProvider=new l(this._score.bind(this)),this.definitionProvider=new l(this._score.bind(this)),this.typeDefinitionProvider=new l(this._score.bind(this)),this.declarationProvider=new l(this._score.bind(this)),this.implementationProvider=new l(this._score.bind(this)),this.documentSymbolProvider=new l(this._score.bind(this)),this.inlayHintsProvider=new l(this._score.bind(this)),this.colorProvider=new l(this._score.bind(this)),this.codeLensProvider=new l(this._score.bind(this)),this.documentFormattingEditProvider=new l(this._score.bind(this)),this.documentRangeFormattingEditProvider=new l(this._score.bind(this)),this.onTypeFormattingEditProvider=new l(this._score.bind(this)),this.signatureHelpProvider=new l(this._score.bind(this)),this.hoverProvider=new l(this._score.bind(this)),this.documentHighlightProvider=new l(this._score.bind(this)),this.multiDocumentHighlightProvider=new l(this._score.bind(this)),this.selectionRangeProvider=new l(this._score.bind(this)),this.foldingRangeProvider=new l(this._score.bind(this)),this.linkProvider=new l(this._score.bind(this)),this.inlineCompletionsProvider=new l(this._score.bind(this)),this.inlineEditProvider=new l(this._score.bind(this)),this.completionProvider=new l(this._score.bind(this)),this.linkedEditingRangeProvider=new l(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new l(this._score.bind(this)),this.documentSemanticTokensProvider=new l(this._score.bind(this)),this.documentDropEditProvider=new l(this._score.bind(this)),this.documentPasteEditProvider=new l(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,u.v)(d.ILanguageFeaturesService,g,1)},76319:(e,t,i)=>{e.exports=function(e){const t=i(94297);return function(i,s,n){const r=s.limitListLength>0&&i.length>s.limitListLength;return(r?i.slice(0,s.limitListLength-1):i).map((function(t){return e(t,s,n+1)})).concat(r?["... "+(i.length-s.limitListLength+1)+" hidden items"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,n))}}},76440:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(21478),o=i(68250);(0,s.HW)(r.M.ID,r.M,1),n.B2.register(o.u)},76495:(e,t,i)=>{"use strict";i.d(t,{hW:()=>r});var s=i(78049),n=i(44026);class r{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(function(e,t,i,n=a){const r=e.getOptions().tabSize,c=new o(n);let l;i&&(l=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],d=e.getLineCount()+1;h.push({indent:-1,endAbove:d,line:d});for(let o=e.getLineCount();o>0;o--){const i=e.getLineContent(o),n=(0,s.G)(i,r);let a,d=h[h.length-1];if(-1!==n){if(l&&(a=i.match(l))){if(!a[1]){h.push({indent:-2,endAbove:o,line:o});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,d=h[e],c.insertFirst(o,d.line,n),d.line=o,d.indent=n,d.endAbove=o;continue}}}if(d.indent>n){do{h.pop(),d=h[h.length-1]}while(d.indent>n);const e=d.endAbove-1;e-o>=1&&c.insertFirst(o,e,n)}d.indent===n?d.endAbove=o:h.push({indent:n,endAbove:o,line:o})}else t&&(d.endAbove=o)}return c.toIndentRanges(e)}(this.editorModel,i,n,this.foldingRangesLimit))}}class o{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>n.yy||t>n.yy)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,s=0;i>=0;i--,s++)e[s]=this._startIndexes[i],t[s]=this._endIndexes[i];return new n.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,r=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const s=this._indentOccurrences[e];if(s){if(s+i>t){r=e;break}i+=s}}const o=e.getOptions().tabSize,a=new Uint32Array(t),c=new Uint32Array(t);for(let n=this._length-1,l=0;n>=0;n--){const h=this._startIndexes[n],d=e.getLineContent(h),u=(0,s.G)(d,o);(u<r||u===r&&i++<t)&&(a[l]=h,c[l]=this._endIndexes[n],l++)}return new n.tz(a,c)}}}const a={limit:5e3,update:()=>{}}},76531:(e,t,i)=>{!function(){"use strict";const t=i(85858),s="$type",n="$value",r="$attributes";function o(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)&&"undefined"!==typeof e[t]}function a(e){return o(e,n)?e[n]:e}e.exports={hasSpecialProperty:o,attributes:function(e){return o(e,r)?e[r]:{}},value:a,type:function(e){return o(e,s)?e[s]:t(a(e))},ATTRIBUTES_KEY:r,VALUE_KEY:n,TYPE_KEY:s,INCOMPLETE_KEY:"$incomplete",BINARY_KEY:"$binary"}}()},77011:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var s=i(87758),n=i(5662),r=i(63591),o=i(64317),a=i(98031),c=i(90766),l=i(51219),h=i(8597),d=i(62083),u=i(12143),g=i(57039),p=i(88807),m=i(83069);class f extends n.jG{constructor(e,t=new h.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new p.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=h.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new h.fg(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?m.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return h.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=h.BK(t),n=h.tG(t.ownerDocument.body),r=s.top+i.top+i.height;return n.height-r-24}_findPositionPreference(e,t){const i=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),s=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),n=Math.min(Math.max(s,i),e),r=Math.min(e,n);let o;return o=this._editor.getOption(60).above?r<=s?1:2:r<=i?2:1,1===o?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),o}_resize(e){this._resizableNode.layout(e.height,e.width)}}var _,v=i(32848),C=i(84001),E=i(253),b=i(60002),S=i(52776),y=i(41234),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class extends f{static{_=this}static{this.ID="editor.contrib.resizableContentHoverWidget"}static{this._lastDimensions=new h.fg(0,0)}get isVisibleFromKeyboard(){return 1===this._renderedHover?.source}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(e,t,i,s,n){const r=e.getOption(67)+8,o=new h.fg(150,r);super(e,o),this._configurationService=i,this._accessibilityService=s,this._keybindingService=n,this._hover=this._register(new S.N4),this._onDidResize=this._register(new y.vl),this.onDidResize=this._onDidResize.event,this._minimumSize=o,this._hoverVisibleKey=b.R.hoverVisible.bindTo(t),this._hoverFocusedKey=b.R.hoverFocused.bindTo(t),h.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(h.w5(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return _.ID}static _applyDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.width=s,e.style.height=n}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return _._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return _._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.maxWidth=s,e.style.maxHeight=n}_setHoverWidgetMaxDimensions(e,t){_._applyMaxDimensions(this._hover.contentsDomNode,e,t),_._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){const e=this._findMaximumRenderingWidth()??1/0,t=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new h.fg(e,t),this._setHoverWidgetMaxDimensions(e,t)}_resize(e){_._lastDimensions=new h.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const e=this._renderedHover?.showAtPosition;if(e)return 1===this._positionPreference?this._availableVerticalSpaceAbove(e):this._availableVerticalSpaceBelow(e)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return h.tG(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._renderedHover)return!1;if(void 0===this._renderedHover.initialMousePosX||void 0===this._renderedHover.initialMousePosY)return this._renderedHover.initialMousePosX=e,this._renderedHover.initialMousePosY=t,!1;const i=h.BK(this.getDomNode());void 0===this._renderedHover.closestMouseDistance&&(this._renderedHover.closestMouseDistance=T(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,i.left,i.top,i.width,i.height));const s=T(e,t,i.left,i.top,i.width,i.height);return!(s>this._renderedHover.closestMouseDistance+4)&&(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,s),!0)}_setRenderedHover(e){this._renderedHover?.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,_._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,_._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(e){if(!this._editor||!this._editor.hasModel())return;this._render(e);const t=h.OK(this._hover.containerDomNode),i=e.showAtPosition;this._positionPreference=this._findPositionPreference(t,i)??1,this.onContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const s=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,S.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel()??"");s&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+s)}hide(){if(!this._renderedHover)return;const e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new h.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new h.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new h.fg(e,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const e=this._hover.containerDomNode;let t=h.OK(e),i=h.Tr(e);if(this._resizableNode.layout(t,i),this._setHoverWidgetDimensions(i,t),t=h.OK(e),i=h.Tr(e),this._contentWidth=i,this._updateMinimumWidth(),this._resizableNode.layout(t,i),this._renderedHover?.showAtPosition){const e=h.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function T(e,t,i,s,n,r){const o=i+n/2,a=s+r/2,c=Math.max(Math.abs(e-o)-n/2,0),l=Math.max(Math.abs(t-a)-r/2,0);return Math.sqrt(c*c+l*l)}L=_=w([R(1,v.fN),R(2,C.pG),R(3,E.j),R(4,a.b)],L);var x=i(25890);class k{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),s=t.range.startLineNumber;if(s>i.getLineCount())return[];const n=i.getLineMaxColumn(s);return e.getLineDecorations(s).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===s?e.range.startColumn:1,r=e.range.endLineNumber===s?e.range.endColumn:n;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>r)return!1}else if(i>t.range.startColumn||t.range.endColumn>r)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return c.AE.EMPTY;const i=k._getLineDecorations(this._editor,t);return c.AE.merge(this._participants.map((s=>s.computeAsync?s.computeAsync(t,i,e):c.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=k._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,x.Yc)(t)}}class A{constructor(e,t,i){this.anchor=e,this.hoverParts=t,this.isComplete=i}filter(e){const t=this.hoverParts.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.hoverParts.length?this:new N(this,this.anchor,t,this.isComplete)}}class N extends A{constructor(e,t,i,s){super(t,i,s),this.original=e}filter(e){return this.original.filter(e)}}var I=i(9270),O=i(87289),D=i(36677),M=i(57286),P=i(28712),F=i(68250),U=i(64383);class H extends n.jG{constructor(e,t,i,s,n,r){super();const o=t.anchor,a=t.hoverParts;this._renderedHoverParts=this._register(new W(e,i,a,r,n));const{showAtPosition:c,showAtSecondaryPosition:l}=H.computeHoverPositions(e,o.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=c,this.showAtSecondaryPosition=l,this.initialMousePosX=o.initialMousePosX,this.initialMousePosY=o.initialMousePosY,this.shouldFocus=s.shouldFocus,this.source=s.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}async updateHoverVerbosityLevel(e,t,i){this._renderedHoverParts.updateHoverVerbosityLevel(e,t,i)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(e,t,i){let s=1;if(e.hasModel()){const i=e._getViewModel(),n=i.coordinatesConverter,r=n.convertModelRangeToViewRange(t),o=i.getLineMinColumn(r.startLineNumber),a=new m.y(r.startLineNumber,o);s=n.convertViewPositionToModelPosition(a).column}const n=t.startLineNumber;let r,o,a,c=t.startColumn;for(const l of i){const e=l.range,t=e.startLineNumber===n,i=e.endLineNumber===n;if(t&&i){const t=e.startColumn,i=Math.min(c,t);c=Math.max(i,s)}l.forceShowAtRange&&(r=e)}if(r){const e=r.getStartPosition();o=e,a=e}else o=t.getStartPosition(),a=new m.y(n,c);return{showAtPosition:o,showAtSecondaryPosition:a}}}class B{constructor(e,t){this._statusBar=t,e.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}}class W extends n.jG{static{this._DECORATION_OPTIONS=O.kI.register({description:"content-hover-highlight",className:"hoverHighlight"})}constructor(e,t,i,s,n){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=n,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(t,i,n,s)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(e,i)),this._updateMarkdownAndColorParticipantInfo(t)}_createEditorDecorations(e,t){if(0===t.length)return n.jG.None;let i=t[0].range;for(const n of t){const e=n.range;i=D.Q.plusRange(i,e)}const s=e.createDecorationsCollection();return s.set([{range:i,options:W._DECORATION_OPTIONS}]),(0,n.s)((()=>{s.clear()}))}_renderParts(e,t,i,s){const r=new I.L(s),o={fragment:this._fragment,statusBar:r,...i},a=new n.Cm;for(const n of e){const e=this._renderHoverPartsForParticipant(t,n,o);a.add(e);for(const t of e.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:n,hoverPart:t.hoverPart,hoverElement:t.hoverElement})}const c=this._renderStatusBar(this._fragment,r);return c&&(a.add(c),this._renderedParts.push({type:"statusBar",hoverElement:c.hoverElement,actions:c.actions})),(0,n.s)((()=>{a.dispose()}))}_renderHoverPartsForParticipant(e,t,i){const s=e.filter((e=>e.owner===t));return s.length>0?t.renderHoverParts(i,s):new g.Ke([])}_renderStatusBar(e,t){if(t.hasContent)return new B(e,t)}_registerListenersOnRenderedParts(){const e=new n.Cm;return this._renderedParts.forEach(((t,i)=>{const s=t.hoverElement;s.tabIndex=0,e.add(h.ko(s,h.Bx.FOCUS_IN,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=i}))),e.add(h.ko(s,h.Bx.FOCUS_OUT,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=-1})))})),e}_updateMarkdownAndColorParticipantInfo(e){const t=e.find((e=>e instanceof M.xJ&&!(e instanceof F.u)));t&&(this._markdownHoverParticipant=t),this._colorHoverParticipant=e.find((e=>e instanceof P.BJ))}async updateHoverVerbosityLevel(e,t,i){if(!this._markdownHoverParticipant)return;const s=this._normalizedIndexToMarkdownHoverIndexRange(this._markdownHoverParticipant,t);if(void 0===s)return;const n=await this._markdownHoverParticipant.updateMarkdownHoverVerbosityLevel(e,s,i);n&&(this._renderedParts[t]={type:"hoverPart",participant:this._markdownHoverParticipant,hoverPart:n.hoverPart,hoverElement:n.hoverElement},this._context.onContentsChanged())}isColorPickerVisible(){return this._colorHoverParticipant?.isColorPickerVisible()??!1}_normalizedIndexToMarkdownHoverIndexRange(e,t){const i=this._renderedParts[t];if(!i||"hoverPart"!==i.type)return;if(!(i.participant===e))return;const s=this._renderedParts.findIndex((t=>"hoverPart"===t.type&&t.participant===e));if(-1===s)throw new U.D7;return t-s}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}}var V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new y.vl),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(L,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new k(this._editor,this._participants),this._hoverOperation=this._register(new u.w(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const e=[];for(const t of g.B2.getAll()){const i=this._instantiationService.createInstance(t,this._editor);e.push(i)}return e.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._register(this._contentHoverWidget.onDidResize((()=>{this._participants.forEach((e=>e.handleResize?.()))}))),e}_registerListeners(){this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new A(this._computer.anchor,t,e.isComplete))})));const e=this._contentHoverWidget.getDomNode();this._register(h.b2(e,"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.b2(e,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._register(d.dG.onDidChange((()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,s,n){if(!(this._contentHoverWidget.position&&this._currentResult))return!!e&&(this._startHoverOperationIfNecessary(e,t,i,s,!1),!0);const r=this._editor.getOption(60).sticky,o=n&&this._contentHoverWidget.isMouseGettingCloser(n.event.posx,n.event.posy);if(r&&o)return e&&this._startHoverOperationIfNecessary(e,t,i,s,!0),!0;if(!e)return this._setCurrentResult(null),!1;if(this._currentResult.anchor.equals(e))return!0;return e.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0)}_startHoverOperationIfNecessary(e,t,i,s,n){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=s,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=n,this._hoverOperation.start(t))}_setCurrentResult(e){let t=e;if(this._currentResult===t)return;t&&0===t.hoverParts.length&&(t=null),this._currentResult=t,this._currentResult?this._showHover(this._currentResult):this._hideHover()}_addLoadingMessage(e){if(!this._computer.anchor)return e;for(const t of this._participants){if(!t.createLoadingMessage)continue;const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(e);if(!e.isComplete)return;const t=0===e.hoverParts.length,i=this._computer.insistOnKeepingHoverVisible;t&&i||this._setCurrentResult(e)}_showHover(e){const t=this._getHoverContext();this._renderedContentHover=new H(this._editor,e,this._participants,this._computer,t,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:e=>{this._contentHoverWidget.setMinimumDimensions(e)}}}showsOrWillShow(e){if(this._contentHoverWidget.isResizing)return!0;const t=this._findHoverAnchorCandidates(e);if(!(t.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,e);const i=t[0];return this._startShowingOrUpdateHover(i,0,0,!1,e)}_findHoverAnchorCandidates(e){const t=[];for(const s of this._participants){if(!s.suggestHoverAnchor)continue;const i=s.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;switch(i.type){case 6:t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break;case 7:{const s=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(!(!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<s))break;t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break}}return t.sort(((e,t)=>t.priority-e.priority)),t}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,l.U)(t,e.x,e.y))&&this.hide()}startShowingAtRange(e,t,i,s){this._startShowingOrUpdateHover(new g.hx(0,e,void 0,void 0),t,i,s,null)}async updateHoverVerbosityLevel(e,t,i){this._renderedContentHover?.updateHoverVerbosityLevel(e,t,i)}focusedHoverPartIndex(){return this._renderedContentHover?.focusedHoverPartIndex??-1}containsNode(e){return!!e&&this._contentHoverWidget.getDomNode().contains(e)}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}getDomNode(){return this._contentHoverWidget.getDomNode()}get isColorPickerVisible(){return this._renderedContentHover?.isColorPickerVisible()??!1}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}};G=V([z(1,r._Y),z(2,a.b)],G);i(82320);var j,K=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Y=function(e,t){return function(i,s){t(i,s,e)}};let q=class extends n.jG{static{j=this}static{this.ID="editor.contrib.contentHover"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new y.vl),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new n.Cm,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new c.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(j.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return this._isMouseOnContentHoverWidget(e)||this._isContentWidgetResizing()}_isMouseOnContentHoverWidget(e){const t=this._contentWidget?.getDomNode();return!!t&&(0,l.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{const t=this._isMouseOnContentHoverWidget(e),i=this._contentWidget?.isColorPickerVisible??!1;return t&&i})(e)||((e,t)=>(t&&this._contentWidget?.containsNode(e.event.browserEvent.view?.document.activeElement)&&!e.event.browserEvent.view?.getSelection()?.isCollapsed)??!1)(e,t)}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=e,this._contentWidget?.isFocused||this._contentWidget?.isResizing)return;const t=this._hoverSettings.sticky;if(t&&this._contentWidget?.isVisibleFromKeyboard)return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const i=this._hoverSettings.hidingDelay,s=this._contentWidget?.isVisible;s&&t&&i>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(i):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;const t=e.target,i=t.element?.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(149),n=this._hoverSettings.enabled,r=this._hoverState.activatedByDecoratorClick;if(i&&("click"===s&&!r||"hover"===s&&!n||"clickAndHover"===s&&!n&&!r)||!i&&!n&&!r)return void this._hideWidgets();this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateContentWidget().showsOrWillShow(e)}_onKeyDown(e){if(!this._editor.hasModel())return;const t=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=1===t.kind||2===t.kind&&(t.commandId===s.jA||t.commandId===s.jq||t.commandId===s.Zp)&&this._contentWidget?.isVisible;5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||i||this._hideWidgets()}_hideWidgets(){this._hoverState.mouseDown&&this._contentWidget?.isColorPickerVisible||o.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._contentWidget?.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(G,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged((()=>this._onHoverContentsChanged.fire())))),this._contentWidget}showContentHover(e,t,i,s,n=!1){this._hoverState.activatedByDecoratorClick=n,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,s)}_isContentWidgetResizing(){return this._contentWidget?.widget.isResizing||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}updateHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateHoverVerbosityLevel(e,t,i)}focus(){this._contentWidget?.focus()}scrollUp(){this._contentWidget?.scrollUp()}scrollDown(){this._contentWidget?.scrollDown()}scrollLeft(){this._contentWidget?.scrollLeft()}scrollRight(){this._contentWidget?.scrollRight()}pageUp(){this._contentWidget?.pageUp()}pageDown(){this._contentWidget?.pageDown()}goToTop(){this._contentWidget?.goToTop()}goToBottom(){this._contentWidget?.goToBottom()}get isColorPickerVisible(){return this._contentWidget?.isColorPickerVisible}get isHoverVisible(){return this._contentWidget?.isVisible}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._contentWidget?.dispose()}};q=j=K([Y(1,r._Y),Y(2,a.b)],q)},77047:(e,t,i)=>{"use strict";var s=i(46359),n=i(71597),r=i(51861),o=i(80301),a=i(37882),c=i(73983),l=i(70125),h=i(64383),d=i(26690),u=i(6921),g=i(5662),p=i(74320);class m{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),s=new Map,n=[];for(const[r,o]of this.documents){if(t.isCancellationRequested)return[];for(const e of o.chunks){const t=this.computeSimilarityScore(e,i,s);t>0&&n.push({key:r,score:t})}}return n}static termFrequencies(e){return function(e){const t=new Map;for(const i of e)t.set(i,(t.get(i)??0)+1);return t}(m.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){for(const{key:t}of e)this.deleteDocument(t);for(const t of e){const e=[];for(const i of t.textChunks){const t=m.termFrequencies(i);for(const e of t.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);e.push({text:i,tf:t})}this.chunkCount+=e.length,this.documents.set(t.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let s=0;for(const[n,r]of Object.entries(t)){const t=e.tf.get(n);if(!t)continue;let o=i.get(n);"number"!==typeof o&&(o=this.computeIdf(n),i.set(n,o));s+=t*o*r}return s}computeEmbedding(e){const t=m.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){const t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){const t=Object.create(null);for(const[i,s]of e){const e=this.computeIdf(i);e>0&&(t[i]=s*e)}return t}}var f,_=i(78209),v=i(50091),C=i(84001),E=i(59599),b=i(63591),S=i(98031),y=i(18801),w=i(90766),R=i(18447),L=i(631);function T(e){const t=e;return Array.isArray(t.items)}function x(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(f||(f={}));class k extends g.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){const s=new g.Cm;let n;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new g.HE),o=async()=>{const s=r.value=new g.Cm;n?.dispose(!0),e.busy=!1,n=new R.Qi(t);const o=n.token;let a=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(a=a.trim());const c=this._getPicks(a,s,o,i),l=(t,i)=>{let s,n;if(T(t)?(s=t.items,n=t.active):s=t,0===s.length){if(i)return!1;(a.length>0||e.hideInput)&&this.options?.noResultsPick&&(s=(0,L.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(a)]:[this.options.noResultsPick])}return e.items=s,n&&(e.activeItems=[n]),!0},h=async t=>{let i=!1,s=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,w.wR)(t.mergeDelay),o.isCancellationRequested)||s||(i=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{const s=await t.additionalPicks;if(o.isCancellationRequested)return;let n,r,a,c;if(T(t.picks)?(n=t.picks.items,r=t.picks.active):n=t.picks,T(s)?(a=s.items,c=s.active):a=s,a.length>0||!i){let t;if(!r&&!c){const i=e.activeItems[0];i&&-1!==n.indexOf(i)&&(t=i)}l({items:[...n,...a],active:r||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),s=!0}})()])};if(null===c);else if(x(c))await h(c);else if(c instanceof Promise){e.busy=!0;try{const e=await c;if(o.isCancellationRequested)return;x(e)?await h(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else l(c)};s.add(e.onDidChangeValue((()=>o()))),o(),s.add(e.onDidAccept((t=>{if(i?.handleAccept)return t.inBackground||e.hide(),void i.handleAccept?.(e.activeItems[0]);const[s]=e.selectedItems;"function"===typeof s?.accept&&(t.inBackground||e.hide(),s.accept(e.keyMods,t))})));const a=async(i,s)=>{if("function"!==typeof s.trigger)return;const n=s.buttons?.indexOf(i)??-1;if(n>=0){const i=s.trigger(n,e.keyMods),r="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(r){case f.NO_ACTION:break;case f.CLOSE_PICKER:e.hide();break;case f.REFRESH_PICKER:o();break;case f.REMOVE_ITEM:{const t=e.items.indexOf(s);if(-1!==t){const i=e.items.slice(),s=i.splice(t,1),n=e.activeItems.filter((e=>e!==s[0])),r=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,n&&(e.activeItems=n),e.keepScrollPosition=r}break}}}};return s.add(e.onDidTriggerItemButton((({button:e,item:t})=>a(e,t)))),s.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>a(e,t)))),s}}var A,N,I=i(9711),O=i(90651),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};let P=class extends k{static{A=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,d.or)(d.WP,d.J1,d.Tt)}constructor(e,t,i,s,n,r){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=s,this.telemetryService=n,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=e}async _getPicks(e,t,i,s){const n=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const r=(0,u.P)((()=>{const t=new m;t.updateDocuments(n.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){const t=e.slice(0);t.sort(((e,t)=>t.score-e.score));const i=t[0]?.score??0;if(i>0)for(const s of t)s.score/=i;return t}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),o=[];for(const u of n){const t=A.WORD_FILTER(e,u.label)??void 0,s=u.commandAlias?A.WORD_FILTER(e,u.commandAlias)??void 0:void 0;if(t||s)u.highlights={label:t,detail:this.options.showAlias?s:void 0},o.push(u);else if(e===u.commandId)o.push(u);else if(e.length>=3){const e=r();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===u.commandId));t&&(u.tfIdfScore=t.score,o.push(u))}}const a=new Map;for(const u of o){const e=a.get(u.label);e?(u.description=u.commandId,e.description=e.commandId):a.set(u.label,u)}o.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),s=this.commandsHistory.peek(t.commandId);if(i&&s)return i>s?-1:1;if(i)return-1;if(s)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),s=this.options.suggestedCommandIds.has(t.commandId);if(i&&s)return 0;if(i)return-1;if(s)return 1}return e.label.localeCompare(t.label)}));const c=[];let l=!1,h=!0,d=!!this.options.suggestedCommandIds;for(let u=0;u<o.length;u++){const e=o[u];0===u&&this.commandsHistory.peek(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("recentlyUsed","recently used")}),l=!0),h&&void 0!==e.tfIdfScore&&(c.push({type:"separator",label:(0,_.kg)("suggested","similar commands")}),h=!1),d&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&this.options.suggestedCommandIds?.has(e.commandId)&&(c.push({type:"separator",label:(0,_.kg)("commonlyUsed","commonly used")}),l=!0,d=!1),!l||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||this.options.suggestedCommandIds?.has(e.commandId)||(c.push({type:"separator",label:(0,_.kg)("morecCommands","other commands")}),l=!1),c.push(this.toCommandPick(e,s))}return this.hasAdditionalCommandPicks(e,i)?{picks:c,additionalPicks:(async()=>{const t=await this.getAdditionalCommandPicks(n,o,e,i);if(i.isCancellationRequested)return[];const r=t.map((e=>this.toCommandPick(e,s)));return h&&"separator"!==r[0]?.type&&r.unshift({type:"separator",label:(0,_.kg)("suggested","similar commands")}),r})()}:c}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),s=i?(0,_.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:s,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:t?.from??"quick open"});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(i){(0,h.MB)(i)||this.dialogService.error((0,_.kg)("canNotRun","Command '{0}' resulted in an error",e.label),(0,l.r)(i))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let s=e;return t&&t!==e&&(s+=` - ${t}`),i&&i.value!==e&&(s+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),s}};P=A=D([M(1,b._Y),M(2,S.b),M(3,v.d),M(4,O.k),M(5,E.X)],P);let F=class extends g.jG{static{N=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===I.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=N.getConfiguredCommandHistoryLength(this.configurationService),N.cache&&N.cache.limit!==this.configuredCommandsHistoryLength&&(N.cache.limit=this.configuredCommandsHistoryLength,N.hasChanges=!0))}load(){const e=this.storageService.get(N.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(s){this.logService.error(`[CommandsHistory] invalid data: ${s}`)}const i=N.cache=new p.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}N.counter=this.storageService.getNumber(N.PREF_KEY_COUNTER,0,N.counter)}push(e){N.cache&&(N.cache.set(e,N.counter++),N.hasChanges=!0)}peek(e){return N.cache?.peek(e)}saveState(){if(!N.cache)return;if(!N.hasChanges)return;const e={usesLRU:!0,entries:[]};N.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(N.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N.PREF_KEY_COUNTER,N.counter,0,0),N.hasChanges=!1}static getConfiguredCommandHistoryLength(e){const t=e.getValue(),i=t.workbench?.commandPalette?.history;return"number"===typeof i?i:N.DEFAULT_COMMANDS_HISTORY_LENGTH}};F=N=D([M(0,I.CS),M(1,C.pG),M(2,y.rr)],F);class U extends P{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions()){let e;i.metadata?.description&&(e=(0,c.f)(i.metadata.description)?i.metadata.description:{original:i.metadata.description,value:i.metadata.description}),t.push({commandId:i.id,commandAlias:i.alias,commandDescription:e,label:(0,a.pS)(i.label)||i.id})}return t}}var H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends U{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,i,s,n,r){super({showAlias:!1},e,i,s,n,r),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};G=V([z(0,b._Y),z(1,o.T),z(2,S.b),z(3,v.d),z(4,O.k),z(5,E.X)],G);class j extends H.ks{static{this.ID="editor.action.quickCommand"}constructor(){super({id:j.ID,label:r.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:B.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(W.GK).quickAccess.show(G.PREFIX)}}(0,H.Fl)(j),s.O.as(n.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:G.PREFIX,helpEntries:[{description:r.gf.quickCommandHelp,commandId:j.ID}]})},77163:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new s.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},77668:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(49778).then(i.bind(i,49778))})},77888:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(57206).then(i.bind(i,57206))})},78049:(e,t,i)=>{"use strict";function s(e,t){let i=0,s=0;const n=e.length;for(;s<n;){const n=e.charCodeAt(s);if(32===n)i++;else{if(9!==n)break;i=i-i%t+t}s++}return s===n?-1:i}i.d(t,{G:()=>s})},78209:(e,t,i)=>{"use strict";function s(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}i.d(t,{i8:()=>n,Ec:()=>s,kg:()=>a,aS:()=>l});const r="pseudo"===n()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const s=i[0],n=t[s];let r=e;return"string"===typeof n?r=n:"number"!==typeof n&&"boolean"!==typeof n&&void 0!==n&&null!==n||(r=String(n)),r})),r&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function a(e,t,...i){return o("number"===typeof e?c(e,t):t,i)}function c(e,t){const i=s()?.[e];if("string"!==typeof i){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function l(e,t,...i){let s;s="number"===typeof e?c(e,t):t;const n=o(s,i);return{value:n,original:t===s?n:o(t,i)}}},78244:(e,t,i)=>{"use strict";i.d(t,{PA:()=>r,Vl:()=>n,Wt:()=>s});const s="editor.action.inlineSuggest.commit",n="editor.action.inlineSuggest.showPrevious",r="editor.action.inlineSuggest.showNext"},78381:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});const s=globalThis.performance&&"function"===typeof globalThis.performance.now;class n{static create(e){return new n(e)}constructor(e){this._now=s&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},78748:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var s=i(41234),n=i(46359);const r={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new s.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.O.add(r.JSONContribution,o)},79027:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var s=i(41234);const n=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new s.vl,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))}}},79064:(e,t,i)=>{var s=i(59368),n=i(63819);e.exports=function e(t,i,r,o,a){var c=-1,l=t.length;for(r||(r=n),a||(a=[]);++c<l;){var h=t[c];i>0&&r(h)?i>1?e(h,i-1,r,o,a):s(a,h):o||(a[a.length]=h)}return a}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>l,_1:()=>h,kb:()=>c});var s=i(74027),n=i(98067),r=i(91508);function o(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,s.SA.sep)}function c(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=s.SA.sep){if(!e)return"";const i=e.length,n=e.charCodeAt(0);if(o(n)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let s=3;const n=s;for(;s<i&&!o(e.charCodeAt(s));s++);if(n!==s&&!o(e.charCodeAt(s+1)))for(s+=1;s<i;s++)if(o(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(d(n)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r)for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1);return""}function h(e,t,i,n=s.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=n.uF){return!!t&&(d(e.charCodeAt(0))&&58===e.charCodeAt(1))}},79400:(e,t,i)=>{"use strict";i.d(t,{I:()=>_,r:()=>d});var s=i(74027),n=i(98067);const r=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const c="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,s,n,h=!1){"object"===typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,i||c),this.query=s||c,this.fragment=n||c,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:n,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===i?i=this.authority:null===i&&(i=c),void 0===s?s=this.path:null===s&&(s=c),void 0===n?n=this.query:null===n&&(n=c),void 0===r?r=this.fragment:null===r&&(r=c),t===this.scheme&&i===this.authority&&s===this.path&&n===this.query&&r===this.fragment?this:new g(t,i,s,n,r)}static parse(e,t=!1){const i=h.exec(e);return i?new g(i[2]||c,b(i[4]||c),b(i[5]||c),b(i[7]||c),b(i[9]||c),t):new g(c,c,c,c,c)}static file(e){let t=c;if(n.uF&&(e=e.replace(/\\/g,l)),e[0]===l&&e[1]===l){const i=e.indexOf(l,2);-1===i?(t=e.substring(2),e=l):(t=e.substring(2,i),e=e.substring(i)||l)}return new g("file",t,e,c,c)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=n.uF&&"file"===e.scheme?d.file(s.IN.join(_(e,!0),...t)).path:s.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=n.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let s,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==s&&(s+=e.charAt(r));else{void 0===s&&(s=e.substr(0,r));const t=p[o];void 0!==t?(-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),s+=t):-1===n&&(n=r)}}return-1!==n&&(s+=encodeURIComponent(e.substring(n))),void 0!==s?s:e}function f(e){let t;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);35===s||63===s?(void 0===t&&(t=e.substr(0,i)),t+=p[s]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n.uF&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let s="",{scheme:n,authority:r,path:o,query:a,fragment:c}=e;if(n&&(s+=n,s+=":"),(r||"file"===n)&&(s+=l,s+=l),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?s+=i(t,!1,!1):(s+=i(t.substr(0,e),!1,!1),s+=":",s+=i(t.substr(e+1),!1,!0)),s+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?s+=i(r,!1,!0):(s+=i(r.substr(0,e),!1,!0),s+=r.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}s+=i(o,!0,!1)}return a&&(s+="?",s+=i(a,!1,!1)),c&&(s+="#",s+=t?c:m(c,!1,!1)),s}function C(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(E)?e.replace(E,(e=>C(e))):e}},79614:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var s=i(64383),n=i(41234),r=i(96032),o=i(5662),a=i(74320),c=i(89403),l=i(91508),h=i(36677),d=i(78209);class u{constructor(e,t,i,s){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=s,this.id=r.r.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){const e=this.parent.getPreview(this)?.preview(this.range);return e?(0,d.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",e.value,(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,d.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,c.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:s,startColumn:n,endLineNumber:r,endColumn:o}=e,a=i.getWordUntilPosition({lineNumber:s,column:n-t}),c=new h.Q(s,a.startColumn,s,n),l=new h.Q(r,o,r,1073741824),d=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(l).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,o.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,d.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,c.P8)(this.uri),this.uri.fsPath):(0,d.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,c.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,s.dz)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let s;e.sort(m._compareReferences);for(const n of e)if(s&&c.er.isEqual(s.uri,n.uri,!0)||(s=new p(this,n.uri),this.groups.push(s)),0===s.children.length||0!==m._compareReferences(n,s.children[s.children.length-1])){const e=new u(i===n,s,n,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),s.children.push(e)}}dispose(){(0,o.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,d.kg)("aria.result.0","No results found"):1===this.references.length?(0,d.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,d.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,d.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let s=i.children.indexOf(e);const n=i.children.length,r=i.parent.groups.length;return 1===r||t&&s+1<n||!t&&s>0?(s=t?(s+1)%n:(s+n-1)%n,i.children[s]):(s=i.parent.groups.indexOf(i),t?(s=(s+1)%r,i.parent.groups[s].children[0]):(s=(s+r-1)%r,i.parent.groups[s].children[i.parent.groups[s].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,s)=>({idx:s,prefixLen:l.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return c.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},79907:(e,t,i)=>{"use strict";var s=i(78209),n=i(11007),r=i(90766),o=i(18447),a=i(64383),c=i(5662),l=i(34326),h=i(31450),d=i(80301),u=i(36677),g=i(60002),p=i(16223),m=i(56942),f=i(13864),_=i(32848),v=i(36456),C=i(74320),E=i(54459),b=i(89403),S=i(26486),y=i(62083),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};class L{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,i){const s=[],n=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!n)return Promise.resolve(s);if(e.isDisposed())return;return e.findMatches(n.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})))}provideMultiDocumentHighlights(e,t,i,s){const n=new C.fT,r=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!r)return Promise.resolve(n);for(const o of[e,...i]){if(o.isDisposed())continue;const e=o.findMatches(r.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})));e&&n.set(o.uri,e)}return n}}let T=class extends c.jG{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new L)),this._register(e.multiDocumentHighlightProvider.register("*",new L))}};T=w([R(0,m.ILanguageFeaturesService)],T);var x,k,A=i(72466),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=new _.N1("hasWordHighlights",!1);function D(e,t,i,s){const n=e.ordered(t);return(0,r.$1)(n.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,s)).then(void 0,a.M_))),(e=>void 0!==e&&null!==e)).then((e=>{if(e){const i=new C.fT;return i.set(t.uri,e),i}return new C.fT}))}class M{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,r.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new u.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const s=t.startLineNumber,n=t.startColumn,r=t.endColumn,o=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(o));for(let c=0,l=i.length;!a&&c<l;c++){const e=i.getRange(c);e&&e.startLineNumber===s&&e.startColumn<=n&&e.endColumn>=r&&(a=!0)}return a}cancel(){this.result.cancel()}}class P extends M{constructor(e,t,i,s){super(e,t,i),this._providers=s}_compute(e,t,i,s){return D(this._providers,e,t.getPosition(),s).then((e=>e||new C.fT))}}class F extends M{constructor(e,t,i,s,n){super(e,t,i),this._providers=s,this._otherModels=n}_compute(e,t,i,s){return function(e,t,i,s,n,o){const c=e.ordered(t);return(0,r.$1)(c.map((e=>()=>{const s=o.filter((e=>(0,p.vd)(e))).filter((t=>(0,E.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,s,n)).then(void 0,a.M_)})),(e=>void 0!==e&&null!==e))}(this._providers,e,t.getPosition(),0,s,this._otherModels).then((e=>e||new C.fT))}}(0,h.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const s=e.get(m.ILanguageFeaturesService),n=await D(s.documentHighlightProvider,t,i,o.XO.None);return n?.get(t.uri)}));let U=class{static{x=this}static{this.storedDecorationIDs=new C.fT}static{this.query=null}constructor(e,t,i,s,n){this.toUnhook=new c.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new C.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new r.ve(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=n,this._hasWordHighlights=O.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this.runDelayer.trigger((()=>{this._onPositionChanged(e)}))}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this.runDelayer.trigger((()=>{this._run()})))}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{(0,v.v$)(this.model.uri,"output")||this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():x.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case"off":this._stopAll();break;case"singleFile":this._stopAll(x.query?.modelInfo?.model);break;case"multiFile":x.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",t)}}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,x.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(u.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t+1)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t-1+e.length)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=x.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),x.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){const t=this.codeEditorService.listCodeEditors(),i=[];for(const s of t){if(!s.hasModel()||(0,b.n4)(s.getModel().uri,e?.uri))continue;const t=x.storedDecorationIDs.get(s.getModel().uri);if(!t)continue;s.removeDecorations(t),i.push(s.getModel().uri);const n=H.get(s);n?.wordHighlighter&&(n.wordHighlighter.decorations.length>0&&(n.wordHighlighter.decorations.clear(),n.wordHighlighter.workerRequest=null,n.wordHighlighter._hasWordHighlights.set(!1)))}for(const s of i)x.storedDecorationIDs.delete(s)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==v.ny.vscodeNotebookCell&&x.query?.modelInfo?.model.uri.scheme!==v.ny.vscodeNotebookCell?(x.query=null,this._run()):x.query?.modelInfo&&(x.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(e){this._removeAllDecorations(e),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){"off"!==this.occurrencesHighlight&&(3===e.reason||this.editor.getModel()?.uri.scheme===v.ny.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===v.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){const i=s.getModel();i&&i!==e&&i.uri.scheme===v.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){if(!(0,l.Np)(s))continue;const i=s.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const s of i){const i=s.getModel();i&&i!==e&&t.push(i)}return t}_run(e){let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return x.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,n=this._getWord();if(!n||n.startColumn>i||n.endColumn<s)return x.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),x.query={modelInfo:{model:this.model,selection:e},word:n}}else if(!x.query)return void this._stopAll();if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if((0,b.n4)(this.editor.getModel().uri,x.query.modelInfo?.model.uri)){if(!e){const e=this.decorations.getRanges();for(const t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!x.query||!x.query.modelInfo||x.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(x.query.modelInfo.model,x.query.modelInfo.selection,x.query.word,i),this.workerRequest?.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),a.dz)}}computeWithModel(e,t,i,s){return s.length?function(e,t,i,s,n,r){return new F(t,i,n,e,r)}(this.multiDocumentProviders,e,t,0,this.editor.getOption(132),s):function(e,t,i,s,n){return new P(t,i,n,e)}(this.providers,e,t,0,this.editor.getOption(132))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=this.codeEditorService.listCodeEditors();for(const t of e){const e=H.get(t);if(!e)continue;const i=[],s=t.getModel()?.uri;if(s&&this.workerRequestValue.has(s)){const n=x.storedDecorationIDs.get(s),r=this.workerRequestValue.get(s);if(r)for(const e of r)e.range&&i.push({range:e.range,options:(0,f.P)(e.kind)});let o=[];t.changeDecorations((e=>{o=e.deltaDecorations(n??[],i)})),x.storedDecorationIDs=x.storedDecorationIDs.set(s,o),i.length>0&&(e.wordHighlighter?.decorations.set(i),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};U=x=N([I(4,d.T)],U);let H=class extends c.jG{static{k=this}static{this.ID="editor.contrib.wordHighlighter"}static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s){super(),this._wordHighlighter=null;const n=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new U(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,s))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),n()}))),n()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};H=k=N([I(1,_.fN),I(2,m.ILanguageFeaturesService),I(3,d.T)],H);class B extends h.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=H.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class W extends h.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:s.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const s=H.get(t);s&&s.restoreViewState(!0)}}(0,h.HW)(H.ID,H,0),(0,h.Fl)(class extends B{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:s.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:65,weight:100}})}}),(0,h.Fl)(class extends B{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:s.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1089,weight:100}})}}),(0,h.Fl)(W),(0,A.x)(T)},79928:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},80200:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>i.e(55454).then(i.bind(i,55454))})},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},80409:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(31308),o=i(49154),a=i(60002),c=i(78244),l=i(62051),h=i(8597),d=i(5662);var u=i(11007),g=i(90766),p=i(18447),m=i(87958),f=i(13850),_=i(631),v=i(36999),C=i(38844),E=i(83069),b=i(32500),S=i(56942),y=i(80789),w=i(41234),R=i(91508),L=i(73157),T=i(87908),x=i(36677),k=i(99020),A=i(10154),N=i(16223),I=i(87469),O=i(25521),D=i(35600),M=i(92674),P=i(73401),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H="ghost-text";let B=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const s=i instanceof M.Vs?i.columnRange:void 0,n=[],r=[];function o(e,t){if(r.length>0){const i=r[r.length-1];t&&i.decorations.push(new O.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)r.push({content:i,decorations:t?[new O.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let c,l=0;for(const d of i.parts){let e=d.lines;void 0===c?(n.push({column:d.column,text:e[0],preview:d.preview}),e=e.slice(1)):o([a.substring(l,d.column-1)],void 0),e.length>0&&(o(e,H),void 0===c&&d.column<=a.length&&(c=d.column)),l=d.column-1}void 0!==c&&o([a.substring(l)],void 0);const h=void 0!==c?new P.GM(c,a.length+1):void 0;return{replacedRange:s,inlineTexts:n,additionalLines:r,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const s of t.inlineTexts)i.push({range:x.Q.fromPositions(new E.y(t.lineNumber,s.column)),options:{description:H,after:{content:s.text,inlineClassName:s.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:N.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new W(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,d.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,P.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};B=F([U(2,A.L)],B);class W extends d.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",w.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(118)||e.hasChanged(100)||e.hasChanged(95)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const s=this.editor.getModel();if(!s)return;const{tabSize:n}=s.getOptions();this.editor.changeViewZones((s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);const r=Math.max(t.length,i);if(r>0){const i=document.createElement("div");!function(e,t,i,s,n){const r=s.get(33),o=s.get(118),a="none",c=s.get(95),l=s.get(51),h=s.get(50),d=s.get(67),u=new k.fe(1e4);u.appendString('<div class="suggest-preview-text">');for(let m=0,f=i.length;m<f;m++){const e=i[m],s=e.content;u.appendString('<div class="view-line'),u.appendString('" style="top:'),u.appendString(String(m*d)),u.appendString('px;width:1000000px;">');const g=R.aC(s),p=R.E_(s),f=I.f.createEmpty(s,n);(0,D.UW)(new D.zL(h.isMonospace&&!r,h.canUseHalfwidthRightwardsArrow,s,!1,g,p,0,f,e.decorations,t,0,h.spaceWidth,h.middotWidth,h.wsmiddotWidth,o,a,c,l!==T.Bc.OFF,null),u),u.appendString("</div>")}u.appendString("</div>"),(0,L.M)(e,h);const g=u.build(),p=V?V.createHTML(g):g;e.innerHTML=p}(i,n,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:r,domNode:i,afterColumnAffinity:1})}}))}}const V=(0,y.H)("editorGhostText",{createHTML:e=>e});var z=i(64317),G=i(25890),j=i(46041),K=i(51241),Y=i(64383),q=i(7085),$=i(75326),Q=i(75295),X=i(50973),Z=i(62083),J=i(17469),ee=i(26690),te=i(20940),ie=i(83993);function se(e,t,i){const s=i?e.range.intersectRanges(i):e.range;if(!s)return e;const n=t.getValueInRange(s,1),r=(0,R.Qp)(n,e.text),o=X.W.ofText(n.substring(0,r)).addToPosition(e.range.getStartPosition()),a=e.text.substring(r),c=x.Q.fromPositions(o,e.range.getEndPosition());return new Q.WR(c,a)}function ne(e,t){return e.text.startsWith(t.text)&&(i=e.range,(s=t.range).getStartPosition().equals(i.getStartPosition())&&s.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,s}function re(e,t,i,s,n=0){let r=se(e,t);if(r.range.endLineNumber!==r.range.startLineNumber)return;const o=t.getLineContent(r.range.startLineNumber),a=(0,R.UU)(o).length;if(r.range.startColumn-1<=a){const e=(0,R.UU)(r.text).length,t=o.substring(r.range.startColumn-1,a),[i,s]=[r.range.getStartPosition(),r.range.getEndPosition()],n=i.column+t.length<=s.column?i.delta(0,t.length):s,c=x.Q.fromPositions(n,s),l=r.text.startsWith(t)?r.text.substring(t.length):r.text.substring(e);r=new Q.WR(c,l)}const c=t.getValueInRange(r.range),l=function(e,t){if(oe?.originalValue===e&&oe?.newValue===t)return oe?.changes;{let i=ce(e,t,!0);if(i){const s=ae(i);if(s>0){const n=ce(e,t,!1);n&&ae(n)<s&&(i=n)}}return oe={originalValue:e,newValue:t,changes:i},i}}(c,r.text);if(!l)return;const h=r.range.startLineNumber,d=new Array;if("prefix"===i){const e=l.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==c.length)return}const u=r.text.length-n;for(const g of l){const e=r.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&s&&s.lineNumber===r.range.startLineNumber&&e<s.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,n=Math.max(g.modifiedStart,Math.min(t,u)),o=r.text.substring(g.modifiedStart,n),a=r.text.substring(n,Math.max(g.modifiedStart,t));o.length>0&&d.push(new M.yP(e,o,!1)),a.length>0&&d.push(new M.yP(e,a,!0))}return new M.xD(h,d)}let oe;function ae(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ce(e,t,i){if(e.length>5e3||t.length>5e3)return;function s(e){let t=0;for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);s>t&&(t=s)}return t}const n=Math.max(s(e),s(t));function r(e){if(e<0)throw new Error("unexpected");return n+e+1}function o(e){let t=0,s=0;const n=new Int32Array(e.length);for(let o=0,a=e.length;o<a;o++)if(i&&"("===e[o]){const e=100*s+t;n[o]=r(2*e),t++}else if(i&&")"===e[o]){t=Math.max(t-1,0);const e=100*s+t;n[o]=r(2*e+1),0===t&&s++}else n[o]=e.charCodeAt(o);return n}const a=o(e),c=o(t);return new ie.uP({getElements:()=>a},{getElements:()=>c}).ComputeDiff(!1).changes}var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class extends d.jG{constructor(e,t,i,s,n){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=s,this.languageConfigurationService=n,this._updateOperation=this._register(new d.HE),this.inlineCompletions=(0,r.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,r.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){const s=new ue(e,t,this.textModel.getVersionId()),n=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(this._updateOperation.value?.request.satisfies(s))return this._updateOperation.value.promise;if(n.get()?.request.satisfies(s))return Promise.resolve(!0);const o=!!this._updateOperation.value;this._updateOperation.clear();const a=new p.Qi,c=(async()=>{var c,l;if((o||t.triggerKind===Z.qw.Automatic)&&await(c=this._debounceValue.get(this.textModel),l=a.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),c);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date,d=await(0,te.Yk)(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,a.token,this.languageConfigurationService);if(a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new pe(d,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!d.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,r.Rn)((e=>{n.set(g,e)})),!0})(),l=new ge(s,a,c);return this._updateOperation.value=l,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){this._updateOperation.value?.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};de=le([he(3,S.ILanguageFeaturesService),he(4,J.JZ)],de);class ue{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(0,K.KC)(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(0,K.r)())&&(e.context.triggerKind===Z.qw.Automatic||this.context.triggerKind===Z.qw.Explicit)&&this.versionId===e.versionId}}class ge{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class pe{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,s){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=s,this._refCount=1,this._prependedInlineCompletionItems=[];const n=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new me(e,n[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const s=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new me(e,s,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class me{get forwardStable(){return this.inlineCompletion.source.inlineCompletions.enableForwardStability??!1}constructor(e,t,i,s){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=s,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=(0,r.C)({owner:this,equalsFn:x.Q.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){return this.inlineCompletion.withRange(this._updatedRange.read(e)??fe)}toSingleTextEdit(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.insertText)}isVisible(e,t,i){const s=se(this._toFilterTextReplacement(i),e),n=this._updatedRange.read(i);if(!n||!this.inlineCompletion.range.getStartPosition().equals(n.getStartPosition())||t.lineNumber!==s.range.startLineNumber)return!1;const r=e.getValueInRange(s.range,1),o=s.text,a=Math.max(0,t.column-s.range.startColumn);let c=o.substring(0,a),l=o.substring(a),h=r.substring(0,a),d=r.substring(a);const u=e.getLineIndentColumn(s.range.startLineNumber);return s.range.startColumn<=u&&(h=h.trimStart(),0===h.length&&(d=d.trimStart()),c=c.trimStart(),0===c.length&&(l=l.trimStart())),c.startsWith(h)&&!!(0,ee.dE)(d,l)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&X.W.ofRange(i).isGreaterThanOrEqualTo(X.W.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.filterText)}}const fe=new x.Q(1,1,1,1);var _e=i(30936),ve=i(50091),Ce=i(63591),Ee=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},be=function(e,t){return function(i,s){t(i,s,e)}};let Se=class extends d.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,s,n,o,a,c,l,h,d,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this._textModelVersionId=i,this._positions=s,this._debounceValue=n,this._suggestPreviewEnabled=o,this._suggestPreviewMode=a,this._inlineSuggestMode=c,this._enabled=l,this._instantiationService=h,this._commandService=d,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(de,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=(0,r.FY)(this,!1),this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._primaryPosition=(0,r.un)(this,(e=>this._positions.read(e)[0]??new E.y(1,1))),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ye.Redo,ye.Undo,ye.AcceptWord]),this._fetchInlineCompletionsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Z.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(e.change))?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=Z.qw.Explicit),!0)},((e,t)=>{this._forceUpdateExplicitlySignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this._textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),s=this.selectedSuggestItem.read(e);if(i&&!s){const e=this._source.inlineCompletions.get();(0,r.Rn)((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const n=this._primaryPosition.read(e),o={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:s?.toSelectedSuggestionInfo()},a=this.selectedInlineCompletion.get(),c=t.preserveCurrentCompletion||a?.forwardStable?a:void 0;return this._source.fetch(n,o,c)})),this._filteredInlineCompletionItems=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),s=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return s})),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineCompletion=(0,r.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>this.selectedInlineCompletion.read(e)?.inlineCompletion.source.inlineCompletions.commands??[])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>e?.request.context.triggerKind)),this.inlineCompletionsCount=(0,r.un)(this,(e=>this.lastTriggerKind.read(e)===Z.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,r.C)({owner:this,equalsFn:(e,t)=>e&&t?(0,M.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{const t=this.textModel,i=this.selectedSuggestItem.read(e);if(i){const s=se(i.toSingleTextEdit(),t),n=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!n)return;const r=n?.edit??s,o=n?n.edit.text.length-s.text.length:0,a=this._suggestPreviewMode.read(e),c=this._positions.read(e),l=[r,...we(this.textModel,c,r)],h=l.map(((e,i)=>re(e,t,a,c[i],o))).filter(_.O9);return{edits:l,primaryGhostText:h[0]??new M.xD(r.range.endLineNumber,[]),ghostTexts:h,inlineCompletion:n?.completion,suggestItem:i}}{if(!this._isActive.read(e))return;const i=this.selectedInlineCompletion.read(e);if(!i)return;const s=i.toSingleTextEdit(e),n=this._inlineSuggestMode.read(e),r=this._positions.read(e),o=[s,...we(this.textModel,r,s)],a=o.map(((e,i)=>re(e,t,n,r[i],0))).filter(_.O9);if(!a[0])return;return{edits:o,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:i,suggestItem:void 0}}})),this.ghostTexts=(0,r.C)({owner:this,equalsFn:M.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,r.C)({owner:this,equalsFn:M.x9},(e=>{const t=this.state.read(e);if(t)return t?.primaryGhostText})),this._register((0,r.OI)(this._fetchInlineCompletionsPromise)),this._register((0,r.fm)((e=>{const t=this.state.read(e),i=t?.inlineCompletion;if(i?.semanticId!==g?.semanticId&&(g=i,i)){const e=i.inlineCompletion,t=e.source;t.provider.handleItemDidShow?.(t.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}_getReason(e){return e?.isUndoing?ye.Undo:e?.isRedoing?ye.Redo:this.isAcceptingPartially?ye.AcceptWord:ye.Other}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,s=this._source.suggestWidgetInlineCompletions.read(t),n=s?s.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(_.O9);return(0,j.oH)(n,(s=>{let n=s.toSingleTextEdit(t);return n=se(n,i,x.Q.fromPositions(n.range.getStartPosition(),e.range.getEndPosition())),ne(n,e)?{completion:s,edit:n}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new Y.D7;const t=this.state.get();if(!t||t.primaryGhostText.isEmpty()||!t.inlineCompletion)return;const i=t.inlineCompletion.toInlineCompletion(void 0);if(i.command&&i.source.addRef(),e.pushUndoStop(),i.snippetInfo)e.executeEdits("inlineSuggestion.accept",[q.k.replace(i.range,""),...i.additionalTextEdits]),e.setPosition(i.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),_e.O.get(e)?.insert(i.snippetInfo.snippet,{undoStopBefore:!1});else{const s=t.edits,n=Re(s).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...s.map((e=>q.k.replace(e.range,e.text))),...i.additionalTextEdits]),e.setSelections(n,"inlineCompletionAccept")}this.stop(),i.command&&(await this._commandService.executeCommand(i.command.id,...i.command.arguments||[]).then(void 0,Y.M_),i.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),s=this._languageConfigurationService.getLanguageConfiguration(i),n=new RegExp(s.wordDefinition.source,s.wordDefinition.flags.replace("g","")),r=t.match(n);let o=0;o=r&&void 0!==r.index?0===r.index?r[0].length:r.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<o&&(o=a.index+a[0].length),o}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new Y.D7;const s=this.state.get();if(!s||s.primaryGhostText.isEmpty()||!s.inlineCompletion)return;const n=s.primaryGhostText,r=s.inlineCompletion.toInlineCompletion(void 0);if(r.snippetInfo||r.filterText!==r.insertText)return void await this.accept(e);const o=n.parts[0],a=new E.y(n.lineNumber,o.column),c=o.text,l=t(a,c);if(l===c.length&&1===n.parts.length)return void this.accept(e);const h=c.substring(0,l),d=this._positions.get(),u=d[0];r.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=x.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,s=new Q.WR(t,i),n=[s,...we(this.textModel,d,s)],r=Re(n).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",n.map((e=>q.k.replace(e.range,e.text)))),e.setSelections(r,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(r.source.provider.handlePartialAccept){const t=x.Q.fromPositions(r.range.getStartPosition(),X.W.ofText(h).addToPosition(a)),s=e.getModel().getValueInRange(t,1);r.source.provider.handlePartialAccept(r.source.inlineCompletions,r.sourceInlineCompletion,s.length,{kind:i})}}finally{r.source.removeRef()}}handleSuggestAccepted(e){const t=se(e.toSingleTextEdit(),this.textModel),i=this._computeAugmentation(t,void 0);if(!i)return;const s=i.completion.inlineCompletion;s.source.provider.handlePartialAccept?.(s.source.inlineCompletions,s.sourceInlineCompletion,t.text.length,{kind:2})}};var ye;function we(e,t,i){if(1===t.length)return[];const s=t[0],n=t.slice(1),r=i.range.getStartPosition(),o=i.range.getEndPosition(),a=e.getValueInRange(x.Q.fromPositions(s,o)),c=(0,P.tN)(s,r);if(c.lineNumber<1)return(0,Y.dz)(new Y.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${s.toString()} and ${r.toString()}`)),[];const l=function(e,t){let i="";const s=(0,R.en)(e);for(let n=t.lineNumber-1;n<s.length;n++)i+=s[n].substring(n===t.lineNumber-1?t.column-1:0);return i}(i.text,c);return n.map((t=>{const i=(0,P.OA)((0,P.tN)(t,r),o),s=e.getValueInRange(x.Q.fromPositions(t,i)),n=(0,R.Qp)(a,s),c=x.Q.fromPositions(t,t.delta(0,n));return new Q.WR(c,l)}))}function Re(e){const t=G.t9.createSortPermutation(e,(0,G.VE)((e=>e.range),x.Q.compareRangesUsingStarts)),i=new Q.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}Se=Ee([be(9,Ce._Y),be(10,ve.d),be(11,J.JZ)],Se),function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ye||(ye={}));var Le=i(29319),Te=i(38280),xe=i(90870);class ke extends d.jG{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new w.vl),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=xe.D.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),o=r?se(r,n):void 0;if(!o)return-1;const a=E.y.lift(t),c=i.map(((e,t)=>{const i=se(Ae.fromSuggestion(s,n,a,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:ne(o,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),l=(0,j.Cn)(c,(0,G.VE)((e=>e.prefixLength),G.U9));return l?l.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(w.Jh.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=Ae.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=xe.D.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),s=this.editor.getModel();return t&&i&&s?Ae.fromSuggestion(e,s,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=xe.D.get(this.editor);e?.stopForceRenderingAbove()}forceRenderingAbove(){const e=xe.D.get(this.editor);e?.forceRenderingAbove()}}class Ae{static fromSuggestion(e,t,i,s,n){let{insertText:r}=s.completion,o=!1;if(4&s.completion.insertTextRules){const e=(new Le.fr).parse(r);e.children.length<100&&Te.O.adjustWhitespace(t,i,!0,e),r=e.toString(),o=!0}const a=e.getOverwriteInfo(s,n);return new Ae(x.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),r,s.completion.kind,o)}constructor(e,t,i,s){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=s}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new Z.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Q.WR(this.range,this.insertText)}}var Ne,Ie=i(78209),Oe=i(253),De=i(87213),Me=i(84001),Pe=i(32848),Fe=i(98031),Ue=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},He=function(e,t){return function(i,s){t(i,s,e)}};let Be=class extends d.jG{static{Ne=this}static{this.ID="editor.contrib.inlineCompletionsController"}static get(e){return e.getContribution(Ne.ID)}constructor(e,t,i,s,n,o,a,u,b,S){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=s,this._commandService=n,this._debounceService=o,this._languageFeaturesService=a,this._accessibilitySignalService=u,this._keybindingService=b,this._accessibilityService=S,this._editorObs=(0,C.Ud)(this.editor),this._positions=(0,r.un)(this,(e=>this._editorObs.selections.read(e)?.map((e=>e.getEndPosition()))??[new E.y(1,1)])),this._suggestWidgetAdaptor=this._register(new ke(this.editor,(()=>(this._editorObs.forceUpdate(),this.model.get()?.selectedInlineCompletion.get()?.toSingleTextEdit(void 0))),(e=>this._editorObs.forceUpdate((t=>{this.model.get()?.handleSuggestAccepted(e)}))))),this._suggestWidgetSelectedItem=(0,r.y0)(this,(e=>this._suggestWidgetAdaptor.onDidSelectedItemChange((()=>{this._editorObs.forceUpdate((t=>e(void 0)))}))),(()=>this._suggestWidgetAdaptor.selectedItem)),this._enabledInConfig=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=(0,r.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=(0,r.y0)(this,this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=(0,r.un)(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=(0,m.a0)(this,(e=>{if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance(Se,t,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).preview)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).previewMode)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).mode)),this._enabled)})).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=(0,r.un)(this,(e=>{const t=this.model.read(e);return t?.ghostTexts.read(e)??[]})),this._stablizedGhostTexts=function(e,t){const i=(0,r.FY)("result",[]),s=[];return t.add((0,r.fm)((t=>{const n=e.read(t);(0,r.Rn)((e=>{if(n.length!==s.length){s.length=n.length;for(let e=0;e<s.length;e++)s[e]||(s[e]=(0,r.FY)("item",n[e]));i.set([...s],e)}s.forEach(((t,i)=>t.set(n[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,f.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(B,this.editor,{ghostText:e,minReservedLineCount:(0,r.lk)(0),targetTextModel:this.model.map((e=>e?.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=(0,r.Yd)(this),this._fontFamily=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._register(new l.p(this._contextKeyService,this.model)),this._register((0,C.jD)(this._editorObs.onDidType,((e,t)=>{this._enabled.get()&&this.model.get()?.trigger()}))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([v.Yh.Tab.id,v.Yh.DeleteLeft.id,v.Yh.DeleteRight.id,c.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate((e=>{this.model.get()?.trigger(e)}))}))),this._register((0,C.jD)(this._editorObs.selections,((e,t)=>{t.some((e=>3===e.reason||"api"===e.source))&&this.model.get()?.stop()}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||z.bo.dropDownVisible||(0,r.Rn)((e=>{this.model.get()?.stop(e)}))}))),this._register((0,r.fm)((e=>{const t=this.model.read(e)?.state.read(e);t?.suggestItem?t.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,d.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const y=(0,f.ZX)(this,((e,t)=>{const i=this.model.read(e),s=i?.state.read(e);return this._suggestWidgetSelectedItem.get()?t:s?.inlineCompletion?.semanticId}));this._register((0,C.Qg)((0,r.un)((e=>(this._playAccessibilitySignal.read(e),y.read(e),{}))),(async(e,t,i)=>{const s=this.model.get(),n=s?.state.get();if(!n||!s)return;const o=s.textModel.getLineContent(n.primaryGhostText.lineNumber);await(0,g.wR)(50,(0,p.bs)(i)),await(0,r.oJ)(this._suggestWidgetSelectedItem,_.b0,(()=>!1),(0,p.bs)(i)),await this._accessibilitySignalService.playSignal(De.Rh.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(o))}))),this._register(new z.Pm(this.editor,this.model,this._instantiationService)),this._register(function(e){const t=new d.Cm,i=t.add((0,h.jh)());return t.add((0,r.fm)((t=>{i.setStyle(e.read(t))}))),t}((0,r.un)((e=>{const t=this._fontFamily.read(e);return""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`})))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}_provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let s;!t&&i&&this.editor.getOption(150)&&(s=(0,Ie.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),(0,u.xE)(s?e+", "+s:e)}shouldShowHoverAt(e){const t=this.model.get()?.primaryGhostText.get();return!!t&&t.parts.some((i=>e.containsPosition(new E.y(t.lineNumber,i.column))))}shouldShowHoverAtViewZone(e){return this._ghostTextWidgets.get()[0]?.ownsViewZone(e)??!1}};Be=Ne=Ue([He(1,Ce._Y),He(2,Pe.fN),He(3,Me.pG),He(4,ve.d),He(5,b.ILanguageFeatureDebounceService),He(6,S.ILanguageFeaturesService),He(7,De.Nt),He(8,Fe.b),He(9,Oe.j)],Be);var We=i(48116),Ve=i(27195);class ze extends s.ks{static{this.ID=c.PA}constructor(){super({id:ze.ID,label:Ie.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=Be.get(t);i?.model.get()?.next()}}class Ge extends s.ks{static{this.ID=c.Vl}constructor(){super({id:Ge.ID,label:Ie.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=Be.get(t);i?.model.get()?.previous()}}class je extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Ie.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=Be.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e)),i?.playAccessibilitySignal(e)}))}}class Ke extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Ie.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible)},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextWord(i.editor))}}class Ye extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Ie.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,l.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextLine(i.editor))}}class qe extends s.ks{constructor(){super({id:c.Wt,label:Ie.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:l.p.inlineSuggestionVisible,menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Pe.M$.and(l.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),l.p.inlineSuggestionHasIndentationLessThanTabSize,We.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){const i=Be.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class $e extends s.ks{static{this.ID="editor.action.inlineSuggest.hide"}constructor(){super({id:$e.ID,label:Ie.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:l.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Be.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}class Qe extends Ve.L{static{this.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"}constructor(){super({id:Qe.ID,title:Ie.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Ve.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Pe.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Me.pG),s="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",s)}}var Xe=i(16980),Ze=i(20492),Je=i(49099),et=i(90651),tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},it=function(e,t){return function(i,s){t(i,s,e)}};class st{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let nt=class{constructor(e,t,i,s,n,r){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=s,this._instantiationService=n,this._telemetryService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Be.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const s=i.detail;if(t.shouldShowHoverAtViewZone(s.viewZoneId))return new n.mm(1e3,this,x.Q.fromPositions(this._editor.getModel().validatePosition(s.positionBefore||s.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Be.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new st(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new d.Cm,s=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(e,s));const o=s.controller.model.get(),a=this._instantiationService.createInstance(z.bo,this._editor,!1,(0,r.lk)(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands),c=a.getDomNode();e.fragment.appendChild(c),o.triggerExplicitly(),i.add(a);const l={hoverPart:s,hoverElement:c,dispose(){i.dispose()}};return new n.Ke([l])}renderScreenReaderText(e,t){const i=new d.Cm,s=h.$,n=s("div.hover-row.markdown-hover"),o=h.BC(n,s("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Ze.T({editor:this._editor},this._languageService,this._openerService));return i.add((0,r.fm)((s=>{const n=t.controller.model.read(s)?.primaryGhostText.read(s);if(n){const t=this._editor.getModel().getLineContent(n.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{o.className="hover-contents code-hover-contents",e.onContentsChanged()})));const s=Ie.kg("inlineSuggestionFollows","Suggestion:"),n=i.add(a.render((new Xe.Bc).appendText(s).appendCodeblock("text",t)));o.replaceChildren(n.element)})(n.renderForScreenReader(t))}else h.Ln(o)}))),e.fragment.appendChild(n),i}};nt=tt([it(1,A.L),it(2,Je.C),it(3,Oe.j),it(4,Ce._Y),it(5,et.k)],nt);var rt=i(96282);(0,s.HW)(Be.ID,Be,3),(0,s.Fl)(je),(0,s.Fl)(ze),(0,s.Fl)(Ge),(0,s.Fl)(Ke),(0,s.Fl)(Ye),(0,s.Fl)(qe),(0,s.Fl)($e),(0,Ve.ug)(Qe),n.B2.register(nt),rt.Z.register(new class{})},80449:(e,t,i)=>{e.exports=i(17184)},80531:(e,t,i)=>{var s=i(68097),n=i(88834),r=i(12529),o=i(92061);e.exports=function(e,t){return t=s(t,e),null==(e=r(e,t))||delete e[o(n(t))]}},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>c,jN:()=>a,nu:()=>o});var s=i(63591),n=i(79400),r=i(631);const o=(0,s.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(c.is(e))return c.lift(e);if(l.is(e))return l.lift(e);throw new Error("Unsupported edit")}))}}class c extends a{static is(e){return e instanceof c||(0,r.Gv)(e)&&n.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof c?e:new c(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,s){super(s),this.resource=e,this.textEdit=t,this.versionId=i}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof l?e:new l(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}},80538:(e,t,i)=>{"use strict";i.d(t,{NN:()=>f,eS:()=>p,f9:()=>m,hE:()=>u,sv:()=>g});var s=i(25890),n=i(18447),r=i(64383),o=i(36456),a=i(31450),c=i(56942),l=i(79614);function h(e,t){return t.uri.scheme===e.uri.scheme||!(0,o.fV)(t.uri,o.ny.walkThroughSnippet,o.ny.vscodeChatCodeBlock,o.ny.vscodeChatCodeCompareBlock)}async function d(e,t,i,n,o){const a=i.ordered(e,n).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,r.M_)(e)})))),c=await Promise.all(a);return(0,s.Yc)(c.flat()).filter((t=>h(e,t)))}function u(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDefinition(t,i,n)))}function g(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDeclaration(t,i,n)))}function p(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideImplementation(t,i,n)))}function m(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function f(e,t,i,s,n,r){return d(t,i,e,n,(async(e,t,i)=>{const n=(await e.provideReferences(t,i,{includeDeclaration:!0},r))?.filter((e=>h(t,e)));if(!s||!n||2!==n.length)return n;const o=(await e.provideReferences(t,i,{includeDeclaration:!1},r))?.filter((e=>h(t,e)));return o&&1===o.length?o:n}))}async function _(e){const t=await e(),i=new l.y4(t,""),s=i.references.map((e=>e.link));return i.dispose(),s}(0,a.ke)("_executeDefinitionProvider",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDefinitionProvider_recursive",((e,t,i)=>{const s=u(e.get(c.ILanguageFeaturesService).definitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider_recursive",((e,t,i)=>{const s=m(e.get(c.ILanguageFeaturesService).typeDefinitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider_recursive",((e,t,i)=>{const s=g(e.get(c.ILanguageFeaturesService).declarationProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider_recursive",((e,t,i)=>{const s=f(e.get(c.ILanguageFeaturesService).referenceProvider,t,i,!1,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider_recursive",((e,t,i)=>{const s=p(e.get(c.ILanguageFeaturesService).implementationProvider,t,i,!0,n.XO.None);return _((()=>s))}))},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(27145),n=i(59284),r=i(46734),o=i(9296);const a=(0,i(69220).om)("card"),c=n.forwardRef((function(e,t){const{type:i="container",theme:c,view:l,size:h="m",children:d,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,s.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,C=("action"===i||_)&&Boolean(g)&&!p,E=v?"normal":void 0,b=v||_?"outlined":void 0,S=C?g:void 0,{onKeyDown:y}=(0,r.N)(g);return n.createElement(o.a,Object.assign({ref:t,role:C?"button":void 0,className:a({theme:c||E,view:l||b,type:i,selected:m,size:h,disabled:p,clickable:C},u),onClick:S,onKeyDown:C?y:void 0,tabIndex:C?0:void 0},f),d)}))},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>n,pj:()=>l,qN:()=>c});class s{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends s{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i,s){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=s}}class o{static from(e){const t=new Array(e.length);for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=new o(s.left,s.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class c{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class l{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},80718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EditorWorkerHost:()=>s});class s{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(s.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(s.CHANNEL_NAME,t)}}},80781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,default:()=>Zc,editor:()=>qc,languages:()=>$c});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>Pc,Emitter:()=>Fc,KeyCode:()=>Uc,KeyMod:()=>Hc,MarkerSeverity:()=>Gc,MarkerTag:()=>jc,Position:()=>Bc,Range:()=>Wc,Selection:()=>Vc,SelectionDirection:()=>zc,Token:()=>Yc,Uri:()=>Kc,editor:()=>qc,languages:()=>$c});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836);var n=i(52555),r=(i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606),i(87908)),o=i(73848),a=i(25893),c=i(5662),l=i(91508),h=i(79400),d=i(28433),u=i(31450),g=i(80301),p=i(10146),m=i(90766),f=i(51929),_=i(80789),v=i(64383),C=i(36456),E=i(25890),b=i(78209);let S;function y(e,t){const i=globalThis.MonacoEnvironment;if(i){if("function"===typeof i.getWorker)return i.getWorker("workerMain.js",t);if("function"===typeof i.getWorkerUrl){const e=i.getWorkerUrl("workerMain.js",t);return new Worker(S?S.createScriptURL(e):e,{name:t,type:"module"})}}if(e){const i=function(e,t,i){const s=/^((http:)|(https:)|(file:)|(vscode-file:))/.test(t);if(s&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{const i=t.lastIndexOf("?"),s=t.lastIndexOf("#",i),n=i>0?new URLSearchParams(t.substring(i+1,~s?s:void 0)):new URLSearchParams;C.SJ.addSearchParam(n,!0,!0);t=n.toString()?`${t}?${n.toString()}#${e}`:`${t}#${e}`}0;const n=new Blob([(0,E.Yc)([`/*${e}*/`,i?`globalThis.MonacoEnvironment = { baseUrl: '${i}' };`:void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,b.Ec)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,b.i8)())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL('${t}') ?? '${t}');`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n)}(t,e.toString(!0)),s=new Worker(S?S.createScriptURL(i):i,{name:t,type:"module"});return function(e){return new Promise(((t,i)=>{e.onmessage=function(i){"vscode-worker-ready"===i.data.type&&(e.onmessage=null,t(e))},e.onerror=i}))}(s)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}S="object"===typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==globalThis.workerttPolicy?globalThis.workerttPolicy:(0,_.H)("defaultWorkerFactory",{createScriptURL:e=>e});class w extends c.jG{constructor(e,t,i,s,n,r){super(),this.id=i,this.label=s;const o=y(e,s);"function"===typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(t,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})),this._register((0,c.s)((()=>{this.worker?.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",r),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){this.worker?.then((i=>{try{i.postMessage(e,t)}catch(s){(0,v.dz)(s),(0,v.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:s}))}}))}}class R{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=C.zl.asBrowserUri(`${e}.esm.js`)}}class L{static{this.LAST_WORKER_ID=0}constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++L.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new w(e.esmModuleLocation,e.amdModuleId,s,e.label||"anonymous"+s,t,(e=>{(0,f.logOnceWebWorkerWarning)(e),this._webWorkerFailedBeforeError=e,i(e)}))}}var T=i(36677),x=i(17469),k=i(16545),A=i(23750),N=i(90360),I=i(18801),O=i(78381),D=i(56942),M=i(41845),P=i(87723),F=i(86571),U=i(8597),H=i(47443),B=i(80718),W=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},V=function(e,t){return function(i,s){t(i,s,e)}};const z=3e5;function G(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let j=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._languageConfigurationService=n,this._modelService=t,this._workerManager=this._register(new Y(e,this._modelService)),this._logService=s,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!G(this._modelService,e.uri))return Promise.resolve({links:[]});const i=await this._workerWithResources([e.uri]),s=await i.$computeLinks(e.uri.toString());return s&&{links:s}}})),this._register(r.completionProvider.register("*",new K(this._workerManager,i,this._modelService,this._languageConfigurationService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return G(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,s){const n=await this._workerWithResources([e,t],!0),r=await n.$computeDiff(e.toString(),t.toString(),i,s);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map((e=>new M.t(new P.WL(new F.M(e[0],e[1]),new F.M(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>new P.wm(new F.M(e[0],e[1]),new F.M(e[2],e[3]),e[4]?.map((e=>new P.q6(new T.Q(e[0],e[1],e[2],e[3]),new T.Q(e[4],e[5],e[6],e[7])))))))}}async computeMoreMinimalEdits(e,t,i=!1){if((0,E.EI)(t)){if(!G(this._modelService,e))return Promise.resolve(t);const s=O.W.create(),n=this._workerWithResources([e]).then((s=>s.$computeMoreMinimalEdits(e.toString(),t,i)));return n.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([n,(0,m.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return G(this._modelService,e)}async navigateValueSet(e,t,i){const s=this._modelService.getModel(e);if(!s)return null;const n=this._languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=n.source,o=n.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return G(this._modelService,e)}async computeWordRanges(e,t){const i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);const s=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),n=s.source,r=s.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,n,r)}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){const i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};j=W([V(1,A.IModelService),V(2,N.ITextResourceConfigurationService),V(3,I.rr),V(4,x.JZ),V(5,D.ILanguageFeaturesService)],j);class K{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const s=[];if("currentDocument"===i.wordBasedSuggestions)G(this._modelService,e.uri)&&s.push(e.uri);else for(const h of this._modelService.getModels())G(this._modelService,h.uri)&&(h===e?s.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||s.push(h.uri));if(0===s.length)return;const n=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new T.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):T.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column),c=await this._workerManager.withWorker(),l=await c.textualSuggest(s,r?.word,n);return l?{duration:l.duration,suggestions:l.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}})))}:void 0}}let Y=class extends c.jG{constructor(e,t){super(),this._workerDescriptor=e,this._modelService=t,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new U.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),a.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>z&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new $(this._workerDescriptor,!1,this._modelService)),Promise.resolve(this._editorWorkerClient)}};Y=W([V(1,A.IModelService)],Y);class q{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw new Error("Not supported")}}let $=class extends c.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._disposed=!1,this._modelService=i,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(function(e,t){const i="string"===typeof e?new R(e,t):e;return new f.SimpleWorkerClient(new L,i)}(this._workerDescriptor)),B.EditorWorkerHost.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{const e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new q(new k.EditorSimpleWorker(this._createEditorWorkerHost(),null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new H.WorkerTextModelSyncClient(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,v.aD)());const i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){const s=await this.workerWithSyncedResources(e),n=i.source,r=i.flags;return s.$textualSuggest(e.map((e=>e.toString())),t,n,r)}dispose(){super.dispose(),this._disposed=!0}};$=W([V(2,A.IModelService)],$);var Q=i(41234),X=i(58925),Z=i(47612),J=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ee=function(e,t){return function(i,s){t(i,s,e)}};let te=class extends c.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new Q.vl),this._onCodeEditorAdd=this._register(new Q.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Q.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Q.vl),this._onDiffEditorAdd=this._register(new Q.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Q.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new X.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const s=e.toString();let n;this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const s of this._codeEditorOpenHandlers){const n=await s(e,t,i);if(null!==n)return n}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,c.s)(t)}};te=J([ee(0,Z.Gy)],te);var ie=i(32848),se=i(14718),ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class extends te{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===C.ny.http||i===C.ny.https)return(0,U.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};oe=ne([re(0,ie.fN),re(1,Z.Gy)],oe),(0,se.v)(g.T,oe,0);var ae=i(63591);const ce=(0,ae.u1)("layoutService");var le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class{get mainContainer(){return(0,E.Fy)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??a.G.document.body}get activeContainer(){const e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return U.tG(this.mainContainer)}get activeContainerDimension(){return U.tG(this.activeContainer)}get containers(){return(0,E.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=Q.Jh.None,this.onDidLayoutActiveContainer=Q.Jh.None,this.onDidLayoutContainer=Q.Jh.None,this.onDidChangeActiveContainer=Q.Jh.None,this.onDidAddContainer=Q.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};de=le([he(0,g.T)],de);let ue=class extends de{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ue=le([he(1,g.T)],ue),(0,se.v)(ce,de,1);var ge=i(42291),pe=i(59599),me=i(58591),fe=i(47579),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=!1;function Ee(e){return e.scheme===C.ny.file?e.fsPath:e.path}let be=0;class Se{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ye{constructor(e,t){this.resourceLabel=e,this.reason=t}}class we{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,s]of this.elements){(0===s.reason?e:t).push(s.resourceLabel)}const i=[];return e.length>0&&i.push(b.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(b.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Re{constructor(e,t,i,s,n,r,o){this.id=++be,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new we),this.removedResources.has(t)||this.removedResources.set(t,new ye(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new we),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new ye(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Le{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,s=this._past.length;i<s;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new fe.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,s=0,n=-1;for(let o=0,a=this._past.length;o<a;o++,s++){const r=this._past[o];i&&(s>=t||r.id!==e.elements[s])&&(i=!1,n=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let o=this._future.length-1;o>=0;o--,s++){const n=this._future[o];i&&(s>=t||n.id!==e.elements[s])&&(i=!1,r=o),i||1!==n.type||n.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Te{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const xe=new Le("","");xe.locked=!0;let ke=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e,t=fe.I_.None,i=fe.Ym.None){if(0===e.type){const s=Ee(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new Se(e,s,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const s=new Set,n=[],r=[];for(const t of e.resources){const e=Ee(t),i=this.getUriComparisonKey(t);s.has(i)||(s.add(i),n.push(e),r.push(i))}1===n.length?this._pushElement(new Se(e,n[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Re(e,n,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],s=e.strResources[t];let n;this._editStacks.has(s)?n=this._editStacks.get(s):(n=new Le(i,s),this._editStacks.set(s,n)),n.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitPastWorkspaceElement(e,s)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=Ee(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitFutureWorkspaceElement(e,s)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const s=this.getUriComparisonKey(e);if(this._editStacks.has(s)){this._editStacks.get(s).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new fe.To(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=s))}return[t,i]}canUndo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,v.dz)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,s,n){const r=this._acquireLocks(i);let o;try{o=t()}catch(a){return r(),s.dispose(),this._onError(a,e)}return o?o.then((()=>(r(),s.dispose(),n())),(t=>(r(),s.dispose(),this._onError(t,e)))):(r(),s.dispose(),n())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return c.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?c.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(c.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,c.Xm)(i)?t(i):i.then((e=>t(e))):t(c.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||xe);return new Te(t)}_tryToSplitAndUndo(e,t,i,s){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._undo(e,0,!0));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceUndo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestPastElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,b.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const s=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,s,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,s,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,s){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(n||(n={}));const{result:r}=await this._dialogService.prompt({type:ge.A.Info,message:b.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:b.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>n.All},{label:b.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>n.This}],cancelButton:{run:()=>n.Cancel}});if(r===n.Cancel)return;if(r===n.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const o=this._checkWorkspaceUndo(e,t,i,!1);if(o)return o.returnValue;s=!0}let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return n.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,n,(()=>this._continueUndoInGroup(t.groupId,s)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(s=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Te([e]),s,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=b.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const s=this._editStacks.get(e),n=s.getClosestPastElement();if(!n)return;if(n.groupId){const[e,s]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&s)return this._undo(s,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);try{return 1===n.type?this._workspaceUndo(e,n,i):this._resourceUndo(s,n,i)}finally{Ce}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:b.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:b.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:b.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=s))}return[t,i]}canRedo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,s){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._redo(e));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceRedo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,b.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestFutureElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,b.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),s=this._checkWorkspaceRedo(e,t,i,!1);return s?s.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return s.dispose(),n.returnValue;for(const o of i.editStacks)o.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,s,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Te([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=b.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ce}}}};ke=_e([ve(0,pe.X),ve(1,me.Ot)],ke);class Ae{constructor(e){this.returnValue=e}}(0,se.v)(fe.$D,ke,1);i(32500),i(27004),i(76007);var Ne=i(66261),Ie=i(67220),Oe=i(47508),De=i(98031),Me=i(84001),Pe=i(52776),Fe=i(17390),Ue=i(49099),He=i(20492),Be=i(16980),We=i(98067),Ve=i(253),ze=i(11007),Ge=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},je=function(e,t){return function(i,s){t(i,s,e)}};const Ke=U.$;let Ye=class extends Fe.x{get _targetWindow(){return U.zk(this._target.targetElements[0])}get _targetDocumentElement(){return U.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,s,n,o){super(),this._keybindingService=t,this._configurationService=i,this._openerService=s,this._instantiationService=n,this._accessibilityService=o,this._messageListeners=new c.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Q.vl),this._onRequestLayout=this._register(new Q.vl),this._linkHandler=e.linkHandler||(t=>(0,He.i)(this._openerService,t,(0,Be.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new $e(e.target),this._hoverPointer=e.appearance?.showPointer?Ke("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Pe.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),e.appearance?.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=e.position?.hoverPosition??3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(U.ko(this._targetWindow,"blur",(()=>this.dispose())));const a=Ke("div.hover-row.markdown-hover"),l=Ke("div.hover-contents");if("string"===typeof e.content)l.textContent=e.content,l.style.whiteSpace="pre-wrap";else if(U.sb(e.content))l.appendChild(e.content),l.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(He.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||r.jU.fontFamily}),{element:s}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});l.appendChild(s)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=Ke("div.hover-row.status-bar"),i=Ke("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),s=t?t.getLabel():null;Pe.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},s)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let h;if(this._hoverContainer=Ke("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),h=!(e.actions&&e.actions.length>0)&&(void 0===e.persistence?.hideOnHover?"string"===typeof e.content||(0,Be.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=Ke("div.hover-row.status-bar"),t=Ke("div.info");t.textContent=(0,b.kg)("hoverhint","Hold {0} key to mouse over",We.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const d=[...this._target.targetElements];h||d.push(this._hoverContainer);const u=this._register(new qe(d));if(this._register(u.onMouseOut((()=>{this._isLocked||this.dispose()}))),h){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new qe(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=u}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=U.Hs(this._hoverContainer,Ke("div")),s=U.BC(this._hoverContainer,Ke("div"));i.tabIndex=0,s.tabIndex=0,this._register(U.ko(s,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(U.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const s=this.findLastFocusableChild(i);if(s)return s}}render(e){e.appendChild(this._hoverContainer);const t=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,Pe.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel());t&&(0,ze.h5)(t),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=U.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:s,left:n}=e[0],r=i-n,o=s-t,a={top:t,right:i,bottom:s,left:n,width:r,height:o,center:{x:n+r/2,y:t+o/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+r/2,a.center.y=a.top+o/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const s=this._x+i;(s<e.left||s>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};Ye=Ge([je(1,De.b),je(2,Me.pG),je(3,Ue.C),je(4,ae._Y),je(5,Ve.j)],Ye);class qe extends Fe.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new Q.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=U.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(U.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class $e{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Qe,Xe=i(72962),Ze=i(55089),Je=i(92719);function et(e,t,i){const s=i.mode===Qe.ALIGN?i.offset:i.offset+i.size,n=i.mode===Qe.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-s?s:t<=n?n-t:Math.max(e-t,0):t<=n?n-t:t<=e-s?s:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Qe||(Qe={}));class tt extends c.jG{static{this.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"]}static{this.BUBBLE_DOWN_EVENTS=["click"]}constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=c.jG.None,this.toDisposeOnSetContainer=c.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=U.$(".context-view"),U.jD(this.view),this.setContainer(e,t),this._register((0,c.s)((()=>this.setContainer(null,1))))}setContainer(e,t){this.useFixedPosition=1!==t;const i=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||i!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=U.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=it,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(U.$("slot"))}else this.container.appendChild(this.view);const t=new c.Cm;tt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),tt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){this.isVisible()&&this.hide(),U.w_(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(e.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",U.WU(this.view),this.toDisposeOnClean=e.render(this.view)||c.jG.None,this.delegate=e,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||We.un&&Ze.e.pointerEvents?(this.delegate?.layout?.(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(U.sb(e)){const i=U.BK(e),s=U.mU(e);t={top:i.top*s,left:i.left*s,width:i.width*s,height:i.height*s}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=U.Tr(this.view),s=U.OK(this.view),n=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,o=this.delegate.anchorAxisAlignment||0;let a,c;const l=U.fz();if(0===o){const e={offset:t.top-l.pageYOffset,size:t.height,position:0===n?0:1},o={offset:t.left,size:t.width,position:0===r?0:1,mode:Qe.ALIGN};a=et(l.innerHeight,s,e)+l.pageYOffset,Je.Q.intersects({start:a,end:a+s},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),c=et(l.innerWidth,i,o)}else{const e={offset:t.left,size:t.width,position:0===r?0:1},o={offset:t.top,size:t.height,position:0===n?0:1,mode:Qe.ALIGN};c=et(l.innerWidth,i,e),Je.Q.intersects({start:c,end:c+i},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),a=et(l.innerHeight,s,o)+l.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===n?"bottom":"top"),this.view.classList.add(0===r?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=U.BK(this.container);this.view.style.top=a-(this.useFixedPosition?U.BK(this.view).top:h.top)+"px",this.view.style.left=c-(this.useFixedPosition?U.BK(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t?.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),U.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,U.zk(e).document.activeElement):t&&!U.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}const it='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var st=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},nt=function(e,t){return function(i,s){t(i,s,e)}};let rt=class extends c.jG{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new tt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let s;s=t?t===this.layoutService.getContainer((0,U.zk)(t))?1:i?3:2:1,this.contextView.setContainer(t??this.layoutService.activeContainer,s),this.contextView.show(e);const n={close:()=>{this.openContextView===n&&this.hideContextView()}};return this.openContextView=n,n}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};rt=st([nt(0,ce)],rt);class ot extends rt{getContextViewElement(){return this.contextView.getViewElement()}}var at=i(18447),ct=i(631);class lt{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,ct.Kg)(e)||(0,U.sb)(e))s=e;else if((0,ct.Tn)(e.markdown)){this._hoverWidget||this.show((0,b.kg)("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new at.Qi;const n=this._cancellationTokenSource.token;if(s=await e.markdown(n),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||n.isCancellationRequested)return}else s=e.markdown??e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const s=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!s,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(n,t)}s?.dispose()}hasContent(e){return!!e&&(!(0,Be.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var ht=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},dt=function(e,t){return function(i,s){t(i,s,e)}};let ut=class extends c.jG{constructor(e,t,i,s,n){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=s,this._accessibilityService=n,this._managedHovers=new Map,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new rt(this._layoutService))}showHover(e,t,i){if(gt(this._currentHoverOptions)===gt(e))return;if(this._currentHover&&this._currentHoverOptions?.persistence?.sticky)return;this._currentHoverOptions=e,this._lastHoverOptions=e;const s=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),n=(0,U.bq)();i||(s&&n?n.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=n):this._lastFocusedElementBeforeOpen=void 0);const r=new c.Cm,o=this._instantiationService.createInstance(Ye,e);if(e.persistence?.sticky&&(o.isLocked=!0),o.onDispose((()=>{this._currentHover?.domNode&&(0,U.nR)(this._currentHover.domNode)&&this._lastFocusedElementBeforeOpen?.focus(),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),r.dispose()}),void 0,r),!e.container){const t=(0,U.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,U.zk)(t))}if(this._contextViewHandler.showContextView(new pt(o,t),e.container),o.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,r),e.persistence?.sticky)r.add((0,U.ko)((0,U.zk)(e.container).document,U.Bx.MOUSE_DOWN,(e=>{(0,U.QX)(e.target,o.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)r.add((0,U.ko)(i,U.Bx.CLICK,(()=>this.hideHover())));else r.add((0,U.ko)(e.target,U.Bx.CLICK,(()=>this.hideHover())));const t=(0,U.bq)();if(t){const i=(0,U.zk)(t).document;r.add((0,U.ko)(t,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(i,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(t,U.Bx.KEY_UP,(e=>this._keyUp(e,o)))),r.add((0,U.ko)(i,U.Bx.KEY_UP,(e=>this._keyUp(e,o))))}}if("IntersectionObserver"in a.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,o)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,c.s)((()=>t.disconnect())))}return this._currentHover=o,o}hideHover(){!this._currentHover?.isLocked&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){if("Alt"===e.key)return void(t.isLocked=!0);const s=new Xe.Z(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||this._currentHoverOptions?.trapFocus&&"Tab"===e.key||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus())}_keyUp(e,t){"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus()))}setupManagedHover(e,t,i,s){let n,r;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const o=(t,i)=>{const s=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(n?.dispose(),n=void 0),s&&(e.onDidHideHover?.(),r=void 0)},a=(n,o,a,c)=>new m.pc((async()=>{r&&!r.isDisposed||(r=new lt(e,a||t,n>0),await r.update("function"===typeof i?i():i,o,{...s,trapFocus:c}))}),n);let l=!1;const h=(0,U.ko)(t,U.Bx.MOUSE_DOWN,(()=>{l=!0,o(!0,!0)}),!0),d=(0,U.ko)(t,U.Bx.MOUSE_UP,(()=>{l=!1}),!0),u=(0,U.ko)(t,U.Bx.MOUSE_LEAVE,(e=>{l=!1,o(!1,e.fromElement===t)}),!0),g=(0,U.ko)(t,U.Bx.MOUSE_OVER,(i=>{if(n)return;const s=new c.Cm,r={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{r.x=e.x+10,(0,U.sb)(e.target)&&mt(e.target,t)!==t&&o(!0,!0)};s.add((0,U.ko)(t,U.Bx.MOUSE_MOVE,e,!0))}n=s,(0,U.sb)(i.target)&&mt(i.target,t)!==t||s.add(a(e.delay,!1,r))}),!0),p=()=>{if(l||n)return;const i={targetElements:[t],dispose:()=>{}},s=new c.Cm;s.add((0,U.ko)(t,U.Bx.BLUR,(()=>o(!0,!0)),!0)),s.add(a(e.delay,!1,i)),n=s};let f;const _=t.tagName.toLowerCase();"input"!==_&&"textarea"!==_&&(f=(0,U.ko)(t,U.Bx.FOCUS,p,!0));const v={show:e=>{o(!1,!0),a(0,e,void 0,e)},hide:()=>{o(!0,!0)},update:async(e,t)=>{i=e,await(r?.update(i,void 0,t))},dispose:()=>{this._managedHovers.delete(t),g.dispose(),u.dispose(),h.dispose(),d.dispose(),f?.dispose(),o(!0,!0)}};return this._managedHovers.set(t,v),v}showManagedHover(e){const t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach((e=>e.dispose())),super.dispose()}};function gt(e){if(void 0!==e)return e?.id??e}ut=ht([dt(0,ae._Y),dt(1,Oe.Z),dt(2,De.b),dt(3,ce),dt(4,Ve.j)],ut);class pt{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function mt(e,t){for(t=t??(0,U.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(0,se.v)(Ie.TN,ut,1),(0,Z.zy)(((e,t)=>{const i=e.getColor(Ne.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var ft=i(42539),_t=i(80537),vt=i(94371),Ct=i(7085),Et=i(83069),bt=i(18938),St=i(50091),yt=i(74320),wt=i(1646),Rt=i(46359);function Lt(e){return Object.isFrozen(e)?e:p.ol(e)}class Tt{static createEmptyModel(e){return new Tt({},[],[],void 0,e)}constructor(e,t,i,s,n){this._contents=e,this._keys=t,this._overrides=i,this.raw=s,this.logService=n,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const e=this.raw.map((e=>{if(e instanceof Tt)return e;const t=new xt("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,Me.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Lt(i.rawConfiguration.getValue(e))},get override(){return t?Lt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Lt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:s,identifiers:n,keys:r}of i.rawConfiguration.overrides){const o=new Tt(s,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:n,value:o})}return t.length?Lt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,Me.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=p.Go(this.contents),i=p.Go(this.overrides),s=[...this.keys],n=this.raw?.length?[...this.raw]:[this];for(const r of e)if(n.push(...r.raw?.length?r.raw:[r]),!r.isEmpty()){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=i.filter((t=>E.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=E.dM(t.keys)):i.push(p.Go(e))}for(const e of r.keys)-1===s.indexOf(e)&&s.push(e)}return new Tt(t,s,i,n.every((e=>e instanceof Tt))?void 0:n,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const s of E.dM([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[s];const n=t[s];n&&("object"===typeof e&&"object"===typeof n?(e=p.Go(e),this.mergeContents(e,n)):e=n),i[s]=e}return new Tt(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&ct.Gv(e[i])&&ct.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const s=e=>{e&&(i?this.mergeContents(i,e):i=p.Go(e))};for(const n of this.overrides)1===n.identifiers.length&&n.identifiers[0]===e?t=n.contents:n.identifiers.includes(e)&&s(n.contents);return s(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,Me.iB)(this.contents,e),wt.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>E.aI(t.identifiers,(0,wt.Gv)(e)))),1))}updateValue(e,t,i){if((0,Me.kW)(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),wt.rC.test(e)){const t=(0,wt.Gv)(e),i={identifiers:t,keys:Object.keys(this.contents[e]),contents:(0,Me.ad)(this.contents[e],(e=>this.logService.error(e)))},s=this.overrides.findIndex((e=>E.aI(e.identifiers,t)));-1!==s?this.overrides[s]=i:this.overrides.push(i)}}}class xt{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||Tt.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:s,overrides:n,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new Tt(i,s,n,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){const i=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties(),s=this.filter(e,i,!0,t);e=s.raw;return{contents:(0,Me.ad)(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}filter(e,t,i,s){let n=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(wt.rC.test(a)&&i){const i=this.filter(e[a],t,!1,s);r[a]=i.raw,n=n||i.hasExcludedProperties,o.push(...i.restricted)}else{const i=t[a],c=i?"undefined"!==typeof i.scope?i.scope:3:void 0;i?.restricted&&o.push(a),s.exclude?.includes(a)||!s.include?.includes(a)&&(void 0!==c&&void 0!==s.scopes&&!s.scopes.includes(c)||s.skipRestricted&&i?.restricted)?n=!0:r[a]=e[a]}return{raw:r,restricted:o,hasExcludedProperties:n}}toOverrides(e,t){const i=[];for(const s of Object.keys(e))if(wt.rC.test(s)){const n={};for(const t in e[s])n[t]=e[s][t];i.push({identifiers:(0,wt.Gv)(s),keys:Object.keys(n),contents:(0,Me.ad)(n,t)})}return i}}class kt{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=s,this.defaultConfiguration=n,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=c,this.remoteUserConfiguration=l,this.workspaceConfiguration=h,this.folderConfigurationModel=d,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==e?.value||void 0!==e?.override||void 0!==e?.overrides?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class At{constructor(e,t,i,s,n,r,o,a,c,l){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=s,this._remoteUserConfiguration=n,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=c,this.logService=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new yt.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let s;i.resource?(s=this._memoryConfigurationByResource.get(i.resource),s||(s=Tt.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,s))):s=this._memoryConfiguration,void 0===t?s.removeValue(e):s.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const s=this.getConsolidatedConfigurationModel(e,t,i),n=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(const a of s.overrides)for(const t of a.identifiers)void 0!==s.getOverrideValue(e,t)&&o.add(t);return new kt(e,t,s.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,n||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let s=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(s=s.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(s=s.merge(this._policyConfiguration)),s}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const s=t.getFolder(e);s&&(i=this.getFolderConsolidatedConfiguration(s.uri)||i);const n=this._memoryConfigurationByResource.get(e);n&&(i=i.merge(n))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(e);s?(t=i.merge(s),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:s,keys:n}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:s,keys:n}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),s=this.parseConfigurationModel(e.policy,t),n=this.parseConfigurationModel(e.application,t),r=this.parseConfigurationModel(e.user,t),o=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(h.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new yt.fT);return new At(i,s,n,r,Tt.createEmptyModel(t),o,a,Tt.createEmptyModel(t),new yt.fT,t)}static parseConfigurationModel(e,t){return new Tt(e.contents,e.keys,e.overrides,void 0,t)}}class Nt{constructor(e,t,i,s,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this.logService=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const e of r)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const r of this.affectedKeys)this._affectsConfigStr+=r+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=At.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const i=this._marker+e,s=this._affectsConfigStr.indexOf(i);if(s<0)return!1;const n=s+i.length;if(n>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(n);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.aI(i,s)}return!0}}var It=i(2299);const Ot={kind:0},Dt={kind:1};class Mt{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Mt.handleRemovals([].concat(e).concat(t));for(let s=0,n=this._keybindings.length;s<n;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=e.when?.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let s=0;s<t.length;s++)if(t[s]!==e.chords[s])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ie.jQ)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let s=0,n=e.length;s<n;s++){const i=e[s];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];if(!n.command||0===n.command.length){i.push(n);continue}if("-"===n.command.charAt(0))continue;const r=t.get(n.command);if(!r||!n.isDefault){i.push(n);continue}let o=!1;for(const e of r){const t=e.when;if(this._isTargetedForRemoval(n,e.chords,t)){o=!0;break}}o||i.push(n)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let s=i.length-1;s>=0;s--){const e=i[s];if(e.command===t.command)continue;let n=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){n=!1;break}n&&(Mt.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,s=t.length;i<s;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ie.M0)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let s=i.length-1;s>=0;s--){const e=i[s];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const s=[...t,i];this._log(`| Resolving ${s}`);const n=this._map.get(s[0]);if(void 0===n)return this._log("\\ No keybinding entries."),Ot;let r=null;if(s.length<2)r=n;else{r=[];for(let e=0,t=n.length;e<t;e++){const t=n[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)}}const o=this._findCommand(e,r);return o?s.length<o.chords.length?(this._log(`\\ From ${r.length} keybinding entries, awaiting ${o.chords.length-s.length} more chord(s), when: ${Pt(o.when)}, source: ${Ft(o)}.`),Dt):(this._log(`\\ From ${r.length} keybinding entries, matched ${o.command}, when: ${Pt(o.when)}, source: ${Ft(o)}.`),a=o.command,c=o.commandArgs,l=o.bubble,{kind:2,commandId:a,commandArgs:c,isBubble:l}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ot);var a,c,l}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const s=t[i];if(Mt._contextMatchesRules(e,s.when))return s}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function Pt(e){return e?`${e.serialize()}`:"no when condition"}function Ft(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const Ut=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class Ht extends c.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Q.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,s,n){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=n,this._onDidUpdateKeybindings=this._register(new Q.vl),this._currentChords=[],this._currentChordChecker=new m.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new m.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),Ot;const[s]=i.getDispatchChords();if(null===s)return this._log("\\ Keyboard event cannot be dispatched"),Ot;const n=this._contextKeyService.getContext(t),r=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(n,r,s)}_scheduleLeaveChordMode(){const 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,v.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(b.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(b.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),It.M.enabled&&It.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],It.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[s]=i.getSingleModifierDispatchChords();if(s)return this._ignoreSingleModifiers.has(s)?(this._log(`+ Ignoring single modifier ${s} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Bt.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${s}.`),this._currentSingleModifier=s,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):s===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${s} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[n]=i.getChords();return this._ignoreSingleModifiers=new Bt(n),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 s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let n=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();n=t,r=t?[t]:[]}else[n]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===n)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const o=this._contextKeyService.getContext(t),a=e.getLabel(),c=this._getResolver().resolve(o,r,n);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",a,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",a,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(n,a),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",a,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId||""===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(b.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(s=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{"undefined"===typeof c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}Ut.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:e.getUserSettingsLabel()??void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class Bt{static{this.EMPTY=new Bt(null)}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}}}var Wt=i(59261);class Vt{constructor(e,t,i,s,n,r,o){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?zt(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=zt(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=s,this.isDefault=n,this.extensionId=r,this.isBuiltinExtension=o}}function zt(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s)return[];t.push(s)}return t}var Gt=i(24939),jt=i(83619);class Kt extends ft.z5{constructor(e,t){if(super(),0===t.length)throw(0,v.Qg)("chords");this._os=e,this._chords=t}getLabel(){return jt.Of.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return jt.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:jt.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return jt.G$.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 ft.FW(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 Yt extends Kt{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Gt.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Gt.YM.toString(e.keyCode)}_getElectronAccelerator(e){return Gt.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=Gt.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Yt.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+=Gt.YM.toString(e.keyCode),t}_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){const t=Gt.Fo[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:return 0;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 ft.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=zt(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Yt(i,t)]:[]}}var qt=i(67841),$t=i(73823),Qt=i(90651),Xt=i(37227),Zt=i(51861),Jt=i(89403),ei=i(51465),ti=i(17890),ii=i(36921),si=i(57629),ni=i(27195),ri=i(47358),oi=i(60413),ai=i(25154),ci=i(11799),li=i(5646),hi=i(31295),di=i(10350),ui=i(18956),gi=i(25689),pi=i(37882);const mi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,fi=/(&)?(&)([^\s&])/g;var _i,vi;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(_i||(_i={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(vi||(vi={}));class Ci extends ci.E{constructor(e,t,i,s){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...We.zx||We.j9?[10]:[]],keyDown:!0}}),this.menuStyles=s,this.menuElement=n,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,s),this._register(ai.q.addTarget(n)),this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){U.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof bi&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),We.j9&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),U.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),U.fs.stop(e,!0))}))),this._register((0,U.ko)(this.domNode,U.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,U.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,U.ko)(this.actionsList,U.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(ai.q.addTarget(this.actionsList)),this._register((0,U.ko)(this.actionsList,ai.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new hi.MU(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,s),this._register((0,U.ko)(n,ai.B.Change,(e=>{U.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,U.ko)(o,U.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,U.zk)(e);n.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,s)=>{if(i.submenuIds?.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof ii.wv){if(s===t.length-1||0===s)return!1;if(t[s-1]instanceof ii.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Si))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,U.Cl)(e)?this.styleSheet=(0,U.li)(e):(Ci.globalStyleSheet||(Ci.globalStyleSheet=(0,U.li)()),this.styleSheet=Ci.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${yi(di.W.menuSelection)}\n${yi(di.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderHoverBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const r=e.scrollbarSliderActiveBackground;r&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${r};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,U.Cl)(e))}styleScrollElement(e,t){const i=t.foregroundColor??"",s=t.backgroundColor??"",n=t.borderColor?`1px solid ${t.borderColor}`:"",r=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=n,e.style.borderRadius="5px",e.style.color=i,e.style.backgroundColor=s,e.style.boxShadow=r}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof ii.wv)return new Si(t.context,e,{icon:!0},this.menuStyles);if(e instanceof ii.YH){const s=new bi(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const s=t.getKeyBinding(e);if(s){const e=s.getLabel();e&&(i.keybinding=e)}}const s=new Ei(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}}}class Ei extends li.EH{constructor(e,t,i,s){if(i.isMenu=!0,super(t,t,i),this.menuStyle=s,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=mi.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new m.uC((()=>{this.element&&(this._register((0,U.ko)(this.element,U.Bx.MOUSE_UP,(e=>{if(U.fs.stop(e,!0),oi.gm){if(new ri.P((0,U.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,U.ko)(this.element,U.Bx.CONTEXT_MENU,(e=>{U.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,U.BC)(this.element,(0,U.$)("a.action-menu-item")),this._action.id===ii.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,U.BC)(this.item,(0,U.$)("span.menu-item-check"+gi.L.asCSSSelector(di.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,U.BC)(this.item,(0,U.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,U.BC)(this.item,(0,U.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item?.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){(0,U.w_)(this.label);let e=(0,pi.pS)(this.action.label);if(e){const t=function(e){const t=mi,i=t.exec(e);if(!i)return e;const s=!i[1];return e.replace(t,s?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=mi.exec(e);if(i){e=l.ih(e),fi.lastIndex=0;let t=fi.exec(e);for(;t&&t[1];)t=fi.exec(e);const s=e=>e.replace(/&&/g,"&");t?this.label.append(l.NB(s(e.substr(0,t.index))," "),(0,U.$)("u",{"aria-hidden":"true"},t[3]),l.BO(s(e.substr(t.index+t[0].length))," ")):this.label.innerText=s(e).trim(),this.item?.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,s=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",n=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=i??"",this.item.style.outline=s,this.item.style.outlineOffset=n),this.check&&(this.check.style.color=t??"")}}class bi extends Ei{constructor(e,t,i,s,n){super(e,e,s,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=s,this.mysubmenu=null,this.submenuDisposables=this._register(new c.Cm),this.mouseOver=!1,this.expandDirection=s&&void 0!==s.expandDirection?s.expandDirection:{horizontal:_i.Right,vertical:vi.Below},this.showScheduler=new m.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new m.uC((()=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,U.BC)(this.item,(0,U.$)("span.submenu-indicator"+gi.L.asCSSSelector(di.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,U.ko)(this.element,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);(t.equals(17)||t.equals(3))&&(U.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,U.ko)(this.element,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);(0,U.bq)()===this.item&&(t.equals(17)||t.equals(3))&&U.fs.stop(e,!0)}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,U.ko)(this.element,U.Bx.FOCUS_OUT,(e=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){U.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,s){const n={top:0,left:0};return n.left=et(e.width,t.width,{position:s.horizontal===_i.Right?0:1,offset:i.left,size:i.width}),n.left>=i.left&&n.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(n.left=i.left+10),i.top+=10,i.height=0),n.top=et(e.height,t.height,{position:0,offset:i.top,size:0}),n.top+t.height===i.top&&n.top+i.height+t.height<=e.height&&(n.top+=i.height),n}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,U.BC)(this.element,(0,U.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,U.zk)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Ci(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new ii.HJ],this.submenuOptions,this.menuStyle);const s=this.element.getBoundingClientRect(),n={top:s.top-i,left:s.left,height:s.height+2*i,width:s.width},r=this.submenuContainer.getBoundingClientRect(),o=(0,U.zk)(this.element),{top:a,left:c}=this.calculateSubmenuMenuLayout(new U.fg(o.innerWidth,o.innerHeight),U.fg.lift(r),n,this.expandDirection);this.submenuContainer.style.left=c-r.left+"px",this.submenuContainer.style.top=a-r.top+"px",this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_UP,(e=>{new Xe.Z(e).equals(15)&&(U.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(15)&&U.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){this.item&&this.item?.setAttribute("aria-expanded",e)}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Si extends li.Z4{constructor(e,t,i,s){super(e,t,i),this.menuStyles=s}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function yi(e){const t=(0,ui.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var wi=i(19070);class Ri{constructor(e,t,i,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=s,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,U.bq)();const s=(0,U.sb)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{this.lastContainer=s;const n=e.getMenuClassName?e.getMenuClassName():"";n&&(s.className+=" "+n),this.options.blockMouse&&(this.block=s.appendChild((0,U.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",this.blockDisposable?.dispose(),this.blockDisposable=(0,U.ko)(this.block,U.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new c.Cm,o=e.actionRunner||new ii.LN;o.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),o.onDidRun(this.onDidActionRun,this,r),i=new Ci(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:o,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},wi.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const a=(0,U.zk)(s);return r.add((0,U.ko)(a,U.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,U.ko)(a,U.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ri.P(a,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===s)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,c.qE)(r,i)},focus:()=>{i?.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide?.(!!t),this.block&&(this.block.remove(),this.block=null),this.blockDisposable?.dispose(),this.blockDisposable=null,this.lastContainer&&((0,U.bq)()===this.lastContainer||(0,U.QX)((0,U.bq)(),this.lastContainer))&&this.focusToReturn?.focus(),this.lastContainer=null}},s,!!s)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,v.MB)(e.error)&&this.notificationService.error(e.error)}}var Li=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ti=function(e,t){return function(i,s){t(i,s,e)}};let xi=class extends c.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Ri(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,s,n,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=s,this.menuService=n,this.contextKeyService=r,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Q.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Q.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=ki.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{e.onHide?.(t),this._onDidHideContextMenu.fire()}}),U.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var ki;xi=Li([Ti(0,Qt.k),Ti(1,me.Ot),Ti(2,Oe.l),Ti(3,De.b),Ti(4,ni.ez),Ti(5,ie.fN)],xi),function(e){e.transform=function(e,t,i){if(!((s=e)&&s.menuId instanceof ni.D8))return e;var s;const{menuId:n,menuActionOptions:r,contextKeyService:o}=e;return{...e,getActions:()=>{const s=[];if(n){const e=t.getMenuActions(n,o??i,r);(0,si.$u)(e,s)}return e.getActions?ii.wv.join(e.getActions(),s):s}}}}(ki||(ki={}));var Ai,Ni=i(908);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Ai||(Ai={}));var Ii=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Oi=function(e,t){return function(i,s){t(i,s,e)}};let Di=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,C.v$)(e,C.ny.command))return!1;if(!t?.allowCommands)return!0;if("string"===typeof e&&(e=h.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,Ni.qg)(decodeURIComponent(e.query))}catch{try{i=(0,Ni.qg)(e.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Di=Ii([Oi(0,St.d)],Di);let Mi=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.r.parse(e));const{selection:i,uri:s}=(0,Ue.e)(e);return(e=s).scheme===C.ny.file&&(e=(0,Jt.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t?.fromUserGesture?Ai.USER:Ai.API,...t?.editorOptions}},this._editorService.getFocusedCodeEditor(),t?.openToSide),!0}};Mi=Ii([Oi(0,g.T)],Mi);let Pi=class{constructor(e,t){this._openers=new X.w,this._validators=new X.w,this._resolvers=new X.w,this._resolvedUriTargets=new yt.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new X.w,this._defaultExternalOpener={openExternal:async e=>((0,C.fV)(e,C.ny.http,C.ny.https)?U.CE(e):a.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!t?.openExternal&&!(0,C.fV)(e,C.ny.mailto,C.ny.http,C.ny.https,C.ny.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Di(t)),this._openers.push(new Mi(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){const i="string"===typeof e?h.r.parse(e):e,s=this._resolvedUriTargets.get(i)??e;for(const n of this._validators)if(!await n.shouldOpen(s,t))return!1;for(const n of this._openers){if(await n.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const s=await i.resolveExternalUri(e,t);if(s)return this._resolvedUriTargets.has(s.resolved)||this._resolvedUriTargets.set(s.resolved,e),s}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.r.parse(e):e;let s,n;try{s=(await this.resolveExternalUri(i,t)).resolved}catch{s=i}if(n="string"===typeof e&&i.toString()===s.toString()?e:encodeURI(s.toString(!0)),t?.allowContributedOpeners){const e="string"===typeof t?.allowContributedOpeners?t?.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(n,{sourceUri:i,preferredOpenerId:e},at.XO.None))return!0}}return this._defaultExternalOpener.openExternal(n,{sourceUri:i},at.XO.None)}dispose(){this._validators.clear()}};Pi=Ii([Oi(0,g.T),Oi(1,St.d)],Pi);var Fi=i(10920),Ui=i(10154),Hi=i(30707),Bi=i(37550),Wi=i(16363),Vi=i(71597),zi=i(51467),Gi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ji=function(e,t){return function(i,s){t(i,s,e)}};let Ki=class extends c.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Rt.O.as(Vi.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){const[s,n]=this.getOrInstantiateProvider(e,i?.enabledProviderPrefixes),r=this.visibleQuickAccess,o=r?.descriptor;if(r&&n&&o===n)return e===n.prefix||i?.preserveValue||(r.picker.value=e),void this.adjustValueSelection(r.picker,n,i);if(n&&!i?.preserveValue){let t;if(r&&o&&o!==n){const e=r.value.substr(o.prefix.length);e&&(t=`${n.prefix}${e}`)}if(!t){const e=s?.defaultFilterValue;e===Vi.aJ.LAST?t=this.lastAcceptedPickerValues.get(n):"string"===typeof e&&(t=`${n.prefix}${e}`)}"string"===typeof t&&(e=t)}const a=r?.picker?.valueSelection,l=r?.picker?.value,h=new c.Cm,d=h.add(this.quickInputService.createQuickPick({useSeparators:!0}));let u;d.value=e,this.adjustValueSelection(d,n,i),d.placeholder=i?.placeholder??n?.placeholder,d.quickNavigate=i?.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!r,("number"===typeof i?.itemActivation||i?.quickNavigateConfiguration)&&(d.itemActivation=i?.itemActivation??zi.C1.SECOND),d.contextKey=n?.contextKey,d.filterValue=e=>e.substring(n?n.prefix.length:0),t&&(u=new m.Zv,h.add(Q.Jh.once(d.onWillAccept)((e=>{e.veto(),d.hide()})))),h.add(this.registerPickerListeners(d,s,n,e,i));const g=h.add(new at.Qi);return s&&h.add(s.provide(d,g.token,i?.providerOptions)),Q.Jh.once(d.onDidHide)((()=>{0===d.selectedItems.length&&g.cancel(),h.dispose(),u?.complete(d.selectedItems.slice(0))})),d.show(),a&&l===e&&(d.valueSelection=a),t?u?.p:void 0}adjustValueSelection(e,t,i){let s;s=i?.preserveValue?[e.value.length,e.value.length]:[t?.prefix.length??0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,s,n){const r=new c.Cm,o=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return r.add((0,c.s)((()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e,n?.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:n?.enabledProviderPrefixes,preserveValue:!0,providerOptions:n?.providerOptions}):o.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let s=this.mapProviderToDescriptor.get(i);return s||(s=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,s)),[s,i]}};Ki=Gi([ji(0,zi.GK),ji(1,ae._Y)],Ki);var Yi=i(35315),qi=i(56245),$i=i(20370),Qi=i(96032),Xi=i(58694),Zi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ji{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}Zi([Xi.B],Ji.prototype,"toString",null);const es=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ts={},is=new Qi.n("quick-input-button-icon-");function ss(e,t,i){let s=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ts[i]?t=ts[i]:(t=is.nextId(),U.Wt(`.${t}, .hc-light .${t}`,`background-image: ${U.Tf(e.light||e.dark)}`),U.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${U.Tf(e.dark)}`),ts[i]=t),t}(e.iconPath);return e.alwaysVisible&&(s=s?`${s} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:s,enabled:!0,run:i}}function ns(e,t,i){U.Ln(t);const s=function(e){const t=[];let i,s=0;for(;i=es.exec(e);){i.index-s>0&&t.push(e.substring(s,i.index));const[,n,r,,o]=i;o?t.push({label:n,href:r,title:o}):t.push({label:n,href:r}),s=i.index+i[0].length}return s<e.length&&t.push(e.substring(s)),new Ji(t)}(e);let n=0;for(const r of s.nodes)if("string"===typeof r)t.append(...(0,$i.n)(r));else{let e=r.title;!e&&r.href.startsWith("command:")?e=(0,b.kg)("executeCommand","Click to execute command '{0}'",r.href.substring(8)):e||(e=r.href);const s=U.$("a",{href:r.href,title:e,tabIndex:n++},r.label);s.style.textDecoration="underline";const o=e=>{U.sd(e)&&U.fs.stop(e,!0),i.callback(r.href)},a=i.disposables.add(new qi.f(s,U.Bx.CLICK)).event,c=i.disposables.add(new qi.f(s,U.Bx.KEY_DOWN)).event,l=Q.Jh.chain(c,(e=>e.filter((e=>{const t=new Xe.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(ai.q.addTarget(s));const h=i.disposables.add(new qi.f(s,ai.B.Tap)).event;Q.Jh.any(a,h,l)(o,null,i.disposables),t.appendChild(s)}}var rs=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},os=function(e,t){return function(i,s){t(i,s,e)}};const as="inQuickInput",cs=new ie.N1(as,!1,(0,b.kg)("inQuickInput","Whether keyboard focus is inside the quick input control")),ls=ie.M$.has(as),hs="quickInputType",ds=new ie.N1(hs,void 0,(0,b.kg)("quickInputType","The type of the currently visible quick input")),us="cursorAtEndOfQuickInputBox",gs=new ie.N1(us,!1,(0,b.kg)("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),ps=ie.M$.has(us),ms={iconClass:gi.L.asClassName(di.W.quickInputBack),tooltip:(0,b.kg)("quickInput.back","Back"),handle:-1};class fs extends c.jG{static{this.noPromptMessage=(0,b.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel")}constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=fs.noPromptMessage,this._severity=ge.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.onDidHideEmitter=this._register(new Q.vl),this.onWillHideEmitter=this._register(new Q.vl),this.onDisposeEmitter=this._register(new Q.vl),this.visibleDisposables=this._register(new c.Cm),this.onDidHide=this.onDidHideEmitter.event}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){const t=this._ignoreFocusOut!==e&&!We.un;this._ignoreFocusOut=e&&!We.un,t&&this.update()}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons]}set buttons(e){this._leftButtons=e.filter((e=>e===ms)),this._rightButtons=e.filter((e=>e!==ms&&e.location!==zi.dH.Inline)),this._inlineButtons=e.filter((e=>e.location===zi.dH.Inline)),this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=e??[],this.togglesUpdated=!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=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=zi.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=zi.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const 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._widgetUpdated&&(this._widgetUpdated=!1,this._widget?U.Ln(this.ui.widget,this._widget):U.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new m.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this._leftButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this._rightButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1}),this.ui.inlineActionBar.clear();const i=this._inlineButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.inlineActionBar.push(i,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const e=this.toggles?.filter((e=>e instanceof Yi.l))??[];this.ui.inputBox.toggles=e}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,U.Ln(this.ui.message),ns(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,b.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ge.A.Ignore){const 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()}}class _s extends fs{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Q.vl),this.onWillAcceptEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),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=zi.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Q.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Q.vl),this.onDidTriggerItemButtonEmitter=this._register(new Q.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new Q.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new Q.at,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}static{this.DEFAULT_ARIA_LABEL=(0,b.kg)("quickInputBox.ariaLabel","Type to narrow down results.")}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){if(this._value!==e){if(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 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?zi.Ym:this.ui.keyMods}get valueSelection(){const 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 ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(zi.Fp.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,E.aI)(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})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(U.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&this.visible&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,E.aI)(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 U.ko(this.ui.container,U.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Xe.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const s=e.getChords();return!(s.length>1)&&(s[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!s[0].altKey||6!==i)||(!(!s[0].ctrlKey||5!==i)||!(!s[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;const 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,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 s=this.ariaLabel;!s&&i.inputBox&&(s=this.placeholder||_s.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=s??null),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 zi.C1.NONE:this._itemActivation=zi.C1.FIRST;break;case zi.C1.SECOND:this.ui.list.focus(zi.Fp.Second),this._itemActivation=zi.C1.FIRST;break;case zi.C1.LAST:this.ui.list.focus(zi.Fp.Last),this._itemActivation=zi.C1.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.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(zi.Fp.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._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(e??!1))}}class vs extends fs{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),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 placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,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()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const 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 Cs=class extends Ie.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(U.sb(e.content)?e.content.textContent??"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Cs=rs([os(0,Me.pG),os(1,Ie.TN)],Cs);var Es=i(62890),bs=i(3828);const Ss="done",ys="active",ws="infinite",Rs="infinite-long-running",Ls="discrete";class Ts extends c.jG{static{this.LONG_RUNNING_INFINITE_THRESHOLD=1e4}constructor(e,t){super(),this.progressSignal=this._register(new c.HE),this.workedVal=0,this.showDelayedScheduler=this._register(new m.uC((()=>(0,U.WU)(this.element)),0)),this.longRunningScheduler=this._register(new m.uC((()=>this.infiniteLongRunning()),Ts.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"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=t?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(ys,ws,Rs,Ls),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(Ss),this.element.classList.contains(ws)?(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(Ls,Ss,Rs),this.element.classList.add(ys,ws),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Rs)}getContainer(){return this.element}}var xs=i(88443);const ks=U.$;class As extends c.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>U.b2(this.findInput.inputBox.inputElement,U.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=U.BC(this.parent,ks(".quick-input-box")),this.findInput=this._register(new xs.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const s=this.findInput.inputBox.inputElement;s.role="combobox",s.ariaHasPopup="menu",s.ariaAutoComplete="list",s.ariaExpanded="true"}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)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ge.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ge.A.Info?1:e===ge.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ge.A.Info?1:e===ge.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Ns=i(36584),Is=i(21852),Os=i(47625),Ds=i(86723),Ms=i(91090);const Ps=new Ms.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function Fs(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=function(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=s.startsWith(i),o=n.startsWith(i);if(r!==o)return r?-1:1;if(r&&o){if(s.length<n.length)return-1;if(s.length>n.length)return 1}return 0}(e,t,i);if(r)return r;const o=s.endsWith(i);if(o!==n.endsWith(i))return o?-1:1;const a=function(e,t){const i=e||"",s=t||"",n=Ps.value.collator.compare(i,s);return Ps.value.collatorIsNumeric&&0===n&&i!==s?i<s?-1:1:n}(s,n);return 0!==a?a:s.localeCompare(n)}var Us,Hs=i(19466),Bs=i(31308),Ws=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Vs=function(e,t){return function(i,s){t(i,s,e)}};const zs=U.$;class Gs{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new Ms.d((()=>{const e=i.label??"",t=(0,pi._k)(e).text.trim(),s=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map((e=>(0,pi.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:s}})),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 js extends Gs{constructor(e,t,i,s,n,r){super(e,t,n),this.fireButtonTriggered=i,this._onChecked=s,this.item=n,this._separator=r,this._checked=!1,this.onChecked=t?Q.Jh.map(Q.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):Q.Jh.None,this._saneDetail=n.detail,this._labelHighlights=n.highlights?.label,this._descriptionHighlights=n.highlights?.description,this._detailHighlights=n.highlights?.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}}var Ks;!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(Ks||(Ks={}));class Ys extends Gs{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ks.NONE}}class qs{getHeight(e){return e instanceof Ys?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof js?Xs.ID:Zs.ID}}class $s{getWidgetAriaLabel(){return(0,b.kg)("quickInput","Quick Input")}getAriaLabel(e){return 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 js)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class Qs{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new c.Cm,t.toDisposeTemplate=new c.Cm,t.entry=U.BC(e,zs(".quick-input-list-entry"));const i=U.BC(t.entry,zs("label.quick-input-list-label"));t.toDisposeTemplate.add(U.b2(i,U.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=U.BC(i,zs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const s=U.BC(i,zs(".quick-input-list-rows")),n=U.BC(s,zs(".quick-input-list-row")),r=U.BC(s,zs(".quick-input-list-row"));t.label=new Is.s(n,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=U.Hs(t.label.element,zs(".quick-input-list-icon"));const o=U.BC(n,zs(".quick-input-list-entry-keybinding"));t.keybinding=new Os.x(o,We.OS),t.toDisposeTemplate.add(t.keybinding);const a=U.BC(r,zs(".quick-input-list-label-meta"));return t.detail=new Is.s(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=U.BC(t.entry,zs(".quick-input-list-separator")),t.actionBar=new ci.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Xs=class extends Qs{static{Us=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Us.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(U.b2(t.checkbox,U.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0;const n=s.item;i.checkbox.checked=s.checked,i.toDisposeElement.add(s.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=s.checkboxDisabled;const{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;if(n.iconPath){const e=(0,Ds.HD)(this.themeService.getColorTheme().type)?n.iconPath.dark:n.iconPath.light??n.iconPath.dark,t=h.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=U.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=n.iconClass?`quick-input-list-icon ${n.iconClass}`:"";let c;!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(l.extraClasses=n.iconClasses,l.italic=n.italic,l.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),i.keybinding.set(n.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";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);const d=n.buttons;d&&d.length?(i.actionBar.push(d.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireButtonTriggered({button:e,item:s.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):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){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Xs=Us=Ws([Vs(1,Z.Gy)],Xs);class Zs extends Qs{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return Zs.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderTemplate(e){const t=super.renderTemplate(e);return t.checkbox.style.display="none",t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const n=s.separator,{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;let c;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const l={matches:r||[],descriptionTitle:c,descriptionMatches:o||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=n.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||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){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}let Js=class extends c.jG{constructor(e,t,i,s,n,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new Q.vl,this._onLeave=new Q.vl,this.onLeave=this._onLeave.event,this._visibleCountObservable=(0,Bs.FY)("VisibleCount",0),this.onChangedVisibleCount=Q.Jh.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=(0,Bs.FY)("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=Q.Jh.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=(0,Bs.FY)("CheckedCount",0),this.onChangedCheckedCount=Q.Jh.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=(0,Bs.Zh)({equalsFn:E.aI},new Array),this.onChangedCheckedElements=Q.Jh.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new Q.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Q.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new Q.vl,this._elementCheckedEventBufferer=new Q.at,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new c.Cm),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=U.BC(this.parent,zs(".quick-input-list")),this._separatorRenderer=new Zs(t),this._itemRenderer=n.createInstance(Xs,t),this._tree=this._register(n.createInstance(Ns.zL,"QuickInput",this._container,new qs,[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Ys?2:1},sorter:{compare:(e,t)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;return function(e,t,i){const s=e.labelHighlights||[],n=t.labelHighlights||[];if(s.length&&!n.length)return-1;if(!s.length&&n.length)return 1;if(0===s.length&&0===n.length)return 0;return Fs(e.saneSortLabel,t.saneSortLabel,i)}(e,t,this._lastQueryString.toLowerCase())}},accessibilityProvider:new $s,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:Hs.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=s,this._registerListeners()}get onDidChangeFocus(){return Q.Jh.map(this._tree.onDidChangeFocus,(e=>e.elements.filter((e=>e instanceof js)).map((e=>e.item))),this._store)}get onDidChangeSelection(){return Q.Jh.map(this._tree.onDidChangeSelection,(e=>({items:e.elements.filter((e=>e instanceof js)).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??""}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._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Xe.Z(e);if(10===t.keyCode)this.toggleCheckbox();this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(U.ko(this._container,U.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(U.ko(this._container,U.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel((()=>{const 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(){const e=this._register(new m.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{if(U.nY(t.browserEvent.target))e.cancel();else if(U.nY(t.browserEvent.relatedTarget)||!U.QX(t.browserEvent.relatedTarget,t.element?.element))try{await e.trigger((async()=>{t.element instanceof js&&this.showHover(t.element)}))}catch(t){if(!(0,v.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{U.QX(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&Ks.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=Ks.ACTIVE_ITEM:i.focusInsideSeparator&=~Ks.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)||(i.focusInsideSeparator|=Ks.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)&&(i.focusInsideSeparator&=~Ks.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof js));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Ys&&(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||(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=new Array,this._elementTree=e.reduce(((i,s,n)=>{let r;if("separator"===s.type){if(!s.buttons)return i;t=new Ys(n,(e=>this._onSeparatorButtonTriggered.fire(e)),s),r=t}else{const o=n>0?e[n-1]:void 0;let a;o&&"separator"===o.type&&!o.buttons&&(t=void 0,a=o);const c=new js(n,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,s,a);if(this._itemElements.push(c),t)return t.children.push(c),i;r=c}return i.push(r),i}),new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout((()=>{const e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e?.parentNode;if(e&&t){const i=e.nextSibling;e.remove(),t.insertBefore(e,i)}}),0)}setFocusedElements(e){const 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){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const 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((()=>{const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}))}focus(e){if(this._itemElements.length)switch(e===zi.Fp.Second&&this._itemElements.length<2&&(e=zi.Fp.First),e){case zi.Fp.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof js));break;case zi.Fp.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,(t=>t.element instanceof js&&(!!e||(e=!e,!1))));break}case zi.Fp.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js));break;case zi.Fp.Next:{const e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case zi.Fp.Previous:{const e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case zi.Fp.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));break;case zi.Fp.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof js))return!1;const 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 zi.Fp.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof Ys)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 js){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;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 js)));break}case zi.Fp.PreviousSeparator:{let e,t=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,(i=>{if(i.element instanceof Ys)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 js&&!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]);break}}}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;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach((s=>{let n;n="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,pi.pz)(e,(0,pi._k)(s.saneLabel))??void 0:void 0:this.matchOnLabel?function(e,t){const{text:i,iconOffsets:s}=t;if(!s||0===s.length)return en(e,i);const n=(0,l.NB)(i," "),r=i.length-n.length,o=en(e,n);if(o)for(const a of o){const e=s[a.start+r]+r;a.start+=e,a.end+=e}return o}(t,(0,pi._k)(s.saneLabel))??void 0:void 0;const r=this.matchOnDescription?(0,pi.pz)(e,(0,pi._k)(s.saneDescription||""))??void 0:void 0,o=this.matchOnDetail?(0,pi.pz)(e,(0,pi._k)(s.saneDetail||""))??void 0:void 0;if(n||r||o?(s.labelHighlights=n,s.descriptionHighlights=r,s.detailHighlights=o,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item||!s.item.alwaysShow),s.item?s.separator=void 0:s.separator&&(s.hidden=!0),!this.sortByLabel){const e=s.index&&this._inputElements[s.index-1]||void 0;"separator"!==e?.type||e.buttons||(i=e),i&&!s.hidden&&(s.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;const 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((()=>{const e=this._tree.getFocus().filter((e=>e instanceof js)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}))}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof js))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new c.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof js&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){const t=new Array;for(const i of e)i instanceof Ys?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,s=e.length;i<s;i++){const s=e[i];if(!s.hidden){if(!s.checked)return!1;t=!0}}return t}_updateCheckedObservables(){(0,Bs.Rn)((e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);const t=this._itemElements.filter((e=>e.checked)).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)}))}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),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 en(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Ws([Xi.B],Js.prototype,"onDidChangeFocus",null),Ws([Xi.B],Js.prototype,"onDidChangeSelection",null),Js=Ws([Vs(4,ae._Y),Vs(5,Ve.j)],Js);var tn=i(28290);const sn={weight:200,when:ie.M$.and(ie.M$.equals(hs,"quickPick"),ls),metadata:{description:(0,b.kg)("quickPick","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.")}};function nn(e,t={}){Wt.f.registerCommandAndKeybindingRule({...sn,...e,secondary:on(e.primary,e.secondary??[],t)})}const rn=We.zx?256:2048;function on(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(rn+e),i.withAltMod&&t.push(512+rn+e)),i.withCmdMod&&We.zx&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t}function an(e,t){return i=>{const s=i.get(zi.GK).currentQuickInput;if(s)return t&&s.quickNavigate?s.focus(t):s.focus(e)}}nn({id:"quickInput.pageNext",primary:12,handler:an(zi.Fp.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.pagePrevious",primary:11,handler:an(zi.Fp.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.first",primary:rn+14,handler:an(zi.Fp.First)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.last",primary:rn+13,handler:an(zi.Fp.Last)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.next",primary:18,handler:an(zi.Fp.Next)},{withCtrlMod:!0}),nn({id:"quickInput.previous",primary:16,handler:an(zi.Fp.Previous)},{withCtrlMod:!0});const cn=(0,b.kg)("quickInput.nextSeparatorWithQuickAccessFallback","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."),ln=(0,b.kg)("quickInput.previousSeparatorWithQuickAccessFallback","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.");We.zx?(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:an(zi.Fp.NextSeparator)},{withCtrlMod:!0}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:an(zi.Fp.PreviousSeparator)},{withCtrlMod:!0})):(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:cn}}),nn({id:"quickInput.nextSeparator",primary:2578,handler:an(zi.Fp.NextSeparator)}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:ln}}),nn({id:"quickInput.previousSeparator",primary:2576,handler:an(zi.Fp.PreviousSeparator)})),nn({id:"quickInput.acceptInBackground",when:ie.M$.and(sn.when,ie.M$.or(tn.J7.negate(),ps)),primary:17,weight:250,handler:e=>{const t=e.get(zi.GK).currentQuickInput;t?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var hn,dn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},un=function(e,t){return function(i,s){t(i,s,e)}};const gn=U.$;let pn=class extends c.jG{static{hn=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,s){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=s,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Q.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Q.vl),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=cs.bindTo(this.contextKeyService),this.quickInputTypeContext=ds.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=gs.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:a.G,disposables:this._store})),this._register(U.q3((e=>{this.ui&&U.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const s of[U.Bx.KEY_DOWN,U.Bx.KEY_UP,U.Bx.MOUSE_DOWN])t.add(U.ko(e,s,i,!0))}getUI(e){if(this.ui)return e&&U.zk(this._container)!==U.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=U.BC(this._container,gn(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=U.li(t),s=U.BC(t,gn(".quick-input-titlebar")),n=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));n.domNode.classList.add("quick-input-left-action-bar");const r=U.BC(s,gn(".quick-input-title")),o=this._register(new ci.E(s,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-right-action-bar");const a=U.BC(t,gn(".quick-input-header")),c=U.BC(a,gn("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",(0,b.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(U.b2(c,U.Bx.CHANGE,(e=>{const t=c.checked;x.setAllVisibleChecked(t)}))),this._register(U.ko(c,U.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const l=U.BC(a,gn(".quick-input-description")),h=U.BC(a,gn(".quick-input-and-message")),d=U.BC(h,gn(".quick-input-filter")),u=this._register(new As(d,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U.BC(d,gn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new bs.x(g,{countFormat:(0,b.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=U.BC(d,gn(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new bs.x(m,{countFormat:(0,b.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=this._register(new ci.E(a,{hoverDelegate:this.options.hoverDelegate}));_.domNode.classList.add("quick-input-inline-action-bar");const v=U.BC(a,gn(".quick-input-action")),C=this._register(new Es.$(v,this.styles.button));C.label=(0,b.kg)("ok","OK"),this._register(C.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const E=U.BC(a,gn(".quick-input-action")),S=this._register(new Es.$(E,{...this.styles.button,supportIcons:!0}));S.label=(0,b.kg)("custom","Custom"),this._register(S.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=U.BC(h,gn(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new Ts(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const R=U.BC(t,gn(".quick-input-html-widget"));R.tabIndex=-1;const L=U.BC(t,gn(".quick-input-description")),T=this.idPrefix+"list",x=this._register(this.instantiationService.createInstance(Js,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,T));u.setAttribute("aria-controls",T),this._register(x.onDidChangeFocus((()=>{u.setAttribute("aria-activedescendant",x.getActiveDescendant()??"")}))),this._register(x.onChangedAllVisibleChecked((e=>{c.checked=e}))),this._register(x.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(x.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(x.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof _s&&this.controller.canSelectMany&&x.clearFocus())}),0)})));const k=U.w5(t);return this._register(k),this._register(U.ko(t,U.Bx.FOCUS,(e=>{const t=this.getUI();if(U.QX(e.relatedTarget,t.inputContainer)){const e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e)}U.QX(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=U.sb(e.relatedTarget)?e.relatedTarget:void 0)}),!0)),this._register(k.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(zi.kF.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0}))),this._register(u.onKeyDown((e=>{const t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t)}))),this._register(U.ko(t,U.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(U.b2(t,U.Bx.KEY_DOWN,(e=>{if(!U.QX(e.target,R))switch(e.keyCode){case 3:U.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:U.fs.stop(e,!0),this.hide(zi.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.displayed&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(U.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const s=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===s[0]?(U.fs.stop(e,!0),x.clearFocus()):!e.shiftKey&&U.QX(e.target,s[s.length-1])&&(U.fs.stop(e,!0),s[0].focus())}break;case 10:e.ctrlKey&&(U.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:n,titleBar:s,title:r,description1:L,description2:l,widget:R,rightActionBar:o,inlineActionBar:_,checkAll:c,inputContainer:h,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:C,message:y,customButtonContainer:E,customButton:S,list:x,progressBar:w,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){this.ui&&(this._container=e,U.BC(this._container,this.ui.container))}pick(e,t={},i=at.XO.None){return new Promise(((s,n)=>{let r=e=>{r=s,t.onKeyMods?.(o.keyMods),s(e)};if(i.isCancellationRequested)return void r(void 0);const o=this.createQuickPick({useSeparators:!0});let a;const l=[o,o.onDidAccept((()=>{if(o.canSelectMany)r(o.selectedItems.slice()),o.hide();else{const e=o.activeItems[0];e&&(r(e),o.hide())}})),o.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),o.onDidChangeSelection((e=>{if(!o.canSelectMany){const t=e[0];t&&(r(t),o.hide())}})),o.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=o.items.indexOf(e.item);if(-1!==t){const e=o.items.slice(),i=e.splice(t,1),s=o.activeItems.filter((e=>e!==i[0])),n=o.keepScrollPosition;o.keepScrollPosition=!0,o.items=e,s&&(o.activeItems=s),o.keepScrollPosition=n}}}))),o.onDidTriggerSeparatorButton((e=>t.onDidTriggerSeparatorButton?.(e))),o.onDidChangeValue((e=>{!a||e||1===o.activeItems.length&&o.activeItems[0]===a||(o.activeItems=[a])})),i.onCancellationRequested((()=>{o.hide()})),o.onDidHide((()=>{(0,c.AS)(l),r(void 0)}))];o.title=t.title,t.value&&(o.value=t.value),o.canSelectMany=!!t.canPickMany,o.placeholder=t.placeHolder,o.ignoreFocusOut=!!t.ignoreFocusLost,o.matchOnDescription=!!t.matchOnDescription,o.matchOnDetail=!!t.matchOnDetail,o.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,o.quickNavigate=t.quickNavigate,o.hideInput=!!t.hideInput,o.contextKey=t.contextKey,o.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,o.busy=!1,o.items=e,o.canSelectMany&&(o.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(o.activeItems=[a])})),o.show(),Promise.resolve(e).then(void 0,(e=>{n(e),o.hide()}))}))}createQuickPick(e={useSeparators:!1}){const t=this.getUI(!0);return new _s(t)}createInputBox(){const e=this.getUI(!0);return new vs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",U.Ln(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ge.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),U.Ln(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const s=this.options.backKeybindingLabel();ms.tooltip=s?(0,b.kg)("quickInput.backWithKeybinding","Back ({0})",s):(0,b.kg)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();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.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.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){const t=this.controller;if(!t)return;t.willHide(e);const i=this.ui?.container,s=i&&!U.nR(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=e.parentElement??void 0;e?.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,hn.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.list.style(this.styles.list);const r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.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)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const o=r.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o)}}};pn=hn=dn([un(1,ce),un(2,ae._Y),un(3,ie.fN)],pn);var mn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},fn=function(e,t){return function(i,s){t(i,s,e)}};let _n=class extends Z.lR{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(Ki))),this._quickAccess}constructor(e,t,i,s,n){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=s,this.configurationService=n,this._onShow=this._register(new Q.vl),this._onHide=this._register(new Q.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(Ue.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Cs))},s=this._register(this.instantiationService.createInstance(pn,{...i,...t}));return s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,U.zk)(e.activeContainer)===(0,U.zk)(s.container)&&s.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{s.isVisible()||s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(s.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(s.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),s}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ie.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t?.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t,i=at.XO.None){return this.controller.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e)}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Ne.GuP)(Ne.ELA),quickInputForeground:(0,Ne.GuP)(Ne.HJZ),quickInputTitleBackground:(0,Ne.GuP)(Ne.er1),widgetBorder:(0,Ne.GuP)(Ne.DSL),widgetShadow:(0,Ne.GuP)(Ne.f9l)},inputBox:wi.ho,toggle:wi.mk,countBadge:wi.m$,button:wi.cv,progressBar:wi.oJ,keybindingLabel:wi.ir,list:(0,wi.t8)({listBackground:Ne.ELA,listFocusBackground:Ne.AlL,listFocusForeground:Ne.nH,listInactiveFocusForeground:Ne.nH,listInactiveSelectionIconForeground:Ne.c7i,listInactiveFocusBackground:Ne.AlL,listFocusOutline:Ne.buw,listInactiveFocusOutline:Ne.buw}),pickerGroup:{pickerGroupBorder:(0,Ne.GuP)(Ne.iwL),pickerGroupForeground:(0,Ne.GuP)(Ne.NBf)}}}};_n=mn([fn(0,ae._Y),fn(1,ie.fN),fn(2,Z.Gy),fn(3,ce),fn(4,Me.pG)],_n);var vn=i(6921),Cn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},En=function(e,t){return function(i,s){t(i,s,e)}};let bn=class extends _n{constructor(e,t,i,s,n,r){super(t,i,s,new ue(e.getContainerDomNode(),n),r),this.host=void 0;const o=yn.get(e);if(o){const t=o.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 Q.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return Q.Jh.None},get onDidAddContainer(){return Q.Jh.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)}};bn=Cn([En(1,ae._Y),En(2,ie.fN),En(3,Z.Gy),En(4,g.T),En(5,Me.pG)],bn);let Sn=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(bn,e);this.mapEditorToService.set(e,t),(0,vn.P)(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=at.XO.None){return this.activeService.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createInputBox(){return this.activeService.createInputBox()}};Sn=Cn([En(0,ae._Y),En(1,g.T)],Sn);class yn{static{this.ID="editor.controller.quickInput"}static get(e){return e.getContribution(yn.ID)}constructor(e){this.editor=e,this.widget=new wn(this.editor)}dispose(){this.widget.dispose()}}class wn{static{this.ID="editor.contrib.quickInputWidget"}constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return wn.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}(0,u.HW)(yn.ID,yn,4);var Rn=i(10424),Ln=i(24520),Tn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xn=function(e,t){return function(i,s){t(i,s,e)}};let kn=class extends c.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Q.vl,this._onDidChangeReducedMotion=new Q.vl,this._onDidChangeLinkUnderline=new Q.vl,this._accessibilityModeEnabledContext=Ve.f.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),s(),this._register(this.onDidChangeScreenReaderOptimized((()=>s())));const n=a.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=n.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(n),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,U.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration((e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){const e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}})));const e=()=>{const e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines((()=>e())))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};kn=Tn([xn(0,ie.fN),xn(1,ce),xn(2,Me.pG)],kn);var An,Nn=i(60858),In=i(85600),On=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Dn=function(e,t){return function(i,s){t(i,s,e)}};const Mn="application/vnd.code.resources";let Pn=class extends c.jG{static{An=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(oi.nr||oi.c8)&&this.installWebKitWriteTextWorkaround(),this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>{t.add((0,U.ko)(e.document,"copy",(()=>this.clearResourcesState())))}),{window:a.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new m.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,U.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(Q.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,U.ko)(t,"click",e)),i.add((0,U.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.clearResourcesState(),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await(0,U.fz)().navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,U.a)(),i=t.activeElement,s=t.body.appendChild((0,U.$)("textarea",{"aria-hidden":!0}));s.style.height="1px",s.style.width="1px",s.style.position="absolute",s.value=e,s.focus(),s.select(),t.execCommand("copy"),(0,U.sb)(i)&&i.focus(),s.remove()}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await(0,U.fz)().navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{const e=await(0,U.fz)().navigator.clipboard.read();for(const t of e)if(t.types.includes(`web ${Mn}`)){const e=await t.getType(`web ${Mn}`);return JSON.parse(await e.text()).map((e=>h.r.from(e)))}}catch(t){}const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,In.tW)(e.substring(0,An.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};Pn=An=On([Dn(0,ce),Dn(1,I.rr)],Pn);var Fn=i(54770),Un=i(42522),Hn=i(4853),Bn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Wn=function(e,t){return function(i,s){t(i,s,e)}};const Vn="data-keybinding-context";class zn{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Gn extends zn{static{this.INSTANCE=new Gn}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class jn extends zn{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Hn.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new qn(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,s=this._values.findSuperstr(e);void 0!==s&&(t.push(...Un.f.map(s,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new qn(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(jn._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(jn._keyPrefix.length),i=this._configurationService.getValue(t);let s;switch(typeof i){case"number":case"boolean":case"string":s=i;break;default:s=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,s),s}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class Kn{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Yn{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class qn{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class $n{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Qn extends c.jG{constructor(e){super(),this._onDidChangeContext=this._register(new Q.fV({merge:e=>new $n(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Kn(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Zn(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Yn(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Yn(e))}getContext(e){return this._isDisposed?Gn.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Vn)){const t=e.getAttribute(Vn);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Xn=class extends Qn{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new jn(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._contexts.get(e)||Gn.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new zn(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Xn=Bn([Wn(0,Me.pG)],Xn);class Zn extends Qn{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new c.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Vn)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Vn,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Vn),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}St.w.registerCommand("_setContext",(function(e,t,i){e.get(ie.fN).createKey(String(t),function(e){return(0,p.PI)(e,(e=>"object"===typeof e&&1===e.$mid?h.r.revive(e).toString():e instanceof h.r?e.toString():void 0))}(i))})),St.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ie.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,b.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),St.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ie.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var Jn=i(84040);class er{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class tr{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new er(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(const[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(s,t);if(e)return e;t.delete(i)}}}var ir=i(58345);class sr extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class nr{constructor(e=new ir.a,t=!1,i,s=false){this._services=e,this._strict=t,this._parent=i,this._enableTracing=s,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(ae._Y,this),this._globalGraph=s?i?._globalGraph??new tr((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,c.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,c.Xm)(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,s=new class extends nr{dispose(){i._children.delete(s),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(s),t?.add(s),s}invokeFunction(e,...t){this._throwIfDisposed();const i=rr.traceInvocation(this._enableTracing,e);let s=!1;try{return e({get:e=>{if(s)throw(0,v.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{s=!0,i.stop()}}createInstance(e,...t){let i,s;return this._throwIfDisposed(),e instanceof Jn.d?(i=rr.traceCreation(this._enableTracing,e.ctor),s=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=rr.traceCreation(this._enableTracing,e),s=this._createInstance(e,t,i)),i.stop(),s}_createInstance(e,t=[],i){const s=ae._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),n=[];for(const o of s){const t=this._getOrCreateServiceInstance(o.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id}.`,!1),n.push(t)}const r=s.length>0?s[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const i=r-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,r)}return Reflect.construct(e,t.concat(n))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof Jn.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const 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));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof Jn.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new 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){const s=new tr((e=>e.id.toString()));let n=0;const r=[{id:e,desc:t,_trace:i}],o=new Set;for(;r.length;){const t=r.pop();if(!o.has(String(t.id))){if(o.add(String(t.id)),s.lookupOrInsertNode(t),n++>1e3)throw new sr(s);for(const i of ae._$.getServiceDependencies(t.desc.ctor)){const n=this._getServiceInstanceOrDescriptor(i.id);if(n||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(i.id)),n instanceof Jn.d){const e={id:i.id,desc:n,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new sr(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof Jn.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],s,n){if(this._services.get(e)instanceof Jn.d)return this._createServiceInstance(e,t,i,s,n,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,s,n);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],s,n,r){if(s){const s=new nr(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,a=new m.F6((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const s=e[t];if("function"===typeof s)for(const t of i)t.disposable=s.apply(e,t.listener)}return o.clear(),r.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=o.get(t);e||(e=new X.w,o.set(t,e));return(i,s,n)=>{if(a.isInitialized)return a.value[t](i,s,n);{const t={listener:[i,s,n],disposable:void 0},r=e.push(t);return(0,c.s)((()=>{r(),t.disposable?.dispose()}))}}}if(t in e)return e[t];const i=a.value;let s=i[t];return"function"!==typeof s||(s=s.bind(i),e[t]=s),s},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,n);return r.add(e),e}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class rr{static{this.all=new Set}static{this._None=new class extends rr{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(e,t){return e?new rr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):rr._None}static traceCreation(e,t){return e?new rr(1,t.name):rr._None}static{this._totals=0}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new rr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;rr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,s){const n=[],r=new Array(i+1).join("\t");for(const[o,a,c]of s._dep)if(a&&c){t=!0,n.push(`${r}CREATES -> ${o}`);const s=e(i+1,c);s&&n.push(s)}else n.push(`${r}uses -> ${o}`);return n.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${rr._totals.toFixed(2)}ms)`];(e>2||t)&&rr.all.add(i.join("\n"))}}var or=i(75147);const ar=new Set([C.ny.inMemory,C.ny.vscodeSourceControl,C.ny.walkThrough,C.ny.walkThroughSnippet,C.ny.vscodeChatCodeBlock]);class cr{constructor(){this._byResource=new yt.fT,this._byOwner=new Map}set(e,t,i){let s=this._byResource.get(e);s||(s=new Map,this._byResource.set(e,s)),s.set(t,i);let n=this._byOwner.get(t);n||(n=new yt.fT,this._byOwner.set(t,n)),n.set(e,i)}get(e,t){const i=this._byResource.get(e);return i?.get(t)}delete(e,t){let i=!1,s=!1;const n=this._byResource.get(e);n&&(i=n.delete(t));const r=this._byOwner.get(t);if(r&&(s=r.delete(e)),i!==s)throw new Error("illegal state");return i&&s}values(e){return"string"===typeof e?this._byOwner.get(e)?.values()??Un.f.empty():h.r.isUri(e)?this._byResource.get(e)?.values()??Un.f.empty():Un.f.map(Un.f.concat(...this._byOwner.values()),(e=>e[1]))}}class lr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new yt.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(ar.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===or.cj.Error?t.errors+=1:i===or.cj.Warning?t.warnings+=1:i===or.cj.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 hr{constructor(){this._onMarkerChanged=new Q.uI({delay:0,merge:hr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new cr,this._stats=new lr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,E.Ct)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const s=[];for(const n of i){const i=hr._toMarker(e,t,n);i&&s.push(i)}this._data.set(t,e,s),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}=i;if(r)return a=a>0?a:1,c=c>0?c:1,l=l>=a?l:a,h=h>0?h:c,{resource:t,owner:e,code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:c,endLineNumber:l,endColumn:h,relatedInformation:d,tags:u}}changeAll(e,t){const i=[],s=this._data.values(e);if(s)for(const n of s){const t=Un.f.first(n);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,E.EI)(t)){const s=new yt.fT;for(const{resource:n,marker:r}of t){const t=hr._toMarker(e,n,r);if(!t)continue;const o=s.get(n);o?o.push(t):(s.set(n,[t]),i.push(n))}for(const[t,i]of s)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:s,take:n}=e;if((!n||n<0)&&(n=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(hr._accept(i,s)){const e=t.push(i);if(n>0&&e===n)break}return t}return[]}if(t||i){const e=this._data.values(i??t),r=[];for(const t of e)for(const e of t)if(hr._accept(e,s)){const t=r.push(e);if(n>0&&t===n)return r}return r}{const e=[];for(const t of this._data.values())for(const i of t)if(hr._accept(i,s)){const t=e.push(i);if(n>0&&t===n)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new yt.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}var dr=i(9711);class ur extends c.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=Tt.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=Tt.createEmptyModel(this.logService);const e=Rt.O.as(wt.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const s of e){const e=i[s],n=t[s];void 0!==e?this._configurationModel.setValue(s,e):n?this._configurationModel.setValue(s,n.default):this._configurationModel.removeValue(s)}}}var gr=i(87213);class pr extends c.jG{constructor(e,t=[]){super(),this.logger=new I.Dk([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)}}var mr=i(72466),fr=i(97035),_r=i(44432);var vr=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Cr=function(e,t){return function(i,s){t(i,s,e)}};class Er{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new Q.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let br=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Er(t))):Promise.reject(new Error("Model not found"))}};br=vr([Cr(0,A.IModelService)],br);class Sr{static{this.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}}}show(){return Sr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}class yr{static{this.NO_OP=new me.Kz}info(e){return this.notify({severity:ge.A.Info,message:e})}warn(e){return this.notify({severity:ge.A.Warning,message:e})}error(e){return this.notify({severity:ge.A.Error,message:e})}notify(e){switch(e.severity){case ge.A.Error:console.error(e.message);break;case ge.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return yr.NO_OP}prompt(e,t,i,s){return yr.NO_OP}status(e,t){return c.jG.None}}let wr=class{constructor(e){this._onWillExecuteCommand=new Q.vl,this._onDidExecuteCommand=new Q.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=St.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const s=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(s)}catch(s){return Promise.reject(s)}}};wr=vr([Cr(0,ae._Y)],wr);let Rr=class extends Ht{constructor(e,t,i,s,n,r){super(e,t,i,s,n),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const o=e=>{const t=new c.Cm;t.add(U.ko(e,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(U.ko(e,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Lr(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},l=e=>{e.getOption(61)||o(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(l)),this._register(r.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),r.listCodeEditors().forEach(l);const h=e=>{o(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,s){return(0,c.qE)(St.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:s}]))}addDynamicKeybindings(e){const t=e.map((e=>({keybinding:(0,ft.Zv)(e.keybinding,We.OS),command: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,c.s)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(Wt.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Mt(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let s=0;for(const n of e){const e=n.when||void 0,r=n.keybinding;if(r){const o=Yt.resolveKeybinding(r,We.OS);for(const r of o)i[s++]=new Vt(r,n.command,n.commandArgs,e,t,null,!1)}else i[s++]=new Vt(void 0,n.command,n.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Yt([t],We.OS)}};Rr=vr([Cr(0,ie.fN),Cr(1,St.d),Cr(2,Qt.k),Cr(3,me.Ot),Cr(4,I.rr),Cr(5,g.T)],Rr);class Lr extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Tr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.r)}let xr=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new Q.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new ur(e);this._configuration=new At(t.reload(),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),new yt.fT,Tt.createEmptyModel(e),new yt.fT,e),t.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,s=Tr(e)?e:Tr(t)?t:{};return this._configuration.getValue(i,s,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const s of e){const[e,t]=s;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new Nt({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,s){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};xr=vr([Cr(0,I.rr)],xr);let kr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new Q.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const s=Et.y.isIPosition(t)?t:null,n=s?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,r=e?this.getLanguage(e,s):void 0;return"undefined"===typeof n?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(n,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};kr=vr([Cr(0,Me.pG),Cr(1,A.IModelService),Cr(2,Ui.L)],kr);let Ar=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:We.j9||We.zx?"\n":"\r\n"}};Ar=vr([Cr(0,Me.pG)],Ar);class Nr{static{this.SCHEME="inmemory"}constructor(){const e=h.r.from({scheme:Nr.SCHEME,authority:"model",path:"/"});this.workspace={id:Xt.cn,folders:[new Xt.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Nr.SCHEME?this.workspace.folders[0]:null}}function Ir(e,t,i){if(!t)return;if(!(e instanceof xr))return;const s=[];Object.keys(t).forEach((e=>{(0,vt.vf)(e)&&s.push([`editor.${e}`,t[e]]),i&&(0,vt.Gn)(e)&&s.push([`diffEditor.${e}`,t[e]])})),s.length>0&&e.updateValues(s)}let Or=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:_t.jN.convert(e),s=new Map;for(const o of i){if(!(o instanceof _t.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(o.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof o.versionId&&e.getVersionId()!==o.versionId)throw new Error("bad state - model changed in the meantime");let t=s.get(e);t||(t=[],s.set(e,t)),t.push(Ct.k.replaceMove(T.Q.lift(o.textEdit.range),o.textEdit.text))}let n=0,r=0;for(const[o,a]of s)o.pushStackElement(),o.pushEditOperations([],a,(()=>[])),o.pushStackElement(),r+=1,n+=a.length;return{ariaSummary:l.GP(Zt.tu.bulkEditServiceSummary,n,r),isApplied:n>0}}};Or=vr([Cr(0,A.IModelService)],Or);let Dr=class extends ot{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Dr=vr([Cr(0,ce),Cr(1,g.T)],Dr);class Mr extends ti.LanguageService{constructor(){super()}}let Pr=class extends xi{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r),this.configure({blockMouse:!1})}};Pr=vr([Cr(0,Qt.k),Cr(1,me.Ot),Cr(2,Oe.l),Cr(3,De.b),Cr(4,ni.ez),Cr(5,ie.fN)],Pr);const Fr={amdModuleId:"vs/editor/common/services/editorSimpleWorker",esmModuleLocation:void 0,label:"editorWorkerService"};let Ur=class extends j{constructor(e,t,i,s,n){super(Fr,e,t,i,s,n)}};Ur=vr([Cr(0,A.IModelService),Cr(1,N.ITextResourceConfigurationService),Cr(2,I.rr),Cr(3,x.JZ),Cr(4,D.ILanguageFeaturesService)],Ur);var Hr;(0,se.v)(I.rr,class extends pr{constructor(){super(new I.Cr)}},0),(0,se.v)(Me.pG,xr,0),(0,se.v)(N.ITextResourceConfigurationService,kr,0),(0,se.v)(N.ITextResourcePropertiesService,Ar,0),(0,se.v)(Xt.VR,Nr,0),(0,se.v)(qt.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Jt.P8)(e)}},0),(0,se.v)(Qt.k,class{publicLog2(){}},0),(0,se.v)(pe.X,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"+t),a.G.confirm(i)}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){const i=[...e.buttons??[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&i.push(e.cancelButton),t=await(i[0]?.run({checkboxChecked:!1}))}return{result:t}}async error(e,t){await this.prompt({type:ge.A.Error,message:e,detail:t})}},0),(0,se.v)(fr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,se.v)(me.Ot,yr,0),(0,se.v)(or.DR,hr,0),(0,se.v)(Ui.L,Mr,0),(0,se.v)(Ln.L,Rn.Sx,0),(0,se.v)(A.IModelService,Wi.ModelService,0),(0,se.v)(Bi.IMarkerDecorationsService,Hi.MarkerDecorationsService,0),(0,se.v)(ie.fN,Xn,0),(0,se.v)($t.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,se.v)($t.N8,Sr,0),(0,se.v)(dr.CS,dr.pc,0),(0,se.v)(Fi.IEditorWorkerService,Ur,0),(0,se.v)(_t.nu,Or,0),(0,se.v)(ei.L,class{constructor(){this._neverEmitter=new Q.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,se.v)(bt.ITextModelService,br,0),(0,se.v)(Ve.j,kn,0),(0,se.v)(Ns.PE,Ns.aG,0),(0,se.v)(St.d,wr,0),(0,se.v)(De.b,Rr,0),(0,se.v)(zi.GK,Sn,0),(0,se.v)(Oe.l,Dr,0),(0,se.v)(Ue.C,Pi,0),(0,se.v)(Fn.h,Pn,0),(0,se.v)(Oe.Z,Pr,0),(0,se.v)(ni.ez,Nn.$,0),(0,se.v)(gr.Nt,class{async playSignal(e,t){}},0),(0,se.v)(_r.ITreeSitterParserService,class{getParseResult(e){}},0),function(e){const t=new ir.a;for(const[o,a]of(0,se.N)())t.set(o,a);const i=new nr(t,!0);t.set(ae._Y,i),e.get=function(e){s||r({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof Jn.d?i.invokeFunction((t=>t.get(e))):n};let s=!1;const n=new Q.vl;function r(e){if(s)return i;s=!0;for(const[i,s]of(0,se.N)())t.get(i)||t.set(i,s);for(const i in e)if(e.hasOwnProperty(i)){const s=(0,ae.u1)(i);t.get(s)instanceof Jn.d&&t.set(s,e[i])}const r=(0,mr.T)();for(const t of r)try{i.createInstance(t)}catch(o){(0,v.dz)(o)}return n.fire(),i}e.initialize=r,e.withServices=function(e){if(s)return e();const t=new c.Cm,i=t.add(n.event((()=>{i.dispose(),t.add(e())})));return t}}(Hr||(Hr={}));class Br extends ${constructor(e,t){super({amdModuleId:Fr.amdModuleId,esmModuleLocation:Fr.esmModuleLocation,label:t.label},t.keepIdleModels||!1,e),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.V0)(this._foreignModuleHost):[];return e.$loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.$fmr(t,i),s=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const e of t)n[e]=s(e,i);return n}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this.workerWithSyncedResources(e).then((e=>this.getProxy()))}}var Wr=i(79027),Vr=i(74196),zr=i(23452),Gr=i(62083),jr=i(83941),Kr=i(20788),Yr=i(16223),qr=i(35015),$r=i(87469),Qr=i(35600),Xr=i(92896);function Zr(e){return!function(e){return Array.isArray(e)}(e)}function Jr(e){return"string"===typeof e}function eo(e){return!Jr(e)}function to(e){return!e}function io(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function so(e){return e.replace(/[&<>'"_]/g,"-")}function no(e,t){return new Error(`${e.languageId}: ${t}`)}function ro(e,t,i,s,n){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,o,a,c,l,h,d,u,g){return to(a)?to(c)?!to(l)&&l<s.length?io(e,s[l]):!to(d)&&e&&"string"===typeof e[d]?e[d]:(null===r&&(r=n.split("."),r.unshift(n)),!to(h)&&h<r.length?io(e,r[h]):""):io(e,i):"$"}))}function oo(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const s=i.lastIndexOf(".");i=s<0?null:i.substr(0,s)}return null}var ao,co=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},lo=function(e,t){return function(i,s){t(i,s,e)}};class ho{static{this._INSTANCE=new ho(5)}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 uo(e,t);let i=uo.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new uo(e,t),this._entries[i]=s,s)}}class uo{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 uo._equals(this,e)}push(e){return ho.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ho.create(this.parent,e)}}class go{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 go(this.languageId,this.state)}}class po{static{this._INSTANCE=new po(5)}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)return new mo(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new mo(e,t);const i=uo.getStackElementId(e);let s=this._entries[i];return s||(s=new mo(e,null),this._entries[i]=s,s)}}class mo{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:po.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof mo&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class fo{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 Gr.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenize(e,t,r);if(0!==s)for(const c of a.tokens)this._tokens.push(new Gr.ou(c.offset+s,c.type,c.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 Gr.$M(this._tokens,e)}}class _o{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){const 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){const s=null!==e?e.length:0,n=t.length,r=null!==i?i.length:0;if(0===s&&0===n&&0===r)return new Uint32Array(0);if(0===s&&0===n)return i;if(0===n&&0===r)return e;const o=new Uint32Array(s+n+r);null!==e&&o.set(e);for(let a=0;a<n;a++)o[s+a]=t[a];return null!==i&&o.set(i,s+n),o}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenizeEncoded(e,t,r);if(0!==s)for(let c=0,l=a.tokens.length;c<l;c+=2)a.tokens[c]+=s;return this._prependTokens=_o._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new Gr.rY(_o._merge(this._prependTokens,this._tokens,null),e)}}let vo=ao=class extends c.jG{constructor(e,t,i,s,n){super(),this._configurationService=n,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=s,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(Gr.dG.onDidChange((e=>{if(r)return;let t=!1;for(let i=0,s=e.changedLanguages.length;i<s;i++){const s=e.changedLanguages[i];if(this._embeddedLanguages[s]){t=!0;break}}t&&(r=!0,Gr.dG.handleChange([this._languageId]),r=!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(){const e=[];for(const t in this._embeddedLanguages){const i=Gr.dG.get(t);if(i){if(i instanceof ao){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else Gr.dG.isResolved(t)||e.push(Gr.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=ho.create(null,this._lexer.start);return po.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.$H)(this._languageId,i);const s=new fo,n=this._tokenize(e,t,i,s);return s.finalize(n)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const s=new _o(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),n=this._tokenize(e,t,i,s);return s.finalize(n)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=oo(this._lexer,t.stack.state),!i))throw no(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,n=!1;for(const r of i){if(!eo(r.action)||"@pop"!==r.action.nextEmbedded)continue;n=!0;let i=r.resolveRegex(t.stack.state);const o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}const a=e.search(i);-1===a||0!==a&&r.matchOnlyAtLineStart||(-1===s||a<s)&&(s=a)}if(!n)throw no(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return s}_nestedTokenize(e,t,i,s,n){const r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){const r=n.nestedLanguageTokenize(e,t,i.embeddedLanguageData,s);return po.create(i.stack,new go(i.embeddedLanguageData.languageId,r))}const o=e.substring(0,r);o.length>0&&n.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,s);const a=e.substring(r);return this._myTokenize(a,t,i,s+r,n)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,n){n.enterLanguage(this._languageId);const r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length;let c=i.embeddedLanguageData,l=i.stack,h=0,d=null,u=!0;for(;u||h<a;){const i=h,m=l.depth,f=d?d.groups.length:0,_=l.state;let v=null,C=null,E=null,b=null,S=null;if(d){v=d.matches;const e=d.groups.shift();C=e.matched,E=e.action,b=d.rule,0===d.groups.length&&(d=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=oo(this._lexer,_),!e))throw no(this._lexer,"tokenizer state is not defined: "+_);const t=o.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){C=v[0],E=i.action;break}}if(v||(v=[""],C=""),E||(h<a&&(v=[o.charAt(h)],C=v[0]),E=this._lexer.defaultToken),null===C)break;for(h+=C.length;Zr(E)&&eo(E)&&E.test;)E=E.test(C,v,_,h===a);let y=null;if("string"===typeof E||Array.isArray(E))y=E;else if(E.group)y=E.group;else if(null!==E.token&&void 0!==E.token){if(y=E.tokenSubst?ro(this._lexer,E.token,C,v,_):E.token,E.nextEmbedded)if("@pop"===E.nextEmbedded){if(!c)throw no(this._lexer,"cannot pop embedded language if not inside one");c=null}else{if(c)throw no(this._lexer,"cannot enter embedded language from within an embedded language");S=ro(this._lexer,E.nextEmbedded,C,v,_)}if(E.goBack&&(h=Math.max(0,h-E.goBack)),E.switchTo&&"string"===typeof E.switchTo){let e=ro(this._lexer,E.switchTo,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.switchTo(e)}else{if(E.transform&&"function"===typeof E.transform)throw no(this._lexer,"action.transform not supported");if(E.next)if("@push"===E.next){if(l.depth>=this._lexer.maxStack)throw no(this._lexer,"maximum tokenizer stack size reached: ["+l.state+","+l.parent.state+",...]");l=l.push(_)}else if("@pop"===E.next){if(l.depth<=1)throw no(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));l=l.pop()}else if("@popall"===E.next)l=l.popall();else{let e=ro(this._lexer,E.next,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));l=l.push(e)}}E.log&&"string"===typeof E.log&&(g=this._lexer,p=this._lexer.languageId+": "+ro(this._lexer,E.log,C,v,_),console.log(`${g.languageId}: ${p}`))}if(null===y)throw no(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const w=i=>{const r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,po.create(l,o),s+h,n)}return po.create(l,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw no(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(v.length!==y.length+1)throw no(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==C.length)throw no(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(b));d={rule:b,matches:v,groups:[]};for(let t=0;t<y.length;t++)d.groups[t]={action:y[t],matched:v[t+1]};h-=C.length}else{{if("@rematch"===y&&(h-=C.length,C="",v=null,y="",null!==S))return w(S);if(0===C.length){if(0===a||m!==l.depth||_!==l.state||(d?d.groups.length:0)!==f)continue;throw no(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(b))}let e=null;if(Jr(y)&&0===y.indexOf("@brackets")){const t=y.substr(9),i=Co(this._lexer,C);if(!i)throw no(this._lexer,"@brackets token returned but no bracket defined as: "+C);e=so(i.token+t)}else{e=so(""===y?"":y+this._lexer.tokenPostfix)}i<r&&n.emit(i+s,e)}if(null!==S)return w(S)}}var g,p;return po.create(l,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new go(e,Kr.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Gr.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Gr.dG.get(e);return new go(e,t?t.getInitialState():Kr.r3)}};function Co(e,t){if(!t)return null;t=io(e,t);const i=e.brackets;for(const s of i){if(s.open===t)return{token:s.token,bracketType:1};if(s.close===t)return{token:s.token,bracketType:-1}}return null}vo=ao=co([lo(4,Me.pG)],vo);const Eo=(0,_.H)("standaloneColorizer",{createHTML:e=>e});class bo{static colorizeElement(e,t,i,s){const n=(s=s||{}).theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const o=t.getLanguageIdByMimeType(r)||r;e.setTheme(n);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+n;return this.colorize(t,a||"",o,s).then((e=>{const t=Eo?.createHTML(e)??e;i.innerHTML=t}),(e=>console.error(e)))}static async colorize(e,t,i,s){const n=e.languageIdCodec;let r=4;s&&"number"===typeof s.tabSize&&(r=s.tabSize),l.LU(t)&&(t=t.substr(1));const o=l.uz(t);if(!e.isRegisteredLanguageId(i))return So(o,r,n);const a=await Gr.dG.getOrCreate(i);return a?function(e,t,i,s){return new Promise(((n,r)=>{const o=()=>{const a=function(e,t,i,s){let n=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){const a=e[o],c=i.tokenizeEncoded(a,!0,r);$r.f.convertToEndOffset(c.tokens,a.length);const l=new $r.f(c.tokens,a,s),h=Xr.qL.isBasicASCII(a,!0),d=Xr.qL.containsRTL(a,h,!0),u=(0,Qr.Md)(new Qr.zL(!1,!0,a,!1,h,d,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(u.html),n.push("<br/>"),r=c.endState}return n.join("")}(e,t,i,s);if(i instanceof vo){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}n(a)};o()}))}(o,r,a,n):So(o,r,n)}static colorizeLine(e,t,i,s,n=4){const r=Xr.qL.isBasicASCII(e,t),o=Xr.qL.containsRTL(e,r,i);return(0,Qr.Md)(new Qr.zL(!1,!0,e,!1,r,o,0,s,[],n,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),n,i)}}function So(e,t,i){let s=[];const n=new Uint32Array(2);n[0]=0,n[1]=33587200;for(let r=0,o=e.length;r<o;r++){const o=e[r];n[0]=o.length;const a=new $r.f(n,o,i),c=Xr.qL.isBasicASCII(o,!0),l=Xr.qL.containsRTL(o,c,!0),h=(0,Qr.Md)(new Qr.zL(!1,!0,o,!1,c,l,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(h.html),s.push("<br/>")}return s.join("")}var yo=i(29611),wo=i(4360),Ro=i(42904),Lo=i(48196),To=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xo=function(e,t){return function(i,s){t(i,s,e)}};let ko=0,Ao=!1;let No=class extends n.x{constructor(e,t,i,s,n,r,o,c,l,h,d,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Zt.vp.editorViewAccessibleLabel,super(e,p,{},i,s,n,r,l,h,d,u,g),this._standaloneKeybindingService=c instanceof Rr?c:null,function(e){if(!e){if(Ao)return;Ao=!0}ze.vr(e||a.G.document.body)}(p.ariaContainerElement),(0,Ro.MW)(((e,t)=>i.createInstance(Ie.fO,e,t,{}))),(0,Lo.e)(o)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++ko,n=ie.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,n),s}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 new 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"),c.jG.None;const t=e.id,i=e.label,s=ie.M$.and(ie.M$.equals("editorId",this.getId()),ie.M$.deserialize(e.precondition)),n=e.keybindings,r=ie.M$.and(s,ie.M$.deserialize(e.keybindingContext)),o=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new c.Cm,d=this.getId()+":"+t;if(h.add(St.w.registerCommand(d,l)),o){const e={command:{id:d,title:i},when:s,group:o,order:a};h.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,e))}if(Array.isArray(n))for(const c of n)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,c,l,r));const u=new yo.f(d,i,i,void 0,s,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,c.s)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof oe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};No=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Z.Gy),xo(9,me.Ot),xo(10,Ve.j),xo(11,x.JZ),xo(12,D.ILanguageFeaturesService)],No);let Io=class extends No{constructor(e,t,i,s,n,r,o,a,c,l,h,d,u,g,p,m){const f={...t};Ir(h,f,!1);const _=c.registerEditorContainer(e);"string"===typeof f.theme&&c.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let C;if(delete f.model,super(e,f,i,s,n,r,o,a,c,l,d,p,m),this._configurationService=h,this._standaloneThemeService=c,this._register(_),"undefined"===typeof v){const e=g.getLanguageIdByMimeType(f.language)||f.language||jr.vH;C=Do(u,g,f.value||"",e,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const e={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Io=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Ln.L),xo(9,me.Ot),xo(10,Me.pG),xo(11,Ve.j),xo(12,A.IModelService),xo(13,Ui.L),xo(14,x.JZ),xo(15,D.ILanguageFeaturesService)],Io);let Oo=class extends wo.T{constructor(e,t,i,s,n,r,o,a,c,l,h,d){const u={...t};Ir(a,u,!0);const g=r.registerEditorContainer(e);"string"===typeof u.theme&&r.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&r.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},s,i,n,d,l),this._configurationService=a,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(No,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 Do(e,t,i,s,n){if(i=i||"",!s){const s=i.indexOf("\n");let r=i;return-1!==s&&(r=i.substring(0,s)),Mo(e,i,t.createByFilepathOrFirstLine(n||null,r),n)}return Mo(e,i,t.createById(s),n)}function Mo(e,t,i,s){return e.createModel(t,i,s)}Oo=To([xo(2,ae._Y),xo(3,ie.fN),xo(4,g.T),xo(5,Ln.L),xo(6,me.Ot),xo(7,Me.pG),xo(8,Oe.Z),xo(9,$t.N8),xo(10,Fn.h),xo(11,gr.Nt)],Oo);var Po=i(41127),Fo=i(46041),Uo=i(49154),Ho=i(49353),Bo=i(92368),Wo=i(74444),Vo=i(75326),zo=i(60002),Go=i(38844),jo=i(65644),Ko=i(25791),Yo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},qo=function(e,t){return function(i,s){t(i,s,e)}};class $o{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Qo=class extends c.jG{constructor(e,t,i,s,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=s,this._viewModel=(0,Uo.FY)(this,void 0),this._collapsed=(0,Bs.un)(this,(e=>this._viewModel.read(e)?.collapsed.read(e))),this._editorContentHeight=(0,Uo.FY)(this,500),this.contentHeight=(0,Bs.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,Uo.FY)(this,0),this._modifiedWidth=(0,Uo.FY)(this,0),this._originalContentWidth=(0,Uo.FY)(this,0),this._originalWidth=(0,Uo.FY)(this,0),this.maxScroll=(0,Bs.un)(this,(e=>{const 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)}})),this._elements=(0,U.h)("div.multiDiffEntry",[(0,U.h)("div.header@header",[(0,U.h)("div.header-content",[(0,U.h)("div.collapse-button@collapseButton"),(0,U.h)("div.file-path",[(0,U.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,U.h)("div.status.deleted@status",["R"]),(0,U.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,U.h)("div.actions@actions")])]),(0,U.h)("div.editorParent",[(0,U.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(wo.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=(0,Go.Ud)(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=(0,Go.Ud)(this.editor.getOriginalEditor()).isFocused,this.isFocused=(0,Bs.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new c.Cm),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new Es.$(this._elements.collapseButton,{});this._register((0,Bs.fm)((e=>{r.element.className="",r.icon=this._collapsed.read(e)?di.W.chevronRight:di.W.chevronDown}))),this._register(r.onDidClick((()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Bs.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,Uo.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e)?.isActive.read(e);this._elements.root.classList.toggle("active",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(n.createScoped(this._elements.actions));const o=this._register(this._instantiationService.createChild(new ir.a([ie.fN,this._contextKeyService])));this._register(o.createInstance(jo.m,this._elements.actions,ni.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Ko.I((()=>this._viewModel.get()?.modifiedUri))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,si.rN)(o,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)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(this._data=e,!e)return void(0,Uo.YY)((e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear()}));const i=e.viewModel.documentDiffItem;if((0,Uo.YY)((s=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let n=!1,r=!1,o=!1,a="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(a="R",n=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(a="A",o=!0):(a="D",r=!0),this._elements.status.classList.toggle("renamed",n),this._elements.status.classList.toggle("deleted",r),this._elements.status.classList.toggle("added",o),this._elements.status.innerText=a,this._resourceLabel2?.setUri(n?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,s),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,s),this.editor.updateOptions(t(i.options??{}))})),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{this.editor.updateOptions(t(i.options??{}))}))),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,(e=>{e||this.setData(void 0)})),e.viewModel.documentDiffItem.contextKeys)for(const[s,n]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(s,n)}render(e,t,i,s){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";const n=e.length-this._headerHeight,r=Math.max(0,Math.min(s.start-e.start,n));this._elements.header.style.transform=`translateY(${r}px)`,(0,Uo.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===n)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};Qo=Yo([qo(3,ae._Y),qo(4,ie.fN)],Qo);class Xo{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(0===this._unused.size)t=this._create(e),this._itemData.set(t,e);else{const i=[...this._unused.values()];t=i.find((t=>this._itemData.get(t).getId()===e.getId()))??i[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Zo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Jo=function(e,t){return function(i,s){t(i,s,e)}};let ea=class extends c.jG{constructor(e,t,i,s,n,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=s,this._parentContextKeyService=n,this._parentInstantiationService=r,this._scrollableElements=(0,U.h)("div.scrollContent",[(0,U.h)("div@content",{style:{overflow:"hidden"}}),(0,U.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Ho.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,U.PG)((0,U.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new hi.oO(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=(0,U.h)("div.monaco-component.multiDiffEditor",{},[(0,U.h)("div",{},[this._scrollableElement.getDomNode()]),(0,U.h)("div.placeholder@placeholder",{},[(0,U.h)("div",[(0,b.kg)("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new Bo.pN(this._element,void 0)),this._objectPool=this._register(new Xo((e=>{const t=this._instantiationService.createInstance(Qo,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this.scrollTop=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=(0,Bs.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new v.D7}};const s=i.items.read(e),n=new Map;return{items:s.map((e=>{const i=t.add(new ta(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=this._lastDocStates?.[i.getKey()];return s&&(0,Uo.Rn)((e=>{i.setViewState(s,e)})),n.set(e,i),i})),getItem:e=>n.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new ir.a([ie.fN,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(zo.R.inMultiDiffEditor.key,!0),this._register((0,Bs.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[s,n]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(s,void 0);e.set(n),t.add((0,c.s)((()=>e.reset())))}})));const o=this._parentContextKeyService.createKey(zo.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));o.set(i)}}))),this._register((0,Bs.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewItems.read(e);this._elements.placeholder.classList.toggle("visible",0===t.length)}))),this._scrollableElements.content.style.position="relative",this._register((0,Bs.fm)((e=>{const t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${i}px`;const s=this._sizeObserver.width.read(e);let n=s;const r=this._viewItems.read(e),o=(0,Fo.Cn)(r,(0,E.VE)((t=>t.maxScroll.read(e).maxScroll),E.U9));if(o){n=s+o.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:s,height:t,scrollHeight:i,scrollWidth:n})}))),e.replaceChildren(this._elements.root),this._register((0,c.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Bs.fm)((e=>{(0,Uo.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,s=0,n=0;const r=this._sizeObserver.height.read(e),o=Wo.L.ofStartAndLength(t,r),a=this._sizeObserver.width.read(e);for(const c of this._viewItems.read(e)){const l=c.contentHeight.read(e),h=Math.min(l,r),d=Wo.L.ofStartAndLength(s,h),u=Wo.L.ofStartAndLength(n,l);if(u.isBefore(o))i-=l-h,c.hide();else if(u.isAfter(o))c.hide();else{const e=Math.max(0,Math.min(o.start-u.start,l-h));i-=e;const s=Wo.L.ofStartAndLength(t+i,r);c.render(d,e,a,s)}s+=h+this._spaceBetweenPx,n+=l+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};ea=Zo([Jo(4,ie.fN),Jo(5,ae._Y)],ea);class ta extends c.jG{constructor(e,t,i,s){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=s,this._templateRef=this._register((0,Uo.X2)(this,void 0)),this.contentHeight=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.contentHeight?.read(e)??this.viewModel.lastTemplateData.read(e).contentHeight)),this.maxScroll=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.maxScroll.read(e)??{maxScroll:0,scrollWidth:0})),this.template=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object)),this._isHidden=(0,Bs.FY)(this,!1),this._isFocused=(0,Bs.un)(this,(e=>this.template.read(e)?.isFocused.read(e)??!1)),this.viewModel.setIsFocused(this._isFocused,void 0),this._register((0,Bs.fm)((e=>{const t=this._scrollLeft.read(e);this._templateRef.read(e)?.object.setScrollLeft(t)}))),this._register((0,Bs.fm)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const i=this.viewModel.lastTemplateData.get(),s=e.selections?.map(Vo.L.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:s},t);const n=this._templateRef.get();n&&s&&n.object.editor.setSelections(s)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,Uo.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,s){this._isHidden.set(!1,void 0);let n=this._templateRef.get();if(!n){n=this._objectPool.getUnusedObj(new $o(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(n,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&n.object.editor.setSelections(e)}n.object.render(e,i,t,s)}}(0,Ne.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,b.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,Ne.x1A)("multiDiffEditor.background",Ne.YtV,(0,b.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,Ne.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,b.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var ia=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},sa=function(e,t){return function(i,s){t(i,s,e)}};let na=class extends c.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Bs.FY)(this,void 0),this._viewModel=(0,Bs.FY)(this,void 0),this._widgetImpl=(0,Bs.rm)(this,((e,t)=>((0,Po.b)(Qo,e),t.add(this._instantiationService.createInstance((0,Po.b)(ea,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Bs.OI)(this._widgetImpl))}};function ra(e,t,i){return Hr.initialize(i||{}).createInstance(Io,e,t)}function oa(e){return Hr.get(g.T).onCodeEditorAdd((t=>{e(t)}))}function aa(e){return Hr.get(g.T).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Hr.get(g.T).listCodeEditors()}function la(){return Hr.get(g.T).listDiffEditors()}function ha(e,t,i){return Hr.initialize(i||{}).createInstance(Oo,e,t)}function da(e,t){const i=Hr.initialize(t||{});return new na(e,{},i)}function ua(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return St.w.registerCommand(e.id,e.run)}function ga(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ie.M$.deserialize(e.precondition),i=new c.Cm;if(i.add(St.w.registerCommand(e.id,((i,...s)=>u.DX.runEditorCommand(i,s,t,((t,i,s)=>Promise.resolve(e.run(i,...s))))))),e.contextMenuGroupId){const s={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,s))}if(Array.isArray(e.keybindings)){const s=Hr.get(De.b);if(s instanceof Rr){const n=ie.M$.and(t,ie.M$.deserialize(e.keybindingContext));i.add(s.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:n})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function pa(e){return ma([e])}function ma(e){const t=Hr.get(De.b);return t instanceof Rr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ie.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.jG.None)}function fa(e,t,i){const s=Hr.get(Ui.L),n=s.getLanguageIdByMimeType(t)||t;return Do(Hr.get(A.IModelService),s,e,n,i)}function _a(e,t){const i=Hr.get(Ui.L),s=i.getLanguageIdByMimeType(t)||t||jr.vH;e.setLanguage(i.createById(s))}function va(e,t,i){if(e){Hr.get(or.DR).changeOne(t,e.uri,i)}}function Ca(e){Hr.get(or.DR).changeAll(e,[])}function Ea(e){return Hr.get(or.DR).read(e)}function ba(e){return Hr.get(or.DR).onMarkerChanged(e)}function Sa(e){return Hr.get(A.IModelService).getModel(e)}function ya(){return Hr.get(A.IModelService).getModels()}function wa(e){return Hr.get(A.IModelService).onModelAdded(e)}function Ra(e){return Hr.get(A.IModelService).onModelRemoved(e)}function La(e){return Hr.get(A.IModelService).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t){return new Br(e,t)}(Hr.get(A.IModelService),e)}function xa(e,t){const i=Hr.get(Ui.L),s=Hr.get(Ln.L);return bo.colorizeElement(s,i,e,t).then((()=>{s.registerEditorContainer(e)}))}function ka(e,t,i){const s=Hr.get(Ui.L);return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorize(s,e,t,i)}function Aa(e,t,i=4){return Hr.get(Ln.L).registerEditorContainer(a.G.document.body),bo.colorizeModelLine(e,t,i)}function Na(e,t){Gr.dG.getOrCreate(t);const i=function(e){const t=Gr.dG.get(e);return t||{getInitialState:()=>Kr.r3,tokenize:(t,i,s)=>(0,Kr.$H)(e,s)}}(t),s=(0,l.uz)(e),n=[];let r=i.getInitialState();for(let o=0,a=s.length;o<a;o++){const e=s[o],t=i.tokenize(e,!0,r);n[o]=t.tokens,r=t.endState}return n}function Ia(e,t){Hr.get(Ln.L).defineTheme(e,t)}function Oa(e){Hr.get(Ln.L).setTheme(e)}function Da(){d.T.clearAllFontInfos()}function Ma(e,t){return St.w.registerCommand({id:e,handler:t})}function Pa(e){return Hr.get(Ue.C).registerOpener({open:async t=>("string"===typeof t&&(t=h.r.parse(t)),e.open(t))})}function Fa(e){return Hr.get(g.T).registerCodeEditorOpenHandler((async(t,i,s)=>{if(!i)return null;const n=t.options?.selection;let r;return n&&"number"===typeof n.endLineNumber&&"number"===typeof n.endColumn?r=n:n&&(r={lineNumber:n.startLineNumber,column:n.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}na=ia([sa(2,ae._Y)],na);var Ua=i(47661);function Ha(e,t){return"boolean"===typeof e?e:t}function Ba(e,t){return"string"===typeof e?e:t}function Wa(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const 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 Va(e,t,i){t=t.replace(/@@/g,"\x01");let s,n=0;do{s=!1,t=t.replace(/@(\w+)/g,(function(i,n){s=!0;let r="";if("string"===typeof e[n])r=e[n];else{if(!(e[n]&&e[n]instanceof RegExp))throw void 0===e[n]?no(e,"language definition does not contain attribute '"+n+"', used at: "+t):no(e,"attribute reference '"+n+"' must be a string, used at: "+t);r=e[n].source}return to(r)?"":"(?:"+r+")"})),n++}while(s&&n<5);t=t.replace(/\x01/g,"@");const r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,s=null;return n=>(s&&i===n||(i=n,s=new RegExp(function(e,t,i){let s=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,n){return null===s&&(s=i.split("."),s.unshift(i)),!to(n)&&n<s.length?io(e,s[n]):""}))}(e,t,n),r)),s)}}return new RegExp(t,r)}function za(e,t,i,s){let n=-1,r=i,o=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(n=parseInt(o[3]),o[2]&&(n+=100)),r=o[4]);let a,c="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?c="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(c=o[1],l=o[2])):(c="!=",l=""),"~"!==c&&"!~"!==c||!/^(\w|\|)*$/.test(l))if("@"===c||"!@"===c){const i=e[l];if(!i)throw no(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw no(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);const s=Wa(i,e.ignoreCase);a=function(e){return"@"===c?s(e):!s(e)}}else if("~"===c||"!~"===c)if(l.indexOf("$")<0){const t=Va(e,"^"+l+"$",!1);a=function(e){return"~"===c?t.test(e):!t.test(e)}}else a=function(t,i,s,n){return Va(e,"^"+ro(e,l,i,s,n)+"$",!1).test(t)};else if(l.indexOf("$")<0){const t=io(e,l);a=function(e){return"=="===c?e===t:e!==t}}else{const t=io(e,l);a=function(i,s,n,r,o){const a=ro(e,t,s,n,r);return"=="===c?i===a:i!==a}}else{const t=Wa(l.split("|"),e.ignoreCase);a=function(e){return"~"===c?t(e):!t(e)}}return-1===n?{name:i,value:s,test:function(e,t,i,s){return a(e,e,t,i,s)}}:{name:i,value:s,test:function(e,t,i,s){const r=function(e,t,i,s){if(s<0)return e;if(s<t.length)return t[s];if(s>=100){s-=100;const e=i.split(".");if(e.unshift(i),s<e.length)return e[s]}return null}(e,t,i,n);return a(r||"",e,t,i,s)}}}function Ga(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw no(e,"a 'token' attribute must be of type string, in rule: "+t);{const s={token:i.token};if(i.token.indexOf("$")>=0&&(s.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)s.bracket=1;else{if("@close"!==i.bracket)throw no(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);s.bracket=-1}if(i.next){if("string"!==typeof i.next)throw no(e,"the next state must be a string value in rule: "+t);{let n=i.next;if(!/^(@pop|@push|@popall)$/.test(n)&&("@"===n[0]&&(n=n.substr(1)),n.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,ro(e,n,"",[],""))))throw no(e,"the next state '"+i.next+"' is not defined in rule: "+t);s.next=n}}return"number"===typeof i.goBack&&(s.goBack=i.goBack),"string"===typeof i.switchTo&&(s.switchTo=i.switchTo),"string"===typeof i.log&&(s.log=i.log),"string"===typeof i.nextEmbedded&&(s.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),s}}if(Array.isArray(i)){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=Ga(e,t,i[n]);return{group:s}}if(i.cases){const s=[];for(const r in i.cases)if(i.cases.hasOwnProperty(r)){const n=Ga(e,t,i.cases[r]);"@default"===r||"@"===r||""===r?s.push({test:void 0,value:n,name:r}):"@eos"===r?s.push({test:function(e,t,i,s){return s},value:n,name:r}):s.push(za(e,t,r,n))}const n=e.defaultToken;return{test:function(e,t,i,r){for(const n of s){if(!n.test||n.test(e,t,i,r))return n.value}return n}}}throw no(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class ja{constructor(e){this.regex=new 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))throw no(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Va(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=Ga(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ka(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={languageId:e,includeLF:Ha(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"===typeof t.start?t.start:null,ignoreCase:Ha(t.ignoreCase,!1),unicode:Ha(t.unicode,!1),tokenPostfix:Ba(t.tokenPostfix,"."+e),defaultToken:Ba(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},s=t;function n(e,r,o){for(const a of o){let o=a.include;if(o){if("string"!==typeof o)throw no(i,"an 'include' attribute must be a string at: "+e);if("@"===o[0]&&(o=o.substr(1)),!t.tokenizer[o])throw no(i,"include target '"+o+"' is not defined at: "+e);n(e+"."+o,r,t.tokenizer[o])}else{const t=new ja(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(s,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(s,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw no(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: "+e);{const e=a[1];e.next=a[2],t.setAction(s,e)}}else t.setAction(s,a[1]);else{if(!a.regex)throw no(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=Ha(a.matchOnlyAtLineStart,!1)),t.setRegex(s,a.regex),t.setAction(s,a.action)}r.push(t)}}}if(s.languageId=e,s.includeLF=i.includeLF,s.ignoreCase=i.ignoreCase,s.unicode=i.unicode,s.noThrow=i.noThrow,s.usesEmbedded=i.usesEmbedded,s.stateNames=t.tokenizer,s.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw no(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const o in t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){i.start||(i.start=o);const e=t.tokenizer[o];i.tokenizer[o]=new Array,n("tokenizer."+o,i.tokenizer[o],e)}if(i.usesEmbedded=s.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw no(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"}];const r=[];for(const o of t.brackets){let e=o;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw no(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw no(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");r.push({token:e.token+i.tokenPostfix,open:io(i,e.open),close:io(i,e.close)})}return i.brackets=r,i.noThrow=!0,i}function Ya(e){jr.W6.registerLanguage(e)}function qa(){let e=[];return e=e.concat(jr.W6.getLanguages()),e}function $a(e){return Hr.get(Ui.L).languageIdCodec.encodeLanguageId(e)}function Qa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestRichLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Xa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestBasicLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Za(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Hr.get(x.JZ).register(e,t,100)}class Ja{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 ec.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const s=this._actual.tokenizeEncoded(e,i);return new Gr.rY(s.tokens,s.endState)}}class ec{constructor(e,t,i,s){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let s=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=r.startIndex;0===n?o=0:o<s&&(o=s),i[n]=new Gr.ou(o,r.scopes,t),s=o}return i}static adaptTokenize(e,t,i,s){const n=t.tokenize(i,s),r=ec._toClassicTokens(n.tokens,e);let o;return o=n.endState.equals(s)?s:n.endState,new Gr.$M(r,o)}tokenize(e,t,i){return ec.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,n=[];let r=0,o=0;for(let c=0,l=t.length;c<l;c++){const e=t[c],a=1024|s.match(i,e.scopes);if(r>0&&n[r-1]===a)continue;let l=e.startIndex;0===c?l=0:l<o&&(l=o),n[r++]=l,n[r++]=a,o=l}const a=new Uint32Array(r);for(let c=0;c<r;c++)a[c]=n[c];return a}tokenizeEncoded(e,t,i){const s=this._actual.tokenize(e,i),n=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let r;return r=s.endState.equals(i)?i:s.endState,new Gr.rY(n,r)}}function tc(e){return e&&"function"===typeof e.then}function ic(e){const t=Hr.get(Ln.L);if(e){const i=[null];for(let t=1,s=e.length;t<s;t++)i[t]=Ua.Q1.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function sc(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new Ja(e,t):new ec(e,t,Hr.get(Ui.L),Hr.get(Ln.L))}function nc(e,t){const i=new Gr.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?sc(e,i):new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,i),Hr.get(Me.pG)):null}));return Gr.dG.registerFactory(e,i)}function rc(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,sc(e,t))}function oc(e,t){return tc(t)?nc(e,{create:()=>t}):Gr.dG.register(e,(t=>new vo(Hr.get(Ui.L),Hr.get(Ln.L),e,Ka(e,t),Hr.get(Me.pG)))(t))}function ac(e,t){return Hr.get(D.ILanguageFeaturesService).referenceProvider.register(e,t)}function cc(e,t){return Hr.get(D.ILanguageFeaturesService).renameProvider.register(e,t)}function lc(e,t){return Hr.get(D.ILanguageFeaturesService).newSymbolNamesProvider.register(e,t)}function hc(e,t){return Hr.get(D.ILanguageFeaturesService).signatureHelpProvider.register(e,t)}function dc(e,t){return Hr.get(D.ILanguageFeaturesService).hoverProvider.register(e,{provideHover:async(e,i,s,n)=>{const r=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,s,n)).then((e=>{if(e)return!e.range&&r&&(e.range=new T.Q(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn)),e.range||(e.range=new T.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function uc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSymbolProvider.register(e,t)}function gc(e,t){return Hr.get(D.ILanguageFeaturesService).documentHighlightProvider.register(e,t)}function pc(e,t){return Hr.get(D.ILanguageFeaturesService).linkedEditingRangeProvider.register(e,t)}function mc(e,t){return Hr.get(D.ILanguageFeaturesService).definitionProvider.register(e,t)}function fc(e,t){return Hr.get(D.ILanguageFeaturesService).implementationProvider.register(e,t)}function _c(e,t){return Hr.get(D.ILanguageFeaturesService).typeDefinitionProvider.register(e,t)}function vc(e,t){return Hr.get(D.ILanguageFeaturesService).codeLensProvider.register(e,t)}function Cc(e,t,i){return Hr.get(D.ILanguageFeaturesService).codeActionProvider.register(e,{providedCodeActionKinds:i?.providedCodeActionKinds,documentation:i?.documentation,provideCodeActions:(e,i,s,n)=>{const r=Hr.get(or.DR).read({resource:e.uri}).filter((e=>T.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:r,only:s.only,trigger:s.trigger},n)},resolveCodeAction:t.resolveCodeAction})}function Ec(e,t){return Hr.get(D.ILanguageFeaturesService).documentFormattingEditProvider.register(e,t)}function bc(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(e,t)}function Sc(e,t){return Hr.get(D.ILanguageFeaturesService).onTypeFormattingEditProvider.register(e,t)}function yc(e,t){return Hr.get(D.ILanguageFeaturesService).linkProvider.register(e,t)}function wc(e,t){return Hr.get(D.ILanguageFeaturesService).completionProvider.register(e,t)}function Rc(e,t){return Hr.get(D.ILanguageFeaturesService).colorProvider.register(e,t)}function Lc(e,t){return Hr.get(D.ILanguageFeaturesService).foldingRangeProvider.register(e,t)}function Tc(e,t){return Hr.get(D.ILanguageFeaturesService).declarationProvider.register(e,t)}function xc(e,t){return Hr.get(D.ILanguageFeaturesService).selectionRangeProvider.register(e,t)}function kc(e,t){return Hr.get(D.ILanguageFeaturesService).documentSemanticTokensProvider.register(e,t)}function Ac(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(e,t)}function Nc(e,t){return Hr.get(D.ILanguageFeaturesService).inlineCompletionsProvider.register(e,t)}function Ic(e,t){return Hr.get(D.ILanguageFeaturesService).inlineEditProvider.register(e,t)}function Oc(e,t){return Hr.get(D.ILanguageFeaturesService).inlayHintsProvider.register(e,t)}var Dc=i(49079);r.qB.wrappingIndent.defaultValue=0,r.qB.glyphMargin.defaultValue=!1,r.qB.autoIndent.defaultValue=3,r.qB.overviewRulerLanes.defaultValue=2,Dc.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Mc=(0,o.createMonacoBaseAPI)();Mc.editor={create:ra,getEditors:ca,getDiffEditors:la,onDidCreateEditor:oa,onDidCreateDiffEditor:aa,createDiffEditor:ha,addCommand:ua,addEditorAction:ga,addKeybindingRule:pa,addKeybindingRules:ma,createModel:fa,setModelLanguage:_a,setModelMarkers:va,getModelMarkers:Ea,removeAllMarkers:Ca,onDidChangeMarkers:ba,getModels:ya,getModel:Sa,onDidCreateModel:wa,onWillDisposeModel:Ra,onDidChangeModelLanguage:La,createWebWorker:Ta,colorizeElement:xa,colorize:ka,colorizeModelLine:Aa,tokenize:Na,defineTheme:Ia,setTheme:Oa,remeasureFonts:Da,registerCommand:Ma,registerLinkOpener:Pa,registerEditorOpener:Fa,AccessibilitySupport:qr.Gn,ContentWidgetPositionPreference:qr.Qj,CursorChangeReason:qr.h5,DefaultEndOfLine:qr.of,EditorAutoIndentStrategy:qr.e0,EditorOption:qr.p2,EndOfLinePreference:qr.kf,EndOfLineSequence:qr.WU,MinimapPosition:qr.R3,MinimapSectionHeaderStyle:qr.VX,MouseTargetType:qr.hS,OverlayWidgetPositionPreference:qr.dE,OverviewRulerLane:qr.A5,GlyphMarginLane:qr.ZS,RenderLineNumbersType:qr.DO,RenderMinimap:qr.hW,ScrollbarVisibility:qr.XR,ScrollType:qr.ov,TextEditorCursorBlinkingStyle:qr.U7,TextEditorCursorStyle:qr.m9,TrackedRangeStickiness:qr.kK,WrappingIndent:qr.tJ,InjectedTextCursorStops:qr.VW,PositionAffinity:qr.Ic,ShowLightbulbIconMode:qr.jT,ConfigurationChangedEvent:r.lw,BareFontInfo:Vr._8,FontInfo:Vr.YJ,TextModelResolvedOptions:Yr.X2,FindMatch:Yr.Dg,ApplyUpdateResult:r.hZ,EditorZoom:Wr.D,createMultiFileDiffEditor:da,EditorType:zr._,EditorOptions:r.qB},Mc.languages={register:Ya,getLanguages:qa,onLanguage:Qa,onLanguageEncountered:Xa,getEncodedLanguageId:$a,setLanguageConfiguration:Za,setColorMap:ic,registerTokensProviderFactory:nc,setTokensProvider:rc,setMonarchTokensProvider:oc,registerReferenceProvider:ac,registerRenameProvider:cc,registerNewSymbolNameProvider:lc,registerCompletionItemProvider:wc,registerSignatureHelpProvider:hc,registerHoverProvider:dc,registerDocumentSymbolProvider:uc,registerDocumentHighlightProvider:gc,registerLinkedEditingRangeProvider:pc,registerDefinitionProvider:mc,registerImplementationProvider:fc,registerTypeDefinitionProvider:_c,registerCodeLensProvider:vc,registerCodeActionProvider:Cc,registerDocumentFormattingEditProvider:Ec,registerDocumentRangeFormattingEditProvider:bc,registerOnTypeFormattingEditProvider:Sc,registerLinkProvider:yc,registerColorProvider:Rc,registerFoldingRangeProvider:Lc,registerDeclarationProvider:Tc,registerSelectionRangeProvider:xc,registerDocumentSemanticTokensProvider:kc,registerDocumentRangeSemanticTokensProvider:Ac,registerInlineCompletionsProvider:Nc,registerInlineEditProvider:Ic,registerInlayHintsProvider:Oc,DocumentHighlightKind:qr.Kb,CompletionItemKind:qr.Io,CompletionItemTag:qr.QP,CompletionItemInsertTextRule:qr._E,SymbolKind:qr.v0,SymbolTag:qr.H_,IndentAction:qr.l,CompletionTriggerKind:qr.t7,SignatureHelpTriggerKind:qr.WA,InlayHintKind:qr.r4,InlineCompletionTriggerKind:qr.qw,InlineEditTriggerKind:qr.sm,CodeActionTriggerType:qr.ok,NewSymbolNameTag:qr.OV,NewSymbolNameTriggerKind:qr.YT,PartialAcceptTriggerKind:qr.Ah,HoverVerbosityAction:qr.M$,FoldingRangeKind:Gr.lO,SelectedSuggestionInfo:Gr.GE};const Pc=Mc.CancellationTokenSource,Fc=Mc.Emitter,Uc=Mc.KeyCode,Hc=Mc.KeyMod,Bc=Mc.Position,Wc=Mc.Range,Vc=Mc.Selection,zc=Mc.SelectionDirection,Gc=Mc.MarkerSeverity,jc=Mc.MarkerTag,Kc=Mc.Uri,Yc=Mc.Token,qc=Mc.editor,$c=Mc.languages,Qc=globalThis.MonacoEnvironment;(Qc?.globalAPI||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Mc),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.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"]});var Xc;i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(11272),i(60352),i(66235),i(31474),i(84840),i(94803),i(74304),i(74800),i(37954),i(25922),i(46648),i(61082),i(19856),i(97884),i(89518),i(83488),i(3254),i(57680),i(99669),i(796),i(89336),i(19436),i(40340),i(52894),i(86492),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(24152),i(42144),i(22362),i(98408),i(61472),i(50576),i(23934);self.MonacoEnvironment=(Xc={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+Xc[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),o=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,o.length)!==o){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var a=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return n}});const Zc=s},80789:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});var s=i(64383);function n(e,t){const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t)}catch(n){return void(0,s.dz)(n)}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(n){return void(0,s.dz)(n)}}},80953:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var s=i(59284);const n=(0,i(69220).om)("spin"),r=s.forwardRef((function(e,t){const{size:i="m",style:r,className:o,qa:a}=e;return s.createElement("div",{ref:t,style:r,className:n({size:i},o),"data-qa":a},s.createElement("div",{className:n("inner")}))}))},81091:(e,t,i)=>{"use strict";var s=i(5662),n=i(34326),r=i(12437),o=i(78209);class a extends r.o{static{this.PREFIX=":"}constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,o.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,s.jG.None}provideWithTextEditor(e,t,i){const r=e.editor,o=new s.Cm;o.add(t.onDidAccept((i=>{const[s]=t.selectedItems;if(s){if(!this.isValidLineNumber(r,s.lineNumber))return;this.gotoLocation(e,{range:this.toRange(s.lineNumber,s.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const c=()=>{const e=this.parsePosition(r,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(r,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(r,e.lineNumber))return void this.clearDecorations(r);const s=this.toRange(e.lineNumber,e.column);r.revealRangeInCenter(s,0),this.addDecorations(r,s)};c(),o.add(t.onDidChangeValue((()=>c())));const l=(0,n.jA)(r);if(l){2===l.getOptions().get(68).renderType&&(l.updateOptions({lineNumbers:"on"}),o.add((0,s.s)((()=>l.updateOptions({lineNumbers:"relative"})))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),s=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:s+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,o.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,o.kg)("gotoLineLabel","Go to line {0}.",t);const s=e.getPosition()||{lineNumber:1,column:1},n=this.lineCount(e);return n>1?(0,o.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",s.lineNumber,s.column,n):(0,o.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",s.lineNumber,s.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const s=this.getModel(e);if(!s)return!1;const n={lineNumber:t,column:i};return s.validatePosition(n).equals(n)}lineCount(e){return this.getModel(e)?.getLineCount()??0}}var c=i(46359),l=i(71597),h=i(80301),d=i(51861),u=i(41234),g=i(31450),p=i(60002),m=i(51467),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};v=f([_(0,h.T)],v);class C extends g.ks{static{this.ID="editor.action.gotoLine"}constructor(){super({id:C.ID,label:d.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(v.PREFIX)}}(0,g.Fl)(C),c.O.as(l.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:d.Hw.gotoLineActionLabel,commandId:C.ID}]})},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>l,gN:()=>c,pJ:()=>d});var s=i(91090);const n="undefined"!==typeof Buffer;new s.d((()=>new Uint8Array(256)));let r;class o{static wrap(e){return n&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return n?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function c(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function l(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function d(e,t){return e[t]}function u(e,t,i){e[i]=t}},81782:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var s=i(74320),n=i(60534);class r extends n.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,s=e.length;i<s;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const s of this._getIntlSegmenterWordsOnLine(e)){if(s.index>t)break;i=s}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const o=new s.qK(10);function a(e,t){const i=`${e}/${t.join(",")}`;let s=o.get(i);return s||(s=new r(e,t),o.set(i,s)),s}},81788:(e,t,i)=>{"use strict";function s(e){return e}i.d(t,{VV:()=>r,o5:()=>n});class n{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},82320:()=>{},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>c,Yb:()=>h,_t:()=>l,vn:()=>o});var s=i(91508),n=i(38566),r=i(27760);function o(e,t,i,o=!0,a){if(e<4)return null;const c=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!c)return null;const l=new r.no(t,c,a);if(i<=1)return{indentation:"",action:null};for(let s=i-1;s>0&&""===t.getLineContent(s);s--)if(1===s)return{indentation:"",action:null};const h=function(e,t,i){const s=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let n,r=-1;for(n=t-1;n>=1;n--){if(e.tokenization.getLanguageIdAtPosition(n,0)!==s)return r;const t=e.getLineContent(n);if(!i.shouldIgnore(n)&&!/^\s+$/.test(t)&&""!==t)return n;r=n}}return-1}(t,i,l);if(h<0)return null;if(h<1)return{indentation:"",action:null};if(l.shouldIncrease(h)||l.shouldIndentNextLine(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:n.l.Indent,line:h}}if(l.shouldDecrease(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:null,line:h}}{if(1===h)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};const e=h-1,i=c.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!l.shouldIndentNextLine(t)){i=t;break}return{indentation:s.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};for(let r=h;r>0;r--){if(l.shouldIncrease(r))return{indentation:s.UU(t.getLineContent(r)),action:n.l.Indent,line:r};if(l.shouldIndentNextLine(r)){let e=0;for(let t=r-1;t>0;t--)if(!l.shouldIndentNextLine(r)){e=t;break}return{indentation:s.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(l.shouldDecrease(r))return{indentation:s.UU(t.getLineContent(r)),action:null,line:r}}return{indentation:s.UU(t.getLineContent(1)),action:null,line:1}}}function a(e,t,i,a,c,l){if(e<4)return null;const h=l.getLanguageConfiguration(i);if(!h)return null;const d=l.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;const u=new r.no(t,d,l),g=o(e,t,a,void 0,l);if(g){const i=g.line;if(void 0!==i){let r=!0;for(let e=i;e<a-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){r=!1;break}if(r){const r=h.onEnter(e,"",t.getLineContent(i),"");if(r){let e=s.UU(t.getLineContent(i));return r.removeText&&(e=e.substring(0,e.length-r.removeText)),r.indentAction===n.l.Indent||r.indentAction===n.l.IndentOutdent?e=c.shiftIndent(e):r.indentAction===n.l.Outdent&&(e=c.unshiftIndent(e)),u.shouldDecrease(a)&&(e=c.unshiftIndent(e)),r.appendText&&(e+=r.appendText),s.UU(e)}}}return u.shouldDecrease(a)?g.action===n.l.Indent?g.indentation:c.unshiftIndent(g.indentation):g.action===n.l.Indent?c.shiftIndent(g.indentation):g.indentation}return null}function c(e,t,i,a,c){if(e<4)return null;const l=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),h=c.getLanguageConfiguration(l).indentRulesSupport;if(!h)return null;t.tokenization.forceTokenization(i.startLineNumber);const d=new r.V(t,c).getProcessedTokenContextAroundRange(i),u=d.afterRangeProcessedTokens,g=d.beforeRangeProcessedTokens,p=s.UU(g.getLineContent()),m=function(e,t,i){const s={tokenization:{getLineTokens:s=>s===t?i:e.tokenization.getLineTokens(s),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:s=>s===t?i.getLineContent():e.getLineContent(s)};return s}(t,i.startLineNumber,g),f=(0,r.WR)(t,i.getStartPosition()),_=t.getLineContent(i.startLineNumber),v=s.UU(_),C=o(e,m,i.startLineNumber+1,void 0,c);if(!C){const e=f?v:p;return{beforeEnter:e,afterEnter:e}}let E=f?v:C.indentation;return C.action===n.l.Indent&&(E=a.shiftIndent(E)),h.shouldDecrease(u.getLineContent())&&(E=a.unshiftIndent(E)),{beforeEnter:f?v:p,afterEnter:E}}function l(e,t,i,a,c,l){const h=e.autoIndent;if(h<4)return null;if((0,r.WR)(t,i.getStartPosition()))return null;const d=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),u=l.getLanguageConfiguration(d).indentRulesSupport;if(!u)return null;const g=new r.V(t,l).getProcessedTokenContextAroundRange(i),p=g.beforeRangeProcessedTokens.getLineContent(),m=g.afterRangeProcessedTokens.getLineContent(),f=p+m,_=p+a+m;if(!u.shouldDecrease(f)&&u.shouldDecrease(_)){const e=o(h,t,i.startLineNumber,!1,l);if(!e)return null;let s=e.indentation;return e.action!==n.l.Indent&&(s=c.unshiftIndent(s)),s}const v=i.startLineNumber-1;if(v>0){const n=t.getLineContent(v);if(u.shouldIndentNextLine(n)&&u.shouldIncrease(_)){const n=o(h,t,i.startLineNumber,!1,l),r=n?.indentation;if(void 0!==r){const n=t.getLineContent(i.startLineNumber),o=s.UU(n),l=c.shiftIndent(r)===o,h=/^\s*$/.test(f),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=d&&d.length>0;if(l&&(u&&h))return r}}}return null}function h(e,t,i){const s=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return s?t<1||t>e.getLineCount()?null:s.getIndentMetadata(e.getLineContent(t)):null}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>o,Rl:()=>u,X5:()=>d,sq:()=>l});var s=i(25890),n=i(74444),r=i(68938);function o(e,t,i){let s=i;return s=a(e,t,s),s=a(e,t,s),s=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let s=0;s<i.length;s++){const r=s>0?i[s-1]:void 0,o=i[s],a=s+1<i.length?i[s+1]:void 0,l=new n.L(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new n.L(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?i[s]=c(o,e,t,l,h):o.seq2Range.isEmpty&&(i[s]=c(o.swap(),t,e,h,l).swap())}return i}(e,t,s),s}function a(e,t,i){if(0===i.length)return i;const s=[];s.push(i[0]);for(let a=1;a<i.length;a++){const o=s[s.length-1];let c=i[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const i=c.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(c.seq1Range.start-a)===e.getElement(c.seq1Range.endExclusive-a)&&t.getElement(c.seq2Range.start-a)===t.getElement(c.seq2Range.endExclusive-a));a++);if(a--,a===i){s[s.length-1]=new r.$8(new n.L(o.seq1Range.start,c.seq1Range.endExclusive-i),new n.L(o.seq2Range.start,c.seq2Range.endExclusive-i));continue}c=c.delta(-a)}s.push(c)}const o=[];for(let a=0;a<s.length-1;a++){const i=s[a+1];let c=s[a];if(c.seq1Range.isEmpty||c.seq2Range.isEmpty){const o=i.seq1Range.start-c.seq1Range.endExclusive;let l;for(l=0;l<o&&(e.isStronglyEqual(c.seq1Range.start+l,c.seq1Range.endExclusive+l)&&t.isStronglyEqual(c.seq2Range.start+l,c.seq2Range.endExclusive+l));l++);if(l===o){s[a+1]=new r.$8(new n.L(c.seq1Range.start+o,i.seq1Range.endExclusive),new n.L(c.seq2Range.start+o,i.seq2Range.endExclusive));continue}l>0&&(c=c.delta(l))}o.push(c)}return s.length>0&&o.push(s[s.length-1]),o}function c(e,t,i,s,n){let r=1;for(;e.seq1Range.start-r>=s.start&&e.seq2Range.start-r>=n.start&&i.isStronglyEqual(e.seq2Range.start-r,e.seq2Range.endExclusive-r)&&r<100;)r++;r--;let o=0;for(;e.seq1Range.start+o<s.endExclusive&&e.seq2Range.endExclusive+o<n.endExclusive&&i.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===r&&0===o)return e;let a=0,c=-1;for(let l=-r;l<=o;l++){const s=e.seq2Range.start+l,n=e.seq2Range.endExclusive+l,r=e.seq1Range.start+l,o=t.getBoundaryScore(r)+i.getBoundaryScore(s)+i.getBoundaryScore(n);o>c&&(c=o,a=l)}return e.delta(a)}function l(e,t,i){const s=[];for(const n of i){const e=s[s.length-1];e?n.seq1Range.start-e.seq1Range.endExclusive<=2||n.seq2Range.start-e.seq2Range.endExclusive<=2?s[s.length-1]=new r.$8(e.seq1Range.join(n.seq1Range),e.seq2Range.join(n.seq2Range)):s.push(n):s.push(n)}return s}function h(e,t,i){const s=r.$8.invert(i,e.length),n=[];let o=new r._3(0,0);function a(i,a){if(i.offset1<o.offset1||i.offset2<o.offset2)return;const c=e.findWordContaining(i.offset1),l=t.findWordContaining(i.offset2);if(!c||!l)return;let h=new r.$8(c,l);const d=h.intersect(a);let u=d.seq1Range.length,g=d.seq2Range.length;for(;s.length>0;){const i=s[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const n=e.findWordContaining(i.seq1Range.start),o=t.findWordContaining(i.seq2Range.start),a=new r.$8(n,o),c=a.intersect(i);if(u+=c.seq1Range.length,g+=c.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;s.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&n.push(h),o=h.getEndExclusives()}for(;s.length>0;){const e=s.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const s=e[0],n=t[0];let r;r=s&&(!n||s.seq1Range.start<n.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=r.seq1Range.start?i[i.length-1]=i[i.length-1].join(r):i.push(r)}return i}(i,n)}function d(e,t,i){let s=i;if(0===s.length)return s;let r,o=0;do{r=!1;const a=[s[0]];for(let c=1;c<s.length;c++){const l=s[c],h=a[a.length-1];function d(t,i){const s=new n.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(s).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}d(h,l)?(r=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}s=a}while(o++<10&&r);return s}function u(e,t,i){let o=i;if(0===o.length)return o;let a,c=0;do{a=!1;const h=[o[0]];for(let d=1;d<o.length;d++){const u=o[d],g=h[h.length-1];function p(i,s){const r=new n.L(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),c=i.seq1Range.length,l=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,d=e.countLinesIn(s.seq1Range),p=s.seq1Range.length,m=t.countLinesIn(s.seq2Range),f=s.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+c),1.5)+Math.pow(_(40*l+h),1.5),1.5)+Math.pow(Math.pow(_(40*d+p),1.5)+Math.pow(_(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}o=h}while(c++<10&&a);const l=[];return(0,s.kj)(o,((t,i,s)=>{let o=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const c=e.extendToFullLines(i.seq1Range),h=e.getText(new n.L(c.start,i.seq1Range.start));a(h)&&(o=o.deltaStart(-h.length));const d=e.getText(new n.L(i.seq1Range.endExclusive,c.endExclusive));a(d)&&(o=o.deltaEnd(d.length));const u=r.$8.fromOffsetPairs(t?t.getEndExclusives():r._3.zero,s?s.getStarts():r._3.max),g=o.intersect(u);l.length>0&&g.getStarts().equals(l[l.length-1].getEndExclusives())?l[l.length-1]=l[l.length-1].join(g):l.push(g)})),l}},82560:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(10902).then(i.bind(i,10902))})},83069:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,s=0|t.lineNumber;if(i===s){return(0|e.column)-(0|t.column)}return i-s}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},83488:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(54678).then(i.bind(i,54678))})},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>c,Of:()=>r,r0:()=>o,rr:()=>a});var s=i(78209);class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=i(r);if(null===o)return null;s[n]=l(r,o,this.modifierLabels[e])}return s.join(" ")}}const r=new n({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),o=new n({ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:s.kg({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new n({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),c=new n({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function l(e,t,i){if(null===t)return"";const s=[];return e.ctrlKey&&s.push(i.ctrlKey),e.shiftKey&&s.push(i.shiftKey),e.altKey&&s.push(i.altKey),e.metaKey&&s.push(i.metaKey),""!==t&&s.push(t),s.join(i.separator)}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>ae,SV:()=>ce,aj:()=>oe});const{entries:s,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:c,seal:l,create:h}=Object,{apply:d,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e){return e}),l||(l=function(e){return e}),d||(d=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const g=L(Array.prototype.forEach),p=L(Array.prototype.pop),m=L(Array.prototype.push),f=L(String.prototype.toLowerCase),_=L(String.prototype.toString),v=L(String.prototype.match),C=L(String.prototype.replace),E=L(String.prototype.indexOf),b=L(String.prototype.trim),S=L(Object.prototype.hasOwnProperty),y=L(RegExp.prototype.test),w=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(R,t)});var R;function L(e){return function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return d(e,t,s)}}function T(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;n&&n(e,null);let s=t.length;for(;s--;){let n=t[s];if("string"===typeof n){const e=i(n);e!==n&&(r(t)||(t[s]=e),n=e)}e[n]=!0}return e}function x(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function k(e){const t=h(null);for(const[i,n]of s(e)){S(e,i)&&(Array.isArray(n)?t[i]=x(n):n&&"object"===typeof n&&n.constructor===Object?t[i]=k(n):t[i]=n)}return t}function A(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return L(i.get);if("function"===typeof i.value)return L(i.value)}e=o(e)}return function(){return null}}const N=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=c(["#text"]),U=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=l(/<%[\w\W]*|[\w\W]*%>/gm),G=l(/\${[\w\W]*}/gm),j=l(/^data-[\-\w.\u00B7-\uFFFF]/),K=l(/^aria-[\-\w]+$/),Y=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=l(/^(?:\w+script|data):/i),$=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=l(/^html$/i),X=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:z,TMPLIT_EXPR:G,DATA_ATTR:j,ARIA_ATTR:K,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:X});const J=1,ee=3,te=7,ie=8,se=9,ne=function(){return"undefined"===typeof window?null:window};var re=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const i=t=>e(t);if(i.version="3.1.7",i.removed=[],!t||!t.document||t.document.nodeType!==se)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:R,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:V,trustedTypes:z}=t,G=u.prototype,j=A(G,"cloneNode"),K=A(G,"remove"),q=A(G,"nextSibling"),$=A(G,"childNodes"),X=A(G,"parentNode");if("function"===typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,oe="";const{implementation:ae,createNodeIterator:ce,createDocumentFragment:le,getElementsByTagName:he}=n,{importNode:de}=r;let ue={};i.isSupported="function"===typeof s&&"function"===typeof X&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:pe,TMPLIT_EXPR:me,DATA_ATTR:fe,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:Ee}=Z;let{IS_ALLOWED_URI:be}=Z,Se=null;const ye=T({},[...N,...I,...O,...M,...F]);let we=null;const Re=T({},[...U,...H,...B,...W]);let Le=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,ke=!0,Ae=!0,Ne=!1,Ie=!0,Oe=!1,De=!0,Me=!1,Pe=!1,Fe=!1,Ue=!1,He=!1,Be=!1,We=!0,Ve=!1,ze=!0,Ge=!1,je={},Ke=null;const Ye=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=T({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,it=!1,st=null;const nt=T({},[Ze,Je,et],_);let rt=null;const ot=["application/xhtml+xml","text/html"];let at=null,ct=null;const lt=n.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"===typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?_:f,Se=S(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):ye,we=S(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Re,st=S(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,_):nt,Qe=S(e,"ADD_URI_SAFE_ATTR")?T(k(Xe),e.ADD_URI_SAFE_ATTR,at):Xe,qe=S(e,"ADD_DATA_URI_TAGS")?T(k($e),e.ADD_DATA_URI_TAGS,at):$e,Ke=S(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ye,Te=S(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},xe=S(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,Le=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ae=!1),He&&(Ue=!0),je&&(Se=T({},F),we=[],!0===je.html&&(T(Se,N),T(we,U)),!0===je.svg&&(T(Se,I),T(we,H),T(we,W)),!0===je.svgFilters&&(T(Se,O),T(we,H),T(we,W)),!0===je.mathMl&&(T(Se,M),T(we,B),T(we,W))),e.ADD_TAGS&&(Se===ye&&(Se=k(Se)),T(Se,e.ADD_TAGS,at)),e.ADD_ATTR&&(we===Re&&(we=k(we)),T(we,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T(Qe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ke===Ye&&(Ke=k(Ke)),T(Ke,e.FORBID_CONTENTS,at)),ze&&(Se["#text"]=!0),Me&&T(Se,["html","head","body"]),Se.table&&(T(Se,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,oe=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(i=t.getAttribute(s));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(z,o)),null!==re&&"string"===typeof oe&&(oe=re.createHTML(""));c&&c(e),ct=e}},ut=T({},["mi","mo","mn","ms","mtext"]),gt=T({},["annotation-xml"]),pt=T({},["title","style","font","a","script"]),mt=T({},[...I,...O,...D]),ft=T({},[...M,...P]),_t=function(e){m(i.removed,{element:e});try{X(e).removeChild(e)}catch(t){K(e)}},vt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(s){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ue||He)try{_t(t)}catch(s){}else try{t.setAttribute(e,"")}catch(s){}},Ct=function(e){let t=null,i=null;if(Fe)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===rt&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=re?re.createHTML(e):e;if(tt===et)try{t=(new V).parseFromString(s,rt)}catch(o){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=it?oe:s}catch(o){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),tt===et?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:r},Et=function(e){return ce.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof L)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof d&&e instanceof d},yt=function(e,t,s){ue[e]&&g(ue[e],(e=>{e.call(i,t,s,ct)}))},wt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),bt(e))return _t(e),!0;const s=at(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:s,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return _t(e),!0;if(e.nodeType===te)return _t(e),!0;if(De&&e.nodeType===ie&&y(/<[/\w]/g,e.data))return _t(e),!0;if(!Se[s]||Te[s]){if(!Te[s]&&Lt(s)){if(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,s))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(s))return!1}if(ze&&!Ke[s]){const t=X(e)||e.parentNode,i=$(e)||e.childNodes;if(i&&t){for(let s=i.length-1;s>=0;--s){const n=j(i[s],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,q(e))}}}return _t(e),!0}return e instanceof u&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const i=f(e.tagName),s=f(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===i:t.namespaceURI===Ze?"svg"===i&&("annotation-xml"===s||ut[s]):Boolean(mt[i]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===i:t.namespaceURI===Je?"math"===i&>[s]:Boolean(ft[i]):e.namespaceURI===et?!(t.namespaceURI===Je&&!gt[s])&&!(t.namespaceURI===Ze&&!ut[s])&&!ft[i]&&(pt[i]||!mt[i]):!("application/xhtml+xml"!==rt||!st[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===ee&&(t=e.textContent,g([ge,pe,me],(e=>{t=C(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Rt=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in n||i in lt))return!1;if(Ae&&!xe[t]&&y(fe,t));else if(ke&&y(_e,t));else if(!we[t]||xe[t]){if(!(Lt(e)&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&y(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&y(Le.tagNameCheck,i)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(i))))return!1}else if(Qe[t]);else if(y(be,C(i,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(i,"data:")||!qe[e]){if(Ne&&!y(ve,C(i,Ce,"")));else if(i)return!1}else;return!0},Lt=function(e){return"annotation-xml"!==e&&v(e,Ee)},Tt=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};let n=t.length;for(;n--;){const o=t[n],{name:a,namespaceURI:c,value:l}=o,h=at(a);let d="value"===a?l:b(l);if(s.attrName=h,s.attrValue=d,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),d=s.attrValue,s.forceKeepAttr)continue;if(vt(a,e),!s.keepAttr)continue;if(!Ie&&y(/\/>/i,d)){vt(a,e);continue}Oe&&g([ge,pe,me],(e=>{d=C(d,e," ")}));const u=at(e.nodeName);if(Rt(u,h,d))if(!Ve||"id"!==h&&"name"!==h||(vt(a,e),d="user-content-"+d),De&&y(/((--!?|])>)|<\/(style|title)/i,d))vt(a,e);else{if(re&&"object"===typeof z&&"function"===typeof z.getAttributeType)if(c);else switch(z.getAttributeType(u,h)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}try{c?e.setAttributeNS(c,a,d):e.setAttribute(a,d),bt(e)?_t(e):p(i.removed)}catch(r){}}}yt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const s=Et(t);for(yt("beforeSanitizeShadowDOM",t,null);i=s.nextNode();)yt("uponSanitizeShadowNode",i,null),wt(i)||(i.content instanceof a&&e(i.content),Tt(i));yt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,n=null,o=null,c=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw w("toString is not a function");if("string"!==typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Pe||dt(t),i.removed=[],"string"===typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=at(e.nodeName);if(!Se[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=Ct("\x3c!----\x3e"),n=s.ownerDocument.importNode(e,!0),n.nodeType===J&&"BODY"===n.nodeName||"HTML"===n.nodeName?s=n:s.appendChild(n);else{if(!Ue&&!Oe&&!Me&&-1===e.indexOf("<"))return re&&Be?re.createHTML(e):e;if(s=Ct(e),!s)return Ue?null:Be?oe:""}s&&Fe&&_t(s.firstChild);const l=Et(Ge?e:s);for(;o=l.nextNode();)wt(o)||(o.content instanceof a&&xt(o.content),Tt(o));if(Ge)return e;if(Ue){if(He)for(c=le.call(s.ownerDocument);s.firstChild;)c.appendChild(s.firstChild);else c=s;return(we.shadowroot||we.shadowrootmode)&&(c=de.call(r,c,!0)),c}let h=Me?s.outerHTML:s.innerHTML;return Me&&Se["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&y(Q,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),Oe&&g([ge,pe,me],(e=>{h=C(h,e," ")})),re&&Be?re.createHTML(h):h},i.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},i.clearConfig=function(){ct=null,Pe=!1},i.isValidAttribute=function(e,t,i){ct||dt({});const s=at(e),n=at(t);return Rt(s,n,i)},i.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},i.removeHook=function(e){if(ue[e])return p(ue[e])},i.removeHooks=function(e){ue[e]&&(ue[e]=[])},i.removeAllHooks=function(){ue={}},i}();re.version,re.isSupported;const oe=re.sanitize,ae=(re.setConfig,re.clearConfig,re.isValidAttribute,re.addHook),ce=re.removeHook;re.removeHooks,re.removeAllHooks},83823:(e,t,i)=>{e.exports=function(e){const t=i(94297),s={string:null,"yql.string":null};function n(e,t){const i=e[0],n=t[0];return(Object.prototype.hasOwnProperty.call(s,i.$type)&&Object.prototype.hasOwnProperty.call(s,n.$type)&&i.$value)>n.$value?1:-1}return function(i,s,r){let o=i.slice().sort(n);const a=s.limitMapLength>0&&i.length>s.limitMapLength;return a&&(o=o.slice(0,s.limitMapLength-1)),o.map((function(i){let n="";return n+=e(i[0],s,r+1),n+=t.getKeyValueSeparator(s),n+=e(i[1],s,r+1),n})).concat(a?["... "+(i.length-s.limitMapLength+1)+" hidden keys"]:[]).join(t.getExpressionTerminator(s)+t.getIndent(s,r))}}},83844:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>h,Fd:()=>g,Gu:()=>d,HP:()=>u,Hz:()=>E,JO:()=>v,a:()=>_,e$:()=>f,oG:()=>b,x1:()=>m,yL:()=>C});var s=i(66782),n=i(90766),r=i(47661),o=i(41234),a=i(78748),c=i(46359),l=i(78209);function h(e){return`--vscode-${e.replace(/\./g,"-")}`}function d(e){return`var(${h(e)})`}function u(e,t){return`var(${h(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};const p=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,s=!1,n){const r={id:e,description:i,defaults:t,needsTransparency:s,deprecationMessage:n};this.colorsById[e]=r;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return n&&(o.deprecationMessage=n),s&&(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=l.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:i,oneOf:[o,{type:"string",const:"default",description:l.kg("useDefault","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){const i=this.colorsById[e];if(i?.defaults){return S(null!==(s=i.defaults)&&"object"===typeof s&&"light"in s&&"dark"in s?i.defaults[t.type]:i.defaults,t)}var s}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,s=-1===t.indexOf(".")?0:1;return i!==s?i-s:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,s,n){return p.registerColor(e,t,i,s,n)}function f(e,t){return{op:0,value:e,factor:t}}function _(e,t){return{op:1,value:e,factor:t}}function v(e,t){return{op:2,value:e,factor:t}}function C(...e){return{op:4,values:e}}function E(e,t,i){return{op:6,if:e,then:t,else:i}}function b(e,t,i,s){return{op:5,value:e,background:t,factor:i,transparency:s}}function S(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r.Q1.fromHex(e):t.getColor(e):e instanceof r.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return S(e.value,t)?.darken(e.factor);case 1:return S(e.value,t)?.lighten(e.factor);case 2:return S(e.value,t)?.transparent(e.factor);case 3:{const i=S(e.background,t);return i?S(e.value,t)?.makeOpaque(i):S(e.value,t)}case 4:for(const i of e.values){const e=S(i,t);if(e)return e}return;case 6:return S(t.defines(e.if)?e.then:e.else,t);case 5:{const i=S(e.value,t);if(!i)return;const s=S(e.background,t);return s?i.isDarkerThan(s)?r.Q1.getLighterColor(i,s,e.factor).transparent(e.transparency):r.Q1.getDarkerColor(i,s,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.xb)(e)}}(e,t):void 0}c.O.add(g.ColorContribution,p);const y="vscode://schemas/workbench-colors",w=c.O.as(a.F.JSONContribution);w.registerSchema(y,p.getColorSchema());const R=new n.uC((()=>w.notifySchemaChanged(y)),200);p.onDidChangeSchema((()=>{R.isScheduled()||R.schedule()}))},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>c,vH:()=>l});var s=i(78209),n=i(41234),r=i(46359),o=i(44320),a=i(1646);const c=new class{constructor(){this._onDidChangeLanguages=new n.vl,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}};r.O.add("editor.modesRegistry",c);const l="plaintext";c.registerLanguage({id:l,extensions:[".txt"],aliases:[s.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),r.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},83993:(e,t,i)=>{"use strict";i.d(t,{uP:()=>h,F1:()=>o});class s{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var n=i(85600);class r{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i<s;i++)t[i]=e.charCodeAt(i);return t}}function o(e,t,i){return new h(new r(e),new r(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class c{static Copy(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}static Copy2(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}}class l{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new s(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,n,r]=h._getElements(e),[o,a,c]=h._getElements(t);this._hasStrings=r&&c,this._originalStringElements=s,this._originalElementsOrHash=n,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,s=t.length;i<s;i++)e[i]=(0,n.e2)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,s,n){const r=[!1];let o=this.ComputeDiffRecursive(e,t,i,s,r);return n&&(o=this.PrettifyChanges(o)),{quitEarly:r[0],changes:o}}ComputeDiffRecursive(e,t,i,n,r){for(r[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new s(e,0,i,n-i+1)]):e<=t?(a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new s(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],c=[0],l=this.ComputeRecursionPoint(e,t,i,n,o,c,r),h=o[0],d=c[0];if(null!==l)return l;if(!r[0]){const o=this.ComputeDiffRecursive(e,h,i,d,r);let a=[];return a=r[0]?[new s(h+1,t-(h+1)+1,d+1,n-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,n,r),this.ConcatenateChanges(o,a)}return[new s(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,a,c,h,d,u,g,p,m,f,_,v,C){let E=null,b=null,S=new l,y=t,w=i,R=p[0]-_[0]-n,L=-1073741824,T=this.m_forwardHistory.length-1;do{const t=R+e;t===y||t<w&&h[t-1]<h[t+1]?(m=(u=h[t+1])-R-n,u<L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m),R=t+1-e):(m=(u=h[t-1]+1)-R-n,u<L&&S.MarkNextChange(),L=u-1,S.AddOriginalElement(u,m+1),R=t-1-e),T>=0&&(e=(h=this.m_forwardHistory[T])[0],y=1,w=h.length-1)}while(--T>=-1);if(E=S.getReverseChanges(),C[0]){let e=p[0]+1,t=_[0]+1;if(null!==E&&E.length>0){const i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}b=[new s(e,g-e+1,t,f-t+1)]}else{S=new l,y=o,w=a,R=p[0]-_[0]-c,L=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=R+r;e===y||e<w&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-R-c,u>L&&S.MarkNextChange(),L=u+1,S.AddOriginalElement(u+1,m+1),R=e+1-r):(m=(u=d[e-1])-R-c,u>L&&S.MarkNextChange(),L=u,S.AddModifiedElement(u+1,m+1),R=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],y=1,w=d.length-1)}while(--T>=-1);b=S.getChanges()}return this.ConcatenateChanges(E,b)}ComputeRecursionPoint(e,t,i,n,r,o,a){let l=0,h=0,d=0,u=0,g=0,p=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),C=n-i,E=t-e,b=e-i,S=t-n,y=(E-C)%2===0;_[C]=e,v[E]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,R=0;d=this.ClipDiagonalBound(C-w,w,C,f),u=this.ClipDiagonalBound(C+w,w,C,f);for(let e=d;e<=u;e+=2){l=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=l-(e-C)-b;const i=l;for(;l<t&&h<n&&this.ElementsAreEqual(l+1,h+1);)l++,h++;if(_[e]=l,l+h>m+R&&(m=l,R=h),!y&&Math.abs(e-E)<=w-1&&l>=v[e])return r[0]=l,o[0]=h,i<=v[e]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}const L=(m-e+(R-i)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,r[0]=m,o[0]=R,L>0&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):(e++,i++,[new s(e,t-e+1,i,n-i+1)]);g=this.ClipDiagonalBound(E-w,w,E,f),p=this.ClipDiagonalBound(E+w,w,E,f);for(let s=g;s<=p;s+=2){l=s===g||s<p&&v[s-1]>=v[s+1]?v[s+1]-1:v[s-1],h=l-(s-E)-S;const c=l;for(;l>e&&h>i&&this.ElementsAreEqual(l,h);)l--,h--;if(v[s]=l,y&&Math.abs(s-C)<=w&&l<=_[s])return r[0]=l,o[0]=h,c>=_[s]&&w<=1448?this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a):null}if(w<=1447){let e=new Int32Array(u-d+2);e[0]=C-d+1,c.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=E-g+1,c.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(C,d,u,b,E,g,p,S,_,v,l,t,r,h,n,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],s=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,n=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength<s&&i.modifiedStart+i.modifiedLength<n&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!o||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let s=0,n=0;if(t>0){const i=e[t-1];s=i.originalStart+i.originalLength,n=i.modifiedStart+i.modifiedLength}const r=i.originalLength>0,o=i.modifiedLength>0;let a=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,l=i.modifiedStart-e;if(t<s||l<n)break;if(r&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+i.modifiedLength))break;const h=(t===s&&l===n?5:0)+this._boundaryScore(t,i.originalLength,l,i.modifiedLength);h>c&&(c=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const l=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],l)&&(e[t-1]=l[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const i=e[t-1],s=e[t],n=s.originalStart-i.originalStart-i.originalLength,r=i.originalStart,o=s.originalStart+s.originalLength,a=o-r,c=i.modifiedStart,l=s.modifiedStart+s.modifiedLength,h=l-c;if(n<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(r,a,c,h,n);if(e){const[t,r]=e;t===i.originalStart+i.originalLength&&r===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=r-i.modifiedStart,s.originalStart=t+n,s.modifiedStart=r+n,s.originalLength=o-s.originalStart,s.modifiedLength=l-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,s,n){if(t<n||s<n)return null;const r=e+t-n+1,o=i+s-n+1;let a=0,c=0,l=0;for(let h=e;h<r;h++)for(let e=i;e<o;e++){const t=this._contiguousSequenceScore(h,e,n);t>0&&t>a&&(a=t,c=h,l=e)}return a>0?[c,l]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let n=0;n<i;n++){if(!this.ElementsAreEqual(e+n,t+n))return 0;s+=this._originalStringElements[e+n].length}return s}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,s)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return c.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],c.Copy(t,1,s,e.length,t.length-1),s}{const i=new Array(e.length+t.length);return c.Copy(e,0,i,0,e.length),c.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new s(n,r,o,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e<s)return e;const n=t%2===0;if(e<0){return n===(i%2===0)?0:1}return n===((s-i-1)%2===0)?s-1:s-2}}},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>l,ad:()=>n,gD:()=>c,iB:()=>o,kW:()=>r,pG:()=>s});const s=(0,i(63591).u1)("configurationService");function n(e,t){const i=Object.create(null);for(const s in e)r(i,s,e[s],t);return i}function r(e,t,i,s){const n=t.split("."),r=n.pop();let o=e;for(let c=0;c<n.length;c++){const e=n[c];let i=o[e];switch(typeof i){case"undefined":i=o[e]=Object.create(null);break;case"object":if(null===i)return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is null`);break;default:return void s(`Ignoring ${t} as ${n.slice(0,c+1).join(".")} is ${JSON.stringify(i)}`)}o=i}if("object"===typeof o&&null!==o)try{o[r]=i}catch(a){s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function o(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const s=e[i];"object"!==typeof s||Array.isArray(s)||(a(s,t),0===Object.keys(s).length&&delete e[i])}}else delete e[i]}function c(e,t,i){const s=function(e,t){let i=e;for(const s of t){if("object"!==typeof i||null===i)return;i=i[s]}return i}(e,t.split("."));return"undefined"===typeof s?i:s}function l(e){return e.replace(/[\[\]]/g,"")}},84040:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},84084:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var s=i(25890),n=i(94650),r=i(19131);function o(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new s.j3(c(e)),o=c(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let l=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return l&&e.unshift(l),e}const t=[];for(;l&&!(0,r.Vh)(e);){const[s,n]=l.splitAt(e);t.push(s),e=(0,r.MS)(s.lengthAfter,e),l=n??i.dequeue()}return(0,r.Vh)(e)||t.push(new a(!1,e,e)),t}const d=[];function u(e,t,i){if(d.length>0&&(0,r.wP)(d[d.length-1].endOffset,e)){const e=d[d.length-1];d[d.length-1]=new n.c(e.startOffset,t,(0,r.QB)(e.newLength,i))}else d.push({startOffset:e,endOffset:t,newLength:i})}let g=r.Vp;for(const s of o){const e=h(s.lengthBefore);if(s.modified){const t=(0,r.pW)(e,(e=>e.lengthBefore)),i=(0,r.QB)(g,t);u(g,i,s.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,r.QB)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return d}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,r.MS)(e,this.lengthAfter);return(0,r.wP)(t,r.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,r.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,r.l4)(this.lengthBefore)} -> ${(0,r.l4)(this.lengthAfter)}`}}function c(e){const t=[];let i=r.Vp;for(const s of e){const e=(0,r.MS)(i,s.startOffset);(0,r.Vh)(e)||t.push(new a(!1,e,e));const n=(0,r.MS)(s.startOffset,s.endOffset);t.push(new a(!0,n,s.newLength)),i=s.endOffset}return t}},84226:(e,t,i)=>{"use strict";i.d(t,{zn:()=>O,x2:()=>D,j6:()=>U,RL:()=>P,zl:()=>V,n6:()=>z,z0:()=>H,_X:()=>B,e3:()=>W});var s=i(8597),n=i(11799),r=i(36921),o=i(10350),a=i(25689),c=i(47661),l=i(41234),h=i(10146),d=i(31450),u=i(80301),g=i(29163),p=i(92403),m=i(96032),f=i(5662),_=i(36677),v=i(87289);const C=new c.Q1(new c.bU(0,122,204)),E={showArrow:!0,showFrame:!0,className:"",frameColor:C,arrowColor:C,keepEditorSelection:!1};class b{constructor(e,t,i,s,n,r,o,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=s,this.showInHiddenAreas=o,this.ordinal=a,this._onDomNodeTop=n,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class S{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class y{static{this._IdGenerator=new m.n(".arrow-decoration-")}constructor(e){this._editor=e,this._ruleName=y._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),s.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){s.U2(this._ruleName),s.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}class w{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.Go(t),h.co(this.options,E,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new y(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash?.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.Q.isIRange(e)?_.Q.lift(e):_.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.kI.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow?.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),s=this.editor.getLayoutInfo(),n=this._getWidth(s);this.domNode.style.width=`${n}px`,this.domNode.style.left=this._getLeft(s)+"px";const r=document.createElement("div");r.style.overflow="hidden";const o=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,e)}let a=0,c=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(o/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(o/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new b(r,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new S("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const l=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=l+"px",this.container.style.overflow="hidden"),this._doLayout(l,n),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),s=i<0?Math.ceil(i):Math.floor(i),n=e.heightInLines+s;n>5&&n<35&&this._relayout(n)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var R=i(78209),L=i(57629),T=i(32848),x=i(14718),k=i(63591),A=i(66261),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=(0,k.u1)("IPeekViewService");var D;(0,x.v)(O,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new T.N1("inReferenceSearchEditor",!0,R.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(D||(D={}));let M=class{static{this.ID="editor.contrib.referenceController"}constructor(e,t){e instanceof g.t&&D.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.T).getFocusedCodeEditor();return t instanceof g.t?t.getParentEditor():t}M=N([I(1,T.fN)],M),(0,d.HW)(M.ID,M,0);const F={headerBackgroundColor:c.Q1.white,primaryHeadingColor:c.Q1.fromHex("#333333"),secondaryHeadingColor:c.Q1.fromHex("#6c6c6cb3")};let U=class extends w{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,h.co(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=s.$(".head"),this._bodyElement=s.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=s.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),s.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),s.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=s.$("span.filename"),this._secondaryHeading=s.$("span.dirname"),this._metaHeading=s.$("span.meta"),s.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=s.$(".peekview-actions");s.BC(this._headElement,i);const c=this._getActionBarOptions();this._actionbarWidget=new n.E(i,c),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.rc("peekview.close",R.kg("label.close","Close"),a.L.asClassName(o.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:L.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:s.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,s.WU(this._metaHeading)):s.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),s=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(s,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};U=N([I(2,k._Y)],U);const H=(0,A.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewTitleBackground","Background color of the peek view title area.")),B=(0,A.x1A)("peekViewTitleLabel.foreground",{dark:c.Q1.white,light:c.Q1.black,hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewTitleForeground","Color of the peek view title.")),W=(0,A.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},R.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),V=(0,A.x1A)("peekView.border",{dark:A.pOz,light:A.pOz,hcDark:A.b1q,hcLight:A.b1q},R.kg("peekViewBorder","Color of the peek view borders and arrow.")),z=(0,A.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewResultsBackground","Background color of the peek view result list.")),G=((0,A.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.fileForeground",{dark:c.Q1.white,light:"#1E1E1E",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},R.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionForeground",{dark:c.Q1.white,light:"#6C6C6C",hcDark:c.Q1.white,hcLight:A.By2},R.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:c.Q1.black,hcLight:c.Q1.white},R.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,A.x1A)("peekViewEditorGutter.background",G,R.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,A.x1A)("peekViewEditorStickyScroll.background",G,R.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,A.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},R.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,A.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},R.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,A.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:A.buw,hcLight:A.buw},R.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},84316:e=>{e.exports=function(){function e(e){const t=864e5*Number(e.$value),i=new Date(t),s=i.getFullYear();return s<=0&&i.setFullYear(s-1),isNaN(i.valueOf())?"Invalid date":i.toISOString().split("T")[0]}return e.isScalar=!0,e}},84325:(e,t,i)=>{"use strict";var s,n=i(8597),r=i(47661),o=i(5662),a=i(31450),c=i(62083),l=i(25982),h=i(20788),d=i(10154),u=i(24520),g=i(51861),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends o.jG{static{s=this}static{this.ID="editor.contrib.inspectTokens"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(c.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f=s=p([m(1,u.L),m(2,d.L)],f);class _ extends a.ks{constructor(){super({id:"editor.action.inspectTokens",label:g.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);i?.launch()}}class v extends o.jG{static{this._ID="editor.contrib.inspectTokensWidget"}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=c.dG.get(t);if(i)return i;const s=e.encodeLanguageId(t);return{getInitialState:()=>h.r3,tokenize:(e,i,s)=>(0,h.$H)(t,s),tokenizeEncoded:(e,t,i)=>(0,h.Lh)(s,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const s=t.tokens1[n];if(e.column-1>=s.offset){i=n;break}}let s=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){s=n;break}const o=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,s=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;a=o.substring(e,s)}(0,n.Ln)(this._domNode,(0,n.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);switch(s){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(s)}}return t}(a),(0,n.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const c=1+(s<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(s<<1)]):null;(0,n.BC)(this._domNode,(0,n.$)("table.tm-metadata-table",void 0,(0,n.$)("tbody",void 0,(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"language"),(0,n.$)("td.tm-metadata-value",void 0,`${c?c.languageId:"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"token type"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._tokenTypeToString(c.tokenType):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"font style"),(0,n.$)("td.tm-metadata-value",void 0,`${c?this._fontStyleToString(c.fontStyle):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"foreground"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.foreground):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"background"),(0,n.$)("td.tm-metadata-value",void 0,`${c?r.Q1.Format.CSS.formatHex(c.background):"-?-"}`))))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,n.BC)(this._domNode,(0,n.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=c.dG.getColorMap(),i=l.x.getLanguageId(e),s=l.x.getTokenType(e),n=l.x.getFontStyle(e),r=l.x.getForeground(e),o=l.x.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:s,fontStyle:n,foreground:t[r],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),s=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:s.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}(0,a.HW)(f.ID,f,4),(0,a.Fl)(_)},84565:(e,t,i)=>{"use strict";var s,n;i.d(t,{Lx:()=>n,Yo:()=>s,jh:()=>r,y2:()=>o}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(n||(n={}));class r extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class o{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}}},84585:(e,t,i)=>{"use strict";i.d(t,{K:()=>n,r:()=>s});const s="editor.semanticHighlighting";function n(e,t,i){const n=i.getValue(s,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"===typeof n?n:t.getColorTheme().semanticHighlighting}},84739:(e,t,i)=>{"use strict";var s;i.d(t,{N6:()=>s,TH:()=>n,pv:()=>r}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(s||(s={}));class n{constructor(e,t,i,s,n,r){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=s,this.forWrappedLinesAfterColumn=n,this.forWrappedLinesBeforeOrAtColumn=r,-1!==e===(-1!==t))throw new Error}}class r{constructor(e,t){this.top=e,this.endColumn=t}}},84840:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(734).then(i.bind(i,734))})},85117:(e,t,i)=>{"use strict";var s,n=i(25890),r=i(90766),o=i(18447),a=i(47661),c=i(64383),l=i(41234),h=i(5662),d=i(91508),u=i(79400),g=i(31450),p=i(80301),m=i(83069),f=i(36677),_=i(60002),v=i(87289),C=i(17469),E=i(78209),b=i(32848),S=i(56942),y=i(66261),w=i(32500),R=i(78381),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=new b.N1("LinkedEditingInputVisible",!1);let k=class extends h.jG{static{s=this}static{this.ID="editor.contrib.linkedEditing"}static{this.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"})}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this.languageConfigurationService=s,this._syncRangesToken=0,this._localToDispose=this._register(new h.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=x.bindTo(t),this._debounceInformation=n.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(94))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const s=new r.ve(this._debounceInformation.get(t)),n=()=>{this._rangeUpdateTriggerPromise=s.trigger((()=>this.updateRanges()),this._debounceDuration??this._debounceInformation.get(t))},o=new r.ve(0),a=e=>{this._rangeSyncTriggerPromise=o.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{n()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}n()}))),this._localToDispose.add({dispose:()=>{s.dispose(),o.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const s=t.getValueInRange(i);if(this._currentWordPattern){const e=s.match(this._currentWordPattern);if((e?e[0].length:0)!==s.length)return this.clearRanges()}const n=[];for(let r=1,o=this._currentDecorations.length;r<o;r++){const e=this._currentDecorations.getRange(r);if(e)if(e.startLineNumber!==e.endLineNumber)n.push({range:e,text:s});else{let i=t.getValueInRange(e),r=s,o=e.startColumn,a=e.endColumn;const c=d.Qp(i,r);o+=c,i=i.substr(c),r=r.substr(c);const l=d.Vi(i,r);a-=l,i=i.substr(0,i.length-l),r=r.substr(0,r.length-l),o===a&&0===r.length||n.push({range:new f.Q(e.startLineNumber,o,e.endLineNumber,a),text:r})}}if(0!==n.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",n),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const r=this._currentRequestCts=new o.Qi;try{const e=new R.W(!1),o=await I(this._providers,i,t,r.token);if(this._debounceInformation.update(i,e.elapsed()),r!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let a=[];o?.ranges&&(a=o.ranges),this._currentWordPattern=o?.wordPattern||this._languageWordPattern;let c=!1;for(let i=0,s=a.length;i<s;i++)if(f.Q.containsPosition(a[i],t)){if(c=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!c)return void this.clearRanges();const l=a.map((e=>({range:e,options:s.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(l),this._syncRangesToken++}catch(a){(0,c.MB)(a)||(0,c.dz)(a),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}};k=s=L([T(1,b.fN),T(2,S.ILanguageFeaturesService),T(3,C.JZ),T(4,w.ILanguageFeatureDebounceService)],k);class A extends g.ks{constructor(){super({id:"editor.action.linkedEditing",label:E.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:b.M$.and(_.R.writable,_.R.hasRenameProvider),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return u.r.isUri(s)&&m.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),c.dz):super.runCommand(e,t)}run(e,t){const i=k.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const N=g.DX.bindToContribution(k.get);function I(e,t,i,s){const o=e.ordered(t);return(0,r.$1)(o.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,s)}catch(n){return void(0,c.M_)(n)}})),(e=>!!e&&n.EI(e?.ranges)))}(0,g.E_)(new N({id:"cancelLinkedEditingInput",precondition:x,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,y.x1A)("editor.linkedEditingBackground",{dark:a.Q1.fromHex("#f00").transparent(.3),light:a.Q1.fromHex("#f00").transparent(.3),hcDark:a.Q1.fromHex("#f00").transparent(.3),hcLight:a.Q1.white},E.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:s}=e.get(S.ILanguageFeaturesService);return I(s,t,i,o.XO.None)})),(0,g.HW)(k.ID,k,1),(0,g.Fl)(A)},85152:(e,t,i)=>{"use strict";function s(e){return e<0?0:e>255?255:0|e}function n(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>s,j:()=>n})},85283:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 01-1.06 0l-2.5-2.5a.75.75 0 011.06-1.06l1.22 1.22V1.75a.75.75 0 011.5 0v7.69l1.22-1.22a.75.75 0 111.06 1.06zM1.75 13.5a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5z",clipRule:"evenodd"})))}},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,q:()=>c});var s=i(42731),n=i(17799),r=i(44320),o=i(79400),a=i(61292);function c(e){const t=new n.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const s=new Promise((e=>i.getAsString(e)));t.append(e,(0,n.gf)(s))}else if("file"===i.kind){const s=i.getAsFile();s&&t.append(e,l(s))}}return t}function l(e){const t=e.path?o.r.parse(e.path):void 0;return(0,n.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.sV.EDITORS,a.sV.FILES,s.t.RESOURCES,s.t.INTERNAL_URI_LIST]);function d(e,t=!1){const i=c(e),a=i.get(s.t.INTERNAL_URI_LIST);if(a)i.replace(r.K.uriList,a);else if(t||!i.has(r.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(o.r.file(i).toString()):t.push(o.r.parse(e.name,!0).toString())}catch{}}}t.length&&i.replace(r.K.uriList,(0,n.gf)(n.jt.create(t)))}for(const s of h)i.delete(s);return i}},85541:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,v:()=>r});var s=i(80537),n=i(29319);function r(e,t,i){return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:i.additionalEdit?.edits??[]}:{edits:[...t.map((t=>new s.cw(e,{range:t,text:"string"===typeof i.insertText?n.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...i.additionalEdit?.edits??[]]}}function o(e){function t(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const i=new Map;for(const r of e)for(const s of r.yieldTo??[])for(const n of e)if(n!==r&&t(s,n)){let e=i.get(r);e||(e=[],i.set(r,e)),e.push(n)}if(!i.size)return Array.from(e);const s=new Set,n=[];return function e(t){if(!t.length)return[];const r=t[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),t;if(s.has(r))return e(t.slice(1));let o=[];const a=i.get(r);return a&&(n.push(r),o=e(a),n.pop()),s.add(r),[...o,r,...e(t.slice(1))]}(Array.from(e))}},85600:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>r,tW:()=>n,v7:()=>d});var s=i(91508);function n(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(i=e,s=o(104579,s=t),i.reduce(((e,t)=>r(t,e)),s)):function(e,t){return t=o(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),r(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return o(e?433:863,t)}(e,t);case"number":return o(e,t);case"undefined":return o(937,t);default:return o(617,t)}var i,s}function o(e,t){return(t<<5)-t+e|0}function a(e,t){t=o(149417,t);for(let i=0,s=e.length;i<s;i++)t=o(e.charCodeAt(i),t);return t}function c(e,t,i=32){const s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function l(e,t=0,i=e.byteLength,s=0){for(let n=0;n<i;n++)e[t+n]=s}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let n,r,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(n=a,r=-1,a=0):(n=e.charCodeAt(0),r=0);;){let c=n;if(s.pc(n)){if(!(r+1<t)){a=n;break}{const t=e.charCodeAt(r+1);s.LJ(t)?(r++,c=s.z_(n,t)):c=65533}}else s.LJ(n)&&(c=65533);if(o=this._push(i,o,c),r++,!(r<t))break;n=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,c(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,s,n,r=this._h0,o=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let d=0;d<80;d++)d<20?(i=o&a|~o&l,s=1518500249):d<40?(i=o^a^l,s=1859775393):d<60?(i=o&a|o&l|a&l,s=2400959708):(i=o^a^l,s=3395469782),n=c(r,5)+i+h+s+e.getUint32(4*d,!1)&4294967295,h=l,l=a,a=c(o,30),o=r,r=n;this._h0=this._h0+r&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}},85646:(e,t,i)=>{"use strict";var s=i(31450),n=i(87119),r=i(78209),o=i(83844),a=i(1098),c=i(30076),l=i(41127),h=i(31308),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};class p{constructor(e){this.instantiationService=e}init(...e){}}let m=class extends p{constructor(e,t){super(t),this.init(e)}};var f;m=u([g(1,d._Y)],m),(0,s.HW)(a.X.ID,(f=()=>a.X,(0,c.e)()?function(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...t){this._autorun=(0,h.yC)(((i,s)=>{const n=(0,l.b)(e(),i);s.add(this.instantiationService.createInstance(n,...t))}))}dispose(){this._autorun?.dispose()}}}(f,m):f()),0),(0,o.x1)("editor.placeholder.foreground",n.Ek,(0,r.kg)("placeholderForeground","Foreground color of the placeholder text in the editor."))},85858:e=>{!function(){"use strict";const t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(e&&(1===e.nodeType||9===e.nodeType))return"element";const t=Object.prototype.toString.call(e),i=t.substring(8,t.length-1).toLowerCase();if("number"===i){if(isNaN(e))return"nan";if(!isFinite(e))return"infinity"}return i},i=["Null","Undefined","Object","Array","String","Number","Boolean","Function","RegExp","Element","NaN","Infinite","Symbol"],s=function(e){t["is"+e]=function(i){return t(i)===e.toLowerCase()}};for(let e=0;e<i.length;e++)s(i[e]);e.exports=t}()},85872:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(1606).then(i.bind(i,1606))})},86492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(95050).then(i.bind(i,95050))})},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>c});var s=i(64383),n=i(74444),r=i(36677),o=i(46041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new c(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new c(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new s.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let s=1;s<e.length;s++)t=Math.min(t,e[s].startLineNumber),i=Math.max(i,e[s].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new s.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new r.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new r.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new n.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class c{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const s=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,s)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,s=0,n=null;for(;i<this._normalizedRanges.length||s<e._normalizedRanges.length;){let r=null;if(i<this._normalizedRanges.length&&s<e._normalizedRanges.length){const t=this._normalizedRanges[i],n=e._normalizedRanges[s];t.startLineNumber<n.startLineNumber?(r=t,i++):(r=n,s++)}else i<this._normalizedRanges.length?(r=this._normalizedRanges[i],i++):(r=e._normalizedRanges[s],s++);null===n?n=r:n.endLineNumberExclusive>=r.startLineNumber?n=new a(n.startLineNumber,Math.max(n.endLineNumberExclusive,r.endLineNumberExclusive)):(t.push(n),n=r)}return null!==n&&t.push(n),new c(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new c([e]);const s=[];let n=e.startLineNumber;for(let r=t;r<i;r++){const e=this._normalizedRanges[r];e.startLineNumber>n&&s.push(new a(n,e.startLineNumber)),n=e.endLineNumberExclusive}return n<e.endLineNumberExclusive&&s.push(new a(n,e.endLineNumberExclusive)),new c(s)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,s=0;for(;i<this._normalizedRanges.length&&s<e._normalizedRanges.length;){const n=this._normalizedRanges[i],r=e._normalizedRanges[s],o=n.intersect(r);o&&!o.isEmpty&&t.push(o),n.endLineNumberExclusive<r.endLineNumberExclusive?i++:s++}return new c(t)}getWithDelta(e){return new c(this._normalizedRanges.map((t=>t.delta(e))))}}},86723:(e,t,i)=>{"use strict";var s;function n(e){return e===s.HIGH_CONTRAST_DARK||e===s.HIGH_CONTRAST_LIGHT}function r(e){return e===s.DARK||e===s.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>n,HD:()=>r,zM:()=>s}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(s||(s={}))},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>x,AQ:()=>W,Am:()=>L,As:()=>A,BD:()=>J,Bo:()=>X,CM:()=>w,D0:()=>l,Ek:()=>P,H0:()=>R,I2:()=>Q,IW:()=>ee,If:()=>Z,JB:()=>I,L0:()=>p,Mf:()=>c,P1:()=>re,Pe:()=>se,Qt:()=>f,WD:()=>ne,WS:()=>ie,WY:()=>oe,Xr:()=>D,aZ:()=>B,bB:()=>te,hz:()=>b,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>j,lQ:()=>z,n4:()=>$,ob:()=>E,ow:()=>S,s7:()=>q,sC:()=>d,sH:()=>K,sN:()=>V,ss:()=>G,tK:()=>T,tp:()=>k,vP:()=>y,vV:()=>C,vp:()=>U,w4:()=>m,we:()=>g,x9:()=>O,yI:()=>H,yw:()=>M,zp:()=>Y});var s=i(78209),n=i(47661),r=i(66261),o=i(47612);const a=(0,r.x1A)("editor.lineHighlightBackground",null,s.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,r.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:r.b1q},s.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=((0,r.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},s.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,r.x1A)("editor.symbolHighlightBackground",{dark:r.Ubg,light:r.Ubg,hcDark:null,hcLight:null},s.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,r.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:n.Q1.black,hcDark:n.Q1.white,hcLight:"#0F4A85"},s.kg("caret","Color of the editor cursor."))),h=(0,r.x1A)("editorCursor.background",null,s.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=(0,r.x1A)("editorMultiCursor.primary.foreground",l,s.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,r.x1A)("editorMultiCursor.primary.background",h,s.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,r.x1A)("editorMultiCursor.secondary.foreground",l,s.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,r.x1A)("editorMultiCursor.secondary.background",h,s.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},s.kg("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,r.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorLineNumbers","Color of editor line numbers.")),_=(0,r.x1A)("editorIndentGuide.background",m,s.kg("editorIndentGuides","Color of the editor indentation guides."),!1,s.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,r.x1A)("editorIndentGuide.activeBackground",m,s.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,s.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),C=(0,r.x1A)("editorIndentGuide.background1",_,s.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),E=(0,r.x1A)("editorIndentGuide.background2","#00000000",s.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),b=(0,r.x1A)("editorIndentGuide.background3","#00000000",s.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),S=(0,r.x1A)("editorIndentGuide.background4","#00000000",s.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),y=(0,r.x1A)("editorIndentGuide.background5","#00000000",s.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,r.x1A)("editorIndentGuide.background6","#00000000",s.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),R=(0,r.x1A)("editorIndentGuide.activeBackground1",v,s.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),L=(0,r.x1A)("editorIndentGuide.activeBackground2","#00000000",s.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),T=(0,r.x1A)("editorIndentGuide.activeBackground3","#00000000",s.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),x=(0,r.x1A)("editorIndentGuide.activeBackground4","#00000000",s.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),k=(0,r.x1A)("editorIndentGuide.activeBackground5","#00000000",s.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),A=(0,r.x1A)("editorIndentGuide.activeBackground6","#00000000",s.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),N=(0,r.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:r.buw,hcLight:r.buw},s.kg("editorActiveLineNumber","Color of editor active line number"),!1,s.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),I=((0,r.x1A)("editorLineNumber.activeForeground",N,s.kg("editorActiveLineNumber","Color of editor active line number")),(0,r.x1A)("editorLineNumber.dimmedForeground",null,s.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),O=((0,r.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:n.Q1.lightgrey,hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorRuler","Color of the editor rulers.")),(0,r.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},s.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,r.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},s.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,r.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:r.b1q,hcLight:r.b1q},s.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,r.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},s.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),D=(0,r.x1A)("editorOverviewRuler.background",null,s.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),M=((0,r.x1A)("editorGutter.background",r.YtV,s.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:r.b1q},s.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,r.x1A)("editorUnnecessaryCode.opacity",{dark:n.Q1.fromHex("#000a"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,r.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:n.Q1.fromHex("#292929").transparent(.8)},s.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,r.x1A)("editorGhostText.foreground",{dark:n.Q1.fromHex("#ffffff56"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),F=((0,r.x1A)("editorGhostText.background",null,s.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new n.Q1(new n.bU(0,122,204,.6))),U=(0,r.x1A)("editorOverviewRuler.rangeHighlightForeground",F,s.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,r.x1A)("editorOverviewRuler.errorForeground",{dark:new n.Q1(new n.bU(255,18,18,.7)),light:new n.Q1(new n.bU(255,18,18,.7)),hcDark:new n.Q1(new n.bU(255,50,50,1)),hcLight:"#B5200D"},s.kg("overviewRuleError","Overview ruler marker color for errors.")),B=(0,r.x1A)("editorOverviewRuler.warningForeground",{dark:r.Hng,light:r.Hng,hcDark:r.Stt,hcLight:r.Stt},s.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,r.x1A)("editorOverviewRuler.infoForeground",{dark:r.pOz,light:r.pOz,hcDark:r.IIb,hcLight:r.IIb},s.kg("overviewRuleInfo","Overview ruler marker color for infos.")),V=(0,r.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},s.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,r.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},s.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),G=(0,r.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},s.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),j=(0,r.x1A)("editorBracketHighlight.foreground4","#00000000",s.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,r.x1A)("editorBracketHighlight.foreground5","#00000000",s.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Y=(0,r.x1A)("editorBracketHighlight.foreground6","#00000000",s.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),q=(0,r.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new n.Q1(new n.bU(255,18,18,.8)),light:new n.Q1(new n.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},s.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),$=(0,r.x1A)("editorBracketPairGuide.background1","#00000000",s.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,r.x1A)("editorBracketPairGuide.background2","#00000000",s.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),X=(0,r.x1A)("editorBracketPairGuide.background3","#00000000",s.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Z=(0,r.x1A)("editorBracketPairGuide.background4","#00000000",s.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),J=(0,r.x1A)("editorBracketPairGuide.background5","#00000000",s.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,r.x1A)("editorBracketPairGuide.background6","#00000000",s.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),te=(0,r.x1A)("editorBracketPairGuide.activeBackground1","#00000000",s.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ie=(0,r.x1A)("editorBracketPairGuide.activeBackground2","#00000000",s.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),se=(0,r.x1A)("editorBracketPairGuide.activeBackground3","#00000000",s.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,r.x1A)("editorBracketPairGuide.activeBackground4","#00000000",s.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),re=(0,r.x1A)("editorBracketPairGuide.activeBackground5","#00000000",s.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,r.x1A)("editorBracketPairGuide.activeBackground6","#00000000",s.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1A)("editorUnicodeHighlight.border",r.Hng,s.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,r.x1A)("editorUnicodeHighlight.background",r.whs,s.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const i=e.getColor(r.YtV),s=e.getColor(a),n=s&&!s.isTransparent()?s:i;n&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${n}; }`)}))},87152:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(32742).then(i.bind(i,32742))})},87213:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>n,Rh:()=>a});var s=i(78209);const n=(0,i(63591).u1)("accessibilitySignalService");Symbol("AcknowledgeDocCommentsToken");class r{static register(e){return new r(e.fileName)}static{this.error=r.register({fileName:"error.mp3"})}static{this.warning=r.register({fileName:"warning.mp3"})}static{this.success=r.register({fileName:"success.mp3"})}static{this.foldedArea=r.register({fileName:"foldedAreas.mp3"})}static{this.break=r.register({fileName:"break.mp3"})}static{this.quickFixes=r.register({fileName:"quickFixes.mp3"})}static{this.taskCompleted=r.register({fileName:"taskCompleted.mp3"})}static{this.taskFailed=r.register({fileName:"taskFailed.mp3"})}static{this.terminalBell=r.register({fileName:"terminalBell.mp3"})}static{this.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"})}static{this.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"})}static{this.diffLineModified=r.register({fileName:"diffLineModified.mp3"})}static{this.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"})}static{this.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"})}static{this.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"})}static{this.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"})}static{this.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"})}static{this.clear=r.register({fileName:"clear.mp3"})}static{this.save=r.register({fileName:"save.mp3"})}static{this.format=r.register({fileName:"format.mp3"})}static{this.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"})}static{this.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"})}static{this.progress=r.register({fileName:"progress.mp3"})}constructor(e){this.fileName=e}}class o{constructor(e){this.randomOneOf=e}}class a{constructor(e,t,i,s,n,r){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=s,this.legacyAnnouncementSettingsKey=n,this.announcementMessage=r}static{this._signals=new Set}static register(e){const t=new o("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new a(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return a._signals.add(i),i}static{this.errorAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasError.name","Error at Position"),sound:r.error,announcementMessage:(0,s.kg)("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"})}static{this.warningAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:r.warning,announcementMessage:(0,s.kg)("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"})}static{this.errorOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.kg)("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"})}static{this.warningOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.kg)("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"})}static{this.foldedArea=a.register({name:(0,s.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"})}static{this.break=a.register({name:(0,s.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"})}static{this.inlineSuggestion=a.register({name:(0,s.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"})}static{this.terminalQuickFix=a.register({name:(0,s.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"})}static{this.onDebugBreak=a.register({name:(0,s.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"})}static{this.noInlayHints=a.register({name:(0,s.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"})}static{this.taskCompleted=a.register({name:(0,s.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"})}static{this.taskFailed=a.register({name:(0,s.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"})}static{this.terminalCommandFailed=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"})}static{this.terminalCommandSucceeded=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:r.success,announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"})}static{this.terminalBell=a.register({name:(0,s.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"})}static{this.notebookCellCompleted=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"})}static{this.notebookCellFailed=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"})}static{this.diffLineInserted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"})}static{this.diffLineDeleted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"})}static{this.diffLineModified=a.register({name:(0,s.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"})}static{this.chatRequestSent=a.register({name:(0,s.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"})}static{this.chatResponseReceived=a.register({name:(0,s.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"})}static{this.progress=a.register({name:(0,s.kg)("accessibilitySignals.progress","Progress"),sound:r.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:(0,s.kg)("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"})}static{this.clear=a.register({name:(0,s.kg)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"})}static{this.save=a.register({name:(0,s.kg)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"})}static{this.format=a.register({name:(0,s.kg)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"})}static{this.voiceRecordingStarted=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"})}static{this.voiceRecordingStopped=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})}}},87285:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515L1.641 8l.229-.515a6.708 6.708 0 0112.26 0l.228.515-.229.515a6.708 6.708 0 01-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 000 1.079l.26.584a8.208 8.208 0 0015 0l.26-.584a1.33 1.33 0 000-1.08l-.26-.584a8.208 8.208 0 00-15 0M9.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M11 8a3 3 0 11-6 0 3 3 0 016 0",clipRule:"evenodd"})))}},87289:(e,t,i)=>{"use strict";i.d(t,{Ho:()=>Qt,kI:()=>Xt,Bz:()=>Wt});var s=i(25890),n=i(47661),r=i(64383),o=i(41234),a=i(5662),c=i(91508),l=i(79400),h=i(64454),d=i(93895),u=i(83069),g=i(36677),p=i(75326),m=i(24329),f=i(10154),_=i(17469),v=i(16223),C=i(12296),E=i(56772);class b{constructor(e,t,i,s){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=s}}class S{constructor(e,t,i,s,n,r){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s,this.nestingLevelOfEqualBracketType=n,this.bracketPairNode=r}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class y extends S{constructor(e,t,i,s,n,r,o){super(e,t,i,s,n,r),this.minVisibleColumnIndentation=o}}var w=i(94650),R=i(93630),L=i(19131),T=i(19562),x=i(32956),k=i(51934),A=i(84084);class N extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new o.vl,this.denseKeyProvider=new x.Mg,this.brackets=new R.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new k._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,T.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new w.c((0,L.qe)(e.fromLineNumber-1,0),(0,L.qe)(e.toLineNumber,0),(0,L.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=w.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,A.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,A.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const s=t,n=new k.tk(this.textModel,this.brackets);return(0,T.T)(n,e,s,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,L.qe)(e.startLineNumber-1,e.startColumn-1),n=(0,L.qe)(e.endLineNumber-1,e.endColumn-1);return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens;D(s,L.Vp,s.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,L.VL)(e.getStartPosition()),n=(0,L.VL)(e.getEndPosition());return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens,r=new M(e,t,this.textModel);P(s,L.Vp,s.length,i,n,r,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,L.Vp,t.length,(0,L.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return I(t,L.Vp,t.length,(0,L.VL)(e))}}function I(e,t,i,s){if(4===e.kind||2===e.kind){const n=[];for(const s of e.children)i=(0,L.QB)(t,s.length),n.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=n.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:r}=n[t];if((0,L.zG)(i,s)){const n=I(e.children[t],i,r,s);if(n)return n}}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function O(e,t,i,s){if(4===e.kind||2===e.kind){for(const n of e.children){if(i=(0,L.QB)(t,n.length),(0,L.zG)(s,i)){const e=O(n,t,i,s);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,L.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function D(e,t,i,s,n,r,o,a,c,l,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,L.QB)(t,a.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)){e=a;continue e}if(!D(a,t,i,s,n,r,o,0,c,l))return!1}t=i}}return!0}case 2:{const h=!l||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(c){let t=c.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,c.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,L.QB)(t,u.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)){if((0,L.o0)(i,n)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!D(u,t,i,s,n,r,h?o+1:o,h?d+1:d,c,l,!e.closingBracket))return!1}}t=i}}return c?.set(e.openingBracket.text,d),!0}case 3:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,0,!0))}case 1:{const e=(0,L.Qx)(t,i);return r(new b(e,o-1,a-1,h))}case 0:return!0}}class M{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function P(e,t,i,s,n,r,o,a){if(o>200)return!0;let c=!0;if(2===e.kind){let l=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),l=t,t++,a.set(e.openingBracket.text,t)}const h=(0,L.QB)(t,e.openingBracket.length);let d=-1;if(r.includeMinIndentation&&(d=e.computeMinIndentation(t,r.textModel)),c=r.push(new y((0,L.Qx)(t,i),(0,L.Qx)(t,h),e.closingBracket?(0,L.Qx)((0,L.QB)(h,e.child?.length||L.Vp),i):void 0,o,l,e,d)),t=h,c&&e.child){const l=e.child;if(i=(0,L.QB)(t,l.length),(0,L.vr)(t,n)&&(0,L.o0)(i,s)&&(c=P(l,t,i,s,n,r,o+1,a),!c))return!1}a?.set(e.openingBracket.text,l)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,L.QB)(i,t.length),(0,L.vr)(e,n)&&(0,L.vr)(s,i)&&(c=P(t,e,i,s,n,r,o,a),!c))return!1}}return c}class F extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new N(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>t?.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||s.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||s.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||s.c1.empty}findMatchingBracketUp(e,t,i){const s=this.textModel.validatePosition(t),n=this.textModel.getLanguageIdAtPosition(s.lineNumber,s.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const s=this.getBracketPairsInRange(g.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return s?s.openingBracketRange:null}{const t=e.toLowerCase(),r=this.languageConfigurationService.getLanguageConfiguration(n).brackets;if(!r)return null;const o=r.textIsBracket[t];return o?B(this._findMatchingBracketUp(o,s,U(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(g.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,s.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),g.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=U(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,s){const n=t.getCount(),r=t.getLanguageId(s);let o=Math.max(0,e.column-1-i.maxBracketLength);for(let c=s-1;c>=0;c--){const e=t.getEndOffset(c);if(e<=o)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=s+1;c<n;c++){const e=t.getStartOffset(c);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,s=this.textModel.tokenization.getLineTokens(i),n=this.textModel.getLineContent(i),r=s.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(r)).brackets;if(o&&!(0,C.Yo)(s.getStandardTokenType(r))){let{searchStartOffset:a,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,o,r),l=null;for(;;){const s=E.Fu.findNextBracketInRange(o.forwardRegex,i,n,a,c);if(!s)break;if(s.startColumn<=e.column&&e.column<=s.endColumn){const e=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),i=this._matchFoundBracket(s,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(i){if(i instanceof H)return null;l=i}}a=s.endColumn-1}if(l)return l}if(r>0&&s.getStartOffset(r)===e.column-1){const o=r-1,a=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(o)).brackets;if(a&&!(0,C.Yo)(s.getStandardTokenType(o))){const{searchStartOffset:r,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,a,o),l=E.Fu.findPrevBracketInRange(a.reversedRegex,i,n,r,c);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),i=this._matchFoundBracket(l,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof H?null:i}}}return null}_matchFoundBracket(e,t,i,s){if(!t)return null;const n=i?this._findMatchingBracketDown(t,e.getEndPosition(),s):this._findMatchingBracketUp(t,e.getStartPosition(),s);return n?n instanceof H?n:[e,n]:null}_findMatchingBracketUp(e,t,i){const s=e.languageId,n=e.reversedRegex;let r=-1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findPrevBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;c=l.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),n=this.textModel.getLineContent(c);let r=i-1,o=n.length,l=n.length;c===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;r>=0;r--){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h?o=e.getStartOffset(r):(o=e.getStartOffset(r),l=e.getEndOffset(r));else if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const s=e.languageId,n=e.forwardRegex;let r=1,o=0;const a=(t,s,a,c)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const l=E.Fu.findNextBracketInRange(n,t,s,a,c);if(!l)break;const h=s.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return l;a=l.endColumn-1}return null},c=this.textModel.getLineCount();for(let l=t.lineNumber;l<=c;l++){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),n=this.textModel.getLineContent(l);let r=0,o=0,c=0;l===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;r<i;r++){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h||(o=e.getStartOffset(r)),c=e.getEndOffset(r);else if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let i=null,s=null,n=null;for(let r=t.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),o=e.getCount(),a=this.textModel.getLineContent(r);let c=o-1,l=a.length,h=a.length;if(r===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const r=e.getLanguageId(c);i!==r&&(i=r,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;c>=0;c--){const t=e.getLanguageId(c);if(i!==t){if(s&&n&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e);d=!1}i=t,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const o=!!s&&!(0,C.Yo)(e.getStandardTokenType(c));if(o)d?l=e.getStartOffset(c):(l=e.getStartOffset(c),h=e.getEndOffset(c));else if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}d=o}if(n&&s&&d&&l!==h){const e=E.Fu.findPrevBracketInRange(s.reversedRegex,r,a,l,h);if(e)return this._toFoundBracket(n,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const i=this.textModel.getLineCount();let s=null,n=null,r=null;for(let o=t.lineNumber;o<=i;o++){const e=this.textModel.tokenization.getLineTokens(o),i=e.getCount(),a=this.textModel.getLineContent(o);let c=0,l=0,h=0;if(o===t.lineNumber){c=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,h=t.column-1;const i=e.getLanguageId(c);s!==i&&(s=i,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let d=!0;for(;c<i;c++){const t=e.getLanguageId(c);if(s!==t){if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e);d=!1}s=t,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!n&&!(0,C.Yo)(e.getStandardTokenType(c));if(i)d||(l=e.getStartOffset(c)),h=e.getEndOffset(c);else if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}d=i}if(r&&n&&d&&l!==h){const e=E.Fu.findNextBracketInRange(n.forwardRegex,o,a,l,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=g.Q.fromPositions(i),t=this.getBracketPairsInRange(g.Q.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const s=U(t),n=this.textModel.getLineCount(),r=new Map;let o=[];const a=(e,t)=>{if(!r.has(e)){const i=[];for(let e=0,s=t?t.brackets.length:0;e<s;e++)i[e]=0;r.set(e,i)}o=r.get(e)};let c=0;const l=(e,t,i,n,r)=>{for(;;){if(s&&++c%100===0&&!s())return H.INSTANCE;const a=E.Fu.findNextBracketInRange(e.forwardRegex,t,i,n,r);if(!a)break;const l=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[l];if(h&&(h.isOpen(l)?o[h.index]++:h.isClose(l)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,s);n=a.endColumn-1}return null};let h=null,d=null;for(let u=i.lineNumber;u<=n;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),s=this.textModel.getLineContent(u);let n=0,r=0,o=0;if(u===i.lineNumber){n=e.findTokenIndexAtOffset(i.column-1),r=i.column-1,o=i.column-1;const t=e.getLanguageId(n);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let c=!0;for(;n<t;n++){const t=e.getLanguageId(n);if(h!==t){if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e);c=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const i=!!d&&!(0,C.Yo)(e.getStandardTokenType(n));if(i)c||(r=e.getStartOffset(n)),o=e.getEndOffset(n);else if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}c=i}if(d&&c&&r!==o){const e=l(d,u,s,r,o);if(e)return B(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const s=e.getBracketInfo(i);return s?{range:t,bracketInfo:s}:null}}function U(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class H{static{this.INSTANCE=new H}constructor(){this._searchCanceledBrand=void 0}}function B(e){return e instanceof H?null:e}var W=i(87119),V=i(47612);class z extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new G,this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,s){if(s)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new g.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class G{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,V.zy)(((e,t)=>{const i=[W.sN,W.lQ,W.ss,W.l5,W.sH,W.zp],s=new G;t.addRule(`.monaco-editor .${s.unexpectedClosingBracketClassName} { color: ${e.getColor(W.s7)}; }`);const n=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let r=0;r<30;r++){const e=n[r%n.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(r)} { color: ${e}; }`)}}));var j=i(26656),K=i(53450);class Y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function q(e,t,i,s,n){let r;for(n.spacesDiff=0,n.looksLikeAlignment=!1,r=0;r<t&&r<s;r++){if(e.charCodeAt(r)!==i.charCodeAt(r))break}let o=0,a=0;for(let u=r;u<t;u++){32===e.charCodeAt(u)?o++:a++}let c=0,l=0;for(let u=r;u<s;u++){32===i.charCodeAt(u)?c++:l++}if(o>0&&a>0)return;if(c>0&&l>0)return;const h=Math.abs(a-l),d=Math.abs(o-c);if(0===h)return n.spacesDiff=d,void(d>0&&0<=c-1&&c-1<e.length&&c<i.length&&32!==i.charCodeAt(c)&&32===e.charCodeAt(c-1)&&44===e.charCodeAt(e.length-1)&&(n.looksLikeAlignment=!0));d%h!==0||(n.spacesDiff=d/h)}function $(e,t,i){const s=Math.min(e.getLineCount(),1e4);let n=0,r=0,o="",a=0;const c=[2,4,6,8,3,5,7],l=[0,0,0,0,0,0,0,0,0],h=new Y;for(let g=1;g<=s;g++){const s=e.getLineLength(g),c=e.getLineContent(g),d=s<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=s;t<i;t++){const i=d?c.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?n++:m>1&&r++,q(o,a,c,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&l[_]++,o=c,a=p}let d=i;n!==r&&(d=n<r);let u=t;if(d){let e=d?0:.1*s;c.forEach((t=>{const i=l[t];i>e&&(e=i,u=t)})),4===u&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function Z(e){return(2&e.metadata)>>>1===1}function J(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function ee(e){return(4&e.metadata)>>>2===1}function te(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ie(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function ne(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class oe{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,te(this,!1),se(this,!1),ne(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,J(this,!1)}reset(e,t,i,s){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=s}setOptions(e){this.options=e;const t=this.options.className;te(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),ne(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const ae=new oe(null,0,0);ae.parent=ae,ae.left=ae,ae.right=ae,X(ae,0);class ce{constructor(){this.root=ae,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,s,n,r){return this.root===ae?[]:function(e,t,i,s,n,r,o){let a=e.root,c=0,l=0,h=0,d=0;const u=[];let g=0;for(;a!==ae;)if(Z(a))J(a.left,!1),J(a.right,!1),a===a.parent.right&&(c-=a.parent.delta),a=a.parent;else{if(!Z(a.left)){if(l=c+a.maxEnd,l<t){J(a,!0);continue}if(a.left!==ae){a=a.left;continue}}if(h=c+a.start,h>i)J(a,!0);else{if(d=c+a.end,d>=t){a.setCachedOffsets(h,d,r);let e=!0;s&&a.ownerId&&a.ownerId!==s&&(e=!1),n&&ee(a)&&(e=!1),o&&!ie(a)&&(e=!1),e&&(u[g++]=a)}J(a,!0),a.right===ae||Z(a.right)||(c+=a.delta,a=a.right)}}return J(e.root,!1),u}(this,e,t,i,s,n,r)}search(e,t,i,s){return this.root===ae?[]:function(e,t,i,s,n){let r=e.root,o=0,a=0,c=0;const l=[];let h=0;for(;r!==ae;){if(Z(r)){J(r.left,!1),J(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==ae&&!Z(r.left)){r=r.left;continue}a=o+r.start,c=o+r.end,r.setCachedOffsets(a,c,s);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),i&&ee(r)&&(e=!1),n&&!ie(r)&&(e=!1),e&&(l[h++]=r),J(r,!0),r.right===ae||Z(r.right)||(o+=r.delta,r=r.right)}return J(e.root,!1),l}(this,e,t,i,s)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const s=[];let n=0;for(;i!==ae;)Z(i)?(J(i.left,!1),J(i.right,!1),i=i.parent):i.left===ae||Z(i.left)?(i.ownerId===t&&(s[n++]=i),J(i,!0),i.right===ae||Z(i.right)||(i=i.right)):i=i.left;return J(e.root,!1),s}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let s=0;for(;t!==ae;)Z(t)?(J(t.left,!1),J(t.right,!1),t=t.parent):t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(i[s++]=t,J(t,!0)):t=t.right:t=t.left;return J(e.root,!1),i}(this)}insert(e){de(this,e),this._normalizeDeltaIfNecessary()}delete(e){ue(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let s=0;for(;e!==this.root;)e===e.parent.right&&(s+=e.parent.delta),e=e.parent;const n=i.start+s,r=i.end+s;i.setCachedOffsets(n,r,t)}acceptReplace(e,t,i,s){const n=function(e,t,i){let s=e.root,n=0,r=0,o=0,a=0;const c=[];let l=0;for(;s!==ae;)if(Z(s))J(s.left,!1),J(s.right,!1),s===s.parent.right&&(n-=s.parent.delta),s=s.parent;else{if(!Z(s.left)){if(r=n+s.maxEnd,r<t){J(s,!0);continue}if(s.left!==ae){s=s.left;continue}}o=n+s.start,o>i?J(s,!0):(a=n+s.end,a>=t&&(s.setCachedOffsets(o,a,0),c[l++]=s),J(s,!0),s.right===ae||Z(s.right)||(n+=s.delta,s=s.right))}return J(e.root,!1),c}(this,e,e+t);for(let r=0,o=n.length;r<o;r++){ue(this,n[r])}this._normalizeDeltaIfNecessary(),function(e,t,i,s){let n=e.root,r=0,o=0,a=0;const c=s-(i-t);for(;n!==ae;)if(Z(n))J(n.left,!1),J(n.right,!1),n===n.parent.right&&(r-=n.parent.delta),_e(n),n=n.parent;else{if(!Z(n.left)){if(o=r+n.maxEnd,o<t){J(n,!0);continue}if(n.left!==ae){n=n.left;continue}}a=r+n.start,a>i?(n.start+=c,n.end+=c,n.delta+=c,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),J(n,!0)):(J(n,!0),n.right===ae||Z(n.right)||(r+=n.delta,n=n.right))}J(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let r=0,o=n.length;r<o;r++){const o=n[r];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,he(o,e,e+t,i,s),o.maxEnd=o.end,de(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==ae;)t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,_e(t),J(t,!0),J(t.left,!1),J(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;J(e.root,!1)}(this))}}function le(e,t,i,s){return e<i||!(e>i)&&(1!==s&&(2===s||t))}function he(e,t,i,s,n){const r=function(e){return(24&e.metadata)>>>3}(e),o=0===r||2===r,a=1===r||2===r,c=i-t,l=s,h=Math.min(c,l),d=e.start;let u=!1;const g=e.end;let p=!1;t<=d&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=n?1:c>0?2:0;!u&&le(d,o,t,e)&&(u=!0),!p&&le(g,a,t,e)&&(p=!0)}if(h>0&&!n){const e=c>l?2:0;!u&&le(d,o,t+h,e)&&(u=!0),!p&&le(g,a,t+h,e)&&(p=!0)}{const s=n?1:0;!u&&le(d,o,i,s)&&(e.start=t+l,u=!0),!p&&le(g,a,i,s)&&(e.end=t+l,p=!0)}const m=l-c;u||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function de(e,t){if(e.root===ae)return t.parent=ae,t.left=ae,t.right=ae,X(t,0),e.root=t,e.root;!function(e,t){let i=0,s=e.root;const n=t.start,r=t.end;for(;;){if(Ce(n,r,s.start+i,s.end+i)<0){if(s.left===ae){t.start-=i,t.end-=i,t.maxEnd-=i,s.left=t;break}s=s.left}else{if(s.right===ae){t.start-=i+s.delta,t.end-=i+s.delta,t.maxEnd-=i+s.delta,s.right=t;break}i+=s.delta,s=s.right}}t.parent=s,t.left=ae,t.right=ae,X(t,1)}(e,t),ve(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,pe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),pe(e,i.parent.parent))}return X(e.root,0),t}function ue(e,t){let i,s;if(t.left===ae?(i=t.right,s=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===ae?(i=t.left,s=t):(s=function(e){for(;e.left!==ae;)e=e.left;return e}(t.right),i=s.right,i.start+=s.delta,i.end+=s.delta,i.delta+=s.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=t.delta,s.end+=t.delta,s.delta=t.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=i,X(i,0),t.detach(),ge(),_e(i),void(e.root.parent=ae);const n=1===Q(s);if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?i.parent=s.parent:(s.parent===t?i.parent=s:i.parent=s.parent,s.left=t.left,s.right=t.right,s.parent=t.parent,X(s,Q(t)),t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==ae&&(s.left.parent=s),s.right!==ae&&(s.right.parent=s)),t.detach(),n)return ve(i.parent),s!==t&&(ve(s),ve(s.parent)),void ge();let r;for(ve(i),ve(i.parent),s!==t&&(ve(s),ve(s.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(r=i.parent.right,1===Q(r)&&(X(r,0),X(i.parent,1),pe(e,i.parent),r=i.parent.right),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.right)&&(X(r.left,0),X(r,1),me(e,r),r=i.parent.right),X(r,Q(i.parent)),X(i.parent,0),X(r.right,0),pe(e,i.parent),i=e.root)):(r=i.parent.left,1===Q(r)&&(X(r,0),X(i.parent,1),me(e,i.parent),r=i.parent.left),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.left)&&(X(r.right,0),X(r,1),pe(e,r),r=i.parent.left),X(r,Q(i.parent)),X(i.parent,0),X(r.left,0),me(e,i.parent),i=e.root));X(i,0),ge()}function ge(){ae.parent=ae,ae.delta=0,ae.start=0,ae.end=0}function pe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==ae&&(i.left.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,_e(t),_e(i)}function me(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==ae&&(i.right.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,_e(t),_e(i)}function fe(e){let t=e.end;if(e.left!==ae){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==ae){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function _e(e){e.maxEnd=fe(e)}function ve(e){for(;e!==ae;){const t=fe(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,s){return e===i?t-s:e-i}class Ee{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==be)return Se(this.right);let e=this;for(;e.parent!==be&&e.parent.left!==e;)e=e.parent;return e.parent===be?be:e.parent}prev(){if(this.left!==be)return ye(this.left);let e=this;for(;e.parent!==be&&e.parent.right!==e;)e=e.parent;return e.parent===be?be:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const be=new Ee(null,0);function Se(e){for(;e.left!==be;)e=e.left;return e}function ye(e){for(;e.right!==be;)e=e.right;return e}function we(e){return e===be?0:e.size_left+e.piece.length+we(e.right)}function Re(e){return e===be?0:e.lf_left+e.piece.lineFeedCnt+Re(e.right)}function Le(){be.parent=be}function Te(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==be&&(i.left.parent=t),i.parent=t.parent,t.parent===be?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function xe(e,t){const i=t.left;t.left=i.right,i.right!==be&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===be?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function ke(e,t){let i,s;if(t.left===be?(s=t,i=s.right):t.right===be?(s=t,i=s.left):(s=Se(t.right),i=s.right),s===e.root)return e.root=i,i.color=0,t.detach(),Le(),void(e.root.parent=be);const n=1===s.color;if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?(i.parent=s.parent,Ie(e,i)):(s.parent===t?i.parent=s:i.parent=s.parent,Ie(e,i),s.left=t.left,s.right=t.right,s.parent=t.parent,s.color=t.color,t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==be&&(s.left.parent=s),s.right!==be&&(s.right.parent=s),s.size_left=t.size_left,s.lf_left=t.lf_left,Ie(e,s)),t.detach(),i.parent.left===i){const t=we(i),s=Re(i);if(t!==i.parent.size_left||s!==i.parent.lf_left){const n=t-i.parent.size_left,r=s-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=s,Ne(e,i.parent,n,r)}}if(Ie(e,i.parent),n)return void Le();let r;for(;i!==e.root&&0===i.color;)i===i.parent.left?(r=i.parent.right,1===r.color&&(r.color=0,i.parent.color=1,Te(e,i.parent),r=i.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.right.color&&(r.left.color=0,r.color=1,xe(e,r),r=i.parent.right),r.color=i.parent.color,i.parent.color=0,r.right.color=0,Te(e,i.parent),i=e.root)):(r=i.parent.left,1===r.color&&(r.color=0,i.parent.color=1,xe(e,i.parent),r=i.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.left.color&&(r.right.color=0,r.color=1,Te(e,r),r=i.parent.left),r.color=i.parent.color,i.parent.color=0,r.left.color=0,xe(e,i.parent),i=e.root));i.color=0,Le()}function Ae(e,t){for(Ie(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Te(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,xe(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&xe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Te(e,t.parent.parent))}e.root.color=0}function Ne(e,t,i,s){for(;t!==e.root&&t!==be;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}function Ie(e,t){let i=0,s=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=we((t=t.parent).left)-t.size_left,s=Re(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=s;t!==e.root&&(0!==i||0!==s);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}}be.parent=be,be.left=be,be.right=be,be.color=0;var Oe=i(43264);const De=65535;function Me(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Pe{constructor(e,t,i,s,n){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=n}}function Fe(e,t=!0){const i=[0];let s=1;for(let n=0,r=e.length;n<r;n++){const t=e.charCodeAt(n);13===t?n+1<r&&10===e.charCodeAt(n+1)?(i[s++]=n+2,n++):i[s++]=n+1:10===t&&(i[s++]=n+1)}return t?Me(i):i}class Ue{constructor(e,t,i,s,n){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=n}}class He{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Be{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==be&&e.iterate(e.root,(e=>(e!==be&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class We{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let s=0;s<i.length;s++){const n=i[s];(null===n.node.parent||n.nodeStartOffset>=e)&&(i[s]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class Ve{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new He("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=be,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let n=0,r=e.length;n<r;n++)if(e[n].buffer.length>0){e[n].lineStarts||(e[n].lineStarts=Fe(e[n].buffer));const t=new Ue(n+1,{line:0,column:0},{line:e[n].lineStarts.length-1,column:e[n].buffer.length-e[n].lineStarts[e[n].lineStarts.length-1]},e[n].lineStarts.length-1,e[n].buffer.length);this._buffers.push(e[n]),s=this.rbInsertRight(s,t)}this._searchCache=new We(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=De,i=t-Math.floor(21845),s=2*i;let n="",r=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),c=a.length;if(r<=i||r+c<s)return n+=a,r+=c,!0;const l=n.replace(/\r\n|\r|\n/g,e);return o.push(new He(l,Fe(l))),n=a,r=c,!0})),r>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new He(t,Fe(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Be(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==be;)if(s.left!==be&&s.lf_left+1>=e)s=s.left;else{if(s.lf_left+s.piece.lineFeedCnt+1>=e){i+=s.size_left;return i+(this.getAccumulatedValue(s,e-s.lf_left-2)+t-1)}e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const s=e;for(;t!==be;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const n=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+n.index,0===n.index){const e=s-this.getOffsetAt(i+1,1);return new u.y(i+1,e+1)}return new u.y(i+1,n.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===be){const t=s-e-this.getOffsetAt(i+1,1);return new u.y(i+1,t+1)}t=t.right}return new u.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),n=this.getValueInRange2(i,s);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?n:n.replace(/\r\n|\r|\n/g,t):n}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s.substring(n+e.remainder,n+t.remainder)}let i=e.node;const s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=s.substring(n+e.remainder,n+i.piece.length);for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=e.substring(s,s+t.remainder);break}r+=e.substr(s,i.piece.length),i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",s=!1;return this.iterate(this.root,(n=>{if(n===be)return!0;const r=n.piece;let o=r.length;if(0===o)return!0;const a=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,l=r.start.line,h=r.end.line;let d=c[l]+r.start.column;if(s&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=i,i="",s=!1,0===o))return!0;if(l===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?i+=a.substr(d,o):(s=!0,i+=a.substr(d,o-1)),!0;i+=this._EOLNormalized?a.substring(d,Math.max(d,c[l+1]-this._EOLLength)):a.substring(d,c[l+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=l+1;s<h;s++)i=this._EOLNormalized?a.substring(c[s],c[s+1]-this._EOLLength):a.substring(c[s],c[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(c[h]+r.end.column-1)?i=a.substr(c[h],r.end.column):(s=!0,0===r.end.column?t--:i=a.substr(c[h],r.end.column-1)),!0})),s&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],s=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(s)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,s,n,r,o,a,c,l,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,n),m=this.offsetInBuffer(e.piece.bufferIndex,r);let f;const _={line:0,column:0};let v,C;t._wordSeparators?(v=d.buffer.substring(p,m),C=e=>e+p,t.reset(0)):(v=d.buffer,C=e=>e,t.reset(p));do{if(f=t.next(v),f){if(C(f.index)>=m)return l;this.positionInBuffer(e,C(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,n,_),r=_.line===n.line?_.column-n.column+s:_.column+1,o=r+f[0].length;if(h[l++]=(0,Oe.dr)(new g.Q(i+t,r,i+t,o),f,a),C(f.index)+f[0].length>=m)return l;if(l>=c)return l}}while(f);return l}findMatchesLineByLine(e,t,i,s){const n=[];let r=0;const o=new Oe.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===c)return[];let l=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(a.node===c.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,l,h,t,i,s,r,n),n;let d=e.startLineNumber,u=a.node;for(;u!==c.node;){const c=this.getLineFeedCnt(u.piece.bufferIndex,l,u.piece.end);if(c>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[l.line+c],p=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(u,o,d,p,l,this.positionInBuffer(u,g-h),t,i,s,r,n),r>=s)return n;d+=c}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return r=this._findMatchesInLine(t,o,a,e.endLineNumber,h,r,n,i,s),n}if(r=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,r,n,i,s),r>=s)return n;d++,a=this.nodeAt2(d,1),u=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,c=this.getLineContent(d).substring(a,e.endColumn-1);return r=this._findMatchesInLine(t,o,c,e.endLineNumber,a,r,n,i,s),n}const g=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,o,d,g,l,h,t,i,s,r,n),n}_findMatchesInLine(e,t,i,s,n,r,o,a,c){const l=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let d=-a;for(;-1!==(d=i.indexOf(t,d+a));)if((!l||(0,Oe.wC)(l,i,h,d,a))&&(o[r++]=new v.Dg(new g.Q(s,d+1+n,s,d+1+a+n),null),r>=c))return r;return r}let h;t.reset(0);do{if(h=t.next(i),h&&(o[r++]=(0,Oe.dr)(new g.Q(s,h.index+1+n,s,h.index+1+h[0].length+n),h,a),r>=c))return r}while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==be){const{node:i,remainder:s,nodeStartOffset:n}=this.nodeAt(e),r=i.piece,o=r.bufferIndex,a=this.positionInBuffer(i,s);if(0===i.piece.bufferIndex&&r.end.line===this._lastChangeBufferPos.line&&r.end.column===this._lastChangeBufferPos.column&&n+r.length===e&&t.length<De)return this.appendToNode(i,t),void this.computeBufferMetadata();if(n===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(n+i.piece.length>e){const e=[];let n=new Ue(r.bufferIndex,a,r.end,this.getLineFeedCnt(r.bufferIndex,a,r.end),this.offsetInBuffer(o,r.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,s)){const e={line:n.start.line+1,column:0};n=new Ue(n.bufferIndex,e,n.end,this.getLineFeedCnt(n.bufferIndex,e,n.end),n.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,s-1)){const n=this.positionInBuffer(i,s-1);this.deleteNodeTail(i,n),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const c=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let l=i;for(let t=0;t<c.length;t++)l=this.rbInsertRight(l,c[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===be)return;const i=this.nodeAt(e),s=this.nodeAt(e+t),n=i.node,r=s.node;if(n===r){const r=this.positionInBuffer(n,i.remainder),o=this.positionInBuffer(n,s.remainder);if(i.nodeStartOffset===e){if(t===n.piece.length){const e=n.next();return ke(this,n),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(n,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(n),void this.computeBufferMetadata()}return i.nodeStartOffset+n.piece.length===e+t?(this.deleteNodeTail(n,r),this.validateCRLFWithNextNode(n),void this.computeBufferMetadata()):(this.shrinkNode(n,r,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(n,i.remainder);this.deleteNodeTail(n,a),this._searchCache.validate(e),0===n.piece.length&&o.push(n);const c=this.positionInBuffer(r,s.remainder);this.deleteNodeHead(r,c),0===r.piece.length&&o.push(r);for(let h=n.next();h!==be&&h!==r;h=h.next())o.push(h);const l=0===n.piece.length?n.prev():n;this.deleteNodes(o),this.validateCRLFWithNextNode(l),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const s=t.piece,n={line:s.start.line+1,column:0},r=new Ue(s.bufferIndex,n,s.end,this.getLineFeedCnt(s.bufferIndex,n,s.end),s.length-1);t.piece=r,e+="\n",Ne(this,t,-1,-1),0===t.piece.length&&i.push(t)}const s=this.createNewPieces(e);let n=this.rbInsertLeft(t,s[s.length-1]);for(let r=s.length-2;r>=0;r--)n=this.rbInsertLeft(n,s[r]);this.validateCRLFWithPrevNode(n),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]);let n=s;for(let r=1;r<i.length;r++)n=this.rbInsertRight(n,i[r]);this.validateCRLFWithPrevNode(s)}positionInBuffer(e,t,i){const s=e.piece,n=e.piece.bufferIndex,r=this._buffers[n].lineStarts,o=r[s.start.line]+s.start.column+t;let a=s.start.line,c=s.end.line,l=0,h=0,d=0;for(;a<=c&&(l=a+(c-a)/2|0,d=r[l],l!==c);)if(h=r[l+1],o<d)c=l-1;else{if(!(o>=h))break;a=l+1}return i?(i.line=l,i.column=o-d,null):{line:l,column:o-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;const n=s[i.line+1],r=s[i.line]+i.column;if(n>r+1)return i.line-t.line;const o=r-1;return 13===this._buffers[e].buffer.charCodeAt(o)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)ke(this,e[t])}createNewPieces(e){if(e.length>De){const t=[];for(;e.length>De;){const i=e.charCodeAt(65534);let s;13===i||i>=55296&&i<=56319?(s=e.substring(0,65534),e=e.substring(65534)):(s=e.substring(0,De),e=e.substring(De));const n=Fe(s);t.push(new Ue(this._buffers.length,{line:0,column:0},{line:n.length-1,column:s.length-n[n.length-1]},n.length-1,s.length)),this._buffers.push(new He(s,n))}const i=Fe(e);return t.push(new Ue(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new He(e,i)),t}let t=this._buffers[0].buffer.length;const i=Fe(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const n=this._buffers[0].buffer.length,r=this._buffers[0].lineStarts.length-1,o={line:r,column:n-this._buffers[0].lineStarts[r]},a=new Ue(0,s,o,this.getLineFeedCnt(0,s,o),n-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let i=this.root,s="";const n=this._searchCache.get2(e);if(n){i=n.node;const r=this.getAccumulatedValue(i,e-n.nodeStartLineNumber-1),o=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(n.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const s=this.getAccumulatedValue(i,e-n.nodeStartLineNumber);return o.substring(a+r,a+s-t)}s=o.substring(a+r,a+i.piece.length)}else{let n=0;const r=e;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:n,nodeStartLineNumber:r-(e-1-i.lf_left)}),a.substring(c+s,c+o-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=n.substring(r+t,r+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==be;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const n=this.getAccumulatedValue(i,0),r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=e.substring(r,r+n-t),s}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substr(t,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==be;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,s=this.positionInBuffer(e,t),n=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(t!==n)return{index:t,remainder:0}}return{index:n,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,n=i.start.line+t+1;return n>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[n]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.end),r=t,o=this.offsetInBuffer(i.bufferIndex,r),a=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=a-s,l=o-n,h=i.length+l;e.piece=new Ue(i.bufferIndex,i.start,r,a,h),Ne(this,e,l,c)}deleteNodeHead(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.start),r=t,o=this.getLineFeedCnt(i.bufferIndex,r,i.end),a=o-s,c=n-this.offsetInBuffer(i.bufferIndex,r),l=i.length+c;e.piece=new Ue(i.bufferIndex,r,i.end,o,l),Ne(this,e,c,a)}shrinkNode(e,t,i){const s=e.piece,n=s.start,r=s.end,o=s.length,a=s.lineFeedCnt,c=t,l=this.getLineFeedCnt(s.bufferIndex,s.start,c),h=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new Ue(s.bufferIndex,s.start,c,l,h),Ne(this,e,h-o,l-a);const d=new Ue(s.bufferIndex,i,r,this.getLineFeedCnt(s.bufferIndex,i,r),this.offsetInBuffer(s.bufferIndex,r)-this.offsetInBuffer(s.bufferIndex,i)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const n=Fe(t,!1);for(let d=0;d<n.length;d++)n[d]+=s;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:s-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1));const r=this._buffers[0].lineStarts.length-1,o={line:r,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[r]},a=e.piece.length+t.length,c=e.piece.lineFeedCnt,l=this.getLineFeedCnt(0,e.piece.start,o),h=l-c;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,o,l,a),this._lastChangeBufferPos=o,Ne(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let s=0;for(;t!==be;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){s+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==be;)if(i.left!==be&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(n+t-1,r),nodeStartOffset:s}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2);if(n+t-1<=i.piece.length)return{node:i,remainder:n+t-1,nodeStartOffset:s};t-=i.piece.length-n;break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==be;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:s}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===be||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,n=i[s]+t.start.column;if(s===i.length-1)return!1;return!(i[s+1]>n+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==be&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],s=this._buffers[e.piece.bufferIndex].lineStarts;let n;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:s[e.piece.end.line]-s[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,n,o,r),Ne(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},c=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ue(t.piece.bufferIndex,a,t.piece.end,l,c),Ne(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<i.length;d++)ke(this,i[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)ke(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},s=e.length-1,n=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ue(e.bufferIndex,t,e.end,n,s),Ne(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===be)return t(be);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===be)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,s=this.offsetInBuffer(i.bufferIndex,i.start),n=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(s,n)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),s=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,s)}rbInsertRight(e,t){const i=new Ee(t,1);i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0;if(this.root===be)this.root=i,i.color=0;else if(e.right===be)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ae(this,i),i}rbInsertLeft(e,t){const i=new Ee(t,1);if(i.left=be,i.right=be,i.parent=be,i.size_left=0,i.lf_left=0,this.root===be)this.root=i,i.color=0;else if(e.left===be)e.left=i,i.parent=e;else{const t=ye(e.left);t.right=i,i.parent=t}return Ae(this,i),i}}var ze=i(64829);class Ge extends a.jG{constructor(e,t,i,s,n,r,a){super(),this._onDidChangeContent=this._register(new o.vl),this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._pieceTree=new Ve(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,s=this.getPositionAt(e),n=this.getPositionAt(i);return new g.Q(s.lineNumber,s.column,n.lineNumber,n.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),s=this.getOffsetAt(e.endLineNumber,e.endColumn);let n=0;const r=this._getEndOfLine(t),o=this.getEOL();if(r.length!==o.length){n=(r.length-o.length)*(e.endLineNumber-e.startLineNumber)}return s-i+n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const s=e.startLineNumber,n=e.endLineNumber;for(let t=s;t<=n;t++){const r=this.getLineContent(t),o=t===s?e.startColumn-1:0,a=t===n?e.endColumn-1:r.length;for(let e=o;e<a;e++)c.pc(r.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(n-s),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let s=this._mightContainRTL,n=this._mightContainUnusualLineTerminators,r=this._mightContainNonBasicASCII,o=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];o&&t._isTracked&&(o=!1);const i=t.range;if(t.text){let e=!0;r||(e=!c.aC(t.text),r=e),!s&&e&&(s=c.E_(t.text)),!n&&e&&(n=c.$X(t.text))}let l="",d=0,u=0,g=0;if(t.text){let e;[d,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();l=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:l,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ge._sortOpsAscending);let l=!1;for(let c=0,h=a.length-1;c<h;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const d=i||t?Ge._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=d[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let s="";i===t.startLineNumber&&(s=this.getLineContent(e.range.startLineNumber),-1!==c.HG(s))||u.push({lineNumber:i,oldContent:s})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],s=d[t],n=this.getValueInRange(i.range),r=i.rangeOffset+e;e+=i.text.length-n.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:s,text:n,textChange:new ze.k(i.rangeOffset,n,r,i.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._mightContainNonBasicASCII=r;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,s=this.getLineContent(t);0!==s.length&&s!==i&&-1===c.HG(s)&&m.push(t)}}return this._onDidChangeContent.fire(),new v.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,s=e[e.length-1].range,n=new g.Q(i.startLineNumber,i.startColumn,s.endLineNumber,s.endColumn);let r=i.startLineNumber,o=i.startColumn;const a=[];for(let h=0,p=e.length;h<p;h++){const i=e[h],s=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new g.Q(r,o,s.startLineNumber,s.startColumn))),i.text.length>0&&a.push(i.text),r=s.endLineNumber,o=s.endColumn}const c=a.join(""),[l,d,u]=(0,h.W)(c);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:c,eolCount:l,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ge._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const s=e[i],n=s.range.startLineNumber,r=s.range.startColumn,o=s.range.endLineNumber,a=s.range.endColumn;if(n===o&&r===a&&0===s.text.length)continue;s.text?(this._pieceTree.delete(s.rangeOffset,s.rangeLength),this._pieceTree.insert(s.rangeOffset,s.text,!0)):this._pieceTree.delete(s.rangeOffset,s.rangeLength);const c=new g.Q(n,r,o,a);t.push({range:c,rangeLength:s.rangeLength,text:s.text,rangeOffset:s.rangeOffset,forceMoveMarkers:s.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,s){return this._pieceTree.findMatchesLineByLine(e,t,i,s)}static _getInverseEditRanges(e){const t=[];let i=0,s=0,n=null;for(let r=0,o=e.length;r<o;r++){const o=e[r];let a,c,l;if(n?n.range.endLineNumber===o.range.startLineNumber?(a=i,c=s+(o.range.startColumn-n.range.endColumn)):(a=i+(o.range.startLineNumber-n.range.endLineNumber),c=o.range.startColumn):(a=o.range.startLineNumber,c=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;l=1===e?new g.Q(a,c,a,c+o.firstLineLength):new g.Q(a,c,a+e-1,o.lastLineLength+1)}else l=new g.Q(a,c,a,c);i=l.endLineNumber,s=l.endColumn,t.push(l),n=o}return t}static _sortOpsAscending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class je{constructor(e,t,i,s,n,r,o,a,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=s,this._crlf=n,this._containsRTL=r,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let n=0,r=i.length;n<r;n++){const e=i[n].buffer.replace(/\r\n|\r|\n/g,t),s=Fe(e);i[n]=new He(e,s)}const s=new Ge(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:s,disposable:s}}}class Ke{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,s=0,n=0,r=0,o=!0;for(let c=0,l=t.length;c<l;c++){const a=t.charCodeAt(c);13===a?c+1<l&&10===t.charCodeAt(c+1)?(r++,e[i++]=c+2,c++):(s++,e[i++]=c+1):10===a?(n++,e[i++]=c+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Pe(Me(e),s,n,r,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new He(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new je(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ye=i(86571),qe=i(26486),$e=i(62083),Qe=i(20761),Xe=i(90766),Ze=i(98067),Je=i(78381),et=i(74444),tt=i(20788);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const s=this._store.slice(0,e),n=this._store.slice(e+t),r=function(e,t){const i=[];for(let s=0;s<e;s++)i[s]=t;return i}(i,this._default);this._store=s.concat(r,n)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let s=0;s<t;s++)i[s]=this._default;this._store=(0,s.nK)(this._store,e,i)}}class st{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class nt{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new st(e,[t]))}finalize(){return this._tokens}}var rt=i(87469);class ot{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new ct(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends ot{constructor(e,t,i,s){super(e,t),this._textModel=i,this._languageIdCodec=s}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const s=this.getFirstInvalidLine();if(!s||s.lineNumber>t)break;const n=this._textModel.getLineContent(s.lineNumber),r=dt(this._languageIdCodec,i,this.tokenizationSupport,n,!0,s.startState);e.add(s.lineNumber,r.tokens),this.store.setEndState(s.lineNumber,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const s=this._textModel.getLanguageId(),n=this._textModel.getLineContent(e.lineNumber),r=n.substring(0,e.column-1)+t+n.substring(e.column-1),o=dt(this._languageIdCodec,s,this.tokenizationSupport,r,!0,i),a=new rt.f(o.tokens,r,this._languageIdCodec);if(0===a.getCount())return 0;const c=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const s=e.lineNumber,n=e.column,r=this.getStartState(s);if(!r)return null;const o=this._textModel.getLineContent(s),a=o.substring(0,n-1)+i+o.substring(n-1+t),c=this._textModel.getLanguageIdAtPosition(s,0),l=dt(this._languageIdCodec,c,this.tokenizationSupport,a,!0,r);return new rt.f(l.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let s=this.guessStartState(t);const n=this._textModel.getLanguageId();for(let r=t;r<=i;r++){const t=this._textModel.getLineContent(r),i=dt(this._languageIdCodec,n,this.tokenizationSupport,t,!0,s);e.add(r,i.tokens),s=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let s=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(o)),t=e,s=this.getStartState(o),s)))break}s||(s=this.tokenizationSupport.getInitialState()),i.reverse();const n=this._textModel.getLanguageId();let r=s;for(const o of i){r=dt(this._languageIdCodec,n,this.tokenizationSupport,o,!1,r).endState}return r}}class ct{constructor(e){this.lineCount=e,this._tokenizationStateStore=new lt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new r.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.L(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.W)(t.text);this.acceptChange(new Ye.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new r.D7("Start state must be defined");return{lineNumber:t,startState:i}}}class lt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.L(i.start,e):this._ranges.splice(t,1,new et.L(i.start,e),new et.L(e+1,i.endExclusive))}}addRange(e){et.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let s=i;for(;!(s>=this._ranges.length||e.endExclusive<this._ranges[s].start);)s++;const n=t-e.length;for(let r=s;r<this._ranges.length;r++)this._ranges[r]=this._ranges[r].delta(n);if(i===s){const s=new et.L(e.start,e.start+t);s.isEmpty||this._ranges.splice(i,0,s)}else{const t=Math.min(e.start,this._ranges[i].start),r=Math.max(e.endExclusive,this._ranges[s-1].endExclusive),o=new et.L(t,r+n);o.isEmpty?this._ranges.splice(i,s-i):this._ranges.splice(i,s-i,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function dt(e,t,i,s,n,o){let a=null;if(i)try{a=i.tokenizeEncoded(s,n,o.clone())}catch(c){(0,r.dz)(c)}return a||(a=(0,tt.Lh)(e.encodeLanguageId(t),o)),rt.f.convertToEndOffset(a.tokens,s.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Ze._p)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new nt,i=Je.W.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ye.M(e,t))}}class gt{constructor(){this._onDidChangeVisibleRanges=new o.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new pt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class pt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new Ye.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class mt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,s.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class ft extends a.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new o.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _t extends ft{constructor(e,t,i,s){super(t,i,s),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$e.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const i=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(i)return new rt.f(i,t,this._languageIdCodec)}return rt.f.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,i){return 0}tokenizeLineWithEdit(e,t,i){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vt=i(44432);const Ct=new Uint32Array(0).buffer;class Et{static deleteBeginning(e,t){return null===e||e===Ct?e:Et.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===Ct)return e;const i=bt(e),s=i[i.length-2];return Et.delete(e,t,s)}static delete(e,t,i){if(null===e||e===Ct||t===i)return e;const s=bt(e),n=s.length>>>1;if(0===t&&s[s.length-2]===i)return Ct;const r=rt.f.findIndexInTokensArray(s,t),o=r>0?s[r-1<<1]:0;if(i<s[r<<1]){const o=i-t;for(let e=r;e<n;e++)s[e<<1]-=o;return e}let a,c;o!==t?(s[r<<1]=t,a=r+1<<1,c=t):(a=r<<1,c=o);const l=i-t;for(let d=r+1;d<n;d++){const e=s[d<<1]-l;e>c&&(s[a++]=e,s[a++]=s[1+(d<<1)],c=e)}if(a===s.length)return e;const h=new Uint32Array(a);return h.set(s.subarray(0,a),0),h.buffer}static append(e,t){if(t===Ct)return e;if(e===Ct)return t;if(null===e)return e;if(null===t)return null;const i=bt(e),s=bt(t),n=s.length>>>1,r=new Uint32Array(i.length+s.length);r.set(i,0);let o=i.length;const a=i[i.length-2];for(let c=0;c<n;c++)r[o++]=s[c<<1]+a,r[o++]=s[1+(c<<1)];return r.buffer}static insert(e,t,i){if(null===e||e===Ct)return e;const s=bt(e),n=s.length>>>1;let r=rt.f.findIndexInTokensArray(s,t);if(r>0){s[r-1<<1]===t&&r--}for(let o=r;o<n;o++)s[o<<1]+=i;return e}}function bt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var St=i(25982);class yt{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let s=null;if(t<this._len&&(s=this._lineTokens[t]),null!==s&&s!==Ct)return new rt.f(bt(s),i,this._languageIdCodec);const n=new Uint32Array(2);return n[0]=i.length,n[1]=wt(this._languageIdCodec.encodeLanguageId(e)),new rt.f(n,i,this._languageIdCodec)}static _massageTokens(e,t,i){const s=i?bt(i):null;if(0===t){let t=!1;if(s&&s.length>1&&(t=St.x.getLanguageId(s[1])!==e),!t)return Ct}if(!s||0===s.length){const i=new Uint32Array(2);return i[0]=t,i[1]=wt(e),i.buffer}return s[s.length-2]=t,0===s.byteOffset&&s.byteLength===s.buffer.byteLength?s.buffer:s}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let s=0;s<t;s++)i[s]=null;this._lineTokens=s.nK(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,s,n){const r=yt._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,s);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=r,!!n&&!yt._equals(o,r)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=bt(e),s=bt(t);if(i.length!==s.length)return!1;for(let n=0,r=i.length;n<r;n++)if(i[n]!==s[n])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new u.y(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=Et.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=Et.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i<this._len&&(s=Et.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=Et.append(this._lineTokens[t],s),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const s=e.lineNumber-1;s>=this._len||(0!==t?(this._lineTokens[s]=Et.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[s]=Et.insert(this._lineTokens[s],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=0,o=0,a=!1;for(let e=n.startLineNumber;e<=n.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!0)&&(a=!0,r=e,o=e)}a&&i.push({fromLineNumber:r,toLineNumber:o})}return{changes:i}}}function wt(e){return(32768|e|2<<24|1024)>>>0}class Rt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),n=t[t.length-1].getRange();if(!s||!n)return e;i=e.plusRange(s).plusRange(n)}let n=null;for(let s=0,r=this._pieces.length;s<r;s++){const e=this._pieces[s];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};continue}const[t,o]=e.split(i);t.isEmpty()?n=n||{index:s}:o.isEmpty()||(this._pieces.splice(s,1,t,o),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=s.nK(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const s=i[Rt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!s)return t;const n=t.getCount(),r=s.getCount();let o=0;const a=[];let c=0,l=0;const h=(e,t)=>{e!==l&&(l=e,a[c++]=e,a[c++]=t)};for(let d=0;d<r;d++){const e=s.getStartCharacter(d),i=s.getEndCharacter(d),r=s.getMetadata(d),a=((1&r?2048:0)|(2&r?4096:0)|(4&r?8192:0)|(8&r?16384:0)|(16&r?16744448:0)|(32&r?4278190080:0))>>>0,c=~a>>>0;for(;o<n&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<n&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<n&&t.getEndOffset(o)<i;)h(t.getEndOffset(o),t.getMetadata(o)&c|r&a),o++;if(o<n)h(i,t.getMetadata(o)&c|r&a),t.getEndOffset(o)===i&&o++;else{const e=Math.min(Math.max(0,o-1),n-1);h(i,t.getMetadata(e)&c|r&a)}}for(;o<n;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new rt.f(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,s=e.length-1;for(;i<s;){let n=i+Math.floor((s-i)/2);if(e[n].endLineNumber<t)i=n+1;else{if(!(e[n].startLineNumber>t)){for(;n>i&&e[n-1].startLineNumber<=t&&t<=e[n-1].endLineNumber;)n--;return n}s=n-1}}return i}acceptEdit(e,t,i,s,n){for(const r of this._pieces)r.acceptEdit(e,t,i,s,n)}}var Lt,Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=Lt=class extends Qe._{constructor(e,t,i,s,n,r,c){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=i,this._attachedViews=s,this._languageService=n,this._languageConfigurationService=r,this._treeSitterService=c,this._semanticTokens=new Rt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new o.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new a.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(o.Jh.filter($e.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new At(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _t(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$e.OB.get(this._languageId)?this._tokens instanceof _t||this.createTokens(!0):this._tokens instanceof At||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,s]=(0,h.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,s,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new r.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this._tokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),s=this.getLineTokens(t.lineNumber),n=s.findTokenIndexAtOffset(t.column-1),[r,o]=Lt._findLanguageBoundaries(s,n),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(n>0&&r===t.column-1){const[r,o]=Lt._findLanguageBoundaries(s,n-1),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n-1)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let s=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)s=e.getStartOffset(r);let n=e.getLineContent().length;for(let r=t,o=e.getCount();r<o&&e.getLanguageId(r)===i;r++)n=e.getEndOffset(r);return[s,n]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new u.y(e,t)),s=this.getLineTokens(i.lineNumber);return s.getLanguageId(s.findTokenIndexAtOffset(i.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}};kt=Lt=Tt([xt(4,f.L),xt(5,_.JZ),xt(6,vt.ITreeSitterParserService)],kt);class At extends ft{constructor(e,t,i,s){super(e,t,i),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.HE),this._tokens=new yt(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.HE),this._attachedViewStates=this._register(new a.$w),this._register($e.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(s.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new mt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new ct(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,i]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$e.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,r.dz)(i),[null,null]}return[e,t]})();if(this._tokenizer=t&&i?new at(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const i=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==i&&e>=i&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yt(this._languageIdCodec),this._debugBackgroundStates=new ct(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,i]=(0,h.W)(t.text);this._tokens.acceptEdit(t.range,e,i),this._debugBackgroundTokens?.acceptEdit(t.range,e,i)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ye.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const i=new nt,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(i,e,t),n=this.setTokens(i.finalize());if(s)for(const r of n.changes)this._backgroundTokenizer.value?.requestTokens(r.fromLineNumber,r.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new nt;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!i.equals(s)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return i}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const s=this._textModel.validatePosition(new u.y(e,t));return this.forceTokenization(s.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(s,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const s=this._textModel.validatePosition(e);return this.forceTokenization(s.lineNumber),this._tokenizer.tokenizeLineWithEdit(s,t,i)}get hasTokens(){return this._tokens.hasTokens}}var Nt,It=i(64727),Ot=i(63591),Dt=i(47579),Mt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Pt=function(e,t){return function(i,s){t(i,s,e)}};function Ft(e,t){let i;return i="string"===typeof e?function(e){const t=new Ke;return t.acceptChunk(e),t.finish()}(e):v.nk(e)?function(e){const t=new Ke;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Ut=0;class Ht{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const s=this._source.read();if(null===s)return this._eos=!0,0===t?null:e.join("");if(s.length>0&&(e[t++]=s,i+=s.length),i>=65536)return e.join("")}}}const Bt=()=>{throw new Error("Invalid change accessor")};let Wt=class extends a.jG{static{Nt=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:m.R.tabSize,indentSize:m.R.indentSize,insertSpaces:m.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:m.R.trimAutoWhitespace,largeFileOptimizations:m.R.largeFileOptimizations,bracketPairColorizationOptions:m.R.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const i=$(e,t.tabSize,t.insertSpaces);return new v.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new v.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,s=null,n,r,h,d){super(),this._undoRedoService=n,this._languageService=r,this._languageConfigurationService=h,this.instantiationService=d,this._onWillDispose=this._register(new o.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ei((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new o.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new o.vl),this._eventEmitter=this._register(new ti),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gt,Ut++,this.id="$model"+Ut,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?l.r.parse("inmemory://model/"+Ut):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=Ft(e,i.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Nt.resolveOptions(this._buffer,i);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new F(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new K.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new z(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(kt,this,this._bracketPairs,m,this._attachedViews);const f=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new g.Q(1,1,f,this._buffer.getLineLength(f)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=_>Nt.LARGE_FILE_SIZE_THRESHOLD||f>Nt.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Nt.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Nt._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ut),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager=new j.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ge([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new r.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new It.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,r.Qg)();const{textBuffer:t,disposable:i}=Ft(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,s,n,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:s}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:n,isRedoing:r,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new It.HP([new It.Wn],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new It.HP([new It.mS],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,s=t.length;i<s;i++){const s=t[i],n=s.range,r=s.cachedAbsoluteStart-s.start,o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),a=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);s.cachedAbsoluteStart=o,s.cachedAbsoluteEnd=a,s.cachedVersionId=e,s.start=o-r,s.end=a-r,_e(s)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let s=1;s<=i;s++){const i=this._buffer.getLineLength(s);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,s="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,n="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new v.X2({tabSize:t,indentSize:i,insertSpaces:s,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:n,bracketPairColorizationOptions:r});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=$(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),s=this.getValueInRange(i,e);return t?this._buffer.getBOM()+s:s}createSnapshot(e=!1){return new Ht(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+s:s}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,s=e.startColumn;let n=Math.floor("number"!==typeof i||isNaN(i)?1:i),r=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(n<1)n=1,r=1;else if(n>t)n=t,r=this.getLineMaxColumn(n);else if(r<=1)r=1;else{const e=this.getLineMaxColumn(n);r>=e&&(r=e)}const o=e.endLineNumber,a=e.endColumn;let c=Math.floor("number"!==typeof o||isNaN(o)?1:o),l=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(c<1)c=1,l=1;else if(c>t)c=t,l=this.getLineMaxColumn(c);else if(l<=1)l=1;else{const e=this.getLineMaxColumn(c);l>=e&&(l=e)}return i===n&&s===r&&o===c&&a===l&&e instanceof g.Q&&!(e instanceof p.L)?e:new g.Q(n,r,c,l)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(c.pc(i))return!1}return!0}_validatePosition(e,t,i){const s=Math.floor("number"!==typeof e||isNaN(e)?1:e),n=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(s<1)return new u.y(1,1);if(s>r)return new u.y(r,this.getLineMaxColumn(r));if(n<=1)return new u.y(s,1);const o=this.getLineMaxColumn(s);if(n>=o)return new u.y(s,o);if(1===i){const e=this._buffer.getLineCharCode(s,n-2);if(c.pc(e))return new u.y(s,n-1)}return new u.y(s,n)}validatePosition(e){return this._assertNotDisposed(),e instanceof u.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,s,0))return!1;if(!this._isValidPosition(n,r,0))return!1;if(1===t){const e=s>1?this._buffer.getLineCharCode(i,s-2):0,t=r>1&&r<=this._buffer.getLineLength(n)?this._buffer.getLineCharCode(n,r-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),s=t.lineNumber,n=t.column,r=i.lineNumber,o=i.column;{const e=n>1?this._buffer.getLineCharCode(s,n-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,i=c.pc(e),a=c.pc(t);return i||a?s===r&&n===o?new g.Q(s,n-1,r,o-1):i&&a?new g.Q(s,n-1,r,o+1):i?new g.Q(s,n-1,r,o):new g.Q(s,n,r,o+1):new g.Q(s,n,r,o)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new g.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,s){return this._buffer.findMatchesLineByLine(e,t,i,s)}findMatches(e,t,i,s,n,r,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>g.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const c=[];let l;if(c.push(a.reduce(((e,t)=>g.Q.areIntersecting(e,t)?e.plusRange(t):(c.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return[];l=e=>this.findMatchesLineByLine(e,t,r,o)}else l=t=>Oe.hB.findMatches(this,new Oe.lt(e,i,s,n),t,r,o);return c.map(l).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let c=new g.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),l=this.findMatchesLineByLine(c,t,r,1);return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r),l.length>0?l[0]:(c=new g.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),l=this.findMatchesLineByLine(c,t,r,1),l.length>0?l[0]:null)}return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r)}findPreviousMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);return Oe.hB.findPreviousMatch(this,new Oe.lt(e,i,s,n),o,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof v.Wo?e:new v.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,s){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,s)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,s){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let s=!0;if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t];let r=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,s=t.startLineNumber>n.endLineNumber,o=n.startLineNumber>t.endLineNumber;if(!s&&!o){r=!0;break}}if(!r){s=!1;break}}if(s)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){const s=this._trimAutoWhitespaceLines[e],n=this.getLineMaxColumn(s);let r=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,o=i[e].text;if(!(s<t.startLineNumber||s>t.endLineNumber)&&(!(s===t.startLineNumber&&t.startColumn===n&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(s===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){r=!1;break}}if(r){const e=new g.Q(s,1,s,n);t.push(new v.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,s)}_applyUndo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(n,t,!0,!1,i,s)}_applyRedo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(n,t,!1,!0,i,s)}_applyUndoRedoEdits(e,t,i,s,n,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=s,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(n)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==o.length){for(let i=0,s=o.length;i<s;i++){const e=o[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,n=o.length;i<n;i++){const n=o[i],[a]=(0,h.W)(n.text);this._onDidChangeDecorations.fire();const c=n.range.startLineNumber,l=n.range.endLineNumber,d=l-c,g=a,p=Math.min(d,g),m=g-d,f=r-t-m+c,_=f,v=f+g,C=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new u.y(_,1)),this.getOffsetAt(new u.y(v,this.getLineMaxColumn(v))),0),E=It.uK.fromDecorations(C),b=new s.j3(E);for(let t=p;t>=0;t--){const i=c+t,s=f+t;b.takeFromEndWhile((e=>e.lineNumber>s));const n=b.takeFromEndWhile((e=>e.lineNumber===s));e.push(new It.U0(i,this.getLineContent(s),n))}if(p<d){const t=c+p;e.push(new It.E$(t+1,l))}if(p<g){const i=new s.j3(E),n=c+p,o=g-p,a=r-t-o+n+1,l=[],h=[];for(let e=0;e<o;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),l[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new It.bg(n+1,c+g,h,l))}t+=m}this._emitContentChangedEvent(new It.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new It.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new It.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Jt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let s=null;try{s=t(i)}catch(n){(0,r.dz)(n)}return i.addDecoration=Bt,i.changeDecoration=Bt,i.changeDecorationOptions=Bt,i.removeDecoration=Bt,i.deltaDecorations=Bt,s}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,r.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const s=e?this._decorations[e]:null;if(!s)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Zt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(s),delete this._decorations[s.id],null;const n=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);return this._decorationsTree.delete(s),s.reset(this.getVersionId(),r,o,n),s.setOptions(Zt[i]),this._decorationsTree.insert(s),s.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,s=t.length;i<s;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,r=!1){const o=this.getLineCount(),a=Math.min(o,Math.max(1,e)),c=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(c),h=new g.Q(a,1,c,l),d=this._getDecorationsInRange(h,i,n,r);return(0,s.E4)(d,this._decorationProvider.getDecorationsInRange(h,i,n)),d}getDecorationsInRange(e,t=0,i=!1,n=!1,r=!1){const o=this.validateRange(e),a=this._getDecorationsInRange(o,t,i,r);return(0,s.E4)(a,this._decorationProvider.getDecorationsInRange(o,t,i,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),s=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return It.uK.fromDecorations(s).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,s){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,r,t,i,s)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const s=this._validateRangeRelaxedNoAllocations(t),n=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),n,r,s),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const s=!(!i.options.overviewRuler||!i.options.overviewRuler.color),n=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const r=s!==n,o=function(e){return!!e.after||!!e.before}(t)!==zt(i);r||o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,s=!1){const n=this.getVersionId(),r=t.length;let o=0;const a=i.length;let c=0;this._onDidChangeDecorations.beginDeferredEmit();try{const l=new Array(a);for(;o<r||c<a;){let h=null;if(o<r){do{h=this._decorations[t[o++]]}while(!h&&o<r);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),s||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(c<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new oe(t,0,0),this._decorations[t]=h}const t=i[c],r=this._validateRangeRelaxedNoAllocations(t.range),o=Jt(t.options),a=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),d=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);h.ownerId=e,h.reset(n,a,d,r),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber),s||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),l[c]=h.id,c++}else h&&delete this._decorations[h.id]}return l}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function Vt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function zt(e){return!!e.options.after||!!e.options.before}Wt=Nt=Mt([Pt(4,Dt.$D),Pt(5,f.L),Pt(6,_.JZ),Pt(7,Ot._Y)],Wt);class Gt{constructor(){this._decorationsTree0=new ce,this._decorationsTree1=new ce,this._injectedTextDecorationsTree=new ce}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,s,n,r){const o=e.getVersionId(),a=this._intervalSearch(t,i,s,n,o,r);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,s,n,r){const o=this._decorationsTree0.intervalSearch(e,t,i,s,n,r),a=this._decorationsTree1.intervalSearch(e,t,i,s,n,r),c=this._injectedTextDecorationsTree.intervalSearch(e,t,i,s,n,r);return o.concat(a).concat(c)}getInjectedTextInInterval(e,t,i,s){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.intervalSearch(t,i,s,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,s,n){const r=e.getVersionId(),o=this._search(t,i,s,r,n);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,s,n){if(i)return this._decorationsTree1.search(e,t,s,n);{const i=this._decorationsTree0.search(e,t,s,n),r=this._decorationsTree1.search(e,t,s,n),o=this._injectedTextDecorationsTree.search(e,t,s,n);return i.concat(r).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),s=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(s)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){zt(e)?this._injectedTextDecorationsTree.insert(e):Vt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){zt(e)?this._injectedTextDecorationsTree.delete(e):Vt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){zt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Vt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,s){this._decorationsTree0.acceptReplace(e,t,i,s),this._decorationsTree1.acceptReplace(e,t,i,s),this._injectedTextDecorationsTree.acceptReplace(e,t,i,s)}}function jt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Kt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Yt extends Kt{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:v.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class qt{constructor(e){this.position=e?.position??v.ZS.Center,this.persistLane=e?.persistLane}}class $t extends Kt{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?n.Q1.fromHex(e):t.getColor(e.id)}}class Qt{static from(e){return e instanceof Qt?e:new Qt(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class Xt{static register(e){return new Xt(e)}static createDynamic(e){return new Xt(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?jt(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?jt(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Yt(e.overviewRuler):null,this.minimap=e.minimap?new $t(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new qt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?jt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?jt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?jt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?jt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?jt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?jt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?jt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?jt(e.afterContentClassName):null,this.after=e.after?Qt.from(e.after):null,this.before=e.before?Qt.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}Xt.EMPTY=Xt.register({description:"empty"});const Zt=[Xt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Xt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Xt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Xt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Jt(e){return e instanceof Xt?e:Xt.createDynamic(e)}class ei extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ti extends a.jG{constructor(){super(),this._fastEmitter=this._register(new o.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},87469:(e,t,i)=>{"use strict";i.d(t,{T:()=>o,f:()=>n});var s=i(25982);class n{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const i=n.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new n(s,e,t)}static createFromTextAndMetadata(e,t){let i=0,s="";const r=new Array;for(const{text:n,metadata:o}of e)r.push(i+n.length,o),i+=n.length,s+=n;return new n(new Uint32Array(r),s,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof n&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const s=t<<1,n=s+(i<<1);for(let r=s;r<n;r++)if(this._tokens[r]!==e._tokens[r])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[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=s.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return s.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return s.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return s.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return s.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return s.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new r(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let s=0;s<i;s++)e[s<<1]=e[s+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,s=(e.length>>>1)-1;for(;i<s;){const n=i+Math.floor((s-i)/2),r=e[n<<1];if(r===t)return n+1;r<t?i=n+1:r>t&&(s=n)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,s="";const r=new Array;let o=0;for(;;){const n=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==n&&(null===a||n<=a.offset)){s+=this._text.substring(o,n);const e=this._tokens[1+(t<<1)];r.push(s.length,e),t++,o=n}else{if(!a)break;if(a.offset>o){s+=this._text.substring(o,a.offset);const e=this._tokens[1+(t<<1)];r.push(s.length,e),o=a.offset}s+=a.text,r.push(s.length,a.tokenMetadata),i++}}return new n(new Uint32Array(r),s,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i<t;i++)e(i)}}class r{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let n=this._firstTokenIndex,r=e.getCount();n<r;n++){if(e.getStartOffset(n)>=i)break;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 r&&(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){const 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){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),s=this._source.getEndOffset(t);let n=this._source.getTokenText(t);return i<this._startOffset&&(n=n.substring(this._startOffset-i)),s>this._endOffset&&(n=n.substring(0,n.length-(s-this._endOffset))),n}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}function o(e,t){const i=t.lineNumber;if(!e.tokenization.isCheapToTokenize(i))return;e.tokenization.forceTokenization(i);const s=e.tokenization.getLineTokens(i),n=s.findTokenIndexAtOffset(t.column-1);return s.getStandardTokenType(n)}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>c,q6:()=>u,wm:()=>d});var s=i(64383),n=i(86571),r=i(83069),o=i(36677),a=i(75295);class c{static inverse(e,t,i){const s=[];let r=1,o=1;for(const l of e){const e=new c(new n.M(r,l.original.startLineNumber),new n.M(o,l.modified.startLineNumber));e.modified.isEmpty||s.push(e),r=l.original.endLineNumberExclusive,o=l.modified.endLineNumberExclusive}const a=new c(new n.M(r,t+1),new n.M(o,i+1));return a.modified.isEmpty||s.push(a),s}static clip(e,t,i){const s=[];for(const n of e){const e=n.original.intersect(t),r=n.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&s.push(new c(e,r))}return s}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new c(this.modified,this.original)}join(e){return new c(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new u(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new s.D7("not a valid diff");return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new u(new o.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new o.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(h(this.original.endLineNumberExclusive,e)&&h(this.modified.endLineNumberExclusive,t))return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new u(o.Q.fromPositions(new r.y(this.original.startLineNumber,1),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new r.y(this.modified.startLineNumber,1),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new u(o.Q.fromPositions(l(new r.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),l(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(l(new r.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),l(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new s.D7}}function l(e,t){if(e.lineNumber<1)return new r.y(1,1);if(e.lineNumber>t.length)return new r.y(t.length,t[t.length-1].length+1);const i=t[e.lineNumber-1];return e.column>i.length+1?new r.y(e.lineNumber,i.length+1):e}function h(e,t){return e>=1&&e<=t.length}class d extends c{static fromRangeMappings(e){const t=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.originalRange)))),i=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.modifiedRange))));return new d(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){return new d(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new d(this.original,this.modified,[this.toRangeMapping()])}}class u{static assertSorted(e){for(let t=1;t<e.length;t++){const i=e[t-1],n=e[t];if(!i.originalRange.getEndPosition().isBeforeOrEqual(n.originalRange.getStartPosition())||!i.modifiedRange.getEndPosition().isBeforeOrEqual(n.modifiedRange.getStartPosition()))throw new s.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new u(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new a.WR(this.originalRange,t)}}},87758:(e,t,i)=>{"use strict";i.d(t,{G8:()=>_,Hm:()=>d,Hp:()=>a,K6:()=>o,MB:()=>c,Xp:()=>u,Zp:()=>f,dV:()=>r,iM:()=>m,ih:()=>h,jA:()=>n,jq:()=>p,vf:()=>l,vx:()=>g});var s=i(78209);const n="editor.action.showHover",r="editor.action.showDefinitionPreviewHover",o="editor.action.scrollUpHover",a="editor.action.scrollDownHover",c="editor.action.scrollLeftHover",l="editor.action.scrollRightHover",h="editor.action.pageUpHover",d="editor.action.pageDownHover",u="editor.action.goToTopHover",g="editor.action.goToBottomHover",p="editor.action.increaseHoverVerbosityLevel",m=s.kg({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),f="editor.action.decreaseHoverVerbosityLevel",_=s.kg({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")},87784:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var s=i(64383),n=i(5662),r=i(44026);const o={};class a{constructor(e,t,i,s,r){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=s,this.fallbackRangeProvider=r,this.id="syntax",this.disposables=new n.Cm,r&&this.disposables.add(r);for(const n of t)"function"===typeof n.onDidChange&&this.disposables.add(n.onDidChange(i))}compute(e){return function(e,t,i){let n=null;const r=e.map(((e,r)=>Promise.resolve(e.provideFoldingRanges(t,o,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:r,kind:t.kind})}}),s.M_)));return Promise.all(r).then((e=>n))}(this.providers,this.editorModel,e).then((t=>{if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),s=new c(t);let n;const r=[];for(const o of i)if(n){if(o.start>n.start)if(o.end<=n.end)r.push(n),n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);else{if(o.start>n.end){do{n=r.pop()}while(n&&o.start>n.end);n&&r.push(n),n=o}s.add(o.start,o.end,o.kind&&o.kind.value,r.length)}}else n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);return s.toIndentRanges()}(t,this.foldingRangesLimit)}return this.fallbackRangeProvider?.compute(e)??null}))}dispose(){this.disposables.dispose()}}class c{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,s){if(e>r.yy||t>r.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._nestingLevels[n]=s,this._types[n]=i,this._length++,s<30&&(this._nestingLevelCounts[s]=(this._nestingLevelCounts[s]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new r.tz(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let r=0;r<this._nestingLevelCounts.length;r++){const s=this._nestingLevelCounts[r];if(s){if(s+t>e){i=r;break}t+=s}}const s=new Uint32Array(e),n=new Uint32Array(e),o=[];for(let r=0,a=0;r<this._length;r++){const c=this._nestingLevels[r];(c<i||c===i&&t++<e)&&(s[a]=this._startIndexes[r],n[a]=this._endIndexes[r],o[a]=this._types[r],a++)}return new r.tz(s,n,o)}}}},87908:(e,t,i)=>{"use strict";i.d(t,{$C:()=>O,BE:()=>H,Bc:()=>k,O4:()=>w,Of:()=>P,XR:()=>M,hZ:()=>g,jT:()=>x,jU:()=>U,ls:()=>b,lw:()=>h,m9:()=>T,n0:()=>d,qB:()=>W,r_:()=>A,wA:()=>C,xZ:()=>I,xq:()=>l,zM:()=>_});var s=i(25890),n=i(10146),r=i(98067),o=i(24329),a=i(26486),c=i(78209);const l=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&s.aI(e,t);return new g(t,!i)}let i=!1;for(const s in t)if(t.hasOwnProperty(s)){const n=p(e[s],t[s]);n.didChange&&(e[s]=n.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return _(e,this.defaultValue)}}function C(e,t,i,s){if("undefined"===typeof e)return t;let n=parseInt(e,10);return isNaN(n)?t:(n=Math.max(i,n),n=Math.min(s,n),0|n)}class E extends f{static clampedInt(e,t,i,s){return C(e,t,i,s)}constructor(e,t,i,s,n,r=void 0){"undefined"!==typeof r&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=n),super(e,t,i,r),this.minimum=s,this.maximum=n}validate(e){return E.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function b(e,t,i,s){if("undefined"===typeof e)return t;const n=S.float(e,t);return S.clamp(n,i,s)}class S extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,n){"undefined"!==typeof n&&(n.type="number",n.default=i),super(e,t,i,n),this.validationFn=s}validate(e){return this.validationFn(S.float(e,this.defaultValue))}}class y extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return y.string(e,this.defaultValue)}}function w(e,t,i,s){return"string"!==typeof e?t:s&&e in s?s[e]:-1===i.indexOf(e)?t:e}class R extends f{constructor(e,t,i,s,n=void 0){"undefined"!==typeof n&&(n.type="string",n.enum=s,n.default=i),super(e,t,i,n),this._allowedValues=s}validate(e){return w(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,s,n,r,o=void 0){"undefined"!==typeof o&&(o.type="string",o.enum=n,o.default=s),super(e,t,i,o),this._allowedValues=n,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var T,x;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(T||(T={}));class k extends u{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",k.OFF,{anyOf:[{type:"boolean",description:c.kg("fontLigatures","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:c.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:c.kg("fontLigaturesGeneral","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"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?k.OFF:"true"===e?k.ON:e:Boolean(e)?k.ON:k.OFF}}class A extends u{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",A.OFF,{anyOf:[{type:"boolean",description:c.kg("fontVariations","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:c.kg("fontVariationSettings","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:c.kg("fontVariationsGeneral","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"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?A.OFF:"true"===e?A.TRANSLATE:e:Boolean(e)?A.TRANSLATE:A.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class N extends u{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",U.fontWeight,{anyOf:[{type:"number",minimum:N.MINIMUM_VALUE,maximum:N.MAXIMUM_VALUE,errorMessage:c.kg("fontWeightErrorMessage",'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:N.SUGGESTION_VALUES}],default:U.fontWeight,description:c.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(E.clampedInt(e,U.fontWeight,N.MINIMUM_VALUE,N.MAXIMUM_VALUE))}}class I extends m{constructor(){super(146)}compute(e,t,i){return I.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){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const n=(i+e.viewLineCount+s)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,n=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(n*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,o=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=n>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,E=d?2:3;let b=Math.floor(n*s);const S=b/n;let y=!1,w=!1,R=E*u,L=u/n,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:c,desiredRatio:l,minimapLineCount:d}=I.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:a,pixelRatio:n});if(_/d>1)y=!0,w=!0,u=1,R=1,L=u/n;else{let s=!1,h=u+1;if("fit"===p){const e=Math.ceil((r+_+c)*R);C&&o&&v<=t.stableFitRemainingWidth?(s=!0,h=t.stableFitMaxMinimapScale):s=e>b}if("fill"===p||s){y=!0;const s=u;R=Math.min(a*n,Math.max(1,Math.floor(1/l))),C&&o&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(R/E))),u>s&&(T=Math.min(2,u/s)),L=u/n/T,b=Math.ceil(Math.max(i,r+_+c)*R),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const x=Math.floor(g*L),k=Math.min(x,Math.max(0,Math.floor((v-f-2)*L/(c+L)))+l);let A=Math.floor(n*k);const N=A/n;A=Math.floor(A*T);return{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-k-f,minimapWidth:k,minimapHeightIsEditorHeight:y,minimapIsSampling:w,minimapScale:u,minimapLineHeight:R,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:b,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,s=0|t.outerHeight,n=0|t.lineHeight,r=0|t.lineNumbersDigitCount,o=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,c=t.pixelRatio,l=t.viewLineCount,h=e.get(138),u="inherit"===h?e.get(137):h,g="inherit"===u?e.get(133):u,p=e.get(136),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),C=e.get(106),E=e.get(84),b=e.get(73),S=e.get(104),y=S.verticalScrollbarSize,w=S.verticalHasArrows,R=S.arrowSize,L=S.horizontalScrollbarSize,T=e.get(43),x="never"!==e.get(111);let k=e.get(66);T&&x&&(k+=16);let A=0;if(_){const e=Math.max(r,v);A=Math.round(e*a)}let N=0;f&&(N=n*t.glyphMarginDecorationLaneCount);let O=0,D=O+N,M=D+A,P=M+k;const F=i-N-A-k;let U=!1,H=!1,B=-1;"inherit"===u&&m?(U=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(B=p);const W=I._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:n,typicalHalfwidthCharacterWidth:o,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:E.top,paddingBottom:E.bottom,minimap:b,verticalScrollbarWidth:y,viewLineCount:l,remainingWidth:F,isViewportWrapping:H},t.memory||new d);0!==W.renderMinimap&&0===W.minimapLeft&&(O+=W.minimapWidth,D+=W.minimapWidth,M+=W.minimapWidth,P+=W.minimapWidth);const V=F-W.minimapWidth,z=Math.max(1,Math.floor((V-y-2)/o)),G=w?R:0;return H&&(B=Math.max(1,z),"bounded"===g&&(B=Math.min(B,p))),{width:i,height:s,glyphMarginLeft:O,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:D,lineNumbersWidth:A,decorationsLeft:M,decorationsWidth:k,contentLeft:P,contentWidth:V,minimap:W,viewportColumn:z,isWordWrapMinified:U,isViewportWrapping:H,wrappingColumn:B,verticalScrollbarWidth:y,horizontalScrollbarHeight:L,overviewRuler:{top:G,width:y,height:s-2*G,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(x||(x={}));function O(e){const t=e.get(99);return"editable"===t?e.get(92):"on"!==t}function D(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const M="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const s=i.indexOf(e);return-1===s?t:i[s]}const U={fontFamily:r.zx?"Menlo, Monaco, 'Courier New', monospace":r.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.zx?12:14,lineHeight:0,letterSpacing:0},H=[];function B(e){return H[e.id]=e,e}const W={acceptSuggestionOnCommitCharacter:B(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:c.kg("acceptSuggestionOnCommitCharacter","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:B(new R(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",c.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:c.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:B(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[c.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),c.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),c.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:c.kg("accessibilitySupport","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:B(new E(3,"accessibilityPageSize",10,1,1073741824,{description:c.kg("accessibilityPageSize","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"]})),ariaLabel:B(new y(4,"ariaLabel",c.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:B(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:B(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:c.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:B(new R(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),c.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:B(new R(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),c.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:B(new R(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new R(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",c.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:c.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new R(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",c.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),c.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:c.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new L(12,"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:[c.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),c.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),c.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),c.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),c.kg("editor.autoIndent.full","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:c.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:B(new v(13,"automaticLayout",!1)),autoSurround:B(new R(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[c.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),c.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),c.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:c.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:B(new class extends u{constructor(){const e={enabled:o.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:o.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("bracketPairColorization.enabled","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:c.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:B(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),c.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),c.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:c.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[c.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),c.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),c.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:c.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:c.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:c.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[c.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),c.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),c.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:c.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:B(new v(117,"stickyTabStops",!1,{description:c.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:B(new v(17,"codeLens",!0,{description:c.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new y(18,"codeLensFontFamily","",{description:c.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new E(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:c.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:B(new v(20,"colorDecorators",!0,{description:c.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:B(new R(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[c.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),c.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:c.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:B(new E(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:c.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:B(new v(22,"columnSelection",!1,{description:c.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:B(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:c.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:c.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:B(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:B(new v(25,"copyWithSyntaxHighlighting",!0,{description:c.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new L(26,"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:c.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new R(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[c.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),c.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),c.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:c.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new L(28,"cursorStyle",T.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return T.Line;case"block":return T.Block;case"underline":return T.Underline;case"line-thin":return T.LineThin;case"block-outline":return T.BlockOutline;case"underline-thin":return T.UnderlineThin}}),{description:c.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new E(29,"cursorSurroundingLines",0,0,1073741824,{description:c.kg("cursorSurroundingLines","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:B(new R(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[c.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),c.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:c.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:B(new E(31,"cursorWidth",0,0,1073741824,{markdownDescription:c.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:B(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:B(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:B(new v(34,"domReadOnly",!1)),dragAndDrop:B(new v(35,"dragAndDrop",!0,{description:c.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:B(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:c.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:B(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("dropIntoEditor.enabled","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:c.kg("dropIntoEditor.showDropSelector","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:[c.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),c.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:w(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:B(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:c.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:c.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:c.kg("editor.stickyScroll.defaultModel","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:c.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:E.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:w(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:B(new R(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[c.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),c.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),c.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:c.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:B(new y(39,"extraEditorClassName","")),fastScrollSensitivity:B(new S(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:c.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:B(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:c.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[c.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),c.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),c.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:c.kg("find.seedSearchStringFromSelection","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:[c.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),c.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),c.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:c.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:c.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:c.kg("find.addExtraSpaceOnTop","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:c.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":w(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":w(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:B(new v(42,"fixedOverflowWidgets",!1)),folding:B(new v(43,"folding",!0,{description:c.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new R(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[c.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),c.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:c.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new v(45,"foldingHighlight",!0,{description:c.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new v(46,"foldingImportsByDefault",!1,{description:c.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new E(47,"foldingMaximumRegions",5e3,10,65e3,{description:c.kg("foldingMaximumRegions","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:B(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:c.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:B(new y(49,"fontFamily",U.fontFamily,{description:c.kg("fontFamily","Controls the font family.")})),fontInfo:B(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:B(new k),fontSize:B(new class extends f{constructor(){super(52,"fontSize",U.fontSize,{type:"number",minimum:6,maximum:100,default:U.fontSize,description:c.kg("fontSize","Controls the font size in pixels.")})}validate(e){const t=S.float(e,this.defaultValue);return 0===t?U.fontSize:S.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:B(new N),fontVariations:B(new A),formatOnPaste:B(new v(55,"formatOnPaste",!1,{description:c.kg("formatOnPaste","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:B(new v(56,"formatOnType",!1,{description:c.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new v(57,"glyphMargin",!0,{description:c.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:B(new class extends u{constructor(){const 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:[c.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),c.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),c.kg("editor.gotoLocation.multiple.goto","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(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:c.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:c.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:c.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:c.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:c.kg("editor.editor.gotoLocation.multipleReferences","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:c.kg("alternativeDefinitionCommand","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:c.kg("alternativeTypeDefinitionCommand","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:c.kg("alternativeDeclarationCommand","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:c.kg("alternativeImplementationCommand","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:c.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{multiple:w(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??w(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??w(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??w(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??w(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??w(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??w(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:y.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:y.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:y.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:y.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:y.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:y.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}),hideCursorInOverviewRuler:B(new v(59,"hideCursorInOverviewRuler",!1,{description:c.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:B(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:c.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:c.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:c.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:c.kg("hover.hidingDelay","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:c.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:E.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:E.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:B(new v(61,"inDiffEditor",!1)),letterSpacing:B(new S(64,"letterSpacing",U.letterSpacing,(e=>S.clamp(e,-5,20)),{description:c.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:B(new class extends u{constructor(){const e={enabled:x.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[x.Off,x.OnCode,x.On],default:e.enabled,enumDescriptions:[c.kg("editor.lightbulb.enabled.off","Disable the code action menu."),c.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),c.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:c.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:w(e.enabled,this.defaultValue.enabled,[x.Off,x.OnCode,x.On])}}}),lineDecorationsWidth:B(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return E.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?E.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:B(new class extends S{constructor(){super(67,"lineHeight",U.lineHeight,(e=>S.clamp(e,0,150)),{markdownDescription:c.kg("lineHeight","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.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:B(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[c.kg("lineNumbers.off","Line numbers are not rendered."),c.kg("lineNumbers.on","Line numbers are rendered as absolute number."),c.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),c.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:c.kg("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:B(new E(69,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new v(70,"linkedEditing",!1,{description:c.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:B(new v(71,"links",!0,{description:c.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new R(72,"matchBrackets","always",["always","near","never"],{description:c.kg("matchBrackets","Highlight matching brackets.")})),minimap:B(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:c.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:c.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[c.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),c.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),c.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:c.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:c.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:c.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:c.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:c.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:c.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:c.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:c.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:c.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:c.kg("minimap.sectionHeaderLetterSpacing","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;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),autohide:_(t.autohide,this.defaultValue.autohide),size:w(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:w(t.side,this.defaultValue.side,["right","left"]),showSlider:w(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(t.renderCharacters,this.defaultValue.renderCharacters),scale:E.clampedInt(t.scale,1,1,3),maxColumn:E.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:S.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:S.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}),mouseStyle:B(new R(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new S(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:c.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:B(new v(76,"mouseWheelZoom",!1,{markdownDescription:r.zx?c.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):c.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new v(77,"multiCursorMergeOverlapping",!0,{description:c.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new L(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[c.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),c.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:c.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"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).")})),multiCursorPaste:B(new R(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[c.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),c.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:c.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:B(new E(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:c.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:B(new R(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[c.kg("occurrencesHighlight.off","Does not highlight occurrences."),c.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),c.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:c.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:B(new v(82,"overviewRulerBorder",!0,{description:c.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new E(83,"overviewRulerLanes",3,0,3)),padding:B(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:c.kg("padding.top","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:c.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:E.clampedInt(t.top,0,0,1e3),bottom:E.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:B(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:c.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:c.kg("pasteAs.showPasteSelector","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:[c.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),c.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:w(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:B(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:c.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:c.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:B(new R(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[c.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),c.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:c.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:B(new class extends u{constructor(){super(88,"placeholder",void 0)}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:B(new v(89,"definitionLinkOpensInPeek",!1,{description:c.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:B(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[c.kg("on","Quick suggestions show inside the suggest widget"),c.kg("inline","Quick suggestions show as ghost text"),c.kg("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:c.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:c.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:c.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:c.kg("quickSuggestions","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#`")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:s}=e,n=["on","inline","off"];let r,o,a;return r="boolean"===typeof t?t?"on":"off":w(t,this.defaultValue.other,n),o="boolean"===typeof i?i?"on":"off":w(i,this.defaultValue.comments,n),a="boolean"===typeof s?s?"on":"off":w(s,this.defaultValue.strings,n),{other:r,comments:o,strings:a}}}),quickSuggestionsDelay:B(new E(91,"quickSuggestionsDelay",10,0,1073741824,{description:c.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:B(new v(92,"readOnly",!1)),readOnlyMessage:B(new class extends u{constructor(){super(93,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:B(new v(94,"renameOnType",!1,{description:c.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:c.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new v(95,"renderControlCharacters",!0,{description:c.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new R(96,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:c.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new R(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",c.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:c.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new v(98,"renderLineHighlightOnlyWhenFocus",!1,{description:c.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new R(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new R(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",c.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),c.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),c.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:c.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new E(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:B(new v(102,"roundedSelection",!0,{description:c.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new class extends u{constructor(){const e=[],t={type:"number",description:c.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:c.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:c.kg("rulers","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)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:E.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:E.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:B(new class extends u{constructor(){const 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(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),c.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),c.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[c.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),c.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),c.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:c.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:c.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:c.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:c.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:c.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","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;const t=e,i=E.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=E.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:E.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:D(t.vertical,this.defaultValue.vertical),horizontal:D(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:E.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:E.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:B(new E(105,"scrollBeyondLastColumn",4,0,1073741824,{description:c.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new v(106,"scrollBeyondLastLine",!0,{description:c.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new v(107,"scrollPredominantAxis",!0,{description:c.kg("scrollPredominantAxis","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:B(new v(108,"selectionClipboard",!0,{description:c.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:B(new v(109,"selectionHighlight",!0,{description:c.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new v(110,"selectOnLineNumbers",!0)),showFoldingControls:B(new R(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[c.kg("showFoldingControls.always","Always show the folding controls."),c.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),c.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:c.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new v(112,"showUnused",!0,{description:c.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new v(141,"showDeprecated",!0,{description:c.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:B(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:c.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[c.kg("editor.inlayHints.on","Inlay hints are enabled"),c.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),c.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:c.kg("inlayHints.fontSize","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:c.kg("inlayHints.fontFamily","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:c.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:w(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:E.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:B(new R(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[c.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),c.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),c.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),c.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:c.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:B(new class extends u{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:c.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:c.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:B(new v(115,"smoothScrolling",!1,{description:c.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new E(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:B(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,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(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[c.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),c.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:c.kg("suggest.insertMode","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:c.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:c.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:c.kg("suggest.shareSuggestSelections","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:[c.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),c.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),c.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:c.kg("suggest.selectionMode","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:c.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:c.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:c.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:c.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:c.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:c.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:c.kg("deprecated","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:c.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.matchOnWordStartOnly","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:c.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:c.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:w(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:w(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:w(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:B(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),c.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),c.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:c.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:c.kg("inlineSuggest.suppressSuggestions","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.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:w(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:B(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:c.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[c.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),c.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),c.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:c.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:c.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}),inlineCompletionsAccessibilityVerbose:B(new v(150,"inlineCompletionsAccessibilityVerbose",!1,{description:c.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:B(new E(120,"suggestFontSize",0,0,1e3,{markdownDescription:c.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:B(new E(121,"suggestLineHeight",0,0,1e3,{markdownDescription:c.kg("suggestLineHeight","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:B(new v(122,"suggestOnTriggerCharacters",!0,{description:c.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new R(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[c.kg("suggestSelection.first","Always select the first suggestion."),c.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),c.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:c.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new R(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[c.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),c.kg("tabCompletion.off","Disable tab completions."),c.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:c.kg("tabCompletion","Enables tab completions.")})),tabIndex:B(new E(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:B(new class extends u{constructor(){const e={nonBasicASCII:M,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:M,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.nonBasicASCII,description:c.kg("unicodeHighlight.nonBasicASCII","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.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:c.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:c.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeComments,description:c.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeStrings,description:c.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:c.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:c.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(n.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(n.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const s=super.applyUpdate(e,t);return i?new g(s.newValue,!0):s}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,M,[!0,!1,M]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,M,[!0,!1,M]),includeStrings:F(t.includeStrings,M,[!0,!1,M]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[s,n]of Object.entries(e))!0===n&&(i[s]=!0);return i}}),unusualLineTerminators:B(new R(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[c.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),c.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),c.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:c.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:B(new v(128,"useShadowDOM",!0)),useTabStops:B(new v(129,"useTabStops",!0,{description:c.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:B(new R(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[c.kg("wordBreak.normal","Use the default line break rule."),c.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:c.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:B(new class extends u{constructor(){super(131,"wordSegmenterLocales",[],{anyOf:[{description:c.kg("wordSegmenterLocales","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:"string"},{description:c.kg("wordSegmenterLocales","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"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"===typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}),wordSeparators:B(new y(132,"wordSeparators",a.J3,{description:c.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new R(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[c.kg("wordWrap.off","Lines will never wrap."),c.kg("wordWrap.on","Lines will wrap at the viewport width."),c.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),c.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:c.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:B(new y(134,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:B(new y(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:B(new E(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:c.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:B(new R(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new R(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:B(new class extends m{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),"default"===t.get(74)?s.push("mouse-default"):"copy"===t.get(74)&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}),defaultColorDecorators:B(new v(148,"defaultColorDecorators",!1,{markdownDescription:c.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:B(new class extends m{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:B(new v(145,"tabFocusMode",!1,{markdownDescription:c.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:B(new I),wrappingInfo:B(new class extends m{constructor(){super(147)}compute(e,t,i){const s=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}),wrappingIndent:B(new class extends u{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[c.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),c.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),c.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),c.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:c.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:B(new class extends u{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[c.kg("wrappingStrategy.simple","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."),c.kg("wrappingStrategy.advanced","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:c.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return w(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,a0:()=>p,dQ:()=>h,nb:()=>u,rm:()=>g,un:()=>l});var s=i(66782),n=i(51241),r=i(5662),o=i(49154),a=i(22311),c=i(94958);function l(e,t){return void 0!==t?new m(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx):new m(new a.nA(void 0,void 0,e),e,void 0,void 0,void 0,n.nx)}function h(e,t,i){return new f(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx,i)}function d(e,t){return new m(new a.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??n.nx)}function u(e,t){return new m(new a.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??n.nx)}function g(e,t){let i,s;void 0===t?(i=e,s=void 0):(s=e,i=t);const o=new r.Cm;return new m(new a.nA(s,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),n.nx)}function p(e,t){let i,s,o;return void 0===t?(i=e,s=void 0):(s=e,i=t),new m(new a.nA(s,void 0,i),(e=>{o?o.clear():o=new r.Cm;const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>{o&&(o.dispose(),o=void 0)}),n.nx)}(0,o.N2)(d);class m extends o.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s,n=void 0,r){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=s,this._handleLastObserverRemoved=n,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),(0,c.tZ)()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,i=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const n=t&&!this._equalityComparator(i,this.value);if((0,c.tZ)()?.handleDerivedRecomputed(this,{oldValue:i,newValue:this.value,change:void 0,didChange:n,hadValue:t}),n)for(const r of this.observers)r.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,s.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),s=3===this.state;if(i&&(1===this.state||s)&&(this.state=2,s))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class f extends m{constructor(e,t,i,s,n=void 0,r,o){super(e,t,i,s,n,r),this.set=o}}},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>E});var s,n=i(90766),r=i(5662),o=i(74320),a=i(4853),c=i(62083),l=i(84001),h=i(14718),d=i(63591),u=i(9711),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const s=i[0].score[0];for(let n=0;n<i.length;n++){const{score:e,completion:t}=i[n];if(e[0]!==s)break;if(t.preselect)return n}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}class _ extends m{constructor(){super("recentlyUsed"),this._cache=new o.qK(300,.66),this._seq=0}memorize(e,t,i){const s=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(s,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const s=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(s))return super.select(e,t,i);const n=i[0].score[0];let r=-1,o=-1,a=-1;for(let c=0;c<i.length&&i[c].score[0]===n;c++){const t=`${e.getLanguageId()}/${i[c].textLabel}`,s=this._cache.peek(t);if(s&&s.touch>a&&s.type===i[c].completion.kind&&s.insertText===i[c].completion.insertText&&(a=s.touch,o=c),i[c].completion.preselect&&-1===r)return c}return-1!==o?o:-1!==r?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}class v extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:s}=e.getWordUntilPosition(t),n=`${e.getLanguageId()}/${s}`;this._trie.set(n,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:s}=e.getWordUntilPosition(t);if(!s)return super.select(e,t,i);const n=`${e.getLanguageId()}/${s}`;let r=this._trie.get(n);if(r||(r=this._trie.findSubstr(n)),r)for(let o=0;o<i.length;o++){const{kind:e,insertText:t}=i[o].completion;if(e===r.type&&t===r.insertText)return o}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:c.HC.fromString(i.type),this._trie.set(t,i)}}}let C=class{static{s=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",v],["recentlyUsed",_],["first",f]])}static{this._storagePrefix="suggest/memories"}constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new r.Cm,this._persistSoon=new n.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){const i=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(this._strategy?.name!==i){this._saveState();const e=s._strategyCtors.get(i)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${s._storagePrefix}/${i}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(n){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${s._storagePrefix}/${this._strategy.name}`,t,e,1)}}};C=s=g([p(0,u.CS),p(1,l.pG)],C);const E=(0,d.u1)("ISuggestMemories");(0,h.v)(E,C,1)},88443:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var s=i(8597),n=i(23034),r=i(91581),o=i(17390),a=i(41234),c=(i(10713),i(78209)),l=i(5662),h=i(42904);const d=c.kg("defaultLabel","input");class u extends o.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new l.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const o=i.appendCaseSensitiveLabel||"",c=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.bW)());if(this.showCommonFindToggles){this.regex=this._register(new n.Ix({appendTitle:u,isChecked:!1,hoverDelegate:_,...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 n.nV({appendTitle:c,isChecked:!1,hoverDelegate:_,...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 n.bc({appendTitle:o,isChecked:!1,hoverDelegate:_,...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)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let n=-1;t.equals(17)?n=(i+1)%e.length:t.equals(15)&&(n=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):n>=0&&e[n].focus(),s.fs.stop(t,!0)}}}))}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?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(s.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(s.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),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())),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(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex?.enable(),this.wholeWords?.enable(),this.caseSensitive?.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex?.disable(),this.wholeWords?.disable(),this.caseSensitive?.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new l.Cm;for(const t of 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()}updateInputBoxPadding(e=!1){this.inputBox.paddingRight=e?0:(this.caseSensitive?.width()??0)+(this.wholeWords?.width()??0)+(this.regex?.width()??0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive?.checked??!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){return this.wholeWords?.checked??!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){return this.regex?.checked??!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){this.caseSensitive?.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()}}},88608:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return"json"===t.format?e.escapeJSONString(t,i):e.escapeYSONString(t,i)}function s(i,s){let n,r;return i.$key&&"yson"===s.format?(n=e.unescapeKeyValue(i.$value),r=e.unescapeKeyValue(i.$decoded_value)):(n=i.$value,r=i.$decoded_value),i.$binary?s.binaryAsHex?e.escapeYSONBinaryString(s,n):t(s,n):s.showDecoded?e.escapeJSONString(s,r):t(s,n)}return s.isScalar=!0,s}},88807:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var s=i(8597),n=i(92403),r=i(41234),o=i(5662);class a{constructor(){let e;this._onDidWillResize=new r.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new r.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new o.Cm,this._size=new s.fg(0,0),this._minSize=new s.fg(0,0),this._maxSize=new s.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new n.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new n.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new n.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:n.B.North}),this._southSash=new n.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:n.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(r.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(r.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((s=>{e&&(i=s.currentX-s.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((s=>{e&&(i=-(s.currentX-s.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((s=>{e&&(t=-(s.currentY-s.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((s=>{e&&(t=s.currentY-s.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(r.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(r.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,s){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=s?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(i,Math.min(r,e)),t=Math.max(n,Math.min(o,t));const a=new s.fg(t,e);s.fg.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88952:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(83069),a=i(36677),c=i(75326),l=i(60002),h=i(16223),d=i(87289),u=i(78209),g=i(27195),p=i(66261),m=i(47612);const f=(0,p.x1A)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",u.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends r.ks{constructor(){super({id:"editor.action.jumpToBracket",label:u.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){b.get(t)?.jumpToBracket()}}class v extends r.ks{constructor(){super({id:"editor.action.selectToBracket",label:u.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&!1===i.selectBrackets&&(s=!1),b.get(t)?.selectToBracket(s)}}class C extends r.ks{constructor(){super({id:"editor.action.removeBrackets",label:u.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){b.get(t)?.removeBrackets(this.id)}}class E{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class b extends n.jG{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(b.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new s.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),s=e.bracketPairs.matchBracket(i);let n=null;if(s)s[0].containsPosition(i)&&!s[1].containsPosition(i)?n=s[1].getStartPosition():s[1].containsPosition(i)&&(n=s[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)n=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(n=t.range.getStartPosition())}}return n?new c.L(n.lineNumber,n.column,n.lineNumber,n.column):new c.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((s=>{const n=s.getStartPosition();let r=t.bracketPairs.matchBracket(n);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(n),!r)){const e=t.bracketPairs.findNextBracket(n);e&&e.range&&(r=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,l=null;if(r){r.sort(a.Q.compareRangesUsingStarts);const[t,i]=r;if(o=e?t.getStartPosition():t.getEndPosition(),l=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(n)){const e=o;o=l,l=e}}o&&l&&i.push(new c.L(o.lineNumber,o.column,l.lineNumber,l.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const s=i.getPosition();let n=t.bracketPairs.matchBracket(s);n||(n=t.bracketPairs.findEnclosingBrackets(s)),n&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:n[0],text:""},{range:n[1],text:""}]),this._editor.pushUndoStop())}))}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=d.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.Yf)(f),position:h.A5.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=d.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const n=[];let r=0;for(let o=0,d=e.length;o<d;o++){const t=e[o];t.isEmpty()&&(n[r++]=t.getStartPosition())}n.length>1&&n.sort(o.y.compare);const a=[];let c=0,l=0;const h=s.length;for(let o=0,d=n.length;o<d;o++){const e=n[o];for(;l<h&&s[l].position.isBefore(e);)l++;if(l<h&&s[l].position.equals(e))a[c++]=s[l];else{let i=t.bracketPairs.matchBracket(e,20),s=b._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),s=b._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[c++]=new E(e,i,s)}}this._lastBracketsData=a,this._lastVersionId=i}}(0,r.HW)(b.ID,b,1),(0,r.Fl)(v),(0,r.Fl)(_),(0,r.Fl)(C),g.ZG.appendMenuItem(g.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>x,_Q:()=>k,dg:()=>b});var s=i(88443),n=i(8597),r=i(35315),o=i(91581),a=i(17390),c=i(10350),l=i(41234),h=(i(10713),i(78209)),d=i(42904);const u=h.kg("defaultLabel","input"),g=h.kg("label.preserveCaseToggle","Preserve Case");class p extends r.l{constructor(e){super({icon:c.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,d.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new l.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.vl),this._onInput=this._register(new l.vl),this._onKeyUp=this._register(new l.vl),this._onPreserveCaseKeyDown=this._register(new l.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||u;const r=s.appendPreserveCaseLabel||"",a=s.history||[],c=!!s.flexibleHeight,h=!!s.flexibleWidth,d=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:s.showHistoryHint,flexibleHeight:c,flexibleWidth:h,flexibleMaxHeight:d,inputBoxStyles:s.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:r,isChecked:!1,...s.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),n.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),e?.appendChild(this.domNode),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())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(32848),_=i(59261),v=i(5662),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};const b=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),S="historyNavigationWidgetFocus",y="historyNavigationForwardsEnabled",w="historyNavigationBackwardsEnabled";let R;const L=[];function T(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);const i=new v.Cm,s=new f.N1(S,!1).bindTo(e),r=new f.N1(y,!0).bindTo(e),o=new f.N1(w,!0).bindTo(e),a=()=>{s.set(!0),R=t},c=()=>{s.set(!1),R===t&&(R=void 0)};return(0,n.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>c()))),i.add((0,v.s)((()=>{L.splice(L.indexOf(t),1),c()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){i.dispose()}}}let x=class extends s.c{constructor(e,t,i,s){super(e,t,i);const n=this._register(s.createScoped(this.inputBox.element));this._register(T(n,this.inputBox))}};x=C([E(3,f.fN)],x);let k=class extends m{constructor(e,t,i,s,n=!1){super(e,t,n,i);const r=this._register(s.createScoped(this.inputBox.element));this._register(T(r,this.inputBox))}};k=C([E(3,f.fN)],k),_.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(w,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{R?.showPreviousValue()}}),_.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(y,!0),f.M$.not("isComposing"),b.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{R?.showNextValue()}})},89336:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(62350).then(i.bind(i,62350))})},89403:(e,t,i)=>{"use strict";i.d(t,{B6:()=>y,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>d,iZ:()=>C,n4:()=>u,o1:()=>E,pD:()=>f,su:()=>l,uJ:()=>_});var s=i(79326),n=i(36456),r=i(74027),o=i(98067),a=i(91508),c=i(79400);function l(e){return(0,c.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(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===n.ny.file)return s._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(b(e.authority,t.authority))return s._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return r.SA.basename(e.path)}extname(e){return r.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===n.ny.file?t=c.r.file(r.pD(l(e))).path:(t=r.SA.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){if(!e.path.length)return e;let t;return t=e.scheme===n.ny.file?c.r.file(r.S8(l(e))).path:r.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!b(e.authority,t.authority))return;if(e.scheme===n.ny.file){const i=r.V8(l(e),l(t));return o.uF?s.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return r.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===n.ny.file){const i=c.r.file(r.hd(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=s.kb(t),e.with({path:r.SA.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,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=r.Vn){if(e.scheme===n.ny.file){const i=l(e);return i.length>s.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=r.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=r.Vn){let i=!1;if(e.scheme===n.ny.file){const n=l(e);i=void 0!==n&&n.length===s.Zn(n).length&&n[n.length-1]===t}else{t="/";const s=e.path;i=1===s.length&&47===s.charCodeAt(s.length-1)}return i||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==n.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d)),g=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),f=d.dirname.bind(d),_=d.joinPath.bind(d),v=d.normalizePath.bind(d),C=d.relativePath.bind(d),E=d.resolvePath.bind(d),b=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var y;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,s]=e.split(":");t&&s&&i.set(t,s)}));const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(e.META_DATA_MIME,s),i}}(y||(y={}))},89506:(e,t,i)=>{"use strict";i.d(t,{d:()=>g});var s=i(8597),n=i(5646),r=i(72962),o=i(25154),a=i(36921),c=i(41234);class l extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,s.BC)(e,(0,s.$)(".monaco-dropdown")),this._label=(0,s.BC)(this._element,(0,s.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const r of[s.Bx.CLICK,s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this.element,r,(e=>s.fs.stop(e,!0))));for(const r of[s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this._label,r,(e=>{(0,s.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,s.ko)(this._label,s.Bx.KEY_UP,(e=>{const t=new r.Z(e);(t.equals(3)||t.equals(10))&&(s.fs.stop(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(o.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends l{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var d=i(42904),u=i(48196);class g extends n.EH{constructor(e,t,i,s=Object.create(null)){super(null,e,s),this.actionItem=null,this._onDidChangeVisibility=this._register(new c.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=s,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,s.BC)(e,(0,s.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.i)().setupManagedHover(this.options.hoverDelegate??(0,d.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{this.element?.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu?.show()}updateEnabled(){const e=!this.action.enabled;this.actionItem?.classList.toggle("disabled",e),this.element?.classList.toggle("disabled",e)}}},89518:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=w(m,g,p(m)),C=v.defaults,E=w(f,g,p(f)),b=E.defaults,S=w(_,g,p(_)),y=S.defaults;function w(e,t=g,s=p(e)){const n=new u(e,t,s);let r;const o=d.languages.onLanguage(e,(async()=>{r=(await i.e(68821).then(i.bind(i,68821))).setupMode(n)}));return{defaults:n,dispose(){o.dispose(),r?.dispose(),r=void 0}}}d.languages.html={htmlDefaults:C,razorDefaults:y,handlebarDefaults:b,htmlLanguageService:v,handlebarLanguageService:E,razorLanguageService:S,registerHTMLLanguageService:w}},89807:(e,t,i)=>{var s=i(26437),n=i(33609);e.exports=function(e){return e?s(n(e),0,4294967295):0}},89896:(e,t,i)=>{e.exports=i(34529)},89974:(e,t,i)=>{"use strict";i.d(t,{F:()=>V});var s=i(60712),n=i(59284),r=i(56993),o=i.n(r),a=i(53302),c=i(63126),l=i(72837);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),d=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,l.N)({en:h,ru:d},"ydb-navigation-tree"),g=(0,a.o)("ydb-navigation-tree-view-empty");function p({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:g(),children:u("label_empty")}),level:e})}const m=(0,a.o)("ydb-navigation-tree-view-error");function f({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("span",{className:m(),children:u("label_error")}),level:e})}var _=i(80953);const v=(0,a.o)("ydb-navigation-tree-view-loader");function C({level:e}){return(0,s.jsx)(c.G,{name:(0,s.jsx)("div",{className:v(),children:(0,s.jsx)(_.t,{size:"xs"})}),level:e})}function E(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function b(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function S(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function y(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function w(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function R(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function L(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function T(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function x(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"m1.5 3.25c0-0.41421 0.33579-0.75 0.75-0.75h1.0109c0.41421 0 0.75-0.33579 0.75-0.75s-0.33579-0.75-0.75-0.75h-1.0109c-1.2426 0-2.25 1.0074-2.25 2.25v9.5c0 1.2426 1.0074 2.25 2.25 2.25h1.0109c0.41421 0 0.75-0.3358 0.75-0.75s-0.33579-0.75-0.75-0.75h-1.0109c-0.41421 0-0.75-0.3358-0.75-0.75v-9.5zm11.239-2.25c-0.4142 0-0.75 0.33579-0.75 0.75s0.3358 0.75 0.75 0.75h1.0109c0.4142 0 0.75 0.33579 0.75 0.75v9.5c0 0.4142-0.3358 0.75-0.75 0.75h-1.0109c-0.4142 0-0.75 0.3358-0.75 0.75s0.3358 0.75 0.75 0.75h1.0109c1.2426 0 2.25-1.0074 2.25-2.25v-9.5c0-1.2426-1.0074-2.25-2.25-2.25h-1.0109zm-1.4316 6.9054c-0.9374 0.45226-2.1226 0.63619-3.3102 0.63619-1.1876 0-2.3728-0.18393-3.3103-0.63619-0.21174-0.10215-0.42044-0.22399-0.61701-0.36633v0.46091c0 1.3714 1.7583 2.0571 3.9273 2.0571 2.169 0 3.9273-0.68571 3.9273-2.0571v-0.46091c-0.1966 0.14234-0.4053 0.26418-0.6171 0.36633zm-3.3102-0.59108c2.169 0 3.9273-0.68572 3.9273-2.0571 0-1.3714-1.7583-2.0572-3.9273-2.0572-2.169 0-3.9273 0.68572-3.9273 2.0572 0 1.3714 1.7583 2.0571 3.9273 2.0571zm3.9273 3.4286c0 1.3714-1.7583 2.0571-3.9273 2.0571-2.169 0-3.9273-0.6857-3.9273-2.0571v-0.461c0.19657 0.1423 0.40527 0.2641 0.61701 0.3663 0.93748 0.4522 2.1227 0.6362 3.3103 0.6362 1.1876 0 2.3728-0.184 3.3102-0.6362 0.2118-0.1022 0.4205-0.224 0.6171-0.3663v0.461z",fill:"currentColor",clipRule:"evenodd",fillRule:"evenodd"})}))}function k(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function A(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function N(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function I(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function O(e){return"status"in e}function D(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)D(e,`${t}/${r}`,i,s+1)}var M;function P(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function F(e={},t){var i,s;switch(t.type){case M.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case M.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case M.FinishLoading:{const n=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){n[t.payload.path].children=t.payload.data.map((({name:e})=>e));for(const r of t.payload.data){const o=`${t.payload.path}/${r.name}`,{activePath:a=""}=t.payload,c=null!==(s=null===(i=e[o])||void 0===i?void 0:i.collapsed)&&void 0!==s?s:!a.startsWith(`${o}/`);n[o]=P(Object.assign(Object.assign({},r),{collapsed:c,path:o}))}}return t.payload.data&&0!==t.payload.data.length||(n[t.payload.path]=Object.assign(Object.assign({},n[t.payload.path]),{expandable:!1,collapsed:!0})),n}case M.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case M.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function U(e,t){const i=[];return D(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const s=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);s&&i.push(s)})),i}function H(e,t){switch(e){case"async_replication":return(0,s.jsx)(E,{height:16});case"transfer":return(0,s.jsx)(N,{height:16});case"database":return(0,s.jsx)(S,{height:14});case"directory":return t?(0,s.jsx)(R,{height:16}):(0,s.jsx)(L,{height:16});case"index":return(0,s.jsx)(T,{height:16});case"table":case"index_table":return(0,s.jsx)(k,{height:16});case"column_table":return(0,s.jsx)(b,{height:16});case"stream":case"topic":return(0,s.jsx)(A,{height:16});case"external_table":return(0,s.jsx)(w,{height:16});case"external_data_source":return(0,s.jsx)(y,{height:16});case"view":return(0,s.jsx)(I,{height:16});case"resource_pool":return(0,s.jsx)(x,{height:16});default:return null}}function B({path:e,fetchPath:t,activePath:i,state:r,level:o,dispatch:a,children:l,onActivate:h,getActions:d,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=r[e];n.useEffect((()=>{m.collapsed?p||a({type:M.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:M.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:M.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:M.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:M.ToggleCollapsed,payload:{path:e}})}),[a,e]),v=n.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),C=n.useMemo((()=>null===d||void 0===d?void 0:d(m.path,m.type)),[d,m]),E=n.useCallback((e=>{null===u||void 0===u||u({path:m.path,type:m.type,isOpen:e})}),[m.path,m.type,u]);return(0,s.jsx)(c.G,{name:m.name,icon:H(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:C,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:E,level:o,children:l})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(M||(M={}));const W=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,s.jsx)(C,{level:e.level},t):"error"===e.status?(0,s.jsx)(f,{level:e.level},t):(0,s.jsx)(p,{level:e.level},t)};function V({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:r,activePath:a,onActionsOpenToggle:c,onActivePathUpdate:l,cache:h=!0,virtualize:d=!1}){const[u,g]=n.useReducer(F,{[e.path]:P(e)}),p=n.useMemo((()=>U(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(B,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:l,getActions:i,onActionsOpenToggle:c,renderAdditionalNodeElements:r,cache:h,level:e.level},e.path);return d?(0,s.jsx)(o(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return O(t)?W(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>O(e)?W(e):m(e)))})}},90208:(e,t,i)=>{"use strict";i.d(t,{L9:()=>w,LR:()=>v,ZR:()=>y});var s=i(25890),n=i(17799),r=i(8995),o=i(5662),a=i(44320),c=i(36456),l=i(89403),h=i(79400),d=i(62083),u=i(56942),g=i(78209),p=i(37227),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};class _{async provideDocumentPasteEdits(e,t,i,s,n){const r=await this.getEdit(i,n);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,s){const n=await this.getEdit(i,s);if(n)return{edits:[{insertText:n.insertText,title:n.title,kind:n.kind,handledMimeType:n.handledMimeType,yieldTo:n.yieldTo}],dispose(){}}}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}static{this.id="text"}static{this.kind=new r.k("text.plain")}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const s=await i.asString();return{handledMimeType:a.K.text,title:(0,g.kg)("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class C extends _{constructor(){super(...arguments),this.kind=new r.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;let s=0;const n=i.map((({uri:e,originalText:t})=>e.scheme===c.ny.file?e.fsPath:(s++,t))).join(" ");let r;return r=s>0?i.length>1?(0,g.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.kg)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:n,title:r,kind:this.kind}}}let E=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new r.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;const n=(0,s.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,l.iZ)(t.uri,e):void 0})));return n.length?{handledMimeType:a.K.uriList,insertText:n.join(" "),title:i.length>1?(0,g.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};E=m([f(0,p.VR)],E);class b{constructor(){this.kind=new r.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,s,n){if(s.triggerKind!==d.FX.PasteAs&&!s.only?.contains(this.kind))return;const r=i.get("text/html"),o=await(r?.asString());return o&&!n.isCancellationRequested?{dispose(){},edits:[{insertText:o,yieldTo:this._yieldTo,title:(0,g.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function S(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),s=[];for(const r of n.jt.parse(i))try{s.push({uri:h.r.parse(r),originalText:r})}catch{}return s}let y=class extends o.jG{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new v)),this._register(e.documentDropEditProvider.register("*",new C)),this._register(e.documentDropEditProvider.register("*",new E(t)))}};y=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],y);let w=class extends o.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new C)),this._register(e.documentPasteEditProvider.register("*",new E(t))),this._register(e.documentPasteEditProvider.register("*",new b))}};w=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],w)},90360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextResourceConfigurationService:()=>n,ITextResourcePropertiesService:()=>r});var s=i(63591);const n=(0,s.u1)("textResourceConfigurationService"),r=(0,s.u1)("textResourcePropertiesService")},90474:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>k});var s={grad:.9,turn:360,rad:360/(2*Math.PI)},n=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},c=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},l=function(e){return{r:r(e.r),g:r(e.g),b:r(e.b),a:r(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,s=e.b,n=e.a,r=Math.max(t,i,s),o=r-Math.min(t,i,s),a=o?r===t?(i-s)/o:r===i?2+(s-t)/o:4+(t-i)/o:0;return{h:60*(a<0?a+6:a),s:r?o/r*100:0,v:r/255*100,a:n}},g=function(e){var t=e.h,i=e.s,s=e.v,n=e.a;t=t/360*6,i/=100,s/=100;var r=Math.floor(t),o=s*(1-i),a=s*(1-(t-r)*i),c=s*(1-(1-t+r)*i),l=r%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:n}},p=function(e){return{h:a(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:r(e.h),s:r(e.s),l:r(e.l),a:r(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((s=t.l)<50?s:100-s)/100)>0?2*i/(s+i)*100:0,v:s+i,a:t.a}));var t,i,s},_=function(e){return{h:(t=u(e)).h,s:(n=(200-(i=t.s))*(s=t.v)/100)>0&&n<200?i*s/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,i,s,n},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?r(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?r(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||b.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:c({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||C.exec(e);if(!t)return null;var i,n,r=p({h:(i=t[1],n=t[2],void 0===n&&(n="deg"),Number(i)*(s[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(r)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,s=e.b,r=e.a,o=void 0===r?1:r;return n(t)&&n(i)&&n(s)?c({r:Number(t),g:Number(i),b:Number(s),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,i=e.s,s=e.l,r=e.a,o=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var a=p({h:Number(t),s:Number(i),l:Number(s),a:Number(o)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,s=e.v,r=e.a,c=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var l=function(e){return{h:a(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(i),v:Number(s),a:Number(c)});return g(l)},"hsv"]]},y=function(e,t){for(var i=0;i<t.length;i++){var s=t[i][0](e);if(s)return[s,t[i][1]]}return[null,void 0]},w=function(e){return"string"==typeof e?y(e.trim(),S.string):"object"==typeof e&&null!==e?y(e,S.object):[null,void 0]},R=function(e,t){var i=_(e);return{h:i.h,s:o(i.s+100*t,0,100),l:i.l,a:i.a}},L=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},T=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:o(i.l+100*t,0,100),a:i.a}},x=function(){function e(e){this.parsed=w(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return r(L(this.rgba),2)},e.prototype.isDark=function(){return L(this.rgba)<.5},e.prototype.isLight=function(){return L(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,o=(n=e.a)<1?d(r(255*n)):"","#"+d(t)+d(i)+d(s)+o;var e,t,i,s,n,o},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,i=e.g,s=e.b,(n=e.a)<1?"rgba("+t+", "+i+", "+s+", "+n+")":"rgb("+t+", "+i+", "+s+")";var e,t,i,s,n},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,s=e.l,(n=e.a)<1?"hsla("+t+", "+i+"%, "+s+"%, "+n+")":"hsl("+t+", "+i+"%, "+s+"%)";var e,t,i,s,n},e.prototype.toHsv=function(){return e=u(this.rgba),{h:r(e.h),s:r(e.s),v:r(e.v),a:r(e.a,3)};var e},e.prototype.invert=function(){return k({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),k(R(this.rgba,-e))},e.prototype.grayscale=function(){return k(R(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),k(T(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),k(T(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?k({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):r(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?k({h:e,s:t.s,l:t.l,a:t.a}):r(t.h)},e.prototype.isEqual=function(e){return this.toHex()===k(e).toHex()},e}(),k=function(e){return e instanceof x?e:new x(e)}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>b,A0:()=>y,AE:()=>T,EQ:()=>f,F6:()=>w,HC:()=>L,PK:()=>d,Qg:()=>l,SS:()=>h,Th:()=>p,Zv:()=>R,b7:()=>S,bI:()=>k,pc:()=>v,uC:()=>E,vb:()=>C,ve:()=>g,wR:()=>m});var s=i(18447),n=i(64383),r=i(41234),o=i(5662),a=i(98067),c=i(44759);function l(e){return!!e&&"function"===typeof e.then}function h(e){const t=new s.Qi,i=e(t.token),r=new Promise(((e,s)=>{const r=t.token.onCancellationRequested((()=>{r.dispose(),s(new n.AL)}));Promise.resolve(i).then((i=>{r.dispose(),t.dispose(),e(i)}),(e=>{r.dispose(),t.dispose(),s(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return r.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return r.finally(e)}}}function d(e,t,i){return new Promise(((s,n)=>{const r=t.onCancellationRequested((()=>{r.dispose(),s(i)}));e.then(s,n).finally((()=>r.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===c.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const s=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}})(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new n.AL),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,s)=>{const r=setTimeout((()=>{o.dispose(),i()}),e),o=t.onCancellationRequested((()=>{clearTimeout(r),o.dispose(),s(new n.AL)}))})):h((t=>m(e,t)))}function f(e,t=0,i){const s=setTimeout((()=>{e(),i&&n.dispose()}),t),n=(0,o.s)((()=>{clearTimeout(s),i?.deleteAndLeak(n)}));return i?.add(n),n}function _(e,t=e=>!!e,i=null){let s=0;const n=e.length,r=()=>{if(s>=n)return Promise.resolve(i);const o=e[s++];return Promise.resolve(o()).then((e=>t(e)?Promise.resolve(e):r()))};return r()}class v{constructor(e,t){this._isDisposed=!1,this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'setIfNotSet' on a disposed TimeoutTimer");-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class C{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=i.setInterval((()=>{e()}),t);this.disposable=(0,o.s)((()=>{i.clearInterval(s),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class E{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let b,S;S="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,s={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(s))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const s=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let n=!1;return{dispose(){n||(n=!0,e.cancelIdleCallback(s))}}},b=e=>S(globalThis,e);class y{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=S(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class w extends y{constructor(e){super(globalThis,e)}}class R{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new n.AL)}}var L;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(s){i(s)}}))}}(L||(L={}));class T{static fromArray(e){return new T((t=>{t.emitMany(e)}))}static fromPromise(e){return new T((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new T((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new T((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}static{this.EMPTY=T.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new T((async i=>{for await(const s of e)i.emitOne(t(s))}))}map(e){return T.map(this,e)}static filter(e,t){return new T((async i=>{for await(const s of e)t(s)&&i.emitOne(s)}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,(e=>!!e))}coalesce(){return T.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}class x extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function k(e){const t=new s.Qi,i=e(t.token);return new x(t,(async e=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),e.reject(new n.AL)}));try{for await(const s of i){if(t.token.isCancellationRequested)return;e.emitOne(s)}s.dispose(),t.dispose()}catch(r){s.dispose(),t.dispose(),e.reject(r)}}))}},90851:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.522 10.68a2.14 2.14 0 0 0 2.11 1.82 2.125 2.125 0 1 0-2.11-1.82M3.64 14h-.015a3.626 3.626 0 0 1-3.558-2.927 3.6 3.6 0 0 1 .256-2.212L2.98 2.98a2.516 2.516 0 0 1 4.802 1.237L7.673 5.6a1.5 1.5 0 0 1 .655 0l-.11-1.382a2.516 2.516 0 0 1 4.801-1.237l2.658 5.88a3.6 3.6 0 0 1 .256 2.213A3.626 3.626 0 0 1 12.375 14h-.015a3.64 3.64 0 0 1-3.628-3.35l-.174-2.176A.96.96 0 0 0 8 8.312a.96.96 0 0 0-.558.162l-.174 2.176A3.64 3.64 0 0 1 3.64 14m-.015-7.25c.91 0 1.742.336 2.379.89l.283-3.542a1.016 1.016 0 0 0-1.94-.5L2.89 6.825a3.6 3.6 0 0 1 .736-.075m10.853 3.93q.022-.15.022-.305a2.125 2.125 0 1 0-2.132 2.125 2.14 2.14 0 0 0 2.11-1.82m-2.826-7.082 1.459 3.227a3.61 3.61 0 0 0-3.115.815l-.283-3.542a1.016 1.016 0 0 1 1.94-.5",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},90870:(e,t,i)=>{"use strict";i.d(t,{D:()=>je});var s,n=i(11007),r=i(25890),o=i(18447),a=i(64383),c=i(41234),l=i(42539),h=i(5662),d=i(98067),u=i(78381),g=i(631),p=i(55190),m=i(31450),f=i(7085),_=i(83069),v=i(36677),C=i(60002),E=i(30936),b=i(29319),S=i(88415),y=i(32848),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},R=function(e,t){return function(i,s){t(i,s,e)}};let L=class{static{s=this}static{this.AtEnd=new y.N1("atEndOfWord",!1)}constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=s.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(124)&&this._update())),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(124);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};L=s=w([R(1,y.fN)],L);var T,x=i(78209),k=i(50091),A=i(63591),N=i(18801),I=i(48116),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};let M=class{static{T=this}static{this.OtherSuggestions=new y.N1("hasOtherSuggestions",!1)}constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=T.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(0===e.items.length)return void this.reset();T._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let s=i;for(let n=t.items.length;n>0&&(s=(s+t.items.length+(e?1:-1))%t.items.length,s!==i)&&t.items[s].completion.additionalTextEdits;n--);return s}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=T._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};M=T=O([D(1,y.fN)],M);var P=i(60534);class F{constructor(e,t,i,s){this._disposables=new h.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((n=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&s(this._active.item)}})))}_onItem(e){if(!e||!(0,r.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var U=i(96299);class H{static{this._maxSelectionLength=51200}constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let s=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){s=!0;break}if(!s)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const n=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(n.getValueLengthInRange(i)>H._maxSelectionLength)return;this._lastOvertyped[e]={value:n.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}var B=i(8597),W=(i(97791),i(93090)),V=i(90766),z=i(1592),G=i(91508),j=i(29163),K=i(11799),Y=i(57629),q=i(27195),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class{constructor(e,t,i,s,n){this._menuId=t,this._menuService=s,this._contextKeyService=n,this._menuDisposables=new h.Cm,this.element=B.BC(e,B.$(".suggest-status-bar"));const r=e=>e instanceof q.Xe?i.createInstance(Y.rr,e,{useComma:!0}):void 0;this._leftActions=new K.E(this.element,{actionViewItemProvider:r}),this._rightActions=new K.E(this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[s,n]of e.getActions())"left"===s?t.push(...n):i.push(...n);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=$([Q(2,A._Y),Q(3,q.ez),Q(4,y.fN)],X);i(93409);var Z=i(9711),J=i(66261),ee=i(86723),te=i(47612),ie=i(88807),se=i(31295),ne=i(10350),re=i(25689),oe=i(16980),ae=i(20492),ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},le=function(e,t){return function(i,s){t(i,s,e)}};function he(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let de=class{constructor(e,t){this._editor=e,this._onDidClose=new c.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new c.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ae.T,{editor:e}),this._body=B.$(".body"),this._scrollbar=new se.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+re.L.asCSSSelector(ne.W.close))),this._close.title=x.kg("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),s=e.get(120)||t.fontSize,n=e.get(121)||t.lineHeight,r=t.fontWeight,o=`${s}px`,a=`${n}px`;this.domNode.style.fontSize=o,this.domNode.style.lineHeight=""+n/s,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=x.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){this._renderDisposeable.clear();let{detail:i,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${e.word??"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${e.completion.commitCharacters?.join("")}\n`,s=(new oe.Bc).appendCodeblock("empty",t),i=`Provider: ${e.provider._debugDisplayName}`}if(t||he(e)){if(this.domNode.classList.remove("no-docs","no-type"),i){const e=i.length>1e5?`${i.substr(0,1e5)}\u2026`:i;this._type.textContent=e,this._type.title=e,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),"string"===typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new B.fg(e,t);B.fg.equals(i,this._size)||(this._size=i,B.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};de=ce([le(1,A._Y)],de);class ue{constructor(e,t){let i,s;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ie.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n=0,r=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,s=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&s){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(r=s.width-e.dimension.width,t=!0),e.north&&(n=s.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+n,left:i.left+r})}e.done&&(i=void 0,s=void 0,n=0,r=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){const i=e.getBoundingClientRect();this._anchorBox=i,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,t)}_placeAtAnchor(e,t,i){const s=B.tG(this.getDomNode().ownerDocument.body),n=this.widget.getLayoutInfo(),r=new B.fg(220,2*n.lineHeight),o=e.top,a=function(){const i=s.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),a=-n.borderWidth+e.left+e.width,c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),c=function(){const i=e.left-n.borderWidth-n.horizontalPadding,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),c=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),l=c.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:c,maxSizeBottom:l,minSize:r.with(Math.min(i,r.width))}}(),l=function(){const i=e.left,o=-n.borderWidth+e.top+e.height,a=new B.fg(e.width-n.borderHeight,s.height-e.top-e.height-n.verticalPadding);return{top:o,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),h=[a,c,l],d=h.find((e=>e.fit>=0))??h.sort(((e,t)=>t.fit-e.fit))[0],u=e.top+e.height-n.borderHeight;let g,p=t.height;const m=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);let f;p>m&&(p=m),i?p<=d.maxSizeTop.height?(g=!0,f=d.maxSizeTop):(g=!1,f=d.maxSizeBottom):p<=d.maxSizeBottom.height?(g=!1,f=d.maxSizeBottom):(g=!0,f=d.maxSizeTop);let{top:_,left:v}=d;!g&&p>e.height&&(_=u-p);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();_-=e.top,v-=e.left}this._applyTopLeft({left:v,top:_}),this._resizable.enableSashes(!g,d===a,g,d!==a),this._resizable.minSize=d.minSize,this._resizable.maxSize=f,this._resizable.layout(p,Math.min(f.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var ge=i(21852),pe=i(26690),me=i(79400),fe=i(62083),_e=i(53068),ve=i(23750),Ce=i(10154),Ee=i(7291),be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Se=function(e,t){return function(i,s){t(i,s,e)}};function ye(e){return`suggest-aria-id:${e}`}const we=(0,i(61394).pU)("suggest-more-info",ne.W.chevronRight,x.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Re=new class e{static{this._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/}static{this._regexStrict=new RegExp(`^${e._regexRelaxed.source}$`,"i")}extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if(t.completion.documentation){const s="string"===typeof t.completion.documentation?t.completion.documentation:t.completion.documentation.value,n=e._regexRelaxed.exec(s);if(n&&(0===n.index||n.index+n[0].length===s.length))return i[0]=n[0],!0}return!1}};let Le=class{constructor(e,t,i,s){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=s,this._onDidToggleDetails=new c.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.Cm,i=e;i.classList.add("show-file-icons");const s=(0,B.BC)(e,(0,B.$)(".icon")),n=(0,B.BC)(s,(0,B.$)("span.colorspan")),r=(0,B.BC)(e,(0,B.$)(".contents")),o=(0,B.BC)(r,(0,B.$)(".main")),a=(0,B.BC)(o,(0,B.$)(".icon-label.codicon")),c=(0,B.BC)(o,(0,B.$)("span.left")),l=(0,B.BC)(o,(0,B.$)("span.right")),d=new ge.s(c,{supportHighlights:!0,supportIcons:!0});t.add(d);const u=(0,B.BC)(c,(0,B.$)("span.signature-label")),g=(0,B.BC)(c,(0,B.$)("span.qualifier-label")),p=(0,B.BC)(l,(0,B.$)("span.details-label")),m=(0,B.BC)(l,(0,B.$)("span.readMore"+re.L.asCSSSelector(we)));m.title=x.kg("readMore","Read More");return{root:i,left:c,right:l,icon:s,colorspan:n,iconLabel:d,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),n=t.getMassagedFontFamily(),r=t.fontFeatureSettings,a=e.get(120)||t.fontSize,c=e.get(121)||t.lineHeight,l=t.fontWeight,h=`${a}px`,d=`${c}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=l,i.style.letterSpacing=u,o.style.fontFamily=n,o.style.fontFeatureSettings=r,o.style.lineHeight=d,s.style.height=d,s.style.width=d,m.style.height=d,m.style.width=d}}}renderElement(e,t,i){i.configureFont();const{completion:s}=e;i.root.id=ye(t),i.colorspan.style.backgroundColor="";const n={labelEscapeNewLines:!0,matches:(0,pe.WJ)(e.score)},r=[];if(19===s.kind&&Re.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(20===s.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FILE),r=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FILE);n.extraClasses=t.length>r.length?t:r}else 23===s.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",n.extraClasses=[(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),Ee.p.FOLDER),(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),Ee.p.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.L.asClassNameArray(fe.HC.toIcon(s.kind))));s.tags&&s.tags.indexOf(1)>=0&&(n.extraClasses=(n.extraClasses||[]).concat(["deprecated"]),n.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,n),"string"===typeof s.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Te(s.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Te(s.label.detail||""),i.detailsLabel.textContent=Te(s.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?(0,B.WU)(i.detailsLabel):(0,B.jD)(i.detailsLabel),he(e)?(i.right.classList.add("can-expand-details"),(0,B.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,B.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Te(e){return e.replace(/\r\n|\r|\n/g,"")}Le=be([Se(1,ve.IModelService),Se(2,Ce.L),Se(3,te.Gy)],Le);var xe,ke=i(19070),Ae=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ne=function(e,t){return function(i,s){t(i,s,e)}};(0,J.x1A)("editorSuggestWidget.background",J.CgL,x.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,J.x1A)("editorSuggestWidget.border",J.sIe,x.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ie=(0,J.x1A)("editorSuggestWidget.foreground",J.By2,x.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,J.x1A)("editorSuggestWidget.selectedForeground",J.nH,x.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.selectedIconForeground",J.c7i,x.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Oe=(0,J.x1A)("editorSuggestWidget.selectedBackground",J.AlL,x.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,J.x1A)("editorSuggestWidget.highlightForeground",J.QI5,x.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.focusHighlightForeground",J.eMz,x.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,J.x1A)("editorSuggestWidgetStatus.foreground",(0,J.JO0)(Ie,.5),x.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class De{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof j.t}`}restore(){const e=this._service.get(this._key,0)??"";try{const t=JSON.parse(e);if(B.fg.is(t))return B.fg.lift(t)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Me=class{static{xe=this}static{this.LOADING_MESSAGE=x.kg("suggestWidget.loading","Loading...")}static{this.NO_SUGGESTIONS_MESSAGE=x.kg("suggestWidget.noSuggestions","No suggestions.")}constructor(e,t,i,s,n){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.HE,this._pendingShowDetails=new h.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new V.pc,this._disposables=new h.Cm,this._onDidSelect=new c.fV,this._onDidFocus=new c.fV,this._onDidHide=new c.vl,this._onDidShow=new c.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new c.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ie.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Pe(this,e),this._persistedSize=new De(t,e);class r{constructor(e,t,i=!1,s=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=s}}let o;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),o=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{if(this._resize(e.dimension.width,e.dimension.height),o&&(o.persistHeight=o.persistHeight||!!e.north||!!e.south,o.persistWidth=o.persistWidth||!!e.east||!!e.west),e.done){if(o){const{itemHeight:e,defaultSize:t}=this.getLayoutInfo(),i=Math.round(e/2);let{width:s,height:n}=this.element.size;(!o.persistHeight||Math.abs(o.currentSize.height-n)<=i)&&(n=o.persistedSize?.height??t.height),(!o.persistWidth||Math.abs(o.currentSize.width-s)<=i)&&(s=o.persistedSize?.width??t.width),this._persistedSize.store(new B.fg(s,n))}this._contentWidget.unlockPreference(),o=void 0}}))),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const a=this._disposables.add(n.createInstance(de,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ue(a,this.editor);const l=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);l();const d=n.createInstance(Le,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new W.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>x.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:s}=e.completion.label;i&&s?t=x.kg("label.full","{0} {1}, {2}",t,i,s):i?t=x.kg("label.detail","{0} {1}",t,i):s&&(t=x.kg("label.desc","{0}, {1}",t,s))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:s}=e.completion,n=G.GP("{0}{1}",s||"",i?"string"===typeof i?i:i.value:"");return x.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,n)}}}),this._list.style((0,ke.t8)({listInactiveFocusBackground:Oe,listInactiveFocusOutline:J.buw})),this._status=n.createInstance(X,this.element.domNode,I.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);u(),this._disposables.add(s.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(s.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(119)&&(u(),l()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(120)||e.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=I.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=I.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=I.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=I.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),this._loadingTimeout?.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,ee.Bb)(e.type)?2:1}_onListFocus(e){if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const t=e.elements[0],i=e.indexes[0];t!==this._focusedItem&&(this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=t,this._list.reveal(i),this._currentSuggestionDetails=(0,V.SS)((async e=>{const i=(0,V.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),s=e.onCancellationRequested((()=>i.dispose()));try{return await t.resolve(e)}finally{i.dispose(),s.dispose()}})),this._currentSuggestionDetails.then((()=>{i>=this._list.length||t!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[t]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ye(i)}))})).catch(a.dz)),this._onDidFocus.fire({item:t,index:i,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:B.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,V.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,s,n){if(this._contentWidget.setPosition(this.editor.getPosition()),this._loadingTimeout?.dispose(),this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const r=this._completionModel.items.length,o=0===r;if(this._ctxSuggestWidgetMultipleSuggestions.set(r>1),o)return this._setState(s?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(n?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!he(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){this._pendingLayout.clear(),this._pendingShowDetails.clear(),this._loadingTimeout?.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const e=this._persistedSize.restore(),t=Math.ceil(4.3*this.getLayoutInfo().itemHeight);e&&e.height<t&&this._persistedSize.store(e.with(void 0,t))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const t=B.tG(this.element.domNode.ownerDocument.body),i=this.getLayoutInfo();e||(e=i.defaultSize);let s=e.height,n=e.width;if(this._status.element.style.height=`${i.itemHeight}px`,2===this._state||1===this._state)s=i.itemHeight+i.borderHeight,n=i.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new B.fg(n,s),this._contentWidget.setPreference(2);else{const r=t.width-i.borderHeight-2*i.horizontalPadding;n>r&&(n=r);const o=this._completionModel?this._completionModel.stats.pLabelLen*i.typicalHalfwidthCharacterWidth:n,a=i.statusBarHeight+this._list.contentHeight+i.borderHeight,c=i.itemHeight+i.statusBarHeight,l=B.BK(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=l.top+h.top+h.height,u=Math.min(t.height-d-i.verticalPadding,a),g=l.top+h.top-i.verticalPadding,p=Math.min(g,a);let m=Math.min(Math.max(p,u)+i.borderHeight,a);s===this._cappedHeight?.capped&&(s=this._cappedHeight.wanted),s<c&&(s=c),s>m&&(s=m);const f=150;s>u||this._forceRenderingAbove&&g>f?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),m=p):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),m=u),this.element.preferredSize=new B.fg(o,i.defaultSize.height),this.element.maxSize=new B.fg(r,m),this.element.minSize=new B.fg(220,c),this._cappedHeight=s===a?{wanted:this._cappedHeight?.wanted??e.height,capped:s}:void 0}this._resize(n,s)}_resize(e,t){const{width:i,height:s}=this.element.maxSize;e=Math.min(i,e),t=Math.min(s,t);const{statusBarHeight:n}=this.getLayoutInfo();this._list.layout(t-n,e),this._listElement.style.height=t-n+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===this._contentWidget.getPosition()?.preference[0])}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,z.qE)(this.editor.getOption(121)||e.lineHeight,8,1e3),i=this.editor.getOption(119).showStatusBar&&2!==this._state&&1!==this._state?t:0,s=this._details.widget.borderWidth,n=2*s;return{itemHeight:t,statusBarHeight:i,borderWidth:s,borderHeight:n,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,i+12*t+n)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Me=xe=Ae([Ne(1,Z.CS),Ne(2,y.fN),Ne(3,te.Gy),Ne(4,A._Y)],Me);class Pe{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:s}=this._widget.getLayoutInfo();return new B.fg(t+2*i+s,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Fe,Ue=i(90651),He=i(89403),Be=i(85600),We=i(87289),Ve=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ze=function(e,t){return function(i,s){t(i,s,e)}};class Ge{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=We.kI.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),s=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.Q.fromPositions(t,s),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let je=class{static{Fe=this}static{this.ID="editor.contrib.suggestController"}static get(e){return e.getContribution(Fe.ID)}constructor(e,t,i,s,n,r,o){this._memoryService=t,this._commandService=i,this._contextKeyService=s,this._instantiationService=n,this._logService=r,this._telemetryService=o,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new Ke((e=>e.priority)),this._onWillInsertSuggestItem=new c.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=n.createInstance(U.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=I.ob.InsertMode.bindTo(s);a.set(e.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(119).insertMode)))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Me,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=I.ob.MakesTextEdit.bindTo(this._contextKeyService),s=I.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),n=I.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),s.reset(),n.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),r=e.editStart.column,o=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&o-r===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:r,endLineNumber:t.lineNumber,endColumn:o})!==e.completion.insertText}i.set(a),s.set(!_.y.equals(e.editInsertEnd,e.editReplaceEnd)),n.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new l.dG(!0,!1,!1,!1,33))||d.zx&&e.toKeyCodeChord().equals(new l.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new H(this.editor,this.model))))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new M(this.editor,this._contextKeyService))))),this._toDispose.add(n.createInstance(L,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ge(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const s of this._selectors.itemsOrderedByPriorityDesc)if(t=s.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(119);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=I.ob.AcceptSuggestionsOnEnter.bindTo(s),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=E.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const s=this.editor.getModel(),n=s.getAlternativeVersionId(),{item:r}=e,c=[],l=new o.Qi;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(r,Boolean(8&t));this._memoryService.memorize(s,this.editor.getPosition(),r);const d=r.isResolved;let g=-1,m=-1;if(Array.isArray(r.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map((e=>{let t=v.Q.lift(e.range);if(t.startLineNumber===r.position.lineNumber&&t.startColumn>r.position.column){const e=this.editor.getPosition().column-r.position.column,i=e,s=v.Q.spansMultipleLines(t)?0:e;t=new v.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+s)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){const e=new u.W;let i;const n=s.onDidChangeContent((e=>{if(e.isFlush)return l.cancel(),void n.dispose();for(const t of e.changes){const e=v.Q.getEndPosition(t.range);i&&!_.y.isBefore(e,i)||(i=e)}})),o=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&o||this.editor.pushUndoStop()}));c.push(r.resolve(l.token).then((()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(i&&r.completion.additionalTextEdits.some((e=>_.y.isBefore(i,v.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map((e=>f.k.replaceMove(v.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&o||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{n.dispose(),h.dispose()})))}let{insertText:C}=r.completion;if(4&r.completion.insertTextRules||(C=b.fr.escape(C)),this.model.cancel(),i.insert(C,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command)if(r.completion.command.id===Ye.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;c.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch((e=>{r.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(l.cancel();s.canUndo();){n!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(r),Promise.all(c).finally((()=>{this._reportSuggestionAcceptedTelemetry(r,s,d,g,m,e.index,e.model.items),this.model.clear(),l.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,s,n,r,o){if(0===Math.floor(100*Math.random()))return;const a=new Map;for(let h=0;h<Math.min(30,o.length);h++){const e=o[h].textLabel;a.has(e)?a.get(e).push(h):a.set(e,[h])}const c=a.get(e.textLabel),l=c&&c.length>1?c[0]:-1;this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:e.extensionId?.value??"unknown",providerId:e.provider._debugDisplayName??"unknown",kind:e.completion.kind,basenameHash:(0,Be.tW)((0,He.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,He.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:s,additionalEditsAsync:n,index:r,firstIndex:l})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(119).insertMode;t&&(i=!i);const s=e.position.column-e.editStart.column,n=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:s+(this.editor.getPosition().column-e.position.column),overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.EI)(e.completion.additionalTextEdits)){const t=x.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:t??!1,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},s=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,s=t.column;if(s-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText};c.Jh.once(this.model.onDidTrigger)((e=>{const t=[];c.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const n=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),r=e.items[n];s(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:n,item:r,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let s=0;e&&(s|=4),t&&(s|=8),this._insertSuggestion(i,s)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};je=Fe=Ve([ze(1,S.GS),ze(2,k.d),ze(3,y.fN),ze(4,A._Y),ze(5,N.rr),ze(6,Ue.k)],je);class Ke{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Ye extends m.ks{static{this.id="editor.action.triggerSuggest"}constructor(){super({id:Ye.id,label:x.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:y.M$.and(C.R.writable,C.R.hasCompletionItemProvider,I.ob.Visible.toNegated()),kbOpts:{kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const s=je.get(t);if(!s)return;let n;i&&"object"===typeof i&&!0===i.auto&&(n=!0),s.triggerSuggest(void 0,n,void 0)}}(0,m.HW)(je.ID,je,2),(0,m.Fl)(Ye);const qe=190,$e=m.DX.bindToContribution(je.get);(0,m.E_)(new $e({id:"acceptSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus),weight:qe},{primary:3,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.AcceptSuggestionsOnEnter,I.ob.MakesTextEdit),weight:qe}],menuOpts:[{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:I.ob.HasInsertAndReplaceRange.toNegated()},{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert"))},{menuId:I.dt,title:x.kg("accept.replace","Replace"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new $e({id:"acceptAlternativeSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.HasFocusedSuggestion),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert")),title:x.kg("accept.replace","Replace")},{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace")),title:x.kg("accept.insert","Insert")}]})),k.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new $e({id:"hideSuggestWidget",precondition:I.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new $e({id:"selectNextSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new $e({id:"selectNextPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new $e({id:"selectLastSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new $e({id:"selectPrevSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new $e({id:"selectPrevPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new $e({id:"selectFirstSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new $e({id:"focusSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new $e({id:"focusAndAcceptSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new $e({id:"toggleSuggestionDetails",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible,I.ob.CanResolve),title:x.kg("detail.more","Show Less")},{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible.toNegated(),I.ob.CanResolve),title:x.kg("detail.less","Show More")}]})),(0,m.E_)(new $e({id:"toggleExplainMode",precondition:I.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new $e({id:"toggleSuggestionFocus",precondition:I.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new $e({id:"insertBestCompletion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),L.AtEnd,I.ob.Visible.toNegated(),M.OtherSuggestions.toNegated(),E.O.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:qe,primary:2}})),(0,m.E_)(new $e({id:"insertNextSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2}})),(0,m.E_)(new $e({id:"insertPrevSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),E.O.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:x.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){je.get(t)?.resetWidgetSize()}})},91090:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},91364:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 13.5h6a1.5 1.5 0 0 0 1.5-1.5V7.243a1.5 1.5 0 0 0-.44-1.061L8.819 2.939a1.5 1.5 0 0 0-1.06-.439H5A1.5 1.5 0 0 0 3.5 4v8A1.5 1.5 0 0 0 5 13.5m9-6.257a3 3 0 0 0-.879-2.122L9.88 1.88A3 3 0 0 0 7.757 1H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3zM5 8.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 5 8.25m.75 2.25a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},91508:(e,t,i)=>{"use strict";i.d(t,{$X:()=>q,AV:()=>r,BO:()=>g,Bm:()=>p,Bq:()=>d,DB:()=>T,E_:()=>G,GP:()=>a,HG:()=>E,LJ:()=>M,LU:()=>Z,Lv:()=>x,MV:()=>W,NB:()=>u,OS:()=>f,Q_:()=>A,Qp:()=>I,S8:()=>re,Ss:()=>Q,UD:()=>y,UU:()=>b,Vi:()=>O,W1:()=>R,Wd:()=>se,Wv:()=>k,Z5:()=>F,_J:()=>Y,aC:()=>K,bm:()=>h,eY:()=>_,en:()=>C,ih:()=>l,iy:()=>B,jy:()=>c,km:()=>H,lF:()=>w,lT:()=>S,m:()=>V,ne:()=>$,ns:()=>N,pc:()=>D,r_:()=>X,tk:()=>ee,tl:()=>oe,uz:()=>v,wB:()=>m,y_:()=>ae,zY:()=>J,z_:()=>P,zd:()=>L});var s=i(81788),n=i(91090);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const o=/{(\d+)}/g;function a(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=t.length?e:t[s]}))}function c(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function l(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(e,t=" "){return g(u(e,t),t)}function u(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=i;return e.substring(s)}function g(e,t){if(!e||!t)return e;const i=t.length,s=e.length;if(0===i||0===s)return e;let n=s,r=-1;for(;r=e.lastIndexOf(t,n-1),-1!==r&&r+i===n;){if(0===r)return"";n=r}return e.substring(0,n)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function f(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return i.global&&(s+="g"),i.matchCase||(s+="i"),i.multiline&&(s+="m"),i.unicode&&(s+="u"),new RegExp(e,s)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function v(e){return e.split(/\r\n|\r|\n/)}function C(e){const t=[],i=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(i.length/2);s++)t.push(i[2*s]+(i[2*s+1]??""));return t}function E(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function b(e,t=0,i=e.length){for(let s=t;s<i;s++){const i=e.charCodeAt(s);if(32!==i&&9!==i)return e.substring(t,s)}return e.substring(t,i)}function S(e,t=e.length-1){for(let i=t;i>=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function y(e,t){return e<t?-1:e>t?1:0}function w(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){const s=e.charCodeAt(i),r=t.charCodeAt(n);if(s<r)return-1;if(s>r)return 1}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function R(e,t){return L(e,t,0,e.length,0,t.length)}function L(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){let o=e.charCodeAt(i),a=t.charCodeAt(n);if(o===a)continue;if(o>=128||a>=128)return w(e.toLowerCase(),t.toLowerCase(),i,s,n,r);x(o)&&(o-=32),x(a)&&(a-=32);const c=o-a;if(0!==c)return c}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function T(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122}function k(e){return e>=65&&e<=90}function A(e,t){return e.length===t.length&&0===L(e,t)}function N(e,t){const i=t.length;return!(t.length>e.length)&&0===L(e,t,0,i)}function I(e,t){const i=Math.min(e.length,t.length);let s;for(s=0;s<i;s++)if(e.charCodeAt(s)!==t.charCodeAt(s))return s;return i}function O(e,t){const i=Math.min(e.length,t.length);let s;const n=e.length-1,r=t.length-1;for(s=0;s<i;s++)if(e.charCodeAt(n-s)!==t.charCodeAt(r-s))return s;return i}function D(e){return 55296<=e&&e<=56319}function M(e){return 56320<=e&&e<=57343}function P(e,t){return t-56320+(e-55296<<10)+65536}function F(e,t,i){const s=e.charCodeAt(i);if(D(s)&&i+1<t){const t=e.charCodeAt(i+1);if(M(t))return P(s,t)}return s}class U{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(M(i)&&t>1){const s=e.charCodeAt(t-2);if(D(s))return P(s,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=F(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new U(e,t)}nextGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());if(te(s,n)){t.setOffset(i);break}s=n}return t.offset-i}prevGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());if(te(n,s)){t.setOffset(i);break}s=n}return i-t.offset}eol(){return this._iterator.eol()}}function B(e,t){return new H(e,t).nextGraphemeLength()}function W(e,t){return new H(e,t).prevGraphemeLength()}function V(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+B(e,t);return[i-W(e,i),i]}let z;function G(e){return z||(z=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),z.test(e)}const j=/^[\t\n\r\x20-\x7E]*$/;function K(e){return j.test(e)}const Y=/[\u2028\u2029]/;function q(e){return Y.test(e)}function $(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function Z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function te(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ie{static{this._INSTANCE=null}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(e<t[3*s])s*=2;else{if(!(e>t[3*s+1]))return t[3*s+2];s=2*s+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new U(t,e);let s=i.prevCodePoint();for(;ne(s)||65039===s||8419===s;){if(0===i.offset)return;s=i.prevCodePoint()}if(!Q(s))return;let n=i.offset;if(n>0){8205===i.prevCodePoint()&&(n=i.offset)}return n}(e,t);if(void 0!==i)return i;const s=new U(t,e);return s.prevCodePoint(),s.offset}function ne(e){return 127995<=e&&e<=127999}const re="\xa0";class oe{static{this.ambiguousCharacterData=new n.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new s.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[s,n]of e)t.has(s)&&i.set(s,n);return i}const s=this.ambiguousCharacterData.value;let n,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const a of r){n=i(n,t(s[a]))}const o=function(e,t){const i=new Map(e);for(const[s,n]of t)i.set(s,n);return i}(t(s._common),n);return new oe(o)}))}static getInstance(e){return oe.cache.get(Array.from(e))}static{this._locales=new n.d((()=>Object.keys(oe.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return oe._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>E,x8:()=>v});var s=i(8597),n=i(56245),r=i(27661),o=i(11799),a=i(11007),c=i(48196),l=i(42904),h=i(31295),d=i(17390),u=i(41234);class g{constructor(e,t=0,i=e.length,s=t-1){this.items=e,this.start=t,this.end=i,this.index=s}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 p{constructor(e=[],t=10){this._initialize(e),this._limit=t,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();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(10146),f=i(78209);const _=s.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class C extends d.x{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=this.options.tooltip??(this.placeholder||""),this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=s.BC(e,_(".monaco-inputbox.idle"));const r=this.options.flexibleHeight?"textarea":"input",a=s.BC(this.element,_(".ibwrapper"));if(this.input=s.BC(a,_(r+".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:Number.POSITIVE_INFINITY,this.mirror=s.BC(a,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),s.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new n.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return t?.anchorNode===a}));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 o.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}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?this.hover.update(e):this.hover=this._register((0,c.i)().setupManagedHover((0,l.nZ)("mouse"),this.input,e))}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:s.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return s.X7(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(){const e=this.input.selectionStart;if(null===e)return null;return{start:e,end:this.input.selectionEnd??e}}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;const 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,m.aI)(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));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${s.gI(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(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e?.type}stylesForType(e){const 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(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=s.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{if(!this.message)return null;e=s.BC(i,_(".monaco-inputbox-container")),t();const n={inline:!0,className:"monaco-inputbox-message"},o=this.message.formatContent?(0,r.yk)(this.message.content,n):(0,r.S5)(this.message.content,n);o.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return o.style.backgroundColor=a.background??"",o.style.color=a.foreground??"",o.style.border=a.border?`1px solid ${a.border}`:"",s.BC(e,o),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.kg("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.kg("alertWarningMessage","Warning: {0}",this.message.content):f.kg("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}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()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){const e=this.options.inputBoxStyles,t=e.inputBackground??"",i=e.inputForeground??"",n=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 ${s.gI(n,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=s.OK(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))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,s=t.selectionEnd,n=t.value;null!==i&&null!==s&&(this.value=n.substr(0,i)+e+n.substr(s),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar?.dispose(),super.dispose()}}class E extends C{constructor(e,t,i){const n=f.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),r=f.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?n:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!s.X7(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,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(r)||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??"",a.h5(this.value?this.value:f.kg("clearedInput","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,a.h5(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()}}},92080:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(26214).then(i.bind(i,26214))})},92159:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.22 1.22V1.75a.75.75 0 0 1 1.5 0v7.69l1.22-1.22a.75.75 0 1 1 1.06 1.06zM1.75 13.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},92368:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>E,Am:()=>d,D1:()=>v,EK:()=>w,MZ:()=>S,Mu:()=>y,Nu:()=>f,O8:()=>R,Vs:()=>b,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>_});var s=i(46041),n=i(18447),r=i(5662),o=i(31308),a=i(4983),c=i(83069),l=i(36677),h=i(50973);function d(e,t,i,s){if(0===e.length)return t;if(0===t.length)return e;const n=[];let r=0,o=0;for(;r<e.length&&o<t.length;){const a=e[r],c=t[o],l=i(a),h=i(c);l<h?(n.push(a),r++):l>h?(n.push(c),o++):(n.push(s(a,c)),r++,o++)}for(;r<e.length;)n.push(e[r]),r++;for(;o<t.length;)n.push(t[o]),o++;return n}function u(e,t){const i=new r.Cm,s=e.createDecorationsCollection();return i.add((0,o.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function g(e,t){return e.appendChild(t),(0,r.s)((()=>{t.remove()}))}function p(e,t){return e.prepend(t),(0,r.s)((()=>{t.remove()}))}class m extends r.jG{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 a.u(e,t)),this._width=(0,o.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,o.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,o.Rn)((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 f(e,t,i){let s=t.get(),n=s,r=s;const a=(0,o.FY)("animatedValue",s);let c=-1;let l;function h(){const t=Date.now()-c;var i,o,d,u;r=Math.floor((o=n,d=s-n,(i=t)===(u=300)?o+d:d*(1-Math.pow(2,-10*i/u))+o)),t<300?l=e.requestAnimationFrame(h):r=s,a.set(r,void 0)}return i.add((0,o.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,o)=>{void 0!==l&&(e.cancelAnimationFrame(l),l=void 0),n=r,s=t.read(i),c=Date.now()-(o.animate?0:300),h()}))),a}class _ extends r.jG{constructor(e,t,i){super(),this._register(new C(e,i)),this._register(E(i,{height:t.actualHeight,top:t.actualTop}))}}class v{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,o.FY)(this,void 0),this._actualHeight=(0,o.FY)(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 C{static{this._counter=0}constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+C._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function E(e,t){return(0,o.fm)((i=>{for(let[s,n]of Object.entries(t))n&&"object"===typeof n&&"read"in n&&(n=n.read(i)),"number"===typeof n&&(n=`${n}px`),s=s.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[s]=n}))}function b(e,t,i,s){const n=new r.Cm,a=[];return n.add((0,o.yC)(((n,r)=>{const c=t.read(n),l=new Map,h=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t),s?.delete(t);a.length=0;for(const t of c){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),s?.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,o.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=h.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,s)=>{for(const e of c)e.onChange&&(h.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of s.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),n.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t)})),s?.clear(),i&&i(!1)}}),n}class S extends n.Qi{dispose(){super.dispose(!0)}}function y(e,t){const i=(0,s.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return l.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return l.Q.fromPositions(new c.y(t,e.column))}if(!i.innerChanges)return l.Q.fromPositions(new c.y(i.modified.startLineNumber,1));const n=(0,s.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return l.Q.fromPositions(new c.y(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(r=n.originalRange.getEndPosition(),o=e,r.lineNumber===o.lineNumber?new h.W(0,o.column-r.column):new h.W(o.lineNumber-r.lineNumber,o.column-1));return l.Q.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var r,o}function w(e,t){let i;return e.filter((e=>{const s=t(e,i);return i=e,s}))}class R{static create(e,t=void 0){return new L(e,e,t)}static createWithDisposable(e,t,i=void 0){const s=new r.Cm;return s.add(t),s.add(e),new L(e,s,i)}}class L extends R{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 T(this,e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(e){if(this._refCount--,0===this._refCount&&this._disposable.dispose(),e){const t=this._owners.indexOf(e);-1!==t&&this._owners.splice(t,1)}}}class T extends R{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))}}},92403:(e,t,i)=>{"use strict";i.d(t,{B:()=>u,m:()=>C});var s=i(8597),n=i(56245),r=i(25154),o=i(90766),a=i(58694),c=i(41234),l=i(5662),h=i(98067),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new c.vl;const p=new c.vl;class m{constructor(e){this.el=e,this.disposables=new l.Cm}get onPointerMove(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}d([a.B],m.prototype,"onPointerMove",null),d([a.B],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new n.f(this.el,r.B.Change)).event}get onPointerUp(){return this.disposables.add(new n.f(this.el,r.B.End)).event}constructor(e){this.el=e,this.disposables=new l.Cm}dispose(){this.disposables.dispose()}}d([a.B],f.prototype,"onPointerMove",null),d([a.B],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}d([a.B],_.prototype,"onPointerMove",null),d([a.B],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class C extends l.jG{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))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,l.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};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){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,l.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new o.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new c.vl),this._onDidStart=this._register(new c.vl),this._onDidChange=this._register(new c.vl),this._onDidReset=this._register(new c.vl),this._onDidEnd=this._register(new c.vl),this.orthogonalStartSashDisposables=this._register(new l.Cm),this.orthogonalStartDragHandleDisposables=this._register(new l.Cm),this.orthogonalEndSashDisposables=this._register(new l.Cm),this.orthogonalEndDragHandleDisposables=this._register(new l.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,s.BC)(e,(0,s.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.zx&&this.el.classList.add("mac");const a=this._register(new n.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const d=this._register(new n.f(this.el,"dblclick")).event;this._register(d(this.onPointerDoublePress,this));const u=this._register(new n.f(this.el,"mouseenter")).event;this._register(u((()=>C.onMouseEnter(this))));const _=this._register(new n.f(this.el,"mouseleave")).event;this._register(_((()=>C.onMouseLeave(this)))),this._register(r.q.addTarget(this.el));const v=this._register(new n.f(this.el,r.B.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const E=this._register(new n.f(this.el,r.B.Tap)).event;let b;this._register(E((e=>{if(b)return clearTimeout(b),b=void 0,void this.onPointerDoublePress(e);clearTimeout(b),b=setTimeout((()=>b=void 0),250)}),this)),"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(g.event((e=>{this.size=e,this.layout()})))),this._register(p.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",false),this.layout()}onPointerStart(e,t){s.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const s=this.getOrthogonalSash(e);s&&(i=!0,e.__orthogonalSashEvent=!0,s.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const s of n)s.classList.add(v);const r=e.pageX,o=e.pageY,a=e.altKey,c={startX:r,currentX:r,startY:o,currentY:o,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(c);const d=(0,s.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.zx?"col-resize":"ew-resize",d.textContent=`* { cursor: ${e} !important; }`},g=new l.Cm;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{s.fs.stop(e,!1);const t={startX:r,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{s.fs.stop(e,!1),d.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of n)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const 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&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const 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{const 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){const t=e.initialTarget??e.target;if(t&&(0,s.sb)(t))return t.classList.contains("orthogonal-drag-handle")?t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},92473:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>S});var s=i(60413),n=i(55275),r=i(98067),o=i(80624);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,s,n){const r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,s),r.getClientRects()}catch(o){return null}finally{this._detachRange(r,n)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);const t=[];let i=0,s=e[0];for(let n=1,r=e.length;n<r;n++){const r=e[n];s.left+s.width+.9>=r.left?s.width=Math.max(s.width,r.left+r.width-s.left):(t[i++]=s,s=r)}return t[i++]=s,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const s=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];s[n]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(s)}static readHorizontalRanges(e,t,i,s,n,r){const o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(s=Math.min(o,Math.max(0,s)))&&i===n&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==s&&s>0&&0===n&&(s--,n=1073741824);let a=e.children[t].firstChild,c=e.children[s].firstChild;if(a&&c||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!c&&0===n&&s>0&&(c=e.children[s-1].firstChild,n=1073741824)),!a||!c)return null;i=Math.min(a.textContent.length,Math.max(0,i)),n=Math.min(c.textContent.length,Math.max(0,n));const l=this._readClientRects(a,i,c,n,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(l,r.clientRectDeltaLeft,r.clientRectScale)}}var c=i(25521),l=i(35600),h=i(86723),d=i(87908);const u=!!r.ib||!(r.j9||s.gm||s.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,s=i.get(50),n=i.get(38);this.renderWhitespace="off"===n?i.get(100):"none",this.renderControlCharacters=i.get(95),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.useMonospaceOptimizations=s.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{static{this.CLASS_NAME="view-line"}constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,n.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,s,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=s.getViewLineRenderingData(e),o=this._options,a=c.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let p=null;if((0,h.Bb)(o.themeType)||"selection"===this._options.renderWhitespace){const t=s.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:r.minColumn,s=i.endLineNumber===e?i.endColumn:r.maxColumn;t<s&&((0,h.Bb)(o.themeType)&&a.push(new c.d(t,s,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new l.MT(t-1,s-1))))}}const _=new l.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==d.Bc.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;" class="'),n.appendString(m.CLASS_NAME),n.appendString('">');const v=(0,l.UW)(_,n);n.appendString("</div>");let E=null;return g&&u&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===v.containsForeignElements&&(E=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),E||(E=C(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=E,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,s){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const n=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==n&&t>n+1&&i>n+1)return new o.pj(!0,[new o.IO(this.getWidth(s),0)]);-1!==n&&t>n+1&&(t=n+1),-1!==n&&i>n+1&&(i=n+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,s);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const s=Math.floor(t.lineContent.length/300);if(s>0){this._keyColumnPixelOffsetCache=new Float32Array(s);for(let e=0;e<s;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,s){const n=this._getColumnPixelOffset(e,t,s),r=this._getColumnPixelOffset(e,i,s);return[new o.IO(n,r-n)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const s=Math.floor((t-1)/300)-1,n=300*(s+1)+1;let r=-1;if(this._keyColumnPixelOffsetCache&&(r=this._keyColumnPixelOffsetCache[s],-1===r&&(r=this._actualReadPixelOffset(e,n,i),this._keyColumnPixelOffsetCache[s]=r)),-1===r){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const o=this._characterMapping.getHorizontalOffset(n),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const s=this._characterMapping.getDomPosition(t),n=a.readHorizontalRanges(this._getReadingTarget(this.domNode),s.partIndex,s.charIndex,s.partIndex,s.charIndex,i);return n&&0!==n.length?n[0].left:-1}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class _{constructor(e,t,i,s,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,!s||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,s){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const n=this._readPixelOffset(this.domNode,e,t,s);if(-1===n)return null;const r=this._readPixelOffset(this.domNode,e,i,s);return-1===r?null:[new o.IO(n,r-n)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,s)}_readVisibleRangesForRange(e,t,i,s,n){if(i===s){const s=this._readPixelOffset(e,t,i,n);return-1===s?null:[new o.IO(s,0)]}return this._readRawVisibleRangesForRange(e,i,s,n)}_readPixelOffset(e,t,i,s){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(s);const t=this._getReadingTarget(e);return t.firstChild?(s.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const n=this._pixelOffsetCache[i];if(-1!==n)return n;const r=this._actualReadPixelOffset(e,t,i,s);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,s)}_actualReadPixelOffset(e,t,i,s){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,s);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(s);const n=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,n.partIndex,n.charIndex,s);if(!r||0===r.length)return-1;const o=r[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-o)<=1)return t}return o}_readRawVisibleRangesForRange(e,t,i,s){if(1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(s))];const n=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,r.partIndex,r.charIndex,s)}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,s,n){const r=super._readVisibleRangesForRange(e,t,i,s,n);if(!r||0===r.length||i===s||1===i&&s===this._characterMapping.length)return r;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,s,n);if(-1!==i){const e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}const C=s.Tc?E:b;function E(e,t,i,s,n){return new v(e,t,i,s,n)}function b(e,t,i,s,n){return new _(e,t,i,s,n)}function S(e,t,i){const s=t.textContent.length;let n=-1;for(;t;)t=t.previousSibling,n++;return e.getColumn(new l.wZ(n,i),s)}},92674:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,Vs:()=>h,x9:()=>u,xD:()=>c,yP:()=>l});var s=i(25890),n=i(91508),r=i(83069),o=i(36677),a=i(75295);class c{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(o.Q.fromPositions(new r.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class l{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,n.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i,s=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=s,this.parts=[new l(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,n.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function d(e,t){return(0,s.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof c&&t instanceof c||e instanceof h&&t instanceof h)&&e.equals(t))}},92719:(e,t,i)=>{"use strict";var s;i.d(t,{Q:()=>s}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),s=Math.min(e.end,t.end);return s-i<=0?{start:0,end:0}:{start:i,end:s}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,s){return!i(t(e,s))},e.relativeComplement=function(e,t){const s=[],n={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(n)||s.push(n),i(r)||s.push(r),s}}(s||(s={}))},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},92778:(e,t,i)=>{e.exports=function(e){const t=i(94297),s=i(34420);return function(i,n,r){n=Object.assign({},n,{format:t.JSON,showDecoded:!1,compact:!1,escapeWhitespace:!0});let o=i.$value;try{o=JSON.parse(i.$value)}catch(a){console.error("Invalid JSON string",i.$value)}return e(s(o,n),n,r)}}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>c,LM:()=>o,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>d,qL:()=>l,vo:()=>u});var s=i(25890),n=i(91508),r=i(36677);class o{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|s}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class c{constructor(e,t,i,s,n,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=n,this.tokens=r,this.inlineDecorations=o}}class l{constructor(e,t,i,s,n,r,o,a,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=l.isBasicASCII(i,r),this.containsRTL=l.containsRTL(i,this.isBasicASCII,n),this.tokens=o,this.inlineDecorations=a,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&n.E_(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class d{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new h(new r.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{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?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&s.aI(e.data,t.data)}static equalsArr(e,t){return s.aI(e,t,g.equals)}}},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>j,_C:()=>E,W0:()=>D,Bm:()=>F,B6:()=>A,b$:()=>O,bm:()=>I,mh:()=>z,tX:()=>V,Es:()=>P,xu:()=>M,bG:()=>Y});var s=i(8597),n=i(56245),r=i(72962),o=i(25154),a=i(11007);class c{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((s=>s.splice(e,t,i)))}}var l=i(25890),h=i(90766),d=i(47661),u=i(58694),g=i(41234),p=i(26690),m=i(5662),f=i(1592),_=i(98067),v=i(631);i(48215);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var E,b,S=i(66700),y=i(47358),w=i(31308),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const s=this.renderedElements.findIndex((e=>e.templateData===i));if(s>=0){const e=this.renderedElements[s];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const s=[];for(const n of this.renderedElements)n.index<e?s.push(n):n.index>=e+t&&s.push({index:n.index+i-t,templateData:n.templateData});this.renderedElements=s}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class T{get name(){return this._trait}get renderer(){return new L(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const s=i.length-t,n=e+t,r=[];let o=0;for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]<e;)r.push(this.sortedIndexes[o++]);for(let a=0;a<i.length;a++)i[a]&&r.push(a+e);for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]>=n;)r.push(this.sortedIndexes[o++]+s);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Q),t)}_set(e,t,i){const s=this.indexes,n=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=$(n,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return(0,l.El)(this.sortedIndexes,e,Q)>=0}dispose(){(0,m.AS)(this._onChange)}}R([u.B],T.prototype,"renderer",null);class x extends T{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class k{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===s.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=new Set(s),r=i.map((e=>n.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,r)}}function A(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function N(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&N(e.parentElement,t))}function I(e){return N(e,"monaco-editor")}function O(e){return N(e,"monaco-custom-toggle")}function D(e){return N(e,"action-item")}function M(e){return N(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class U{get onKeyDown(){return g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,l.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}R([u.B],U.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(E||(E={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(b||(b={}));const H=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class B{constructor(e,t,i,s,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=s,this.delegate=n,this.enabled=!1,this.state=b.Idle,this.mode=E.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){e.typeNavigationEnabled??1?this.enable():this.disable(),this.mode=e.typeNavigationMode??E.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!A(e.target))).filter((()=>this.mode===E.Automatic||this.triggered)).map((e=>new r.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>s.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){const e=this.list.getFocus();if(e.length>0&&e[0]===this.previouslyFocused){const t=this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(e[0]));"string"===typeof t?(0,a.xE)(t):t&&(0,a.xE)(t.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=b.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===b.Idle?1:0;this.state=b.Typing;for(let n=0;n<this.list.length;n++){const t=(i+n+s)%this.list.length,r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),o=r&&r.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof o){if((0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const s=(0,p.O)(e,o);if(s){if(s[0].end-s[0].start>1&&1===s.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof o||(0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new n.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(0,s.sb)(n)||-1===n.tabIndex)return;const r=(0,s.zk)(n).getComputedStyle(n);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function V(e){return _.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function z(e){return e.browserEvent.shiftKey}const G={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:z};class j{constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(o.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,s.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,s.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){i=this.list.getFocus()[0]??t,this.list.setAnchor(i)}const s=Math.min(i,t),n=Math.max(i,t),r=(0,l.y1)(s,n+1),o=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const s=[];let n=i-1;for(;n>=0&&e[n]===t-(i-n);)s.push(e[n--]);s.reverse(),n=i;for(;n<e.length&&e[n]===t+(n-i);)s.push(e[n++]);return s}($(o,[i]),i);if(0===a.length)return;const c=$(r,function(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){s++,n++;continue}e[s]<t[n]?i.push(e[s++]):n++}return i}(o,a));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),s=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const n=(0,s.gI)(e.listFocusAndSelectionOutline,(0,s.gI)(e.listSelectionOutline,e.listFocusOutline??""));n&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused.selected { outline: 1px solid ${n}; outline-offset: -1px;}`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const r=(0,s.gI)(e.listSelectionOutline,e.listInactiveFocusOutline??"");r&&i.push(`.monaco-list${t} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&i.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=i.join("\n")}}const Y={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:d.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:d.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:d.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function $(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){i.push(e[s]),s++,n++;continue}e[s]<t[n]?i.push(e[s++]):i.push(t[n++])}return i}const Q=(e,t)=>e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,s){let n=0;for(const r of this.renderers)r.renderElement(e,t,i[n++],s)}disposeElement(e,t,i,s){let n=0;for(const r of this.renderers)r.disposeElement?.(e,t,i[n],s),n+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class Z{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const s=this.accessibilityProvider.getAriaLabel(e),n=s&&"string"!==typeof s?s:(0,w.lk)(s);i.disposables.add((0,w.fm)((e=>{this.setAriaLabel(e.readObservable(n),i.container)})));const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?i.container.setAttribute("aria-level",`${r}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,s){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart?.(e,t)}onDragOver(e,t,i,s,n){return this.dnd.onDragOver(e,t,i,s,n)}onDragLeave(e,t,i,s){this.dnd.onDragLeave?.(e,t,i,s)}onDragEnd(e){this.dnd.onDragEnd?.(e)}drop(e,t,i,s,n){this.dnd.drop(e,t,i,s,n)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new r.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>s.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new r.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>s.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:"undefined"!==typeof i?this.view.element(i):void 0,anchor:"undefined"!==typeof i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),o=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new y.P((0,s.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,o)}get onKeyDown(){return this.disposables.add(new n.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,r=q){this.user=e,this._options=r,this.focus=new T("focused"),this.anchor=new T("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const o=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?this._options.accessibilityProvider?.getWidgetRole():"list";this.selection=new x("listbox"!==o);const a=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(a.push(new Z(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map((e=>new X(e.templateId,[...a,e])));const l={...r,dnd:r.dnd&&new J(this,r.dnd)};if(this.view=this.createListView(t,i,n,l),this.view.domNode.setAttribute("role",o),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=(0,s.li)(this.view.domNode);this.styleController=new K(e,this.view.domId)}if(this.spliceable=new c([new k(this.focus,this.view,r.identityProvider),new k(this.selection,this.view,r.identityProvider),new k(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof r.keyboardSupport||r.keyboardSupport)&&(this.keyboardController=new U(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||H;this.typeNavigationController=new B(this,this.view,r.keyboardNavigationLabelProvider,r.keyboardNavigationEventFilter??(()=>!0),e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,s){return new S.uO(e,t,i,s)}createMouseController(e){return new j(this)}updateOptions(e={}){this._options={...this._options,...e},this.typeNavigationController?.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),this.keyboardController?.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,l.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findNextIndex(n.length>0?n[0]+e:0,t,s);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findPreviousIndex(n.length>0?n[0]-e:0,t,s);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const s=this.getFocus()[0];if(s!==i&&(void 0===s||i>s)){const n=this.findPreviousIndex(i,!1,t);n>-1&&s!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();let r=n+this.view.renderHeight;i>s&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==n&&(this.setFocus([]),await(0,h.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let s;const n=i(),r=this.view.getScrollTop()+n;s=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);const o=this.getFocus()[0];if(o!==s&&(void 0===o||o>=s)){const i=this.findNextIndex(s,!1,t);i>-1&&o!==i?this.setFocus([i],e):this.setFocus([s],e)}else{const s=r;this.view.setScrollTop(r-this.view.renderHeight-n),this.view.getScrollTop()+i()!==s&&(this.setFocus([]),await(0,h.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const s=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,v.Et)(t)){const e=r-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+n-i)}else{const e=n+r,t=s+this.view.renderHeight;n<s+i&&e>=t||(n<s+i||e>=t&&r>=this.view.renderHeight?this.view.setScrollTop(n-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),s=this.view.elementTop(e),n=this.view.elementHeight(e);if(s<i+t||s+n>i+this.view.renderHeight)return null;const r=n-this.view.renderHeight+t;return Math.abs((i+t-s)/r)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){const e=this.focus.get();if(e.length>0){let t;this.accessibilityProvider?.getActiveDescendantId&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(e[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(e[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}R([u.B],ee.prototype,"onDidChangeFocus",null),R([u.B],ee.prototype,"onDidChangeSelection",null),R([u.B],ee.prototype,"onContextMenu",null),R([u.B],ee.prototype,"onKeyDown",null),R([u.B],ee.prototype,"onDidFocus",null),R([u.B],ee.prototype,"onDidBlur",null)},93409:(e,t,i)=>{"use strict";var s=i(78209),n=i(66261);(0,n.x1A)("symbolIcon.arrayForeground",n.CU6,(0,s.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.booleanForeground",n.CU6,(0,s.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.colorForeground",n.CU6,(0,s.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constantForeground",n.CU6,(0,s.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fileForeground",n.CU6,(0,s.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.folderForeground",n.CU6,(0,s.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keyForeground",n.CU6,(0,s.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keywordForeground",n.CU6,(0,s.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.moduleForeground",n.CU6,(0,s.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.namespaceForeground",n.CU6,(0,s.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.nullForeground",n.CU6,(0,s.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.numberForeground",n.CU6,(0,s.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.objectForeground",n.CU6,(0,s.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.operatorForeground",n.CU6,(0,s.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.packageForeground",n.CU6,(0,s.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.propertyForeground",n.CU6,(0,s.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.referenceForeground",n.CU6,(0,s.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.snippetForeground",n.CU6,(0,s.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.stringForeground",n.CU6,(0,s.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.structForeground",n.CU6,(0,s.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.textForeground",n.CU6,(0,s.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.typeParameterForeground",n.CU6,(0,s.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.unitForeground",n.CU6,(0,s.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},93599:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(91508),n=i(40579),r=i(19131),o=i(32956),a=i(51934);class c{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const s=new Map;for(const c of e.bracketsNew.openingBrackets){const e=(0,r.qe)(0,c.bracketText.length),t=i(c),l=o.gV.getEmpty().add(t,o.FD);s.set(c.bracketText,new a.ou(e,1,t,l,n.rh.create(e,c,l)))}for(const c of e.bracketsNew.closingBrackets){const e=(0,r.qe)(0,c.bracketText.length);let t=o.gV.getEmpty();const l=c.getOpeningBrackets();for(const s of l)t=t.add(i(s),o.FD);s.set(c.bracketText,new a.ou(e,2,i(l[0]),t,n.rh.create(e,c,t)))}return new c(s)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,s.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class l{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=c.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},93844:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},93895:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var s=i(91508),n=i(1245);function r(e,t,i){let r=s.HG(e);return-1===r&&(r=e.length),function(e,t,i){let s=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?s=n.A.nextIndentTabStop(s,t):s++;let r="";if(!i){const e=Math.floor(s/t);s%=t;for(let t=0;t<e;t++)r+="\t"}for(let n=0;n<s;n++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>c});var s=i(8597),n=i(41234),r=i(5662);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const c=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,s.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(n.Jh.once(s.Fv)((({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},94297:e=>{!function(){"use strict";function t(e,t){let i="";for(let s=0;s<t;s++)i+=e;return i}function i(e,i){return(t("0",i)+e.toString(16)).substr(-i)}function s(e,i){return(t("0",i)+e.toString(8)).substr(-i)}function n(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="7"));var s}function r(e,t,i){return!(i<t-1&&(s=e[i+1],s>="0"&&s<="9"||s>="a"&&s<="f"||s>="A"&&s<="F"));var s}const o="json",a="yson",c=" ",l="\xa0",h=function(e){const t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",s=RegExp(i),n=RegExp(i,"g");return function(e){return e=null===e?"":String(e),s.test(e)?e.replace(n,t):e}},d=h({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),u=h({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"});function g(e,t,i){return 0===i||i===t-1||(" "===e[i-1]||" "===e[i+1])}function p(e,t,i){return t&&(e=d(e),i||(e='<span class="escape">'+e)),e}function m(e,t,i){return t&&(e=d(e),i&&(e="</span>"+e)),e}function f(e,t){let i='"';return e&&(i='<span class="quote">'+d(i)+"</span>",t&&(i="</span>"+i)),i}function _(e,t){return t.split("").map((function(e){const t=e.charCodeAt(0);if(t>255)throw new Error("unipika: input string is not binary.");return i(t,2)})).join(e.nonBreakingIndent?l:c)}function v(e){return e.format===a?";":","}const C=new Set(["A","B","C","D","E","G","I","N","P","R","S","T","U","V","X","Z"]);e.exports={parseSetting:function(e,t,i){return e&&"undefined"!==typeof e[t]?e[t]:i},repeatChar:t,escapeJSONString:function(e,t){const s=t,n=t.length,r=e.asHTML;let o,a,c,l="",h=!1;l+=f(r,h);for(let u=0;u<n;u++)o=s.charAt(u),a=s.charCodeAt(u),'"'===o||"\\"===o?(c="\\"+o,l+=m(c,r,h),h=!1):"\n"===o||"\t"===o?e.escapeWhitespace?(c={"\n":"\\n","\t":"\\t"}[o],l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1):"\b"===o||"\f"===o||"\r"===o?(c={"\b":"\\b","\f":"\\f","\r":"\\r"}[o],l+=p(c,r,h),h=!0):(d=a)<32&&d>=0||d>=127&&d<=159?(c="\\u"+i(a,4),e.highlightControlCharacter?(l+=p(c,r,h),h=!0):(l+=m(c,r,h),h=!1)):" "===o&&e.escapeWhitespace&&g(s,n,u)?(c=" ",l+=p(c,r,h),h=!0):(l+=m(o,r,h),h=!1);var d;return l+=f(r,h),l},escapeYSONString:function(e,t){const o=t,a=t.length,c=e.asHTML;let l,h,d,u="",_=!1;u+=f(c,_);for(let f=0;f<a;f++)l=o.charAt(f),h=o.charCodeAt(f),'"'===l||"\\"===l?(d="\\"+l,u+=m(d,c,_),_=!1):"\r"===l?(d={"\r":"\\r"}[l],u+=p(d,c,_),_=!0):"\n"===l||"\t"===l?e.escapeWhitespace?(d={"\n":"\\n","\t":"\\t"}[l],u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<=126&&h>=32?" "===l&&e.escapeWhitespace&&g(o,a,f)?(d=" ",u+=p(d,c,_),_=!0):(u+=m(l,c,_),_=!1):h<8&&h>=0&&n(o,a,f)?(d="\\"+s(h,1),u+=m(d,c,_),_=!1):r(o,a,f)?(d="\\x"+i(h,2),u+=m(d,c,_),_=!1):(d="\\"+s(h,3),u+=m(d,c,_),_=!1);return u+=f(c,_),u},escapeHTMLString:function(e,t){const i=t,s=t.length,n=e.asHTML;let r,o="";o+=f(n,!1);for(let a=0;a<s;a++)r=i.charAt(a),o+=m(r,n,!1);return o+=f(n,!1),o},escapeYSONBinaryString:function(e,t){return _(e,t)},escapeYQLBinaryString:function(e,t){return _(e,atob(t))},unescapeKeyValue:function(e){return"string"===typeof e?e.replace(/^\$\$/,"$"):e},returnAsIs:function(e,t){return t},escape:d,unescape:u,normalizeUrl:function(e,t){try{return t.normalizeUrl?t.normalizeUrl(e):encodeURI(e)}catch(i){return console.error("unipika: An error occured during normalizeUrl call",{url:e},i),""}},getAttributesEnd:function(e){return e.format===o?"}"+v(e):e.format===a?">":void 0},getAttributesStart:function(e){return e.format===o?"{":e.format===a?"<":void 0},getKeyValueSeparator:function(e){const t=e.nonBreakingIndent?l:c;return e.format===a?t+"="+t:":"+t},getExpressionTerminator:v,getIndent:function(e,i){const s=e.nonBreakingIndent?l:c;return(e.break?"\n":"")+t(s,e.indent*i)},OBJECT_START:"{",OBJECT_END:"}",ARRAY_START:"[",ARRAY_END:"]",YSON_ATTRIBUTES_START:"<",YSON_ATTRIBUTES_END:">",JSON_EXPRESSION_TERMINATOR:",",JSON_KEY_VALUE_SEPARATOR:": ",EMPTY_STRING:"",WHITESPACE:c,NON_BREAKING_WHITESPACE:l,LINE_FEED:"\n",JSON:o,YSON:a,drawFullView:function(e,t){return e>1||1===e&&!t.compact},drawCompactView:function(e,t){return 1===e&&t.compact},wrapScalar:function(e,t,i){let s=e.$type.replaceAll(".","_"),n="";var r;return(r=e.$category)&&C.has(r.toUpperCase())&&(s+=" pg_category_"+e.$category.toLowerCase()),e.$incomplete&&(s+=" incomplete"),e.$binary&&(s+=" binary"),e.$key&&(s+=" key"),e.$special_key&&(s+=" special-key"),e.$incomplete&&e.$original_value&&(n=e.$original_value),t.asHTML?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapComplex:function(e,t,i){let s="",n="";return e.$incomplete&&(s+=" incomplete"),e.$incomplete&&e.$original_value&&(n=e.$original_value),"yql.yson"===e.$type&&e.$incomplete?t.asHTML&&s?'<span class="'+s+'"></span>':i:t.asHTML&&s?"<span"+(n?' title="'+d(n)+'"':"")+' class="'+s+'">'+i+"</span>":i},wrapOptional:function(e,t,i){if(e.$optional>0&&null===e.$value){const s=new Array(e.$optional).fill("[").join(""),n=new Array(e.$optional).fill("]").join("");return t.asHTML?'<span class="optional">'+s+"</span>"+i+'<span class="optional">'+n+"</span>":s+i+n}return i},toPaddedHex:i,toPaddedOctal:s,binaryToHex:_}}()},94318:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(99872).then(i.bind(i,99872))})},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>l,vf:()=>p});var s=i(61059),n=i(87908),r=i(24329),o=i(78209),a=i(1646),c=i(46359);const l=Object.freeze({id:"editor",order:5,type:"object",title:o.kg("editorConfigurationTitle","Editor"),scope:5}),h={...l,properties:{"editor.tabSize":{type:"number",default:r.R.tabSize,minimum:1,markdownDescription:o.kg("tabSize","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:o.kg("indentSize",'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:r.R.insertSpaces,markdownDescription:o.kg("insertSpaces","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:r.R.detectIndentation,markdownDescription:o.kg("detectIndentation","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:r.R.trimAutoWhitespace,description:o.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:r.R.largeFileOptimizations,description:o.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[o.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),o.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),o.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),o.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:o.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[o.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),o.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),o.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:o.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:o.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationVerification","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:o.kg("editor.experimental.treeSitterTelemetry","Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:o.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:o.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:s.q.maxComputationTime,description:o.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:s.q.maxFileSize,description:o.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:s.q.renderSideBySide,description:o.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:s.q.renderSideBySideInlineBreakpoint,description:o.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:s.q.useInlineViewWhenSpaceIsLimited,description:o.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:s.q.renderMarginRevertIcon,description:o.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:s.q.renderGutterMenu,description:o.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:s.q.ignoreTrimWhitespace,description:o.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:s.q.renderIndicators,description:o.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:s.q.diffCodeLens,description:o.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:s.q.diffWordWrap,markdownEnumDescriptions:[o.kg("wordWrap.off","Lines will never wrap."),o.kg("wordWrap.on","Lines will wrap at the viewport width."),o.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:s.q.diffAlgorithm,markdownEnumDescriptions:[o.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),o.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:s.q.hideUnchangedRegions.enabled,markdownDescription:o.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:s.q.hideUnchangedRegions.revealLineCount,markdownDescription:o.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:s.q.hideUnchangedRegions.minimumLineCount,markdownDescription:o.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:s.q.hideUnchangedRegions.contextLineCount,markdownDescription:o.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:s.q.experimental.showMoves,markdownDescription:o.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:s.q.experimental.showEmptyDecorations,description:o.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:s.q.experimental.useTrueInlineView,description:o.kg("useTrueInlineView","If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(const f of n.BE){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(d=e).type||"undefined"!==typeof d.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var d;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}c.O.as(a.Fd.Configuration).registerConfiguration(h)},94484:(e,t,i)=>{e.exports=i(64066)},94564:(e,t,i)=>{"use strict";i.d(t,{I:()=>h});var s=i(91508),n=i(1245),r=i(83069),o=i(36677),a=i(35817),c=i(32799);class l{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-s.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new r.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const s=e.getLineMinColumn(t.lineNumber),n=e.getLineContent(t.lineNumber),o=a.s.atomicPosition(n,t.column-1,i,0);if(-1!==o&&o+1>=s)return new r.y(t.lineNumber,o+1)}return this.leftPosition(e,t)}static left(e,t,i){const s=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new l(s.lineNumber,s.column,0)}static moveLeft(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.startLineNumber,o=i.selection.startColumn;else{const s=i.position.delta(void 0,-(n-1)),a=t.normalizePosition(h.clipPositionColumn(s,t),0),c=h.left(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static clipPositionColumn(e,t){return new r.y(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.iy(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new r.y(t,i)}static rightPositionAtomicSoftTabs(e,t,i,s,n){if(i<e.getLineIndentColumn(t)){const n=e.getLineContent(t),o=a.s.atomicPosition(n,i-1,s,1);if(-1!==o)return new r.y(t,o+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const s=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new l(s.lineNumber,s.column,0)}static moveRight(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.endLineNumber,o=i.selection.endColumn;else{const s=i.position.delta(void 0,n-1),a=t.normalizePosition(h.clipPositionColumn(s,t),1),c=h.right(e,t,a);r=c.lineNumber,o=c.column}return i.move(s,r,o,0)}static vertical(e,t,i,s,o,a,c,h){const d=n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize)+o,u=t.getLineCount(),g=1===i&&1===s,p=i===u&&s===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,s=c?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),s)):i>u?(i=u,s=c?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),s)):s=e.columnFromVisibleColumn(t,i,d),o=m?0:d-n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize),void 0!==h){const e=new r.y(i,s),n=t.normalizePosition(e,h);o+=s-n.column,i=n.lineNumber,s=n.column}return new l(i,s,o)}static down(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i+r,o,4)}static moveDown(e,t,i,s,n){let o,a;i.hasSelection()&&!s?(o=i.selection.endLineNumber,a=i.selection.endColumn):(o=i.position.lineNumber,a=i.position.column);let c,l=0;do{c=h.down(e,t,o+l,a,i.leftoverVisibleColumns,n,!0);if(t.normalizePosition(new r.y(c.lineNumber,c.column),2).lineNumber>o)break}while(l++<10&&o+l<t.getLineCount());return i.move(s,c.lineNumber,c.column,c.leftoverVisibleColumns)}static translateDown(e,t,i){const s=i.selection,n=h.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i-r,o,3)}static moveUp(e,t,i,s,n){let r,o;i.hasSelection()&&!s?(r=i.selection.startLineNumber,o=i.selection.startColumn):(r=i.position.lineNumber,o=i.position.column);const a=h.up(e,t,r,o,i.leftoverVisibleColumns,n,!0);return i.move(s,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const s=i.selection,n=h.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new c.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,s){let n=i.position.lineNumber;for(;n>1&&this._isBlankLine(t,n);)n--;for(;n>1&&!this._isBlankLine(t,n);)n--;return i.move(s,n,t.getLineMinColumn(n),0)}static moveToNextBlankLine(e,t,i,s){const n=t.getLineCount();let r=i.position.lineNumber;for(;r<n&&this._isBlankLine(t,r);)r++;for(;r<n&&!this._isBlankLine(t,r);)r++;return i.move(s,r,t.getLineMinColumn(r),0)}static moveToBeginningOfLine(e,t,i,s){const n=i.position.lineNumber,r=t.getLineMinColumn(n),o=t.getLineFirstNonWhitespaceColumn(n)||r;let a;return a=i.position.column===o?r:o,i.move(s,n,a,0)}static moveToEndOfLine(e,t,i,s,n){const r=i.position.lineNumber,o=t.getLineMaxColumn(r);return i.move(s,r,o,n?1073741824-o:0)}static moveToBeginningOfBuffer(e,t,i,s){return i.move(s,1,1,0)}static moveToEndOfBuffer(e,t,i,s){const n=t.getLineCount(),r=t.getLineMaxColumn(n);return i.move(s,n,r,0)}}},94630:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s,n,r=i(59284);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const a=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=r.createElement("g",{clipPath:"url(#font-case_svg__a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 001.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 001.416-.496L6.123 3.224A1.455 1.455 0 004.75 2.25M6.38 8.5L4.75 3.842 3.12 8.5zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.7.7 0 01-.193-.505m2.985.754V13a.75.75 0 101.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 10.77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5z",clipRule:"evenodd"}))),n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"font-case_svg__a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))))}},94650:(e,t,i)=>{"use strict";i.d(t,{W:()=>o,c:()=>r});var s=i(36677),n=i(19131);class r{static fromModelContentChanges(e){return e.map((e=>{const t=s.Q.lift(e.range);return new r((0,n.VL)(t.getStartPosition()),(0,n.VL)(t.getEndPosition()),(0,n.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,n.l4)(this.startOffset)}...${(0,n.l4)(this.endOffset)}) -> ${(0,n.l4)(this.newLength)}`}}class o{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,n.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,n.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,n.vr)(i,e))break;{this.nextEditIdx++;const e=(0,n.l4)(i),s=(0,n.l4)(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-s.lineCount;this.deltaOldToNewLineCount+=r;const o=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-s.columnCount;this.deltaOldToNewColumnCount=o+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,n.l4)(t),this.endOffsetAfterObj=(0,n.l4)((0,n.QB)(e,i)),this.offsetObj=(0,n.l4)(e)}}},94746:(e,t,i)=>{"use strict";i.d(t,{Hg:()=>p});var s,n=i(14718),r=i(63591),o=i(41234),a=i(78381),c=i(86571),l=i(87723),h=i(10920),d=i(90651),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=(0,r.u1)("diffProviderFactoryService");let m=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(f,e)}};m=u([g(0,r._Y)],m),(0,n.v)(p,m,1);let f=class{static{s=this}static{this.diffCache=new Map}constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new o.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(e,t,i,n){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 l.wm(new c.M(1,2),new c.M(1,t.getLineCount()+1),[new l.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),o=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),h=s.diffCache.get(r);if(h&&h.context===o)return h.result;const d=a.W.create(),u=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),g=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:g,timedOut:u?.quitEarly??!0,detectedMoves:i.computeMoves?u?.moves.length??0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!u)throw new Error("no diff result available");return s.diffCache.size>10&&s.diffCache.delete(s.diffCache.keys().next().value),s.diffCache.set(r,{result:u,context:o}),u}setOptions(e){let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.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()}};f=s=u([g(1,h.IEditorWorkerService),g(2,d.k)],f)},94803:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(35382).then(i.bind(i,35382))})},94908:(e,t,i)=>{"use strict";var s=i(60413),n=i(8597),r=i(98067),o=i(68792),a=i(31450),c=i(80301),l=i(60002),h=i(55433),d=i(78209),u=i(27195),g=i(54770),p=i(32848);const m="9_cutcopypaste",f=r.ib||document.queryCommandSupported("cut"),_=r.ib||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!s.gm||document.queryCommandSupported("paste");function C(e){return e.register(),e}const E=f?C(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:r.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:l.R.writable,order:1}]})):void 0,b=_?C(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:r.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:d.aS("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:d.aS("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:d.aS("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),l.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:d.aS("share","Share"),group:"11_share",order:-1});const S=v?C(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:r.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:l.R.writable,order:4}]})):void 0;class y extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(o.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),o.Eq.forceCopyWithSyntaxHighlighting=!1)}}function w(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const s=e.get(c.T).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const e=s.getOption(37),i=s.getSelection();return i&&i.isEmpty()&&!e||s.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,n.a)().execCommand(t),!0))))}w(E,"cut"),w(b,"copy"),S&&(S.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(c.T),s=e.get(g.h),n=i.getFocusedCodeEditor();if(n&&n.hasTextFocus()){return n.getContainerDomNode().ownerDocument.execCommand("paste")?h.Rj.get(n)?.finishedPaste()??Promise.resolve():!r.HZ||(async()=>{const e=await s.readText();if(""!==e){const t=o.bs.INSTANCE.get(e);let i=!1,s=null,r=null;t&&(i=n.getOption(37)&&!!t.isFromEmptySelection,s="undefined"!==typeof t.multicursorText?t.multicursorText:null,r=t.mode),n.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:s,mode:r})}})()}return!1})),S.addImplementation(0,"generic-dom",((e,t)=>((0,n.a)().execCommand("paste"),!0)))),_&&(0,a.Fl)(y)},94958:(e,t,i)=>{"use strict";let s;function n(e){s=e}function r(){return s}i.d(t,{Br:()=>n,jm:()=>o,tZ:()=>r});class o{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let s="";function n(e){if("length"in e)for(const t of e)t&&n(t);else"text"in e?(s+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}n(e);const r=[s,...t];return r.push(...i),r}([a(d("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),l(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),l(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),l(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return l(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),l(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),l(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),l(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return l(e,{color:"black"})}function c(e){return l(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function l(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(s=i,Object.entries(s).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var s}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",s=!0;for(const n of e){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${h(n,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",s=!0;for(const[n,r]of Object.entries(e)){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${n}: ${h(r,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function d(e,t){let i="";for(let s=1;s<=t;s++)i+=e;return i}},95200:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450);class r extends s.jG{static{this.ID="editor.contrib.longLinesHelper"}constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(118);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}(0,n.HW)(r.ID,r,2)},96032:(e,t,i)=>{"use strict";i.d(t,{n:()=>s,r:()=>n});class s{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const n=new s("id#")},96282:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1)}}}getImplementations(){return this._implementations}}},96299:(e,t,i)=>{"use strict";i.d(t,{Y:()=>k});var s,n=i(90766),r=i(18447),o=i(64383),a=i(41234),c=i(5662),l=i(91508),h=i(75326),d=i(10920),u=i(14055),g=i(54770),p=i(84001),m=i(32848),f=i(18801),_=i(90651),v=i(51173),C=i(48116),E=i(56942),b=i(26690),S=i(631),y=i(62051),w=i(30936),R=i(97035),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};class x{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.getWordAtPosition(i);return!!s&&((s.endColumn===i.column||s.startColumn+1===i.column)&&!!isNaN(Number(s.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let k=s=class{constructor(e,t,i,s,r,o,l,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=s,this._logService=r,this._contextKeyService=o,this._configurationService=l,this._languageFeaturesService=d,this._envService=u,this._toDispose=new c.Cm,this._triggerCharacterListener=new c.Cm,this._triggerQuickSuggest=new n.pc,this._triggerState=void 0,this._completionDisposables=new c.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,c.AS)(this._triggerCharacterListener),(0,c.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let s=e.get(t);if(!s){s=new Set;const i=(0,C.f3)();i&&s.add(i),e.set(t,s)}s.add(i)}const t=t=>{if(!function(e,t){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(x.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,l.LJ)(t.charCodeAt(t.length-1))?(0,l.pc)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const s=e.get(i);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:i,retrigger:Boolean(this._completionModel),clipboardText:this._completionModel?.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),this._requestToken?.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){C.r3.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&w.O.get(this._editor)?.isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!x.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(90);if(!C.r3.isAllOff(i)){if(!C.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const s=e.tokenization.getLineTokens(t.lineNumber),n=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==C.r3.valueFor(i,n))return}(function(e,t){if(!Boolean(t.getContextKeyValue(y.p.inlineSuggestionVisible.key)))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(91)))}_refilterCompletionItems(){(0,S.j)(this._editor.hasModel()),(0,S.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new x(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=new x(t,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:e.shy??!1,position:this._editor.getPosition()}),this._context=i;let n={triggerKind:e.triggerKind??0};e.triggerCharacter&&(n={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new r.Qi;let a=1;switch(this._editor.getOption(113)){case"top":a=0;break;case"bottom":a=2}const{itemKind:c,showDeprecated:l}=s.createSuggestFilter(this._editor),h=new C.l1(a,e.completionOptions?.kindFilter??c,e.completionOptions?.providerFilter,e.completionOptions?.providerItemsToReuse,l),d=u.S.create(this._editorWorkerService,this._editor),g=(0,C.aR)(this._languageFeaturesService.completionProvider,t,this._editor.getPosition(),h,n,this._requestToken.token);Promise.all([g,d]).then((async([t,i])=>{if(this._requestToken?.dispose(),!this._editor.hasModel())return;let s=e?.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;const n=this._editor.getModel(),r=new x(n,this._editor.getPosition(),e),o={...b.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new v.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(119),this._editor.getOption(113),o,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(o.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(113)&&t.add(27);const i=e.getOption(119);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,l.UU)(e.leadingLineContent)===(0,l.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(x.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,s]of this._completionModel.getItemsByProvider())s.length>0&&s[0].container.incomplete?t.add(i):e.set(i,s);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const s=x.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(s&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};k=s=L([T(1,d.IEditorWorkerService),T(2,g.h),T(3,_.k),T(4,f.rr),T(5,m.fN),T(6,p.pG),T(7,E.ILanguageFeaturesService),T(8,R.k)],k)},96409:(e,t,i)=>{e.exports=function(){const e=i(94297);function t(t,i){return t.$binary?i.binaryAsHex?e.escapeYQLBinaryString(i,t.$value):atob(t.$value):i.escapeYQLStrings?e.escapeJSONString(i,t.$value):e.escapeHTMLString(i,t.$value)}return t.isScalar=!0,t}},96589:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1 1.225a.71.71 0 0 0-.679-.72A11 11 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10q.088 0 .175.002c.442.008.825-.335.825-.777m3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848zm-.883 4.76 3.068-3.067a.77.77 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.77.77 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848",clipRule:"evenodd"}))},96716:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(57946).then(i.bind(i,57946))})},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>L});var s,n=i(8597),r=i(25154),o=i(10350),a=i(41234),c=i(5662),l=i(25689),h=i(16223),d=i(87289),u=i(78049),g=i(55130),p=i(78209),m=i(98031),f=i(61394),_=i(36677),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};const E=(0,f.pU)("gutter-lightbulb",o.W.lightBulb,p.kg("gutterLightbulbWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor.")),b=(0,f.pU)("gutter-lightbulb-auto-fix",o.W.lightbulbAutofix,p.kg("gutterLightbulbAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.")),S=(0,f.pU)("gutter-lightbulb-sparkle",o.W.lightbulbSparkle,p.kg("gutterLightbulbAIFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.")),y=(0,f.pU)("gutter-lightbulb-aifix-auto-fix",o.W.lightbulbSparkleAutofix,p.kg("gutterLightbulbAIFixAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),w=(0,f.pU)("gutter-lightbulb-sparkle-filled",o.W.sparkleFilled,p.kg("gutterLightbulbSparkleFilledWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available."));var R;!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,s){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=s,this.type=1}}}(R||(R={}));let L=class extends c.jG{static{s=this}static{this.GUTTER_DECORATION=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(o.W.lightBulb),glyphMargin:{position:h.ZS.Left},stickiness:1})}static{this.ID="editor.contrib.lightbulbWidget"}static{this._posPref=[0]}constructor(e,t){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new a.vl),this.onClick=this._onClick.event,this._state=R.Hidden,this._gutterState=R.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+E.id,"codicon-"+y.id,"codicon-"+b.id,"codicon-"+S.id,"codicon-"+w.id],this.gutterDecoration=s.GUTTER_DECORATION,this._domNode=n.$("div.lightBulbWidget"),this._domNode.role="listbox",this._register(r.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide(),(1!==this.gutterState.type||!t||this.gutterState.editorPosition.lineNumber>=t.getLineCount())&&this.gutterHide()}))),this._register(n.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=n.BK(this._domNode),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.posx,y:t+i+r,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(n.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(a.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{this._preferredKbLabel=this._keybindingService.lookupKeybinding(g.pR)?.getLabel()??void 0,this._quickFixKbLabel=this._keybindingService.lookupKeybinding(g.pQ)?.getLabel()??void 0,this._updateLightBulbTitleAndIcon()}))),this._register(this._editor.onMouseDown((async e=>{if(!e.target.element||!this.lightbulbClasses.some((t=>e.target.element&&e.target.element.classList.contains(t))))return;if(1!==this.gutterState.type)return;this._editor.focus();const{top:t,height:i}=n.BK(e.target.element),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.gutterState.widgetPosition.position&&this.gutterState.widgetPosition.position.lineNumber<this.gutterState.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.event.posx,y:t+i+r,actions:this.gutterState.actions,trigger:this.gutterState.trigger})})))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.gutterHide(),this.hide();if(!this._editor.hasTextFocus())return this.gutterHide(),this.hide();if(!this._editor.getOptions().get(65).enabled)return this.gutterHide(),this.hide();const n=this._editor.getModel();if(!n)return this.gutterHide(),this.hide();const{lineNumber:r,column:o}=n.validatePosition(i),a=n.getOptions().tabSize,c=this._editor.getOptions().get(50),l=n.getLineContent(r),h=(0,u.G)(l,a),d=c.spaceWidth*h>22,g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),p=this._editor.getLineDecorations(r);let m=!1;if(p)for(const s of p){const e=s.options.glyphMarginClassName;if(e&&!this.lightbulbClasses.some((t=>e.includes(t)))){m=!0;break}}let f=r,_=1;if(!d){const a=e=>{const t=n.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=_};if(r>1&&!g(r-1)){const o=r===n.getLineCount(),c=r>1&&a(r-1),l=!o&&a(r+1),h=a(r),d=!l&&!c;if(!(l||c||m))return this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this.renderGutterLightbub(),this.hide();c||o||c&&!h?f-=1:(l||d&&h)&&(f+=1)}else if(1!==r||r!==n.getLineCount()&&(a(r+1)||a(r))){if(r<n.getLineCount()&&!g(r+1))f+=1;else if(o*c.spaceWidth<22)return this.hide()}else{if(this.gutterState=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),!m)return this.renderGutterLightbub(),this.hide();this.gutterHide()}_=/^\S\s*$/.test(n.getLineContent(f))?2:1}this.state=new R.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());const v=e.validActions,C=e.validActions[0].action.kind;v.length,this._editor.layoutContentWidget(this)}hide(){this.state!==R.Hidden&&(this.state=R.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==R.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=R.Hidden)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}get gutterState(){return this._gutterState}set gutterState(e){this._gutterState=e,this._updateGutterLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=o.W.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?o.W.lightbulbSparkleAutofix:o.W.lightbulbAutofix:this.state.actions.hasAIFix?o.W.lightbulbSparkle:o.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=l.L.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateGutterLightBulbTitleAndIcon(){if(1!==this.gutterState.type)return;let e,t=!1;this.gutterState.actions.allAIFixes?(e=w,1===this.gutterState.actions.validActions.length&&(t=!0)):e=this.gutterState.actions.hasAutoFix?this.gutterState.actions.hasAIFix?y:b:this.gutterState.actions.hasAIFix?S:E,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,t);const i=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:l.L.asClassName(e),glyphMargin:{position:h.ZS.Left},stickiness:1});this.gutterDecoration=i}renderGutterLightbub(){const e=this._editor.getSelection();e&&(void 0===this._gutterDecorationID?this._addGutterDecoration(e.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,e.startLineNumber))}_addGutterDecoration(e){this._editor.changeDecorations((t=>{this._gutterDecorationID=t.addDecoration(new _.Q(e,0,e,0),this.gutterDecoration)}))}_removeGutterDecoration(e){this._editor.changeDecorations((t=>{t.removeDecoration(e),this._gutterDecorationID=void 0}))}_updateGutterDecoration(e,t){this._editor.changeDecorations((i=>{i.changeDecoration(e,new _.Q(t,0,t,0)),i.changeDecorationOptions(e,this.gutterDecoration)}))}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=p.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=p.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=p.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=p.kg("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};L=s=v([C(1,m.b)],L)},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},97144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(49582).then(i.bind(i,49582))})},97360:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(86342).then(i.bind(i,86342))})},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>l});var s=i(91508),n=i(32799),r=i(1226),o=i(81782),a=i(83069),c=i(36677);class l{static _createWord(e,t,i,s,n){return{start:s,end:n,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(s,e,i)}static _doFindPreviousWordOnLine(e,t,i){let s=0;const n=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){const i=e.charCodeAt(r),o=t.get(i);if(n&&r===n.index)return this._createIntlWord(n,o);if(0===o){if(2===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=1}else if(2===o){if(1===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=2}else if(1===o&&0!==s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1))}return 0!==s?this._createWord(e,s,1,0,this._findEndOfWord(e,t,s,0)):null}static _findEndOfWord(e,t,i,s){const n=t.findNextIntlWordAtOrAfterOffset(e,s),r=e.length;for(let o=s;o<r;o++){const s=e.charCodeAt(o),r=t.get(s);if(n&&o===n.index+n.segment.length)return o;if(1===r)return o;if(1===i&&2===r)return o;if(2===i&&0===r)return o}return r}static _findNextWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(s,e,i)}static _doFindNextWordOnLine(e,t,i){let s=0;const n=e.length,r=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let o=i.column-1;o<n;o++){const i=e.charCodeAt(o),n=t.get(i);if(r&&o===r.index)return this._createIntlWord(r,n);if(0===n){if(2===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=1}else if(2===n){if(1===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=2}else if(1===n&&0!==s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o)}return 0!==s?this._createWord(e,s,1,this._findStartOfWord(e,t,s,n-1),n):null}static _findStartOfWord(e,t,i,s){const n=t.findPrevIntlWordBeforeOrAtOffset(e,s);for(let r=s;r>=0;r--){const s=e.charCodeAt(r),o=t.get(s);if(n&&r===n.index)return r;if(1===o)return r+1;if(1===i&&2===o)return r+1;if(2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,s,n){let r=i.lineNumber,o=i.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let c=l._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===s)return new a.y(r,c?c.start+1:1);if(1===s)return!n&&c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.start+1:1);if(3===s){for(;c&&2===c.wordType;)c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1));return new a.y(r,c?c.start+1:1)}return c&&o<=c.end+1&&(c=l._findPreviousWordOnLine(e,t,new a.y(r,c.start+1))),new a.y(r,c?c.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const r=e.getLineContent(i);for(let o=t.column-1;o>1;o--){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95===e&&95!==t)return new a.y(i,o);if(45===e&&45!==t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,1)}static moveWordRight(e,t,i,s){let n=i.lineNumber,r=i.column,o=!1;r===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(o=!0,n+=1,r=1);let c=l._findNextWordOnLine(e,t,new a.y(n,r));if(2===s)c&&2===c.wordType&&c.end-c.start===1&&0===c.nextCharClass&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.end+1:t.getLineMaxColumn(n);else if(3===s){for(o&&(r=0);c&&(2===c.wordType||c.start+1<=r);)c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1));r=c?c.start+1:t.getLineMaxColumn(n)}else c&&!o&&r>=c.start+1&&(c=l._findNextWordOnLine(e,t,new a.y(n,c.end+1))),r=c?c.start+1:t.getLineMaxColumn(n);return new a.y(n,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.y(i+1,1):t;const r=e.getLineContent(i);for(let o=t.column+1;o<n;o++){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95!==e&&95===t)return new a.y(i,o);if(45!==e&&45===t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,n)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-2,r=s.lT(i,n);return r+1<n?new c.Q(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,o=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(r.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new c.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.y(n.positionLineNumber,n.positionColumn);let d=h.lineNumber,u=h.column;if(1===d&&1===u)return null;if(o){const e=this._deleteWordLeftWhitespace(s,h);if(e)return e}let g=l._findPreviousWordOnLine(i,s,h);return 0===t?g?u=g.start+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d)):(g&&u<=g.end+1&&(g=l._findPreviousWordOnLine(i,s,new a.y(d,g.start+1))),g?u=g.end+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d))),new c.Q(d,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const s=new a.y(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,s);return n||this._deleteInsideWordDetermineDeleteRange(e,t,s)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=i.length;if(0===s)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let r=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(i,r))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;r+1<s&&this._charAtIsWhitespace(i,r+1);)r++;return new c.Q(t.lineNumber,n+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const s=t.getLineContent(i.lineNumber),n=s.length;if(0===n)return i.lineNumber>1?new c.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new c.Q(i.lineNumber,1,i.lineNumber+1,1):new c.Q(i.lineNumber,1,i.lineNumber,1);const r=e=>e.start+1<=i.column&&i.column<=e.end+1,o=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new c.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,r=!1;for(;i-1<n&&this._charAtIsWhitespace(s,i-1);)r=!0,i++;if(!r)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return o(t,i)},h=l._findPreviousWordOnLine(e,t,i);if(h&&r(h))return a(h);const d=l._findNextWordOnLine(e,t,i);return d&&r(d)?a(d):h&&d?o(h.end+1,d.start+1):h?o(h.start+1,h.end+1):d?o(d.start+1,d.end+1):o(1,n+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartLeft(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let s=t;s<i;s++){const t=e.charAt(s);if(" "!==t&&"\t"!==t)return s}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-1,n=this._findFirstNonWhitespaceChar(i,s);return s+1<n?new c.Q(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;const o=new a.y(n.positionLineNumber,n.positionColumn);let h=o.lineNumber,d=o.column;const u=s.getLineCount(),g=s.getLineMaxColumn(h);if(h===u&&d===g)return null;if(r){const e=this._deleteWordRightWhitespace(s,o);if(e)return e}let p=l._findNextWordOnLine(i,s,o);return 2===t?p?d=p.end+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h)):(p&&d>=p.start+1&&(p=l._findNextWordOnLine(i,s,new a.y(h,p.end+1))),p?d=p.start+1:d<g||h===u?d=g:(h++,p=l._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h))),new c.Q(h,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=l._moveWordPartRight(e,i);return new c.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _createWordAtPosition(e,t,i){const s=new c.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(s),startColumn:s.startColumn,endColumn:s.endColumn}}static getWordAtPosition(e,t,i,s){const n=(0,o.i)(t,i),r=l._findPreviousWordOnLine(n,e,s);if(r&&1===r.wordType&&r.start<=s.column-1&&s.column-1<=r.end)return l._createWordAtPosition(e,s.lineNumber,r);const a=l._findNextWordOnLine(n,e,s);return a&&1===a.wordType&&a.start<=s.column-1&&s.column-1<=a.end?l._createWordAtPosition(e,s.lineNumber,a):null}static word(e,t,i,s,r){const h=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),d=l._findPreviousWordOnLine(h,t,r),u=l._findNextWordOnLine(h,t,r);if(!s){let e,i;return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(e=d.start+1,i=d.end+1):u&&1===u.wordType&&u.start<=r.column-1&&r.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=d?d.end+1:1,i=u?u.start+1:t.getLineMaxColumn(r.lineNumber)),new n.mG(new c.Q(r.lineNumber,e,r.lineNumber,i),1,0,new a.y(r.lineNumber,i),0)}let g,p;d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(g=d.start+1,p=d.end+1):u&&1===u.wordType&&u.start<r.column-1&&r.column-1<u.end?(g=u.start+1,p=u.end+1):(g=r.column,p=r.column);const m=r.lineNumber;let f;if(i.selectionStart.containsPosition(r))f=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends l{static deleteWordPartLeft(e){const t=d([l.deleteWordLeft(e,0),l.deleteWordLeft(e,2),l._deleteWordPartLeft(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=d([l.deleteWordRight(e,0),l.deleteWordRight(e,2),l._deleteWordPartRight(e.model,e.selection)]);return t.sort(c.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,s){const n=d([l.moveWordLeft(e,t,i,0,s),l.moveWordLeft(e,t,i,2,s),l._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const s=d([l.moveWordRight(e,t,i,0),l.moveWordRight(e,t,i,2),l._moveWordPartRight(t,i)]);return s.sort(a.y.compare),s[0]}}function d(e){return e.filter((e=>Boolean(e)))}},97791:()=>{},97884:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(96554).then(i.bind(i,96554))})},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},98067:(e,t,i)=>{"use strict";i.d(t,{BH:()=>D,Fr:()=>I,H8:()=>W,HZ:()=>k,OS:()=>F,UP:()=>G,_p:()=>P,cm:()=>B,gm:()=>V,ib:()=>x,j9:()=>T,lg:()=>A,m0:()=>j,nr:()=>z,uF:()=>R,un:()=>N,zx:()=>L});var s=i(78209);const n="en";let r,o,a=!1,c=!1,l=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=n,v=null,C=null;const E=globalThis;let b;"undefined"!==typeof E.vscode&&"undefined"!==typeof E.vscode.process?b=E.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(b=process);const S="string"===typeof b?.versions?.electron,y=S&&"renderer"===b?.type;if("object"===typeof b){a="win32"===b.platform,c="darwin"===b.platform,l="linux"===b.platform,h=l&&!!b.env.SNAP&&!!b.env.SNAP_REVISION,g=S,m=!!b.env.CI||!!b.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=n,_=n;const e=b.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);r=t.userLocale,v=t.osLocale,_=t.resolvedLanguage||n,C=t.languagePack?.translationsConfigFile}catch(K){}d=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,c=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=o.indexOf("Linux")>=0,f=o?.indexOf("Mobi")>=0,u=!0,_=s.i8()||n,r=navigator.language.toLowerCase(),v=r);let w=0;c?w=1:a?w=3:l&&(w=2);const R=a,L=c,T=l,x=d,k=u,A=u&&"function"===typeof E.importScripts?E.origin:void 0,N=p,I=f,O=o,D=_,M="function"===typeof E.postMessage&&!E.importScripts,P=(()=>{if(M){const e=[];E.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=e.length;i<s;i++){const s=e[i];if(s.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void s.callback()}}));let t=0;return i=>{const s=++t;e.push({id:s,callback:i}),E.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),F=c||p?2:a?1:3;let U=!0,H=!1;function B(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);U=513===t[0]}return U}const W=!!(O&&O.indexOf("Chrome")>=0),V=!!(O&&O.indexOf("Firefox")>=0),z=!!(!W&&O&&O.indexOf("Safari")>=0),G=!!(O&&O.indexOf("Edg/")>=0),j=!!(O&&O.indexOf("Android")>=0)},98192:(e,t,i)=>{"use strict";i.d(t,{CU:()=>n,om:()=>r});var s=i(82435);const n="gc-",r=((0,s.withNaming)({e:"__",m:"_",v:"_"}),(0,s.withNaming)({n:n,e:"__",m:"_",v:"_"}))},98232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{encodeSemanticTokensDto:()=>r});var s=i(81674),n=i(98067);function r(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const s of e.deltas)t[i++]=s.start,t[i++]=s.deleteCount,s.data?(t[i++]=s.data.length,t.set(s.data,i),i+=s.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return n.cm()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],s=e[t+1],n=e[t+2],r=e[t+3];e[t+0]=r,e[t+1]=n,e[t+2]=s,e[t+3]=i}}(t),s.MB.wrap(t)}(t)}},98408:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(33822).then(i.bind(i,33822))})},98472:(e,t,i)=>{"use strict";var s=i(11007),n=i(77163),r=i(78209),o=i(27195);class a extends o.L{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:a.ID,title:r.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:r.aS("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!n.M.getTabFocusMode();n.M.setTabFocusMode(e),e?(0,s.xE)(r.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,s.xE)(r.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}(0,o.ug)(a)},98745:(e,t,i)=>{"use strict";var s,n=i(5662),r=i(64383),o=i(23750),a=i(84001),c=i(90766),l=i(18447),h=i(47612),d=i(45538),u=i(32371),g=i(32500),p=i(78381),m=i(56942),f=i(74243),_=i(72466),v=i(84585),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends n.jG{constructor(e,t,i,s,n,r){super(),this._watchers=Object.create(null);const o=t=>{this._watchers[t.uri.toString()]=new S(t,e,i,n,r)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},c=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.K)(e,i,s)?t||o(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.K)(e,i,s)&&o(e)})),this._register(t.onModelAdded((e=>{(0,v.K)(e,i,s)&&o(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(s.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.r)&&c()}))),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};b=C([E(0,f.ISemanticTokensStylingService),E(1,o.IModelService),E(2,h.Gy),E(3,a.pG),E(4,g.ILanguageFeatureDebounceService),E(5,m.ILanguageFeaturesService)],b);let S=class extends n.jG{static{s=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,i,r,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentSemanticTokens",{min:s.REQUEST_MIN_DELAY,max:s.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new c.uC((()=>this._fetchDocumentSemanticTokensNow()),s.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new l.Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,s=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const n=[],o=this._model.onDidChangeContent((e=>{n.push(e)})),a=new p.W(!1);s.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),e){const{provider:t,tokens:i}=e,s=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,s,n)}else this._setDocumentSemanticTokens(null,null,null,n)}),(e=>{e&&(r.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||r.dz(e),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),(n.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,s,n){n=Math.min(n,i.length-s,e.length-t);for(let r=0;r<n;r++)i[s+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){const r=this._currentDocumentResponse,o=()=>{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void o();if((0,u.yS)(t)){if(!r)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const n=r.data,o=new Uint32Array(n.length+e);let a=n.length,c=o.length;for(let l=t.edits.length-1;l>=0;l--){const e=t.edits[l];if(e.start>n.length)return i.warnInvalidEditStart(r.resultId,t.resultId,l,e.start,n.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(s._copy(n,a-h,o,c-h,h),c-=h),e.data&&(s._copy(e.data,0,o,c-e.data.length,e.data.length),c-=e.data.length),a=e.start}a>0&&s._copy(n,0,o,0,a),t={resultId:t.resultId,data:o}}}if((0,u.BB)(t)){this._currentDocumentResponse=new y(e,t.resultId,t.data);const s=(0,d.toMultilineTokens2)(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of s)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(s,!0)}else this._model.tokenization.setSemanticTokens(null,!0);o()}else this._model.tokenization.setSemanticTokens(null,!1)}};S=s=C([E(1,f.ISemanticTokensStylingService),E(2,h.Gy),E(3,g.ILanguageFeatureDebounceService),E(4,m.ILanguageFeaturesService)],S);class y{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.x)(b)},99020:(e,t,i)=>{"use strict";i.d(t,{Su:()=>d,b7:()=>h,fe:()=>u});var s=i(91508),n=i(98067),r=i(81674);let o,a,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function h(){return c||(c=n.cm()?l():(a||(a=new TextDecoder("UTF-16BE")),a)),c}function d(e,t,i){const s=new Uint16Array(e.buffer,t,i);return i>0&&(65279===s[0]||65534===s[0])?function(e,t,i){const s=[];let n=0;for(let o=0;o<i;o++){const i=r.$l(e,t);t+=2,s[n++]=String.fromCharCode(i)}return s.join("")}(e,t,i):l().decode(s)}class u{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"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||s.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},99312:(e,t,i)=>{"use strict";i.d(t,{mR:()=>K,bn:()=>j,QS:()=>G});var s=i(11007),n=i(90766),r=i(24939),o=i(631),a=i(79400),c=i(50868),l=i(34326),h=i(31450),d=i(80301),u=i(29163),g=i(83069),p=i(36677),m=i(60002),f=i(62083),_=i(23646),v=i(79614),C=i(41234),E=i(5662),b=i(89403),S=i(78209),y=i(32848),w=i(14718),R=i(63591),L=i(98031),T=i(59261),x=i(58591),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N=new y.N1("hasSymbols",!1,(0,S.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),I=(0,R.u1)("ISymbolNavigationService");let O=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=N.bindTo(e)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new D(this._editorService),s=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const s=i.getModel(),n=i.getPosition();if(!s||!n)return;let r=!1,o=!1;for(const a of t.references)if((0,b.n4)(a.uri,s.uri))r=!0,o=o||p.Q.containsPosition(a.range,n);else if(r)break;r&&o||this.reset()}));this._currentState=(0,E.qE)(i,s)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){this._currentMessage?.dispose();const e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?(0,S.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):(0,S.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};O=k([A(0,y.fN),A(1,d.T),A(2,x.Ot),A(3,L.b)],O),(0,w.v)(I,O,1),(0,h.E_)(new class extends h.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:N,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(I).revealNext(t)}}),T.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:N,primary:9,handler(e){e.get(I).reset()}});let D=class{constructor(e){this._listener=new Map,this._disposables=new E.Cm,this._onDidChange=new C.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,E.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,E.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){this._listener.get(e)?.dispose(),this._listener.delete(e)}};D=k([A(0,d.T)],D);var M=i(99645),P=i(84226),F=i(27195),U=i(50091),H=i(73823),B=i(80538),W=i(56942),V=i(42522),z=i(28290);F.ZG.appendMenuItem(F.D8.EditorContext,{submenu:F.D8.EditorContextPeek,title:S.kg("peek.submenu","Peek"),group:"navigation",order:100});class G{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof G||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class j extends h.qO{static{this._allSymbolNavigationCommands=new Map}static{this._activeAlternativeCommands=new Set}static all(){return j._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of V.f.wrap(t.menu))i.id!==F.D8.EditorContext&&i.id!==F.D8.EditorContextPeek||(i.when=y.M$.and(e.precondition,i.when));return t}constructor(e,t){super(j._patchConfig(t)),this.configuration=e,j._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,r){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(x.Ot),a=e.get(d.T),l=e.get(H.N8),h=e.get(I),u=e.get(W.ILanguageFeaturesService),g=e.get(R._Y),p=t.getModel(),m=t.getPosition(),f=G.is(i)?i:new G(p,m),_=new c.gI(t,5),v=(0,n.PK)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{if(!e||_.token.isCancellationRequested)return;let n;if((0,s.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!j._activeAlternativeCommands.has(e)&&j._allSymbolNavigationCommands.has(e)&&(n=j._allSymbolNavigationCommands.get(e))}const o=e.references.length;if(0===o){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);M.k.get(t)?.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==o||!n)return this._onResult(a,h,t,e,r);j._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>n.runEditorCommand(e,t,i,r).finally((()=>{j._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{o.error(e)})).finally((()=>{_.dispose()}));return l.showWhile(v,250),v}async _onResult(e,t,i,s,n){const r=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===r&&s.references.length>1)){const o=s.firstReference(),a=s.references.length>1&&"gotoAndPeek"===r,c=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&c?this._openInPeek(c,s,n):s.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(i,s,n)}async _openReference(e,t,i,s,n){let r;if((0,f.Iu)(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const o=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,s);if(o){if(n){const e=o.getModel(),t=o.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{o.getModel()===e&&t.clear()}),350)}return o}}_openInPeek(e,t,i){const s=_.X.get(e);s&&e.hasModel()?s.toggleWidget(i??e.getSelection(),(0,n.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}class K extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.hE)(e.definitionProvider,t,i,!1,s),S.kg("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("noResultWord","No definition found for '{0}'",e.word):S.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:S.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:2118,weight:100}],menu:[{id:F.D8.EditorContext,group:"navigation",order:1.1},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),U.w.registerCommandAlias("editor.action.goToDeclaration",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinitionAside"}constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,title:S.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:y.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,r.m5)(2089,70),weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:(0,r.m5)(2089,2118),weight:100}]}),U.w.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.peekDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,title:S.aS("actions.previewDecl.label","Peek Definition"),precondition:y.M$.and(m.R.hasDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:2}}),U.w.registerCommandAlias("editor.action.previewDeclaration",e.id)}});class Y extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.sv)(e.declarationProvider,t,i,!1,s),S.kg("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,F.ug)(class e extends Y{static{this.id="editor.action.revealDeclaration"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:S.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:y.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:F.D8.EditorContext,group:"navigation",order:1.3},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}}),(0,F.ug)(class extends Y{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:S.aS("actions.peekDecl.label","Peek Declaration"),precondition:y.M$.and(m.R.hasDeclarationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:3}})}});class q extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.f9)(e.typeDefinitionProvider,t,i,!1,s),S.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):S.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,F.ug)(class e extends q{static{this.ID="editor.action.goToTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:S.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.4},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}),(0,F.ug)(class e extends q{static{this.ID="editor.action.peekTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:y.M$.and(m.R.hasTypeDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:4}})}});class $ extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.eS)(e.implementationProvider,t,i,!1,s),S.kg("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):S.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,F.ug)(class e extends ${static{this.ID="editor.action.goToImplementation"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:S.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}),(0,F.ug)(class e extends ${static{this.ID="editor.action.peekImplementation"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekImplementation.label","Peek Implementations"),precondition:y.M$.and(m.R.hasImplementationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:5}})}});class Q extends j{_getNoResultFoundMessage(e){return e?S.kg("references.no","No references found for '{0}'",e.word):S.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...S.aS("goToReferences.label","Go to References"),mnemonicTitle:S.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!0,!1,s),S.kg("ref.title","References"))}}),(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:S.aS("references.action.label","Peek References"),precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!1,!1,s),S.kg("ref.title","References"))}});class X extends j{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:S.aS("label.generic","Go to Any Symbol"),precondition:y.M$.and(P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,s){return new v.y4(this._references,S.kg("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&S.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){return this._gotoMultipleBehaviour??e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}U.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,s,n,r,c)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i)),(0,o.j)(Array.isArray(s)),(0,o.j)("undefined"===typeof n||"string"===typeof n),(0,o.j)("undefined"===typeof c||"boolean"===typeof c);const h=e.get(d.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,l.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends X{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(c),openToSide:!1},s,n);e.get(R._Y).invokeFunction(t.run.bind(t),u)}))}}),U.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,s,n)=>{e.get(U.d).executeCommand("editor.action.goToLocations",t,i,s,n,void 0,!0)}}),U.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i));const s=e.get(W.ILanguageFeaturesService),r=e.get(d.T);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((e=>{if(!(0,l.z9)(e)||!e.hasModel())return;const t=_.X.get(e);if(!t)return;const r=(0,n.SS)((t=>(0,B.NN)(s.referenceProvider,e.getModel(),g.y.lift(i),!1,!1,t).then((e=>new v.y4(e,S.kg("ref.title","References")))))),o=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(o,r,!1))}))}}),U.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},99645:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var s,n=i(68214),r=i(11007),o=i(41234),a=i(16980),c=i(5662),l=i(31450),h=i(36677),d=i(20492),u=i(78209),g=i(32848),p=i(49099),m=i(8597),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,u.kg("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new c.HE,this._messageListeners=new c.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=s.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,r.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.VS)(e)?(0,n.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,d.i)(this._openerService,t,(0,a.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new E(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(o.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.QX(m.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(E.fadeOut(this._messageWidget.value))}};v=s=f([_(1,g.fN),_(2,p.C)],v);const C=l.DX.bindToContribution(v.get);(0,l.E_)(new C({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class E{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);const r=document.createElement("div");"string"===typeof s?(r.classList.add("message"),r.textContent=s):(s.classList.add("message"),r.appendChild(s)),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.HW)(v.ID,v,4)},99669:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of c(t))l.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=new class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function g(){return i.e(66447).then(i.bind(i,66447))}d.languages.json={jsonDefaults:u,getWorker:()=>g().then((e=>e.getWorker()))},d.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),d.languages.onLanguage("json",(()=>{g().then((e=>e.setupMode(u)))}))},99822:(e,t,i)=>{"use strict";var s,n,r=i(31450),o=i(78209),a=i(5662),c=i(28712),l=i(63591),h=i(9270),d=i(98031),u=i(41234),g=i(56942),p=i(60002),m=i(32848),f=i(52363),_=i(8597),v=(i(53396),i(10920)),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends a.jG{static{s=this}static{this.ID="editor.contrib.standaloneColorPickerController"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=i,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(S,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(e){return e.getContribution(s.ID)}};b=s=C([E(1,m.fN),E(2,l._Y)],b),(0,r.HW)(b.ID,b,1);let S=class extends a.jG{static{n=this}static{this.ID="editor.contrib.standaloneColorPickerWidget"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._keybindingService=n,this._languageFeaturesService=r,this._editorWorkerService=o,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=s.createInstance(c.WE,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const a=this._editor.getSelection(),l=a?{startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(_.w5(this._body));this._register(h.onDidBlur((e=>{this.hide()}))),this._register(h.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{const t=e.target.element?.classList;t&&t.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(l),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return n.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new y(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new f.L(this._editorWorkerService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),s={fragment:i,statusBar:this._register(new h.L(this._keybindingService)),onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=e;const n=this._standaloneColorPickerParticipant.renderHoverParts(s,[e]);if(!n)return;this._register(n.disposables);const r=n.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),r.layout();const o=r.body,a=o.saturationBox.domNode.clientWidth,c=o.domNode.clientWidth-a-22-8,l=r.body.enterButton;l?.onClicked((()=>{this.updateEditor(),this.hide()}));const d=r.header;d.pickedColorNode.style.width=a+8+"px";d.originalColorNode.style.width=c+"px";const u=r.header.closeButton;u?.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S=n=C([E(3,l._Y),E(4,d.b),E(5,g.ILanguageFeaturesService),E(6,v.IEditorWorkerService)],S);class y{constructor(e,t){this.value=e,this.foundInEditor=t}}var w=i(27195);class R extends r.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,o.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:w.D8.CommandPalette}],metadata:{description:(0,o.aS)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){b.get(t)?.showOrFocus()}}class L extends r.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,o.aS)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){b.get(t)?.hide()}}class T extends r.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,o.aS)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){b.get(t)?.insertColor()}}(0,r.Fl)(L),(0,r.Fl)(T),(0,w.ug)(R)},99908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearPlatformLanguageAssociations:()=>p,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var s=i(46958),n=i(44320),r=i(36456),o=i(74027),a=i(89403),c=i(91508),l=i(83941);let h=[],d=[],u=[];function g(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,s.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(n),n.userConfigured?u.push(n):d.push(n);i&&!n.userConfigured&&h.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,t)}function p(){h=h.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let i;if(e)switch(e.scheme){case r.ny.file:i=e.fsPath;break;case r.ny.data:i=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case r.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:n.K.unknown}];i=i.toLowerCase();const s=(0,o.P8)(i),g=f(i,s,u);if(g)return[g,{id:l.vH,mime:n.K.text}];const p=f(i,s,d);if(p)return[p,{id:l.vH,mime:n.K.text}];if(t){const e=function(e){(0,c.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const s=e.match(i.firstline);if(s&&s.length>0)return i}return}(t);if(e)return[e,{id:l.vH,mime:n.K.text}]}return[{id:"unknown",mime:n.K.unknown}]}(e,t).map((e=>e.id))}function f(e,t,i){let s,n,r;for(let o=i.length-1;o>=0;o--){const a=i[o];if(t===a.filenameLowercase){s=a;break}if(a.filepattern&&(!n||a.filepattern.length>n.filepattern.length)){const i=a.filepatternOnPath?e:t;a.filepatternLowercase?.(i)&&(n=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&t.endsWith(a.extensionLowercase)&&(r=a)}return s||(n||(r||void 0))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/58884.1009923e.chunk.js.LICENSE.txt index 13f1dfd641..13f1dfd641 100644 --- a/ydb/core/viewer/monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/58884.1009923e.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/58890.cf2d0d90.chunk.js b/ydb/core/viewer/monitoring/static/js/58890.cf2d0d90.chunk.js new file mode 100644 index 0000000000..1cf7f12802 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/58890.cf2d0d90.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[58890],{58890:function(e,t,_){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),n="\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),r={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},u={name:"ar",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),months:n,monthsShort:n,weekStart:6,meridiem:function(e){return e>12?"\u0645":"\u0635"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",m:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",yy:"%d \u0623\u0639\u0648\u0627\u0645"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return d[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return r[e]})).replace(/,/g,"\u060c")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return _.default.locale(u,null,!0),u}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/58986.472d72cc.chunk.js b/ydb/core/viewer/monitoring/static/js/58986.472d72cc.chunk.js new file mode 100644 index 0000000000..36d40ee594 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/58986.472d72cc.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 58986.472d72cc.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[58986],{58986:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>h,language:()=>u});var o,i,n=r(80781),a=Object.defineProperty,m=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))c.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(o=m(t,i))||o.enumerable});return e},d={};l(d,o=n,"default"),i&&l(i,o,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:d.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:d.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/58986.472d72cc.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/58986.472d72cc.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/59172.d3dd36c7.chunk.js b/ydb/core/viewer/monitoring/static/js/59172.d3dd36c7.chunk.js new file mode 100644 index 0000000000..851863118c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59172.d3dd36c7.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 59172.d3dd36c7.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59172],{5874:(e,t,n)=>{n.d(t,{W:()=>L});var l=n(59284);const o=e=>{if(e.options.enableRowSelection)return Boolean(e.options.enableMultiRowSelection)};var r=n(32084);const i=l.createContext(void 0),a={};var s=n(85720);const u=e=>{const t=e.column.getIsPinned(),n="left"===t,l="right"===t,o=n&&e.column.getIsLastColumn("left"),r=l&&e.column.getIsFirstColumn("right");return{pinned:Boolean(t),"pinned-left":n,"pinned-right":l,"last-pinned-left":o,"first-pinned-right":r}},d=e=>e?Object.assign({id:e.column.id},u(e)):null,g=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0},t)};var c=n(82435);(0,c.withNaming)({e:"__",m:"_"});const p=(0,c.withNaming)({n:"gt-",e:"__",m:"_"}),m=p("table");var f=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const v=e=>{var{cell:t,children:n,className:o,style:r,attributes:i}=e,a=f(e,["cell","children","className","style","attributes"]);const u="function"===typeof i?i(t):i,c="function"===typeof o?o(t):o;return l.createElement("td",Object.assign({className:m("cell",d(t),c)},a,u,{style:g(t,Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style))}),t?(0,s.Kv)(t.column.columnDef.cell,t.getContext()):n)},w=p("group-header"),h=({row:e,className:t,getGroupTitle:n})=>{var o;return l.createElement("h2",{className:w(null,t)},l.createElement("button",{className:w("button"),onClick:e.getToggleExpandedHandler()},l.createElement("svg",{className:w("icon",{expanded:e.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},l.createElement("path",{d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",fill:"currentColor"})),l.createElement("span",{className:w("content")},l.createElement("span",{className:w("title")},null!==(o=null===n||void 0===n?void 0:n(e))&&void 0!==o?o:e.id),l.createElement("span",{className:w("total")},e.subRows.length))))};var b=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const C=l.forwardRef(((e,t)=>{var{cellClassName:n,className:o,getGroupTitle:i,getIsCustomRow:a,getIsGroupHeaderRow:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:g,renderGroupHeader:c,renderGroupHeaderRowContent:p,row:f,rowVirtualizer:w,style:C,virtualItem:S,attributes:R,cellAttributes:y,table:I}=e,x=b(e,["cellClassName","className","getGroupTitle","getIsCustomRow","getIsGroupHeaderRow","groupHeaderClassName","onClick","renderCustomRowContent","renderGroupHeader","renderGroupHeaderRowContent","row","rowVirtualizer","style","virtualItem","attributes","cellAttributes","table"]);const M=(0,r.N)(null===w||void 0===w?void 0:w.measureElement,t),F="function"===typeof R?R(f):R,P="function"===typeof o?o(f):o,E=l.useCallback((e=>{null===d||void 0===d||d(f,e)}),[d,f]);return l.createElement("tr",Object.assign({ref:M,className:m("row",{selected:f.getIsSelected(),interactive:Boolean(d)},P),onClick:E,"data-index":null===S||void 0===S?void 0:S.index},x,F,{style:Object.assign(Object.assign({top:w&&S?S.start-w.options.scrollMargin:void 0},C),null===F||void 0===F?void 0:F.style)}),(null===s||void 0===s?void 0:s(f))?p?p({row:f,Cell:v,cellClassName:n,getGroupTitle:i}):l.createElement(v,{className:n,colSpan:f.getVisibleCells().length,attributes:y,"aria-colindex":1},c?c({row:f,className:m("group-header",u),getGroupTitle:i}):l.createElement(h,{row:f,className:m("group-header",u),getGroupTitle:i})):(null===a||void 0===a?void 0:a(f))&&g?g({row:f,Cell:v,cellClassName:n}):f.getVisibleCells().map((e=>l.createElement(v,{key:e.id,cell:e,className:n,attributes:y,"aria-colindex":e.column.getIndex()+1}))))}));C.displayName="BaseRow";var S=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const R=l.forwardRef(((e,t)=>{var n,{attributes:o,row:s,style:u,table:d}=e,g=S(e,["attributes","row","style","table"]);const{isChildMode:c,activeItemKey:p,targetItemIndex:m=-1,enableNesting:f,useSortable:v}=null!==(n=l.useContext(i))&&void 0!==n?n:{},{setNodeRef:w,transform:h=null,transition:b,isDragging:R=!1}=(null===v||void 0===v?void 0:v({id:s.id}))||{},y=Boolean(p),I=c&&m===s.index,x=(0,r.N)(w,t),{isFirstChild:M,depth:F}=(({row:e,table:t,isDragging:n})=>{var o,r,a,s,u;const{isChildMode:d,isParentMode:g,isNextChildMode:c,targetItemIndex:p=-1,enableNesting:m}=null!==(o=l.useContext(i))&&void 0!==o?o:{};let f=n&&-1===p,v=0;if(m)if(n&&-1!==p){const e=t.getRowModel().rows,n=null!==(a=null===(r=e[p])||void 0===r?void 0:r.depth)&&void 0!==a?a:0,l=null!==(u=null===(s=e[p+1])||void 0===s?void 0:s.depth)&&void 0!==u?u:0;if(f=l>n,f)v=l,g&&v--;else{let e=0;g?e=-1:d&&(e=1),v=(c?n:Math.min(n,l))+e}v=Math.max(0,v)}else v=f?0:e.depth;return{depth:v,isFirstChild:f}})({row:s,table:d,isDragging:R}),P=(({style:e=a,transform:t,transition:n,isDragging:o,isDragActive:r,isFirstChild:s,draggableChildRowOffset:u=32,enableNesting:d})=>{var g;const{isChildMode:c,isParentMode:p}=null!==(g=l.useContext(i))&&void 0!==g?g:{};return l.useMemo((()=>{if(!r||!t)return e;let l=0;return d&&o&&(p?l=-u:c&&!s&&(l=u)),Object.assign(Object.assign({},e),{transition:n,transform:`translate3d(${Math.max(l,0)}px, ${t.y}px, 0)`})}),[u,c,r,o,s,p,e,t,n,d])})({style:u,transform:h,transition:b,isDragging:R,isDragActive:y,isFirstChild:M,enableNesting:f}),E=l.useCallback((e=>{const t="function"===typeof o?o(e):o;return Object.assign(Object.assign({},t),{"data-key":e.id,"data-depth":F,"data-draggable":!0,"data-dragging":R,"data-drag-active":y,"data-expanded":y&&I})}),[o,F,R,y,I]);return l.createElement(C,Object.assign({ref:x,attributes:E,row:s,style:P,table:d},g))}));R.displayName="BaseDraggableRow";const y=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},u(e)),I=({header:e,attributes:t,className:n})=>{const o="function"===typeof t?t(e):t,r="function"===typeof n?n(e):n,i=e.depth-e.column.depth;return l.createElement("th",Object.assign({className:m("footer-cell",y(e),r),colSpan:e.colSpan>1?e.colSpan:void 0,rowSpan:i>1?i:void 0},o,{style:g(e,null===o||void 0===o?void 0:o.style)}),(0,s.Kv)(e.column.columnDef.footer,e.getContext()))};var x=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const M=e=>{var{footerGroup:t,attributes:n,cellAttributes:o,cellClassName:r,className:i}=e,a=x(e,["footerGroup","attributes","cellAttributes","cellClassName","className"]);const s="function"===typeof n?n(t):n,u="function"===typeof i?i(t):i;return l.createElement("tr",Object.assign({className:m("footer-row",u)},a,s),t.headers.map((e=>(e=>!e.isPlaceholder)(e)?l.createElement(I,{key:e.column.id,header:e,attributes:o,className:r}):null)))},F=e=>{if(e)return"asc"===e?"ascending":"descending"},P=e=>e.headerGroup.headers.slice(0,e.index).reduce(((e,t)=>e+t.colSpan),1),E=p("resize-handle"),V=({className:e,header:t})=>{var n;const{table:o}=t.getContext(),{columnResizeDirection:r,columnResizeMode:i}=o.options,{columnSizingInfo:a}=o.getState(),s=("rtl"===r?-1:1)*(null!==(n=a.deltaOffset)&&void 0!==n?n:0);return l.createElement("div",{className:E({direction:r,resizing:t.column.getIsResizing()},e),onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),style:{transform:"onEnd"===i&&t.column.getIsResizing()?`translateX(${s}px)`:void 0}})};var O=n(46734),_=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const z=e=>{var{header:t,className:n,children:o}=e,r=_(e,["header","className","children"]);const i=t.column.getToggleSortingHandler(),{onKeyDown:a}=(0,O.N)(i);return l.createElement("span",Object.assign({className:m("sort",n),role:"button",tabIndex:0,onClick:i,onKeyDown:a},r),o)},G=p("sort-indicator"),N=({className:e,header:t})=>{const n=t.column.getIsSorted();return l.createElement("span",{className:G({order:n,invisible:!n},e)},l.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},l.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},H=({className:e,header:t,parentHeader:n,renderHeaderCellContent:o,renderResizeHandle:r,renderSortIndicator:i,resizeHandleClassName:a,sortIndicatorClassName:u,attributes:d})=>{const c="function"===typeof d?d(t,n):d,p="function"===typeof e?e(t,n):e,f=t.isPlaceholder?t.getLeafHeaders().length:1;return l.createElement("th",Object.assign({className:m("header-cell",y(t),p),colSpan:t.colSpan>1?t.colSpan:void 0,rowSpan:f>1?f:void 0,"aria-sort":F(t.column.getIsSorted()),"aria-colindex":P(t)},c,{style:g(t,null===c||void 0===c?void 0:c.style)}),o?o({header:t}):l.createElement(l.Fragment,null,t.column.getCanSort()?l.createElement(z,{header:t},(0,s.Kv)(t.column.columnDef.header,t.getContext())," ",i?i({className:m("sort-indicator",u),header:t}):l.createElement(N,{className:m("sort-indicator",u),header:t})):(0,s.Kv)(t.column.columnDef.header,t.getContext()),t.column.getCanResize()&&(r?r({className:m("resize-handle",a),header:t}):l.createElement(V,{className:m("resize-handle",a),header:t}))))};var A=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const D=e=>{var{cellClassName:t,className:n,headerGroup:o,parentHeaderGroup:r,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:g,cellAttributes:c}=e,p=A(e,["cellClassName","className","headerGroup","parentHeaderGroup","renderHeaderCellContent","renderResizeHandle","renderSortIndicator","resizeHandleClassName","sortIndicatorClassName","attributes","cellAttributes"]);const f="function"===typeof g?g(o,r):g,v="function"===typeof n?n(o,r):n;return l.createElement("tr",Object.assign({className:m("header-row",v)},p,f),o.headers.map((e=>{const n=null===r||void 0===r?void 0:r.headers.find((t=>e.column.id===t.column.id));return((e,t)=>{const n=e.isPlaceholder&&(null===t||void 0===t?void 0:t.isPlaceholder)&&t.placeholderId===e.placeholderId,l=!e.isPlaceholder&&e.id===e.column.id&&e.depth-e.column.depth>1;return!(n||l)})(e,n)?l.createElement(H,{key:e.column.id,className:t,header:e,parentHeader:n,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:c}):null})))},L=l.forwardRef((({table:e,attributes:t,bodyAttributes:n,bodyClassName:r,bodyRef:a,cellAttributes:s,cellClassName:u,className:d,customFooterRowCount:g,emptyContent:c,footerAttributes:p,footerCellAttributes:f,footerCellClassName:v,footerClassName:w,footerRowAttributes:h,footerRowClassName:b,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,headerAttributes:F,headerCellAttributes:P,headerCellClassName:E,headerClassName:V,headerRowAttributes:O,headerRowClassName:_,onRowClick:z,renderCustomFooterContent:G,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:k,rowAttributes:B,rowClassName:q,rowVirtualizer:$,sortIndicatorClassName:U,stickyFooter:K=!1,stickyHeader:X=!1,withFooter:Z=!1,withHeader:W=!0},J)=>{var Q;const Y=l.useContext(i),ee=null!==(Q=null===Y||void 0===Y?void 0:Y.activeItemIndex)&&void 0!==Q?Q:-1,{rows:te,rowsById:ne}=e.getRowModel(),le=l.useMemo((()=>(e=>{let t=1;return e.reduce(((e,n,l,o)=>{const r=Object.assign(Object.assign({},e),{[n.id]:t}),i=o[l+1];return(null===i||void 0===i?void 0:i.parentId)!==n.id&&(t+=n.getLeafRows().length),t++,r}),{})})(te)),[te]),oe=W?e.getHeaderGroups():[],re=Z?e.getFooterGroups():[],ie=e.getVisibleLeafColumns().length,ae=oe.length,se=Object.keys(ne).length,ue=Z&&(G&&g||re.length)||0,de=se+ae+ue,ge=(null===$||void 0===$?void 0:$.getVirtualItems())||te;return l.createElement("table",Object.assign({ref:J,className:m({"with-row-virtualization":Boolean($)},d),"data-dragging-row-index":ee>-1?ee:void 0,"aria-colcount":ie>0?ie:void 0,"aria-rowcount":de>0?de:void 0,"aria-multiselectable":o(e)},t),W&&l.createElement("thead",Object.assign({className:m("header",{sticky:X},V)},F),oe.map(((e,t)=>l.createElement(D,{key:e.id,cellClassName:E,className:_,headerGroup:e,parentHeaderGroup:oe[t-1],renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:k,sortIndicatorClassName:U,attributes:O,cellAttributes:P,"aria-rowindex":t+1})))),l.createElement("tbody",Object.assign({ref:a,className:m("body",r)},n,{style:Object.assign({height:ge.length?null===$||void 0===$?void 0:$.getTotalSize():void 0},null===n||void 0===n?void 0:n.style)}),ge.length?ge.map((t=>{var n;const o=$?te[t.index]:t,r=$?t:void 0,i=null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:o.id,a={cellClassName:u,className:q,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,attributes:B,cellAttributes:s,onClick:z,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,row:o,rowVirtualizer:$,table:e,virtualItem:r,"aria-rowindex":ae+le[o.id],"aria-selected":e.options.enableRowSelection?o.getIsSelected():void 0};return Y?l.createElement(R,Object.assign({key:i},a)):l.createElement(C,Object.assign({key:i},a))})):(()=>{if(!c)return null;const t="function"===typeof q?q():q,n="function"===typeof u?u():u;return l.createElement("tr",{className:m("row",{empty:!0},t)},l.createElement("td",{className:m("cell",{},n),colSpan:ie,style:{width:$?e.getTotalSize():void 0}},"function"===typeof c?c():c))})()),Z&&l.createElement("tfoot",Object.assign({className:m("footer",{sticky:K},w)},p),G?G({cellClassName:m("footer-cell"),footerGroups:re,rowClassName:m("footer-row"),rowIndex:ae+se+1}):re.map(((e,t)=>(e=>e.headers.some((e=>e.column.columnDef.footer)))(e)?l.createElement(M,{key:e.id,footerGroup:e,attributes:h,cellAttributes:f,cellClassName:v,className:b,"aria-rowindex":ae+se+t+1}):null))))}));L.displayName="BaseTable"},18677:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},24953:(e,t,n)=>{function l(e,t){return"function"===typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:l(n,t[e])})))}}function r(e){return e instanceof Function}function i(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)}))};return l(e),n}function a(e,t,n){let l,o=[];return r=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(r);if(!(a.length!==o.length||a.some(((e,t)=>o[t]!==e))))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function s(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}n.d(t,{D0:()=>W,HT:()=>Z,ZR:()=>X,cU:()=>Q,h5:()=>Y});const u="debugHeaders";function d(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const g={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var r,i;const a=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[];return c(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>c(t,n=n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,r,i,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function c(e,t,n,l){var o,r;let i=0;const a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const i=[...r].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),i&&(null==i?void 0:i.column)===a)i.subHeaders.push(e);else{const o=d(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(r,t-1)},g=t.map(((e,t)=>d(n,e,{depth:i,index:t})));u(g,i-1),s.reverse();const c=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],c(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return c(null!=(o=null==(r=s[0])?void 0:r.headers)?o:[]),s}const p=(e,t,n,l,o,r,u)=>{let d={id:t,index:l,original:n,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,l),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,l),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>i(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let i=0;i<e._features.length;i++){const t=e._features[i];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var l,o;const r=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};f.autoRemove=e=>x(e);const v=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};v.autoRemove=e=>x(e);const w=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};w.autoRemove=e=>x(e);const h=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};h.autoRemove=e=>x(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));b.autoRemove=e=>x(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));C.autoRemove=e=>x(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>x(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>x(e);const y=(e,t,n)=>{let[l,o]=n;const r=e.getValue(t);return r>=l&&r<=o};y.resolveFilterValue=e=>{let[t,n]=e,l="number"!==typeof t?parseFloat(t):t,o="number"!==typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,i=null===n||Number.isNaN(o)?1/0:o;if(r>i){const e=r;r=i,i=e}return[r,i]},y.autoRemove=e=>x(e)||x(e[0])&&x(e[1]);const I={includesString:f,includesStringSensitive:v,equalsString:w,arrIncludes:h,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function x(e){return void 0===e||null===e||""===e}const M={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"===typeof l?I.includesString:"number"===typeof l?I.inNumberRange:"boolean"===typeof l||null!==l&&"object"===typeof l?I.equals:Array.isArray(l)?I.arrIncludes:I.weakEquals},e.getFilterFn=()=>{var n,l;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:I[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=l(n,r?r.value:void 0);var a;if(F(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var u;return r?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=l(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(F(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function F(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const P={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"===typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(l=n,!Array.isArray(l)||!l.every((e=>"number"===typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},E={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"===typeof l?P.sum:"[object Date]"===Object.prototype.toString.call(l)?P.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const V={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[H(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=H(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=H(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),s(e.options,"debugTable"))}},O={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,r,i,a,s;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(r=l.right)?void 0:r.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),s(e.options,"debugColumns"))}},_={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>_,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_.minSize,null!=(l=null!=r?r:e.columnDef.size)?l:_.size),null!=(o=e.columnDef.maxSize)?o:_.maxSize)},e.getStart=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return r=>{if(!l||!o)return;if(null==r.persist||r.persist(),N(r)&&r.touches&&r.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=N(r)?Math.round(r.touches[0].clientX):r.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const r="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},g=e=>d("move",e),c=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>g(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},v=!!function(){if("boolean"===typeof G)return G;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return G=e,G}()&&{passive:!1};N(r)?(null==p||p.addEventListener("touchmove",f.moveHandler,v),null==p||p.addEventListener("touchend",f.upHandler,v)):(null==p||p.addEventListener("mousemove",m.moveHandler,v),null==p||p.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let G=null;function N(e){return"touchstart"===e.type}function H(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(l[e.id]=!0)})):o.forEach((e=>{delete l[e.id]})),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{D(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((r=>{var i;if(n="undefined"!==typeof n?n:!o,e.getCanSelect()&&o===n)return r;const a={...r};return D(a,e.id,n,null==(i=null==l?void 0:l.selectChildren)||i,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return j(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===T(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===T(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},D=(e,t,n,l,o)=>{var r;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>D(e,t.id,n,l,o)))};function L(e,t){const n=e.getState().rowSelection,l=[],o={},r=function(e,t){return e.map((e=>{var t;const i=j(e,n);if(i&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:l,rowsById:o}}function j(e,t){var n;return null!=(n=t[e.id])&&n}function T(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,r=!1;return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(j(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=T(e,t);"all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const k=/([0-9]+)/gm;function B(e,t){return e===t?0:e>t?1:-1}function q(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function $(e,t){const n=e.split(k).filter(Boolean),l=t.split(k).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return-1}}return n.length-l.length}const U={alphanumeric:(e,t,n)=>$(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>$(q(e.getValue(n)),q(t.getValue(n))),text:(e,t,n)=>B(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>B(q(e.getValue(n)),q(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>B(e.getValue(n),t.getValue(n))},K=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},V,O,m,M,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof l||"number"===typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>I.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return r(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:I[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(l=!0,n.split(k).length>1))return U.alphanumeric}return l?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),r="undefined"!==typeof n&&null!==n;t.setSorting((i=>{const a=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let u,d=[],g=r?n:"desc"===o;var c;(u=null!=i&&i.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":a?"toggle":"replace","toggle"===u&&(r||o||(u="remove")),"add"===u)?(d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):d="toggle"===u?i.map((t=>t.id===e.id?{...t,desc:g}:t)):"remove"===u?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:g}];return d}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const r=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===r||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const r=!0===l||!(null==l||!l[e.id]);let i={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=l,n=null!=(o=n)?o:!r,!r&&n)return{...i,[e.id]:!0};if(r&&!n){const{[e.id]:t,...n}=i;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>l(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=l(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,l(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=l(t,null!=(o=e.options.pageCount)?o:-1);return"number"===typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const r=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...i,e.id,...r]);t.setRowPinning((e=>{var t,l,o,r,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"===typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const r=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(r=l.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function X(e){var t,n;const o=[...K,...null!=(t=e._features)?t:[]];let r={_features:o};const i=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let u={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let g=!1;const c={_features:o,options:{...i,...e},initialState:u,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();g=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=l(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:a((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const o=function(e,t,n,l){var o,r;const i={...e._getDefaultColumnDef(),...t},u=i.accessorKey;let d,g=null!=(o=null!=(r=i.id)?r:u?"function"===typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?o:"string"===typeof i.header?i.header:void 0;if(i.accessorFn?d=i.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[i.accessorKey]),!g)throw new Error;let c={id:`${String(g)}`,accessorFn:d,parent:l,depth:n,columnDef:i,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(c,e);return c}(r,e,l,n),i=e;return o.columns=i.columns?t(i.columns,o,l+1):[],o}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let l=0;l<r._features.length;l++){const e=r._features[l];null==e||null==e.createTable||e.createTable(r)}return r}function Z(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,r){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,r),t[s],s,o,void 0,null==r?void 0:r.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u))}return i};return n.rows=l(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function W(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?J(t):t),s(e.options,"debugTable"))}function J(e){const t=[],n=e=>{var l;t.push(e),null!=(l=e.subRows)&&l.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Q(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const l=t.filter((t=>e.getColumn(t))),o=[],r={},a=function(t,n,s){if(void 0===n&&(n=0),n>=l.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=l[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const l=`${n.getGroupingValue(t)}`,o=e.get(l);return o?o.push(n):e.set(l,[n]),e}),n)}(t,u),g=Array.from(d.entries()).map(((t,d)=>{let[g,c]=t,m=`${u}:${g}`;m=s?`${s}>${m}`:m;const f=a(c,n+1,m);f.forEach((e=>{e.parentId=m}));const v=n?i(c,(e=>e.subRows)):c,w=p(e,m,v[0].original,d,n,void 0,s);return Object.assign(w,{groupingColumnId:u,groupingValue:g,subRows:f,leafRows:v,getValue:t=>{if(l.includes(t)){if(w._valuesCache.hasOwnProperty(t))return w._valuesCache[t];var n;if(c[0])w._valuesCache[t]=null!=(n=c[0].getValue(t))?n:void 0;return w._valuesCache[t]}if(w._groupingValuesCache.hasOwnProperty(t))return w._groupingValuesCache[t];const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn();return r?(w._groupingValuesCache[t]=r(t,v,c),w._groupingValuesCache[t]):void 0}}),f.forEach((e=>{o.push(e),r[e.id]=e})),w}));return g},s=a(n.rows,0);return s.forEach((e=>{o.push(e),r[e.id]=e})),{rows:s,flatRows:o,rowsById:r}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Y(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const l=e.getState().sorting,o=[],r=l.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};r.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let l=0;l<r.length;l+=1){var n;const o=r[l],a=i[o.id],s=a.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(o.id),l=void 0===t.getValue(o.id);if(n||l){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&l?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,o.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}},36590:(e,t,n)=>{n.d(t,{K:()=>r});var l=n(24953),o=n(85720);const r=e=>{var t,n,r,i,a,s,u,d,g,c,p,m,f;const v=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(r=e.enableExpanding)&&void 0!==r&&r,enableGrouping:null!==(i=e.enableGrouping)&&void 0!==i&&i,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,l.HT)(),getExpandedRowModel:e.enableExpanding?null!==(g=e.getExpandedRowModel)&&void 0!==g?g:(0,l.D0)():void 0,getGroupedRowModel:e.enableGrouping?null!==(c=e.getGroupedRowModel)&&void 0!==c?c:(0,l.cU)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,l.h5)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,o.N4)(v)}},74321:(e,t,n)=>{n.d(t,{S:()=>u});var l=n(59284),o=n(64222),r=n(46898);function i(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const s=(0,n(69220).om)("checkbox"),u=l.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:g,children:c,title:p,style:m,className:f,qa:v}=e,{checked:w,inputProps:h}=(0,o.v)(e),b=g||c,C=l.createElement("span",{className:s("indicator")},l.createElement("span",{className:s("icon"),"aria-hidden":!0},u?l.createElement(i,{className:s("icon-svg",{type:"dash"})}):l.createElement(a,{className:s("icon-svg",{type:"tick"})})),l.createElement("input",Object.assign({},h,{className:s("control")})),l.createElement("span",{className:s("outline")}));return l.createElement(r.m,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:w},f),qa:v,control:C},b)}))},76938:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},85720:(e,t,n)=>{n.d(t,{Kv:()=>r,N4:()=>i});var l=n(59284),o=n(24953);function r(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?l.createElement(e,t):e:null;var n}function i(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState((()=>({current:(0,o.ZR)(t)}))),[r,i]=l.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/59172.d3dd36c7.chunk.js.LICENSE.txt index 23ee32e19b..23ee32e19b 100644 --- a/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/59172.d3dd36c7.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/5924.53ba4f49.chunk.js b/ydb/core/viewer/monitoring/static/js/5924.53ba4f49.chunk.js deleted file mode 100644 index c2065896ad..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5924.53ba4f49.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5924],{95924:function(e,n,i){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e),_={name:"fy",weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),weekStart:1,weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"}};return i.default.locale(_,null,!0),_}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/59243.5de594f4.chunk.js b/ydb/core/viewer/monitoring/static/js/59243.5de594f4.chunk.js new file mode 100644 index 0000000000..46428b8dc3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59243.5de594f4.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59243],{59243:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"am",weekdays:"\u12a5\u1211\u12f5_\u1230\u129e_\u121b\u12ad\u1230\u129e_\u1228\u1261\u12d5_\u1210\u1219\u1235_\u12a0\u122d\u1265_\u1245\u12f3\u121c".split("_"),weekdaysShort:"\u12a5\u1211\u12f5_\u1230\u129e_\u121b\u12ad\u1230_\u1228\u1261\u12d5_\u1210\u1219\u1235_\u12a0\u122d\u1265_\u1245\u12f3\u121c".split("_"),weekdaysMin:"\u12a5\u1211_\u1230\u129e_\u121b\u12ad_\u1228\u1261_\u1210\u1219_\u12a0\u122d_\u1245\u12f3".split("_"),months:"\u1303\u1295\u12cb\u122a_\u134c\u1265\u122f\u122a_\u121b\u122d\u127d_\u12a4\u1355\u122a\u120d_\u121c\u12ed_\u1301\u1295_\u1301\u120b\u12ed_\u12a6\u1308\u1235\u1275_\u1234\u1355\u1274\u121d\u1260\u122d_\u12a6\u12ad\u1276\u1260\u122d_\u1296\u126c\u121d\u1260\u122d_\u12f2\u1234\u121d\u1260\u122d".split("_"),monthsShort:"\u1303\u1295\u12cb_\u134c\u1265\u122f_\u121b\u122d\u127d_\u12a4\u1355\u122a_\u121c\u12ed_\u1301\u1295_\u1301\u120b\u12ed_\u12a6\u1308\u1235_\u1234\u1355\u1274_\u12a6\u12ad\u1276_\u1296\u126c\u121d_\u12f2\u1234\u121d".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"\u1260%s",past:"%s \u1260\u134a\u1275",s:"\u1325\u1242\u1275 \u1230\u12a8\u1295\u12f6\u127d",m:"\u12a0\u1295\u12f5 \u12f0\u1242\u1243",mm:"%d \u12f0\u1242\u1243\u12ce\u127d",h:"\u12a0\u1295\u12f5 \u1230\u12d3\u1275",hh:"%d \u1230\u12d3\u1273\u1275",d:"\u12a0\u1295\u12f5 \u1240\u1295",dd:"%d \u1240\u1293\u1275",M:"\u12a0\u1295\u12f5 \u12c8\u122d",MM:"%d \u12c8\u122b\u1275",y:"\u12a0\u1295\u12f5 \u12d3\u1218\u1275",yy:"%d \u12d3\u1218\u1273\u1275"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM D \u1363 YYYY",LLL:"MMMM D \u1363 YYYY HH:mm",LLLL:"dddd \u1363 MMMM D \u1363 YYYY HH:mm"},ordinal:function(_){return _+"\u129b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5950.28656717.chunk.js b/ydb/core/viewer/monitoring/static/js/5950.28656717.chunk.js deleted file mode 100644 index 63dfa98c49..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5950.28656717.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5950],{85950:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"bg",weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekStart:1,ordinal:function(_){var e=_%100;if(e>10&&e<20)return _+"-\u0442\u0438";var t=_%10;return 1===t?_+"-\u0432\u0438":2===t?_+"-\u0440\u0438":7===t||8===t?_+"-\u043c\u0438":_+"-\u0442\u0438"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5953.cb95c45e.chunk.js b/ydb/core/viewer/monitoring/static/js/5953.cb95c45e.chunk.js deleted file mode 100644 index 5bb76bce71..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5953.cb95c45e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5953],{85953:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"th",weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},ordinal:function(_){return _+"."}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/59605.a2f7e321.chunk.js b/ydb/core/viewer/monitoring/static/js/59605.a2f7e321.chunk.js new file mode 100644 index 0000000000..3292b32b2b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59605.a2f7e321.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59605],{51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,t,s,o){if(n.language===t){var i=n.tokenStack=[];n.code=n.code.replace(s,(function(e){if("function"===typeof o&&!o(e))return e;for(var s,r=i.length;-1!==n.code.indexOf(s=a(t,r));)++r;return i[r]=e,s})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,t){if(n.language===t&&n.tokenStack){n.grammar=e.languages[t];var s=0,o=Object.keys(n.tokenStack);!function i(r){for(var u=0;u<r.length&&!(s>=o.length);u++){var l=r[u];if("string"===typeof l||l.content&&"string"===typeof l.content){var g=o[s],c=n.tokenStack[g],p="string"===typeof l?l:l.content,d=a(t,g),f=p.indexOf(d);if(f>-1){++s;var k=p.substring(0,f),m=new e.Token(t,e.tokenize(c,n.grammar),"language-"+t,c),h=p.substring(f+d.length),b=[];k&&b.push.apply(b,i([k])),b.push(m),h&&b.push.apply(b,i([h])),"string"===typeof l?r.splice.apply(r,[u,1].concat(b)):l.content=b}}else l.content&&i(l.content)}return r}(n.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]},52258:(e,a,n)=>{var t=n(51572);function s(e){e.register(t),function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",(function(a){e.languages["markup-templating"].buildPlaceholders(a,"ejs",/<%(?!%)[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"ejs")})),e.languages.eta=e.languages.ejs}(e)}e.exports=s,s.displayName="ejs",s.aliases=["eta"]},59605:(e,a,n)=>{n.d(a,{default:()=>s});var t=n(52258);const s=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/59748.4682a957.chunk.js b/ydb/core/viewer/monitoring/static/js/59748.4682a957.chunk.js new file mode 100644 index 0000000000..df593794a9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59748.4682a957.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 59748.4682a957.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59748],{59748:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>r});var o={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},r={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/59748.4682a957.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/59748.4682a957.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/59786.9a9eda90.chunk.js b/ydb/core/viewer/monitoring/static/js/59786.9a9eda90.chunk.js new file mode 100644 index 0000000000..0a60314eba --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59786.9a9eda90.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59786],{23569:e=>{function a(e){!function(e){var a="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(/<ID>/g,(function(){return a})),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:r(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}e.exports=a,a.displayName="dot",a.aliases=["gv"]},59786:(e,a,n)=>{n.d(a,{default:()=>t});var r=n(23569);const t=n.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js b/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js deleted file mode 100644 index d27709bb62..0000000000 --- a/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5988.38ef363d.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5988],{65988:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/59882.b6def2ca.chunk.js b/ydb/core/viewer/monitoring/static/js/59882.b6def2ca.chunk.js new file mode 100644 index 0000000000..724c5dabb8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59882.b6def2ca.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59882],{59882:function(a,i,n){a.exports=function(a){"use strict";function i(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var n=i(a),_={name:"gd",weekdays:"Did\xf2mhnaich_Diluain_Dim\xe0irt_Diciadain_Diardaoin_Dihaoine_Disathairne".split("_"),months:"Am Faoilleach_An Gearran_Am M\xe0rt_An Giblean_An C\xe8itean_An t-\xd2gmhios_An t-Iuchar_An L\xf9nastal_An t-Sultain_An D\xe0mhair_An t-Samhain_An D\xf9bhlachd".split("_"),weekStart:1,weekdaysShort:"Did_Dil_Dim_Dic_Dia_Dih_Dis".split("_"),monthsShort:"Faoi_Gear_M\xe0rt_Gibl_C\xe8it_\xd2gmh_Iuch_L\xf9n_Sult_D\xe0mh_Samh_D\xf9bh".split("_"),weekdaysMin:"D\xf2_Lu_M\xe0_Ci_Ar_Ha_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"}};return n.default.locale(_,null,!0),_}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/59908.4f5fa1f6.chunk.js b/ydb/core/viewer/monitoring/static/js/59908.4f5fa1f6.chunk.js new file mode 100644 index 0000000000..7dd26a3731 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/59908.4f5fa1f6.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[59908],{59908:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tzm",weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekStart:6,weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/60.85d957cd.chunk.js b/ydb/core/viewer/monitoring/static/js/60.85d957cd.chunk.js deleted file mode 100644 index 17ad8f663e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/60.85d957cd.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[60],{40060:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"fa",weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekStart:6,months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/60110.448cdddf.chunk.js b/ydb/core/viewer/monitoring/static/js/60110.448cdddf.chunk.js new file mode 100644 index 0000000000..a8153c9333 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/60110.448cdddf.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 60110.448cdddf.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[60110],{60110:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/60110.448cdddf.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/60110.448cdddf.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js b/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js deleted file mode 100644 index efaf51e2a7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6012.aac08e72.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6012],{46012:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>n,language:()=>l});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},l={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/60221.8d560e16.chunk.js b/ydb/core/viewer/monitoring/static/js/60221.8d560e16.chunk.js new file mode 100644 index 0000000000..e6705d1f78 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/60221.8d560e16.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[60221],{60221:function(_,e,d){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var d=e(_),Y={name:"zh-tw",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_,e){return"W"===e?_+"\u9031":_+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(_,e){var d=100*_+e;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1100?"\u4e0a\u5348":d<1300?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return d.default.locale(Y,null,!0),Y}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6030.b30fca36.chunk.js b/ydb/core/viewer/monitoring/static/js/6030.b30fca36.chunk.js deleted file mode 100644 index e2b7d92595..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6030.b30fca36.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6030],{3685:(e,s,t)=>{t.d(s,{$:()=>r});var i=t(54090),n=t(77506),a=t(33775),l=t(60712);const o=(0,n.cn)("ydb-entity-page-title");function r({entityName:e,status:s=i.m.Grey,id:t,className:n}){return(0,l.jsxs)("div",{className:o(null,n),children:[(0,l.jsx)("span",{className:o("prefix"),children:e}),(0,l.jsx)(a.k,{className:o("icon"),status:s,size:"s"}),t]})}},18677:(e,s,t)=>{t.d(s,{A:()=>n});var i=t(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},22983:(e,s,t)=>{t.d(s,{B:()=>d});var i=t(59284),n=t(84476),a=t(84375),l=t(55974),o=t(42829),r=t(60712);function d({children:e,onConfirmAction:s,onConfirmActionSuccess:t,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:v=!1,buttonView:h="action",buttonTitle:p,buttonClassName:m,withPopover:g=!1,popoverContent:x,popoverPlacement:f="right",popoverDisabled:k=!0}){const[b,y]=i.useState(!1),[j,N]=i.useState(!1),[w,D]=i.useState(!1),I=()=>(0,r.jsx)(n.$,{onClick:()=>y(!0),view:h,disabled:v,loading:!v&&j,className:m,title:p,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.g,{visible:b,header:d,text:c,withRetry:w,retryButtonText:u,onConfirm:async e=>{N(!0),await s(e)},onConfirmActionSuccess:async()=>{D(!1);try{await(null===t||void 0===t?void 0:t())}finally{N(!1)}},onConfirmActionError:e=>{D((0,o.D)(e)),N(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(a.A,{content:x,placement:f,disabled:k,children:I()}):I()]})}},42655:(e,s,t)=>{t.d(s,{y:()=>c});var i=t(59284),n=t(89169),a=t(77506),l=t(66781),o=t(60712);const r=(0,a.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:r("label"),children:[(0,o.jsx)(n.E,{className:r("label__text")}),(0,o.jsx)("div",{className:r("label__dots")})]}),c=({rows:e=8,className:s,delay:t=600})=>{const[a]=(0,l.y)(t);let c=(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(n.E,{className:r("value")})]});return a||(c=null),(0,o.jsx)("div",{className:r(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:r("row"),children:c},`skeleton-row-${s}`)))})}},42829:(e,s,t)=>{t.d(s,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},55974:(e,s,t)=>{t.d(s,{g:()=>x});var i=t(59284),n=t(18677),a=t(71153),l=t(74321),o=t(2198),r=t(99991),d=t(89954),c=t(77506),u=t(48372);const v=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,u.g4)("ydb-critical-action-dialog",{en:v});var p=t(60712);const m=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function x({visible:e,header:s,text:t,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:v,onConfirm:x,onConfirmActionSuccess:f,onConfirmActionError:k}){const[b,y]=i.useState(!1),[j,N]=i.useState(),[w,D]=i.useState(!1),I=async e=>(y(!0),x(e).then((()=>{f(),v()})).catch((e=>{k(e),N(e)})).finally((()=>{y(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:m(),size:"s",onClose:v,onTransitionExited:()=>{N(void 0),D(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:s}),(0,p.jsx)(o.l.Body,{className:m("body"),children:(0,p.jsxs)("div",{className:m("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:m("error-icon"),children:(0,p.jsx)(n.A,{width:"24",height:"22"})}),g(j)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:v})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:s}),(0,p.jsxs)(o.l.Body,{className:m("body"),children:[(0,p.jsxs)("div",{className:m("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:m("warning-icon"),children:(0,p.jsx)(r.I,{data:a.A,size:24})}),t]}),u?(0,p.jsx)(l.S,{checked:w,onUpdate:D,children:h("checkbox-text")}):null]}),(0,p.jsx)(o.l.Footer,{loading:b,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!w},onClickButtonCancel:v,onClickButtonApply:()=>I()})]})})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var i=t(87184),n=t(77506),a=t(90053),l=t(70043),o=t(60712);const r=(0,n.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:s}){return(0,o.jsx)("div",{className:r("info"),children:s?(0,o.jsx)(l.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...s}){return(0,o.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(c,{...s}),(0,o.jsx)(a.E,{})]})}},67808:(e,s,t)=>{t.d(s,{E:()=>k});t(59284);var i=t(87184),n=t(92459),a=t(7435),l=t(77506),o=t(56839),r=t(31684),d=t(7187),c=t(12888),u=t(41650),v=t(60073),h=t(25196),p=t(15132),m=t(33775),g=t(39110),x=t(60712);const f=(0,l.cn)("ydb-vdisk-info");function k({data:e,withVDiskPageLink:s,withTitle:t,...l}){var d,f;const k=(0,c.X)(),{AllocatedSize:y,DiskSpace:j,FrontQueues:N,Guid:w,Replicated:D,VDiskState:I,VDiskSlotId:S,Kind:C,SatisfactionRank:A,AvailableSize:E,HasUnreadableBlobs:_,IncarnationGuid:P,InstanceGuid:B,StoragePoolName:T,ReadThroughput:R,WriteThroughput:F,PDiskId:$,NodeId:V}=e||{},O=[];var L,z;((0,a.f8)(S)&&O.push({label:(0,g.r)("slot-id"),value:S}),(0,a.f8)(T)&&O.push({label:(0,g.r)("pool-name"),value:T}),(0,a.f8)(I)&&O.push({label:(0,g.r)("state-status"),value:I}),Number(y)>=0&&Number(E)>=0&&O.push({label:(0,g.r)("size"),value:(0,x.jsx)(p.O,{value:y,capacity:Number(y)+Number(E),formatValues:o.vX,colorizeProgress:!0})}),(0,a.f8)(C)&&O.push({label:(0,g.r)("kind"),value:C}),(0,a.f8)(w)&&O.push({label:(0,g.r)("guid"),value:w}),(0,a.f8)(P)&&O.push({label:(0,g.r)("incarnation-guid"),value:P}),(0,a.f8)(B)&&O.push({label:(0,g.r)("instance-guid"),value:B}),(0,a.f8)(D)&&O.push({label:(0,g.r)("replication-status"),value:D?(0,g.r)("yes"):(0,g.r)("no")}),(0,a.f8)(j)&&O.push({label:(0,g.r)("space-status"),value:(0,x.jsx)(m.k,{status:j})}),(0,a.f8)(null===A||void 0===A||null===(d=A.FreshRank)||void 0===d?void 0:d.Flag))&&O.push({label:(0,g.r)("fresh-rank-satisfaction"),value:(0,x.jsx)(m.k,{status:null===A||void 0===A||null===(L=A.FreshRank)||void 0===L?void 0:L.Flag})});(0,a.f8)(null===A||void 0===A||null===(f=A.LevelRank)||void 0===f?void 0:f.Flag)&&O.push({label:(0,g.r)("level-rank-satisfaction"),value:(0,x.jsx)(m.k,{status:null===A||void 0===A||null===(z=A.LevelRank)||void 0===z?void 0:z.Flag})});(0,a.f8)(N)&&O.push({label:(0,g.r)("front-queues"),value:(0,x.jsx)(m.k,{status:N})}),(0,a.f8)(_)&&O.push({label:(0,g.r)("has-unreadable-blobs"),value:_?(0,g.r)("yes"):(0,g.r)("no")}),(0,a.f8)(R)&&O.push({label:(0,g.r)("read-throughput"),value:(0,u.O4)(R)}),(0,a.f8)(F)&&O.push({label:(0,g.r)("write-throughput"),value:(0,u.O4)(F)});if((0,a.f8)($)&&(0,a.f8)(V)&&(0,a.f8)(S)){const e=[];if(s){const s=(0,n.yX)(S,$,V);e.push((0,x.jsx)(h.K,{title:(0,g.r)("vdisk-page"),url:s,external:!1},s))}if(k){const s=(0,r.Wg)({nodeId:V,pDiskId:$,vDiskSlotId:S});e.push((0,x.jsx)(h.K,{title:(0,g.r)("developer-ui"),url:s},s))}e.length&&O.push({label:(0,g.r)("links"),value:(0,x.jsx)(i.s,{wrap:"wrap",gap:2,children:e})})}const H=e&&t?(0,x.jsx)(b,{data:e}):null;return(0,x.jsx)(v.z_,{info:O,title:H,...l})}function b({data:e}){return(0,x.jsxs)("div",{className:f("title"),children:[(0,g.r)("vdiks-title"),(0,x.jsx)(m.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},70043:(e,s,t)=>{t.d(s,{E:()=>l});var i=t(89169),n=t(66781),a=t(60712);const l=({delay:e=600,className:s})=>{const[t]=(0,n.y)(e);return t?(0,a.jsx)(i.E,{className:s}):null}},74321:(e,s,t)=>{t.d(s,{S:()=>d});var i=t(59284),n=t(64222),a=t(46898);function l(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,t(69220).om)("checkbox"),d=i.forwardRef((function(e,s){const{size:t="m",indeterminate:d,disabled:c=!1,content:u,children:v,title:h,style:p,className:m,qa:g}=e,{checked:x,inputProps:f}=(0,n.v)(e),k=u||v,b=i.createElement("span",{className:r("indicator")},i.createElement("span",{className:r("icon"),"aria-hidden":!0},d?i.createElement(l,{className:r("icon-svg",{type:"dash"})}):i.createElement(o,{className:r("icon-svg",{type:"tick"})})),i.createElement("input",Object.assign({},f,{className:r("control")})),i.createElement("span",{className:r("outline")}));return i.createElement(a.m,{ref:s,title:h,style:p,size:t,disabled:c,className:r({size:t,disabled:c,indeterminate:d,checked:x},m),qa:g,control:b},k)}))},80208:(e,s,t)=>{t.r(s),t.d(s,{VDiskPage:()=>P});var i=t(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06M14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"}));var a=t(99991),l=t(44992),o=t(61750),r=t(67087),d=t(22983),c=t(3685),u=t(44508),v=t(42655),h=t(58389),p=t(67808),m=t(21334),g=t(67028),x=t(40174),f=t(7187),k=t(27295),b=t(78034);const y=m.F.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async({nodeId:e,pDiskId:s,vDiskSlotId:t},{signal:i})=>{try{const n=await Promise.all([window.api.viewer.getVDiskInfo({nodeId:e,pDiskId:s,vDiskSlotId:t},{signal:i}),window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:s},{signal:i}),window.api.viewer.getNodeInfo(e,{signal:i})]);return{data:function([e,s,t]){var i,n,a,l,o,r,d;const c=null===(i=e.VDiskStateInfo)||void 0===i?void 0:i[0],u=(0,k.WT)(c),v=null===(n=s.PDiskStateInfo)||void 0===n?void 0:n[0],h=(0,k.or)(v),p=null===(a=t.SystemStateInfo)||void 0===a?void 0:a[0],m=(0,b.q1)(p),g=null!==(l=null!==(o=u.NodeId)&&void 0!==o?o:h.NodeId)&&void 0!==l?l:m.NodeId,x=m.Host,f=null===(r=m.Roles)||void 0===r?void 0:r[0],y=m.DC,j=null!==(d=u.PDiskId)&&void 0!==d?d:h.PDiskId,N=h.Type;return{...u,NodeId:g,NodeHost:x,NodeType:f,NodeDC:y,PDiskId:j,PDiskType:N}}(n)}}catch(n){return{error:n}}},providesTags:(e,s,t)=>["All",{type:"VDiskData",id:(0,f.gh)(t.nodeId,t.pDiskId,t.vDiskSlotId)}]})}),overrideExisting:"throw"});var j=t(7435),N=t(77506),w=t(90182),D=t(12888),I=t(99936),S=t(48372);const C=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),A=(0,S.g4)("ydb-vDisk-page",{en:C});var E=t(60712);const _=(0,N.cn)("ydb-vdisk-page");function P(){const e=(0,w.YQ)(),s=i.useRef(null),t=(0,D.X)(),k=(0,g.c2)(),[{nodeId:b,pDiskId:N,vDiskSlotId:S}]=(0,r.useQueryParams)({nodeId:r.StringParam,pDiskId:r.StringParam,vDiskSlotId:r.StringParam});i.useEffect((()=>{e((0,x.g)("vDisk",{nodeId:b,pDiskId:N,vDiskSlotId:S}))}),[e,b,N,S]);const[C]=(0,w.Nt)(),P=(0,j.f8)(b)&&(0,j.f8)(N)&&(0,j.f8)(S)?{nodeId:b,pDiskId:N,vDiskSlotId:S}:l.hT,{currentData:B={},isFetching:T,error:R}=y.useGetVDiskDataQuery(P,{pollingInterval:C}),F=T&&void 0===B,{NodeHost:$,NodeId:V,NodeType:O,NodeDC:L,PDiskId:z,PDiskType:H,Severity:G,VDiskId:M}=B,{GroupID:q,GroupGeneration:Y,Ring:W,Domain:X,VDisk:Q}=M||{},J=(0,j.f8)(q)&&(0,j.f8)(Y)&&(0,j.f8)(W)&&(0,j.f8)(X)&&(0,j.f8)(Q),K=async e=>{if(J){var s;const t={groupId:q,groupGeneration:Y,failRealmIdx:W,failDomainIdx:X,vDiskIdx:Q,force:e};let i;if(i=k?await window.api.vdisk.evictVDisk(t):await window.api.tablets.evictVDiskOld(t),!1===(null===(s=i)||void 0===s?void 0:s.result)){throw{statusText:i.error,retryPossible:i.forceRetryPossible}}}},U=()=>{e(m.F.util.invalidateTags([{type:"VDiskData",id:(0,f.gh)(b||0,N||0,S||0)},"StorageData"]))};return(0,E.jsxs)("div",{className:_(null),ref:s,children:[(()=>{const e=S?`${A("vdisk")} ${S}`:A("vdisk"),s=N?`${A("pdisk")} ${N}`:A("pdisk"),t=$||A("node");return(0,E.jsx)(o.mg,{titleTemplate:`%s - ${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=$?`${A("fqdn")}: ${$}`:void 0,s=V?`${A("node")}: ${V}`:void 0,t=V?`${A("pdisk")}: ${z}`:void 0;return(0,E.jsx)(h.B,{className:_("meta"),loading:F,items:[e,s,O,L,t,H]})})(),(0,E.jsx)(c.$,{className:_("title"),entityName:A("vdisk"),status:(0,f.XY)(G),id:null===B||void 0===B?void 0:B.StringifiedId}),(0,E.jsx)("div",{className:_("controls"),children:(0,E.jsxs)(d.B,{onConfirmAction:K,onConfirmActionSuccess:U,buttonDisabled:!J||!t,buttonView:"normal",dialogHeader:A("evict-vdisk-dialog-header"),dialogText:A("evict-vdisk-dialog-text"),retryButtonText:A("force-evict-vdisk-button"),withPopover:!0,popoverContent:A("evict-vdisk-not-allowed"),popoverDisabled:t,children:[(0,E.jsx)(a.I,{data:n}),A("evict-vdisk-button")]})}),F?(0,E.jsx)(v.y,{rows:20}):(0,E.jsxs)(i.Fragment,{children:[R?(0,E.jsx)(u.o,{error:R}):null,(0,E.jsx)(p.E,{data:B,className:_("info")}),(0,j.f8)(q)&&(0,j.f8)(b)?(0,E.jsxs)(i.Fragment,{children:[(0,E.jsx)("div",{className:_("storage-title"),children:A("storage")}),(0,E.jsx)(I.z,{groupId:q,nodeId:b,pDiskId:null!==N&&void 0!==N?N:void 0,parentRef:s,viewContext:{groupId:null===q||void 0===q?void 0:q.toString(),nodeId:null===b||void 0===b?void 0:b.toString(),pDiskId:null===N||void 0===N?void 0:N.toString(),vDiskSlotId:null===S||void 0===S?void 0:S.toString()}})]}):null]})]})}},89954:(e,s,t)=>{t.d(s,{O:()=>I});var i=t(59284),n=t(45720),a=t(16929),l=t(71153),o=t(18677),r=t(84476),d=t(33705),c=t(67884),u=t(99991),v=t(77506),h=t(48372);const p=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),m=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,h.g4)("ydb-shorty-string",{ru:m,en:p});var x=t(60712);const f=(0,v.cn)("kv-shorty-string");function k({value:e="",limit:s=200,strict:t=!1,displayLength:n=!0,render:a=e=>e,onToggle:l,expandLabel:o=g("default_expand_label"),collapseLabel:r=g("default_collapse_label")}){const[d,u]=i.useState(!1),v=(d?r:o)+(n&&!d?g("chars_count",{count:e.length}):""),h=e.length>s+(t?0:v.length),p=d||!h?e:e.slice(0,s-4)+"\xa0...";return(0,x.jsxs)("div",{className:f(),children:[a(p),h?(0,x.jsx)(c.N,{className:f("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===l||void 0===l||l()},children:v}):null]})}var b=t(41650);const y=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==y[e]}(e)?y[e]:"S_INFO"}const N=(0,v.cn)("kv-result-issues"),w=(0,v.cn)("kv-issues"),D=(0,v.cn)("kv-issue");function I({data:e,hideSeverity:s}){const[t,n]=i.useState(!1),a="string"===typeof e||null===e||void 0===e?void 0:e.issues,l=Array.isArray(a)&&a.length>0;return(0,x.jsxs)("div",{className:N(),children:[(0,x.jsxs)("div",{className:N("error-message"),children:[(()=>{let t;if("string"===typeof e)t=e;else{var n,a;const l=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);t=(0,x.jsxs)(i.Fragment,{children:[s?null:(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(B,{severity:l})," "]}),(0,x.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.message})]})}return t})(),l&&(0,x.jsx)(r.$,{view:"normal",onClick:()=>n(!t),children:t?"Hide details":"Show details"})]}),l&&t&&(0,x.jsx)(S,{hideSeverity:s,issues:a})]})}function S({issues:e,hideSeverity:s}){const t=null===e||void 0===e?void 0:e.reduce(((e,s)=>{var t;const i=null!==(t=s.severity)&&void 0!==t?t:10;return Math.min(e,i)}),10);return(0,x.jsx)("div",{className:w(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,x.jsx)(C,{hideSeverity:s,issue:e,expanded:e===t},i)))})}function C({issue:e,hideSeverity:s,level:t=0}){const[n,a]=i.useState(!0),l=j(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=n?"bottom":"right";return(0,x.jsxs)("div",{className:D({leaf:!c,"has-issues":c}),children:[(0,x.jsxs)("div",{className:D("line"),children:[c&&(0,x.jsx)(r.$,{view:"flat-secondary",onClick:()=>a(!n),className:D("arrow-toggle"),children:(0,x.jsx)(d.I,{direction:u,size:16})}),s?null:(0,x.jsx)(B,{severity:l}),(0,x.jsx)(A,{issue:e}),e.issue_code?(0,x.jsxs)("span",{className:D("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,x.jsx)("div",{className:D("issues"),children:(0,x.jsx)(E,{issues:o,level:t+1,expanded:n})})]})}function A({issue:e}){var s;const t=function(e){const{position:s}=e;if("object"!==typeof s||null===s||!(0,b.kf)(s.row))return"";const{row:t,column:i}=s;return(0,b.kf)(i)?`${t}:${i}`:`line ${t}`}(e),i=window.ydbEditor,n=()=>(0,x.jsxs)("span",{className:D("message"),children:[t&&(0,x.jsx)("span",{className:D("place-text"),title:"Position",children:t}),(0,x.jsx)("div",{className:D("message-text"),children:(0,x.jsx)(k,{value:e.message,expandLabel:"Show full message"})})]}),{row:a,column:l}=null!==(s=e.position)&&void 0!==s?s:{};if(!((0,b.kf)(a)&&i))return n();return(0,x.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:a,column:null!==l&&void 0!==l?l:0};i.setPosition(e),i.revealPositionInCenterIfOutsideViewport(e),i.focus()},view:"primary",children:n()})}function E(e){const{issues:s,level:t,expanded:i}=e;return(0,x.jsx)("div",{className:D("list"),children:s.map(((e,s)=>(0,x.jsx)(C,{issue:e,level:t,expanded:i},s)))})}const _={S_INFO:n.A,S_WARNING:a.A,S_ERROR:l.A,S_FATAL:o.A},P=(0,v.cn)("yql-issue-severity");function B({severity:e}){const s=e.slice(2).toLowerCase();return(0,x.jsxs)("span",{className:P({severity:s}),children:[(0,x.jsx)(u.I,{className:P("icon"),data:_[e]}),(0,x.jsx)("span",{className:P("title"),children:s})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/60464.c820a295.chunk.js b/ydb/core/viewer/monitoring/static/js/60464.c820a295.chunk.js new file mode 100644 index 0000000000..70ff355631 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/60464.c820a295.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[60464],{9649:e=>{function n(e){!function(e){function n(e,n){return e.replace(/<<(\d+)>>/g,(function(e,a){return"(?:"+n[+a]+")"}))}function a(e,a,r){return RegExp(n(e,a),r||"")}var r=RegExp("\\b(?:"+("Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero"+" "+"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within").trim().replace(/ /g,"|")+")\\b"),t=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[/\b[A-Za-z_]\w*\b/.source]),i={keyword:r,punctuation:/[<>()?,.:[\]]/},s=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[s]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[t]),lookbehind:!0,inside:i},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[t]),lookbehind:!0,inside:i}],keyword:r,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var o=function(e,n){for(var a=0;a<n;a++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[s]),2);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[o]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[o]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}e.exports=n,n.displayName="qsharp",n.aliases=["qs"]},60464:(e,n,a)=>{a.d(n,{default:()=>t});var r=a(9649);const t=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6047.328b41a5.chunk.js b/ydb/core/viewer/monitoring/static/js/6047.328b41a5.chunk.js deleted file mode 100644 index 3a4cf035ce..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6047.328b41a5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6047],{46047:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function r(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,n,t,s){var _=e+" ";switch(t){case"s":return n||s?"p\xe1r sekund":"p\xe1r sekundami";case"m":return n?"minuta":s?"minutu":"minutou";case"mm":return n||s?_+(r(e)?"minuty":"minut"):_+"minutami";case"h":return n?"hodina":s?"hodinu":"hodinou";case"hh":return n||s?_+(r(e)?"hodiny":"hodin"):_+"hodinami";case"d":return n||s?"den":"dnem";case"dd":return n||s?_+(r(e)?"dny":"dn\xed"):_+"dny";case"M":return n||s?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return n||s?_+(r(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):_+"m\u011bs\xedci";case"y":return n||s?"rok":"rokem";case"yy":return n||s?_+(r(e)?"roky":"let"):_+"lety"}}var _={name:"cs",weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),months:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),monthsShort:"led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return t.default.locale(_,null,!0),_}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/60949.c74a3708.chunk.js b/ydb/core/viewer/monitoring/static/js/60949.c74a3708.chunk.js new file mode 100644 index 0000000000..76748a7a9e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/60949.c74a3708.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[60949],{60949:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),s={name:"ms",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH.mm",LLLL:"dddd, D MMMM YYYY HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61088.c55195af.chunk.js b/ydb/core/viewer/monitoring/static/js/61088.c55195af.chunk.js new file mode 100644 index 0000000000..27d4bc0c4b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61088.c55195af.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61088],{61088:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),n={name:"bi",weekdays:"Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade".split("_"),months:"Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba".split("_"),weekStart:1,weekdaysShort:"San_Man_Tus_Wen_Tos_Frae_Sar".split("_"),monthsShort:"Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"San_Ma_Tu_We_To_Fr_Sar".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"lo %s",past:"%s bifo",s:"sam seken",m:"wan minit",mm:"%d minit",h:"wan haoa",hh:"%d haoa",d:"wan dei",dd:"%d dei",M:"wan manis",MM:"%d manis",y:"wan yia",yy:"%d yia"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6114.c74edf11.chunk.js b/ydb/core/viewer/monitoring/static/js/6114.c74edf11.chunk.js deleted file mode 100644 index 9ae97e429f..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6114.c74edf11.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6114],{86114:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),r={name:"fo",weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),weekStart:1,weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"}};return a.default.locale(r,null,!0),r}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61250.2b3f06a3.chunk.js b/ydb/core/viewer/monitoring/static/js/61250.2b3f06a3.chunk.js new file mode 100644 index 0000000000..3c1b711cdc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61250.2b3f06a3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61250],{21035:e=>{function t(e){!function(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}\u2983\u2984.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:\u2200\u2192\u03bb\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}(e)}e.exports=t,t.displayName="agda",t.aliases=[]},61250:(e,t,a)=>{a.d(t,{default:()=>i});var n=a(21035);const i=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61387.f19330bb.chunk.js b/ydb/core/viewer/monitoring/static/js/61387.f19330bb.chunk.js new file mode 100644 index 0000000000..86ea2bb111 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61387.f19330bb.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61387],{43144:t=>{function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}t.exports=e,e.displayName="ini",e.aliases=[]},61387:(t,e,n)=>{n.d(e,{default:()=>i});var a=n(43144);const i=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61741.c551cb8f.chunk.js b/ydb/core/viewer/monitoring/static/js/61741.c551cb8f.chunk.js new file mode 100644 index 0000000000..c56c1d9dd0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61741.c551cb8f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61741],{49166:n=>{function e(n){!function(n){var e={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:e}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:e}},guid:e,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]}(n)}n.exports=e,e.displayName="solutionFile",e.aliases=[]},61741:(n,e,a)=>{a.d(e,{default:()=>d});var t=a(49166);const d=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61747.0c4ed2d6.chunk.js b/ydb/core/viewer/monitoring/static/js/61747.0c4ed2d6.chunk.js new file mode 100644 index 0000000000..fe3aaccbd3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61747.0c4ed2d6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61747],{61747:(e,n,t)=>{t.d(n,{default:()=>a});var r=t(98836);const a=t.n(r)()},90160:e=>{function n(e){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var t="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+t+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+t),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+t),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}e.exports=n,n.displayName="ruby",n.aliases=["rb"]},98836:(e,n,t)=>{var r=t(90160);function a(e){e.register(r),function(e){e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}e.exports=a,a.displayName="crystal",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61865.21725853.chunk.js b/ydb/core/viewer/monitoring/static/js/61865.21725853.chunk.js new file mode 100644 index 0000000000..6132aac38f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61865.21725853.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61865],{61865:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ka",weekdays:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"%s \u10e8\u10d4\u10db\u10d3\u10d4\u10d2",past:"%s \u10ec\u10d8\u10dc",s:"\u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8\u10e1",d:"\u10d3\u10e6\u10d4\u10e1",dd:"%d \u10d3\u10e6\u10d8\u10e1 \u10d2\u10d0\u10dc\u10db\u10d0\u10d5\u10da\u10dd\u10d1\u10d0\u10e8\u10d8",M:"\u10d7\u10d5\u10d8\u10e1",MM:"%d \u10d7\u10d5\u10d8\u10e1",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10da\u10d8\u10e1"},ordinal:function(_){return _}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/61917.92d39b4c.chunk.js b/ydb/core/viewer/monitoring/static/js/61917.92d39b4c.chunk.js new file mode 100644 index 0000000000..ece8cf47c9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/61917.92d39b4c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[61917],{61917:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"hy-am",weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),months:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),weekStart:1,weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6197.acb1fd7c.chunk.js b/ydb/core/viewer/monitoring/static/js/6197.acb1fd7c.chunk.js new file mode 100644 index 0000000000..a374dd3027 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6197.acb1fd7c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6197],{1464:r=>{function e(r){r.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}r.exports=e,e.displayName="asmatmel",e.aliases=[]},6197:(r,e,s)=>{s.d(e,{default:()=>a});var b=s(1464);const a=s.n(b)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/62042.e21d383b.chunk.js b/ydb/core/viewer/monitoring/static/js/62042.e21d383b.chunk.js new file mode 100644 index 0000000000..808e5fab81 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/62042.e21d383b.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 62042.e21d383b.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[62042],{62042:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>i,language:()=>_});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},_={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m512","__m512d","__m512i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\s*include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword.directive"],{include:"@whitespace"},[/\[\s*\[/,{token:"annotation",next:"@annotation"}],[/[{}()<>\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/[^)]+/,"string.raw"],[/\)$S2\"/,{token:"string.raw.end",next:"@pop"}],[/\)/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/62042.e21d383b.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/62042.e21d383b.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js b/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js deleted file mode 100644 index 3bdb996977..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6210.69d6a30a.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6210],{16210:(E,T,S)=>{S.r(T),S.d(T,{conf:()=>R,language:()=>_});var R={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},_={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NUMERIC","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","REAL","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","Area","AsBinary","AsWKB","ASCII","ASIN","AsText","AsWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","ATAN","AVG","BENCHMARK","BIN","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","Buffer","CAST","CEIL","CEILING","Centroid","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","Contains","CONV","CONVERT","CONVERT_TZ","ConvexHull","COS","COT","COUNT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","Crosses","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DES_DECRYPT","DES_ENCRYPT","DENSE_RANK","Dimension","Disjoint","Distance","ELT","ENCODE","ENCRYPT","EndPoint","Envelope","Equals","EXP","EXPORT_SET","ExteriorRing","EXTRACT","ExtractValue","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEN_RANGE","GEN_RND_EMAIL","GEN_RND_PAN","GEN_RND_SSN","GEN_RND_US_PHONE","GeomCollection","GeomCollFromText","GeometryCollectionFromText","GeomCollFromWKB","GeometryCollectionFromWKB","GeometryCollection","GeometryN","GeometryType","GeomFromText","GeometryFromText","GeomFromWKB","GeometryFromWKB","GET_FORMAT","GET_LOCK","GLength","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","InteriorRingN","Intersects","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","IsClosed","IsEmpty","ISNULL","IsSimple","JSON_APPEND","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LineFromText","LineStringFromText","LineFromWKB","LineStringFromWKB","LineString","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASK_INNER","MASK_OUTER","MASK_PAN","MASK_PAN_RELAXED","MASK_SSN","MASTER_POS_WAIT","MAX","MBRContains","MBRCoveredBy","MBRCovers","MBRDisjoint","MBREqual","MBREquals","MBRIntersects","MBROverlaps","MBRTouches","MBRWithin","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MLineFromText","MultiLineStringFromText","MLineFromWKB","MultiLineStringFromWKB","MOD","MONTH","MONTHNAME","MPointFromText","MultiPointFromText","MPointFromWKB","MultiPointFromWKB","MPolyFromText","MultiPolygonFromText","MPolyFromWKB","MultiPolygonFromWKB","MultiLineString","MultiPoint","MultiPolygon","NAME_CONST","NOT IN","NOW","NTH_VALUE","NTILE","NULLIF","NumGeometries","NumInteriorRings","NumPoints","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","Overlaps","PASSWORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","Point","PointFromText","PointFromWKB","PointN","PolyFromText","PolygonFromText","PolyFromWKB","PolygonFromWKB","Polygon","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","PROCEDURE ANALYSE","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_REPLACE","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOURCE_POS_WAIT","SPACE","SQRT","SRID","ST_Area","ST_AsBinary","ST_AsWKB","ST_AsGeoJSON","ST_AsText","ST_AsWKT","ST_Buffer","ST_Buffer_Strategy","ST_Centroid","ST_Collect","ST_Contains","ST_ConvexHull","ST_Crosses","ST_Difference","ST_Dimension","ST_Disjoint","ST_Distance","ST_Distance_Sphere","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_FrechetDistance","ST_GeoHash","ST_GeomCollFromText","ST_GeometryCollectionFromText","ST_GeomCollFromTxt","ST_GeomCollFromWKB","ST_GeometryCollectionFromWKB","ST_GeometryN","ST_GeometryType","ST_GeomFromGeoJSON","ST_GeomFromText","ST_GeometryFromText","ST_GeomFromWKB","ST_GeometryFromWKB","ST_HausdorffDistance","ST_InteriorRingN","ST_Intersection","ST_Intersects","ST_IsClosed","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_LatFromGeoHash","ST_Length","ST_LineFromText","ST_LineStringFromText","ST_LineFromWKB","ST_LineStringFromWKB","ST_LineInterpolatePoint","ST_LineInterpolatePoints","ST_LongFromGeoHash","ST_Longitude","ST_MakeEnvelope","ST_MLineFromText","ST_MultiLineStringFromText","ST_MLineFromWKB","ST_MultiLineStringFromWKB","ST_MPointFromText","ST_MultiPointFromText","ST_MPointFromWKB","ST_MultiPointFromWKB","ST_MPolyFromText","ST_MultiPolygonFromText","ST_MPolyFromWKB","ST_MultiPolygonFromWKB","ST_NumGeometries","ST_NumInteriorRing","ST_NumInteriorRings","ST_NumPoints","ST_Overlaps","ST_PointAtDistance","ST_PointFromGeoHash","ST_PointFromText","ST_PointFromWKB","ST_PointN","ST_PolyFromText","ST_PolygonFromText","ST_PolyFromWKB","ST_PolygonFromWKB","ST_Simplify","ST_SRID","ST_StartPoint","ST_SwapXY","ST_SymDifference","ST_Touches","ST_Transform","ST_Union","ST_Validate","ST_Within","ST_X","ST_Y","StartPoint","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","Touches","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UpdateXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","Within","X","Y","YEAR","YEARWEEK"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/#+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/\\'/,"string"],[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/`/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^`]+/,"identifier"],[/``/,"identifier"],[/`/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js b/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js deleted file mode 100644 index 25183bb0e7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6214.a9a481a7.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6214],{26214:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>m});var o,i,s=n(80781),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,a=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))p.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=d(t,i))||o.enumerable});return e},k={};a(k,o=s,"default"),i&&a(i,o,"default");var l={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"\u201c",close:"\u201d"},{open:"\u2018",close:"\u2019"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:k.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:k.languages.IndentAction.Outdent}},...Array.from({length:100},((e,t)=>({beforeText:new RegExp(`^${t}\\. .+`),action:{indentAction:k.languages.IndentAction.None,appendText:`${t+1}. `}})))]},m={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/62308.fe05af2f.chunk.js b/ydb/core/viewer/monitoring/static/js/62308.fe05af2f.chunk.js new file mode 100644 index 0000000000..4741192184 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/62308.fe05af2f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[62308],{62308:(e,t,n)=>{n.r(t),n.d(t,{getCLS:()=>p,getFCP:()=>y,getFID:()=>k,getLCP:()=>F,getTTFB:()=>C});var i,a,r,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},s=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},f=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},d="function"==typeof WeakSet?new WeakSet:new Set,m=function(e,t,n){var i;return function(){t.value>=0&&(n||d.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},p=function(e,t){var n,i=u("CLS",0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},r=c("layout-shift",a);r&&(n=m(e,i,t),s((function(){r.takeRecords().map(a),n()})),f((function(){i=u("CLS",0),n=m(e,i,t)})))},v=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){s((function(e){var t=e.timeStamp;v=t}),!0)},g=function(){return v<0&&(v=l(),h(),f((function(){setTimeout((function(){v=l(),h()}),0)}))),{get timeStamp(){return v}}},y=function(e,t){var n,i=g(),a=u("FCP"),r=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.timeStamp&&(a.value=e.startTime,a.entries.push(e),d.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],s=o?null:c("paint",r);(o||s)&&(n=m(e,a,t),o&&r(o),f((function(i){a=u("FCP"),n=m(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,d.add(a),n()}))}))})))},S={passive:!0,capture:!0},E=new Date,b=function(e,t){i||(i=t,a=e,r=new Date,L(removeEventListener),T())},T=function(){if(a>=0&&a<r-E){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(t){t(e)})),o=[]}},w=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){b(e,t),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,S),removeEventListener("pointercancel",i,S)};addEventListener("pointerup",n,S),addEventListener("pointercancel",i,S)}(t,e):b(t,e)}},L=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,w,S)}))},k=function(e,t){var n,r=g(),p=u("FID"),v=function(e){e.startTime<r.timeStamp&&(p.value=e.processingStart-e.startTime,p.entries.push(e),d.add(p),n())},l=c("first-input",v);n=m(e,p,t),l&&s((function(){l.takeRecords().map(v),l.disconnect()}),!0),l&&f((function(){var r;p=u("FID"),n=m(e,p,t),o=[],a=-1,i=null,L(addEventListener),r=v,o.push(r),T()}))},F=function(e,t){var n,i=g(),a=u("LCP"),r=function(e){var t=e.startTime;t<i.timeStamp&&(a.value=t,a.entries.push(e)),n()},o=c("largest-contentful-paint",r);if(o){n=m(e,a,t);var p=function(){d.has(a)||(o.takeRecords().map(r),o.disconnect(),d.add(a),n())};["keydown","click"].forEach((function(e){addEventListener(e,p,{once:!0,capture:!0})})),s(p,!0),f((function(i){a=u("LCP"),n=m(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,d.add(a),n()}))}))}))}},C=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/62350.07b0039d.chunk.js b/ydb/core/viewer/monitoring/static/js/62350.07b0039d.chunk.js new file mode 100644 index 0000000000..dc367dcbc9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/62350.07b0039d.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 62350.07b0039d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[62350],{62350:(e,i,t)=>{t.r(i),t.d(i,{conf:()=>n,language:()=>s});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[A-Z][\w\$]*/,"type.identifier"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/62350.07b0039d.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/62350.07b0039d.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/62595.0c9bd5a0.chunk.js b/ydb/core/viewer/monitoring/static/js/62595.0c9bd5a0.chunk.js new file mode 100644 index 0000000000..12b311c7a5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/62595.0c9bd5a0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[62595],{62595:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(72956);const r=a.n(n)()},72956:e=>{function t(e){!function(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}(e)}e.exports=t,t.displayName="dataweave",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js b/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js deleted file mode 100644 index 8563f87189..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6262.44dba84f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6262],{66262:(e,n,i)=>{i.r(n),i.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},r={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=><!~?:&|+\-*\/\^%#]+/,escapes:/%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,identifier:/(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,systemcall:/[$][a-zA-Z0-9_]+/,timeunits:/s|ms|us|ns|ps|fs/,tokenizer:{root:[[/^(\s*)(@identifier)/,["",{cases:{"@builtin_gates":{token:"keyword.$2",next:"@module_instance"},table:{token:"keyword.$2",next:"@table"},"@keywords":{token:"keyword.$2"},"@default":{token:"identifier",next:"@module_instance"}}}]],[/^\s*`include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*`\s*\w+/,"keyword"],{include:"@identifier_or_keyword"},{include:"@whitespace"},[/\(\*.*\*\)/,"annotation"],[/@systemcall/,"variable.predefined"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]],table:[{include:"@whitespace"},[/[()]/,"@brackets"],[/[:;]/,"delimiter"],[/[01\-*?xXbBrRfFpPnN]/,"variable.predefined"],["endtable","keyword.endtable","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/628.70d08de9.chunk.js b/ydb/core/viewer/monitoring/static/js/628.70d08de9.chunk.js deleted file mode 100644 index 73fe048135..0000000000 --- a/ydb/core/viewer/monitoring/static/js/628.70d08de9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[628],{90628:function(u,t,e){u.exports=function(u){"use strict";function t(u){return u&&"object"==typeof u&&"default"in u?u:{default:u}}var e=t(u);function n(u,t,e,n){var i={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xe4iv\xe4",dd:"%d p\xe4iv\xe4\xe4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xe4_viisi_kuusi_seitsem\xe4n_kahdeksan_yhdeks\xe4n".split("_")},a={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xe4iv\xe4n",dd:"%d p\xe4iv\xe4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xe4n_viiden_kuuden_seitsem\xe4n_kahdeksan_yhdeks\xe4n".split("_")},_=n&&!t?a:i,s=_[e];return u<10?s.replace("%d",_.numbers[u]):s.replace("%d",u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};return e.default.locale(i,null,!0),i}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/62888.e3af7359.chunk.js b/ydb/core/viewer/monitoring/static/js/62888.e3af7359.chunk.js new file mode 100644 index 0000000000..b924d246da --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/62888.e3af7359.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[62888],{62888:(e,n,t)=>{t.d(n,{default:()=>a});var i=t(81857);const a=t.n(i)()},81857:e=>{function n(e){!function(e){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,t=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,(function(){return n}))),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(t.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:t,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a}(e)}e.exports=n,n.displayName="jq",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/63008.97387142.chunk.js b/ydb/core/viewer/monitoring/static/js/63008.97387142.chunk.js new file mode 100644 index 0000000000..f88ea184a7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/63008.97387142.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[63008],{63008:function(_,e,Y){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var Y=e(_),d={name:"ja",weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_){return _+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiem:function(_){return _<12?"\u5348\u524d":"\u5348\u5f8c"},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}};return Y.default.locale(d,null,!0),d}(Y(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6324.de01edfb.chunk.js b/ydb/core/viewer/monitoring/static/js/6324.de01edfb.chunk.js deleted file mode 100644 index bce156ec6f..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6324.de01edfb.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6324],{26324:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),t={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js b/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js deleted file mode 100644 index 9fc8d136d6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6342.a2819c87.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6342],{86342:(e,t,p)=>{p.r(t),p.d(t,{conf:()=>n,language:()=>i});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},i={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6358.2997762b.chunk.js b/ydb/core/viewer/monitoring/static/js/6358.2997762b.chunk.js deleted file mode 100644 index ad04c091b1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6358.2997762b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6358],{26358:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"mr",weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/63653.c2f7dcde.chunk.js b/ydb/core/viewer/monitoring/static/js/63653.c2f7dcde.chunk.js new file mode 100644 index 0000000000..7418e5783f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/63653.c2f7dcde.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[63653],{63653:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-hk",months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),ordinal:function(_,e){return"W"===e?_+"\u9031":_+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",m:"\u4e00\u5206\u9418",mm:"%d \u5206\u9418",h:"\u4e00\u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"\u4e00\u5929",dd:"%d \u5929",M:"\u4e00\u500b\u6708",MM:"%d \u500b\u6708",y:"\u4e00\u5e74",yy:"%d \u5e74"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/63679.05a63e19.chunk.js b/ydb/core/viewer/monitoring/static/js/63679.05a63e19.chunk.js new file mode 100644 index 0000000000..f3d9ebfc1a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/63679.05a63e19.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[63679],{86060:function(e,_,t){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),r={name:"lb",weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),weekStart:1,weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js b/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js deleted file mode 100644 index 32d8ca765c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6374.be0c5879.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6374],{36374:(e,o,t)=>{t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},s={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/63769.731ffb68.chunk.js b/ydb/core/viewer/monitoring/static/js/63769.731ffb68.chunk.js new file mode 100644 index 0000000000..25e6ab08a2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/63769.731ffb68.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[63769],{63769:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-sg",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/63782.48301ab7.chunk.js b/ydb/core/viewer/monitoring/static/js/63782.48301ab7.chunk.js new file mode 100644 index 0000000000..d4cb859cfb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/63782.48301ab7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[63782],{11731:e=>{function n(e){!function(e){var n=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}e.exports=n,n.displayName="parser",n.aliases=[]},63782:(e,n,a)=>{a.d(n,{default:()=>i});var t=a(11731);const i=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6397.b8cf6fae.chunk.js b/ydb/core/viewer/monitoring/static/js/6397.b8cf6fae.chunk.js deleted file mode 100644 index 8b25c8ad5a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6397.b8cf6fae.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6397],{66397:(t,e,a)=>{a.r(e),a.d(e,{completionLists:()=>m,conf:()=>I,language:()=>g});const r=["AND","ANY","AS","ASC","ATTACH","BETWEEN","CASE","CAST","CREATE","CROSS","DATABASE","DATABASES","DEFAULT","DELETE","DESC","DESCRIBE","DETACH","DISTINCT","DROP","ELSE","END","FOREIGN","FROM","GRANT","HAVING","IF","INNER","INSERT","JOIN","KEY","LEFT","NATURAL","NOT","OFFSET","ON","OPTIMIZE","OR","OUTER","PREWHERE","PRIMARY","PROCESSLIST","REFERENCES","RIGHT","SELECT","SHOW","TABLE","THEN","TO","TOTALS","TYPE","UNION","UPDATE","USE","WHEN","WHERE","WITH"],n=["true","false","NULL"],i=["__bitBoolMaskAnd","__bitBoolMaskOr","__bitSwapLastTwo","__bitWrapperFunc","__getScalar","accurate_Cast","accurate_CastOrNull","accurateCast","accurateCastOrNull","acosh","addDays","addHours","addMinutes","addMonths","addQuarters","addressToLine","addressToSymbol","addSeconds","addWeeks","addYears","aes_decrypt_mysql","aes_encrypt_mysql","aggThrow","alphaTokens","and","any","anyHeavy","anyLast","appendTrailingCharIfAbsent","argMax","argMin","array","arrayAll","arrayAUC","arrayAvg","arrayCompact","arrayConcat","arrayCount","arrayCumSum","arrayCumSumNonNegative","arrayDifference","arrayDistinct","arrayElement","arrayEnumerate","arrayEnumerateDense","arrayEnumerateDenseRanked","arrayEnumerateUniq","arrayEnumerateUniqRanked","arrayExists","arrayFill","arrayFilter","arrayFirst","arrayFirstIndex","arrayFlatten","arrayIntersect","arrayJoin","arrayMap","arrayMax","arrayMin","arrayPopBack","arrayPopFront","arrayProduct","arrayPushBack","arrayPushFront","arrayReduce","arrayReduceInRanges","arrayResize","arrayReverse","arrayReverseFill","arrayReverseSort","arrayReverseSplit","arraySlice","arraySort","arraySplit","arrayStringConcat","arraySum","arrayUniq","arrayWithConstant","arrayZip","asinh","assumeNotNull","atanh","avgWeighted","bar","base64Decode","base64Encode","basename","bitAnd","bitCount","bitHammingDistance","bitmaskToArray","bitmaskToList","bitNot","bitOr","bitPositionsToArray","bitRotateLeft","bitRotateRight","bitShiftLeft","bitShiftRight","bitTest","bitTestAll","bitTestAny","bitXor","blockNumber","blockSerializedSize","blockSize","boundingRatio","buildId","byteSize","caseWithExpr","caseWithExpression","caseWithoutExpr","caseWithoutExpression","categoricalInformationValue","cbrt","cityHash64","concatAssumeInjective","ConvertYson","corrStable","cosh","countDigits","countEqual","countMatches","countMatchesCaseInsensitive","countSubstringsCaseInsensitive","countSubstringsCaseInsensitiveUTF8","covarPop","covarPopStable","covarSamp","covarSampStable","currentDatabase","currentProfiles","currentRoles","currentUser","cutFragment","cutIPv6","cutQueryString","cutQueryStringAndFragment","cutToFirstSignificantSubdomain","cutToFirstSignificantSubdomainCustom","cutToFirstSignificantSubdomainCustomWithWWW","cutToFirstSignificantSubdomainWithWWW","cutURLParameter","cutWWW","dateTime64ToSnowflake","dateTimeToSnowflake","dateTrunc","decodeURLComponent","decodeXMLComponent","decrypt","defaultProfiles","defaultRoles","defaultValueOfArgumentType","defaultValueOfTypeName","deltaSum","deltaSumTimestamp","demangle","dictGet","dictGetChildren","dictGetDate","dictGetDateOrDefault","dictGetDateTime","dictGetDateTimeOrDefault","dictGetDescendants","dictGetFloat32","dictGetFloat32OrDefault","dictGetFloat64","dictGetFloat64OrDefault","dictGetHierarchy","dictGetInt8","dictGetInt8OrDefault","dictGetInt16","dictGetInt16OrDefault","dictGetInt32","dictGetInt32OrDefault","dictGetInt64","dictGetInt64OrDefault","dictGetOrDefault","dictGetOrNull","dictGetString","dictGetStringOrDefault","dictGetUInt8","dictGetUInt8OrDefault","dictGetUInt16","dictGetUInt16OrDefault","dictGetUInt32","dictGetUInt32OrDefault","dictGetUInt64","dictGetUInt64OrDefault","dictGetUUID","dictGetUUIDOrDefault","dictHas","dictIsIn","divide","domain","domainWithoutWWW","dumpColumnStructure","e","empty","emptyArrayDate","emptyArrayDateTime","emptyArrayFloat32","emptyArrayFloat64","emptyArrayInt8","emptyArrayInt16","emptyArrayInt32","emptyArrayInt64","emptyArrayString","emptyArrayToSingle","emptyArrayUInt8","emptyArrayUInt16","emptyArrayUInt32","emptyArrayUInt64","enabledProfiles","enabledRoles","encodeXMLComponent","encrypt","endsWith","entropy","equals","erf","erfc","errorCodeToName","evalMLMethod","exp2","exp10","extract","extractAll","extractAllGroups","extractAllGroupsHorizontal","extractAllGroupsVertical","extractGroups","extractTextFromHTML","extractURLParameter","extractURLParameterNames","extractURLParameters","farmFingerprint64","farmHash64","file","filesystemAvailable","filesystemCapacity","filesystemFree","finalizeAggregation","firstSignificantSubdomain","firstSignificantSubdomainCustom","format","formatDateTime","formatReadableQuantity","formatReadableSize","formatReadableTimeDelta","formatRow","formatRowNoNewline","fragment","FROM_UNIXTIME","fromModifiedJulianDay","fromModifiedJulianDayOrNull","fromUnixTimestamp","fromUnixTimestamp64Micro","fromUnixTimestamp64Milli","fromUnixTimestamp64Nano","fullHostName","fuzzBits","gcd","generateUUIDv4","geoDistance","geohashDecode","geohashEncode","geohashesInBox","geoToH3","getMacro","getServerPort","getSetting","getSizeOfEnumType","globalIn","globalInIgnoreSet","globalNotIn","globalNotInIgnoreSet","globalNotNullIn","globalNotNullInIgnoreSet","globalNullIn","globalNullInIgnoreSet","globalVariable","greatCircleAngle","greatCircleDistance","greater","greaterOrEquals","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArrayMovingSum","groupArraySample","groupBitAnd","groupBitOr","groupBitXor","groupUniqArray","h3EdgeAngle","h3EdgeLengthM","h3GetBaseCell","h3GetResolution","h3HexAreaM2","h3IndexesAreNeighbors","h3IsValid","h3kRing","h3ToChildren","h3ToGeo","h3ToParent","h3ToString","halfMD5","has","hasAll","hasAny","hasColumnInTable","hasSubstr","hasThreadFuzzer","hasToken","hasTokenCaseInsensitive","histogram","hiveHash","hostName","hostname","identity","ifNotFinite","ignore","ilike","in","indexHint","indexOf","inIgnoreSet","initializeAggregation","initialQueryID","intDiv","intDivOrZero","intervalLengthSum","intExp2","intExp10","intHash32","intHash64","IPv4CIDRToRange","IPv4NumToString","IPv4NumToStringClassC","IPv4StringToNum","IPv4ToIPv6","IPv6CIDRToRange","IPv6NumToString","IPv6StringToNum","isConstant","isDecimalOverflow","isFinite","isInfinite","isIPAddressInRange","isIPv4String","isIPv6String","isNaN","isNotNull","isValidJSON","isValidUTF8","isZeroOrNull","javaHash","javaHashUTF16LE","joinGet","joinGetOrNull","JSON_EXISTS","JSON_QUERY","JSON_VALUE","JSONExtract","JSONExtractArrayRaw","JSONExtractBool","JSONExtractFloat","JSONExtractInt","JSONExtractKeysAndValues","JSONExtractKeysAndValuesRaw","JSONExtractRaw","JSONExtractString","JSONExtractUInt","JSONHas","JSONKey","JSONLength","JSONType","jumpConsistentHash","kurtPop","kurtSamp","lagInFrame","lcm","leadInFrame","leftPad","leftPadUTF8","lengthUTF8","less","lessOrEquals","lgamma","like","log1p","logTrace","lowCardinalityIndices","lowCardinalityKeys","lowerUTF8","MACNumToString","MACStringToNum","MACStringToOUI","mannWhitneyUTest","map","mapAdd","mapContains","mapKeys","mapPopulateSeries","mapSubtract","mapValues","match","materialize","maxIntersections","maxIntersectionsPosition","maxMap","MD5","median","medianBFloat16","medianBFloat16Weighted","medianDeterministic","medianExact","medianExactHigh","medianExactLow","medianExactWeighted","medianTDigest","medianTDigestWeighted","medianTiming","medianTimingWeighted","metroHash64","minMap","minus","modelEvaluate","modulo","moduloLegacy","moduloOrZero","multiFuzzyMatchAllIndices","multiFuzzyMatchAny","multiFuzzyMatchAnyIndex","multiIf","multiMatchAllIndices","multiMatchAny","multiMatchAnyIndex","multiply","multiSearchAllPositions","multiSearchAllPositionsCaseInsensitive","multiSearchAllPositionsCaseInsensitiveUTF8","multiSearchAllPositionsUTF8","multiSearchAny","multiSearchAnyCaseInsensitive","multiSearchAnyCaseInsensitiveUTF8","multiSearchAnyUTF8","multiSearchFirstIndex","multiSearchFirstIndexCaseInsensitive","multiSearchFirstIndexCaseInsensitiveUTF8","multiSearchFirstIndexUTF8","multiSearchFirstPosition","multiSearchFirstPositionCaseInsensitive","multiSearchFirstPositionCaseInsensitiveUTF8","multiSearchFirstPositionUTF8","negate","neighbor","netloc","ngramDistance","ngramDistanceCaseInsensitive","ngramDistanceCaseInsensitiveUTF8","ngramDistanceUTF8","ngramMinHash","ngramMinHashArg","ngramMinHashArgCaseInsensitive","ngramMinHashArgCaseInsensitiveUTF8","ngramMinHashArgUTF8","ngramMinHashCaseInsensitive","ngramMinHashCaseInsensitiveUTF8","ngramMinHashUTF8","ngramSearch","ngramSearchCaseInsensitive","ngramSearchCaseInsensitiveUTF8","ngramSearchUTF8","ngramSimHash","ngramSimHashCaseInsensitive","ngramSimHashCaseInsensitiveUTF8","ngramSimHashUTF8","normalizedQueryHash","normalizedQueryHashKeepNames","normalizeQuery","normalizeQueryKeepNames","notEmpty","notEquals","notILike","notIn","notInIgnoreSet","notLike","notNullIn","notNullInIgnoreSet","nullIn","nullInIgnoreSet","or","parseDateTime32BestEffort","parseDateTime32BestEffortOrNull","parseDateTime32BestEffortOrZero","parseDateTime64BestEffort","parseDateTime64BestEffortOrNull","parseDateTime64BestEffortOrZero","parseDateTimeBestEffort","parseDateTimeBestEffortOrNull","parseDateTimeBestEffortOrZero","parseDateTimeBestEffortUS","parseDateTimeBestEffortUSOrNull","parseDateTimeBestEffortUSOrZero","partitionId","path","pathFull","plus","pointInEllipses","pointInPolygon","polygonAreaCartesian","polygonAreaSpherical","polygonConvexHullCartesian","polygonPerimeterCartesian","polygonPerimeterSpherical","polygonsDistanceCartesian","polygonsDistanceSpherical","polygonsEqualsCartesian","polygonsIntersectionCartesian","polygonsIntersectionSpherical","polygonsSymDifferenceCartesian","polygonsSymDifferenceSpherical","polygonsUnionCartesian","polygonsUnionSpherical","polygonsWithinCartesian","polygonsWithinSpherical","port","positionCaseInsensitive","positionCaseInsensitiveUTF8","positionUTF8","protocol","quantile","quantileBFloat16","quantileBFloat16Weighted","quantileDeterministic","quantileExact","quantileExactExclusive","quantileExactHigh","quantileExactInclusive","quantileExactLow","quantileExactWeighted","quantiles","quantilesBFloat16","quantilesBFloat16Weighted","quantilesDeterministic","quantilesExact","quantilesExactExclusive","quantilesExactHigh","quantilesExactInclusive","quantilesExactLow","quantilesExactWeighted","quantilesTDigest","quantilesTDigestWeighted","quantilesTiming","quantilesTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileTiming","quantileTimingWeighted","queryID","queryString","queryStringAndFragment","rand32","rand64","randConstant","randomFixedString","randomPrintableASCII","randomString","randomStringUTF8","range","rankCorr","readWktMultiPolygon","readWktPoint","readWktPolygon","readWktRing","regexpQuoteMeta","regionHierarchy","regionIn","regionToArea","regionToCity","regionToContinent","regionToCountry","regionToDistrict","regionToName","regionToPopulation","regionToTopContinent","reinterpret","reinterpretAsDate","reinterpretAsDateTime","reinterpretAsFixedString","reinterpretAsFloat32","reinterpretAsFloat64","reinterpretAsInt8","reinterpretAsInt16","reinterpretAsInt32","reinterpretAsInt64","reinterpretAsInt128","reinterpretAsInt256","reinterpretAsString","reinterpretAsUInt8","reinterpretAsUInt16","reinterpretAsUInt32","reinterpretAsUInt64","reinterpretAsUInt128","reinterpretAsUInt256","reinterpretAsUUID","replaceAll","replaceOne","replaceRegexpAll","replaceRegexpOne","replicate","retention","reverseUTF8","rightPad","rightPadUTF8","roundAge","roundBankers","roundDown","roundDuration","roundToExp2","rowNumberInAllBlocks","rowNumberInBlock","runningAccumulate","runningConcurrency","runningDifference","runningDifferenceStartingWithFirstValue","sequenceCount","sequenceMatch","sequenceNextNode","serverUUID","SHA1","SHA224","SHA256","SHA512","shardCount","shardNum","sigmoid","simpleJSONExtractBool","simpleJSONExtractFloat","simpleJSONExtractInt","simpleJSONExtractRaw","simpleJSONExtractString","simpleJSONExtractUInt","simpleJSONHas","simpleLinearRegression","singleValueOrNull","sinh","sipHash64","sipHash128","skewPop","skewSamp","sleep","sleepEachRow","snowflakeToDateTime","snowflakeToDateTime64","splitByChar","splitByNonAlpha","splitByRegexp","splitByString","splitByWhitespace","startsWith","stddevPop","stddevPopStable","stddevSamp","stddevSampStable","stochasticLinearRegression","stochasticLogisticRegression","stringToH3","studentTTest","substringUTF8","subtractDays","subtractHours","subtractMinutes","subtractMonths","subtractQuarters","subtractSeconds","subtractWeeks","subtractYears","sumCount","sumKahan","sumMap","sumMapFiltered","sumMapFilteredWithOverflow","sumMapWithOverflow","sumWithOverflow","svg","tcpPort","tgamma","throwIf","tid","timeSlot","timeSlots","timeZone","timezone","timeZoneOf","timezoneOf","timeZoneOffset","timezoneOffset","toColumnTypeName","toDate","toDate32","toDate32OrNull","toDate32OrZero","toDateOrNull","toDateOrZero","toDateTime","toDateTime32","toDateTime64","toDateTime64OrNull","toDateTime64OrZero","toDateTimeOrNull","toDateTimeOrZero","today","toDayOfMonth","toDayOfWeek","toDayOfYear","toDecimal32","toDecimal32OrNull","toDecimal32OrZero","toDecimal64","toDecimal64OrNull","toDecimal64OrZero","toDecimal128","toDecimal128OrNull","toDecimal128OrZero","toDecimal256","toDecimal256OrNull","toDecimal256OrZero","toFixedString","toFloat32","toFloat32OrNull","toFloat32OrZero","toFloat64","toFloat64OrNull","toFloat64OrZero","toHour","toInt8","toInt8OrNull","toInt8OrZero","toInt16","toInt16OrNull","toInt16OrZero","toInt32","toInt32OrNull","toInt32OrZero","toInt64","toInt64OrNull","toInt64OrZero","toInt128","toInt128OrNull","toInt128OrZero","toInt256","toInt256OrNull","toInt256OrZero","toIntervalDay","toIntervalHour","toIntervalMinute","toIntervalMonth","toIntervalQuarter","toIntervalSecond","toIntervalWeek","toIntervalYear","toIPv4","toIPv6","toISOWeek","toISOYear","toJSONString","toLowCardinality","toMinute","toModifiedJulianDay","toModifiedJulianDayOrNull","toMonday","toMonth","toNullable","topK","topKWeighted","topLevelDomain","toQuarter","toRelativeDayNum","toRelativeHourNum","toRelativeMinuteNum","toRelativeMonthNum","toRelativeQuarterNum","toRelativeSecondNum","toRelativeWeekNum","toRelativeYearNum","toSecond","toStartOfDay","toStartOfFifteenMinutes","toStartOfFiveMinute","toStartOfHour","toStartOfInterval","toStartOfISOYear","toStartOfMinute","toStartOfMonth","toStartOfQuarter","toStartOfSecond","toStartOfTenMinutes","toStartOfWeek","toStartOfYear","toString","toStringCutToZero","toTime","toTimeZone","toTimezone","toTypeName","toUInt8","toUInt8OrNull","toUInt8OrZero","toUInt16","toUInt16OrNull","toUInt16OrZero","toUInt32","toUInt32OrNull","toUInt32OrZero","toUInt64","toUInt64OrNull","toUInt64OrZero","toUInt128","toUInt128OrNull","toUInt128OrZero","toUInt256","toUInt256OrNull","toUInt256OrZero","toUnixTimestamp","toUnixTimestamp64Micro","toUnixTimestamp64Milli","toUnixTimestamp64Nano","toUUID","toUUIDOrNull","toUUIDOrZero","toValidUTF8","toWeek","toYear","toYearWeek","toYYYYMM","toYYYYMMDD","toYYYYMMDDhhmmss","transform","trimBoth","trimLeft","trimRight","tryBase64Decode","tuple","tupleElement","tupleHammingDistance","tupleToNameValuePairs","uniq","uniqCombined","uniqCombined64","uniqExact","uniqHLL12","uniqUpTo","upperUTF8","uptime","URLHash","URLHierarchy","URLPathHierarchy","UUIDNumToString","UUIDStringToNum","validateNestedArraySizes","varPop","varPopStable","varSamp","varSampStable","visibleWidth","visitParamExtractBool","visitParamExtractFloat","visitParamExtractInt","visitParamExtractRaw","visitParamExtractString","visitParamExtractUInt","visitParamHas","welchTTest","windowFunnel","wkt","wordShingleMinHash","wordShingleMinHashArg","wordShingleMinHashArgCaseInsensitive","wordShingleMinHashArgCaseInsensitiveUTF8","wordShingleMinHashArgUTF8","wordShingleMinHashCaseInsensitive","wordShingleMinHashCaseInsensitiveUTF8","wordShingleMinHashUTF8","wordShingleSimHash","wordShingleSimHashCaseInsensitive","wordShingleSimHashCaseInsensitiveUTF8","wordShingleSimHashUTF8","xor","xxHash32","xxHash64","yandexConsistentHash","yesterday","YPathArrayBoolean","YPathArrayBooleanStrict","YPathArrayDouble","YPathArrayDoubleStrict","YPathArrayInt64","YPathArrayInt64Strict","YPathArrayUInt64","YPathArrayUInt64Strict","YPathBoolean","YPathBooleanStrict","YPathDouble","YPathDoubleStrict","YPathExtract","YPathExtractStrict","YPathInt64","YPathInt64Strict","YPathRaw","YPathRawStrict","YPathString","YPathStringStrict","YPathUInt64","YPathUInt64Strict","YSONExtract","YSONExtractArrayRaw","YSONExtractBool","YSONExtractFloat","YSONExtractInt","YSONExtractKeysAndValues","YSONExtractKeysAndValuesRaw","YSONExtractRaw","YSONExtractString","YSONExtractUInt","YSONHas","YSONKey","YSONLength","YSONType"],o=["_CAST","abs","acos","asin","atan","atan2","avg","bin","BIT_AND","BIT_OR","BIT_XOR","CAST","ceil","ceiling","char","CHAR_LENGTH","CHARACTER_LENGTH","coalesce","concat","connection_id","connectionId","corr","cos","count","countSubstrings","COVAR_POP","COVAR_SAMP","CRC32","CRC32IEEE","CRC64","DATABASE","DATE","date_trunc","dateDiff","dateName","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","dense_rank","exp","first_value","flatten","floor","FQDN","FROM_BASE64","greatest","hex","HOUR","hypot","if","ifNull","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","initial_query_id","isNull","last_value","lcase","least","length","ln","locate","log","log2","log10","lower","lpad","max","mid","min","MINUTE","mod","MONTH","not","now","now64","nth_value","nullIf","pi","position","pow","power","QUARTER","query_id","rand","rank","repeat","replace","reverse","round","row_number","rpad","SECOND","sign","sin","sqrt","STDDEV_POP","STDDEV_SAMP","substr","substring","sum","tan","tanh","TO_BASE64","trunc","truncate","ucase","unbin","unhex","upper","user","VAR_POP","VAR_SAMP","version","week","YEAR","yearweek"],s=["cluster","clusterAllReplicas","concatYtTables","concatYtTablesLike","concatYtTablesRange","concatYtTablesRegexp","dictionary","executable","file","generateRandom","input","jdbc","merge","null","numbers","numbers_mt","odbc","remote","remoteSecure","url","values","view","ytSubquery","zeros","zeros_mt"],l=["Buffer","Memory","YtTable"],c=["AggregateFunction","Array","Enum8","Enum16","FixedString","Float32","Float64","Int8","Int16","Int32","Int64","Int128","Int256","IntervalDay","IntervalHour","IntervalMinute","IntervalMonth","IntervalQuarter","IntervalSecond","IntervalWeek","IntervalYear","IPv4","IPv6","LowCardinality","Map","MultiPolygon","Nested","Nothing","Nullable","Point","Polygon","Ring","SimpleAggregateFunction","String","Tuple","UInt8","UInt16","UInt32","UInt64","UInt128","UInt256","UUID","YtBoolean"],u=["BIGINT","BIGINT SIGNED","BIGINT UNSIGNED","BINARY","BINARY LARGE OBJECT","BINARY VARYING","BLOB","BOOL","BOOLEAN","BYTE","BYTEA","CHAR","CHAR LARGE OBJECT","CHAR VARYING","CHARACTER","CHARACTER LARGE OBJECT","CHARACTER VARYING","CLOB","DEC","DOUBLE","DOUBLE PRECISION","Date","Date32","DateTime","DateTime32","DateTime64","Decimal","Decimal128","Decimal256","Decimal32","Decimal64","ENUM","Enum","FIXED","FLOAT","INET4","INET6","INT","INT SIGNED","INT UNSIGNED","INT1","INT1 SIGNED","INT1 UNSIGNED","INTEGER","INTEGER SIGNED","INTEGER UNSIGNED","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMINT SIGNED","MEDIUMINT UNSIGNED","MEDIUMTEXT","NATIONAL CHAR","NATIONAL CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NCHAR","NCHAR LARGE OBJECT","NCHAR VARYING","NUMERIC","NVARCHAR","REAL","SINGLE","SMALLINT","SMALLINT SIGNED","SMALLINT UNSIGNED","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYINT SIGNED","TINYINT UNSIGNED","TINYTEXT","VARCHAR","VARCHAR2"],m={keywordList:r.concat(["GROUP BY","ON CLUSTER","ORDER BY","LIMIT","RENAME TABLE","IF NOT EXISTS","IF EXISTS","FORMAT Vertical","FORMAT JSONCompact","FORMAT JSONEachRow","FORMAT TSKV","FORMAT TabSeparatedWithNames","FORMAT TabSeparatedWithNamesAndTypes","FORMAT TabSeparatedRaw","FORMAT BlockTabSeparated","FORMAT CSVWithNames","FORMAT CSV","FORMAT JSON","FORMAT TabSeparated"]),constantList:n,typeParameterList:c.concat(u,l),functionList:i.concat(o,s)},I={comments:{lineComment:"--",blockComment:["```","```"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},T=A(r),S=A(u.filter((t=>/^\S*$/.test(t))));const d=A(o),g={defaultToken:"text",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:r,keywordsDouble:[`${p("GROUP")}\\W+${p("BY")}`,`${p("ON")}\\W+${p("CLUSTER")}`,`${p("ORDER")}\\W+${p("BY")}`,`${p("LIMIT")}\\W+\\d+\\W*,\\W*\\d+`,`${p("LIMIT")}\\W+\\d+\\W+${p("BY")}\\W+`,`${p("LIMIT")}\\W+\\d+`,`${p("RENAME")}\\W+${p("TABLE")}`,`${p("IF")}\\W+${p("NOT")}\\W+${p("EXISTS")}`,`${p("IF")}\\W+${p("EXISTS")}`,`${p("FORMAT")}\\W+Vertical`,`${p("FORMAT")}\\W+JSONCompact`,`${p("FORMAT")}\\W+JSONEachRow`,`${p("FORMAT")}\\W+TSKV`,`${p("FORMAT")}\\W+TabSeparatedWithNames`,`${p("FORMAT")}\\W+TabSeparatedWithNamesAndTypes`,`${p("FORMAT")}\\W+TabSeparatedRaw`,`${p("FORMAT")}\\W+BlockTabSeparated`,`${p("FORMAT")}\\W+CSVWithNames`,`${p("FORMAT")}\\W+CSV`,`${p("FORMAT")}\\W+JSON`,`${p("FORMAT")}\\W+TabSeparated`].join("|"),typeKeywords:c,typeKeywordsDouble:A(function(t){return t.filter((t=>/\s/.test(t))).sort(((t,e)=>e.localeCompare(t)))}(u)),constants:n,builtinFunctions:i,tableFunctions:s,tableEngines:l,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[\w]+(?:\[[\w\]+]|[=-]>\w+)?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@strings"},[/[$@:](@variables)/,"variable"],[/{(@variables)}/,"variable"],[/[?;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@keywordsDouble/,"keyword"],[/@typeKeywordsDouble/,"keyword.type"],[/[a-zA-Z_$][\w$]*/,{cases:{[T]:{token:"keyword"},"@constants":{token:"constant"},"@builtinFunctions":{token:"constant.other.color"},[d]:{token:"constant.other.color"},"@tableFunctions":{token:"constant.other.color"},"@tableEngines":{token:"constant.other.color"},"@typeKeywords":{token:"keyword.type"},[S]:{token:"keyword.type"},"@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/```/,{token:"comment.quote",next:"@comment"}],[/\/\*/,{token:"comment.quote",next:"@cppComment"}]],comment:[[/[^`]+/,"comment"],[/```/,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],cppComment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/,"number"]],strings:[[/'/,{token:"string",next:"@stringSingle"}],[/"/,{token:"string.tablepath",next:"@stringDouble"}],[/`/,{token:"string.tablepath",next:"@stringBacktick"}]],stringSingle:[[/[^\\']/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/"/,{token:"string.tablepath",next:"@pop"}]],stringBacktick:[[/[^\\`]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]]}};function p(t){return t.split("").map((t=>/[a-zA-Z]/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:t)).join("")}function A(t){return`(${t.map((t=>p(t).replace(/\s+/g,"\\s"))).join("|")})`}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6405.b0dd94a9.chunk.js b/ydb/core/viewer/monitoring/static/js/6405.b0dd94a9.chunk.js deleted file mode 100644 index 6002a58e51..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6405.b0dd94a9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6405],{56405:function(e,t,n){!function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),u={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},a=["\u06a9\u0627\u0646\u0648\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u062f\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u06a9\u0627\u0646\u0648\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"],i={name:"ku",months:a,monthsShort:a,weekdays:"\u06cc\u06d5\u06a9\u0634\u06d5\u0645\u0645\u06d5_\u062f\u0648\u0648\u0634\u06d5\u0645\u0645\u06d5_\u0633\u06ce\u0634\u06d5\u0645\u0645\u06d5_\u0686\u0648\u0627\u0631\u0634\u06d5\u0645\u0645\u06d5_\u067e\u06ce\u0646\u062c\u0634\u06d5\u0645\u0645\u06d5_\u0647\u06d5\u06cc\u0646\u06cc_\u0634\u06d5\u0645\u0645\u06d5".split("_"),weekdaysShort:"\u06cc\u06d5\u06a9\u0634\u06d5\u0645_\u062f\u0648\u0648\u0634\u06d5\u0645_\u0633\u06ce\u0634\u06d5\u0645_\u0686\u0648\u0627\u0631\u0634\u06d5\u0645_\u067e\u06ce\u0646\u062c\u0634\u06d5\u0645_\u0647\u06d5\u06cc\u0646\u06cc_\u0634\u06d5\u0645\u0645\u06d5".split("_"),weekStart:6,weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647\u0640_\u0634".split("_"),preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return d[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return u[e]})).replace(/,/g,"\u060c")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiem:function(e){return e<12?"\u067e.\u0646":"\u062f.\u0646"},relativeTime:{future:"\u0644\u06d5 %s",past:"\u0644\u06d5\u0645\u06d5\u0648\u067e\u06ce\u0634 %s",s:"\u0686\u06d5\u0646\u062f \u0686\u0631\u06a9\u06d5\u06cc\u06d5\u06a9",m:"\u06cc\u06d5\u06a9 \u062e\u0648\u0644\u06d5\u06a9",mm:"%d \u062e\u0648\u0644\u06d5\u06a9",h:"\u06cc\u06d5\u06a9 \u06a9\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u06a9\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u06d5\u06a9 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u06d5\u06a9 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u06d5\u06a9 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"}};r.default.locale(i,null,!0),e.default=i,e.englishToArabicNumbersMap=u,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/64464.e1dcaef9.chunk.js b/ydb/core/viewer/monitoring/static/js/64464.e1dcaef9.chunk.js new file mode 100644 index 0000000000..7d69c67ca2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/64464.e1dcaef9.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[64464,94695],{2167:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>_g});var n=a(59284),s=a(61750),r=a(67087),i=a(64689),o=a(98167),l=a(61283),c=a(77506),d=a(60712);const u=(0,c.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),s=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;s(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,r=n||p;t&&(s(r),a(r))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.A,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:s}=e;if(s)return s;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),s(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(40174),g=a(53850),y=a(44992);let x=function(e){return e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication",e.EPathTypeTransfer="EPathTypeTransfer",e.EPathTypeResourcePool="EPathTypeResourcePool",e}({}),b=function(e){return e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl",e}({});let f=function(e){return e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD",e}({});let j=function(e){return e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS",e}({});const T={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},S={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"database",[x.EPathTypeExtSubDomain]:"database",[x.EPathTypeDir]:"directory",[x.EPathTypeColumnStore]:"directory",[x.EPathTypeTable]:"table",[x.EPathTypeTableIndex]:"index",[x.EPathTypeColumnTable]:"column_table",[x.EPathTypeCdcStream]:"stream",[x.EPathTypePersQueueGroup]:"topic",[x.EPathTypeExternalDataSource]:"external_data_source",[x.EPathTypeExternalTable]:"external_table",[x.EPathTypeView]:"view",[x.EPathTypeReplication]:"async_replication",[x.EPathTypeTransfer]:"transfer",[x.EPathTypeResourcePool]:"resource_pool"},N={table:x.EPathTypeTable,index:x.EPathTypeTableIndex,column_table:x.EPathTypeColumnTable,external_table:x.EPathTypeExternalTable,view:x.EPathTypeView},E=(e=x.EPathTypeDir,t,a="directory")=>t&&T[t]||S[e]||a,w={[b.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},C={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"Database",[x.EPathTypeExtSubDomain]:"Database",[x.EPathTypeDir]:"Directory",[x.EPathTypeTable]:"Table",[x.EPathTypeTableIndex]:"Secondary Index",[x.EPathTypeColumnStore]:"Tablestore",[x.EPathTypeColumnTable]:"Column-oriented table",[x.EPathTypeCdcStream]:"Changefeed",[x.EPathTypePersQueueGroup]:"Topic",[x.EPathTypeExternalDataSource]:"External Data Source",[x.EPathTypeExternalTable]:"External Table",[x.EPathTypeView]:"View",[x.EPathTypeReplication]:"Async Replication",[x.EPathTypeTransfer]:"Transfer",[x.EPathTypeResourcePool]:"Resource Pool"},P={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},I={[x.EPathTypeTable]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},D=e=>{var t;return null!==(t=e&&I[e])&&void 0!==t&&t},A={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},_=e=>{var t;return null!==(t=e&&A[e])&&void 0!==t&&t},R={[x.EPathTypeColumnStore]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},k=e=>{var t;return null!==(t=e&&R[e])&&void 0!==t&&t},O={[x.EPathTypeSubDomain]:!0,[x.EPathTypeExtSubDomain]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},M=e=>{var t;return null!==(t=e&&O[e])&&void 0!==t&&t},L={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1,[x.EPathTypeTransfer]:!1,[x.EPathTypeResourcePool]:!1},q=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},z={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},F={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeResourcePool]:!0,[x.EPathTypeReplication]:!0,[x.EPathTypeTransfer]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1},$=(e,t)=>{var a;return null!==(a=t&&z[t]||e&&F[e])&&void 0!==a&&a},U=e=>e===x.EPathTypeExternalTable,Q=e=>e===x.EPathTypeTable,B=e=>e===x.EPathTypeView;var H=a(21334);const G=H.F.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async({paths:e,database:t},{signal:a})=>{try{return{data:await Promise.all(e.map((e=>window.api.viewer.getDescribe({path:e,database:t},{signal:a}))))}}catch(n){return{error:n}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async({path:e,database:t,timeout:a},{signal:n})=>{try{return{data:await window.api.viewer.getDescribe({path:e,database:t,timeout:a},{signal:n})}}catch(s){return{error:s}}},keepUnusedDataFor:0,providesTags:["All","SchemaTree"]})})}),W=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>G.endpoints.getOverview.select({path:e,database:t}))),V=(0,g.Mz)((e=>e),((e,t,a)=>W(t,a)),((e,t)=>t(e).data)),Y=(0,g.Mz)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,s;return null===(n=V(e,t,a))||void 0===n||null===(s=n.PathDescription)||void 0===s?void 0:s.Children})(e,t,n)],((e,t,a)=>q(t)?null===a||void 0===a?void 0:a.map((({Name:t})=>e+"/"+t)):void 0));function J({paths:e,database:t,autoRefreshInterval:a}){const[n,...s]=e,{currentData:r,isFetching:i,error:o}=G.useGetOverviewQuery({path:n,database:t},{pollingInterval:a}),{currentData:l,isFetching:c,error:d}=G.useGetMultiOverviewQuery(s.length?{paths:s,database:t}:y.hT,{pollingInterval:a});return{loading:i&&void 0===r||c&&void 0===l,error:o||d,mergedDescribe:[r,...null!==l&&void 0!==l?l:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var K=a(29078),Z=a(76086),X=a(90182),ee=a(81288),te=a(22680),ae=a(52531),ne=a(23871),se=a(52905),re=a(90053),ie=a(67028),oe=a(18517),le=a(24555),ce=a(74321),de=a(44508),ue=a(52248),me=a(90565),pe=a(49818),he=a(56839),ve=a(61758),ge=a.n(ve),ye=a(92459),xe=a(58351);const be=(0,c.cn)("heatmap"),fe={width:0,height:0},je=10,Te=e=>{const[t,a]=n.useState(fe),{tablets:s}=e,r=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=r.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),s.map(function(e){return(a,n)=>{const{columnsCount:s}=t,r=n%s*12,i=12*Math.floor(n/s);e.fillStyle=a.color||"grey",e.fillRect(r,i,je,je)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/12),r=Math.ceil(s.length/n);a({width:t,height:12*r,columnsCount:n,rowsCount:r})}}),[]);const o=()=>{let e=r.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=r.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,s=Math.floor(e/12);return n*Math.floor(a/12)+s},u=ge()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const r=e.parentRef.current,i=t-l()+r.scrollLeft,d=a-o()+r.scrollTop,u=c(i,d),m=s[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:be("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:r,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,r=t.clientY-o()+a.scrollTop,i=c(n,r),d=s[i];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,ye.DM)(t);return`https://${[a,xe.P8,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},Se={r:255,g:4,b:0},Ne={r:255,g:219,b:77},Ee={r:59,g:201,b:53},we={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},Ce=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Pe=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),s=(t.g-a.g)/(e-1),r=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-s*o),b:Math.round(t.b-r*o)});return i.map((e=>(({r:e,g:t,b:a})=>`#${Ce(e)}${Ce(t)}${Ce(a)}`)(e)))},Ie=e=>{const t=Math.floor(e/2),a=t+1;return[...Pe(e%2===0?t:t+1,Ee,Ne),...Pe(a,Ne,Se).slice(1)]},De=(e,t)=>{const a=new Set,n=we[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const s=Array.from(a.values()).sort(((e,t)=>e-t));return{min:s[0],max:s[s.length-1]}},Ae=(0,c.cn)("histogram"),_e=e=>{const t=n.useRef(),{data:a={},maxCount:s}=e,{count:r,leftBound:i,rightBound:o,color:l}=a,c=r/s*100;return(0,d.jsx)("div",{ref:t,className:Ae("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:r,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},Re=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:s}=De(a,t),r=Ie(50),i=(s-n)/50,o=r.map(((e,t)=>({color:e,count:0,leftBound:(0,he.ZV)(n+t*i),rightBound:(0,he.ZV)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const s=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),r=Math.floor(s/i),c=(null===(n=o[r])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[r]={...o[r],count:c}}));return(0,d.jsx)("div",{className:Ae(),children:(0,d.jsxs)("div",{className:Ae("chart"),children:[Boolean(s)&&o.map(((t,a)=>(0,d.jsx)(_e,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:Ae("x-min"),children:(0,he.ZV)(n)}),(0,d.jsx)("div",{className:Ae("x-max"),children:(0,he.ZV)(s)}),(0,d.jsx)("div",{className:Ae("y-min"),children:"0"}),(0,d.jsx)("div",{className:Ae("y-max"),children:(0,he.ZV)(l)})]})})},ke=(0,c.cn)("heatmap"),Oe=Ie(500),Me=({path:e,database:t})=>{const a=(0,X.YQ)(),s=n.createRef(),[r]=(0,X.Nt)(),{currentData:i,isFetching:o,error:l}=me.f1.useGetHeatmapTabletsInfoQuery({path:e,database:t},{pollingInterval:r}),c=o&&void 0===i,{tablets:u=[],metrics:m}=i||{},{sort:p,heatmap:h,currentMetric:v}=(0,X.N4)((e=>e.heatmap)),g=(...e)=>{a((0,pe.DK)(...e))},y=()=>{a((0,pe.w7)())},x=e=>{a((0,me.nd)({currentMetric:e[0]}))},b=()=>{a((0,me.nd)({sort:!p}))},f=()=>{a((0,me.nd)({heatmap:!h}))},j=()=>{const{min:e,max:t}=De(v,u),a=u.map((a=>{var n;const s=v&&Number(null===(n=a.metrics)||void 0===n?void 0:n[v]),r=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(s,e,t),i=Oe[r];return{...a,color:i,value:s,formattedValue:(0,he.ZV)(s),currentMetric:v}})),n=p?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:s,className:ke("items"),children:(0,d.jsx)(Te,{tablets:n,parentRef:s,showTooltip:g,hideTooltip:y})})};return c?(0,d.jsx)(ue.a,{}):(()=>{const{min:e,max:t}=De(v,u);let a;return l&&!i||(a=h?j():(0,d.jsx)(Re,{tablets:u,currentMetric:v,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:ke(),children:[(0,d.jsxs)("div",{className:ke("filters"),children:[(0,d.jsx)(le.l,{className:ke("heatmap-select"),value:v?[v]:[],options:m,onUpdate:x,width:200}),(0,d.jsx)("div",{className:ke("sort-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:b,checked:p,children:"Sort"})}),(0,d.jsx)("div",{className:ke("histogram-checkbox"),children:(0,d.jsx)(ce.S,{onUpdate:f,checked:h,children:"Heatmap"})}),(0,d.jsxs)("div",{className:ke("limits"),children:[(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(e)?(0,he.ZV)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:Number.isInteger(t)?(0,he.ZV)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:ke("limits-block"),children:[(0,d.jsx)("div",{className:ke("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:ke("limits-value"),children:(0,he.ZV)(u.length)})]})]})]}),l?(0,d.jsx)(de.o,{error:l}):null,a]})})()};var Le=a(7117),qe=a(59109),ze=a(17594),Fe=a(89073);const $e=H.F.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.getOperationList(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.cancelOperation(e,{signal:t})}}catch(a){return{error:a}}}}),forgetOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.forgetOperation(e,{signal:t})}}catch(a){return{error:a}}}})}),overrideExisting:"throw"});var Ue=a(28539),Qe=a(95963),Be=a(48372);const He=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export_s3":"Export/S3","kind_export_yt":"Export/YT","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),Ge=(0,Be.g4)("ydb-operations",{en:He}),We="id",Ve="status",Ye="created_by",Je="create_time",Ke="end_time",Ze="duration",Xe={[We]:Ge("column_operationId"),[Ve]:Ge("column_status"),[Ye]:Ge("column_createdBy"),[Je]:Ge("column_createTime"),[Ke]:Ge("column_endTime"),[Ze]:Ge("column_duration")},et=[{value:"export/s3",content:Ge("kind_export_s3")},{value:"export/yt",content:Ge("kind_export_yt")},{value:"ss/backgrounds",content:Ge("kind_ssBackgrounds")},{value:"buildindex",content:Ge("kind_buildIndex")}],tt=(0,c.cn)("operations");function at({kind:e,searchValue:t,entitiesCountCurrent:a,entitiesCountTotal:s,entitiesLoading:r,handleKindChange:i,handleSearchChange:o}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Qe.v,{value:t,onChange:o,placeholder:Ge("pleaceholder_search"),className:tt("search")}),(0,d.jsx)(le.l,{value:[e],width:150,options:et,onUpdate:e=>i(e[0])}),(0,d.jsx)(Ue.T,{label:Ge("label_operations"),loading:r,total:s,current:a})]})}var nt=a(14750),st=a(58272),rt=a(45345),it=a(98089),ot=a(87184),lt=a(18650),ct=a(99991),dt=a(22983),ut=a(71661);let mt=function(e){return e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR",e}({});var pt=a(59625);const ht=function({name:e,title:t,type:a,content:n,autoHiding:s,className:r}){return pt.X.add({name:null!==e&&void 0!==e?e:"Request succeeded",title:null!==t&&void 0!==t?t:"Request succeeded",theme:"error"===a?"danger":"success",content:n,isClosable:!0,autoHiding:null!==s&&void 0!==s?s:"success"===a&&5e3,className:r})};var vt=a(73891);function gt({database:e,refreshTable:t}){return[{name:We,header:Xe[We],width:340,render:({row:e})=>e.id?(0,d.jsx)(ut.s,{placement:["top","bottom"],content:e.id,children:e.id}):Z.Pd},{name:Ve,header:Xe[Ve],render:({row:e})=>e.status?(0,d.jsx)(it.E,{color:e.status===mt.SUCCESS?"positive":"danger",children:e.status}):Z.Pd},{name:Ye,header:Xe[Ye],render:({row:e})=>e.created_by?e.created_by:Z.Pd},{name:Je,header:Xe[Je],render:({row:e})=>e.create_time?(0,he.r6)((0,vt.ee)(e.create_time)):Z.Pd,sortAccessor:e=>e.create_time?(0,vt.ee)(e.create_time):0},{name:Ke,header:Xe[Ke],render:({row:e})=>e.end_time?(0,he.r6)((0,vt.ee)(e.end_time)):Z.Pd,sortAccessor:e=>e.end_time?(0,vt.ee)(e.end_time):Number.MAX_SAFE_INTEGER},{name:Ze,header:Xe[Ze],render:({row:e})=>{let t=0;if(!e.create_time)return Z.Pd;const a=(0,vt.ee)(e.create_time);if(e.end_time){t=(0,vt.ee)(e.end_time)-a}else t=Date.now()-a;const n=t>Z.Jg*Z.KF?(0,nt.p0)(t).format("hh:mm:ss"):(0,nt.p0)(t).format("mm:ss");return e.end_time?n:Ge("label_duration-ongoing",{value:n})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,vt.ee)(e.create_time);if(e.end_time){return(0,vt.ee)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:a})=>(0,d.jsx)(yt,{operation:a,database:e,refreshTable:t})}]}function yt({operation:e,database:t,refreshTable:a}){const[n,{isLoading:s}]=$e.useCancelOperationMutation(),[r,{isLoading:i}]=$e.useForgetOperationMutation(),o=e.id;return o?(0,d.jsxs)(ot.s,{gap:"2",children:[(0,d.jsx)(lt.m,{title:Ge("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_forget"),dialogText:Ge("text_forget"),onConfirmAction:()=>r({id:o,database:t}).unwrap().then((()=>{ht({name:"Forgotten",title:Ge("text_forgotten",{id:o}),type:"success"}),a()})),buttonDisabled:s,children:(0,d.jsx)(ct.I,{data:st.A})})})}),(0,d.jsx)(lt.m,{title:Ge("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(dt.B,{buttonView:"outlined",dialogHeader:Ge("header_cancel"),dialogText:Ge("text_cancel"),onConfirmAction:()=>n({id:o,database:t}).unwrap().then((()=>{ht({name:"Cancelled",title:Ge("text_cancelled",{id:o}),type:"success"}),a()})),buttonDisabled:i,children:(0,d.jsx)(ct.I,{data:rt.A})})})})]}):null}var xt=a(370);const bt=xt.z.enum(["ss/backgrounds","export/s3","export/yt","buildindex"]).catch("buildindex");function ft({database:e}){var t;const[a]=(0,X.Nt)(),{kind:s,searchValue:i,pageSize:o,pageToken:l,handleKindChange:c,handleSearchChange:u}=function(){var e,t,a;const[n,s]=(0,r.useQueryParams)({kind:r.StringParam,search:r.StringParam,pageSize:r.NumberParam,pageToken:r.StringParam});return{kind:bt.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{s({kind:e},"replaceIn")},handleSearchChange:e=>{s({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{s({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{s({pageToken:e},"replaceIn")}}}(),{data:m,isLoading:p,error:h,refetch:v}=$e.useGetOperationListQuery({database:e,kind:s,page_size:o,page_token:l},{pollingInterval:a}),g=n.useMemo((()=>null!==m&&void 0!==m&&m.operations?m.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(i.toLowerCase())})):[]),[null===m||void 0===m?void 0:m.operations,i]);return(0,ee.Pq)(h)?(0,d.jsx)(qe.O,{position:"left"}):(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(at,{kind:s,searchValue:i,entitiesCountCurrent:g.length,entitiesCountTotal:null===m||void 0===m||null===(t=m.operations)||void 0===t?void 0:t.length,entitiesLoading:p,handleKindChange:c,handleSearchChange:u})}),h?(0,d.jsx)(de.o,{error:h}):null,(0,d.jsx)(Fe.L.Table,{loading:p,className:tt("table"),children:m?(0,d.jsx)(ze.l,{columns:gt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:Ge("title_empty")}):null})]})}var jt=a(99936),Tt=a(71635),St=a(19228),Nt=a(11822);function Et(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const wt=H.F.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async({database:e,path:t,timeout:a})=>{try{var n,s;const r=await window.api.viewer.sendQuery({query:Et(t),database:e,action:"execute-scan",timeout:a},{withRetries:!0});return(0,Nt.We)(r)?{error:r}:{data:(null===r||void 0===r||null===(n=r.result)||void 0===n||null===(s=n[0])||void 0===s?void 0:s.columns)||[]}}catch(r){return{error:r}}},providesTags:["All","SchemaTree"]})}),overrideExisting:"throw"});var Ct=a(47665),Pt=a(24543);const It=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),Dt=(0,Be.g4)("ydb-schema-viewer",{en:It}),At=(0,c.cn)("schema-viewer");const _t=({tableData:e,extended:t,type:a})=>{const n="primary"===a?function(e){return e.filter((e=>Boolean(void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name))).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(e):function(e){return e.filter((e=>Boolean(void 0!==e.partitioningColumnIndex&&-1!==e.partitioningColumnIndex&&e.name))).sort(((e,t)=>e.partitioningColumnIndex-t.partitioningColumnIndex)).map((e=>e.name))}(e),s=t?3:n.length,r=n.slice(0,s),i=n.slice(s);return n.length>0?(0,d.jsxs)("div",{className:At("keys",{summary:!t,type:a}),children:[(0,d.jsx)("div",{className:At("keys-header"),children:Dt("primary"===a?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:At("keys-values"),children:[" "+r.join(", "),i.length?(0,d.jsx)(Pt.u,{className:At("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:At("popup-content"),children:i.map((e=>(0,d.jsx)("div",{className:At("popup-item"),children:e},e)))}),children:(0,d.jsx)(Ct.J,{className:At("keys-label"),children:`+${i.length}`})}):null]})]}):null};var Rt=a(4557);function kt({data:e,name:t,header:a,sortable:n}){const s="string"===typeof a?a.length:t.length;let r=n?s+2:s;if(e)for(const i of e){let e=0;if(i[t]&&(e=String(i[t]).length),r=Math.max(r,e),10*r+20>=600)return 600}return 10*r+20}var Ot=a(34671);const Mt="name",Lt="type",qt="notNull",zt="autoIncrement",Ft="defaultValue",$t="familyName",Ut="prefferedPoolKind",Qt="columnCodec",Bt={name:"id",get header(){return Dt("column-title.id")},width:60,align:Rt.Ay.RIGHT,render:({row:e})=>{const t=(0,d.jsx)(ct.I,{className:At("key-icon"),size:12,data:Ot.A});return(0,d.jsxs)("span",{className:At("id-wrapper"),children:[e.id,void 0===e.keyColumnIndex||-1===e.keyColumnIndex?null:t]})}},Ht={name:Mt,get header(){return Dt("column-title.name")},width:120,render:({row:e})=>e.name},Gt={name:Lt,get header(){return Dt("column-title.type")},width:100,render:({row:e})=>e.type},Wt={name:qt,get header(){return Dt("column-title.notNull")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},Vt={name:zt,get header(){return Dt("column-title.autoIncrement")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Yt={name:Ft,get header(){return Dt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Jt={name:$t,get header(){return Dt("column-title.family")},width:100,render:({row:e})=>e.familyName},Kt={name:Ut,get header(){return Dt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Zt={name:Qt,get header(){return Dt("column-title.compression")},width:130,render:({row:e})=>e.columnCodec};function Xt(e,t){if(!t)return e;const a=t.slice(0,100);return e.map((e=>({...e,width:kt({data:a,name:e.name,header:"string"===typeof e.header?e.header:void 0,sortable:e.sortable||void 0===e.sortable})})))}function ea(e={}){const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnNames:n}=e,s=null===a||void 0===a?void 0:a.map((e=>{var a,s,r,i;const{Id:o,Name:l,NotNull:c,Type:d,Family:u,DefaultFromSequence:m,DefaultFromLiteral:p}=e,h=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===l)))&&void 0!==a?a:-1,v=u?t[u].Name:void 0,g=u?null===(s=t[u].StorageConfig)||void 0===s||null===(r=s.Data)||void 0===r?void 0:r.PreferredPoolKind:void 0,y=u?function(e){if(e)return e===f.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[u].ColumnCodec):void 0;return{id:o,name:l,keyColumnIndex:h,type:d,notNull:c,autoIncrement:Boolean(m),defaultValue:null!==(i=Object.values((null===p||void 0===p?void 0:p.value)||{})[0])&&void 0!==i?i:"-",familyName:v,prefferedPoolKind:g,columnCodec:y}}));return null!==s&&void 0!==s?s:[]}function ta(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:s}=(null===t||void 0===t?void 0:t.PathDescription)||{};return Q(e)?ea(a):k(e)?function(e={}){const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:s}=t,{HashSharding:r={}}=a,{Columns:i=[]}=r,o=null===n||void 0===n?void 0:n.map((e=>{var t,a;const{Id:n,Name:r,Type:o,NotNull:l}=e,c=null!==(t=null===s||void 0===s?void 0:s.findIndex((e=>e===r)))&&void 0!==t?t:-1,d=null!==(a=null===i||void 0===i?void 0:i.findIndex((e=>e===r)))&&void 0!==a?a:-1;return{id:n,name:r,keyColumnIndex:c,partitioningColumnIndex:d,type:o,notNull:l}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):U(e)?function(e={}){const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:s}=e;return{id:t,name:a,type:n,notNull:s}})))||[]}(s):[]}function aa(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}const na=({type:e,path:t,tenantName:a,extended:s=!1})=>{const[r]=(0,X.Nt)(),i=s?r:void 0,{currentData:o,isFetching:l}=G.useGetOverviewQuery({path:t,database:a},{pollingInterval:i,skip:B(e)}),{currentData:c,isFetching:u}=wt.useGetViewSchemaQuery({path:t,database:a},{pollingInterval:i,skip:!B(e)}),m=u&&void 0===c||l&&void 0===o,p=n.useMemo((()=>B(e)?aa(c):ta(e,o)),[o,e,c]),h=n.useMemo((()=>p.some((e=>e.autoIncrement))),[p]),v=n.useMemo((()=>p.some((e=>e.defaultValue))),[p]),g=n.useMemo((()=>B(e)?Xt([Ht,Gt],p):U(e)||k(e)?function(e){return Xt([Bt,Ht,Gt,Wt],e)}(p):Q(e)?function(e,t,a,n){const s=[Bt,Ht,Gt,Wt];return n&&s.push(Yt),t&&s.push(Jt,Kt,Zt),a&&s.push(Vt),Xt(s,e)}(p,s,h,v):[]),[e,s,h,v,p]);return m?(0,d.jsx)(St.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:At("keys-wrapper"),children:[(0,d.jsx)(_t,{tableData:p,extended:s,type:"primary"}),(0,d.jsx)(_t,{tableData:p,extended:s,type:"partitioning"})]}),(0,d.jsx)("div",{className:At(),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:p,columns:g,settings:Z.N3})})]})};var sa=a(54309),ra=a(96589),ia=a(84375),oa=a(85589);const la=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),ca=(0,Be.g4)("ydb-diagnostics-configs",{en:la}),da=(0,c.cn)("ydb-diagnostics-configs"),ua=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(ia.A,{content:ca("flag-touched"),className:da("icon-touched"),placement:"left",children:(0,d.jsx)(ct.I,{data:ra.A})}):null,width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return ca("td-feature-flag")},render:({row:e})=>e.Current?(0,d.jsx)("b",{children:e.Name}):e.Name,width:400,sortable:!0,sortAccessor:({Current:e,Name:t})=>Number(!e)+t.toLowerCase()},{name:"Default",get header(){return ca("td-default")},render:({row:e})=>{switch(e.Default){case!0:return ca("enabled");case!1:return ca("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return ca("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(oa.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ma=({database:e})=>{const[t,a]=(0,r.useQueryParam)("search",r.StringParam),[n]=(0,X.Nt)(),{currentData:s=[],isLoading:i,error:o}=oe.z6.useGetClusterConfigQuery({database:e},{pollingInterval:n}),l=null===t||void 0===t?void 0:t.toLocaleLowerCase(),c=l?s.filter((e=>e.Name.toLocaleLowerCase().includes(l))):s;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:ca("search-placeholder")})}),(0,d.jsx)(Fe.L.Table,{loading:i,children:o?(0,d.jsx)(de.o,{error:o}):(0,d.jsx)(ze.l,{emptyDataMessage:ca(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:ua,data:c,settings:Z.N3})})]})};var pa=a(23536),ha=a.n(pa),va=a(46549);const ga=H.F.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),ya=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>ga.endpoints.getTopic.select({path:e,database:t}))),xa=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),ba=(0,g.Mz)((e=>e),((e,t,a)=>ya(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),fa=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),ja=(0,g.Mz)(xa,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:s}=e||{};return{storeSize:t,partitionsIdleTime:(0,vt.MC)(a),partitionsWriteLag:(0,vt.i6)(n),writeSpeed:(0,va.ey)(s)}})),Ta=(0,g.Mz)(ba,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:s,max_write_time_lag:r,bytes_read:i}=a||{};return{name:t,readSpeed:(0,va.ey)(i),writeLag:(0,vt.i6)(r),readLag:(0,vt.i6)(s),readIdleTime:(0,vt.MC)(n)}})))),Sa=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),Na=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),Ea=(0,Be.g4)("ydb-components-speed-multimeter",{ru:Na,en:Sa}),wa=(0,c.cn)("speed-multimeter"),Ca=({data:e,speedSize:t="kb",withValue:a=!0,withPopover:s=!0})=>{const{perMinute:r=0,perHour:i=0,perDay:o=0}=e||{},l=[r,i,o],c=e=>(0,va.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(r),label:Ea("perMinute")},{value:c(i),label:Ea("perHour")},{value:c(o),label:Ea("perDay")}],[m,p]=n.useState(r),[h,v]=n.useState(a?0:void 0),[g,y]=n.useState(),x=(e,t)=>{p(e[t]),v(t),y(t)},b=e=>h===e,f=e=>g===e;return(0,d.jsx)("div",{className:wa(),children:(0,d.jsxs)("div",{className:wa("content"),children:[a&&(0,d.jsx)("div",{className:wa("displayed-value"),children:c(m)}),(0,d.jsx)(ia.A,{content:(0,d.jsxs)("div",{className:wa("popover-content"),children:[(0,d.jsx)("span",{className:wa("popover-header"),children:Ea("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:wa("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:wa("popover-container"),placement:"bottom",disabled:!s,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:wa("bars"),onMouseLeave:()=>{p(r),v(a?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...l,0)||1;return l.map(((t,a)=>(0,d.jsx)("div",{className:wa("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:wa("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Pa=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ia=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},s=[{label:"Write speed",value:(0,d.jsx)(Ca,{data:t})},{label:"Write lag",value:(0,he.lr)(a||0)},{label:"Write idle time",value:(0,he.lr)(n||0)}];return(0,d.jsx)("div",{className:Pa("wrapper"),children:s.map(((e,t)=>(0,d.jsxs)("div",{className:Pa("item"),children:[(0,d.jsx)("div",{className:Pa("label"),children:e.label}),(0,d.jsx)("div",{className:Pa("value"),children:e.value})]},t)))})};var Da=a(74309),Aa=a.n(Da),_a=a(44294),Ra=a(6170);const ka=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:s,buttonProps:r})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(Ra.B,{className:a,buttonProps:r,content:t,contentClassName:s})]}),Oa=70,Ma=54,La=268,qa="#ADE8F5",za="#f5be9d",Fa=({width:e,height:t,transform:a})=>(0,d.jsx)("path",{d:`M-${e/2} 0 c0 -${t}, ${e} -${t}, ${e} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:a}),$a=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),Ua=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:za,children:(0,d.jsx)($a,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(Fa,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:za}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Qa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:qa,children:(0,d.jsx)($a,{width:La})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Fa,{width:Oa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(Fa,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:qa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Ba=({id:e,fill:t})=>(0,d.jsx)("pattern",{id:e,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:t})}),Ha=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:qa}),(0,d.jsx)(Ba,{id:"latest-write",fill:za})]}),(0,d.jsx)(Ua,{})]}),Ga=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:La,height:Ma,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Ba,{id:"latest-read",fill:qa}),(0,d.jsx)(Ba,{id:"latest-write",fill:za})]}),(0,d.jsx)(Qa,{})]}),Wa=(0,c.cn)("ydb-lag-popover-content"),Va=({text:e,type:t})=>(0,d.jsxs)("div",{className:Wa({type:t}),children:[(0,d.jsx)("div",{className:Wa("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(Ga,{}):(0,d.jsx)(Ha,{})})]}),Ya=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Ja=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Ka=(0,Be.g4)("ydb-diagnostics-consumers",{ru:Ja,en:Ya}),Za="consumer",Xa="readSpeed",en="readLags",tn={[Za]:"Consumer",[Xa]:"Read speed",[en]:"Read lags, duration"},an="writeLag",nn="readLag",sn="readIdleTime",rn={[an]:"write lag",[nn]:"read lag",[sn]:"read idle time"},on=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),ln=()=>(0,d.jsx)(ka,{className:on("lags"),text:tn[en],popoverContent:(0,d.jsx)(Va,{text:Ka("lagsPopover.readLags"),type:"read"})}),cn=(0,c.cn)("ydb-diagnostics-consumers-columns"),dn=[{name:Za,header:tn[Za],align:Rt.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Aa().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(_a.E,{to:(0,sa.YL)({...t,[sa.vh.diagnosticsTab]:ae.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:Xa,header:tn[Xa],align:Rt.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:en,header:(0,d.jsx)(ln,{}),className:cn("lags-header"),sub:[{name:an,header:rn[an],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.writeLag)},{name:nn,header:rn[nn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readLag)},{name:sn,header:rn[sn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readIdleTime)}]}],un=(0,c.cn)("ydb-diagnostics-consumers"),mn=({path:e,database:t,type:a})=>{const s=(e=>e===x.EPathTypeCdcStream)(a),[r,i]=n.useState(""),[o]=(0,X.Nt)(),{currentData:l,isFetching:c,error:u}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:o}),m=c&&void 0===l,p=(0,X.N4)((a=>Ta(a,e,t))),h=(0,X.N4)((a=>ja(a,e,t))),v=n.useMemo((()=>{if(!p)return[];const e=new RegExp(ha()(r),"i");return p.filter((t=>e.test(String(t.name))))}),[p,r]);return m?(0,d.jsx)(ue.a,{size:"m"}):u||p&&p.length?(0,d.jsxs)("div",{className:un(),children:[(0,d.jsxs)("div",{className:un("controls"),children:[(0,d.jsx)(Qe.v,{onChange:e=>{i(e)},placeholder:Ka("controls.search"),className:un("search"),value:r}),h&&(0,d.jsx)(Ia,{data:h})]}),u?(0,d.jsx)(de.o,{error:u}):null,p?(0,d.jsx)("div",{className:un("table-wrapper"),children:(0,d.jsx)("div",{className:un("table-content"),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:un("table"),data:v,columns:dn,settings:Z.N3,emptyDataMessage:Ka("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Ka("noConsumersMessage."+(s?"stream":"topic"))})};var pn=a(96873),hn=a(97434),vn=a(84476),gn=a(39439),yn=a.n(gn);function xn({className:e,text:t,start:a,length:s,hasComa:r}){const i=r?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;if(s&&"number"===typeof a&&a>=0&&a<t.length){const r=t.substring(0,a),o=t.substring(a,a+s),l=t.substring(a+s);return(0,d.jsxs)(n.Fragment,{children:[r&&(0,d.jsx)("span",{className:e(),children:r}),(0,d.jsx)("span",{className:e({highlighted:!0}),children:o}),l&&(0,d.jsx)("span",{className:e(),children:l}),i]})}return(0,d.jsxs)("span",{className:e(),children:[t,i]})}function bn({className:e,text:t,starts:a,length:s,hasComa:r}){if(!s||!a.length){const a=r?(0,d.jsx)(n.Fragment,{children:",\xa0"}):null;return(0,d.jsxs)("span",{className:e(),children:[t,a]})}const i=[];for(let n=0,o=0;n<a.length&&o<t.length;++n){const l=n===a.length-1,c=a[n]+(l?t.length:s),u=t.substring(o,c);u&&i.push((0,d.jsx)(xn,{className:e,text:u,start:a[n]-o,length:s,hasComa:l&&r})),o=c}return(0,d.jsx)(n.Fragment,{children:i})}const fn=(0,c.cn)("ydb-json-viewer");function jn(e){const{collapsed:t,onToggle:a,path:n}=e;return(0,d.jsx)("span",{title:n,className:fn("collapsed"),children:(0,d.jsx)(vn.$,{onClick:a,view:"flat-secondary",size:"xs",children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)("span",{className:"unipika",children:t?"[+]":"[-]"})})})})}const Tn=JSON.parse('{"action_collapse-all":"Collapse all","action_expand-all":"Expand all","action_next":"Next","action_back":"Back","description_search":"Search...","description_matched-rows":"Matched rows","description_full-value":"Full value","context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled","context_items-count":[" {{count}} item "," {{count}} items "," {{count}} items "," {{count}} items "]}'),Sn=(0,Be.g4)("ydb-json-viewer",{en:Tn});var Nn=a(61674);const En=a.n(Nn)()({}),wn={asHTML:!0,format:"json",compact:!1,escapeWhitespace:!0,showDecoded:!0,binaryAsHex:!1,indent:2};function Cn(e){return En.converters.yson(e,wn)}function Pn(e){return n.useMemo((()=>Cn(e)),[e])}function In(e){return t=>fn("filtered",t,e)}var Dn=a(70983);function An(e){const{row:{level:t,open:a,close:s,key:r,value:i,hasDelimiter:o,path:l,collapsed:c,depth:u},settings:m,onToggleCollapse:p,matched:h,filter:v,showFullText:g,index:y}=e,x=n.useCallback((()=>{l&&p(l)}),[l,p]),b=n.useCallback((()=>{g(y)}),[g,y]);return(0,d.jsxs)("div",{className:fn("cell","unipika"),children:[zn(t),l&&(0,d.jsx)(jn,{collapsed:c,path:l,onToggle:x}),(0,d.jsx)(_n,{text:r,settings:m,matched:null===h||void 0===h?void 0:h.keyMatch,filter:v}),a&&(0,d.jsx)(Ln,{type:a,settings:m}),void 0!==u&&(0,d.jsx)("span",{className:"unipika",children:Sn("context_items-count",{count:u})}),void 0!==i&&(0,d.jsx)(Rn,{text:i,settings:m,matched:null===h||void 0===h?void 0:h.valueMatch,filter:v,showFullText:b}),c&&void 0===u&&(0,d.jsx)("span",{className:"unipika",children:"..."}),s&&(0,d.jsx)(Ln,{type:s,settings:m,close:!0}),o&&(0,d.jsx)(Mn,{text:","})]})}function _n(e){const t=function(e){if(null===e||void 0===e||!e.text)return null;return On(e,fn("key"))}(e);return t?(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Mn,{text:": "})]}):null}function Rn(e){var t;return(0,d.jsx)(n.Fragment,{children:kn(e,fn("value",{type:null===(t=e.text)||void 0===t?void 0:t.$type}))})}function kn(e,t){var a;return"string"===(null===(a=e.text)||void 0===a?void 0:a.$type)?On(e,t,100):function(e,t){const{text:a,filter:n,settings:s,matched:r}=e;let i=null;if(r&&n){const e=En.format(a,{...s,asHTML:!1});i=(0,d.jsx)(bn,{className:In(t),text:e,starts:r,length:null===n||void 0===n?void 0:n.length})}else i=a?function(e,t=wn){const a=En.formatValue(e,{...wn,...t},0);return(0,d.jsx)("span",{className:"unipika",dangerouslySetInnerHTML:{__html:a}})}(a,s):void 0;return i||null}(e,fn("value"))}function On(e,t,a=1/0){const{text:n,settings:s=wn,matched:r=[],filter:i,showFullText:o}=e,l=En.format(n,{...s,asHTML:!1}),c=l.length,u=l.substring(1,Math.min(c-1,a+1)),m=u.length<l.length-2;let p=!1;if(m)for(let d=r.length-1;d>=0;--d)if(u.length<r[d]+((null===i||void 0===i?void 0:i.length)||0)){p=!0;break}return(0,d.jsxs)("span",{children:[(0,d.jsx)(bn,{className:In(t),text:u,starts:r,length:null===i||void 0===i?void 0:i.length}),m&&(0,d.jsxs)("span",{className:fn("filtered",{highlighted:p,clickable:!0}),onClick:o,children:["\u2026",(0,d.jsx)(ct.I,{data:Dn.A})]})]})}function Mn({text:e}){return(0,d.jsx)("span",{children:e})}function Ln(e){const{type:t,close:a}=e;switch(t){case"array":return(0,d.jsx)(Mn,{text:a?"]":"["});case"object":return(0,d.jsx)(Mn,{text:a?"}":"{"})}}const qn={};function zn(e){let t=qn[e];if(!t){const a=yn()(Array(3*e)," ").join("");t=qn[e]=(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})}return t}var Fn=a(28664),$n=a(59136),Un=a(26195),Qn=a(94630);const Bn=n.forwardRef((function({matchIndex:e,matchedRows:t,value:a,onUpdate:s,onKeyDown:r,onNextMatch:i,onPrevMatch:o,caseSensitive:l,onUpdateCaseSensitive:c},u){const m=t.length,p=m?1+e%m:0;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Fn.k,{ref:u,className:fn("filter"),hasClear:!0,size:"m",type:"text",value:a,placeholder:Sn("description_search"),onUpdate:s,autoFocus:!1,onKeyDown:r,endContent:(0,d.jsx)(lt.m,{title:Sn(l?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:c,selected:l,children:(0,d.jsx)(ct.I,{data:Qn.A})})})}),(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Sn("action_next"),onClick:i,disabled:!m,children:(0,d.jsx)(ct.I,{data:$n.A})}),(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Sn("action_back"),onClick:o,disabled:!m,children:(0,d.jsx)(ct.I,{data:Un.A})})]}),(0,d.jsxs)("span",{className:fn("match-counter"),title:Sn("description_matched-rows"),children:[p," / ",m||0]})]})}));var Hn=a(2198);function Gn({onClose:e,text:t,starts:a,length:n}){return(0,d.jsxs)(Hn.l,{open:!0,onClose:e,children:[(0,d.jsx)(Hn.l.Header,{caption:Sn("description_full-value")}),(0,d.jsx)(Hn.l.Divider,{}),(0,d.jsx)(Hn.l.Body,{children:(0,d.jsx)(ot.s,{direction:"column",gap:2,width:"70vw",maxHeight:"80vh",children:(0,d.jsx)("div",{className:fn("full-value"),children:(0,d.jsx)(bn,{className:In(),starts:a,text:t,length:n})})})})]})}function Wn(e,t){const a={dst:[],levels:[],path:[],collapsedState:(null===t||void 0===t?void 0:t.collapsedState)||{},matchedPath:"",collapsedPath:""};Vn(e,0,a);const n=function(e,t,a){if(!t)return{};const n=Object.assign({},null===a||void 0===a?void 0:a.settings,{asHTML:!1}),s={};for(let r=0;r<e.length;++r){const{key:i,value:o}=e[r],l=is(i,t,n,null===a||void 0===a?void 0:a.caseSensitive),c=is(o,t,n,null===a||void 0===a?void 0:a.caseSensitive);(l||c)&&(s[r]=Object.assign({},l&&{keyMatch:l},c&&{valueMatch:c}))}return s}(a.dst,null===t||void 0===t?void 0:t.filter,{settings:null===t||void 0===t?void 0:t.settings,caseSensitive:null===t||void 0===t?void 0:t.caseSensitive});return{data:a.dst,searchIndex:n}}function Vn(e,t,a){return function(e,t=0,a){const n=a.dst.length,{type:s}=a.levels[a.levels.length-1]||{},r=function(e){return"object"===e}(s)?n-1:a.dst.length,i=es(a),o=function(e){return"map"===e.$type||"list"===e.$type}(e);let l=0;if(i)Yn(e,t,a);else{l=function(e,t,a,n){let s=0;const r=e&&es(n);if(r)Yn(t,a,n);else switch(t.$type){case"map":!function(e,t,a){const n=ts("object",t,a,e.$value.length);(function(e,t,a,n){for(let s=0;s<e.length;++s){const[r,i]=e[s],o={key:r,level:t};a.dst.push(o),Zn(r.$value,a),Vn(i,t,a),++n.currentIndex,Xn(a)}})(e.$value,t+1,a,n),as("object",t,a)}(t,a,n),s=t.$value.length;break;case"list":!function(e,t,a){const{$value:n}=e,s=ts("array",t,a,n.length);for(let r=0;r<n.length;++r)Zn(String(r),a),Vn(n[r],t+1,a),++s.currentIndex,Xn(a);as("array",t,a)}(t,a,n),s=t.$value.length;break;case"string":ss(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n);break;default:ss(function(e,t){const{$attributes:a,...n}=e;return{level:t,value:n}}(t,a),n)}return s}(o,e,t,a)}o&&l&&(a.dst[r].depth=l,Kn(a,r))}(e,t,a)}function Yn(e,t,a){switch(e.$type){case"map":Jn("object",t,a,e.$value.length);break;case"list":Jn("array",t,a,e.$value.length)}}function Jn(e,t,a,n){ts(e,t,a,0);const s=a.dst[a.dst.length-1];s.depth=n,s.collapsed=!0,Kn(a,a.dst.length-1),as(e,t,a)}function Kn(e,t){e.collapsedPath.length&&(e.dst[t].path=e.collapsedPath)}function Zn(e,t){t.path.push(e),t.collapsedPath=t.collapsedPath.length?t.collapsedPath+"/"+e:e}function Xn(e){const t=e.path.pop();void 0!==t&&(e.collapsedPath=e.collapsedPath.substring(0,e.collapsedPath.length-t.length-1))}function es(e){return Boolean(e.collapsedState[e.collapsedPath])}function ts(e,t,a,n){const{dst:s}=a,r=rs(s);null!==r&&void 0!==r&&r.key&&r.level===t?r.open=e:s.push({level:t,open:e});const i={type:e,length:n,currentIndex:0};return a.levels.push(i),i}function as(e,t,a){const n=a.levels.pop();if(n.type!==e)throw new Error(`The unipika tree cannot be converted to array, there is some mess with levels \n${JSON.stringify({type:e,level:t,info:n,ctx:a},null,2)}`);const s=a.dst[a.dst.length-1],r=s.level===t&&s.open===e,i=r?s:{level:t,close:e};ns(a)&&(i.hasDelimiter=!0),r?i.close=e:a.dst.push(i)}function ns(e){const{length:t,currentIndex:a}=e.levels[e.levels.length-1]||{};return void 0!==t&&a<t-1}function ss(e,t){const a=rs(t.dst);a&&!a.open?Object.assign(a,e,{level:a.level}):t.dst.push(e);const n=t.dst[t.dst.length-1];ns(t)&&(n.hasDelimiter=!0)}function rs(e){const t=e[e.length-1];return null===t||void 0===t||!t.key||null!==t&&void 0!==t&&t.close?null:t}function is(e,t,a,n){if(!e)return;const s=[];let r=En.formatValue(e,a);if(!r)return;r=String(r),"string"===e.$type&&(r=r.substring(1,r.length-1));let i=0,o=t;for(n||(r=r.toLowerCase(),o=t.toLowerCase());i>=0&&i<r.length;){const e=r.indexOf(o,i);if(-1===e)break;i=e+o.length,s.push(e)}return s.length?s:void 0}var os=a(85283),ls=a(24853);const cs={displayIndices:!1,dynamicRender:!0,sortable:!1,dynamicRenderMinSize:100};function ds(e){const{data:t}=Wn(e);return t.reduce(((e,{path:t})=>(t&&(e[t]=!0),e)),{})}function us(e,t,a,n){const s=Wn(e,{collapsedState:t,filter:a,caseSensitive:n});return Object.assign({},{flattenResult:s,matchedRows:Object.keys(s.searchIndex).map(Number)})}function ms({tableSettings:e,value:t,unipikaSettings:a,search:s=!0,extraTools:r,collapsedInitially:i}){const[o,l]=(0,X.iK)(Z.iD,!1),[c,u]=n.useState((()=>i?ds(t):{})),[m,p]=n.useState(""),[h,v]=n.useState((()=>us(t,c,m,o))),[g,y]=n.useState(-1),[x,b]=n.useState(),f=n.useRef(null),j=n.useRef(null),T=n.useMemo((()=>({...cs,dynamicInnerRef:f,...e})),[e]),S=({row:e,index:t})=>{const{flattenResult:{searchIndex:n}}=h;return(0,d.jsx)(An,{matched:n[t],row:e,settings:a,onToggleCollapse:N,filter:m,showFullText:R,index:t})},N=e=>{const t={...c};t[e]?delete t[e]:t[e]=!0,E({collapsedState:t})},E=(e,a)=>{const{collapsedState:n,matchIndex:s,filter:r,caseSensitive:i}=e;void 0!==n&&u(n),void 0!==s&&y(s),void 0!==r&&p(r);v(us(t,null!==n&&void 0!==n?n:c,null!==r&&void 0!==r?r:m,null!==i&&void 0!==i?i:o)),null===a||void 0===a||a()},w=()=>{E({collapsedState:{}},(()=>{I(null,0)}))},C=()=>{const e=ds(t);E({collapsedState:e})},P=e=>{E({filter:e,matchIndex:0},(()=>{I(null,0)}))},I=(e,t=1)=>{var a,n;const{matchedRows:s}=h;if(!s.length)return;let r=(g+t)%s.length;r<0&&(r=s.length+r),r!==g&&y(r),null===(a=f.current)||void 0===a||a.scrollTo(s[r]-6),null===(n=j.current)||void 0===n||n.focus()},D=()=>{I(null,-1)},A=e=>{"Enter"===e.key&&(e.shiftKey||e.ctrlKey?D():I(null))},_=()=>{const e=!o;l(e),E({caseSensitive:e})},R=e=>{const{flattenResult:{searchIndex:t,data:a}}=h;b({value:a[e].value,searchInfo:t[e]})},k=()=>{b(void 0)};return(0,d.jsxs)("div",{className:fn(),children:[(0,d.jsxs)(ot.s,{gap:2,wrap:"nowrap",className:fn("toolbar"),children:[(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(lt.m,{title:Sn("action_expand-all"),children:(0,d.jsx)(vn.$,{onClick:w,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:os.A})})}),(0,d.jsx)(lt.m,{title:Sn("action_collapse-all"),children:(0,d.jsx)(vn.$,{onClick:C,view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:ls.A})})})]}),s&&(0,d.jsx)(Bn,{onUpdate:P,matchIndex:g,matchedRows:h.matchedRows,value:m,ref:j,onKeyDown:A,onNextMatch:I,onPrevMatch:D,caseSensitive:o,onUpdateCaseSensitive:_}),(0,d.jsx)("span",{className:fn("extra-tools"),children:r})]}),(()=>{const e=[{name:"content",render:S,header:null}],{flattenResult:{data:t}}=h;return(0,d.jsx)("div",{className:fn("content"),children:(0,d.jsx)(Rt.Ay,{columns:e,data:t,theme:"yson",settings:T,rowClassName:()=>fn("row")})})})(),(()=>{const{value:e,searchInfo:t}=null!==x&&void 0!==x?x:{},n=En.format(e,{...a,asHTML:!1});return e&&(0,d.jsx)(Gn,{onClose:k,starts:(null===t||void 0===t?void 0:t.valueMatch)||[],text:n.substring(1,n.length-1),length:m.length})})()]})}const ps=(0,c.cn)("ydb-describe"),hs=({path:e,database:t,type:a})=>{const[n]=(0,X.Nt)(),s=q(a),r=(0,X.N4)((n=>Y(n,e,a,t)),hn.bN);let i=[];s?r&&(i=[e,...r]):i=[e];const{mergedDescribe:o,loading:l,error:c}=J({paths:i,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}const m=Pn(u);return l||s&&!r?(0,d.jsx)(ue.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:ps(),children:[c?(0,d.jsx)(de.o,{error:c}):null,u?(0,d.jsx)("div",{className:ps("result"),children:(0,d.jsx)(ms,{value:m,extraTools:(0,d.jsx)(pn.b,{view:"flat-secondary",text:JSON.stringify(u)}),search:!0,collapsedInitially:!0})}):null]}):(0,d.jsx)("div",{className:ps("message-container"),children:"Empty"})};var vs=a(60073);const gs=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(s=a)&&w[s]||n&&C[n];var n,s},ys=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((({Key:e,Value:t})=>"__async_replica"===e&&"true"===t))};var xs=a(5741),bs=a(82176);const fs=(0,bs.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:e=>(0,he.r6)(e,{defaultValue:Z.Pd})},labels:{PathType:(0,xs.A)("common.type"),CreateStep:(0,xs.A)("common.created")}}),js=({value:e,withSpeedLabel:t,...a})=>{const n=(0,va.z3)({value:e,withSpeedLabel:t,...a}),s=(0,va.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:s,children:n})},Ts=(e,t)=>e?(0,d.jsx)(js,{value:e,...t}):null,Ss=(0,bs.H)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:Ts},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Ns={[j.METERING_MODE_REQUEST_UNITS]:"request-units",[j.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},Es=(0,bs.H)({values:{Partitions:e=>(0,he.ZV)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/Z.Jg*100)/100;return`${(0,he.ZV)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),ws=(0,bs.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Ns[e]},labels:{MeteringMode:"Metering mode"}}),Cs=(0,bs.H)({values:{StorageLimitBytes:he.z3,WriteSpeedInBytesPerSecond:he.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),Ps=(0,bs.H)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring(14),Format:e=>null===e||void 0===e?void 0:e.substring(16)}}),Is=(0,bs.H)({values:{CPU:he.iM,Memory:Ts,Storage:Ts,Network:he.tC,ReadThroughput:he.tC,WriteThroughput:he.tC},defaultValueFormatter:he.ZV}),Ds=(0,bs.H)({values:{FollowerCount:he.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),As=(0,bs.H)({values:{FollowerCount:he.ZV,CrossDataCenterFollowerCount:he.ZV}}),_s=(0,bs.H)({values:{DataSize:Ts,IndexSize:Ts,LastAccessTime:he.r6,LastUpdateTime:he.r6},defaultValueFormatter:he.ZV}),Rs=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),ks=({data:e})=>{var t;const a=gs(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=null===(t=e.PathDescription)||void 0===t?void 0:t.TableIndex,s=[];let r;for(r in n)Rs.has(r)&&s.push(Ss(r,null===n||void 0===n?void 0:n[r]));return(0,d.jsx)(vs.z_,{title:a,info:s})};var Os=a(10508);const Ms=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),Ls=(0,Be.g4)("ydb-tenant-objects-info",{en:Ms}),qs=(0,c.cn)("ydb-external-data-source-info"),zs=e=>{var t,a,n,s;const r=[{label:Ls("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType}],i=null===(n=e.PathDescription)||void 0===n||null===(s=n.Self)||void 0===s?void 0:s.CreateStep;var o,l;Number(i)&&r.push(fs("CreateStep",null===(o=e.PathDescription)||void 0===o||null===(l=o.Self)||void 0===l?void 0:l.CreateStep));return r},Fs=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...zs(e),{label:Ls("external-objects.location"),value:(0,d.jsx)(Os.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:qs("location")})},{label:Ls("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Ls("external-objects.auth-method.service-account"):Ls("external-objects.auth-method.none")}]},$s=({data:e,prepareData:t})=>{const a=gs(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vs.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},Us=({data:e})=>(0,d.jsx)($s,{data:e,prepareData:Fs});var Qs=a(10755),Bs=a(25196);const Hs=(0,c.cn)("ydb-external-table-info"),Gs=(e,t)=>{var a,n;const{CreateStep:s}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:r,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop(),l=[{label:Ls("external-objects.source-type"),value:r}];return Number(s)&&l.push(fs("CreateStep",s)),l.push({label:Ls("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(Bs.K,{title:o||"",url:t})})}),l},Ws=(e,t)=>{var a,n;const s=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...Gs(e,t),{label:Ls("external-objects.location"),value:(0,d.jsx)(Os.c,{name:s,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Hs("location")})}]},Vs=({data:e,prepareData:t})=>{var a,n;const s=(0,Qs.zy)(),r=(0,ye.mA)(s),i=(0,ye.Ow)({...r,schema:null===e||void 0===e||null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.DataSourcePath}),o=gs(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(vs.z_,{title:o,info:t(e,i)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},Ys=({data:e})=>(0,d.jsx)(Vs,{data:e,prepareData:Ws});var Js=a(94695),Ks=a(57439);const Zs=JSON.parse('{"no-data":"No data"}'),Xs=(0,Be.g4)("ydb-definition-list",{en:Zs}),er=(0,c.cn)("ydb-definition-list");function tr({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:s,itemClassName:r,...i}){return(0,d.jsxs)("div",{className:er(null),children:[e?(0,d.jsx)("div",{className:er("title"),children:e}):null,t.length?(0,d.jsx)(Ks.u,{items:t,nameMaxWidth:a,copyPosition:n,className:er("properties-list",s),itemClassName:er("item",r),...i}):Xs("no-data")]})}function ar({data:e}){const t=gs(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",t," data"]});const a=(e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:Ls("view.query-text"),copyText:n,content:n?(0,d.jsx)(Js.YDBSyntaxHighlighter,{language:"yql",text:n}):null}]})(e);return(0,d.jsx)(tr,{title:t,items:a})}function nr({state:e}){return e?"StandBy"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Standby"}):"Paused"in e?(0,d.jsx)(Ct.J,{theme:"info",children:"Paused"}):"Done"in e?(0,d.jsx)(Ct.J,{theme:"success",children:"Done"}):"Error"in e?(0,d.jsx)(Ct.J,{theme:"danger",children:"Error"}):(0,d.jsx)(Ct.J,{size:"s",children:"Unknown"}):null}const sr=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),rr=(0,Be.g4)("ydb-diagnostics-async-replication-paths",{en:sr}),ir=(0,c.cn)("ydb-async-replication-paths"),or=[{name:rr("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:rr("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function lr({config:e}){if(!e)return null;let t=rr("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[rr("everythingWithPrefix")," ",(0,d.jsx)(it.E,{variant:"code-inline-2",children:null!==(a=null===(n=e.Everything)||void 0===n?void 0:n.DstPrefix)&&void 0!==a?a:"undefined"}),"."]}));return e.Specific&&(t=(0,d.jsx)(ze.l,{data:e.Specific.Targets,settings:Z.jp,columns:or})),(0,d.jsxs)("div",{className:ir(),children:[(0,d.jsx)("div",{className:ir("title"),children:rr("title")}),t]})}function cr({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const dr=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),ur=(0,Be.g4)("ydb-diagnostics-async-replication-info",{en:dr});function mr({data:e}){var t,a;const n=gs(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[ur("noData")," ",n]});const s=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},s=n.State,r=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=r,l=[];s&&l.push({name:ur("state.label"),content:(0,d.jsx)(nr,{state:s})});i&&l.push({name:ur("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:i})});o&&l.push({name:ur("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:o})});r&&l.push({name:ur("credentials.label"),content:(0,d.jsx)(cr,{connection:r})});return l}(e);return(0,d.jsxs)(ot.s,{direction:"column",gap:"4",children:[(0,d.jsx)(tr,{title:n,items:s}),(0,d.jsx)(lr,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const pr=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),hr=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),vr=(0,Be.g4)("ydb-diagnostics-overview-topic-stats",{ru:hr,en:pr}),gr=(0,c.cn)("ydb-overview-topic-stats"),yr=e=>[{label:"Store size",value:(0,he.z3)(e.storeSize)},{label:(0,d.jsx)(ka,{text:"Write idle time",popoverContent:(0,d.jsx)(Va,{text:vr("writeIdleTimePopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(ka,{text:"Write lag",popoverContent:(0,d.jsx)(Va,{text:vr("writeLagPopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Ca,{data:e.writeSpeed,withValue:!1})}],xr=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,he.tC)(t.perMinute)},{label:"per hour",value:(0,he.tC)(t.perHour)},{label:"per day",value:(0,he.tC)(t.perDay)}]},br=({path:e,database:t})=>{const[a]=(0,X.Nt)(),{currentData:s,isFetching:r,error:i}=ga.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=r&&void 0===s,l=(0,X.N4)((a=>ja(a,e,t)));if(o)return(0,d.jsx)("div",{className:gr(),children:(0,d.jsx)(ue.a,{size:"s"})});const c=i||!l?(0,d.jsx)(de.o,{error:i}):null;return(0,d.jsxs)("div",{className:gr(),children:[(0,d.jsx)("div",{className:gr("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:gr("info"),children:(0,d.jsx)(vs.z_,{info:yr(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:gr("bytes-written"),children:(0,d.jsx)(vs.z_,{info:xr(l)})})]}):null]})},fr=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:s={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:r,MeteringMode:i}=s,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=s.PartitionConfig;return[...(0,vs.jl)(Es,{Partitions:n,PQTabletConfig:s}),...(0,vs.jl)(Cs,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,vs.jl)(ws,{Codecs:r,MeteringMode:i})]},jr=(e,t)=>{var a,n,s;if(!e&&!t)return[];const r=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=r||{},l=[...(0,vs.jl)(Ps,{Mode:i,Format:o}),...fr(t)],c=null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(s=n.Self)||void 0===s?void 0:s.CreateStep;return Number(c)&&l.unshift(fs("CreateStep",c)),l},Tr=({path:e,database:t,data:a,topic:n})=>{const s=gs(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(vs.z_,{title:s,info:jr(a,n)}),(0,d.jsx)(br,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",s," data"]})},Sr=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.connectToDB":"Connect to DB","actions.dropIndex":"Drop index","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createTransfer":"Create transfer...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.manageColumns":"Manage columns...","actions.manageAutoPartitioning":"Manage auto partitioning...","actions.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.alterTransfer":"Alter transfer...","actions.dropReplication":"Drop async replicaton...","actions.dropTransfer":"Drop transfer...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),Nr=(0,Be.g4)("ydb-tenant",{en:Sr});function Er({data:e}){const t=gs(e);return ys(e)?(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(Ct.J,{children:Nr("label.read-only")})]}):t}const wr=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Cr=(0,Be.g4)("ydb-diagnostics-overview-table-info",{en:wr});var Pr=a(62091),Ir=a.n(Pr),Dr=a(7435),Ar=a(41650);const _r=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Cr("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,vt.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Cr("label.ttl"),value:t}}};const Rr=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:s={},Table:{PartitionConfig:r={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:T,RowUpdates:S,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=r;let A=[];switch(t){case x.EPathTypeTable:A=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:s,EnableFilterByKey:r}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Cr("value.partitioning-by-size.enabled",{size:(0,he.z3)(n.SizeToSplit)}):Cr("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Cr("enabled"):Cr("disabled");if(i.push({label:Cr("label.partitioning-by-size"),value:o},{label:Cr("label.partitioning-by-load"),value:l},{label:Cr("label.partitions-min"),value:(0,he.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Cr("label.partitions-max"),value:(0,he.ZV)(n.MaxPartitionsCount)}),s&&s.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=s[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Cr("label.read-replicas"),value:n})}if(t){const e=_r(t);e&&i.push(e)}return(0,Dr.f8)(r)&&i.push({label:Cr("label.bloom-filter"),value:Cr(r?"enabled":"disabled")}),i})(r,i);break;case x.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var s;if(n.push({label:Cr("label.standalone"),value:String((s=e,!(s.SchemaPresetName&&void 0!==s.SchemaPresetId)))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Cr("label.partitioning"),value:(0,d.jsx)(it.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=_r(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,vs.jl)(_s,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,Ar.kf)(p)&&(r.EnableFilterByKey||Number(p)>0)&&_.push({label:"BloomFilterSize",value:Ts(p)});const R=[_,(0,vs.jl)(_s,{LastAccessTime:h,LastUpdateTime:v}),(0,vs.jl)(_s,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:T}),(0,vs.jl)(_s,{RowUpdates:S,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C})],k=(0,vs.jl)(Is,Ir()(s,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(P)&&P.length>0?O=(0,vs.jl)(Ds,P[0]):void 0!==I?O.push(As("FollowerCount",I)):void 0!==D&&O.push(As("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:k,partitionConfigInfo:O}},kr=(0,c.cn)("ydb-diagnostics-table-info"),Or=({data:e,type:t})=>{const a=(0,d.jsx)(Er,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:s,tableStatsInfo:r,tabletMetricsInfo:i=[],partitionConfigInfo:o=[]}=n.useMemo((()=>Rr(e,t)),[e,t]);return(0,d.jsxs)("div",{className:kr(),children:[(0,d.jsx)(vs.z_,{info:s,title:a,className:kr("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:kr("title"),children:a})}),(0,d.jsxs)("div",{className:kr("row"),children:[r?(0,d.jsx)("div",{className:kr("col"),children:r.map(((e,t)=>(0,d.jsx)(vs.z_,{info:e,title:0===t?Cr("tableStats"):void 0,className:kr("info-block"),renderEmptyState:()=>null},t)))}):null,i.length>0||o.length>0?(0,d.jsxs)("div",{className:kr("col"),children:[(0,d.jsx)(vs.z_,{info:i,title:Cr("tabletMetrics"),className:kr("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(vs.z_,{info:o,title:Cr("partitionConfig"),className:kr("info-block"),renderEmptyState:()=>null})]}):null]})]})},Mr=({data:e,path:t,database:a})=>{const n=gs(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(vs.z_,{title:n,info:fr(e)}),(0,d.jsx)(br,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})},Lr=H.F.injectEndpoints({endpoints:e=>({getReplication:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getReplication(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"});function qr({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Ct.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const zr=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State","state.error":"Error","srcPath.label":"Source Topic","dstPath.label":"Destination Table","transformLambda.label":"Transformation Lambda"}'),Fr=(0,Be.g4)("ydb-diagnostics-transfer-info",{en:zr});function $r({path:e,database:t,data:a}){const n=gs(null===a||void 0===a?void 0:a.PathDescription);if(!a)return(0,d.jsxs)("div",{className:"error",children:[Fr("noData")," ",n]});const{data:s}=Lr.useGetReplicationQuery({path:e,database:t},{}),r=function(e,t){var a,n,s,r,i,o;const l=(null===(a=e.PathDescription)||void 0===a?void 0:a.ReplicationDescription)||{},c=l.State,u=(null===(n=l.Config)||void 0===n?void 0:n.SrcConnectionParams)||{},{Endpoint:m,Database:p}=u,h=null===(s=l.Config)||void 0===s||null===(r=s.TransferSpecific)||void 0===r?void 0:r.Target,v=null===h||void 0===h?void 0:h.SrcPath,g=null===h||void 0===h?void 0:h.DstPath,y=null===h||void 0===h?void 0:h.TransformLambda,x=[];c&&x.push({name:Fr("state.label"),content:(0,d.jsx)(nr,{state:c})});null!==t&&void 0!==t&&null!==(i=t.error)&&void 0!==i&&i.issues&&null!==(o=t.error.issues[0])&&void 0!==o&&o.message&&x.push({name:Fr("state.error"),copyText:t.error.issues[0].message,content:(0,d.jsx)(it.E,{variant:"code-inline-2",color:"danger",children:t.error.issues[0].message})});m&&x.push({name:Fr("srcConnection.endpoint.label"),copyText:m,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:m})});p&&x.push({name:Fr("srcConnection.database.label"),copyText:p,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:p})});u&&x.push({name:Fr("credentials.label"),content:(0,d.jsx)(qr,{connection:u})});return x.push({name:Fr("srcPath.label"),copyText:v,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:v})}),x.push({name:Fr("dstPath.label"),copyText:g,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:g})}),x.push({name:Fr("transformLambda.label"),copyText:y,content:y?(0,d.jsx)(Js.YDBSyntaxHighlighter,{language:"yql",text:y}):null}),x}(a,s);return(0,d.jsx)(ot.s,{direction:"column",gap:"4",children:(0,d.jsx)(tr,{title:n,items:r})})}const Ur=function({type:e,path:t,database:a}){const[s]=(0,X.Nt)(),r=q(e),i=(0,X.N4)((n=>Y(n,t,e,a)),hn.bN);let o=[];r?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=J({paths:o,database:a,autoRefreshInterval:s}),m=l[t];return c||r&&!i?(0,d.jsx)(ue.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(de.o,{error:u}):null,u&&!m?null:(()=>{var n;const s=null!==m&&void 0!==m?m:void 0,r={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeResourcePool]:void 0,[x.EPathTypeTable]:void 0,[x.EPathTypeSubDomain]:void 0,[x.EPathTypeTableIndex]:()=>(0,d.jsx)(ks,{data:s}),[x.EPathTypeExtSubDomain]:void 0,[x.EPathTypeColumnStore]:void 0,[x.EPathTypeColumnTable]:void 0,[x.EPathTypeCdcStream]:()=>{const e=null===i||void 0===i?void 0:i[0];var n;if(e)return(0,d.jsx)(Tr,{path:t,database:a,data:s,topic:null!==(n=null===l||void 0===l?void 0:l[e])&&void 0!==n?n:void 0})},[x.EPathTypePersQueueGroup]:()=>(0,d.jsx)(Mr,{data:s,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(Ys,{data:s}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Us,{data:s}),[x.EPathTypeView]:()=>(0,d.jsx)(ar,{data:s}),[x.EPathTypeReplication]:()=>(0,d.jsx)(mr,{data:s}),[x.EPathTypeTransfer]:()=>(0,d.jsx)($r,{path:t,database:a,data:s})};return e&&(null===(n=r[e])||void 0===n?void 0:n.call(r))||(0,d.jsx)(Or,{data:s,type:e})})()]})};var Qr,Br=a(74417),Hr=a(91364);function Gr({href:e,className:t,size:a="xs"}){return(0,d.jsx)(vn.$,{href:e,target:"_blank",className:t,size:a,title:"Database logs",children:(0,d.jsx)(ct.I,{data:Hr.A})})}function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Wr.apply(null,arguments)}const Vr=function(e){return n.createElement("svg",Wr({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Qr||(Qr=n.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))};function Yr({href:e,className:t,size:a="xs"}){return(0,d.jsx)(vn.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(ct.I,{data:Vr})})}var Jr=a(20680),Kr=a(66643),Zr=a(40014),Xr=a(25533),ei=a(90474);const ti=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function ai(e){return null===e?Z.Pd:(0,vt.Xo)((0,he.CR)(ri(e),2))}function ni(e){return null===e?Z.Pd:(0,va.z3)({value:ri(e),precision:3})}function si(e){return null===e?Z.Pd:Math.round(100*ri(e))+"%"}function ri(e){return(0,Ar.kf)(e)?Number(e):0}const ii={"30m":30*Z.r0,"1h":Z.Jg,"1d":Z.tt,"1w":7*Z.tt},oi=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),li=(0,Be.g4)("ydb-metric-chart",{en:oi}),ci=H.F.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,{signal:t})=>{try{const a=await(async({database:e,metrics:t,timeFrame:a,maxDataPoints:n},{signal:s}={})=>{const r=t.map((e=>`target=${e.target}`)).join("&"),i=Math.round(Date.now()/1e3),o=i-ii[a];return window.api.viewer.getChartData({target:r,from:o,until:i,maxDataPoints:n,database:e},{signal:s})})(e,{signal:t});if(Array.isArray(a)){return{data:((e=[],t)=>{const a=e.map((({datapoints:e,target:a})=>{const n=t.find((e=>e.target===a));if(!n)return;const s=e.map((e=>e[0]));return{...n,data:s}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}})(a,e.metrics)}}return{error:new Error("string"===typeof a?li("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),di=(0,c.cn)("ydb-metric-chart");Kr.W.set({plugins:[Xr.YagrPlugin]});const ui=(e,t={})=>{const{dataType:a,scaleRange:n,showLegend:s}=t,r=(e=>{switch(e){case"ms":return ai;case"size":return ni;case"percent":return si;default:return}})(a),i=!e.metrics.length,o=e.metrics.map(((e,t)=>{const a=e.color||ti[t],n=function(e,t){const a=(0,ei.Mj)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:r,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:o},libraryConfig:{chart:{size:{padding:i?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:r?(e,t)=>t.map(r):void 0}},tooltip:{show:!0,tracking:"sticky"},legend:{show:s}}}},mi={timeline:[],metrics:[]},pi=({database:e,title:t,metrics:a,timeFrame:s="1h",autorefresh:r,width:i=400,height:o=i/1.5,chartOptions:l,onChartDataStatusChange:c,isChartVisible:u})=>{const{currentData:m,error:p,isFetching:h,status:v}=ci.useGetChartDataQuery({database:e,metrics:a,timeFrame:s,maxDataPoints:i/2},{pollingInterval:r}),g=h&&!m;n.useEffect((()=>null===c||void 0===c?void 0:c("fulfilled"===v?"success":"loading")),[v,c]);const y=ui(m||mi,l);return(0,d.jsxs)("div",{className:di(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:di("title"),children:t}),g?(0,d.jsx)(ue.a,{}):u?(0,d.jsxs)("div",{className:di("chart"),children:[(0,d.jsx)(Zr.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(de.o,{className:di("error"),error:p}):null]}):null]})},hi=(0,c.cn)("ydb-timeframe-selector"),vi=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:hi(null,a),children:Object.keys(ii).map((a=>(0,d.jsx)(vn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),gi=(0,c.cn)("ydb-tenant-dashboard"),yi=({database:e,charts:t})=>{const[a,s]=n.useState(!0),[i="1h",o]=(0,r.useQueryParam)("timeframe",r.StringParam),[l]=(0,X.Nt)(),c=a?0:l,u=e=>{"success"===e&&s(!1)},m=1===t.length?872:428,p=428/1.5;return(0,d.jsxs)("div",{className:gi(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:gi("controls"),children:(0,d.jsx)(vi,{value:i,onChange:o})}),(0,d.jsx)("div",{className:gi("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(pi,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},xi=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour","column-header.process":"Process"}'),bi=(0,Be.g4)("ydb-diagnostics-tenant-overview",{en:xi}),fi=[{title:bi("charts.queries-per-second"),metrics:[{target:"queries.requests",title:bi("charts.queries-per-second")}]},{title:bi("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:"p50"},{target:"queries.latencies.p75",title:"p75"},{target:"queries.latencies.p90",title:"p90"},{target:"queries.latencies.p99",title:"p99"}],options:{dataType:"ms",showLegend:!0}}],ji=({database:e})=>(0,d.jsx)(yi,{database:e,charts:fi});var Ti=a(67157);const Si=H.F.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async({database:e,maxLevel:t},{signal:a})=>{try{return{data:await window.api.viewer.getHealthcheckInfo({database:e,maxLevel:t},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),Ni={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},Ei=e=>e.sort(((e,t)=>(Ni[e.status]||0)-(Ni[t.status]||0))),wi=({issue:e,data:t})=>Ei(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Ci=({data:e,roots:t})=>t?t.map((t=>{const a=Ci({roots:wi({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Pi=(0,g.Mz)((e=>e),(e=>Si.endpoints.getHealthcheckInfo.select({database:e}))),Ii=(0,g.Mz)((e=>e),((e,t)=>Pi(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),Di=(0,g.Mz)(Ii,((e=[])=>{return Ei((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Ai=(0,g.Mz)([Ii,Di],((e=[],t=[])=>Ci({data:e,roots:t}))),_i=(0,g.Mz)(Ii,((e=[])=>(e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort((([e],[t])=>(Ni[e]||0)-(Ni[t]||0)))})(e)));let Ri=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),ki=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED",e}({});var Oi=a(63126),Mi=a(54090);const Li={[ki.UNSPECIFIED]:Mi.m.Grey,[ki.GREY]:Mi.m.Grey,[ki.GREEN]:Mi.m.Green,[ki.BLUE]:Mi.m.Blue,[ki.YELLOW]:Mi.m.Yellow,[ki.ORANGE]:Mi.m.Orange,[ki.RED]:Mi.m.Red},qi=(0,c.cn)("issue-tree-item"),zi=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:qi(),onClick:n,children:[(0,d.jsx)("div",{className:qi("field",{status:!0}),children:(0,d.jsx)(Os.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:qi("field",{message:!0}),children:t})]}),Fi=(0,c.cn)("issue-tree"),$i=({issueTree:e})=>{const[t,a]=n.useState({}),s=n.useCallback((e=>e?(0,d.jsx)("div",{className:Fi("info-panel"),children:(0,d.jsx)(ms,{value:Cn(e)})}):null),[]),r=n.useCallback((e=>e.map((e=>{const{id:n}=e,{status:i,message:o,type:l,reasonsItems:c,level:u,...m}=e,p="undefined"===typeof t[n]||t[n],h=()=>{a((e=>({...e,[n]:!p})))};return(0,d.jsxs)(Oi.G,{name:(0,d.jsx)(zi,{status:Li[i],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[s(Ir()(m,["reason"])),r(c||[])]},n)}))),[t,s]);return(0,d.jsx)("div",{className:Fi(),children:(0,d.jsx)("div",{className:Fi("block"),children:r([e])})})},Ui=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),Qi=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),Bi=(0,Be.g4)("ydb-diagnostics-healthcheck",{ru:Qi,en:Ui}),Hi=(0,c.cn)("healthcheck");function Gi({tenantName:e}){const[t]=(0,X.Nt)(),{name:a}=(0,Ti.Zd)(),{issueTrees:s,loading:r,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:s,refetch:r}=Si.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Ri.UNSPECIFIED,o=(0,X.N4)((t=>_i(t,e)));return{issueTrees:(0,X.N4)((t=>Ai(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:s,refetch:r,selfCheckResult:i}})(e,{autorefresh:"ydb_ru"===a?void 0:t});return(0,d.jsx)("div",{className:Hi("details"),children:(0,d.jsx)("div",{className:Hi("details-content-wrapper"),children:i?(0,d.jsx)(de.o,{error:i,defaultMessage:Bi("no-data")}):r?(0,d.jsx)(ue.a,{size:"m"}):s&&s.length?(0,d.jsx)(n.Fragment,{children:s.map((e=>(0,d.jsx)($i,{issueTree:e},e.id)))}):Bi("status_message.ok")})})}var Wi=a(8861),Vi=a(73633),Yi=a(70825),Ji=a(43937),Ki=a(10800),Zi=a(71153),Xi=a(2102),eo=a(52358);const to=(0,c.cn)("healthcheck"),ao={[Ri.UNSPECIFIED]:Vi.A,[Ri.GOOD]:Yi.A,[Ri.DEGRADED]:Ji.A,[Ri.MAINTENANCE_REQUIRED]:Ki.A,[Ri.EMERGENCY]:Zi.A};function no(e){const{tenantName:t,active:a}=e,[s]=(0,X.Nt)(),{metricsTab:r}=(0,X.N4)((e=>e.tenant)),{name:i}=(0,Ti.Zd)(),o="ydb_ru"===i,{currentData:l,isFetching:c,error:u}=Si.useGetHealthcheckInfoQuery({database:t},{pollingInterval:o?void 0:s,skip:o}),[m,{currentData:p,isFetching:h}]=Si.useLazyGetHealthcheckInfoQuery();n.useEffect((()=>{"healthcheck"===r&&o&&m({database:t})}),[r,o,t,m]),n.useEffect((()=>{const e=()=>{o&&m({database:t})};return document.addEventListener("diagnosticsRefresh",e),()=>{document.removeEventListener("diagnosticsRefresh",e)}}),[t,o,m]);const v=c&&void 0===l||h&&void 0===p;return(0,d.jsxs)(Xi.A,{className:to("preview"),active:a,children:[(0,d.jsx)("div",{className:to("preview-header"),children:(0,d.jsxs)("div",{className:to("preview-title-wrapper"),children:[(0,d.jsx)("div",{className:to("preview-title"),children:Bi("title.healthcheck")}),o?(0,d.jsx)(ia.A,{content:"Healthcheck is disabled. Please update healthcheck manually.",placement:["top"],className:to("icon-wrapper"),children:()=>(0,d.jsx)(ct.I,{size:16,className:to("icon-warn"),data:eo.A})}):null]})}),(()=>{if(u)return(0,d.jsx)(de.o,{error:u,defaultMessage:Bi("no-data")});if(v)return(0,d.jsx)(ue.a,{size:"m"});const e=(null===l||void 0===l?void 0:l.self_check_result)||(null===p||void 0===p?void 0:p.self_check_result)||Ri.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:to("preview-content"),children:(0,d.jsxs)("div",{className:to("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ct.I,{className:to("preview-status-icon"),data:ao[e]}),(0,d.jsx)("div",{className:to("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var so=a(15132),ro=a(33775);const io=(0,c.cn)("ydb-metrics-card"),oo=e=>{let t;return"Warning"===e&&(t=Mi.m.Yellow),"Danger"===e&&(t=Mi.m.Red),t?(0,d.jsx)(ro.k,{status:t,mode:"icons",size:"l"}):null};function lo({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(Xi.A,{className:io({active:e}),active:e,children:[(0,d.jsxs)("div",{className:io("header"),children:[t&&(0,d.jsx)("div",{className:io("label"),children:t}),oo(a)]}),(0,d.jsx)("div",{className:io("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:io("metric"),children:[(0,d.jsx)("div",{className:io("metric-title"),children:e}),(0,d.jsx)(so.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const co=(0,c.cn)("metrics-cards");function uo({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:s}){const r=(0,Qs.zy)(),{metricsTab:i}=(0,X.N4)((e=>e.tenant)),o=(0,ye.mA)(r),l=e=>e===i?"":e,c={[ae.pA.cpu]:(0,sa.YL)({...o,[sa.vh.metricsTab]:l(ae.pA.cpu)}),[ae.pA.storage]:(0,sa.YL)({...o,[sa.vh.metricsTab]:l(ae.pA.storage)}),[ae.pA.memory]:(0,sa.YL)({...o,[sa.vh.metricsTab]:l(ae.pA.memory)}),[ae.pA.healthcheck]:(0,sa.YL)({...o,[sa.vh.metricsTab]:l(ae.pA.healthcheck)})};return(0,d.jsxs)("div",{className:co(),children:[(0,d.jsx)(se.N_,{to:c.cpu,className:co("tab"),children:(0,d.jsx)(mo,{poolsCpuStats:e,active:i===ae.pA.cpu})}),(0,d.jsx)(se.N_,{to:c.storage,className:co("tab"),children:(0,d.jsx)(po,{blobStorageStats:a,tabletStorageStats:n,active:i===ae.pA.storage})}),(0,d.jsx)(se.N_,{to:c.memory,className:co("tab"),children:(0,d.jsx)(ho,{memoryStats:t,active:i===ae.pA.memory})}),(0,d.jsx)(se.N_,{to:c.healthcheck,className:co("tab"),children:(0,d.jsx)(no,{tenantName:s,active:i===ae.pA.healthcheck})})]})}function mo({poolsCpuStats:e=[],active:t}){let a=Wi.u.Unspecified;const n=e.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:n,limit:s,used:r}=e,i=(0,Jr.sf)(n);return Wi.Z[i]>Wi.Z[a]&&(a=i),{title:t,value:r,capacity:s}}));return(0,d.jsx)(lo,{label:bi("cards.cpu-label"),active:t,metrics:n,status:a})}function po({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=Wi.u.Unspecified;const s=(t||e).map((e=>{const{name:t,used:a,limit:s,usage:r}=e,i=(0,Jr.sf)(r);return Wi.Z[i]>Wi.Z[n]&&(n=i),{title:t,value:a,capacity:s,formatValues:he.j9}}));return(0,d.jsx)(lo,{label:bi("cards.storage-label"),active:a,metrics:s,status:n})}function ho({active:e,memoryStats:t=[]}){let a=Wi.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:s,usage:r}=e,i=(0,Jr.sf)(r);return Wi.Z[i]>Wi.Z[a]&&(a=i),{title:t,value:n,capacity:s,formatValues:he.j9}}));return(0,d.jsx)(lo,{label:bi("cards.memory-label"),active:e,metrics:n,status:a})}var vo=a(78762),go=a(86782),yo=a(15298),xo=a(40781);const bo=(0,c.cn)("tenant-overview");function fo({title:e,error:t,loading:a,tableClassNameModifiers:s={},withData:r,children:i}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bo("title"),children:e}),t?(0,d.jsx)(de.o,{error:t}):null,(0,d.jsx)("div",{className:bo("table",s),children:t&&!r?null:a?(0,d.jsx)(St.Q,{rows:Z.Nz}):i})]})}var jo=a(82015);const To=({prefix:e=bi("top"),entity:t,postfix:a,link:s,onClick:r})=>s?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(jo.E,{to:s,onClick:r,children:t})," ",a]}):`${e} ${t} ${a}`;function So({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[s,r]=function(e){const t={...(0,vo.Nh)(e),width:void 0},a=[(0,vo.kv)(),(0,vo._E)(),t],n=a.map((e=>e.name));return[a,(0,xo.R)(n,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",sort:"-CPU",limit:Z.Nz,tablets:!1,fieldsRequired:r},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=To({entity:bi("nodes"),postfix:bi("by-pools-usage"),link:(0,sa.YL)({...a,[sa.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:go.zO,data:u,columns:s,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}function No({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[s,r]=function(e){const t={...(0,vo.Nh)(e),width:void 0},a=[(0,vo.fR)(),(0,vo._E)(),t,(0,vo.Rn)()],n=a.map((e=>e.name));return[a,(0,xo.R)(n,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",sort:"-LoadAverage",limit:Z.Nz,tablets:!1,fieldsRequired:r},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=To({entity:bi("nodes"),postfix:bi("by-load"),link:(0,sa.YL)({...a,[sa.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:go.zO,data:u,columns:s,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}var Eo=a(69053),wo=a(73289),Co=a(16332);const Po=JSON.parse('{"action_cancel":"Cancel"}'),Io=(0,Be.g4)("ydb-confirmation-dialog",{en:Po}),Do=(0,c.cn)("confirmation-dialog"),Ao="confirmation-dialog";function _o({caption:e="",children:t,onConfirm:a,onClose:n,progress:s,textButtonApply:r,textButtonCancel:i,buttonApplyView:o="normal",className:l,renderButtons:c,open:u}){return(0,d.jsxs)(Hn.l,{className:Do(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Hn.l.Header,{caption:(0,d.jsx)("span",{className:Do("caption"),children:e})}),(0,d.jsx)(Hn.l.Body,{children:t}),(0,d.jsx)(Hn.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:r,textButtonCancel:null!==i&&void 0!==i?i:Io("action_cancel"),onClickButtonCancel:n,loading:s,renderButtons:c})]})}const Ro=Co.vt((e=>{const t=Co.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(_o,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));Co.kz(Ao,Ro);var ko=a(40569),Oo=a(36894);function Mo(){const[e]=(0,X.iK)(Z.ld,[]),t=(0,X.N4)(Oo.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Lo=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),qo=(0,Be.g4)("ydb-save-query-dialog",{en:Lo}),zo=(0,c.cn)("ydb-save-query");function Fo(e){const t=(0,X.YQ)();return n.useCallback((()=>{Co.Ay.show(Bo,e),t((0,Oo.gJ)())}),[t,e])}function $o({dialogProps:e,...t}){const a=Fo(e);return(0,d.jsx)(vn.$,{onClick:a,...t,children:qo("action.save")})}function Uo({buttonProps:e={}}){const t=(0,X.YQ)(),a=(0,X.N4)(Oo.aW),n=Fo(),s=()=>{t((0,Oo.Wg)(a)),t((0,wo.Xb)(!1)),t((0,Oo.gJ)())};return a?(()=>{const t=[{action:s,text:qo("action.edit-existing")},{action:n,text:qo("action.save-as-new")}];return(0,d.jsx)(ko.r,{items:t,renderSwitcher:t=>(0,d.jsx)(vn.$,{...t,...e,children:qo("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)($o,{})}function Qo({onSuccess:e,onCancel:t,onClose:a,open:s}){const r=Mo(),i=(0,X.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Oo.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},p=()=>{null===t||void 0===t||t(),m()};return(0,d.jsxs)(Hn.l,{open:s,hasCloseButton:!1,size:"s",onClose:p,children:[(0,d.jsx)(Hn.l.Header,{caption:qo("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?r.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?qo("error.name-exists"):void 0:qo("error.name-not-empty");var n;u(a),a||(i((0,Oo.Wg)(o)),i((0,wo.Xb)(!1)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Hn.l.Body,{className:zo("dialog-body"),children:[(0,d.jsx)("div",{className:zo("dialog-row"),children:qo("description")}),(0,d.jsxs)("div",{className:zo("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:zo("field-title","required"),children:qo("input-label")}),(0,d.jsx)("div",{className:zo("control-wrapper"),children:(0,d.jsx)(Fn.k,{id:"queryName",placeholder:qo("input-placeholder"),value:o,onUpdate:e=>{l(e),u(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:c?"invalid":void 0,errorMessage:c})})]})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:qo("button-apply"),textButtonCancel:qo("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const Bo="save-query-dialog",Ho=Co.Ay.create((e=>{const t=Co.Ay.useModal();return(0,d.jsx)(Qo,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));Co.Ay.register(Bo,Ho);const Go=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),Wo=(0,Be.g4)("ydb-change-input-confirmation",{en:Go});function Vo(){const e=Co.Ay.useModal(Ao),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),s=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),r=n.useMemo((()=>({onSuccess:a,onCancel:s})),[a,s]);return(0,d.jsx)($o,{view:"action",size:"l",dialogProps:r})}async function Yo(){return await Co.Ay.show(Ao,{id:Ao,caption:Wo("context_unsaved-changes-warning"),textButtonApply:Wo("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Vo,{}),e]})})}function Jo(e){const t=(0,X.N4)(wo.Wp),a=(0,X.N4)(wo.TY),s=n.useMemo((()=>function(e){return async t=>{await Yo()&&e(t)}}(e)),[e]);return t&&a?s:e}const Ko=(0,c.cn)("kv-truncated-query"),Zo=({value:e="",maxQueryHeight:t=6})=>{const a=e.split("\n");if(a.length>t){const e=a.slice(0,t).join("\n"),s="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Js.YDBSyntaxHighlighter,{language:"yql",className:Ko(),text:e}),(0,d.jsx)("span",{className:Ko("message",{color:"secondary"}),children:s})]})}return(0,d.jsx)(Js.YDBSyntaxHighlighter,{language:"yql",text:e})};var Xo=a(70206),el=a.n(Xo);const tl={...Z.N3,dynamicRenderType:"variable"},al=JSON.parse('{"cpu-time":"CPUTime","read-rows":"ReadRows","read-bytes":"ReadBytes","query-hash":"QueryHash","user":"User","start-time":"Start time","end-time":"End time","duration":"Duration","query-text":"Query text","application":"Application"}'),nl=(0,Be.g4)("ydb-top-queries-columns",{en:al}),sl="topQueriesColumnsWidth",rl="CPUTime",il="QueryText",ol="EndTime",ll="ReadRows",cl="ReadBytes",dl="UserSID",ul="OneLineQueryText",ml="QueryHash",pl="Duration",hl="QueryStartAt",vl="ApplicationName",gl={get CPUTime(){return nl("cpu-time")},get QueryText(){return nl("query-text")},get EndTime(){return nl("end-time")},get ReadRows(){return nl("read-rows")},get ReadBytes(){return nl("read-bytes")},get UserSID(){return nl("user")},get OneLineQueryText(){return nl("query-text")},get QueryHash(){return nl("query-hash")},get Duration(){return nl("duration")},get QueryStartAt(){return nl("start-time")},get ApplicationName(){return nl("application")}},yl={CPUTime:"CPUTimeUs",QueryText:void 0,EndTime:"EndTime",ReadRows:"ReadRows",ReadBytes:"ReadBytes",UserSID:"UserSID",OneLineQueryText:void 0,QueryHash:void 0,Duration:"Duration",QueryStartAt:"QueryStartAt",ApplicationName:"ApplicationName"};function xl(e){return yl[e]}function bl(e){return Boolean(xl(e))}const fl=(0,c.cn)("kv-top-queries"),jl={name:rl,header:gl.CPUTime,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:Rt.Ay.RIGHT,sortable:!1},Tl={name:il,header:gl.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:fl("query"),children:(0,d.jsx)(Zo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},Sl={name:ol,header:gl.EndTime,render:({row:e})=>(0,he.r6)(new Date(e.EndTime).getTime()),align:Rt.Ay.RIGHT,width:200},Nl={name:ll,header:gl.ReadRows,render:({row:e})=>(0,he.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Rt.Ay.RIGHT,width:150},El={name:cl,header:gl.ReadBytes,render:({row:e})=>(0,he.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Rt.Ay.RIGHT,width:150},wl={name:dl,header:gl.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:fl("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Rt.Ay.LEFT},Cl={name:ul,header:gl.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(Js.YDBSyntaxHighlighter,{language:"yql",text:(null===(t=e.QueryText)||void 0===t?void 0:t.toString())||""})},sortable:!1,width:500},Pl={name:ml,header:gl.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(el().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},Il={name:pl,header:gl.Duration,render:({row:e})=>{var t;return(0,vt.Xo)((0,vt.Jc)(null!==(t=e.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:Rt.Ay.RIGHT,width:150},Dl={name:hl,header:gl.QueryStartAt,render:({row:e})=>(0,he.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Rt.Ay.DESCENDING},Al={name:vl,header:gl.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:fl("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function _l({tenantName:e}){var t,a;const s=(0,X.YQ)(),r=(0,Qs.zy)(),i=(0,Qs.W6)(),o=(0,ye.mA)(r),[l]=(0,X.Nt)(),c=n.useMemo((()=>[Pl,Cl,jl]),[]),{currentData:u,isFetching:m,error:p}=Eo.Ke.useGetTopQueriesQuery({database:e},{pollingInterval:l}),h=m&&void 0===u,v=(null===u||void 0===u||null===(t=u.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=Jo(n.useCallback((e=>{const{QueryText:t}=e;s((0,wo.iZ)({input:t})),s((0,wo.Xb)(!1));const a=(0,ye.mA)(r),n=(0,sa.YL)({...a,[ae.Dt]:ae.Dg.query,[sa.vh.queryTab]:ae.tQ.newQuery});i.push(n)}),[s,i,r])),y=To({entity:bi("queries"),postfix:bi("by-cpu-time",{executionPeriod:bi("executed-last-hour")}),onClick:()=>{s((0,Eo.TX)({from:void 0,to:void 0}))},link:(0,sa.YL)({...o,[sa.vh.diagnosticsTab]:ae.iJ.topQueries})});return(0,d.jsx)(fo,{title:y,loading:h,error:(0,Nt.Cb)(p),withData:Boolean(u),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:sl,data:v,columns:c,onRowClick:g,rowClassName:()=>bo("top-queries-row"),settings:Z.jp})})}var Rl=a(34271);function kl(e,t){const a=`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`;return`${Z.Zi}\nSELECT\n ${a},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${Z.Nz}`}const Ol=H.F.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async({database:e,path:t=""},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({query:kl(t,e),database:e,action:"execute-scan"},{signal:a,withRetries:!0});return(0,Nt.We)(n)?{error:n}:{data:(0,Nt.fW)(n)}}catch(n){return{error:n||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"}),Ml=["TabletId","Path","CPUCores"],Ll=({tenantName:e,path:t})=>{var a,n;const s=(0,Rl.x)("ShardsTable"),r=(0,Qs.zy)(),i=(0,ye.mA)(r),[o]=(0,X.Nt)(),{currentData:l,isFetching:c,error:u}=Ol.useGetTopShardsQuery({database:e,path:t},{pollingInterval:o}),m=c&&void 0===l,p=(null===l||void 0===l||null===(a=l.resultSets)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.result)||[],h=To({entity:bi("shards"),postfix:bi("by-cpu-usage"),link:(0,sa.YL)({...i,[sa.vh.diagnosticsTab]:ae.iJ.topShards})});return(0,d.jsx)(fo,{title:h,loading:m,error:(0,Nt.Cb)(u),withData:Boolean(l),children:(0,d.jsx)(s,{data:p,schemaPath:e,database:e,columnsIds:Ml,settings:Z.jp})})},ql=[{title:bi("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1},showLegend:!0}}];function zl({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:ql}),(0,d.jsx)(No,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(So,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(Ll,{tenantName:e,path:e}),(0,d.jsx)(_l,{tenantName:e})]})}var Fl=a(73473);function $l({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[s,r]=function(e){const t=[(0,vo._E)(),(0,vo.Nh)(e),(0,vo.jl)(),(0,vo.fR)(),(0,vo.iX)(),(0,vo.oz)(),(0,vo.qp)(e)],a=t.map((e=>e.name));return[t,(0,xo.R)(a,go.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yo.s.useGetNodesQuery({tenant:e,type:"any",tablets:!0,sort:"-Memory",limit:Z.Nz,fieldsRequired:r},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=To({entity:bi("nodes"),postfix:bi("by-memory"),link:(0,sa.YL)({...a,[sa.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(fo,{title:m,loading:c,error:l,withData:Boolean(i),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:go.zO,data:u,columns:s,emptyDataMessage:bi("top-nodes.empty-data"),settings:Z.jp})})}const Ul=[{title:bi("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:bi("charts.memory-usage")}],options:{dataType:"size"}}];function Ql({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:Ul}),(0,d.jsx)("div",{className:bo("title"),children:"Memory details"}),(0,d.jsx)("div",{className:bo("memory-info"),children:t?(0,d.jsx)(Fl.S,{formatValues:he.vX,stats:t}):(0,d.jsx)(so.O,{value:a,capacity:s,formatValues:he.vX,colorizeProgress:!0})}),(0,d.jsx)($l,{tenantName:e})]})}var Bl=a(18863),Hl=a(10174),Gl=a(20831),Wl=a(10360);function Vl({tenant:e}){const t=(0,X.e4)(),a=(0,ie.Pm)(),n=(0,ie.YA)(),[s]=(0,X.Nt)(),[r,i]=function(){const e=(0,Gl.k)(),t=e.map((e=>e.name));return[e,(0,xo.R)(t,Wl.YX)]}(),{currentData:o,isFetching:l,error:c}=Hl.S.useGetStorageGroupsInfoQuery({tenant:e,sort:"-Usage",with:"all",limit:Z.Nz,shouldUseGroupsHandler:n,fieldsRequired:i},{pollingInterval:s,skip:!a}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.groups)||[],p=To({entity:bi("groups"),postfix:bi("by-usage"),link:(0,sa.YL)({...t,[sa.vh.diagnosticsTab]:ae.iJ.storage})});return(0,d.jsx)(fo,{title:p,loading:u||!a,error:c,withData:Boolean(o),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:Wl.qK,data:m,columns:r,settings:Z.jp})})}var Yl=a(91135);const Jl=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({database:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:`${Z.Zi}\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`.sys/partition_stats\`\nGROUP BY Path\nORDER BY Size DESC\nLIMIT ${Z.Nz}\n`,database:e,action:"execute-scan"},{signal:t,withRetries:!0});return(0,Nt.We)(a)?{error:a}:{data:(0,Nt.fW)(a)}}catch(a){return{error:a||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"});function Kl({database:e}){var t,a;const[n]=(0,X.Nt)(),{currentData:s,error:r,isFetching:i}=Jl.useGetTopTablesQuery({database:e},{pollingInterval:n}),o=i&&void 0===s,l=(null===s||void 0===s||null===(t=s.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],c=[{name:"Size",width:100,render:({row:e})=>(e=>{const t=(0,va.fn)(null!==l&&void 0!==l&&l.length?Number(l[0].Size):0);return(0,va.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:Rt.Ay.RIGHT},{name:"Path",width:700,render:({row:e})=>e.Path?(0,d.jsx)(ut.s,{content:e.Path,children:(0,d.jsx)(Yl.I,{path:String(e.Path),children:e.Path})}):null}],u=To({entity:bi("tables"),postfix:bi("by-size")});return(0,d.jsx)(fo,{title:u,loading:o,error:(0,Nt.Cb)(r),withData:Boolean(s),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:l,columns:c,settings:Z.jp})})}const Zl=[{title:bi("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:bi("charts.storage-usage")}],options:{dataType:"size"}}];function Xl({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:s,blobStorageLimit:r,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(ka,{text:bi("storage.tablet-storage-title"),popoverContent:bi("storage.tablet-storage-description")}),value:(0,d.jsx)(so.O,{value:s,capacity:i,formatValues:he.j9,colorizeProgress:!0})},{label:(0,d.jsx)(ka,{text:bi("storage.db-storage-title"),popoverContent:bi("storage.db-storage-description")}),value:(0,d.jsx)(so.O,{value:a,capacity:r,formatValues:he.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(yi,{database:e,charts:Zl}),(0,d.jsx)(Bl.z,{className:bo("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(Kl,{database:e}),(0,d.jsx)(Vl,{tenant:e})]})}function ec({tenantName:e,additionalTenantProps:t,additionalNodesProps:a}){var n,s,r,i;const{metricsTab:o}=(0,X.N4)((e=>e.tenant)),[l]=(0,X.Nt)(),{currentData:c,isFetching:u}=oe.z6.useGetTenantInfoQuery({path:e},{pollingInterval:l}),m=u&&void 0===c,{Name:p,Type:h,Overall:v}=c||{},g=(y=h)&&P[y];var y;const{currentData:x}=G.useGetOverviewQuery({path:e,database:e},{pollingInterval:l}),{Tables:b,Topics:f}=(null===x||void 0===x||null===(n=x.PathDescription)||void 0===n||null===(s=n.DomainDescription)||void 0===s?void 0:s.DiskSpaceUsage)||{},j=[null===b||void 0===b?void 0:b.TotalSize,null===f||void 0===f?void 0:f.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),T={...c,Metrics:{...null===c||void 0===c?void 0:c.Metrics,Storage:String(j)}},{blobStorage:S,tabletStorage:N,blobStorageLimit:E,tabletStorageLimit:w,poolsStats:C,memoryStats:I,blobStorageStats:D,tabletStorageStats:A}=(0,Jr.uI)(T),_={blobStorageUsed:S,blobStorageLimit:E,tabletStorageUsed:N,tabletStorageLimit:w};if(m)return(0,d.jsx)("div",{className:bo("loader"),children:(0,d.jsx)(Br.a,{size:"m"})});const R=null===t||void 0===t||null===(r=t.getMonitoringLink)||void 0===r?void 0:r.call(t,p,h),k=null===t||void 0===t||null===(i=t.getLogsLink)||void 0===i?void 0:i.call(t,p);return(0,d.jsxs)("div",{className:bo(),children:[(0,d.jsxs)("div",{className:bo("info"),children:[(0,d.jsx)("div",{className:bo("top-label"),children:g}),(0,d.jsxs)(ot.s,{alignItems:"center",gap:"1",className:bo("top"),children:[(0,d.jsx)("div",{className:bo("tenant-name-wrapper"),children:(0,d.jsx)(Os.c,{status:v,name:p||Z.oK,withLeftTrim:!0,hasClipboardButton:Boolean(c),clipboardButtonAlwaysVisible:!0})}),(0,d.jsxs)(ot.s,{gap:"2",children:[R&&(0,d.jsx)(Yr,{href:R}),k&&(0,d.jsx)(Gr,{href:k})]})]}),(0,d.jsx)(uo,{poolsCpuStats:C,memoryStats:I,blobStorageStats:D,tabletStorageStats:A,tenantName:e})]}),(()=>{switch(o){case ae.pA.cpu:return(0,d.jsx)(zl,{tenantName:e,additionalNodesProps:a});case ae.pA.storage:return(0,d.jsx)(Xl,{tenantName:e,metrics:_});case ae.pA.memory:return(0,d.jsx)(Ql,{tenantName:e,memoryUsed:T.MemoryUsed,memoryLimit:T.MemoryLimit,memoryStats:T.MemoryStats});case ae.pA.healthcheck:return(0,d.jsx)(Gi,{tenantName:e});default:return(0,d.jsx)(ji,{database:e})}})()]})}const tc=(0,c.cn)("kv-detailed-overview");const ac=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:s,additionalNodesProps:r}=e,i=a===n;return(0,d.jsx)("div",{className:tc(),children:i?(0,d.jsx)("div",{className:tc("section"),children:(0,d.jsx)(ec,{tenantName:a,additionalTenantProps:s,additionalNodesProps:r})}):(0,d.jsx)(Ur,{type:t,path:n,database:a})})},nc={id:ae.iJ.overview,title:"Info"},sc={id:ae.iJ.schema,title:"Schema"},rc={id:ae.iJ.topQueries,title:"Queries"},ic={id:ae.iJ.topShards,title:"Top shards"},oc={id:ae.iJ.nodes,title:"Nodes"},lc={id:ae.iJ.tablets,title:"Tablets"},cc={id:ae.iJ.storage,title:"Storage"},dc={id:ae.iJ.network,title:"Network"},uc={id:ae.iJ.describe,title:"Describe"},mc={id:ae.iJ.hotKeys,title:"Hot keys"},pc={id:ae.iJ.graph,title:"Graph"},hc={id:ae.iJ.consumers,title:"Consumers"},vc={id:ae.iJ.partitions,title:"Partitions"},gc=[nc,lc,uc],yc=[nc,lc,uc],xc=[nc,rc,ic,oc,lc,cc,dc,uc,{id:ae.iJ.configs,title:"Configs"},{id:ae.iJ.operations,title:"Operations"}],bc=[nc,sc,ic,oc,pc,lc,mc,uc],fc=[nc,sc,ic,oc,lc,uc],jc=[nc,ic,oc,uc],Tc=[nc,hc,vc,oc,lc,uc],Sc=[nc,hc,vc,oc,lc,uc],Nc=[nc,uc],Ec=[nc,sc,uc],wc=[nc,sc,uc],Cc={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:xc,[x.EPathTypeExtSubDomain]:xc,[x.EPathTypeColumnStore]:xc,[x.EPathTypeTable]:bc,[x.EPathTypeColumnTable]:fc,[x.EPathTypeDir]:jc,[x.EPathTypeTableIndex]:jc,[x.EPathTypeCdcStream]:Tc,[x.EPathTypePersQueueGroup]:Sc,[x.EPathTypeExternalDataSource]:Nc,[x.EPathTypeExternalTable]:Ec,[x.EPathTypeView]:wc,[x.EPathTypeReplication]:gc,[x.EPathTypeTransfer]:yc,[x.EPathTypeResourcePool]:jc};var Pc=a(81240),Ic=a(80604);const Dc=H.F.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{var n;const s=await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!0},{signal:a});if(Array.isArray(s.hotkeys))return{data:s.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{a.addEventListener("abort",t)}))]);return{data:null!==(n=(await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!1},{signal:a})).hotkeys)&&void 0!==n?n:null}}catch(s){return{error:s}}},providesTags:["All"]})}),overrideExisting:"throw"}),Ac=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),_c=(0,Be.g4)("ydb-hot-keys",{en:Ac});var Rc;function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},kc.apply(null,arguments)}const Oc=function(e){return n.createElement("svg",kc({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Rc||(Rc=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},Mc=(0,c.cn)("ydb-hot-keys"),Lc="accessSample";function qc({path:e,database:t}){var a,s;const{currentData:r,isFetching:i,error:o}=Dc.useGetHotKeysQuery({path:e,database:t}),l=i&&void 0===r,[c]=(0,X.Nt)(),{currentData:u,isLoading:m}=G.useGetOverviewQuery({path:e,database:t},{pollingInterval:c}),p=null===u||void 0===u||null===(a=u.PathDescription)||void 0===a||null===(s=a.Table)||void 0===s?void 0:s.KeyColumnNames,h=n.useMemo((()=>((e=[])=>[...e.map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:Mc("primary-key-column"),children:[(0,d.jsx)(ct.I,{data:Oc,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Rt.Ay.RIGHT,sortable:!1}))),{name:Lc,header:"Samples",render:({row:e})=>e.accessSample,align:Rt.Ay.RIGHT,sortable:!1}])(p)),[p]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(zc,{}),l||m?(0,d.jsx)("div",{children:_c("hot-keys-collecting")}):o?(0,d.jsx)(de.o,{error:o}):r?(0,d.jsx)(ze.l,{wrapperClassName:Mc("table"),columns:h,data:r,settings:Z.N3,initialSortOrder:{columnId:Lc,order:Rt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:_c("no-data")})]})}function zc(){const[e,t]=(0,X.iK)(Z.Gj);return e?null:(0,d.jsxs)(Ic.Z,{theme:"info",view:"filled",type:"container",className:Mc("help-card"),children:[_c("help"),(0,d.jsx)(vn.$,{className:Mc("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ct.I,{data:Pc.A,size:18})})]})}var Fc=a(78524),$c=a(9252);const Uc=H.F.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNetwork({path:e,database:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var Qc=a(88610),Bc=a(29819);const Hc=(0,c.cn)("node-network");function Gc(){}function Wc({nodeId:e,connected:t,capacity:a,rack:s,status:r,onClick:i=Gc,onMouseEnter:o=Gc,onMouseLeave:l=Gc,showID:c,isBlurred:u}){const m=n.useRef(null),p=r||function(e=0,t=0){const a=Math.floor(e/t*100);return 100===a?Mi.m.Green:a>=70?Mi.m.Yellow:a>=1?Mi.m.Red:Mi.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:Hc({[p.toLowerCase()]:!0,id:c,blur:u}),onMouseEnter:()=>{o(m.current,{nodeId:e,connected:t,capacity:a,rack:s},"node")},onMouseLeave:()=>{l()},onClick:()=>i(e),children:c?e:null})}const Vc=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var Yc,Jc,Kc,Zc,Xc,ed,td,ad,nd,sd,rd,id,od,ld,cd;function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},dd.apply(null,arguments)}const ud=function(e){return n.createElement("svg",dd({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),Yc||(Yc=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),Jc||(Jc=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),Kc||(Kc=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Zc||(Zc=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),Xc||(Xc=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),ed||(ed=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),td||(td=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),ad||(ad=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),nd||(nd=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),sd||(sd=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),rd||(rd=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),id||(id=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),od||(od=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),ld||(ld=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),cd||(cd=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},md=(0,c.cn)("network");function pd({tenantName:e}){var t,a;const[s]=(0,X.Nt)(),r=(0,X.N4)(Qc.yV),i=(0,X.YQ)(),[o,l]=n.useState(),[c,u]=n.useState(!1),[m,p]=n.useState(!1),{currentData:h,isFetching:v,error:g}=Uc.useGetNetworkInfoQuery(e,{pollingInterval:s});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Br.a,{size:"l"})});const y=h,x=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===x.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const b=vd(x,"NodeType"),f=o?vd(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:md(),children:[g?(0,d.jsx)(de.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:md("inner"),children:(0,d.jsxs)("div",{className:md("nodes-row"),children:[(0,d.jsxs)("div",{className:md("left"),children:[(0,d.jsx)("div",{className:md("controls-wrapper"),children:(0,d.jsxs)("div",{className:md("controls"),children:[(0,d.jsx)($c.k,{value:r,onChange:e=>{i((0,Qc.$u)(e))},className:md("problem-filter")}),(0,d.jsx)("div",{className:md("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:md("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(hd,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:md("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:md("label"),children:["Connectivity of node"," ",(0,d.jsx)(se.N_,{className:md("link"),to:(0,Bc.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:md("nodes-row"),children:(0,d.jsx)(hd,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:md("placeholder"),children:[(0,d.jsx)("div",{className:md("placeholder-img"),children:(0,d.jsx)(ct.I,{data:ud,width:221,height:204})}),(0,d.jsx)("div",{className:md("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function hd({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:s,onClickNode:r}){const i=(0,X.N4)(Qc.yV),o=(0,X.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=vd(e[c],"Rack");return(0,d.jsxs)("div",{className:md("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:md("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:md("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:md("rack-column"),children:[(0,d.jsx)("div",{className:md("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,n)=>{let c,u;return!t&&"Peers"in e&&e.Peers&&(c=Object.keys(e.Peers).length,u=Vc(e.Peers)),i===Qc.s$.PROBLEMS&&c!==u||i===Qc.s$.ALL||t?(l++,(0,d.jsx)(Wc,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:c,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{r(s&&e.NodeId===s.NodeId?void 0:e)},isBlurred:!t&&s&&s.NodeId!==e.NodeId},n)):null}))]},n))):e[c].map(((e,n)=>{let c,u;const m=e&&"Peers"in e?e.Peers:void 0;return!t&&"Peers"in e&&e.Peers&&(c=e.Peers.length,u=Vc(m)),i===Qc.s$.PROBLEMS&&c!==u||i===Qc.s$.ALL||t?(l++,(0,d.jsx)(Wc,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:(...e)=>{o((0,pe.DK)(...e))},onMouseLeave:()=>{o((0,pe.w7)())},onClick:t?void 0:()=>{r(s&&e.NodeId===s.NodeId?void 0:e)},isBlurred:!t&&s&&s.NodeId!==e.NodeId},n)):null}))})]},u)}));return i===Qc.s$.PROBLEMS&&0===l?(0,d.jsx)(Fc.v,{name:"thumbsUp",width:"200"}):c}function vd(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const gd=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],yd=["NodeId"],xd=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function bd({database:e,path:t,parentRef:a,additionalNodesProps:n}){const s=(0,ie.Pm)(),r=(0,ie.WF)(),[i]=(0,X.iK)(Z.g5),l=r&&i;return(0,d.jsx)(o.r,{loading:!s,children:(()=>{return l?(0,d.jsx)(Le.G,{path:t,database:e,parentRef:a,withPeerRoleFilter:!0,additionalNodesProps:n,columns:(s={database:e,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef},[(0,vo._E)(),(0,vo.Nh)(s,{statusForIcon:"ConnectStatus"}),(0,vo.uk)(),(0,vo.OX)(),(0,vo.jl)(),(0,vo.fr)(),(0,vo.kv)(),(0,vo.SH)(),(0,vo.H)(),(0,vo.DH)(),(0,vo.ui)(),(0,vo.wN)(),(0,vo.pt)()].map((e=>({...e,sortable:(0,go.sp)(e.name)})))),defaultColumnsIds:gd,requiredColumnsIds:yd,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:xd}):(0,d.jsx)(pd,{tenantName:e});var s})()})}var fd=a(24600),jd=a(47058),Td=a(69775),Sd=a(41775);const Nd=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),Ed=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),wd=(0,Be.g4)("ydb-diagnostics-partitions",{ru:Ed,en:Nd}),Cd={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},Pd={[Cd.PARTITION_ID]:"Partition ID",[Cd.STORE_SIZE]:"Store size",[Cd.WRITE_SPEED]:"Write speed",[Cd.READ_SPEED]:"Read speed",[Cd.WRITE_LAGS]:"Write lags, duration",[Cd.READ_LAGS]:"Read lags, duration",[Cd.UNCOMMITED_MESSAGES]:"Uncommited messages",[Cd.UNREAD_MESSAGES]:"Unread messages",[Cd.START_OFFSET]:"Start offset",[Cd.END_OFFSET]:"End offset",[Cd.COMMITED_OFFSET]:"Commited offset",[Cd.READ_SESSION_ID]:"Read session ID",[Cd.READER_NAME]:"Reader name",[Cd.PARTITION_HOST]:"Partition host",[Cd.CONNECTION_HOST]:"Connection host"},Id="partitionWriteLag",Dd="partitionWriteIdleTime",Ad={[Id]:"write lag",[Dd]:"write idle time"},_d="consumerWriteLag",Rd="consumerReadLag",kd="consumerReadIdleTime",Od={[_d]:"write lag",[Rd]:"read lag",[kd]:"read idle time"},Md=[Cd.PARTITION_ID,Cd.STORE_SIZE,Cd.WRITE_SPEED,Cd.WRITE_LAGS,Cd.START_OFFSET,Cd.END_OFFSET,Cd.PARTITION_HOST],Ld=Object.values(Cd),qd=({consumers:e,selectedConsumer:t,onSelectedConsumerChange:a,selectDisabled:s,partitions:r,onSearchChange:i,hiddenColumns:o,onHiddenColumnsChange:l,initialColumnsIds:c})=>{const[u,m]=n.useState(""),[p,h]=n.useState("");n.useEffect((()=>{if(!r)return;const e=new RegExp(ha()(p),"i"),t=new RegExp(ha()(u),"i"),a=r.filter((a=>{const{partitionId:n,readerName:s,readSessionId:r,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[s,r,i,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));i(a)}),[p,u,r,i]);const v=n.useMemo((()=>{const t=e&&e.length?e.map((e=>({value:e,content:e}))):[];return[{value:"",content:wd("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===Cd.PARTITION_ID,n={title:Pd[t],selected:Boolean(!o.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[c,o]),y=e=>(0,d.jsx)("div",{className:Yd("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(le.l,{className:Yd("consumer-select"),label:wd("controls.consumerSelector"),options:v,value:[t||""],onUpdate:e=>{a(e[0]||void 0)},filterable:e&&e.length>5,disabled:s||!e||!e.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(Sd.v,{onChange:e=>{h(e)},placeholder:wd("controls.partitionSearch"),className:Yd("search",{partition:!0}),value:p}),(0,d.jsx)(Sd.v,{onChange:e=>{m(e)},placeholder:wd("controls.generalSearch"),className:Yd("search",{general:!0}),value:u}),(0,d.jsx)(Td.O,{popupWidth:242,items:g,showStatus:!0,onUpdate:e=>{const t=[...o];e.forEach((e=>{e.selected||o.includes(e.id)?e.selected&&o.includes(e.id)&&t.splice(o.indexOf(e.id)):t.push(e.id)})),l(t)},sortable:!1},"TableColumnSetup")]})},zd=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),Fd=({title:e})=>(0,d.jsx)("div",{className:zd("multiline"),children:e}),$d=()=>(0,d.jsx)("div",{className:zd("read-session"),children:Pd[Cd.READ_SESSION_ID]}),Ud=()=>(0,d.jsx)(ka,{className:zd("lags"),text:Pd[Cd.WRITE_LAGS],popoverContent:(0,d.jsx)(Va,{text:wd("lagsPopover.writeLags"),type:"write"})}),Qd=()=>(0,d.jsx)(ka,{className:zd("lags"),text:Pd[Cd.READ_LAGS],popoverContent:(0,d.jsx)(Va,{text:wd("lagsPopover.readLags"),type:"read"})}),Bd=()=>(0,d.jsx)(ka,{className:zd("messages"),text:Pd[Cd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:zd("messages-popover-content"),children:wd("headers.unread")})}),Hd=()=>(0,d.jsx)(ka,{className:zd("messages"),text:Pd[Cd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:zd("messages-popover-content"),children:wd("headers.uncommited")})}),Gd=(0,c.cn)("ydb-diagnostics-partitions-columns"),Wd=[{name:Cd.PARTITION_ID,header:(0,d.jsx)(Fd,{title:Pd[Cd.PARTITION_ID]}),sortAccessor:e=>(0,Ar.kf)(e.partitionId)&&Number(e.partitionId),align:Rt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:Cd.STORE_SIZE,header:(0,d.jsx)(Fd,{title:Pd[Cd.STORE_SIZE]}),align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.z3)(e.storeSize)},{name:Cd.WRITE_SPEED,header:Pd[Cd.WRITE_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.writeSpeed})},{name:Cd.READ_SPEED,header:Pd[Cd.READ_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:({row:e})=>(0,d.jsx)(Ca,{data:e.readSpeed})},{name:Cd.WRITE_LAGS,header:(0,d.jsx)(Ud,{}),className:Gd("lags-header"),sub:[{name:Id,header:Ad[Id],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteLag)},{name:Dd,header:Ad[Dd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteIdleTime)}]},{name:Cd.READ_LAGS,header:(0,d.jsx)(Qd,{}),className:Gd("lags-header"),sub:[{name:_d,header:Od[_d],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerWriteLag)},{name:Rd,header:Od[Rd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadLag)},{name:kd,header:Od[kd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadIdleTime)}]},{name:Cd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(Hd,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:Cd.UNREAD_MESSAGES,header:(0,d.jsx)(Bd,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:Cd.START_OFFSET,header:(0,d.jsx)(Fd,{title:Pd[Cd.START_OFFSET]}),sortAccessor:e=>(0,Ar.kf)(e.startOffset)&&Number(e.startOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:Cd.END_OFFSET,header:(0,d.jsx)(Fd,{title:Pd[Cd.END_OFFSET]}),sortAccessor:e=>(0,Ar.kf)(e.endOffset)&&Number(e.endOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:Cd.COMMITED_OFFSET,header:(0,d.jsx)(Fd,{title:Pd[Cd.COMMITED_OFFSET]}),sortAccessor:e=>(0,Ar.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:Cd.READ_SESSION_ID,header:(0,d.jsx)($d,{}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(Os.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Cd.READER_NAME,header:(0,d.jsx)(Fd,{title:Pd[Cd.READER_NAME]}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(Os.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Cd.PARTITION_HOST,header:(0,d.jsx)(Fd,{title:Pd[Cd.PARTITION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(Os.c,{name:e.partitionHost,path:(0,Bc.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Cd.CONNECTION_HOST,header:(0,d.jsx)(Fd,{title:Pd[Cd.CONNECTION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(Os.c,{name:e.connectionHost,path:(0,Bc.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],Vd=Wd.filter((e=>Md.includes(e.name))),Yd=(0,c.cn)("ydb-diagnostics-partitions"),Jd=({path:e,database:t})=>{const a=(0,X.YQ)(),[s,r]=n.useState([]),i=(0,X.N4)((a=>fa(a,e,t))),[o]=(0,X.Nt)(),{selectedConsumer:l}=(0,X.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:m}=ga.useGetTopicQuery({path:e,database:t}),p=u&&void 0===c,{currentData:h,isFetching:v,error:g}=fd.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,X.N4)(fd.K),[f,j]=(0,X.iK)(Z.bs),[T,S]=(e=>{const[t,a]=n.useState([]),[s,r]=n.useState([]);return n.useEffect((()=>{e?(a(Wd),r(Ld)):(a(Vd),r(Md))}),[e]),[t,s]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=jd.aD.useGetPartitionsQuery(N,{pollingInterval:o}),P=w&&void 0===E,I=E,D=n.useMemo((()=>((e=[],t)=>null===e||void 0===e?void 0:e.map((e=>{var a,n;const s=e.partitionNodeId&&t?null===(a=t.get(e.partitionNodeId))||void 0===a?void 0:a.Host:void 0,r=e.connectionNodeId&&t?null===(n=t.get(e.connectionNodeId))||void 0===n?void 0:n.Host:void 0;return{...e,partitionHost:s,connectionHost:r}})))(I,b)),[I,b]);n.useEffect((()=>{const e=!p&&!i,t=l&&i&&!i.includes(l);(e||t)&&a((0,jd.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>T.filter((e=>!f.includes(e.name)))),[T,f]),_=e=>{j(e)},R=e=>{a((0,jd.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:Yd(),children:[(0,d.jsx)("div",{className:Yd("controls"),children:(0,d.jsx)(qd,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:r,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:S})}),O?(0,d.jsx)(de.o,{error:O}):null,(0,d.jsx)("div",{className:Yd("table-wrapper"),children:(0,d.jsx)("div",{className:Yd("table-content"),children:E?k?(0,d.jsx)(St.Q,{className:Yd("loader")}):(0,d.jsx)(ze.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:Yd("table"),data:s,columns:A,settings:Z.N3,emptyDataMessage:wd("table.emptyDataMessage")}):null})})]})};var Kd=a(44433),Zd=a(23812);const Xd=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),eu=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),tu=(0,Be.g4)("ydb-date-range",{ru:eu,en:Xd});function au(e){var t,a,n,s;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(s=e.end)||void 0===s?void 0:s.type)?"m":"l"}const nu=(0,c.cn)("date-range"),su={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},ru=({from:e,to:t,className:a,onChange:s})=>{const r=n.useCallback((e=>null===s||void 0===s?void 0:s(function(e){var t,a,n,s,r,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,nt.bQ)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(s=e.end)||void 0===s?void 0:s.type)?e.end.value.toString():String(null===(r=(0,nt.bQ)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===r?void 0:r.valueOf())}}(e))),[s]),i=n.useMemo((()=>{if(e||t)return function(e){var t,a;const n=(0,nt.eP)(null!==(t=e.from)&&void 0!==t?t:""),s=(0,nt.eP)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,nt.bQ)(Number(e.from))}:null,end:e.to?{type:s?"relative":"absolute",value:s?e.to:(0,nt.bQ)(Number(e.to))}:null}}({from:e,to:t})}),[e,t]),o=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:nu(null,a),children:(0,d.jsx)(Zd.k,{withPresets:!0,className:nu("range-input",{[au(i)]:!0}),timeZone:o,value:i||su,allowNullableValues:!0,size:"m",format:tu("date-time-format"),onUpdate:r,placeholder:`${tu("date-time-format")} - ${tu("date-time-format")}`,withApplyButton:!0})})},iu=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),ou=(0,Be.g4)("ydb-diagnostics-top-queries",{en:iu}),lu={...tl,disableSortReset:!0};function cu(e){const[t,a]=(0,X.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),s=n.useMemo((()=>(0,X.JN)(t,xl)),[t]);return{tableSort:t,handleTableSort:a,backendSort:s}}const du=({database:e,onRowClick:t,rowClassName:a})=>{var s;const[r]=(0,X.Nt)(),i=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:o,handleTableSort:l,backendSort:c}=cu(hl),{currentData:u,isFetching:m,error:p}=Eo.Ke.useGetRunningQueriesQuery({database:e,filters:i,sortOrder:c},{pollingInterval:r}),h=m&&void 0===u,v=(null===u||void 0===u||null===(s=u.resultSets)||void 0===s?void 0:s[0].result)||[],g=n.useMemo((()=>[wl,Dl,Tl,Al].map((e=>({...e,sortable:bl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(p)}):null,(0,d.jsx)(Fe.L.Table,{loading:h,children:(0,d.jsx)(ze.l,{emptyDataMessage:ou("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:lu,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},uu=({database:e,onRowClick:t,rowClassName:a})=>{var s,r;const[i]=(0,X.Nt)(),o=(0,X.N4)((e=>e.executeTopQueries)),{tableSort:l,handleTableSort:c,backendSort:u}=cu(rl),{currentData:m,isFetching:p,error:h}=Eo.Ke.useGetTopQueriesQuery({database:e,filters:o,sortOrder:u},{pollingInterval:i}),v=p&&void 0===m,g=(null===m||void 0===m||null===(s=m.resultSets)||void 0===s||null===(r=s[0])||void 0===r?void 0:r.result)||[],y=n.useMemo((()=>[Pl,jl,Tl,Sl,Il,Nl,El,wl].map((e=>({...e,sortable:bl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(h)}):null,(0,d.jsx)(Fe.L.Table,{loading:v,children:(0,d.jsx)(ze.l,{emptyDataMessage:ou("no-data"),columnsWidthLSKey:sl,columns:y,data:g||[],settings:lu,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},mu=(0,c.cn)("kv-top-queries"),pu={top:"top",running:"running"},hu=[{value:pu.top,get content(){return ou("mode_top")}},{value:pu.running,get content(){return ou("mode_running")}}],vu=xt.z.nativeEnum(pu).catch(pu.top),gu=({tenantName:e})=>{const t=(0,X.YQ)(),a=(0,Qs.zy)(),s=(0,Qs.W6)(),[i=pu.top,o]=(0,r.useQueryParam)("queryMode",r.StringParam),l=vu.parse(i),c=l===pu.top,u=(0,X.N4)((e=>e.executeTopQueries)),m=Jo(n.useCallback((e=>{t((0,wo.iZ)({input:e})),t((0,wo.Xb)(!1));const n=(0,ye.mA)(a),r=(0,sa.YL)({...n,[ae.Dt]:ae.Dg.query,[sa.vh.queryTab]:ae.tQ.newQuery});s.push(r)}),[t,s,a])),p=c?uu:du;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsxs)(Fe.L.Controls,{children:[(0,d.jsx)(Kd.a,{options:hu,value:l,onUpdate:o}),(0,d.jsx)(Qe.v,{value:u.text,onChange:e=>{t((0,Eo.TX)({text:e}))},placeholder:ou("filter.text.placeholder"),className:mu("search")}),c?(0,d.jsx)(ru,{from:u.from,to:u.to,onChange:e=>{t((0,Eo.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:mu("row")})]})};var yu=a(46496),xu=a(87747);const bu=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),fu=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),ju=(0,Be.g4)("ydb-diagnostics-top-shards",{ru:fu,en:bu}),Tu=({value:e,onChange:t})=>{const a=e.mode===xu.h.Immediate?void 0:e.from,s=e.mode===xu.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Kd.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(xu.h,e)){const t=Object.values(xu.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(Kd.a.Option,{value:xu.h.Immediate,children:ju("filters.mode.immediate")}),(0,d.jsx)(Kd.a.Option,{value:xu.h.History,children:ju("filters.mode.history")})]}),(0,d.jsx)(ru,{from:a,to:s,onChange:e=>{t({mode:xu.h.History,...e})}})]})};var Su=a(49228);const Nu=(0,c.cn)("top-shards"),Eu={...Z.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:-1};function wu(e){return e.to="now",e.from="now-1h",e}const Cu=({tenantName:e,path:t})=>{var a,s;const r=(0,Rl.x)("ShardsTable"),i=(0,X.YQ)(),[o]=(0,X.Nt)(),l=(0,X.N4)((e=>e.shardsWorkload)),[c,u]=n.useState((()=>{const e={...l};return e.mode||(e.mode=xu.h.Immediate),e.from||e.to||wu(e),e})),{tableSort:m,handleTableSort:p,backendSort:h}=function(){const[e,t]=(0,X.GY)({initialSortColumn:Su.Fk.CPUCores,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,X.JN)(e,Su.LK)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:v,isFetching:g,error:y}=yu.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:h,filters:c},{pollingInterval:o}),x=g&&void 0===v,b=(null===v||void 0===v||null===(a=v.resultSets)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.result)||[],f=e=>{const t={...e};if(!l.from&&!l.to&&!e.from&&!e.to)switch(e.mode){case xu.h.Immediate:t.from=t.to=void 0;break;case xu.h.History:wu(t)}i((0,yu.rF)(e)),u((e=>({...e,...t})))},j=n.useMemo((()=>{let e;return e=c.mode===xu.h.History?["Path","CPUCores","DataSize","TabletId","NodeId","PeakTime","InFlightTxCount","IntervalEnd"]:["Path","CPUCores","DataSize","TabletId","NodeId","InFlightTxCount"],e}),[c.mode]);return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Tu,{value:c,onChange:f})}),c.mode===xu.h.History&&(0,d.jsx)("div",{className:Nu("hint"),children:ju("description")}),y?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(y)}):null,(0,d.jsx)(Fe.L.Table,{loading:x,children:y&&!b?null:(0,d.jsx)(r,{database:e,schemaPath:t,columnsIds:j,data:b,settings:Eu,onSort:p,sortOrder:m})})]})},Pu=(0,c.cn)("kv-tenant-diagnostics");const Iu=function(e){const t=n.useRef(null),a=(0,X.YQ)(),{diagnosticsTab:i=ae.iJ.overview}=(0,X.N4)((e=>e.tenant)),[o]=(0,r.useQueryParams)({database:r.StringParam,schema:r.StringParam,backend:r.StringParam,clusterName:r.StringParam}),l=M(e.type)?e.path:e.tenantName,c=M(e.type)||e.path===e.tenantName,u=(0,ie._Q)(),m=c?(({hasFeatureFlags:e})=>e?xc:xc.filter((e=>e.id!==ae.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&Cc[p]||jc;var p;let h=m.find((e=>e.id===i));return h||(h=m[0]),n.useEffect((()=>{h&&h.id!==i&&a((0,oe.WO)(h.id))}),[h,i,a]),(0,d.jsxs)("div",{className:Pu(),children:[h?(0,d.jsx)(s.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:Pu("header-wrapper"),children:(0,d.jsxs)("div",{className:Pu("tabs"),children:[(0,d.jsx)(ne.t,{size:"l",items:m,activeTab:null===(e=h)||void 0===e?void 0:e.id,wrapTo:({id:e},t)=>{const a=(0,sa.YL)({...o,[sa.vh.diagnosticsTab]:e});return(0,d.jsx)(se.N_,{to:a,className:Pu("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(re.E,{onManualRefresh:()=>{const e=new CustomEvent("diagnosticsRefresh");document.dispatchEvent(e)}})]})})})(),(0,d.jsx)("div",{className:Pu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:s}=e;switch(null===(a=h)||void 0===a?void 0:a.id){case ae.iJ.overview:return(0,d.jsx)(ac,{type:n,tenantName:l,path:s,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ae.iJ.schema:return(0,d.jsx)(na,{path:s,tenantName:l,type:n,extended:!0});case ae.iJ.topQueries:return(0,d.jsx)(gu,{tenantName:l});case ae.iJ.topShards:return(0,d.jsx)(Cu,{tenantName:l,path:s});case ae.iJ.nodes:return(0,d.jsx)(Le.G,{path:s,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.tablets:return(0,d.jsx)(Tt.C,{path:s,database:l});case ae.iJ.storage:return(0,d.jsx)(jt.z,{database:l,parentRef:t});case ae.iJ.network:return(0,d.jsx)(bd,{path:s,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.describe:return(0,d.jsx)(hs,{path:s,database:l,type:n});case ae.iJ.hotKeys:return(0,d.jsx)(qc,{path:s,database:l});case ae.iJ.graph:return(0,d.jsx)(Me,{path:s,database:l});case ae.iJ.consumers:return(0,d.jsx)(mn,{path:s,database:l,type:n});case ae.iJ.partitions:return(0,d.jsx)(Jd,{path:s,database:l});case ae.iJ.configs:return(0,d.jsx)(ma,{database:l});case ae.iJ.operations:return(0,d.jsx)(ft,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},Du=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","preview.truncated":"truncated","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","action.run":"Run","action.explain":"Explain","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query was executed with modified settings: ","banner.query-stopped.message":"Data is not up to date because the request was not completed.","banner.query-stopped.never-show":"Never show again","toaster.stop-error":"Something went wrong. Unable to stop request processing. Please wait.","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),Au=(0,Be.g4)("ydb-query-editor",{en:Du}),_u=(0,c.cn)("ydb-queries-history");const Ru=function({changeUserInput:e}){const t=(0,X.YQ)(),a=(0,X.N4)(wo.py),n=(0,X.N4)(wo.jY),s=[...a].reverse(),r=Jo((a=>{e({input:a.queryText}),t((0,wo.Xb)(!1)),t((0,oe.sH)(ae.tQ.newQuery))})),i=[{name:"queryText",header:Au("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:_u("query"),children:(0,d.jsx)(Zo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:Au("history.endTime"),render:({row:e})=>e.endTime?(0,he.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:Au("history.duration"),render:({row:e})=>e.durationUs?(0,vt.Xo)((0,vt.Jc)(e.durationUs)):"-",align:"right",width:150,sortable:!1}];return(0,d.jsxs)(Fe.L,{className:_u(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{value:n,onChange:e=>{t((0,wo.Ni)(e))},placeholder:Au("filter.text.placeholder"),className:_u("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:s,settings:tl,emptyDataMessage:Au(n?"history.empty-search":"history.empty"),onRowClick:e=>r(e),rowClassName:()=>_u("table-row")})})]})};var ku=a(13847),Ou=a(72093);function Mu(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const Lu=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","button-cancel":"Cancel","form.timeout.seconds":"sec","form.limit.rows":"rows","form.timeout.disabled":"Not available to turn off in this query type","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),qu=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.limit.rows":"\u0441\u0442\u0440\u043e\u043a","form.timeout.disabled":"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0442\u0438\u043f\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),zu=(0,Be.g4)("ydb-query-settings-dialog",{en:Lu,ru:qu}),Fu=[{value:Nt.Wg.implicit,content:Nt._d[Nt.Wg.implicit],text:Au("transaction-mode-description.implicit"),isDefault:!0},{value:Nt.Wg.serializable,content:Nt._d[Nt.Wg.serializable],text:Au("transaction-mode-description.serializable")},{value:Nt.Wg.onlinero,content:Nt._d[Nt.Wg.onlinero],text:Au("transaction-mode-description.onlinero")},{value:Nt.Wg.stalero,content:Nt._d[Nt.Wg.stalero],text:Au("transaction-mode-description.stalero")},{value:Nt.Wg.snapshot,content:Nt._d[Nt.Wg.snapshot],text:Au("transaction-mode-description.snapshot")}],$u=[{value:Nt.ei.query,content:Nt.om[Nt.ei.query],text:Au("method-description.query"),isDefault:!0},{value:Nt.ei.script,content:Nt.om[Nt.ei.script],text:Au("method-description.script")},{value:Nt.ei.scan,content:Nt.om[Nt.ei.scan],text:Au("method-description.scan")},{value:Nt.ei.data,content:Nt.om[Nt.ei.data],text:Au("method-description.data")},{value:Nt.ei.pg,content:Nt.om[Nt.ei.pg],text:Au("method-description.pg")}],Uu=[{value:Nt.pE.none,content:Nt.Pn[Nt.pE.none],text:Au("statistics-mode-description.none"),isDefault:!0},{value:Nt.pE.basic,content:Nt.Pn[Nt.pE.basic],text:Au("statistics-mode-description.basic")},{value:Nt.pE.full,content:Nt.Pn[Nt.pE.full],text:Au("statistics-mode-description.full")},{value:Nt.pE.profile,content:Nt.Pn[Nt.pE.profile],text:Au("statistics-mode-description.profile")}],Qu=[{value:Nt.PB.off,content:Nt.PX[Nt.PB.off],text:Au("tracing-level-description.off"),isDefault:!0},{value:Nt.PB.toplevel,content:Nt.PX[Nt.PB.toplevel],text:Au("tracing-level-description.toplevel")},{value:Nt.PB.basic,content:Nt.PX[Nt.PB.basic],text:Au("tracing-level-description.basic")},{value:Nt.PB.detailed,content:Nt.PX[Nt.PB.detailed],text:Au("tracing-level-description.detailed")},{value:Nt.PB.diagnostic,content:Nt.PX[Nt.PB.diagnostic],text:Au("tracing-level-description.diagnostic")},{value:Nt.PB.trace,content:Nt.PX[Nt.PB.trace],text:Au("tracing-level-description.trace")}],Bu={transactionMode:{title:zu("form.transaction-mode"),options:Fu},queryMode:{title:zu("form.query-mode"),options:$u},statisticsMode:{title:zu("form.statistics-mode"),options:Uu},tracingLevel:{title:zu("form.tracing-level"),options:Qu},timeout:{title:zu("form.timeout")},limitRows:{title:zu("form.limit-rows")}};function Hu({currentSettings:e,defaultSettings:t}){const a=Mu(e,t),n={};return a.forEach((t=>{const a=Bu[t],s=e[t];if("options"in a){var r;const e=null===(r=a.options.find((e=>e.value===s)))||void 0===r?void 0:r.content;e&&(n[a.title]=e)}else s&&(n[a.title]=String(s))})),n}var Gu=a(80967);const Wu=()=>{const[e,t]=(0,Gu.i)(Z.fr);let a;try{a=Nt.id.parse(e)}catch{a=void 0}return[a,t]};var Vu=a(95312);const Yu=()=>{const[e,t]=(0,Gu.i)(Z.YQ),[a]=Wu(),[n]=(0,Vu.X)(),s=a?Mu(a,Nt.jU):[],r=n?Mu(n,Nt.jU):[],i=s.length>0,o=a?Hu({currentSettings:a,defaultSettings:Nt.jU}):{},l=n?Hu({currentSettings:n,defaultSettings:Nt.jU}):{},c=e&&Date.now()-e<1e3*Z.Du;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:r,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:s,changedLastExecutionSettingsDescriptions:o}};var Ju=a(53472);let Ku=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const Zu=e=>{localStorage.setItem(e,"true")},Xu=e=>{localStorage.removeItem(e)};function em(e){return function(t,a){switch(a){case Ku.triggerCollapse:return Zu(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case Ku.triggerExpand:return Xu(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case Ku.clear:return Xu(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const tm=(0,c.cn)("kv-pane-visibility-button");function am({onCollapse:e,onExpand:t,isCollapsed:a,initialDirection:s="top",className:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(lt.m,{title:"Collapse",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e,className:tm({hidden:a,type:"collapse"},r),children:(0,d.jsx)(ct.I,{data:Ju.A,className:tm({[s]:!0})})})}),(0,d.jsx)(lt.m,{title:"Expand",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:t,className:tm({hidden:!a,type:"expand"},r),children:(0,d.jsx)(ct.I,{data:Ju.A,className:tm({[s]:!0},"rotate")})})})]})}var nm=a(31819),sm=a(72976);const rm=function({disabled:e}){const t=(0,X.YQ)();return(0,d.jsx)(vn.$,{onClick:()=>{t((0,sm.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(ct.I,{data:nm.A})})};var im,om=a(98392);function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},lm.apply(null,arguments)}const cm=function(e){return n.createElement("svg",lm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),im||(im=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var dm;const um=(0,c.cn)("ydb-fullscreen"),mm=null!==(dm=document.getElementById("fullscreen-root"))&&void 0!==dm?dm:void 0;const pm=function({children:e,className:t}){const a=(0,X.N4)((e=>e.fullscreen)),s=(0,X.YQ)(),r=n.useCallback((()=>{s((0,sm.sM)())}),[s]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[r]);const[i,o]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===mm||void 0===mm||mm.appendChild(e),e.style.display="contents",o(e),()=>{o(null),e.remove()}}),[]);const l=n.useRef(null);return n.useLayoutEffect((()=>{var e;i&&(a?null===mm||void 0===mm||mm.appendChild(i):null===(e=l.current)||void 0===e||e.appendChild(i))}),[i,a]),i?(0,d.jsx)("div",{ref:l,style:{display:"contents"},children:(0,d.jsx)(om.Z,{container:i,children:(0,d.jsxs)("div",{className:um({fullscreen:a},t),children:[(0,d.jsx)(vn.$,{onClick:r,view:"raised",className:um("close-button"),children:(0,d.jsx)(ct.I,{data:cm})}),(0,d.jsx)("div",{className:um("content"),children:e})]})})}):null},hm=n.memo((function(e){const{className:t,value:a}=e,n=(0,X.YQ)();return(0,d.jsx)("span",{className:bm("cell",t),onClick:e=>n((0,pe.DK)(e.target,a,"cell")),children:a})})),vm=JSON.parse('{"empty":"Table is empty"}'),gm=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),ym=(0,Be.g4)("ydb-query-result-table",{ru:gm,en:vm}),xm={...Z.N3,stripedRows:!0,sortable:!1,displayIndices:!0},bm=(0,c.cn)("ydb-query-result-table"),fm=(e,t)=>t,jm=(e,t)=>t+1,Tm=e=>{const{columns:t,data:a,settings:s}=e,r=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((({name:e,type:t})=>{const n=(0,Nt.nh)(t);return{name:e,width:kt({data:a,name:e}),align:"number"===n?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:t})=>(0,d.jsx)(hm,{value:String(t[e])})}}))})(t,a):(e=>{if(null===e||void 0===e||!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:kt({data:t,name:a}),align:(0,Ar.kf)(e[0][a])?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:e})=>(0,d.jsx)(hm,{value:String(e[a])})})))})(a)),[a,t]),i=n.useMemo((()=>({...xm,...s})),[s]);return Array.isArray(a)?r.length?(0,d.jsx)(ze.l,{data:a,columns:r,settings:i,rowKey:fm,visibleRowIndex:jm,wrapperClassName:bm("table-wrapper")}):(0,d.jsx)("div",{className:bm("message"),children:ym("empty")}):null},Sm=H.F.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async({query:e,database:t,action:a,limitRows:n},{signal:s})=>{try{const r=await window.api.viewer.sendQuery({query:e,database:t,action:a,limit_rows:n},{signal:s,withRetries:!0});return(0,Nt.We)(r)?{error:r}:{data:(0,Nt.fW)(r)}}catch(r){return{error:r||new Error("Unauthorized")}}},providesTags:["PreviewData"]})}),overrideExisting:"throw"}),Nm=(0,c.cn)("kv-preview"),Em=({database:e,path:t,type:a})=>{var n,s,r;const i=(0,X.YQ)(),o=D(a),l=`select * from \`${t}\` limit 101`,{currentData:c,isFetching:u,error:m}=Sm.useSendQueryQuery({database:e,query:l,action:U(a)?"execute-query":"execute-scan",limitRows:100},{skip:!o,refetchOnMountOrArgChange:!0}),p=u&&void 0===c,h=null!==(n=null===c||void 0===c||null===(s=c.resultSets)||void 0===s?void 0:s[0])&&void 0!==n?n:{},v=()=>{i((0,K.o)(!1))};if(p)return(0,d.jsx)("div",{className:Nm("loader-container"),children:(0,d.jsx)(Br.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:Nm("message-container","error"),children:(0,Nt.Cb)(m)})):g=(0,d.jsx)("div",{className:Nm("message-container"),children:Au("preview.not-available")});const y=null!==(r=g)&&void 0!==r?r:(0,d.jsx)("div",{className:Nm("result"),children:(0,d.jsx)(Tm,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:Nm(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:Nm("header"),children:[(0,d.jsxs)("div",{className:Nm("title"),children:[Au("preview.title"),(0,d.jsxs)(it.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${Au("preview.truncated")} `:"","(",null!==(e=null===(a=h.result)||void 0===a?void 0:a.length)&&void 0!==e?e:0,")"]}),(0,d.jsx)("div",{className:Nm("table-name"),children:t})]}),(0,d.jsxs)("div",{className:Nm("controls-left"),children:[(0,d.jsx)(rm,{disabled:Boolean(m)}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:v,title:Au("preview.close"),children:(0,d.jsx)(ct.I,{data:Pc.A,size:18})})]})]})})(),(0,d.jsx)(pm,{children:y})]})},wm=H.F.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async({queryId:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({database:t,action:"cancel-query",query_id:e},{signal:a});if((0,Nt.We)(n))return{error:n};return{data:(0,Nt.fW)(n)}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});var Cm=a(13066);async function Pm(e){var t;let a=1;const n=async()=>{if(!window.ydbEditor){if(!a)return!1;await new Promise((e=>{window.setTimeout(e,100)})),a-=1,n()}return!0};await n()?null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e):console.error("Monaco editor not found")}function Im(e){return e.replace(/\$/g,"\\$")}const Dm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}/my_row_table\``:"${1:my_row_table}"} (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,Am=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}/my_column_table\``:"${1:my_column_table}"} (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,_m=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',Rm=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-transfer\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\n\\$l = (\\$x) -> {\n return [\n <|\n offset:\\$x._offset,\n message:\\$x._data\n |>\n ];\n};\n\nCREATE TRANSFER my_transfer\nFROM ${1:<original_topic>} TO ${2:<target_table>} USING \\$l\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',km=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,Om=e=>`-- documentation about partitioning https://ydb.tech/docs/en/concepts/datamodel/table#partitioning\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"} SET \n(\n AUTO_PARTITIONING_BY_LOAD = ENABLED, -- If a partition consumes more than 50% of the CPU for a few dozens of seconds, it is enqueued for splitting.\n AUTO_PARTITIONING_BY_SIZE = ENABLED, -- If a partition size exceeds the value specified by the AUTO_PARTITIONING_PARTITION_SIZE_MB parameter, it is enqueued for splitting.\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 10, -- Partitions are merged only if their actual number exceeds the value specified by this parameter.\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 100 -- Partitions are split only if their number doesn't exceed the value specified by this parameter.\n)`,Mm=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return"`"+Im(null!==(t=e.name)&&void 0!==t?t:"")+"`"})).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},Lm=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>{var t;return`\`${Im(null!==(t=e.name)&&void 0!==t?t:"")}\``})).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},qm=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:my_table}"};`,zm=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${Im(t)}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${Im(e.relativePath)}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},Fm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}/my_topic\``:"${1:my_topic}"} (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,$m=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_topic>}"}\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,Um=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_topic>}"};`,Qm=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}/my_view\``:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,Bm=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_view>}"};`,Hm=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_replication>}"};`,Gm=e=>`DROP TRANSFER ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_transfer>}"};`,Wm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,Vm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-transfer\n\n\\$l = (\\$x) -> {\n return [\n <|\n offset:\\$x._offset,\n message:\\$x._data\n |>\n ];\n};\n\nALTER TRANSFER ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_transfer>}"} \nSET USING \\$l;`,Ym=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,Jm=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${Im(a)}\``:"${1:<my_table>}"} DROP INDEX ${Im(null!==t&&void 0!==t?t:"")||"${2:<index_name>}"};`},Km=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`,Zm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",Xm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",ep=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,tp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<group_name>}\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",ap=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<user_name>}\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",np=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.`,sp=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(null===e||void 0===e?void 0:e.relativePath)}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`,rp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,ip=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Im(e.relativePath)}\``:"${1:<my_table>}"};`,op=JSON.parse('{"button.new-sql":"New query","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.transfer":"Transfer","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create changefeed","action.create-async-replication":"Create async replication","action.create-transfer":"Create transfer","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication","action.alter-transfer":"Alter transfer","action.drop-transfer":"Drop transfer"}'),lp=(0,Be.g4)("ydb-new-sql",{en:op});function cp(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(Dm),createColumnTable:t(Am),createAsyncReplication:t(_m),alterAsyncReplication:t(Wm),dropAsyncReplication:t(Hm),createTransfer:t(Rm),alterTransfer:t(Vm),dropTransfer:t(Gm),alterTable:t(km),selectQuery:t(Mm),upsertQuery:t(Lm),createExternalTable:t(zm),dropExternalTable:t(qm),createTopic:t(Fm),alterTopic:t($m),dropTopic:t(Um),createView:t(Qm),dropTable:t(ip),deleteRows:t(ep),updateTable:t(rp),createUser:t(Xm),createGroup:t(Zm),createCdcStream:t(Km),grantPrivilege:t(np),revokePrivilege:t(sp),dropUser:t(ap),dropGroup:t(tp),addTableIndex:t(Ym),dropTableIndex:t(Jm)}})(Jo(n.useCallback((e=>{Pm(e)}),[]))),t=[{text:lp("menu.tables"),items:[{text:lp("action.create-row-table"),action:e.createRowTable},{text:lp("action.create-column-table"),action:e.createColumnTable},{text:lp("action.create-external-table"),action:e.createExternalTable},{text:lp("action.upsert-to-table"),action:e.upsertQuery},{text:lp("action.update-table"),action:e.updateTable},{text:lp("action.alter-table"),action:e.alterTable},{text:lp("action.select-rows"),action:e.selectQuery},{text:lp("action.delete-rows"),action:e.deleteRows},{text:lp("action.drop-table"),action:e.dropTable},{text:lp("action.drop-external-table"),action:e.dropExternalTable},{text:lp("action.add-index"),action:e.addTableIndex},{text:lp("action.drop-index"),action:e.dropTableIndex}]},{text:lp("menu.topics"),items:[{text:lp("action.create-topic"),action:e.createTopic},{text:lp("action.alter-topic"),action:e.alterTopic},{text:lp("action.drop-topic"),action:e.dropTopic}]},{text:lp("menu.replication"),items:[{text:lp("action.create-async-replication"),action:e.createAsyncReplication},{text:lp("action.alter-async-replication"),action:e.alterAsyncReplication},{text:lp("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:lp("menu.transfer"),items:[{text:lp("action.create-transfer"),action:e.createTransfer},{text:lp("action.alter-transfer"),action:e.alterTransfer},{text:lp("action.drop-transfer"),action:e.dropTransfer}]},{text:lp("menu.capture"),items:[{text:lp("action.create-cdc-stream"),action:e.createCdcStream}]},{text:lp("menu.users"),items:[{text:lp("action.create-user"),action:e.createUser},{text:lp("action.create-group"),action:e.createGroup},{text:lp("action.drop-user"),action:e.dropUser},{text:lp("action.drop-group"),action:e.dropGroup},{text:lp("action.grant-privilege"),action:e.grantPrivilege},{text:lp("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(ko.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(vn.$,{...e,children:[lp("button.new-sql"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Cm.A,{})})]}),popupProps:{placement:"top"}})}const dp=H.F.injectEndpoints({endpoints:e=>({getCodeAssistSuggestions:e.query({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.getCodeAssistSuggestions(e)}}throw new Error("Method is not implemented.")}catch{return{data:{items:[]}}}}}),acceptSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Accepted:{AcceptedText:e.acceptedText,ConvertedText:e.acceptedText,Timestamp:Date.now(),RequestId:e.requestId}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),discardSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Discarded:{RequestId:e.requestId,Timestamp:Date.now(),DiscardReason:"OnCancel",DiscardedText:e.suggestionText,CacheHitCount:e.hitCount}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),ignoreSuggestion:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistTelemetry({Ignored:{RequestId:e.requestId,Timestamp:Date.now(),IgnoredText:e.suggestionText}})}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}}),sendUserQueriesData:e.mutation({queryFn:async e=>{try{if(window.api.codeAssist){return{data:await window.api.codeAssist.sendCodeAssistOpenTabs(e)}}throw new Error("Method is not implemented.")}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),up={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const mp=new class{constructor(){this.query=void 0,this.query=null}registerQuery(e){this.query=e}abortQuery(){this.query&&(this.query.abort(),this.query=null)}};var pp=a(54503),hp=a(90851),vp=a(27738),gp=a(1155);const yp=(0,c.cn)("ydb-query-settings-description"),xp=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:yp("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:yp("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]}),bp=(0,c.cn)("ydb-query-editor-button"),fp={Run:e=>(0,d.jsxs)(vn.$,{...e,className:bp("run-button"),children:[(0,d.jsx)(ct.I,{data:pp.A,size:16}),Au("action.run")]}),Stop:e=>(0,d.jsxs)(vn.$,{...e,className:bp("stop-button",{error:e.error}),children:[(0,d.jsx)(ct.I,{data:rt.A,size:16}),Au("action.stop")]}),Explain:e=>(0,d.jsxs)(vn.$,{...e,className:bp("explain-button"),children:[(0,d.jsx)(ct.I,{data:hp.A,size:16}),Au("action.explain")]}),Settings:({onClick:e,isLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=Yu(),s=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(gp.m,{disabled:0===a.length,content:(0,d.jsx)(xp,{prefix:Au("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(vn.$,{onClick:e,loading:t,className:bp("gear-button"),...s,children:[(0,d.jsx)(ct.I,{data:vp.A,size:16}),s?(0,d.jsxs)("div",{className:bp("changed-settings"),children:["(",a.length,")"]}):null]})})}},jp=(0,c.cn)("ydb-query-editor-controls"),Tp=({type:e,isHighlighted:t,isLoading:a,isStoppable:n,controlsDisabled:s,onActionClick:r,renderStopButton:i})=>{if(n&&a&&t)return i();const o="run"===e?fp.Run:fp.Explain;return(0,d.jsx)(o,{onClick:r,disabled:s,loading:a,view:t?"action":void 0})},Sp=({disabled:e,isLoading:t,highlightedAction:a,queryId:s,tenantName:r,isStreamingEnabled:i,handleSendExecuteClick:o,onSettingsButtonClick:l,handleGetExplainQueryClick:c})=>{const u=(0,X.N4)(wo.Wp),[m,p]=wm.useCancelQueryMutation(),[h,v]=n.useState(t),g=n.useRef(null),y=n.useRef(null),[x,b]=n.useState(!1),f=n.useCallback((async()=>{try{i?mp.abortQuery():s&&await m({queryId:s,database:r}).unwrap()}catch{ht({name:"stop-error",title:"",content:Au("toaster.stop-error"),type:"error",autoHiding:5e3}),b(!0),y.current&&window.clearTimeout(y.current),y.current=window.setTimeout((()=>{b(!1)}),500)}}),[i,s,m,r]),j="execute"===a,T="explain"===a,S=n.useCallback((()=>{g.current&&window.clearTimeout(g.current),v(!1),g.current=window.setTimeout((()=>{v(!0)}),400)}),[]),N=n.useCallback((()=>{o(u),S()}),[o,u,S]),E=n.useCallback((()=>{c(u),S()}),[c,u,S]);n.useEffect((()=>()=>{g.current&&window.clearTimeout(g.current),y.current&&window.clearTimeout(y.current)}),[]);const w=e||!u,C=()=>(0,d.jsx)(fp.Stop,{loading:p.isLoading,error:x,onClick:f,view:"action"});return(0,d.jsxs)("div",{className:jp(),children:[(0,d.jsxs)("div",{className:jp("left"),children:[(0,d.jsx)(Tp,{type:"run",isHighlighted:j,isLoading:t,isStoppable:h,controlsDisabled:w,onActionClick:N,renderStopButton:C}),(0,d.jsx)(Tp,{type:"explain",isHighlighted:T,isLoading:t,isStoppable:h,controlsDisabled:w,onActionClick:E,renderStopButton:C}),(0,d.jsx)(fp.Settings,{onClick:l,isLoading:t})]}),(0,d.jsxs)("div",{className:jp("right"),children:[(0,d.jsx)(cp,{}),(0,d.jsx)(Uo,{buttonProps:{disabled:e}})]})]})};var Np=a(64280),Ep=a(5744),wp=a(80953);function Cp(e){var t;if(function(e){return"object"===typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}(e))return!0;if((0,ee.cH)(e)&&e.isCancelled)return!0;const a=(0,Nt.KH)(e);return(0,Nt.We)(a)&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}const Pp=(0,c.cn)("kv-query-execution-status"),Ip=({className:e,error:t,loading:a})=>{let s,r,i,o;const{startTime:l,endTime:c}=(0,X.N4)(wo.$u),[u,m]=n.useState(l?(c||Date.now())-l:0),p=Cp(t),h=n.useCallback((()=>{if(l){const e=c||Date.now();m(e-l)}}),[c,l]);n.useEffect((()=>{let e;return h(),a?e=setInterval(h,Z.KF):clearInterval(e),()=>{clearInterval(e)}}),[a,h]);const v=n.useMemo((()=>u>Z.Jg*Z.KF?(0,nt.p0)(u).format("hh:mm:ss"):(0,nt.p0)(u).format("mm:ss")),[u]);if(a)i="info",o="info-heavy",s=(0,d.jsx)(wp.t,{size:"xs"}),r="Running";else if((0,ee.F0)(t)&&"ECONNABORTED"===t.code)i="danger",o="danger-heavy",s=(0,d.jsx)(ct.I,{data:Np.A}),r="Connection aborted";else if(p)i="warning",o="warning-heavy",s=(0,d.jsx)(ct.I,{data:rt.A,className:Pp("result-status-icon",{error:!0})}),r="Stopped";else{const e=Boolean(t);i=e?"danger":"success",o=e?"danger-heavy":"positive-heavy",s=(0,d.jsx)(ct.I,{data:e?Ki.A:Ep.A,className:Pp("result-status-icon",{error:e})}),r=e?"Failed":"Completed"}return(0,d.jsx)(Ct.J,{theme:i,size:"m",className:Pp(null,e),icon:s,value:v,children:(0,d.jsx)(it.E,{color:o,children:r})})};var Dp=a(6156);const Ap=(0,c.cn)("ydb-query-settings-banner");function _p(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=Yu();return e?(0,d.jsx)(Dp.F,{className:Ap(),theme:"info",align:"baseline",style:{paddingTop:11,paddingBottom:11},message:(0,d.jsx)(xp,{prefix:Au("banner.query-settings.message"),querySettings:t}),onClose:a}):null}const Rp=(0,c.cn)("ydb-query-stopped-banner");function kp(){const[e,t]=(0,X.iK)(Z.J0),a=n.useCallback((()=>{t(!0)}),[t]);return e?null:(0,d.jsx)(Dp.F,{className:Rp(),theme:"normal",align:"center",style:{paddingTop:11,paddingBottom:11},message:(0,d.jsx)("div",{className:Rp("message"),children:Au("banner.query-stopped.message")}),layout:"horizontal",actions:(0,d.jsx)(Dp.F.Actions,{children:(0,d.jsx)(Dp.F.Action,{view:"normal",onClick:a,children:Au("banner.query-stopped.never-show")})})})}function Op(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Mp=a(6376);const Lp=(0,c.cn)("ydb-query-ast"),qp={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function zp({ast:e,theme:t}){return(0,d.jsx)("div",{className:Lp(),children:(0,d.jsx)(Mp.default,{language:"s-expression",value:e,options:qp,theme:`vs-${t}`})})}var Fp=a(73253);function $p(e){const t=n.useRef(null),a=n.useId(),{data:s,opts:r,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,Fp.og)(e.id,s,r,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[s,r,i]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const Up={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},Qp={node:Fp.SO};function Bp(e){return(0,d.jsx)($p,{...e,opts:Up,shapes:Qp})}const Hp=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","description.empty-result":"There is no {{activeSection}} for the request","action.result":"Result","action.stats":"Stats","action.schema":"Computation Graph","action.explain-plan":"Explain","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result","tooltip_actions":"Actions","text_open-execution-plan":"Open Execution Plan","text_open-execution-plan_description":"New tab","text_download":"Download Execution Plan","text_download_description":"SVG","text_diagnostics":"Download Diagnostics","text_diagnostics_description":"JSON","text_error-plan-svg":"Error: {{error}}","error.title":"Query Failed","error.description":"An error occurred, please see the Result tab for details","stopped.title":"Query stopped","stopped.description":"Query was stopped"}'),Gp=(0,Be.g4)("ydb-execute-result",{en:Hp}),Wp=(0,c.cn)("ydb-query-result-stub-message");function Vp({message:e}){return(0,d.jsx)("div",{className:Wp(null),children:e})}const Yp=(0,c.cn)("ydb-query-explain-graph");function Jp({explain:e={},theme:t}){const{links:a,nodes:s}=e,r=n.useMemo((()=>({links:a,nodes:s})),[a,s]);return function(e){return Boolean(e.links&&e.nodes&&e.nodes.length)}(r)?(0,d.jsx)("div",{className:Yp("canvas-container"),children:(0,d.jsx)(Bp,{data:r},t)}):(0,d.jsx)(Vp,{message:Gp("description.graph-is-not-supported")})}var Kp=a(7450);const Zp=(0,c.cn)("query-info-dropdown");var Xp=a(112),eh=a(92159);const th=H.F.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async({plan:e,database:t},{signal:a})=>{try{return{data:await window.api.viewer.planToSvg({database:t,plan:e},{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function ah(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}const nh=JSON.parse('{"unknown-error":"An unknown error occurred"}'),sh=(0,Be.g4)("ydb-errors",{en:nh});function rh({title:e,description:t}){return(0,d.jsxs)("div",{className:Zp("menu-item-content"),children:[(0,d.jsx)(it.E,{variant:"body-1",children:e}),(0,d.jsx)(it.E,{variant:"body-1",color:"secondary",children:t})]})}function ih({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:s}){const[r,i]=n.useState(null),[o,{isLoading:l}]=th.useLazyPlanToSvgQueryQuery();n.useEffect((()=>()=>{r&&URL.revokeObjectURL(r)}),[r]);return{isLoading:l,items:n.useMemo((()=>{const n=[],l=e.plan;if(l&&a){const e=()=>r?Promise.resolve(r):o({plan:l,database:t}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);return i(a),a})).catch((e=>{const t=function(e){if("string"===typeof e)return e;if(!e)return sh("unknown-error");if((0,ee.TX)(e))return e.message;if((0,ee.cH)(e)){if(e.data&&"object"===typeof e.data&&"message"in e.data&&"string"===typeof e.data.message)return e.data.message;if("string"===typeof e.data)return e.data}return e instanceof Error?e.message:JSON.stringify(e)}(e);return ht({title:Gp("text_error-plan-svg",{error:t}),name:"plan-svg-error",type:"error"}),null})),a=()=>{e().then((e=>{e&&window.open(e,"_blank")}))},s=()=>{e().then((e=>{e&&ah(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(rh,{title:Gp("text_open-execution-plan"),description:Gp("text_open-execution-plan_description")}),icon:(0,d.jsx)(Xp.A,{className:Zp("icon")}),action:a,className:Zp("menu-item")},{text:(0,d.jsx)(rh,{title:Gp("text_download"),description:Gp("text_download_description")}),icon:(0,d.jsx)(eh.A,{className:Zp("icon")}),action:s,className:Zp("menu-item")}])}if(e){const a=()=>{const a=s?(0,Nt.KH)(s):void 0;((e,t)=>{const a=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(a);ah(n,`${t}.json`),URL.revokeObjectURL(n)})({...e,database:t,...a&&{error:a}},`query-diagnostics-${(new Date).getTime()}`)};n.push([{text:(0,d.jsx)(rh,{title:Gp("text_diagnostics"),description:Gp("text_diagnostics_description")}),icon:(0,d.jsx)(eh.A,{className:Zp("icon")}),action:a,className:Zp("menu-item")}])}return n}),[e,a,r,o,t,s])}}function oh({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:s,items:r}=ih({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return r.length?(0,d.jsx)(ko.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:Zp("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(lt.m,{title:Gp("tooltip_actions"),children:(0,d.jsx)(vn.$,{view:"flat-secondary",loading:s,disabled:s,...e,children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Kp.A,{})})})}),items:r,size:"xl"}):null}const lh=(0,c.cn)("ydb-query-json-viewer");function ch({data:e}){const t=Pn(e);return(0,d.jsx)("div",{className:lh(),children:(0,d.jsx)("div",{className:lh("tree"),children:(0,d.jsx)(ms,{value:t})})})}var dh=a(89954);const uh=(0,c.cn)("ydb-query-result-error");function mh({error:e}){const t=(0,Nt.KH)(e);return!t||Cp(e)?null:(0,ee.TX)(e)?(0,d.jsx)("div",{className:uh("message"),children:e.message}):"object"===typeof t?(0,d.jsx)("div",{className:uh("message"),children:(0,d.jsx)(dh.O,{data:t})}):(0,d.jsx)("div",{className:uh("message"),children:t})}const ph=(0,c.cn)("ydb-query-result-sets-viewer");function hh(e){const{selectedResultSet:t,setSelectedResultSet:a,resultSets:n,error:s}=e,r=null===n||void 0===n?void 0:n[t];return(0,d.jsxs)("div",{className:ph("result-wrapper"),children:[e.error?(0,d.jsx)(mh,{error:s}):null,null!==n&&void 0!==n&&n.length?(null===n||void 0===n?void 0:n.length)>1?(()=>{const e=(null===n||void 0===n?void 0:n.map(((e,t)=>{var a,s;const r=null===n||void 0===n?void 0:n[t];return{id:String(t),title:(0,d.jsxs)(ot.s,{gap:2,alignItems:"center",children:[(0,d.jsx)(it.E,{children:`Result #${t+1}${null!==n&&void 0!==n&&null!==(a=n[t])&&void 0!==a&&a.truncated?"(T)":""}`}),(0,d.jsx)(it.E,{color:"secondary",children:(null===(s=r.result)||void 0===s?void 0:s.length)||0})]})}})))||[];return(0,d.jsx)(ne.t,{className:ph("tabs"),size:"l",items:e,activeTab:String(t),onSelectTab:e=>a(Number(e))})})():(()=>{var e;const t=null===n||void 0===n?void 0:n[0];return(0,d.jsxs)(ot.s,{gap:2,alignItems:"center",className:ph("title"),children:[(0,d.jsx)(it.E,{children:null!==t&&void 0!==t&&t.truncated?"Truncated":"Result"}),(0,d.jsx)(it.E,{color:"secondary",children:(null===t||void 0===t||null===(e=t.result)||void 0===e?void 0:e.length)||0})]})})():null,r?(0,d.jsx)("div",{className:ph("result"),children:(0,d.jsx)(Tm,{settings:e.tableSettings,data:r.result,columns:r.columns})}):null]})}var vh=a(36590),gh=a(79737),yh=a(79685);const xh=(0,c.cn)("ydb-query-simplified-plan");function bh({value:e,formatter:t}){if(!(0,Ar.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:xh("metrics-cell"),children:a})}var fh=a(33705);const jh={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Th(e){return e in jh?jh[e]:"var(--g-color-text-secondary)"}function Sh(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Th(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,he.vN)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:s,...r}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),s&&t.push(["Condition",s]),t.concat(Object.entries(r))}(e);for(let e=0;e<a.length;e++){const[n,s]=a[e],r=Th(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:r},children:[n,": ",(0,he.vN)(s)]},e))}}return t}function Nh({params:e}){return e?(0,d.jsxs)("span",{className:xh("operation-params"),children:["(",Sh(e),")"]}):null}function Eh({modifiers:e,left:t}){return(0,d.jsx)("div",{className:xh("divider",e),style:{left:t}})}function wh({row:e,depth:t=0,params:a}){const{name:s,operationParams:r,lines:i=""}=a,o=e.getLeafRows().length>0&&e.getIsExpanded(),l=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let s=0;s<a.length;s++)s===a.length-1&&0!==s&&(a[s]?n.push((0,d.jsx)(Eh,{modifiers:{horizontal:!0},left:10+25*(s-1)},"last")):n.push((0,d.jsx)(Eh,{modifiers:{last:!0},left:9+25*(s-1)},"last"))),s===a.length-1&&t&&n.push((0,d.jsx)(Eh,{modifiers:{first:!0},left:9+25*s},"first")),a[s]&&n.push((0,d.jsx)(Eh,{left:9+25*(s-1)},s));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:xh("operation-name"),children:[l,(0,d.jsxs)(ot.s,{gap:1,alignItems:"center",className:xh("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(vn.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(fh.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:xh("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:xh("operation-name"),children:s}),"\xa0",(0,d.jsx)(Nh,{params:r})]})})]})]})}function Ch(e){return(0,d.jsx)(bh,{value:e.getValue(),formatter:e=>e<1e8?(0,yh.p)(e).format():(0,Ar.z0)(e,1)})}const Ph=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(gh.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)(wh,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(gh.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(bh,{value:e.getValue(),formatter:e=>(0,vt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(gh.A,{children:"A-Rows"}),size:90,minSize:90,cell:Ch,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(gh.A,{children:"E-Cost"}),size:90,minSize:90,cell:Ch,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(gh.A,{children:"E-Rows"}),size:90,minSize:90,cell:Ch,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(gh.A,{children:"E-Size"}),size:90,minSize:90,cell:Ch,meta:{align:"right",verticalAlign:"top"}}];function Ih({plan:e}){const t=n.useMemo((()=>function(e,t=""){if(!e)return[];const a=[{items:e,prefix:t,parentIndex:-1,parentArray:[]}],n=[];for(;a.length>0;){const{items:e,prefix:t,parentIndex:s,parentArray:r}=a.pop(),i=[];for(let n=0;n<e.length;n++){const s={...e[n]},r=n<e.length-1?1:0;let o=`${t}.${r}`;t||(o=String(r)),s.lines=o,i.push(s),s.children&&a.push({items:s.children,prefix:o,parentIndex:n,parentArray:i})}-1===s?n.push(...i):r[s].children=i}return n}(e)),[e]),[a,s]=n.useState(!0),r=(0,vh.K)({columns:Ph,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:s,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(gh.X,{wrapperClassName:xh(),table:r,stickyHeader:!0,width:"max"})}function Dh({traceId:e}){const{traceView:t}=(0,Ti.Zd)(),a=null!==t&&void 0!==t&&t.url?(n=t.url,s={traceId:e},n.replace(/\${(\w+)}/g,((e,t)=>s[t]||e))):"";var n,s;return a?(0,d.jsxs)(vn.$,{view:"flat-info",href:a,target:"_blank",children:[Gp("trace"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Xp.A,{})})]}):null}const Ah=(0,c.cn)("ydb-query-result"),_h="result",Rh="schema",kh="simplified",Oh="json",Mh="stats",Lh="ast",qh={get result(){return Gp("action.result")},get schema(){return Gp("action.schema")},get simplified(){return Gp("action.explain-plan")},get json(){return Gp("action.json")},get stats(){return Gp("action.stats")},get ast(){return Gp("action.ast")}},zh=["result","schema","simplified","stats"],Fh=["schema","json","simplified","ast"];function $h({result:e,resultType:t="execute",isResultsCollapsed:a,theme:s,tenantName:r,queryText:i,tableSettings:l,onCollapseResults:c,onExpandResults:u}){var m;const p=(0,X.YQ)(),h="execute"===t,v="explain"===t,[g,y]=n.useState(0),[x,b]=n.useState((()=>h?_h:Rh)),[f]=(0,X.iK)(Z.lr),{error:j,isLoading:T,data:S={}}=e,{preparedPlan:N,simplifiedPlan:E,stats:w,resultSets:C,ast:P}=S;n.useEffect((()=>{"execute"!==t||zh.includes(x)||b("result"),"explain"!==t||Fh.includes(x)||b("schema")}),[x,t]);const I=n.useMemo((()=>{let e=[];return h?e=zh:v&&(e=Fh),e.map((e=>({value:e,content:qh[e]})))}),[h,v]);n.useEffect((()=>()=>{p((0,sm.sM)())}),[p]);const D=e=>{b(e)},A=()=>{switch(x){case _h:{var e;const t=null===S||void 0===S||null===(e=S.resultSets)||void 0===e?void 0:e[g],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(Op).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(Op("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===t||void 0===t?void 0:t.result);return a}case Oh:return null===N||void 0===N?void 0:N.pristine;case kh:return null===E||void 0===E?void 0:E.pristine;case Mh:return w;case Lh:return P;default:return}},_=()=>{if(T)return null;const e=A(),t=(0,he.vN)(e);return t?(0,d.jsx)(pn.b,{text:t,view:"flat-secondary",title:Gp("action.copy",{activeSection:x})}):null},R=()=>(0,d.jsx)(Vp,{message:Gp("description.empty-result",{activeSection:qh[x]})}),k=e=>(0,d.jsxs)(ot.s,{justifyContent:"center",alignItems:"center",width:"100%",gap:8,children:[(0,d.jsx)(Fc.v,{name:"error",className:Ah("illustration")}),(0,d.jsxs)(ot.s,{direction:"column",gap:2,children:[(0,d.jsx)(it.E,{variant:"subheader-2",children:Gp(e?"stopped.title":"error.title")}),(0,d.jsx)(it.E,{color:"complementary",children:Gp(e?"stopped.description":"error.description")})]})]}),O=Cp(j);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Ah("controls"),children:[(0,d.jsxs)("div",{className:Ah("controls-left"),children:[I.length&&x?(0,d.jsx)(Kd.a,{options:I,value:x,onUpdate:D}):null,(0,d.jsx)(Ip,{error:j,loading:T}),null!==S&&void 0!==S&&S.traceId&&h?(0,d.jsx)(Dh,{traceId:S.traceId}):null]}),(0,d.jsxs)("div",{className:Ah("controls-right"),children:[T||Cp(j)?null:(0,d.jsx)(oh,{queryResultsInfo:{queryText:i,ast:S.ast,stats:S.stats,plan:S.plan},error:j,database:r,hasPlanToSvg:Boolean((null===S||void 0===S?void 0:S.plan)&&f&&h)}),_(),(0,d.jsx)(rm,{}),(0,d.jsx)(am,{onCollapse:c,onExpand:u,isCollapsed:a,initialDirection:"bottom"})]})]}),T||O?null:(0,d.jsx)(_p,{}),O&&null!==(m=S.resultSets)&&void 0!==m&&m.length?(0,d.jsx)(kp,{}):null,(0,d.jsx)(o.r,{loading:T&&(!S.resultSets||"result"!==x),children:(0,d.jsx)(pm,{className:Ah("result"),children:(()=>{const e=Cp(j);return x===_h?!j||!e||null!==C&&void 0!==C&&C.length?(0,d.jsx)(hh,{resultSets:C,error:j,selectedResultSet:g,tableSettings:l,setSelectedResultSet:y}):k(e):j?h||e?k(e):(0,d.jsx)(mh,{error:j}):x===Rh?null!==N&&void 0!==N&&null!==(t=N.nodes)&&void 0!==t&&t.length?(0,d.jsx)(Jp,{theme:s,explain:N}):R():x===Oh?null!==N&&void 0!==N&&N.pristine?(0,d.jsx)(ch,{data:null===N||void 0===N?void 0:N.pristine}):R():x===kh?null!==E&&void 0!==E&&null!==(a=E.plan)&&void 0!==a&&a.length?(0,d.jsx)(Ih,{plan:E.plan}):R():x===Mh?w?(0,d.jsx)(ch,{data:w}):R():x===Lh?P?(0,d.jsx)(zp,{ast:P,theme:s}):R():null;var t,a})()})})]})}var Uh=a(16122),Qh=a(23971);const Bh=()=>-1,Hh=(0,c.cn)("ydb-query-settings-select");function Gh(e){return(0,d.jsx)("div",{className:Hh("selector"),children:(0,d.jsx)(le.l,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:Bh,popupClassName:Hh("popup"),renderOption:e=>(0,d.jsxs)("div",{className:Hh("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:Hh("item-title"),children:[e.content,e.isDefault?zu("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:Hh("item-description"),children:e.text})]}),width:"max"})})}var Wh=a(98934);const Vh=(0,c.cn)("ydb-timeout-label");function Yh({isDisabled:e,isChecked:t,onToggle:a}){const[n]=(0,X.iK)(Z.kO);return n?(0,d.jsxs)("div",{className:Vh("switch-title"),children:[(0,d.jsx)(oa.d,{disabled:e,checked:t,onUpdate:a,className:Vh("switch"),content:Bu.timeout.title}),e&&(0,d.jsx)(Wh.H,{className:Vh("question-icon"),placement:"bottom-start",children:zu("form.timeout.disabled")})]}):(0,d.jsx)("label",{htmlFor:"timeout",className:Vh("label-title"),children:Bu.timeout.title})}const Jh=(0,c.cn)("ydb-query-settings-timeout");function Kh({id:e,value:t,onChange:a,onToggle:s,validationState:r,errorMessage:i,isDisabled:o}){const l=n.useCallback((e=>{const t=e.target.value?Number(e.target.value):void 0;a(t)}),[a]),c=null!==t;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Yh,{isDisabled:o,isChecked:c,onToggle:s}),c&&(0,d.jsx)("div",{className:Jh("control-wrapper"),children:(0,d.jsx)(Fn.k,{id:e,type:"number",value:(null===t||void 0===t?void 0:t.toString())||"",onChange:l,className:Jh("input"),placeholder:"60",validationState:r,errorMessage:i,errorPlacement:"inside",endContent:(0,d.jsx)("span",{className:Jh("postfix"),children:zu("form.timeout.seconds")})})})]})}const Zh=(0,c.cn)("ydb-query-settings-dialog");function Xh(){const e=(0,X.YQ)(),t=(0,X.N4)(Oo.xM),[a,s]=(0,X.XS)(),r=n.useCallback((()=>{e((0,Oo.NJ)("idle"))}),[e]),i=n.useCallback((e=>{s(e),r()}),[r,s]);return(0,d.jsxs)(Hn.l,{open:"settings"===t,size:"s",onClose:r,className:Zh(),hasCloseButton:!1,children:[(0,d.jsx)(Hn.l.Header,{caption:zu("action.settings")}),(0,d.jsx)(ev,{initialValues:a,onSubmit:i,onClose:r})]})}function ev({initialValues:e,onSubmit:t,onClose:a}){const{control:n,handleSubmit:s,setValue:r,watch:i,formState:{errors:o}}=(0,Qh.mN)({defaultValues:e,resolver:(0,Uh.u)(Nt.id)}),[l]=(0,X.iK)(Z.lr),c=(0,ie.Oi)(),u=i("timeout"),m=i("queryMode");return(0,d.jsxs)("form",{onSubmit:s(t),children:[(0,d.jsxs)(Hn.l.Body,{className:Zh("dialog-body"),children:[(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Zh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:Zh("field-title"),children:Bu.queryMode.title}),(0,d.jsx)("div",{className:Zh("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(Qh.xI,{name:"queryMode",control:n,render:({field:e})=>(0,d.jsx)(Gh,{id:"queryMode",setting:e.value,onUpdateSetting:t=>{e.onChange(t),"query"!==t&&null===u?r("timeout",""):"query"===t&&r("timeout",null)},settingOptions:Bu.queryMode.options})})})]}),c&&(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Zh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:Zh("field-title"),children:Bu.tracingLevel.title}),(0,d.jsx)("div",{className:Zh("control-wrapper"),children:(0,d.jsx)(Qh.xI,{name:"tracingLevel",control:n,render:({field:e})=>(0,d.jsx)(Gh,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:Bu.tracingLevel.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Zh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:Zh("field-title"),children:Bu.transactionMode.title}),(0,d.jsx)("div",{className:Zh("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(Qh.xI,{name:"transactionMode",control:n,render:({field:e})=>(0,d.jsx)(Gh,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:Bu.transactionMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Zh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:Zh("field-title"),children:Bu.statisticsMode.title}),(0,d.jsx)(gp.m,{className:Zh("statistics-mode-tooltip"),disabled:!l,openDelay:0,content:zu("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:Zh("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(Qh.xI,{name:"statisticsMode",control:n,render:({field:e})=>(0,d.jsx)(Gh,{id:"statisticsMode",disabled:l,setting:e.value,onUpdateSetting:e.onChange,settingOptions:Bu.statisticsMode.options})})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Zh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:Zh("field-title"),children:Bu.limitRows.title}),(0,d.jsx)("div",{className:Zh("control-wrapper"),children:(0,d.jsx)(Qh.xI,{name:"limitRows",control:n,render:({field:e})=>{var t,a;return(0,d.jsx)(Fn.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:Zh("limit-rows"),placeholder:"10000",validationState:o.limitRows?"invalid":void 0,errorMessage:null===(a=o.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside",endContent:(0,d.jsx)("span",{className:Zh("postfix"),children:zu("form.limit.rows")})})}})})]}),(0,d.jsx)(ot.s,{direction:"row",alignItems:"flex-start",className:Zh("dialog-row"),children:(0,d.jsx)(Qh.xI,{name:"timeout",control:n,render:({field:e})=>{var t;return(0,d.jsx)(Kh,{id:"timeout",value:"string"===typeof e.value?void 0:e.value,onChange:e.onChange,onToggle:t=>e.onChange(t?"":null),validationState:o.timeout?"invalid":void 0,errorMessage:null===(t=o.timeout)||void 0===t?void 0:t.message,isDisabled:m!==Nt.ei.query})}})})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:zu("button-done"),textButtonCancel:zu("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:Zh("buttons-container"),children:[(0,d.jsx)(vn.$,{href:"https://ydb.tech/docs",target:"_blank",view:"outlined",size:"l",children:zu("docs")}),(0,d.jsxs)("div",{className:Zh("main-buttons"),children:[t,e]})]})})]})}var tv=a(52400);const av=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var nv=a(41614),sv=a(67913);const rv=JSON.parse('{"context_syntax-error":"Syntax error"}'),iv=(0,Be.g4)("ydb-monaco",{en:rv}),ov=(0,ku.debounce)((function(){var e;const t=null===(e=window.ydbEditor)||void 0===e?void 0:e.getModel();if(!t)return void console.error("unable to retrieve model when highlighting errors");const a=(0,nv.kh)(t.getValue()).errors;if(!a.length)return void cv();const n=a.map((e=>({message:iv("context_syntax-error"),source:e.message,severity:sv.MarkerSeverity.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));sv.editor.setModelMarkers(t,"ydb",n)}),500);function lv(){const e=(t=ov,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{cv(),e()}),[e])}function cv(){sv.editor.removeAllMarkers("ydb")}const dv="navigation";function uv({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:s}){const r=(0,X.N4)(wo.Wp),i=(0,X.YQ)(),[o,l]=n.useState(),c=(0,X.N4)(wo.py),[u]=(0,X.iK)(Z.bz),m=function(){const[e]=(0,X.iK)(Z.LK),[t]=(0,X.iK)(Z.IO);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...up}}),[e,t])}(),p=lv(),[h]=(0,X.iK)(Z.zk),v=(0,X.A5)((()=>c&&0!==c.length?c[c.length-1].queryText:"")),g=(0,X.A5)((()=>{h===Nt.x5.explain?s(r):a(r)})),{monacoGhostConfig:y,prepareUserQueriesCache:x}=function(){const[e]=dp.useLazyGetCodeAssistSuggestionsQuery(),[t]=dp.useAcceptSuggestionMutation(),[a]=dp.useDiscardSuggestionMutation(),[s]=dp.useIgnoreSuggestionMutation(),[r]=dp.useSendUserQueriesDataMutation(),i=(0,X.N4)(wo.py),o=Mo(),l=n.useCallback((async t=>e(t).unwrap()),[e]),c=n.useCallback((async e=>t(e).unwrap()),[t]),d=n.useCallback((async e=>a(e).unwrap()),[a]),u=n.useCallback((async e=>s(e).unwrap()),[s]),m=n.useMemo((()=>[...i.map(((e,t)=>({name:`query${t}.yql`,text:e.queryText}))),...o.map((e=>({name:e.name,text:e.body})))]),[i,o]);return{prepareUserQueriesCache:n.useCallback((async()=>{const e=m.map(((e,t)=>({FileName:e.name||`query${t}.yql`,Text:e.text})));try{return await r(e).unwrap()}catch{return{items:[]}}}),[r,m]),monacoGhostConfig:n.useMemo((()=>({api:{getCodeAssistSuggestions:l},eventHandlers:{onCompletionAccept:c,onCompletionDecline:d,onCompletionIgnore:u},config:{language:"yql"}})),[l,c,d,u])}}();n.useEffect((()=>(o&&u&&(o.register(y),x()),()=>{null===o||void 0===o||o.unregister()})),[u,y,o,x]);return(0,d.jsx)(av,{language:"yql",value:r,options:m,onChange:t=>{p(),e({input:t}),i((0,wo.Xb)(!0))},editorDidMount:(e,t)=>{window.ydbEditor=e;const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),window.api.codeAssist&&l((0,tv._z)(e)),function(e){const t=ge()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){mv(e.getValue(),t()),e.onDidChangeModelContent((()=>{mv(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,v),e.focus(),e.addAction({id:"sendQuery",label:Au("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:dv,contextMenuOrder:1,run:()=>g()});const s=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((({selection:e,secondarySelections:t})=>{const a=e.selectionStartLineNumber!==e.positionLineNumber||e.selectionStartColumn!==e.positionColumn,n=t.length>0;s.set(a&&!n)})),e.addAction({id:"sendSelectedQuery",label:Au("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:dv,contextMenuOrder:1,run:e=>{const t=e.getSelection(),n=e.getModel();if(t&&n){const e=n.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});a(e,!0)}}}),e.addAction({id:"previous-query",label:Au("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:dv,contextMenuOrder:2,run:()=>{i((0,wo.JK)())}}),e.addAction({id:"next-query",label:Au("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:dv,contextMenuOrder:3,run:()=>{i((0,wo.tS)())}}),e.addAction({id:"save-query",label:Au("action.save-query"),keybindings:[n.saveQuery],run:()=>{Co.Ay.show(Bo)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function mv(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const pv=(0,c.cn)("query-editor"),hv={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function vv(e){const t=(0,X.YQ)(),{tenantName:a,path:s,type:r,theme:i,changeUserInput:o}=e,l=(0,X.N4)(wo.yJ),c=(0,X.N4)(wo.wf),u=(0,X.N4)(wo.py),m=(0,X.N4)(wo.Kz),p=(0,X.N4)(K.Ab),v=Boolean(c),[g]=(0,X.XS)(),y=(0,ie.Oi)(),[x,b]=Wu(),{resetBanner:f}=Yu(),[j,T]=(0,X.iK)(Z.zk),[S,N]=n.useState(""),[E]=(0,X.iK)(Z.kO),w=(0,ie.j2)()&&E&&g.queryMode===Nt.ei.query,[C]=wo.JO.useUseSendQueryMutation(),[P]=wo.JO.useUseStreamQueryMutation(),I=n.useMemo((()=>w?{displayIndices:{maxIndex:(g.limitRows||Nt.jU.limitRows)+1}}:void 0),[w,g.limitRows]);n.useEffect((()=>{l!==a&&t((0,wo.Id)(a))}),[t,a,l]);const[D,A]=n.useReducer(em(Z.GV),hv);n.useEffect((()=>{A(Ku.triggerCollapse)}),[]),n.useEffect((()=>{A(p||v?Ku.triggerExpand:Ku.triggerCollapse)}),[p,v]);const _=(0,X.A5)(((e,n)=>{T(Nt.x5.execute),N(e),(0,ku.isEqual)(x,g)||(f(),b(g));const s=(0,Ou.A)();if(w){const t=P({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y});mp.registerQuery(t)}else{const t=C({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:s});mp.registerQuery(t)}var r;(t((0,K.o)(!1)),n)||(e!==(null===(r=u[m])||void 0===r?void 0:r.queryText)&&t((0,wo.nO)({queryText:e,queryId:s})),t((0,wo.Xb)(!1)));A(Ku.triggerExpand)})),R=()=>{t((0,Oo.NJ)("settings"))},k=(0,X.A5)((e=>{T(Nt.x5.explain),N(e),(0,ku.isEqual)(x,g)||(f(),b(g));const n=(0,Ou.A)(),s=C({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n});mp.registerQuery(s),t((0,K.o)(!1)),A(Ku.triggerExpand)}));return(0,d.jsxs)("div",{className:pv(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.l_,triggerCollapse:D.triggerCollapse,triggerExpand:D.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{A(Ku.clear)},children:[(0,d.jsxs)("div",{className:pv("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:pv("monaco-wrapper"),children:(0,d.jsx)("div",{className:pv("monaco"),children:(0,d.jsx)(uv,{changeUserInput:o,theme:i,handleSendExecuteClick:_,handleGetExplainQueryClick:k})})}),(0,d.jsx)(Sp,{handleSendExecuteClick:_,onSettingsButtonClick:R,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:k,highlightedAction:j,tenantName:a,queryId:null===c||void 0===c?void 0:c.queryId,isStreamingEnabled:w})]}),(0,d.jsx)("div",{className:pv("pane-wrapper"),children:(0,d.jsx)(gv,{resultVisibilityState:D,onExpandResultHandler:()=>{A(Ku.triggerExpand)},onCollapseResultHandler:()=>{A(Ku.triggerCollapse)},type:r,theme:i,result:c,tenantName:a,path:s,showPreview:p,queryText:S,tableSettings:I},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(Xh,{})]})}function gv({resultVisibilityState:e,onExpandResultHandler:t,onCollapseResultHandler:a,type:n,theme:s,result:r,tenantName:i,path:o,showPreview:l,queryText:c,tableSettings:u}){return l?(0,d.jsx)(Em,{database:i,path:o,type:n}):r?(0,d.jsx)($h,{result:r,resultType:null===r||void 0===r?void 0:r.type,theme:s,tenantName:i,isResultsCollapsed:e.collapsed,tableSettings:u,onExpandResults:t,onCollapseResults:a,queryText:c}):null}const yv=[{id:ae.tQ.newQuery,title:Au("tabs.newQuery")},{id:ae.tQ.history,title:Au("tabs.history")},{id:ae.tQ.saved,title:Au("tabs.saved")}],xv=({className:e,activeTab:t})=>{const a=(0,Qs.zy)(),n=(0,ye.mA)(a);return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ne.t,{size:"l",allowNotSelected:!0,activeTab:t,items:yv,wrapTo:({id:e},t)=>{const a=(0,sa.YL)({...n,[sa.vh.queryTab]:e});return(0,d.jsx)(jo.E,{to:a,children:t},e)}})})};var bv=a(65872),fv=a(64470);const jv=(0,c.cn)("ydb-saved-queries"),Tv=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Hn.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Hn.l.Header,{caption:Au("delete-dialog.header")}),(0,d.jsxs)(Hn.l.Body,{className:jv("dialog-body"),children:[Au("delete-dialog.question"),(0,d.jsx)("span",{className:jv("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:Au("delete-dialog.delete"),textButtonCancel:Au("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),Sv=({changeUserInput:e})=>{const t=Mo(),a=(0,X.YQ)(),s=(0,X.N4)(Oo.cu),[r,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=Jo(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,wo.Xb)(!1)),a((0,Oo.JP)(n)),a((0,oe.sH)(ae.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:jv("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:jv("query"),children:[(0,d.jsx)("div",{className:jv("query-body"),children:(0,d.jsx)(Zo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:jv("controls"),children:[(0,d.jsx)(vn.$,{view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:bv.A})}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),i(!0),l(t)}),children:(0,d.jsx)(ct.I,{data:fv.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Fe.L,{className:jv(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Qe.v,{onChange:e=>{a((0,Oo.ys)(e))},placeholder:Au("filter.text.placeholder"),className:jv("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:tl,emptyDataMessage:Au(s?"history.empty-search":"saved.empty"),rowClassName:()=>jv("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Rt.Ay.ASCENDING}})})]}),(0,d.jsx)(Tv,{visible:r,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Oo.fu)(o)),l("")}})]})},Nv=(0,c.cn)("ydb-query"),Ev=e=>{const t=(0,X.YQ)(),{queryTab:a=ae.tQ.newQuery}=(0,X.N4)((e=>e.tenant)),r=e=>{t((0,wo.iZ)(e))},i=n.useMemo((()=>yv.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:Nv(),children:[i?(0,d.jsx)(s.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(xv,{className:Nv("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Nv("content"),children:(()=>{switch(a){case ae.tQ.newQuery:return(0,d.jsx)(vv,{changeUserInput:r,...e});case ae.tQ.history:return(0,d.jsx)(Ru,{changeUserInput:r});case ae.tQ.saved:return(0,d.jsx)(Sv,{changeUserInput:r});default:return null}})()})]})};var wv=a(46649),Cv=a(93844);const Pv=["query","diagnostics"],Iv={query:wv.A,diagnostics:Cv.A};const Dv=(0,c.cn)("ydb-tenant-navigation"),Av=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Dv("item"),children:[(0,d.jsx)(ct.I,{data:a,size:16,className:Dv("icon")}),(0,d.jsx)("span",{className:Dv("text"),children:t})]})}),_v=()=>{const e=function(){const e=(0,Qs.W6)(),t=(0,Qs.zy)(),a=(0,ye.mA)(t),[,s]=(0,X.iK)(Z.Mt),{tenantPage:r}=(0,X.N4)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==ye.Ay.tenant)return[];const n=Pv.map((t=>{const n=ae.Dg[t],i=(0,sa.YL)({...a,[ae.Dt]:n});return{id:n,title:Nr(`pages.${t}`),icon:Iv[t],path:i,current:r===n,onForward:()=>{s(n),e.push(i)}}}));return n}),[r,s,t.pathname,e,a]);return i}();return(0,d.jsx)("div",{className:Dv(),children:(0,d.jsx)(Kd.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Dv("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Av)})})},Rv=(0,c.cn)("object-general");const kv=function(e){const t=(0,te.i)(),{tenantPage:a}=(0,X.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:Rv(),children:[(0,d.jsx)(_v,{}),(()=>{const{type:n,additionalTenantProps:s,additionalNodesProps:r,tenantName:i,path:o}=e;return a===ae.Dg.query?(0,d.jsx)(Ev,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(Iu,{type:n,tenantName:i,path:o,additionalTenantProps:s,additionalNodesProps:r})})()]})};var Ov=a(23900),Mv=a(1956);const Lv=H.F.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.getSchemaAcl({path:e,database:t},{signal:a});return{data:{acl:n.Common.ACL,effectiveAcl:n.Common.EffectiveACL,owner:n.Common.Owner,interruptInheritance:n.Common.InterruptInheritance}}}catch(n){return{error:n}}},providesTags:["SchemaTree"]})}),overrideExisting:"throw"}),qv=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),zv=(0,Be.g4)("ydb-acl",{en:qv}),Fv=(0,c.cn)("ydb-acl"),$v=["access","type","inheritance"],Uv={access:"Access",type:"Access type",inheritance:"Inheritance type"},Qv=new Set(["Object","Container"]);function Bv({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:Fv("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function Hv(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:s,Subject:r}=e,i=t.concat(a),o="Allow"===n?void 0:n;let l;return((null===s||void 0===s?void 0:s.length)!==Qv.size||s.some((e=>!Qv.has(e))))&&(l=s),{access:i.length?i:void 0,type:o,inheritance:l,Subject:r}}))}(e);return t.map((({Subject:e,...t})=>{const a=Object.entries(t).filter((([e,t])=>Boolean(t)));return 1===a.length&&"access"===a[0][0]?{name:e,content:(0,d.jsx)(Bv,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:Fv("group-label"),children:e}),items:$v.map((e=>{const a=t[e];if(a)return{name:Uv[e],content:(0,d.jsx)(Bv,{value:a}),multilineName:!0}})).filter(Dr.f8)}}))}const Gv=({path:e,database:t})=>{const{currentData:a,isFetching:s,error:r}=Lv.useGetSchemaAclQuery({path:e,database:t}),i=s&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=Hv(o),p=Hv(l),h=function(e){const t=(a=e,a&&a.endsWith("@staff")&&!a.startsWith("svc_")?a.split("@")[0]:a);var a;return t?[{name:t,content:zv("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:zv("title_interupt-inheritance"),content:(0,d.jsx)(ct.I,{data:Mv.A,size:20}),multilineName:!0}]:[];if(i)return(0,d.jsx)(ue.a,{});if(r)return(0,d.jsx)(de.o,{error:r});if(!o&&!c&&!l)return(0,d.jsx)(n.Fragment,{children:zv("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:Fv(),children:[(0,d.jsx)(Wv,{items:v}),(0,d.jsx)(Wv,{items:g,title:zv("title_rights")}),(0,d.jsx)(Wv,{items:p,title:zv("title_effective-rights")})]})};function Wv({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:Fv("list-title"),children:t}),(0,d.jsx)(Ks.u,{items:e,nameMaxWidth:200,className:Fv("result",{"no-title":!t}),responsive:!0})]}):null}var Vv=a(87285);const Yv=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(H.F.util.invalidateTags(["PreviewData"])),t((0,K.o)(!0)),t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e)}}},Jv=(e,t)=>(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:e.openPreview,title:Nr("actions.openPreview"),size:t||"s",children:(0,d.jsx)(ct.I,{data:Vv.A})}),Kv=(e,t,a)=>(n,s)=>{const r=Yv(n,e,t),i=Jv(r,a);return{async_replication:void 0,transfer:void 0,database:void 0,directory:void 0,resource_pool:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[s]},Zv=(e,t,a)=>(n,s)=>{const r=Yv(n,e,t);return{preview:Jv(r,a)}[s]};var Xv=a(89974),eg=a(35544);const tg=5*Z.KF,ag=H.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if(B(a)){const a=await n(wt.endpoints.getViewSchema.initiate({database:t,path:e,timeout:tg}));if((0,Nt.We)(a))return{error:a};return{data:aa(a.data)}}const s=await n(G.endpoints.getOverview.initiate({path:e,database:t,timeout:tg}));return{data:ta(a,s.data)}}catch(s){return{error:s}}}})})});var ng=a(51016),sg=a(49917),rg=a(32133),ig=a.n(rg);function og(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let s=a.slice(n.length);return s=s.replace(/^\/+/,"")||"/",s}function lg(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const cg=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(ot.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(wp.t,{size:"xs"})]}),action:t,disabled:a}),dg=(e,t,a="")=>(n,s)=>{const r=((e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:s,getConfirmation:r,getConnectToDBDialog:i,schemaData:o}=a,l=a=>()=>{const s=()=>{t((0,oe.es)(ae.Dg.query)),t((0,oe.sH)(ae.tQ.newQuery)),n(e.path),Pm(a({...e,schemaData:o}))};r?r().then((e=>{e&&s()})):s()};return{createDirectory:s?()=>{s(e.path)}:void 0,getConnectToDBDialog:()=>null===i||void 0===i?void 0:i({database:e.path}),createTable:l(Dm),createColumnTable:l(Am),createAsyncReplication:l(_m),alterAsyncReplication:l(Wm),dropAsyncReplication:l(Hm),createTransfer:l(Rm),alterTransfer:l(Vm),dropTransfer:l(Gm),alterTable:l(km),dropTable:l(ip),manageAutoPartitioning:l(Om),selectQuery:l(Mm),upsertQuery:l(Lm),createExternalTable:l(zm),dropExternalTable:l(qm),selectQueryFromExternalTable:l(Mm),createTopic:l(Fm),alterTopic:l($m),dropTopic:l(Um),createView:l(Qm),dropView:l(Bm),dropIndex:l(Jm),addTableIndex:l(Ym),createCdcStream:l(Km),copyPath:()=>{try{ig()(e.relativePath),ht({name:"Copied",title:Nr("actions.copied"),type:"success"})}catch{ht({name:"Not copied",title:Nr("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:og(n,a),tenantName:a,type:s},e,t),i={text:Nr("actions.copyPath"),action:r.copyPath,iconEnd:(0,d.jsx)(ng.A,{})},o={text:Nr("actions.connectToDB"),action:r.getConnectToDBDialog,iconEnd:(0,d.jsx)(sg.A,{})},l=[{text:Nr("actions.createTable"),action:r.createTable},{text:Nr("actions.createColumnTable"),action:r.createColumnTable},{text:Nr("actions.createAsyncReplication"),action:r.createAsyncReplication},{text:Nr("actions.createTransfer"),action:r.createTransfer},{text:Nr("actions.createTopic"),action:r.createTopic},{text:Nr("actions.createView"),action:r.createView}],c={text:Nr("actions.alterTable"),items:[{text:Nr("actions.manageColumns"),action:r.alterTable},{text:Nr("actions.manageAutoPartitioning"),action:r.manageAutoPartitioning}]},u=[[i,o],l],m=[[i],l];if(r.createDirectory){const e={text:Nr("actions.createDirectory"),action:r.createDirectory};u.splice(1,0,[e]),m.splice(1,0,[e])}const p=[[i],[c,{text:Nr("actions.dropTable"),action:r.dropTable},cg({text:Nr("actions.selectQuery"),action:r.selectQuery,isLoading:t.isSchemaDataLoading}),cg({text:Nr("actions.upsertQuery"),action:r.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:Nr("actions.addTableIndex"),action:r.addTableIndex},{text:Nr("actions.createCdcStream"),action:r.createCdcStream}]],h=[[i],[c,{text:Nr("actions.dropTable"),action:r.dropTable},{text:Nr("actions.selectQuery"),action:r.selectQuery},{text:Nr("actions.upsertQuery"),action:r.upsertQuery}]],v=[[i],[{text:Nr("actions.alterTopic"),action:r.alterTopic},{text:Nr("actions.dropTopic"),action:r.dropTopic}]],g=[[i],[{text:Nr("actions.selectQuery"),action:r.selectQueryFromExternalTable}],[{text:Nr("actions.dropTable"),action:r.dropExternalTable}]],y=[[i],[{text:Nr("actions.createExternalTable"),action:r.createExternalTable}]],x=[[i],[{text:Nr("actions.selectQuery"),action:r.selectQuery}],[{text:Nr("actions.dropView"),action:r.dropView}]],b=[i];return{async_replication:[[i],[{text:Nr("actions.alterReplication"),action:r.alterAsyncReplication},{text:Nr("actions.dropReplication"),action:r.dropAsyncReplication}]],transfer:[[i],[{text:Nr("actions.alterTransfer"),action:r.alterTransfer},{text:Nr("actions.dropTransfer"),action:r.dropTransfer}]],database:u,directory:m,resource_pool:b,table:p,column_table:h,index_table:b,topic:v,stream:b,index:[[i,{text:Nr("actions.dropIndex"),action:r.dropIndex}]],external_table:g,external_data_source:y,view:x}[s]},ug=(0,c.cn)("ydb-schema-create-directory-dialog"),mg="relativePath";function pg({open:e,onClose:t,database:a,parentPath:s,onSuccess:r}){const[i,o]=n.useState(""),[l,c]=n.useState(""),[u,m]=K.sM.useCreateDirectoryMutation(),p=()=>{o(""),m.reset()},h=()=>{t(),c(""),p()};return(0,d.jsxs)(Hn.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Hn.l.Header,{caption:Nr("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?Nr("schema.tree.dialog.whitespace"):"":Nr("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${s}/${l}`}).unwrap().then((()=>{h(),r(l)}))},children:[(0,d.jsxs)(Hn.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:mg,className:ug("label"),children:[(0,d.jsx)("span",{className:ug("description"),children:Nr("schema.tree.dialog.description")}),`${s}/`]}),(0,d.jsx)("div",{className:ug("input-wrapper"),children:(0,d.jsx)(Fn.k,{placeholder:Nr("schema.tree.dialog.placeholder"),value:l,onUpdate:e=>{c(e),p()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:m.isLoading,validationState:i?"invalid":void 0,id:mg,errorMessage:i})}),m.isError&&(0,d.jsx)(de.o,{error:m.error,defaultMessage:Nr("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Hn.l.Footer,{loading:m.isLoading,textButtonApply:Nr("schema.tree.dialog.buttonApply"),textButtonCancel:Nr("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const hg=n.createContext(void 0),vg=n.createContext(void 0);function gg({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(hg.Provider,{value:t,children:(0,d.jsx)(vg.Provider,{value:a,children:e})})}function yg(){const e=n.useContext(vg);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function xg(e){const t=(0,ie.Ii)(),{rootPath:a,rootName:s,rootType:r,currentPath:i,onActivePathUpdate:o}=e,l=(0,X.YQ)(),c=(0,X.N4)(wo.Wp),u=(0,X.N4)(wo.TY),[m,{currentData:p,isFetching:h}]=ag.useLazyGetTableSchemaDataQuery(),[v]=(0,X.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=yg(),j=function(){const e=n.useContext(hg);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),T=lg(a,r)?"database":E(r);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const S=e=>{b(e),y(!0)},w=n.useMemo((()=>dg(l,{setActivePath:o,showCreateDirectoryDialog:t?S:void 0,getConfirmation:c&&u?Yo:void 0,getConnectToDBDialog:eg.S,schemaData:p,isSchemaDataLoading:h},a)),[p,t,l,c,h,o,v,a]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pg,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(Xv.F,{rootState:{path:a,name:s,type:T,collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(K.sM.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:s,originalArgs:r}=await n;if(n.unsubscribe(),(null===r||void 0===r?void 0:r.path)===e){t=null===s||void 0===s?void 0:s[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n,ChildrenExist:s}=e,r=$(a,n)||(0,Dr.f8)(s)&&!s;return{name:t,type:E(a,n),expandable:!r}}))},getActions:w,onActionsOpenToggle:({path:e,type:t,isOpen:n})=>{const s=N[t];return n&&s&&m({path:e,tenantName:a,type:s}),[]},renderAdditionalNodeElements:Kv(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},j)]})}const bg=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),fg=(0,Be.g4)("ydb-object-summary",{en:bg}),jg=(0,c.cn)("ydb-object-summary");function Tg({tenantName:e,path:t}){var a;const{data:n={},isLoading:s}=(0,K.Tn)({path:e,database:e}),i=null===n||void 0===n||null===(a=n.PathDescription)||void 0===a?void 0:a.Self,[,o]=(0,r.useQueryParam)("schema",r.StringParam);return!i&&s?(0,d.jsx)("div",{children:(0,d.jsx)(ue.a,{})}):(0,d.jsxs)("div",{className:jg("tree-wrapper"),children:[(0,d.jsx)("div",{className:jg("tree-header"),children:fg("title_navigation")}),(0,d.jsx)("div",{className:jg("tree"),children:i?(0,d.jsx)(xg,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var Sg=a(16963);function Ng(){const e=(0,X.YQ)(),{diagnosticsTab:t,tenantPage:a}=(0,X.N4)((e=>e.tenant)),n=a===ae.Dg.diagnostics&&t===ae.iJ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(vn.$,{title:fg("action_openInDiagnostics"),onClick:()=>{e((0,oe.es)(ae.Dg.diagnostics)),e((0,oe.WO)(ae.iJ.schema))},size:"s",children:(0,d.jsx)(ct.I,{data:Sg.A,size:14})})})}var Eg=a(8873),wg=a(97091);function Cg(){const e=yg(),t=(0,X.YQ)();return(0,d.jsx)(lt.m,{title:"Refresh",children:(0,d.jsx)(vn.$,{className:jg("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,wg.Ak)()),t(H.F.util.invalidateTags(["SchemaTree"]))},children:(0,d.jsx)(ct.I,{data:Eg.A})})})}const Pg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.hh))});function Ig({type:e,subType:t,tenantName:a,path:s,onCollapseSummary:i,onExpandSummary:o,isCollapsed:l}){var c;const u=(0,X.YQ)(),[,m]=(0,r.useQueryParam)("schema",r.StringParam),[p,v]=n.useReducer(em(Z.hh),void 0,Pg),{summaryTab:g=ae.ml.overview}=(0,X.N4)((e=>e.tenant)),y=(0,Qs.zy)(),f=Aa().parse(y.search,{ignoreQueryPrefix:!0}),{currentData:j}=G.useGetOverviewQuery({path:s,database:a}),T=null===j||void 0===j||null===(c=j.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=D(e);!e||t||sa.x$.find((e=>e.id===g))||u((0,oe.Mj)(ae.ml.overview))}),[u,e,g]);const S=()=>{const t=D(e)?[...sa.x$,...sa.nb]:sa.x$;return(0,d.jsx)("div",{className:jg("tabs"),children:(0,d.jsxs)(ot.s,{className:jg("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ne.t,{size:"l",items:t,activeTab:g,wrapTo:({id:e},t)=>{const a=(0,sa.YL)({...f,[sa.vh.summaryTab]:e});return(0,d.jsx)(se.N_,{to:a,className:jg("tab"),children:t},e)},allowNotSelected:!0}),g===ae.ml.schema&&(0,d.jsx)(Ng,{})]})})},N=()=>{switch(g){case ae.ml.acl:return(0,d.jsx)(Gv,{path:s,database:a});case ae.ml.schema:return(0,d.jsx)(na,{type:e,path:s,tenantName:a});default:return(()=>{var e;if(!T)return;const{CreateStep:t,PathType:a,PathSubType:r,PathId:i,PathVersion:o}=T,l=[],c=lg(s,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:fg("field_type"),content:c}),r!==b.EPathSubTypeEmpty&&l.push({name:fg("field_subtype"),content:null===r||void 0===r?void 0:r.replace(/^EPathSubType/,"")}),l.push({name:fg("field_id"),content:i}),l.push({name:fg("field_version"),content:o}),Number(t)&&l.push({name:fg("field_created"),content:(0,he.r6)(t)});const{PathDescription:u}=j;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:fg("field_data-size"),content:Ts(e)},{name:fg("field_row-count"),content:(0,he.ZV)(t)})}const m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:s}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let r=(0,he.ZV)(t),i=(0,he.ZV)(a);return r&&n&&(r=`${r} / ${(0,he.ZV)(n)}`),i&&s&&(i=`${i} / ${(0,he.ZV)(s)}`),[{name:fg("field_paths"),content:r},{name:fg("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeResourcePool]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:fg("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[x.EPathTypeSubDomain]:m,[x.EPathTypeTableIndex]:void 0,[x.EPathTypeExtSubDomain]:m,[x.EPathTypeColumnStore]:()=>{var e,t;return[{name:fg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[x.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:fg("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[x.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:fg("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:fg("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[x.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.PersQueueGroup,s=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{name:fg("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:fg("field_retention"),content:s&&(0,he.Pt)(s)}]},[x.EPathTypeExternalTable]:()=>{var e,t;const a=(0,ye.Ow)({...f,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:s}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},r=(null===s||void 0===s||null===(t=s.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:fg("field_source-type"),content:n},{name:fg("field_data-source"),content:s&&(0,d.jsx)("span",{title:s,children:(0,d.jsx)(Bs.K,{title:r||"",url:a})})}]},[x.EPathTypeExternalDataSource]:()=>{var e;return[{name:fg("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[x.EPathTypeView]:void 0,[x.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:fg("field_state"),content:(0,d.jsx)(nr,{state:t})}]:[]},[x.EPathTypeTransfer]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:fg("field_state"),content:(0,d.jsx)(nr,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:jg("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:jg("overview-title"),children:(0,d.jsx)(Er,{data:u})}),(0,d.jsx)(Ov.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(Ov.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},E=()=>{v(Ku.triggerCollapse)},w=()=>{v(Ku.triggerExpand)},C=()=>{v(Ku.clear)},P=og(s,a),I=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&Zv(u,{setActivePath:m},"m")(s,"preview"),(0,d.jsx)(pn.b,{text:P,view:"flat-secondary",title:fg("action_copySchemaPath")}),(0,d.jsx)(am,{onCollapse:E,onExpand:w,isCollapsed:p.collapsed,initialDirection:"bottom"})]})},A=()=>{const{Status:t,Reason:a}=null!==j&&void 0!==j?j:{};if(e){let t=e.replace("EPathType","");return lg(s,e)&&(t="domain"),(0,d.jsx)("div",{className:jg("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:jg("entity-type",{error:!0}),children:(0,d.jsx)(Ra.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(gg,{children:(0,d.jsxs)("div",{className:jg(),children:[(0,d.jsx)("div",{className:jg({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.ED,onSplitStartDragAdditional:C,triggerCollapse:p.triggerCollapse,triggerExpand:p.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Tg,{tenantName:a,path:s}),(0,d.jsxs)("div",{className:jg("info"),children:[(0,d.jsxs)("div",{className:jg("sticky-top"),children:[(0,d.jsxs)("div",{className:jg("info-header"),children:[(0,d.jsxs)("div",{className:jg("info-title"),children:[A(),(0,d.jsx)("div",{className:jg("path-name"),children:P})]}),(0,d.jsx)("div",{className:jg("info-controls"),children:I()})]}),S()]}),(0,d.jsx)("div",{className:jg("overview-wrapper"),children:N()})]})]})}),(0,d.jsxs)(ot.s,{className:jg("actions"),gap:.5,children:[!l&&(0,d.jsx)(Cg,{}),(0,d.jsx)(am,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Dg=(0,c.cn)("tenant-page"),Ag=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.jX))});function _g(e){var t,l,c,u,m,p,g,y,x,b;const[f,j]=n.useReducer(em(Z.jX),void 0,Ag),[{database:T,name:S,schema:N},E]=(0,r.useQueryParams)({database:r.StringParam,name:r.StringParam,schema:r.StringParam});n.useEffect((()=>{S&&!T&&E({database:S,name:void 0},"replaceIn")}),[T,S,E]);const w=null!==T&&void 0!==T?T:S;if(!w)throw new Error("Tenant name is not defined");const C=n.useRef();n.useEffect((()=>{if(C.current!==w){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(50245).then(a.bind(a,50245));e(w)})().catch(console.error),C.current=w}}),[w]);const P=(0,X.YQ)();n.useEffect((()=>{P((0,v.g)("tenant",{tenantName:w}))}),[w,P]);const I=null!==N&&void 0!==N?N:w,{currentData:D,error:A,isLoading:_}=G.useGetOverviewQuery({path:I,database:w}),R=(0,X.N4)((e=>(0,K.Tp)(e,I,w))),k=null!==(t=null===D||void 0===D||null===(l=D.PathDescription)||void 0===l||null===(c=l.Self)||void 0===c?void 0:c.PathType)&&void 0!==t?t:null===R||void 0===R||null===(u=R.PathDescription)||void 0===u||null===(m=u.Self)||void 0===m?void 0:m.PathType,O=null!==(p=null===D||void 0===D||null===(g=D.PathDescription)||void 0===g||null===(y=g.Self)||void 0===y?void 0:y.PathSubType)&&void 0!==p?p:null===R||void 0===R||null===(x=R.PathDescription)||void 0===x||null===(b=x.Self)||void 0===b?void 0:b.PathSubType,M=(0,ee.Pq)(A),[L,q]=n.useState(!0);L&&!_&&q(!1);const z=I||Nr("page.title");return(0,d.jsxs)("div",{className:Dg(),children:[(0,d.jsx)(s.mg,{defaultTitle:`${z} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${z} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:L,children:(0,d.jsx)(i.A,{error:M?A:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:Z.jQ,defaultSizes:[25,75],triggerCollapse:f.triggerCollapse,triggerExpand:f.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{j(Ku.clear)},children:[(0,d.jsx)(Ig,{type:k,subType:O,tenantName:w,path:I,onCollapseSummary:()=>{j(Ku.triggerCollapse)},onExpandSummary:()=>{j(Ku.triggerExpand)},isCollapsed:f.collapsed}),(0,d.jsx)("div",{className:Dg("main"),children:(0,d.jsx)(kv,{type:k,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:w,path:I})})]})})})]})}},2748:()=>{},5890:(e,t,a)=>{var n={"./simpleWorker":51929,"./simpleWorker.js":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":51929};function s(e){return Promise.resolve().then((()=>{if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a(n[e])}))}s.keys=()=>Object.keys(n),s.id=5890,e.exports=s},9204:(e,t,a)=>{var n={"./editorBaseApi":[73848],"./editorBaseApi.js":[73848],"./editorSimpleWorker":[16545],"./editorSimpleWorker.js":[16545],"./editorWorker":[10920],"./editorWorker.js":[10920],"./editorWorkerHost":[80718],"./editorWorkerHost.js":[80718],"./findSectionHeaders":[56691],"./findSectionHeaders.js":[56691],"./getIconClasses":[53068],"./getIconClasses.js":[53068],"./languageFeatureDebounce":[32500],"./languageFeatureDebounce.js":[32500],"./languageFeatures":[56942],"./languageFeatures.js":[56942],"./languageFeaturesService":[76007],"./languageFeaturesService.js":[76007],"./languageService":[17890],"./languageService.js":[17890],"./languagesAssociations":[99908],"./languagesAssociations.js":[99908],"./languagesRegistry":[69259],"./languagesRegistry.js":[69259],"./markerDecorations":[37550],"./markerDecorations.js":[37550],"./markerDecorationsService":[30707],"./markerDecorationsService.js":[30707],"./model":[23750],"./model.js":[23750],"./modelService":[16363],"./modelService.js":[16363],"./resolverService":[18938],"./resolverService.js":[18938],"./semanticTokensDto":[98232],"./semanticTokensDto.js":[98232],"./semanticTokensProviderStyling":[45538],"./semanticTokensProviderStyling.js":[45538],"./semanticTokensStyling":[74243],"./semanticTokensStyling.js":[74243],"./semanticTokensStylingService":[27004],"./semanticTokensStylingService.js":[27004],"./textModelSync/textModelSync.impl":[47443],"./textModelSync/textModelSync.impl.js":[47443],"./textModelSync/textModelSync.protocol":[28868,28868],"./textModelSync/textModelSync.protocol.js":[28868,28868],"./textResourceConfiguration":[90360],"./textResourceConfiguration.js":[90360],"./treeSitterParserService":[44432],"./treeSitterParserService.js":[44432],"./treeViewsDnd":[36723],"./treeViewsDnd.js":[36723],"./treeViewsDndService":[29100],"./treeViewsDndService.js":[29100],"./unicodeTextModelHighlighter":[74855],"./unicodeTextModelHighlighter.js":[74855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[73848],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[73848],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[16545],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[16545],"monaco-editor/esm/vs/editor/common/services/editorWorker":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[80718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[80718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[56691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[56691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[53068],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[53068],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[76007],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[76007],"monaco-editor/esm/vs/editor/common/services/languageService":[17890],"monaco-editor/esm/vs/editor/common/services/languageService.js":[17890],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[99908],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[99908],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[69259],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[69259],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[30707],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[30707],"monaco-editor/esm/vs/editor/common/services/model":[23750],"monaco-editor/esm/vs/editor/common/services/model.js":[23750],"monaco-editor/esm/vs/editor/common/services/modelService":[16363],"monaco-editor/esm/vs/editor/common/services/modelService.js":[16363],"monaco-editor/esm/vs/editor/common/services/resolverService":[18938],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[18938],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[27004],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[27004],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[28868,28868],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[28868,28868],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[90360],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[90360],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[44432],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[44432],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[29100],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[29100],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[74855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[74855]};function s(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],s=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a(s)))}s.keys=()=>Object.keys(n),s.id=9204,e.exports=s},52246:()=>{},52248:(e,t,a)=>{"use strict";a.d(t,{a:()=>n.a});var n=a(47334)},66574:()=>{},71635:(e,t,a)=>{"use strict";a.d(t,{C:()=>y});var n=a(44992),s=a(53850),r=a(62060),i=a.n(r),o=a(21334),l=a(24600);const c=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),d=(0,s.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:s.i5,argsMemoizeOptions:{equalityCheck:i()}}),u=(0,s.Mz)((e=>e),((e,t)=>d(t)),((e,t)=>t(e).data)),m=(0,s.Mz)(((e,t)=>u(e,t)),(e=>(0,l.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const n=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:n}})):e.TabletStateInfo:[]));var p=a(7435),h=a(90182),v=a(88616),g=a(60712);function y({nodeId:e,path:t,database:a}){const[s]=(0,h.Nt)();let r={};(0,p.f8)(e)?r={nodeId:e,database:a}:t&&(r={path:t,database:a});const{isLoading:i,error:o}=c.useGetTabletsInfoQuery(0===Object.keys(r).length?n.hT:r,{pollingInterval:s}),l=(0,h.N4)((e=>m(e,r)));return(0,g.jsx)(v.Q,{tablets:l,database:a,loading:i,error:o})}},79737:(e,t,a)=>{"use strict";a.d(t,{A:()=>o,X:()=>l});var n=a(5874),s=a(77506),r=a(60712);const i=(0,s.cn)("ydb-table");function o({children:e,className:t}){return(0,r.jsx)("div",{className:i("table-header-content",t),children:e})}function l({className:e,width:t,wrapperClassName:a,...s}){return(0,r.jsx)("div",{className:i(null,a),children:(0,r.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,s=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":s})},className:i("table",{width:t},e),...s})})}},94695:(e,t,a)=>{"use strict";a.r(t),a.d(t,{YDBSyntaxHighlighter:()=>b});var n=a(59284),s=a(96873),r=a(97091),i=a(96298);const o=(0,a(48372).g4)("ydb-syntax-highlighter",{en:{copy:"Copy"}});const l=(0,a(77506).cn)("ydb-syntax-highlighter");var c=a(22680),d=a(32138),u=a(62422);const m={...d.A,'pre[class*="language-"]':{...d.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...d.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},p={...u.A,'pre[class*="language-"]':{...u.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...u.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}},h={...p,'pre[class*="language-"]':{...p['pre[class*="language-"]'],background:u.A['pre[class*="language-"]'].background,scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...p['code[class*="language-"]'],whiteSpace:"pre"}},v={...m,'pre[class*="language-"]':{...m['pre[class*="language-"]'],background:"var(--g-color-base-misc-light)",scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...m['code[class*="language-"]'],whiteSpace:"pre"}};var g=a(43733);function y(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${g.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${g.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${g.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}y.displayName="yql",y.aliases=["yql"];var x=a(60712);function b({text:e,language:t,className:d,transparentBackground:u=!0,withCopy:g}){const[b,f]=n.useState(""),j=function(e){const t=(0,c.i)(),a="dark"===t||"dark-hc"===t;return e?a?p:m:a?h:v}(u);n.useEffect((()=>{!async function(){await async function(e){if("yql"===e)i.A.registerLanguage("yql",y);else{const{default:t}=await a(99648)(`./${e}`);i.A.registerLanguage(e,t)}}(t),f((0,r.Ak)())}()}),[t]);return(0,x.jsxs)("div",{className:l(null,d),children:[g?(0,x.jsx)("div",{className:l("sticky-container"),children:(0,x.jsx)(s.b,{view:"flat-secondary",size:"s",className:l("copy"),text:e,children:o("copy")})}):null,(0,x.jsx)(i.A,{language:t,style:j,customStyle:{height:"100%"},children:e},b)]})}},99648:(e,t,a)=>{var n={"./":[84745,84745],"./abap":[67191,67191],"./abap.js":[67191,67191],"./abnf":[36754,36754],"./abnf.js":[36754,36754],"./actionscript":[69712,69712],"./actionscript.js":[69712,69712],"./ada":[87357,87357],"./ada.js":[87357,87357],"./agda":[61250,61250],"./agda.js":[61250,61250],"./al":[68220,68220],"./al.js":[68220,68220],"./antlr4":[73064,73064],"./antlr4.js":[73064,73064],"./apacheconf":[72401,72401],"./apacheconf.js":[72401,72401],"./apex":[94129,94129],"./apex.js":[94129,94129],"./apl":[98958,98958],"./apl.js":[98958,98958],"./applescript":[68990,68990],"./applescript.js":[68990,68990],"./aql":[84027,84027],"./aql.js":[84027,84027],"./arduino":[173,173],"./arduino.js":[173,173],"./arff":[82714,82714],"./arff.js":[82714,82714],"./asciidoc":[68818,68818],"./asciidoc.js":[68818,68818],"./asm6502":[1073,1073],"./asm6502.js":[1073,1073],"./asmatmel":[6197,6197],"./asmatmel.js":[6197,6197],"./aspnet":[55534,55534],"./aspnet.js":[55534,55534],"./autohotkey":[51400,51400],"./autohotkey.js":[51400,51400],"./autoit":[25007,25007],"./autoit.js":[25007,25007],"./avisynth":[80397,80397],"./avisynth.js":[80397,80397],"./avro-idl":[44391,44391],"./avro-idl.js":[44391,44391],"./bash":[80719,80719],"./bash.js":[80719,80719],"./basic":[51255,51255],"./basic.js":[51255,51255],"./batch":[85393,85393],"./batch.js":[85393,85393],"./bbcode":[78112,78112],"./bbcode.js":[78112,78112],"./bicep":[86814,86814],"./bicep.js":[86814,86814],"./birb":[66824,66824],"./birb.js":[66824,66824],"./bison":[11338,11338],"./bison.js":[11338,11338],"./bnf":[80555,80555],"./bnf.js":[80555,80555],"./brainfuck":[3534,3534],"./brainfuck.js":[3534,3534],"./brightscript":[9426,9426],"./brightscript.js":[9426,9426],"./bro":[91880,91880],"./bro.js":[91880,91880],"./bsl":[40388,40388],"./bsl.js":[40388,40388],"./c":[4664,4664],"./c.js":[4664,4664],"./cfscript":[79247,79247],"./cfscript.js":[79247,79247],"./chaiscript":[75523,75523],"./chaiscript.js":[75523,75523],"./cil":[99753,99753],"./cil.js":[99753,99753],"./clike":[31423,31423],"./clike.js":[31423,31423],"./clojure":[21989,21989],"./clojure.js":[21989,21989],"./cmake":[9930,9930],"./cmake.js":[9930,9930],"./cobol":[30226,30226],"./cobol.js":[30226,30226],"./coffeescript":[85622,85622],"./coffeescript.js":[85622,85622],"./concurnas":[30229,30229],"./concurnas.js":[30229,30229],"./coq":[25604,25604],"./coq.js":[25604,25604],"./core":[44846,44846],"./core.js":[44846,44846],"./cpp":[81571,81571],"./cpp.js":[81571,81571],"./crystal":[61747,61747],"./crystal.js":[61747,61747],"./csharp":[46306,46306],"./csharp.js":[46306,46306],"./cshtml":[17830,17830],"./cshtml.js":[17830,17830],"./csp":[23039,23039],"./csp.js":[23039,23039],"./css":[16242,16242],"./css-extras":[93696,93696],"./css-extras.js":[93696,93696],"./css.js":[16242,16242],"./csv":[7773,7773],"./csv.js":[7773,7773],"./cypher":[74394,74394],"./cypher.js":[74394,74394],"./d":[45517,45517],"./d.js":[45517,45517],"./dart":[79204,79204],"./dart.js":[79204,79204],"./dataweave":[62595,62595],"./dataweave.js":[62595,62595],"./dax":[31584,31584],"./dax.js":[31584,31584],"./dhall":[5254,5254],"./dhall.js":[5254,5254],"./diff":[73026,73026],"./diff.js":[73026,73026],"./django":[14382,14382],"./django.js":[14382,14382],"./dns-zone-file":[72188,72188],"./dns-zone-file.js":[72188,72188],"./docker":[6785,6785],"./docker.js":[6785,6785],"./dot":[59786,59786],"./dot.js":[59786,59786],"./ebnf":[55990,55990],"./ebnf.js":[55990,55990],"./editorconfig":[71266,71266],"./editorconfig.js":[71266,71266],"./eiffel":[93890,93890],"./eiffel.js":[93890,93890],"./ejs":[59605,59605],"./ejs.js":[59605,59605],"./elixir":[87138,87138],"./elixir.js":[87138,87138],"./elm":[88269,88269],"./elm.js":[88269,88269],"./erb":[69854,69854],"./erb.js":[69854,69854],"./erlang":[13470,13470],"./erlang.js":[13470,13470],"./etlua":[42912,42912],"./etlua.js":[42912,42912],"./excel-formula":[54861,54861],"./excel-formula.js":[54861,54861],"./factor":[16038,16038],"./factor.js":[16038,16038],"./false":[58666,58666],"./false.js":[58666,58666],"./firestore-security-rules":[66809,66809],"./firestore-security-rules.js":[66809,66809],"./flow":[80017,80017],"./flow.js":[80017,80017],"./fortran":[2251,2251],"./fortran.js":[2251,2251],"./fsharp":[85623,85623],"./fsharp.js":[85623,85623],"./ftl":[93691,93691],"./ftl.js":[93691,93691],"./gap":[35569,35569],"./gap.js":[35569,35569],"./gcode":[74729,74729],"./gcode.js":[74729,74729],"./gdscript":[91545,91545],"./gdscript.js":[91545,91545],"./gedcom":[69500,69500],"./gedcom.js":[69500,69500],"./gherkin":[15931,15931],"./gherkin.js":[15931,15931],"./git":[3061,3061],"./git.js":[3061,3061],"./glsl":[16097,16097],"./glsl.js":[16097,16097],"./gml":[72737,72737],"./gml.js":[72737,72737],"./gn":[2656,2656],"./gn.js":[2656,2656],"./go":[1431,1431],"./go-module":[88432,88432],"./go-module.js":[88432,88432],"./go.js":[1431,1431],"./graphql":[71588,71588],"./graphql.js":[71588,71588],"./groovy":[92551,92551],"./groovy.js":[92551,92551],"./haml":[4243,4243],"./haml.js":[4243,4243],"./handlebars":[22609,22609],"./handlebars.js":[22609,22609],"./haskell":[37677,37677],"./haskell.js":[37677,37677],"./haxe":[29193,29193],"./haxe.js":[29193,29193],"./hcl":[44866,44866],"./hcl.js":[44866,44866],"./hlsl":[24458,24458],"./hlsl.js":[24458,24458],"./hoon":[58457,58457],"./hoon.js":[58457,58457],"./hpkp":[3738,3738],"./hpkp.js":[3738,3738],"./hsts":[82505,82505],"./hsts.js":[82505,82505],"./http":[20053,20053],"./http.js":[20053,20053],"./ichigojam":[32670,32670],"./ichigojam.js":[32670,32670],"./icon":[92868,92868],"./icon.js":[92868,92868],"./icu-message-format":[88810,88810],"./icu-message-format.js":[88810,88810],"./idris":[93672,93672],"./idris.js":[93672,93672],"./iecst":[83005,83005],"./iecst.js":[83005,83005],"./ignore":[37747,37747],"./ignore.js":[37747,37747],"./index":[84745,84745],"./index.js":[84745,84745],"./inform7":[81327,81327],"./inform7.js":[81327,81327],"./ini":[61387,61387],"./ini.js":[61387,61387],"./io":[28125,28125],"./io.js":[28125,28125],"./j":[9511,9511],"./j.js":[9511,9511],"./java":[56421,56421],"./java.js":[56421,56421],"./javadoc":[85595,85595],"./javadoc.js":[85595,85595],"./javadoclike":[52036,52036],"./javadoclike.js":[52036,52036],"./javascript":[29866,29866],"./javascript.js":[29866,29866],"./javastacktrace":[83012,83012],"./javastacktrace.js":[83012,83012],"./jexl":[95264,95264],"./jexl.js":[95264,95264],"./jolie":[56026,56026],"./jolie.js":[56026,56026],"./jq":[62888,62888],"./jq.js":[62888,62888],"./js-extras":[84960,84960],"./js-extras.js":[84960,84960],"./js-templates":[79972,79972],"./js-templates.js":[79972,79972],"./jsdoc":[10242,10242],"./jsdoc.js":[10242,10242],"./json":[82315,82315],"./json.js":[82315,82315],"./json5":[57320,57320],"./json5.js":[57320,57320],"./jsonp":[88987,88987],"./jsonp.js":[88987,88987],"./jsstacktrace":[91087,91087],"./jsstacktrace.js":[91087,91087],"./jsx":[10064,10064],"./jsx.js":[10064,10064],"./julia":[6528,6528],"./julia.js":[6528,6528],"./keepalived":[29043,29043],"./keepalived.js":[29043,29043],"./keyman":[85776,85776],"./keyman.js":[85776,85776],"./kotlin":[85664,85664],"./kotlin.js":[85664,85664],"./kumir":[29461,29461],"./kumir.js":[29461,29461],"./kusto":[4617,4617],"./kusto.js":[4617,4617],"./latex":[30573,30573],"./latex.js":[30573,30573],"./latte":[84307,84307],"./latte.js":[84307,84307],"./less":[17880,17880],"./less.js":[17880,17880],"./lilypond":[23882,23882],"./lilypond.js":[23882,23882],"./liquid":[50045,50045],"./liquid.js":[50045,50045],"./lisp":[81869,81869],"./lisp.js":[81869,81869],"./livescript":[90504,90504],"./livescript.js":[90504,90504],"./llvm":[47472,47472],"./llvm.js":[47472,47472],"./log":[68527,68527],"./log.js":[68527,68527],"./lolcode":[98559,98559],"./lolcode.js":[98559,98559],"./lua":[71515,71515],"./lua.js":[71515,71515],"./magma":[33436,33436],"./magma.js":[33436,33436],"./makefile":[9177,9177],"./makefile.js":[9177,9177],"./markdown":[43028,43028],"./markdown.js":[43028,43028],"./markup":[66593,66593],"./markup-templating":[73863,73863],"./markup-templating.js":[73863,73863],"./markup.js":[66593,66593],"./matlab":[72020,72020],"./matlab.js":[72020,72020],"./maxscript":[42396,42396],"./maxscript.js":[42396,42396],"./mel":[16795,16795],"./mel.js":[16795,16795],"./mermaid":[35958,35958],"./mermaid.js":[35958,35958],"./mizar":[73442,73442],"./mizar.js":[73442,73442],"./mongodb":[5411,5411],"./mongodb.js":[5411,5411],"./monkey":[49788,49788],"./monkey.js":[49788,49788],"./moonscript":[4887,4887],"./moonscript.js":[4887,4887],"./n1ql":[25101,25101],"./n1ql.js":[25101,25101],"./n4js":[57708,57708],"./n4js.js":[57708,57708],"./nand2tetris-hdl":[78710,78710],"./nand2tetris-hdl.js":[78710,78710],"./naniscript":[70190,70190],"./naniscript.js":[70190,70190],"./nasm":[92008,92008],"./nasm.js":[92008,92008],"./neon":[90529,90529],"./neon.js":[90529,90529],"./nevod":[93771,93771],"./nevod.js":[93771,93771],"./nginx":[68377,68377],"./nginx.js":[68377,68377],"./nim":[31177,31177],"./nim.js":[31177,31177],"./nix":[16758,16758],"./nix.js":[16758,16758],"./nsis":[19702,19702],"./nsis.js":[19702,19702],"./objectivec":[34693,34693],"./objectivec.js":[34693,34693],"./ocaml":[89033,89033],"./ocaml.js":[89033,89033],"./opencl":[38718,38718],"./opencl.js":[38718,38718],"./openqasm":[76603,76603],"./openqasm.js":[76603,76603],"./oz":[72788,72788],"./oz.js":[72788,72788],"./parigp":[92816,92816],"./parigp.js":[92816,92816],"./parser":[63782,63782],"./parser.js":[63782,63782],"./pascal":[39705,39705],"./pascal.js":[39705,39705],"./pascaligo":[20600,20600],"./pascaligo.js":[20600,20600],"./pcaxis":[54597,54597],"./pcaxis.js":[54597,54597],"./peoplecode":[42791,42791],"./peoplecode.js":[42791,42791],"./perl":[34156,34156],"./perl.js":[34156,34156],"./php":[30249,30249],"./php-extras":[9493,9493],"./php-extras.js":[9493,9493],"./php.js":[30249,30249],"./phpdoc":[26327,26327],"./phpdoc.js":[26327,26327],"./plsql":[52541,52541],"./plsql.js":[52541,52541],"./powerquery":[90330,90330],"./powerquery.js":[90330,90330],"./powershell":[17500,17500],"./powershell.js":[17500,17500],"./processing":[5530,5530],"./processing.js":[5530,5530],"./prolog":[63025,85406],"./prolog.js":[63025,85406],"./promql":[1146,1146],"./promql.js":[1146,1146],"./properties":[47108,47108],"./properties.js":[47108,47108],"./protobuf":[81014,81014],"./protobuf.js":[81014,81014],"./psl":[96410,96410],"./psl.js":[96410,96410],"./pug":[54781,54781],"./pug.js":[54781,54781],"./puppet":[51159,51159],"./puppet.js":[51159,51159],"./pure":[26411,26411],"./pure.js":[26411,26411],"./purebasic":[57469,57469],"./purebasic.js":[57469,57469],"./purescript":[10132,10132],"./purescript.js":[10132,10132],"./python":[81243,81243],"./python.js":[81243,81243],"./q":[4018,4018],"./q.js":[4018,4018],"./qml":[19791,19791],"./qml.js":[19791,19791],"./qore":[81940,81940],"./qore.js":[81940,81940],"./qsharp":[60464,60464],"./qsharp.js":[60464,60464],"./r":[10815,10815],"./r.js":[10815,10815],"./racket":[90367,90367],"./racket.js":[90367,90367],"./reason":[65633,65633],"./reason.js":[65633,65633],"./regex":[56054,56054],"./regex.js":[56054,56054],"./rego":[94102,94102],"./rego.js":[94102,94102],"./renpy":[42111,42111],"./renpy.js":[42111,42111],"./rest":[34119,34119],"./rest.js":[34119,34119],"./rip":[70858,70858],"./rip.js":[70858,70858],"./roboconf":[54651,54651],"./roboconf.js":[54651,54651],"./robotframework":[10525,10525],"./robotframework.js":[10525,10525],"./ruby":[17981,17981],"./ruby.js":[17981,17981],"./rust":[8215,8215],"./rust.js":[8215,8215],"./sas":[21996,21996],"./sas.js":[21996,21996],"./sass":[71107,71107],"./sass.js":[71107,71107],"./scala":[30499,30499],"./scala.js":[30499,30499],"./scheme":[4554,4554],"./scheme.js":[4554,4554],"./scss":[96017,96017],"./scss.js":[96017,96017],"./shell-session":[56174,56174],"./shell-session.js":[56174,56174],"./smali":[3149,3149],"./smali.js":[3149,3149],"./smalltalk":[86472,86472],"./smalltalk.js":[86472,86472],"./smarty":[87429,87429],"./smarty.js":[87429,87429],"./sml":[37605,37605],"./sml.js":[37605,37605],"./solidity":[54520,54520],"./solidity.js":[54520,54520],"./solution-file":[61741,61741],"./solution-file.js":[61741,61741],"./soy":[47660,47660],"./soy.js":[47660,47660],"./sparql":[57016,57016],"./sparql.js":[57016,57016],"./splunk-spl":[19026,19026],"./splunk-spl.js":[19026,19026],"./sqf":[20535,20535],"./sqf.js":[20535,20535],"./sql":[87233,87233],"./sql.js":[87233,87233],"./squirrel":[65206,65206],"./squirrel.js":[65206,65206],"./stan":[29769,29769],"./stan.js":[29769,29769],"./stylus":[55651,55651],"./stylus.js":[55651,55651],"./supported-languages":[70289,70289],"./supported-languages.js":[70289,70289],"./swift":[46134,46134],"./swift.js":[46134,46134],"./systemd":[9614,9614],"./systemd.js":[9614,9614],"./t4-cs":[71672,71672],"./t4-cs.js":[71672,71672],"./t4-templating":[84587,84587],"./t4-templating.js":[84587,84587],"./t4-vb":[5282,5282],"./t4-vb.js":[5282,5282],"./tap":[83896,83896],"./tap.js":[83896,83896],"./tcl":[27950,27950],"./tcl.js":[27950,27950],"./textile":[42384,42384],"./textile.js":[42384,42384],"./toml":[37385,37385],"./toml.js":[37385,37385],"./tremor":[55528,55528],"./tremor.js":[55528,55528],"./tsx":[30850,30850],"./tsx.js":[30850,30850],"./tt2":[82399,82399],"./tt2.js":[82399,82399],"./turtle":[70695,70695],"./turtle.js":[70695,70695],"./twig":[98268,98268],"./twig.js":[98268,98268],"./typescript":[82066,82066],"./typescript.js":[82066,82066],"./typoscript":[3980,3980],"./typoscript.js":[3980,3980],"./unrealscript":[47153,47153],"./unrealscript.js":[47153,47153],"./uorazor":[56761,56761],"./uorazor.js":[56761,56761],"./uri":[83075,83075],"./uri.js":[83075,83075],"./v":[50875,50875],"./v.js":[50875,50875],"./vala":[42615,42615],"./vala.js":[42615,42615],"./vbnet":[21742,21742],"./vbnet.js":[21742,21742],"./velocity":[48914,48914],"./velocity.js":[48914,48914],"./verilog":[37963,37963],"./verilog.js":[37963,37963],"./vhdl":[80067,80067],"./vhdl.js":[80067,80067],"./vim":[67105,67105],"./vim.js":[67105,67105],"./visual-basic":[94810,94810],"./visual-basic.js":[94810,94810],"./warpscript":[11192,11192],"./warpscript.js":[11192,11192],"./wasm":[99341,99341],"./wasm.js":[99341,99341],"./web-idl":[5393,5393],"./web-idl.js":[5393,5393],"./wiki":[91249,91249],"./wiki.js":[91249,91249],"./wolfram":[19233,19233],"./wolfram.js":[19233,19233],"./wren":[89015,89015],"./wren.js":[89015,89015],"./xeora":[97440,97440],"./xeora.js":[97440,97440],"./xml-doc":[52527,52527],"./xml-doc.js":[52527,52527],"./xojo":[35803,35803],"./xojo.js":[35803,35803],"./xquery":[69997,69997],"./xquery.js":[69997,69997],"./yaml":[84578,84578],"./yaml.js":[84578,84578],"./yang":[35596,35596],"./yang.js":[35596,35596],"./zig":[43979,43979],"./zig.js":[43979,43979]};function s(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],s=t[0];return a.e(t[1]).then((()=>a(s)))}s.keys=()=>Object.keys(n),s.id=99648,e.exports=s}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js b/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js deleted file mode 100644 index 5c3c6d7042..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6447.2c0d9bda.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6447],{66447:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Wt,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Vt,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>cn,DocumentHighlightAdapter:()=>Gt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>un,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>$t,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>pn,WorkerManager:()=>Nt,fromPosition:()=>Kt,fromRange:()=>Ht,getWorker:()=>Kn,setupMode:()=>Xn,toRange:()=>Xt,toTextEdit:()=>qt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))u.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,h,p,m,v,b,k,C,_,w,y,x,E,I,A,S,T,L,R,M,F,P,j,D,N,O,U,V,B,W,K,H,X,z,q,$,Q,J,G,Y,Z,ee,te,ne,re,ie,oe,ae,se,ce,ue,de,le,ge,fe,he,pe,me,ve,be,ke,Ce,_e,we,ye,xe,Ee,Ie,Ae,Se,Te,Le,Re,Me,Fe,Pe,je,De,Ne,Oe,Ue,Ve,Be,We,Ke,He,Xe,ze,qe,$e,Qe,Je,Ge,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ct,ut,dt,lt,gt,ft,ht,pt,mt,vt,bt,kt,Ct,_t,wt,yt,xt,Et,It,At,St,Tt,Lt,Rt,Mt,Ft,Pt,jt,Dt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(p=h||(h={})).MIN_VALUE=-2147483648,p.MAX_VALUE=2147483647,p.is=function(e){return"number"===typeof e&&p.MIN_VALUE<=e&&e<=p.MAX_VALUE},(v=m||(m={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(k=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},k.is=function(e){let t=e;return Ot.objectLiteral(t)&&Ot.uinteger(t.line)&&Ot.uinteger(t.character)},(_=C||(C={})).create=function(e,t,n,r){if(Ot.uinteger(e)&&Ot.uinteger(t)&&Ot.uinteger(n)&&Ot.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},_.is=function(e){let t=e;return Ot.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(y=w||(w={})).create=function(e,t){return{uri:e,range:t}},y.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&(Ot.string(t.uri)||Ot.undefined(t.uri))},(E=x||(x={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.targetRange)&&Ot.string(t.targetUri)&&C.is(t.targetSelectionRange)&&(C.is(t.originSelectionRange)||Ot.undefined(t.originSelectionRange))},(A=I||(I={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.numberRange(t.red,0,1)&&Ot.numberRange(t.green,0,1)&&Ot.numberRange(t.blue,0,1)&&Ot.numberRange(t.alpha,0,1)},(T=S||(S={})).create=function(e,t){return{range:e,color:t}},T.is=function(e){const t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&I.is(t.color)},(R=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.label)&&(Ot.undefined(t.textEdit)||q.is(t))&&(Ot.undefined(t.additionalTextEdits)||Ot.typedArray(t.additionalTextEdits,q.is))},(F=M||(M={})).Comment="comment",F.Imports="imports",F.Region="region",(j=P||(P={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ot.defined(n)&&(a.startCharacter=n),Ot.defined(r)&&(a.endCharacter=r),Ot.defined(i)&&(a.kind=i),Ot.defined(o)&&(a.collapsedText=o),a},j.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.uinteger(t.startLine)&&Ot.uinteger(t.startLine)&&(Ot.undefined(t.startCharacter)||Ot.uinteger(t.startCharacter))&&(Ot.undefined(t.endCharacter)||Ot.uinteger(t.endCharacter))&&(Ot.undefined(t.kind)||Ot.string(t.kind))},(N=D||(D={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ot.defined(t)&&w.is(t.location)&&Ot.string(t.message)},(U=O||(O={})).Error=1,U.Warning=2,U.Information=3,U.Hint=4,(B=V||(V={})).Unnecessary=1,B.Deprecated=2,(W||(W={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.href)},(H=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ot.defined(n)&&(a.severity=n),Ot.defined(r)&&(a.code=r),Ot.defined(i)&&(a.source=i),Ot.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t;let n=e;return Ot.defined(n)&&C.is(n.range)&&Ot.string(n.message)&&(Ot.number(n.severity)||Ot.undefined(n.severity))&&(Ot.integer(n.code)||Ot.string(n.code)||Ot.undefined(n.code))&&(Ot.undefined(n.codeDescription)||Ot.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ot.string(n.source)||Ot.undefined(n.source))&&(Ot.undefined(n.relatedInformation)||Ot.typedArray(n.relatedInformation,D.is))},(z=X||(X={})).create=function(e,t,...n){let r={title:e,command:t};return Ot.defined(n)&&n.length>0&&(r.arguments=n),r},z.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.title)&&Ot.string(t.command)},($=q||(q={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.newText)&&C.is(t.range)},(J=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},J.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.label)&&(Ot.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ot.string(t.description)||void 0===t.description)},(G||(G={})).is=function(e){const t=e;return Ot.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return q.is(t)&&(Q.is(t.annotationId)||G.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ot.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ot.string(t.oldUri)&&Ot.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ot.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ot.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ce||(ce={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ot.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ue||(ue={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&Ot.integer(t.version)},(he=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&(null===t.version||Ot.integer(t.version))},(me=pe||(pe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&Ot.string(t.languageId)&&Ot.integer(t.version)&&Ot.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(ke||(ke={})).is=function(e){const t=e;return Ot.objectLiteral(e)&&ve.is(t.kind)&&Ot.string(t.value)},(_e=Ce||(Ce={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(ye=we||(we={})).PlainText=1,ye.Snippet=2,(xe||(xe={})).Deprecated=1,(Ie=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ie.is=function(e){const t=e;return t&&Ot.string(t.newText)&&C.is(t.insert)&&C.is(t.replace)},(Se=Ae||(Ae={})).asIs=1,Se.adjustIndentation=2,(Te||(Te={})).is=function(e){const t=e;return t&&(Ot.string(t.detail)||void 0===t.detail)&&(Ot.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Fe=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Fe.is=function(e){const t=e;return Ot.string(t)||Ot.objectLiteral(t)&&Ot.string(t.language)&&Ot.string(t.value)},(Pe||(Pe={})).is=function(e){let t=e;return!!t&&Ot.objectLiteral(t)&&(ke.is(t.contents)||Me.is(t.contents)||Ot.typedArray(t.contents,Me.is))&&(void 0===e.range||C.is(e.range))},(je||(je={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(De||(De={})).create=function(e,t,...n){let r={label:e};return Ot.defined(t)&&(r.documentation=t),Ot.defined(n)?r.parameters=n:r.parameters=[],r},(Oe=Ne||(Ne={})).Text=1,Oe.Read=2,Oe.Write=3,(Ue||(Ue={})).create=function(e,t){let n={range:e};return Ot.number(t)&&(n.kind=t),n},(Be=Ve||(Ve={})).File=1,Be.Module=2,Be.Namespace=3,Be.Package=4,Be.Class=5,Be.Method=6,Be.Property=7,Be.Field=8,Be.Constructor=9,Be.Enum=10,Be.Interface=11,Be.Function=12,Be.Variable=13,Be.Constant=14,Be.String=15,Be.Number=16,Be.Boolean=17,Be.Array=18,Be.Object=19,Be.Key=20,Be.Null=21,Be.EnumMember=22,Be.Struct=23,Be.Event=24,Be.Operator=25,Be.TypeParameter=26,(We||(We={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(He||(He={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(ze=Xe||(Xe={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},ze.is=function(e){let t=e;return t&&Ot.string(t.name)&&Ot.number(t.kind)&&C.is(t.range)&&C.is(t.selectionRange)&&(void 0===t.detail||Ot.string(t.detail))&&(void 0===t.deprecated||Ot.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},($e=qe||(qe={})).Empty="",$e.QuickFix="quickfix",$e.Refactor="refactor",$e.RefactorExtract="refactor.extract",$e.RefactorInline="refactor.inline",$e.RefactorRewrite="refactor.rewrite",$e.Source="source",$e.SourceOrganizeImports="source.organizeImports",$e.SourceFixAll="source.fixAll",(Je=Qe||(Qe={})).Invoked=1,Je.Automatic=2,(Ye=Ge||(Ge={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ot.defined(t)&&Ot.typedArray(t.diagnostics,K.is)&&(void 0===t.only||Ot.typedArray(t.only,Ot.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):X.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ot.string(t.title)&&(void 0===t.diagnostics||Ot.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||Ot.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||X.is(t.command))&&(void 0===t.isPreferred||Ot.boolean(t.isPreferred))&&(void 0===t.edit||ce.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ot.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ot.defined(t)&&C.is(t.range)&&(Ot.undefined(t.command)||X.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ot.defined(t)&&Ot.uinteger(t.tabSize)&&Ot.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ot.defined(t)&&C.is(t.range)&&(Ot.undefined(t.target)||Ot.string(t.target))},(ct=st||(st={})).create=function(e,t){return{range:e,parent:t}},ct.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&(void 0===t.parent||ct.is(t.parent))},(dt=ut||(ut={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(pt=ht||(ht={})).create=function(e,t){return{range:e,text:t}},pt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&Ot.string(t.text)},(vt=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&Ot.boolean(t.caseSensitiveLookup)&&(Ot.string(t.variableName)||void 0===t.variableName)},(kt=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},kt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&(Ot.string(t.expression)||void 0===t.expression)},(_t=Ct||(Ct={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},_t.is=function(e){const t=e;return Ot.defined(t)&&C.is(e.stoppedLocation)},(yt=wt||(wt={})).Type=1,yt.Parameter=2,yt.is=function(e){return 1===e||2===e},(Et=xt||(xt={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ot.objectLiteral(t)&&(void 0===t.tooltip||Ot.string(t.tooltip)||ke.is(t.tooltip))&&(void 0===t.location||w.is(t.location))&&(void 0===t.command||X.is(t.command))},(At=It||(It={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ot.objectLiteral(t)&&b.is(t.position)&&(Ot.string(t.label)||Ot.typedArray(t.label,xt.is))&&(void 0===t.kind||wt.is(t.kind))&&void 0===t.textEdits||Ot.typedArray(t.textEdits,q.is)&&(void 0===t.tooltip||Ot.string(t.tooltip)||ke.is(t.tooltip))&&(void 0===t.paddingLeft||Ot.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ot.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Tt||(Tt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Rt||(Rt={})).Invoked=0,Mt.Automatic=1,(Ft||(Ft={})).create=function(e,t){return{range:e,text:t}},(Pt||(Pt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(jt||(jt={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&f.is(t.uri)&&Ot.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,c=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[c++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[c++]=i[a++];for(;s<o.length;)e[c++]=o[s++];return e}e.create=function(e,t,n,r){return new Ut(e,t,n,r)},e.is=function(e){let t=e;return!!(Ot.defined(t)&&Ot.string(t.uri)&&(Ot.undefined(t.languageId)||Ot.string(t.languageId))&&Ot.uinteger(t.lineCount)&&Ot.func(t.getText)&&Ot.func(t.positionAt)&&Ot.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Dt||(Dt={}));var Ot,Ut=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ot||(Ot={}));var Vt=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Bt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Bt(e){switch(e){case O.Error:return l.MarkerSeverity.Error;case O.Warning:return l.MarkerSeverity.Warning;case O.Information:return l.MarkerSeverity.Info;case O.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Wt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:zt(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:Xt(e.textEdit.insert),replace:Xt(e.textEdit.replace)}:t.range=Xt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(qt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Xt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function zt(e){const t=l.languages.CompletionItemKind;switch(e){case Ce.Text:return t.Text;case Ce.Method:return t.Method;case Ce.Function:return t.Function;case Ce.Constructor:return t.Constructor;case Ce.Field:return t.Field;case Ce.Variable:return t.Variable;case Ce.Class:return t.Class;case Ce.Interface:return t.Interface;case Ce.Module:return t.Module;case Ce.Property:return t.Property;case Ce.Unit:return t.Unit;case Ce.Value:return t.Value;case Ce.Enum:return t.Enum;case Ce.Keyword:return t.Keyword;case Ce.Snippet:return t.Snippet;case Ce.Color:return t.Color;case Ce.File:return t.File;case Ce.Reference:return t.Reference}return t.Property}function qt(e){if(e)return{range:Xt(e.range),text:e.newText}}var $t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:Xt(e.range),contents:Jt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Jt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Gt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:Xt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:Xt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:Xt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:Xt(e.location.range),selectionRange:Xt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:Xt(e.range),selectionRange:Xt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Ve.File:return t.File;case Ve.Module:return t.Module;case Ve.Namespace:return t.Namespace;case Ve.Package:return t.Package;case Ve.Class:return t.Class;case Ve.Method:return t.Method;case Ve.Property:return t.Property;case Ve.Field:return t.Field;case Ve.Constructor:return t.Constructor;case Ve.Enum:return t.Enum;case Ve.Interface:return t.Interface;case Ve.Function:return t.Function;case Ve.Variable:return t.Variable;case Ve.Constant:return t.Constant;case Ve.String:return t.String;case Ve.Number:return t.Number;case Ve.Boolean:return t.Boolean;case Ve.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:Xt(e.range),url:e.target})))}}))}},cn=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(qt)}))))}},un=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Ht(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(qt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:Xt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=qt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(qt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn,hn,pn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:Xt(e.range)}),e=e.parent;return t}))}))}};function mn(e){return 32===e||9===e}function vn(e){return 10===e||13===e}function bn(e){return e>=48&&e<=57}(hn=fn||(fn={}))[hn.lineFeed=10]="lineFeed",hn[hn.carriageReturn=13]="carriageReturn",hn[hn.space=32]="space",hn[hn._0=48]="_0",hn[hn._1=49]="_1",hn[hn._2=50]="_2",hn[hn._3=51]="_3",hn[hn._4=52]="_4",hn[hn._5=53]="_5",hn[hn._6=54]="_6",hn[hn._7=55]="_7",hn[hn._8=56]="_8",hn[hn._9=57]="_9",hn[hn.a=97]="a",hn[hn.b=98]="b",hn[hn.c=99]="c",hn[hn.d=100]="d",hn[hn.e=101]="e",hn[hn.f=102]="f",hn[hn.g=103]="g",hn[hn.h=104]="h",hn[hn.i=105]="i",hn[hn.j=106]="j",hn[hn.k=107]="k",hn[hn.l=108]="l",hn[hn.m=109]="m",hn[hn.n=110]="n",hn[hn.o=111]="o",hn[hn.p=112]="p",hn[hn.q=113]="q",hn[hn.r=114]="r",hn[hn.s=115]="s",hn[hn.t=116]="t",hn[hn.u=117]="u",hn[hn.v=118]="v",hn[hn.w=119]="w",hn[hn.x=120]="x",hn[hn.y=121]="y",hn[hn.z=122]="z",hn[hn.A=65]="A",hn[hn.B=66]="B",hn[hn.C=67]="C",hn[hn.D=68]="D",hn[hn.E=69]="E",hn[hn.F=70]="F",hn[hn.G=71]="G",hn[hn.H=72]="H",hn[hn.I=73]="I",hn[hn.J=74]="J",hn[hn.K=75]="K",hn[hn.L=76]="L",hn[hn.M=77]="M",hn[hn.N=78]="N",hn[hn.O=79]="O",hn[hn.P=80]="P",hn[hn.Q=81]="Q",hn[hn.R=82]="R",hn[hn.S=83]="S",hn[hn.T=84]="T",hn[hn.U=85]="U",hn[hn.V=86]="V",hn[hn.W=87]="W",hn[hn.X=88]="X",hn[hn.Y=89]="Y",hn[hn.Z=90]="Z",hn[hn.asterisk=42]="asterisk",hn[hn.backslash=92]="backslash",hn[hn.closeBrace=125]="closeBrace",hn[hn.closeBracket=93]="closeBracket",hn[hn.colon=58]="colon",hn[hn.comma=44]="comma",hn[hn.dot=46]="dot",hn[hn.doubleQuote=34]="doubleQuote",hn[hn.minus=45]="minus",hn[hn.openBrace=123]="openBrace",hn[hn.openBracket=91]="openBracket",hn[hn.plus=43]="plus",hn[hn.slash=47]="slash",hn[hn.formFeed=12]="formFeed",hn[hn.tab=9]="tab";new Array(20).fill(0).map(((e,t)=>" ".repeat(t)));var kn,Cn=200;new Array(Cn).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)));(kn||(kn={})).DEFAULT={allowTrailingComma:!1};var _n,wn,yn,xn,En,In,An=function(e,t=!1){const n=e.length;let r=0,i="",o=0,a=16,s=0,c=0,u=0,d=0,l=0;function g(t,n){let i=0,o=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,i++}return i<t&&(o=-1),o}function f(){if(i="",l=0,o=r,c=s,d=u,r>=n)return o=n,a=17;let t=e.charCodeAt(r);if(mn(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(mn(t));return a=15}if(vn(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),l=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(vn(o)){t+=e.substring(i,r),l=2;break}l=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){l=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=g(4,!0);e>=0?t+=String.fromCharCode(e):l=4;break;default:l=5}i=r}}return t}(),a=10;case 47:const c=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!vn(e.charCodeAt(r));)r++;return i=e.substring(c,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,vn(t)&&(13===t&&10===e.charCodeAt(r)&&r++,s++,u=r)}return o||(r++,l=1),i=e.substring(c,r),a=13}return i+=String.fromCharCode(t),r++,a=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!bn(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&bn(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&bn(e.charCodeAt(r))))return l=3,e.substring(t,r);for(r++;r<e.length&&bn(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&bn(e.charCodeAt(r))){for(r++;r<e.length&&bn(e.charCodeAt(r));)r++;n=r}else l=3;return e.substring(t,n)}(),a=11;default:for(;r<n&&h(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(t),r++,a=16}}function h(e){if(mn(e)||vn(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,a=16,l=0},getPosition:()=>r,scan:t?function(){let e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>c,getTokenStartCharacter:()=>o-d,getTokenError:()=>l}};function Sn(e){return{getInitialState:()=>new Wn(null,null,!1,null),tokenize:(t,n)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=An(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),l="";const g=a.scan();if(17===g)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,g){case 1:c=Bn.push(c,0),l=Ln,s=!1;break;case 2:c=Bn.pop(c),l=Ln,s=!1;break;case 3:c=Bn.push(c,1),l=Rn,s=!1;break;case 4:c=Bn.pop(c),l=Rn,s=!1;break;case 6:l=Mn,s=!0;break;case 5:l=Fn,s=!1;break;case 8:case 9:l=Pn,s=!1;break;case 7:l=jn,s=!1;break;case 10:const e=c?c.type:0;l=s||1===e?Dn:On,s=!1;break;case 11:l=Nn,s=!1}if(e)switch(g){case 12:l=Vn;break;case 13:l=Un}u.endState=new Wn(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:l})}return u}(e,t,n)}}(wn=_n||(_n={}))[wn.None=0]="None",wn[wn.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",wn[wn.UnexpectedEndOfString=2]="UnexpectedEndOfString",wn[wn.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",wn[wn.InvalidUnicode=4]="InvalidUnicode",wn[wn.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",wn[wn.InvalidCharacter=6]="InvalidCharacter",(xn=yn||(yn={}))[xn.OpenBraceToken=1]="OpenBraceToken",xn[xn.CloseBraceToken=2]="CloseBraceToken",xn[xn.OpenBracketToken=3]="OpenBracketToken",xn[xn.CloseBracketToken=4]="CloseBracketToken",xn[xn.CommaToken=5]="CommaToken",xn[xn.ColonToken=6]="ColonToken",xn[xn.NullKeyword=7]="NullKeyword",xn[xn.TrueKeyword=8]="TrueKeyword",xn[xn.FalseKeyword=9]="FalseKeyword",xn[xn.StringLiteral=10]="StringLiteral",xn[xn.NumericLiteral=11]="NumericLiteral",xn[xn.LineCommentTrivia=12]="LineCommentTrivia",xn[xn.BlockCommentTrivia=13]="BlockCommentTrivia",xn[xn.LineBreakTrivia=14]="LineBreakTrivia",xn[xn.Trivia=15]="Trivia",xn[xn.Unknown=16]="Unknown",xn[xn.EOF=17]="EOF",(In=En||(En={}))[In.InvalidSymbol=1]="InvalidSymbol",In[In.InvalidNumberFormat=2]="InvalidNumberFormat",In[In.PropertyNameExpected=3]="PropertyNameExpected",In[In.ValueExpected=4]="ValueExpected",In[In.ColonExpected=5]="ColonExpected",In[In.CommaExpected=6]="CommaExpected",In[In.CloseBraceExpected=7]="CloseBraceExpected",In[In.CloseBracketExpected=8]="CloseBracketExpected",In[In.EndOfFileExpected=9]="EndOfFileExpected",In[In.InvalidCommentToken=10]="InvalidCommentToken",In[In.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",In[In.UnexpectedEndOfString=12]="UnexpectedEndOfString",In[In.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",In[In.InvalidUnicode=14]="InvalidUnicode",In[In.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",In[In.InvalidCharacter=16]="InvalidCharacter";var Tn,Ln="delimiter.bracket.json",Rn="delimiter.array.json",Mn="delimiter.colon.json",Fn="delimiter.comma.json",Pn="keyword.json",jn="keyword.json",Dn="string.value.json",Nn="number.json",On="string.key.json",Un="comment.block.json",Vn="comment.line.json",Bn=class e{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(t,n){return new e(t,n)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},Wn=class e{constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof e)&&(this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Bn.equals(this.parents,t.parents))}getStateData(){return this._state}setStateData(e){this._state=e}};function Kn(){return new Promise(((e,t)=>{if(!Tn)return t("JSON not registered!");e(Tn)}))}var Hn=class extends Vt{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(l.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function Xn(e){const t=[],n=[],r=new Nt(e);function i(){const{languageId:t,modeConfiguration:r}=e;qn(n),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new cn(Tn))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new un(Tn))),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Wt(Tn,[" ",":",'"']))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new $t(Tn))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(Tn))),r.tokens&&n.push(l.languages.setTokensProvider(t,Sn(!0))),r.colors&&n.push(l.languages.registerColorProvider(t,new ln(Tn))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(Tn))),r.diagnostics&&n.push(new Hn(t,Tn,e)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new pn(Tn)))}t.push(r),Tn=(...e)=>r.getLanguageServiceWorker(...e),i(),t.push(l.languages.setLanguageConfiguration(e.languageId,$n));let o=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==o&&(o=e.modeConfiguration,i())})),t.push(zn(n)),zn(t)}function zn(e){return{dispose:()=>qn(e)}}function qn(e){for(;e.length;)e.pop().dispose()}var $n={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65206.7f46c107.chunk.js b/ydb/core/viewer/monitoring/static/js/65206.7f46c107.chunk.js new file mode 100644 index 0000000000..6a6c37fb54 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65206.7f46c107.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65206],{43455:e=>{function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}e.exports=t,t.displayName="squirrel",t.aliases=[]},65206:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(43455);const r=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65252.2655458e.chunk.js b/ydb/core/viewer/monitoring/static/js/65252.2655458e.chunk.js new file mode 100644 index 0000000000..d63f19a27d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65252.2655458e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 65252.2655458e.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65252],{65252:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>h,language:()=>b});var a,r,m=n(80781),l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of o(t))d.call(e,r)||r===n||l(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e},c={};s(c,a=m,"default"),r&&s(r,a,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/65252.2655458e.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/65252.2655458e.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/6528.77d69abb.chunk.js b/ydb/core/viewer/monitoring/static/js/6528.77d69abb.chunk.js new file mode 100644 index 0000000000..053420204e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6528.77d69abb.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6528],{6528:(e,t,n)=>{n.d(t,{default:()=>r});var a=n(83695);const r=n.n(a)()},83695:e=>{function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%\xf7\u22bb&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~\u2260\u2264\u2265'\u221a\u221b]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[\u03c0\u212f]/}}e.exports=t,t.displayName="julia",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js b/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js deleted file mode 100644 index 23af2764ea..0000000000 --- a/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 654.863ea445.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[654],{20654:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>n});var t={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65401.e76db1a2.chunk.js b/ydb/core/viewer/monitoring/static/js/65401.e76db1a2.chunk.js new file mode 100644 index 0000000000..0d7044cd28 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65401.e76db1a2.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65401],{65401:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-ie",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6541.a39e9d6a.chunk.js b/ydb/core/viewer/monitoring/static/js/6541.a39e9d6a.chunk.js deleted file mode 100644 index b19044273a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6541.a39e9d6a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6541],{46541:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"km",weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekStart:1,weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js b/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js deleted file mode 100644 index 558a837984..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6554.6dfab136.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6554],{96554:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>u,language:()=>b});var i,r,o=n(80781),a=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m=(e,t,n,i)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of s(t))p.call(e,r)||r===n||a(e,r,{get:()=>t[r],enumerable:!(i=d(t,r))||i.enumerable});return e},l={};m(l,i=o,"default"),r&&m(r,i,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${c.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:l.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},b={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65579.1ec2325b.chunk.js b/ydb/core/viewer/monitoring/static/js/65579.1ec2325b.chunk.js new file mode 100644 index 0000000000..1686edd1fc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65579.1ec2325b.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65579],{65579:function(_,e,a){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var a=e(_),t={name:"tzl",weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),weekStart:1,weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),ordinal:function(_){return _},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65633.b6bc2f47.chunk.js b/ydb/core/viewer/monitoring/static/js/65633.b6bc2f47.chunk.js new file mode 100644 index 0000000000..3842fa9cf0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65633.b6bc2f47.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65633],{4308:e=>{function n(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}e.exports=n,n.displayName="reason",n.aliases=[]},65633:(e,n,a)=>{a.d(n,{default:()=>r});var t=a(4308);const r=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65824.1f5e112a.chunk.js b/ydb/core/viewer/monitoring/static/js/65824.1f5e112a.chunk.js new file mode 100644 index 0000000000..b7a711802c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65824.1f5e112a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65824],{3685:(e,s,t)=>{t.d(s,{$:()=>o});var n=t(54090),l=t(77506),a=t(33775),i=t(60712);const r=(0,l.cn)("ydb-entity-page-title");function o({entityName:e,status:s=n.m.Grey,id:t,className:l}){return(0,i.jsxs)("div",{className:r(null,l),children:[(0,i.jsx)("span",{className:r("prefix"),children:e}),(0,i.jsx)(a.k,{className:r("icon"),status:s,size:"s"}),t]})}},18677:(e,s,t)=>{t.d(s,{A:()=>l});var n=t(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},22983:(e,s,t)=>{t.d(s,{B:()=>c});var n=t(59284),l=t(84476),a=t(84375),i=t(55974),r=t(42829),o=t(60712);function c({children:e,onConfirmAction:s,onConfirmActionSuccess:t,dialogHeader:c,dialogText:d,retryButtonText:u,buttonDisabled:h=!1,buttonView:v="action",buttonTitle:m,buttonClassName:p,withPopover:x=!1,popoverContent:f,popoverPlacement:b="right",popoverDisabled:g=!0}){const[y,j]=n.useState(!1),[N,w]=n.useState(!1),[k,S]=n.useState(!1),C=()=>(0,o.jsx)(l.$,{onClick:()=>j(!0),view:v,disabled:h,loading:!h&&N,className:p,title:m,children:e});return(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(i.g,{visible:y,header:c,text:d,withRetry:k,retryButtonText:u,onConfirm:async e=>{w(!0),await s(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===t||void 0===t?void 0:t())}finally{w(!1)}},onConfirmActionError:e=>{S((0,r.D)(e)),w(!1)},onClose:()=>{j(!1)}}),x?(0,o.jsx)(a.A,{content:f,placement:b,disabled:g,children:C()}):C()]})}},42655:(e,s,t)=>{t.d(s,{y:()=>d});var n=t(59284),l=t(89169),a=t(77506),i=t(66781),r=t(60712);const o=(0,a.cn)("ydb-info-viewer-skeleton"),c=()=>(0,r.jsxs)("div",{className:o("label"),children:[(0,r.jsx)(l.E,{className:o("label__text")}),(0,r.jsx)("div",{className:o("label__dots")})]}),d=({rows:e=8,className:s,delay:t=600})=>{const[a]=(0,i.y)(t);let d=(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(l.E,{className:o("value")})]});return a||(d=null),(0,r.jsx)("div",{className:o(null,s),children:[...new Array(e)].map(((e,s)=>(0,r.jsx)("div",{className:o("row"),children:d},`skeleton-row-${s}`)))})}},42829:(e,s,t)=>{t.d(s,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},55974:(e,s,t)=>{t.d(s,{g:()=>b});var n=t(59284),l=t(18677),a=t(71153),i=t(74321),r=t(2198),o=t(99991),c=t(89954),d=t(77506),u=t(81288),h=t(48372);const v=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,h.g4)("ydb-critical-action-dialog",{en:v});var p=t(60712);const x=(0,d.cn)("ydb-critical-dialog"),f=e=>{if((0,u.cH)(e)){if(403===e.status)return m("no-rights-error");if("string"===typeof e.data)return e.data;if((0,u._E)(e)&&e.data)return(0,p.jsx)(c.O,{hideSeverity:!0,data:e.data});if(e.statusText)return e.statusText}return m("default-error")};function b({visible:e,header:s,text:t,withRetry:c,retryButtonText:d,withCheckBox:u,onClose:h,onConfirm:v,onConfirmActionSuccess:b,onConfirmActionError:g}){const[y,j]=n.useState(!1),[N,w]=n.useState(),[k,S]=n.useState(!1),C=async e=>(j(!0),v(e).then((()=>{b(),h()})).catch((e=>{g(e),w(e)})).finally((()=>{j(!1)})));return(0,p.jsx)(r.l,{open:e,hasCloseButton:!1,className:x(),size:"s",onClose:h,onTransitionExited:()=>{w(void 0),S(!1)},children:N?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(r.l.Header,{caption:s}),(0,p.jsx)(r.l.Body,{className:x("body"),children:(0,p.jsxs)("div",{className:x("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:x("error-icon"),children:(0,p.jsx)(l.A,{width:"24",height:"22"})}),f(N)]})}),(0,p.jsx)(r.l.Footer,{loading:!1,preset:"default",textButtonApply:c?d||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:h})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(r.l.Header,{caption:s}),(0,p.jsxs)(r.l.Body,{className:x("body"),children:[(0,p.jsxs)("div",{className:x("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:x("warning-icon"),children:(0,p.jsx)(o.I,{data:a.A,size:24})}),t]}),u?(0,p.jsx)(i.S,{checked:k,onUpdate:S,children:m("checkbox-text")}):null]}),(0,p.jsx)(r.l.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!k},onClickButtonCancel:h,onClickButtonApply:()=>C()})]})})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var n=t(87184),l=t(77506),a=t(90053),i=t(70043),r=t(60712);const o=(0,l.cn)("ydb-page-meta"),c="\xa0\xa0\xb7\xa0\xa0";function d({items:e,loading:s}){return(0,r.jsx)("div",{className:o("info"),children:s?(0,r.jsx)(i.E,{className:o("skeleton")}):e.filter((e=>Boolean(e))).join(c)})}function u({className:e,...s}){return(0,r.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:o(null,e),children:[(0,r.jsx)(d,{...s}),(0,r.jsx)(a.E,{})]})}},67808:(e,s,t)=>{t.d(s,{E:()=>g});t(59284);var n=t(87184),l=t(92459),a=t(7435),i=t(77506),r=t(56839),o=t(31684),c=t(7187),d=t(12888),u=t(41650),h=t(60073),v=t(25196),m=t(15132),p=t(33775),x=t(39110),f=t(60712);const b=(0,i.cn)("ydb-vdisk-info");function g({data:e,withVDiskPageLink:s,withTitle:t,...i}){var c,b;const g=(0,d.X)(),{AllocatedSize:j,DiskSpace:N,FrontQueues:w,Guid:k,Replicated:S,VDiskState:C,VDiskSlotId:_,Kind:A,SatisfactionRank:E,AvailableSize:B,HasUnreadableBlobs:I,IncarnationGuid:R,InstanceGuid:F,StoragePoolName:O,ReadThroughput:z,WriteThroughput:L,PDiskId:T,NodeId:P}=e||{},D=[];var $,H;((0,a.f8)(_)&&D.push({label:(0,x.r)("slot-id"),value:_}),(0,a.f8)(O)&&D.push({label:(0,x.r)("pool-name"),value:O}),(0,a.f8)(C)&&D.push({label:(0,x.r)("state-status"),value:C}),Number(j)>=0&&Number(B)>=0&&D.push({label:(0,x.r)("size"),value:(0,f.jsx)(m.O,{value:j,capacity:Number(j)+Number(B),formatValues:r.vX,colorizeProgress:!0})}),(0,a.f8)(A)&&D.push({label:(0,x.r)("kind"),value:A}),(0,a.f8)(k)&&D.push({label:(0,x.r)("guid"),value:k}),(0,a.f8)(R)&&D.push({label:(0,x.r)("incarnation-guid"),value:R}),(0,a.f8)(F)&&D.push({label:(0,x.r)("instance-guid"),value:F}),(0,a.f8)(S)&&D.push({label:(0,x.r)("replication-status"),value:S?(0,x.r)("yes"):(0,x.r)("no")}),(0,a.f8)(N)&&D.push({label:(0,x.r)("space-status"),value:(0,f.jsx)(p.k,{status:N})}),(0,a.f8)(null===E||void 0===E||null===(c=E.FreshRank)||void 0===c?void 0:c.Flag))&&D.push({label:(0,x.r)("fresh-rank-satisfaction"),value:(0,f.jsx)(p.k,{status:null===E||void 0===E||null===($=E.FreshRank)||void 0===$?void 0:$.Flag})});(0,a.f8)(null===E||void 0===E||null===(b=E.LevelRank)||void 0===b?void 0:b.Flag)&&D.push({label:(0,x.r)("level-rank-satisfaction"),value:(0,f.jsx)(p.k,{status:null===E||void 0===E||null===(H=E.LevelRank)||void 0===H?void 0:H.Flag})});(0,a.f8)(w)&&D.push({label:(0,x.r)("front-queues"),value:(0,f.jsx)(p.k,{status:w})}),(0,a.f8)(I)&&D.push({label:(0,x.r)("has-unreadable-blobs"),value:I?(0,x.r)("yes"):(0,x.r)("no")}),(0,a.f8)(z)&&D.push({label:(0,x.r)("read-throughput"),value:(0,u.O4)(z)}),(0,a.f8)(L)&&D.push({label:(0,x.r)("write-throughput"),value:(0,u.O4)(L)});if((0,a.f8)(T)&&(0,a.f8)(P)&&(0,a.f8)(_)){const e=[];if(s){const s=(0,l.yX)(_,T,P);e.push((0,f.jsx)(v.K,{title:(0,x.r)("vdisk-page"),url:s,external:!1},s))}if(g){const s=(0,o.Wg)({nodeId:P,pDiskId:T,vDiskSlotId:_});e.push((0,f.jsx)(v.K,{title:(0,x.r)("developer-ui"),url:s},s))}e.length&&D.push({label:(0,x.r)("links"),value:(0,f.jsx)(n.s,{wrap:"wrap",gap:2,children:e})})}const G=e&&t?(0,f.jsx)(y,{data:e}):null;return(0,f.jsx)(h.z_,{info:D,title:G,...i})}function y({data:e}){return(0,f.jsxs)("div",{className:b("title"),children:[(0,x.r)("vdiks-title"),(0,f.jsx)(p.k,{status:(0,c.XY)(e.Severity)}),e.StringifiedId]})}},70043:(e,s,t)=>{t.d(s,{E:()=>i});var n=t(89169),l=t(66781),a=t(60712);const i=({delay:e=600,className:s})=>{const[t]=(0,l.y)(e);return t?(0,a.jsx)(n.E,{className:s}):null}},74321:(e,s,t)=>{t.d(s,{S:()=>c});var n=t(59284),l=t(64222),a=t(46898);function i(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M4 7h9v3H4z"}))}function r(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const o=(0,t(69220).om)("checkbox"),c=n.forwardRef((function(e,s){const{size:t="m",indeterminate:c,disabled:d=!1,content:u,children:h,title:v,style:m,className:p,qa:x}=e,{checked:f,inputProps:b}=(0,l.v)(e),g=u||h,y=n.createElement("span",{className:o("indicator")},n.createElement("span",{className:o("icon"),"aria-hidden":!0},c?n.createElement(i,{className:o("icon-svg",{type:"dash"})}):n.createElement(r,{className:o("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},b,{className:o("control")})),n.createElement("span",{className:o("outline")}));return n.createElement(a.m,{ref:s,title:v,style:m,size:t,disabled:d,className:o({size:t,disabled:d,indeterminate:c,checked:f},p),qa:x,control:y},g)}))},89954:(e,s,t)=>{t.d(s,{O:()=>C});var n=t(59284),l=t(45720),a=t(16929),i=t(71153),r=t(18677),o=t(84476),c=t(33705),d=t(67884),u=t(99991),h=t(77506),v=t(48372);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),x=(0,v.g4)("ydb-shorty-string",{ru:p,en:m});var f=t(60712);const b=(0,h.cn)("kv-shorty-string");function g({value:e="",limit:s=200,strict:t=!1,displayLength:l=!0,render:a=e=>e,onToggle:i,expandLabel:r=x("default_expand_label"),collapseLabel:o=x("default_collapse_label")}){const[c,u]=n.useState(!1),h=(c?o:r)+(l&&!c?x("chars_count",{count:e.length}):""),v=e.length>s+(t?0:h.length),m=c||!v?e:e.slice(0,s-4)+"\xa0...";return(0,f.jsxs)("div",{className:b(),children:[a(m),v?(0,f.jsx)(d.N,{className:b("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var y=t(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function N(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const w=(0,h.cn)("kv-result-issues"),k=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function C({data:e,hideSeverity:s}){const[t,l]=n.useState(!1),a="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(a)&&a.length>0;return(0,f.jsxs)("div",{className:w(),children:[(0,f.jsxs)("div",{className:w("error-message"),children:[(()=>{let t;if("string"===typeof e)t=e;else{var l,a;const i=N(null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.severity);t=(0,f.jsxs)(n.Fragment,{children:[s?null:(0,f.jsxs)(n.Fragment,{children:[(0,f.jsx)(F,{severity:i})," "]}),(0,f.jsx)("span",{className:w("error-message-text"),children:null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.message})]})}return t})(),i&&(0,f.jsx)(o.$,{view:"normal",onClick:()=>l(!t),children:t?"Hide details":"Show details"})]}),i&&t&&(0,f.jsx)(_,{hideSeverity:s,issues:a})]})}function _({issues:e,hideSeverity:s}){const t=null===e||void 0===e?void 0:e.reduce(((e,s)=>{var t;const n=null!==(t=s.severity)&&void 0!==t?t:10;return Math.min(e,n)}),10);return(0,f.jsx)("div",{className:k(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,f.jsx)(A,{hideSeverity:s,issue:e,expanded:e===t},n)))})}function A({issue:e,hideSeverity:s,level:t=0}){const[l,a]=n.useState(!0),i=N(e.severity),r=e.issues,d=Array.isArray(r)&&r.length>0,u=l?"bottom":"right";return(0,f.jsxs)("div",{className:S({leaf:!d,"has-issues":d}),children:[(0,f.jsxs)("div",{className:S("line"),children:[d&&(0,f.jsx)(o.$,{view:"flat-secondary",onClick:()=>a(!l),className:S("arrow-toggle"),children:(0,f.jsx)(c.I,{direction:u,size:16})}),s?null:(0,f.jsx)(F,{severity:i}),(0,f.jsx)(E,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),d&&l&&(0,f.jsx)("div",{className:S("issues"),children:(0,f.jsx)(B,{issues:r,level:t+1,expanded:l})})]})}function E({issue:e}){var s;const t=function(e){const{position:s}=e;if("object"!==typeof s||null===s||!(0,y.kf)(s.row))return"";const{row:t,column:n}=s;return(0,y.kf)(n)?`${t}:${n}`:`line ${t}`}(e),n=window.ydbEditor,l=()=>(0,f.jsxs)("span",{className:S("message"),children:[t&&(0,f.jsx)("span",{className:S("place-text"),title:"Position",children:t}),(0,f.jsx)("div",{className:S("message-text"),children:(0,f.jsx)(g,{value:e.message,expandLabel:"Show full message"})})]}),{row:a,column:i}=null!==(s=e.position)&&void 0!==s?s:{};if(!((0,y.kf)(a)&&n))return l();return(0,f.jsx)(d.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:a,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:l()})}function B(e){const{issues:s,level:t,expanded:n}=e;return(0,f.jsx)("div",{className:S("list"),children:s.map(((e,s)=>(0,f.jsx)(A,{issue:e,level:t,expanded:n},s)))})}const I={S_INFO:l.A,S_WARNING:a.A,S_ERROR:i.A,S_FATAL:r.A},R=(0,h.cn)("yql-issue-severity");function F({severity:e}){const s=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:R({severity:s}),children:[(0,f.jsx)(u.I,{className:R("icon"),data:I[e]}),(0,f.jsx)("span",{className:R("title"),children:s})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/65988.11e4149b.chunk.js b/ydb/core/viewer/monitoring/static/js/65988.11e4149b.chunk.js new file mode 100644 index 0000000000..04b766e299 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/65988.11e4149b.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 65988.11e4149b.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[65988],{65988:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/65988.11e4149b.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/65988.11e4149b.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/6625.a8d44d36.chunk.js b/ydb/core/viewer/monitoring/static/js/6625.a8d44d36.chunk.js deleted file mode 100644 index b406f9e377..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6625.a8d44d36.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6625],{26625:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/66262.b361ce28.chunk.js b/ydb/core/viewer/monitoring/static/js/66262.b361ce28.chunk.js new file mode 100644 index 0000000000..20806fa2e8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66262.b361ce28.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 66262.b361ce28.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66262],{66262:(e,n,i)=>{i.r(n),i.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},r={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=><!~?:&|+\-*\/\^%#]+/,escapes:/%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,identifier:/(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,systemcall:/[$][a-zA-Z0-9_]+/,timeunits:/s|ms|us|ns|ps|fs/,tokenizer:{root:[[/^(\s*)(@identifier)/,["",{cases:{"@builtin_gates":{token:"keyword.$2",next:"@module_instance"},table:{token:"keyword.$2",next:"@table"},"@keywords":{token:"keyword.$2"},"@default":{token:"identifier",next:"@module_instance"}}}]],[/^\s*`include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*`\s*\w+/,"keyword"],{include:"@identifier_or_keyword"},{include:"@whitespace"},[/\(\*.*\*\)/,"annotation"],[/@systemcall/,"variable.predefined"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]],table:[{include:"@whitespace"},[/[()]/,"@brackets"],[/[:;]/,"delimiter"],[/[01\-*?xXbBrRfFpPnN]/,"variable.predefined"],["endtable","keyword.endtable","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/66262.b361ce28.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/66262.b361ce28.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/66397.32c2f9da.chunk.js b/ydb/core/viewer/monitoring/static/js/66397.32c2f9da.chunk.js new file mode 100644 index 0000000000..2f2bed395e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66397.32c2f9da.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66397],{66397:(t,e,a)=>{a.r(e),a.d(e,{completionLists:()=>m,conf:()=>I,language:()=>g});const r=["AND","ANY","AS","ASC","ATTACH","BETWEEN","CASE","CAST","CREATE","CROSS","DATABASE","DATABASES","DEFAULT","DELETE","DESC","DESCRIBE","DETACH","DISTINCT","DROP","ELSE","END","FOREIGN","FROM","GRANT","HAVING","IF","INNER","INSERT","JOIN","KEY","LEFT","NATURAL","NOT","OFFSET","ON","OPTIMIZE","OR","OUTER","PREWHERE","PRIMARY","PROCESSLIST","REFERENCES","RIGHT","SELECT","SHOW","TABLE","THEN","TO","TOTALS","TYPE","UNION","UPDATE","USE","WHEN","WHERE","WITH"],n=["true","false","NULL"],i=["__bitBoolMaskAnd","__bitBoolMaskOr","__bitSwapLastTwo","__bitWrapperFunc","__getScalar","accurate_Cast","accurate_CastOrNull","accurateCast","accurateCastOrNull","acosh","addDays","addHours","addMinutes","addMonths","addQuarters","addressToLine","addressToSymbol","addSeconds","addWeeks","addYears","aes_decrypt_mysql","aes_encrypt_mysql","aggThrow","alphaTokens","and","any","anyHeavy","anyLast","appendTrailingCharIfAbsent","argMax","argMin","array","arrayAll","arrayAUC","arrayAvg","arrayCompact","arrayConcat","arrayCount","arrayCumSum","arrayCumSumNonNegative","arrayDifference","arrayDistinct","arrayElement","arrayEnumerate","arrayEnumerateDense","arrayEnumerateDenseRanked","arrayEnumerateUniq","arrayEnumerateUniqRanked","arrayExists","arrayFill","arrayFilter","arrayFirst","arrayFirstIndex","arrayFlatten","arrayIntersect","arrayJoin","arrayMap","arrayMax","arrayMin","arrayPopBack","arrayPopFront","arrayProduct","arrayPushBack","arrayPushFront","arrayReduce","arrayReduceInRanges","arrayResize","arrayReverse","arrayReverseFill","arrayReverseSort","arrayReverseSplit","arraySlice","arraySort","arraySplit","arrayStringConcat","arraySum","arrayUniq","arrayWithConstant","arrayZip","asinh","assumeNotNull","atanh","avgWeighted","bar","base64Decode","base64Encode","basename","bitAnd","bitCount","bitHammingDistance","bitmaskToArray","bitmaskToList","bitNot","bitOr","bitPositionsToArray","bitRotateLeft","bitRotateRight","bitShiftLeft","bitShiftRight","bitTest","bitTestAll","bitTestAny","bitXor","blockNumber","blockSerializedSize","blockSize","boundingRatio","buildId","byteSize","caseWithExpr","caseWithExpression","caseWithoutExpr","caseWithoutExpression","categoricalInformationValue","cbrt","cityHash64","concatAssumeInjective","ConvertYson","corrStable","cosh","countDigits","countEqual","countMatches","countMatchesCaseInsensitive","countSubstringsCaseInsensitive","countSubstringsCaseInsensitiveUTF8","covarPop","covarPopStable","covarSamp","covarSampStable","currentDatabase","currentProfiles","currentRoles","currentUser","cutFragment","cutIPv6","cutQueryString","cutQueryStringAndFragment","cutToFirstSignificantSubdomain","cutToFirstSignificantSubdomainCustom","cutToFirstSignificantSubdomainCustomWithWWW","cutToFirstSignificantSubdomainWithWWW","cutURLParameter","cutWWW","dateTime64ToSnowflake","dateTimeToSnowflake","dateTrunc","decodeURLComponent","decodeXMLComponent","decrypt","defaultProfiles","defaultRoles","defaultValueOfArgumentType","defaultValueOfTypeName","deltaSum","deltaSumTimestamp","demangle","dictGet","dictGetChildren","dictGetDate","dictGetDateOrDefault","dictGetDateTime","dictGetDateTimeOrDefault","dictGetDescendants","dictGetFloat32","dictGetFloat32OrDefault","dictGetFloat64","dictGetFloat64OrDefault","dictGetHierarchy","dictGetInt8","dictGetInt8OrDefault","dictGetInt16","dictGetInt16OrDefault","dictGetInt32","dictGetInt32OrDefault","dictGetInt64","dictGetInt64OrDefault","dictGetOrDefault","dictGetOrNull","dictGetString","dictGetStringOrDefault","dictGetUInt8","dictGetUInt8OrDefault","dictGetUInt16","dictGetUInt16OrDefault","dictGetUInt32","dictGetUInt32OrDefault","dictGetUInt64","dictGetUInt64OrDefault","dictGetUUID","dictGetUUIDOrDefault","dictHas","dictIsIn","divide","domain","domainWithoutWWW","dumpColumnStructure","e","empty","emptyArrayDate","emptyArrayDateTime","emptyArrayFloat32","emptyArrayFloat64","emptyArrayInt8","emptyArrayInt16","emptyArrayInt32","emptyArrayInt64","emptyArrayString","emptyArrayToSingle","emptyArrayUInt8","emptyArrayUInt16","emptyArrayUInt32","emptyArrayUInt64","enabledProfiles","enabledRoles","encodeXMLComponent","encrypt","endsWith","entropy","equals","erf","erfc","errorCodeToName","evalMLMethod","exp2","exp10","extract","extractAll","extractAllGroups","extractAllGroupsHorizontal","extractAllGroupsVertical","extractGroups","extractTextFromHTML","extractURLParameter","extractURLParameterNames","extractURLParameters","farmFingerprint64","farmHash64","file","filesystemAvailable","filesystemCapacity","filesystemFree","finalizeAggregation","firstSignificantSubdomain","firstSignificantSubdomainCustom","format","formatDateTime","formatReadableQuantity","formatReadableSize","formatReadableTimeDelta","formatRow","formatRowNoNewline","fragment","FROM_UNIXTIME","fromModifiedJulianDay","fromModifiedJulianDayOrNull","fromUnixTimestamp","fromUnixTimestamp64Micro","fromUnixTimestamp64Milli","fromUnixTimestamp64Nano","fullHostName","fuzzBits","gcd","generateUUIDv4","geoDistance","geohashDecode","geohashEncode","geohashesInBox","geoToH3","getMacro","getServerPort","getSetting","getSizeOfEnumType","globalIn","globalInIgnoreSet","globalNotIn","globalNotInIgnoreSet","globalNotNullIn","globalNotNullInIgnoreSet","globalNullIn","globalNullInIgnoreSet","globalVariable","greatCircleAngle","greatCircleDistance","greater","greaterOrEquals","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArrayMovingSum","groupArraySample","groupBitAnd","groupBitOr","groupBitXor","groupUniqArray","h3EdgeAngle","h3EdgeLengthM","h3GetBaseCell","h3GetResolution","h3HexAreaM2","h3IndexesAreNeighbors","h3IsValid","h3kRing","h3ToChildren","h3ToGeo","h3ToParent","h3ToString","halfMD5","has","hasAll","hasAny","hasColumnInTable","hasSubstr","hasThreadFuzzer","hasToken","hasTokenCaseInsensitive","histogram","hiveHash","hostName","hostname","identity","ifNotFinite","ignore","ilike","in","indexHint","indexOf","inIgnoreSet","initializeAggregation","initialQueryID","intDiv","intDivOrZero","intervalLengthSum","intExp2","intExp10","intHash32","intHash64","IPv4CIDRToRange","IPv4NumToString","IPv4NumToStringClassC","IPv4StringToNum","IPv4ToIPv6","IPv6CIDRToRange","IPv6NumToString","IPv6StringToNum","isConstant","isDecimalOverflow","isFinite","isInfinite","isIPAddressInRange","isIPv4String","isIPv6String","isNaN","isNotNull","isValidJSON","isValidUTF8","isZeroOrNull","javaHash","javaHashUTF16LE","joinGet","joinGetOrNull","JSON_EXISTS","JSON_QUERY","JSON_VALUE","JSONExtract","JSONExtractArrayRaw","JSONExtractBool","JSONExtractFloat","JSONExtractInt","JSONExtractKeysAndValues","JSONExtractKeysAndValuesRaw","JSONExtractRaw","JSONExtractString","JSONExtractUInt","JSONHas","JSONKey","JSONLength","JSONType","jumpConsistentHash","kurtPop","kurtSamp","lagInFrame","lcm","leadInFrame","leftPad","leftPadUTF8","lengthUTF8","less","lessOrEquals","lgamma","like","log1p","logTrace","lowCardinalityIndices","lowCardinalityKeys","lowerUTF8","MACNumToString","MACStringToNum","MACStringToOUI","mannWhitneyUTest","map","mapAdd","mapContains","mapKeys","mapPopulateSeries","mapSubtract","mapValues","match","materialize","maxIntersections","maxIntersectionsPosition","maxMap","MD5","median","medianBFloat16","medianBFloat16Weighted","medianDeterministic","medianExact","medianExactHigh","medianExactLow","medianExactWeighted","medianTDigest","medianTDigestWeighted","medianTiming","medianTimingWeighted","metroHash64","minMap","minus","modelEvaluate","modulo","moduloLegacy","moduloOrZero","multiFuzzyMatchAllIndices","multiFuzzyMatchAny","multiFuzzyMatchAnyIndex","multiIf","multiMatchAllIndices","multiMatchAny","multiMatchAnyIndex","multiply","multiSearchAllPositions","multiSearchAllPositionsCaseInsensitive","multiSearchAllPositionsCaseInsensitiveUTF8","multiSearchAllPositionsUTF8","multiSearchAny","multiSearchAnyCaseInsensitive","multiSearchAnyCaseInsensitiveUTF8","multiSearchAnyUTF8","multiSearchFirstIndex","multiSearchFirstIndexCaseInsensitive","multiSearchFirstIndexCaseInsensitiveUTF8","multiSearchFirstIndexUTF8","multiSearchFirstPosition","multiSearchFirstPositionCaseInsensitive","multiSearchFirstPositionCaseInsensitiveUTF8","multiSearchFirstPositionUTF8","negate","neighbor","netloc","ngramDistance","ngramDistanceCaseInsensitive","ngramDistanceCaseInsensitiveUTF8","ngramDistanceUTF8","ngramMinHash","ngramMinHashArg","ngramMinHashArgCaseInsensitive","ngramMinHashArgCaseInsensitiveUTF8","ngramMinHashArgUTF8","ngramMinHashCaseInsensitive","ngramMinHashCaseInsensitiveUTF8","ngramMinHashUTF8","ngramSearch","ngramSearchCaseInsensitive","ngramSearchCaseInsensitiveUTF8","ngramSearchUTF8","ngramSimHash","ngramSimHashCaseInsensitive","ngramSimHashCaseInsensitiveUTF8","ngramSimHashUTF8","normalizedQueryHash","normalizedQueryHashKeepNames","normalizeQuery","normalizeQueryKeepNames","notEmpty","notEquals","notILike","notIn","notInIgnoreSet","notLike","notNullIn","notNullInIgnoreSet","nullIn","nullInIgnoreSet","or","parseDateTime32BestEffort","parseDateTime32BestEffortOrNull","parseDateTime32BestEffortOrZero","parseDateTime64BestEffort","parseDateTime64BestEffortOrNull","parseDateTime64BestEffortOrZero","parseDateTimeBestEffort","parseDateTimeBestEffortOrNull","parseDateTimeBestEffortOrZero","parseDateTimeBestEffortUS","parseDateTimeBestEffortUSOrNull","parseDateTimeBestEffortUSOrZero","partitionId","path","pathFull","plus","pointInEllipses","pointInPolygon","polygonAreaCartesian","polygonAreaSpherical","polygonConvexHullCartesian","polygonPerimeterCartesian","polygonPerimeterSpherical","polygonsDistanceCartesian","polygonsDistanceSpherical","polygonsEqualsCartesian","polygonsIntersectionCartesian","polygonsIntersectionSpherical","polygonsSymDifferenceCartesian","polygonsSymDifferenceSpherical","polygonsUnionCartesian","polygonsUnionSpherical","polygonsWithinCartesian","polygonsWithinSpherical","port","positionCaseInsensitive","positionCaseInsensitiveUTF8","positionUTF8","protocol","quantile","quantileBFloat16","quantileBFloat16Weighted","quantileDeterministic","quantileExact","quantileExactExclusive","quantileExactHigh","quantileExactInclusive","quantileExactLow","quantileExactWeighted","quantiles","quantilesBFloat16","quantilesBFloat16Weighted","quantilesDeterministic","quantilesExact","quantilesExactExclusive","quantilesExactHigh","quantilesExactInclusive","quantilesExactLow","quantilesExactWeighted","quantilesTDigest","quantilesTDigestWeighted","quantilesTiming","quantilesTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileTiming","quantileTimingWeighted","queryID","queryString","queryStringAndFragment","rand32","rand64","randConstant","randomFixedString","randomPrintableASCII","randomString","randomStringUTF8","range","rankCorr","readWktMultiPolygon","readWktPoint","readWktPolygon","readWktRing","regexpQuoteMeta","regionHierarchy","regionIn","regionToArea","regionToCity","regionToContinent","regionToCountry","regionToDistrict","regionToName","regionToPopulation","regionToTopContinent","reinterpret","reinterpretAsDate","reinterpretAsDateTime","reinterpretAsFixedString","reinterpretAsFloat32","reinterpretAsFloat64","reinterpretAsInt8","reinterpretAsInt16","reinterpretAsInt32","reinterpretAsInt64","reinterpretAsInt128","reinterpretAsInt256","reinterpretAsString","reinterpretAsUInt8","reinterpretAsUInt16","reinterpretAsUInt32","reinterpretAsUInt64","reinterpretAsUInt128","reinterpretAsUInt256","reinterpretAsUUID","replaceAll","replaceOne","replaceRegexpAll","replaceRegexpOne","replicate","retention","reverseUTF8","rightPad","rightPadUTF8","roundAge","roundBankers","roundDown","roundDuration","roundToExp2","rowNumberInAllBlocks","rowNumberInBlock","runningAccumulate","runningConcurrency","runningDifference","runningDifferenceStartingWithFirstValue","sequenceCount","sequenceMatch","sequenceNextNode","serverUUID","SHA1","SHA224","SHA256","SHA512","shardCount","shardNum","sigmoid","simpleJSONExtractBool","simpleJSONExtractFloat","simpleJSONExtractInt","simpleJSONExtractRaw","simpleJSONExtractString","simpleJSONExtractUInt","simpleJSONHas","simpleLinearRegression","singleValueOrNull","sinh","sipHash64","sipHash128","skewPop","skewSamp","sleep","sleepEachRow","snowflakeToDateTime","snowflakeToDateTime64","splitByChar","splitByNonAlpha","splitByRegexp","splitByString","splitByWhitespace","startsWith","stddevPop","stddevPopStable","stddevSamp","stddevSampStable","stochasticLinearRegression","stochasticLogisticRegression","stringToH3","studentTTest","substringUTF8","subtractDays","subtractHours","subtractMinutes","subtractMonths","subtractQuarters","subtractSeconds","subtractWeeks","subtractYears","sumCount","sumKahan","sumMap","sumMapFiltered","sumMapFilteredWithOverflow","sumMapWithOverflow","sumWithOverflow","svg","tcpPort","tgamma","throwIf","tid","timeSlot","timeSlots","timeZone","timezone","timeZoneOf","timezoneOf","timeZoneOffset","timezoneOffset","toColumnTypeName","toDate","toDate32","toDate32OrNull","toDate32OrZero","toDateOrNull","toDateOrZero","toDateTime","toDateTime32","toDateTime64","toDateTime64OrNull","toDateTime64OrZero","toDateTimeOrNull","toDateTimeOrZero","today","toDayOfMonth","toDayOfWeek","toDayOfYear","toDecimal32","toDecimal32OrNull","toDecimal32OrZero","toDecimal64","toDecimal64OrNull","toDecimal64OrZero","toDecimal128","toDecimal128OrNull","toDecimal128OrZero","toDecimal256","toDecimal256OrNull","toDecimal256OrZero","toFixedString","toFloat32","toFloat32OrNull","toFloat32OrZero","toFloat64","toFloat64OrNull","toFloat64OrZero","toHour","toInt8","toInt8OrNull","toInt8OrZero","toInt16","toInt16OrNull","toInt16OrZero","toInt32","toInt32OrNull","toInt32OrZero","toInt64","toInt64OrNull","toInt64OrZero","toInt128","toInt128OrNull","toInt128OrZero","toInt256","toInt256OrNull","toInt256OrZero","toIntervalDay","toIntervalHour","toIntervalMinute","toIntervalMonth","toIntervalQuarter","toIntervalSecond","toIntervalWeek","toIntervalYear","toIPv4","toIPv6","toISOWeek","toISOYear","toJSONString","toLowCardinality","toMinute","toModifiedJulianDay","toModifiedJulianDayOrNull","toMonday","toMonth","toNullable","topK","topKWeighted","topLevelDomain","toQuarter","toRelativeDayNum","toRelativeHourNum","toRelativeMinuteNum","toRelativeMonthNum","toRelativeQuarterNum","toRelativeSecondNum","toRelativeWeekNum","toRelativeYearNum","toSecond","toStartOfDay","toStartOfFifteenMinutes","toStartOfFiveMinute","toStartOfHour","toStartOfInterval","toStartOfISOYear","toStartOfMinute","toStartOfMonth","toStartOfQuarter","toStartOfSecond","toStartOfTenMinutes","toStartOfWeek","toStartOfYear","toString","toStringCutToZero","toTime","toTimeZone","toTimezone","toTypeName","toUInt8","toUInt8OrNull","toUInt8OrZero","toUInt16","toUInt16OrNull","toUInt16OrZero","toUInt32","toUInt32OrNull","toUInt32OrZero","toUInt64","toUInt64OrNull","toUInt64OrZero","toUInt128","toUInt128OrNull","toUInt128OrZero","toUInt256","toUInt256OrNull","toUInt256OrZero","toUnixTimestamp","toUnixTimestamp64Micro","toUnixTimestamp64Milli","toUnixTimestamp64Nano","toUUID","toUUIDOrNull","toUUIDOrZero","toValidUTF8","toWeek","toYear","toYearWeek","toYYYYMM","toYYYYMMDD","toYYYYMMDDhhmmss","transform","trimBoth","trimLeft","trimRight","tryBase64Decode","tuple","tupleElement","tupleHammingDistance","tupleToNameValuePairs","uniq","uniqCombined","uniqCombined64","uniqExact","uniqHLL12","uniqUpTo","upperUTF8","uptime","URLHash","URLHierarchy","URLPathHierarchy","UUIDNumToString","UUIDStringToNum","validateNestedArraySizes","varPop","varPopStable","varSamp","varSampStable","visibleWidth","visitParamExtractBool","visitParamExtractFloat","visitParamExtractInt","visitParamExtractRaw","visitParamExtractString","visitParamExtractUInt","visitParamHas","welchTTest","windowFunnel","wkt","wordShingleMinHash","wordShingleMinHashArg","wordShingleMinHashArgCaseInsensitive","wordShingleMinHashArgCaseInsensitiveUTF8","wordShingleMinHashArgUTF8","wordShingleMinHashCaseInsensitive","wordShingleMinHashCaseInsensitiveUTF8","wordShingleMinHashUTF8","wordShingleSimHash","wordShingleSimHashCaseInsensitive","wordShingleSimHashCaseInsensitiveUTF8","wordShingleSimHashUTF8","xor","xxHash32","xxHash64","yandexConsistentHash","yesterday","YPathArrayBoolean","YPathArrayBooleanStrict","YPathArrayDouble","YPathArrayDoubleStrict","YPathArrayInt64","YPathArrayInt64Strict","YPathArrayUInt64","YPathArrayUInt64Strict","YPathBoolean","YPathBooleanStrict","YPathDouble","YPathDoubleStrict","YPathExtract","YPathExtractStrict","YPathInt64","YPathInt64Strict","YPathRaw","YPathRawStrict","YPathString","YPathStringStrict","YPathUInt64","YPathUInt64Strict","YSONExtract","YSONExtractArrayRaw","YSONExtractBool","YSONExtractFloat","YSONExtractInt","YSONExtractKeysAndValues","YSONExtractKeysAndValuesRaw","YSONExtractRaw","YSONExtractString","YSONExtractUInt","YSONHas","YSONKey","YSONLength","YSONType"],o=["_CAST","abs","acos","asin","atan","atan2","avg","bin","BIT_AND","BIT_OR","BIT_XOR","CAST","ceil","ceiling","char","CHAR_LENGTH","CHARACTER_LENGTH","coalesce","concat","connection_id","connectionId","corr","cos","count","countSubstrings","COVAR_POP","COVAR_SAMP","CRC32","CRC32IEEE","CRC64","DATABASE","DATE","date_trunc","dateDiff","dateName","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","dense_rank","exp","first_value","flatten","floor","FQDN","FROM_BASE64","greatest","hex","HOUR","hypot","if","ifNull","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","initial_query_id","isNull","last_value","lcase","least","length","ln","locate","log","log2","log10","lower","lpad","max","mid","min","MINUTE","mod","MONTH","not","now","now64","nth_value","nullIf","pi","position","pow","power","QUARTER","query_id","rand","rank","repeat","replace","reverse","round","row_number","rpad","SECOND","sign","sin","sqrt","STDDEV_POP","STDDEV_SAMP","substr","substring","sum","tan","tanh","TO_BASE64","trunc","truncate","ucase","unbin","unhex","upper","user","VAR_POP","VAR_SAMP","version","week","YEAR","yearweek"],s=["cluster","clusterAllReplicas","concatYtTables","concatYtTablesLike","concatYtTablesRange","concatYtTablesRegexp","dictionary","executable","file","generateRandom","input","jdbc","merge","null","numbers","numbers_mt","odbc","remote","remoteSecure","url","values","view","ytSubquery","zeros","zeros_mt"],l=["Buffer","Memory","YtTable"],c=["AggregateFunction","Array","Enum8","Enum16","FixedString","Float32","Float64","Int8","Int16","Int32","Int64","Int128","Int256","IntervalDay","IntervalHour","IntervalMinute","IntervalMonth","IntervalQuarter","IntervalSecond","IntervalWeek","IntervalYear","IPv4","IPv6","LowCardinality","Map","MultiPolygon","Nested","Nothing","Nullable","Point","Polygon","Ring","SimpleAggregateFunction","String","Tuple","UInt8","UInt16","UInt32","UInt64","UInt128","UInt256","UUID","YtBoolean"],u=["BIGINT","BIGINT SIGNED","BIGINT UNSIGNED","BINARY","BINARY LARGE OBJECT","BINARY VARYING","BLOB","BOOL","BOOLEAN","BYTE","BYTEA","CHAR","CHAR LARGE OBJECT","CHAR VARYING","CHARACTER","CHARACTER LARGE OBJECT","CHARACTER VARYING","CLOB","DEC","DOUBLE","DOUBLE PRECISION","Date","Date32","DateTime","DateTime32","DateTime64","Decimal","Decimal128","Decimal256","Decimal32","Decimal64","ENUM","Enum","FIXED","FLOAT","INET4","INET6","INT","INT SIGNED","INT UNSIGNED","INT1","INT1 SIGNED","INT1 UNSIGNED","INTEGER","INTEGER SIGNED","INTEGER UNSIGNED","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMINT SIGNED","MEDIUMINT UNSIGNED","MEDIUMTEXT","NATIONAL CHAR","NATIONAL CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NCHAR","NCHAR LARGE OBJECT","NCHAR VARYING","NUMERIC","NVARCHAR","REAL","SINGLE","SMALLINT","SMALLINT SIGNED","SMALLINT UNSIGNED","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYINT SIGNED","TINYINT UNSIGNED","TINYTEXT","VARCHAR","VARCHAR2"],m={keywordList:r.concat(["GROUP BY","ON CLUSTER","ORDER BY","LIMIT","RENAME TABLE","IF NOT EXISTS","IF EXISTS","FORMAT Vertical","FORMAT JSONCompact","FORMAT JSONEachRow","FORMAT TSKV","FORMAT TabSeparatedWithNames","FORMAT TabSeparatedWithNamesAndTypes","FORMAT TabSeparatedRaw","FORMAT BlockTabSeparated","FORMAT CSVWithNames","FORMAT CSV","FORMAT JSON","FORMAT TabSeparated"]),constantList:n,typeParameterList:c.concat(u,l),functionList:i.concat(o,s)},I={comments:{lineComment:"--",blockComment:["```","```"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},T=A(r),S=A(u.filter((t=>/^\S*$/.test(t))));const d=A(o),g={defaultToken:"text",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:r,keywordsDouble:[`${p("GROUP")}\\W+${p("BY")}`,`${p("ON")}\\W+${p("CLUSTER")}`,`${p("ORDER")}\\W+${p("BY")}`,`${p("LIMIT")}\\W+\\d+\\W*,\\W*\\d+`,`${p("LIMIT")}\\W+\\d+\\W+${p("BY")}\\W+`,`${p("LIMIT")}\\W+\\d+`,`${p("RENAME")}\\W+${p("TABLE")}`,`${p("IF")}\\W+${p("NOT")}\\W+${p("EXISTS")}`,`${p("IF")}\\W+${p("EXISTS")}`,`${p("FORMAT")}\\W+Vertical`,`${p("FORMAT")}\\W+JSONCompact`,`${p("FORMAT")}\\W+JSONEachRow`,`${p("FORMAT")}\\W+TSKV`,`${p("FORMAT")}\\W+TabSeparatedWithNames`,`${p("FORMAT")}\\W+TabSeparatedWithNamesAndTypes`,`${p("FORMAT")}\\W+TabSeparatedRaw`,`${p("FORMAT")}\\W+BlockTabSeparated`,`${p("FORMAT")}\\W+CSVWithNames`,`${p("FORMAT")}\\W+CSV`,`${p("FORMAT")}\\W+JSON`,`${p("FORMAT")}\\W+TabSeparated`].join("|"),typeKeywords:c,typeKeywordsDouble:A(function(t){return t.filter((t=>/\s/.test(t))).sort(((t,e)=>e.localeCompare(t)))}(u)),constants:n,builtinFunctions:i,tableFunctions:s,tableEngines:l,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[\w]+(?:\[[\w\]+]|[=-]>\w+)?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@strings"},[/[$@:](@variables)/,"variable"],[/{(@variables)}/,"variable"],[/[?;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@keywordsDouble/,"keyword"],[/@typeKeywordsDouble/,"keyword.type"],[/[a-zA-Z_$][\w$]*/,{cases:{[T]:{token:"keyword"},"@constants":{token:"constant"},"@builtinFunctions":{token:"constant.other.color"},[d]:{token:"constant.other.color"},"@tableFunctions":{token:"constant.other.color"},"@tableEngines":{token:"constant.other.color"},"@typeKeywords":{token:"keyword.type"},[S]:{token:"keyword.type"},"@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/```/,{token:"comment.quote",next:"@comment"}],[/\/\*/,{token:"comment.quote",next:"@cppComment"}]],comment:[[/[^`]+/,"comment"],[/```/,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],cppComment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/,"number"]],strings:[[/'/,{token:"string",next:"@stringSingle"}],[/"/,{token:"string.tablepath",next:"@stringDouble"}],[/`/,{token:"string.tablepath",next:"@stringBacktick"}]],stringSingle:[[/[^\\']/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/"/,{token:"string.tablepath",next:"@pop"}]],stringBacktick:[[/[^\\`]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]]}};function p(t){return t.split("").map((t=>/[a-zA-Z]/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:t)).join("")}function A(t){return`(${t.map((t=>p(t).replace(/\s+/g,"\\s"))).join("|")})`}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/66447.716a34f7.chunk.js b/ydb/core/viewer/monitoring/static/js/66447.716a34f7.chunk.js new file mode 100644 index 0000000000..b4af350879 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66447.716a34f7.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 66447.716a34f7.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66447],{66447:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Wt,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Vt,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>cn,DocumentHighlightAdapter:()=>Gt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>un,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>$t,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>pn,WorkerManager:()=>Nt,fromPosition:()=>Kt,fromRange:()=>Ht,getWorker:()=>Kn,setupMode:()=>Xn,toRange:()=>Xt,toTextEdit:()=>qt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))u.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,h,p,m,v,b,k,C,_,w,y,x,E,I,A,S,T,L,R,M,F,P,j,D,N,O,U,V,B,W,K,H,X,z,q,$,Q,J,G,Y,Z,ee,te,ne,re,ie,oe,ae,se,ce,ue,de,le,ge,fe,he,pe,me,ve,be,ke,Ce,_e,we,ye,xe,Ee,Ie,Ae,Se,Te,Le,Re,Me,Fe,Pe,je,De,Ne,Oe,Ue,Ve,Be,We,Ke,He,Xe,ze,qe,$e,Qe,Je,Ge,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ct,ut,dt,lt,gt,ft,ht,pt,mt,vt,bt,kt,Ct,_t,wt,yt,xt,Et,It,At,St,Tt,Lt,Rt,Mt,Ft,Pt,jt,Dt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(p=h||(h={})).MIN_VALUE=-2147483648,p.MAX_VALUE=2147483647,p.is=function(e){return"number"===typeof e&&p.MIN_VALUE<=e&&e<=p.MAX_VALUE},(v=m||(m={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(k=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},k.is=function(e){let t=e;return Ot.objectLiteral(t)&&Ot.uinteger(t.line)&&Ot.uinteger(t.character)},(_=C||(C={})).create=function(e,t,n,r){if(Ot.uinteger(e)&&Ot.uinteger(t)&&Ot.uinteger(n)&&Ot.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},_.is=function(e){let t=e;return Ot.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(y=w||(w={})).create=function(e,t){return{uri:e,range:t}},y.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&(Ot.string(t.uri)||Ot.undefined(t.uri))},(E=x||(x={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.targetRange)&&Ot.string(t.targetUri)&&C.is(t.targetSelectionRange)&&(C.is(t.originSelectionRange)||Ot.undefined(t.originSelectionRange))},(A=I||(I={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.numberRange(t.red,0,1)&&Ot.numberRange(t.green,0,1)&&Ot.numberRange(t.blue,0,1)&&Ot.numberRange(t.alpha,0,1)},(T=S||(S={})).create=function(e,t){return{range:e,color:t}},T.is=function(e){const t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&I.is(t.color)},(R=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.label)&&(Ot.undefined(t.textEdit)||q.is(t))&&(Ot.undefined(t.additionalTextEdits)||Ot.typedArray(t.additionalTextEdits,q.is))},(F=M||(M={})).Comment="comment",F.Imports="imports",F.Region="region",(j=P||(P={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ot.defined(n)&&(a.startCharacter=n),Ot.defined(r)&&(a.endCharacter=r),Ot.defined(i)&&(a.kind=i),Ot.defined(o)&&(a.collapsedText=o),a},j.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.uinteger(t.startLine)&&Ot.uinteger(t.startLine)&&(Ot.undefined(t.startCharacter)||Ot.uinteger(t.startCharacter))&&(Ot.undefined(t.endCharacter)||Ot.uinteger(t.endCharacter))&&(Ot.undefined(t.kind)||Ot.string(t.kind))},(N=D||(D={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ot.defined(t)&&w.is(t.location)&&Ot.string(t.message)},(U=O||(O={})).Error=1,U.Warning=2,U.Information=3,U.Hint=4,(B=V||(V={})).Unnecessary=1,B.Deprecated=2,(W||(W={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.href)},(H=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ot.defined(n)&&(a.severity=n),Ot.defined(r)&&(a.code=r),Ot.defined(i)&&(a.source=i),Ot.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t;let n=e;return Ot.defined(n)&&C.is(n.range)&&Ot.string(n.message)&&(Ot.number(n.severity)||Ot.undefined(n.severity))&&(Ot.integer(n.code)||Ot.string(n.code)||Ot.undefined(n.code))&&(Ot.undefined(n.codeDescription)||Ot.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ot.string(n.source)||Ot.undefined(n.source))&&(Ot.undefined(n.relatedInformation)||Ot.typedArray(n.relatedInformation,D.is))},(z=X||(X={})).create=function(e,t,...n){let r={title:e,command:t};return Ot.defined(n)&&n.length>0&&(r.arguments=n),r},z.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.title)&&Ot.string(t.command)},($=q||(q={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.newText)&&C.is(t.range)},(J=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},J.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.label)&&(Ot.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ot.string(t.description)||void 0===t.description)},(G||(G={})).is=function(e){const t=e;return Ot.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return q.is(t)&&(Q.is(t.annotationId)||G.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ot.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ot.string(t.oldUri)&&Ot.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ot.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ot.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ce||(ce={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ot.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ue||(ue={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&Ot.integer(t.version)},(he=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&(null===t.version||Ot.integer(t.version))},(me=pe||(pe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&Ot.string(t.languageId)&&Ot.integer(t.version)&&Ot.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(ke||(ke={})).is=function(e){const t=e;return Ot.objectLiteral(e)&&ve.is(t.kind)&&Ot.string(t.value)},(_e=Ce||(Ce={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(ye=we||(we={})).PlainText=1,ye.Snippet=2,(xe||(xe={})).Deprecated=1,(Ie=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ie.is=function(e){const t=e;return t&&Ot.string(t.newText)&&C.is(t.insert)&&C.is(t.replace)},(Se=Ae||(Ae={})).asIs=1,Se.adjustIndentation=2,(Te||(Te={})).is=function(e){const t=e;return t&&(Ot.string(t.detail)||void 0===t.detail)&&(Ot.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Fe=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Fe.is=function(e){const t=e;return Ot.string(t)||Ot.objectLiteral(t)&&Ot.string(t.language)&&Ot.string(t.value)},(Pe||(Pe={})).is=function(e){let t=e;return!!t&&Ot.objectLiteral(t)&&(ke.is(t.contents)||Me.is(t.contents)||Ot.typedArray(t.contents,Me.is))&&(void 0===e.range||C.is(e.range))},(je||(je={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(De||(De={})).create=function(e,t,...n){let r={label:e};return Ot.defined(t)&&(r.documentation=t),Ot.defined(n)?r.parameters=n:r.parameters=[],r},(Oe=Ne||(Ne={})).Text=1,Oe.Read=2,Oe.Write=3,(Ue||(Ue={})).create=function(e,t){let n={range:e};return Ot.number(t)&&(n.kind=t),n},(Be=Ve||(Ve={})).File=1,Be.Module=2,Be.Namespace=3,Be.Package=4,Be.Class=5,Be.Method=6,Be.Property=7,Be.Field=8,Be.Constructor=9,Be.Enum=10,Be.Interface=11,Be.Function=12,Be.Variable=13,Be.Constant=14,Be.String=15,Be.Number=16,Be.Boolean=17,Be.Array=18,Be.Object=19,Be.Key=20,Be.Null=21,Be.EnumMember=22,Be.Struct=23,Be.Event=24,Be.Operator=25,Be.TypeParameter=26,(We||(We={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(He||(He={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(ze=Xe||(Xe={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},ze.is=function(e){let t=e;return t&&Ot.string(t.name)&&Ot.number(t.kind)&&C.is(t.range)&&C.is(t.selectionRange)&&(void 0===t.detail||Ot.string(t.detail))&&(void 0===t.deprecated||Ot.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},($e=qe||(qe={})).Empty="",$e.QuickFix="quickfix",$e.Refactor="refactor",$e.RefactorExtract="refactor.extract",$e.RefactorInline="refactor.inline",$e.RefactorRewrite="refactor.rewrite",$e.Source="source",$e.SourceOrganizeImports="source.organizeImports",$e.SourceFixAll="source.fixAll",(Je=Qe||(Qe={})).Invoked=1,Je.Automatic=2,(Ye=Ge||(Ge={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ot.defined(t)&&Ot.typedArray(t.diagnostics,K.is)&&(void 0===t.only||Ot.typedArray(t.only,Ot.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):X.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ot.string(t.title)&&(void 0===t.diagnostics||Ot.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||Ot.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||X.is(t.command))&&(void 0===t.isPreferred||Ot.boolean(t.isPreferred))&&(void 0===t.edit||ce.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ot.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ot.defined(t)&&C.is(t.range)&&(Ot.undefined(t.command)||X.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ot.defined(t)&&Ot.uinteger(t.tabSize)&&Ot.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ot.defined(t)&&C.is(t.range)&&(Ot.undefined(t.target)||Ot.string(t.target))},(ct=st||(st={})).create=function(e,t){return{range:e,parent:t}},ct.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&(void 0===t.parent||ct.is(t.parent))},(dt=ut||(ut={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(pt=ht||(ht={})).create=function(e,t){return{range:e,text:t}},pt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&Ot.string(t.text)},(vt=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&Ot.boolean(t.caseSensitiveLookup)&&(Ot.string(t.variableName)||void 0===t.variableName)},(kt=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},kt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&(Ot.string(t.expression)||void 0===t.expression)},(_t=Ct||(Ct={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},_t.is=function(e){const t=e;return Ot.defined(t)&&C.is(e.stoppedLocation)},(yt=wt||(wt={})).Type=1,yt.Parameter=2,yt.is=function(e){return 1===e||2===e},(Et=xt||(xt={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ot.objectLiteral(t)&&(void 0===t.tooltip||Ot.string(t.tooltip)||ke.is(t.tooltip))&&(void 0===t.location||w.is(t.location))&&(void 0===t.command||X.is(t.command))},(At=It||(It={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ot.objectLiteral(t)&&b.is(t.position)&&(Ot.string(t.label)||Ot.typedArray(t.label,xt.is))&&(void 0===t.kind||wt.is(t.kind))&&void 0===t.textEdits||Ot.typedArray(t.textEdits,q.is)&&(void 0===t.tooltip||Ot.string(t.tooltip)||ke.is(t.tooltip))&&(void 0===t.paddingLeft||Ot.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ot.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Tt||(Tt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Rt||(Rt={})).Invoked=0,Mt.Automatic=1,(Ft||(Ft={})).create=function(e,t){return{range:e,text:t}},(Pt||(Pt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(jt||(jt={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&f.is(t.uri)&&Ot.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,c=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[c++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[c++]=i[a++];for(;s<o.length;)e[c++]=o[s++];return e}e.create=function(e,t,n,r){return new Ut(e,t,n,r)},e.is=function(e){let t=e;return!!(Ot.defined(t)&&Ot.string(t.uri)&&(Ot.undefined(t.languageId)||Ot.string(t.languageId))&&Ot.uinteger(t.lineCount)&&Ot.func(t.getText)&&Ot.func(t.positionAt)&&Ot.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Dt||(Dt={}));var Ot,Ut=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ot||(Ot={}));var Vt=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Bt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Bt(e){switch(e){case O.Error:return l.MarkerSeverity.Error;case O.Warning:return l.MarkerSeverity.Warning;case O.Information:return l.MarkerSeverity.Info;case O.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Wt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:zt(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:Xt(e.textEdit.insert),replace:Xt(e.textEdit.replace)}:t.range=Xt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(qt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Xt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function zt(e){const t=l.languages.CompletionItemKind;switch(e){case Ce.Text:return t.Text;case Ce.Method:return t.Method;case Ce.Function:return t.Function;case Ce.Constructor:return t.Constructor;case Ce.Field:return t.Field;case Ce.Variable:return t.Variable;case Ce.Class:return t.Class;case Ce.Interface:return t.Interface;case Ce.Module:return t.Module;case Ce.Property:return t.Property;case Ce.Unit:return t.Unit;case Ce.Value:return t.Value;case Ce.Enum:return t.Enum;case Ce.Keyword:return t.Keyword;case Ce.Snippet:return t.Snippet;case Ce.Color:return t.Color;case Ce.File:return t.File;case Ce.Reference:return t.Reference}return t.Property}function qt(e){if(e)return{range:Xt(e.range),text:e.newText}}var $t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:Xt(e.range),contents:Jt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Jt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Gt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:Xt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:Xt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:Xt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:Xt(e.location.range),selectionRange:Xt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:Xt(e.range),selectionRange:Xt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Ve.File:return t.File;case Ve.Module:return t.Module;case Ve.Namespace:return t.Namespace;case Ve.Package:return t.Package;case Ve.Class:return t.Class;case Ve.Method:return t.Method;case Ve.Property:return t.Property;case Ve.Field:return t.Field;case Ve.Constructor:return t.Constructor;case Ve.Enum:return t.Enum;case Ve.Interface:return t.Interface;case Ve.Function:return t.Function;case Ve.Variable:return t.Variable;case Ve.Constant:return t.Constant;case Ve.String:return t.String;case Ve.Number:return t.Number;case Ve.Boolean:return t.Boolean;case Ve.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:Xt(e.range),url:e.target})))}}))}},cn=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(qt)}))))}},un=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Ht(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(qt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:Xt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=qt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(qt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn,hn,pn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:Xt(e.range)}),e=e.parent;return t}))}))}};function mn(e){return 32===e||9===e}function vn(e){return 10===e||13===e}function bn(e){return e>=48&&e<=57}(hn=fn||(fn={}))[hn.lineFeed=10]="lineFeed",hn[hn.carriageReturn=13]="carriageReturn",hn[hn.space=32]="space",hn[hn._0=48]="_0",hn[hn._1=49]="_1",hn[hn._2=50]="_2",hn[hn._3=51]="_3",hn[hn._4=52]="_4",hn[hn._5=53]="_5",hn[hn._6=54]="_6",hn[hn._7=55]="_7",hn[hn._8=56]="_8",hn[hn._9=57]="_9",hn[hn.a=97]="a",hn[hn.b=98]="b",hn[hn.c=99]="c",hn[hn.d=100]="d",hn[hn.e=101]="e",hn[hn.f=102]="f",hn[hn.g=103]="g",hn[hn.h=104]="h",hn[hn.i=105]="i",hn[hn.j=106]="j",hn[hn.k=107]="k",hn[hn.l=108]="l",hn[hn.m=109]="m",hn[hn.n=110]="n",hn[hn.o=111]="o",hn[hn.p=112]="p",hn[hn.q=113]="q",hn[hn.r=114]="r",hn[hn.s=115]="s",hn[hn.t=116]="t",hn[hn.u=117]="u",hn[hn.v=118]="v",hn[hn.w=119]="w",hn[hn.x=120]="x",hn[hn.y=121]="y",hn[hn.z=122]="z",hn[hn.A=65]="A",hn[hn.B=66]="B",hn[hn.C=67]="C",hn[hn.D=68]="D",hn[hn.E=69]="E",hn[hn.F=70]="F",hn[hn.G=71]="G",hn[hn.H=72]="H",hn[hn.I=73]="I",hn[hn.J=74]="J",hn[hn.K=75]="K",hn[hn.L=76]="L",hn[hn.M=77]="M",hn[hn.N=78]="N",hn[hn.O=79]="O",hn[hn.P=80]="P",hn[hn.Q=81]="Q",hn[hn.R=82]="R",hn[hn.S=83]="S",hn[hn.T=84]="T",hn[hn.U=85]="U",hn[hn.V=86]="V",hn[hn.W=87]="W",hn[hn.X=88]="X",hn[hn.Y=89]="Y",hn[hn.Z=90]="Z",hn[hn.asterisk=42]="asterisk",hn[hn.backslash=92]="backslash",hn[hn.closeBrace=125]="closeBrace",hn[hn.closeBracket=93]="closeBracket",hn[hn.colon=58]="colon",hn[hn.comma=44]="comma",hn[hn.dot=46]="dot",hn[hn.doubleQuote=34]="doubleQuote",hn[hn.minus=45]="minus",hn[hn.openBrace=123]="openBrace",hn[hn.openBracket=91]="openBracket",hn[hn.plus=43]="plus",hn[hn.slash=47]="slash",hn[hn.formFeed=12]="formFeed",hn[hn.tab=9]="tab";new Array(20).fill(0).map(((e,t)=>" ".repeat(t)));var kn,Cn=200;new Array(Cn).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)));(kn||(kn={})).DEFAULT={allowTrailingComma:!1};var _n,wn,yn,xn,En,In,An=function(e,t=!1){const n=e.length;let r=0,i="",o=0,a=16,s=0,c=0,u=0,d=0,l=0;function g(t,n){let i=0,o=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,i++}return i<t&&(o=-1),o}function f(){if(i="",l=0,o=r,c=s,d=u,r>=n)return o=n,a=17;let t=e.charCodeAt(r);if(mn(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(mn(t));return a=15}if(vn(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),l=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(vn(o)){t+=e.substring(i,r),l=2;break}l=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){l=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=g(4,!0);e>=0?t+=String.fromCharCode(e):l=4;break;default:l=5}i=r}}return t}(),a=10;case 47:const c=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!vn(e.charCodeAt(r));)r++;return i=e.substring(c,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,vn(t)&&(13===t&&10===e.charCodeAt(r)&&r++,s++,u=r)}return o||(r++,l=1),i=e.substring(c,r),a=13}return i+=String.fromCharCode(t),r++,a=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!bn(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&bn(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&bn(e.charCodeAt(r))))return l=3,e.substring(t,r);for(r++;r<e.length&&bn(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&bn(e.charCodeAt(r))){for(r++;r<e.length&&bn(e.charCodeAt(r));)r++;n=r}else l=3;return e.substring(t,n)}(),a=11;default:for(;r<n&&h(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(t),r++,a=16}}function h(e){if(mn(e)||vn(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,a=16,l=0},getPosition:()=>r,scan:t?function(){let e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>c,getTokenStartCharacter:()=>o-d,getTokenError:()=>l}};function Sn(e){return{getInitialState:()=>new Wn(null,null,!1,null),tokenize:(t,n)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=An(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),l="";const g=a.scan();if(17===g)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,g){case 1:c=Bn.push(c,0),l=Ln,s=!1;break;case 2:c=Bn.pop(c),l=Ln,s=!1;break;case 3:c=Bn.push(c,1),l=Rn,s=!1;break;case 4:c=Bn.pop(c),l=Rn,s=!1;break;case 6:l=Mn,s=!0;break;case 5:l=Fn,s=!1;break;case 8:case 9:l=Pn,s=!1;break;case 7:l=jn,s=!1;break;case 10:const e=c?c.type:0;l=s||1===e?Dn:On,s=!1;break;case 11:l=Nn,s=!1}if(e)switch(g){case 12:l=Vn;break;case 13:l=Un}u.endState=new Wn(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:l})}return u}(e,t,n)}}(wn=_n||(_n={}))[wn.None=0]="None",wn[wn.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",wn[wn.UnexpectedEndOfString=2]="UnexpectedEndOfString",wn[wn.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",wn[wn.InvalidUnicode=4]="InvalidUnicode",wn[wn.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",wn[wn.InvalidCharacter=6]="InvalidCharacter",(xn=yn||(yn={}))[xn.OpenBraceToken=1]="OpenBraceToken",xn[xn.CloseBraceToken=2]="CloseBraceToken",xn[xn.OpenBracketToken=3]="OpenBracketToken",xn[xn.CloseBracketToken=4]="CloseBracketToken",xn[xn.CommaToken=5]="CommaToken",xn[xn.ColonToken=6]="ColonToken",xn[xn.NullKeyword=7]="NullKeyword",xn[xn.TrueKeyword=8]="TrueKeyword",xn[xn.FalseKeyword=9]="FalseKeyword",xn[xn.StringLiteral=10]="StringLiteral",xn[xn.NumericLiteral=11]="NumericLiteral",xn[xn.LineCommentTrivia=12]="LineCommentTrivia",xn[xn.BlockCommentTrivia=13]="BlockCommentTrivia",xn[xn.LineBreakTrivia=14]="LineBreakTrivia",xn[xn.Trivia=15]="Trivia",xn[xn.Unknown=16]="Unknown",xn[xn.EOF=17]="EOF",(In=En||(En={}))[In.InvalidSymbol=1]="InvalidSymbol",In[In.InvalidNumberFormat=2]="InvalidNumberFormat",In[In.PropertyNameExpected=3]="PropertyNameExpected",In[In.ValueExpected=4]="ValueExpected",In[In.ColonExpected=5]="ColonExpected",In[In.CommaExpected=6]="CommaExpected",In[In.CloseBraceExpected=7]="CloseBraceExpected",In[In.CloseBracketExpected=8]="CloseBracketExpected",In[In.EndOfFileExpected=9]="EndOfFileExpected",In[In.InvalidCommentToken=10]="InvalidCommentToken",In[In.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",In[In.UnexpectedEndOfString=12]="UnexpectedEndOfString",In[In.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",In[In.InvalidUnicode=14]="InvalidUnicode",In[In.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",In[In.InvalidCharacter=16]="InvalidCharacter";var Tn,Ln="delimiter.bracket.json",Rn="delimiter.array.json",Mn="delimiter.colon.json",Fn="delimiter.comma.json",Pn="keyword.json",jn="keyword.json",Dn="string.value.json",Nn="number.json",On="string.key.json",Un="comment.block.json",Vn="comment.line.json",Bn=class e{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(t,n){return new e(t,n)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},Wn=class e{constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof e)&&(this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Bn.equals(this.parents,t.parents))}getStateData(){return this._state}setStateData(e){this._state=e}};function Kn(){return new Promise(((e,t)=>{if(!Tn)return t("JSON not registered!");e(Tn)}))}var Hn=class extends Vt{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(l.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function Xn(e){const t=[],n=[],r=new Nt(e);function i(){const{languageId:t,modeConfiguration:r}=e;qn(n),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new cn(Tn))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new un(Tn))),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Wt(Tn,[" ",":",'"']))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new $t(Tn))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(Tn))),r.tokens&&n.push(l.languages.setTokensProvider(t,Sn(!0))),r.colors&&n.push(l.languages.registerColorProvider(t,new ln(Tn))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(Tn))),r.diagnostics&&n.push(new Hn(t,Tn,e)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new pn(Tn)))}t.push(r),Tn=(...e)=>r.getLanguageServiceWorker(...e),i(),t.push(l.languages.setLanguageConfiguration(e.languageId,$n));let o=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==o&&(o=e.modeConfiguration,i())})),t.push(zn(n)),zn(t)}function zn(e){return{dispose:()=>qn(e)}}function qn(e){for(;e.length;)e.pop().dispose()}var $n={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/66447.716a34f7.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/66447.716a34f7.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js b/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js deleted file mode 100644 index d20d8956d3..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6658.b22172da.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6658],{86658:(e,o,r)=>{r.r(o),r.d(o,{conf:()=>t,language:()=>a});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},a={defaultToken:"",tokenPostfix:".r",roxygen:["@alias","@aliases","@assignee","@author","@backref","@callGraph","@callGraphDepth","@callGraphPrimitives","@concept","@describeIn","@description","@details","@docType","@encoding","@evalNamespace","@evalRd","@example","@examples","@export","@exportClass","@exportMethod","@exportPattern","@family","@field","@formals","@format","@import","@importClassesFrom","@importFrom","@importMethodsFrom","@include","@inherit","@inheritDotParams","@inheritParams","@inheritSection","@keywords","@md","@method","@name","@noMd","@noRd","@note","@param","@rawNamespace","@rawRd","@rdname","@references","@return","@S3method","@section","@seealso","@setClass","@slot","@source","@template","@templateVar","@title","@TODO","@usage","@useDynLib"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'$/,"comment.doc"],[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/66593.94c01a99.chunk.js b/ydb/core/viewer/monitoring/static/js/66593.94c01a99.chunk.js new file mode 100644 index 0000000000..817c3bc0a9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66593.94c01a99.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66593],{66593:(d,e,b)=>{b.d(e,{default:()=>a});var u=b(33592);const a=b.n(u)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6664.b4dbf019.chunk.js b/ydb/core/viewer/monitoring/static/js/6664.b4dbf019.chunk.js deleted file mode 100644 index 3436751bd0..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6664.b4dbf019.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6664],{16664:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ml",weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/66809.a4c3fdb1.chunk.js b/ydb/core/viewer/monitoring/static/js/66809.a4c3fdb1.chunk.js new file mode 100644 index 0000000000..86bc2b0660 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66809.a4c3fdb1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66809],{29016:e=>{function s(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}e.exports=s,s.displayName="firestoreSecurityRules",s.aliases=[]},66809:(e,s,i)=>{i.d(s,{default:()=>t});var a=i(29016);const t=i.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/66820.ec86ae7a.chunk.js b/ydb/core/viewer/monitoring/static/js/66820.ec86ae7a.chunk.js new file mode 100644 index 0000000000..708801b198 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66820.ec86ae7a.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 66820.ec86ae7a.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66820],{494:(e,t,n)=>{"use strict";var a=n(73934),r=n(94667);e.exports=function(e){return a(e)||r(e)}},9009:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},11666:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=a.booleanish,l=a.number,c=a.spaceSeparated;e.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:l,ariaColIndex:l,ariaColSpan:l,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:o,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:c,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:l,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:l,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:c,ariaRowCount:l,ariaRowIndex:l,ariaRowSpan:l,ariaSelected:o,ariaSetSize:l,ariaSort:null,ariaValueMax:l,ariaValueMin:l,ariaValueNow:l,ariaValueText:null,role:null}})},21257:e=>{"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')},22216:e=>{"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},27376:(e,t,n)=>{"use strict";var a=n(47556),r=n(72996),o=n(91448),l=n(82140).q,c=n(71383).q;e.exports=function(e,t,n){var r=n?function(e){var t,n=e.length,a=-1,r={};for(;++a<n;)r[(t=e[a]).toLowerCase()]=t;return r}(n):null;return function(e,n){var a,l=o(e,t),c=Array.prototype.slice.call(arguments,2),u=l.tagName.toLowerCase();l.tagName=r&&i.call(r,u)?r[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,l)&&(c.unshift(n),n=null);if(n)for(a in n)d(l.properties,a,n[a]);s(l.children,c),"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]);return l};function d(t,n,r){var o,i,s;null!==r&&void 0!==r&&r===r&&(i=(o=a(e,n)).property,"string"===typeof(s=r)&&(o.spaceSeparated?s=l(s):o.commaSeparated?s=c(s):o.commaOrSpaceSeparated&&(s=l(c(s).join(" ")))),"style"===i&&"string"!==typeof r&&(s=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(s)),"className"===i&&t.className&&(s=t.className.concat(s)),t[i]=function(e,t,n){var a,r,o;if("object"!==typeof n||!("length"in n))return u(e,t,n);r=n.length,a=-1,o=[];for(;++a<r;)o[a]=u(e,t,n[a]);return o}(o,i,s))}};var i={}.hasOwnProperty;function s(e,t){var n,a;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,a=t.length;++n<a;)s(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var a=n;return e.number||e.positiveNumber?isNaN(a)||""===a||(a=Number(a)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof a||""!==a&&r(n)!==r(t)||(a=!0)),a}},31630:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var a=arguments[n];for(var r in a)t.call(a,r)&&(e[r]=a[r])}return e};var t=Object.prototype.hasOwnProperty},32138:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}},32990:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},33592:e=>{"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},35228:(e,t,n)=>{"use strict";var a=n(31630),r=n(9009);e.exports=function(e){var t,n,o=e.length,l=[],c=[],i=-1;for(;++i<o;)t=e[i],l.push(t.property),c.push(t.normal),n=t.space;return new r(a.apply(null,l),a.apply(null,c),n)}},43733:(e,t,n)=>{"use strict";n.d(t,{RE:()=>a,XB:()=>o,to:()=>r});const a="$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow".split("|"),r="bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes".split("|"),o="abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtop|listtopsort|listtopasc|listtopdesc|listtopsortasc|listtopsortdesc|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield".split("|")},47556:(e,t,n)=>{"use strict";var a=n(72996),r=n(70302),o=n(58974),l="data";e.exports=function(e,t){var n=a(t),p=t,g=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===l&&c.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,d);return l+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(i.test(t))return e;t=t.replace(s,u),"-"!==t.charAt(0)&&(t="-"+t);return l+t}(t),g=r);return new g(p,t)};var c=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},48893:(e,t,n)=>{"use strict";var a=n(70730),r=n(27376)(a,"div");r.displayName="html",e.exports=r},50683:e=>{"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},55942:(e,t,n)=>{"use strict";e.exports=n(48893)},58974:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},59162:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=n(70503),l=a.boolean,c=a.overloadedBoolean,i=a.booleanish,s=a.number,u=a.spaceSeparated,d=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:u,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:i,controls:l,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:c,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:u,height:s,hidden:l,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:u,itemRef:u,itemScope:l,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:u,required:l,reversed:l,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:s,security:null,unselectable:null}})},61945:(e,t,n)=>{"use strict";var a=n(71478),r=n(70503);e.exports=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})},61993:e=>{"use strict";function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},62422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},64016:e=>{"use strict";var t;e.exports=function(e){var n,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==a&&n}},70302:(e,t,n)=>{"use strict";var a=n(58974),r=n(73125);e.exports=c,c.prototype=new a,c.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function c(e,t,n,c){var s,u=-1;for(i(this,"space",c),a.call(this,e,t);++u<l;)i(this,s=o[u],(n&r[s])===r[s])}function i(e,t,n){n&&(e[t]=n)}},70503:(e,t,n)=>{"use strict";var a=n(32990);e.exports=function(e,t){return a(e,t.toLowerCase())}},70730:(e,t,n)=>{"use strict";var a=n(35228),r=n(83851),o=n(91622),l=n(61945),c=n(11666),i=n(59162);e.exports=a([o,r,l,c,i])},71383:(e,t)=>{"use strict";t.q=function(e){var t,a=[],o=String(e||r),l=o.indexOf(n),c=0,i=!1;for(;!i;)-1===l&&(l=o.length,i=!0),!(t=o.slice(c,l).trim())&&i||a.push(t),c=l+1,l=o.indexOf(n,c);return a};var n=",",a=" ",r=""},71478:(e,t,n)=>{"use strict";var a=n(72996),r=n(9009),o=n(70302);e.exports=function(e){var t,n,l=e.space,c=e.mustUseProperty||[],i=e.attributes||{},s=e.properties,u=e.transform,d={},p={};for(t in s)n=new o(t,u(i,t),s[t],l),-1!==c.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[a(t)]=t,p[a(n.attribute)]=t;return new r(d,p,l)}},72824:(e,t,n)=>{"use strict";var a=n(82719),r=n(21257),o=n(94667),l=n(83991),c=n(494),i=n(64016);e.exports=function(e,t){var n,o,l={};t||(t={});for(o in p)n=t[o],l[o]=null===n||void 0===n?p[o]:n;(l.position.indent||l.position.start)&&(l.indent=l.position.indent||[],l.position=l.position.start);return function(e,t){var n,o,l,p,R,q,H,B,U,W,V,Z,G,K,J,Y,X,Q,ee,te=t.additional,ne=t.nonTerminated,ae=t.text,re=t.reference,oe=t.warning,le=t.textContext,ce=t.referenceContext,ie=t.warningContext,se=t.position,ue=t.indent||[],de=e.length,pe=0,ge=-1,me=se.column||1,fe=se.line||1,he="",ye=[];"string"===typeof te&&(te=te.charCodeAt(0));Y=be(),B=oe?ve:d,pe--,de++;for(;++pe<de;)if(R===m&&(me=ue[ge]||1),(R=e.charCodeAt(pe))===y){if((H=e.charCodeAt(pe+1))===g||H===m||H===f||H===h||H===y||H===v||H!==H||te&&H===te){he+=u(R),me++;continue}for(Z=G=pe+1,ee=G,H===x?(ee=++Z,(H=e.charCodeAt(ee))===k||H===S?(K=O,ee=++Z):K=N):K=F,n="",V="",p="",J=j[K],ee--;++ee<de&&J(H=e.charCodeAt(ee));)p+=u(H),K===F&&s.call(a,p)&&(n=p,V=a[p]);(l=e.charCodeAt(ee)===b)&&(ee++,(o=K===F&&i(p))&&(n=p,V=o)),Q=1+ee-G,(l||ne)&&(p?K===F?(l&&!V?B(z,1):(n!==p&&(Q=1+(ee=Z+n.length)-Z,l=!1),l||(U=n?P:_,t.attribute?(H=e.charCodeAt(ee))===w?(B(U,Q),V=null):c(H)?V=null:B(U,Q):B(U,Q))),q=V):(l||B(L,Q),D(q=parseInt(p,C[K]))?(B(T,Q),q=u(A)):q in r?(B(M,Q),q=r[q]):(W="",I(q)&&B(M,Q),q>65535&&(W+=u((q-=65536)>>>10|55296),q=56320|1023&q),q=W+u(q))):K!==F&&B(E,Q)),q?(we(),Y=be(),pe=ee-1,me+=ee-G+1,ye.push(q),(X=be()).offset++,re&&re.call(ce,q,{start:Y,end:X},e.slice(G-1,ee)),Y=X):(p=e.slice(G-1,ee),he+=p,me+=p.length,pe=ee-1)}else 10===R&&(fe++,ge++,me=0),R===R?(he+=u(R),me++):we();return ye.join("");function be(){return{line:fe,column:me,offset:pe+(se.offset||0)}}function ve(e,t){var n=be();n.column+=t,n.offset+=t,oe.call(ie,$[e],n,e)}function we(){he&&(ye.push(he),ae&&ae.call(le,he,{start:Y,end:be()}),he="")}}(e,l)};var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,m=10,f=12,h=32,y=38,b=59,v=60,w=61,x=35,k=88,S=120,A=65533,F="named",O="hexadecimal",N="decimal",C={};C[O]=16,C[N]=10;var j={};j[F]=c,j[N]=o,j[O]=l;var P=1,L=2,_=3,E=4,z=5,M=6,T=7,$={};function D(e){return e>=55296&&e<=57343||e>1114111}function I(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}$[P]="Named character references must be terminated by a semicolon",$[L]="Numeric character references must be terminated by a semicolon",$[_]="Named character references cannot be empty",$[E]="Numeric character references cannot be empty",$[z]="Named character references must be known",$[M]="Numeric character references cannot be disallowed",$[T]="Numeric character references cannot be outside the permissible Unicode range"},72996:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},73125:(e,t)=>{"use strict";var n=0;function a(){return Math.pow(2,++n)}t.boolean=a(),t.booleanish=a(),t.overloadedBoolean=a(),t.number=a(),t.spaceSeparated=a(),t.commaSeparated=a(),t.commaOrSpaceSeparated=a()},73934:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},82140:(e,t)=>{"use strict";t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(r)};var n="",a=" ",r=/[ \t\n\r\f]+/g},82719:e=>{"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},83851:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},83991:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},86598:(e,t,n)=>{"use strict";var a="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof n.g?n.g:{},r=function(){var e="Prism"in a,t=e?a.Prism:void 0;return function(){e?a.Prism=t:delete a.Prism;e=void 0,t=void 0}}();a.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(55942),l=n(72824),c=n(93915),i=n(33592),s=n(61993),u=n(22216),d=n(50683);r();var p={}.hasOwnProperty;function g(){}g.prototype=c;var m=new g;function f(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===m.languages[e.displayName]&&e(m)}e.exports=m,m.highlight=function(e,t){var n,a=c.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===m.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(m.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=m.languages[t]}return a.call(this,e,n,t)},m.register=f,m.alias=function(e,t){var n,a,r,o,l=m.languages,c=e;t&&((c={})[e]=t);for(n in c)for(r=(a="string"===typeof(a=c[n])?[a]:a).length,o=-1;++o<r;)l[a[o]]=l[n]},m.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(m.languages,e)},m.listLanguages=function(){var e,t=m.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},f(i),f(s),f(u),f(d),m.util.encode=function(e){return e},m.Token.stringify=function(e,t,n){var a;if("string"===typeof e)return{type:"text",value:e};if("Array"===m.util.type(e))return function(e,t){var n,a=[],r=e.length,o=-1;for(;++o<r;)""!==(n=e[o])&&null!==n&&void 0!==n&&a.push(n);o=-1,r=a.length;for(;++o<r;)n=a[o],a[o]=m.Token.stringify(n,t,a);return a}(e,t);a={type:e.type,content:m.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(a.classes=a.classes.concat(e.alias));return m.hooks.run("wrap",a),o(a.tag+"."+a.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(a.attributes),a.content)}},91448:e=>{"use strict";e.exports=function(e,n){var a,r,o,l=e||"",c=n||"div",i={},s=0;for(;s<l.length;)t.lastIndex=s,o=t.exec(l),(a=l.slice(s,o?o.index:l.length))&&(r?"#"===r?i.id=a:i.className?i.className.push(a):i.className=[a]:c=a,s+=a.length),o&&(r=o[0],s++);return{type:"element",tagName:c,properties:i,children:[]}};var t=/[#.]/g},91622:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},93915:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var l in a={},n[o]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],l={};for(var c in o)if(o.hasOwnProperty(c)){if(c==t)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);n.hasOwnProperty(c)||(l[c]=o[c])}var s=a[e];return a[e]=l,r.languages.DFS(r.languages,(function(t,n){n===s&&t!=e&&(this[t]=l)})),l},DFS:function e(t,n,a,o){o=o||{};var l=r.util.objId;for(var c in t)if(t.hasOwnProperty(c)){n.call(t,c,t[c],a||c);var i=t[c],s=r.util.type(i);"Object"!==s||o[l(i)]?"Array"!==s||o[l(i)]||(o[l(i)]=!0,e(i,n,c,o)):(o[l(i)]=!0,e(i,n,null,o))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)r.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,n,a){var o=r.util.getLanguage(t),l=r.languages[o];r.util.setLanguage(t,o);var c=t.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&r.util.setLanguage(c,o);var i={element:t,language:o,grammar:l,code:t.textContent};function s(e){i.highlightedCode=e,r.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,r.hooks.run("after-highlight",i),r.hooks.run("complete",i),a&&a.call(i.element)}if(r.hooks.run("before-sanity-check",i),(c=i.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!i.code)return r.hooks.run("complete",i),void(a&&a.call(i.element));if(r.hooks.run("before-highlight",i),i.grammar)if(n&&e.Worker){var u=new Worker(r.filename);u.onmessage=function(e){s(e.data)},u.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(r.highlight(i.code,i.grammar,i.language));else s(r.util.encode(i.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var r=new i;return s(r,r.head,e),c(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:o};function o(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function l(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function c(e,t,n,a,i,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var m=0;m<g.length;++m){if(d&&d.cause==p+","+m)return;var f=g[m],h=f.inside,y=!!f.lookbehind,b=!!f.greedy,v=f.alias;if(b&&!f.pattern.global){var w=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,w+"g")}for(var x=f.pattern||f,k=a.next,S=i;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var A=k.value;if(t.length>e.length)return;if(!(A instanceof o)){var F,O=1;if(b){if(!(F=l(x,S,e,y))||F.index>=e.length)break;var N=F.index,C=F.index+F[0].length,j=S;for(j+=k.value.length;N>=j;)j+=(k=k.next).value.length;if(S=j-=k.value.length,k.value instanceof o)continue;for(var P=k;P!==t.tail&&(j<C||"string"===typeof P.value);P=P.next)O++,j+=P.value.length;O--,A=e.slice(S,j),F.index-=S}else if(!(F=l(x,0,A,y)))continue;N=F.index;var L=F[0],_=A.slice(0,N),E=A.slice(N+L.length),z=S+A.length;d&&z>d.reach&&(d.reach=z);var M=k.prev;if(_&&(M=s(t,M,_),S+=_.length),u(t,M,O),k=s(t,M,new o(p,h?r.tokenize(L,h):L,v,L)),E&&s(t,k,E),O>1){var T={cause:p+","+m,reach:z};c(e,t,n,k.prev,S,T),d&&T.reach>d.reach&&(d.reach=T.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function u(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r}if(e.Prism=r,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(o.classes,l):o.classes.push(l)),r.hooks.run("wrap",o);var c="";for(var i in o.attributes)c+=" "+i+'="'+(o.attributes[i]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+c+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,o=n.code,l=n.immediateClose;e.postMessage(r.highlight(o,r.languages[a],a)),l&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof n.g&&(n.g.Prism=a)},94667:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},96298:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var a=n(98587);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function i(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(59284),u=n(58168);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return g[t]||(g[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),g[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return p(p({},e),n[t])}),t)}function f(e){return e.join(" ")}function h(e){var t=e.node,n=e.stylesheet,a=e.style,r=void 0===a?{}:a,o=e.useInlineStyles,l=e.key,c=t.properties,i=t.type,d=t.tagName,g=t.value;if("text"===i)return g;if(d){var y,b=function(e,t){var n=0;return function(a){return n+=1,a.map((function(a,r){return h({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(r)})}))}}(n,o);if(o){var v=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),w=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&w.concat(c.className.filter((function(e){return!v.includes(e)})));y=p(p({},c),{},{className:f(x)||void 0,style:m(c.className,Object.assign({},c.style,r),n)})}else y=p(p({},c),{},{className:f(c.className)});var k=b(t.children);return s.createElement(d,(0,u.A)({key:l},y),k)}}var y=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=/\n/g;function x(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,r=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,l=void 0===o?{}:o,c=e.startingLineNumber;return s.createElement("code",{style:Object.assign({},n,r)},function(e){var t=e.lines,n=e.startingLineNumber,a=e.style;return t.map((function(e,t){var r=t+n;return s.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof a?a(r):a},"".concat(r,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:l,startingLineNumber:c}))}function k(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function S(e,t,n){var a,r={display:"inline-block",minWidth:(a=n,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return v(v({},r),o)}function A(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,r=e.largestLineNumber,l=e.showInlineLineNumbers,c=e.lineProps,i=void 0===c?{}:c,s=e.className,u=void 0===s?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,m=void 0!==g&&g?v({},"function"===typeof i?i(n):i):{};if(m.className=m.className?[].concat(o(m.className.trim().split(/\s+/)),o(u)):u,n&&l){var f=S(a,n,r);t.unshift(k(n,f))}return p&d&&(m.style=v({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a<e.length;a++){var r=e[a];if("text"===r.type)n.push(A({children:[r],className:o(new Set(t))}));else if(r.children){var l=t.concat(r.properties.className);F(r.children,l).forEach((function(e){return n.push(e)}))}}return n}function O(e,t,n,a,r,o,l,c,i){var s,u=F(e.value),d=[],p=-1,g=0;function m(e,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||s.length>0?function(e,o){return A({children:e,lineNumber:o,lineNumberStyle:c,largestLineNumber:l,showInlineLineNumbers:r,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:i,wrapLines:t})}(e,o,s):function(e,t){if(a&&t&&r){var n=S(c,t,l);e.unshift(k(t,n))}return e}(e,o)}for(var f=function(){var e=u[g],t=e.children[0].value;if(t.match(w)){var n=t.split("\n");n.forEach((function(t,r){var l=a&&d.length+o,c={type:"text",value:"".concat(t,"\n")};if(0===r){var i=m(u.slice(p+1,g).concat(A({children:[c],className:e.properties.className})),l);d.push(i)}else if(r===n.length-1){var s=u[g+1]&&u[g+1].children&&u[g+1].children[0],f={type:"text",value:"".concat(t)};if(s){var h=A({children:[f],className:e.properties.className});u.splice(g+1,0,h)}else{var y=m([f],l,e.properties.className);d.push(y)}}else{var b=m([c],l,e.properties.className);d.push(b)}})),p=g}g++};g<u.length;)f();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var y=m(h,a&&d.length+o);d.push(y)}}return t?d:(s=[]).concat.apply(s,d)}function N(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map((function(e,t){return h({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})}))}function C(e){return e&&"undefined"!==typeof e.highlightAuto}var j,P,L=n(86598),_=n.n(L),E=(j=_(),P={},function(e){var t=e.language,n=e.children,r=e.style,o=void 0===r?P:r,l=e.customStyle,c=void 0===l?{}:l,i=e.codeTagProps,u=void 0===i?{className:t?"language-".concat(t):void 0,style:v(v({},o['code[class*="language-"]']),o['code[class*="language-'.concat(t,'"]')])}:i,d=e.useInlineStyles,p=void 0===d||d,g=e.showLineNumbers,m=void 0!==g&&g,f=e.showInlineLineNumbers,h=void 0===f||f,b=e.startingLineNumber,w=void 0===b?1:b,k=e.lineNumberContainerStyle,S=e.lineNumberStyle,A=void 0===S?{}:S,F=e.wrapLines,L=e.wrapLongLines,_=void 0!==L&&L,E=e.lineProps,z=void 0===E?{}:E,M=e.renderer,T=e.PreTag,$=void 0===T?"pre":T,D=e.CodeTag,I=void 0===D?"code":D,R=e.code,q=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,H=e.astGenerator,B=function(e,t){if(null==e)return{};var n,r,o=(0,a.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,y);H=H||j;var U=m?s.createElement(x,{containerStyle:k,codeStyle:u.style||{},numberStyle:A,startingLineNumber:w,codeString:q}):null,W=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},V=C(H)?"hljs":"prismjs",Z=p?Object.assign({},B,{style:Object.assign({},W,c)}):Object.assign({},B,{className:B.className?"".concat(V," ").concat(B.className):V,style:Object.assign({},c)});if(u.style=v(_?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!H)return s.createElement($,Z,U,s.createElement(I,u,q));(void 0===F&&M||_)&&(F=!0),M=M||N;var G=[{type:"text",value:q}],K=function(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(C(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:r,language:"text"}:o?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:r}}catch(l){return{value:r}}}({astGenerator:H,language:t,code:q,defaultCodeValue:G});null===K.language&&(K.value=G);var J=K.value.length;1===J&&"text"===K.value[0].type&&(J=K.value[0].value.split("\n").length);var Y=O(K,F,z,m,h,w,J+w,A,_);return s.createElement($,Z,s.createElement(I,u,!h&&U,M({rows:Y,stylesheet:o,useInlineStyles:p})))});E.registerLanguage=function(e,t){return _().register(t)},E.alias=function(e,t){return _().alias(e,t)};const z=E}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/66820.ec86ae7a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/66820.ec86ae7a.chunk.js.LICENSE.txt new file mode 100644 index 0000000000..0285de9116 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66820.ec86ae7a.chunk.js.LICENSE.txt @@ -0,0 +1,8 @@ +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT <https://opensource.org/licenses/MIT> + * @author Lea Verou <https://lea.verou.me> + * @namespace + * @public + */ diff --git a/ydb/core/viewer/monitoring/static/js/66824.abfa3f22.chunk.js b/ydb/core/viewer/monitoring/static/js/66824.abfa3f22.chunk.js new file mode 100644 index 0000000000..91c979a8f5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/66824.abfa3f22.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[66824],{66824:(e,a,s)=>{s.d(a,{default:()=>r});var b=s(78029);const r=s.n(b)()},78029:e=>{function a(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e.exports=a,a.displayName="birb",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/67105.3413451f.chunk.js b/ydb/core/viewer/monitoring/static/js/67105.3413451f.chunk.js new file mode 100644 index 0000000000..a297eff5e3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67105.3413451f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67105],{15182:e=>{function n(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}e.exports=n,n.displayName="vim",n.aliases=[]},67105:(e,n,i)=>{i.d(n,{default:()=>o});var t=i(15182);const o=i.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/67191.46b77437.chunk.js b/ydb/core/viewer/monitoring/static/js/67191.46b77437.chunk.js new file mode 100644 index 0000000000..50c6977db1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67191.46b77437.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67191],{48142:E=>{function N(E){E.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}E.exports=N,N.displayName="abap",N.aliases=[]},67191:(E,N,T)=>{T.d(N,{default:()=>O});var I=T(48142);const O=T.n(I)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/67329.08db90c1.chunk.js b/ydb/core/viewer/monitoring/static/js/67329.08db90c1.chunk.js new file mode 100644 index 0000000000..35b71ea12b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67329.08db90c1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67329],{67329:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>b,default:()=>M});var c,a,h,v,m,n,z,d,i,r,f,s,o,p=t(59284);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},E.apply(null,arguments)}function u({title:e,titleId:l,...t},u){return p.createElement("svg",E({width:349,height:357,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:u,"aria-labelledby":l},t),e?p.createElement("title",{id:l},e):null,c||(c=p.createElement("path",{d:"M275.033 85.83c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#ECF2F9"})),a||(a=p.createElement("path",{d:"M279.233 267.33l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V99.43c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"})),h||(h=p.createElement("path",{d:"M191.333 140.128l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"})),v||(v=p.createElement("path",{d:"M203.433 196.428l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"})),m||(m=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.733 104.63c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.498c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"})),n||(n=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.733 248.231h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"})),z||(z=p.createElement("path",{d:"M340.533 206.43s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"})),d||(d=p.createElement("path",{d:"M337.633 284.332l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"})),i||(i=p.createElement("path",{d:"M313.033 236.931c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"})),r||(r=p.createElement("path",{d:"M308.333 236.93c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"})),f||(f=p.createElement("path",{d:"M21.733 41.629a2 2 0 0 0-4 0h4zm-4 8.2a2 2 0 1 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm-17.8 4a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.2 259.098a2 2 0 0 0-4 0h4zm-4 6.2a2 2 0 1 0 4 0h-4zm4 13.1a2 2 0 0 0-4 0h4zm-4 6.8a2 2 0 1 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"})),s||(s=p.createElement("path",{clipRule:"evenodd",d:"M15.233 326.328c7.18 0 13-5.82 13-13s-5.82-13-13-13-13 5.82-13 13 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=p.createElement("path",{d:"M28.233 311.328a2 2 0 0 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 1 0 4 0h-4zm-17.1 0a2 2 0 1 0 4 0h-4zm4-12.2a2 2 0 0 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"})))}const b=p.forwardRef(u),M=t.p+"static/media/403.6367e52f9464706633f52a2488a41958.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/67348.c1ed85fa.chunk.js b/ydb/core/viewer/monitoring/static/js/67348.c1ed85fa.chunk.js new file mode 100644 index 0000000000..b77ae0f0e5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67348.c1ed85fa.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67348],{67348:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"cv",weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),weekStart:1,weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/67357.dd9aa014.chunk.js b/ydb/core/viewer/monitoring/static/js/67357.dd9aa014.chunk.js new file mode 100644 index 0000000000..8cc8f9fb7a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67357.dd9aa014.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67357],{67357:function(e,t,_){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),a={name:"nb",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"}};return _.default.locale(a,null,!0),a}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/67574.31643beb.chunk.js b/ydb/core/viewer/monitoring/static/js/67574.31643beb.chunk.js new file mode 100644 index 0000000000..c1508498b1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67574.31643beb.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 67574.31643beb.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67574],{67574:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/67574.31643beb.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/67574.31643beb.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/67605.6cd42d90.chunk.js b/ydb/core/viewer/monitoring/static/js/67605.6cd42d90.chunk.js new file mode 100644 index 0000000000..4532aea5a0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/67605.6cd42d90.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[67605],{67605:function(e,_,i){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=_(e),n={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return i.default.locale(n,null,!0),n}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6785.f25ed122.chunk.js b/ydb/core/viewer/monitoring/static/js/6785.f25ed122.chunk.js new file mode 100644 index 0000000000..f79a64fda9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6785.f25ed122.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6785],{6785:(e,r,n)=>{n.d(r,{default:()=>o});var t=n(57544);const o=n.n(t)()},57544:e=>{function r(e){!function(e){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return r})),t=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return t})),i={pattern:RegExp(t),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,r){return e=e.replace(/<OPT>/g,(function(){return o})).replace(/<SP>/g,(function(){return n})),RegExp(e,r)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:a(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},e.languages.dockerfile=e.languages.docker}(e)}e.exports=r,r.displayName="docker",r.aliases=["dockerfile"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6786.28af14f6.chunk.js b/ydb/core/viewer/monitoring/static/js/6786.28af14f6.chunk.js deleted file mode 100644 index 02a2c0f49d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6786.28af14f6.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6786],{36786:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-il",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js b/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js deleted file mode 100644 index 988f73bc09..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6820.bff2520f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6820.bff2520f.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6820],{494:(e,t,n)=>{"use strict";var a=n(73934),r=n(94667);e.exports=function(e){return a(e)||r(e)}},9009:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},11666:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=a.booleanish,l=a.number,c=a.spaceSeparated;e.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:l,ariaColIndex:l,ariaColSpan:l,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:o,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:c,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:l,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:l,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:c,ariaRowCount:l,ariaRowIndex:l,ariaRowSpan:l,ariaSelected:o,ariaSetSize:l,ariaSort:null,ariaValueMax:l,ariaValueMin:l,ariaValueNow:l,ariaValueText:null,role:null}})},21257:e=>{"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')},22216:e=>{"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},27376:(e,t,n)=>{"use strict";var a=n(47556),r=n(72996),o=n(91448),l=n(82140).q,c=n(71383).q;e.exports=function(e,t,n){var r=n?function(e){var t,n=e.length,a=-1,r={};for(;++a<n;)r[(t=e[a]).toLowerCase()]=t;return r}(n):null;return function(e,n){var a,l=o(e,t),c=Array.prototype.slice.call(arguments,2),u=l.tagName.toLowerCase();l.tagName=r&&i.call(r,u)?r[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,l)&&(c.unshift(n),n=null);if(n)for(a in n)d(l.properties,a,n[a]);s(l.children,c),"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]);return l};function d(t,n,r){var o,i,s;null!==r&&void 0!==r&&r===r&&(i=(o=a(e,n)).property,"string"===typeof(s=r)&&(o.spaceSeparated?s=l(s):o.commaSeparated?s=c(s):o.commaOrSpaceSeparated&&(s=l(c(s).join(" ")))),"style"===i&&"string"!==typeof r&&(s=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(s)),"className"===i&&t.className&&(s=t.className.concat(s)),t[i]=function(e,t,n){var a,r,o;if("object"!==typeof n||!("length"in n))return u(e,t,n);r=n.length,a=-1,o=[];for(;++a<r;)o[a]=u(e,t,n[a]);return o}(o,i,s))}};var i={}.hasOwnProperty;function s(e,t){var n,a;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,a=t.length;++n<a;)s(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var a=n;return e.number||e.positiveNumber?isNaN(a)||""===a||(a=Number(a)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof a||""!==a&&r(n)!==r(t)||(a=!0)),a}},31630:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var a=arguments[n];for(var r in a)t.call(a,r)&&(e[r]=a[r])}return e};var t=Object.prototype.hasOwnProperty},32138:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}},32990:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},33592:e=>{"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},35228:(e,t,n)=>{"use strict";var a=n(31630),r=n(9009);e.exports=function(e){var t,n,o=e.length,l=[],c=[],i=-1;for(;++i<o;)t=e[i],l.push(t.property),c.push(t.normal),n=t.space;return new r(a.apply(null,l),a.apply(null,c),n)}},43733:(e,t,n)=>{"use strict";n.d(t,{RE:()=>a,XB:()=>o,to:()=>r});const a="$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow".split("|"),r="bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes".split("|"),o="abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtop|listtopsort|listtopasc|listtopdesc|listtopsortasc|listtopsortdesc|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield".split("|")},47556:(e,t,n)=>{"use strict";var a=n(72996),r=n(70302),o=n(58974),l="data";e.exports=function(e,t){var n=a(t),p=t,g=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===l&&c.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,d);return l+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(i.test(t))return e;t=t.replace(s,u),"-"!==t.charAt(0)&&(t="-"+t);return l+t}(t),g=r);return new g(p,t)};var c=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},48893:(e,t,n)=>{"use strict";var a=n(70730),r=n(27376)(a,"div");r.displayName="html",e.exports=r},50683:e=>{"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},55942:(e,t,n)=>{"use strict";e.exports=n(48893)},58974:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},59162:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=n(70503),l=a.boolean,c=a.overloadedBoolean,i=a.booleanish,s=a.number,u=a.spaceSeparated,d=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:u,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:i,controls:l,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:c,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:u,height:s,hidden:l,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:u,itemRef:u,itemScope:l,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:u,required:l,reversed:l,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:s,security:null,unselectable:null}})},61945:(e,t,n)=>{"use strict";var a=n(71478),r=n(70503);e.exports=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})},61993:e=>{"use strict";function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},62422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},64016:e=>{"use strict";var t;e.exports=function(e){var n,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==a&&n}},70302:(e,t,n)=>{"use strict";var a=n(58974),r=n(73125);e.exports=c,c.prototype=new a,c.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function c(e,t,n,c){var s,u=-1;for(i(this,"space",c),a.call(this,e,t);++u<l;)i(this,s=o[u],(n&r[s])===r[s])}function i(e,t,n){n&&(e[t]=n)}},70503:(e,t,n)=>{"use strict";var a=n(32990);e.exports=function(e,t){return a(e,t.toLowerCase())}},70730:(e,t,n)=>{"use strict";var a=n(35228),r=n(83851),o=n(91622),l=n(61945),c=n(11666),i=n(59162);e.exports=a([o,r,l,c,i])},71383:(e,t)=>{"use strict";t.q=function(e){var t,a=[],o=String(e||r),l=o.indexOf(n),c=0,i=!1;for(;!i;)-1===l&&(l=o.length,i=!0),!(t=o.slice(c,l).trim())&&i||a.push(t),c=l+1,l=o.indexOf(n,c);return a};var n=",",a=" ",r=""},71478:(e,t,n)=>{"use strict";var a=n(72996),r=n(9009),o=n(70302);e.exports=function(e){var t,n,l=e.space,c=e.mustUseProperty||[],i=e.attributes||{},s=e.properties,u=e.transform,d={},p={};for(t in s)n=new o(t,u(i,t),s[t],l),-1!==c.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[a(t)]=t,p[a(n.attribute)]=t;return new r(d,p,l)}},72824:(e,t,n)=>{"use strict";var a=n(82719),r=n(21257),o=n(94667),l=n(83991),c=n(494),i=n(64016);e.exports=function(e,t){var n,o,l={};t||(t={});for(o in p)n=t[o],l[o]=null===n||void 0===n?p[o]:n;(l.position.indent||l.position.start)&&(l.indent=l.position.indent||[],l.position=l.position.start);return function(e,t){var n,o,l,p,R,q,H,B,U,W,V,Z,G,K,J,Y,X,Q,ee,te=t.additional,ne=t.nonTerminated,ae=t.text,re=t.reference,oe=t.warning,le=t.textContext,ce=t.referenceContext,ie=t.warningContext,se=t.position,ue=t.indent||[],de=e.length,pe=0,ge=-1,me=se.column||1,fe=se.line||1,he="",ye=[];"string"===typeof te&&(te=te.charCodeAt(0));Y=be(),B=oe?ve:d,pe--,de++;for(;++pe<de;)if(R===m&&(me=ue[ge]||1),(R=e.charCodeAt(pe))===y){if((H=e.charCodeAt(pe+1))===g||H===m||H===f||H===h||H===y||H===v||H!==H||te&&H===te){he+=u(R),me++;continue}for(Z=G=pe+1,ee=G,H===x?(ee=++Z,(H=e.charCodeAt(ee))===k||H===S?(K=O,ee=++Z):K=N):K=F,n="",V="",p="",J=j[K],ee--;++ee<de&&J(H=e.charCodeAt(ee));)p+=u(H),K===F&&s.call(a,p)&&(n=p,V=a[p]);(l=e.charCodeAt(ee)===b)&&(ee++,(o=K===F&&i(p))&&(n=p,V=o)),Q=1+ee-G,(l||ne)&&(p?K===F?(l&&!V?B(z,1):(n!==p&&(Q=1+(ee=Z+n.length)-Z,l=!1),l||(U=n?P:_,t.attribute?(H=e.charCodeAt(ee))===w?(B(U,Q),V=null):c(H)?V=null:B(U,Q):B(U,Q))),q=V):(l||B(L,Q),D(q=parseInt(p,C[K]))?(B(T,Q),q=u(A)):q in r?(B(M,Q),q=r[q]):(W="",I(q)&&B(M,Q),q>65535&&(W+=u((q-=65536)>>>10|55296),q=56320|1023&q),q=W+u(q))):K!==F&&B(E,Q)),q?(we(),Y=be(),pe=ee-1,me+=ee-G+1,ye.push(q),(X=be()).offset++,re&&re.call(ce,q,{start:Y,end:X},e.slice(G-1,ee)),Y=X):(p=e.slice(G-1,ee),he+=p,me+=p.length,pe=ee-1)}else 10===R&&(fe++,ge++,me=0),R===R?(he+=u(R),me++):we();return ye.join("");function be(){return{line:fe,column:me,offset:pe+(se.offset||0)}}function ve(e,t){var n=be();n.column+=t,n.offset+=t,oe.call(ie,$[e],n,e)}function we(){he&&(ye.push(he),ae&&ae.call(le,he,{start:Y,end:be()}),he="")}}(e,l)};var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,m=10,f=12,h=32,y=38,b=59,v=60,w=61,x=35,k=88,S=120,A=65533,F="named",O="hexadecimal",N="decimal",C={};C[O]=16,C[N]=10;var j={};j[F]=c,j[N]=o,j[O]=l;var P=1,L=2,_=3,E=4,z=5,M=6,T=7,$={};function D(e){return e>=55296&&e<=57343||e>1114111}function I(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}$[P]="Named character references must be terminated by a semicolon",$[L]="Numeric character references must be terminated by a semicolon",$[_]="Named character references cannot be empty",$[E]="Numeric character references cannot be empty",$[z]="Named character references must be known",$[M]="Numeric character references cannot be disallowed",$[T]="Numeric character references cannot be outside the permissible Unicode range"},72996:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},73125:(e,t)=>{"use strict";var n=0;function a(){return Math.pow(2,++n)}t.boolean=a(),t.booleanish=a(),t.overloadedBoolean=a(),t.number=a(),t.spaceSeparated=a(),t.commaSeparated=a(),t.commaOrSpaceSeparated=a()},73934:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},82140:(e,t)=>{"use strict";t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(r)};var n="",a=" ",r=/[ \t\n\r\f]+/g},82719:e=>{"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},83851:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},83991:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},86598:(e,t,n)=>{"use strict";var a="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof n.g?n.g:{},r=function(){var e="Prism"in a,t=e?a.Prism:void 0;return function(){e?a.Prism=t:delete a.Prism;e=void 0,t=void 0}}();a.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(55942),l=n(72824),c=n(93915),i=n(33592),s=n(61993),u=n(22216),d=n(50683);r();var p={}.hasOwnProperty;function g(){}g.prototype=c;var m=new g;function f(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===m.languages[e.displayName]&&e(m)}e.exports=m,m.highlight=function(e,t){var n,a=c.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===m.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(m.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=m.languages[t]}return a.call(this,e,n,t)},m.register=f,m.alias=function(e,t){var n,a,r,o,l=m.languages,c=e;t&&((c={})[e]=t);for(n in c)for(r=(a="string"===typeof(a=c[n])?[a]:a).length,o=-1;++o<r;)l[a[o]]=l[n]},m.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(m.languages,e)},m.listLanguages=function(){var e,t=m.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},f(i),f(s),f(u),f(d),m.util.encode=function(e){return e},m.Token.stringify=function(e,t,n){var a;if("string"===typeof e)return{type:"text",value:e};if("Array"===m.util.type(e))return function(e,t){var n,a=[],r=e.length,o=-1;for(;++o<r;)""!==(n=e[o])&&null!==n&&void 0!==n&&a.push(n);o=-1,r=a.length;for(;++o<r;)n=a[o],a[o]=m.Token.stringify(n,t,a);return a}(e,t);a={type:e.type,content:m.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(a.classes=a.classes.concat(e.alias));return m.hooks.run("wrap",a),o(a.tag+"."+a.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(a.attributes),a.content)}},91448:e=>{"use strict";e.exports=function(e,n){var a,r,o,l=e||"",c=n||"div",i={},s=0;for(;s<l.length;)t.lastIndex=s,o=t.exec(l),(a=l.slice(s,o?o.index:l.length))&&(r?"#"===r?i.id=a:i.className?i.className.push(a):i.className=[a]:c=a,s+=a.length),o&&(r=o[0],s++);return{type:"element",tagName:c,properties:i,children:[]}};var t=/[#.]/g},91622:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},93915:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var l in a={},n[o]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],l={};for(var c in o)if(o.hasOwnProperty(c)){if(c==t)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);n.hasOwnProperty(c)||(l[c]=o[c])}var s=a[e];return a[e]=l,r.languages.DFS(r.languages,(function(t,n){n===s&&t!=e&&(this[t]=l)})),l},DFS:function e(t,n,a,o){o=o||{};var l=r.util.objId;for(var c in t)if(t.hasOwnProperty(c)){n.call(t,c,t[c],a||c);var i=t[c],s=r.util.type(i);"Object"!==s||o[l(i)]?"Array"!==s||o[l(i)]||(o[l(i)]=!0,e(i,n,c,o)):(o[l(i)]=!0,e(i,n,null,o))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)r.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,n,a){var o=r.util.getLanguage(t),l=r.languages[o];r.util.setLanguage(t,o);var c=t.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&r.util.setLanguage(c,o);var i={element:t,language:o,grammar:l,code:t.textContent};function s(e){i.highlightedCode=e,r.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,r.hooks.run("after-highlight",i),r.hooks.run("complete",i),a&&a.call(i.element)}if(r.hooks.run("before-sanity-check",i),(c=i.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!i.code)return r.hooks.run("complete",i),void(a&&a.call(i.element));if(r.hooks.run("before-highlight",i),i.grammar)if(n&&e.Worker){var u=new Worker(r.filename);u.onmessage=function(e){s(e.data)},u.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(r.highlight(i.code,i.grammar,i.language));else s(r.util.encode(i.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var r=new i;return s(r,r.head,e),c(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:o};function o(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function l(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function c(e,t,n,a,i,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var m=0;m<g.length;++m){if(d&&d.cause==p+","+m)return;var f=g[m],h=f.inside,y=!!f.lookbehind,b=!!f.greedy,v=f.alias;if(b&&!f.pattern.global){var w=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,w+"g")}for(var x=f.pattern||f,k=a.next,S=i;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var A=k.value;if(t.length>e.length)return;if(!(A instanceof o)){var F,O=1;if(b){if(!(F=l(x,S,e,y))||F.index>=e.length)break;var N=F.index,C=F.index+F[0].length,j=S;for(j+=k.value.length;N>=j;)j+=(k=k.next).value.length;if(S=j-=k.value.length,k.value instanceof o)continue;for(var P=k;P!==t.tail&&(j<C||"string"===typeof P.value);P=P.next)O++,j+=P.value.length;O--,A=e.slice(S,j),F.index-=S}else if(!(F=l(x,0,A,y)))continue;N=F.index;var L=F[0],_=A.slice(0,N),E=A.slice(N+L.length),z=S+A.length;d&&z>d.reach&&(d.reach=z);var M=k.prev;if(_&&(M=s(t,M,_),S+=_.length),u(t,M,O),k=s(t,M,new o(p,h?r.tokenize(L,h):L,v,L)),E&&s(t,k,E),O>1){var T={cause:p+","+m,reach:z};c(e,t,n,k.prev,S,T),d&&T.reach>d.reach&&(d.reach=T.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function u(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r}if(e.Prism=r,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(o.classes,l):o.classes.push(l)),r.hooks.run("wrap",o);var c="";for(var i in o.attributes)c+=" "+i+'="'+(o.attributes[i]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+c+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,o=n.code,l=n.immediateClose;e.postMessage(r.highlight(o,r.languages[a],a)),l&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof n.g&&(n.g.Prism=a)},94667:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},96298:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var a=n(98587);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function i(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(59284),u=n(58168);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return g[t]||(g[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),g[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return p(p({},e),n[t])}),t)}function f(e){return e.join(" ")}function h(e){var t=e.node,n=e.stylesheet,a=e.style,r=void 0===a?{}:a,o=e.useInlineStyles,l=e.key,c=t.properties,i=t.type,d=t.tagName,g=t.value;if("text"===i)return g;if(d){var y,b=function(e,t){var n=0;return function(a){return n+=1,a.map((function(a,r){return h({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(r)})}))}}(n,o);if(o){var v=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),w=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&w.concat(c.className.filter((function(e){return!v.includes(e)})));y=p(p({},c),{},{className:f(x)||void 0,style:m(c.className,Object.assign({},c.style,r),n)})}else y=p(p({},c),{},{className:f(c.className)});var k=b(t.children);return s.createElement(d,(0,u.A)({key:l},y),k)}}var y=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=/\n/g;function x(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,r=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,l=void 0===o?{}:o,c=e.startingLineNumber;return s.createElement("code",{style:Object.assign({},n,r)},function(e){var t=e.lines,n=e.startingLineNumber,a=e.style;return t.map((function(e,t){var r=t+n;return s.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof a?a(r):a},"".concat(r,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:l,startingLineNumber:c}))}function k(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function S(e,t,n){var a,r={display:"inline-block",minWidth:(a=n,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return v(v({},r),o)}function A(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,r=e.largestLineNumber,l=e.showInlineLineNumbers,c=e.lineProps,i=void 0===c?{}:c,s=e.className,u=void 0===s?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,m=void 0!==g&&g?v({},"function"===typeof i?i(n):i):{};if(m.className=m.className?[].concat(o(m.className.trim().split(/\s+/)),o(u)):u,n&&l){var f=S(a,n,r);t.unshift(k(n,f))}return p&d&&(m.style=v({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a<e.length;a++){var r=e[a];if("text"===r.type)n.push(A({children:[r],className:o(new Set(t))}));else if(r.children){var l=t.concat(r.properties.className);F(r.children,l).forEach((function(e){return n.push(e)}))}}return n}function O(e,t,n,a,r,o,l,c,i){var s,u=F(e.value),d=[],p=-1,g=0;function m(e,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||s.length>0?function(e,o){return A({children:e,lineNumber:o,lineNumberStyle:c,largestLineNumber:l,showInlineLineNumbers:r,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:i,wrapLines:t})}(e,o,s):function(e,t){if(a&&t&&r){var n=S(c,t,l);e.unshift(k(t,n))}return e}(e,o)}for(var f=function(){var e=u[g],t=e.children[0].value;if(t.match(w)){var n=t.split("\n");n.forEach((function(t,r){var l=a&&d.length+o,c={type:"text",value:"".concat(t,"\n")};if(0===r){var i=m(u.slice(p+1,g).concat(A({children:[c],className:e.properties.className})),l);d.push(i)}else if(r===n.length-1){var s=u[g+1]&&u[g+1].children&&u[g+1].children[0],f={type:"text",value:"".concat(t)};if(s){var h=A({children:[f],className:e.properties.className});u.splice(g+1,0,h)}else{var y=m([f],l,e.properties.className);d.push(y)}}else{var b=m([c],l,e.properties.className);d.push(b)}})),p=g}g++};g<u.length;)f();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var y=m(h,a&&d.length+o);d.push(y)}}return t?d:(s=[]).concat.apply(s,d)}function N(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map((function(e,t){return h({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})}))}function C(e){return e&&"undefined"!==typeof e.highlightAuto}var j,P,L=n(86598),_=n.n(L),E=(j=_(),P={},function(e){var t=e.language,n=e.children,r=e.style,o=void 0===r?P:r,l=e.customStyle,c=void 0===l?{}:l,i=e.codeTagProps,u=void 0===i?{className:t?"language-".concat(t):void 0,style:v(v({},o['code[class*="language-"]']),o['code[class*="language-'.concat(t,'"]')])}:i,d=e.useInlineStyles,p=void 0===d||d,g=e.showLineNumbers,m=void 0!==g&&g,f=e.showInlineLineNumbers,h=void 0===f||f,b=e.startingLineNumber,w=void 0===b?1:b,k=e.lineNumberContainerStyle,S=e.lineNumberStyle,A=void 0===S?{}:S,F=e.wrapLines,L=e.wrapLongLines,_=void 0!==L&&L,E=e.lineProps,z=void 0===E?{}:E,M=e.renderer,T=e.PreTag,$=void 0===T?"pre":T,D=e.CodeTag,I=void 0===D?"code":D,R=e.code,q=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,H=e.astGenerator,B=function(e,t){if(null==e)return{};var n,r,o=(0,a.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,y);H=H||j;var U=m?s.createElement(x,{containerStyle:k,codeStyle:u.style||{},numberStyle:A,startingLineNumber:w,codeString:q}):null,W=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},V=C(H)?"hljs":"prismjs",Z=p?Object.assign({},B,{style:Object.assign({},W,c)}):Object.assign({},B,{className:B.className?"".concat(V," ").concat(B.className):V,style:Object.assign({},c)});if(u.style=v(_?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!H)return s.createElement($,Z,U,s.createElement(I,u,q));(void 0===F&&M||_)&&(F=!0),M=M||N;var G=[{type:"text",value:q}],K=function(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(C(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:r,language:"text"}:o?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:r}}catch(l){return{value:r}}}({astGenerator:H,language:t,code:q,defaultCodeValue:G});null===K.language&&(K.value=G);var J=K.value.length;1===J&&"text"===K.value[0].type&&(J=K.value[0].value.split("\n").length);var Y=O(K,F,z,m,h,w,J+w,A,_);return s.createElement($,Z,s.createElement(I,u,!h&&U,M({rows:Y,stylesheet:o,useInlineStyles:p})))});E.registerLanguage=function(e,t){return _().register(t)},E.alias=function(e,t){return _().alias(e,t)};const z=E}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/68220.ece8573d.chunk.js b/ydb/core/viewer/monitoring/static/js/68220.ece8573d.chunk.js new file mode 100644 index 0000000000..f666be1556 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/68220.ece8573d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[68220],{41353:e=>{function t(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}e.exports=t,t.displayName="al",t.aliases=[]},68220:(e,t,o)=>{o.d(t,{default:()=>i});var a=o(41353);const i=o.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6833.584b7806.chunk.js b/ydb/core/viewer/monitoring/static/js/6833.584b7806.chunk.js deleted file mode 100644 index 1aaf6992a9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6833.584b7806.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6833],{26833:function(e,_,i){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=_(e),n={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(n,null,!0),n}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/68377.f73a91b7.chunk.js b/ydb/core/viewer/monitoring/static/js/68377.f73a91b7.chunk.js new file mode 100644 index 0000000000..6a9c44ee04 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/68377.f73a91b7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[68377],{1022:e=>{function n(e){!function(e){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}}(e)}e.exports=n,n.displayName="nginx",n.aliases=[]},68377:(e,n,a)=>{a.d(n,{default:()=>i});var t=a(1022);const i=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/684.9346e985.chunk.js b/ydb/core/viewer/monitoring/static/js/684.9346e985.chunk.js deleted file mode 100644 index f41691deb6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/684.9346e985.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[684],{3685:(e,t,s)=>{s.d(t,{$:()=>r});var i=s(54090),n=s(77506),o=s(33775),a=s(60712);const l=(0,n.cn)("ydb-entity-page-title");function r({entityName:e,status:t=i.m.Grey,id:s,className:n}){return(0,a.jsxs)("div",{className:l(null,n),children:[(0,a.jsx)("span",{className:l("prefix"),children:e}),(0,a.jsx)(o.k,{className:l("icon"),status:t,size:"s"}),s]})}},18677:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},22983:(e,t,s)=>{s.d(t,{B:()=>d});var i=s(59284),n=s(84476),o=s(84375),a=s(55974),l=s(42829),r=s(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:s,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:m=!1,buttonView:p="action",buttonTitle:h,buttonClassName:v,withPopover:g=!1,popoverContent:f,popoverPlacement:x="right",popoverDisabled:b=!0}){const[y,j]=i.useState(!1),[k,N]=i.useState(!1),[S,w]=i.useState(!1),D=()=>(0,r.jsx)(n.$,{onClick:()=>j(!0),view:p,disabled:m,loading:!m&&k,className:v,title:h,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.g,{visible:y,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{w(!1);try{await(null===s||void 0===s?void 0:s())}finally{N(!1)}},onConfirmActionError:e=>{w((0,l.D)(e)),N(!1)},onClose:()=>{j(!1)}}),g?(0,r.jsx)(o.A,{content:f,placement:x,disabled:b,children:D()}):D()]})}},42655:(e,t,s)=>{s.d(t,{y:()=>c});var i=s(59284),n=s(89169),o=s(77506),a=s(66781),l=s(60712);const r=(0,o.cn)("ydb-info-viewer-skeleton"),d=()=>(0,l.jsxs)("div",{className:r("label"),children:[(0,l.jsx)(n.E,{className:r("label__text")}),(0,l.jsx)("div",{className:r("label__dots")})]}),c=({rows:e=8,className:t,delay:s=600})=>{const[o]=(0,a.y)(s);let c=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(n.E,{className:r("value")})]});return o||(c=null),(0,l.jsx)("div",{className:r(null,t),children:[...new Array(e)].map(((e,t)=>(0,l.jsx)("div",{className:r("row"),children:c},`skeleton-row-${t}`)))})}},42829:(e,t,s)=>{s.d(t,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},45659:(e,t,s)=>{s.d(t,{Q:()=>g});var i=s(87184),n=s(92459),o=s(7435),a=s(46549),l=s(56839),r=s(31684),d=s(12888),c=s(18863),u=s(25196),m=s(15132),p=s(33775),h=s(50672),v=s(60712);function g({pDisk:e,nodeId:t,withPDiskPageLink:s,className:g}){const f=(0,d.X)(),[x,b,y,j]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:d}){const{PDiskId:c,Path:g,Guid:f,Category:x,Type:b,Device:y,Realtime:j,State:k,SerialNumber:N,TotalSize:S,AllocatedSize:w,StatusV2:D,NumActiveSlots:I,ExpectedSlotCount:C,LogUsedSize:E,LogTotalSize:T,SystemSize:P,SharedWithOs:z}=e||{},A=[];(0,o.f8)(x)&&A.push({label:(0,h.D)("type"),value:b}),(0,o.f8)(g)&&A.push({label:(0,h.D)("path"),value:g}),(0,o.f8)(f)&&A.push({label:(0,h.D)("guid"),value:f}),N&&A.push({label:(0,h.D)("serial-number"),value:N}),z&&A.push({label:(0,h.D)("shared-with-os"),value:(0,h.D)("yes")});const M=[];(0,o.f8)(D)&&M.push({label:(0,h.D)("drive-status"),value:D}),(0,o.f8)(k)&&M.push({label:(0,h.D)("state"),value:k}),(0,o.f8)(y)&&M.push({label:(0,h.D)("device"),value:(0,v.jsx)(p.k,{status:y})}),(0,o.f8)(j)&&M.push({label:(0,h.D)("realtime"),value:(0,v.jsx)(p.k,{status:j})});const _=[];_.push({label:(0,h.D)("space"),value:(0,v.jsx)(m.O,{value:w,capacity:S,formatValues:l.vX,colorizeProgress:!0})}),(0,o.f8)(I)&&(0,o.f8)(C)&&_.push({label:(0,h.D)("slots"),value:(0,v.jsx)(m.O,{value:I,capacity:C})}),(0,o.f8)(E)&&(0,o.f8)(T)&&_.push({label:(0,h.D)("log-size"),value:(0,v.jsx)(m.O,{value:E,capacity:T,formatValues:l.vX})}),(0,o.f8)(P)&&_.push({label:(0,h.D)("system-size"),value:(0,a.z3)({value:P})});const O=[];if((s||d)&&(0,o.f8)(c)&&(0,o.f8)(t)){const e=(0,n.Ck)(c,t),o=(0,r.ar)({nodeId:t,pDiskId:c});O.push({label:(0,h.D)("links"),value:(0,v.jsxs)(i.s,{wrap:"wrap",gap:2,children:[s&&(0,v.jsx)(u.K,{title:(0,h.D)("pdisk-page"),url:e,external:!1}),d&&(0,v.jsx)(u.K,{title:(0,h.D)("developer-ui"),url:o})]})})}return[A,M,_,O]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:f});return(0,v.jsxs)(i.s,{className:g,gap:2,direction:"row",wrap:!0,children:[(0,v.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,v.jsx)(c.z,{info:x,renderEmptyState:()=>null}),(0,v.jsx)(c.z,{info:y,renderEmptyState:()=>null})]}),(0,v.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,v.jsx)(c.z,{info:b,renderEmptyState:()=>null}),(0,v.jsx)(c.z,{info:j,renderEmptyState:()=>null})]})]})}},55974:(e,t,s)=>{s.d(t,{g:()=>f});var i=s(59284),n=s(18677),o=s(71153),a=s(74321),l=s(2198),r=s(99991),d=s(89954),c=s(77506),u=s(48372);const m=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),p=(0,u.g4)("ydb-critical-action-dialog",{en:m});var h=s(60712);const v=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,h.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?p("no-rights-error"):e.statusText?e.statusText:p("default-error");function f({visible:e,header:t,text:s,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:m,onConfirm:f,onConfirmActionSuccess:x,onConfirmActionError:b}){const[y,j]=i.useState(!1),[k,N]=i.useState(),[S,w]=i.useState(!1),D=async e=>(j(!0),f(e).then((()=>{x(),m()})).catch((e=>{b(e),N(e)})).finally((()=>{j(!1)})));return(0,h.jsx)(l.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:m,onTransitionExited:()=>{N(void 0),w(!1)},children:k?(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(l.l.Header,{caption:t}),(0,h.jsx)(l.l.Body,{className:v("body"),children:(0,h.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,h.jsx)("span",{className:v("error-icon"),children:(0,h.jsx)(n.A,{width:"24",height:"22"})}),g(k)]})}),(0,h.jsx)(l.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||p("button-retry"):void 0,textButtonCancel:p("button-close"),onClickButtonApply:()=>D(!0),onClickButtonCancel:m})]}):(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(l.l.Header,{caption:t}),(0,h.jsxs)(l.l.Body,{className:v("body"),children:[(0,h.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,h.jsx)("span",{className:v("warning-icon"),children:(0,h.jsx)(r.I,{data:o.A,size:24})}),s]}),u?(0,h.jsx)(a.S,{checked:S,onUpdate:w,children:p("checkbox-text")}):null]}),(0,h.jsx)(l.l.Footer,{loading:y,preset:"default",textButtonApply:p("button-confirm"),textButtonCancel:p("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:m,onClickButtonApply:()=>D()})]})})}},58389:(e,t,s)=>{s.d(t,{B:()=>u});var i=s(87184),n=s(77506),o=s(90053),a=s(70043),l=s(60712);const r=(0,n.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:t}){return(0,l.jsx)("div",{className:r("info"),children:t?(0,l.jsx)(a.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...t}){return(0,l.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,l.jsx)(c,{...t}),(0,l.jsx)(o.E,{})]})}},67808:(e,t,s)=>{s.d(t,{E:()=>b});s(59284);var i=s(87184),n=s(92459),o=s(7435),a=s(77506),l=s(56839),r=s(31684),d=s(7187),c=s(12888),u=s(41650),m=s(60073),p=s(25196),h=s(15132),v=s(33775),g=s(39110),f=s(60712);const x=(0,a.cn)("ydb-vdisk-info");function b({data:e,withVDiskPageLink:t,withTitle:s,...a}){var d,x;const b=(0,c.X)(),{AllocatedSize:j,DiskSpace:k,FrontQueues:N,Guid:S,Replicated:w,VDiskState:D,VDiskSlotId:I,Kind:C,SatisfactionRank:E,AvailableSize:T,HasUnreadableBlobs:P,IncarnationGuid:z,InstanceGuid:A,StoragePoolName:M,ReadThroughput:_,WriteThroughput:O,PDiskId:R,NodeId:B}=e||{},L=[];var F,$;((0,o.f8)(I)&&L.push({label:(0,g.r)("slot-id"),value:I}),(0,o.f8)(M)&&L.push({label:(0,g.r)("pool-name"),value:M}),(0,o.f8)(D)&&L.push({label:(0,g.r)("state-status"),value:D}),Number(j)>=0&&Number(T)>=0&&L.push({label:(0,g.r)("size"),value:(0,f.jsx)(h.O,{value:j,capacity:Number(j)+Number(T),formatValues:l.vX,colorizeProgress:!0})}),(0,o.f8)(C)&&L.push({label:(0,g.r)("kind"),value:C}),(0,o.f8)(S)&&L.push({label:(0,g.r)("guid"),value:S}),(0,o.f8)(z)&&L.push({label:(0,g.r)("incarnation-guid"),value:z}),(0,o.f8)(A)&&L.push({label:(0,g.r)("instance-guid"),value:A}),(0,o.f8)(w)&&L.push({label:(0,g.r)("replication-status"),value:w?(0,g.r)("yes"):(0,g.r)("no")}),(0,o.f8)(k)&&L.push({label:(0,g.r)("space-status"),value:(0,f.jsx)(v.k,{status:k})}),(0,o.f8)(null===E||void 0===E||null===(d=E.FreshRank)||void 0===d?void 0:d.Flag))&&L.push({label:(0,g.r)("fresh-rank-satisfaction"),value:(0,f.jsx)(v.k,{status:null===E||void 0===E||null===(F=E.FreshRank)||void 0===F?void 0:F.Flag})});(0,o.f8)(null===E||void 0===E||null===(x=E.LevelRank)||void 0===x?void 0:x.Flag)&&L.push({label:(0,g.r)("level-rank-satisfaction"),value:(0,f.jsx)(v.k,{status:null===E||void 0===E||null===($=E.LevelRank)||void 0===$?void 0:$.Flag})});(0,o.f8)(N)&&L.push({label:(0,g.r)("front-queues"),value:(0,f.jsx)(v.k,{status:N})}),(0,o.f8)(P)&&L.push({label:(0,g.r)("has-unreadable-blobs"),value:P?(0,g.r)("yes"):(0,g.r)("no")}),(0,o.f8)(_)&&L.push({label:(0,g.r)("read-throughput"),value:(0,u.O4)(_)}),(0,o.f8)(O)&&L.push({label:(0,g.r)("write-throughput"),value:(0,u.O4)(O)});if((0,o.f8)(R)&&(0,o.f8)(B)&&(0,o.f8)(I)){const e=[];if(t){const t=(0,n.yX)(I,R,B);e.push((0,f.jsx)(p.K,{title:(0,g.r)("vdisk-page"),url:t,external:!1},t))}if(b){const t=(0,r.Wg)({nodeId:B,pDiskId:R,vDiskSlotId:I});e.push((0,f.jsx)(p.K,{title:(0,g.r)("developer-ui"),url:t},t))}e.length&&L.push({label:(0,g.r)("links"),value:(0,f.jsx)(i.s,{wrap:"wrap",gap:2,children:e})})}const V=e&&s?(0,f.jsx)(y,{data:e}):null;return(0,f.jsx)(m.z_,{info:L,title:V,...a})}function y({data:e}){return(0,f.jsxs)("div",{className:x("title"),children:[(0,g.r)("vdiks-title"),(0,f.jsx)(v.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>ye});var i=s(59284),n=s(76938),o=s(99991),a=s(23871),l=s(44992),r=s(61750),d=s(67087),c=s(370),u=s(22983),m=s(3685),p=s(44508),h=s(42655),v=s(82015),g=s(45659),f=s(58389),x=s(92459),b=s(21334),y=s(67028),j=s(40174),k=s(7187),N=s(68712),S=s(7435),w=s(27295),D=s(78034);const I=b.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:n})=>{let o;o=await(0,N.FC)("/pdisk/info",void 0,{getState:i,dispatch:n})>0?window.api.pdisk.getPDiskInfo({nodeId:e,pDiskId:t},{signal:s}):window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{signal:s}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const t=await Promise.all([o,window.api.viewer.getNodeInfo(e,{signal:s})]);return{data:function([e={},t]){var s,i,n;const o=null===(s=t.SystemStateInfo)||void 0===s?void 0:s[0],a=(0,D.q1)(o),{BSC:l={},Whiteboard:r={}}=e||{},{PDisk:d={},VDisks:c=[]}=r,{PDisk:u={}}=l,m=(0,w.or)({...u,...d}),p=null!==(i=m.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:h,LogTotalSize:v,TotalSize:g,SystemSize:f,ExpectedSlotCount:x,SlotSize:b}=m;let y;if((0,S.f8)(v)){const e=100*Number(h)/Number(v);y={SlotType:"log",Used:Number(h),Total:Number(v),UsagePercent:e,Severity:(0,k.SW)(e),SlotData:{LogUsedSize:h,LogTotalSize:v,SystemSize:f}}}const j=c.map((e=>(0,w.WT)({...e,NodeId:p})));j.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const N=j.map((e=>{var t;const s=Math.max((0,k.SW)(e.AllocatedPercent),e.Severity||0);return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:s,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let I=[];if(x&&x>N.length){const e=x-N.length;let t=Number(b);if(isNaN(t)){const s=N.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(g)-s-Number(v))/e}I=(0,S._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const C=[...N,...I];return y&&C.length>0&&C.unshift(y),{...m,NodeId:p,NodeHost:a.Host,NodeType:null===(n=a.Roles)||void 0===n?void 0:n[0],NodeDC:a.DC,SlotItems:C}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,k.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var C=s(77506),E=s(90182),T=s(12888),P=s(99936),z=s(13066),A=s(40569),M=s(84375),_=s(84476),O=s(55974),R=s(42829),B=s(48372);const L=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","space-distribution":"Space distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),F=(0,B.g4)("ydb-pDisk-page",{en:L});var $,V,U,H;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},G.apply(null,arguments)}const W=function(e){return i.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),$||($=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),V||(V=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),U||(U=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),H||(H=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var X=s(60712);const J=(0,C.cn)("ydb-pdisk-decommission-button");function q(e){return"DECOMMIT_IMMINENT"===e?F("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?F("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?F("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?F("decommission-dialog-none-warning"):void 0}function Y({decommission:e,onConfirmAction:t,onConfirmActionSuccess:s,buttonDisabled:n,popoverDisabled:o}){const[a,l]=i.useState(),[r,d]=i.useState(!1),[c,u]=i.useState(!1),m=function(e,t){return[{text:F("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:F("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:F("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:F("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,X.jsxs)(i.Fragment,{children:[(0,X.jsx)(A.r,{renderSwitcher:e=>(0,X.jsx)(Q,{popoverDisabled:o,loading:r,disabled:n,...e}),items:m,popupProps:{className:J("popup")}}),(0,X.jsx)(O.g,{visible:Boolean(a),header:F("decommission-dialog-title"),text:q(a),withRetry:c,withCheckBox:!0,retryButtonText:F("decommission-dialog-force-change"),onConfirm:async e=>{d(!0),await t(a,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,S.uk)(5e3);try{await s()}finally{d(!1)}},onConfirmActionError:e=>{u((0,R.D)(e)),d(!1)},onClose:()=>{l(void 0)}})]})}function Q({popoverDisabled:e,...t}){return(0,X.jsx)(M.A,{content:F("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,X.jsxs)(_.$,{view:"normal",className:J("button"),...t,children:[(0,X.jsx)(o.I,{data:W}),F("decommission-button"),(0,X.jsx)(o.I,{data:z.A})]})})}var K=s(47665);function Z(e){return F("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,X.jsx)(K.J,{theme:"danger",size:"m",children:Z(F("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,X.jsx)(K.J,{theme:"warning",size:"m",children:Z(F("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,X.jsx)(K.J,{theme:"normal",size:"m",children:Z(F("decommission-rejected"))}):null}var te=s(88226),se=s(13096),ie=s(60073),ne=s(44294),oe=s(15132),ae=s(67808),le=s(46549),re=s(56839);const de=(0,C.cn)("ydb-pdisk-space-distribution"),ce=40;function ue({data:e}){const{SlotItems:t}=e,{PDiskId:s,NodeId:i}=e,n=ce*((null===t||void 0===t?void 0:t.length)||1);return null!==t&&void 0!==t&&t.length?(0,X.jsx)("div",{className:de(null),style:{height:n,minHeight:n},children:(0,X.jsx)(te.V,{className:de("pdisk-bar"),severity:e.Severity,diskAllocatedPercent:e.AllocatedPercent,content:null===t||void 0===t?void 0:t.map(((e,t)=>(0,X.jsx)(me,{item:e,pDiskId:s,nodeId:i},t))),faded:!0})}):F("no-slots-data")}function me({item:e,pDiskId:t,nodeId:s}){return(0,X.jsx)("div",{className:de("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const n=(0,S.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,S.f8)(t)&&(0,S.f8)(s)?(0,x.yX)(e.SlotData.VDiskSlotId,t,s):void 0;return(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(ne.E,{to:n,children:(0,X.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(he,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,X.jsx)(pe,{title:F("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,X.jsx)(se.P,{popupContent:(0,X.jsx)(ve,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,X.jsx)(te.V,{className:de("slot"),severity:e.Severity,empty:!0,content:(0,X.jsx)(pe,{title:F("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,X.jsxs)("div",{className:de("slot-content"),children:[(0,X.jsxs)("span",{children:[(0,S.f8)(e)?(0,X.jsx)("span",{className:de("slot-id"),children:e}):null,t]}),(0,X.jsx)("span",{className:de("slot-size"),children:(()=>{const[e,t]=(0,re.vX)(s,i);return i?`${e} / ${t}`:e})()})]})}function he({data:e}){const{LogTotalSize:t,LogUsedSize:s,SystemSize:i}=e,n=[{label:F("label.log-size"),value:(0,X.jsx)(oe.O,{value:s,capacity:t,formatValues:re.vX})}];return(0,S.f8)(i)&&n.push({label:F("label.system-size"),value:(0,le.z3)({value:i})}),(0,X.jsx)(ie.z_,{title:F("log"),info:n})}function ve({data:e}){const{Size:t}=e,s=[{label:F("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,X.jsx)(ie.z_,{title:F("empty-slot"),info:s})}const ge=(0,C.cn)("ydb-pdisk-page"),fe={spaceDistribution:"spaceDistribution",storage:"storage"},xe=[{id:fe.spaceDistribution,get title(){return F("space-distribution")}},{id:fe.storage,get title(){return F("storage")}}],be=c.z.nativeEnum(fe).catch(fe.spaceDistribution);function ye(){const e=(0,E.YQ)(),t=(0,T.X)(),s=(0,y.c2)(),c=i.useRef(null),[{nodeId:N,pDiskId:w,activeTab:D}]=(0,d.useQueryParams)({activeTab:d.StringParam,nodeId:d.StringParam,pDiskId:d.StringParam}),C=(0,S.f8)(N)&&(0,S.f8)(w),z=be.parse(D);i.useEffect((()=>{e((0,j.g)("pDisk",{nodeId:N,pDiskId:w}))}),[e,N,w]);const[A]=(0,E.Nt)(),M=C?{nodeId:N,pDiskId:w}:l.hT,_=I.useGetPdiskInfoQuery(M,{pollingInterval:A}),O=_.isFetching&&void 0===_.currentData,R=_.currentData,{NodeHost:B,NodeId:L,NodeType:$,NodeDC:V,Severity:U,DecommitStatus:H}=R||{},G=async e=>{if(C){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:N,pDiskId:w,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},W=async(e,t)=>{if(C){const s=await window.api.pdisk.changePDiskStatus({nodeId:N,pDiskId:w,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},J=()=>{C&&e(b.F.util.invalidateTags([{type:"PDiskData",id:(0,k.r$)(N,w)}]),"StorageData")};return(0,X.jsxs)("div",{className:ge(null),ref:c,children:[(()=>{const e=w?`${F("pdisk")} ${w}`:F("pdisk"),t=B||F("node");return(0,X.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=B?`${F("fqdn")}: ${B}`:void 0,t=L?`${F("node")}: ${L}`:void 0;return(0,X.jsx)(f.B,{loading:O,items:[e,t,$,V],className:ge("meta")})})(),(0,X.jsxs)("div",{className:ge("title"),children:[(0,X.jsx)(m.$,{entityName:F("pdisk"),status:(0,k.XY)(U),id:(0,k.r$)(N,w)}),(0,X.jsx)(ee,{decommission:H})]}),(0,X.jsxs)("div",{className:ge("controls"),children:[(0,X.jsxs)(u.B,{onConfirmAction:G,onConfirmActionSuccess:J,buttonDisabled:!C||!t,buttonView:"normal",dialogHeader:F("restart-pdisk-dialog-header"),dialogText:F("restart-pdisk-dialog-text"),retryButtonText:F("force-restart-pdisk-button"),withPopover:!0,popoverContent:F("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,X.jsx)(o.I,{data:n.A}),F("restart-pdisk-button")]}),s?(0,X.jsx)(Y,{decommission:H,onConfirmAction:W,onConfirmActionSuccess:J,buttonDisabled:!C||!t,popoverDisabled:t}):null]}),_.error?(0,X.jsx)(p.o,{error:_.error}):null,O?(0,X.jsx)(h.y,{className:ge("info"),rows:10}):(0,X.jsx)(g.Q,{pDisk:R,nodeId:N,className:ge("info")}),(0,X.jsx)("div",{className:ge("tabs"),children:(0,X.jsx)(a.t,{size:"l",items:xe,activeTab:z,wrapTo:({id:e},t)=>{const s=C?(0,x.Ck)(w,N,{activeTab:e}):void 0;return(0,X.jsx)(v.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"spaceDistribution":return R?(0,X.jsx)("div",{className:ge("disk-distribution"),children:(0,X.jsx)(ue,{data:R})}):null;case"storage":return C?(0,X.jsx)(P.z,{nodeId:N,pDiskId:w,parentRef:c,viewContext:{nodeId:null===N||void 0===N?void 0:N.toString(),pDiskId:null===w||void 0===w?void 0:w.toString()}}):null;default:return null}})()]})}},70043:(e,t,s)=>{s.d(t,{E:()=>a});var i=s(89169),n=s(66781),o=s(60712);const a=({delay:e=600,className:t})=>{const[s]=(0,n.y)(e);return s?(0,o.jsx)(i.E,{className:t}):null}},74321:(e,t,s)=>{s.d(t,{S:()=>d});var i=s(59284),n=s(64222),o=s(46898);function a(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M4 7h9v3H4z"}))}function l(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,s(69220).om)("checkbox"),d=i.forwardRef((function(e,t){const{size:s="m",indeterminate:d,disabled:c=!1,content:u,children:m,title:p,style:h,className:v,qa:g}=e,{checked:f,inputProps:x}=(0,n.v)(e),b=u||m,y=i.createElement("span",{className:r("indicator")},i.createElement("span",{className:r("icon"),"aria-hidden":!0},d?i.createElement(a,{className:r("icon-svg",{type:"dash"})}):i.createElement(l,{className:r("icon-svg",{type:"tick"})})),i.createElement("input",Object.assign({},x,{className:r("control")})),i.createElement("span",{className:r("outline")}));return i.createElement(o.m,{ref:t,title:p,style:h,size:s,disabled:c,className:r({size:s,disabled:c,indeterminate:d,checked:f},v),qa:g,control:y},b)}))},76938:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},89954:(e,t,s)=>{s.d(t,{O:()=>D});var i=s(59284),n=s(45720),o=s(16929),a=s(71153),l=s(18677),r=s(84476),d=s(33705),c=s(67884),u=s(99991),m=s(77506),p=s(48372);const h=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,p.g4)("ydb-shorty-string",{ru:v,en:h});var f=s(60712);const x=(0,m.cn)("kv-shorty-string");function b({value:e="",limit:t=200,strict:s=!1,displayLength:n=!0,render:o=e=>e,onToggle:a,expandLabel:l=g("default_expand_label"),collapseLabel:r=g("default_collapse_label")}){const[d,u]=i.useState(!1),m=(d?r:l)+(n&&!d?g("chars_count",{count:e.length}):""),p=e.length>t+(s?0:m.length),h=d||!p?e:e.slice(0,t-4)+"\xa0...";return(0,f.jsxs)("div",{className:x(),children:[o(h),p?(0,f.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===a||void 0===a||a()},children:m}):null]})}var y=s(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function k(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const N=(0,m.cn)("kv-result-issues"),S=(0,m.cn)("kv-issues"),w=(0,m.cn)("kv-issue");function D({data:e,hideSeverity:t}){const[s,n]=i.useState(!1),o="string"===typeof e||null===e||void 0===e?void 0:e.issues,a=Array.isArray(o)&&o.length>0;return(0,f.jsxs)("div",{className:N(),children:[(0,f.jsxs)("div",{className:N("error-message"),children:[(()=>{let s;if("string"===typeof e)s=e;else{var n,o;const a=k(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);s=(0,f.jsxs)(i.Fragment,{children:[t?null:(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(A,{severity:a})," "]}),(0,f.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.message})]})}return s})(),a&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>n(!s),children:s?"Hide details":"Show details"})]}),a&&s&&(0,f.jsx)(I,{hideSeverity:t,issues:o})]})}function I({issues:e,hideSeverity:t}){const s=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var s;const i=null!==(s=t.severity)&&void 0!==s?s:10;return Math.min(e,i)}),10);return(0,f.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,f.jsx)(C,{hideSeverity:t,issue:e,expanded:e===s},i)))})}function C({issue:e,hideSeverity:t,level:s=0}){const[n,o]=i.useState(!0),a=k(e.severity),l=e.issues,c=Array.isArray(l)&&l.length>0,u=n?"bottom":"right";return(0,f.jsxs)("div",{className:w({leaf:!c,"has-issues":c}),children:[(0,f.jsxs)("div",{className:w("line"),children:[c&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>o(!n),className:w("arrow-toggle"),children:(0,f.jsx)(d.I,{direction:u,size:16})}),t?null:(0,f.jsx)(A,{severity:a}),(0,f.jsx)(E,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:w("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,f.jsx)("div",{className:w("issues"),children:(0,f.jsx)(T,{issues:l,level:s+1,expanded:n})})]})}function E({issue:e}){var t;const s=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:s,column:i}=t;return(0,y.kf)(i)?`${s}:${i}`:`line ${s}`}(e),i=window.ydbEditor,n=()=>(0,f.jsxs)("span",{className:w("message"),children:[s&&(0,f.jsx)("span",{className:w("place-text"),title:"Position",children:s}),(0,f.jsx)("div",{className:w("message-text"),children:(0,f.jsx)(b,{value:e.message,expandLabel:"Show full message"})})]}),{row:o,column:a}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(o)&&i))return n();return(0,f.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:o,column:null!==a&&void 0!==a?a:0};i.setPosition(e),i.revealPositionInCenterIfOutsideViewport(e),i.focus()},view:"primary",children:n()})}function T(e){const{issues:t,level:s,expanded:i}=e;return(0,f.jsx)("div",{className:w("list"),children:t.map(((e,t)=>(0,f.jsx)(C,{issue:e,level:s,expanded:i},t)))})}const P={S_INFO:n.A,S_WARNING:o.A,S_ERROR:a.A,S_FATAL:l.A},z=(0,m.cn)("yql-issue-severity");function A({severity:e}){const t=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:z({severity:t}),children:[(0,f.jsx)(u.I,{className:z("icon"),data:P[e]}),(0,f.jsx)("span",{className:z("title"),children:t})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/68527.1f687bcf.chunk.js b/ydb/core/viewer/monitoring/static/js/68527.1f687bcf.chunk.js new file mode 100644 index 0000000000..29feb385a8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/68527.1f687bcf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[68527],{14352:a=>{function e(a){a.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:a.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}a.exports=e,e.displayName="log",e.aliases=[]},68527:(a,e,t)=>{t.d(e,{default:()=>r});var n=t(14352);const r=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6879.2965a366.chunk.js b/ydb/core/viewer/monitoring/static/js/6879.2965a366.chunk.js deleted file mode 100644 index 3c6aa6b511..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6879.2965a366.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6879],{76879:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_,e){return"W"===e?_+"\u5468":_+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(_,e){var t=100*_+e;return t<600?"\u51cc\u6668":t<900?"\u65e9\u4e0a":t<1100?"\u4e0a\u5348":t<1300?"\u4e2d\u5348":t<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/68818.0e24392e.chunk.js b/ydb/core/viewer/monitoring/static/js/68818.0e24392e.chunk.js new file mode 100644 index 0000000000..a96eabc555 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/68818.0e24392e.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[68818],{26467:t=>{function n(t){!function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},e=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(t){for(var n={},i=0,a=(t=t.split(" ")).length;i<a;i++)n[t[i]]=e[t[i]];return n}n.inside.interpreted.inside.rest=i("macro inline replacement entity"),e["passthrough-block"].inside.rest=i("macro"),e["literal-block"].inside.rest=i("callout"),e.table.inside.rest=i("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),e["other-block"].inside.rest=i("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),e.title.inside.rest=i("macro inline replacement entity"),t.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.value.replace(/&/,"&"))})),t.languages.adoc=t.languages.asciidoc}(t)}t.exports=n,n.displayName="asciidoc",n.aliases=["adoc"]},68818:(t,n,e)=>{e.d(n,{default:()=>a});var i=e(26467);const a=e.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/68821.a96b8277.chunk.js b/ydb/core/viewer/monitoring/static/js/68821.a96b8277.chunk.js new file mode 100644 index 0000000000..5aa658fde4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/68821.a96b8277.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 68821.a96b8277.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[68821],{68821:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Ht,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Ot,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>un,DocumentHighlightAdapter:()=>Jt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>cn,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>qt,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>fn,WorkerManager:()=>Nt,fromPosition:()=>Kt,fromRange:()=>Xt,setupMode:()=>pn,setupMode1:()=>hn,toRange:()=>zt,toTextEdit:()=>Bt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,m,h,p,v,b,_,k,w,y,x,I,E,S,A,C,R,L,T,M,P,D,F,j,N,U,V,O,W,H,K,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,me,he,pe,ve,be,_e,ke,we,ye,xe,Ie,Ee,Se,Ae,Ce,Re,Le,Te,Me,Pe,De,Fe,je,Ne,Ue,Ve,Oe,We,He,Ke,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,mt,ht,pt,vt,bt,_t,kt,wt,yt,xt,It,Et,St,At,Ct,Rt,Lt,Tt,Mt,Pt,Dt,Ft,jt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(h=m||(m={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,h.is=function(e){return"number"===typeof e&&h.MIN_VALUE<=e&&e<=h.MAX_VALUE},(v=p||(p={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(_=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=p.MAX_VALUE),t===Number.MAX_VALUE&&(t=p.MAX_VALUE),{line:e,character:t}},_.is=function(e){let t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.line)&&Ut.uinteger(t.character)},(w=k||(k={})).create=function(e,t,n,r){if(Ut.uinteger(e)&&Ut.uinteger(t)&&Ut.uinteger(n)&&Ut.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},w.is=function(e){let t=e;return Ut.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(x=y||(y={})).create=function(e,t){return{uri:e,range:t}},x.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(Ut.string(t.uri)||Ut.undefined(t.uri))},(E=I||(I={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.targetRange)&&Ut.string(t.targetUri)&&k.is(t.targetSelectionRange)&&(k.is(t.originSelectionRange)||Ut.undefined(t.originSelectionRange))},(A=S||(S={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.numberRange(t.red,0,1)&&Ut.numberRange(t.green,0,1)&&Ut.numberRange(t.blue,0,1)&&Ut.numberRange(t.alpha,0,1)},(R=C||(C={})).create=function(e,t){return{range:e,color:t}},R.is=function(e){const t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&S.is(t.color)},(T=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.undefined(t.textEdit)||B.is(t))&&(Ut.undefined(t.additionalTextEdits)||Ut.typedArray(t.additionalTextEdits,B.is))},(P=M||(M={})).Comment="comment",P.Imports="imports",P.Region="region",(F=D||(D={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ut.defined(n)&&(a.startCharacter=n),Ut.defined(r)&&(a.endCharacter=r),Ut.defined(i)&&(a.kind=i),Ut.defined(o)&&(a.collapsedText=o),a},F.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.startLine)&&Ut.uinteger(t.startLine)&&(Ut.undefined(t.startCharacter)||Ut.uinteger(t.startCharacter))&&(Ut.undefined(t.endCharacter)||Ut.uinteger(t.endCharacter))&&(Ut.undefined(t.kind)||Ut.string(t.kind))},(N=j||(j={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ut.defined(t)&&y.is(t.location)&&Ut.string(t.message)},(V=U||(U={})).Error=1,V.Warning=2,V.Information=3,V.Hint=4,(W=O||(O={})).Unnecessary=1,W.Deprecated=2,(H||(H={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.href)},(X=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ut.defined(n)&&(a.severity=n),Ut.defined(r)&&(a.code=r),Ut.defined(i)&&(a.source=i),Ut.defined(o)&&(a.relatedInformation=o),a},X.is=function(e){var t;let n=e;return Ut.defined(n)&&k.is(n.range)&&Ut.string(n.message)&&(Ut.number(n.severity)||Ut.undefined(n.severity))&&(Ut.integer(n.code)||Ut.string(n.code)||Ut.undefined(n.code))&&(Ut.undefined(n.codeDescription)||Ut.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ut.string(n.source)||Ut.undefined(n.source))&&(Ut.undefined(n.relatedInformation)||Ut.typedArray(n.relatedInformation,j.is))},($=z||(z={})).create=function(e,t,...n){let r={title:e,command:t};return Ut.defined(n)&&n.length>0&&(r.arguments=n),r},$.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.title)&&Ut.string(t.command)},(q=B||(B={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.newText)&&k.is(t.range)},(G=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},G.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ut.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){const t=e;return Ut.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return B.is(t)&&(Q.is(t.annotationId)||J.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ut.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ut.string(t.oldUri)&&Ut.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ut.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ut.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ue||(ue={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ut.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ce||(ce={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.integer(t.version)},(me=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},me.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&(null===t.version||Ut.integer(t.version))},(pe=he||(he={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.string(t.languageId)&&Ut.integer(t.version)&&Ut.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(_e||(_e={})).is=function(e){const t=e;return Ut.objectLiteral(e)&&ve.is(t.kind)&&Ut.string(t.value)},(we=ke||(ke={})).Text=1,we.Method=2,we.Function=3,we.Constructor=4,we.Field=5,we.Variable=6,we.Class=7,we.Interface=8,we.Module=9,we.Property=10,we.Unit=11,we.Value=12,we.Enum=13,we.Keyword=14,we.Snippet=15,we.Color=16,we.File=17,we.Reference=18,we.Folder=19,we.EnumMember=20,we.Constant=21,we.Struct=22,we.Event=23,we.Operator=24,we.TypeParameter=25,(xe=ye||(ye={})).PlainText=1,xe.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Se=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Se.is=function(e){const t=e;return t&&Ut.string(t.newText)&&k.is(t.insert)&&k.is(t.replace)},(Ce=Ae||(Ae={})).asIs=1,Ce.adjustIndentation=2,(Re||(Re={})).is=function(e){const t=e;return t&&(Ut.string(t.detail)||void 0===t.detail)&&(Ut.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Pe=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Pe.is=function(e){const t=e;return Ut.string(t)||Ut.objectLiteral(t)&&Ut.string(t.language)&&Ut.string(t.value)},(De||(De={})).is=function(e){let t=e;return!!t&&Ut.objectLiteral(t)&&(_e.is(t.contents)||Me.is(t.contents)||Ut.typedArray(t.contents,Me.is))&&(void 0===e.range||k.is(e.range))},(Fe||(Fe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t,...n){let r={label:e};return Ut.defined(t)&&(r.documentation=t),Ut.defined(n)?r.parameters=n:r.parameters=[],r},(Ue=Ne||(Ne={})).Text=1,Ue.Read=2,Ue.Write=3,(Ve||(Ve={})).create=function(e,t){let n={range:e};return Ut.number(t)&&(n.kind=t),n},(We=Oe||(Oe={})).File=1,We.Module=2,We.Namespace=3,We.Package=4,We.Class=5,We.Method=6,We.Property=7,We.Field=8,We.Constructor=9,We.Enum=10,We.Interface=11,We.Function=12,We.Variable=13,We.Constant=14,We.String=15,We.Number=16,We.Boolean=17,We.Array=18,We.Object=19,We.Key=20,We.Null=21,We.EnumMember=22,We.Struct=23,We.Event=24,We.Operator=25,We.TypeParameter=26,(He||(He={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Xe||(Xe={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},($e=ze||(ze={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){let t=e;return t&&Ut.string(t.name)&&Ut.number(t.kind)&&k.is(t.range)&&k.is(t.selectionRange)&&(void 0===t.detail||Ut.string(t.detail))&&(void 0===t.deprecated||Ut.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Be||(Be={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Ge=Qe||(Qe={})).Invoked=1,Ge.Automatic=2,(Ye=Je||(Je={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ut.defined(t)&&Ut.typedArray(t.diagnostics,K.is)&&(void 0===t.only||Ut.typedArray(t.only,Ut.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):z.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ut.string(t.title)&&(void 0===t.diagnostics||Ut.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||Ut.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||z.is(t.command))&&(void 0===t.isPreferred||Ut.boolean(t.isPreferred))&&(void 0===t.edit||ue.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ut.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.command)||z.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ut.defined(t)&&Ut.uinteger(t.tabSize)&&Ut.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.target)||Ut.string(t.target))},(ut=st||(st={})).create=function(e,t){return{range:e,parent:t}},ut.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(void 0===t.parent||ut.is(t.parent))},(dt=ct||(ct={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(ht=mt||(mt={})).create=function(e,t){return{range:e,text:t}},ht.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.string(t.text)},(vt=pt||(pt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.boolean(t.caseSensitiveLookup)&&(Ut.string(t.variableName)||void 0===t.variableName)},(_t=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},_t.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&(Ut.string(t.expression)||void 0===t.expression)},(wt=kt||(kt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},wt.is=function(e){const t=e;return Ut.defined(t)&&k.is(e.stoppedLocation)},(xt=yt||(yt={})).Type=1,xt.Parameter=2,xt.is=function(e){return 1===e||2===e},(Et=It||(It={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.location||y.is(t.location))&&(void 0===t.command||z.is(t.command))},(At=St||(St={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ut.objectLiteral(t)&&b.is(t.position)&&(Ut.string(t.label)||Ut.typedArray(t.label,It.is))&&(void 0===t.kind||yt.is(t.kind))&&void 0===t.textEdits||Ut.typedArray(t.textEdits,B.is)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.paddingLeft||Ut.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ut.boolean(t.paddingRight))},(Ct||(Ct={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Rt||(Rt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Tt||(Tt={})).Invoked=0,Mt.Automatic=1,(Pt||(Pt={})).create=function(e,t){return{range:e,text:t}},(Dt||(Dt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Ft||(Ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&f.is(t.uri)&&Ut.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[u++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Vt(e,t,n,r)},e.is=function(e){let t=e;return!!(Ut.defined(t)&&Ut.string(t.uri)&&(Ut.undefined(t.languageId)||Ut.string(t.languageId))&&Ut.uinteger(t.lineCount)&&Ut.func(t.getText)&&Ut.func(t.positionAt)&&Ut.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(jt||(jt={}));var Ut,Vt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ut||(Ut={}));var Ot=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Wt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Wt(e){switch(e){case U.Error:return l.MarkerSeverity.Error;case U.Warning:return l.MarkerSeverity.Warning;case U.Information:return l.MarkerSeverity.Info;case U.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Ht=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:$t(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:zt(e.textEdit.insert),replace:zt(e.textEdit.replace)}:t.range=zt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),e.insertTextFormat===ye.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function zt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function $t(e){const t=l.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function Bt(e){if(e)return{range:zt(e.range),text:e.newText}}var qt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:zt(e.range),contents:Gt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Gt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Jt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:zt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:zt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:zt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:zt(e.location.range),selectionRange:zt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:zt(e.range),selectionRange:zt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Oe.File:return t.File;case Oe.Module:return t.Module;case Oe.Namespace:return t.Namespace;case Oe.Package:return t.Package;case Oe.Class:return t.Class;case Oe.Method:return t.Method;case Oe.Property:return t.Property;case Oe.Field:return t.Field;case Oe.Constructor:return t.Constructor;case Oe.Enum:return t.Enum;case Oe.Interface:return t.Interface;case Oe.Function:return t.Function;case Oe.Variable:return t.Variable;case Oe.Constant:return t.Constant;case Oe.String:return t.String;case Oe.Number:return t.Number;case Oe.Boolean:return t.Boolean;case Oe.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:zt(e.range),url:e.target})))}}))}},un=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}},cn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Xt(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:zt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Xt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=Bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:zt(e.range)}),e=e.parent;return t}))}))}},mn=class extends Ht{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function hn(e){const t=new Nt(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;l.languages.registerCompletionItemProvider(r,new mn(n)),l.languages.registerHoverProvider(r,new qt(n)),l.languages.registerDocumentHighlightProvider(r,new Jt(n)),l.languages.registerLinkProvider(r,new sn(n)),l.languages.registerFoldingRangeProvider(r,new gn(n)),l.languages.registerDocumentSymbolProvider(r,new rn(n)),l.languages.registerSelectionRangeProvider(r,new fn(n)),l.languages.registerRenameProvider(r,new nn(n)),"html"===r&&(l.languages.registerDocumentFormattingEditProvider(r,new un(n)),l.languages.registerDocumentRangeFormattingEditProvider(r,new cn(n)))}function pn(e){const t=[],n=[],r=new Nt(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;bn(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new mn(i))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new qt(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new Jt(i))),r.links&&n.push(l.languages.registerLinkProvider(t,new sn(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new nn(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(i))),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new fn(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new un(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new cn(i)))}(),t.push(vn(n)),vn(t)}function vn(e){return{dispose:()=>bn(e)}}function bn(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/68821.a96b8277.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/68821.a96b8277.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/68990.59087cc5.chunk.js b/ydb/core/viewer/monitoring/static/js/68990.59087cc5.chunk.js new file mode 100644 index 0000000000..3f67fcd3b0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/68990.59087cc5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[68990],{257:e=>{function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=\u2260\u2264\u2265*+\-\/\xf7^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,\xac\xab\xbb\u300a\u300b]/}}e.exports=t,t.displayName="applescript",t.aliases=[]},68990:(e,t,s)=>{s.d(t,{default:()=>r});var i=s(257);const r=s.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/69220.b99a5ded.chunk.js b/ydb/core/viewer/monitoring/static/js/69220.b99a5ded.chunk.js new file mode 100644 index 0000000000..e55d4b5d5c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/69220.b99a5ded.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[69220],{46839:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"sv",weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var a=e%10;return"["+e+(1===a||2===a?"a":"e")+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/69500.7fbd370c.chunk.js b/ydb/core/viewer/monitoring/static/js/69500.7fbd370c.chunk.js new file mode 100644 index 0000000000..76e001c1e7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/69500.7fbd370c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[69500],{69500:(e,a,i)=>{i.d(a,{default:()=>l});var t=i(87137);const l=i.n(t)()},87137:e=>{function a(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}e.exports=a,a.displayName="gedcom",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/69712.983d0bad.chunk.js b/ydb/core/viewer/monitoring/static/js/69712.983d0bad.chunk.js new file mode 100644 index 0000000000..1e960db3f8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/69712.983d0bad.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[69712],{69712:(e,a,t)=>{t.d(a,{default:()=>s});var i=t(95649);const s=t.n(i)()},95649:e=>{function a(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}e.exports=a,a.displayName="actionscript",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/69854.1159f91a.chunk.js b/ydb/core/viewer/monitoring/static/js/69854.1159f91a.chunk.js new file mode 100644 index 0000000000..d1e889d890 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/69854.1159f91a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[69854],{28329:(e,n,t)=>{var r=t(90160),a=t(51572);function i(e){e.register(r),e.register(a),function(e){e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",(function(n){e.languages["markup-templating"].buildPlaceholders(n,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"erb")}))}(e)}e.exports=i,i.displayName="erb",i.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,r,a,i){if(t.language===r){var s=t.tokenStack=[];t.code=t.code.replace(a,(function(e){if("function"===typeof i&&!i(e))return e;for(var a,o=s.length;-1!==t.code.indexOf(a=n(r,o));)++o;return s[o]=e,a})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,r){if(t.language===r&&t.tokenStack){t.grammar=e.languages[r];var a=0,i=Object.keys(t.tokenStack);!function s(o){for(var l=0;l<o.length&&!(a>=i.length);l++){var u=o[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var g=i[a],d=t.tokenStack[g],c="string"===typeof u?u:u.content,p=n(r,g),b=c.indexOf(p);if(b>-1){++a;var m=c.substring(0,b),f=new e.Token(r,e.tokenize(d,t.grammar),"language-"+r,d),y=c.substring(b+p.length),h=[];m&&h.push.apply(h,s([m])),h.push(f),y&&h.push.apply(h,s([y])),"string"===typeof u?o.splice.apply(o,[l,1].concat(h)):u.content=h}}else u.content&&s(u.content)}return o}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},69854:(e,n,t)=>{t.d(n,{default:()=>a});var r=t(28329);const a=t.n(r)()},90160:e=>{function n(e){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var t="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+t+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+t),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+t),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}e.exports=n,n.displayName="ruby",n.aliases=["rb"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6990.70257b9b.chunk.js b/ydb/core/viewer/monitoring/static/js/6990.70257b9b.chunk.js deleted file mode 100644 index 259700e2fe..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6990.70257b9b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6990],{56990:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>m,default:()=>h});var a,r,i,n,c,d,o,s,f=t(59284);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p({title:e,titleId:l,...t},p){return f.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:230,height:230,fill:"none",ref:p,"aria-labelledby":l},t),e?f.createElement("title",{id:l},e):null,a||(a=f.createElement("path",{fill:"#BECFE0",fillOpacity:.8,fillRule:"evenodd",d:"M169.001 51.666c5.523 0 10 4.477 10 10v21.017l18.197-10.506c4.783-2.762 10.899-1.123 13.66 3.66 2.761 4.783 1.123 10.899-3.66 13.66l-18.197 10.507 18.198 10.506c4.783 2.762 6.421 8.878 3.66 13.661-2.762 4.782-8.877 6.421-13.66 3.66l-18.198-10.506v21.008c0 5.523-4.477 10-10 10-5.522 0-10-4.477-10-10v-21.009l-18.199 10.507c-4.782 2.761-10.898 1.122-13.66-3.66-2.761-4.783-1.122-10.899 3.66-13.661l18.199-10.506-18.198-10.507c-4.783-2.761-6.421-8.877-3.66-13.66 2.762-4.783 8.877-6.422 13.66-3.66l18.198 10.507V61.666c0-5.523 4.478-10 10-10Z",clipRule:"evenodd"})),r||(r=f.createElement("path",{fill:"#E7E7E7",fillRule:"evenodd",d:"M171.523 95.922a11.003 11.003 0 0 1 1.099 8.347l-13.208 49.291c-1.572 5.868-7.604 9.351-13.472 7.778l-25.356-6.794a44.998 44.998 0 0 1-.53 1.929l25.368 6.797c6.935 1.858 14.064-2.257 15.922-9.192l13.207-49.291c.893-3.33.426-6.879-1.298-9.865L155.598 64.34a12.999 12.999 0 0 0-7.894-6.057l-29.972-8.031c-6.935-1.858-14.063 2.257-15.922 9.192l-11.328 42.277c.64.192 1.276.398 1.905.618l11.355-42.377c1.573-5.868 7.604-9.35 13.472-7.778l29.973 8.03a11 11 0 0 1 6.679 5.126l17.657 30.582Z",clipRule:"evenodd"})),i||(i=f.createElement("path",{fill:"#FF5958",fillOpacity:.8,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"})),n||(n=f.createElement("path",{stroke:"#E7E7E7",strokeWidth:2,d:"M60.636 117.734c53.586-33.459-26.868-81.505-36.557-61.318-11.802 24.59 99.395 51.098 128.865-26.3"})),f.createElement("mask",{id:"b",width:89,height:89,x:33,y:99,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},c||(c=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"}))),d||(d=f.createElement("g",{filter:"url(#a)",mask:"url(#b)"},f.createElement("path",{stroke:"#E7E7E7",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.6,strokeWidth:2,d:"M172.389 95.422a12.004 12.004 0 0 1 1.199 9.106l-13.208 49.291c-1.715 6.401-8.295 10.2-14.697 8.485L91.591 147.81c-6.401-1.715-10.2-8.295-8.485-14.697l19.67-73.41c1.716-6.402 8.296-10.2 14.697-8.485l29.972 8.03a11.998 11.998 0 0 1 7.287 5.592l17.657 30.582Z"}))),o||(o=f.createElement("g",{filter:"url(#c)"},f.createElement("path",{fill:"#fff",fillOpacity:.72,fillRule:"evenodd",d:"M80.866 130.432a6.359 6.359 0 1 1-12.284 3.29 6.359 6.359 0 0 1 12.284-3.29Zm4.817-1.291c1.621 6.052-1.97 12.273-8.022 13.894-6.052 1.622-12.273-1.97-13.895-8.022-1.621-6.052 1.97-12.272 8.022-13.894 6.052-1.622 12.273 1.97 13.895 8.022Zm-21.346 32.565c-.154-.577-.009-2.61 2.877-5.555 2.665-2.721 6.917-5.33 12.158-6.734 5.24-1.404 10.227-1.271 13.896-.247 3.971 1.108 5.114 2.796 5.268 3.372a3.116 3.116 0 0 1-2.204 3.817l-28.178 7.55a3.116 3.116 0 0 1-3.817-2.203ZM78.081 144.6c-12.054 3.23-20.238 12.134-18.56 18.396a8.103 8.103 0 0 0 9.924 5.73l28.178-7.55a8.104 8.104 0 0 0 5.73-9.925c-1.678-6.261-13.218-9.881-25.272-6.651Z",clipRule:"evenodd"}))),s||(s=f.createElement("defs",null,f.createElement("filter",{id:"a",width:113.303,height:133.91,x:71.693,y:39.806,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_1301_35376",stdDeviation:5})),f.createElement("filter",{id:"c",width:73.289,height:73.288,x:41.018,y:106.391,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),f.createElement("feOffset",null),f.createElement("feGaussianBlur",{stdDeviation:1.917}),f.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),f.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_1301_35376"})))))}const m=f.forwardRef(p),h=t.p+"static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/69997.3bda423b.chunk.js b/ydb/core/viewer/monitoring/static/js/69997.3bda423b.chunk.js new file mode 100644 index 0000000000..658b138a59 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/69997.3bda423b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[69997],{56748:e=>{function t(e){!function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(t).join("")},n=function(a){for(var o=[],i=0;i<a.length;i++){var r=a[i],s=!1;if("string"!==typeof r&&("tag"===r.type&&r.content[0]&&"tag"===r.content[0].type?"</"===r.content[0].content[0].content?o.length>0&&o[o.length-1].tagName===t(r.content[0].content[1])&&o.pop():"/>"===r.content[r.content.length-1].content||o.push({tagName:t(r.content[0].content[1]),openedBraces:0}):!(o.length>0&&"punctuation"===r.type&&"{"===r.content)||a[i+1]&&"punctuation"===a[i+1].type&&"{"===a[i+1].content||a[i-1]&&"plain-text"===a[i-1].type&&"{"===a[i-1].content?o.length>0&&o[o.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?o[o.length-1].openedBraces--:"comment"!==r.type&&(s=!0):o[o.length-1].openedBraces++),(s||"string"===typeof r)&&o.length>0&&0===o[o.length-1].openedBraces){var l=t(r);i<a.length-1&&("string"===typeof a[i+1]||"plain-text"===a[i+1].type)&&(l+=t(a[i+1]),a.splice(i+1,1)),i>0&&("string"===typeof a[i-1]||"plain-text"===a[i-1].type)&&(l=t(a[i-1])+l,a.splice(i-1,1),i--),/^\s+$/.test(l)?a[i]=l:a[i]=new e.Token("plain-text",l,null,l)}r.content&&"string"!==typeof r.content&&n(r.content)}};e.hooks.add("after-tokenize",(function(e){"xquery"===e.language&&n(e.tokens)}))}(e)}e.exports=t,t.displayName="xquery",t.aliases=[]},69997:(e,t,n)=>{n.d(t,{default:()=>o});var a=n(56748);const o=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/70190.e3137ef3.chunk.js b/ydb/core/viewer/monitoring/static/js/70190.e3137ef3.chunk.js new file mode 100644 index 0000000000..b756902053 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/70190.e3137ef3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[70190],{54431:e=>{function a(e){!function(e){var a=/\{[^\r\n\[\]{}]*\}/,n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:a,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};function t(e){return"string"===typeof e?e:Array.isArray(e)?e.map(t).join(""):t(e.content)}e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:a,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:a,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",(function(e){e.tokens.forEach((function(e){if("string"!==typeof e&&"generic-text"===e.type){var a=t(e);(function(e){for(var a="[]{}",n=[],t=0;t<e.length;t++){var i=e[t],r=a.indexOf(i);if(-1!==r)if(r%2===0)n.push(r+1);else if(n.pop()!==r)return!1}return 0===n.length})(a)||(e.type="bad-line",e.content=a)}}))}))}(e)}e.exports=a,a.displayName="naniscript",a.aliases=[]},70190:(e,a,n)=>{n.d(a,{default:()=>i});var t=n(54431);const i=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/70225.f064b5ad.chunk.js b/ydb/core/viewer/monitoring/static/js/70225.f064b5ad.chunk.js new file mode 100644 index 0000000000..615910b554 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/70225.f064b5ad.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 70225.f064b5ad.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[70225],{70225:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Wt,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Ot,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>un,DocumentHighlightAdapter:()=>Jt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>cn,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>qt,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>fn,WorkerManager:()=>Nt,fromPosition:()=>Ht,fromRange:()=>Xt,setupMode:()=>hn,toRange:()=>zt,toTextEdit:()=>Bt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,h,p,m,v,b,_,k,y,w,x,I,E,C,A,S,R,L,T,M,D,P,F,j,N,U,V,O,K,W,H,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,he,pe,me,ve,be,_e,ke,ye,we,xe,Ie,Ee,Ce,Ae,Se,Re,Le,Te,Me,De,Pe,Fe,je,Ne,Ue,Ve,Oe,Ke,We,He,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,ht,pt,mt,vt,bt,_t,kt,yt,wt,xt,It,Et,Ct,At,St,Rt,Lt,Tt,Mt,Dt,Pt,Ft,jt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(p=h||(h={})).MIN_VALUE=-2147483648,p.MAX_VALUE=2147483647,p.is=function(e){return"number"===typeof e&&p.MIN_VALUE<=e&&e<=p.MAX_VALUE},(v=m||(m={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(_=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},_.is=function(e){let t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.line)&&Ut.uinteger(t.character)},(y=k||(k={})).create=function(e,t,n,r){if(Ut.uinteger(e)&&Ut.uinteger(t)&&Ut.uinteger(n)&&Ut.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},y.is=function(e){let t=e;return Ut.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(x=w||(w={})).create=function(e,t){return{uri:e,range:t}},x.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(Ut.string(t.uri)||Ut.undefined(t.uri))},(E=I||(I={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.targetRange)&&Ut.string(t.targetUri)&&k.is(t.targetSelectionRange)&&(k.is(t.originSelectionRange)||Ut.undefined(t.originSelectionRange))},(A=C||(C={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.numberRange(t.red,0,1)&&Ut.numberRange(t.green,0,1)&&Ut.numberRange(t.blue,0,1)&&Ut.numberRange(t.alpha,0,1)},(R=S||(S={})).create=function(e,t){return{range:e,color:t}},R.is=function(e){const t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&C.is(t.color)},(T=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.undefined(t.textEdit)||B.is(t))&&(Ut.undefined(t.additionalTextEdits)||Ut.typedArray(t.additionalTextEdits,B.is))},(D=M||(M={})).Comment="comment",D.Imports="imports",D.Region="region",(F=P||(P={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ut.defined(n)&&(a.startCharacter=n),Ut.defined(r)&&(a.endCharacter=r),Ut.defined(i)&&(a.kind=i),Ut.defined(o)&&(a.collapsedText=o),a},F.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.startLine)&&Ut.uinteger(t.startLine)&&(Ut.undefined(t.startCharacter)||Ut.uinteger(t.startCharacter))&&(Ut.undefined(t.endCharacter)||Ut.uinteger(t.endCharacter))&&(Ut.undefined(t.kind)||Ut.string(t.kind))},(N=j||(j={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ut.defined(t)&&w.is(t.location)&&Ut.string(t.message)},(V=U||(U={})).Error=1,V.Warning=2,V.Information=3,V.Hint=4,(K=O||(O={})).Unnecessary=1,K.Deprecated=2,(W||(W={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.href)},(X=H||(H={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ut.defined(n)&&(a.severity=n),Ut.defined(r)&&(a.code=r),Ut.defined(i)&&(a.source=i),Ut.defined(o)&&(a.relatedInformation=o),a},X.is=function(e){var t;let n=e;return Ut.defined(n)&&k.is(n.range)&&Ut.string(n.message)&&(Ut.number(n.severity)||Ut.undefined(n.severity))&&(Ut.integer(n.code)||Ut.string(n.code)||Ut.undefined(n.code))&&(Ut.undefined(n.codeDescription)||Ut.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ut.string(n.source)||Ut.undefined(n.source))&&(Ut.undefined(n.relatedInformation)||Ut.typedArray(n.relatedInformation,j.is))},($=z||(z={})).create=function(e,t,...n){let r={title:e,command:t};return Ut.defined(n)&&n.length>0&&(r.arguments=n),r},$.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.title)&&Ut.string(t.command)},(q=B||(B={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.newText)&&k.is(t.range)},(G=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},G.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ut.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){const t=e;return Ut.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return B.is(t)&&(Q.is(t.annotationId)||J.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ut.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ut.string(t.oldUri)&&Ut.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ut.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ut.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ue||(ue={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ut.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ce||(ce={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.integer(t.version)},(he=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&(null===t.version||Ut.integer(t.version))},(me=pe||(pe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.string(t.languageId)&&Ut.integer(t.version)&&Ut.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(_e||(_e={})).is=function(e){const t=e;return Ut.objectLiteral(e)&&ve.is(t.kind)&&Ut.string(t.value)},(ye=ke||(ke={})).Text=1,ye.Method=2,ye.Function=3,ye.Constructor=4,ye.Field=5,ye.Variable=6,ye.Class=7,ye.Interface=8,ye.Module=9,ye.Property=10,ye.Unit=11,ye.Value=12,ye.Enum=13,ye.Keyword=14,ye.Snippet=15,ye.Color=16,ye.File=17,ye.Reference=18,ye.Folder=19,ye.EnumMember=20,ye.Constant=21,ye.Struct=22,ye.Event=23,ye.Operator=24,ye.TypeParameter=25,(xe=we||(we={})).PlainText=1,xe.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Ce=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ce.is=function(e){const t=e;return t&&Ut.string(t.newText)&&k.is(t.insert)&&k.is(t.replace)},(Se=Ae||(Ae={})).asIs=1,Se.adjustIndentation=2,(Re||(Re={})).is=function(e){const t=e;return t&&(Ut.string(t.detail)||void 0===t.detail)&&(Ut.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){const t=e;return Ut.string(t)||Ut.objectLiteral(t)&&Ut.string(t.language)&&Ut.string(t.value)},(Pe||(Pe={})).is=function(e){let t=e;return!!t&&Ut.objectLiteral(t)&&(_e.is(t.contents)||Me.is(t.contents)||Ut.typedArray(t.contents,Me.is))&&(void 0===e.range||k.is(e.range))},(Fe||(Fe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t,...n){let r={label:e};return Ut.defined(t)&&(r.documentation=t),Ut.defined(n)?r.parameters=n:r.parameters=[],r},(Ue=Ne||(Ne={})).Text=1,Ue.Read=2,Ue.Write=3,(Ve||(Ve={})).create=function(e,t){let n={range:e};return Ut.number(t)&&(n.kind=t),n},(Ke=Oe||(Oe={})).File=1,Ke.Module=2,Ke.Namespace=3,Ke.Package=4,Ke.Class=5,Ke.Method=6,Ke.Property=7,Ke.Field=8,Ke.Constructor=9,Ke.Enum=10,Ke.Interface=11,Ke.Function=12,Ke.Variable=13,Ke.Constant=14,Ke.String=15,Ke.Number=16,Ke.Boolean=17,Ke.Array=18,Ke.Object=19,Ke.Key=20,Ke.Null=21,Ke.EnumMember=22,Ke.Struct=23,Ke.Event=24,Ke.Operator=25,Ke.TypeParameter=26,(We||(We={})).Deprecated=1,(He||(He={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Xe||(Xe={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},($e=ze||(ze={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){let t=e;return t&&Ut.string(t.name)&&Ut.number(t.kind)&&k.is(t.range)&&k.is(t.selectionRange)&&(void 0===t.detail||Ut.string(t.detail))&&(void 0===t.deprecated||Ut.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Be||(Be={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Ge=Qe||(Qe={})).Invoked=1,Ge.Automatic=2,(Ye=Je||(Je={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ut.defined(t)&&Ut.typedArray(t.diagnostics,H.is)&&(void 0===t.only||Ut.typedArray(t.only,Ut.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):z.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ut.string(t.title)&&(void 0===t.diagnostics||Ut.typedArray(t.diagnostics,H.is))&&(void 0===t.kind||Ut.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||z.is(t.command))&&(void 0===t.isPreferred||Ut.boolean(t.isPreferred))&&(void 0===t.edit||ue.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ut.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.command)||z.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ut.defined(t)&&Ut.uinteger(t.tabSize)&&Ut.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.target)||Ut.string(t.target))},(ut=st||(st={})).create=function(e,t){return{range:e,parent:t}},ut.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(void 0===t.parent||ut.is(t.parent))},(dt=ct||(ct={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(pt=ht||(ht={})).create=function(e,t){return{range:e,text:t}},pt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.string(t.text)},(vt=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.boolean(t.caseSensitiveLookup)&&(Ut.string(t.variableName)||void 0===t.variableName)},(_t=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},_t.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&(Ut.string(t.expression)||void 0===t.expression)},(yt=kt||(kt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},yt.is=function(e){const t=e;return Ut.defined(t)&&k.is(e.stoppedLocation)},(xt=wt||(wt={})).Type=1,xt.Parameter=2,xt.is=function(e){return 1===e||2===e},(Et=It||(It={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.location||w.is(t.location))&&(void 0===t.command||z.is(t.command))},(At=Ct||(Ct={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ut.objectLiteral(t)&&b.is(t.position)&&(Ut.string(t.label)||Ut.typedArray(t.label,It.is))&&(void 0===t.kind||wt.is(t.kind))&&void 0===t.textEdits||Ut.typedArray(t.textEdits,B.is)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.paddingLeft||Ut.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ut.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Rt||(Rt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Tt||(Tt={})).Invoked=0,Mt.Automatic=1,(Dt||(Dt={})).create=function(e,t){return{range:e,text:t}},(Pt||(Pt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Ft||(Ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&f.is(t.uri)&&Ut.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[u++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Vt(e,t,n,r)},e.is=function(e){let t=e;return!!(Ut.defined(t)&&Ut.string(t.uri)&&(Ut.undefined(t.languageId)||Ut.string(t.languageId))&&Ut.uinteger(t.lineCount)&&Ut.func(t.getText)&&Ut.func(t.positionAt)&&Ut.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(jt||(jt={}));var Ut,Vt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ut||(Ut={}));var Ot=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Kt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Kt(e){switch(e){case U.Error:return l.MarkerSeverity.Error;case U.Warning:return l.MarkerSeverity.Warning;case U.Information:return l.MarkerSeverity.Info;case U.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Wt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Ht(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:$t(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:zt(e.textEdit.insert),replace:zt(e.textEdit.replace)}:t.range=zt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Ht(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function zt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function $t(e){const t=l.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function Bt(e){if(e)return{range:zt(e.range),text:e.newText}}var qt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Ht(t)))).then((e=>{if(e)return{range:zt(e.range),contents:Gt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Gt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Jt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Ht(t)))).then((e=>{if(e)return e.map((e=>({range:zt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Ht(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:zt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Ht(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Ht(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:zt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:zt(e.location.range),selectionRange:zt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:zt(e.range),selectionRange:zt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Oe.File:return t.File;case Oe.Module:return t.Module;case Oe.Namespace:return t.Namespace;case Oe.Package:return t.Package;case Oe.Class:return t.Class;case Oe.Method:return t.Method;case Oe.Property:return t.Property;case Oe.Field:return t.Field;case Oe.Constructor:return t.Constructor;case Oe.Enum:return t.Enum;case Oe.Interface:return t.Interface;case Oe.Function:return t.Function;case Oe.Variable:return t.Variable;case Oe.Constant:return t.Constant;case Oe.String:return t.String;case Oe.Number:return t.Number;case Oe.Boolean:return t.Boolean;case Oe.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:zt(e.range),url:e.target})))}}))}},un=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}},cn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Xt(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:zt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Xt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=Bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Ht)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:zt(e.range)}),e=e.parent;return t}))}))}};function hn(e){const t=[],n=[],r=new Nt(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;mn(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Wt(i,["/","-",":"]))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new qt(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new Jt(i))),r.definitions&&n.push(l.languages.registerDefinitionProvider(t,new Zt(i))),r.references&&n.push(l.languages.registerReferenceProvider(t,new tn(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new nn(i))),r.colors&&n.push(l.languages.registerColorProvider(t,new ln(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(i))),r.diagnostics&&n.push(new Ot(t,i,e.onDidChange)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new fn(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new un(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new cn(i)))}(),t.push(pn(n)),pn(t)}function pn(e){return{dispose:()=>mn(e)}}function mn(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/70225.f064b5ad.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/70225.f064b5ad.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/70289.b63d5fb8.chunk.js b/ydb/core/viewer/monitoring/static/js/70289.b63d5fb8.chunk.js new file mode 100644 index 0000000000..c263ef9bfb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/70289.b63d5fb8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[70289],{70289:(a,s,e)=>{e.d(s,{default:()=>l});const l=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/70695.3af812a3.chunk.js b/ydb/core/viewer/monitoring/static/js/70695.3af812a3.chunk.js new file mode 100644 index 0000000000..d93e7d9e5f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/70695.3af812a3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[70695],{70586:e=>{function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}e.exports=t,t.displayName="turtle",t.aliases=[]},70695:(e,t,a)=>{a.d(t,{default:()=>i});var n=a(70586);const i=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/70858.35d686d1.chunk.js b/ydb/core/viewer/monitoring/static/js/70858.35d686d1.chunk.js new file mode 100644 index 0000000000..4da7e75b7c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/70858.35d686d1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[70858],{50621:e=>{function d(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}e.exports=d,d.displayName="rip",d.aliases=[]},70858:(e,d,t)=>{t.d(d,{default:()=>b});var r=t(50621);const b=t.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/710.87e9f2e0.chunk.js b/ydb/core/viewer/monitoring/static/js/710.87e9f2e0.chunk.js deleted file mode 100644 index 7a72cc9989..0000000000 --- a/ydb/core/viewer/monitoring/static/js/710.87e9f2e0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[710],{40710:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"uz",weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),weekStart:1,weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"%s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71107.d2d26409.chunk.js b/ydb/core/viewer/monitoring/static/js/71107.d2d26409.chunk.js new file mode 100644 index 0000000000..930239031b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71107.d2d26409.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71107],{51498:e=>{function a(e){!function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var a=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:a,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:a,operator:s,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}e.exports=a,a.displayName="sass",a.aliases=[]},71107:(e,a,s)=>{s.d(a,{default:()=>n});var t=s(51498);const n=s.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js b/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js deleted file mode 100644 index 3e98dfae0e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7118.ce0cd05f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7118],{57118:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71266.6ba99b0a.chunk.js b/ydb/core/viewer/monitoring/static/js/71266.6ba99b0a.chunk.js new file mode 100644 index 0000000000..46e31182ce --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71266.6ba99b0a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71266],{71266:(e,a,t)=>{t.d(a,{default:()=>n});var i=t(82087);const n=t.n(i)()},82087:e=>{function a(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}e.exports=a,a.displayName="editorconfig",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js b/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js deleted file mode 100644 index e23ff7ae6e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7148.ef54cd41.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7148],{27148:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71486.3e01f058.chunk.js b/ydb/core/viewer/monitoring/static/js/71486.3e01f058.chunk.js new file mode 100644 index 0000000000..b9db54d940 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71486.3e01f058.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71486],{71486:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"sd",weekdays:"\u0622\u0686\u0631_\u0633\u0648\u0645\u0631_\u0627\u06b1\u0627\u0631\u0648_\u0627\u0631\u0628\u0639_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639_\u0687\u0646\u0687\u0631".split("_"),months:"\u062c\u0646\u0648\u0631\u064a_\u0641\u064a\u0628\u0631\u0648\u0631\u064a_\u0645\u0627\u0631\u0686_\u0627\u067e\u0631\u064a\u0644_\u0645\u0626\u064a_\u062c\u0648\u0646_\u062c\u0648\u0644\u0627\u0621\u0650_\u0622\u06af\u0633\u067d_\u0633\u064a\u067e\u067d\u0645\u0628\u0631_\u0622\u06aa\u067d\u0648\u0628\u0631_\u0646\u0648\u0645\u0628\u0631_\u068a\u0633\u0645\u0628\u0631".split("_"),weekStart:1,weekdaysShort:"\u0622\u0686\u0631_\u0633\u0648\u0645\u0631_\u0627\u06b1\u0627\u0631\u0648_\u0627\u0631\u0628\u0639_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639_\u0687\u0646\u0687\u0631".split("_"),monthsShort:"\u062c\u0646\u0648\u0631\u064a_\u0641\u064a\u0628\u0631\u0648\u0631\u064a_\u0645\u0627\u0631\u0686_\u0627\u067e\u0631\u064a\u0644_\u0645\u0626\u064a_\u062c\u0648\u0646_\u062c\u0648\u0644\u0627\u0621\u0650_\u0622\u06af\u0633\u067d_\u0633\u064a\u067e\u067d\u0645\u0628\u0631_\u0622\u06aa\u067d\u0648\u0628\u0631_\u0646\u0648\u0645\u0628\u0631_\u068a\u0633\u0645\u0628\u0631".split("_"),weekdaysMin:"\u0622\u0686\u0631_\u0633\u0648\u0645\u0631_\u0627\u06b1\u0627\u0631\u0648_\u0627\u0631\u0628\u0639_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639_\u0687\u0646\u0687\u0631".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71515.2280d42d.chunk.js b/ydb/core/viewer/monitoring/static/js/71515.2280d42d.chunk.js new file mode 100644 index 0000000000..2f47861cf8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71515.2280d42d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71515],{71515:(e,n,d)=>{d.d(n,{default:()=>t});var a=d(76064);const t=d.n(a)()},76064:e=>{function n(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=n,n.displayName="lua",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71588.5c21e822.chunk.js b/ydb/core/viewer/monitoring/static/js/71588.5c21e822.chunk.js new file mode 100644 index 0000000000..819e3fd07b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71588.5c21e822.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71588],{68987:n=>{function t(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",(function(n){if("graphql"===n.language)for(var t=n.tokens.filter((function(n){return"string"!==typeof n&&"comment"!==n.type&&"scalar"!==n.type})),e=0;e<t.length;){var a=t[e++];if("keyword"===a.type&&"mutation"===a.content){var i=[];if(c(["definition-mutation","punctuation"])&&"("===l(1).content){e+=2;var r=b(/^\($/,/^\)$/);if(-1===r)continue;for(;e<r;e++){var o=l(0);"variable"===o.type&&(f(o,"variable-input"),i.push(o.content))}e=r+1}if(c(["punctuation","property-query"])&&"{"===l(0).content&&(e++,f(l(0),"property-mutation"),i.length>0)){var s=b(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=e;u<s;u++){var p=t[u];"variable"===p.type&&i.indexOf(p.content)>=0&&f(p,"variable-input")}}}}function l(n){return t[e+n]}function c(n,t){t=t||0;for(var e=0;e<n.length;e++){var a=l(e+t);if(!a||a.type!==n[e])return!1}return!0}function b(n,a){for(var i=1,r=e;r<t.length;r++){var o=t[r],s=o.content;if("punctuation"===o.type&&"string"===typeof s)if(n.test(s))i++;else if(a.test(s)&&0===--i)return r}return-1}function f(n,t){var e=n.alias;e?Array.isArray(e)||(n.alias=e=[e]):n.alias=e=[],e.push(t)}}))}n.exports=t,t.displayName="graphql",t.aliases=[]},71588:(n,t,e)=>{e.d(t,{default:()=>i});var a=e(68987);const i=e.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71672.9d9a091b.chunk.js b/ydb/core/viewer/monitoring/static/js/71672.9d9a091b.chunk.js new file mode 100644 index 0000000000..37527978e6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71672.9d9a091b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71672],{37260:e=>{function s(e){!function(e){function s(e,s,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],a="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:s("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:s("=",r,a),"class-feature":s("\\+",r,a),standard:s("",r,a)}}}}})}(e)}e.exports=s,s.displayName="t4Templating",s.aliases=[]},71672:(e,s,n)=>{n.d(s,{default:()=>a});var r=n(96399);const a=n.n(r)()},90323:e=>{function s(e){!function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+s[+n]+")"}))}function n(e,n,r){return RegExp(s(e,n),r||"")}function r(e,s){for(var n=0;n<s;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=u(t),l=RegExp(u(a+" "+t+" "+i+" "+o)),d=u(t+" "+i+" "+o),p=u(a+" "+t+" "+o),g=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=r(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),w=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,b,k]),v=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,m,k]),$={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,E=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:$},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,x]),lookbehind:!0,inside:$},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,f]),lookbehind:!0,inside:$},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:$},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:$},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,h]),inside:$}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:$},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:$,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:$,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:$}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,f,h,x,l.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,b]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:$},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=S+"|"+_,B=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),T=r(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[B]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,z=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var C=/:[^}\r\n]+/.source,N=r(s(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[B]),2),A=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,C]),F=r(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[R]),2),O=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,C]);function P(s,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,C]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[A]),lookbehind:!0,greedy:!0,inside:P(A,N)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:P(O,F)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=s,s.displayName="csharp",s.aliases=["dotnet","cs"]},96399:(e,s,n)=>{var r=n(37260),a=n(90323);function t(e){e.register(r),e.register(a),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}e.exports=t,t.displayName="t4Cs",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71756.324c49c8.chunk.js b/ydb/core/viewer/monitoring/static/js/71756.324c49c8.chunk.js new file mode 100644 index 0000000000..384ace44a2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71756.324c49c8.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71756],{71756:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tg",weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),weekStart:1,weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/71867.4808e834.chunk.js b/ydb/core/viewer/monitoring/static/js/71867.4808e834.chunk.js new file mode 100644 index 0000000000..6d499b4c84 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/71867.4808e834.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[71867],{8873:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5m5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75",clipRule:"evenodd"}))},12640:(e,t,n)=>{n.d(t,{c:()=>m});var o=n(59284),i=n(14794),s=n(98392),r=n(27145),l=n(67459);var a=n(11507);const c=(0,n(69220).om)("sheet");class u{constructor(e,t){this.x=e,this.y=t,this.timeStamp=Date.now()}}class d{constructor(e=5){this.points=[],this.pointsLen=e,this.clear()}clear(){this.points=new Array(this.pointsLen)}addMovement({x:e,y:t}){this.points.pop(),this.points.unshift(new u(e,t))}getYAcceleration(e=1){const t=this.points[0],n=this.points[e];return t&&n?(t.y-n.y)/Math.pow(t.timeStamp-n.timeStamp,2):0}}let h=[];class p extends o.Component{constructor(){super(...arguments),this.veilRef=o.createRef(),this.sheetRef=o.createRef(),this.sheetTopRef=o.createRef(),this.sheetContentBoxRef=o.createRef(),this.sheetScrollContainerRef=o.createRef(),this.velocityTracker=new d,this.observer=null,this.resizeWindowTimer=null,this.state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1},this.setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,o="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=o},this.getAvailableContentHeight=e=>{const t=.9*window.innerHeight-this.sheetTopHeight;return e>=t?t:e},this.show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))},this.hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))},this.onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})},this.onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))},this.onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})},this.onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const o=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:o}),o<=0||this.setStyles({status:"showing",deltaHeight:o})},this.onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()},this.onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})},this.onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))},this.onVeilClick=()=>{this.setState({veilTouched:!0}),this.hide()},this.onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"===this.veilOpacity&&this.props.hideSheet()},this.onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")},this.onResizeWindow=()=>{this.state.isAnimating||(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))},this.onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})}}componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:i,title:s}=this.props,{deltaY:r,swipeAreaTouched:l,contentTouched:a,veilTouched:u,isAnimating:d}=this.state,h={"with-transition":!r||u},p={"with-transition":h["with-transition"]},v={"without-scroll":r>0&&a||l};return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.veilRef,className:c("veil",h),onClick:d?void 0:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation"}),o.createElement("div",{ref:this.sheetRef,className:c("sheet",p),role:"dialog","aria-modal":"true","aria-label":s},!i&&o.createElement("div",{ref:this.sheetTopRef,className:c("sheet-top")},o.createElement("div",{className:c("sheet-top-resizer")})),o.createElement("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),o.createElement("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",v),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd},o.createElement("div",{ref:this.sheetContentBoxRef,className:c("sheet-content-box")},o.createElement("div",{className:c("sheet-content-box-border-compensation")},o.createElement("div",{className:c("sheet-content",t)},s&&o.createElement("div",{className:c("sheet-content-title")},s),o.createElement("div",null,e)))))))}get veilOpacity(){var e;return(null===(e=this.veilRef.current)||void 0===e?void 0:e.style.opacity)||0}get sheetTopHeight(){var e;return(null===(e=this.sheetTopRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetHeight(){var e;return(null===(e=this.sheetRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetScrollTop(){var e;return(null===(e=this.sheetScrollContainerRef.current)||void 0===e?void 0:e.scrollTop)||0}get sheetContentHeight(){var e;return(null===(e=this.sheetContentBoxRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetContentBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetContentBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetContentBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:o}=this.props;if(t===l.O.BROWSER)return;const i=Object.assign(Object.assign({},n),{hash:e});switch(t){case l.O.IOS:n.hash&&h.push(n.hash),o.replace(i);break;case l.O.ANDROID:o.push(i)}}removeHash(){var e;const{id:t,platform:n,location:o,history:i}=this.props;if(n!==l.O.BROWSER&&o.hash===`#${t}`)switch(n){case l.O.IOS:i.replace(Object.assign(Object.assign({},o),{hash:null!==(e=h.pop())&&void 0!==e?e:""}));break;case l.O.ANDROID:i.goBack()}}shouldClose(e){const{id:t,platform:n,location:o,history:i}=this.props;return n!==l.O.BROWSER&&"POP"===i.action&&e.location.hash!==o.hash&&o.hash!==`#${t}`}}p.defaultProps={id:"sheet",allowHideOnContentScroll:!0};const v=function(e){var t;const n=(i=e).displayName||i.name||"Component";var i;return(t=class extends o.Component{render(){return o.createElement(e,Object.assign({},this.props,{mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation}))}}).displayName=`withMobile(${n})`,t.contextType=a.G,t}(function(e){const t=t=>{const{useHistory:n,useLocation:i}=t,s=(0,r.Tt)(t,["useHistory","useLocation"]);return o.createElement(e,Object.assign({},s,{history:n(),location:i()}))},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:r,title:l,className:a,contentClassName:u,swipeAreaClassName:d,allowHideOnContentScroll:h,hideTopBar:p,qa:m})=>{const[f,g]=o.useState(n),[b,E]=o.useState(n);(0,i.y)({enabled:f}),!b&&n&&g(!0),n!==b&&E(n);return f?o.createElement(s.Z,null,o.createElement("div",{"data-qa":m,className:c(null,a)},o.createElement(v,{id:r,content:e,contentClassName:u,swipeAreaClassName:d,title:l,visible:n,allowHideOnContentScroll:h,hideTopBar:p,hideSheet:()=>{t&&t(),g(!1)}}))):null}},13066:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},19884:(e,t,n)=>{n.d(t,{Y:()=>b});var o=n(59284),i=n(94420),s=n(13066),r=n(905),l=n.n(r),a=n(90826),c=n(99991),u=n(84375),d=n(56353),h=n(89226),p=n(81240);const v=e=>{const{size:t,onClick:n,onMouseEnter:i,onMouseLeave:s,renderIcon:r}=e,l=r?r():o.createElement(c.I,{className:(0,d.Di)("clear"),data:p.A});return o.createElement("button",{className:(0,d.Di)({size:t}),"aria-label":(0,h.A)("label_clear"),onClick:n,onMouseEnter:i,onMouseLeave:s,"data-qa":d.pn.CLEAR,type:"button"},l)};v.displayName="SelectClear";var m=n(98089);const f=(0,n(69220).om)("select-counter");function g({count:e,size:t,disabled:n}){return o.createElement("div",{className:f({size:t})},o.createElement(m.E,{variant:"xl"===t?"body-2":"body-1",color:n?"hint":"primary",className:f("text")},e))}const b=o.forwardRef(((e,t)=>{const{toggleOpen:n,clearValue:r,onKeyDown:p,renderControl:m,view:f,size:b,pin:E,selectedOptionsContent:C,className:w,qa:T,label:y,placeholder:S,isErrorVisible:O,errorMessage:R,open:A,disabled:x,value:N,hasClear:H,popupId:I,selectId:k,activeIndex:z,renderCounter:P,hasCounter:L,title:M}=e,B=Boolean(C),D=Boolean(S&&!B),F=Array.isArray(N)&&!l()(N.filter(Boolean)),W=(0,a.u)(),[Y,_]=o.useState(!1),j={open:A,size:b,pin:E,disabled:x,error:O,"has-clear":H,"no-active":Y,"has-value":F},$={open:A,size:b,view:f,pin:E,disabled:x,error:O},q=o.useCallback((e=>{e&&e.currentTarget!==document.activeElement&&"focus"in e.currentTarget&&e.currentTarget.focus(),n()}),[n]),V=o.useCallback((()=>{_(!0)}),[]),G=o.useCallback((()=>{_(!1)}),[]),K=o.useCallback((()=>{_(!1),r()}),[r]),U=()=>{if(!L)return null;const e=N.length,t=o.createElement(g,{count:e,size:b,disabled:x});return P?P(t,{count:e,size:b,disabled:x}):t},J=e=>{const t=0===N.length;return!H||t||x?null:o.createElement(v,{size:b,onClick:K,onMouseEnter:V,onMouseLeave:G,renderIcon:e.renderIcon})},Z={id:k,role:"combobox","aria-controls":A?I:void 0,"aria-haspopup":"listbox","aria-expanded":A,"aria-activedescendant":void 0===z?void 0:`${I}-item-${z}`,onClick:q,onKeyDown:p,disabled:x};return m?m({onKeyDown:p,onClear:r,onClick:q,renderClear:J,renderCounter:U,ref:t,open:A,popupId:I,selectId:k,activeIndex:z,disabled:x,triggerProps:Z},{value:N}):o.createElement(o.Fragment,null,o.createElement("div",{className:(0,d.ji)(j),role:"group"},o.createElement("button",Object.assign({ref:t,className:(0,d.Zz)($,w),type:"button","data-qa":T,title:M,tabIndex:0},Z),y&&o.createElement("span",{className:(0,d.ji)("label")},y),D&&o.createElement("span",{className:(0,d.ji)("placeholder")},S),B&&o.createElement("span",{className:(0,d.ji)("option-text")},C)),U(),J({}),R&&o.createElement(u.A,{content:R,tooltipId:W},o.createElement("button",{"aria-label":(0,h.A)("label_show-error-info"),"aria-describedby":W,className:(0,d.ji)("error-icon")},o.createElement(c.I,{data:i.A,size:"s"===b?12:16}))),o.createElement(c.I,{className:(0,d.ji)("chevron-icon",{disabled:x}),data:s.A,"aria-hidden":"true"})))}));b.displayName="SelectControl"},24555:(e,t,n)=>{n.d(t,{l:()=>te});var o=n(59284),i=n(359),s=n(85736),r=n(32084),l=n(27145),a=n(92609);var c=n(90826),u=n(51301),d=n(63246),h=n(34379),p=n(46819),v=n(28664),m=n(69220),f=n(56353),g=n(89226);const b=(0,m.om)("select-filter"),E={padding:"4px 4px 0"},C=o.forwardRef(((e,t)=>{const{onChange:n,onKeyDown:i,renderFilter:s,size:r,value:l,placeholder:a,popupId:c,activeIndex:u}=e,d=o.useRef(null);o.useImperativeHandle(t,(()=>({focus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({preventScroll:!0})}})),[]);const h={value:l,placeholder:a,size:1,onKeyDown:i,onChange:e=>{n(e.target.value)},"aria-label":(0,g.A)("label_filter"),"aria-controls":c,"aria-activedescendant":void 0===u?void 0:`${c}-item-${u}`};return s?s({onChange:n,onKeyDown:i,value:l,ref:d,style:E,inputProps:h}):o.createElement("div",{className:b(),style:E},o.createElement(v.k,{controlRef:d,controlProps:{className:b("input"),size:1,"aria-label":h["aria-label"],"aria-controls":h["aria-controls"],"aria-activedescendant":h["aria-activedescendant"]},size:r,value:l,placeholder:a,onUpdate:n,onKeyDown:i,qa:f.pn.FILTER_INPUT}))}));C.displayName="SelectFilter";var w=n(40091);const T=e=>Boolean(e&&"label"in e),y=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:s,mobile:r}=e;let l=r?f.t5:f.KK[o];if(T(i)){const e=0===s?0:f.Vm;return l=""===i.label?0:l,n?n(i,s):l+e}return t?t(i,s):l},S=e=>"string"===typeof e.content?e.content:"string"===typeof e.children?e.children:e.text?e.text:e.value,O=e=>(e=>o.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>o.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push(Object.assign({},t)),e}),[]),R=(e,t)=>t?t.findIndex((t=>{if(T(t))return!1;if(t.disabled)return!1;const n=S(t);return(o=e,new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var o})):-1,A=e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getItems())||[]},x=e=>{const{options:t,filter:n,filterOption:o}=e,i=t.filter((e=>!!T(e)||(o?o(e,n):((e,t)=>{const n=S(e).toLocaleLowerCase(),o=t.toLocaleLowerCase();return-1!==n.indexOf(o)})(e,n))));return i.reduce(((e,t,n)=>{const o=T(t),s=T(e[e.length-1]),r=n===i.length-1;return o&&s&&e.pop(),(!o||o&&!r)&&e.push(t),e}),[])};function N(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,o=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=o+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=o&&t.scrollTo({top:i})}return!0}const H=(0,m.om)("select-list"),I=({option:e,renderOptionGroup:t})=>t?o.createElement("div",{className:H("group-label-custom")},t(e)):o.createElement("div",{className:H("group-label",{empty:""===e.label})},o.createElement("div",{className:H("group-label-content")},e.label));var k=n(25569),z=n(99991);const P=(0,m.om)("select-list"),L=({option:e})=>{const{content:t,children:n,disabled:i,title:s}=e;return o.createElement("span",{title:s,className:P("option-default-label",{disabled:i})},t||n)},M=e=>{const{renderOption:t,value:n,option:i,multiple:s}=e,r=-1!==n.indexOf(i.value),l=t?t(i):o.createElement(L,{option:i});return o.createElement("div",{"data-qa":i.qa,className:P("option",{colored:r&&!s,disabled:i.disabled})},s&&o.createElement(z.I,{className:P("tick-icon",{shown:r&&s}),data:k.A}),l)};var B=n(29322),D=n(74417);const F=e=>{const t=o.useRef(null);return(0,B.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),o.createElement("div",{ref:t,className:(0,f.C1)("loading-indicator")},o.createElement(D.a,null))},W={value:"__SELECT_LIST_ITEM_LOADING__",disabled:!0},Y=o.forwardRef(((e,t)=>{const{onOptionClick:n,renderOption:i,renderOptionGroup:s,getOptionHeight:r,getOptionGroupHeight:l,size:a,flattenOptions:c,value:u,multiple:d,virtualized:h,mobile:p,loading:v,onLoadMore:m,id:g,activeIndex:b,onChangeActive:E}=e,C=o.useMemo((()=>v?[...c,W]:c),[c,v]),T=o.useMemo((()=>c.reduce(((e,t,n)=>("value"in t&&u.includes(t.value)&&e.push(n),e)),[])),[c,u]),S=(e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,options:i,mobile:s}=e;return i.reduce(((e,i,r)=>e+y({getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:r,mobile:s})),0)})({options:C,getOptionHeight:r,getOptionGroupHeight:l,size:a,mobile:p}),O=o.useCallback(((e,t)=>y({getOptionHeight:r,getOptionGroupHeight:l,size:a,option:e,index:t,mobile:p})),[r,l,p,a]),R=o.useCallback(((e,t,n)=>{if("label"in e){const t=s?e=>s(e,{itemHeight:O(e,n)}):void 0;return o.createElement(I,{option:e,renderOptionGroup:t})}if(e.value===W.value)return o.createElement(F,{onIntersect:0===n?void 0:m});const r=i?e=>i(e,{itemHeight:O(e,n)}):void 0;return o.createElement(M,{option:e,value:u,multiple:d,renderOption:r})}),[i,s,u,d,O,m]);return o.createElement(w.B,{ref:t,className:(0,f.C1)({size:a,virtualized:h,mobile:p}),qa:f.pn.LIST,itemClassName:(0,f.C1)("item"),itemHeight:O,itemsHeight:h?S:void 0,items:C,filterable:!1,virtualized:h,renderItem:R,onItemClick:n,selectedItemIndex:T,id:g,role:"listbox",activeItemIndex:b,onChangeActive:E,deactivateOnLeave:!1,onScrollToItem:N})}));Y.displayName="SelectList";const _=(0,m.om)("select-empty-placeholder"),j=({renderEmptyOptions:e,filter:t})=>o.createElement("div",{className:_({empty:!e})},null===e||void 0===e?void 0:e({filter:t}));var $=n(19884),q=n(93628),V=n(794);function G(e){const{name:t,value:n,disabled:i,form:s,onReset:r}=e,l=(0,V.d)({onReset:r,initialValue:n});return!t||i?null:0===n.length?o.createElement("input",{ref:l,type:"hidden",name:t,value:n,form:s,disabled:i}):o.createElement(o.Fragment,null,n.map(((e,n)=>o.createElement("input",{key:e,ref:0===n?l:void 0,value:e,type:"hidden",name:t,form:s,disabled:i}))))}const K=e=>{const{onChange:t,open:n,disabled:s}=e,[r,l]=o.useState(""),[a,c]=o.useState(),u=o.useCallback((e=>{if(clearTimeout(a),e){const e=window.setTimeout((()=>l("")),f.FY);c(e)}}),[a]),d=o.useCallback((e=>{e.stopPropagation();const t=((e,t)=>{const n=1===e.length;let o="";return e===i.D.BACKSPACE&&t.length?o=t.slice(0,t.length-1):n&&(o=(t+e).trim()),o})(e.key,r);r!==t&&(u(t),l(t))}),[u,r]);o.useEffect((()=>(n&&!s?document.addEventListener("keydown",d):n||s||l(""),()=>{n&&!s&&document.removeEventListener("keydown",d)})),[d,n,s]),o.useEffect((()=>(n||clearTimeout(a),()=>clearTimeout(a))),[n,a]),o.useEffect((()=>{t(r)}),[t,r])};function U(e,t){let n=-1;return t.length>0&&(n=e.findIndex((e=>"value"in e&&t.includes(e.value)&&!e.disabled))),-1===n&&(n=e.findIndex((e=>"value"in e&&!e.disabled))),-1===n?void 0:n}var J=n(87924),Z=n.n(J);function X(e){return Z()(e,[f.zJ])}function Q(e){const{filter:t="",filterable:n,filterOption:i}=e,s=o.useMemo((()=>X(e.options)?e.options:(e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0,data:t.data}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,f.zJ,{enumerable:!1,value:{}}),t})(e.options)),[e.options]),r=o.useMemo((()=>n?x({options:s,filter:t,filterOption:i}):s),[t,n,i,s]);return s[f.zJ].filteredOptions=r,s}const ee=({renderFilter:e,renderList:t})=>o.createElement(o.Fragment,null,e(),t()),te=o.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:v,onFilterChange:m,renderControl:g,renderFilter:b,renderOption:E,renderOptionGroup:w,renderSelectedOption:y,renderEmptyOptions:x,renderPopup:N=ee,getOptionHeight:H,getOptionGroupHeight:I,filterOption:k,name:z,form:P,className:L,controlClassName:M,popupClassName:B,qa:D,value:F,defaultValue:W,defaultOpen:_,open:V,label:J,placeholder:te,filterPlaceholder:ne,width:oe,popupWidth:ie,popupPlacement:se,error:re,virtualizationThreshold:le=f.Us,view:ae="normal",size:ce="m",pin:ue="round-round",multiple:de=!1,disabled:he=!1,filterable:pe=!1,filter:ve,disablePortal:me,hasClear:fe=!1,onClose:ge,id:be,hasCounter:Ee,renderCounter:Ce,title:we}=e,Te=(0,p.I)(),[ye,Se]=(0,s.P)(ve,"",m),Oe=o.useRef(null),Re=o.useRef(null),Ae=o.useRef(null),xe=o.useRef(null),Ne=(0,r.N)(t,Re),{value:He,open:Ie,toggleOpen:ke,setValue:ze,handleSelection:Pe,handleClearValue:Le}=(({defaultOpen:e,onClose:t,onOpenChange:n,open:i,value:r,defaultValue:c=[],multiple:u,onUpdate:d,disabled:h})=>{const[p,v]=(0,s.P)(r,c,d),[m,f]=o.useState(),g=(0,a.F)({defaultOpen:e,onClose:t,onOpenChange:n,open:i}),{toggleOpen:b}=g,E=(0,l.Tt)(g,["toggleOpen"]),C=o.useCallback((e=>{h||v(e)}),[v,h]),w=o.useCallback((e=>{if(!p.includes(e.value)){const t=[e.value];C(t)}b(!1)}),[p,C,b]),T=o.useCallback((e=>{const t=p.includes(e.value)?p.filter((t=>t!==e.value)):[...p,e.value];C(t)}),[p,C]),y=o.useCallback((e=>{u?T(e):w(e)}),[u,w,T]),S=o.useCallback((()=>{C([])}),[C]);return Object.assign({value:p,activeIndex:m,setValue:C,handleSelection:y,handleClearValue:S,toggleOpen:b,setActiveIndex:f},E)})({onUpdate:n,value:F,defaultValue:W,defaultOpen:_,multiple:de,open:V,onClose:ge,onOpenChange:v,disabled:he});o.useEffect((()=>{!Ie&&pe&&Te&&setTimeout((()=>{Se("")}),300)}),[Ie,pe,Se,Te]);const Me=Q({options:e.options||O(e.children),filter:ye,filterable:pe,filterOption:k}),Be=function(e){if(!X(e))throw Error("You should use options generated by useSelectOptions hook");return Z()(e,[f.zJ,"filteredOptions"])}(Me),De=((e,t,n)=>{if(0===t.length)return null;const i=e.filter((e=>!T(e))),s=t.reduce(((e,t)=>{const n=i.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>o.createElement(o.Fragment,{key:e.value},n(e,t)))):s.map((e=>S(e))).join(", ")})(Me,He,y),Fe=Be.length>=le,{errorMessage:We,errorPlacement:Ye,validationState:_e}=(0,h.Av)({error:re,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),je=(0,c.u)(),$e="invalid"===_e,qe=$e&&Boolean(We)&&"outside"===Ye,Ve=$e&&Boolean(We)&&"inside"===Ye,Ge=o.useCallback((e=>{var t,n;if(e&&!(null===e||void 0===e?void 0:e.disabled)&&!("label"in e)){if(de){const e=null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t?void 0:t.getActiveItem();null===(n=Ae.current)||void 0===n||n.focus(),"number"===typeof e&&setTimeout((()=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(e,!0)}),50)}Pe(e)}}),[Pe,de]),Ke=o.useCallback((e=>{var t;[i.D.ENTER,i.D.SPACEBAR].includes(e.key)&&Ie&&(e.preventDefault(),e.key===i.D.SPACEBAR&&Ge((e=>{var t;const n=A(e),o=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getActiveItem();return"number"===typeof o?n[o]:void 0})(xe))),[i.D.ARROW_DOWN,i.D.ARROW_UP].includes(e.key)&&!Ie&&(e.preventDefault(),ke()),null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[Ge,Ie,ke]),Ue=o.useCallback((e=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[]),Je=o.useCallback((e=>{var t;if(e){const n=R(e,A(xe));"number"===typeof n&&-1!==n&&(null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(n,!0))}}),[]);K({onChange:Je,open:Ie,disabled:pe}),o.useEffect((()=>{var e;Ie&&pe&&(null===(e=Ae.current)||void 0===e||e.focus())}),[Ie,pe]);const Ze=Object.assign({},"max"===oe&&{width:oe}),Xe={};"number"===typeof oe&&(Xe.width=oe);const Qe=o.useCallback((()=>ke(!1)),[ke]),{onFocus:et,onBlur:tt}=e,{focusWithinProps:nt}=(0,u.R)({onFocusWithin:et,onBlurWithin:o.useCallback((e=>{null===tt||void 0===tt||tt(e),Qe()}),[Qe,tt])}),ot=(0,c.u)(),it=null!==be&&void 0!==be?be:ot,st=`select-popup-${it}`,[rt,lt]=function({options:e,value:t,open:n}){const[i,s]=o.useState((()=>{if(n)return U(e,t)})),[r,l]=o.useState(n);return r!==n&&(l(n),n&&s(U(e,t))),[n&&void 0!==i&&i<e.length&&!e[i].disabled?i:void 0,s]}({options:Be,open:Ie,value:He});return o.createElement("div",Object.assign({ref:Oe,className:(0,f.gm)(Ze,L)},nt,{style:Xe,tabIndex:-1}),o.createElement($.Y,{toggleOpen:ke,hasClear:fe,clearValue:Le,ref:Ne,className:M,qa:D,view:ae,size:ce,pin:ue,label:J,placeholder:te,selectedOptionsContent:De,isErrorVisible:$e,errorMessage:Ve?We:void 0,open:Ie,disabled:he,onKeyDown:Ke,renderControl:g,value:He,popupId:st,selectId:it,activeIndex:rt,hasCounter:de&&Ee,renderCounter:Ce,title:we}),o.createElement(q.t,{ref:Oe,className:B,controlRef:Re,width:ie,open:Ie,handleClose:Qe,disablePortal:me,virtualized:Fe,mobile:Te,placement:se,onAfterClose:pe?()=>{Se("")}:void 0},N({renderFilter:()=>pe?o.createElement(C,{ref:Ae,size:ce,value:ye,placeholder:ne,onChange:Se,onKeyDown:Ue,renderFilter:b,popupId:st,activeIndex:rt}):null,renderList:()=>Be.length||e.loading?o.createElement(Y,{ref:xe,size:ce,value:He,mobile:Te,flattenOptions:Be,multiple:de,virtualized:Fe,onOptionClick:Ge,renderOption:E,renderOptionGroup:w,getOptionHeight:H,getOptionGroupHeight:I,loading:e.loading,onLoadMore:e.onLoadMore,id:st,activeIndex:rt,onChangeActive:lt}):o.createElement(j,{filter:ye,renderEmptyOptions:x})})),o.createElement(d.o,{errorMessage:qe?We:null,errorMessageId:je}),o.createElement(G,{name:z,value:He,disabled:he,form:P,onReset:ze}))}));te.Option=e=>null,te.OptionGroup=e=>null},25569:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}))},33705:(e,t,n)=>{n.d(t,{I:()=>l});var o=n(59284),i=n(13066),s=n(99991);const r=(0,n(69220).om)("arrow-toggle");function l({size:e=16,direction:t="bottom",className:n,qa:l}){return o.createElement("span",{style:{width:e,height:e},className:r({direction:t},n),"data-qa":l},o.createElement(s.I,{data:i.A,size:e}))}},51301:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(59284);class i{constructor(e,t,n={}){var o,i;this.nativeEvent=t,this.target=null!==(o=n.target)&&void 0!==o?o:t.target,this.currentTarget=null!==(i=n.currentTarget)&&void 0!==i?i:t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}}function s(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:s,isDisabled:r}=e,l=o.useRef(!1),a=o.useCallback((e=>{l.current||document.activeElement!==e.target||(l.current=!0,t&&t(e),s&&s(!0))}),[t,s]),c=o.useCallback((e=>{l.current&&(l.current=!1,n&&n(e),s&&s(!1))}),[n,s]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const s=o.useRef(!1),r=o.useRef(null);o.useEffect((()=>{if(n)return;const e=function(){s.current=!1},o=function(e){if(!s.current&&r.current){const n=new FocusEvent("blur",Object.assign(Object.assign({},e),{relatedTarget:e.target,bubbles:!1,cancelable:!1}));t(new i("blur",n,{target:r.current,currentTarget:r.current})),r.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",o),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",o)}}),[n,t]);const l=o.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),r.current=null)}),[t]),a=function(e){const t=o.useRef({isFocused:!1,observer:null});return o.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),o.useCallback((n=>{const o=n.target;if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,o.disabled&&(null===e||void 0===e||e(new i("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",n,{once:!0});const s=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){s.disconnect(),t.current.observer=null;const e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));s.observe(o,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=s}}),[e])}(t),c=o.useCallback((t=>{s.current=!0,r.current=t.target,a(t),e(t)}),[a,e]);return{onBlur:l,onFocus:c}}({onFocus:a,onBlur:c,isDisabled:r});return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},56353:(e,t,n)=>{n.d(t,{C1:()=>l,Di:()=>a,Eq:()=>p,FY:()=>v,KK:()=>c,Us:()=>m,Vm:()=>d,Zz:()=>r,gP:()=>h,gm:()=>i,ji:()=>s,pn:()=>f,t5:()=>u,zJ:()=>g});var o=n(69220);const i=(0,o.om)("select"),s=(0,o.om)("select-control"),r=(0,o.om)("select-control__button"),l=(0,o.om)("select-list"),a=(0,o.om)("select-clear"),c={s:28,m:28,l:32,xl:36},u=32,d=5,h=1,p=100,v=2e3,m=50,f={LIST:"select-list",POPUP:"select-popup",SHEET:"select-sheet",CLEAR:"select-clear",FILTER_INPUT:"select-filter-input"},g=Symbol("flatten")},89226:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(72837);const i=JSON.parse('{"label_clear":"Clear","label_show-error-info":"Show popup with error info","label_filter":"Filter"}'),s=JSON.parse('{"label_clear":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c","label_show-error-info":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0435\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","label_filter":"\u0424\u0438\u043b\u044c\u0442\u0440"}'),r=(0,o.N)({en:i,ru:s},"Select")},92609:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(59284),i=n(85736);const s=e=>{var t;const{onOpenChange:n,onClose:s}=e,r=o.useCallback((e=>{null===n||void 0===n||n(e),!1===e&&s&&s()}),[n,s]),[l,a]=(0,i.P)(e.open,null!==(t=e.defaultOpen)&&void 0!==t&&t,r),c=o.useCallback((e=>{a("boolean"===typeof e?e:!l)}),[l,a]);return{open:l,toggleOpen:c}}},93628:(e,t,n)=>{n.d(t,{t:()=>p});var o=n(59284),i=n(39238),s=n(12640),r=n(69220),l=n(56353);const a=e=>e-2*l.gP,c=(e,t,n)=>{let o=t;return o="number"===typeof e?e:"fit"===e?a(t):((e,t)=>t?e>l.Eq?e:l.Eq:a(e))(t,n),`${o}px`},u=e=>{const{width:t,disablePortal:n,virtualized:o}=e;return[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.rects.reference.width,o);"number"!==typeof t&&"fit"!==t?(e.styles.popper.minWidth=s,e.styles.popper.width=void 0):(e.styles.popper.minWidth=s,e.styles.popper.width=s),e.styles.popper.maxWidth=`max(90vw, ${a(e.rects.reference.width)}px)`,e.modifiersData[`${n}#persistent`]={skip:"number"!==typeof t}},effect:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.elements.reference.offsetWidth,o);"number"!==typeof t&&"fit"!==t?e.elements.popper.style.minWidth=s:(e.elements.popper.style.minWidth=s,e.elements.popper.style.width=s),e.elements.popper.style.maxWidth=`max(90vw, ${e.elements.reference.offsetWidth}px)`}},{name:"preventOverflow",options:{padding:10,altBoundary:n,altAxis:!0}}]},d=(0,r.om)("select-popup"),h=["bottom-start","bottom-end","top-start","top-end"],p=o.forwardRef((({handleClose:e,onAfterClose:t,width:n,open:r,placement:a=h,controlRef:c,children:p,className:v,disablePortal:m,virtualized:f,mobile:g,id:b},E)=>g?o.createElement(s.c,{qa:l.pn.SHEET,className:v,visible:Boolean(r),onClose:e},p):o.createElement(i.z,{contentClassName:d(null,v),qa:l.pn.POPUP,anchorRef:E,placement:a,offset:[l.gP,l.gP],open:r,onClose:e,disablePortal:m,restoreFocus:!0,restoreFocusRef:c,modifiers:u({width:n,disablePortal:m,virtualized:f}),id:b,onTransitionExited:t},p)));p.displayName="SelectPopup"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72020.e0c38d22.chunk.js b/ydb/core/viewer/monitoring/static/js/72020.e0c38d22.chunk.js new file mode 100644 index 0000000000..9ff50fffe7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72020.e0c38d22.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72020],{66089:e=>{function a(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}e.exports=a,a.displayName="matlab",a.aliases=[]},72020:(e,a,n)=>{n.d(a,{default:()=>i});var t=n(66089);const i=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js b/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js deleted file mode 100644 index 99287f1943..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7206.6b7278f5.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7206],{57206:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>s});var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72188.5b48f0f8.chunk.js b/ydb/core/viewer/monitoring/static/js/72188.5b48f0f8.chunk.js new file mode 100644 index 0000000000..a2c7c2402f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72188.5b48f0f8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72188],{66923:e=>{function n(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e.exports=n,n.displayName="dnsZoneFile",n.aliases=[]},72188:(e,n,S)=>{S.d(n,{default:()=>a});var N=S(66923);const a=S.n(N)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7240.a674bc94.chunk.js b/ydb/core/viewer/monitoring/static/js/7240.a674bc94.chunk.js deleted file mode 100644 index 0874551159..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7240.a674bc94.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7240],{17240:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),s={name:"ms-my",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),weekStart:1,weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72401.bef7ab50.chunk.js b/ydb/core/viewer/monitoring/static/js/72401.bef7ab50.chunk.js new file mode 100644 index 0000000000..c60f1165ff --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72401.bef7ab50.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72401],{33164:e=>{function r(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}e.exports=r,r.displayName="apacheconf",r.aliases=[]},72401:(e,r,i)=>{i.d(r,{default:()=>a});var t=i(33164);const a=i.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72568.9f8b7a4b.chunk.js b/ydb/core/viewer/monitoring/static/js/72568.9f8b7a4b.chunk.js new file mode 100644 index 0000000000..a04b7cd30b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72568.9f8b7a4b.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72568],{72568:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},r={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"},d={name:"bn-bd",weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekStart:0,preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(_){return r[_]}))},postformat:function(_){return _.replace(/\d/g,(function(_){return n[_]}))},ordinal:function(_){var e=["\u0987","\u09b2\u09be","\u09b0\u09be","\u09a0\u09be","\u09b6\u09c7"],t=_%100;return"["+_+(e[(t-20)%10]||e[t]||e[0])+"]"},formats:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6",LL:"D MMMM YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6",LLL:"D MMMM YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY \u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6, A h:mm \u09b8\u09ae\u09df"},meridiem:function(_){return _<4?"\u09b0\u09be\u09a4":_<6?"\u09ad\u09cb\u09b0":_<12?"\u09b8\u0995\u09be\u09b2":_<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<18?"\u09ac\u09bf\u0995\u09be\u09b2":_<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72737.e79b7900.chunk.js b/ydb/core/viewer/monitoring/static/js/72737.e79b7900.chunk.js new file mode 100644 index 0000000000..bf8d81d3ff --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72737.e79b7900.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72737],{72737:(e,o,t)=>{t.d(o,{default:()=>a});var i=t(84358);const a=t.n(i)()},84358:e=>{function o(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}e.exports=o,o.displayName="gml",o.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72775.0e6824d4.chunk.js b/ydb/core/viewer/monitoring/static/js/72775.0e6824d4.chunk.js new file mode 100644 index 0000000000..0f7e778a7a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72775.0e6824d4.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72775],{72775:function(a,_,e){a.exports=function(a){"use strict";function _(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=_(a),t={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(a){return a+"."}};return e.default.locale(t,null,!0),t}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/72788.d00f6565.chunk.js b/ydb/core/viewer/monitoring/static/js/72788.d00f6565.chunk.js new file mode 100644 index 0000000000..5576f7509f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/72788.d00f6565.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[72788],{72788:(e,a,t)=>{t.d(a,{default:()=>n});var r=t(98045);const n=t.n(r)()},98045:e=>{function a(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}e.exports=a,a.displayName="oz",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/730.a22f6f5f.chunk.js b/ydb/core/viewer/monitoring/static/js/730.a22f6f5f.chunk.js deleted file mode 100644 index 667d51a102..0000000000 --- a/ydb/core/viewer/monitoring/static/js/730.a22f6f5f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[730],{40730:function(e){e.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var _=["th","st","nd","rd"],a=e%100;return"["+e+(_[(a-20)%10]||_[a]||_[0])+"]"}}}()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73026.ba38cd34.chunk.js b/ydb/core/viewer/monitoring/static/js/73026.ba38cd34.chunk.js new file mode 100644 index 0000000000..16800c1c51 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73026.ba38cd34.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73026],{42207:e=>{function a(e){!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var a={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(a).forEach((function(d){var n=a[d],i=[];/^\w+$/.test(d)||i.push(/\w+/.exec(d)[0]),"diff"===d&&i.push("bold"),e.languages.diff[d]={pattern:RegExp("^(?:["+n+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(d)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:a})}(e)}e.exports=a,a.displayName="diff",a.aliases=[]},73026:(e,a,d)=>{d.d(a,{default:()=>i});var n=d(42207);const i=d.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73064.b0c26084.chunk.js b/ydb/core/viewer/monitoring/static/js/73064.b0c26084.chunk.js new file mode 100644 index 0000000000..7d76df97e8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73064.b0c26084.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73064],{73064:(a,n,t)=>{t.d(n,{default:()=>s});var e=t(83441);const s=t.n(e)()},83441:a=>{function n(a){a.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},a.languages.g4=a.languages.antlr4}a.exports=n,n.displayName="antlr4",n.aliases=["g4"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73238.abca2b52.chunk.js b/ydb/core/viewer/monitoring/static/js/73238.abca2b52.chunk.js new file mode 100644 index 0000000000..41e6e7bc68 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73238.abca2b52.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73238],{73238:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,k,M=C(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)({}).hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},h.apply(null,arguments)}function Z({title:e,titleId:t,...C},Z){return M.createElement("svg",h({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?M.createElement("title",{id:t},e):null,r||(r=M.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=M.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=M.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=M.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=M.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=M.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=M.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=M.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=M.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=M.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=M.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=M.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),k||(k=M.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=M.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7329.514640a4.chunk.js b/ydb/core/viewer/monitoring/static/js/7329.514640a4.chunk.js deleted file mode 100644 index 0b04f501d5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7329.514640a4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7329],{67329:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>b,default:()=>M});var c,a,h,v,m,n,z,d,i,r,f,s,o,p=t(59284);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},E.apply(null,arguments)}function u({title:e,titleId:l,...t},u){return p.createElement("svg",E({width:349,height:357,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:u,"aria-labelledby":l},t),e?p.createElement("title",{id:l},e):null,c||(c=p.createElement("path",{d:"M275.033 85.83c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#ECF2F9"})),a||(a=p.createElement("path",{d:"M279.233 267.33l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V99.43c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"})),h||(h=p.createElement("path",{d:"M191.333 140.128l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"})),v||(v=p.createElement("path",{d:"M203.433 196.428l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"})),m||(m=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.733 104.63c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.498c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"})),n||(n=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.733 248.231h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"})),z||(z=p.createElement("path",{d:"M340.533 206.43s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"})),d||(d=p.createElement("path",{d:"M337.633 284.332l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"})),i||(i=p.createElement("path",{d:"M313.033 236.931c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"})),r||(r=p.createElement("path",{d:"M308.333 236.93c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"})),f||(f=p.createElement("path",{d:"M21.733 41.629a2 2 0 0 0-4 0h4zm-4 8.2a2 2 0 1 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm-17.8 4a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.2 259.098a2 2 0 0 0-4 0h4zm-4 6.2a2 2 0 1 0 4 0h-4zm4 13.1a2 2 0 0 0-4 0h4zm-4 6.8a2 2 0 1 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"})),s||(s=p.createElement("path",{clipRule:"evenodd",d:"M15.233 326.328c7.18 0 13-5.82 13-13s-5.82-13-13-13-13 5.82-13 13 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=p.createElement("path",{d:"M28.233 311.328a2 2 0 0 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 1 0 4 0h-4zm-17.1 0a2 2 0 1 0 4 0h-4zm4-12.2a2 2 0 0 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"})))}const b=p.forwardRef(u),M=t.p+"static/media/403.6367e52f9464706633f52a2488a41958.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73442.0bbc74fd.chunk.js b/ydb/core/viewer/monitoring/static/js/73442.0bbc74fd.chunk.js new file mode 100644 index 0000000000..0b2b933987 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73442.0bbc74fd.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73442],{73442:(e,t,i)=>{i.d(t,{default:()=>n});var s=i(91713);const n=i.n(s)()},91713:e=>{function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}e.exports=t,t.displayName="mizar",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73478.353da8fe.chunk.js b/ydb/core/viewer/monitoring/static/js/73478.353da8fe.chunk.js new file mode 100644 index 0000000000..c77da81f95 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73478.353da8fe.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 73478.353da8fe.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73478],{73478:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>o});var n={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},o={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/73478.353da8fe.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/73478.353da8fe.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/7348.eac33db2.chunk.js b/ydb/core/viewer/monitoring/static/js/7348.eac33db2.chunk.js deleted file mode 100644 index 46d5035ab6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7348.eac33db2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7348],{67348:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"cv",weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),weekStart:1,weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73534.e63e8bd4.chunk.js b/ydb/core/viewer/monitoring/static/js/73534.e63e8bd4.chunk.js new file mode 100644 index 0000000000..0fd8e6d5d5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73534.e63e8bd4.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 73534.e63e8bd4.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73534],{73534:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"#"}},o={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/73534.e63e8bd4.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/73534.e63e8bd4.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/7357.a518ad9e.chunk.js b/ydb/core/viewer/monitoring/static/js/7357.a518ad9e.chunk.js deleted file mode 100644 index d6278c6888..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7357.a518ad9e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7357],{67357:function(e,t,_){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),a={name:"nb",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"}};return _.default.locale(a,null,!0),a}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7380.38a8eedf.chunk.js b/ydb/core/viewer/monitoring/static/js/7380.38a8eedf.chunk.js deleted file mode 100644 index c005bbd031..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7380.38a8eedf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7380],{37380:function(e,_,o){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=_(e),n={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xba"}};return o.default.locale(n,null,!0),n}(o(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73863.6655927e.chunk.js b/ydb/core/viewer/monitoring/static/js/73863.6655927e.chunk.js new file mode 100644 index 0000000000..44fce80619 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73863.6655927e.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73863],{51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,o,r){if(t.language===a){var i=t.tokenStack=[];t.code=t.code.replace(o,(function(e){if("function"===typeof r&&!r(e))return e;for(var o,u=i.length;-1!==t.code.indexOf(o=n(a,u));)++u;return i[u]=e,o})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var o=0,r=Object.keys(t.tokenStack);!function i(u){for(var c=0;c<u.length&&!(o>=r.length);c++){var l=u[c];if("string"===typeof l||l.content&&"string"===typeof l.content){var s=r[o],g=t.tokenStack[s],p="string"===typeof l?l:l.content,f=n(a,s),d=p.indexOf(f);if(d>-1){++o;var k=p.substring(0,d),h=new e.Token(a,e.tokenize(g,t.grammar),"language-"+a,g),m=p.substring(d+f.length),b=[];k&&b.push.apply(b,i([k])),b.push(h),m&&b.push.apply(b,i([m])),"string"===typeof l?u.splice.apply(u,[c,1].concat(b)):l.content=b}}else l.content&&i(l.content)}return u}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},73863:(e,n,t)=>{t.d(n,{default:()=>o});var a=t(51572);const o=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/73879.9dc10432.chunk.js b/ydb/core/viewer/monitoring/static/js/73879.9dc10432.chunk.js new file mode 100644 index 0000000000..e94f4f849c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/73879.9dc10432.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[73879],{73879:function(e,a,d){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(e),_={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return d.default.locale(_,null,!0),_}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7420.d0c66c34.chunk.js b/ydb/core/viewer/monitoring/static/js/7420.d0c66c34.chunk.js deleted file mode 100644 index b0c4ff8981..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7420.d0c66c34.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7420],{97420:function(a,e,l){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var l=e(a),_={name:"bm",weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),weekStart:1,weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"}};return l.default.locale(_,null,!0),_}(l(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/74324.03761f87.chunk.js b/ydb/core/viewer/monitoring/static/js/74324.03761f87.chunk.js new file mode 100644 index 0000000000..e9ff75c896 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/74324.03761f87.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[74324],{74324:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es-pr",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/74394.3bb376a8.chunk.js b/ydb/core/viewer/monitoring/static/js/74394.3bb376a8.chunk.js new file mode 100644 index 0000000000..c5a8bbd730 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/74394.3bb376a8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[74394],{35271:e=>{function E(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}e.exports=E,E.displayName="cypher",E.aliases=[]},74394:(e,E,n)=>{n.d(E,{default:()=>r});var N=n(35271);const r=n.n(N)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/74729.fa6e7280.chunk.js b/ydb/core/viewer/monitoring/static/js/74729.fa6e7280.chunk.js new file mode 100644 index 0000000000..d37864afbe --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/74729.fa6e7280.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[74729],{74729:(e,d,a)=>{a.d(d,{default:()=>t});var n=a(87298);const t=a.n(n)()},87298:e=>{function d(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}e.exports=d,d.displayName="gcode",d.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/74891.fa3d6f11.chunk.js b/ydb/core/viewer/monitoring/static/js/74891.fa3d6f11.chunk.js new file mode 100644 index 0000000000..1fa3bac682 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/74891.fa3d6f11.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[74891],{74891:function(a,e,_){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=e(a),i={name:"sw",weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekStart:1,ordinal:function(a){return a},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return _.default.locale(i,null,!0),i}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/75510.026d82a2.chunk.js b/ydb/core/viewer/monitoring/static/js/75510.026d82a2.chunk.js new file mode 100644 index 0000000000..a7bb499f83 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/75510.026d82a2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[75510],{3685:(e,a,s)=>{s.d(a,{$:()=>u});var l=s(54090),t=s(77506),r=s(33775),n=s(60712);const o=(0,t.cn)("ydb-entity-page-title");function u({entityName:e,status:a=l.m.Grey,id:s,className:t}){return(0,n.jsxs)("div",{className:o(null,t),children:[(0,n.jsx)("span",{className:o("prefix"),children:e}),(0,n.jsx)(r.k,{className:o("icon"),status:a,size:"s"}),s]})}},42655:(e,a,s)=>{s.d(a,{y:()=>c});var l=s(59284),t=s(89169),r=s(77506),n=s(66781),o=s(60712);const u=(0,r.cn)("ydb-info-viewer-skeleton"),i=()=>(0,o.jsxs)("div",{className:u("label"),children:[(0,o.jsx)(t.E,{className:u("label__text")}),(0,o.jsx)("div",{className:u("label__dots")})]}),c=({rows:e=8,className:a,delay:s=600})=>{const[r]=(0,n.y)(s);let c=(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(i,{}),(0,o.jsx)(t.E,{className:u("value")})]});return r||(c=null),(0,o.jsx)("div",{className:u(null,a),children:[...new Array(e)].map(((e,a)=>(0,o.jsx)("div",{className:u("row"),children:c},`skeleton-row-${a}`)))})}},58389:(e,a,s)=>{s.d(a,{B:()=>p});var l=s(87184),t=s(77506),r=s(90053),n=s(70043),o=s(60712);const u=(0,t.cn)("ydb-page-meta"),i="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:a}){return(0,o.jsx)("div",{className:u("info"),children:a?(0,o.jsx)(n.E,{className:u("skeleton")}):e.filter((e=>Boolean(e))).join(i)})}function p({className:e,...a}){return(0,o.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:u(null,e),children:[(0,o.jsx)(c,{...a}),(0,o.jsx)(r.E,{})]})}},70043:(e,a,s)=>{s.d(a,{E:()=>n});var l=s(89169),t=s(66781),r=s(60712);const n=({delay:e=600,className:a})=>{const[s]=(0,t.y)(e);return s?(0,r.jsx)(l.E,{className:a}):null}},75510:(e,a,s)=>{s.r(a),s.d(a,{StorageGroupPage:()=>M});var l=s(59284),t=s(44992),r=s(61750),n=s(67087),o=s(3685),u=s(44508),i=s(42655),c=s(58389),p=s(87184),d=s(7435),g=s(56839),v=s(73891),m=s(41650),h=s(60073),y=s(15132),b=s(33775),f=s(48372);const x=JSON.parse('{"encryption":"Encryption","overall":"Overall","disk-space":"Disk Space","media-type":"Media Type","erasure-species":"Erasure Species","used-space":"Used Space","usage":"Usage","read-throughput":"Read Throughput","write-throughput":"Write Throughput","yes":"Yes","no":"No","group-generation":"Group Generation","latency":"Latency","allocation-units":"Units","state":"State","missing-disks":"Missing Disks","available":"Available Space","latency-put-tablet-log":"Latency (Put Tablet Log)","latency-put-user-data":"Latency (Put User Data)","latency-get-fast":"Latency (Get Fast)"}'),N=(0,f.g4)("storage-group-info",{en:x});var j=s(60712);function k({data:e,className:a,...s}){const{Encryption:l,Overall:t,DiskSpace:r,MediaType:n,ErasureSpecies:o,Used:u,Limit:i,Usage:c,Read:f,Write:x,GroupGeneration:k,Latency:S,AllocationUnits:w,State:G,MissingDisks:E,Available:L,LatencyPutTabletLogMs:P,LatencyPutUserDataMs:T,LatencyGetFastMs:$}=e||{},_=[];(0,d.f8)(k)&&_.push({label:N("group-generation"),value:k}),(0,d.f8)(o)&&_.push({label:N("erasure-species"),value:o}),(0,d.f8)(n)&&_.push({label:N("media-type"),value:n}),(0,d.f8)(l)&&_.push({label:N("encryption"),value:N(l?"yes":"no")}),(0,d.f8)(t)&&_.push({label:N("overall"),value:(0,j.jsx)(b.k,{status:t})}),(0,d.f8)(G)&&_.push({label:N("state"),value:G}),(0,d.f8)(E)&&_.push({label:N("missing-disks"),value:E});const I=[];return(0,d.f8)(u)&&(0,d.f8)(i)&&I.push({label:N("used-space"),value:(0,j.jsx)(y.O,{value:Number(u),capacity:Number(i),formatValues:g.vX,colorizeProgress:!0})}),(0,d.f8)(L)&&I.push({label:N("available"),value:(0,g.vX)(Number(L))}),(0,d.f8)(c)&&I.push({label:N("usage"),value:`${c.toFixed(2)}%`}),(0,d.f8)(r)&&I.push({label:N("disk-space"),value:(0,j.jsx)(b.k,{status:r})}),(0,d.f8)(S)&&I.push({label:N("latency"),value:(0,j.jsx)(b.k,{status:S})}),(0,d.f8)(P)&&I.push({label:N("latency-put-tablet-log"),value:(0,v.Xo)(P)}),(0,d.f8)(T)&&I.push({label:N("latency-put-user-data"),value:(0,v.Xo)(T)}),(0,d.f8)($)&&I.push({label:N("latency-get-fast"),value:(0,v.Xo)($)}),(0,d.f8)(w)&&I.push({label:N("allocation-units"),value:w}),(0,d.f8)(f)&&I.push({label:N("read-throughput"),value:(0,m.O4)(Number(f))}),(0,d.f8)(x)&&I.push({label:N("write-throughput"),value:(0,m.O4)(Number(x))}),(0,j.jsxs)(p.s,{className:a,gap:2,direction:"row",wrap:!0,children:[(0,j.jsx)(h.z_,{info:_,...s}),(0,j.jsx)(h.z_,{info:I,...s})]})}var S=s(67028),w=s(40174),G=s(10174),E=s(54090),L=s(77506),P=s(90182),T=s(99936);const $=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),_=(0,f.g4)("ydb-storage-group-page",{en:$}),I=(0,L.cn)("ydb-storage-group-page");function M(){var e,a;const s=(0,P.YQ)(),p=l.useRef(null),[{groupId:g}]=(0,n.useQueryParams)({groupId:n.StringParam});l.useEffect((()=>{s((0,w.g)("storageGroup",{groupId:g}))}),[s,g]);const[v]=(0,P.Nt)(),m=(0,S.YA)(),h=(0,S.Pm)(),y=G.S.useGetStorageGroupsInfoQuery((0,d.f8)(g)?{groupId:g,shouldUseGroupsHandler:m,with:"all",fieldsRequired:"all"}:t.hT,{pollingInterval:v,skip:!h}),b=null===(e=y.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],f=y.isFetching&&void 0===b;return(0,j.jsxs)("div",{className:I(null),ref:p,children:[(()=>{const e=g?`${_("storage-group")} ${g}`:_("storage-group");return(0,j.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!g)return null;const e=[`${_("pool-name")}: ${null===b||void 0===b?void 0:b.PoolName}`];return(0,j.jsx)(c.B,{className:I("meta"),loading:f,items:e})})(),(0,j.jsx)(o.$,{className:I("title"),entityName:_("storage-group"),status:(null===b||void 0===b?void 0:b.Overall)||E.m.Grey,id:g}),y.error?(0,j.jsx)(u.o,{error:y.error}):null,f?(0,j.jsx)(i.y,{className:I("info"),rows:10}):(0,j.jsx)(k,{data:b,className:I("info")}),g?(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)("div",{className:I("storage-title"),children:_("storage")}),(0,j.jsx)(T.z,{groupId:g,parentRef:p,viewContext:{groupId:null===g||void 0===g?void 0:g.toString()}})]}):null]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/75523.d65a825f.chunk.js b/ydb/core/viewer/monitoring/static/js/75523.d65a825f.chunk.js new file mode 100644 index 0000000000..a4baeb7056 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/75523.d65a825f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[75523],{54326:(e,t,n)=>{var a=n(93292);function s(e){e.register(a),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}e.exports=s,s.displayName="chaiscript",s.aliases=[]},75523:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(54326);const s=n.n(a)()},89343:e=>{function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},93292:(e,t,n)=>{var a=n(89343);function s(e){e.register(a),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=s,s.displayName="cpp",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js b/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js deleted file mode 100644 index 39a68f42b5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7574.8ac9803d.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7574],{67574:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7579.079e5569.chunk.js b/ydb/core/viewer/monitoring/static/js/7579.079e5569.chunk.js deleted file mode 100644 index 5158e8a251..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7579.079e5569.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7579],{37579:function(_,e,d){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var d=e(_),M={name:"ko",weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),ordinal:function(_){return _+"\uc77c"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},meridiem:function(_){return _<12?"\uc624\uc804":"\uc624\ud6c4"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"}};return d.default.locale(M,null,!0),M}(d(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7605.cdc8f605.chunk.js b/ydb/core/viewer/monitoring/static/js/7605.cdc8f605.chunk.js deleted file mode 100644 index cdfd2ecfdd..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7605.cdc8f605.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7605],{67605:function(e,_,i){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=_(e),n={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return i.default.locale(n,null,!0),n}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7614.00d00ded.chunk.js b/ydb/core/viewer/monitoring/static/js/7614.00d00ded.chunk.js deleted file mode 100644 index 0f27d904e3..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7614.00d00ded.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7614,8868],{28868:(e,o,s)=>{"use strict";s.r(o)},47614:(e,o,s)=>{var r={"./editorBaseApi":73848,"./editorBaseApi.js":73848,"./editorSimpleWorker":16545,"./editorSimpleWorker.js":16545,"./editorWorker":10920,"./editorWorker.js":10920,"./editorWorkerHost":80718,"./editorWorkerHost.js":80718,"./findSectionHeaders":56691,"./findSectionHeaders.js":56691,"./getIconClasses":53068,"./getIconClasses.js":53068,"./languageFeatureDebounce":32500,"./languageFeatureDebounce.js":32500,"./languageFeatures":56942,"./languageFeatures.js":56942,"./languageFeaturesService":76007,"./languageFeaturesService.js":76007,"./languageService":17890,"./languageService.js":17890,"./languagesAssociations":99908,"./languagesAssociations.js":99908,"./languagesRegistry":69259,"./languagesRegistry.js":69259,"./markerDecorations":37550,"./markerDecorations.js":37550,"./markerDecorationsService":30707,"./markerDecorationsService.js":30707,"./model":23750,"./model.js":23750,"./modelService":16363,"./modelService.js":16363,"./resolverService":18938,"./resolverService.js":18938,"./semanticTokensDto":98232,"./semanticTokensDto.js":98232,"./semanticTokensProviderStyling":45538,"./semanticTokensProviderStyling.js":45538,"./semanticTokensStyling":74243,"./semanticTokensStyling.js":74243,"./semanticTokensStylingService":27004,"./semanticTokensStylingService.js":27004,"./textModelSync/textModelSync.impl":47443,"./textModelSync/textModelSync.impl.js":47443,"./textModelSync/textModelSync.protocol":28868,"./textModelSync/textModelSync.protocol.js":28868,"./textResourceConfiguration":90360,"./textResourceConfiguration.js":90360,"./treeSitterParserService":44432,"./treeSitterParserService.js":44432,"./treeViewsDnd":36723,"./treeViewsDnd.js":36723,"./treeViewsDndService":29100,"./treeViewsDndService.js":29100,"./unicodeTextModelHighlighter":74855,"./unicodeTextModelHighlighter.js":74855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":73848,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":73848,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":16545,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":16545,"monaco-editor/esm/vs/editor/common/services/editorWorker":10920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":10920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":80718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":80718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":56691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":56691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":53068,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":53068,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":32500,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":32500,"monaco-editor/esm/vs/editor/common/services/languageFeatures":56942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":56942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":76007,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":76007,"monaco-editor/esm/vs/editor/common/services/languageService":17890,"monaco-editor/esm/vs/editor/common/services/languageService.js":17890,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":99908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":99908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":69259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":69259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":37550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":37550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":30707,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":30707,"monaco-editor/esm/vs/editor/common/services/model":23750,"monaco-editor/esm/vs/editor/common/services/model.js":23750,"monaco-editor/esm/vs/editor/common/services/modelService":16363,"monaco-editor/esm/vs/editor/common/services/modelService.js":16363,"monaco-editor/esm/vs/editor/common/services/resolverService":18938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":18938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":98232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":98232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":45538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":45538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":74243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":74243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":27004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":27004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":47443,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":47443,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":28868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":28868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":90360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":90360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":44432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":44432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":36723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":36723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":29100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":29100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":74855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":74855};function i(e){var o=t(e);return s(o)}function t(e){if(!s.o(r,e)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=t,e.exports=i,i.id=47614}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js b/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js deleted file mode 100644 index 709d1cea20..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7638.5489d672.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7638],{97638:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js b/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js deleted file mode 100644 index c8d2bf5fc4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7642.39707d60.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7642],{77642:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>n,language:()=>o});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03c0","\u212f","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xf7","\u2208","\u2209","\u220b","\u220c","\u2218","\u221a","\u221b","\u2229","\u222a","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228a","\u228b","\u22bb"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/\u03c0|\u212f|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/76603.db4ff761.chunk.js b/ydb/core/viewer/monitoring/static/js/76603.db4ff761.chunk.js new file mode 100644 index 0000000000..6769a66454 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/76603.db4ff761.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[76603],{16210:e=>{function n(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|\u03c0|\ud835\udf0f|\u2107/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|\xb5s|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}e.exports=n,n.displayName="openqasm",n.aliases=["qasm"]},76603:(e,n,t)=>{t.d(n,{default:()=>s});var a=t(16210);const s=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/76879.ff0dd32c.chunk.js b/ydb/core/viewer/monitoring/static/js/76879.ff0dd32c.chunk.js new file mode 100644 index 0000000000..9d613c914a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/76879.ff0dd32c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[76879],{76879:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(_,e){return"W"===e?_+"\u5468":_+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(_,e){var t=100*_+e;return t<600?"\u51cc\u6668":t<900?"\u65e9\u4e0a":t<1100?"\u4e0a\u5348":t<1300?"\u4e2d\u5348":t<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js b/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js deleted file mode 100644 index 60672e428c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7692.af7181c9.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7692],{47692:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>s,language:()=>o});var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7697.44af783d.chunk.js b/ydb/core/viewer/monitoring/static/js/7697.44af783d.chunk.js deleted file mode 100644 index 6d711f47f4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7697.44af783d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7697],{77697:function(e,_,n){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=_(e),a={name:"ht",weekdays:"dimanch_lendi_madi_m\xe8kredi_jedi_vandredi_samdi".split("_"),months:"janvye_fevriye_mas_avril_me_jen_jiy\xe8_out_septanm_okt\xf2b_novanm_desanm".split("_"),weekdaysShort:"dim._len._mad._m\xe8k._jed._van._sam.".split("_"),monthsShort:"jan._fev._mas_avr._me_jen_jiy\xe8._out_sept._okt._nov._des.".split("_"),weekdaysMin:"di_le_ma_m\xe8_je_va_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"nan %s",past:"sa gen %s",s:"k\xe8k segond",m:"yon minit",mm:"%d minit",h:"in\xe8dtan",hh:"%d z\xe8",d:"yon jou",dd:"%d jou",M:"yon mwa",MM:"%d mwa",y:"yon ane",yy:"%d ane"}};return n.default.locale(a,null,!0),a}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js b/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js deleted file mode 100644 index 8a96ca87a9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7718.f897f8ca.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7718],{77718:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>p});var a,o,i=n(80781),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of l(t))m.call(e,o)||o===n||r(e,o,{get:()=>t[o],enumerable:!(a=d(t,o))||a.enumerable});return e},u={};c(u,a=i,"default"),o&&c(o,a,"default");var s={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:u.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:u.languages.IndentAction.Indent}}]},p={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7748.3ec14243.chunk.js b/ydb/core/viewer/monitoring/static/js/7748.3ec14243.chunk.js deleted file mode 100644 index 6a881beddd..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7748.3ec14243.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7748],{97748:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"be",weekdays:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),months:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),weekStart:1,weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/77642.1a976f0c.chunk.js b/ydb/core/viewer/monitoring/static/js/77642.1a976f0c.chunk.js new file mode 100644 index 0000000000..cee592c36a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/77642.1a976f0c.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 77642.1a976f0c.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[77642],{77642:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>n,language:()=>o});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03c0","\u212f","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xf7","\u2208","\u2209","\u220b","\u220c","\u2218","\u221a","\u221b","\u2229","\u222a","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228a","\u228b","\u22bb"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/\u03c0|\u212f|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/77642.1a976f0c.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/77642.1a976f0c.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/77697.23abc7db.chunk.js b/ydb/core/viewer/monitoring/static/js/77697.23abc7db.chunk.js new file mode 100644 index 0000000000..7b52618940 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/77697.23abc7db.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[77697],{77697:function(e,_,n){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=_(e),a={name:"ht",weekdays:"dimanch_lendi_madi_m\xe8kredi_jedi_vandredi_samdi".split("_"),months:"janvye_fevriye_mas_avril_me_jen_jiy\xe8_out_septanm_okt\xf2b_novanm_desanm".split("_"),weekdaysShort:"dim._len._mad._m\xe8k._jed._van._sam.".split("_"),monthsShort:"jan._fev._mas_avr._me_jen_jiy\xe8._out_sept._okt._nov._des.".split("_"),weekdaysMin:"di_le_ma_m\xe8_je_va_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"nan %s",past:"sa gen %s",s:"k\xe8k segond",m:"yon minit",mm:"%d minit",h:"in\xe8dtan",hh:"%d z\xe8",d:"yon jou",dd:"%d jou",M:"yon mwa",MM:"%d mwa",y:"yon ane",yy:"%d ane"}};return n.default.locale(a,null,!0),a}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/77718.38572b28.chunk.js b/ydb/core/viewer/monitoring/static/js/77718.38572b28.chunk.js new file mode 100644 index 0000000000..2e3b2fd6d7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/77718.38572b28.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 77718.38572b28.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[77718],{77718:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>p});var a,o,i=n(80781),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of l(t))m.call(e,o)||o===n||r(e,o,{get:()=>t[o],enumerable:!(a=d(t,o))||a.enumerable});return e},u={};c(u,a=i,"default"),o&&c(o,a,"default");var s={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:u.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:u.languages.IndentAction.Indent}}]},p={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/77718.38572b28.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/77718.38572b28.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/7773.b2d5a51a.chunk.js b/ydb/core/viewer/monitoring/static/js/7773.b2d5a51a.chunk.js new file mode 100644 index 0000000000..f54d45b65d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7773.b2d5a51a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7773],{7773:(e,a,s)=>{s.d(a,{default:()=>d});var u=s(47238);const d=s.n(u)()},47238:e=>{function a(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.exports=a,a.displayName="csv",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/78053.1b2b1602.chunk.js b/ydb/core/viewer/monitoring/static/js/78053.1b2b1602.chunk.js new file mode 100644 index 0000000000..99fd9176ab --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/78053.1b2b1602.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[78053],{78053:function(a,u,_){a.exports=function(a){"use strict";function u(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=u(a),t={name:"rn",weekdays:"Ku wa Mungu_Ku wa Mbere_Ku wa Kabiri_Ku wa Gatatu_Ku wa Kane_Ku wa Gatanu_Ku wa Gatandatu".split("_"),weekdaysShort:"Kngu_Kmbr_Kbri_Ktat_Kkan_Ktan_Kdat".split("_"),weekdaysMin:"K7_K1_K2_K3_K4_K5_K6".split("_"),months:"Nzero_Ruhuhuma_Ntwarante_Ndamukiza_Rusama_Ruhenshi_Mukakaro_Myandagaro_Nyakanga_Gitugutu_Munyonyo_Kigarama".split("_"),monthsShort:"Nzer_Ruhuh_Ntwar_Ndam_Rus_Ruhen_Muk_Myand_Nyak_Git_Muny_Kig".split("_"),weekStart:1,ordinal:function(a){return a},relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/78112.671df87e.chunk.js b/ydb/core/viewer/monitoring/static/js/78112.671df87e.chunk.js new file mode 100644 index 0000000000..e0ee26b102 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/78112.671df87e.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[78112],{11869:s=>{function e(s){s.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},s.languages.shortcode=s.languages.bbcode}s.exports=e,e.displayName="bbcode",e.aliases=["shortcode"]},78112:(s,e,a)=>{a.d(e,{default:()=>n});var t=a(11869);const n=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/78517.bd6413c4.chunk.js b/ydb/core/viewer/monitoring/static/js/78517.bd6413c4.chunk.js new file mode 100644 index 0000000000..e2da057866 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/78517.bd6413c4.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[78517],{78517:function(a,i,_){a.exports=function(a){"use strict";function i(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=i(a),e={name:"ga",weekdays:"D\xe9 Domhnaigh_D\xe9 Luain_D\xe9 M\xe1irt_D\xe9 C\xe9adaoin_D\xe9ardaoin_D\xe9 hAoine_D\xe9 Satharn".split("_"),months:"Ean\xe1ir_Feabhra_M\xe1rta_Aibre\xe1n_Bealtaine_M\xe9itheamh_I\xfail_L\xfanasa_Me\xe1n F\xf3mhair_Deaireadh F\xf3mhair_Samhain_Nollaig".split("_"),weekStart:1,weekdaysShort:"Dom_Lua_M\xe1i_C\xe9a_D\xe9a_hAo_Sat".split("_"),monthsShort:"Ean\xe1_Feab_M\xe1rt_Aibr_Beal_M\xe9it_I\xfail_L\xfana_Me\xe1n_Deai_Samh_Noll".split("_"),weekdaysMin:"Do_Lu_M\xe1_Ce_D\xe9_hA_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xed",y:"bliain",yy:"%d bliain"}};return _.default.locale(e,null,!0),e}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/78710.673d31cf.chunk.js b/ydb/core/viewer/monitoring/static/js/78710.673d31cf.chunk.js new file mode 100644 index 0000000000..53801a9d6d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/78710.673d31cf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[78710],{58081:e=>{function a(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}e.exports=a,a.displayName="nand2tetrisHdl",a.aliases=[]},78710:(e,a,n)=>{n.d(a,{default:()=>d});var b=n(58081);const d=n.n(b)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7878.1f9512c4.chunk.js b/ydb/core/viewer/monitoring/static/js/7878.1f9512c4.chunk.js deleted file mode 100644 index 2222cec1db..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7878.1f9512c4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7878],{47878:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var r={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/78979.e31ea57f.chunk.js b/ydb/core/viewer/monitoring/static/js/78979.e31ea57f.chunk.js new file mode 100644 index 0000000000..637cb1d397 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/78979.e31ea57f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[78979],{78979:(e,t,i)=>{i.r(t),i.d(t,{Adapter:()=>f,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>C,DiagnosticsAdapter:()=>_,DocumentHighlightAdapter:()=>v,FormatAdapter:()=>O,FormatHelper:()=>L,FormatOnTypeAdapter:()=>N,InlayHintsAdapter:()=>R,Kind:()=>F,LibFiles:()=>y,OutlineAdapter:()=>A,QuickInfoAdapter:()=>k,ReferenceAdapter:()=>D,RenameAdapter:()=>K,SignatureHelpAdapter:()=>x,SuggestAdapter:()=>w,WorkerManager:()=>p,flattenDiagnosticMessageText:()=>h,getJavaScriptWorker:()=>V,getTypeScriptWorker:()=>j,setupJavaScript:()=>H,setupTypeScript:()=>E});var s,r,n=i(80781),a=i(24152),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,u=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))d.call(e,r)||r===i||o(e,r,{get:()=>t[r],enumerable:!(s=l(t,r))||s.enumerable});return e},g={};u(g,s=n,"default"),r&&u(r,s,"default");var p=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=g.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(g.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},m={};function h(e,t,i=0){if("string"===typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;e<i;e++)s+=" "}if(s+=e.messageText,i++,e.next)for(const r of e.next)s+=h(r,t,i);return s}function b(e){return e?e.map((e=>e.text)).join(""):""}m["lib.d.ts"]=!0,m["lib.decorators.d.ts"]=!0,m["lib.decorators.legacy.d.ts"]=!0,m["lib.dom.asynciterable.d.ts"]=!0,m["lib.dom.d.ts"]=!0,m["lib.dom.iterable.d.ts"]=!0,m["lib.es2015.collection.d.ts"]=!0,m["lib.es2015.core.d.ts"]=!0,m["lib.es2015.d.ts"]=!0,m["lib.es2015.generator.d.ts"]=!0,m["lib.es2015.iterable.d.ts"]=!0,m["lib.es2015.promise.d.ts"]=!0,m["lib.es2015.proxy.d.ts"]=!0,m["lib.es2015.reflect.d.ts"]=!0,m["lib.es2015.symbol.d.ts"]=!0,m["lib.es2015.symbol.wellknown.d.ts"]=!0,m["lib.es2016.array.include.d.ts"]=!0,m["lib.es2016.d.ts"]=!0,m["lib.es2016.full.d.ts"]=!0,m["lib.es2016.intl.d.ts"]=!0,m["lib.es2017.d.ts"]=!0,m["lib.es2017.date.d.ts"]=!0,m["lib.es2017.full.d.ts"]=!0,m["lib.es2017.intl.d.ts"]=!0,m["lib.es2017.object.d.ts"]=!0,m["lib.es2017.sharedmemory.d.ts"]=!0,m["lib.es2017.string.d.ts"]=!0,m["lib.es2017.typedarrays.d.ts"]=!0,m["lib.es2018.asyncgenerator.d.ts"]=!0,m["lib.es2018.asynciterable.d.ts"]=!0,m["lib.es2018.d.ts"]=!0,m["lib.es2018.full.d.ts"]=!0,m["lib.es2018.intl.d.ts"]=!0,m["lib.es2018.promise.d.ts"]=!0,m["lib.es2018.regexp.d.ts"]=!0,m["lib.es2019.array.d.ts"]=!0,m["lib.es2019.d.ts"]=!0,m["lib.es2019.full.d.ts"]=!0,m["lib.es2019.intl.d.ts"]=!0,m["lib.es2019.object.d.ts"]=!0,m["lib.es2019.string.d.ts"]=!0,m["lib.es2019.symbol.d.ts"]=!0,m["lib.es2020.bigint.d.ts"]=!0,m["lib.es2020.d.ts"]=!0,m["lib.es2020.date.d.ts"]=!0,m["lib.es2020.full.d.ts"]=!0,m["lib.es2020.intl.d.ts"]=!0,m["lib.es2020.number.d.ts"]=!0,m["lib.es2020.promise.d.ts"]=!0,m["lib.es2020.sharedmemory.d.ts"]=!0,m["lib.es2020.string.d.ts"]=!0,m["lib.es2020.symbol.wellknown.d.ts"]=!0,m["lib.es2021.d.ts"]=!0,m["lib.es2021.full.d.ts"]=!0,m["lib.es2021.intl.d.ts"]=!0,m["lib.es2021.promise.d.ts"]=!0,m["lib.es2021.string.d.ts"]=!0,m["lib.es2021.weakref.d.ts"]=!0,m["lib.es2022.array.d.ts"]=!0,m["lib.es2022.d.ts"]=!0,m["lib.es2022.error.d.ts"]=!0,m["lib.es2022.full.d.ts"]=!0,m["lib.es2022.intl.d.ts"]=!0,m["lib.es2022.object.d.ts"]=!0,m["lib.es2022.regexp.d.ts"]=!0,m["lib.es2022.sharedmemory.d.ts"]=!0,m["lib.es2022.string.d.ts"]=!0,m["lib.es2023.array.d.ts"]=!0,m["lib.es2023.collection.d.ts"]=!0,m["lib.es2023.d.ts"]=!0,m["lib.es2023.full.d.ts"]=!0,m["lib.es5.d.ts"]=!0,m["lib.es6.d.ts"]=!0,m["lib.esnext.collection.d.ts"]=!0,m["lib.esnext.d.ts"]=!0,m["lib.esnext.decorators.d.ts"]=!0,m["lib.esnext.disposable.d.ts"]=!0,m["lib.esnext.full.d.ts"]=!0,m["lib.esnext.intl.d.ts"]=!0,m["lib.esnext.object.d.ts"]=!0,m["lib.esnext.promise.d.ts"]=!0,m["lib.scripthost.d.ts"]=!0,m["lib.webworker.asynciterable.d.ts"]=!0,m["lib.webworker.d.ts"]=!0,m["lib.webworker.importscripts.d.ts"]=!0,m["lib.webworker.iterable.d.ts"]=!0;var f=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:r,column:n}=i,{lineNumber:a,column:o}=s;return{startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o}}},y=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!m[e.path.slice(1)])}getOrCreateModel(e){const t=g.Uri.parse(e),i=g.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return g.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const s=a.IF.getExtraLibs()[e];return s?g.editor.createModel(s.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},_=class extends f{constructor(e,t,i,s){super(s),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const r=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let s;const r=e.onDidChangeContent((()=>{clearTimeout(s),s=window.setTimeout(t,500)})),n=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():g.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){r.dispose(),n.dispose(),clearTimeout(s)}},t()},n=e=>{g.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel((e=>r(e)))),this._disposables.push(g.editor.onWillDisposeModel(n)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{n(e.model),r(e.model)}))),this._disposables.push({dispose(){for(const e of g.editor.getModels())n(e)}});const a=()=>{for(const e of g.editor.getModels())n(e),r(e)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),g.editor.getModels().forEach((e=>r(e)))}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:s,noSemanticValidation:r,noSuggestionDiagnostics:n}=this._defaults.getDiagnosticsOptions();s||i.push(t.getSyntacticDiagnostics(e.uri.toString())),r||i.push(t.getSemanticDiagnostics(e.uri.toString())),n||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const a=await Promise.all(i);if(!a||e.isDisposed())return;const o=a.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=o.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?g.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||g.editor.setModelMarkers(e,this._selector,o.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,s=t.length||1,{lineNumber:r,column:n}=e.getPositionAt(i),{lineNumber:a,column:o}=e.getPositionAt(i+s),l=[];return t.reportsUnnecessary&&l.push(g.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(g.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o,message:h(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let s=e;if(t.file&&(s=this._libFiles.getOrCreateModel(t.file.fileName)),!s)return;const r=t.start||0,n=t.length||1,{lineNumber:a,column:o}=s.getPositionAt(r),{lineNumber:l,column:c}=s.getPositionAt(r+n);i.push({resource:s.uri,startLineNumber:a,startColumn:o,endLineNumber:l,endColumn:c,message:h(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return g.MarkerSeverity.Error;case 3:return g.MarkerSeverity.Info;case 0:return g.MarkerSeverity.Warning;case 2:return g.MarkerSeverity.Hint}return g.MarkerSeverity.Info}},w=class e extends f{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,s,r){const n=t.getWordUntilPosition(i),a=new g.Range(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn),o=t.uri,l=t.getOffsetAt(i),c=await this._worker(o);if(t.isDisposed())return;const d=await c.getCompletionsAtPosition(o.toString(),l);if(!d||t.isDisposed())return;return{suggestions:d.entries.map((s=>{let r=a;if(s.replacementSpan){const e=t.getPositionAt(s.replacementSpan.start),i=t.getPositionAt(s.replacementSpan.start+s.replacementSpan.length);r=new g.Range(e.lineNumber,e.column,i.lineNumber,i.column)}const n=[];return void 0!==s.kindModifiers&&-1!==s.kindModifiers.indexOf("deprecated")&&n.push(g.languages.CompletionItemTag.Deprecated),{uri:o,position:i,offset:l,range:r,label:s.name,insertText:s.name,sortText:s.sortText,kind:e.convertKind(s.kind),tags:n}}))}}async resolveCompletionItem(t,i){const s=t,r=s.uri,n=s.position,a=s.offset,o=await this._worker(r),l=await o.getCompletionEntryDetails(r.toString(),a,s.label);return l?{uri:r,position:n,label:l.name,kind:e.convertKind(l.kind),detail:b(l.displayParts),documentation:{value:e.createDocumentationString(l)}}:s}static convertKind(e){switch(e){case F.primitiveType:case F.keyword:return g.languages.CompletionItemKind.Keyword;case F.variable:case F.localVariable:return g.languages.CompletionItemKind.Variable;case F.memberVariable:case F.memberGetAccessor:case F.memberSetAccessor:return g.languages.CompletionItemKind.Field;case F.function:case F.memberFunction:case F.constructSignature:case F.callSignature:case F.indexSignature:return g.languages.CompletionItemKind.Function;case F.enum:return g.languages.CompletionItemKind.Enum;case F.module:return g.languages.CompletionItemKind.Module;case F.class:return g.languages.CompletionItemKind.Class;case F.interface:return g.languages.CompletionItemKind.Interface;case F.warning:return g.languages.CompletionItemKind.File}return g.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=b(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${S(i)}`;return t}};function S(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...s]=e.text;t+=`\`${i.text}\``,s.length>0&&(t+=` \u2014 ${s.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` \u2014 ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` \u2014 ${e.text}`);return t}var x=class e extends f{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case g.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,s,r){const n=t.uri,a=t.getOffsetAt(i),o=await this._worker(n);if(t.isDisposed())return;const l=await o.getSignatureHelpItems(n.toString(),a,{triggerReason:e._toSignatureHelpTriggerReason(r)});if(!l||t.isDisposed())return;const c={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:b(e.documentation)},t.label+=b(e.prefixDisplayParts),e.parameters.forEach(((i,s,r)=>{const n=b(i.displayParts),a={label:n,documentation:{value:b(i.documentation)}};t.label+=n,t.parameters.push(a),s<r.length-1&&(t.label+=b(e.separatorDisplayParts))})),t.label+=b(e.suffixDisplayParts),c.signatures.push(t)})),{value:c,dispose(){}}}},k=class extends f{async provideHover(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getQuickInfoAtPosition(s.toString(),r);if(!a||e.isDisposed())return;const o=b(a.documentation),l=a.tags?a.tags.map((e=>S(e))).join(" \n\n"):"",c=b(a.displayParts);return{range:this._textSpanToRange(e,a.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:o+(l?"\n\n"+l:"")}]}}},v=class extends f{async provideDocumentHighlights(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDocumentHighlights(s.toString(),r,[s.toString()]);return a&&!e.isDisposed()?a.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?g.languages.DocumentHighlightKind.Write:g.languages.DocumentHighlightKind.Text}))))):void 0}},C=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDefinitionAtPosition(s.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const o=[];for(let l of a){const e=this._libFiles.getOrCreateModel(l.fileName);e&&o.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return o}},D=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,s){const r=e.uri,n=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const o=await a.getReferencesAtPosition(r.toString(),n);if(!o||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(o.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let c of o){const e=this._libFiles.getOrCreateModel(c.fileName);e&&l.push({uri:e.uri,range:this._textSpanToRange(e,c.textSpan)})}return l}},A=class extends f{async provideDocumentSymbols(e,t){const i=e.uri,s=await this._worker(i);if(e.isDisposed())return;const r=await s.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const n=(t,i)=>({name:t.text,detail:"",kind:I[t.kind]||g.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>n(e,t.text))),containerName:i});return r.childItems?r.childItems.map((e=>n(e))):[]}},F=class{static{this.unknown=""}static{this.keyword="keyword"}static{this.script="script"}static{this.module="module"}static{this.class="class"}static{this.interface="interface"}static{this.type="type"}static{this.enum="enum"}static{this.variable="var"}static{this.localVariable="local var"}static{this.function="function"}static{this.localFunction="local function"}static{this.memberFunction="method"}static{this.memberGetAccessor="getter"}static{this.memberSetAccessor="setter"}static{this.memberVariable="property"}static{this.constructorImplementation="constructor"}static{this.callSignature="call"}static{this.indexSignature="index"}static{this.constructSignature="construct"}static{this.parameter="parameter"}static{this.typeParameter="type parameter"}static{this.primitiveType="primitive type"}static{this.label="label"}static{this.alias="alias"}static{this.const="const"}static{this.let="let"}static{this.warning="warning"}},I=Object.create(null);I[F.module]=g.languages.SymbolKind.Module,I[F.class]=g.languages.SymbolKind.Class,I[F.enum]=g.languages.SymbolKind.Enum,I[F.interface]=g.languages.SymbolKind.Interface,I[F.memberFunction]=g.languages.SymbolKind.Method,I[F.memberVariable]=g.languages.SymbolKind.Property,I[F.memberGetAccessor]=g.languages.SymbolKind.Property,I[F.memberSetAccessor]=g.languages.SymbolKind.Property,I[F.variable]=g.languages.SymbolKind.Variable,I[F.const]=g.languages.SymbolKind.Variable,I[F.localVariable]=g.languages.SymbolKind.Variable,I[F.variable]=g.languages.SymbolKind.Variable,I[F.function]=g.languages.SymbolKind.Function,I[F.localFunction]=g.languages.SymbolKind.Function;var T,P,L=class extends f{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},O=class extends L{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getFormattingEditsForRange(r.toString(),n,a,L._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},N=class extends L{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,s,r){const n=e.uri,a=e.getOffsetAt(t),o=await this._worker(n);if(e.isDisposed())return;const l=await o.getFormattingEditsAfterKeystroke(n.toString(),a,i,L._convertOptions(s));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends L{async provideCodeActions(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=L._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(r);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(r.toString(),n,a,l,o);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};return{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const s=[];for(const r of i.changes)for(const t of r.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});return{title:i.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},K=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,s){const r=e.uri,n=r.toString(),a=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getRenameInfo(n,a,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await o.findRenameLocations(n,a,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},R=class extends f{async provideInlayHints(e,t,i){const s=e.uri,r=s.toString(),n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(s);if(e.isDisposed())return null;return{hints:(await o.provideInlayHints(r,n,a)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?g.languages.InlayHintKind.Parameter:g.languages.InlayHintKind.Type}};function E(e){P=W(e,"typescript")}function H(e){T=W(e,"javascript")}function V(){return new Promise(((e,t)=>{if(!T)return t("JavaScript not registered!");e(T)}))}function j(){return new Promise(((e,t)=>{if(!P)return t("TypeScript not registered!");e(P)}))}function W(e,t){const i=[],s=[],r=new p(t,e);i.push(r);const n=(...e)=>r.getLanguageServiceWorker(...e),a=new y(n);return function(){const{modeConfiguration:i}=e;B(s),i.completionItems&&s.push(g.languages.registerCompletionItemProvider(t,new w(n))),i.signatureHelp&&s.push(g.languages.registerSignatureHelpProvider(t,new x(n))),i.hovers&&s.push(g.languages.registerHoverProvider(t,new k(n))),i.documentHighlights&&s.push(g.languages.registerDocumentHighlightProvider(t,new v(n))),i.definitions&&s.push(g.languages.registerDefinitionProvider(t,new C(a,n))),i.references&&s.push(g.languages.registerReferenceProvider(t,new D(a,n))),i.documentSymbols&&s.push(g.languages.registerDocumentSymbolProvider(t,new A(n))),i.rename&&s.push(g.languages.registerRenameProvider(t,new K(a,n))),i.documentRangeFormattingEdits&&s.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new O(n))),i.onTypeFormattingEdits&&s.push(g.languages.registerOnTypeFormattingEditProvider(t,new N(n))),i.codeActions&&s.push(g.languages.registerCodeActionProvider(t,new M(n))),i.inlayHints&&s.push(g.languages.registerInlayHintsProvider(t,new R(n))),i.diagnostics&&s.push(new _(a,e,t,n))}(),i.push(function(e){return{dispose:()=>B(e)}}(s)),n}function B(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/79204.b8bc5268.chunk.js b/ydb/core/viewer/monitoring/static/js/79204.b8bc5268.chunk.js new file mode 100644 index 0000000000..13786652c6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79204.b8bc5268.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79204],{79204:(e,a,s)=>{s.d(a,{default:()=>t});var n=s(91973);const t=s.n(n)()},91973:e=>{function a(e){!function(e){var a=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],s=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:a,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":n,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}e.exports=a,a.displayName="dart",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/79247.1bc3dc95.chunk.js b/ydb/core/viewer/monitoring/static/js/79247.1bc3dc95.chunk.js new file mode 100644 index 0000000000..c03243259f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79247.1bc3dc95.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79247],{52602:e=>{function a(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}e.exports=a,a.displayName="cfscript",a.aliases=[]},79247:(e,a,t)=>{t.d(a,{default:()=>i});var n=t(52602);const i=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/79312.17a58c6f.chunk.js b/ydb/core/viewer/monitoring/static/js/79312.17a58c6f.chunk.js new file mode 100644 index 0000000000..c400833dd5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79312.17a58c6f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 79312.17a58c6f.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79312],{79312:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>E});var t={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},E={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/79312.17a58c6f.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/79312.17a58c6f.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/79433.b3b128c9.chunk.js b/ydb/core/viewer/monitoring/static/js/79433.b3b128c9.chunk.js new file mode 100644 index 0000000000..637c3b941c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79433.b3b128c9.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79433],{79433:function(o,e,a){o.exports=function(o){"use strict";function e(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var a=e(o),_={name:"eo",weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_okt_nov_dec".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),ordinal:function(o){return o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"}};return a.default.locale(_,null,!0),_}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js b/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js deleted file mode 100644 index 28511e27b9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7946.3b4cf6fd.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7946],{57946:(e,o,n)=>{n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7962.43ffbad7.chunk.js b/ydb/core/viewer/monitoring/static/js/7962.43ffbad7.chunk.js deleted file mode 100644 index 92b0434ae1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7962.43ffbad7.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7962],{87962:function(e,_,i){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=_(e),n={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(n,null,!0),n}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7970.80caf61d.chunk.js b/ydb/core/viewer/monitoring/static/js/7970.80caf61d.chunk.js deleted file mode 100644 index 9a57868266..0000000000 --- a/ydb/core/viewer/monitoring/static/js/7970.80caf61d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7970],{57970:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),r={name:"hu",weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s m\xfalva",past:"%s",s:function(e,n,t,r){return"n\xe9h\xe1ny m\xe1sodperc"+(r||n?"":"e")},m:function(e,n,t,r){return"egy perc"+(r||n?"":"e")},mm:function(e,n,t,r){return e+" perc"+(r||n?"":"e")},h:function(e,n,t,r){return"egy "+(r||n?"\xf3ra":"\xf3r\xe1ja")},hh:function(e,n,t,r){return e+" "+(r||n?"\xf3ra":"\xf3r\xe1ja")},d:function(e,n,t,r){return"egy "+(r||n?"nap":"napja")},dd:function(e,n,t,r){return e+" "+(r||n?"nap":"napja")},M:function(e,n,t,r){return"egy "+(r||n?"h\xf3nap":"h\xf3napja")},MM:function(e,n,t,r){return e+" "+(r||n?"h\xf3nap":"h\xf3napja")},y:function(e,n,t,r){return"egy "+(r||n?"\xe9v":"\xe9ve")},yy:function(e,n,t,r){return e+" "+(r||n?"\xe9v":"\xe9ve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/79707.def8f77e.chunk.js b/ydb/core/viewer/monitoring/static/js/79707.def8f77e.chunk.js new file mode 100644 index 0000000000..595860f96e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79707.def8f77e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79707],{79707:function(a,e,_){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=e(a),t="sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),s="sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),n=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,i=function(a,e){return n.test(e)?t[a.month()]:s[a.month()]};i.s=s,i.f=t;var o={name:"hr",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),months:i,monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},relativeTime:{future:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(a){return a+"."}};return _.default.locale(o,null,!0),o}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/79842.ef61156d.chunk.js b/ydb/core/viewer/monitoring/static/js/79842.ef61156d.chunk.js new file mode 100644 index 0000000000..7631c1bc6f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79842.ef61156d.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 79842.ef61156d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79842],{79842:(e,r,i)=>{i.r(r),i.d(r,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[[/@identifiersWithDashes/,""],[/(\s)((?:@startingWithDash)+)/,["white","attribute.name"]],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@builtins":"type.identifier","@default":""}}],{include:"@whitespace"},{include:"@strings"},{include:"@parameters"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/@symbols/,"delimiter"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"],[/"/,"string","@dblStringBody"]],stringBody:[[/'/,"string","@popall"],[/./,"string"]],dblStringBody:[[/"/,"string","@popall"],[/./,"string"]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,["constants","white","string.heredoc.delimiter","string.heredoc","string.heredoc.delimiter"]]],parameters:[[/\$\d+/,"variable.predefined"],[/\$\w+/,"variable"],[/\$[*@#?\-$!0_]/,"variable"],[/\$'/,"variable","@parameterBodyQuote"],[/\$"/,"variable","@parameterBodyDoubleQuote"],[/\$\(/,"variable","@parameterBodyParen"],[/\$\{/,"variable","@parameterBodyCurlyBrace"]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[']/,"variable","@pop"]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/["]/,"variable","@pop"]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[)]/,"variable","@pop"]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[}]/,"variable","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/79842.ef61156d.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/79842.ef61156d.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/79972.b465d16f.chunk.js b/ydb/core/viewer/monitoring/static/js/79972.b465d16f.chunk.js new file mode 100644 index 0000000000..f8fbac02a9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/79972.b465d16f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[79972],{70029:e=>{function t(e){!function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],s=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function o(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function p(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function l(t){var n={};n["interpolation-punctuation"]=a;var s=e.tokenize(t,n);if(3===s.length){var i=[1,1];i.push.apply(i,p(s[1],e.languages.javascript,"javascript")),s.splice.apply(s,i)}return new e.Token("interpolation",s,r.alias,t)}function u(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),i=0,u={},c=p(a.map((function(e){if("string"===typeof e)return e;for(var n,a=e.content;-1!==t.indexOf(n=o(i++,r)););return u[n]=a,n})).join(""),n,r),g=Object.keys(u);return i=0,function e(t){for(var n=0;n<t.length;n++){if(i>=g.length)return;var r=t[n];if("string"===typeof r||"string"===typeof r.content){var a=g[i],s="string"===typeof r?r:r.content,o=s.indexOf(a);if(-1!==o){++i;var p=s.substring(0,o),c=l(u[a]),f=s.substring(o+a.length),d=[];if(p&&d.push(p),d.push(c),f){var y=[f];e(y),d.push.apply(d,y)}"string"===typeof r?(t.splice.apply(t,[n,1].concat(d)),n+=d.length-1):r.content=d}}else{var v=r.content;Array.isArray(v)?e(v):e([v])}}}(c),new e.Token(r,c,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function g(e){return"string"===typeof e?e:Array.isArray(e)?e.map(g).join(""):g(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var s=n[r];if("string"!==typeof s){var i=s.content;if(Array.isArray(i))if("template-string"===s.type){var o=i[1];if(3===i.length&&"string"!==typeof o&&"embedded-code"===o.type){var p=g(o),l=o.alias,c=Array.isArray(l)?l[0]:l,f=e.languages[c];if(!f)continue;i[1]=u(p,f,c)}}else t(i);else"string"!==typeof i&&t([i])}}}(t.tokens)}))}(e)}e.exports=t,t.displayName="jsTemplates",t.aliases=[]},79972:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(70029);const a=n.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80017.210d20b7.chunk.js b/ydb/core/viewer/monitoring/static/js/80017.210d20b7.chunk.js new file mode 100644 index 0000000000..603f815c30 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80017.210d20b7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80017],{7396:e=>{function a(e){!function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}e.exports=a,a.displayName="flow",a.aliases=[]},80017:(e,a,n)=>{n.d(a,{default:()=>t});var o=n(7396);const t=n.n(o)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80030.4efa59e1.chunk.js b/ydb/core/viewer/monitoring/static/js/80030.4efa59e1.chunk.js new file mode 100644 index 0000000000..8e1726c8e5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80030.4efa59e1.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 80030.4efa59e1.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80030],{80030:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>r});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},r={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/80030.4efa59e1.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/80030.4efa59e1.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/80067.910ba368.chunk.js b/ydb/core/viewer/monitoring/static/js/80067.910ba368.chunk.js new file mode 100644 index 0000000000..16f2373a57 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80067.910ba368.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80067],{80067:(e,a,t)=>{t.d(a,{default:()=>r});var n=t(92369);const r=t.n(n)()},92369:e=>{function a(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}e.exports=a,a.displayName="vhdl",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8008.da36f479.chunk.js b/ydb/core/viewer/monitoring/static/js/8008.da36f479.chunk.js deleted file mode 100644 index 7ef987eb66..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8008.da36f479.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8008],{48008:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ne",weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),relativeTime:{future:"%s \u092a\u091b\u093f",past:"%s \u0905\u0918\u093f",s:"\u0938\u0947\u0915\u0947\u0928\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u0918\u0928\u094d\u091f\u093e",hh:"%d \u0918\u0928\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},ordinal:function(_){return(""+_).replace(/\d/g,(function(_){return"\u0966\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f"[_]}))},formats:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80108.0334ef65.chunk.js b/ydb/core/viewer/monitoring/static/js/80108.0334ef65.chunk.js new file mode 100644 index 0000000000..10542a02cf --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80108.0334ef65.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80108],{80108:function(a,s,n){a.exports=function(a){"use strict";function s(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var n=s(a),_={name:"tzm-latn",weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekStart:6,weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"}};return n.default.locale(_,null,!0),_}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js b/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js deleted file mode 100644 index a2f74f99b3..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8014.eb9f97f2.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8014],{98014:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>r,language:()=>i});var o=`\\b${"[_a-zA-Z][_a-zA-Z0-9]*"}\\b`,r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},i={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["targetScope","resource","module","param","var","output","for","in","if","existing"],namedLiterals:["true","false","null"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:"(|'|'')[^']",action:{token:"string"}},{regex:"'''",action:{token:"string.quote",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"[^\\\\'$]+",action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:"'",action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:"[ \\t\\r\\n]"},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:"'''",action:{token:"string.quote",next:"@stringVerbatim"}},{regex:"'",action:{token:"string.quote",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:o,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80397.e9187aee.chunk.js b/ydb/core/viewer/monitoring/static/js/80397.e9187aee.chunk.js new file mode 100644 index 0000000000..eeb9719752 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80397.e9187aee.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80397],{80397:(e,r,a)=>{a.d(r,{default:()=>t});var o=a(97416);const t=a.n(o)()},97416:e=>{function r(e){!function(e){function r(e,r,a){return RegExp(function(e,r){return e.replace(/<<(\d+)>>/g,(function(e,a){return r[+a]}))}(e,r),a||"")}var a=/bool|clip|float|int|string|val/.source,o=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[o],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}(e)}e.exports=r,r.displayName="avisynth",r.aliases=["avs"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8053.71be175a.chunk.js b/ydb/core/viewer/monitoring/static/js/8053.71be175a.chunk.js deleted file mode 100644 index ed5ad10b73..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8053.71be175a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8053],{78053:function(a,u,_){a.exports=function(a){"use strict";function u(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=u(a),t={name:"rn",weekdays:"Ku wa Mungu_Ku wa Mbere_Ku wa Kabiri_Ku wa Gatatu_Ku wa Kane_Ku wa Gatanu_Ku wa Gatandatu".split("_"),weekdaysShort:"Kngu_Kmbr_Kbri_Ktat_Kkan_Ktan_Kdat".split("_"),weekdaysMin:"K7_K1_K2_K3_K4_K5_K6".split("_"),months:"Nzero_Ruhuhuma_Ntwarante_Ndamukiza_Rusama_Ruhenshi_Mukakaro_Myandagaro_Nyakanga_Gitugutu_Munyonyo_Kigarama".split("_"),monthsShort:"Nzer_Ruhuh_Ntwar_Ndam_Rus_Ruhen_Muk_Myand_Nyak_Git_Muny_Kig".split("_"),weekStart:1,ordinal:function(a){return a},relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80555.c5181f9f.chunk.js b/ydb/core/viewer/monitoring/static/js/80555.c5181f9f.chunk.js new file mode 100644 index 0000000000..86fc29e0a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80555.c5181f9f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80555],{58440:n=>{function e(n){n.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},n.languages.rbnf=n.languages.bnf}n.exports=e,e.displayName="bnf",e.aliases=["rbnf"]},80555:(n,e,a)=>{a.d(e,{default:()=>i});var t=a(58440);const i=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80719.840e5448.chunk.js b/ydb/core/viewer/monitoring/static/js/80719.840e5448.chunk.js new file mode 100644 index 0000000000..283426c8eb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80719.840e5448.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80719],{53950:e=>{function t(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,i=0;i<s.length;i++)o[s[i]]=e.languages.bash[s[i]];e.languages.shell=e.languages.bash}(e)}e.exports=t,t.displayName="bash",t.aliases=["shell"]},80719:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(53950);const s=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8081.5fafc7dc.chunk.js b/ydb/core/viewer/monitoring/static/js/8081.5fafc7dc.chunk.js deleted file mode 100644 index fb05e3a3b5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8081.5fafc7dc.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8081],{88081:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-kw",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/80921.252f76ca.chunk.js b/ydb/core/viewer/monitoring/static/js/80921.252f76ca.chunk.js new file mode 100644 index 0000000000..f61d27ef9f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/80921.252f76ca.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[80921],{80921:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"si",weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),months:"\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4_\u0db1\u0dc0\u0db8\u0dca_\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca_\u0db6\u0d9a\u0dca_\u0dc0\u0dd9\u0dc3\u0d9a\u0dca_\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca_\u0d87\u0dc3\u0dc5_\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2_\u0db6\u0dd2\u0db1\u0dbb_\u0dc0\u0db4\u0dca_\u0d89\u0dbd\u0dca_\u0d8b\u0db3\u0dd4\u0dc0\u0db4\u0dca".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),monthsShort:"\u0daf\u0dd4\u0dbb\u0dd4_\u0db1\u0dc0_\u0db8\u0dd0\u0daf\u0dd2_\u0db6\u0d9a\u0dca_\u0dc0\u0dd9\u0dc3_\u0db4\u0ddc\u0dc3\u0ddc_\u0d87\u0dc3_\u0db1\u0dd2\u0d9a\u0dd2_\u0db6\u0dd2\u0db1_\u0dc0\u0db4\u0dca_\u0d89\u0dbd\u0dca_\u0d8b\u0db3\u0dd4".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),ordinal:function(_){return _},formats:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",m:"\u0dc0\u0dd2\u0db1\u0dcf\u0da9\u0dd2\u0dba",mm:"\u0dc0\u0dd2\u0db1\u0dcf\u0da9\u0dd2 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81014.351ef346.chunk.js b/ydb/core/viewer/monitoring/static/js/81014.351ef346.chunk.js new file mode 100644 index 0000000000..13d85d9847 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81014.351ef346.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81014],{60111:e=>{function s(e){!function(e){var s=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:s}},builtin:s,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}e.exports=s,s.displayName="protobuf",s.aliases=[]},81014:(e,s,a)=>{a.d(s,{default:()=>t});var n=a(60111);const t=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8103.00c9e9c1.chunk.js b/ydb/core/viewer/monitoring/static/js/8103.00c9e9c1.chunk.js deleted file mode 100644 index 652afb95b7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8103.00c9e9c1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8103],{38103:function(e,t,r){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e),a={words:{m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["%d \u043c\u0438\u043d\u0443\u0442","%d \u043c\u0438\u043d\u0443\u0442\u0430","%d \u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["%d \u0441\u0430\u0442","%d \u0441\u0430\u0442\u0430","%d \u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["%d \u0434\u0430\u043d","%d \u0434\u0430\u043d\u0430","%d \u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["%d \u043c\u0435\u0441\u0435\u0446","%d \u043c\u0435\u0441\u0435\u0446\u0430","%d \u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["%d \u0433\u043e\u0434\u0438\u043d\u0443","%d \u0433\u043e\u0434\u0438\u043d\u0435","%d \u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,_){var m=a.words[r];if(1===r.length)return"y"===r&&t?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":_||t?m[0]:m[1];var d=a.correctGrammarCase(e,m);return"yy"===r&&t&&"%d \u0433\u043e\u0434\u0438\u043d\u0443"===d?e+" \u0433\u043e\u0434\u0438\u043d\u0430":d.replace("%d",e)}},_={name:"sr-cyrl",weekdays:"\u041d\u0435\u0434\u0435\u0459\u0430_\u041f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0423\u0442\u043e\u0440\u0430\u043a_\u0421\u0440\u0435\u0434\u0430_\u0427\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u041f\u0435\u0442\u0430\u043a_\u0421\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u041d\u0435\u0434._\u041f\u043e\u043d._\u0423\u0442\u043e._\u0421\u0440\u0435._\u0427\u0435\u0442._\u041f\u0435\u0442._\u0421\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),months:"\u0408\u0430\u043d\u0443\u0430\u0440_\u0424\u0435\u0431\u0440\u0443\u0430\u0440_\u041c\u0430\u0440\u0442_\u0410\u043f\u0440\u0438\u043b_\u041c\u0430\u0458_\u0408\u0443\u043d_\u0408\u0443\u043b_\u0410\u0432\u0433\u0443\u0441\u0442_\u0421\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u041e\u043a\u0442\u043e\u0431\u0430\u0440_\u041d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0414\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0408\u0430\u043d._\u0424\u0435\u0431._\u041c\u0430\u0440._\u0410\u043f\u0440._\u041c\u0430\u0458_\u0408\u0443\u043d_\u0408\u0443\u043b_\u0410\u0432\u0433._\u0421\u0435\u043f._\u041e\u043a\u0442._\u041d\u043e\u0432._\u0414\u0435\u0446.".split("_"),weekStart:1,relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:a.relativeTimeFormatter,mm:a.relativeTimeFormatter,h:a.relativeTimeFormatter,hh:a.relativeTimeFormatter,d:a.relativeTimeFormatter,dd:a.relativeTimeFormatter,M:a.relativeTimeFormatter,MM:a.relativeTimeFormatter,y:a.relativeTimeFormatter,yy:a.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return r.default.locale(_,null,!0),_}(r(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/811.a0c1e1ce.chunk.js b/ydb/core/viewer/monitoring/static/js/811.a0c1e1ce.chunk.js deleted file mode 100644 index 5013f6c4f8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/811.a0c1e1ce.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[811],{30811:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"my",weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),weekStart:1,weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8119.196e82ef.chunk.js b/ydb/core/viewer/monitoring/static/js/8119.196e82ef.chunk.js deleted file mode 100644 index f6fd2125f0..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8119.196e82ef.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8119],{88119:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es-mx",weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81243.4d5129fa.chunk.js b/ydb/core/viewer/monitoring/static/js/81243.4d5129fa.chunk.js new file mode 100644 index 0000000000..0ebfc9cf0a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81243.4d5129fa.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81243],{37558:e=>{function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=t,t.displayName="python",t.aliases=["py"]},81243:(e,t,n)=>{n.d(t,{default:()=>i});var a=n(37558);const i=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81299.b1fcb7d9.chunk.js b/ydb/core/viewer/monitoring/static/js/81299.b1fcb7d9.chunk.js new file mode 100644 index 0000000000..7117410fea --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81299.b1fcb7d9.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81299],{81299:(e,l,c)=>{c.r(l),c.d(l,{ReactComponent:()=>m,default:()=>n});var t,a=c(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var c=arguments[l];for(var t in c)({}).hasOwnProperty.call(c,t)&&(e[t]=c[t])}return e},h.apply(null,arguments)}function v({title:e,titleId:l,...c},v){return a.createElement("svg",h({width:349,height:356,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:v,"aria-labelledby":l},c),e?a.createElement("title",{id:l},e):null,t||(t=a.createElement("g",{opacity:.8},a.createElement("path",{d:"M275.008 84.928c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#fff",fillOpacity:.07}),a.createElement("path",{d:"M279.207 266.428l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5v-167.4c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"}),a.createElement("path",{d:"M191.308 139.226l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"}),a.createElement("path",{d:"M203.408 195.526l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.707 103.727c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.499c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.707 247.329h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"}),a.createElement("path",{d:"M340.507 205.528s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"}),a.createElement("path",{d:"M337.607 283.43l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"}),a.createElement("path",{d:"M313.007 236.029c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"}),a.createElement("path",{d:"M308.307 236.028c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"}),a.createElement("path",{d:"M21.708 40.727a2 2 0 1 0-4 0h4zm-4 8.2a2 2 0 0 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm-17.8 4a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.199 259.098a2 2 0 1 0-4 0h4zm-4 6.2a2 2 0 0 0 4 0h-4zm4 13.1a2 2 0 1 0-4 0h4zm-4 6.8a2 2 0 0 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"}),a.createElement("path",{clipRule:"evenodd",d:"M15.207 325.426c7.18 0 13-5.821 13-13 0-7.18-5.82-13-13-13s-13 5.82-13 13c0 7.179 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M28.207 310.426a2 2 0 1 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 0 0 4 0h-4zm-17.1 0a2 2 0 0 0 4 0h-4zm4-12.2a2 2 0 1 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"}))))}const m=a.forwardRef(v),n=c.p+"static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81327.e08f6d45.chunk.js b/ydb/core/viewer/monitoring/static/js/81327.e08f6d45.chunk.js new file mode 100644 index 0000000000..a845962d5f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81327.e08f6d45.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81327],{30019:e=>{function n(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}e.exports=n,n.displayName="inform7",n.aliases=[]},81327:(e,n,i)=>{i.d(n,{default:()=>o});var t=i(30019);const o=i.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81571.71d0a13e.chunk.js b/ydb/core/viewer/monitoring/static/js/81571.71d0a13e.chunk.js new file mode 100644 index 0000000000..891818e903 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81571.71d0a13e.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81571],{81571:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(93292);const s=n.n(a)()},89343:e=>{function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},93292:(e,t,n)=>{var a=n(89343);function s(e){e.register(a),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=s,s.displayName="cpp",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81747.65a6a7f3.chunk.js b/ydb/core/viewer/monitoring/static/js/81747.65a6a7f3.chunk.js new file mode 100644 index 0000000000..2bd40798b0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81747.65a6a7f3.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81747],{81747:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-tt",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],_=e%100;return"["+e+(a[(_-20)%10]||a[_]||a[0])+"]"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81836.55b6c25b.chunk.js b/ydb/core/viewer/monitoring/static/js/81836.55b6c25b.chunk.js new file mode 100644 index 0000000000..8f043b43f6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81836.55b6c25b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81836],{576:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const i={ru:{"hide-all":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435","show-all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",sum:"\u0421\u0443\u043c\u043c\u0430",scale:"\u0428\u043a\u0430\u043b\u0430",series:"\u041b\u0438\u043d\u0438\u044f",weekend:"\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439",nodata:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"},en:{"hide-all":"Hide all","show-all":"Show all",sum:"Total",scale:"Scale",series:"Series",weekend:"Weekend",nodata:"No data"}};t.default=(e="en")=>("string"!==typeof e&&(i.custom=e,e="custom"),t=>i[e][t]||t)},2836:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateUplotOptionsMixin=void 0;const n=s(i(25700)),o=s(i(60758)),l=i(46976),r=i(28265),a=s(i(67903)),u=i(81891),c=i(24793),d=i(27658),h=i(48643),f=s(i(15648));function p(e,t){for(const i of e||[])if(i===t)return;null===e||void 0===e||e.push(t)}t.CreateUplotOptionsMixin=class{initMixin(){this._uHooks.onDraw=()=>{if("listen"===this.state.stage)return;this.state.stage="listen",this.execHooks("stage",{chart:this,stage:this.state.stage});const e=performance.now()-this._startTime;this._meta.renderTime=e,this.execHooks("load",{chart:this,meta:this._meta})},this._uHooks.ready=()=>{const e=performance.now()-this._startTime;this._meta.initTime=e,this.execHooks("inited",{chart:this,meta:{initTime:e}})},this._uHooks.drawClear=e=>{const{ctx:t}=e;t.save(),t.fillStyle=this.utils.theme.BACKGROUND,t.fillRect(l.DEFAULT_CANVAS_PIXEL_RATIO,l.DEFAULT_CANVAS_PIXEL_RATIO,e.width*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO,e.height*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO),t.restore()},this._uHooks.setSelect=e=>{const{left:t,width:i}=e.select,[s,n]=[e.posToVal(t,l.DEFAULT_X_SCALE),e.posToVal(t+i,l.DEFAULT_X_SCALE)],{timeMultiplier:o=l.TIME_MULTIPLIER}=this.config.chart||{};this.execHooks("onSelect",{from:Math.ceil(s/o),to:Math.ceil(n/o),chart:this}),e.setSelect({width:0,height:0,top:0,left:0},!1)}}createUplotOptions(e=!1){var t,i,s,g,m,_,v,y,b,w,E;const{config:S}=this,x=[];let A=null===(t=this.plugins)||void 0===t?void 0:t.tooltip;if(S.tooltip&&!1!==S.tooltip.show&&(A?A.updateOptions(S.tooltip):A=(0,n.default)(this,S.tooltip),x.push(A.uplot),this.plugins.tooltip=A),e)this.plugins.plotLines&&x.push(this.plugins.plotLines.uplot);else{const e=(0,f.default)(this.config.plotLines||{})(this);this.plugins.plotLines=e,x.push(e.uplot)}Object.entries(S.plugins).forEach((([e,t])=>{const i=t(this);x.push(i.uplot),Object.assign(this.plugins,{[e]:i})}));const T=S.chart,O={width:this.root.clientWidth,height:this.clientHeight,title:null===(i=S.title)||void 0===i?void 0:i.text,plugins:x,focus:{alpha:l.DEFAULT_FOCUS_ALPHA},series:[{id:l.DEFAULT_X_SERIE_NAME,$c:S.timeline,scale:l.DEFAULT_X_SCALE,count:S.timeline.length}],ms:T.timeMultiplier||l.TIME_MULTIPLIER,hooks:S.hooks||{}};if(this.state.isEmptyDataSet=0===S.timeline.length||0===S.series.length||S.series.every((({data:e})=>0===e.length)),O.cursor=O.cursor||{},O.cursor.points=O.cursor.points||{},O.cursor.drag=O.cursor.drag||{dist:(null===(s=T.select)||void 0===s?void 0:s.minWidth)||l.MIN_SELECTION_WIDTH,x:null===(g=O.cursor.y)||void 0===g||g,y:null!==(m=O.cursor.y)&&void 0!==m&&m,setScale:null===(v=null===(_=T.select)||void 0===_?void 0:_.zoom)||void 0===v||v},this.utils.sync&&(O.cursor.sync=O.cursor.sync||{key:this.utils.sync.key}),S.cursor){const e=(0,o.default)(this,S.cursor);this.plugins.cursor=e,x.push(e.uplot)}const L=S.series||[],I=O.series;for(let n=L.length-1;n>=0;n--){const e=(0,r.configureSeries)(this,L[n]||{},n),t=I.push(e);this.state.y2uIdx[e.id||n]=t-1}const D=(0,a.default)(this,S);x.push(D),O.series=I,S.scales&&0!==Object.keys(S.scales).length||(S.scales={x:{},y:{}}),O.scales=O.scales||{},O.scales=(0,u.configureScales)(this,O.scales,S),O.axes=O.axes||[];return O.axes.push(...(0,c.configureAxes)(this,S)),O.hooks=S.hooks||{},O.hooks.draw=O.hooks.draw||[],O.hooks.ready=O.hooks.ready||[],O.hooks.drawClear=O.hooks.drawClear||[],O.hooks.setSelect=O.hooks.setSelect||[],p(O.hooks.draw,this._uHooks.onDraw),p(O.hooks.ready,this._uHooks.ready),p(O.hooks.drawClear,this._uHooks.drawClear),p(O.hooks.setSelect,this._uHooks.setSelect),O.drawOrder=(null===(y=T.appearance)||void 0===y?void 0:y.drawOrder)?null===(b=T.appearance)||void 0===b?void 0:b.drawOrder.filter((e=>e===h.DrawOrderKey.Series||e===h.DrawOrderKey.Axes)):[h.DrawOrderKey.Series,h.DrawOrderKey.Axes],O.legend={show:!1},O.padding=(null===(w=S.chart.size)||void 0===w?void 0:w.padding)||(0,d.getPaddingByAxes)(O),null===(E=this.plugins.legend)||void 0===E||E.preInit(this,this.config.legend,O),O.height=this.clientHeight,this.options=O,O}}},4553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=t.getPosition=void 0;const s=i(46976);function n(e,t,i,n){return e>0&&t===s.DEFAULT_X_SCALE?i:e>0&&t!==s.DEFAULT_X_SCALE||e<=0&&t===s.DEFAULT_X_SCALE?0:n}t.getPosition=n,t.calculateFromTo=function(e,t,i,o){return e.map((e=>{var l,r;if(Math.abs(e)!==1/0){if(t===s.DEFAULT_X_SCALE)return Math.min(Math.max(e,i[0]),i[i.length-1]);{const i=o.scales[t];return Math.min(Math.max(e,null!==(l=i.min)&&void 0!==l?l:e),null!==(r=i.max)&&void 0!==r?r:e)}}const a=n(e,t,o.width,o.height);return o.posToVal(a,t)})).map((e=>o.valToPos(e,t,!0)))}},11213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventMouseEvents=void 0;t.preventMouseEvents=e=>e.preventDefault()},15648:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(46976),n=i(48643),o=i(50497),l=i(80152),r={[n.DrawOrderKey.Series]:0,[n.DrawOrderKey.Axes]:1,plotLines:2},a={"012":"draw",102:"draw",201:"drawClear",210:"drawClear",120:"drawAxes","021":"drawSeries"};t.default=function(e){let t=new Map;return function(i){var n;const u=null===(n=i.config.chart.appearance)||void 0===n?void 0:n.drawOrder,c=(u?u.map((e=>r[e])):[0,1,2]).join(""),d=a[c]||"drawClear";function h(e){var i;if(e.id)return e.id;return(null===(i=Array.from(t.entries()).find((([t,i])=>(0,o.deepIsEqual)(i,e))))||void 0===i?void 0:i[0])||(0,o.genId)()}function f(n){const{ctx:o}=n,{height:r,top:a,width:u,left:c}=n.bbox,d=n.data[0];for(const h of t.values()){if(!h.scale)continue;if(e.render){e.render(n,h);continue}o.save(),o.fillStyle=i.utils.colors.parse(h.color);const{scale:t,value:f}=h,p=Array.isArray(f),[g,m]=p?(0,l.calculateFromTo)(f,t,d,n):[n.valToPos(f,t,!0),0];if(p){const e=h.accent;t===s.DEFAULT_X_SCALE?(o.fillRect(g,a,m-g,r),e&&(o.fillStyle=e.color,o.fillRect(g,a-e.space,m-g,e.space))):(o.fillRect(c,g,u,m-g),e&&(o.fillStyle=e.color,o.fillRect(u+c,g,e.space,m-g)))}else{const e=h;if(o.beginPath(),t===s.DEFAULT_X_SCALE){const e=n.data[0][n.data[0].length-1];if(g-n.valToPos(e,t,!0)>0)continue;o.moveTo(g,a),o.lineTo(g,r+a)}else o.moveTo(c,g),o.lineTo(u+c,g);o.lineWidth=e.width||s.DEFAULT_CANVAS_PIXEL_RATIO,o.strokeStyle=e.color||"#000",e.dash&&o.setLineDash(e.dash),o.stroke()}o.restore()}}const p="drawSeries"===d?(e,t)=>{t===e.series.length-1&&f(e)}:f;function g(e){e?t.forEach(((i,s)=>{i.scale===e&&t.delete(s)})):t.clear()}return{get:function(){return Array.from(t.values())},clear:g,remove:function(e){for(const i of e){const e=h(i);t.delete(e)}},add:function(e){for(const i of e){const e=h(i);t.set(e,i)}},update:function(e,i){if(!e||0===e.length)return void g(i);const s=new Set;for(const n of e){const e=h(n);t.set(e,n),s.add(e)}for(const[n,o]of t.entries())i&&o.scale!==i||s.has(n)||t.delete(n)},uplot:{opts:()=>{const e=i.config;t=new Map;for(const i in e.axes)if(e.axes.hasOwnProperty(i)){const s=e.axes[i];if(s.plotLines)for(const e of s.plotLines)t.set(e.id||(0,o.genId)(),{...e,scale:i})}},hooks:{[d]:p}}}}}},16381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xs});const s="uplot",n="u-hz",o="u-vt",l="u-title",r="u-wrap",a="u-under",u="u-over",c="u-axis",d="u-off",h="u-select",f="u-cursor-x",p="u-cursor-y",g="u-cursor-pt",m="u-legend",_="u-live",v="u-inline",y="u-series",b="u-marker",w="u-label",E="u-value",S="width",x="height",A="top",T="bottom",O="left",L="right",I="#000",D=I+"0",M="mousemove",k="mousedown",C="mouseup",R="mouseenter",F="mouseleave",P="dblclick",U="change",N="dppxchange",$="--",j="undefined"!=typeof window,X=j?document:null,z=j?window:null,H=j?navigator:null;let Y,B;function V(e,t){if(null!=t){let i=e.classList;!i.contains(t)&&i.add(t)}}function W(e,t){let i=e.classList;i.contains(t)&&i.remove(t)}function G(e,t,i){e.style[t]=i+"px"}function K(e,t,i,s){let n=X.createElement(e);return null!=t&&V(n,t),null!=i&&i.insertBefore(n,s),n}function q(e,t){return K("div",e,t)}const Z=new WeakMap;function J(e,t,i,s,n){let o="translate("+t+"px,"+i+"px)";o!=Z.get(e)&&(e.style.transform=o,Z.set(e,o),t<0||i<0||t>s||i>n?V(e,d):W(e,d))}const Q=new WeakMap;function ee(e,t,i){let s=t+i;s!=Q.get(e)&&(Q.set(e,s),e.style.background=t,e.style.borderColor=i)}const te=new WeakMap;function ie(e,t,i,s){let n=t+""+i;n!=te.get(e)&&(te.set(e,n),e.style.height=i+"px",e.style.width=t+"px",e.style.marginLeft=s?-t/2+"px":0,e.style.marginTop=s?-i/2+"px":0)}const se={passive:!0},ne={...se,capture:!0};function oe(e,t,i,s){t.addEventListener(e,i,s?ne:se)}function le(e,t,i,s){t.removeEventListener(e,i,se)}function re(e,t,i,s){let n;i=i||0;let o=(s=s||t.length-1)<=2147483647;for(;s-i>1;)n=o?i+s>>1:Se((i+s)/2),t[n]<e?i=n:s=n;return e-t[i]<=t[s]-e?i:s}function ae(e,t,i,s){for(let n=1==s?t:i;n>=t&&n<=i;n+=s)if(null!=e[n])return n;return-1}function ue(e,t,i,s){let n=Ie(e),o=Ie(t);e==t&&(-1==n?(e*=i,t/=i):(e/=i,t*=i));let l=10==i?De:Me,r=1==o?Ae:Se,a=(1==n?Se:Ae)(l(Ee(e))),u=r(l(Ee(t))),c=Le(i,a),d=Le(i,u);return 10==i&&(a<0&&(c=Ge(c,-a)),u<0&&(d=Ge(d,-u))),s||2==i?(e=c*n,t=d*o):(e=We(e,c),t=Ve(t,d)),[e,t]}function ce(e,t,i,s){let n=ue(e,t,i,s);return 0==e&&(n[0]=0),0==t&&(n[1]=0),n}j&&function e(){let t=devicePixelRatio;Y!=t&&(Y=t,B&&le(U,B,e),B=matchMedia(`(min-resolution: ${Y-.001}dppx) and (max-resolution: ${Y+.001}dppx)`),oe(U,B,e),z.dispatchEvent(new CustomEvent(N)))}();const de=.1,he={mode:3,pad:de},fe={pad:0,soft:null,mode:0},pe={min:fe,max:fe};function ge(e,t,i,s){return ot(i)?_e(e,t,i):(fe.pad=i,fe.soft=s?0:null,fe.mode=s?3:0,_e(e,t,pe))}function me(e,t){return null==e?t:e}function _e(e,t,i){let s=i.min,n=i.max,o=me(s.pad,0),l=me(n.pad,0),r=me(s.hard,-Re),a=me(n.hard,Re),u=me(s.soft,Re),c=me(n.soft,-Re),d=me(s.mode,0),h=me(n.mode,0),f=t-e,p=De(f),g=Oe(Ee(e),Ee(t)),m=De(g),_=Ee(m-p);(f<1e-24||_>10)&&(f=0,0!=e&&0!=t||(f=1e-24,2==d&&u!=Re&&(o=0),2==h&&c!=-Re&&(l=0)));let v=f||g||1e3,y=De(v),b=Le(10,Se(y)),w=Ge(We(e-v*(0==f?0==e?.1:1:o),b/10),24),E=e>=u&&(1==d||3==d&&w<=u||2==d&&w>=u)?u:Re,S=Oe(r,w<E&&e>=E?E:Te(E,w)),x=Ge(Ve(t+v*(0==f?0==t?.1:1:l),b/10),24),A=t<=c&&(1==h||3==h&&x>=c||2==h&&x<=c)?c:-Re,T=Te(a,x>A&&t<=A?A:Oe(A,x));return S==T&&0==S&&(T=100),[S,T]}const ve=new Intl.NumberFormat(j?H.language:"en-US"),ye=e=>ve.format(e),be=Math,we=be.PI,Ee=be.abs,Se=be.floor,xe=be.round,Ae=be.ceil,Te=be.min,Oe=be.max,Le=be.pow,Ie=be.sign,De=be.log10,Me=be.log2,ke=(e,t=1)=>be.sinh(e)*t,Ce=(e,t=1)=>be.asinh(e/t),Re=1/0;function Fe(e){return 1+(0|De((e^e>>31)-(e>>31)))}function Pe(e,t,i){return Te(Oe(e,t),i)}function Ue(e){return"function"==typeof e?e:()=>e}const Ne=e=>e,$e=(e,t)=>t,je=e=>null,Xe=e=>!0,ze=(e,t)=>e==t,He=/\.\d*?(?=9{6,}|0{6,})/gm,Ye=e=>{if(it(e)||Ke.has(e))return e;const t=`${e}`,i=t.match(He);if(null==i)return e;let s=i[0].length-1;if(-1!=t.indexOf("e-")){let[e,i]=t.split("e");return+`${Ye(e)}e${i}`}return Ge(e,s)};function Be(e,t){return Ye(Ge(Ye(e/t))*t)}function Ve(e,t){return Ye(Ae(Ye(e/t))*t)}function We(e,t){return Ye(Se(Ye(e/t))*t)}function Ge(e,t=0){if(it(e))return e;let i=10**t,s=e*i*(1+Number.EPSILON);return xe(s)/i}const Ke=new Map;function qe(e){return((""+e).split(".")[1]||"").length}function Ze(e,t,i,s){let n=[],o=s.map(qe);for(let l=t;l<i;l++){let t=Ee(l),i=Ge(Le(e,l),t);for(let r=0;r<s.length;r++){let a=10==e?+`${s[r]}e${l}`:s[r]*i,u=(l>=0?0:t)+(l>=o[r]?0:o[r]),c=10==e?a:Ge(a,u);n.push(c),Ke.set(c,u)}}return n}const Je={},Qe=[],et=[null,null],tt=Array.isArray,it=Number.isInteger,st=e=>void 0===e;function nt(e){return"string"==typeof e}function ot(e){let t=!1;if(null!=e){let i=e.constructor;t=null==i||i==Object}return t}function lt(e){return null!=e&&"object"==typeof e}const rt=Object.getPrototypeOf(Uint8Array),at="__proto__";function ut(e,t=ot){let i;if(tt(e)){let s=e.find((e=>null!=e));if(tt(s)||t(s)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=ut(e[s],t)}else i=e.slice()}else if(e instanceof rt)i=e.slice();else if(t(e)){i={};for(let s in e)s!=at&&(i[s]=ut(e[s],t))}else i=e;return i}function ct(e){let t=arguments;for(let i=1;i<t.length;i++){let s=t[i];for(let t in s)t!=at&&(ot(e[t])?ct(e[t],ut(s[t])):e[t]=ut(s[t]))}return e}function dt(e,t,i){for(let s,n=0,o=-1;n<t.length;n++){let l=t[n];if(l>o){for(s=l-1;s>=0&&null==e[s];)e[s--]=null;for(s=l+1;s<i&&null==e[s];)e[o=s++]=null}}}const ht="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask;const ft=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(e){return e.slice(0,3)}const mt=pt.map(gt),_t=ft.map(gt),vt={MMMM:ft,MMM:_t,WWWW:pt,WWW:mt};function yt(e){return(e<10?"0":"")+e}const bt={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>yt(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>yt(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>yt(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>yt(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>yt(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function wt(e,t){t=t||vt;let i,s=[],n=/\{([a-z]+)\}|[^{]+/gi;for(;i=n.exec(e);)s.push("{"==i[0][0]?bt[i[1]]:i[0]);return e=>{let i="";for(let n=0;n<s.length;n++)i+="string"==typeof s[n]?s[n]:s[n](e,t);return i}}const Et=(new Intl.DateTimeFormat).resolvedOptions().timeZone;const St=e=>e%1==0,xt=[1,2,2.5,5],At=Ze(10,-32,0,xt),Tt=Ze(10,0,32,xt),Ot=Tt.filter(St),Lt=At.concat(Tt),It="{YYYY}",Dt="\n"+It,Mt="{M}/{D}",kt="\n"+Mt,Ct=kt+"/{YY}",Rt="{aa}",Ft="{h}:{mm}"+Rt,Pt="\n"+Ft,Ut=":{ss}",Nt=null;function $t(e){let t=1e3*e,i=60*t,s=60*i,n=24*s,o=30*n,l=365*n;return[(1==e?Ze(10,0,3,xt).filter(St):Ze(10,-3,0,xt)).concat([t,5*t,10*t,15*t,30*t,i,5*i,10*i,15*i,30*i,s,2*s,3*s,4*s,6*s,8*s,12*s,n,2*n,3*n,4*n,5*n,6*n,7*n,8*n,9*n,10*n,15*n,o,2*o,3*o,4*o,6*o,l,2*l,5*l,10*l,25*l,50*l,100*l]),[[l,It,Nt,Nt,Nt,Nt,Nt,Nt,1],[28*n,"{MMM}",Dt,Nt,Nt,Nt,Nt,Nt,1],[n,Mt,Dt,Nt,Nt,Nt,Nt,Nt,1],[s,"{h}"+Rt,Ct,Nt,kt,Nt,Nt,Nt,1],[i,Ft,Ct,Nt,kt,Nt,Nt,Nt,1],[t,Ut,Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1],[e,Ut+".{fff}",Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1]],function(t){return(r,a,u,c,d,h)=>{let f=[],p=d>=l,g=d>=o&&d<l,m=t(u),_=Ge(m*e,3),v=Gt(m.getFullYear(),p?0:m.getMonth(),g||p?1:m.getDate()),y=Ge(v*e,3);if(g||p){let i=g?d/o:0,s=p?d/l:0,n=_==y?_:Ge(Gt(v.getFullYear()+s,v.getMonth()+i,1)*e,3),r=new Date(xe(n/e)),a=r.getFullYear(),u=r.getMonth();for(let o=0;n<=c;o++){let l=Gt(a+s*o,u+i*o,1),r=l-t(Ge(l*e,3));n=Ge((+l+r)*e,3),n<=c&&f.push(n)}}else{let o=d>=n?n:d,l=y+(Se(u)-Se(_))+Ve(_-y,o);f.push(l);let p=t(l),g=p.getHours()+p.getMinutes()/i+p.getSeconds()/s,m=d/s,v=h/r.axes[a]._space;for(;l=Ge(l+d,1==e?0:3),!(l>c);)if(m>1){let e=Se(Ge(g+m,6))%24,i=t(l).getHours()-e;i>1&&(i=-1),l-=i*s,g=(g+m)%24,Ge((l-f[f.length-1])/d,3)*v>=.7&&f.push(l)}else f.push(l)}return f}}]}const[jt,Xt,zt]=$t(1),[Ht,Yt,Bt]=$t(.001);function Vt(e,t){return e.map((e=>e.map(((i,s)=>0==s||8==s||null==i?i:t(1==s||0==e[8]?i:e[1]+i)))))}function Wt(e,t){return(i,s,n,o,l)=>{let r,a,u,c,d,h,f=t.find((e=>l>=e[0]))||t[t.length-1];return s.map((t=>{let i=e(t),s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),l=i.getHours(),p=i.getMinutes(),g=i.getSeconds(),m=s!=r&&f[2]||n!=a&&f[3]||o!=u&&f[4]||l!=c&&f[5]||p!=d&&f[6]||g!=h&&f[7]||f[1];return r=s,a=n,u=o,c=l,d=p,h=g,m(i)}))}}function Gt(e,t,i){return new Date(e,t,i)}function Kt(e,t){return t(e)}Ze(2,-53,53,[1]);const qt="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zt(e,t){return(i,s,n,o)=>null==o?$:t(e(s))}const Jt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let i=e.series[t];return i.width?i.stroke(e,t):i.points.width?i.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Qt=[0,0];function ei(e,t,i,s=!0){return e=>{0==e.button&&(!s||e.target==t)&&i(e)}}function ti(e,t,i,s=!0){return e=>{(!s||e.target==t)&&i(e)}}const ii={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,i){return Qt[0]=t,Qt[1]=i,Qt},points:{one:!1,show:function(e,t){let i=e.cursor.points,s=q(),n=i.size(e,t);G(s,S,n),G(s,x,n);let o=n/-2;G(s,"marginLeft",o),G(s,"marginTop",o);let l=i.width(e,t,n);return l&&G(s,"borderWidth",l),s},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let i=e.series[t].points;return i._stroke||i._fill},fill:function(e,t){let i=e.series[t].points;return i._fill||i._stroke}},bind:{mousedown:ei,mouseup:ei,click:ei,dblclick:ei,mousemove:ti,mouseleave:ti,mouseenter:ti},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,i,s,n)=>s-n,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},si={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ni=ct({},si,{filter:$e}),oi=ct({},ni,{size:10}),li=ct({},si,{show:!1}),ri='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ai="bold "+ri,ui={show:!0,scale:"x",stroke:I,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:2,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0},ci="Value",di="Time",hi={show:!0,scale:"x",auto:!1,sorted:1,min:Re,max:-Re,idxs:[]};function fi(e,t,i,s,n){return t.map((e=>null==e?"":ye(e)))}function pi(e,t,i,s,n,o,l){let r=[],a=Ke.get(n)||0;for(let u=i=l?i:Ge(Ve(i,n),a);u<=s;u=Ge(u+n,a))r.push(Object.is(u,-0)?0:u);return r}function gi(e,t,i,s,n,o,l){const r=[],a=e.scales[e.axes[t].scale].log,u=Se((10==a?De:Me)(i));n=Le(a,u),10==a&&(n=Lt[re(n,Lt)]);let c=i,d=n*a;10==a&&(d=Lt[re(d,Lt)]);do{r.push(c),c+=n,10!=a||Ke.has(c)||(c=Ge(c,Ke.get(n))),c>=d&&(d=(n=c)*a,10==a&&(d=Lt[re(d,Lt)]))}while(c<=s);return r}function mi(e,t,i,s,n,o,l){let r=e.scales[e.axes[t].scale].asinh,a=s>r?gi(e,t,Oe(r,i),s,n):[r],u=s>=0&&i<=0?[0]:[];return(i<-r?gi(e,t,Oe(r,-s),-i,n):[r]).reverse().map((e=>-e)).concat(u,a)}const _i=/./,vi=/[12357]/,yi=/[125]/,bi=/1/,wi=(e,t,i,s)=>e.map(((e,n)=>4==t&&0==e||n%s==0&&i.test(e.toExponential()[e<0?1:0])?e:null));function Ei(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=e.scales[l],a=e.valToPos,u=o._space,c=a(10,l),d=a(9,l)-c>=u?_i:a(7,l)-c>=u?vi:a(5,l)-c>=u?yi:bi;if(d==bi){let e=Ee(a(1,l)-c);if(e<u)return wi(t.slice().reverse(),r.distr,d,Ae(u/e)).reverse()}return wi(t,r.distr,d,1)}function Si(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=o._space,a=e.valToPos,u=Ee(a(1,l)-a(2,l));return u<r?wi(t.slice().reverse(),3,_i,Ae(r/u)).reverse():t}function xi(e,t,i,s){return null==s?$:null==t?"":ye(t)}const Ai={show:!0,scale:"y",stroke:I,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:3,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0};const Ti={scale:null,auto:!0,sorted:0,min:Re,max:-Re},Oi=(e,t,i,s,n)=>n,Li={show:!0,auto:!0,sorted:0,gaps:Oi,alpha:1,facets:[ct({},Ti,{scale:"x"}),ct({},Ti,{scale:"y"})]},Ii={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Oi,alpha:1,points:{show:function(e,t){let{scale:i,idxs:s}=e.series[0],n=e._data[0],o=e.valToPos(n[s[0]],i,!0),l=e.valToPos(n[s[1]],i,!0),r=Ee(l-o)/(e.series[t].points.space*Y);return s[1]-s[0]<=r},filter:null},values:null,min:Re,max:-Re,idxs:[],path:null,clip:null};function Di(e,t,i,s,n){return i/10}const Mi={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ki=ct({},Mi,{time:!1,ori:1}),Ci={};function Ri(e,t){let i=Ci[e];return i||(i={key:e,plots:[],sub(e){i.plots.push(e)},unsub(e){i.plots=i.plots.filter((t=>t!=e))},pub(e,t,s,n,o,l,r){for(let a=0;a<i.plots.length;a++)i.plots[a]!=t&&i.plots[a].pub(e,t,s,n,o,l,r)}},null!=e&&(Ci[e]=i)),i}const Fi=1,Pi=2;function Ui(e,t,i){const s=e.mode,n=e.series[t],o=2==s?e._data[t]:e._data,l=e.scales,r=e.bbox;let a=o[0],u=2==s?o[1]:o[t],c=2==s?l[n.facets[0].scale]:l[e.series[0].scale],d=2==s?l[n.facets[1].scale]:l[n.scale],h=r.left,f=r.top,p=r.width,g=r.height,m=e.valToPosH,_=e.valToPosV;return 0==c.ori?i(n,a,u,c,d,m,_,h,f,p,g,Bi,Wi,Ki,Zi,Qi):i(n,a,u,c,d,_,m,f,h,g,p,Vi,Gi,qi,Ji,es)}function Ni(e,t){let i=0,s=0,n=me(e.bands,Qe);for(let o=0;o<n.length;o++){let e=n[o];e.series[0]==t?i=e.dir:e.series[1]==t&&(1==e.dir?s|=1:s|=2)}return[i,1==s?-1:2==s?1:3==s?2:0]}function $i(e,t,i,s,n){let o=e.mode,l=e.series[t],r=2==o?l.facets[1].scale:l.scale,a=e.scales[r];return-1==n?a.min:1==n?a.max:3==a.distr?1==a.dir?a.min:a.max:0}function ji(e,t,i,s,n,o){return Ui(e,t,((e,t,l,r,a,u,c,d,h,f,p)=>{let g=e.pxRound;const m=r.dir*(0==r.ori?1:-1),_=0==r.ori?Wi:Gi;let v,y;1==m?(v=i,y=s):(v=s,y=i);let b=g(u(t[v],r,f,d)),w=g(c(l[v],a,p,h)),E=g(u(t[y],r,f,d)),S=g(c(1==o?a.max:a.min,a,p,h)),x=new Path2D(n);return _(x,E,S),_(x,b,S),_(x,b,w),x}))}function Xi(e,t,i,s,n,o){let l=null;if(e.length>0){l=new Path2D;const r=0==t?Ki:qi;let a=i;for(let t=0;t<e.length;t++){let i=e[t];if(i[1]>i[0]){let e=i[0]-a;e>0&&r(l,a,s,e,s+o),a=i[1]}}let u=i+n-a,c=10;u>0&&r(l,a,s-c/2,u,s+o+c)}return l}function zi(e,t,i,s,n,o,l){let r=[],a=e.length;for(let u=1==n?i:s;u>=i&&u<=s;u+=n){if(null===t[u]){let c=u,d=u;if(1==n)for(;++u<=s&&null===t[u];)d=u;else for(;--u>=i&&null===t[u];)d=u;let h=o(e[c]),f=d==c?h:o(e[d]),p=c-n;h=l<=0&&p>=0&&p<a?o(e[p]):h;let g=d+n;f=l>=0&&g>=0&&g<a?o(e[g]):f,f>=h&&r.push([h,f])}}return r}function Hi(e){return 0==e?Ne:1==e?xe:t=>Be(t,e)}function Yi(e){let t=0==e?Bi:Vi,i=0==e?(e,t,i,s,n,o)=>{e.arcTo(t,i,s,n,o)}:(e,t,i,s,n,o)=>{e.arcTo(i,t,n,s,o)},s=0==e?(e,t,i,s,n)=>{e.rect(t,i,s,n)}:(e,t,i,s,n)=>{e.rect(i,t,n,s)};return(e,n,o,l,r,a=0,u=0)=>{0==a&&0==u?s(e,n,o,l,r):(a=Te(a,l/2,r/2),u=Te(u,l/2,r/2),t(e,n+a,o),i(e,n+l,o,n+l,o+r,a),i(e,n+l,o+r,n,o+r,u),i(e,n,o+r,n,o,u),i(e,n,o,n+l,o,a),e.closePath())}}const Bi=(e,t,i)=>{e.moveTo(t,i)},Vi=(e,t,i)=>{e.moveTo(i,t)},Wi=(e,t,i)=>{e.lineTo(t,i)},Gi=(e,t,i)=>{e.lineTo(i,t)},Ki=Yi(0),qi=Yi(1),Zi=(e,t,i,s,n,o)=>{e.arc(t,i,s,n,o)},Ji=(e,t,i,s,n,o)=>{e.arc(i,t,s,n,o)},Qi=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(t,i,s,n,o,l)},es=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(i,t,n,s,l,o)};function ts(e){return(e,t,i,s,n)=>Ui(e,t,((t,o,l,r,a,u,c,d,h,f,p)=>{let g,m,{pxRound:_,points:v}=t;0==r.ori?(g=Bi,m=Zi):(g=Vi,m=Ji);const y=Ge(v.width*Y,3);let b=(v.size-v.width)/2*Y,w=Ge(2*b,3),E=new Path2D,S=new Path2D,{left:x,top:A,width:T,height:O}=e.bbox;Ki(S,x-w,A-w,T+2*w,O+2*w);const L=e=>{if(null!=l[e]){let t=_(u(o[e],r,f,d)),i=_(c(l[e],a,p,h));g(E,t+b,i),m(E,t,i,b,0,2*we)}};if(n)n.forEach(L);else for(let e=i;e<=s;e++)L(e);return{stroke:y>0?E:null,fill:E,clip:S,flags:Fi|Pi}}))}function is(e){return(t,i,s,n,o,l)=>{s!=n&&(o!=s&&l!=s&&e(t,i,s),o!=n&&l!=n&&e(t,i,n),e(t,i,l))}}const ss=is(Wi),ns=is(Gi);function os(e){const t=me(e?.alignGaps,0);return(e,i,s,n)=>Ui(e,i,((o,l,r,a,u,c,d,h,f,p,g)=>{let m,_,v=o.pxRound,y=e=>v(c(e,a,p,h)),b=e=>v(d(e,u,g,f));0==a.ori?(m=Wi,_=ss):(m=Gi,_=ns);const w=a.dir*(0==a.ori?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},S=E.stroke;let x,A,T,O=Re,L=-Re,I=y(l[1==w?s:n]),D=ae(r,s,n,1*w),M=ae(r,s,n,-1*w),k=y(l[D]),C=y(l[M]),R=!1;for(let e=1==w?s:n;e>=s&&e<=n;e+=w){let t=y(l[e]),i=r[e];t==I?null!=i?(A=b(i),O==Re&&(m(S,t,A),x=A),O=Te(A,O),L=Oe(A,L)):null===i&&(R=!0):(O!=Re&&(_(S,I,O,L,x,A),T=I),null!=i?(A=b(i),m(S,t,A),O=L=x=A):(O=Re,L=-Re,null===i&&(R=!0)),I=t)}O!=Re&&O!=L&&T!=I&&_(S,I,O,L,x,A);let[F,P]=Ni(e,i);if(null!=o.fill||0!=F){let t=E.fill=new Path2D(S),s=b(o.fillTo(e,i,o.min,o.max,F));m(t,C,s),m(t,k,s)}if(!o.spanGaps){let u=[];R&&u.push(...zi(l,r,s,n,w,y,t)),E.gaps=u=o.gaps(e,i,s,n,u),E.clip=Xi(u,a.ori,h,f,p,g)}return 0!=P&&(E.band=2==P?[ji(e,i,s,n,S,-1),ji(e,i,s,n,S,1)]:ji(e,i,s,n,S,P)),E}))}function ls(e,t,i,s,n,o,l=Re){if(e.length>1){let r=null;for(let a=0,u=1/0;a<e.length;a++)if(void 0!==t[a]){if(null!=r){let t=Ee(e[a]-e[r]);t<u&&(u=t,l=Ee(i(e[a],s,n,o)-i(e[r],s,n,o)))}r=a}}return l}function rs(e,t,i,s,n,o){const l=e.length;if(l<2)return null;const r=new Path2D;if(i(r,e[0],t[0]),2==l)s(r,e[1],t[1]);else{let i=Array(l),s=Array(l-1),o=Array(l-1),a=Array(l-1);for(let n=0;n<l-1;n++)o[n]=t[n+1]-t[n],a[n]=e[n+1]-e[n],s[n]=o[n]/a[n];i[0]=s[0];for(let e=1;e<l-1;e++)0===s[e]||0===s[e-1]||s[e-1]>0!==s[e]>0?i[e]=0:(i[e]=3*(a[e-1]+a[e])/((2*a[e]+a[e-1])/s[e-1]+(a[e]+2*a[e-1])/s[e]),isFinite(i[e])||(i[e]=0));i[l-1]=s[l-2];for(let u=0;u<l-1;u++)n(r,e[u]+a[u]/3,t[u]+i[u]*a[u]/3,e[u+1]-a[u]/3,t[u+1]-i[u+1]*a[u]/3,e[u+1],t[u+1])}return r}const as=new Set;function us(){for(let e of as)e.syncRect(!0)}j&&(oe("resize",z,us),oe("scroll",z,us,!0),oe(N,z,(()=>{xs.pxRatio=Y})));const cs=os(),ds=ts();function hs(e,t,i,s){return(s?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,s)=>fs(e,s,t,i)))}function fs(e,t,i,s){return ct({},0==t?i:s,e)}function ps(e,t,i){return null==t?et:[t,i]}const gs=ps;function ms(e,t,i){return null==t?et:ge(t,i,de,!0)}function _s(e,t,i,s){return null==t?et:ue(t,i,e.scales[s].log,!1)}const vs=_s;function ys(e,t,i,s){return null==t?et:ce(t,i,e.scales[s].log,!1)}const bs=ys;function ws(e,t,i,s,n){let o=Oe(Fe(e),Fe(t)),l=t-e,r=re(n/s*l,i);do{let e=i[r],t=s*e/l;if(t>=n&&o+(e<5?Ke.get(e):0)<=17)return[e,t]}while(++r<i.length);return[0,0]}function Es(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(t=xe((i=+s)*Y))+"px")),t,i]}function Ss(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ge(e[2]*Y,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function xs(e,t,i){const I={mode:me(e.mode,1)},U=I.mode;function j(e,t){return((3==t.distr?De(e>0?e:t.clamp(I,e,t.min,t.max,t.key)):4==t.distr?Ce(e,t.asinh):100==t.distr?t.fwd(e):e)-t._min)/(t._max-t._min)}function H(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?1-n:n)}function B(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?n:1-n)}function Z(e,t,i,s){return 0==t.ori?H(e,t,i,s):B(e,t,i,s)}I.valToPosH=H,I.valToPosV=B;let Q=!1;I.status=0;const te=I.root=q(s);if(null!=e.id&&(te.id=e.id),V(te,e.class),e.title){q(l,te).textContent=e.title}const se=K("canvas"),ne=I.ctx=se.getContext("2d"),ae=q(r,te);oe("click",ae,(e=>{if(e.target===pe){(an!=nn||un!=on)&&vn.click(I,e)}}),!0);const fe=I.under=q(a,ae);ae.appendChild(se);const pe=I.over=q(u,ae),_e=+me((e=ut(e)).pxAlign,1),ve=Hi(_e);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(I,e)||e)}));const ye=e.ms||.001,be=I.series=1==U?hs(e.series||[],hi,Ii,!1):(Se=e.series||[null],Ie=Li,Se.map(((e,t)=>0==t?{}:ct({},Ie,e))));var Se,Ie;const Me=I.axes=hs(e.axes||[],ui,Ai,!0),Fe=I.scales={},Ne=I.bands=e.bands||[];Ne.forEach((e=>{e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1)}));const He=2==U?be[1].facets[0].scale:be[0].scale,Ye={axes:function(){for(let e=0;e<Me.length;e++){let t=Me[e];if(!t.show||!t._show)continue;let i,s,n=t.side,o=n%2,l=t.stroke(I,e),r=0==n||3==n?-1:1;if(t.label){let e=t.labelGap*r,a=xe((t._lpos+e)*Y);Ns(t.labelFont[0],l,"center",2==n?A:T),ne.save(),1==o?(i=s=0,ne.translate(a,xe(_i+yi/2)),ne.rotate((3==n?-we:we)/2)):(i=xe(ai+vi/2),s=a),ne.fillText(t.label,i,s),ne.restore()}let[a,u]=t._found;if(0==u)continue;let c=Fe[t.scale],d=0==o?vi:yi,h=0==o?ai:_i,f=xe(t.gap*Y),p=t._splits,g=2==c.distr?p.map((e=>Cs[e])):p,m=2==c.distr?Cs[p[1]]-Cs[p[0]]:a,_=t.ticks,v=t.border,y=_.show?xe(_.size*Y):0,b=t._rotate*-we/180,w=ve(t._pos*Y),E=w+(y+f)*r;s=0==o?E:0,i=1==o?E:0,Ns(t.font[0],l,1==t.align?O:2==t.align?L:b>0?O:b<0?L:0==o?"center":3==n?L:O,b||1==o?"middle":2==n?A:T);let S=t.font[1]*t.lineGap,x=p.map((e=>ve(Z(e,c,d,h)))),D=t._values;for(let e=0;e<D.length;e++){let t=D[e];if(null!=t){0==o?i=x[e]:s=x[e],t=""+t;let n=-1==t.indexOf("\n")?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];b?(ne.save(),ne.translate(i,s+e*S),ne.rotate(b),ne.fillText(t,0,0),ne.restore()):ne.fillText(t,i,s+e*S)}}}_.show&&Ws(x,_.filter(I,g,e,u,m),o,n,w,y,Ge(_.width*Y,3),_.stroke(I,e),_.dash,_.cap);let M=t.grid;M.show&&Ws(x,M.filter(I,g,e,u,m),o,0==o?2:1,0==o?_i:ai,0==o?yi:vi,Ge(M.width*Y,3),M.stroke(I,e),M.dash,M.cap),v.show&&Ws([w],[1],0==o?1:0,0==o?1:2,1==o?_i:ai,1==o?yi:vi,Ge(v.width*Y,3),v.stroke(I,e),v.dash,v.cap)}eo("drawAxes")},series:function(){ns>0&&(be.forEach(((e,i)=>{if(i>0&&e.show&&(Xs(i,!1),Xs(i,!0),null==e._paths)){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha);let s=2==U?[0,t[i][0].length-1]:function(e){let t=Pe(os-1,0,ns-1),i=Pe(ls+1,0,ns-1);for(;null==e[t]&&t>0;)t--;for(;null==e[i]&&i<ns-1;)i++;return[t,i]}(t[i]);e._paths=e.paths(I,i,s[0],s[1]),1!=ks&&(ne.globalAlpha=ks=1)}})),be.forEach(((e,t)=>{if(t>0&&e.show){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha),null!=e._paths&&zs(t,!1);{let i=null!=e._paths?e._paths.gaps:null,s=e.points.show(I,t,os,ls,i),n=e.points.filter(I,t,s,i);(s||n)&&(e.points._paths=e.points.paths(I,t,os,ls,n),zs(t,!0))}1!=ks&&(ne.globalAlpha=ks=1),eo("drawSeries",t)}})))}},Ve=(e.drawOrder||["axes","series"]).map((e=>Ye[e]));function We(t){let i=Fe[t];if(null==i){let s=(e.scales||Je)[t]||Je;if(null!=s.from)We(s.from),Fe[t]=ct({},Fe[s.from],s,{key:t});else{i=Fe[t]=ct({},t==He?Mi:ki,s),i.key=t;let e=i.time,n=i.range,o=tt(n);if((t!=He||2==U&&!e)&&(!o||null!=n[0]&&null!=n[1]||(n={min:null==n[0]?he:{mode:1,hard:n[0],soft:n[0]},max:null==n[1]?he:{mode:1,hard:n[1],soft:n[1]}},o=!1),!o&&ot(n))){let e=n;n=(t,i,s)=>null==i?et:ge(i,s,e)}i.range=Ue(n||(e?gs:t==He?3==i.distr?vs:4==i.distr?bs:ps:3==i.distr?_s:4==i.distr?ys:ms)),i.auto=Ue(!o&&i.auto),i.clamp=Ue(i.clamp||Di),i._min=i._max=null}}}We("x"),We("y"),1==U&&be.forEach((e=>{We(e.scale)})),Me.forEach((e=>{We(e.scale)}));for(let s in e.scales)We(s);const Ze=Fe[He],it=Ze.distr;let rt,at;0==Ze.ori?(V(te,n),rt=H,at=B):(V(te,o),rt=B,at=H);const dt={};for(let s in Fe){let e=Fe[s];null==e.min&&null==e.max||(dt[s]={min:e.min,max:e.max},e.min=e.max=null)}const ft=e.tzDate||(e=>new Date(xe(e/ye))),pt=e.fmtDate||wt,gt=1==ye?zt(ft):Bt(ft),mt=Wt(ft,Vt(1==ye?Xt:Yt,pt)),_t=Zt(ft,Kt(qt,pt)),vt=[],yt=I.legend=ct({},Jt,e.legend),bt=yt.show,Et=yt.markers;let St,xt,At;yt.idxs=vt,Et.width=Ue(Et.width),Et.dash=Ue(Et.dash),Et.stroke=Ue(Et.stroke),Et.fill=Ue(Et.fill);let Tt,It=[],Dt=[],Mt=!1,kt={};if(yt.live){const e=be[1]?be[1].values:null;Mt=null!=e,Tt=Mt?e(I,1,0):{_:0};for(let t in Tt)kt[t]=$}if(bt)if(St=K("table",m,te),At=K("tbody",null,St),yt.mount(I,St),Mt){xt=K("thead",null,St,At);let e=K("tr",null,xt);for(var Ct in K("th",null,e),Tt)K("th",w,e).textContent=Ct}else V(St,v),yt.live&&V(St,_);const Rt={show:!0},Ft={show:!1};const Pt=new Map;function Ut(e,t,i,s=!0){const n=Pt.get(t)||{},o=zi.bind[e](I,t,i,s);o&&(oe(e,t,n[e]=o),Pt.set(t,n))}function Nt(e,t,i){const s=Pt.get(t)||{};for(let n in s)null!=e&&n!=e||(le(n,t,s[n]),delete s[n]);null==e&&Pt.delete(t)}let $t=0,Gt=0,Qt=0,ei=0,ti=0,si=0,ni=ti,oi=si,li=Qt,ri=ei,ai=0,_i=0,vi=0,yi=0;I.bbox={};let bi=!1,wi=!1,Ti=!1,Oi=!1,Ci=!1,Ui=!1;function Ni(e,t,i){(i||e!=I.width||t!=I.height)&&ji(e,t),qs(!1),Ti=!0,wi=!0,pn()}function ji(e,t){I.width=$t=Qt=e,I.height=Gt=ei=t,ti=si=0,function(){let e=!1,t=!1,i=!1,s=!1;Me.forEach(((n,o)=>{if(n.show&&n._show){let{side:o,_size:l}=n,r=o%2,a=l+(null!=n.label?n.labelSize:0);a>0&&(r?(Qt-=a,3==o?(ti+=a,s=!0):i=!0):(ei-=a,0==o?(si+=a,e=!0):t=!0))}})),es[0]=e,es[1]=i,es[2]=t,es[3]=s,Qt-=ss[1]+ss[3],ti+=ss[3],ei-=ss[2]+ss[0],si+=ss[0]}(),function(){let e=ti+Qt,t=si+ei,i=ti,s=si;function n(n,o){switch(n){case 1:return e+=o,e-o;case 2:return t+=o,t-o;case 3:return i-=o,i+o;case 0:return s-=o,s+o}}Me.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=n(t,e._size),null!=e.label&&(e._lpos=n(t,e.labelSize))}}))}();let i=I.bbox;ai=i.left=Be(ti*Y,.5),_i=i.top=Be(si*Y,.5),vi=i.width=Be(Qt*Y,.5),yi=i.height=Be(ei*Y,.5)}const Xi=3;I.setSize=function({width:e,height:t}){Ni(e,t)};const zi=I.cursor=ct({},ii,{drag:{y:2==U}},e.cursor);if(null==zi.dataIdx){let e=zi.hover,i=e.skip=new Set(e.skip??[]);i.add(void 0);let s=e.prox=Ue(e.prox),n=e.bias??=0;zi.dataIdx=(e,o,l,r)=>{if(0==o)return l;let a=l,u=s(e,o,l,r)??Re,c=u>=0&&u<Re,d=0==Ze.ori?Qt:ei,h=zi.left,f=t[0],p=t[o];if(i.has(p[l])){a=null;let e,t=null,s=null;if(0==n||-1==n)for(e=l;null==t&&e-- >0;)i.has(p[e])||(t=e);if(0==n||1==n)for(e=l;null==s&&e++<p.length;)i.has(p[e])||(s=e);if(null!=t||null!=s)if(c){let e=h-(null==t?-1/0:rt(f[t],Ze,d,0)),i=(null==s?1/0:rt(f[s],Ze,d,0))-h;e<=i?e<=u&&(a=t):i<=u&&(a=s)}else a=null==s?t:null==t?s:l-t<=s-l?t:s}else if(c){Ee(h-rt(f[l],Ze,d,0))>u&&(a=null)}return a}}const Yi=e=>{zi.event=e};zi.idxs=vt,zi._lock=!1;let Bi=zi.points;Bi.show=Ue(Bi.show),Bi.size=Ue(Bi.size),Bi.stroke=Ue(Bi.stroke),Bi.width=Ue(Bi.width),Bi.fill=Ue(Bi.fill);const Vi=I.focus=ct({},e.focus||{alpha:.3},zi.focus),Wi=Vi.prox>=0,Gi=Wi&&Bi.one;let Ki=[],qi=[],Zi=[];function Ji(e,t){let i=Bi.show(I,t);if(i)return V(i,g),V(i,e.class),J(i,-10,-10,Qt,ei),pe.insertBefore(i,Ki[t]),i}function Qi(e,t){if(1==U||t>0){let t=1==U&&Fe[e.scale].time,i=e.value;e.value=t?nt(i)?Zt(ft,Kt(i,pt)):i||_t:i||xi,e.label=e.label||(t?di:ci)}if(Gi||t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||cs||je,e.fillTo=Ue(e.fillTo||$i),e.pxAlign=+me(e.pxAlign,_e),e.pxRound=Hi(e.pxAlign),e.stroke=Ue(e.stroke||null),e.fill=Ue(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ge((3+2*(Oe(1,e.width)||1))*1,3),i=e.points=ct({},{size:t,width:Oe(1,.2*t),stroke:e.stroke,space:2*t,paths:ds,_stroke:null,_fill:null},e.points);i.show=Ue(i.show),i.filter=Ue(i.filter),i.fill=Ue(i.fill),i.stroke=Ue(i.stroke),i.paths=Ue(i.paths),i.pxAlign=e.pxAlign}if(bt){let i=function(e,t){if(0==t&&(Mt||!yt.live||2==U))return et;let i=[],s=K("tr",y,At,At.childNodes[t]);V(s,e.class),e.show||V(s,d);let n=K("th",null,s);if(Et.show){let e=q(b,n);if(t>0){let i=Et.width(I,t);i&&(e.style.border=i+"px "+Et.dash(I,t)+" "+Et.stroke(I,t)),e.style.background=Et.fill(I,t)}}let o=q(w,n);for(var l in o.textContent=e.label,t>0&&(Et.show||(o.style.color=e.width>0?Et.stroke(I,t):Et.fill(I,t)),Ut("click",n,(t=>{if(zi._lock)return;Yi(t);let i=be.indexOf(e);if((t.ctrlKey||t.metaKey)!=yt.isolate){let e=be.some(((e,t)=>t>0&&t!=i&&e.show));be.forEach(((t,s)=>{s>0&&An(s,e?s==i?Rt:Ft:Rt,!0,io.setSeries)}))}else An(i,{show:!e.show},!0,io.setSeries)}),!1),Wi&&Ut(R,n,(t=>{zi._lock||(Yi(t),An(be.indexOf(e),In,!0,io.setSeries))}),!1)),Tt){let e=K("td",E,s);e.textContent="--",i.push(e)}return[s,i]}(e,t);It.splice(t,0,i[0]),Dt.splice(t,0,i[1]),yt.values.push(null)}if(zi.show){vt.splice(t,0,null);let i=null;Gi?0==t&&(i=Ji(e,t)):t>0&&(i=Ji(e,t)),Ki.splice(t,0,i),qi.splice(t,0,0),Zi.splice(t,0,0)}eo("addSeries",t)}I.addSeries=function(e,t){t=null==t?be.length:t,e=1==U?fs(e,t,hi,Ii):fs(e,t,{},Li),be.splice(t,0,e),Qi(be[t],t)},I.delSeries=function(e){if(be.splice(e,1),bt){yt.values.splice(e,1),Dt.splice(e,1);let t=It.splice(e,1)[0];Nt(null,t.firstChild),t.remove()}zi.show&&(vt.splice(e,1),Ki.splice(e,1)[0].remove(),qi.splice(e,1),Zi.splice(e,1)),eo("delSeries",e)};const es=[!1,!1,!1,!1];function ts(e,t,i,s){let[n,o,l,r]=i,a=t%2,u=0;return 0==a&&(r||o)&&(u=0==t&&!n||2==t&&!l?xe(ui.size/3):0),1==a&&(n||l)&&(u=1==t&&!o||3==t&&!r?xe(Ai.size/2):0),u}const is=I.padding=(e.padding||[ts,ts,ts,ts]).map((e=>Ue(me(e,ts)))),ss=I._padding=is.map(((e,t)=>e(I,t,es,0)));let ns,os=null,ls=null;const rs=1==U?be[0].idxs:null;let us,xs,As,Ts,Os,Ls,Is,Ds,Ms,ks,Cs=null,Rs=!1;function Fs(e,i){if(t=null==e?[]:e,I.data=I._data=t,2==U){ns=0;for(let e=1;e<be.length;e++)ns+=t[e][0].length}else{0==t.length&&(I.data=I._data=t=[[]]),Cs=t[0],ns=Cs.length;let e=t;if(2==it){e=t.slice();let i=e[0]=Array(ns);for(let e=0;e<ns;e++)i[e]=e}I._data=t=e}if(qs(!0),eo("setData"),2==it&&(Ti=!0),!1!==i){let e=Ze;e.auto(I,Rs)?Ps():xn(He,e.min,e.max),Oi=Oi||zi.left>=0,Ui=!0,pn()}}function Ps(){let e,i;Rs=!0,1==U&&(ns>0?(os=rs[0]=0,ls=rs[1]=ns-1,e=t[0][os],i=t[0][ls],2==it?(e=os,i=ls):e==i&&(3==it?[e,i]=ue(e,e,Ze.log,!1):4==it?[e,i]=ce(e,e,Ze.log,!1):Ze.time?i=e+xe(86400/ye):[e,i]=ge(e,i,de,!0))):(os=rs[0]=e=null,ls=rs[1]=i=null)),xn(He,e,i)}function Us(e,t,i,s,n,o){e??=D,i??=Qe,s??="butt",n??=D,o??="round",e!=us&&(ne.strokeStyle=us=e),n!=xs&&(ne.fillStyle=xs=n),t!=As&&(ne.lineWidth=As=t),o!=Os&&(ne.lineJoin=Os=o),s!=Ls&&(ne.lineCap=Ls=s),i!=Ts&&ne.setLineDash(Ts=i)}function Ns(e,t,i,s){t!=xs&&(ne.fillStyle=xs=t),e!=Is&&(ne.font=Is=e),i!=Ds&&(ne.textAlign=Ds=i),s!=Ms&&(ne.textBaseline=Ms=s)}function $s(e,t,i,s,n=0){if(s.length>0&&e.auto(I,Rs)&&(null==t||null==t.min)){let t=me(os,0),o=me(ls,s.length-1),l=null==i.min?3==e.distr?function(e,t,i){let s=Re,n=-Re;for(let o=t;o<=i;o++){let t=e[o];null!=t&&t>0&&(t<s&&(s=t),t>n&&(n=t))}return[s,n]}(s,t,o):function(e,t,i,s){let n=Re,o=-Re;if(1==s)n=e[t],o=e[i];else if(-1==s)n=e[i],o=e[t];else for(let l=t;l<=i;l++){let t=e[l];null!=t&&(t<n&&(n=t),t>o&&(o=t))}return[n,o]}(s,t,o,n):[i.min,i.max];e.min=Te(e.min,i.min=l[0]),e.max=Oe(e.max,i.max=l[1])}}I.setData=Fs;const js={min:null,max:null};function Xs(e,t){let i=t?be[e].points:be[e];i._stroke=i.stroke(I,e),i._fill=i.fill(I,e)}function zs(e,i){let s=i?be[e].points:be[e],{stroke:n,fill:o,clip:l,flags:r,_stroke:a=s._stroke,_fill:u=s._fill,_width:c=s.width}=s._paths;c=Ge(c*Y,3);let d=null,h=c%2/2;i&&null==u&&(u=c>0?"#fff":a);let f=1==s.pxAlign&&h>0;if(f&&ne.translate(h,h),!i){let e=ai-c/2,t=_i-c/2,i=vi+c,s=yi+c;d=new Path2D,d.rect(e,t,i,s)}i?Ys(a,c,s.dash,s.cap,u,n,o,r,l):function(e,i,s,n,o,l,r,a,u,c,d){let h=!1;0!=u&&Ne.forEach(((f,p)=>{if(f.series[0]==e){let e,g=be[f.series[1]],m=t[f.series[1]],_=(g._paths||Je).band;tt(_)&&(_=1==f.dir?_[0]:_[1]);let v=null;g.show&&_&&function(e,t,i){for(t=me(t,0),i=me(i,e.length-1);t<=i;){if(null!=e[t])return!0;t++}return!1}(m,os,ls)?(v=f.fill(I,p)||l,e=g._paths.clip):_=null,Ys(i,s,n,o,v,r,a,u,c,d,e,_),h=!0}})),h||Ys(i,s,n,o,l,r,a,u,c,d)}(e,a,c,s.dash,s.cap,u,n,o,r,d,l),f&&ne.translate(-h,-h)}const Hs=Fi|Pi;function Ys(e,t,i,s,n,o,l,r,a,u,c,d){Us(e,t,i,s,n),(a||u||d)&&(ne.save(),a&&ne.clip(a),u&&ne.clip(u)),d?(r&Hs)==Hs?(ne.clip(d),c&&ne.clip(c),Vs(n,l),Bs(e,o,t)):r&Pi?(Vs(n,l),ne.clip(d),Bs(e,o,t)):r&Fi&&(ne.save(),ne.clip(d),c&&ne.clip(c),Vs(n,l),ne.restore(),Bs(e,o,t)):(Vs(n,l),Bs(e,o,t)),(a||u||d)&&ne.restore()}function Bs(e,t,i){i>0&&(t instanceof Map?t.forEach(((e,t)=>{ne.strokeStyle=us=t,ne.stroke(e)})):null!=t&&e&&ne.stroke(t))}function Vs(e,t){t instanceof Map?t.forEach(((e,t)=>{ne.fillStyle=xs=t,ne.fill(e)})):null!=t&&e&&ne.fill(t)}function Ws(e,t,i,s,n,o,l,r,a,u){let c=l%2/2;1==_e&&ne.translate(c,c),Us(r,l,a,u,r),ne.beginPath();let d,h,f,p,g=n+(0==s||3==s?-o:o);0==i?(h=n,p=g):(d=n,f=g);for(let m=0;m<e.length;m++)null!=t[m]&&(0==i?d=f=e[m]:h=p=e[m],ne.moveTo(d,h),ne.lineTo(f,p));ne.stroke(),1==_e&&ne.translate(-c,-c)}function Gs(e){let t=!0;return Me.forEach(((i,s)=>{if(!i.show)return;let n=Fe[i.scale];if(null==n.min)return void(i._show&&(t=!1,i._show=!1,qs(!1)));i._show||(t=!1,i._show=!0,qs(!1));let o=i.side,l=o%2,{min:r,max:a}=n,[u,c]=function(e,t,i,s){let n,o=Me[e];if(s<=0)n=[0,0];else{let l=o._space=o.space(I,e,t,i,s);n=ws(t,i,o._incrs=o.incrs(I,e,t,i,s,l),s,l)}return o._found=n}(s,r,a,0==l?Qt:ei);if(0==c)return;let d=2==n.distr,h=i._splits=i.splits(I,s,r,a,u,c,d),f=2==n.distr?h.map((e=>Cs[e])):h,p=2==n.distr?Cs[h[1]]-Cs[h[0]]:u,g=i._values=i.values(I,i.filter(I,f,s,c,p),s,c,p);i._rotate=2==o?i.rotate(I,g,s,c):0;let m=i._size;i._size=Ae(i.size(I,g,s,e)),null!=m&&i._size!=m&&(t=!1)})),t}function Ks(e){let t=!0;return is.forEach(((i,s)=>{let n=i(I,s,es,e);n!=ss[s]&&(t=!1),ss[s]=n})),t}function qs(e){be.forEach(((t,i)=>{i>0&&(t._paths=null,e&&(1==U?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let Zs,Js,Qs,en,tn,sn,nn,on,ln,rn,an,un,cn=!1,dn=!1,hn=[];function fn(){dn=!1;for(let e=0;e<hn.length;e++)eo(...hn[e]);hn.length=0}function pn(){cn||(ht(gn),cn=!0)}function gn(){if(bi&&(!function(){for(let t in Fe){let e=Fe[t];null==dt[t]&&(null==e.min||null!=dt[He]&&e.auto(I,Rs))&&(dt[t]=js)}for(let t in Fe){let e=Fe[t];null==dt[t]&&null!=e.from&&null!=dt[e.from]&&(dt[t]=js)}null!=dt[He]&&qs(!0);let e={};for(let t in dt){let i=dt[t];if(null!=i){let s=e[t]=ut(Fe[t],lt);if(null!=i.min)ct(s,i);else if(t!=He||2==U)if(0==ns&&null==s.from){let e=s.range(I,null,null,t);s.min=e[0],s.max=e[1]}else s.min=Re,s.max=-Re}}if(ns>0){be.forEach(((i,s)=>{if(1==U){let n=i.scale,o=dt[n];if(null==o)return;let l=e[n];if(0==s){let e=l.range(I,l.min,l.max,n);l.min=e[0],l.max=e[1],os=re(l.min,t[0]),ls=re(l.max,t[0]),ls-os>1&&(t[0][os]<l.min&&os++,t[0][ls]>l.max&&ls--),i.min=Cs[os],i.max=Cs[ls]}else i.show&&i.auto&&$s(l,o,i,t[s],i.sorted);i.idxs[0]=os,i.idxs[1]=ls}else if(s>0&&i.show&&i.auto){let[n,o]=i.facets,l=n.scale,r=o.scale,[a,u]=t[s],c=e[l],d=e[r];null!=c&&$s(c,dt[l],n,a,n.sorted),null!=d&&$s(d,dt[r],o,u,o.sorted),i.min=o.min,i.max=o.max}}));for(let t in e){let i=e[t],s=dt[t];if(null==i.from&&(null==s||null==s.min)){let e=i.range(I,i.min==Re?null:i.min,i.max==-Re?null:i.max,t);i.min=e[0],i.max=e[1]}}}for(let t in e){let i=e[t];if(null!=i.from){let s=e[i.from];if(null==s.min)i.min=i.max=null;else{let e=i.range(I,s.min,s.max,t);i.min=e[0],i.max=e[1]}}}let i={},s=!1;for(let t in e){let n=e[t],o=Fe[t];if(o.min!=n.min||o.max!=n.max){o.min=n.min,o.max=n.max;let e=o.distr;o._min=3==e?De(o.min):4==e?Ce(o.min,o.asinh):100==e?o.fwd(o.min):o.min,o._max=3==e?De(o.max):4==e?Ce(o.max,o.asinh):100==e?o.fwd(o.max):o.max,i[t]=s=!0}}if(s){be.forEach(((e,t)=>{2==U?t>0&&i.y&&(e._paths=null):i[e.scale]&&(e._paths=null)}));for(let e in i)Ti=!0,eo("setScale",e);zi.show&&zi.left>=0&&(Oi=Ui=!0)}for(let t in dt)dt[t]=null}(),bi=!1),Ti&&(!function(){let e=!1,t=0;for(;!e;){t++;let i=Gs(t),s=Ks(t);e=t==Xi||i&&s,e||(ji(I.width,I.height),wi=!0)}}(),Ti=!1),wi){if(G(fe,O,ti),G(fe,A,si),G(fe,S,Qt),G(fe,x,ei),G(pe,O,ti),G(pe,A,si),G(pe,S,Qt),G(pe,x,ei),G(ae,S,$t),G(ae,x,Gt),se.width=xe($t*Y),se.height=xe(Gt*Y),Me.forEach((({_el:e,_show:t,_size:i,_pos:s,side:n})=>{if(null!=e)if(t){let t=n%2==1;G(e,t?"left":"top",s-(3===n||0===n?i:0)),G(e,t?"width":"height",i),G(e,t?"top":"left",t?si:ti),G(e,t?"height":"width",t?ei:Qt),W(e,d)}else V(e,d)})),us=xs=As=Os=Ls=Is=Ds=Ms=Ts=null,ks=1,$n(!0),ti!=ni||si!=oi||Qt!=li||ei!=ri){qs(!1);let e=Qt/li,t=ei/ri;if(zi.show&&!Oi&&zi.left>=0){zi.left*=e,zi.top*=t,Qs&&J(Qs,xe(zi.left),0,Qt,ei),en&&J(en,0,xe(zi.top),Qt,ei);for(let i=0;i<Ki.length;i++){let s=Ki[i];null!=s&&(qi[i]*=e,Zi[i]*=t,J(s,Ae(qi[i]),Ae(Zi[i]),Qt,ei))}}if(wn.show&&!Ci&&wn.left>=0&&wn.width>0){wn.left*=e,wn.width*=e,wn.top*=t,wn.height*=t;for(let e in zn)G(En,e,wn[e])}ni=ti,oi=si,li=Qt,ri=ei}eo("setSize"),wi=!1}$t>0&&Gt>0&&(ne.clearRect(0,0,se.width,se.height),eo("drawClear"),Ve.forEach((e=>e())),eo("draw")),wn.show&&Ci&&(Sn(wn),Ci=!1),zi.show&&Oi&&(Un(null,!0,!1),Oi=!1),yt.show&&yt.live&&Ui&&(Fn(),Ui=!1),Q||(Q=!0,I.status=1,eo("ready")),Rs=!1,cn=!1}function mn(e,i){let s=Fe[e];if(null==s.from){if(0==ns){let t=s.range(I,i.min,i.max,e);i.min=t[0],i.max=t[1]}if(i.min>i.max){let e=i.min;i.min=i.max,i.max=e}if(ns>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;e==He&&2==s.distr&&ns>0&&(i.min=re(i.min,t[0]),i.max=re(i.max,t[0]),i.min==i.max&&i.max++),dt[e]=i,bi=!0,pn()}}I.batch=function(e,t=!1){cn=!0,dn=t,e(I),gn(),t&&hn.length>0&&queueMicrotask(fn)},I.redraw=(e,t)=>{Ti=t||!1,!1!==e?xn(He,Ze.min,Ze.max):pn()},I.setScale=mn;let _n=!1;const vn=zi.drag;let yn=vn.x,bn=vn.y;zi.show&&(zi.x&&(Zs=q(f,pe)),zi.y&&(Js=q(p,pe)),0==Ze.ori?(Qs=Zs,en=Js):(Qs=Js,en=Zs),an=zi.left,un=zi.top);const wn=I.select=ct({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),En=wn.show?q(h,wn.over?pe:fe):null;function Sn(e,t){if(wn.show){for(let t in e)wn[t]=e[t],t in zn&&G(En,t,e[t]);!1!==t&&eo("setSelect")}}function xn(e,t,i){mn(e,{min:t,max:i})}function An(e,t,i,s){null!=t.focus&&function(e){if(e!=Ln){let t=null==e,i=1!=Vi.alpha;be.forEach(((s,n)=>{if(1==U||n>0){let o=t||0==n||n==e;s._focus=t?null:o,i&&function(e,t){be[e].alpha=t,zi.show&&Ki[e]&&(Ki[e].style.opacity=t);bt&&It[e]&&(It[e].style.opacity=t)}(n,o?1:Vi.alpha)}})),Ln=e,i&&pn()}}(e),null!=t.show&&be.forEach(((i,s)=>{s>0&&(e==s||null==e)&&(i.show=t.show,function(e){let t=be[e],i=bt?It[e]:null;t.show?i&&W(i,d):(i&&V(i,d),J(Gi?Ki[0]:Ki[e],-10,-10,Qt,ei))}(s,t.show),2==U?(xn(i.facets[0].scale,null,null),xn(i.facets[1].scale,null,null)):xn(i.scale,null,null),pn())})),!1!==i&&eo("setSeries",e,t),s&&oo("setSeries",I,e,t)}let Tn,On,Ln;I.setSelect=Sn,I.setSeries=An,I.addBand=function(e,t){e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1),t=null==t?Ne.length:t,Ne.splice(t,0,e)},I.setBand=function(e,t){ct(Ne[e],t)},I.delBand=function(e){null==e?Ne.length=0:Ne.splice(e,1)};const In={focus:!0};function Dn(e,t,i){let s=Fe[t];i&&(e=e/Y-(1==s.ori?si:ti));let n=Qt;1==s.ori&&(n=ei,e=n-e),-1==s.dir&&(e=n-e);let o=s._min,l=o+(s._max-o)*(e/n),r=s.distr;return 3==r?Le(10,l):4==r?ke(l,s.asinh):100==r?s.bwd(l):l}function Mn(e,t){G(En,O,wn.left=e),G(En,S,wn.width=t)}function kn(e,t){G(En,A,wn.top=e),G(En,x,wn.height=t)}bt&&Wi&&Ut(F,St,(e=>{zi._lock||(Yi(e),null!=Ln&&An(null,In,!0,io.setSeries))})),I.valToIdx=e=>re(e,t[0]),I.posToIdx=function(e,i){return re(Dn(e,He,i),t[0],os,ls)},I.posToVal=Dn,I.valToPos=(e,t,i)=>0==Fe[t].ori?H(e,Fe[t],i?vi:Qt,i?ai:0):B(e,Fe[t],i?yi:ei,i?_i:0),I.setCursor=(e,t,i)=>{an=e.left,un=e.top,Un(null,t,i)};let Cn=0==Ze.ori?Mn:kn,Rn=1==Ze.ori?Mn:kn;function Fn(e,t){if(null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{vt[t]=e})):st(e.idx)||vt.fill(e.idx),yt.idx=vt[0]),bt&&yt.live){for(let e=0;e<be.length;e++)(e>0||1==U&&!Mt)&&Pn(e,vt[e]);!function(){if(bt&&yt.live)for(let e=2==U?1:0;e<be.length;e++){if(0==e&&Mt)continue;let t=yt.values[e],i=0;for(let s in t)Dt[e][i++].firstChild.nodeValue=t[s]}}()}Ui=!1,!1!==t&&eo("setLegend")}function Pn(e,i){let s,n=be[e],o=0==e&&2==it?Cs:t[e];Mt?s=n.values(I,e,i)??kt:(s=n.value(I,null==i?null:o[i],e,i),s=null==s?kt:{_:s}),yt.values[e]=s}function Un(e,i,s){let n;ln=an,rn=un,[an,un]=zi.move(I,an,un),zi.left=an,zi.top=un,zi.show&&(Qs&&J(Qs,xe(an),0,Qt,ei),en&&J(en,0,xe(un),Qt,ei));let o=os>ls;Tn=Re,On=null;let l=0==Ze.ori?Qt:ei,r=1==Ze.ori?Qt:ei;if(an<0||0==ns||o){n=zi.idx=null;for(let e=0;e<be.length;e++){let t=Ki[e];null!=t&&J(t,-10,-10,Qt,ei)}Wi&&An(null,In,!0,null==e&&io.setSeries),yt.live&&(vt.fill(n),Ui=!0)}else{let e,i,s;1==U&&(e=0==Ze.ori?an:un,i=Dn(e,He),n=zi.idx=re(i,t[0],os,ls),s=rt(t[0][n],Ze,l,0));let o=-10,a=-10,u=0,c=0,d=!0,h="",f="";for(let p=2==U?1:0;p<be.length;p++){let e=be[p],g=vt[p],m=null==g?null:1==U?t[p][g]:t[p][1][g],_=zi.dataIdx(I,p,n,i),v=null==_?null:1==U?t[p][_]:t[p][1][_];Ui=Ui||v!=m||_!=g,vt[p]=_;let y=_==n?s:rt(1==U?t[0][_]:t[p][0][_],Ze,l,0);if(p>0&&e.show){let t=null==v?-10:at(v,1==U?Fe[e.scale]:Fe[e.facets[1].scale],r,0);if(Wi&&null!=v){let i=1==Ze.ori?an:un,s=Ee(Vi.dist(I,p,_,t,i));if(s<Tn){let t=Vi.bias;if(0!=t){let n=Dn(i,e.scale),o=n>=0?1:-1;o==(v>=0?1:-1)&&(1==o?1==t?v>=n:v<=n:1==t?v<=n:v>=n)&&(Tn=s,On=p)}else Tn=s,On=p}}if(Ui||Gi){let e,i;0==Ze.ori?(e=y,i=t):(e=t,i=y);let s,n,l,r,g,m,_=!0,v=Bi.bbox;if(null!=v){_=!1;let e=v(I,p);l=e.left,r=e.top,s=e.width,n=e.height}else l=e,r=i,s=n=Bi.size(I,p);if(m=Bi.fill(I,p),g=Bi.stroke(I,p),Gi)p==On&&Tn<=Vi.prox&&(o=l,a=r,u=s,c=n,d=_,h=m,f=g);else{let e=Ki[p];null!=e&&(qi[p]=l,Zi[p]=r,ie(e,s,n,_),ee(e,m,g),J(e,Ae(l),Ae(r),Qt,ei))}}}}if(Gi){let e=Vi.prox;if(Ui||(null==Ln?Tn<=e:Tn>e||On!=Ln)){let e=Ki[0];qi[0]=o,Zi[0]=a,ie(e,u,c,d),ee(e,h,f),J(e,Ae(o),Ae(a),Qt,ei)}}}if(wn.show&&_n)if(null!=e){let[t,i]=io.scales,[s,n]=io.match,[o,a]=e.cursor.sync.scales,u=e.cursor.drag;if(yn=u._x,bn=u._y,yn||bn){let u,c,d,h,f,{left:p,top:g,width:m,height:_}=e.select,v=e.scales[o].ori,y=e.posToVal,b=null!=t&&s(t,o),w=null!=i&&n(i,a);b&&yn?(0==v?(u=p,c=m):(u=g,c=_),d=Fe[t],h=rt(y(u,o),d,l,0),f=rt(y(u+c,o),d,l,0),Cn(Te(h,f),Ee(f-h))):Cn(0,l),w&&bn?(1==v?(u=p,c=m):(u=g,c=_),d=Fe[i],h=at(y(u,a),d,r,0),f=at(y(u+c,a),d,r,0),Rn(Te(h,f),Ee(f-h))):Rn(0,r)}else Hn()}else{let e=Ee(ln-tn),t=Ee(rn-sn);if(1==Ze.ori){let i=e;e=t,t=i}yn=vn.x&&e>=vn.dist,bn=vn.y&&t>=vn.dist;let i,s,n=vn.uni;null!=n?yn&&bn&&(yn=e>=n,bn=t>=n,yn||bn||(t>e?bn=!0:yn=!0)):vn.x&&vn.y&&(yn||bn)&&(yn=bn=!0),yn&&(0==Ze.ori?(i=nn,s=an):(i=on,s=un),Cn(Te(i,s),Ee(s-i)),bn||Rn(0,r)),bn&&(1==Ze.ori?(i=nn,s=an):(i=on,s=un),Rn(Te(i,s),Ee(s-i)),yn||Cn(0,l)),yn||bn||(Cn(0,0),Rn(0,0))}if(vn._x=yn,vn._y=bn,null==e){if(s){if(null!=so){let[e,t]=io.scales;io.values[0]=null!=e?Dn(0==Ze.ori?an:un,e):null,io.values[1]=null!=t?Dn(1==Ze.ori?an:un,t):null}oo(M,I,an,un,Qt,ei,n)}if(Wi){let e=s&&io.setSeries,t=Vi.prox;null==Ln?Tn<=t&&An(On,In,!0,e):Tn>t?An(null,In,!0,e):On!=Ln&&An(On,In,!0,e)}}Ui&&(yt.idx=n,Fn()),!1!==i&&eo("setCursor")}I.setLegend=Fn;let Nn=null;function $n(e=!1){e?Nn=null:(Nn=pe.getBoundingClientRect(),eo("syncRect",Nn))}function jn(e,t,i,s,n,o,l){zi._lock||_n&&null!=e&&0==e.movementX&&0==e.movementY||(Xn(e,t,i,s,n,o,l,!1,null!=e),null!=e?Un(null,!0,!0):Un(t,!0,!1))}function Xn(e,t,i,s,n,o,l,r,a){if(null==Nn&&$n(!1),Yi(e),null!=e)i=e.clientX-Nn.left,s=e.clientY-Nn.top;else{if(i<0||s<0)return an=-10,void(un=-10);let[e,l]=io.scales,r=t.cursor.sync,[a,u]=r.values,[c,d]=r.scales,[h,f]=io.match,p=t.axes[0].side%2==1,g=0==Ze.ori?Qt:ei,m=1==Ze.ori?Qt:ei,_=p?o:n,v=p?n:o,y=p?s:i,b=p?i:s;if(i=null!=c?h(e,c)?Z(a,Fe[e],g,0):-10:g*(y/_),s=null!=d?f(l,d)?Z(u,Fe[l],m,0):-10:m*(b/v),1==Ze.ori){let e=i;i=s,s=e}}a&&((i<=1||i>=Qt-1)&&(i=Be(i,Qt)),(s<=1||s>=ei-1)&&(s=Be(s,ei))),r?(tn=i,sn=s,[nn,on]=zi.move(I,i,s)):(an=i,un=s)}Object.defineProperty(I,"rect",{get:()=>(null==Nn&&$n(!1),Nn)});const zn={width:0,height:0,left:0,top:0};function Hn(){Sn(zn,!1)}let Yn,Bn,Vn,Wn;function Gn(e,t,i,s,n,o,l){_n=!0,yn=bn=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!0,!1),null!=e&&(Ut(C,X,Kn,!1),oo(k,I,nn,on,Qt,ei,null));let{left:r,top:a,width:u,height:c}=wn;Yn=r,Bn=a,Vn=u,Wn=c,Hn()}function Kn(e,t,i,s,n,o,l){_n=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!1,!0);let{left:r,top:a,width:u,height:c}=wn,d=u>0||c>0,h=Yn!=r||Bn!=a||Vn!=u||Wn!=c;if(d&&h&&Sn(wn),vn.setScale&&d&&h){let e=r,t=u,i=a,s=c;if(1==Ze.ori&&(e=a,t=c,i=r,s=u),yn&&xn(He,Dn(e,He),Dn(e+t,He)),bn)for(let n in Fe){let e=Fe[n];n!=He&&null==e.from&&e.min!=Re&&xn(n,Dn(i+s,n),Dn(i,n))}Hn()}else zi.lock&&(zi._lock=!zi._lock,Un(null,!0,!1));null!=e&&(Nt(C,X),oo(C,I,an,un,Qt,ei,null))}function qn(e,t,i,s,n,o,l){zi._lock||(Yi(e),Ps(),Hn(),null!=e&&oo(P,I,an,un,Qt,ei,null))}function Zn(){Me.forEach(Ss),Ni(I.width,I.height,!0)}oe(N,z,Zn);const Jn={};Jn.mousedown=Gn,Jn.mousemove=jn,Jn.mouseup=Kn,Jn.dblclick=qn,Jn.setSeries=(e,t,i,s)=>{-1!=(i=(0,io.match[2])(I,t,i))&&An(i,s,!0,!1)},zi.show&&(Ut(k,pe,Gn),Ut(M,pe,jn),Ut(R,pe,(e=>{Yi(e),$n(!1)})),Ut(F,pe,(function(e,t,i,s,n,o,l){if(zi._lock)return;Yi(e);let r=_n;if(_n){let e,t,i=!0,s=!0,n=10;0==Ze.ori?(e=yn,t=bn):(e=bn,t=yn),e&&t&&(i=an<=n||an>=Qt-n,s=un<=n||un>=ei-n),e&&i&&(an=an<nn?0:Qt),t&&s&&(un=un<on?0:ei),Un(null,!0,!0),_n=!1}an=-10,un=-10,Un(null,!0,!0),r&&(_n=r)})),Ut(P,pe,qn),as.add(I),I.syncRect=$n);const Qn=I.hooks=e.hooks||{};function eo(e,t,i){dn?hn.push([e,t,i]):e in Qn&&Qn[e].forEach((e=>{e.call(null,I,t,i)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)Qn[t]=(Qn[t]||[]).concat(e.hooks[t])}));const to=(e,t,i)=>i,io=ct({key:null,setSeries:!1,filters:{pub:Xe,sub:Xe},scales:[He,be[1]?be[1].scale:null],match:[ze,ze,to],values:[null,null]},zi.sync);2==io.match.length&&io.match.push(to),zi.sync=io;const so=io.key,no=Ri(so);function oo(e,t,i,s,n,o,l){io.filters.pub(e,t,i,s,n,o,l)&&no.pub(e,t,i,s,n,o,l)}function lo(){eo("init",e,t),Fs(t||e.data,!1),dt[He]?mn(He,dt[He]):Ps(),Ci=wn.show&&(wn.width>0||wn.height>0),Oi=Ui=!0,Ni(e.width,e.height)}return no.sub(I),I.pub=function(e,t,i,s,n,o,l){io.filters.sub(e,t,i,s,n,o,l)&&Jn[e](null,t,i,s,n,o,l)},I.destroy=function(){no.unsub(I),as.delete(I),Pt.clear(),le(N,z,Zn),te.remove(),St?.remove(),eo("destroy")},be.forEach(Qi),Me.forEach((function(e,t){if(e._show=e.show,e.show){let i=e.side%2,s=Fe[e.scale];null==s&&(e.scale=i?be[1].scale:He,s=Fe[e.scale]);let n=s.time;e.size=Ue(e.size),e.space=Ue(e.space),e.rotate=Ue(e.rotate),tt(e.incrs)&&e.incrs.forEach((e=>{!Ke.has(e)&&Ke.set(e,qe(e))})),e.incrs=Ue(e.incrs||(2==s.distr?Ot:n?1==ye?jt:Ht:Lt)),e.splits=Ue(e.splits||(n&&1==s.distr?gt:3==s.distr?gi:4==s.distr?mi:pi)),e.stroke=Ue(e.stroke),e.grid.stroke=Ue(e.grid.stroke),e.ticks.stroke=Ue(e.ticks.stroke),e.border.stroke=Ue(e.border.stroke);let o=e.values;e.values=tt(o)&&!tt(o[0])?Ue(o):n?tt(o)?Wt(ft,Vt(o,pt)):nt(o)?function(e,t){let i=wt(t);return(t,s,n,o,l)=>s.map((t=>i(e(t))))}(ft,o):o||mt:o||fi,e.filter=Ue(e.filter||(s.distr>=3&&10==s.log?Ei:3==s.distr&&2==s.log?Si:$e)),e.font=Es(e.font),e.labelFont=Es(e.labelFont),e._size=e.size(I,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(es[t]=!0,e._el=q(c,ae))}})),i?i instanceof HTMLElement?(i.appendChild(te),lo()):i(I,lo):lo(),I}xs.assign=ct,xs.fmtNum=ye,xs.rangeNum=ge,xs.rangeLog=ue,xs.rangeAsinh=ce,xs.orient=Ui,xs.pxRatio=Y,xs.join=function(e,t){if(function(e){let t=e[0][0],i=t.length;for(let s=1;s<e.length;s++){let n=e[s][0];if(n.length!=i)return!1;if(n!=t)for(let e=0;e<i;e++)if(n[e]!=t[e])return!1}return!0}(e)){let t=e[0].slice();for(let i=1;i<e.length;i++)t.push(...e[i].slice(1));return function(e,t=100){const i=e.length;if(i<=1)return!0;let s=0,n=i-1;for(;s<=n&&null==e[s];)s++;for(;n>=s&&null==e[n];)n--;if(n<=s)return!0;const o=Oe(1,Se((n-s+1)/t));for(let l=e[s],r=s+o;r<=n;r+=o){const t=e[r];if(null!=t){if(t<=l)return!1;l=t}}return!0}(t[0])||(t=function(e){let t=e[0],i=t.length,s=Array(i);for(let o=0;o<s.length;o++)s[o]=o;s.sort(((e,i)=>t[e]-t[i]));let n=[];for(let o=0;o<e.length;o++){let t=e[o],l=Array(i);for(let e=0;e<i;e++)l[e]=t[s[e]];n.push(l)}return n}(t)),t}let i=new Set;for(let l=0;l<e.length;l++){let t=e[l][0],s=t.length;for(let e=0;e<s;e++)i.add(t[e])}let s=[Array.from(i).sort(((e,t)=>e-t))],n=s[0].length,o=new Map;for(let l=0;l<n;l++)o.set(s[0][l],l);for(let l=0;l<e.length;l++){let i=e[l],r=i[0];for(let e=1;e<i.length;e++){let a=i[e],u=Array(n).fill(void 0),c=t?t[l][e]:1,d=[];for(let e=0;e<a.length;e++){let t=a[e],i=o.get(r[e]);null===t?0!=c&&(u[i]=t,2==c&&d.push(i)):u[i]=t}dt(u,d,n),s.push(u)}}return s},xs.fmtDate=wt,xs.tzDate=function(e,t){let i;return"UTC"==t||"Etc/UTC"==t?i=new Date(+e+6e4*e.getTimezoneOffset()):t==Et?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:t})),i.setMilliseconds(e.getMilliseconds())),i},xs.sync=Ri;{xs.addGap=function(e,t,i){let s=e[e.length-1];s&&s[0]==t?s[1]=i:e.push([t,i])},xs.clipGaps=Xi;let e=xs.paths={points:ts};e.linear=os,e.stepped=function(e){const t=me(e.align,1),i=me(e.ascDesc,!1),s=me(e.alignGaps,0),n=me(e.extend,!1);return(e,o,l,r)=>Ui(e,o,((a,u,c,d,h,f,p,g,m,_,v)=>{let y=a.pxRound,{left:b,width:w}=e.bbox,E=e=>y(f(e,d,_,g)),S=e=>y(p(e,h,v,m)),x=0==d.ori?Wi:Gi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},T=A.stroke,O=d.dir*(0==d.ori?1:-1);l=ae(c,l,r,1),r=ae(c,l,r,-1);let L=S(c[1==O?l:r]),I=E(u[1==O?l:r]),D=I,M=I;n&&-1==t&&(M=b,x(T,M,L)),x(T,I,L);for(let e=1==O?l:r;e>=l&&e<=r;e+=O){let i=c[e];if(null==i)continue;let s=E(u[e]),n=S(i);1==t?x(T,s,L):x(T,D,n),x(T,s,n),L=n,D=s}let k=D;n&&1==t&&(k=b+w,x(T,k,L));let[C,R]=Ni(e,o);if(null!=a.fill||0!=C){let t=A.fill=new Path2D(T),i=S(a.fillTo(e,o,a.min,a.max,C));x(t,k,i),x(t,M,i)}if(!a.spanGaps){let n=[];n.push(...zi(u,c,l,r,O,E,s));let h=a.width*Y/2,f=i||1==t?h:-h,p=i||-1==t?-h:h;n.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=n=a.gaps(e,o,l,r,n),A.clip=Xi(n,d.ori,g,m,_,v)}return 0!=R&&(A.band=2==R?[ji(e,o,l,r,T,-1),ji(e,o,l,r,T,1)]:ji(e,o,l,r,T,R)),A}))},e.bars=function(e){const t=me((e=e||Je).size,[.6,Re,1]),i=e.align||0,s=e.gap||0;let n=e.radius;n=null==n?[0,0]:"number"==typeof n?[n,0]:n;const o=Ue(n),l=1-t[0],r=me(t[1],Re),a=me(t[2],1),u=me(e.disp,Je),c=me(e.each,(e=>{})),{fill:d,stroke:h}=u;return(e,t,n,f)=>Ui(e,t,((p,g,m,_,v,y,b,w,E,S,x)=>{let A,T,O=p.pxRound,L=i,I=s*Y,D=r*Y,M=a*Y;0==_.ori?[A,T]=o(e,t):[T,A]=o(e,t);const k=_.dir*(0==_.ori?1:-1);let C,R,F,P=0==_.ori?Ki:qi,U=0==_.ori?c:(e,t,i,s,n,o,l)=>{c(e,t,i,n,s,l,o)},N=me(e.bands,Qe).find((e=>e.series[0]==t)),$=null!=N?N.dir:0,j=p.fillTo(e,t,p.min,p.max,$),X=O(b(j,v,x,E)),z=S,H=O(p.width*Y),B=!1,V=null,W=null,G=null,K=null;null==d||0!=H&&null==h||(B=!0,V=d.values(e,t,n,f),W=new Map,new Set(V).forEach((e=>{null!=e&&W.set(e,new Path2D)})),H>0&&(G=h.values(e,t,n,f),K=new Map,new Set(G).forEach((e=>{null!=e&&K.set(e,new Path2D)}))));let{x0:q,size:Z}=u;if(null!=q&&null!=Z){L=1,g=q.values(e,t,n,f),2==q.unit&&(g=g.map((t=>e.posToVal(w+t*S,_.key,!0))));let i=Z.values(e,t,n,f);R=2==Z.unit?i[0]*S:y(i[0],_,S,w)-y(0,_,S,w),z=ls(g,m,y,_,S,w,z),F=z-R+I}else z=ls(g,m,y,_,S,w,z),F=z*l+I,R=z-F;F<1&&(F=0),H>=R/2&&(H=0),F<5&&(O=Ne);let J=F>0;R=O(Pe(z-F-(J?H:0),M,D)),C=(0==L?R/2:L==k?0:R)-L*k*((0==L?I/2:0)+(J?H/2:0));const Q={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ee=B?null:new Path2D;let te=null;if(null!=N)te=e.data[N.series[1]];else{let{y0:i,y1:s}=u;null!=i&&null!=s&&(m=s.values(e,t,n,f),te=i.values(e,t,n,f))}let ie=A*R,se=T*R;for(let i=1==k?n:f;i>=n&&i<=f;i+=k){let s=m[i];if(null==s)continue;if(null!=te){let e=te[i]??0;if(s-e==0)continue;X=b(e,v,x,E)}let n=y(2!=_.distr||null!=u?g[i]:i,_,S,w),o=b(me(s,j),v,x,E),l=O(n-C),r=O(Oe(o,X)),a=O(Te(o,X)),c=r-a;if(null!=s){let n=s<0?se:ie,o=s<0?ie:se;B?(H>0&&null!=G[i]&&P(K.get(G[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o),null!=V[i]&&P(W.get(V[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o)):P(ee,l,a+Se(H/2),R,Oe(0,c-H),n,o),U(e,t,i,l-H/2,a,R+H,c)}}return H>0?Q.stroke=B?K:ee:B||(Q._fill=0==p.width?p._fill:p._stroke??p._fill,Q.width=0),Q.fill=B?W:ee,Q}))},e.spline=function(e){return function(e,t){const i=me(t?.alignGaps,0);return(t,s,n,o)=>Ui(t,s,((l,r,a,u,c,d,h,f,p,g,m)=>{let _,v,y,b=l.pxRound,w=e=>b(d(e,u,g,f)),E=e=>b(h(e,c,m,p));0==u.ori?(_=Bi,y=Wi,v=Qi):(_=Vi,y=Gi,v=es);const S=u.dir*(0==u.ori?1:-1);n=ae(a,n,o,1),o=ae(a,n,o,-1);let x=w(r[1==S?n:o]),A=x,T=[],O=[];for(let e=1==S?n:o;e>=n&&e<=o;e+=S)if(null!=a[e]){let t=w(r[e]);T.push(A=t),O.push(E(a[e]))}const L={stroke:e(T,O,_,y,v,b),fill:null,clip:null,band:null,gaps:null,flags:Fi},I=L.stroke;let[D,M]=Ni(t,s);if(null!=l.fill||0!=D){let e=L.fill=new Path2D(I),i=E(l.fillTo(t,s,l.min,l.max,D));y(e,A,i),y(e,x,i)}if(!l.spanGaps){let e=[];e.push(...zi(r,a,n,o,S,w,i)),L.gaps=e=l.gaps(t,s,n,o,e),L.clip=Xi(e,u.ori,f,p,g,m)}return 0!=M&&(L.band=2==M?[ji(t,s,n,o,I,-1),ji(t,s,n,o,I,1)]:ji(t,s,n,o,I,M)),L}))}(rs,e)}}},20500:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerieFocusColors=t.getFocusedColor=void 0;const i=[0,0,0,.6];class s{static parseRgba(e){const t=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d+\.?\d*)?\s*\)/);return t?[t[1],t[2],t[3],t[4]||1].map(Number):null}parse(e="000"){const t=e.startsWith("var(--");let i,s=e,n=!0;const o=this.context,l=o.style.color;return t||e.startsWith("--")?(n=!1,i=t?e.slice(4,-1):e):e.startsWith("#")||e.startsWith("rgb")||(o.style.color=e,i="color",n=!1),s=n?s:getComputedStyle(o).getPropertyValue(i),o.style.color=l,s}setContext(e){this.context=e}rgba(e){return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}toRgba(e,t){return s.parseRgba(this.parse(e))||t}shade([e,t,i,s],n){const o=n<0,l=o?0:255*n,r=o?1+n:1-n;return"rgba("+Math.round(e*r+l)+","+Math.round(t*r+l)+","+Math.round(i*r+l)+","+s+")"}}t.default=s;t.getFocusedColor=(e,t)=>{const n=e.utils.theme.SHIFT,o=e.uplot.series[t],l=s.parseRgba(o.color)||i;return e.utils.colors.shade(l,n)};t.getSerieFocusColors=(e,t)=>(i,s)=>{const n=i.series[s];return!1===n._focus?n.getFocusedColor(e,s):n[t]}},23936:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltipState=void 0;const r=o(i(59284)),a=l(i(37100));t.default=r.forwardRef((function({id:e,config:t,className:i="",debug:s,onChartLoad:n,onSelect:o,update:l="dynamic"},u){const c=r.useRef(null),d=r.useRef();r.useImperativeHandle(u,(()=>({yagr:()=>d.current,domElement:()=>c.current})));const h=r.useCallback((()=>{if(c.current){t.hooks=t.hooks||{};const e=t.hooks;if(n){const t=e.load||[];t.push((({chart:e,meta:t})=>{n(e,t)})),e.load=t}if(o){const t=e.onSelect||[];t.push((({from:e,to:t})=>o(e,t))),e.onSelect=t}d.current=new a.default(c.current,t)}}),[]);r.useEffect((()=>{var e;t&&(null===(e=d.current)||void 0===e||e.setConfig(t,"hard"===l))}),[t]),r.useEffect((()=>(h(),()=>{var e;null===(e=d.current)||void 0===e||e.dispose(),d.current=void 0})),[]);const f=r.useCallback((e=>{if(d.current&&(e.ctrlKey||e.metaKey)&&e.shiftKey){const e=d.current.toDataUrl().replace("image/png","image/octet-stream"),t=document.createElement("a");t.href=e,t.download=((null===s||void 0===s?void 0:s.filename)||d.current.id)+".png",t.click()}}),[e,d]);return r.createElement("div",{id:e,onClick:f,className:`yagr ${i}`,ref:c})}));t.useTooltipState=(e,t)=>{r.useEffect((()=>{var i;if(!e.current||!t.current)return;const s=t.current,n=e.current.yagr();n&&(null===(i=null===n||void 0===n?void 0:n.plugins)||void 0===i?void 0:i.tooltip)&&(n.plugins.tooltip.on("render",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})))}),[e.current])}},24793:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configureAxes=t.updateAxis=t.getRedrawOptionsForAxesUpdate=t.getTimeFormatter=t.getDefaultNumberFormatter=t.getAxisPositioning=void 0;const r=l(i(16381)),a=o(i(46976)),u=i(50497),c=i(48643),d={right:c.Axis.Side.Right,top:c.Axis.Side.Top,bottom:c.Axis.Side.Bottom,left:c.Axis.Side.Left},h={left:c.Axis.Align.Right,right:c.Axis.Align.Left,top:void 0,bottom:void 0};t.getAxisPositioning=(e,t)=>({side:e?d[e]:c.Axis.Side.Left,align:t||(e?h[e]:void 0)});t.getDefaultNumberFormatter=(e,t="")=>i=>{if((0,u.isNil)(i))return t;if(0===i)return"0";const s=Math.abs(i),n="auto"===e?2:e,[o,l]=(0,u.getUnitSuffix)(s),r=i/o;return("auto"===e?String(r).replace(/\.(\d{5,})/,(e=>e.slice(0,6))):(0,u.toFixed)(r,n))+l};const f=e=>{const i=e.precision,s=(0,t.getDefaultNumberFormatter)("number"===typeof i?i:i||"auto","");return function(e,t){return t.map(s)}},p=r.default.fmtDate("{DD}.{MM}.{YYYY}"),g=r.default.fmtDate("{HH}:{mm}:{ss}"),m=r.default.fmtDate("{mm}:{ss}"),_=r.default.fmtDate("{mm}:{ss}.{fff}"),v=r.default.fmtDate("{YYYY}");function y(e,t){let i=p;const s=Math.ceil(e/t);return s<=a.SECOND?i=_:s<=a.MINUTE?i=m:s<=a.DAY?i=g:s>=a.YEAR&&(i=v),e=>i(new Date(e))}function b(e,i){var s,n;const o=i.utils.theme,l=i.config,r={splits:e.splitsCount?(c=e.splitsCount,(e,t,i,s)=>{if(c<=2)return[i,s];const n=Math.abs(s-i)/(c-1);let o=n;const l=[];for(;i+o<s;)l.push(i+o),o+=n;return[i,...l,s]}):e.splits,show:"undefined"===typeof e.show||e.show,label:e.label||void 0,labelSize:e.labelSize||a.Y_AXIS_LABEL_SIZE,labelFont:e.labelFont||a.AXIS_LABEL_FONT,font:e.font||a.AXIS_VALUES_FONT,stroke:e.stroke||(()=>o.AXIS_STROKE),ticks:e.ticks?{...o.Y_AXIS_TICKS,...e.ticks}:o.Y_AXIS_TICKS,grid:l.grid||e.grid||o.GRID};var c;return e.scale===a.DEFAULT_X_SCALE?Object.assign(r,{getFormatter:y,gap:null!==(s=e.gap)&&void 0!==s?s:a.X_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||(()=>a.X_AXIS_SIZE),values:e.values||(0,t.getTimeFormatter)(l),ticks:e.ticks?{...o.X_AXIS_TICKS,...e.ticks}:o.X_AXIS_TICKS,scale:a.DEFAULT_X_SCALE,space:e.space||(()=>a.X_AXIS_SPACE),incrs:e.incrs||(()=>a.X_AXIS_INCRS.map((e=>e*(l.chart.timeMultiplier||a.TIME_MULTIPLIER)))),side:2,stroke:e.stroke||(()=>o.AXIS_STROKE)}):(Object.assign(r,{gap:null!==(n=e.gap)&&void 0!==n?n:a.Y_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||a.Y_AXIS_SIZE,values:e.values||f(e),scale:e.scale||a.DEFAULT_Y_SCALE,getFormatter:()=>(0,t.getDefaultNumberFormatter)("number"===typeof e.precision?e.precision:e.precision||"auto",""),...(0,t.getAxisPositioning)(e.side||"left",e.align)}),e.space&&(r.space=e.space),r)}function w(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(0,u.px)(t=Math.round((i=Number(s))*window.devicePixelRatio)))),t,i]}t.getTimeFormatter=e=>{const t=e.chart.timeMultiplier||a.TIME_MULTIPLIER;return(e,i)=>{const s=y((i[i.length-1]-i[0])/t,i.length);return i.map((e=>s(e/t)))}},t.getRedrawOptionsForAxesUpdate=function(e){const t=[!1,!0];return Object.values(e).forEach((e=>{["align","side","size","label","labelFont","labelGap","labelSize"].some((t=>void 0!==e[t]))&&(t[1]=!0)})),t},t.updateAxis=function(e,t,i){var s,n,o;const l=b({...i,font:t.font},e);l.ticks={...t.ticks,...l.ticks},l.grid={...t.grid,...l.grid},l.border={...t.border,...l.border},l.splits=l.splits||t.splits,i.font&&i.font!==(null===(s=t.font)||void 0===s?void 0:s[0])&&(l.font=w(i.font)),i.labelFont&&i.labelFont!==(null===(n=t.labelFont)||void 0===n?void 0:n[0])&&(l.labelFont=w(i.labelFont)),Object.assign(t,l),null===(o=e.plugins.plotLines)||void 0===o||o.update(i.plotLines,i.scale)},t.configureAxes=function(e,t){const i=[];Object.entries(t.axes).forEach((([t,s])=>{i.push(b({...s,scale:t},e))}));const s=a.DEFAULT_X_SCALE,n=a.DEFAULT_Y_SCALE;return t.axes[s]||i.push(b({scale:s},e)),i.find((({scale:e})=>e!==s))||i.push(b({scale:n},e)),i}},25700:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(48840)),o=i(46976),l=i(50497),r=i(74947),a=i(48130),u=(e,t,i,s,n)=>{var o,r,a;const u=Array.isArray(i.$c)?i.$c:t;let c=u[s];if(n&&c===n.value){const e=null!==(o=n.snapToValues)&&void 0!==o?o:"closest";c=u[(0,l.findDataIdx)(u,i,s,e,n.value)]}else if(null===c){const t=null!==(r=e.snapToValues)&&void 0!==r?r:"closest",n=null!==(a=i.snapToValues)&&void 0!==a?a:t;c=u[(0,l.findDataIdx)(u,i,s,n,null)]}return c},c={maxLines:o.TOOLTIP_DEFAULT_MAX_LINES,highlight:!0,sum:!1,render:r.renderTooltip,pinable:!0,strategy:"pin",sort:void 0,showIndicies:!1,hideNoData:!1,className:"yagr-tooltip_default",xOffset:o.TOOLTIP_X_OFFSET,yOffset:o.TOOLTIP_Y_OFFSET,virtual:!1,showEmpty:!1,onUpdate:"reset"};class d{constructor(e,t={}){var i,s;this.handlers={init:[],mount:[],show:[],pin:[],unpin:[],hide:[],render:[],destroy:[],reset:[]},this.placement=n.default,this.renderTooltipCloses=()=>{},this.skipNextMouseUp=!1,this.emit=(e,t)=>{this.handlers[e].forEach((i=>{i(this.tOverlay,{state:this.state,actions:{pin:this.pin,show:this.show,hide:this.hide,dispose:this.dispose,reset:this.reset},data:t,yagr:this.yagr,event:e})}))},this.reset=()=>{var e;"none"!==this.opts.onUpdate?(this.state.visible&&this.hide(),this.state.pinned&&this.pin(!1),this.emit("reset")):null===(e=this.yagr.plugins.cursor)||void 0===e||e.pin(!1)},this.show=()=>{const e=!this.state.visible;this.state.visible=!0,this.tOverlay.style.display="block",e&&this.emit("show")},this.hide=()=>{const e=this.state.visible;this.state.visible=!1,this.tOverlay.style.display="none",this.emit("hide"),e&&this.emit("show")},this.pin=(e,t)=>{var i;this.state.pinned=e;const s=this.state.range||[];if(null===(i=this.yagr.plugins.cursor)||void 0===i||i.pin(e&&(null===s[1]||s.length<2)),this.opts.virtual)return this.emit(e?"pin":"unpin");t&&this.placement(this.tOverlay,{left:t.x+this.bLeft,top:this.bTop+t.y-(this.opts.yOffset||0)},"right",{bound:this.bound,xOffset:this.opts.xOffset,yOffset:this.opts.yOffset});const n=this.tOverlay.querySelector("._tooltip-list");e?(this.state.visible||this.show(),this.tOverlay.classList.add("yagr-tooltip_pinned"),n&&(null===n||void 0===n?void 0:n.clientHeight)&&(n.style.height=(0,l.px)(n.clientHeight)),this.opts.render===r.renderTooltip&&(document.addEventListener("mousemove",this.checkFocus),document.addEventListener("mousedown",this.detectClickOutside))):(this.tOverlay.classList.remove("yagr-tooltip_pinned"),this.opts.render===r.renderTooltip&&(document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside))),this.emit(e?"pin":"unpin")},this.checkFocus=e=>{const t=e.target;let i;t&&this.tOverlay.contains(t)&&t.classList.contains("yagr-tooltip__item")&&(i=t.dataset.series);const s=i?this.yagr.uplot.series[Number(i)]:null;i&&s?(this.state.focusedSeries=i,this.yagr.setFocus(s.id,!0)):this.state.focusedSeries&&(this.state.focusedSeries=null,this.yagr.setFocus(null,!0))},this.render=e=>{const t=this.yagr.uplot;let{left:i,top:s}=e;const{idx:n}=e,{opts:r,state:d}=this;if(r.show&&"function"===typeof r.show&&!1===r.show(this.yagr))return void this.hide();(i<0||s<0)&&!d.pinned&&this.isNotInDrag&&this.hide(),s=(0,l.inBetween)(s,0,t.bbox.top+t.bbox.height),i=(0,l.inBetween)(i,0,t.bbox.left+t.bbox.width);const{data:h}=t;if(null===h||(0,l.isNil)(n)||void 0===s)return;const f=h[0][n],p={},g={},m={};let _=t.series.length-1;for(;_>=1;){const e=t.series[_];if(!e.show){_-=1;continue}const i=e.scale||o.DEFAULT_Y_SCALE;m[i]=m[i]||[],m[i].push(_),_-=1}Object.entries(m).forEach((([e,o])=>{var c;g[e]=g[e]||{rows:[]};const d=g[e],h=Number(t.posToVal(s,e).toFixed(2)),f=(0,a.getOptionValue)(r.value,e);for(const i of o){const s=t.data[i],o=t.series[i];let l=u(this.yagr.config.cursor,s,o,n,this.interpolation),h=l;"string"===typeof l&&(h=l,l=null),(0,a.getOptionValue)(r.sum,e)&&(p[e]=p[e]||0,p[e]+=l||0);const g=s[n],m=o.$c&&o.$c[n]===this.stripValue?l:g;if(null===l&&r.hideNoData||!1===o.showInTooltip)continue;const _=null!==(c=o.precision)&&void 0!==c?c:(0,a.getOptionValue)(r.precision,e),v=o.formatter?o.formatter(h,o):f(h,_),y={id:o.id,name:o.name,dataValue:o.$c[n],originalValue:l,value:v,y:m,displayY:g,color:this.yagr.getSerieLegendColor(o),seriesIdx:i,rowIdx:d.rows.length?d.rows[d.rows.length-1].rowIdx+1:0};o.normalizedData&&(y.transformed=o.normalizedData[n]),o._transformed&&(y.transformed=s[n]),r.omitBy&&r.omitBy(y)||d.rows.push(y)}if((0,a.getOptionValue)(r.highlight,e)&&d.rows.length){const u=(0,a.getOptionValue)(r.tracking,e);let c=0;"area"===u?c=(0,l.findInRange)(d,h,(0,a.getOptionValue)(r.stickToRanges,e)):"sticky"===u?c=(0,l.findSticky)(d,h):"function"===typeof u&&(c=u(d,h,{x:t.posToVal(i,"x"),y:t.posToVal(s,e),idx:n,scale:e,series:this.yagr.series,serieIndicies:o,interpolation:this.interpolation})),null!==c&&(d.rows[c].active=!0)}const m=(0,a.getOptionValue)(r.sort,e);m&&d.rows.sort(m)}));if(!Object.values(g).some((({rows:e})=>e.length>0))&&!r.showEmpty)return void this.hide();this.onMouseEnter();const v=this.over.getBoundingClientRect();this.bLeft=v.left,this.bTop=v.top,this.bWidth=v.width;const y={left:i+this.bLeft,top:this.bTop+s-(r.yOffset||0)};this.renderTooltipCloses=()=>{const e={scales:Object.entries(g).map((([e,t])=>({scale:e,rows:t.rows,sum:p[e]}))),options:r,x:f},t=Object.values(g).some((({rows:e})=>e.filter((({id:e})=>{var t;return null===(t=this.yagr.getSeriesById(e))||void 0===t?void 0:t.show})).length>0));t||r.showEmpty?(r.virtual||(this.tOverlay.innerHTML=r.render({...e,state:d,yagr:this.yagr,defaultRender:c.render}),this.placement(this.tOverlay,y,"right",{bound:this.bound,xOffset:r.xOffset,yOffset:r.yOffset})),this.emit("render",{...e,anchor:y})):this.hide()},d.pinned||this.renderTooltipCloses()},this.initWithUplot=e=>{this.over=e.root.querySelector(".u-over"),this.over.addEventListener("mousedown",this.onMouseDown),this.over.addEventListener("mousemove",this.onMouseMove),this.over.addEventListener("mouseenter",this.onMouseEnter),this.over.addEventListener("mouseleave",this.onMouseLeave),document.addEventListener("mouseup",this.onMouseUp)},this.setSize=()=>{const e=this.over.getBoundingClientRect();this.bLeft=e.left,this.bTop=e.top},this.dispose=()=>{this.over.removeEventListener("mousedown",this.onMouseDown),this.over.removeEventListener("mousemove",this.onMouseMove),this.over.removeEventListener("mouseenter",this.onMouseEnter),this.over.removeEventListener("mouseleave",this.onMouseLeave),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside),this.tOverlay.remove(),this.state.mounted=!1,this.emit("destroy")},this.updateOptions=e=>{Object.assign(this.opts,e),this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`},this.on=(e,t)=>{this.handlers[e].push(t)},this.off=(e,t)=>{this.handlers[e]=this.handlers[e].filter((e=>e!==t))},this.detectClickOutside=e=>{const t=e.target;if(t instanceof Element){const e=t&&this.tOverlay.contains(t),i=t&&this.over.contains(t);e||i||(this.pin(!1),this.hide())}},this.onMouseDown=e=>{this.state.range=[this.getCursorPosition(),null],this.state.pinned&&(this.pin(!1),this.hide(),this.render({left:e.clientX-this.bLeft,top:e.clientY-this.bTop,idx:this.yagr.uplot.posToIdx(e.clientX-this.bLeft)}),this.skipNextMouseUp=!0)},this.onMouseMove=()=>{var e;(null===(e=this.state.range)||void 0===e?void 0:e.length)&&(this.state.range[1]=this.getCursorPosition())},this.setCursorLeaved=e=>{const t=this.over.getBoundingClientRect(),i=e.clientX,s=this.state.range,n=s[0],o=i-t.left>n.clientX,l=this.yagr.config.timeline;let r;o?(s[1]={clientX:this.bWidth,value:this.yagr.uplot.posToVal(this.bWidth,"x"),idx:l.length-1},r=s[1]):(s[1]=s[0],s[0]={clientX:0,value:this.yagr.uplot.posToVal(0,"x"),idx:0},r=s[0]),this.yagr.uplot.setCursor({left:r.clientX,top:e.clientY-t.top})},this.onMouseUp=e=>{if(null===this.state.range)return;const[t]=this.state.range||[];let i;if(i=e.target===this.over?this.getCursorPosition():this.state.range[1],"none"===this.opts.strategy)return;const s=t&&t.clientX===(null===i||void 0===i?void 0:i.clientX),n=t&&t.clientX!==(null===i||void 0===i?void 0:i.clientX),o=this.opts.strategy;(s&&!this.skipNextMouseUp&&"drag"!==o||n&&("all"===o||"drag"===o))&&(this.pin(!this.state.pinned),this.show(),this.renderTooltipCloses()),this.state.range=null,this.skipNextMouseUp=!1},this.onMouseEnter=()=>{this.show()},this.onMouseLeave=e=>{var t;const i=this.state.pinned;(null===(t=this.state.range)||void 0===t?void 0:t[0])&&this.setCursorLeaved(e),!i&&this.isNotInDrag&&this.hide()},this.defaultTooltipValueFormatter=(e,t)=>{const i=this.yagr.config.processing||{};return"string"===typeof e?i.nullValues&&i.nullValues.hasOwnProperty(e)?i.nullValues[e]:"-":"number"===typeof e?e.toFixed("number"===typeof t?t:"number"===typeof this.opts.precision?this.opts.precision:2):"-"},this.getCursorPosition=()=>{const e=this.yagr.uplot.cursor.left;return void 0===e?null:{clientX:e,value:this.yagr.uplot.posToVal(e,"x"),idx:this.yagr.uplot.posToIdx(e)}},this.yagr=e,this.over=null===(i=null===e||void 0===e?void 0:e.uplot)||void 0===i?void 0:i.over,this.opts={...c,strategy:t.pinable?"pin":c.strategy,tracking:"area"===(null===(s=e.config.chart.series)||void 0===s?void 0:s.type)?"area":"sticky",value:this.defaultTooltipValueFormatter,...t},this.bound=this.opts.boundClassName&&document.querySelector(this.opts.boundClassName)||document.body,this.renderNode=this.opts.renderClassName&&document.querySelector(this.opts.renderClassName)||document.body,this.tOverlay=document.createElement("div"),this.tOverlay.id=`${e.id}_tooltip`,this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`,this.tOverlay.style.display="none",this.state={mounted:!1,pinned:!1,visible:!1,range:null,focusedSeries:null},this.bLeft=0,this.bTop=0,this.bWidth=0,this.opts.virtual?this.placement=()=>{}:(this.renderNode.appendChild(this.tOverlay),this.state.mounted=!0,this.emit("mount"))}get interpolation(){var e;return null===(e=this.yagr.config.processing)||void 0===e?void 0:e.interpolation}get stripValue(){return this.interpolation?this.interpolation.value:void 0}get isNotInDrag(){var e;return"none"===this.opts.strategy||"pin"===this.opts.strategy||!(null===(e=this.state.range)||void 0===e?void 0:e[1])}}t.default=function(e,t={}){const i=new d(e,t),s=()=>({hooks:{destroy:()=>{i.dispose()},init:e=>{i.initWithUplot(e)},setSize:()=>{i.setSize()},setCursor:e=>{i.render(e.cursor)}}}),n=s();return{state:i.state,pin:i.pin,show:i.show,hide:i.hide,uplot:n,display:i.render,updateOptions:i.updateOptions,on:i.on,off:i.off,tooltip:i,dispose:i.dispose,reInit:function(e){const t=s();i.reset(),e.hooks.init.push(t.hooks.init),e.hooks.destroy.push(t.hooks.destroy),e.hooks.setSize.push(t.hooks.setSize),e.hooks.setCursor.push(t.hooks.setCursor)},reset:i.reset}}},27658:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByAxes=void 0;const l=o(i(46976));t.getPaddingByAxes=function(e){let t=!1,i=!1;return e.axes?e.axes.forEach((e=>{e.scale!==l.DEFAULT_X_SCALE&&(void 0!==e.side&&3!==e.side||(t=!0),1===e.side&&(i=!0))})):t=!0,t&&!i?l.PADDING_LEFT:i&&!t?l.PADDING_RIGHT:l.PADDING_BOTH}},28265:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.overrideSeriesInUpdate=t.configureSeries=void 0;const l=o(i(46976)),r=i(50497),a=i(20500),u=i(67903),c=i(88274);function d(e,t,i,s){if(void 0!==e[i])return e[i];const n=t.config.chart.series;return n&&i in n?n[i]:s}t.configureSeries=function(e,t,i){var s,n;const o=d(t,e,"type","line"),h={...t,type:o,show:null===(s=t.show)||void 0===s||s,name:t.name||`${e.utils.i18n("series")} ${i+1}`,color:t.color?e.utils.colors.parse(t.color):e.utils.theme.DEFAULT_LINE_COLOR,id:(void 0===t.id?t.name:String(t.id))||(0,r.genId)(),$c:t.data,scale:t.scale||l.DEFAULT_Y_SCALE,count:0,sum:0,avg:0,getFocusedColor:a.getFocusedColor};h.points=h.points||{};const f=(0,a.getSerieFocusColors)(e,"color");return"area"===h.type&&(h.lineColor=e.utils.colors.parse(d(t,e,"lineColor",l.SERIE_AREA_BORDER_COLOR)),h.lineWidth=d(t,e,"lineWidth",l.SERIE_AREA_BORDER_WIDTH),h.fill=f,h.stroke=(0,a.getSerieFocusColors)(e,"lineColor"),h.width=h.lineWidth,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"line"===h.type&&(h.width=d(t,e,"width",l.SERIE_LINE_WIDTH),h.width=h.width||l.SERIE_LINE_WIDTH,h.stroke=f,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"column"===h.type&&(h.stroke=f,h.fill=f,h.points.show=!1,h.width=null!==(n=h.width)&&void 0!==n?n:0,h.renderOptions=d(h,e,"renderOptions")),"dots"===h.type&&(h.stroke=()=>h.color,h.fill=f,h.width=2,h.pointsSize=d(h,e,"pointsSize",l.DEFAULT_POINT_SIZE)),h.paths=c.pathsRenderer,h};t.overrideSeriesInUpdate=(e,t)=>{var i,s,n,o,l,r,a,u,c,d,h,f;e.$c=null!==(i=t.$c)&&void 0!==i?i:e.$c,e.show=null!==(s=t.show)&&void 0!==s?s:e.show,e.data=null!==(n=t.data)&&void 0!==n?n:e.data,e.width=null!==(o=t.width)&&void 0!==o?o:e.width,e.pointsSize=null!==(l=t.pointsSize)&&void 0!==l?l:e.pointsSize,e.color=null!==(r=t.color)&&void 0!==r?r:e.color,e.lineColor=null!==(a=t.lineColor)&&void 0!==a?a:e.lineColor,e.lineWidth=null!==(u=t.lineWidth)&&void 0!==u?u:e.lineWidth,e.stroke=null!==(c=t.stroke)&&void 0!==c?c:e.stroke,e.getFocusedColor=null!==(d=t.getFocusedColor)&&void 0!==d?d:e.getFocusedColor,e.formatter=null!==(h=t.formatter)&&void 0!==h?h:e.formatter,e.paths=null!==(f=t.paths)&&void 0!==f?f:e.paths}},32532:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchMixin=void 0;const n=s(i(16381)),o=s(i(72168));t.BatchMixin=class{initMixin(){this._batch={active:!1,fns:[]}}batch(e){var t;return this._batch.active?e(this._batch):(this._batch.active=!0,e(this._batch),this._batch.reinit?this.fullUpdate():(this._batch.redrawLegend&&(null===(t=this.plugins.legend)||void 0===t||t.redraw()),this._batch.reopt&&this.createUplotOptions(!0),this._batch.recalc&&this.inStage("processing",(()=>{this.transformSeries()})).inStage("listen"),this._batch.fns.length&&this.uplot.batch((()=>this._batch.fns.forEach((e=>e(this._batch))))),this._batch.redraw&&this.uplot&&this.redraw(...this._batch.redraw),void(this._batch={active:!1,fns:[]})))}fullUpdate(){let e,t;this.inStage("dispose",(()=>{var i;if(this.uplot){const i=this.uplot.cursor;e=i.left,t=i.top,this.uplot.destroy()}null===(i=this.plugins.legend)||void 0===i||i.destroy()})).inStage("config",(()=>{this.plugins.legend=new o.default,this._batch={active:!1,fns:[]},this.createUplotOptions(!0),this.options=this.config.editUplotOptions?this.config.editUplotOptions(this.options):this.options})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new n.default(this.options,this.series,this.initRender),e&&t&&e>0&&t>0&&this.uplot.setCursor({left:e,top:t}),this.state.subscribed||this.unsubscribe()})).inStage("listen")}}},37100:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(i(16381)),a=l(i(72168)),u=i(50497),c=l(i(20500)),d=o(i(46976)),h=l(i(576)),f=i(2836),p=i(78229),g=i(65781),m=i(87102),_=i(32532);class v{get isEmpty(){return this.state.isEmptyDataSet}constructor(e,t){this.plugins={},this._meta={},this._uHooks={},this.init=()=>{var e;(null===(e=this.config.chart.size)||void 0===e?void 0:e.adaptive)&&!this.resizeOb&&(this.resizeOb=new ResizeObserver((0,u.debounce)(this.onResize,this.config.chart.size.resizeDebounceMs||100)),this.resizeOb.observe(this.root)),this.config.hooks.dispose||(this.config.hooks.dispose=[]),this.unsubscribe(),this.config.hooks.dispose.push(this.trackMouse())},this.execHooks=(e,...t)=>{const i=this.config.hooks[e];if(Array.isArray(i))for(const s of i)s&&"function"===typeof s&&s(...t)},this.initRender=(e,t)=>{var i,s,n;const o=null===(i=this.config.legend)||void 0===i?void 0:i.position;this.root.firstChild?o&&"bottom"!==o?this.root.appendChild(e.root):this.root.insertBefore(e.root,this.root.firstChild):o&&"bottom"!==o?this.root.insertBefore(e.root,this.root.firstChild):this.root.appendChild(e.root),(null===(s=this.config.legend)||void 0===s?void 0:s.show)&&(null===(n=this.plugins.legend)||void 0===n||n.init(e),this.reflow(!1)),this.initTitle(),t()},this.onResize=e=>{var t;const[i]=e;this._cache.height===i.contentRect.height&&this._cache.width===i.contentRect.width||(null===(t=this.plugins.tooltip)||void 0===t||t.reset(),this.reflow(),this.execHooks("resize",{entries:e,chart:this}))},this.initMixins(),this._startTime=performance.now(),this.state={isEmptyDataSet:!1,isMouseOver:!1,stage:"config",y2uIdx:{},subscribed:!1};const i=Object.assign({title:{},data:[],axes:{},series:[],scales:{},hooks:{},settings:{},chart:{},cursor:{},plugins:{},legend:{show:!1},tooltip:{show:!0},grid:null,markers:{}},t);this.config=i,this.inStage("config",(()=>{var t;this.id=e.id||(0,u.genId)(),this.root=e,this.root.classList.add("yagr"),this.root.id||(this.root.id=this.id);const s=new c.default,n=this.config.cursor.sync,o=this.config.chart;o.series||(o.series={type:"line"}),o.size||(o.size={adaptive:!0}),o.appearance||(o.appearance={locale:"en"}),o.select||(o.select={}),this.utils={colors:s,i18n:(0,h.default)((null===(t=i.chart.appearance)||void 0===t?void 0:t.locale)||"en"),theme:new d.default(s)},s.setContext(e),n&&(this.utils.sync=r.default.sync("string"===typeof n?n:d.DEFAULT_SYNC_KEY)),!o.size.adaptive&&o.size.width&&o.size.height&&(e.style.width=(0,u.px)(o.size.width),e.style.height=(0,u.px)(o.size.height)),this.plugins.legend=new a.default,this.setTheme(o.appearance.theme||"light"),this.createUplotOptions(),this._cache={height:this.options.height,width:this.options.width},i.editUplotOptions&&(this.options=i.editUplotOptions(this.options))})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new r.default(this.options,this.series,this.initRender),this.canvas=e.querySelector("canvas"),this.init();const t=performance.now()-this._startTime;this._meta.processTime=t})).inStage("render")}redraw(e=!0,t=!0){this.uplot.redraw(e,t)}getSeriesById(e){return this.uplot.series[this.state.y2uIdx[e]]}getSerieLegendColor(e){const{legendColorKey:t,color:i,lineColor:s}=e;let n=i;switch(t){case"lineColor":s&&(n=s);break;case"color":n=i}return n}dispose(){var e,t,i,s;this.resizeOb&&this.resizeOb.unobserve(this.root),this.unsubscribe(),null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t||t.dispose(),null===(s=null===(i=this.plugins)||void 0===i?void 0:i.legend)||void 0===s||s.destroy(),this.uplot.destroy(),this._uHooks={},this.execHooks("dispose",{chart:this})}toDataUrl(){return this.canvas.toDataURL("img/png")}subscribe(){var e;this.state.subscribed||(null===(e=this.utils.sync)||void 0===e||e.sub(this.uplot),this.state.subscribed=!0)}unsubscribe(){var e;null===(e=this.utils.sync)||void 0===e||e.unsub(this.uplot),this.state.subscribed=!1}inStage(e,t){this.state.stage,this.execHooks("stage",{chart:this,stage:e});try{t&&t()}catch(i){console.error(i),this.onError(i)}return this}initTitle(){if(this.config.title&&this.config.title.fontSize){const e=this.config.title.fontSize,t=this.root.querySelector(".u-title");t.setAttribute("style",`font-size:${e}px;line-height:${e}px;`),t.innerHTML=this.config.title.text}}onError(e){return this.execHooks("error",{stage:this.state.stage,error:e,chart:this}),e}trackMouse(){const e=()=>{this.state.isMouseOver=!0},t=()=>{this.state.isMouseOver=!1};return this.root.addEventListener("mouseover",e),this.root.addEventListener("mouseleave",t),()=>{this.root.removeEventListener("mouseover",e),this.root.removeEventListener("mouseleave",t)}}get clientHeight(){var e;const t=this.config.title.text?(this.config.title.fontSize||d.DEFAULT_TITLE_FONT_SIZE)+8:0;return this.root.clientHeight-t-((null===(e=this.plugins.legend)||void 0===e?void 0:e.state.totalSpace)||0)}reflow(e=!0){const t=this.root.clientWidth,i=this.clientHeight;this._cache.width=t,this.options.width=t,this._cache.height=i,this.options.height=i,e&&this.uplot.setSize({width:this.options.width,height:this.options.height}),e&&this.uplot.redraw()}}(0,m.applyMixins)(v,[f.CreateUplotOptionsMixin,p.TransformSeriesMixin,g.DynamicUpdatesMixin,_.BatchMixin]),t.default=v},46976:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_MULTIPLIER=t.TOOLTIP_DEFAULT_MAX_LINES=t.TOOLTIP_X_OFFSET=t.TOOLTIP_Y_OFFSET=t.MIN_SELECTION_WIDTH=t.CURSOR_STYLE=t.MARKER_DIAMETER=t.SERIE_AREA_BORDER_WIDTH=t.SERIE_AREA_BORDER_COLOR=t.SERIE_LINE_WIDTH=t.SERIE_COLOR=t.PADDING_BOTH=t.PADDING_RIGHT=t.PADDING_LEFT=t.BARS_DRAW_MAX=t.BARS_DRAW_FACTOR=t.TYPES_ORDER=t.X_AXIS_INCRS=t.X_AXIS_SPACE=t.X_AXIS_SIZE=t.X_AXIS_TICK_GAP=t.DECADE=t.YEAR=t.DAY=t.HOUR=t.MINUTE=t.SECOND=t.Y_AXIS_LABEL_SIZE=t.Y_AXIS_SIZE=t.DEFAULT_Y_AXIS_LABEL_PADDING=t.DEFAULT_Y_AXIS_PADDING=t.DEFAULT_Y_AXIS_SIZE=t.Y_AXIS_TICK_GAP=t.AXIS_VALUES_FONT=t.AXIS_LABEL_FONT=t.DEFAULT_AXIS_FONT_SIZE=t.DARK_DEFAULT_LINE_COLOR=t.LIGHT_DEFAULT_LINE_COLOR=t.DEFAULT_TITLE_FONT_SIZE=t.DEFAULT_SYNC_KEY=t.DEFAULT_POINT_SIZE=t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=t.DEFAULT_SCALE_MIN_RANGE=t.DEFAULT_Y_AXIS_OFFSET=t.DEFAULT_MAX_TICKS=t.DEFAULT_CANVAS_PIXEL_RATIO=t.DEFAULT_FOCUS_ALPHA=t.DEFAULT_Y_SCALE=t.DEFAULT_X_SCALE=t.DEFAULT_X_SERIE_NAME=void 0,t.DEFAULT_X_SERIE_NAME="date",t.DEFAULT_X_SCALE="x",t.DEFAULT_Y_SCALE="y",t.DEFAULT_FOCUS_ALPHA=.3,t.DEFAULT_CANVAS_PIXEL_RATIO="undefined"===typeof window?1:window.devicePixelRatio,t.DEFAULT_MAX_TICKS=5,t.DEFAULT_Y_AXIS_OFFSET=.05,t.DEFAULT_SCALE_MIN_RANGE=.01,t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=.001,t.DEFAULT_POINT_SIZE=t.DEFAULT_CANVAS_PIXEL_RATIO>=2?4:2,t.DEFAULT_SYNC_KEY="sync",t.DEFAULT_TITLE_FONT_SIZE=14,t.LIGHT_DEFAULT_LINE_COLOR="#222222",t.DARK_DEFAULT_LINE_COLOR="#eeeeee",t.DEFAULT_AXIS_FONT_SIZE=11,t.AXIS_LABEL_FONT="normal 11px Lucida Grande, Arial, Helvetica, sans-serif",t.AXIS_VALUES_FONT="11px Lucida Grande, Arial, Helvetica, sans-serif",t.Y_AXIS_TICK_GAP=6,t.DEFAULT_Y_AXIS_SIZE=12,t.DEFAULT_Y_AXIS_PADDING=12,t.DEFAULT_Y_AXIS_LABEL_PADDING=2;t.Y_AXIS_SIZE=(e,i,s)=>{if(!i)return t.DEFAULT_Y_AXIS_SIZE;const n=i.reduce(((e,t)=>e.length>t.length?e:t)),{ctx:o}=e;o.save();const l=e.axes[s];o.font=l.font?l.font[0]:t.AXIS_VALUES_FONT;const{width:r}=o.measureText(n);o.restore();let a=0;if(l.label){a=l.labelSize||t.DEFAULT_AXIS_FONT_SIZE,o.font=l.labelFont?l.labelFont[0]:t.AXIS_LABEL_FONT;const{fontBoundingBoxAscent:e}=o.measureText(l.label);a=e,o.restore()}return a?r/t.DEFAULT_CANVAS_PIXEL_RATIO+a/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_LABEL_PADDING:r/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_PADDING},t.Y_AXIS_LABEL_SIZE=11,t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.YEAR=365*t.DAY,t.DECADE=10*t.YEAR,t.X_AXIS_TICK_GAP=6,t.X_AXIS_SIZE=32,t.X_AXIS_SPACE=80,t.X_AXIS_INCRS=[1,10,50,100,200,500,t.SECOND,2*t.SECOND,5*t.SECOND,10*t.SECOND,15*t.SECOND,30*t.SECOND,t.MINUTE,5*t.MINUTE,10*t.MINUTE,30*t.MINUTE,t.HOUR,2*t.HOUR,3*t.HOUR,4*t.HOUR,6*t.HOUR,12*t.HOUR,t.DAY,2*t.DAY,3*t.DAY,5*t.DAY,10*t.DAY,15*t.DAY,30*t.DAY,60*t.DAY,120*t.DAY,180*t.DAY,t.YEAR,2*t.YEAR,5*t.YEAR,10*t.YEAR],t.TYPES_ORDER=["dots","line","area","column"],t.BARS_DRAW_FACTOR=.5,t.BARS_DRAW_MAX=100,t.PADDING_LEFT=[14,14,0,4],t.PADDING_RIGHT=[14,4,0,14],t.PADDING_BOTH=[14,4,0,4],t.SERIE_COLOR="rgba(0, 0, 0, 1)",t.SERIE_LINE_WIDTH=2,t.SERIE_AREA_BORDER_COLOR="rgba(0, 0, 0, 0.2)",t.SERIE_AREA_BORDER_WIDTH=1,t.MARKER_DIAMETER=8,t.CURSOR_STYLE="1px solid #ffa0a0",t.MIN_SELECTION_WIDTH=15;t.default=class{constructor(e,t="light"){this.setTheme(t),this.colors=e}setTheme(e){this.theme=e}get GRID(){return{show:!0,stroke:()=>this.colors.parse("--yagr-grid"),width:1}}get X_AXIS_TICKS(){return{size:8,...this.GRID}}get Y_AXIS_TICKS(){return{size:6,...this.GRID}}get AXIS_STROKE(){return this.colors.parse("--yagr-axis-stroke")}get BACKGROUND(){return this.colors.parse("--yagr-background")}get SHIFT(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?.68:-.6}get DEFAULT_LINE_COLOR(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?t.LIGHT_DEFAULT_LINE_COLOR:t.DARK_DEFAULT_LINE_COLOR}},t.TOOLTIP_Y_OFFSET=24,t.TOOLTIP_X_OFFSET=24,t.TOOLTIP_DEFAULT_MAX_LINES=10,t.TIME_MULTIPLIER=1},48130:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=t.getOptionValue=void 0,t.getOptionValue=function(e,t){return"object"===typeof e?e[t]:e},t.escapeHTML=function(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}},48643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=t.Scale=t.DrawOrderKey=void 0,t.DrawOrderKey={Series:"series",Axes:"axes"},t.Scale={Distr:{Linear:1,Ordinal:2,Logarithmic:3,ArcSinh:4,Custom:5}},t.Axis={Side:{Top:0,Right:1,Bottom:2,Left:3},Align:{Right:0,Left:1}}},48840:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(50497),n={size:["height","width"],clientSize:["clientHeight","clientWidth"],offsetSize:["offsetHeight","offsetWidth"],maxSize:["maxHeight","maxWidth"],before:["top","left"],marginBefore:["marginTop","marginLeft"],after:["bottom","right"],marginAfter:["marginBottom","marginRight"],scrollOffset:["pageYOffset","pageXOffset"],offset:["offsetY","offsetY"],offsetOpt:["yOffset","xOffset"],bodyScroll:["scrollHeight","scrollWidth"],inner:["innerHeight","innerWidth"]};function o(e){return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}t.default=function(e,t,i="bottom",l={}){let r;r=t instanceof Element||t instanceof Range?o(e.getBoundingClientRect()):t;const a=Object.assign({top:r.bottom||0,bottom:r.top||0,left:r.right||0,right:r.left||0},r),u={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l.bound&&((l.bound instanceof Element||l.bound instanceof Range)&&(l.bound=o(l.bound.getBoundingClientRect())),Object.assign(u,l.bound));const c=getComputedStyle(e),{primary:d,secondary:h}=Object.entries(n).reduce(((e,[t,s])=>({primary:{...e.primary,[t]:s["top"===i||"bottom"===i?0:1]},secondary:{...e.secondary,[t]:s["top"===i||"bottom"===i?1:0]}})),{primary:{},secondary:{}});e.style.position="absolute",e.style.maxWidth="",e.style.maxHeight="";const f=l[d.offsetOpt]||0,p=parseInt(c[h.marginBefore],10),g=p+parseInt(c[h.marginAfter],10),m=u[h.after]-u[h.before]-g,_=parseInt(c[h.maxSize],10);(!_||m<_)&&(e.style[h.maxSize]=(0,s.px)(m));const v=parseInt(c[d.marginBefore],10)+parseInt(c[d.marginAfter],10),y=a[d.before]-u[d.before]-v,b=u[d.after]-a[d.after]-v-f;(i===d.before&&e[d.offsetSize]>y||i===d.after&&e[d.offsetSize]>b)&&(i=y>b?d.before:d.after);const w=i===d.before?y:b,E=parseInt(c[d.maxSize],10);(!E||w<E)&&(e.style[d.maxSize]=(0,s.px)(w));const S=document.body[d.bodyScroll]-window[d.inner],x=Math.max(Math.min(window[d.scrollOffset],S),0),A=t=>Math.max(u[d.before],Math.min(t,u[d.after]-e[d.offsetSize]-v));i===d.before?(e.style[d.before]=x+A(a[d.before]-e[d.offsetSize]-v)-f+"px",e.style[d.after]="auto"):(e.style[d.before]=(0,s.px)(x+A(a[d.after])+f),e.style[d.after]="auto");const T=document.body[h.bodyScroll]-window[h.inner],O=Math.max(Math.min(window[h.scrollOffset],T),0);var L;return e.style[h.before]=(0,s.px)(O+(L=a[h.before]-p,Math.max(u[h.before],Math.min(L,u[h.after]-e[h.offsetSize]-g)))),e.style[h.after]="auto",e.dataset.side=i,{side:i,anchorRect:a,boundRect:u}}},50497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inBetween=t.isNil=t.asPlain=t.asFn=t.deepIsEqual=t.get=t.html=t.px=t.debounce=t.exec=t.preprocess=t.genId=t.findDataIdx=t.toFixed=t.getUnitSuffix=t.findSticky=t.getSumByIdx=t.findInRange=void 0;t.findInRange=(e,t,i=!0)=>{const s=t>=0;let n=-1/0,o=null,l=1/0,r=null;const a=[];let u=null;for(let c=e.rows.length-1;c>=0;c--){const i=e.rows[c],{displayY:d,rowIdx:h}=i;let f;null!==d&&(d>n&&(n=d,o=i.rowIdx),d<l&&(l=d,r=i.rowIdx)),f=null===d||(s?d<0:d>=0)?null:s?t>d?null:d-t:t<d?null:Math.abs(d-t);const p=null===u?1/0:a[u],g=null===f?p:Math.min(p,f);(null!==f&&p===f||g!==p)&&(u=h)}return null===u&&i?t>=n?o:t<=l?r:null:u};t.getSumByIdx=(e,t,i)=>{let s=0,n=0;for(;n<e.length;){const o=e[e.length-n-1],l=o.$c;if(n+=1,o.scale!==i||!1===o.show)continue;const r=l[t];s+="number"===typeof r?r:0}return s};t.findSticky=(e,t)=>{let i,s,n=0;for(;!s&&n<e.rows.length;){const o=e.rows[n].displayY;null!==o&&(i=n,s=Math.abs(o-(t||0))),n+=1}if(!s||void 0===i)return null;for(n=i+1;n<e.rows.length;n++){const o=e.rows[n].displayY;if(null===o)continue;const l=Math.abs(o-t);s>l&&(s=l,i=n)}return i};t.getUnitSuffix=e=>e>=1e18?[1e18,"E"]:e>=1e15?[1e15,"P"]:e>=1e12?[1e12,"T"]:e>=1e9?[1e9,"G"]:e>=1e6?[1e6,"M"]:e>=1e3?[1e3,"K"]:[1,""],t.toFixed=function(e,t){if(0===t)return parseInt(e);if(Number.isInteger(e))return e+"."+"0".repeat(t);const[i,s]=e.toString().split(".");return s.length>=t?`${i}.${s.slice(0,t)}`:`${i}.${s}${"0".repeat(t-s.length)}`},t.findDataIdx=function(e,t,i,s="closest",n=null){var o;let l=i,r=i;const a=null!==(o=t.snapToValues)&&void 0!==o?o:s;if(!1===a)return i;if("left"===a||"closest"===a)for(let u=i-1;u>=0;u--)if(e[u]!==n){l=u;break}if("right"===a||"closest"===a)for(let u=i+1;u<e.length;u++)if(e[u]!==n){r=u;break}return"left"===a?l:"right"===a?r:r-i>i-l?l:r};const i=(e,t,i,s,n,o,l,r="linear")=>{let a=null;const u=e[o];switch(r){case"linear":if(null===t||null===i)return null;a=t+(u-s)*(i-t)/(n-s),(isNaN(a)||Math.abs(a)===1/0)&&(a=null);break;case"previous":a=t;break;case"next":a=i;break;case"left":a=l[l.length-1]===e.length-1||null===i?null:t;break;case"right":a=0===l[0]?null:i;break;case"closest":a=Math.abs(s-e[o])<Math.abs(n-e[o])?t:i;break;default:a=r}return a};t.genId=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);t.preprocess=(e,t,s)=>{const n=[],o=s.nullValues||{},l=s.interpolation;for(let r=0;r<e.length;r++){const s=e[r],a=[];let u,c,d=[],h=null,f=null;for(let e=0;e<s.length;e++){let n=s[e];if(l&&n===l.value)d.push(e);else{if(o[n]&&(n=null),d.length){f=n,c=t[e];for(const e of d)a[e]=i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type);d=[]}h=n,u=t[e],a.push(n)}}if(f=null,d.length)for(const e of d)a.push(i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type));n.push(a)}return n};t.exec=(e,...t)=>"function"===typeof e?e(...t):e,t.debounce=function(e,t=300){let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};t.px=e=>e+"px";function s(e){return null===e||void 0===e}t.html=(e,t={},i)=>{const s=document.createElement(e);return Object.keys(t).forEach((e=>{const i=t[e];s.setAttribute(e,"object"===typeof i?Object.entries(i).map((([e,t])=>`${e}:${t}`)).join(";"):i)})),i&&("string"===typeof i?s.innerHTML=i:s.appendChild(i)),s},t.get=function(e,t){return t.split(".").reduce(((e,t)=>{var i,s;return null!==(s=null===(i=Object.getOwnPropertyDescriptor(e,t))||void 0===i?void 0:i.value)&&void 0!==s?s:{}}),e)},t.deepIsEqual=function e(t,i){if(typeof t!==typeof i)return!1;if("function"!==typeof t&&"function"!==typeof i||(t=t.toString(),i=i.toString()),"object"!==typeof t||s(t)||s(i))return t===i;const n=t,o=i,l=Object.keys(n),r=Object.keys(o);if(l.length!==r.length)return!1;for(const s of l){if(!o.hasOwnProperty(s))return!1;if(!e(n[s],o[s]))return!1}return!0},t.asFn=function(e){return"function"===typeof e||"undefined"===typeof e?e:()=>e},t.asPlain=function(e){return"function"===typeof e?e():e},t.isNil=s,t.inBetween=function(e,t,i){return e>=t&&e<=i?e:e<t?t:i}},60758:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPoint=void 0;const n=i(46976),o=s(i(20500)),l=i(50497);function r(e,t,i){if(i||(i=t.querySelector("span")),!i)return;t.style.background=`${e.color}`,i.style.background=e.color||n.SERIE_COLOR;const s=o.default.parseRgba(e.color)||[256,256,256,0];t.style.boxShadow=`0px 0px 0px 1px rgba(${s[0]}, ${s[1]}, ${s[2]}, 0.5)`}function a(e,t){const i=e.series[t],s=(0,l.html)("span"),n=(0,l.html)("div",{class:"yagr-point","data-idx":String(t)},i.empty?void 0:s);return i.empty?(n.style.display="none",n):(r(i,n,s),n)}function u(e,t){return void 0===t?Array.from(e.querySelectorAll(".yagr-point")):[e.querySelector(`.yagr-point[data-idx="${t}"]`)]}t.cursorPoint=a,t.default=function(e,t){var i,s,o;const c=e.config.processing||{},d=Boolean(c.interpolation),h=null===(i=c.interpolation)||void 0===i?void 0:i.value,f=!1!==t.snapToValues&&(t.snapToValues||"closest"),p=!!d&&(null!==(o=null===(s=c.interpolation)||void 0===s?void 0:s.snapToValues)&&void 0!==o?o:"closest");let g={};const m=(e,t,i)=>{const s=e.series[t];if(s.scale===n.DEFAULT_X_SCALE)return i;const o=s.$c||e.data[t],r=o[i];return d&&r===h?(0,l.findDataIdx)(o,s,i,p,h):null===r?(0,l.findDataIdx)(o,s,i,f,null):i};return{showPoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="visible"}))},hidePoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="hidden"}))},pin:t=>{var i;const s=e.root.querySelector(".u-over");if(s)if(t){const e=document.createElement("div");e.classList.add("yagr-points-holder"),s.querySelectorAll(".yagr-point").forEach((t=>{const i=t.cloneNode(!0);e.appendChild(i);const s=i.dataset.idx;s&&(g[s]=i)})),s.appendChild(e)}else g={},null===(i=s.querySelector(".yagr-points-holder"))||void 0===i||i.remove()},updatePoints:()=>{e.root.querySelectorAll(".yagr-point").forEach((t=>{const i=Number(t.dataset.idx);if(isNaN(i))return;r(e.uplot.series[i],t)}))},focus:(e,t)=>{Object.entries(g).forEach((([i,s])=>{s.style.display=null!==e?i===String(e)&&t?"block":"none":t?"block":"none"}))},uplot:{opts:(e,i)=>{var s;i.cursor=i.cursor||{};const o=i.series.filter((e=>e.empty)).length,l=i.series.length-1,r=null!==(s=null===t||void 0===t?void 0:t.maxMarkers)&&void 0!==s?s:50;i.cursor.points={show:l-o<=r&&a,size:(e,i)=>{const s=e.series[i];return(s.cursorOptions?s.cursorOptions.markersSize:null===t||void 0===t?void 0:t.markersSize)||n.MARKER_DIAMETER}},i.cursor.dataIdx=m},hooks:{...t.hideMarkers&&{setCursor:i=>{var s,n;const o=i.cursor.idx;if(!(0,l.isNil)(o))for(let l=1;l<i.series.length;l++){const r=i.series[l].$c[o];t.hideMarkers(r,l)?null===(s=e.plugins.cursor)||void 0===s||s.hidePoints(l):null===(n=e.plugins.cursor)||void 0===n||n.showPoints(l)}}},init:e=>{const i=e.root.querySelector(".u-cursor-x");i&&(t.x&&!1===t.x.visible&&(i.style.display="none"),i.style.borderRight=t.x&&t.x.style||n.CURSOR_STYLE);const s=e.root.querySelector(".u-cursor-y");s&&(t.y&&!1!==t.y.visible?s.style.borderBottom=t.y.style||n.CURSOR_STYLE:s.style.display="none")}}}}}},65781:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicUpdatesMixin=void 0;const n=s(i(576)),o=i(46976),l=i(28265),r=i(24793),a=i(50497);function u(e,t,i,s=!1){var n,o,l,r,u,c,d,h,f,p,g,m;if(s)return e.config={...e.config,...i},void(t.reinit=!0);const _=function(e,t){return function(i,s){const n=(0,a.get)(e,i),o=(0,a.get)(t,i);return s?!s(n,o):n!==o}}(e.config,i);i.title&&_("title")&&e.setTitle(i.title),(null===(o=null===(n=i.chart)||void 0===n?void 0:n.appearance)||void 0===o?void 0:o.theme)&&_("chart.appearance.theme")&&e.setTheme(null===(r=null===(l=i.chart)||void 0===l?void 0:l.appearance)||void 0===r?void 0:r.theme),(null===(c=null===(u=i.chart)||void 0===u?void 0:u.appearance)||void 0===c?void 0:c.locale)&&_("chart.appearance.locale")&&e.setLocale(null===(h=null===(d=i.chart)||void 0===d?void 0:d.appearance)||void 0===h?void 0:h.locale),i.axes&&_("axes",a.deepIsEqual)&&e.setAxes(i.axes),i.scales&&_("scales",a.deepIsEqual)&&e.setScales(i.scales);Boolean(i.series)&&function(e,t){if(e.length!==(null===t||void 0===t?void 0:t.length))return!0;const i=new Map,s=new Map;return e.forEach((e=>{i.set(e.id,e)})),t.forEach((e=>{s.set(e.id,e)})),!(!t.some((({id:e})=>!i.has(e)))&&!e.some((({id:e})=>!s.has(e))))}(e.config.series,i.series)&&(t.redrawLegend=!0),(i.series||i.timeline)&&e.setSeries(null!==(f=i.timeline)&&void 0!==f?f:e.config.timeline,null!==(p=i.series)&&void 0!==p?p:e.config.series,{incremental:!1}),i.tooltip&&_("tooltip")&&(null===(g=e.plugins.tooltip)||void 0===g||g.updateOptions(i.tooltip)),i.legend&&_("legend")&&(t.reinit=!0),null===(m=e.plugins.tooltip)||void 0===m||m.reset(),t.reopt=!0,e.config={...e.config,...i}}function c(e,t,i,s={incremental:!0,splice:!1}){let n,o=[],r=[],a=null,u=!1,c=!1;if(["number","string"].includes(typeof t)?(u=!1,n=!1,r=[i],a=t):"number"===typeof t[0]?(o=t,r=i,u=Boolean(s.incremental),n=!s.incremental):(r=t,n=!0),this.isEmpty&&r.some((({data:e})=>null===e||void 0===e?void 0:e.length)))e.reinit=!0;else{if(!1===n){let t=!1;if(u&&this.config.timeline.push(...o),r.forEach((i=>{var s,n;let o="number"===typeof a?this.config.series[0]:this.config.series.find((({id:e})=>e===i.id||e===a)),r=null===o||void 0===o?void 0:o.id;if("number"===typeof a&&this.state.y2uIdx[a]&&(o=this.config.series[a],r=a),o&&r){const{data:a,...d}=i,h=this.state.y2uIdx[r];"dots"!==o.type&&"dots"!==i.type&&"dots"!==(null===(s=this.config.chart.series)||void 0===s?void 0:s.type)||(e.reinit=!0),u?o.data=a?o.data.concat(a):o.data:(null===a||void 0===a?void 0:a.length)&&(o.data=a,c=!0);const f=(0,l.configureSeries)(this,Object.assign(o,d),h),p=this.options.series[h],g=this.uplot.series[h];g.show!==f.show&&e.fns.push((()=>{this.uplot.setSeries(h,{show:f.show})})),null!==g._focus&&g._focus===f.focus||e.fns.push((()=>{this.uplot.setSeries(h,{focus:f.focus})})),g.color!==f.color&&(t=!0),f.scale&&(null===(n=this.config.scales[f.scale])||void 0===n?void 0:n.stacking)&&(c=!0),(0,l.overrideSeriesInUpdate)(p,f),(0,l.overrideSeriesInUpdate)(g,f)}else e.fns.push((()=>{const e=(0,l.configureSeries)(this,i,this.config.series.length);this.state.y2uIdx[e.id]=this.uplot.series.length,this.uplot.addSeries(e,this.config.series.length)})),this.config.series.push(i)})),t&&e.fns.push((()=>{var e;null===(e=this.plugins.cursor)||void 0===e||e.updatePoints()})),s.splice){const e=r[0].data.length;this.config.series.forEach((t=>{t.data.splice(0,e)})),this.config.timeline.splice(0,o.length)}}else this.config.timeline=o,this.config.series=r,e.reinit=!0;e.reinit||(this._batch.fns.push((()=>{var e,t;return null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.reset()})),(c||o.length)&&(e.recalc=!0,e.fns.push((()=>{this.uplot.setData(this.series)}))))}}t.DynamicUpdatesMixin=class{setLocale(e){this.batch((t=>function(e,t,i){e.utils.i18n=(0,n.default)(i),t.redrawLegend=!0}(this,t,e)))}setTitle(e){this.batch((t=>{this.config.title=e,this.initTitle(),t.redraw=[!0,!0]}))}setTheme(e){this.batch((t=>function(e,t,i){e.utils.theme.setTheme(t);const s=["light","light-hc","dark","dark-hc"].map((e=>`yagr_theme_${e}`));e.root.classList.remove(...s),e.root.classList.add("yagr_theme_"+t),i.redraw=[!1,!0]}(this,e,t)))}setAxes(e){this.batch((t=>function(e,t,i){const{x:s,...n}=i;if(s){const t=e.uplot.axes.find((({scale:e})=>e===o.DEFAULT_X_SCALE));t&&(0,r.updateAxis)(e,t,{scale:o.DEFAULT_X_SCALE,...s})}Object.entries(n).forEach((([t,i])=>{const s=e.uplot.axes.find((({scale:e})=>e===t));s&&(0,r.updateAxis)(e,s,{scale:t,...i})})),t.redraw=(0,r.getRedrawOptionsForAxesUpdate)(i)}(this,t,e)))}setSeries(e,t,i={incremental:!0,splice:!1}){this.batch((s=>c.call(this,s,e,t,i)))}setFocus(e,t){this.batch((()=>function(e,t,i){var s;const n=null===t?null:e.state.y2uIdx[t];null===(s=e.plugins.cursor)||void 0===s||s.focus(n,i),e.uplot.setSeries(n,{focus:i})}(this,e,t)))}setVisible(e,t,i=!0){this.batch((s=>function(e,t,i,s,n){const l=null===t?null:e.state.y2uIdx[t];(null===t?e.config.series:[e.config.series.find((({id:e})=>e===t))]).forEach((e=>{e&&(e.show=i)})),n.fns.push((()=>{e.uplot.setSeries(l,{show:i})})),e.options.series=e.uplot.series;let r=!1;if(l){const t=e.uplot.series[l];t.show=i;const s=t.scale||o.DEFAULT_Y_SCALE,n=e.config.scales[s];r=Boolean(n&&n.stacking)}else r=e.options.series.reduce(((t,s)=>{var n;const{scale:o}=s;return s.show=i,Boolean(o&&(null===(n=e.config.scales[o])||void 0===n?void 0:n.stacking)||t)}),!1);r&&(n.recalc=!0,n.fns.push((()=>{var t;e.uplot.setData(e.series,!0),s&&(null===(t=e.plugins.legend)||void 0===t||t.update())})))}(this,e,t,i,s)))}setScales(e){this.batch((t=>function(e,t,i){let s=!1,n=!1;Object.entries(t).forEach((([t,i])=>{const o=e.config.scales[t];if(o){const{stacking:e}=o,{stacking:t}=i;e!==t&&(s=!0),i.normalize===o.normalize&&i.normalizeBase===o.normalizeBase||(n=!0)}}));const l=Object.entries(t).every((([t,i])=>{const s=e.config.scales[t],{min:n,max:o,...l}=s,{min:r,max:u,...c}=i;return!(!1===(0,a.deepIsEqual)(c,l))&&(n!==r||o!==u)})),r=Object.keys(t).includes(o.DEFAULT_X_SCALE);if(l&&!r)return Object.entries(t).forEach((([t,s])=>{i.fns.push((()=>{e.uplot.setScale(t,{min:s.min,max:s.max})}))}));(s||n)&&(i.reinit=!0),e.config.scales=t,i.reinit=!0}(this,e,t)))}setConfig(e,t=!1){this.batch((i=>u(this,i,e,t)))}}},67903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.drawMarkersIfRequired=t.renderCircle=void 0;const s=i(46976),n=i(50497);t.renderCircle=(e,t,i,n,o,l,r,a)=>{const{ctx:u}=e,c=Math.round(e.valToPos(t,s.DEFAULT_X_SCALE,!0)),d=Math.round(e.valToPos(i,a||s.DEFAULT_Y_SCALE,!0));if(u.beginPath(),u.arc(c,d,2*n,0,2*Math.PI),u.fillStyle=l,o){const e=u.lineWidth,t=u.strokeStyle;u.lineWidth=o,u.strokeStyle=r,u.stroke(),u.lineWidth=e,u.strokeStyle=t}u.fill(),u.closePath()},t.drawMarkersIfRequired=function(e,i,o,l){const{color:r,scale:a,spanGaps:u,count:c,pointsSize:d}=e.series[i];if(u&&c>1)return!1;let h,f=o;for(;f<=l;){const o=e.data[i][f];if(null===o){h=o,f++;continue}const l=f+1,u=e.data[i][l];(0,n.isNil)(h)&&(0,n.isNil)(u)&&(0,t.renderCircle)(e,e.data[0][f],o,null!==d&&void 0!==d?d:s.DEFAULT_POINT_SIZE/2,0,r,r,a||s.DEFAULT_Y_SCALE),h=o,f++}},t.default=function(e,i){var n;const{size:o=s.DEFAULT_POINT_SIZE,strokeWidth:l=2,strokeColor:r="#ffffff",show:a}=i.markers,u=null===(n=i.chart)||void 0===n?void 0:n.series,c=(null===u||void 0===u?void 0:u.pointsSize)||s.DEFAULT_POINT_SIZE;function d(i,n,u,d){const{scale:h,_focus:f,color:p,getFocusedColor:g,type:m}=i.series[n];let _=u;const v="dots"===m?a?o:c:o;for(;_<=d;){const o=i.data[n][_];null!==o&&(0,t.renderCircle)(i,i.data[0][_],o,v,l,(f||null===f?p:g(e,n))||p,r,h||s.DEFAULT_Y_SCALE),_++}}const h=(e,t)=>{0!==e&&null!==e&&("dots"===t.type||i.markers.show)&&(t.points=t.points||{},t.points.show=d)};return{opts:(e,t)=>{(i.markers.show||t.series.some((e=>"dots"===e.type)))&&t.series.forEach(((e,t)=>h(t,e)))},hooks:{addSeries:(e,t)=>{const i=e.series[t];h(t,i)},setSeries:(e,t,i)=>{h(t,i)}}}}},68724:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,o(i(89353),t),o(i(98190),t);const a=l(i(46976));t.defaults=a;const u=r(i(37100));"undefined"!==typeof window&&Object.assign(window,{Yagr:u.default}),t.default=u.default},72168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasOneVisibleLine=void 0;const s=i(46976),n=i(50497),o=i(11213),l="null";t.hasOneVisibleLine=e=>e.some((({show:e,id:t})=>t!==s.DEFAULT_X_SERIE_NAME&&e));const r=(e,i)=>i.length>3&&e((0,t.hasOneVisibleLine)(i)?"hide-all":"show-all");t.default=class{constructor(){this.pagesCount=0,this.state={page:0,pages:1,pageSize:0,rowsPerPage:1,paginated:!1,requiredSpace:0,totalSpace:0},this.itemsHtml="",this.preInit=(e,t,i)=>{this.yagr=e,this.options=Object.assign({show:!1,position:"bottom",fontSize:12,maxLegendSpace:.3,className:void 0,behaviour:"basic"},t||{}),this.calc(i)},this.init=e=>{var t;this.options.show&&(this.uplot=e,null===(t=e.root.querySelector(".u-legend"))||void 0===t||t.remove(),this.render())},this.update=()=>{this.yagr.root.querySelectorAll("[data-serie-id]").forEach((e=>{var t,i;const s=e.getAttribute("data-serie-id");if(!s||s===l)return;const n=null===(i=null===(t=this.uplot)||void 0===t?void 0:t.series[this.yagr.state.y2uIdx[s]])||void 0===i?void 0:i.show;e.classList[n?"remove":"add"]("yagr-legend__item_hidden")}))},this.measureLegend=e=>{const t=this.yagr.root,i=(0,n.html)("div",{class:"yagr-legend",style:{visibility:"hidden"}},e);t.appendChild(i);const s=i.childNodes[0].getBoundingClientRect();return i.remove(),s},this.nextPage=()=>{const{state:e}=this;this.state.page+=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())},this.prevPage=()=>{const{state:e}=this;this.state.page-=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())}}redraw(){this.options.show&&this.render()}destroy(){var e;this._onDestroy&&this._onDestroy(),null===(e=this.legendEl)||void 0===e||e.remove()}applyHandlers(){const{yagr:e,uplot:i}=this;if(!i)return()=>{};const s=e.root.querySelectorAll("[data-serie-id]"),n=[],a={basic:s=>()=>{const n=s.getAttribute("data-serie-id"),o=[];if(n===l){const e=!(0,t.hasOneVisibleLine)(i.series);for(let t=1;t<i.series.length;t++)o.push([i.series[t],e])}else{const e=i.series.find((({id:e})=>e===n));if(!e)return;o.push([e,!e.show])}o.forEach((([t,i])=>{if(t.show===i)return;const s=e.root.querySelector(`[data-serie-id="${t.id}"]`);e.setVisible(t.id,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")}));const a=e.root.querySelector(".yagr-legend__all-series");if(a){const e=r(this.yagr.utils.i18n,i.series);a.innerHTML=e||""}},extended:s=>{const n=(t,i)=>{const s=e.root.querySelector(`[data-serie-id="${t}"]`);e.setVisible(t,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")},o=e=>{this.state.startSerieRange=e;const s=i.series.filter((t=>t.id!==e.id)),o=!(0,t.hasOneVisibleLine)(s)&&!1!==e.show;i.series.forEach((t=>{const i=e.id===t.id||o;n(t.id,i)}))},l=e=>{this.state.startSerieRange||(this.state.startSerieRange=i.series[1]);const t=[];i.series.forEach(((i,s)=>{var n;i.id===e.id&&t.push(s),i.id===(null===(n=this.state.startSerieRange)||void 0===n?void 0:n.id)&&t.push(s)})),i.series.forEach(((e,i)=>{const s=i>=t[0]&&i<=t[1];n(e.id,s)}))};return e=>{const t=s.getAttribute("data-serie-id"),r=i.series.find((({id:e})=>e===t));r&&(e.preventDefault(),e.ctrlKey||e.metaKey?(e=>{n(e.id,!e.show)})(r):e.shiftKey?l(r):o(r))}}},u=t=>()=>{const i=t.getAttribute("data-serie-id");if(t.classList.contains("yagr-legend__item_hidden")||i===l)return;const s=this.yagr.uplot.series.find((({id:e})=>e===i));s&&(e.setFocus(s.id,!0),e.redraw(!0,!1))},c=()=>{e.setFocus(null,!0),e.redraw(!0,!1)};s.forEach((e=>{const t=a[this.options.behaviour||"basic"](e),i=u(e);e.addEventListener("click",t),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),e.addEventListener("mousedown",o.preventMouseEvents),n.push((()=>{e.removeEventListener("click",t),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c),e.removeEventListener("mousedown",o.preventMouseEvents)}))}));const d=()=>n.forEach((e=>e()));return this._onDestroy=d,d}render(){var e,t;let i=!1;const{uplot:s,options:o}=this;if(!s)return;let l=this.yagr.root.querySelector(".yagr-legend");if(l?i=!0:l=(0,n.html)("div",{class:`yagr-legend yagr-legend__${this.options.position} ${(null===o||void 0===o?void 0:o.className)||""}`}),l){if(i||("top"===o.position?s.root.before(l):null===(e=s.root)||void 0===e||e.after(l)),this.legendEl=l,this.itemsHtml&&!i||this.calc(this.yagr.options),l.innerHTML=`<div class="yagr-legend__container" style="height: ${this.state.requiredSpace}px">${this.itemsHtml}</div>`,this.items=l.querySelector(".yagr-legend__items"),this.container=l.querySelector(".yagr-legend__container"),this.state.paginated){const e=this.renderPagination();null===(t=this.container)||void 0===t||t.after(e)}else this.items.style.justifyContent="center";this.applyHandlers()}}renderPagination(){const{state:e}=this;let t=this.yagr.root.querySelector(".yagr-legend__pagination");if(t){const e=t.querySelector(".yagr-legend__icon-down"),i=t.querySelector(".yagr-legend__icon-up");e.removeEventListener("click",this.nextPage),i.removeEventListener("click",this.prevPage)}else t=(0,n.html)("div",{class:"yagr-legend__pagination"});const i=0===e.page?"yagr-legend__icon-up_disabled":"",s=e.page===e.pages-1?"yagr-legend__icon-down_disabled":"";t.innerHTML=`<span class="yagr-legend__icon-up ${i}"></span>\n<span class="yagr-legend__pagination-text">${e.page+1}/${e.pages}</span>\n<span class="yagr-legend__icon-down ${s}"></span>`;const o=t.querySelector(".yagr-legend__icon-down"),l=t.querySelector(".yagr-legend__icon-up");return s||o.addEventListener("click",this.nextPage),i||l.addEventListener("click",this.prevPage),t}createIconLineElement(e){return(0,n.html)("span",{class:`yagr-legend__icon yagr-legend__icon_${e.type}`,style:{"background-color":this.yagr.getSerieLegendColor(e)}})}createSerieNameElement(e){const t=(0,n.html)("span");return t.innerText=e.name||"unnamed",t}renderItems(e){const t=r(this.yagr.utils.i18n,e.series),i="extended"!==this.options.behaviour&&(e=>e.length>3&&l||void 0)(e.series),s=i?[i]:[];for(let n=1;n<e.series.length;n++)s.push(e.series[n]);return`<div class="yagr-legend__items">${s.map((e=>{let s,n,o=" ";if(e===l)s=t,n=i,o=" yagr-legend__all-series ";else{n=e.id;const t=this.createIconLineElement(e),i=this.createSerieNameElement(e);s=`${t.outerHTML}${i.outerHTML}`}return`<div class="yagr-legend__item${o}${"string"===typeof e||!1!==e.show?"":"yagr-legend__item_hidden"}" data-serie-id="${n}">${s}</div>`})).join("")}</div>`}calc(e){if(!this.options.show)return;const t=e.height-this.VERTICAL_PADDING,i=this.renderItems(e),{height:s}=this.measureLegend(i),n=this.options.fontSize+2,o=t*this.options.maxLegendSpace,l=Math.floor(o/n),r=l-1,a=Math.min(r*n,o),u=Math.min(l*n,o),c=s>a&&a>0,d=Math.min(c?u:a,s),h=Math.ceil(s/a),f=c?this.VERTICAL_PADDING+18:this.VERTICAL_PADDING;this.state.requiredSpace=d,this.state.totalSpace=d+f,this.state.paginated=c,this.state.page=this.state.page||0,this.state.pages=h,this.state.pageSize=a,this.state.rowsPerPage=l,this.itemsHtml=i}get VERTICAL_PADDING(){return"bottom"===this.options.position?20:48}}},74947:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=void 0;const s=i(48130);t.renderTooltip=function(e){if(0===e.scales.length)return e.yagr.utils.i18n("nodata");const[t,i]=e.options.title?"string"===typeof e.options.title?[e.options.title,!1]:["",!0]:["",!1];return`${t?`<div class="__title">${t}</div>`:""}${e.scales.map((t=>{const n=(0,s.getOptionValue)(e.options.title,t.scale),o=e.scales.length>1?e.options.scales?`${(0,s.getOptionValue)(e.options.scales,t.scale)||""}`:`${e.yagr.utils.i18n("scale")}: ${t.scale}`:"";return`\n<div class="__section" data-scale=${t.scale}>\n ${i&&n?`<div class="_section_title">${n}</div>`:""}\n ${o?`<div class="__section_scale">${o}</div>`:""}\n <div class="__section_body">${function(e,t,i){const n=e.slice(0,(0,s.getOptionValue)(t.maxLines,i));return n.map((({value:i,name:n="unnamed",color:o,active:l,transformed:r,seriesIdx:a},u)=>{const c=`\n<span class="yagr-tooltip__val">${i}</span>\n ${"number"===typeof r?`<span class="yagr-tooltip__tf">${r.toFixed(2)}</span>`:""}\n`;return`\n<div class="yagr-tooltip__item ${l?"_active":""}" data-series="${a}">\n ${t.showIndicies?`<span class="yagr-tooltip__idx">${e.length-u}</span>`:""}\n <span class="yagr-tooltip__mark" style="background-color: ${o}"></span>${(0,s.escapeHTML)(n)} ${c}\n</div>`})).join("")+(e.length>n.length?`<div class="yagr-tooltip__item _more">+${e.length-n.length}</div>`:"")}(t.rows,e.options,t.scale)}</div>\n ${(0,s.getOptionValue)(e.options.sum,t.scale)?`\n <div class="__section_sum">\n ${e.yagr.utils.i18n("sum")}: ${t.sum}\n </div>\n `:""}\n</div>`})).join("")}`}},78229:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransformSeriesMixin=void 0;const s=i(46976),n=i(50497);t.TransformSeriesMixin=class{transformSeries(){const e=performance.now(),t=[],i=this.config,o=i.timeline;let l=i.processing||!1,r=this.config.series.map((({data:e})=>e));l&&l.interpolation&&(r=(0,n.preprocess)(r,o,l),l=!1);const a=Boolean(l&&l.nullValues),u=l&&l.nullValues||{},c={};for(let d=0;d<r.length;d++){let e=[];const i=d+1,l=r[d],h=this.options.series.length-i,f=this.options.series[h],p=f.scale||s.DEFAULT_Y_SCALE,g=this.config.scales[p]||{},m=g.stacking,_=f.stackGroup||0;let v=!0;m&&!c[p]&&(this.options.focus=this.options.focus||{alpha:1.1},this.options.focus.alpha=1.1,c[p]=[]),m&&!c[p][_]&&(c[p][_]=new Array(o.length).fill(0)),f.count=0;for(let t=0;t<l.length;t++){let i=l[t];if(a&&u[String(i)]&&(i=null),f.transform&&(f._transformed=!0,i=f.transform(i,r,t)),g.transform&&(f._transformed=!0,i=g.transform(i,r,t)),null===i){if("line"===f.type||"dots"===f.type){e.push(null);continue}i=m?0:null}if(v=!1,g.normalize){const e=(0,n.getSumByIdx)(this.options.series,t,p);i=e&&(null!==i&&void 0!==i?i:0)/e*(g.normalizeBase||100),f.normalizedData=f.normalizedData||[],f.normalizedData[t]=i}g.stacking&&(!1===f.show&&(i=0),i=c[p][_][t]+=null!==i&&void 0!==i?i:0),"logarithmic"===g.type&&0===i&&(i=1),f.sum=(f.sum||0)+(i||0);"number"===typeof f.$c[t]&&(f.count+=1),e.push(i)}f.avg=(f.sum||0)/f.count,f.empty=v,f.postProcess&&(e=f.postProcess(e,d,this)),t.unshift(e)}return t.unshift(this.config.timeline),this.series=t,this.execHooks("processed",{chart:this,meta:{processTime:performance.now()-e}}),this.series}}},80152:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=void 0;var s=i(4553);Object.defineProperty(t,"calculateFromTo",{enumerable:!0,get:function(){return s.calculateFromTo}})},81836:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var s=i(59284),n=i(23936),o=i.n(n),l=i(905),r=i.n(l),a=i(8964),u=i(42392),c=i(22680),d=i(14750),h=i(68724),f=i(17148),p=i.n(f),g=i(66643);function m(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}const _="data-series-name",v="data-series-idx",y="_tooltip",b="_tooltip-row",w=()=>"<td />",E=e=>`<td class="_tooltip-rows__bubble-td">\n <div class="_tooltip-rows__bubble-div" style="background-color:${e.seriesColor};"></div>\n </td>`,S=e=>`<td class="_tooltip-rows__name-td">\n ${e.hideSeriesName?"":m(e.seriesName)}\n </td>`,x=e=>`<td class="_tooltip-rows__percent-td">\n ${e.percentValue?e.percentValue+"%":""}\n </td>`,A=e=>`<td class="_tooltip-rows__value-td">\n ${e.value}\n </td>`,T=e=>`<td class="_tooltip-rows__diff-td">\n ${e.diff?` (${e.diff})`:""}\n </td>`,O=(e,t=!1,i=1)=>`<td class="_tooltip-right__td ${t?"_tooltip-right__td_with-split-tooltip":""}" colspan="${i||1}">\n ${e.holiday?`<div class="_tooltip-right__holiday-div">\n <div class="_tooltip-right__holiday-emoji">\ud83c\udf88</div>\n <div>\n ${e.holidayText}\n ${e.region?`<span class="_tooltip-right__holiday-region">[${e.region}]</span>`:""}\n </div>\n </div>`:""}\n\n ${e.commentDateText?`<div class="${e.xComments?"_tooltip-right__margin-bot":""}">${e.commentDateText}</div>`:""}\n\n ${e.xComments?e.xComments.map((e=>`<div class="_tooltip-right__traf-div ${t?"_tooltip-right__traf-div_for-split-tooltip":""}" style="border-color: ${e.color};">${e.text}</div>`)).join(""):""}\n </td>`,L=(e,{isSelectedLine:t,cellsRenderers:i,isSingleLine:s,allowComment:n,withDarkBackground:o,rowIndex:l})=>{const r=e.commentText||e.xyCommentText,a=n&&r,u=i.slice(),c=`${String(l)||""}-${String(m(e.seriesName)).slice(0,20).replace(/(\r\n|\n|\r)/gm,"")}`;return e.insertCellAt&&(Object.keys(e.insertCellAt)||[]).forEach((e=>{u.splice(Number(e),0,w)})),e.customRender?`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${0===e.customRender.trim().indexOf("<td")?e.customRender:`<td colspan="${i.length}">${e.customRender}</td>`}\n </tr>\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td>\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`:`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${u.map(((t,i)=>e.replaceCellAt&&e.replaceCellAt[i]?"string"===typeof e.replaceCellAt[i]?e.replaceCellAt[i]:e.replaceCellAt[i](e):e.insertCellAt&&e.insertCellAt[i]?"string"===typeof e.insertCellAt[i]?e.insertCellAt[i]:e.insertCellAt[i](e):t(e))).join("")}\n </tr>\n\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td colspan="4">\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`},I=(e,t)=>{const{splitTooltip:i,activeRowAlwaysFirstInTooltip:s}=e,n=e.lines.findIndex((({selectedSeries:e})=>e)),o=e.lines[n],l=e.lines.slice(0,(t.lastVisibleRowIndex||e.lines.length)+1),r=[];r.push(E),e.shared&&r.push(S),e.withPercent&&r.push(x),r.push(A),e.useCompareFrom&&r.push(T);const u={isSingleLine:1===l.length,cellsRenderers:r},c={cellsRenderers:r,useCompareFrom:e.useCompareFrom,isSelectedLine:!0,allowComment:n>t.lastVisibleRowIndex},d=document.body.clientHeight/(window.visualViewport&&window.visualViewport.scale||1);let h=y;return i&&(h+=` ${y}_split-tooltip`),`\n<div class="${h}" style="max-height: ${i?"auto":`${d}px`}">\n ${e.tooltipHeader?`<div title="${(document.createRange().createContextualFragment(e.tooltipHeader).textContent||"").trim()}" class="_tooltip-date">\n ${e.tooltipHeader.trim()}\n </div>`:""}\n ${i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?`<table border="0" cellpadding="0" cellspacing="0">\n <tbody>\n <tr>\n ${O(e,!0,r.length)}\n </tr>\n </tbody>\n </table>`:""}\n <table border="0" cellpadding="0" cellspacing="0">\n <tr>\n <td class="_tooltip-left__td">\n <table class="_tooltip-rows__table">\n ${i?"":`<thead class=_tooltip-header>\n ${o&&(s||t.lastVisibleRowIndex&&n>t.lastVisibleRowIndex)?L(o,c):""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n </thead>`}\n <tbody class="_tooltip-list">\n ${l.map(((e,t)=>L(e,function(e){return Object.assign(Object.assign({},u),{rowIndex:e,isSelectedLine:l.length>1&&e===n,withDarkBackground:l.length>2&&Boolean(e%2),allowComment:e!==n||!c.allowComment})}(t)))).join("")}\n </tbody>\n ${i?"":`<tbody class="_tooltip-footer">\n ${t.lastVisibleRowIndex&&e.hiddenRowsNumber>0?`<tr class="${b} _hidden-rows-sum${l.length%2?" _hidden-rows-sum-dark-bg":""}">\n <td colspan="${r.length-1}" class="_hidden-rows-number">\n ${(0,a.R)("common","tooltip-rest")} ${e.hiddenRowsNumber}\n </td>\n <td class="_hidden-rows-value">${e.hiddenRowsSum}</td>\n </tr>`:""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n ${e.sum?`<tr class="_tooltip-rows__summ-tr">\n <td class="_tooltip-rows__summ-td" colspan="${r.length-1}">${(0,a.R)("common","tooltip-sum")}</td>\n <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">\n ${e.sum}\n </td>\n </tr>`:""}\n </tbody>`}\n </table>\n </td>\n\n ${!i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?O(e):""}\n </tr>\n </table>\n</div>`},D=e=>"object"===typeof e&&null!==e?Object.values(e).reduce(((e,t)=>t)):e,M=({data:e,rowId:t})=>{const i=e.yagr.getSeriesById(t);return e.yagr.getSerieLegendColor(i)},k=(e=1,t)=>(i,s)=>{const n=(s[s.length-1]-s[0])/e;return s.map((i=>{const s=(0,d.KQ)({input:i/e,timeZone:t});return 0===s.hour()&&0===s.minute()&&0===s.second()?s.format("DD.MM.YY"):s.format(n<300?"HH:mm:ss":"HH:mm")}))},C=(e,t)=>i=>{const s=i/((null===e||void 0===e?void 0:e.timeMultiplier)||1),n=(0,d.KQ)({input:s}),o=60*(n.utcOffset()-(0,d.KQ)({input:s,timeZone:t}).utcOffset())*1e3;return new Date(n.valueOf()-o)},R=e=>{var t,i;const{data:s,libraryConfig:n,theme:o}=e,l=Object.assign(Object.assign({},n),{timeline:s.timeline,series:s.graphs}),{timeZone:r}=s,a={appearance:{locale:g.W.get("lang"),theme:o}};var u;p()(a,l.chart),l.chart=a,(null===(t=l.tooltip)||void 0===t?void 0:t.show)&&(l.tooltip=l.tooltip||{},l.tooltip.render=(null===(i=l.tooltip)||void 0===i?void 0:i.render)||(u=s,e=>{const{timeZone:t}=u,i=e.yagr.config.chart.timeMultiplier||1,s=e.options,{x:n,state:o}=e;let l=0;const r=Object.values(e.scales).reduce(((e,t)=>(l+=t.sum||0,e.concat(t.rows))),[]),a=r.length,c=D(s.sum),h=D(s.maxLines),f=D(s.value),p=o.pinned?void 0:a>h?Math.abs(h-a):void 0,g=p?f(r.slice(-p).reduce(((e,{originalValue:t})=>e+(t||0)),0)):void 0,m={activeRowAlwaysFirstInTooltip:r.length>1,tooltipHeader:(0,d.KQ)({input:n/i,timeZone:t}).format("DD MMMM YYYY HH:mm:ss"),shared:!0,lines:r.map(((t,i)=>Object.assign(Object.assign({},t),{seriesName:t.name||"Serie "+(i+1),seriesColor:M({data:e,rowId:t.id}),selectedSeries:t.active,seriesIdx:t.seriesIdx,percentValue:"number"===typeof t.transformed?t.transformed.toFixed(1):""}))),withPercent:D(s.percent),hiddenRowsNumber:p,hiddenRowsSum:g};return c&&(m.sum=f(l)),I(m,{lastVisibleRowIndex:o.pinned?r.length-1:h-1})}),l.tooltip.className||(l.tooltip.className="chartkit-yagr-tooltip"),e.customTooltip&&(l.tooltip.virtual=!0),l.tooltip.sort=l.tooltip.sort||((e,t)=>t.rowIdx-e.rowIdx)),l.axes=l.axes||{};const c=l.axes[h.defaults.DEFAULT_X_SCALE];return l.editUplotOptions=e=>Object.assign(Object.assign({},e),{tzDate:r?C(l.chart,r):void 0}),c&&!c.values&&(c.values=k(l.chart.timeMultiplier,r)),c||(l.axes[h.defaults.DEFAULT_X_SCALE]={values:k(l.chart.timeMultiplier,r)}),l},F=s.forwardRef((function(e,t){const{id:i,data:{data:n},onLoad:l,onRender:d,onChartLoad:h,tooltip:f}=e,p=s.useRef(null),[g,m]=s.useState();if(!n||r()(n))throw new u.R({code:u.iY.NO_DATA,message:(0,a.R)("error","label_no-data")});const{config:_,debug:v}=((e,t)=>{const{data:i,sources:n,libraryConfig:o}=e.data,l=(0,c.i)();return{config:s.useMemo((()=>R({data:i,libraryConfig:o,theme:l,customTooltip:Boolean(e.tooltip)})),[i,o,l,e.tooltip]),debug:s.useMemo((()=>({filename:n&&Object.values(n).map((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.program})).filter(Boolean).join(", ")||t})),[t,n])}})(e,i),y=s.useCallback(((e,{renderTime:t})=>{null===l||void 0===l||l(Object.assign(Object.assign({},n),{widget:e,widgetRendering:t})),null===d||void 0===d||d({renderTime:t}),m(e)}),[l,d,n,m]),b=s.useCallback((()=>{g&&g.reflow()}),[]);return s.useImperativeHandle(t,(()=>({reflow(){b()}})),[b]),s.useEffect((()=>{var e,t,i,s,n;if(!g||(null===(t=null===(e=g.config)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.virtual))return;const o={mouseMove:null,mouseDown:null};null===(i=g.plugins.tooltip)||void 0===i||i.on("render",(e=>{(e=>{const t=e.querySelector("._tooltip-header"),i=e.querySelector("._tooltip-list");if(!t||!i||!t.children.length)return;const s=t.children[0];for(let a=0;a<s.children.length;a++){const e=s.children[a];e.removeAttribute("style"),1===(null===i||void 0===i?void 0:i.children.length)&&(e.innerHTML=" ")}const n=i.children[0];for(let a=0;a<n.children.length;a++)n.children[a].removeAttribute("style");const o=t.children[0].getBoundingClientRect().width>i.children[0].getBoundingClientRect().width?t:i,l=Array.prototype.reduce.call(o.children[0].children,((e,t)=>(e.push(t.getBoundingClientRect().width),e)),[]),r=(o===t?i:t).children[0];for(let a=0;a<r.children.length;a++)r.children[a].setAttribute("style",`width: ${l[a]}px`);if(1===i.children.length)for(const a of s.children)a.innerHTML=""})(e)})),null===(s=g.plugins.tooltip)||void 0===s||s.on("pin",((e,{actions:t})=>{var i;o.mouseMove=(i={tooltip:e,yagr:g},e=>{var t;const{tooltip:s,yagr:n}=i;if(!n)return;const o=e.target,l=o&&s.contains(o)&&"TD"===o.tagName?null===(t=o.parentElement)||void 0===t?void 0:t.dataset.seriesIdx:void 0,r=l?n.uplot.series[Number(l)]:null;n.setFocus(r?r.id:null,!0)}),o.mouseDown=(e=>t=>{var i;const{tooltip:s,actions:n,yagr:o}=e;if(!o)return;const l=t.target;if(l instanceof Element){const e=l&&s.contains(l),t=l&&(null===(i=o.root.querySelector(".u-over"))||void 0===i?void 0:i.contains(l));e||t||(n.pin(!1),n.hide())}})({tooltip:e,actions:t,yagr:g}),document.addEventListener("mousemove",o.mouseMove),document.addEventListener("mousedown",o.mouseDown)})),null===(n=g.plugins.tooltip)||void 0===n||n.on("unpin",(()=>{o.mouseMove&&(document.removeEventListener("mousemove",o.mouseMove),o.mouseMove=null),o.mouseDown&&(document.removeEventListener("mousedown",o.mouseDown),o.mouseDown=null)}))}),[g]),s.useLayoutEffect((()=>{null===h||void 0===h||h({widget:g})}),[g,h]),s.createElement(s.Fragment,null,f&&g&&f({yagr:g}),s.createElement(o(),{ref:p,id:i,config:_,debug:v,onChartLoad:y}))})),P=F},81891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configureScales=t.niceScale=t.offsetScale=t.getScaleRange=void 0;const s=i(46976),n=i(48643);function o(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking;return{min:n?0:Math.round(e-Math.abs(e)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET)),max:o?0:Math.round(t+Math.abs(t)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET))}}function l(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking?0:"number"===typeof i.max?i.max:t,l=n?0:"number"===typeof i.min?i.min:e;if(l===o)return l>=0?{min:l,max:l+2}:{min:l-1,max:l+1};const a=r(o-l,!1),u=r(a/(s.DEFAULT_MAX_TICKS-1),!0);let c=Math.ceil(o/u)*u;c=isNaN(c)?100:c;let d=(n?Math.min(0,l):Math.floor(l/u)*u)||0;return d===c&&(d-=1,c+=1),{min:d,max:c}}function r(e,t){const i=Math.floor(Math.log10(e)),s=e/10**i;return(t?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*10**i}t.getScaleRange=(e,t)=>{const i=e.range;if("function"===typeof i)return(e,s,n)=>i(e,s,n,t);if(e.normalize)return[0,e.normalizeBase||100];if("auto"===e.range)return;let n;switch(e.range){case void 0:case"nice":n=l;break;case"offset":n=o;break;default:throw new Error(`Unknown scale range type ${e.range}`)}return(i,o,l)=>{let{min:a,max:u}=n(o,l,e,t);const c=e.minRange||s.DEFAULT_SCALE_MIN_RANGE;if(Math.abs(u-a)<c&&(a>=0?u+=c:(u+=c/2,a-=c/2)),a="number"===typeof e.min?e.min:a,u="number"===typeof e.max?e.max:u,"logarithmic"===e.type){const t="number"===typeof e.min;a<=0?a=s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE:t||(a=Math.min(a,s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE))}return(a>=u||u<=a)&&("number"===typeof e.max?a=u-(r(u-.1*u,!1)||1):u=a+(r(a+.1*a,!1)||1)),[a,u]}},t.offsetScale=o,t.niceScale=l,t.configureScales=function(e,i,o){const l=o.scales?{...o.scales}:{};return Object.keys(o.scales).length||(l.y={}),Object.entries(l).forEach((([l,r])=>{i[l]=i[l]||{};const a=i[l];if(l===s.DEFAULT_X_SCALE)return;const u="number"===typeof r.min?r.min:null,c="number"===typeof r.max?r.max:null;if(null!==c&&null!==u){if(c<=u)throw new Error("Invalid scale config. .max should be > .min");a.range=[u,c]}const d="logarithmic"===r.type;if(d)return a.distr=n.Scale.Distr.Logarithmic,void(a.range=(0,t.getScaleRange)(r,o));e.isEmpty?a.range=[null===u?d?1:0:u,null===c?100:c]:a.range=(0,t.getScaleRange)(r,o)})),i.x||(i.x={time:!0}),i}},87102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMixins=void 0,t.applyMixins=function(e,t){const i=[];t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i)||Object.create(null))})),t.prototype.initMixin&&i.push(t.prototype.initMixin)})),e.prototype.initMixins=function(){i.forEach((e=>e.call(this)))}}},88274:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pathsRenderer=void 0;const r=l(i(16381)),a=o(i(46976));t.pathsRenderer=function(e,t,i,s){const n=e.series[t],{type:o,interpolation:l}=n;let u;switch(o){case"column":u=r.default.paths.bars&&r.default.paths.bars({size:[a.BARS_DRAW_FACTOR,a.BARS_DRAW_MAX],...e.series[t].renderOptions||{}});break;case"dots":u=()=>null;break;default:switch(l){case"smooth":u=r.default.paths.spline&&r.default.paths.spline();break;case"left":u=r.default.paths.stepped&&r.default.paths.stepped({align:1});break;case"right":u=r.default.paths.stepped&&r.default.paths.stepped({align:-1});break;default:u=r.default.paths.linear&&r.default.paths.linear()}}return u?u(e,t,i,s):null}},89353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},98190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81869.a0a15184.chunk.js b/ydb/core/viewer/monitoring/static/js/81869.a0a15184.chunk.js new file mode 100644 index 0000000000..ff90b17caf --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81869.a0a15184.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81869],{59556:e=>{function a(e){!function(e){function a(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var s=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,r="&"+s,t="(\\()",o="(?=\\s)",i=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+s+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+s),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+s),alias:"property"},splice:{pattern:RegExp(",@?"+s),alias:["symbol","variable"]},keyword:[{pattern:RegExp(t+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(t+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:a(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:a(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(t+"def(?:const|custom|group|var)\\s+"+s),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(s)}},defun:{pattern:RegExp(t+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+s+/\s+\(/.source+i+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+s),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(t+"lambda\\s+\\(\\s*(?:&?"+s+"(?:\\s+&?"+s+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(t+s),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(r),varform:{pattern:RegExp(/\(/.source+s+/\s+(?=\S)/.source+i+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+s),lookbehind:!0,alias:"variable"},rest:l},p="\\S+(?:\\s+\\S+)*",u={pattern:RegExp(t+i+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(s),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=u,l.defun.inside.arguments=e.util.clone(u),l.defun.inside.arguments.inside.sublist=u,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}e.exports=a,a.displayName="lisp",a.aliases=[]},81869:(e,a,n)=>{n.d(a,{default:()=>r});var s=n(59556);const r=n.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/81940.05d638c7.chunk.js b/ydb/core/viewer/monitoring/static/js/81940.05d638c7.chunk.js new file mode 100644 index 0000000000..f3c59818d7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/81940.05d638c7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[81940],{15813:e=>{function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}e.exports=t,t.displayName="qore",t.aliases=[]},81940:(e,t,n)=>{n.d(t,{default:()=>o});var a=n(15813);const o=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/82053.2a21538f.chunk.js b/ydb/core/viewer/monitoring/static/js/82053.2a21538f.chunk.js new file mode 100644 index 0000000000..fda68c2099 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/82053.2a21538f.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[82053],{82053:function(e,_,n){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=_(e),t={name:"jv",weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),weekStart:1,weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"}};return n.default.locale(t,null,!0),t}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/82066.573664a4.chunk.js b/ydb/core/viewer/monitoring/static/js/82066.573664a4.chunk.js new file mode 100644 index 0000000000..7796c36c62 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/82066.573664a4.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[82066],{16099:e=>{function s(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var s=e.languages.extend("typescript",{});delete s["class-name"],e.languages.typescript["class-name"].inside=s,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:s}}}}),e.languages.ts=e.languages.typescript}(e)}e.exports=s,s.displayName="typescript",s.aliases=["ts"]},82066:(e,s,a)=>{a.d(s,{default:()=>t});var n=a(16099);const t=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8215.36727d1f.chunk.js b/ydb/core/viewer/monitoring/static/js/8215.36727d1f.chunk.js new file mode 100644 index 0000000000..4578263bb2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8215.36727d1f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8215],{8215:(e,a,t)=>{t.d(a,{default:()=>s});var n=t(48974);const s=t.n(n)()},48974:e=>{function a(e){!function(e){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)a=a.replace(/<self>/g,(function(){return a}));a=a.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}e.exports=a,a.displayName="rust",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/82315.a87de6b3.chunk.js b/ydb/core/viewer/monitoring/static/js/82315.a87de6b3.chunk.js new file mode 100644 index 0000000000..1652e824b2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/82315.a87de6b3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[82315],{24450:e=>{function n(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=n,n.displayName="json",n.aliases=["webmanifest"]},82315:(e,n,a)=>{a.d(n,{default:()=>t});var s=a(24450);const t=a.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js b/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js deleted file mode 100644 index e85bccbc50..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8234.7512920e.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8234],{98234:(x,e,i)=>{i.r(e),i.d(e,{conf:()=>d,language:()=>f});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/82399.80864f92.chunk.js b/ydb/core/viewer/monitoring/static/js/82399.80864f92.chunk.js new file mode 100644 index 0000000000..e9e10c0e74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/82399.80864f92.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[82399],{51572:e=>{function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,i){if(n.language===a){var o=n.tokenStack=[];n.code=n.code.replace(r,(function(e){if("function"===typeof i&&!i(e))return e;for(var r,s=o.length;-1!==n.code.indexOf(r=t(a,s));)++s;return o[s]=e,r})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,i=Object.keys(n.tokenStack);!function o(s){for(var l=0;l<s.length&&!(r>=i.length);l++){var u=s[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var g=i[r],c=n.tokenStack[g],p="string"===typeof u?u:u.content,d=t(a,g),f=p.indexOf(d);if(f>-1){++r;var k=p.substring(0,f),b=new e.Token(a,e.tokenize(c,n.grammar),"language-"+a,c),E=p.substring(f+d.length),m=[];k&&m.push.apply(m,o([k])),m.push(b),E&&m.push.apply(m,o([E])),"string"===typeof u?s.splice.apply(s,[l,1].concat(m)):u.content=m}}else u.content&&o(u.content)}return s}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]},57784:(e,t,n)=>{var a=n(51572);function r(e){e.register(a),function(e){e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")}))}(e)}e.exports=r,r.displayName="tt2",r.aliases=[]},82399:(e,t,n)=>{n.d(t,{default:()=>r});var a=n(57784);const r=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/82505.405051e6.chunk.js b/ydb/core/viewer/monitoring/static/js/82505.405051e6.chunk.js new file mode 100644 index 0000000000..c50e26fbf6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/82505.405051e6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[82505],{32236:e=>{function a(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=a,a.displayName="hsts",a.aliases=[]},82505:(e,a,s)=>{s.d(a,{default:()=>t});var i=s(32236);const t=s.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8256.a2ce240a.chunk.js b/ydb/core/viewer/monitoring/static/js/8256.a2ce240a.chunk.js deleted file mode 100644 index d7344343a8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8256.a2ce240a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8256],{28256:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"ar-ly",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekStart:6,weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},meridiem:function(_){return _>12?"\u0645":"\u0635"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/82714.46d13b51.chunk.js b/ydb/core/viewer/monitoring/static/js/82714.46d13b51.chunk.js new file mode 100644 index 0000000000..e99c2461be --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/82714.46d13b51.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[82714],{53839:e=>{function a(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}e.exports=a,a.displayName="arff",a.aliases=[]},82714:(e,a,d)=>{d.d(a,{default:()=>n});var t=d(53839);const n=d.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/83005.08f70905.chunk.js b/ydb/core/viewer/monitoring/static/js/83005.08f70905.chunk.js new file mode 100644 index 0000000000..6ef161fdcb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/83005.08f70905.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[83005],{42714:T=>{function E(T){T.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}T.exports=E,E.displayName="iecst",E.aliases=[]},83005:(T,E,N)=>{N.d(E,{default:()=>R});var O=N(42714);const R=N.n(O)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/83012.103c3f36.chunk.js b/ydb/core/viewer/monitoring/static/js/83012.103c3f36.chunk.js new file mode 100644 index 0000000000..e157ce3890 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/83012.103c3f36.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[83012],{81737:e=>{function n(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}e.exports=n,n.displayName="javastacktrace",n.aliases=[]},83012:(e,n,a)=>{a.d(n,{default:()=>i});var t=a(81737);const i=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/83075.aa140970.chunk.js b/ydb/core/viewer/monitoring/static/js/83075.aa140970.chunk.js new file mode 100644 index 0000000000..7c3682061f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/83075.aa140970.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[83075],{83075:(e,i,r)=>{r.d(i,{default:()=>a});var t=r(86792);const a=r.n(t)()},86792:e=>{function i(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+"(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}e.exports=i,i.displayName="uri",i.aliases=["url"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/83333.65b07752.chunk.js b/ydb/core/viewer/monitoring/static/js/83333.65b07752.chunk.js new file mode 100644 index 0000000000..b40abd1ded --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/83333.65b07752.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[83333],{83333:function(_,e,a){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var a=e(_),t={name:"yo",weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekStart:1,weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),ordinal:function(_){return _},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"}};return a.default.locale(t,null,!0),t}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/83510.ed31c9f8.chunk.js b/ydb/core/viewer/monitoring/static/js/83510.ed31c9f8.chunk.js new file mode 100644 index 0000000000..793bd6cd20 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/83510.ed31c9f8.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[83510],{83510:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"te",weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/83896.d4b0cab7.chunk.js b/ydb/core/viewer/monitoring/static/js/83896.d4b0cab7.chunk.js new file mode 100644 index 0000000000..0301b41d40 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/83896.d4b0cab7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[83896],{25875:e=>{function a(e){!function(e){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,t="(?:"+r.source+"(?:[ \t]+"+a.source+")?|"+a.source+"(?:[ \t]+"+r.source+")?)",n=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(e,a){a=(a||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return t})).replace(/<<value>>/g,(function(){return e}));return RegExp(r,a)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return t}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return t})).replace(/<<key>>/g,(function(){return"(?:"+n+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(o),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=a,a.displayName="yaml",a.aliases=["yml"]},32307:(e,a,r)=>{var t=r(25875);function n(e){e.register(t),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}e.exports=n,n.displayName="tap",n.aliases=[]},83896:(e,a,r)=>{r.d(a,{default:()=>n});var t=r(32307);const n=r.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8393.2e643149.chunk.js b/ydb/core/viewer/monitoring/static/js/8393.2e643149.chunk.js deleted file mode 100644 index 8b16b32735..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8393.2e643149.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8393],{3685:(e,s,t)=>{t.d(s,{$:()=>d});var a=t(54090),l=t(77506),i=t(33775),n=t(60712);const o=(0,l.cn)("ydb-entity-page-title");function d({entityName:e,status:s=a.m.Grey,id:t,className:l}){return(0,n.jsxs)("div",{className:o(null,l),children:[(0,n.jsx)("span",{className:o("prefix"),children:e}),(0,n.jsx)(i.k,{className:o("icon"),status:s,size:"s"}),t]})}},13758:(e,s,t)=>{t.r(s),t.d(s,{Node:()=>ye});var a=t(59284),l=t(23871),i=t(44992),n=t(61750),o=t(10755),d=t(67087),r=t(3685),c=t(44508),u=t(87184),v=t(77506),m=t(31684),p=t(88655),h=t(12888);var f=t(18863),g=t(25196),x=t(60712);const k=(0,v.cn)("ydb-pool-usage"),j=e=>{let s="green";return e>60&&e<=80?s="yellow":e>80&&(s="red"),s},b=({data:e={}})=>{const{Threads:s,Name:t="Unknown",Usage:a=0}=e,l=a&&s,i=Math.floor(100*a),n=i>100?100:i;return(0,x.jsxs)("div",{className:k(),children:[(0,x.jsxs)("div",{className:k("info"),children:[(0,x.jsx)("div",{className:k("pool-name"),children:t}),l&&(0,x.jsxs)("div",{className:k("value"),children:[(0,x.jsxs)("div",{className:k("percents"),children:[i<1?"<1":i,"%"]}),(0,x.jsxs)("div",{className:k("threads"),children:["(\xd7",s,")"]})]})]}),(0,x.jsx)("div",{className:k("visual"),children:(0,x.jsx)("div",{className:k("usage-line",{type:j(n)}),style:{width:`${n}%`}})})]})};var N=t(15132),I=t(41826),w=t(48372);const y=JSON.parse('{"database":"Database","uptime":"Uptime","version":"Version","dc":"DC","rack":"Rack","links":"Links","la-interval-1m":"1 min","la-interval-5m":"5 min","la-interval-15m":"15 min","developer-ui":"Developer UI","no-data":"No data","title.common-info":"Common info","title.endpoints":"Endpoints","title.roles":"Roles","title.pools":"Pools","title.load-average":"Load average"}'),D=(0,w.g4)("ydb-node-info",{en:y}),S=(0,v.cn)("full-node-viewer"),z=({node:e,className:s})=>{var t,a,l,i,n;const o=function(e){const s=(0,p.E)();if((0,h.X)()){if(null!==s&&void 0!==s&&s.getNodeRef){const t=s.getNodeRef(e);return t?(0,m.Un)(t):void 0}if(null!==e&&void 0!==e&&e.NodeId){const s=(0,m.Kx)(e.NodeId);return(0,m.Un)(s)}}}(e),d=[];null!==e&&void 0!==e&&null!==(t=e.Tenants)&&void 0!==t&&t.length&&d.push({label:D("database"),value:e.Tenants[0]}),d.push({label:D("version"),value:null===e||void 0===e?void 0:e.Version},{label:D("uptime"),value:(0,x.jsx)(I.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:D("dc"),value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)}),null!==e&&void 0!==e&&e.Rack&&d.push({label:D("rack"),value:null===e||void 0===e?void 0:e.Rack}),o&&d.push({label:D("links"),value:(0,x.jsx)(g.K,{url:o,title:D("developer-ui")})});const r=null===e||void 0===e||null===(a=e.Endpoints)||void 0===a?void 0:a.map((({Name:e,Address:s})=>({label:e,value:s}))),c=null===e||void 0===e||null===(l=e.LoadAveragePercents)||void 0===l?void 0:l.map(((e,s)=>{return{label:(t=s,[D("la-interval-1m"),D("la-interval-5m"),D("la-interval-15m")][t]),value:(0,x.jsx)(N.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})};var t}));return e?(0,x.jsx)("div",{className:S(null,s),children:(0,x.jsxs)(u.s,{wrap:!0,gap:4,children:[(0,x.jsxs)(u.s,{direction:"column",gap:2,children:[(0,x.jsx)(f.z,{title:D("title.common-info"),className:S("section"),info:d}),r&&r.length?(0,x.jsx)(f.z,{title:D("title.endpoints"),className:S("section"),info:r}):null]}),(0,x.jsxs)(u.s,{direction:"column",gap:2,children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:S("section-title"),children:D("title.pools")}),(0,x.jsx)("div",{className:S("section",{pools:!0}),children:null===e||void 0===e||null===(i=e.PoolStats)||void 0===i?void 0:i.map(((e,s)=>(0,x.jsx)(b,{data:e},s)))})]}),(0,x.jsx)(f.z,{title:D("title.load-average"),className:S("section",{average:!0}),info:c})]}),e.Roles&&e.Roles.length?(0,x.jsx)(u.s,{direction:"column",gap:2,children:(0,x.jsxs)("div",{className:S("section"),children:[(0,x.jsx)("div",{className:S("section-title"),children:D("title.roles")}),null===e||void 0===e||null===(n=e.Roles)||void 0===n?void 0:n.map((e=>(0,x.jsx)("div",{className:S("role"),children:e},e)))]})}):null]})}):(0,x.jsx)("div",{className:"error",children:D("no-data")})};var T=t(42655),E=t(44294),A=t(58389),P=t(92459),R=t(67028),C=t(40174),V=t(21334),L=t(78034);const O=e=>{var s;if(null===(s=e.SystemStateInfo)||void 0===s||!s.length)return{};const t=e.SystemStateInfo[0];return(0,L.q1)(t)},M=V.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{const t=await window.api.viewer.getNodeInfo(e,{signal:s});return{data:O(t)}}catch(t){return{error:t}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:s})}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"});var F=t(90182),$=t(99936),q=t(71635),G=t(29819),U=t(905),X=t.n(U),B=t(52248),K=t(53850),Q=t(56839),_=t(27295);const W=(0,K.Mz)((e=>e),(e=>M.endpoints.getNodeStructure.select({nodeId:e}))),H=(0,K.Mz)((e=>e),((e,s)=>W(s)),((e,s)=>s(e).data)),Y=(0,K.Mz)(((e,s)=>Number(s)),((e,s)=>H(e,s)),((e,s)=>{const t=null===s||void 0===s?void 0:s.StoragePools,a={};null===t||void 0===t||t.forEach((s=>{const t=s.Groups;null===t||void 0===t||t.forEach((t=>{var l;const i=null===(l=t.VDisks)||void 0===l?void 0:l.filter((s=>s.NodeId===e)).map(_.WT);null===i||void 0===i||i.forEach((t=>{var l;const i=(0,Q.U9)(t.VDiskId),n=null===(l=t.PDisk)||void 0===l?void 0:l.PDiskId;a[String(n)]||(a[String(n)]={vDisks:{},...t.PDisk}),a[String(n)].vDisks[i]={...t,PDiskId:n,NodeId:e,StoragePoolName:s.Name}}))}))}));return Object.keys(a).reduce(((e,s)=>{const t=a[s].vDisks,l=Object.keys(t).reduce(((e,s,a)=>(e.push({...t[s],id:s,order:a}),e)),[]);return e[s]={...a[s],vDisks:l},e}),{})}));var J=t(112),Z=t(45720),ee=t(4557),se=t(84476),te=t(99991),ae=t(84375),le=t(33705),ie=t(45659),ne=t(33775),oe=t(67808),de=t(54090),re=t(67375),ce=t(7435),ue=t(76086),ve=t(29971);const me=(0,v.cn)("kv-node-structure");function pe({label:e,value:s,className:t}){return(0,x.jsxs)("span",{className:me("pdisk-title-item",t),children:[e&&(0,x.jsxs)("span",{className:me("pdisk-title-item-label"),children:[e,":"]}),(0,x.jsx)("span",{className:me("pdisk-title-item-value"),children:s})]})}const he=(0,v.cn)("kv-node-structure");var fe=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(fe||{});const ge={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function xe({pDiskId:e,selectedVdiskId:s,nodeId:t,withDeveloperUILink:a}){return[{name:fe.slotId,header:ge[fe.slotId],width:100,render:({row:l})=>{const i=l.VDiskSlotId;let n=null;return(0,ce.f8)(t)&&(0,ce.f8)(e)&&(0,ce.f8)(i)&&(n=(0,m.Wg)({nodeId:t,pDiskId:e,vDiskSlotId:i})),(0,x.jsxs)("div",{className:he("vdisk-id",{selected:l.id===s}),children:[(0,x.jsx)("span",{children:i}),n&&a?(0,x.jsx)(se.$,{size:"s",className:he("external-button",{hidden:!0}),href:n,target:"_blank",title:(0,ve.A)("vdisk.developer-ui-button-title"),children:(0,x.jsx)(te.I,{data:J.A})}):null]})},align:ee.Ay.LEFT},{name:fe.VDiskState,header:ge[fe.VDiskState],width:70,render:({row:e})=>(0,x.jsx)(ne.k,{status:e.VDiskState===re.W.OK?de.m.Green:de.m.Red}),sortAccessor:e=>e.VDiskState===re.W.OK?1:0,align:ee.Ay.CENTER},{name:fe.Size,header:ge[fe.Size],width:170,render:({row:e})=>(0,x.jsx)(N.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:Q.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:ee.Ay.CENTER},{name:fe.Info,header:ge[fe.Info],width:70,render:({row:e})=>(0,x.jsx)(ae.A,{placement:["right"],content:(0,x.jsx)(oe.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:he("vdisk-details"),children:(0,x.jsx)(se.$,{view:"flat-secondary",className:he("vdisk-details-button",{selected:e.id===s}),children:(0,x.jsx)(te.I,{data:Z.A,size:18})})}),sortable:!1}]}function ke({id:e,data:s,selectedVdiskId:t,nodeId:l,unfolded:i}){const n=(0,h.X)(),[o,d]=a.useState(null!==i&&void 0!==i&&i),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:m,vDisks:p}=s,f=Number(r),g=Number(c);return(0,x.jsxs)("div",{className:he("pdisk"),id:e,children:[(0,x.jsxs)("div",{className:he("pdisk-header"),children:[(0,x.jsxs)("div",{className:he("pdisk-title-wrapper"),children:[(0,x.jsx)(ne.k,{status:u}),(0,x.jsx)(pe,{label:"PDiskID",value:v,className:he("pdisk-title-id")}),(0,x.jsx)(pe,{value:m,className:he("pdisk-title-type")}),(0,x.jsx)(N.O,{value:f-g,capacity:f,formatValues:Q.vX,colorizeProgress:!0,className:he("pdisk-title-size")}),(0,x.jsx)(pe,{label:"VDisks",value:p.length})]}),(0,x.jsx)(se.$,{onClick:o?()=>{d(!1)}:()=>{d(!0)},view:"flat-secondary",children:(0,x.jsx)(le.I,{direction:o?"top":"bottom"})})]}),o&&(X()(s)?(0,x.jsx)("div",{children:"No information about PDisk"}):(0,x.jsxs)("div",{children:[(0,x.jsx)(ie.Q,{pDisk:s,nodeId:l,className:he("pdisk-details"),withPDiskPageLink:!0}),(0,x.jsxs)("div",{className:he("vdisks-container"),children:[(0,x.jsx)("div",{className:he("vdisks-header"),children:"VDisks"}),(0,x.jsx)(ee.Ay,{theme:"yandex-cloud",data:p,columns:xe({nodeId:l,pDiskId:v,selectedVdiskId:t,withDeveloperUILink:n}),settings:{...ue.N3,dynamicRender:!1},rowClassName:e=>e.id===t?he("selected-vdisk"):""})]})]}))]})}const je=(0,v.cn)("kv-node-structure");function be({type:e,id:s}){return`${e}-${s}`}const Ne=function({nodeId:e,className:s}){const t=(0,F.N4)((s=>Y(s,e))),[l]=(0,F.Nt)(),{currentData:i,isFetching:n,error:o}=M.useGetNodeStructureQuery({nodeId:e},{pollingInterval:l}),r=n&&void 0===i,[{pdiskId:u,vdiskId:v}]=(0,d.useQueryParams)({pdiskId:d.StringParam,vdiskId:d.StringParam}),m=a.useRef(null),p=a.useRef(!1);return a.useEffect((()=>{if(!X()(t)&&!p.current&&m.current&&u){const s=document.getElementById(be({type:"pdisk",id:u}));let a=0;if(v){var e;const s=null===(e=t[u])||void 0===e?void 0:e.vDisks,l=null===s||void 0===s?void 0:s.find((e=>e.id===v)),i=l?document.querySelector(".data-table"):void 0,n=(null===l||void 0===l?void 0:l.order)||0;i&&(a+=i.offsetTop+40*n)}s&&(m.current.scrollTo({behavior:"smooth",top:a||s.offsetTop}),p.current=!0)}}),[t,u,v]),(0,x.jsxs)("div",{className:je(),ref:m,children:[o?(0,x.jsx)(c.o,{error:o,className:je("error")}):null,(0,x.jsx)("div",{className:s,children:r?(0,x.jsx)(B.a,{size:"m"}):o&&!i?null:(()=>{const s=Object.keys(t);return s.length>0?s.map((s=>(0,x.jsx)(ke,{data:t[s],id:be({type:"pdisk",id:s}),unfolded:u===s,selectedVdiskId:v,nodeId:e},s))):"There is no information about node structure."})()})]})},Ie=(0,v.cn)("node"),we="Storage";function ye(){var e,s;const t=a.useRef(null),l=(0,F.YQ)(),n=(0,o.W5)(P.Ay.node),r=null===n||void 0===n?void 0:n.params.id,u=null===n||void 0===n?void 0:n.params.activeTab,[{database:v}]=(0,d.useQueryParams)(G.Gi),m=G.IK.parse(u),[p]=(0,F.Nt)(),h=r?{nodeId:r}:i.hT,{currentData:f,isLoading:g,error:k}=M.useGetNodeInfoQuery(h,{pollingInterval:p}),j=(0,R.Pm)(),b=(0,R.c2)(),N=g||!j,I=null===f||void 0===f||null===(e=f.Roles)||void 0===e?void 0:e.find((e=>e===we)),{activeTab:w,nodeTabs:y}=a.useMemo((()=>{var e;let s=I?G.GX:G.GX.filter((e=>"storage"!==e.id));b&&(s=s.filter((e=>"structure"!==e.id)));return{activeTab:null!==(e=s.find((({id:e})=>e===m)))&&void 0!==e?e:s[0],nodeTabs:s}}),[I,b,m]),D=(null===f||void 0===f||null===(s=f.Tenants)||void 0===s?void 0:s[0])||(null===v||void 0===v?void 0:v.toString());return a.useEffect((()=>{g||l((0,C.g)("node",{tenantName:D,nodeRole:I?"Storage":"Compute",nodeId:r}))}),[l,D,r,g,I]),(0,x.jsxs)("div",{className:Ie(null),ref:t,children:[(0,x.jsx)(De,{node:f,activeTabTitle:w.title}),(0,x.jsx)(Se,{node:f,loading:N}),(0,x.jsx)(ze,{node:f}),k?(0,x.jsx)(c.o,{error:k,className:Ie("error")}):null,(0,x.jsx)(Te,{node:f,loading:N}),r?(0,x.jsx)(Ee,{nodeId:r,tenantName:D,activeTabId:w.id,tabs:y,parentContainer:t}):null]})}function De({node:e,activeTabTitle:s}){const t=null!==e&&void 0!==e&&e.Host?e.Host:(0,ve.A)("node");return(0,x.jsx)(n.mg,{titleTemplate:`%s \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${t} \u2014 YDB Monitoring`,children:(0,x.jsx)("title",{children:s})})}function Se({node:e,loading:s}){const t=null!==e&&void 0!==e&&e.Host?`${(0,ve.A)("fqdn")}: ${e.Host}`:void 0,a=null!==e&&void 0!==e&&e.DC?`${(0,ve.A)("dc")}: ${e.DC}`:void 0;return(0,x.jsx)(A.B,{loading:s,items:[t,a],className:Ie("meta")})}function ze({node:e}){return(0,x.jsx)(r.$,{entityName:(0,ve.A)("node"),status:null===e||void 0===e?void 0:e.SystemState,id:null===e||void 0===e?void 0:e.NodeId,className:Ie("title")})}function Te({node:e,loading:s}){return s?(0,x.jsx)(T.y,{className:Ie("info"),rows:10}):(0,x.jsx)(z,{node:e,className:Ie("info")})}function Ee({nodeId:e,tenantName:s,activeTabId:t,tabs:i,parentContainer:n}){return(0,x.jsxs)(a.Fragment,{children:[(0,x.jsx)("div",{className:Ie("tabs"),children:(0,x.jsx)(l.t,{size:"l",items:i,activeTab:t,wrapTo:({id:t},a)=>{const l=(0,G.vI)(e,{database:s},t);return(0,x.jsx)(E.E,{to:l,children:a},t)}})}),(()=>{switch(t){case"storage":return(0,x.jsx)($.z,{nodeId:e,parentRef:n,viewContext:{nodeId:e}});case"tablets":return(0,x.jsx)(q.C,{nodeId:e,database:s});case"structure":return(0,x.jsx)(Ne,{nodeId:e});default:return!1}})()]})}},18677:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},42655:(e,s,t)=>{t.d(s,{y:()=>c});var a=t(59284),l=t(89169),i=t(77506),n=t(66781),o=t(60712);const d=(0,i.cn)("ydb-info-viewer-skeleton"),r=()=>(0,o.jsxs)("div",{className:d("label"),children:[(0,o.jsx)(l.E,{className:d("label__text")}),(0,o.jsx)("div",{className:d("label__dots")})]}),c=({rows:e=8,className:s,delay:t=600})=>{const[i]=(0,n.y)(t);let c=(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)(r,{}),(0,o.jsx)(l.E,{className:d("value")})]});return i||(c=null),(0,o.jsx)("div",{className:d(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:d("row"),children:c},`skeleton-row-${s}`)))})}},45659:(e,s,t)=>{t.d(s,{Q:()=>f});var a=t(87184),l=t(92459),i=t(7435),n=t(46549),o=t(56839),d=t(31684),r=t(12888),c=t(18863),u=t(25196),v=t(15132),m=t(33775),p=t(50672),h=t(60712);function f({pDisk:e,nodeId:s,withPDiskPageLink:t,className:f}){const g=(0,r.X)(),[x,k,j,b]=function({pDisk:e,nodeId:s,withPDiskPageLink:t,isUserAllowedToMakeChanges:r}){const{PDiskId:c,Path:f,Guid:g,Category:x,Type:k,Device:j,Realtime:b,State:N,SerialNumber:I,TotalSize:w,AllocatedSize:y,StatusV2:D,NumActiveSlots:S,ExpectedSlotCount:z,LogUsedSize:T,LogTotalSize:E,SystemSize:A,SharedWithOs:P}=e||{},R=[];(0,i.f8)(x)&&R.push({label:(0,p.D)("type"),value:k}),(0,i.f8)(f)&&R.push({label:(0,p.D)("path"),value:f}),(0,i.f8)(g)&&R.push({label:(0,p.D)("guid"),value:g}),I&&R.push({label:(0,p.D)("serial-number"),value:I}),P&&R.push({label:(0,p.D)("shared-with-os"),value:(0,p.D)("yes")});const C=[];(0,i.f8)(D)&&C.push({label:(0,p.D)("drive-status"),value:D}),(0,i.f8)(N)&&C.push({label:(0,p.D)("state"),value:N}),(0,i.f8)(j)&&C.push({label:(0,p.D)("device"),value:(0,h.jsx)(m.k,{status:j})}),(0,i.f8)(b)&&C.push({label:(0,p.D)("realtime"),value:(0,h.jsx)(m.k,{status:b})});const V=[];V.push({label:(0,p.D)("space"),value:(0,h.jsx)(v.O,{value:y,capacity:w,formatValues:o.vX,colorizeProgress:!0})}),(0,i.f8)(S)&&(0,i.f8)(z)&&V.push({label:(0,p.D)("slots"),value:(0,h.jsx)(v.O,{value:S,capacity:z})}),(0,i.f8)(T)&&(0,i.f8)(E)&&V.push({label:(0,p.D)("log-size"),value:(0,h.jsx)(v.O,{value:T,capacity:E,formatValues:o.vX})}),(0,i.f8)(A)&&V.push({label:(0,p.D)("system-size"),value:(0,n.z3)({value:A})});const L=[];if((t||r)&&(0,i.f8)(c)&&(0,i.f8)(s)){const e=(0,l.Ck)(c,s),i=(0,d.ar)({nodeId:s,pDiskId:c});L.push({label:(0,p.D)("links"),value:(0,h.jsxs)(a.s,{wrap:"wrap",gap:2,children:[t&&(0,h.jsx)(u.K,{title:(0,p.D)("pdisk-page"),url:e,external:!1}),r&&(0,h.jsx)(u.K,{title:(0,p.D)("developer-ui"),url:i})]})})}return[R,C,V,L]}({pDisk:e,nodeId:s,withPDiskPageLink:t,isUserAllowedToMakeChanges:g});return(0,h.jsxs)(a.s,{className:f,gap:2,direction:"row",wrap:!0,children:[(0,h.jsxs)(a.s,{direction:"column",gap:2,width:500,children:[(0,h.jsx)(c.z,{info:x,renderEmptyState:()=>null}),(0,h.jsx)(c.z,{info:j,renderEmptyState:()=>null})]}),(0,h.jsxs)(a.s,{direction:"column",gap:2,width:500,children:[(0,h.jsx)(c.z,{info:k,renderEmptyState:()=>null}),(0,h.jsx)(c.z,{info:b,renderEmptyState:()=>null})]})]})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var a=t(87184),l=t(77506),i=t(90053),n=t(70043),o=t(60712);const d=(0,l.cn)("ydb-page-meta"),r="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:s}){return(0,o.jsx)("div",{className:d("info"),children:s?(0,o.jsx)(n.E,{className:d("skeleton")}):e.filter((e=>Boolean(e))).join(r)})}function u({className:e,...s}){return(0,o.jsxs)(a.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:d(null,e),children:[(0,o.jsx)(c,{...s}),(0,o.jsx)(i.E,{})]})}},67808:(e,s,t)=>{t.d(s,{E:()=>k});t(59284);var a=t(87184),l=t(92459),i=t(7435),n=t(77506),o=t(56839),d=t(31684),r=t(7187),c=t(12888),u=t(41650),v=t(60073),m=t(25196),p=t(15132),h=t(33775),f=t(39110),g=t(60712);const x=(0,n.cn)("ydb-vdisk-info");function k({data:e,withVDiskPageLink:s,withTitle:t,...n}){var r,x;const k=(0,c.X)(),{AllocatedSize:b,DiskSpace:N,FrontQueues:I,Guid:w,Replicated:y,VDiskState:D,VDiskSlotId:S,Kind:z,SatisfactionRank:T,AvailableSize:E,HasUnreadableBlobs:A,IncarnationGuid:P,InstanceGuid:R,StoragePoolName:C,ReadThroughput:V,WriteThroughput:L,PDiskId:O,NodeId:M}=e||{},F=[];var $,q;((0,i.f8)(S)&&F.push({label:(0,f.r)("slot-id"),value:S}),(0,i.f8)(C)&&F.push({label:(0,f.r)("pool-name"),value:C}),(0,i.f8)(D)&&F.push({label:(0,f.r)("state-status"),value:D}),Number(b)>=0&&Number(E)>=0&&F.push({label:(0,f.r)("size"),value:(0,g.jsx)(p.O,{value:b,capacity:Number(b)+Number(E),formatValues:o.vX,colorizeProgress:!0})}),(0,i.f8)(z)&&F.push({label:(0,f.r)("kind"),value:z}),(0,i.f8)(w)&&F.push({label:(0,f.r)("guid"),value:w}),(0,i.f8)(P)&&F.push({label:(0,f.r)("incarnation-guid"),value:P}),(0,i.f8)(R)&&F.push({label:(0,f.r)("instance-guid"),value:R}),(0,i.f8)(y)&&F.push({label:(0,f.r)("replication-status"),value:y?(0,f.r)("yes"):(0,f.r)("no")}),(0,i.f8)(N)&&F.push({label:(0,f.r)("space-status"),value:(0,g.jsx)(h.k,{status:N})}),(0,i.f8)(null===T||void 0===T||null===(r=T.FreshRank)||void 0===r?void 0:r.Flag))&&F.push({label:(0,f.r)("fresh-rank-satisfaction"),value:(0,g.jsx)(h.k,{status:null===T||void 0===T||null===($=T.FreshRank)||void 0===$?void 0:$.Flag})});(0,i.f8)(null===T||void 0===T||null===(x=T.LevelRank)||void 0===x?void 0:x.Flag)&&F.push({label:(0,f.r)("level-rank-satisfaction"),value:(0,g.jsx)(h.k,{status:null===T||void 0===T||null===(q=T.LevelRank)||void 0===q?void 0:q.Flag})});(0,i.f8)(I)&&F.push({label:(0,f.r)("front-queues"),value:(0,g.jsx)(h.k,{status:I})}),(0,i.f8)(A)&&F.push({label:(0,f.r)("has-unreadable-blobs"),value:A?(0,f.r)("yes"):(0,f.r)("no")}),(0,i.f8)(V)&&F.push({label:(0,f.r)("read-throughput"),value:(0,u.O4)(V)}),(0,i.f8)(L)&&F.push({label:(0,f.r)("write-throughput"),value:(0,u.O4)(L)});if((0,i.f8)(O)&&(0,i.f8)(M)&&(0,i.f8)(S)){const e=[];if(s){const s=(0,l.yX)(S,O,M);e.push((0,g.jsx)(m.K,{title:(0,f.r)("vdisk-page"),url:s,external:!1},s))}if(k){const s=(0,d.Wg)({nodeId:M,pDiskId:O,vDiskSlotId:S});e.push((0,g.jsx)(m.K,{title:(0,f.r)("developer-ui"),url:s},s))}e.length&&F.push({label:(0,f.r)("links"),value:(0,g.jsx)(a.s,{wrap:"wrap",gap:2,children:e})})}const G=e&&t?(0,g.jsx)(j,{data:e}):null;return(0,g.jsx)(v.z_,{info:F,title:G,...n})}function j({data:e}){return(0,g.jsxs)("div",{className:x("title"),children:[(0,f.r)("vdiks-title"),(0,g.jsx)(h.k,{status:(0,r.XY)(e.Severity)}),e.StringifiedId]})}},70043:(e,s,t)=>{t.d(s,{E:()=>n});var a=t(89169),l=t(66781),i=t(60712);const n=({delay:e=600,className:s})=>{const[t]=(0,l.y)(e);return t?(0,i.jsx)(a.E,{className:s}):null}},71635:(e,s,t)=>{t.d(s,{C:()=>g});var a=t(44992),l=t(53850),i=t(62060),n=t.n(i),o=t(21334),d=t(24600);const r=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:s})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:s})}}catch(t){return{error:t}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),c=(0,l.Mz)((e=>e),(e=>r.endpoints.getTabletsInfo.select(e)),{argsMemoize:l.i5,argsMemoizeOptions:{equalityCheck:n()}}),u=(0,l.Mz)((e=>e),((e,s)=>c(s)),((e,s)=>s(e).data)),v=(0,l.Mz)(((e,s)=>u(e,s)),(e=>(0,d.K)(e)),((e,s)=>null!==e&&void 0!==e&&e.TabletStateInfo?s?e.TabletStateInfo.map((e=>{var t;const a=void 0===e.NodeId||null===(t=s.get(e.NodeId))||void 0===t?void 0:t.Host;return{...e,fqdn:a}})):e.TabletStateInfo:[]));var m=t(7435),p=t(90182),h=t(88616),f=t(60712);function g({nodeId:e,path:s,database:t}){const[l]=(0,p.Nt)();let i={};(0,m.f8)(e)?i={nodeId:e,database:t}:s&&(i={path:s,database:t});const{isLoading:n,error:o}=r.useGetTabletsInfoQuery(0===Object.keys(i).length?a.hT:i,{pollingInterval:l}),d=(0,p.N4)((e=>v(e,i)));return(0,f.jsx)(h.Q,{tablets:d,database:t,loading:n,error:o})}},74321:(e,s,t)=>{t.d(s,{S:()=>r});var a=t(59284),l=t(64222),i=t(46898);function n(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const d=(0,t(69220).om)("checkbox"),r=a.forwardRef((function(e,s){const{size:t="m",indeterminate:r,disabled:c=!1,content:u,children:v,title:m,style:p,className:h,qa:f}=e,{checked:g,inputProps:x}=(0,l.v)(e),k=u||v,j=a.createElement("span",{className:d("indicator")},a.createElement("span",{className:d("icon"),"aria-hidden":!0},r?a.createElement(n,{className:d("icon-svg",{type:"dash"})}):a.createElement(o,{className:d("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},x,{className:d("control")})),a.createElement("span",{className:d("outline")}));return a.createElement(i.m,{ref:s,title:m,style:p,size:t,disabled:c,className:d({size:t,disabled:c,indeterminate:r,checked:g},h),qa:f,control:j},k)}))},76938:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84027.c693664b.chunk.js b/ydb/core/viewer/monitoring/static/js/84027.c693664b.chunk.js new file mode 100644 index 0000000000..b2b1a9dd35 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84027.c693664b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84027],{83e3:e=>{function a(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'\xb4`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([\xb4`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}e.exports=a,a.displayName="aql",a.aliases=[]},84027:(e,a,n)=>{n.d(a,{default:()=>T});var t=n(83e3);const T=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84307.59d32ce3.chunk.js b/ydb/core/viewer/monitoring/static/js/84307.59d32ce3.chunk.js new file mode 100644 index 0000000000..69cd5f4418 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84307.59d32ce3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84307],{32098:(e,a,t)=>{var n=t(51572);function i(e){e.register(n),function(e){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:i,punctuation:s};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:n,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(a){if(/<\?/.test(a.code)){e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")}))}(e)}e.exports=i,i.displayName="php",i.aliases=[]},51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,(function(e){if("function"===typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o<l.length&&!(i>=s.length);o++){var d=l[o];if("string"===typeof d||d.content&&"string"===typeof d.content){var p=s[i],c=t.tokenStack[p],u="string"===typeof d?d:d.content,b=a(n,p),g=u.indexOf(b);if(g>-1){++i;var f=u.substring(0,g),m=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),h=u.substring(g+b.length),y=[];f&&y.push.apply(y,r([f])),y.push(m),h&&y.push.apply(y,r([h])),"string"===typeof d?l.splice.apply(l,[o,1].concat(y)):d.content=y}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]},84307:(e,a,t)=>{t.d(a,{default:()=>i});var n=t(86528);const i=t.n(n)()},86528:(e,a,t)=>{var n=t(51572),i=t(32098);function s(e){e.register(n),e.register(i),function(e){e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}};var a=e.languages.extend("markup",{});e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},a.tag),e.hooks.add("before-tokenize",(function(t){if("latte"===t.language){e.languages["markup-templating"].buildPlaceholders(t,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),t.grammar=a}})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"latte")}))}(e)}e.exports=s,s.displayName="latte",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84401.8a09e9ae.chunk.js b/ydb/core/viewer/monitoring/static/js/84401.8a09e9ae.chunk.js new file mode 100644 index 0000000000..e81f5a89b4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84401.8a09e9ae.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84401],{6782:function(u,r,n){u.exports=function(u){"use strict";function r(u){return u&&"object"==typeof u&&"default"in u?u:{default:u}}var n=r(u),e={s:["nokkrar sek\xfandur","nokkrar sek\xfandur","nokkrum sek\xfandum"],m:["m\xedn\xfata","m\xedn\xfatu","m\xedn\xfatu"],mm:["m\xedn\xfatur","m\xedn\xfatur","m\xedn\xfatum"],h:["klukkustund","klukkustund","klukkustund"],hh:["klukkustundir","klukkustundir","klukkustundum"],d:["dagur","dag","degi"],dd:["dagar","daga","d\xf6gum"],M:["m\xe1nu\xf0ur","m\xe1nu\xf0","m\xe1nu\xf0i"],MM:["m\xe1nu\xf0ir","m\xe1nu\xf0i","m\xe1nu\xf0um"],y:["\xe1r","\xe1r","\xe1ri"],yy:["\xe1r","\xe1r","\xe1rum"]};function t(u,r,n,t){var m=function(u,r,n,t){var m=t?0:n?1:2,a=2===u.length&&r%10==1?u[0]:u,d=e[a][m];return 1===u.length?d:"%d "+d}(n,u,t,r);return m.replace("%d",u)}var m={name:"is",weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),weekStart:1,weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),ordinal:function(u){return u},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};return n.default.locale(m,null,!0),m}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8452.3bfa9018.chunk.js b/ydb/core/viewer/monitoring/static/js/8452.3bfa9018.chunk.js deleted file mode 100644 index 11c27555a4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8452.3bfa9018.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8452],{1431:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(46346);const s=t.n(a)()},29866:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(50683);const s=t.n(a)()},30249:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(32098);const s=t.n(a)()},32098:(e,n,t)=>{var a=t(51572);function s(e){e.register(a),function(e){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:s,punctuation:i};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:a,operator:s,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(n){if(/<\?/.test(n.code)){e.languages["markup-templating"].buildPlaceholders(n,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"php")}))}(e)}e.exports=s,s.displayName="php",s.aliases=[]},37558:e=>{function n(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=n,n.displayName="python",n.aliases=["py"]},46306:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(90323);const s=t.n(a)()},46346:e=>{function n(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=n,n.displayName="go",n.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,s,i){if(t.language===a){var r=t.tokenStack=[];t.code=t.code.replace(s,(function(e){if("function"===typeof i&&!i(e))return e;for(var s,o=r.length;-1!==t.code.indexOf(s=n(a,o));)++o;return r[o]=e,s})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var s=0,i=Object.keys(t.tokenStack);!function r(o){for(var l=0;l<o.length&&!(s>=i.length);l++){var c=o[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var d=i[s],p=t.tokenStack[d],u="string"===typeof c?c:c.content,b=n(a,d),g=u.indexOf(b);if(g>-1){++s;var f=u.substring(0,g),m=new e.Token(a,e.tokenize(p,t.grammar),"language-"+a,p),h=u.substring(g+b.length),_=[];f&&_.push.apply(_,r([f])),_.push(m),h&&_.push.apply(_,r([h])),"string"===typeof c?o.splice.apply(o,[l,1].concat(_)):c.content=_}}else c.content&&r(c.content)}return o}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},53950:e=>{function n(e){!function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,r=0;r<s.length;r++)i[s[r]]=e.languages.bash[s[r]];e.languages.shell=e.languages.bash}(e)}e.exports=n,n.displayName="bash",n.aliases=["shell"]},56421:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(89488);const s=t.n(a)()},80719:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(53950);const s=t.n(a)()},81243:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(37558);const s=t.n(a)()},81571:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(93292);const s=t.n(a)()},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]},89488:e=>{function n(e){!function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=n,n.displayName="java",n.aliases=[]},90323:e=>{function n(e){!function(e){function n(e,n){return e.replace(/<<(\d+)>>/g,(function(e,t){return"(?:"+n[+t]+")"}))}function t(e,t,a){return RegExp(n(e,t),a||"")}function a(e,n){for(var t=0;t<n;t++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var s="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",r="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),d=RegExp(l(s+" "+i+" "+r+" "+o)),p=l(i+" "+r+" "+o),u=l(s+" "+i+" "+o),b=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=a(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[f,b]),h=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,m]),_=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[h,_]),k=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[b,g,_]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),S=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,h,_]),E={keyword:d,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:t(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:t(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:t(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,S]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:t(/(\b<<0>>\s+)<<1>>/.source,[c,m]),lookbehind:!0,inside:E},{pattern:t(/(\bcatch\s*\(\s*)<<0>>/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:t(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:t(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,u,f]),inside:E}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:t(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:t(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:t(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:t(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,h]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:t(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:t(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,b]),inside:{function:t(/^<<0>>/.source,[f]),generic:{pattern:RegExp(b),alias:"class-name",inside:E}}},"type-list":{pattern:t(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,m,f,S,d.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:t(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(S),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=A+"|"+v,I=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),N=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,R=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[h,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:t(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,R]),lookbehind:!0,greedy:!0,inside:{target:{pattern:t(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:t(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(h),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),D=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$,z]),P=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),L=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,z]);function B(n,a){return{interpolation:{pattern:t(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[n]),lookbehind:!0,inside:{"format-string":{pattern:t(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:t(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:B(D,$)},{pattern:t(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:B(L,P)}],char:{pattern:RegExp(v),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=n,n.displayName="csharp",n.aliases=["dotnet","cs"]},93292:(e,n,t)=>{var a=t(89343);function s(e){e.register(a),function(e){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return n.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return t}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=s,s.displayName="cpp",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84578.9e6910e9.chunk.js b/ydb/core/viewer/monitoring/static/js/84578.9e6910e9.chunk.js new file mode 100644 index 0000000000..795457bce5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84578.9e6910e9.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84578],{25875:e=>{function r(e){!function(e){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,t="(?:"+n.source+"(?:[ \t]+"+r.source+")?|"+r.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(e,r){r=(r||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return t})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,r)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return t}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return t})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(o),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=r,r.displayName="yaml",r.aliases=["yml"]},84578:(e,r,n)=>{n.d(r,{default:()=>a});var t=n(25875);const a=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84582.caa06f15.chunk.js b/ydb/core/viewer/monitoring/static/js/84582.caa06f15.chunk.js new file mode 100644 index 0000000000..740475ec28 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84582.caa06f15.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 84582.caa06f15.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84582],{84582:(e,_,t)=>{t.r(_),t.d(_,{conf:()=>s,language:()=>r});var s={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},r={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","FALSE","FETCH","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","NATURAL","NOT","NOTNULL","NULL","OFFSET","ON","ONLY","OR","ORDER","OUTER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["abbrev","abs","acldefault","aclexplode","acos","acosd","acosh","age","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","ascii","asin","asind","asinh","atan","atan2","atan2d","atand","atanh","avg","bit","bit_and","bit_count","bit_length","bit_or","bit_xor","bool_and","bool_or","bound_box","box","brin_desummarize_range","brin_summarize_new_values","brin_summarize_range","broadcast","btrim","cardinality","cbrt","ceil","ceiling","center","char_length","character_length","chr","circle","clock_timestamp","coalesce","col_description","concat","concat_ws","convert","convert_from","convert_to","corr","cos","cosd","cosh","cot","cotd","count","covar_pop","covar_samp","cume_dist","current_catalog","current_database","current_date","current_query","current_role","current_schema","current_schemas","current_setting","current_time","current_timestamp","current_user","currval","cursor_to_xml","cursor_to_xmlschema","date_bin","date_part","date_trunc","database_to_xml","database_to_xml_and_xmlschema","database_to_xmlschema","decode","degrees","dense_rank","diagonal","diameter","div","encode","enum_first","enum_last","enum_range","every","exp","extract","factorial","family","first_value","floor","format","format_type","gcd","gen_random_uuid","generate_series","generate_subscripts","get_bit","get_byte","get_current_ts_config","gin_clean_pending_list","greatest","grouping","has_any_column_privilege","has_column_privilege","has_database_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_schema_privilege","has_sequence_privilege","has_server_privilege","has_table_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","initcap","isclosed","isempty","isfinite","isopen","json_agg","json_array_elements","json_array_elements_text","json_array_length","json_build_array","json_build_object","json_each","json_each_text","json_extract_path","json_extract_path_text","json_object","json_object_agg","json_object_keys","json_populate_record","json_populate_recordset","json_strip_nulls","json_to_record","json_to_recordset","json_to_tsvector","json_typeof","jsonb_agg","jsonb_array_elements","jsonb_array_elements_text","jsonb_array_length","jsonb_build_array","jsonb_build_object","jsonb_each","jsonb_each_text","jsonb_extract_path","jsonb_extract_path_text","jsonb_insert","jsonb_object","jsonb_object_agg","jsonb_object_keys","jsonb_path_exists","jsonb_path_match","jsonb_path_query","jsonb_path_query_array","jsonb_path_exists_tz","jsonb_path_query_first","jsonb_path_query_array_tz","jsonb_path_query_first_tz","jsonb_path_query_tz","jsonb_path_match_tz","jsonb_populate_record","jsonb_populate_recordset","jsonb_pretty","jsonb_set","jsonb_set_lax","jsonb_strip_nulls","jsonb_to_record","jsonb_to_recordset","jsonb_to_tsvector","jsonb_typeof","justify_days","justify_hours","justify_interval","lag","last_value","lastval","lcm","lead","least","left","length","line","ln","localtime","localtimestamp","log","log10","lower","lower_inc","lower_inf","lpad","lseg","ltrim","macaddr8_set7bit","make_date","make_interval","make_time","make_timestamp","make_timestamptz","makeaclitem","masklen","max","md5","min","min_scale","mod","mode","multirange","netmask","network","nextval","normalize","now","npoints","nth_value","ntile","nullif","num_nonnulls","num_nulls","numnode","obj_description","octet_length","overlay","parse_ident","path","pclose","percent_rank","percentile_cont","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backend_pid","pg_backup_start_time","pg_blocking_pids","pg_cancel_backend","pg_client_encoding","pg_collation_actual_version","pg_collation_is_visible","pg_column_compression","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_copy_logical_replication_slot","pg_copy_physical_replication_slot","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_logfile","pg_current_snapshot","pg_current_wal_flush_lsn","pg_current_wal_insert_lsn","pg_current_wal_lsn","pg_current_xact_id","pg_current_xact_id_if_assigned","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_event_trigger_ddl_commands","pg_event_trigger_dropped_objects","pg_event_trigger_table_rewrite_oid","pg_event_trigger_table_rewrite_reason","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_catalog_foreign_keys","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_statisticsobjdef","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_get_wal_replay_pause_state","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_import_system_collations","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_wal_replay_paused","pg_is_xlog_replay_paused","pg_jit_available","pg_last_committed_xact","pg_last_wal_receive_lsn","pg_last_wal_replay_lsn","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_log_backend_memory_contexts","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_archive_statusdir","pg_ls_dir","pg_ls_logdir","pg_ls_tmpdir","pg_ls_waldir","pg_mcv_list_items","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_partition_ancestors","pg_partition_root","pg_partition_tree","pg_postmaster_start_time","pg_promote","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_advance","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_replication_slot_advance","pg_rotate_logfile","pg_safe_snapshot_blocking_pids","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_snapshot_xip","pg_snapshot_xmax","pg_snapshot_xmin","pg_start_backup","pg_stat_file","pg_statistics_obj_is_visible","pg_stop_backup","pg_switch_wal","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_terminate_backend","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_visible_in_snapshot","pg_wal_lsn_diff","pg_wal_replay_pause","pg_wal_replay_resume","pg_walfile_name","pg_walfile_name_offset","pg_xact_commit_timestamp","pg_xact_commit_timestamp_origin","pg_xact_status","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","pi","plainto_tsquery","point","polygon","popen","position","power","pqserverversion","query_to_xml","query_to_xml_and_xmlschema","query_to_xmlschema","querytree","quote_ident","quote_literal","quote_nullable","radians","radius","random","range_agg","range_intersect_agg","range_merge","rank","regexp_count","regexp_instr","regexp_like","regexp_match","regexp_matches","regexp_replace","regexp_split_to_array","regexp_split_to_table","regexp_substr","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","repeat","replace","reverse","right","round","row_number","row_security_active","row_to_json","rpad","rtrim","scale","schema_to_xml","schema_to_xml_and_xmlschema","schema_to_xmlschema","session_user","set_bit","set_byte","set_config","set_masklen","setseed","setval","setweight","sha224","sha256","sha384","sha512","shobj_description","sign","sin","sind","sinh","slope","split_part","sprintf","sqrt","starts_with","statement_timestamp","stddev","stddev_pop","stddev_samp","string_agg","string_to_array","string_to_table","strip","strpos","substr","substring","sum","suppress_redundant_updates_trigger","table_to_xml","table_to_xml_and_xmlschema","table_to_xmlschema","tan","tand","tanh","text","timeofday","timezone","to_ascii","to_char","to_date","to_hex","to_json","to_number","to_regclass","to_regcollation","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_timestamp","to_tsquery","to_tsvector","transaction_timestamp","translate","trim","trim_array","trim_scale","trunc","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_if_assigned","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_status","txid_visible_in_snapshot","unistr","unnest","upper","upper_inc","upper_inf","user","var_pop","var_samp","variance","version","websearch_to_tsquery","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/84582.caa06f15.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/84582.caa06f15.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/84587.961ae27a.chunk.js b/ydb/core/viewer/monitoring/static/js/84587.961ae27a.chunk.js new file mode 100644 index 0000000000..b8ad5909bd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84587.961ae27a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84587],{37260:e=>{function t(e){!function(e){function t(e,t,a){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:a}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(a){var n=e.languages[a],i="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",n,i),"class-feature":t("\\+",n,i),standard:t("",n,i)}}}}})}(e)}e.exports=t,t.displayName="t4Templating",t.aliases=[]},84587:(e,t,a)=>{a.d(t,{default:()=>i});var n=a(37260);const i=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84652.5dfa8103.chunk.js b/ydb/core/viewer/monitoring/static/js/84652.5dfa8103.chunk.js new file mode 100644 index 0000000000..993699354f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84652.5dfa8103.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84652],{84652:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"lo",weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84745.60da2449.chunk.js b/ydb/core/viewer/monitoring/static/js/84745.60da2449.chunk.js new file mode 100644 index 0000000000..5aa3032ffe --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84745.60da2449.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84745],{84745:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/84870.ab138a59.chunk.js b/ydb/core/viewer/monitoring/static/js/84870.ab138a59.chunk.js new file mode 100644 index 0000000000..ed7a1e028b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84870.ab138a59.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 84870.ab138a59.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84870],{84870:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>m,language:()=>b});var r,o,l=t(80781),a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,n,t,r)=>{if(n&&"object"===typeof n||"function"===typeof n)for(let o of c(n))u.call(e,o)||o===t||a(e,o,{get:()=>n[o],enumerable:!(r=i(n,o))||r.enumerable});return e},s={};d(s,r=l,"default"),o&&d(o,r,"default");var m={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:s.languages.IndentAction.Indent}}]},b={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/84870.ab138a59.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/84870.ab138a59.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/84960.05121e37.chunk.js b/ydb/core/viewer/monitoring/static/js/84960.05121e37.chunk.js new file mode 100644 index 0000000000..dfb039d153 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/84960.05121e37.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[84960],{31783:a=>{function e(a){!function(a){function e(a,e){return RegExp(a.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),e)}a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var t=["function","function-variable","method","method-variable","property-access"],s=0;s<t.length;s++){var r=t[s],n=a.languages.javascript[r];"RegExp"===a.util.type(n)&&(n=a.languages.javascript[r]={pattern:n});var o=n.inside||{};n.inside=o,o["maybe-class-name"]=/^[A-Z][\s\S]*/}}(a)}a.exports=e,e.displayName="jsExtras",e.aliases=[]},84960:(a,e,t)=>{t.d(e,{default:()=>r});var s=t(31783);const r=t.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85027.462a7fdc.chunk.js b/ydb/core/viewer/monitoring/static/js/85027.462a7fdc.chunk.js new file mode 100644 index 0000000000..5deeb28675 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85027.462a7fdc.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85027],{85027:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),u={name:"en-ca",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return a.default.locale(u,null,!0),u}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85047.23b0ab8e.chunk.js b/ydb/core/viewer/monitoring/static/js/85047.23b0ab8e.chunk.js new file mode 100644 index 0000000000..20ef1479e4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85047.23b0ab8e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85047],{85047:function(e,t,r){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e);function n(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,r,a){var s=e+" ";switch(r){case"s":return t||a?"p\xe1r sek\xfand":"p\xe1r sekundami";case"m":return t?"min\xfata":a?"min\xfatu":"min\xfatou";case"mm":return t||a?s+(n(e)?"min\xfaty":"min\xfat"):s+"min\xfatami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?s+(n(e)?"hodiny":"hod\xedn"):s+"hodinami";case"d":return t||a?"de\u0148":"d\u0148om";case"dd":return t||a?s+(n(e)?"dni":"dn\xed"):s+"d\u0148ami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?s+(n(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?s+(n(e)?"roky":"rokov"):s+"rokmi"}}var s={name:"sk",weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return r.default.locale(s,null,!0),s}(r(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8517.cf981031.chunk.js b/ydb/core/viewer/monitoring/static/js/8517.cf981031.chunk.js deleted file mode 100644 index 39ac54d233..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8517.cf981031.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8517],{78517:function(a,i,_){a.exports=function(a){"use strict";function i(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=i(a),e={name:"ga",weekdays:"D\xe9 Domhnaigh_D\xe9 Luain_D\xe9 M\xe1irt_D\xe9 C\xe9adaoin_D\xe9ardaoin_D\xe9 hAoine_D\xe9 Satharn".split("_"),months:"Ean\xe1ir_Feabhra_M\xe1rta_Aibre\xe1n_Bealtaine_M\xe9itheamh_I\xfail_L\xfanasa_Me\xe1n F\xf3mhair_Deaireadh F\xf3mhair_Samhain_Nollaig".split("_"),weekStart:1,weekdaysShort:"Dom_Lua_M\xe1i_C\xe9a_D\xe9a_hAo_Sat".split("_"),monthsShort:"Ean\xe1_Feab_M\xe1rt_Aibr_Beal_M\xe9it_I\xfail_L\xfana_Me\xe1n_Deai_Samh_Noll".split("_"),weekdaysMin:"Do_Lu_M\xe1_Ce_D\xe9_hA_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xed",y:"bliain",yy:"%d bliain"}};return _.default.locale(e,null,!0),e}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85393.341703ec.chunk.js b/ydb/core/viewer/monitoring/static/js/85393.341703ec.chunk.js new file mode 100644 index 0000000000..4675c5264f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85393.341703ec.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85393],{85393:(e,r,t)=>{t.d(r,{default:()=>a});var n=t(98046);const a=t.n(n)()},98046:e=>{function r(e){!function(e){var r=/%%?[~:\w]+%?|!\S+!/,t={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},n=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:n,parameter:t,variable:r,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:n,parameter:t,variable:r,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:n,parameter:t,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:n,parameter:t,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(e)}e.exports=r,r.displayName="batch",r.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85406.ba8965be.chunk.js b/ydb/core/viewer/monitoring/static/js/85406.ba8965be.chunk.js new file mode 100644 index 0000000000..c5cc0925f3 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85406.ba8965be.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85406],{63025:(e,n,t)=>{t.d(n,{default:()=>d});var a=t(83847);const d=t.n(a)()},83847:e=>{function n(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}e.exports=n,n.displayName="prolog",n.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85595.262d8065.chunk.js b/ydb/core/viewer/monitoring/static/js/85595.262d8065.chunk.js new file mode 100644 index 0000000000..e170647ef6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85595.262d8065.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85595],{3899:e=>{function a(e){!function(e){var a=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(a,"addSupport",{value:function(a,n){"string"===typeof a&&(a=[a]),a.forEach((function(a){!function(a,n){var t="doc-comment",s=e.languages[a];if(s){var i=s[t];if(!i){var o={};o[t]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(s=e.languages.insertBefore(a,"comment",o))[t]}if(i instanceof RegExp&&(i=s[t]={pattern:i}),Array.isArray(i))for(var r=0,d=i.length;r<d;r++)i[r]instanceof RegExp&&(i[r]={pattern:i[r]}),n(i[r]);else n(i)}}(a,(function(e){e.inside||(e.inside={}),e.inside.rest=n}))}))}}),a.addSupport(["java","javascript","php"],a)}(e)}e.exports=a,a.displayName="javadoclike",a.aliases=[]},85595:(e,a,n)=>{n.d(a,{default:()=>s});var t=n(86823);const s=n.n(t)()},86823:(e,a,n)=>{var t=n(89488),s=n(3899);function i(e){e.register(t),e.register(s),function(e){var a=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,t=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,(function(){return n}));e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+t+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:a,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:a,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}(e)}e.exports=i,i.displayName="javadoc",i.aliases=[]},89488:e=>{function a(e){!function(e){var a=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,t={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[t,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:t.inside}],keyword:a,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":t,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return a.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=a,a.displayName="java",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/856.36f195a5.chunk.js b/ydb/core/viewer/monitoring/static/js/856.36f195a5.chunk.js deleted file mode 100644 index bd6d4b08f7..0000000000 --- a/ydb/core/viewer/monitoring/static/js/856.36f195a5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[856],{2680:(e,t,n)=>{var a=n(43665),s=n(81061),l=n(28293),r=n(19305);e.exports=function(e,t){return function(n,i){var c=r(n)?a:s,o=t?t():{};return c(n,e,l(i,2),o)}}},6170:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var a=n(59284),s=n(73633),l=n(84375),r=n(99991);const i=(0,n(98192).om)("help-popover"),c=16;function o(e){var t;return a.createElement(l.A,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(r.I,{data:s.A,size:c})))}},18143:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var a=n(59284);const s=(0,n(69220).om)("progress");function l(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function r({item:e}){const{value:t,color:n,className:l,theme:r,title:i,content:c,loading:o}=e,m={loading:o};return"undefined"===typeof n&&(m.theme=r||"default"),Number.isFinite(t)?a.createElement("div",{className:s("item",m,l),style:{width:`${t}%`,backgroundColor:n},title:i},c):null}function i(e){return e<100?e-100:0}function c(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const l="number"===typeof a?a:s,r=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return l>=r&&l<=i}));return e?e.theme:t}return t}function o(e){const{stack:t,stackClassName:n,value:c,text:o}=e,m=i(c||function(e){return e.reduce(((e,{value:t})=>e+t),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${m}%))`}},a.createElement("div",{className:s("item"),style:{width:-m+"%"}}),t.map(((e,t)=>a.createElement(r,{key:t,item:e}))),a.createElement(l,{offset:m,text:o}))}function m(e){const{value:t,loading:n,text:r}=e,o=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:c(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${o}%))`}},a.createElement(l,{offset:o,text:r})):null}const u=a.forwardRef((function(e,t){const{text:n="",theme:l="default",size:r="m",loading:i=!1,className:c,qa:u}=e,d=Object.assign(Object.assign({},e),{text:n,theme:l,size:r,loading:i});return a.createElement("div",{ref:t,className:s({size:r},c),"data-qa":u},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(d)?a.createElement(o,Object.assign({},d)):a.createElement(m,Object.assign({},d)))}))},18677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},43665:e=>{e.exports=function(e,t,n,a){for(var s=-1,l=null==e?0:e.length;++s<l;){var r=e[s];t(a,r,n(r),e)}return a}},53302:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});const a=(0,n(82435).withNaming)({e:"__",m:"_"})},57439:(e,t,n)=>{"use strict";n.d(t,{u:()=>O});var a=n(59284),s=n(96873),l=n(98192);const r=(0,l.om)("definition-list");const i=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>i(e)));function o(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function m({copyText:e,content:t,copyPosition:n}){const l="inside"===n,i=null!==t&&void 0!==t?t:"\u2014";return e?a.createElement("div",{className:r("copy-container",{"icon-inside":l})},a.createElement("span",null,i),a.createElement(s.b,{size:"s",text:e,className:r("copy-button"),view:l?"raised":"flat-secondary"})):i}var u=n(98089);function d({label:e}){return a.createElement("div",{className:r("group-title")},a.createElement(u.E,{variant:"subheader-1",color:"complementary"},e))}var p=n(6170),v=n(72837);const f=JSON.parse('{"label_note":"Note"}'),b=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),h=(0,v.N)({en:f,ru:b},`${l.CU}definition-list`);var g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function N({note:e}){if(!e)return null;const t=r("item-note-tooltip");if("string"===typeof e)return a.createElement(p.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":h("label_note")}});if("object"===typeof e){const{buttonProps:n}=e,s=g(e,["buttonProps"]);return a.createElement(p.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":h("label_note")},n)},s))}return null}function y({note:e,name:t,nameTitle:n,multilineName:s,direction:l}){const i=a.createElement(a.Fragment,null,"\xa0",a.createElement(N,{note:e}));return a.createElement(a.Fragment,null,a.createElement("div",{className:r("term-wrapper")},a.createElement("span",{title:o(n,t)},t),s&&i),!s&&i,"horizontal"===l&&a.createElement("div",{className:r("dots",{"with-note":Boolean(e)})}))}var w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function E({items:e,responsive:t,direction:n="horizontal",nameMaxWidth:s,contentMaxWidth:l="auto",className:i,itemClassName:c,copyPosition:u="outside",qa:d}){const p=s?{maxWidth:s,width:s}:{},v="number"===typeof l?{width:l,maxWidth:l}:{},f=a.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return a.createElement("div",{className:r({responsive:t,vertical:"vertical"===n},i),"data-qa":d},a.createElement("dl",{className:r("list")},f.map((e=>{const{name:t,key:s,content:l,contentTitle:i,nameTitle:d,copyText:f,note:b,multilineName:h}=e;return a.createElement("div",{key:s,className:r("item",c)},a.createElement("dt",{className:r("term-container",{multiline:h}),style:p},a.createElement(y,{direction:n,name:t,nameTitle:d,note:b,multilineName:h})),a.createElement("dd",{className:r("definition"),title:o(i,l),style:Object.assign(Object.assign({},v),{lineBreak:"string"===typeof l&&(g=20,function(e){return e.split(/\s+/).some((e=>e.length>g))})(l)?"anywhere":void 0})},a.createElement(m,{copyPosition:u,copyText:f,content:l})));var g}))))}function x(e){var{items:t,className:n,itemClassName:s}=e,l=w(e,["items","className","itemClassName"]);const i=a.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("div",{className:r({vertical:"vertical"===l.direction},n)},i.map((e=>{const{key:t,label:n}=e;return a.createElement(a.Fragment,{key:t},n&&a.createElement(d,{label:n}),e.items&&a.createElement(E,Object.assign({},l,{className:r({margin:!n}),items:e.items,itemClassName:r("item",{grouped:Boolean(n)},s)})))})))}function O(e){var{items:t}=e,n=w(e,["items"]);if(c(t))return a.createElement(E,Object.assign({},n,{items:t}));const s=function(e){const t=[];let n=[];for(const a of e)i(a)?(n.length&&(t.push({items:n,label:null}),n=[]),t.push(a)):n.push(a);return n.length&&(t.push({items:n,label:null}),n=[]),t}(t);return a.createElement(x,Object.assign({},n,{items:s}))}},63126:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var a=n(60712),s=n(59284),l=n(40569),r=n(53302);const i="--ydb-tree-view-level",c=(0,r.o)("ydb-tree-view");function o({children:e,name:t,title:n,icon:r,collapsed:o=!0,active:m=!1,onClick:u,onArrowClick:d,onActionsOpenToggle:p,hasArrow:v=!1,actions:f,additionalNodeElements:b,level:h}){const g=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),N=d||u;let y="tree-view_arrow",w="tree-view_children";return o&&(y+=" tree-view_arrow-collapsed",w+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:c(),style:{[i]:h},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${c("item",{active:m})}`,onClick:g,children:[(0,a.jsx)("button",{type:"button",className:`${y} ${c("arrow",{collapsed:o,hidden:!v})}`,disabled:!N,onClick:N}),(0,a.jsxs)("div",{className:c("content"),children:[r&&(0,a.jsx)("div",{className:c("icon"),children:r}),(0,a.jsx)("div",{className:c("text"),title:n,children:t}),f&&f.length>0&&(0,a.jsxs)("div",{className:c("actions"),children:[b,(0,a.jsx)(l.r,{onOpenToggle:p,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:f})]})]})]}),(0,a.jsx)("div",{className:`${w} ${c("container",{collapsed:o})}`,children:o?null:e})]})})}},74321:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var a=n(59284),s=n(64222),l=n(46898);function r(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const c=(0,n(69220).om)("checkbox"),o=a.forwardRef((function(e,t){const{size:n="m",indeterminate:o,disabled:m=!1,content:u,children:d,title:p,style:v,className:f,qa:b}=e,{checked:h,inputProps:g}=(0,s.v)(e),N=u||d,y=a.createElement("span",{className:c("indicator")},a.createElement("span",{className:c("icon"),"aria-hidden":!0},o?a.createElement(r,{className:c("icon-svg",{type:"dash"})}):a.createElement(i,{className:c("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},g,{className:c("control")})),a.createElement("span",{className:c("outline")}));return a.createElement(l.m,{ref:t,title:p,style:v,size:n,disabled:m,className:c({size:n,disabled:m,indeterminate:o,checked:h},f),qa:b,control:y},N)}))},76938:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},78018:(e,t,n)=>{var a=n(80472),s=n(2680),l=Object.prototype.hasOwnProperty,r=s((function(e,t,n){l.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=r},81061:(e,t,n)=>{var a=n(75125);e.exports=function(e,t,n,s){return a(e,(function(e,a,l){t(s,e,n(e),l)})),s}},98192:(e,t,n)=>{"use strict";n.d(t,{CU:()=>s,om:()=>l});var a=n(82435);const s="gc-",l=((0,a.withNaming)({e:"__",m:"_",v:"_"}),(0,a.withNaming)({n:s,e:"__",m:"_",v:"_"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85622.18615d00.chunk.js b/ydb/core/viewer/monitoring/static/js/85622.18615d00.chunk.js new file mode 100644 index 0000000000..06da27aebd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85622.18615d00.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85622],{57503:e=>{function t(e){!function(e){var t=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:a}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(e)}e.exports=t,t.displayName="coffeescript",t.aliases=["coffee"]},85622:(e,t,a)=>{a.d(t,{default:()=>i});var n=a(57503);const i=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85623.d896063a.chunk.js b/ydb/core/viewer/monitoring/static/js/85623.d896063a.chunk.js new file mode 100644 index 0000000000..01adbabc46 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85623.d896063a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85623],{38342:e=>{function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}e.exports=t,t.displayName="fsharp",t.aliases=[]},85623:(e,t,n)=>{n.d(t,{default:()=>r});var a=n(38342);const r=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85664.569016a5.chunk.js b/ydb/core/viewer/monitoring/static/js/85664.569016a5.chunk.js new file mode 100644 index 0000000000..bc31bf597d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85664.569016a5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85664],{31065:e=>{function n(e){!function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(e)}e.exports=n,n.displayName="kotlin",n.aliases=["kt","kts"]},85664:(e,n,a)=>{a.d(n,{default:()=>i});var t=a(31065);const i=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85776.0f7f2e5d.chunk.js b/ydb/core/viewer/monitoring/static/js/85776.0f7f2e5d.chunk.js new file mode 100644 index 0000000000..c281183623 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85776.0f7f2e5d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85776],{74609:e=>{function a(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}e.exports=a,a.displayName="keyman",a.aliases=[]},85776:(e,a,t)=>{t.d(a,{default:()=>r});var n=t(74609);const r=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85917.743a4384.chunk.js b/ydb/core/viewer/monitoring/static/js/85917.743a4384.chunk.js new file mode 100644 index 0000000000..3886a08068 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85917.743a4384.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85917],{80208:(i,e,o)=>{o.r(e),o.d(e,{VDiskPage:()=>C});var t=o(59284);const d=i=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},i),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06M14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"}));var s=o(99991),n=o(44992),a=o(61750),l=o(67087),r=o(22983),v=o(3685),c=o(44508),k=o(42655),u=o(58389),D=o(67808),g=o(21334),I=o(67028),p=o(40174),f=o(7187),w=o(27295),h=o(78034);const m=g.F.injectEndpoints({endpoints:i=>({getVDiskData:i.query({queryFn:async({nodeId:i,pDiskId:e,vDiskSlotId:o},{signal:t})=>{try{const d=await Promise.all([window.api.viewer.getVDiskInfo({nodeId:i,pDiskId:e,vDiskSlotId:o},{signal:t}),window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:i,pDiskId:e},{signal:t}),window.api.viewer.getNodeInfo(i,{signal:t})]);return{data:function([i,e,o]){var t,d,s,n,a,l,r;const v=null===(t=i.VDiskStateInfo)||void 0===t?void 0:t[0],c=(0,w.WT)(v),k=null===(d=e.PDiskStateInfo)||void 0===d?void 0:d[0],u=(0,w.or)(k),D=null===(s=o.SystemStateInfo)||void 0===s?void 0:s[0],g=(0,h.q1)(D),I=null!==(n=null!==(a=c.NodeId)&&void 0!==a?a:u.NodeId)&&void 0!==n?n:g.NodeId,p=g.Host,f=null===(l=g.Roles)||void 0===l?void 0:l[0],m=g.DC,y=null!==(r=c.PDiskId)&&void 0!==r?r:u.PDiskId,x=u.Type;return{...c,NodeId:I,NodeHost:p,NodeType:f,NodeDC:m,PDiskId:y,PDiskType:x}}(d)}}catch(d){return{error:d}}},providesTags:(i,e,o)=>["All",{type:"VDiskData",id:(0,f.gh)(o.nodeId,o.pDiskId,o.vDiskSlotId)}]})}),overrideExisting:"throw"});var y=o(7435),x=o(77506),S=o(90182),b=o(12888),N=o(99936),P=o(48372);const V=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),$=(0,P.g4)("ydb-vDisk-page",{en:V});var j=o(60712);const T=(0,x.cn)("ydb-vdisk-page");function C(){const i=(0,S.YQ)(),e=t.useRef(null),o=(0,b.X)(),w=(0,I.c2)(),[{nodeId:h,pDiskId:x,vDiskSlotId:P}]=(0,l.useQueryParams)({nodeId:l.StringParam,pDiskId:l.StringParam,vDiskSlotId:l.StringParam});t.useEffect((()=>{i((0,p.g)("vDisk",{nodeId:h,pDiskId:x,vDiskSlotId:P}))}),[i,h,x,P]);const[V]=(0,S.Nt)(),C=(0,y.f8)(h)&&(0,y.f8)(x)&&(0,y.f8)(P)?{nodeId:h,pDiskId:x,vDiskSlotId:P}:n.hT,{currentData:E={},isFetching:R,error:F}=m.useGetVDiskDataQuery(C,{pollingInterval:V}),B=R&&void 0===E,{NodeHost:H,NodeId:q,NodeType:G,NodeDC:M,PDiskId:Y,PDiskType:Q,Severity:_,VDiskId:A}=E,{GroupID:L,GroupGeneration:O,Ring:z,Domain:W,VDisk:X}=A||{},J=(0,y.f8)(L)&&(0,y.f8)(O)&&(0,y.f8)(z)&&(0,y.f8)(W)&&(0,y.f8)(X),K=async i=>{if(J){var e;const o={groupId:L,groupGeneration:O,failRealmIdx:z,failDomainIdx:W,vDiskIdx:X,force:i};let t;if(t=w?await window.api.vdisk.evictVDisk(o):await window.api.tablets.evictVDiskOld(o),!1===(null===(e=t)||void 0===e?void 0:e.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},U=()=>{i(g.F.util.invalidateTags([{type:"VDiskData",id:(0,f.gh)(h||0,x||0,P||0)},"StorageData"]))};return(0,j.jsxs)("div",{className:T(null),ref:e,children:[(()=>{const i=P?`${$("vdisk")} ${P}`:$("vdisk"),e=x?`${$("pdisk")} ${x}`:$("pdisk"),o=H||$("node");return(0,j.jsx)(a.mg,{titleTemplate:`%s - ${i} - ${e} \u2014 ${o} \u2014 YDB Monitoring`,defaultTitle:`${i} - ${e} \u2014 ${o} \u2014 YDB Monitoring`})})(),(()=>{const i=H?`${$("fqdn")}: ${H}`:void 0,e=q?`${$("node")}: ${q}`:void 0,o=q?`${$("pdisk")}: ${Y}`:void 0;return(0,j.jsx)(u.B,{className:T("meta"),loading:B,items:[i,e,G,M,o,Q]})})(),(0,j.jsx)(v.$,{className:T("title"),entityName:$("vdisk"),status:(0,f.XY)(_),id:null===E||void 0===E?void 0:E.StringifiedId}),(0,j.jsx)("div",{className:T("controls"),children:(0,j.jsxs)(r.B,{onConfirmAction:K,onConfirmActionSuccess:U,buttonDisabled:!J||!o,buttonView:"normal",dialogHeader:$("evict-vdisk-dialog-header"),dialogText:$("evict-vdisk-dialog-text"),retryButtonText:$("force-evict-vdisk-button"),withPopover:!0,popoverContent:$("evict-vdisk-not-allowed"),popoverDisabled:o,children:[(0,j.jsx)(s.I,{data:d}),$("evict-vdisk-button")]})}),B?(0,j.jsx)(k.y,{rows:20}):(0,j.jsxs)(t.Fragment,{children:[F?(0,j.jsx)(c.o,{error:F}):null,(0,j.jsx)(D.E,{data:E,className:T("info")}),(0,y.f8)(L)&&(0,y.f8)(h)?(0,j.jsxs)(t.Fragment,{children:[(0,j.jsx)("div",{className:T("storage-title"),children:$("storage")}),(0,j.jsx)(N.z,{groupId:L,nodeId:h,pDiskId:null!==x&&void 0!==x?x:void 0,parentRef:e,viewContext:{groupId:null===L||void 0===L?void 0:L.toString(),nodeId:null===h||void 0===h?void 0:h.toString(),pDiskId:null===x||void 0===x?void 0:x.toString(),vDiskSlotId:null===P||void 0===P?void 0:P.toString()}})]}):null]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85950.98e6e44a.chunk.js b/ydb/core/viewer/monitoring/static/js/85950.98e6e44a.chunk.js new file mode 100644 index 0000000000..5095dbe07a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85950.98e6e44a.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85950],{85950:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"bg",weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekStart:1,ordinal:function(_){var e=_%100;if(e>10&&e<20)return _+"-\u0442\u0438";var t=_%10;return 1===t?_+"-\u0432\u0438":2===t?_+"-\u0440\u0438":7===t||8===t?_+"-\u043c\u0438":_+"-\u0442\u0438"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/85953.ea1ee23e.chunk.js b/ydb/core/viewer/monitoring/static/js/85953.ea1ee23e.chunk.js new file mode 100644 index 0000000000..864e2547d0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/85953.ea1ee23e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[85953],{85953:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"th",weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},ordinal:function(_){return _+"."}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/86114.0fc0acbb.chunk.js b/ydb/core/viewer/monitoring/static/js/86114.0fc0acbb.chunk.js new file mode 100644 index 0000000000..271aec4dd2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/86114.0fc0acbb.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[86114],{86114:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),r={name:"fo",weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),weekStart:1,weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"}};return a.default.locale(r,null,!0),r}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8633.da605a09.chunk.js b/ydb/core/viewer/monitoring/static/js/8633.da605a09.chunk.js deleted file mode 100644 index 58c4a0c365..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8633.da605a09.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8633],{48633:function(d,e,_){d.exports=function(d){"use strict";function e(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}var _=e(d),a={name:"cy",weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),weekStart:1,weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),ordinal:function(d){return d},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"}};return _.default.locale(a,null,!0),a}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/86342.528e5efc.chunk.js b/ydb/core/viewer/monitoring/static/js/86342.528e5efc.chunk.js new file mode 100644 index 0000000000..d2dc2df983 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/86342.528e5efc.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 86342.528e5efc.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[86342],{86342:(e,t,p)=>{p.r(t),p.d(t,{conf:()=>n,language:()=>i});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},i={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/86342.528e5efc.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/86342.528e5efc.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/86472.57a5a1cc.chunk.js b/ydb/core/viewer/monitoring/static/js/86472.57a5a1cc.chunk.js new file mode 100644 index 0000000000..62e4c3cca9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/86472.57a5a1cc.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[86472],{69051:e=>{function a(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}e.exports=a,a.displayName="smalltalk",a.aliases=[]},86472:(e,a,t)=>{t.d(a,{default:()=>n});var d=t(69051);const n=t.n(d)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/86658.6a6caa74.chunk.js b/ydb/core/viewer/monitoring/static/js/86658.6a6caa74.chunk.js new file mode 100644 index 0000000000..2d4cb3d961 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/86658.6a6caa74.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 86658.6a6caa74.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[86658],{86658:(e,o,r)=>{r.r(o),r.d(o,{conf:()=>t,language:()=>a});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},a={defaultToken:"",tokenPostfix:".r",roxygen:["@alias","@aliases","@assignee","@author","@backref","@callGraph","@callGraphDepth","@callGraphPrimitives","@concept","@describeIn","@description","@details","@docType","@encoding","@evalNamespace","@evalRd","@example","@examples","@export","@exportClass","@exportMethod","@exportPattern","@family","@field","@formals","@format","@import","@importClassesFrom","@importFrom","@importMethodsFrom","@include","@inherit","@inheritDotParams","@inheritParams","@inheritSection","@keywords","@md","@method","@name","@noMd","@noRd","@note","@param","@rawNamespace","@rawRd","@rdname","@references","@return","@S3method","@section","@seealso","@setClass","@slot","@source","@template","@templateVar","@title","@TODO","@usage","@useDynLib"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'$/,"comment.doc"],[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/86658.6a6caa74.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/86658.6a6caa74.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/86814.c1a521f5.chunk.js b/ydb/core/viewer/monitoring/static/js/86814.c1a521f5.chunk.js new file mode 100644 index 0000000000..8cadba955d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/86814.c1a521f5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[86814],{45709:e=>{function n(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}e.exports=n,n.displayName="bicep",n.aliases=[]},86814:(e,n,t)=>{t.d(n,{default:()=>r});var i=t(45709);const r=t.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8706.755fcb81.chunk.js b/ydb/core/viewer/monitoring/static/js/8706.755fcb81.chunk.js deleted file mode 100644 index 81403fe872..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8706.755fcb81.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8706],{88706:function(Y,M,_){Y.exports=function(Y){"use strict";function M(Y){return Y&&"object"==typeof Y&&"default"in Y?Y:{default:Y}}var _=M(Y),d={s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:"%d \u05e9\u05e2\u05d5\u05ea",hh2:"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd",d:"\u05d9\u05d5\u05dd",dd:"%d \u05d9\u05de\u05d9\u05dd",dd2:"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd",M:"\u05d7\u05d5\u05d3\u05e9",MM:"%d \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd",MM2:"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd",y:"\u05e9\u05e0\u05d4",yy:"%d \u05e9\u05e0\u05d9\u05dd",yy2:"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd"};function l(Y,M,_){return(d[_+(2===Y?"2":"")]||d[_]).replace("%d",Y)}var m={name:"he",weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5_\u05e9\u05f3".split("_"),months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5_\u05e4\u05d1\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0_\u05d9\u05d5\u05dc_\u05d0\u05d5\u05d2_\u05e1\u05e4\u05d8_\u05d0\u05d5\u05e7_\u05e0\u05d5\u05d1_\u05d3\u05e6\u05de".split("_"),relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},ordinal:function(Y){return Y},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};return _.default.locale(m,null,!0),m}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/87138.cf3f482b.chunk.js b/ydb/core/viewer/monitoring/static/js/87138.cf3f482b.chunk.js new file mode 100644 index 0000000000..cc7713ac5b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/87138.cf3f482b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[87138],{28051:e=>{function n(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach((function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}}))}e.exports=n,n.displayName="elixir",n.aliases=[]},87138:(e,n,a)=>{a.d(n,{default:()=>t});var r=a(28051);const t=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/87233.c8b49edb.chunk.js b/ydb/core/viewer/monitoring/static/js/87233.c8b49edb.chunk.js new file mode 100644 index 0000000000..2191e1a3e6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/87233.c8b49edb.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[87233],{70502:E=>{function T(E){E.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}E.exports=T,T.displayName="sql",T.aliases=[]},87233:(E,T,I)=>{I.d(T,{default:()=>R});var N=I(70502);const R=I.n(N)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/87357.d4031306.chunk.js b/ydb/core/viewer/monitoring/static/js/87357.d4031306.chunk.js new file mode 100644 index 0000000000..b3e0957879 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/87357.d4031306.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[87357],{31422:e=>{function a(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}e.exports=a,a.displayName="ada",a.aliases=[]},87357:(e,a,t)=>{t.d(a,{default:()=>d});var r=t(31422);const d=t.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/87429.3792c589.chunk.js b/ydb/core/viewer/monitoring/static/js/87429.3792c589.chunk.js new file mode 100644 index 0000000000..8fe8239a41 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/87429.3792c589.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[87429],{41940:(e,n,t)=>{var a=t(51572);function r(e){e.register(a),function(e){e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,t=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,(function(){return n.source})),"g");e.hooks.add("before-tokenize",(function(n){var a=!1;e.languages["markup-templating"].buildPlaceholders(n,"smarty",t,(function(e){return"{/literal}"===e&&(a=!1),!a&&("{literal}"===e&&(a=!0),!0)}))})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"smarty")}))}(e)}e.exports=r,r.displayName="smarty",r.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,r,i){if(t.language===a){var s=t.tokenStack=[];t.code=t.code.replace(r,(function(e){if("function"===typeof i&&!i(e))return e;for(var r,o=s.length;-1!==t.code.indexOf(r=n(a,o));)++o;return s[o]=e,r})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var r=0,i=Object.keys(t.tokenStack);!function s(o){for(var p=0;p<o.length&&!(r>=i.length);p++){var l=o[p];if("string"===typeof l||l.content&&"string"===typeof l.content){var u=i[r],d=t.tokenStack[u],g="string"===typeof l?l:l.content,c=n(a,u),b=g.indexOf(c);if(b>-1){++r;var f=g.substring(0,b),m=new e.Token(a,e.tokenize(d,t.grammar),"language-"+a,d),h=g.substring(b+c.length),k=[];f&&k.push.apply(k,s([f])),k.push(m),h&&k.push.apply(k,s([h])),"string"===typeof l?o.splice.apply(o,[p,1].concat(k)):l.content=k}}else l.content&&s(l.content)}return o}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},87429:(e,n,t)=>{t.d(n,{default:()=>r});var a=t(41940);const r=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/87962.2094d7c1.chunk.js b/ydb/core/viewer/monitoring/static/js/87962.2094d7c1.chunk.js new file mode 100644 index 0000000000..f24bc79aa1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/87962.2094d7c1.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[87962],{87962:function(e,_,i){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=_(e),n={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(n,null,!0),n}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88081.e48ec099.chunk.js b/ydb/core/viewer/monitoring/static/js/88081.e48ec099.chunk.js new file mode 100644 index 0000000000..464dd4ba92 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88081.e48ec099.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88081],{88081:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-kw",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88119.041d294e.chunk.js b/ydb/core/viewer/monitoring/static/js/88119.041d294e.chunk.js new file mode 100644 index 0000000000..3fbbba4533 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88119.041d294e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88119],{88119:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es-mx",weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js b/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js deleted file mode 100644 index 69d2fe5ac2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8821.96eeccd6.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8821],{68821:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Ht,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Ot,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>un,DocumentHighlightAdapter:()=>Jt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>cn,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>qt,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>fn,WorkerManager:()=>Nt,fromPosition:()=>Kt,fromRange:()=>Xt,setupMode:()=>pn,setupMode1:()=>hn,toRange:()=>zt,toTextEdit:()=>Bt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,m,h,p,v,b,_,k,w,y,x,I,E,S,A,C,R,L,T,M,P,D,F,j,N,U,V,O,W,H,K,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,me,he,pe,ve,be,_e,ke,we,ye,xe,Ie,Ee,Se,Ae,Ce,Re,Le,Te,Me,Pe,De,Fe,je,Ne,Ue,Ve,Oe,We,He,Ke,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,mt,ht,pt,vt,bt,_t,kt,wt,yt,xt,It,Et,St,At,Ct,Rt,Lt,Tt,Mt,Pt,Dt,Ft,jt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(h=m||(m={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,h.is=function(e){return"number"===typeof e&&h.MIN_VALUE<=e&&e<=h.MAX_VALUE},(v=p||(p={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(_=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=p.MAX_VALUE),t===Number.MAX_VALUE&&(t=p.MAX_VALUE),{line:e,character:t}},_.is=function(e){let t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.line)&&Ut.uinteger(t.character)},(w=k||(k={})).create=function(e,t,n,r){if(Ut.uinteger(e)&&Ut.uinteger(t)&&Ut.uinteger(n)&&Ut.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},w.is=function(e){let t=e;return Ut.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(x=y||(y={})).create=function(e,t){return{uri:e,range:t}},x.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(Ut.string(t.uri)||Ut.undefined(t.uri))},(E=I||(I={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.targetRange)&&Ut.string(t.targetUri)&&k.is(t.targetSelectionRange)&&(k.is(t.originSelectionRange)||Ut.undefined(t.originSelectionRange))},(A=S||(S={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.numberRange(t.red,0,1)&&Ut.numberRange(t.green,0,1)&&Ut.numberRange(t.blue,0,1)&&Ut.numberRange(t.alpha,0,1)},(R=C||(C={})).create=function(e,t){return{range:e,color:t}},R.is=function(e){const t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&S.is(t.color)},(T=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.undefined(t.textEdit)||B.is(t))&&(Ut.undefined(t.additionalTextEdits)||Ut.typedArray(t.additionalTextEdits,B.is))},(P=M||(M={})).Comment="comment",P.Imports="imports",P.Region="region",(F=D||(D={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ut.defined(n)&&(a.startCharacter=n),Ut.defined(r)&&(a.endCharacter=r),Ut.defined(i)&&(a.kind=i),Ut.defined(o)&&(a.collapsedText=o),a},F.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.startLine)&&Ut.uinteger(t.startLine)&&(Ut.undefined(t.startCharacter)||Ut.uinteger(t.startCharacter))&&(Ut.undefined(t.endCharacter)||Ut.uinteger(t.endCharacter))&&(Ut.undefined(t.kind)||Ut.string(t.kind))},(N=j||(j={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ut.defined(t)&&y.is(t.location)&&Ut.string(t.message)},(V=U||(U={})).Error=1,V.Warning=2,V.Information=3,V.Hint=4,(W=O||(O={})).Unnecessary=1,W.Deprecated=2,(H||(H={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.href)},(X=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ut.defined(n)&&(a.severity=n),Ut.defined(r)&&(a.code=r),Ut.defined(i)&&(a.source=i),Ut.defined(o)&&(a.relatedInformation=o),a},X.is=function(e){var t;let n=e;return Ut.defined(n)&&k.is(n.range)&&Ut.string(n.message)&&(Ut.number(n.severity)||Ut.undefined(n.severity))&&(Ut.integer(n.code)||Ut.string(n.code)||Ut.undefined(n.code))&&(Ut.undefined(n.codeDescription)||Ut.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ut.string(n.source)||Ut.undefined(n.source))&&(Ut.undefined(n.relatedInformation)||Ut.typedArray(n.relatedInformation,j.is))},($=z||(z={})).create=function(e,t,...n){let r={title:e,command:t};return Ut.defined(n)&&n.length>0&&(r.arguments=n),r},$.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.title)&&Ut.string(t.command)},(q=B||(B={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.newText)&&k.is(t.range)},(G=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},G.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ut.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){const t=e;return Ut.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return B.is(t)&&(Q.is(t.annotationId)||J.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ut.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ut.string(t.oldUri)&&Ut.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ut.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ut.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ue||(ue={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ut.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ce||(ce={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.integer(t.version)},(me=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},me.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&(null===t.version||Ut.integer(t.version))},(pe=he||(he={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.string(t.languageId)&&Ut.integer(t.version)&&Ut.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(_e||(_e={})).is=function(e){const t=e;return Ut.objectLiteral(e)&&ve.is(t.kind)&&Ut.string(t.value)},(we=ke||(ke={})).Text=1,we.Method=2,we.Function=3,we.Constructor=4,we.Field=5,we.Variable=6,we.Class=7,we.Interface=8,we.Module=9,we.Property=10,we.Unit=11,we.Value=12,we.Enum=13,we.Keyword=14,we.Snippet=15,we.Color=16,we.File=17,we.Reference=18,we.Folder=19,we.EnumMember=20,we.Constant=21,we.Struct=22,we.Event=23,we.Operator=24,we.TypeParameter=25,(xe=ye||(ye={})).PlainText=1,xe.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Se=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Se.is=function(e){const t=e;return t&&Ut.string(t.newText)&&k.is(t.insert)&&k.is(t.replace)},(Ce=Ae||(Ae={})).asIs=1,Ce.adjustIndentation=2,(Re||(Re={})).is=function(e){const t=e;return t&&(Ut.string(t.detail)||void 0===t.detail)&&(Ut.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Pe=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Pe.is=function(e){const t=e;return Ut.string(t)||Ut.objectLiteral(t)&&Ut.string(t.language)&&Ut.string(t.value)},(De||(De={})).is=function(e){let t=e;return!!t&&Ut.objectLiteral(t)&&(_e.is(t.contents)||Me.is(t.contents)||Ut.typedArray(t.contents,Me.is))&&(void 0===e.range||k.is(e.range))},(Fe||(Fe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t,...n){let r={label:e};return Ut.defined(t)&&(r.documentation=t),Ut.defined(n)?r.parameters=n:r.parameters=[],r},(Ue=Ne||(Ne={})).Text=1,Ue.Read=2,Ue.Write=3,(Ve||(Ve={})).create=function(e,t){let n={range:e};return Ut.number(t)&&(n.kind=t),n},(We=Oe||(Oe={})).File=1,We.Module=2,We.Namespace=3,We.Package=4,We.Class=5,We.Method=6,We.Property=7,We.Field=8,We.Constructor=9,We.Enum=10,We.Interface=11,We.Function=12,We.Variable=13,We.Constant=14,We.String=15,We.Number=16,We.Boolean=17,We.Array=18,We.Object=19,We.Key=20,We.Null=21,We.EnumMember=22,We.Struct=23,We.Event=24,We.Operator=25,We.TypeParameter=26,(He||(He={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Xe||(Xe={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},($e=ze||(ze={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){let t=e;return t&&Ut.string(t.name)&&Ut.number(t.kind)&&k.is(t.range)&&k.is(t.selectionRange)&&(void 0===t.detail||Ut.string(t.detail))&&(void 0===t.deprecated||Ut.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Be||(Be={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Ge=Qe||(Qe={})).Invoked=1,Ge.Automatic=2,(Ye=Je||(Je={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ut.defined(t)&&Ut.typedArray(t.diagnostics,K.is)&&(void 0===t.only||Ut.typedArray(t.only,Ut.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):z.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ut.string(t.title)&&(void 0===t.diagnostics||Ut.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||Ut.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||z.is(t.command))&&(void 0===t.isPreferred||Ut.boolean(t.isPreferred))&&(void 0===t.edit||ue.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ut.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.command)||z.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ut.defined(t)&&Ut.uinteger(t.tabSize)&&Ut.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.target)||Ut.string(t.target))},(ut=st||(st={})).create=function(e,t){return{range:e,parent:t}},ut.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(void 0===t.parent||ut.is(t.parent))},(dt=ct||(ct={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(ht=mt||(mt={})).create=function(e,t){return{range:e,text:t}},ht.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.string(t.text)},(vt=pt||(pt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.boolean(t.caseSensitiveLookup)&&(Ut.string(t.variableName)||void 0===t.variableName)},(_t=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},_t.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&(Ut.string(t.expression)||void 0===t.expression)},(wt=kt||(kt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},wt.is=function(e){const t=e;return Ut.defined(t)&&k.is(e.stoppedLocation)},(xt=yt||(yt={})).Type=1,xt.Parameter=2,xt.is=function(e){return 1===e||2===e},(Et=It||(It={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.location||y.is(t.location))&&(void 0===t.command||z.is(t.command))},(At=St||(St={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ut.objectLiteral(t)&&b.is(t.position)&&(Ut.string(t.label)||Ut.typedArray(t.label,It.is))&&(void 0===t.kind||yt.is(t.kind))&&void 0===t.textEdits||Ut.typedArray(t.textEdits,B.is)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.paddingLeft||Ut.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ut.boolean(t.paddingRight))},(Ct||(Ct={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Rt||(Rt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Tt||(Tt={})).Invoked=0,Mt.Automatic=1,(Pt||(Pt={})).create=function(e,t){return{range:e,text:t}},(Dt||(Dt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Ft||(Ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&f.is(t.uri)&&Ut.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[u++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Vt(e,t,n,r)},e.is=function(e){let t=e;return!!(Ut.defined(t)&&Ut.string(t.uri)&&(Ut.undefined(t.languageId)||Ut.string(t.languageId))&&Ut.uinteger(t.lineCount)&&Ut.func(t.getText)&&Ut.func(t.positionAt)&&Ut.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(jt||(jt={}));var Ut,Vt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ut||(Ut={}));var Ot=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Wt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Wt(e){switch(e){case U.Error:return l.MarkerSeverity.Error;case U.Warning:return l.MarkerSeverity.Warning;case U.Information:return l.MarkerSeverity.Info;case U.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Ht=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:$t(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:zt(e.textEdit.insert),replace:zt(e.textEdit.replace)}:t.range=zt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),e.insertTextFormat===ye.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function zt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function $t(e){const t=l.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function Bt(e){if(e)return{range:zt(e.range),text:e.newText}}var qt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:zt(e.range),contents:Gt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Gt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Jt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:zt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:zt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:zt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:zt(e.location.range),selectionRange:zt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:zt(e.range),selectionRange:zt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Oe.File:return t.File;case Oe.Module:return t.Module;case Oe.Namespace:return t.Namespace;case Oe.Package:return t.Package;case Oe.Class:return t.Class;case Oe.Method:return t.Method;case Oe.Property:return t.Property;case Oe.Field:return t.Field;case Oe.Constructor:return t.Constructor;case Oe.Enum:return t.Enum;case Oe.Interface:return t.Interface;case Oe.Function:return t.Function;case Oe.Variable:return t.Variable;case Oe.Constant:return t.Constant;case Oe.String:return t.String;case Oe.Number:return t.Number;case Oe.Boolean:return t.Boolean;case Oe.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:zt(e.range),url:e.target})))}}))}},un=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}},cn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Xt(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:zt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Xt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=Bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:zt(e.range)}),e=e.parent;return t}))}))}},mn=class extends Ht{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function hn(e){const t=new Nt(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;l.languages.registerCompletionItemProvider(r,new mn(n)),l.languages.registerHoverProvider(r,new qt(n)),l.languages.registerDocumentHighlightProvider(r,new Jt(n)),l.languages.registerLinkProvider(r,new sn(n)),l.languages.registerFoldingRangeProvider(r,new gn(n)),l.languages.registerDocumentSymbolProvider(r,new rn(n)),l.languages.registerSelectionRangeProvider(r,new fn(n)),l.languages.registerRenameProvider(r,new nn(n)),"html"===r&&(l.languages.registerDocumentFormattingEditProvider(r,new un(n)),l.languages.registerDocumentRangeFormattingEditProvider(r,new cn(n)))}function pn(e){const t=[],n=[],r=new Nt(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;bn(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new mn(i))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new qt(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new Jt(i))),r.links&&n.push(l.languages.registerLinkProvider(t,new sn(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new nn(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(i))),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new fn(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new un(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new cn(i)))}(),t.push(vn(n)),vn(t)}function vn(e){return{dispose:()=>bn(e)}}function bn(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88269.9b813297.chunk.js b/ydb/core/viewer/monitoring/static/js/88269.9b813297.chunk.js new file mode 100644 index 0000000000..14a8fa4f83 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88269.9b813297.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88269],{16238:e=>{function a(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}e.exports=a,a.displayName="elm",a.aliases=[]},88269:(e,a,n)=>{n.d(a,{default:()=>s});var t=n(16238);const s=n.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8840.5eb376ca.chunk.js b/ydb/core/viewer/monitoring/static/js/8840.5eb376ca.chunk.js deleted file mode 100644 index 4dca742532..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8840.5eb376ca.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8840],{58840:function(e,a,t){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),r={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,a){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?a[0]:a[1]:a[2]},relativeTimeFormatter:function(e,a,t,d){var n=r.words[t];if(1===t.length)return"y"===t&&a?"jedna godina":d||a?n[0]:n[1];var i=r.correctGrammarCase(e,n);return"yy"===t&&a&&"%d godinu"===i?e+" godina":i.replace("%d",e)}},d={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_\u010cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._\u010cet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:r.relativeTimeFormatter,mm:r.relativeTimeFormatter,h:r.relativeTimeFormatter,hh:r.relativeTimeFormatter,d:r.relativeTimeFormatter,dd:r.relativeTimeFormatter,M:r.relativeTimeFormatter,MM:r.relativeTimeFormatter,y:r.relativeTimeFormatter,yy:r.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88432.95ced9fa.chunk.js b/ydb/core/viewer/monitoring/static/js/88432.95ced9fa.chunk.js new file mode 100644 index 0000000000..0eb6f7472d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88432.95ced9fa.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88432],{60723:e=>{function o(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}e.exports=o,o.displayName="goModule",o.aliases=[]},88432:(e,o,a)=>{a.d(o,{default:()=>n});var d=a(60723);const n=a.n(d)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88669.310e189c.chunk.js b/ydb/core/viewer/monitoring/static/js/88669.310e189c.chunk.js new file mode 100644 index 0000000000..0b8c1f6ec9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88669.310e189c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88669],{2680:(e,t,n)=>{var a=n(43665),l=n(81061),s=n(28293),r=n(19305);e.exports=function(e,t){return function(n,i){var o=r(n)?a:l,c=t?t():{};return o(n,e,s(i,2),c)}}},6170:(e,t,n)=>{"use strict";n.d(t,{B:()=>c});var a=n(59284),l=n(73633),s=n(84375),r=n(99991);const i=(0,n(98192).om)("help-popover"),o=16;function c(e){var t;return a.createElement(s.A,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(r.I,{data:l.A,size:o})))}},18143:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var a=n(59284);const l=(0,n(69220).om)("progress");function s(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:l("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function r({item:e}){const{value:t,color:n,className:s,theme:r,title:i,content:o,loading:c}=e,m={loading:c};return"undefined"===typeof n&&(m.theme=r||"default"),Number.isFinite(t)?a.createElement("div",{className:l("item",m,s),style:{width:`${t}%`,backgroundColor:n},title:i},o):null}function i(e){return e<100?e-100:0}function o(e){const{theme:t,colorStops:n,colorStopsValue:a,value:l}=e;if(n){const e=n.find(((e,t)=>{const s="number"===typeof a?a:l,r=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return s>=r&&s<=i}));return e?e.theme:t}return t}function c(e){const{stack:t,stackClassName:n,value:o,text:c}=e,m=i(o||function(e){return e.reduce(((e,{value:t})=>e+t),0)}(t));return a.createElement("div",{className:l("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${m}%))`}},a.createElement("div",{className:l("item"),style:{width:-m+"%"}}),t.map(((e,t)=>a.createElement(r,{key:t,item:e}))),a.createElement(s,{offset:m,text:c}))}function m(e){const{value:t,loading:n,text:r}=e,c=i(t);return Number.isFinite(t)?a.createElement("div",{className:l("item",{theme:o(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},a.createElement(s,{offset:c,text:r})):null}const u=a.forwardRef((function(e,t){const{text:n="",theme:s="default",size:r="m",loading:i=!1,className:o,qa:u}=e,d=Object.assign(Object.assign({},e),{text:n,theme:s,size:r,loading:i});return a.createElement("div",{ref:t,className:l({size:r},o),"data-qa":u},a.createElement("div",{className:l("text")},n),function(e){return void 0!==e.stack}(d)?a.createElement(c,Object.assign({},d)):a.createElement(m,Object.assign({},d)))}))},18677:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},43665:e=>{e.exports=function(e,t,n,a){for(var l=-1,s=null==e?0:e.length;++l<s;){var r=e[l];t(a,r,n(r),e)}return a}},53302:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});const a=(0,n(82435).withNaming)({e:"__",m:"_"})},57439:(e,t,n)=>{"use strict";n.d(t,{u:()=>O});var a=n(59284),l=n(96873),s=n(98192);const r=(0,s.om)("definition-list");const i=e=>"label"in e&&!("name"in e),o=e=>!e.some((e=>i(e)));function c(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function m({copyText:e,content:t,copyPosition:n}){const s="inside"===n,i=null!==t&&void 0!==t?t:"\u2014";return e?a.createElement("div",{className:r("copy-container",{"icon-inside":s})},a.createElement("span",null,i),a.createElement(l.b,{size:"s",text:e,className:r("copy-button"),view:s?"raised":"flat-secondary"})):i}var u=n(98089);function d({label:e}){return a.createElement("div",{className:r("group-title")},a.createElement(u.E,{variant:"subheader-1",color:"complementary"},e))}var v=n(6170),p=n(72837);const f=JSON.parse('{"label_note":"Note"}'),h=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),b=(0,p.N)({en:f,ru:h},`${s.CU}definition-list`);var g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n};function w({note:e}){if(!e)return null;const t=r("item-note-tooltip");if("string"===typeof e)return a.createElement(v.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":b("label_note")}});if("object"===typeof e){const{buttonProps:n}=e,l=g(e,["buttonProps"]);return a.createElement(v.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":b("label_note")},n)},l))}return null}function N({note:e,name:t,nameTitle:n,multilineName:l,direction:s}){const i=a.createElement(a.Fragment,null,"\xa0",a.createElement(w,{note:e}));return a.createElement(a.Fragment,null,a.createElement("div",{className:r("term-wrapper")},a.createElement("span",{title:c(n,t)},t),l&&i),!l&&i,"horizontal"===s&&a.createElement("div",{className:r("dots",{"with-note":Boolean(e)})}))}var E=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]])}return n};function y({items:e,responsive:t,direction:n="horizontal",nameMaxWidth:l,contentMaxWidth:s="auto",className:i,itemClassName:o,copyPosition:u="outside",qa:d}){const v=l?{maxWidth:l,width:l}:{},p="number"===typeof s?{width:s,maxWidth:s}:{},f=a.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return a.createElement("div",{className:r({responsive:t,vertical:"vertical"===n},i),"data-qa":d},a.createElement("dl",{className:r("list")},f.map((e=>{const{name:t,key:l,content:s,contentTitle:i,nameTitle:d,copyText:f,note:h,multilineName:b}=e;return a.createElement("div",{key:l,className:r("item",o)},a.createElement("dt",{className:r("term-container",{multiline:b}),style:v},a.createElement(N,{direction:n,name:t,nameTitle:d,note:h,multilineName:b})),a.createElement("dd",{className:r("definition"),title:c(i,s),style:Object.assign(Object.assign({},p),{lineBreak:"string"===typeof s&&(g=20,function(e){return e.split(/\s+/).some((e=>e.length>g))})(s)?"anywhere":void 0})},a.createElement(m,{copyPosition:u,copyText:f,content:s})));var g}))))}function x(e){var{items:t,className:n,itemClassName:l}=e,s=E(e,["items","className","itemClassName"]);const i=a.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("div",{className:r({vertical:"vertical"===s.direction},n)},i.map((e=>{const{key:t,label:n}=e;return a.createElement(a.Fragment,{key:t},n&&a.createElement(d,{label:n}),e.items&&a.createElement(y,Object.assign({},s,{className:r({margin:!n}),items:e.items,itemClassName:r("item",{grouped:Boolean(n)},l)})))})))}function O(e){var{items:t}=e,n=E(e,["items"]);if(o(t))return a.createElement(y,Object.assign({},n,{items:t}));const l=function(e){const t=[];let n=[];for(const a of e)i(a)?(n.length&&(t.push({items:n,label:null}),n=[]),t.push(a)):n.push(a);return n.length&&(t.push({items:n,label:null}),n=[]),t}(t);return a.createElement(x,Object.assign({},n,{items:l}))}},63126:(e,t,n)=>{"use strict";n.d(t,{G:()=>c});var a=n(60712),l=n(59284),s=n(40569),r=n(53302);const i="--ydb-tree-view-level",o=(0,r.o)("ydb-tree-view");function c({children:e,name:t,title:n,icon:r,collapsed:c=!0,active:m=!1,onClick:u,onArrowClick:d,onActionsOpenToggle:v,hasArrow:p=!1,actions:f,additionalNodeElements:h,level:b}){const g=l.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),w=d||u;let N="tree-view_arrow",E="tree-view_children";return c&&(N+=" tree-view_arrow-collapsed",E+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:o(),style:{[i]:b},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${o("item",{active:m})}`,onClick:g,children:[(0,a.jsx)("button",{type:"button",className:`${N} ${o("arrow",{collapsed:c,hidden:!p})}`,disabled:!w,onClick:w}),(0,a.jsxs)("div",{className:o("content"),children:[r&&(0,a.jsx)("div",{className:o("icon"),children:r}),(0,a.jsx)("div",{className:o("text"),title:n,children:t}),f&&f.length>0&&(0,a.jsxs)("div",{className:o("actions"),children:[h,(0,a.jsx)(s.r,{onOpenToggle:v,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:f})]})]})]}),(0,a.jsx)("div",{className:`${E} ${o("container",{collapsed:c})}`,children:c?null:e})]})})}},64470:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},74321:(e,t,n)=>{"use strict";n.d(t,{S:()=>c});var a=n(59284),l=n(64222),s=n(46898);function r(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const o=(0,n(69220).om)("checkbox"),c=a.forwardRef((function(e,t){const{size:n="m",indeterminate:c,disabled:m=!1,content:u,children:d,title:v,style:p,className:f,qa:h}=e,{checked:b,inputProps:g}=(0,l.v)(e),w=u||d,N=a.createElement("span",{className:o("indicator")},a.createElement("span",{className:o("icon"),"aria-hidden":!0},c?a.createElement(r,{className:o("icon-svg",{type:"dash"})}):a.createElement(i,{className:o("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},g,{className:o("control")})),a.createElement("span",{className:o("outline")}));return a.createElement(s.m,{ref:t,title:v,style:p,size:n,disabled:m,className:o({size:n,disabled:m,indeterminate:c,checked:b},f),qa:h,control:N},w)}))},76938:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},78018:(e,t,n)=>{var a=n(80472),l=n(2680),s=Object.prototype.hasOwnProperty,r=l((function(e,t,n){s.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=r},81061:(e,t,n)=>{var a=n(75125);e.exports=function(e,t,n,l){return a(e,(function(e,a,s){t(l,e,n(e),s)})),l}},93381:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(59284);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 5.5a.75.75 0 0 0-1.5 0v1.75H5.5a.75.75 0 1 0 0 1.5h1.75v1.75a.75.75 0 0 0 1.5 0V8.75h1.75a.75.75 0 0 0 0-1.5H8.75z",clipRule:"evenodd"}))},98192:(e,t,n)=>{"use strict";n.d(t,{CU:()=>l,om:()=>s});var a=n(82435);const l="gc-",s=((0,a.withNaming)({e:"__",m:"_",v:"_"}),(0,a.withNaming)({n:l,e:"__",m:"_",v:"_"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8868.a9031705.chunk.js b/ydb/core/viewer/monitoring/static/js/8868.a9031705.chunk.js deleted file mode 100644 index 97e1696a3e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8868.a9031705.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8868],{28868:(e,b,d)=>{d.r(b)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88706.b895fbe4.chunk.js b/ydb/core/viewer/monitoring/static/js/88706.b895fbe4.chunk.js new file mode 100644 index 0000000000..ebb51cbe57 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88706.b895fbe4.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88706],{88706:function(Y,M,_){Y.exports=function(Y){"use strict";function M(Y){return Y&&"object"==typeof Y&&"default"in Y?Y:{default:Y}}var _=M(Y),d={s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:"%d \u05e9\u05e2\u05d5\u05ea",hh2:"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd",d:"\u05d9\u05d5\u05dd",dd:"%d \u05d9\u05de\u05d9\u05dd",dd2:"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd",M:"\u05d7\u05d5\u05d3\u05e9",MM:"%d \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd",MM2:"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd",y:"\u05e9\u05e0\u05d4",yy:"%d \u05e9\u05e0\u05d9\u05dd",yy2:"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd"};function l(Y,M,_){return(d[_+(2===Y?"2":"")]||d[_]).replace("%d",Y)}var m={name:"he",weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5_\u05e9\u05f3".split("_"),months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5_\u05e4\u05d1\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0_\u05d9\u05d5\u05dc_\u05d0\u05d5\u05d2_\u05e1\u05e4\u05d8_\u05d0\u05d5\u05e7_\u05e0\u05d5\u05d1_\u05d3\u05e6\u05de".split("_"),relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},ordinal:function(Y){return Y},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};return _.default.locale(m,null,!0),m}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88810.cb646554.chunk.js b/ydb/core/viewer/monitoring/static/js/88810.cb646554.chunk.js new file mode 100644 index 0000000000..b0b1ddabb1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88810.cb646554.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88810],{88810:(e,s,t)=>{t.d(s,{default:()=>a});var n=t(96087);const a=t.n(n)()},96087:e=>{function s(e){!function(e){function s(e,t){return t<=0?/[]/.source:e.replace(/<SELF>/g,(function(){return s(e,t-1)}))}var t=/'[{}:=,](?:[^']|'')*'(?!')/,n={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:t,greedy:!0,inside:{escape:n}},r=s(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,(function(){return t.source})),8),i={pattern:RegExp(r),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(r),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+s(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:n,string:a},i.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}e.exports=s,s.displayName="icuMessageFormat",s.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8890.9f3d8f08.chunk.js b/ydb/core/viewer/monitoring/static/js/8890.9f3d8f08.chunk.js deleted file mode 100644 index 6e00fd1b23..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8890.9f3d8f08.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8890],{58890:function(e,t,_){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),n="\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),r={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},u={name:"ar",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),months:n,monthsShort:n,weekStart:6,meridiem:function(e){return e>12?"\u0645":"\u0635"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",m:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",yy:"%d \u0623\u0639\u0648\u0627\u0645"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return d[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return r[e]})).replace(/,/g,"\u060c")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return _.default.locale(u,null,!0),u}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/88987.f221b1c0.chunk.js b/ydb/core/viewer/monitoring/static/js/88987.f221b1c0.chunk.js new file mode 100644 index 0000000000..ea96abdd96 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/88987.f221b1c0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[88987],{24450:e=>{function n(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=n,n.displayName="json",n.aliases=["webmanifest"]},66248:(e,n,a)=>{var s=a(24450);function t(e){e.register(s),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}e.exports=t,t.displayName="jsonp",t.aliases=[]},88987:(e,n,a)=>{a.d(n,{default:()=>t});var s=a(66248);const t=a.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/89015.1865c336.chunk.js b/ydb/core/viewer/monitoring/static/js/89015.1865c336.chunk.js new file mode 100644 index 0000000000..9abd5a6455 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/89015.1865c336.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[89015],{63266:e=>{function n(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}e.exports=n,n.displayName="wren",n.aliases=[]},89015:(e,n,t)=>{t.d(n,{default:()=>i});var a=t(63266);const i=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/89025.e20277a3.chunk.js b/ydb/core/viewer/monitoring/static/js/89025.e20277a3.chunk.js new file mode 100644 index 0000000000..3e2f0f6f9a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/89025.e20277a3.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[89025],{89025:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ky",weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),weekStart:1,weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/89033.56232409.chunk.js b/ydb/core/viewer/monitoring/static/js/89033.56232409.chunk.js new file mode 100644 index 0000000000..7d6ffe506b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/89033.56232409.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[89033],{11270:e=>{function a(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}e.exports=a,a.displayName="ocaml",a.aliases=[]},89033:(e,a,t)=>{t.d(a,{default:()=>r});var n=t(11270);const r=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/89222.d941dfbd.chunk.js b/ydb/core/viewer/monitoring/static/js/89222.d941dfbd.chunk.js new file mode 100644 index 0000000000..0266587504 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/89222.d941dfbd.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[89222],{89222:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),n={name:"af",weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),weekStart:1,weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/89697.31847e00.chunk.js b/ydb/core/viewer/monitoring/static/js/89697.31847e00.chunk.js new file mode 100644 index 0000000000..be75639bb7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/89697.31847e00.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[89697],{89697:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-ma",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekStart:6,weekdaysShort:"\u0627\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8979.0c0acc31.chunk.js b/ydb/core/viewer/monitoring/static/js/8979.0c0acc31.chunk.js deleted file mode 100644 index 52d875ad6c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8979.0c0acc31.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8979],{78979:(e,t,i)=>{i.r(t),i.d(t,{Adapter:()=>f,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>C,DiagnosticsAdapter:()=>_,DocumentHighlightAdapter:()=>v,FormatAdapter:()=>O,FormatHelper:()=>L,FormatOnTypeAdapter:()=>N,InlayHintsAdapter:()=>R,Kind:()=>F,LibFiles:()=>y,OutlineAdapter:()=>A,QuickInfoAdapter:()=>k,ReferenceAdapter:()=>D,RenameAdapter:()=>K,SignatureHelpAdapter:()=>x,SuggestAdapter:()=>w,WorkerManager:()=>p,flattenDiagnosticMessageText:()=>h,getJavaScriptWorker:()=>V,getTypeScriptWorker:()=>j,setupJavaScript:()=>H,setupTypeScript:()=>E});var s,r,n=i(80781),a=i(24152),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,u=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))d.call(e,r)||r===i||o(e,r,{get:()=>t[r],enumerable:!(s=l(t,r))||s.enumerable});return e},g={};u(g,s=n,"default"),r&&u(r,s,"default");var p=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=g.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(g.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},m={};function h(e,t,i=0){if("string"===typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;e<i;e++)s+=" "}if(s+=e.messageText,i++,e.next)for(const r of e.next)s+=h(r,t,i);return s}function b(e){return e?e.map((e=>e.text)).join(""):""}m["lib.d.ts"]=!0,m["lib.decorators.d.ts"]=!0,m["lib.decorators.legacy.d.ts"]=!0,m["lib.dom.asynciterable.d.ts"]=!0,m["lib.dom.d.ts"]=!0,m["lib.dom.iterable.d.ts"]=!0,m["lib.es2015.collection.d.ts"]=!0,m["lib.es2015.core.d.ts"]=!0,m["lib.es2015.d.ts"]=!0,m["lib.es2015.generator.d.ts"]=!0,m["lib.es2015.iterable.d.ts"]=!0,m["lib.es2015.promise.d.ts"]=!0,m["lib.es2015.proxy.d.ts"]=!0,m["lib.es2015.reflect.d.ts"]=!0,m["lib.es2015.symbol.d.ts"]=!0,m["lib.es2015.symbol.wellknown.d.ts"]=!0,m["lib.es2016.array.include.d.ts"]=!0,m["lib.es2016.d.ts"]=!0,m["lib.es2016.full.d.ts"]=!0,m["lib.es2016.intl.d.ts"]=!0,m["lib.es2017.d.ts"]=!0,m["lib.es2017.date.d.ts"]=!0,m["lib.es2017.full.d.ts"]=!0,m["lib.es2017.intl.d.ts"]=!0,m["lib.es2017.object.d.ts"]=!0,m["lib.es2017.sharedmemory.d.ts"]=!0,m["lib.es2017.string.d.ts"]=!0,m["lib.es2017.typedarrays.d.ts"]=!0,m["lib.es2018.asyncgenerator.d.ts"]=!0,m["lib.es2018.asynciterable.d.ts"]=!0,m["lib.es2018.d.ts"]=!0,m["lib.es2018.full.d.ts"]=!0,m["lib.es2018.intl.d.ts"]=!0,m["lib.es2018.promise.d.ts"]=!0,m["lib.es2018.regexp.d.ts"]=!0,m["lib.es2019.array.d.ts"]=!0,m["lib.es2019.d.ts"]=!0,m["lib.es2019.full.d.ts"]=!0,m["lib.es2019.intl.d.ts"]=!0,m["lib.es2019.object.d.ts"]=!0,m["lib.es2019.string.d.ts"]=!0,m["lib.es2019.symbol.d.ts"]=!0,m["lib.es2020.bigint.d.ts"]=!0,m["lib.es2020.d.ts"]=!0,m["lib.es2020.date.d.ts"]=!0,m["lib.es2020.full.d.ts"]=!0,m["lib.es2020.intl.d.ts"]=!0,m["lib.es2020.number.d.ts"]=!0,m["lib.es2020.promise.d.ts"]=!0,m["lib.es2020.sharedmemory.d.ts"]=!0,m["lib.es2020.string.d.ts"]=!0,m["lib.es2020.symbol.wellknown.d.ts"]=!0,m["lib.es2021.d.ts"]=!0,m["lib.es2021.full.d.ts"]=!0,m["lib.es2021.intl.d.ts"]=!0,m["lib.es2021.promise.d.ts"]=!0,m["lib.es2021.string.d.ts"]=!0,m["lib.es2021.weakref.d.ts"]=!0,m["lib.es2022.array.d.ts"]=!0,m["lib.es2022.d.ts"]=!0,m["lib.es2022.error.d.ts"]=!0,m["lib.es2022.full.d.ts"]=!0,m["lib.es2022.intl.d.ts"]=!0,m["lib.es2022.object.d.ts"]=!0,m["lib.es2022.regexp.d.ts"]=!0,m["lib.es2022.sharedmemory.d.ts"]=!0,m["lib.es2022.string.d.ts"]=!0,m["lib.es2023.array.d.ts"]=!0,m["lib.es2023.collection.d.ts"]=!0,m["lib.es2023.d.ts"]=!0,m["lib.es2023.full.d.ts"]=!0,m["lib.es5.d.ts"]=!0,m["lib.es6.d.ts"]=!0,m["lib.esnext.collection.d.ts"]=!0,m["lib.esnext.d.ts"]=!0,m["lib.esnext.decorators.d.ts"]=!0,m["lib.esnext.disposable.d.ts"]=!0,m["lib.esnext.full.d.ts"]=!0,m["lib.esnext.intl.d.ts"]=!0,m["lib.esnext.object.d.ts"]=!0,m["lib.esnext.promise.d.ts"]=!0,m["lib.scripthost.d.ts"]=!0,m["lib.webworker.asynciterable.d.ts"]=!0,m["lib.webworker.d.ts"]=!0,m["lib.webworker.importscripts.d.ts"]=!0,m["lib.webworker.iterable.d.ts"]=!0;var f=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:r,column:n}=i,{lineNumber:a,column:o}=s;return{startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o}}},y=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!m[e.path.slice(1)])}getOrCreateModel(e){const t=g.Uri.parse(e),i=g.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return g.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const s=a.IF.getExtraLibs()[e];return s?g.editor.createModel(s.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},_=class extends f{constructor(e,t,i,s){super(s),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const r=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let s;const r=e.onDidChangeContent((()=>{clearTimeout(s),s=window.setTimeout(t,500)})),n=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():g.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){r.dispose(),n.dispose(),clearTimeout(s)}},t()},n=e=>{g.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel((e=>r(e)))),this._disposables.push(g.editor.onWillDisposeModel(n)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{n(e.model),r(e.model)}))),this._disposables.push({dispose(){for(const e of g.editor.getModels())n(e)}});const a=()=>{for(const e of g.editor.getModels())n(e),r(e)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),g.editor.getModels().forEach((e=>r(e)))}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:s,noSemanticValidation:r,noSuggestionDiagnostics:n}=this._defaults.getDiagnosticsOptions();s||i.push(t.getSyntacticDiagnostics(e.uri.toString())),r||i.push(t.getSemanticDiagnostics(e.uri.toString())),n||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const a=await Promise.all(i);if(!a||e.isDisposed())return;const o=a.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=o.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?g.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||g.editor.setModelMarkers(e,this._selector,o.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,s=t.length||1,{lineNumber:r,column:n}=e.getPositionAt(i),{lineNumber:a,column:o}=e.getPositionAt(i+s),l=[];return t.reportsUnnecessary&&l.push(g.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(g.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o,message:h(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let s=e;if(t.file&&(s=this._libFiles.getOrCreateModel(t.file.fileName)),!s)return;const r=t.start||0,n=t.length||1,{lineNumber:a,column:o}=s.getPositionAt(r),{lineNumber:l,column:c}=s.getPositionAt(r+n);i.push({resource:s.uri,startLineNumber:a,startColumn:o,endLineNumber:l,endColumn:c,message:h(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return g.MarkerSeverity.Error;case 3:return g.MarkerSeverity.Info;case 0:return g.MarkerSeverity.Warning;case 2:return g.MarkerSeverity.Hint}return g.MarkerSeverity.Info}},w=class e extends f{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,s,r){const n=t.getWordUntilPosition(i),a=new g.Range(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn),o=t.uri,l=t.getOffsetAt(i),c=await this._worker(o);if(t.isDisposed())return;const d=await c.getCompletionsAtPosition(o.toString(),l);if(!d||t.isDisposed())return;return{suggestions:d.entries.map((s=>{let r=a;if(s.replacementSpan){const e=t.getPositionAt(s.replacementSpan.start),i=t.getPositionAt(s.replacementSpan.start+s.replacementSpan.length);r=new g.Range(e.lineNumber,e.column,i.lineNumber,i.column)}const n=[];return void 0!==s.kindModifiers&&-1!==s.kindModifiers.indexOf("deprecated")&&n.push(g.languages.CompletionItemTag.Deprecated),{uri:o,position:i,offset:l,range:r,label:s.name,insertText:s.name,sortText:s.sortText,kind:e.convertKind(s.kind),tags:n}}))}}async resolveCompletionItem(t,i){const s=t,r=s.uri,n=s.position,a=s.offset,o=await this._worker(r),l=await o.getCompletionEntryDetails(r.toString(),a,s.label);return l?{uri:r,position:n,label:l.name,kind:e.convertKind(l.kind),detail:b(l.displayParts),documentation:{value:e.createDocumentationString(l)}}:s}static convertKind(e){switch(e){case F.primitiveType:case F.keyword:return g.languages.CompletionItemKind.Keyword;case F.variable:case F.localVariable:return g.languages.CompletionItemKind.Variable;case F.memberVariable:case F.memberGetAccessor:case F.memberSetAccessor:return g.languages.CompletionItemKind.Field;case F.function:case F.memberFunction:case F.constructSignature:case F.callSignature:case F.indexSignature:return g.languages.CompletionItemKind.Function;case F.enum:return g.languages.CompletionItemKind.Enum;case F.module:return g.languages.CompletionItemKind.Module;case F.class:return g.languages.CompletionItemKind.Class;case F.interface:return g.languages.CompletionItemKind.Interface;case F.warning:return g.languages.CompletionItemKind.File}return g.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=b(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${S(i)}`;return t}};function S(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...s]=e.text;t+=`\`${i.text}\``,s.length>0&&(t+=` \u2014 ${s.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` \u2014 ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` \u2014 ${e.text}`);return t}var x=class e extends f{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case g.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,s,r){const n=t.uri,a=t.getOffsetAt(i),o=await this._worker(n);if(t.isDisposed())return;const l=await o.getSignatureHelpItems(n.toString(),a,{triggerReason:e._toSignatureHelpTriggerReason(r)});if(!l||t.isDisposed())return;const c={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:b(e.documentation)},t.label+=b(e.prefixDisplayParts),e.parameters.forEach(((i,s,r)=>{const n=b(i.displayParts),a={label:n,documentation:{value:b(i.documentation)}};t.label+=n,t.parameters.push(a),s<r.length-1&&(t.label+=b(e.separatorDisplayParts))})),t.label+=b(e.suffixDisplayParts),c.signatures.push(t)})),{value:c,dispose(){}}}},k=class extends f{async provideHover(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getQuickInfoAtPosition(s.toString(),r);if(!a||e.isDisposed())return;const o=b(a.documentation),l=a.tags?a.tags.map((e=>S(e))).join(" \n\n"):"",c=b(a.displayParts);return{range:this._textSpanToRange(e,a.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:o+(l?"\n\n"+l:"")}]}}},v=class extends f{async provideDocumentHighlights(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDocumentHighlights(s.toString(),r,[s.toString()]);return a&&!e.isDisposed()?a.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?g.languages.DocumentHighlightKind.Write:g.languages.DocumentHighlightKind.Text}))))):void 0}},C=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDefinitionAtPosition(s.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const o=[];for(let l of a){const e=this._libFiles.getOrCreateModel(l.fileName);e&&o.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return o}},D=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,s){const r=e.uri,n=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const o=await a.getReferencesAtPosition(r.toString(),n);if(!o||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(o.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let c of o){const e=this._libFiles.getOrCreateModel(c.fileName);e&&l.push({uri:e.uri,range:this._textSpanToRange(e,c.textSpan)})}return l}},A=class extends f{async provideDocumentSymbols(e,t){const i=e.uri,s=await this._worker(i);if(e.isDisposed())return;const r=await s.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const n=(t,i)=>({name:t.text,detail:"",kind:I[t.kind]||g.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>n(e,t.text))),containerName:i});return r.childItems?r.childItems.map((e=>n(e))):[]}},F=class{static{this.unknown=""}static{this.keyword="keyword"}static{this.script="script"}static{this.module="module"}static{this.class="class"}static{this.interface="interface"}static{this.type="type"}static{this.enum="enum"}static{this.variable="var"}static{this.localVariable="local var"}static{this.function="function"}static{this.localFunction="local function"}static{this.memberFunction="method"}static{this.memberGetAccessor="getter"}static{this.memberSetAccessor="setter"}static{this.memberVariable="property"}static{this.constructorImplementation="constructor"}static{this.callSignature="call"}static{this.indexSignature="index"}static{this.constructSignature="construct"}static{this.parameter="parameter"}static{this.typeParameter="type parameter"}static{this.primitiveType="primitive type"}static{this.label="label"}static{this.alias="alias"}static{this.const="const"}static{this.let="let"}static{this.warning="warning"}},I=Object.create(null);I[F.module]=g.languages.SymbolKind.Module,I[F.class]=g.languages.SymbolKind.Class,I[F.enum]=g.languages.SymbolKind.Enum,I[F.interface]=g.languages.SymbolKind.Interface,I[F.memberFunction]=g.languages.SymbolKind.Method,I[F.memberVariable]=g.languages.SymbolKind.Property,I[F.memberGetAccessor]=g.languages.SymbolKind.Property,I[F.memberSetAccessor]=g.languages.SymbolKind.Property,I[F.variable]=g.languages.SymbolKind.Variable,I[F.const]=g.languages.SymbolKind.Variable,I[F.localVariable]=g.languages.SymbolKind.Variable,I[F.variable]=g.languages.SymbolKind.Variable,I[F.function]=g.languages.SymbolKind.Function,I[F.localFunction]=g.languages.SymbolKind.Function;var T,P,L=class extends f{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},O=class extends L{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getFormattingEditsForRange(r.toString(),n,a,L._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},N=class extends L{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,s,r){const n=e.uri,a=e.getOffsetAt(t),o=await this._worker(n);if(e.isDisposed())return;const l=await o.getFormattingEditsAfterKeystroke(n.toString(),a,i,L._convertOptions(s));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends L{async provideCodeActions(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=L._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(r);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(r.toString(),n,a,l,o);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};return{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const s=[];for(const r of i.changes)for(const t of r.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});return{title:i.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},K=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,s){const r=e.uri,n=r.toString(),a=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getRenameInfo(n,a,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await o.findRenameLocations(n,a,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},R=class extends f{async provideInlayHints(e,t,i){const s=e.uri,r=s.toString(),n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(s);if(e.isDisposed())return null;return{hints:(await o.provideInlayHints(r,n,a)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?g.languages.InlayHintKind.Parameter:g.languages.InlayHintKind.Type}};function E(e){P=W(e,"typescript")}function H(e){T=W(e,"javascript")}function V(){return new Promise(((e,t)=>{if(!T)return t("JavaScript not registered!");e(T)}))}function j(){return new Promise(((e,t)=>{if(!P)return t("TypeScript not registered!");e(P)}))}function W(e,t){const i=[],s=[],r=new p(t,e);i.push(r);const n=(...e)=>r.getLanguageServiceWorker(...e),a=new y(n);return function(){const{modeConfiguration:i}=e;B(s),i.completionItems&&s.push(g.languages.registerCompletionItemProvider(t,new w(n))),i.signatureHelp&&s.push(g.languages.registerSignatureHelpProvider(t,new x(n))),i.hovers&&s.push(g.languages.registerHoverProvider(t,new k(n))),i.documentHighlights&&s.push(g.languages.registerDocumentHighlightProvider(t,new v(n))),i.definitions&&s.push(g.languages.registerDefinitionProvider(t,new C(a,n))),i.references&&s.push(g.languages.registerReferenceProvider(t,new D(a,n))),i.documentSymbols&&s.push(g.languages.registerDocumentSymbolProvider(t,new A(n))),i.rename&&s.push(g.languages.registerRenameProvider(t,new K(a,n))),i.documentRangeFormattingEdits&&s.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new O(n))),i.onTypeFormattingEdits&&s.push(g.languages.registerOnTypeFormattingEditProvider(t,new N(n))),i.codeActions&&s.push(g.languages.registerCodeActionProvider(t,new M(n))),i.inlayHints&&s.push(g.languages.registerInlayHintsProvider(t,new R(n))),i.diagnostics&&s.push(new _(a,e,t,n))}(),i.push(function(e){return{dispose:()=>B(e)}}(s)),n}function B(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js b/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js deleted file mode 100644 index 7c525b529d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8986.de287636.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8986],{58986:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>h,language:()=>u});var o,i,n=r(80781),a=Object.defineProperty,m=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))c.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(o=m(t,i))||o.enumerable});return e},d={};l(d,o=n,"default"),i&&l(i,o,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:d.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:d.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/89922.e5924c1e.chunk.js b/ydb/core/viewer/monitoring/static/js/89922.e5924c1e.chunk.js new file mode 100644 index 0000000000..657ce1309b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/89922.e5924c1e.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[89922],{89922:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),o={name:"pt-br",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return a.default.locale(o,null,!0),o}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90099.38466d3d.chunk.js b/ydb/core/viewer/monitoring/static/js/90099.38466d3d.chunk.js new file mode 100644 index 0000000000..9b0acca41b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90099.38466d3d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90099],{5744:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},6156:(e,t,l)=>{l.d(t,{F:()=>I});var n=l(59284),a=l(81240),o=l(84476),i=l(80604),r=l(99991),s=l(63365),c=l(46423),d=l(87184);const m=n.createContext(null),u=()=>{const e=n.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},v=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var w=l(69220);const p=(0,w.om)("alert"),g=({layout:e,view:t,children:l})=>n.createElement(m.Provider,{value:{layout:e,view:t}},l);var h=l(18677),f=l(10800),E=l(45720),b=l(43937),A=l(5744),y=l(70825),C=l(71153),N=l(94420);const x=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var z=l(27612);const k={danger:{filled:h.A,outlined:f.A},info:{filled:E.A,outlined:b.A},success:{filled:A.A,outlined:y.A},warning:{filled:C.A,outlined:N.A},utility:{filled:x,outlined:z.A},normal:null};var L=l(98089);var R=l(72837);const T=JSON.parse('{"label_close":"Close"}'),O=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),j=(0,R.N)({en:T,ru:O},"Alert"),I=e=>{const{theme:t="normal",view:l="filled",layout:m="vertical",message:u,className:v,corners:w,style:h,onClose:f,align:E,qa:b}=e;return n.createElement(g,{layout:m,view:l},n.createElement(i.Z,{style:h,className:p({corners:w},(0,c.Y)({py:4,px:5},v)),theme:t,view:l,qa:b},n.createElement(d.s,{gap:"3",alignItems:E},"undefined"===typeof e.icon?n.createElement(I.Icon,{theme:t,view:l}):e.icon,n.createElement(d.s,{direction:"vertical"===m?"column":"row",gap:"5",grow:!0},n.createElement(d.s,{gap:"2",grow:!0,className:p("text-content")},n.createElement(d.s,{direction:"column",gap:"1",grow:!0,justifyContent:E},"string"===typeof e.title?n.createElement(I.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(I.Actions,{items:e.actions}):e.actions),f&&n.createElement(o.$,{view:"flat",className:p("close-btn"),onClick:f,extraProps:{"aria-label":j("label_close")}},n.createElement(r.I,{data:a.A,size:18,className:(0,s.$)({color:"secondary"})})))))};I.Icon=({className:e,theme:t,view:l="filled",size:a=18})=>{const o=k[t];if(!o)return null;let i;return"success"===t?i="positive":"normal"!==t&&(i=t),n.createElement("div",{className:p("icon",(0,s.$)({color:i},e))},n.createElement(r.I,{data:o[l],size:a}))},I.Title=({text:e,className:t})=>n.createElement(L.E,{variant:"subheader-2",className:p("title",t)},e),I.Actions=({items:e,children:t,className:l})=>{const{layout:a}=u();return n.createElement(d.s,{className:p("actions",{minContent:"horizontal"===a},l),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===a?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},l)=>n.createElement(v,{key:l,onClick:e},t))))||t)},I.Action=v},10800:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},18677:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},80604:(e,t,l)=>{l.d(t,{Z:()=>s});var n=l(27145),a=l(59284),o=l(46734),i=l(9296);const r=(0,l(69220).om)("card"),s=a.forwardRef((function(e,t){const{type:l="container",theme:s,view:c,size:d="m",children:m,className:u,onClick:v,disabled:w,selected:p}=e,g=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),h="selection"===l,f="container"===l,E=("action"===l||h)&&Boolean(v)&&!w,b=f?"normal":void 0,A=f||h?"outlined":void 0,y=E?v:void 0,{onKeyDown:C}=(0,o.N)(v);return a.createElement(i.a,Object.assign({ref:t,role:E?"button":void 0,className:r({theme:s||b,view:c||A,type:l,selected:p,size:d,disabled:w,clickable:E},u),onClick:y,onKeyDown:E?C:void 0,tabIndex:E?0:void 0},g),m)}))},90099:(e,t,l)=>{l.r(t),l.d(t,{TopPanel:()=>s});var n=l(59284),a=l(6156),o=l(49034),i=l(16258);l(82435);const r=({topAlert:e})=>{const t=n.useRef(null),l=(e=>{const[t,l]=n.useState(0);return n.useEffect((()=>{if(e.current){const{current:t}=e;l(t.clientHeight)}}),[e]),t})(t),a=n.useCallback((e=>{const t=document.getElementsByClassName("g-root").item(0);null===t||void 0===t||t.style.setProperty("--gn-aside-top-panel-height",e+"px")}),[]),i=n.useCallback((()=>{var e;t.current&&a((null===(e=t.current)||void 0===e?void 0:e.clientHeight)||0)}),[t,a]);return n.useLayoutEffect((()=>{const t=(0,o.d)(i,200,{leading:!0});return e&&(window.addEventListener("resize",t),t()),()=>{window.removeEventListener("resize",t),a(0)}}),[e,l,t,i,a]),{topRef:t,updateTopSize:i}},s=({topAlert:e})=>{const{topRef:t,updateTopSize:l}=r({topAlert:e}),[o,s]=n.useState(!0),c=n.useCallback((()=>{var t;s(!1),null===(t=null===e||void 0===e?void 0:e.onCloseTopAlert)||void 0===t||t.call(e)}),[e]);return n.useEffect((()=>{o||l()}),[o,l]),e&&e.message?n.createElement("div",{ref:t,className:(0,i.b)("pane-top",{opened:o})},o&&n.createElement(n.Fragment,null,n.createElement(a.F,{className:(0,i.b)("pane-top-alert",{centered:e.centered,dense:e.dense}),corners:"square",layout:"horizontal",align:e.align,theme:e.theme||"warning",view:e.view,icon:e.icon,title:e.title,message:e.message,actions:e.actions,onClose:e.closable?c:void 0}),n.createElement("div",{className:(0,i.b)("pane-top-divider")}))):null}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js b/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js deleted file mode 100644 index 51415f7d0a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9010.4bfaf5fa.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9010],{99010:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>o,language:()=>n});var o={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},n={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90118.4fc97e01.chunk.js b/ydb/core/viewer/monitoring/static/js/90118.4fc97e01.chunk.js new file mode 100644 index 0000000000..cea782e01f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90118.4fc97e01.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 90118.4fc97e01.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90118],{90118:(e,t,n)=>{n.r(t),n.d(t,{TagAngleInterpolationBracket:()=>B,TagAngleInterpolationDollar:()=>D,TagAutoInterpolationBracket:()=>w,TagAutoInterpolationDollar:()=>v,TagBracketInterpolationBracket:()=>C,TagBracketInterpolationDollar:()=>E});var o,i,_=n(80781),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))u.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=a(t,i))||o.enumerable});return e},c={};d(c,o=_,"default"),i&&d(i,o,"default");var l=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],k=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],p={close:">",id:"angle",open:"<"},g={close:"\\]",id:"bracket",open:"\\["},A={close:"[>\\]]",id:"auto",open:"[<\\[]"},m={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},b={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function f(e){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${e.open}--`,`--${e.close}`]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${e.open}#(?:${k.join("|")})([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),end:new RegExp(`${e.open}/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),afterText:new RegExp(`^${e.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${e.close}$`),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function F(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${k.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function x(e,t){const n=`_${e.id}_${t.id}`,o=e=>e.replace(/__id__/g,n),i=e=>{const t=e.source.replace(/__id__/g,n);return new RegExp(t,e.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(e.open),[o("close__id__")]:new RegExp(e.close),[o("iOpen1__id__")]:new RegExp(t.open1),[o("iOpen2__id__")]:new RegExp(t.open2),[o("iClose__id__")]:new RegExp(t.close),[o("startTag__id__")]:i(/(@open__id__)(#)/),[o("endTag__id__")]:i(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:i(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:i(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:i(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\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-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[i(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{..."bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},..."bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{..."bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[i(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[i(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function $(e){const t=x(p,e),n=x(g,e),o=x(A,e);return{...t,...n,...o,unicode:!0,includeLF:!1,start:`default_auto_${e.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...t.tokenizer,...n.tokenizer,...o.tokenizer}}}var D={conf:f(p),language:x(p,m)},E={conf:f(g),language:x(g,m)},B={conf:f(p),language:x(p,b)},C={conf:f(g),language:x(g,b)},v={conf:F(),language:$(m)},w={conf:F(),language:$(b)}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/90118.4fc97e01.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/90118.4fc97e01.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js b/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js deleted file mode 100644 index afc42c64e2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 902.a1b90b1b.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[902],{10902:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:".,=}])>' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},o={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["syntax","import","weak","public","package","option","repeated","oneof","map","reserved","to","max","enum","message","service","rpc","stream","returns","package","optional","true","false"],builtinTypes:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],operators:["=","+","-"],namedLiterals:["true","false"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:"@whitespace"},[/syntax/,"keyword"],[/=/,"operators"],[/;/,"delimiter"],[/(")(proto3)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto3"}]],[/(")(proto2)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto2"}]],[/.*?/,{token:"",switchTo:"@topLevel.proto2"}]],topLevel:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/[;.]/,"delimiter"],[/@fullIdentifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},service:{token:"keyword",next:"@serviceDecl.$S2"},extend:{cases:{"$S2==proto2":{token:"keyword",next:"@extendDecl.$S2"}}},"@keywords":"keyword","@default":"identifier"}}]],enumDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@enumBody.$S2"}]],enumBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/@identifier/,"identifier"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],messageDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}]],messageBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],["(map)(s*)(<)",["keyword","white",{token:"@brackets",bracket:"@open",next:"@map.$S2"}]],[/@identifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},oneof:{token:"keyword",next:"@oneofDecl.$S2"},extensions:{cases:{"$S2==proto2":{token:"keyword",next:"@reserved.$S2"}}},reserved:{token:"keyword",next:"@reserved.$S2"},"(?:repeated|optional)":{token:"keyword",next:"@field.$S2"},required:{cases:{"$S2==proto2":{token:"keyword",next:"@field.$S2"}}},"$S2==proto3":{token:"@rematch",next:"@field.$S2"}}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],extendDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@extendBody.$S2"}]],extendBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(?:repeated|optional|required)/,"keyword","@field.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],options:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/\]/,{token:"@brackets",bracket:"@close",next:"@pop"}]],option:[{include:"@whitespace"},[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator","@pop"]],oneofDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@oneofBody.$S2"}]],oneofBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(@identifier)(\s*)(=)/,["identifier","white","delimiter"]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],reserved:[{include:"@whitespace"},[/,/,"delimiter"],[/;/,"delimiter","@pop"],{include:"@constant"},[/to\b|max\b/,"keyword"]],map:[{include:"@whitespace"},[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/,/,"delimiter"],[/>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9025.6ae28867.chunk.js b/ydb/core/viewer/monitoring/static/js/9025.6ae28867.chunk.js deleted file mode 100644 index b0fdc68dfd..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9025.6ae28867.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9025],{89025:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ky",weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),weekStart:1,weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90290.a7f1549c.chunk.js b/ydb/core/viewer/monitoring/static/js/90290.a7f1549c.chunk.js new file mode 100644 index 0000000000..bb8955bf4a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90290.a7f1549c.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90290],{90290:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],_=e%100;return"["+e+(a[(_-20)%10]||a[_]||a[0])+"]"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90330.7878a0d4.chunk.js b/ydb/core/viewer/monitoring/static/js/90330.7878a0d4.chunk.js new file mode 100644 index 0000000000..889565436b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90330.7878a0d4.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90330],{77071:e=>{function n(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}e.exports=n,n.displayName="powerquery",n.aliases=[]},90330:(e,n,t)=>{t.d(n,{default:()=>i});var a=t(77071);const i=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90367.afe12186.chunk.js b/ydb/core/viewer/monitoring/static/js/90367.afe12186.chunk.js new file mode 100644 index 0000000000..9cc6dfce3d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90367.afe12186.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90367],{32918:(e,r,a)=>{var t=a(77831);function n(e){e.register(t),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}e.exports=n,n.displayName="racket",n.aliases=["rkt"]},77831:e=>{function r(e){!function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var r in e)e[r]=e[r].replace(/<[\w\s]+>/g,(function(r){return"(?:"+e[r].trim()+")"}));return e[r]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(e)}e.exports=r,r.displayName="scheme",r.aliases=[]},90367:(e,r,a)=>{a.d(r,{default:()=>n});var t=a(32918);const n=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90504.d340d9cc.chunk.js b/ydb/core/viewer/monitoring/static/js/90504.d340d9cc.chunk.js new file mode 100644 index 0000000000..43eee66ea7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90504.d340d9cc.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90504],{69649:e=>{function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}e.exports=t,t.displayName="livescript",t.aliases=[]},90504:(e,t,n)=>{n.d(t,{default:()=>o});var i=n(69649);const o=n.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90513.c6053ab5.chunk.js b/ydb/core/viewer/monitoring/static/js/90513.c6053ab5.chunk.js new file mode 100644 index 0000000000..4c1a986b56 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90513.c6053ab5.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90513],{90513:function(e,n,u){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e);function r(e){return e>9?r(e%10):e}function t(e,n,u){return e+" "+function(e,n){return 2===n?function(e){return{m:"v",b:"v",d:"z"}[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[u],e)}var _={name:"br",weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),weekStart:1,weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},meridiem:function(e){return e<12?"a.m.":"g.m."}};return u.default.locale(_,null,!0),_}(u(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90529.112c30e3.chunk.js b/ydb/core/viewer/monitoring/static/js/90529.112c30e3.chunk.js new file mode 100644 index 0000000000..489f5321ab --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90529.112c30e3.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90529],{31012:e=>{function d(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}e.exports=d,d.displayName="neon",d.aliases=[]},90529:(e,d,n)=>{n.d(d,{default:()=>t});var s=n(31012);const t=n.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/90628.e6a33d41.chunk.js b/ydb/core/viewer/monitoring/static/js/90628.e6a33d41.chunk.js new file mode 100644 index 0000000000..cf7cb1069a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/90628.e6a33d41.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[90628],{90628:function(u,t,e){u.exports=function(u){"use strict";function t(u){return u&&"object"==typeof u&&"default"in u?u:{default:u}}var e=t(u);function n(u,t,e,n){var i={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xe4iv\xe4",dd:"%d p\xe4iv\xe4\xe4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xe4_viisi_kuusi_seitsem\xe4n_kahdeksan_yhdeks\xe4n".split("_")},a={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xe4iv\xe4n",dd:"%d p\xe4iv\xe4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xe4n_viiden_kuuden_seitsem\xe4n_kahdeksan_yhdeks\xe4n".split("_")},_=n&&!t?a:i,s=_[e];return u<10?s.replace("%d",_.numbers[u]):s.replace("%d",u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};return e.default.locale(i,null,!0),i}(e(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9067.254af4a9.chunk.js b/ydb/core/viewer/monitoring/static/js/9067.254af4a9.chunk.js deleted file mode 100644 index 50aecf6a0a..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9067.254af4a9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9067],{49067:function(a,e,i){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var i=e(a),_={name:"mi",weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),weekStart:1,weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"}};return i.default.locale(_,null,!0),_}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/91087.3a776c06.chunk.js b/ydb/core/viewer/monitoring/static/js/91087.3a776c06.chunk.js new file mode 100644 index 0000000000..20be23c56c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/91087.3a776c06.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[91087],{5266:a=>{function n(a){a.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}a.exports=n,n.displayName="jsstacktrace",n.aliases=[]},91087:(a,n,e)=>{e.d(n,{default:()=>s});var t=e(5266);const s=e.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/91249.38e22793.chunk.js b/ydb/core/viewer/monitoring/static/js/91249.38e22793.chunk.js new file mode 100644 index 0000000000..17bed00f38 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/91249.38e22793.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[91249],{33788:i=>{function a(i){i.languages.wiki=i.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:i.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),i.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:i.languages.markup.tag.inside}}}})}i.exports=a,a.displayName="wiki",a.aliases=[]},91249:(i,a,e)=>{e.d(a,{default:()=>t});var n=e(33788);const t=e.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/91545.080bf65f.chunk.js b/ydb/core/viewer/monitoring/static/js/91545.080bf65f.chunk.js new file mode 100644 index 0000000000..6bcd5ebdf7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/91545.080bf65f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[91545],{58464:e=>{function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}e.exports=t,t.displayName="gdscript",t.aliases=[]},91545:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(58464);const n=s.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js b/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js deleted file mode 100644 index 06112b1e27..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9172.f332051f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9172.f332051f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9172],{5874:(e,t,n)=>{n.d(t,{W:()=>L});var l=n(59284);const o=e=>{if(e.options.enableRowSelection)return Boolean(e.options.enableMultiRowSelection)};var r=n(32084);const i=l.createContext(void 0),a={};var s=n(85720);const u=e=>{const t=e.column.getIsPinned(),n="left"===t,l="right"===t,o=n&&e.column.getIsLastColumn("left"),r=l&&e.column.getIsFirstColumn("right");return{pinned:Boolean(t),"pinned-left":n,"pinned-right":l,"last-pinned-left":o,"first-pinned-right":r}},d=e=>e?Object.assign({id:e.column.id},u(e)):null,g=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0},t)};var c=n(82435);(0,c.withNaming)({e:"__",m:"_"});const p=(0,c.withNaming)({n:"gt-",e:"__",m:"_"}),m=p("table");var f=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const v=e=>{var{cell:t,children:n,className:o,style:r,attributes:i}=e,a=f(e,["cell","children","className","style","attributes"]);const u="function"===typeof i?i(t):i,c="function"===typeof o?o(t):o;return l.createElement("td",Object.assign({className:m("cell",d(t),c)},a,u,{style:g(t,Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style))}),t?(0,s.Kv)(t.column.columnDef.cell,t.getContext()):n)},w=p("group-header"),h=({row:e,className:t,getGroupTitle:n})=>{var o;return l.createElement("h2",{className:w(null,t)},l.createElement("button",{className:w("button"),onClick:e.getToggleExpandedHandler()},l.createElement("svg",{className:w("icon",{expanded:e.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},l.createElement("path",{d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",fill:"currentColor"})),l.createElement("span",{className:w("content")},l.createElement("span",{className:w("title")},null!==(o=null===n||void 0===n?void 0:n(e))&&void 0!==o?o:e.id),l.createElement("span",{className:w("total")},e.subRows.length))))};var b=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const C=l.forwardRef(((e,t)=>{var{cellClassName:n,className:o,getGroupTitle:i,getIsCustomRow:a,getIsGroupHeaderRow:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:g,renderGroupHeader:c,renderGroupHeaderRowContent:p,row:f,rowVirtualizer:w,style:C,virtualItem:S,attributes:R,cellAttributes:y,table:I}=e,x=b(e,["cellClassName","className","getGroupTitle","getIsCustomRow","getIsGroupHeaderRow","groupHeaderClassName","onClick","renderCustomRowContent","renderGroupHeader","renderGroupHeaderRowContent","row","rowVirtualizer","style","virtualItem","attributes","cellAttributes","table"]);const M=(0,r.N)(null===w||void 0===w?void 0:w.measureElement,t),F="function"===typeof R?R(f):R,P="function"===typeof o?o(f):o,E=l.useCallback((e=>{null===d||void 0===d||d(f,e)}),[d,f]);return l.createElement("tr",Object.assign({ref:M,className:m("row",{selected:f.getIsSelected(),interactive:Boolean(d)},P),onClick:E,"data-index":null===S||void 0===S?void 0:S.index},x,F,{style:Object.assign(Object.assign({top:w&&S?S.start-w.options.scrollMargin:void 0},C),null===F||void 0===F?void 0:F.style)}),(null===s||void 0===s?void 0:s(f))?p?p({row:f,Cell:v,cellClassName:n,getGroupTitle:i}):l.createElement(v,{className:n,colSpan:f.getVisibleCells().length,attributes:y,"aria-colindex":1},c?c({row:f,className:m("group-header",u),getGroupTitle:i}):l.createElement(h,{row:f,className:m("group-header",u),getGroupTitle:i})):(null===a||void 0===a?void 0:a(f))&&g?g({row:f,Cell:v,cellClassName:n}):f.getVisibleCells().map((e=>l.createElement(v,{key:e.id,cell:e,className:n,attributes:y,"aria-colindex":e.column.getIndex()+1}))))}));C.displayName="BaseRow";var S=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const R=l.forwardRef(((e,t)=>{var n,{attributes:o,row:s,style:u,table:d}=e,g=S(e,["attributes","row","style","table"]);const{isChildMode:c,activeItemKey:p,targetItemIndex:m=-1,enableNesting:f,useSortable:v}=null!==(n=l.useContext(i))&&void 0!==n?n:{},{setNodeRef:w,transform:h=null,transition:b,isDragging:R=!1}=(null===v||void 0===v?void 0:v({id:s.id}))||{},y=Boolean(p),I=c&&m===s.index,x=(0,r.N)(w,t),{isFirstChild:M,depth:F}=(({row:e,table:t,isDragging:n})=>{var o,r,a,s,u;const{isChildMode:d,isParentMode:g,isNextChildMode:c,targetItemIndex:p=-1,enableNesting:m}=null!==(o=l.useContext(i))&&void 0!==o?o:{};let f=n&&-1===p,v=0;if(m)if(n&&-1!==p){const e=t.getRowModel().rows,n=null!==(a=null===(r=e[p])||void 0===r?void 0:r.depth)&&void 0!==a?a:0,l=null!==(u=null===(s=e[p+1])||void 0===s?void 0:s.depth)&&void 0!==u?u:0;if(f=l>n,f)v=l,g&&v--;else{let e=0;g?e=-1:d&&(e=1),v=(c?n:Math.min(n,l))+e}v=Math.max(0,v)}else v=f?0:e.depth;return{depth:v,isFirstChild:f}})({row:s,table:d,isDragging:R}),P=(({style:e=a,transform:t,transition:n,isDragging:o,isDragActive:r,isFirstChild:s,draggableChildRowOffset:u=32,enableNesting:d})=>{var g;const{isChildMode:c,isParentMode:p}=null!==(g=l.useContext(i))&&void 0!==g?g:{};return l.useMemo((()=>{if(!r||!t)return e;let l=0;return d&&o&&(p?l=-u:c&&!s&&(l=u)),Object.assign(Object.assign({},e),{transition:n,transform:`translate3d(${Math.max(l,0)}px, ${t.y}px, 0)`})}),[u,c,r,o,s,p,e,t,n,d])})({style:u,transform:h,transition:b,isDragging:R,isDragActive:y,isFirstChild:M,enableNesting:f}),E=l.useCallback((e=>{const t="function"===typeof o?o(e):o;return Object.assign(Object.assign({},t),{"data-key":e.id,"data-depth":F,"data-draggable":!0,"data-dragging":R,"data-drag-active":y,"data-expanded":y&&I})}),[o,F,R,y,I]);return l.createElement(C,Object.assign({ref:x,attributes:E,row:s,style:P,table:d},g))}));R.displayName="BaseDraggableRow";const y=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},u(e)),I=({header:e,attributes:t,className:n})=>{const o="function"===typeof t?t(e):t,r="function"===typeof n?n(e):n,i=e.depth-e.column.depth;return l.createElement("th",Object.assign({className:m("footer-cell",y(e),r),colSpan:e.colSpan>1?e.colSpan:void 0,rowSpan:i>1?i:void 0},o,{style:g(e,null===o||void 0===o?void 0:o.style)}),(0,s.Kv)(e.column.columnDef.footer,e.getContext()))};var x=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const M=e=>{var{footerGroup:t,attributes:n,cellAttributes:o,cellClassName:r,className:i}=e,a=x(e,["footerGroup","attributes","cellAttributes","cellClassName","className"]);const s="function"===typeof n?n(t):n,u="function"===typeof i?i(t):i;return l.createElement("tr",Object.assign({className:m("footer-row",u)},a,s),t.headers.map((e=>(e=>!e.isPlaceholder)(e)?l.createElement(I,{key:e.column.id,header:e,attributes:o,className:r}):null)))},F=e=>{if(e)return"asc"===e?"ascending":"descending"},P=e=>e.headerGroup.headers.slice(0,e.index).reduce(((e,t)=>e+t.colSpan),1),E=p("resize-handle"),V=({className:e,header:t})=>{var n;const{table:o}=t.getContext(),{columnResizeDirection:r,columnResizeMode:i}=o.options,{columnSizingInfo:a}=o.getState(),s=("rtl"===r?-1:1)*(null!==(n=a.deltaOffset)&&void 0!==n?n:0);return l.createElement("div",{className:E({direction:r,resizing:t.column.getIsResizing()},e),onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),style:{transform:"onEnd"===i&&t.column.getIsResizing()?`translateX(${s}px)`:void 0}})};var O=n(46734),_=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const z=e=>{var{header:t,className:n,children:o}=e,r=_(e,["header","className","children"]);const i=t.column.getToggleSortingHandler(),{onKeyDown:a}=(0,O.N)(i);return l.createElement("span",Object.assign({className:m("sort",n),role:"button",tabIndex:0,onClick:i,onKeyDown:a},r),o)},G=p("sort-indicator"),N=({className:e,header:t})=>{const n=t.column.getIsSorted();return l.createElement("span",{className:G({order:n,invisible:!n},e)},l.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},l.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},H=({className:e,header:t,parentHeader:n,renderHeaderCellContent:o,renderResizeHandle:r,renderSortIndicator:i,resizeHandleClassName:a,sortIndicatorClassName:u,attributes:d})=>{const c="function"===typeof d?d(t,n):d,p="function"===typeof e?e(t,n):e,f=t.isPlaceholder?t.getLeafHeaders().length:1;return l.createElement("th",Object.assign({className:m("header-cell",y(t),p),colSpan:t.colSpan>1?t.colSpan:void 0,rowSpan:f>1?f:void 0,"aria-sort":F(t.column.getIsSorted()),"aria-colindex":P(t)},c,{style:g(t,null===c||void 0===c?void 0:c.style)}),o?o({header:t}):l.createElement(l.Fragment,null,t.column.getCanSort()?l.createElement(z,{header:t},(0,s.Kv)(t.column.columnDef.header,t.getContext())," ",i?i({className:m("sort-indicator",u),header:t}):l.createElement(N,{className:m("sort-indicator",u),header:t})):(0,s.Kv)(t.column.columnDef.header,t.getContext()),t.column.getCanResize()&&(r?r({className:m("resize-handle",a),header:t}):l.createElement(V,{className:m("resize-handle",a),header:t}))))};var A=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const D=e=>{var{cellClassName:t,className:n,headerGroup:o,parentHeaderGroup:r,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:g,cellAttributes:c}=e,p=A(e,["cellClassName","className","headerGroup","parentHeaderGroup","renderHeaderCellContent","renderResizeHandle","renderSortIndicator","resizeHandleClassName","sortIndicatorClassName","attributes","cellAttributes"]);const f="function"===typeof g?g(o,r):g,v="function"===typeof n?n(o,r):n;return l.createElement("tr",Object.assign({className:m("header-row",v)},p,f),o.headers.map((e=>{const n=null===r||void 0===r?void 0:r.headers.find((t=>e.column.id===t.column.id));return((e,t)=>{const n=e.isPlaceholder&&(null===t||void 0===t?void 0:t.isPlaceholder)&&t.placeholderId===e.placeholderId,l=!e.isPlaceholder&&e.id===e.column.id&&e.depth-e.column.depth>1;return!(n||l)})(e,n)?l.createElement(H,{key:e.column.id,className:t,header:e,parentHeader:n,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:c}):null})))},L=l.forwardRef((({table:e,attributes:t,bodyAttributes:n,bodyClassName:r,bodyRef:a,cellAttributes:s,cellClassName:u,className:d,customFooterRowCount:g,emptyContent:c,footerAttributes:p,footerCellAttributes:f,footerCellClassName:v,footerClassName:w,footerRowAttributes:h,footerRowClassName:b,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,headerAttributes:F,headerCellAttributes:P,headerCellClassName:E,headerClassName:V,headerRowAttributes:O,headerRowClassName:_,onRowClick:z,renderCustomFooterContent:G,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:k,rowAttributes:B,rowClassName:q,rowVirtualizer:$,sortIndicatorClassName:U,stickyFooter:K=!1,stickyHeader:X=!1,withFooter:Z=!1,withHeader:W=!0},J)=>{var Q;const Y=l.useContext(i),ee=null!==(Q=null===Y||void 0===Y?void 0:Y.activeItemIndex)&&void 0!==Q?Q:-1,{rows:te,rowsById:ne}=e.getRowModel(),le=l.useMemo((()=>(e=>{let t=1;return e.reduce(((e,n,l,o)=>{const r=Object.assign(Object.assign({},e),{[n.id]:t}),i=o[l+1];return(null===i||void 0===i?void 0:i.parentId)!==n.id&&(t+=n.getLeafRows().length),t++,r}),{})})(te)),[te]),oe=W?e.getHeaderGroups():[],re=Z?e.getFooterGroups():[],ie=e.getVisibleLeafColumns().length,ae=oe.length,se=Object.keys(ne).length,ue=Z&&(G&&g||re.length)||0,de=se+ae+ue,ge=(null===$||void 0===$?void 0:$.getVirtualItems())||te;return l.createElement("table",Object.assign({ref:J,className:m({"with-row-virtualization":Boolean($)},d),"data-dragging-row-index":ee>-1?ee:void 0,"aria-colcount":ie>0?ie:void 0,"aria-rowcount":de>0?de:void 0,"aria-multiselectable":o(e)},t),W&&l.createElement("thead",Object.assign({className:m("header",{sticky:X},V)},F),oe.map(((e,t)=>l.createElement(D,{key:e.id,cellClassName:E,className:_,headerGroup:e,parentHeaderGroup:oe[t-1],renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:k,sortIndicatorClassName:U,attributes:O,cellAttributes:P,"aria-rowindex":t+1})))),l.createElement("tbody",Object.assign({ref:a,className:m("body",r)},n,{style:Object.assign({height:ge.length?null===$||void 0===$?void 0:$.getTotalSize():void 0},null===n||void 0===n?void 0:n.style)}),ge.length?ge.map((t=>{var n;const o=$?te[t.index]:t,r=$?t:void 0,i=null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:o.id,a={cellClassName:u,className:q,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,attributes:B,cellAttributes:s,onClick:z,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,row:o,rowVirtualizer:$,table:e,virtualItem:r,"aria-rowindex":ae+le[o.id],"aria-selected":e.options.enableRowSelection?o.getIsSelected():void 0};return Y?l.createElement(R,Object.assign({key:i},a)):l.createElement(C,Object.assign({key:i},a))})):(()=>{if(!c)return null;const t="function"===typeof q?q():q,n="function"===typeof u?u():u;return l.createElement("tr",{className:m("row",{empty:!0},t)},l.createElement("td",{className:m("cell",{},n),colSpan:ie,style:{width:$?e.getTotalSize():void 0}},"function"===typeof c?c():c))})()),Z&&l.createElement("tfoot",Object.assign({className:m("footer",{sticky:K},w)},p),G?G({cellClassName:m("footer-cell"),footerGroups:re,rowClassName:m("footer-row"),rowIndex:ae+se+1}):re.map(((e,t)=>(e=>e.headers.some((e=>e.column.columnDef.footer)))(e)?l.createElement(M,{key:e.id,footerGroup:e,attributes:h,cellAttributes:f,cellClassName:v,className:b,"aria-rowindex":ae+se+t+1}):null))))}));L.displayName="BaseTable"},18677:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},24953:(e,t,n)=>{function l(e,t){return"function"===typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:l(n,t[e])})))}}function r(e){return e instanceof Function}function i(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)}))};return l(e),n}function a(e,t,n){let l,o=[];return r=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(r);if(!(a.length!==o.length||a.some(((e,t)=>o[t]!==e))))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function s(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}n.d(t,{D0:()=>W,HT:()=>Z,ZR:()=>X,cU:()=>Q,h5:()=>Y});const u="debugHeaders";function d(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const g={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var r,i;const a=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[];return c(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>c(t,n=n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,r,i,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function c(e,t,n,l){var o,r;let i=0;const a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const i=[...r].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),i&&(null==i?void 0:i.column)===a)i.subHeaders.push(e);else{const o=d(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(r,t-1)},g=t.map(((e,t)=>d(n,e,{depth:i,index:t})));u(g,i-1),s.reverse();const c=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],c(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return c(null!=(o=null==(r=s[0])?void 0:r.headers)?o:[]),s}const p=(e,t,n,l,o,r,u)=>{let d={id:t,index:l,original:n,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,l),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,l),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>i(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let i=0;i<e._features.length;i++){const t=e._features[i];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var l,o;const r=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};f.autoRemove=e=>x(e);const v=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};v.autoRemove=e=>x(e);const w=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};w.autoRemove=e=>x(e);const h=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};h.autoRemove=e=>x(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));b.autoRemove=e=>x(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));C.autoRemove=e=>x(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>x(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>x(e);const y=(e,t,n)=>{let[l,o]=n;const r=e.getValue(t);return r>=l&&r<=o};y.resolveFilterValue=e=>{let[t,n]=e,l="number"!==typeof t?parseFloat(t):t,o="number"!==typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,i=null===n||Number.isNaN(o)?1/0:o;if(r>i){const e=r;r=i,i=e}return[r,i]},y.autoRemove=e=>x(e)||x(e[0])&&x(e[1]);const I={includesString:f,includesStringSensitive:v,equalsString:w,arrIncludes:h,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function x(e){return void 0===e||null===e||""===e}const M={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"===typeof l?I.includesString:"number"===typeof l?I.inNumberRange:"boolean"===typeof l||null!==l&&"object"===typeof l?I.equals:Array.isArray(l)?I.arrIncludes:I.weakEquals},e.getFilterFn=()=>{var n,l;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:I[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=l(n,r?r.value:void 0);var a;if(F(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var u;return r?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=l(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(F(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function F(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const P={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"===typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(l=n,!Array.isArray(l)||!l.every((e=>"number"===typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},E={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"===typeof l?P.sum:"[object Date]"===Object.prototype.toString.call(l)?P.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const V={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[H(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=H(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=H(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),s(e.options,"debugTable"))}},O={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,r,i,a,s;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(r=l.right)?void 0:r.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),s(e.options,"debugColumns"))}},_={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>_,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_.minSize,null!=(l=null!=r?r:e.columnDef.size)?l:_.size),null!=(o=e.columnDef.maxSize)?o:_.maxSize)},e.getStart=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return r=>{if(!l||!o)return;if(null==r.persist||r.persist(),N(r)&&r.touches&&r.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=N(r)?Math.round(r.touches[0].clientX):r.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const r="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},g=e=>d("move",e),c=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>g(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},v=!!function(){if("boolean"===typeof G)return G;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return G=e,G}()&&{passive:!1};N(r)?(null==p||p.addEventListener("touchmove",f.moveHandler,v),null==p||p.addEventListener("touchend",f.upHandler,v)):(null==p||p.addEventListener("mousemove",m.moveHandler,v),null==p||p.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let G=null;function N(e){return"touchstart"===e.type}function H(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(l[e.id]=!0)})):o.forEach((e=>{delete l[e.id]})),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{D(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((r=>{var i;if(n="undefined"!==typeof n?n:!o,e.getCanSelect()&&o===n)return r;const a={...r};return D(a,e.id,n,null==(i=null==l?void 0:l.selectChildren)||i,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return j(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===T(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===T(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},D=(e,t,n,l,o)=>{var r;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>D(e,t.id,n,l,o)))};function L(e,t){const n=e.getState().rowSelection,l=[],o={},r=function(e,t){return e.map((e=>{var t;const i=j(e,n);if(i&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:l,rowsById:o}}function j(e,t){var n;return null!=(n=t[e.id])&&n}function T(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,r=!1;return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(j(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=T(e,t);"all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const k=/([0-9]+)/gm;function B(e,t){return e===t?0:e>t?1:-1}function q(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function $(e,t){const n=e.split(k).filter(Boolean),l=t.split(k).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return-1}}return n.length-l.length}const U={alphanumeric:(e,t,n)=>$(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>$(q(e.getValue(n)),q(t.getValue(n))),text:(e,t,n)=>B(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>B(q(e.getValue(n)),q(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>B(e.getValue(n),t.getValue(n))},K=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},V,O,m,M,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof l||"number"===typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>I.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return r(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:I[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(l=!0,n.split(k).length>1))return U.alphanumeric}return l?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),r="undefined"!==typeof n&&null!==n;t.setSorting((i=>{const a=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let u,d=[],g=r?n:"desc"===o;var c;(u=null!=i&&i.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":a?"toggle":"replace","toggle"===u&&(r||o||(u="remove")),"add"===u)?(d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):d="toggle"===u?i.map((t=>t.id===e.id?{...t,desc:g}:t)):"remove"===u?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:g}];return d}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const r=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===r||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const r=!0===l||!(null==l||!l[e.id]);let i={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=l,n=null!=(o=n)?o:!r,!r&&n)return{...i,[e.id]:!0};if(r&&!n){const{[e.id]:t,...n}=i;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>l(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=l(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,l(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=l(t,null!=(o=e.options.pageCount)?o:-1);return"number"===typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const r=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...i,e.id,...r]);t.setRowPinning((e=>{var t,l,o,r,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"===typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const r=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(r=l.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function X(e){var t,n;const o=[...K,...null!=(t=e._features)?t:[]];let r={_features:o};const i=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let u={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let g=!1;const c={_features:o,options:{...i,...e},initialState:u,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();g=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=l(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:a((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const o=function(e,t,n,l){var o,r;const i={...e._getDefaultColumnDef(),...t},u=i.accessorKey;let d,g=null!=(o=null!=(r=i.id)?r:u?"function"===typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?o:"string"===typeof i.header?i.header:void 0;if(i.accessorFn?d=i.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[i.accessorKey]),!g)throw new Error;let c={id:`${String(g)}`,accessorFn:d,parent:l,depth:n,columnDef:i,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(c,e);return c}(r,e,l,n),i=e;return o.columns=i.columns?t(i.columns,o,l+1):[],o}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let l=0;l<r._features.length;l++){const e=r._features[l];null==e||null==e.createTable||e.createTable(r)}return r}function Z(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,r){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,r),t[s],s,o,void 0,null==r?void 0:r.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u))}return i};return n.rows=l(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function W(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?J(t):t),s(e.options,"debugTable"))}function J(e){const t=[],n=e=>{var l;t.push(e),null!=(l=e.subRows)&&l.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Q(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const l=t.filter((t=>e.getColumn(t))),o=[],r={},a=function(t,n,s){if(void 0===n&&(n=0),n>=l.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=l[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const l=`${n.getGroupingValue(t)}`,o=e.get(l);return o?o.push(n):e.set(l,[n]),e}),n)}(t,u),g=Array.from(d.entries()).map(((t,d)=>{let[g,c]=t,m=`${u}:${g}`;m=s?`${s}>${m}`:m;const f=a(c,n+1,m);f.forEach((e=>{e.parentId=m}));const v=n?i(c,(e=>e.subRows)):c,w=p(e,m,v[0].original,d,n,void 0,s);return Object.assign(w,{groupingColumnId:u,groupingValue:g,subRows:f,leafRows:v,getValue:t=>{if(l.includes(t)){if(w._valuesCache.hasOwnProperty(t))return w._valuesCache[t];var n;if(c[0])w._valuesCache[t]=null!=(n=c[0].getValue(t))?n:void 0;return w._valuesCache[t]}if(w._groupingValuesCache.hasOwnProperty(t))return w._groupingValuesCache[t];const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn();return r?(w._groupingValuesCache[t]=r(t,v,c),w._groupingValuesCache[t]):void 0}}),f.forEach((e=>{o.push(e),r[e.id]=e})),w}));return g},s=a(n.rows,0);return s.forEach((e=>{o.push(e),r[e.id]=e})),{rows:s,flatRows:o,rowsById:r}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Y(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const l=e.getState().sorting,o=[],r=l.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};r.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let l=0;l<r.length;l+=1){var n;const o=r[l],a=i[o.id],s=a.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(o.id),l=void 0===t.getValue(o.id);if(n||l){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&l?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,o.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}},36590:(e,t,n)=>{n.d(t,{K:()=>r});var l=n(24953),o=n(85720);const r=e=>{var t,n,r,i,a,s,u,d,g,c,p,m,f;const v=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(r=e.enableExpanding)&&void 0!==r&&r,enableGrouping:null!==(i=e.enableGrouping)&&void 0!==i&&i,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,l.HT)(),getExpandedRowModel:e.enableExpanding?null!==(g=e.getExpandedRowModel)&&void 0!==g?g:(0,l.D0)():void 0,getGroupedRowModel:e.enableGrouping?null!==(c=e.getGroupedRowModel)&&void 0!==c?c:(0,l.cU)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,l.h5)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,o.N4)(v)}},74321:(e,t,n)=>{n.d(t,{S:()=>u});var l=n(59284),o=n(64222),r=n(46898);function i(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const s=(0,n(69220).om)("checkbox"),u=l.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:g,children:c,title:p,style:m,className:f,qa:v}=e,{checked:w,inputProps:h}=(0,o.v)(e),b=g||c,C=l.createElement("span",{className:s("indicator")},l.createElement("span",{className:s("icon"),"aria-hidden":!0},u?l.createElement(i,{className:s("icon-svg",{type:"dash"})}):l.createElement(a,{className:s("icon-svg",{type:"tick"})})),l.createElement("input",Object.assign({},h,{className:s("control")})),l.createElement("span",{className:s("outline")}));return l.createElement(r.m,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:w},f),qa:v,control:C},b)}))},76938:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},85720:(e,t,n)=>{n.d(t,{Kv:()=>r,N4:()=>i});var l=n(59284),o=n(24953);function r(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?l.createElement(e,t):e:null;var n}function i(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState((()=>({current:(0,o.ZR)(t)}))),[r,i]=l.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js b/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js deleted file mode 100644 index d464a4b936..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9176.3f08336f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9176],{99176:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>i});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},i={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9177.3b6d6de8.chunk.js b/ydb/core/viewer/monitoring/static/js/9177.3b6d6de8.chunk.js new file mode 100644 index 0000000000..9b64e14e45 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9177.3b6d6de8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9177],{9177:(e,i,a)=>{a.d(i,{default:()=>t});var n=a(25735);const t=a.n(n)()},25735:e=>{function i(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}e.exports=i,i.displayName="makefile",i.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/91880.1a716d56.chunk.js b/ydb/core/viewer/monitoring/static/js/91880.1a716d56.chunk.js new file mode 100644 index 0000000000..66629f7e6d --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/91880.1a716d56.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[91880],{72483:e=>{function t(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="bro",t.aliases=[]},91880:(e,t,n)=>{n.d(t,{default:()=>r});var o=n(72483);const r=n.n(o)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92008.7d46cb66.chunk.js b/ydb/core/viewer/monitoring/static/js/92008.7d46cb66.chunk.js new file mode 100644 index 0000000000..5fb8a9a99b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92008.7d46cb66.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92008],{70533:d=>{function a(d){d.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}d.exports=a,a.displayName="nasm",a.aliases=[]},92008:(d,a,e)=>{e.d(a,{default:()=>b});var s=e(70533);const b=e.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92016.1c9c5217.chunk.js b/ydb/core/viewer/monitoring/static/js/92016.1c9c5217.chunk.js new file mode 100644 index 0000000000..aada7732d1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92016.1c9c5217.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 92016.1c9c5217.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92016],{92016:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>s});var r={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp("^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|/).*\\4)*(#.*)?$"),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},s={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/92016.1c9c5217.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/92016.1c9c5217.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/921.0402e36c.chunk.js b/ydb/core/viewer/monitoring/static/js/921.0402e36c.chunk.js deleted file mode 100644 index 86862b6212..0000000000 --- a/ydb/core/viewer/monitoring/static/js/921.0402e36c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[921],{80921:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"si",weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),months:"\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4_\u0db1\u0dc0\u0db8\u0dca_\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca_\u0db6\u0d9a\u0dca_\u0dc0\u0dd9\u0dc3\u0d9a\u0dca_\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca_\u0d87\u0dc3\u0dc5_\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2_\u0db6\u0dd2\u0db1\u0dbb_\u0dc0\u0db4\u0dca_\u0d89\u0dbd\u0dca_\u0d8b\u0db3\u0dd4\u0dc0\u0db4\u0dca".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),monthsShort:"\u0daf\u0dd4\u0dbb\u0dd4_\u0db1\u0dc0_\u0db8\u0dd0\u0daf\u0dd2_\u0db6\u0d9a\u0dca_\u0dc0\u0dd9\u0dc3_\u0db4\u0ddc\u0dc3\u0ddc_\u0d87\u0dc3_\u0db1\u0dd2\u0d9a\u0dd2_\u0db6\u0dd2\u0db1_\u0dc0\u0db4\u0dca_\u0d89\u0dbd\u0dca_\u0d8b\u0db3\u0dd4".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),ordinal:function(_){return _},formats:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",m:"\u0dc0\u0dd2\u0db1\u0dcf\u0da9\u0dd2\u0dba",mm:"\u0dc0\u0dd2\u0db1\u0dcf\u0da9\u0dd2 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9220.a9f48eb9.chunk.js b/ydb/core/viewer/monitoring/static/js/9220.a9f48eb9.chunk.js deleted file mode 100644 index e39a87e48e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9220.a9f48eb9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9220],{46839:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"sv",weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var a=e%10;return"["+e+(1===a||2===a?"a":"e")+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"}};return _.default.locale(t,null,!0),t}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9222.a1913f85.chunk.js b/ydb/core/viewer/monitoring/static/js/9222.a1913f85.chunk.js deleted file mode 100644 index 73c190e543..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9222.a1913f85.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9222],{89222:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),n={name:"af",weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),weekStart:1,weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"}};return _.default.locale(n,null,!0),n}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9243.cb95c73b.chunk.js b/ydb/core/viewer/monitoring/static/js/9243.cb95c73b.chunk.js deleted file mode 100644 index 30492fae92..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9243.cb95c73b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9243],{59243:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"am",weekdays:"\u12a5\u1211\u12f5_\u1230\u129e_\u121b\u12ad\u1230\u129e_\u1228\u1261\u12d5_\u1210\u1219\u1235_\u12a0\u122d\u1265_\u1245\u12f3\u121c".split("_"),weekdaysShort:"\u12a5\u1211\u12f5_\u1230\u129e_\u121b\u12ad\u1230_\u1228\u1261\u12d5_\u1210\u1219\u1235_\u12a0\u122d\u1265_\u1245\u12f3\u121c".split("_"),weekdaysMin:"\u12a5\u1211_\u1230\u129e_\u121b\u12ad_\u1228\u1261_\u1210\u1219_\u12a0\u122d_\u1245\u12f3".split("_"),months:"\u1303\u1295\u12cb\u122a_\u134c\u1265\u122f\u122a_\u121b\u122d\u127d_\u12a4\u1355\u122a\u120d_\u121c\u12ed_\u1301\u1295_\u1301\u120b\u12ed_\u12a6\u1308\u1235\u1275_\u1234\u1355\u1274\u121d\u1260\u122d_\u12a6\u12ad\u1276\u1260\u122d_\u1296\u126c\u121d\u1260\u122d_\u12f2\u1234\u121d\u1260\u122d".split("_"),monthsShort:"\u1303\u1295\u12cb_\u134c\u1265\u122f_\u121b\u122d\u127d_\u12a4\u1355\u122a_\u121c\u12ed_\u1301\u1295_\u1301\u120b\u12ed_\u12a6\u1308\u1235_\u1234\u1355\u1274_\u12a6\u12ad\u1276_\u1296\u126c\u121d_\u12f2\u1234\u121d".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"\u1260%s",past:"%s \u1260\u134a\u1275",s:"\u1325\u1242\u1275 \u1230\u12a8\u1295\u12f6\u127d",m:"\u12a0\u1295\u12f5 \u12f0\u1242\u1243",mm:"%d \u12f0\u1242\u1243\u12ce\u127d",h:"\u12a0\u1295\u12f5 \u1230\u12d3\u1275",hh:"%d \u1230\u12d3\u1273\u1275",d:"\u12a0\u1295\u12f5 \u1240\u1295",dd:"%d \u1240\u1293\u1275",M:"\u12a0\u1295\u12f5 \u12c8\u122d",MM:"%d \u12c8\u122b\u1275",y:"\u12a0\u1295\u12f5 \u12d3\u1218\u1275",yy:"%d \u12d3\u1218\u1273\u1275"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM D \u1363 YYYY",LLL:"MMMM D \u1363 YYYY HH:mm",LLLL:"dddd \u1363 MMMM D \u1363 YYYY HH:mm"},ordinal:function(_){return _+"\u129b"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92466.f38204fe.chunk.js b/ydb/core/viewer/monitoring/static/js/92466.f38204fe.chunk.js new file mode 100644 index 0000000000..2a1773aea8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92466.f38204fe.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92466],{92466:function(e,o,_){e.exports=function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=o(e),s={name:"gl",weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),ordinal:function(e){return e+"\xba"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"fai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92551.088c5eb2.chunk.js b/ydb/core/viewer/monitoring/static/js/92551.088c5eb2.chunk.js new file mode 100644 index 0000000000..79a7511019 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92551.088c5eb2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92551],{91922:e=>{function t(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",(function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/</g,"<").replace(/&/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:a,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}}))}e.exports=t,t.displayName="groovy",t.aliases=[]},92551:(e,t,n)=>{n.d(t,{default:()=>o});var a=n(91922);const o=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92816.26e23640.chunk.js b/ydb/core/viewer/monitoring/static/js/92816.26e23640.chunk.js new file mode 100644 index 0000000000..1bbf0913d8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92816.26e23640.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92816],{10165:e=>{function r(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var e=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return e=e.map((function(e){return e.split("").join(" *")})).join("|"),RegExp("\\b(?:"+e+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}e.exports=r,r.displayName="parigp",r.aliases=[]},92816:(e,r,o)=>{o.d(r,{default:()=>i});var n=o(10165);const i=o.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92868.fbd23d48.chunk.js b/ydb/core/viewer/monitoring/static/js/92868.fbd23d48.chunk.js new file mode 100644 index 0000000000..c9cf5711d6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92868.fbd23d48.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92868],{33789:e=>{function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}e.exports=t,t.displayName="icon",t.aliases=[]},92868:(e,t,a)=>{a.d(t,{default:()=>n});var i=a(33789);const n=a.n(i)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/92984.bc3d29a6.chunk.js b/ydb/core/viewer/monitoring/static/js/92984.bc3d29a6.chunk.js new file mode 100644 index 0000000000..439485609c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/92984.bc3d29a6.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[92984],{92984:function(_,d,t){_.exports=function(_){"use strict";function d(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=d(_),r={name:"x-pseudo",weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),weekStart:1,weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"}};return t.default.locale(r,null,!0),r}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9300.89daa9ec.chunk.js b/ydb/core/viewer/monitoring/static/js/9300.89daa9ec.chunk.js deleted file mode 100644 index 96576b6473..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9300.89daa9ec.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9300],{2102:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(77506),o=r(60712);const l=(0,a.cn)("ydb-diagnostic-card");function n({children:e,className:t,active:r,size:a="m",interactive:n=!0}){return(0,o.jsx)("div",{className:l({active:r,size:a,interactive:n},t),children:e})}},7117:(e,t,r)=>{r.d(t,{G:()=>ee});var a=r(59284),o=r(44508),l=r(98167),n=r(89073),s=r(86782),i=r(67028),u=r(15298),d=r(90182),p=r(88610);function c(){const e=(0,d.YQ)();return{problemFilter:(0,d.N4)(p.yV),handleProblemFilterChange:t=>{e((0,p.$u)(t))}}}var m=r(12888),h=r(43951),g=r(78034),y=r(71708),b=r(62710),f=r(98089),C=r(69775),v=r(24555),F=r(28539),N=r(9252),R=r(95963),x=r(64934),P=r(44433),j=r(48372);const S=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:","controls_peer-role-label":"Peer role:","database":"database","static":"static","other":"other","any":"any"}'),w=(0,j.g4)("ydb-nodes",{en:S}),B=["database","static","other","any"],G={get database(){return w("database")},get static(){return w("static")},get other(){return w("other")},get any(){return w("any")}};var T=r(60712);function I({value:e="database",onChange:t}){return(0,T.jsx)(P.a,{value:e,onUpdate:t,children:B.map((e=>(0,T.jsx)(P.a.Option,{value:e,children:G[e]},e)))})}const _="nodesTableSelectedColumns",E=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],U=["NodeId"],A=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function L(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var V=r(59109);const k=(0,r(77506).cn)("ydb-nodes"),O=e=>k("node",{unavailable:(0,g.X7)(e)}),q=e=>e&&403===e.status?(0,T.jsx)(V.O,{position:"left"}):(0,T.jsx)(o.o,{error:e});var M=r(67087);function D(e){var t;const[r,a]=(0,M.useQueryParams)({uptimeFilter:M.StringParam,peerRole:M.StringParam,search:M.StringParam,nodesGroupBy:M.StringParam}),o=g.Bm.parse(r.uptimeFilter),l=null!==(t=r.search)&&void 0!==t?t:"",n=(s=r.peerRole,B.find((e=>e===s)));var s;const u=(0,i.DM)(),d=function(e,t,r){return L(t,r).find((t=>t===e))}(r.nodesGroupBy,null!==e&&void 0!==e?e:[],u);return{uptimeFilter:o,searchValue:l,peerRoleFilter:n,groupByParam:d,handleSearchQueryChange:e=>{a({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{a({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{a({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{a({nodesGroupBy:e},"replaceIn")}}}function K({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:r,columnsToSelect:o,handleSelectedColumnsUpdate:l,entitiesCountCurrent:n,entitiesCountTotal:u,entitiesLoading:d}){const{searchValue:p,uptimeFilter:m,peerRoleFilter:h,groupByParam:g,handleSearchQueryChange:y,handleUptimeFilterChange:b,handlePeerRoleFilterChange:P,handleGroupByParamChange:j}=D(t),{problemFilter:S,handleProblemFilterChange:B}=c(),G=(0,i.DM)(),_=function(e,t){return L(e,t).map((e=>({value:e,content:(0,s.kn)(e)})))}(t,G),E=(0,i.WF)(),U=r&&E;return(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(R.v,{onChange:y,placeholder:w("controls_search-placeholder"),width:238,value:p}),G&&e?null:(0,T.jsx)(N.k,{value:S,onChange:B}),e?null:(0,T.jsx)(x.j,{value:m,onChange:b}),U?(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(f.E,{variant:"body-2",children:w("controls_peer-role-label")}),(0,T.jsx)(I,{value:h,onChange:P})]}):null,(0,T.jsx)(C.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:l,sortable:!1}),e?(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(f.E,{variant:"body-2",children:w("controls_group-by-placeholder")}),(0,T.jsx)(v.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:g?[g]:void 0,onUpdate:e=>{j(e[0])},options:_,className:k("group-by-select"),popupClassName:k("group-by-popup")})]}):null,(0,T.jsx)(F.T,{current:n,total:u,label:w("nodes"),loading:d})]})}var W=r(78524),Q=r(40427),$=r(11906),H=r(69464),X=r(40781);const z=async e=>{const{type:t="any",storage:r=!1,tablets:a=!0,limit:o,offset:l,sortParams:n,filters:i,columnsIds:u}=e,{sortOrder:d,columnId:p}=null!==n&&void 0!==n?n:{},{path:c,database:m,searchValue:h,problemFilter:y,uptimeFilter:b,peerRoleFilter:f,filterGroup:C,filterGroupBy:v}=null!==i&&void 0!==i?i:{},F=(0,s.kU)(p),N=F?(0,H.T)(F,d):void 0,R=(0,X.R)(u,s.fN),x=await window.api.viewer.getNodes({type:t,storage:r,tablets:a,limit:o,offset:l,sort:N,path:c,database:m,filter:h,problems_only:(0,g.AB)(y),uptime:(0,g.Fo)(b),filter_peer_role:f,filter_group:C,filter_group_by:v,fieldsRequired:R}),P=(0,$.N)(x);return{data:P.Nodes||[],found:P.FoundNodes||0,total:P.TotalNodes||0}};function Y({path:e,database:t,searchValue:r,problemFilter:o,uptimeFilter:l,peerRoleFilter:n,filterGroup:i,filterGroupBy:u,columns:d,parentRef:p,renderControls:c,initialEntitiesCount:m}){const h=a.useMemo((()=>({path:e,database:t,searchValue:r,problemFilter:o,uptimeFilter:l,peerRoleFilter:n,filterGroup:i,filterGroupBy:u})),[e,t,r,o,l,n,i,u]);return(0,T.jsx)(Q.k5,{columnsWidthLSKey:s.zO,parentRef:p,columns:d,fetchData:z,limit:50,initialEntitiesCount:m,renderControls:c,renderErrorMessage:q,renderEmptyDataMessage:()=>"All"!==o||l!==g.cW.All?(0,T.jsx)(W.v,{name:"thumbsUp",width:"200"}):w("empty.default"),getRowClassName:O,filters:h,tableName:"nodes"})}var J=r(78762);function Z(e){return[(0,J._E)(),(0,J.Nh)(e),(0,J.eT)(),(0,J.uk)(),(0,J.OX)(),(0,J.jl)(),(0,J.fr)(),(0,J.kv)(),(0,J.pH)(),(0,J.iX)(),(0,J.ID)(),(0,J.Rn)(),(0,J.qp)(e)].map((e=>({...e,sortable:(0,s.sp)(e.name)})))}function ee({path:e,database:t,parentRef:r,additionalNodesProps:o,withPeerRoleFilter:n,columns:u=Z({database:t,getNodeRef:null===o||void 0===o?void 0:o.getNodeRef}),defaultColumnsIds:d=E,requiredColumnsIds:p=U,selectedColumnsKey:h=_,groupByParams:y=A}){const{uptimeFilter:b,groupByParam:f,handleUptimeFilterChange:C}=D(y),{problemFilter:v,handleProblemFilterChange:F}=c(),N=(0,i.Pm)(),R=(0,i.Ye)(),x=(0,m.X)(),P=a.useMemo((()=>x?u:u.filter((e=>!(0,s.xd)(e.name)))),[u,x]);a.useEffect((()=>{!R||"All"===v&&b===g.cW.All||(F("All"),C(g.cW.All))}),[F,C,v,b,R]);return(0,T.jsx)(l.r,{loading:!N,children:R&&f?(0,T.jsx)(re,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:P,defaultColumnsIds:d,requiredColumnsIds:p,selectedColumnsKey:h,groupByParams:y}):(0,T.jsx)(te,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:P,defaultColumnsIds:d,requiredColumnsIds:p,selectedColumnsKey:h,groupByParams:y})})}function te({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:o,defaultColumnsIds:l,requiredColumnsIds:n,selectedColumnsKey:u,groupByParams:d}){const{searchValue:p,uptimeFilter:m,peerRoleFilter:g}=D(d),{problemFilter:y}=c(),b=(0,i.Ye)(),{columnsToShow:f,columnsToSelect:C,setColumns:v}=(0,h.K)(o,u,s.uG,l,n);return(0,T.jsx)(Y,{path:e,database:t,searchValue:p,problemFilter:y,uptimeFilter:m,peerRoleFilter:g,columns:f,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:r})=>(0,T.jsx)(K,{withGroupBySelect:b,groupByParams:d,withPeerRoleFilter:a,columnsToSelect:C,handleSelectedColumnsUpdate:v,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!r})})}function re({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:l,defaultColumnsIds:i,requiredColumnsIds:p,selectedColumnsKey:c,groupByParams:m}){const{searchValue:f,peerRoleFilter:C,groupByParam:v}=D(m),[F]=(0,d.Nt)(),{columnsToShow:N,columnsToSelect:R,setColumns:x}=(0,h.K)(l,c,s.uG,i,p),{currentData:P,isFetching:j,error:S}=u.s.useGetNodesQuery({path:e,database:t,filter:f,filter_peer_role:C,group:v,limit:0},{pollingInterval:F}),B=void 0===P&&j,{NodeGroups:G,FoundNodes:I=0,TotalNodes:_=0}=P||{},{expandedGroups:E,setIsGroupExpanded:U}=(0,b.$)(G);return(0,T.jsxs)(n.L,{children:[(0,T.jsx)(n.L.Controls,{children:(0,T.jsx)(K,{withGroupBySelect:!0,groupByParams:m,withPeerRoleFilter:a,columnsToSelect:R,handleSelectedColumnsUpdate:x,entitiesCountCurrent:I,entitiesCountTotal:_,entitiesLoading:B})}),S?(0,T.jsx)(o.o,{error:S}):null,(0,T.jsx)(n.L.Table,{loading:B,className:k("groups-wrapper"),children:null!==G&&void 0!==G&&G.length?G.map((({name:a,count:o})=>{const l=E[a];return(0,T.jsx)(y.Q,{title:a,count:o,entityName:w("nodes"),expanded:l,onIsExpandedChange:U,children:(0,T.jsx)(Y,{path:e,database:t,searchValue:f,problemFilter:"All",uptimeFilter:g.cW.All,peerRoleFilter:C,filterGroup:a,filterGroupBy:v,initialEntitiesCount:o,columns:N,parentRef:r})},a)})):w("no-nodes-groups")})]})}},9252:(e,t,r)=>{r.d(t,{k:()=>n});var a=r(44433),o=r(88610),l=r(60712);const n=({value:e,onChange:t,className:r})=>(0,l.jsxs)(a.a,{value:e,onUpdate:t,className:r,children:[(0,l.jsx)(a.a.Option,{value:o.s$.ALL,children:o.s$.ALL}),(0,l.jsx)(a.a.Option,{value:o.s$.PROBLEMS,children:o.s$.PROBLEMS})]})},11906:(e,t,r)=>{r.d(t,{N:()=>o});var a=r(78034);const o=e=>{var t;const r=(e.Nodes||[]).map((e=>{const{SystemState:t,...r}=e;return{...r,...(0,a.q1)(t)}}));return{Nodes:r,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||r.length,FoundNodes:Number(e.FoundNodes)}}},15298:(e,t,r)=>{r.d(t,{s:()=>l});var a=r(21334),o=r(11906);const l=a.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,o.N)(r)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},95963:(e,t,r)=>{r.d(t,{v:()=>a.v});var a=r(41775)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93033.55bd21d1.chunk.js b/ydb/core/viewer/monitoring/static/js/93033.55bd21d1.chunk.js new file mode 100644 index 0000000000..1ddc9cbf79 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93033.55bd21d1.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93033],{93033:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"gu",weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js b/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js deleted file mode 100644 index 008c2bc132..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9312.5eb8d4b1.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9312],{79312:(e,s,o)=>{o.r(s),o.d(s,{conf:()=>t,language:()=>E});var t={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},E={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93672.030a2ec6.chunk.js b/ydb/core/viewer/monitoring/static/js/93672.030a2ec6.chunk.js new file mode 100644 index 0000000000..e7d8137884 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93672.030a2ec6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93672],{68266:e=>{function i(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=i,i.displayName="haskell",i.aliases=["hs"]},90843:(e,i,a)=>{var t=a(68266);function n(e){e.register(t),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}e.exports=n,n.displayName="idris",n.aliases=["idr"]},93672:(e,i,a)=>{a.d(i,{default:()=>n});var t=a(90843);const n=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93691.0298f4d1.chunk.js b/ydb/core/viewer/monitoring/static/js/93691.0298f4d1.chunk.js new file mode 100644 index 0000000000..882c5fbefa --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93691.0298f4d1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93691],{51572:e=>{function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,i){if(n.language===a){var o=n.tokenStack=[];n.code=n.code.replace(r,(function(e){if("function"===typeof i&&!i(e))return e;for(var r,s=o.length;-1!==n.code.indexOf(r=t(a,s));)++s;return o[s]=e,r})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,i=Object.keys(n.tokenStack);!function o(s){for(var l=0;l<s.length&&!(r>=i.length);l++){var u=s[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var p=i[r],c=n.tokenStack[p],g="string"===typeof u?u:u.content,f=t(a,p),d=g.indexOf(f);if(d>-1){++r;var k=g.substring(0,d),b=new e.Token(a,e.tokenize(c,n.grammar),"language-"+a,c),m=g.substring(d+f.length),h=[];k&&h.push.apply(h,o([k])),h.push(b),m&&h.push.apply(h,o([m])),"string"===typeof u?s.splice.apply(s,[l,1].concat(h)):u.content=h}}else u.content&&o(u.content)}return s}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]},74892:(e,t,n)=>{var a=n(51572);function r(e){e.register(a),function(e){for(var t=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(/<expr>/g,(function(){return t}));t=t.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,(function(){return t}))),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,(function(){return t}))),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},e.hooks.add("before-tokenize",(function(n){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,(function(){return t})),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",a)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")}))}(e)}e.exports=r,r.displayName="ftl",r.aliases=[]},93691:(e,t,n)=>{n.d(t,{default:()=>r});var a=n(74892);const r=n.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93696.ebf5e5d2.chunk.js b/ydb/core/viewer/monitoring/static/js/93696.ebf5e5d2.chunk.js new file mode 100644 index 0000000000..1cb8695a8c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93696.ebf5e5d2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93696],{83445:e=>{function a(e){!function(e){var a,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=a,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(e)}e.exports=a,a.displayName="cssExtras",a.aliases=[]},93696:(e,a,n)=>{n.d(a,{default:()=>i});var r=n(83445);const i=n.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93756.c3c309ab.chunk.js b/ydb/core/viewer/monitoring/static/js/93756.c3c309ab.chunk.js new file mode 100644 index 0000000000..7e98131788 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93756.c3c309ab.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93756],{93756:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"pa-in",weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93771.f96f428a.chunk.js b/ydb/core/viewer/monitoring/static/js/93771.f96f428a.chunk.js new file mode 100644 index 0000000000..000e94ead2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93771.f96f428a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93771],{34280:a=>{function e(a){a.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}a.exports=e,e.displayName="nevod",e.aliases=[]},93771:(a,e,t)=>{t.d(e,{default:()=>s});var n=t(34280);const s=t.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/93890.f4cf2ce4.chunk.js b/ydb/core/viewer/monitoring/static/js/93890.f4cf2ce4.chunk.js new file mode 100644 index 0000000000..afa25f8681 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/93890.f4cf2ce4.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[93890],{16151:e=>{function a(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e.exports=a,a.displayName="eiffel",a.aliases=[]},93890:(e,a,r)=>{r.d(a,{default:()=>t});var n=r(16151);const t=r.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9393.b0a1bf0a.chunk.js b/ydb/core/viewer/monitoring/static/js/9393.b0a1bf0a.chunk.js deleted file mode 100644 index a8bd0d2702..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9393.b0a1bf0a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9393],{3685:(e,t,a)=>{a.d(t,{$:()=>r});var l=a(54090),n=a(77506),s=a(33775),i=a(60712);const o=(0,n.cn)("ydb-entity-page-title");function r({entityName:e,status:t=l.m.Grey,id:a,className:n}){return(0,i.jsxs)("div",{className:o(null,n),children:[(0,i.jsx)("span",{className:o("prefix"),children:e}),(0,i.jsx)(s.k,{className:o("icon"),status:t,size:"s"}),a]})}},10508:(e,t,a)=>{a.d(t,{c:()=>u});var l=a(67884),n=a(96873),s=a(54090),i=a(77506),o=a(82015),r=a(33775),d=a(60712);const c=(0,i.cn)("entity-status");function u({status:e=s.m.Grey,name:t="",label:a,path:i,iconPath:u,size:h="s",mode:m="color",showStatus:v=!0,externalLink:p=!1,withLeftTrim:b=!1,hasClipboardButton:g,clipboardButtonAlwaysVisible:x=!1,className:f}){const y=()=>v?(0,d.jsx)(r.k,{className:c("icon"),status:e,size:h,mode:m}):null;return(0,d.jsxs)("div",{className:c(null,f),children:[u?(w=u,(0,d.jsx)(l.N,{target:"_blank",href:w,children:y()})):y(),a&&(0,d.jsx)("span",{title:a,className:c("label",{size:h,state:e.toLowerCase()}),children:a}),(i||t)&&(0,d.jsxs)("div",{className:c("wrapper",{"with-button":g}),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":b}),title:t,children:i?p?(0,d.jsx)(l.N,{className:c("name"),href:i,children:t}):(0,d.jsx)(o.E,{className:c("name"),to:i,children:t}):t&&(0,d.jsx)("span",{className:c("name"),children:t})}),g&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:x}),children:(0,d.jsx)(n.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var w}},16819:(e,t,a)=>{a.d(t,{a:()=>i});var l=a(59284),n=a(69024),s=a(59001);const i=e=>{const t=l.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=l.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:a,getSizes:t})}},16929:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},17594:(e,t,a)=>{a.d(t,{l:()=>d});var l=a(69024),n=a(4557),s=a(77506),i=a(16819),o=a(60712);const r=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[c,u]=(0,i.a)(e),h=(0,l.j)(t,c),m={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,s),children:(0,o.jsx)(n.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},21545:(e,t,a)=>{a.d(t,{X:()=>n});var l=a(78034);const n=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[n,s,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,l.nN)(i),r=Object.keys(s).reduce(((e,t)=>{var a;const l=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(l&&l.length){var n;const a=l.find((e=>e.Leader))||l[0],{ChangeTime:s,Generation:i,State:r,Leader:d,FollowerId:c}=a,u=o&&t?null===(n=o.get(Number(t)))||void 0===n?void 0:n.Host:void 0;"Dead"!==r&&e.push({nodeId:t,generation:i,changeTime:s,state:r,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=n,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:l,PathId:n}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${l}:${n}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(l){return{error:l}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},22983:(e,t,a)=>{a.d(t,{B:()=>d});var l=a(59284),n=a(84476),s=a(84375),i=a(55974),o=a(42829),r=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:p,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:f=!0}){const[y,w]=l.useState(!1),[j,N]=l.useState(!1),[S,T]=l.useState(!1),I=()=>(0,r.jsx)(n.$,{onClick:()=>w(!0),view:m,disabled:h,loading:!h&&j,className:p,title:v,children:e});return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(i.g,{visible:y,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{N(!1)}},onConfirmActionError:e=>{T((0,o.D)(e)),N(!1)},onClose:()=>{w(!1)}}),b?(0,r.jsx)(s.A,{content:g,placement:x,disabled:f,children:I()}):I()]})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var l=a(47665),n=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(l.J,{theme:(0,n._)(e),children:e})}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var l=a(45720),n=a(16929),s=a(71153),i=a(99991),o=a(54090),r=a(77506),d=a(60712);const c=(0,r.cn)("ydb-status-icon"),u={[o.m.Blue]:l.A,[o.m.Yellow]:n.A,[o.m.Orange]:s.A,[o.m.Red]:n.A};function h({status:e=o.m.Grey,size:t="s",mode:a="color",className:l}){const n={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",n,l),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",n,l)})}},42829:(e,t,a)=>{a.d(t,{D:()=>l});const l=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},45720:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},55974:(e,t,a)=>{a.d(t,{g:()=>g});var l=a(59284),n=a(18677),s=a(71153),i=a(74321),o=a(2198),r=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,u.g4)("ydb-critical-action-dialog",{en:h});var v=a(60712);const p=(0,c.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,v.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:x,onConfirmActionError:f}){const[y,w]=l.useState(!1),[j,N]=l.useState(),[S,T]=l.useState(!1),I=async e=>(w(!0),g(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{w(!1)})));return(0,v.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:j?(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsx)(o.l.Body,{className:p("body"),children:(0,v.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,v.jsx)("span",{className:p("error-icon"),children:(0,v.jsx)(n.A,{width:"24",height:"22"})}),b(j)]})}),(0,v.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:h})]}):(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsxs)(o.l.Body,{className:p("body"),children:[(0,v.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,v.jsx)("span",{className:p("warning-icon"),children:(0,v.jsx)(r.I,{data:s.A,size:24})}),a]}),u?(0,v.jsx)(i.S,{checked:S,onUpdate:T,children:m("checkbox-text")}):null]}),(0,v.jsx)(o.l.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:h,onClickButtonApply:()=>I()})]})})}},58267:(e,t,a)=>{a.d(t,{P:()=>i,_:()=>o});var l=a(54090),n=a(6354);const s={[n.r.Dead]:l.m.Red,[n.r.Created]:l.m.Yellow,[n.r.ResolveStateStorage]:l.m.Yellow,[n.r.Candidate]:l.m.Yellow,[n.r.BlockBlobStorage]:l.m.Yellow,[n.r.WriteZeroEntry]:l.m.Yellow,[n.r.Restored]:l.m.Yellow,[n.r.Discover]:l.m.Yellow,[n.r.Lock]:l.m.Yellow,[n.r.Stopped]:l.m.Yellow,[n.r.ResolveLeader]:l.m.Yellow,[n.r.RebuildGraph]:l.m.Yellow,[n.r.Deleted]:l.m.Green,[n.r.Active]:l.m.Green},i=e=>{if(!e)return l.m.Grey;return t=e,Object.values(l.m).includes(t)?e:s[e];var t};function o(e){if(!e)return"unknown";switch(e){case n.r.Dead:return"danger";case n.r.Active:case n.r.Deleted:return"success";default:return"warning"}}},58389:(e,t,a)=>{a.d(t,{B:()=>u});var l=a(87184),n=a(77506),s=a(90053),i=a(70043),o=a(60712);const r=(0,n.cn)("ydb-page-meta"),d="\xa0\xa0\xb7\xa0\xa0";function c({items:e,loading:t}){return(0,o.jsx)("div",{className:r("info"),children:t?(0,o.jsx)(i.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(d)})}function u({className:e,...t}){return(0,o.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(c,{...t}),(0,o.jsx)(s.E,{})]})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var l=a(89169),n=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,n.y)(e);return a?(0,s.jsx)(l.E,{className:t}):null}},71153:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},79737:(e,t,a)=>{a.d(t,{A:()=>o,X:()=>r});var l=a(5874),n=a(77506),s=a(60712);const i=(0,n.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function r({className:e,width:t,wrapperClassName:a,...n}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(l.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const l=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,n=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:l,"vertical-align":n})},className:i("table",{width:t},e),...n})})}},81342:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be});var l=a(59284),n=a(87184),s=a(23871),i=a(44992),o=a(61750),r=a(10755),d=a(67087),c=a(370),u=a(7889),h=a(3685),m=a(44508),v=a(44294),p=a(98167),b=a(58389),g=a(92459),x=a(40174),f=a(21545),y=a(54090),w=a(77506),j=a(76086),N=a(90182),S=a(12888),T=a(76938);const I=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z",clipRule:"evenodd"})),_=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164z"}));var C=a(99991),A=a(22983),k=a(6354),E=a(48372);const D=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),R=(0,E.g4)("ydb-tablet-page",{en:D});function B(e){return Boolean(e&&"0"!==e)}var F=a(60712);const z=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,S.X)(),[i]=f.X.useKillTabletMutation(),[o]=f.X.useStopTabletMutation(),[r]=f.X.useResumeTabletMutation();if(!t)return null;const d=B(a),c=e.State===k.r.Stopped,u=e.State!==k.r.Stopped&&e.State!==k.r.Dead,h=e.State===k.r.Stopped||e.State===k.r.Deleted;return(0,F.jsxs)(n.s,{gap:2,wrap:"nowrap",children:[(0,F.jsxs)(A.B,{dialogHeader:R("dialog.kill-header"),dialogText:R("dialog.kill-text"),onConfirmAction:()=>i({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:T.A}),R("controls.kill")]}),d&&(0,F.jsxs)(l.Fragment,{children:[(0,F.jsxs)(A.B,{dialogHeader:R("dialog.stop-header"),dialogText:R("dialog.stop-text"),onConfirmAction:()=>o({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:I}),R("controls.stop")]}),(0,F.jsxs)(A.B,{dialogHeader:R("dialog.resume-header"),dialogText:R("dialog.resume-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:R("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:_}),R("controls.resume")]})]})]})};var O=a(52905),P=a(60073),G=a(25196),L=a(27775),H=a(41826),M=a(31684),q=a(29819);const $=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,E.g4)("ydb-tablet-info",{en:$}),K=(0,w.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.X)(),{ChangeTime:a,Generation:l,FollowerId:s,NodeId:i,HiveId:o,State:r,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=B(o),h=r===k.r.Active,m=[];u&&m.push({label:Y("field_hive"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(o),className:K("link"),children:o})}),d&&m.push({label:Y("field_scheme-shard"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(d),className:K("link"),children:d})}),m.push({label:Y("field_state"),value:(0,F.jsx)(L.i,{state:r})}),h&&m.push({label:Y("field_uptime"),value:(0,F.jsx)(H.H,{ChangeTime:a})}),m.push({label:Y("field_generation"),value:l},{label:Y("field_node"),value:(0,F.jsx)(O.N_,{className:K("link"),to:(0,q.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(n.s,{gap:10,wrap:"nowrap",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_info")}),(0,F.jsx)(P.z_,{info:m})]}),t&&c?(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_links")}),(0,F.jsxs)(n.s,{direction:"column",gap:3,children:[(0,F.jsx)(G.K,{title:Y("field_developer-ui-app"),url:(0,M._t)(c,"app")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-counters"),url:(0,M._t)(c,"counters")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-executor"),url:(0,M._t)(c,"executorInternals")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-state"),url:(0,M._t)(c,void 0,"SsId")})]})]}):null]})};var X=a(36590),Q=a(79737),J=a(84476),W=a(33705),U=a(56839);const Z=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,E.g4)("ydb-tablet-storage-info",{en:Z}),te=(0,w.cn)("ydb-tablet-storage-info");function ae(e,t){const a=e.getValue(),l="function"===typeof t?t(a):a;return(0,F.jsx)("div",{className:te("metrics-cell"),children:l})}function le({row:e,name:t,hasExpand:a}){const l=e.getCanExpand();return(0,F.jsxs)(n.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[l&&(0,F.jsx)(J.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,F.jsx)(J.$.Icon,{children:(0,F.jsx)(W.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,F.jsx)("div",{className:te("name-content",{"no-control":a&&!l}),children:t})]})}function ne({data:e}){const[t,a]=l.useState({}),n=l.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:l={}}=e,n=null!==(t=l.Channels)&&void 0!==t?t:[],s=[];for(const o of n){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const l=[...t];l.reverse();const[n,...r]=l,d={...n,storagePoolName:null===a||void 0===a||null===(i=a[e])||void 0===i?void 0:i.StoragePoolName,channelIndex:e,children:r};s.push(d)}return s}(e)),[e]),s=l.useMemo((()=>n.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[n]),i=l.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,F.jsx)(Q.A,{children:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,F.jsx)(Q.A,{children:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,F.jsx)(Q.A,{className:e?te("with-padding"):void 0,children:ee("label_group-id")}),size:100,cell:t=>(0,F.jsx)(le,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,F.jsx)(Q.A,{children:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,F.jsx)(Q.A,{children:ee("label_timestamp")}),size:200,cell:e=>ae(e,U.Ey),meta:{align:"right"}}];var e}),[s]),o=(0,X.K)({columns:i,data:n,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,F.jsx)(Q.X,{table:o})}var se=a(4557),ie=a(10508),oe=a(82015),re=a(17594);const de=[{name:"Generation",align:se.Ay.RIGHT,render:({row:e})=>e.generation},{name:"Change time",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(H.H,{ChangeTime:e.changeTime}),width:120},{name:"State",sortable:!1,render:({row:e})=>(0,F.jsx)(L.i,{state:e.state})},{name:"Follower ID",sortable:!1,render:({row:e})=>e.leader?"leader":e.followerId},{name:"Node ID",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(oe.E,{to:(0,q.vI)(e.nodeId),children:e.nodeId})},{name:"Node FQDN",sortable:!1,width:300,render:({row:e})=>e.fqdn?(0,F.jsx)(ie.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})}],ce={displayIndices:!1},ue=({history:e})=>(0,F.jsx)(re.l,{columnsWidthLSKey:"tabletTableColumnsWidth",data:e,columns:de,settings:ce,initialSortOrder:{columnId:"Generation",order:se.Ay.DESCENDING}}),he=(0,w.cn)("ydb-tablet-page"),me={history:"history",channels:"channels"},ve=[{id:me.history,get title(){return R("label_tablet-history")}},{id:me.channels,get title(){return R("label_tablet-channels")},isAdvanced:!0}],pe=c.z.nativeEnum(me).catch(me.history);function be(){var e;const t=(0,N.YQ)(),{id:a}=(0,r.g)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.qc),[u]=(0,N.Nt)(),{currentData:h,isFetching:v,error:y}=f.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),w=v&&void 0===h,{data:S={},history:T=[]}=h||{},{currentData:I}=f.X.useGetTabletDescribeQuery(S.TenantId?{tenantId:S.TenantId}:i.hT),_=null!==(e=I||s)&&void 0!==e?e:void 0,C=S.Type;l.useEffect((()=>{t((0,x.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:C}))}),[t,s,a,C]);const{Leader:A,Type:k}=S,E=[];return _&&E.push(`${R("tablet.meta-database")}: ${_}`),k&&E.push(k),!1===A&&E.push(R("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(n.s,{gap:5,direction:"column",className:he(),children:[(0,F.jsx)(o.mg,{children:(0,F.jsx)("title",{children:`${a} \u2014 ${R("tablet.header")} \u2014 ${_||c||j.QM}`})}),(0,F.jsx)(b.B,{items:E}),(0,F.jsxs)(p.r,{loading:w,size:"l",children:[y?(0,F.jsx)(m.o,{error:y}):null,h?(0,F.jsx)(ge,{id:a,tablet:S,history:T}):null]})]})}function ge({id:e,tablet:t,history:a}){const l=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:R("emptyState"),className:he("placeholder"),isEmpty:l,children:[(0,F.jsxs)(n.s,{gap:5,direction:"column",children:[(0,F.jsx)(h.$,{entityName:R("tablet.header"),status:null!==s&&void 0!==s?s:y.m.Grey,id:e}),(0,F.jsx)(z,{tablet:t}),(0,F.jsx)(V,{tablet:t})]}),(0,F.jsx)(xe,{id:e,hiveId:i,history:a})]})}function xe({id:e,hiveId:t,history:a}){var i;const[{activeTab:o,...r},c]=(0,d.useQueryParams)(g.qc),u=!(0,S.X)()||!B(t);let h=pe.parse(o);return u&&null!==(i=ve.find((e=>e.id===h)))&&void 0!==i&&i.isAdvanced&&(h=me.history),l.useEffect((()=>{o!==h&&c({activeTab:h},"replaceIn")}),[o,h,c]),(0,F.jsxs)(n.s,{gap:5,direction:"column",children:[(0,F.jsx)("div",{children:(0,F.jsx)(s.t,{size:"l",items:ve.filter((({isAdvanced:e})=>!e||!u)),activeTab:h,wrapTo:(t,a)=>{const l=(0,g.DM)(e,{...r,activeTab:t.id});return(0,F.jsx)(v.E,{to:l,children:a},t.id)}})}),"history"===h?(0,F.jsx)(ue,{history:a}):null,"channels"!==h||u?null:(0,F.jsx)(fe,{id:e,hiveId:t})]})}function fe({id:e,hiveId:t}){const[a]=(0,N.Nt)(),{currentData:l,error:n,isFetching:s}=f.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===l;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[n?(0,F.jsx)(m.o,{error:n}):null,l?(0,F.jsx)(ne,{data:l}):null]})}},89169:(e,t,a)=>{a.d(t,{E:()=>s});var l=a(59284);const n=(0,a(69220).om)("skeleton");function s({className:e,style:t,qa:a}){return l.createElement("div",{className:n(null,e),style:t,"data-qa":a})}},89954:(e,t,a)=>{a.d(t,{O:()=>I});var l=a(59284),n=a(45720),s=a(16929),i=a(71153),o=a(18677),r=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),m=a(48372);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,m.g4)("ydb-shorty-string",{ru:p,en:v});var g=a(60712);const x=(0,h.cn)("kv-shorty-string");function f({value:e="",limit:t=200,strict:a=!1,displayLength:n=!0,render:s=e=>e,onToggle:i,expandLabel:o=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[d,u]=l.useState(!1),h=(d?r:o)+(n&&!d?b("chars_count",{count:e.length}):""),m=e.length>t+(a?0:h.length),v=d||!m?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[s(v),m?(0,g.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var y=a(41650);const w=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==w[e]}(e)?w[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function I({data:e,hideSeverity:t}){const[a,n]=l.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(s)&&s.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var n,s;const i=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);a=(0,g.jsxs)(l.Fragment,{children:[t?null:(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)(R,{severity:i})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),i&&(0,g.jsx)(r.$,{view:"normal",onClick:()=>n(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(_,{hideSeverity:t,issues:s})]})}function _({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const l=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,l)}),10);return(0,g.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,l)=>(0,g.jsx)(C,{hideSeverity:t,issue:e,expanded:e===a},l)))})}function C({issue:e,hideSeverity:t,level:a=0}){const[n,s]=l.useState(!0),i=j(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=n?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:T("line"),children:[c&&(0,g.jsx)(r.$,{view:"flat-secondary",onClick:()=>s(!n),className:T("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(R,{severity:i}),(0,g.jsx)(A,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:o,level:a+1,expanded:n})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:a,column:l}=t;return(0,y.kf)(l)?`${a}:${l}`:`line ${a}`}(e),l=window.ydbEditor,n=()=>(0,g.jsxs)("span",{className:T("message"),children:[a&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(f,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(s)&&l))return n();return(0,g.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:s,column:null!==i&&void 0!==i?i:0};l.setPosition(e),l.revealPositionInCenterIfOutsideViewport(e),l.focus()},view:"primary",children:n()})}function k(e){const{issues:t,level:a,expanded:l}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(C,{issue:e,level:a,expanded:l},t)))})}const E={S_INFO:n.A,S_WARNING:s.A,S_ERROR:i.A,S_FATAL:o.A},D=(0,h.cn)("yql-issue-severity");function R({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:D({severity:t}),children:[(0,g.jsx)(u.I,{className:D("icon"),data:E[e]}),(0,g.jsx)("span",{className:D("title"),children:t})]})}},90053:(e,t,a)=>{a.d(t,{E:()=>v});var l=a(8873),n=a(84476),s=a(24555),i=a(21334),o=a(77506),r=a(90182),d=a(48372);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:c});var h=a(60712);const m=(0,o.cn)("auto-refresh-control");function v({className:e,onManualRefresh:t}){const a=(0,r.YQ)(),[o,d]=(0,r.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(n.$,{view:"flat-secondary",onClick:()=>{a(i.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(n.$.Icon,{children:(0,h.jsx)(l.A,{})})}),(0,h.jsxs)(s.l,{value:[String(o)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.l.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.l.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.l.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.l.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.l.Option,{value:"300000",children:u("5 min")})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js b/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js deleted file mode 100644 index c0cb046fa4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9394.ca56f408.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9394],{29394:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>a});var o={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},a={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/94102.c7e5199b.chunk.js b/ydb/core/viewer/monitoring/static/js/94102.c7e5199b.chunk.js new file mode 100644 index 0000000000..62a18a4de7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/94102.c7e5199b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[94102],{5231:e=>{function a(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}e.exports=a,a.displayName="rego",a.aliases=[]},94102:(e,a,b)=>{b.d(a,{default:()=>t});var n=b(5231);const t=b.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/94129.b1cdd95d.chunk.js b/ydb/core/viewer/monitoring/static/js/94129.b1cdd95d.chunk.js new file mode 100644 index 0000000000..4fcf6778c6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/94129.b1cdd95d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[94129],{37076:(E,e,T)=>{var I=T(70502);function N(E){E.register(I),function(E){var e=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,T=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,(function(){return e.source}));function I(E){return RegExp(E.replace(/<CLASS-NAME>/g,(function(){return T})),"i")}var N={keyword:e,punctuation:/[()\[\]{};,:.<>]/};E.languages.apex={comment:E.languages.clike.comment,string:E.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:E.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:I(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:N},{pattern:I(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:N},{pattern:I(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:N}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:e,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(E)}E.exports=N,N.displayName="apex",N.aliases=[]},70502:E=>{function e(E){E.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}E.exports=e,e.displayName="sql",e.aliases=[]},94129:(E,e,T)=>{T.d(e,{default:()=>N});var I=T(37076);const N=T.n(I)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9426.8c0cade1.chunk.js b/ydb/core/viewer/monitoring/static/js/9426.8c0cade1.chunk.js new file mode 100644 index 0000000000..8533d80517 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9426.8c0cade1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9426],{9426:(e,t,i)=>{i.d(t,{default:()=>r});var n=i(97423);const r=i.n(n)()},97423:e=>{function t(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}e.exports=t,t.displayName="brightscript",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9433.4cf14d1c.chunk.js b/ydb/core/viewer/monitoring/static/js/9433.4cf14d1c.chunk.js deleted file mode 100644 index 852898ead6..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9433.4cf14d1c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9433],{79433:function(o,e,a){o.exports=function(o){"use strict";function e(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var a=e(o),_={name:"eo",weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_okt_nov_dec".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),ordinal:function(o){return o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"}};return a.default.locale(_,null,!0),_}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9466.0afe6e6e.chunk.js b/ydb/core/viewer/monitoring/static/js/9466.0afe6e6e.chunk.js deleted file mode 100644 index de37acb9c9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9466.0afe6e6e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9466],{99466:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ta",weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/94695.41c32507.chunk.js b/ydb/core/viewer/monitoring/static/js/94695.41c32507.chunk.js new file mode 100644 index 0000000000..e89e22c74f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/94695.41c32507.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[94695],{94695:(s,e,a)=>{"use strict";a.r(e),a.d(e,{YDBSyntaxHighlighter:()=>f});var r=a(59284),l=a(96873),o=a(97091),t=a(96298);const j=(0,a(48372).g4)("ydb-syntax-highlighter",{en:{copy:"Copy"}});const c=(0,a(77506).cn)("ydb-syntax-highlighter");var i=a(22680),n=a(32138),p=a(62422);const g={...n.A,'pre[class*="language-"]':{...n.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...n.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},d={...p.A,'pre[class*="language-"]':{...p.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...p.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}},u={...d,'pre[class*="language-"]':{...d['pre[class*="language-"]'],background:p.A['pre[class*="language-"]'].background,scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...d['code[class*="language-"]'],whiteSpace:"pre"}},m={...g,'pre[class*="language-"]':{...g['pre[class*="language-"]'],background:"var(--g-color-base-misc-light)",scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...g['code[class*="language-"]'],whiteSpace:"pre"}};var b=a(43733);function h(s){s.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${b.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${b.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${b.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}h.displayName="yql",h.aliases=["yql"];var y=a(60712);function f({text:s,language:e,className:n,transparentBackground:p=!0,withCopy:b}){const[f,k]=r.useState(""),v=function(s){const e=(0,i.i)(),a="dark"===e||"dark-hc"===e;return s?a?d:g:a?u:m}(p);r.useEffect((()=>{!async function(){await async function(s){if("yql"===s)t.A.registerLanguage("yql",h);else{const{default:e}=await a(99648)(`./${s}`);t.A.registerLanguage(s,e)}}(e),k((0,o.Ak)())}()}),[e]);return(0,y.jsxs)("div",{className:c(null,n),children:[b?(0,y.jsx)("div",{className:c("sticky-container"),children:(0,y.jsx)(l.b,{view:"flat-secondary",size:"s",className:c("copy"),text:s,children:j("copy")})}):null,(0,y.jsx)(t.A,{language:e,style:v,customStyle:{height:"100%"},children:s},f)]})}},99648:(s,e,a)=>{var r={"./":[84745,84745],"./abap":[67191,67191],"./abap.js":[67191,67191],"./abnf":[36754,36754],"./abnf.js":[36754,36754],"./actionscript":[69712,69712],"./actionscript.js":[69712,69712],"./ada":[87357,87357],"./ada.js":[87357,87357],"./agda":[61250,61250],"./agda.js":[61250,61250],"./al":[68220,68220],"./al.js":[68220,68220],"./antlr4":[73064,73064],"./antlr4.js":[73064,73064],"./apacheconf":[72401,72401],"./apacheconf.js":[72401,72401],"./apex":[94129,94129],"./apex.js":[94129,94129],"./apl":[98958,98958],"./apl.js":[98958,98958],"./applescript":[68990,68990],"./applescript.js":[68990,68990],"./aql":[84027,84027],"./aql.js":[84027,84027],"./arduino":[173,173],"./arduino.js":[173,173],"./arff":[82714,82714],"./arff.js":[82714,82714],"./asciidoc":[68818,68818],"./asciidoc.js":[68818,68818],"./asm6502":[1073,1073],"./asm6502.js":[1073,1073],"./asmatmel":[6197,6197],"./asmatmel.js":[6197,6197],"./aspnet":[55534,55534],"./aspnet.js":[55534,55534],"./autohotkey":[51400,51400],"./autohotkey.js":[51400,51400],"./autoit":[25007,25007],"./autoit.js":[25007,25007],"./avisynth":[80397,80397],"./avisynth.js":[80397,80397],"./avro-idl":[44391,44391],"./avro-idl.js":[44391,44391],"./bash":[80719,80719],"./bash.js":[80719,80719],"./basic":[51255,51255],"./basic.js":[51255,51255],"./batch":[85393,85393],"./batch.js":[85393,85393],"./bbcode":[78112,78112],"./bbcode.js":[78112,78112],"./bicep":[86814,86814],"./bicep.js":[86814,86814],"./birb":[66824,66824],"./birb.js":[66824,66824],"./bison":[11338,11338],"./bison.js":[11338,11338],"./bnf":[80555,80555],"./bnf.js":[80555,80555],"./brainfuck":[3534,3534],"./brainfuck.js":[3534,3534],"./brightscript":[9426,9426],"./brightscript.js":[9426,9426],"./bro":[91880,91880],"./bro.js":[91880,91880],"./bsl":[40388,40388],"./bsl.js":[40388,40388],"./c":[4664,4664],"./c.js":[4664,4664],"./cfscript":[79247,79247],"./cfscript.js":[79247,79247],"./chaiscript":[75523,75523],"./chaiscript.js":[75523,75523],"./cil":[99753,99753],"./cil.js":[99753,99753],"./clike":[31423,31423],"./clike.js":[31423,31423],"./clojure":[21989,21989],"./clojure.js":[21989,21989],"./cmake":[9930,9930],"./cmake.js":[9930,9930],"./cobol":[30226,30226],"./cobol.js":[30226,30226],"./coffeescript":[85622,85622],"./coffeescript.js":[85622,85622],"./concurnas":[30229,30229],"./concurnas.js":[30229,30229],"./coq":[25604,25604],"./coq.js":[25604,25604],"./core":[44846,44846],"./core.js":[44846,44846],"./cpp":[81571,81571],"./cpp.js":[81571,81571],"./crystal":[61747,61747],"./crystal.js":[61747,61747],"./csharp":[46306,46306],"./csharp.js":[46306,46306],"./cshtml":[17830,17830],"./cshtml.js":[17830,17830],"./csp":[23039,23039],"./csp.js":[23039,23039],"./css":[16242,16242],"./css-extras":[93696,93696],"./css-extras.js":[93696,93696],"./css.js":[16242,16242],"./csv":[7773,7773],"./csv.js":[7773,7773],"./cypher":[74394,74394],"./cypher.js":[74394,74394],"./d":[45517,45517],"./d.js":[45517,45517],"./dart":[79204,79204],"./dart.js":[79204,79204],"./dataweave":[62595,62595],"./dataweave.js":[62595,62595],"./dax":[31584,31584],"./dax.js":[31584,31584],"./dhall":[5254,5254],"./dhall.js":[5254,5254],"./diff":[73026,73026],"./diff.js":[73026,73026],"./django":[14382,14382],"./django.js":[14382,14382],"./dns-zone-file":[72188,72188],"./dns-zone-file.js":[72188,72188],"./docker":[6785,6785],"./docker.js":[6785,6785],"./dot":[59786,59786],"./dot.js":[59786,59786],"./ebnf":[55990,55990],"./ebnf.js":[55990,55990],"./editorconfig":[71266,71266],"./editorconfig.js":[71266,71266],"./eiffel":[93890,93890],"./eiffel.js":[93890,93890],"./ejs":[59605,59605],"./ejs.js":[59605,59605],"./elixir":[87138,87138],"./elixir.js":[87138,87138],"./elm":[88269,88269],"./elm.js":[88269,88269],"./erb":[69854,69854],"./erb.js":[69854,69854],"./erlang":[13470,13470],"./erlang.js":[13470,13470],"./etlua":[42912,42912],"./etlua.js":[42912,42912],"./excel-formula":[54861,54861],"./excel-formula.js":[54861,54861],"./factor":[16038,16038],"./factor.js":[16038,16038],"./false":[58666,58666],"./false.js":[58666,58666],"./firestore-security-rules":[66809,66809],"./firestore-security-rules.js":[66809,66809],"./flow":[80017,80017],"./flow.js":[80017,80017],"./fortran":[2251,2251],"./fortran.js":[2251,2251],"./fsharp":[85623,85623],"./fsharp.js":[85623,85623],"./ftl":[93691,93691],"./ftl.js":[93691,93691],"./gap":[35569,35569],"./gap.js":[35569,35569],"./gcode":[74729,74729],"./gcode.js":[74729,74729],"./gdscript":[91545,91545],"./gdscript.js":[91545,91545],"./gedcom":[69500,69500],"./gedcom.js":[69500,69500],"./gherkin":[15931,15931],"./gherkin.js":[15931,15931],"./git":[3061,3061],"./git.js":[3061,3061],"./glsl":[16097,16097],"./glsl.js":[16097,16097],"./gml":[72737,72737],"./gml.js":[72737,72737],"./gn":[2656,2656],"./gn.js":[2656,2656],"./go":[1431,1431],"./go-module":[88432,88432],"./go-module.js":[88432,88432],"./go.js":[1431,1431],"./graphql":[71588,71588],"./graphql.js":[71588,71588],"./groovy":[92551,92551],"./groovy.js":[92551,92551],"./haml":[4243,4243],"./haml.js":[4243,4243],"./handlebars":[22609,22609],"./handlebars.js":[22609,22609],"./haskell":[37677,37677],"./haskell.js":[37677,37677],"./haxe":[29193,29193],"./haxe.js":[29193,29193],"./hcl":[44866,44866],"./hcl.js":[44866,44866],"./hlsl":[24458,24458],"./hlsl.js":[24458,24458],"./hoon":[58457,58457],"./hoon.js":[58457,58457],"./hpkp":[3738,3738],"./hpkp.js":[3738,3738],"./hsts":[82505,82505],"./hsts.js":[82505,82505],"./http":[20053,20053],"./http.js":[20053,20053],"./ichigojam":[32670,32670],"./ichigojam.js":[32670,32670],"./icon":[92868,92868],"./icon.js":[92868,92868],"./icu-message-format":[88810,88810],"./icu-message-format.js":[88810,88810],"./idris":[93672,93672],"./idris.js":[93672,93672],"./iecst":[83005,83005],"./iecst.js":[83005,83005],"./ignore":[37747,37747],"./ignore.js":[37747,37747],"./index":[84745,84745],"./index.js":[84745,84745],"./inform7":[81327,81327],"./inform7.js":[81327,81327],"./ini":[61387,61387],"./ini.js":[61387,61387],"./io":[28125,28125],"./io.js":[28125,28125],"./j":[9511,9511],"./j.js":[9511,9511],"./java":[56421,56421],"./java.js":[56421,56421],"./javadoc":[85595,85595],"./javadoc.js":[85595,85595],"./javadoclike":[52036,52036],"./javadoclike.js":[52036,52036],"./javascript":[29866,29866],"./javascript.js":[29866,29866],"./javastacktrace":[83012,83012],"./javastacktrace.js":[83012,83012],"./jexl":[95264,95264],"./jexl.js":[95264,95264],"./jolie":[56026,56026],"./jolie.js":[56026,56026],"./jq":[62888,62888],"./jq.js":[62888,62888],"./js-extras":[84960,84960],"./js-extras.js":[84960,84960],"./js-templates":[79972,79972],"./js-templates.js":[79972,79972],"./jsdoc":[10242,10242],"./jsdoc.js":[10242,10242],"./json":[82315,82315],"./json.js":[82315,82315],"./json5":[57320,57320],"./json5.js":[57320,57320],"./jsonp":[88987,88987],"./jsonp.js":[88987,88987],"./jsstacktrace":[91087,91087],"./jsstacktrace.js":[91087,91087],"./jsx":[10064,10064],"./jsx.js":[10064,10064],"./julia":[6528,6528],"./julia.js":[6528,6528],"./keepalived":[29043,29043],"./keepalived.js":[29043,29043],"./keyman":[85776,85776],"./keyman.js":[85776,85776],"./kotlin":[85664,85664],"./kotlin.js":[85664,85664],"./kumir":[29461,29461],"./kumir.js":[29461,29461],"./kusto":[4617,4617],"./kusto.js":[4617,4617],"./latex":[30573,30573],"./latex.js":[30573,30573],"./latte":[84307,84307],"./latte.js":[84307,84307],"./less":[17880,17880],"./less.js":[17880,17880],"./lilypond":[23882,23882],"./lilypond.js":[23882,23882],"./liquid":[50045,50045],"./liquid.js":[50045,50045],"./lisp":[81869,81869],"./lisp.js":[81869,81869],"./livescript":[90504,90504],"./livescript.js":[90504,90504],"./llvm":[47472,47472],"./llvm.js":[47472,47472],"./log":[68527,68527],"./log.js":[68527,68527],"./lolcode":[98559,98559],"./lolcode.js":[98559,98559],"./lua":[71515,71515],"./lua.js":[71515,71515],"./magma":[33436,33436],"./magma.js":[33436,33436],"./makefile":[9177,9177],"./makefile.js":[9177,9177],"./markdown":[43028,43028],"./markdown.js":[43028,43028],"./markup":[66593,66593],"./markup-templating":[73863,73863],"./markup-templating.js":[73863,73863],"./markup.js":[66593,66593],"./matlab":[72020,72020],"./matlab.js":[72020,72020],"./maxscript":[42396,42396],"./maxscript.js":[42396,42396],"./mel":[16795,16795],"./mel.js":[16795,16795],"./mermaid":[35958,35958],"./mermaid.js":[35958,35958],"./mizar":[73442,73442],"./mizar.js":[73442,73442],"./mongodb":[5411,5411],"./mongodb.js":[5411,5411],"./monkey":[49788,49788],"./monkey.js":[49788,49788],"./moonscript":[4887,4887],"./moonscript.js":[4887,4887],"./n1ql":[25101,25101],"./n1ql.js":[25101,25101],"./n4js":[57708,57708],"./n4js.js":[57708,57708],"./nand2tetris-hdl":[78710,78710],"./nand2tetris-hdl.js":[78710,78710],"./naniscript":[70190,70190],"./naniscript.js":[70190,70190],"./nasm":[92008,92008],"./nasm.js":[92008,92008],"./neon":[90529,90529],"./neon.js":[90529,90529],"./nevod":[93771,93771],"./nevod.js":[93771,93771],"./nginx":[68377,68377],"./nginx.js":[68377,68377],"./nim":[31177,31177],"./nim.js":[31177,31177],"./nix":[16758,16758],"./nix.js":[16758,16758],"./nsis":[19702,19702],"./nsis.js":[19702,19702],"./objectivec":[34693,34693],"./objectivec.js":[34693,34693],"./ocaml":[89033,89033],"./ocaml.js":[89033,89033],"./opencl":[38718,38718],"./opencl.js":[38718,38718],"./openqasm":[76603,76603],"./openqasm.js":[76603,76603],"./oz":[72788,72788],"./oz.js":[72788,72788],"./parigp":[92816,92816],"./parigp.js":[92816,92816],"./parser":[63782,63782],"./parser.js":[63782,63782],"./pascal":[39705,39705],"./pascal.js":[39705,39705],"./pascaligo":[20600,20600],"./pascaligo.js":[20600,20600],"./pcaxis":[54597,54597],"./pcaxis.js":[54597,54597],"./peoplecode":[42791,42791],"./peoplecode.js":[42791,42791],"./perl":[34156,34156],"./perl.js":[34156,34156],"./php":[30249,30249],"./php-extras":[9493,9493],"./php-extras.js":[9493,9493],"./php.js":[30249,30249],"./phpdoc":[26327,26327],"./phpdoc.js":[26327,26327],"./plsql":[52541,52541],"./plsql.js":[52541,52541],"./powerquery":[90330,90330],"./powerquery.js":[90330,90330],"./powershell":[17500,17500],"./powershell.js":[17500,17500],"./processing":[5530,5530],"./processing.js":[5530,5530],"./prolog":[63025,85406],"./prolog.js":[63025,85406],"./promql":[1146,1146],"./promql.js":[1146,1146],"./properties":[47108,47108],"./properties.js":[47108,47108],"./protobuf":[81014,81014],"./protobuf.js":[81014,81014],"./psl":[96410,96410],"./psl.js":[96410,96410],"./pug":[54781,54781],"./pug.js":[54781,54781],"./puppet":[51159,51159],"./puppet.js":[51159,51159],"./pure":[26411,26411],"./pure.js":[26411,26411],"./purebasic":[57469,57469],"./purebasic.js":[57469,57469],"./purescript":[10132,10132],"./purescript.js":[10132,10132],"./python":[81243,81243],"./python.js":[81243,81243],"./q":[4018,4018],"./q.js":[4018,4018],"./qml":[19791,19791],"./qml.js":[19791,19791],"./qore":[81940,81940],"./qore.js":[81940,81940],"./qsharp":[60464,60464],"./qsharp.js":[60464,60464],"./r":[10815,10815],"./r.js":[10815,10815],"./racket":[90367,90367],"./racket.js":[90367,90367],"./reason":[65633,65633],"./reason.js":[65633,65633],"./regex":[56054,56054],"./regex.js":[56054,56054],"./rego":[94102,94102],"./rego.js":[94102,94102],"./renpy":[42111,42111],"./renpy.js":[42111,42111],"./rest":[34119,34119],"./rest.js":[34119,34119],"./rip":[70858,70858],"./rip.js":[70858,70858],"./roboconf":[54651,54651],"./roboconf.js":[54651,54651],"./robotframework":[10525,10525],"./robotframework.js":[10525,10525],"./ruby":[17981,17981],"./ruby.js":[17981,17981],"./rust":[8215,8215],"./rust.js":[8215,8215],"./sas":[21996,21996],"./sas.js":[21996,21996],"./sass":[71107,71107],"./sass.js":[71107,71107],"./scala":[30499,30499],"./scala.js":[30499,30499],"./scheme":[4554,4554],"./scheme.js":[4554,4554],"./scss":[96017,96017],"./scss.js":[96017,96017],"./shell-session":[56174,56174],"./shell-session.js":[56174,56174],"./smali":[3149,3149],"./smali.js":[3149,3149],"./smalltalk":[86472,86472],"./smalltalk.js":[86472,86472],"./smarty":[87429,87429],"./smarty.js":[87429,87429],"./sml":[37605,37605],"./sml.js":[37605,37605],"./solidity":[54520,54520],"./solidity.js":[54520,54520],"./solution-file":[61741,61741],"./solution-file.js":[61741,61741],"./soy":[47660,47660],"./soy.js":[47660,47660],"./sparql":[57016,57016],"./sparql.js":[57016,57016],"./splunk-spl":[19026,19026],"./splunk-spl.js":[19026,19026],"./sqf":[20535,20535],"./sqf.js":[20535,20535],"./sql":[87233,87233],"./sql.js":[87233,87233],"./squirrel":[65206,65206],"./squirrel.js":[65206,65206],"./stan":[29769,29769],"./stan.js":[29769,29769],"./stylus":[55651,55651],"./stylus.js":[55651,55651],"./supported-languages":[70289,70289],"./supported-languages.js":[70289,70289],"./swift":[46134,46134],"./swift.js":[46134,46134],"./systemd":[9614,9614],"./systemd.js":[9614,9614],"./t4-cs":[71672,71672],"./t4-cs.js":[71672,71672],"./t4-templating":[84587,84587],"./t4-templating.js":[84587,84587],"./t4-vb":[5282,5282],"./t4-vb.js":[5282,5282],"./tap":[83896,83896],"./tap.js":[83896,83896],"./tcl":[27950,27950],"./tcl.js":[27950,27950],"./textile":[42384,42384],"./textile.js":[42384,42384],"./toml":[37385,37385],"./toml.js":[37385,37385],"./tremor":[55528,55528],"./tremor.js":[55528,55528],"./tsx":[30850,30850],"./tsx.js":[30850,30850],"./tt2":[82399,82399],"./tt2.js":[82399,82399],"./turtle":[70695,70695],"./turtle.js":[70695,70695],"./twig":[98268,98268],"./twig.js":[98268,98268],"./typescript":[82066,82066],"./typescript.js":[82066,82066],"./typoscript":[3980,3980],"./typoscript.js":[3980,3980],"./unrealscript":[47153,47153],"./unrealscript.js":[47153,47153],"./uorazor":[56761,56761],"./uorazor.js":[56761,56761],"./uri":[83075,83075],"./uri.js":[83075,83075],"./v":[50875,50875],"./v.js":[50875,50875],"./vala":[42615,42615],"./vala.js":[42615,42615],"./vbnet":[21742,21742],"./vbnet.js":[21742,21742],"./velocity":[48914,48914],"./velocity.js":[48914,48914],"./verilog":[37963,37963],"./verilog.js":[37963,37963],"./vhdl":[80067,80067],"./vhdl.js":[80067,80067],"./vim":[67105,67105],"./vim.js":[67105,67105],"./visual-basic":[94810,94810],"./visual-basic.js":[94810,94810],"./warpscript":[11192,11192],"./warpscript.js":[11192,11192],"./wasm":[99341,99341],"./wasm.js":[99341,99341],"./web-idl":[5393,5393],"./web-idl.js":[5393,5393],"./wiki":[91249,91249],"./wiki.js":[91249,91249],"./wolfram":[19233,19233],"./wolfram.js":[19233,19233],"./wren":[89015,89015],"./wren.js":[89015,89015],"./xeora":[97440,97440],"./xeora.js":[97440,97440],"./xml-doc":[52527,52527],"./xml-doc.js":[52527,52527],"./xojo":[35803,35803],"./xojo.js":[35803,35803],"./xquery":[69997,69997],"./xquery.js":[69997,69997],"./yaml":[84578,84578],"./yaml.js":[84578,84578],"./yang":[35596,35596],"./yang.js":[35596,35596],"./zig":[43979,43979],"./zig.js":[43979,43979]};function l(s){if(!a.o(r,s))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+s+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[s],l=e[0];return a.e(e[1]).then((()=>a(l)))}l.keys=()=>Object.keys(r),l.id=99648,s.exports=l}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/94810.4ac18bf1.chunk.js b/ydb/core/viewer/monitoring/static/js/94810.4ac18bf1.chunk.js new file mode 100644 index 0000000000..141fd05a86 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/94810.4ac18bf1.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[94810],{87875:e=>{function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['\u2018\u2019]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["\u201c\u201d](?:["\u201c\u201d]{2}|[^"\u201c\u201d])*["\u201c\u201d]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}e.exports=t,t.displayName="visualBasic",t.aliases=[]},94810:(e,t,a)=>{a.d(t,{default:()=>n});var r=a(87875);const n=a.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/949.12b4714d.chunk.js b/ydb/core/viewer/monitoring/static/js/949.12b4714d.chunk.js deleted file mode 100644 index 3b457f03d2..0000000000 --- a/ydb/core/viewer/monitoring/static/js/949.12b4714d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[949],{60949:function(e,a,_){e.exports=function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),s={name:"ms",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH.mm",LLLL:"dddd, D MMMM YYYY HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return _.default.locale(s,null,!0),s}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9493.f7e806b7.chunk.js b/ydb/core/viewer/monitoring/static/js/9493.f7e806b7.chunk.js new file mode 100644 index 0000000000..0dd62aff80 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9493.f7e806b7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9493],{9493:(e,a,t)=>{t.d(a,{default:()=>i});var n=t(44208);const i=t.n(n)()},32098:(e,a,t)=>{var n=t(51572);function i(e){e.register(n),function(e){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:i,punctuation:s};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:n,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(a){if(/<\?/.test(a.code)){e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")}))}(e)}e.exports=i,i.displayName="php",i.aliases=[]},44208:(e,a,t)=>{var n=t(32098);function i(e){e.register(n),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}e.exports=i,i.displayName="phpExtras",i.aliases=[]},51572:e=>{function a(e){!function(e){function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,(function(e){if("function"===typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o<l.length&&!(i>=s.length);o++){var d=l[o];if("string"===typeof d||d.content&&"string"===typeof d.content){var p=s[i],b=t.tokenStack[p],c="string"===typeof d?d:d.content,u=a(n,p),g=c.indexOf(u);if(g>-1){++i;var f=c.substring(0,g),y=new e.Token(n,e.tokenize(b,t.grammar),"language-"+n,b),h=c.substring(g+u.length),m=[];f&&m.push.apply(m,r([f])),m.push(y),h&&m.push.apply(m,r([h])),"string"===typeof d?l.splice.apply(l,[o,1].concat(m)):d.content=m}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}(e)}e.exports=a,a.displayName="markupTemplating",a.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/95050.8313ef1e.chunk.js b/ydb/core/viewer/monitoring/static/js/95050.8313ef1e.chunk.js new file mode 100644 index 0000000000..09aae02ae5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/95050.8313ef1e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 95050.8313ef1e.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[95050],{95050:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>s,language:()=>t});var s={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/95050.8313ef1e.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/95050.8313ef1e.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/9507.14872b99.chunk.js b/ydb/core/viewer/monitoring/static/js/9507.14872b99.chunk.js deleted file mode 100644 index ead20667f9..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9507.14872b99.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9507],{19507:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,getLanguage:()=>i});var s=t(43733);const o={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g};function i({ansi:e=!1}={}){return{defaultToken:"text",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:s.RE,typeKeywords:s.to,constants:["true","false","enabled","disabled"],builtinFunctions:s.XB,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=",">=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[a-zA-Z_]\w*/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@tablePath"},{include:"@strings"},{include:"@primaryKey"},[/(@variables)::(@variables)/,"support.function"],[/[;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@?[a-zA-Z_$]\w*/,{cases:{"@keywords":"keyword","@typeKeywords":"keyword.type","@constants":"constant.yql","@builtinFunctions":"constant.other.color","[$@][a-zA-Z_]\\w*":"variable","@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--.*/,"comment"],[/\/\*/,{token:"comment.quote",next:e?"@commentAnsi":"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],commentAnsi:[[/\/\*/,{token:"comment.quote",next:"@comment"}],[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?f?\b/,"number.float"],[/[+-]?(?:\d+|0b[01]+|0o[0-8]+|0x[\da-f]+)(?:u?[lst]?)?\b/,"number"]],strings:[[/'/,{token:"string",next:e?"@stringAnsiSingle":"@stringSingle"}],[/"/,{token:"string",next:e?"@stringAnsiDouble":"@stringDouble"}],[/[@]{2}/,{token:"string",next:"@multilineString"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiSingle:[[/[^']+/,"string"],[/''/,"string"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiDouble:[[/[^"]+/,"string"],[/""/,"string"],[/"[uyj]?/,{token:"string",next:"@pop"}]],multilineString:[[/#py/,{token:"string.python",nextEmbedded:"python",next:"@embedded",goBack:3}],[/\/\/js/,{token:"string.js",nextEmbedded:"javascript",next:"@embedded",goBack:4}],[/[^@]+/,"string"],[/[@]{4}/,"string"],[/[@]{2}[uyj]?/,{token:"string",next:"@pop"}],[/./,"string"]],embedded:[[/([^@]|^)([@]{4})*[@]{2}([@]([^@]|$)|[^@]|$)/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],tablePath:[[/((`)?[\w/]+\2\s*\.\s*)?`/,{token:"string.tablepath",next:"@table"}]],table:[[/[^\\`]+/,"string.tablepath"],[/``/,"string.tablepath"],[/@escapes/,"string.escape.tablepath"],[/\\./,"string.escape.invalid.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]],primaryKey:[[/primary key/i,"keyword"]]}}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9511.aceb118a.chunk.js b/ydb/core/viewer/monitoring/static/js/9511.aceb118a.chunk.js new file mode 100644 index 0000000000..41313af437 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9511.aceb118a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9511],{160:e=>{function a(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}e.exports=a,a.displayName="j",a.aliases=[]},9511:(e,a,d)=>{d.d(a,{default:()=>n});var t=d(160);const n=d.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9523.ac019963.chunk.js b/ydb/core/viewer/monitoring/static/js/9523.ac019963.chunk.js deleted file mode 100644 index dc57fc0a60..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9523.ac019963.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9523],{49523:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"dv",weekdays:"\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8_\u0780\u07aa\u0786\u07aa\u0783\u07aa_\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa".split("_"),months:"\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9_\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9_\u0789\u07a7\u0783\u07a8\u0797\u07aa_\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa_\u0789\u07ad_\u0796\u07ab\u0782\u07b0_\u0796\u07aa\u078d\u07a6\u0787\u07a8_\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa_\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa_\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa".split("_"),weekStart:7,weekdaysShort:"\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8_\u0780\u07aa\u0786\u07aa\u0783\u07aa_\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa".split("_"),monthsShort:"\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9_\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9_\u0789\u07a7\u0783\u07a8\u0797\u07aa_\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa_\u0789\u07ad_\u0796\u07ab\u0782\u07b0_\u0796\u07aa\u078d\u07a6\u0787\u07a8_\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa_\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa_\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa_\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa".split("_"),weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/95264.612bf2f8.chunk.js b/ydb/core/viewer/monitoring/static/js/95264.612bf2f8.chunk.js new file mode 100644 index 0000000000..3ff85f7d3b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/95264.612bf2f8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[95264],{60865:u=>{function e(u){u.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Z\u0430-\u044f\u0410-\u042f_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\w\u0430-\u044f\u0410-\u042f\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Z\u0430-\u044f\u0410-\u042f_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\w\u0430-\u044f\u0410-\u042f\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}u.exports=e,e.displayName="jexl",e.aliases=[]},95264:(u,e,a)=>{a.d(e,{default:()=>b});var n=a(60865);const b=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js b/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js deleted file mode 100644 index c30bfd5c94..0000000000 --- a/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 957.08a1c505.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[957],{53338:(e,s,t)=>{t.r(s),t.d(s,{conf:()=>n,language:()=>i});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},i={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/95819.5ebcb088.chunk.js b/ydb/core/viewer/monitoring/static/js/95819.5ebcb088.chunk.js new file mode 100644 index 0000000000..0005aa9f23 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/95819.5ebcb088.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[95819],{95819:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),s={name:"lv",weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:"da\u017e\u0101m sekund\u0113m",m:"min\u016btes",mm:"%d min\u016bt\u0113m",h:"stundas",hh:"%d stund\u0101m",d:"dienas",dd:"%d dien\u0101m",M:"m\u0113ne\u0161a",MM:"%d m\u0113ne\u0161iem",y:"gada",yy:"%d gadiem"}};return a.default.locale(s,null,!0),s}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js b/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js deleted file mode 100644 index ef25ef9547..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9582.c09a3623.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9582],{49582:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/95924.d3281fc7.chunk.js b/ydb/core/viewer/monitoring/static/js/95924.d3281fc7.chunk.js new file mode 100644 index 0000000000..fe39b63f76 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/95924.d3281fc7.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[95924],{95924:function(e,n,i){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e),_={name:"fy",weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),weekStart:1,weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"}};return i.default.locale(_,null,!0),_}(i(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/96017.b8da505b.chunk.js b/ydb/core/viewer/monitoring/static/js/96017.b8da505b.chunk.js new file mode 100644 index 0000000000..5342645547 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/96017.b8da505b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[96017],{68780:e=>{function s(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=s,s.displayName="scss",s.aliases=[]},96017:(e,s,a)=>{a.d(s,{default:()=>n});var t=a(68780);const n=a.n(t)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/96079.c09d99cc.chunk.js b/ydb/core/viewer/monitoring/static/js/96079.c09d99cc.chunk.js new file mode 100644 index 0000000000..3799ea7ae0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/96079.c09d99cc.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[96079],{13758:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>Ne});var i=a(59284),s=a(23871),n=a(44992),l=a(61750),d=a(10755),o=a(67087),r=a(3685),c=a(44508),u=a(87184),v=a(77506),h=a(31684),p=a(88655),m=a(12888);var g=a(18863),b=a(25196),f=a(60712);const x=(0,v.cn)("ydb-pool-usage"),I=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},j=({data:e={}})=>{const{Threads:t,Name:a="Unknown",Usage:i=0}=e,s=i&&t,n=Math.floor(100*i),l=n>100?100:n;return(0,f.jsxs)("div",{className:x(),children:[(0,f.jsxs)("div",{className:x("info"),children:[(0,f.jsx)("div",{className:x("pool-name"),children:a}),s&&(0,f.jsxs)("div",{className:x("value"),children:[(0,f.jsxs)("div",{className:x("percents"),children:[n<1?"<1":n,"%"]}),(0,f.jsxs)("div",{className:x("threads"),children:["(\xd7",t,")"]})]})]}),(0,f.jsx)("div",{className:x("visual"),children:(0,f.jsx)("div",{className:x("usage-line",{type:I(l)}),style:{width:`${l}%`}})})]})};var k=a(15132),T=a(41826),w=a(48372);const N=JSON.parse('{"database":"Database","uptime":"Uptime","version":"Version","dc":"DC","rack":"Rack","links":"Links","la-interval-1m":"1 min","la-interval-5m":"5 min","la-interval-15m":"15 min","developer-ui":"Developer UI","no-data":"No data","title.common-info":"Common info","title.endpoints":"Endpoints","title.roles":"Roles","title.pools":"Pools","title.load-average":"Load average"}'),y=(0,w.g4)("ydb-node-info",{en:N}),S=(0,v.cn)("full-node-viewer"),D=({node:e,className:t})=>{var a,i,s,n,l;const d=function(e){const t=(0,p.E)();if((0,m.X)()){if(null!==t&&void 0!==t&&t.getNodeRef){const a=t.getNodeRef(e);return a?(0,h.Un)(a):void 0}if(null!==e&&void 0!==e&&e.NodeId){const t=(0,h.Kx)(e.NodeId);return(0,h.Un)(t)}}}(e),o=[];null!==e&&void 0!==e&&null!==(a=e.Tenants)&&void 0!==a&&a.length&&o.push({label:y("database"),value:e.Tenants[0]}),o.push({label:y("version"),value:null===e||void 0===e?void 0:e.Version},{label:y("uptime"),value:(0,f.jsx)(T.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:y("dc"),value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)}),null!==e&&void 0!==e&&e.Rack&&o.push({label:y("rack"),value:null===e||void 0===e?void 0:e.Rack}),d&&o.push({label:y("links"),value:(0,f.jsx)(b.K,{url:d,title:y("developer-ui")})});const r=null===e||void 0===e||null===(i=e.Endpoints)||void 0===i?void 0:i.map((({Name:e,Address:t})=>({label:e,value:t}))),c=null===e||void 0===e||null===(s=e.LoadAveragePercents)||void 0===s?void 0:s.map(((e,t)=>{return{label:(a=t,[y("la-interval-1m"),y("la-interval-5m"),y("la-interval-15m")][a]),value:(0,f.jsx)(k.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})};var a}));return e?(0,f.jsx)("div",{className:S(null,t),children:(0,f.jsxs)(u.s,{wrap:!0,gap:4,children:[(0,f.jsxs)(u.s,{direction:"column",gap:2,children:[(0,f.jsx)(g.z,{title:y("title.common-info"),className:S("section"),info:o}),r&&r.length?(0,f.jsx)(g.z,{title:y("title.endpoints"),className:S("section"),info:r}):null]}),(0,f.jsxs)(u.s,{direction:"column",gap:2,children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:S("section-title"),children:y("title.pools")}),(0,f.jsx)("div",{className:S("section",{pools:!0}),children:null===e||void 0===e||null===(n=e.PoolStats)||void 0===n?void 0:n.map(((e,t)=>(0,f.jsx)(j,{data:e},t)))})]}),(0,f.jsx)(g.z,{title:y("title.load-average"),className:S("section",{average:!0}),info:c})]}),e.Roles&&e.Roles.length?(0,f.jsx)(u.s,{direction:"column",gap:2,children:(0,f.jsxs)("div",{className:S("section"),children:[(0,f.jsx)("div",{className:S("section-title"),children:y("title.roles")}),null===e||void 0===e||null===(l=e.Roles)||void 0===l?void 0:l.map((e=>(0,f.jsx)("div",{className:S("role"),children:e},e)))]})}):null]})}):(0,f.jsx)("div",{className:"error",children:y("no-data")})};var z=a(42655),A=a(44294),P=a(58389),C=a(92459),E=a(67028),V=a(40174),L=a(21334),q=a(78034);const R=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,q.q1)(a)},F=L.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:t})=>{try{const a=await window.api.viewer.getNodeInfo(e,{signal:t});return{data:R(a)}}catch(a){return{error:a}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:t})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var M=a(90182),O=a(99936),U=a(71635),$=a(29819),G=a(905),Q=a.n(G),X=a(52248),H=a(53850),K=a(56839),B=a(27295);const W=(0,H.Mz)((e=>e),(e=>F.endpoints.getNodeStructure.select({nodeId:e}))),_=(0,H.Mz)((e=>e),((e,t)=>W(t)),((e,t)=>t(e).data)),Y=(0,H.Mz)(((e,t)=>Number(t)),((e,t)=>_(e,t)),((e,t)=>{const a=null===t||void 0===t?void 0:t.StoragePools,i={};null===a||void 0===a||a.forEach((t=>{const a=t.Groups;null===a||void 0===a||a.forEach((a=>{var s;const n=null===(s=a.VDisks)||void 0===s?void 0:s.filter((t=>t.NodeId===e)).map(B.WT);null===n||void 0===n||n.forEach((a=>{var s;const n=(0,K.U9)(a.VDiskId),l=null===(s=a.PDisk)||void 0===s?void 0:s.PDiskId;i[String(l)]||(i[String(l)]={vDisks:{},...a.PDisk}),i[String(l)].vDisks[n]={...a,PDiskId:l,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(i).reduce(((e,t)=>{const a=i[t].vDisks,s=Object.keys(a).reduce(((e,t,i)=>(e.push({...a[t],id:t,order:i}),e)),[]);return e[t]={...i[t],vDisks:s},e}),{})}));var J=a(112),Z=a(45720),ee=a(4557),te=a(84476),ae=a(99991),ie=a(84375),se=a(33705),ne=a(45659),le=a(33775),de=a(67808),oe=a(54090),re=a(67375),ce=a(7435),ue=a(76086),ve=a(29971);const he=(0,v.cn)("kv-node-structure");function pe({label:e,value:t,className:a}){return(0,f.jsxs)("span",{className:he("pdisk-title-item",a),children:[e&&(0,f.jsxs)("span",{className:he("pdisk-title-item-label"),children:[e,":"]}),(0,f.jsx)("span",{className:he("pdisk-title-item-value"),children:t})]})}const me=(0,v.cn)("kv-node-structure");var ge=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(ge||{});const be={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function fe({pDiskId:e,selectedVdiskId:t,nodeId:a,withDeveloperUILink:i}){return[{name:ge.slotId,header:be[ge.slotId],width:100,render:({row:s})=>{const n=s.VDiskSlotId;let l=null;return(0,ce.f8)(a)&&(0,ce.f8)(e)&&(0,ce.f8)(n)&&(l=(0,h.Wg)({nodeId:a,pDiskId:e,vDiskSlotId:n})),(0,f.jsxs)("div",{className:me("vdisk-id",{selected:s.id===t}),children:[(0,f.jsx)("span",{children:n}),l&&i?(0,f.jsx)(te.$,{size:"s",className:me("external-button",{hidden:!0}),href:l,target:"_blank",title:(0,ve.A)("vdisk.developer-ui-button-title"),children:(0,f.jsx)(ae.I,{data:J.A})}):null]})},align:ee.Ay.LEFT},{name:ge.VDiskState,header:be[ge.VDiskState],width:70,render:({row:e})=>(0,f.jsx)(le.k,{status:e.VDiskState===re.W.OK?oe.m.Green:oe.m.Red}),sortAccessor:e=>e.VDiskState===re.W.OK?1:0,align:ee.Ay.CENTER},{name:ge.Size,header:be[ge.Size],width:170,render:({row:e})=>(0,f.jsx)(k.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:K.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:ee.Ay.CENTER},{name:ge.Info,header:be[ge.Info],width:70,render:({row:e})=>(0,f.jsx)(ie.A,{placement:["right"],content:(0,f.jsx)(de.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:me("vdisk-details"),children:(0,f.jsx)(te.$,{view:"flat-secondary",className:me("vdisk-details-button",{selected:e.id===t}),children:(0,f.jsx)(ae.I,{data:Z.A,size:18})})}),sortable:!1}]}function xe({id:e,data:t,selectedVdiskId:a,nodeId:s,unfolded:n}){const l=(0,m.X)(),[d,o]=i.useState(null!==n&&void 0!==n&&n),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:h,vDisks:p}=t,g=Number(r),b=Number(c);return(0,f.jsxs)("div",{className:me("pdisk"),id:e,children:[(0,f.jsxs)("div",{className:me("pdisk-header"),children:[(0,f.jsxs)("div",{className:me("pdisk-title-wrapper"),children:[(0,f.jsx)(le.k,{status:u}),(0,f.jsx)(pe,{label:"PDiskID",value:v,className:me("pdisk-title-id")}),(0,f.jsx)(pe,{value:h,className:me("pdisk-title-type")}),(0,f.jsx)(k.O,{value:g-b,capacity:g,formatValues:K.vX,colorizeProgress:!0,className:me("pdisk-title-size")}),(0,f.jsx)(pe,{label:"VDisks",value:p.length})]}),(0,f.jsx)(te.$,{onClick:d?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,f.jsx)(se.I,{direction:d?"top":"bottom"})})]}),d&&(Q()(t)?(0,f.jsx)("div",{children:"No information about PDisk"}):(0,f.jsxs)("div",{children:[(0,f.jsx)(ne.Q,{pDisk:t,nodeId:s,className:me("pdisk-details"),withPDiskPageLink:!0}),(0,f.jsxs)("div",{className:me("vdisks-container"),children:[(0,f.jsx)("div",{className:me("vdisks-header"),children:"VDisks"}),(0,f.jsx)(ee.Ay,{theme:"yandex-cloud",data:p,columns:fe({nodeId:s,pDiskId:v,selectedVdiskId:a,withDeveloperUILink:l}),settings:{...ue.N3,dynamicRender:!1},rowClassName:e=>e.id===a?me("selected-vdisk"):""})]})]}))]})}const Ie=(0,v.cn)("kv-node-structure");function je({type:e,id:t}){return`${e}-${t}`}const ke=function({nodeId:e,className:t}){const a=(0,M.N4)((t=>Y(t,e))),[s]=(0,M.Nt)(),{currentData:n,isFetching:l,error:d}=F.useGetNodeStructureQuery({nodeId:e},{pollingInterval:s}),r=l&&void 0===n,[{pdiskId:u,vdiskId:v}]=(0,o.useQueryParams)({pdiskId:o.StringParam,vdiskId:o.StringParam}),h=i.useRef(null),p=i.useRef(!1);return i.useEffect((()=>{if(!Q()(a)&&!p.current&&h.current&&u){const t=document.getElementById(je({type:"pdisk",id:u}));let i=0;if(v){var e;const t=null===(e=a[u])||void 0===e?void 0:e.vDisks,s=null===t||void 0===t?void 0:t.find((e=>e.id===v)),n=s?document.querySelector(".data-table"):void 0,l=(null===s||void 0===s?void 0:s.order)||0;n&&(i+=n.offsetTop+40*l)}t&&(h.current.scrollTo({behavior:"smooth",top:i||t.offsetTop}),p.current=!0)}}),[a,u,v]),(0,f.jsxs)("div",{className:Ie(),ref:h,children:[d?(0,f.jsx)(c.o,{error:d,className:Ie("error")}):null,(0,f.jsx)("div",{className:t,children:r?(0,f.jsx)(X.a,{size:"m"}):d&&!n?null:(()=>{const t=Object.keys(a);return t.length>0?t.map((t=>(0,f.jsx)(xe,{data:a[t],id:je({type:"pdisk",id:t}),unfolded:u===t,selectedVdiskId:v,nodeId:e},t))):"There is no information about node structure."})()})]})},Te=(0,v.cn)("node"),we="Storage";function Ne(){var e,t;const a=i.useRef(null),s=(0,M.YQ)(),l=(0,d.W5)(C.Ay.node),r=null===l||void 0===l?void 0:l.params.id,u=null===l||void 0===l?void 0:l.params.activeTab,[{database:v}]=(0,o.useQueryParams)($.Gi),h=$.IK.parse(u),[p]=(0,M.Nt)(),m=r?{nodeId:r}:n.hT,{currentData:g,isLoading:b,error:x}=F.useGetNodeInfoQuery(m,{pollingInterval:p}),I=(0,E.Pm)(),j=(0,E.c2)(),k=b||!I,T=null===g||void 0===g||null===(e=g.Roles)||void 0===e?void 0:e.find((e=>e===we)),{activeTab:w,nodeTabs:N}=i.useMemo((()=>{var e;let t=T?$.GX:$.GX.filter((e=>"storage"!==e.id));j&&(t=t.filter((e=>"structure"!==e.id)));return{activeTab:null!==(e=t.find((({id:e})=>e===h)))&&void 0!==e?e:t[0],nodeTabs:t}}),[T,j,h]),y=(null===g||void 0===g||null===(t=g.Tenants)||void 0===t?void 0:t[0])||(null===v||void 0===v?void 0:v.toString());return i.useEffect((()=>{b||s((0,V.g)("node",{tenantName:y,nodeRole:T?"Storage":"Compute",nodeId:r}))}),[s,y,r,b,T]),(0,f.jsxs)("div",{className:Te(null),ref:a,children:[(0,f.jsx)(ye,{node:g,activeTabTitle:w.title}),(0,f.jsx)(Se,{node:g,loading:k}),(0,f.jsx)(De,{node:g}),x?(0,f.jsx)(c.o,{error:x,className:Te("error")}):null,(0,f.jsx)(ze,{node:g,loading:k}),r?(0,f.jsx)(Ae,{nodeId:r,tenantName:y,activeTabId:w.id,tabs:N,parentContainer:a}):null]})}function ye({node:e,activeTabTitle:t}){const a=null!==e&&void 0!==e&&e.Host?e.Host:(0,ve.A)("node");return(0,f.jsx)(l.mg,{titleTemplate:`%s \u2014 ${a} \u2014 YDB Monitoring`,defaultTitle:`${a} \u2014 YDB Monitoring`,children:(0,f.jsx)("title",{children:t})})}function Se({node:e,loading:t}){const a=null!==e&&void 0!==e&&e.Host?`${(0,ve.A)("fqdn")}: ${e.Host}`:void 0,i=null!==e&&void 0!==e&&e.DC?`${(0,ve.A)("dc")}: ${e.DC}`:void 0;return(0,f.jsx)(P.B,{loading:t,items:[a,i],className:Te("meta")})}function De({node:e}){return(0,f.jsx)(r.$,{entityName:(0,ve.A)("node"),status:null===e||void 0===e?void 0:e.SystemState,id:null===e||void 0===e?void 0:e.NodeId,className:Te("title")})}function ze({node:e,loading:t}){return t?(0,f.jsx)(z.y,{className:Te("info"),rows:10}):(0,f.jsx)(D,{node:e,className:Te("info")})}function Ae({nodeId:e,tenantName:t,activeTabId:a,tabs:n,parentContainer:l}){return(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)("div",{className:Te("tabs"),children:(0,f.jsx)(s.t,{size:"l",items:n,activeTab:a,wrapTo:({id:a},i)=>{const s=(0,$.vI)(e,{database:t},a);return(0,f.jsx)(A.E,{to:s,children:i},a)}})}),(()=>{switch(a){case"storage":return(0,f.jsx)(O.z,{nodeId:e,parentRef:l,viewContext:{nodeId:e}});case"tablets":return(0,f.jsx)(U.C,{nodeId:e,database:t});case"structure":return(0,f.jsx)(ke,{nodeId:e});default:return!1}})()]})}},21545:(e,t,a)=>{a.d(t,{X:()=>s});var i=a(78034);const s=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t,followerId:a},{signal:s})=>{try{const[n,l,d]=await Promise.all([window.api.viewer.getTablet({id:e,database:t,followerId:a},{signal:s}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:s}),window.api.viewer.getNodesList({signal:s})]),o=(0,i.nN)(d),r=Object.keys(l).reduce(((e,t)=>{var a;const i=null===(a=l[t])||void 0===a?void 0:a.TabletStateInfo;return null===i||void 0===i||i.forEach((a=>{var i;const{ChangeTime:s,Generation:n,State:l,Leader:d,FollowerId:r}=a,c=o&&t?null===(i=o.get(Number(t)))||void 0===i?void 0:i.Host:void 0;e.push({nodeId:t,generation:n,changeTime:s,state:l,leader:d,followerId:r,fqdn:c})})),e}),[]),{TabletStateInfo:c=[]}=n,u=void 0===a?c.find((e=>e.Leader)):c.find((e=>{var t;return(null===(t=e.FollowerId)||void 0===t?void 0:t.toString())===a})),{TabletId:v}=u||{};return{data:{id:v,data:u,history:r}}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:i,PathId:s}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${i}:${s}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(i){return{error:i}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},27775:(e,t,a)=>{a.d(t,{i:()=>l});var i=a(47665),s=a(58267),n=a(60712);function l({state:e}){return(0,n.jsx)(i.J,{theme:(0,s._)(e),children:e})}},28539:(e,t,a)=>{a.d(t,{T:()=>i.T});var i=a(53755)},45659:(e,t,a)=>{a.d(t,{Q:()=>g});var i=a(87184),s=a(92459),n=a(7435),l=a(46549),d=a(56839),o=a(31684),r=a(12888),c=a(18863),u=a(25196),v=a(15132),h=a(33775),p=a(50672),m=a(60712);function g({pDisk:e,nodeId:t,withPDiskPageLink:a,className:g}){const b=(0,r.X)(),[f,x,I,j]=function({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:r}){const{PDiskId:c,Path:g,Guid:b,Category:f,Type:x,Device:I,Realtime:j,State:k,SerialNumber:T,TotalSize:w,AllocatedSize:N,StatusV2:y,NumActiveSlots:S,ExpectedSlotCount:D,LogUsedSize:z,LogTotalSize:A,SystemSize:P,SharedWithOs:C}=e||{},E=[];(0,n.f8)(f)&&E.push({label:(0,p.D)("type"),value:x}),(0,n.f8)(g)&&E.push({label:(0,p.D)("path"),value:g}),(0,n.f8)(b)&&E.push({label:(0,p.D)("guid"),value:b}),T&&E.push({label:(0,p.D)("serial-number"),value:T}),C&&E.push({label:(0,p.D)("shared-with-os"),value:(0,p.D)("yes")});const V=[];(0,n.f8)(y)&&V.push({label:(0,p.D)("drive-status"),value:y}),(0,n.f8)(k)&&V.push({label:(0,p.D)("state"),value:k}),(0,n.f8)(I)&&V.push({label:(0,p.D)("device"),value:(0,m.jsx)(h.k,{status:I})}),(0,n.f8)(j)&&V.push({label:(0,p.D)("realtime"),value:(0,m.jsx)(h.k,{status:j})});const L=[];L.push({label:(0,p.D)("space"),value:(0,m.jsx)(v.O,{value:N,capacity:w,formatValues:d.vX,colorizeProgress:!0})}),(0,n.f8)(S)&&(0,n.f8)(D)&&L.push({label:(0,p.D)("slots"),value:(0,m.jsx)(v.O,{value:S,capacity:D})}),(0,n.f8)(z)&&(0,n.f8)(A)&&L.push({label:(0,p.D)("log-size"),value:(0,m.jsx)(v.O,{value:z,capacity:A,formatValues:d.vX})}),(0,n.f8)(P)&&L.push({label:(0,p.D)("system-size"),value:(0,l.z3)({value:P})});const q=[];if((a||r)&&(0,n.f8)(c)&&(0,n.f8)(t)){const e=(0,s.Ck)(c,t),n=(0,o.ar)({nodeId:t,pDiskId:c});q.push({label:(0,p.D)("links"),value:(0,m.jsxs)(i.s,{wrap:"wrap",gap:2,children:[a&&(0,m.jsx)(u.K,{title:(0,p.D)("pdisk-page"),url:e,external:!1}),r&&(0,m.jsx)(u.K,{title:(0,p.D)("developer-ui"),url:n})]})})}return[E,V,L,q]}({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:b});return(0,m.jsxs)(i.s,{className:g,gap:2,direction:"row",wrap:!0,children:[(0,m.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,m.jsx)(c.z,{info:f,renderEmptyState:()=>null}),(0,m.jsx)(c.z,{info:I,renderEmptyState:()=>null})]}),(0,m.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,m.jsx)(c.z,{info:x,renderEmptyState:()=>null}),(0,m.jsx)(c.z,{info:j,renderEmptyState:()=>null})]})]})}},52248:(e,t,a)=>{a.d(t,{a:()=>i.a});var i=a(47334)},71635:(e,t,a)=>{a.d(t,{C:()=>b});var i=a(44992),s=a(53850),n=a(62060),l=a.n(n),d=a(21334),o=a(24600);const r=d.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),c=(0,s.Mz)((e=>e),(e=>r.endpoints.getTabletsInfo.select(e)),{argsMemoize:s.i5,argsMemoizeOptions:{equalityCheck:l()}}),u=(0,s.Mz)((e=>e),((e,t)=>c(t)),((e,t)=>t(e).data)),v=(0,s.Mz)(((e,t)=>u(e,t)),(e=>(0,o.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const i=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:i}})):e.TabletStateInfo:[]));var h=a(7435),p=a(90182),m=a(88616),g=a(60712);function b({nodeId:e,path:t,database:a}){const[s]=(0,p.Nt)();let n={};(0,h.f8)(e)?n={nodeId:e,database:a}:t&&(n={path:t,database:a});const{isLoading:l,error:d}=r.useGetTabletsInfoQuery(0===Object.keys(n).length?i.hT:n,{pollingInterval:s}),o=(0,p.N4)((e=>v(e,n)));return(0,g.jsx)(m.Q,{tablets:o,database:a,loading:l,error:d})}},76938:(e,t,a)=>{a.d(t,{A:()=>s});var i=a(59284);const s=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},88616:(e,t,a)=>{a.d(t,{Q:()=>z});var i=a(59284),s=a(76938),n=a(98089),l=a(99991),d=a(67087),o=a(22983),r=a(28539),c=a(10508),u=a(44508),v=a(44294),h=a(17594),p=a(41775),m=a(89073),g=a(80420),b=a(27775),f=a(41826),x=a(21545),I=a(6354),j=a(76086),k=a(12888),T=a(29819),w=a(48372);const N=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.search-placeholder":"Tablet ID","controls.entities-count-label":"Tablets"}'),y=(0,w.g4)("ydb-tablets",{en:N});var S=a(60712);function D(e){const t=e.State===I.r.Stopped,a=(0,k.X)(),[i]=x.X.useKillTabletMutation(),n=e.TabletId;return n?(0,S.jsx)(o.B,{buttonView:"outlined",buttonTitle:y("dialog.kill-header"),dialogHeader:y("dialog.kill-header"),dialogText:y("dialog.kill-text"),onConfirmAction:()=>i({id:n}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:y(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,S.jsx)(l.I,{data:s.A})}):null}function z({database:e,tablets:t,loading:a,error:s}){const[{tabletsSearch:l},o]=(0,d.useQueryParams)({tabletsSearch:d.StringParam}),x=i.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return y("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,S.jsxs)("span",{children:[e.Type," ",t?(0,S.jsx)(n.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return y("Tablet")},render:({row:t})=>t.TabletId?(0,S.jsx)(g.$,{tabletId:t.TabletId,database:e,followerId:t.FollowerId||void 0}):j.Pd},{name:"State",get header(){return y("State")},render:({row:e})=>(0,S.jsx)(b.i,{state:e.State})},{name:"NodeId",get header(){return y("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,T.vI)(e.NodeId);return(0,S.jsx)(v.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return y("Node FQDN")},render:({row:e})=>e.fqdn?(0,S.jsx)(c.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,S.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return y("Generation")},align:"right"},{name:"Uptime",get header(){return y("Uptime")},render:({row:e})=>(0,S.jsx)(f.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,S.jsx)(D,{...e})}]}({database:e})),[e]),I=i.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==l&&void 0!==l?l:"")))),[t,l]);return(0,S.jsxs)(m.L,{children:[(0,S.jsxs)(m.L.Controls,{children:[(0,S.jsx)(p.v,{placeholder:y("controls.search-placeholder"),onChange:e=>{o({tabletsSearch:e||void 0},"replaceIn")},value:null!==l&&void 0!==l?l:"",width:238}),(0,S.jsx)(r.T,{label:y("controls.entities-count-label"),loading:a,total:t.length,current:I.length})]}),s?(0,S.jsx)(u.o,{error:s}):null,(0,S.jsx)(m.L.Table,{loading:a,children:(0,S.jsx)(h.l,{columns:x,data:I,settings:j.N3,emptyDataMessage:y("noTabletsData")})})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9614.71b68927.chunk.js b/ydb/core/viewer/monitoring/static/js/9614.71b68927.chunk.js new file mode 100644 index 0000000000..87704e4d4c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9614.71b68927.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9614],{9614:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(97437);const s=n.n(a)()},97437:e=>{function t(e){!function(e){var t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(e)}e.exports=t,t.displayName="systemd",t.aliases=[]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/96410.55c52134.chunk.js b/ydb/core/viewer/monitoring/static/js/96410.55c52134.chunk.js new file mode 100644 index 0000000000..cfc731c2af --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/96410.55c52134.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[96410],{25001:e=>{function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}e.exports=t,t.displayName="psl",t.aliases=[]},96410:(e,t,_)=>{_.d(t,{default:()=>s});var n=_(25001);const s=_.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/96554.bff09e47.chunk.js b/ydb/core/viewer/monitoring/static/js/96554.bff09e47.chunk.js new file mode 100644 index 0000000000..20a337a461 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/96554.bff09e47.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 96554.bff09e47.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[96554],{96554:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>u,language:()=>b});var i,r,o=n(80781),a=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m=(e,t,n,i)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of s(t))p.call(e,r)||r===n||a(e,r,{get:()=>t[r],enumerable:!(i=d(t,r))||i.enumerable});return e},l={};m(l,i=o,"default"),r&&m(r,i,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${c.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:l.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},b={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/96554.bff09e47.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/96554.bff09e47.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/9697.bed5988b.chunk.js b/ydb/core/viewer/monitoring/static/js/9697.bed5988b.chunk.js deleted file mode 100644 index bec49fb769..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9697.bed5988b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9697],{89697:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-ma",weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekStart:6,weekdaysShort:"\u0627\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"\u0645":"\u0635"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9707.72e68790.chunk.js b/ydb/core/viewer/monitoring/static/js/9707.72e68790.chunk.js deleted file mode 100644 index 789ded2dfc..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9707.72e68790.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9707],{79707:function(a,e,_){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=e(a),t="sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),s="sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),n=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,i=function(a,e){return n.test(e)?t[a.month()]:s[a.month()]};i.s=s,i.f=t;var o={name:"hr",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),months:i,monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},relativeTime:{future:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(a){return a+"."}};return _.default.locale(o,null,!0),o}(_(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9725.a94823a0.chunk.js b/ydb/core/viewer/monitoring/static/js/9725.a94823a0.chunk.js deleted file mode 100644 index e7753223d8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9725.a94823a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9725],{49725:function(e,_,s){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=_(e),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"}};return s.default.locale(o,null,!0),o}(s(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js b/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js deleted file mode 100644 index d9ad263493..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9728.7cc957e4.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9728],{19728:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>p,language:()=>w});var n,o,r=i(80781),l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of d(t))s.call(e,o)||o===i||l(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},c={};u(c,n=r,"default"),o&&u(o,n,"default");var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},w={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/97420.08729928.chunk.js b/ydb/core/viewer/monitoring/static/js/97420.08729928.chunk.js new file mode 100644 index 0000000000..e4fa613791 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/97420.08729928.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[97420],{97420:function(a,e,l){a.exports=function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var l=e(a),_={name:"bm",weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),weekStart:1,weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"}};return l.default.locale(_,null,!0),_}(l(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/97440.3db00b72.chunk.js b/ydb/core/viewer/monitoring/static/js/97440.3db00b72.chunk.js new file mode 100644 index 0000000000..b425004777 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/97440.3db00b72.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[97440],{97440:(n,t,a)=>{a.d(t,{default:()=>i});var e=a(99231);const i=a.n(e)()},99231:n=>{function t(n){!function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora}(n)}n.exports=t,t.displayName="xeora",t.aliases=["xeoracube"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js b/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js deleted file mode 100644 index 092dbf8969..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9748.e711e962.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9748],{59748:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,language:()=>r});var o={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},r={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/97638.a9af06da.chunk.js b/ydb/core/viewer/monitoring/static/js/97638.a9af06da.chunk.js new file mode 100644 index 0000000000..064b75357a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/97638.a9af06da.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 97638.a9af06da.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[97638],{97638:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/97638.a9af06da.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/97638.a9af06da.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/97748.5df46a4a.chunk.js b/ydb/core/viewer/monitoring/static/js/97748.5df46a4a.chunk.js new file mode 100644 index 0000000000..dd2151b491 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/97748.5df46a4a.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[97748],{97748:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"be",weekdays:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),months:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),weekStart:1,weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"}};return t.default.locale(n,null,!0),n}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js b/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js deleted file mode 100644 index 5262728cef..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9778.52ad76ce.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9778],{49778:(E,T,R)=>{R.r(T),R.d(T,{conf:()=>A,language:()=>I});var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9796.23c68f38.chunk.js b/ydb/core/viewer/monitoring/static/js/9796.23c68f38.chunk.js deleted file mode 100644 index a4ed1b5bc5..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9796.23c68f38.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9796],{3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),r=s(24600),n=s(7435),o=s(16439),i=s(90182);const l=(0,o.H)(["success","warning","danger"],1,2),d={"block-4-2":(0,o.H)(["success","warning","danger"],1,2),"mirror-3-dc":(0,o.H)(["success","warning","danger"],1,3)},u=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in d?d[e.ErasureSpecies]:l)(e.Degraded)};function c(e,t){var s;let a=!0;return(0,n.f8)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(a&&=String(e.VDiskId.GroupID)===t.groupId),(0,n.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,n.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,n.f8)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(a&&=String(e.VDiskSlotId)===t.vDiskSlotId),a}const m=10;function p(e){return(0,n.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,n.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,n.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,n.f8)(null===e||void 0===e?void 0:e.groupId)||(0,n.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[],t){const s=(0,i.N4)(r.K);return a.useMemo((()=>{const a=[];return function(e){return"mirror-3-dc"===e||"mirror-3of4"===e}(t)?(e.forEach(((t,r)=>{var n,o,i;(null===s||void 0===s||null===(n=s.get(Number(null===t||void 0===t?void 0:t.NodeId)))||void 0===n?void 0:n.DC)!==(null===s||void 0===s||null===(o=s.get(Number(null===(i=e[r+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&a.push(r)})),a):a}),[t,e,s])}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>n,iZ:()=>u,qs:()=>d});var a=s(94025),r=s(67375);const n={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(n).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=n.Grey,l=o[i],d={[r.W.OK]:n.Green,[r.W.Initial]:n.Yellow,[r.W.SyncGuidRecovery]:n.Yellow,[r.W.LocalRecoveryError]:n.Red,[r.W.SyncGuidRecoveryError]:n.Red,[r.W.PDiskError]:n.Red},u={[a.t.Initial]:n.Grey,[a.t.Normal]:n.Green,[a.t.InitialFormatRead]:n.Yellow,[a.t.InitialSysLogRead]:n.Yellow,[a.t.InitialCommonLogRead]:n.Yellow,[a.t.InitialFormatReadError]:n.Red,[a.t.InitialSysLogReadError]:n.Red,[a.t.InitialSysLogParseError]:n.Red,[a.t.InitialCommonLogReadError]:n.Red,[a.t.InitialCommonLogParseError]:n.Red,[a.t.CommonLoggerInitError]:n.Red,[a.t.OpenFileError]:n.Red,[a.t.ChunkQuotaError]:n.Red,[a.t.DeviceIoError]:n.Red}},7187:(e,t,s)=>{s.d(t,{H7:()=>c,NJ:()=>i,SW:()=>d,XY:()=>u,gh:()=>p,r$:()=>m});var a=s(7435),r=s(54090),n=s(16439),o=s(5707);function i(e){return"VDiskId"in e}const l=(0,n.H)([r.m.Green,r.m.Yellow,r.m.Red]),d=e=>(0,a.f8)(e)?c(l(e)):0;function u(e){return void 0===e?o.Yh:o.A$[e]||o.Yh}function c(e){return e?o.aW[e]:0}function m(e,t){if((0,a.f8)(e)&&(0,a.f8)(t))return`${e}-${t}`}function p(e,t,s){return[e,t,s].join("-")}},8809:(e,t,s)=>{s.d(t,{y:()=>E});var a=s(77506),r=s(88226),n=s(13096),o=s(44294),i=s(59284),l=s(87184),d=s(47665),u=s(92459),c=s(24600),m=s(54090),p=s(7435),h=s(76086),g=s(31684),v=s(7187),f=s(90182),S=s(12888),k=s(41650),y=s(60073),N=s(25196),b=s(96927),x=s(29819),w=s(56839);function D(e){let t;const s=(0,v.NJ)(e)?e.VDiskSlotId:e.VSlotId;if((0,p.f8)(s)&&(0,p.f8)(e.PDiskId)&&(0,p.f8)(e.NodeId))t=(0,u.yX)(s,e.PDiskId,e.NodeId);else if((0,p.f8)(e.NodeId)&&(0,v.NJ)(e)){var a;t=(0,x.vI)(e.NodeId,{pdiskId:null===(a=e.PDiskId)||void 0===a?void 0:a.toString(),vdiskId:(0,w.U9)(e.VDiskId)},"structure")}return t}var I=s(39110),C=s(60712);const j=(0,a.cn)("vdisk-storage-popup"),P=({data:e})=>{const t=(0,v.NJ)(e),s=(0,S.X)(),a=i.useMemo((()=>t?((e,t)=>{var s,a,r,n;const{NodeId:o,PDiskId:i,VDiskSlotId:d,StringifiedId:c,VDiskState:h,SatisfactionRank:v,DiskSpace:f,FrontQueues:S,Replicated:y,UnsyncedVDisks:b,AllocatedSize:x,ReadThroughput:w,WriteThroughput:D,StoragePoolName:j}=e,P=[{label:"VDisk",value:c},{label:"State",value:null!==h&&void 0!==h?h:"not available"}];var A,E;if(j&&P.push({label:"StoragePool",value:j}),v&&(null===(s=v.FreshRank)||void 0===s?void 0:s.Flag)!==m.m.Green&&P.push({label:"Fresh",value:null===(A=v.FreshRank)||void 0===A?void 0:A.Flag}),v&&(null===(a=v.LevelRank)||void 0===a?void 0:a.Flag)!==m.m.Green&&P.push({label:"Level",value:null===(E=v.LevelRank)||void 0===E?void 0:E.Flag}),v&&null!==(r=v.FreshRank)&&void 0!==r&&r.RankPercent&&P.push({label:"Fresh",value:v.FreshRank.RankPercent}),v&&null!==(n=v.LevelRank)&&void 0!==n&&n.RankPercent&&P.push({label:"Level",value:v.LevelRank.RankPercent}),f&&f!==m.m.Green&&P.push({label:"Space",value:f}),S&&S!==m.m.Green&&P.push({label:"FrontQueues",value:S}),!1===y&&P.push({label:"Replicated",value:"NO"}),b&&P.push({label:"UnsyncVDisks",value:b}),Number(x)&&P.push({label:"Allocated",value:(0,k.wb)(x)}),Number(w)&&P.push({label:"Read",value:(0,k.O4)(w)}),Number(D)&&P.push({label:"Write",value:(0,k.O4)(D)}),t&&(0,p.f8)(o)&&(0,p.f8)(i)&&(0,p.f8)(d)){const e=(0,g.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:d}),t=(0,u.yX)(d,i,o);P.push({label:"Links",value:(0,C.jsxs)(l.s,{wrap:"wrap",gap:2,children:[(0,C.jsx)(N.K,{title:(0,I.r)("vdisk-page"),url:t,external:!1},t),(0,C.jsx)(N.K,{title:(0,I.r)("developer-ui"),url:e})]})})}return P})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:r,StoragePoolName:n}=e,o=[{label:"State",value:"not available"}];if(n&&o.push({label:"StoragePool",value:n}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:h.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:h.Pd},{label:"VSlotId",value:null!==r&&void 0!==r?r:h.Pd}),t&&(0,p.f8)(s)&&(0,p.f8)(a)&&(0,p.f8)(r)){const e=(0,g.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:r});o.push({label:"Links",value:(0,C.jsx)(N.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),r=(0,f.N4)(c.K),n=(0,p.f8)(e.NodeId)?null===r||void 0===r?void 0:r.get(e.NodeId):void 0,x=i.useMemo((()=>t&&e.PDisk&&(0,b.f)(e.PDisk,n,s)),[e,n,t,s]),w=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)w.push({label:"VDisk",value:(0,C.jsx)(o.E,{to:D(e),children:e.StringifiedId})})}return(0,C.jsxs)("div",{className:j(),children:[e.DonorMode&&(0,C.jsx)(d.J,{className:j("donor-label"),children:"Donor"}),(0,C.jsx)(y.z_,{title:"VDisk",info:a,size:"s"}),x&&(0,C.jsx)(y.z_,{title:"PDisk",info:x,size:"s"}),w.length>0&&(0,C.jsx)(y.z_,{title:"Donors",info:w,size:"s"})]})},A=(0,a.cn)("ydb-vdisk-component"),E=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d,delayClose:u,delayOpen:c})=>{const m=D(e);return(0,C.jsx)(n.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,C.jsx)(P,{data:e}),offset:[0,5],delayClose:u,delayOpen:c,children:(0,C.jsx)("div",{className:A(),children:(0,C.jsx)(o.E,{to:m,className:A("content"),children:(0,C.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),r=s(16029),n=s(11905);const o=a.F.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,{signal:t})=>{try{const s=await window.api.viewer.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,n.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,r.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},10360:(e,t,s)=>{s.d(t,{hu:()=>m,YX:()=>k,LO:()=>p,UW:()=>d,H6:()=>h,qK:()=>i,SE:()=>f,zY:()=>l,GP:()=>N,Ai:()=>c,i4:()=>b,kY:()=>S});var a=s(370),r=s(48372);const n=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),o=(0,r.g4)("ydb-storage-groups-columns",{en:n}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded",State:"State"},u=["DiskSpaceUsage","Latency","AllocationUnits","VDisksPDisks"];function c(e){return u.includes(e)}const m=["GroupId","PoolName","Erasure","Used","VDisks"],p=["GroupId"],h={get PoolName(){return o("pool-name")},get MediaType(){return o("type")},get Erasure(){return o("erasure")},get GroupId(){return o("group-id")},get Used(){return o("used")},get Limit(){return o("limit")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get Latency(){return o("latency")},get AllocationUnits(){return o("allocation-units")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("missing-disks")},get State(){return o("state")}},g={get GroupId(){return o("group-id")},get Erasure(){return o("erasure")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get PoolName(){return o("pool-name")},get Kind(){return o("type")},get Encryption(){return o("encryption")},get MediaType(){return o("type")},get MissingDisks(){return o("missing-disks")},get State(){return o("state")},get Latency(){return o("latency")}},v=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],f=v.map((e=>({value:e,content:g[e]}))),S=a.z.custom((e=>v.includes(e))).catch(void 0),k={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"],State:["State"]},y={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded",State:"State"};function N(e){return y[e]}function b(e){return Boolean(N(e))}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var a=s(67884),r=s(96873),n=s(54090),o=s(77506),i=s(82015),l=s(33775),d=s(60712);const u=(0,o.cn)("entity-status");function c({status:e=n.m.Grey,name:t="",label:s,path:o,iconPath:c,size:m="s",mode:p="color",showStatus:h=!0,externalLink:g=!1,withLeftTrim:v=!1,hasClipboardButton:f,clipboardButtonAlwaysVisible:S=!1,className:k}){const y=()=>h?(0,d.jsx)(l.k,{className:u("icon"),status:e,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:u(null,k),children:[c?(N=c,(0,d.jsx)(a.N,{target:"_blank",href:N,children:y()})):y(),s&&(0,d.jsx)("span",{title:s,className:u("label",{size:m,state:e.toLowerCase()}),children:s}),(o||t)&&(0,d.jsxs)("div",{className:u("wrapper",{"with-button":f}),children:[(0,d.jsx)("span",{className:u("link",{"with-left-trim":v}),title:t,children:o?g?(0,d.jsx)(a.N,{className:u("name"),href:o,children:t}):(0,d.jsx)(i.E,{className:u("name"),to:o,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),f&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:S}),children:(0,d.jsx)(r.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var N}},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),r=s(88226),n=s(13096),o=s(44294),i=s(96927),l=s(8809),d=s(92459),u=s(7435),c=s(77506),m=s(3218),p=s(60712);const h=(0,c.cn)("pdisk-storage"),g=({data:e={},vDisks:t,showPopup:s,onShowPopup:c,onHidePopup:g,className:v,progressBarClassName:f,viewContext:S})=>{const{NodeId:k,PDiskId:y}=e,N=(0,u.f8)(k)&&(0,u.f8)(y),b=a.useRef(null);let x;return N&&(x=(0,d.Ck)(y,k)),(0,p.jsxs)("div",{className:h(null,v),ref:b,children:[null!==t&&void 0!==t&&t.length?(0,p.jsx)("div",{className:h("vdisks"),children:t.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.y,{data:e,inactive:!(0,m.OH)(e,S),compact:!0,delayClose:200,delayOpen:200})},e.StringifiedId)))}):null,(0,p.jsx)(n.P,{showPopup:s,offset:[0,5],anchorRef:b,onShowPopup:c,onHidePopup:g,popupContent:(0,p.jsx)(i.O,{data:e}),delayClose:200,children:(0,p.jsxs)(o.E,{to:x,className:h("content"),children:[(0,p.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},11905:(e,t,s)=>{s.d(t,{Rv:()=>y,rz:()=>S,Qi:()=>k});var a=s(94025),r=s(67375),n=s(7187),o=s(27295),i=s(78034);var l=s(73891),d=s(56839),u=s(51930),c=s(64036),m=s(78461);function p(e={}){var t,s,a,r;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=function(e={}){var t,s,a;const{Whiteboard:r,...i}=e,l={...r,...i,PDiskId:null===r||void 0===r?void 0:r.PDiskId},d=i.PDiskId||(0,n.r$)(l.NodeId,l.PDiskId),{AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g}=(0,o.hK)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(t=null===(s=i.Type)||void 0===s?void 0:s.toUpperCase())&&void 0!==t?t:(0,m.Y)(null===r||void 0===r?void 0:r.Category),f=(0,u.d)({State:null===r||void 0===r?void 0:r.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===r||void 0===r?void 0:r.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}),f=null!==(t=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==t?t:null===i||void 0===i?void 0:i.PDiskId,S=null!==(s=h.VDiskId)&&void 0!==s?s:(0,d.U9)(i.VDiskId),k=(0,c.b)(g),y=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),N=null===(r=h.Donors)||void 0===r?void 0:r.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...y,PDisk:v,Donors:N,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,n.XY)(Math.max(...s.map((e=>(0,n.H7)(e.DiskSpace)))))}const g=(e,t)=>{var s;const a=(0,o.WT)(e);return{...a,StoragePoolName:t,Donors:null===a||void 0===a||null===(s=a.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},v=(e,t)=>{var s;let n,i=0,l=0,d=0,u=0,c=0;const{Name:m,MediaType:p}=t;if(e.VDisks)for(const h of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:m,PDisk:p,ReadThroughput:g,WriteThroughput:v}=h,{Type:f,State:S,AvailableSize:k}=(0,o.or)(p);!1!==e&&S===a.t.Normal&&t===r.W.OK||(i+=1);const y=Number(null!==s&&void 0!==s?s:k)||0,N=Number(m)||0;l+=N,d+=y+N,u+=Number(g)||0,c+=Number(v)||0,n=!f||f!==n&&n?"Mixed":f}const v=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>g(e,m))),f=d?((e,t=1)=>{const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t})({Used:l,Limit:d},5):void 0,S=h(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:v,Usage:f,Read:u,Write:c,PoolName:m,Used:l,Limit:d,Degraded:i,MediaType:p||n||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:r=0,Write:n=0,Used:o=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,v=t.map((e=>g(e,s))),f=100*Number(a),S=h(e);return{...e,PoolName:s,GroupId:c,MediaType:u||d,VDisks:v,Usage:f,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(r),Write:Number(n),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:r,NodeGroups:n,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===n||void 0===n?void 0:n.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),c=((e,t)=>{if(t)return t;const s=(e||[]).flatMap((e=>{const t=e.PDisks||[],s=e.VDisks||[];return t.map((e=>s.filter((t=>t.PDiskId===e.PDiskId)).length||0))})),a=Math.max(1,...s);return String(a)})(t,l),m=((e,t)=>{if(t)return t;const s=(e||[]).map((e=>{var t;return(null===(t=e.PDisks)||void 0===t?void 0:t.length)||0})),a=Math.max(1,...s);return String(a)})(t,d),p=null===t||void 0===t?void 0:t.map((e=>((e,t,s)=>{var r,n,l;const d=(null===(r=e.PDisks)||void 0===r?void 0:r.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(n=e.PDisks)||void 0===n?void 0:n.map((t=>({...(0,o.or)(t),NodeId:e.NodeId}))),c=null===(l=e.VDisks)||void 0===l?void 0:l.map((t=>({...(0,o.WT)(t),NodeId:e.NodeId})));return{...(0,i.q1)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:u,VDisks:c,Missing:d,MaximumSlotsPerDisk:t,MaximumDisksPerNode:s}})(e,c,m)));return{nodes:p,total:Number(s)||(null===p||void 0===p?void 0:p.length),found:Number(r),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:r}=e,n=((e,t)=>{let s=[];return e?s=e.map(f):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(v(t,e))}))})),s})(s,t);return{groups:n,total:Number(a)||n.length,found:Number(r)}};function y(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:r}=e,n=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:r,Used:n,Limit:o,MissingDisks:i,VDisks:d=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:g}=e,v=d.map(p),f=h(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(a),Write:Number(r),Used:Number(n),Limit:Number(o),LatencyPutTabletLogMs:(0,l.Jc)(c),LatencyPutUserDataMs:(0,l.Jc)(m),LatencyGetFastMs:(0,l.Jc)(g),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:f}})),o=null===r||void 0===r?void 0:r.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:n,total:Number(s)||n.length,found:Number(t),tableGroups:o}}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),r=s(39238),n=s(43781),o=s.n(n),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:n,anchorRef:i,onShowPopup:u,onHidePopup:c,placement:m=["top","bottom"],contentClassName:p,delayClose:h=100,delayOpen:g=100})=>{const[v,f]=a.useState(!1),S=a.useRef(null),k=a.useMemo((()=>o()((()=>{f(!0),null===u||void 0===u||u()}),g)),[u,g]),y=a.useCallback((()=>{f(!1),null===c||void 0===c||c()}),[c]),N=a.useMemo((()=>o()(y,h)),[y,h]),b=k,[x,w]=a.useState(!1),[D,I]=a.useState(!1),C=a.useCallback((()=>{w(!0)}),[]),j=a.useCallback((()=>{w(!1)}),[]),P=a.useCallback((()=>{I(!0)}),[]),A=a.useCallback((()=>{I(!1)}),[]),E=a.useCallback((()=>{I(!1),w(!1),y()}),[y]),T=v||s||x||D;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:b,onMouseLeave:()=>{k.cancel(),N()},children:e}),(0,l.jsx)(r.z,{contentClassName:d(null,p),anchorRef:i||S,open:T,onMouseEnter:C,onMouseLeave:j,onEscapeKeyDown:E,onBlur:A,placement:m,hasArrow:!0,offset:n||[0,12],children:(0,l.jsx)("div",{onContextMenu:P,children:t})})]})}},13342:(e,t,s)=>{s.d(t,{U:()=>i});var a=s(47665),r=s(77506),n=s(60712);const o=(0,r.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...r}){return(0,n.jsxs)(a.J,{theme:s,className:o({overload:Number(e)>=t}),...r,children:[e||0,"%"]})}},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),r=s(77506),n=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,r.cn)("progress-viewer"),u=e=>(0,n.ZV)((0,n.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:r,className:n,size:u="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h,dangerThreshold:g,hideCapacity:v}){const f=(0,a.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(t))*100)||0;S=S>100?100:S;let k=e,y=t,N="/";r?(k=S+"%",y="",N=""):s&&([k,y]=s(Number(e),Number(t)));const b=(0,o.w)({fillWidth:S,warningThreshold:h,dangerThreshold:g,colorizeProgress:m,inverseColorize:p});m&&!(0,i.kf)(t)&&(S=100);const x={width:S+"%"};return(0,i.kf)(e)?(0,l.jsxs)("div",{className:d({size:u,theme:f,status:b},n),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${N} ${y}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${n} error`,children:"no data"})}},16029:(e,t,s)=>{s.d(t,{t:()=>r});var a=s(11905);async function r({version:e="v2",shouldUseGroupsHandler:t,...s},r){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},r);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},r);return(0,a.Qi)(t)}}},16439:(e,t,s)=>{s.d(t,{H:()=>r,f:()=>n});var a=s(76086);const r=(e,t=a.Hh,s=a.Ed)=>a=>0<=a&&a<t?e[0]:t<=a&&a<s?e[1]:s<=a?e[2]:void 0,n=r(["success","warning","danger"])},16819:(e,t,s)=>{s.d(t,{a:()=>o});var a=s(59284),r=s(69024),n=s(59001);const o=e=>{const t=a.useCallback((()=>e?n.f.readUserSettingsValue(e,{}):{}),[e]),s=a.useCallback((t=>{e&&n.f.setUserSettingsValue(e,t)}),[e]);return(0,r.a)({saveSizes:s,getSizes:t})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),r=s(77506),n=s(66781),o=s(60712);const i=(0,r.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[r]=(0,n.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!r},s),children:[(0,o.jsxs)("div",{className:i("row"),children:[(0,o.jsx)(a.E,{className:i("col-1")}),(0,o.jsx)(a.E,{className:i("col-2")}),(0,o.jsx)(a.E,{className:i("col-3")}),(0,o.jsx)(a.E,{className:i("col-4")}),(0,o.jsx)(a.E,{className:i("col-5")})]}),[...new Array(e)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:(0,o.jsx)(a.E,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>ne});var a=s(79879),r=s(4557),n=s(63291),o=s(47665),i=s(84375),l=s(99991),d=s(71661),u=s(44294),c=s(33775),m=s(13342),p=s(92459),h=s(7435),g=s(77506),v=s(76086),f=s(56839),S=s(16439),k=s(73891),y=s(41650),N=s(59284),b=s(69033),x=s(87184),w=s(8809),D=s(10576),I=s(3218),C=s(60712);const j=(0,g.cn)("ydb-storage-disks");function P({vDisks:e=[],viewContext:t,erasure:s}){const[a,r]=N.useState(),n=(0,I.Ep)(e,s),{theme:{spaceBaseSize:o}}=(0,b.L)();if(!e.length)return null;const i=(300-o*(e.length-1))/e.length;return(0,C.jsxs)("div",{className:j(null),children:[(0,C.jsx)(x.s,{direction:"row",gap:1,grow:!0,style:{width:300},children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(A,{vDisk:e,inactive:!(0,I.OH)(e,t),highlightedVDisk:a,setHighlightedVDisk:r,unavailableVDiskWidth:i},e.StringifiedId||s)))}),(0,C.jsx)("div",{className:j("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map(((e,t)=>{var s;return(0,C.jsx)(E,{vDisk:e,highlightedVDisk:a,setHighlightedVDisk:r,withDCMargin:n.includes(t)},(null===e||void 0===e||null===(s=e.PDisk)||void 0===s?void 0:s.StringifiedId)||t)}))})]})}function A({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:a,unavailableVDiskWidth:r}){const n={...e,PDisk:void 0},o=e.StringifiedId,i=(0,y.kf)(n.AllocatedSize)?void 0:r,l=Number(n.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:j("vdisk-item"),children:(0,C.jsx)(w.y,{data:n,compact:!0,inactive:s,showPopup:t===o,onShowPopup:()=>a(o),onHidePopup:()=>a(void 0),progressBarClassName:j("vdisk-progress-bar")})})}function E({vDisk:e,highlightedVDisk:t,setHighlightedVDisk:s,withDCMargin:a}){const r=e.StringifiedId;return e.PDisk?(0,C.jsx)(D.E,{className:j("pdisk-item",{"with-dc-margin":a}),progressBarClassName:j("pdisk-progress-bar"),data:e.PDisk,showPopup:t===r,onShowPopup:()=>s(r),onHidePopup:()=>s(void 0)}):null}var T=s(7187);const U="--ydb-stack-level",R=(0,g.cn)("stack"),G=({children:e,className:t})=>(0,C.jsx)("div",{className:R(null,t),children:N.Children.map(e,((e,t)=>N.isValidElement(e)?(0,C.jsx)("div",{className:R("layer"),style:{[U]:t},children:e}):null))});function M({data:e,className:t,stackClassName:s,...a}){const{Donors:r,...n}=e||{},o=r&&r.length>0?(0,C.jsxs)(G,{className:s,children:[(0,C.jsx)(w.y,{data:n,...a}),r.map((e=>{const t=(0,T.NJ)(e);return(0,C.jsx)(w.y,{data:e,...a},(0,f.U9)(t?e.VDiskId:e))}))]}):(0,C.jsx)(w.y,{data:e,...a});return(0,C.jsx)("div",{className:t,children:o})}const L=(0,g.cn)("ydb-storage-vdisks");function z({vDisks:e,viewContext:t,erasure:s}){const a=(0,I.Ep)(e,s);return(0,C.jsx)("div",{className:L("wrapper"),children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(M,{data:e,inactive:!(0,I.OH)(e,t),className:L("item",{"with-dc-margin":a.includes(s)})},e.StringifiedId)))})}var V=s(61456),W=s(10360);const O=(0,g.cn)("ydb-storage-groups-columns"),H={name:W.UW.PoolName,header:W.H6.PoolName,width:250,render:({row:e})=>e.PoolName?(0,C.jsx)(d.s,{content:e.PoolName,placement:["right"],behavior:n.m.Immediate,className:O("pool-name-wrapper"),children:(0,C.jsx)("span",{className:O("pool-name"),children:e.PoolName})}):v.Pd,align:r.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:r.Ay.LEFT,render:({row:e})=>(0,C.jsxs)("div",{children:[(0,C.jsx)(o.J,{children:e.MediaType||"\u2014"}),"\xa0",e.Encryption&&(0,C.jsx)(i.A,{content:(0,V.A)("encrypted"),placement:"right",behavior:n.m.Immediate,children:(0,C.jsx)(o.J,{children:(0,C.jsx)(l.I,{data:a.A,size:18})})})]}),sortable:!1},_={name:W.UW.Erasure,header:W.H6.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:({row:e})=>e.ErasureSpecies?e.ErasureSpecies:"-",align:r.Ay.LEFT},B={name:W.UW.Degraded,header:W.H6.Degraded,width:110,resizeMinWidth:110,render:({row:e})=>e.Degraded?(0,C.jsxs)(o.J,{theme:(0,I.k_)(e),children:["Degraded: ",e.Degraded]}):"-",align:r.Ay.LEFT,defaultOrder:r.Ay.DESCENDING},$={name:W.UW.State,header:W.H6.State,width:150,render:({row:e})=>{var t;return null!==(t=e.State)&&void 0!==t?t:v.Pd},align:r.Ay.LEFT,defaultOrder:r.Ay.DESCENDING},Y={name:W.UW.Usage,header:W.H6.Usage,width:85,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.Usage)?(0,C.jsx)(m.U,{value:Math.floor(e.Usage),theme:(0,S.f)(e.Usage)}):v.Pd,align:r.Ay.LEFT},J={name:W.UW.DiskSpaceUsage,header:W.H6.DiskSpaceUsage,width:115,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.DiskSpaceUsage)?(0,C.jsx)(m.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,S.f)(e.DiskSpaceUsage)}):v.Pd,align:r.Ay.LEFT},K={name:W.UW.GroupId,header:W.H6.GroupId,width:130,render:({row:e})=>e.GroupId?(0,C.jsx)(u.E,{className:O("group-id"),to:(0,p._g)(e.GroupId),children:e.GroupId}):"-",sortAccessor:e=>Number(e.GroupId),align:r.Ay.RIGHT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,y.wb)(e.Used,!0),align:r.Ay.RIGHT},X={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,y.wb)(e.Limit),align:r.Ay.RIGHT},q={name:W.UW.DiskSpace,header:W.H6.DiskSpace,width:70,render:({row:e})=>(0,C.jsx)(c.k,{status:e.DiskSpace}),align:r.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,y.O4)(e.Read):"-",align:r.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,y.O4)(e.Write):"-",align:r.Ay.RIGHT},te={name:W.UW.Latency,header:W.H6.Latency,width:100,render:({row:e})=>(0,h.f8)(e.LatencyPutTabletLogMs)?(0,k.Xo)(e.LatencyPutTabletLogMs):v.Pd,align:r.Ay.RIGHT},se={name:W.UW.AllocationUnits,header:W.H6.AllocationUnits,width:150,render:({row:e})=>(0,h.f8)(e.AllocationUnits)?(0,f.ZV)(e.AllocationUnits):v.Pd,align:r.Ay.RIGHT},ae=e=>({name:W.UW.VDisks,header:W.H6.VDisks,className:O("vdisks-column"),render:({row:t})=>(0,C.jsx)(z,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:r.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),re=e=>({name:W.UW.VDisksPDisks,header:W.H6.VDisksPDisks,className:O("disks-column"),render:({row:t})=>(0,C.jsx)(P,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:r.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),ne=()=>[K,F,_,Y,Q,X],oe=e=>[K,H,F,_,B,$,Y,J,Q,X,q,Z,ee,te,se,ae(e),re(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),r=s(39238),n=s(60712);const o=({children:e,content:t,className:s,pinOnClick:o,hasArrow:i=!0,placement:l=["top","bottom"],...d})=>{const[u,c]=a.useState(!1),[m,p]=a.useState(!1),h=a.useRef(null);return(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(r.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,n.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),r=s(51930),n=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:r}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:r}),NodeId:t,PDiskId:s,VDiskSlotId:r}}const{PDisk:s,PDiskId:r,VDiskId:o,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=e,v=s?d({...s,NodeId:null!==(t=null===s||void 0===s?void 0:s.NodeId)&&void 0!==t?t:c}):void 0,f=null!==r&&void 0!==r?r:null===v||void 0===v?void 0:v.PDiskId,S=u({AvailableSize:null!==p&&void 0!==p?p:null===s||void 0===s?void 0:s.AvailableSize,AllocatedSize:h}),k=(0,n.b)(e),y=(0,a.U9)(o);return{...g,...S,VDiskId:o,NodeId:c,PDiskId:f,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:k,StringifiedId:y}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:n,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.r$)(l,d),h=(0,o.Y)(a),g=c({AvailableSize:t,TotalSize:s}),v=(0,r.d)({State:n,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:n,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),r=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:r,AllocatedPercent:Math.round(100*a/r)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),r=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:r,AllocatedPercent:Math.round(100*r/a)}}},31911:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(48372);const r=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),n=(0,a.g4)("ydb-nodes-columns",{en:r})},33775:(e,t,s)=>{s.d(t,{k:()=>m});var a=s(45720),r=s(16929),n=s(71153),o=s(99991),i=s(54090),l=s(77506),d=s(60712);const u=(0,l.cn)("ydb-status-icon"),c={[i.m.Blue]:a.A,[i.m.Yellow]:r.A,[i.m.Orange]:n.A,[i.m.Red]:r.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:a}){const r={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(o.I,{className:u("status-icon",r,a),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",r,a)})}},35736:(e,t,s)=>{s.d(t,{w:()=>r});var a=s(76086);function r({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:r,fillWidth:n}){let o=e?"danger":"good";return r&&(n>t&&n<=s?o="warning":n>s&&(o=e?"good":"danger")),o}},39110:(e,t,s)=>{s.d(t,{r:()=>n});var a=s(48372);const r=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),n=(0,a.g4)("ydb-vDisk-info",{en:r})},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),r=s(89073);const n=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:r,fetchData:n},{signal:o})=>{try{return{data:await n({limit:t,offset:e,filters:a,sortParams:s,columnsIds:r,signal:o})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var o=s(7435),i=s(90182),l=s(44508),d=s(89169);const u=!0;const c=(0,s(77506).cn)("ydb-paginated-table");var m=s(60712);const p=({children:e,className:t,height:s,width:a,align:r="left",resizeable:n})=>(0,m.jsx)("td",{className:c("row-cell",{align:r},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:n?`${a}px`:void 0},children:e}),h=({index:e,columns:t,height:s})=>(0,m.jsx)("tr",{className:c("row",{loading:!0}),children:t.map((t=>{var a;const r=null!==(a=t.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:s,width:t.width,align:t.align,className:t.className,resizeable:r,children:(0,m.jsx)(d.E,{className:c("row-skeleton"),style:{width:"80%",height:"50%"}})},`${t.name}${e}`)}))}),g=({row:e,index:t,columns:s,getRowClassName:a,height:r})=>{const n=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",n),children:s.map((s=>{var a;const n=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:r,width:s.width,align:s.align,className:s.className,resizeable:n,children:s.render({row:e,index:t})},`${s.name}${t}`)}))})},v=({columns:e,children:t})=>(0,m.jsx)("tr",{className:c("row",{empty:!0}),children:(0,m.jsx)("td",{colSpan:e.length,className:c("td"),children:t})});var f=s(48372);const S=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),k=(0,f.g4)("ydb-paginated-table",{ru:S,en:{empty:"No data"}});const y=a.memo;const N=y((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:r,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:y,renderEmptyDataMessage:N,onDataFetched:b,isActive:x}){var w;const[D,I]=a.useState(!0),[C]=(0,i.Nt)(),j={offset:e*t,limit:t,fetchData:u,filters:p,sortParams:f,columnsIds:d.map((e=>e.name)),tableName:c};n.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=n.endpoints.fetchTableChunk.useQueryState(j);a.useEffect((()=>{let e=0;return x&&D&&(e=window.setTimeout((()=>{I(!1)}),200)),()=>{window.clearTimeout(e)}}),[x,D]),a.useEffect((()=>{if(P&&x){const{total:e=0,found:t=0}=P;b(e,t)}}),[P,x,b]);const E=(null===P||void 0===P||null===(w=P.data)||void 0===w?void 0:w.length)||s;return(0,m.jsx)("tbody",{id:e.toString(),style:{height:E*r+"px",display:x?"table-row-group":"block"},children:(()=>{var e;if(!x)return null;if(!P){if(A){const e=A;return(0,m.jsx)(v,{columns:d,children:y?y(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:r,index:e},e)))}return null!==(e=P.data)&&void 0!==e&&e.length?P.data.map(((e,t)=>(0,m.jsx)(g,{index:t,row:e,columns:d,height:r,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:N?N():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:r}){const n=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=n.current;if(!a)return;let o,l,d;const u=function(e){let t,s=null;return function(...a){t=a,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((s=>{if(x(s),"number"!==typeof o||"number"!==typeof l)return;const a=s.clientX-o,n=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);n!==d&&(d=n,null===r||void 0===r||r(d))})),c=e=>{x(e),void 0!==d&&(null===r||void 0===r||r(d)),i(!1),o=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{l=s(),x(e),o=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return a.addEventListener("mousedown",m),()=>{a.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[r,e,t,s]),(0,m.jsx)("span",{ref:n,className:c("resize-handler",{resizing:o}),onClick:e=>x(e)})}function x(e){e.preventDefault(),e.stopPropagation()}const w=({order:e})=>(0,m.jsx)("svg",{className:c("sort-icon",{desc:-1===e}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,m.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})}),D=({sortOrder:e,sortable:t,defaultSortOrder:s})=>t?(0,m.jsx)("span",{className:c("sort-icon-container",{shadow:!e}),children:(0,m.jsx)(w,{order:e||s})}):null,I=({column:e,resizeable:t,sortOrder:s,defaultSortOrder:r,onSort:n,rowHeight:o,onCellMount:i,onCellUnMount:l,onColumnsResize:d})=>{var u;const p=a.useRef(null);a.useEffect((()=>{const e=p.current;return e&&(null===i||void 0===i||i(e)),()=>{e&&(null===l||void 0===l||l(e))}}),[i,l]);const h=a.useCallback((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),g=a.useCallback((t=>{null===d||void 0===d||d(e.name,t)}),[d,e.name]),v=null!==(u=e.header)&&void 0!==u?u:e.name,f={height:`${o}px`,width:`${e.width}px`,minWidth:t?`${e.width}px`:void 0,maxWidth:t?`${e.width}px`:void 0};return(0,m.jsxs)("th",{ref:p,className:c("head-cell-wrapper"),style:f,children:[(0,m.jsxs)("div",{className:c("head-cell",{align:e.align,sortable:e.sortable},e.className),onClick:()=>{e.sortable&&(null===n||void 0===n||n(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:r})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:r=-1,rowHeight:n=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==r)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:r,columnId:e};null===t||void 0===t||t(s),i(s)};return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("colgroup",{children:e.map((e=>(0,m.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,m.jsx)("thead",{className:c("head"),children:(0,m.jsx)("tr",{children:e.map((e=>{var t;const a=o.columnId===e.name?o.sortOrder:void 0,i=s&&(null!==(t=e.resizeable)&&void 0!==t?t:u);return(0,m.jsx)(I,{column:e,resizeable:i,sortOrder:a,defaultSortOrder:r,onSort:l,rowHeight:n,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:n,tableName:o,columns:i,getRowClassName:l,rowHeight:d=41,parentRef:u,initialSortParams:p,onColumnsResize:h,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:f,containerClassName:S})=>{const k=t||0,y=t||1,[b,x]=a.useState(p),[w,D]=a.useState(k),[I,P]=a.useState(y),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:r,chunkSize:n,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/n)),[n,s]),[l,d]=a.useState(0),[u,c]=a.useState(Math.min(o,Math.max(i-1,0))),m=a.useCallback((()=>{const s=null===e||void 0===e?void 0:e.current,a=t.current;if(!s||!a)return null;const l=function(e,t){let s=e,a=0;for(;s&&s!==t;)a+=s.offsetTop,s=s.offsetParent;return a}(a,s),d=s.scrollTop,u=Math.max(d-l,0),c=u+s.clientHeight;return{start:Math.max(Math.floor(u/r/n)-o,0),end:Math.min(Math.floor(c/r/n)+o,Math.max(i-1,0))}}),[e,t,r,n,o,i]),p=a.useCallback((()=>{const e=m();e&&(d(e.start),c(e.end))}),[m]);return a.useEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;const s=(0,j.throttle)(p,100,{leading:!0,trailing:!0});return t.addEventListener("scroll",s),()=>{t.removeEventListener("scroll",s),s.cancel()}}),[p,e]),a.useMemo((()=>{const e=Array(i).fill(!1);for(let t=l;t<=u;t++)e[t]=!0;return e}),[i,l,u])})({parentRef:u,tableRef:T,totalItems:I,rowHeight:d,chunkSize:e}),R=a.useMemo((()=>I?I%e||e:1),[I,e]),G=a.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);a.useLayoutEffect((()=>{D(k),P(y),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[n,y,k,u]);const M=()=>(0,m.jsxs)("table",{className:c("table"),children:[(0,m.jsx)(C,{columns:i,onSort:x,onColumnsResize:h}),U.map(((t,a)=>(0,m.jsx)(N,{id:a,calculatedCount:a===U.length-1?R:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:n,tableName:o,sortParams:b,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:G,isActive:t},a)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(r.L,{children:[(0,m.jsx)(r.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(r.L.Table,{children:M()})]}):M()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,r]=(0,A.a)(e),n=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(t,a);return(0,m.jsx)(P,{columns:n,onColumnsResize:r,containerClassName:c("resizeable-table-container"),...s})}},40781:(e,t,s)=>{function a(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{R:()=>a})},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),r=s(28664),n=s(77506),o=s(60712);const i=(0,n.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:n,debounce:l=200,placeholder:d})=>{const[u,c]=a.useState(t),m=a.useRef();a.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,o.jsx)(r.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,n),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},43951:(e,t,s)=>{s.d(t,{K:()=>n});var a=s(59284),r=s(59001);const n=(e,t,s,n,o)=>{const[i,l]=a.useState((()=>r.f.readUserSettingsValue(t,n)));return{columnsToShow:a.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),a=null===o||void 0===o?void 0:o.includes(t);return s||a}))),[e,o,i]),columnsToSelect:a.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===o||void 0===o?void 0:o.includes(e),a=i.includes(e);return{id:e,title:s[e],selected:t||a,required:t,sticky:t?"start":void 0}}))),[e,s,o,i]),setColumns:a.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));r.f.setUserSettingsValue(t,s),l(s)}),[t])}}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),r=s(24543),n=s(80176),o=s(60712);const i=(0,a.cn)("ydb-pool-bar"),l=({data:e={}})=>{const{Usage:t=0}=e,s=Math.min(100*t,100),a=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(s);return(0,o.jsx)(r.u,{className:i({type:a}),content:(0,o.jsx)(n.HG,{data:e,className:i("popup-content")}),children:(0,o.jsx)("div",{style:{height:`${s}%`},className:i("value",{type:a})})})},d=(0,a.cn)("ydb-pools-graph"),u=({pools:e=[]})=>(0,o.jsx)("div",{className:d(),children:e.map(((e,t)=>(0,o.jsx)(l,{data:e},t)))})},50672:(e,t,s)=>{s.d(t,{D:()=>n});var a=s(48372);const r=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),n=(0,a.g4)("ydb-pDisk-info",{en:r})},51930:(e,t,s)=>{s.d(t,{d:()=>n});var a=s(5707),r=s(7187);function n(e){const t=function(e){return t=e,void 0!==t&&t in a.iZ?a.iZ[e]:a.Km;var t}(e.State),s=(0,r.SW)(e.AllocatedPercent);return t!==a.Km&&s?Math.max(t,s):t}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),r=s(77506);const n=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,r.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:r,className:l})=>{let d="";return s&&(d+=`${s}: `),r?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${n("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),r=s(6354);const n={[r.r.Dead]:a.m.Red,[r.r.Created]:a.m.Yellow,[r.r.ResolveStateStorage]:a.m.Yellow,[r.r.Candidate]:a.m.Yellow,[r.r.BlockBlobStorage]:a.m.Yellow,[r.r.WriteZeroEntry]:a.m.Yellow,[r.r.Restored]:a.m.Yellow,[r.r.Discover]:a.m.Yellow,[r.r.Lock]:a.m.Yellow,[r.r.Stopped]:a.m.Yellow,[r.r.ResolveLeader]:a.m.Yellow,[r.r.RebuildGraph]:a.m.Yellow,[r.r.Deleted]:a.m.Green,[r.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:n[e];var t};function i(e){if(!e)return"unknown";switch(e){case r.r.Dead:return"danger";case r.r.Active:case r.r.Deleted:return"success";default:return"warning"}}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const r=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),n=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),o=(0,a.g4)("ydb-storage-groups",{ru:n,en:r})},62710:(e,t,s)=>{s.d(t,{$:()=>r});var a=s(59284);function r(e){const[t,s]=a.useState({});a.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,{name:s})=>{const a=t[s];return{...e,[s]:null!==a&&void 0!==a&&a}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:a.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}},64036:(e,t,s)=>{s.d(t,{b:()=>r});var a=s(5707);function r(e){const{DiskSpace:t,VDiskState:s,FrontQueues:r,Replicated:o}=e;if(!s)return a.Km;const i=n(t),l=function(e){var t;if(!e)return a.Km;return null!==(t=a.qs[e])&&void 0!==t?t:a.Km}(s),d=Math.min(a.aW.Orange,n(r));let u=Math.max(i,l,d);return!1===o&&u===a.aW.Green&&(u=a.aW.Blue),u}function n(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),r=s(78034),n=s(60712);const o=({value:e,onChange:t,className:s})=>(0,n.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,n.jsx)(a.a.Option,{value:r.cW.All,children:r.DG[r.cW.All]}),(0,n.jsx)(a.a.Option,{value:r.cW.SmallUptime,children:r.DG[r.cW.SmallUptime]})]})},67375:(e,t,s)=>{s.d(t,{W:()=>a});let a=function(e){return e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError",e}({})},69464:(e,t,s)=>{s.d(t,{T:()=>r});var a=s(6388);s(23536);const r=(e,t=a.xN)=>t===a.xN?`-${e}`:e},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),r=s(98089),n=s(47665),o=s(77506),i=s(60712);const l=(0,o.cn)("ydb-table-group");function d({children:e,title:t,entityName:s,count:o,expanded:d=!1,onIsExpandedChange:u}){const c=()=>{u(t,!d)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:c,className:l("button"),title:t,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(a.I,{direction:d?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(r.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(r.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(n.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},73473:(e,t,s)=>{s.d(t,{S:()=>N});var a=s(38501),r=s(40336),n=s(46549),o=s(77506),i=s(76086),l=s(35736),d=s(41650),u=s(13096),c=s(15132),m=s(48372);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.g4)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kf)(e)?parseFloat(String(e)):void 0}var v=s(60712);const f=1,S=.01*i.J7,k=(0,o.cn)("memory-viewer"),y=(e,t)=>[(0,n.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,n.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function N({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const N=null!==(p=e.AnonRss)&&void 0!==p?p:function(e){const t=g(e.AllocatedMemory)||0,s=g(e.AllocatorCachesMemory)||0;return String(t+s)}(e),b=e.HardLimit,x=(0,a.D)();let w=Math.round(parseFloat(String(N))/parseFloat(String(b))*100)||0;w=w>100?100:w;let D=N,I=b,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(N),Number(b)));const j=function(e,t){const s=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],a=s.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),r=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:r,isInfo:!1}),s.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:t,isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),s.filter((e=>void 0!==e.value))}(e,Number(N)),P=(0,l.w)({fillWidth:w,warningThreshold:i,dangerThreshold:m,colorizeProgress:!0});let A=0;return(0,v.jsx)(u.P,{popupContent:(0,v.jsx)(r.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(r.u.Item,{name:(0,v.jsxs)("div",{className:k("container"),children:[(0,v.jsx)("div",{className:k("legend",{type:a})}),(0,v.jsx)("div",{className:k("name"),children:e})]}),children:s?(0,v.jsx)(c.O,{value:t,capacity:s,formatValues:y,colorizeProgress:!0}):(0,n.z3)({value:t,size:"gb",withSizeLabel:!0,precision:2})},e)))}),children:(0,v.jsx)("div",{className:k({theme:x,status:P},o),children:(0,v.jsxs)("div",{className:k("progress-container"),children:[j.filter((({isInfo:e})=>!e)).map((e=>{if(e.value<S)return null;const t=Math.max((s=e.value,N?s/parseFloat(String(b))*100:0),f);var s;const a=A;return A+=t,(0,v.jsx)("div",{className:k("segment",{type:e.key}),style:{width:`${t}%`,left:`${a}%`}},e.key)})),(0,v.jsx)("div",{className:k("text"),children:(0,d.kf)(b)?`${D} ${C} ${I}`:D})]})})})}},78461:(e,t,s)=>{s.d(t,{Y:()=>r});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function r(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,r])=>{const n=e.length-t,o=n-r;return s[a]=e.substring(o,n)||"0",t+r}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return a.SSD;case 2:return a.MVME}else if("0"===t.typeExt)return a.HDD}},78762:(e,t,s)=>{s.d(t,{pt:()=>ae,SH:()=>q,fr:()=>B,uk:()=>z,Bg:()=>J,Nh:()=>M,ID:()=>$,fR:()=>Y,iX:()=>F,Vz:()=>X,H:()=>Z,_E:()=>G,eT:()=>L,wN:()=>se,kv:()=>_,pH:()=>H,OX:()=>V,ui:()=>te,DH:()=>ee,oz:()=>K,qp:()=>Q,jl:()=>O,Rn:()=>W});var a=s(4557),r=s(40336),n=s(7435),o=s(77506),i=s(76086),l=s(56839),d=s(16439),u=s(41650),c=s(71661),m=s(73473),p=s(63291),h=s(29819),g=s(31684),v=s(78034),f=s(10508),S=s(80176),k=s(60712);const y=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const r="ConnectStatus"===a?e.ConnectStatus:e.SystemState,n=!(0,v.X7)(e);let o;if(t){const s=t(e);o=s?(0,g.Un)(s):void 0}else if(e.NodeId){const t=(0,g.Kx)(e.NodeId);o=(0,g.Un)(t)}const i=n?(0,h.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName},e.TenantName?"tablets":"storage"):void 0;return(0,k.jsx)(c.s,{disabled:!n,content:(0,k.jsx)(S.p,{data:e,nodeHref:o}),placement:["top","bottom"],behavior:p.m.Immediate,delayClosing:200,children:(0,k.jsx)(f.c,{name:e.Host,status:r,path:i,hasClipboardButton:!0})})};var N=s(48295),b=s(15132),x=s(52905),w=s(58267);const D=(0,o.cn)("tablets-statistic"),I=({tablets:e=[],database:t,nodeId:s})=>{const a=(e=>e.map((e=>({label:(0,i.bk)(e.Type),type:e.Type,count:e.Count,state:(0,w.P)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(e);return(0,k.jsx)("div",{className:D(),children:a.map(((e,a)=>{var r;const n=(0,h.vI)(s,{database:t},"tablets"),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(r=e.state)||void 0===r?void 0:r.toLowerCase()});return(0,k.jsx)(x.N_,{to:n,className:i,children:o},a)}))})};var C=s(41826),j=s(13342),P=s(86782),A=s(31911),E=s(73891);function T(e){return(0,E.Xo)((0,E.Jc)(e,1))}function U(e){const t=(0,E.Jc)(e,1);return(Number(t)<=0?"":"+")+(0,E.Xo)(t)}const R=(0,o.cn)("ydb-nodes-columns");function G(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:a.Ay.RIGHT}}function M({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,k.jsx)(y,{node:a,getNodeRef:e,database:t,statusForIcon:s}),width:350,align:a.Ay.LEFT}}function L(){return{name:P.vg.NodeName,header:P.uG.NodeName,align:a.Ay.LEFT,render:({row:e})=>e.NodeName||i.Pd,width:200}}function z(){return{name:P.vg.DC,header:P.uG.DC,align:a.Ay.LEFT,render:({row:e})=>e.DC||i.Pd,width:60}}function V(){return{name:P.vg.Rack,header:P.uG.Rack,align:a.Ay.LEFT,render:({row:e})=>e.Rack||i.Pd,width:100}}function W(){return{name:P.vg.Version,header:P.uG.Version,width:200,align:a.Ay.LEFT,render:({row:e})=>(0,k.jsx)(c.s,{content:e.Version,children:e.Version})}}function O(){return{name:P.vg.Uptime,header:P.uG.Uptime,sortAccessor:({StartTime:e})=>e?-e:0,render:({row:e})=>(0,k.jsx)(C.p,{StartTime:e.StartTime,DisconnectTime:e.DisconnectTime}),align:a.Ay.RIGHT,width:120}}function H(){return{name:P.vg.RAM,header:P.uG.RAM,sortAccessor:({MemoryUsed:e=0})=>Number(e),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{const[t,s]=(0,u.kf)(e.MemoryUsed)&&(0,u.kf)(e.MemoryLimit)?(0,l.j9)(Number(e.MemoryUsed),Number(e.MemoryLimit),"gb",void 0,!0):[0,0];return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(r.u.Item,{name:(0,A.A)("field_memory-limit"),children:s})]}),children:(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:(e,t)=>(0,l.j9)(e,t,"gb",void 0,!0),className:R("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function F(){return{name:P.vg.Memory,header:P.uG.Memory,defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.MemoryStats?(0,k.jsx)(m.S,{formatValues:l.vX,stats:e.MemoryStats}):(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:l.vX,colorizeProgress:!0}),align:a.Ay.LEFT,width:300,resizeMinWidth:170}}function _(){return{name:P.vg.Pools,header:P.uG.Pools,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.PoolStats?(0,k.jsx)(N._,{pools:e.PoolStats}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:60}}function B(){return{name:P.vg.CPU,header:P.uG.CPU,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{if(!e.PoolStats)return i.Pd;let t=(0,u.kf)(e.CoresUsed)&&(0,u.kf)(e.CoresTotal)?e.CoresUsed/e.CoresTotal:void 0;if(void 0===t){let s=0;t=e.PoolStats.reduce(((e,t)=>(s+=Number(t.Threads),e+Number(t.Usage)*Number(t.Threads))),0),t/=s}return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsx)(r.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,k.jsx)(r.u.Item,{name:e.Name,children:(0,S.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,k.jsx)(b.O,{className:R("column-cpu"),value:t,capacity:1,colorizeProgress:!0,percents:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function $(){return{name:P.vg.LoadAverage,header:P.uG.LoadAverage,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>(0,k.jsx)(b.O,{value:e.LoadAveragePercents&&e.LoadAveragePercents.length>0?e.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100}),align:a.Ay.LEFT,width:170,resizeMinWidth:170}}function Y(){return{name:P.vg.Load,header:P.uG.Load,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.LoadAveragePercents&&e.LoadAveragePercents.length>0?(0,k.jsx)(j.U,{value:e.LoadAveragePercents[0].toFixed(),theme:(0,d.f)(e.LoadAveragePercents[0])}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:70}}function J(){return{name:P.vg.DiskSpaceUsage,header:P.uG.DiskSpaceUsage,render:({row:e})=>(0,n.f8)(e.DiskSpaceUsage)?(0,k.jsx)(j.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,d.f)(e.DiskSpaceUsage)}):i.Pd,align:a.Ay.LEFT,width:115,resizeMinWidth:75}}function K(){return{name:P.vg.TotalSessions,header:P.uG.TotalSessions,render:({row:e})=>{var t;return null!==(t=e.TotalSessions)&&void 0!==t?t:i.Pd},align:a.Ay.RIGHT,width:100}}function Q({database:e}){return{name:P.vg.Tablets,header:P.uG.Tablets,width:500,resizeMinWidth:500,render:({row:t})=>t.Tablets?(0,k.jsx)(I,{database:null!==e&&void 0!==e?e:t.TenantName,nodeId:t.NodeId,tablets:t.Tablets}):i.Pd,align:a.Ay.LEFT,sortable:!1}}function X(){return{name:P.vg.Missing,header:P.uG.Missing,render:({row:e})=>e.Missing,align:a.Ay.CENTER,defaultOrder:a.Ay.DESCENDING}}function q(){return{name:P.vg.Connections,header:P.uG.Connections,render:({row:e})=>(0,u.kf)(e.Connections)?e.Connections:i.Pd,align:a.Ay.RIGHT,width:130}}function Z(){return{name:P.vg.NetworkUtilization,header:P.uG.NetworkUtilization,render:({row:e})=>{const{NetworkUtilization:t,NetworkUtilizationMin:s=0,NetworkUtilizationMax:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:(0,l.l9)(a)},"NetworkUtilizationMax")]}),children:(0,l.l9)(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ee(){return{name:P.vg.SendThroughput,header:P.uG.SendThroughput,render:({row:e})=>(0,u.kf)(e.SendThroughput)?(0,u.O4)(e.SendThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function te(){return{name:P.vg.ReceiveThroughput,header:P.uG.ReceiveThroughput,render:({row:e})=>(0,u.kf)(e.ReceiveThroughput)?(0,u.O4)(e.ReceiveThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function se(){return{name:P.vg.PingTime,header:P.uG.PingTime,render:({row:e})=>{const{PingTimeUs:t,PingTimeMinUs:s=0,PingTimeMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:T(a)},"PingTimeMaxUs")]}),children:T(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ae(){return{name:P.vg.ClockSkew,header:P.uG.ClockSkew,render:({row:e})=>{const{ClockSkewUs:t,ClockSkewMinUs:s=0,ClockSkewMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:U(a)},"ClockSkewMaxUs")]}),children:U(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}},86782:(e,t,s)=>{s.d(t,{fN:()=>c,kU:()=>p,kn:()=>u,sp:()=>h,uG:()=>l,vg:()=>n,xd:()=>i,zO:()=>r});var a=s(31911);const r="nodesTableColumnsWidth",n={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},o=["Pools","Memory"];function i(e){return o.includes(e)}const l={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get Database(){return(0,a.A)("database")},get NodeName(){return(0,a.A)("node-name")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Version(){return(0,a.A)("version")},get Uptime(){return(0,a.A)("uptime")},get Memory(){return(0,a.A)("memory")},get RAM(){return(0,a.A)("ram")},get Pools(){return(0,a.A)("pools")},get CPU(){return(0,a.A)("cpu")},get LoadAverage(){return(0,a.A)("load-average")},get Load(){return(0,a.A)("load")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get TotalSessions(){return(0,a.A)("sessions")},get Connections(){return(0,a.A)("connections")},get NetworkUtilization(){return(0,a.A)("utilization")},get SendThroughput(){return(0,a.A)("send")},get ReceiveThroughput(){return(0,a.A)("receive")},get PingTime(){return(0,a.A)("ping")},get ClockSkew(){return(0,a.A)("skew")},get Missing(){return(0,a.A)("missing")},get Tablets(){return(0,a.A)("tablets")},get PDisks(){return(0,a.A)("pdisks")}},d={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get NodeName(){return(0,a.A)("node-name")},get Database(){return(0,a.A)("database")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Missing(){return(0,a.A)("missing")},get Uptime(){return(0,a.A)("uptime")},get Version(){return(0,a.A)("version")},get SystemState(){return(0,a.A)("system-state")},get ConnectStatus(){return(0,a.A)("connect-status")},get NetworkUtilization(){return(0,a.A)("network-utilization")},get ClockSkew(){return(0,a.A)("clock-skew")},get PingTime(){return(0,a.A)("ping-time")}};function u(e){return d[e]}const c={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime","DisconnectTime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},m={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function p(e){return m[e]}function h(e){return Boolean(p(e))}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),r=s(76086),n=s(7187),o=s(90182),i=s(60712);const l=(0,a.cn)("storage-disk-progress-bar");function d({diskAllocatedPercent:e=-1,severity:t,compact:s,faded:a,inactive:d,empty:u,content:c,className:m}){const[p]=(0,o.iK)(r.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,n.XY)(t);g&&(h[g.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,children:[(()=>{if(s)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const t=p?100-e:e;return e>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${t}%`}}):null})(),c||(!s&&e>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(e)}%`}):null)]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),r=s(19228),n=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,n.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,n.jsx)("div",{className:o("controls-wrapper"),children:(0,n.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,n.jsx)(r.Q,{className:o("loader")}):(0,n.jsx)("div",{className:o("table",s),children:e})}},90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),r=s(84476),n=s(24555),o=s(21334),i=s(77506),l=s(90182),d=s(48372);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:u});var m=s(60712);const p=(0,i.cn)("auto-refresh-control");function h({className:e,onManualRefresh:t}){const s=(0,l.YQ)(),[i,d]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(r.$,{view:"flat-secondary",onClick:()=>{s(o.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(r.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(n.l,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(n.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(n.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(n.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(n.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(n.l.Option,{value:"300000",children:c("5 min")})]})]})}},94025:(e,t,s)=>{s.d(t,{t:()=>a});let a=function(e){return e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown",e}({})},96927:(e,t,s)=>{s.d(t,{O:()=>y,f:()=>k});var a=s(59284),r=s(87184),n=s(92459),o=s(24600),i=s(54090),l=s(7435),d=s(76086),u=s(31684),c=s(90182),m=s(12888),p=s(41650),h=s(60073),g=s(25196),v=s(50672),f=s(60712);const S=[i.m.Orange,i.m.Red,i.m.Yellow],k=(e,t,s)=>{const{AvailableSize:a,TotalSize:o,State:i,PDiskId:c,NodeId:m,StringifiedId:h,Path:k,Realtime:y,Type:N,Device:b}=e,x=[{label:"PDisk",value:null!==h&&void 0!==h?h:d.Pd},{label:"State",value:i||"not available"},{label:"Type",value:N||"unknown"}];if(m&&x.push({label:"Node Id",value:m}),null!==t&&void 0!==t&&t.Host&&x.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&x.push({label:"DC",value:t.DC}),k&&x.push({label:"Path",value:k}),(0,p.kf)(o)&&x.push({label:"Available",value:`${(0,p.wb)(a)} of ${(0,p.wb)(o)}`}),y&&S.includes(y)&&x.push({label:"Realtime",value:y}),b&&S.includes(b)&&x.push({label:"Device",value:b}),s&&(0,l.f8)(m)&&(0,l.f8)(c)){const e=(0,u.ar)({nodeId:m,pDiskId:c}),t=(0,n.Ck)(c,m);x.push({label:"Links",value:(0,f.jsxs)(r.s,{gap:2,wrap:"wrap",children:[(0,f.jsx)(g.K,{title:(0,v.D)("pdisk-page"),url:t,external:!1}),(0,f.jsx)(g.K,{title:(0,v.D)("developer-ui"),url:e})]})})}return x},y=({data:e})=>{const t=(0,m.X)(),s=(0,c.N4)(o.K),r=(0,l.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,n=a.useMemo((()=>k(e,r,t)),[e,r,t]);return(0,f.jsx)(h.z_,{title:"PDisk",info:n,size:"s"})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(12888),r=s(59284),n=s(79553),o=s(98167),i=s(89073),l=s(67028),d=s(10174),u=s(90182),c=s(69775),m=s(98089),p=s(24555),h=s(53755),g=s(41775),v=s(64934),f=s(10360),S=s(370),k=s(86782);const y=["NodeId","Host","Uptime","CPU","RAM","PDisks"],N=["NodeId"],b=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],x=b.map((e=>({value:e,content:(0,k.kn)(e)}))),w=S.z.custom((e=>b.includes(e))).catch(void 0);var D=s(44433);const I={all:"all",missing:"missing",space:"space"},C={groups:"groups",nodes:"nodes"};var j=s(60712);const P={[C.groups]:"Groups",[C.nodes]:"Nodes"},A=({value:e,onChange:t})=>(0,j.jsxs)(D.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,j.jsx)(D.a.Option,{value:C.groups,children:P[C.groups]}),(0,j.jsx)(D.a.Option,{value:C.nodes,children:P[C.nodes]})]}),E={[I.all]:"All",[I.missing]:"Degraded",[I.space]:"Out of Space"},T=({value:e,onChange:t})=>(0,j.jsxs)(D.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,j.jsx)(D.a.Option,{value:I.missing,children:E[I.missing]}),(0,j.jsx)(D.a.Option,{value:I.space,children:E[I.space]}),(0,j.jsx)(D.a.Option,{value:I.all,children:E[I.all]})]});var U=s(48372);const R=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),G=(0,U.g4)("ydb-storage",{en:R});var M=s(59109),L=s(44508),z=s(77506);const V=(0,z.cn)("global-storage"),W=e=>403===e.status?(0,j.jsx)(M.O,{position:"left"}):(0,j.jsx)(L.o,{error:e});var O=s(67087);const H=S.z.nativeEnum(I).catch(I.all),F=S.z.nativeEnum(C).catch(C.groups);var _=s(78034);function B(){var e;const[t,s]=(0,O.useQueryParams)({type:O.StringParam,visible:O.StringParam,search:O.StringParam,uptimeFilter:O.StringParam,storageNodesGroupBy:O.StringParam,storageGroupsGroupBy:O.StringParam}),a=F.parse(t.type),r=H.parse(t.visible),n=null!==(e=t.search)&&void 0!==e?e:"",o=_.Bm.parse(t.uptimeFilter),i=f.kY.parse(t.storageGroupsGroupBy),l=w.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:r,searchValue:n,nodesUptimeFilter:o,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(_.cW.All)}}}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}){const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:y,handleVisibleEntitiesChange:N,handleStorageGroupsGroupByParamChange:b}=B(),x=(0,a.X)(),w=e&&x;return(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(g.v,{value:d,onChange:k,placeholder:G("controls_groups-search-placeholder"),className:V("search")}),w&&(0,j.jsx)(A,{value:u,onChange:y}),t?null:(0,j.jsx)(T,{value:v,onChange:N}),(0,j.jsx)(c.O,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),t?(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:G("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{b(e[0])},options:f.SE})]}):null,(0,j.jsx)(h.T,{label:G("groups"),loading:o,total:n,current:s})]})}function Y({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:a,entitiesLoading:n,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:y,handleVisibleEntitiesChange:N,handleUptimeFilterChange:b,handleStorageNodesGroupByParamChange:w}=B();return(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(g.v,{value:l,onChange:k,placeholder:G("controls_nodes-search-placeholder"),className:V("search")}),e&&(0,j.jsx)(A,{value:d,onChange:y}),t?null:(0,j.jsx)(T,{value:u,onChange:N}),t?null:(0,j.jsx)(v.j,{value:f,onChange:b}),(0,j.jsx)(c.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:G("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{w(e[0])},options:x})]}):null,(0,j.jsx)(h.T,{label:G("nodes"),loading:n,total:a,current:s})]})}var J=s(40427),K=s(84476),Q=s(7889),X=s(78524);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),Z=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),ee=(0,U.g4)("ydb-storage-empty-filter",{ru:Z,en:q}),te=({title:e,message:t=ee("default_message"),showAll:s=ee("default_button_label"),onShowAll:a})=>(0,j.jsx)(Q.p,{image:(0,j.jsx)(X.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:a&&[(0,j.jsx)(K.$,{onClick:a,children:s},"show-all")]});var se=s(61456);const ae=({visibleEntities:e,onShowAll:t})=>{let s;return e===I.space&&(s=(0,se.A)("empty.out_of_space")),e===I.missing&&(s=(0,se.A)("empty.degraded")),s?(0,j.jsx)(te,{title:s,showAll:(0,se.A)("show_all"),onShowAll:t}):null};var re=s(16029),ne=s(69464),oe=s(40781);const ie=({columns:e,database:t,nodeId:s,groupId:a,pDiskId:n,filterGroup:i,filterGroupBy:d,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:v})=>{const S=(0,l.Pm)(),k=(0,l.YA)(),y=(N=k,r.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:r,columnsIds:n}=e,{sortOrder:o,columnId:i}=null!==a&&void 0!==a?a:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==r&&void 0!==r?r:{},v=(0,f.GP)(i),S=v?(0,ne.T)(v,o):void 0,k=(0,oe.R)(n,f.YX),{groups:y,found:b,total:x}=await(0,re.t)({limit:t,offset:s,sort:S,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:k,shouldUseGroupsHandler:N});return{data:y||[],found:b||0,total:x||0}}),[N]));var N;const b=r.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:a,pDiskId:n,filterGroup:i,filterGroupBy:d})),[u,c,t,s,a,n,i,d]);return(0,j.jsx)(o.r,{loading:!S,children:(0,j.jsx)(J.k5,{columnsWidthLSKey:f.qK,parentRef:p,columns:e,fetchData:y,limit:50,initialEntitiesCount:v,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==I.all?(0,j.jsx)(ae,{onShowAll:m,visibleEntities:c}):(0,se.A)("empty.default"),filters:b,tableName:"storage-groups"})})};var le=s(43951),de=s(20831);function ue({visibleEntities:e,viewContext:t}){const s=(0,a.X)(),n=r.useMemo((()=>{const e=(0,de.J)({viewContext:t});return s?e:e.filter((e=>!(0,f.Ai)(e.name)))}),[s,t]),o=r.useMemo((()=>e===I.missing?[...f.LO,f.UW.Degraded]:e===I.space?[...f.LO,f.UW.DiskSpace]:f.LO),[e]);return(0,le.K)(n,f.zY,f.H6,f.hu,o)}var ce=s(71708),me=s(62710);function pe(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:a}=B(),n=(0,l.Pm)(),i=(0,l.SA)();r.useEffect((()=>{i&&"all"!==s&&a()}),[a,i,s]);return(0,j.jsx)(o.r,{loading:!n,children:i&&t?(0,j.jsx)(ge,{...e}):(0,j.jsx)(he,{...e})})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:r,parentRef:n,initialEntitiesCount:o}){const{searchValue:i,visibleEntities:d,handleShowAllGroups:u}=B(),c=(0,l.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=ue({visibleEntities:d,viewContext:r});return(0,j.jsx)(ie,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:i,visibleEntities:d,onShowAll:u,parentRef:n,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:o})}function ge({database:e,nodeId:t,groupId:s,pDiskId:a,parentRef:r,viewContext:o}){const[l]=(0,u.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=B(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=ue({visibleEntities:p,viewContext:o}),{currentData:S,isFetching:k,error:y}=d.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:l}),N=void 0===S&&k,{tableGroups:b,found:x=0,total:w=0}=S||{},{expandedGroups:D,setIsGroupExpanded:I}=(0,me.$)(b);return(0,j.jsxs)(i.L,{children:[(0,j.jsx)(i.L.Controls,{children:(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:w,entitiesLoading:N,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),y?(0,j.jsx)(n.o,{error:y}):null,(0,j.jsx)(i.L.Table,{loading:N,className:V("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:n,count:o})=>{const i=D[n];return(0,j.jsx)(ce.Q,{title:n,count:o,entityName:G("groups"),expanded:i,onIsExpandedChange:I,children:(0,j.jsx)(ie,{database:e,parentRef:r,nodeId:t,groupId:s,pDiskId:a,filterGroup:n,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:W,columns:g,initialEntitiesCount:o})},n)})):G("no-groups")})]})}var ve=s(88655);const fe=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),Se=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),ke=(0,U.g4)("ydb-storage-nodes",{ru:Se,en:fe}),ye=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let a;return e===I.space&&(a=ke("empty.out_of_space")),e===I.missing&&(a=ke("empty.degraded")),t===_.cW.SmallUptime&&(a=ke("empty.small_uptime")),e!==I.all&&t!==_.cW.All&&(a=ke("empty.several_filters")),a?(0,j.jsx)(te,{title:a,showAll:ke("show_all"),onShowAll:s}):null};var Ne=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:r,sortParams:n,filters:o,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==o&&void 0!==o?o:{},{sortOrder:v,columnId:f}=null!==n&&void 0!==n?n:{},S=(0,k.kU)(f),y=S?(0,ne.T)(S,v):void 0,N=(0,oe.R)(i,k.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:r,sort:y,filter:l,uptime:(0,_.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:N}),x=(0,Ne.rz)(b);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},xe=(0,z.cn)("ydb-storage-nodes"),we=e=>xe("node",{unavailable:(0,_.X7)(e)}),De=({columns:e,database:t,nodeId:s,groupId:a,filterGroup:n,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=r.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:a,filterGroup:n,filterGroupBy:o})),[i,l,d,t,s,a,n,o]);return(0,j.jsx)(J.k5,{columnsWidthLSKey:"storageNodesColumnsWidth",parentRef:c,columns:e,fetchData:be,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==I.all||d!==_.cW.All?(0,j.jsx)(ye,{onShowAll:u,nodesUptimeFilter:d,visibleEntities:l}):ke("empty.default"),getRowClassName:we,filters:g,tableName:"storage-nodes"})};var Ie=s(4557),Ce=s(78762),je=s(10576);const Pe=(0,z.cn)("ydb-storage-nodes-columns"),Ae="--maximum-slots",Ee="--maximum-disks",Te=({viewContext:e})=>({name:k.vg.PDisks,header:k.uG.PDisks,className:Pe("pdisks-column"),render:({row:t})=>{var s;const a={[Ae]:t.MaximumSlotsPerDisk,[Ee]:t.MaximumDisksPerNode};return(0,j.jsx)("div",{className:Pe("pdisks-wrapper"),style:a,children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var a;const r=null===(a=t.VDisks)||void 0===a?void 0:a.filter((e=>e.PDiskId===s.PDiskId));return(0,j.jsx)("div",{className:Pe("pdisks-item"),children:(0,j.jsx)(je.E,{data:s,vDisks:r,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:a}){const n=r.useMemo((()=>(({database:e,additionalNodesProps:t,viewContext:s})=>{const a=null===t||void 0===t?void 0:t.getNodeRef;return[(0,Ce._E)(),(0,Ce.Nh)({getNodeRef:a,database:e}),(0,Ce.eT)(),(0,Ce.uk)(),(0,Ce.OX)(),(0,Ce.jl)(),(0,Ce.fr)(),(0,Ce.kv)(),(0,Ce.pH)(),(0,Ce.iX)(),(0,Ce.Bg)(),(0,Ce.Rn)(),(0,Ce.Vz)(),Te({viewContext:s})].map((e=>({...e,sortable:(0,k.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:a})),[t,s,a]),o=r.useMemo((()=>e===I.missing?[...N,k.vg.Missing]:N),[e]);return(0,le.K)(n,"storageNodesSelectedColumns",k.uG,y,o)}const Re=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:a,handleShowAllNodes:n}=B(),i=(0,l.Pm)(),d=(0,l.Ye)();r.useEffect((()=>{!d||"all"===s&&a===_.cW.All||n()}),[n,a,d,s]);return(0,j.jsx)(o.r,{loading:!i,children:d&&t?(0,j.jsx)(Me,{...e}):(0,j.jsx)(Ge,{...e})})};function Ge({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:r,initialEntitiesCount:n}){const{searchValue:o,visibleEntities:i,nodesUptimeFilter:d,handleShowAllNodes:u}=B(),c=(0,l.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a});return(0,j.jsx)(De,{database:e,nodeId:t,groupId:s,searchValue:o,visibleEntities:i,nodesUptimeFilter:d,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:n})}function Me({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:r}){const[n]=(0,u.Nt)(),{searchValue:o,storageNodesGroupByParam:l,handleShowAllNodes:c}=B(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a}),{currentData:g,isFetching:v,error:f}=d.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:o,node_id:s,group_id:t,group:l},{pollingInterval:n}),S=void 0===g&&v,{tableGroups:k,found:y=0,total:N=0}=g||{},{expandedGroups:b,setIsGroupExpanded:x}=(0,me.$)(k);return(0,j.jsxs)(i.L,{children:[(0,j.jsx)(i.L.Controls,{children:(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:y,entitiesCountTotal:N,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,j.jsx)(L.o,{error:f}):null,(0,j.jsx)(i.L.Table,{loading:S,className:V("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((({name:a,count:n})=>{const i=b[a];return(0,j.jsx)(ce.Q,{title:a,count:n,entityName:G("nodes"),expanded:i,onIsExpandedChange:x,children:(0,j.jsx)(De,{database:e,parentRef:r,nodeId:s,groupId:t,searchValue:o,visibleEntities:"all",nodesUptimeFilter:_.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:l,renderErrorMessage:W,columns:m,initialEntitiesCount:n})},a)})):G("no-nodes")})]})}function Le({database:e,viewContext:t}){const s=(0,ve.E)(),{visibleEntities:a}=B();return Ue({additionalNodesProps:s,visibleEntities:a,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=B(),s=(0,a.X)();return"nodes"===t&&s?(0,j.jsx)(Re,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,j.jsx)(pe,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9801.b9143d43.chunk.js b/ydb/core/viewer/monitoring/static/js/9801.b9143d43.chunk.js deleted file mode 100644 index 65fce1dd2b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9801.b9143d43.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9801],{52182:function(e,n,t){e.exports=function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function r(e){return e%100==2}function a(e){return e%100==3||e%100==4}function m(e,n,t,m){var u=e+" ";switch(t){case"s":return n||m?"nekaj sekund":"nekaj sekundami";case"m":return n?"ena minuta":"eno minuto";case"mm":return r(e)?u+(n||m?"minuti":"minutama"):a(e)?u+(n||m?"minute":"minutami"):u+(n||m?"minut":"minutami");case"h":return n?"ena ura":"eno uro";case"hh":return r(e)?u+(n||m?"uri":"urama"):a(e)?u+(n||m?"ure":"urami"):u+(n||m?"ur":"urami");case"d":return n||m?"en dan":"enim dnem";case"dd":return r(e)?u+(n||m?"dneva":"dnevoma"):u+(n||m?"dni":"dnevi");case"M":return n||m?"en mesec":"enim mesecem";case"MM":return r(e)?u+(n||m?"meseca":"mesecema"):a(e)?u+(n||m?"mesece":"meseci"):u+(n||m?"mesecev":"meseci");case"y":return n||m?"eno leto":"enim letom";case"yy":return r(e)?u+(n||m?"leti":"letoma"):a(e)?u+(n||m?"leta":"leti"):u+(n||m?"let":"leti")}}var u={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:m,m:m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};return t.default.locale(u,null,!0),u}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/98014.a4ad6ba5.chunk.js b/ydb/core/viewer/monitoring/static/js/98014.a4ad6ba5.chunk.js new file mode 100644 index 0000000000..5de6aaa92f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/98014.a4ad6ba5.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 98014.a4ad6ba5.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[98014],{98014:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>r,language:()=>i});var o=`\\b${"[_a-zA-Z][_a-zA-Z0-9]*"}\\b`,r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},i={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["targetScope","resource","module","param","var","output","for","in","if","existing"],namedLiterals:["true","false","null"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:"(|'|'')[^']",action:{token:"string"}},{regex:"'''",action:{token:"string.quote",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"[^\\\\'$]+",action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:"'",action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:"[ \\t\\r\\n]"},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:"'''",action:{token:"string.quote",next:"@stringVerbatim"}},{regex:"'",action:{token:"string.quote",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:o,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/98014.a4ad6ba5.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/98014.a4ad6ba5.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/9802.b15025e5.chunk.js b/ydb/core/viewer/monitoring/static/js/9802.b15025e5.chunk.js deleted file mode 100644 index 39050b3fab..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9802.b15025e5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9802],{8873:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5m5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75",clipRule:"evenodd"}))},12640:(e,t,n)=>{n.d(t,{c:()=>m});var o=n(59284),i=n(14794),s=n(98392),r=n(27145),a=n(67459);var l=n(11507);const c=(0,n(69220).om)("sheet");class u{constructor(e,t){this.x=e,this.y=t,this.timeStamp=Date.now()}}class d{constructor(e=5){this.points=[],this.pointsLen=e,this.clear()}clear(){this.points=new Array(this.pointsLen)}addMovement({x:e,y:t}){this.points.pop(),this.points.unshift(new u(e,t))}getYAcceleration(e=1){const t=this.points[0],n=this.points[e];return t&&n?(t.y-n.y)/Math.pow(t.timeStamp-n.timeStamp,2):0}}let h=[];class p extends o.Component{constructor(){super(...arguments),this.veilRef=o.createRef(),this.sheetRef=o.createRef(),this.sheetTopRef=o.createRef(),this.sheetContentBoxRef=o.createRef(),this.sheetScrollContainerRef=o.createRef(),this.velocityTracker=new d,this.observer=null,this.resizeWindowTimer=null,this.state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1},this.setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,o="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=o},this.getAvailableContentHeight=e=>{const t=.9*window.innerHeight-this.sheetTopHeight;return e>=t?t:e},this.show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))},this.hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))},this.onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})},this.onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))},this.onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})},this.onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const o=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:o}),o<=0||this.setStyles({status:"showing",deltaHeight:o})},this.onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()},this.onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})},this.onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))},this.onVeilClick=()=>{this.setState({veilTouched:!0}),this.hide()},this.onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"===this.veilOpacity&&this.props.hideSheet()},this.onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")},this.onResizeWindow=()=>{this.state.isAnimating||(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))},this.onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})}}componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:i,title:s}=this.props,{deltaY:r,swipeAreaTouched:a,contentTouched:l,veilTouched:u,isAnimating:d}=this.state,h={"with-transition":!r||u},p={"with-transition":h["with-transition"]},v={"without-scroll":r>0&&l||a};return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.veilRef,className:c("veil",h),onClick:d?void 0:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation"}),o.createElement("div",{ref:this.sheetRef,className:c("sheet",p),role:"dialog","aria-modal":"true","aria-label":s},!i&&o.createElement("div",{ref:this.sheetTopRef,className:c("sheet-top")},o.createElement("div",{className:c("sheet-top-resizer")})),o.createElement("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),o.createElement("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",v),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd},o.createElement("div",{ref:this.sheetContentBoxRef,className:c("sheet-content-box")},o.createElement("div",{className:c("sheet-content-box-border-compensation")},o.createElement("div",{className:c("sheet-content",t)},s&&o.createElement("div",{className:c("sheet-content-title")},s),o.createElement("div",null,e)))))))}get veilOpacity(){var e;return(null===(e=this.veilRef.current)||void 0===e?void 0:e.style.opacity)||0}get sheetTopHeight(){var e;return(null===(e=this.sheetTopRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetHeight(){var e;return(null===(e=this.sheetRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetScrollTop(){var e;return(null===(e=this.sheetScrollContainerRef.current)||void 0===e?void 0:e.scrollTop)||0}get sheetContentHeight(){var e;return(null===(e=this.sheetContentBoxRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetContentBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetContentBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetContentBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:o}=this.props;if(t===a.O.BROWSER)return;const i=Object.assign(Object.assign({},n),{hash:e});switch(t){case a.O.IOS:n.hash&&h.push(n.hash),o.replace(i);break;case a.O.ANDROID:o.push(i)}}removeHash(){var e;const{id:t,platform:n,location:o,history:i}=this.props;if(n!==a.O.BROWSER&&o.hash===`#${t}`)switch(n){case a.O.IOS:i.replace(Object.assign(Object.assign({},o),{hash:null!==(e=h.pop())&&void 0!==e?e:""}));break;case a.O.ANDROID:i.goBack()}}shouldClose(e){const{id:t,platform:n,location:o,history:i}=this.props;return n!==a.O.BROWSER&&"POP"===i.action&&e.location.hash!==o.hash&&o.hash!==`#${t}`}}p.defaultProps={id:"sheet",allowHideOnContentScroll:!0};const v=function(e){var t;const n=(i=e).displayName||i.name||"Component";var i;return(t=class extends o.Component{render(){return o.createElement(e,Object.assign({},this.props,{mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation}))}}).displayName=`withMobile(${n})`,t.contextType=l.G,t}(function(e){const t=t=>{const{useHistory:n,useLocation:i}=t,s=(0,r.Tt)(t,["useHistory","useLocation"]);return o.createElement(e,Object.assign({},s,{history:n(),location:i()}))},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:r,title:a,className:l,contentClassName:u,swipeAreaClassName:d,allowHideOnContentScroll:h,hideTopBar:p,qa:m})=>{const[f,g]=o.useState(n),[b,C]=o.useState(n);(0,i.y)({enabled:f}),!b&&n&&g(!0),n!==b&&C(n);return f?o.createElement(s.Z,null,o.createElement("div",{"data-qa":m,className:c(null,l)},o.createElement(v,{id:r,content:e,contentClassName:u,swipeAreaClassName:d,title:a,visible:n,allowHideOnContentScroll:h,hideTopBar:p,hideSheet:()=>{t&&t(),g(!1)}}))):null}},13066:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},19884:(e,t,n)=>{n.d(t,{Y:()=>b});var o=n(59284),i=n(94420),s=n(13066),r=n(905),a=n.n(r),l=n(90826),c=n(99991),u=n(84375),d=n(56353),h=n(89226),p=n(81240);const v=e=>{const{size:t,onClick:n,onMouseEnter:i,onMouseLeave:s,renderIcon:r}=e,a=r?r():o.createElement(c.I,{className:(0,d.Di)("clear"),data:p.A});return o.createElement("button",{className:(0,d.Di)({size:t}),"aria-label":(0,h.A)("label_clear"),onClick:n,onMouseEnter:i,onMouseLeave:s,"data-qa":d.pn.CLEAR,type:"button"},a)};v.displayName="SelectClear";var m=n(98089);const f=(0,n(69220).om)("select-counter");function g({count:e,size:t,disabled:n}){return o.createElement("div",{className:f({size:t})},o.createElement(m.E,{variant:"xl"===t?"body-2":"body-1",color:n?"hint":"primary",className:f("text")},e))}const b=o.forwardRef(((e,t)=>{const{toggleOpen:n,clearValue:r,onKeyDown:p,renderControl:m,view:f,size:b,pin:C,selectedOptionsContent:E,className:w,qa:T,label:S,placeholder:y,isErrorVisible:O,errorMessage:R,open:A,disabled:x,value:N,hasClear:H,popupId:z,selectId:I,activeIndex:k,renderCounter:P,hasCounter:L,title:M}=e,B=Boolean(E),D=Boolean(y&&!B),F=Array.isArray(N)&&!a()(N.filter(Boolean)),W=(0,l.u)(),[j,Y]=o.useState(!1),_={open:A,size:b,pin:C,disabled:x,error:O,"has-clear":H,"no-active":j,"has-value":F},$={open:A,size:b,view:f,pin:C,disabled:x,error:O},q=o.useCallback((e=>{e&&e.currentTarget!==document.activeElement&&"focus"in e.currentTarget&&e.currentTarget.focus(),n()}),[n]),V=o.useCallback((()=>{Y(!0)}),[]),G=o.useCallback((()=>{Y(!1)}),[]),K=o.useCallback((()=>{Y(!1),r()}),[r]),U=()=>{if(!L)return null;const e=N.length,t=o.createElement(g,{count:e,size:b,disabled:x});return P?P(t,{count:e,size:b,disabled:x}):t},J=e=>{const t=0===N.length;return!H||t||x?null:o.createElement(v,{size:b,onClick:K,onMouseEnter:V,onMouseLeave:G,renderIcon:e.renderIcon})},Z={id:I,role:"combobox","aria-controls":A?z:void 0,"aria-haspopup":"listbox","aria-expanded":A,"aria-activedescendant":void 0===k?void 0:`${z}-item-${k}`,onClick:q,onKeyDown:p,disabled:x};return m?m({onKeyDown:p,onClear:r,onClick:q,renderClear:J,renderCounter:U,ref:t,open:A,popupId:z,selectId:I,activeIndex:k,disabled:x,triggerProps:Z},{value:N}):o.createElement(o.Fragment,null,o.createElement("div",{className:(0,d.ji)(_),role:"group"},o.createElement("button",Object.assign({ref:t,className:(0,d.Zz)($,w),type:"button","data-qa":T,title:M,tabIndex:0},Z),S&&o.createElement("span",{className:(0,d.ji)("label")},S),D&&o.createElement("span",{className:(0,d.ji)("placeholder")},y),B&&o.createElement("span",{className:(0,d.ji)("option-text")},E)),U(),J({}),R&&o.createElement(u.A,{content:R,tooltipId:W},o.createElement("button",{"aria-label":(0,h.A)("label_show-error-info"),"aria-describedby":W,className:(0,d.ji)("error-icon")},o.createElement(c.I,{data:i.A,size:"s"===b?12:16}))),o.createElement(c.I,{className:(0,d.ji)("chevron-icon",{disabled:x}),data:s.A,"aria-hidden":"true"})))}));b.displayName="SelectControl"},24555:(e,t,n)=>{n.d(t,{l:()=>te});var o=n(59284),i=n(359),s=n(85736),r=n(32084),a=n(27145),l=n(92609);var c=n(90826),u=n(51301),d=n(63246),h=n(34379),p=n(46819),v=n(28664),m=n(69220),f=n(56353),g=n(89226);const b=(0,m.om)("select-filter"),C={padding:"4px 4px 0"},E=o.forwardRef(((e,t)=>{const{onChange:n,onKeyDown:i,renderFilter:s,size:r,value:a,placeholder:l,popupId:c,activeIndex:u}=e,d=o.useRef(null);o.useImperativeHandle(t,(()=>({focus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({preventScroll:!0})}})),[]);const h={value:a,placeholder:l,size:1,onKeyDown:i,onChange:e=>{n(e.target.value)},"aria-label":(0,g.A)("label_filter"),"aria-controls":c,"aria-activedescendant":void 0===u?void 0:`${c}-item-${u}`};return s?s({onChange:n,onKeyDown:i,value:a,ref:d,style:C,inputProps:h}):o.createElement("div",{className:b(),style:C},o.createElement(v.k,{controlRef:d,controlProps:{className:b("input"),size:1,"aria-label":h["aria-label"],"aria-controls":h["aria-controls"],"aria-activedescendant":h["aria-activedescendant"]},size:r,value:a,placeholder:l,onUpdate:n,onKeyDown:i,qa:f.pn.FILTER_INPUT}))}));E.displayName="SelectFilter";var w=n(40091);const T=e=>Boolean(e&&"label"in e),S=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:s,mobile:r}=e;let a=r?f.t5:f.KK[o];if(T(i)){const e=0===s?0:f.Vm;return a=""===i.label?0:a,n?n(i,s):a+e}return t?t(i,s):a},y=e=>"string"===typeof e.content?e.content:"string"===typeof e.children?e.children:e.text?e.text:e.value,O=e=>(e=>o.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>o.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push(Object.assign({},t)),e}),[]),R=(e,t)=>t?t.findIndex((t=>{if(T(t))return!1;if(t.disabled)return!1;const n=y(t);return(o=e,new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var o})):-1,A=e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getItems())||[]},x=e=>{const{options:t,filter:n,filterOption:o}=e,i=t.filter((e=>!!T(e)||(o?o(e,n):((e,t)=>{const n=y(e).toLocaleLowerCase(),o=t.toLocaleLowerCase();return-1!==n.indexOf(o)})(e,n))));return i.reduce(((e,t,n)=>{const o=T(t),s=T(e[e.length-1]),r=n===i.length-1;return o&&s&&e.pop(),(!o||o&&!r)&&e.push(t),e}),[])};function N(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,o=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=o+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=o&&t.scrollTo({top:i})}return!0}const H=(0,m.om)("select-list"),z=({option:e,renderOptionGroup:t})=>t?o.createElement("div",{className:H("group-label-custom")},t(e)):o.createElement("div",{className:H("group-label",{empty:""===e.label})},o.createElement("div",{className:H("group-label-content")},e.label));var I=n(25569),k=n(99991);const P=(0,m.om)("select-list"),L=({option:e})=>{const{content:t,children:n,disabled:i,title:s}=e;return o.createElement("span",{title:s,className:P("option-default-label",{disabled:i})},t||n)},M=e=>{const{renderOption:t,value:n,option:i,multiple:s}=e,r=-1!==n.indexOf(i.value),a=t?t(i):o.createElement(L,{option:i});return o.createElement("div",{"data-qa":i.qa,className:P("option",{colored:r&&!s,disabled:i.disabled})},s&&o.createElement(k.I,{className:P("tick-icon",{shown:r&&s}),data:I.A}),a)};var B=n(29322),D=n(74417);const F=e=>{const t=o.useRef(null);return(0,B.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),o.createElement("div",{ref:t,className:(0,f.C1)("loading-indicator")},o.createElement(D.a,null))},W={value:"__SELECT_LIST_ITEM_LOADING__",disabled:!0},j=o.forwardRef(((e,t)=>{const{onOptionClick:n,renderOption:i,renderOptionGroup:s,getOptionHeight:r,getOptionGroupHeight:a,size:l,flattenOptions:c,value:u,multiple:d,virtualized:h,mobile:p,loading:v,onLoadMore:m,id:g,activeIndex:b,onChangeActive:C}=e,E=o.useMemo((()=>v?[...c,W]:c),[c,v]),T=o.useMemo((()=>c.reduce(((e,t,n)=>("value"in t&&u.includes(t.value)&&e.push(n),e)),[])),[c,u]),y=(e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,options:i,mobile:s}=e;return i.reduce(((e,i,r)=>e+S({getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:r,mobile:s})),0)})({options:E,getOptionHeight:r,getOptionGroupHeight:a,size:l,mobile:p}),O=o.useCallback(((e,t)=>S({getOptionHeight:r,getOptionGroupHeight:a,size:l,option:e,index:t,mobile:p})),[r,a,p,l]),R=o.useCallback(((e,t,n)=>{if("label"in e){const t=s?e=>s(e,{itemHeight:O(e,n)}):void 0;return o.createElement(z,{option:e,renderOptionGroup:t})}if(e.value===W.value)return o.createElement(F,{onIntersect:0===n?void 0:m});const r=i?e=>i(e,{itemHeight:O(e,n)}):void 0;return o.createElement(M,{option:e,value:u,multiple:d,renderOption:r})}),[i,s,u,d,O,m]);return o.createElement(w.B,{ref:t,className:(0,f.C1)({size:l,virtualized:h,mobile:p}),qa:f.pn.LIST,itemClassName:(0,f.C1)("item"),itemHeight:O,itemsHeight:h?y:void 0,items:E,filterable:!1,virtualized:h,renderItem:R,onItemClick:n,selectedItemIndex:T,id:g,role:"listbox",activeItemIndex:b,onChangeActive:C,deactivateOnLeave:!1,onScrollToItem:N})}));j.displayName="SelectList";const Y=(0,m.om)("select-empty-placeholder"),_=({renderEmptyOptions:e,filter:t})=>o.createElement("div",{className:Y({empty:!e})},null===e||void 0===e?void 0:e({filter:t}));var $=n(19884),q=n(93628),V=n(794);function G(e){const{name:t,value:n,disabled:i,form:s,onReset:r}=e,a=(0,V.d)({onReset:r,initialValue:n});return!t||i?null:0===n.length?o.createElement("input",{ref:a,type:"hidden",name:t,value:n,form:s,disabled:i}):o.createElement(o.Fragment,null,n.map(((e,n)=>o.createElement("input",{key:e,ref:0===n?a:void 0,value:e,type:"hidden",name:t,form:s,disabled:i}))))}const K=e=>{const{onChange:t,open:n,disabled:s}=e,[r,a]=o.useState(""),[l,c]=o.useState(),u=o.useCallback((e=>{if(clearTimeout(l),e){const e=window.setTimeout((()=>a("")),f.FY);c(e)}}),[l]),d=o.useCallback((e=>{e.stopPropagation();const t=((e,t)=>{const n=1===e.length;let o="";return e===i.D.BACKSPACE&&t.length?o=t.slice(0,t.length-1):n&&(o=(t+e).trim()),o})(e.key,r);r!==t&&(u(t),a(t))}),[u,r]);o.useEffect((()=>(n&&!s?document.addEventListener("keydown",d):n||s||a(""),()=>{n&&!s&&document.removeEventListener("keydown",d)})),[d,n,s]),o.useEffect((()=>(n||clearTimeout(l),()=>clearTimeout(l))),[n,l]),o.useEffect((()=>{t(r)}),[t,r])};function U(e,t){let n=-1;return t.length>0&&(n=e.findIndex((e=>"value"in e&&t.includes(e.value)&&!e.disabled))),-1===n&&(n=e.findIndex((e=>"value"in e&&!e.disabled))),-1===n?void 0:n}var J=n(87924),Z=n.n(J);function X(e){return Z()(e,[f.zJ])}function Q(e){const{filter:t="",filterable:n,filterOption:i}=e,s=o.useMemo((()=>X(e.options)?e.options:(e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0,data:t.data}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,f.zJ,{enumerable:!1,value:{}}),t})(e.options)),[e.options]),r=o.useMemo((()=>n?x({options:s,filter:t,filterOption:i}):s),[t,n,i,s]);return s[f.zJ].filteredOptions=r,s}const ee=({renderFilter:e,renderList:t})=>o.createElement(o.Fragment,null,e(),t()),te=o.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:v,onFilterChange:m,renderControl:g,renderFilter:b,renderOption:C,renderOptionGroup:w,renderSelectedOption:S,renderEmptyOptions:x,renderPopup:N=ee,getOptionHeight:H,getOptionGroupHeight:z,filterOption:I,name:k,form:P,className:L,controlClassName:M,popupClassName:B,qa:D,value:F,defaultValue:W,defaultOpen:Y,open:V,label:J,placeholder:te,filterPlaceholder:ne,width:oe,popupWidth:ie,popupPlacement:se,error:re,virtualizationThreshold:ae=f.Us,view:le="normal",size:ce="m",pin:ue="round-round",multiple:de=!1,disabled:he=!1,filterable:pe=!1,filter:ve,disablePortal:me,hasClear:fe=!1,onClose:ge,id:be,hasCounter:Ce,renderCounter:Ee,title:we}=e,Te=(0,p.I)(),[Se,ye]=(0,s.P)(ve,"",m),Oe=o.useRef(null),Re=o.useRef(null),Ae=o.useRef(null),xe=o.useRef(null),Ne=(0,r.N)(t,Re),{value:He,open:ze,toggleOpen:Ie,setValue:ke,handleSelection:Pe,handleClearValue:Le}=(({defaultOpen:e,onClose:t,onOpenChange:n,open:i,value:r,defaultValue:c=[],multiple:u,onUpdate:d,disabled:h})=>{const[p,v]=(0,s.P)(r,c,d),[m,f]=o.useState(),g=(0,l.F)({defaultOpen:e,onClose:t,onOpenChange:n,open:i}),{toggleOpen:b}=g,C=(0,a.Tt)(g,["toggleOpen"]),E=o.useCallback((e=>{h||v(e)}),[v,h]),w=o.useCallback((e=>{if(!p.includes(e.value)){const t=[e.value];E(t)}b(!1)}),[p,E,b]),T=o.useCallback((e=>{const t=p.includes(e.value)?p.filter((t=>t!==e.value)):[...p,e.value];E(t)}),[p,E]),S=o.useCallback((e=>{u?T(e):w(e)}),[u,w,T]),y=o.useCallback((()=>{E([])}),[E]);return Object.assign({value:p,activeIndex:m,setValue:E,handleSelection:S,handleClearValue:y,toggleOpen:b,setActiveIndex:f},C)})({onUpdate:n,value:F,defaultValue:W,defaultOpen:Y,multiple:de,open:V,onClose:ge,onOpenChange:v,disabled:he});o.useEffect((()=>{!ze&&pe&&Te&&setTimeout((()=>{ye("")}),300)}),[ze,pe,ye,Te]);const Me=Q({options:e.options||O(e.children),filter:Se,filterable:pe,filterOption:I}),Be=function(e){if(!X(e))throw Error("You should use options generated by useSelectOptions hook");return Z()(e,[f.zJ,"filteredOptions"])}(Me),De=((e,t,n)=>{if(0===t.length)return null;const i=e.filter((e=>!T(e))),s=t.reduce(((e,t)=>{const n=i.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>o.createElement(o.Fragment,{key:e.value},n(e,t)))):s.map((e=>y(e))).join(", ")})(Me,He,S),Fe=Be.length>=ae,{errorMessage:We,errorPlacement:je,validationState:Ye}=(0,h.Av)({error:re,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),_e=(0,c.u)(),$e="invalid"===Ye,qe=$e&&Boolean(We)&&"outside"===je,Ve=$e&&Boolean(We)&&"inside"===je,Ge=o.useCallback((e=>{var t,n;if(e&&!(null===e||void 0===e?void 0:e.disabled)&&!("label"in e)){if(de){const e=null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t?void 0:t.getActiveItem();null===(n=Ae.current)||void 0===n||n.focus(),"number"===typeof e&&setTimeout((()=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(e,!0)}),50)}Pe(e)}}),[Pe,de]),Ke=o.useCallback((e=>{var t;[i.D.ENTER,i.D.SPACEBAR].includes(e.key)&&ze&&(e.preventDefault(),e.key===i.D.SPACEBAR&&Ge((e=>{var t;const n=A(e),o=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getActiveItem();return"number"===typeof o?n[o]:void 0})(xe))),[i.D.ARROW_DOWN,i.D.ARROW_UP].includes(e.key)&&!ze&&(e.preventDefault(),Ie()),null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[Ge,ze,Ie]),Ue=o.useCallback((e=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[]),Je=o.useCallback((e=>{var t;if(e){const n=R(e,A(xe));"number"===typeof n&&-1!==n&&(null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(n,!0))}}),[]);K({onChange:Je,open:ze,disabled:pe}),o.useEffect((()=>{var e;ze&&pe&&(null===(e=Ae.current)||void 0===e||e.focus())}),[ze,pe]);const Ze=Object.assign({},"max"===oe&&{width:oe}),Xe={};"number"===typeof oe&&(Xe.width=oe);const Qe=o.useCallback((()=>Ie(!1)),[Ie]),{onFocus:et,onBlur:tt}=e,{focusWithinProps:nt}=(0,u.R)({onFocusWithin:et,onBlurWithin:o.useCallback((e=>{null===tt||void 0===tt||tt(e),Qe()}),[Qe,tt])}),ot=(0,c.u)(),it=null!==be&&void 0!==be?be:ot,st=`select-popup-${it}`,[rt,at]=function({options:e,value:t,open:n}){const[i,s]=o.useState((()=>{if(n)return U(e,t)})),[r,a]=o.useState(n);return r!==n&&(a(n),n&&s(U(e,t))),[n&&void 0!==i&&i<e.length&&!e[i].disabled?i:void 0,s]}({options:Be,open:ze,value:He});return o.createElement("div",Object.assign({ref:Oe,className:(0,f.gm)(Ze,L)},nt,{style:Xe,tabIndex:-1}),o.createElement($.Y,{toggleOpen:Ie,hasClear:fe,clearValue:Le,ref:Ne,className:M,qa:D,view:le,size:ce,pin:ue,label:J,placeholder:te,selectedOptionsContent:De,isErrorVisible:$e,errorMessage:Ve?We:void 0,open:ze,disabled:he,onKeyDown:Ke,renderControl:g,value:He,popupId:st,selectId:it,activeIndex:rt,hasCounter:de&&Ce,renderCounter:Ee,title:we}),o.createElement(q.t,{ref:Oe,className:B,controlRef:Re,width:ie,open:ze,handleClose:Qe,disablePortal:me,virtualized:Fe,mobile:Te,placement:se,onAfterClose:pe?()=>{ye("")}:void 0},N({renderFilter:()=>pe?o.createElement(E,{ref:Ae,size:ce,value:Se,placeholder:ne,onChange:ye,onKeyDown:Ue,renderFilter:b,popupId:st,activeIndex:rt}):null,renderList:()=>Be.length||e.loading?o.createElement(j,{ref:xe,size:ce,value:He,mobile:Te,flattenOptions:Be,multiple:de,virtualized:Fe,onOptionClick:Ge,renderOption:C,renderOptionGroup:w,getOptionHeight:H,getOptionGroupHeight:z,loading:e.loading,onLoadMore:e.onLoadMore,id:st,activeIndex:rt,onChangeActive:at}):o.createElement(_,{filter:Se,renderEmptyOptions:x})})),o.createElement(d.o,{errorMessage:qe?We:null,errorMessageId:_e}),o.createElement(G,{name:k,value:He,disabled:he,form:P,onReset:ke}))}));te.Option=e=>null,te.OptionGroup=e=>null},25569:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}))},33705:(e,t,n)=>{n.d(t,{I:()=>a});var o=n(59284),i=n(13066),s=n(99991);const r=(0,n(69220).om)("arrow-toggle");function a({size:e=16,direction:t="bottom",className:n,qa:a}){return o.createElement("span",{style:{width:e,height:e},className:r({direction:t},n),"data-qa":a},o.createElement(s.I,{data:i.A,size:e}))}},51301:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(59284);class i{constructor(e,t,n={}){var o,i;this.nativeEvent=t,this.target=null!==(o=n.target)&&void 0!==o?o:t.target,this.currentTarget=null!==(i=n.currentTarget)&&void 0!==i?i:t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}}function s(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:s,isDisabled:r}=e,a=o.useRef(!1),l=o.useCallback((e=>{a.current||document.activeElement!==e.target||(a.current=!0,t&&t(e),s&&s(!0))}),[t,s]),c=o.useCallback((e=>{a.current&&(a.current=!1,n&&n(e),s&&s(!1))}),[n,s]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const s=o.useRef(!1),r=o.useRef(null);o.useEffect((()=>{if(n)return;const e=function(){s.current=!1},o=function(e){if(!s.current&&r.current){const n=new FocusEvent("blur",Object.assign(Object.assign({},e),{relatedTarget:e.target,bubbles:!1,cancelable:!1}));t(new i("blur",n,{target:r.current,currentTarget:r.current})),r.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",o),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",o)}}),[n,t]);const a=o.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),r.current=null)}),[t]),l=function(e){const t=o.useRef({isFocused:!1,observer:null});return o.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),o.useCallback((n=>{const o=n.target;if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,o.disabled&&(null===e||void 0===e||e(new i("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",n,{once:!0});const s=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){s.disconnect(),t.current.observer=null;const e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));s.observe(o,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=s}}),[e])}(t),c=o.useCallback((t=>{s.current=!0,r.current=t.target,l(t),e(t)}),[l,e]);return{onBlur:a,onFocus:c}}({onFocus:l,onBlur:c,isDisabled:r});return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},56353:(e,t,n)=>{n.d(t,{C1:()=>a,Di:()=>l,Eq:()=>p,FY:()=>v,KK:()=>c,Us:()=>m,Vm:()=>d,Zz:()=>r,gP:()=>h,gm:()=>i,ji:()=>s,pn:()=>f,t5:()=>u,zJ:()=>g});var o=n(69220);const i=(0,o.om)("select"),s=(0,o.om)("select-control"),r=(0,o.om)("select-control__button"),a=(0,o.om)("select-list"),l=(0,o.om)("select-clear"),c={s:28,m:28,l:32,xl:36},u=32,d=5,h=1,p=100,v=2e3,m=50,f={LIST:"select-list",POPUP:"select-popup",SHEET:"select-sheet",CLEAR:"select-clear",FILTER_INPUT:"select-filter-input"},g=Symbol("flatten")},69024:(e,t,n)=>{n.d(t,{a:()=>s,j:()=>i});var o=n(59284);function i(e,t){return e.map((e=>{var n;let o;e.sub&&(o=i(e.sub,t));const s=null!==(n=t[e.name])&&void 0!==n?n:e.width;return Object.assign(Object.assign({},e),{width:s,sub:o})}))}function s({saveSizes:e,getSizes:t}){const[n,i]=o.useState((()=>t()));return[n,o.useCallback(((t,n)=>{i((o=>{const i=Object.assign(Object.assign({},o),{[t]:n});return e(i),i}))}),[e])]}},89226:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(72837);const i=JSON.parse('{"label_clear":"Clear","label_show-error-info":"Show popup with error info","label_filter":"Filter"}'),s=JSON.parse('{"label_clear":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c","label_show-error-info":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0435\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","label_filter":"\u0424\u0438\u043b\u044c\u0442\u0440"}'),r=(0,o.N)({en:i,ru:s},"Select")},92609:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(59284),i=n(85736);const s=e=>{var t;const{onOpenChange:n,onClose:s}=e,r=o.useCallback((e=>{null===n||void 0===n||n(e),!1===e&&s&&s()}),[n,s]),[a,l]=(0,i.P)(e.open,null!==(t=e.defaultOpen)&&void 0!==t&&t,r),c=o.useCallback((e=>{l("boolean"===typeof e?e:!a)}),[a,l]);return{open:a,toggleOpen:c}}},93628:(e,t,n)=>{n.d(t,{t:()=>p});var o=n(59284),i=n(39238),s=n(12640),r=n(69220),a=n(56353);const l=e=>e-2*a.gP,c=(e,t,n)=>{let o=t;return o="number"===typeof e?e:"fit"===e?l(t):((e,t)=>t?e>a.Eq?e:a.Eq:l(e))(t,n),`${o}px`},u=e=>{const{width:t,disablePortal:n,virtualized:o}=e;return[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.rects.reference.width,o);"number"!==typeof t&&"fit"!==t?(e.styles.popper.minWidth=s,e.styles.popper.width=void 0):(e.styles.popper.minWidth=s,e.styles.popper.width=s),e.styles.popper.maxWidth=`max(90vw, ${l(e.rects.reference.width)}px)`,e.modifiersData[`${n}#persistent`]={skip:"number"!==typeof t}},effect:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.elements.reference.offsetWidth,o);"number"!==typeof t&&"fit"!==t?e.elements.popper.style.minWidth=s:(e.elements.popper.style.minWidth=s,e.elements.popper.style.width=s),e.elements.popper.style.maxWidth=`max(90vw, ${e.elements.reference.offsetWidth}px)`}},{name:"preventOverflow",options:{padding:10,altBoundary:n,altAxis:!0}}]},d=(0,r.om)("select-popup"),h=["bottom-start","bottom-end","top-start","top-end"],p=o.forwardRef((({handleClose:e,onAfterClose:t,width:n,open:r,placement:l=h,controlRef:c,children:p,className:v,disablePortal:m,virtualized:f,mobile:g,id:b},C)=>g?o.createElement(s.c,{qa:a.pn.SHEET,className:v,visible:Boolean(r),onClose:e},p):o.createElement(i.z,{contentClassName:d(null,v),qa:a.pn.POPUP,anchorRef:C,placement:l,offset:[a.gP,a.gP],open:r,onClose:e,disablePortal:m,restoreFocus:!0,restoreFocusRef:c,modifiers:u({width:n,disablePortal:m,virtualized:f}),id:b,onTransitionExited:t},p)));p.displayName="SelectPopup"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/98234.c2934def.chunk.js b/ydb/core/viewer/monitoring/static/js/98234.c2934def.chunk.js new file mode 100644 index 0000000000..c2f7be6c02 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/98234.c2934def.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 98234.c2934def.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[98234],{98234:(x,e,i)=>{i.r(e),i.d(e,{conf:()=>d,language:()=>f});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/98234.c2934def.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/98234.c2934def.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/98256.8a661541.chunk.js b/ydb/core/viewer/monitoring/static/js/98256.8a661541.chunk.js new file mode 100644 index 0000000000..a009254b91 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/98256.8a661541.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[98256],{98256:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,k,M=C(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)({}).hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},h.apply(null,arguments)}function Z({title:e,titleId:t,...C},Z){return M.createElement("svg",h({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?M.createElement("title",{id:t},e):null,r||(r=M.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=M.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=M.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=M.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=M.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=M.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=M.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=M.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=M.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=M.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=M.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=M.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),k||(k=M.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=M.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/98268.2e2a9c9c.chunk.js b/ydb/core/viewer/monitoring/static/js/98268.2e2a9c9c.chunk.js new file mode 100644 index 0000000000..bb2da173c9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/98268.2e2a9c9c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[98268],{34073:(e,n,t)=>{var a=t(51572);function o(e){e.register(a),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",(function(n){if("twig"===n.language){e.languages["markup-templating"].buildPlaceholders(n,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"twig")}))}e.exports=o,o.displayName="twig",o.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,o,i){if(t.language===a){var r=t.tokenStack=[];t.code=t.code.replace(o,(function(e){if("function"===typeof i&&!i(e))return e;for(var o,s=r.length;-1!==t.code.indexOf(o=n(a,s));)++s;return r[s]=e,o})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var o=0,i=Object.keys(t.tokenStack);!function r(s){for(var u=0;u<s.length&&!(o>=i.length);u++){var l=s[u];if("string"===typeof l||l.content&&"string"===typeof l.content){var g=i[o],d=t.tokenStack[g],c="string"===typeof l?l:l.content,p=n(a,g),f=c.indexOf(p);if(f>-1){++o;var k=c.substring(0,f),b=new e.Token(a,e.tokenize(d,t.grammar),"language-"+a,d),m=c.substring(f+p.length),h=[];k&&h.push.apply(h,r([k])),h.push(b),m&&h.push.apply(h,r([m])),"string"===typeof l?s.splice.apply(s,[u,1].concat(h)):l.content=h}}else l.content&&r(l.content)}return s}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},98268:(e,n,t)=>{t.d(n,{default:()=>o});var a=t(34073);const o=t.n(a)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js b/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js deleted file mode 100644 index ae741ddd54..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9842.b8ba19ad.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9842],{79842:(e,r,i)=>{i.r(r),i.d(r,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[[/@identifiersWithDashes/,""],[/(\s)((?:@startingWithDash)+)/,["white","attribute.name"]],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@builtins":"type.identifier","@default":""}}],{include:"@whitespace"},{include:"@strings"},{include:"@parameters"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/@symbols/,"delimiter"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"],[/"/,"string","@dblStringBody"]],stringBody:[[/'/,"string","@popall"],[/./,"string"]],dblStringBody:[[/"/,"string","@popall"],[/./,"string"]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,["constants","white","string.heredoc.delimiter","string.heredoc","string.heredoc.delimiter"]]],parameters:[[/\$\d+/,"variable.predefined"],[/\$\w+/,"variable"],[/\$[*@#?\-$!0_]/,"variable"],[/\$'/,"variable","@parameterBodyQuote"],[/\$"/,"variable","@parameterBodyDoubleQuote"],[/\$\(/,"variable","@parameterBodyParen"],[/\$\{/,"variable","@parameterBodyCurlyBrace"]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[']/,"variable","@pop"]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/["]/,"variable","@pop"]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[)]/,"variable","@pop"]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[}]/,"variable","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/98559.7d826ee7.chunk.js b/ydb/core/viewer/monitoring/static/js/98559.7d826ee7.chunk.js new file mode 100644 index 0000000000..9e9c958262 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/98559.7d826ee7.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[98559],{75672:e=>{function I(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|\u2026|,|!/}}e.exports=I,I.displayName="lolcode",I.aliases=[]},98559:(e,I,o)=>{o.d(I,{default:()=>a});var s=o(75672);const a=o.n(s)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js b/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js deleted file mode 100644 index 41fb11fc7c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 9872.65a6fae7.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9872],{99872:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>o,language:()=>i});var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach((e=>{n.push(e),n.push(e.toUpperCase()),n.push((e=>e.charAt(0).toUpperCase()+e.substr(1))(e))}));var i={defaultToken:"",tokenPostfix:".apex",keywords:n,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9882.b983931a.chunk.js b/ydb/core/viewer/monitoring/static/js/9882.b983931a.chunk.js deleted file mode 100644 index a801f38e77..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9882.b983931a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9882],{59882:function(a,i,n){a.exports=function(a){"use strict";function i(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var n=i(a),_={name:"gd",weekdays:"Did\xf2mhnaich_Diluain_Dim\xe0irt_Diciadain_Diardaoin_Dihaoine_Disathairne".split("_"),months:"Am Faoilleach_An Gearran_Am M\xe0rt_An Giblean_An C\xe8itean_An t-\xd2gmhios_An t-Iuchar_An L\xf9nastal_An t-Sultain_An D\xe0mhair_An t-Samhain_An D\xf9bhlachd".split("_"),weekStart:1,weekdaysShort:"Did_Dil_Dim_Dic_Dia_Dih_Dis".split("_"),monthsShort:"Faoi_Gear_M\xe0rt_Gibl_C\xe8it_\xd2gmh_Iuch_L\xf9n_Sult_D\xe0mh_Samh_D\xf9bh".split("_"),weekdaysMin:"D\xf2_Lu_M\xe0_Ci_Ar_Ha_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"}};return n.default.locale(_,null,!0),_}(n(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/98958.21184356.chunk.js b/ydb/core/viewer/monitoring/static/js/98958.21184356.chunk.js new file mode 100644 index 0000000000..81f815b86f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/98958.21184356.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[98958],{38453:a=>{function t(a){a.languages.apl={comment:/(?:\u235d|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/\xaf?(?:\d*\.?\b\d+(?:e[+\xaf]?\d+)?|\xaf|\u221e)(?:j\xaf?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+\xaf]?\d+)?|\xaf|\u221e))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/\u2395[A-Z]+/i,alias:"function"},constant:/[\u236c\u233e#\u2395\u235e]/,function:/[-+\xd7\xf7\u2308\u230a\u2223|\u2373\u2378?*\u235f\u25cb!\u2339<\u2264=>\u2265\u2260\u2261\u2262\u220a\u2377\u222a\u2229~\u2228\u2227\u2371\u2372\u2374,\u236a\u233d\u2296\u2349\u2191\u2193\u2282\u2283\u2286\u2287\u2337\u234b\u2352\u22a4\u22a5\u2355\u234e\u22a3\u22a2\u2341\u2342\u2248\u236f\u2197\xa4\u2192]/,"monadic-operator":{pattern:/[\\\/\u233f\u2340\xa8\u2368\u2336&\u2225]/,alias:"operator"},"dyadic-operator":{pattern:/[.\u2363\u2360\u2364\u2218\u2338@\u233a\u2365]/,alias:"operator"},assignment:{pattern:/\u2190/,alias:"keyword"},punctuation:/[\[;\]()\u25c7\u22c4]/,dfn:{pattern:/[{}\u237a\u2375\u2376\u2379\u2207\u236b:]/,alias:"builtin"}}}a.exports=t,t.displayName="apl",t.aliases=[]},98958:(a,t,e)=>{e.d(t,{default:()=>i});var n=e(38453);const i=e.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99.73d10ff1.chunk.js b/ydb/core/viewer/monitoring/static/js/99.73d10ff1.chunk.js deleted file mode 100644 index 74b330448b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/99.73d10ff1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99],{5744:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},6156:(e,t,l)=>{l.d(t,{F:()=>T});var n=l(59284),a=l(81240),o=l(84476),i=l(80604),r=l(99991),s=l(63365),c=l(46423),d=l(87184);const m=n.createContext(null),u=()=>{const e=n.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},v=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var w=l(69220);const g=(0,w.om)("alert"),h=({layout:e,view:t,children:l})=>n.createElement(m.Provider,{value:{layout:e,view:t}},l);var p=l(18677),f=l(10800),E=l(45720),A=l(43937),b=l(5744),y=l(70825),C=l(71153),x=l(94420);const N=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var z=l(27612);const k={danger:{filled:p.A,outlined:f.A},info:{filled:E.A,outlined:A.A},success:{filled:b.A,outlined:y.A},warning:{filled:C.A,outlined:x.A},utility:{filled:N,outlined:z.A},normal:null};var L=l(98089);var R=l(72837);const M=JSON.parse('{"label_close":"Close"}'),O=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),j=(0,R.N)({en:M,ru:O},"Alert"),T=e=>{const{theme:t="normal",view:l="filled",layout:m="vertical",message:u,className:v,corners:w,style:p,onClose:f,align:E,qa:A}=e;return n.createElement(h,{layout:m,view:l},n.createElement(i.Z,{style:p,className:g({corners:w},(0,c.Y)({py:4,px:5},v)),theme:t,view:l,qa:A},n.createElement(d.s,{gap:"3",alignItems:E},"undefined"===typeof e.icon?n.createElement(T.Icon,{theme:t,view:l}):e.icon,n.createElement(d.s,{direction:"vertical"===m?"column":"row",gap:"5",grow:!0},n.createElement(d.s,{gap:"2",grow:!0,className:g("text-content")},n.createElement(d.s,{direction:"column",gap:"1",grow:!0,justifyContent:E},"string"===typeof e.title?n.createElement(T.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(T.Actions,{items:e.actions}):e.actions),f&&n.createElement(o.$,{view:"flat",className:g("close-btn"),onClick:f,extraProps:{"aria-label":j("label_close")}},n.createElement(r.I,{data:a.A,size:18,className:(0,s.$)({color:"secondary"})})))))};T.Icon=({className:e,theme:t,view:l="filled",size:a=18})=>{const o=k[t];if(!o)return null;let i;return"success"===t?i="positive":"normal"!==t&&(i=t),n.createElement("div",{className:g("icon",(0,s.$)({color:i},e))},n.createElement(r.I,{data:o[l],size:a}))},T.Title=({text:e,className:t})=>n.createElement(L.E,{variant:"subheader-2",className:g("title",t)},e),T.Actions=({items:e,children:t,className:l})=>{const{layout:a}=u();return n.createElement(d.s,{className:g("actions",{minContent:"horizontal"===a},l),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===a?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},l)=>n.createElement(v,{key:l,onClick:e},t))))||t)},T.Action=v},10800:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},18677:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},45720:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},71153:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},80604:(e,t,l)=>{l.d(t,{Z:()=>s});var n=l(27145),a=l(59284),o=l(46734),i=l(9296);const r=(0,l(69220).om)("card"),s=a.forwardRef((function(e,t){const{type:l="container",theme:s,view:c,size:d="m",children:m,className:u,onClick:v,disabled:w,selected:g}=e,h=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),p="selection"===l,f="container"===l,E=("action"===l||p)&&Boolean(v)&&!w,A=f?"normal":void 0,b=f||p?"outlined":void 0,y=E?v:void 0,{onKeyDown:C}=(0,o.N)(v);return a.createElement(i.a,Object.assign({ref:t,role:E?"button":void 0,className:r({theme:s||A,view:c||b,type:l,selected:g,size:d,disabled:w,clickable:E},u),onClick:y,onKeyDown:E?C:void 0,tabIndex:E?0:void 0},h),m)}))},90099:(e,t,l)=>{l.r(t),l.d(t,{TopPanel:()=>s});var n=l(59284),a=l(6156),o=l(49034),i=l(16258);l(82435);const r=({topAlert:e})=>{const t=n.useRef(null),l=(e=>{const[t,l]=n.useState(0);return n.useEffect((()=>{if(e.current){const{current:t}=e;l(t.clientHeight)}}),[e]),t})(t),a=n.useCallback((e=>{const t=document.getElementsByClassName("g-root").item(0);null===t||void 0===t||t.style.setProperty("--gn-aside-top-panel-height",e+"px")}),[]),i=n.useCallback((()=>{var e;t.current&&a((null===(e=t.current)||void 0===e?void 0:e.clientHeight)||0)}),[t,a]);return n.useLayoutEffect((()=>{const t=(0,o.d)(i,200,{leading:!0});return e&&(window.addEventListener("resize",t),t()),()=>{window.removeEventListener("resize",t),a(0)}}),[e,l,t,i,a]),{topRef:t,updateTopSize:i}},s=({topAlert:e})=>{const{topRef:t,updateTopSize:l}=r({topAlert:e}),[o,s]=n.useState(!0),c=n.useCallback((()=>{var t;s(!1),null===(t=null===e||void 0===e?void 0:e.onCloseTopAlert)||void 0===t||t.call(e)}),[e]);return n.useEffect((()=>{o||l()}),[o,l]),e&&e.message?n.createElement("div",{ref:t,className:(0,i.b)("pane-top",{opened:o})},o&&n.createElement(n.Fragment,null,n.createElement(a.F,{className:(0,i.b)("pane-top-alert",{centered:e.centered,dense:e.dense}),corners:"square",layout:"horizontal",align:e.align,theme:e.theme||"warning",view:e.view,icon:e.icon,title:e.title,message:e.message,actions:e.actions,onClose:e.closable?c:void 0}),n.createElement("div",{className:(0,i.b)("pane-top-divider")}))):null}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99010.0141f0a0.chunk.js b/ydb/core/viewer/monitoring/static/js/99010.0141f0a0.chunk.js new file mode 100644 index 0000000000..7eccaf05ce --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99010.0141f0a0.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 99010.0141f0a0.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99010],{99010:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>o,language:()=>n});var o={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},n={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/99010.0141f0a0.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/99010.0141f0a0.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/9908.4bd3acb1.chunk.js b/ydb/core/viewer/monitoring/static/js/9908.4bd3acb1.chunk.js deleted file mode 100644 index 4ac713cb69..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9908.4bd3acb1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9908],{59908:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tzm",weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekStart:6,weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99176.319e969d.chunk.js b/ydb/core/viewer/monitoring/static/js/99176.319e969d.chunk.js new file mode 100644 index 0000000000..8f83b47c2e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99176.319e969d.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 99176.319e969d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99176],{99176:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>n,language:()=>i});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},i={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/99176.319e969d.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/99176.319e969d.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/9922.367b63b0.chunk.js b/ydb/core/viewer/monitoring/static/js/9922.367b63b0.chunk.js deleted file mode 100644 index 6be8a83451..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9922.367b63b0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9922],{89922:function(e,_,a){e.exports=function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=_(e),o={name:"pt-br",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return a.default.locale(o,null,!0),o}(a(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9930.e56b072a.chunk.js b/ydb/core/viewer/monitoring/static/js/9930.e56b072a.chunk.js new file mode 100644 index 0000000000..b2b48d2f12 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9930.e56b072a.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9930],{765:E=>{function _(E){E.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}E.exports=_,_.displayName="cmake",_.aliases=[]},9930:(E,_,T)=>{T.d(_,{default:()=>R});var I=T(765);const R=T.n(I)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99341.613b8fce.chunk.js b/ydb/core/viewer/monitoring/static/js/99341.613b8fce.chunk.js new file mode 100644 index 0000000000..3818174cea --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99341.613b8fce.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99341],{53392:e=>{function a(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}e.exports=a,a.displayName="wasm",a.aliases=[]},99341:(e,a,t)=>{t.d(a,{default:()=>s});var r=t(53392);const s=t.n(r)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99466.a47d41f5.chunk.js b/ydb/core/viewer/monitoring/static/js/99466.a47d41f5.chunk.js new file mode 100644 index 0000000000..908e7cabf2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99466.a47d41f5.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99466],{99466:function(_,e,t){_.exports=function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ta",weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"}};return t.default.locale(d,null,!0),d}(t(88409))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99753.25160545.chunk.js b/ydb/core/viewer/monitoring/static/js/99753.25160545.chunk.js new file mode 100644 index 0000000000..ea439b0e71 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99753.25160545.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99753],{36846:e=>{function l(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}e.exports=l,l.displayName="cil",l.aliases=[]},99753:(e,l,a)=>{a.d(l,{default:()=>t});var n=a(36846);const t=a.n(n)()}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99796.a8f76855.chunk.js b/ydb/core/viewer/monitoring/static/js/99796.a8f76855.chunk.js new file mode 100644 index 0000000000..86b50a01a6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99796.a8f76855.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99796],{3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),r=s(24600),n=s(7435),o=s(16439),i=s(90182);const l=(0,o.H)(["success","warning","danger"],1,2),d={"block-4-2":(0,o.H)(["success","warning","danger"],1,2),"mirror-3-dc":(0,o.H)(["success","warning","danger"],1,3)},u=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in d?d[e.ErasureSpecies]:l)(e.Degraded)};function c(e,t){var s;let a=!0;return(0,n.f8)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(a&&=String(e.VDiskId.GroupID)===t.groupId),(0,n.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,n.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,n.f8)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(a&&=String(e.VDiskSlotId)===t.vDiskSlotId),a}const m=10;function p(e){return(0,n.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,n.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,n.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,n.f8)(null===e||void 0===e?void 0:e.groupId)||(0,n.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[],t){const s=(0,i.N4)(r.K);return a.useMemo((()=>{const a=[];return function(e){return"mirror-3-dc"===e||"mirror-3of4"===e}(t)?(e.forEach(((t,r)=>{var n,o,i;(null===s||void 0===s||null===(n=s.get(Number(null===t||void 0===t?void 0:t.NodeId)))||void 0===n?void 0:n.DC)!==(null===s||void 0===s||null===(o=s.get(Number(null===(i=e[r+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&a.push(r)})),a):a}),[t,e,s])}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>n,iZ:()=>u,qs:()=>d});var a=s(94025),r=s(67375);const n={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(n).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=n.Grey,l=o[i],d={[r.W.OK]:n.Green,[r.W.Initial]:n.Yellow,[r.W.SyncGuidRecovery]:n.Yellow,[r.W.LocalRecoveryError]:n.Red,[r.W.SyncGuidRecoveryError]:n.Red,[r.W.PDiskError]:n.Red},u={[a.t.Initial]:n.Grey,[a.t.Normal]:n.Green,[a.t.InitialFormatRead]:n.Yellow,[a.t.InitialSysLogRead]:n.Yellow,[a.t.InitialCommonLogRead]:n.Yellow,[a.t.InitialFormatReadError]:n.Red,[a.t.InitialSysLogReadError]:n.Red,[a.t.InitialSysLogParseError]:n.Red,[a.t.InitialCommonLogReadError]:n.Red,[a.t.InitialCommonLogParseError]:n.Red,[a.t.CommonLoggerInitError]:n.Red,[a.t.OpenFileError]:n.Red,[a.t.ChunkQuotaError]:n.Red,[a.t.DeviceIoError]:n.Red}},7187:(e,t,s)=>{s.d(t,{H7:()=>c,NJ:()=>i,SW:()=>d,XY:()=>u,gh:()=>p,r$:()=>m});var a=s(7435),r=s(54090),n=s(16439),o=s(5707);function i(e){return"VDiskId"in e}const l=(0,n.H)([r.m.Green,r.m.Yellow,r.m.Red]),d=e=>(0,a.f8)(e)?c(l(e)):0;function u(e){return void 0===e?o.Yh:o.A$[e]||o.Yh}function c(e){return e?o.aW[e]:0}function m(e,t){if((0,a.f8)(e)&&(0,a.f8)(t))return`${e}-${t}`}function p(e,t,s){return[e,t,s].join("-")}},8809:(e,t,s)=>{s.d(t,{y:()=>E});var a=s(77506),r=s(88226),n=s(13096),o=s(44294),i=s(59284),l=s(87184),d=s(47665),u=s(92459),c=s(24600),m=s(54090),p=s(7435),h=s(76086),g=s(31684),v=s(7187),f=s(90182),S=s(12888),k=s(41650),y=s(60073),N=s(25196),b=s(96927),x=s(29819),D=s(56839);function w(e){let t;const s=(0,v.NJ)(e)?e.VDiskSlotId:e.VSlotId;if((0,p.f8)(s)&&(0,p.f8)(e.PDiskId)&&(0,p.f8)(e.NodeId))t=(0,u.yX)(s,e.PDiskId,e.NodeId);else if((0,p.f8)(e.NodeId)&&(0,v.NJ)(e)){var a;t=(0,x.vI)(e.NodeId,{pdiskId:null===(a=e.PDiskId)||void 0===a?void 0:a.toString(),vdiskId:(0,D.U9)(e.VDiskId)},"structure")}return t}var I=s(39110),C=s(60712);const P=(0,a.cn)("vdisk-storage-popup"),j=({data:e})=>{const t=(0,v.NJ)(e),s=(0,S.X)(),a=i.useMemo((()=>t?((e,t)=>{var s,a,r,n;const{NodeId:o,PDiskId:i,VDiskSlotId:d,StringifiedId:c,VDiskState:h,SatisfactionRank:v,DiskSpace:f,FrontQueues:S,Replicated:y,UnsyncedVDisks:b,AllocatedSize:x,ReadThroughput:D,WriteThroughput:w,StoragePoolName:P}=e,j=[{label:"VDisk",value:c},{label:"State",value:null!==h&&void 0!==h?h:"not available"}];var A,E;if(P&&j.push({label:"StoragePool",value:P}),v&&(null===(s=v.FreshRank)||void 0===s?void 0:s.Flag)!==m.m.Green&&j.push({label:"Fresh",value:null===(A=v.FreshRank)||void 0===A?void 0:A.Flag}),v&&(null===(a=v.LevelRank)||void 0===a?void 0:a.Flag)!==m.m.Green&&j.push({label:"Level",value:null===(E=v.LevelRank)||void 0===E?void 0:E.Flag}),v&&null!==(r=v.FreshRank)&&void 0!==r&&r.RankPercent&&j.push({label:"Fresh",value:v.FreshRank.RankPercent}),v&&null!==(n=v.LevelRank)&&void 0!==n&&n.RankPercent&&j.push({label:"Level",value:v.LevelRank.RankPercent}),f&&f!==m.m.Green&&j.push({label:"Space",value:f}),S&&S!==m.m.Green&&j.push({label:"FrontQueues",value:S}),!1===y&&j.push({label:"Replicated",value:"NO"}),b&&j.push({label:"UnsyncVDisks",value:b}),Number(x)&&j.push({label:"Allocated",value:(0,k.wb)(x)}),Number(D)&&j.push({label:"Read",value:(0,k.O4)(D)}),Number(w)&&j.push({label:"Write",value:(0,k.O4)(w)}),t&&(0,p.f8)(o)&&(0,p.f8)(i)&&(0,p.f8)(d)){const e=(0,g.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:d}),t=(0,u.yX)(d,i,o);j.push({label:"Links",value:(0,C.jsxs)(l.s,{wrap:"wrap",gap:2,children:[(0,C.jsx)(N.K,{title:(0,I.r)("vdisk-page"),url:t,external:!1},t),(0,C.jsx)(N.K,{title:(0,I.r)("developer-ui"),url:e})]})})}return j})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:r,StoragePoolName:n}=e,o=[{label:"State",value:"not available"}];if(n&&o.push({label:"StoragePool",value:n}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:h.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:h.Pd},{label:"VSlotId",value:null!==r&&void 0!==r?r:h.Pd}),t&&(0,p.f8)(s)&&(0,p.f8)(a)&&(0,p.f8)(r)){const e=(0,g.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:r});o.push({label:"Links",value:(0,C.jsx)(N.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),r=(0,f.N4)(c.K),n=(0,p.f8)(e.NodeId)?null===r||void 0===r?void 0:r.get(e.NodeId):void 0,x=i.useMemo((()=>t&&e.PDisk&&(0,b.f)(e.PDisk,n,s)),[e,n,t,s]),D=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)D.push({label:"VDisk",value:(0,C.jsx)(o.E,{to:w(e),children:e.StringifiedId})})}return(0,C.jsxs)("div",{className:P(),children:[e.DonorMode&&(0,C.jsx)(d.J,{className:P("donor-label"),children:"Donor"}),(0,C.jsx)(y.z_,{title:"VDisk",info:a,size:"s"}),x&&(0,C.jsx)(y.z_,{title:"PDisk",info:x,size:"s"}),D.length>0&&(0,C.jsx)(y.z_,{title:"Donors",info:D,size:"s"})]})},A=(0,a.cn)("ydb-vdisk-component"),E=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d,delayClose:u,delayOpen:c})=>{const m=w(e);return(0,C.jsx)(n.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,C.jsx)(j,{data:e}),offset:[0,5],delayClose:u,delayOpen:c,children:(0,C.jsx)("div",{className:A(),children:(0,C.jsx)(o.E,{to:m,className:A("content"),children:(0,C.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),r=s(16029),n=s(11905);const o=a.F.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,{signal:t})=>{try{const s=await window.api.viewer.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,n.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,r.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},10360:(e,t,s)=>{s.d(t,{hu:()=>m,YX:()=>k,LO:()=>p,UW:()=>d,H6:()=>h,qK:()=>i,SE:()=>f,zY:()=>l,GP:()=>N,Ai:()=>c,i4:()=>b,kY:()=>S});var a=s(370),r=s(48372);const n=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),o=(0,r.g4)("ydb-storage-groups-columns",{en:n}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded",State:"State"},u=["DiskSpaceUsage","Latency","AllocationUnits","VDisksPDisks"];function c(e){return u.includes(e)}const m=["GroupId","PoolName","Erasure","Used","VDisks"],p=["GroupId"],h={get PoolName(){return o("pool-name")},get MediaType(){return o("type")},get Erasure(){return o("erasure")},get GroupId(){return o("group-id")},get Used(){return o("used")},get Limit(){return o("limit")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get Latency(){return o("latency")},get AllocationUnits(){return o("allocation-units")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("missing-disks")},get State(){return o("state")}},g={get GroupId(){return o("group-id")},get Erasure(){return o("erasure")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get PoolName(){return o("pool-name")},get Kind(){return o("type")},get Encryption(){return o("encryption")},get MediaType(){return o("type")},get MissingDisks(){return o("missing-disks")},get State(){return o("state")},get Latency(){return o("latency")}},v=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],f=v.map((e=>({value:e,content:g[e]}))),S=a.z.custom((e=>v.includes(e))).catch(void 0),k={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"],State:["State"]},y={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded",State:"State"};function N(e){return y[e]}function b(e){return Boolean(N(e))}},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),r=s(88226),n=s(13096),o=s(44294),i=s(96927),l=s(8809),d=s(92459),u=s(7435),c=s(77506),m=s(3218),p=s(60712);const h=(0,c.cn)("pdisk-storage"),g=({data:e={},vDisks:t,showPopup:s,onShowPopup:c,onHidePopup:g,className:v,progressBarClassName:f,viewContext:S})=>{const{NodeId:k,PDiskId:y}=e,N=(0,u.f8)(k)&&(0,u.f8)(y),b=a.useRef(null);let x;return N&&(x=(0,d.Ck)(y,k)),(0,p.jsxs)("div",{className:h(null,v),ref:b,children:[null!==t&&void 0!==t&&t.length?(0,p.jsx)("div",{className:h("vdisks"),children:t.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.y,{data:e,inactive:!(0,m.OH)(e,S),compact:!0,delayClose:200,delayOpen:200})},e.StringifiedId)))}):null,(0,p.jsx)(n.P,{showPopup:s,offset:[0,5],anchorRef:b,onShowPopup:c,onHidePopup:g,popupContent:(0,p.jsx)(i.O,{data:e}),delayClose:200,children:(0,p.jsxs)(o.E,{to:x,className:h("content"),children:[(0,p.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},11905:(e,t,s)=>{s.d(t,{Rv:()=>y,rz:()=>S,Qi:()=>k});var a=s(94025),r=s(67375),n=s(7187),o=s(27295),i=s(78034);var l=s(73891),d=s(56839),u=s(51930),c=s(64036),m=s(78461);function p(e={}){var t,s,a,r;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=function(e={}){var t,s,a;const{Whiteboard:r,...i}=e,l={...r,...i,PDiskId:null===r||void 0===r?void 0:r.PDiskId},d=i.PDiskId||(0,n.r$)(l.NodeId,l.PDiskId),{AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g}=(0,o.hK)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(t=null===(s=i.Type)||void 0===s?void 0:s.toUpperCase())&&void 0!==t?t:(0,m.Y)(null===r||void 0===r?void 0:r.Category),f=(0,u.d)({State:null===r||void 0===r?void 0:r.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===r||void 0===r?void 0:r.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}),f=null!==(t=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==t?t:null===i||void 0===i?void 0:i.PDiskId,S=null!==(s=h.VDiskId)&&void 0!==s?s:(0,d.U9)(i.VDiskId),k=(0,c.b)(g),y=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),N=null===(r=h.Donors)||void 0===r?void 0:r.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...y,PDisk:v,Donors:N,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,n.XY)(Math.max(...s.map((e=>(0,n.H7)(e.DiskSpace)))))}const g=(e,t)=>{var s;const a=(0,o.WT)(e);return{...a,StoragePoolName:t,Donors:null===a||void 0===a||null===(s=a.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},v=(e,t)=>{var s;let n,i=0,l=0,d=0,u=0,c=0;const{Name:m,MediaType:p}=t;if(e.VDisks)for(const h of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:m,PDisk:p,ReadThroughput:g,WriteThroughput:v}=h,{Type:f,State:S,AvailableSize:k}=(0,o.or)(p);!1!==e&&S===a.t.Normal&&t===r.W.OK||(i+=1);const y=Number(null!==s&&void 0!==s?s:k)||0,N=Number(m)||0;l+=N,d+=y+N,u+=Number(g)||0,c+=Number(v)||0,n=!f||f!==n&&n?"Mixed":f}const v=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>g(e,m))),f=d?((e,t=1)=>{const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t})({Used:l,Limit:d},5):void 0,S=h(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:v,Usage:f,Read:u,Write:c,PoolName:m,Used:l,Limit:d,Degraded:i,MediaType:p||n||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:r=0,Write:n=0,Used:o=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,v=t.map((e=>g(e,s))),f=100*Number(a),S=h(e);return{...e,PoolName:s,GroupId:c,MediaType:u||d,VDisks:v,Usage:f,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(r),Write:Number(n),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:r,NodeGroups:n,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===n||void 0===n?void 0:n.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),c=((e,t)=>{if(t)return t;const s=(e||[]).flatMap((e=>{const t=e.PDisks||[],s=e.VDisks||[];return t.map((e=>s.filter((t=>t.PDiskId===e.PDiskId)).length||0))})),a=Math.max(1,...s);return String(a)})(t,l),m=((e,t)=>{if(t)return t;const s=(e||[]).map((e=>{var t;return(null===(t=e.PDisks)||void 0===t?void 0:t.length)||0})),a=Math.max(1,...s);return String(a)})(t,d),p=null===t||void 0===t?void 0:t.map((e=>((e,t,s)=>{var r,n,l;const d=(null===(r=e.PDisks)||void 0===r?void 0:r.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(n=e.PDisks)||void 0===n?void 0:n.map((t=>({...(0,o.or)(t),NodeId:e.NodeId}))),c=null===(l=e.VDisks)||void 0===l?void 0:l.map((t=>({...(0,o.WT)(t),NodeId:e.NodeId})));return{...(0,i.q1)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:u,VDisks:c,Missing:d,MaximumSlotsPerDisk:t,MaximumDisksPerNode:s}})(e,c,m)));return{nodes:p,total:Number(s)||(null===p||void 0===p?void 0:p.length),found:Number(r),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:r}=e,n=((e,t)=>{let s=[];return e?s=e.map(f):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(v(t,e))}))})),s})(s,t);return{groups:n,total:Number(a)||n.length,found:Number(r)}};function y(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:r}=e,n=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:r,Used:n,Limit:o,MissingDisks:i,VDisks:d=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:g}=e,v=d.map(p),f=h(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(a),Write:Number(r),Used:Number(n),Limit:Number(o),LatencyPutTabletLogMs:(0,l.Jc)(c),LatencyPutUserDataMs:(0,l.Jc)(m),LatencyGetFastMs:(0,l.Jc)(g),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:f}})),o=null===r||void 0===r?void 0:r.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:n,total:Number(s)||n.length,found:Number(t),tableGroups:o}}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),r=s(39238),n=s(43781),o=s.n(n),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:n,anchorRef:i,onShowPopup:u,onHidePopup:c,placement:m=["top","bottom"],contentClassName:p,delayClose:h=100,delayOpen:g=100})=>{const[v,f]=a.useState(!1),S=a.useRef(null),k=a.useMemo((()=>o()((()=>{f(!0),null===u||void 0===u||u()}),g)),[u,g]),y=a.useCallback((()=>{f(!1),null===c||void 0===c||c()}),[c]),N=a.useMemo((()=>o()(y,h)),[y,h]),b=k,[x,D]=a.useState(!1),[w,I]=a.useState(!1),C=a.useCallback((()=>{D(!0)}),[]),P=a.useCallback((()=>{D(!1)}),[]),j=a.useCallback((()=>{I(!0)}),[]),A=a.useCallback((()=>{I(!1)}),[]),E=a.useCallback((()=>{I(!1),D(!1),y()}),[y]),T=v||s||x||w;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:b,onMouseLeave:()=>{k.cancel(),N()},children:e}),(0,l.jsx)(r.z,{contentClassName:d(null,p),anchorRef:i||S,open:T,onMouseEnter:C,onMouseLeave:P,onEscapeKeyDown:E,onBlur:A,placement:m,hasArrow:!0,offset:n||[0,12],children:(0,l.jsx)("div",{onContextMenu:j,children:t})})]})}},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),r=s(77506),n=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,r.cn)("progress-viewer"),u=e=>(0,n.ZV)((0,n.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:r,className:n,size:u="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h,dangerThreshold:g,hideCapacity:v}){const f=(0,a.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(t))*100)||0;S=S>100?100:S;let k=e,y=t,N="/";r?(k=S+"%",y="",N=""):s&&([k,y]=s(Number(e),Number(t)));const b=(0,o.w)({fillWidth:S,warningThreshold:h,dangerThreshold:g,colorizeProgress:m,inverseColorize:p});m&&!(0,i.kf)(t)&&(S=100);const x={width:S+"%"};return(0,i.kf)(e)?(0,l.jsxs)("div",{className:d({size:u,theme:f,status:b},n),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${N} ${y}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${n} error`,children:"no data"})}},16029:(e,t,s)=>{s.d(t,{t:()=>r});var a=s(11905);async function r({version:e="v2",shouldUseGroupsHandler:t,...s},r){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},r);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},r);return(0,a.Qi)(t)}}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),r=s(77506),n=s(66781),o=s(60712);const i=(0,r.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[r]=(0,n.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!r},s),children:[(0,o.jsxs)("div",{className:i("row"),children:[(0,o.jsx)(a.E,{className:i("col-1")}),(0,o.jsx)(a.E,{className:i("col-2")}),(0,o.jsx)(a.E,{className:i("col-3")}),(0,o.jsx)(a.E,{className:i("col-4")}),(0,o.jsx)(a.E,{className:i("col-5")})]}),[...new Array(e)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:(0,o.jsx)(a.E,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>ne});var a=s(79879),r=s(4557),n=s(63291),o=s(47665),i=s(84375),l=s(99991),d=s(71661),u=s(10508),c=s(33775),m=s(13342),p=s(92459),h=s(7435),g=s(77506),v=s(76086),f=s(56839),S=s(16439),k=s(73891),y=s(41650),N=s(59284),b=s(69033),x=s(87184),D=s(8809),w=s(10576),I=s(3218),C=s(60712);const P=(0,g.cn)("ydb-storage-disks");function j({vDisks:e=[],viewContext:t,erasure:s}){const[a,r]=N.useState(),n=(0,I.Ep)(e,s),{theme:{spaceBaseSize:o}}=(0,b.L)();if(!e.length)return null;const i=(300-o*(e.length-1))/e.length;return(0,C.jsxs)("div",{className:P(null),children:[(0,C.jsx)(x.s,{direction:"row",gap:1,grow:!0,style:{width:300},children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(A,{vDisk:e,inactive:!(0,I.OH)(e,t),highlightedVDisk:a,setHighlightedVDisk:r,unavailableVDiskWidth:i},e.StringifiedId||s)))}),(0,C.jsx)("div",{className:P("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map(((e,t)=>{var s;return(0,C.jsx)(E,{vDisk:e,highlightedVDisk:a,setHighlightedVDisk:r,withDCMargin:n.includes(t)},(null===e||void 0===e||null===(s=e.PDisk)||void 0===s?void 0:s.StringifiedId)||t)}))})]})}function A({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:a,unavailableVDiskWidth:r}){const n={...e,PDisk:void 0},o=e.StringifiedId,i=(0,y.kf)(n.AllocatedSize)?void 0:r,l=Number(n.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:P("vdisk-item"),children:(0,C.jsx)(D.y,{data:n,compact:!0,inactive:s,showPopup:t===o,onShowPopup:()=>a(o),onHidePopup:()=>a(void 0),progressBarClassName:P("vdisk-progress-bar")})})}function E({vDisk:e,highlightedVDisk:t,setHighlightedVDisk:s,withDCMargin:a}){const r=e.StringifiedId;return e.PDisk?(0,C.jsx)(w.E,{className:P("pdisk-item",{"with-dc-margin":a}),progressBarClassName:P("pdisk-progress-bar"),data:e.PDisk,showPopup:t===r,onShowPopup:()=>s(r),onHidePopup:()=>s(void 0)}):null}var T=s(7187);const U="--ydb-stack-level",R=(0,g.cn)("stack"),M=({children:e,className:t})=>(0,C.jsx)("div",{className:R(null,t),children:N.Children.map(e,((e,t)=>N.isValidElement(e)?(0,C.jsx)("div",{className:R("layer"),style:{[U]:t},children:e}):null))});function G({data:e,className:t,stackClassName:s,...a}){const{Donors:r,...n}=e||{},o=r&&r.length>0?(0,C.jsxs)(M,{className:s,children:[(0,C.jsx)(D.y,{data:n,...a}),r.map((e=>{const t=(0,T.NJ)(e);return(0,C.jsx)(D.y,{data:e,...a},(0,f.U9)(t?e.VDiskId:e))}))]}):(0,C.jsx)(D.y,{data:e,...a});return(0,C.jsx)("div",{className:t,children:o})}const L=(0,g.cn)("ydb-storage-vdisks");function z({vDisks:e,viewContext:t,erasure:s}){const a=(0,I.Ep)(e,s);return(0,C.jsx)("div",{className:L("wrapper"),children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,C.jsx)(G,{data:e,inactive:!(0,I.OH)(e,t),className:L("item",{"with-dc-margin":a.includes(s)})},e.StringifiedId)))})}var V=s(61456),W=s(10360);const O=(0,g.cn)("ydb-storage-groups-columns"),H={name:W.UW.PoolName,header:W.H6.PoolName,width:250,render:({row:e})=>e.PoolName?(0,C.jsx)(d.s,{content:e.PoolName,placement:["right"],behavior:n.m.Immediate,className:O("pool-name-wrapper"),children:(0,C.jsx)("span",{className:O("pool-name"),children:e.PoolName})}):v.Pd,align:r.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:r.Ay.LEFT,render:({row:e})=>(0,C.jsxs)("div",{children:[(0,C.jsx)(o.J,{children:e.MediaType||"\u2014"}),"\xa0",e.Encryption&&(0,C.jsx)(i.A,{content:(0,V.A)("encrypted"),placement:"right",behavior:n.m.Immediate,children:(0,C.jsx)(o.J,{children:(0,C.jsx)(l.I,{data:a.A,size:18})})})]}),sortable:!1},_={name:W.UW.Erasure,header:W.H6.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:({row:e})=>e.ErasureSpecies?e.ErasureSpecies:"-",align:r.Ay.LEFT},B={name:W.UW.Degraded,header:W.H6.Degraded,width:110,resizeMinWidth:110,render:({row:e})=>e.Degraded?(0,C.jsxs)(o.J,{theme:(0,I.k_)(e),children:["Degraded: ",e.Degraded]}):"-",align:r.Ay.LEFT,defaultOrder:r.Ay.DESCENDING},$={name:W.UW.State,header:W.H6.State,width:150,render:({row:e})=>{var t;return null!==(t=e.State)&&void 0!==t?t:v.Pd},align:r.Ay.LEFT,defaultOrder:r.Ay.DESCENDING},Y={name:W.UW.Usage,header:W.H6.Usage,width:85,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.Usage)?(0,C.jsx)(m.U,{value:Math.floor(e.Usage),theme:(0,S.f)(e.Usage)}):v.Pd,align:r.Ay.LEFT},J={name:W.UW.DiskSpaceUsage,header:W.H6.DiskSpaceUsage,width:115,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.DiskSpaceUsage)?(0,C.jsx)(m.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,S.f)(e.DiskSpaceUsage)}):v.Pd,align:r.Ay.LEFT},K={name:W.UW.GroupId,header:W.H6.GroupId,width:140,render:({row:e})=>e.GroupId?(0,C.jsx)(u.c,{name:String(e.GroupId),path:(0,p._g)(e.GroupId),hasClipboardButton:!0,showStatus:!1}):"-",sortAccessor:e=>Number(e.GroupId),align:r.Ay.LEFT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,y.wb)(e.Used,!0),align:r.Ay.RIGHT},X={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,y.wb)(e.Limit),align:r.Ay.RIGHT},q={name:W.UW.DiskSpace,header:W.H6.DiskSpace,width:70,render:({row:e})=>(0,C.jsx)(c.k,{status:e.DiskSpace}),align:r.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,y.O4)(e.Read):"-",align:r.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,y.O4)(e.Write):"-",align:r.Ay.RIGHT},te={name:W.UW.Latency,header:W.H6.Latency,width:100,render:({row:e})=>(0,h.f8)(e.LatencyPutTabletLogMs)?(0,k.Xo)(e.LatencyPutTabletLogMs):v.Pd,align:r.Ay.RIGHT},se={name:W.UW.AllocationUnits,header:W.H6.AllocationUnits,width:150,render:({row:e})=>(0,h.f8)(e.AllocationUnits)?(0,f.ZV)(e.AllocationUnits):v.Pd,align:r.Ay.RIGHT},ae=e=>({name:W.UW.VDisks,header:W.H6.VDisks,className:O("vdisks-column"),render:({row:t})=>(0,C.jsx)(z,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:r.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),re=e=>({name:W.UW.VDisksPDisks,header:W.H6.VDisksPDisks,className:O("disks-column"),render:({row:t})=>(0,C.jsx)(j,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext,erasure:t.ErasureSpecies}),align:r.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),ne=()=>[K,F,_,Y,Q,X],oe=e=>[K,H,F,_,B,$,Y,J,Q,X,q,Z,ee,te,se,ae(e),re(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),r=s(39238),n=s(60712);const o=({children:e,content:t,className:s,pinOnClick:o,hasArrow:i=!0,placement:l=["top","bottom"],...d})=>{const[u,c]=a.useState(!1),[m,p]=a.useState(!1),h=a.useRef(null);return(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(r.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,n.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),r=s(51930),n=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:r}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:r}),NodeId:t,PDiskId:s,VDiskSlotId:r}}const{PDisk:s,PDiskId:r,VDiskId:o,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=e,v=s?d({...s,NodeId:null!==(t=null===s||void 0===s?void 0:s.NodeId)&&void 0!==t?t:c}):void 0,f=null!==r&&void 0!==r?r:null===v||void 0===v?void 0:v.PDiskId,S=u({AvailableSize:null!==p&&void 0!==p?p:null===s||void 0===s?void 0:s.AvailableSize,AllocatedSize:h}),k=(0,n.b)(e),y=(0,a.U9)(o);return{...g,...S,VDiskId:o,NodeId:c,PDiskId:f,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:k,StringifiedId:y}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:n,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.r$)(l,d),h=(0,o.Y)(a),g=c({AvailableSize:t,TotalSize:s}),v=(0,r.d)({State:n,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:n,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),r=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:r,AllocatedPercent:Math.round(100*a/r)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),r=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:r,AllocatedPercent:Math.round(100*r/a)}}},31911:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(48372);const r=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),n=(0,a.g4)("ydb-nodes-columns",{en:r})},35736:(e,t,s)=>{s.d(t,{w:()=>r});var a=s(76086);function r({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:r,fillWidth:n}){let o=e?"danger":"good";return r&&(n>t&&n<=s?o="warning":n>s&&(o=e?"good":"danger")),o}},39110:(e,t,s)=>{s.d(t,{r:()=>n});var a=s(48372);const r=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),n=(0,a.g4)("ydb-vDisk-info",{en:r})},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),r=s(89073);const n=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:r,fetchData:n},{signal:o})=>{try{return{data:await n({limit:t,offset:e,filters:a,sortParams:s,columnsIds:r,signal:o})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var o=s(7435),i=s(90182),l=s(44508),d=s(89169);const u=!0;const c=(0,s(77506).cn)("ydb-paginated-table");var m=s(60712);const p=({children:e,className:t,height:s,width:a,align:r="left",resizeable:n})=>(0,m.jsx)("td",{className:c("row-cell",{align:r},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:n?`${a}px`:void 0},children:e}),h=({index:e,columns:t,height:s})=>(0,m.jsx)("tr",{className:c("row",{loading:!0}),children:t.map((t=>{var a;const r=null!==(a=t.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:s,width:t.width,align:t.align,className:t.className,resizeable:r,children:(0,m.jsx)(d.E,{className:c("row-skeleton"),style:{width:"80%",height:"50%"}})},`${t.name}${e}`)}))}),g=({row:e,index:t,columns:s,getRowClassName:a,height:r})=>{const n=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",n),children:s.map((s=>{var a;const n=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:r,width:s.width,align:s.align,className:s.className,resizeable:n,children:s.render({row:e,index:t})},`${s.name}${t}`)}))})},v=({columns:e,children:t})=>(0,m.jsx)("tr",{className:c("row",{empty:!0}),children:(0,m.jsx)("td",{colSpan:e.length,className:c("td"),children:t})});var f=s(48372);const S=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),k=(0,f.g4)("ydb-paginated-table",{ru:S,en:{empty:"No data"}});const y=a.memo;const N=y((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:r,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:y,renderEmptyDataMessage:N,onDataFetched:b,isActive:x}){var D;const[w,I]=a.useState(!0),[C]=(0,i.Nt)(),P={offset:e*t,limit:t,fetchData:u,filters:p,sortParams:f,columnsIds:d.map((e=>e.name)),tableName:c};n.useFetchTableChunkQuery(P,{skip:w||!x,pollingInterval:C});const{currentData:j,error:A}=n.endpoints.fetchTableChunk.useQueryState(P);a.useEffect((()=>{let e=0;return x&&w&&(e=window.setTimeout((()=>{I(!1)}),200)),()=>{window.clearTimeout(e)}}),[x,w]),a.useEffect((()=>{if(j&&x){const{total:e=0,found:t=0}=j;b(e,t)}}),[j,x,b]);const E=(null===j||void 0===j||null===(D=j.data)||void 0===D?void 0:D.length)||s;return(0,m.jsx)("tbody",{id:e.toString(),style:{height:E*r+"px",display:x?"table-row-group":"block"},children:(()=>{var e;if(!x)return null;if(!j){if(A){const e=A;return(0,m.jsx)(v,{columns:d,children:y?y(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:r,index:e},e)))}return null!==(e=j.data)&&void 0!==e&&e.length?j.data.map(((e,t)=>(0,m.jsx)(g,{index:t,row:e,columns:d,height:r,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:N?N():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:r}){const n=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=n.current;if(!a)return;let o,l,d;const u=function(e){let t,s=null;return function(...a){t=a,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((s=>{if(x(s),"number"!==typeof o||"number"!==typeof l)return;const a=s.clientX-o,n=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);n!==d&&(d=n,null===r||void 0===r||r(d))})),c=e=>{x(e),void 0!==d&&(null===r||void 0===r||r(d)),i(!1),o=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{l=s(),x(e),o=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return a.addEventListener("mousedown",m),()=>{a.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[r,e,t,s]),(0,m.jsx)("span",{ref:n,className:c("resize-handler",{resizing:o}),onClick:e=>x(e)})}function x(e){e.preventDefault(),e.stopPropagation()}const D=({order:e})=>(0,m.jsx)("svg",{className:c("sort-icon",{desc:-1===e}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,m.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})}),w=({sortOrder:e,sortable:t,defaultSortOrder:s})=>t?(0,m.jsx)("span",{className:c("sort-icon-container",{shadow:!e}),children:(0,m.jsx)(D,{order:e||s})}):null,I=({column:e,resizeable:t,sortOrder:s,defaultSortOrder:r,onSort:n,rowHeight:o,onCellMount:i,onCellUnMount:l,onColumnsResize:d})=>{var u;const p=a.useRef(null);a.useEffect((()=>{const e=p.current;return e&&(null===i||void 0===i||i(e)),()=>{e&&(null===l||void 0===l||l(e))}}),[i,l]);const h=a.useCallback((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),g=a.useCallback((t=>{null===d||void 0===d||d(e.name,t)}),[d,e.name]),v=null!==(u=e.header)&&void 0!==u?u:e.name,f={height:`${o}px`,width:`${e.width}px`,minWidth:t?`${e.width}px`:void 0,maxWidth:t?`${e.width}px`:void 0};return(0,m.jsxs)("th",{ref:p,className:c("head-cell-wrapper"),style:f,children:[(0,m.jsxs)("div",{className:c("head-cell",{align:e.align,sortable:e.sortable},e.className),onClick:()=>{e.sortable&&(null===n||void 0===n||n(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(w,{sortOrder:s,sortable:e.sortable,defaultSortOrder:r})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:r=-1,rowHeight:n=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==r)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:r,columnId:e};null===t||void 0===t||t(s),i(s)};return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("colgroup",{children:e.map((e=>(0,m.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,m.jsx)("thead",{className:c("head"),children:(0,m.jsx)("tr",{children:e.map((e=>{var t;const a=o.columnId===e.name?o.sortOrder:void 0,i=s&&(null!==(t=e.resizeable)&&void 0!==t?t:u);return(0,m.jsx)(I,{column:e,resizeable:i,sortOrder:a,defaultSortOrder:r,onSort:l,rowHeight:n,onColumnsResize:s},e.name)}))})})]})};var P=s(13847);const j=({limit:e,initialEntitiesCount:t,fetchData:s,filters:n,tableName:o,columns:i,getRowClassName:l,rowHeight:d=41,parentRef:u,initialSortParams:p,onColumnsResize:h,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:f,containerClassName:S})=>{const k=t||0,y=t||1,[b,x]=a.useState(p),[D,w]=a.useState(k),[I,j]=a.useState(y),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:r,chunkSize:n,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/n)),[n,s]),[l,d]=a.useState(0),[u,c]=a.useState(Math.min(o,Math.max(i-1,0))),m=a.useCallback((()=>{const s=null===e||void 0===e?void 0:e.current,a=t.current;if(!s||!a)return null;const l=function(e,t){let s=e,a=0;for(;s&&s!==t;)a+=s.offsetTop,s=s.offsetParent;return a}(a,s),d=s.scrollTop,u=Math.max(d-l,0),c=u+s.clientHeight;return{start:Math.max(Math.floor(u/r/n)-o,0),end:Math.min(Math.floor(c/r/n)+o,Math.max(i-1,0))}}),[e,t,r,n,o,i]),p=a.useCallback((()=>{const e=m();e&&(d(e.start),c(e.end))}),[m]);return a.useEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;const s=(0,P.throttle)(p,100,{leading:!0,trailing:!0});return t.addEventListener("scroll",s),()=>{t.removeEventListener("scroll",s),s.cancel()}}),[p,e]),a.useMemo((()=>{const e=Array(i).fill(!1);for(let t=l;t<=u;t++)e[t]=!0;return e}),[i,l,u])})({parentRef:u,tableRef:T,totalItems:I,rowHeight:d,chunkSize:e}),R=a.useMemo((()=>I?I%e||e:1),[I,e]),M=a.useCallback(((e,t)=>{w(e),j(t),E(!1)}),[]);a.useLayoutEffect((()=>{w(k),j(y),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[n,y,k,u]);const G=()=>(0,m.jsxs)("table",{className:c("table"),children:[(0,m.jsx)(C,{columns:i,onSort:x,onColumnsResize:h}),U.map(((t,a)=>(0,m.jsx)(N,{id:a,calculatedCount:a===U.length-1?R:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:n,tableName:o,sortParams:b,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:M,isActive:t},a)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(r.L,{children:[(0,m.jsx)(r.L.Controls,{children:g({inited:!A,totalEntities:D,foundEntities:I})}),(0,m.jsx)(r.L.Table,{children:G()})]}):G()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,r]=(0,A.a)(e),n=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(t,a);return(0,m.jsx)(j,{columns:n,onColumnsResize:r,containerClassName:c("resizeable-table-container"),...s})}},40781:(e,t,s)=>{function a(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{R:()=>a})},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),r=s(28664),n=s(77506),o=s(60712);const i=(0,n.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:n,debounce:l=200,placeholder:d})=>{const[u,c]=a.useState(t),m=a.useRef();a.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,o.jsx)(r.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,n),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},43951:(e,t,s)=>{s.d(t,{K:()=>n});var a=s(59284),r=s(59001);const n=(e,t,s,n,o)=>{const[i,l]=a.useState((()=>r.f.readUserSettingsValue(t,n)));return{columnsToShow:a.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),a=null===o||void 0===o?void 0:o.includes(t);return s||a}))),[e,o,i]),columnsToSelect:a.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===o||void 0===o?void 0:o.includes(e),a=i.includes(e);return{id:e,title:s[e],selected:t||a,required:t,sticky:t?"start":void 0}}))),[e,s,o,i]),setColumns:a.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));r.f.setUserSettingsValue(t,s),l(s)}),[t])}}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),r=s(24543),n=s(80176),o=s(60712);const i=(0,a.cn)("ydb-pool-bar"),l=({data:e={}})=>{const{Usage:t=0}=e,s=Math.min(100*t,100),a=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(s);return(0,o.jsx)(r.u,{className:i({type:a}),content:(0,o.jsx)(n.HG,{data:e,className:i("popup-content")}),children:(0,o.jsx)("div",{style:{height:`${s}%`},className:i("value",{type:a})})})},d=(0,a.cn)("ydb-pools-graph"),u=({pools:e=[]})=>(0,o.jsx)("div",{className:d(),children:e.map(((e,t)=>(0,o.jsx)(l,{data:e},t)))})},50672:(e,t,s)=>{s.d(t,{D:()=>n});var a=s(48372);const r=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),n=(0,a.g4)("ydb-pDisk-info",{en:r})},51930:(e,t,s)=>{s.d(t,{d:()=>n});var a=s(5707),r=s(7187);function n(e){const t=function(e){return t=e,void 0!==t&&t in a.iZ?a.iZ[e]:a.Km;var t}(e.State),s=(0,r.SW)(e.AllocatedPercent);return t!==a.Km&&s?Math.max(t,s):t}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),r=s(77506);const n=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,r.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:r,className:l})=>{let d="";return s&&(d+=`${s}: `),r?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${n("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),r=s(6354);const n={[r.r.Dead]:a.m.Red,[r.r.Created]:a.m.Yellow,[r.r.ResolveStateStorage]:a.m.Yellow,[r.r.Candidate]:a.m.Yellow,[r.r.BlockBlobStorage]:a.m.Yellow,[r.r.WriteZeroEntry]:a.m.Yellow,[r.r.Restored]:a.m.Yellow,[r.r.Discover]:a.m.Yellow,[r.r.Lock]:a.m.Yellow,[r.r.Stopped]:a.m.Yellow,[r.r.ResolveLeader]:a.m.Yellow,[r.r.RebuildGraph]:a.m.Yellow,[r.r.Deleted]:a.m.Green,[r.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:n[e];var t};function i(e){if(!e)return"unknown";switch(e){case r.r.Dead:return"danger";case r.r.Active:case r.r.Deleted:return"success";default:return"warning"}}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const r=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),n=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),o=(0,a.g4)("ydb-storage-groups",{ru:n,en:r})},62710:(e,t,s)=>{s.d(t,{$:()=>r});var a=s(59284);function r(e){const[t,s]=a.useState({});a.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,{name:s})=>{const a=t[s];return{...e,[s]:null!==a&&void 0!==a&&a}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:a.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}},64036:(e,t,s)=>{s.d(t,{b:()=>r});var a=s(5707);function r(e){const{DiskSpace:t,VDiskState:s,FrontQueues:r,Replicated:o}=e;if(!s)return a.Km;const i=n(t),l=function(e){var t;if(!e)return a.Km;return null!==(t=a.qs[e])&&void 0!==t?t:a.Km}(s),d=Math.min(a.aW.Orange,n(r));let u=Math.max(i,l,d);return!1===o&&u===a.aW.Green&&(u=a.aW.Blue),u}function n(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),r=s(78034),n=s(60712);const o=({value:e,onChange:t,className:s})=>(0,n.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,n.jsx)(a.a.Option,{value:r.cW.All,children:r.DG[r.cW.All]}),(0,n.jsx)(a.a.Option,{value:r.cW.SmallUptime,children:r.DG[r.cW.SmallUptime]})]})},67375:(e,t,s)=>{s.d(t,{W:()=>a});let a=function(e){return e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError",e}({})},69464:(e,t,s)=>{s.d(t,{T:()=>r});var a=s(6388);s(23536);const r=(e,t=a.xN)=>t===a.xN?`-${e}`:e},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),r=s(98089),n=s(47665),o=s(77506),i=s(60712);const l=(0,o.cn)("ydb-table-group");function d({children:e,title:t,entityName:s,count:o,expanded:d=!1,onIsExpandedChange:u}){const c=()=>{u(t,!d)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:c,className:l("button"),title:t,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(a.I,{direction:d?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(r.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(r.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(n.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},73473:(e,t,s)=>{s.d(t,{S:()=>N});var a=s(38501),r=s(23900),n=s(46549),o=s(77506),i=s(76086),l=s(35736),d=s(41650),u=s(13096),c=s(15132),m=s(48372);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.g4)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kf)(e)?parseFloat(String(e)):void 0}var v=s(60712);const f=1,S=.01*i.J7,k=(0,o.cn)("memory-viewer"),y=(e,t)=>[(0,n.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,n.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function N({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const N=null!==(p=e.AnonRss)&&void 0!==p?p:function(e){const t=g(e.AllocatedMemory)||0,s=g(e.AllocatorCachesMemory)||0;return String(t+s)}(e),b=e.HardLimit,x=(0,a.D)();let D=Math.round(parseFloat(String(N))/parseFloat(String(b))*100)||0;D=D>100?100:D;let w=N,I=b,C="/";t?(w=D+"%",I="",C=""):s&&([w,I]=s(Number(N),Number(b)));const P=function(e,t){const s=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],a=s.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),r=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:r,isInfo:!1}),s.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:t,isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),s.filter((e=>void 0!==e.value))}(e,Number(N)),j=(0,l.w)({fillWidth:D,warningThreshold:i,dangerThreshold:m,colorizeProgress:!0});let A=0;return(0,v.jsx)(u.P,{popupContent:(0,v.jsx)(r.u,{responsive:!0,children:P.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(r.u.Item,{name:(0,v.jsxs)("div",{className:k("container"),children:[(0,v.jsx)("div",{className:k("legend",{type:a})}),(0,v.jsx)("div",{className:k("name"),children:e})]}),children:s?(0,v.jsx)(c.O,{value:t,capacity:s,formatValues:y,colorizeProgress:!0}):(0,n.z3)({value:t,size:"gb",withSizeLabel:!0,precision:2})},e)))}),children:(0,v.jsx)("div",{className:k({theme:x,status:j},o),children:(0,v.jsxs)("div",{className:k("progress-container"),children:[P.filter((({isInfo:e})=>!e)).map((e=>{if(e.value<S)return null;const t=Math.max((s=e.value,N?s/parseFloat(String(b))*100:0),f);var s;const a=A;return A+=t,(0,v.jsx)("div",{className:k("segment",{type:e.key}),style:{width:`${t}%`,left:`${a}%`}},e.key)})),(0,v.jsx)("div",{className:k("text"),children:(0,d.kf)(b)?`${w} ${C} ${I}`:w})]})})})}},78461:(e,t,s)=>{s.d(t,{Y:()=>r});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function r(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,r])=>{const n=e.length-t,o=n-r;return s[a]=e.substring(o,n)||"0",t+r}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return a.SSD;case 2:return a.MVME}else if("0"===t.typeExt)return a.HDD}},78762:(e,t,s)=>{s.d(t,{pt:()=>se,SH:()=>X,fr:()=>_,uk:()=>L,Bg:()=>Y,Nh:()=>M,ID:()=>B,fR:()=>$,iX:()=>H,Vz:()=>Q,H:()=>q,_E:()=>R,eT:()=>G,wN:()=>te,kv:()=>F,pH:()=>O,OX:()=>z,ui:()=>ee,DH:()=>Z,oz:()=>J,qp:()=>K,jl:()=>W,Rn:()=>V});var a=s(4557),r=s(23900),n=s(7435),o=s(77506),i=s(76086),l=s(56839),d=s(16439),u=s(41650),c=s(71661),m=s(73473),p=s(29819),h=s(31684),g=s(78034),v=s(10508),f=s(80176),S=s(60712);const k=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,S.jsx)("span",{children:"\u2014"});const r="ConnectStatus"===a?e.ConnectStatus:e.SystemState,n=!(0,g.X7)(e);let o;if(t){const s=t(e);o=s?(0,h.Un)(s):void 0}else if(e.NodeId){const t=(0,h.Kx)(e.NodeId);o=(0,h.Un)(t)}const i=n?(0,p.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName},e.TenantName?"tablets":"storage"):void 0;return(0,S.jsx)(v.c,{name:e.Host,status:r,path:i,hasClipboardButton:!0,infoPopoverContent:n?(0,S.jsx)(f.p,{data:e,nodeHref:o}):null})};var y=s(48295),N=s(15132),b=s(52905),x=s(58267);const D=(0,o.cn)("tablets-statistic"),w=({tablets:e=[],database:t,nodeId:s})=>{const a=(e=>e.map((e=>({label:(0,i.bk)(e.Type),type:e.Type,count:e.Count,state:(0,x.P)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(e);return(0,S.jsx)("div",{className:D(),children:a.map(((e,a)=>{var r;const n=(0,p.vI)(s,{database:t},"tablets"),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(r=e.state)||void 0===r?void 0:r.toLowerCase()});return(0,S.jsx)(b.N_,{to:n,className:i,children:o},a)}))})};var I=s(41826),C=s(13342),P=s(86782),j=s(31911),A=s(73891);function E(e){return(0,A.Xo)((0,A.Jc)(e,1))}function T(e){const t=(0,A.Jc)(e,1);return(Number(t)<=0?"":"+")+(0,A.Xo)(t)}const U=(0,o.cn)("ydb-nodes-columns");function R(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:a.Ay.RIGHT}}function M({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,S.jsx)(k,{node:a,getNodeRef:e,database:t,statusForIcon:s}),width:350,align:a.Ay.LEFT}}function G(){return{name:P.vg.NodeName,header:P.uG.NodeName,align:a.Ay.LEFT,render:({row:e})=>e.NodeName||i.Pd,width:200}}function L(){return{name:P.vg.DC,header:P.uG.DC,align:a.Ay.LEFT,render:({row:e})=>e.DC||i.Pd,width:60}}function z(){return{name:P.vg.Rack,header:P.uG.Rack,align:a.Ay.LEFT,render:({row:e})=>e.Rack||i.Pd,width:100}}function V(){return{name:P.vg.Version,header:P.uG.Version,width:200,align:a.Ay.LEFT,render:({row:e})=>(0,S.jsx)(c.s,{content:e.Version,children:e.Version})}}function W(){return{name:P.vg.Uptime,header:P.uG.Uptime,sortAccessor:({StartTime:e})=>e?-e:0,render:({row:e})=>(0,S.jsx)(I.p,{StartTime:e.StartTime,DisconnectTime:e.DisconnectTime}),align:a.Ay.RIGHT,width:120}}function O(){return{name:P.vg.RAM,header:P.uG.RAM,sortAccessor:({MemoryUsed:e=0})=>Number(e),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{const[t,s]=(0,u.kf)(e.MemoryUsed)&&(0,u.kf)(e.MemoryLimit)?(0,l.j9)(Number(e.MemoryUsed),Number(e.MemoryLimit),"gb",void 0,!0):[0,0];return(0,S.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,S.jsxs)(r.u,{responsive:!0,children:[(0,S.jsx)(r.u.Item,{name:(0,j.A)("field_memory-used"),children:t}),(0,S.jsx)(r.u.Item,{name:(0,j.A)("field_memory-limit"),children:s})]}),children:(0,S.jsx)(N.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:(e,t)=>(0,l.j9)(e,t,"gb",void 0,!0),className:U("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function H(){return{name:P.vg.Memory,header:P.uG.Memory,defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.MemoryStats?(0,S.jsx)(m.S,{formatValues:l.vX,stats:e.MemoryStats}):(0,S.jsx)(N.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:l.vX,colorizeProgress:!0}),align:a.Ay.LEFT,width:300,resizeMinWidth:170}}function F(){return{name:P.vg.Pools,header:P.uG.Pools,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.PoolStats?(0,S.jsx)(y._,{pools:e.PoolStats}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:60}}function _(){return{name:P.vg.CPU,header:P.uG.CPU,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{if(!e.PoolStats)return i.Pd;let t=(0,u.kf)(e.CoresUsed)&&(0,u.kf)(e.CoresTotal)?e.CoresUsed/e.CoresTotal:void 0;if(void 0===t){let s=0;t=e.PoolStats.reduce(((e,t)=>(s+=Number(t.Threads),e+Number(t.Usage)*Number(t.Threads))),0),t/=s}return(0,S.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,S.jsx)(r.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,S.jsx)(r.u.Item,{name:e.Name,children:(0,f.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,S.jsx)(N.O,{className:U("column-cpu"),value:t,capacity:1,colorizeProgress:!0,percents:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function B(){return{name:P.vg.LoadAverage,header:P.uG.LoadAverage,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>(0,S.jsx)(N.O,{value:e.LoadAveragePercents&&e.LoadAveragePercents.length>0?e.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100}),align:a.Ay.LEFT,width:170,resizeMinWidth:170}}function $(){return{name:P.vg.Load,header:P.uG.Load,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.LoadAveragePercents&&e.LoadAveragePercents.length>0?(0,S.jsx)(C.U,{value:e.LoadAveragePercents[0].toFixed(),theme:(0,d.f)(e.LoadAveragePercents[0])}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:70}}function Y(){return{name:P.vg.DiskSpaceUsage,header:P.uG.DiskSpaceUsage,render:({row:e})=>(0,n.f8)(e.DiskSpaceUsage)?(0,S.jsx)(C.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,d.f)(e.DiskSpaceUsage)}):i.Pd,align:a.Ay.LEFT,width:115,resizeMinWidth:75}}function J(){return{name:P.vg.TotalSessions,header:P.uG.TotalSessions,render:({row:e})=>{var t;return null!==(t=e.TotalSessions)&&void 0!==t?t:i.Pd},align:a.Ay.RIGHT,width:100}}function K({database:e}){return{name:P.vg.Tablets,header:P.uG.Tablets,width:500,resizeMinWidth:500,render:({row:t})=>t.Tablets?(0,S.jsx)(w,{database:null!==e&&void 0!==e?e:t.TenantName,nodeId:t.NodeId,tablets:t.Tablets}):i.Pd,align:a.Ay.LEFT,sortable:!1}}function Q(){return{name:P.vg.Missing,header:P.uG.Missing,render:({row:e})=>e.Missing,align:a.Ay.CENTER,defaultOrder:a.Ay.DESCENDING}}function X(){return{name:P.vg.Connections,header:P.uG.Connections,render:({row:e})=>(0,u.kf)(e.Connections)?e.Connections:i.Pd,align:a.Ay.RIGHT,width:130}}function q(){return{name:P.vg.NetworkUtilization,header:P.uG.NetworkUtilization,render:({row:e})=>{const{NetworkUtilization:t,NetworkUtilizationMin:s=0,NetworkUtilizationMax:a=0}=e;return(0,u.kf)(t)?(0,S.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,S.jsxs)(r.u,{responsive:!0,children:[(0,S.jsx)(r.u.Item,{name:(0,j.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,S.jsx)(r.u.Item,{name:(0,j.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,S.jsx)(r.u.Item,{name:(0,j.A)("max"),children:(0,l.l9)(a)},"NetworkUtilizationMax")]}),children:(0,l.l9)(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function Z(){return{name:P.vg.SendThroughput,header:P.uG.SendThroughput,render:({row:e})=>(0,u.kf)(e.SendThroughput)?(0,u.O4)(e.SendThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function ee(){return{name:P.vg.ReceiveThroughput,header:P.uG.ReceiveThroughput,render:({row:e})=>(0,u.kf)(e.ReceiveThroughput)?(0,u.O4)(e.ReceiveThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function te(){return{name:P.vg.PingTime,header:P.uG.PingTime,render:({row:e})=>{const{PingTimeUs:t,PingTimeMinUs:s=0,PingTimeMaxUs:a=0}=e;return(0,u.kf)(t)?(0,S.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,S.jsxs)(r.u,{responsive:!0,children:[(0,S.jsx)(r.u.Item,{name:(0,j.A)("avg"),children:E(t)},"PingTimeUs"),(0,S.jsx)(r.u.Item,{name:(0,j.A)("min"),children:E(s)},"PingTimeMinUs"),(0,S.jsx)(r.u.Item,{name:(0,j.A)("max"),children:E(a)},"PingTimeMaxUs")]}),children:E(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function se(){return{name:P.vg.ClockSkew,header:P.uG.ClockSkew,render:({row:e})=>{const{ClockSkewUs:t,ClockSkewMinUs:s=0,ClockSkewMaxUs:a=0}=e;return(0,u.kf)(t)?(0,S.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,S.jsxs)(r.u,{responsive:!0,children:[(0,S.jsx)(r.u.Item,{name:(0,j.A)("avg"),children:T(t)},"ClockSkewUs"),(0,S.jsx)(r.u.Item,{name:(0,j.A)("min"),children:T(s)},"ClockSkewMinUs"),(0,S.jsx)(r.u.Item,{name:(0,j.A)("max"),children:T(a)},"ClockSkewMaxUs")]}),children:T(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}},86782:(e,t,s)=>{s.d(t,{fN:()=>c,kU:()=>p,kn:()=>u,sp:()=>h,uG:()=>l,vg:()=>n,xd:()=>i,zO:()=>r});var a=s(31911);const r="nodesTableColumnsWidth",n={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},o=["Pools","Memory"];function i(e){return o.includes(e)}const l={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get Database(){return(0,a.A)("database")},get NodeName(){return(0,a.A)("node-name")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Version(){return(0,a.A)("version")},get Uptime(){return(0,a.A)("uptime")},get Memory(){return(0,a.A)("memory")},get RAM(){return(0,a.A)("ram")},get Pools(){return(0,a.A)("pools")},get CPU(){return(0,a.A)("cpu")},get LoadAverage(){return(0,a.A)("load-average")},get Load(){return(0,a.A)("load")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get TotalSessions(){return(0,a.A)("sessions")},get Connections(){return(0,a.A)("connections")},get NetworkUtilization(){return(0,a.A)("utilization")},get SendThroughput(){return(0,a.A)("send")},get ReceiveThroughput(){return(0,a.A)("receive")},get PingTime(){return(0,a.A)("ping")},get ClockSkew(){return(0,a.A)("skew")},get Missing(){return(0,a.A)("missing")},get Tablets(){return(0,a.A)("tablets")},get PDisks(){return(0,a.A)("pdisks")}},d={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get NodeName(){return(0,a.A)("node-name")},get Database(){return(0,a.A)("database")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Missing(){return(0,a.A)("missing")},get Uptime(){return(0,a.A)("uptime")},get Version(){return(0,a.A)("version")},get SystemState(){return(0,a.A)("system-state")},get ConnectStatus(){return(0,a.A)("connect-status")},get NetworkUtilization(){return(0,a.A)("network-utilization")},get ClockSkew(){return(0,a.A)("clock-skew")},get PingTime(){return(0,a.A)("ping-time")}};function u(e){return d[e]}const c={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime","DisconnectTime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},m={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function p(e){return m[e]}function h(e){return Boolean(p(e))}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),r=s(76086),n=s(7187),o=s(90182),i=s(60712);const l=(0,a.cn)("storage-disk-progress-bar");function d({diskAllocatedPercent:e=-1,severity:t,compact:s,faded:a,inactive:d,empty:u,content:c,className:m}){const[p]=(0,o.iK)(r.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,n.XY)(t);g&&(h[g.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,children:[(()=>{if(s)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const t=p?100-e:e;return e>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${t}%`}}):null})(),c||(!s&&e>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(e)}%`}):null)]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),r=s(19228),n=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,n.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,n.jsx)("div",{className:o("controls-wrapper"),children:(0,n.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,n.jsx)(r.Q,{className:o("loader")}):(0,n.jsx)("div",{className:o("table",s),children:e})}},90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),r=s(84476),n=s(24555),o=s(21334),i=s(77506),l=s(90182),d=s(48372);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:u});var m=s(60712);const p=(0,i.cn)("auto-refresh-control");function h({className:e,onManualRefresh:t}){const s=(0,l.YQ)(),[i,d]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(r.$,{view:"flat-secondary",onClick:()=>{s(o.F.util.invalidateTags(["All"])),null===t||void 0===t||t()},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(r.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(n.l,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(n.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(n.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(n.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(n.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(n.l.Option,{value:"300000",children:c("5 min")})]})]})}},94025:(e,t,s)=>{s.d(t,{t:()=>a});let a=function(e){return e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown",e}({})},96927:(e,t,s)=>{s.d(t,{O:()=>y,f:()=>k});var a=s(59284),r=s(87184),n=s(92459),o=s(24600),i=s(54090),l=s(7435),d=s(76086),u=s(31684),c=s(90182),m=s(12888),p=s(41650),h=s(60073),g=s(25196),v=s(50672),f=s(60712);const S=[i.m.Orange,i.m.Red,i.m.Yellow],k=(e,t,s)=>{const{AvailableSize:a,TotalSize:o,State:i,PDiskId:c,NodeId:m,StringifiedId:h,Path:k,Realtime:y,Type:N,Device:b}=e,x=[{label:"PDisk",value:null!==h&&void 0!==h?h:d.Pd},{label:"State",value:i||"not available"},{label:"Type",value:N||"unknown"}];if(m&&x.push({label:"Node Id",value:m}),null!==t&&void 0!==t&&t.Host&&x.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&x.push({label:"DC",value:t.DC}),k&&x.push({label:"Path",value:k}),(0,p.kf)(o)&&x.push({label:"Available",value:`${(0,p.wb)(a)} of ${(0,p.wb)(o)}`}),y&&S.includes(y)&&x.push({label:"Realtime",value:y}),b&&S.includes(b)&&x.push({label:"Device",value:b}),s&&(0,l.f8)(m)&&(0,l.f8)(c)){const e=(0,u.ar)({nodeId:m,pDiskId:c}),t=(0,n.Ck)(c,m);x.push({label:"Links",value:(0,f.jsxs)(r.s,{gap:2,wrap:"wrap",children:[(0,f.jsx)(g.K,{title:(0,v.D)("pdisk-page"),url:t,external:!1}),(0,f.jsx)(g.K,{title:(0,v.D)("developer-ui"),url:e})]})})}return x},y=({data:e})=>{const t=(0,m.X)(),s=(0,c.N4)(o.K),r=(0,l.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,n=a.useMemo((()=>k(e,r,t)),[e,r,t]);return(0,f.jsx)(h.z_,{title:"PDisk",info:n,size:"s"})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(12888),r=s(59284),n=s(79553),o=s(98167),i=s(89073),l=s(67028),d=s(10174),u=s(90182),c=s(69775),m=s(98089),p=s(24555),h=s(53755),g=s(41775),v=s(64934),f=s(10360),S=s(370),k=s(86782);const y=["NodeId","Host","Uptime","CPU","RAM","PDisks"],N=["NodeId"],b=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],x=b.map((e=>({value:e,content:(0,k.kn)(e)}))),D=S.z.custom((e=>b.includes(e))).catch(void 0);var w=s(44433);const I={all:"all",missing:"missing",space:"space"},C={groups:"groups",nodes:"nodes"};var P=s(60712);const j={[C.groups]:"Groups",[C.nodes]:"Nodes"},A=({value:e,onChange:t})=>(0,P.jsxs)(w.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,P.jsx)(w.a.Option,{value:C.groups,children:j[C.groups]}),(0,P.jsx)(w.a.Option,{value:C.nodes,children:j[C.nodes]})]}),E={[I.all]:"All",[I.missing]:"Degraded",[I.space]:"Out of Space"},T=({value:e,onChange:t})=>(0,P.jsxs)(w.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,P.jsx)(w.a.Option,{value:I.missing,children:E[I.missing]}),(0,P.jsx)(w.a.Option,{value:I.space,children:E[I.space]}),(0,P.jsx)(w.a.Option,{value:I.all,children:E[I.all]})]});var U=s(48372);const R=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),M=(0,U.g4)("ydb-storage",{en:R});var G=s(59109),L=s(44508),z=s(77506);const V=(0,z.cn)("global-storage"),W=e=>403===e.status?(0,P.jsx)(G.O,{position:"left"}):(0,P.jsx)(L.o,{error:e});var O=s(67087);const H=S.z.nativeEnum(I).catch(I.all),F=S.z.nativeEnum(C).catch(C.groups);var _=s(78034);function B(){var e;const[t,s]=(0,O.useQueryParams)({type:O.StringParam,visible:O.StringParam,search:O.StringParam,uptimeFilter:O.StringParam,storageNodesGroupBy:O.StringParam,storageGroupsGroupBy:O.StringParam}),a=F.parse(t.type),r=H.parse(t.visible),n=null!==(e=t.search)&&void 0!==e?e:"",o=_.Bm.parse(t.uptimeFilter),i=f.kY.parse(t.storageGroupsGroupBy),l=D.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:r,searchValue:n,nodesUptimeFilter:o,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(_.cW.All)}}}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}){const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:y,handleVisibleEntitiesChange:N,handleStorageGroupsGroupByParamChange:b}=B(),x=(0,a.X)(),D=e&&x;return(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(g.v,{value:d,onChange:k,placeholder:M("controls_groups-search-placeholder"),className:V("search")}),D&&(0,P.jsx)(A,{value:u,onChange:y}),t?null:(0,P.jsx)(T,{value:v,onChange:N}),(0,P.jsx)(c.O,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),t?(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(m.E,{variant:"body-2",children:M("controls_group-by-placeholder")}),(0,P.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{b(e[0])},options:f.SE})]}):null,(0,P.jsx)(h.T,{label:M("groups"),loading:o,total:n,current:s})]})}function Y({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:a,entitiesLoading:n,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:y,handleVisibleEntitiesChange:N,handleUptimeFilterChange:b,handleStorageNodesGroupByParamChange:D}=B();return(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(g.v,{value:l,onChange:k,placeholder:M("controls_nodes-search-placeholder"),className:V("search")}),e&&(0,P.jsx)(A,{value:d,onChange:y}),t?null:(0,P.jsx)(T,{value:u,onChange:N}),t?null:(0,P.jsx)(v.j,{value:f,onChange:b}),(0,P.jsx)(c.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(m.E,{variant:"body-2",children:M("controls_group-by-placeholder")}),(0,P.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{D(e[0])},options:x})]}):null,(0,P.jsx)(h.T,{label:M("nodes"),loading:n,total:a,current:s})]})}var J=s(40427),K=s(84476),Q=s(7889),X=s(78524);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),Z=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),ee=(0,U.g4)("ydb-storage-empty-filter",{ru:Z,en:q}),te=({title:e,message:t=ee("default_message"),showAll:s=ee("default_button_label"),onShowAll:a})=>(0,P.jsx)(Q.p,{image:(0,P.jsx)(X.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:a&&[(0,P.jsx)(K.$,{onClick:a,children:s},"show-all")]});var se=s(61456);const ae=({visibleEntities:e,onShowAll:t})=>{let s;return e===I.space&&(s=(0,se.A)("empty.out_of_space")),e===I.missing&&(s=(0,se.A)("empty.degraded")),s?(0,P.jsx)(te,{title:s,showAll:(0,se.A)("show_all"),onShowAll:t}):null};var re=s(16029),ne=s(69464),oe=s(40781);const ie=({columns:e,database:t,nodeId:s,groupId:a,pDiskId:n,filterGroup:i,filterGroupBy:d,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:v})=>{const S=(0,l.Pm)(),k=(0,l.YA)(),y=(N=k,r.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:r,columnsIds:n}=e,{sortOrder:o,columnId:i}=null!==a&&void 0!==a?a:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==r&&void 0!==r?r:{},v=(0,f.GP)(i),S=v?(0,ne.T)(v,o):void 0,k=(0,oe.R)(n,f.YX),{groups:y,found:b,total:x}=await(0,re.t)({limit:t,offset:s,sort:S,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:k,shouldUseGroupsHandler:N});return{data:y||[],found:b||0,total:x||0}}),[N]));var N;const b=r.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:a,pDiskId:n,filterGroup:i,filterGroupBy:d})),[u,c,t,s,a,n,i,d]);return(0,P.jsx)(o.r,{loading:!S,children:(0,P.jsx)(J.k5,{columnsWidthLSKey:f.qK,parentRef:p,columns:e,fetchData:y,limit:50,initialEntitiesCount:v,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==I.all?(0,P.jsx)(ae,{onShowAll:m,visibleEntities:c}):(0,se.A)("empty.default"),filters:b,tableName:"storage-groups"})})};var le=s(43951),de=s(20831);function ue({visibleEntities:e,viewContext:t}){const s=(0,a.X)(),n=r.useMemo((()=>{const e=(0,de.J)({viewContext:t});return s?e:e.filter((e=>!(0,f.Ai)(e.name)))}),[s,t]),o=r.useMemo((()=>e===I.missing?[...f.LO,f.UW.Degraded]:e===I.space?[...f.LO,f.UW.DiskSpace]:f.LO),[e]);return(0,le.K)(n,f.zY,f.H6,f.hu,o)}var ce=s(71708),me=s(62710);function pe(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:a}=B(),n=(0,l.Pm)(),i=(0,l.SA)();r.useEffect((()=>{i&&"all"!==s&&a()}),[a,i,s]);return(0,P.jsx)(o.r,{loading:!n,children:i&&t?(0,P.jsx)(ge,{...e}):(0,P.jsx)(he,{...e})})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:r,parentRef:n,initialEntitiesCount:o}){const{searchValue:i,visibleEntities:d,handleShowAllGroups:u}=B(),c=(0,l.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=ue({visibleEntities:d,viewContext:r});return(0,P.jsx)(ie,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:i,visibleEntities:d,onShowAll:u,parentRef:n,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,P.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:o})}function ge({database:e,nodeId:t,groupId:s,pDiskId:a,parentRef:r,viewContext:o}){const[l]=(0,u.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=B(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=ue({visibleEntities:p,viewContext:o}),{currentData:S,isFetching:k,error:y}=d.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:l}),N=void 0===S&&k,{tableGroups:b,found:x=0,total:D=0}=S||{},{expandedGroups:w,setIsGroupExpanded:I}=(0,me.$)(b);return(0,P.jsxs)(i.L,{children:[(0,P.jsx)(i.L.Controls,{children:(0,P.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:D,entitiesLoading:N,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),y?(0,P.jsx)(n.o,{error:y}):null,(0,P.jsx)(i.L.Table,{loading:N,className:V("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:n,count:o})=>{const i=w[n];return(0,P.jsx)(ce.Q,{title:n,count:o,entityName:M("groups"),expanded:i,onIsExpandedChange:I,children:(0,P.jsx)(ie,{database:e,parentRef:r,nodeId:t,groupId:s,pDiskId:a,filterGroup:n,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:W,columns:g,initialEntitiesCount:o})},n)})):M("no-groups")})]})}var ve=s(88655);const fe=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),Se=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),ke=(0,U.g4)("ydb-storage-nodes",{ru:Se,en:fe}),ye=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let a;return e===I.space&&(a=ke("empty.out_of_space")),e===I.missing&&(a=ke("empty.degraded")),t===_.cW.SmallUptime&&(a=ke("empty.small_uptime")),e!==I.all&&t!==_.cW.All&&(a=ke("empty.several_filters")),a?(0,P.jsx)(te,{title:a,showAll:ke("show_all"),onShowAll:s}):null};var Ne=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:r,sortParams:n,filters:o,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==o&&void 0!==o?o:{},{sortOrder:v,columnId:f}=null!==n&&void 0!==n?n:{},S=(0,k.kU)(f),y=S?(0,ne.T)(S,v):void 0,N=(0,oe.R)(i,k.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:r,sort:y,filter:l,uptime:(0,_.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:N}),x=(0,Ne.rz)(b);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},xe=(0,z.cn)("ydb-storage-nodes"),De=e=>xe("node",{unavailable:(0,_.X7)(e)}),we=({columns:e,database:t,nodeId:s,groupId:a,filterGroup:n,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=r.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:a,filterGroup:n,filterGroupBy:o})),[i,l,d,t,s,a,n,o]);return(0,P.jsx)(J.k5,{columnsWidthLSKey:"storageNodesColumnsWidth",parentRef:c,columns:e,fetchData:be,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==I.all||d!==_.cW.All?(0,P.jsx)(ye,{onShowAll:u,nodesUptimeFilter:d,visibleEntities:l}):ke("empty.default"),getRowClassName:De,filters:g,tableName:"storage-nodes"})};var Ie=s(4557),Ce=s(78762),Pe=s(10576);const je=(0,z.cn)("ydb-storage-nodes-columns"),Ae="--maximum-slots",Ee="--maximum-disks",Te=({viewContext:e})=>({name:k.vg.PDisks,header:k.uG.PDisks,className:je("pdisks-column"),render:({row:t})=>{var s;const a={[Ae]:t.MaximumSlotsPerDisk,[Ee]:t.MaximumDisksPerNode};return(0,P.jsx)("div",{className:je("pdisks-wrapper"),style:a,children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var a;const r=null===(a=t.VDisks)||void 0===a?void 0:a.filter((e=>e.PDiskId===s.PDiskId));return(0,P.jsx)("div",{className:je("pdisks-item"),children:(0,P.jsx)(Pe.E,{data:s,vDisks:r,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:a}){const n=r.useMemo((()=>(({database:e,additionalNodesProps:t,viewContext:s})=>{const a=null===t||void 0===t?void 0:t.getNodeRef;return[(0,Ce._E)(),(0,Ce.Nh)({getNodeRef:a,database:e}),(0,Ce.eT)(),(0,Ce.uk)(),(0,Ce.OX)(),(0,Ce.jl)(),(0,Ce.fr)(),(0,Ce.kv)(),(0,Ce.pH)(),(0,Ce.iX)(),(0,Ce.Bg)(),(0,Ce.Rn)(),(0,Ce.Vz)(),Te({viewContext:s})].map((e=>({...e,sortable:(0,k.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:a})),[t,s,a]),o=r.useMemo((()=>e===I.missing?[...N,k.vg.Missing]:N),[e]);return(0,le.K)(n,"storageNodesSelectedColumns",k.uG,y,o)}const Re=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:a,handleShowAllNodes:n}=B(),i=(0,l.Pm)(),d=(0,l.Ye)();r.useEffect((()=>{!d||"all"===s&&a===_.cW.All||n()}),[n,a,d,s]);return(0,P.jsx)(o.r,{loading:!i,children:d&&t?(0,P.jsx)(Ge,{...e}):(0,P.jsx)(Me,{...e})})};function Me({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:r,initialEntitiesCount:n}){const{searchValue:o,visibleEntities:i,nodesUptimeFilter:d,handleShowAllNodes:u}=B(),c=(0,l.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a});return(0,P.jsx)(we,{database:e,nodeId:t,groupId:s,searchValue:o,visibleEntities:i,nodesUptimeFilter:d,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,P.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:n})}function Ge({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:r}){const[n]=(0,u.Nt)(),{searchValue:o,storageNodesGroupByParam:l,handleShowAllNodes:c}=B(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a}),{currentData:g,isFetching:v,error:f}=d.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:o,node_id:s,group_id:t,group:l},{pollingInterval:n}),S=void 0===g&&v,{tableGroups:k,found:y=0,total:N=0}=g||{},{expandedGroups:b,setIsGroupExpanded:x}=(0,me.$)(k);return(0,P.jsxs)(i.L,{children:[(0,P.jsx)(i.L.Controls,{children:(0,P.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:y,entitiesCountTotal:N,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,P.jsx)(L.o,{error:f}):null,(0,P.jsx)(i.L.Table,{loading:S,className:V("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((({name:a,count:n})=>{const i=b[a];return(0,P.jsx)(ce.Q,{title:a,count:n,entityName:M("nodes"),expanded:i,onIsExpandedChange:x,children:(0,P.jsx)(we,{database:e,parentRef:r,nodeId:s,groupId:t,searchValue:o,visibleEntities:"all",nodesUptimeFilter:_.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:l,renderErrorMessage:W,columns:m,initialEntitiesCount:n})},a)})):M("no-nodes")})]})}function Le({database:e,viewContext:t}){const s=(0,ve.E)(),{visibleEntities:a}=B();return Ue({additionalNodesProps:s,visibleEntities:a,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=B(),s=(0,a.X)();return"nodes"===t&&s?(0,P.jsx)(Re,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,P.jsx)(pe,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/99872.c308e65f.chunk.js b/ydb/core/viewer/monitoring/static/js/99872.c308e65f.chunk.js new file mode 100644 index 0000000000..c761583087 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99872.c308e65f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 99872.c308e65f.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99872],{99872:(e,t,s)=>{s.r(t),s.d(t,{conf:()=>o,language:()=>i});var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach((e=>{n.push(e),n.push(e.toUpperCase()),n.push((e=>e.charAt(0).toUpperCase()+e.substr(1))(e))}));var i={defaultToken:"",tokenPostfix:".apex",keywords:n,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/99872.c308e65f.chunk.js.LICENSE.txt index 34dc0256d7..34dc0256d7 100644 --- a/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/99872.c308e65f.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/main.56991933.js b/ydb/core/viewer/monitoring/static/js/main.56991933.js new file mode 100644 index 0000000000..4580c09b15 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/main.56991933.js @@ -0,0 +1,2 @@ +/*! For license information please see main.56991933.js.LICENSE.txt */ +(()=>{var e={54:e=>{"use strict";e.exports=Math.round},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75zM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75",clipRule:"evenodd"}))},150:(e,t,n)=>{var r=n(15464),i=n(38469),o=n(60242),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},359:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",SHIFT:"Shift",HOME:"Home",END:"End"}},370:(e,t,n)=>{"use strict";var r,i;n.d(t,{z:()=>Ct}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));const o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?o.promise:"undefined"!==typeof Map&&e instanceof Map?o.map:"undefined"!==typeof Set&&e instanceof Set?o.set:"undefined"!==typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return m;if("aborted"===i.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,x=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}var S,C,k;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(t,i)=>{var o,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:i.defaultError}:"undefined"===typeof i.data?{message:null!==(o=null!==s&&void 0!==s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}class A{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(x(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});return N(r,i)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return w(t)?{value:t.value}:{issues:r.common.issues}}catch(i){(null===(n=null===(t=null===i||void 0===i?void 0:i.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((e=>w(e)?{value:e.value}:{issues:r.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(x(r)?r:Promise.resolve(r));return N(n,i)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Ae({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ie.create(this,this._def)}nullable(){return Pe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return de.create(this)}promise(){return Te.create(this,this._def)}or(e){return he.create([this,e],this._def)}and(e){return ye.create(this,e,this._def)}transform(e){return new Ae({...T(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Re({...T(this._def),innerType:this,defaultValue:t,typeName:$e.ZodDefault})}brand(){return new Le({typeName:$e.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new De({...T(this._def),innerType:this,catchValue:t,typeName:$e.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ze.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,D=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let F;const B=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K=new RegExp(`^${W}$`);function G(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Y(e){let t=`${W}T${G(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Q(e,t){if(!M.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return"object"===typeof i&&null!==i&&(!(!i.typ||!i.alg)&&(!t||i.alg===t))}catch(n){return!1}}function Z(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!q.test(e))}class J extends A{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.string,received:t.parsedType}),m}const t=new h;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,i=e.data.length<o.value;(r||i)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)F||(F=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){Y(o).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){K.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${G(o)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(i=e.data,("v4"!==(a=o.version)&&a||!B.test(i))&&("v6"!==a&&a||!$.test(i))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:o.message}),t.dirty())):"jwt"===o.kind?Q(e.data,o.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:s.invalid_string,message:o.message}),t.dirty()):"cidr"===o.kind?Z(e.data,o.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:s.invalid_string,message:o.message}),t.dirty()):"base64"===o.kind?H.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:o.message}),t.dirty()):"base64url"===o.kind?V.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:s.invalid_string,message:o.message}),t.dirty()):r.assertNever(o);var i,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}J.create=e=>{var t;return new J({checks:[],typeName:$e.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ee extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.number,received:t.parsedType}),m}let t;const n=new h;for(const i of this._def.checks)if("int"===i.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty());else if("min"===i.kind){(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else if("max"===i.kind){(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else"multipleOf"===i.kind?0!==X(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ee.create=e=>new ee({checks:[],typeName:$e.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class te extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(i){return this._getInvalidInput(e)}if(this._getType(e)!==o.bigint)return this._getInvalidInput(e);let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}te.create=e=>{var t;return new te({checks:[],typeName:$e.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ne extends A{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.boolean,received:t.parsedType}),m}return v(e.data)}}ne.create=e=>new ne({typeName:$e.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class re extends A{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):r.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}re.create=e=>new re({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:$e.ZodDate,...T(e)});class ie extends A{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.symbol,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:$e.ZodSymbol,...T(e)});class oe extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.undefined,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:$e.ZodUndefined,...T(e)});class ae extends A{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.null,received:t.parsedType}),m}return v(e.data)}}ae.create=e=>new ae({typeName:$e.ZodNull,...T(e)});class se extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}se.create=e=>new se({typeName:$e.ZodAny,...T(e)});class le extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}le.create=e=>new le({typeName:$e.ZodUnknown,...T(e)});class ce extends A{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.never,received:t.parsedType}),m}}ce.create=e=>new ce({typeName:$e.ZodNever,...T(e)});class ue extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.void,received:t.parsedType}),m}return v(e.data)}}ue.create=e=>new ue({typeName:$e.ZodVoid,...T(e)});class de extends A{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return p(t,{code:s.invalid_type,expected:o.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(p(t,{code:e?s.too_big:s.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new de({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new de({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new de({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function fe(e){if(e instanceof pe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ie.create(fe(r))}return new pe({...e._def,shape:()=>t})}return e instanceof de?new de({...e._def,type:fe(e.element)}):e instanceof Ie?Ie.create(fe(e.unwrap())):e instanceof Pe?Pe.create(fe(e.unwrap())):e instanceof be?be.create(e.items.map((e=>fe(e)))):e}de.create=(e,t)=>new de({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...T(t)});class pe extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const o in n.data)i.includes(o)||a.push(o);const l=[];for(const o of i){const e=r[o],t=n.data[o];l.push({key:{status:"valid",value:o},value:e._parse(new O(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof ce){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new pe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new pe({...this._def,unknownKeys:"strip"})}passthrough(){return new pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$e.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pe({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}deepPartial(){return fe(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new pe({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ie;)e=e._def.innerType;t[n]=e}})),new pe({...this._def,shape:()=>t})}keyof(){return ke(r.objectKeys(this.shape))}}pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ce.create(),typeName:$e.ZodObject,...T(t)}),pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ce.create(),typeName:$e.ZodObject,...T(t)}),pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ce.create(),typeName:$e.ZodObject,...T(t)});class he extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:i}),m}}get options(){return this._def.options}}he.create=(e,t)=>new he({options:e,typeName:$e.ZodUnion,...T(t)});const me=e=>e instanceof Se?me(e.schema):e instanceof Ae?me(e.innerType()):e instanceof Ce?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof Re?me(e._def.innerType):e instanceof oe?[void 0]:e instanceof ae?[null]:e instanceof Ie?[void 0,...me(e.unwrap())]:e instanceof Pe?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof De?me(e._def.innerType):[];class ge extends A{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=me(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new ge({typeName:$e.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function ve(e,t){const n=a(e),i=a(t);if(e===t)return{valid:!0,data:e};if(n===o.object&&i===o.object){const n=r.objectKeys(t),i=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const r of i){const n=ve(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(n===o.array&&i===o.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=ve(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===o.date&&i===o.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ye extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const i=ve(e.value,r.value);return i.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:i.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ye.create=(e,t,n)=>new ye({left:e,right:t,typeName:$e.ZodIntersection,...T(n)});class be extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return p(n,{code:s.invalid_type,expected:o.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:e,typeName:$e.ZodTuple,rest:null,...T(t)})};class we extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return p(n,{code:s.invalid_type,expected:o.object,received:n.parsedType}),m;const r=[],i=this._def.keyType,a=this._def.valueType;for(const o in n.data)r.push({key:i._parse(new O(n,o,n.path,o)),value:a._parse(new O(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new we(t instanceof A?{keyType:e,valueType:t,typeName:$e.ZodRecord,...T(n)}:{keyType:J.create(),valueType:e,typeName:$e.ZodRecord,...T(t)})}}class xe extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return p(n,{code:s.invalid_type,expected:o.map,received:n.parsedType}),m;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new O(n,e,n.path,[o,"key"])),value:i._parse(new O(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}xe.create=(e,t,n)=>new xe({valueType:t,keyType:e,typeName:$e.ZodMap,...T(n)});class _e extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return p(n,{code:s.invalid_type,expected:o.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>i._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new _e({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new _e({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}_e.create=(e,t)=>new _e({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...T(t)});class Ee extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return p(t,{code:s.invalid_type,expected:o.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Te){const e=this;return v((async function(...t){const o=new l([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw o.addIssue(n(t,e)),o})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw o.addIssue(r(c,e)),o}))}))}{const e=this;return v((function(...t){const o=e._def.args.safeParse(t,i);if(!o.success)throw new l([n(t,o.error)]);const s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new l([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ee({...this._def,args:be.create(e).rest(le.create())})}returns(e){return new Ee({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ee({args:e||be.create([]).rest(le.create()),returns:t||le.create(),typeName:$e.ZodFunction,...T(n)})}}class Se extends A{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Se.create=(e,t)=>new Se({getter:e,typeName:$e.ZodLazy,...T(t)});class Ce extends A{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ke(e,t){return new Oe({values:e,typeName:$e.ZodEnum,...T(t)})}Ce.create=(e,t)=>new Ce({value:e,typeName:$e.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||E(this,C,new Set(this._def.values),"f"),!_(this,C,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Oe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}C=new WeakMap,Oe.create=ke;class Ne extends A{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||E(this,k,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,k,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}k=new WeakMap,Ne.create=(e,t)=>new Ne({values:e,typeName:$e.ZodNativeEnum,...T(t)});class Te extends A{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:o.promise,received:t.parsedType}),m;const n=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Te.create=(e,t)=>new Te({type:e,typeName:$e.ZodPromise,...T(t)});class Ae extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){const e=i.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=i.transform(e.value,o);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(i.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(i)}}Ae.create=(e,t,n)=>new Ae({schema:e,typeName:$e.ZodEffects,effect:t,...T(n)}),Ae.createWithPreprocess=(e,t,n)=>new Ae({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...T(n)});class Ie extends A{_parse(e){return this._getType(e)===o.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ie.create=(e,t)=>new Ie({innerType:e,typeName:$e.ZodOptional,...T(t)});class Pe extends A{_parse(e){return this._getType(e)===o.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:$e.ZodNullable,...T(t)});class Re extends A{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:$e.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class De extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:$e.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class je extends A{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}je.create=e=>new je({typeName:$e.ZodNaN,...T(e)});const Me=Symbol("zod_brand");class Le extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ze extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ze({in:e,out:t,typeName:$e.ZodPipeline})}}class Fe extends A{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Be(e,t={},n){return e?se.create().superRefine(((r,i)=>{var o,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}})):se.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:$e.ZodReadonly,...T(t)});const Ue={object:pe.lazycreate};var $e;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}($e||($e={}));const qe=J.create,He=ee.create,Ve=je.create,We=te.create,Ke=ne.create,Ge=re.create,Ye=ie.create,Qe=oe.create,Ze=ae.create,Je=se.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,rt=pe.create,it=pe.strictCreate,ot=he.create,at=ge.create,st=ye.create,lt=be.create,ct=we.create,ut=xe.create,dt=_e.create,ft=Ee.create,pt=Se.create,ht=Ce.create,mt=Oe.create,gt=Ne.create,vt=Te.create,yt=Ae.create,bt=Ie.create,wt=Pe.create,xt=Ae.createWithPreprocess,_t=ze.create,Et={string:e=>J.create({...e,coerce:!0}),number:e=>ee.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>te.create({...e,coerce:!0}),date:e=>re.create({...e,coerce:!0})},St=m;var Ct=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:x,get util(){return r},get objectUtil(){return i},ZodParsedType:o,getParsedType:a,ZodType:A,datetimeRegex:Y,ZodString:J,ZodNumber:ee,ZodBigInt:te,ZodBoolean:ne,ZodDate:re,ZodSymbol:ie,ZodUndefined:oe,ZodNull:ae,ZodAny:se,ZodUnknown:le,ZodNever:ce,ZodVoid:ue,ZodArray:de,ZodObject:pe,ZodUnion:he,ZodDiscriminatedUnion:ge,ZodIntersection:ye,ZodTuple:be,ZodRecord:we,ZodMap:xe,ZodSet:_e,ZodFunction:Ee,ZodLazy:Se,ZodLiteral:Ce,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:Pe,ZodDefault:Re,ZodCatch:De,ZodNaN:je,BRAND:Me,ZodBranded:Le,ZodPipeline:ze,ZodReadonly:Fe,custom:Be,Schema:A,ZodSchema:A,late:Ue,get ZodFirstPartyTypeKind(){return $e},coerce:Et,any:Je,array:nt,bigint:We,boolean:Ke,date:Ge,discriminatedUnion:at,effect:yt,enum:mt,function:ft,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Be((t=>t instanceof e),t),intersection:st,lazy:pt,literal:ht,map:ut,nan:Ve,nativeEnum:gt,never:et,null:Ze,nullable:wt,number:He,object:rt,oboolean:()=>Ke().optional(),onumber:()=>He().optional(),optional:bt,ostring:()=>qe().optional(),pipeline:_t,preprocess:xt,promise:vt,record:ct,set:dt,strictObject:it,string:qe,symbol:Ye,transformer:yt,tuple:lt,undefined:Qe,union:ot,unknown:Xe,void:tt,NEVER:St,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},613:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},634:(e,t,n)=>{var r=n(81382),i=n(14837),o=n(84401),a=n(66944),s=n(38469),l=n(6737),c=n(76614);e.exports=function e(t,n,u,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284);function i({initialValue:e,onReset:t}){const[n,i]=r.useState(null),o=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(o.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;i(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},905:(e,t,n)=>{var r=n(71824),i=n(43261),o=n(52964),a=n(19305),s=n(88118),l=n(20368),c=n(48303),u=n(91159),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},935:(e,t,n)=>{var r=n(93454),i=n(4200),o=n(30507),a=n(74343),s=n(28815);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),i=n(62060),o=n.n(i);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:i,onSort:a}){const[s,l]=r.useState((()=>{if(e)return[{columnId:e,order:n||t}]}));return[s,r.useCallback((e=>{if(!e||Array.isArray(e)&&!e.length)return void(n||(null===a||void 0===a||a(void 0),l(void 0)));let t=Array.isArray(e)?e:[e];n&&(t=t.map((e=>({columnId:e.columnId,order:n})))),i||(t=t.slice(0,1)),l((e=>t&&!o()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,i,a])]}function s(e=[],t){const n=e.map((e=>({columnId:t(e.columnId),order:e.order}))).filter((e=>Boolean(e.columnId)));if(n.length)return n}function l({columnId:e,order:t}){return`${e} ${-1===t?"DESC":"ASC"}`}function c(e){return e?`ORDER BY ${e.map(l).join(", ")}`:""}},1167:(e,t,n)=>{var r=n(16133),i=n(78326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const i=()=>new RegExp(/\$t{([^}]+)}/g);var o;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(o||(o={}));Object.values(o);var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c({value:e,count:t,lang:n,pluralizers:r,log:i,key:o}){if(!Array.isArray(e))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(e,t,n)||o;if(!r)return i("Can not use deprecated plural format without pluralizers"),o;if(r[n]||i(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return i("Missing required plurals"),o;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||o:(i("Fallback pluralization is not configured!"),o)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(e={}){this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:i=null}=e;this.fallbackLang=n,this.lang=r,this.logger=i,t&&Object.entries(t).forEach((([e,t])=>{this.registerKeysets(e,t)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t,n={}){const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const i=this.getLanguageData(n);return Boolean(i&&i[e]&&(null===(r=i[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let i="";t?(i+=t,n&&(i+=`.${n}`)):i="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:i,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:i,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let i=`Using language ${r}. `;switch(t){case o.EmptyKeyset:i+="Keyset is empty.";break;case o.EmptyLanguageData:i+="Language data is empty.";break;case o.KeysetNotFound:i+="Keyset not found.";break;case o.MissingKey:i+="Missing key.";break;case o.MissingKeyFor0:return i+="Missing key for 0",i;case o.MissingKeyParamsCount:i+="Missing params.count for key.";break;case o.MissingKeyPlurals:i+="Missing required plurals.";break;case o.NoLanguageData:i=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(i+=` Trying to use fallback language "${n}"...`),i}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return i}}class d{constructor(e,t,n,r,i,o){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=i,this.nestingDepth=null!==o&&void 0!==o?o:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(o.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=i().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(o.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(o.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.text=function(e,t){let n,i="",o=r.lastIndex=0;for(;n=r.exec(e);){o!==n.index&&(i+=e.slice(o,n.index)),o=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?i+=t[s]:i+=a}return o<e.length&&(i+=e.slice(o)),i}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(o.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(o.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(o.EmptyKeyset):{data:t}:this.getTranslationDataError(o.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=i();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,i]=r;if(i){if(this.nestingDepth+1>1)return this.getTranslationDataError(o.ExceedTranslationNestingDepth);let[e,t]=[i,void 0];const n=i.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(o.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(o.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},1836:(e,t,n)=>{const r=n(15742);function i(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(r+=o("h",s),s=0)):i++}return r}(l,s,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,p),p}},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>A});var r=n(59284),i=n(72630),o=n(14794),a=n(18670),s=n(98392),l=n(19225),c=n(69220),u=n(99635),d=n(6826);const f=(0,c.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:c,disableOutsideClick:p,disableFocusTrap:h,disableAutoFocus:m,focusTrap:g=!0,autoFocus:v=!0,restoreFocusRef:y,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,onTransitionEnter:E,onTransitionEntered:S,onTransitionExit:C,onTransitionExited:k,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":P,"aria-label":R,container:D,qa:j}){const M=r.useRef(null),L=r.useRef(null),[z,F]=r.useState(!1);(0,o.y)({enabled:!n&&(e||z)});const B=(0,a.s)({enabled:e||z,restoreFocusRef:y,focusTrapped:!0});return(0,u.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:p,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,contentRefs:[L],type:"modal"}),r.createElement(i.A,{nodeRef:M,in:e,addEndListener:e=>{var t;return null===(t=M.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{F(!0),null===E||void 0===E||E()},onExit:()=>{F(!0),null===C||void 0===C||C()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===k||void 0===k||k()}},r.createElement(s.Z,{container:D},r.createElement("div",{ref:M,style:N,className:f({open:e},A),"data-qa":j},r.createElement("div",{className:f("content-aligner")},r.createElement("div",{className:f("content-wrapper")},r.createElement(l.s,{enabled:!h&&g&&e&&!z,autoFocus:!m&&v},r.createElement("div",Object.assign({ref:L,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":R,"aria-labelledby":P,className:f("content",{"has-scroll":"auto"===T},I)},B),O)))))))}var h=n(81240),m=n(84476),g=n(99991),v=n(72837);const y=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,v.N)({en:y,ru:b},"Dialog"),x=(0,c.om)("dialog-btn-close");function _({onClose:e}){return r.createElement("div",{className:x()},r.createElement(m.$,{view:"flat",size:"l",className:x("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},r.createElement(g.I,{data:h.A,size:20})))}const E=(0,c.om)("dialog-body");const S=(0,c.om)("dialog-divider");var C=n(39238);const k=(0,c.om)("dialog-footer");class O extends r.Component{constructor(){super(...arguments),this.errorTooltipRef=r.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:i,textButtonApply:o,propsButtonCancel:a,propsButtonApply:s,preset:l,children:c,errorText:u,showError:d,renderButtons:f,className:p}=this.props,h=r.createElement("div",{className:k("button",{action:"cancel"})},r.createElement(m.$,Object.assign({view:o?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),i)),g=r.createElement("div",{className:k("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:k("button-apply",{preset:l})},s),o),u&&r.createElement(C.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:k("error")},u)));return r.createElement("div",{className:k(null,p)},r.createElement("div",{className:k("children")},c),r.createElement("div",{className:k("bts-wrapper")},f?f(g,h):r.createElement(r.Fragment,null,i&&h,o&&g)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}O.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const N=(0,c.om)("dialog-header");const T=(0,c.om)("dialog");class A extends r.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,size:d,contentOverflow:f="visible",className:h,modalClassName:m,hasCloseButton:g,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:C,"aria-label":k,"aria-labelledby":O,qa:N}=this.props;return r.createElement(p,{open:n,contentOverflow:f,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:C,className:T("modal",m),"aria-label":k,"aria-labelledby":O,container:e,qa:N},r.createElement("div",{className:T({size:d,"has-close":g,"has-scroll":"auto"===f},h)},t,g&&r.createElement(_,{onClose:this.handleCloseButtonClick})))}}A.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},A.Footer=O,A.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:i,className:o,id:a}=e;return r.createElement("div",{className:N(null,o)},n,r.createElement("div",{className:N("caption"),id:a},t),i)},A.Body=function(e){const{className:t,hasBorders:n=!1}=e;return r.createElement("div",{className:E({"has-borders":n},t)},e.children)},A.Divider=function({className:e}){return r.createElement("div",{className:S(null,e)})}},2859:e=>{e.exports=function(e,t){return e.has(t)}},3309:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},3357:(e,t,n)=>{"use strict";var r;n.d(t,{ZM:()=>s,jK:()=>a,zj:()=>l}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let i=[];const o={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(o,e),i.forEach((e=>{e(o)}))},s=e=>(i.push(e),()=>{i=i.filter((t=>t!==e))}),l=()=>o},3584:(e,t,n)=>{"use strict";var r=n(39955),i=n(69123),o=n(93339),a=n(5635),s=n(46343)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},3773:(e,t,n)=>{const r=n(71928);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},4133:(e,t,n)=>{var r=n(54528),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4178:(e,t,n)=>{var r=n(31926),i=n(87924),o=n(1167),a=n(46626),s=n(17900),l=n(89157),c=n(92061);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},4200:(e,t,n)=>{var r=n(6993),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>R});var r=n(27145),i=n(59284),o=n(56993),a=n.n(o),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:i=[]},o=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return o?{sortOrder:n,sortColumns:i}:u;let d=i;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!o)return p?{sortOrder:{[e]:p},sortColumns:[e]}:u;const h=n,m=e,g=(h[m],(0,r.Tt)(h,["symbol"===typeof m?m:m+""]));return p?(g[e]=p,new Set(i).has(e)||(d=[...i,e])):d=i.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:i}=e;return"function"===typeof i?(e,t)=>r*i(e,t):(t,i)=>{const o=e._getSortValue(t.row),a=e._getSortValue(i.row);return null==o&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=o?n.nullBeforeNumbers?r:-1:o<a?Number(-r):o>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},i){const o={};t.forEach((e=>{n[e.name]?o[e.name]=d(e,n[e.name],i):e.group&&e.autogroup&&(o[e.name]=d(e,l.VU,i))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>o[e.name])).filter(Boolean),...r.map((e=>o[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!i.externalSort&&u.sort(((e,t)=>{let n=0;return c.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),u.length>1&&s){const e=[],t=[];u.forEach((n=>{a.every(((r,i)=>{const o=r._getValue(n.row);return e[i]&&o===t[i]?(e[i].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(i).forEach(((r,o)=>{e[i+o]=n,t[i+o]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return u}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,{columnId:n,order:r})=>u({name:n,defaultOrder:r},e,!0,t)),{sortOrder:{},sortColumns:[]})}function h({getColumn:e,columnIndex:t,columnId:n,minWidth:r,maxWidth:o,onResize:a}){const s=i.useRef(null),[l,u]=i.useState(!1);return i.useEffect((()=>{const i=s.current;if(!i)return;let l,c,d;const f=function(e){let t,n=null;return function(...r){t=r,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof l||"number"!==typeof c)return;const t=e.clientX-l,i=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,o);i!==d&&(d=i,null===a||void 0===a||a(n,d))})),p=e=>{m(e),void 0!==d&&(null===a||void 0===a||a(n,d)),u(!1),l=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=n=>{var r;c=null===(r=e(t))||void 0===r?void 0:r.getBoundingClientRect().width,m(n),l=n.clientX,u(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return i.addEventListener("mousedown",h),()=>{i.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,o,e,t]),i.createElement("span",{ref:s,className:c("resize-handler",{resizing:l}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),x={ICON_ASC:b,ICON_DESC:w};const _=({sortOrder:e,sortIndex:t,sortable:n,defaultOrder:r})=>n?i.createElement("span",{className:c("sort-icon",{shadow:!e}),"data-index":t},function(e){switch(e){case l.VU:return x.ICON_ASC;case l.xN:return x.ICON_DESC;default:return!1}}(e||r)):null;class E extends i.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:o,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return i.createElement("tr",{className:c("row",{odd:o,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let o;if(s){if(0===s[e.name])return null;o=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),i.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:o,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}E.defaultProps={footer:!1};class S extends i.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:o,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let x=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(x=Object.assign(Object.assign({},x),{width:g,maxWidth:g})),i.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:o,style:x,onClick:this._getOnSortClick(r)},i.createElement("div",{className:c("head-cell")},l,i.createElement(_,Object.assign({},r))),v&&i.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>i.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,i.createElement(i.Fragment,null,i.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:i.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.Uc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class C extends i.Component{constructor(){super(...arguments),this.state={style:{top:C.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,o=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return i.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(o))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(o))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.zQ||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={top:0};class k extends i.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.zQ){const{style:e}=this.state;return i.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={bottom:0};class O extends i.PureComponent{constructor(){super(...arguments),this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:i,span:o}=t[e];return this.renderRowImpl(r,i,{onRowClick:n,odd:e%2===0,span:o})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=(e,t,{onRowClick:n,odd:r,span:o,footer:a,headerData:s}={})=>{const{columns:{dataColumns:l},rowClassName:c,rowKey:u,getColSpansOfRow:d}=this.props,f="function"===typeof c?c(e,t,a,s):"";return i.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:o,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:o}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return i.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},i.createElement("table",{className:c("table"),style:o===l.zQ?a:void 0},i.createElement("colgroup",null,r.map((({width:e},t)=>i.createElement("col",{key:t,width:e})))),this.renderHead(),i.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&i.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return i.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),i.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):i.createElement("tr",{className:c("row")},i.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,o=this.renderHeaderRows();return i.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:o}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:o,stickyHead:a}=this.props.settings,s="auto"===o&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(o)||0,l=this.renderHeaderRows();return i.createElement(C,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return i.createElement(k,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:o,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return i.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:o,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const N=i.memo((function(e){const{column:t,value:n,row:r,index:o,footer:a,headerData:s}=e;return i.createElement(i.Fragment,null,t.render({value:n,row:r,index:o,footer:a,headerData:s}))}));class T extends i.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=({column:e,value:t,row:n,index:r,footer:o,headerData:a})=>i.createElement(N,{column:e,value:t,row:n,index:r,footer:o,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:i}=this.state,{defaultOrder:o}=i,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=i.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),x=(null!==(n=e.resizeable)&&void 0!==n?n:i.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,C="function"===typeof e.render?({value:t,row:n,index:r,footer:i,headerData:o})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:i,headerData:o}):({value:e})=>e,k="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:o},e),{resizeable:x,sortable:m&&d,_className:w,_getValue:_,_getTitle:E,_getSortValue:S,_renderValue:C,_getOnClick:O,customStyle:k,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:i}=this.props;if("function"===typeof i){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);i(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(e=!1){return e!==l.zQ||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn({startIndex:e,data:t,visibleRowIndex:n,settings:r}){const i="object"===typeof r.displayIndices?r.displayIndices.maxIndex:e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:i,headerData:o})=>{var a,s;return o?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:i?null!==(s=t.footerIndex)&&void 0!==s?s:e+r:"function"===typeof n?n(t,r):e+r},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(i))}}static getDerivedStateFromProps(e){const t=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:o,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:x=!1,headerMod:_=!1}=v,E=c({"highlight-rows":w,"striped-rows":x,header:_,theme:h}),S=this.getComplexColumns(o);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),i.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:i}=this.state,o=i?[i,...e]:e,a=(e,i)=>{t[i]||(t[i]=[]);const o=t[i];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,i+1);else{const e=this.getColumn(t,n.length);n.push(e),l=i,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),o.push(u),s+e}),0)};return a(o,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function A(e){return new Set(e.map((e=>e.name))).size!==e.length}T.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.VU,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},T.getSortedData=f;const I="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class P extends i.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){x.ICON_ASC=e.ICON_ASC||b,x.ICON_DESC=e.ICON_DESC||w}componentDidMount(){A(this.props.columns)&&console.warn(I)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&A(t)&&console.warn(I)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?i.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):i.createElement(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}P.FIXED=l.N2,P.MOVING=l.zQ,P.ASCENDING=l.VU,P.DESCENDING=l.xN,P.LEFT=l.M3,P.CENTER=l.Q7,P.RIGHT=l.NS;const R=P},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},5290:(e,t,n)=>{"use strict";var r=n(51700),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},5635:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(39955),s=r("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=d(e,t);return 0===f(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),o=(0,r.g4)("ydb-components-info-viewer",{en:i})},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6032:(e,t,n)=>{"use strict";var r=n(59284);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},6354:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,r:()=>i});let r=function(e){return e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid",e}({}),i=function(e){return e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped",e}({})},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>o,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>i,zQ:()=>c});const r=1,i=-1,o="left",a="center",s="right",l="fixed",c="moving",u="__index__"},6597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],i=n[1],o=void 0===i?0:i,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:o,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)},t.getTimestampFromObject=s;var r=n(84080),i=n(13064);var o={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,i.normalizeDateComponents)(e,i.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,i.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?o[f]:l[f]}var p=(0,r.fixOffset)((0,i.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}},6693:(e,t,n)=>{const r=n(71928),i=n(22750);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},6737:(e,t,n)=>{var r=n(20943),i=n(24447),o=n(88118);e.exports=function(e){return o(e)?r(e,!0):i(e)}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(69220);function i(e){return{appear:(0,r.Nx)(e({appear:!0})),appearActive:(0,r.Nx)(e({appear:"active"})),appearDone:(0,r.Nx)(e({appear:"done"})),enter:(0,r.Nx)(e({enter:!0})),enterActive:(0,r.Nx)(e({enter:"active"})),enterDone:(0,r.Nx)(e({enter:"done"})),exit:(0,r.Nx)(e({exit:!0})),exitActive:(0,r.Nx)(e({exit:"active"})),exitDone:(0,r.Nx)(e({exit:"done"}))}}},6993:(e,t,n)=>{var r=n(61872);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7139:function(e,t,n){var r,i;r=function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,o,l,c;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if((c="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat)&&n.match(c)){l=r[o].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var o,a,s,l,c,u,d,f=i[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,x="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!o||"t"===o?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!o||"b"===o?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!o||"m"===o?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!o||"k"===o)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?f.delimiters.decimal+x.split(".")[1]:"",h&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!o&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var E=m-s.length;E>0;E--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,o=i[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=a,e.formats=r,e.locales=i,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return i[a.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)a[e]=o[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===o))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===l&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(c.match(r[i].regexps.format)){s=r[i].format;break}o=(s=s||e._.numberToFormat)(l,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,s,l,c=e._.includes(i,"ib")?n:t,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=e._.stringToNumber(r);if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},7328:e=>{"use strict";e.exports=Math.pow},7412:(e,t,n)=>{"use strict";function r(e){var t;return null!==(t=e.props.ref)&&void 0!==t?t:e.ref}n.d(t,{Q:()=>r})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>i,uk:()=>o});const r=e=>[...Array(e).keys()];function i(e){return null!==e&&void 0!==e}async function o(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"}))},7653:(e,t,n)=>{var r=n(22984),i=n(99806),o=n(68489),a=n(38533),s=n(99661);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>_,q:()=>E});var r,i,o,a,s,l,c,u,d,f,p,h=n(99991),m=n(77506),g=n(59284);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),i||(i=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),o||(o=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(60712);const w=(0,m.cn)("empty-state"),x={s:150,m:250,l:350},_=({image:e,title:t,description:n,actions:r,size:i="m",position:o="center"})=>(0,b.jsx)("div",{className:w({size:i}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:i,position:o}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:x[i],height:x[i]})}),(0,b.jsx)("div",{className:w("title",{size:i}),children:t}),(0,b.jsx)("div",{className:w("description"),children:n}),(0,b.jsx)("div",{className:w("actions"),children:r})]})});function E({isEmpty:e,children:t,className:n,...r}){return e?(0,b.jsx)("div",{className:n,children:(0,b.jsx)(_,{...r})}):t}},8330:e=>{"use strict";e.exports={rE:"8.20.1"}},8543:(e,t,n)=>{var r=n(81382),i=n(31926);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var h=o(d,f,u,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},i={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},8928:(e,t,n)=>{"use strict";var r,i=n(31886),o=n(84363);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>o,si:()=>l,yZ:()=>s});var r=n(35719);const i={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},o=e=>t=>e in i&&i[e]-i[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[i[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},9112:e=>{e.exports=function(e){return e}},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))},9265:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),i=n(59284),o=n(69220),a=n(46423);const s=(0,o.om)("box"),l=i.forwardRef((function(e,t){var{as:n,children:o,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r.Tt)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const x=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return i.createElement(x,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),o)}))},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9624:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var i={},o={};o[n]=0;var a,s,l,c,u,d,f,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],f=o[l],("undefined"===typeof o[l]||f>d)&&(o[l]=d,p.push(l,d),i[l]=s));if("undefined"!==typeof r&&"undefined"===typeof o[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),i=n(69220),o=n(41668);let a=1;function s(){return`${i.CU}uniq-${a++}`}const l=(0,o.g)("svg"),c=(0,o.g)(r.I)},10508:(e,t,n)=>{"use strict";n.d(t,{c:()=>g});var r=n(59284),i=n(43937),o=n(67884),a=n(84375),s=n(84476),l=n(99991),c=n(96873),u=n(54090),d=n(77506),f=n(82015),p=n(33775),h=n(60712);const m=(0,d.cn)("entity-status");function g({status:e=u.m.Grey,name:t="",label:n,path:d,iconPath:g,size:v="s",mode:y="color",showStatus:b=!0,externalLink:w=!1,withLeftTrim:x=!1,hasClipboardButton:_,infoPopoverContent:E,clipboardButtonAlwaysVisible:S=!1,className:C}){const[k,O]=r.useState(!1),N=()=>b?(0,h.jsx)(p.k,{className:m("icon"),status:e,size:v,mode:y}):null;return(0,h.jsxs)("div",{className:m(null,C),children:[g?(T=g,(0,h.jsx)(o.N,{target:"_blank",href:T,children:N()})):N(),n&&(0,h.jsx)("span",{title:n,className:m("label",{size:v,state:e.toLowerCase()}),children:n}),(d||t)&&(0,h.jsxs)("div",{className:m("wrapper",{"with-clipboard-button":_,"with-info-button":Boolean(E)}),children:[(0,h.jsx)("span",{className:m("link",{"with-left-trim":x}),title:t,children:d?w?(0,h.jsx)(o.N,{className:m("name"),href:d,children:t}):(0,h.jsx)(f.E,{className:m("name"),to:d,children:t}):t&&(0,h.jsx)("span",{className:m("name"),children:t})}),(_||E)&&(0,h.jsxs)("div",{className:m("controls-wrapper",{visible:S||k}),children:[E&&(0,h.jsx)(a.A,{className:m("info-popover"),content:E,tooltipOffset:[-4,4],placement:["top-start","bottom-start"],onOpenChange:e=>O(e),children:(0,h.jsx)(s.$,{view:"normal",size:"xs",children:(0,h.jsx)(l.I,{data:i.A,size:"12",className:m("info-icon",{visible:S||k})})})}),_&&(0,h.jsx)(c.b,{text:t,size:"xs",view:"normal",className:m("clipboard-button",{visible:S||k})})]})]})]});var T}},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},10755:(e,t,n)=>{"use strict";n.d(t,{B6:()=>T,Ix:()=>b,W5:()=>U,W6:()=>z,XZ:()=>y,dO:()=>M,g:()=>B,qh:()=>A,rd:()=>C,zy:()=>F});var r=n(25540),i=n(59284),o=n(13260),a=n.n(o),s=n(45264),l=n(68643),c=n(58168),u=n(13489),d=n.n(u),f=(n(67076),n(98587)),p=(n(5290),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=i.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.A)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(i.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component);var x={},_=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(x[e])return x[e];var t=d().compile(e);return E<_&&(x[e]=t,E++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=o?r.push:r.replace,d=(0,s.yJ)(t?"string"===typeof n?S(n,t.params):(0,c.A)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):i.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,(0,c.A)({},d,{key:n.key}))||u(d)},to:n})}))}var k={},O=1e4,N=0;function T(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return N<O&&(r[e]=o,N++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,o=(0,c.A)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(y.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.Component);function I(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=I(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"===typeof e?e:(0,s.AO)(e)}function D(e){return function(){(0,l.A)(!1)}}function j(){}i.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==r&&i.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(o.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?i.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.Component);var L=i.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?T(t.pathname,e):n}},11078:(e,t,n)=>{var r=n(28293),i=n(62509);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},11275:(e,t,n)=>{var r=n(89875),i=n(21519),o=n(68055);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},11319:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},11320:(e,t,n)=>{var r=n(7653),i=n(935),o=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11345:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function i(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.floorMod=n,t.isLeapYear=r,t.daysInYear=i,t.daysInMonth=function(e,t){var i=n(t,12),o=e+(t-i)/12;return 1===i?r(o)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][i]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t},t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in o)return o[t];throw new Error("Invalid unit ".concat(e))},t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],l=o[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n},t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],i=r[0],o=r[1],a=r[2],s=Number(60*Number(o))+(isFinite(Number(a))?Number(a):0);return"+"===i?s:-s},t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=e.year,i=e.month,o=e.date,a=u(r,i,o),s=v(e,t,n),l=s.weekYear,c=s.weekNumber,d=s.weekday,f=v(e,4,1),p=f.weekYear,h=f.weekNumber,m=f.weekday;return{day:a,weekYear:l,weekNumber:c,weekday:d-1,isoWeekYear:p,isoWeekNumber:h,isoWeekday:m}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,o=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(o,0,t),n),c=i(o),u=7*a+s-l-7+t;u<1?u+=i(r=o-1):u>c?(r=o+1,u-=i(o)):r=o;var f=m({year:r,ordinal:u}),p=f.month,h=f.date;return{year:r,month:p,date:h}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.add(i,"months");if(n.valueOf()-o.valueOf()<0){var a=t.add(i-1,"months");r=(n.valueOf()-o.valueOf())/(o.valueOf()-a.valueOf())}else{a=t.add(i+1,"months");r=(n.valueOf()-o.valueOf())/(a.valueOf()-o.valueOf())}return-(i+r)||0};var o={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,i=r(t)?p:f,o=i.findIndex((function(e){return e<n}));return{month:o,date:n-i[o]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,i=e.year,o=e.month,a=e.date,s=g(d(i,o,a),n),l=h({year:i,month:o,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=i-1,t,n):c>b(i,t,n)?(r=i+1,c=1):r=i,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),o=y(e+1,t,n);return(i(e)-r+o)/7}},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(59284);const i={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},o=r.createContext(i)},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(27145),i=n(69220);const o=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r.Tt)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(i.CU)},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>C,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>w,fW:()=>x,KH:()=>E,Cb:()=>S,UF:()=>_,F:()=>g,dZ:()=>I,id:()=>A});var r=n(370);let i=function(e){return e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp",e.Date32="Date32",e.Datetime64="Datetime64",e.Timestamp64="Timestamp64",e.Interval64="Interval64",e.TzDate32="TzDate32",e.TzDatetime64="TzDatetime64",e.TzTimestamp64="TzTimestamp64",e}({});var o=n(81288);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m=e=>{switch(e.replace(/\?$/,"")){case i.Bool:return"boolean";case i.Int8:case i.Int16:case i.Int32:case i.Int64:case i.Uint8:case i.Uint16:case i.Uint32:case i.Uint64:case i.Float:case i.Double:case i.Decimal:return"number";case i.String:case i.Utf8:case i.Json:case i.JsonDocument:case i.Yson:case i.Uuid:return"string";case i.Date:case i.Datetime:case i.Timestamp:case i.Interval:case i.TzDate:case i.TzDateTime:case i.TzTimestamp:case i.Date32:case i.Datetime64:case i.Timestamp64:case i.Interval64:case i.TzDate32:case i.TzDatetime64:case i.TzTimestamp64:return"date";default:return}},g=(e,t)=>{const n=t.map((e=>e.name));return e.map((e=>{const t={};return e.forEach(((e,r)=>{const i=n[r];null!==e&&"object"===typeof e||"boolean"===typeof e||Array.isArray(e)?t[i]=JSON.stringify(e):t[i]=e})),t}))},v=e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let i;return n&&(i=[]),t&&n&&(i=g(t,n)),{columns:n,result:i,truncated:r}})),...n}},y=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),b=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function w(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function x(e){return b(e)?{}:y(e)?v(e):e}const _=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,E=e=>"string"===typeof e||w(e)?e:(0,o.TX)(e)?e.message:(0,o.qP)(e)?"data"in e&&w(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},C={queryMode:p.query,transactionMode:a.implicit,timeout:null,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},k=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),A=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined()).or(r.z.null())).or(r.z.literal("")),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).or(r.z.undefined())),queryMode:k,transactionMode:O,statisticsMode:N,tracingLevel:T}),I=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.null()).optional()),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(C.limitRows)),queryMode:k.catch(C.queryMode),transactionMode:O.catch(C.transactionMode),statisticsMode:N.catch(C.statisticsMode),tracingLevel:T.catch(C.tracingLevel)}).catch(C)},12249:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},12880:(e,t,n)=>{var r=n(63786),i=n(9434),o=n(20878);e.exports=function(e){return i(e)?o(e):r(e)}},12888:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(78668),i=n(75022);function o(){return(0,i.N)(r._5)}},12927:(e,t,n)=>{var r=n(59368),i=n(22807),o=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},13064:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(11345),t)},13260:(e,t,n)=>{e.exports=n(77390)()},13342:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});var r=n(47665),i=n(77506),o=n(60712);const a=(0,i.cn)("ydb-usage-label");function s({value:e,overloadThreshold:t=90,theme:n,...i}){return(0,o.jsxs)(r.J,{theme:n,className:a({overload:Number(e)>=t}),...i,children:[e||0,"%"]})}},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,E="?"===b||"*"===b,S=m||c,C=v||y,k=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:S,optional:E,repeat:_,partial:x,asterisk:!!w,pattern:C?u(C):w?".*":a(S,k)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=a[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},14750:(e,t,n)=>{"use strict";t.p0=t.Pn=t.eP=t.bQ=t.cS=t.KQ=void 0,n(77966).settings;var r=n(60166);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"cS",{enumerable:!0,get:function(){return r.expandFormat}});var i=n(49837);var o=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return o.dateTimeParse}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return o.isLikeRelative}});var a=n(84080);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(72328);var l=n(62391);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return l.duration}})},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(59284);const i="padding-right",o="padding-bottom",a="overflow",s=[a,i,o];let l=0,c={};function u({enabled:e}){r.useLayoutEffect((()=>{if(e)return l++,1===l&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();c=function(){const e={};for(const t of s)e[t]=document.body.style.getPropertyValue(t);return e}(),document.body.style.setProperty(a,"hidden"),e&&document.body.style.setProperty(i,`${n.right+e}px`);t&&document.body.style.setProperty(o,`${n.bottom+t}px`)}(),()=>{l--,0===l&&function(){for(const e of s){const t=c[e];t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}}()}}),[e])}},14837:(e,t,n)=>{var r=n(80472),i=n(61872);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},15227:(e,t,n)=>{const r=n(22750),i=n(38198),o=n(53577),a=n(71928),s=n(69310),l=r.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=8*(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===a.MIXED)return o;const l=o-c(n,e);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},15464:(e,t,n)=>{var r=n(73712),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},15619:(e,t,n)=>{"use strict";n.d(t,{f:()=>l,z:()=>u});var r=n(76086),i=n(56839),o=n(41650),a=n(82621);const s={b:{value:1,label:(0,a.A)("b")},kb:{value:r.eh,label:(0,a.A)("kb")},mb:{value:r.pg,label:(0,a.A)("mb")},gb:{value:r.J7,label:(0,a.A)("gb")},tb:{value:r.Db,label:(0,a.A)("tb")}},l=e=>{let t="b";return e>=s.kb.value&&(t="kb"),e>=s.mb.value&&(t="mb"),e>=s.gb.value&&(t="gb"),e>=s.tb.value&&(t="tb"),t},c=(e,t,n=o.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,delimiter:u,...d})=>{if(!(0,o.kf)(e))return"";const f=Number(e),p=null!==t&&void 0!==t?t:l(f),h=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,i.CR)(Number(e)/s[t].value,n);return(0,i.ZV)(r)})({value:f,size:p,...d});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(h,p):r?c(h,p,u):h}},15742:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[o[Math.floor((t-l)/a)*i+Math.floor((n-l)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},16244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=function(e,t,i){void 0===t&&(t=r);void 0===i&&(i=!1);for(var o,a=0,s="",l=0;l<n.length;l+=1){var c=n[l];c.d&&(a=e.as(c.d));var u=Math.round(Math.abs(a));if(o=a>0,u<=c.r){u<=1&&l>0&&(c=n[l-1]);var d=t[c.l];s="string"===typeof d?d.replace("%d","".concat(u)):d(u,i,c.l,o);break}}if(i)return s;var f=o?t.future:t.past;if("function"===typeof f)return f(s);return f.replace("%s",s)};var n=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},16284:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16320:(e,t,n)=>{var r=n(537),i=n(48955),o=n(85406),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>A,Kq:()=>O,hS:()=>_,kz:()=>S,vt:()=>E});var r=n(59284),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,o;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return i(i({},e),((n={})[l]=i(i({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?i(i({},e),((r={})[l]=i(i({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=i({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return i(i({},e),((o={})[l]=i(i({},e[l]),p),o));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,i,o=new Promise((function(e,t){r=e,i=t}));g[n]={resolve:r,reject:i,promise:o}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,i=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:i}}return v[t].promise}var x=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function _(e,t){var n=(0,r.useContext)(l),i=(0,r.useContext)(c),o=null,a=e&&"string"!==typeof e;if(!(o=e?y(e):i))throw new Error("No modal id found in NiceModal.useModal.");var s=o;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return x(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),_=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:_,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,_,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=o(t,["defaultVisible","keepMounted","id"]),h=_(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,i({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},C=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return i({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,i({key:e.id,id:e.id},e.props))})))},k=function(e){var t=e.children,n=(0,r.useReducer)(m,s),i=n[0];return p=n[1],r.createElement(l.Provider,{value:i},t,r.createElement(C,null))},O=function(e){var t=e.children,n=e.dispatch,i=e.modals;return n&&i?(p=n,r.createElement(l.Provider,{value:i},t,r.createElement(C,null))):r.createElement(k,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const A={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=o(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,i({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:x,useModal:_,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},16439:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,f:()=>o});var r=n(76086);const i=(e,t=r.Hh,n=r.Ed)=>r=>0<=r&&r<t?e[0]:t<=r&&r<n?e[1]:n<=r?e[2]:void 0,o=i(["success","warning","danger"])},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeParse=void 0,t.isLikeRelative=o,t.isValid=function(e){try{if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}catch(i){return!1}};var r=n(60166),i=n(77966);function o(e){return"string"===typeof e&&i.settings.getRelativeParser().isLikeRelative(e)}t.dateTimeParse=function(e,t){if(void 0!==e){var n=function(e,t){var n;if(o(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return i.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang;try{var c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}catch(u){return}}(e,t);return n}}},16572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);r||(r=new Intl.DateTimeFormat(e,t),o.set(n,r));return r},t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=a.get(n);r||(r=new Intl.ListFormat(e,t),a.set(n,r));return r},t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=s.get(n);r||(r=new Intl.NumberFormat(e,t),s.set(n,r));return r},t.getLocaleData=function(e){var t=i.default.Ls[e];if(!t)throw new Error("Locale ".concat(e," is not loaded"));return t};var i=r(n(38960)),o=new Map;var a=new Map;var s=new Map},16819:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(59284),i=n(69024),o=n(59001);const a=e=>{const t=r.useCallback((()=>e?o.f.readUserSettingsValue(e,{}):{}),[e]),n=r.useCallback((t=>{e&&o.f.setUserSettingsValue(e,t)}),[e]);return(0,i.a)({saveSizes:n,getSizes:t})}},16929:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},17148:(e,t,n)=>{var r=n(634),i=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=i},17594:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var r=n(69024),i=n(4557),o=n(77506),a=n(16819),s=n(60712);const l=(0,o.cn)("ydb-resizeable-data-table");function c({columnsWidthLSKey:e,columns:t,settings:n,wrapperClassName:o,...c}){const[u,d]=(0,a.a)(e),f=(0,r.j)(t,u),p={...n,defaultResizeable:!0};return(0,s.jsx)("div",{className:l(null,o),children:(0,s.jsx)(i.Ay,{theme:"yandex-cloud",columns:f,onResize:d,settings:p,...c})})}},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},18408:(e,t,n)=>{var r=n(45296);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},18517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,WO:()=>h,sH:()=>p,Mj:()=>m,es:()=>f,z6:()=>v});var r=n(97091),i=n(59001),o=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(i.c[o.Mt]).parse(i.f.readUserSettingsValue(o.Mt))},u=(0,r.Z0)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.F.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async({path:e},{signal:t})=>{try{var n,r;return{data:null!==(n=null===(r=(await window.api.viewer.getTenantInfo({path:e},{signal:t})).TenantInfo)||void 0===r?void 0:r[0])&&void 0!==n?n:null}}catch(i){return{error:i}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async({database:e},{signal:t})=>{try{const n=await window.api.viewer.getClusterConfig(e,{signal:t});return{data:n.Databases[0].FeatureFlags}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>S});var r=n(27145),i=n(59284),o=n(32084),a=n(81517),s=n(69220);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(98816),u=n.n(c),d=n(11078),f=n.n(d);function p(e,t){return e.trim().split(t).filter(Boolean)}const h=/\s/;function m(e,t){return p(t,h).map((t=>f()(p(t,"+").map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(g)))}function g(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const v=(0,s.om)("hotkey"),y={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},b=i.forwardRef((function(e,t){const{value:n,platform:r,view:o="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform)?"mac":"pc",i=l[r];return m(i,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(y.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(y.BetweenKeys,i.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(i.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:i.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:o},c)},d)}));var w=n(39238),x=n(7412);const _=["bottom","top"],E=(0,s.om)("action-tooltip");function S(e){const{placement:t=_,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r.Tt)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,S]=i.useState(null),C=(0,a.d)(y,v),k=i.Children.only(l),O=(0,x.Q)(k),N=(0,o.N)(S,O);return i.createElement(i.Fragment,null,i.cloneElement(k,{ref:N}),y?i.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:C&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},i.createElement("div",{className:E("content",u)},i.createElement("div",{className:E("heading")},i.createElement("div",{className:E("title")},n),s&&i.createElement(b,{view:"dark",value:s,className:E("hotkey")})),d&&i.createElement("div",{className:E("description")},d))):null)}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(59284),i=n(83046);function o({enabled:e,restoreFocusRef:t,focusTrapped:n}){const o=r.useRef(null),a=r.useRef(null),s=r.useRef(null);return r.useEffect((()=>{if(!e)return;const t=e=>{const t=e.target;!n&&t instanceof HTMLElement&&(0,i.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,i.AO)(t)?s.current=t:s.current=null};return window.addEventListener("focusin",t),window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("focusin",t),window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}}),[e,n]),r.useEffect((()=>{var n;o.current=e&&null!==(n=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==n?n:null})),r.useEffect((()=>{if(e)return()=>{let e=o.current;const t=s.current;t&&document.contains(t)&&(0,i.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,i.tp)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),a.current=null,s.current=null)}}),[e]),{onFocus:n=>{var r;e&&null===a.current&&(a.current=n.relatedTarget,s.current=a.current,o.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),i=n(77506),o=n(5741),a=n(60712);const s=(0,i.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:i,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:i},l),children:[e&&(0,a.jsx)("div",{className:s("title"),children:e}),t&&t.length>0?(0,a.jsx)("div",{className:s("items"),children:t.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:c}),children:e.label}),n&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,o.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:i})})},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>C});var r=n(59284),i=n(83046);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},d=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},f=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},p=function(e){return f(e)&&!e.shiftKey},h=function(e){return f(e)&&e.shiftKey},m=function(e){return setTimeout(e,0)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},v=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},y=[],b=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,o=(null===t||void 0===t?void 0:t.trapStack)||y,a=l({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:p,isKeyBackward:h},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||i.find((function(t){return t===e}))}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,o=t.params,s=void 0===o?[]:o,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,c(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=l;if("string"===typeof l){try{u=r.querySelector(l)}catch(d){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!u&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return u},_=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,i.tp)(e,a.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}else null===e&&(e=x("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,i.Kr)(e,a.tabbableOptions),n=(0,i.nq)(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return(0,i.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,i.AO)(e)})),c=!!t.find((function(e){return(0,i.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,i.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,i.AO)(e)})):t[o+(r?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?S(t.shadowRoot):t},C=function(e){!1!==e&&e!==S(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):C(_()))},k=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||v(n),E();var l=null;if(s.tabbableGroups.length>0){var c=w(t,n),u=c>=0?s.containerGroups[c]:void 0;if(c<0)l=o?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(o){var d=s.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(d=c),d>=0){var p=0===d?s.tabbableGroups.length-1:d-1,h=s.tabbableGroups[p];l=(0,i.yT)(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t,!1))}else{var m=s.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(m=c),m>=0){var g=m===s.tabbableGroups.length-1?0:m+1,y=s.tabbableGroups[g];l=(0,i.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t))}}else l=x("fallbackFocus");return l},N=function(e){var t=v(e);w(t,e)>=0||(g(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):g(a.allowOutsideClick,e)||e.preventDefault())},T=function(e){var t=v(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var o=!0;if(s.mostRecentlyFocusedNode)if((0,i.yT)(s.mostRecentlyFocusedNode)>0){var l=w(s.mostRecentlyFocusedNode),c=s.containerGroups[l].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(a.isKeyForward(s.recentNavEvent)?u+1<c.length&&(r=c[u+1],o=!1):u-1>=0&&(r=c[u-1],o=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,i.yT)(e)>0}))}))||(o=!1);else o=!1;o&&(r=O({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),C(r||(s.mostRecentlyFocusedNode||_()))}s.recentNavEvent=void 0},A=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(f(e)&&e.preventDefault(),C(n))}(e,a.isKeyBackward(e))},I=function(e){var t;"Escape"!==(null===(t=e)||void 0===t?void 0:t.key)&&"Esc"!==(null===t||void 0===t?void 0:t.key)&&27!==(null===t||void 0===t?void 0:t.keyCode)||!1===g(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},P=function(e){var t=v(e);w(t,e)>=0||g(a.clickOutsideDeactivates,e)||g(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},R=function(){if(s.active)return u(o,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){C(_())})):C(_()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I),n},D=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",P,!0),r.removeEventListener("keydown",A,!0),r.removeEventListener("keydown",I),n},j="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&C(_())})):void 0,M=function(){j&&(j.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),i=b(e,"checkCanFocusTrap");i||E(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var o=function(){i&&E(),R(),M(),null===n||void 0===n||n()};return i?(i(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=l({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,D(),s.active=!1,s.paused=!1,M(),d(o,n);var r=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),c=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){m((function(){u&&C(k(s.nodeFocusedBeforeActivation)),null===i||void 0===i||i()}))};return u&&c?(c(k(s.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(e){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),s.active&&E(),M(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(e,t){if(s.paused===e)return this;if(s.paused=e,e){var n=b(t,"onPause"),r=b(t,"onPostPause");null===n||void 0===n||n(),D(),M(),null===r||void 0===r||r()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null===i||void 0===i||i(),E(),R(),M(),null===o||void 0===o||o()}return this}}}),n.updateContainerElements(e),n},w=n(32084),x=n(90826),_=n(7412);const E=r.createContext(void 0);function S({children:e,enabled:t=!0,disableAutoFocus:n,autoFocus:i=!0}){const o=r.useRef(null),a=r.useRef(!n&&i);r.useEffect((()=>{a.current=!n&&i}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([o.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=o.current)||void 0===n?void 0:n.contains(t))||(l.current[e]=t,c())},removeNode(e){l.current[e]&&(delete l.current[e],c())}})),[c]),d=r.useCallback((e=>{var n;t&&e?(o.current=e,s.current||(s.current=b([],{initialFocus:()=>a.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),c(),s.current.activate()):(null===(n=s.current)||void 0===n||n.deactivate(),o.current=null)}),[t,c]),f=r.Children.only(e);if(!r.isValidElement(f))throw new Error("Children must contain only one valid element");const p=(0,_.Q)(f),h=(0,w.N)(d,p);return r.createElement(E.Provider,{value:u},r.cloneElement(f,{ref:h}))}function C(){const e=r.useContext(E),t=(0,x.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},19305:e=>{var t=Array.isArray;e.exports=t},19417:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},19750:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},19770:e=>{"use strict";e.exports=ReferenceError},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var i=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return i.listenForHistoryChange}});var o=n(93650)},20011:(e,t,n)=>{var r=n(16320),i=n(22807),o=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=n(84711),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},20549:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},20680:(e,t,n)=>{"use strict";n.d(t,{uI:()=>s,sf:()=>u,T3:()=>l});let r=function(e){return e.None="None",e.HDD="HDD",e.SSD="SSD",e}({});var i=n(76086),o=n(41650),a=n(8861);const s=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:i,MemoryLimit:a,StorageAllocatedLimit:s,PoolStats:l,Metrics:u={},DatabaseQuotas:d={},StorageUsage:f,QuotaUsage:p}=e,h=1e6*Number(t)||0,m=Number(n)||0,g=Number(i)||0,v=Number(u.Storage)||0,y=(0,o.kf)(a)?Number(a):void 0,b=(0,o.kf)(s)?Number(s):void 0,w=(0,o.kf)(d.data_size_soft_quota)?Number(d.data_size_soft_quota):void 0,x=(e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))})(l);let _,E;_=f?f.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):[{name:r.SSD,used:g,limit:b,usage:c(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):w&&(E=[{name:r.SSD,used:v,limit:w,usage:c(v,w)}]);return{memory:m,blobStorage:g,tabletStorage:v,memoryLimit:y,blobStorageLimit:b,tabletStorageLimit:w,cpu:h,poolsStats:x,memoryStats:[{name:"Process",used:m,limit:y,usage:c(m,y)}],blobStorageStats:_,tabletStorageStats:E}},l=(e,t)=>e.map((n=>{const r=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,i=e.find((e=>e.Id===n.ResourceId)),a=null===i||void 0===i?void 0:i.Name,l=null===i||void 0===i?void 0:i.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),i=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",o=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==o&&void 0!==o?o:i})(n),{cpu:u,memory:d,blobStorage:f}=s(n),{nodesCount:p,groupsCount:h}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,o.kf)(n)?Number(n):0}})(n);return{...n,backend:r,sharedTenantName:a,sharedNodeIds:l,controlPlaneName:c,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));function c(e,t){if(e&&t)return 100*e/t}function u(e){return e?e>i.Ed?a.u.Danger:e>i.Hh?a.u.Warning:a.u.Good:a.u.Unspecified}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},20943:(e,t,n)=>{var r=n(30040),i=n(52964),o=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>_});var r=n(44992),i=n(97434),o=n(53850),a=n(96906),s=n(97091),l=n(59284);function c(e){return e.replace(e[0],e[0].toUpperCase())}function u(e,...t){return Object.assign(e,...t)}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,a.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,a.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const i=(0,l.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=(0,l.useRef)(i);return(0,l.useEffect)((()=>{o.current.serialized!==i.serialized&&(o.current=i)}),[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m(e){const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{(0,i.bN)(t.current,e)||(t.current=e)}),[e]),(0,i.bN)(t.current,e)?t.current:e}var g=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),v=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),y=(()=>g||v?l.useLayoutEffect:l.useEffect)(),b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var w=Symbol();var x=(0,r.l0)((0,r.m7)(),(({batch:e=i.vA,hooks:t={useDispatch:i.wA,useSelector:i.d4,useStore:i.Pj},createSelector:n=o.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(o,{serializeQueryArgs:d},g){const v=o,{buildQueryHooks:w,buildMutationHook:x,usePrefetch:_}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:a},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:g}){const v=c?e=>e():l.useEffect;return{buildQueryHooks:function(c){const x=(t,{refetchOnReconnect:i,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:y}=e.endpoints[c],b=n(),w=(0,l.useRef)(void 0);if(!w.current){const t=b(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const x=h(u?r.hT:t,f,g.endpointDefinitions[c],c),_=m({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,l.useRef)(!1),S=(0,l.useRef)(void 0);let{queryCacheKey:C,requestId:k}=S.current||{},O=!1;C&&k&&(O=w.current.isRequestSubscribed(C,k));const N=!O&&E.current;return v((()=>{E.current=O})),v((()=>{N&&(S.current=void 0)}),[N]),v((()=>{const e=S.current;if(x===r.hT)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===x)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=b(y(x,{subscriptionOptions:_,forceRefetch:a}));S.current=t}}),[b,y,a,x,_,N]),(0,l.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,l.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,s.gk)(38));return S.current?.refetch()}})),[])},_=({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:s}=e.endpoints[c],u=n(),[d,f]=(0,l.useState)(p),h=(0,l.useRef)(void 0),g=m({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:a});v((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const y=(0,l.useRef)(g);v((()=>{y.current=g}),[g]);const b=(0,l.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(s(e,{subscriptionOptions:y.current,forceRefetch:!n})),f(e)})),r}),[u,s]),w=(0,l.useCallback)((()=>{h.current?.queryCacheKey&&u(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))}),[u]);return(0,l.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,l.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,l.useMemo)((()=>[b,d,{reset:w}]),[b,d,w])},E=(t,{skip:n=!1,selectFromResult:s}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.hT:t,d,g.endpointDefinitions[c],c),m=(0,l.useRef)(void 0),v=(0,l.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:i.bN}})),[f,p]),b=(0,l.useMemo)((()=>s?u([v],s,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,s]),x=o((e=>b(e,m.current)),i.bN),_=a(),E=v(_.getState(),m.current);return y((()=>{m.current=E}),[E]),x};return{useQueryState:E,useQuerySubscription:x,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n,{reset:r}]=_(e),i=E(n,{...e,skip:n===p}),o=(0,l.useMemo)((()=>({lastArg:n})),[n]);return(0,l.useMemo)((()=>[t,{...i,reset:r},o]),[t,i,r,o])},useQuery(e,t){const n=x(e,t),i=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}=i;return(0,l.useDebugValue)({data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}),(0,l.useMemo)((()=>({...i,...n})),[i,n])}}},buildMutationHook:function(r){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,l.useState)();(0,l.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,l.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:g}=p||{},v=(0,l.useMemo)((()=>c({fixedCacheKey:s,requestId:p?.requestId})),[s,p,c]),y=(0,l.useMemo)((()=>a?u([v],a):v),[a,v]),b=o(y,i.bN),w=null==s?p?.arg.originalArgs:void 0,x=(0,l.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[f,s,p,g]),{endpointName:_,data:E,status:S,isLoading:C,isSuccess:k,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:C,isSuccess:k,isError:O,error:N});const T=(0,l.useMemo)((()=>({...b,originalArgs:w,reset:x})),[b,w,x]);return(0,l.useMemo)((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const i=n(),o=m(r);return(0,l.useCallback)(((n,r)=>i(e.util.prefetch(t,n,{...o,...r}))),[t,i,o])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,i=g.endpointDefinitions[e];n!==r.hT&&d({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:e})===d({queryArgs:n,endpointDefinition:i,endpointName:e})&&(t=void 0)}let i=e.isSuccess?e.data:t?.data;void 0===i&&(i=e.data);const o=void 0!==i,a=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!o&&a,l=e.isSuccess||o&&(a&&!t?.isError||e.isUninitialized);return{...e,data:i,currentData:e.data,isFetching:a,isLoading:s,isSuccess:l}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:d,context:g});return u(v,{usePrefetch:_}),u(g,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=w(e);u(v.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${c(e)}Query`]=t,o[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=x(e);u(v.endpoints[e],{useMutation:t}),o[`use${c(e)}Mutation`]=t}}}}}))());const _=x({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","SchemaTree","StorageData","Tablet","UserData","VDiskData"]});Symbol()},21519:e=>{e.exports=function(e){return e!==e}},21551:(e,t,n)=>{var r=n(59368),i=n(19305);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(46878);function i(){return(0,r.w)().themeValue}},22735:(e,t,n)=>{e.exports=n(54386)},22750:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},22894:(e,t,n)=>{var r=n(85651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},22921:e=>{"use strict";e.exports=URIError},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),i=n(69220);const o=r.createContext({activeTabId:void 0});o.displayName="TabsContext";var a=n(47665);const s=(0,i.om)("tabs");function l({id:e,className:t,title:n,meta:i,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(o),y="boolean"===typeof f?f:v===e,b=r.useMemo((()=>void 0!==l?l:"string"===typeof n?n:void 0),[l,n]);return r.createElement("div",Object.assign({},m,{role:"tab","aria-selected":y,"aria-disabled":!0===p,tabIndex:p?-1:0,className:s("item",{active:y,disabled:p,overflow:Boolean(h)},t),title:b,onClick:()=>{g(e)},onKeyDown:t=>{" "===t.key&&g(e)}}),r.createElement("div",{className:s("item-content")},c&&r.createElement("div",{className:s("item-icon")},c),r.createElement("div",{className:s("item-title")},n||e),void 0!==u&&r.createElement("div",{className:s("item-counter")},u),d&&r.createElement(a.J,{className:s("item-label"),theme:d.theme},d.content)),i&&r.createElement("div",{className:s("item-meta")},i))}l.displayName="Tabs.Item";const c=(0,i.om)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef((({direction:e=u.Horizontal,size:t="m",activeTab:n,allowNotSelected:i=!1,items:a=d,children:s,className:f,onSelectTab:p,wrapTo:h,qa:m},g)=>{const v=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(n,i,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const i=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,i,n):i}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(o.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},23900:(e,t,n)=>{"use strict";n.d(t,{u:()=>w});var r=n(59284),i=n(41668),o=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:i}){const o=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:o,valueStyle:s,direction:e}},i)}const l=(0,n(69220).om)("definition-list");var c=n(96873);function u({copyText:e,children:t}){const n=null!==t&&void 0!==t?t:"\u2014";return e?r.createElement("div",{className:l("copy-container")},n,r.createElement(c.b,{size:"s",text:e,className:l("copy-button"),view:"flat-secondary"})):n}var d=n(27145),f=n(98934),p=n(72837);const h=JSON.parse('{"label_note":"Note"}'),m=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),g=(0,p.N)({en:h,ru:m},"DefinitionList");function v({note:e}){if(!e)return null;const t=l("item-note-tooltip");if("string"===typeof e)return r.createElement(f.H,{className:t,placement:["bottom","top"],buttonProps:{"aria-label":g("label_note")}},e);if("object"===typeof e){const{buttonProps:n}=e,i=(0,d.Tt)(e,["buttonProps"]);return r.createElement(f.H,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":g("label_note")},n)},i))}return null}function y({note:e,name:t,direction:n}){const i=e?r.createElement(r.Fragment,null,"\xa0",r.createElement(v,{note:e})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:l("term-wrapper")},t,i),"horizontal"===n&&r.createElement("div",{className:l("dots")}))}function b({name:e,children:t,copyText:n,note:i}){const{direction:o,keyStyle:s,valueStyle:c}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:l("item")},r.createElement("dt",{className:l("term-container"),style:s},r.createElement(y,{direction:o,name:e,note:i})),r.createElement("dd",{className:l("definition"),style:Object.assign(Object.assign({},c),{lineBreak:"string"===typeof t&&(d=20,function(e){return e.split(/\s+/).some((e=>e.length>d))})(t)?"anywhere":void 0})},r.createElement(u,{copyText:n},t)));var d}function w({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:i,className:a,children:c,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){x(r)?n.push(r):(0,o.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(c);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:i},r.createElement("dl",{className:l({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}b.displayName="DefinitionListItem";const x=(0,i.g)(b);w.Item=b,w.displayName="DefinitionList"},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},24447:(e,t,n)=>{var r=n(38469),i=n(48303),o=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},24600:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,m:()=>o});var r=n(53850),i=n(78034);const o=n(21334).F.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNodesList({signal:t})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),a=o.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,i.nN)(e)))},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),i=n(112),o=n(67884),a=n(77506),s=n(44294),l=n(60712);const c=(0,a.cn)("ydb-link-with-icon"),u=({title:e,url:t,external:n=!0,className:a})=>{const u=(0,l.jsxs)(r.Fragment,{children:[e,"\xa0",(0,l.jsx)(i.A,{})]});return n?(0,l.jsx)(o.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>i})},26180:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e){return r(e,i(e))}},26237:(e,t,n)=>{const r=n(22750),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<<r.getBCHDigit(o)-i;return 21522^(n<<10|o)}},26905:(e,t,n)=>{var r=n(935),i=n(37815),o=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},27145:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.836 6 .76-2.027L9.336 2H5.5a.72.72 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835m2.727-3 .235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10z",clipRule:"evenodd"}))},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=new Map;function i(e){!e||r.has(e)}},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},28197:(e,t,n)=>{"use strict";n.d(t,{i:()=>pr});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>le,hasStandardBrowserEnv:()=>ue,hasStandardBrowserWebWorkerEnv:()=>de,navigator:()=>ce,origin:()=>fe});var i=n(58671),o=n.n(i);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=d("Date"),_=d("File"),E=d("Blob"),S=d("FileList"),C=d("URLSearchParams"),[k,O,N,T]=["ReadableStream","Request","Response","Headers"].map(d);function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,R=e=>!h(e)&&e!==P;const D=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)};const B=d("AsyncFunction"),U=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),P.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(P.postMessage)),$="undefined"!==typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!==typeof process&&process.nextTick||U,q={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:k,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:x,isFile:_,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:C,isTypedArray:D,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=R(this)&&this||{},n={},r=(r,i)=>{const o=t&&I(n,i)||i;w(n[o])&&w(r)?n[o]=e(n[o],r):w(r)?n[o]=e({},r):p(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&A(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(A(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:P,isContextDefined:R,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=p(e)?[]:{};return A(e,((e,t)=>{const o=n(e,r+1);!h(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:U,asap:$};function H(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}q.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}});const V=H.prototype,W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{W[e]={value:e}})),Object.defineProperties(H,W),Object.defineProperty(V,"isAxiosError",{value:!0}),H.from=(e,t,n,r,i,o)=>{const a=Object.create(V);return q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),H.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const K=H;function G(e){return q.isPlainObject(e)||q.isArray(e)}function Y(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Z=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));const J=function(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!s&&q.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(G)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=Y(n),s.forEach((function(e,r){!q.isUndefined(e)&&null!==e&&t.append(!0===a?Q([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!G(e)||(t.append(Q(i,n,o),l(e)),!1)}const u=[],d=Object.assign(Z,{defaultVisitor:c,convertValue:l,isVisitable:G});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!q.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),q.forEach(n,(function(n,o){!0===(!(q.isUndefined(n)||null===n)&&i.call(t,n,q.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function X(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&J(e,this,t)}const te=ee.prototype;te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,X)}:X;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ne=ee;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,n){if(!t)return e;const r=n&&n.encode||re;q.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):q.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const oe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},le="undefined"!==typeof window&&"undefined"!==typeof document,ce="object"===typeof navigator&&navigator||void 0,ue=le&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),de="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,fe=le&&window.location.href||"http://localhost",pe={...r,...se};const he=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&q.isArray(r)?r.length:o,s)return q.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&q.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&q.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,((e,r)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const me={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=q.isObject(e);i&&q.isHTMLForm(e)&&(e=new FormData(e));if(q.isFormData(e))return r?JSON.stringify(he(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return J(e,new pe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pe.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return J(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw K.from(i,K.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));const ge=me,ve=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ye=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:q.isArray(e)?e.map(we):String(e)}function xe(e,t,n,r,i){return q.isFunction(r)?r.call(this,t,n):(i&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}class _e{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=be(t);if(!i)throw new Error("header name must be a non-empty string");const o=q.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=we(e))}const o=(e,t)=>q.forEach(e,((e,n)=>i(e,n,t)));if(q.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(q.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=be(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!xe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=be(e)){const i=q.findKey(n,e);!i||t&&!xe(0,n[i],i,t)||(delete n[i],r=!0)}}return q.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!xe(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return q.forEach(this,((r,i)=>{const o=q.findKey(n,i);if(o)return t[o]=we(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=we(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ye]=this[ye]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=be(e);t[r]||(!function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(_e.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),q.freezeMethods(_e);const Ee=_e;function Se(e,t){const n=this||ge,r=t||n,i=Ee.from(r.headers);let o=r.data;return q.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Ce(e){return!(!e||!e.__CANCEL__)}function ke(e,t,n){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(ke,K,{__CANCEL__:!0});const Oe=ke;function Ne(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Te=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Ae=function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]},Ie=(e,t,n=3)=>{let r=0;const i=Te(50,250);return Ae((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Pe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>q.asap((()=>e(...t))),De=pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,je=pe.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),q.isString(r)&&a.push("path="+r),q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Me(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Ee?{...e}:e;function ze(e,t){t=t||{};const n={};function r(e,t,n,r){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:r},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function i(e,t,n,i){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!q.isUndefined(t))return r(void 0,t)}function a(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Le(e),Le(t),0,!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);q.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Fe=e=>{const t=ze({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ee.from(s),t.url=ie(Me(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),q.isFormData(r))if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pe.hasStandardBrowserEnv&&(i&&q.isFunction(i)&&(i=i(t)),i||!1!==i&&De(t.url))){const e=o&&a&&je.read(a);e&&s.set(o,e)}return t},Be="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Fe(e);let i=r.data;const o=Ee.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ee.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ne((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ae;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new K(t,i.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&q.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),q.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Ie(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Ie(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Oe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===pe.protocols.indexOf(v)?n(new K("Unsupported protocol "+v+":",K.ERR_BAD_REQUEST,e)):m.send(i||null)}))},Ue=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof K?t:new Oe(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>q.asap(a),s}},$e=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},qe=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},He=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of qe(e))yield*$e(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Ve="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,We=Ve&&"function"===typeof ReadableStream,Ke=Ve&&("function"===typeof TextEncoder?(Ge=new TextEncoder,e=>Ge.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ge;const Ye=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Qe=We&&Ye((()=>{let e=!1;const t=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ze=We&&Ye((()=>q.isReadableStream(new Response("").body))),Je={stream:Ze&&(e=>e.body)};var Xe;Ve&&(Xe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=q.isFunction(Xe[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})})));const et=async(e,t)=>{const n=q.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e)){const t=new Request(pe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return q.isArrayBufferView(e)||q.isArrayBuffer(e)?e.byteLength:(q.isURLSearchParams(e)&&(e+=""),q.isString(e)?(await Ke(e)).byteLength:void 0)})(t):n},tt={http:null,xhr:Be,fetch:Ve&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Fe(e);c=c?(c+"").toLowerCase():"text";let p,h=Ue([i,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Qe&&"get"!==n&&"head"!==n&&0!==(g=await et(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(q.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Pe(g,Ie(Re(l)));r=He(n.body,65536,e,t)}}q.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(p);const a=Ze&&("stream"===c||"response"===c);if(Ze&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=q.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Pe(t,Ie(Re(s),!0))||[];o=new Response(He(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await Je[q.findKey(Je,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ne(t,n,{data:v,headers:Ee.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,p),{cause:v.cause||v});throw K.from(v,v&&v.code,e,p)}})};q.forEach(tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const nt=e=>`- ${e}`,rt=e=>q.isFunction(e)||null===e||!1===e,it=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!rt(n)&&(r=tt[(t=String(n)).toLowerCase()],void 0===r))throw new K(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(nt).join("\n"):" "+nt(e[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oe(null,e)}function at(e){ot(e),e.headers=Ee.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return it(e.adapter||ge.adapter)(e).then((function(t){return ot(e),t.data=Se.call(e,e.transformResponse,t),t.headers=Ee.from(t.headers),t}),(function(t){return Ce(t)||(ot(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=Ee.from(t.response.headers))),Promise.reject(t)}))}const st="1.8.4",lt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{lt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ct={};lt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new K(r(i," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!ct[i]&&(ct[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},lt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ut={assertOptions:function(e,t,n){if("object"!==typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new K("option "+o+" must be "+n,K.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}},validators:lt},dt=ut.validators;class ft{constructor(e){this.defaults=e,this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=ze(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&ut.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),null!=r&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:ut.assertOptions(r,{encode:dt.function,serialize:dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ut.assertOptions(t,{baseUrl:dt.spelling("baseURL"),withXsrfToken:dt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&q.merge(i.common,i[t.method]);i&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Ee.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[at.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=at.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return ie(Me((e=ze(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){ft.prototype[e]=function(t,n){return this.request(ze(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(ze(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ft.prototype[e]=t(),ft.prototype[e+"Form"]=t(!0)}));const pt=ft;class ht{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Oe(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ht((function(t){e=t})),cancel:e}}}const mt=ht;const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach((([e,t])=>{gt[t]=e}));const vt=gt;const yt=function e(t){const n=new pt(t),r=a(pt.prototype.request,n);return q.extend(r,pt.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ze(t,n))},r}(ge);yt.Axios=pt,yt.CanceledError=Oe,yt.CancelToken=mt,yt.isCancel=Ce,yt.VERSION=st,yt.toFormData=J,yt.AxiosError=K,yt.Cancel=yt.CanceledError,yt.all=function(e){return Promise.all(e)},yt.spread=function(e){return function(t){return e.apply(null,t)}},yt.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=ze,yt.AxiosHeaders=Ee,yt.formToJSON=e=>he(q.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=it,yt.HttpStatusCode=vt,yt.default=yt;const bt=yt,{Axios:wt,AxiosError:xt,CanceledError:_t,isCancel:Et,CancelToken:St,VERSION:Ct,all:kt,Cancel:Ot,isAxiosError:Nt,spread:Tt,toFormData:At,AxiosHeaders:It,HttpStatusCode:Pt,formToJSON:Rt,getAdapter:Dt,mergeConfig:jt}=bt;class Mt{constructor(e={}){this.setApiEndpoint=(e="")=>{let t=e;"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),this.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post[this.csrfHeaderName]=e,this._axios.defaults.headers.put[this.csrfHeaderName]=e,this._axios.defaults.headers.delete[this.csrfHeaderName]=e},this.setDefaultHeader=({name:e,value:t,methods:n})=>{const r=this._axios.defaults.headers;Array.isArray(n)?n.forEach((n=>{const i=r[n];i&&i instanceof It&&(i[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={},csrfHeaderName:i="X-CSRF-Token"}=e,a=Object.assign({xsrfCookieName:"",timeout:Mt.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=bt.create(a),this._axios.defaults.headers=o()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]},this.csrfHeaderName=i}collectRequest({method:e,url:t,data:n,requestStart:r,response:i,responseError:o,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=i&&i.request||{},f=a&&o instanceof Error?o.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:i&&i.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:i&&i.data&&JSON.stringify(i.data,null,2)||f,isError:a,isCancelled:s};l&&a&&(this.collector.errors=[...this.collector.errors,p].slice(-l)),c&&(this.collector.requests=[...this.collector.requests,p].slice(-c))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:i,options:o={},retries:a=0}=e,s=o.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=o;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:i,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(bt.isCancel(m))throw{isCancelled:!0,error:m};let t;return t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:bt.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}finally{this.clearRequestToken(l)}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t,n={}){return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n,r={}){return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n,r={}){return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n,r={}){return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n,r={}){return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t,n={}){return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=bt.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Mt.DEFAULT_TIMEOUT=6e4;var Lt=n(70911);const zt="axios-retry";function Ft(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Lt(e)))}const Bt=["get","head","options"],Ut=Bt.concat(["put","delete"]);function $t(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function qt(e){return!!e.config?.method&&($t(e)&&-1!==Ut.indexOf(e.config.method))}function Ht(e){return Ft(e)||qt(e)}function Vt(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Wt={retries:3,retryCondition:Ht,retryDelay:function(e=0,t=void 0){return Math.max(0,Vt(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Kt(e,t,n=!1){const r=function(e,t){return{...Wt,...t,...e[zt]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[zt]=r,r}const Gt=(e,t)=>{const n=e.interceptors.request.use((e=>(Kt(e,t,!0),e[zt]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const i=Kt(r,t);return n.response&&i.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,i=(e.retryCount||0)<n&&r(t);if("object"===typeof i)try{return!1!==await i}catch(o){return!1}return i}(i,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:a}=t,s=i(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!o&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,i=r.timeout-e-s;if(i<=0)return Promise.reject(n);r.timeout=i}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(i),t(e(r))},i=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,i,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(i,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Gt.isNetworkError=Ft,Gt.isSafeRequestError=function(e){return!!e.config?.method&&($t(e)&&-1!==Bt.indexOf(e.config.method))},Gt.isIdempotentRequestError=qt,Gt.isNetworkOrIdempotentRequestError=Ht,Gt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,i=Math.max(r,Vt(t));return i+.2*i*Math.random()},Gt.linearDelay=function(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,Vt(n))}},Gt.isRetryableError=$t;const Yt=Gt;var Qt=n(58351),Zt=n(76086),Jt=n(81288),Xt=n(59001);class en extends Mt{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=0,Yt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Yt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return Xt.f.readUserSettingsValue(Zt.U0)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){const t=e.response;return(0,Jt.uP)(t)&&window.location.assign(t.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==Qt.Hs&&void 0!==Qt.Hs?Qt.Hs:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}}class tn extends en{authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}}const nn={Ide:"ydb",IdeVersion:"1",PluginFamily:"ydb",PluginVersion:"0.2"};class rn extends en{getPath(e){return`${null!==Qt.p2&&void 0!==Qt.p2?Qt.p2:""}${e}`}async getCodeAssistSuggestions(e){const t=e.map((e=>{const t=e.cursorPosition.lineNumber,n=e.cursorPosition.column;return{Fragments:e.fragments.map((e=>{let r=e.text;const i=e.end.lineNumber<t||e.end.lineNumber===t&&e.end.column<=n,o=e.start.lineNumber>t||e.start.lineNumber===t&&e.start.column>n;return i?r=r.slice(-8e3):o&&(r=r.slice(0,1e3)),{Text:r,Start:{Ln:e.start.lineNumber,Col:e.start.column},End:{Ln:e.end.lineNumber,Col:e.end.column}}})),Cursor:{Ln:t,Col:n},Path:`${e.path}.yql`}}));const n=await this.post(this.getPath("/code-assist-suggestion"),{Files:t,ContextCreateType:1,IdeInfo:nn},null,{concurrentId:"code-assist-suggestion",collectRequest:!1});return{items:n.Suggests.map((e=>e.Text)),requestId:n.RequestId}}sendCodeAssistTelemetry(e){return this.post("/code-assist-telemetry",e,null,{concurrentId:"code-assist-telemetry",collectRequest:!0})}sendCodeAssistOpenTabs(e){return this.post("/code-assist-telemetry",{OpenTabs:{Tabs:(t=e,t.map((e=>{const t=e.Text;return t.length>1e4?{...e,Text:t.slice(0,1e4)}:e}))),IdeInfo:nn}},null,{concurrentId:"code-assist-telemetry",collectRequest:!1});var t}}const on=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class an extends en{getPath(e){return`${null!==Qt.In&&void 0!==Qt.In?Qt.In:""}${e}`}getMetaCapabilities(){return this.get(this.getPath("/capabilities"),{},{timeout:1e3})}getClustersList(e,{signal:t}={}){return this.get(this.getPath("/meta/clusters"),null,{requestConfig:{signal:t}})}getTenants(e,{signal:t}={}){return this.get(this.getPath("/meta/cp_databases"),{cluster_name:e},{requestConfig:{signal:t}}).then(on)}getClusterBaseInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/meta/db_clusters"),{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}class sn extends en{getOperationList(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}}var ln=n(31684);class cn extends en{restartPDisk({nodeId:e,pDiskId:t,force:n}){return this.post(this.getPath("/pdisk/restart"),{},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus({nodeId:e,pDiskId:t,force:n,decommissionStatus:r}){return this.post(this.getPath("/pdisk/status"),{decommit_status:r},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}getPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/pdisk/info"),{node_id:e,pdisk_id:t},{concurrentId:n,requestConfig:{signal:r}})}restartPDiskOld({nodeId:e,pDiskId:t}){const n=(0,ln.ar)({nodeId:e,pDiskId:t,host:this.getPath("")});return this.post(n,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}class un extends en{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class dn extends en{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:i,...o},{concurrentId:a,signal:s}={}){const l=Array.isArray(e)?this.prepareArrayRequestParam(e):e,c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r;return this.get(this.getPath("/storage/groups"),{node_id:l,pdisk_id:c,group_id:u,fields_required:d,filter:i||void 0,timeout:2e4,...o},{concurrentId:a,requestConfig:{signal:s}})}}function fn(e,t=";"){let n,r=";"===t?/(?:^|;)\s*([^=;\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^;]|\\\;)+))?)?/g:/(?:^|,)\s*([^=,\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^,]|\\\,)+))?)?/g,i=[];for(;null!==(n=r.exec(e));){let e,t=n[1].trim();n[2]&&(e=(n[3]||n[4]||"").replace(/\\(.)/g,"$1").trim()),i.push([t,e])}return i}function pn(e){return e.includes('"')||e.includes(";")||e.includes(" ")?`"${e.replace(/"/g,'\\"')}"`:e}function hn(e){return null!=e&&"function"===typeof e[Symbol.iterator]}function mn(e){return e instanceof Date&&!isNaN(e.getTime())}function gn(e){return"*"===e||/^(W\/)?".*"$/.test(e)?e:`"${e}"`}var vn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=fn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(hn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get mediaTypes(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("/");for(let[r,i]of this){let[e,o]=r.split("/");if((e===t||"*"===e||"*"===t)&&(o===n||"*"===o||"*"===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},yn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=fn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(hn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get encodings(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return"identity"===e.toLowerCase()||this.getWeight(e)>0}getWeight(e){let t=e.toLowerCase();for(let[n,r]of this)if(n===t||"*"===n||"*"===t)return r;return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},bn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=fn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(hn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get languages(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("-");for(let[r,i]of this){let[e,o]=r.split("-");if((e===t||"*"===e||"*"===t)&&(o===n||void 0===o||void 0===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},wn=class{maxAge;maxStale;minFresh;sMaxage;noCache;noStore;noTransform;onlyIfCached;mustRevalidate;proxyRevalidate;mustUnderstand;private;public;immutable;staleWhileRevalidate;staleIfError;constructor(e){if(e)if("string"===typeof e){let t=fn(e,",");if(t.length>0)for(let[e,n]of t)switch(e){case"max-age":this.maxAge=Number(n);break;case"max-stale":this.maxStale=Number(n);break;case"min-fresh":this.minFresh=Number(n);break;case"s-maxage":this.sMaxage=Number(n);break;case"no-cache":this.noCache=!0;break;case"no-store":this.noStore=!0;break;case"no-transform":this.noTransform=!0;break;case"only-if-cached":this.onlyIfCached=!0;break;case"must-revalidate":this.mustRevalidate=!0;break;case"proxy-revalidate":this.proxyRevalidate=!0;break;case"must-understand":this.mustUnderstand=!0;break;case"private":this.private=!0;break;case"public":this.public=!0;break;case"immutable":this.immutable=!0;break;case"stale-while-revalidate":this.staleWhileRevalidate=Number(n);break;case"stale-if-error":this.staleIfError=Number(n)}}else this.maxAge=e.maxAge,this.maxStale=e.maxStale,this.minFresh=e.minFresh,this.sMaxage=e.sMaxage,this.noCache=e.noCache,this.noStore=e.noStore,this.noTransform=e.noTransform,this.onlyIfCached=e.onlyIfCached,this.mustRevalidate=e.mustRevalidate,this.proxyRevalidate=e.proxyRevalidate,this.mustUnderstand=e.mustUnderstand,this.private=e.private,this.public=e.public,this.immutable=e.immutable,this.staleWhileRevalidate=e.staleWhileRevalidate,this.staleIfError=e.staleIfError}toString(){let e=[];return this.public&&e.push("public"),this.private&&e.push("private"),"number"===typeof this.maxAge&&e.push(`max-age=${this.maxAge}`),"number"===typeof this.sMaxage&&e.push(`s-maxage=${this.sMaxage}`),this.noCache&&e.push("no-cache"),this.noStore&&e.push("no-store"),this.noTransform&&e.push("no-transform"),this.onlyIfCached&&e.push("only-if-cached"),this.mustRevalidate&&e.push("must-revalidate"),this.proxyRevalidate&&e.push("proxy-revalidate"),this.mustUnderstand&&e.push("must-understand"),this.immutable&&e.push("immutable"),"number"===typeof this.staleWhileRevalidate&&e.push(`stale-while-revalidate=${this.staleWhileRevalidate}`),"number"===typeof this.staleIfError&&e.push(`stale-if-error=${this.staleIfError}`),"number"===typeof this.maxStale&&e.push(`max-stale=${this.maxStale}`),"number"===typeof this.minFresh&&e.push(`min-fresh=${this.minFresh}`),e.join(", ")}},xn=class{filename;filenameSplat;name;type;constructor(e){if(e)if("string"===typeof e){let t=fn(e);if(t.length>0){this.type=t[0][0];for(let[e,n]of t.slice(1))"filename"===e?this.filename=n:"filename*"===e?this.filenameSplat=n:"name"===e&&(this.name=n)}}else this.filename=e.filename,this.filenameSplat=e.filenameSplat,this.name=e.name,this.type=e.type}get preferredFilename(){let e=this.filenameSplat;if(e){let t=function(e){let t=e.match(/^([\w-]+)'([^']*)'(.+)$/);if(!t)return null;let[,n,,r]=t,i=function(e){return e.replace(/\+/g," ").replace(/%([0-9A-Fa-f]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}(r);try{let e=new TextDecoder(n),t=new Uint8Array(i.split("").map((e=>e.charCodeAt(0))));return e.decode(t)}catch(o){return console.warn(`Failed to decode filename from charset ${n}:`,o),i}}(e);if(t)return t}return this.filename}toString(){if(!this.type)return"";let e=[this.type];return this.name&&e.push(`name=${pn(this.name)}`),this.filename&&e.push(`filename=${pn(this.filename)}`),this.filenameSplat&&e.push(`filename*=${pn(this.filenameSplat)}`),e.join("; ")}};var _n=class{boundary;charset;mediaType;constructor(e){if(e)if("string"===typeof e){let t=fn(e);if(t.length>0){this.mediaType=t[0][0];for(let[e,n]of t.slice(1))"boundary"===e?this.boundary=n:"charset"===e&&(this.charset=n)}}else this.boundary=e.boundary,this.charset=e.charset,this.mediaType=e.mediaType}toString(){if(!this.mediaType)return"";let e=[this.mediaType];return this.charset&&e.push(`charset=${pn(this.charset)}`),this.boundary&&e.push(`boundary=${pn(this.boundary)}`),e.join("; ")}},En=class{#e;constructor(e){if(this.#e=new Map,e)if("string"===typeof e){let t=fn(e);for(let[e,n]of t)this.#e.set(e,n??"")}else if(hn(e))for(let[t,n]of e)this.#e.set(t,n);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t,e[t])}get names(){return Array.from(this.#e.keys())}get values(){return Array.from(this.#e.values())}get size(){return this.#e.size}get(e){return this.#e.get(e)??null}set(e,t){this.#e.set(e,t)}delete(e){this.#e.delete(e)}has(e){return this.#e.has(e)}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}=${pn(n)}`);return e.join("; ")}},Sn=class{tags=[];constructor(e){e&&("string"===typeof e?this.tags.push(...e.split(/\s*,\s*/).map(gn)):Array.isArray(e)?this.tags.push(...e.map(gn)):this.tags.push(...e.tags.map(gn)))}has(e){return this.tags.includes(gn(e))}matches(e){return this.has(e)||this.tags.includes("*")}toString(){return this.tags.join(", ")}},Cn=class{domain;expires;httpOnly;maxAge;name;path;sameSite;secure;value;constructor(e){if(e)if("string"===typeof e){let n=fn(e);if(n.length>0){this.name=n[0][0],this.value=n[0][1];for(let[e,r]of n.slice(1))switch(e.toLowerCase()){case"domain":this.domain=r;break;case"expires":if("string"===typeof r){let e=new Date(r);mn(e)&&(this.expires=e)}break;case"httponly":this.httpOnly=!0;break;case"max-age":if("string"===typeof r){let e=parseInt(r,10);isNaN(e)||(this.maxAge=e)}break;case"path":this.path=r;break;case"samesite":"string"===typeof r&&/strict|lax|none/i.test(r)&&(this.sameSite=(t=r).charAt(0).toUpperCase()+t.slice(1).toLowerCase());break;case"secure":this.secure=!0}}}else this.domain=e.domain,this.expires=e.expires,this.httpOnly=e.httpOnly,this.maxAge=e.maxAge,this.name=e.name,this.path=e.path,this.sameSite=e.sameSite,this.secure=e.secure,this.value=e.value;var t}toString(){if(!this.name)return"";let e=[`${this.name}=${pn(this.value||"")}`];return this.domain&&e.push(`Domain=${this.domain}`),this.path&&e.push(`Path=${this.path}`),this.expires&&e.push(`Expires=${this.expires.toUTCString()}`),this.maxAge&&e.push(`Max-Age=${this.maxAge}`),this.secure&&e.push("Secure"),this.httpOnly&&e.push("HttpOnly"),this.sameSite&&e.push(`SameSite=${this.sameSite}`),e.join("; ")}},kn={ct:"CT",etag:"ETag",te:"TE",www:"WWW",x:"X",xss:"XSS"};var On="accept",Nn="accept-encoding",Tn="accept-language",An="accept-ranges",In="cache-control",Pn="connection",Rn="content-disposition",Dn="content-encoding",jn="content-language",Mn="content-length",Ln="content-type",zn="cookie",Fn="date",Bn="etag",Un="expires",$n="host",qn="if-modified-since",Hn="if-none-match",Vn="if-unmodified-since",Wn="last-modified",Kn="location",Gn="referer",Yn="set-cookie",Qn=class e extends Headers{#e;#n=[];constructor(t){if(super(),this.#e=new Map,t)if("string"===typeof t){let e=t.split("\r\n");for(let t of e){let e=t.match(/^([^:]+):(.*)/);e&&this.append(e[1].trim(),e[2].trim())}}else if(hn(t))for(let[e,n]of t)this.append(e,n);else if("object"===typeof t)for(let n of Object.getOwnPropertyNames(t)){let r=t[n],i=Object.getOwnPropertyDescriptor(e.prototype,n);i?.set?i.set.call(this,r):this.set(n,r.toString())}}append(e,t){let n=e.toLowerCase();if(n===Yn)this.#n.push(t);else{let e=this.#e.get(n);this.#e.set(n,e?`${e}, ${t}`:t)}}delete(e){let t=e.toLowerCase();t===Yn?this.#n=[]:this.#e.delete(t)}get(e){let t=e.toLowerCase();if(t===Yn)return this.getSetCookie().join(", ");{let e=this.#e.get(t);if("string"===typeof e)return e;if(null!=e){let t=e.toString();return""===t?null:t}return null}}getSetCookie(){return this.#n.map((e=>"string"===typeof e?e:e.toString()))}has(e){let t=e.toLowerCase();return t===Yn?this.#n.length>0:null!=this.get(t)}set(e,t){let n=e.toLowerCase();n===Yn?this.#n=[t]:this.#e.set(n,t)}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*entries(){for(let[e]of this.#e){let t=this.get(e);t&&(yield[e,t])}for(let e of this.getSetCookie())yield[Yn,e]}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}toString(){let e=[];for(let[n,r]of this)e.push(`${t=n,t.toLowerCase().split("-").map((e=>kn[e]||e.charAt(0).toUpperCase()+e.slice(1))).join("-")}: ${r}`);var t;return e.join("\r\n")}get accept(){return this.#r(On,vn)}set accept(e){this.#i(On,vn,e)}get acceptEncoding(){return this.#r(Nn,yn)}set acceptEncoding(e){this.#i(Nn,yn,e)}get acceptLanguage(){return this.#r(Tn,bn)}set acceptLanguage(e){this.#i(Tn,bn,e)}get acceptRanges(){return this.#o(An)}set acceptRanges(e){this.#a(An,e)}get age(){return this.#s("age")}set age(e){this.#l("age",e)}get cacheControl(){return this.#r(In,wn)}set cacheControl(e){this.#i(In,wn,e)}get connection(){return this.#o(Pn)}set connection(e){this.#a(Pn,e)}get contentDisposition(){return this.#r(Rn,xn)}set contentDisposition(e){this.#i(Rn,xn,e)}get contentEncoding(){return this.#o(Dn)}set contentEncoding(e){this.#a(Dn,Array.isArray(e)?e.join(", "):e)}get contentLanguage(){return this.#o(jn)}set contentLanguage(e){this.#a(jn,Array.isArray(e)?e.join(", "):e)}get contentLength(){return this.#s(Mn)}set contentLength(e){this.#l(Mn,e)}get contentType(){return this.#r(Ln,_n)}set contentType(e){this.#i(Ln,_n,e)}get cookie(){return this.#r(zn,En)}set cookie(e){this.#i(zn,En,e)}get date(){return this.#c(Fn)}set date(e){this.#u(Fn,e)}get etag(){return this.#o(Bn)}set etag(e){this.#a(Bn,"string"===typeof e?gn(e):e)}get expires(){return this.#c(Un)}set expires(e){this.#u(Un,e)}get host(){return this.#o($n)}set host(e){this.#a($n,e)}get ifModifiedSince(){return this.#c(qn)}set ifModifiedSince(e){this.#u(qn,e)}get ifNoneMatch(){return this.#r(Hn,Sn)}set ifNoneMatch(e){this.#i(Hn,Sn,e)}get ifUnmodifiedSince(){return this.#c(Vn)}set ifUnmodifiedSince(e){this.#u(Vn,e)}get lastModified(){return this.#c(Wn)}set lastModified(e){this.#u(Wn,e)}get location(){return this.#o(Kn)}set location(e){this.#a(Kn,e)}get referer(){return this.#o(Gn)}set referer(e){this.#a(Gn,e)}get setCookie(){let e=this.#n;for(let t=0;t<e.length;++t)"string"===typeof e[t]&&(e[t]=new Cn(e[t]));return e}set setCookie(e){this.#n=null!=e?(Array.isArray(e)?e:[e]).map((e=>"string"===typeof e?e:new Cn(e))):[]}#r(e,t){let n=this.#e.get(e);if(void 0!==n){if("string"===typeof n){let r=new t(n);return this.#e.set(e,r),r}return n}let r=new t;return this.#e.set(e,r),r}#i(e,t,n){null!=n?this.#e.set(e,"string"===typeof n?n:new t(n)):this.#e.delete(e)}#c(e){let t=this.#e.get(e);return void 0===t?null:new Date(t)}#u(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:("number"===typeof t?new Date(t):t).toUTCString()):this.#e.delete(e)}#s(e){let t=this.#e.get(e);return void 0===t?null:parseInt(t,10)}#l(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:t.toString()):this.#e.delete(e)}#o(e){let t=this.#e.get(e);return void 0===t?null:t}#a(e,t){null!=t?this.#e.set(e,t):this.#e.delete(e)}};async function*Zn(e){let t=e.getReader();for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}function Jn(e){let t,n=(new TextEncoder).encode(e);if(!("Buffer"in globalThis)||"Bun"in globalThis||"Deno"in globalThis){let e=n.length-1,r=new Uint8Array(256).fill(n.length);for(let t=0;t<e;++t)r[n[t]]=e-t;t=(t,i=0)=>{let o=t.length,a=i+e;for(;a<o;){for(let r=e,i=a;r>=0&&t[i]===n[r];--r,--i)if(0===r)return i;a+=r[t[a]]}return-1}}else t=(e,t=0)=>Buffer.prototype.indexOf.call(e,n,t);return t}var Xn=class extends Error{constructor(e){super(e),this.name="MultipartParseError"}},er=class extends Xn{constructor(e){super(`Multipart header size exceeds maximum allowed size of ${e} bytes`),this.name="MaxHeaderSizeExceededError"}},tr=class extends Xn{constructor(e){super(`File size exceeds maximum allowed size of ${e} bytes`),this.name="MaxFileSizeExceededError"}};async function nr(e,t,n){let r=new ir(t.boundary,{maxHeaderSize:t.maxHeaderSize,maxFileSize:t.maxFileSize});await r.parse(e,n)}var rr=Jn("\r\n\r\n"),ir=class{boundary;maxHeaderSize;maxFileSize;#d;#f;#p;#h;#m;#g=0;#v=null;#y=null;#b=0;constructor(e,t){this.boundary=e,this.maxHeaderSize=t?.maxHeaderSize??8192,this.maxFileSize=t?.maxFileSize??1/0,this.#d=Jn(`--${e}`),this.#f=2+e.length,this.#p=Jn(`\r\n--${e}`),this.#h=function(e){let t=(new TextEncoder).encode(e),n={};for(let r=0;r<t.length;++r){let e=t[r];void 0===n[e]&&(n[e]=[]),n[e].push(r)}return function(e){let r=e.length-1;if(e[r]in n){let i=n[e[r]];for(let n=i.length-1;n>=0;--n)for(let o=i[n],a=r;o>=0&&e[a]===t[o];--o,--a)if(0===o)return a}return-1}}(`\r\n--${e}`),this.#m=4+e.length}async parse(e,t){0!==this.#g&&this.#w();let n=[];function r(e){let r=t(e);var i;"object"===typeof(i=r)&&null!=i&&"function"===typeof i.then&&(n.push(r),r.catch((()=>{})))}if(e instanceof ReadableStream)for await(let o of Zn(e))this.#x(o,r);else if("object"===typeof(i=e)&&null!=i&&Symbol.asyncIterator in i)for await(let o of e)this.#x(o,r);else if(e instanceof Uint8Array)this.#x(e,r);else{if(!function(e){return"object"===typeof e&&null!=e&&Symbol.iterator in e}(e))throw new TypeError("Cannot parse multipart message; expected a stream or buffer");for(let t of e)this.#x(t,r)}var i;if(4!==this.#g)throw new Xn("Unexpected end of stream");await Promise.all(n)}#w(){this.#g=0,this.#v=null,this.#y=null,this.#b=0}#x(e,t){if(4===this.#g)throw new Xn("Unexpected data after end of stream");let n=0,r=e.length;if(null!==this.#v){let t=new Uint8Array(this.#v.length+r);t.set(this.#v,0),t.set(e,this.#v.length),r=(e=t).length,this.#v=null}for(;;){if(3===this.#g){if(r-n<this.#m){this.#v=e.subarray(n);break}let t=this.#p(e,n);if(-1===t){let t=this.#h(e);-1===t?this.#_(0===n?e:e.subarray(n)):(this.#_(e.subarray(n,t)),this.#v=e.subarray(t));break}this.#_(e.subarray(n,t)),this.#E(),n=t+this.#m,this.#g=1}if(1===this.#g){if(r-n<2){this.#v=e.subarray(n);break}if(45===e[n]&&45===e[n+1]){this.#g=4;break}n+=2,this.#g=2}if(2!==this.#g){if(0===this.#g){if(r<this.#f){this.#v=e;break}if(0!==this.#d(e))throw new Xn("Invalid multipart stream: missing initial boundary");n=this.#f,this.#g=1}}else{if(r-n<4){this.#v=e.subarray(n);break}let i=rr(e,n);if(-1===i){if(r-n>this.maxHeaderSize)throw new er(this.maxHeaderSize);this.#v=e.subarray(n);break}if(i-n>this.maxHeaderSize)throw new er(this.maxHeaderSize);let o=e.subarray(n,i);t(new or(o,new ReadableStream({start:e=>{this.#y=e,this.#b=0}}))),n=i+4,this.#g=3}}}#_(e){if(this.#b+e.length>this.maxFileSize){let e=new tr(this.maxFileSize);throw this.#y.error(e),e}this.#y.enqueue(e),this.#b+=e.length}#E(){this.#y.close(),this.#y=null}};var or=class{#S;#C;#k;#O=!1;constructor(e,t){this.#S=e,this.#C=t}async arrayBuffer(){return(await this.bytes()).buffer}get body(){return this.#C}get bodyUsed(){return this.#O}async bytes(){if(this.#O)throw new Error("Body is already consumed or is being consumed");this.#O=!0;let e=[],t=0;for await(let i of Zn(this.#C))e.push(i),t+=i.length;let n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}get headers(){return this.#k||(this.#k=new Qn((new TextDecoder).decode(this.#S))),this.#k}get isFile(){return void 0!==this.filename||"application/octet-stream"===this.mediaType}get filename(){return this.headers.contentDisposition.preferredFilename}get mediaType(){return this.headers.contentType.mediaType}get name(){return this.headers.contentDisposition.name}async text(){return(new TextDecoder).decode(await this.bytes())}};var ar=n(74309),sr=n.n(ar),lr=n(80971);class cr extends en{async streamQuery(e,t){var n;const r=!Xt.f.readUserSettingsValue(Zt.RY,!0),i=sr().stringify({timeout:e.timeout,base64:r,schema:"multipart"},{encoder:encodeURIComponent}),o={...e,base64:r,schema:"multipart"},a=new Headers({Accept:"multipart/form-data","Content-Type":"application/json"});e.tracingLevel&&a.set("X-Trace-Verbosity",String(e.tracingLevel));Xt.f.readUserSettingsValue(Zt.U0)&&a.set("X-Want-Trace","1");const s=await fetch(`${this.getPath("/viewer/query")}?${i}`,{method:"POST",signal:t.signal,headers:a,body:JSON.stringify(o)});if(!s.ok){const e=await s.json().catch((()=>({})));if((0,Jt.uP)({status:s.status,data:e}))return void window.location.assign(e.authUrl);throw new Error(`${s.status}`)}if(!s.body)throw new Error("Empty response body");const l=null===(n=s.headers.get("traceresponse"))||void 0===n?void 0:n.split("-")[1];await nr(s.body,{boundary:"boundary"},(async e=>{try{const n=JSON.parse(await e.text());if((0,lr.y6)(n)){n.meta.trace_id=l,t.onSessionChunk(n)}else(0,lr.uR)(n)?t.onStreamDataChunk(n):(0,lr.HH)(n)?t.onQueryResponseChunk(n):(0,lr.eX)(n)&&console.log("Received keep alive chunk")}catch(n){throw new Error(`Error parsing chunk: ${n}`)}}))}}class ur extends en{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:i}}},{},{headers:{Accept:"application/json"}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive({id:e,hiveId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/tablets/app"),{TabletID:t,page:"TabletInfo",tablet:e},{concurrentId:n,requestConfig:{signal:r}})}}class dr extends en{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i,force:o}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:i,force:o},{requestConfig:{"axios-retry":{retries:0}}})}}class fr extends en{getClusterCapabilities({database:e}){return this.get(this.getPath("/viewer/capabilities"),{database:e},{})}getClusterInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getNodeInfo(e,{concurrentId:t,timeout:n,signal:r}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:r},timeout:n})}getTenants(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo({path:e,database:t=e},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{database:t,path:e,tablets:!1,storage:!0,memory:!0},{concurrentId:n,requestConfig:{signal:r}})}getNodes({type:e="any",tablets:t=!1,database:n,tenant:r,fieldsRequired:i,filter:o,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(i)?this.prepareArrayRequestParam(i):i;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:o||void 0,database:n||r,tenant:r||n,fields_required:c,...a},{concurrentId:s,requestConfig:{signal:l}})}getTabletsInfo({nodeId:e,path:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:i}})}getSchema({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:n,requestConfig:{signal:r}})}getDescribe({path:e,database:t,timeout:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${e}`,requestConfig:{signal:i},timeout:n})}getSchemaAcl({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/acl"),{database:t,path:e,merge_rules:!0},{concurrentId:n,requestConfig:{signal:r}})}getHeatmapData({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:n,requestConfig:{signal:r}})}getNetwork({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getReplication({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_replication"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getTopic({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getConsumer({path:e,consumer:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:n,path:e,consumer:t},{concurrentId:r||"getConsumer",requestConfig:{signal:i}})}getTablet({id:e,database:t,followerId:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:t,filter:`(TabletId=${e};FollowerId=${n||0})`},{concurrentId:r,requestConfig:{signal:i}})}getTabletHistory({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:t,filter:`(TabletId=${e};State!=Dead)`},{concurrentId:n,requestConfig:{signal:r}})}getNodesList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e,{concurrentId:t,signal:n,withRetries:r}={}){const i=!Xt.f.readUserSettingsValue(Zt.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:i},{schema:"multi",base64:i,timeout:e.timeout},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys({path:e,database:t,enableSampling:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:i}})}getTabletDescribe(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getStorageInfo({tenant:e,database:t,nodeId:n,groupId:r,pDiskId:i,filter:o,...a},{concurrentId:s,signal:l}={}){return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:t||e,tenant:e||t,node_id:n,group_id:r,pdisk_id:i,filter:o||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:i},{concurrentId:o,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${i}`),s,{},{concurrentId:o,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:a}})}whoami({database:e}){return this.get(this.getPath("/viewer/json/whoami"),{database:e})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}getClusterConfig(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getVDiskInfo({vDiskSlotId:e,pDiskId:t,nodeId:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:i}})}getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${e}${t?`;PDiskId=${t}`:""})`},{concurrentId:n,requestConfig:{signal:r}})}planToSvg({database:e,plan:t},{signal:n}={}){return this.post(this.getPath("/viewer/plan2svg"),t,{database:e},{requestConfig:{signal:n,responseType:"text",headers:{Accept:"image/svg+xml"}}})}getHealthcheckInfo({database:e,maxLevel:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:e,tenant:e,max_level:t},{concurrentId:n,requestConfig:{signal:r}})}}class pr{constructor({webVersion:e=!1,withCredentials:t=!1}={}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.streaming=void 0,this.tablets=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.codeAssist=void 0;const n={withCredentials:t};this.auth=new tn({config:n}),e&&(this.meta=new an({config:n}),this.codeAssist=new rn({config:n})),this.operation=new sn({config:n}),this.pdisk=new cn({config:n}),this.scheme=new un({config:n}),this.storage=new dn({config:n}),this.streaming=new cr({config:n}),this.tablets=new ur({config:n}),this.vdisk=new dr({config:n}),this.viewer=new fr({config:n})}}},28232:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,J:()=>i});var r=n(67087);function i(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}function o(){const[e]=(0,r.useQueryParam)("clusterName",r.StringParam);return null!==e&&void 0!==e?e:void 0}},28293:(e,t,n)=>{var r=n(85191),i=n(4178),o=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>R});var r=n(59284),i=n(94420),o=n(85736),a=n(32084),s=n(90826),l=n(794),c=n(6104),u=n.n(c),d=n(61758),f=n.n(d);function p(e,t){const[n,i]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;i({width:u()(t.offsetWidth,2),height:u()(t.offsetHeight,2)});const n=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;i({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;i({width:u()(e.offsetWidth,2),height:u()(e.offsetHeight,2)})}}),16));return n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var h=n(99991),m=n(84375),g=n(69220),v=n(81240),y=n(84476),b=n(72837);const w=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),_=(0,b.N)({en:w,ru:x},`${g.CU}clear-button`),E=(0,g.om)("clear-button"),S=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},C=e=>{const{size:t,className:n,onClick:i}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:i,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":_("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var k=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},i){return t?r.createElement("div",{ref:i,className:N("additional-content",{placement:e}),onClick:n},t):null})),A=(0,g.om)("text-input");function I(e){const{controlProps:t,controlRef:n,type:i,name:o,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:A("control",{type:"input"},t.className),type:i,name:o,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}const P=(0,g.om)("text-input"),R=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:g,label:v,disabled:y,readOnly:b,hasClear:w=!1,error:x,errorMessage:_,errorPlacement:E="outside",validationState:N,autoComplete:A,id:R,tabIndex:D,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:$=B,unstable_endContent:q,note:H,onUpdate:V,onChange:W}=e,{errorMessage:K,errorPlacement:G,validationState:Y}=(0,O.Av)({error:x,errorMessage:_,errorPlacement:E,validationState:N}),[Q,Z]=(0,o.P)(f,null!==g&&void 0!==g?g:"",V),J=r.useRef(null),X=(0,l.d)({initialValue:Q,onReset:Z}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(Y),ie=Boolean(v),oe="invalid"===Y&&Boolean(K)&&"outside"===G,ae="invalid"===Y&&Boolean(K)&&"inside"===G,se=Boolean(w&&!y&&!b&&Q),le=Boolean(U),ce=Boolean(q),ue=Boolean($)&&!ce,de=ie&&!R&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=ie?R||fe:R,he=p(ie?te:null,c),me=p(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],H?ve:void 0,oe?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),ie&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===Y||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:D,name:d,onChange(e){Z(e.target.value),W&&W(e)},autoComplete:de?"off":(0,O.o$)(A),controlProps:be},xe=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),i=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!i&&(null===(n=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:P({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:P("content")},le&&r.createElement(T,{ref:ne,placement:"start",onClick:xe},U),ie&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:P("label"),title:v,htmlFor:pe},`${v}`),r.createElement(I,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(C,{size:S(c),onClick:e=>{Z("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",W&&W(n)}},className:P("clear",{size:c})}),ue&&r.createElement(T,{placement:"end",onClick:xe},$),ae&&r.createElement(m.A,{content:K},r.createElement("span",{"data-qa":O._y},r.createElement(h.I,{data:i.A,className:P("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},q)),r.createElement(k.o,{note:H,errorMessage:oe?K:null,noteId:ve,errorMessageId:ge}))}))},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},29078:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>d,Ay:()=>c,Tn:()=>h,Tp:()=>g,o:()=>u,sM:()=>f});var r=n(59284),i=n(97091),o=n(53850),a=n(21334);const s={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},l=(0,i.Z0)({name:"schema",initialState:s,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),c=l.reducer,{setShowPreview:u}=l.actions,{selectShowPreview:d}=l.selectors,f=a.F.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async({database:e,path:t},{signal:n})=>{try{return{data:await window.api.scheme.createSchemaDirectory({database:e,path:t},{signal:n})}}catch(r){return{error:r}}}}),getSchema:e.query({queryFn:async({path:e,database:t},{signal:n})=>{try{const r=await window.api.viewer.getSchema({path:e,database:t},{signal:n});return r?{data:{[e]:r,...p(r)}}:{error:new Error("Schema is not available")}}catch(r){return{error:r}}},keepUnusedDataFor:1/0,serializeQueryArgs:({queryArgs:{database:e}})=>({database:e}),merge:(e,t,{arg:{path:n}})=>{const{[n]:r,...i}=t;return r?{...i,...e,[n]:r}:e}})}),overrideExisting:"throw"});function p(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const i of n){const{Name:e=""}=i,n=`${r}/${e}`;t[n]={PathDescription:{Self:i},Path:n,partial:!0}}return t}function h({path:e,database:t}){const{currentData:n,isFetching:i,error:o,refetch:a,originalArgs:s}=f.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=i&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?o:void 0,d=!c&&(!l&&!o||(null===l||void 0===l?void 0:l.partial));return r.useEffect((()=>{d&&a()}),[a,e,d]),{data:l,isLoading:c,error:u}}const m=(0,o.Mz)((e=>e),((e,t)=>t),((e,t)=>f.endpoints.getSchema.select({path:e,database:t}))),g=(0,o.Mz)((e=>e),((e,t)=>t),((e,t,n)=>m(t,n)),((e,t,n)=>{var r;return null===(r=n(e).data)||void 0===r?void 0:r[t]}))},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(59284);const i=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&(null===n||void 0===n||n())}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}},29776:(e,t,n)=>{var r=n(150),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},29819:(e,t,n)=>{"use strict";n.d(t,{GX:()=>l,Gi:()=>u,IK:()=>c,vI:()=>d});var r=n(67087),i=n(370),o=n(92459),a=n(29971);const s={storage:"storage",tablets:"tablets",structure:"structure"},l=[{id:s.storage,get title(){return(0,a.A)("tabs.storage")}},{id:s.structure,get title(){return(0,a.A)("tabs.structure")}},{id:s.tablets,get title(){return(0,a.A)("tabs.tablets")}}],c=i.z.nativeEnum(s).catch(s.tablets),u={database:r.StringParam,pdiskId:r.StringParam,vdiskId:r.StringParam};function d(e,t={},n){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},29863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_DEFAULT=void 0,t.expandFormat=l,t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT);void 0===r&&(r=i.settings.getLocaleData());var o=l(n,r.formats);return o.replace(c,(function(t){return u[t]?u[t](e,r,o):d(t)}))};var r=n(72328),i=n(77966),o=n(84080);function a(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}var s=/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g;function l(e,t){var n;void 0===t&&(t=null!==(n=i.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats);for(var o=e,l=0;l<5;l++){var c=o.replace(s,(function(e,n,i){if(i){var o=i.toUpperCase();return t[i]||r.englishFormats[i]||a(t[o]||r.englishFormats[o])}return n}));if(c===o)break;o=c}return o}t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var c=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,u={};function d(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function f(e){return e%12||12}function p(e){return e||24}function h(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function m(e){var t=e.date,n=e.format,r=e.data,i=e.index,o=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[i]),!s&&o&&(s="function"===typeof o?o(t,n):o[i])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function g(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),i="";return e<0?i="-":n&&(i="+"),"".concat(i).concat(r.padStart(t,"0"))}u.Y=function(e){var t=e.year();return t<=9999?g(t,4):"+"+t},u.YY=function(e){return g(e.year()%100,2)},u.YYYY=function(e){return g(e.year(),4)},u.YYYYY=function(e){return g(e.year(),5)},u.YYYYYY=function(e){return g(e.year(),6,!0)},u.M=function(e){return"".concat(e.month()+1)},u.MM=function(e){return g(e.month()+1,2)},u.Mo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},u.MMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},u.MMMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.months,index:r})},u.w=function(e){return"".concat(e.week())},u.ww=function(e){return g(e.week(),2)},u.wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},u.W=function(e){return"".concat(e.isoWeek())},u.WW=function(e){return g(e.isoWeek(),2)},u.Wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},u.d=function(e){return"".concat(e.day())},u.do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},u.dd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},u.ddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},u.dddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdays,index:r})},u.e=function(e){return"".concat(e.weekday())},u.E=function(e){return"".concat(e.isoWeekday())},u.H=function(e){return"".concat(e.hour())},u.HH=function(e){return g(e.hour(),2)},u.h=function(e){return"".concat(f(e.hour()))},u.hh=function(e){return g(f(e.hour()),2)},u.k=function(e){return"".concat(p(e.hour()))},u.kk=function(e){return g(p(e.hour()),2)},u.hmm=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2))},u.hmmss=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.Hmm=function(e){return"".concat(e.hour()).concat(g(e.minute(),2))},u.Hmmss=function(e){return"".concat(e.hour()).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.a=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!0)},u.A=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!1)},u.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2),":").concat(g(~~t%60,2))},u.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2)).concat(g(~~t%60,2))},u.Q=function(e){return"".concat(e.quarter())},u.Qo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},u.D=function(e){return"".concat(e.date())},u.DD=function(e){return g(e.date(),2)},u.Do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},u.m=function(e){return"".concat(e.minute())},u.mm=function(e){return g(e.minute(),2)},u.s=function(e){return"".concat(e.second())},u.ss=function(e){return g(e.second(),2)},u.S=function(e){return"".concat(~~(e.millisecond()/100))},u.SS=function(e){return"".concat(~~(e.millisecond()/10))},u.SSS=function(e){return g(e.millisecond(),3)},u.SSSS=function(e){return g(10*e.millisecond(),4)},u.SSSSS=function(e){return g(100*e.millisecond(),5)},u.SSSSSS=function(e){return g(1e3*e.millisecond(),6)},u.SSSSSSS=function(e){return g(1e4*e.millisecond(),7)},u.SSSSSSSS=function(e){return g(1e5*e.millisecond(),8)},u.SSSSSSSSS=function(e){return g(1e6*e.millisecond(),9)},u.x=function(e){return"".concat(e.valueOf())},u.X=function(e){return"".concat(e.unix())},u.z=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},u.zz=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},u.DDD=function(e){return"".concat(e.dayOfYear())},u.DDDD=function(e){return g(e.dayOfYear(),3)},u.DDDo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},u.gg=function(e){return g(e.weekYear()%100,2)},u.gggg=function(e){return g(e.weekYear(),4)},u.ggggg=function(e){return g(e.weekYear(),5)},u.GG=function(e){return g(e.isoWeekYear()%100,2)},u.GGGG=function(e){return g(e.isoWeekYear(),4)},u.GGGGG=function(e){return g(e.isoWeekYear(),5)}},29971:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page","tabs.storage":"Storage","tabs.structure":"Structure","tabs.tablets":"Tablets","node":"Node","fqdn":"FQDN","dc":"DC"}'),o=(0,r.g4)("ydb-node-page",{en:i})},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},30507:(e,t,n)=>{var r=n(6993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},30836:e=>{"use strict";e.exports=Object},31016:(e,t,n)=>{var r=n(31473),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const i=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),o=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.g4)("ydb-errors-access-denied",{ru:o,en:i})},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},31560:(e,t)=>{"use strict";function n(e){function t(t,i,o,a){var s=i?n+t+e.e+i:n+t,l=s;if(o){var c=" "+l+e.m;for(var u in o)if(o.hasOwnProperty(u)){var d=o[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,i,o){return"string"==typeof r?"string"==typeof i||Array.isArray(i)?t(e,r,void 0,i):t(e,r,i,o):t(e,n,r,i)}}}n({e:"-",m:"_"}),t.withNaming=n},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>o,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),i=n(41650);function o(e=r.Hs){return e+"/internal"}function a(e=r.Hs){return e+"/monitoring"}const s=(e,t=r.Hs)=>{const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}`):`${null!==t&&void 0!==t?t:""}/node/${e}`},l=({nodeId:e,pDiskId:t,host:n})=>{const r="/actors/pdisks/pdisk"+(0,i.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const o="/actors/vdisks/vdisk"+(0,i.pY)(t)+"_"+(0,i.pY)(n);return s(e,r)+o};function u(e,t,n="TabletID",i=r.Hs){return`${i}/tablets${t?`/${t}`:""}?${n}=${e}`}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},31886:(e,t,n)=>{"use strict";var r=n(35711),i=n(39955),o=n(70084),a=n(63904);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},31926:(e,t,n)=>{var r=n(84100),i=n(59698);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(59284),i=n(42793);function o(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,i.c)(n,t)}),e)}},32112:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},32133:(e,t,n)=>{"use strict";var r=n(33410),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=o(n(58671)),s=n(49837),l=o(n(38960)),c=n(84080),u=n(43377),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},32328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(59284)),o=s(n(32133)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=i.default.Children.only(s),u=(0,o.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},33120:(e,t,n)=>{var r=n(537),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},33410:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},33609:(e,t,n)=>{var r=n(29776);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},33775:(e,t,n)=>{"use strict";n.d(t,{k:()=>f});var r=n(45720),i=n(16929),o=n(71153),a=n(99991),s=n(54090),l=n(77506),c=n(60712);const u=(0,l.cn)("ydb-status-icon"),d={[s.m.Blue]:r.A,[s.m.Yellow]:i.A,[s.m.Orange]:o.A,[s.m.Red]:i.A};function f({status:e=s.m.Grey,size:t="s",mode:n="color",className:r}){const i={state:e.toLowerCase(),size:t};return"icons"===n&&e in d?(0,c.jsx)(a.I,{className:u("status-icon",i,r),data:d[e]}):(0,c.jsx)("div",{className:u("status-color",i,r)})}},34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),i=n(60712);const o=r.createContext(void 0);function a({children:e,registry:t}){return(0,i.jsx)(o.Provider,{value:t,children:e})}function s(e){const t=r.useContext(o);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>i,lf:()=>a,mF:()=>r,o$:()=>o});const r="control-error-message-qa",i="control-error-icon-qa",o=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:i}=e;let o,a;return"string"===typeof t&&(o=t),n&&(o=n),("invalid"===i||Boolean(t))&&(a="invalid"),{errorMessage:o,errorPlacement:r,validationState:a}}},34657:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},35367:(e,t,n)=>{var r=n(81382),i=n(12249),o=n(71259),a=n(63909),s=n(46710),l=n(49538),c=n(11319),u=n(40279),d=n(91644),f=n(67530),p=n(35725),h=n(43261),m=n(613),g=n(55799),v=n(52497),y=n(19305),b=n(20368),w=n(50490),x=n(38469),_=n(87232),E=n(96294),S=n(6737),C="[object Arguments]",k="[object Function]",O="[object Object]",N={};N[C]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[O]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[k]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,P){var R,D=1&n,j=2&n,M=4&n;if(T&&(R=I?T(t,A,I,P):T(t)),void 0!==R)return R;if(!x(t))return t;var L=y(t);if(L){if(R=m(t),!D)return c(t,R)}else{var z=h(t),F=z==k||"[object GeneratorFunction]"==z;if(b(t))return l(t,D);if(z==O||z==C||F&&!I){if(R=j||F?{}:v(t),!D)return j?d(t,s(R,t)):u(t,a(R,t))}else{if(!N[z])return I?t:{};R=g(t,z,D)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,R),_(t)?t.forEach((function(r){R.add(e(r,n,T,r,t,P))})):w(t)&&t.forEach((function(r,i){R.set(i,e(r,n,T,i,t,P))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(R,i,e(r,n,T,i,t,P))})),R}},35535:(e,t,n)=>{var r=n(73885),i=n(49535),o=n(46626),a=n(92061);e.exports=function(e){return o(e)?r(a(e)):i(e)}},35544:(e,t,n)=>{"use strict";n.d(t,{S:()=>b});var r=n(59284),i=n(16332),o=n(2198),a=n(23871),s=n(77506),l=n(25196);const c=(0,n(99006)._)((()=>Promise.all([n.e(66820),n.e(94695)]).then(n.bind(n,94695))),"YDBSyntaxHighlighter");var u=n(48372);const d=JSON.parse('{"header":"Connect to the database","connection-info-message":"Use the following code to connect to the database","documentation":"Documentation","close":"Close","docs_bash":"https://ydb.tech/docs/en/concepts/connect","docs_cpp":"https://ydb.tech/docs/en/dev/example-app/example-cpp","docs_dotnet":"https://ydb.tech/docs/en/dev/example-app/example-dotnet","docs_go":"https://ydb.tech/docs/en/dev/example-app/go","docs_java":"https://ydb.tech/docs/en/dev/example-app/java","docs_nodejs":"https://ydb.tech/docs/en/dev/example-app/example-nodejs","docs_php":"https://ydb.tech/docs/en/dev/example-app/example-php","docs_python":"https://ydb.tech/docs/en/dev/example-app/python"}'),f=(0,u.g4)("ydb-connect-to-db",{en:d});var p=n(60712);const h=(0,s.cn)("ydb-connect-to-db"),m=[{id:"bash",title:"Bash"},{id:"cpp",title:"C++"},{id:"csharp",title:"C# (.NET)"},{id:"go",title:"Go"},{id:"java",title:"Java"},{id:"javascript",title:"Node JS"},{id:"php",title:"PHP"},{id:"python",title:"Python"}];function g({open:e,onClose:t,database:n,endpoint:i}){const[s,u]=r.useState("bash"),d=function(e,t){switch(e){case"cpp":return function({database:e,endpoint:t}){return`auto connectionParams = TConnectionsParams()\n .SetEndpoint("${null!==t&&void 0!==t?t:"<endpoint>"}")\n .SetDatabase("${null!==e&&void 0!==e?e:"/<database>"}")\n .SetAuthToken(GetEnv("YDB_TOKEN"));\n\nTDriver driver(connectionParams);`}(t);case"csharp":return function({database:e,endpoint:t}){return`var config = new DriverConfig(\n endpoint: "${null!==t&&void 0!==t?t:"<endpoint>"}",\n database: "${null!==e&&void 0!==e?e:"/<database>"}",\n credentials: credentialsProvider\n);\n\nusing var driver = new Driver(\n config: config\n);\n\nawait driver.Initialize();`}(t);case"go":return function({database:e,endpoint:t}){return`package main\n\nimport (\n "context"\n "os"\n\n "github.com/ydb-platform/ydb-go-sdk/v3"\n "github.com/ydb-platform/ydb-go-sdk/v3/table"\n)\n\nfunc main() {\n ctx, cancel := context.WithCancel(context.Background())\n defer cancel()\n db, err := ydb.Open(ctx,\n "${null!==t&&void 0!==t?t:"<endpoint>"}${null!==e&&void 0!==e?e:"/<database>"}",\n ydb.WithAccessTokenCredentials(os.Getenv("YDB_ACCESS_TOKEN_CREDENTIALS")),\n )\n if err != nil {\n panic(err)\n }\n\n defer db.Close(ctx)\n\n err = db.Table().Do(ctx,\n func(ctx context.Context, s table.Session) error {\n _, res, err := s.Execute(\n ctx,\n table.TxControl(table.BeginTx(table.WithOnlineReadOnly()), table.CommitTx()),\n "SELECT 'Hello, world!'",\n nil,\n )\n if err != nil {\n return err\n }\n defer res.Close()\n var val string\n\n for res.NextResultSet(ctx) {\n for res.NextRow() {\n err = res.Scan(&val)\n if err != nil {\n return err\n }\n println(val)\n }\n }\n return res.Err()\n })\n if err != nil {\n panic(err)\n }\n}`}(t);case"java":return function({database:e,endpoint:t}){return`package com.example;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport tech.ydb.core.grpc.GrpcTransport;\nimport tech.ydb.table.SessionRetryContext;\nimport tech.ydb.table.TableClient;\nimport tech.ydb.table.query.DataQueryResult;\nimport tech.ydb.table.result.ResultSetReader;\nimport tech.ydb.table.transaction.TxControl;\nimport tech.ydb.auth.TokenAuthProvider;\n\npublic class YDBConnect {\n public static void main(String[] args) throws IOException {\n try (GrpcTransport transport = GrpcTransport.forEndpoint(\n "${null!==t&&void 0!==t?t:"<endpoint>"}",\n "${null!==e&&void 0!==e?e:"/<database>"}")\n .withAuthProvider(new TokenAuthProvider(System.getenv("YDB_ACCESS_TOKEN_CREDENTIALS")))\n .build()) {\n try (TableClient tableClient = TableClient.newClient(transport)\n .build()) {\n SessionRetryContext retryCtx = SessionRetryContext.create(tableClient).build();\n DataQueryResult queryResult = retryCtx.supplyResult(\n session -> session.executeDataQuery("SELECT 'Hello, world!'", TxControl.serializableRw())\n ).join().getValue();\n\n ResultSetReader rsReader = queryResult.getResultSet(0);\n while (rsReader.next()) {\n System.out.println(rsReader.getColumn(0).getBytesAsString(Charset.forName("utf8")));\n }\n }\n }\n }\n}`}(t);case"javascript":return function({database:e,endpoint:t}){return`const {Driver, getCredentialsFromEnv, getLogger} = require('ydb-sdk');\n\nconst logger = getLogger({level: 'debug'});\nconst endpoint = '${null!==t&&void 0!==t?t:"<endpoint>"}';\nconst database = '${null!==e&&void 0!==e?e:"/<database>"}';\nconst authService = getCredentialsFromEnv();\nconst driver = new Driver({endpoint, database, authService});\n\nasync function run() {\n if (!await driver.ready(100)) {\n logger.fatal('Driver has not become ready in 10 seconds!');\n process.exit(1);\n }\n\n await driver.tableClient.withSession(async (session) => {\n res = await session.executeQuery("SELECT 'Hello, world!'")\n console.log(res.resultSets[0].rows[0].items[0].bytesValue.toString())\n return\n });\n\n process.exit(0)\n}\n\nrun();`}(t);case"php":return function({database:e,endpoint:t}){return`<?php\n\nuse YdbPlatform\\Ydb\\Ydb;\n\n$config = [\n // Database path\n 'database' => '${null!==e&&void 0!==e?e:"/<database>"}',\n\n // Database endpoint\n 'endpoint' => '${null!==t&&void 0!==t?t:"<endpoint>"}',\n\n // Auto discovery (dedicated server only)\n 'discovery' => false,\n\n // IAM config\n 'iam_config' => [\n // 'root_cert_file' => './CA.pem', Root CA file (uncomment for dedicated server only)\n ],\n\n 'credentials' => new AccessTokenAuthentication('<token>') // use from reference/ydb-sdk/auth\n];\n\n$ydb = new Ydb($config);`}(t);case"python":return function({database:e,endpoint:t}){return`#!/usr/bin/python3\nimport ydb\n\ndriver_config = ydb.DriverConfig(\n '${t||"<endpoint>"}', '${null!==e&&void 0!==e?e:"/<database>"}',\n credentials=ydb.credentials_from_env_variables(),\n)\nprint(driver_config)\nwith ydb.Driver(driver_config) as driver:\n try:\n driver.wait(10)\n session = driver.table_client.session().create()\n with session.transaction() as tx:\n query = "SELECT 'Hello, world!'"\n result_set = tx.execute(query)[0]\n for row in result_set.rows:\n print(row)\n except TimeoutError:\n print("Connect failed to YDB")\n print("Last reported errors by discovery:")\n print(driver.discovery_debug_details())`}(t);default:return function({database:e,endpoint:t}){return`ydb -e ${t||"<endpoint>"} --token-file ~/my_token\n -d ${null!==e&&void 0!==e?e:"/<database>"} table query execute -q 'SELECT "Hello, world!"'`}(t)}}(s,{database:n,endpoint:i}),g=function(e){switch(e){case"bash":return f("docs_bash");case"cpp":return f("docs_cpp");case"csharp":return f("docs_dotnet");case"go":return f("docs_go");case"java":return f("docs_java");case"javascript":return f("docs_nodejs");case"php":return f("docs_php");case"python":return f("docs_python");default:return}}(s);return(0,p.jsxs)(o.l,{open:e,hasCloseButton:!0,onClose:t,size:"l",children:[(0,p.jsx)(o.l.Header,{caption:f("header")}),(0,p.jsxs)(o.l.Body,{children:[(0,p.jsx)("div",{children:f("connection-info-message")}),(0,p.jsx)(a.t,{size:"m",allowNotSelected:!1,activeTab:s,items:m,onSelectTab:e=>u(e),className:h("dialog-tabs")}),(0,p.jsx)("div",{className:h("snippet-container"),children:(0,p.jsx)(c,{language:s,text:d,transparentBackground:!1,withCopy:!0})}),g?(0,p.jsx)(l.K,{className:h("docs"),title:f("documentation"),url:g}):null]}),(0,p.jsx)(o.l.Footer,{onClickButtonCancel:t,textButtonCancel:f("close")})]})}const v=i.Ay.create((e=>{const t=i.Ay.useModal();return(0,p.jsx)(g,{...e,onClose:()=>{t.resolve(!1),t.hide(),t.remove()},open:t.visible})})),y="connect-to-db-dialog";async function b(e){return await i.Ay.show(y,{id:y,...e})}i.Ay.register(y,v)},35554:(e,t,n)=>{var r=n(18408),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},35647:(e,t,n)=>{var r=n(62990),i=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>i});const r={.5:"half"},i={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},35725:(e,t,n)=>{var r=n(21551),i=n(12927),o=n(6737);e.exports=function(e){return r(e,o,i)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},36738:(e,t,n)=>{var r=n(16320),i=n(38469);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},36894:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,JP:()=>l,NJ:()=>u,Wg:()=>g,aW:()=>f,cu:()=>h,fu:()=>m,gJ:()=>c,xM:()=>p,ys:()=>d});var r=n(97091),i=n(76086),o=n(88610);const a=(0,r.Z0)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,o.gc)(i.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[],l=a.query.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,o.gc)(i.ld,c))}}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},37737:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},38198:(e,t,n)=>{const r=n(53577),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},38533:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,U:()=>r});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},i=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"}))},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},38960:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(88409)),o=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);i.default.extend(o.default),i.default.extend(s.default),i.default.extend(a.default),i.default.Ls.en.formats=l.englishFormats,t.default=i.default},39069:(e,t,n)=>{var r=n(34657),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),i=n(72630),o=n(32084),a=n(48681);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&c(e)&&(i=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/i,f=(r.top+(u&&a?a.offsetTop:0))/o,h=r.width/i,g=r.height/o;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function _(e){var t=x(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),i=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=b(t),a=g(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(o))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=w(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function k(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:k(C(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=k(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=s(r),a=i?[o].concat(o.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(O(C(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==x(e).position?e.offsetParent:null}function A(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===x(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===x(e).position)return null;var n=C(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var I="top",P="bottom",R="right",D="left",j="auto",M=[I,P,R,D],L="start",z="end",F="viewport",B="popper",U=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),$=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),q=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function G(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?W:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;u(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=H(e);return q.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(K(t,n)){i.rects={reference:E(t,A(n),"fixed"===i.options.strategy),popper:S(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!K(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Y={passive:!0};function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Q(i):null,a=i?Z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case I:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:l};break;case D:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?J(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),E=D,S=I,C=window;if(u){var k=A(n),O="clientHeight",N="clientWidth";if(k===s(n)&&"static"!==x(k=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),i===I||(i===D||i===R)&&o===z)S=P,v-=(f&&k===C&&C.visualViewport?C.visualViewport.height:k[O])-r.height,v*=c?1:-1;if(i===D||(i===I||i===P)&&o===z)E=R,m-=(f&&k===C&&C.visualViewport?C.visualViewport.width:k[N])-r.width,m*=c?1:-1}var T,j=Object.assign({position:l},u&&ee),M=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:p(n*i)/i||0,y:p(r*i)/i||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((T={})[S]=_?"0":"",T[E]=w?"0":"",T.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[E]=w?m+"px":"",t.transform="",t))}const ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=$.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),i=[D,I].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[D,R].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var re={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var oe={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===F?le(function(e,t){var n=s(e),r=b(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=m();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):le(function(e){var t,n=b(e),r=v(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=d(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===x(i||n).direction&&(s+=d(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(C(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&c(e)?A(e):e;return l(n)?t.filter((function(e){return l(e)&&se(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=ce(e,n,r);return t.top=d(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=d(i.left,t.left),t}),ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?F:u,f=n.elementContext,p=void 0===f?B:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=de("number"!==typeof y?y:fe(y,M)),x=p===B?"reference":B,_=e.rects.popper,E=e.elements[m?x:p],S=ue(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),C=g(e.elements.reference),k=X({reference:C,element:_,strategy:"absolute",placement:i}),O=le(Object.assign({},_,k)),N=p===B?O:C,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},A=e.modifiersData.offset;if(p===B&&A){var D=A[i];Object.keys(T).forEach((function(e){var t=[R,P].indexOf(e)>=0?1:-1,n=[I,P].indexOf(e)>=0?"y":"x";T[e]+=D[n]*t}))}return T}const he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Q(g),y=l||(v===g||!h?[ie(g)]:function(e){if(Q(e)===j)return[];var t=ie(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Q(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?$:l,u=Z(r),d=u?s?U:U.filter((function(e){return Z(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,S=b[0],C=0;C<b.length;C++){var k=b[C],O=Q(k),N=Z(k)===L,T=[I,P].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?R:D:N?P:I;w[A]>x[A]&&(F=ie(F));var B=ie(F),q=[];if(o&&q.push(z[O]<=0),s&&q.push(z[F]<=0,z[B]<=0),q.every((function(e){return e}))){S=k,E=!1;break}_.set(k,q)}if(E)for(var H=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},V=h?3:1;V>0;V--){if("break"===H(V))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,n){return d(e,f(t,n))}const ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=pe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Q(t.placement),w=Z(t.placement),x=!w,_=J(b),E="x"===_?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(o){var z,F="y"===_?I:D,B="y"===_?P:R,U="y"===_?"height":"width",$=C[_],q=$+y[F],H=$-y[B],V=m?-O[U]/2:0,W=w===L?k[U]:O[U],K=w===L?-O[U]:-k[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[F],te=X[B],ne=me(0,k[U],Y[U]),re=x?k[U]/2-V-ne-ee-T.mainAxis:W-ne-ee-T.mainAxis,ie=x?-k[U]/2+V+ne+te+T.mainAxis:K+ne+te+T.mainAxis,oe=t.elements.arrow&&A(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=$+ie-se,ce=me(m?f(q,$+re-se-ae):q,$,m?d(H,le):H);C[_]=ce,M[_]=ce-$}if(s){var ue,de="x"===_?I:D,fe="x"===_?P:R,he=C[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,D].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-k[ge]-O[ge]-we+T.altAxis,_e=be?he+k[ge]+O[ge]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(xe,he,_e):me(m?xe:ve,he,m?_e:ye);C[E]=Ee,M[E]=Ee-he}t.modifiersData[r]=M}},requiresIfExists:["offset"]};const ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),l=J(s),c=[D,R].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return de("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,M))}(i.padding,n),d=S(o),f="y"===l?I:D,p="y"===l?P:R,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=A(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+y,_=me(b,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(e){return[I,R,P,D].some((function(t){return e[t]>=0}))}var we=G({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),l&&c.addEventListener("resize",n.update,Y),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Y)})),l&&c.removeEventListener("resize",n.update,Y)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Q(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];c(i)&&y(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ne,he,ge,ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,i,o),u=be(l),d=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),xe=n(45099),_e=n.n(xe),Ee=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Se="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Ce=[],ke=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Ce},s=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:Ee(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ee(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return _e()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),f=r.useRef();return Se((function(){f.current&&f.current.setOptions(d)}),[d]),Se((function(){if(null!=e&&null!=t){var r=(n.createPopper||we)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Oe=n(54245);const Ne=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Te={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn({state:e}){var t;if(!e.placement.startsWith("top")&&!e.placement.startsWith("bottom"))return;const n=null===(t=e.modifiersData.offset)||void 0===t?void 0:t[e.placement];n&&(e.modifiersData.popperOffsets.x-=2*n.x)}};var Ae=n(18670),Ie=n(98392),Pe=n(19225),Re=n(69220),De=n(99635),je=n(6826);const Me=(0,Re.om)("popup");function Le({styles:e,attributes:t,setArrowRef:n}){return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:n,className:Me("arrow"),style:e},t),r.createElement("div",{className:Me("arrow-content")},r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{left:!0})})),r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{right:!0})}))))}const ze=(0,Re.om)("popup"),Fe=8;function Be({keepMounted:e=!1,hasArrow:t=!1,offset:n=[0,4],open:a,placement:s,anchorRef:l,disableEscapeKeyDown:c,disableOutsideClick:u,disableLayer:d,style:f,className:p,contentClassName:h,modifiers:m=[],children:g,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,onTransitionEnter:C,onTransitionEntered:k,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:P,restoreFocus:R,restoreFocusRef:D,"aria-label":j,"aria-labelledby":M,role:L,id:z,focusTrap:F=!1,autoFocus:B=!1,"aria-modal":U=F}){const $=r.useRef(null);(0,De.Z)({open:a,disableEscapeKeyDown:c,disableOutsideClick:u,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,contentRefs:[l,$],enabled:!d,type:"popup"});const{attributes:q,styles:H,setPopperRef:V,setArrowRef:W}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:i=[],strategy:o,altBoundary:a}){const[s,l]=r.useState(null),[c,u]=r.useState(null),d=(0,Oe.j)(),f=r.useMemo((()=>{let e=Array.isArray(t)?t:[t];return"rtl"===d&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[t,d]),{attributes:p,styles:h}=ke(null===e||void 0===e?void 0:e.current,s,{strategy:o,modifiers:[{name:"arrow",options:{element:c}},{name:"offset",options:{offset:n,altBoundary:a}},{name:"flip",options:{fallbackPlacements:f.slice(1),altBoundary:a}},..."rtl"===d?[Te]:[],...i],placement:f[0]});return{attributes:p,styles:h,setPopperRef:l,setArrowRef:u}}({anchorRef:l,placement:s,offset:t?[n[0],n[1]+Fe]:n,strategy:I,altBoundary:T,modifiers:[{name:"arrow",options:{enabled:t,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:T}},...m]}),K=(0,o.N)(V,$,(0,Pe.N)()),G=(0,Ae.s)({enabled:Boolean(R&&a),restoreFocusRef:D});let Y=L;return!0!==U&&"true"!==U||Y||(Y="dialog"),r.createElement(i.A,{nodeRef:$,in:a,addEndListener:e=>{var t;return null===(t=$.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,je.L)(ze),mountOnEnter:!e,unmountOnExit:!e,appear:!0,onEnter:()=>{null===C||void 0===C||C()},onEntered:()=>{null===k||void 0===k||k()},onExit:()=>{null===O||void 0===O||O()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ie.Z,{container:A,disablePortal:T},r.createElement("div",Object.assign({ref:K,style:H.popper},q.popper,G,{className:ze({open:a},p),"data-qa":P,id:z,role:Y,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(Pe.s,{enabled:F&&a,autoFocus:B},r.createElement("div",{onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,className:ze("content",h),style:f,tabIndex:-1},t&&r.createElement(Le,{styles:H.arrow,attributes:q.arrow,setArrowRef:W}),g)))))}},39450:(e,t,n)=>{var r=n(537),i=n(7804),o=n(61872),a=n(63679),s=n(96741),l=n(80303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),i=n(21334),o=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,o.HD)(e,n)}));const r=(0,o.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,o.NN)(e.versions,r)})))},s=(0,r.Z0)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=i.F.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,{signal:t})=>{try{if(window.api.meta){const e=await window.api.meta.getClustersList(void 0,{signal:t});return{data:a(e)}}throw new Error("Method is not implemented.")}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},39955:e=>{"use strict";e.exports=TypeError},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),i=n(62060),o=n.n(i),a=n(38469),s=n.n(a),l=n(53202);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,u){if(l)o.attachEvent("onresize",u);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,u=c.getComputedStyle(o);u&&"static"===u.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",o.__resizeTriggers__.appendChild(d),o.__resizeTriggers__.appendChild(f),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function([e,t]){h(e),f(t)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return i||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(58168),b=n(9417),w=n(25540),x=n(77995),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function i(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var C=-1;function k(e){if(void 0===e&&(e=!1),-1===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var O=null;function N(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var T=function(e,t){return e};function A(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,x.A)((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=(0,x.A)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,x.A)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(N()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.A)(t,e),t.getDerivedStateFromProps=function(e,t){return I(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?k():0:l.scrollHeight>l.clientHeight?k():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?T:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,x=this.state.isScrolling,_="horizontal"===o||"horizontal"===h,E=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],k=S[1],O=[];if(u>0)for(var N=C;N<=k;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?x:void 0,style:this._getItemStyle(N)}));var A=i(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,y.A)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":A,pointerEvents:x?"none":void 0,width:_?A:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),f=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var I=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},R=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=P(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},D=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&P(e,n,t).offset<r;)n+=o,o*=2;return R(e,t,Math.min(n,i-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},M=A({getItemOffset:function(e,t,n){return P(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=P(e,t,i),f=j(e,i),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+o);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?R(e,t,i,0,n):D(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:o,u=P(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=P(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var L=n(28664),z=n(11507),F=n(54245),B=n(69220),U=n(10176),$=n(29322),q=n(74417);const H=(0,B.om)("list"),V=e=>{const t=r.useRef(null);return(0,$.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement(q.a,{qa:"list-loader"}))};var W=n(66821),K=n(99991),G=n(11669),Y=n(359);const Q="list-active-item",Z=[Y.D.TAB],J=(0,B.om)("list"),X=e=>String(e);function ee(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class te extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{te.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}render(){var e,t;const{item:n,height:i,style:o,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:i},o),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Q:void 0,className:J("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:ee(this.props.provided,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:J("item-sort-icon")},r.createElement(K.I,{data:W.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:i}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,i))}}te.publishEvent=G.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function ie(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class oe extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:ie(e)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:ie(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n,r,i;const o=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(o&&"function"===typeof o.getNode){const e=o.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"}))}}}const ae=(0,B.om)("list"),se=r.forwardRef(((e,t)=>r.createElement(M,Object.assign({ref:t},e,{direction:(0,F.j)()}))));se.displayName="ListContainer";class le extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,U.zm)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(Z.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:i}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(V,{onIntersect:0===n?void 0:i}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:i,isDragging:o})=>{var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[e],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=e===u||e===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return r.createElement(te,{key:e,style:t,height:n,itemIndex:e,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:i,isDragging:o})},this.renderVirtualizedItem=({index:e,style:t})=>r.createElement(l.sx,{draggableId:String(e),index:e,key:`item-key-${e}`},(n=>this.renderItem({index:e,style:t,provided:n}))),this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.handleBlur()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let i=(t+r)%r;for(let o=0;o<r;o+=1){if(e[i]&&!e[i].disabled)return i;i=(i+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!o()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:i,itemsClassName:o,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(z.G.Consumer,null,(({mobile:c})=>r.createElement("div",{className:ae({mobile:c},i),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:ae("items",{virtualized:n},o),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:ae("empty-placeholder")},t)))))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(e)}))}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:i,filterClassName:o="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",o)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:i,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(oe,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>r.createElement(l.sx,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)}))))))))):r.createElement(oe,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(({width:n,height:i})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)))))):r.createElement(v,null,(({width:t,height:n})=>r.createElement(se,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const i=this.getItemsWithLoading();this.activateItem(le.findNextIndex(i,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});const r="header/SET_HEADER_BREADCRUMBS",i={pageBreadcrumbsOptions:{}};function o(e,t){return{type:r,page:e,options:t}}const a=(e=i,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},40279:(e,t,n)=>{var r=n(62871),i=n(54736);e.exports=function(e,t){return r(e,i(e),t)}},40453:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isDateTime=w,t.dateTime=x,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,i=t.lang,s=a.default.locale(i||l.settings.getLocale(),void 0,!0);return y({ts:b(n,o.UtcTimeZone,r,i,!0)[0],timeZone:o.UtcTimeZone,offset:0,locale:s})};var o=n(72328),a=i(n(38960)),s=n(62391),l=n(77966),c=n(84080),u=n(13064),d=n(29863),f=n(6597),p=n(16244),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var i=this.valueOf();return t&&(i-=60*(r-this._offset)*1e3),y({ts:i,timeZone:o.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),i=this.valueOf(),o=(0,c.timeZoneOffset)(r,i);return t&&(i+=60*this._offset*1e3,i=(n=(0,c.fixOffset)(i,o,r))[0],o=n[1]),y({ts:i,timeZone:r,offset:o,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var i=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!i.isValid())return NaN;var o=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(i.utcOffset()-this.utcOffset()),s=0;switch(o){case"years":s=(0,u.monthDiff)(this,i)/12;break;case"quarters":s=(0,u.monthDiff)(this,i)/3;break;case"months":s=(0,u.monthDiff)(this,i);break;case"weeks":s=(this.valueOf()-i.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-i.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-i.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-i.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-i.valueOf())/1e3;break;default:s=this.valueOf()-i.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(x({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(t,n){if(!this.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var r=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system",this._locale)[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!r.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var i=r,a=this,l=!1;a.isBefore(i)&&(i=this,a=r,l=!0);var c=a.month()-i.month()+12*(a.year()-i.year());i.add(c,"months").isAfter(a)&&c--;var u=a.valueOf()-i.add(c,"months").valueOf();return l&&(c=-c,u=-u),(0,p.fromTo)((0,s.duration)({months:c,milliseconds:u}),this._localeData.relativeTime,n)},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(o.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,i;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,x=l.isoWeekNumber,_=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==x||void 0!==_||void 0!==E))throw new Error("Can't mix local week with ISO week");var C=this.weekInfo();if(S){var k=g(this._localeData),O=k.minDaysInFirstWeek,N=k.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:C.weekday)+1,weekNumber:null!==v&&void 0!==v?v:C.weekNumber,weekYear:null!==b&&void 0!==b?b:C.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?C.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:C.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:C.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var A=(0,u.objToTS)(a),I=this._offset;return this._timeZone===o.UtcTimeZone?A-=60*I*1e3:(A=(i=(0,c.fixOffset)(A,I,this._timeZone))[0],I=i[1]),y({ts:A,timeZone:this._timeZone,offset:I,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(o.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var i;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===o.UtcTimeZone?l-=60*d*1e3:(l=(i=(0,c.fixOffset)(l,d,a))[0],d=i[1])}return g&&(l+=n*g,a!==o.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,i=e.locale||"en",o=a.default.Ls[i],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:i,localeData:o,isValid:s})}function b(e,t,n,r,i){var s,u,d,p;if(void 0===i&&(i=!1),w(e)||"number"===typeof e||e instanceof Date||!isNaN(function(e){if(null===e||void 0===e)return NaN;if("string"===typeof e)return NaN;if("number"===typeof e||"bigint"===typeof e)return Number(e);if("object"===typeof e){var t=e.valueOf();if("number"===typeof t||"bigint"===typeof t)return Number(t)}return NaN}(e)))d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(i)d=a.default.utc(e,n,o.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,o.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function x(e){var t=e||{},n=t.input,r=t.format,i=t.timeZone,o=t.lang,s=(0,c.normalizeTimeZone)(i,l.settings.getDefaultTimeZone()),u=a.default.locale(o||l.settings.getLocale(),void 0,!0),d=b(n,s,r,o);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),i=n.n(r),o=n(38596),a=n(66592);const s="__no_color__",l=(e,t=new Map)=>(e.forEach((({version:e,version_base_color_index:n=s})=>{var r;const i=(0,o.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(i)})),t),c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.s5)(t)-(0,a.s5)(e))).forEach(((e,i)=>{if(n===s)t.set(e,a.OT);else{const o=Number(n)%a.lm.length,s=r.size,l=a.lm[o],c=Math.max(100-i*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=(e=[],t)=>{const n=e.filter((e=>e.version));return i()(n,"version").map((e=>({...e,minorVersion:(0,o.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},40538:e=>{"use strict";e.exports=Math.min},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),i=n(7450),o=n(46734),a=n(84476),s=n(99991),l=n(69220);const c=(0,l.om)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(27145),f=n(9187),p=n(38602),h=n(90826);const m=(0,l.om)("menu"),g=r.forwardRef((function({label:e,children:t,style:n,className:i,qa:o},a){const s=(0,h.u)();return r.createElement("li",{ref:a,className:m("list-group-item")},r.createElement("div",{style:n,className:m("group",i),"data-qa":o},e&&r.createElement("div",{id:s,className:m("group-label")},e),r.createElement("ul",{role:"group","aria-labelledby":s,className:m("group-list")},t)))}));var v=n(11669);const y=(0,l.om)("menu"),b=r.forwardRef((function({icon:e,iconStart:t=e,iconEnd:n,title:i,disabled:a,active:s,selected:l,href:c,target:u,rel:d,onClick:f,style:p,className:h,theme:m,extraProps:g,children:b,qa:w},x){const{onKeyDown:_}=(0,o.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?_:void 0},C={title:i,onClick:a?void 0:f,onClickCapture:a?void 0:E,style:p,tabIndex:a?-1:0,className:y("item",{disabled:a,active:s,selected:l,theme:m,interactive:Boolean(f)||Boolean(c)},h),"data-qa":w},k=[t&&r.createElement("div",{key:"icon-start",className:y("item-icon")},t),r.createElement("div",{key:"content",className:y("item-content")},b),n&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},n)];let O;return O=c?r.createElement("a",Object.assign({},S,g,C,{href:c,target:u,rel:d}),k):r.createElement("div",Object.assign({},S,g,C),k),r.createElement("li",{ref:x,className:y("list-item")},O)})),w=(0,l.om)("menu"),x=r.forwardRef((function({size:e="m",children:t,style:n,className:i,qa:o},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},i),"data-qa":o},t)}));x.Item=b,x.Group=g;var _=n(54245);function E(e,t,n=1,r){const i=(e.length+t-n%e.length)%e.length;return r&&r(e[i])?E(e,i,1,r):i}function S(e,t,n=1,r){const i=(t+n)%e.length;return r&&r(e[i])?S(e,i,1,r):i}var C=n(39238);const k=[],O=r.createContext({activeMenuPath:k,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[i,o]=r.useState(k);r.useEffect((()=>{n&&o(k)}),[n]);const a=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:o,anchorRef:e})),[i,e]);return r.createElement(O.Provider,{value:a},t)},T={text:"",action:()=>{},path:[]};function A(e){return e===T}function I(e){return e.disabled||A(e)}function P(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const R=({items:e,open:t,anchorRef:n,onClose:i,size:o,menuProps:a,children:s,popupProps:l,path:d=[]})=>{const{toggle:f,data:p}=r.useContext(u),{activeMenuPath:h,setActiveMenuPath:m,anchorRef:g}=r.useContext(O),v=d.length>0,y=r.useCallback((()=>{m(d.slice(0,d.length-1))}),[m,d]),b=r.useCallback((e=>{var t;m(d),null===(t=null===l||void 0===l?void 0:l.onMouseEnter)||void 0===t||t.call(l,e)}),[d,l,m]),w=r.useCallback((e=>{var t;y(),null===(t=null===l||void 0===l?void 0:l.onMouseLeave)||void 0===t||t.call(l,e)}),[y,l]),_=r.useCallback(((e,t)=>{var n;e.items&&e.path?m(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,p),f(!1))}),[p,m,f]),k=r.useCallback(((t,n)=>{switch(n.key){case"Escape":return v&&(n.stopPropagation(),null===y||void 0===y||y()),!1;case"Enter":case" ":{const r=e[t],i=null===r||void 0===r?void 0:r.items;return(v||i)&&(n.stopPropagation(),n.preventDefault()),r&&_(r,n),!1}}return!0}),[y,_,v,e]),N=t&&P(d)===P(h),{activeItemIndex:T,setActiveItemIndex:R,reset:D}=function({items:e,skip:t,pageSize:n,processHomeKey:i=!0,processEndKey:o=!0,anchorRef:a,disabled:s=!1,initialValue:l=-1,onAnchorKeyDown:c}){const[u,d]=r.useState(l),f=r.useCallback((()=>{d(l)}),[l]);return r.useEffect((()=>{e&&f()}),[e,f]),r.useLayoutEffect((()=>{if(s)return;if(!e.some((e=>!(null===t||void 0===t?void 0:t(e)))))return;const r=null===a||void 0===a?void 0:a.current;if(!r)return;const l=r=>{if(!1!==(null===c||void 0===c?void 0:c(u,r)))switch(r.key){case"ArrowDown":r.preventDefault(),d((n=>S(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),d((n=>E(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),d((r=>S(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),d((r=>E(e,r,n,t)));break;case"Home":if(!i)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!o)return;r.preventDefault(),d((n=>E(e,n,n+1,t)))}};return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[u,a,s,e,c,n,o,i,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:I,anchorRef:g,onAnchorKeyDown:k,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||D()}),[t,D]),r.createElement(C.z,Object.assign({open:t,anchorRef:n,onClose:i},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(x,Object.assign({className:c("menu"),size:o},a),e.map(((e,n)=>{var o;const a=N&&T===n,s=t&&!a&&0!==h.length&&P(e.path)===P(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>R(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:A(e),"active-parent":s,"with-submenu":Boolean(null===(o=e.items)||void 0===o?void 0:o.length)},e.className),selected:a,popupProps:l,closeMenu:i},e,{extraProps:u}))}))))};function D(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j({items:e,path:t}){const{activeMenuPath:n,setActiveMenuPath:i}=r.useContext(O),o=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&i(t.slice(0,t.length-1))}),[t,i]),s=r.useCallback((()=>{t&&i(t)}),[t,i]);return{hasSubmenu:o,isSubmenuOpen:D(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:i,popupProps:o,closeMenu:a,children:l,path:h}=e,m=(0,d.Tt)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.j)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:C}=j({items:i,path:h}),k=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),k())}),[n,v,k,w]),N=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&C()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,C]),T=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),A=r.useMemo((()=>w?r.createElement(s.I,{data:"rtl"===b?f.A:p.A,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(x.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:A}),t||l),w&&i&&r.createElement(R,{popupProps:Object.assign(Object.assign({},o),{className:c("sub-menu",null===o||void 0===o?void 0:o.className),placement:T}),items:i,path:h,open:E,anchorRef:y,onClose:k}))};function L(e,t,n,i=void 0!==e&&void 0!==t){const o=function(e,t){const[n,i]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?i((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),i(e))}),[t])]}(e||n,t);return i?[e,t]:o}function z(e,t,n=[],r=0){const i=[];let o=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==i.length&&i.push(t),i.push(...e),a+=e.length,o=!0}else{if(s.hidden)continue;o&&i.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),i.push(e),o=!1}return i}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:i.A}),open:l,onOpenToggle:d,hideOnScroll:f=!0,data:p,disabled:h,switcher:m,renderSwitcher:g,switcherWrapperClassName:v,defaultSwitcherProps:y,defaultSwitcherClassName:b,onSwitcherClick:w,menuProps:x,popupProps:_,children:E})=>{const S=r.useRef(null),{isPopupShown:C,togglePopup:k,closePopup:O}=function(e,t,n){const[i,o]=L(e,t,!1),a=r.useCallback((e=>{o((t=>"boolean"===typeof e?e:!t))}),[o]),s=r.useCallback((()=>{o(!1)}),[o]);return r.useEffect((()=>{n&&i&&s()}),[s,n,i]),{isPopupShown:i,togglePopup:a,closePopup:s}}(l,d,h);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(O,S,!C||!f);const A=r.useMemo((()=>({toggle:k,data:p})),[p,k]),I=r.useMemo((()=>z(e,T)),[e]),P=r.useCallback((e=>{h||(null===w||void 0===w||w(e),k())}),[h,w,k]),{onKeyDown:D}=(0,o.N)(P),j=r.useMemo((()=>({onClick:P,onKeyDown:D})),[P,D]);return r.createElement(u.Provider,{value:A},r.createElement("div",Object.assign({ref:S,className:c("switcher-wrapper",v)},g?{}:j),(null===g||void 0===g?void 0:g(j))||m||r.createElement(a.$,Object.assign({view:"flat",size:t},y,{className:c("switcher-button",b),disabled:h}),n)),r.createElement(N,{anchorRef:S,disabled:!C},r.createElement(R,{items:I,open:C,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},40691:(e,t,n)=>{var r=n(92470),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},41650:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch{return e}}n.d(t,{O4:()=>a,en:()=>d,kf:()=>c,pY:()=>l,qF:()=>r,wb:()=>s,z0:()=>u});const i=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],o=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/o**2;return n<10?n.toFixed(2)+i[2]:n<100?n.toFixed(1)+i[2]:n.toFixed()+i[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+i[3]:r<10?r.toFixed(2)+i[3]:r<100?r.toFixed(1)+i[3]:r.toFixed()+i[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}const d="\xa0"},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(59284);function i(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const i=n.displayName;return Boolean(i&&i===e.displayName)}}},41826:(e,t,n)=>{"use strict";n.d(t,{p:()=>d,H:()=>f});n(59284);var r=n(23900),i=n(76086),o=n(56839),a=n(71661),s=n(48372);const l=JSON.parse('{"start-time":"Start time","disconnect-time":"Disconnect time","change-time":"Change time"}'),c=(0,s.g4)("ydb-uptime-viewer",{en:l});var u=n(60712);function d({StartTime:e,DisconnectTime:t}){let n,s=null;return t?(n=(0,o.wI)(t),s=(0,u.jsx)(r.u.Item,{name:c("disconnect-time"),children:(0,o.r6)(t,{withTimeZone:!0})},"DisconnectTime")):e&&(n=(0,o.H7)(e),s=(0,u.jsx)(r.u.Item,{name:c("start-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"StartTime")),n?(0,u.jsx)(a.s,{placement:["top","auto"],disabled:!s,content:(0,u.jsx)(r.u,{responsive:!0,children:s}),children:n}):i.Pd}function f({ChangeTime:e}){let t;return e&&(t=(0,o.H7)(e)),t?(0,u.jsx)(a.s,{placement:["top","auto"],content:(0,u.jsx)(r.u,{responsive:!0,children:(0,u.jsx)(r.u.Item,{name:c("change-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"changeTime")}),children:t}):i.Pd}},42566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{e&&e instanceof Function&&n.e(62308).then(n.bind(n,62308)).then((({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)}))}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},42634:()=>{},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},43160:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(16445),t)},43238:(e,t,n)=>{var r=n(68097),i=n(92061);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},43261:(e,t,n)=>{var r=n(36484),i=n(37815),o=n(70364),a=n(32361),s=n(41527),l=n(16320),c=n(45865),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},43377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(89222).then(n.t.bind(n,89222,23))},am:function(){return n.e(59243).then(n.t.bind(n,59243,23))},"ar-dz":function(){return n.e(6881).then(n.t.bind(n,6881,23))},"ar-iq":function(){return n.e(45685).then(n.t.bind(n,45685,23))},"ar-kw":function(){return n.e(88081).then(n.t.bind(n,88081,23))},"ar-ly":function(){return n.e(28256).then(n.t.bind(n,28256,23))},"ar-ma":function(){return n.e(89697).then(n.t.bind(n,89697,23))},"ar-sa":function(){return n.e(1187).then(n.t.bind(n,1187,23))},"ar-tn":function(){return n.e(24349).then(n.t.bind(n,24349,23))},ar:function(){return n.e(58890).then(n.t.bind(n,58890,23))},az:function(){return n.e(3410).then(n.t.bind(n,3410,23))},be:function(){return n.e(97748).then(n.t.bind(n,97748,23))},bg:function(){return n.e(85950).then(n.t.bind(n,85950,23))},bi:function(){return n.e(61088).then(n.t.bind(n,61088,23))},bm:function(){return n.e(97420).then(n.t.bind(n,97420,23))},"bn-bd":function(){return n.e(72568).then(n.t.bind(n,72568,23))},bn:function(){return n.e(1237).then(n.t.bind(n,1237,23))},bo:function(){return n.e(9174).then(n.t.bind(n,9174,23))},br:function(){return n.e(90513).then(n.t.bind(n,90513,23))},bs:function(){return n.e(22626).then(n.t.bind(n,22626,23))},ca:function(){return n.e(43761).then(n.t.bind(n,43761,23))},cs:function(){return n.e(46047).then(n.t.bind(n,46047,23))},cv:function(){return n.e(67348).then(n.t.bind(n,67348,23))},cy:function(){return n.e(48633).then(n.t.bind(n,48633,23))},da:function(){return n.e(15418).then(n.t.bind(n,15418,23))},"de-at":function(){return n.e(8534).then(n.t.bind(n,8534,23))},"de-ch":function(){return n.e(41696).then(n.t.bind(n,41696,23))},de:function(){return n.e(47878).then(n.t.bind(n,47878,23))},dv:function(){return n.e(49523).then(n.t.bind(n,49523,23))},el:function(){return n.e(3952).then(n.t.bind(n,3952,23))},"en-au":function(){return n.e(26625).then(n.t.bind(n,26625,23))},"en-ca":function(){return n.e(85027).then(n.t.bind(n,85027,23))},"en-gb":function(){return n.e(90290).then(n.t.bind(n,90290,23))},"en-ie":function(){return n.e(65401).then(n.t.bind(n,65401,23))},"en-il":function(){return n.e(36786).then(n.t.bind(n,36786,23))},"en-in":function(){return n.e(51496).then(n.t.bind(n,51496,23))},"en-nz":function(){return n.e(51627).then(n.t.bind(n,51627,23))},"en-sg":function(){return n.e(63769).then(n.t.bind(n,63769,23))},"en-tt":function(){return n.e(81747).then(n.t.bind(n,81747,23))},en:function(){return n.e(40730).then(n.t.bind(n,40730,23))},eo:function(){return n.e(79433).then(n.t.bind(n,79433,23))},"es-do":function(){return n.e(30523).then(n.t.bind(n,30523,23))},"es-mx":function(){return n.e(88119).then(n.t.bind(n,88119,23))},"es-pr":function(){return n.e(74324).then(n.t.bind(n,74324,23))},"es-us":function(){return n.e(4730).then(n.t.bind(n,4730,23))},es:function(){return n.e(49725).then(n.t.bind(n,49725,23))},et:function(){return n.e(53672).then(n.t.bind(n,53672,23))},eu:function(){return n.e(45759).then(n.t.bind(n,45759,23))},fa:function(){return n.e(40060).then(n.t.bind(n,40060,23))},fi:function(){return n.e(90628).then(n.t.bind(n,90628,23))},fo:function(){return n.e(86114).then(n.t.bind(n,86114,23))},"fr-ca":function(){return n.e(87962).then(n.t.bind(n,87962,23))},"fr-ch":function(){return n.e(26833).then(n.t.bind(n,26833,23))},fr:function(){return n.e(67605).then(n.t.bind(n,67605,23))},fy:function(){return n.e(95924).then(n.t.bind(n,95924,23))},ga:function(){return n.e(78517).then(n.t.bind(n,78517,23))},gd:function(){return n.e(59882).then(n.t.bind(n,59882,23))},gl:function(){return n.e(92466).then(n.t.bind(n,92466,23))},"gom-latn":function(){return n.e(7548).then(n.t.bind(n,7548,23))},gu:function(){return n.e(93033).then(n.t.bind(n,93033,23))},he:function(){return n.e(88706).then(n.t.bind(n,88706,23))},hi:function(){return n.e(9606).then(n.t.bind(n,9606,23))},hr:function(){return n.e(79707).then(n.t.bind(n,79707,23))},ht:function(){return n.e(77697).then(n.t.bind(n,77697,23))},hu:function(){return n.e(57970).then(n.t.bind(n,57970,23))},"hy-am":function(){return n.e(61917).then(n.t.bind(n,61917,23))},id:function(){return n.e(26324).then(n.t.bind(n,26324,23))},is:function(){return n.e(84401).then(n.t.bind(n,6782,23))},"it-ch":function(){return n.e(3902).then(n.t.bind(n,3902,23))},it:function(){return n.e(37380).then(n.t.bind(n,37380,23))},ja:function(){return n.e(63008).then(n.t.bind(n,63008,23))},jv:function(){return n.e(82053).then(n.t.bind(n,82053,23))},ka:function(){return n.e(61865).then(n.t.bind(n,61865,23))},kk:function(){return n.e(40047).then(n.t.bind(n,40047,23))},km:function(){return n.e(46541).then(n.t.bind(n,46541,23))},kn:function(){return n.e(21956).then(n.t.bind(n,21956,23))},ko:function(){return n.e(37579).then(n.t.bind(n,37579,23))},ku:function(){return n.e(56405).then(n.t.bind(n,56405,23))},ky:function(){return n.e(89025).then(n.t.bind(n,89025,23))},lb:function(){return n.e(63679).then(n.t.bind(n,86060,23))},lo:function(){return n.e(84652).then(n.t.bind(n,84652,23))},lt:function(){return n.e(55853).then(n.t.bind(n,55853,23))},lv:function(){return n.e(95819).then(n.t.bind(n,95819,23))},me:function(){return n.e(31975).then(n.t.bind(n,31975,23))},mi:function(){return n.e(49067).then(n.t.bind(n,49067,23))},mk:function(){return n.e(25453).then(n.t.bind(n,25453,23))},ml:function(){return n.e(16664).then(n.t.bind(n,16664,23))},mn:function(){return n.e(5634).then(n.t.bind(n,5634,23))},mr:function(){return n.e(26358).then(n.t.bind(n,26358,23))},"ms-my":function(){return n.e(17240).then(n.t.bind(n,17240,23))},ms:function(){return n.e(60949).then(n.t.bind(n,60949,23))},mt:function(){return n.e(44096).then(n.t.bind(n,44096,23))},my:function(){return n.e(30811).then(n.t.bind(n,30811,23))},nb:function(){return n.e(67357).then(n.t.bind(n,67357,23))},ne:function(){return n.e(48008).then(n.t.bind(n,48008,23))},"nl-be":function(){return n.e(35161).then(n.t.bind(n,35161,23))},nl:function(){return n.e(73879).then(n.t.bind(n,73879,23))},nn:function(){return n.e(4441).then(n.t.bind(n,4441,23))},"oc-lnc":function(){return n.e(23321).then(n.t.bind(n,23321,23))},"pa-in":function(){return n.e(93756).then(n.t.bind(n,93756,23))},pl:function(){return n.e(3121).then(n.t.bind(n,3121,23))},"pt-br":function(){return n.e(89922).then(n.t.bind(n,89922,23))},pt:function(){return n.e(34169).then(n.t.bind(n,34169,23))},rn:function(){return n.e(78053).then(n.t.bind(n,78053,23))},ro:function(){return n.e(10310).then(n.t.bind(n,10310,23))},ru:function(){return n.e(4180).then(n.t.bind(n,4180,23))},rw:function(){return n.e(32286).then(n.t.bind(n,32286,23))},sd:function(){return n.e(71486).then(n.t.bind(n,71486,23))},se:function(){return n.e(21053).then(n.t.bind(n,21053,23))},si:function(){return n.e(80921).then(n.t.bind(n,80921,23))},sk:function(){return n.e(85047).then(n.t.bind(n,85047,23))},sl:function(){return n.e(52182).then(n.t.bind(n,52182,23))},sq:function(){return n.e(33521).then(n.t.bind(n,33521,23))},"sr-cyrl":function(){return n.e(38103).then(n.t.bind(n,38103,23))},sr:function(){return n.e(58840).then(n.t.bind(n,58840,23))},ss:function(){return n.e(5647).then(n.t.bind(n,5647,23))},"sv-fi":function(){return n.e(8704).then(n.t.bind(n,8704,23))},sv:function(){return n.e(69220).then(n.t.bind(n,46839,23))},sw:function(){return n.e(74891).then(n.t.bind(n,74891,23))},ta:function(){return n.e(99466).then(n.t.bind(n,99466,23))},te:function(){return n.e(83510).then(n.t.bind(n,83510,23))},tet:function(){return n.e(12776).then(n.t.bind(n,12776,23))},tg:function(){return n.e(71756).then(n.t.bind(n,71756,23))},th:function(){return n.e(85953).then(n.t.bind(n,85953,23))},tk:function(){return n.e(55816).then(n.t.bind(n,55816,23))},"tl-ph":function(){return n.e(32166).then(n.t.bind(n,32166,23))},tlh:function(){return n.e(44601).then(n.t.bind(n,44601,23))},tr:function(){return n.e(72775).then(n.t.bind(n,72775,23))},tzl:function(){return n.e(65579).then(n.t.bind(n,65579,23))},"tzm-latn":function(){return n.e(80108).then(n.t.bind(n,80108,23))},tzm:function(){return n.e(59908).then(n.t.bind(n,59908,23))},"ug-cn":function(){return n.e(34847).then(n.t.bind(n,34847,23))},uk:function(){return n.e(6261).then(n.t.bind(n,6261,23))},ur:function(){return n.e(9518).then(n.t.bind(n,9518,23))},"uz-latn":function(){return n.e(34542).then(n.t.bind(n,34542,23))},uz:function(){return n.e(40710).then(n.t.bind(n,40710,23))},vi:function(){return n.e(42612).then(n.t.bind(n,42612,23))},"x-pseudo":function(){return n.e(92984).then(n.t.bind(n,92984,23))},yo:function(){return n.e(83333).then(n.t.bind(n,83333,23))},"zh-cn":function(){return n.e(21657).then(n.t.bind(n,21657,23))},"zh-hk":function(){return n.e(63653).then(n.t.bind(n,63653,23))},"zh-tw":function(){return n.e(60221).then(n.t.bind(n,60221,23))},zh:function(){return n.e(76879).then(n.t.bind(n,76879,23))}}},43781:(e,t,n)=>{var r=n(38469),i=n(65236),o=n(150),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=i();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},_.flush=function(){return void 0===f?d:x(i())},_}},43821:(e,t,n)=>{var r=n(32361),i=n(94454),o=n(80303),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),i=n(90826),o=n(85736);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(794);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,i.u)(),[b,w]=(0,o.P)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),x=(0,c.d)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},E=Object.assign(Object.assign({},function(e,t={}){const{labelable:n,propNames:r}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a.has(o)||n&&s.has(o)||(null===r||void 0===r?void 0:r.has(o))||l.test(o))&&(i[o]=e[o]);return i}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:E,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:x})))}}var d=n(69220),f=n(32084),p=n(11669);var h=n(10176);const m=(0,d.om)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function({name:e,value:t,checked:n,defaultChecked:a,disabled:s,controlRef:l,controlProps:u,onUpdate:d,onChange:h,onFocus:m,onBlur:g,id:v}){const y=(0,i.u)(),b=r.useRef(null),[w,x]=(0,o.P)(n,null!==a&&void 0!==a&&a,d),_=(0,c.d)({initialValue:w,onReset:x}),E=(0,f.N)(l,b,_);return{checked:w,inputProps:Object.assign(Object.assign({},u),{name:e||y,value:t,id:v,onFocus:m,onBlur:g,disabled:s,type:"radio",onChange:e=>{x(e.target.checked),h&&h(e)},onChangeCapture:e=>{p.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:n,defaultChecked:a,"aria-checked":w,ref:E})}}(e),g=a||s,v=(0,h.If)(g)||(0,h.$D)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.om)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:i,style:o,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:o,className:v({size:n,width:i},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},44593:(e,t,n)=>{const r=n(71928),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>A,l0:()=>M,m7:()=>G});var r=n(96906),i=n(97091),o=n(90754),a=n(53850),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=r.Qd;function c(e,t){if(e===t||!(l(e)&&l(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const a of n)o[a]=c(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}function u(e){let t=0;for(const n in e)t++;return t}var d=e=>[].concat(...e);function f(e){return null!=e}var p=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var h=(0,i.VP)("__rtkq/focused"),m=(0,i.VP)("__rtkq/unfocused"),g=(0,i.VP)("__rtkq/online"),v=(0,i.VP)("__rtkq/offline");function y(e){return"query"===e.type}function b(e,t,n,r,i,o){return"function"===typeof e?e(t,n,r,i).filter(f).map(w).map(o):Array.isArray(e)?e.map(w).map(o):[]}function w(e){return"string"===typeof e?{type:e}:e}var x=Symbol("forceQueryFn"),_=e=>"function"===typeof e[x];function E(e){return e}function S(e,t,n,r){return b(n[e.meta.arg.endpointName][t],(0,i.sf)(e)?e.payload:void 0,(0,i.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function C(e,t,n){const r=e[t];r&&n(r)}function k(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[k(t)];r&&n(r)}var N={};function T({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:u,hasRehydrationInfo:d},assertTagType:f,config:p}){const y=(0,i.VP)(`${e}/resetApiState`);function b(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},C(e,t.queryCacheKey,(e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp}))}function w(e,t,n){C(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_(t.arg))return;const{merge:r}=s[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:i,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,o.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:i,requestId:l})));e.data=c}else e.data=n;else e.data=s[t.arg.endpointName].structuralSharing??1?c((0,o.Qx)(e.data)?(0,o.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))}const x=(0,i.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,i.aA)()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:i}=n;b(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),w(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i)}},prepare:e=>({payload:e.map((e=>{const{endpointName:t,arg:n,value:r}=e,i=s[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:a({queryArgs:n,endpointDefinition:i,endpointName:t})},value:r}})),meta:{[i.cN]:!0,requestId:(0,i.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){C(e,t,(e=>{e.data=(0,o.$i)(e.data,n.concat())}))},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{b(e,n,_(n),t)})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{w(e,t,n)})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:o})=>{C(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=o??i}}))})).addMatcher(d,((e,t)=>{const{queries:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||(e[r]=i)}))}}),E=(0,i.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=k(t);n in e&&delete e[n]},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[k(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:i})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&O(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||r===i?.requestId||(e[r]=i)}))}}),T=(0,i.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const i of Object.values(e))for(const e of Object.values(i)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:i,id:o}of r){const t=(e[i]??={})[o||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(x.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=u(t);for(const[r,i]of Object.entries(n))for(const[t,n]of Object.entries(i)){const i=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){i.includes(e)||i.push(e)}}})).addMatcher((0,i.i0)((0,i.sf)(t),(0,i.WA)(t)),((e,t)=>{const n=S(t,"providesTags",s,f),{queryCacheKey:r}=t.meta.arg;T.caseReducers.updateProvidedBy(e,T.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),A=(0,i.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),I=(0,i.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,o.$i)(e,t.payload),prepare:(0,i.aA)()}}}),P=(0,i.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...p},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(g,(e=>{e.online=!0})).addCase(v,(e=>{e.online=!1})).addCase(h,(e=>{e.focused=!0})).addCase(m,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),R=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:P.reducer});return{reducer:(e,t)=>R(y.match(t)?void 0:e,t),actions:{...P.actions,...x.actions,...A.actions,...I.actions,...E.actions,...T.actions,resetApiState:y}}}var A=Symbol.for("RTKQ/skipToken"),I={status:"uninitialized"},P=(0,o.jM)(I,(()=>{})),R=(0,o.jM)(I,(()=>{}));var D=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const i=D?.get(t);if("string"===typeof i)n=i;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,r.Qd)(t)&&D?.set(t,e),n=e}return`${e}(${n})`};function M(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=j;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:j({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:(0,i.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,i.gk)(39))}else{o.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(o.endpointDefinitions[n]):Object.assign(o.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function L(e,...t){return Object.assign(e,...t)}var z=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,d={getSubscriptions:c,getSubscriptionCount:e=>u(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,u)=>{if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return i=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,d];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return n?.[e]?.[t]&&(n[e][t]=i),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,i=n[e.queryCacheKey]??={};return i[`${t}_running`]={},e.subscribe&&(i[t]=e.subscriptionOptions??i[t]??{}),!0}let i=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;i||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[o]=t.subscriptionOptions??e[o]??{},i=!0}}return i})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,o.vI)(i,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),i=t,a=null}),500));const s="string"==typeof c.type&&!!c.type.startsWith(r),l=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!s&&!l}return[p,!1]}};var F=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:a,unsubscribeQueryResult:s,cacheEntriesUpserted:l}=t.internalActions,c=(0,i.i0)(s.match,n.fulfilled,n.rejected,l.match);function u(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function f(e,t,n,i){const o=r.endpointDefinitions[t],s=o?.keepUnusedDataFor??i.keepUnusedDataFor;if(s===1/0)return;const l=Math.max(0,Math.min(s,2147482.647));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(a({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(n,i,o)=>{if(c(n)){const t=i.getState()[e];let r;if(l.match(n))r=n.payload.map((e=>e.queryDescription.queryCacheKey));else{const{queryCacheKey:e}=s.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)f(e,t.queries[e]?.endpointName,i,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(r.hasRehydrationInfo(n)){const t=i.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(o))f(e,n?.endpointName,i,t.config)}}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:a})=>{const s=(0,i.$S)(r),l=(0,i.$S)(o),c=(0,i.sf)(r,o),u={};function d(e,t,n){const r=u[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function f(e){const t=u[e];t&&(delete u[e],t.cacheEntryRemoved())}function p(t,r,i,o,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;const c={},d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw B}))]);f.catch((()=>{})),u[i]=c;const p=e.endpoints[t].select("query"===s.type?r:i),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=l(r,m);Promise.resolve(g).catch((e=>{if(e!==B)throw e}))}return(n,i,a)=>{const h=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(l(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?k(t.payload):""}(n);function m(e,n,r,o){const s=a[t].queries[n],l=i.getState()[t].queries[n];!s&&l&&p(e,o,n,i,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:i,queryCacheKey:o}=e;m(r,o,n.meta.requestId,i),d(o,t,{})}else if(o.pending.match(n)){i.getState()[t].mutations[h]&&p(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,i,n.meta.requestId)}else if(c(n))d(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))f(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(u))f(e)}},$=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},q=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=a.internalActions,f=(0,i.i0)((0,i.sf)(r),(0,i.WA)(r)),p=(0,i.i0)((0,i.sf)(r,o),(0,i.TK)(r,o));let h=[];function m(n,r){const i=r.getState(),o=i[e];if(h.push(...n),"delayed"===o.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(o))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(i,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===u(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",n,s),t):p(e)?m([],t):a.util.invalidateTags.match(e)&&m(b(e.payload,void 0,void 0,void 0,void 0,s),t)}},H=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const o={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=i.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=o[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;o[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(l)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=i.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=o[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=o[e];t?.timeout&&clearTimeout(t.timeout),delete o[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))l(e)}()}},V=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=(0,i.mm)(n,r),a=(0,i.TK)(n,r),s=(0,i.sf)(n,r),l={};return(n,r)=>{if(o(n)){const{requestId:i,arg:{endpointName:o,originalArgs:a}}=n.meta,s=t.endpointDefinitions[o],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[i]=t;const u=e.endpoints[o].select("query"===s.type?a:i),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:i,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(o,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function W(e){const{reducerPath:t,queryThunk:n,api:o,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,i.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),d=[$,F,q,H,U,V];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:c},p=d.map((e=>e(l))),m=z(l),v=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:o}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=i.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],i=c[e];i&&t&&((Object.values(i).some((e=>!0===e[a]))||Object.values(i).every((e=>void 0===e[a]))&&s.config[a])&&(0===u(i)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t))))}}))}return(e,t)=>{h.match(e)&&a(t,"refetchOnFocus"),g.match(e)&&a(t,"refetchOnReconnect")}})(l);return e=>l=>{if(!(0,r.ve)(l))return e(l);i||(i=!0,n.dispatch(o.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[f,h]=m(l,u,d);let g;if(g=f?e(l):h,n.getState()[t]&&(v(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(const e of p)e(l,u,d);return g}},actions:l};function f(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var K=Symbol(),G=({createSelector:e=a.Mz}={})=>({name:K,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:l,refetchOnMountOrArgChange:c,refetchOnFocus:S,refetchOnReconnect:C,invalidationBehavior:O},N){(0,o.YT)();const I=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:g,onOffline:v,onFocus:h,onFocusLost:m},util:{}});const{queryThunk:D,mutationThunk:j,patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,buildMatchThunkActions:U}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const l=async(e,{signal:r,abort:o,rejectWithValue:a,fulfillWithValue:s,dispatch:l,getState:u,extra:d})=>{const f=n[e.endpointName];try{let n,a=E;const h={signal:r,abort:o,dispatch:l,getState:u,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},m="query"===e.type?e[x]:void 0;if(m?n=m():f.query?(n=await t(f.query(e.originalArgs),h,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,h,f.extraOptions,(e=>t(e,h,f.extraOptions))),n.error)throw new p(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[i.cN]:!0})}catch(h){let t=h;if(t instanceof p){let n=E;f.query&&f.transformErrorResponse&&(n=f.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[i.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],i=n[e]?.config.refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&i);return!!a&&(!0===a||(Number(new Date)-Number(o))/1e3>=a)}const u=(0,i.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0}),condition(t,{getState:r}){const i=r(),o=i[e]?.queries?.[t.queryCacheKey],a=o?.fulfilledTimeStamp,s=t.originalArgs,l=o?.originalArgs,u=n[t.endpointName];return!!_(t)||"pending"!==o?.status&&(!!c(t,i)||!(!y(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:o,state:i}))||!a)},dispatchConditionRejection:!0}),d=(0,i.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,i)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(i());if(o)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(i,s)=>{const l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>i(a.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===l.status)return c;let u;if("data"in l)if((0,o.a6)(l.data)){const[e,t,r]=(0,o.vI)(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(l.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||i(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[x]:()=>({data:n})})),patchQueryData:(e,t,i,o)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!o)return;const f=a.endpoints[e].select(t)(c()),p=b(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.f$)((0,i.mm)(e),f(t)),matchFulfilled:(0,i.f$)((0,i.sf)(e),f(t)),matchRejected:(0,i.f$)((0,i.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:I}),{reducer:$,actions:q}=T({context:N,queryThunk:D,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:C,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:a,invalidationBehavior:O}});L(t.util,{patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,resetApiState:q.resetApiState,upsertQueryEntries:q.cacheEntriesUpserted}),L(t.internalActions,q);const{middleware:H,actions:V}=W({reducerPath:a,context:N,queryThunk:D,mutationThunk:j,api:t,assertTagType:I});L(t.util,V),L(t,{reducer:$,middleware:H});const{buildQuerySelector:G,buildMutationSelector:Y,selectInvalidatedBy:Q,selectCachedArgsForQuery:Z}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>P,i=e=>R;return{buildQuerySelector:function(t,i){return s=>{if(s===A)return n(r,o);const l=e({queryArgs:s,endpointDefinition:i,endpointName:t});return n((e=>a(e)?.queries?.[l]??P),o)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?k(e)??A:e,n(t===A?i:e=>a(e)?.mutations?.[t]??R,o)}},selectInvalidatedBy:function(e,n){const r=e[t],i=new Set;for(const t of n.filter(f).map(w)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:d(Object.values(e)))??[];for(const t of n)i.add(t)}return d(Array.from(i.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});L(t.util,{selectInvalidatedBy:Q,selectCachedArgsForQuery:Z});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,i){const a=(l,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[x]:m,...g}={})=>(v,y)=>{const b=e({queryArgs:l,endpointDefinition:i,endpointName:n}),w=t({...g,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:n,originalArgs:l,queryCacheKey:b,[x]:m}),_=r.endpoints[n].select(l),E=v(w),S=_(y());d(v);const{requestId:C,abort:k}=E,O=S.requestId!==C,N=o.get(v)?.[b],T=()=>_(y()),A=Object.assign(m?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:l,requestId:C,subscriptionOptions:h,queryCacheKey:b,abort:k,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&v(s({queryCacheKey:b,requestId:C}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:C,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(P=v,R={},(I=o).has(P)?I.get(P):I.set(P,R).get(P));e[b]=A,A.then((()=>{delete e[b],u(e)||o.delete(v)}))}var I,P,R;return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(o,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i}),f=o(c);d(o);const{requestId:p,abort:h,unwrap:m}=f,g=(v=e=>({error:e}),f.unwrap().then((e=>({data:e}))).catch(v));var v;const y=Object.assign(g,{arg:f.arg,requestId:p,abort:h,unwrap:m,reset:()=>{o(l({requestId:p,fixedCacheKey:i}))}}),b=a.get(o)||{};return a.set(o,b),b[p]=y,y.then((()=>{delete b[p],u(b)||a.delete(o)})),i&&(b[i]=y,y.then((()=>{b[i]===y&&(delete b[i],u(b)||a.delete(o))}))),y}},getRunningQueryThunk:function(t,n){return r=>{const a=i.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return o.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:D,mutationThunk:j,api:t,serializeQueryArgs:s,context:N});return L(t.util,{getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:K,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},y(n)?L(r.endpoints[e],{name:e,select:G(e,n),initiate:J(e,n)},U(D,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},45264:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>T,yJ:()=>m,sC:()=>I,AO:()=>h,Fu:()=>g});var r=n(58168);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(68643);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,d=void 0===l?b:l,g=o.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=f(o,S)),m(o,r,n)}function k(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.A)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(C(e.state))}function A(){P(C(_()))}var I=!1;function P(e){if(I)I=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,M(i))}(e)}))}}var R=C(_()),D=[R.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,T),i&&window.addEventListener(x,A)):0===L&&(window.removeEventListener(w,T),i&&window.removeEventListener(x,A))}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:j,push:function(e,r){var i="PUSH",o=m(e,r,k(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=D.indexOf(B.location.key),u=D.slice(0,c+1);u.push(o.key),D=u,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=m(e,r,k(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=D.indexOf(B.location.key);-1!==c&&(D[c]=o.key),N({action:i,location:o})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(k(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=C[s],g=d.encodePath,w=d.decodePath;function x(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function E(e){(0,r.A)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var T=!1,A=null;function I(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var i=x(),a=B.location;if(!T&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(T)T=!1,E();else{var t="POP";_.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(T=!0,M(i))}(e)}))}}(i)}}var P=O(),R=g(P);P!==R&&N(R);var D=x(),j=[h(D)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,I):0===L&&window.removeEventListener(S,I)}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);if(O()!==i){A=t,function(e){window.location.hash=e}(i);var o=j.lastIndexOf(h(B.location)),a=j.slice(0,o+1);a.push(t),j=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);O()!==i&&(A=t,N(i));var o=j.indexOf(h(B.location));-1!==o&&(j[o]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=A(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=A(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,d({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},45296:(e,t,n)=>{var r=n(97269);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},45720:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},45865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},45904:e=>{"use strict";e.exports=Math.floor},46343:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(5635),s=n(39955),l=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),i=n(8944);const o=(0,r.om)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(o(`${r}_${(0,i.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,Xx:()=>m,rF:()=>p});var r=n(14750),i=n(97091),o=n(76086),a=n(959),s=n(11822),l=n(21334),c=n(87747);function u(e,t,n,i){const s=`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS RelativePath`;let l=`Path='${e}' OR Path LIKE '${e}/%'`;const c=function(e){var t,n;const i=[],o=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&o&&a>o)throw new Error("Invalid date range");if(a){const e=o===a?">=":">";i.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return o&&i.push(`IntervalEnd <= Timestamp('${new Date(o).toISOString()}')`),i.join(" AND ")}(n);c.length&&(l=`(${l}) AND ${c}`);const u=(0,a.JD)(i);return`${o.Zi} \nSELECT\n ${s},\n \`.sys/top_partitions_one_hour\`.*\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${l}\n${u}\nLIMIT 20`}function d(e,t,n){const r=`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS RelativePath`,i=(0,a.JD)(n);return`${o.Zi} \nSELECT\n ${r},\n \`.sys/partition_stats\`.*\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${i}\nLIMIT 20`}const f=(0,i.Z0)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:p}=f.actions,h=f.reducer,m=l.F.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async({database:e,path:t="",sortOrder:n,filters:r},{signal:i})=>{try{const o=await window.api.viewer.sendQuery({query:(null===r||void 0===r?void 0:r.mode)===c.h.Immediate?d(t,e,n):u(t,e,r,n),database:e,action:"execute-scan"},{signal:i,withRetries:!0});if((0,s.We)(o))return{error:o};return{data:(0,s.fW)(o)}}catch(o){return{error:o}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,i;return"immediate"===(null===e||void 0===e||null===(t=e.filters)||void 0===t?void 0:t.mode)||!(!(0,r.eP)(null===e||void 0===e||null===(n=e.filters)||void 0===n?void 0:n.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))}})}),overrideExisting:"throw"})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>o,z3:()=>r.z,fn:()=>r.f});var r=n(15619),i=n(76086);const o=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/i.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/i.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/i.tt):0})},46626:(e,t,n)=>{var r=n(19305),i=n(60242),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),i=n(64255),o=n.n(i);const a="pending";function s(e){const{children:t,text:n,options:i,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(o(),{text:n,onCopy:p,options:i},f)}},46710:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e,t){return e&&r(t,i(t),e)}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>o});var r=n(59284),i=n(359);function o(e){return t=>{e&&[i.D.ENTER,i.D.SPACEBAR,i.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>o(e)),[e])}}},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(59284),i=n(11507);function o(){return r.useContext(i.G).mobile}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(59284),i=n(42933);function o(){const e=r.useContext(i.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(59284);const i=(0,n(69220).om)("control-label"),o=r.forwardRef((({children:e,className:t,labelClassName:n,title:o,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:i("indicator",l.props.className)});return r.createElement("label",{ref:d,title:o,style:a,className:i({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:i("text",n)},e):null)}));o.displayName="ControlLabel"},47018:(e,t,n)=>{var r=n(80222),i=n(40691),o=n(9112),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),i=n(21334),o=n(46549),a=n(73891),s=n(41650);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:i,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,o.ey)(s),partitionWriteLag:(0,a.i6)(i),partitionWriteIdleTime:(0,a.MC)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.Z0)({name:"partitions",initialState:{},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=i.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const i=await window.api.viewer.getConsumer({path:e,database:t,consumer:n},{signal:r}),c=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,i=l(n),{endOffset:c}=i,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kf)(c)&&(0,s.kf)(d)?Number(c)-Number(d):0,w=(0,s.kf)(c)&&(0,s.kf)(u)?Number(c)-Number(u):0;return{...i,partitionId:t,readSpeed:(0,o.ey)(g),consumerWriteLag:(0,a.i6)(m),consumerReadLag:(0,a.i6)(h),consumerReadIdleTime:(0,a.MC)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(i.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),i=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(n.partitions);return{data:i}}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"})},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),i=n(77506),o=n(66781),a=n(60712);const s=(0,i.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[i]=(0,o.y)(t);return i?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),i=n(81240),o=n(48699),a=n(46700),s=n(99991);const l=(0,n(69220).om)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:x=!1,value:_,onCopy:E,onClick:S,qa:C}=e,k=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&k,N="copy"===n&&k,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:P,closeIconSize:R}=c[d],D=p&&r.createElement("div",{className:l("addon",{side:k?"start":void 0,type:"icon"})},p),j=k&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(_)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},_))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(o.u,{status:e||"pending",size:P})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(s.I,{size:R,data:i.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":C},D,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return A&&y&&!T?r.createElement(a.$,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>s,oK:()=>l,Ru:()=>u,g4:()=>d});var r=n(1448),i=n(3357),o=n(59001),a=n(76086),s=function(e){return e.En="en",e.Ru="ru",e}(s||{});const l=s.En,c=o.f.readUserSettingsValue(a.jS,l),u=new r.TH({lang:c,fallbackLang:s.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jK)({lang:c})},48681:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(76575)},48699:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),i=n(59284);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.5 1.5 0 0 1 8 13.5H4a1.5 1.5 0 0 1-1.06-.44A1.5 1.5 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.5 1.5 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06zm-1.47-1.03L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06l.97-.97.97.97a.75.75 0 0 0 1.06-1.06M6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4zM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1z",clipRule:"evenodd"})),a=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001z"}),i.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1zM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.5 1.5 0 0 0 8 6.5zM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8z",clipRule:"evenodd"})));var s=n(51016),l=n(99991);function c(e){var{status:t}=e,n=(0,r.Tt)(e,["status"]);return"error"===t?i.createElement(l.I,Object.assign({data:o},n)):"success"===t?i.createElement(l.I,Object.assign({data:a},n)):i.createElement(l.I,Object.assign({data:s.A},n))}},48955:(e,t,n)=>{var r=n(537),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},49034:(e,t,n)=>{"use strict";n.d(t,{d:()=>F});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(o){}var i=y.call(e);return r&&(t?e[b]=n:delete e[b]),i},x=Object.prototype.toString;var _=w,E=function(e){return x.call(e)},S=h?h.toStringTag:void 0;var C=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},k=function(e){return null!=e&&"object"==typeof e};var O=p,N=i,T=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==C(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,P=/^0o[0-7]+$/i,R=parseInt;var D=i,j=c,M=function(e){if("number"==typeof e)return e;if(T(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=O(e);var n=I.test(e);return n||P.test(e)?R(e.slice(2),n?2:8):A.test(e)?NaN:+e},L=Math.max,z=Math.min;var F=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=j();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?z(n,o-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=M(t)||0,D(n)&&(u=!!n.leading,o=(d="maxWait"in n)?L(M(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},49228:(e,t,n)=>{"use strict";n.d(t,{Fk:()=>s,Mo:()=>l,DB:()=>a,LK:()=>u,DM:()=>d});var r=n(48372);const i=JSON.parse('{"tablet-id":"TabletId","cpu-cores":"CPUCores","data-size":"DataSize (B)","path":"Path","node-id":"NodeId","peak-time":"PeakTime","in-flight-tx-count":"InFlightTxCount","interval-end":"IntervalEnd"}'),o=(0,r.g4)("ydb-shards-table",{en:i}),a="topShardsColumnsWidth",s={TabletId:"TabletId",CPUCores:"CPUCores",DataSize:"DataSize",Path:"Path",NodeId:"NodeId",PeakTime:"PeakTime",InFlightTxCount:"InFlightTxCount",IntervalEnd:"IntervalEnd"},l={get TabletId(){return o("tablet-id")},get CPUCores(){return o("cpu-cores")},get DataSize(){return o("data-size")},get Path(){return o("path")},get NodeId(){return o("node-id")},get PeakTime(){return o("peak-time")},get InFlightTxCount(){return o("in-flight-tx-count")},get IntervalEnd(){return o("interval-end")}},c={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:"IntervalEnd"};function u(e){return c[e]}function d(e){return Boolean(u(e))}},49526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),i=n.n(r);const o="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"cell"},l=()=>({type:o}),c=(e,t,n,r,i)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:i}),u=(e=s,t)=>{switch(t.type){case o:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&i()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},49837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(57855),t)},49860:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.orderedUnits=void 0,t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))};var r=365.2425,i=30.436875,o=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:i,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var i,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,i=a.slice(1);r<i.length;r++){var s=i[r],l=e[s];l&&(n+=l*o[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[x=a[v]]&&null!==h[x])if(g){var y=(null!==(i=h[g])&&void 0!==i?i:0)*m,b=o[x][g],w=Math.floor(y/b);h[x]=(null!==(s=h[x])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=x}else g=x}g=null;for(v=0;v<t.orderedUnits.length;v++){var x;if(void 0!==h[x=t.orderedUnits[v]]&&null!==h[x])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[x]=(null!==(d=h[x])&&void 0!==d?d:0)+_*o[g][x],g=x}else g=x}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];0!==a&&(t[o]=a)}return t}function c(e,n,r){var i;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=o[g][f]*c[g],c[g]=0}(E=e[f])&&(p+=E);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],x=w[0],_=w[1];0!==_&&(l[a]=(null!==(i=l[a])&&void 0!==i?i:0)+(x===a?_:_/o[a][x]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.53 1.53A.75.75 0 0 0 14.47.47l-1.29 1.29a4.24 4.24 0 0 0-5.423.483l-.58.58a.96.96 0 0 0 0 1.354l4.646 4.646a.96.96 0 0 0 1.354 0l.58-.58a4.24 4.24 0 0 0 .484-5.423zm-8.5 4.94a.75.75 0 0 1 0 1.06L5.78 8.78l1.44 1.44 1.25-1.25a.75.75 0 0 1 1.06 1.06l-1.25 1.25.543.543a.96.96 0 0 1 0 1.354l-.58.58a4.24 4.24 0 0 1-5.423.484l-1.29 1.29A.75.75 0 0 1 .47 14.47l1.29-1.29a4.24 4.24 0 0 1 .483-5.423l.58-.58a.96.96 0 0 1 1.354 0l.543.543 1.25-1.25a.75.75 0 0 1 1.06 0M3.5 8.62l-.197.197a2.743 2.743 0 0 0 3.879 3.879l.197-.197zm9.197-1.439-.197.197L8.621 3.5l.197-.197a2.743 2.743 0 0 1 3.879 3.879",clipRule:"evenodd"}))},50088:(e,t,n)=>{var r=n(38469),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},50490:(e,t,n)=>{var r=n(72220),i=n(57741),o=n(73073),a=o&&o.isMap,s=a?i(a):r;e.exports=s},50711:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},50743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,i.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,o.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new i.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})};var r=n(11345),i=n(57491),o=n(49860),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+N(s=e[c],c);l+=T(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=o+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},R={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:R,ReactCurrentOwner:E};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},51016:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"}))},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},51682:e=>{"use strict";e.exports=Math.abs},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},52497:(e,t,n)=>{var r=n(50088),i=n(22807),o=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},52530:e=>{"use strict";e.exports=RangeError},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>i,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>o});const r="tenantPage",i={query:"query",diagnostics:"diagnostics"},o={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),i=n(25540),o=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(68643);o.Component;o.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=o.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,o.createElement("a",u)}));var m=p((function(e,t){var n=e.component,i=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.A)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,o.createElement(i,h)}))})),g=function(e){return e},v=o.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,x=e.sensitive,_=e.strict,E=e.style,S=e.to,C=e.innerRef,k=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=O?(0,r.B6)(n.pathname,{path:O,exact:y,sensitive:x,strict:_}):null,T=!!(b?b(N,n):N),A="function"===typeof h?h(T):h,I="function"===typeof E?E(T):E;T&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,f),I=(0,s.A)({},I,p));var P=(0,s.A)({"aria-current":T&&i||null,className:A,style:I,to:a},k);return g!==v?P.ref=t||C:P.innerRef=C,o.createElement(m,P)}))}))},52964:(e,t,n)=>{var r=n(19750),i=n(59698),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>yi,sx:()=>eo,gL:()=>io});var r=n(59284),i=n(25540),o=n(58168),a=n(96906),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,i=e.children,o=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=n||s;return r.createElement(l.Provider,{value:o},i)};var h=n(98587),m=n(5290),g=n.n(m),v=n(94771),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],x=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function C(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,i.current)}catch(p){n=p,d=p}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),A=void 0!==T&&T,I=n.context,P=void 0===I?s:I,R=(0,h.A)(n,y),D=P;return function(t){var n=t.displayName||t.name||"Component",i=a(n),s=(0,o.A)({},R,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:i,wrappedComponentName:n,WrappedComponent:t}),l=R.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=i[0],l=i[1],c=i[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:D}),[a,D]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),N=(0,r.useMemo)((function(){if(!m)return x;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],A=N[1],I=(0,r.useMemo)((function(){return g?p:(0,o.A)({},p,{subscription:T})}),[g,p,T]),P=(0,r.useReducer)(_,w,k),R=P[0][0],j=P[1];if(R&&R.error)throw R.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,R,c]);E(S,[L,M,F,c,B,z,A]),E(C,[m,y,T,O,L,M,F,z,A,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,o.A)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:I},U):U}),[f,U,I])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=i,A){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,o.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=i,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!N(e[n[i]],t[n[i]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=I(i),i=r(t,n)),i},r}}const R=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?A((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];const D=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(){return{}}))}];function j(e,t,n){return(0,o.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h=!d(p,a),m=!u(i,o,p,a);return o=i,a=p,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(o,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(i,u){return p?h(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,h.A)(t,L),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?F:z)(a,s,l,e,o)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function $(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function q(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,i=t.mapStateToPropsFactories,a=void 0===i?D:i,s=t.mapDispatchToPropsFactories,l=void 0===s?R:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,i){void 0===i&&(i={});var s=i,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?q:p,g=s.areOwnPropsEqual,v=void 0===g?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,x=void 0===w?T:w,_=(0,h.A)(s,U),E=$(e,a,"mapStateToProps"),S=$(t,l,"mapDispatchToProps"),C=$(n,u,"mergeProps");return r(f,(0,o.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:C,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}const V=H();var W,K=n(48681);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],i=(0,r.useRef)(!0),o=(0,r.useRef)(n),a=i.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){i.current=!1,o.current=a}),[a]),a.result}W=K.unstable_batchedUpdates,l=W;var Y=G,Q=function(e,t){return G((function(){return e}),t)},Z=n(68643),J=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,i=e.border,o=void 0===i?te:i,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,o)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Z.A)(!1),n},ie=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:o,margin:a,padding:s})},oe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ie(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},i={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:i})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(77995);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function de(){}function fe(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,o.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var pe=!0,he="Invariant failed";function me(e){this.message=e}function ge(e,t){if(!e)throw new me(pe?he:he+": "+(t||""))}me.prototype.toString=function(){return this.message};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=de,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof me&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ye=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ye(e.index),i=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},we=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},xe=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},_e={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?we(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+xe(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+we(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+xe(e.source)+"\n "}},Ee={x:0,y:0},Se=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ce=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},ke=function(e,t){return e.x===t.x&&e.y===t.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ae=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Ie=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Pe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Re=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},De=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,a=function(e,t){return t?Pe(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,n){var r;return n&&n.increasedBy?(0,o.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:De(s,i)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=Ce(t,n.scroll.initial),i=Oe(r),a=(0,o.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,o.A)({},e,{frame:a,subject:s})};function Le(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ze(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=ze(e,t);return-1!==n?e[n]:void 0}function Be(e){return Array.prototype.slice.call(e)}var Ue=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$e=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qe=(0,le.A)((function(e){return Le(e)})),He=(0,le.A)((function(e){return Le(e)})),Ve=(0,le.A)((function(e,t){var n=He(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function We(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ke(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=(0,le.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ye=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Qe={point:Ee,value:0},Ze={invisible:{},visible:{},all:[]},Je={displaced:Ze,displacedBy:Qe,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},tt=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},it=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ee;return Pe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,o)&&function(e,t,n){return n(t)(e)}(a,r,o)},ot=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!ot({target:s,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate}(l,a,o),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function lt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Ze,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=Ye(t,r);if(null==s)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=Ge(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ut(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ge(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=r[a].descriptor.index;return ut(a,o)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=Ke(n);i||ge(!1);var o=i.draggableId,a=r[o].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?o?Ee:Oe(i.point):o?i.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Se(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ht=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.end]+pt(t,r),ht(t,n.marginBox,r))},gt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ht(t,n.marginBox,r))},vt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=Ve(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ne(t.line,n.contentBox[t.start]+pt(t,r),ht(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,o))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=ie(f.page,u.point);return gt({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ut(h.descriptor.id,o)){var m=ie(h.page,Oe(o.displacedBy.point));return mt({axis:l,moveRelativeTo:m,isMoving:s})}return mt({axis:l,moveRelativeTo:h.page,isMoving:s})},yt=function(e,t){var n=e.frame;return n?Se(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):ft({impact:t,draggables:i,afterCritical:o}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=Ce(t,e.scroll.initial),r=Oe(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xt(e,t){return e.map((function(e){return t[e]}))}var _t=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Se(e.scroll.diff.displacement,t)}(e.viewport,t),i=Ce(r,n.page.borderBox.center);return Se(n.client.borderBox.center,i)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=Ce(r,t.page.borderBox.center),u={target:Pe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:i};return l?function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):at(u)},St=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=Ve(r.descriptor.id,i),f=Ye(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!We(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,o.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=Ge(n,i);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=ze(u,(function(e){return e.descriptor.id===c}));-1===d&&ge(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:i,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:i,afterCritical:u});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_t({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=Ce(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,a=e.maxScrollChange,s=wt(n,Se(n.scroll.current,a)),l=r.frame?Me(r,Se(r.frame.scroll.current,a)):r,c=t.displaced,u=st({afterDragging:xt(c.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:xt(c.all,i),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,o.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:i,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},Ct=function(e){var t=e.subject.active;return t||ge(!1),t},kt=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?Ce(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?Pe(n,Oe(t.displacedBy.point)):n},Nt=(0,le.A)((function(e,t){var n=t[e.line];return{value:n,point:Ne(e.line,n)}})),Tt=function(e,t){return(0,o.A)({},e,{scroll:(0,o.A)({},e.scroll,{max:t})})},At=function(e,t,n){var r=e.frame;Ye(t,e)&&ge(!1),e.subject.withPlaceholder&&ge(!1);var i=Nt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=Ve(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return o<=0?null:Ne(r.line,o)}(e,i,n),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,o.A)({},e,{subject:l})}var c=a?Se(r.scroll.max,a):r.scroll.max,u=Tt(r,c),d=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,o.A)({},e,{subject:d,frame:u})},It=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=qe(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return et(o.frame)(Ct(e))})).filter((function(e){var n=Ct(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Ct(e),n=Xe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Ct(e)[s.crossAxisStart],i=Ct(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return Ct(e)[s.crossAxisStart]===Ct(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(Ct(e)[s.start],Ct(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Ct(e)[s.start]-Ct(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,Re(Ct(e))),i=Ae(n,Re(Ct(t)));return r!==i?r-i:Ct(e)[s.start]-Ct(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=Ve(c.descriptor.id,o),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return at({target:Ot(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=Te(t,yt(r,kt(e,o))),a=Te(t,yt(r,kt(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Ze,displacedBy:Qe,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),d=Ye(i,a)?a:At(a,i,o);return Et({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||f?e:e+1}(),h=Nt(a.axis,i.displaceBy);return ct({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Ze,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:o,afterCritical:l});return{clientSelection:_t({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Pt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Rt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Pt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?St({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):It({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Dt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function jt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=qe(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],s=t[o.crossAxisStart],l=t[o.crossAxisEnd],c=Xe(i[o.crossAxisStart],i[o.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map((function(e){var n=e.axis,r=Ne(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}var Lt=function(e,t){return J(Pe(e,t))};function zt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:i});if(!c)return Je;var u=i[c],d=Ve(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Lt(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=Nt(i.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ge(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/4,o=ut(t,a),l=zt({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&d<n[s.end]-i:u>n[s.start]-c+i&&u<n[s.end]-c-i:l?d>n[s.start]+c+i&&d<n[s.end]+c-i:u>n[s.start]+i&&u<n[s.end]-i}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Nt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),i=zt({displaced:o,id:t});return r?i?f<=n:d<n-u:i?f<=n+u:d<n})),inHomeList:Ye(n,r)});return ct({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,o.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=Pt(t),a=Pt(n);if(!i)return r;if(i===a)return r;var s=r[i];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ge(!1);var n=e.frame;if(!n){var r=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,o.A)({},e,{subject:r})}var i=t.oldFrameMaxScroll;i||ge(!1);var a=Tt(n,i),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,o.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},$t=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=i||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=Ce(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Se(t.initial.client.borderBoxCenter,d)},p={selection:Se(f.selection,l.scroll.current),borderBoxCenter:Se(f.borderBoxCenter,l.scroll.current),offset:Se(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,o.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Ft({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=Ut({previousImpact:i,impact:o,droppables:r}),s=Pt(o);if(!s)return a;var l=r[s];if(Ye(t,l))return a;if(l.subject.withPlaceholder)return a;var c=At(l,t,n);return Bt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,o.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var qt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=st({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,o.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return _t({pageBorderBoxCenter:s,draggable:n,viewport:o})},Vt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var i=t.impact,o=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Pt(i);u||ge(!1);var d=l[u],f=qt({impact:i,viewport:o,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return $t({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=Nt(n.axis,t.displaceBy),a=Ve(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ge(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Kt=function(e){0},Gt=function(e){0},Yt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ge(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=ie(t.client,n),a=oe(i,r);return(0,o.A)({},t,{placeholder:(0,o.A)({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:Se(i,s),initialWindowScroll:r.scroll.initial});return l}))},Qt=function(e){return"SNAP"===e.movementMode},Zt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Qt(e)||n?$t({state:e,dimensions:r}):Vt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,o.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Xt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Xt),"FLUSH"===t.type)return(0,o.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,i=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:i,borderBoxCenter:c.client.borderBox.center,offset:Ee},f={client:d,page:{selection:Se(d.selection,a.scroll.initial),borderBoxCenter:Se(d.selection,a.scroll.initial),offset:Se(d.selection,a.scroll.diff.value)}},p=qe(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Wt({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ge(!1),(0,o.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),function(e){var t=e.state,n=e.published;Kt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Me(n,e.scroll)})),i=(0,o.A)({},t.dimensions.droppables,{},Ue(r)),a=$e(Yt({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=(0,o.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:i,draggables:s},c=Pt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=Wt({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Ft({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Gt();var y=(0,o.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,o.A)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var g=t.payload.client;return ke(g,e.current.client.selection)?e:$t({state:e,clientSelection:g,impact:Qt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Jt(e);if("COLLECTING"===e.phase)return Jt(e);Dt(e)||ge(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var x=Me(w,b);return Zt(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,C=e.dimensions.droppables[E];C||ge(!1),C.isEnabled===S&&ge(!1);var k=(0,o.A)({},C,{isEnabled:S});return Zt(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,A=e.dimensions.droppables[N];A||ge(!1),A.isCombineEnabled===T&&ge(!1);var I=(0,o.A)({},A,{isCombineEnabled:T});return Zt(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Dt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var P=t.payload.newScroll;if(ke(e.viewport.scroll.current,P))return Jt(e);var R=wt(e.viewport,P);return Qt(e)?Vt({state:e,viewport:R}):$t({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Dt(e))return e;var D=t.payload.maxScroll;if(ke(D,e.viewport.scroll.max))return e;var j=(0,o.A)({},e.viewport,{scroll:(0,o.A)({},e.viewport.scroll,{max:D})});return(0,o.A)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ge(!1);var M=Rt({state:e,type:t.type});return M?$t({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ge(!1),(0,o.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},hn=function(e){return{type:"DROP_COMPLETE",payload:e}},mn=function(e){return{type:"DROP",payload:e}},gn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var vn="cubic-bezier(.2,1,.1,1)",yn={drop:0,combining:.7},bn={drop:.75},wn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+wn,snap:"transform "+wn+", opacity "+wn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wn,placeholder:"height "+wn+", width "+wn+", margin "+wn},_n=function(e){return ke(e,Ee)?null:"translate("+e.x+"px, "+e.y+"px)"},En=_n,Sn=function(e,t){var n=_n(e);return n?t?n+" scale("+bn.drop+")":n:null},Cn=.33,kn=.55,On=kn-Cn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),a=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&ge(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&ge(!1);var s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,o.A)({},r,{displaced:Ze}),didDropInsideDroppable:!0}:{impact:qt({draggables:t,impact:s,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?We(d):null,h=f?Ke(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,s=r.droppables,l=Pt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i});return Ce(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:d};if(!ke(i.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,i=Te(t,n);if(i<=0)return Cn;if(i>=1500)return kn;var o=Cn+On*(i/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(hn({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function An(e){var t=e.onWindowScroll;var n=ce((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),i=de;function o(){return i!==de}return{start:function(){o()&&ge(!1),i=fe(window,[r])},stop:function(){o()||ge(!1),n.cancel(),i(),i=de},isActive:o}}var In=function(e){var t=An({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Pn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ze(e,(function(e){return e.timerId===t}));-1===n&&ge(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Rn=function(e,t){Kt(),t(),Gt()},Dn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},jn=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Pn(),r=null,i=function(n){r||ge(!1),r=null,Rn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Rn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Rn(0,(function(){var r=e().onBeforeDragStart;r&&r(Dn(t,n))}))},start:function(i,o){r&&ge(!1);var a=Dn(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){Rn(0,(function(){return jn(e().onDragStart,a,t,_e.onDragStart)}))}))},update:function(i,a){var s=We(a),l=Ke(a);r||ge(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(i,r.lastCritical);c&&(r.lastCritical=i);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,o.A)({},Dn(i,r.mode),{combine:l,destination:s});n.add((function(){Rn(0,(function(){return jn(e().onDragUpdate,h,t,_e.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:i,abort:function(){if(r){var e=(0,o.A)({},Dn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ln=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ge(!1),e.dispatch(hn({completed:r.completed}))}else t(n)}}},zn=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=fe(window,[o])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(mn({reason:r.reason})))}}}},Bn=a.Zz,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,l=o.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(hn({completed:c.completed})),"IDLE"!==n().phase&&ge(!1),r(pn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(i)}}}}(n),Nn,Ln,zn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&ge(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(l),In,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(o,s))))};var $n=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=Ce({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},qn=function(){var e=document.documentElement;return e||ge(!1),e},Hn=function(){var e=qn();return $n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Kt();var i=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,i=qn(),o=i.clientWidth,a=i.clientHeight;return{frame:J({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),c={draggables:$e(l),droppables:Ue(s)};return Gt(),{dimensions:c,critical:t,viewport:i}};function Wn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Kn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,Kt();var e=r,o=e.additions,a=e.removals,s=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Ee)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},Gt(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||ge(!1);var i=n.critical.draggable;"ADDITION"===t.type&&Wn(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Wn(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},Vn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return o},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Yn=function(e){window.scrollBy(e.x,e.y)},Qn=(0,le.A)((function(e){return qe(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Zn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=function(e,t){var n=Fe(Qn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return o},Jn=.25,Xn=.05,er=28,tr=function(e){return Math.pow(e,2)},nr={stopDampeningAt:1200,accelerateAt:360},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},ir=nr.accelerateAt,or=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return er;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=er*tr(1-n);return Math.ceil(r)}(t,n);return 0===o?0:i?Math.max(function(e,t){var n=t,r=or,i=Date.now()-n;if(i>=or)return e;if(i<ir)return 1;var o=rr({startOfRange:ir,endOfRange:r,current:i}),a=e*tr(o);return Math.ceil(a)}(o,r),1):o},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,i);return n[i.end]<n[i.start]?ar({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*ar({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})},lr=Ie((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:o}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:o}),c=lr({x:l,y:s});if(ke(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?ke(u,Ee)?null:u:null},ur=Ie((function(e){return 0===e?0:e>0?1:-1})),dr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Se(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return ke(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=ur(r),a=dr({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},hr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},mr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=cr({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void i(l)}var c=Zn({center:a,destination:Pt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&o(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(e,t){if(!hr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&hr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=Ce(t,r);return n(e.descriptor.id,i),Ce(t,i)},o=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var i=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var o=Ce(n,i);return r(o),Ce(n,o)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Pt(e.impact);r||ge(!1);var a=i(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=o(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Se(e.current.client.selection,n);t({client:r})}(e,l)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),i=ce(n),o=null,a=function(e){o||ge(!1);var t=o,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Kt(),o&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){o&&(r.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),o=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},yr="data-rbd",br=function(){var e=yr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),wr=function(){var e=yr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr=function(){var e=yr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_r={contextId:yr+"-scroll-container-context-id"},Er=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+xn.outOfTheWay+";\n ";return{selector:n(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(xr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Er(i,"always"),resting:Er(i,"resting"),dragging:Er(i,"dragging"),dropAnimating:Er(i,"dropAnimating"),userCancel:Er(i,"userCancel")}},Cr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,kr=function(){var e=document.querySelector("head");return e||ge(!1),e},Or=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Nr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof Nr(e).HTMLElement}function Ar(e,t){var n="["+br.contextId+'="'+e+'"]',r=Be(document.querySelectorAll(n));if(!r.length)return null;var i=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return i&&Tr(i)?i:null}function Ir(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ge(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Le(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||ge(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return Le(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Pr=r.createContext(null),Rr=function(){var e=document.body;return e||ge(!1),e},Dr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jr=function(e){return"rbd-announcement-"+e};var Mr=0,Lr={separator:"::"};function zr(e,t){return void 0===t&&(t=Lr),Y((function(){return""+e+t.separator+Mr++}),[t.separator,e])}var Fr=r.createContext(null);function Br(e){0}function Ur(e,t){Br()}function $r(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var qr,Hr=((qr={})[13]=!0,qr[9]=!0,qr),Vr=function(e){Hr[e.keyCode]&&e.preventDefault()},Wr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Kr,Gr={type:"IDLE"};function Yr(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,o=e.clientY;if(0===t){var a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&ge(!1),function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,a)){e.preventDefault();var l=s.actions.fluidLift(a);i({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Vr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Wr,fn:t}]}function Qr(){}var Zr=((Kr={})[34]=!0,Kr[33]=!0,Kr[36]=!0,Kr[35]=!0,Kr);function Jr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Zr[r.keyCode]?r.preventDefault():Vr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Wr,fn:n}]}var Xr={type:"IDLE"};var ei={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ti(e,t){if(null==t)return!1;if(Boolean(ei[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ti(e,t.parentElement)}function ni(e,t){var n=t.target;return!!Tr(n)&&ti(e,n)}var ri=function(e){return J(e.getBoundingClientRect()).center};var ii=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function oi(e,t){return null==e?null:e[ii](t)?e:oi(e.parentElement,t)}function ai(e,t){return e.closest?e.closest(t):oi(e,t)}function si(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var i=function(e){return"["+br.contextId+'="'+e+'"]'}(e),o=ai(r,i);return o&&Tr(o)?o:null}function li(e){e.preventDefault()}function ci(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ui(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!Gn(n.getState(),i))}function di(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!ui({lockAPI:t,store:r,registry:i,draggableId:a}))return null;var c=i.draggable.getById(a),u=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=Fe(Be(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Tr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&ni(u,l))return null;var d=t.claim(s||de),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){ci({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=fe(window,[{eventName:"click",fn:li,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,o.A)({isActive:function(){return ci({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return ln({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,o.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(cn)},moveRight:function(){return m(dn)},moveDown:function(){return m(un)},moveLeft:function(){return m(fn)}};return g({liftActionArgs:{id:a,clientSelection:ri(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var fi=[function(e){var t=(0,r.useRef)(Gr),n=(0,r.useRef)(de),i=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),u(i,o)}}}}}}),[e]),o=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Q((function(){n.current=fe(window,[o,i],{passive:!1,capture:!0})}),[o,i]),s=Q((function(){"IDLE"!==t.current.type&&(t.current=Gr,n.current(),a())}),[a]),l=Q((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Q((function(){var e=Yr({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=fe(window,e,{capture:!0,passive:!1})}),[l,s]),u=Q((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Cr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Qr),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var o=e.tryGetLock(r,l,{sourceEvent:n});if(o){n.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),i()}}}}),[e]),i=Q((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);Cr((function(){return i(),function(){t.current()}}),[i])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),i=Q((function(){return t.current}),[]),o=Q((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,l,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),f(i,a)}}}}}}),[e]),s=Q((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Q((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(Xr),n.current(),s())}),[s,o]),c=Q((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Q((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:i},r=fe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:Wr,fn:t}]}(t),e),o=fe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Wr,fn:t}]}(t),e);n.current=function(){r(),o()}}),[c,i,l]),d=Q((function(){var e=i();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),f=Q((function(e,t){"IDLE"!==i().type&&ge(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,i,o,d]);Cr((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(Xr))}}),[i,s,o]),Cr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function pi(e){var t=e.contextId,n=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?fi:[],o||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||ge(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ge(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Q((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Cr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),Cr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Q((function(e){return ui({lockAPI:l,registry:i,store:n,draggableId:e})}),[l,i,n]),d=Q((function(e,r,o){return di({lockAPI:l,registry:i,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,l,i,n]),f=Q((function(e){return function(e,t){var n=si(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Q((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),h=Q((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Q(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Br();for(var v=0;v<s.length;v++)s[v](g)}var hi=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function mi(e){return e.current||ge(!1),e.current}function gi(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=$r(e),d=Q((function(){return hi(u.current)}),[u]),f=function(e){var t=Y((function(){return jr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,o.A)(e.style,Dr),Rr().appendChild(e),function(){setTimeout((function(){var t=Rr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Q((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,i=zr("hidden-text",{separator:"-"}),o=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Rr().appendChild(e),function(){var t=Rr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Sr(e)}),[e]),i=(0,r.useRef)(null),o=(0,r.useRef)(null),a=Q((0,le.A)((function(e){var t=o.current;t||ge(!1),t.textContent=e})),[]),s=Q((function(e){var t=i.current;t||ge(!1),t.textContent=e}),[]);Cr((function(){(i.current||o.current)&&ge(!1);var r=Or(t),l=Or(t);return i.current=r,o.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),kr().appendChild(r),kr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),kr().removeChild(t),e.current=null};e(i),e(o)}}),[t,s,a,n.always,n.resting,e]);var l=Q((function(){return a(n.dragging)}),[a,n.dragging]),c=Q((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Q((function(){o.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Q((function(e){mi(c).dispatch(e)}),[]),v=Y((function(){return(0,a.zH)({publishWhileDragging:nn,updateDroppableScroll:on,updateDroppableIsEnabled:an,updateDroppableIsCombineEnabled:sn,collectionStarting:rn},g)}),[g]),y=function(){var e=Y(Ir,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return Kn(y,v)}),[y,v]),w=Y((function(){return vr((0,o.A)({scrollWindow:Yn,scrollDroppable:b.scrollDroppable},(0,a.zH)({move:ln},g)))}),[b.scrollDroppable,g]),x=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=Q((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=Q((function(t){var n=Ar(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Q((function(e,t){n.current===e&&(n.current=t)}),[]),c=Q((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Q((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return Cr((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Un({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:x,getResponders:d,styleMarshal:m})}),[f,w,b,x,d,m]);c.current=_;var E=Q((function(){var e=mi(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Q((function(){var e=mi(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var C=Q((function(e){return Gn(mi(c).getState(),e)}),[]),k=Q((function(){return Dt(mi(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:C,isMovementAllowed:k,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,C,k,y]);return pi({contextId:t,store:_,registry:y,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Fr.Provider,{value:O},r.createElement(p,{context:Pr,store:_},e.children))}var vi=0;function yi(e){var t=Y((function(){return""+vi++}),[]),n=e.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return r.createElement(ve,null,(function(i){return r.createElement(gi,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var bi=function(e){return function(t){return e===t}},wi=bi("scroll"),xi=bi("auto"),_i=(bi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Ei=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return _i(n,wi)||_i(n,xi)},Si=function e(t){return null==t||t===document.body||t===document.documentElement?null:Ei(t)?t:e(t.parentElement)},Ci=function(e){return{x:e.scrollLeft,y:e.scrollTop}},ki=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Oi=function(e){return{closestScrollable:Si(e),isFixedOnPage:ki(e)}},Ni=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=X({top:r,right:a,bottom:o,left:i},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=oe(u,i),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:oe(e,i),scroll:Ci(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=$n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ee,displacement:Ee}}}}(),u="vertical"===o?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:je({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p},Ti={passive:!1},Ai={passive:!0},Ii=function(e){return e.shouldPublishImmediately?Ti:Ai};function Pi(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Ri=function(e){return e&&e.env.closestScrollable||null};function Di(){}var ji={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Mi=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ji:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?xn.placeholder:null}};var Li=r.memo((function(e){var t=(0,r.useRef)(null),n=Q((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==i?(n(),u(!1),Di):t.current?Di:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):Di}),[i,c,n]);var d=Q((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),f=Mi({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),zi=r.createContext(null);var Fi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),Bi=5e3,Ui=4500,$i=function(e,t){return t?xn.drop(t.duration):e?xn.snap:xn.fluid},qi=function(e,t){return e?t?yn.drop:yn.combining:null};function Hi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(i),l=s?Sn(n,o):En(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:$i(a,i),transform:l,opacity:qi(o,s),zIndex:s?Ui:Bi,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vi(e){var t=zr("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Q((function(e){var t=o();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=ae(i,r),a=oe(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)}),[n,o]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);Cr((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),Cr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function Wi(e,t,n){Ur()}function Ki(e){e.preventDefault()}var Gi=function(e,t){return e===t},Yi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Zi={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qi(null)}};var Ji=V((function(){var e=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=Pt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,a,i.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==i.draggableId)return null;var f=i.isClone,p=r.dimensions.draggables[i.draggableId],h=d.result,m=h.mode,g=Yi(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:v?yn.drop:null,scale:v?bn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}}(),t=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)(Qi),n=(0,le.A)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ee,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ke(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;var d=Oe(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=o.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Zi}}),{dropAnimationFinished:gn},null,{context:Pr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useRef)(null),n=Q((function(e){t.current=e}),[]),i=Q((function(){return t.current}),[]),o=Pi(Fr),a=o.contextId,s=o.dragHandleUsageInstructionsId,l=o.registry,c=Pi(zi),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Wi(),Br(),y||Vi(Y((function(){return{descriptor:f,registry:l,getDraggableRef:i,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,i,v,g,m]));var x=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ki}:null}),[a,s,h,m]),_=Q((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=Y((function(){var e=Hi(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(E,b.snapshot,S)}));function Xi(e){return Pi(zi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Ji,e):null}function eo(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return r.createElement(Xi,(0,o.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))}var to=function(e,t){return e===t.droppable.type},no=function(e,t){return t.draggables[e.draggable.id]};var ro={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},io=V((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,o.A)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.A)((function(r,i,o,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!i)return t;if(!a)return e;var f={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!to(a,c))return t;var u=no(c,n.dimensions),d=Pt(n.impact)===o;return r(o,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!to(a,f.critical))return t;var p=no(f.critical,n.dimensions);return r(o,s,Yi(f.result)===o,Pt(f.impact)===o,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!to(a,h.critical))return t;var m=Pt(h.impact)===o,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===o;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Pr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,i=t.isMovementAllowed,o=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Q((function(){return o.current}),[]),w=Q((function(e){o.current=e}),[]),x=(Q((function(){return a.current}),[]),Q((function(e){a.current=e}),[]));Ur();var _=Q((function(){i()&&v({maxScroll:Hn()})}),[i,v]);!function(e){var t=(0,r.useRef)(null),n=Pi(Fr),i=zr("droppable"),o=n.registry,a=n.marshal,s=$r(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.A)((function(e,n){t.current||ge(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Q((function(){var e=t.current;return e&&e.env.closestScrollable?Ci(e.env.closestScrollable):Ee}),[]),f=Q((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=Q((function(){var e=t.current,n=Ri(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Q((function(e,r){t.current&&ge(!1);var i=s.current,o=i.getDroppableRef();o||ge(!1);var a=Oi(o),c={ref:o,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=Ni({ref:o,descriptor:l,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(_r.contextId,n.contextId),d.addEventListener("scroll",h,Ii(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Q((function(){var e=t.current,n=Ri(e);return e&&n||ge(!1),Ci(n)}),[]),v=Q((function(){var e=t.current;e||ge(!1);var n=Ri(e);t.current=null,n&&(p.cancel(),n.removeAttribute(_r.contextId),n.removeEventListener("scroll",h,Ii(e.scrollOptions)))}),[h,p]),y=Q((function(e){var n=t.current;n||ge(!1);var r=Ri(n);r||ge(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:i,descriptor:l,callbacks:b}}),[b,l,i]);Cr((function(){return c.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}}),[b,l,v,w,a,o.droppable]),Cr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Cr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var E=r.createElement(Fi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,i=e.data,o=e.animate;return r.createElement(Li,{placeholder:i,onClose:t,innerRef:x,animate:o,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),C=g?g.dragging.draggableId:null,k=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:C}}),[l,C,c]);return r.createElement(zi.Provider,{value:k},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Xi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return K.createPortal(n,y())}())}));io.defaultProps=ro},53577:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},53683:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},53850:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>g,X4:()=>h,i5:()=>c});var r=Symbol("NOT_FOUND");function i(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:i=s,maxSize:o=1,resultEqualityCheck:a}=n,c=l(i);let u=0;const d=o<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function i(e){const i=n.findIndex((n=>t(e,n.key)));if(i>-1){const e=n[i];return i>0&&(n.splice(i,1),n.unshift(e)),e.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e,t={}){let n=p();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f)l=t.v;else if(l=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.s=f,s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function m(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,l={},c=e.pop();"object"===typeof c&&(l=c,c=e.pop()),i(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=h,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,v=o(f),y=o(m),b=a(e),w=d((function(){return r++,c.apply(null,arguments)}),...v);const x=p((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var g=m(h),v=Object.assign(((e,t=g)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>v})},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},54090:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});let r=function(e){return e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red",e}({})},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(46878);function i(){return(0,r.w)().direction}},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>o,x$:()=>a});var r=n(92459),i=n(52531);const o={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:i.ml.overview,title:"Overview"},{id:i.ml.acl,title:"ACL"}],s=[{id:i.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},54353:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},54386:(e,t,n)=>{var r=n(12249),i=n(75125),o=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},54533:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(r),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},54573:(e,t,n)=>{var r=n(16320),i=n(72078),o=n(59698),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},54736:(e,t,n)=>{var r=n(61522),i=n(82121),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,p2:()=>L,U1:()=>F,In:()=>M,jC:()=>D});var r=n(97091),i=n(45264),o=n(19859),a=n(28197);const s=({href:e,singleClusterMode:t,customBackend:n})=>{if(t){if(n){var r;const t=null!==(r=new URL(e).searchParams.get("backend"))&&void 0!==r?r:void 0;return{basename:"/",backend:t||n}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var i,o;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(i=t.get("backend"))&&void 0!==i?i:void 0,clusterName:null!==(o=t.get("clusterName"))&&void 0!==o?o:void 0}}};var l=n(81463),c=n(21334),u=n(88610),d=n(49818),f=n(22735),p=n.n(f),h=n(96294),m=n.n(h),g=n(17148),v=n.n(g),y=n(74309),b=n.n(y),w=n(49526),x=n(93650),_=n(93694),E=n(92189),S=n(90565);const C={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.ue.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.ue.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.ue.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.ue.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function k(e,t){return v()({},e,t.query)}let O,N,T,A="";function I(e,t,n){const r=(0,E.stateToParams)(e,t,n);let{location:i}=r;if(i.search===A)return{location:n,shouldPush:!1};{const e=/\?\w+/;return A=i.search,e.test(n.search)&&(i=function(e,t){const{search:n,...r}=e,i=b().parse(t.search.slice(1)),o=(0,x.getMatchingDeclaredPath)(C,e),a=o&&C[o];p()(m()(a),(e=>{delete i[e]})),p()(m()(C.global||{}),(e=>{delete i[e]}));const s=b().stringify(i,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(i,n)),{...r,location:i}}}function P(e,t,n){return(r,i)=>{const o=((n,r)=>{const{type:i,payload:o}=r;if(!o)return n;if(w.LOCATION_POP===i||w.LOCATION_PUSH===i){const r=o;return r.query=(0,_.parseQuery)(e,o),t(n,r)}return n})(n(r,i),i);return o!==r?o:r}}function R(e,t,n,i){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,o.zx)(C,k,e,t,I);return{locationMiddleware:n,reducersWithLocation:P(C,k,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:!window.react_app_disable_checks&&{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:!window.react_app_disable_checks&&{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...i)});return(0,u.N8)(l),l}const D=window.web_version,j=window.custom_backend,M=window.meta_backend,L=window.code_assist_backend,z="undefined"===`${M}`;function F({aRootReducer:e=l.A,singleClusterMode:t=z,api:n=new a.i({webVersion:D,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,i.zR)({basename:N}),u=R(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,o.BL)(u,r),window.api=n,{history:r,store:u}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(59284),i=n(35719);const o=r.createContext({theme:i.z,activeMediaQuery:"s"})},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},55799:(e,t,n)=>{var r=n(74413),i=n(54353),o=n(72665),a=n(33120),s=n(99889);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},56029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(49526)},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),i=n(21334),o=n(20680);const a=(0,r.Z0)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=i.F.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async({clusterName:e},{signal:t,getState:n})=>{try{const r=window.api.meta?await window.api.meta.getTenants(e,{signal:t}):await window.api.viewer.getTenants(e,{signal:t});let i;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();i=(0,o.T3)(r.TenantInfo,e)}else i=[];return{data:i}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>R,r6:()=>D,lr:()=>w,ZV:()=>N,Nd:()=>C,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>k,ki:()=>O,Ey:()=>j,wI:()=>_,vN:()=>M,H7:()=>x,CR:()=>I,U9:()=>y});var r=n(14750),i=n(15619),o=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,i,o,a=!1){let l=t(Number(n)),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r)),c=a,u=1);return[e({value:n,withSizeLabel:c,size:i||l,precision:u,delimiter:o}),e({value:r,size:i||l,delimiter:o})]}var c=n(82621);const u={noUnit:{value:1,label:""},thousand:{value:1e3,label:(0,c.A)("label_thousand")},million:{value:1e6,label:(0,c.A)("label_million")},billion:{value:1e9,label:(0,c.A)("label_billion")},trillion:{value:1e12,label:(0,c.A)("label_trillion")}},d=e=>{let t="noUnit";return e>=u.thousand.value&&(t="thousand"),e>=u.million.value&&(t="million"),e>=u.billion.value&&(t="billion"),e>=u.trillion.value&&(t="trillion"),t},f=({value:e,size:t,withSizeLabel:n=!0,delimiter:r,...i})=>{if(!(0,s.kf)(e))return"";const o=Number(e),a=null!==t&&void 0!==t?t:d(o),l=(({value:e,size:t="thousand",precision:n=0})=>{const r=I(Number(e)/u[t].value,n);return N(r)})({value:o,size:a,...i});return n?((e,t,n=s.en)=>{const r=u[t].label;return r?e+n+r:e})(l,a,r):l};var p=n(48372);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"],"d":"d","s":"s"}'),m=(0,p.g4)("ydb-format-cpu",{en:h}),g=e=>(0,s.kf)(e)?(0,a.p)(e).format("0 b"):"",v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"";function b(e){if(!(0,s.kf)(e))return;const t=e<0?"-":"",n=(0,r.p0)(Math.abs(e),"s").rescale();let i;return i=Math.floor(n.asDays())>0?n.format(`d[${m("d")}${s.en}]hh:mm:ss`):n.hours()>0?n.format("h:mm:ss"):n.minutes()>0?n.format("m:ss"):n.format(`s[${m("s")}]`),t+i}const w=e=>b(Number(e)/1e3);function x(e,t){let n=E(e,t);return n=n<0?0:n,b(n)}function _(e,t){let n=E(e,t);return n=n<0?0:n,b(-n)}function E(e,t=(new Date).getTime()){return(Number(t)-Number(e))/1e3}function S(e,t,n,r,o){return l(i.z,i.f,e,t,n,r,o)}function C(e,t,n,r,i){return l(f,d,e,t,n,r,i)}const k=(e,t)=>S(e,t,"gb"),O=(e,t)=>S(e,t,"tb"),N=e=>(0,s.kf)(e)?(0,a.p)(e).format("0,0.[00000]"):"",T=(e,t=2)=>{if(!(0,s.kf)(e))return"";const n=Number(e).toFixed(t);return(0,a.p)(n).format("0.[00]%")},A=e=>{const t=(e/o.Jg).toFixed(2);return`${N(t)} hours`},I=(e,t=0)=>{const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},P=e=>{const t=Number(e)/1e6;return I(t,3)},R=e=>{if(void 0!==e)return(0,a.p)(P(e)).format("0.[000]")},D=(e,{withTimeZone:t,defaultValue:n=""}={})=>{var i;if(!Number(e))return n;const o=t?" z":"",a=null===(i=(0,r.bQ)(Number(e)))||void 0===i?void 0:i.format(`YYYY-MM-DD HH:mm${o}`);return null!==a&&void 0!==a?a:n},j=(e,t="")=>{var n;const i=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==i&&void 0!==i?i:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},56932:(e,t,n)=>{const r=n(22750).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},56993:function(e,t,n){var r,i,o;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,i=[t,n(59284),n(60712)],r=function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t=d(t),l(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=y(e,"string");return"symbol"==r(t)?t:t+""}function y(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var b={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},x={x:"innerWidth",y:"innerHeight"},_={x:"offsetWidth",y:"offsetHeight"},E={x:"offsetLeft",y:"offsetTop"},S={x:"overflowX",y:"overflowY"},C={x:"scrollWidth",y:"scrollHeight"},k={x:"scrollLeft",y:"scrollTop"},O={x:"width",y:"height"},N=function(){},T=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",N,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},A="ReactList failed to reach a stable state.",I=40,P=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},R=function(e){for(var t=e.props.axis,n=e.getEl(),r=S[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},D=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[x[t]]:n[b[t]]},j=function(e,t){var n=e.length,r=e.minSize,i=e.type,o=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(o="simple"!==i&&o?Math.max(Math.min(o,n-a),0):0)%s)&&(o-=l,a+=l),o===t.from&&a===t.size?t:m(m({},t),{},{from:o,size:a})},M=e.default=function(e){function t(e){var n;return i(this,t),(n=s(this,t,[e])).state=j(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>I)return this.unstable=!0,console.error(A);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(P(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.removeEventListener("mousewheel",N,T)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[w[t]]||0,r=E[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=k[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],i=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),o=Math.max(0,Math.min(r,i)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+o-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[k[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,i=C[this.props.axis];return e===window?Math.max(n[i],r[i]):e[i]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,i=r.itemSize,o=r.itemsPerRow;if(n&&i&&o)return{itemSize:i,itemsPerRow:o};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[_[t]],c=Math.abs(l-i);if((isNaN(c)||c>=1)&&(i=l),!i)return{};for(var u=E[t],d=s[u],f=a[o=1];f&&f[u]===d;f=a[o])++o;return{itemSize:i,itemsPerRow:o}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!==typeof e&&(e=N),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",N)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.addEventListener("mousewheel",N,T))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var i=this.props.axis,o=n[0],a=n[n.length-1];r=this.getOffset(a)+a[_[i]]-this.getOffset(o)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,i=this.props,o=i.length,a=i.pageSize,s=0,l=0,c=0,u=o-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=o-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(j(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var i=this.getStartAndEnd(),o=i.start,a=i.end,s=j(this.props,{from:Math.floor(o/n)*r,size:(Math.ceil((a-o)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,i=n.itemsPerRow;if(r)return t[e]=Math.floor(e/i)*r;for(var o=e;o>0&&null==t[--o];);for(var a=t[o]||0,s=o;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=_[this.props.axis],i=0,o=n.length;i<o;++i)e[t+i]=n[i][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,i=r.axis,o=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(o)return o(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[_[i]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),i=Math.min(r,n),o=Math.max(r,n);return t<=i?this.setScroll(i):t>o?this.setScroll(o):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,i=n.size,o=this.getStartAndEnd(0),a=o.start,s=o.end,l={},c=r;c<r+i;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,i=this.state,o=i.from,a=i.size,s=[],l=0;l<a;++l)s.push(n(o+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,i=t.length,o=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===o)return u;var d={position:"relative"},f={},p=Math.ceil(i/c)*c,h=this.getSpaceBefore(p,f);h&&(d[O[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return(0,n.jsx)("div",{style:d,ref:function(t){return e.el=t},children:(0,n.jsx)("div",{style:b,children:u})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=j(e,t);return n===t?null:n}}])}(t.Component);g(M,"displayName","ReactList"),g(M,"defaultProps",{axis:"y",itemRenderer:function(e,t){return(0,n.jsx)("div",{children:e},t)},itemsRenderer:function(e,t){return(0,n.jsx)("div",{ref:t,children:e})},length:0,minSize:1,pageSize:10,scrollParentGetter:R,scrollParentViewportSizeGetter:D,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},57467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[o.RLSCONFIG]&&e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]&&Object.keys(e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]).forEach((function(t){(0,o.overrideAccessors)(t,e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(i){var a=t.getState(),s=r(i),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,o.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,o){var s=function(n,o){var s=o.type,l=o.payload;if(s!==i.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,o),o);return s!==n?s:n}}};var i=n(49526),o=n(93650),a=n(93694),s=n(92189)},57491:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DurationImpl=void 0,t.isDuration=function(e){return p.isDuration(e)};var a=n(16244),s=n(77966),l=n(13064),c=n(16572),u=n(50743),d=n(49860),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:i(i({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),i=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var o=r+function(e){return 4800*e/146097}(n+i/864e5);switch(t){case"months":return o;case"quarters":return o/3;case"years":return o/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+i/6048e5;case"days":return a+i/864e5;case"hours":return 24*a+i/36e5;case"minutes":return 1440*a+i/6e4;case"seconds":return 86400*a+i/1e3;case"milliseconds":return Math.floor(864e5*a)+i;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),i=(0,u.createDuration)(t,n).toObject(),o=0,a=Object.entries(i);o<a.length;o++){var s=a[o],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?i({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,c.getLocaleData)(this._locale);return(0,a.fromTo)(this,t.relativeTime,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,i(i({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=o(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,x=a;w<x.length;w++){var _=x[w];if(_.literal)p+=_.value;else{var E=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,i(i({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),C=g?Math.floor(E):E;p+=S.format(C)}else{C=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(C<0?"-":"").concat(Math.abs(C).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},57855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){void 0===t&&(t={});if(!e)return;var n,i,a,s=t.roundUp,l=t.timeZone,c="";"now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(i=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,i),c=e.substring(i+2)),n=(0,r.dateTime)({input:a,timeZone:l}));if(!n.isValid())return;if(!c.length)return n;return o(c,n,s)},t.parseDateMath=o;var r=n(60166),i=["y","Q","M","w","d","h","m","s"];function o(e,t,n){for(var r=e.replace(/\s/g,""),o=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!i.includes(f))return;0===c?o=n?o.endOf(f):o.startOf(f):1===c?o=o.add(u,f):2===c&&(o=o.subtract(u,f))}return o}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},58351:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>r.Hs,In:()=>r.In,P8:()=>r.P8,SL:()=>r.SL,U1:()=>r.U1,d$:()=>i.d,jC:()=>r.jC,p2:()=>r.p2});var r=n(54878),i=n(81463)},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),i=n(76086),o=n(11822),a=n(41650);const s={[i.k4]:"system",[i.jS]:void 0,[i.TJ]:!1,[i.RY]:!0,[i.ld]:[],[i.Mt]:r.Dg.query,[i.zk]:o.x5.execute,[i.LQ]:!0,[i.bs]:[],[i.g5]:!1,[i.lr]:!1,[i.s2]:!0,[i.LK]:!0,[i.bz]:!0,[i.kO]:!0,[i.IO]:!0,[i.Gj]:!1,[i.av]:0,[i.iD]:!1,[i.Xm]:!1,[i.J0]:!1,[i.fr]:void 0,[i.YQ]:void 0,[i.c4]:o.jU};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,[t,n])=>(e[t]=this.readUserSettingsValue(t,n),e)),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.qF)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),i=n(78524),o=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(i.v,{name:"403"}),title:e||(0,o.A)("403.title"),description:t||(0,o.A)("403.description"),...n})},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},59495:(e,t,n)=>{const r=n(3309),i=n(84405),o=n(97763),a=n(1836);function s(e,t,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{const a=i.create(n,o);r(e(a,t,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{const r=i.create(n,o);a(null,e(r,t,o))}catch(u){a(u)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},59610:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Le.LQ,AUTOCOMPLETE_ON_ENTER:()=>Le.IO,AUTO_REFRESH_INTERVAL:()=>Le.av,AppSlots:()=>r,AsideNavigation:()=>Co,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Le.RY,CASE_SENSITIVE_JSON_SEARCH:()=>Le.iD,CLUSTER_DEFAULT_TITLE:()=>Le.QM,DAY_IN_SECONDS:()=>Le.tt,DEFAULT_CLUSTER_TAB_KEY:()=>Le.fY,DEFAULT_DANGER_THRESHOLD:()=>Le.Ed,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Le.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Le.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Le.jX,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Le.l_,DEFAULT_SIZE_TENANT_KEY:()=>Le.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Le.ED,DEFAULT_TABLE_SETTINGS:()=>Le.N3,DEFAULT_WARNING_THRESHOLD:()=>Le.Hh,DEVELOPER_UI_TITLE:()=>Le.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Le.U0,EMPTY_DATA_PLACEHOLDER:()=>Le.Pd,ENABLE_AUTOCOMPLETE:()=>Le.LK,ENABLE_CODE_ASSISTANT:()=>Le.bz,ENABLE_NETWORK_TABLE_KEY:()=>Le.g5,ENABLE_QUERY_STREAMING:()=>Le.kO,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>Le.J7,HOUR_IN_SECONDS:()=>Le.Jg,INVERTED_DISKS_KEY:()=>Le.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Le.Gj,KILOBYTE:()=>Le.eh,LANGUAGE_KEY:()=>Le.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Le.fr,LAST_USED_QUERY_ACTION_KEY:()=>Le.zk,Lang:()=>me.JA,MEGABYTE:()=>Le.pg,MINUTE_IN_SECONDS:()=>Le.r0,MS_IN_NANOSECONDS:()=>Le.zz,MultiClusterApp:()=>ea,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Le.bs,QUERIES_HISTORY_KEY:()=>Le.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>Le.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Le.YQ,QUERY_STOPPED_BANNER_CLOSED_KEY:()=>Le.J0,QUERY_TECHNICAL_MARK:()=>Le.Zi,SAVED_QUERIES_KEY:()=>Le.ld,SECOND_IN_MS:()=>Le.KF,SHOW_DOMAIN_DATABASE_KEY:()=>Le.Xm,SingleClusterApp:()=>Fo,TENANT_DEFAULT_TITLE:()=>Le.oK,TENANT_INITIAL_PAGE_KEY:()=>Le.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>Le.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Le.jp,TERABYTE:()=>Le.Db,THEME_KEY:()=>Le.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Le.s2,USE_SHOW_PLAN_SVG_KEY:()=>Le.lr,WEEK_IN_SECONDS:()=>Le.Du,YdbEmbeddedAPI:()=>na.i,appRoutes:()=>de.Ay,cn:()=>pe.cn,componentsRegistry:()=>Mo,configureStore:()=>ta.U1,getMonitoringClusterLink:()=>$o,getMonitoringLink:()=>Uo,getSettingValue:()=>ra.CN,getTabletLabel:()=>Le.bk,getUserSettings:()=>lt,i18n:()=>me.Ru,parseMonitoringData:()=>qo,registerKeysets:()=>me.g4,reportWebVitals:()=>oa.A,rootReducer:()=>ta.d$,setSettingValue:()=>ra.gc,settingsManager:()=>bo.f,toaster:()=>ia.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>En,ClustersSlot:()=>_n,NodeSlot:()=>Cn,PDiskPageSlot:()=>kn,RedirectSlot:()=>In,RoutesSlot:()=>An,StorageGroupSlot:()=>Nn,TabletSlot:()=>Tn,TenantSlot:()=>Sn,VDiskPageSlot:()=>On});var i=n(59284),o=n(61750),a=n(97434),s=n(82266),l=n(34271),c=n(78668),u=n(90182);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(99991),p=n(23871),h=n(28664),m=n(74417),g=n(87184),v=n(92209);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),x=n(81240),_=n(98089),E=n(84476),S={button_close:"Close"},C={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var k=(0,w.N)({en:S,ru:C},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),N=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:r=k("button_close"),onClose:o})=>i.createElement("div",{className:O({separator:n})},i.createElement(_.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),o&&i.createElement(E.$,{onClick:o,view:"flat",size:"l",extraProps:{"aria-label":r}},i.createElement(f.I,{data:x.A,size:t})));function T(e){const t=i.useRef();return i.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),i.useCallback(((...e)=>{if("function"===typeof t.current)return t.current(...e)}),[])}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t=""){const n=A(t).replace(/\s+/g,".*?");return P(e,"",new RegExp(n,"i"))}function P(e,t="",n){const r=[],o={};let a=!1,s=!1;return i.Children.forEach(e,(e=>{var l,c;if(i.isValidElement(e))if(e.type===i.Fragment){const{menu:i,pages:a}=P(e.props.children,t,n);r.push(...i),Object.assign(o,a)}else if(e.props.groupTitle){0;const i=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=P(e.props.children,i,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(o,c)}else{s=!0;const i=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[i]=R(e.props.children,n),o[i].id=i,r.push({id:i,title:e.props.title,icon:e.props.icon,withBadge:o[i].withBadge,disabled:o[i].hidden})}})),{menu:r,pages:o}}function R(e,t){const n={id:"",sections:[],hidden:!0};return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const{sections:r,withBadge:i,hidden:o}=R(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r,showTitle:i=!0}=e.props,{items:o,hidden:a}=D(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:o,hidden:a,showTitle:i}))}})),n}function D(e,t){let n=!0;const r=[];return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const i=D(e.props.children,t);r.push(...i.items),n=n&&i.hidden}else{const i=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(i),n=n&&i.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=i.createContext({});function M(e,t){const n=i.useRef(null);return i.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=i.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[o,a]=i.useState(),s=i.useRef(null),l=T(t),c=function(e){const t=i.useRef(e);return t.current=e,i.useCallback((()=>t.current),[])}(o);return i.useImperativeHandle(r,(()=>({handleKeyDown(e){if(!s.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(a($(s.current,t,1)),!0):"ArrowUp"===e.key&&(a($(s.current,t,-1)),!0)},clearFocus(){a(void 0)}})),[c,l]),i.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?i.createElement("div",{key:e.groupTitle,className:F("group")},i.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,o)))):U(e,t,n,o))))}));function U(e,t,n,r){return i.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?i.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,i.createElement("span",null,e.title))}function $(e,t,n){var r;const i=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,(e=>e.getAttribute("data-id")===t))),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const q=(0,v.b)("settings-menu-mobile"),H=({items:e,onChange:t,activeItemId:n,className:r})=>{const o=i.useRef(null),a=i.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:q("item",{badge:r})}))));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:q("item",{badge:o})})}})),t}),[e]);return i.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},i.createElement(p.t,{items:a,className:q(null,r),size:"l",activeTab:n,onSelectTab:t}))};var V={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},W={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var K=(0,w.N)({en:V,ru:W},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:o,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=i.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return i.createElement("div",{className:G(null,e)},i.createElement(h.k,{value:c,controlRef:o,hasClear:!0,autoFocus:l,size:a,placeholder:s,onUpdate:f,controlProps:{"aria-label":K("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section_only-child:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section_only-child:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Q=(0,v.b)("settings"),Z=i.createContext({}),J=()=>i.useContext(Z);function X(e){var{loading:t,renderLoading:n,children:r,view:o="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?i.createElement("div",{className:Q({loading:!0,view:o})},"function"===typeof n?n():i.createElement(m.a,{className:Q("loader"),size:"m"})):i.createElement(Z.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},i.createElement(te,Object.assign({view:o},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te({initialPage:e,initialSearch:t,selection:n,children:r,renderNotFound:o,title:a=K("label_title"),filterPlaceholder:s=K("label_filter-placeholder"),emptyPlaceholder:l=K("label_empty-placeholder"),view:c,onPageChange:u,onClose:d}){var f,p;const{renderSectionRightAdornment:h,showRightAdornmentOnHover:m}=J(),[v,y]=i.useState(null!==t&&void 0!==t?t:""),{menu:b,pages:w}=I(r,v),x=M(w,n),_=Object.keys(w),E=x.page&&_.includes(x.page.id)?x.page.id:void 0,[S,C]=i.useState(E||(e&&_.includes(e)?e:void 0)),k=i.useRef(null),O=i.useRef(null),T="mobile"===c;i.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),i.useEffect((()=>{const e=()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let A=S;A&&!(null===(f=w[A])||void 0===f?void 0:f.hidden)||(A=null===(p=Object.values(w).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const P=e=>{C((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};i.useEffect((()=>{A!==S&&P(A)})),i.useEffect((()=>{E&&C(E)}),[E]),i.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const R=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(x,e,t);return i.createElement("div",{key:t.title,className:Q("section",{selected:n,"only-child":t.onlyChild}),ref:n?x.selectedRef:void 0},t.showTitle&&i.createElement("h3",{className:Q("section-heading")},h?i.createElement(g.s,{gap:2,alignItems:"center"},t.title,i.createElement("div",{className:Q("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?i.createElement("div",{className:Q("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>i.createElement("div",{key:e,className:Q("section-item")},i.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return i.createElement(L,{value:x},i.createElement("div",{className:Q({view:c})},T?i.createElement(i.Fragment,null,i.createElement(Y,{inputRef:k,className:Q("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),i.createElement(H,{items:b,onChange:P,activeItemId:A,className:Q("tabs")})):i.createElement("div",{className:Q("menu"),onClick:()=>{k.current&&k.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},i.createElement(N,null,a),i.createElement(Y,{inputRef:k,className:Q("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),i.createElement(B,{ref:O,items:b,onChange:P,activeItemId:A})),i.createElement("div",{className:Q("page")},(e=>{if(!e)return"function"===typeof o?o():i.createElement("div",{className:Q("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return i.createElement(i.Fragment,null,!T&&i.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),i.createElement("div",{className:Q("content")},t.map((t=>R(e,t)))))})(A))))}function ne(e,t){let n=e.slice(0);const r=[],o=A(t).split(" ").filter(Boolean);let a=0;for(const s of o){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],o=e.index;o>0&&r.push(n.slice(0,o)),r.push(i.createElement("strong",{key:a++,className:Q("found")},t)),n=n.slice(o+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Page=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Section=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:o,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=i.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=i.createElement("span",{className:Q("item-title",{badge:s})},l(r));return i.createElement("div",{className:Q("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},i.createElement("label",{className:Q("item-heading"),id:n},p?i.createElement(g.s,{className:Q("item-title-wrapper"),gap:3},m,i.createElement("div",{className:Q("item-right-adornment",{hidden:h})},p(e))):m,u?i.createElement("span",{className:Q("item-description")},u):null),i.createElement("div",{className:Q("item-content")},o))};var re=n(85589),ie=n(44433),oe=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:i})=>{const[o,a]=(0,u.iK)(t,r),s=e=>{a(e),null===i||void 0===i||i()};switch(e){case"switch":return(0,oe.jsx)(re.d,{checked:Boolean(o),onUpdate:s});case"radio":return n?(0,oe.jsx)(ie.a,{value:String(o),onUpdate:s,children:n.map((({value:e,content:t})=>(0,oe.jsx)(ie.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,oe.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:i=[],showTitle:o}=e;return(0,oe.jsx)(X.Page,{id:t,title:n,icon:r,children:i.map((e=>{const{title:n,settings:r=[]}=e;return(0,oe.jsx)(X.Section,{title:n,showTitle:null===o||void 0===o||o,children:r.map((e=>{if("info"===e.type)return(0,oe.jsx)(X.Item,{...e,children:e.content},e.title);const{description:t,...n}=e;return(0,oe.jsxs)(X.Item,{align:"top",...n,children:[(0,oe.jsx)(ae,{...e}),(0,oe.jsx)(_.E,{color:"secondary",as:"div",children:t})]},e.title)}))},t)}))},t)}))}),le=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06zM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"})),ce=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06zM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3z",clipRule:"evenodd"}));var ue=n(10755),de=n(92459),fe=n(67028),pe=n(77506),he=n(28232),me=n(48372);const ge=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),ve=(0,me.g4)("ydb-aside-navigation",{en:ge}),ye=(0,pe.cn)("kv-ydb-internal-user");function be({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,fe.li)(),r=(0,he.J)(),i=(0,ue.W6)(),o=()=>{i.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href),database:r}))};return(0,oe.jsxs)("div",{className:ye(),children:[(0,oe.jsxs)("div",{className:ye("user-info-wrapper"),children:[(0,oe.jsx)("div",{className:ye("ydb-internal-user-title"),children:ve("account.user")}),e&&(0,oe.jsx)("div",{className:ye("username"),children:e})]}),e?(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.logout"),onClick:()=>{t(void 0)},children:(0,oe.jsx)(f.I,{data:ce})}):n?null:(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.login"),onClick:o,children:(0,oe.jsx)(f.I,{data:le})})]})}function we({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,oe.jsx)(n,{settings:(0,oe.jsx)(se,{settings:t}),ydbInternalUser:(0,oe.jsx)(be,{login:r}),user:r?{login:r}:void 0,content:e})}const xe={top:0,right:0,bottom:0,left:0};var _e=n(39238),Ee=n(49818),Se=n(80176);const Ce=(0,pe.cn)("node-tootltip"),ke=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Ce(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"ID"}),(0,oe.jsx)("td",{className:Ce("value"),children:t.nodeId||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"Rack"}),(0,oe.jsx)("td",{className:Ce("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"Net"}),(0,oe.jsx)("td",{className:Ce("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,pe.cn)("histogram-tooltip"),Ne=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Oe(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"Count"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.count||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"From"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.leftBound||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"To"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.rightBound||"?"})]})]})})})},Te=(0,pe.cn)("cell-tooltip"),Ae={tablet:e=>(0,oe.jsx)(Se.nL,{data:e}),node:e=>(0,oe.jsx)(ke,{data:e}),histogram:e=>(0,oe.jsx)(Ne,{data:e}),cell:e=>(0,oe.jsx)("div",{className:Te(),children:e})};const Ie=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:i,additionalData:o,positions:a}=e.tooltip,{popupClassName:s}=o||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:Ae[i],additionalData:o,positions:a,popupClassName:s}}),{hideTooltip:Ee.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=i.useRef(xe),o=i.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:i}=r.current;return{top:e,right:t,bottom:n,left:i,width:t-i,height:n-e}}});if(o.current.contextElement=n,t){const{top:e=0,left:n=0,right:i=n,bottom:o=e}=t;r.current={top:e,right:i,bottom:o,left:n}}else r.current=xe;return o}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),o=i.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);i.useEffect((()=>(window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o)})),[o]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,oe.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,o,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(_e.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:o&&s(o,a)})})})(s,0,c,u):((t,n,r,i)=>{const{template:o,popupClassName:a,hideTooltip:s}=e;return(0,oe.jsx)(_e.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&o(r,i)})})(s,l,c,u)})})),Pe=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268z"})),Re=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.85 1.85 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8M8 .5c2 0 2.25 1 2.25 1.5v3.39q0 .11.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.35.35 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5m.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04",clipRule:"evenodd"})),De=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.9.9 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.9.9 0 0 0-.632.262l-2 2zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378m2.558.199a3.14 3.14 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38zM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25",clipRule:"evenodd"}));var je=n(43937),Me=n(90754),Le=n(76086);const ze=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\'re always able to get suggestions by pressing Ctrl+Space.","settings.editor.codeAssistant.title":"Code Assistant","settings.editor.codeAssistant.description":"Use Code Assistant for autocomplete.","settings.editor.queryStreaming.title":"Query Streaming","settings.editor.queryStreaming.description":"Use streaming api for query results.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),Fe=(0,me.g4)("ydb-user-settings",{en:ze});var Be=n(8330);const Ue=[{value:"system",content:Fe("settings.theme.option-system")},{value:"light",content:Fe("settings.theme.option-light")},{value:"dark",content:Fe("settings.theme.option-dark")}],$e={settingKey:Le.k4,title:Fe("settings.theme.title"),type:"radio",options:Ue},qe=(me.JA.Ru,Fe("settings.language.option-russian"),me.JA.En,Fe("settings.language.option-english"),Le.jS,Fe("settings.language.title"),me.oK,{settingKey:Le.RY,title:Fe("settings.binaryDataInPlainTextDisplay.title")}),He={settingKey:Le.TJ,title:Fe("settings.invertedDisks.title")},Ve={settingKey:Le.g5,title:Fe("settings.enableNetworkTable.title")},We={settingKey:Le.lr,title:Fe("settings.useShowPlanToSvg.title"),description:Fe("settings.useShowPlanToSvg.description")},Ke={settingKey:Le.Xm,title:Fe("settings.showDomainDatabase.title")},Ge={settingKey:Le.s2,title:Fe("settings.useClusterBalancerAsBackend.title"),description:Fe("settings.useClusterBalancerAsBackend.description")},Ye={settingKey:Le.LK,title:Fe("settings.editor.autocomplete.title"),description:Fe("settings.editor.autocomplete.description")},Qe={settingKey:Le.bz,title:Fe("settings.editor.codeAssistant.title"),description:Fe("settings.editor.codeAssistant.description")},Ze={settingKey:Le.kO,title:Fe("settings.editor.queryStreaming.title"),description:Fe("settings.editor.queryStreaming.description")},Je={settingKey:Le.IO,title:Fe("settings.editor.autocomplete-on-enter.title"),description:Fe("settings.editor.autocomplete-on-enter.description")},Xe={title:Fe("settings.about.interfaceVersionInfoField.title"),type:"info",content:Be.rE},et={id:"appearanceSection",title:Fe("section.appearance"),settings:[$e,He,qe,Ke]},tt={id:"experimentsSection",title:Fe("section.experiments"),settings:[Ve,We,Ze]},nt={id:"devSettingsSection",title:Fe("section.dev-setting"),settings:[Ye,Je]},rt={id:"aboutSettingsSection",title:Fe("section.about"),settings:[Xe]},it={id:"generalPage",title:Fe("page.general"),icon:{data:Pe,height:14,width:14},sections:[et],showTitle:!1},ot={id:"experimentsPage",title:Fe("page.experiments"),icon:{data:Re},sections:[tt],showTitle:!1},at={id:"editorPage",title:Fe("page.editor"),icon:{data:De},sections:[nt]},st={id:"aboutPage",title:Fe("page.about"),icon:{data:je.A},sections:[rt],showTitle:!1};function lt({singleClusterMode:e,codeAssistantConfigured:t}){const n=e?ot:(0,Me.jM)(ot,(e=>{e.sections[0].settings.push(Ge)})),r=t?(0,Me.jM)(at,(e=>{e.sections[0].settings.push(Qe)})):at;return[it,r,n,st]}var ct=n(59109),ut=n(64689),dt=n(98167);function ft(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function pt(e){return"function"===typeof e&&"__slotName"in e}class ht{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,i.Children.forEach(e,(e=>{if(n=e,i.isValidElement(n)&&pt(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!pt(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var mt=n(24600),gt=n(99006);const vt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.2 8.2 0 0 0 .5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.585a8.21 8.21 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.7 6.7 0 0 0 1.87 7.486L1.641 8l.23.515a6.71 6.71 0 0 0 8.947 3.363M6.55 7.611A1.502 1.502 0 0 0 8.389 9.45zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784m5.92 3.508a6.7 6.7 0 0 1-.915 1.496l1.065 1.066A8.2 8.2 0 0 0 15.5 9.125l.26-.585a1.33 1.33 0 0 0 0-1.08l-.26-.584A8.21 8.21 0 0 0 5.572 2.37L6.81 3.61a6.71 6.71 0 0 1 7.32 3.877l.228.514z",clipRule:"evenodd"})),yt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.33 1.33 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}));var bt,wt,xt=n(67884);function _t(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(null,arguments)}const St=function(e){return i.createElement("svg",Et({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),bt||(bt=i.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),wt||(wt=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},Ct=(0,pe.cn)("authentication");const kt=function({closable:e=!1}){var t;const n=(0,ue.W6)(),r=(0,ue.zy)(),o=(0,fe.S_)(),[a,{isLoading:s}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:l,database:u}=(0,de.mA)(r),[d,p]=i.useState(""),[m,g]=i.useState(null!==(t=null===u||void 0===u?void 0:u.toString())&&void 0!==t?t:""),[v,y]=i.useState(""),[b,w]=i.useState(""),[_,S]=i.useState(""),[C,k]=i.useState(""),[O,N]=i.useState(!1),T=()=>{a({user:d,password:v,database:m}).unwrap().then((()=>{if(l){const e=decodeURIComponent(l.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}})).catch((e=>{(function(e){return _t(e)&&e.data.error.includes("user")})(e)&&w(e.data.error),function(e){return _t(e)&&e.data.error.includes("password")}(e)&&S(e.data.error),function(e){return _t(e)&&e.data.error.includes("database")}(e)&&k(e.data.error)}))},A=e=>{13===e.keyCode&&T()};return(0,oe.jsxs)("section",{className:Ct(),children:[(0,oe.jsxs)("form",{className:Ct("form-wrapper"),children:[(0,oe.jsxs)("div",{className:Ct("header"),children:[(0,oe.jsxs)("div",{className:Ct("logo"),children:[(0,oe.jsx)(f.I,{data:St,size:24}),"YDB"]}),(0,oe.jsx)(xt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,oe.jsx)("h2",{className:Ct("title"),children:"Sign in"}),(0,oe.jsx)("div",{className:Ct("field-wrapper"),children:(0,oe.jsx)(h.k,{value:d,onUpdate:e=>{p(e),w("")},placeholder:"Username",error:b,onKeyDown:A,size:"l",autoFocus:!0})}),(0,oe.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,oe.jsx)(h.k,{value:v,onUpdate:e=>{y(e),S("")},type:O?"text":"password",placeholder:"Password",error:_,onKeyDown:A,size:"l"}),(0,oe.jsx)(E.$,{onClick:()=>{N((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,oe.jsx)(f.I,{data:O?vt:yt,size:16})})]}),o&&(0,oe.jsx)("div",{className:Ct("field-wrapper"),children:(0,oe.jsx)(h.k,{value:m,onUpdate:e=>{g(e),k("")},placeholder:"Database",error:C,onKeyDown:A,size:"l"})}),(0,oe.jsx)(E.$,{view:"action",onClick:T,width:"max",size:"l",disabled:Boolean(!d||b||_),loading:s,className:Ct("button-sign-in"),children:"Sign in"})]}),e&&n.length>1&&(0,oe.jsx)(E.$,{onClick:()=>{n.go(-1)},className:Ct("close"),children:(0,oe.jsx)(f.I,{data:x.A,size:24})})]})};var Ot=n(87842),Nt=n(49917),Tt=n(112),At=n(69220);const It=(0,At.om)("divider"),Pt=i.forwardRef((function(e,t){const{orientation:n="horizontal",className:r,style:o,qa:a,children:s,align:l="start"}=e;return i.createElement("div",{className:It({orientation:n,align:l},r),ref:t,style:o,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Rt=n(61758),Dt=n.n(Rt);const jt=(0,At.om)("breadcrumbs");function Mt(e){return i.createElement("button",Object.assign({},e,{type:"button",className:jt("switcher",{more:!0})}))}const Lt=(0,At.om)("breadcrumbs");const zt=i.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:o}){const a=r?r(e,t,n):e.text;if(o)return o({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?i.createElement(xt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Lt("item",{"prev-current":n})},a):i.createElement(Mt,{key:e.text,title:s,onClick:e.action},a):i.createElement("div",{title:s,className:Lt("item",{current:!0})},a)}));zt.displayName="Breadcrumbs.Item";var Ft=n(40569);const Bt=JSON.parse('{"label_more":"Show more"}'),Ut=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),$t=(0,w.N)({en:Bt,ru:Ut},"Breadcrumbs"),qt=(0,At.om)("breadcrumbs");function Ht({popupStyle:e,popupPlacement:t,items:n}){return i.createElement(Ft.r,{items:n,popupProps:{className:qt("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>i.createElement(Mt,{title:$t("label_more"),onClick:e},"...")})}Ht.displayName="Breadcrumbs.More";const Vt=(0,At.om)("breadcrumbs");function Wt({renderItemDivider:e}){return i.createElement("div",{"aria-hidden":!0,className:Vt("divider")},e?e():"/")}Wt.displayName="Breadcrumbs.Separator";const Kt=(0,At.om)("breadcrumbs");var Gt,Yt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Gt||(Gt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Yt||(Yt={}));class Qt extends i.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Qt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Qt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Dt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=i.createRef(),this.state=Qt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return i.createElement("div",{className:Kt({calculated:n?"yes":"no"},e),"data-qa":t},i.createElement("div",{className:Kt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return i.createElement(zt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return i.createElement(Wt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,o=t===n.length-2;return i.createElement(i.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,o))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return i.createElement(i.Fragment,null,i.createElement(Wt,{renderItemDivider:r}),i.createElement(Ht,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let i=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&i>0){i+=4;const e=Array.from(this.container.current.querySelectorAll(`.${Kt("divider")}`)),o=[...Array.from(this.container.current.querySelectorAll(`.${Kt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Kt("item")}`))],a=o.map(((e,t)=>e.scrollWidth+(t===o.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,i)=>{const o=i.length-1===r,a=n===Gt.Two&&i.length-2===r;return o||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>i&&c<o.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Qt.defaultProps={popupPlacement:["bottom","top"]};var Zt=n(35544),Jt=n(44294),Xt=n(67157),en=n(31684),tn=n(12888);const nn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3 3 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4m-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})),rn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888s-.071-.513-.885-.888S9.538 2.5 8 2.5s-2.799.237-3.615.612C3.57 3.487 3.5 3.826 3.5 4s.071.513.885.888S6.462 5.5 8 5.5s2.799-.237 3.615-.612m.885 1.235C11.4 6.708 9.792 7 8 7s-3.4-.292-4.5-.877V8c0 .174.071.513.885.888S6.462 9.5 8 9.5s2.799-.237 3.615-.612c.814-.375.885-.714.885-.888zm0 4C11.4 10.708 9.792 11 8 11s-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613s2.799-.236 3.615-.613c.814-.374.885-.713.885-.887zM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3z",clipRule:"evenodd"})),on=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134M15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18m-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),an=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})),sn=(0,pe.cn)("tablet-icon"),ln=({text:e,className:t})=>(0,oe.jsx)("div",{className:sn(null,t),children:(0,oe.jsx)("div",{className:sn("type"),children:e||"T"})});var cn=n(52531),un=n(29819),dn=n(54309);const fn=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group","connect":"Connect"}'),pn=(0,me.g4)("ydb-header",{en:fn}),hn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||Le.QM,link:(0,Ot.a)(r,t),icon:(0,oe.jsx)(nn,{})}]},mn=(e,t={})=>{const{tenantName:n}=e,r=hn(e,t),i=n?(e=>e.startsWith("/")?e.slice(1):e)(n):pn("breadcrumbs.tenant"),o={text:i,link:n?(0,dn.YL)({...t,database:n}):void 0,icon:(0,oe.jsx)(rn,{})};return r.push(o),r},gn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:i,tenantName:o}=e,a=(s="tablets"===i?"tablets":"nodes",{[cn.Dt]:cn.Dg.diagnostics,[dn.vh.diagnosticsTab]:cn.iJ[s]});var s;const l=o?mn(e,{...t,...a}):hn(e,t);let c=pn("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,un.vI)(n,{database:o,...t},i):void 0,icon:vn(r)};return l.push(u),l};function vn(e){switch(e){case"Storage":return(0,oe.jsx)(on,{});case"Compute":return(0,oe.jsx)(an,{});default:return}}const yn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:i}=e,o=gn({...e,nodeRole:null!==i&&void 0!==i?i:"Storage"});let a=pn("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return o.push(s),o},bn={cluster:hn,node:gn,pDisk:yn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:i}=e,o=i?mn(e,t):hn(e,t),a={text:n||pn("breadcrumbs.tablet"),icon:(0,oe.jsx)(ln,{text:(0,Le.bk)(r)})};return o.push(a),o},tenant:mn,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=yn(e,t);let i=pn("breadcrumbs.vDisk");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=hn(e,t);let i=pn("breadcrumbs.storageGroup");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r}},wn=(0,pe.cn)("header");const xn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,tn.X)(),o=(0,Xt.Zd)(),a=(0,he.J)(),s="/tenant"===(0,ue.zy)().pathname,l=o.title||o.name,c=i.useMemo((()=>{const r=[];let i=n;e&&r.push(e),l&&(i={...i,clusterName:l});const o=((e,t,n=[],r={})=>{if(!e)return n;const i=(0,bn[e])(t,r);return[...n,...i]})(t,i,r);return o.map((e=>({...e,action:()=>{}})))}),[l,e,t,n]),d=()=>{const e=[];return s&&a&&e.push((0,oe.jsxs)(E.$,{view:"flat",onClick:()=>(0,Zt.S)({database:a}),children:[(0,oe.jsx)(f.I,{data:Nt.A}),pn("connect")]})),r&&e.push((0,oe.jsxs)(E.$,{view:"flat",href:(0,en.Un)(),target:"_blank",children:[Le.T5,(0,oe.jsx)(f.I,{data:Tt.A})]})),e.length?(0,oe.jsx)(g.s,{direction:"row",gap:1,children:e.map(((t,n)=>(0,oe.jsxs)(i.Fragment,{children:[t,n===e.length-1?null:(0,oe.jsx)(Pt,{orientation:"vertical"})]},n)))}):null};return(0,oe.jsxs)("header",{className:wn(),children:[(0,oe.jsx)(Qt,{items:c,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:wn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:i}=e;return(0,oe.jsxs)(Jt.E,{className:wn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:i,children:[n?(0,oe.jsx)("span",{className:wn("breadcrumbs-icon"),children:n}):null,(0,oe.jsx)("span",{children:r})]})}}),d()]})},_n=ft("clusters"),En=ft("cluster"),Sn=ft("tenant"),Cn=ft("node"),kn=ft("pDisk"),On=ft("vDisk"),Nn=ft("storageGroup"),Tn=ft("tablet"),An=ft("routes"),In=ft("redirect"),Pn=JSON.parse('{"pages.clusters":"All clusters"}'),Rn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Dn=(0,me.g4)("ydb-app-content",{ru:Rn,en:Pn}),jn=(0,pe.cn)("app"),Mn=[{path:de.Ay.cluster,slot:En,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(56013),n.e(88669),n.e(99796),n.e(58705),n.e(47293),n.e(47512)]).then(n.bind(n,14188))),"Cluster"),wrapper:Bn},{path:de.Ay.tenant,slot:Sn,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(56013),n.e(59172),n.e(66820),n.e(58884),n.e(99796),n.e(47293),n.e(64464)]).then(n.bind(n,2167))),"Tenant"),wrapper:Bn},{path:de.Ay.node,slot:Cn,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(56013),n.e(99796),n.e(58705),n.e(65824),n.e(96079)]).then(n.bind(n,13758))),"Node"),wrapper:Bn},{path:de.Ay.pDisk,slot:kn,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(56013),n.e(99796),n.e(58705),n.e(65824),n.e(38527)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:Bn},{path:de.Ay.vDisk,slot:On,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(56013),n.e(99796),n.e(58705),n.e(65824),n.e(85917)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:Bn},{path:de.Ay.storageGroup,slot:Nn,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(56013),n.e(99796),n.e(58705),n.e(75510)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:Bn},{path:de.Ay.tablet,slot:Tn,component:(0,gt._)((()=>Promise.all([n.e(71867),n.e(59172),n.e(49393)]).then(n.bind(n,81342))),"Tablet"),wrapper:Bn}],Ln=(0,gt._)((()=>Promise.all([n.e(71867),n.e(24130),n.e(23779)]).then(n.bind(n,48288))),"Clusters");function zn(e,t){return(0,oe.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const o=e.get(t.slot);let a;if(o)a="function"===typeof o.rendered?o.rendered({component:t.component,...n}):o.rendered;else{const e=t.component;a=(0,oe.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:i.Fragment;return(0,oe.jsx)("main",{className:jn("main"),children:(0,oe.jsx)(s,{children:a})})}},t.path)}function Fn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return i.useMemo((()=>new ht(t)),[t])}(e),o=r.get(An),a=r.get(In),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ot.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Dn("pages.clusters"),link:de.Ay.clusters}),(0,oe.jsxs)(ue.dO,{children:[n?null:zn(r,{path:de.Ay.clusters,exact:!0,component:Ln,slot:_n}),null===o||void 0===o?void 0:o.rendered,(0,oe.jsxs)(ue.qh,{children:[(0,oe.jsx)(xn,{mainPage:l}),(0,oe.jsxs)(ue.dO,{children:[Mn.map((e=>zn(r,e))),(0,oe.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,oe.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function Bn({children:e}){return(0,oe.jsx)(qn,{children:(0,oe.jsxs)(Un,{children:[(0,oe.jsx)($n,{}),(0,oe.jsx)(qn,{children:e})]})})}function Un({children:e}){const t=(0,he.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,oe.jsx)(dt.r,{loading:n,size:"l",children:(0,oe.jsx)(ut.A,{error:r,children:e})})}function $n(){return mt.m.useGetNodesListQuery(void 0),null}function qn({children:e}){(0,fe.e5)();const t=(0,fe.Pm)();(0,fe.x6)();const n=(0,fe.qz)();return(0,oe.jsx)(dt.r,{loading:!t||!n,size:"l",children:e})}const Hn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e,r=(0,fe.li)();return(0,oe.jsxs)(ue.dO,{children:[!r&&(0,oe.jsx)(ue.qh,{path:de.Ay.auth,children:(0,oe.jsx)(kt,{closable:!0})}),(0,oe.jsx)(ue.qh,{children:(0,oe.jsx)("div",{className:jn({embedded:t}),children:n?e.children:r?(0,oe.jsx)(ct.O,{}):(0,oe.jsx)(kt,{})})})]})}));var Vn=n(16332),Wn=n(69118),Kn=n(67087);const Gn=({children:e})=>{(0,ue.zy)();const t=(0,ue.W6)();return e({replace(e){t.replace(e.search||"?",e.state)},push(e){t.push(e.search||"?",e.state)},get location(){return t.location}})},Yn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10s3.162.44 4.18 1.041c1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1m5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4",clipRule:"evenodd"}));var Qn=n(73633),Zn=n(27738),Jn=n(98392),Xn=n(18650),er=n(40091);const tr=i.createContext(void 0);tr.displayName="AsideHeaderInnerContext";const nr=tr.Provider,rr=()=>{const e=i.useContext(tr);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},ir=i.createContext({compact:!1,size:0});ir.displayName="AsideHeaderContext";const or=ir.Provider,ar=()=>{const e=i.useContext(ir);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e};var sr=n(7450);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const lr=(0,v.b)("composite-bar-highlighted-item"),cr=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:o}=rr(),[{top:a,left:s,width:l,height:c},u]=(0,i.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,i.useState)(!1),p=(0,i.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})}),200,{leading:!0})),[e]),h=(0,i.useCallback)((()=>p()),[p]);return(0,i.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===o||void 0===o||o((e=>{f(e)})),t&&d?i.createElement(Jn.Z,null,i.createElement("div",{className:lr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},i.createElement("div",{className:lr("icon")},t))):null};cr.displayName="HighlightedItem";const ur="collapse-item-id",dr=["right-start","right-end","right"];function fr(e){if(!mr(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function pr(e){return e.reduce(((e,t)=>e+fr(t)),0)}function hr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function mr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;min-width:0;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const gr=(0,v.b)("composite-bar-item");function vr(e){let t=i.createElement("div",{className:gr("title-text")},e.title);return e.rightAdornment&&(t=i.createElement(i.Fragment,null,t,i.createElement("div",{className:gr("title-adornment")},e.rightAdornment))),t}const yr=["right-end"],br=[-20,8],wr=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:o,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=yr,popupOffset:d=br,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=ar(),[_,E]=i.useState(!1),S=i.useRef(null),C=c||S,k=i.useRef(null),O=t.type||"regular",N=t.current||!1,T=t.tooltipText||t.title,A=t.icon,I=t.iconSize||18,P=t.iconQa,R=t.id===ur,D=i.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:x},phase:"main",fn(){}}]),[x]),j=i.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return i.createElement("div",{className:gr("menu-divider")});const M=e=>x?i.createElement(Xn.m,{title:"",description:T,disabled:!s||R&&_||l,placement:"right",className:gr("icon-tooltip",{"item-type":O})},i.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===o||void 0===o?void 0:o(),className:gr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=i.createElement(i.Fragment,null,i.createElement("div",{className:gr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{R?(E(!_),null===b||void 0===b||b()):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{x||null===a||void 0===a||a()},onMouseLeave:()=>{x||null===o||void 0===o||o()}},i.createElement("div",{className:gr("icon-place"),ref:k},M(e)),i.createElement("div",{className:gr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===C||void 0===C?void 0:C.current)&&i.createElement(_e.z,{contentClassName:gr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:C,onClose:j,modifiers:D},m()));return t.link?i.createElement("a",{href:t.link,className:gr("link")},s):s},z=A?i.createElement(f.I,{qa:P,data:A,size:I,className:gr("icon")}):null,F={icon:z,title:vr(t)};let B,U=null;const $={compact:Boolean(x),collapsed:!1,item:t,ref:S};return"function"===typeof t.itemWrapper?(B=t.itemWrapper(F,L,$),U=w&&t.itemWrapper(F,(({icon:e})=>M(e)),$)):(B=L(F),U=w&&M(z)),i.createElement(i.Fragment,null,w&&i.createElement(cr,{iconNode:U,iconRef:k,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&R&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===C||void 0===C?void 0:C.current)&&i.createElement(xr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function xr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:o}=ar();return(null===t||void 0===t?void 0:t.length)?i.createElement(_e.z,{placement:dr,open:!0,anchorRef:n,onClose:r},i.createElement("div",{className:gr("collapse-items-popup-content")},i.createElement(er.B,{itemClassName:gr("root-collapse-item"),items:t,selectedItemIndex:hr(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n,icon:r})=>{const o=i.createElement("div",{className:gr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},r,n);return t.link?i.createElement("a",{href:t.link,className:gr("link")},o):o},a={title:vr(t),icon:t.icon&&i.createElement(f.I,{data:t.icon,size:14,className:gr("collapse-item-icon")})},s={compact:Boolean(o),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}wr.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const _r=(0,v.b)("footer-item"),Er=e=>{var{item:t}=e,n=d(e,["item"]);return i.createElement(wr,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:_r({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},Sr=i.memo((({renderContent:e,size:t})=>i.createElement(i.Fragment,null,e({size:t}))));Sr.displayName="RenderContent";const Cr=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:o})=>i.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?i.createElement(Sr,{size:e,renderContent:r}):o);var kr=n(16258);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const Or=i.lazy((()=>n.e(90099).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Nr=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const o=e?56:236,a=(0,i.useMemo)((()=>({size:o,compact:e})),[e,o]);return i.createElement(or,{value:a},i.createElement("div",{className:(0,kr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},r&&i.createElement(i.Suspense,{fallback:null},i.createElement(Or,{topAlert:r})),i.createElement("div",{className:(0,kr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=ar();return i.createElement(Cr,{size:n,className:(0,kr.b)("content"),renderContent:t},e)}});var Tr=n(42793);const Ar=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118m4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"})),Ir=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"}));var Pr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(null,arguments)}var Dr=function(e){return i.createElement("svg",Rr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Pr||(Pr=i.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},jr=n(32084),Mr=n(14794),Lr=n(48681);function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(null,arguments)}function Fr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Br(e,t)}function Ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}var $r,qr,Hr,Vr;function Wr(){if(qr)return $r;qr=1;return $r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Kr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Vr)return Hr;Vr=1;var e=Wr();function t(){}function n(){}return n.resetWarningCache=t,Hr=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var Gr=!1,Yr=i.createContext(null),Qr=function(e){return e.scrollTop},Zr="unmounted",Jr="exited",Xr="entering",ei="entered",ti="exiting",ni=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Jr,r.appearStatus=Xr):i=ei:i=t.unmountOnExit||t.mountOnEnter?Zr:Jr,r.state={status:i},r.nextCallback=null,r}Ur(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Zr?{status:Jr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xr&&n!==ei&&(t=Xr):n!==Xr&&n!==ei||(t=ti)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this);n&&Qr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jr&&this.setState({status:Zr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Lr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Gr?this.safeSetState({status:ei},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Xr},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ei},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Lr.findDOMNode(this);t&&!Gr?(this.props.onExit(r),this.safeSetState({status:ti},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Jr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Jr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Zr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Fr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.createElement(Yr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ri(){}ni.contextType=Yr,ni.propTypes={},ni.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ri,onEntering:ri,onEntered:ri,onExit:ri,onExiting:ri,onExited:ri},ni.UNMOUNTED=Zr,ni.EXITED=Jr,ni.ENTERING=Xr,ni.ENTERED=ei,ni.EXITING=ti;var ii=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},oi=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Kr(n.className,r):n.setAttribute("class",Kr(n.className&&n.className.baseVal||"",r)));var n,r}))},ai=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Ur(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Qr(e),r&&(this.appliedClasses[t][n]=r,ii(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&oi(e,r),i&&oi(e,i),o&&oi(e,o)},n.render=function(){var e=this.props;e.classNames;var t=Fr(e,["classNames"]);return i.createElement(ni,zr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.Component);function si(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function li(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ci(e,t,n){var r=si(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:li(s,"exit",e),enter:li(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:li(s,"exit",e),enter:li(s,"enter",e)})}})),o}ai.defaultProps={classNames:""},ai.propTypes={};var ui,di,fi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pi=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Ur(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,si(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:li(e,"appear",n),enter:li(e,"enter",n),exit:li(e,"exit",n)})}))):ci(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=si(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=zr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Fr(e,["component","childFactory"]),o=this.state.contextValue,a=fi(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(Yr.Provider,{value:o},a):i.createElement(Yr.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);pi.propTypes={},pi.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Ur(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,a=i.Children.toArray(o)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Lr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Fr(e,["children","in"]),o=i.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.createElement(pi,r,n?i.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.Component)).propTypes={};var hi="out-in",mi="in-out",gi=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},vi=((ui={})[hi]=function(e){var t=e.current,n=e.changeState;return i.cloneElement(t,{in:!1,onExited:gi(t,"onExited",(function(){n(Xr,null)}))})},ui[mi]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.cloneElement(r,{in:!0,onEntered:gi(r,"onEntered",(function(){n(Xr)}))})]},ui),yi=((di={})[hi]=function(e){var t=e.children,n=e.changeState;return i.cloneElement(t,{in:!0,onEntered:gi(t,"onEntered",(function(){n(ei,i.cloneElement(t,{in:!0}))}))})},di[mi]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.cloneElement(t,{in:!1,onExited:gi(t,"onExited",(function(){r(ei,i.cloneElement(n,{in:!0}))}))}),i.cloneElement(n,{in:!0})]},di),bi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ei,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ur(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Xr&&e.mode===mi?{status:Xr}:!t.current||(n=t.current,r=e.children,n===r||i.isValidElement(n)&&i.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.cloneElement(e.children,{in:!0})}:{status:ti};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,s=o.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Xr:e=yi[r](l);break;case ti:e=vi[r](l);break;case ei:e=s}return i.createElement(Yr.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.Component);bi.propTypes={},bi.defaultProps={mode:hi};const wi=200,xi=800;function _i(e){var t,n;return"touches"in e?null!==(n=null===(t=e.touches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0:e.clientX}function Ei(e){const{direction:t,width:n,minResizeWidth:r=wi,maxResizeWidth:o=xi,onResizeStart:a,onResize:s}=e,[l,c]=i.useState(!1),[u,d]=i.useState(0),[f,p]=i.useState(null!==n&&void 0!==n?n:400),h=i.useCallback((e=>Math.min(Math.max(e,r),o)),[r,o]),m=i.useCallback((e=>h((null!==n&&void 0!==n?n:f)+("right"===t?e:-e))),[n,f,t,h]),g=i.useCallback((()=>{c(!0),d(0),null===a||void 0===a||a()}),[a]),v=i.useCallback((e=>{d(e)}),[]),y=i.useCallback((e=>{const t=m(e);c(!1),p(t),null===s||void 0===s||s(t)}),[m,s]),b=l?m(u):h(null!==n&&void 0!==n?n:f),w=function({onStart:e,onMove:t,onEnd:n}){const r=i.useRef(0),o=i.useRef(0),a=i.useCallback((e=>{const n=_i(e);if(o.current===n)return;o.current=n;const i=r.current-n;t(i)}),[t]),s=i.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select"),document.body.style.removeProperty("cursor");const t=_i(e),i=r.current-t;n(i)}),[a,n]),l=i.useCallback((t=>{const n=_i(t);r.current=n,o.current=n,window.addEventListener("mouseup",s,{once:!0}),window.addEventListener("touchend",s,{once:!0}),window.addEventListener("touchcancel",s,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),document.body.style.setProperty("user-select","none"),document.body.style.setProperty("-webkit-user-select","none"),document.body.style.setProperty("cursor","col-resize"),e()}),[s,a,e]);return{onMouseDown:l,onTouchStart:l}}({onStart:g,onMove:v,onEnd:y});return{resizedWidth:b,resizerHandlers:w}}y(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:0;pointer-events:auto;position:absolute;top:0;will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0}.gn-drawer__resizer_direction_left{right:0}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const Si=(0,v.b)("drawer"),Ci=i.forwardRef((function(e,t){const{visible:n,content:r,children:o,direction:a="left",className:s,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p,keepMounted:h=!1}=e,[m,g]=i.useState(!0),v=i.useRef(null),y=(0,jr.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=Ei({direction:a,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p});i.useEffect((()=>{g(!0)}),[a]);const _=l?i.createElement("div",Object.assign({className:Si("resizer",{direction:a})},x),i.createElement("div",{className:Si("resizer-handle")})):null;return i.createElement(ai,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:Si("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},i.createElement("div",{ref:y,className:Si("item",{direction:b,hidden:m&&!n},[s]),style:{width:l?`${w}px`:void 0}},_,null!==o&&void 0!==o?o:r))})),ki=({className:e,veilClassName:t,children:n,style:r,onVeilClick:o,onEscape:a,preventScrollBody:s=!0,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;i.Children.forEach(n,(e=>{if(i.isValidElement(e)&&e.type===Ci){Boolean(e.props.visible)&&(d=!0)}})),i.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]),(0,Mr.y)({enabled:s&&d});const f=i.useRef(null),p=i.useRef(null),h=i.createElement(ni,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:f},(a=>{const s=d&&"entered"===a;return i.createElement("div",{ref:f,className:Si({hideVeil:l},e),style:r},i.createElement(ai,{in:s,timeout:300,unmountOnExit:!0,classNames:Si("veil-transition"),nodeRef:p},i.createElement("div",{ref:p,className:Si("veil",{hidden:l},t),onClick:o})),i.Children.map(n,(e=>{if(i.isValidElement(e)&&e.type===Ci){const t=Boolean(e.props.visible);return i.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&s}))}return e})))}));return c?h:i.createElement(Jn.Z,null,h)};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const Oi=(0,v.b)("all-pages-list-item"),Ni=e=>{const{item:t,editMode:n,onToggle:r}=e,o=(0,i.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return i.createElement("div",{className:Oi(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?i.createElement(f.I,{className:Oi("icon"),data:t.icon,size:t.iconSize}):null,i.createElement("span",{className:Oi("text")},t.title),n&&!t.preventUserRemoving&&i.createElement(E.$,{onClick:o,view:t.hidden?"flat-secondary":"flat-action"},i.createElement(E.$.Icon,null,t.hidden?i.createElement(Ar,null):i.createElement(Ir,null))))};var Ti=(0,w.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Ai="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const Ii=(0,v.b)("all-pages-panel"),Pi=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:o,onMenuItemsChanged:a,editMenuProps:s}=rr(),l=(0,i.useRef)(o);l.current=o;const[c,u]=(0,i.useState)(!1),d=(0,i.useCallback)((()=>{u((e=>!e))}),[]),p=(e=>{const t=(0,i.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Ai));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||Ti("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(o);(0,i.useEffect)((()=>{var e;null===n||void 0===n||n(c),c&&(null===(e=null===s||void 0===s?void 0:s.onOpenEditMode)||void 0===e||e.call(s))}),[c,n,s]);const h=(0,i.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),m=(0,i.useCallback)((e=>{var t;if(!a)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=l.current.filter((e=>e.id!==Ai));null===(t=null===s||void 0===s?void 0:s.onToggleMenuItem)||void 0===t||t.call(s,n),a(r.map((e=>e.id!==n.id?e:n)))}),[a,s]),v=(0,i.useCallback)(((e,t,n)=>i.createElement(Ni,{item:e,editMode:c,onToggle:()=>m(e)})),[c,m]),y=(0,i.useCallback)((()=>{var e;if(!a)return;null===(e=null===s||void 0===s?void 0:s.onResetSettingsToDefault)||void 0===e||e.call(s);const t=l.current.filter((e=>e.id!==Ai));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return i.createElement(g.s,{className:Ii(null,r),gap:"5",direction:"column"},i.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},i.createElement(_.E,{variant:"subheader-2"},Ti(c?"all-panel.title.editing":"all-panel.title.main")),i.createElement(E.$,{selected:c,view:"normal",onClick:d},t||i.createElement(f.I,{data:Zn.A}))),i.createElement(g.s,{className:Ii("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>i.createElement(g.s,{key:e,direction:"column",gap:"3"},i.createElement(_.E,{className:Ii("category"),variant:"body-1",color:"secondary"},e),i.createElement(er.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&i.createElement(E.$,{onClick:y},Ti("all-panel.resetToDefault")))};let Ri;Ri="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Di=null,ji=null;const Mi=Ri.clearTimeout,Li=Ri.setTimeout,zi=Ri.cancelAnimationFrame||Ri.mozCancelAnimationFrame||Ri.webkitCancelAnimationFrame,Fi=Ri.requestAnimationFrame||Ri.mozRequestAnimationFrame||Ri.webkitRequestAnimationFrame;function Bi(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Di(this.__resizeRAF__),this.__resizeRAF__=ji((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=Ri.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==zi||null==Fi?(Di=Mi,ji=function(e){return Li(e,20)}):(Di=function([e,t]){zi(e),Mi(t)},ji=function(e){const t=Fi((function(){Mi(n),e()})),n=Li((function(){zi(t),e()}),20);return[t,n]});class Ui extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Bi(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return r||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,i.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}const $i={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},qi=i.createContext($i);class Hi extends i.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},$i),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return i.createElement(qi.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Vi=(0,v.b)("multiple-tooltip"),Wi=[-32,4],Ki=[{name:"preventOverflow",enabled:!1}],Gi=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:o,hideCollapseItemTooltip:a}=i.useContext(qi),s=void 0===o?null:e[o];return i.createElement(_e.z,{open:t,anchorRef:n,placement:r,offset:Wi,contentClassName:Vi(null),modifiers:Ki,disableLayer:!0},i.createElement("div",{className:Vi("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==ur&&"action"!==e)).map(((e,t)=>"divider"===e.type?i.createElement("div",{className:Vi("item",{divider:!0}),key:t},e.title):i.createElement("div",{className:Vi("item",{active:e===s}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Yi=(0,v.b)("composite-bar"),Qi=({type:e,items:t,onItemClick:n,onMoreClick:r,collapseItems:o,multipleTooltip:a=!1})=>{const s=(0,i.useRef)(null),l=(0,i.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,i.useContext)(qi),{compact:p}=ar();i.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,i.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,i.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,i.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,i.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,i.useCallback)((e=>(t,r,i)=>{p&&a&&e!==f&&t.id!==ur&&c({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,i)}),[p,f,a,n,c]);return i.createElement(i.Fragment,null,i.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},i.createElement(er.B,{ref:s,items:t,selectedItemIndex:"menu"===e?hr(t):void 0,itemHeight:fr,itemsHeight:pr,itemClassName:Yi("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=mr(e)?{item:e}:e,l=mr(e)?!a:e.enableTooltip;return i.createElement(wr,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:o}))}})),"menu"===e&&a&&i.createElement(Gi,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Zi=({type:e,items:t,menuMoreTitle:n,onItemClick:r,onMoreClick:o,multipleTooltip:a=!1})=>{if(0===t.length)return null;let s;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return pr(t)+pr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:ur,title:e,icon:sr.A,iconSize:18}}(n);s=i.createElement("div",{className:Yi({autosizer:!0}),style:{minHeight:e}},0!==t.length&&i.createElement(Ui,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,s=Number.isNaN(e.height)?0:e.height,{listItems:c,collapseItems:u}=function(e,t,n){var r,i,o;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=pr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=fr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===ur||e.afterMoreButton||("divider"!==e.type?(f-=fr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=fr(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,s,l);return i.createElement("div",{style:{width:n,height:s}},i.createElement(Qi,{type:"menu",items:c,onItemClick:r,onMoreClick:o,collapseItems:u,multipleTooltip:a}))})))}else s=i.createElement("div",{className:Yi({subheader:!0})},i.createElement(Qi,{type:"subheader",items:t,onItemClick:r}));return i.createElement(Hi,null,s)};var Ji={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Xi={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var eo,to=(0,w.N)({en:Ji,ru:Xi},`${v.N}AsideHeader`);function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(null,arguments)}var ro=function(e){return i.createElement("svg",no({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),eo||(eo=i.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const io=(0,v.b)("collapse-button"),oo=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:o}=rr(),a=(0,i.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||to("button_expand"):o||to("button_collapse");return i.createElement("button",{className:io({compact:n},e),onClick:a,title:s},i.createElement(f.I,{data:ro,className:io("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const ao=(0,v.b)("logo"),so=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:o=24,textSize:a=15,href:s,target:l="_self",wrapper:c,onClick:u,compact:d,className:p,buttonWrapperClassName:h,buttonClassName:m,"aria-label":g,"aria-labelledby":v})=>{const y="function"===typeof c;let b;n?b=i.createElement(E.$.Icon,{className:r},i.createElement("img",{alt:"logo icon",src:n,width:o,height:o})):t&&(b=i.createElement(f.I,{data:t,size:o,className:r}));const w=i.createElement(E.$,{view:"flat",size:"l",className:ao("btn-logo",m),component:y?"span":void 0,onClick:u,target:l,rel:"_self"===l?void 0:"noreferrer",href:s,extraProps:{"aria-label":g,"aria-labelledby":v}},b);let x;return x="function"===typeof e?e():i.createElement("div",{className:ao("logo"),style:{fontSize:a}},e),i.createElement("div",{className:ao(null,p)},i.createElement("div",{className:ao("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?i.createElement("div",{onClick:u},c(x,Boolean(d))):i.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:ao("logo-link"),onClick:u},x)))},lo=[],co=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:o}=rr(),{compact:a}=ar(),s=(0,i.useCallback)((t=>{var r;null===n||void 0===n||n(),null===(r=null===e||void 0===e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return i.createElement("div",{className:(0,kr.b)("header",{"with-decoration":r})},e&&i.createElement(so,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,kr.b)("logo-button-wrapper"),buttonClassName:(0,kr.b)("logo-button")})),i.createElement(Zi,{type:"subheader",items:o||lo,onItemClick:t}),r&&i.createElement(f.I,{data:Dr,className:(0,kr.b)("header-divider"),width:56,height:29}))},uo=()=>{const{panelItems:e,onClosePanel:t,size:n}=rr();return e?i.createElement(ki,{className:(0,kr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>i.createElement(Ci,Object.assign({key:e.id},e))))):null},fo=i.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:o,multipleTooltip:a,menuMoreTitle:s,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:f,className:p,hideCollapseButton:h,qa:m}=rr(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=rr();return(0,i.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),v=(0,i.useRef)(null);return i.useEffect((()=>{(0,Tr.c)(t,v.current)}),[t]),i.createElement(i.Fragment,null,i.createElement("div",{className:(0,kr.b)("aside",p),style:{width:n},"data-qa":m},i.createElement("div",{className:(0,kr.b)("aside-popup-anchor"),ref:v}),i.createElement("div",{className:(0,kr.b)("aside-content",{"with-decoration":o})},d&&i.createElement("div",{className:(0,kr.b)("aside-custom-background",f)},d),i.createElement(co,null),(null===g||void 0===g?void 0:g.length)?i.createElement(Zi,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:to("label_more"),onItemClick:r,onMoreClick:l,multipleTooltip:a}):i.createElement("div",{className:(0,kr.b)("menu-items")}),i.createElement("div",{className:(0,kr.b)("footer")},null===c||void 0===c?void 0:c({size:n,compact:Boolean(u),asideRef:v})),!h&&i.createElement(oo,null))),i.createElement(uo,null))}));var po;fo.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(po||(po={}));const ho=[],mo=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:o,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,i.useState)(),u=i.useMemo((()=>({id:Ai,title:Ti("menu-item.all-pages.title"),tooltipText:Ti("menu-item.all-pages.title"),icon:sr.A})),[]),d=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,i.useEffect)((()=>{(null===o||void 0===o?void 0:o.some((e=>e.visible)))&&c(void 0)}),[o]);const f=(0,i.useCallback)((()=>{c(void 0),null===n||void 0===n||n()}),[n]),p=(0,i.useCallback)(((e,t,r)=>{var i;e.id===u.id?(null===n||void 0===n||n(),c((e=>e===po.AllPages?void 0:po.AllPages))):f(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[f,u,n]),h=(0,i.useMemo)((()=>d?[...r||ho,Object.assign(Object.assign({},u),{current:l===po.AllPages,onItemClick:s})]:r||ho),[d,r,l,u,s]),m=(0,i.useMemo)((()=>d?[...o||[],{id:po.AllPages,content:i.createElement(Pi,null),visible:l===po.AllPages}]:o),[d,o,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},go=i.forwardRef(((e,t)=>{const{size:n,compact:r}=ar(),o=mo(Object.assign({size:n,compact:r},e));return i.createElement(nr,{value:o},i.createElement(fo,{ref:t}))}));go.displayName="PageLayoutAside";const vo=i.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:o}=e,a=d(e,["compact","className","topAlert"]);return i.createElement(Nr,{compact:n,className:r,topAlert:o},i.createElement(go,Object.assign({ref:t},a)),i.createElement(Nr.Content,{renderContent:a.renderContent}))}));vo.displayName="AsideHeader";var yo,bo=n(59001);function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}const xo=function(e){return i.createElement("svg",wo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),yo||(yo=i.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},_o=(0,pe.cn)("kv-navigation");function Eo({isCompact:e,popupAnchor:t,user:n,children:r}){var o;const[a,s]=i.useState(!1),l=n?null!==(o=n.icon)&&void 0!==o?o:Yn:xo;return(0,oe.jsx)(Er,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:ve("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,oe.jsx)("div",{className:_o("ydb-user-wrapper"),children:r})})}var So=function(e){return e.UserSettings="UserSettings",e}(So||{});function Co(e){const t=(0,ue.W6)(),[n,r]=i.useState(),[o,a]=(0,u.iK)(Le.LQ);return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(vo,{logo:{text:"YDB",icon:St,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:o,onChangeCompact:a,className:_o(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:o})=>(0,oe.jsxs)(i.Fragment,{children:[(0,oe.jsx)(Er,{compact:t,item:{id:"documentation",title:ve("navigation-item.documentation"),icon:Qn.A,onItemClick:()=>{window.open("ru"===bo.f.readUserSettingsValue(Le.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,oe.jsx)(Er,{item:{id:"user-settings",title:ve("navigation-item.settings"),icon:Zn.A,current:n===So.UserSettings,onItemClick:()=>{r(n===So.UserSettings?void 0:So.UserSettings)}},compact:t}),(0,oe.jsx)(Eo,{isCompact:t,popupAnchor:o,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===So.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}var ko=n(17594),Oo=n(4557),No=n(56839),To=n(16439),Ao=n(91135),Io=n(80420),Po=n(13342),Ro=n(49228);function Do(e){return e?(0,No.r6)(new Date(e).getTime()):Le.Pd}const jo={[Ro.Fk.Path]:({schemaPath:e=""})=>({name:Ro.Fk.Path,header:Ro.Mo.Path,render:({row:t})=>(0,oe.jsx)(Ao.I,{path:e+t.RelativePath,children:t.RelativePath}),width:300}),[Ro.Fk.DataSize]:()=>({name:Ro.Fk.DataSize,header:Ro.Mo.DataSize,render:({row:e})=>(0,No.ZV)(e.DataSize),align:Oo.Ay.RIGHT}),[Ro.Fk.TabletId]:()=>({name:Ro.Fk.TabletId,header:Ro.Mo.TabletId,render:({row:e})=>e.TabletId?(0,oe.jsx)(Io.$,{tabletId:e.TabletId,followerId:e.FollowerId||void 0}):Le.Pd,width:220}),[Ro.Fk.NodeId]:()=>({name:Ro.Fk.NodeId,header:Ro.Mo.NodeId,render:({row:e})=>e.NodeId?(0,oe.jsx)(Jt.E,{to:(0,un.vI)(e.NodeId),children:e.NodeId}):Le.Pd,align:Oo.Ay.RIGHT}),[Ro.Fk.CPUCores]:()=>({name:Ro.Fk.CPUCores,header:Ro.Mo.CPUCores,render:({row:e})=>{const t=100*Number(e.CPUCores)||0;return(0,oe.jsx)(Po.U,{value:(0,No.CR)(t,2),theme:(0,To.f)(t)})},align:Oo.Ay.RIGHT,width:110,resizeMinWidth:110}),[Ro.Fk.InFlightTxCount]:()=>({name:Ro.Fk.InFlightTxCount,header:Ro.Mo.InFlightTxCount,render:({row:e})=>(0,No.ZV)(e.InFlightTxCount),align:Oo.Ay.RIGHT}),[Ro.Fk.PeakTime]:()=>({name:Ro.Fk.PeakTime,render:({row:e})=>Do(e.PeakTime)}),[Ro.Fk.IntervalEnd]:()=>({name:Ro.Fk.IntervalEnd,render:({row:e})=>Do(e.IntervalEnd)})};const Mo=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function({children:e}){return(0,oe.jsx)(i.Fragment,{children:e})})).register("AsideNavigation",Co).register("ErrorBoundary",s.lQ).register("ShardsTable",(function({columnsIds:e,schemaPath:t,database:n,...r}){const o=i.useMemo((()=>e.filter((e=>e in jo)).map((e=>{const r=jo[e]({database:n,schemaPath:t});return{...r,sortable:(0,Ro.DM)(r.name)}}))),[e,n,t]);return(0,oe.jsx)(ko.l,{...r,columnsWidthLSKey:Ro.DB,columns:o})}));function Lo({store:e,history:t,componentsRegistry:n=Mo,children:r}){return(0,oe.jsx)(o.vd,{children:(0,oe.jsx)(a.Kq,{store:e,children:(0,oe.jsx)(ue.Ix,{history:t,children:(0,oe.jsx)(Kn.QueryParamProvider,{adapter:Gn,children:(0,oe.jsx)(zo,{children:(0,oe.jsx)(l.I,{registry:n,children:(0,oe.jsx)(Vn.Kq,{children:r})})})})})})})}function zo({children:e}){const[t]=(0,u.iK)(Le.k4);return(0,oe.jsx)(Wn.N,{theme:t,children:e})}const Fo=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:i=lt({singleClusterMode:n})}){return(0,oe.jsxs)(Lo,{store:e,history:t,children:[(0,oe.jsx)(o.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,oe.jsx)(Hn,{children:(0,oe.jsx)(we,{userSettings:i,children:(0,oe.jsxs)(s.tH,{children:[(0,oe.jsx)(Fn,{singleClusterMode:n,children:r}),(0,oe.jsx)("div",{id:"fullscreen-root"})]})})}),(0,oe.jsx)(Ie,{})]})}));function Bo({dbName:e,logging:t}){try{const n=JSON.parse(t);if("object"===typeof n&&"url"in n){const t=n.url;if(!t)return"";const r=new URL(t),i=r.searchParams.get("query");if(i){const t=decodeURIComponent(i).slice(1,-1),n=`{${t}${t.length>0?", ":""}database = "${e}"}`;r.searchParams.set("query",n)}return r.toString()}}catch{}return""}function Uo({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=qo(e);if(a){var i,o;const e=null!==(i=a.host)&&void 0!==i?i:"cluster",s=null!==(o=a.slot)&&void 0!==o?o:"static",l=a.cluster_name||r||"",c=new URL(a.monitoring_url);if(!c.search){const e="Serverless"===n?a.serverless_dashboard:a.dedicated_dashboard;c.pathname+=`/${e}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",e),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",t),c.toString()}}catch{}return""}function $o(e,t){try{const n=qo(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",i=new URL(n.monitoring_url);return!i.search&&e&&(i.pathname+=`/${e}/view`),i.searchParams.has("p.cluster")||i.searchParams.set("p.cluster",r),i.searchParams.set("p.database","-"),i.toString()}}catch{}return""}function qo(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ho=n(96873),Vo=n(88655),Wo=n(69446),Ko=n(77630);const Go=(0,pe.cn)("extended-cluster"),Yo=e=>{const t=(0,Wo.Zd)(e);return{label:"Balancer",value:(0,oe.jsxs)("div",{className:Go("balancer"),children:[t,(0,oe.jsx)(Ho.b,{text:t,size:"s",className:Go("clipboard-button")})]})}},Qo=({clusterName:e,monitoring:t,balancer:n,getMonitoringClusterLink:r})=>{const i={};if(t&&r){const n=r(t,e);n&&(i.links=[{title:"Monitoring",url:n}])}return n&&(i.info=[Yo(n)]),i},Zo=({clusterName:e,monitoring:t,balancer:n,logging:r,useClusterBalancerAsBackend:i,getMonitoringLink:o,getLogsLink:a})=>{const s={prepareTenantBackend:e=>{var t;if(n){if(i)return(0,Wo.PG)(n);if(e)return"string"===typeof e?(0,Ko.De)(e,n):null!==(t=(0,Ko.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&o&&(s.getMonitoringLink=(n,r)=>n&&r?o({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),r&&a&&(s.getLogsLink=e=>e?a({dbName:e,logging:r}):null),s};function Jo({component:e,getMonitoringLink:t,getMonitoringClusterLink:n,getLogsLink:r}){const i=(0,Vo.E)(),{name:o,balancer:a,monitoring:s,logging:l}=(0,Xt.Zd)(),[c]=(0,u.iK)(Le.s2);return(0,oe.jsx)("div",{className:Go(),children:(0,oe.jsx)(e,{additionalClusterProps:Qo({clusterName:o,monitoring:s,balancer:a,getMonitoringClusterLink:n}),additionalTenantsProps:Zo({clusterName:o,monitoring:s,balancer:a,logging:l,useClusterBalancerAsBackend:c,getMonitoringLink:t,getLogsLink:r}),additionalNodesProps:i})})}function Xo({component:e,getMonitoringLink:t,getLogsLink:n}){const{monitoring:r,logging:i}=(0,Xt.Zd)(),o=(0,Vo.E)(),a={getMonitoringLink:(e,n)=>r&&e&&n&&t?t({monitoring:r,dbName:e,dbType:n}):null,getLogsLink:e=>i&&e&&n?n({dbName:e,logging:i}):null};return(0,oe.jsx)(e,{additionalTenantProps:a,additionalNodesProps:o})}function ea({store:e,history:t,getLogsLink:n=Bo,getMonitoringLink:r=Uo,getMonitoringClusterLink:i=$o,userSettings:o,children:a}){return(0,oe.jsxs)(Fo,{store:e,history:t,userSettings:o,children:[(0,oe.jsx)(En,{children:({component:e})=>(0,oe.jsx)(Jo,{component:e,getLogsLink:n,getMonitoringLink:r,getMonitoringClusterLink:i})}),(0,oe.jsx)(Sn,{children:({component:e})=>(0,oe.jsx)(Xo,{component:e,getLogsLink:n,getMonitoringLink:r})}),a]})}var ta=n(58351),na=n(28197),ra=n(88610),ia=n(59625),oa=n(42566)},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),i=n(59284),o=n(87924),a=n.n(o),s=n(48681),l=n(69220);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=i.createContext(null);f.displayName="ToasterContext";const p=i.createContext([]);p.displayName="ToastsContext";const h=i.forwardRef((function({children:e},t){const[n,r]=i.useState([]),o=i.useCallback((e=>{const{name:t}=e;r((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:i.createRef()})]}))}),[]),a=i.useCallback((e=>{r((t=>d(t,e)))}),[]),s=i.useCallback((()=>{r((()=>[]))}),[]),l=i.useCallback(((e,t)=>{r((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),h=i.useRef(n);i.useEffect((()=>{h.current=n}),[n]);const m=i.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=i.useMemo((()=>({add:o,remove:a,removeAll:s,update:l,has:m})),[o,a,s,l,m]);return i.useImperativeHandle(t,(()=>({add:o,remove:a,removeAll:s,update:l,has:m}))),i.createElement(f.Provider,{value:g},i.createElement(p.Provider,{value:n},e))}));h.displayName="ToasterProvider";var m=n(46819),g=n(98587),v=n(58168),y=n(9417),b=n(25540),w=n(10641);function x(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=x(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),o}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,b.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,x(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):E(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=x(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.A)(e,["component","childFactory"]),o=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(w.A.Provider,{value:o},a):i.createElement(w.A.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const k=C;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),P=n(27612),R=n(81240);function D({onClose:e,timeout:t}){const[n,r,o]=function(){const[e,t]=i.useState(!1);return[i.useCallback((()=>{t(!0)}),[]),i.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=o?null:t,i.useEffect((()=>{if("number"!==typeof s)return;const e=setTimeout((()=>{a()}),s);return()=>{clearTimeout(e)}}),[a,s]),{onMouseOver:n,onMouseLeave:r}}var j=n(84476),M=n(99991),L=n(72837);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.N)({en:z,ru:F},"Toaster"),U=(0,l.om)("toast"),$=5e3,q={normal:null,info:T.A,success:A.A,warning:I.A,danger:I.A,utility:P.A};const H=i.forwardRef((function(e,t){const{name:n,content:r,actions:o,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=$,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=i.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=D({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=c?c(e):function({theme:e}){return e&&q[e]?i.createElement(M.I,{data:q[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return i.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&i.createElement("div",{className:U("icon-container")},w),i.createElement("div",{className:U("container")},y&&i.createElement("h3",{className:U("title")},a),d&&i.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},i.createElement(M.I,{data:R.A})),b&&i.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?i.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:o=!0},a)=>i.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),o&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:o,onClose:m})))})),V=(0,N.L)((0,l.om)("toast-animation-desktop")),W=(0,N.L)((0,l.om)("toast-animation-mobile"));function K(e){const{toasts:t,mobile:n,removeCallback:r}=e;return i.createElement(k,{component:null},t.map((e=>i.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?W:V,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},i.createElement(H,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(98392);const Q=(0,l.om)("toaster");function Z({children:e,className:t,mobile:n}){const r=i.useRef("undefined"===typeof document?void 0:document.createElement("div"));return i.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),i.useEffect((()=>{r.current&&(r.current.className=Q({mobile:n},t))}),[t,n]),i.createElement(Y.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:o}=function(){const e=i.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return i.useMemo((()=>e),[e])}(),a=i.useContext(p),s=i.createElement(K,{toasts:a,removeCallback:o,mobile:null!==t&&void 0!==t?t:r});return n?i.createElement(Z,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Z.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.om)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=i.createElement(h,{ref:e=>{this.componentAPI=e}},i.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},59653:(e,t,n)=>{var r=n(88118),i=n(59698);e.exports=function(e){return i(e)&&r(e)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>i.H,jl:()=>i.j,z_:()=>r.z});var r=n(18863),i=n(82176)},60166:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(40453),t),i(n(29863),t)},60242:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>V});var r=n(59284),i=n(45099),o=n.n(i),a=n(83791),s=n.n(a),l=n(37737),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",x="onChangeClientState",_="titleTemplate",E="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},C=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},k=e=>S(e,x)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i<r.length;i+=1){const o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}}return t}),[]),T=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;r<o.length;r+=1){const i=o[r],a=i.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][a]&&(i[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const o=Object.keys(i);for(let t=0;t<o.length;t+=1){const e=o[t],n={...r[e],...i[e]};r[e]=n}return e}),[]).reverse()},A=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},I=e=>Array.isArray(e)?e.join(""):e,P=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},R=(e,t)=>({...e,[t]:void 0}),D=["noscript","script","style"],j=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),z=(e,t)=>t.map(((t,n)=>{const i={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:e}}else i[n]=t[e]})),r.createElement(e,i)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const i=L(n,{key:t,[v]:!0});return[r.createElement("title",i,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=M(n),o=I(t);return i?`<${e} ${v}="true" ${i}>${j(o,r)}</${e}>`:`<${e} ${v}="true">${j(o,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>L(t),toString:()=>M(t)};default:return{toComponent:()=>z(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof i[t]?t:`${t}="${j(i[t],n)}"`;return e?`${e} ${r}`:r}),""),a=i.innerHTML||i.cssText||"",s=-1===D.indexOf(e);return`${t}<${e} ${v}="true" ${o}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=P(e,p),o=P(t,d),a=P(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",i.priority),...z("link",o.priority),...z("script",a.priority)],toString:()=>`${F("meta",i.priority,r)} ${F("link",o.priority,r)} ${F("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",i,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",o,r),script:F("script",m,r),style:F("style",a,r),title:F("title",{title:s,titleAttributes:l},r)}},U=[],$=!("undefined"===typeof window||!window.document||!window.document.createElement),q=class{instances=[];canUseDOM=$;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?U:this.instances,add:e=>{(this.canUseDOM?U:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?U:this.instances).indexOf(e);(this.canUseDOM?U:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H=r.createContext({}),V=class e extends r.Component{static canUseDOM=$;helmetData;constructor(t){super(t),this.helmetData=new q(this.props.context||{},e.canUseDOM)}render(){return r.createElement(H.Provider,{value:this.helmetData.value},this.props.children)}},W=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(v,"true"),i.some(((e,t)=>(a=t,n.isEqualNode(e))))?i.splice(a,1):o.push(n)})),i.forEach((e=>e.parentNode?.removeChild(e))),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===i.indexOf(s)&&i.push(s);const r=o.indexOf(s);-1!==r&&o.splice(r,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},G=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",i),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=I(e)),K("title",t)})(d,f);const p={baseTag:W("base",n),linkTags:W("link",o),metaTags:W("meta",a),noscriptTags:W("noscript",s),scriptTags:W("script",c),styleTags:W("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},Y=null,Q=e=>{Y&&cancelAnimationFrame(Y),e.defer?Y=requestAnimationFrame((()=>{G(e,(()=>{Y=null}))})):(G(e),Y=null)},Z=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],i),bodyAttributes:O("bodyAttributes",i),defer:S(i,b),encode:S(i,w),htmlAttributes:O("htmlAttributes",i),linkTags:T("link",["rel","href"],i),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:T("noscript",["innerHTML"],i),onChangeClientState:k(i),scriptTags:T("script",["src","innerHTML"],i),styleTags:T("style",["cssText"],i),title:C(i),titleAttributes:O("titleAttributes",i),prioritizeSeoTags:A(i,E)});var i;V.canUseDOM?Q(r):B&&(n=B(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!o()(R(this.props,"helmetData"),R(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[g[t]||t]=i[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,o,r);break;default:t=this.mapObjectTypeChildren(e,t,o,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof q)){i=new q(i.context,!0),delete n.helmetData}return i?r.createElement(Z,{...n,context:i.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Z,{...n,context:e})))}}},61758:(e,t,n)=>{var r=n(43781),i=n(38469);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},62391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(50743);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var i=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return i.isDuration}})},62509:(e,t,n)=>{var r=n(90035),i=n(82789),o=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},62871:(e,t,n)=>{var r=n(71259),i=n(80472);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},62990:(e,t,n)=>{var r=n(9112),i=n(39069),o=n(72633);e.exports=function(e,t){return o(i(e,t,r),e+"")}},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),i=n(69220),o=n(34379);const a=(0,i.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:i})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:i,"data-qa":o.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>i,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const i={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});const r=(0,n(69220).om)("color-text"),i=({color:e},t)=>r({color:e},t)},63546:(e,t,n)=>{var r=n(71259),i=n(68097),o=n(83649),a=n(38469),s=n(92061);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},63679:(e,t,n)=>{var r=n(90035),i=n(89728),o=n(2859);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},63786:e=>{e.exports=function(e){return e.split("")}},63904:(e,t,n)=>{"use strict";var r=n(35711),i=n(69426),o=n(70084),a=n(98599);e.exports=a||r.call(o,i)},63909:(e,t,n)=>{var r=n(62871),i=n(96294);e.exports=function(e,t){return e&&r(t,i(t),e)}},64205:(e,t,n)=>{var r=n(4133),i=n(33609),o=n(150),a=n(68814),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=o(e),(n=null==n?0:l(i(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),i=n(85736),o=n(32084),a=n(11669),s=n(794);function l({name:e,value:t,id:n,defaultChecked:l,checked:c,indeterminate:u,onUpdate:d,onChange:f,controlRef:p,controlProps:h,onFocus:m,onBlur:g,disabled:v}){const y=r.useRef(null),[b,w]=(0,i.P)(c,null!==l&&void 0!==l&&l,d),x=!u&&c,_=u?"mixed":b,E=(0,s.d)({initialValue:b,onReset:w}),S=(0,o.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const C=r.useCallback((e=>{a.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:b,inputProps:Object.assign(Object.assign({},h),{name:e,value:t,id:n,onFocus:m,onBlur:g,disabled:v,type:"checkbox",onChange:e=>{w(e.target.checked),f&&f(e)},onClickCapture:C,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59284),i=n(81288),o=n(7889),a=n(78524),s=n(59109),l=n(44508),c=n(31062),u=n(60712);function d({title:e,description:t,error:n,children:d,...f}){return(0,i.uP)(n)?null:(0,i.Pq)(n)?(0,u.jsx)(s.O,{title:e,description:t,...f}):n||t?(0,u.jsx)(o.p,{image:(0,u.jsx)(a.v,{name:"error"}),title:e||(0,c.A)("error.title"),description:n?(0,u.jsx)(l.o,{error:n}):t,...f}):(0,u.jsx)(r.Fragment,{children:d})}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},65809:(e,t,n)=>{"use strict";function r(e){if(e&&"string"===typeof e)return e;if(e&&"object"===typeof e){if("data"in e&&"string"===typeof e.data)return e.data;if("statusText"in e&&"string"===typeof e.statusText)return e.statusText;if("message"in e&&"string"===typeof e.message)return e.message}return""}n.d(t,{$:()=>r})},66217:(e,t,n)=>{var r=n(67530),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>o,s5:()=>i});var r=n(38596);const i=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),o=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#8b4513","#b22222"],a="#3cb371",s=(e=[])=>(e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:i(e)}))),n=new Map;let r=o.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%o.length,n.set(t.version,o[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:i(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const i=o[r],a=Math.max(100-t*(100/s),20),l=`${i}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n})(((e,t=new Map)=>(e.forEach((e=>{var n;const i=(0,r.Q)(e),o=(0,r.U)(e);t.has(i)||t.set(i,new Set),null===(n=t.get(i))||void 0===n||n.add(o)})),t))(e))},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(59284);function i(e=600){const[t,n]=r.useState(!1),[i,o]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,i]);return[t,r.useCallback((()=>{o((e=>e+1))}),[])]}},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"}))},66944:(e,t,n)=>{var r=n(14837),i=n(49538),o=n(99889),a=n(11319),s=n(52497),l=n(52964),c=n(19305),u=n(59653),d=n(20368),f=n(36738),p=n(38469),h=n(20011),m=n(91159),g=n(76614),v=n(26180);e.exports=function(e,t,n,y,b,w,x){var _=g(e,n),E=g(t,n),S=x.get(E);if(S)r(e,n,S);else{var C=w?w(_,E,n+"",e,t,x):void 0,k=void 0===C;if(k){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);C=E,O||N||T?c(_)?C=_:u(_)?C=a(_):N?(k=!1,C=i(E,!0)):T?(k=!1,C=o(E,!0)):C=[]:h(E)||l(E)?(C=_,l(_)?C=v(_):p(_)&&!f(_)||(C=s(E))):k=!1}k&&(x.set(E,C),b(C,E,y,w,x),x.delete(E)),r(e,n,C)}}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,Ii:()=>c,Oi:()=>d,Pm:()=>s,SA:()=>p,S_:()=>_,TW:()=>O,WF:()=>g,YA:()=>f,Ye:()=>h,_Q:()=>v,c2:()=>u,e5:()=>a,fp:()=>y,j2:()=>b,li:()=>x,qz:()=>S,sH:()=>k,x6:()=>E});var r=n(90182),i=n(28232),o=n(68712);function a(){const e=(0,i.J)();o.RE.useGetClusterCapabilitiesQuery({database:e})}function s(){const e=(0,i.J)(),{data:t,error:n}=(0,r.N4)((t=>(0,o.Ox)(t,e)));return Boolean(t||n)}const l=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.p2)(n,e,t)||0))},c=()=>l("/scheme/directory")>0,u=()=>l("/pdisk/info")>0,d=()=>l("/viewer/query")>2,f=()=>l("/storage/groups")>2,p=()=>l("/storage/groups")>4,h=()=>l("/viewer/nodes")>6,m=()=>l("/viewer/nodes")>11,g=()=>l("/viewer/nodes")>13,v=()=>l("/viewer/feature_flags")>1,y=()=>l("/viewer/cluster")>4,b=()=>l("/viewer/query")>=8,w=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.TL)(n,e,t)))},x=()=>!1===w("UseLoginProvider"),_=()=>!1===w("DomainLoginOnly");function E(){o.RE.useGetMetaCapabilitiesQuery({})}function S(){const{data:e,error:t}=(0,r.N4)(o.I4);return Boolean(e||t)}const C=e=>(0,r.N4)((t=>(0,o.i9)(t,e)||0)),k=()=>C("/meta/create_database")>=1,O=()=>C("/meta/delete_database")>=1},67076:(e,t,n)=>{"use strict";n(29416)},67087:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function i(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function o(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>k,StringParam:()=>a,useQueryParam:()=>R,useQueryParams:()=>I});const a={encode:function(e){return null==e?e:String(e)},decode:o},s={encode:function(e){return null==e?e:String(e)},decode:i};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const i of r){const r=t[i];e[i]?n[i]=e[i].encode(t[i]):n[i]=null==r?r:String(r)}return n}var c=n(59284);const u=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var i;if(!n||!t.length)return e;let o={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(o,s)||(o[s]=null!=(i=n[s])?i:r,a=!0);return a?o:e}const f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,i;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(let s=0;s<o.length;s++){const a=null!=(i=null==(r=null==n?void 0:n[o[s]])?void 0:r.equals)?i:p;if(!f.call(t,o[s])||!a(e[o[s]],t[o[s]]))return!1}return!0}function m(e,t,n){const r={},i=Object.keys(t);for(const o of i){const i=t[o],a=e[o];let s;if(n.has(o,a,i.decode))s=n.get(o);else{if(s=i.decode(a),i.equals&&n.has(o,a)){const e=n.get(o);i.equals(s,e)&&(s=e)}void 0!==s&&n.set(o,a,s,i.decode)}void 0===s&&void 0!==i.default&&(s=i.default),r[o]=s}return r}function g(){let e;return function(t,n,r){const i=m(t,n,r);return null!=e&&h(e,i)?e:(e=i,i)}}let v,y,b,w={};const x=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=n;const i=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[o,a]of Object.entries(r)){(null==i?void 0:i[o])&&(delete r[o],o=i[o],r[o]=a);const e=w[o];h(a,e)&&(r[o]=e)}return w=r,r};function _(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,i]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,i]of n)if(void 0!==i&&null!==i)if(Array.isArray(i))for(const e of i)t.append(r,null!=e?e:"");else t.append(r,i);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function C({children:e,adapter:t,options:n}){const{adapter:r,options:i}=c.useContext(S),o=c.useMemo((()=>({adapter:null!=t?t:r,options:_(i,n)})),[t,n,r,i]);return c.createElement(S.Provider,{value:o},e)}function k({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(C,{adapter:t,options:n},e))):c.createElement(C,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:o,objectToSearchString:a}=i;let s;null==t&&(t=i.updateType);const c=x(o,n),f=d(r,Object.keys(e),i.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(s,f),s=function(e,t){var n;let r={};for(const i in e)null!=(null==(n=t[i])?void 0:n.urlName)?r[t[i].urlName]=e[i]:r[i]=e[i];return r}(s,f),h=a("push"===t||"replace"===t?s:{...c,...s}),(null==h?void 0:h.length)&&"?"!==h[0]&&(h=`?${h}`),null!=h?h:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),A=[];function I(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[i]=(0,c.useState)(g),{paramConfigMap:o,options:s}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,c.useMemo)((()=>_(r,s)),[r,s]);let f=function(e,t){var n,r,i;const o={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,o[u]=null!=(i=null==(r=t.params)?void 0:r[u])?i:a):o[u]=n}return s?o:e}(o,l);const p=x(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=i(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:i}=y.current;null==t&&(t=i.updateType),function(e,{immediate:t}={}){A.push(e);let n=t?N:T;1===A.length&&n((()=>{const t=A.slice();A.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(i):t.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:i,adapter:n},{immediate:!i.enableBatching})}));return[h,b]}var P=I;const R=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[i,o]=P(r,n);return[i[e],(0,c.useCallback)(((t,n)=>o("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,o])]}},67124:(e,t,n)=>{"use strict";var r=n(59284),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>S,Ay:()=>E,ds:()=>T,zR:()=>N,Yv:()=>_,Zd:()=>C});var r=n(97091),i=n(53850),o=n(44992),a=n(67087),s=n(87842),l=n(370);const c=l.z.object({url:l.z.string().url()});function u({traceView:e}){try{return{traceView:e?c.parse(JSON.parse(e)):void 0}}catch(t){console.error("Error parsing trace fields:",t)}return{}}var d=n(98730),f=n(76086),p=n(11822),h=n(21334),m=n(24600);function g(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:i,CurrentAllocatedSize:o,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(o)||0,d=Number(i)||0,f=n&&"string"===typeof n&&(e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r})(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const v=e=>{var t,n;return g(null===(t=(0,p.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const y=localStorage.getItem(f.fY);let b;b=(0,s.eC)(y)?y:s.Bi.overview;const w={defaultClusterTab:b},x=(0,r.Z0)({name:"cluster",initialState:w,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function _(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(f.fY,e),t(x.actions.setDefaultClusterTab(e)))}}const E=x.reducer,S=h.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getClusterInfo(e,{signal:t}),i=r.Domain;if(!i)return{data:{clusterData:r}};if((0,d.L)(r))return{data:{clusterData:r,groupsStats:(n=r,g(n.StorageStats))}};try{const e=`${f.Zi}\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\nFROM \`.sys/ds_storage_stats\`\nORDER BY CurrentGroupsCreated DESC;\n`,t=await window.api.viewer.sendQuery({query:e,database:i,action:"execute-scan"});return(0,p.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:v(t)}}}catch{return{data:{clusterData:r}}}}catch(r){return{error:r}}var n},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,{signal:t})=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getClusterBaseInfo(e,{signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});function C(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=S.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:o.hT),{solomon:r,name:i,trace_view:s,...l}=n||{};return{...l,...u({traceView:s}),name:null!==(e=null!==i&&void 0!==i?i:t)&&void 0!==e?e:void 0,monitoring:r}}const k=(0,i.Mz)((e=>e),(e=>S.endpoints.getClusterInfo.select(e))),O=(0,i.Mz)((e=>e),((e,t)=>k(t)),((e,t)=>t(e).data)),N=(0,i.Mz)(((e,t)=>t),((e,t)=>O(e,t)),((e,t)=>{var n;return e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(null===t||void 0===t||null===(n=t.clusterData)||void 0===n?void 0:n.Domain)||f.QM})),T=(0,i.Mz)(((e,t)=>O(e,t)),(e=>(0,m.K)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{var n;const r=void 0===e.NodeId||null===(n=t.get(e.NodeId))||void 0===n?void 0:n.Host;return{...e,fqdn:r}})):r:[]}))},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,i=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,i.om)("root")({mobile:!0}).split(/\s+/)[1]},67530:(e,t,n)=>{var r=n(21551),i=n(54736),o=n(96294);e.exports=function(e){return r(e,o,i)}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),i=n(69220),o=n(11669);const a=(0,i.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:i,target:s,rel:l,title:c,children:u,extraProps:d,onClick:f,onFocus:p,onBlur:h,id:m,style:g,className:v,qa:y},b){const w={title:c,onClick:f,onClickCapture:r.useCallback((e=>{o.o.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:p,onBlur:h,id:m,style:g,className:a({view:e,visitable:t,underline:n},v),"data-qa":y},x="_blank"!==s||l?l:"noopener noreferrer";return r.createElement("a",Object.assign({},d,w,{ref:b,href:i,target:s,rel:x}),u)}))},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},68097:(e,t,n)=>{var r=n(19305),i=n(46626),o=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},68414:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},68489:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},68643:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>c,I4:()=>u,Ox:()=>a,RE:()=>i,TL:()=>l,i9:()=>d,p2:()=>s});var r=n(53850);const i=n(21334).F.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.viewer.getClusterCapabilities(e)}}catch(t){return{error:t}}}}),getMetaCapabilities:e.query({queryFn:async()=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getMetaCapabilities()}}catch(e){return{error:e}}}})}),overrideExisting:"throw"}),o=(0,r.Mz)((e=>e),(e=>i.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>o(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Capabilities)||void 0===i?void 0:i[t]})),l=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i,o;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Settings)||void 0===i||null===(o=i.Security)||void 0===o?void 0:o[t]}));async function c(e,t,{dispatch:n,getState:r}){const o=i.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(o),s(r(),e,t)||0}const u=i.endpoints.getMetaCapabilities.select({}),d=(0,r.Mz)((e=>e),((e,t)=>t),((e,t)=>{var n,r;return null===(n=u(e).data)||void 0===n||null===(r=n.Capabilities)||void 0===r?void 0:r[t]}))},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},69024:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,j:()=>i});var r=n(59284);function i(e,t){return e.map((e=>{var n;let r;e.sub&&(r=i(e.sub,t));const o=null!==(n=t[e.name])&&void 0!==n?n:e.width;return Object.assign(Object.assign({},e),{width:o,sub:r})}))}function o({saveSizes:e,getSizes:t}){const[n,i]=r.useState((()=>t()));return[n,r.useCallback(((t,n)=>{i((r=>{const i=Object.assign(Object.assign({},r),{[t]:n});return e(i),i}))}),[e])]}},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),i=n(55330),o=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(i.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,o.nR)(e),getClosestMediaProps:(0,o.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>v});var r=n(14750),i=n(97091),o=n(76086),a=n(959),s=n(11822),l=n(21334);const c="EndTime",u="IntervalEnd";function d(e){var t,n;const i=[],o=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&o&&a>o)throw new Error("Invalid date range");if(a){const e=o===a?">=":">";i.push(`${c} ${e} Timestamp('${new Date(a).toISOString()}')`)}return o&&i.push(`${c} <= Timestamp('${new Date(o).toISOString()}')`),a||o||i.push(`${u} IN (\n SELECT\n MAX(${u})\n FROM \`.sys/top_queries_by_cpu_time_one_hour\`\n)`),null!==e&&void 0!==e&&e.text&&i.push(`(QueryText ILIKE '%${e.text}%' OR UserSID ILIKE '%${e.text}%')`),i.join(" AND ")}const f=(0,i.Z0)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:p}=f.actions,h=f.reducer,m=(e,t)=>{const n=d(e),r=(0,a.JD)(t);return`${o.Zi}\nSELECT\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${n||"true"} AND QueryText NOT LIKE '%${o.Zi}%'\n${r}\nLIMIT 100\n`};function g(e,t){const n=null!==e&&void 0!==e&&e.text?`Query ILIKE '%${e.text}%' OR UserSID ILIKE '%${e.text}%'`:"",r=(0,a.JD)(t);return`${o.Zi}\nSELECT\n UserSID, \n QueryStartAt, \n Query as QueryText, \n ApplicationName\nFROM \`.sys/query_sessions\`\nWHERE ${n||"true"} AND Query NOT LIKE '%${o.Zi}%'\n${r}\nLIMIT 100`}const v=l.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const i={...t,from:(null===t||void 0===t?void 0:t.from)||"now-1h",to:(null===t||void 0===t?void 0:t.to)||"now"};try{const t=await window.api.viewer.sendQuery({query:m(i,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,s.We)(t))throw t;return{data:(0,s.fW)(t)}}catch(o){return{error:o}}},forceRefetch:({currentArg:e})=>{var t,n,i,o;return!(null!==e&&void 0!==e&&null!==(t=e.filters)&&void 0!==t&&t.from&&null!==e&&void 0!==e&&null!==(n=e.filters)&&void 0!==n&&n.to&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.from)&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const i=await window.api.viewer.sendQuery({query:g(t,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,s.We)(i))throw i;return{data:(0,s.fW)(i)}}catch(i){return{error:i}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),i=n(55330);const o={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?o:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((([e,t])=>t.matches));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((([t,n])=>n.addEventListener("change",e)))}removeListeners(e){this.queryListsDecl.forEach((([t,n])=>n.removeEventListener("change",e)))}}const l=(e,t="s")=>{const[n,i]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{i(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(17148),u=n.n(c);function d({children:e,config:t,initialMediaQuery:n}){const o=r.useContext(i.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:o.theme,override:t})),[t,o.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(i.M.Provider,{value:c},e)}var f=n(69220),p=n(42933);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.om)(y),x=w();function _({theme:e,nativeScrollbar:t=!1,className:n,prevClassName:r}){const i=document.body;if(i.classList.contains(x)||i.classList.add(x),r){r.split(" ").forEach((e=>{e&&i.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!i.classList.contains(e)&&i.classList.add(e)}))}[...i.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&i.classList.remove(e)})),i.classList.add((0,f.Nx)(w({theme:e})));const o={"native-scrollbar":t};for(const[a,s]of Object.entries(o))i.classList.toggle((0,f.Nx)(w({[a]:!0})),s)}const E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function C(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const k=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:i,nativeScrollbar:o,scoped:a=!1,rootClassName:s="",children:l,layout:c}){var u,f,y,w;const x=r.useContext(p.D),E=r.useContext(h),S=void 0!==x||a,O=null!==(u=null===x||void 0===x?void 0:x.theme)&&void 0!==u?u:m,N=null!==e&&void 0!==e?e:O,T=null!==(f=null!==t&&void 0!==t?t:null===E||void 0===E?void 0:E.systemLightTheme)&&void 0!==f?f:g,A=null!==(y=null!==n&&void 0!==n?n:null===E||void 0===E?void 0:E.systemDarkTheme)&&void 0!==y?y:v,I=null!==(w=null===x||void 0===x?void 0:x.direction)&&void 0!==w?w:b,P=null!==i&&void 0!==i?i:I,R="light"===C()?T:A,D="system"===N?R:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:D,nativeScrollbar:o,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(P),j.current=s)}),[S,D,P,o,s]);const M=r.useMemo((()=>({theme:N,themeValue:D,direction:P,scoped:S})),[N,D,P,S]),L=r.useMemo((()=>({systemLightTheme:T,systemDarkTheme:A})),[T,A]);return r.createElement(d,Object.assign({},c),r.createElement(p.D.Provider,{value:M},r.createElement(h.Provider,{value:L},S?r.createElement("div",{className:k({theme:D,"native-scrollbar":!1!==o},s),dir:P},l):l)))}O.displayName="ThemeProvider"},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,I="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(42634),M=j.custom,L=H(M)?M:null,z={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var r=n.quoteStyle||t,i=z[r];return i+e+i}function U(e){return b.call(String(e),/"/g,""")}function $(e){return"[object Array]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function q(e){return"[object RegExp]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function H(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(W(l,"quoteStyle")&&!W(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?D(t,_):_}if("bigint"===typeof t){var k=String(t)+"n";return w?D(t,k):k}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=N&&N>0&&"object"===typeof t)return $(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,i);if("undefined"===typeof s)s=[];else if(G(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=C.call(s)).push(n),r){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!q(t)){var V=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Q=te(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Q.length>0?" { "+S.call(Q,", ")+" }":"")}if(H(t)){var ne=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||A?ne:Z(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+x.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)re+=" "+ie[oe].name+"="+B(U(ie[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+x.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ae=te(t,F);return M&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,M)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(F(n,t,!0)+" => "+F(e,t))})),X("Map",o.call(t),le,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(F(e,t))})),X("Set",c.call(t),ce,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return J("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return J("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Z(F(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(h.call(t));if(function(e){return"[object String]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)&&!q(t)){var ue=te(t,F),de=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?y.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+S.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":M?he+"{"+ee(ue,M)+"}":he+"{ "+S.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,B(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Q),"single",t)}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):S.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=$(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var o,a="function"===typeof N?N(e):[];if(A){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)P.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>i,Nx:()=>a,om:()=>o});var r=n(82435);const i="g-",o=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:i,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},69310:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},69426:e=>{"use strict";e.exports=Function.prototype.apply},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>i,PG:()=>r,Zd:()=>o});const r=e=>e.replace(/\/viewer\/json/,""),i=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const i=n[0];return{balancer:t.replace(i+"/",""),proxy:i}},o=e=>i(e).balancer.replace(/:\d+$/,"")},70084:e=>{"use strict";e.exports=Function.prototype.call},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},70911:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},71153:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},71259:(e,t,n)=>{var r=n(80472),i=n(61872),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},71661:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(84375),i=n(77506),o=n(60712);const a=(0,i.cn)("ydb-cell-with-popover"),s=100;function l({children:e,className:t,wrapperClassName:n,fullWidth:i,...l}){return(0,o.jsx)("div",{className:a({"full-width":i},n),children:(0,o.jsx)(r.A,{delayClosing:s,delayOpening:s,className:a("popover",{"full-width":i},t),...l,children:e})})}},71765:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeZonesList=t.guessUserTimeZone=void 0,t.isValidTimeZone=s,t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,i=c(n,r);if(t===i)return[r,t];var o=c(n,r-=60*(i-t)*1e3);if(i===o)return[r,i];return[e-60*Math.min(i,o)*1e3,Math.min(i,o)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,i=e.locale,o=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:o},s),c=new Intl.DateTimeFormat(i,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""};var i=n(72328),o=n(16572);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,i={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,o.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?i.era=f:(r=d,l.includes(r)&&(i[d]=parseInt(f,10)))}var p="BC"===i.era?1-Math.abs(i.year):i.year,h=i.month-1,m=24===i.hour?0:i.hour,g=Date.UTC(p,h,i.day,m,i.minute,i.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,i.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return i.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}},71824:(e,t,n)=>{var r=n(48303),i=n(54074),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},71928:(e,t,n)=>{const r=n(69310),i=n(16284);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},72220:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},72328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(22551),t),i(n(95197),t),i(n(71165),t)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(58168),i=n(98587),o=n(25540);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59284),l=n(48681);const c=!1;var u=n(10641),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=p,r.appearStatus=h):i=m:i=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[l.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:h},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&w(e,r),i&&w(e,i),o&&w(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return s.createElement(b,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);x.defaultProps={classNames:""},x.propTypes={};const _=x},72633:(e,t,n)=>{var r=n(47018),i=n(29355)(r);e.exports=i},72665:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),i=n(3357);const{lang:o,fallbackLang:a}=(0,i.zj)(),s=new r.TH({lang:o,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,i.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>o,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",i="DISABLE_FULLSCREEN_MODE";function o(){return{type:r}}function a(){return{type:i}}const s=function(e=false,t){switch(t.type){case i:return!1;case r:return!0;default:return e}}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},73148:(e,t,n)=>{var r=n(44735),i=n(90552),o=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},73289:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>C,Ay:()=>S,tS:()=>A,JK:()=>T,JO:()=>H,nO:()=>O,TY:()=>q,py:()=>F,Kz:()=>z,jY:()=>L,$u:()=>E,wf:()=>U,yJ:()=>B,Wp:()=>$,Xb:()=>M,Ni:()=>P,Id:()=>I});var r=n(97091),i=n(53850),o=n(59001),a=n(11822);const s={[a.PB.off]:0,[a.PB.toplevel]:4,[a.PB.basic]:9,[a.PB.detailed]:13,[a.PB.diagnostic]:14,[a.PB.trace]:15};var l=n(76086),c=n(41650),u=n(21334);const d=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function f(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,r]of Object.entries(e))d.has(t)||n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function p(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function h(e){const t=[],n=[];const r=e,i={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:p(r),name:r["Node Type"]}};return t.push(i),function e(r=[],i){r.forEach((r=>{var o;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:p(r),name:r["Node Type"],operators:null===(o=r.Operators)||void 0===o?void 0:o.map((e=>e.Name)),stats:f(r),tables:r.Tables}};t.push(a),n.push({from:i,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,i.name),{nodes:t,links:n}}const m=Object.values({v2:"0.2"});function g(e,t){var n,r,i;if(e){const{tables:t,meta:n,Plan:r,SimplifiedPlan:i}=(0,a.UF)(e);if(-1===m.indexOf(n.version))return{pristine:e,version:n.version};let o,s=[],l=[];if(r){const e=h(r);s=e.links,l=e.nodes}return i&&(o=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:i}=n.pop(),o=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=i||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":i,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:i,eSize:l,children:[]};if(s.push(f),o)for(let a=o.length-1;a>=0;a--)n.push({node:o[a],subNodes:f.children})}else if(o)for(let t=o.length-1;t>=0;t--)n.push({node:o[t],subNodes:s})}return t}([i])),{links:s,nodes:l,tables:t,version:n.version,pristine:e,simplifiedPlan:i?{plan:o,pristine:i}:void 0}}const o=null===t||void 0===t||null===(n=t.Executions)||void 0===n||null===(r=n[0])||void 0===r||null===(i=r.TxPlansWithStats)||void 0===i?void 0:i[0];if(o)try{const e=JSON.parse(o);return{...h(e),pristine:e}}catch{return{}}return{}}function v(e){const t=(0,a.fW)(e),{plan:n,stats:r}=t,{simplifiedPlan:i,...o}=g(n,r);return{...t,preparedPlan:Object.keys(o).length>0?o:void 0,simplifiedPlan:i}}var y=n(80971);const b=o.f.readUserSettingsValue(l.MB,[]),w=b.length-20,x={input:"",isDirty:!1,history:{queries:b.slice(w<0?0:w).map(y.QG),currentIndex:b.length>20?19:b.length-1,filter:""}},_=(0,r.Z0)({name:"query",initialState:x,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setIsDirty:(e,t)=>{e.isDirty=t.payload},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,i=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);o.f.setUserSettingsValue(l.MB,i);const a=i.length-1;e.history={queries:i,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const i=e.history.queries.findIndex((e=>e.queryId===n));if(-1===i)return;const a=[...e.history.queries],{durationUs:s,endTime:c}=r;a.splice(i,1,{...e.history.queries[i],durationUs:s,endTime:c}),o.f.setUserSettingsValue(l.MB,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload},setStreamSession:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=v(null));const n=t.payload;e.result.isLoading=!0,e.result.queryId=n.meta.query_id,e.result.data.traceId=n.meta.trace_id},addStreamingChunks:(e,t)=>{if(!e.result)return;e.result.data=e.result.data||v(null),e.result.data.resultSets=e.result.data.resultSets||[];const n=t.payload.reduce(((e,t)=>{const n=t.meta.result_index,r=e.get(n);var i;r?(null===(i=r.result.rows)||void 0===i||i.push(...t.result.rows||[]),r.result.truncated=r.result.truncated||t.result.truncated):e.set(n,{...t,result:{...t.result,rows:t.result.rows||[],truncated:t.result.truncated}});return e}),new Map);for(const[i,o]of n.entries()){var r;const{columns:t,rows:n}=o.result,s=e.result.data.resultSets;s[i]||(s[i]={columns:[],result:[],truncated:!1});const l=s[i];!t||null!==(r=l.columns)&&void 0!==r&&r.length||(l.columns=t);const c=n||[];(0,a.F)(c,l.columns||[]).forEach((e=>{var t;null===(t=l.result)||void 0===t||t.push(e)})),l.truncated=o.result.truncated}},setStreamQueryResponse:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=v(null)),e.result.isLoading=!1;const n=t.payload;if("error"in n)e.result.error=n;else if("plan"in n){e.result.data||(e.result.data=v(null));const{plan:t,stats:r}=n,{simplifiedPlan:i,...o}=g(t,r);e.result.data.preparedPlan=Object.keys(o).length>0?o:void 0,e.result.data.simplifiedPlan=i,e.result.data.plan=n.plan,e.result.data.stats=n.stats}e.result.endTime=Date.now()}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectResult:e=>e.result,selectStartTime:e=>{var t;return null===(t=e.result)||void 0===t?void 0:t.startTime},selectEndTime:e=>{var t;return null===(t=e.result)||void 0===t?void 0:t.endTime},selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectIsDirty:e=>e.isDirty,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),E=(0,i.Mz)(_.selectors.selectStartTime,_.selectors.selectEndTime,((e,t)=>({startTime:e,endTime:t}))),S=_.reducer,{changeUserInput:C,setQueryResult:k,saveQueryToHistory:O,updateQueryInHistory:N,goToPreviousQuery:T,goToNextQuery:A,setTenantPath:I,setQueryHistoryFilter:P,addStreamingChunks:R,setStreamQueryResponse:D,setStreamSession:j,setIsDirty:M}=_.actions,{selectQueriesHistoryFilter:L,selectQueriesHistoryCurrentIndex:z,selectQueriesHistory:F,selectTenantPath:B,selectResult:U,selectUserInput:$,selectIsDirty:q}=_.selectors,H=u.F.injectEndpoints({endpoints:e=>({useStreamQuery:e.mutation({queryFn:async({query:e,database:t,querySettings:n={},enableTracingLevel:r},{signal:i,dispatch:o,getState:a})=>{const l=Date.now();o(k({type:"execute",queryId:"",isLoading:!0,startTime:l}));const{action:u,syntax:d}=(0,y.AH)("execute",null===n||void 0===n?void 0:n.queryMode);try{let a=[],l=null;const f=()=>{a.length>0&&(o(R(a)),a=[]),l=null};return await window.api.streaming.streamQuery({query:e,database:t,action:u,syntax:d,stats:n.statisticsMode,tracingLevel:n.tracingLevel&&r?s[n.tracingLevel]:void 0,limit_rows:(0,c.kf)(n.limitRows)?Number(n.limitRows):void 0,transaction_mode:"implicit"===n.transactionMode?void 0:n.transactionMode,timeout:(0,c.kf)(n.timeout)?1e3*Number(n.timeout):void 0,output_chunk_max_size:1e3,concurrent_results:void 0},{signal:i,onSessionChunk:e=>{o(j(e))},onStreamDataChunk:e=>{a.push(e),l||(l=window.requestAnimationFrame(f))},onQueryResponseChunk:e=>{o(D(e))}}),l&&(window.cancelAnimationFrame(l),f()),{data:null}}catch(p){var f;const e=a();return o(k({...e.query.result,type:"execute",error:p,isLoading:!1,startTime:l,endTime:Date.now(),queryId:(null===(f=e.query.result)||void 0===f?void 0:f.queryId)||""})),{error:p}}}}),useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:i,queryId:o},{signal:l,dispatch:u})=>{const d=Date.now();u(k({type:e,queryId:o,isLoading:!0,startTime:d}));const{action:f,syntax:p}=(0,y.AH)(e,null===r||void 0===r?void 0:r.queryMode);try{var h;const m=Date.now(),g=await window.api.viewer.sendQuery({query:t,database:n,action:f,syntax:p,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&i?s[r.tracingLevel]:void 0,limit_rows:(0,c.kf)(r.limitRows)?Number(r.limitRows):void 0,transaction_mode:"implicit"===r.transactionMode?void 0:r.transactionMode,timeout:(0,c.kf)(r.timeout)?1e3*Number(r.timeout):void 0,query_id:o},{signal:l});if((0,a.We)(g))return u(k({type:e,error:g,isLoading:!1,queryId:o,startTime:d,endTime:Date.now()})),{error:g};const y=v(g);if(y.traceId=null===g||void 0===g||null===(h=g._meta)||void 0===h?void 0:h.traceId,"execute"===e){const e={};if(y.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=y.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-m),e.endTime=t}u(N({stats:e,queryId:o}))}return u(k({type:e,data:y,isLoading:!1,queryId:o,startTime:d,endTime:Date.now()})),{data:null}}catch(m){return u(k({type:e,error:m,isLoading:!1,queryId:o,startTime:d,endTime:Date.now()})),{error:m}}}})}),overrideExisting:"throw"})},73620:e=>{"use strict";e.exports=Math.max},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.078.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.325.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.54.54 0 0 0 .075-.312c0-.3-.244-.641-.84-.641a1 1 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 0 1-1.5 0c0-.674.345-1.22.78-1.577M8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"}))},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},73759:e=>{"use strict";e.exports=Error},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},73888:(e,t,n)=>{"use strict";var r=n(7445),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},73891:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>c,Xo:()=>u,i6:()=>h,ee:()=>f,MC:()=>m,Jc:()=>g});var r=n(76086),i=n(56839),o=n(48372);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,o.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let i=Math.floor(e/1e3);const o=Math.floor(i/r.tt);i%=r.tt;const a=Math.floor(i/r.Jg);i%=r.Jg;const s=Math.floor(i/60);i%=60;const c=i,u={days:o,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(o>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(o>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,i.ZV)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.zz:0),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(41650);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=(e,t=0)=>e&&(0,p.kf)(e)?(0,i.CR)(Number(e)/1e3,t):0},74309:(e,t,n)=>{"use strict";var r=n(93780),i=n(77146),o=n(7445);e.exports={formats:o,parse:i,stringify:r}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},74413:(e,t,n)=>{var r=n(7804);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(59284);const i=(0,n(69220).om)("loader");function o({size:e="s",className:t,qa:n}){return r.createElement("div",{className:i({size:e},t),"data-qa":n},r.createElement("div",{className:i("left")}),r.createElement("div",{className:i("center")}),r.createElement("div",{className:i("right")}))}},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},75125:(e,t,n)=>{var r=n(98137),i=n(94305)(r);e.exports=i},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>j,Ed:()=>g,GV:()=>F,Gj:()=>ie,Hh:()=>m,IO:()=>re,J0:()=>W,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>ee,LQ:()=>T,MB:()=>A,Mt:()=>Y,N3:()=>U,Nz:()=>b,Pd:()=>w,QM:()=>E,RY:()=>I,T5:()=>_,TJ:()=>O,U0:()=>oe,Xm:()=>J,YQ:()=>V,Zi:()=>x,av:()=>P,bk:()=>y,bs:()=>G,bz:()=>te,c4:()=>q,eh:()=>o,fY:()=>B,fr:()=>H,g5:()=>Q,hh:()=>z,iD:()=>R,jQ:()=>M,jS:()=>k,jX:()=>L,jp:()=>$,k4:()=>C,kO:()=>ne,l_:()=>D,ld:()=>N,lr:()=>Z,oK:()=>S,pg:()=>a,r0:()=>u,s2:()=>X,tt:()=>f,zk:()=>K,zz:()=>h});var r=n(4557),i=n(6354);const o=1e3,a=1e6,s=1e9,l=1e12,c=1e3,u=60,d=60*u,f=24*d,p=7*f,h=1e6,m=85,g=95,v={[i.e.OldTxProxy]:"P",[i.e.TxProxy]:"P",[i.e.BSController]:"BS",[i.e.Dummy]:"DY",[i.e.RTMRPartition]:"RP",[i.e.PersQueueReadBalancer]:"PB",[i.e.Cms]:"CM",[i.e.BlockStorePartition]:"BP",[i.e.BlockStoreVolume]:"BV",[i.e.Console]:"CN",[i.e.TenantSlotBroker]:"TB",[i.e.BlockStoreDiskRegistry]:"BDR"},y=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in v)(e)?v[e]:n},b=5,w="\u2014",x="/*UI-QUERY-EXCLUDE*/",_="Developer UI",E="Cluster",S="Database",C="theme",k="language",O="invertedDisks",N="saved_queries",T="asideHeaderCompact",A="queries_history",I="binaryDataInPlainTextDisplay",P="auto-refresh-interval",R="caseSensitiveJsonSearch",D="default-size-result-pane",j="default-size-tenant-summary-pane",M="default-size-tenant-pane",L="default-is-tenant-summary-collapsed",z="default-is-tenant-common-info-collapsed",F="default-is-query-result-collapsed",B="default-cluster-tab",U={displayIndices:!1,stickyHead:r.Ay.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},$={...U,stickyHead:"fixed",dynamicRender:!1,sortable:!1},q="queryExecutionSettings",H="last_query_execution_settings",V="querySettingsBannerLastClosed",W="queryStoppedBannerClosed",K="last_used_query_action",G="partitionsHiddenColumns",Y="saved_tenant_initial_tab",Q="enableNetworkTable",Z="useShowPlanToSvg",J="showDomainDatabase",X="useClusterBalancerAsBacked",ee="enableAutocomplete",te="enableCodeAssistant",ne="enableQueryStreaming",re="autocompleteOnEnter",ie="isHotKeysHelpHidden",oe="enable_tracing_for_all_requests"},76575:(e,t,n)=>{"use strict";var r=n(59284),i=n(99158);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case C:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,Se=null;function Ce(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function ke(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Ne(e,t,n)}finally{Ae=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Re=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Re=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Re=!1}function je(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,i,o,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ze=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,Et,St,Ct,kt=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Pt=new Map,Rt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){kt=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),It.forEach(Ft),Pt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function $t(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==At&&Ut(At,e),It.forEach(t),Pt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.shift()}var qt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Wt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Kt(e,t,n,r){if(Ht){var i=Yt(e,t,n,r);if(null===i)Hr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return At=Mt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Mt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Yt(e,t,n,r))&&Hr(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=yi(e=xe(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return Sn}var kn=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(kn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Rn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Dn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Vn(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Kn=null;function Gn(e){zr(e,0)}function Yn(e){if(K(wi(e)))return e}function Qn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Kn=Wn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Vn(t,Kn,e,xe(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Wr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Sr={};function Cr(e){if(Er[e])return Er[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var kr=Cr("animationend"),Or=Cr("animationiteration"),Nr=Cr("animationstart"),Tr=Cr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ar.set(e,t),l(t,[e])}for(var Rr=0;Rr<Ir.length;Rr++){var Dr=Ir[Rr];Pr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Pr(kr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Nr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Qt(t)){case 1:var i=Vt;break;case 4:i=Wt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=o,i=xe(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Or:case Nr:l=vn;break;case Tr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Pe(h,f))&&u.push(Vr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wi(l),p=null==c?s:wi(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Hn(s))if(Zn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Vn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=en()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,$n=!0)),0<(v=Wr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Xt=Jt=Zt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}zr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=Pe(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Pe(n,o))&&a.unshift(Vr(n,l,s)):i||null!=(l=Pe(n,o))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);$t(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var _i=[],Ei=-1;function Si(e){return{current:e}}function Ci(e){0>Ei||(e.current=_i[Ei],_i[Ei]=null,Ei--)}function ki(e,t){Ei++,_i[Ei]=e.current,e.current=t}var Oi={},Ni=Si(Oi),Ti=Si(!1),Ai=Oi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ri(){Ci(Ti),Ci(Ni)}function Di(e,t,n){if(Ni.current!==Oi)throw Error(o(168));ki(Ni,t),ki(Ti,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,q(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ai=Ni.current,ki(Ni,e),ki(Ti,Ti.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ji(e,t,Ai),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ti),Ci(Ni),ki(Ni,e)):Ci(Ti),ki(Ti,n)}var zi=null,Fi=!1,Bi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function $i(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=bt;try{var n=zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Fi=!1}catch(i){throw null!==zi&&(zi=zi.slice(e+1)),Ke(Xe,$i),i}finally{bt=t,Bi=!1}}return null}var qi=[],Hi=0,Vi=null,Wi=0,Ki=[],Gi=0,Yi=null,Qi=1,Zi="";function Ji(e,t){qi[Hi++]=Wi,qi[Hi++]=Vi,Vi=e,Wi=t}function Xi(e,t,n){Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Yi=e;var r=Qi;e=Zi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Qi=1<<32-at(t)+i|n<<i|r,Zi=o+e}else Qi=1<<o|n<<i|r,Zi=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Vi;)Vi=qi[--Hi],qi[Hi]=null,Wi=qi[--Hi],qi[Hi]=null;for(;e===Yi;)Yi=Ki[--Gi],Ki[Gi]=null,Zi=Ki[--Gi],Ki[Gi]=null,Qi=Ki[--Gi],Ki[Gi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yi?{id:Qi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===P&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case P:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||j(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((o=jc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Dc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(a,r.mode,l)).return=r,r=o}return s(r);case P:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(j(a))return g(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var xo=wo(!0),_o=wo(!1),Eo=Si(null),So=null,Co=null,ko=null;function Oo(){ko=Co=So=null}function No(e){var t=Eo.current;Ci(Eo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){So=e,ko=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===So)throw Error(o(308));Co=e,So.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Po=null;function Ro(e){null===Po?Po=[e]:Po.push(e)}function Do(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,jo(e,r)}function jo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jo(e,n)}return null===(i=r.interleaved)?(t.next=t,Ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,jo(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function $o(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qo(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Vo={},Wo=Si(Vo),Ko=Si(Vo),Go=Si(Vo);function Yo(e){if(e===Vo)throw Error(o(174));return e}function Qo(e,t){switch(ki(Go,t),ki(Ko,e),ki(Wo,Vo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Wo),ki(Wo,t)}function Zo(){Ci(Wo),Ci(Ko),Ci(Go)}function Jo(e){Yo(Go.current);var t=Yo(Wo.current),n=le(t,e.type);t!==n&&(ki(Ko,e),ki(Wo,n))}function Xo(e){Ko.current===e&&(Ci(Wo),Ci(Ko))}var ea=Si(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Xa:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ia(9,ka.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&aa)||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(e){var t=jo(e,1);null!==t&&nc(t,e,1,-1)}function Aa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Ra(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function ja(e,t){return Ra(8390656,8,e,t)}function Ma(e,t){return Da(2048,8,e,t)}function La(e,t){return Da(4,2,e,t)}function za(e,t){return Da(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4,4,Fa.bind(null,t,e),n)}function Ua(){}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Wa(){return ba().memoizedState}function Ka(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Qa(t,n);else if(null!==(n=Do(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function Ga(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ro(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Do(e,t,i,r))&&(nc(n,e,r,i=ec()),Za(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Io,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Aa,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));0!==(30&aa)||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(io){var n=Zi;t=":"+t+"R"+(n=(Qi&~(1<<32-at(Qi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:$a,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:qa,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:$a,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:qa,useReducer:_a,useRef:Pa,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nc(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=Pi(t)?Ai:Ni.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=Pi(t)?Ai:Ni.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),qo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function hs(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_o(t,null,n,r):xo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Ao(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Pc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Rc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return ks(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Rl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Rl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Rl,Pl),Pl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Rl,Pl),Pl|=r;return ws(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Pi(n)?Ai:Ni.current;return o=Ii(t,o),Ao(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Os(e,t,n,r,i){if(Pi(n)){var o=!0;Mi(t)}else o=!1;if(Ao(t,i),null===t.stateNode)qs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Io(c):c=Ii(t,c=Pi(n)?Ai:Ni.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mo=!1;var f=t.memoizedState;a.state=f,qo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ti.current||Mo?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Io(l):l=Ii(t,l=Pi(n)?Ai:Ni.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mo=!1,f=t.memoizedState,a.state=f,qo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ti.current||Mo?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mo||os(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,i)}function Ns(e,t,n,r,i,o){Cs(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Hs(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),Qo(e,t.containerInfo)}function As(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ps,Rs,Ds,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,i,0,null),e=jc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Mc({mode:"visible",children:r.children},i,0,null),(a=jc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xo(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,jo(e,i),nc(r,e,i,-1))}return mc(),Fs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Qi=e.id,Zi=e.overflow,Yi=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Rc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Rc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),xo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $s(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Pi(t.type)&&Ri(),Ws(t),null;case 3:return r=t.stateNode,Zo(),Ci(Ti),Ci(Ni),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ps(e,t),Ws(t),null;case 5:Xo(t);var i=Yo(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Yo(Wo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),X(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Q(e,r),i=Y(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":W(e),X(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Yo(Go.current),Yo(Wo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ci(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Dl&&(Dl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Zo(),Ps(e,t),null===e&&$r(t.stateNode.containerInfo),Ws(t),null;case 10:return No(t.type._context),Ws(t),null;case 19:if(Ci(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Dl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>$l&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ze()-a.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Pi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),Ci(Ti),Ci(Ni),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(Ci(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ea),null;case 4:return Zo(),null;case 10:return No(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Rs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yo(Wo.current);var o,a=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Qs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var r=ul,i=dl;ul=null,fl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),$t(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));pl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Ze())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==h?(h.return=p,Js=h):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ys;var c=Qs;if(Ys=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(i):null!==l?(l.return=a,Js=l):_l(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Ys=s,Qs=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ho(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&il(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{il(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Sl=Math.ceil,Cl=w.ReactCurrentDispatcher,kl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Pl=0,Rl=Si(0),Dl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,$l=1/0,ql=null,Hl=!1,Vl=null,Wl=null,Kl=!1,Gl=null,Yl=0,Ql=0,Zl=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Ze():-1!==Jl?Jl:Jl=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Il?Il&-Il:null!==go.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nc(e,t,n,r){if(50<Ql)throw Ql=0,Zl=null,Error(o(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Dl&&sc(e,Il)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&($l=Ze()+500,Fi&&$i()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Tl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fi=!0,Ui(e)}(lc.bind(null,e)):Ui(lc.bind(null,e)),ai((function(){0===(6&Nl)&&$i()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(o(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Nl;Nl|=2;var a=hc();for(Tl===e&&Il===t||(ql=null,$l=Ze()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oo(),Cl.current=a,Nl=i,null!==Al?t=0:(Tl=null,Il=0,t=Dl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=oc(e,i))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=oc(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,Bl,ql);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Bl,ql),t);break}xc(e,Bl,ql);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Bl,ql),r);break}xc(e,Bl,ql);break;default:throw Error(o(329))}}}return rc(e,Ze()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Nl))throw Error(o(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,ql),rc(e,Ze()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&($l=Ze()+500,Fi&&$i())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&_c();var t=Nl;Nl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Nl=t))&&$i()}}function dc(){Pl=Rl.current,Ci(Rl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ri();break;case 3:Zo(),Ci(Ti),Ci(Ni),ra();break;case 5:Xo(r);break;case 4:Zo();break;case 13:case 19:Ci(ea);break;case 10:No(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Rc(e.current,null),Il=Pl=t,Dl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Po){for(t=0;t<Po.length;t++)if(null!==(r=(n=Po[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Po=null}return e}function pc(e,t){for(;;){var n=Al;try{if(Oo(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,kl.current=null,null===n||null===n.return){Dl=1,jl=t,Al=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Dl&&(Dl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,$o(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,$o(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=Ja,null===e?Ja:e}function mc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Il)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Il===t||(ql=null,fc(e,t));;)try{vc();break}catch(i){pc(e,i)}if(Oo(),Nl=n,Cl.current=r,null!==Al)throw Error(o(261));return Tl=null,Il=0,Dl}function vc(){for(;null!==Al;)bc(Al)}function yc(){for(;null!==Al&&!Ye();)bc(Al)}function bc(e){var t=El(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,kl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Pl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Dl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Dl&&(Dl=5)}function xc(e,t,n){var r=bt,i=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Nl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Tl&&(Al=Tl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Tc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,kl.current=null,function(e,t){if(ei=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Qe(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Yl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Zl?Ql++:(Ql=0,Zl=e):Ql=0,$i()}(e,t,n,r)}finally{Ol.transition=i,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Nl))throw Error(o(331));var i=Nl;for(Nl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(ol(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Nl=i,$i(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bo(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Bo(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(130023424&Il)===Il&&500>Ze()-Ul?fc(e,0):zl|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=jo(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),kc(e,n)}function Tc(e,t){return Ke(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Ac(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,i,a,t);case S:s=8,i|=8;break;case C:return(e=Ic(12,n,t,2|i)).elementType=C,e.lanes=a,e;case T:return(e=Ic(13,n,t,i)).elementType=T,e.lanes=a,e;case A:return(e=Ic(19,n,t,i)).elementType=A,e.lanes=a,e;case R:return Mc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case N:s=11;break e;case I:s=14;break e;case P:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,o,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Uc(e){if(!e)return Oi;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return ji(e,n,t)}return t}function $c(e,t,n,r,i,o,a,s,l){return(e=Bc(n,r,!0,e,0,o,0,s,l)).context=Uc(null),n=e.current,(o=Fo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Bo(n,o,i),e.current.lanes=i,vt(e,i,r),rc(e,r),e}function qc(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,a))&&(nc(e,i,a,o),Uo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),ho();break;case 5:Jo(t);break;case 1:Pi(t.type)&&Mi(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(ki(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return $s(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var i=Ii(t,Ni.current);Ao(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Os(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,zo(e,t),qo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=As(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=_o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),To(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ao(t,n),r=r(i=Io(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),_s(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),qs(e,t),t.tag=1,Pi(r)?(e=!0,Mi(t)):e=!1,Ao(t,n),as(t,r,i),ls(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return $s(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}qc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(a);o.call(e)}}var a=$c(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[hi]=a.current,$r(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[hi]=l.current,$r(8===e.nodeType?e.parentNode:e),uc((function(){qc(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));qc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){qc(null,e,null,null)})),t[hi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),0===(6&Nl)&&($l=Ze()+500,$i()))}break;case 13:uc((function(){var t=jo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},_t=function(e){if(13===e.tag){var t=jo(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=jo(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[bi,wi,xi,ke,Oe,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=$c(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,$r(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},76941:(e,t,n)=>{const r=n(22750).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let r=1;r<t-1;r++)o[r]=o[r-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),i=r.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||n.push([r[t],r[e]]);return n}},77146:(e,t,n)=>{"use strict";var r=n(73888),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var u="string"===typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},77390:(e,t,n)=>{"use strict";var r=n(31445);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>o,Vk:()=>a});var r=n(69446);const i="https://",o=(e,t)=>{const n=null!==(o=e)&&void 0!==o&&o.startsWith("vm-")?`u-${o}`:o;var o;const a=(0,r.M6)(t).proxy;return a?i+a+"/"+n:i+n},a=(e,t,n)=>{const{Host:i,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(i&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!i)return;return o(i+e,t)}}},77966:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(32213),t)},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}const o=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},78034:(e,t,n)=>{"use strict";n.d(t,{AB:()=>h,Bm:()=>c,DG:()=>u,Fo:()=>m,X7:()=>d,cW:()=>l,nN:()=>f,q1:()=>p});var r=n(370),i=n(88610),o=n(54090),a=n(76086),s=n(7435);let l=function(e){return e.All="All",e.SmallUptime="SmallUptime",e}({});const c=r.z.nativeEnum(l).catch(l.All),u={[l.All]:"All",[l.SmallUptime]:"Uptime < 1h"},d=e=>!e.SystemState||e.SystemState===o.m.Grey,f=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>{var n;(0,s.f8)(t.Id)&&e.set(t.Id,{Host:t.Host,DC:null===(n=t.PhysicalLocation)||void 0===n?void 0:n.DataCenterId});return e}),new Map);function p(e={}){var t,n,r,i,o,a;const l=(null===(t=e.Location)||void 0===t?void 0:t.Rack)||e.Rack,c=(null===(n=e.Location)||void 0===n?void 0:n.DataCenter)||e.DataCenter,u=null===e||void 0===e||null===(r=e.Tenants)||void 0===r?void 0:r[0],d=function(e={}){const{LoadAverage:t,NumberOfCpus:n,RealNumberOfCpus:r}=e,i=null!==r&&void 0!==r?r:n;if((0,s.f8)(t)&&i)return t.map((e=>100*e/i))}(e),f=Number(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.LimitBytes)||void 0,p=(0,s.f8)(null===(o=e.SharedCacheStats)||void 0===o?void 0:o.UsedBytes)?Number(null===(a=e.SharedCacheStats)||void 0===a?void 0:a.UsedBytes):void 0;return{...e,Rack:l,DC:c,LoadAveragePercents:d,TenantName:u,SharedCacheLimit:f,SharedCacheUsed:p}}const h=e=>e===i.s$.PROBLEMS,m=e=>e===l.SmallUptime?a.Jg:void 0},78195:(e,t,n)=>{var r=n(19418),i=n(9434),o=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},78212:(e,t,n)=>{const r=n(86849);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},78236:e=>{"use strict";e.exports=SyntaxError},78326:(e,t,n)=>{var r=n(68097),i=n(52964),o=n(19305),a=n(83649),s=n(72078),l=n(92061);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),i=n(22680),o=n(77506),a=n(60712);const s={light:{403:()=>n.e(67329).then(n.bind(n,67329)),thumbsUp:()=>n.e(73238).then(n.bind(n,73238)),error:()=>n.e(3872).then(n.bind(n,3872))},dark:{403:()=>n.e(81299).then(n.bind(n,81299)),thumbsUp:()=>n.e(98256).then(n.bind(n,98256)),error:()=>n.e(56990).then(n.bind(n,56990))}},l=(0,o.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const o=(0,i.i)(),[c,u]=r.useState(""),d=s[o]&&s[o][e];return r.useEffect((()=>{"function"===typeof d&&d().then((e=>u(e.default))).catch((e=>{console.error(e),u("")}))}),[d]),c?(0,a.jsx)("img",{alt:e,src:c,className:l(null,t),...n}):null}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),i=n(81288),o=n(21334);const a=(0,r.Z0)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:i}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==i}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=o.F.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async({database:e},{dispatch:t})=>{try{const n=await window.api.viewer.whoami({database:e});return t(c(n)),{data:n}}catch(r){var n;return!(0,i.qP)(r)||401!==r.status||null!==(n=r.data)&&void 0!==n&&n.authUrl||t(l(!1)),{error:r}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const n=await window.api.auth.authenticate(e);return t(l(!0)),{data:n}}catch(n){return{error:n}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.auth.logout();return t(l(!1)),{data:e}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(65809),i=n(31062),o=n(60712);const a=({error:e,className:t,defaultMessage:n=(0,i.A)("responseError.defaultMessage")})=>{const a=(0,r.$)(e)||n;return(0,o.jsx)("div",{className:`error ${t}`,children:a})}},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),i=n.n(r),o=(n(97650),n(48372)),a=n(41650);Object.values(o.JA).forEach((e=>{i().locales[e]&&(i().locales[e].delimiters.thousands=a.en)})),i().locale(o.Ru.lang);const s=i()},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>f,HG:()=>y,nL:()=>g,Qz:()=>v});var r=n(23900),i=n(77506),o=n(12888),a=n(25196),s=n(48372);const l=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),c=(0,s.g4)("ydb-node-name-tooltip",{en:l});var u=n(60712);const d=(0,i.cn)("ydb-node-endpoints-tooltip-content"),f=({data:e,nodeHref:t})=>{var n,i;const s=(0,o.X)(),l=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&l.push({name:c("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&l.push({name:c("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&l.push({name:c("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&l.push({name:c("field_rack"),children:e.Rack,key:"Rack"}),null!==e&&void 0!==e&&e.Endpoints&&e.Endpoints.length&&e.Endpoints.forEach((({Name:e,Address:t})=>{e&&t&&l.push({name:e,children:t,key:e})})),s&&t&&l.push({name:"Links",children:(0,u.jsx)(a.K,{title:c("context_developer-ui"),url:t}),key:"developerUi"}),(0,u.jsx)("div",{className:d("list-container"),children:(0,u.jsx)(r.u,{responsive:!0,children:l.map((({children:e,key:t,...n})=>(0,u.jsx)(r.u.Item,{...n,children:(0,u.jsx)("div",{className:d("definition"),children:e})},t)))})})};var p=n(60073),h=n(41826);const m=(0,p.Hr)({values:{ChangeTime:e=>(0,u.jsx)(h.H,{ChangeTime:e})},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),g=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s}=e,l=(0,p.jl)(m,{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s});return(0,u.jsx)(p.z_,{className:t,info:l,dots:!1,size:"s"})},v=(0,p.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),y=({data:e={},className:t})=>{const n=(0,p.jl)(v,e);return(0,u.jsx)(p.z_,{className:t,info:n,dots:!1,size:"s"})}},80222:e=>{e.exports=function(e){return function(){return e}}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},80420:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(23900),i=n(63291),o=n(92459),a=n(31684),s=n(12888),l=n(71661),c=n(10508),u=n(25196),d=n(48372);const f=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),p=(0,d.g4)("ydb-tablet-name-wrapper",{en:f});var h=n(60712);function m({tabletId:e,followerId:t,database:n}){const d=(0,s.X)(),f=(0,o.DM)(e,{database:n,followerId:null===t||void 0===t?void 0:t.toString()}),m=`${e}${t?`.${t}`:""}`;return(0,h.jsx)(l.s,{disabled:!d,delayClosing:200,content:(0,h.jsx)(r.u,{responsive:!0,children:(0,h.jsx)(r.u.Item,{name:p("field_links"),children:(0,h.jsx)(u.K,{title:p("context_developer-ui"),url:(0,a._t)(e)})})}),placement:["top","bottom"],behavior:i.m.Immediate,children:(0,h.jsx)(c.c,{name:m,path:f,hasClipboardButton:!0,showStatus:!1})})}},80472:(e,t,n)=>{var r=n(40691);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},80605:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),i=n(88610),o=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,o.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,i.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,i.gc)(e,t))}),[n,e])]}},80971:(e,t,n)=>{"use strict";function r(e="execute",t="query"){let n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}function i(e){return"string"===typeof e?{queryText:e}:e}function o(e){var t;return"SessionCreated"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function a(e){var t;return"StreamData"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function s(e){var t;return"QueryResponse"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function l(e){var t;return"KeepAlive"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}n.d(t,{AH:()=>r,HH:()=>s,QG:()=>i,eX:()=>l,uR:()=>a,y6:()=>o})},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},81288:(e,t,n)=>{"use strict";function r(e){if(!e||"object"!==typeof e)return!1;const t="data"in e,n="status"in e&&"number"===typeof e.status,r="statusText"in e&&"string"===typeof e.statusText,i="isCancelled"in e&&"boolean"===typeof e.isCancelled;return t||n||r||i}n.d(t,{F0:()=>a,Pq:()=>s,TX:()=>i,_E:()=>c,cH:()=>r,qP:()=>o,uP:()=>l});const i=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&"network error"===e.message.toLowerCase()),o=e=>Boolean(e&&"object"===typeof e&&"status"in e);function a(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}function s(e){return Boolean(r(e)&&(403===e.status||401===e.status))}function l(e){return Boolean(s(e)&&401===e.status&&e.data&&"object"===typeof e.data&&"authUrl"in e.data&&e.data.authUrl&&"string"===typeof e.data.authUrl)}function c(e){return Boolean(r(e)&&e.data&&"object"===typeof e.data&&"issues"in e.data&&(t=e.data.issues,Boolean(Array.isArray(t)&&t.length&&t.every(u))));var t}function u(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message)}},81382:(e,t,n)=>{var r=n(935),i=n(4212),o=n(64898),a=n(42589),s=n(98545),l=n(26905);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>_});var r=n(96906),i=n(21334),o=n(78668),a=n(67157),s=n(39567),l=n(69053),c=n(72976),u=n(40174),d=n(90565),f=n(47058),p=n(73289),h=n(36894),m=n(29078),g=n(88610),v=n(46496);const y=function(e=!0){return e};var b=n(18517),w=n(56674),x=n(49818);const _={[i.F.reducerPath]:i.F.reducer,singleClusterMode:y,cluster:a.Ay,tenant:b.Ay,tooltip:x.Ay,schema:m.Ay,tenants:w.Ay,partitions:f.Ay,query:p.Ay,heatmap:d.Ay,settings:g.Ay,executeTopQueries:l.Ay,shardsWorkload:v.Ay,authentication:o.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({..._})},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284),i=n(359);const o=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:o=!1})=>{const[a,s,l]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),c=r.useRef(),u=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("keydown",p),o||(e.addEventListener("focus",d),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a),e.removeEventListener("focus",d),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function r(){clearTimeout(c.current),c.current=window.setTimeout(s,t)}function a(){clearTimeout(c.current),c.current=window.setTimeout(l,n)}function d(e){u.current||document.activeElement!==e.target||(u.current=!0,clearTimeout(c.current),s())}function f(e){u.current&&!e.currentTarget.contains(e.relatedTarget)&&(u.current=!1,clearTimeout(c.current),l())}function p(e){e.key===i.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,o]),a}},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),i=n(77506),o=n(60712);const a=(0,i.cn)("g-link"),s=({className:e,to:t,onClick:n,...i})=>t?(0,o.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...i}):(0,o.jsx)("span",{className:e,onClick:n,children:i.children})},82121:e=>{e.exports=function(){return[]}},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function i(e,t,n,r){const i=n[e]||r;return i?i(t):t}function o({values:e,labels:t,defaultValueFormatter:n}){return(o,a)=>({label:r(o,t||{}),value:i(o,a,e||{},n)})}n.d(t,{H:()=>o,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82266:(e,t,n)=>{"use strict";n.d(t,{tH:()=>E,jt:()=>C,lQ:()=>S});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:400,height:400,fill:"none",viewBox:"0 0 400 400"},e),r.createElement("path",{fill:"var(--gil-color-background-shapes)",fillRule:"evenodd",d:"M315.141 81.442c4.093-8.992 22.26-32.072 22.26-32.072s-4.991 23.48-10.481 36.268c-3.793 8.593-15.572 3.997-11.779-4.196m-59.093 28.375c4.092-8.892 26.651-39.965 26.651-39.965s-9.383 31.373-14.873 44.162c-3.793 8.592-15.572 3.996-11.778-4.197M38.541 162.17s-15.372 17.785-19.165 25.978c-3.494 7.493 7.287 11.689 10.68 3.796 5.091-11.69 8.485-29.774 8.485-29.774m-9.084 171.153h334.495c27.95 0 26.952-40.665 8.485-54.353-15.173-11.29-33.04-7.494-33.04-7.494 3.893-7.493 16.57-38.666-16.371-68.34-25.054-22.58-89.039-10.591-89.039-10.591s-3.992-64.843-48.312-58.948c-5.89-23.58-29.746-34.37-45.218-26.078-27.251 14.588-4.592 43.363-4.592 43.363s-17.169-5.496-29.547 4.496c-21.46 17.285-10.78 45.56-10.78 45.56s-9.683-6.395-22.66.4c-32.34 16.885-26.152 42.263-23.956 49.257-5.59-1.099-28.448-3.997-36.833 14.087-9.683 20.882 9.982 32.772 9.982 32.772S6.798 304.348 6.798 312.74c0 .595-.01 1.209-.02 1.835-.142 8.224-.322 18.748 22.68 18.748",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M353.492 190.948c8.01-.329 15.134 3.627 19.294 9.654l.042.063c1.459 2.295.048 5.571-2.986 5.571H354.87a2.795 2.795 0 0 0-2.792 2.796v8.992a2.795 2.795 0 0 0 2.792 2.796h14.873a3.47 3.47 0 0 1 3.121 1.938 3.2 3.2 0 0 1-.6 3.668c-4.06 5.614-10.693 9.285-18.093 9.285-8.446 0-15.78-4.755-19.589-11.692l-57.172-.098h-.003c-5.92-.001-10.956-4.117-11.081-10.353-.126-6.431 5.401-10.831 11.381-10.832h.002l56.973-.098c3.703-6.732 10.801-11.377 18.81-11.69m14.968 33.872c-3.375 4.203-8.562 6.891-14.289 6.891-7.272 0-13.581-4.313-16.562-10.552a2 2 0 0 0-1.802-1.138l-58.394-.1h-.003c-4.061 0-7.009-2.678-7.084-6.432m98.134 11.331h-13.59c-3.675 0-6.792-2.968-6.792-6.796v-8.992c0-3.673 2.963-6.796 6.792-6.796h14.163c-3.475-4.599-9.102-7.55-15.379-7.292l-.004.001c-6.919.269-13.056 4.506-15.941 10.552a2 2 0 0 1-1.802 1.139l-58.198.1c-4.2 0-7.456 2.995-7.383 6.753",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M255.748 153.78a9.17 9.17 0 0 0-9.18 9.191v6.492H391v-6.492a9.167 9.167 0 0 0-9.18-9.191zM391 173.463H246.568V243.5a9.17 9.17 0 0 0 9.18 9.191H381.72c5.072 0 9.189-4.092 9.28-9.208zm-9.28 83.228H255.748c-7.295 0-13.18-5.893-13.18-13.191v-80.529c0-7.298 5.885-13.191 13.18-13.191H381.82c7.295 0 13.18 5.893 13.18 13.191v80.562c-.117 7.266-5.978 13.158-13.28 13.158",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M280.5 133.497a10.055 10.055 0 0 1 10.085-10.093h59.792c5.614 0 10.085 4.61 10.085 10.093v18.384a2 2 0 0 1-2 2H282.5a2 2 0 0 1-2-2zm10.085-6.093a6.056 6.056 0 0 0-6.085 6.093v16.384h71.962v-16.384c0-3.309-2.715-6.093-6.085-6.093z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M291.979 136.396a2 2 0 0 1 2-2h53.104a2 2 0 0 1 2 2v15.486a2 2 0 0 1-2 2h-53.104a2 2 0 0 1-2-2zm4 2v11.486h49.104v-11.486z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-shapes)",d:"M116.899 84.14s-15.372 17.785-19.165 25.978c-3.494 7.493 7.287 11.69 10.681 3.797 4.991-11.59 8.484-29.774 8.484-29.774"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M54.125 213.88c.318-2.546 2.42-4.55 5.079-4.55h7.187c2.658 0 4.76 2.004 5.079 4.55l.004.037.741 7.006c2.076.417 4.094.966 6.024 1.616l4.21-5.703.01-.011a5.07 5.07 0 0 1 6.586-1.336l.012.007 6.176 3.59.007.003c2.313 1.328 3.117 4.128 2.137 6.417l-.01.022-2.89 6.53a49 49 0 0 1 4.41 4.414l6.521-2.891.022-.01c2.29-.982 5.089-.175 6.415 2.139l.004.006 3.575 6.164c1.293 2.131.846 5.099-1.35 6.643l-5.686 4.207a51 51 0 0 1 1.623 6.026l6.999.741-.21 1.989.248-1.984c2.503.313 4.581 2.4 4.447 5.137v7.138c0 .726-.139 1.528-.49 2.252a4.92 4.92 0 0 1-4.008 2.836l-6.985.74a49 49 0 0 1-1.615 6.033l5.71 4.224a5.08 5.08 0 0 1 1.335 6.588l-.007.012-3.586 6.183-.004.005c-1.325 2.315-4.125 3.122-6.415 2.14l-.022-.01-6.52-2.891a49 49 0 0 1-4.412 4.414l2.89 6.53.01.022c.98 2.289.177 5.089-2.136 6.416l-.007.004-6.157 3.579c-2.132 1.295-5.1.847-6.642-1.351l-4.202-5.69a51 51 0 0 1-6.017 1.623l-.74 7.008-.005.037c-.318 2.546-2.42 4.55-5.08 4.55h-7.186c-2.659 0-4.761-2.004-5.08-4.55q0-.019-.004-.037l-.74-7.007a49 49 0 0 1-6.024-1.615l-4.211 5.703-.009.011a5.07 5.07 0 0 1-6.586 1.336l-.012-.007-6.177-3.59-.007-.004c-2.313-1.327-3.116-4.127-2.136-6.416l.01-.022 2.89-6.53a49 49 0 0 1-4.41-4.414l-6.521 2.891-.023.01c-2.29.982-5.089.175-6.414-2.139l-.004-.006-3.575-6.164c-1.293-2.131-.847-5.099 1.35-6.643l5.686-4.207a51 51 0 0 1-1.623-6.026l-7-.741-.023-.003-.014-.002c-1.304-.163-2.398-.804-3.163-1.57a2 2 0 0 1-.122-.134C4.514 274.257 4 273.118 4 271.777v-7.193c0-2.658 2-4.763 4.547-5.082l.037-.005 6.998-.741c.416-2.079.965-4.1 1.615-6.033l-5.71-4.224a5.08 5.08 0 0 1-1.335-6.588l.007-.012 3.59-6.19c1.327-2.314 4.126-3.12 6.415-2.138l.023.01 6.52 2.891a49 49 0 0 1 4.411-4.414l-2.89-6.53-.01-.022c-.98-2.289-.177-5.089 2.137-6.416l6.164-3.583c2.131-1.295 5.099-.847 6.642 1.351l4.202 5.69a51 51 0 0 1 6.016-1.623l.742-7.008q0-.019.004-.037m62.441 49.593-8.462-.897a2 2 0 0 1-1.762-1.66c-.475-2.853-1.237-5.533-2.207-8.249a2 2 0 0 1 .695-2.28l6.887-5.096.05-.036c.367-.254.515-.849.234-1.305l-.026-.044-3.593-6.194-.007-.012a1.08 1.08 0 0 0-1.359-.456l-7.872 3.49a2 2 0 0 1-2.354-.555 45 45 0 0 0-6.02-6.026 2 2 0 0 1-.554-2.351l3.487-7.879a1.09 1.09 0 0 0-.456-1.365l-.012-.007-6.176-3.59-.005-.003a1.07 1.07 0 0 0-1.392.261q0 .002-.003.005l-5.082 6.882a2 2 0 0 1-2.304.688 45 45 0 0 0-8.219-2.201 2 2 0 0 1-1.66-1.762l-.895-8.47c-.087-.643-.577-1.031-1.108-1.031h-7.187c-.532 0-1.021.388-1.108 1.031l-.896 8.47a2 2 0 0 1-1.66 1.762c-2.85.475-5.526 1.238-8.24 2.209a2 2 0 0 1-2.282-.696l-5.091-6.894-.036-.05c-.254-.367-.846-.513-1.3-.234l-.043.026-6.2 3.604c-.475.271-.668.86-.456 1.365l3.487 7.879a2 2 0 0 1-.554 2.351 45 45 0 0 0-6.021 6.026 2 2 0 0 1-2.353.555l-7.872-3.49a1.08 1.08 0 0 0-1.36.456l-.006.012-3.587 6.182-.002.005a1.08 1.08 0 0 0 .26 1.398l.005.003 6.876 5.087a2 2 0 0 1 .686 2.302 45 45 0 0 0-2.199 8.227 2 2 0 0 1-1.762 1.66l-8.461.897c-.639.086-1.029.575-1.029 1.111v7.193c0 .237.072.475.277.745.22.197.49.33.752.366l8.461.897a2 2 0 0 1 1.762 1.66c.475 2.853 1.238 5.533 2.207 8.249a2 2 0 0 1-.694 2.28l-6.888 5.096-.05.036c-.366.254-.514.849-.234 1.305l.026.044 3.6 6.206c.272.476.859.667 1.36.456l7.872-3.49a2 2 0 0 1 2.353.555 45 45 0 0 0 6.02 6.026 2 2 0 0 1 .555 2.351l-3.487 7.879a1.09 1.09 0 0 0 .455 1.365l.012.007 6.177 3.59.004.002a1.07 1.07 0 0 0 1.392-.26l.003-.005 5.083-6.882a2 2 0 0 1 2.304-.688 45 45 0 0 0 8.218 2.201 2 2 0 0 1 1.66 1.762l.896 8.47c.087.643.576 1.031 1.108 1.031h7.187c.531 0 1.02-.388 1.108-1.031l.896-8.47a2 2 0 0 1 1.66-1.762c2.849-.475 5.526-1.238 8.24-2.209a2 2 0 0 1 2.282.696l5.09 6.894.037.05c.253.367.846.513 1.299.234l.044-.026 6.188-3.597.012-.007c.475-.271.667-.86.456-1.365l-3.487-7.879a2 2 0 0 1 .554-2.351 45 45 0 0 0 6.02-6.026 2 2 0 0 1 2.354-.555l7.872 3.49c.501.211 1.087.02 1.359-.456l.007-.012 3.586-6.182.003-.005a1.08 1.08 0 0 0-.265-1.401l-6.876-5.087a2 2 0 0 1-.687-2.302 45 45 0 0 0 2.199-8.227 2 2 0 0 1 1.762-1.66l8.485-.899.029-.003a.92.92 0 0 0 .749-.519l.039-.082c.033-.065.089-.245.089-.505v-7.193q0-.063.004-.125c.026-.424-.273-.897-.933-.986m-53.669-18.569c-12.868 0-23.254 10.393-23.254 23.278S50.03 291.46 62.897 291.46c12.882 0 23.347-10.403 23.255-23.264v-.014c0-12.885-10.386-23.278-23.255-23.278m-27.254 23.278c0-15.091 12.173-27.278 27.254-27.278 15.079 0 27.25 12.183 27.255 27.27.104 15.112-12.189 27.286-27.255 27.286-15.08 0-27.254-12.187-27.254-27.278",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-hightlight)",fillRule:"evenodd",d:"m232.291 67.955 16.869-.5c.799 0 .998 1.2.499 2.098l-34.238 49.357c-.799 1.099-2.096 1.299-1.797-.1l8.984-35.968-16.869.5c-.799-.1-1.098-1.2-.5-2.099l34.039-50.356c.798-1.099 2.096-1.299 1.797.1zM61.799 112.414l10.68-.3c.5 0 .7.8.3 1.299L49.92 145.785c-.399.699-1.297.799-1.098-.1l4.093-23.879-10.68.3c-.5 0-.7-.8-.3-1.299l22.659-32.972c.4-.699 1.297-.799 1.098.1z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M137.562 40.278a2 2 0 0 1 2 2v7.294a2 2 0 0 1-4 0v-7.294a2 2 0 0 1 2-2m-17.072 17.09a2 2 0 0 1 2-2h7.187a2 2 0 0 1 0 4h-7.187a2 2 0 0 1-2-2m22.958 0a2 2 0 0 1 2-2h7.187a2 2 0 1 1 0 4h-7.187a2 2 0 0 1-2-2m-5.885 5.29a2 2 0 0 1 2 2v7.892a2 2 0 0 1-4 0v-7.893a2 2 0 0 1 2-2",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-base)",d:"m66.79 359.9 90.736 10.091c2.296.2 4.292-3.097 4.292-7.193V164.67c0-4.196-1.896-7.393-4.292-7.193L66.79 169.566c-1.996.2-3.693 3.397-3.693 7.294v175.746c0 3.897 1.697 7.094 3.693 7.294"}),r.createElement("path",{fill:"var(--gil-color-object-hightlight)",d:"m315.24 362.997-157.415 6.894c-4.092.2-7.387-3.097-7.387-7.193V164.67c0-4.196 3.295-7.393 7.387-7.193l157.415 6.894c3.494.199 6.389 3.397 6.389 7.293v184.04c0 3.896-2.895 7.194-6.389 7.293"}),r.createElement("path",{fill:"var(--gil-color-object-base)",fillRule:"evenodd",d:"m321.589 233.713-171.19-3.397.079-4 171.191 3.397zm.067 67.241-174.184 2.398-.055-4 174.184-2.397z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M170.901 184.852c2.096.2 3.893-1.698 3.893-4.096s-1.697-4.496-3.893-4.596c-2.096-.2-3.893 1.698-3.893 4.096s1.697 4.496 3.893 4.596m17.867.901c2.097.1 3.794-1.699 3.794-4.097 0-2.298-1.697-4.396-3.794-4.496-2.196-.1-3.893 1.699-3.893 4.097s1.797 4.396 3.893 4.496m21.262-3.097c0 2.397-1.696 4.196-3.793 4.096-2.096-.1-3.793-2.098-3.793-4.496s1.697-4.196 3.793-4.097c2.097.1 3.793 2.199 3.793 4.497m13.376 4.993c2.096.1 3.693-1.699 3.693-3.997 0-2.398-1.697-4.396-3.693-4.396-1.996-.1-3.693 1.699-3.693 3.997s1.697 4.296 3.693 4.396m20.463-3.095c0 2.298-1.597 4.096-3.593 3.996-1.997-.1-3.594-2.098-3.594-4.396s1.597-4.096 3.594-3.996c1.896.1 3.593 2.098 3.593 4.396m12.877 4.896c1.896.1 3.493-1.699 3.493-3.997s-1.597-4.296-3.493-4.296c-1.997-.1-3.594 1.698-3.594 3.996s1.597 4.197 3.594 4.297",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",fillRule:"evenodd",d:"M272.817 190.248c1.897.1 3.494-1.599 3.494-3.897s-1.597-4.196-3.494-4.296-3.494 1.599-3.494 3.897 1.597 4.196 3.494 4.296m15.871.799c1.897.1 3.394-1.698 3.394-3.896s-1.497-4.097-3.394-4.297c-1.896-.1-3.394 1.599-3.394 3.897s1.498 4.196 3.394 4.296",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",d:"M307.554 188.05c0 2.198-1.497 3.897-3.294 3.797-1.896-.1-3.394-1.998-3.394-4.196s1.498-3.997 3.394-3.797c1.797.1 3.294 1.998 3.294 4.196"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M170.901 256.89c2.096 0 3.893-1.898 3.893-4.296s-1.697-4.396-3.893-4.396c-2.096 0-3.893 1.898-3.893 4.296s1.697 4.396 3.893 4.396m17.868.2c2.097 0 3.794-1.898 3.794-4.296 0-2.298-1.697-4.296-3.794-4.396-2.196 0-3.893 1.898-3.893 4.296s1.797 4.396 3.893 4.396m21.262-3.995c0 2.398-1.697 4.196-3.794 4.196s-3.793-1.998-3.793-4.296c0-2.398 1.697-4.296 3.793-4.196 2.097 0 3.794 1.898 3.794 4.296m13.375 4.395c2.097 0 3.694-1.899 3.694-4.197s-1.697-4.196-3.694-4.296c-1.996 0-3.693 1.799-3.693 4.196 0 2.398 1.697 4.297 3.693 4.297m20.463-3.897c0 2.298-1.597 4.196-3.593 4.096-1.996 0-3.594-1.898-3.594-4.196s1.598-4.196 3.594-4.096c1.896 0 3.593 1.898 3.593 4.196m12.877 4.295c1.896 0 3.494-1.799 3.494-4.097s-1.598-4.196-3.494-4.196c-1.997 0-3.594 1.798-3.594 4.096s1.597 4.197 3.594 4.197m19.565-3.894c0 2.298-1.597 4.097-3.494 4.097s-3.494-1.899-3.494-4.197 1.597-4.096 3.494-4.096c1.897.1 3.494 1.998 3.494 4.196m12.377 4.295c1.897 0 3.394-1.798 3.394-3.997 0-2.298-1.497-4.096-3.394-4.096-1.896-.1-3.394 1.699-3.394 3.997 0 2.198 1.498 4.096 3.394 4.096",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",d:"M307.554 254.492c0 2.199-1.498 3.997-3.294 3.997-1.897 0-3.394-1.798-3.394-4.096 0-2.199 1.497-3.997 3.394-3.997 1.796 0 3.294 1.798 3.294 4.096"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M240.276 326.93c1.996-.1 3.593-1.998 3.593-4.296s-1.697-4.196-3.593-4.097c-1.997.1-3.594 1.999-3.594 4.297s1.597 4.196 3.594 4.096m-13.177-3.898c0 2.298-1.597 4.296-3.693 4.296-1.996.1-3.693-1.798-3.693-4.096s1.697-4.296 3.693-4.296c1.996-.1 3.693 1.798 3.693 4.096m-20.862 4.897c2.097-.1 3.793-1.998 3.793-4.396s-1.696-4.296-3.793-4.196c-2.096.1-3.793 1.998-3.793 4.396s1.697 4.296 3.793 4.196m-13.674-3.996c0 2.398-1.697 4.396-3.794 4.396-2.096.1-3.893-1.799-3.893-4.196 0-2.398 1.697-4.397 3.893-4.397 2.097 0 3.794 1.899 3.794 4.197m-17.769.501c0 2.398-1.797 4.396-3.893 4.496-2.196.1-3.893-1.798-3.893-4.296s1.797-4.396 3.893-4.496c2.196 0 3.893 1.898 3.893 4.296m98.023 1.496c1.897-.1 3.494-1.899 3.494-4.197s-1.597-4.096-3.494-3.996c-1.897 0-3.494 1.898-3.494 4.196s1.597 4.097 3.494 3.997m-16.071.4c1.897 0 3.494-1.899 3.494-4.197s-1.597-4.096-3.494-4.096c-1.996 0-3.593 1.898-3.593 4.196s1.597 4.197 3.593 4.097",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",fillRule:"evenodd",d:"M304.26 324.931c1.796 0 3.294-1.899 3.294-4.097s-1.498-3.896-3.294-3.896c-1.897 0-3.394 1.898-3.394 4.096s1.497 3.996 3.394 3.897m-15.572.598c1.897-.1 3.394-1.999 3.394-4.197 0-2.298-1.497-4.096-3.394-3.996-1.896.1-3.394 1.898-3.394 4.196s1.498 4.096 3.394 3.997",clipRule:"evenodd"}));var o=n(87184),a=n(98089),s=n(23900),l=n(59495);const c=(0,r.createContext)(null),u={didCatch:!1,error:null};class d extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=u}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(u)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(u))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=e;if(o){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(void 0===i)throw a;s=i}}return(0,r.createElement)(c.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var f=n(77506);var p=n(34271),h=n(48372);const m=JSON.parse('{"error-title":"Oops! Something went wrong...","error-description":"Something seems to be broken. Please contact support for help.","send-qr-message":"Send QR code to the support","stack-title":"Trace","ui-version":"UI version","backend-version":"Backend version","error":"Error"}'),g=(0,h.g4)("ydb-error-boundary",{en:m});var v=n(65809),y=n(8330);async function b(e){return await async function(){try{var t,n;const e=await window.api.viewer.getNodeInfo(".",{timeout:1e3});return null===e||void 0===e||null===(t=e.SystemStateInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.Version}catch(e){return{error:(0,v.$)(e)}}}().then((t=>({location:window.location.href,userAgent:navigator.userAgent,error:{message:(0,v.$)(e),stack:w(e.stack,{trim:!0,maxLines:10})},uiVersion:y.rE,backendVersion:t})))}function w(e,{trim:t=!0,maxLines:n}={}){return null===e||void 0===e?void 0:e.split("\n").map(((e,n)=>{if(0===n)return e;const r=e.replace(`(${window.location.origin}/`,"(/");return t?r.trim():r})).slice(0,n?n+1:void 0).join("\n")}var x=n(60712);const _=(0,f.cn)("ydb-error-boundary");function E({children:e}){const t=(0,p.x)("ErrorBoundary");return(0,x.jsx)(t,{children:e})}function S({children:e}){return(0,x.jsx)(d,{onError:(e,t)=>{var n;!function(e,t,n="error"){var r;"undefined"!==typeof window&&null!==(r=window.Ya)&&void 0!==r&&r.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:n,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:({error:e})=>(0,x.jsx)(C,{error:e}),children:e})}function C({error:e}){const[t,n]=r.useState();return r.useEffect((()=>{b(e).then((e=>{n(e)}))}),[e]),(0,x.jsxs)(o.s,{direction:"column",gap:4,className:_(null),children:[(0,x.jsxs)(o.s,{direction:"row",alignItems:"center",gap:10,children:[(0,x.jsx)(i,{width:230,height:230}),(0,x.jsxs)(o.s,{direction:"column",gap:5,children:[(0,x.jsxs)(o.s,{direction:"column",gap:2,children:[(0,x.jsx)(a.E,{variant:"subheader-3",children:g("error-title")}),(0,x.jsx)(a.E,{variant:"body-1",color:"complementary",children:g("error-description")})]}),(0,x.jsx)(k,{data:t})]})]}),(0,x.jsxs)(o.s,{direction:"row",alignItems:"start",gap:8,children:[(0,x.jsx)(O,{stack:e.stack}),(0,x.jsxs)(o.s,{direction:"column",gap:3,children:[(0,x.jsx)(a.E,{variant:"body-1",color:"complementary",className:_("qr-help-text"),children:g("send-qr-message")}),(0,x.jsx)(N,{data:t})]})]})]})}function k({data:e}){return(0,x.jsxs)(s.u,{nameMaxWidth:200,children:[(null===e||void 0===e?void 0:e.uiVersion)&&"string"===typeof e.uiVersion&&(0,x.jsx)(s.u.Item,{name:g("ui-version"),children:e.uiVersion}),(null===e||void 0===e?void 0:e.backendVersion)&&"string"===typeof e.backendVersion&&(0,x.jsx)(s.u.Item,{name:g("backend-version"),children:e.backendVersion}),(0,x.jsx)(s.u.Item,{name:g("error"),children:null===e||void 0===e?void 0:e.error.message})]})}function O({stack:e}){if(!e)return null;const t=w(e,{trim:!1,maxLines:void 0});return(0,x.jsxs)(o.s,{direction:"column",className:_("error-stack-wrapper"),children:[(0,x.jsx)(a.E,{variant:"body-1",className:_("error-stack-title"),children:g("stack-title")}),(0,x.jsx)(a.E,{variant:"code-1",className:_("error-stack-code"),children:t})]})}function N({data:e}){const t=r.useRef(null);return r.useEffect((()=>{e&&l.toCanvas(t.current,JSON.stringify(e),{errorCorrectionLevel:"L",width:400})}),[e]),e?(0,x.jsx)("canvas",{ref:t}):null}},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},82461:e=>{"use strict";e.exports=EvalError},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),o=(0,r.g4)("ydb-bytes-parsers",{en:i})},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>k,yT:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"===typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),x(n)},E=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&b(t,e)},C=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,C)&&y(t,e)}},83216:(e,t,n)=>{var r=n(17900),i=n(96294);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},83649:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},83791:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},84080:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(71765),t)},84100:(e,t,n)=>{var r=n(81382),i=n(63679),o=n(39450),a=n(66217),s=n(43261),l=n(19305),c=n(20368),u=n(91159),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),x=b?f:s(t),_=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(S&&!_)return v||(v=new r),y||u(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var C=_&&h.call(e,"__wrapped__"),k=E&&h.call(t,"__wrapped__");if(C||k){var O=C?e.value():e,N=k?t.value():t;return v||(v=new r),g(O,N,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(59284),i=n(81240),o=n(90826),a=n(84476),s=n(99991),l=n(39238),c=n(54245),u=n(27629);const d=(0,n(69220).om)("popover"),f=(e,t=!1)=>{switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},p=({theme:e,tooltipActionButton:t,tooltipCancelButton:n})=>t||n?r.createElement("div",{className:d("tooltip-buttons")},t&&r.createElement(a.$,{view:f(e,!0),width:"max",onClick:t.onClick,className:d("tooltip-button")},t.text),n&&r.createElement(a.$,{view:f(e,!1),width:"max",onClick:n.onClick,className:d("tooltip-button")},n.text)):null,h=({secondary:e,htmlContent:t,content:n,className:i})=>t||n?t?r.createElement("div",{className:d("tooltip-content",{secondary:e},i),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:d("tooltip-content",{secondary:e},i)},n):null:null;var m=n(67884);const g=({links:e})=>0===e.length?null:r.createElement("div",{className:d("tooltip-links")},e.map(((e,t)=>{const{text:n,href:i,target:o="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(m.N,{href:i,target:o,onClick:a,className:d("tooltip-link")},n),r.createElement("br",null))})));var v=n(46734);const y=({open:e,openOnHover:t,disabled:n,className:i,openTooltip:o,closeTooltip:a,closedManually:s,onClick:l,children:c})=>{const u=async r=>{if(n||e&&t)return;if(!(!l||await l(r)))return;e?(a(),s.current=!0):(o(),s.current=!1)},{onKeyDown:d}=(0,v.N)(u);return"function"===typeof c?r.createElement(r.Fragment,null,c({onClick:u,onKeyDown:d,open:e})):r.createElement("div",{className:i,onClick:u,onKeyDown:l?d:void 0},c)};var b=n(63291);const w=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:i,delayOpening:o,delayClosing:a,behavior:s,shouldBeOpen:l})=>{const c=r.useRef(null),u=r.useRef(null),[d,f]=r.useState(e),p=r.useCallback((()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[]),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]);r.useEffect((()=>()=>{p(),h()}),[h,p]);const m=r.useCallback((e=>{f(e),l.current=e,null===i||void 0===i||i(e)}),[i,l]),g=r.useCallback((()=>{p(),m(!0)}),[m,p]),v=r.useCallback((()=>{h(),m(!1)}),[m,h]);r.useEffect((()=>{t&&v()}),[t,v]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{n&&!l.current&&v()}),[n,v,l]);const[y,w]=b.J[s],x=r.useCallback((()=>{c.current=setTimeout((()=>{c.current=null,g()}),null!==o&&void 0!==o?o:y)}),[y,o,g]),_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[v,w,a]);return{isOpen:d,closingTimeout:u,openTooltip:g,openTooltipDelayed:x,unsetOpeningTimeout:p,closeTooltip:v,closeTooltipDelayed:_,unsetClosingTimeout:h}},x=r.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:f=!0,delayOpening:m,delayClosing:v,behavior:x=b.m.Delayed,placement:_,offset:E={},tooltipOffset:S,tooltipClassName:C,tooltipContentClassName:k,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:P,title:R,content:D,htmlContent:j,contentClassName:M,links:L,forceLinksAppearance:z=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:$,onClick:q,anchorRef:H,strategy:V,qa:W,disablePortal:K=!1,tooltipId:G,focusTrap:Y,autoFocus:Q,restoreFocusRef:Z,modifiers:J},X){const ee=(0,c.j)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(e),{isOpen:ie,closingTimeout:oe,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=w({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:m,delayClosing:v,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>_||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,_]);r.useImperativeHandle(X,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(R),he=`popover-${null!==G&&void 0!==G?G:""}-title-${(0,o.u)()}`,me=r.createElement(l.z,{id:G,role:f?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:d("tooltip",{theme:O,size:N,"with-close":A,"force-links-appearance":z},C),contentClassName:d("tooltip-popup-content",k),open:ie,placement:fe,hasArrow:T,offset:S,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:K,focusTrap:Y,autoFocus:Q,restoreFocus:!0,restoreFocusRef:Z||te,modifiers:J,"aria-labelledby":R?he:void 0},r.createElement(r.Fragment,null,R&&r.createElement("h3",{id:he,className:d("tooltip-title")},R),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:D,htmlContent:j,className:M}),L&&r.createElement(g,{links:L}),r.createElement(p,{theme:O,tooltipActionButton:F,tooltipCancelButton:B}),A&&r.createElement("div",{className:d("tooltip-close")},r.createElement(a.$,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===$||void 0===$||$(e)},extraProps:{"aria-label":"Close"}},r.createElement(s.I,{data:i.A,size:16})))));if(H)return me;const ge=()=>{de(),ie||t||ne.current?re.current=!0:se()},ve=()=>{!n||ne.current||oe.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!==typeof E.top&&"number"!==typeof E.left||(0,u.m)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:d({disabled:t},I),onMouseEnter:f?ge:void 0,onMouseLeave:f?ve:void 0,onFocus:f?ge:void 0,onBlur:f?ve:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":W},r.createElement(y,{closeTooltip:ce,openTooltip:ae,open:ie,openOnHover:f,className:d("handler"),disabled:t,onClick:q,closedManually:ne},P),me)}));x.displayName="Popover"},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},84405:(e,t,n)=>{const r=n(22750),i=n(53577),o=n(53683),a=n(90044),s=n(76941),l=n(56932),c=n(98220),u=n(38198),d=n(78212),f=n(15227),p=n(26237),h=n(71928),m=n(99105);function g(e,t,n){const r=e.size,i=p.getEncodedBits(t,n);let o,a;for(o=0;o<15;o++)a=1===(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(r-15+o,8,a,!0),o<8?e.set(8,r-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(r-8,8,1,!0)}function v(e,t,n){const i=new o;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(i)}));const a=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let r=0;r<s;r++)i.put(r%2?17:236,8);return function(e,t,n){const i=r.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),a=i-o,s=u.getBlocksCount(t,n),l=i%s,c=s-l,f=Math.floor(i/s),p=Math.floor(a/s),h=p+1,m=f-p,g=new d(m);let v=0;const y=new Array(s),b=new Array(s);let w=0;const x=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?p:h;y[r]=x.slice(v,v+e),b[r]=g.encode(y[r]),v+=e,w=Math.max(w,e)}const _=new Uint8Array(i);let E,S,C=0;for(E=0;E<w;E++)for(S=0;S<s;S++)E<y[S].length&&(_[C++]=y[S][E]);for(E=0;E<m;E++)for(S=0;S<s;S++)_[C++]=b[S][E];return _}(i,e,t)}function y(e,t,n,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}o=m.fromString(e,r||40)}}const u=f.getBestVersionForData(o,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=v(t,n,o),p=r.getSymbolSize(t),h=new a(p);return function(e,t){const n=e.size,r=l.getPositions(t);for(let i=0;i<r.length;i++){const t=r[i][0],o=r[i][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let i=-1;i<=7;i++)o+i<=-1||n<=o+i||(r>=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,o+i,!0,!0):e.set(t+r,o+i,!1,!0))}}(h,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(h),function(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],i=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,i+r,!0,!0):e.set(t+n,i+r,!1,!0)}}(h,t),g(h,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+n-8-3,a=1===(r>>s&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(h,t),function(e,t){const n=e.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;a<t.length&&(r=1===(t[a]>>>o&1)),e.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(h,d),isNaN(i)&&(i=c.getBestMask(h,g.bind(null,h,n))),c.applyMask(i,h),g(h,n,i),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,a=i.M;return"undefined"!==typeof t&&(a=i.from(t.errorCorrectionLevel,i.M),n=f.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,a,o)}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),i=n(69220),o=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,i.om)("button");function u(){(0,l.m)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=({side:e,className:t,children:n})=>r.createElement("span",{className:c("icon",{side:f(e)},t)},r.createElement("span",{className:c("icon-inner")},n));function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,i.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:i,disabled:o=!1,loading:s=!1,width:l,title:c,tabIndex:u,type:d="button",component:f,href:h,target:m,rel:g,extraProps:v,onClick:y,onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,children:S,id:C,style:k,className:O,qa:N},T){const A={title:c,tabIndex:u,onClick:y,onClickCapture:r.useCallback((t=>{a.o.publish({componentId:"Button",eventId:"click",domEvent:t,meta:{content:t.currentTarget.textContent,view:e}})}),[e]),onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,id:C,style:k,className:p({view:e,size:t,pin:n,selected:i,disabled:o||s,loading:s,width:l},O),"data-qa":N};if("string"===typeof h||f){const e={href:h,target:m,rel:"_blank"!==m||g?g:"noopener noreferrer"};return r.createElement(f||"a",Object.assign(Object.assign(Object.assign(Object.assign({},v),A),f?{}:e),{ref:T,"aria-disabled":o||s}),b(S))}return r.createElement("button",Object.assign({},v,A,{ref:T,type:d,disabled:o||s,"aria-pressed":i}),b(S))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.g)(d),v=(0,s.g)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,o.If)(e)||(0,o.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,i;const a=[];for(const s of t){const t=(0,o.If)(s)||(0,o.$D)(s),i=g(s),l=v(s)&&y.test(s.props.className||"");if(t||i||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",o="end";n=t?r.createElement(m.Icon,{key:e,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}}else{const n="icon-start",o="start";e=t?r.createElement(m.Icon,{key:n,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}else a.push(s)}return a.length>0&&(i=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,i]}}},84579:(e,t,n)=>{var r=n(36738),i=n(31016),o=n(38469),a=n(45865),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},84711:e=>{e.exports=function(){return!1}},85191:(e,t,n)=>{var r=n(8543),i=n(83216),o=n(89157);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},85532:(e,t,n)=>{var r=n(537),i=n(54380),o=n(19305),a=n(60242),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),i=n(64222),o=n(46898);const a=(0,n(69220).om)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,i.v)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(o.m,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},85651:(e,t,n)=>{var r=n(19058);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(59284);function i(e,t,n){const[i,o]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:i;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,o(e))}),[s,n,l]);return[l,c]}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(35711);e.exports=o.call(r,i)},86540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=n(49526),o=n(93650);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||i.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,o.paramDecoder)(e).split(t.delimiter||i.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(i.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+i.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||i.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,o.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(i.OBJECT_KEY_DELIMITER),o=r(n,2),a=o[0],s=o[1];return e[a]=s,e}),{})}}}},86849:(e,t,n)=>{const r=n(87523);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=r.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,r.exp(i)]));return n}},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),i=n(59284),o=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,o.om)("flex"),u=i.forwardRef((function(e,t){const{as:n,direction:o,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:x,inline:_,gap:E,gapRow:S,className:C,space:k,centerContent:O}=e,N=(0,r.Tt)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:A,theme:{spaceBaseSize:I}}=(0,s.L)(),P=e=>"object"===typeof e&&null!==e?A(e):e,R=P(E),D=R?I*Number(R):void 0,j=P(S)||R,M=j?I*Number(j):void 0,L=P(k),z=E||S||!L?void 0:(0,l.si)(L);return i.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:_,s:z},C),ref:t,style:Object.assign({flexDirection:P(o),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:D,rowGap:M,alignContent:P(h),alignItems:P(m),alignSelf:P(g),justifyContent:P(v),justifyItems:P(y),justifySelf:P(b)},p)},N),k?i.Children.map(f,(e=>e?i.createElement("div",{className:c("wr")},e):e)):f)}))},87232:(e,t,n)=>{var r=n(68414),i=n(57741),o=n(73073),a=o&&o.isSet,s=a?i(a):r;e.exports=s},87523:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>i,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const i={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},o={id:i.overview,title:"Overview"},a={id:i.tenants,title:"Databases"},s={id:i.nodes,title:"Nodes"},l={id:i.storage,title:"Storage"},c={id:i.versions,title:"Versions"},u=[o,a,s,l,{id:i.tablets,title:"Tablets"},c];function d(e){return Object.values(i).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},88118:(e,t,n)=>{var r=n(36738),i=n(72078);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",_=function(e){return e instanceof k||!(!e||!e[x])},E=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=y;C.l=E,C.i=_,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case i:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),m=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[o]=t,f[a]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=C.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return C.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case i:h=b/e;break;default:h=b}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=k.prototype;return S.prototype=O,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},88610:(e,t,n)=>{"use strict";n.d(t,{$u:()=>d,Ay:()=>g,CN:()=>f,N8:()=>m,gc:()=>h,s$:()=>a,ue:()=>c,yV:()=>p});var r=n(97091),i=n(59001),o=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=i.f.extractSettingsFromLS(i.c),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.Z0)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),i.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in i.c){const n=t.key;let r=i.c[n];null!==t.newValue&&(r=(0,o.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},88655:(e,t,n)=>{"use strict";n.d(t,{E:()=>u});var r=n(67157),i=n(58351),o=n(77630);const a=(e=i.Hs,t)=>({getNodeRef:(n={})=>(0,o.Vk)(n,null!==e&&void 0!==e?e:"",t)});var s=n(76086),l=n(80967),c=n(75022);function u(){const{balancer:e}=(0,r.Zd)(),[t]=(0,l.i)(s.s2),n=(0,c.N)((e=>e.singleClusterMode)),i=a(e,t);return n?void 0:i}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89728:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},89875:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},89990:(e,t,n)=>{const r=n(71928);function i(e){this.mode=r.BYTE,this.data="string"===typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},90035:(e,t,n)=>{var r=n(97269),i=n(67596),o=n(78475);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},90044:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>o.i,GY:()=>s.GY,YQ:()=>i.Y,N4:()=>r.N});var r=n(75022),i=n(51533),o=n(80967),a=n(95312),s=n(959),l=n(10755),c=n(92459);const u=()=>{const e=(0,l.zy)();return(0,c.mA)(e)};var d=n(76086);function f(){return(0,o.i)(d.av,0)}var p=n(59284);function h(e){const t=p.useRef(e);return p.useLayoutEffect((()=>{t.current=e}),[e]),p.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},90308:(e,t,n)=>{"use strict";var r=n(94701),i=n(31886),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i([n]):n}},90552:(e,t,n)=>{var r=n(61872),i=n(88118),o=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>o});var r=n(97091),i=n(21334);const o={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:o,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=i.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:i})=>{try{var o;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:i={}}=null!==t&&void 0!==t?t:{},{TablePartitions:o=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=i;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),o.forEach(((e,t)=>{const n=Object.assign({},a[t],s[t]);e.DatashardId&&r.set(e.DatashardId,{...r.get(e.DatashardId),metrics:n})}));const l=Array.from(r.values()),c=l[0]&&l[0].metrics&&Object.keys(l[0].metrics).map((e=>({value:e,content:e})));return{tablets:l,metrics:c}}(await Promise.all([window.api.viewer.getTabletsInfo({path:e,database:t},{signal:n}),window.api.viewer.getHeatmapData({path:e,database:t},{signal:n})]));if(null!==(o=a.metrics)&&void 0!==o&&o.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||i(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},90754:(e,t,n)=>{"use strict";n.d(t,{$i:()=>Z,Qx:()=>l,YT:()=>K,a6:()=>c,c2:()=>f,jM:()=>Y,vI:()=>Q});var r=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[o]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[o].base_}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[o];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function x(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=d(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[o];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(s(e),t)}{const t=s(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function _(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>_(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var C,k={};function O(e){const t=k[e];return t||a(0),t}function N(e,t){k[e]||(k[e]=t)}function T(){return C}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){P(e),e.drafts_.forEach(D),e.drafts_=null}function P(e){e===C&&(C=e.parent_)}function R(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D(e){const t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[o].modified_&&(I(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[o].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),I(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[o];if(!r)return p(t,((i,o)=>L(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),p(i,((i,a)=>L(e,r,t,i,a,n,o))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,i,o,a){if(l(i)){const a=M(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!S(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||z(e,i)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===o)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=$(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(H(e),e.copy_[t]=V(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=$(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[o];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),q(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),q(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[o];return(n?w(n):e)[t]}function $(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function q(e){e.modified_||(e.modified_=!0,e.parent_&&q(e.parent_))}function H(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function V(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=F;n&&(i=[r],o=B);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function W(e){if(!c(e)||S(e))return e;const t=e[o];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=x(e,t.scope_.immer_.useStrictShallowCopy_)}else n=x(e,!0);return p(n,((e,t)=>{v(n,e,W(t))})),t&&(t.finalized_=!1),n}function K(){const e="replace",t="add",n="remove";function o(e){if(!c(e))return e;if(Array.isArray(e))return e.map(o);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,o(t)])));if(b(e))return new Set(Array.from(e).map(o));const t=Object.create(s(e));for(const n in e)t[n]=o(e[n]);return m(e,i)&&(t[i]=e[i]),t}function u(e){return l(e)?o(e):e}N("Patches",{applyPatches_:function(r,i){return i.forEach((i=>{const{path:s,op:l}=i;let c=r;for(let e=0;e<s.length-1;e++){const t=h(c);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof c&&"prototype"===n&&a(19),c=g(c,n),"object"!==typeof c&&a(18,s.join("/"))}const u=h(c),d=o(i.value),f=s[s.length-1];switch(l){case e:switch(u){case 2:return c.set(f,d);case 3:a(16);default:return c[f]=d}case t:switch(u){case 1:return"-"===f?c.push(d):c.splice(f,0,d);case 2:return c.set(f,d);case 3:return c.add(d);default:return c[f]=d}case n:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(i.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,i,o,a){switch(r.type_){case 0:case 2:return function(r,i,o,a){const{base_:s,copy_:l}=r;p(r.assigned_,((r,c)=>{const d=g(s,r),f=g(l,r),p=c?m(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);o.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,i,o,a);case 1:return function(r,i,o,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[o,a]=[a,o]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=i.concat([t]);o.push({op:e,path:n,value:u(c[t])}),a.push({op:e,path:n,value:u(s[t])})}for(let e=s.length;e<c.length;e++){const n=i.concat([e]);o.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=i.concat([e]);a.push({op:n,path:t})}}(r,i,o,a);case 3:return function(e,r,i,o){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);i.push({op:n,path:a,value:e}),o.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);i.push({op:t,path:a,value:e}),o.unshift({op:n,path:a,value:e})}l++}))}(r,i,o,a)}},generateReplacementPatches_:function(t,n,i,o){i.push({op:e,path:[],value:n===r?void 0:n}),o.push({op:e,path:[],value:t})}})}var G=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let i;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=R(this),o=V(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?I(r):P(r)}return A(r,n),j(i,r)}if(!e||"object"!==typeof e){if(i=t(e),void 0===i&&(i=e),i===r&&(i=void 0),this.autoFreeze_&&_(i,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,i,t,r),n(t,r)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=function(e){l(e)||a(10);return W(e)}(e));const t=R(this),n=V(e,void 0);return n[o].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[o];n&&n.isManual_||a(9);const{scope_:r}=n;return A(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=G.produce,Q=G.produceWithPatches.bind(G),Z=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),i=n(69220),o=n(10176);const a="function"===typeof r.useId?function(){return`${i.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,o.zm)()),e.current}},91135:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(67884),i=n(10755),o=n(92459),a=n(60712);function s({path:e,...t}){const n=(0,i.zy)(),s=(0,o.mA)(n),l=(0,o.Ow)({...s,schema:e});return(0,a.jsx)(r.N,{view:"normal",...t,href:l})}},91159:(e,t,n)=>{var r=n(54573),i=n(57741),o=n(73073),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},91268:(e,t,n)=>{"use strict";var r=n(62384),i=n(39232),o=n(8928);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},91407:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(_);else{var t=r(u);null!==t&&D(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var o=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&i(c),w(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&D(x,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,C=null,k=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==C){var e=t.unstable_now();N=e;var n=!0;try{n=C(!0,e)}finally{n?E():(S=!1,C=null)}}else S=!1}if("function"===typeof b)E=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=A,E=function(){P.postMessage(null)}}else E=function(){v(A,0)};function R(e){C=e,S||(S=!0,E())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,D(x,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},91644:(e,t,n)=>{var r=n(62871),i=n(12927);e.exports=function(e,t){return r(e,i(e),t)}},92061:(e,t,n)=>{var r=n(60242);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},92189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,o.createObjectFromConfig)(e,n),l=e[o.RLSCONFIG]&&e[o.RLSCONFIG].queryParser,c=(0,o.parseParams)(n.search,l);if(!s)return{location:i({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var i=s[n],l=i.stateKey,d=i.options,f=void 0===d?{}:d,p=i.initialState,h=i.type,m=(0,o.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,o.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:i({},n,{search:(0,o.createParamsString)(d)}),shouldPush:u}};var o=n(93650),a=n(86540)},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>i,b:()=>o});var r=n(82435);const i="gn-";(0,r.withNaming)({e:"__",m:"_"});const o=(0,r.withNaming)({n:i,e:"__",m:"_"})},92459:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,Ck:()=>v,DM:()=>x,KY:()=>h,Ow:()=>m,_g:()=>b,a3:()=>g,mA:()=>f,qc:()=>w,yX:()=>y});var r=n(905),i=n.n(r),o=n(95166),a=n(74309),s=n.n(a),l=n(67087),c=n(58351);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const i=r[0];t=e.replace(n,":\\"+i.slice(1))}return t};function h(e,t,n={}){let r=n;const a="backend"in n&&Boolean(n.backend);c.Hs&&!a&&c.jC&&(r={...n,backend:c.Hs});const l="clusterName"in n&&Boolean(n.clusterName);c.SL&&!l&&c.jC&&(r={...r,clusterName:c.SL});const u=i()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,o.compile)(d)(t)}${u}`}const m=(e={})=>h(window.location.pathname,void 0,e);function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t,n={}){return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n,r={}){return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e,t={}){return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam,followerId:l.StringParam};function x(e,t={}){return h(u.tablet,{id:e},{...t})}},92470:(e,t,n)=>{var r=n(84579),i=n(98112);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},93339:(e,t,n)=>{"use strict";var r=n(69123),i=n(39955),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},93650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),i=e[n];if(function(e){return"undefined"===typeof e||null===e}(i)||Array.isArray(i)&&!i.length)return t;var o=e[n].toString();return[].concat(s(t),[c(r)+"="+c(o)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(87924)),i=a(n(62060)),o=a(n(38896));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:o.default,isEqual:i.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),i=[].concat(s(r)),o=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-o,1),i.splice(n-o,1),o++)})),t.join("/")===i.join("/")}))[0]}},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),o=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,o);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var o=n[t],s=o.stateKey,l=o.options,c=void 0===l?{}:l,u=o.initialState,d=o.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?i.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),i=n(86540)},93780:(e,t,n)=>{"use strict";var r=n(3584),i=n(73888),o=n(7445),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,s,c,d,f,m,g,v,y,b,w,x,_,E,S){for(var C,k=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var A=O.get(t);if(N+=1,"undefined"!==typeof A){if(A===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?k=g(n,k):k instanceof Date?k=b(k):"comma"===o&&l(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;k=""}if("string"===typeof(C=k)||"number"===typeof C||"boolean"===typeof C||"symbol"===typeof C||"bigint"===typeof C||i.isBuffer(k))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(k,p.encoder,E,"value",w))]:[x(n)+"="+x(String(k))];var I,P=[];if("undefined"===typeof k)return P;if("comma"===o&&l(k))_&&m&&(k=i.maybeMap(k,m)),I=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(g))I=g;else{var R=Object.keys(k);I=v?R.sort(v):R}var D=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(k)&&1===k.length?D+"[]":D;if(s&&l(k)&&0===k.length)return j+"[]";for(var M=0;M<I.length;++M){var L=I[M],z="object"===typeof L&&L&&"undefined"!==typeof L.value?L.value:k[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(k)?"function"===typeof o?o(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(P,e(z,B,o,a,s,c,d,f,"comma"===o&&_&&l(k)?null:m,g,v,y,b,w,x,_,E,U))}}return P};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof i||null===i)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=i[y];c.skipNulls&&null===b||u(d,m(b,y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=d.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},94454:e=>{e.exports=function(){}},94701:(e,t,n)=>{"use strict";var r,i=n(30836),o=n(73759),a=n(82461),s=n(52530),l=n(19770),c=n(78236),u=n(39955),d=n(22921),f=n(51682),p=n(45904),h=n(73620),m=n(40538),g=n(7328),v=n(54),y=n(75869),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},x=n(84363),_=n(78599),E=function(){throw new u},S=x?function(){try{return E}catch(e){try{return x(arguments,"callee").get}catch(t){return E}}}():E,C=n(27199)(),k=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},P="undefined"!==typeof Uint8Array&&k?k(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&k?k([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&k?k(k([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&C&&k?k((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&C&&k?k((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&k?k(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":N};if(k)try{null.error}catch(K){var D=k(k(K));R["%Error.prototype%"]=D}var j=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&k&&(n=k(i.prototype))}return R[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(35711),z=n(86173),F=L.call(A,Array.prototype.concat),B=L.call(T,Array.prototype.splice),U=L.call(A,String.prototype.replace),$=L.call(A,String.prototype.slice),q=L.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,W=function(e,t){var n,r=e;if(z(M,r)&&(r="%"+(n=M[r])[0]+"%"),z(R,r)){var i=R[r];if(i===I&&(i=j(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=$(e,0,1),n=$(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,H,(function(e,t,n,i){r[r.length]=n?U(i,V,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],B(n,F([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=$(p,0,1),m=$(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),z(R,o="%"+(r+="."+p)+"%"))a=R[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var g=x(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=z(a,p),a=a[p];f&&!s&&(R[o]=a)}}return a}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return o(d(e,n,t),n)},e.exports.regexpToFunction=o,e.exports.parse=r,e.exports.compile=function(e,t){return a(r(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=u;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var o,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(o=n.exec(e));){var h=o[0],m=o[1],g=o.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=o[2],b=o[3],w=o[4],x=o[5];if(!p&&u.length){var _=u.length-1,E=u[_];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,_))}u&&(a.push(u),u="",p=!1);var S="+"===x||"*"===x,C="?"===x||"*"===x,k=b||w,O=v||d,N=v||("string"===typeof a[a.length-1]?a[a.length-1]:"");a.push({name:y||s++,prefix:v,delimiter:O,optional:C,repeat:S,pattern:k?l(k):i(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function i(e,t,n){var r="[^"+s(e===t?e:e+t)+"]";return!n||n.indexOf(e)>-1||n.indexOf(t)>-1?r+"+?":s(n)+"|(?:(?!"+s(n)+")"+r+")+?"}function o(e,t){return function(n,r){var i=e.exec(n);if(!i)return!1;for(var o=i[0],a=i.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<i.length;c++)if(void 0!==i[c]){var u=t[c-1];u.repeat?s[u.name]=i[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(i[c],u)}return{path:o,index:a,params:s}}}function a(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var i="",o=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');i+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=o(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');i+=l.prefix+c}}else i+=l}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function u(e,n,r){for(var i=(r=r||{}).strict,o=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=o?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=s(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+s(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+s(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=s(p.prefix)+"("+h+")"}}if(a)i||(d+="(?:"+s(l)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===l:void 0===m;i||(d+="(?:"+s(l)+"(?="+u+"))?"),g||(d+="(?="+s(l)+"|"+u+")")}return new RegExp(d,c(r))}function d(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(e,t,n):function(e,t,n){return u(r(e,n),t,n)}(e,t,n)}},95197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),i=n(67028),o=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,i.Oi)(),[t,n]=(0,s.i)(o.c4),l=a.dZ.parse(t),[c]=(0,s.i)(o.lr),[u]=(0,s.i)(o.kO),d=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,timeout:u&&l.queryMode===a.ei.query?l.timeout||null:l.timeout||void 0,statisticsMode:c?a.pE.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.jU.tracingLevel},d]}},96294:(e,t,n)=>{var r=n(20943),i=n(71824),o=n(88118);e.exports=function(e){return o(e)?r(e):i(e)}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),i=n(59284),o=n(18650),a=n(84476),s=n(48699),l=n(46700),c=n(69220),u=n(72837);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e"}'),p=(0,u.N)({en:d,ru:f},"ClipboardButton"),h=(0,c.om)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,x=(0,r.Tt)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),_=i.createElement(a.$.Icon,{className:h("icon")},i.createElement(s.u,{size:v[t],status:u}));return i.createElement(o.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},i.createElement(a.$,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},x),"start"===g?_:null,m,"end"===g?_:null))};function b(e){const{text:t,timeout:n=m,onCopy:o,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=i.useRef(),[p,h]=i.useState(void 0),[v,b]=i.useState(!1);i.useEffect((()=>window.clearTimeout(f.current)),[]);const w=i.useCallback(((e,t)=>{null===o||void 0===o||o(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[o,n]),x=i.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),_=i.useCallback((e=>{null===c||void 0===c||c(e),x()}),[c,x]),E=i.useCallback((e=>{null===u||void 0===u||u(e),x()}),[u,x]);return i.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>i.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:_,onFocus:E}))))}},96906:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var i=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let o=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=o(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));o=e,v({type:a.REPLACE})},[i]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[i](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}const i=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){o=s}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const l=i[o],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||i.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=u(i,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,i)=>{const o=t(n,i);let a=()=>{throw new Error(r(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(o.dispatch),{...o,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>m,U1:()=>b,VP:()=>u,zD:()=>M,Z0:()=>$,gk:()=>V,f$:()=>E,i0:()=>_,$S:()=>A,sf:()=>T,mm:()=>k,TK:()=>O,WA:()=>N,Ak:()=>I,aA:()=>g});var r=n(96906);function i(e){return({dispatch:t,getState:n})=>r=>i=>"function"===typeof i?i(t,n,e):r(i)}var o=i(),a=i,s=n(90754),l="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r.Zz:r.Zz.apply(null,arguments)},c=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function u(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(V(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.ve)(t)&&t.type===e,n}var d=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function f(e){return(0,s.a6)(e)?(0,s.jM)(e,(()=>{})):e}function p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var h=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let s=new d;return t&&("boolean"===typeof t?s.push(o):s.push(a(t.extraArgument))),s},m="RTK_autoBatch",g=()=>e=>({payload:e,meta:{[m]:!0}}),v=e=>t=>{setTimeout(t,e)},y=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new d(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:v(10):"callback"===e.type?e.queueNotification:v(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[m],o=!i,o&&(a||(a=!0,l(c))),r.dispatch(e)}finally{i=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=h(),{reducer:n,middleware:i,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let c,u;if("function"===typeof n)c=n;else{if(!(0,r.Qd)(n))throw new Error(V(1));c=(0,r.HY)(n)}u="function"===typeof i?i(t):t();let d=r.Zz;o&&(d=l({trace:!1,..."object"===typeof o&&o}));const f=(0,r.Tw)(...u),p=y(f);const m=d(..."function"===typeof s?s(p):p());return(0,r.y$)(c,a,m)}function w(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(V(28));if(r in t)throw new Error(V(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var x=(e,t)=>c(e)?e.match(t):e(t);function _(...e){return t=>e.some((e=>x(e,t)))}function E(...e){return t=>e.every((e=>x(e,t)))}function S(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function C(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function k(...e){return 0===e.length?e=>S(e,["pending"]):C(e)?_(...e.map((e=>e.pending))):k()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):C(e)?_(...e.map((e=>e.rejected))):O()(e[0])}function N(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||C(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):C(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):C(e)?_(...e.flatMap((e=>[e.pending,e.rejected,e.fulfilled]))):A()(e[0])}var I=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},P=["name","message","stack","code"],R=class{constructor(e,t){this.payload=e,this.meta=t}_type},D=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of P)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},M=(()=>{function e(e,t,n){const r=u(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),i=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=u(e+"/rejected",((e,t,r,i,o)=>({payload:i,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):I(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let o=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=o)&&"object"===typeof m&&"function"===typeof m.then&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(i(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new R(e,t),fulfillWithValue:(e,t)=>new D(e,t)})).then((t=>{if(t instanceof R)throw t;return t instanceof D?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof R?o(null,c,e,g.payload,g.meta):o(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&o.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(L)})}}),{pending:i,rejected:o,fulfilled:r,settled:_(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function L(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var z=Symbol.for("rtk-slice-createasyncthunk");function F(e,t){return`${e}/${t}`}function B({creators:e}={}){const t=e?.asyncThunk?.[z];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(V(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(V(12));if(n in a.sliceCaseReducersByType)throw new Error(V(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"===typeof e.extraReducers?w(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=w(t);if("function"===typeof e)n=()=>f(e());else{const t=f(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if((0,s.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,s.a6)(e))return(0,s.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],a={reducerName:r,type:F(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(V(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?u(e,a):u(e))}(a,o,l):function({type:e,reducerName:t},n,r,i){if(!i)throw new Error(V(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||q,pending:s||q,rejected:l||q,settled:c||q})}(a,o,l,t)}));const d=e=>e,h=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function i(t=d){const r=p(h,n,(()=>new WeakMap));return p(r,t,(()=>{const r={};for(const[i,o]of Object.entries(e.selectors??{}))r[i]=U(o,t,v,n);return r}))}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const b={name:n,reducer:g,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:v,...y(r),injectInto(e,{reducerPath:t,...n}={}){const i=t??r;return e.inject({reducerPath:i,reducer:g},n),{...b,...y(i,!0)}}};return b}}function U(e,t,n,r){function i(i,...o){let a=t(i);return"undefined"===typeof a&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var $=B();function q(){}var{assign:H}=Object;Symbol.for("rtk-state-proxy-original");function V(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},97269:(e,t,n)=>{var r=n(11320),i=n(22894),o=n(23097),a=n(78453),s=n(24381);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>oe,bN:()=>D,d4:()=>ue,vA:()=>de,wA:()=>se});var r=n(59284),i=n(88730),o=r.version.startsWith("19"),a=Symbol.for(o?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=p,b=g;function w(e){if("object"===typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case v:case g:case d:return e;default:return t}}case s:return t}}}function x(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!o(p,l),m=!i(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(i,o){return f?p(i,o):(s=i,l=o,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function _(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function S(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=E(e);let i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=E(i),i=r(t,n)),i},r}}function C(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function k(e,t,n){return{...n,...e,...t}}function O(e){e()}var N={notify(){},get:()=>[]};function T(e,t){let n,r=N,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=N)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}var A=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),I=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),P=(()=>A||I?r.useLayoutEffect:r.useEffect)();function R(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function D(e,t){if(R(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!R(e[n[i]],t[n[i]]))return!1;return!0}var j={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function F(e){return w(e)===g?L:z[e.$$typeof]||j}var B=Object.defineProperty,U=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,V=Object.prototype;function W(e,t){if("string"!==typeof t){if(V){const n=H(t);n&&n!==V&&W(e,n)}let r=U(t);$&&(r=r.concat($(t)));const i=F(e),o=F(t);for(let a=0;a<r.length;++a){const s=r[a];if(!M[s]&&(!o||!o[s])&&(!i||!i[s])){const r=q(t,s);try{B(e,s,r)}catch(n){}}}}return e}var K=Symbol.for("react-redux-context"),G="undefined"!==typeof globalThis?globalThis:{};function Y(){if(!r.createContext)return{};const e=G[K]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Q=Y(),Z=[null,null];function J(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function X(e,t){return e===t}var ee=function(e,t,n,{pure:i,areStatesEqual:o=X,areOwnPropsEqual:a=D,areStatePropsEqual:s=D,areMergedPropsEqual:l=D,forwardRef:c=!1,context:u=Q}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):C(e,"mapStateToProps"):_((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?_((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"===typeof e?S(e):C(e,"mapDispatchToProps"):_((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):C(e,"mergeProps"):()=>k}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,o,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return x(t(e,i),n(e,i),r(e,i),e,i)}(f.dispatch,i)),[f]),[g,v]=r.useMemo((()=>{if(!m)return Z;const e=T(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,l]),y=r.useMemo((()=>c?l:{...l,subscription:g}),[c,l,g]),b=r.useRef(void 0),w=r.useRef(a),_=r.useRef(void 0),E=r.useRef(!1),S=r.useRef(!1),C=r.useRef(void 0);P((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=r.useMemo((()=>()=>_.current&&a===w.current?_.current:h(f.getState(),a)),[f,a]),O=r.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,i.current)}catch(h){p=h,f=h}p||(f=null),n===o.current?a.current||c():(o.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,E,S,_,v,e):()=>{}),[g]);var N,A,I;let R;N=J,A=[w,b,E,a,_,v],P((()=>N(...A)),I);try{R=r.useSyncExternalStore(O,k,p?()=>h(p(),a):k)}catch(j){throw C.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),j}P((()=>{C.current=void 0,_.current=void 0,b.current=R}));const D=r.useMemo((()=>r.createElement(e,{...R,ref:o})),[o,e,R]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},D):D),[s,D,y])}const g=r.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,W(t,e)}return W(g,e)}};var te=function(e){const{children:t,context:n,serverState:i,store:o}=e,a=r.useMemo((()=>{const e=T(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),s=r.useMemo((()=>o.getState()),[o]);P((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||Q;return r.createElement(l.Provider,{value:a},t)};function ne(e=Q){return function(){return r.useContext(e)}}var re=ne();function ie(e=Q){const t=e===Q?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var oe=ie();function ae(e=Q){const t=e===Q?oe:ie(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ce(e=Q){const t=e===Q?re:ne(e),n=(e,n={})=>{const{equalityFn:o=le}="function"===typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,i.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,o);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ue=ce(),de=O},97650:function(e,t,n){var r,i,o;i=[n(7139)],void 0===(o="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,i=e>=100?100:null;return t[n]||t[r]||t[i]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,i):r)||(e.exports=o)},97763:(e,t,n)=>{const r=n(15742);t.render=function(e,t,n){let i=n,o=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);const a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return r.qrToImageData(l.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,r){let i=r;"undefined"!==typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),i=n(59284),o=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:i},o)=>a({variant:e,ellipsis:t,ws:r,wb:i,"ellipsis-lines":n},o),l=i.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r.Tt)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),i.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,o.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},98137:(e,t,n)=>{var r=n(84401),i=n(96294);e.exports=function(e,t){return e&&r(e,t,i)}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});n(59284);var r=n(47334),i=n(60712);function o({loading:e,size:t="m",className:n,children:o}){return e?(0,i.jsx)(r.a,{size:t,className:n}):o}},98220:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,i=0,o=0,a=null,s=null;for(let l=0;l<t;l++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?i++:(i>=5&&(r+=n+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(r+=n+(o-5)),s=t,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){const t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(i,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,a(e,i,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,i=a)}return i}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),i=n(48681);const o=r.createContext({current:null});o.displayName="PortalContext";var a=n(69118),s=n(46878);const l=(0,n(69220).om)("portal");function c({container:e,children:t,disablePortal:n}){const c=function(){var e;const t=r.useContext(o);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:u}=(0,s.w)(),d=null!==e&&void 0!==e?e:c;return n?r.createElement(r.Fragment,null,t):d?i.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},98730:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{L:()=>r})},98816:(e,t,n)=>{var r=n(68814),i=n(58120);e.exports=function(e){return i(r(e).toLowerCase())}},98934:(e,t,n)=>{"use strict";n.d(t,{H:()=>u});var r=n(27145),i=n(59284),o=n(73633),a=n(99991),s=n(84375);const l=(0,n(69220).om)("help-mark"),c=16;function u(e){var{buttonRef:t,buttonProps:n={},children:u,className:d}=e,f=(0,r.Tt)(e,["buttonRef","buttonProps","children","className"]);return i.createElement(s.A,Object.assign({},f,{delayClosing:300,className:l(null,d),content:u}),(()=>i.createElement("button",Object.assign({ref:t,type:"button"},n,{className:l("button",n.className)}),i.createElement(a.I,{data:o.A,size:c}))))}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),i=n(74417),o=n(34271),a=n(82266),s=n(60712);function l(e,t,n){const i=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.jt,{error:e})}))))),l=r.forwardRef(((e,t)=>{const a=(0,o.x)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(i,{ref:t,...e})})})}));return l.displayName=t,l}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(i.a,{size:"l"})})}},99105:(e,t,n)=>{const r=n(71928),i=n(3773),o=n(44593),a=n(89990),s=n(6693),l=n(16284),c=n(22750),u=n(9624);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let i;for(;null!==(i=e.exec(n));)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function p(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=f(l.BYTE,r.BYTE,e),o=f(l.KANJI,r.KANJI,e)):(i=f(l.BYTE_KANJI,r.BYTE,e),o=[]);return t.concat(n,i,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"===typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const i=function(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:d(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:d(i.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),o=function(e,t){const n={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];n[a]&&n[a].node.mode===c.mode?(i[a][u]=h(n[a].lastCount+c.length,c.mode)-h(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),i[a][u]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let r=0;r<o.length;r++)i[o[r]].end=0;return{map:i,table:n}}(i,n),a=u.find_path(o.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(o.table[a[t]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),i=n(359),o=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===i.D.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,i=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,i=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,i)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){o.o.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:i}=t,o="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,i))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||o.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,i,o,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},99661:(e,t,n)=>{var r=n(57578);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},99889:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),i=n(69220);const o={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,i.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:i,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(i&&(m=i,g=i),t&&(m=t),n&&(g=n),a(e))({viewBox:v}=e);else if(s(e))v=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(e);else if(function(e){return("object"===typeof e||"function"===typeof e)&&"defaultProps"in e}(e))({viewBox:v}=e.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(e)){const t=e({});t&&({viewBox:v}=t.props)}if(v&&(!m||!g)){const e=v.split(/\s+|\s*,\s*/);m||(m=e[2]),g||(g=e[3])}const y=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:g,className:l(null,u),fill:d,stroke:f,"data-qa":p},o);if(s(e)){const t=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(e);return r.createElement("svg",Object.assign({},y,{ref:h,dangerouslySetInnerHTML:{__html:t}}))}if(a(e)){const t=c.prefix+(e.url||`#${e.id}`);return r.createElement("svg",Object.assign({},y,{viewBox:v,ref:h}),r.createElement("use",{href:t,xlinkHref:t}))}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),r.createElement("svg",Object.assign({},y,{ref:h}),r.createElement(b,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{173:"7f4af5fa",734:"3fe325e9",1073:"da2a8c8a",1146:"65a37bc6",1187:"c5435886",1237:"328d0241",1431:"2bb62d12",1606:"0041ed7d",2162:"cca3e026",2251:"651c81f8",2656:"6cdcd805",2726:"abc3a0c2",2994:"6c6016a8",3048:"692b5966",3061:"c2a39676",3121:"74e9e7dc",3149:"0c1f7eee",3410:"6391755f",3534:"d7d57e03",3648:"3a72999a",3738:"bec1d482",3872:"a25d87b5",3902:"973b73c6",3952:"ce1b4fad",3980:"f3083535",4018:"f6c8e2ef",4180:"1de6c8ba",4243:"697ce022",4441:"2b4963cf",4554:"8b82bb25",4617:"be8c65cd",4664:"972299e2",4730:"78e66e9a",4818:"6beda30c",4887:"f016c3bb",5254:"ef9c1c59",5282:"37c7be51",5393:"cb636c81",5411:"001c1dc7",5475:"20ce4f75",5530:"da339b78",5634:"0a0bddae",5647:"0920ef73",5866:"14d27c8c",6197:"acb1fd7c",6261:"78de43a8",6528:"77d69abb",6785:"f25ed122",6881:"7e6434c9",7548:"fd5d2b6c",7773:"b2d5a51a",8215:"36727d1f",8534:"f7aec532",8704:"87492da1",9174:"ae7682da",9177:"3b6d6de8",9426:"8c0cade1",9493:"f7e806b7",9511:"aceb118a",9518:"3fffdd45",9606:"fc9247cb",9614:"71b68927",9930:"e56b072a",10064:"5442bcf6",10132:"c1a19fa8",10242:"86faa17f",10246:"ee23b775",10310:"a0a2e8d7",10525:"b02faf58",10815:"03541c68",10902:"cd23357e",11192:"56c4d6e0",11278:"aab5c12c",11338:"6bb2b16a",12776:"d400f028",13470:"82cfe328",13638:"e739b34f",14382:"a8e3e5fd",14542:"fea67816",15418:"978d5fff",15542:"e6a4dbf6",15931:"ad3d689f",16038:"8c61a9b6",16097:"4303c083",16210:"cfacbd9b",16242:"ba0392be",16664:"195e9acf",16758:"3630f667",16795:"c5c2f8ec",17240:"74653f76",17500:"d2b3273a",17830:"763df207",17880:"ed6168a4",17981:"5fd12b3d",19026:"f05aa9b2",19233:"b4069ac2",19507:"0512979b",19702:"cd1b5e06",19728:"daf9b9f8",19791:"feabd3fc",20053:"925f8331",20535:"b2fdb3bf",20600:"6e1ccb0d",20654:"f715fac2",21053:"3d2e8f28",21657:"6821035c",21742:"5a360b56",21956:"3e818e6c",21989:"76579159",21996:"6a6996bf",22372:"9c5be99f",22609:"bdebad49",22626:"2495b693",23039:"f34c5f78",23158:"a522a83d",23321:"4a32d0c2",23702:"887336e8",23779:"2a240d6f",23882:"3b39c413",24130:"160bfd14",24349:"ff3855f6",24458:"50eb1325",24534:"3cac028e",24662:"5e8417ae",25007:"2ae44a13",25101:"06af1360",25453:"c8bfcbe1",25604:"54cb85d0",25636:"358f92b4",26214:"42be0c73",26324:"10b41523",26327:"62bdac9a",26358:"23555994",26411:"07f03301",26625:"d5154eea",26833:"d6c6c578",27148:"5289994c",27950:"acee5eec",28125:"0776827a",28256:"20804e43",28868:"3c0ecf71",29043:"f0a51584",29193:"43e37031",29394:"e027e9c7",29461:"74898902",29769:"21fd5384",29866:"16645b0d",30226:"e28d8c14",30229:"9a64e8c6",30249:"b5966caf",30499:"28982bd3",30523:"726a6c98",30573:"df897e71",30811:"b4fed9a8",30850:"aef4d4ce",31177:"d892dd40",31423:"b7296b03",31584:"6ddd5f13",31975:"54132ada",32166:"8e70395f",32286:"23bbbad8",32670:"1e209a72",32742:"d4094814",32854:"6c426003",33338:"c39231db",33436:"e8e4435f",33521:"11130f2d",33822:"3b7da7cd",34119:"377036f7",34156:"b749f595",34169:"9a22281f",34542:"6199c708",34693:"09c32626",34847:"ec23543c",35161:"d7f85805",35382:"6471a2ea",35569:"8ceadf10",35596:"d9a26c66",35803:"0104654b",35888:"e5062b23",35958:"73cbdbca",36374:"16f4dcdb",36754:"f9faf9f5",36786:"ca3962c1",37380:"7c50d99e",37385:"c32c6c83",37579:"aa311c74",37605:"270ebf37",37677:"c7cb500e",37747:"ab1590d9",37963:"55ad78e4",38103:"a27aa378",38527:"b39cc908",38718:"bf415be7",39705:"257f0583",40047:"1e272b92",40060:"5f9cbddd",40132:"8f54cbd2",40388:"be25f07a",40710:"a00731c6",40730:"5e1bc3d1",41696:"f9f2ec5d",42111:"2a4b8434",42182:"a71d5155",42384:"403ac671",42396:"9af219b0",42612:"7c3ffc1d",42615:"93e0f1f6",42791:"26100ebe",42912:"7ab36c78",43028:"3817b0d7",43702:"745d5072",43761:"7a876492",43979:"9ed5260f",44096:"4faf307e",44391:"7bf4eade",44601:"53b5fa99",44846:"352e01be",44866:"fde9a535",45517:"dd0696d8",45685:"47ca075a",45759:"cb764ce8",46012:"36fc4080",46047:"240cef79",46134:"708fa2c1",46306:"d3a5a75d",46541:"3c0665eb",47108:"d6adff77",47153:"2c051af0",47293:"68cfbf41",47472:"10032073",47512:"39fd7220",47614:"68df3ac9",47660:"d58e412b",47692:"c0ce8e67",47878:"706bd425",48008:"f90295f8",48633:"41f9d3a3",48914:"0bb2f1c2",49067:"2e09b756",49393:"48f114fd",49523:"654b328e",49582:"c5a749cc",49725:"3529a00c",49778:"b9d397f4",49788:"12d03dd2",50045:"c8e44e5c",50245:"1623217b",50875:"c6afaf0d",51094:"f421b808",51159:"314cef1d",51255:"beb93f73",51400:"767e472a",51414:"1b5a0681",51496:"423aebfa",51627:"9762f671",52036:"0bcd45d5",52182:"735ff091",52518:"2a3ff21a",52527:"57100447",52541:"7c3f886c",53338:"161bc4dd",53672:"a70ebf8e",54520:"c2776d7f",54597:"f81d6f07",54651:"40344b3d",54678:"5a7b7b35",54781:"9ee0aecd",54861:"f927c937",55454:"4f52583e",55528:"e1e10ce0",55534:"43828e20",55651:"bd57c77c",55816:"ceb201d4",55853:"2ca378d0",55990:"c86b7669",56013:"d9e34466",56026:"85d58e2b",56054:"9d70a2ed",56174:"562b7d92",56358:"3a141569",56405:"5fa107d3",56421:"a250ca1b",56761:"638c1141",56990:"be6d200f",57016:"ccc30938",57118:"e38774e7",57206:"7544a09d",57320:"74fc8316",57469:"85faf9a5",57708:"c2b518ee",57946:"31f41343",57970:"67e88902",58457:"708b5a15",58666:"91b79adf",58840:"529e7b9b",58884:"1009923e",58890:"cf2d0d90",58986:"472d72cc",59172:"d3dd36c7",59243:"5de594f4",59605:"a2f7e321",59748:"4682a957",59786:"9a9eda90",59882:"b6def2ca",59908:"4f5fa1f6",60110:"448cdddf",60221:"8d560e16",60464:"c820a295",60949:"c74a3708",61088:"c55195af",61250:"2b3f06a3",61387:"f19330bb",61741:"c551cb8f",61747:"0c4ed2d6",61865:"21725853",61917:"92d39b4c",62042:"e21d383b",62308:"fe05af2f",62350:"07b0039d",62595:"0c9bd5a0",62888:"e3af7359",63008:"97387142",63653:"c2f7dcde",63679:"05a63e19",63769:"731ffb68",63782:"48301ab7",64464:"e1dcaef9",65206:"7f46c107",65252:"2655458e",65401:"e76db1a2",65579:"1ec2325b",65633:"b6bc2f47",65824:"1f5e112a",65988:"11e4149b",66262:"b361ce28",66397:"32c2f9da",66447:"716a34f7",66593:"94c01a99",66809:"a4c3fdb1",66820:"ec86ae7a",66824:"abfa3f22",67105:"3413451f",67191:"46b77437",67329:"08db90c1",67348:"c1ed85fa",67357:"dd9aa014",67574:"31643beb",67605:"6cd42d90",68220:"ece8573d",68377:"f73a91b7",68527:"1f687bcf",68818:"0e24392e",68821:"a96b8277",68990:"59087cc5",69220:"b99a5ded",69500:"7fbd370c",69712:"983d0bad",69854:"1159f91a",69997:"3bda423b",70190:"e3137ef3",70225:"f064b5ad",70289:"b63d5fb8",70695:"3af812a3",70858:"35d686d1",71107:"d2d26409",71266:"6ba99b0a",71486:"3e01f058",71515:"2280d42d",71588:"5c21e822",71672:"9d9a091b",71756:"324c49c8",71867:"4808e834",72020:"e0c38d22",72188:"5b48f0f8",72401:"bef7ab50",72568:"9f8b7a4b",72737:"e79b7900",72775:"0e6824d4",72788:"d00f6565",73026:"ba38cd34",73064:"b0c26084",73238:"abca2b52",73442:"0bbc74fd",73478:"353da8fe",73534:"e63e8bd4",73863:"6655927e",73879:"9dc10432",74324:"03761f87",74394:"3bb376a8",74729:"fa6e7280",74891:"fa3d6f11",75510:"026d82a2",75523:"d65a825f",76603:"db4ff761",76879:"ff0dd32c",77642:"1a976f0c",77697:"23abc7db",77718:"38572b28",78053:"1b2b1602",78112:"671df87e",78517:"bd6413c4",78710:"673d31cf",78979:"e31ea57f",79204:"b8bc5268",79247:"1bc3dc95",79312:"17a58c6f",79433:"b3b128c9",79707:"def8f77e",79842:"ef61156d",79972:"b465d16f",80017:"210d20b7",80030:"4efa59e1",80067:"910ba368",80108:"0334ef65",80397:"e9187aee",80555:"c5181f9f",80719:"840e5448",80921:"252f76ca",81014:"351ef346",81243:"4d5129fa",81299:"b1fcb7d9",81327:"e08f6d45",81571:"71d0a13e",81747:"65a6a7f3",81836:"55b6c25b",81869:"a0a15184",81940:"05d638c7",82053:"2a21538f",82066:"573664a4",82315:"a87de6b3",82399:"80864f92",82505:"405051e6",82714:"46d13b51",83005:"08f70905",83012:"103c3f36",83075:"aa140970",83333:"65b07752",83510:"ed31c9f8",83896:"d4b0cab7",84027:"c693664b",84307:"59d32ce3",84401:"8a09e9ae",84578:"9e6910e9",84582:"caa06f15",84587:"961ae27a",84652:"5dfa8103",84745:"60da2449",84870:"ab138a59",84960:"05121e37",85027:"462a7fdc",85047:"23b0ab8e",85393:"341703ec",85406:"ba8965be",85595:"262d8065",85622:"18615d00",85623:"d896063a",85664:"569016a5",85776:"0f7f2e5d",85917:"743a4384",85950:"98e6e44a",85953:"ea1ee23e",86114:"0fc0acbb",86342:"528e5efc",86472:"57a5a1cc",86658:"6a6caa74",86814:"c1a521f5",87138:"cf3f482b",87233:"c8b49edb",87357:"d4031306",87429:"3792c589",87962:"2094d7c1",88081:"e48ec099",88119:"041d294e",88269:"9b813297",88432:"95ced9fa",88669:"310e189c",88706:"b895fbe4",88810:"cb646554",88987:"f221b1c0",89015:"1865c336",89025:"e20277a3",89033:"56232409",89222:"d941dfbd",89697:"31847e00",89922:"e5924c1e",90099:"38466d3d",90118:"4fc97e01",90290:"a7f1549c",90330:"7878a0d4",90367:"afe12186",90504:"d340d9cc",90513:"c6053ab5",90529:"112c30e3",90628:"e6a33d41",91087:"3a776c06",91249:"38e22793",91545:"080bf65f",91880:"1a716d56",92008:"7d46cb66",92016:"1c9c5217",92466:"f38204fe",92551:"088c5eb2",92816:"26e23640",92868:"fbd23d48",92984:"bc3d29a6",93033:"55bd21d1",93672:"030a2ec6",93691:"0298f4d1",93696:"ebf5e5d2",93756:"c3c309ab",93771:"f96f428a",93890:"f4cf2ce4",94102:"c7e5199b",94129:"b1cdd95d",94695:"41c32507",94810:"4ac18bf1",95050:"8313ef1e",95264:"612bf2f8",95819:"5ebcb088",95924:"d3281fc7",96017:"b8da505b",96079:"c09d99cc",96410:"55c52134",96554:"bff09e47",97420:"08729928",97440:"3db00b72",97638:"a9af06da",97748:"5df46a4a",98014:"a4ad6ba5",98234:"c2934def",98256:"8a661541",98268:"2e2a9c9c",98559:"7d826ee7",98958:"21184356",99010:"0141f0a0",99176:"319e969d",99341:"613b8fce",99466:"a47d41f5",99753:"25160545",99796:"a8f76855",99872:"c308e65f"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{23779:"b38c45c0",38527:"13440c26",47512:"67d2c551",48593:"95df9723",49393:"82d9be05",58705:"b781fc86",58884:"1e565ac5",64464:"f737743e",71867:"d30d0ff3",75510:"b1faff6b",85917:"9f2a4a06",90099:"7cffb936",94695:"6eb9306c",96079:"c2e5026a"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={38792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{23779:1,38527:1,47512:1,48593:1,49393:1,58705:1,58884:1,64464:1,71867:1,75510:1,85917:1,90099:1,94695:1,96079:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={38792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(/^(48593|58705)$/.test(t))e[t]=0;else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5906),t=n(59610),r=n(42566),i=n(54878);const{store:o,history:a}=(0,i.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,59610)).then((({SingleClusterApp:e})=>e));const i=document.getElementById("root");if(!i)throw new Error("Can't find root element");e.createRoot(i).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:o,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.806ca619.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/main.56991933.js.LICENSE.txt index ab1d0ae270..ab1d0ae270 100644 --- a/ydb/core/viewer/monitoring/static/js/main.806ca619.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/main.56991933.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/main.806ca619.js b/ydb/core/viewer/monitoring/static/js/main.806ca619.js deleted file mode 100644 index 87d01a07de..0000000000 --- a/ydb/core/viewer/monitoring/static/js/main.806ca619.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.806ca619.js.LICENSE.txt */ -(()=>{var e={54:e=>{"use strict";e.exports=Math.round},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75zM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75",clipRule:"evenodd"}))},150:(e,t,n)=>{var r=n(15464),i=n(38469),o=n(60242),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},359:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",SHIFT:"Shift",HOME:"Home",END:"End"}},370:(e,t,n)=>{"use strict";var r,i;n.d(t,{z:()=>Ct}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));const o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?o.promise:"undefined"!==typeof Map&&e instanceof Map?o.map:"undefined"!==typeof Set&&e instanceof Set?o.set:"undefined"!==typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return m;if("aborted"===i.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,x=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}var S,C,k;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(t,i)=>{var o,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:i.defaultError}:"undefined"===typeof i.data?{message:null!==(o=null!==s&&void 0!==s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}class A{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(x(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});return N(r,i)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return w(t)?{value:t.value}:{issues:r.common.issues}}catch(i){(null===(n=null===(t=null===i||void 0===i?void 0:i.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((e=>w(e)?{value:e.value}:{issues:r.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(x(r)?r:Promise.resolve(r));return N(n,i)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Ae({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ie.create(this,this._def)}nullable(){return Pe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return de.create(this)}promise(){return Te.create(this,this._def)}or(e){return he.create([this,e],this._def)}and(e){return ye.create(this,e,this._def)}transform(e){return new Ae({...T(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Re({...T(this._def),innerType:this,defaultValue:t,typeName:qe.ZodDefault})}brand(){return new Le({typeName:qe.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new De({...T(this._def),innerType:this,catchValue:t,typeName:qe.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ze.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,D=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let F;const B=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K=new RegExp(`^${W}$`);function G(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Y(e){let t=`${W}T${G(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Q(e,t){if(!M.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return"object"===typeof i&&null!==i&&(!(!i.typ||!i.alg)&&(!t||i.alg===t))}catch(n){return!1}}function Z(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!$.test(e))}class J extends A{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.string,received:t.parsedType}),m}const t=new h;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,i=e.data.length<o.value;(r||i)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&p(n,{code:s.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)F||(F=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){Y(o).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){K.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${G(o)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(i=e.data,("v4"!==(a=o.version)&&a||!B.test(i))&&("v6"!==a&&a||!q.test(i))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:o.message}),t.dirty())):"jwt"===o.kind?Q(e.data,o.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:s.invalid_string,message:o.message}),t.dirty()):"cidr"===o.kind?Z(e.data,o.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:s.invalid_string,message:o.message}),t.dirty()):"base64"===o.kind?H.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:o.message}),t.dirty()):"base64url"===o.kind?V.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:s.invalid_string,message:o.message}),t.dirty()):r.assertNever(o);var i,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}J.create=e=>{var t;return new J({checks:[],typeName:qe.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ee extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.number,received:t.parsedType}),m}let t;const n=new h;for(const i of this._def.checks)if("int"===i.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty());else if("min"===i.kind){(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else if("max"===i.kind){(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty())}else"multipleOf"===i.kind?0!==X(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ee.create=e=>new ee({checks:[],typeName:qe.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class te extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(i){return this._getInvalidInput(e)}if(this._getType(e)!==o.bigint)return this._getInvalidInput(e);let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}te.create=e=>{var t;return new te({checks:[],typeName:qe.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ne extends A{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.boolean,received:t.parsedType}),m}return v(e.data)}}ne.create=e=>new ne({typeName:qe.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class re extends A{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):r.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}re.create=e=>new re({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:qe.ZodDate,...T(e)});class ie extends A{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.symbol,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:qe.ZodSymbol,...T(e)});class oe extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.undefined,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:qe.ZodUndefined,...T(e)});class ae extends A{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.null,received:t.parsedType}),m}return v(e.data)}}ae.create=e=>new ae({typeName:qe.ZodNull,...T(e)});class se extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}se.create=e=>new se({typeName:qe.ZodAny,...T(e)});class le extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}le.create=e=>new le({typeName:qe.ZodUnknown,...T(e)});class ce extends A{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.never,received:t.parsedType}),m}}ce.create=e=>new ce({typeName:qe.ZodNever,...T(e)});class ue extends A{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.void,received:t.parsedType}),m}return v(e.data)}}ue.create=e=>new ue({typeName:qe.ZodVoid,...T(e)});class de extends A{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return p(t,{code:s.invalid_type,expected:o.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(p(t,{code:e?s.too_big:s.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new de({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new de({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new de({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function fe(e){if(e instanceof pe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ie.create(fe(r))}return new pe({...e._def,shape:()=>t})}return e instanceof de?new de({...e._def,type:fe(e.element)}):e instanceof Ie?Ie.create(fe(e.unwrap())):e instanceof Pe?Pe.create(fe(e.unwrap())):e instanceof be?be.create(e.items.map((e=>fe(e)))):e}de.create=(e,t)=>new de({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...T(t)});class pe extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const o in n.data)i.includes(o)||a.push(o);const l=[];for(const o of i){const e=r[o],t=n.data[o];l.push({key:{status:"valid",value:o},value:e._parse(new O(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof ce){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new pe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new pe({...this._def,unknownKeys:"strip"})}passthrough(){return new pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:qe.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pe({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}deepPartial(){return fe(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new pe({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ie;)e=e._def.innerType;t[n]=e}})),new pe({...this._def,shape:()=>t})}keyof(){return ke(r.objectKeys(this.shape))}}pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...T(t)}),pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ce.create(),typeName:qe.ZodObject,...T(t)}),pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...T(t)});class he extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:i}),m}}get options(){return this._def.options}}he.create=(e,t)=>new he({options:e,typeName:qe.ZodUnion,...T(t)});const me=e=>e instanceof Se?me(e.schema):e instanceof Ae?me(e.innerType()):e instanceof Ce?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof Re?me(e._def.innerType):e instanceof oe?[void 0]:e instanceof ae?[null]:e instanceof Ie?[void 0,...me(e.unwrap())]:e instanceof Pe?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof De?me(e._def.innerType):[];class ge extends A{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return p(t,{code:s.invalid_type,expected:o.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=me(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new ge({typeName:qe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function ve(e,t){const n=a(e),i=a(t);if(e===t)return{valid:!0,data:e};if(n===o.object&&i===o.object){const n=r.objectKeys(t),i=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const r of i){const n=ve(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(n===o.array&&i===o.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=ve(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===o.date&&i===o.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ye extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const i=ve(e.value,r.value);return i.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:i.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ye.create=(e,t,n)=>new ye({left:e,right:t,typeName:qe.ZodIntersection,...T(n)});class be extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return p(n,{code:s.invalid_type,expected:o.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:e,typeName:qe.ZodTuple,rest:null,...T(t)})};class we extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return p(n,{code:s.invalid_type,expected:o.object,received:n.parsedType}),m;const r=[],i=this._def.keyType,a=this._def.valueType;for(const o in n.data)r.push({key:i._parse(new O(n,o,n.path,o)),value:a._parse(new O(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new we(t instanceof A?{keyType:e,valueType:t,typeName:qe.ZodRecord,...T(n)}:{keyType:J.create(),valueType:e,typeName:qe.ZodRecord,...T(t)})}}class xe extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return p(n,{code:s.invalid_type,expected:o.map,received:n.parsedType}),m;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new O(n,e,n.path,[o,"key"])),value:i._parse(new O(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return m;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}xe.create=(e,t,n)=>new xe({valueType:t,keyType:e,typeName:qe.ZodMap,...T(n)});class _e extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return p(n,{code:s.invalid_type,expected:o.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>i._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new _e({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new _e({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}_e.create=(e,t)=>new _e({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...T(t)});class Ee extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return p(t,{code:s.invalid_type,expected:o.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Te){const e=this;return v((async function(...t){const o=new l([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw o.addIssue(n(t,e)),o})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw o.addIssue(r(c,e)),o}))}))}{const e=this;return v((function(...t){const o=e._def.args.safeParse(t,i);if(!o.success)throw new l([n(t,o.error)]);const s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new l([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ee({...this._def,args:be.create(e).rest(le.create())})}returns(e){return new Ee({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ee({args:e||be.create([]).rest(le.create()),returns:t||le.create(),typeName:qe.ZodFunction,...T(n)})}}class Se extends A{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Se.create=(e,t)=>new Se({getter:e,typeName:qe.ZodLazy,...T(t)});class Ce extends A{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ke(e,t){return new Oe({values:e,typeName:qe.ZodEnum,...T(t)})}Ce.create=(e,t)=>new Ce({value:e,typeName:qe.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||E(this,C,new Set(this._def.values),"f"),!_(this,C,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Oe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}C=new WeakMap,Oe.create=ke;class Ne extends A{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||E(this,k,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,k,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}k=new WeakMap,Ne.create=(e,t)=>new Ne({values:e,typeName:qe.ZodNativeEnum,...T(t)});class Te extends A{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:o.promise,received:t.parsedType}),m;const n=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Te.create=(e,t)=>new Te({type:e,typeName:qe.ZodPromise,...T(t)});class Ae extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){const e=i.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=i.transform(e.value,o);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(i.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(i)}}Ae.create=(e,t,n)=>new Ae({schema:e,typeName:qe.ZodEffects,effect:t,...T(n)}),Ae.createWithPreprocess=(e,t,n)=>new Ae({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...T(n)});class Ie extends A{_parse(e){return this._getType(e)===o.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ie.create=(e,t)=>new Ie({innerType:e,typeName:qe.ZodOptional,...T(t)});class Pe extends A{_parse(e){return this._getType(e)===o.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:qe.ZodNullable,...T(t)});class Re extends A{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:qe.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class De extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:qe.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class je extends A{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:o.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}je.create=e=>new je({typeName:qe.ZodNaN,...T(e)});const Me=Symbol("zod_brand");class Le extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ze extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ze({in:e,out:t,typeName:qe.ZodPipeline})}}class Fe extends A{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Be(e,t={},n){return e?se.create().superRefine(((r,i)=>{var o,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}})):se.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:qe.ZodReadonly,...T(t)});const Ue={object:pe.lazycreate};var qe;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(qe||(qe={}));const $e=J.create,He=ee.create,Ve=je.create,We=te.create,Ke=ne.create,Ge=re.create,Ye=ie.create,Qe=oe.create,Ze=ae.create,Je=se.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,rt=pe.create,it=pe.strictCreate,ot=he.create,at=ge.create,st=ye.create,lt=be.create,ct=we.create,ut=xe.create,dt=_e.create,ft=Ee.create,pt=Se.create,ht=Ce.create,mt=Oe.create,gt=Ne.create,vt=Te.create,yt=Ae.create,bt=Ie.create,wt=Pe.create,xt=Ae.createWithPreprocess,_t=ze.create,Et={string:e=>J.create({...e,coerce:!0}),number:e=>ee.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>te.create({...e,coerce:!0}),date:e=>re.create({...e,coerce:!0})},St=m;var Ct=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:x,get util(){return r},get objectUtil(){return i},ZodParsedType:o,getParsedType:a,ZodType:A,datetimeRegex:Y,ZodString:J,ZodNumber:ee,ZodBigInt:te,ZodBoolean:ne,ZodDate:re,ZodSymbol:ie,ZodUndefined:oe,ZodNull:ae,ZodAny:se,ZodUnknown:le,ZodNever:ce,ZodVoid:ue,ZodArray:de,ZodObject:pe,ZodUnion:he,ZodDiscriminatedUnion:ge,ZodIntersection:ye,ZodTuple:be,ZodRecord:we,ZodMap:xe,ZodSet:_e,ZodFunction:Ee,ZodLazy:Se,ZodLiteral:Ce,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:Pe,ZodDefault:Re,ZodCatch:De,ZodNaN:je,BRAND:Me,ZodBranded:Le,ZodPipeline:ze,ZodReadonly:Fe,custom:Be,Schema:A,ZodSchema:A,late:Ue,get ZodFirstPartyTypeKind(){return qe},coerce:Et,any:Je,array:nt,bigint:We,boolean:Ke,date:Ge,discriminatedUnion:at,effect:yt,enum:mt,function:ft,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Be((t=>t instanceof e),t),intersection:st,lazy:pt,literal:ht,map:ut,nan:Ve,nativeEnum:gt,never:et,null:Ze,nullable:wt,number:He,object:rt,oboolean:()=>Ke().optional(),onumber:()=>He().optional(),optional:bt,ostring:()=>$e().optional(),pipeline:_t,preprocess:xt,promise:vt,record:ct,set:dt,strictObject:it,string:$e,symbol:Ye,transformer:yt,tuple:lt,undefined:Qe,union:ot,unknown:Xe,void:tt,NEVER:St,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},613:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},634:(e,t,n)=>{var r=n(81382),i=n(14837),o=n(84401),a=n(66944),s=n(38469),l=n(6737),c=n(76614);e.exports=function e(t,n,u,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284);function i({initialValue:e,onReset:t}){const[n,i]=r.useState(null),o=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(o.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;i(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},905:(e,t,n)=>{var r=n(71824),i=n(43261),o=n(52964),a=n(19305),s=n(88118),l=n(20368),c=n(48303),u=n(91159),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},935:(e,t,n)=>{var r=n(93454),i=n(4200),o=n(30507),a=n(74343),s=n(28815);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),i=n(62060),o=n.n(i);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:i,onSort:a}){const[s,l]=r.useState((()=>{if(e)return[{columnId:e,order:n||t}]}));return[s,r.useCallback((e=>{if(!e||Array.isArray(e)&&!e.length)return void(n||(null===a||void 0===a||a(void 0),l(void 0)));let t=Array.isArray(e)?e:[e];n&&(t=t.map((e=>({columnId:e.columnId,order:n})))),i||(t=t.slice(0,1)),l((e=>t&&!o()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,i,a])]}function s(e=[],t){const n=e.map((e=>({columnId:t(e.columnId),order:e.order}))).filter((e=>Boolean(e.columnId)));if(n.length)return n}function l({columnId:e,order:t}){return`${e} ${-1===t?"DESC":"ASC"}`}function c(e){return e?`ORDER BY ${e.map(l).join(", ")}`:""}},1064:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(59284),i=n(16332),o=n(2198),a=n(23871),s=n(77506),l=n(25196);const c=(0,n(99006)._)((()=>Promise.all([n.e(6820),n.e(8452),n.e(5438)]).then(n.bind(n,45438))),"ConnectToDBSyntaxHighlighter");var u=n(63636);var d=n(60712);const f=(0,s.cn)("ydb-connect-to-db"),p=[{id:"bash",title:"Bash"},{id:"cpp",title:"C++"},{id:"csharp",title:"C# (.NET)"},{id:"go",title:"Go"},{id:"java",title:"Java"},{id:"javascript",title:"Node JS"},{id:"php",title:"PHP"},{id:"python",title:"Python"}];function h({open:e,onClose:t,database:n,endpoint:i}){const[s,h]=r.useState("bash"),m=function(e,t){switch(e){case"cpp":return function({database:e,endpoint:t}){return`auto connectionParams = TConnectionsParams()\n .SetEndpoint("${null!==t&&void 0!==t?t:"<endpoint>"}")\n .SetDatabase("${null!==e&&void 0!==e?e:"/<database>"}")\n .SetAuthToken(GetEnv("YDB_TOKEN"));\n\nTDriver driver(connectionParams);`}(t);case"csharp":return function({database:e,endpoint:t}){return`var config = new DriverConfig(\n endpoint: "${null!==t&&void 0!==t?t:"<endpoint>"}",\n database: "${null!==e&&void 0!==e?e:"/<database>"}",\n credentials: credentialsProvider\n);\n\nusing var driver = new Driver(\n config: config\n);\n\nawait driver.Initialize();`}(t);case"go":return function({database:e,endpoint:t}){return`package main\n\nimport (\n "context"\n "os"\n\n "github.com/ydb-platform/ydb-go-sdk/v3"\n "github.com/ydb-platform/ydb-go-sdk/v3/table"\n)\n\nfunc main() {\n ctx, cancel := context.WithCancel(context.Background())\n defer cancel()\n db, err := ydb.Open(ctx,\n "${null!==t&&void 0!==t?t:"<endpoint>"}${null!==e&&void 0!==e?e:"/<database>"}",\n ydb.WithAccessTokenCredentials(os.Getenv("YDB_ACCESS_TOKEN_CREDENTIALS")),\n )\n if err != nil {\n panic(err)\n }\n\n defer db.Close(ctx)\n\n err = db.Table().Do(ctx,\n func(ctx context.Context, s table.Session) error {\n _, res, err := s.Execute(\n ctx,\n table.TxControl(table.BeginTx(table.WithOnlineReadOnly()), table.CommitTx()),\n "SELECT 'Hello, world!'",\n nil,\n )\n if err != nil {\n return err\n }\n defer res.Close()\n var val string\n\n for res.NextResultSet(ctx) {\n for res.NextRow() {\n err = res.Scan(&val)\n if err != nil {\n return err\n }\n println(val)\n }\n }\n return res.Err()\n })\n if err != nil {\n panic(err)\n }\n}`}(t);case"java":return function({database:e,endpoint:t}){return`package com.example;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport tech.ydb.core.grpc.GrpcTransport;\nimport tech.ydb.table.SessionRetryContext;\nimport tech.ydb.table.TableClient;\nimport tech.ydb.table.query.DataQueryResult;\nimport tech.ydb.table.result.ResultSetReader;\nimport tech.ydb.table.transaction.TxControl;\nimport tech.ydb.auth.TokenAuthProvider;\n\npublic class YDBConnect {\n public static void main(String[] args) throws IOException {\n try (GrpcTransport transport = GrpcTransport.forEndpoint(\n "${null!==t&&void 0!==t?t:"<endpoint>"}",\n "${null!==e&&void 0!==e?e:"/<database>"}")\n .withAuthProvider(new TokenAuthProvider(System.getenv("YDB_ACCESS_TOKEN_CREDENTIALS")))\n .build()) {\n try (TableClient tableClient = TableClient.newClient(transport)\n .build()) {\n SessionRetryContext retryCtx = SessionRetryContext.create(tableClient).build();\n DataQueryResult queryResult = retryCtx.supplyResult(\n session -> session.executeDataQuery("SELECT 'Hello, world!'", TxControl.serializableRw())\n ).join().getValue();\n\n ResultSetReader rsReader = queryResult.getResultSet(0);\n while (rsReader.next()) {\n System.out.println(rsReader.getColumn(0).getBytesAsString(Charset.forName("utf8")));\n }\n }\n }\n }\n}`}(t);case"javascript":return function({database:e,endpoint:t}){return`const {Driver, getCredentialsFromEnv, getLogger} = require('ydb-sdk');\n\nconst logger = getLogger({level: 'debug'});\nconst endpoint = '${null!==t&&void 0!==t?t:"<endpoint>"}';\nconst database = '${null!==e&&void 0!==e?e:"/<database>"}';\nconst authService = getCredentialsFromEnv();\nconst driver = new Driver({endpoint, database, authService});\n\nasync function run() {\n if (!await driver.ready(100)) {\n logger.fatal('Driver has not become ready in 10 seconds!');\n process.exit(1);\n }\n\n await driver.tableClient.withSession(async (session) => {\n res = await session.executeQuery("SELECT 'Hello, world!'")\n console.log(res.resultSets[0].rows[0].items[0].bytesValue.toString())\n return\n });\n\n process.exit(0)\n}\n\nrun();`}(t);case"php":return function({database:e,endpoint:t}){return`<?php\n\nuse YdbPlatform\\Ydb\\Ydb;\n\n$config = [\n // Database path\n 'database' => '${null!==e&&void 0!==e?e:"/<database>"}',\n\n // Database endpoint\n 'endpoint' => '${null!==t&&void 0!==t?t:"<endpoint>"}',\n\n // Auto discovery (dedicated server only)\n 'discovery' => false,\n\n // IAM config\n 'iam_config' => [\n // 'root_cert_file' => './CA.pem', Root CA file (uncomment for dedicated server only)\n ],\n\n 'credentials' => new AccessTokenAuthentication('<token>') // use from reference/ydb-sdk/auth\n];\n\n$ydb = new Ydb($config);`}(t);case"python":return function({database:e,endpoint:t}){return`#!/usr/bin/python3\nimport ydb\n\ndriver_config = ydb.DriverConfig(\n '${t||"<endpoint>"}', '${null!==e&&void 0!==e?e:"/<database>"}',\n credentials=ydb.credentials_from_env_variables(),\n)\nprint(driver_config)\nwith ydb.Driver(driver_config) as driver:\n try:\n driver.wait(10)\n session = driver.table_client.session().create()\n with session.transaction() as tx:\n query = "SELECT 'Hello, world!'"\n result_set = tx.execute(query)[0]\n for row in result_set.rows:\n print(row)\n except TimeoutError:\n print("Connect failed to YDB")\n print("Last reported errors by discovery:")\n print(driver.discovery_debug_details())`}(t);default:return function({database:e,endpoint:t}){return`ydb -e ${t||"<endpoint>"} --token-file ~/my_token\n -d ${null!==e&&void 0!==e?e:"/<database>"} table query execute -q 'SELECT "Hello, world!"'`}(t)}}(s,{database:n,endpoint:i}),g=function(e){switch(e){case"bash":return(0,u.A)("docs_bash");case"cpp":return(0,u.A)("docs_cpp");case"csharp":return(0,u.A)("docs_dotnet");case"go":return(0,u.A)("docs_go");case"java":return(0,u.A)("docs_java");case"javascript":return(0,u.A)("docs_nodejs");case"php":return(0,u.A)("docs_php");case"python":return(0,u.A)("docs_python");default:return}}(s);return(0,d.jsxs)(o.l,{open:e,hasCloseButton:!0,onClose:t,size:"l",children:[(0,d.jsx)(o.l.Header,{caption:(0,u.A)("header")}),(0,d.jsxs)(o.l.Body,{children:[(0,d.jsx)("div",{children:(0,u.A)("connection-info-message")}),(0,d.jsx)(a.t,{size:"m",allowNotSelected:!1,activeTab:s,items:p,onSelectTab:e=>h(e),className:f("dialog-tabs")}),(0,d.jsx)("div",{className:f("snippet-container"),children:(0,d.jsx)(c,{language:s,text:m})}),g?(0,d.jsx)(l.K,{className:f("docs"),title:(0,u.A)("documentation"),url:g}):null]}),(0,d.jsx)(o.l.Footer,{onClickButtonCancel:t,textButtonCancel:(0,u.A)("close")})]})}const m=i.Ay.create((e=>{const t=i.Ay.useModal();return(0,d.jsx)(h,{...e,onClose:()=>{t.resolve(!1),t.hide(),t.remove()},open:t.visible})})),g="connect-to-db-dialog";async function v(e){return await i.Ay.show(g,{id:g,...e})}i.Ay.register(g,m)},1167:(e,t,n)=>{var r=n(16133),i=n(78326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const i=()=>new RegExp(/\$t{([^}]+)}/g);var o;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(o||(o={}));Object.values(o);var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c({value:e,count:t,lang:n,pluralizers:r,log:i,key:o}){if(!Array.isArray(e))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(e,t,n)||o;if(!r)return i("Can not use deprecated plural format without pluralizers"),o;if(r[n]||i(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return i("Missing required plurals"),o;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||o:(i("Fallback pluralization is not configured!"),o)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(e={}){this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:i=null}=e;this.fallbackLang=n,this.lang=r,this.logger=i,t&&Object.entries(t).forEach((([e,t])=>{this.registerKeysets(e,t)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t,n={}){const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const i=this.getLanguageData(n);return Boolean(i&&i[e]&&(null===(r=i[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let i="";t?(i+=t,n&&(i+=`.${n}`)):i="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:i,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:i,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let i=`Using language ${r}. `;switch(t){case o.EmptyKeyset:i+="Keyset is empty.";break;case o.EmptyLanguageData:i+="Language data is empty.";break;case o.KeysetNotFound:i+="Keyset not found.";break;case o.MissingKey:i+="Missing key.";break;case o.MissingKeyFor0:return i+="Missing key for 0",i;case o.MissingKeyParamsCount:i+="Missing params.count for key.";break;case o.MissingKeyPlurals:i+="Missing required plurals.";break;case o.NoLanguageData:i=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(i+=` Trying to use fallback language "${n}"...`),i}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return i}}class d{constructor(e,t,n,r,i,o){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=i,this.nestingDepth=null!==o&&void 0!==o?o:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(o.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=i().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(o.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(o.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.text=function(e,t){let n,i="",o=r.lastIndex=0;for(;n=r.exec(e);){o!==n.index&&(i+=e.slice(o,n.index)),o=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?i+=t[s]:i+=a}return o<e.length&&(i+=e.slice(o)),i}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(o.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(o.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(o.EmptyKeyset):{data:t}:this.getTranslationDataError(o.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=i();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,i]=r;if(i){if(this.nestingDepth+1>1)return this.getTranslationDataError(o.ExceedTranslationNestingDepth);let[e,t]=[i,void 0];const n=i.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(o.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(o.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},1836:(e,t,n)=>{const r=n(15742);function i(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(r+=o("h",s),s=0)):i++}return r}(l,s,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,p),p}},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>A});var r=n(59284),i=n(72630),o=n(14794),a=n(18670),s=n(98392),l=n(19225),c=n(69220),u=n(99635),d=n(6826);const f=(0,c.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:c,disableOutsideClick:p,disableFocusTrap:h,disableAutoFocus:m,focusTrap:g=!0,autoFocus:v=!0,restoreFocusRef:y,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,onTransitionEnter:E,onTransitionEntered:S,onTransitionExit:C,onTransitionExited:k,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":P,"aria-label":R,container:D,qa:j}){const M=r.useRef(null),L=r.useRef(null),[z,F]=r.useState(!1);(0,o.y)({enabled:!n&&(e||z)});const B=(0,a.s)({enabled:e||z,restoreFocusRef:y,focusTrapped:!0});return(0,u.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:p,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,contentRefs:[L],type:"modal"}),r.createElement(i.A,{nodeRef:M,in:e,addEndListener:e=>{var t;return null===(t=M.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{F(!0),null===E||void 0===E||E()},onExit:()=>{F(!0),null===C||void 0===C||C()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===k||void 0===k||k()}},r.createElement(s.Z,{container:D},r.createElement("div",{ref:M,style:N,className:f({open:e},A),"data-qa":j},r.createElement("div",{className:f("content-aligner")},r.createElement("div",{className:f("content-wrapper")},r.createElement(l.s,{enabled:!h&&g&&e&&!z,autoFocus:!m&&v},r.createElement("div",Object.assign({ref:L,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":R,"aria-labelledby":P,className:f("content",{"has-scroll":"auto"===T},I)},B),O)))))))}var h=n(81240),m=n(84476),g=n(99991),v=n(72837);const y=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,v.N)({en:y,ru:b},"Dialog"),x=(0,c.om)("dialog-btn-close");function _({onClose:e}){return r.createElement("div",{className:x()},r.createElement(m.$,{view:"flat",size:"l",className:x("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},r.createElement(g.I,{data:h.A,size:20})))}const E=(0,c.om)("dialog-body");const S=(0,c.om)("dialog-divider");var C=n(39238);const k=(0,c.om)("dialog-footer");class O extends r.Component{constructor(){super(...arguments),this.errorTooltipRef=r.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:i,textButtonApply:o,propsButtonCancel:a,propsButtonApply:s,preset:l,children:c,errorText:u,showError:d,renderButtons:f,className:p}=this.props,h=r.createElement("div",{className:k("button",{action:"cancel"})},r.createElement(m.$,Object.assign({view:o?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),i)),g=r.createElement("div",{className:k("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:k("button-apply",{preset:l})},s),o),u&&r.createElement(C.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:k("error")},u)));return r.createElement("div",{className:k(null,p)},r.createElement("div",{className:k("children")},c),r.createElement("div",{className:k("bts-wrapper")},f?f(g,h):r.createElement(r.Fragment,null,i&&h,o&&g)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}O.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const N=(0,c.om)("dialog-header");const T=(0,c.om)("dialog");class A extends r.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,size:d,contentOverflow:f="visible",className:h,modalClassName:m,hasCloseButton:g,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:C,"aria-label":k,"aria-labelledby":O,qa:N}=this.props;return r.createElement(p,{open:n,contentOverflow:f,disableBodyScrollLock:i,disableEscapeKeyDown:o,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:C,className:T("modal",m),"aria-label":k,"aria-labelledby":O,container:e,qa:N},r.createElement("div",{className:T({size:d,"has-close":g,"has-scroll":"auto"===f},h)},t,g&&r.createElement(_,{onClose:this.handleCloseButtonClick})))}}A.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},A.Footer=O,A.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:i,className:o,id:a}=e;return r.createElement("div",{className:N(null,o)},n,r.createElement("div",{className:N("caption"),id:a},t),i)},A.Body=function(e){const{className:t,hasBorders:n=!1}=e;return r.createElement("div",{className:E({"has-borders":n},t)},e.children)},A.Divider=function({className:e}){return r.createElement("div",{className:S(null,e)})}},2859:e=>{e.exports=function(e,t){return e.has(t)}},3309:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},3357:(e,t,n)=>{"use strict";var r;n.d(t,{ZM:()=>s,jK:()=>a,zj:()=>l}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let i=[];const o={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(o,e),i.forEach((e=>{e(o)}))},s=e=>(i.push(e),()=>{i=i.filter((t=>t!==e))}),l=()=>o},3584:(e,t,n)=>{"use strict";var r=n(39955),i=n(69123),o=n(93339),a=n(5635),s=n(46343)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},3773:(e,t,n)=>{const r=n(71928);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},4133:(e,t,n)=>{var r=n(54528),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4178:(e,t,n)=>{var r=n(31926),i=n(87924),o=n(1167),a=n(46626),s=n(17900),l=n(89157),c=n(92061);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},4200:(e,t,n)=>{var r=n(6993),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>R});var r=n(27145),i=n(59284),o=n(56993),a=n.n(o),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:i=[]},o=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return o?{sortOrder:n,sortColumns:i}:u;let d=i;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!o)return p?{sortOrder:{[e]:p},sortColumns:[e]}:u;const h=n,m=e,g=(h[m],(0,r.Tt)(h,["symbol"===typeof m?m:m+""]));return p?(g[e]=p,new Set(i).has(e)||(d=[...i,e])):d=i.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:i}=e;return"function"===typeof i?(e,t)=>r*i(e,t):(t,i)=>{const o=e._getSortValue(t.row),a=e._getSortValue(i.row);return null==o&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=o?n.nullBeforeNumbers?r:-1:o<a?Number(-r):o>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},i){const o={};t.forEach((e=>{n[e.name]?o[e.name]=d(e,n[e.name],i):e.group&&e.autogroup&&(o[e.name]=d(e,l.VU,i))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>o[e.name])).filter(Boolean),...r.map((e=>o[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!i.externalSort&&u.sort(((e,t)=>{let n=0;return c.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),u.length>1&&s){const e=[],t=[];u.forEach((n=>{a.every(((r,i)=>{const o=r._getValue(n.row);return e[i]&&o===t[i]?(e[i].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(i).forEach(((r,o)=>{e[i+o]=n,t[i+o]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return u}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,{columnId:n,order:r})=>u({name:n,defaultOrder:r},e,!0,t)),{sortOrder:{},sortColumns:[]})}function h({getColumn:e,columnIndex:t,columnId:n,minWidth:r,maxWidth:o,onResize:a}){const s=i.useRef(null),[l,u]=i.useState(!1);return i.useEffect((()=>{const i=s.current;if(!i)return;let l,c,d;const f=function(e){let t,n=null;return function(...r){t=r,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof l||"number"!==typeof c)return;const t=e.clientX-l,i=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,o);i!==d&&(d=i,null===a||void 0===a||a(n,d))})),p=e=>{m(e),void 0!==d&&(null===a||void 0===a||a(n,d)),u(!1),l=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=n=>{var r;c=null===(r=e(t))||void 0===r?void 0:r.getBoundingClientRect().width,m(n),l=n.clientX,u(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return i.addEventListener("mousedown",h),()=>{i.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,o,e,t]),i.createElement("span",{ref:s,className:c("resize-handler",{resizing:l}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=i.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},i.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),x={ICON_ASC:b,ICON_DESC:w};const _=({sortOrder:e,sortIndex:t,sortable:n,defaultOrder:r})=>n?i.createElement("span",{className:c("sort-icon",{shadow:!e}),"data-index":t},function(e){switch(e){case l.VU:return x.ICON_ASC;case l.xN:return x.ICON_DESC;default:return!1}}(e||r)):null;class E extends i.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:o,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return i.createElement("tr",{className:c("row",{odd:o,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let o;if(s){if(0===s[e.name])return null;o=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),i.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:o,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}E.defaultProps={footer:!1};class S extends i.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:o,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let x=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(x=Object.assign(Object.assign({},x),{width:g,maxWidth:g})),i.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:o,style:x,onClick:this._getOnSortClick(r)},i.createElement("div",{className:c("head-cell")},l,i.createElement(_,Object.assign({},r))),v&&i.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>i.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,i.createElement(i.Fragment,null,i.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:i.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.Uc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class C extends i.Component{constructor(){super(...arguments),this.state={style:{top:C.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,o=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return i.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(o))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(o))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.zQ||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={top:0};class k extends i.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.zQ){const{style:e}=this.state;return i.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return i.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return i.createElement("div",{className:c("table-wrapper",{sticky:!0})},i.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},i.createElement("colgroup",null,t.map(((e,t)=>i.createElement("col",{key:t,style:{width:e}})))),i.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={bottom:0};class O extends i.PureComponent{constructor(){super(...arguments),this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:i,span:o}=t[e];return this.renderRowImpl(r,i,{onRowClick:n,odd:e%2===0,span:o})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=(e,t,{onRowClick:n,odd:r,span:o,footer:a,headerData:s}={})=>{const{columns:{dataColumns:l},rowClassName:c,rowKey:u,getColSpansOfRow:d}=this.props,f="function"===typeof c?c(e,t,a,s):"";return i.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:o,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:o}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return i.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},i.createElement("table",{className:c("table"),style:o===l.zQ?a:void 0},i.createElement("colgroup",null,r.map((({width:e},t)=>i.createElement("col",{key:t,width:e})))),this.renderHead(),i.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&i.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return i.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),i.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):i.createElement("tr",{className:c("row")},i.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,o=this.renderHeaderRows();return i.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:o}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:o,stickyHead:a}=this.props.settings,s="auto"===o&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(o)||0,l=this.renderHeaderRows();return i.createElement(C,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return i.createElement(k,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:o,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return i.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:o,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const N=i.memo((function(e){const{column:t,value:n,row:r,index:o,footer:a,headerData:s}=e;return i.createElement(i.Fragment,null,t.render({value:n,row:r,index:o,footer:a,headerData:s}))}));class T extends i.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=({column:e,value:t,row:n,index:r,footer:o,headerData:a})=>i.createElement(N,{column:e,value:t,row:n,index:r,footer:o,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:i}=this.state,{defaultOrder:o}=i,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=i.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),x=(null!==(n=e.resizeable)&&void 0!==n?n:i.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,C="function"===typeof e.render?({value:t,row:n,index:r,footer:i,headerData:o})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:i,headerData:o}):({value:e})=>e,k="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:o},e),{resizeable:x,sortable:m&&d,_className:w,_getValue:_,_getTitle:E,_getSortValue:S,_renderValue:C,_getOnClick:O,customStyle:k,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:i}=this.props;if("function"===typeof i){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);i(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(e=!1){return e!==l.zQ||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn({startIndex:e,data:t,visibleRowIndex:n,settings:r}){const i="object"===typeof r.displayIndices?r.displayIndices.maxIndex:e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:i,headerData:o})=>{var a,s;return o?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:i?null!==(s=t.footerIndex)&&void 0!==s?s:e+r:"function"===typeof n?n(t,r):e+r},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(i))}}static getDerivedStateFromProps(e){const t=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:o,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:x=!1,headerMod:_=!1}=v,E=c({"highlight-rows":w,"striped-rows":x,header:_,theme:h}),S=this.getComplexColumns(o);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),i.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:i}=this.state,o=i?[i,...e]:e,a=(e,i)=>{t[i]||(t[i]=[]);const o=t[i];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,i+1);else{const e=this.getColumn(t,n.length);n.push(e),l=i,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),o.push(u),s+e}),0)};return a(o,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function A(e){return new Set(e.map((e=>e.name))).size!==e.length}T.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.VU,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},T.getSortedData=f;const I="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class P extends i.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){x.ICON_ASC=e.ICON_ASC||b,x.ICON_DESC=e.ICON_DESC||w}componentDidMount(){A(this.props.columns)&&console.warn(I)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&A(t)&&console.warn(I)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?i.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):i.createElement(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}P.FIXED=l.N2,P.MOVING=l.zQ,P.ASCENDING=l.VU,P.DESCENDING=l.xN,P.LEFT=l.M3,P.CENTER=l.Q7,P.RIGHT=l.NS;const R=P},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},5290:(e,t,n)=>{"use strict";var r=n(51700),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},5635:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(39955),s=r("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=d(e,t);return 0===f(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),o=(0,r.g4)("ydb-components-info-viewer",{en:i})},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6032:(e,t,n)=>{"use strict";var r=n(59284);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},6354:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,r:()=>i});let r=function(e){return e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid",e}({}),i=function(e){return e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped",e}({})},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>o,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>i,zQ:()=>c});const r=1,i=-1,o="left",a="center",s="right",l="fixed",c="moving",u="__index__"},6597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],i=n[1],o=void 0===i?0:i,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:o,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)},t.getTimestampFromObject=s;var r=n(84080),i=n(13064);var o={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,i.normalizeDateComponents)(e,i.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,i.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?o[f]:l[f]}var p=(0,r.fixOffset)((0,i.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}},6693:(e,t,n)=>{const r=n(71928),i=n(22750);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},6737:(e,t,n)=>{var r=n(20943),i=n(24447),o=n(88118);e.exports=function(e){return o(e)?r(e,!0):i(e)}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(69220);function i(e){return{appear:(0,r.Nx)(e({appear:!0})),appearActive:(0,r.Nx)(e({appear:"active"})),appearDone:(0,r.Nx)(e({appear:"done"})),enter:(0,r.Nx)(e({enter:!0})),enterActive:(0,r.Nx)(e({enter:"active"})),enterDone:(0,r.Nx)(e({enter:"done"})),exit:(0,r.Nx)(e({exit:!0})),exitActive:(0,r.Nx)(e({exit:"active"})),exitDone:(0,r.Nx)(e({exit:"done"}))}}},6993:(e,t,n)=>{var r=n(61872);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7139:function(e,t,n){var r,i;r=function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,o,l,c;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if((c="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat)&&n.match(c)){l=r[o].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var o,a,s,l,c,u,d,f=i[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,x="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!o||"t"===o?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!o||"b"===o?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!o||"m"===o?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!o||"k"===o)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?f.delimiters.decimal+x.split(".")[1]:"",h&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!o&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var E=m-s.length;E>0;E--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,o=i[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=a,e.formats=r,e.locales=i,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return i[a.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)a[e]=o[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===o))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===l&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(c.match(r[i].regexps.format)){s=r[i].format;break}o=(s=s||e._.numberToFormat)(l,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,s,l,c=e._.includes(i,"ib")?n:t,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=e._.stringToNumber(r);if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},7328:e=>{"use strict";e.exports=Math.pow},7412:(e,t,n)=>{"use strict";function r(e){var t;return null!==(t=e.props.ref)&&void 0!==t?t:e.ref}n.d(t,{Q:()=>r})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>i,uk:()=>o});const r=e=>[...Array(e).keys()];function i(e){return null!==e&&void 0!==e}async function o(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"}))},7653:(e,t,n)=>{var r=n(22984),i=n(99806),o=n(68489),a=n(38533),s=n(99661);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>_,q:()=>E});var r,i,o,a,s,l,c,u,d,f,p,h=n(99991),m=n(77506),g=n(59284);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),i||(i=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),o||(o=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(60712);const w=(0,m.cn)("empty-state"),x={s:150,m:250,l:350},_=({image:e,title:t,description:n,actions:r,size:i="m",position:o="center"})=>(0,b.jsx)("div",{className:w({size:i}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:i,position:o}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:x[i],height:x[i]})}),(0,b.jsx)("div",{className:w("title",{size:i}),children:t}),(0,b.jsx)("div",{className:w("description"),children:n}),(0,b.jsx)("div",{className:w("actions"),children:r})]})});function E({isEmpty:e,children:t,className:n,...r}){return e?(0,b.jsx)("div",{className:n,children:(0,b.jsx)(_,{...r})}):t}},8330:e=>{"use strict";e.exports={rE:"8.14.0"}},8543:(e,t,n)=>{var r=n(81382),i=n(31926);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var h=o(d,f,u,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},i={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},8928:(e,t,n)=>{"use strict";var r,i=n(31886),o=n(84363);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>o,si:()=>l,yZ:()=>s});var r=n(35719);const i={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},o=e=>t=>e in i&&i[e]-i[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[i[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},9112:e=>{e.exports=function(e){return e}},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))},9265:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),i=n(59284),o=n(69220),a=n(46423);const s=(0,o.om)("box"),l=i.forwardRef((function(e,t){var{as:n,children:o,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r.Tt)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const x=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return i.createElement(x,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),o)}))},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9624:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var i={},o={};o[n]=0;var a,s,l,c,u,d,f,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],f=o[l],("undefined"===typeof o[l]||f>d)&&(o[l]=d,p.push(l,d),i[l]=s));if("undefined"!==typeof r&&"undefined"===typeof o[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),i=n(69220),o=n(41668);let a=1;function s(){return`${i.CU}uniq-${a++}`}const l=(0,o.g)("svg"),c=(0,o.g)(r.I)},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},10755:(e,t,n)=>{"use strict";n.d(t,{B6:()=>T,Ix:()=>b,W5:()=>U,W6:()=>z,XZ:()=>y,dO:()=>M,g:()=>B,qh:()=>A,rd:()=>C,zy:()=>F});var r=n(25540),i=n(59284),o=n(13260),a=n.n(o),s=n(45264),l=n(68643),c=n(58168),u=n(13489),d=n.n(u),f=(n(67076),n(98587)),p=(n(5290),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=i.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.A)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(i.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component);var x={},_=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(x[e])return x[e];var t=d().compile(e);return E<_&&(x[e]=t,E++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=o?r.push:r.replace,d=(0,s.yJ)(t?"string"===typeof n?S(n,t.params):(0,c.A)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):i.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,(0,c.A)({},d,{key:n.key}))||u(d)},to:n})}))}var k={},O=1e4,N=0;function T(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return N<O&&(r[e]=o,N++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,o=(0,c.A)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(y.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.Component);function I(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=I(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"===typeof e?e:(0,s.AO)(e)}function D(e){return function(){(0,l.A)(!1)}}function j(){}i.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==r&&i.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(o.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?i.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.Component);var L=i.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?T(t.pathname,e):n}},11078:(e,t,n)=>{var r=n(28293),i=n(62509);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},11275:(e,t,n)=>{var r=n(89875),i=n(21519),o=n(68055);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},11319:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},11320:(e,t,n)=>{var r=n(7653),i=n(935),o=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11345:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function i(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.floorMod=n,t.isLeapYear=r,t.daysInYear=i,t.daysInMonth=function(e,t){var i=n(t,12),o=e+(t-i)/12;return 1===i?r(o)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][i]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t},t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in o)return o[t];throw new Error("Invalid unit ".concat(e))},t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],l=o[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n},t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],i=r[0],o=r[1],a=r[2],s=Number(60*Number(o))+(isFinite(Number(a))?Number(a):0);return"+"===i?s:-s},t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=e.year,i=e.month,o=e.date,a=u(r,i,o),s=v(e,t,n),l=s.weekYear,c=s.weekNumber,d=s.weekday,f=v(e,4,1),p=f.weekYear,h=f.weekNumber,m=f.weekday;return{day:a,weekYear:l,weekNumber:c,weekday:d-1,isoWeekYear:p,isoWeekNumber:h,isoWeekday:m}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,o=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(o,0,t),n),c=i(o),u=7*a+s-l-7+t;u<1?u+=i(r=o-1):u>c?(r=o+1,u-=i(o)):r=o;var f=m({year:r,ordinal:u}),p=f.month,h=f.date;return{year:r,month:p,date:h}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.add(i,"months");if(n.valueOf()-o.valueOf()<0){var a=t.add(i-1,"months");r=(n.valueOf()-o.valueOf())/(o.valueOf()-a.valueOf())}else{a=t.add(i+1,"months");r=(n.valueOf()-o.valueOf())/(a.valueOf()-o.valueOf())}return-(i+r)||0};var o={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,i=r(t)?p:f,o=i.findIndex((function(e){return e<n}));return{month:o,date:n-i[o]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,i=e.year,o=e.month,a=e.date,s=g(d(i,o,a),n),l=h({year:i,month:o,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=i-1,t,n):c>b(i,t,n)?(r=i+1,c=1):r=i,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),o=y(e+1,t,n);return(i(e)-r+o)/7}},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(59284);const i={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},o=r.createContext(i)},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(27145),i=n(69220);const o=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r.Tt)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(i.CU)},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>C,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>w,fW:()=>x,KH:()=>E,Cb:()=>S,UF:()=>_,F:()=>g,dZ:()=>I,id:()=>A});var r=n(370);let i=function(e){return e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp",e.Date32="Date32",e.Datetime64="Datetime64",e.Timestamp64="Timestamp64",e.Interval64="Interval64",e.TzDate32="TzDate32",e.TzDatetime64="TzDatetime64",e.TzTimestamp64="TzTimestamp64",e}({});var o=n(81288);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m=e=>{switch(e.replace(/\?$/,"")){case i.Bool:return"boolean";case i.Int8:case i.Int16:case i.Int32:case i.Int64:case i.Uint8:case i.Uint16:case i.Uint32:case i.Uint64:case i.Float:case i.Double:case i.Decimal:return"number";case i.String:case i.Utf8:case i.Json:case i.JsonDocument:case i.Yson:case i.Uuid:return"string";case i.Date:case i.Datetime:case i.Timestamp:case i.Interval:case i.TzDate:case i.TzDateTime:case i.TzTimestamp:case i.Date32:case i.Datetime64:case i.Timestamp64:case i.Interval64:case i.TzDate32:case i.TzDatetime64:case i.TzTimestamp64:return"date";default:return}},g=(e,t)=>{const n=t.map((e=>e.name));return e.map((e=>{const t={};return e.forEach(((e,r)=>{const i=n[r];null!==e&&"object"===typeof e||"boolean"===typeof e||Array.isArray(e)?t[i]=JSON.stringify(e):t[i]=e})),t}))},v=e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let i;return n&&(i=[]),t&&n&&(i=g(t,n)),{columns:n,result:i,truncated:r}})),...n}},y=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),b=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function w(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function x(e){return b(e)?{}:y(e)?v(e):e}const _=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,E=e=>"string"===typeof e||w(e)?e:(0,o.TX)(e)?e.message:(0,o.qP)(e)?"data"in e&&w(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},C={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},k=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),A=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).or(r.z.undefined())),queryMode:k,transactionMode:O,statisticsMode:N,tracingLevel:T}),I=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(C.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(C.limitRows)),queryMode:k.catch(C.queryMode),transactionMode:O.catch(C.transactionMode),statisticsMode:N.catch(C.statisticsMode),tracingLevel:T.catch(C.tracingLevel)}).catch(C)},12249:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},12880:(e,t,n)=>{var r=n(63786),i=n(9434),o=n(20878);e.exports=function(e){return i(e)?o(e):r(e)}},12888:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(78668),i=n(75022);function o(){return(0,i.N)(r._5)}},12927:(e,t,n)=>{var r=n(59368),i=n(22807),o=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},13064:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(11345),t)},13260:(e,t,n)=>{e.exports=n(77390)()},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,E="?"===b||"*"===b,S=m||c,C=v||y,k=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:S,optional:E,repeat:_,partial:x,asterisk:!!w,pattern:C?u(C):w?".*":a(S,k)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=a[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},14750:(e,t,n)=>{"use strict";t.p0=t.Pn=t.eP=t.bQ=t.cS=t.KQ=void 0,n(77966).settings;var r=n(60166);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"cS",{enumerable:!0,get:function(){return r.expandFormat}});var i=n(49837);var o=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return o.dateTimeParse}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return o.isLikeRelative}});var a=n(84080);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(72328);var l=n(62391);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return l.duration}})},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(59284);const i="padding-right",o="padding-bottom",a="overflow",s=[a,i,o];let l=0,c={};function u({enabled:e}){r.useLayoutEffect((()=>{if(e)return l++,1===l&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();c=function(){const e={};for(const t of s)e[t]=document.body.style.getPropertyValue(t);return e}(),document.body.style.setProperty(a,"hidden"),e&&document.body.style.setProperty(i,`${n.right+e}px`);t&&document.body.style.setProperty(o,`${n.bottom+t}px`)}(),()=>{l--,0===l&&function(){for(const e of s){const t=c[e];t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}}()}}),[e])}},14837:(e,t,n)=>{var r=n(80472),i=n(61872);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},15227:(e,t,n)=>{const r=n(22750),i=n(38198),o=n(53577),a=n(71928),s=n(69310),l=r.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=8*(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===a.MIXED)return o;const l=o-c(n,e);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},15464:(e,t,n)=>{var r=n(73712),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},15619:(e,t,n)=>{"use strict";n.d(t,{f:()=>l,z:()=>u});var r=n(76086),i=n(56839),o=n(41650),a=n(82621);const s={b:{value:1,label:(0,a.A)("b")},kb:{value:r.eh,label:(0,a.A)("kb")},mb:{value:r.pg,label:(0,a.A)("mb")},gb:{value:r.J7,label:(0,a.A)("gb")},tb:{value:r.Db,label:(0,a.A)("tb")}},l=e=>{let t="b";return e>=s.kb.value&&(t="kb"),e>=s.mb.value&&(t="mb"),e>=s.gb.value&&(t="gb"),e>=s.tb.value&&(t="tb"),t},c=(e,t,n=o.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,delimiter:u,...d})=>{if(!(0,o.kf)(e))return"";const f=Number(e),p=null!==t&&void 0!==t?t:l(f),h=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,i.CR)(Number(e)/s[t].value,n);return(0,i.ZV)(r)})({value:f,size:p,...d});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(h,p):r?c(h,p,u):h}},15742:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[o[Math.floor((t-l)/a)*i+Math.floor((n-l)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},16244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=function(e,t,i){void 0===t&&(t=r);void 0===i&&(i=!1);for(var o,a=0,s="",l=0;l<n.length;l+=1){var c=n[l];c.d&&(a=e.as(c.d));var u=Math.round(Math.abs(a));if(o=a>0,u<=c.r){u<=1&&l>0&&(c=n[l-1]);var d=t[c.l];s="string"===typeof d?d.replace("%d","".concat(u)):d(u,i,c.l,o);break}}if(i)return s;var f=o?t.future:t.past;if("function"===typeof f)return f(s);return f.replace("%s",s)};var n=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},16284:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16320:(e,t,n)=>{var r=n(537),i=n(48955),o=n(85406),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>A,Kq:()=>O,hS:()=>_,kz:()=>S,vt:()=>E});var r=n(59284),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,o;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return i(i({},e),((n={})[l]=i(i({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?i(i({},e),((r={})[l]=i(i({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=i({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return i(i({},e),((o={})[l]=i(i({},e[l]),p),o));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,i,o=new Promise((function(e,t){r=e,i=t}));g[n]={resolve:r,reject:i,promise:o}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,i=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:i}}return v[t].promise}var x=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function _(e,t){var n=(0,r.useContext)(l),i=(0,r.useContext)(c),o=null,a=e&&"string"!==typeof e;if(!(o=e?y(e):i))throw new Error("No modal id found in NiceModal.useModal.");var s=o;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return x(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),_=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:_,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,_,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=o(t,["defaultVisible","keepMounted","id"]),h=_(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,i({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},C=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return i({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,i({key:e.id,id:e.id},e.props))})))},k=function(e){var t=e.children,n=(0,r.useReducer)(m,s),i=n[0];return p=n[1],r.createElement(l.Provider,{value:i},t,r.createElement(C,null))},O=function(e){var t=e.children,n=e.dispatch,i=e.modals;return n&&i?(p=n,r.createElement(l.Provider,{value:i},t,r.createElement(C,null))):r.createElement(k,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const A={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=o(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,i({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:x,useModal:_,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeParse=void 0,t.isLikeRelative=o,t.isValid=function(e){try{if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}catch(i){return!1}};var r=n(60166),i=n(77966);function o(e){return"string"===typeof e&&i.settings.getRelativeParser().isLikeRelative(e)}t.dateTimeParse=function(e,t){if(void 0!==e){var n=function(e,t){var n;if(o(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return i.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang;try{var c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}catch(u){return}}(e,t);return n}}},16572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);r||(r=new Intl.DateTimeFormat(e,t),o.set(n,r));return r},t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=a.get(n);r||(r=new Intl.ListFormat(e,t),a.set(n,r));return r},t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=s.get(n);r||(r=new Intl.NumberFormat(e,t),s.set(n,r));return r},t.getLocaleData=function(e){var t=i.default.Ls[e];if(!t)throw new Error("Locale ".concat(e," is not loaded"));return t};var i=r(n(38960)),o=new Map;var a=new Map;var s=new Map},17148:(e,t,n)=>{var r=n(634),i=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=i},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},18408:(e,t,n)=>{var r=n(45296);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},18517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,WO:()=>h,sH:()=>p,Mj:()=>m,es:()=>f,z6:()=>v});var r=n(97091),i=n(59001),o=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(i.c[o.Mt]).parse(i.f.readUserSettingsValue(o.Mt))},u=(0,r.Z0)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.F.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async({path:e},{signal:t})=>{try{var n,r;return{data:null!==(n=null===(r=(await window.api.viewer.getTenantInfo({path:e},{signal:t})).TenantInfo)||void 0===r?void 0:r[0])&&void 0!==n?n:null}}catch(i){return{error:i}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async({database:e},{signal:t})=>{try{const n=await window.api.viewer.getClusterConfig(e,{signal:t});return{data:n.Databases[0].FeatureFlags}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>S});var r=n(27145),i=n(59284),o=n(32084),a=n(81517),s=n(69220);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(98816),u=n.n(c),d=n(11078),f=n.n(d);function p(e,t){return e.trim().split(t).filter(Boolean)}const h=/\s/;function m(e,t){return p(t,h).map((t=>f()(p(t,"+").map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(g)))}function g(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const v=(0,s.om)("hotkey"),y={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},b=i.forwardRef((function(e,t){const{value:n,platform:r,view:o="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform)?"mac":"pc",i=l[r];return m(i,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(y.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(y.BetweenKeys,i.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(i.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:i.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:o},c)},d)}));var w=n(39238),x=n(7412);const _=["bottom","top"],E=(0,s.om)("action-tooltip");function S(e){const{placement:t=_,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r.Tt)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,S]=i.useState(null),C=(0,a.d)(y,v),k=i.Children.only(l),O=(0,x.Q)(k),N=(0,o.N)(S,O);return i.createElement(i.Fragment,null,i.cloneElement(k,{ref:N}),y?i.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:C&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},i.createElement("div",{className:E("content",u)},i.createElement("div",{className:E("heading")},i.createElement("div",{className:E("title")},n),s&&i.createElement(b,{view:"dark",value:s,className:E("hotkey")})),d&&i.createElement("div",{className:E("description")},d))):null)}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(59284),i=n(83046);function o({enabled:e,restoreFocusRef:t,focusTrapped:n}){const o=r.useRef(null),a=r.useRef(null),s=r.useRef(null);return r.useEffect((()=>{if(!e)return;const t=e=>{const t=e.target;!n&&t instanceof HTMLElement&&(0,i.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,i.AO)(t)?s.current=t:s.current=null};return window.addEventListener("focusin",t),window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("focusin",t),window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}}),[e,n]),r.useEffect((()=>{var n;o.current=e&&null!==(n=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==n?n:null})),r.useEffect((()=>{if(e)return()=>{let e=o.current;const t=s.current;t&&document.contains(t)&&(0,i.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,i.tp)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),a.current=null,s.current=null)}}),[e]),{onFocus:n=>{var r;e&&null===a.current&&(a.current=n.relatedTarget,s.current=a.current,o.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),i=n(77506),o=n(5741),a=n(60712);const s=(0,i.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:i,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:i},l),children:[e&&(0,a.jsx)("div",{className:s("title"),children:e}),t&&t.length>0?(0,a.jsx)("div",{className:s("items"),children:t.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:c}),children:e.label}),n&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,o.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:i})})},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>C});var r=n(59284),i=n(83046);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},d=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},f=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},p=function(e){return f(e)&&!e.shiftKey},h=function(e){return f(e)&&e.shiftKey},m=function(e){return setTimeout(e,0)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},v=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},y=[],b=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,o=(null===t||void 0===t?void 0:t.trapStack)||y,a=l({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:p,isKeyBackward:h},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||i.find((function(t){return t===e}))}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,o=t.params,s=void 0===o?[]:o,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,c(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=l;if("string"===typeof l){try{u=r.querySelector(l)}catch(d){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!u&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return u},_=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,i.tp)(e,a.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}else null===e&&(e=x("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,i.Kr)(e,a.tabbableOptions),n=(0,i.nq)(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return(0,i.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,i.AO)(e)})),c=!!t.find((function(e){return(0,i.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,i.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,i.AO)(e)})):t[o+(r?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?S(t.shadowRoot):t},C=function(e){!1!==e&&e!==S(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):C(_()))},k=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||v(n),E();var l=null;if(s.tabbableGroups.length>0){var c=w(t,n),u=c>=0?s.containerGroups[c]:void 0;if(c<0)l=o?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(o){var d=s.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(d=c),d>=0){var p=0===d?s.tabbableGroups.length-1:d-1,h=s.tabbableGroups[p];l=(0,i.yT)(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t,!1))}else{var m=s.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(u.container===t||(0,i.tp)(t,a.tabbableOptions)&&!(0,i.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(m=c),m>=0){var g=m===s.tabbableGroups.length-1?0:m+1,y=s.tabbableGroups[g];l=(0,i.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t))}}else l=x("fallbackFocus");return l},N=function(e){var t=v(e);w(t,e)>=0||(g(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):g(a.allowOutsideClick,e)||e.preventDefault())},T=function(e){var t=v(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var o=!0;if(s.mostRecentlyFocusedNode)if((0,i.yT)(s.mostRecentlyFocusedNode)>0){var l=w(s.mostRecentlyFocusedNode),c=s.containerGroups[l].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(a.isKeyForward(s.recentNavEvent)?u+1<c.length&&(r=c[u+1],o=!1):u-1>=0&&(r=c[u-1],o=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,i.yT)(e)>0}))}))||(o=!1);else o=!1;o&&(r=O({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),C(r||(s.mostRecentlyFocusedNode||_()))}s.recentNavEvent=void 0},A=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(f(e)&&e.preventDefault(),C(n))}(e,a.isKeyBackward(e))},I=function(e){var t;"Escape"!==(null===(t=e)||void 0===t?void 0:t.key)&&"Esc"!==(null===t||void 0===t?void 0:t.key)&&27!==(null===t||void 0===t?void 0:t.keyCode)||!1===g(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},P=function(e){var t=v(e);w(t,e)>=0||g(a.clickOutsideDeactivates,e)||g(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},R=function(){if(s.active)return u(o,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){C(_())})):C(_()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I),n},D=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",P,!0),r.removeEventListener("keydown",A,!0),r.removeEventListener("keydown",I),n},j="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&C(_())})):void 0,M=function(){j&&(j.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),i=b(e,"checkCanFocusTrap");i||E(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var o=function(){i&&E(),R(),M(),null===n||void 0===n||n()};return i?(i(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=l({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,D(),s.active=!1,s.paused=!1,M(),d(o,n);var r=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),c=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){m((function(){u&&C(k(s.nodeFocusedBeforeActivation)),null===i||void 0===i||i()}))};return u&&c?(c(k(s.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(e){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),s.active&&E(),M(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(e,t){if(s.paused===e)return this;if(s.paused=e,e){var n=b(t,"onPause"),r=b(t,"onPostPause");null===n||void 0===n||n(),D(),M(),null===r||void 0===r||r()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null===i||void 0===i||i(),E(),R(),M(),null===o||void 0===o||o()}return this}}}),n.updateContainerElements(e),n},w=n(32084),x=n(90826),_=n(7412);const E=r.createContext(void 0);function S({children:e,enabled:t=!0,disableAutoFocus:n,autoFocus:i=!0}){const o=r.useRef(null),a=r.useRef(!n&&i);r.useEffect((()=>{a.current=!n&&i}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([o.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=o.current)||void 0===n?void 0:n.contains(t))||(l.current[e]=t,c())},removeNode(e){l.current[e]&&(delete l.current[e],c())}})),[c]),d=r.useCallback((e=>{var n;t&&e?(o.current=e,s.current||(s.current=b([],{initialFocus:()=>a.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),c(),s.current.activate()):(null===(n=s.current)||void 0===n||n.deactivate(),o.current=null)}),[t,c]),f=r.Children.only(e);if(!r.isValidElement(f))throw new Error("Children must contain only one valid element");const p=(0,_.Q)(f),h=(0,w.N)(d,p);return r.createElement(E.Provider,{value:u},r.cloneElement(f,{ref:h}))}function C(){const e=r.useContext(E),t=(0,x.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},19305:e=>{var t=Array.isArray;e.exports=t},19417:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},19750:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},19770:e=>{"use strict";e.exports=ReferenceError},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var i=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return i.listenForHistoryChange}});var o=n(93650)},20011:(e,t,n)=>{var r=n(16320),i=n(22807),o=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=n(84711),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},20549:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},20680:(e,t,n)=>{"use strict";n.d(t,{uI:()=>s,sf:()=>u,T3:()=>l});let r=function(e){return e.None="None",e.HDD="HDD",e.SSD="SSD",e}({});var i=n(76086),o=n(41650),a=n(8861);const s=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:i,MemoryLimit:a,StorageAllocatedLimit:s,PoolStats:l,Metrics:u={},DatabaseQuotas:d={},StorageUsage:f,QuotaUsage:p}=e,h=1e6*Number(t)||0,m=Number(n)||0,g=Number(i)||0,v=Number(u.Storage)||0,y=(0,o.kf)(a)?Number(a):void 0,b=(0,o.kf)(s)?Number(s):void 0,w=(0,o.kf)(d.data_size_soft_quota)?Number(d.data_size_soft_quota):void 0,x=(e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))})(l);let _,E;_=f?f.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):[{name:r.SSD,used:g,limit:b,usage:c(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,i=Number(n),o=Number(r);return{name:t,used:i,limit:o,usage:c(i,o)}})):w&&(E=[{name:r.SSD,used:v,limit:w,usage:c(v,w)}]);return{memory:m,blobStorage:g,tabletStorage:v,memoryLimit:y,blobStorageLimit:b,tabletStorageLimit:w,cpu:h,poolsStats:x,memoryStats:[{name:"Process",used:m,limit:y,usage:c(m,y)}],blobStorageStats:_,tabletStorageStats:E}},l=(e,t)=>e.map((n=>{const r=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,i=e.find((e=>e.Id===n.ResourceId)),a=null===i||void 0===i?void 0:i.Name,l=null===i||void 0===i?void 0:i.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),i=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",o=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==o&&void 0!==o?o:i})(n),{cpu:u,memory:d,blobStorage:f}=s(n),{nodesCount:p,groupsCount:h}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,o.kf)(n)?Number(n):0}})(n);return{...n,backend:r,sharedTenantName:a,sharedNodeIds:l,controlPlaneName:c,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));function c(e,t){if(e&&t)return 100*e/t}function u(e){return e?e>i.Ed?a.u.Danger:e>i.Hh?a.u.Warning:a.u.Good:a.u.Unspecified}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},20943:(e,t,n)=>{var r=n(30040),i=n(52964),o=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>_});var r=n(44992),i=n(97434),o=n(53850),a=n(96906),s=n(97091),l=n(59284);function c(e){return e.replace(e[0],e[0].toUpperCase())}function u(e,...t){return Object.assign(e,...t)}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,a.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,a.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const i=(0,l.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=(0,l.useRef)(i);return(0,l.useEffect)((()=>{o.current.serialized!==i.serialized&&(o.current=i)}),[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m(e){const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{(0,i.bN)(t.current,e)||(t.current=e)}),[e]),(0,i.bN)(t.current,e)?t.current:e}var g=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),v=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),y=(()=>g||v?l.useLayoutEffect:l.useEffect)(),b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var w=Symbol();var x=(0,r.l0)((0,r.m7)(),(({batch:e=i.vA,hooks:t={useDispatch:i.wA,useSelector:i.d4,useStore:i.Pj},createSelector:n=o.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(o,{serializeQueryArgs:d},g){const v=o,{buildQueryHooks:w,buildMutationHook:x,usePrefetch:_}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:a},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:g}){const v=c?e=>e():l.useEffect;return{buildQueryHooks:function(c){const x=(t,{refetchOnReconnect:i,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:y}=e.endpoints[c],b=n(),w=(0,l.useRef)(void 0);if(!w.current){const t=b(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const x=h(u?r.hT:t,f,g.endpointDefinitions[c],c),_=m({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,l.useRef)(!1),S=(0,l.useRef)(void 0);let{queryCacheKey:C,requestId:k}=S.current||{},O=!1;C&&k&&(O=w.current.isRequestSubscribed(C,k));const N=!O&&E.current;return v((()=>{E.current=O})),v((()=>{N&&(S.current=void 0)}),[N]),v((()=>{const e=S.current;if(x===r.hT)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===x)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=b(y(x,{subscriptionOptions:_,forceRefetch:a}));S.current=t}}),[b,y,a,x,_,N]),(0,l.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,l.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,s.gk)(38));return S.current?.refetch()}})),[])},_=({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:s}=e.endpoints[c],u=n(),[d,f]=(0,l.useState)(p),h=(0,l.useRef)(void 0),g=m({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:a});v((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const y=(0,l.useRef)(g);v((()=>{y.current=g}),[g]);const b=(0,l.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(s(e,{subscriptionOptions:y.current,forceRefetch:!n})),f(e)})),r}),[u,s]),w=(0,l.useCallback)((()=>{h.current?.queryCacheKey&&u(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))}),[u]);return(0,l.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,l.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,l.useMemo)((()=>[b,d,{reset:w}]),[b,d,w])},E=(t,{skip:n=!1,selectFromResult:s}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.hT:t,d,g.endpointDefinitions[c],c),m=(0,l.useRef)(void 0),v=(0,l.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:i.bN}})),[f,p]),b=(0,l.useMemo)((()=>s?u([v],s,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,s]),x=o((e=>b(e,m.current)),i.bN),_=a(),E=v(_.getState(),m.current);return y((()=>{m.current=E}),[E]),x};return{useQueryState:E,useQuerySubscription:x,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n,{reset:r}]=_(e),i=E(n,{...e,skip:n===p}),o=(0,l.useMemo)((()=>({lastArg:n})),[n]);return(0,l.useMemo)((()=>[t,{...i,reset:r},o]),[t,i,r,o])},useQuery(e,t){const n=x(e,t),i=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}=i;return(0,l.useDebugValue)({data:o,status:a,isLoading:s,isSuccess:c,isError:u,error:d}),(0,l.useMemo)((()=>({...i,...n})),[i,n])}}},buildMutationHook:function(r){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,l.useState)();(0,l.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,l.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:g}=p||{},v=(0,l.useMemo)((()=>c({fixedCacheKey:s,requestId:p?.requestId})),[s,p,c]),y=(0,l.useMemo)((()=>a?u([v],a):v),[a,v]),b=o(y,i.bN),w=null==s?p?.arg.originalArgs:void 0,x=(0,l.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[f,s,p,g]),{endpointName:_,data:E,status:S,isLoading:C,isSuccess:k,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:C,isSuccess:k,isError:O,error:N});const T=(0,l.useMemo)((()=>({...b,originalArgs:w,reset:x})),[b,w,x]);return(0,l.useMemo)((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const i=n(),o=m(r);return(0,l.useCallback)(((n,r)=>i(e.util.prefetch(t,n,{...o,...r}))),[t,i,o])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,i=g.endpointDefinitions[e];n!==r.hT&&d({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:e})===d({queryArgs:n,endpointDefinition:i,endpointName:e})&&(t=void 0)}let i=e.isSuccess?e.data:t?.data;void 0===i&&(i=e.data);const o=void 0!==i,a=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!o&&a,l=e.isSuccess||o&&(a&&!t?.isError||e.isUninitialized);return{...e,data:i,currentData:e.data,isFetching:a,isLoading:s,isSuccess:l}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:d,context:g});return u(v,{usePrefetch:_}),u(g,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=w(e);u(v.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${c(e)}Query`]=t,o[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=x(e);u(v.endpoints[e],{useMutation:t}),o[`use${c(e)}Mutation`]=t}}}}}))());const _=x({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","SchemaTree","StorageData","Tablet","UserData","VDiskData"]});Symbol()},21519:e=>{e.exports=function(e){return e!==e}},21551:(e,t,n)=>{var r=n(59368),i=n(19305);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(46878);function i(){return(0,r.w)().themeValue}},22735:(e,t,n)=>{e.exports=n(54386)},22750:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},22894:(e,t,n)=>{var r=n(85651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},22921:e=>{"use strict";e.exports=URIError},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),i=n(69220);const o=r.createContext({activeTabId:void 0});o.displayName="TabsContext";var a=n(47665);const s=(0,i.om)("tabs");function l({id:e,className:t,title:n,meta:i,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(o),y="boolean"===typeof f?f:v===e,b=r.useMemo((()=>void 0!==l?l:"string"===typeof n?n:void 0),[l,n]);return r.createElement("div",Object.assign({},m,{role:"tab","aria-selected":y,"aria-disabled":!0===p,tabIndex:p?-1:0,className:s("item",{active:y,disabled:p,overflow:Boolean(h)},t),title:b,onClick:()=>{g(e)},onKeyDown:t=>{" "===t.key&&g(e)}}),r.createElement("div",{className:s("item-content")},c&&r.createElement("div",{className:s("item-icon")},c),r.createElement("div",{className:s("item-title")},n||e),void 0!==u&&r.createElement("div",{className:s("item-counter")},u),d&&r.createElement(a.J,{className:s("item-label"),theme:d.theme},d.content)),i&&r.createElement("div",{className:s("item-meta")},i))}l.displayName="Tabs.Item";const c=(0,i.om)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef((({direction:e=u.Horizontal,size:t="m",activeTab:n,allowNotSelected:i=!1,items:a=d,children:s,className:f,onSelectTab:p,wrapTo:h,qa:m},g)=>{const v=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(n,i,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const i=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,i,n):i}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(o.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},24447:(e,t,n)=>{var r=n(38469),i=n(48303),o=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},24600:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,m:()=>o});var r=n(53850),i=n(78034);const o=n(21334).F.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNodesList({signal:t})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),a=o.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,i.nN)(e)))},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),i=n(112),o=n(67884),a=n(77506),s=n(44294),l=n(60712);const c=(0,a.cn)("ydb-link-with-icon"),u=({title:e,url:t,external:n=!0,className:a})=>{const u=(0,l.jsxs)(r.Fragment,{children:[e,"\xa0",(0,l.jsx)(i.A,{})]});return n?(0,l.jsx)(o.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},25412:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Le.LQ,AUTOCOMPLETE_ON_ENTER:()=>Le.IO,AUTO_REFRESH_INTERVAL:()=>Le.av,AppSlots:()=>r,AsideNavigation:()=>Co,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Le.RY,CASE_SENSITIVE_JSON_SEARCH:()=>Le.iD,CLUSTER_DEFAULT_TITLE:()=>Le.QM,DAY_IN_SECONDS:()=>Le.tt,DEFAULT_CLUSTER_TAB_KEY:()=>Le.fY,DEFAULT_DANGER_THRESHOLD:()=>Le.Ed,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Le.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Le.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Le.jX,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Le.l_,DEFAULT_SIZE_TENANT_KEY:()=>Le.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Le.ED,DEFAULT_TABLE_SETTINGS:()=>Le.N3,DEFAULT_WARNING_THRESHOLD:()=>Le.Hh,DEVELOPER_UI_TITLE:()=>Le.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Le.U0,EMPTY_DATA_PLACEHOLDER:()=>Le.Pd,ENABLE_AUTOCOMPLETE:()=>Le.LK,ENABLE_CODE_ASSISTANT:()=>Le.bz,ENABLE_NETWORK_TABLE_KEY:()=>Le.g5,ENABLE_QUERY_STREAMING:()=>Le.kO,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>Le.J7,HOUR_IN_SECONDS:()=>Le.Jg,INVERTED_DISKS_KEY:()=>Le.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Le.Gj,KILOBYTE:()=>Le.eh,LANGUAGE_KEY:()=>Le.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Le.fr,LAST_USED_QUERY_ACTION_KEY:()=>Le.zk,Lang:()=>me.JA,MEGABYTE:()=>Le.pg,MINUTE_IN_SECONDS:()=>Le.r0,MS_IN_NANOSECONDS:()=>Le.zz,MultiClusterApp:()=>Wo,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Le.bs,QUERIES_HISTORY_KEY:()=>Le.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>Le.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Le.YQ,QUERY_STOPPED_BANNER_CLOSED_KEY:()=>Le.J0,SAVED_QUERIES_KEY:()=>Le.ld,SECOND_IN_MS:()=>Le.KF,SHOW_DOMAIN_DATABASE_KEY:()=>Le.Xm,SingleClusterApp:()=>To,TENANT_DEFAULT_TITLE:()=>Le.oK,TENANT_INITIAL_PAGE_KEY:()=>Le.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>Le.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Le.jp,TERABYTE:()=>Le.Db,THEME_KEY:()=>Le.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Le.s2,USE_SHOW_PLAN_SVG_KEY:()=>Le.lr,WEEK_IN_SECONDS:()=>Le.Du,YdbEmbeddedAPI:()=>Go.i,appRoutes:()=>de.Ay,cn:()=>pe.cn,componentsRegistry:()=>ko,configureStore:()=>Ko.U1,getMonitoringClusterLink:()=>Io,getMonitoringLink:()=>Ao,getSettingValue:()=>Yo.CN,getTabletLabel:()=>Le.bk,getUserSettings:()=>lt,i18n:()=>me.Ru,parseMonitoringData:()=>Po,registerKeysets:()=>me.g4,reportWebVitals:()=>Zo.A,rootReducer:()=>Ko.d$,setSettingValue:()=>Yo.gc,settingsManager:()=>bo.f,toaster:()=>Qo.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>En,ClustersSlot:()=>_n,NodeSlot:()=>Cn,PDiskPageSlot:()=>kn,RedirectSlot:()=>In,RoutesSlot:()=>An,StorageGroupSlot:()=>Nn,TabletSlot:()=>Tn,TenantSlot:()=>Sn,VDiskPageSlot:()=>On});var i=n(59284),o=n(61750),a=n(97434),s=n(82266),l=n(34271),c=n(78668),u=n(90182);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(99991),p=n(23871),h=n(28664),m=n(74417),g=n(87184),v=n(92209);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),x=n(81240),_=n(98089),E=n(84476),S={button_close:"Close"},C={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var k=(0,w.N)({en:S,ru:C},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),N=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:r=k("button_close"),onClose:o})=>i.createElement("div",{className:O({separator:n})},i.createElement(_.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),o&&i.createElement(E.$,{onClick:o,view:"flat",size:"l",extraProps:{"aria-label":r}},i.createElement(f.I,{data:x.A,size:t})));function T(e){const t=i.useRef();return i.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),i.useCallback(((...e)=>{if("function"===typeof t.current)return t.current(...e)}),[])}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t=""){const n=A(t).replace(/\s+/g,".*?");return P(e,"",new RegExp(n,"i"))}function P(e,t="",n){const r=[],o={};let a=!1,s=!1;return i.Children.forEach(e,(e=>{var l,c;if(i.isValidElement(e))if(e.type===i.Fragment){const{menu:i,pages:a}=P(e.props.children,t,n);r.push(...i),Object.assign(o,a)}else if(e.props.groupTitle){0;const i=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=P(e.props.children,i,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(o,c)}else{s=!0;const i=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[i]=R(e.props.children,n),o[i].id=i,r.push({id:i,title:e.props.title,icon:e.props.icon,withBadge:o[i].withBadge,disabled:o[i].hidden})}})),{menu:r,pages:o}}function R(e,t){const n={id:"",sections:[],hidden:!0};return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const{sections:r,withBadge:i,hidden:o}=R(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r,showTitle:i=!0}=e.props,{items:o,hidden:a}=D(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:o,hidden:a,showTitle:i}))}})),n}function D(e,t){let n=!0;const r=[];return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const i=D(e.props.children,t);r.push(...i.items),n=n&&i.hidden}else{const i=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(i),n=n&&i.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=i.createContext({});function M(e,t){const n=i.useRef(null);return i.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=i.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[o,a]=i.useState(),s=i.useRef(null),l=T(t),c=function(e){const t=i.useRef(e);return t.current=e,i.useCallback((()=>t.current),[])}(o);return i.useImperativeHandle(r,(()=>({handleKeyDown(e){if(!s.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(a(q(s.current,t,1)),!0):"ArrowUp"===e.key&&(a(q(s.current,t,-1)),!0)},clearFocus(){a(void 0)}})),[c,l]),i.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?i.createElement("div",{key:e.groupTitle,className:F("group")},i.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,o)))):U(e,t,n,o))))}));function U(e,t,n,r){return i.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?i.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,i.createElement("span",null,e.title))}function q(e,t,n){var r;const i=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,(e=>e.getAttribute("data-id")===t))),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const $=(0,v.b)("settings-menu-mobile"),H=({items:e,onChange:t,activeItemId:n,className:r})=>{const o=i.useRef(null),a=i.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:$("item",{badge:r})}))));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:$("item",{badge:o})})}})),t}),[e]);return i.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},i.createElement(p.t,{items:a,className:$(null,r),size:"l",activeTab:n,onSelectTab:t}))};var V={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},W={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var K=(0,w.N)({en:V,ru:W},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:o,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=i.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return i.createElement("div",{className:G(null,e)},i.createElement(h.k,{value:c,controlRef:o,hasClear:!0,autoFocus:l,size:a,placeholder:s,onUpdate:f,controlProps:{"aria-label":K("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section_only-child:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section_only-child:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Q=(0,v.b)("settings"),Z=i.createContext({}),J=()=>i.useContext(Z);function X(e){var{loading:t,renderLoading:n,children:r,view:o="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?i.createElement("div",{className:Q({loading:!0,view:o})},"function"===typeof n?n():i.createElement(m.a,{className:Q("loader"),size:"m"})):i.createElement(Z.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},i.createElement(te,Object.assign({view:o},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te({initialPage:e,initialSearch:t,selection:n,children:r,renderNotFound:o,title:a=K("label_title"),filterPlaceholder:s=K("label_filter-placeholder"),emptyPlaceholder:l=K("label_empty-placeholder"),view:c,onPageChange:u,onClose:d}){var f,p;const{renderSectionRightAdornment:h,showRightAdornmentOnHover:m}=J(),[v,y]=i.useState(null!==t&&void 0!==t?t:""),{menu:b,pages:w}=I(r,v),x=M(w,n),_=Object.keys(w),E=x.page&&_.includes(x.page.id)?x.page.id:void 0,[S,C]=i.useState(E||(e&&_.includes(e)?e:void 0)),k=i.useRef(null),O=i.useRef(null),T="mobile"===c;i.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),i.useEffect((()=>{const e=()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let A=S;A&&!(null===(f=w[A])||void 0===f?void 0:f.hidden)||(A=null===(p=Object.values(w).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const P=e=>{C((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};i.useEffect((()=>{A!==S&&P(A)})),i.useEffect((()=>{E&&C(E)}),[E]),i.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const R=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(x,e,t);return i.createElement("div",{key:t.title,className:Q("section",{selected:n,"only-child":t.onlyChild}),ref:n?x.selectedRef:void 0},t.showTitle&&i.createElement("h3",{className:Q("section-heading")},h?i.createElement(g.s,{gap:2,alignItems:"center"},t.title,i.createElement("div",{className:Q("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?i.createElement("div",{className:Q("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>i.createElement("div",{key:e,className:Q("section-item")},i.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return i.createElement(L,{value:x},i.createElement("div",{className:Q({view:c})},T?i.createElement(i.Fragment,null,i.createElement(Y,{inputRef:k,className:Q("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),i.createElement(H,{items:b,onChange:P,activeItemId:A,className:Q("tabs")})):i.createElement("div",{className:Q("menu"),onClick:()=>{k.current&&k.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},i.createElement(N,null,a),i.createElement(Y,{inputRef:k,className:Q("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),i.createElement(B,{ref:O,items:b,onChange:P,activeItemId:A})),i.createElement("div",{className:Q("page")},(e=>{if(!e)return"function"===typeof o?o():i.createElement("div",{className:Q("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return i.createElement(i.Fragment,null,!T&&i.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),i.createElement("div",{className:Q("content")},t.map((t=>R(e,t)))))})(A))))}function ne(e,t){let n=e.slice(0);const r=[],o=A(t).split(" ").filter(Boolean);let a=0;for(const s of o){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],o=e.index;o>0&&r.push(n.slice(0,o)),r.push(i.createElement("strong",{key:a++,className:Q("found")},t)),n=n.slice(o+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Page=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Section=function({children:e}){return i.createElement(i.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:o,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=i.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=i.createElement("span",{className:Q("item-title",{badge:s})},l(r));return i.createElement("div",{className:Q("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},i.createElement("label",{className:Q("item-heading"),id:n},p?i.createElement(g.s,{className:Q("item-title-wrapper"),gap:3},m,i.createElement("div",{className:Q("item-right-adornment",{hidden:h})},p(e))):m,u?i.createElement("span",{className:Q("item-description")},u):null),i.createElement("div",{className:Q("item-content")},o))};var re=n(85589),ie=n(44433),oe=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:i})=>{const[o,a]=(0,u.iK)(t,r),s=e=>{a(e),null===i||void 0===i||i()};switch(e){case"switch":return(0,oe.jsx)(re.d,{checked:Boolean(o),onUpdate:s});case"radio":return n?(0,oe.jsx)(ie.a,{value:String(o),onUpdate:s,children:n.map((({value:e,content:t})=>(0,oe.jsx)(ie.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,oe.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:i=[],showTitle:o}=e;return(0,oe.jsx)(X.Page,{id:t,title:n,icon:r,children:i.map((e=>{const{title:n,settings:r=[]}=e;return(0,oe.jsx)(X.Section,{title:n,showTitle:null===o||void 0===o||o,children:r.map((e=>{if("info"===e.type)return(0,oe.jsx)(X.Item,{...e,children:e.content},e.title);const{description:t,...n}=e;return(0,oe.jsxs)(X.Item,{align:"top",...n,children:[(0,oe.jsx)(ae,{...e}),(0,oe.jsx)(_.E,{color:"secondary",as:"div",children:t})]},e.title)}))},t)}))},t)}))}),le=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06zM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"})),ce=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06zM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3z",clipRule:"evenodd"}));var ue=n(10755),de=n(92459),fe=n(67028),pe=n(77506),he=n(28232),me=n(48372);const ge=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),ve=(0,me.g4)("ydb-aside-navigation",{en:ge}),ye=(0,pe.cn)("kv-ydb-internal-user");function be({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,fe.li)(),r=(0,he.J)(),i=(0,ue.W6)(),o=()=>{i.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href),database:r}))};return(0,oe.jsxs)("div",{className:ye(),children:[(0,oe.jsxs)("div",{className:ye("user-info-wrapper"),children:[(0,oe.jsx)("div",{className:ye("ydb-internal-user-title"),children:ve("account.user")}),e&&(0,oe.jsx)("div",{className:ye("username"),children:e})]}),e?(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.logout"),onClick:()=>{t(void 0)},children:(0,oe.jsx)(f.I,{data:ce})}):n?null:(0,oe.jsx)(E.$,{view:"flat-secondary",title:ve("account.login"),onClick:o,children:(0,oe.jsx)(f.I,{data:le})})]})}function we({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,oe.jsx)(n,{settings:(0,oe.jsx)(se,{settings:t}),ydbInternalUser:(0,oe.jsx)(be,{login:r}),user:r?{login:r}:void 0,content:e})}const xe={top:0,right:0,bottom:0,left:0};var _e=n(39238),Ee=n(49818),Se=n(80176);const Ce=(0,pe.cn)("node-tootltip"),ke=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Ce(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"ID"}),(0,oe.jsx)("td",{className:Ce("value"),children:t.nodeId||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"Rack"}),(0,oe.jsx)("td",{className:Ce("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Ce("label"),children:"Net"}),(0,oe.jsx)("td",{className:Ce("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,pe.cn)("histogram-tooltip"),Ne=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:Oe(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"Count"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.count||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"From"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.leftBound||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:Oe("label"),children:"To"}),(0,oe.jsx)("td",{className:Oe("value"),children:t.rightBound||"?"})]})]})})})},Te=(0,pe.cn)("cell-tooltip"),Ae={tablet:e=>(0,oe.jsx)(Se.nL,{data:e}),node:e=>(0,oe.jsx)(ke,{data:e}),histogram:e=>(0,oe.jsx)(Ne,{data:e}),cell:e=>(0,oe.jsx)("div",{className:Te(),children:e})};const Ie=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:i,additionalData:o,positions:a}=e.tooltip,{popupClassName:s}=o||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:Ae[i],additionalData:o,positions:a,popupClassName:s}}),{hideTooltip:Ee.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=i.useRef(xe),o=i.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:i}=r.current;return{top:e,right:t,bottom:n,left:i,width:t-i,height:n-e}}});if(o.current.contextElement=n,t){const{top:e=0,left:n=0,right:i=n,bottom:o=e}=t;r.current={top:e,right:i,bottom:o,left:n}}else r.current=xe;return o}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),o=i.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);i.useEffect((()=>(window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o)})),[o]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,oe.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,o,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(_e.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:o&&s(o,a)})})})(s,0,c,u):((t,n,r,i)=>{const{template:o,popupClassName:a,hideTooltip:s}=e;return(0,oe.jsx)(_e.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&o(r,i)})})(s,l,c,u)})})),Pe=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268z"})),Re=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.85 1.85 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8M8 .5c2 0 2.25 1 2.25 1.5v3.39q0 .11.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.35.35 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5m.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04",clipRule:"evenodd"})),De=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.9.9 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.9.9 0 0 0-.632.262l-2 2zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378m2.558.199a3.14 3.14 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38zM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25",clipRule:"evenodd"}));var je=n(43937),Me=n(90754),Le=n(76086);const ze=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\'re always able to get suggestions by pressing Ctrl+Space.","settings.editor.codeAssistant.title":"Code Assistant","settings.editor.codeAssistant.description":"Use Code Assistant for autocomplete.","settings.editor.queryStreaming.title":"Query Streaming","settings.editor.queryStreaming.description":"Use streaming api for query results.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),Fe=(0,me.g4)("ydb-user-settings",{en:ze});var Be=n(8330);const Ue=[{value:"system",content:Fe("settings.theme.option-system")},{value:"light",content:Fe("settings.theme.option-light")},{value:"dark",content:Fe("settings.theme.option-dark")}],qe={settingKey:Le.k4,title:Fe("settings.theme.title"),type:"radio",options:Ue},$e=(me.JA.Ru,Fe("settings.language.option-russian"),me.JA.En,Fe("settings.language.option-english"),Le.jS,Fe("settings.language.title"),me.oK,{settingKey:Le.RY,title:Fe("settings.binaryDataInPlainTextDisplay.title")}),He={settingKey:Le.TJ,title:Fe("settings.invertedDisks.title")},Ve={settingKey:Le.g5,title:Fe("settings.enableNetworkTable.title")},We={settingKey:Le.lr,title:Fe("settings.useShowPlanToSvg.title"),description:Fe("settings.useShowPlanToSvg.description")},Ke={settingKey:Le.Xm,title:Fe("settings.showDomainDatabase.title")},Ge={settingKey:Le.s2,title:Fe("settings.useClusterBalancerAsBackend.title"),description:Fe("settings.useClusterBalancerAsBackend.description")},Ye={settingKey:Le.LK,title:Fe("settings.editor.autocomplete.title"),description:Fe("settings.editor.autocomplete.description")},Qe={settingKey:Le.bz,title:Fe("settings.editor.codeAssistant.title"),description:Fe("settings.editor.codeAssistant.description")},Ze={settingKey:Le.kO,title:Fe("settings.editor.queryStreaming.title"),description:Fe("settings.editor.queryStreaming.description")},Je={settingKey:Le.IO,title:Fe("settings.editor.autocomplete-on-enter.title"),description:Fe("settings.editor.autocomplete-on-enter.description")},Xe={title:Fe("settings.about.interfaceVersionInfoField.title"),type:"info",content:Be.rE},et={id:"appearanceSection",title:Fe("section.appearance"),settings:[qe,He,$e,Ke]},tt={id:"experimentsSection",title:Fe("section.experiments"),settings:[Ve,We,Ze]},nt={id:"devSettingsSection",title:Fe("section.dev-setting"),settings:[Ye,Je]},rt={id:"aboutSettingsSection",title:Fe("section.about"),settings:[Xe]},it={id:"generalPage",title:Fe("page.general"),icon:{data:Pe,height:14,width:14},sections:[et],showTitle:!1},ot={id:"experimentsPage",title:Fe("page.experiments"),icon:{data:Re},sections:[tt],showTitle:!1},at={id:"editorPage",title:Fe("page.editor"),icon:{data:De},sections:[nt]},st={id:"aboutPage",title:Fe("page.about"),icon:{data:je.A},sections:[rt],showTitle:!1};function lt({singleClusterMode:e,codeAssistantConfigured:t}){const n=e?ot:(0,Me.jM)(ot,(e=>{e.sections[0].settings.push(Ge)})),r=t?(0,Me.jM)(at,(e=>{e.sections[0].settings.push(Qe)})):at;return[it,r,n,st]}var ct=n(59109),ut=n(64689),dt=n(98167);function ft(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function pt(e){return"function"===typeof e&&"__slotName"in e}class ht{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,i.Children.forEach(e,(e=>{if(n=e,i.isValidElement(n)&&pt(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!pt(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var mt=n(24600),gt=n(99006);const vt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.2 8.2 0 0 0 .5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.585a8.21 8.21 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.7 6.7 0 0 0 1.87 7.486L1.641 8l.23.515a6.71 6.71 0 0 0 8.947 3.363M6.55 7.611A1.502 1.502 0 0 0 8.389 9.45zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784m5.92 3.508a6.7 6.7 0 0 1-.915 1.496l1.065 1.066A8.2 8.2 0 0 0 15.5 9.125l.26-.585a1.33 1.33 0 0 0 0-1.08l-.26-.584A8.21 8.21 0 0 0 5.572 2.37L6.81 3.61a6.71 6.71 0 0 1 7.32 3.877l.228.514z",clipRule:"evenodd"})),yt=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.33 1.33 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}));var bt,wt,xt=n(67884);function _t(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(null,arguments)}const St=function(e){return i.createElement("svg",Et({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),bt||(bt=i.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),wt||(wt=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},Ct=(0,pe.cn)("authentication");const kt=function({closable:e=!1}){var t;const n=(0,ue.W6)(),r=(0,ue.zy)(),o=(0,fe.S_)(),[a,{isLoading:s}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:l,database:u}=(0,de.mA)(r),[d,p]=i.useState(""),[m,g]=i.useState(null!==(t=null===u||void 0===u?void 0:u.toString())&&void 0!==t?t:""),[v,y]=i.useState(""),[b,w]=i.useState(""),[_,S]=i.useState(""),[C,k]=i.useState(""),[O,N]=i.useState(!1),T=()=>{a({user:d,password:v,database:m}).unwrap().then((()=>{if(l){const e=decodeURIComponent(l.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}})).catch((e=>{(function(e){return _t(e)&&e.data.error.includes("user")})(e)&&w(e.data.error),function(e){return _t(e)&&e.data.error.includes("password")}(e)&&S(e.data.error),function(e){return _t(e)&&e.data.error.includes("database")}(e)&&k(e.data.error)}))},A=e=>{13===e.keyCode&&T()};return(0,oe.jsxs)("section",{className:Ct(),children:[(0,oe.jsxs)("form",{className:Ct("form-wrapper"),children:[(0,oe.jsxs)("div",{className:Ct("header"),children:[(0,oe.jsxs)("div",{className:Ct("logo"),children:[(0,oe.jsx)(f.I,{data:St,size:24}),"YDB"]}),(0,oe.jsx)(xt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,oe.jsx)("h2",{className:Ct("title"),children:"Sign in"}),(0,oe.jsx)("div",{className:Ct("field-wrapper"),children:(0,oe.jsx)(h.k,{value:d,onUpdate:e=>{p(e),w("")},placeholder:"Username",error:b,onKeyDown:A,size:"l",autoFocus:!0})}),(0,oe.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,oe.jsx)(h.k,{value:v,onUpdate:e=>{y(e),S("")},type:O?"text":"password",placeholder:"Password",error:_,onKeyDown:A,size:"l"}),(0,oe.jsx)(E.$,{onClick:()=>{N((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,oe.jsx)(f.I,{data:O?vt:yt,size:16})})]}),o&&(0,oe.jsx)("div",{className:Ct("field-wrapper"),children:(0,oe.jsx)(h.k,{value:m,onUpdate:e=>{g(e),k("")},placeholder:"Database",error:C,onKeyDown:A,size:"l"})}),(0,oe.jsx)(E.$,{view:"action",onClick:T,width:"max",size:"l",disabled:Boolean(!d||b||_),loading:s,className:Ct("button-sign-in"),children:"Sign in"})]}),e&&n.length>1&&(0,oe.jsx)(E.$,{onClick:()=>{n.go(-1)},className:Ct("close"),children:(0,oe.jsx)(f.I,{data:x.A,size:24})})]})};var Ot=n(87842),Nt=n(49917),Tt=n(112),At=n(69220);const It=(0,At.om)("divider"),Pt=i.forwardRef((function(e,t){const{orientation:n="horizontal",className:r,style:o,qa:a,children:s,align:l="start"}=e;return i.createElement("div",{className:It({orientation:n,align:l},r),ref:t,style:o,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Rt=n(61758),Dt=n.n(Rt);const jt=(0,At.om)("breadcrumbs");function Mt(e){return i.createElement("button",Object.assign({},e,{type:"button",className:jt("switcher",{more:!0})}))}const Lt=(0,At.om)("breadcrumbs");const zt=i.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:o}){const a=r?r(e,t,n):e.text;if(o)return o({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?i.createElement(xt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Lt("item",{"prev-current":n})},a):i.createElement(Mt,{key:e.text,title:s,onClick:e.action},a):i.createElement("div",{title:s,className:Lt("item",{current:!0})},a)}));zt.displayName="Breadcrumbs.Item";var Ft=n(40569);const Bt=JSON.parse('{"label_more":"Show more"}'),Ut=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),qt=(0,w.N)({en:Bt,ru:Ut},"Breadcrumbs"),$t=(0,At.om)("breadcrumbs");function Ht({popupStyle:e,popupPlacement:t,items:n}){return i.createElement(Ft.r,{items:n,popupProps:{className:$t("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>i.createElement(Mt,{title:qt("label_more"),onClick:e},"...")})}Ht.displayName="Breadcrumbs.More";const Vt=(0,At.om)("breadcrumbs");function Wt({renderItemDivider:e}){return i.createElement("div",{"aria-hidden":!0,className:Vt("divider")},e?e():"/")}Wt.displayName="Breadcrumbs.Separator";const Kt=(0,At.om)("breadcrumbs");var Gt,Yt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Gt||(Gt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Yt||(Yt={}));class Qt extends i.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Qt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Qt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Dt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=i.createRef(),this.state=Qt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return i.createElement("div",{className:Kt({calculated:n?"yes":"no"},e),"data-qa":t},i.createElement("div",{className:Kt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return i.createElement(zt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return i.createElement(Wt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,o=t===n.length-2;return i.createElement(i.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,o))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return i.createElement(i.Fragment,null,i.createElement(Wt,{renderItemDivider:r}),i.createElement(Ht,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let i=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&i>0){i+=4;const e=Array.from(this.container.current.querySelectorAll(`.${Kt("divider")}`)),o=[...Array.from(this.container.current.querySelectorAll(`.${Kt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Kt("item")}`))],a=o.map(((e,t)=>e.scrollWidth+(t===o.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,i)=>{const o=i.length-1===r,a=n===Gt.Two&&i.length-2===r;return o||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>i&&c<o.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Qt.defaultProps={popupPlacement:["bottom","top"]};var Zt=n(1064),Jt=n(44294),Xt=n(67157),en=n(31684),tn=n(12888);const nn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3 3 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4m-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})),rn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888s-.071-.513-.885-.888S9.538 2.5 8 2.5s-2.799.237-3.615.612C3.57 3.487 3.5 3.826 3.5 4s.071.513.885.888S6.462 5.5 8 5.5s2.799-.237 3.615-.612m.885 1.235C11.4 6.708 9.792 7 8 7s-3.4-.292-4.5-.877V8c0 .174.071.513.885.888S6.462 9.5 8 9.5s2.799-.237 3.615-.612c.814-.375.885-.714.885-.888zm0 4C11.4 10.708 9.792 11 8 11s-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613s2.799-.236 3.615-.613c.814-.374.885-.713.885-.887zM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3z",clipRule:"evenodd"})),on=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134M15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18m-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),an=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})),sn=(0,pe.cn)("tablet-icon"),ln=({text:e,className:t})=>(0,oe.jsx)("div",{className:sn(null,t),children:(0,oe.jsx)("div",{className:sn("type"),children:e||"T"})});var cn=n(52531),un=n(29819),dn=n(54309);const fn=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group","connect":"Connect"}'),pn=(0,me.g4)("ydb-header",{en:fn}),hn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||Le.QM,link:(0,Ot.a)(r,t),icon:(0,oe.jsx)(nn,{})}]},mn=(e,t={})=>{const{tenantName:n}=e,r=hn(e,t),i=n?(e=>e.startsWith("/")?e.slice(1):e)(n):pn("breadcrumbs.tenant"),o={text:i,link:n?(0,dn.YL)({...t,database:n}):void 0,icon:(0,oe.jsx)(rn,{})};return r.push(o),r},gn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:i,tenantName:o}=e,a=(s="tablets"===i?"tablets":"nodes",{[cn.Dt]:cn.Dg.diagnostics,[dn.vh.diagnosticsTab]:cn.iJ[s]});var s;const l=o?mn(e,{...t,...a}):hn(e,t);let c=pn("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,un.vI)(n,{database:o,...t},i):void 0,icon:vn(r)};return l.push(u),l};function vn(e){switch(e){case"Storage":return(0,oe.jsx)(on,{});case"Compute":return(0,oe.jsx)(an,{});default:return}}const yn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:i}=e,o=gn({...e,nodeRole:null!==i&&void 0!==i?i:"Storage"});let a=pn("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return o.push(s),o},bn={cluster:hn,node:gn,pDisk:yn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:i}=e,o=i?mn(e,t):hn(e,t),a={text:n||pn("breadcrumbs.tablet"),icon:(0,oe.jsx)(ln,{text:(0,Le.bk)(r)})};return o.push(a),o},tenant:mn,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=yn(e,t);let i=pn("breadcrumbs.vDisk");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=hn(e,t);let i=pn("breadcrumbs.storageGroup");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r}},wn=(0,pe.cn)("header");const xn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,tn.X)(),o=(0,Xt.Zd)(),a=(0,he.J)(),s="/tenant"===(0,ue.zy)().pathname,l=o.title||o.name,c=i.useMemo((()=>{const r=[];let i=n;e&&r.push(e),l&&(i={...i,clusterName:l});const o=((e,t,n=[],r={})=>{if(!e)return n;const i=(0,bn[e])(t,r);return[...n,...i]})(t,i,r);return o.map((e=>({...e,action:()=>{}})))}),[l,e,t,n]),d=()=>{const e=[];return s&&a&&e.push((0,oe.jsxs)(E.$,{view:"flat",onClick:()=>(0,Zt.S)({database:a}),children:[(0,oe.jsx)(f.I,{data:Nt.A}),pn("connect")]})),r&&e.push((0,oe.jsxs)(E.$,{view:"flat",href:(0,en.Un)(),target:"_blank",children:[Le.T5,(0,oe.jsx)(f.I,{data:Tt.A})]})),e.length?(0,oe.jsx)(g.s,{direction:"row",gap:1,children:e.map(((t,n)=>(0,oe.jsxs)(i.Fragment,{children:[t,n===e.length-1?null:(0,oe.jsx)(Pt,{orientation:"vertical"})]},n)))}):null};return(0,oe.jsxs)("header",{className:wn(),children:[(0,oe.jsx)(Qt,{items:c,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:wn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:i}=e;return(0,oe.jsxs)(Jt.E,{className:wn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:i,children:[n?(0,oe.jsx)("span",{className:wn("breadcrumbs-icon"),children:n}):null,(0,oe.jsx)("span",{children:r})]})}}),d()]})},_n=ft("clusters"),En=ft("cluster"),Sn=ft("tenant"),Cn=ft("node"),kn=ft("pDisk"),On=ft("vDisk"),Nn=ft("storageGroup"),Tn=ft("tablet"),An=ft("routes"),In=ft("redirect"),Pn=JSON.parse('{"pages.clusters":"All clusters"}'),Rn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Dn=(0,me.g4)("ydb-app-content",{ru:Rn,en:Pn}),jn=(0,pe.cn)("app"),Mn=[{path:de.Ay.cluster,slot:En,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(856),n.e(9796),n.e(1329),n.e(9300),n.e(5652)]).then(n.bind(n,5252))),"Cluster"),wrapper:Bn},{path:de.Ay.tenant,slot:Sn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9172),n.e(6820),n.e(2031),n.e(9796),n.e(1329),n.e(9300),n.e(431)]).then(n.bind(n,64851))),"Tenant"),wrapper:Bn},{path:de.Ay.node,slot:Cn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(1329),n.e(8393)]).then(n.bind(n,13758))),"Node"),wrapper:Bn},{path:de.Ay.pDisk,slot:kn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(684)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:Bn},{path:de.Ay.vDisk,slot:On,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(6030)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:Bn},{path:de.Ay.storageGroup,slot:Nn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(4872),n.e(9796),n.e(3812)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:Bn},{path:de.Ay.tablet,slot:Tn,component:(0,gt._)((()=>Promise.all([n.e(9802),n.e(9172),n.e(9393)]).then(n.bind(n,81342))),"Tablet"),wrapper:Bn}],Ln=(0,gt._)((()=>Promise.all([n.e(9802),n.e(4130),n.e(3779)]).then(n.bind(n,48288))),"Clusters");function zn(e,t){return(0,oe.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const o=e.get(t.slot);let a;if(o)a="function"===typeof o.rendered?o.rendered({component:t.component,...n}):o.rendered;else{const e=t.component;a=(0,oe.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:i.Fragment;return(0,oe.jsx)("main",{className:jn("main"),children:(0,oe.jsx)(s,{children:a})})}},t.path)}function Fn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return i.useMemo((()=>new ht(t)),[t])}(e),o=r.get(An),a=r.get(In),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ot.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Dn("pages.clusters"),link:de.Ay.clusters}),(0,oe.jsxs)(ue.dO,{children:[n?null:zn(r,{path:de.Ay.clusters,exact:!0,component:Ln,slot:_n}),null===o||void 0===o?void 0:o.rendered,(0,oe.jsxs)(ue.qh,{children:[(0,oe.jsx)(xn,{mainPage:l}),(0,oe.jsxs)(ue.dO,{children:[Mn.map((e=>zn(r,e))),(0,oe.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,oe.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function Bn({children:e}){return(0,oe.jsx)($n,{children:(0,oe.jsxs)(Un,{children:[(0,oe.jsx)(qn,{}),(0,oe.jsx)($n,{children:e})]})})}function Un({children:e}){const t=(0,he.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,oe.jsx)(dt.r,{loading:n,size:"l",children:(0,oe.jsx)(ut.A,{error:r,children:e})})}function qn(){return mt.m.useGetNodesListQuery(void 0),null}function $n({children:e}){(0,fe.e5)();const t=(0,fe.Pm)();return(0,oe.jsx)(dt.r,{loading:!t,size:"l",children:e})}const Hn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e,r=(0,fe.li)();return(0,oe.jsxs)(ue.dO,{children:[!r&&(0,oe.jsx)(ue.qh,{path:de.Ay.auth,children:(0,oe.jsx)(kt,{closable:!0})}),(0,oe.jsx)(ue.qh,{children:(0,oe.jsx)("div",{className:jn({embedded:t}),children:n?e.children:r?(0,oe.jsx)(ct.O,{}):(0,oe.jsx)(kt,{})})})]})}));var Vn=n(16332),Wn=n(69118),Kn=n(67087);const Gn=({children:e})=>{(0,ue.zy)();const t=(0,ue.W6)();return e({replace(e){t.replace(e.search||"?",e.state)},push(e){t.push(e.search||"?",e.state)},get location(){return t.location}})},Yn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10s3.162.44 4.18 1.041c1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1m5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4",clipRule:"evenodd"}));var Qn=n(73633),Zn=n(27738),Jn=n(98392),Xn=n(18650),er=n(40091);const tr=i.createContext(void 0);tr.displayName="AsideHeaderInnerContext";const nr=tr.Provider,rr=()=>{const e=i.useContext(tr);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},ir=i.createContext({compact:!1,size:0});ir.displayName="AsideHeaderContext";const or=ir.Provider,ar=()=>{const e=i.useContext(ir);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e};var sr=n(7450);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const lr=(0,v.b)("composite-bar-highlighted-item"),cr=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:o}=rr(),[{top:a,left:s,width:l,height:c},u]=(0,i.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,i.useState)(!1),p=(0,i.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})}),200,{leading:!0})),[e]),h=(0,i.useCallback)((()=>p()),[p]);return(0,i.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===o||void 0===o||o((e=>{f(e)})),t&&d?i.createElement(Jn.Z,null,i.createElement("div",{className:lr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},i.createElement("div",{className:lr("icon")},t))):null};cr.displayName="HighlightedItem";const ur="collapse-item-id",dr=["right-start","right-end","right"];function fr(e){if(!mr(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function pr(e){return e.reduce(((e,t)=>e+fr(t)),0)}function hr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function mr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;min-width:0;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const gr=(0,v.b)("composite-bar-item");function vr(e){let t=i.createElement("div",{className:gr("title-text")},e.title);return e.rightAdornment&&(t=i.createElement(i.Fragment,null,t,i.createElement("div",{className:gr("title-adornment")},e.rightAdornment))),t}const yr=["right-end"],br=[-20,8],wr=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:o,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=yr,popupOffset:d=br,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=ar(),[_,E]=i.useState(!1),S=i.useRef(null),C=c||S,k=i.useRef(null),O=t.type||"regular",N=t.current||!1,T=t.tooltipText||t.title,A=t.icon,I=t.iconSize||18,P=t.iconQa,R=t.id===ur,D=i.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:x},phase:"main",fn(){}}]),[x]),j=i.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return i.createElement("div",{className:gr("menu-divider")});const M=e=>x?i.createElement(Xn.m,{title:"",description:T,disabled:!s||R&&_||l,placement:"right",className:gr("icon-tooltip",{"item-type":O})},i.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===o||void 0===o?void 0:o(),className:gr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=i.createElement(i.Fragment,null,i.createElement("div",{className:gr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{R?(E(!_),null===b||void 0===b||b()):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{x||null===a||void 0===a||a()},onMouseLeave:()=>{x||null===o||void 0===o||o()}},i.createElement("div",{className:gr("icon-place"),ref:k},M(e)),i.createElement("div",{className:gr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===C||void 0===C?void 0:C.current)&&i.createElement(_e.z,{contentClassName:gr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:C,onClose:j,modifiers:D},m()));return t.link?i.createElement("a",{href:t.link,className:gr("link")},s):s},z=A?i.createElement(f.I,{qa:P,data:A,size:I,className:gr("icon")}):null,F={icon:z,title:vr(t)};let B,U=null;const q={compact:Boolean(x),collapsed:!1,item:t,ref:S};return"function"===typeof t.itemWrapper?(B=t.itemWrapper(F,L,q),U=w&&t.itemWrapper(F,(({icon:e})=>M(e)),q)):(B=L(F),U=w&&M(z)),i.createElement(i.Fragment,null,w&&i.createElement(cr,{iconNode:U,iconRef:k,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&R&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===C||void 0===C?void 0:C.current)&&i.createElement(xr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function xr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:o}=ar();return(null===t||void 0===t?void 0:t.length)?i.createElement(_e.z,{placement:dr,open:!0,anchorRef:n,onClose:r},i.createElement("div",{className:gr("collapse-items-popup-content")},i.createElement(er.B,{itemClassName:gr("root-collapse-item"),items:t,selectedItemIndex:hr(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n,icon:r})=>{const o=i.createElement("div",{className:gr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},r,n);return t.link?i.createElement("a",{href:t.link,className:gr("link")},o):o},a={title:vr(t),icon:t.icon&&i.createElement(f.I,{data:t.icon,size:14,className:gr("collapse-item-icon")})},s={compact:Boolean(o),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}wr.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const _r=(0,v.b)("footer-item"),Er=e=>{var{item:t}=e,n=d(e,["item"]);return i.createElement(wr,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:_r({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},Sr=i.memo((({renderContent:e,size:t})=>i.createElement(i.Fragment,null,e({size:t}))));Sr.displayName="RenderContent";const Cr=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:o})=>i.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?i.createElement(Sr,{size:e,renderContent:r}):o);var kr=n(16258);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const Or=i.lazy((()=>n.e(99).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Nr=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const o=e?56:236,a=(0,i.useMemo)((()=>({size:o,compact:e})),[e,o]);return i.createElement(or,{value:a},i.createElement("div",{className:(0,kr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},r&&i.createElement(i.Suspense,{fallback:null},i.createElement(Or,{topAlert:r})),i.createElement("div",{className:(0,kr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=ar();return i.createElement(Cr,{size:n,className:(0,kr.b)("content"),renderContent:t},e)}});var Tr=n(42793);const Ar=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118m4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"})),Ir=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"}));var Pr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(null,arguments)}var Dr=function(e){return i.createElement("svg",Rr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Pr||(Pr=i.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},jr=n(32084),Mr=n(14794),Lr=n(48681);function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(null,arguments)}function Fr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Br(e,t)}function Ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}var qr,$r,Hr,Vr;function Wr(){if($r)return qr;$r=1;return qr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Kr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Vr)return Hr;Vr=1;var e=Wr();function t(){}function n(){}return n.resetWarningCache=t,Hr=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var Gr=!1,Yr=i.createContext(null),Qr=function(e){return e.scrollTop},Zr="unmounted",Jr="exited",Xr="entering",ei="entered",ti="exiting",ni=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Jr,r.appearStatus=Xr):i=ei:i=t.unmountOnExit||t.mountOnEnter?Zr:Jr,r.state={status:i},r.nextCallback=null,r}Ur(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Zr?{status:Jr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xr&&n!==ei&&(t=Xr):n!==Xr&&n!==ei||(t=ti)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this);n&&Qr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jr&&this.setState({status:Zr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Lr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Gr?this.safeSetState({status:ei},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Xr},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ei},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Lr.findDOMNode(this);t&&!Gr?(this.props.onExit(r),this.safeSetState({status:ti},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Jr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Jr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Zr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Fr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.createElement(Yr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ri(){}ni.contextType=Yr,ni.propTypes={},ni.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ri,onEntering:ri,onEntered:ri,onExit:ri,onExiting:ri,onExited:ri},ni.UNMOUNTED=Zr,ni.EXITED=Jr,ni.ENTERING=Xr,ni.ENTERED=ei,ni.EXITING=ti;var ii=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},oi=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Kr(n.className,r):n.setAttribute("class",Kr(n.className&&n.className.baseVal||"",r)));var n,r}))},ai=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Ur(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Qr(e),r&&(this.appliedClasses[t][n]=r,ii(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&oi(e,r),i&&oi(e,i),o&&oi(e,o)},n.render=function(){var e=this.props;e.classNames;var t=Fr(e,["classNames"]);return i.createElement(ni,zr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.Component);function si(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function li(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ci(e,t,n){var r=si(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:li(s,"exit",e),enter:li(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:li(s,"exit",e),enter:li(s,"enter",e)})}})),o}ai.defaultProps={classNames:""},ai.propTypes={};var ui,di,fi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pi=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Ur(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,si(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:li(e,"appear",n),enter:li(e,"enter",n),exit:li(e,"exit",n)})}))):ci(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=si(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=zr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Fr(e,["component","childFactory"]),o=this.state.contextValue,a=fi(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(Yr.Provider,{value:o},a):i.createElement(Yr.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);pi.propTypes={},pi.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Ur(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,a=i.Children.toArray(o)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Lr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Fr(e,["children","in"]),o=i.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.createElement(pi,r,n?i.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.Component)).propTypes={};var hi="out-in",mi="in-out",gi=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},vi=((ui={})[hi]=function(e){var t=e.current,n=e.changeState;return i.cloneElement(t,{in:!1,onExited:gi(t,"onExited",(function(){n(Xr,null)}))})},ui[mi]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.cloneElement(r,{in:!0,onEntered:gi(r,"onEntered",(function(){n(Xr)}))})]},ui),yi=((di={})[hi]=function(e){var t=e.children,n=e.changeState;return i.cloneElement(t,{in:!0,onEntered:gi(t,"onEntered",(function(){n(ei,i.cloneElement(t,{in:!0}))}))})},di[mi]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.cloneElement(t,{in:!1,onExited:gi(t,"onExited",(function(){r(ei,i.cloneElement(n,{in:!0}))}))}),i.cloneElement(n,{in:!0})]},di),bi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ei,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ur(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Xr&&e.mode===mi?{status:Xr}:!t.current||(n=t.current,r=e.children,n===r||i.isValidElement(n)&&i.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.cloneElement(e.children,{in:!0})}:{status:ti};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,s=o.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Xr:e=yi[r](l);break;case ti:e=vi[r](l);break;case ei:e=s}return i.createElement(Yr.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.Component);bi.propTypes={},bi.defaultProps={mode:hi};const wi=200,xi=800;function _i(e){var t,n;return"touches"in e?null!==(n=null===(t=e.touches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0:e.clientX}function Ei(e){const{direction:t,width:n,minResizeWidth:r=wi,maxResizeWidth:o=xi,onResizeStart:a,onResize:s}=e,[l,c]=i.useState(!1),[u,d]=i.useState(0),[f,p]=i.useState(null!==n&&void 0!==n?n:400),h=i.useCallback((e=>Math.min(Math.max(e,r),o)),[r,o]),m=i.useCallback((e=>h((null!==n&&void 0!==n?n:f)+("right"===t?e:-e))),[n,f,t,h]),g=i.useCallback((()=>{c(!0),d(0),null===a||void 0===a||a()}),[a]),v=i.useCallback((e=>{d(e)}),[]),y=i.useCallback((e=>{const t=m(e);c(!1),p(t),null===s||void 0===s||s(t)}),[m,s]),b=l?m(u):h(null!==n&&void 0!==n?n:f),w=function({onStart:e,onMove:t,onEnd:n}){const r=i.useRef(0),o=i.useRef(0),a=i.useCallback((e=>{const n=_i(e);if(o.current===n)return;o.current=n;const i=r.current-n;t(i)}),[t]),s=i.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select"),document.body.style.removeProperty("cursor");const t=_i(e),i=r.current-t;n(i)}),[a,n]),l=i.useCallback((t=>{const n=_i(t);r.current=n,o.current=n,window.addEventListener("mouseup",s,{once:!0}),window.addEventListener("touchend",s,{once:!0}),window.addEventListener("touchcancel",s,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),document.body.style.setProperty("user-select","none"),document.body.style.setProperty("-webkit-user-select","none"),document.body.style.setProperty("cursor","col-resize"),e()}),[s,a,e]);return{onMouseDown:l,onTouchStart:l}}({onStart:g,onMove:v,onEnd:y});return{resizedWidth:b,resizerHandlers:w}}y(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:0;pointer-events:auto;position:absolute;top:0;will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0}.gn-drawer__resizer_direction_left{right:0}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const Si=(0,v.b)("drawer"),Ci=i.forwardRef((function(e,t){const{visible:n,content:r,children:o,direction:a="left",className:s,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p,keepMounted:h=!1}=e,[m,g]=i.useState(!0),v=i.useRef(null),y=(0,jr.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=Ei({direction:a,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p});i.useEffect((()=>{g(!0)}),[a]);const _=l?i.createElement("div",Object.assign({className:Si("resizer",{direction:a})},x),i.createElement("div",{className:Si("resizer-handle")})):null;return i.createElement(ai,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:Si("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},i.createElement("div",{ref:y,className:Si("item",{direction:b,hidden:m&&!n},[s]),style:{width:l?`${w}px`:void 0}},_,null!==o&&void 0!==o?o:r))})),ki=({className:e,veilClassName:t,children:n,style:r,onVeilClick:o,onEscape:a,preventScrollBody:s=!0,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;i.Children.forEach(n,(e=>{if(i.isValidElement(e)&&e.type===Ci){Boolean(e.props.visible)&&(d=!0)}})),i.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]),(0,Mr.y)({enabled:s&&d});const f=i.useRef(null),p=i.useRef(null),h=i.createElement(ni,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:f},(a=>{const s=d&&"entered"===a;return i.createElement("div",{ref:f,className:Si({hideVeil:l},e),style:r},i.createElement(ai,{in:s,timeout:300,unmountOnExit:!0,classNames:Si("veil-transition"),nodeRef:p},i.createElement("div",{ref:p,className:Si("veil",{hidden:l},t),onClick:o})),i.Children.map(n,(e=>{if(i.isValidElement(e)&&e.type===Ci){const t=Boolean(e.props.visible);return i.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&s}))}return e})))}));return c?h:i.createElement(Jn.Z,null,h)};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const Oi=(0,v.b)("all-pages-list-item"),Ni=e=>{const{item:t,editMode:n,onToggle:r}=e,o=(0,i.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return i.createElement("div",{className:Oi(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?i.createElement(f.I,{className:Oi("icon"),data:t.icon,size:t.iconSize}):null,i.createElement("span",{className:Oi("text")},t.title),n&&!t.preventUserRemoving&&i.createElement(E.$,{onClick:o,view:t.hidden?"flat-secondary":"flat-action"},i.createElement(E.$.Icon,null,t.hidden?i.createElement(Ar,null):i.createElement(Ir,null))))};var Ti=(0,w.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Ai="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const Ii=(0,v.b)("all-pages-panel"),Pi=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:o,onMenuItemsChanged:a,editMenuProps:s}=rr(),l=(0,i.useRef)(o);l.current=o;const[c,u]=(0,i.useState)(!1),d=(0,i.useCallback)((()=>{u((e=>!e))}),[]),p=(e=>{const t=(0,i.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Ai));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||Ti("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(o);(0,i.useEffect)((()=>{var e;null===n||void 0===n||n(c),c&&(null===(e=null===s||void 0===s?void 0:s.onOpenEditMode)||void 0===e||e.call(s))}),[c,n,s]);const h=(0,i.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),m=(0,i.useCallback)((e=>{var t;if(!a)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=l.current.filter((e=>e.id!==Ai));null===(t=null===s||void 0===s?void 0:s.onToggleMenuItem)||void 0===t||t.call(s,n),a(r.map((e=>e.id!==n.id?e:n)))}),[a,s]),v=(0,i.useCallback)(((e,t,n)=>i.createElement(Ni,{item:e,editMode:c,onToggle:()=>m(e)})),[c,m]),y=(0,i.useCallback)((()=>{var e;if(!a)return;null===(e=null===s||void 0===s?void 0:s.onResetSettingsToDefault)||void 0===e||e.call(s);const t=l.current.filter((e=>e.id!==Ai));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return i.createElement(g.s,{className:Ii(null,r),gap:"5",direction:"column"},i.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},i.createElement(_.E,{variant:"subheader-2"},Ti(c?"all-panel.title.editing":"all-panel.title.main")),i.createElement(E.$,{selected:c,view:"normal",onClick:d},t||i.createElement(f.I,{data:Zn.A}))),i.createElement(g.s,{className:Ii("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>i.createElement(g.s,{key:e,direction:"column",gap:"3"},i.createElement(_.E,{className:Ii("category"),variant:"body-1",color:"secondary"},e),i.createElement(er.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&i.createElement(E.$,{onClick:y},Ti("all-panel.resetToDefault")))};let Ri;Ri="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Di=null,ji=null;const Mi=Ri.clearTimeout,Li=Ri.setTimeout,zi=Ri.cancelAnimationFrame||Ri.mozCancelAnimationFrame||Ri.webkitCancelAnimationFrame,Fi=Ri.requestAnimationFrame||Ri.mozRequestAnimationFrame||Ri.webkitRequestAnimationFrame;function Bi(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Di(this.__resizeRAF__),this.__resizeRAF__=ji((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=Ri.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==zi||null==Fi?(Di=Mi,ji=function(e){return Li(e,20)}):(Di=function([e,t]){zi(e),Mi(t)},ji=function(e){const t=Fi((function(){Mi(n),e()})),n=Li((function(){zi(t),e()}),20);return[t,n]});class Ui extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Bi(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return r||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,i.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}const qi={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},$i=i.createContext(qi);class Hi extends i.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},qi),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return i.createElement($i.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Vi=(0,v.b)("multiple-tooltip"),Wi=[-32,4],Ki=[{name:"preventOverflow",enabled:!1}],Gi=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:o,hideCollapseItemTooltip:a}=i.useContext($i),s=void 0===o?null:e[o];return i.createElement(_e.z,{open:t,anchorRef:n,placement:r,offset:Wi,contentClassName:Vi(null),modifiers:Ki,disableLayer:!0},i.createElement("div",{className:Vi("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==ur&&"action"!==e)).map(((e,t)=>"divider"===e.type?i.createElement("div",{className:Vi("item",{divider:!0}),key:t},e.title):i.createElement("div",{className:Vi("item",{active:e===s}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Yi=(0,v.b)("composite-bar"),Qi=({type:e,items:t,onItemClick:n,onMoreClick:r,collapseItems:o,multipleTooltip:a=!1})=>{const s=(0,i.useRef)(null),l=(0,i.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,i.useContext)($i),{compact:p}=ar();i.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,i.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,i.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,i.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,i.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,i.useCallback)((e=>(t,r,i)=>{p&&a&&e!==f&&t.id!==ur&&c({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,i)}),[p,f,a,n,c]);return i.createElement(i.Fragment,null,i.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},i.createElement(er.B,{ref:s,items:t,selectedItemIndex:"menu"===e?hr(t):void 0,itemHeight:fr,itemsHeight:pr,itemClassName:Yi("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=mr(e)?{item:e}:e,l=mr(e)?!a:e.enableTooltip;return i.createElement(wr,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:o}))}})),"menu"===e&&a&&i.createElement(Gi,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Zi=({type:e,items:t,menuMoreTitle:n,onItemClick:r,onMoreClick:o,multipleTooltip:a=!1})=>{if(0===t.length)return null;let s;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return pr(t)+pr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:ur,title:e,icon:sr.A,iconSize:18}}(n);s=i.createElement("div",{className:Yi({autosizer:!0}),style:{minHeight:e}},0!==t.length&&i.createElement(Ui,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,s=Number.isNaN(e.height)?0:e.height,{listItems:c,collapseItems:u}=function(e,t,n){var r,i,o;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=pr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=fr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===ur||e.afterMoreButton||("divider"!==e.type?(f-=fr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=fr(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,s,l);return i.createElement("div",{style:{width:n,height:s}},i.createElement(Qi,{type:"menu",items:c,onItemClick:r,onMoreClick:o,collapseItems:u,multipleTooltip:a}))})))}else s=i.createElement("div",{className:Yi({subheader:!0})},i.createElement(Qi,{type:"subheader",items:t,onItemClick:r}));return i.createElement(Hi,null,s)};var Ji={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Xi={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var eo,to=(0,w.N)({en:Ji,ru:Xi},`${v.N}AsideHeader`);function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(null,arguments)}var ro=function(e){return i.createElement("svg",no({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),eo||(eo=i.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const io=(0,v.b)("collapse-button"),oo=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:o}=rr(),a=(0,i.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||to("button_expand"):o||to("button_collapse");return i.createElement("button",{className:io({compact:n},e),onClick:a,title:s},i.createElement(f.I,{data:ro,className:io("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const ao=(0,v.b)("logo"),so=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:o=24,textSize:a=15,href:s,target:l="_self",wrapper:c,onClick:u,compact:d,className:p,buttonWrapperClassName:h,buttonClassName:m,"aria-label":g,"aria-labelledby":v})=>{const y="function"===typeof c;let b;n?b=i.createElement(E.$.Icon,{className:r},i.createElement("img",{alt:"logo icon",src:n,width:o,height:o})):t&&(b=i.createElement(f.I,{data:t,size:o,className:r}));const w=i.createElement(E.$,{view:"flat",size:"l",className:ao("btn-logo",m),component:y?"span":void 0,onClick:u,target:l,rel:"_self"===l?void 0:"noreferrer",href:s,extraProps:{"aria-label":g,"aria-labelledby":v}},b);let x;return x="function"===typeof e?e():i.createElement("div",{className:ao("logo"),style:{fontSize:a}},e),i.createElement("div",{className:ao(null,p)},i.createElement("div",{className:ao("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?i.createElement("div",{onClick:u},c(x,Boolean(d))):i.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:ao("logo-link"),onClick:u},x)))},lo=[],co=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:o}=rr(),{compact:a}=ar(),s=(0,i.useCallback)((t=>{var r;null===n||void 0===n||n(),null===(r=null===e||void 0===e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return i.createElement("div",{className:(0,kr.b)("header",{"with-decoration":r})},e&&i.createElement(so,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,kr.b)("logo-button-wrapper"),buttonClassName:(0,kr.b)("logo-button")})),i.createElement(Zi,{type:"subheader",items:o||lo,onItemClick:t}),r&&i.createElement(f.I,{data:Dr,className:(0,kr.b)("header-divider"),width:56,height:29}))},uo=()=>{const{panelItems:e,onClosePanel:t,size:n}=rr();return e?i.createElement(ki,{className:(0,kr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>i.createElement(Ci,Object.assign({key:e.id},e))))):null},fo=i.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:o,multipleTooltip:a,menuMoreTitle:s,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:f,className:p,hideCollapseButton:h,qa:m}=rr(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=rr();return(0,i.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),v=(0,i.useRef)(null);return i.useEffect((()=>{(0,Tr.c)(t,v.current)}),[t]),i.createElement(i.Fragment,null,i.createElement("div",{className:(0,kr.b)("aside",p),style:{width:n},"data-qa":m},i.createElement("div",{className:(0,kr.b)("aside-popup-anchor"),ref:v}),i.createElement("div",{className:(0,kr.b)("aside-content",{"with-decoration":o})},d&&i.createElement("div",{className:(0,kr.b)("aside-custom-background",f)},d),i.createElement(co,null),(null===g||void 0===g?void 0:g.length)?i.createElement(Zi,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:to("label_more"),onItemClick:r,onMoreClick:l,multipleTooltip:a}):i.createElement("div",{className:(0,kr.b)("menu-items")}),i.createElement("div",{className:(0,kr.b)("footer")},null===c||void 0===c?void 0:c({size:n,compact:Boolean(u),asideRef:v})),!h&&i.createElement(oo,null))),i.createElement(uo,null))}));var po;fo.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(po||(po={}));const ho=[],mo=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:o,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,i.useState)(),u=i.useMemo((()=>({id:Ai,title:Ti("menu-item.all-pages.title"),tooltipText:Ti("menu-item.all-pages.title"),icon:sr.A})),[]),d=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,i.useEffect)((()=>{(null===o||void 0===o?void 0:o.some((e=>e.visible)))&&c(void 0)}),[o]);const f=(0,i.useCallback)((()=>{c(void 0),null===n||void 0===n||n()}),[n]),p=(0,i.useCallback)(((e,t,r)=>{var i;e.id===u.id?(null===n||void 0===n||n(),c((e=>e===po.AllPages?void 0:po.AllPages))):f(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[f,u,n]),h=(0,i.useMemo)((()=>d?[...r||ho,Object.assign(Object.assign({},u),{current:l===po.AllPages,onItemClick:s})]:r||ho),[d,r,l,u,s]),m=(0,i.useMemo)((()=>d?[...o||[],{id:po.AllPages,content:i.createElement(Pi,null),visible:l===po.AllPages}]:o),[d,o,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},go=i.forwardRef(((e,t)=>{const{size:n,compact:r}=ar(),o=mo(Object.assign({size:n,compact:r},e));return i.createElement(nr,{value:o},i.createElement(fo,{ref:t}))}));go.displayName="PageLayoutAside";const vo=i.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:o}=e,a=d(e,["compact","className","topAlert"]);return i.createElement(Nr,{compact:n,className:r,topAlert:o},i.createElement(go,Object.assign({ref:t},a)),i.createElement(Nr.Content,{renderContent:a.renderContent}))}));vo.displayName="AsideHeader";var yo,bo=n(59001);function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}const xo=function(e){return i.createElement("svg",wo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),yo||(yo=i.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},_o=(0,pe.cn)("kv-navigation");function Eo({isCompact:e,popupAnchor:t,user:n,children:r}){var o;const[a,s]=i.useState(!1),l=n?null!==(o=n.icon)&&void 0!==o?o:Yn:xo;return(0,oe.jsx)(Er,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:ve("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,oe.jsx)("div",{className:_o("ydb-user-wrapper"),children:r})})}var So=function(e){return e.UserSettings="UserSettings",e}(So||{});function Co(e){const t=(0,ue.W6)(),[n,r]=i.useState(),[o,a]=(0,u.iK)(Le.LQ);return(0,oe.jsx)(i.Fragment,{children:(0,oe.jsx)(vo,{logo:{text:"YDB",icon:St,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:o,onChangeCompact:a,className:_o(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:o})=>(0,oe.jsxs)(i.Fragment,{children:[(0,oe.jsx)(Er,{compact:t,item:{id:"documentation",title:ve("navigation-item.documentation"),icon:Qn.A,onItemClick:()=>{window.open("ru"===bo.f.readUserSettingsValue(Le.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,oe.jsx)(Er,{item:{id:"user-settings",title:ve("navigation-item.settings"),icon:Zn.A,current:n===So.UserSettings,onItemClick:()=>{r(n===So.UserSettings?void 0:So.UserSettings)}},compact:t}),(0,oe.jsx)(Eo,{isCompact:t,popupAnchor:o,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===So.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}const ko=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function({children:e}){return(0,oe.jsx)(i.Fragment,{children:e})})).register("AsideNavigation",Co).register("ErrorBoundary",s.lQ);function Oo({store:e,history:t,componentsRegistry:n=ko,children:r}){return(0,oe.jsx)(o.vd,{children:(0,oe.jsx)(a.Kq,{store:e,children:(0,oe.jsx)(ue.Ix,{history:t,children:(0,oe.jsx)(Kn.QueryParamProvider,{adapter:Gn,children:(0,oe.jsx)(No,{children:(0,oe.jsx)(l.I,{registry:n,children:(0,oe.jsx)(Vn.Kq,{children:r})})})})})})})}function No({children:e}){const[t]=(0,u.iK)(Le.k4);return(0,oe.jsx)(Wn.N,{theme:t,children:e})}const To=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:i=lt({singleClusterMode:n})}){return(0,oe.jsxs)(Oo,{store:e,history:t,children:[(0,oe.jsx)(o.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,oe.jsx)(Hn,{children:(0,oe.jsx)(we,{userSettings:i,children:(0,oe.jsxs)(s.tH,{children:[(0,oe.jsx)(Fn,{singleClusterMode:n,children:r}),(0,oe.jsx)("div",{id:"fullscreen-root"})]})})}),(0,oe.jsx)(Ie,{})]})}));function Ao({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Po(e);if(a){var i,o;const e=null!==(i=a.host)&&void 0!==i?i:"cluster",s=null!==(o=a.slot)&&void 0!==o?o:"static",l=a.cluster_name||r||"",c=new URL(a.monitoring_url);if(!c.search){const e="Serverless"===n?a.serverless_dashboard:a.dedicated_dashboard;c.pathname+=`/${e}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",e),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",t),c.toString()}}catch{}return""}function Io(e,t){try{const n=Po(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",i=new URL(n.monitoring_url);return!i.search&&e&&(i.pathname+=`/${e}/view`),i.searchParams.has("p.cluster")||i.searchParams.set("p.cluster",r),i.searchParams.set("p.database","-"),i.toString()}}catch{}return""}function Po(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ro=n(96873),Do=n(40537),jo=n(88655),Mo=n(69446),Lo=n(77630),zo=n(39567);const Fo=(0,pe.cn)("extended-cluster"),Bo=e=>{const t=(0,Mo.Zd)(e);return{label:"Balancer",value:(0,oe.jsxs)("div",{className:Fo("balancer"),children:[t,(0,oe.jsx)(Ro.b,{text:t,size:"s",className:Fo("clipboard-button")})]})}},Uo=(e,t,n,r)=>{const i={};if(t&&r){const n=r(t,e);n&&(i.links=[{title:"Monitoring",url:n}])}return n&&(i.info=[Bo(n)]),i},qo=(e=[])=>({getVersionToColorMap:()=>(0,Do.Vm)((0,Do.HD)(e))}),$o=(e,t,n,r,i)=>{const o={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Mo.PG)(n);if(e)return"string"===typeof e?(0,Lo.De)(e,n):null!==(t=(0,Lo.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&i&&(o.getMonitoringLink=(n,r)=>n&&r?i({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),o};function Ho({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const r=function(){const[e]=(0,Kn.useQueryParam)("clusterName",Kn.StringParam),{data:t}=zo.ub.useGetClustersListQuery(void 0);return i.useMemo((()=>{const n=(t||[]).find((t=>t.name===e));return null===n||void 0===n?void 0:n.versions}),[t,e])}(),o=(0,jo.E)(),{name:a,balancer:s,monitoring:l}=(0,Xt.Zd)(),[c]=(0,u.iK)(Le.s2);return(0,oe.jsx)("div",{className:Fo(),children:(0,oe.jsx)(e,{additionalClusterProps:Uo(a,l,s,n),additionalVersionsProps:qo(r),additionalTenantsProps:$o(a,l,s,c,t),additionalNodesProps:o})})}function Vo({component:e,getMonitoringLink:t}){const{monitoring:n}=(0,Xt.Zd)(),r=(0,jo.E)(),i={getMonitoringLink:(e,r)=>n&&e&&r&&t?t({monitoring:n,dbName:e,dbType:r}):null};return(0,oe.jsx)(e,{additionalTenantProps:i,additionalNodesProps:r})}function Wo({store:e,history:t,getMonitoringLink:n=Ao,getMonitoringClusterLink:r=Io,userSettings:i,children:o}){return(0,oe.jsxs)(To,{store:e,history:t,userSettings:i,children:[(0,oe.jsx)(En,{children:({component:e})=>(0,oe.jsx)(Ho,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,oe.jsx)(Sn,{children:({component:e})=>(0,oe.jsx)(Vo,{component:e,getMonitoringLink:n})}),o]})}var Ko=n(58351),Go=n(28197),Yo=n(88610),Qo=n(59625),Zo=n(42566)},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>i})},26180:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e){return r(e,i(e))}},26237:(e,t,n)=>{const r=n(22750),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<<r.getBCHDigit(o)-i;return 21522^(n<<10|o)}},26905:(e,t,n)=>{var r=n(935),i=n(37815),o=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},27145:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.836 6 .76-2.027L9.336 2H5.5a.72.72 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835m2.727-3 .235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10z",clipRule:"evenodd"}))},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=new Map;function i(e){!e||r.has(e)}},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},28197:(e,t,n)=>{"use strict";n.d(t,{i:()=>gr});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});var i=n(58671),o=n.n(i);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=d("Date"),_=d("File"),E=d("Blob"),S=d("FileList"),C=d("URLSearchParams"),[k,O,N,T]=["ReadableStream","Request","Response","Headers"].map(d);function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,R=e=>!h(e)&&e!==P;const D=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",q={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const $=d("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),P.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(P.postMessage)),V="undefined"!==typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!==typeof process&&process.nextTick||H,W={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:k,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:x,isFile:_,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:C,isTypedArray:D,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=R(this)&&this||{},n={},r=(r,i)=>{const o=t&&I(n,i)||i;w(n[o])&&w(r)?n[o]=e(n[o],r):w(r)?n[o]=e({},r):p(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&A(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(A(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:P,isContextDefined:R,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=p(e)?[]:{};return A(e,((e,t)=>{const o=n(e,r+1);!h(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:V};function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const G=K.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(K,Y),Object.defineProperty(G,"isAxiosError",{value:!0}),K.from=(e,t,n,r,i,o)=>{const a=Object.create(G);return W.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Q=K;function Z(e){return W.isPlainObject(e)||W.isArray(e)}function J(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ee=W.toFlatObject(W,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!W.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!s&&W.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(Z)}(e)||(W.isFileList(e)||W.endsWith(n,"[]"))&&(s=W.toArray(e)))return n=J(n),s.forEach((function(e,r){!W.isUndefined(e)&&null!==e&&t.append(!0===a?X([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!Z(e)||(t.append(X(i,n,o),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Z});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!W.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),W.forEach(n,(function(n,o){!0===(!(W.isUndefined(n)||null===n)&&i.call(t,n,W.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ie=re.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const oe=re;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae;W.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):W.isURLSearchParams(t)?t.toString():new oe(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!==typeof window&&"undefined"!==typeof document,fe="object"===typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),he="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,me=de&&window.location.href||"http://localhost",ge={...r,...ue};const ve=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&W.isArray(r)?r.length:o,s)return W.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&W.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&W.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,((e,r)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=W.isObject(e);i&&W.isHTMLForm(e)&&(e=new FormData(e));if(W.isFormData(e))return r?JSON.stringify(ve(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ge.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=W.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw Q.from(i,Q.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));const be=ye,we=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function _e(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:W.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,i){return W.isFunction(r)?r.call(this,t,n):(i&&(t=n),W.isString(t)?W.isString(r)?-1!==t.indexOf(r):W.isRegExp(r)?r.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=_e(t);if(!i)throw new Error("header name must be a non-empty string");const o=W.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ee(e))}const o=(e,t)=>W.forEach(e,((e,n)=>i(e,n,t)));if(W.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(W.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=_e(e)){const n=W.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_e(e)){const n=W.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=_e(e)){const i=W.findKey(n,e);!i||t&&!Se(0,n[i],i,t)||(delete n[i],r=!0)}}return W.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Se(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return W.forEach(this,((r,i)=>{const o=W.findKey(n,i);if(o)return t[o]=Ee(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ee(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=_e(e);t[r]||(!function(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Ce.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),W.freezeMethods(Ce);const ke=Ce;function Oe(e,t){const n=this||be,r=t||n,i=ke.from(r.headers);let o=r.data;return W.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Ne(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Te,Q,{__CANCEL__:!0});const Ae=Te;function Ie(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Re=function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]},De=(e,t,n=3)=>{let r=0;const i=Pe(50,250);return Re((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Me=e=>(...t)=>W.asap((()=>e(...t))),Le=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,ze=ge.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof ke?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function i(e,t,n,i){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!W.isUndefined(t))return r(void 0,t)}function a(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Be(e),Be(t),0,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);W.isUndefined(a)&&o!==s||(n[r]=a)})),n}const qe=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ke.from(s),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(r))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(i&&W.isFunction(i)&&(i=i(t)),i||!1!==i&&Le(t.url))){const e=o&&a&&ze.read(a);e&&s.set(o,e)}return t},$e="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=qe(e);let i=r.data;const o=ke.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ke.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ie((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,i.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&W.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),W.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=De(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=De(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ae(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ge.protocols.indexOf(v)?n(new Q("Unsupported protocol "+v+":",Q.ERR_BAD_REQUEST,e)):m.send(i||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new Ae(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>W.asap(a),s}},Ve=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of We(e))yield*Ve(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Qe=Ge&&("function"===typeof TextEncoder?(Ze=new TextEncoder,e=>Ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ze;const Je=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Xe=Ye&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Je((()=>W.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ge&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=W.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await Qe(e)).byteLength:void 0)})(t):n},it={http:null,xhr:$e,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=qe(e);c=c?(c+"").toLowerCase():"text";let p,h=He([i,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(g=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(W.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=je(g,De(Me(l)));r=Ke(n.body,65536,e,t)}}W.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(p);const a=et&&("stream"===c||"response"===c);if(et&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=W.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&je(t,De(Me(s),!0))||[];o=new Response(Ke(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await tt[W.findKey(tt,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ie(t,n,{data:v,headers:ke.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,p),{cause:v.cause||v});throw Q.from(v,v&&v.code,e,p)}})};W.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const ot=e=>`- ${e}`,at=e=>W.isFunction(e)||null===e||!1===e,st=e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!at(n)&&(r=it[(t=String(n)).toLowerCase()],void 0===r))throw new Q(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ot).join("\n"):" "+ot(e[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function ct(e){lt(e),e.headers=ke.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return st(e.adapter||be.adapter)(e).then((function(t){return lt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=ke.from(t.headers),t}),(function(t){return Ne(t)||(lt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=ke.from(t.response.headers))),Promise.reject(t)}))}const ut="1.7.9",dt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};dt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Q(r(i," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!ft[i]&&(ft[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},dt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const pt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Q("option "+o+" must be "+n,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:dt},ht=pt.validators;class mt{constructor(e){this.defaults=e,this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&pt.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(W.isFunction(r)?t.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),pt.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&W.merge(i.common,i[t.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=ke.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ct.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ct.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return se(Fe((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(e){mt.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),W.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ue(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mt.prototype[e]=t(),mt.prototype[e+"Form"]=t(!0)}));const gt=mt;class vt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Ae(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vt((function(t){e=t})),cancel:e}}}const yt=vt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const wt=bt;const xt=function e(t){const n=new gt(t),r=a(gt.prototype.request,n);return W.extend(r,gt.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ue(t,n))},r}(be);xt.Axios=gt,xt.CanceledError=Ae,xt.CancelToken=yt,xt.isCancel=Ne,xt.VERSION=ut,xt.toFormData=te,xt.AxiosError=Q,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Ue,xt.AxiosHeaders=ke,xt.formToJSON=e=>ve(W.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=st,xt.HttpStatusCode=wt,xt.default=xt;const _t=xt,{Axios:Et,AxiosError:St,CanceledError:Ct,isCancel:kt,CancelToken:Ot,VERSION:Nt,all:Tt,Cancel:At,isAxiosError:It,spread:Pt,toFormData:Rt,AxiosHeaders:Dt,HttpStatusCode:jt,formToJSON:Mt,getAdapter:Lt,mergeConfig:zt}=_t;class Ft{constructor(e={}){this.setApiEndpoint=(e="")=>{let t=e;"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),this.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post[this.csrfHeaderName]=e,this._axios.defaults.headers.put[this.csrfHeaderName]=e,this._axios.defaults.headers.delete[this.csrfHeaderName]=e},this.setDefaultHeader=({name:e,value:t,methods:n})=>{const r=this._axios.defaults.headers;Array.isArray(n)?n.forEach((n=>{const i=r[n];i&&i instanceof Dt&&(i[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={},csrfHeaderName:i="X-CSRF-Token"}=e,a=Object.assign({xsrfCookieName:"",timeout:Ft.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=_t.create(a),this._axios.defaults.headers=o()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]},this.csrfHeaderName=i}collectRequest({method:e,url:t,data:n,requestStart:r,response:i,responseError:o,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=i&&i.request||{},f=a&&o instanceof Error?o.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:i&&i.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:i&&i.data&&JSON.stringify(i.data,null,2)||f,isError:a,isCancelled:s};l&&a&&(this.collector.errors=[...this.collector.errors,p].slice(-l)),c&&(this.collector.requests=[...this.collector.requests,p].slice(-c))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:i,options:o={},retries:a=0}=e,s=o.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=o;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:i,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(_t.isCancel(m))throw{isCancelled:!0,error:m};let t;return t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:_t.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}finally{this.clearRequestToken(l)}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t,n={}){return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n,r={}){return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n,r={}){return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n,r={}){return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n,r={}){return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t,n={}){return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=_t.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Ft.DEFAULT_TIMEOUT=6e4;var Bt=n(70911);const Ut="axios-retry";function qt(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Bt(e)))}const $t=["get","head","options"],Ht=$t.concat(["put","delete"]);function Vt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Wt(e){return!!e.config?.method&&(Vt(e)&&-1!==Ht.indexOf(e.config.method))}function Kt(e){return qt(e)||Wt(e)}function Gt(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Yt={retries:3,retryCondition:Kt,retryDelay:function(e=0,t=void 0){return Math.max(0,Gt(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Qt(e,t,n=!1){const r=function(e,t){return{...Yt,...t,...e[Ut]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[Ut]=r,r}const Zt=(e,t)=>{const n=e.interceptors.request.use((e=>(Qt(e,t,!0),e[Ut]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const i=Qt(r,t);return n.response&&i.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,i=(e.retryCount||0)<n&&r(t);if("object"===typeof i)try{return!1!==await i}catch(o){return!1}return i}(i,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:a}=t,s=i(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!o&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,i=r.timeout-e-s;if(i<=0)return Promise.reject(n);r.timeout=i}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(i),t(e(r))},i=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,i,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(i,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Zt.isNetworkError=qt,Zt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==$t.indexOf(e.config.method))},Zt.isIdempotentRequestError=Wt,Zt.isNetworkOrIdempotentRequestError=Kt,Zt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,i=Math.max(r,Gt(t));return i+.2*i*Math.random()},Zt.linearDelay=function(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,Gt(n))}},Zt.isRetryableError=Vt;const Jt=Zt;var Xt=n(58351),en=n(76086),tn=n(81288),nn=n(59001);class rn extends Ft{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=0,Jt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Jt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return nn.f.readUserSettingsValue(en.U0)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){const t=e.response;return(0,tn.uP)(t)&&window.location.assign(t.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==Xt.Hs&&void 0!==Xt.Hs?Xt.Hs:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}}class on extends rn{authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}}const an={Ide:"ydb",IdeVersion:"1",PluginFamily:"ydb",PluginVersion:"0.2"};class sn extends rn{getPath(e){return`${null!==Xt.p2&&void 0!==Xt.p2?Xt.p2:""}${e}`}async getCodeAssistSuggestions(e){const t=e.map((e=>{const t=e.cursorPosition.lineNumber,n=e.cursorPosition.column;return{Fragments:e.fragments.map((e=>{let r=e.text;const i=e.end.lineNumber<t||e.end.lineNumber===t&&e.end.column<=n,o=e.start.lineNumber>t||e.start.lineNumber===t&&e.start.column>n;return i?r=r.slice(-8e3):o&&(r=r.slice(0,1e3)),{Text:r,Start:{Ln:e.start.lineNumber,Col:e.start.column},End:{Ln:e.end.lineNumber,Col:e.end.column}}})),Cursor:{Ln:t,Col:n},Path:`${e.path}.yql`}}));const n=await this.post(this.getPath("/code-assist-suggestion"),{Files:t,ContextCreateType:1,IdeInfo:an},null,{concurrentId:"code-assist-suggestion",collectRequest:!1});return{items:n.Suggests.map((e=>e.Text)),requestId:n.RequestId}}sendCodeAssistTelemetry(e){return this.post("/code-assist-telemetry",e,null,{concurrentId:"code-assist-telemetry",collectRequest:!0})}sendCodeAssistOpenTabs(e){return this.post("/code-assist-telemetry",{OpenTabs:{Tabs:(t=e,t.map((e=>{const t=e.Text;return t.length>1e4?{...e,Text:t.slice(0,1e4)}:e}))),IdeInfo:an}},null,{concurrentId:"code-assist-telemetry",collectRequest:!1});var t}}const ln=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class cn extends rn{getPath(e){return`${null!==Xt.In&&void 0!==Xt.In?Xt.In:""}${e}`}getClustersList(e,{signal:t}={}){return this.get(this.getPath("/meta/clusters"),null,{requestConfig:{signal:t}})}getTenants(e,{signal:t}={}){return this.get(this.getPath("/meta/cp_databases"),{cluster_name:e},{requestConfig:{signal:t}}).then(ln)}getClusterBaseInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/meta/db_clusters"),{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}class un extends rn{getOperationList(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}}var dn=n(31684);class fn extends rn{restartPDisk({nodeId:e,pDiskId:t,force:n}){return this.post(this.getPath("/pdisk/restart"),{},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus({nodeId:e,pDiskId:t,force:n,decommissionStatus:r}){return this.post(this.getPath("/pdisk/status"),{decommit_status:r},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}getPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/pdisk/info"),{node_id:e,pdisk_id:t},{concurrentId:n,requestConfig:{signal:r}})}restartPDiskOld({nodeId:e,pDiskId:t}){const n=(0,dn.ar)({nodeId:e,pDiskId:t,host:this.getPath("")});return this.post(n,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}class pn extends rn{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class hn extends rn{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:i,...o},{concurrentId:a,signal:s}={}){const l=Array.isArray(e)?this.prepareArrayRequestParam(e):e,c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r;return this.get(this.getPath("/storage/groups"),{node_id:l,pdisk_id:c,group_id:u,fields_required:d,filter:i||void 0,timeout:2e4,...o},{concurrentId:a,requestConfig:{signal:s}})}}function mn(e,t=";"){let n,r=";"===t?/(?:^|;)\s*([^=;\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^;]|\\\;)+))?)?/g:/(?:^|,)\s*([^=,\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^,]|\\\,)+))?)?/g,i=[];for(;null!==(n=r.exec(e));){let e,t=n[1].trim();n[2]&&(e=(n[3]||n[4]||"").replace(/\\(.)/g,"$1").trim()),i.push([t,e])}return i}function gn(e){return e.includes('"')||e.includes(";")||e.includes(" ")?`"${e.replace(/"/g,'\\"')}"`:e}function vn(e){return null!=e&&"function"===typeof e[Symbol.iterator]}function yn(e){return e instanceof Date&&!isNaN(e.getTime())}function bn(e){return"*"===e||/^(W\/)?".*"$/.test(e)?e:`"${e}"`}var wn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get mediaTypes(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("/");for(let[r,i]of this){let[e,o]=r.split("/");if((e===t||"*"===e||"*"===t)&&(o===n||"*"===o||"*"===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},xn=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get encodings(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return"identity"===e.toLowerCase()||this.getWeight(e)>0}getWeight(e){let t=e.toLowerCase();for(let[n,r]of this)if(n===t||"*"===n||"*"===t)return r;return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},_n=class{#e;constructor(e){if(this.#e=new Map,e){if("string"===typeof e)for(let t of e.split(/\s*,\s*/)){let e=mn(t);if(e.length<1)continue;let n=e[0][0],r=1;for(let t=1;t<e.length;t++){let[n,i]=e[t];if("q"===n){r=Number(i);break}}this.#e.set(n.toLowerCase(),r)}else if(vn(e))for(let t of e)Array.isArray(t)?this.#e.set(t[0].toLowerCase(),t[1]):this.#e.set(t.toLowerCase(),1);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t.toLowerCase(),e[t]);this.#t()}}#t(){this.#e=new Map([...this.#e].sort(((e,t)=>t[1]-e[1])))}get languages(){return Array.from(this.#e.keys())}get weights(){return Array.from(this.#e.values())}get size(){return this.#e.size}accepts(e){return this.getWeight(e)>0}getWeight(e){let[t,n]=e.toLowerCase().split("-");for(let[r,i]of this){let[e,o]=r.split("-");if((e===t||"*"===e||"*"===t)&&(o===n||void 0===o||void 0===n))return i}return 0}getPreferred(e){let t=e.map((e=>[e,this.getWeight(e)])).sort(((e,t)=>t[1]-e[1]))[0];return void 0!==t&&t[1]>0?t[0]:null}get(e){return this.#e.get(e.toLowerCase())??null}set(e,t=1){this.#e.set(e.toLowerCase(),t),this.#t()}delete(e){this.#e.delete(e.toLowerCase())}has(e){return this.#e.has(e.toLowerCase())}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}${1===n?"":`;q=${n}`}`);return e.join(",")}},En=class{maxAge;maxStale;minFresh;sMaxage;noCache;noStore;noTransform;onlyIfCached;mustRevalidate;proxyRevalidate;mustUnderstand;private;public;immutable;staleWhileRevalidate;staleIfError;constructor(e){if(e)if("string"===typeof e){let t=mn(e,",");if(t.length>0)for(let[e,n]of t)switch(e){case"max-age":this.maxAge=Number(n);break;case"max-stale":this.maxStale=Number(n);break;case"min-fresh":this.minFresh=Number(n);break;case"s-maxage":this.sMaxage=Number(n);break;case"no-cache":this.noCache=!0;break;case"no-store":this.noStore=!0;break;case"no-transform":this.noTransform=!0;break;case"only-if-cached":this.onlyIfCached=!0;break;case"must-revalidate":this.mustRevalidate=!0;break;case"proxy-revalidate":this.proxyRevalidate=!0;break;case"must-understand":this.mustUnderstand=!0;break;case"private":this.private=!0;break;case"public":this.public=!0;break;case"immutable":this.immutable=!0;break;case"stale-while-revalidate":this.staleWhileRevalidate=Number(n);break;case"stale-if-error":this.staleIfError=Number(n)}}else this.maxAge=e.maxAge,this.maxStale=e.maxStale,this.minFresh=e.minFresh,this.sMaxage=e.sMaxage,this.noCache=e.noCache,this.noStore=e.noStore,this.noTransform=e.noTransform,this.onlyIfCached=e.onlyIfCached,this.mustRevalidate=e.mustRevalidate,this.proxyRevalidate=e.proxyRevalidate,this.mustUnderstand=e.mustUnderstand,this.private=e.private,this.public=e.public,this.immutable=e.immutable,this.staleWhileRevalidate=e.staleWhileRevalidate,this.staleIfError=e.staleIfError}toString(){let e=[];return this.public&&e.push("public"),this.private&&e.push("private"),"number"===typeof this.maxAge&&e.push(`max-age=${this.maxAge}`),"number"===typeof this.sMaxage&&e.push(`s-maxage=${this.sMaxage}`),this.noCache&&e.push("no-cache"),this.noStore&&e.push("no-store"),this.noTransform&&e.push("no-transform"),this.onlyIfCached&&e.push("only-if-cached"),this.mustRevalidate&&e.push("must-revalidate"),this.proxyRevalidate&&e.push("proxy-revalidate"),this.mustUnderstand&&e.push("must-understand"),this.immutable&&e.push("immutable"),"number"===typeof this.staleWhileRevalidate&&e.push(`stale-while-revalidate=${this.staleWhileRevalidate}`),"number"===typeof this.staleIfError&&e.push(`stale-if-error=${this.staleIfError}`),"number"===typeof this.maxStale&&e.push(`max-stale=${this.maxStale}`),"number"===typeof this.minFresh&&e.push(`min-fresh=${this.minFresh}`),e.join(", ")}},Sn=class{filename;filenameSplat;name;type;constructor(e){if(e)if("string"===typeof e){let t=mn(e);if(t.length>0){this.type=t[0][0];for(let[e,n]of t.slice(1))"filename"===e?this.filename=n:"filename*"===e?this.filenameSplat=n:"name"===e&&(this.name=n)}}else this.filename=e.filename,this.filenameSplat=e.filenameSplat,this.name=e.name,this.type=e.type}get preferredFilename(){let e=this.filenameSplat;if(e){let t=function(e){let t=e.match(/^([\w-]+)'([^']*)'(.+)$/);if(!t)return null;let[,n,,r]=t,i=function(e){return e.replace(/\+/g," ").replace(/%([0-9A-Fa-f]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}(r);try{let e=new TextDecoder(n),t=new Uint8Array(i.split("").map((e=>e.charCodeAt(0))));return e.decode(t)}catch(o){return console.warn(`Failed to decode filename from charset ${n}:`,o),i}}(e);if(t)return t}return this.filename}toString(){if(!this.type)return"";let e=[this.type];return this.name&&e.push(`name=${gn(this.name)}`),this.filename&&e.push(`filename=${gn(this.filename)}`),this.filenameSplat&&e.push(`filename*=${gn(this.filenameSplat)}`),e.join("; ")}};var Cn=class{boundary;charset;mediaType;constructor(e){if(e)if("string"===typeof e){let t=mn(e);if(t.length>0){this.mediaType=t[0][0];for(let[e,n]of t.slice(1))"boundary"===e?this.boundary=n:"charset"===e&&(this.charset=n)}}else this.boundary=e.boundary,this.charset=e.charset,this.mediaType=e.mediaType}toString(){if(!this.mediaType)return"";let e=[this.mediaType];return this.charset&&e.push(`charset=${gn(this.charset)}`),this.boundary&&e.push(`boundary=${gn(this.boundary)}`),e.join("; ")}},kn=class{#e;constructor(e){if(this.#e=new Map,e)if("string"===typeof e){let t=mn(e);for(let[e,n]of t)this.#e.set(e,n??"")}else if(vn(e))for(let[t,n]of e)this.#e.set(t,n);else for(let t of Object.getOwnPropertyNames(e))this.#e.set(t,e[t])}get names(){return Array.from(this.#e.keys())}get values(){return Array.from(this.#e.values())}get size(){return this.#e.size}get(e){return this.#e.get(e)??null}set(e,t){this.#e.set(e,t)}delete(e){this.#e.delete(e)}has(e){return this.#e.has(e)}clear(){this.#e.clear()}entries(){return this.#e.entries()}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,n,r,this)}toString(){let e=[];for(let[t,n]of this.#e)e.push(`${t}=${gn(n)}`);return e.join("; ")}},On=class{tags=[];constructor(e){e&&("string"===typeof e?this.tags.push(...e.split(/\s*,\s*/).map(bn)):Array.isArray(e)?this.tags.push(...e.map(bn)):this.tags.push(...e.tags.map(bn)))}has(e){return this.tags.includes(bn(e))}matches(e){return this.has(e)||this.tags.includes("*")}toString(){return this.tags.join(", ")}},Nn=class{domain;expires;httpOnly;maxAge;name;path;sameSite;secure;value;constructor(e){if(e)if("string"===typeof e){let n=mn(e);if(n.length>0){this.name=n[0][0],this.value=n[0][1];for(let[e,r]of n.slice(1))switch(e.toLowerCase()){case"domain":this.domain=r;break;case"expires":if("string"===typeof r){let e=new Date(r);yn(e)&&(this.expires=e)}break;case"httponly":this.httpOnly=!0;break;case"max-age":if("string"===typeof r){let e=parseInt(r,10);isNaN(e)||(this.maxAge=e)}break;case"path":this.path=r;break;case"samesite":"string"===typeof r&&/strict|lax|none/i.test(r)&&(this.sameSite=(t=r).charAt(0).toUpperCase()+t.slice(1).toLowerCase());break;case"secure":this.secure=!0}}}else this.domain=e.domain,this.expires=e.expires,this.httpOnly=e.httpOnly,this.maxAge=e.maxAge,this.name=e.name,this.path=e.path,this.sameSite=e.sameSite,this.secure=e.secure,this.value=e.value;var t}toString(){if(!this.name)return"";let e=[`${this.name}=${gn(this.value||"")}`];return this.domain&&e.push(`Domain=${this.domain}`),this.path&&e.push(`Path=${this.path}`),this.expires&&e.push(`Expires=${this.expires.toUTCString()}`),this.maxAge&&e.push(`Max-Age=${this.maxAge}`),this.secure&&e.push("Secure"),this.httpOnly&&e.push("HttpOnly"),this.sameSite&&e.push(`SameSite=${this.sameSite}`),e.join("; ")}},Tn={ct:"CT",etag:"ETag",te:"TE",www:"WWW",x:"X",xss:"XSS"};var An="accept",In="accept-encoding",Pn="accept-language",Rn="accept-ranges",Dn="cache-control",jn="connection",Mn="content-disposition",Ln="content-encoding",zn="content-language",Fn="content-length",Bn="content-type",Un="cookie",qn="date",$n="etag",Hn="expires",Vn="host",Wn="if-modified-since",Kn="if-none-match",Gn="if-unmodified-since",Yn="last-modified",Qn="location",Zn="referer",Jn="set-cookie",Xn=class e extends Headers{#e;#n=[];constructor(t){if(super(),this.#e=new Map,t)if("string"===typeof t){let e=t.split("\r\n");for(let t of e){let e=t.match(/^([^:]+):(.*)/);e&&this.append(e[1].trim(),e[2].trim())}}else if(vn(t))for(let[e,n]of t)this.append(e,n);else if("object"===typeof t)for(let n of Object.getOwnPropertyNames(t)){let r=t[n],i=Object.getOwnPropertyDescriptor(e.prototype,n);i?.set?i.set.call(this,r):this.set(n,r.toString())}}append(e,t){let n=e.toLowerCase();if(n===Jn)this.#n.push(t);else{let e=this.#e.get(n);this.#e.set(n,e?`${e}, ${t}`:t)}}delete(e){let t=e.toLowerCase();t===Jn?this.#n=[]:this.#e.delete(t)}get(e){let t=e.toLowerCase();if(t===Jn)return this.getSetCookie().join(", ");{let e=this.#e.get(t);if("string"===typeof e)return e;if(null!=e){let t=e.toString();return""===t?null:t}return null}}getSetCookie(){return this.#n.map((e=>"string"===typeof e?e:e.toString()))}has(e){let t=e.toLowerCase();return t===Jn?this.#n.length>0:null!=this.get(t)}set(e,t){let n=e.toLowerCase();n===Jn?this.#n=[t]:this.#e.set(n,t)}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*entries(){for(let[e]of this.#e){let t=this.get(e);t&&(yield[e,t])}for(let e of this.getSetCookie())yield[Jn,e]}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}toString(){let e=[];for(let[n,r]of this)e.push(`${t=n,t.toLowerCase().split("-").map((e=>Tn[e]||e.charAt(0).toUpperCase()+e.slice(1))).join("-")}: ${r}`);var t;return e.join("\r\n")}get accept(){return this.#r(An,wn)}set accept(e){this.#i(An,wn,e)}get acceptEncoding(){return this.#r(In,xn)}set acceptEncoding(e){this.#i(In,xn,e)}get acceptLanguage(){return this.#r(Pn,_n)}set acceptLanguage(e){this.#i(Pn,_n,e)}get acceptRanges(){return this.#o(Rn)}set acceptRanges(e){this.#a(Rn,e)}get age(){return this.#s("age")}set age(e){this.#l("age",e)}get cacheControl(){return this.#r(Dn,En)}set cacheControl(e){this.#i(Dn,En,e)}get connection(){return this.#o(jn)}set connection(e){this.#a(jn,e)}get contentDisposition(){return this.#r(Mn,Sn)}set contentDisposition(e){this.#i(Mn,Sn,e)}get contentEncoding(){return this.#o(Ln)}set contentEncoding(e){this.#a(Ln,Array.isArray(e)?e.join(", "):e)}get contentLanguage(){return this.#o(zn)}set contentLanguage(e){this.#a(zn,Array.isArray(e)?e.join(", "):e)}get contentLength(){return this.#s(Fn)}set contentLength(e){this.#l(Fn,e)}get contentType(){return this.#r(Bn,Cn)}set contentType(e){this.#i(Bn,Cn,e)}get cookie(){return this.#r(Un,kn)}set cookie(e){this.#i(Un,kn,e)}get date(){return this.#c(qn)}set date(e){this.#u(qn,e)}get etag(){return this.#o($n)}set etag(e){this.#a($n,"string"===typeof e?bn(e):e)}get expires(){return this.#c(Hn)}set expires(e){this.#u(Hn,e)}get host(){return this.#o(Vn)}set host(e){this.#a(Vn,e)}get ifModifiedSince(){return this.#c(Wn)}set ifModifiedSince(e){this.#u(Wn,e)}get ifNoneMatch(){return this.#r(Kn,On)}set ifNoneMatch(e){this.#i(Kn,On,e)}get ifUnmodifiedSince(){return this.#c(Gn)}set ifUnmodifiedSince(e){this.#u(Gn,e)}get lastModified(){return this.#c(Yn)}set lastModified(e){this.#u(Yn,e)}get location(){return this.#o(Qn)}set location(e){this.#a(Qn,e)}get referer(){return this.#o(Zn)}set referer(e){this.#a(Zn,e)}get setCookie(){let e=this.#n;for(let t=0;t<e.length;++t)"string"===typeof e[t]&&(e[t]=new Nn(e[t]));return e}set setCookie(e){this.#n=null!=e?(Array.isArray(e)?e:[e]).map((e=>"string"===typeof e?e:new Nn(e))):[]}#r(e,t){let n=this.#e.get(e);if(void 0!==n){if("string"===typeof n){let r=new t(n);return this.#e.set(e,r),r}return n}let r=new t;return this.#e.set(e,r),r}#i(e,t,n){null!=n?this.#e.set(e,"string"===typeof n?n:new t(n)):this.#e.delete(e)}#c(e){let t=this.#e.get(e);return void 0===t?null:new Date(t)}#u(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:("number"===typeof t?new Date(t):t).toUTCString()):this.#e.delete(e)}#s(e){let t=this.#e.get(e);return void 0===t?null:parseInt(t,10)}#l(e,t){null!=t?this.#e.set(e,"string"===typeof t?t:t.toString()):this.#e.delete(e)}#o(e){let t=this.#e.get(e);return void 0===t?null:t}#a(e,t){null!=t?this.#e.set(e,t):this.#e.delete(e)}};async function*er(e){let t=e.getReader();for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}function tr(e){let t,n=(new TextEncoder).encode(e);if(!("Buffer"in globalThis)||"Bun"in globalThis||"Deno"in globalThis){let e=n.length-1,r=new Uint8Array(256).fill(n.length);for(let t=0;t<e;++t)r[n[t]]=e-t;t=(t,i=0)=>{let o=t.length,a=i+e;for(;a<o;){for(let r=e,i=a;r>=0&&t[i]===n[r];--r,--i)if(0===r)return i;a+=r[t[a]]}return-1}}else t=(e,t=0)=>Buffer.prototype.indexOf.call(e,n,t);return t}var nr=class extends Error{constructor(e){super(e),this.name="MultipartParseError"}},rr=class extends nr{constructor(e){super(`Multipart header size exceeds maximum allowed size of ${e} bytes`),this.name="MaxHeaderSizeExceededError"}},ir=class extends nr{constructor(e){super(`File size exceeds maximum allowed size of ${e} bytes`),this.name="MaxFileSizeExceededError"}};async function or(e,t,n){let r=new sr(t.boundary,{maxHeaderSize:t.maxHeaderSize,maxFileSize:t.maxFileSize});await r.parse(e,n)}var ar=tr("\r\n\r\n"),sr=class{boundary;maxHeaderSize;maxFileSize;#d;#f;#p;#h;#m;#g=0;#v=null;#y=null;#b=0;constructor(e,t){this.boundary=e,this.maxHeaderSize=t?.maxHeaderSize??8192,this.maxFileSize=t?.maxFileSize??1/0,this.#d=tr(`--${e}`),this.#f=2+e.length,this.#p=tr(`\r\n--${e}`),this.#h=function(e){let t=(new TextEncoder).encode(e),n={};for(let r=0;r<t.length;++r){let e=t[r];void 0===n[e]&&(n[e]=[]),n[e].push(r)}return function(e){let r=e.length-1;if(e[r]in n){let i=n[e[r]];for(let n=i.length-1;n>=0;--n)for(let o=i[n],a=r;o>=0&&e[a]===t[o];--o,--a)if(0===o)return a}return-1}}(`\r\n--${e}`),this.#m=4+e.length}async parse(e,t){0!==this.#g&&this.#w();let n=[];function r(e){let r=t(e);var i;"object"===typeof(i=r)&&null!=i&&"function"===typeof i.then&&(n.push(r),r.catch((()=>{})))}if(e instanceof ReadableStream)for await(let o of er(e))this.#x(o,r);else if("object"===typeof(i=e)&&null!=i&&Symbol.asyncIterator in i)for await(let o of e)this.#x(o,r);else if(e instanceof Uint8Array)this.#x(e,r);else{if(!function(e){return"object"===typeof e&&null!=e&&Symbol.iterator in e}(e))throw new TypeError("Cannot parse multipart message; expected a stream or buffer");for(let t of e)this.#x(t,r)}var i;if(4!==this.#g)throw new nr("Unexpected end of stream");await Promise.all(n)}#w(){this.#g=0,this.#v=null,this.#y=null,this.#b=0}#x(e,t){if(4===this.#g)throw new nr("Unexpected data after end of stream");let n=0,r=e.length;if(null!==this.#v){let t=new Uint8Array(this.#v.length+r);t.set(this.#v,0),t.set(e,this.#v.length),r=(e=t).length,this.#v=null}for(;;){if(3===this.#g){if(r-n<this.#m){this.#v=e.subarray(n);break}let t=this.#p(e,n);if(-1===t){let t=this.#h(e);-1===t?this.#_(0===n?e:e.subarray(n)):(this.#_(e.subarray(n,t)),this.#v=e.subarray(t));break}this.#_(e.subarray(n,t)),this.#E(),n=t+this.#m,this.#g=1}if(1===this.#g){if(r-n<2){this.#v=e.subarray(n);break}if(45===e[n]&&45===e[n+1]){this.#g=4;break}n+=2,this.#g=2}if(2!==this.#g){if(0===this.#g){if(r<this.#f){this.#v=e;break}if(0!==this.#d(e))throw new nr("Invalid multipart stream: missing initial boundary");n=this.#f,this.#g=1}}else{if(r-n<4){this.#v=e.subarray(n);break}let i=ar(e,n);if(-1===i){if(r-n>this.maxHeaderSize)throw new rr(this.maxHeaderSize);this.#v=e.subarray(n);break}if(i-n>this.maxHeaderSize)throw new rr(this.maxHeaderSize);let o=e.subarray(n,i);t(new lr(o,new ReadableStream({start:e=>{this.#y=e,this.#b=0}}))),n=i+4,this.#g=3}}}#_(e){if(this.#b+e.length>this.maxFileSize){let e=new ir(this.maxFileSize);throw this.#y.error(e),e}this.#y.enqueue(e),this.#b+=e.length}#E(){this.#y.close(),this.#y=null}};var lr=class{#S;#C;#k;#O=!1;constructor(e,t){this.#S=e,this.#C=t}async arrayBuffer(){return(await this.bytes()).buffer}get body(){return this.#C}get bodyUsed(){return this.#O}async bytes(){if(this.#O)throw new Error("Body is already consumed or is being consumed");this.#O=!0;let e=[],t=0;for await(let i of er(this.#C))e.push(i),t+=i.length;let n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}get headers(){return this.#k||(this.#k=new Xn((new TextDecoder).decode(this.#S))),this.#k}get isFile(){return void 0!==this.filename||"application/octet-stream"===this.mediaType}get filename(){return this.headers.contentDisposition.preferredFilename}get mediaType(){return this.headers.contentType.mediaType}get name(){return this.headers.contentDisposition.name}async text(){return(new TextDecoder).decode(await this.bytes())}};var cr=n(74309),ur=n.n(cr),dr=n(80971);class fr extends rn{async streamQuery(e,t){var n;const r=!nn.f.readUserSettingsValue(en.RY,!0),i=ur().stringify({timeout:e.timeout,base64:r,schema:"multipart"},{encoder:encodeURIComponent}),o={...e,base64:r,schema:"multipart"},a=new Headers({Accept:"multipart/form-data","Content-Type":"application/json"});e.tracingLevel&&a.set("X-Trace-Verbosity",String(e.tracingLevel));nn.f.readUserSettingsValue(en.U0)&&a.set("X-Want-Trace","1");const s=await fetch(`${this.getPath("/viewer/query")}?${i}`,{method:"POST",signal:t.signal,headers:a,body:JSON.stringify(o)});if(!s.ok){const e=await s.json().catch((()=>({})));if((0,tn.uP)({status:s.status,data:e}))return void window.location.assign(e.authUrl);throw new Error(`${s.status}`)}if(!s.body)throw new Error("Empty response body");const l=null===(n=s.headers.get("traceresponse"))||void 0===n?void 0:n.split("-")[1];await or(s.body,{boundary:"boundary"},(async e=>{try{const n=JSON.parse(await e.text());if((0,dr.y6)(n)){n.meta.trace_id=l,t.onSessionChunk(n)}else(0,dr.uR)(n)?t.onStreamDataChunk(n):(0,dr.HH)(n)&&t.onQueryResponseChunk(n)}catch(n){throw new Error(`Error parsing chunk: ${n}`)}}))}}class pr extends rn{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:i}}},{},{headers:{Accept:"application/json"}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive({id:e,hiveId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/tablets/app"),{TabletID:t,page:"TabletInfo",tablet:e},{concurrentId:n,requestConfig:{signal:r}})}}class hr extends rn{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:i,force:o}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:i,force:o},{requestConfig:{"axios-retry":{retries:0}}})}}class mr extends rn{getClusterCapabilities({database:e}){return this.get(this.getPath("/viewer/capabilities"),{database:e},{})}getClusterInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getNodeInfo(e,{concurrentId:t,timeout:n,signal:r}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:r},timeout:n})}getTenants(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo({path:e,database:t=e},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{database:t,path:e,tablets:!1,storage:!0,memory:!0},{concurrentId:n,requestConfig:{signal:r}})}getNodes({type:e="any",tablets:t=!1,database:n,tenant:r,fieldsRequired:i,filter:o,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(i)?this.prepareArrayRequestParam(i):i;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:o||void 0,database:n||r,tenant:r||n,fields_required:c,...a},{concurrentId:s,requestConfig:{signal:l}})}getTabletsInfo({nodeId:e,path:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:i}})}getSchema({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:n,requestConfig:{signal:r}})}getDescribe({path:e,database:t,timeout:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${e}`,requestConfig:{signal:i},timeout:n})}getSchemaAcl({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/acl"),{database:t,path:e,merge_rules:!0},{concurrentId:n,requestConfig:{signal:r}})}getHeatmapData({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:n,requestConfig:{signal:r}})}getNetwork({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getTopic({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getConsumer({path:e,consumer:t,database:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:n,path:e,consumer:t},{concurrentId:r||"getConsumer",requestConfig:{signal:i}})}getTablet({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getTabletHistory({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getNodesList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e,{concurrentId:t,signal:n,withRetries:r}={}){const i=!nn.f.readUserSettingsValue(en.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:i},{schema:"multi",base64:i,timeout:e.timeout},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys({path:e,database:t,enableSampling:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:i}})}getTabletDescribe(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getStorageInfo({tenant:e,database:t,nodeId:n,groupId:r,pDiskId:i,filter:o,...a},{concurrentId:s,signal:l}={}){return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:t||e,tenant:e||t,node_id:n,group_id:r,pdisk_id:i,filter:o||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:i},{concurrentId:o,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${i}`),s,{},{concurrentId:o,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:a}})}whoami({database:e}){return this.get(this.getPath("/viewer/json/whoami"),{database:e})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}getClusterConfig(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getVDiskInfo({vDiskSlotId:e,pDiskId:t,nodeId:n},{concurrentId:r,signal:i}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:i}})}getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${e}${t?`;PDiskId=${t}`:""})`},{concurrentId:n,requestConfig:{signal:r}})}planToSvg({database:e,plan:t},{signal:n}={}){return this.post(this.getPath("/viewer/plan2svg"),t,{database:e},{requestConfig:{signal:n,responseType:"text",headers:{Accept:"image/svg+xml"}}})}getHealthcheckInfo({database:e,maxLevel:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:e,tenant:e,max_level:t},{concurrentId:n,requestConfig:{signal:r}})}}class gr{constructor({webVersion:e=!1,withCredentials:t=!1}={}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.streaming=void 0,this.tablets=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.codeAssist=void 0;const n={withCredentials:t};this.auth=new on({config:n}),e&&(this.meta=new cn({config:n}),this.codeAssist=new sn({config:n})),this.operation=new un({config:n}),this.pdisk=new fn({config:n}),this.scheme=new pn({config:n}),this.storage=new hn({config:n}),this.streaming=new fr({config:n}),this.tablets=new pr({config:n}),this.vdisk=new hr({config:n}),this.viewer=new mr({config:n})}}},28232:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(67087);function i(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}},28293:(e,t,n)=>{var r=n(85191),i=n(4178),o=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>R});var r=n(59284),i=n(94420),o=n(85736),a=n(32084),s=n(90826),l=n(794),c=n(6104),u=n.n(c),d=n(61758),f=n.n(d);function p(e,t){const[n,i]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;i({width:u()(t.offsetWidth,2),height:u()(t.offsetHeight,2)});const n=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;i({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;i({width:u()(e.offsetWidth,2),height:u()(e.offsetHeight,2)})}}),16));return n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var h=n(99991),m=n(84375),g=n(69220),v=n(81240),y=n(84476),b=n(72837);const w=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),_=(0,b.N)({en:w,ru:x},`${g.CU}clear-button`),E=(0,g.om)("clear-button"),S=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},C=e=>{const{size:t,className:n,onClick:i}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:i,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":_("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var k=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},i){return t?r.createElement("div",{ref:i,className:N("additional-content",{placement:e}),onClick:n},t):null})),A=(0,g.om)("text-input");function I(e){const{controlProps:t,controlRef:n,type:i,name:o,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:A("control",{type:"input"},t.className),type:i,name:o,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}const P=(0,g.om)("text-input"),R=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:g,label:v,disabled:y,readOnly:b,hasClear:w=!1,error:x,errorMessage:_,errorPlacement:E="outside",validationState:N,autoComplete:A,id:R,tabIndex:D,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:H,onUpdate:V,onChange:W}=e,{errorMessage:K,errorPlacement:G,validationState:Y}=(0,O.Av)({error:x,errorMessage:_,errorPlacement:E,validationState:N}),[Q,Z]=(0,o.P)(f,null!==g&&void 0!==g?g:"",V),J=r.useRef(null),X=(0,l.d)({initialValue:Q,onReset:Z}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(Y),ie=Boolean(v),oe="invalid"===Y&&Boolean(K)&&"outside"===G,ae="invalid"===Y&&Boolean(K)&&"inside"===G,se=Boolean(w&&!y&&!b&&Q),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=ie&&!R&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=ie?R||fe:R,he=p(ie?te:null,c),me=p(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],H?ve:void 0,oe?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),ie&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===Y||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:D,name:d,onChange(e){Z(e.target.value),W&&W(e)},autoComplete:de?"off":(0,O.o$)(A),controlProps:be},xe=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),i=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!i&&(null===(n=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:P({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:P("content")},le&&r.createElement(T,{ref:ne,placement:"start",onClick:xe},U),ie&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:P("label"),title:v,htmlFor:pe},`${v}`),r.createElement(I,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(C,{size:S(c),onClick:e=>{Z("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",W&&W(n)}},className:P("clear",{size:c})}),ue&&r.createElement(T,{placement:"end",onClick:xe},q),ae&&r.createElement(m.A,{content:K},r.createElement("span",{"data-qa":O._y},r.createElement(h.I,{data:i.A,className:P("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},$)),r.createElement(k.o,{note:H,errorMessage:oe?K:null,noteId:ve,errorMessageId:ge}))}))},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},29078:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>d,Ay:()=>c,Tn:()=>h,Tp:()=>g,o:()=>u,sM:()=>f});var r=n(59284),i=n(97091),o=n(53850),a=n(21334);const s={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},l=(0,i.Z0)({name:"schema",initialState:s,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),c=l.reducer,{setShowPreview:u}=l.actions,{selectShowPreview:d}=l.selectors,f=a.F.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async({database:e,path:t},{signal:n})=>{try{return{data:await window.api.scheme.createSchemaDirectory({database:e,path:t},{signal:n})}}catch(r){return{error:r}}}}),getSchema:e.query({queryFn:async({path:e,database:t},{signal:n})=>{try{const r=await window.api.viewer.getSchema({path:e,database:t},{signal:n});return r?{data:{[e]:r,...p(r)}}:{error:new Error("Schema is not available")}}catch(r){return{error:r}}},keepUnusedDataFor:1/0,serializeQueryArgs:({queryArgs:{database:e}})=>({database:e}),merge:(e,t,{arg:{path:n}})=>{const{[n]:r,...i}=t;return r?{...i,...e,[n]:r}:e}})}),overrideExisting:"throw"});function p(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const i of n){const{Name:e=""}=i,n=`${r}/${e}`;t[n]={PathDescription:{Self:i},Path:n,partial:!0}}return t}function h({path:e,database:t}){const{currentData:n,isFetching:i,error:o,refetch:a,originalArgs:s}=f.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=i&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?o:void 0,d=!c&&(!l&&!o||(null===l||void 0===l?void 0:l.partial));return r.useEffect((()=>{d&&a()}),[a,e,d]),{data:l,isLoading:c,error:u}}const m=(0,o.Mz)((e=>e),((e,t)=>t),((e,t)=>f.endpoints.getSchema.select({path:e,database:t}))),g=(0,o.Mz)((e=>e),((e,t)=>t),((e,t,n)=>m(t,n)),((e,t,n)=>{var r;return null===(r=n(e).data)||void 0===r?void 0:r[t]}))},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(59284);const i=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&(null===n||void 0===n||n())}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}},29776:(e,t,n)=>{var r=n(150),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},29819:(e,t,n)=>{"use strict";n.d(t,{GX:()=>l,Gi:()=>u,IK:()=>c,vI:()=>d});var r=n(67087),i=n(370),o=n(92459),a=n(29971);const s={storage:"storage",tablets:"tablets",structure:"structure"},l=[{id:s.storage,get title(){return(0,a.A)("tabs.storage")}},{id:s.structure,get title(){return(0,a.A)("tabs.structure")}},{id:s.tablets,get title(){return(0,a.A)("tabs.tablets")}}],c=i.z.nativeEnum(s).catch(s.tablets),u={database:r.StringParam,pdiskId:r.StringParam,vdiskId:r.StringParam};function d(e,t={},n){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},29863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_DEFAULT=void 0,t.expandFormat=l,t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT);void 0===r&&(r=i.settings.getLocaleData());var o=l(n,r.formats);return o.replace(c,(function(t){return u[t]?u[t](e,r,o):d(t)}))};var r=n(72328),i=n(77966),o=n(84080);function a(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}var s=/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g;function l(e,t){var n;void 0===t&&(t=null!==(n=i.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats);for(var o=e,l=0;l<5;l++){var c=o.replace(s,(function(e,n,i){if(i){var o=i.toUpperCase();return t[i]||r.englishFormats[i]||a(t[o]||r.englishFormats[o])}return n}));if(c===o)break;o=c}return o}t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var c=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,u={};function d(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function f(e){return e%12||12}function p(e){return e||24}function h(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function m(e){var t=e.date,n=e.format,r=e.data,i=e.index,o=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[i]),!s&&o&&(s="function"===typeof o?o(t,n):o[i])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function g(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),i="";return e<0?i="-":n&&(i="+"),"".concat(i).concat(r.padStart(t,"0"))}u.Y=function(e){var t=e.year();return t<=9999?g(t,4):"+"+t},u.YY=function(e){return g(e.year()%100,2)},u.YYYY=function(e){return g(e.year(),4)},u.YYYYY=function(e){return g(e.year(),5)},u.YYYYYY=function(e){return g(e.year(),6,!0)},u.M=function(e){return"".concat(e.month()+1)},u.MM=function(e){return g(e.month()+1,2)},u.Mo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},u.MMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},u.MMMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.months,index:r})},u.w=function(e){return"".concat(e.week())},u.ww=function(e){return g(e.week(),2)},u.wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},u.W=function(e){return"".concat(e.isoWeek())},u.WW=function(e){return g(e.isoWeek(),2)},u.Wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},u.d=function(e){return"".concat(e.day())},u.do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},u.dd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},u.ddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},u.dddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdays,index:r})},u.e=function(e){return"".concat(e.weekday())},u.E=function(e){return"".concat(e.isoWeekday())},u.H=function(e){return"".concat(e.hour())},u.HH=function(e){return g(e.hour(),2)},u.h=function(e){return"".concat(f(e.hour()))},u.hh=function(e){return g(f(e.hour()),2)},u.k=function(e){return"".concat(p(e.hour()))},u.kk=function(e){return g(p(e.hour()),2)},u.hmm=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2))},u.hmmss=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.Hmm=function(e){return"".concat(e.hour()).concat(g(e.minute(),2))},u.Hmmss=function(e){return"".concat(e.hour()).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.a=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!0)},u.A=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!1)},u.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2),":").concat(g(~~t%60,2))},u.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2)).concat(g(~~t%60,2))},u.Q=function(e){return"".concat(e.quarter())},u.Qo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},u.D=function(e){return"".concat(e.date())},u.DD=function(e){return g(e.date(),2)},u.Do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},u.m=function(e){return"".concat(e.minute())},u.mm=function(e){return g(e.minute(),2)},u.s=function(e){return"".concat(e.second())},u.ss=function(e){return g(e.second(),2)},u.S=function(e){return"".concat(~~(e.millisecond()/100))},u.SS=function(e){return"".concat(~~(e.millisecond()/10))},u.SSS=function(e){return g(e.millisecond(),3)},u.SSSS=function(e){return g(10*e.millisecond(),4)},u.SSSSS=function(e){return g(100*e.millisecond(),5)},u.SSSSSS=function(e){return g(1e3*e.millisecond(),6)},u.SSSSSSS=function(e){return g(1e4*e.millisecond(),7)},u.SSSSSSSS=function(e){return g(1e5*e.millisecond(),8)},u.SSSSSSSSS=function(e){return g(1e6*e.millisecond(),9)},u.x=function(e){return"".concat(e.valueOf())},u.X=function(e){return"".concat(e.unix())},u.z=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},u.zz=function(e){return(0,o.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},u.DDD=function(e){return"".concat(e.dayOfYear())},u.DDDD=function(e){return g(e.dayOfYear(),3)},u.DDDo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},u.gg=function(e){return g(e.weekYear()%100,2)},u.gggg=function(e){return g(e.weekYear(),4)},u.ggggg=function(e){return g(e.weekYear(),5)},u.GG=function(e){return g(e.isoWeekYear()%100,2)},u.GGGG=function(e){return g(e.isoWeekYear(),4)},u.GGGGG=function(e){return g(e.isoWeekYear(),5)}},29971:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page","tabs.storage":"Storage","tabs.structure":"Structure","tabs.tablets":"Tablets","node":"Node","fqdn":"FQDN","dc":"DC"}'),o=(0,r.g4)("ydb-node-page",{en:i})},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},30507:(e,t,n)=>{var r=n(6993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},30836:e=>{"use strict";e.exports=Object},31016:(e,t,n)=>{var r=n(31473),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const i=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),o=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.g4)("ydb-errors-access-denied",{ru:o,en:i})},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},31560:(e,t)=>{"use strict";function n(e){function t(t,i,o,a){var s=i?n+t+e.e+i:n+t,l=s;if(o){var c=" "+l+e.m;for(var u in o)if(o.hasOwnProperty(u)){var d=o[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,i,o){return"string"==typeof r?"string"==typeof i||Array.isArray(i)?t(e,r,void 0,i):t(e,r,i,o):t(e,n,r,i)}}}n({e:"-",m:"_"}),t.withNaming=n},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>o,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),i=n(41650);function o(e=r.Hs){return e+"/internal"}function a(e=r.Hs){return e+"/monitoring"}const s=(e,t=r.Hs)=>{const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}`):`${null!==t&&void 0!==t?t:""}/node/${e}`},l=({nodeId:e,pDiskId:t,host:n})=>{const r="/actors/pdisks/pdisk"+(0,i.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const o="/actors/vdisks/vdisk"+(0,i.pY)(t)+"_"+(0,i.pY)(n);return s(e,r)+o};function u(e,t,n="TabletID",i=r.Hs){return`${i}/tablets${t?`/${t}`:""}?${n}=${e}`}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},31886:(e,t,n)=>{"use strict";var r=n(35711),i=n(39955),o=n(70084),a=n(63904);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},31926:(e,t,n)=>{var r=n(84100),i=n(59698);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(59284),i=n(42793);function o(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,i.c)(n,t)}),e)}},32112:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},32133:(e,t,n)=>{"use strict";var r=n(33410),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=o(n(58671)),s=n(49837),l=o(n(38960)),c=n(84080),u=n(43377),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},32328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(59284)),o=s(n(32133)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=i.default.Children.only(s),u=(0,o.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},33120:(e,t,n)=>{var r=n(537),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},33410:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},33609:(e,t,n)=>{var r=n(29776);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),i=n(60712);const o=r.createContext(void 0);function a({children:e,registry:t}){return(0,i.jsx)(o.Provider,{value:t,children:e})}function s(e){const t=r.useContext(o);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>i,lf:()=>a,mF:()=>r,o$:()=>o});const r="control-error-message-qa",i="control-error-icon-qa",o=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:i}=e;let o,a;return"string"===typeof t&&(o=t),n&&(o=n),("invalid"===i||Boolean(t))&&(a="invalid"),{errorMessage:o,errorPlacement:r,validationState:a}}},34657:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},35367:(e,t,n)=>{var r=n(81382),i=n(12249),o=n(71259),a=n(63909),s=n(46710),l=n(49538),c=n(11319),u=n(40279),d=n(91644),f=n(67530),p=n(35725),h=n(43261),m=n(613),g=n(55799),v=n(52497),y=n(19305),b=n(20368),w=n(50490),x=n(38469),_=n(87232),E=n(96294),S=n(6737),C="[object Arguments]",k="[object Function]",O="[object Object]",N={};N[C]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[O]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[k]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,P){var R,D=1&n,j=2&n,M=4&n;if(T&&(R=I?T(t,A,I,P):T(t)),void 0!==R)return R;if(!x(t))return t;var L=y(t);if(L){if(R=m(t),!D)return c(t,R)}else{var z=h(t),F=z==k||"[object GeneratorFunction]"==z;if(b(t))return l(t,D);if(z==O||z==C||F&&!I){if(R=j||F?{}:v(t),!D)return j?d(t,s(R,t)):u(t,a(R,t))}else{if(!N[z])return I?t:{};R=g(t,z,D)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,R),_(t)?t.forEach((function(r){R.add(e(r,n,T,r,t,P))})):w(t)&&t.forEach((function(r,i){R.set(i,e(r,n,T,i,t,P))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(R,i,e(r,n,T,i,t,P))})),R}},35535:(e,t,n)=>{var r=n(73885),i=n(49535),o=n(46626),a=n(92061);e.exports=function(e){return o(e)?r(a(e)):i(e)}},35554:(e,t,n)=>{var r=n(18408),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},35647:(e,t,n)=>{var r=n(62990),i=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>i});const r={.5:"half"},i={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},35725:(e,t,n)=>{var r=n(21551),i=n(12927),o=n(6737);e.exports=function(e){return r(e,o,i)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},36738:(e,t,n)=>{var r=n(16320),i=n(38469);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},36894:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,JP:()=>l,NJ:()=>u,Wg:()=>g,aW:()=>f,cu:()=>h,fu:()=>m,gJ:()=>c,xM:()=>p,ys:()=>d});var r=n(97091),i=n(76086),o=n(88610);const a=(0,r.Z0)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,o.gc)(i.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,o.CN)(a,i.ld))&&void 0!==r?r:[],l=a.query.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,o.gc)(i.ld,c))}}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},37737:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},38198:(e,t,n)=>{const r=n(53577),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},38533:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,U:()=>r});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},i=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"}))},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},38960:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(88409)),o=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);i.default.extend(o.default),i.default.extend(s.default),i.default.extend(a.default),i.default.Ls.en.formats=l.englishFormats,t.default=i.default},39069:(e,t,n)=>{var r=n(34657),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),i=n(72630),o=n(32084),a=n(48681);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&c(e)&&(i=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/i,f=(r.top+(u&&a?a.offsetTop:0))/o,h=r.width/i,g=r.height/o;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function _(e){var t=x(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),i=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=b(t),a=g(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(o))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=w(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function k(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:k(C(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=k(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=s(r),a=i?[o].concat(o.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(O(C(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==x(e).position?e.offsetParent:null}function A(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===x(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===x(e).position)return null;var n=C(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var I="top",P="bottom",R="right",D="left",j="auto",M=[I,P,R,D],L="start",z="end",F="viewport",B="popper",U=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),q=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function G(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?W:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;u(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=H(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(K(t,n)){i.rects={reference:E(t,A(n),"fixed"===i.options.strategy),popper:S(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!K(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Y={passive:!0};function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Q(i):null,a=i?Z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case I:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:l};break;case D:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?J(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),E=D,S=I,C=window;if(u){var k=A(n),O="clientHeight",N="clientWidth";if(k===s(n)&&"static"!==x(k=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),i===I||(i===D||i===R)&&o===z)S=P,v-=(f&&k===C&&C.visualViewport?C.visualViewport.height:k[O])-r.height,v*=c?1:-1;if(i===D||(i===I||i===P)&&o===z)E=R,m-=(f&&k===C&&C.visualViewport?C.visualViewport.width:k[N])-r.width,m*=c?1:-1}var T,j=Object.assign({position:l},u&&ee),M=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:p(n*i)/i||0,y:p(r*i)/i||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((T={})[S]=_?"0":"",T[E]=w?"0":"",T.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[E]=w?m+"px":"",t.transform="",t))}const ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),i=[D,I].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[D,R].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var re={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var oe={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===F?le(function(e,t){var n=s(e),r=b(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=m();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):le(function(e){var t,n=b(e),r=v(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=d(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===x(i||n).direction&&(s+=d(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(C(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&c(e)?A(e):e;return l(n)?t.filter((function(e){return l(e)&&se(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=ce(e,n,r);return t.top=d(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=d(i.left,t.left),t}),ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?F:u,f=n.elementContext,p=void 0===f?B:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=de("number"!==typeof y?y:fe(y,M)),x=p===B?"reference":B,_=e.rects.popper,E=e.elements[m?x:p],S=ue(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),C=g(e.elements.reference),k=X({reference:C,element:_,strategy:"absolute",placement:i}),O=le(Object.assign({},_,k)),N=p===B?O:C,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},A=e.modifiersData.offset;if(p===B&&A){var D=A[i];Object.keys(T).forEach((function(e){var t=[R,P].indexOf(e)>=0?1:-1,n=[I,P].indexOf(e)>=0?"y":"x";T[e]+=D[n]*t}))}return T}const he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Q(g),y=l||(v===g||!h?[ie(g)]:function(e){if(Q(e)===j)return[];var t=ie(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Q(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=Z(r),d=u?s?U:U.filter((function(e){return Z(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,S=b[0],C=0;C<b.length;C++){var k=b[C],O=Q(k),N=Z(k)===L,T=[I,P].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?R:D:N?P:I;w[A]>x[A]&&(F=ie(F));var B=ie(F),$=[];if(o&&$.push(z[O]<=0),s&&$.push(z[F]<=0,z[B]<=0),$.every((function(e){return e}))){S=k,E=!1;break}_.set(k,$)}if(E)for(var H=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},V=h?3:1;V>0;V--){if("break"===H(V))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,n){return d(e,f(t,n))}const ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=pe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Q(t.placement),w=Z(t.placement),x=!w,_=J(b),E="x"===_?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(o){var z,F="y"===_?I:D,B="y"===_?P:R,U="y"===_?"height":"width",q=C[_],$=q+y[F],H=q-y[B],V=m?-O[U]/2:0,W=w===L?k[U]:O[U],K=w===L?-O[U]:-k[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[F],te=X[B],ne=me(0,k[U],Y[U]),re=x?k[U]/2-V-ne-ee-T.mainAxis:W-ne-ee-T.mainAxis,ie=x?-k[U]/2+V+ne+te+T.mainAxis:K+ne+te+T.mainAxis,oe=t.elements.arrow&&A(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=q+ie-se,ce=me(m?f($,q+re-se-ae):$,q,m?d(H,le):H);C[_]=ce,M[_]=ce-q}if(s){var ue,de="x"===_?I:D,fe="x"===_?P:R,he=C[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,D].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-k[ge]-O[ge]-we+T.altAxis,_e=be?he+k[ge]+O[ge]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(xe,he,_e):me(m?xe:ve,he,m?_e:ye);C[E]=Ee,M[E]=Ee-he}t.modifiersData[r]=M}},requiresIfExists:["offset"]};const ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),l=J(s),c=[D,R].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return de("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,M))}(i.padding,n),d=S(o),f="y"===l?I:D,p="y"===l?P:R,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=A(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+y,_=me(b,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(e){return[I,R,P,D].some((function(t){return e[t]>=0}))}var we=G({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),l&&c.addEventListener("resize",n.update,Y),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Y)})),l&&c.removeEventListener("resize",n.update,Y)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Q(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];c(i)&&y(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ne,he,ge,ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,i,o),u=be(l),d=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),xe=n(45099),_e=n.n(xe),Ee=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Se="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Ce=[],ke=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Ce},s=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:Ee(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ee(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return _e()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),f=r.useRef();return Se((function(){f.current&&f.current.setOptions(d)}),[d]),Se((function(){if(null!=e&&null!=t){var r=(n.createPopper||we)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Oe=n(54245);const Ne=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Te={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn({state:e}){var t;if(!e.placement.startsWith("top")&&!e.placement.startsWith("bottom"))return;const n=null===(t=e.modifiersData.offset)||void 0===t?void 0:t[e.placement];n&&(e.modifiersData.popperOffsets.x-=2*n.x)}};var Ae=n(18670),Ie=n(98392),Pe=n(19225),Re=n(69220),De=n(99635),je=n(6826);const Me=(0,Re.om)("popup");function Le({styles:e,attributes:t,setArrowRef:n}){return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:n,className:Me("arrow"),style:e},t),r.createElement("div",{className:Me("arrow-content")},r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{left:!0})})),r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{right:!0})}))))}const ze=(0,Re.om)("popup"),Fe=8;function Be({keepMounted:e=!1,hasArrow:t=!1,offset:n=[0,4],open:a,placement:s,anchorRef:l,disableEscapeKeyDown:c,disableOutsideClick:u,disableLayer:d,style:f,className:p,contentClassName:h,modifiers:m=[],children:g,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,onTransitionEnter:C,onTransitionEntered:k,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:P,restoreFocus:R,restoreFocusRef:D,"aria-label":j,"aria-labelledby":M,role:L,id:z,focusTrap:F=!1,autoFocus:B=!1,"aria-modal":U=F}){const q=r.useRef(null);(0,De.Z)({open:a,disableEscapeKeyDown:c,disableOutsideClick:u,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,contentRefs:[l,q],enabled:!d,type:"popup"});const{attributes:$,styles:H,setPopperRef:V,setArrowRef:W}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:i=[],strategy:o,altBoundary:a}){const[s,l]=r.useState(null),[c,u]=r.useState(null),d=(0,Oe.j)(),f=r.useMemo((()=>{let e=Array.isArray(t)?t:[t];return"rtl"===d&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[t,d]),{attributes:p,styles:h}=ke(null===e||void 0===e?void 0:e.current,s,{strategy:o,modifiers:[{name:"arrow",options:{element:c}},{name:"offset",options:{offset:n,altBoundary:a}},{name:"flip",options:{fallbackPlacements:f.slice(1),altBoundary:a}},..."rtl"===d?[Te]:[],...i],placement:f[0]});return{attributes:p,styles:h,setPopperRef:l,setArrowRef:u}}({anchorRef:l,placement:s,offset:t?[n[0],n[1]+Fe]:n,strategy:I,altBoundary:T,modifiers:[{name:"arrow",options:{enabled:t,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:T}},...m]}),K=(0,o.N)(V,q,(0,Pe.N)()),G=(0,Ae.s)({enabled:Boolean(R&&a),restoreFocusRef:D});let Y=L;return!0!==U&&"true"!==U||Y||(Y="dialog"),r.createElement(i.A,{nodeRef:q,in:a,addEndListener:e=>{var t;return null===(t=q.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,je.L)(ze),mountOnEnter:!e,unmountOnExit:!e,appear:!0,onEnter:()=>{null===C||void 0===C||C()},onEntered:()=>{null===k||void 0===k||k()},onExit:()=>{null===O||void 0===O||O()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ie.Z,{container:A,disablePortal:T},r.createElement("div",Object.assign({ref:K,style:H.popper},$.popper,G,{className:ze({open:a},p),"data-qa":P,id:z,role:Y,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(Pe.s,{enabled:F&&a,autoFocus:B},r.createElement("div",{onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,className:ze("content",h),style:f,tabIndex:-1},t&&r.createElement(Le,{styles:H.arrow,attributes:$.arrow,setArrowRef:W}),g)))))}},39450:(e,t,n)=>{var r=n(537),i=n(7804),o=n(61872),a=n(63679),s=n(96741),l=n(80303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),i=n(21334),o=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,o.HD)(e,n)}));const r=(0,o.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,o.NN)(e.versions,r)})))},s=(0,r.Z0)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=i.F.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,{signal:t})=>{try{if(window.api.meta){const e=await window.api.meta.getClustersList(void 0,{signal:t});return{data:a(e)}}throw new Error("Method is not implemented.")}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},39955:e=>{"use strict";e.exports=TypeError},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),i=n(62060),o=n.n(i),a=n(38469),s=n.n(a),l=n(53202);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,i,o,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,u){if(l)o.attachEvent("onresize",u);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,u=c.getComputedStyle(o);u&&"static"===u.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",o.__resizeTriggers__.appendChild(d),o.__resizeTriggers__.appendChild(f),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function([e,t]){h(e),f(t)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-i-o,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return i||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(58168),b=n(9417),w=n(25540),x=n(77995),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function i(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var C=-1;function k(e){if(void 0===e&&(e=!1),-1===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var O=null;function N(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var T=function(e,t){return e};function A(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,x.A)((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=(0,x.A)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,x.A)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(N()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.A)(t,e),t.getDerivedStateFromProps=function(e,t){return I(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?k():0:l.scrollHeight>l.clientHeight?k():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?T:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,x=this.state.isScrolling,_="horizontal"===o||"horizontal"===h,E=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],k=S[1],O=[];if(u>0)for(var N=C;N<=k;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?x:void 0,style:this._getItemStyle(N)}));var A=i(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,y.A)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":A,pointerEvents:x?"none":void 0,width:_?A:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),f=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var I=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},R=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=P(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},D=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&P(e,n,t).offset<r;)n+=o,o*=2;return R(e,t,Math.min(n,i-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},M=A({getItemOffset:function(e,t,n){return P(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=P(e,t,i),f=j(e,i),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+o);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?R(e,t,i,0,n):D(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:o,u=P(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=P(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var L=n(28664),z=n(11507),F=n(54245),B=n(69220),U=n(10176),q=n(29322),$=n(74417);const H=(0,B.om)("list"),V=e=>{const t=r.useRef(null);return(0,q.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement($.a,{qa:"list-loader"}))};var W=n(66821),K=n(99991),G=n(11669),Y=n(359);const Q="list-active-item",Z=[Y.D.TAB],J=(0,B.om)("list"),X=e=>String(e);function ee(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class te extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{te.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}render(){var e,t;const{item:n,height:i,style:o,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:i},o),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Q:void 0,className:J("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:ee(this.props.provided,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:J("item-sort-icon")},r.createElement(K.I,{data:W.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:i}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,i))}}te.publishEvent=G.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function ie(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class oe extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:ie(e)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:ie(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n,r,i;const o=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(o&&"function"===typeof o.getNode){const e=o.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"}))}}}const ae=(0,B.om)("list"),se=r.forwardRef(((e,t)=>r.createElement(M,Object.assign({ref:t},e,{direction:(0,F.j)()}))));se.displayName="ListContainer";class le extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,U.zm)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(Z.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:i}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(V,{onIntersect:0===n?void 0:i}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:i,isDragging:o})=>{var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[e],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=e===u||e===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return r.createElement(te,{key:e,style:t,height:n,itemIndex:e,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:i,isDragging:o})},this.renderVirtualizedItem=({index:e,style:t})=>r.createElement(l.sx,{draggableId:String(e),index:e,key:`item-key-${e}`},(n=>this.renderItem({index:e,style:t,provided:n}))),this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.handleBlur()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let i=(t+r)%r;for(let o=0;o<r;o+=1){if(e[i]&&!e[i].disabled)return i;i=(i+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!o()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:i,itemsClassName:o,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(z.G.Consumer,null,(({mobile:c})=>r.createElement("div",{className:ae({mobile:c},i),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:ae("items",{virtualized:n},o),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:ae("empty-placeholder")},t)))))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(e)}))}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:i,filterClassName:o="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",o)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:i,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(oe,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>r.createElement(l.sx,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)}))))))))):r.createElement(oe,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(({width:n,height:i})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)))))):r.createElement(v,null,(({width:t,height:n})=>r.createElement(se,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const i=this.getItemsWithLoading();this.activateItem(le.findNextIndex(i,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});const r="header/SET_HEADER_BREADCRUMBS",i={pageBreadcrumbsOptions:{}};function o(e,t){return{type:r,page:e,options:t}}const a=(e=i,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},40279:(e,t,n)=>{var r=n(62871),i=n(54736);e.exports=function(e,t){return r(e,i(e),t)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>C});var r=n(59284),i=n(41668),o=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:i}){const o=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:o,valueStyle:s,direction:e}},i)}var l=n(69220);const c=(0,l.om)("definition-list");var u=n(96873);function d({copyText:e,children:t}){const n=null!==t&&void 0!==t?t:"\u2014";return e?r.createElement("div",{className:c("copy-container")},n,r.createElement(u.b,{size:"s",text:e,className:c("copy-button"),view:"flat-secondary"})):n}var f=n(27145),p=n(73633),h=n(99991),m=n(84375);const g=(0,l.om)("help-mark");function v(e){var{buttonRef:t,buttonProps:n={},children:i,className:o}=e,a=(0,f.Tt)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.A,Object.assign({},a,{delayClosing:300,className:g(null,o),content:i}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.I,{data:p.A,size:16}))))}var y=n(72837);const b=JSON.parse('{"label_note":"Note"}'),w=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),x=(0,y.N)({en:b,ru:w},"DefinitionList");function _({note:e}){if(!e)return null;const t=c("item-note-tooltip");if("string"===typeof e)return r.createElement(v,{className:t,placement:["bottom","top"],buttonProps:{"aria-label":x("label_note")}},e);if("object"===typeof e){const{buttonProps:n}=e,i=(0,f.Tt)(e,["buttonProps"]);return r.createElement(v,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":x("label_note")},n)},i))}return null}function E({note:e,name:t,direction:n}){const i=e?r.createElement(r.Fragment,null,"\xa0",r.createElement(_,{note:e})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},t,i),"horizontal"===n&&r.createElement("div",{className:c("dots")}))}function S({name:e,children:t,copyText:n,note:i}){const{direction:o,keyStyle:s,valueStyle:l}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:s},r.createElement(E,{direction:o,name:e,note:i})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},l),{lineBreak:"string"===typeof t&&(u=20,function(e){return e.split(/\s+/).some((e=>e.length>u))})(t)?"anywhere":void 0})},r.createElement(d,{copyText:n},t)));var u}function C({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:i,className:a,children:l,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){k(r)?n.push(r):(0,o.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(l);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:i},r.createElement("dl",{className:c({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}S.displayName="DefinitionListItem";const k=(0,i.g)(S);C.Item=S,C.displayName="DefinitionList"},40453:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isDateTime=w,t.dateTime=x,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,i=t.lang,s=a.default.locale(i||l.settings.getLocale(),void 0,!0);return y({ts:b(n,o.UtcTimeZone,r,i,!0)[0],timeZone:o.UtcTimeZone,offset:0,locale:s})};var o=n(72328),a=i(n(38960)),s=n(62391),l=n(77966),c=n(84080),u=n(13064),d=n(29863),f=n(6597),p=n(16244),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var i=this.valueOf();return t&&(i-=60*(r-this._offset)*1e3),y({ts:i,timeZone:o.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),i=this.valueOf(),o=(0,c.timeZoneOffset)(r,i);return t&&(i+=60*this._offset*1e3,i=(n=(0,c.fixOffset)(i,o,r))[0],o=n[1]),y({ts:i,timeZone:r,offset:o,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var i=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!i.isValid())return NaN;var o=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(i.utcOffset()-this.utcOffset()),s=0;switch(o){case"years":s=(0,u.monthDiff)(this,i)/12;break;case"quarters":s=(0,u.monthDiff)(this,i)/3;break;case"months":s=(0,u.monthDiff)(this,i);break;case"weeks":s=(this.valueOf()-i.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-i.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-i.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-i.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-i.valueOf())/1e3;break;default:s=this.valueOf()-i.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(x({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(t,n){if(!this.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var r=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system",this._locale)[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!r.isValid())return this._localeData.invalidDate||o.INVALID_DATE_STRING;var i=r,a=this,l=!1;a.isBefore(i)&&(i=this,a=r,l=!0);var c=a.month()-i.month()+12*(a.year()-i.year());i.add(c,"months").isAfter(a)&&c--;var u=a.valueOf()-i.add(c,"months").valueOf();return l&&(c=-c,u=-u),(0,p.fromTo)((0,s.duration)({months:c,milliseconds:u}),this._localeData.relativeTime,n)},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(o.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,i;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,x=l.isoWeekNumber,_=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==x||void 0!==_||void 0!==E))throw new Error("Can't mix local week with ISO week");var C=this.weekInfo();if(S){var k=g(this._localeData),O=k.minDaysInFirstWeek,N=k.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:C.weekday)+1,weekNumber:null!==v&&void 0!==v?v:C.weekNumber,weekYear:null!==b&&void 0!==b?b:C.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?C.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:C.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:C.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var A=(0,u.objToTS)(a),I=this._offset;return this._timeZone===o.UtcTimeZone?A-=60*I*1e3:(A=(i=(0,c.fixOffset)(A,I,this._timeZone))[0],I=i[1]),y({ts:A,timeZone:this._timeZone,offset:I,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||o.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(o.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var i;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===o.UtcTimeZone?l-=60*d*1e3:(l=(i=(0,c.fixOffset)(l,d,a))[0],d=i[1])}return g&&(l+=n*g,a!==o.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,i=e.locale||"en",o=a.default.Ls[i],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:i,localeData:o,isValid:s})}function b(e,t,n,r,i){var s,u,d,p;if(void 0===i&&(i=!1),w(e)||"number"===typeof e||e instanceof Date||!isNaN(function(e){if(null===e||void 0===e)return NaN;if("string"===typeof e)return NaN;if("number"===typeof e||"bigint"===typeof e)return Number(e);if("object"===typeof e){var t=e.valueOf();if("number"===typeof t||"bigint"===typeof t)return Number(t)}return NaN}(e)))d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(i)d=a.default.utc(e,n,o.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,o.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function x(e){var t=e||{},n=t.input,r=t.format,i=t.timeZone,o=t.lang,s=(0,c.normalizeTimeZone)(i,l.settings.getDefaultTimeZone()),u=a.default.locale(o||l.settings.getLocale(),void 0,!0),d=b(n,s,r,o);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),i=n.n(r),o=n(38596),a=n(66592);const s="__no_color__",l=(e,t=new Map)=>(e.forEach((({version:e,version_base_color_index:n=s})=>{var r;const i=(0,o.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(i)})),t),c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.s5)(t)-(0,a.s5)(e))).forEach(((e,i)=>{if(n===s)t.set(e,a.OT);else{const o=Number(n)%a.lm.length,s=r.size,l=a.lm[o],c=Math.max(100-i*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=(e=[],t)=>{const n=e.filter((e=>e.version));return i()(n,"version").map((e=>({...e,minorVersion:(0,o.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},40538:e=>{"use strict";e.exports=Math.min},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),i=n(7450),o=n(46734),a=n(84476),s=n(99991),l=n(69220);const c=(0,l.om)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(27145),f=n(9187),p=n(38602),h=n(90826);const m=(0,l.om)("menu"),g=r.forwardRef((function({label:e,children:t,style:n,className:i,qa:o},a){const s=(0,h.u)();return r.createElement("li",{ref:a,className:m("list-group-item")},r.createElement("div",{style:n,className:m("group",i),"data-qa":o},e&&r.createElement("div",{id:s,className:m("group-label")},e),r.createElement("ul",{role:"group","aria-labelledby":s,className:m("group-list")},t)))}));var v=n(11669);const y=(0,l.om)("menu"),b=r.forwardRef((function({icon:e,iconStart:t=e,iconEnd:n,title:i,disabled:a,active:s,selected:l,href:c,target:u,rel:d,onClick:f,style:p,className:h,theme:m,extraProps:g,children:b,qa:w},x){const{onKeyDown:_}=(0,o.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?_:void 0},C={title:i,onClick:a?void 0:f,onClickCapture:a?void 0:E,style:p,tabIndex:a?-1:0,className:y("item",{disabled:a,active:s,selected:l,theme:m,interactive:Boolean(f)||Boolean(c)},h),"data-qa":w},k=[t&&r.createElement("div",{key:"icon-start",className:y("item-icon")},t),r.createElement("div",{key:"content",className:y("item-content")},b),n&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},n)];let O;return O=c?r.createElement("a",Object.assign({},S,g,C,{href:c,target:u,rel:d}),k):r.createElement("div",Object.assign({},S,g,C),k),r.createElement("li",{ref:x,className:y("list-item")},O)})),w=(0,l.om)("menu"),x=r.forwardRef((function({size:e="m",children:t,style:n,className:i,qa:o},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},i),"data-qa":o},t)}));x.Item=b,x.Group=g;var _=n(54245);function E(e,t,n=1,r){const i=(e.length+t-n%e.length)%e.length;return r&&r(e[i])?E(e,i,1,r):i}function S(e,t,n=1,r){const i=(t+n)%e.length;return r&&r(e[i])?S(e,i,1,r):i}var C=n(39238);const k=[],O=r.createContext({activeMenuPath:k,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[i,o]=r.useState(k);r.useEffect((()=>{n&&o(k)}),[n]);const a=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:o,anchorRef:e})),[i,e]);return r.createElement(O.Provider,{value:a},t)},T={text:"",action:()=>{},path:[]};function A(e){return e===T}function I(e){return e.disabled||A(e)}function P(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const R=({items:e,open:t,anchorRef:n,onClose:i,size:o,menuProps:a,children:s,popupProps:l,path:d=[]})=>{const{toggle:f,data:p}=r.useContext(u),{activeMenuPath:h,setActiveMenuPath:m,anchorRef:g}=r.useContext(O),v=d.length>0,y=r.useCallback((()=>{m(d.slice(0,d.length-1))}),[m,d]),b=r.useCallback((e=>{var t;m(d),null===(t=null===l||void 0===l?void 0:l.onMouseEnter)||void 0===t||t.call(l,e)}),[d,l,m]),w=r.useCallback((e=>{var t;y(),null===(t=null===l||void 0===l?void 0:l.onMouseLeave)||void 0===t||t.call(l,e)}),[y,l]),_=r.useCallback(((e,t)=>{var n;e.items&&e.path?m(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,p),f(!1))}),[p,m,f]),k=r.useCallback(((t,n)=>{switch(n.key){case"Escape":return v&&(n.stopPropagation(),null===y||void 0===y||y()),!1;case"Enter":case" ":{const r=e[t],i=null===r||void 0===r?void 0:r.items;return(v||i)&&(n.stopPropagation(),n.preventDefault()),r&&_(r,n),!1}}return!0}),[y,_,v,e]),N=t&&P(d)===P(h),{activeItemIndex:T,setActiveItemIndex:R,reset:D}=function({items:e,skip:t,pageSize:n,processHomeKey:i=!0,processEndKey:o=!0,anchorRef:a,disabled:s=!1,initialValue:l=-1,onAnchorKeyDown:c}){const[u,d]=r.useState(l),f=r.useCallback((()=>{d(l)}),[l]);return r.useEffect((()=>{e&&f()}),[e,f]),r.useLayoutEffect((()=>{if(s)return;if(!e.some((e=>!(null===t||void 0===t?void 0:t(e)))))return;const r=null===a||void 0===a?void 0:a.current;if(!r)return;const l=r=>{if(!1!==(null===c||void 0===c?void 0:c(u,r)))switch(r.key){case"ArrowDown":r.preventDefault(),d((n=>S(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),d((n=>E(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),d((r=>S(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),d((r=>E(e,r,n,t)));break;case"Home":if(!i)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!o)return;r.preventDefault(),d((n=>E(e,n,n+1,t)))}};return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[u,a,s,e,c,n,o,i,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:I,anchorRef:g,onAnchorKeyDown:k,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||D()}),[t,D]),r.createElement(C.z,Object.assign({open:t,anchorRef:n,onClose:i},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(x,Object.assign({className:c("menu"),size:o},a),e.map(((e,n)=>{var o;const a=N&&T===n,s=t&&!a&&0!==h.length&&P(e.path)===P(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>R(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:A(e),"active-parent":s,"with-submenu":Boolean(null===(o=e.items)||void 0===o?void 0:o.length)},e.className),selected:a,popupProps:l,closeMenu:i},e,{extraProps:u}))}))))};function D(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j({items:e,path:t}){const{activeMenuPath:n,setActiveMenuPath:i}=r.useContext(O),o=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&i(t.slice(0,t.length-1))}),[t,i]),s=r.useCallback((()=>{t&&i(t)}),[t,i]);return{hasSubmenu:o,isSubmenuOpen:D(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:i,popupProps:o,closeMenu:a,children:l,path:h}=e,m=(0,d.Tt)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.j)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:C}=j({items:i,path:h}),k=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),k())}),[n,v,k,w]),N=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&C()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,C]),T=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),A=r.useMemo((()=>w?r.createElement(s.I,{data:"rtl"===b?f.A:p.A,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(x.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:A}),t||l),w&&i&&r.createElement(R,{popupProps:Object.assign(Object.assign({},o),{className:c("sub-menu",null===o||void 0===o?void 0:o.className),placement:T}),items:i,path:h,open:E,anchorRef:y,onClose:k}))};function L(e,t,n,i=void 0!==e&&void 0!==t){const o=function(e,t){const[n,i]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?i((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),i(e))}),[t])]}(e||n,t);return i?[e,t]:o}function z(e,t,n=[],r=0){const i=[];let o=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==i.length&&i.push(t),i.push(...e),a+=e.length,o=!0}else{if(s.hidden)continue;o&&i.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),i.push(e),o=!1}return i}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:i.A}),open:l,onOpenToggle:d,hideOnScroll:f=!0,data:p,disabled:h,switcher:m,renderSwitcher:g,switcherWrapperClassName:v,defaultSwitcherProps:y,defaultSwitcherClassName:b,onSwitcherClick:w,menuProps:x,popupProps:_,children:E})=>{const S=r.useRef(null),{isPopupShown:C,togglePopup:k,closePopup:O}=function(e,t,n){const[i,o]=L(e,t,!1),a=r.useCallback((e=>{o((t=>"boolean"===typeof e?e:!t))}),[o]),s=r.useCallback((()=>{o(!1)}),[o]);return r.useEffect((()=>{n&&i&&s()}),[s,n,i]),{isPopupShown:i,togglePopup:a,closePopup:s}}(l,d,h);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(O,S,!C||!f);const A=r.useMemo((()=>({toggle:k,data:p})),[p,k]),I=r.useMemo((()=>z(e,T)),[e]),P=r.useCallback((e=>{h||(null===w||void 0===w||w(e),k())}),[h,w,k]),{onKeyDown:D}=(0,o.N)(P),j=r.useMemo((()=>({onClick:P,onKeyDown:D})),[P,D]);return r.createElement(u.Provider,{value:A},r.createElement("div",Object.assign({ref:S,className:c("switcher-wrapper",v)},g?{}:j),(null===g||void 0===g?void 0:g(j))||m||r.createElement(a.$,Object.assign({view:"flat",size:t},y,{className:c("switcher-button",b),disabled:h}),n)),r.createElement(N,{anchorRef:S,disabled:!C},r.createElement(R,{items:I,open:C,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},40691:(e,t,n)=>{var r=n(92470),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},41650:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch{return e}}n.d(t,{O4:()=>a,en:()=>d,kf:()=>c,pY:()=>l,qF:()=>r,wb:()=>s,z0:()=>u});const i=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],o=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/o**2;return n<10?n.toFixed(2)+i[2]:n<100?n.toFixed(1)+i[2]:n.toFixed()+i[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+i[3]:r<10?r.toFixed(2)+i[3]:r<100?r.toFixed(1)+i[3]:r.toFixed()+i[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}const d="\xa0"},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(59284);function i(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const i=n.displayName;return Boolean(i&&i===e.displayName)}}},41826:(e,t,n)=>{"use strict";n.d(t,{p:()=>d,H:()=>f});n(59284);var r=n(40336),i=n(76086),o=n(56839),a=n(71661),s=n(48372);const l=JSON.parse('{"start-time":"Start time","disconnect-time":"Disconnect time","change-time":"Change time"}'),c=(0,s.g4)("ydb-uptime-viewer",{en:l});var u=n(60712);function d({StartTime:e,DisconnectTime:t}){let n,s=null;return t?(n=(0,o.wI)(t),s=(0,u.jsx)(r.u.Item,{name:c("disconnect-time"),children:(0,o.r6)(t,{withTimeZone:!0})},"DisconnectTime")):e&&(n=(0,o.H7)(e),s=(0,u.jsx)(r.u.Item,{name:c("start-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"StartTime")),n?(0,u.jsx)(a.s,{placement:["top","auto"],disabled:!s,content:(0,u.jsx)(r.u,{responsive:!0,children:s}),children:n}):i.Pd}function f({ChangeTime:e}){let t;return e&&(t=(0,o.H7)(e)),t?(0,u.jsx)(a.s,{placement:["top","auto"],content:(0,u.jsx)(r.u,{responsive:!0,children:(0,u.jsx)(r.u.Item,{name:c("change-time"),children:(0,o.r6)(e,{withTimeZone:!0})},"changeTime")}),children:t}):i.Pd}},42566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{e&&e instanceof Function&&n.e(2308).then(n.bind(n,62308)).then((({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)}))}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},42634:()=>{},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},43160:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(16445),t)},43238:(e,t,n)=>{var r=n(68097),i=n(92061);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},43261:(e,t,n)=>{var r=n(36484),i=n(37815),o=n(70364),a=n(32361),s=n(41527),l=n(16320),c=n(45865),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},43377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(9222).then(n.t.bind(n,89222,23))},am:function(){return n.e(9243).then(n.t.bind(n,59243,23))},"ar-dz":function(){return n.e(6881).then(n.t.bind(n,6881,23))},"ar-iq":function(){return n.e(5685).then(n.t.bind(n,45685,23))},"ar-kw":function(){return n.e(8081).then(n.t.bind(n,88081,23))},"ar-ly":function(){return n.e(8256).then(n.t.bind(n,28256,23))},"ar-ma":function(){return n.e(9697).then(n.t.bind(n,89697,23))},"ar-sa":function(){return n.e(1187).then(n.t.bind(n,1187,23))},"ar-tn":function(){return n.e(4349).then(n.t.bind(n,24349,23))},ar:function(){return n.e(8890).then(n.t.bind(n,58890,23))},az:function(){return n.e(3410).then(n.t.bind(n,3410,23))},be:function(){return n.e(7748).then(n.t.bind(n,97748,23))},bg:function(){return n.e(5950).then(n.t.bind(n,85950,23))},bi:function(){return n.e(1088).then(n.t.bind(n,61088,23))},bm:function(){return n.e(7420).then(n.t.bind(n,97420,23))},"bn-bd":function(){return n.e(2568).then(n.t.bind(n,72568,23))},bn:function(){return n.e(1237).then(n.t.bind(n,1237,23))},bo:function(){return n.e(9174).then(n.t.bind(n,9174,23))},br:function(){return n.e(513).then(n.t.bind(n,90513,23))},bs:function(){return n.e(2626).then(n.t.bind(n,22626,23))},ca:function(){return n.e(3761).then(n.t.bind(n,43761,23))},cs:function(){return n.e(6047).then(n.t.bind(n,46047,23))},cv:function(){return n.e(7348).then(n.t.bind(n,67348,23))},cy:function(){return n.e(8633).then(n.t.bind(n,48633,23))},da:function(){return n.e(5418).then(n.t.bind(n,15418,23))},"de-at":function(){return n.e(8534).then(n.t.bind(n,8534,23))},"de-ch":function(){return n.e(1696).then(n.t.bind(n,41696,23))},de:function(){return n.e(7878).then(n.t.bind(n,47878,23))},dv:function(){return n.e(9523).then(n.t.bind(n,49523,23))},el:function(){return n.e(3952).then(n.t.bind(n,3952,23))},"en-au":function(){return n.e(6625).then(n.t.bind(n,26625,23))},"en-ca":function(){return n.e(5027).then(n.t.bind(n,85027,23))},"en-gb":function(){return n.e(290).then(n.t.bind(n,90290,23))},"en-ie":function(){return n.e(5401).then(n.t.bind(n,65401,23))},"en-il":function(){return n.e(6786).then(n.t.bind(n,36786,23))},"en-in":function(){return n.e(1496).then(n.t.bind(n,51496,23))},"en-nz":function(){return n.e(1627).then(n.t.bind(n,51627,23))},"en-sg":function(){return n.e(3769).then(n.t.bind(n,63769,23))},"en-tt":function(){return n.e(1747).then(n.t.bind(n,81747,23))},en:function(){return n.e(730).then(n.t.bind(n,40730,23))},eo:function(){return n.e(9433).then(n.t.bind(n,79433,23))},"es-do":function(){return n.e(523).then(n.t.bind(n,30523,23))},"es-mx":function(){return n.e(8119).then(n.t.bind(n,88119,23))},"es-pr":function(){return n.e(4324).then(n.t.bind(n,74324,23))},"es-us":function(){return n.e(4730).then(n.t.bind(n,4730,23))},es:function(){return n.e(9725).then(n.t.bind(n,49725,23))},et:function(){return n.e(3672).then(n.t.bind(n,53672,23))},eu:function(){return n.e(5759).then(n.t.bind(n,45759,23))},fa:function(){return n.e(60).then(n.t.bind(n,40060,23))},fi:function(){return n.e(628).then(n.t.bind(n,90628,23))},fo:function(){return n.e(6114).then(n.t.bind(n,86114,23))},"fr-ca":function(){return n.e(7962).then(n.t.bind(n,87962,23))},"fr-ch":function(){return n.e(6833).then(n.t.bind(n,26833,23))},fr:function(){return n.e(7605).then(n.t.bind(n,67605,23))},fy:function(){return n.e(5924).then(n.t.bind(n,95924,23))},ga:function(){return n.e(8517).then(n.t.bind(n,78517,23))},gd:function(){return n.e(9882).then(n.t.bind(n,59882,23))},gl:function(){return n.e(2466).then(n.t.bind(n,92466,23))},"gom-latn":function(){return n.e(7548).then(n.t.bind(n,7548,23))},gu:function(){return n.e(3033).then(n.t.bind(n,93033,23))},he:function(){return n.e(8706).then(n.t.bind(n,88706,23))},hi:function(){return n.e(9606).then(n.t.bind(n,9606,23))},hr:function(){return n.e(9707).then(n.t.bind(n,79707,23))},ht:function(){return n.e(7697).then(n.t.bind(n,77697,23))},hu:function(){return n.e(7970).then(n.t.bind(n,57970,23))},"hy-am":function(){return n.e(1917).then(n.t.bind(n,61917,23))},id:function(){return n.e(6324).then(n.t.bind(n,26324,23))},is:function(){return n.e(4401).then(n.t.bind(n,6782,23))},"it-ch":function(){return n.e(3902).then(n.t.bind(n,3902,23))},it:function(){return n.e(7380).then(n.t.bind(n,37380,23))},ja:function(){return n.e(3008).then(n.t.bind(n,63008,23))},jv:function(){return n.e(2053).then(n.t.bind(n,82053,23))},ka:function(){return n.e(1865).then(n.t.bind(n,61865,23))},kk:function(){return n.e(47).then(n.t.bind(n,40047,23))},km:function(){return n.e(6541).then(n.t.bind(n,46541,23))},kn:function(){return n.e(1956).then(n.t.bind(n,21956,23))},ko:function(){return n.e(7579).then(n.t.bind(n,37579,23))},ku:function(){return n.e(6405).then(n.t.bind(n,56405,23))},ky:function(){return n.e(9025).then(n.t.bind(n,89025,23))},lb:function(){return n.e(3679).then(n.t.bind(n,86060,23))},lo:function(){return n.e(4652).then(n.t.bind(n,84652,23))},lt:function(){return n.e(5853).then(n.t.bind(n,55853,23))},lv:function(){return n.e(5819).then(n.t.bind(n,95819,23))},me:function(){return n.e(1975).then(n.t.bind(n,31975,23))},mi:function(){return n.e(9067).then(n.t.bind(n,49067,23))},mk:function(){return n.e(5453).then(n.t.bind(n,25453,23))},ml:function(){return n.e(6664).then(n.t.bind(n,16664,23))},mn:function(){return n.e(5634).then(n.t.bind(n,5634,23))},mr:function(){return n.e(6358).then(n.t.bind(n,26358,23))},"ms-my":function(){return n.e(7240).then(n.t.bind(n,17240,23))},ms:function(){return n.e(949).then(n.t.bind(n,60949,23))},mt:function(){return n.e(4096).then(n.t.bind(n,44096,23))},my:function(){return n.e(811).then(n.t.bind(n,30811,23))},nb:function(){return n.e(7357).then(n.t.bind(n,67357,23))},ne:function(){return n.e(8008).then(n.t.bind(n,48008,23))},"nl-be":function(){return n.e(5161).then(n.t.bind(n,35161,23))},nl:function(){return n.e(3879).then(n.t.bind(n,73879,23))},nn:function(){return n.e(4441).then(n.t.bind(n,4441,23))},"oc-lnc":function(){return n.e(3321).then(n.t.bind(n,23321,23))},"pa-in":function(){return n.e(3756).then(n.t.bind(n,93756,23))},pl:function(){return n.e(3121).then(n.t.bind(n,3121,23))},"pt-br":function(){return n.e(9922).then(n.t.bind(n,89922,23))},pt:function(){return n.e(4169).then(n.t.bind(n,34169,23))},rn:function(){return n.e(8053).then(n.t.bind(n,78053,23))},ro:function(){return n.e(310).then(n.t.bind(n,10310,23))},ru:function(){return n.e(4180).then(n.t.bind(n,4180,23))},rw:function(){return n.e(2286).then(n.t.bind(n,32286,23))},sd:function(){return n.e(1486).then(n.t.bind(n,71486,23))},se:function(){return n.e(1053).then(n.t.bind(n,21053,23))},si:function(){return n.e(921).then(n.t.bind(n,80921,23))},sk:function(){return n.e(5047).then(n.t.bind(n,85047,23))},sl:function(){return n.e(9801).then(n.t.bind(n,52182,23))},sq:function(){return n.e(3521).then(n.t.bind(n,33521,23))},"sr-cyrl":function(){return n.e(8103).then(n.t.bind(n,38103,23))},sr:function(){return n.e(8840).then(n.t.bind(n,58840,23))},ss:function(){return n.e(5647).then(n.t.bind(n,5647,23))},"sv-fi":function(){return n.e(8704).then(n.t.bind(n,8704,23))},sv:function(){return n.e(9220).then(n.t.bind(n,46839,23))},sw:function(){return n.e(4891).then(n.t.bind(n,74891,23))},ta:function(){return n.e(9466).then(n.t.bind(n,99466,23))},te:function(){return n.e(3510).then(n.t.bind(n,83510,23))},tet:function(){return n.e(2776).then(n.t.bind(n,12776,23))},tg:function(){return n.e(1756).then(n.t.bind(n,71756,23))},th:function(){return n.e(5953).then(n.t.bind(n,85953,23))},tk:function(){return n.e(5816).then(n.t.bind(n,55816,23))},"tl-ph":function(){return n.e(2166).then(n.t.bind(n,32166,23))},tlh:function(){return n.e(4601).then(n.t.bind(n,44601,23))},tr:function(){return n.e(2775).then(n.t.bind(n,72775,23))},tzl:function(){return n.e(5579).then(n.t.bind(n,65579,23))},"tzm-latn":function(){return n.e(108).then(n.t.bind(n,80108,23))},tzm:function(){return n.e(9908).then(n.t.bind(n,59908,23))},"ug-cn":function(){return n.e(4847).then(n.t.bind(n,34847,23))},uk:function(){return n.e(6261).then(n.t.bind(n,6261,23))},ur:function(){return n.e(9518).then(n.t.bind(n,9518,23))},"uz-latn":function(){return n.e(2161).then(n.t.bind(n,34542,23))},uz:function(){return n.e(710).then(n.t.bind(n,40710,23))},vi:function(){return n.e(2612).then(n.t.bind(n,42612,23))},"x-pseudo":function(){return n.e(2984).then(n.t.bind(n,92984,23))},yo:function(){return n.e(3333).then(n.t.bind(n,83333,23))},"zh-cn":function(){return n.e(1657).then(n.t.bind(n,21657,23))},"zh-hk":function(){return n.e(3653).then(n.t.bind(n,63653,23))},"zh-tw":function(){return n.e(221).then(n.t.bind(n,60221,23))},zh:function(){return n.e(6879).then(n.t.bind(n,76879,23))}}},43781:(e,t,n)=>{var r=n(38469),i=n(65236),o=n(150),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=i();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},_.flush=function(){return void 0===f?d:x(i())},_}},43821:(e,t,n)=>{var r=n(32361),i=n(94454),o=n(80303),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),i=n(90826),o=n(85736);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(794);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,i.u)(),[b,w]=(0,o.P)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),x=(0,c.d)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},E=Object.assign(Object.assign({},function(e,t={}){const{labelable:n,propNames:r}=t,i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a.has(o)||n&&s.has(o)||(null===r||void 0===r?void 0:r.has(o))||l.test(o))&&(i[o]=e[o]);return i}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:E,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:x})))}}var d=n(69220),f=n(32084),p=n(11669);var h=n(10176);const m=(0,d.om)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function({name:e,value:t,checked:n,defaultChecked:a,disabled:s,controlRef:l,controlProps:u,onUpdate:d,onChange:h,onFocus:m,onBlur:g,id:v}){const y=(0,i.u)(),b=r.useRef(null),[w,x]=(0,o.P)(n,null!==a&&void 0!==a&&a,d),_=(0,c.d)({initialValue:w,onReset:x}),E=(0,f.N)(l,b,_);return{checked:w,inputProps:Object.assign(Object.assign({},u),{name:e||y,value:t,id:v,onFocus:m,onBlur:g,disabled:s,type:"radio",onChange:e=>{x(e.target.checked),h&&h(e)},onChangeCapture:e=>{p.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:n,defaultChecked:a,"aria-checked":w,ref:E})}}(e),g=a||s,v=(0,h.If)(g)||(0,h.$D)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.om)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:i,style:o,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:o,className:v({size:n,width:i},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},44593:(e,t,n)=>{const r=n(71928),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>A,l0:()=>M,m7:()=>G});var r=n(96906),i=n(97091),o=n(90754),a=n(53850),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=r.Qd;function c(e,t){if(e===t||!(l(e)&&l(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const a of n)o[a]=c(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}function u(e){let t=0;for(const n in e)t++;return t}var d=e=>[].concat(...e);function f(e){return null!=e}var p=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var h=(0,i.VP)("__rtkq/focused"),m=(0,i.VP)("__rtkq/unfocused"),g=(0,i.VP)("__rtkq/online"),v=(0,i.VP)("__rtkq/offline");function y(e){return"query"===e.type}function b(e,t,n,r,i,o){return"function"===typeof e?e(t,n,r,i).filter(f).map(w).map(o):Array.isArray(e)?e.map(w).map(o):[]}function w(e){return"string"===typeof e?{type:e}:e}var x=Symbol("forceQueryFn"),_=e=>"function"===typeof e[x];function E(e){return e}function S(e,t,n,r){return b(n[e.meta.arg.endpointName][t],(0,i.sf)(e)?e.payload:void 0,(0,i.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function C(e,t,n){const r=e[t];r&&n(r)}function k(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[k(t)];r&&n(r)}var N={};function T({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:u,hasRehydrationInfo:d},assertTagType:f,config:p}){const y=(0,i.VP)(`${e}/resetApiState`);function b(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},C(e,t.queryCacheKey,(e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp}))}function w(e,t,n){C(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_(t.arg))return;const{merge:r}=s[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:i,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,o.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:i,requestId:l})));e.data=c}else e.data=n;else e.data=s[t.arg.endpointName].structuralSharing??1?c((0,o.Qx)(e.data)?(0,o.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))}const x=(0,i.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,i.aA)()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:i}=n;b(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),w(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i)}},prepare:e=>({payload:e.map((e=>{const{endpointName:t,arg:n,value:r}=e,i=s[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:a({queryArgs:n,endpointDefinition:i,endpointName:t})},value:r}})),meta:{[i.cN]:!0,requestId:(0,i.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){C(e,t,(e=>{e.data=(0,o.$i)(e.data,n.concat())}))},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{b(e,n,_(n),t)})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{w(e,t,n)})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:o})=>{C(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=o??i}}))})).addMatcher(d,((e,t)=>{const{queries:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||(e[r]=i)}))}}),E=(0,i.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=k(t);n in e&&delete e[n]},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[k(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:i})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&O(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||r===i?.requestId||(e[r]=i)}))}}),T=(0,i.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const i of Object.values(e))for(const e of Object.values(i)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:i,id:o}of r){const t=(e[i]??={})[o||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(x.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=u(t);for(const[r,i]of Object.entries(n))for(const[t,n]of Object.entries(i)){const i=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){i.includes(e)||i.push(e)}}})).addMatcher((0,i.i0)((0,i.sf)(t),(0,i.WA)(t)),((e,t)=>{const n=S(t,"providesTags",s,f),{queryCacheKey:r}=t.meta.arg;T.caseReducers.updateProvidedBy(e,T.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),A=(0,i.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),I=(0,i.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,o.$i)(e,t.payload),prepare:(0,i.aA)()}}}),P=(0,i.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...p},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(g,(e=>{e.online=!0})).addCase(v,(e=>{e.online=!1})).addCase(h,(e=>{e.focused=!0})).addCase(m,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),R=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:P.reducer});return{reducer:(e,t)=>R(y.match(t)?void 0:e,t),actions:{...P.actions,...x.actions,...A.actions,...I.actions,...E.actions,...T.actions,resetApiState:y}}}var A=Symbol.for("RTKQ/skipToken"),I={status:"uninitialized"},P=(0,o.jM)(I,(()=>{})),R=(0,o.jM)(I,(()=>{}));var D=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const i=D?.get(t);if("string"===typeof i)n=i;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,r.Qd)(t)&&D?.set(t,e),n=e}return`${e}(${n})`};function M(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=j;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:j({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:(0,i.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,i.gk)(39))}else{o.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(o.endpointDefinitions[n]):Object.assign(o.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function L(e,...t){return Object.assign(e,...t)}var z=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,d={getSubscriptions:c,getSubscriptionCount:e=>u(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,u)=>{if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return i=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,d];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return n?.[e]?.[t]&&(n[e][t]=i),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,i=n[e.queryCacheKey]??={};return i[`${t}_running`]={},e.subscribe&&(i[t]=e.subscriptionOptions??i[t]??{}),!0}let i=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;i||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[o]=t.subscriptionOptions??e[o]??{},i=!0}}return i})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,o.vI)(i,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),i=t,a=null}),500));const s="string"==typeof c.type&&!!c.type.startsWith(r),l=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!s&&!l}return[p,!1]}};var F=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:a,unsubscribeQueryResult:s,cacheEntriesUpserted:l}=t.internalActions,c=(0,i.i0)(s.match,n.fulfilled,n.rejected,l.match);function u(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function f(e,t,n,i){const o=r.endpointDefinitions[t],s=o?.keepUnusedDataFor??i.keepUnusedDataFor;if(s===1/0)return;const l=Math.max(0,Math.min(s,2147482.647));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(a({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(n,i,o)=>{if(c(n)){const t=i.getState()[e];let r;if(l.match(n))r=n.payload.map((e=>e.queryDescription.queryCacheKey));else{const{queryCacheKey:e}=s.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)f(e,t.queries[e]?.endpointName,i,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(r.hasRehydrationInfo(n)){const t=i.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(o))f(e,n?.endpointName,i,t.config)}}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:a})=>{const s=(0,i.$S)(r),l=(0,i.$S)(o),c=(0,i.sf)(r,o),u={};function d(e,t,n){const r=u[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function f(e){const t=u[e];t&&(delete u[e],t.cacheEntryRemoved())}function p(t,r,i,o,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;const c={},d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw B}))]);f.catch((()=>{})),u[i]=c;const p=e.endpoints[t].select("query"===s.type?r:i),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=l(r,m);Promise.resolve(g).catch((e=>{if(e!==B)throw e}))}return(n,i,a)=>{const h=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(l(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?k(t.payload):""}(n);function m(e,n,r,o){const s=a[t].queries[n],l=i.getState()[t].queries[n];!s&&l&&p(e,o,n,i,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:i,queryCacheKey:o}=e;m(r,o,n.meta.requestId,i),d(o,t,{})}else if(o.pending.match(n)){i.getState()[t].mutations[h]&&p(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,i,n.meta.requestId)}else if(c(n))d(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))f(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(u))f(e)}},q=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},$=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=a.internalActions,f=(0,i.i0)((0,i.sf)(r),(0,i.WA)(r)),p=(0,i.i0)((0,i.sf)(r,o),(0,i.TK)(r,o));let h=[];function m(n,r){const i=r.getState(),o=i[e];if(h.push(...n),"delayed"===o.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(o))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(i,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===u(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",n,s),t):p(e)?m([],t):a.util.invalidateTags.match(e)&&m(b(e.payload,void 0,void 0,void 0,void 0,s),t)}},H=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const o={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=i.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=o[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;o[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(l)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=i.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=o[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=o[e];t?.timeout&&clearTimeout(t.timeout),delete o[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))l(e)}()}},V=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=(0,i.mm)(n,r),a=(0,i.TK)(n,r),s=(0,i.sf)(n,r),l={};return(n,r)=>{if(o(n)){const{requestId:i,arg:{endpointName:o,originalArgs:a}}=n.meta,s=t.endpointDefinitions[o],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[i]=t;const u=e.endpoints[o].select("query"===s.type?a:i),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:i,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(o,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function W(e){const{reducerPath:t,queryThunk:n,api:o,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,i.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),d=[q,F,$,H,U,V];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:c},p=d.map((e=>e(l))),m=z(l),v=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:o}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=i.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],i=c[e];i&&t&&((Object.values(i).some((e=>!0===e[a]))||Object.values(i).every((e=>void 0===e[a]))&&s.config[a])&&(0===u(i)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t))))}}))}return(e,t)=>{h.match(e)&&a(t,"refetchOnFocus"),g.match(e)&&a(t,"refetchOnReconnect")}})(l);return e=>l=>{if(!(0,r.ve)(l))return e(l);i||(i=!0,n.dispatch(o.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[f,h]=m(l,u,d);let g;if(g=f?e(l):h,n.getState()[t]&&(v(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(const e of p)e(l,u,d);return g}},actions:l};function f(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var K=Symbol(),G=({createSelector:e=a.Mz}={})=>({name:K,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:l,refetchOnMountOrArgChange:c,refetchOnFocus:S,refetchOnReconnect:C,invalidationBehavior:O},N){(0,o.YT)();const I=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:g,onOffline:v,onFocus:h,onFocusLost:m},util:{}});const{queryThunk:D,mutationThunk:j,patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,buildMatchThunkActions:U}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const l=async(e,{signal:r,abort:o,rejectWithValue:a,fulfillWithValue:s,dispatch:l,getState:u,extra:d})=>{const f=n[e.endpointName];try{let n,a=E;const h={signal:r,abort:o,dispatch:l,getState:u,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},m="query"===e.type?e[x]:void 0;if(m?n=m():f.query?(n=await t(f.query(e.originalArgs),h,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,h,f.extraOptions,(e=>t(e,h,f.extraOptions))),n.error)throw new p(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[i.cN]:!0})}catch(h){let t=h;if(t instanceof p){let n=E;f.query&&f.transformErrorResponse&&(n=f.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[i.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],i=n[e]?.config.refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&i);return!!a&&(!0===a||(Number(new Date)-Number(o))/1e3>=a)}const u=(0,i.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0}),condition(t,{getState:r}){const i=r(),o=i[e]?.queries?.[t.queryCacheKey],a=o?.fulfilledTimeStamp,s=t.originalArgs,l=o?.originalArgs,u=n[t.endpointName];return!!_(t)||"pending"!==o?.status&&(!!c(t,i)||!(!y(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:o,state:i}))||!a)},dispatchConditionRejection:!0}),d=(0,i.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,i)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(i());if(o)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(i,s)=>{const l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>i(a.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===l.status)return c;let u;if("data"in l)if((0,o.a6)(l.data)){const[e,t,r]=(0,o.vI)(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(l.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||i(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[x]:()=>({data:n})})),patchQueryData:(e,t,i,o)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!o)return;const f=a.endpoints[e].select(t)(c()),p=b(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.f$)((0,i.mm)(e),f(t)),matchFulfilled:(0,i.f$)((0,i.sf)(e),f(t)),matchRejected:(0,i.f$)((0,i.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:I}),{reducer:q,actions:$}=T({context:N,queryThunk:D,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:C,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:a,invalidationBehavior:O}});L(t.util,{patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,resetApiState:$.resetApiState,upsertQueryEntries:$.cacheEntriesUpserted}),L(t.internalActions,$);const{middleware:H,actions:V}=W({reducerPath:a,context:N,queryThunk:D,mutationThunk:j,api:t,assertTagType:I});L(t.util,V),L(t,{reducer:q,middleware:H});const{buildQuerySelector:G,buildMutationSelector:Y,selectInvalidatedBy:Q,selectCachedArgsForQuery:Z}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>P,i=e=>R;return{buildQuerySelector:function(t,i){return s=>{if(s===A)return n(r,o);const l=e({queryArgs:s,endpointDefinition:i,endpointName:t});return n((e=>a(e)?.queries?.[l]??P),o)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?k(e)??A:e,n(t===A?i:e=>a(e)?.mutations?.[t]??R,o)}},selectInvalidatedBy:function(e,n){const r=e[t],i=new Set;for(const t of n.filter(f).map(w)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:d(Object.values(e)))??[];for(const t of n)i.add(t)}return d(Array.from(i.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});L(t.util,{selectInvalidatedBy:Q,selectCachedArgsForQuery:Z});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,i){const a=(l,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[x]:m,...g}={})=>(v,y)=>{const b=e({queryArgs:l,endpointDefinition:i,endpointName:n}),w=t({...g,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:n,originalArgs:l,queryCacheKey:b,[x]:m}),_=r.endpoints[n].select(l),E=v(w),S=_(y());d(v);const{requestId:C,abort:k}=E,O=S.requestId!==C,N=o.get(v)?.[b],T=()=>_(y()),A=Object.assign(m?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:l,requestId:C,subscriptionOptions:h,queryCacheKey:b,abort:k,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&v(s({queryCacheKey:b,requestId:C}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:C,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(P=v,R={},(I=o).has(P)?I.get(P):I.set(P,R).get(P));e[b]=A,A.then((()=>{delete e[b],u(e)||o.delete(v)}))}var I,P,R;return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(o,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i}),f=o(c);d(o);const{requestId:p,abort:h,unwrap:m}=f,g=(v=e=>({error:e}),f.unwrap().then((e=>({data:e}))).catch(v));var v;const y=Object.assign(g,{arg:f.arg,requestId:p,abort:h,unwrap:m,reset:()=>{o(l({requestId:p,fixedCacheKey:i}))}}),b=a.get(o)||{};return a.set(o,b),b[p]=y,y.then((()=>{delete b[p],u(b)||a.delete(o)})),i&&(b[i]=y,y.then((()=>{b[i]===y&&(delete b[i],u(b)||a.delete(o))}))),y}},getRunningQueryThunk:function(t,n){return r=>{const a=i.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return o.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:D,mutationThunk:j,api:t,serializeQueryArgs:s,context:N});return L(t.util,{getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:K,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},y(n)?L(r.endpoints[e],{name:e,select:G(e,n),initiate:J(e,n)},U(D,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},45264:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>T,yJ:()=>m,sC:()=>I,AO:()=>h,Fu:()=>g});var r=n(58168);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(68643);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,d=void 0===l?b:l,g=o.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=f(o,S)),m(o,r,n)}function k(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.A)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(C(e.state))}function A(){P(C(_()))}var I=!1;function P(e){if(I)I=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,M(i))}(e)}))}}var R=C(_()),D=[R.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,T),i&&window.addEventListener(x,A)):0===L&&(window.removeEventListener(w,T),i&&window.removeEventListener(x,A))}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:j,push:function(e,r){var i="PUSH",o=m(e,r,k(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=D.indexOf(B.location.key),u=D.slice(0,c+1);u.push(o.key),D=u,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=m(e,r,k(),B.location);O.confirmTransitionTo(o,i,d,(function(e){if(e){var r=j(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=D.indexOf(B.location.key);-1!==c&&(D[c]=o.key),N({action:i,location:o})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(k(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=C[s],g=d.encodePath,w=d.decodePath;function x(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function E(e){(0,r.A)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var T=!1,A=null;function I(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var i=x(),a=B.location;if(!T&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(T)T=!1,E();else{var t="POP";_.confirmTransitionTo(e,t,o,(function(n){n?E({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(T=!0,M(i))}(e)}))}}(i)}}var P=O(),R=g(P);P!==R&&N(R);var D=x(),j=[h(D)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,I):0===L&&window.removeEventListener(S,I)}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);if(O()!==i){A=t,function(e){window.location.hash=e}(i);var o=j.lastIndexOf(h(B.location)),a=j.slice(0,o+1);a.push(t),j=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=g(l+t);O()!==i&&(A=t,N(i));var o=j.indexOf(h(B.location));-1!==o&&(j[o]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=A(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=A(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=m(e,t,f(),w.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,d({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},45296:(e,t,n)=>{var r=n(97269);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},45865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},45904:e=>{"use strict";e.exports=Math.floor},46343:(e,t,n)=>{"use strict";var r=n(94701),i=n(90308),o=n(69123),a=n(5635),s=n(39955),l=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),i=n(8944);const o=(0,r.om)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(o(`${r}_${(0,i.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Xx:()=>h,rF:()=>f});var r=n(14750),i=n(97091),o=n(959),a=n(11822),s=n(21334),l=n(87747);function c(e,t,n,i){const a=i?`CAST(SUBSTRING(CAST(Path AS String), ${i.length}) AS Utf8) AS Path`:"Path";let s=`Path='${e}' OR Path LIKE '${e}/%'`;const l=function(e){var t,n;const i=[],o=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&o&&a>o)throw new Error("Invalid date range");if(a){const e=o===a?">=":">";i.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return o&&i.push(`IntervalEnd <= Timestamp('${new Date(o).toISOString()}')`),i.join(" AND ")}(t);l.length&&(s=`(${s}) AND ${l}`);return`SELECT\n ${a},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${s}\n${(0,o.JD)(n)}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${(0,o.JD)(t)}\nLIMIT 20`}const d=(0,i.Z0)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=s.F.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async({database:e,path:t="",sortOrder:n,filters:r},{signal:i})=>{try{const o=await window.api.viewer.sendQuery({query:(null===r||void 0===r?void 0:r.mode)===l.h.Immediate?u(t,n,e):c(t,r,n,e),database:e,action:"execute-scan"},{signal:i,withRetries:!0});if((0,a.We)(o))return{error:o};return{data:(0,a.fW)(o)}}catch(o){return{error:o}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,i;return"immediate"===(null===e||void 0===e||null===(t=e.filters)||void 0===t?void 0:t.mode)||!(!(0,r.eP)(null===e||void 0===e||null===(n=e.filters)||void 0===n?void 0:n.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))}})}),overrideExisting:"throw"})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>o,z3:()=>r.z,fn:()=>r.f});var r=n(15619),i=n(76086);const o=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/i.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/i.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/i.tt):0})},46626:(e,t,n)=>{var r=n(19305),i=n(60242),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),i=n(64255),o=n.n(i);const a="pending";function s(e){const{children:t,text:n,options:i,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(o(),{text:n,onCopy:p,options:i},f)}},46710:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e,t){return e&&r(t,i(t),e)}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>o});var r=n(59284),i=n(359);function o(e){return t=>{e&&[i.D.ENTER,i.D.SPACEBAR,i.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>o(e)),[e])}}},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(59284),i=n(11507);function o(){return r.useContext(i.G).mobile}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(59284),i=n(42933);function o(){const e=r.useContext(i.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(59284);const i=(0,n(69220).om)("control-label"),o=r.forwardRef((({children:e,className:t,labelClassName:n,title:o,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:i("indicator",l.props.className)});return r.createElement("label",{ref:d,title:o,style:a,className:i({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:i("text",n)},e):null)}));o.displayName="ControlLabel"},47018:(e,t,n)=>{var r=n(80222),i=n(40691),o=n(9112),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),i=n(21334),o=n(46549),a=n(73891),s=n(41650);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:i,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,o.ey)(s),partitionWriteLag:(0,a.i6)(i),partitionWriteIdleTime:(0,a.MC)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.Z0)({name:"partitions",initialState:{},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=i.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const i=await window.api.viewer.getConsumer({path:e,database:t,consumer:n},{signal:r}),c=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,i=l(n),{endOffset:c}=i,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kf)(c)&&(0,s.kf)(d)?Number(c)-Number(d):0,w=(0,s.kf)(c)&&(0,s.kf)(u)?Number(c)-Number(u):0;return{...i,partitionId:t,readSpeed:(0,o.ey)(g),consumerWriteLag:(0,a.i6)(m),consumerReadLag:(0,a.i6)(h),consumerReadIdleTime:(0,a.MC)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(i.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),i=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(n.partitions);return{data:i}}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"})},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),i=n(77506),o=n(66781),a=n(60712);const s=(0,i.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[i]=(0,o.y)(t);return i?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),i=n(81240),o=n(48699),a=n(46700),s=n(99991);const l=(0,n(69220).om)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:x=!1,value:_,onCopy:E,onClick:S,qa:C}=e,k=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&k,N="copy"===n&&k,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:P,closeIconSize:R}=c[d],D=p&&r.createElement("div",{className:l("addon",{side:k?"start":void 0,type:"icon"})},p),j=k&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(_)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},_))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(o.u,{status:e||"pending",size:P})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(s.I,{size:R,data:i.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":C},D,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return A&&y&&!T?r.createElement(a.$,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>s,oK:()=>l,Ru:()=>u,g4:()=>d});var r=n(1448),i=n(3357),o=n(59001),a=n(76086),s=function(e){return e.En="en",e.Ru="ru",e}(s||{});const l=s.En,c=o.f.readUserSettingsValue(a.jS,l),u=new r.TH({lang:c,fallbackLang:s.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jK)({lang:c})},48681:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(76575)},48699:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),i=n(59284);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.5 1.5 0 0 1 8 13.5H4a1.5 1.5 0 0 1-1.06-.44A1.5 1.5 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.5 1.5 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06zm-1.47-1.03L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06l.97-.97.97.97a.75.75 0 0 0 1.06-1.06M6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4zM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1z",clipRule:"evenodd"})),a=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001z"}),i.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1zM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.5 1.5 0 0 0 8 6.5zM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8z",clipRule:"evenodd"})));var s=n(51016),l=n(99991);function c(e){var{status:t}=e,n=(0,r.Tt)(e,["status"]);return"error"===t?i.createElement(l.I,Object.assign({data:o},n)):"success"===t?i.createElement(l.I,Object.assign({data:a},n)):i.createElement(l.I,Object.assign({data:s.A},n))}},48955:(e,t,n)=>{var r=n(537),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},49034:(e,t,n)=>{"use strict";n.d(t,{d:()=>F});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(o){}var i=y.call(e);return r&&(t?e[b]=n:delete e[b]),i},x=Object.prototype.toString;var _=w,E=function(e){return x.call(e)},S=h?h.toStringTag:void 0;var C=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},k=function(e){return null!=e&&"object"==typeof e};var O=p,N=i,T=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==C(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,P=/^0o[0-7]+$/i,R=parseInt;var D=i,j=c,M=function(e){if("number"==typeof e)return e;if(T(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=O(e);var n=I.test(e);return n||P.test(e)?R(e.slice(2),n?2:8):A.test(e)?NaN:+e},L=Math.max,z=Math.min;var F=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=j();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?z(n,o-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=M(t)||0,D(n)&&(u=!!n.leading,o=(d="maxWait"in n)?L(M(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},49526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),i=n.n(r);const o="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"cell"},l=()=>({type:o}),c=(e,t,n,r,i)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:i}),u=(e=s,t)=>{switch(t.type){case o:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&i()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},49837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(57855),t)},49860:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.orderedUnits=void 0,t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))};var r=365.2425,i=30.436875,o=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:i,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var i,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,i=a.slice(1);r<i.length;r++){var s=i[r],l=e[s];l&&(n+=l*o[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[x=a[v]]&&null!==h[x])if(g){var y=(null!==(i=h[g])&&void 0!==i?i:0)*m,b=o[x][g],w=Math.floor(y/b);h[x]=(null!==(s=h[x])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=x}else g=x}g=null;for(v=0;v<t.orderedUnits.length;v++){var x;if(void 0!==h[x=t.orderedUnits[v]]&&null!==h[x])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[x]=(null!==(d=h[x])&&void 0!==d?d:0)+_*o[g][x],g=x}else g=x}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];0!==a&&(t[o]=a)}return t}function c(e,n,r){var i;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=o[g][f]*c[g],c[g]=0}(E=e[f])&&(p+=E);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],x=w[0],_=w[1];0!==_&&(l[a]=(null!==(i=l[a])&&void 0!==i?i:0)+(x===a?_:_/o[a][x]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.53 1.53A.75.75 0 0 0 14.47.47l-1.29 1.29a4.24 4.24 0 0 0-5.423.483l-.58.58a.96.96 0 0 0 0 1.354l4.646 4.646a.96.96 0 0 0 1.354 0l.58-.58a4.24 4.24 0 0 0 .484-5.423zm-8.5 4.94a.75.75 0 0 1 0 1.06L5.78 8.78l1.44 1.44 1.25-1.25a.75.75 0 0 1 1.06 1.06l-1.25 1.25.543.543a.96.96 0 0 1 0 1.354l-.58.58a4.24 4.24 0 0 1-5.423.484l-1.29 1.29A.75.75 0 0 1 .47 14.47l1.29-1.29a4.24 4.24 0 0 1 .483-5.423l.58-.58a.96.96 0 0 1 1.354 0l.543.543 1.25-1.25a.75.75 0 0 1 1.06 0M3.5 8.62l-.197.197a2.743 2.743 0 0 0 3.879 3.879l.197-.197zm9.197-1.439-.197.197L8.621 3.5l.197-.197a2.743 2.743 0 0 1 3.879 3.879",clipRule:"evenodd"}))},50088:(e,t,n)=>{var r=n(38469),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},50490:(e,t,n)=>{var r=n(72220),i=n(57741),o=n(73073),a=o&&o.isMap,s=a?i(a):r;e.exports=s},50711:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},50743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,i.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,o.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new i.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})};var r=n(11345),i=n(57491),o=n(49860),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+N(s=e[c],c);l+=T(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=o+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},R={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:R,ReactCurrentOwner:E};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},51016:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"}))},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},51682:e=>{"use strict";e.exports=Math.abs},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},52497:(e,t,n)=>{var r=n(50088),i=n(22807),o=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},52530:e=>{"use strict";e.exports=RangeError},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>i,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>o});const r="tenantPage",i={query:"query",diagnostics:"diagnostics"},o={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),i=n(25540),o=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(68643);o.Component;o.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=o.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,o.createElement("a",u)}));var m=p((function(e,t){var n=e.component,i=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.A)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,o.createElement(i,h)}))})),g=function(e){return e},v=o.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,x=e.sensitive,_=e.strict,E=e.style,S=e.to,C=e.innerRef,k=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=O?(0,r.B6)(n.pathname,{path:O,exact:y,sensitive:x,strict:_}):null,T=!!(b?b(N,n):N),A="function"===typeof h?h(T):h,I="function"===typeof E?E(T):E;T&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,f),I=(0,s.A)({},I,p));var P=(0,s.A)({"aria-current":T&&i||null,className:A,style:I,to:a},k);return g!==v?P.ref=t||C:P.innerRef=C,o.createElement(m,P)}))}))},52964:(e,t,n)=>{var r=n(19750),i=n(59698),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>yi,sx:()=>eo,gL:()=>io});var r=n(59284),i=n(25540),o=n(58168),a=n(96906),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,i=e.children,o=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=n||s;return r.createElement(l.Provider,{value:o},i)};var h=n(98587),m=n(5290),g=n.n(m),v=n(94771),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],x=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function C(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,i.current)}catch(p){n=p,d=p}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),A=void 0!==T&&T,I=n.context,P=void 0===I?s:I,R=(0,h.A)(n,y),D=P;return function(t){var n=t.displayName||t.name||"Component",i=a(n),s=(0,o.A)({},R,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:i,wrappedComponentName:n,WrappedComponent:t}),l=R.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=i[0],l=i[1],c=i[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:D}),[a,D]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),N=(0,r.useMemo)((function(){if(!m)return x;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],A=N[1],I=(0,r.useMemo)((function(){return g?p:(0,o.A)({},p,{subscription:T})}),[g,p,T]),P=(0,r.useReducer)(_,w,k),R=P[0][0],j=P[1];if(R&&R.error)throw R.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,R,c]);E(S,[L,M,F,c,B,z,A]),E(C,[m,y,T,O,L,M,F,z,A,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,o.A)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:I},U):U}),[f,U,I])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=i,A){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,o.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=i,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!N(e[n[i]],t[n[i]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=I(i),i=r(t,n)),i},r}}const R=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?A((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];const D=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(){return{}}))}];function j(e,t,n){return(0,o.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h=!d(p,a),m=!u(i,o,p,a);return o=i,a=p,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(o,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(i,u){return p?h(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,h.A)(t,L),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?F:z)(a,s,l,e,o)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,i=t.mapStateToPropsFactories,a=void 0===i?D:i,s=t.mapDispatchToPropsFactories,l=void 0===s?R:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,i){void 0===i&&(i={});var s=i,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?$:p,g=s.areOwnPropsEqual,v=void 0===g?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,x=void 0===w?T:w,_=(0,h.A)(s,U),E=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),C=q(n,u,"mergeProps");return r(f,(0,o.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:C,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}const V=H();var W,K=n(48681);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],i=(0,r.useRef)(!0),o=(0,r.useRef)(n),a=i.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){i.current=!1,o.current=a}),[a]),a.result}W=K.unstable_batchedUpdates,l=W;var Y=G,Q=function(e,t){return G((function(){return e}),t)},Z=n(68643),J=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,i=e.border,o=void 0===i?te:i,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,o)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Z.A)(!1),n},ie=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:o,margin:a,padding:s})},oe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ie(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},i={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:i})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(77995);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function de(){}function fe(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,o.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var pe=!0,he="Invariant failed";function me(e){this.message=e}function ge(e,t){if(!e)throw new me(pe?he:he+": "+(t||""))}me.prototype.toString=function(){return this.message};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=de,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof me&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ye=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ye(e.index),i=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},we=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},xe=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},_e={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?we(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+xe(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+we(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+xe(e.source)+"\n "}},Ee={x:0,y:0},Se=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ce=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},ke=function(e,t){return e.x===t.x&&e.y===t.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ae=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Ie=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Pe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Re=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},De=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,a=function(e,t){return t?Pe(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,n){var r;return n&&n.increasedBy?(0,o.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:De(s,i)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=Ce(t,n.scroll.initial),i=Oe(r),a=(0,o.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,o.A)({},e,{frame:a,subject:s})};function Le(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ze(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=ze(e,t);return-1!==n?e[n]:void 0}function Be(e){return Array.prototype.slice.call(e)}var Ue=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qe=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$e=(0,le.A)((function(e){return Le(e)})),He=(0,le.A)((function(e){return Le(e)})),Ve=(0,le.A)((function(e,t){var n=He(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function We(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ke(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=(0,le.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ye=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Qe={point:Ee,value:0},Ze={invisible:{},visible:{},all:[]},Je={displaced:Ze,displacedBy:Qe,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},tt=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},it=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ee;return Pe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,o)&&function(e,t,n){return n(t)(e)}(a,r,o)},ot=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!ot({target:s,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate}(l,a,o),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function lt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Ze,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=Ye(t,r);if(null==s)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=Ge(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ut(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ge(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=r[a].descriptor.index;return ut(a,o)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=Ke(n);i||ge(!1);var o=i.draggableId,a=r[o].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?o?Ee:Oe(i.point):o?i.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Se(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ht=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.end]+pt(t,r),ht(t,n.marginBox,r))},gt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ht(t,n.marginBox,r))},vt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=Ve(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ne(t.line,n.contentBox[t.start]+pt(t,r),ht(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,o))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=ie(f.page,u.point);return gt({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ut(h.descriptor.id,o)){var m=ie(h.page,Oe(o.displacedBy.point));return mt({axis:l,moveRelativeTo:m,isMoving:s})}return mt({axis:l,moveRelativeTo:h.page,isMoving:s})},yt=function(e,t){var n=e.frame;return n?Se(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):ft({impact:t,draggables:i,afterCritical:o}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=Ce(t,e.scroll.initial),r=Oe(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xt(e,t){return e.map((function(e){return t[e]}))}var _t=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Se(e.scroll.diff.displacement,t)}(e.viewport,t),i=Ce(r,n.page.borderBox.center);return Se(n.client.borderBox.center,i)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=Ce(r,t.page.borderBox.center),u={target:Pe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:i};return l?function(e){return it((0,o.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):at(u)},St=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=Ve(r.descriptor.id,i),f=Ye(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!We(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,o.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=Ge(n,i);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=ze(u,(function(e){return e.descriptor.id===c}));-1===d&&ge(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:i,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:i,afterCritical:u});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_t({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=Ce(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,a=e.maxScrollChange,s=wt(n,Se(n.scroll.current,a)),l=r.frame?Me(r,Se(r.frame.scroll.current,a)):r,c=t.displaced,u=st({afterDragging:xt(c.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:xt(c.all,i),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,o.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:i,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},Ct=function(e){var t=e.subject.active;return t||ge(!1),t},kt=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?Ce(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?Pe(n,Oe(t.displacedBy.point)):n},Nt=(0,le.A)((function(e,t){var n=t[e.line];return{value:n,point:Ne(e.line,n)}})),Tt=function(e,t){return(0,o.A)({},e,{scroll:(0,o.A)({},e.scroll,{max:t})})},At=function(e,t,n){var r=e.frame;Ye(t,e)&&ge(!1),e.subject.withPlaceholder&&ge(!1);var i=Nt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=Ve(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return o<=0?null:Ne(r.line,o)}(e,i,n),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,o.A)({},e,{subject:l})}var c=a?Se(r.scroll.max,a):r.scroll.max,u=Tt(r,c),d=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,o.A)({},e,{subject:d,frame:u})},It=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=$e(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return et(o.frame)(Ct(e))})).filter((function(e){var n=Ct(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Ct(e),n=Xe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Ct(e)[s.crossAxisStart],i=Ct(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return Ct(e)[s.crossAxisStart]===Ct(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(Ct(e)[s.start],Ct(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Ct(e)[s.start]-Ct(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,Re(Ct(e))),i=Ae(n,Re(Ct(t)));return r!==i?r-i:Ct(e)[s.start]-Ct(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=Ve(c.descriptor.id,o),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return at({target:Ot(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=Te(t,yt(r,kt(e,o))),a=Te(t,yt(r,kt(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Ze,displacedBy:Qe,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),d=Ye(i,a)?a:At(a,i,o);return Et({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||f?e:e+1}(),h=Nt(a.axis,i.displaceBy);return ct({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Ze,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:o,afterCritical:l});return{clientSelection:_t({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Pt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Rt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Pt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?St({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):It({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Dt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function jt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=$e(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],s=t[o.crossAxisStart],l=t[o.crossAxisEnd],c=Xe(i[o.crossAxisStart],i[o.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map((function(e){var n=e.axis,r=Ne(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}var Lt=function(e,t){return J(Pe(e,t))};function zt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:i});if(!c)return Je;var u=i[c],d=Ve(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Lt(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=Nt(i.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ge(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/4,o=ut(t,a),l=zt({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&d<n[s.end]-i:u>n[s.start]-c+i&&u<n[s.end]-c-i:l?d>n[s.start]+c+i&&d<n[s.end]+c-i:u>n[s.start]+i&&u<n[s.end]-i}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Nt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),i=zt({displaced:o,id:t});return r?i?f<=n:d<n-u:i?f<=n+u:d<n})),inHomeList:Ye(n,r)});return ct({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,o.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=Pt(t),a=Pt(n);if(!i)return r;if(i===a)return r;var s=r[i];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ge(!1);var n=e.frame;if(!n){var r=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,o.A)({},e,{subject:r})}var i=t.oldFrameMaxScroll;i||ge(!1);var a=Tt(n,i),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,o.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},qt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=i||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=Ce(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Se(t.initial.client.borderBoxCenter,d)},p={selection:Se(f.selection,l.scroll.current),borderBoxCenter:Se(f.borderBoxCenter,l.scroll.current),offset:Se(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,o.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Ft({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=Ut({previousImpact:i,impact:o,droppables:r}),s=Pt(o);if(!s)return a;var l=r[s];if(Ye(t,l))return a;if(l.subject.withPlaceholder)return a;var c=At(l,t,n);return Bt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,o.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var $t=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=st({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,o.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return _t({pageBorderBoxCenter:s,draggable:n,viewport:o})},Vt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var i=t.impact,o=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Pt(i);u||ge(!1);var d=l[u],f=$t({impact:i,viewport:o,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return qt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=Nt(n.axis,t.displaceBy),a=Ve(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ge(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Kt=function(e){0},Gt=function(e){0},Yt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ge(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=ie(t.client,n),a=oe(i,r);return(0,o.A)({},t,{placeholder:(0,o.A)({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:Se(i,s),initialWindowScroll:r.scroll.initial});return l}))},Qt=function(e){return"SNAP"===e.movementMode},Zt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Qt(e)||n?qt({state:e,dimensions:r}):Vt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,o.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Xt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Xt),"FLUSH"===t.type)return(0,o.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,i=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:i,borderBoxCenter:c.client.borderBox.center,offset:Ee},f={client:d,page:{selection:Se(d.selection,a.scroll.initial),borderBoxCenter:Se(d.selection,a.scroll.initial),offset:Se(d.selection,a.scroll.diff.value)}},p=$e(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Wt({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ge(!1),(0,o.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),function(e){var t=e.state,n=e.published;Kt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Me(n,e.scroll)})),i=(0,o.A)({},t.dimensions.droppables,{},Ue(r)),a=qe(Yt({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=(0,o.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:i,draggables:s},c=Pt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=Wt({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Ft({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Gt();var y=(0,o.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,o.A)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var g=t.payload.client;return ke(g,e.current.client.selection)?e:qt({state:e,clientSelection:g,impact:Qt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Jt(e);if("COLLECTING"===e.phase)return Jt(e);Dt(e)||ge(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var x=Me(w,b);return Zt(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,C=e.dimensions.droppables[E];C||ge(!1),C.isEnabled===S&&ge(!1);var k=(0,o.A)({},C,{isEnabled:S});return Zt(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Dt(e)||ge(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,A=e.dimensions.droppables[N];A||ge(!1),A.isCombineEnabled===T&&ge(!1);var I=(0,o.A)({},A,{isCombineEnabled:T});return Zt(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Dt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var P=t.payload.newScroll;if(ke(e.viewport.scroll.current,P))return Jt(e);var R=wt(e.viewport,P);return Qt(e)?Vt({state:e,viewport:R}):qt({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Dt(e))return e;var D=t.payload.maxScroll;if(ke(D,e.viewport.scroll.max))return e;var j=(0,o.A)({},e.viewport,{scroll:(0,o.A)({},e.viewport.scroll,{max:D})});return(0,o.A)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ge(!1);var M=Rt({state:e,type:t.type});return M?qt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ge(!1),(0,o.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},hn=function(e){return{type:"DROP_COMPLETE",payload:e}},mn=function(e){return{type:"DROP",payload:e}},gn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var vn="cubic-bezier(.2,1,.1,1)",yn={drop:0,combining:.7},bn={drop:.75},wn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+wn,snap:"transform "+wn+", opacity "+wn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wn,placeholder:"height "+wn+", width "+wn+", margin "+wn},_n=function(e){return ke(e,Ee)?null:"translate("+e.x+"px, "+e.y+"px)"},En=_n,Sn=function(e,t){var n=_n(e);return n?t?n+" scale("+bn.drop+")":n:null},Cn=.33,kn=.55,On=kn-Cn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),a=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&ge(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&ge(!1);var s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,o.A)({},r,{displaced:Ze}),didDropInsideDroppable:!0}:{impact:$t({draggables:t,impact:s,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?We(d):null,h=f?Ke(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,s=r.droppables,l=Pt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i});return Ce(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:d};if(!ke(i.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,i=Te(t,n);if(i<=0)return Cn;if(i>=1500)return kn;var o=Cn+On*(i/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(hn({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function An(e){var t=e.onWindowScroll;var n=ce((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),i=de;function o(){return i!==de}return{start:function(){o()&&ge(!1),i=fe(window,[r])},stop:function(){o()||ge(!1),n.cancel(),i(),i=de},isActive:o}}var In=function(e){var t=An({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Pn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ze(e,(function(e){return e.timerId===t}));-1===n&&ge(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Rn=function(e,t){Kt(),t(),Gt()},Dn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},jn=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Pn(),r=null,i=function(n){r||ge(!1),r=null,Rn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Rn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Rn(0,(function(){var r=e().onBeforeDragStart;r&&r(Dn(t,n))}))},start:function(i,o){r&&ge(!1);var a=Dn(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){Rn(0,(function(){return jn(e().onDragStart,a,t,_e.onDragStart)}))}))},update:function(i,a){var s=We(a),l=Ke(a);r||ge(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(i,r.lastCritical);c&&(r.lastCritical=i);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,o.A)({},Dn(i,r.mode),{combine:l,destination:s});n.add((function(){Rn(0,(function(){return jn(e().onDragUpdate,h,t,_e.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:i,abort:function(){if(r){var e=(0,o.A)({},Dn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ln=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ge(!1),e.dispatch(hn({completed:r.completed}))}else t(n)}}},zn=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=fe(window,[o])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(mn({reason:r.reason})))}}}},Bn=a.Zz,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,l=o.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(hn({completed:c.completed})),"IDLE"!==n().phase&&ge(!1),r(pn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(i)}}}}(n),Nn,Ln,zn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&ge(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(l),In,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(o,s))))};var qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=Ce({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},$n=function(){var e=document.documentElement;return e||ge(!1),e},Hn=function(){var e=$n();return qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Kt();var i=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,i=$n(),o=i.clientWidth,a=i.clientHeight;return{frame:J({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),c={draggables:qe(l),droppables:Ue(s)};return Gt(),{dimensions:c,critical:t,viewport:i}};function Wn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Kn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,Kt();var e=r,o=e.additions,a=e.removals,s=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Ee)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},Gt(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||ge(!1);var i=n.critical.draggable;"ADDITION"===t.type&&Wn(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Wn(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},Vn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return o},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Yn=function(e){window.scrollBy(e.x,e.y)},Qn=(0,le.A)((function(e){return $e(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Zn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=function(e,t){var n=Fe(Qn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return o},Jn=.25,Xn=.05,er=28,tr=function(e){return Math.pow(e,2)},nr={stopDampeningAt:1200,accelerateAt:360},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},ir=nr.accelerateAt,or=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return er;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=er*tr(1-n);return Math.ceil(r)}(t,n);return 0===o?0:i?Math.max(function(e,t){var n=t,r=or,i=Date.now()-n;if(i>=or)return e;if(i<ir)return 1;var o=rr({startOfRange:ir,endOfRange:r,current:i}),a=e*tr(o);return Math.ceil(a)}(o,r),1):o},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,i);return n[i.end]<n[i.start]?ar({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*ar({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})},lr=Ie((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:o}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:o}),c=lr({x:l,y:s});if(ke(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?ke(u,Ee)?null:u:null},ur=Ie((function(e){return 0===e?0:e>0?1:-1})),dr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Se(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return ke(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=ur(r),a=dr({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},hr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},mr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=cr({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void i(l)}var c=Zn({center:a,destination:Pt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&o(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(e,t){if(!hr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&hr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=Ce(t,r);return n(e.descriptor.id,i),Ce(t,i)},o=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var i=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var o=Ce(n,i);return r(o),Ce(n,o)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Pt(e.impact);r||ge(!1);var a=i(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=o(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Se(e.current.client.selection,n);t({client:r})}(e,l)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),i=ce(n),o=null,a=function(e){o||ge(!1);var t=o,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Kt(),o&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){o&&(r.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),o=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},yr="data-rbd",br=function(){var e=yr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),wr=function(){var e=yr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr=function(){var e=yr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_r={contextId:yr+"-scroll-container-context-id"},Er=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+xn.outOfTheWay+";\n ";return{selector:n(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(xr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Er(i,"always"),resting:Er(i,"resting"),dragging:Er(i,"dragging"),dropAnimating:Er(i,"dropAnimating"),userCancel:Er(i,"userCancel")}},Cr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,kr=function(){var e=document.querySelector("head");return e||ge(!1),e},Or=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Nr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof Nr(e).HTMLElement}function Ar(e,t){var n="["+br.contextId+'="'+e+'"]',r=Be(document.querySelectorAll(n));if(!r.length)return null;var i=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return i&&Tr(i)?i:null}function Ir(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ge(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Le(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||ge(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return Le(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Pr=r.createContext(null),Rr=function(){var e=document.body;return e||ge(!1),e},Dr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jr=function(e){return"rbd-announcement-"+e};var Mr=0,Lr={separator:"::"};function zr(e,t){return void 0===t&&(t=Lr),Y((function(){return""+e+t.separator+Mr++}),[t.separator,e])}var Fr=r.createContext(null);function Br(e){0}function Ur(e,t){Br()}function qr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var $r,Hr=(($r={})[13]=!0,$r[9]=!0,$r),Vr=function(e){Hr[e.keyCode]&&e.preventDefault()},Wr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Kr,Gr={type:"IDLE"};function Yr(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,o=e.clientY;if(0===t){var a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&ge(!1),function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,a)){e.preventDefault();var l=s.actions.fluidLift(a);i({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Vr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Wr,fn:t}]}function Qr(){}var Zr=((Kr={})[34]=!0,Kr[33]=!0,Kr[36]=!0,Kr[35]=!0,Kr);function Jr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Zr[r.keyCode]?r.preventDefault():Vr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Wr,fn:n}]}var Xr={type:"IDLE"};var ei={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ti(e,t){if(null==t)return!1;if(Boolean(ei[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ti(e,t.parentElement)}function ni(e,t){var n=t.target;return!!Tr(n)&&ti(e,n)}var ri=function(e){return J(e.getBoundingClientRect()).center};var ii=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function oi(e,t){return null==e?null:e[ii](t)?e:oi(e.parentElement,t)}function ai(e,t){return e.closest?e.closest(t):oi(e,t)}function si(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var i=function(e){return"["+br.contextId+'="'+e+'"]'}(e),o=ai(r,i);return o&&Tr(o)?o:null}function li(e){e.preventDefault()}function ci(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ui(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!Gn(n.getState(),i))}function di(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!ui({lockAPI:t,store:r,registry:i,draggableId:a}))return null;var c=i.draggable.getById(a),u=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=Fe(Be(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Tr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&ni(u,l))return null;var d=t.claim(s||de),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){ci({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=fe(window,[{eventName:"click",fn:li,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,o.A)({isActive:function(){return ci({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return ln({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,o.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(cn)},moveRight:function(){return m(dn)},moveDown:function(){return m(un)},moveLeft:function(){return m(fn)}};return g({liftActionArgs:{id:a,clientSelection:ri(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){ci({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var fi=[function(e){var t=(0,r.useRef)(Gr),n=(0,r.useRef)(de),i=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),u(i,o)}}}}}}),[e]),o=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Q((function(){n.current=fe(window,[o,i],{passive:!1,capture:!0})}),[o,i]),s=Q((function(){"IDLE"!==t.current.type&&(t.current=Gr,n.current(),a())}),[a]),l=Q((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Q((function(){var e=Yr({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=fe(window,e,{capture:!0,passive:!1})}),[l,s]),u=Q((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Cr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Qr),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var o=e.tryGetLock(r,l,{sourceEvent:n});if(o){n.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),i()}}}}),[e]),i=Q((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);Cr((function(){return i(),function(){t.current()}}),[i])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),i=Q((function(){return t.current}),[]),o=Q((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,l,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),f(i,a)}}}}}}),[e]),s=Q((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Q((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(Xr),n.current(),s())}),[s,o]),c=Q((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Q((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:i},r=fe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:Wr,fn:t}]}(t),e),o=fe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Wr,fn:t}]}(t),e);n.current=function(){r(),o()}}),[c,i,l]),d=Q((function(){var e=i();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),f=Q((function(e,t){"IDLE"!==i().type&&ge(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,i,o,d]);Cr((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(Xr))}}),[i,s,o]),Cr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function pi(e){var t=e.contextId,n=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?fi:[],o||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||ge(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ge(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Q((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Cr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),Cr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Q((function(e){return ui({lockAPI:l,registry:i,store:n,draggableId:e})}),[l,i,n]),d=Q((function(e,r,o){return di({lockAPI:l,registry:i,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,l,i,n]),f=Q((function(e){return function(e,t){var n=si(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Q((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),h=Q((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Q(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Br();for(var v=0;v<s.length;v++)s[v](g)}var hi=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function mi(e){return e.current||ge(!1),e.current}function gi(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=qr(e),d=Q((function(){return hi(u.current)}),[u]),f=function(e){var t=Y((function(){return jr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,o.A)(e.style,Dr),Rr().appendChild(e),function(){setTimeout((function(){var t=Rr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Q((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,i=zr("hidden-text",{separator:"-"}),o=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Rr().appendChild(e),function(){var t=Rr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Sr(e)}),[e]),i=(0,r.useRef)(null),o=(0,r.useRef)(null),a=Q((0,le.A)((function(e){var t=o.current;t||ge(!1),t.textContent=e})),[]),s=Q((function(e){var t=i.current;t||ge(!1),t.textContent=e}),[]);Cr((function(){(i.current||o.current)&&ge(!1);var r=Or(t),l=Or(t);return i.current=r,o.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),kr().appendChild(r),kr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),kr().removeChild(t),e.current=null};e(i),e(o)}}),[t,s,a,n.always,n.resting,e]);var l=Q((function(){return a(n.dragging)}),[a,n.dragging]),c=Q((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Q((function(){o.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Q((function(e){mi(c).dispatch(e)}),[]),v=Y((function(){return(0,a.zH)({publishWhileDragging:nn,updateDroppableScroll:on,updateDroppableIsEnabled:an,updateDroppableIsCombineEnabled:sn,collectionStarting:rn},g)}),[g]),y=function(){var e=Y(Ir,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return Kn(y,v)}),[y,v]),w=Y((function(){return vr((0,o.A)({scrollWindow:Yn,scrollDroppable:b.scrollDroppable},(0,a.zH)({move:ln},g)))}),[b.scrollDroppable,g]),x=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=Q((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=Q((function(t){var n=Ar(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Q((function(e,t){n.current===e&&(n.current=t)}),[]),c=Q((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Q((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return Cr((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Un({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:x,getResponders:d,styleMarshal:m})}),[f,w,b,x,d,m]);c.current=_;var E=Q((function(){var e=mi(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Q((function(){var e=mi(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var C=Q((function(e){return Gn(mi(c).getState(),e)}),[]),k=Q((function(){return Dt(mi(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:C,isMovementAllowed:k,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,C,k,y]);return pi({contextId:t,store:_,registry:y,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Fr.Provider,{value:O},r.createElement(p,{context:Pr,store:_},e.children))}var vi=0;function yi(e){var t=Y((function(){return""+vi++}),[]),n=e.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return r.createElement(ve,null,(function(i){return r.createElement(gi,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var bi=function(e){return function(t){return e===t}},wi=bi("scroll"),xi=bi("auto"),_i=(bi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Ei=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return _i(n,wi)||_i(n,xi)},Si=function e(t){return null==t||t===document.body||t===document.documentElement?null:Ei(t)?t:e(t.parentElement)},Ci=function(e){return{x:e.scrollLeft,y:e.scrollTop}},ki=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Oi=function(e){return{closestScrollable:Si(e),isFixedOnPage:ki(e)}},Ni=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=X({top:r,right:a,bottom:o,left:i},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=oe(u,i),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:oe(e,i),scroll:Ci(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ee,displacement:Ee}}}}(),u="vertical"===o?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:je({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p},Ti={passive:!1},Ai={passive:!0},Ii=function(e){return e.shouldPublishImmediately?Ti:Ai};function Pi(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Ri=function(e){return e&&e.env.closestScrollable||null};function Di(){}var ji={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Mi=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ji:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?xn.placeholder:null}};var Li=r.memo((function(e){var t=(0,r.useRef)(null),n=Q((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==i?(n(),u(!1),Di):t.current?Di:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):Di}),[i,c,n]);var d=Q((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),f=Mi({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),zi=r.createContext(null);var Fi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),Bi=5e3,Ui=4500,qi=function(e,t){return t?xn.drop(t.duration):e?xn.snap:xn.fluid},$i=function(e,t){return e?t?yn.drop:yn.combining:null};function Hi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(i),l=s?Sn(n,o):En(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:qi(a,i),transform:l,opacity:$i(o,s),zIndex:s?Ui:Bi,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vi(e){var t=zr("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Q((function(e){var t=o();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=ae(i,r),a=oe(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)}),[n,o]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);Cr((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),Cr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function Wi(e,t,n){Ur()}function Ki(e){e.preventDefault()}var Gi=function(e,t){return e===t},Yi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Zi={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qi(null)}};var Ji=V((function(){var e=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=Pt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,a,i.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==i.draggableId)return null;var f=i.isClone,p=r.dimensions.draggables[i.draggableId],h=d.result,m=h.mode,g=Yi(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:v?yn.drop:null,scale:v?bn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}}(),t=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)(Qi),n=(0,le.A)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ee,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ke(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;var d=Oe(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=o.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Zi}}),{dropAnimationFinished:gn},null,{context:Pr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useRef)(null),n=Q((function(e){t.current=e}),[]),i=Q((function(){return t.current}),[]),o=Pi(Fr),a=o.contextId,s=o.dragHandleUsageInstructionsId,l=o.registry,c=Pi(zi),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Wi(),Br(),y||Vi(Y((function(){return{descriptor:f,registry:l,getDraggableRef:i,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,i,v,g,m]));var x=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ki}:null}),[a,s,h,m]),_=Q((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=Y((function(){var e=Hi(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(E,b.snapshot,S)}));function Xi(e){return Pi(zi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Ji,e):null}function eo(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return r.createElement(Xi,(0,o.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))}var to=function(e,t){return e===t.droppable.type},no=function(e,t){return t.draggables[e.draggable.id]};var ro={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},io=V((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,o.A)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.A)((function(r,i,o,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!i)return t;if(!a)return e;var f={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!to(a,c))return t;var u=no(c,n.dimensions),d=Pt(n.impact)===o;return r(o,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!to(a,f.critical))return t;var p=no(f.critical,n.dimensions);return r(o,s,Yi(f.result)===o,Pt(f.impact)===o,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!to(a,h.critical))return t;var m=Pt(h.impact)===o,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===o;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Pr,pure:!0,areStatePropsEqual:Gi})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,i=t.isMovementAllowed,o=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Q((function(){return o.current}),[]),w=Q((function(e){o.current=e}),[]),x=(Q((function(){return a.current}),[]),Q((function(e){a.current=e}),[]));Ur();var _=Q((function(){i()&&v({maxScroll:Hn()})}),[i,v]);!function(e){var t=(0,r.useRef)(null),n=Pi(Fr),i=zr("droppable"),o=n.registry,a=n.marshal,s=qr(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.A)((function(e,n){t.current||ge(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Q((function(){var e=t.current;return e&&e.env.closestScrollable?Ci(e.env.closestScrollable):Ee}),[]),f=Q((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=Q((function(){var e=t.current,n=Ri(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Q((function(e,r){t.current&&ge(!1);var i=s.current,o=i.getDroppableRef();o||ge(!1);var a=Oi(o),c={ref:o,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=Ni({ref:o,descriptor:l,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(_r.contextId,n.contextId),d.addEventListener("scroll",h,Ii(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Q((function(){var e=t.current,n=Ri(e);return e&&n||ge(!1),Ci(n)}),[]),v=Q((function(){var e=t.current;e||ge(!1);var n=Ri(e);t.current=null,n&&(p.cancel(),n.removeAttribute(_r.contextId),n.removeEventListener("scroll",h,Ii(e.scrollOptions)))}),[h,p]),y=Q((function(e){var n=t.current;n||ge(!1);var r=Ri(n);r||ge(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:i,descriptor:l,callbacks:b}}),[b,l,i]);Cr((function(){return c.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}}),[b,l,v,w,a,o.droppable]),Cr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Cr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var E=r.createElement(Fi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,i=e.data,o=e.animate;return r.createElement(Li,{placeholder:i,onClose:t,innerRef:x,animate:o,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),C=g?g.dragging.draggableId:null,k=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:C}}),[l,C,c]);return r.createElement(zi.Provider,{value:k},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Xi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return K.createPortal(n,y())}())}));io.defaultProps=ro},53577:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},53683:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},53850:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>g,X4:()=>h,i5:()=>c});var r=Symbol("NOT_FOUND");function i(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:i=s,maxSize:o=1,resultEqualityCheck:a}=n,c=l(i);let u=0;const d=o<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function i(e){const i=n.findIndex((n=>t(e,n.key)));if(i>-1){const e=n[i];return i>0&&(n.splice(i,1),n.unshift(e)),e.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e,t={}){let n=p();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f)l=t.v;else if(l=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.s=f,s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function m(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,l={},c=e.pop();"object"===typeof c&&(l=c,c=e.pop()),i(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=h,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,v=o(f),y=o(m),b=a(e),w=d((function(){return r++,c.apply(null,arguments)}),...v);const x=p((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var g=m(h),v=Object.assign(((e,t=g)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>v})},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},54090:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});let r=function(e){return e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red",e}({})},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(46878);function i(){return(0,r.w)().direction}},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>o,x$:()=>a});var r=n(92459),i=n(52531);const o={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:i.ml.overview,title:"Overview"},{id:i.ml.acl,title:"ACL"}],s=[{id:i.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},54353:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},54386:(e,t,n)=>{var r=n(12249),i=n(75125),o=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},54533:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(r),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},54573:(e,t,n)=>{var r=n(16320),i=n(72078),o=n(59698),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},54736:(e,t,n)=>{var r=n(61522),i=n(82121),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,p2:()=>L,U1:()=>F,In:()=>M,jC:()=>D});var r=n(97091),i=n(45264),o=n(19859),a=n(28197);const s=({href:e,singleClusterMode:t,customBackend:n})=>{if(t){if(n){var r;const t=null!==(r=new URL(e).searchParams.get("backend"))&&void 0!==r?r:void 0;return{basename:"/",backend:t||n}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var i,o;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(i=t.get("backend"))&&void 0!==i?i:void 0,clusterName:null!==(o=t.get("clusterName"))&&void 0!==o?o:void 0}}};var l=n(81463),c=n(21334),u=n(88610),d=n(49818),f=n(22735),p=n.n(f),h=n(96294),m=n.n(h),g=n(17148),v=n.n(g),y=n(74309),b=n.n(y),w=n(49526),x=n(93650),_=n(93694),E=n(92189),S=n(90565);const C={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.ue.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.ue.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.ue.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.ue.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function k(e,t){return v()({},e,t.query)}let O,N,T,A="";function I(e,t,n){const r=(0,E.stateToParams)(e,t,n);let{location:i}=r;if(i.search===A)return{location:n,shouldPush:!1};{const e=/\?\w+/;return A=i.search,e.test(n.search)&&(i=function(e,t){const{search:n,...r}=e,i=b().parse(t.search.slice(1)),o=(0,x.getMatchingDeclaredPath)(C,e),a=o&&C[o];p()(m()(a),(e=>{delete i[e]})),p()(m()(C.global||{}),(e=>{delete i[e]}));const s=b().stringify(i,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(i,n)),{...r,location:i}}}function P(e,t,n){return(r,i)=>{const o=((n,r)=>{const{type:i,payload:o}=r;if(!o)return n;if(w.LOCATION_POP===i||w.LOCATION_PUSH===i){const r=o;return r.query=(0,_.parseQuery)(e,o),t(n,r)}return n})(n(r,i),i);return o!==r?o:r}}function R(e,t,n,i){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,o.zx)(C,k,e,t,I);return{locationMiddleware:n,reducersWithLocation:P(C,k,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:!window.react_app_disable_checks&&{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:!window.react_app_disable_checks&&{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...i)});return(0,u.N8)(l),l}const D=window.web_version,j=window.custom_backend,M=window.meta_backend,L=window.code_assist_backend,z="undefined"===`${M}`;function F({aRootReducer:e=l.A,singleClusterMode:t=z,api:n=new a.i({webVersion:D,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,i.zR)({basename:N}),u=R(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,o.BL)(u,r),window.api=n,{history:r,store:u}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(59284),i=n(35719);const o=r.createContext({theme:i.z,activeMediaQuery:"s"})},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},55799:(e,t,n)=>{var r=n(74413),i=n(54353),o=n(72665),a=n(33120),s=n(99889);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},56029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(49526)},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),i=n(21334),o=n(20680);const a=(0,r.Z0)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=i.F.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async({clusterName:e},{signal:t,getState:n})=>{try{const r=window.api.meta?await window.api.meta.getTenants(e,{signal:t}):await window.api.viewer.getTenants(e,{signal:t});let i;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();i=(0,o.T3)(r.TenantInfo,e)}else i=[];return{data:i}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>R,r6:()=>D,lr:()=>w,ZV:()=>N,Nd:()=>C,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>k,ki:()=>O,Ey:()=>j,wI:()=>_,vN:()=>M,H7:()=>x,CR:()=>I,U9:()=>y});var r=n(14750),i=n(15619),o=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,i,o,a=!1){let l=t(Number(n)),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r)),c=a,u=1);return[e({value:n,withSizeLabel:c,size:i||l,precision:u,delimiter:o}),e({value:r,size:i||l,delimiter:o})]}var c=n(82621);const u={noUnit:{value:1,label:""},thousand:{value:1e3,label:(0,c.A)("label_thousand")},million:{value:1e6,label:(0,c.A)("label_million")},billion:{value:1e9,label:(0,c.A)("label_billion")},trillion:{value:1e12,label:(0,c.A)("label_trillion")}},d=e=>{let t="noUnit";return e>=u.thousand.value&&(t="thousand"),e>=u.million.value&&(t="million"),e>=u.billion.value&&(t="billion"),e>=u.trillion.value&&(t="trillion"),t},f=({value:e,size:t,withSizeLabel:n=!0,delimiter:r,...i})=>{if(!(0,s.kf)(e))return"";const o=Number(e),a=null!==t&&void 0!==t?t:d(o),l=(({value:e,size:t="thousand",precision:n=0})=>{const r=I(Number(e)/u[t].value,n);return N(r)})({value:o,size:a,...i});return n?((e,t,n=s.en)=>{const r=u[t].label;return r?e+n+r:e})(l,a,r):l};var p=n(48372);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"],"d":"d","s":"s"}'),m=(0,p.g4)("ydb-format-cpu",{en:h}),g=e=>(0,s.kf)(e)?(0,a.p)(e).format("0 b"):"",v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"";function b(e){if(!(0,s.kf)(e))return;const t=e<0?"-":"",n=(0,r.p0)(Math.abs(e),"s").rescale();let i;return i=Math.floor(n.asDays())>0?n.format(`d[${m("d")}${s.en}]hh:mm:ss`):n.hours()>0?n.format("h:mm:ss"):n.minutes()>0?n.format("m:ss"):n.format(`s[${m("s")}]`),t+i}const w=e=>b(Number(e)/1e3);function x(e,t){let n=E(e,t);return n=n<0?0:n,b(n)}function _(e,t){let n=E(e,t);return n=n<0?0:n,b(-n)}function E(e,t=(new Date).getTime()){return(Number(t)-Number(e))/1e3}function S(e,t,n,r,o){return l(i.z,i.f,e,t,n,r,o)}function C(e,t,n,r,i){return l(f,d,e,t,n,r,i)}const k=(e,t)=>S(e,t,"gb"),O=(e,t)=>S(e,t,"tb"),N=e=>(0,s.kf)(e)?(0,a.p)(e).format("0,0.[00000]"):"",T=(e,t=2)=>{if(!(0,s.kf)(e))return"";const n=Number(e).toFixed(t);return(0,a.p)(n).format("0.[00]%")},A=e=>{const t=(e/o.Jg).toFixed(2);return`${N(t)} hours`},I=(e,t=0)=>{const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},P=e=>{const t=Number(e)/1e6;return I(t,3)},R=e=>{if(void 0!==e)return(0,a.p)(P(e)).format("0.[000]")},D=(e,{withTimeZone:t,defaultValue:n=""}={})=>{var i;const o=t?" z":"",a=null===(i=(0,r.bQ)(Number(e)))||void 0===i?void 0:i.format(`YYYY-MM-DD HH:mm${o}`);return null!==a&&void 0!==a?a:n},j=(e,t="")=>{var n;const i=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==i&&void 0!==i?i:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},56932:(e,t,n)=>{const r=n(22750).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},56993:function(e,t,n){var r,i,o;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,i=[t,n(59284),n(60712)],r=function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t=d(t),l(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=y(e,"string");return"symbol"==r(t)?t:t+""}function y(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var b={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},x={x:"innerWidth",y:"innerHeight"},_={x:"offsetWidth",y:"offsetHeight"},E={x:"offsetLeft",y:"offsetTop"},S={x:"overflowX",y:"overflowY"},C={x:"scrollWidth",y:"scrollHeight"},k={x:"scrollLeft",y:"scrollTop"},O={x:"width",y:"height"},N=function(){},T=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",N,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},A="ReactList failed to reach a stable state.",I=40,P=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},R=function(e){for(var t=e.props.axis,n=e.getEl(),r=S[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},D=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[x[t]]:n[b[t]]},j=function(e,t){var n=e.length,r=e.minSize,i=e.type,o=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(o="simple"!==i&&o?Math.max(Math.min(o,n-a),0):0)%s)&&(o-=l,a+=l),o===t.from&&a===t.size?t:m(m({},t),{},{from:o,size:a})},M=e.default=function(e){function t(e){var n;return i(this,t),(n=s(this,t,[e])).state=j(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>I)return this.unstable=!0,console.error(A);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(P(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.removeEventListener("mousewheel",N,T)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[w[t]]||0,r=E[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=k[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],i=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),o=Math.max(0,Math.min(r,i)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+o-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[k[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,i=C[this.props.axis];return e===window?Math.max(n[i],r[i]):e[i]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,i=r.itemSize,o=r.itemsPerRow;if(n&&i&&o)return{itemSize:i,itemsPerRow:o};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[_[t]],c=Math.abs(l-i);if((isNaN(c)||c>=1)&&(i=l),!i)return{};for(var u=E[t],d=s[u],f=a[o=1];f&&f[u]===d;f=a[o])++o;return{itemSize:i,itemsPerRow:o}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!==typeof e&&(e=N),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",N)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.addEventListener("mousewheel",N,T))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var i=this.props.axis,o=n[0],a=n[n.length-1];r=this.getOffset(a)+a[_[i]]-this.getOffset(o)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,i=this.props,o=i.length,a=i.pageSize,s=0,l=0,c=0,u=o-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=o-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(j(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var i=this.getStartAndEnd(),o=i.start,a=i.end,s=j(this.props,{from:Math.floor(o/n)*r,size:(Math.ceil((a-o)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,i=n.itemsPerRow;if(r)return t[e]=Math.floor(e/i)*r;for(var o=e;o>0&&null==t[--o];);for(var a=t[o]||0,s=o;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=_[this.props.axis],i=0,o=n.length;i<o;++i)e[t+i]=n[i][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,i=r.axis,o=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(o)return o(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[_[i]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),i=Math.min(r,n),o=Math.max(r,n);return t<=i?this.setScroll(i):t>o?this.setScroll(o):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,i=n.size,o=this.getStartAndEnd(0),a=o.start,s=o.end,l={},c=r;c<r+i;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,i=this.state,o=i.from,a=i.size,s=[],l=0;l<a;++l)s.push(n(o+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,i=t.length,o=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===o)return u;var d={position:"relative"},f={},p=Math.ceil(i/c)*c,h=this.getSpaceBefore(p,f);h&&(d[O[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return(0,n.jsx)("div",{style:d,ref:function(t){return e.el=t},children:(0,n.jsx)("div",{style:b,children:u})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=j(e,t);return n===t?null:n}}])}(t.Component);g(M,"displayName","ReactList"),g(M,"defaultProps",{axis:"y",itemRenderer:function(e,t){return(0,n.jsx)("div",{children:e},t)},itemsRenderer:function(e,t){return(0,n.jsx)("div",{ref:t,children:e})},length:0,minSize:1,pageSize:10,scrollParentGetter:R,scrollParentViewportSizeGetter:D,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},57467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[o.RLSCONFIG]&&e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]&&Object.keys(e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS]).forEach((function(t){(0,o.overrideAccessors)(t,e[o.RLSCONFIG][o.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(i){var a=t.getState(),s=r(i),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,o.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,o){var s=function(n,o){var s=o.type,l=o.payload;if(s!==i.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,o),o);return s!==n?s:n}}};var i=n(49526),o=n(93650),a=n(93694),s=n(92189)},57491:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DurationImpl=void 0,t.isDuration=function(e){return p.isDuration(e)};var a=n(16244),s=n(77966),l=n(13064),c=n(16572),u=n(50743),d=n(49860),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:i(i({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),i=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var o=r+function(e){return 4800*e/146097}(n+i/864e5);switch(t){case"months":return o;case"quarters":return o/3;case"years":return o/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+i/6048e5;case"days":return a+i/864e5;case"hours":return 24*a+i/36e5;case"minutes":return 1440*a+i/6e4;case"seconds":return 86400*a+i/1e3;case"milliseconds":return Math.floor(864e5*a)+i;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),i=(0,u.createDuration)(t,n).toObject(),o=0,a=Object.entries(i);o<a.length;o++){var s=a[o],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?i({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,c.getLocaleData)(this._locale);return(0,a.fromTo)(this,t.relativeTime,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,i(i({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=o(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,x=a;w<x.length;w++){var _=x[w];if(_.literal)p+=_.value;else{var E=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,i(i({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),C=g?Math.floor(E):E;p+=S.format(C)}else{C=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(C<0?"-":"").concat(Math.abs(C).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},57855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){void 0===t&&(t={});if(!e)return;var n,i,a,s=t.roundUp,l=t.timeZone,c="";"now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(i=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,i),c=e.substring(i+2)),n=(0,r.dateTime)({input:a,timeZone:l}));if(!n.isValid())return;if(!c.length)return n;return o(c,n,s)},t.parseDateMath=o;var r=n(60166),i=["y","Q","M","w","d","h","m","s"];function o(e,t,n){for(var r=e.replace(/\s/g,""),o=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!i.includes(f))return;0===c?o=n?o.endOf(f):o.startOf(f):1===c?o=o.add(u,f):2===c&&(o=o.subtract(u,f))}return o}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},58351:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>r.Hs,In:()=>r.In,P8:()=>r.P8,SL:()=>r.SL,U1:()=>r.U1,d$:()=>i.d,jC:()=>r.jC,p2:()=>r.p2});var r=n(54878),i=n(81463)},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),i=n(76086),o=n(11822),a=n(41650);const s={[i.k4]:"system",[i.jS]:void 0,[i.TJ]:!1,[i.RY]:!0,[i.ld]:[],[i.Mt]:r.Dg.query,[i.zk]:o.x5.execute,[i.LQ]:!0,[i.bs]:[],[i.g5]:!1,[i.lr]:!1,[i.s2]:!0,[i.LK]:!0,[i.bz]:!0,[i.kO]:!1,[i.IO]:!0,[i.Gj]:!1,[i.av]:0,[i.iD]:!1,[i.Xm]:!1,[i.J0]:!1,[i.fr]:void 0,[i.YQ]:void 0,[i.c4]:o.jU};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,[t,n])=>(e[t]=this.readUserSettingsValue(t,n),e)),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.qF)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),i=n(78524),o=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(i.v,{name:"403"}),title:e||(0,o.A)("403.title"),description:t||(0,o.A)("403.description"),...n})},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},59495:(e,t,n)=>{const r=n(3309),i=n(84405),o=n(97763),a=n(1836);function s(e,t,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{const a=i.create(n,o);r(e(a,t,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{const r=i.create(n,o);a(null,e(r,t,o))}catch(u){a(u)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),i=n(59284),o=n(87924),a=n.n(o),s=n(48681),l=n(69220);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=i.createContext(null);f.displayName="ToasterContext";const p=i.createContext([]);p.displayName="ToastsContext";const h=i.forwardRef((function({children:e},t){const[n,r]=i.useState([]),o=i.useCallback((e=>{const{name:t}=e;r((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:i.createRef()})]}))}),[]),a=i.useCallback((e=>{r((t=>d(t,e)))}),[]),s=i.useCallback((()=>{r((()=>[]))}),[]),l=i.useCallback(((e,t)=>{r((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),h=i.useRef(n);i.useEffect((()=>{h.current=n}),[n]);const m=i.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=i.useMemo((()=>({add:o,remove:a,removeAll:s,update:l,has:m})),[o,a,s,l,m]);return i.useImperativeHandle(t,(()=>({add:o,remove:a,removeAll:s,update:l,has:m}))),i.createElement(f.Provider,{value:g},i.createElement(p.Provider,{value:n},e))}));h.displayName="ToasterProvider";var m=n(46819),g=n(98587),v=n(58168),y=n(9417),b=n(25540),w=n(10641);function x(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=x(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),o}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,b.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,x(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):E(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=x(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.A)(e,["component","childFactory"]),o=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(w.A.Provider,{value:o},a):i.createElement(w.A.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const k=C;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),P=n(27612),R=n(81240);function D({onClose:e,timeout:t}){const[n,r,o]=function(){const[e,t]=i.useState(!1);return[i.useCallback((()=>{t(!0)}),[]),i.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=o?null:t,i.useEffect((()=>{if("number"!==typeof s)return;const e=setTimeout((()=>{a()}),s);return()=>{clearTimeout(e)}}),[a,s]),{onMouseOver:n,onMouseLeave:r}}var j=n(84476),M=n(99991),L=n(72837);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.N)({en:z,ru:F},"Toaster"),U=(0,l.om)("toast"),q=5e3,$={normal:null,info:T.A,success:A.A,warning:I.A,danger:I.A,utility:P.A};const H=i.forwardRef((function(e,t){const{name:n,content:r,actions:o,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=i.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=D({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=c?c(e):function({theme:e}){return e&&$[e]?i.createElement(M.I,{data:$[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return i.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&i.createElement("div",{className:U("icon-container")},w),i.createElement("div",{className:U("container")},y&&i.createElement("h3",{className:U("title")},a),d&&i.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},i.createElement(M.I,{data:R.A})),b&&i.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?i.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:o=!0},a)=>i.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),o&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:o,onClose:m})))})),V=(0,N.L)((0,l.om)("toast-animation-desktop")),W=(0,N.L)((0,l.om)("toast-animation-mobile"));function K(e){const{toasts:t,mobile:n,removeCallback:r}=e;return i.createElement(k,{component:null},t.map((e=>i.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?W:V,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},i.createElement(H,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(98392);const Q=(0,l.om)("toaster");function Z({children:e,className:t,mobile:n}){const r=i.useRef("undefined"===typeof document?void 0:document.createElement("div"));return i.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),i.useEffect((()=>{r.current&&(r.current.className=Q({mobile:n},t))}),[t,n]),i.createElement(Y.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:o}=function(){const e=i.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return i.useMemo((()=>e),[e])}(),a=i.useContext(p),s=i.createElement(K,{toasts:a,removeCallback:o,mobile:null!==t&&void 0!==t?t:r});return n?i.createElement(Z,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Z.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.om)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=i.createElement(h,{ref:e=>{this.componentAPI=e}},i.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},59653:(e,t,n)=>{var r=n(88118),i=n(59698);e.exports=function(e){return i(e)&&r(e)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>i.H,jl:()=>i.j,z_:()=>r.z});var r=n(18863),i=n(82176)},60166:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(40453),t),i(n(29863),t)},60242:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>V});var r=n(59284),i=n(45099),o=n.n(i),a=n(83791),s=n.n(a),l=n(37737),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",x="onChangeClientState",_="titleTemplate",E="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},C=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},k=e=>S(e,x)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i<r.length;i+=1){const o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}}return t}),[]),T=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;r<o.length;r+=1){const i=o[r],a=i.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][a]&&(i[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const o=Object.keys(i);for(let t=0;t<o.length;t+=1){const e=o[t],n={...r[e],...i[e]};r[e]=n}return e}),[]).reverse()},A=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},I=e=>Array.isArray(e)?e.join(""):e,P=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},R=(e,t)=>({...e,[t]:void 0}),D=["noscript","script","style"],j=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),z=(e,t)=>t.map(((t,n)=>{const i={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:e}}else i[n]=t[e]})),r.createElement(e,i)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const i=L(n,{key:t,[v]:!0});return[r.createElement("title",i,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=M(n),o=I(t);return i?`<${e} ${v}="true" ${i}>${j(o,r)}</${e}>`:`<${e} ${v}="true">${j(o,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>L(t),toString:()=>M(t)};default:return{toComponent:()=>z(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof i[t]?t:`${t}="${j(i[t],n)}"`;return e?`${e} ${r}`:r}),""),a=i.innerHTML||i.cssText||"",s=-1===D.indexOf(e);return`${t}<${e} ${v}="true" ${o}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=P(e,p),o=P(t,d),a=P(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",i.priority),...z("link",o.priority),...z("script",a.priority)],toString:()=>`${F("meta",i.priority,r)} ${F("link",o.priority,r)} ${F("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",i,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",o,r),script:F("script",m,r),style:F("style",a,r),title:F("title",{title:s,titleAttributes:l},r)}},U=[],q=!("undefined"===typeof window||!window.document||!window.document.createElement),$=class{instances=[];canUseDOM=q;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?U:this.instances,add:e=>{(this.canUseDOM?U:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?U:this.instances).indexOf(e);(this.canUseDOM?U:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H=r.createContext({}),V=class e extends r.Component{static canUseDOM=q;helmetData;constructor(t){super(t),this.helmetData=new $(this.props.context||{},e.canUseDOM)}render(){return r.createElement(H.Provider,{value:this.helmetData.value},this.props.children)}},W=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(v,"true"),i.some(((e,t)=>(a=t,n.isEqualNode(e))))?i.splice(a,1):o.push(n)})),i.forEach((e=>e.parentNode?.removeChild(e))),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===i.indexOf(s)&&i.push(s);const r=o.indexOf(s);-1!==r&&o.splice(r,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},G=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",i),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=I(e)),K("title",t)})(d,f);const p={baseTag:W("base",n),linkTags:W("link",o),metaTags:W("meta",a),noscriptTags:W("noscript",s),scriptTags:W("script",c),styleTags:W("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},Y=null,Q=e=>{Y&&cancelAnimationFrame(Y),e.defer?Y=requestAnimationFrame((()=>{G(e,(()=>{Y=null}))})):(G(e),Y=null)},Z=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],i),bodyAttributes:O("bodyAttributes",i),defer:S(i,b),encode:S(i,w),htmlAttributes:O("htmlAttributes",i),linkTags:T("link",["rel","href"],i),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:T("noscript",["innerHTML"],i),onChangeClientState:k(i),scriptTags:T("script",["src","innerHTML"],i),styleTags:T("style",["cssText"],i),title:C(i),titleAttributes:O("titleAttributes",i),prioritizeSeoTags:A(i,E)});var i;V.canUseDOM?Q(r):B&&(n=B(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!o()(R(this.props,"helmetData"),R(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[g[t]||t]=i[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,o,r);break;default:t=this.mapObjectTypeChildren(e,t,o,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof $)){i=new $(i.context,!0),delete n.helmetData}return i?r.createElement(Z,{...n,context:i.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Z,{...n,context:e})))}}},61758:(e,t,n)=>{var r=n(43781),i=n(38469);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},62391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(50743);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var i=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return i.isDuration}})},62509:(e,t,n)=>{var r=n(90035),i=n(82789),o=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},62871:(e,t,n)=>{var r=n(71259),i=n(80472);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},62990:(e,t,n)=>{var r=n(9112),i=n(39069),o=n(72633);e.exports=function(e,t){return o(i(e,t,r),e+"")}},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),i=n(69220),o=n(34379);const a=(0,i.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:i})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:i,"data-qa":o.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>i,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const i={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});const r=(0,n(69220).om)("color-text"),i=({color:e},t)=>r({color:e},t)},63546:(e,t,n)=>{var r=n(71259),i=n(68097),o=n(83649),a=n(38469),s=n(92061);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},63636:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"header":"Connect to the database","connection-info-message":"Use the following code to connect to the database","documentation":"Documentation","close":"Close","copy":"Copy","docs_bash":"https://ydb.tech/docs/en/concepts/connect","docs_cpp":"https://ydb.tech/docs/en/dev/example-app/example-cpp","docs_dotnet":"https://ydb.tech/docs/en/dev/example-app/example-dotnet","docs_go":"https://ydb.tech/docs/en/dev/example-app/go","docs_java":"https://ydb.tech/docs/en/dev/example-app/java","docs_nodejs":"https://ydb.tech/docs/en/dev/example-app/example-nodejs","docs_php":"https://ydb.tech/docs/en/dev/example-app/example-php","docs_python":"https://ydb.tech/docs/en/dev/example-app/python"}'),o=(0,r.g4)("ydb-connect-to-db",{en:i})},63679:(e,t,n)=>{var r=n(90035),i=n(89728),o=n(2859);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},63786:e=>{e.exports=function(e){return e.split("")}},63904:(e,t,n)=>{"use strict";var r=n(35711),i=n(69426),o=n(70084),a=n(98599);e.exports=a||r.call(o,i)},63909:(e,t,n)=>{var r=n(62871),i=n(96294);e.exports=function(e,t){return e&&r(t,i(t),e)}},64205:(e,t,n)=>{var r=n(4133),i=n(33609),o=n(150),a=n(68814),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=o(e),(n=null==n?0:l(i(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),i=n(85736),o=n(32084),a=n(11669),s=n(794);function l({name:e,value:t,id:n,defaultChecked:l,checked:c,indeterminate:u,onUpdate:d,onChange:f,controlRef:p,controlProps:h,onFocus:m,onBlur:g,disabled:v}){const y=r.useRef(null),[b,w]=(0,i.P)(c,null!==l&&void 0!==l&&l,d),x=!u&&c,_=u?"mixed":b,E=(0,s.d)({initialValue:b,onReset:w}),S=(0,o.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const C=r.useCallback((e=>{a.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:b,inputProps:Object.assign(Object.assign({},h),{name:e,value:t,id:n,onFocus:m,onBlur:g,disabled:v,type:"checkbox",onChange:e=>{w(e.target.checked),f&&f(e)},onClickCapture:C,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59284),i=n(81288),o=n(7889),a=n(78524),s=n(59109),l=n(44508),c=n(31062),u=n(60712);function d({title:e,description:t,error:n,children:d,...f}){return(0,i.uP)(n)?null:(0,i.Pq)(n)?(0,u.jsx)(s.O,{title:e,description:t,...f}):n||t?(0,u.jsx)(o.p,{image:(0,u.jsx)(a.v,{name:"error"}),title:e||(0,c.A)("error.title"),description:n?(0,u.jsx)(l.o,{error:n}):t,...f}):(0,u.jsx)(r.Fragment,{children:d})}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},65809:(e,t,n)=>{"use strict";function r(e){if(e&&"string"===typeof e)return e;if(e&&"object"===typeof e){if("data"in e&&"string"===typeof e.data)return e.data;if("statusText"in e&&"string"===typeof e.statusText)return e.statusText;if("message"in e&&"string"===typeof e.message)return e.message}return""}n.d(t,{$:()=>r})},66217:(e,t,n)=>{var r=n(67530),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>o,s5:()=>i});var r=n(38596);const i=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),o=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#8b4513","#b22222"],a="#3cb371",s=(e=[])=>(e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:i(e)}))),n=new Map;let r=o.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%o.length,n.set(t.version,o[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:i(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const i=o[r],a=Math.max(100-t*(100/s),20),l=`${i}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n})(((e,t=new Map)=>(e.forEach((e=>{var n;const i=(0,r.Q)(e),o=(0,r.U)(e);t.has(i)||t.set(i,new Set),null===(n=t.get(i))||void 0===n||n.add(o)})),t))(e))},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(59284);function i(e=600){const[t,n]=r.useState(!1),[i,o]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,i]);return[t,r.useCallback((()=>{o((e=>e+1))}),[])]}},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"}))},66944:(e,t,n)=>{var r=n(14837),i=n(49538),o=n(99889),a=n(11319),s=n(52497),l=n(52964),c=n(19305),u=n(59653),d=n(20368),f=n(36738),p=n(38469),h=n(20011),m=n(91159),g=n(76614),v=n(26180);e.exports=function(e,t,n,y,b,w,x){var _=g(e,n),E=g(t,n),S=x.get(E);if(S)r(e,n,S);else{var C=w?w(_,E,n+"",e,t,x):void 0,k=void 0===C;if(k){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);C=E,O||N||T?c(_)?C=_:u(_)?C=a(_):N?(k=!1,C=i(E,!0)):T?(k=!1,C=o(E,!0)):C=[]:h(E)||l(E)?(C=_,l(_)?C=v(_):p(_)&&!f(_)||(C=s(E))):k=!1}k&&(x.set(E,C),b(C,E,y,w,x),x.delete(E)),r(e,n,C)}}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,Ii:()=>c,Oi:()=>d,Pm:()=>s,SA:()=>p,S_:()=>_,WF:()=>g,YA:()=>f,Ye:()=>h,_Q:()=>v,c2:()=>u,e5:()=>a,fp:()=>y,j2:()=>b,li:()=>x});var r=n(90182),i=n(28232),o=n(68712);function a(){const e=(0,i.J)();o.RE.useGetClusterCapabilitiesQuery({database:e})}function s(){const e=(0,i.J)(),{data:t,error:n}=(0,r.N4)((t=>(0,o.Ox)(t,e)));return Boolean(t||n)}const l=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.p2)(n,e,t)||0))},c=()=>l("/scheme/directory")>0,u=()=>l("/pdisk/info")>0,d=()=>l("/viewer/query")>2,f=()=>l("/storage/groups")>2,p=()=>l("/storage/groups")>4,h=()=>l("/viewer/nodes")>6,m=()=>l("/viewer/nodes")>11,g=()=>l("/viewer/nodes")>13,v=()=>l("/viewer/feature_flags")>1,y=()=>l("/viewer/cluster")>4,b=()=>l("/viewer/query")>=7,w=e=>{const t=(0,i.J)();return(0,r.N4)((n=>(0,o.TL)(n,e,t)))},x=()=>!1===w("UseLoginProvider"),_=()=>!1===w("DomainLoginOnly")},67076:(e,t,n)=>{"use strict";n(29416)},67087:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function i(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function o(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>k,StringParam:()=>a,useQueryParam:()=>R,useQueryParams:()=>I});const a={encode:function(e){return null==e?e:String(e)},decode:o},s={encode:function(e){return null==e?e:String(e)},decode:i};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const i of r){const r=t[i];e[i]?n[i]=e[i].encode(t[i]):n[i]=null==r?r:String(r)}return n}var c=n(59284);const u=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var i;if(!n||!t.length)return e;let o={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(o,s)||(o[s]=null!=(i=n[s])?i:r,a=!0);return a?o:e}const f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,i;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(let s=0;s<o.length;s++){const a=null!=(i=null==(r=null==n?void 0:n[o[s]])?void 0:r.equals)?i:p;if(!f.call(t,o[s])||!a(e[o[s]],t[o[s]]))return!1}return!0}function m(e,t,n){const r={},i=Object.keys(t);for(const o of i){const i=t[o],a=e[o];let s;if(n.has(o,a,i.decode))s=n.get(o);else{if(s=i.decode(a),i.equals&&n.has(o,a)){const e=n.get(o);i.equals(s,e)&&(s=e)}void 0!==s&&n.set(o,a,s,i.decode)}void 0===s&&void 0!==i.default&&(s=i.default),r[o]=s}return r}function g(){let e;return function(t,n,r){const i=m(t,n,r);return null!=e&&h(e,i)?e:(e=i,i)}}let v,y,b,w={};const x=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=n;const i=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[o,a]of Object.entries(r)){(null==i?void 0:i[o])&&(delete r[o],o=i[o],r[o]=a);const e=w[o];h(a,e)&&(r[o]=e)}return w=r,r};function _(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,i]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,i]of n)if(void 0!==i&&null!==i)if(Array.isArray(i))for(const e of i)t.append(r,null!=e?e:"");else t.append(r,i);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function C({children:e,adapter:t,options:n}){const{adapter:r,options:i}=c.useContext(S),o=c.useMemo((()=>({adapter:null!=t?t:r,options:_(i,n)})),[t,n,r,i]);return c.createElement(S.Provider,{value:o},e)}function k({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(C,{adapter:t,options:n},e))):c.createElement(C,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:o,objectToSearchString:a}=i;let s;null==t&&(t=i.updateType);const c=x(o,n),f=d(r,Object.keys(e),i.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(s,f),s=function(e,t){var n;let r={};for(const i in e)null!=(null==(n=t[i])?void 0:n.urlName)?r[t[i].urlName]=e[i]:r[i]=e[i];return r}(s,f),h=a("push"===t||"replace"===t?s:{...c,...s}),(null==h?void 0:h.length)&&"?"!==h[0]&&(h=`?${h}`),null!=h?h:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),A=[];function I(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[i]=(0,c.useState)(g),{paramConfigMap:o,options:s}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,c.useMemo)((()=>_(r,s)),[r,s]);let f=function(e,t){var n,r,i;const o={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,o[u]=null!=(i=null==(r=t.params)?void 0:r[u])?i:a):o[u]=n}return s?o:e}(o,l);const p=x(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=i(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:i}=y.current;null==t&&(t=i.updateType),function(e,{immediate:t}={}){A.push(e);let n=t?N:T;1===A.length&&n((()=>{const t=A.slice();A.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(i):t.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:i,adapter:n},{immediate:!i.enableBatching})}));return[h,b]}var P=I;const R=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[i,o]=P(r,n);return[i[e],(0,c.useCallback)(((t,n)=>o("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,o])]}},67124:(e,t,n)=>{"use strict";var r=n(59284),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>S,Ay:()=>E,ds:()=>T,zR:()=>N,Yv:()=>_,Zd:()=>C});var r=n(97091),i=n(53850),o=n(44992),a=n(67087),s=n(87842),l=n(370);const c=l.z.object({url:l.z.string().url()});function u({traceView:e}){try{return{traceView:e?c.parse(JSON.parse(e)):void 0}}catch(t){console.error("Error parsing trace fields:",t)}return{}}var d=n(98730),f=n(76086),p=n(11822),h=n(21334),m=n(24600);function g(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:i,CurrentAllocatedSize:o,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(o)||0,d=Number(i)||0,f=n&&"string"===typeof n&&(e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r})(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const v=e=>{var t,n;return g(null===(t=(0,p.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const y=localStorage.getItem(f.fY);let b;b=(0,s.eC)(y)?y:s.Bi.overview;const w={defaultClusterTab:b},x=(0,r.Z0)({name:"cluster",initialState:w,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function _(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(f.fY,e),t(x.actions.setDefaultClusterTab(e)))}}const E=x.reducer,S=h.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getClusterInfo(e,{signal:t}),i=r.Domain;if(!i)return{data:{clusterData:r}};if((0,d.L)(r))return{data:{clusterData:r,groupsStats:(n=r,g(n.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(i),t=await window.api.viewer.sendQuery({query:e,database:i,action:"execute-scan"});return(0,p.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:v(t)}}}catch{return{data:{clusterData:r}}}}catch(r){return{error:r}}var n},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,{signal:t})=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getClusterBaseInfo(e,{signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});function C(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=S.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:o.hT),{solomon:r,name:i,trace_view:s,...l}=n||{};return{...l,...u({traceView:s}),name:null!==(e=null!==i&&void 0!==i?i:t)&&void 0!==e?e:void 0,monitoring:r}}const k=(0,i.Mz)((e=>e),(e=>S.endpoints.getClusterInfo.select(e))),O=(0,i.Mz)((e=>e),((e,t)=>k(t)),((e,t)=>t(e).data)),N=(0,i.Mz)(((e,t)=>t),((e,t)=>O(e,t)),((e,t)=>{var n;return e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(null===t||void 0===t||null===(n=t.clusterData)||void 0===n?void 0:n.Domain)||f.QM})),T=(0,i.Mz)(((e,t)=>O(e,t)),(e=>(0,m.K)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{var n;const r=void 0===e.NodeId||null===(n=t.get(e.NodeId))||void 0===n?void 0:n.Host;return{...e,fqdn:r}})):r:[]}))},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,i=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,i.om)("root")({mobile:!0}).split(/\s+/)[1]},67530:(e,t,n)=>{var r=n(21551),i=n(54736),o=n(96294);e.exports=function(e){return r(e,o,i)}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),i=n(69220),o=n(11669);const a=(0,i.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:i,target:s,rel:l,title:c,children:u,extraProps:d,onClick:f,onFocus:p,onBlur:h,id:m,style:g,className:v,qa:y},b){const w={title:c,onClick:f,onClickCapture:r.useCallback((e=>{o.o.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:p,onBlur:h,id:m,style:g,className:a({view:e,visitable:t,underline:n},v),"data-qa":y},x="_blank"!==s||l?l:"noopener noreferrer";return r.createElement("a",Object.assign({},d,w,{ref:b,href:i,target:s,rel:x}),u)}))},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},68097:(e,t,n)=>{var r=n(19305),i=n(46626),o=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},68414:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},68489:(e,t,n)=>{var r=n(57578),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},68643:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>c,Ox:()=>a,RE:()=>i,TL:()=>l,p2:()=>s});var r=n(53850);const i=n(21334).F.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.viewer.getClusterCapabilities(e)}}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),o=(0,r.Mz)((e=>e),(e=>i.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>o(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Capabilities)||void 0===i?void 0:i[t]})),l=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,i,o;return null===(r=a(e,n).data)||void 0===r||null===(i=r.Settings)||void 0===i||null===(o=i.Security)||void 0===o?void 0:o[t]}));async function c(e,t,{dispatch:n,getState:r}){const o=i.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(o),s(r(),e,t)||0}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),i=n(55330),o=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(i.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,o.nR)(e),getClosestMediaProps:(0,o.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>g});var r=n(14750),i=n(97091),o=n(959),a=n(11822),s=n(21334);const l="EndTime",c="IntervalEnd";function u(e,t){var n,i;const o=[],a=null===(n=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),s=null===(i=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===i?void 0:i.valueOf();if(s&&a&&s>a)throw new Error("Invalid date range");if(s){const e=a===s?">=":">";o.push(`${l} ${e} Timestamp('${new Date(s).toISOString()}')`)}return a&&o.push(`${l} <= Timestamp('${new Date(a).toISOString()}')`),s||a||o.push(`${c} IN ${(e=>`(\n SELECT\n MAX(${c})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`)(e)}`),null!==t&&void 0!==t&&t.text&&o.push(`(QueryText ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%')`),o.join(" AND ")}const d="/*UI-QUERY-EXCLUDE*/",f=(0,i.Z0)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:p}=f.actions,h=f.reducer,m=(e,t,n)=>{const r=u(e,t),i=(0,o.JD)(n);return`\nSELECT ${d}\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${r||"true"} AND QueryText NOT LIKE '%${d}%'\n${i}\nLIMIT 100\n`},g=s.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const i={...t,from:(null===t||void 0===t?void 0:t.from)||"now-1h",to:(null===t||void 0===t?void 0:t.to)||"now"};try{const t=await window.api.viewer.sendQuery({query:m(e,i,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(t))throw t;return{data:(0,a.fW)(t)}}catch(o){return{error:o}}},forceRefetch:({currentArg:e})=>{var t,n,i,o;return!(null!==e&&void 0!==e&&null!==(t=e.filters)&&void 0!==t&&t.from&&null!==e&&void 0!==e&&null!==(n=e.filters)&&void 0!==n&&n.to&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.from)&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const i=null!==t&&void 0!==t&&t.text?`Query ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%'`:"",s=(0,o.JD)(n),l=`SELECT ${d}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${i||"true"} AND Query NOT LIKE '%${d}%'\n ${s}\n LIMIT 100`,c=await window.api.viewer.sendQuery({query:l,database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(c))throw c;return{data:(0,a.fW)(c)}}catch(i){return{error:i}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),i=n(55330);const o={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?o:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((([e,t])=>t.matches));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((([t,n])=>n.addEventListener("change",e)))}removeListeners(e){this.queryListsDecl.forEach((([t,n])=>n.removeEventListener("change",e)))}}const l=(e,t="s")=>{const[n,i]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{i(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(17148),u=n.n(c);function d({children:e,config:t,initialMediaQuery:n}){const o=r.useContext(i.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:o.theme,override:t})),[t,o.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(i.M.Provider,{value:c},e)}var f=n(69220),p=n(42933);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.om)(y),x=w();function _({theme:e,nativeScrollbar:t=!1,className:n,prevClassName:r}){const i=document.body;if(i.classList.contains(x)||i.classList.add(x),r){r.split(" ").forEach((e=>{e&&i.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!i.classList.contains(e)&&i.classList.add(e)}))}[...i.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&i.classList.remove(e)})),i.classList.add((0,f.Nx)(w({theme:e})));const o={"native-scrollbar":t};for(const[a,s]of Object.entries(o))i.classList.toggle((0,f.Nx)(w({[a]:!0})),s)}const E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function C(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const k=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:i,nativeScrollbar:o,scoped:a=!1,rootClassName:s="",children:l,layout:c}){var u,f,y,w;const x=r.useContext(p.D),E=r.useContext(h),S=void 0!==x||a,O=null!==(u=null===x||void 0===x?void 0:x.theme)&&void 0!==u?u:m,N=null!==e&&void 0!==e?e:O,T=null!==(f=null!==t&&void 0!==t?t:null===E||void 0===E?void 0:E.systemLightTheme)&&void 0!==f?f:g,A=null!==(y=null!==n&&void 0!==n?n:null===E||void 0===E?void 0:E.systemDarkTheme)&&void 0!==y?y:v,I=null!==(w=null===x||void 0===x?void 0:x.direction)&&void 0!==w?w:b,P=null!==i&&void 0!==i?i:I,R="light"===C()?T:A,D="system"===N?R:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:D,nativeScrollbar:o,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(P),j.current=s)}),[S,D,P,o,s]);const M=r.useMemo((()=>({theme:N,themeValue:D,direction:P,scoped:S})),[N,D,P,S]),L=r.useMemo((()=>({systemLightTheme:T,systemDarkTheme:A})),[T,A]);return r.createElement(d,Object.assign({},c),r.createElement(p.D.Provider,{value:M},r.createElement(h.Provider,{value:L},S?r.createElement("div",{className:k({theme:D,"native-scrollbar":!1!==o},s),dir:P},l):l)))}O.displayName="ThemeProvider"},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,I="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(42634),M=j.custom,L=H(M)?M:null,z={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var r=n.quoteStyle||t,i=z[r];return i+e+i}function U(e){return b.call(String(e),/"/g,""")}function q(e){return"[object Array]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function $(e){return"[object RegExp]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function H(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(W(l,"quoteStyle")&&!W(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?D(t,_):_}if("bigint"===typeof t){var k=String(t)+"n";return w?D(t,k):k}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=N&&N>0&&"object"===typeof t)return q(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,i);if("undefined"===typeof s)s=[];else if(G(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=C.call(s)).push(n),r){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!$(t)){var V=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Q=te(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Q.length>0?" { "+S.call(Q,", ")+" }":"")}if(H(t)){var ne=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||A?ne:Z(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+x.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)re+=" "+ie[oe].name+"="+B(U(ie[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+x.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ae=te(t,F);return M&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,M)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(F(n,t,!0)+" => "+F(e,t))})),X("Map",o.call(t),le,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(F(e,t))})),X("Set",c.call(t),ce,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return J("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return J("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Z(F(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(h.call(t));if(function(e){return"[object String]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Z(F(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)&&!$(t)){var ue=te(t,F),de=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?y.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+S.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":M?he+"{"+ee(ue,M)+"}":he+"{ "+S.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,B(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Q),"single",t)}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):S.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var o,a="function"===typeof N?N(e):[];if(A){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)P.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>i,Nx:()=>a,om:()=>o});var r=n(82435);const i="g-",o=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:i,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},69310:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},69426:e=>{"use strict";e.exports=Function.prototype.apply},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>i,PG:()=>r,Zd:()=>o});const r=e=>e.replace(/\/viewer\/json/,""),i=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const i=n[0];return{balancer:t.replace(i+"/",""),proxy:i}},o=e=>i(e).balancer.replace(/:\d+$/,"")},70084:e=>{"use strict";e.exports=Function.prototype.call},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},70911:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},71259:(e,t,n)=>{var r=n(80472),i=n(61872),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},71661:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(84375),i=n(77506),o=n(60712);const a=(0,i.cn)("ydb-cell-with-popover"),s=100;function l({children:e,className:t,wrapperClassName:n,fullWidth:i,...l}){return(0,o.jsx)("div",{className:a({"full-width":i},n),children:(0,o.jsx)(r.A,{delayClosing:s,delayOpening:s,className:a("popover",{"full-width":i},t),...l,children:e})})}},71765:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeZonesList=t.guessUserTimeZone=void 0,t.isValidTimeZone=s,t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,i=c(n,r);if(t===i)return[r,t];var o=c(n,r-=60*(i-t)*1e3);if(i===o)return[r,i];return[e-60*Math.min(i,o)*1e3,Math.min(i,o)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,i=e.locale,o=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:o},s),c=new Intl.DateTimeFormat(i,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""};var i=n(72328),o=n(16572);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,i={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,o.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?i.era=f:(r=d,l.includes(r)&&(i[d]=parseInt(f,10)))}var p="BC"===i.era?1-Math.abs(i.year):i.year,h=i.month-1,m=24===i.hour?0:i.hour,g=Date.UTC(p,h,i.day,m,i.minute,i.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,i.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return i.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}},71824:(e,t,n)=>{var r=n(48303),i=n(54074),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},71928:(e,t,n)=>{const r=n(69310),i=n(16284);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},72220:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},72328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(22551),t),i(n(95197),t),i(n(71165),t)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(58168),i=n(98587),o=n(25540);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59284),l=n(48681);const c=!1;var u=n(10641),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=p,r.appearStatus=h):i=m:i=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[l.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:h},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&w(e,r),i&&w(e,i),o&&w(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return s.createElement(b,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);x.defaultProps={classNames:""},x.propTypes={};const _=x},72633:(e,t,n)=>{var r=n(47018),i=n(29355)(r);e.exports=i},72665:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),i=n(3357);const{lang:o,fallbackLang:a}=(0,i.zj)(),s=new r.TH({lang:o,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,i.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>o,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",i="DISABLE_FULLSCREEN_MODE";function o(){return{type:r}}function a(){return{type:i}}const s=function(e=false,t){switch(t.type){case i:return!1;case r:return!0;default:return e}}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},73148:(e,t,n)=>{var r=n(44735),i=n(90552),o=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},73289:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>E,Ay:()=>_,tS:()=>N,JK:()=>O,JO:()=>U,nO:()=>C,py:()=>M,Kz:()=>j,jY:()=>D,$u:()=>B,wf:()=>z,yJ:()=>L,Wp:()=>F,Ni:()=>A,Id:()=>T});var r=n(97091),i=n(59001),o=n(11822);const a={[o.PB.off]:0,[o.PB.toplevel]:4,[o.PB.basic]:9,[o.PB.detailed]:13,[o.PB.diagnostic]:14,[o.PB.trace]:15};var s=n(76086),l=n(41650),c=n(21334);const u=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function d(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,r]of Object.entries(e))u.has(t)||n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function f(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function p(e){const t=[],n=[];const r=e,i={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"]}};return t.push(i),function e(r=[],i){r.forEach((r=>{var o;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"],operators:null===(o=r.Operators)||void 0===o?void 0:o.map((e=>e.Name)),stats:d(r),tables:r.Tables}};t.push(a),n.push({from:i,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,i.name),{nodes:t,links:n}}const h=Object.values({v2:"0.2"});function m(e,t){var n,r,i;if(e){const{tables:t,meta:n,Plan:r,SimplifiedPlan:i}=(0,o.UF)(e);if(-1===h.indexOf(n.version))return{pristine:e,version:n.version};let a,s=[],l=[];if(r){const e=p(r);s=e.links,l=e.nodes}return i&&(a=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:i}=n.pop(),o=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=i||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":i,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:i,eSize:l,children:[]};if(s.push(f),o)for(let a=o.length-1;a>=0;a--)n.push({node:o[a],subNodes:f.children})}else if(o)for(let t=o.length-1;t>=0;t--)n.push({node:o[t],subNodes:s})}return t}([i])),{links:s,nodes:l,tables:t,version:n.version,pristine:e,simplifiedPlan:i?{plan:a,pristine:i}:void 0}}const a=null===t||void 0===t||null===(n=t.Executions)||void 0===n||null===(r=n[0])||void 0===r||null===(i=r.TxPlansWithStats)||void 0===i?void 0:i[0];if(a)try{const e=JSON.parse(a);return{...p(e),pristine:e}}catch{return{}}return{}}function g(e){const t=(0,o.fW)(e),{plan:n,stats:r}=t,{simplifiedPlan:i,...a}=m(n,r);return{...t,preparedPlan:Object.keys(a).length>0?a:void 0,simplifiedPlan:i}}var v=n(80971);const y=i.f.readUserSettingsValue(s.MB,[]),b=y.length-20,w={input:"",history:{queries:y.slice(b<0?0:b).map(v.QG),currentIndex:y.length>20?19:y.length-1,filter:""}},x=(0,r.Z0)({name:"query",initialState:w,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,o=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);i.f.setUserSettingsValue(s.MB,o);const a=o.length-1;e.history={queries:o,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const o=e.history.queries.findIndex((e=>e.queryId===n));if(-1===o)return;const a=[...e.history.queries],{durationUs:l,endTime:c}=r;a.splice(o,1,{...e.history.queries[o],durationUs:l,endTime:c}),i.f.setUserSettingsValue(s.MB,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload},setStreamSession:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=g(null));const n=t.payload;e.result.isLoading=!0,e.result.queryId=n.meta.query_id,e.result.data.traceId=n.meta.trace_id},addStreamingChunks:(e,t)=>{if(!e.result)return;e.result.data=e.result.data||g(null),e.result.data.resultSets=e.result.data.resultSets||[];const n=t.payload.reduce(((e,t)=>{const n=t.meta.result_index,r=e.get(n);var i;r?(null===(i=r.result.rows)||void 0===i||i.push(...t.result.rows||[]),r.result.truncated=r.result.truncated||t.result.truncated):e.set(n,{...t,result:{...t.result,rows:t.result.rows||[],truncated:t.result.truncated}});return e}),new Map);for(const[i,a]of n.entries()){var r;const{columns:t,rows:n}=a.result,s=e.result.data.resultSets;s[i]||(s[i]={columns:[],result:[],truncated:!1});const l=s[i];!t||null!==(r=l.columns)&&void 0!==r&&r.length||(l.columns=t);const c=n||[];(0,o.F)(c,l.columns||[]).forEach((e=>{var t;null===(t=l.result)||void 0===t||t.push(e)})),l.truncated=a.result.truncated}},setStreamQueryResponse:(e,t)=>{if(!e.result)return;e.result.data||(e.result.data=g(null)),e.result.isLoading=!1;const n=t.payload;if("error"in n)e.result.error=n;else if("plan"in n){e.result.data||(e.result.data=g(null));const{plan:t,stats:r}=n,{simplifiedPlan:i,...o}=m(t,r);e.result.data.preparedPlan=Object.keys(o).length>0?o:void 0,e.result.data.simplifiedPlan=i,e.result.data.plan=n.plan,e.result.data.stats=n.stats}e.result.endTime=Date.now()}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectQueryDuration:e=>{var t,n;return{startTime:null===(t=e.result)||void 0===t?void 0:t.startTime,endTime:null===(n=e.result)||void 0===n?void 0:n.endTime}},selectResult:e=>e.result,selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),_=x.reducer,{changeUserInput:E,setQueryResult:S,saveQueryToHistory:C,updateQueryInHistory:k,goToPreviousQuery:O,goToNextQuery:N,setTenantPath:T,setQueryHistoryFilter:A,addStreamingChunks:I,setStreamQueryResponse:P,setStreamSession:R}=x.actions,{selectQueriesHistoryFilter:D,selectQueriesHistoryCurrentIndex:j,selectQueriesHistory:M,selectTenantPath:L,selectResult:z,selectUserInput:F,selectQueryDuration:B}=x.selectors,U=c.F.injectEndpoints({endpoints:e=>({useStreamQuery:e.mutation({queryFn:async({query:e,database:t,querySettings:n={},enableTracingLevel:r},{signal:i,dispatch:o,getState:s})=>{const c=Date.now();o(S({type:"execute",queryId:"",isLoading:!0,startTime:c}));const{action:u,syntax:d}=(0,v.AH)("execute",null===n||void 0===n?void 0:n.queryMode);try{let s=[],c=null;const f=()=>{s.length>0&&(o(I(s)),s=[]),c=null};return await window.api.streaming.streamQuery({query:e,database:t,action:u,syntax:d,stats:n.statisticsMode,tracingLevel:n.tracingLevel&&r?a[n.tracingLevel]:void 0,limit_rows:(0,l.kf)(n.limitRows)?Number(n.limitRows):void 0,transaction_mode:"implicit"===n.transactionMode?void 0:n.transactionMode,timeout:(0,l.kf)(n.timeout)?1e3*Number(n.timeout):void 0,output_chunk_max_size:1e3,concurrent_results:void 0},{signal:i,onSessionChunk:e=>{o(R(e))},onStreamDataChunk:e=>{s.push(e),c||(c=window.requestAnimationFrame(f))},onQueryResponseChunk:e=>{o(P(e))}}),c&&(window.cancelAnimationFrame(c),f()),{data:null}}catch(p){var f;const e=s();return o(S({...e.query.result,type:"execute",error:p,isLoading:!1,startTime:c,endTime:Date.now(),queryId:(null===(f=e.query.result)||void 0===f?void 0:f.queryId)||""})),{error:p}}}}),useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:i,queryId:s},{signal:c,dispatch:u})=>{const d=Date.now();u(S({type:e,queryId:s,isLoading:!0,startTime:d}));const{action:f,syntax:p}=(0,v.AH)(e,null===r||void 0===r?void 0:r.queryMode);try{var h;const m=Date.now(),v=await window.api.viewer.sendQuery({query:t,database:n,action:f,syntax:p,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&i?a[r.tracingLevel]:void 0,limit_rows:(0,l.kf)(r.limitRows)?Number(r.limitRows):void 0,transaction_mode:"implicit"===r.transactionMode?void 0:r.transactionMode,timeout:(0,l.kf)(r.timeout)?1e3*Number(r.timeout):void 0,query_id:s},{signal:c});if((0,o.We)(v))return u(S({type:e,error:v,isLoading:!1,queryId:s,startTime:d,endTime:Date.now()})),{error:v};const y=g(v);if(y.traceId=null===v||void 0===v||null===(h=v._meta)||void 0===h?void 0:h.traceId,"execute"===e){const e={};if(y.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=y.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-m),e.endTime=t}u(k({stats:e,queryId:s}))}return u(S({type:e,data:y,isLoading:!1,queryId:s,startTime:d,endTime:Date.now()})),{data:null}}catch(m){return u(S({type:e,error:m,isLoading:!1,queryId:s,startTime:d,endTime:Date.now()})),{error:m}}}})}),overrideExisting:"throw"})},73620:e=>{"use strict";e.exports=Math.max},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.078.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.325.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.54.54 0 0 0 .075-.312c0-.3-.244-.641-.84-.641a1 1 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 0 1-1.5 0c0-.674.345-1.22.78-1.577M8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"}))},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},73759:e=>{"use strict";e.exports=Error},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},73888:(e,t,n)=>{"use strict";var r=n(7445),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},73891:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>c,Xo:()=>u,i6:()=>h,ee:()=>f,MC:()=>m,Jc:()=>g});var r=n(76086),i=n(56839),o=n(48372);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,o.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let i=Math.floor(e/1e3);const o=Math.floor(i/r.tt);i%=r.tt;const a=Math.floor(i/r.Jg);i%=r.Jg;const s=Math.floor(i/60);i%=60;const c=i,u={days:o,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(o>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(o>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,i.ZV)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.zz:0),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(41650);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=(e,t=0)=>e&&(0,p.kf)(e)?(0,i.CR)(Number(e)/1e3,t):0},74309:(e,t,n)=>{"use strict";var r=n(93780),i=n(77146),o=n(7445);e.exports={formats:o,parse:i,stringify:r}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},74413:(e,t,n)=>{var r=n(7804);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(59284);const i=(0,n(69220).om)("loader");function o({size:e="s",className:t,qa:n}){return r.createElement("div",{className:i({size:e},t),"data-qa":n},r.createElement("div",{className:i("left")}),r.createElement("div",{className:i("center")}),r.createElement("div",{className:i("right")}))}},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},75125:(e,t,n)=>{var r=n(98137),i=n(94305)(r);e.exports=i},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>D,Ed:()=>g,GV:()=>z,Gj:()=>re,Hh:()=>m,IO:()=>ne,J0:()=>V,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>X,LQ:()=>N,MB:()=>T,Mt:()=>G,N3:()=>B,Nz:()=>b,Pd:()=>w,QM:()=>_,RY:()=>A,T5:()=>x,TJ:()=>k,U0:()=>ie,Xm:()=>Z,YQ:()=>H,av:()=>I,bk:()=>y,bs:()=>K,bz:()=>ee,c4:()=>q,eh:()=>o,fY:()=>F,fr:()=>$,g5:()=>Y,hh:()=>L,iD:()=>P,jQ:()=>j,jS:()=>C,jX:()=>M,jp:()=>U,k4:()=>S,kO:()=>te,l_:()=>R,ld:()=>O,lr:()=>Q,oK:()=>E,pg:()=>a,r0:()=>u,s2:()=>J,tt:()=>f,zk:()=>W,zz:()=>h});var r=n(4557),i=n(6354);const o=1e3,a=1e6,s=1e9,l=1e12,c=1e3,u=60,d=60*u,f=24*d,p=7*f,h=1e6,m=85,g=95,v={[i.e.OldTxProxy]:"P",[i.e.TxProxy]:"P",[i.e.BSController]:"BS",[i.e.Dummy]:"DY",[i.e.RTMRPartition]:"RP",[i.e.PersQueueReadBalancer]:"PB",[i.e.Cms]:"CM",[i.e.BlockStorePartition]:"BP",[i.e.BlockStoreVolume]:"BV",[i.e.Console]:"CN",[i.e.TenantSlotBroker]:"TB",[i.e.BlockStoreDiskRegistry]:"BDR"},y=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in v)(e)?v[e]:n},b=5,w="\u2014",x="Developer UI",_="Cluster",E="Database",S="theme",C="language",k="invertedDisks",O="saved_queries",N="asideHeaderCompact",T="queries_history",A="binaryDataInPlainTextDisplay",I="auto-refresh-interval",P="caseSensitiveJsonSearch",R="default-size-result-pane",D="default-size-tenant-summary-pane",j="default-size-tenant-pane",M="default-is-tenant-summary-collapsed",L="default-is-tenant-common-info-collapsed",z="default-is-query-result-collapsed",F="default-cluster-tab",B={displayIndices:!1,stickyHead:r.Ay.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},U={...B,stickyHead:"fixed",dynamicRender:!1,sortable:!1},q="queryExecutionSettings",$="last_query_execution_settings",H="querySettingsBannerLastClosed",V="queryStoppedBannerClosed",W="last_used_query_action",K="partitionsHiddenColumns",G="saved_tenant_initial_tab",Y="enableNetworkTable",Q="useShowPlanToSvg",Z="showDomainDatabase",J="useClusterBalancerAsBacked",X="enableAutocomplete",ee="enableCodeAssistant",te="enableQueryStreaming",ne="autocompleteOnEnter",re="isHotKeysHelpHidden",ie="enable_tracing_for_all_requests"},76575:(e,t,n)=>{"use strict";var r=n(59284),i=n(99158);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case C:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,Se=null;function Ce(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function ke(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Ne(e,t,n)}finally{Ae=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Re=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Re=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Re=!1}function je(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,i,o,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ze=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,Et,St,Ct,kt=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Pt=new Map,Rt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){kt=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),It.forEach(Ft),Pt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==At&&Ut(At,e),It.forEach(t),Pt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Wt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Kt(e,t,n,r){if(Ht){var i=Yt(e,t,n,r);if(null===i)Hr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return At=Mt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Mt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Yt(e,t,n,r))&&Hr(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=yi(e=xe(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return Sn}var kn=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(kn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Rn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Dn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Vn(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Kn=null;function Gn(e){zr(e,0)}function Yn(e){if(K(wi(e)))return e}function Qn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Kn=Wn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Vn(t,Kn,e,xe(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Wr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Sr={};function Cr(e){if(Er[e])return Er[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var kr=Cr("animationend"),Or=Cr("animationiteration"),Nr=Cr("animationstart"),Tr=Cr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ar.set(e,t),l(t,[e])}for(var Rr=0;Rr<Ir.length;Rr++){var Dr=Ir[Rr];Pr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Pr(kr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Nr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(t)){case 1:var i=Vt;break;case 4:i=Wt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=o,i=xe(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Or:case Nr:l=vn;break;case Tr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Pe(h,f))&&u.push(Vr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wi(l),p=null==c?s:wi(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Hn(s))if(Zn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Vn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,qn=!0)),0<(v=Wr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Xt=Jt=Zt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}zr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=Pe(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Pe(n,o))&&a.unshift(Vr(n,l,s)):i||null!=(l=Pe(n,o))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var _i=[],Ei=-1;function Si(e){return{current:e}}function Ci(e){0>Ei||(e.current=_i[Ei],_i[Ei]=null,Ei--)}function ki(e,t){Ei++,_i[Ei]=e.current,e.current=t}var Oi={},Ni=Si(Oi),Ti=Si(!1),Ai=Oi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ri(){Ci(Ti),Ci(Ni)}function Di(e,t,n){if(Ni.current!==Oi)throw Error(o(168));ki(Ni,t),ki(Ti,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ai=Ni.current,ki(Ni,e),ki(Ti,Ti.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ji(e,t,Ai),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ti),Ci(Ni),ki(Ni,e)):Ci(Ti),ki(Ti,n)}var zi=null,Fi=!1,Bi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function qi(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=bt;try{var n=zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Fi=!1}catch(i){throw null!==zi&&(zi=zi.slice(e+1)),Ke(Xe,qi),i}finally{bt=t,Bi=!1}}return null}var $i=[],Hi=0,Vi=null,Wi=0,Ki=[],Gi=0,Yi=null,Qi=1,Zi="";function Ji(e,t){$i[Hi++]=Wi,$i[Hi++]=Vi,Vi=e,Wi=t}function Xi(e,t,n){Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Yi=e;var r=Qi;e=Zi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Qi=1<<32-at(t)+i|n<<i|r,Zi=o+e}else Qi=1<<o|n<<i|r,Zi=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Vi;)Vi=$i[--Hi],$i[Hi]=null,Wi=$i[--Hi],$i[Hi]=null;for(;e===Yi;)Yi=Ki[--Gi],Ki[Gi]=null,Zi=Ki[--Gi],Ki[Gi]=null,Qi=Ki[--Gi],Ki[Gi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yi?{id:Qi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===P&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case P:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||j(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((o=jc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Dc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(a,r.mode,l)).return=r,r=o}return s(r);case P:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(j(a))return g(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var xo=wo(!0),_o=wo(!1),Eo=Si(null),So=null,Co=null,ko=null;function Oo(){ko=Co=So=null}function No(e){var t=Eo.current;Ci(Eo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){So=e,ko=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===So)throw Error(o(308));Co=e,So.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Po=null;function Ro(e){null===Po?Po=[e]:Po.push(e)}function Do(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,jo(e,r)}function jo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jo(e,n)}return null===(i=r.interleaved)?(t.next=t,Ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,jo(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function qo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Vo={},Wo=Si(Vo),Ko=Si(Vo),Go=Si(Vo);function Yo(e){if(e===Vo)throw Error(o(174));return e}function Qo(e,t){switch(ki(Go,t),ki(Ko,e),ki(Wo,Vo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Wo),ki(Wo,t)}function Zo(){Ci(Wo),Ci(Ko),Ci(Go)}function Jo(e){Yo(Go.current);var t=Yo(Wo.current),n=le(t,e.type);t!==n&&(ki(Ko,e),ki(Wo,n))}function Xo(e){Ko.current===e&&(Ci(Wo),Ci(Ko))}var ea=Si(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Xa:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ia(9,ka.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&aa)||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(e){var t=jo(e,1);null!==t&&nc(t,e,1,-1)}function Aa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Ra(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function ja(e,t){return Ra(8390656,8,e,t)}function Ma(e,t){return Da(2048,8,e,t)}function La(e,t){return Da(4,2,e,t)}function za(e,t){return Da(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4,4,Fa.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Wa(){return ba().memoizedState}function Ka(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Qa(t,n);else if(null!==(n=Do(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function Ga(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ro(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Do(e,t,i,r))&&(nc(n,e,r,i=ec()),Za(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Io,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Aa,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));0!==(30&aa)||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(io){var n=Zi;t=":"+t+"R"+(n=(Qi&~(1<<32-at(Qi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:qa,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:qa,useContext:Io,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:_a,useRef:Pa,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nc(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=Pi(t)?Ai:Ni.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=Pi(t)?Ai:Ni.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function hs(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_o(t,null,n,r):xo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Ao(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Pc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Rc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return ks(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Rl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Rl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Rl,Pl),Pl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Rl,Pl),Pl|=r;return ws(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Pi(n)?Ai:Ni.current;return o=Ii(t,o),Ao(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Os(e,t,n,r,i){if(Pi(n)){var o=!0;Mi(t)}else o=!1;if(Ao(t,i),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Io(c):c=Ii(t,c=Pi(n)?Ai:Ni.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mo=!1;var f=t.memoizedState;a.state=f,$o(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ti.current||Mo?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Io(l):l=Ii(t,l=Pi(n)?Ai:Ni.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mo=!1,f=t.memoizedState,a.state=f,$o(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ti.current||Mo?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mo||os(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,i)}function Ns(e,t,n,r,i,o){Cs(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Hs(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),Qo(e,t.containerInfo)}function As(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ps,Rs,Ds,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,i,0,null),e=jc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Mc({mode:"visible",children:r.children},i,0,null),(a=jc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xo(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,jo(e,i),nc(r,e,i,-1))}return mc(),Fs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Gi++]=Qi,Ki[Gi++]=Zi,Ki[Gi++]=Yi,Qi=e.id,Zi=e.overflow,Yi=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Rc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Rc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),xo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Pi(t.type)&&Ri(),Ws(t),null;case 3:return r=t.stateNode,Zo(),Ci(Ti),Ci(Ni),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ps(e,t),Ws(t),null;case 5:Xo(t);var i=Yo(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Yo(Wo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),X(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)Fr(jr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Q(e,r),i=Y(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":W(e),X(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Yo(Go.current),Yo(Wo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ci(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Dl&&(Dl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Zo(),Ps(e,t),null===e&&qr(t.stateNode.containerInfo),Ws(t),null;case 10:return No(t.type._context),Ws(t),null;case 19:if(Ci(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Dl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>ql&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ze()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Pi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),Ci(Ti),Ci(Ni),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(Ci(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ea),null;case 4:return Zo(),null;case 10:return No(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Rs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yo(Wo.current);var o,a=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Qs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var r=ul,i=dl;ul=null,fl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),qt(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));pl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Ze())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==h?(h.return=p,Js=h):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ys;var c=Qs;if(Ys=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(i):null!==l?(l.return=a,Js=l):_l(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Ys=s,Qs=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ho(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&il(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{il(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Sl=Math.ceil,Cl=w.ReactCurrentDispatcher,kl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Pl=0,Rl=Si(0),Dl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Hl=!1,Vl=null,Wl=null,Kl=!1,Gl=null,Yl=0,Ql=0,Zl=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Ze():-1!==Jl?Jl:Jl=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Il?Il&-Il:null!==go.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nc(e,t,n,r){if(50<Ql)throw Ql=0,Zl=null,Error(o(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Dl&&sc(e,Il)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(ql=Ze()+500,Fi&&qi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Tl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fi=!0,Ui(e)}(lc.bind(null,e)):Ui(lc.bind(null,e)),ai((function(){0===(6&Nl)&&qi()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(o(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Nl;Nl|=2;var a=hc();for(Tl===e&&Il===t||($l=null,ql=Ze()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oo(),Cl.current=a,Nl=i,null!==Al?t=0:(Tl=null,Il=0,t=Dl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=oc(e,i))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=oc(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Bl,$l),t);break}xc(e,Bl,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Bl,$l),r);break}xc(e,Bl,$l);break;default:throw Error(o(329))}}}return rc(e,Ze()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Nl))throw Error(o(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,$l),rc(e,Ze()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Ze()+500,Fi&&qi())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&_c();var t=Nl;Nl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Nl=t))&&qi()}}function dc(){Pl=Rl.current,Ci(Rl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ri();break;case 3:Zo(),Ci(Ti),Ci(Ni),ra();break;case 5:Xo(r);break;case 4:Zo();break;case 13:case 19:Ci(ea);break;case 10:No(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Rc(e.current,null),Il=Pl=t,Dl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Po){for(t=0;t<Po.length;t++)if(null!==(r=(n=Po[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Po=null}return e}function pc(e,t){for(;;){var n=Al;try{if(Oo(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,kl.current=null,null===n||null===n.return){Dl=1,jl=t,Al=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Dl&&(Dl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qo(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qo(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=Ja,null===e?Ja:e}function mc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Il)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Il===t||($l=null,fc(e,t));;)try{vc();break}catch(i){pc(e,i)}if(Oo(),Nl=n,Cl.current=r,null!==Al)throw Error(o(261));return Tl=null,Il=0,Dl}function vc(){for(;null!==Al;)bc(Al)}function yc(){for(;null!==Al&&!Ye();)bc(Al)}function bc(e){var t=El(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,kl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Pl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Dl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Dl&&(Dl=5)}function xc(e,t,n){var r=bt,i=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Nl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Tl&&(Al=Tl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Tc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,kl.current=null,function(e,t){if(ei=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Qe(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Yl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Zl?Ql++:(Ql=0,Zl=e):Ql=0,qi()}(e,t,n,r)}finally{Ol.transition=i,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Nl))throw Error(o(331));var i=Nl;for(Nl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(ol(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Nl=i,qi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bo(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Bo(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(130023424&Il)===Il&&500>Ze()-Ul?fc(e,0):zl|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=jo(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),kc(e,n)}function Tc(e,t){return Ke(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Ac(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,i,a,t);case S:s=8,i|=8;break;case C:return(e=Ic(12,n,t,2|i)).elementType=C,e.lanes=a,e;case T:return(e=Ic(13,n,t,i)).elementType=T,e.lanes=a,e;case A:return(e=Ic(19,n,t,i)).elementType=A,e.lanes=a,e;case R:return Mc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case N:s=11;break e;case I:s=14;break e;case P:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,o,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Uc(e){if(!e)return Oi;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return ji(e,n,t)}return t}function qc(e,t,n,r,i,o,a,s,l){return(e=Bc(n,r,!0,e,0,o,0,s,l)).context=Uc(null),n=e.current,(o=Fo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Bo(n,o,i),e.current.lanes=i,vt(e,i,r),rc(e,r),e}function $c(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,a))&&(nc(e,i,a,o),Uo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),ho();break;case 5:Jo(t);break;case 1:Pi(t.type)&&Mi(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(ki(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var i=Ii(t,Ni.current);Ao(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Os(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,zo(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=As(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=_o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),To(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ao(t,n),r=r(i=Io(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),_s(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),$s(e,t),t.tag=1,Pi(r)?(e=!0,Mi(t)):e=!1,Ao(t,n),as(t,r,i),ls(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}$c(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(a);o.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[hi]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[hi]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));$c(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[hi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),0===(6&Nl)&&(ql=Ze()+500,qi()))}break;case 13:uc((function(){var t=jo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},_t=function(e){if(13===e.tag){var t=jo(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=jo(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[bi,wi,xi,ke,Oe,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,qr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},76941:(e,t,n)=>{const r=n(22750).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let r=1;r<t-1;r++)o[r]=o[r-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),i=r.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||n.push([r[t],r[e]]);return n}},77146:(e,t,n)=>{"use strict";var r=n(73888),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var u="string"===typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},77390:(e,t,n)=>{"use strict";var r=n(31445);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>o,Vk:()=>a});var r=n(69446);const i="https://",o=(e,t)=>{const n=null!==(o=e)&&void 0!==o&&o.startsWith("vm-")?`u-${o}`:o;var o;const a=(0,r.M6)(t).proxy;return a?i+a+"/"+n:i+n},a=(e,t,n)=>{const{Host:i,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(i&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!i)return;return o(i+e,t)}}},77966:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(32213),t)},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}const o=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},78034:(e,t,n)=>{"use strict";n.d(t,{AB:()=>h,Bm:()=>c,DG:()=>u,Fo:()=>m,X7:()=>d,cW:()=>l,nN:()=>f,q1:()=>p});var r=n(370),i=n(88610),o=n(54090),a=n(76086),s=n(7435);let l=function(e){return e.All="All",e.SmallUptime="SmallUptime",e}({});const c=r.z.nativeEnum(l).catch(l.All),u={[l.All]:"All",[l.SmallUptime]:"Uptime < 1h"},d=e=>!e.SystemState||e.SystemState===o.m.Grey,f=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>{var n;(0,s.f8)(t.Id)&&e.set(t.Id,{Host:t.Host,DC:null===(n=t.PhysicalLocation)||void 0===n?void 0:n.DataCenterId});return e}),new Map);function p(e={}){var t,n,r,i,o,a;const l=(null===(t=e.Location)||void 0===t?void 0:t.Rack)||e.Rack,c=(null===(n=e.Location)||void 0===n?void 0:n.DataCenter)||e.DataCenter,u=null===e||void 0===e||null===(r=e.Tenants)||void 0===r?void 0:r[0],d=function(e={}){const{LoadAverage:t,NumberOfCpus:n}=e;if((0,s.f8)(t)&&(0,s.f8)(n))return t.map((e=>100*e/n))}(e),f=Number(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.LimitBytes)||void 0,p=(0,s.f8)(null===(o=e.SharedCacheStats)||void 0===o?void 0:o.UsedBytes)?Number(null===(a=e.SharedCacheStats)||void 0===a?void 0:a.UsedBytes):void 0;return{...e,Rack:l,DC:c,LoadAveragePercents:d,TenantName:u,SharedCacheLimit:f,SharedCacheUsed:p}}const h=e=>e===i.s$.PROBLEMS,m=e=>e===l.SmallUptime?a.Jg:void 0},78195:(e,t,n)=>{var r=n(19418),i=n(9434),o=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},78212:(e,t,n)=>{const r=n(86849);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},78236:e=>{"use strict";e.exports=SyntaxError},78326:(e,t,n)=>{var r=n(68097),i=n(52964),o=n(19305),a=n(83649),s=n(72078),l=n(92061);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),i=n(22680),o=n(77506),a=n(60712);const s={light:{403:()=>n.e(7329).then(n.bind(n,67329)),thumbsUp:()=>n.e(3238).then(n.bind(n,73238)),error:()=>n.e(3872).then(n.bind(n,3872))},dark:{403:()=>n.e(1299).then(n.bind(n,81299)),thumbsUp:()=>n.e(5875).then(n.bind(n,98256)),error:()=>n.e(6990).then(n.bind(n,56990))}},l=(0,o.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const o=(0,i.i)(),[c,u]=r.useState(""),d=s[o]&&s[o][e];return r.useEffect((()=>{"function"===typeof d&&d().then((e=>u(e.default))).catch((e=>{console.error(e),u("")}))}),[d]),c?(0,a.jsx)("img",{alt:e,src:c,className:l(null,t),...n}):null}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),i=n(81288),o=n(21334);const a=(0,r.Z0)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:i}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==i}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=o.F.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async({database:e},{dispatch:t})=>{try{const n=await window.api.viewer.whoami({database:e});return t(c(n)),{data:n}}catch(r){var n;return!(0,i.qP)(r)||401!==r.status||null!==(n=r.data)&&void 0!==n&&n.authUrl||t(l(!1)),{error:r}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const n=await window.api.auth.authenticate(e);return t(l(!0)),{data:n}}catch(n){return{error:n}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.auth.logout();return t(l(!1)),{data:e}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(65809),i=n(31062),o=n(60712);const a=({error:e,className:t,defaultMessage:n=(0,i.A)("responseError.defaultMessage")})=>{const a=(0,r.$)(e)||n;return(0,o.jsx)("div",{className:`error ${t}`,children:a})}},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),i=n.n(r),o=(n(97650),n(48372)),a=n(41650);Object.values(o.JA).forEach((e=>{i().locales[e]&&(i().locales[e].delimiters.thousands=a.en)})),i().locale(o.Ru.lang);const s=i()},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>f,HG:()=>y,nL:()=>g,Qz:()=>v});var r=n(40336),i=n(77506),o=n(12888),a=n(25196),s=n(48372);const l=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),c=(0,s.g4)("ydb-node-name-tooltip",{en:l});var u=n(60712);const d=(0,i.cn)("ydb-node-endpoints-tooltip-content"),f=({data:e,nodeHref:t})=>{var n,i;const s=(0,o.X)(),l=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&l.push({name:c("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&l.push({name:c("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&l.push({name:c("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&l.push({name:c("field_rack"),children:e.Rack,key:"Rack"}),null!==e&&void 0!==e&&e.Endpoints&&e.Endpoints.length&&e.Endpoints.forEach((({Name:e,Address:t})=>{e&&t&&l.push({name:e,children:t,key:e})})),s&&t&&l.push({name:"Links",children:(0,u.jsx)(a.K,{title:c("context_developer-ui"),url:t}),key:"developerUi"}),(0,u.jsx)("div",{className:d("list-container"),children:(0,u.jsx)(r.u,{responsive:!0,children:l.map((({children:e,key:t,...n})=>(0,u.jsx)(r.u.Item,{...n,children:(0,u.jsx)("div",{className:d("definition"),children:e})},t)))})})};var p=n(60073),h=n(41826);const m=(0,p.Hr)({values:{ChangeTime:e=>(0,u.jsx)(h.H,{ChangeTime:e})},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),g=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s}=e,l=(0,p.jl)(m,{TabletId:n,NodeId:r,State:i,Type:o,ChangeTime:a,Generation:s});return(0,u.jsx)(p.z_,{className:t,info:l,dots:!1,size:"s"})},v=(0,p.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),y=({data:e={},className:t})=>{const n=(0,p.jl)(v,e);return(0,u.jsx)(p.z_,{className:t,info:n,dots:!1,size:"s"})}},80222:e=>{e.exports=function(e){return function(){return e}}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},80472:(e,t,n)=>{var r=n(40691);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},80605:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),i=n(88610),o=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,o.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,i.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,i.gc)(e,t))}),[n,e])]}},80971:(e,t,n)=>{"use strict";function r(e="execute",t="query"){let n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}function i(e){return"string"===typeof e?{queryText:e}:e}function o(e){var t;return"SessionCreated"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function a(e){var t;return"StreamData"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}function s(e){var t;return"QueryResponse"===(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.event)}n.d(t,{AH:()=>r,HH:()=>s,QG:()=>i,uR:()=>a,y6:()=>o})},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},81288:(e,t,n)=>{"use strict";n.d(t,{F0:()=>o,Pq:()=>a,TX:()=>r,qP:()=>i,uP:()=>s});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&"network error"===e.message.toLowerCase()),i=e=>Boolean(e&&"object"===typeof e&&"status"in e);function o(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}function a(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}function s(e){return Boolean(a(e)&&401===e.status&&"data"in e&&e.data&&"object"===typeof e.data&&"authUrl"in e.data&&e.data.authUrl&&"string"===typeof e.data.authUrl)}},81382:(e,t,n)=>{var r=n(935),i=n(4212),o=n(64898),a=n(42589),s=n(98545),l=n(26905);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>_});var r=n(96906),i=n(21334),o=n(78668),a=n(67157),s=n(39567),l=n(69053),c=n(72976),u=n(40174),d=n(90565),f=n(47058),p=n(73289),h=n(36894),m=n(29078),g=n(88610),v=n(46496);const y=function(e=!0){return e};var b=n(18517),w=n(56674),x=n(49818);const _={[i.F.reducerPath]:i.F.reducer,singleClusterMode:y,cluster:a.Ay,tenant:b.Ay,tooltip:x.Ay,schema:m.Ay,tenants:w.Ay,partitions:f.Ay,query:p.Ay,heatmap:d.Ay,settings:g.Ay,executeTopQueries:l.Ay,shardsWorkload:v.Ay,authentication:o.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({..._})},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284),i=n(359);const o=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:o=!1})=>{const[a,s,l]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),c=r.useRef(),u=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("keydown",p),o||(e.addEventListener("focus",d),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a),e.removeEventListener("focus",d),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function r(){clearTimeout(c.current),c.current=window.setTimeout(s,t)}function a(){clearTimeout(c.current),c.current=window.setTimeout(l,n)}function d(e){u.current||document.activeElement!==e.target||(u.current=!0,clearTimeout(c.current),s())}function f(e){u.current&&!e.currentTarget.contains(e.relatedTarget)&&(u.current=!1,clearTimeout(c.current),l())}function p(e){e.key===i.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,o]),a}},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),i=n(77506),o=n(60712);const a=(0,i.cn)("g-link"),s=({className:e,to:t,onClick:n,...i})=>t?(0,o.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...i}):(0,o.jsx)("span",{className:e,onClick:n,children:i.children})},82121:e=>{e.exports=function(){return[]}},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function i(e,t,n,r){const i=n[e]||r;return i?i(t):t}function o({values:e,labels:t,defaultValueFormatter:n}){return(o,a)=>({label:r(o,t||{}),value:i(o,a,e||{},n)})}n.d(t,{H:()=>o,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82266:(e,t,n)=>{"use strict";n.d(t,{tH:()=>E,jt:()=>C,lQ:()=>S});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:400,height:400,fill:"none",viewBox:"0 0 400 400"},e),r.createElement("path",{fill:"var(--gil-color-background-shapes)",fillRule:"evenodd",d:"M315.141 81.442c4.093-8.992 22.26-32.072 22.26-32.072s-4.991 23.48-10.481 36.268c-3.793 8.593-15.572 3.997-11.779-4.196m-59.093 28.375c4.092-8.892 26.651-39.965 26.651-39.965s-9.383 31.373-14.873 44.162c-3.793 8.592-15.572 3.996-11.778-4.197M38.541 162.17s-15.372 17.785-19.165 25.978c-3.494 7.493 7.287 11.689 10.68 3.796 5.091-11.69 8.485-29.774 8.485-29.774m-9.084 171.153h334.495c27.95 0 26.952-40.665 8.485-54.353-15.173-11.29-33.04-7.494-33.04-7.494 3.893-7.493 16.57-38.666-16.371-68.34-25.054-22.58-89.039-10.591-89.039-10.591s-3.992-64.843-48.312-58.948c-5.89-23.58-29.746-34.37-45.218-26.078-27.251 14.588-4.592 43.363-4.592 43.363s-17.169-5.496-29.547 4.496c-21.46 17.285-10.78 45.56-10.78 45.56s-9.683-6.395-22.66.4c-32.34 16.885-26.152 42.263-23.956 49.257-5.59-1.099-28.448-3.997-36.833 14.087-9.683 20.882 9.982 32.772 9.982 32.772S6.798 304.348 6.798 312.74c0 .595-.01 1.209-.02 1.835-.142 8.224-.322 18.748 22.68 18.748",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M353.492 190.948c8.01-.329 15.134 3.627 19.294 9.654l.042.063c1.459 2.295.048 5.571-2.986 5.571H354.87a2.795 2.795 0 0 0-2.792 2.796v8.992a2.795 2.795 0 0 0 2.792 2.796h14.873a3.47 3.47 0 0 1 3.121 1.938 3.2 3.2 0 0 1-.6 3.668c-4.06 5.614-10.693 9.285-18.093 9.285-8.446 0-15.78-4.755-19.589-11.692l-57.172-.098h-.003c-5.92-.001-10.956-4.117-11.081-10.353-.126-6.431 5.401-10.831 11.381-10.832h.002l56.973-.098c3.703-6.732 10.801-11.377 18.81-11.69m14.968 33.872c-3.375 4.203-8.562 6.891-14.289 6.891-7.272 0-13.581-4.313-16.562-10.552a2 2 0 0 0-1.802-1.138l-58.394-.1h-.003c-4.061 0-7.009-2.678-7.084-6.432m98.134 11.331h-13.59c-3.675 0-6.792-2.968-6.792-6.796v-8.992c0-3.673 2.963-6.796 6.792-6.796h14.163c-3.475-4.599-9.102-7.55-15.379-7.292l-.004.001c-6.919.269-13.056 4.506-15.941 10.552a2 2 0 0 1-1.802 1.139l-58.198.1c-4.2 0-7.456 2.995-7.383 6.753",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M255.748 153.78a9.17 9.17 0 0 0-9.18 9.191v6.492H391v-6.492a9.167 9.167 0 0 0-9.18-9.191zM391 173.463H246.568V243.5a9.17 9.17 0 0 0 9.18 9.191H381.72c5.072 0 9.189-4.092 9.28-9.208zm-9.28 83.228H255.748c-7.295 0-13.18-5.893-13.18-13.191v-80.529c0-7.298 5.885-13.191 13.18-13.191H381.82c7.295 0 13.18 5.893 13.18 13.191v80.562c-.117 7.266-5.978 13.158-13.28 13.158",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M280.5 133.497a10.055 10.055 0 0 1 10.085-10.093h59.792c5.614 0 10.085 4.61 10.085 10.093v18.384a2 2 0 0 1-2 2H282.5a2 2 0 0 1-2-2zm10.085-6.093a6.056 6.056 0 0 0-6.085 6.093v16.384h71.962v-16.384c0-3.309-2.715-6.093-6.085-6.093z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M291.979 136.396a2 2 0 0 1 2-2h53.104a2 2 0 0 1 2 2v15.486a2 2 0 0 1-2 2h-53.104a2 2 0 0 1-2-2zm4 2v11.486h49.104v-11.486z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-shapes)",d:"M116.899 84.14s-15.372 17.785-19.165 25.978c-3.494 7.493 7.287 11.69 10.681 3.797 4.991-11.59 8.484-29.774 8.484-29.774"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M54.125 213.88c.318-2.546 2.42-4.55 5.079-4.55h7.187c2.658 0 4.76 2.004 5.079 4.55l.004.037.741 7.006c2.076.417 4.094.966 6.024 1.616l4.21-5.703.01-.011a5.07 5.07 0 0 1 6.586-1.336l.012.007 6.176 3.59.007.003c2.313 1.328 3.117 4.128 2.137 6.417l-.01.022-2.89 6.53a49 49 0 0 1 4.41 4.414l6.521-2.891.022-.01c2.29-.982 5.089-.175 6.415 2.139l.004.006 3.575 6.164c1.293 2.131.846 5.099-1.35 6.643l-5.686 4.207a51 51 0 0 1 1.623 6.026l6.999.741-.21 1.989.248-1.984c2.503.313 4.581 2.4 4.447 5.137v7.138c0 .726-.139 1.528-.49 2.252a4.92 4.92 0 0 1-4.008 2.836l-6.985.74a49 49 0 0 1-1.615 6.033l5.71 4.224a5.08 5.08 0 0 1 1.335 6.588l-.007.012-3.586 6.183-.004.005c-1.325 2.315-4.125 3.122-6.415 2.14l-.022-.01-6.52-2.891a49 49 0 0 1-4.412 4.414l2.89 6.53.01.022c.98 2.289.177 5.089-2.136 6.416l-.007.004-6.157 3.579c-2.132 1.295-5.1.847-6.642-1.351l-4.202-5.69a51 51 0 0 1-6.017 1.623l-.74 7.008-.005.037c-.318 2.546-2.42 4.55-5.08 4.55h-7.186c-2.659 0-4.761-2.004-5.08-4.55q0-.019-.004-.037l-.74-7.007a49 49 0 0 1-6.024-1.615l-4.211 5.703-.009.011a5.07 5.07 0 0 1-6.586 1.336l-.012-.007-6.177-3.59-.007-.004c-2.313-1.327-3.116-4.127-2.136-6.416l.01-.022 2.89-6.53a49 49 0 0 1-4.41-4.414l-6.521 2.891-.023.01c-2.29.982-5.089.175-6.414-2.139l-.004-.006-3.575-6.164c-1.293-2.131-.847-5.099 1.35-6.643l5.686-4.207a51 51 0 0 1-1.623-6.026l-7-.741-.023-.003-.014-.002c-1.304-.163-2.398-.804-3.163-1.57a2 2 0 0 1-.122-.134C4.514 274.257 4 273.118 4 271.777v-7.193c0-2.658 2-4.763 4.547-5.082l.037-.005 6.998-.741c.416-2.079.965-4.1 1.615-6.033l-5.71-4.224a5.08 5.08 0 0 1-1.335-6.588l.007-.012 3.59-6.19c1.327-2.314 4.126-3.12 6.415-2.138l.023.01 6.52 2.891a49 49 0 0 1 4.411-4.414l-2.89-6.53-.01-.022c-.98-2.289-.177-5.089 2.137-6.416l6.164-3.583c2.131-1.295 5.099-.847 6.642 1.351l4.202 5.69a51 51 0 0 1 6.016-1.623l.742-7.008q0-.019.004-.037m62.441 49.593-8.462-.897a2 2 0 0 1-1.762-1.66c-.475-2.853-1.237-5.533-2.207-8.249a2 2 0 0 1 .695-2.28l6.887-5.096.05-.036c.367-.254.515-.849.234-1.305l-.026-.044-3.593-6.194-.007-.012a1.08 1.08 0 0 0-1.359-.456l-7.872 3.49a2 2 0 0 1-2.354-.555 45 45 0 0 0-6.02-6.026 2 2 0 0 1-.554-2.351l3.487-7.879a1.09 1.09 0 0 0-.456-1.365l-.012-.007-6.176-3.59-.005-.003a1.07 1.07 0 0 0-1.392.261q0 .002-.003.005l-5.082 6.882a2 2 0 0 1-2.304.688 45 45 0 0 0-8.219-2.201 2 2 0 0 1-1.66-1.762l-.895-8.47c-.087-.643-.577-1.031-1.108-1.031h-7.187c-.532 0-1.021.388-1.108 1.031l-.896 8.47a2 2 0 0 1-1.66 1.762c-2.85.475-5.526 1.238-8.24 2.209a2 2 0 0 1-2.282-.696l-5.091-6.894-.036-.05c-.254-.367-.846-.513-1.3-.234l-.043.026-6.2 3.604c-.475.271-.668.86-.456 1.365l3.487 7.879a2 2 0 0 1-.554 2.351 45 45 0 0 0-6.021 6.026 2 2 0 0 1-2.353.555l-7.872-3.49a1.08 1.08 0 0 0-1.36.456l-.006.012-3.587 6.182-.002.005a1.08 1.08 0 0 0 .26 1.398l.005.003 6.876 5.087a2 2 0 0 1 .686 2.302 45 45 0 0 0-2.199 8.227 2 2 0 0 1-1.762 1.66l-8.461.897c-.639.086-1.029.575-1.029 1.111v7.193c0 .237.072.475.277.745.22.197.49.33.752.366l8.461.897a2 2 0 0 1 1.762 1.66c.475 2.853 1.238 5.533 2.207 8.249a2 2 0 0 1-.694 2.28l-6.888 5.096-.05.036c-.366.254-.514.849-.234 1.305l.026.044 3.6 6.206c.272.476.859.667 1.36.456l7.872-3.49a2 2 0 0 1 2.353.555 45 45 0 0 0 6.02 6.026 2 2 0 0 1 .555 2.351l-3.487 7.879a1.09 1.09 0 0 0 .455 1.365l.012.007 6.177 3.59.004.002a1.07 1.07 0 0 0 1.392-.26l.003-.005 5.083-6.882a2 2 0 0 1 2.304-.688 45 45 0 0 0 8.218 2.201 2 2 0 0 1 1.66 1.762l.896 8.47c.087.643.576 1.031 1.108 1.031h7.187c.531 0 1.02-.388 1.108-1.031l.896-8.47a2 2 0 0 1 1.66-1.762c2.849-.475 5.526-1.238 8.24-2.209a2 2 0 0 1 2.282.696l5.09 6.894.037.05c.253.367.846.513 1.299.234l.044-.026 6.188-3.597.012-.007c.475-.271.667-.86.456-1.365l-3.487-7.879a2 2 0 0 1 .554-2.351 45 45 0 0 0 6.02-6.026 2 2 0 0 1 2.354-.555l7.872 3.49c.501.211 1.087.02 1.359-.456l.007-.012 3.586-6.182.003-.005a1.08 1.08 0 0 0-.265-1.401l-6.876-5.087a2 2 0 0 1-.687-2.302 45 45 0 0 0 2.199-8.227 2 2 0 0 1 1.762-1.66l8.485-.899.029-.003a.92.92 0 0 0 .749-.519l.039-.082c.033-.065.089-.245.089-.505v-7.193q0-.063.004-.125c.026-.424-.273-.897-.933-.986m-53.669-18.569c-12.868 0-23.254 10.393-23.254 23.278S50.03 291.46 62.897 291.46c12.882 0 23.347-10.403 23.255-23.264v-.014c0-12.885-10.386-23.278-23.255-23.278m-27.254 23.278c0-15.091 12.173-27.278 27.254-27.278 15.079 0 27.25 12.183 27.255 27.27.104 15.112-12.189 27.286-27.255 27.286-15.08 0-27.254-12.187-27.254-27.278",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-hightlight)",fillRule:"evenodd",d:"m232.291 67.955 16.869-.5c.799 0 .998 1.2.499 2.098l-34.238 49.357c-.799 1.099-2.096 1.299-1.797-.1l8.984-35.968-16.869.5c-.799-.1-1.098-1.2-.5-2.099l34.039-50.356c.798-1.099 2.096-1.299 1.797.1zM61.799 112.414l10.68-.3c.5 0 .7.8.3 1.299L49.92 145.785c-.399.699-1.297.799-1.098-.1l4.093-23.879-10.68.3c-.5 0-.7-.8-.3-1.299l22.659-32.972c.4-.699 1.297-.799 1.098.1z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-background-lines)",fillRule:"evenodd",d:"M137.562 40.278a2 2 0 0 1 2 2v7.294a2 2 0 0 1-4 0v-7.294a2 2 0 0 1 2-2m-17.072 17.09a2 2 0 0 1 2-2h7.187a2 2 0 0 1 0 4h-7.187a2 2 0 0 1-2-2m22.958 0a2 2 0 0 1 2-2h7.187a2 2 0 1 1 0 4h-7.187a2 2 0 0 1-2-2m-5.885 5.29a2 2 0 0 1 2 2v7.892a2 2 0 0 1-4 0v-7.893a2 2 0 0 1 2-2",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-base)",d:"m66.79 359.9 90.736 10.091c2.296.2 4.292-3.097 4.292-7.193V164.67c0-4.196-1.896-7.393-4.292-7.193L66.79 169.566c-1.996.2-3.693 3.397-3.693 7.294v175.746c0 3.897 1.697 7.094 3.693 7.294"}),r.createElement("path",{fill:"var(--gil-color-object-hightlight)",d:"m315.24 362.997-157.415 6.894c-4.092.2-7.387-3.097-7.387-7.193V164.67c0-4.196 3.295-7.393 7.387-7.193l157.415 6.894c3.494.199 6.389 3.397 6.389 7.293v184.04c0 3.896-2.895 7.194-6.389 7.293"}),r.createElement("path",{fill:"var(--gil-color-object-base)",fillRule:"evenodd",d:"m321.589 233.713-171.19-3.397.079-4 171.191 3.397zm.067 67.241-174.184 2.398-.055-4 174.184-2.397z",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M170.901 184.852c2.096.2 3.893-1.698 3.893-4.096s-1.697-4.496-3.893-4.596c-2.096-.2-3.893 1.698-3.893 4.096s1.697 4.496 3.893 4.596m17.867.901c2.097.1 3.794-1.699 3.794-4.097 0-2.298-1.697-4.396-3.794-4.496-2.196-.1-3.893 1.699-3.893 4.097s1.797 4.396 3.893 4.496m21.262-3.097c0 2.397-1.696 4.196-3.793 4.096-2.096-.1-3.793-2.098-3.793-4.496s1.697-4.196 3.793-4.097c2.097.1 3.793 2.199 3.793 4.497m13.376 4.993c2.096.1 3.693-1.699 3.693-3.997 0-2.398-1.697-4.396-3.693-4.396-1.996-.1-3.693 1.699-3.693 3.997s1.697 4.296 3.693 4.396m20.463-3.095c0 2.298-1.597 4.096-3.593 3.996-1.997-.1-3.594-2.098-3.594-4.396s1.597-4.096 3.594-3.996c1.896.1 3.593 2.098 3.593 4.396m12.877 4.896c1.896.1 3.493-1.699 3.493-3.997s-1.597-4.296-3.493-4.296c-1.997-.1-3.594 1.698-3.594 3.996s1.597 4.197 3.594 4.297",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",fillRule:"evenodd",d:"M272.817 190.248c1.897.1 3.494-1.599 3.494-3.897s-1.597-4.196-3.494-4.296-3.494 1.599-3.494 3.897 1.597 4.196 3.494 4.296m15.871.799c1.897.1 3.394-1.698 3.394-3.896s-1.497-4.097-3.394-4.297c-1.896-.1-3.394 1.599-3.394 3.897s1.498 4.196 3.394 4.296",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",d:"M307.554 188.05c0 2.198-1.497 3.897-3.294 3.797-1.896-.1-3.394-1.998-3.394-4.196s1.498-3.997 3.394-3.797c1.797.1 3.294 1.998 3.294 4.196"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M170.901 256.89c2.096 0 3.893-1.898 3.893-4.296s-1.697-4.396-3.893-4.396c-2.096 0-3.893 1.898-3.893 4.296s1.697 4.396 3.893 4.396m17.868.2c2.097 0 3.794-1.898 3.794-4.296 0-2.298-1.697-4.296-3.794-4.396-2.196 0-3.893 1.898-3.893 4.296s1.797 4.396 3.893 4.396m21.262-3.995c0 2.398-1.697 4.196-3.794 4.196s-3.793-1.998-3.793-4.296c0-2.398 1.697-4.296 3.793-4.196 2.097 0 3.794 1.898 3.794 4.296m13.375 4.395c2.097 0 3.694-1.899 3.694-4.197s-1.697-4.196-3.694-4.296c-1.996 0-3.693 1.799-3.693 4.196 0 2.398 1.697 4.297 3.693 4.297m20.463-3.897c0 2.298-1.597 4.196-3.593 4.096-1.996 0-3.594-1.898-3.594-4.196s1.598-4.196 3.594-4.096c1.896 0 3.593 1.898 3.593 4.196m12.877 4.295c1.896 0 3.494-1.799 3.494-4.097s-1.598-4.196-3.494-4.196c-1.997 0-3.594 1.798-3.594 4.096s1.597 4.197 3.594 4.197m19.565-3.894c0 2.298-1.597 4.097-3.494 4.097s-3.494-1.899-3.494-4.197 1.597-4.096 3.494-4.096c1.897.1 3.494 1.998 3.494 4.196m12.377 4.295c1.897 0 3.394-1.798 3.394-3.997 0-2.298-1.497-4.096-3.394-4.096-1.896-.1-3.394 1.699-3.394 3.997 0 2.198 1.498 4.096 3.394 4.096",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",d:"M307.554 254.492c0 2.199-1.498 3.997-3.294 3.997-1.897 0-3.394-1.798-3.394-4.096 0-2.199 1.497-3.997 3.394-3.997 1.796 0 3.294 1.798 3.294 4.096"}),r.createElement("path",{fill:"var(--gil-color-object-accent-heavy)",fillRule:"evenodd",d:"M240.276 326.93c1.996-.1 3.593-1.998 3.593-4.296s-1.697-4.196-3.593-4.097c-1.997.1-3.594 1.999-3.594 4.297s1.597 4.196 3.594 4.096m-13.177-3.898c0 2.298-1.597 4.296-3.693 4.296-1.996.1-3.693-1.798-3.693-4.096s1.697-4.296 3.693-4.296c1.996-.1 3.693 1.798 3.693 4.096m-20.862 4.897c2.097-.1 3.793-1.998 3.793-4.396s-1.696-4.296-3.793-4.196c-2.096.1-3.793 1.998-3.793 4.396s1.697 4.296 3.793 4.196m-13.674-3.996c0 2.398-1.697 4.396-3.794 4.396-2.096.1-3.893-1.799-3.893-4.196 0-2.398 1.697-4.397 3.893-4.397 2.097 0 3.794 1.899 3.794 4.197m-17.769.501c0 2.398-1.797 4.396-3.893 4.496-2.196.1-3.893-1.798-3.893-4.296s1.797-4.396 3.893-4.496c2.196 0 3.893 1.898 3.893 4.296m98.023 1.496c1.897-.1 3.494-1.899 3.494-4.197s-1.597-4.096-3.494-3.996c-1.897 0-3.494 1.898-3.494 4.196s1.597 4.097 3.494 3.997m-16.071.4c1.897 0 3.494-1.899 3.494-4.197s-1.597-4.096-3.494-4.096c-1.996 0-3.593 1.898-3.593 4.196s1.597 4.197 3.593 4.097",clipRule:"evenodd"}),r.createElement("path",{fill:"var(--gil-color-object-accent-light)",fillRule:"evenodd",d:"M304.26 324.931c1.796 0 3.294-1.899 3.294-4.097s-1.498-3.896-3.294-3.896c-1.897 0-3.394 1.898-3.394 4.096s1.497 3.996 3.394 3.897m-15.572.598c1.897-.1 3.394-1.999 3.394-4.197 0-2.298-1.497-4.096-3.394-3.996-1.896.1-3.394 1.898-3.394 4.196s1.498 4.096 3.394 3.997",clipRule:"evenodd"}));var o=n(87184),a=n(98089),s=n(40336),l=n(59495);const c=(0,r.createContext)(null),u={didCatch:!1,error:null};class d extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=u}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(u)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(u))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=e;if(o){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(void 0===i)throw a;s=i}}return(0,r.createElement)(c.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var f=n(77506);var p=n(34271),h=n(48372);const m=JSON.parse('{"error-title":"Oops! Something went wrong...","error-description":"Something seems to be broken. Please contact support for help.","send-qr-message":"Send QR code to the support","stack-title":"Trace","ui-version":"UI version","backend-version":"Backend version","error":"Error"}'),g=(0,h.g4)("ydb-error-boundary",{en:m});var v=n(65809),y=n(8330);async function b(e){return await async function(){try{var t,n;const e=await window.api.viewer.getNodeInfo(".",{timeout:1e3});return null===e||void 0===e||null===(t=e.SystemStateInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.Version}catch(e){return{error:(0,v.$)(e)}}}().then((t=>({location:window.location.href,userAgent:navigator.userAgent,error:{message:(0,v.$)(e),stack:w(e.stack,{trim:!0,maxLines:10})},uiVersion:y.rE,backendVersion:t})))}function w(e,{trim:t=!0,maxLines:n}={}){return null===e||void 0===e?void 0:e.split("\n").map(((e,n)=>{if(0===n)return e;const r=e.replace(`(${window.location.origin}/`,"(/");return t?r.trim():r})).slice(0,n?n+1:void 0).join("\n")}var x=n(60712);const _=(0,f.cn)("ydb-error-boundary");function E({children:e}){const t=(0,p.x)("ErrorBoundary");return(0,x.jsx)(t,{children:e})}function S({children:e}){return(0,x.jsx)(d,{onError:(e,t)=>{var n;!function(e,t,n="error"){var r;"undefined"!==typeof window&&null!==(r=window.Ya)&&void 0!==r&&r.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:n,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:({error:e})=>(0,x.jsx)(C,{error:e}),children:e})}function C({error:e}){const[t,n]=r.useState();return r.useEffect((()=>{b(e).then((e=>{n(e)}))}),[e]),(0,x.jsxs)(o.s,{direction:"column",gap:4,className:_(null),children:[(0,x.jsxs)(o.s,{direction:"row",alignItems:"center",gap:10,children:[(0,x.jsx)(i,{width:230,height:230}),(0,x.jsxs)(o.s,{direction:"column",gap:5,children:[(0,x.jsxs)(o.s,{direction:"column",gap:2,children:[(0,x.jsx)(a.E,{variant:"subheader-3",children:g("error-title")}),(0,x.jsx)(a.E,{variant:"body-1",color:"complementary",children:g("error-description")})]}),(0,x.jsx)(k,{data:t})]})]}),(0,x.jsxs)(o.s,{direction:"row",alignItems:"start",gap:8,children:[(0,x.jsx)(O,{stack:e.stack}),(0,x.jsxs)(o.s,{direction:"column",gap:3,children:[(0,x.jsx)(a.E,{variant:"body-1",color:"complementary",className:_("qr-help-text"),children:g("send-qr-message")}),(0,x.jsx)(N,{data:t})]})]})]})}function k({data:e}){return(0,x.jsxs)(s.u,{nameMaxWidth:200,children:[(null===e||void 0===e?void 0:e.uiVersion)&&"string"===typeof e.uiVersion&&(0,x.jsx)(s.u.Item,{name:g("ui-version"),children:e.uiVersion}),(null===e||void 0===e?void 0:e.backendVersion)&&"string"===typeof e.backendVersion&&(0,x.jsx)(s.u.Item,{name:g("backend-version"),children:e.backendVersion}),(0,x.jsx)(s.u.Item,{name:g("error"),children:null===e||void 0===e?void 0:e.error.message})]})}function O({stack:e}){if(!e)return null;const t=w(e,{trim:!1,maxLines:void 0});return(0,x.jsxs)(o.s,{direction:"column",className:_("error-stack-wrapper"),children:[(0,x.jsx)(a.E,{variant:"body-1",className:_("error-stack-title"),children:g("stack-title")}),(0,x.jsx)(a.E,{variant:"code-1",className:_("error-stack-code"),children:t})]})}function N({data:e}){const t=r.useRef(null);return r.useEffect((()=>{e&&l.toCanvas(t.current,JSON.stringify(e),{errorCorrectionLevel:"L",width:400})}),[e]),e?(0,x.jsx)("canvas",{ref:t}):null}},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},82461:e=>{"use strict";e.exports=EvalError},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48372);const i=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),o=(0,r.g4)("ydb-bytes-parsers",{en:i})},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>k,yT:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"===typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),x(n)},E=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&b(t,e)},C=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,C)&&y(t,e)}},83216:(e,t,n)=>{var r=n(17900),i=n(96294);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},83649:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},83791:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},84080:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(71765),t)},84100:(e,t,n)=>{var r=n(81382),i=n(63679),o=n(39450),a=n(66217),s=n(43261),l=n(19305),c=n(20368),u=n(91159),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),x=b?f:s(t),_=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(S&&!_)return v||(v=new r),y||u(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var C=_&&h.call(e,"__wrapped__"),k=E&&h.call(t,"__wrapped__");if(C||k){var O=C?e.value():e,N=k?t.value():t;return v||(v=new r),g(O,N,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(59284),i=n(81240),o=n(90826),a=n(84476),s=n(99991),l=n(39238),c=n(54245),u=n(27629);const d=(0,n(69220).om)("popover"),f=(e,t=!1)=>{switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},p=({theme:e,tooltipActionButton:t,tooltipCancelButton:n})=>t||n?r.createElement("div",{className:d("tooltip-buttons")},t&&r.createElement(a.$,{view:f(e,!0),width:"max",onClick:t.onClick,className:d("tooltip-button")},t.text),n&&r.createElement(a.$,{view:f(e,!1),width:"max",onClick:n.onClick,className:d("tooltip-button")},n.text)):null,h=({secondary:e,htmlContent:t,content:n,className:i})=>t||n?t?r.createElement("div",{className:d("tooltip-content",{secondary:e},i),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:d("tooltip-content",{secondary:e},i)},n):null:null;var m=n(67884);const g=({links:e})=>0===e.length?null:r.createElement("div",{className:d("tooltip-links")},e.map(((e,t)=>{const{text:n,href:i,target:o="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(m.N,{href:i,target:o,onClick:a,className:d("tooltip-link")},n),r.createElement("br",null))})));var v=n(46734);const y=({open:e,openOnHover:t,disabled:n,className:i,openTooltip:o,closeTooltip:a,closedManually:s,onClick:l,children:c})=>{const u=async r=>{if(n||e&&t)return;if(!(!l||await l(r)))return;e?(a(),s.current=!0):(o(),s.current=!1)},{onKeyDown:d}=(0,v.N)(u);return"function"===typeof c?r.createElement(r.Fragment,null,c({onClick:u,onKeyDown:d,open:e})):r.createElement("div",{className:i,onClick:u,onKeyDown:l?d:void 0},c)};var b=n(63291);const w=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:i,delayOpening:o,delayClosing:a,behavior:s,shouldBeOpen:l})=>{const c=r.useRef(null),u=r.useRef(null),[d,f]=r.useState(e),p=r.useCallback((()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[]),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]);r.useEffect((()=>()=>{p(),h()}),[h,p]);const m=r.useCallback((e=>{f(e),l.current=e,null===i||void 0===i||i(e)}),[i,l]),g=r.useCallback((()=>{p(),m(!0)}),[m,p]),v=r.useCallback((()=>{h(),m(!1)}),[m,h]);r.useEffect((()=>{t&&v()}),[t,v]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{n&&!l.current&&v()}),[n,v,l]);const[y,w]=b.J[s],x=r.useCallback((()=>{c.current=setTimeout((()=>{c.current=null,g()}),null!==o&&void 0!==o?o:y)}),[y,o,g]),_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[v,w,a]);return{isOpen:d,closingTimeout:u,openTooltip:g,openTooltipDelayed:x,unsetOpeningTimeout:p,closeTooltip:v,closeTooltipDelayed:_,unsetClosingTimeout:h}},x=r.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:f=!0,delayOpening:m,delayClosing:v,behavior:x=b.m.Delayed,placement:_,offset:E={},tooltipOffset:S,tooltipClassName:C,tooltipContentClassName:k,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:P,title:R,content:D,htmlContent:j,contentClassName:M,links:L,forceLinksAppearance:z=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:q,onClick:$,anchorRef:H,strategy:V,qa:W,disablePortal:K=!1,tooltipId:G,focusTrap:Y,autoFocus:Q,restoreFocusRef:Z,modifiers:J},X){const ee=(0,c.j)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(e),{isOpen:ie,closingTimeout:oe,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=w({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:m,delayClosing:v,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>_||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,_]);r.useImperativeHandle(X,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(R),he=`popover-${null!==G&&void 0!==G?G:""}-title-${(0,o.u)()}`,me=r.createElement(l.z,{id:G,role:f?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:d("tooltip",{theme:O,size:N,"with-close":A,"force-links-appearance":z},C),contentClassName:d("tooltip-popup-content",k),open:ie,placement:fe,hasArrow:T,offset:S,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:K,focusTrap:Y,autoFocus:Q,restoreFocus:!0,restoreFocusRef:Z||te,modifiers:J,"aria-labelledby":R?he:void 0},r.createElement(r.Fragment,null,R&&r.createElement("h3",{id:he,className:d("tooltip-title")},R),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:D,htmlContent:j,className:M}),L&&r.createElement(g,{links:L}),r.createElement(p,{theme:O,tooltipActionButton:F,tooltipCancelButton:B}),A&&r.createElement("div",{className:d("tooltip-close")},r.createElement(a.$,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===q||void 0===q||q(e)},extraProps:{"aria-label":"Close"}},r.createElement(s.I,{data:i.A,size:16})))));if(H)return me;const ge=()=>{de(),ie||t||ne.current?re.current=!0:se()},ve=()=>{!n||ne.current||oe.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!==typeof E.top&&"number"!==typeof E.left||(0,u.m)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:d({disabled:t},I),onMouseEnter:f?ge:void 0,onMouseLeave:f?ve:void 0,onFocus:f?ge:void 0,onBlur:f?ve:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":W},r.createElement(y,{closeTooltip:ce,openTooltip:ae,open:ie,openOnHover:f,className:d("handler"),disabled:t,onClick:$,closedManually:ne},P),me)}));x.displayName="Popover"},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},84405:(e,t,n)=>{const r=n(22750),i=n(53577),o=n(53683),a=n(90044),s=n(76941),l=n(56932),c=n(98220),u=n(38198),d=n(78212),f=n(15227),p=n(26237),h=n(71928),m=n(99105);function g(e,t,n){const r=e.size,i=p.getEncodedBits(t,n);let o,a;for(o=0;o<15;o++)a=1===(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(r-15+o,8,a,!0),o<8?e.set(8,r-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(r-8,8,1,!0)}function v(e,t,n){const i=new o;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(i)}));const a=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let r=0;r<s;r++)i.put(r%2?17:236,8);return function(e,t,n){const i=r.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),a=i-o,s=u.getBlocksCount(t,n),l=i%s,c=s-l,f=Math.floor(i/s),p=Math.floor(a/s),h=p+1,m=f-p,g=new d(m);let v=0;const y=new Array(s),b=new Array(s);let w=0;const x=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?p:h;y[r]=x.slice(v,v+e),b[r]=g.encode(y[r]),v+=e,w=Math.max(w,e)}const _=new Uint8Array(i);let E,S,C=0;for(E=0;E<w;E++)for(S=0;S<s;S++)E<y[S].length&&(_[C++]=y[S][E]);for(E=0;E<m;E++)for(S=0;S<s;S++)_[C++]=b[S][E];return _}(i,e,t)}function y(e,t,n,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}o=m.fromString(e,r||40)}}const u=f.getBestVersionForData(o,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=v(t,n,o),p=r.getSymbolSize(t),h=new a(p);return function(e,t){const n=e.size,r=l.getPositions(t);for(let i=0;i<r.length;i++){const t=r[i][0],o=r[i][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let i=-1;i<=7;i++)o+i<=-1||n<=o+i||(r>=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,o+i,!0,!0):e.set(t+r,o+i,!1,!0))}}(h,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(h),function(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],i=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,i+r,!0,!0):e.set(t+n,i+r,!1,!0)}}(h,t),g(h,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+n-8-3,a=1===(r>>s&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(h,t),function(e,t){const n=e.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;a<t.length&&(r=1===(t[a]>>>o&1)),e.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(h,d),isNaN(i)&&(i=c.getBestMask(h,g.bind(null,h,n))),c.applyMask(i,h),g(h,n,i),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,a=i.M;return"undefined"!==typeof t&&(a=i.from(t.errorCorrectionLevel,i.M),n=f.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,a,o)}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),i=n(69220),o=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,i.om)("button");function u(){(0,l.m)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=({side:e,className:t,children:n})=>r.createElement("span",{className:c("icon",{side:f(e)},t)},r.createElement("span",{className:c("icon-inner")},n));function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,i.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:i,disabled:o=!1,loading:s=!1,width:l,title:c,tabIndex:u,type:d="button",component:f,href:h,target:m,rel:g,extraProps:v,onClick:y,onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,children:S,id:C,style:k,className:O,qa:N},T){const A={title:c,tabIndex:u,onClick:y,onClickCapture:r.useCallback((t=>{a.o.publish({componentId:"Button",eventId:"click",domEvent:t,meta:{content:t.currentTarget.textContent,view:e}})}),[e]),onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,id:C,style:k,className:p({view:e,size:t,pin:n,selected:i,disabled:o||s,loading:s,width:l},O),"data-qa":N};if("string"===typeof h||f){const e={href:h,target:m,rel:"_blank"!==m||g?g:"noopener noreferrer"};return r.createElement(f||"a",Object.assign(Object.assign(Object.assign(Object.assign({},v),A),f?{}:e),{ref:T,"aria-disabled":o||s}),b(S))}return r.createElement("button",Object.assign({},v,A,{ref:T,type:d,disabled:o||s,"aria-pressed":i}),b(S))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.g)(d),v=(0,s.g)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,o.If)(e)||(0,o.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,i;const a=[];for(const s of t){const t=(0,o.If)(s)||(0,o.$D)(s),i=g(s),l=v(s)&&y.test(s.props.className||"");if(t||i||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",o="end";n=t?r.createElement(m.Icon,{key:e,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}}else{const n="icon-start",o="start";e=t?r.createElement(m.Icon,{key:n,side:o},s):i?r.cloneElement(s,{side:o}):r.cloneElement(s,{className:p("icon",{side:f(o)},s.props.className)})}else a.push(s)}return a.length>0&&(i=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,i]}}},84579:(e,t,n)=>{var r=n(36738),i=n(31016),o=n(38469),a=n(45865),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},84711:e=>{e.exports=function(){return!1}},85191:(e,t,n)=>{var r=n(8543),i=n(83216),o=n(89157);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},85532:(e,t,n)=>{var r=n(537),i=n(54380),o=n(19305),a=n(60242),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),i=n(64222),o=n(46898);const a=(0,n(69220).om)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,i.v)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(o.m,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},85651:(e,t,n)=>{var r=n(19058);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(59284);function i(e,t,n){const[i,o]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:i;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,o(e))}),[s,n,l]);return[l,c]}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(35711);e.exports=o.call(r,i)},86540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=n(49526),o=n(93650);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||i.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,o.paramDecoder)(e).split(t.delimiter||i.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(i.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+i.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||i.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,o.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(i.OBJECT_KEY_DELIMITER),o=r(n,2),a=o[0],s=o[1];return e[a]=s,e}),{})}}}},86849:(e,t,n)=>{const r=n(87523);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=r.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,r.exp(i)]));return n}},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),i=n(59284),o=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,o.om)("flex"),u=i.forwardRef((function(e,t){const{as:n,direction:o,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:x,inline:_,gap:E,gapRow:S,className:C,space:k,centerContent:O}=e,N=(0,r.Tt)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:A,theme:{spaceBaseSize:I}}=(0,s.L)(),P=e=>"object"===typeof e&&null!==e?A(e):e,R=P(E),D=R?I*Number(R):void 0,j=P(S)||R,M=j?I*Number(j):void 0,L=P(k),z=E||S||!L?void 0:(0,l.si)(L);return i.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:_,s:z},C),ref:t,style:Object.assign({flexDirection:P(o),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:D,rowGap:M,alignContent:P(h),alignItems:P(m),alignSelf:P(g),justifyContent:P(v),justifyItems:P(y),justifySelf:P(b)},p)},N),k?i.Children.map(f,(e=>e?i.createElement("div",{className:c("wr")},e):e)):f)}))},87232:(e,t,n)=>{var r=n(68414),i=n(57741),o=n(73073),a=o&&o.isSet,s=a?i(a):r;e.exports=s},87523:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>i,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const i={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},o={id:i.overview,title:"Overview"},a={id:i.tenants,title:"Databases"},s={id:i.nodes,title:"Nodes"},l={id:i.storage,title:"Storage"},c={id:i.versions,title:"Versions"},u=[o,a,s,l,{id:i.tablets,title:"Tablets"},c];function d(e){return Object.values(i).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},88118:(e,t,n)=>{var r=n(36738),i=n(72078);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",_=function(e){return e instanceof k||!(!e||!e[x])},E=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=y;C.l=E,C.i=_,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case i:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),m=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[o]=t,f[a]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=C.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return C.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case i:h=b/e;break;default:h=b}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=k.prototype;return S.prototype=O,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},88610:(e,t,n)=>{"use strict";n.d(t,{$u:()=>d,Ay:()=>g,CN:()=>f,N8:()=>m,gc:()=>h,s$:()=>a,ue:()=>c,yV:()=>p});var r=n(97091),i=n(59001),o=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=i.f.extractSettingsFromLS(i.c),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.Z0)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),i.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in i.c){const n=t.key;let r=i.c[n];null!==t.newValue&&(r=(0,o.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},88655:(e,t,n)=>{"use strict";n.d(t,{E:()=>u});var r=n(67157),i=n(58351),o=n(77630);const a=(e=i.Hs,t)=>({getNodeRef:(n={})=>(0,o.Vk)(n,null!==e&&void 0!==e?e:"",t)});var s=n(76086),l=n(80967),c=n(75022);function u(){const{balancer:e}=(0,r.Zd)(),[t]=(0,l.i)(s.s2),n=(0,c.N)((e=>e.singleClusterMode)),i=a(e,t);return n?void 0:i}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89728:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},89875:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},89990:(e,t,n)=>{const r=n(71928);function i(e){this.mode=r.BYTE,this.data="string"===typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},90035:(e,t,n)=>{var r=n(97269),i=n(67596),o=n(78475);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},90044:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>o.i,GY:()=>s.GY,YQ:()=>i.Y,N4:()=>r.N});var r=n(75022),i=n(51533),o=n(80967),a=n(95312),s=n(959),l=n(10755),c=n(92459);const u=()=>{const e=(0,l.zy)();return(0,c.mA)(e)};var d=n(76086);function f(){return(0,o.i)(d.av,0)}var p=n(59284);function h(e){const t=p.useRef(e);return p.useLayoutEffect((()=>{t.current=e}),[e]),p.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},90308:(e,t,n)=>{"use strict";var r=n(94701),i=n(31886),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i([n]):n}},90552:(e,t,n)=>{var r=n(61872),i=n(88118),o=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>o});var r=n(97091),i=n(21334);const o={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:o,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=i.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:i})=>{try{var o;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:i={}}=null!==t&&void 0!==t?t:{},{TablePartitions:o=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=i;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),o.forEach(((e,t)=>{const n=Object.assign({},a[t],s[t]);e.DatashardId&&r.set(e.DatashardId,{...r.get(e.DatashardId),metrics:n})}));const l=Array.from(r.values()),c=l[0]&&l[0].metrics&&Object.keys(l[0].metrics).map((e=>({value:e,content:e})));return{tablets:l,metrics:c}}(await Promise.all([window.api.viewer.getTabletsInfo({path:e,database:t},{signal:n}),window.api.viewer.getHeatmapData({path:e,database:t},{signal:n})]));if(null!==(o=a.metrics)&&void 0!==o&&o.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||i(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},90754:(e,t,n)=>{"use strict";n.d(t,{$i:()=>Z,Qx:()=>l,YT:()=>K,a6:()=>c,c2:()=>f,jM:()=>Y,vI:()=>Q});var r=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[o]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[o].base_}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[o];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function x(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=d(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[o];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(s(e),t)}{const t=s(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function _(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>_(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var C,k={};function O(e){const t=k[e];return t||a(0),t}function N(e,t){k[e]||(k[e]=t)}function T(){return C}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){P(e),e.drafts_.forEach(D),e.drafts_=null}function P(e){e===C&&(C=e.parent_)}function R(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D(e){const t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[o].modified_&&(I(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[o].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),I(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[o];if(!r)return p(t,((i,o)=>L(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),p(i,((i,a)=>L(e,r,t,i,a,n,o))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,i,o,a){if(l(i)){const a=M(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!S(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||z(e,i)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===o)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(H(e),e.copy_[t]=V(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[o];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),$(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[o];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function $(e){e.modified_||(e.modified_=!0,e.parent_&&$(e.parent_))}function H(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function V(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=F;n&&(i=[r],o=B);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function W(e){if(!c(e)||S(e))return e;const t=e[o];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=x(e,t.scope_.immer_.useStrictShallowCopy_)}else n=x(e,!0);return p(n,((e,t)=>{v(n,e,W(t))})),t&&(t.finalized_=!1),n}function K(){const e="replace",t="add",n="remove";function o(e){if(!c(e))return e;if(Array.isArray(e))return e.map(o);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,o(t)])));if(b(e))return new Set(Array.from(e).map(o));const t=Object.create(s(e));for(const n in e)t[n]=o(e[n]);return m(e,i)&&(t[i]=e[i]),t}function u(e){return l(e)?o(e):e}N("Patches",{applyPatches_:function(r,i){return i.forEach((i=>{const{path:s,op:l}=i;let c=r;for(let e=0;e<s.length-1;e++){const t=h(c);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof c&&"prototype"===n&&a(19),c=g(c,n),"object"!==typeof c&&a(18,s.join("/"))}const u=h(c),d=o(i.value),f=s[s.length-1];switch(l){case e:switch(u){case 2:return c.set(f,d);case 3:a(16);default:return c[f]=d}case t:switch(u){case 1:return"-"===f?c.push(d):c.splice(f,0,d);case 2:return c.set(f,d);case 3:return c.add(d);default:return c[f]=d}case n:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(i.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,i,o,a){switch(r.type_){case 0:case 2:return function(r,i,o,a){const{base_:s,copy_:l}=r;p(r.assigned_,((r,c)=>{const d=g(s,r),f=g(l,r),p=c?m(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);o.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,i,o,a);case 1:return function(r,i,o,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[o,a]=[a,o]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=i.concat([t]);o.push({op:e,path:n,value:u(c[t])}),a.push({op:e,path:n,value:u(s[t])})}for(let e=s.length;e<c.length;e++){const n=i.concat([e]);o.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=i.concat([e]);a.push({op:n,path:t})}}(r,i,o,a);case 3:return function(e,r,i,o){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);i.push({op:n,path:a,value:e}),o.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);i.push({op:t,path:a,value:e}),o.unshift({op:n,path:a,value:e})}l++}))}(r,i,o,a)}},generateReplacementPatches_:function(t,n,i,o){i.push({op:e,path:[],value:n===r?void 0:n}),o.push({op:e,path:[],value:t})}})}var G=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let i;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=R(this),o=V(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?I(r):P(r)}return A(r,n),j(i,r)}if(!e||"object"!==typeof e){if(i=t(e),void 0===i&&(i=e),i===r&&(i=void 0),this.autoFreeze_&&_(i,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,i,t,r),n(t,r)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=function(e){l(e)||a(10);return W(e)}(e));const t=R(this),n=V(e,void 0);return n[o].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[o];n&&n.isManual_||a(9);const{scope_:r}=n;return A(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=G.produce,Q=G.produceWithPatches.bind(G),Z=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),i=n(69220),o=n(10176);const a="function"===typeof r.useId?function(){return`${i.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,o.zm)()),e.current}},91159:(e,t,n)=>{var r=n(54573),i=n(57741),o=n(73073),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},91268:(e,t,n)=>{"use strict";var r=n(62384),i=n(39232),o=n(8928);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},91407:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(_);else{var t=r(u);null!==t&&D(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var o=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&i(c),w(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&D(x,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,C=null,k=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==C){var e=t.unstable_now();N=e;var n=!0;try{n=C(!0,e)}finally{n?E():(S=!1,C=null)}}else S=!1}if("function"===typeof b)E=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=A,E=function(){P.postMessage(null)}}else E=function(){v(A,0)};function R(e){C=e,S||(S=!0,E())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,D(x,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},91644:(e,t,n)=>{var r=n(62871),i=n(12927);e.exports=function(e,t){return r(e,i(e),t)}},92061:(e,t,n)=>{var r=n(60242);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},92189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,o.createObjectFromConfig)(e,n),l=e[o.RLSCONFIG]&&e[o.RLSCONFIG].queryParser,c=(0,o.parseParams)(n.search,l);if(!s)return{location:i({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var i=s[n],l=i.stateKey,d=i.options,f=void 0===d?{}:d,p=i.initialState,h=i.type,m=(0,o.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,o.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:i({},n,{search:(0,o.createParamsString)(d)}),shouldPush:u}};var o=n(93650),a=n(86540)},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>i,b:()=>o});var r=n(82435);const i="gn-";(0,r.withNaming)({e:"__",m:"_"});const o=(0,r.withNaming)({n:i,e:"__",m:"_"})},92459:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,Ck:()=>v,DM:()=>x,KY:()=>h,Ow:()=>m,_g:()=>b,a3:()=>g,mA:()=>f,qc:()=>w,yX:()=>y});var r=n(905),i=n.n(r),o=n(95166),a=n(74309),s=n.n(a),l=n(67087),c=n(58351);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const i=r[0];t=e.replace(n,":\\"+i.slice(1))}return t};function h(e,t,n={}){let r=n;const a="backend"in n&&Boolean(n.backend);c.Hs&&!a&&c.jC&&(r={...n,backend:c.Hs});const l="clusterName"in n&&Boolean(n.clusterName);c.SL&&!l&&c.jC&&(r={...r,clusterName:c.SL});const u=i()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,o.compile)(d)(t)}${u}`}const m=(e={})=>h(window.location.pathname,void 0,e);function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t,n={}){return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n,r={}){return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e,t={}){return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam};function x(e,t={}){return h(u.tablet,{id:e},{...t})}},92470:(e,t,n)=>{var r=n(84579),i=n(98112);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},93339:(e,t,n)=>{"use strict";var r=n(69123),i=n(39955),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},93650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),i=e[n];if(function(e){return"undefined"===typeof e||null===e}(i)||Array.isArray(i)&&!i.length)return t;var o=e[n].toString();return[].concat(s(t),[c(r)+"="+c(o)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(87924)),i=a(n(62060)),o=a(n(38896));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:o.default,isEqual:i.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),i=[].concat(s(r)),o=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-o,1),i.splice(n-o,1),o++)})),t.join("/")===i.join("/")}))[0]}},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),o=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,o);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var o=n[t],s=o.stateKey,l=o.options,c=void 0===l?{}:l,u=o.initialState,d=o.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?i.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),i=n(86540)},93780:(e,t,n)=>{"use strict";var r=n(3584),i=n(73888),o=n(7445),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,s,c,d,f,m,g,v,y,b,w,x,_,E,S){for(var C,k=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var A=O.get(t);if(N+=1,"undefined"!==typeof A){if(A===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?k=g(n,k):k instanceof Date?k=b(k):"comma"===o&&l(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;k=""}if("string"===typeof(C=k)||"number"===typeof C||"boolean"===typeof C||"symbol"===typeof C||"bigint"===typeof C||i.isBuffer(k))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(k,p.encoder,E,"value",w))]:[x(n)+"="+x(String(k))];var I,P=[];if("undefined"===typeof k)return P;if("comma"===o&&l(k))_&&m&&(k=i.maybeMap(k,m)),I=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(g))I=g;else{var R=Object.keys(k);I=v?R.sort(v):R}var D=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(k)&&1===k.length?D+"[]":D;if(s&&l(k)&&0===k.length)return j+"[]";for(var M=0;M<I.length;++M){var L=I[M],z="object"===typeof L&&L&&"undefined"!==typeof L.value?L.value:k[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(k)?"function"===typeof o?o(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(P,e(z,B,o,a,s,c,d,f,"comma"===o&&_&&l(k)?null:m,g,v,y,b,w,x,_,E,U))}}return P};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof i||null===i)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=i[y];c.skipNulls&&null===b||u(d,m(b,y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=d.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59284);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},94454:e=>{e.exports=function(){}},94701:(e,t,n)=>{"use strict";var r,i=n(30836),o=n(73759),a=n(82461),s=n(52530),l=n(19770),c=n(78236),u=n(39955),d=n(22921),f=n(51682),p=n(45904),h=n(73620),m=n(40538),g=n(7328),v=n(54),y=n(75869),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},x=n(84363),_=n(78599),E=function(){throw new u},S=x?function(){try{return E}catch(e){try{return x(arguments,"callee").get}catch(t){return E}}}():E,C=n(27199)(),k=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},P="undefined"!==typeof Uint8Array&&k?k(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&k?k([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&k?k(k([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&C&&k?k((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&C&&k?k((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&k?k(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":N};if(k)try{null.error}catch(K){var D=k(k(K));R["%Error.prototype%"]=D}var j=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&k&&(n=k(i.prototype))}return R[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(35711),z=n(86173),F=L.call(A,Array.prototype.concat),B=L.call(T,Array.prototype.splice),U=L.call(A,String.prototype.replace),q=L.call(A,String.prototype.slice),$=L.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,W=function(e,t){var n,r=e;if(z(M,r)&&(r="%"+(n=M[r])[0]+"%"),z(R,r)){var i=R[r];if(i===I&&(i=j(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,H,(function(e,t,n,i){r[r.length]=n?U(i,V,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],B(n,F([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=q(p,0,1),m=q(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),z(R,o="%"+(r+="."+p)+"%"))a=R[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var g=x(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=z(a,p),a=a[p];f&&!s&&(R[o]=a)}}return a}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return o(d(e,n,t),n)},e.exports.regexpToFunction=o,e.exports.parse=r,e.exports.compile=function(e,t){return a(r(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=u;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var o,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(o=n.exec(e));){var h=o[0],m=o[1],g=o.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=o[2],b=o[3],w=o[4],x=o[5];if(!p&&u.length){var _=u.length-1,E=u[_];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,_))}u&&(a.push(u),u="",p=!1);var S="+"===x||"*"===x,C="?"===x||"*"===x,k=b||w,O=v||d,N=v||("string"===typeof a[a.length-1]?a[a.length-1]:"");a.push({name:y||s++,prefix:v,delimiter:O,optional:C,repeat:S,pattern:k?l(k):i(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function i(e,t,n){var r="[^"+s(e===t?e:e+t)+"]";return!n||n.indexOf(e)>-1||n.indexOf(t)>-1?r+"+?":s(n)+"|(?:(?!"+s(n)+")"+r+")+?"}function o(e,t){return function(n,r){var i=e.exec(n);if(!i)return!1;for(var o=i[0],a=i.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<i.length;c++)if(void 0!==i[c]){var u=t[c-1];u.repeat?s[u.name]=i[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(i[c],u)}return{path:o,index:a,params:s}}}function a(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var i="",o=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');i+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=o(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');i+=l.prefix+c}}else i+=l}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function u(e,n,r){for(var i=(r=r||{}).strict,o=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=o?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=s(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+s(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+s(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=s(p.prefix)+"("+h+")"}}if(a)i||(d+="(?:"+s(l)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===l:void 0===m;i||(d+="(?:"+s(l)+"(?="+u+"))?"),g||(d+="(?="+s(l)+"|"+u+")")}return new RegExp(d,c(r))}function d(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(e,t,n):function(e,t,n){return u(r(e,n),t,n)}(e,t,n)}},95197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),i=n(67028),o=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,i.Oi)(),[t,n]=(0,s.i)(o.c4),l=a.dZ.parse(t),[c]=(0,s.i)(o.lr),u=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,statisticsMode:c?a.pE.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.jU.tracingLevel},u]}},96294:(e,t,n)=>{var r=n(20943),i=n(71824),o=n(88118);e.exports=function(e){return o(e)?r(e):i(e)}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),i=n(59284),o=n(18650),a=n(84476),s=n(48699),l=n(46700),c=n(69220),u=n(72837);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e"}'),p=(0,u.N)({en:d,ru:f},"ClipboardButton"),h=(0,c.om)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,x=(0,r.Tt)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),_=i.createElement(a.$.Icon,{className:h("icon")},i.createElement(s.u,{size:v[t],status:u}));return i.createElement(o.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},i.createElement(a.$,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},x),"start"===g?_:null,m,"end"===g?_:null))};function b(e){const{text:t,timeout:n=m,onCopy:o,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=i.useRef(),[p,h]=i.useState(void 0),[v,b]=i.useState(!1);i.useEffect((()=>window.clearTimeout(f.current)),[]);const w=i.useCallback(((e,t)=>{null===o||void 0===o||o(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[o,n]),x=i.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),_=i.useCallback((e=>{null===c||void 0===c||c(e),x()}),[c,x]),E=i.useCallback((e=>{null===u||void 0===u||u(e),x()}),[u,x]);return i.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>i.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:_,onFocus:E}))))}},96906:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var i=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let o=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=o(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));o=e,v({type:a.REPLACE})},[i]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[i](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}const i=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){o=s}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const l=i[o],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||i.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=u(i,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,i)=>{const o=t(n,i);let a=()=>{throw new Error(r(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(o.dispatch),{...o,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>m,U1:()=>b,VP:()=>u,zD:()=>M,Z0:()=>q,gk:()=>V,f$:()=>E,i0:()=>_,$S:()=>A,sf:()=>T,mm:()=>k,TK:()=>O,WA:()=>N,Ak:()=>I,aA:()=>g});var r=n(96906);function i(e){return({dispatch:t,getState:n})=>r=>i=>"function"===typeof i?i(t,n,e):r(i)}var o=i(),a=i,s=n(90754),l="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r.Zz:r.Zz.apply(null,arguments)},c=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function u(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(V(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.ve)(t)&&t.type===e,n}var d=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function f(e){return(0,s.a6)(e)?(0,s.jM)(e,(()=>{})):e}function p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var h=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let s=new d;return t&&("boolean"===typeof t?s.push(o):s.push(a(t.extraArgument))),s},m="RTK_autoBatch",g=()=>e=>({payload:e,meta:{[m]:!0}}),v=e=>t=>{setTimeout(t,e)},y=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new d(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:v(10):"callback"===e.type?e.queueNotification:v(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[m],o=!i,o&&(a||(a=!0,l(c))),r.dispatch(e)}finally{i=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=h(),{reducer:n,middleware:i,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let c,u;if("function"===typeof n)c=n;else{if(!(0,r.Qd)(n))throw new Error(V(1));c=(0,r.HY)(n)}u="function"===typeof i?i(t):t();let d=r.Zz;o&&(d=l({trace:!1,..."object"===typeof o&&o}));const f=(0,r.Tw)(...u),p=y(f);const m=d(..."function"===typeof s?s(p):p());return(0,r.y$)(c,a,m)}function w(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(V(28));if(r in t)throw new Error(V(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var x=(e,t)=>c(e)?e.match(t):e(t);function _(...e){return t=>e.some((e=>x(e,t)))}function E(...e){return t=>e.every((e=>x(e,t)))}function S(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function C(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function k(...e){return 0===e.length?e=>S(e,["pending"]):C(e)?_(...e.map((e=>e.pending))):k()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):C(e)?_(...e.map((e=>e.rejected))):O()(e[0])}function N(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||C(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):C(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):C(e)?_(...e.flatMap((e=>[e.pending,e.rejected,e.fulfilled]))):A()(e[0])}var I=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},P=["name","message","stack","code"],R=class{constructor(e,t){this.payload=e,this.meta=t}_type},D=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of P)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},M=(()=>{function e(e,t,n){const r=u(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),i=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=u(e+"/rejected",((e,t,r,i,o)=>({payload:i,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):I(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let o=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=o)&&"object"===typeof m&&"function"===typeof m.then&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(i(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new R(e,t),fulfillWithValue:(e,t)=>new D(e,t)})).then((t=>{if(t instanceof R)throw t;return t instanceof D?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof R?o(null,c,e,g.payload,g.meta):o(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&o.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(L)})}}),{pending:i,rejected:o,fulfilled:r,settled:_(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function L(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var z=Symbol.for("rtk-slice-createasyncthunk");function F(e,t){return`${e}/${t}`}function B({creators:e}={}){const t=e?.asyncThunk?.[z];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(V(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(V(12));if(n in a.sliceCaseReducersByType)throw new Error(V(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"===typeof e.extraReducers?w(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=w(t);if("function"===typeof e)n=()=>f(e());else{const t=f(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if((0,s.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,s.a6)(e))return(0,s.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],a={reducerName:r,type:F(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(V(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?u(e,a):u(e))}(a,o,l):function({type:e,reducerName:t},n,r,i){if(!i)throw new Error(V(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||$,pending:s||$,rejected:l||$,settled:c||$})}(a,o,l,t)}));const d=e=>e,h=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function i(t=d){const r=p(h,n,(()=>new WeakMap));return p(r,t,(()=>{const r={};for(const[i,o]of Object.entries(e.selectors??{}))r[i]=U(o,t,v,n);return r}))}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const b={name:n,reducer:g,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:v,...y(r),injectInto(e,{reducerPath:t,...n}={}){const i=t??r;return e.inject({reducerPath:i,reducer:g},n),{...b,...y(i,!0)}}};return b}}function U(e,t,n,r){function i(i,...o){let a=t(i);return"undefined"===typeof a&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var q=B();function $(){}var{assign:H}=Object;Symbol.for("rtk-state-proxy-original");function V(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},97269:(e,t,n)=>{var r=n(11320),i=n(22894),o=n(23097),a=n(78453),s=n(24381);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>oe,bN:()=>D,d4:()=>ue,vA:()=>de,wA:()=>se});var r=n(59284),i=n(88730),o=r.version.startsWith("19"),a=Symbol.for(o?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=p,b=g;function w(e){if("object"===typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case v:case g:case d:return e;default:return t}}case s:return t}}}function x(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!o(p,l),m=!i(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(i,o){return f?p(i,o):(s=i,l=o,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function _(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function S(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=E(e);let i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=E(i),i=r(t,n)),i},r}}function C(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function k(e,t,n){return{...n,...e,...t}}function O(e){e()}var N={notify(){},get:()=>[]};function T(e,t){let n,r=N,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=N)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}var A=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),I=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),P=(()=>A||I?r.useLayoutEffect:r.useEffect)();function R(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function D(e,t){if(R(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!R(e[n[i]],t[n[i]]))return!1;return!0}var j={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function F(e){return w(e)===g?L:z[e.$$typeof]||j}var B=Object.defineProperty,U=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,V=Object.prototype;function W(e,t){if("string"!==typeof t){if(V){const n=H(t);n&&n!==V&&W(e,n)}let r=U(t);q&&(r=r.concat(q(t)));const i=F(e),o=F(t);for(let a=0;a<r.length;++a){const s=r[a];if(!M[s]&&(!o||!o[s])&&(!i||!i[s])){const r=$(t,s);try{B(e,s,r)}catch(n){}}}}return e}var K=Symbol.for("react-redux-context"),G="undefined"!==typeof globalThis?globalThis:{};function Y(){if(!r.createContext)return{};const e=G[K]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Q=Y(),Z=[null,null];function J(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function X(e,t){return e===t}var ee=function(e,t,n,{pure:i,areStatesEqual:o=X,areOwnPropsEqual:a=D,areStatePropsEqual:s=D,areMergedPropsEqual:l=D,forwardRef:c=!1,context:u=Q}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):C(e,"mapStateToProps"):_((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?_((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"===typeof e?S(e):C(e,"mapDispatchToProps"):_((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):C(e,"mergeProps"):()=>k}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,o,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return x(t(e,i),n(e,i),r(e,i),e,i)}(f.dispatch,i)),[f]),[g,v]=r.useMemo((()=>{if(!m)return Z;const e=T(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,l]),y=r.useMemo((()=>c?l:{...l,subscription:g}),[c,l,g]),b=r.useRef(void 0),w=r.useRef(a),_=r.useRef(void 0),E=r.useRef(!1),S=r.useRef(!1),C=r.useRef(void 0);P((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=r.useMemo((()=>()=>_.current&&a===w.current?_.current:h(f.getState(),a)),[f,a]),O=r.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,i.current)}catch(h){p=h,f=h}p||(f=null),n===o.current?a.current||c():(o.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,E,S,_,v,e):()=>{}),[g]);var N,A,I;let R;N=J,A=[w,b,E,a,_,v],P((()=>N(...A)),I);try{R=r.useSyncExternalStore(O,k,p?()=>h(p(),a):k)}catch(j){throw C.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),j}P((()=>{C.current=void 0,_.current=void 0,b.current=R}));const D=r.useMemo((()=>r.createElement(e,{...R,ref:o})),[o,e,R]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},D):D),[s,D,y])}const g=r.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,W(t,e)}return W(g,e)}};var te=function(e){const{children:t,context:n,serverState:i,store:o}=e,a=r.useMemo((()=>{const e=T(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),s=r.useMemo((()=>o.getState()),[o]);P((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||Q;return r.createElement(l.Provider,{value:a},t)};function ne(e=Q){return function(){return r.useContext(e)}}var re=ne();function ie(e=Q){const t=e===Q?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var oe=ie();function ae(e=Q){const t=e===Q?oe:ie(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ce(e=Q){const t=e===Q?re:ne(e),n=(e,n={})=>{const{equalityFn:o=le}="function"===typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,i.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,o);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ue=ce(),de=O},97650:function(e,t,n){var r,i,o;i=[n(7139)],void 0===(o="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,i=e>=100?100:null;return t[n]||t[r]||t[i]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,i):r)||(e.exports=o)},97763:(e,t,n)=>{const r=n(15742);t.render=function(e,t,n){let i=n,o=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);const a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return r.qrToImageData(l.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,r){let i=r;"undefined"!==typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),i=n(59284),o=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:i},o)=>a({variant:e,ellipsis:t,ws:r,wb:i,"ellipsis-lines":n},o),l=i.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r.Tt)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),i.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,o.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},98137:(e,t,n)=>{var r=n(84401),i=n(96294);e.exports=function(e,t){return e&&r(e,t,i)}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});n(59284);var r=n(47334),i=n(60712);function o({loading:e,size:t="m",className:n,children:o}){return e?(0,i.jsx)(r.a,{size:t,className:n}):o}},98220:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,i=0,o=0,a=null,s=null;for(let l=0;l<t;l++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?i++:(i>=5&&(r+=n+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(r+=n+(o-5)),s=t,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){const t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(i,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,a(e,i,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,i=a)}return i}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),i=n(48681);const o=r.createContext({current:null});o.displayName="PortalContext";var a=n(69118),s=n(46878);const l=(0,n(69220).om)("portal");function c({container:e,children:t,disablePortal:n}){const c=function(){var e;const t=r.useContext(o);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:u}=(0,s.w)(),d=null!==e&&void 0!==e?e:c;return n?r.createElement(r.Fragment,null,t):d?i.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},98730:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{L:()=>r})},98816:(e,t,n)=>{var r=n(68814),i=n(58120);e.exports=function(e){return i(r(e).toLowerCase())}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),i=n(74417),o=n(34271),a=n(82266),s=n(60712);function l(e,t,n){const i=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.jt,{error:e})}))))),l=r.forwardRef(((e,t)=>{const a=(0,o.x)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(i,{ref:t,...e})})})}));return l.displayName=t,l}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(i.a,{size:"l"})})}},99105:(e,t,n)=>{const r=n(71928),i=n(3773),o=n(44593),a=n(89990),s=n(6693),l=n(16284),c=n(22750),u=n(9624);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let i;for(;null!==(i=e.exec(n));)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function p(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=f(l.BYTE,r.BYTE,e),o=f(l.KANJI,r.KANJI,e)):(i=f(l.BYTE_KANJI,r.BYTE,e),o=[]);return t.concat(n,i,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"===typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const i=function(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:d(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:d(i.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),o=function(e,t){const n={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];n[a]&&n[a].node.mode===c.mode?(i[a][u]=h(n[a].lastCount+c.length,c.mode)-h(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),i[a][u]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let r=0;r<o.length;r++)i[o[r]].end=0;return{map:i,table:n}}(i,n),a=u.find_path(o.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(o.table[a[t]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),i=n(359),o=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===i.D.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,i=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,i=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,i)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){o.o.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:i}=t,o="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,i))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||o.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:i,onEnterKeyDown:o,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,i,o,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},99661:(e,t,n)=>{var r=n(57578);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},99889:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),i=n(69220);const o={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,i.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:i,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(i&&(m=i,g=i),t&&(m=t),n&&(g=n),a(e))({viewBox:v}=e);else if(s(e))v=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(e);else if(function(e){return("object"===typeof e||"function"===typeof e)&&"defaultProps"in e}(e))({viewBox:v}=e.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(e)){const t=e({});t&&({viewBox:v}=t.props)}if(v&&(!m||!g)){const e=v.split(/\s+|\s*,\s*/);m||(m=e[2]),g||(g=e[3])}const y=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:g,className:l(null,u),fill:d,stroke:f,"data-qa":p},o);if(s(e)){const t=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(e);return r.createElement("svg",Object.assign({},y,{ref:h,dangerouslySetInnerHTML:{__html:t}}))}if(a(e)){const t=c.prefix+(e.url||`#${e.id}`);return r.createElement("svg",Object.assign({},y,{viewBox:v,ref:h}),r.createElement("use",{href:t,xlinkHref:t}))}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),r.createElement("svg",Object.assign({},y,{ref:h}),r.createElement(b,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{30:"69969059",47:"54dd12ac",60:"85d957cd",99:"73d10ff1",108:"d2d9c180",110:"2c798565",118:"112f7e2f",132:"cf00f1e7",221:"b740df48",225:"cf362439",245:"041a06df",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",431:"f23349ec",513:"46a664ad",523:"17013d4e",628:"70d08de9",654:"863ea445",684:"9346e985",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",856:"36f195a5",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",1053:"f976b474",1088:"40c16ea2",1094:"b5bb2475",1187:"c5435886",1237:"328d0241",1278:"d5c24e15",1299:"aaedb42e",1321:"401aa9b8",1329:"d6e31925",1414:"4cfda0bc",1486:"8a488ae4",1496:"18b1eb19",1606:"0041ed7d",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"1a1c6d4b",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",2031:"d8f098f9",2042:"81e83eeb",2053:"b4294b46",2161:"865bcd48",2162:"cca3e026",2166:"e382ccb1",2182:"1e53f745",2286:"e992ffd4",2308:"9e3a980c",2350:"a7af0a2e",2372:"880a31f6",2466:"b8b05e16",2518:"ac97d255",2568:"5bec7af3",2612:"55127fa0",2626:"a5b0d58c",2726:"abc3a0c2",2742:"d5c8fae8",2775:"9105769d",2776:"0f5e87f5",2854:"48cc58dc",2984:"df749ebe",2994:"6c6016a8",3008:"c8aa656b",3033:"06c03554",3048:"692b5966",3121:"74e9e7dc",3158:"3f2d4e5f",3238:"a9505f7f",3321:"3370cf83",3333:"eb9ec516",3338:"83fe4e63",3410:"6391755f",3478:"480dafa6",3510:"0740f36d",3521:"775b3981",3534:"3f09429a",3638:"ee3efb24",3648:"3a72999a",3653:"06b5272c",3672:"12436dd6",3679:"e293221d",3702:"778880f9",3756:"9a440b73",3761:"dd957fd1",3769:"860e8d58",3779:"1d869a05",3812:"368eb751",3822:"00ab6aaa",3872:"a25d87b5",3879:"17f211ad",3902:"973b73c6",3952:"ce1b4fad",3977:"4c33ec16",4096:"33f702a0",4130:"4d4b9fad",4169:"f2243012",4180:"1de6c8ba",4324:"c69948f7",4349:"9c8d20fd",4401:"f46d19f6",4441:"2b4963cf",4534:"b98f1389",4542:"18433910",4582:"5bf174ff",4601:"39745c4e",4652:"9a5d2242",4662:"1c10232d",4678:"4e2f4af4",4730:"78e66e9a",4818:"6beda30c",4847:"63c73f0a",4870:"1916a88d",4872:"bbf7ab34",4891:"c441be74",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5252:"991dcab8",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5438:"91fe1c76",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",5652:"40b9a7d3",5685:"c0a21a10",5759:"52418ea5",5816:"144b5755",5819:"0ae2eb3d",5853:"0c5ec1d1",5866:"14d27c8c",5875:"f8a190bf",5888:"4fa64369",5924:"53ba4f49",5950:"28656717",5953:"cb95c45e",5988:"38ef363d",6012:"aac08e72",6030:"b30fca36",6047:"328b41a5",6114:"c74edf11",6210:"69d6a30a",6214:"a9a481a7",6261:"78de43a8",6262:"44dba84f",6324:"de01edfb",6342:"a2819c87",6358:"2997762b",6374:"be0c5879",6397:"b8cf6fae",6405:"b0dd94a9",6447:"2c0d9bda",6541:"a39e9d6a",6554:"6dfab136",6625:"a8d44d36",6658:"b22172da",6664:"b4dbf019",6786:"28af14f6",6820:"bff2520f",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6990:"70257b9b",7118:"ce0cd05f",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"514640a4",7348:"eac33db2",7357:"a518ad9e",7380:"38a8eedf",7420:"d0c66c34",7548:"fd5d2b6c",7574:"8ac9803d",7579:"079e5569",7605:"cdc8f605",7614:"00d00ded",7638:"5489d672",7642:"39707d60",7692:"af7181c9",7697:"44af783d",7718:"f897f8ca",7748:"3ec14243",7878:"1f9512c4",7946:"3b4cf6fd",7962:"43ffbad7",7970:"80caf61d",8008:"da36f479",8014:"eb9f97f2",8053:"71be175a",8081:"5fafc7dc",8103:"00c9e9c1",8119:"196e82ef",8234:"7512920e",8256:"a2ce240a",8393:"2e643149",8452:"3bfa9018",8517:"cf981031",8534:"f7aec532",8633:"da605a09",8704:"87492da1",8706:"755fcb81",8821:"96eeccd6",8840:"5eb376ca",8868:"a9031705",8890:"9f3d8f08",8979:"0c0acc31",8986:"de287636",9010:"4bfaf5fa",9025:"6ae28867",9067:"254af4a9",9172:"f332051f",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9300:"89daa9ec",9312:"5eb8d4b1",9393:"b0a1bf0a",9394:"ca56f408",9433:"4cf14d1c",9466:"0afe6e6e",9507:"14872b99",9518:"3fffdd45",9523:"ac019963",9582:"c09a3623",9606:"fc9247cb",9697:"bed5988b",9707:"72e68790",9725:"a94823a0",9728:"7cc957e4",9748:"e711e962",9778:"52ad76ce",9796:"23c68f38",9801:"b9143d43",9802:"b15025e5",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{99:"7cffb936",431:"3826ea2f",684:"a4d29f42",2031:"1e565ac5",3779:"66c0ef83",3812:"440ff245",5438:"615bd68a",5652:"261c3a7a",6030:"05f92b81",8393:"09a78946",8593:"95df9723",9393:"c6fb8cd9",9796:"828f7385",9802:"d30d0ff3"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{99:1,431:1,684:1,2031:1,3779:1,3812:1,5438:1,5652:1,6030:1,8393:1,8593:1,9393:1,9796:1,9802:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(8593!=t){var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var i,o,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5906),t=n(25412),r=n(42566),i=n(54878);const{store:o,history:a}=(0,i.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,25412)).then((({SingleClusterApp:e})=>e));const i=document.getElementById("root");if(!i)throw new Error("Can't find root element");e.createRoot(i).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:o,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/ya.make b/ydb/core/viewer/ya.make index b64e8da00c..8e795388bd 100644 --- a/ydb/core/viewer/ya.make +++ b/ydb/core/viewer/ya.make @@ -125,375 +125,655 @@ IF (NOT EXPORT_CMAKE) monitoring/index.html monitoring/index.html monitoring/json.worker.js monitoring/json.worker.js monitoring/json.worker.js.LICENSE.txt monitoring/json.worker.js.LICENSE.txt - monitoring/static/css/2031.1e565ac5.chunk.css monitoring/static/css/2031.1e565ac5.chunk.css - monitoring/static/css/3779.66c0ef83.chunk.css monitoring/static/css/3779.66c0ef83.chunk.css - monitoring/static/css/3812.440ff245.chunk.css monitoring/static/css/3812.440ff245.chunk.css - monitoring/static/css/431.3826ea2f.chunk.css monitoring/static/css/431.3826ea2f.chunk.css - monitoring/static/css/5438.615bd68a.chunk.css monitoring/static/css/5438.615bd68a.chunk.css - monitoring/static/css/5652.261c3a7a.chunk.css monitoring/static/css/5652.261c3a7a.chunk.css - monitoring/static/css/6030.05f92b81.chunk.css monitoring/static/css/6030.05f92b81.chunk.css - monitoring/static/css/684.a4d29f42.chunk.css monitoring/static/css/684.a4d29f42.chunk.css - monitoring/static/css/8393.09a78946.chunk.css monitoring/static/css/8393.09a78946.chunk.css - monitoring/static/css/8593.95df9723.chunk.css monitoring/static/css/8593.95df9723.chunk.css - monitoring/static/css/9393.c6fb8cd9.chunk.css monitoring/static/css/9393.c6fb8cd9.chunk.css - monitoring/static/css/9796.828f7385.chunk.css monitoring/static/css/9796.828f7385.chunk.css - monitoring/static/css/9802.d30d0ff3.chunk.css monitoring/static/css/9802.d30d0ff3.chunk.css - monitoring/static/css/99.7cffb936.chunk.css monitoring/static/css/99.7cffb936.chunk.css - monitoring/static/css/main.8f03af14.css monitoring/static/css/main.8f03af14.css + monitoring/static/css/23779.b38c45c0.chunk.css monitoring/static/css/23779.b38c45c0.chunk.css + monitoring/static/css/38527.13440c26.chunk.css monitoring/static/css/38527.13440c26.chunk.css + monitoring/static/css/47512.67d2c551.chunk.css monitoring/static/css/47512.67d2c551.chunk.css + monitoring/static/css/48593.95df9723.chunk.css monitoring/static/css/48593.95df9723.chunk.css + monitoring/static/css/49393.82d9be05.chunk.css monitoring/static/css/49393.82d9be05.chunk.css + monitoring/static/css/58705.b781fc86.chunk.css monitoring/static/css/58705.b781fc86.chunk.css + monitoring/static/css/58884.1e565ac5.chunk.css monitoring/static/css/58884.1e565ac5.chunk.css + monitoring/static/css/64464.f737743e.chunk.css monitoring/static/css/64464.f737743e.chunk.css + monitoring/static/css/71867.d30d0ff3.chunk.css monitoring/static/css/71867.d30d0ff3.chunk.css + monitoring/static/css/75510.b1faff6b.chunk.css monitoring/static/css/75510.b1faff6b.chunk.css + monitoring/static/css/85917.9f2a4a06.chunk.css monitoring/static/css/85917.9f2a4a06.chunk.css + monitoring/static/css/90099.7cffb936.chunk.css monitoring/static/css/90099.7cffb936.chunk.css + monitoring/static/css/94695.6eb9306c.chunk.css monitoring/static/css/94695.6eb9306c.chunk.css + monitoring/static/css/96079.c2e5026a.chunk.css monitoring/static/css/96079.c2e5026a.chunk.css + monitoring/static/css/main.84f98361.css monitoring/static/css/main.84f98361.css monitoring/static/favicon.png monitoring/static/favicon.png - monitoring/static/js/1053.f976b474.chunk.js monitoring/static/js/1053.f976b474.chunk.js - monitoring/static/js/108.d2d9c180.chunk.js monitoring/static/js/108.d2d9c180.chunk.js - monitoring/static/js/1088.40c16ea2.chunk.js monitoring/static/js/1088.40c16ea2.chunk.js - monitoring/static/js/1094.b5bb2475.chunk.js monitoring/static/js/1094.b5bb2475.chunk.js - monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt - monitoring/static/js/110.2c798565.chunk.js monitoring/static/js/110.2c798565.chunk.js - monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt - monitoring/static/js/118.112f7e2f.chunk.js monitoring/static/js/118.112f7e2f.chunk.js - monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt + monitoring/static/js/10064.5442bcf6.chunk.js monitoring/static/js/10064.5442bcf6.chunk.js + monitoring/static/js/10132.c1a19fa8.chunk.js monitoring/static/js/10132.c1a19fa8.chunk.js + monitoring/static/js/10242.86faa17f.chunk.js monitoring/static/js/10242.86faa17f.chunk.js + monitoring/static/js/10246.ee23b775.chunk.js monitoring/static/js/10246.ee23b775.chunk.js + monitoring/static/js/10246.ee23b775.chunk.js.LICENSE.txt monitoring/static/js/10246.ee23b775.chunk.js.LICENSE.txt + monitoring/static/js/10310.a0a2e8d7.chunk.js monitoring/static/js/10310.a0a2e8d7.chunk.js + monitoring/static/js/10525.b02faf58.chunk.js monitoring/static/js/10525.b02faf58.chunk.js + monitoring/static/js/1073.da2a8c8a.chunk.js monitoring/static/js/1073.da2a8c8a.chunk.js + monitoring/static/js/10815.03541c68.chunk.js monitoring/static/js/10815.03541c68.chunk.js + monitoring/static/js/10902.cd23357e.chunk.js monitoring/static/js/10902.cd23357e.chunk.js + monitoring/static/js/10902.cd23357e.chunk.js.LICENSE.txt monitoring/static/js/10902.cd23357e.chunk.js.LICENSE.txt + monitoring/static/js/11192.56c4d6e0.chunk.js monitoring/static/js/11192.56c4d6e0.chunk.js + monitoring/static/js/11278.aab5c12c.chunk.js monitoring/static/js/11278.aab5c12c.chunk.js + monitoring/static/js/11278.aab5c12c.chunk.js.LICENSE.txt monitoring/static/js/11278.aab5c12c.chunk.js.LICENSE.txt + monitoring/static/js/11338.6bb2b16a.chunk.js monitoring/static/js/11338.6bb2b16a.chunk.js + monitoring/static/js/1146.65a37bc6.chunk.js monitoring/static/js/1146.65a37bc6.chunk.js monitoring/static/js/1187.c5435886.chunk.js monitoring/static/js/1187.c5435886.chunk.js monitoring/static/js/1237.328d0241.chunk.js monitoring/static/js/1237.328d0241.chunk.js - monitoring/static/js/1278.d5c24e15.chunk.js monitoring/static/js/1278.d5c24e15.chunk.js - monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt - monitoring/static/js/1299.aaedb42e.chunk.js monitoring/static/js/1299.aaedb42e.chunk.js - monitoring/static/js/132.cf00f1e7.chunk.js monitoring/static/js/132.cf00f1e7.chunk.js - monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt - monitoring/static/js/1321.401aa9b8.chunk.js monitoring/static/js/1321.401aa9b8.chunk.js - monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt - monitoring/static/js/1329.d6e31925.chunk.js monitoring/static/js/1329.d6e31925.chunk.js - monitoring/static/js/1414.4cfda0bc.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js - monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt - monitoring/static/js/1486.8a488ae4.chunk.js monitoring/static/js/1486.8a488ae4.chunk.js - monitoring/static/js/1496.18b1eb19.chunk.js monitoring/static/js/1496.18b1eb19.chunk.js + monitoring/static/js/12776.d400f028.chunk.js monitoring/static/js/12776.d400f028.chunk.js + monitoring/static/js/13470.82cfe328.chunk.js monitoring/static/js/13470.82cfe328.chunk.js + monitoring/static/js/13638.e739b34f.chunk.js monitoring/static/js/13638.e739b34f.chunk.js + monitoring/static/js/13638.e739b34f.chunk.js.LICENSE.txt monitoring/static/js/13638.e739b34f.chunk.js.LICENSE.txt + monitoring/static/js/1431.2bb62d12.chunk.js monitoring/static/js/1431.2bb62d12.chunk.js + monitoring/static/js/14382.a8e3e5fd.chunk.js monitoring/static/js/14382.a8e3e5fd.chunk.js + monitoring/static/js/14542.fea67816.chunk.js monitoring/static/js/14542.fea67816.chunk.js + monitoring/static/js/14542.fea67816.chunk.js.LICENSE.txt monitoring/static/js/14542.fea67816.chunk.js.LICENSE.txt + monitoring/static/js/15418.978d5fff.chunk.js monitoring/static/js/15418.978d5fff.chunk.js + monitoring/static/js/15542.e6a4dbf6.chunk.js monitoring/static/js/15542.e6a4dbf6.chunk.js + monitoring/static/js/15542.e6a4dbf6.chunk.js.LICENSE.txt monitoring/static/js/15542.e6a4dbf6.chunk.js.LICENSE.txt + monitoring/static/js/15931.ad3d689f.chunk.js monitoring/static/js/15931.ad3d689f.chunk.js + monitoring/static/js/16038.8c61a9b6.chunk.js monitoring/static/js/16038.8c61a9b6.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js.LICENSE.txt monitoring/static/js/1606.0041ed7d.chunk.js.LICENSE.txt - monitoring/static/js/1627.80c94ebf.chunk.js monitoring/static/js/1627.80c94ebf.chunk.js - monitoring/static/js/1657.d6f0b340.chunk.js monitoring/static/js/1657.d6f0b340.chunk.js - monitoring/static/js/1696.6120f4a8.chunk.js monitoring/static/js/1696.6120f4a8.chunk.js - monitoring/static/js/1747.f01c9fd8.chunk.js monitoring/static/js/1747.f01c9fd8.chunk.js - monitoring/static/js/1756.b612458a.chunk.js monitoring/static/js/1756.b612458a.chunk.js - monitoring/static/js/1836.1a1c6d4b.chunk.js monitoring/static/js/1836.1a1c6d4b.chunk.js - monitoring/static/js/1865.72c933c8.chunk.js monitoring/static/js/1865.72c933c8.chunk.js - monitoring/static/js/1917.e3ac9c6d.chunk.js monitoring/static/js/1917.e3ac9c6d.chunk.js - monitoring/static/js/1956.c11f9b8a.chunk.js monitoring/static/js/1956.c11f9b8a.chunk.js - monitoring/static/js/1975.e3066826.chunk.js monitoring/static/js/1975.e3066826.chunk.js - monitoring/static/js/2016.397296b7.chunk.js monitoring/static/js/2016.397296b7.chunk.js - monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt - monitoring/static/js/2031.d8f098f9.chunk.js monitoring/static/js/2031.d8f098f9.chunk.js - monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt monitoring/static/js/2031.d8f098f9.chunk.js.LICENSE.txt - monitoring/static/js/2042.81e83eeb.chunk.js monitoring/static/js/2042.81e83eeb.chunk.js - monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt - monitoring/static/js/2053.b4294b46.chunk.js monitoring/static/js/2053.b4294b46.chunk.js - monitoring/static/js/2161.865bcd48.chunk.js monitoring/static/js/2161.865bcd48.chunk.js + monitoring/static/js/16097.4303c083.chunk.js monitoring/static/js/16097.4303c083.chunk.js + monitoring/static/js/16210.cfacbd9b.chunk.js monitoring/static/js/16210.cfacbd9b.chunk.js + monitoring/static/js/16210.cfacbd9b.chunk.js.LICENSE.txt monitoring/static/js/16210.cfacbd9b.chunk.js.LICENSE.txt + monitoring/static/js/16242.ba0392be.chunk.js monitoring/static/js/16242.ba0392be.chunk.js + monitoring/static/js/16664.195e9acf.chunk.js monitoring/static/js/16664.195e9acf.chunk.js + monitoring/static/js/16758.3630f667.chunk.js monitoring/static/js/16758.3630f667.chunk.js + monitoring/static/js/16795.c5c2f8ec.chunk.js monitoring/static/js/16795.c5c2f8ec.chunk.js + monitoring/static/js/17240.74653f76.chunk.js monitoring/static/js/17240.74653f76.chunk.js + monitoring/static/js/173.7f4af5fa.chunk.js monitoring/static/js/173.7f4af5fa.chunk.js + monitoring/static/js/17500.d2b3273a.chunk.js monitoring/static/js/17500.d2b3273a.chunk.js + monitoring/static/js/17830.763df207.chunk.js monitoring/static/js/17830.763df207.chunk.js + monitoring/static/js/17880.ed6168a4.chunk.js monitoring/static/js/17880.ed6168a4.chunk.js + monitoring/static/js/17981.5fd12b3d.chunk.js monitoring/static/js/17981.5fd12b3d.chunk.js + monitoring/static/js/19026.f05aa9b2.chunk.js monitoring/static/js/19026.f05aa9b2.chunk.js + monitoring/static/js/19233.b4069ac2.chunk.js monitoring/static/js/19233.b4069ac2.chunk.js + monitoring/static/js/19507.0512979b.chunk.js monitoring/static/js/19507.0512979b.chunk.js + monitoring/static/js/19702.cd1b5e06.chunk.js monitoring/static/js/19702.cd1b5e06.chunk.js + monitoring/static/js/19728.daf9b9f8.chunk.js monitoring/static/js/19728.daf9b9f8.chunk.js + monitoring/static/js/19728.daf9b9f8.chunk.js.LICENSE.txt monitoring/static/js/19728.daf9b9f8.chunk.js.LICENSE.txt + monitoring/static/js/19791.feabd3fc.chunk.js monitoring/static/js/19791.feabd3fc.chunk.js + monitoring/static/js/20053.925f8331.chunk.js monitoring/static/js/20053.925f8331.chunk.js + monitoring/static/js/20535.b2fdb3bf.chunk.js monitoring/static/js/20535.b2fdb3bf.chunk.js + monitoring/static/js/20600.6e1ccb0d.chunk.js monitoring/static/js/20600.6e1ccb0d.chunk.js + monitoring/static/js/20654.f715fac2.chunk.js monitoring/static/js/20654.f715fac2.chunk.js + monitoring/static/js/20654.f715fac2.chunk.js.LICENSE.txt monitoring/static/js/20654.f715fac2.chunk.js.LICENSE.txt + monitoring/static/js/21053.3d2e8f28.chunk.js monitoring/static/js/21053.3d2e8f28.chunk.js monitoring/static/js/2162.cca3e026.chunk.js monitoring/static/js/2162.cca3e026.chunk.js monitoring/static/js/2162.cca3e026.chunk.js.LICENSE.txt monitoring/static/js/2162.cca3e026.chunk.js.LICENSE.txt - monitoring/static/js/2166.e382ccb1.chunk.js monitoring/static/js/2166.e382ccb1.chunk.js - monitoring/static/js/2182.1e53f745.chunk.js monitoring/static/js/2182.1e53f745.chunk.js - monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt - monitoring/static/js/221.b740df48.chunk.js monitoring/static/js/221.b740df48.chunk.js - monitoring/static/js/225.cf362439.chunk.js monitoring/static/js/225.cf362439.chunk.js - monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt - monitoring/static/js/2286.e992ffd4.chunk.js monitoring/static/js/2286.e992ffd4.chunk.js - monitoring/static/js/2308.9e3a980c.chunk.js monitoring/static/js/2308.9e3a980c.chunk.js - monitoring/static/js/2350.a7af0a2e.chunk.js monitoring/static/js/2350.a7af0a2e.chunk.js - monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt - monitoring/static/js/2372.880a31f6.chunk.js monitoring/static/js/2372.880a31f6.chunk.js - monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt - monitoring/static/js/245.041a06df.chunk.js monitoring/static/js/245.041a06df.chunk.js - monitoring/static/js/246.13bb9db2.chunk.js monitoring/static/js/246.13bb9db2.chunk.js - monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt - monitoring/static/js/2466.b8b05e16.chunk.js monitoring/static/js/2466.b8b05e16.chunk.js - monitoring/static/js/2518.ac97d255.chunk.js monitoring/static/js/2518.ac97d255.chunk.js - monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt - monitoring/static/js/2568.5bec7af3.chunk.js monitoring/static/js/2568.5bec7af3.chunk.js - monitoring/static/js/2612.55127fa0.chunk.js monitoring/static/js/2612.55127fa0.chunk.js - monitoring/static/js/2626.a5b0d58c.chunk.js monitoring/static/js/2626.a5b0d58c.chunk.js + monitoring/static/js/21657.6821035c.chunk.js monitoring/static/js/21657.6821035c.chunk.js + monitoring/static/js/21742.5a360b56.chunk.js monitoring/static/js/21742.5a360b56.chunk.js + monitoring/static/js/21956.3e818e6c.chunk.js monitoring/static/js/21956.3e818e6c.chunk.js + monitoring/static/js/21989.76579159.chunk.js monitoring/static/js/21989.76579159.chunk.js + monitoring/static/js/21996.6a6996bf.chunk.js monitoring/static/js/21996.6a6996bf.chunk.js + monitoring/static/js/22372.9c5be99f.chunk.js monitoring/static/js/22372.9c5be99f.chunk.js + monitoring/static/js/22372.9c5be99f.chunk.js.LICENSE.txt monitoring/static/js/22372.9c5be99f.chunk.js.LICENSE.txt + monitoring/static/js/2251.651c81f8.chunk.js monitoring/static/js/2251.651c81f8.chunk.js + monitoring/static/js/22609.bdebad49.chunk.js monitoring/static/js/22609.bdebad49.chunk.js + monitoring/static/js/22626.2495b693.chunk.js monitoring/static/js/22626.2495b693.chunk.js + monitoring/static/js/23039.f34c5f78.chunk.js monitoring/static/js/23039.f34c5f78.chunk.js + monitoring/static/js/23158.a522a83d.chunk.js monitoring/static/js/23158.a522a83d.chunk.js + monitoring/static/js/23158.a522a83d.chunk.js.LICENSE.txt monitoring/static/js/23158.a522a83d.chunk.js.LICENSE.txt + monitoring/static/js/23321.4a32d0c2.chunk.js monitoring/static/js/23321.4a32d0c2.chunk.js + monitoring/static/js/23702.887336e8.chunk.js monitoring/static/js/23702.887336e8.chunk.js + monitoring/static/js/23702.887336e8.chunk.js.LICENSE.txt monitoring/static/js/23702.887336e8.chunk.js.LICENSE.txt + monitoring/static/js/23779.2a240d6f.chunk.js monitoring/static/js/23779.2a240d6f.chunk.js + monitoring/static/js/23882.3b39c413.chunk.js monitoring/static/js/23882.3b39c413.chunk.js + monitoring/static/js/24130.160bfd14.chunk.js monitoring/static/js/24130.160bfd14.chunk.js + monitoring/static/js/24349.ff3855f6.chunk.js monitoring/static/js/24349.ff3855f6.chunk.js + monitoring/static/js/24458.50eb1325.chunk.js monitoring/static/js/24458.50eb1325.chunk.js + monitoring/static/js/24534.3cac028e.chunk.js monitoring/static/js/24534.3cac028e.chunk.js + monitoring/static/js/24534.3cac028e.chunk.js.LICENSE.txt monitoring/static/js/24534.3cac028e.chunk.js.LICENSE.txt + monitoring/static/js/24662.5e8417ae.chunk.js monitoring/static/js/24662.5e8417ae.chunk.js + monitoring/static/js/24662.5e8417ae.chunk.js.LICENSE.txt monitoring/static/js/24662.5e8417ae.chunk.js.LICENSE.txt + monitoring/static/js/25007.2ae44a13.chunk.js monitoring/static/js/25007.2ae44a13.chunk.js + monitoring/static/js/25101.06af1360.chunk.js monitoring/static/js/25101.06af1360.chunk.js + monitoring/static/js/25453.c8bfcbe1.chunk.js monitoring/static/js/25453.c8bfcbe1.chunk.js + monitoring/static/js/25604.54cb85d0.chunk.js monitoring/static/js/25604.54cb85d0.chunk.js + monitoring/static/js/25636.358f92b4.chunk.js monitoring/static/js/25636.358f92b4.chunk.js + monitoring/static/js/25636.358f92b4.chunk.js.LICENSE.txt monitoring/static/js/25636.358f92b4.chunk.js.LICENSE.txt + monitoring/static/js/26214.42be0c73.chunk.js monitoring/static/js/26214.42be0c73.chunk.js + monitoring/static/js/26214.42be0c73.chunk.js.LICENSE.txt monitoring/static/js/26214.42be0c73.chunk.js.LICENSE.txt + monitoring/static/js/26324.10b41523.chunk.js monitoring/static/js/26324.10b41523.chunk.js + monitoring/static/js/26327.62bdac9a.chunk.js monitoring/static/js/26327.62bdac9a.chunk.js + monitoring/static/js/26358.23555994.chunk.js monitoring/static/js/26358.23555994.chunk.js + monitoring/static/js/26411.07f03301.chunk.js monitoring/static/js/26411.07f03301.chunk.js + monitoring/static/js/2656.6cdcd805.chunk.js monitoring/static/js/2656.6cdcd805.chunk.js + monitoring/static/js/26625.d5154eea.chunk.js monitoring/static/js/26625.d5154eea.chunk.js + monitoring/static/js/26833.d6c6c578.chunk.js monitoring/static/js/26833.d6c6c578.chunk.js + monitoring/static/js/27148.5289994c.chunk.js monitoring/static/js/27148.5289994c.chunk.js + monitoring/static/js/27148.5289994c.chunk.js.LICENSE.txt monitoring/static/js/27148.5289994c.chunk.js.LICENSE.txt monitoring/static/js/2726.abc3a0c2.chunk.js monitoring/static/js/2726.abc3a0c2.chunk.js monitoring/static/js/2726.abc3a0c2.chunk.js.LICENSE.txt monitoring/static/js/2726.abc3a0c2.chunk.js.LICENSE.txt - monitoring/static/js/2742.d5c8fae8.chunk.js monitoring/static/js/2742.d5c8fae8.chunk.js - monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt - monitoring/static/js/2775.9105769d.chunk.js monitoring/static/js/2775.9105769d.chunk.js - monitoring/static/js/2776.0f5e87f5.chunk.js monitoring/static/js/2776.0f5e87f5.chunk.js - monitoring/static/js/2854.48cc58dc.chunk.js monitoring/static/js/2854.48cc58dc.chunk.js - monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt - monitoring/static/js/290.b4f1e118.chunk.js monitoring/static/js/290.b4f1e118.chunk.js - monitoring/static/js/2984.df749ebe.chunk.js monitoring/static/js/2984.df749ebe.chunk.js + monitoring/static/js/27950.acee5eec.chunk.js monitoring/static/js/27950.acee5eec.chunk.js + monitoring/static/js/28125.0776827a.chunk.js monitoring/static/js/28125.0776827a.chunk.js + monitoring/static/js/28256.20804e43.chunk.js monitoring/static/js/28256.20804e43.chunk.js + monitoring/static/js/28868.3c0ecf71.chunk.js monitoring/static/js/28868.3c0ecf71.chunk.js + monitoring/static/js/29043.f0a51584.chunk.js monitoring/static/js/29043.f0a51584.chunk.js + monitoring/static/js/29193.43e37031.chunk.js monitoring/static/js/29193.43e37031.chunk.js + monitoring/static/js/29394.e027e9c7.chunk.js monitoring/static/js/29394.e027e9c7.chunk.js + monitoring/static/js/29394.e027e9c7.chunk.js.LICENSE.txt monitoring/static/js/29394.e027e9c7.chunk.js.LICENSE.txt + monitoring/static/js/29461.74898902.chunk.js monitoring/static/js/29461.74898902.chunk.js + monitoring/static/js/29769.21fd5384.chunk.js monitoring/static/js/29769.21fd5384.chunk.js + monitoring/static/js/29866.16645b0d.chunk.js monitoring/static/js/29866.16645b0d.chunk.js monitoring/static/js/2994.6c6016a8.chunk.js monitoring/static/js/2994.6c6016a8.chunk.js monitoring/static/js/2994.6c6016a8.chunk.js.LICENSE.txt monitoring/static/js/2994.6c6016a8.chunk.js.LICENSE.txt - monitoring/static/js/30.69969059.chunk.js monitoring/static/js/30.69969059.chunk.js - monitoring/static/js/30.69969059.chunk.js.LICENSE.txt monitoring/static/js/30.69969059.chunk.js.LICENSE.txt - monitoring/static/js/3008.c8aa656b.chunk.js monitoring/static/js/3008.c8aa656b.chunk.js - monitoring/static/js/3033.06c03554.chunk.js monitoring/static/js/3033.06c03554.chunk.js + monitoring/static/js/30226.e28d8c14.chunk.js monitoring/static/js/30226.e28d8c14.chunk.js + monitoring/static/js/30229.9a64e8c6.chunk.js monitoring/static/js/30229.9a64e8c6.chunk.js + monitoring/static/js/30249.b5966caf.chunk.js monitoring/static/js/30249.b5966caf.chunk.js monitoring/static/js/3048.692b5966.chunk.js monitoring/static/js/3048.692b5966.chunk.js monitoring/static/js/3048.692b5966.chunk.js.LICENSE.txt monitoring/static/js/3048.692b5966.chunk.js.LICENSE.txt - monitoring/static/js/310.b23bf6b2.chunk.js monitoring/static/js/310.b23bf6b2.chunk.js + monitoring/static/js/30499.28982bd3.chunk.js monitoring/static/js/30499.28982bd3.chunk.js + monitoring/static/js/30523.726a6c98.chunk.js monitoring/static/js/30523.726a6c98.chunk.js + monitoring/static/js/30573.df897e71.chunk.js monitoring/static/js/30573.df897e71.chunk.js + monitoring/static/js/3061.c2a39676.chunk.js monitoring/static/js/3061.c2a39676.chunk.js + monitoring/static/js/30811.b4fed9a8.chunk.js monitoring/static/js/30811.b4fed9a8.chunk.js + monitoring/static/js/30850.aef4d4ce.chunk.js monitoring/static/js/30850.aef4d4ce.chunk.js + monitoring/static/js/31177.d892dd40.chunk.js monitoring/static/js/31177.d892dd40.chunk.js monitoring/static/js/3121.74e9e7dc.chunk.js monitoring/static/js/3121.74e9e7dc.chunk.js - monitoring/static/js/3158.3f2d4e5f.chunk.js monitoring/static/js/3158.3f2d4e5f.chunk.js - monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt - monitoring/static/js/3238.a9505f7f.chunk.js monitoring/static/js/3238.a9505f7f.chunk.js - monitoring/static/js/3321.3370cf83.chunk.js monitoring/static/js/3321.3370cf83.chunk.js - monitoring/static/js/3333.eb9ec516.chunk.js monitoring/static/js/3333.eb9ec516.chunk.js - monitoring/static/js/3338.83fe4e63.chunk.js monitoring/static/js/3338.83fe4e63.chunk.js - monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt + monitoring/static/js/31423.b7296b03.chunk.js monitoring/static/js/31423.b7296b03.chunk.js + monitoring/static/js/3149.0c1f7eee.chunk.js monitoring/static/js/3149.0c1f7eee.chunk.js + monitoring/static/js/31584.6ddd5f13.chunk.js monitoring/static/js/31584.6ddd5f13.chunk.js + monitoring/static/js/31975.54132ada.chunk.js monitoring/static/js/31975.54132ada.chunk.js + monitoring/static/js/32166.8e70395f.chunk.js monitoring/static/js/32166.8e70395f.chunk.js + monitoring/static/js/32286.23bbbad8.chunk.js monitoring/static/js/32286.23bbbad8.chunk.js + monitoring/static/js/32670.1e209a72.chunk.js monitoring/static/js/32670.1e209a72.chunk.js + monitoring/static/js/32742.d4094814.chunk.js monitoring/static/js/32742.d4094814.chunk.js + monitoring/static/js/32742.d4094814.chunk.js.LICENSE.txt monitoring/static/js/32742.d4094814.chunk.js.LICENSE.txt + monitoring/static/js/32854.6c426003.chunk.js monitoring/static/js/32854.6c426003.chunk.js + monitoring/static/js/32854.6c426003.chunk.js.LICENSE.txt monitoring/static/js/32854.6c426003.chunk.js.LICENSE.txt + monitoring/static/js/33338.c39231db.chunk.js monitoring/static/js/33338.c39231db.chunk.js + monitoring/static/js/33338.c39231db.chunk.js.LICENSE.txt monitoring/static/js/33338.c39231db.chunk.js.LICENSE.txt + monitoring/static/js/33436.e8e4435f.chunk.js monitoring/static/js/33436.e8e4435f.chunk.js + monitoring/static/js/33521.11130f2d.chunk.js monitoring/static/js/33521.11130f2d.chunk.js + monitoring/static/js/33822.3b7da7cd.chunk.js monitoring/static/js/33822.3b7da7cd.chunk.js + monitoring/static/js/33822.3b7da7cd.chunk.js.LICENSE.txt monitoring/static/js/33822.3b7da7cd.chunk.js.LICENSE.txt monitoring/static/js/3410.6391755f.chunk.js monitoring/static/js/3410.6391755f.chunk.js - monitoring/static/js/3478.480dafa6.chunk.js monitoring/static/js/3478.480dafa6.chunk.js - monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt - monitoring/static/js/3510.0740f36d.chunk.js monitoring/static/js/3510.0740f36d.chunk.js - monitoring/static/js/3521.775b3981.chunk.js monitoring/static/js/3521.775b3981.chunk.js - monitoring/static/js/3534.3f09429a.chunk.js monitoring/static/js/3534.3f09429a.chunk.js - monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt - monitoring/static/js/3638.ee3efb24.chunk.js monitoring/static/js/3638.ee3efb24.chunk.js - monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt + monitoring/static/js/34119.377036f7.chunk.js monitoring/static/js/34119.377036f7.chunk.js + monitoring/static/js/34156.b749f595.chunk.js monitoring/static/js/34156.b749f595.chunk.js + monitoring/static/js/34169.9a22281f.chunk.js monitoring/static/js/34169.9a22281f.chunk.js + monitoring/static/js/34542.6199c708.chunk.js monitoring/static/js/34542.6199c708.chunk.js + monitoring/static/js/34693.09c32626.chunk.js monitoring/static/js/34693.09c32626.chunk.js + monitoring/static/js/34847.ec23543c.chunk.js monitoring/static/js/34847.ec23543c.chunk.js + monitoring/static/js/35161.d7f85805.chunk.js monitoring/static/js/35161.d7f85805.chunk.js + monitoring/static/js/3534.d7d57e03.chunk.js monitoring/static/js/3534.d7d57e03.chunk.js + monitoring/static/js/35382.6471a2ea.chunk.js monitoring/static/js/35382.6471a2ea.chunk.js + monitoring/static/js/35382.6471a2ea.chunk.js.LICENSE.txt monitoring/static/js/35382.6471a2ea.chunk.js.LICENSE.txt + monitoring/static/js/35569.8ceadf10.chunk.js monitoring/static/js/35569.8ceadf10.chunk.js + monitoring/static/js/35596.d9a26c66.chunk.js monitoring/static/js/35596.d9a26c66.chunk.js + monitoring/static/js/35803.0104654b.chunk.js monitoring/static/js/35803.0104654b.chunk.js + monitoring/static/js/35888.e5062b23.chunk.js monitoring/static/js/35888.e5062b23.chunk.js + monitoring/static/js/35888.e5062b23.chunk.js.LICENSE.txt monitoring/static/js/35888.e5062b23.chunk.js.LICENSE.txt + monitoring/static/js/35958.73cbdbca.chunk.js monitoring/static/js/35958.73cbdbca.chunk.js + monitoring/static/js/36374.16f4dcdb.chunk.js monitoring/static/js/36374.16f4dcdb.chunk.js + monitoring/static/js/36374.16f4dcdb.chunk.js.LICENSE.txt monitoring/static/js/36374.16f4dcdb.chunk.js.LICENSE.txt monitoring/static/js/3648.3a72999a.chunk.js monitoring/static/js/3648.3a72999a.chunk.js monitoring/static/js/3648.3a72999a.chunk.js.LICENSE.txt monitoring/static/js/3648.3a72999a.chunk.js.LICENSE.txt - monitoring/static/js/3653.06b5272c.chunk.js monitoring/static/js/3653.06b5272c.chunk.js - monitoring/static/js/3672.12436dd6.chunk.js monitoring/static/js/3672.12436dd6.chunk.js - monitoring/static/js/3679.e293221d.chunk.js monitoring/static/js/3679.e293221d.chunk.js - monitoring/static/js/3702.778880f9.chunk.js monitoring/static/js/3702.778880f9.chunk.js - monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt - monitoring/static/js/3756.9a440b73.chunk.js monitoring/static/js/3756.9a440b73.chunk.js - monitoring/static/js/3761.dd957fd1.chunk.js monitoring/static/js/3761.dd957fd1.chunk.js - monitoring/static/js/3769.860e8d58.chunk.js monitoring/static/js/3769.860e8d58.chunk.js - monitoring/static/js/3779.1d869a05.chunk.js monitoring/static/js/3779.1d869a05.chunk.js - monitoring/static/js/3812.368eb751.chunk.js monitoring/static/js/3812.368eb751.chunk.js - monitoring/static/js/3822.00ab6aaa.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js - monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt + monitoring/static/js/36754.f9faf9f5.chunk.js monitoring/static/js/36754.f9faf9f5.chunk.js + monitoring/static/js/36786.ca3962c1.chunk.js monitoring/static/js/36786.ca3962c1.chunk.js + monitoring/static/js/3738.bec1d482.chunk.js monitoring/static/js/3738.bec1d482.chunk.js + monitoring/static/js/37380.7c50d99e.chunk.js monitoring/static/js/37380.7c50d99e.chunk.js + monitoring/static/js/37385.c32c6c83.chunk.js monitoring/static/js/37385.c32c6c83.chunk.js + monitoring/static/js/37579.aa311c74.chunk.js monitoring/static/js/37579.aa311c74.chunk.js + monitoring/static/js/37605.270ebf37.chunk.js monitoring/static/js/37605.270ebf37.chunk.js + monitoring/static/js/37677.c7cb500e.chunk.js monitoring/static/js/37677.c7cb500e.chunk.js + monitoring/static/js/37747.ab1590d9.chunk.js monitoring/static/js/37747.ab1590d9.chunk.js + monitoring/static/js/37963.55ad78e4.chunk.js monitoring/static/js/37963.55ad78e4.chunk.js + monitoring/static/js/38103.a27aa378.chunk.js monitoring/static/js/38103.a27aa378.chunk.js + monitoring/static/js/38527.b39cc908.chunk.js monitoring/static/js/38527.b39cc908.chunk.js + monitoring/static/js/38718.bf415be7.chunk.js monitoring/static/js/38718.bf415be7.chunk.js monitoring/static/js/3872.a25d87b5.chunk.js monitoring/static/js/3872.a25d87b5.chunk.js - monitoring/static/js/3879.17f211ad.chunk.js monitoring/static/js/3879.17f211ad.chunk.js monitoring/static/js/3902.973b73c6.chunk.js monitoring/static/js/3902.973b73c6.chunk.js monitoring/static/js/3952.ce1b4fad.chunk.js monitoring/static/js/3952.ce1b4fad.chunk.js - monitoring/static/js/3977.4c33ec16.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js - monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt - monitoring/static/js/4096.33f702a0.chunk.js monitoring/static/js/4096.33f702a0.chunk.js - monitoring/static/js/4130.4d4b9fad.chunk.js monitoring/static/js/4130.4d4b9fad.chunk.js - monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4169.f2243012.chunk.js + monitoring/static/js/39705.257f0583.chunk.js monitoring/static/js/39705.257f0583.chunk.js + monitoring/static/js/3980.f3083535.chunk.js monitoring/static/js/3980.f3083535.chunk.js + monitoring/static/js/40047.1e272b92.chunk.js monitoring/static/js/40047.1e272b92.chunk.js + monitoring/static/js/40060.5f9cbddd.chunk.js monitoring/static/js/40060.5f9cbddd.chunk.js + monitoring/static/js/40132.8f54cbd2.chunk.js monitoring/static/js/40132.8f54cbd2.chunk.js + monitoring/static/js/40132.8f54cbd2.chunk.js.LICENSE.txt monitoring/static/js/40132.8f54cbd2.chunk.js.LICENSE.txt + monitoring/static/js/4018.f6c8e2ef.chunk.js monitoring/static/js/4018.f6c8e2ef.chunk.js + monitoring/static/js/40388.be25f07a.chunk.js monitoring/static/js/40388.be25f07a.chunk.js + monitoring/static/js/40710.a00731c6.chunk.js monitoring/static/js/40710.a00731c6.chunk.js + monitoring/static/js/40730.5e1bc3d1.chunk.js monitoring/static/js/40730.5e1bc3d1.chunk.js + monitoring/static/js/41696.f9f2ec5d.chunk.js monitoring/static/js/41696.f9f2ec5d.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js - monitoring/static/js/431.f23349ec.chunk.js monitoring/static/js/431.f23349ec.chunk.js - monitoring/static/js/4324.c69948f7.chunk.js monitoring/static/js/4324.c69948f7.chunk.js - monitoring/static/js/4349.9c8d20fd.chunk.js monitoring/static/js/4349.9c8d20fd.chunk.js - monitoring/static/js/4401.f46d19f6.chunk.js monitoring/static/js/4401.f46d19f6.chunk.js + monitoring/static/js/42111.2a4b8434.chunk.js monitoring/static/js/42111.2a4b8434.chunk.js + monitoring/static/js/42182.a71d5155.chunk.js monitoring/static/js/42182.a71d5155.chunk.js + monitoring/static/js/42182.a71d5155.chunk.js.LICENSE.txt monitoring/static/js/42182.a71d5155.chunk.js.LICENSE.txt + monitoring/static/js/42384.403ac671.chunk.js monitoring/static/js/42384.403ac671.chunk.js + monitoring/static/js/42396.9af219b0.chunk.js monitoring/static/js/42396.9af219b0.chunk.js + monitoring/static/js/4243.697ce022.chunk.js monitoring/static/js/4243.697ce022.chunk.js + monitoring/static/js/42612.7c3ffc1d.chunk.js monitoring/static/js/42612.7c3ffc1d.chunk.js + monitoring/static/js/42615.93e0f1f6.chunk.js monitoring/static/js/42615.93e0f1f6.chunk.js + monitoring/static/js/42791.26100ebe.chunk.js monitoring/static/js/42791.26100ebe.chunk.js + monitoring/static/js/42912.7ab36c78.chunk.js monitoring/static/js/42912.7ab36c78.chunk.js + monitoring/static/js/43028.3817b0d7.chunk.js monitoring/static/js/43028.3817b0d7.chunk.js + monitoring/static/js/43702.745d5072.chunk.js monitoring/static/js/43702.745d5072.chunk.js + monitoring/static/js/43702.745d5072.chunk.js.LICENSE.txt monitoring/static/js/43702.745d5072.chunk.js.LICENSE.txt + monitoring/static/js/43761.7a876492.chunk.js monitoring/static/js/43761.7a876492.chunk.js + monitoring/static/js/43979.9ed5260f.chunk.js monitoring/static/js/43979.9ed5260f.chunk.js + monitoring/static/js/44096.4faf307e.chunk.js monitoring/static/js/44096.4faf307e.chunk.js + monitoring/static/js/44391.7bf4eade.chunk.js monitoring/static/js/44391.7bf4eade.chunk.js monitoring/static/js/4441.2b4963cf.chunk.js monitoring/static/js/4441.2b4963cf.chunk.js - monitoring/static/js/4534.b98f1389.chunk.js monitoring/static/js/4534.b98f1389.chunk.js - monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt - monitoring/static/js/4542.18433910.chunk.js monitoring/static/js/4542.18433910.chunk.js - monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt - monitoring/static/js/4582.5bf174ff.chunk.js monitoring/static/js/4582.5bf174ff.chunk.js - monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt - monitoring/static/js/4601.39745c4e.chunk.js monitoring/static/js/4601.39745c4e.chunk.js - monitoring/static/js/4652.9a5d2242.chunk.js monitoring/static/js/4652.9a5d2242.chunk.js - monitoring/static/js/4662.1c10232d.chunk.js monitoring/static/js/4662.1c10232d.chunk.js - monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt - monitoring/static/js/4678.4e2f4af4.chunk.js monitoring/static/js/4678.4e2f4af4.chunk.js - monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt - monitoring/static/js/47.54dd12ac.chunk.js monitoring/static/js/47.54dd12ac.chunk.js + monitoring/static/js/44601.53b5fa99.chunk.js monitoring/static/js/44601.53b5fa99.chunk.js + monitoring/static/js/44846.352e01be.chunk.js monitoring/static/js/44846.352e01be.chunk.js + monitoring/static/js/44846.352e01be.chunk.js.LICENSE.txt monitoring/static/js/44846.352e01be.chunk.js.LICENSE.txt + monitoring/static/js/44866.fde9a535.chunk.js monitoring/static/js/44866.fde9a535.chunk.js + monitoring/static/js/45517.dd0696d8.chunk.js monitoring/static/js/45517.dd0696d8.chunk.js + monitoring/static/js/4554.8b82bb25.chunk.js monitoring/static/js/4554.8b82bb25.chunk.js + monitoring/static/js/45685.47ca075a.chunk.js monitoring/static/js/45685.47ca075a.chunk.js + monitoring/static/js/45759.cb764ce8.chunk.js monitoring/static/js/45759.cb764ce8.chunk.js + monitoring/static/js/46012.36fc4080.chunk.js monitoring/static/js/46012.36fc4080.chunk.js + monitoring/static/js/46012.36fc4080.chunk.js.LICENSE.txt monitoring/static/js/46012.36fc4080.chunk.js.LICENSE.txt + monitoring/static/js/46047.240cef79.chunk.js monitoring/static/js/46047.240cef79.chunk.js + monitoring/static/js/46134.708fa2c1.chunk.js monitoring/static/js/46134.708fa2c1.chunk.js + monitoring/static/js/4617.be8c65cd.chunk.js monitoring/static/js/4617.be8c65cd.chunk.js + monitoring/static/js/46306.d3a5a75d.chunk.js monitoring/static/js/46306.d3a5a75d.chunk.js + monitoring/static/js/46541.3c0665eb.chunk.js monitoring/static/js/46541.3c0665eb.chunk.js + monitoring/static/js/4664.972299e2.chunk.js monitoring/static/js/4664.972299e2.chunk.js + monitoring/static/js/47108.d6adff77.chunk.js monitoring/static/js/47108.d6adff77.chunk.js + monitoring/static/js/47153.2c051af0.chunk.js monitoring/static/js/47153.2c051af0.chunk.js + monitoring/static/js/47293.68cfbf41.chunk.js monitoring/static/js/47293.68cfbf41.chunk.js monitoring/static/js/4730.78e66e9a.chunk.js monitoring/static/js/4730.78e66e9a.chunk.js + monitoring/static/js/47472.10032073.chunk.js monitoring/static/js/47472.10032073.chunk.js + monitoring/static/js/47512.39fd7220.chunk.js monitoring/static/js/47512.39fd7220.chunk.js + monitoring/static/js/47614.68df3ac9.chunk.js monitoring/static/js/47614.68df3ac9.chunk.js + monitoring/static/js/47660.d58e412b.chunk.js monitoring/static/js/47660.d58e412b.chunk.js + monitoring/static/js/47692.c0ce8e67.chunk.js monitoring/static/js/47692.c0ce8e67.chunk.js + monitoring/static/js/47692.c0ce8e67.chunk.js.LICENSE.txt monitoring/static/js/47692.c0ce8e67.chunk.js.LICENSE.txt + monitoring/static/js/47878.706bd425.chunk.js monitoring/static/js/47878.706bd425.chunk.js + monitoring/static/js/48008.f90295f8.chunk.js monitoring/static/js/48008.f90295f8.chunk.js monitoring/static/js/4818.6beda30c.chunk.js monitoring/static/js/4818.6beda30c.chunk.js monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt - monitoring/static/js/4847.63c73f0a.chunk.js monitoring/static/js/4847.63c73f0a.chunk.js - monitoring/static/js/4870.1916a88d.chunk.js monitoring/static/js/4870.1916a88d.chunk.js - monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt - monitoring/static/js/4872.bbf7ab34.chunk.js monitoring/static/js/4872.bbf7ab34.chunk.js - monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt monitoring/static/js/4872.bbf7ab34.chunk.js.LICENSE.txt - monitoring/static/js/4891.c441be74.chunk.js monitoring/static/js/4891.c441be74.chunk.js - monitoring/static/js/5027.9e6325ef.chunk.js monitoring/static/js/5027.9e6325ef.chunk.js - monitoring/static/js/5047.ebc9f1b2.chunk.js monitoring/static/js/5047.ebc9f1b2.chunk.js - monitoring/static/js/5050.ffa3921f.chunk.js monitoring/static/js/5050.ffa3921f.chunk.js - monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt - monitoring/static/js/513.46a664ad.chunk.js monitoring/static/js/513.46a664ad.chunk.js - monitoring/static/js/5161.20e37d15.chunk.js monitoring/static/js/5161.20e37d15.chunk.js - monitoring/static/js/523.17013d4e.chunk.js monitoring/static/js/523.17013d4e.chunk.js - monitoring/static/js/5252.991dcab8.chunk.js monitoring/static/js/5252.991dcab8.chunk.js - monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt - monitoring/static/js/5382.3a2e6ac6.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js - monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt - monitoring/static/js/5401.dfb63825.chunk.js monitoring/static/js/5401.dfb63825.chunk.js - monitoring/static/js/5418.00d0c5d1.chunk.js monitoring/static/js/5418.00d0c5d1.chunk.js - monitoring/static/js/5438.91fe1c76.chunk.js monitoring/static/js/5438.91fe1c76.chunk.js - monitoring/static/js/5453.921caa82.chunk.js monitoring/static/js/5453.921caa82.chunk.js - monitoring/static/js/5454.e8f64f1a.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js - monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt + monitoring/static/js/48633.41f9d3a3.chunk.js monitoring/static/js/48633.41f9d3a3.chunk.js + monitoring/static/js/4887.f016c3bb.chunk.js monitoring/static/js/4887.f016c3bb.chunk.js + monitoring/static/js/48914.0bb2f1c2.chunk.js monitoring/static/js/48914.0bb2f1c2.chunk.js + monitoring/static/js/49067.2e09b756.chunk.js monitoring/static/js/49067.2e09b756.chunk.js + monitoring/static/js/49393.48f114fd.chunk.js monitoring/static/js/49393.48f114fd.chunk.js + monitoring/static/js/49523.654b328e.chunk.js monitoring/static/js/49523.654b328e.chunk.js + monitoring/static/js/49582.c5a749cc.chunk.js monitoring/static/js/49582.c5a749cc.chunk.js + monitoring/static/js/49582.c5a749cc.chunk.js.LICENSE.txt monitoring/static/js/49582.c5a749cc.chunk.js.LICENSE.txt + monitoring/static/js/49725.3529a00c.chunk.js monitoring/static/js/49725.3529a00c.chunk.js + monitoring/static/js/49778.b9d397f4.chunk.js monitoring/static/js/49778.b9d397f4.chunk.js + monitoring/static/js/49778.b9d397f4.chunk.js.LICENSE.txt monitoring/static/js/49778.b9d397f4.chunk.js.LICENSE.txt + monitoring/static/js/49788.12d03dd2.chunk.js monitoring/static/js/49788.12d03dd2.chunk.js + monitoring/static/js/50045.c8e44e5c.chunk.js monitoring/static/js/50045.c8e44e5c.chunk.js + monitoring/static/js/50245.1623217b.chunk.js monitoring/static/js/50245.1623217b.chunk.js + monitoring/static/js/50875.c6afaf0d.chunk.js monitoring/static/js/50875.c6afaf0d.chunk.js + monitoring/static/js/51094.f421b808.chunk.js monitoring/static/js/51094.f421b808.chunk.js + monitoring/static/js/51094.f421b808.chunk.js.LICENSE.txt monitoring/static/js/51094.f421b808.chunk.js.LICENSE.txt + monitoring/static/js/51159.314cef1d.chunk.js monitoring/static/js/51159.314cef1d.chunk.js + monitoring/static/js/51255.beb93f73.chunk.js monitoring/static/js/51255.beb93f73.chunk.js + monitoring/static/js/51400.767e472a.chunk.js monitoring/static/js/51400.767e472a.chunk.js + monitoring/static/js/51414.1b5a0681.chunk.js monitoring/static/js/51414.1b5a0681.chunk.js + monitoring/static/js/51414.1b5a0681.chunk.js.LICENSE.txt monitoring/static/js/51414.1b5a0681.chunk.js.LICENSE.txt + monitoring/static/js/51496.423aebfa.chunk.js monitoring/static/js/51496.423aebfa.chunk.js + monitoring/static/js/51627.9762f671.chunk.js monitoring/static/js/51627.9762f671.chunk.js + monitoring/static/js/52036.0bcd45d5.chunk.js monitoring/static/js/52036.0bcd45d5.chunk.js + monitoring/static/js/52182.735ff091.chunk.js monitoring/static/js/52182.735ff091.chunk.js + monitoring/static/js/52518.2a3ff21a.chunk.js monitoring/static/js/52518.2a3ff21a.chunk.js + monitoring/static/js/52518.2a3ff21a.chunk.js.LICENSE.txt monitoring/static/js/52518.2a3ff21a.chunk.js.LICENSE.txt + monitoring/static/js/52527.57100447.chunk.js monitoring/static/js/52527.57100447.chunk.js + monitoring/static/js/5254.ef9c1c59.chunk.js monitoring/static/js/5254.ef9c1c59.chunk.js + monitoring/static/js/52541.7c3f886c.chunk.js monitoring/static/js/52541.7c3f886c.chunk.js + monitoring/static/js/5282.37c7be51.chunk.js monitoring/static/js/5282.37c7be51.chunk.js + monitoring/static/js/53338.161bc4dd.chunk.js monitoring/static/js/53338.161bc4dd.chunk.js + monitoring/static/js/53338.161bc4dd.chunk.js.LICENSE.txt monitoring/static/js/53338.161bc4dd.chunk.js.LICENSE.txt + monitoring/static/js/53672.a70ebf8e.chunk.js monitoring/static/js/53672.a70ebf8e.chunk.js + monitoring/static/js/5393.cb636c81.chunk.js monitoring/static/js/5393.cb636c81.chunk.js + monitoring/static/js/5411.001c1dc7.chunk.js monitoring/static/js/5411.001c1dc7.chunk.js + monitoring/static/js/54520.c2776d7f.chunk.js monitoring/static/js/54520.c2776d7f.chunk.js + monitoring/static/js/54597.f81d6f07.chunk.js monitoring/static/js/54597.f81d6f07.chunk.js + monitoring/static/js/54651.40344b3d.chunk.js monitoring/static/js/54651.40344b3d.chunk.js + monitoring/static/js/54678.5a7b7b35.chunk.js monitoring/static/js/54678.5a7b7b35.chunk.js + monitoring/static/js/54678.5a7b7b35.chunk.js.LICENSE.txt monitoring/static/js/54678.5a7b7b35.chunk.js.LICENSE.txt monitoring/static/js/5475.20ce4f75.chunk.js monitoring/static/js/5475.20ce4f75.chunk.js - monitoring/static/js/5542.7c13d444.chunk.js monitoring/static/js/5542.7c13d444.chunk.js - monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt - monitoring/static/js/5579.a2c9515c.chunk.js monitoring/static/js/5579.a2c9515c.chunk.js + monitoring/static/js/54781.9ee0aecd.chunk.js monitoring/static/js/54781.9ee0aecd.chunk.js + monitoring/static/js/54861.f927c937.chunk.js monitoring/static/js/54861.f927c937.chunk.js + monitoring/static/js/5530.da339b78.chunk.js monitoring/static/js/5530.da339b78.chunk.js + monitoring/static/js/55454.4f52583e.chunk.js monitoring/static/js/55454.4f52583e.chunk.js + monitoring/static/js/55454.4f52583e.chunk.js.LICENSE.txt monitoring/static/js/55454.4f52583e.chunk.js.LICENSE.txt + monitoring/static/js/55528.e1e10ce0.chunk.js monitoring/static/js/55528.e1e10ce0.chunk.js + monitoring/static/js/55534.43828e20.chunk.js monitoring/static/js/55534.43828e20.chunk.js + monitoring/static/js/55651.bd57c77c.chunk.js monitoring/static/js/55651.bd57c77c.chunk.js + monitoring/static/js/55816.ceb201d4.chunk.js monitoring/static/js/55816.ceb201d4.chunk.js + monitoring/static/js/55853.2ca378d0.chunk.js monitoring/static/js/55853.2ca378d0.chunk.js + monitoring/static/js/55990.c86b7669.chunk.js monitoring/static/js/55990.c86b7669.chunk.js + monitoring/static/js/56013.d9e34466.chunk.js monitoring/static/js/56013.d9e34466.chunk.js + monitoring/static/js/56013.d9e34466.chunk.js.LICENSE.txt monitoring/static/js/56013.d9e34466.chunk.js.LICENSE.txt + monitoring/static/js/56026.85d58e2b.chunk.js monitoring/static/js/56026.85d58e2b.chunk.js + monitoring/static/js/56054.9d70a2ed.chunk.js monitoring/static/js/56054.9d70a2ed.chunk.js + monitoring/static/js/56174.562b7d92.chunk.js monitoring/static/js/56174.562b7d92.chunk.js monitoring/static/js/5634.0a0bddae.chunk.js monitoring/static/js/5634.0a0bddae.chunk.js - monitoring/static/js/5636.da9c4c85.chunk.js monitoring/static/js/5636.da9c4c85.chunk.js - monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt + monitoring/static/js/56358.3a141569.chunk.js monitoring/static/js/56358.3a141569.chunk.js + monitoring/static/js/56358.3a141569.chunk.js.LICENSE.txt monitoring/static/js/56358.3a141569.chunk.js.LICENSE.txt + monitoring/static/js/56405.5fa107d3.chunk.js monitoring/static/js/56405.5fa107d3.chunk.js + monitoring/static/js/56421.a250ca1b.chunk.js monitoring/static/js/56421.a250ca1b.chunk.js monitoring/static/js/5647.0920ef73.chunk.js monitoring/static/js/5647.0920ef73.chunk.js - monitoring/static/js/5652.40b9a7d3.chunk.js monitoring/static/js/5652.40b9a7d3.chunk.js - monitoring/static/js/5685.c0a21a10.chunk.js monitoring/static/js/5685.c0a21a10.chunk.js - monitoring/static/js/5759.52418ea5.chunk.js monitoring/static/js/5759.52418ea5.chunk.js - monitoring/static/js/5816.144b5755.chunk.js monitoring/static/js/5816.144b5755.chunk.js - monitoring/static/js/5819.0ae2eb3d.chunk.js monitoring/static/js/5819.0ae2eb3d.chunk.js - monitoring/static/js/5853.0c5ec1d1.chunk.js monitoring/static/js/5853.0c5ec1d1.chunk.js + monitoring/static/js/56761.638c1141.chunk.js monitoring/static/js/56761.638c1141.chunk.js + monitoring/static/js/56990.be6d200f.chunk.js monitoring/static/js/56990.be6d200f.chunk.js + monitoring/static/js/57016.ccc30938.chunk.js monitoring/static/js/57016.ccc30938.chunk.js + monitoring/static/js/57118.e38774e7.chunk.js monitoring/static/js/57118.e38774e7.chunk.js + monitoring/static/js/57118.e38774e7.chunk.js.LICENSE.txt monitoring/static/js/57118.e38774e7.chunk.js.LICENSE.txt + monitoring/static/js/57206.7544a09d.chunk.js monitoring/static/js/57206.7544a09d.chunk.js + monitoring/static/js/57206.7544a09d.chunk.js.LICENSE.txt monitoring/static/js/57206.7544a09d.chunk.js.LICENSE.txt + monitoring/static/js/57320.74fc8316.chunk.js monitoring/static/js/57320.74fc8316.chunk.js + monitoring/static/js/57469.85faf9a5.chunk.js monitoring/static/js/57469.85faf9a5.chunk.js + monitoring/static/js/57708.c2b518ee.chunk.js monitoring/static/js/57708.c2b518ee.chunk.js + monitoring/static/js/57946.31f41343.chunk.js monitoring/static/js/57946.31f41343.chunk.js + monitoring/static/js/57946.31f41343.chunk.js.LICENSE.txt monitoring/static/js/57946.31f41343.chunk.js.LICENSE.txt + monitoring/static/js/57970.67e88902.chunk.js monitoring/static/js/57970.67e88902.chunk.js + monitoring/static/js/58457.708b5a15.chunk.js monitoring/static/js/58457.708b5a15.chunk.js monitoring/static/js/5866.14d27c8c.chunk.js monitoring/static/js/5866.14d27c8c.chunk.js monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt - monitoring/static/js/5875.f8a190bf.chunk.js monitoring/static/js/5875.f8a190bf.chunk.js - monitoring/static/js/5888.4fa64369.chunk.js monitoring/static/js/5888.4fa64369.chunk.js - monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt - monitoring/static/js/5924.53ba4f49.chunk.js monitoring/static/js/5924.53ba4f49.chunk.js - monitoring/static/js/5950.28656717.chunk.js monitoring/static/js/5950.28656717.chunk.js - monitoring/static/js/5953.cb95c45e.chunk.js monitoring/static/js/5953.cb95c45e.chunk.js - monitoring/static/js/5988.38ef363d.chunk.js monitoring/static/js/5988.38ef363d.chunk.js - monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt - monitoring/static/js/60.85d957cd.chunk.js monitoring/static/js/60.85d957cd.chunk.js - monitoring/static/js/6012.aac08e72.chunk.js monitoring/static/js/6012.aac08e72.chunk.js - monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt - monitoring/static/js/6030.b30fca36.chunk.js monitoring/static/js/6030.b30fca36.chunk.js - monitoring/static/js/6047.328b41a5.chunk.js monitoring/static/js/6047.328b41a5.chunk.js - monitoring/static/js/6114.c74edf11.chunk.js monitoring/static/js/6114.c74edf11.chunk.js - monitoring/static/js/6210.69d6a30a.chunk.js monitoring/static/js/6210.69d6a30a.chunk.js - monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt - monitoring/static/js/6214.a9a481a7.chunk.js monitoring/static/js/6214.a9a481a7.chunk.js - monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt + monitoring/static/js/58666.91b79adf.chunk.js monitoring/static/js/58666.91b79adf.chunk.js + monitoring/static/js/58840.529e7b9b.chunk.js monitoring/static/js/58840.529e7b9b.chunk.js + monitoring/static/js/58884.1009923e.chunk.js monitoring/static/js/58884.1009923e.chunk.js + monitoring/static/js/58884.1009923e.chunk.js.LICENSE.txt monitoring/static/js/58884.1009923e.chunk.js.LICENSE.txt + monitoring/static/js/58890.cf2d0d90.chunk.js monitoring/static/js/58890.cf2d0d90.chunk.js + monitoring/static/js/58986.472d72cc.chunk.js monitoring/static/js/58986.472d72cc.chunk.js + monitoring/static/js/58986.472d72cc.chunk.js.LICENSE.txt monitoring/static/js/58986.472d72cc.chunk.js.LICENSE.txt + monitoring/static/js/59172.d3dd36c7.chunk.js monitoring/static/js/59172.d3dd36c7.chunk.js + monitoring/static/js/59172.d3dd36c7.chunk.js.LICENSE.txt monitoring/static/js/59172.d3dd36c7.chunk.js.LICENSE.txt + monitoring/static/js/59243.5de594f4.chunk.js monitoring/static/js/59243.5de594f4.chunk.js + monitoring/static/js/59605.a2f7e321.chunk.js monitoring/static/js/59605.a2f7e321.chunk.js + monitoring/static/js/59748.4682a957.chunk.js monitoring/static/js/59748.4682a957.chunk.js + monitoring/static/js/59748.4682a957.chunk.js.LICENSE.txt monitoring/static/js/59748.4682a957.chunk.js.LICENSE.txt + monitoring/static/js/59786.9a9eda90.chunk.js monitoring/static/js/59786.9a9eda90.chunk.js + monitoring/static/js/59882.b6def2ca.chunk.js monitoring/static/js/59882.b6def2ca.chunk.js + monitoring/static/js/59908.4f5fa1f6.chunk.js monitoring/static/js/59908.4f5fa1f6.chunk.js + monitoring/static/js/60110.448cdddf.chunk.js monitoring/static/js/60110.448cdddf.chunk.js + monitoring/static/js/60110.448cdddf.chunk.js.LICENSE.txt monitoring/static/js/60110.448cdddf.chunk.js.LICENSE.txt + monitoring/static/js/60221.8d560e16.chunk.js monitoring/static/js/60221.8d560e16.chunk.js + monitoring/static/js/60464.c820a295.chunk.js monitoring/static/js/60464.c820a295.chunk.js + monitoring/static/js/60949.c74a3708.chunk.js monitoring/static/js/60949.c74a3708.chunk.js + monitoring/static/js/61088.c55195af.chunk.js monitoring/static/js/61088.c55195af.chunk.js + monitoring/static/js/61250.2b3f06a3.chunk.js monitoring/static/js/61250.2b3f06a3.chunk.js + monitoring/static/js/61387.f19330bb.chunk.js monitoring/static/js/61387.f19330bb.chunk.js + monitoring/static/js/61741.c551cb8f.chunk.js monitoring/static/js/61741.c551cb8f.chunk.js + monitoring/static/js/61747.0c4ed2d6.chunk.js monitoring/static/js/61747.0c4ed2d6.chunk.js + monitoring/static/js/61865.21725853.chunk.js monitoring/static/js/61865.21725853.chunk.js + monitoring/static/js/61917.92d39b4c.chunk.js monitoring/static/js/61917.92d39b4c.chunk.js + monitoring/static/js/6197.acb1fd7c.chunk.js monitoring/static/js/6197.acb1fd7c.chunk.js + monitoring/static/js/62042.e21d383b.chunk.js monitoring/static/js/62042.e21d383b.chunk.js + monitoring/static/js/62042.e21d383b.chunk.js.LICENSE.txt monitoring/static/js/62042.e21d383b.chunk.js.LICENSE.txt + monitoring/static/js/62308.fe05af2f.chunk.js monitoring/static/js/62308.fe05af2f.chunk.js + monitoring/static/js/62350.07b0039d.chunk.js monitoring/static/js/62350.07b0039d.chunk.js + monitoring/static/js/62350.07b0039d.chunk.js.LICENSE.txt monitoring/static/js/62350.07b0039d.chunk.js.LICENSE.txt + monitoring/static/js/62595.0c9bd5a0.chunk.js monitoring/static/js/62595.0c9bd5a0.chunk.js monitoring/static/js/6261.78de43a8.chunk.js monitoring/static/js/6261.78de43a8.chunk.js - monitoring/static/js/6262.44dba84f.chunk.js monitoring/static/js/6262.44dba84f.chunk.js - monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt - monitoring/static/js/628.70d08de9.chunk.js monitoring/static/js/628.70d08de9.chunk.js - monitoring/static/js/6324.de01edfb.chunk.js monitoring/static/js/6324.de01edfb.chunk.js - monitoring/static/js/6342.a2819c87.chunk.js monitoring/static/js/6342.a2819c87.chunk.js - monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt - monitoring/static/js/6358.2997762b.chunk.js monitoring/static/js/6358.2997762b.chunk.js - monitoring/static/js/6374.be0c5879.chunk.js monitoring/static/js/6374.be0c5879.chunk.js - monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt - monitoring/static/js/6397.b8cf6fae.chunk.js monitoring/static/js/6397.b8cf6fae.chunk.js - monitoring/static/js/6405.b0dd94a9.chunk.js monitoring/static/js/6405.b0dd94a9.chunk.js - monitoring/static/js/6447.2c0d9bda.chunk.js monitoring/static/js/6447.2c0d9bda.chunk.js - monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt - monitoring/static/js/654.863ea445.chunk.js monitoring/static/js/654.863ea445.chunk.js - monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt - monitoring/static/js/6541.a39e9d6a.chunk.js monitoring/static/js/6541.a39e9d6a.chunk.js - monitoring/static/js/6554.6dfab136.chunk.js monitoring/static/js/6554.6dfab136.chunk.js - monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt - monitoring/static/js/6625.a8d44d36.chunk.js monitoring/static/js/6625.a8d44d36.chunk.js - monitoring/static/js/6658.b22172da.chunk.js monitoring/static/js/6658.b22172da.chunk.js - monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt - monitoring/static/js/6664.b4dbf019.chunk.js monitoring/static/js/6664.b4dbf019.chunk.js - monitoring/static/js/6786.28af14f6.chunk.js monitoring/static/js/6786.28af14f6.chunk.js - monitoring/static/js/6820.bff2520f.chunk.js monitoring/static/js/6820.bff2520f.chunk.js - monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt monitoring/static/js/6820.bff2520f.chunk.js.LICENSE.txt - monitoring/static/js/6833.584b7806.chunk.js monitoring/static/js/6833.584b7806.chunk.js - monitoring/static/js/684.9346e985.chunk.js monitoring/static/js/684.9346e985.chunk.js - monitoring/static/js/6879.2965a366.chunk.js monitoring/static/js/6879.2965a366.chunk.js + monitoring/static/js/62888.e3af7359.chunk.js monitoring/static/js/62888.e3af7359.chunk.js + monitoring/static/js/63008.97387142.chunk.js monitoring/static/js/63008.97387142.chunk.js + monitoring/static/js/63653.c2f7dcde.chunk.js monitoring/static/js/63653.c2f7dcde.chunk.js + monitoring/static/js/63679.05a63e19.chunk.js monitoring/static/js/63679.05a63e19.chunk.js + monitoring/static/js/63769.731ffb68.chunk.js monitoring/static/js/63769.731ffb68.chunk.js + monitoring/static/js/63782.48301ab7.chunk.js monitoring/static/js/63782.48301ab7.chunk.js + monitoring/static/js/64464.e1dcaef9.chunk.js monitoring/static/js/64464.e1dcaef9.chunk.js + monitoring/static/js/65206.7f46c107.chunk.js monitoring/static/js/65206.7f46c107.chunk.js + monitoring/static/js/65252.2655458e.chunk.js monitoring/static/js/65252.2655458e.chunk.js + monitoring/static/js/65252.2655458e.chunk.js.LICENSE.txt monitoring/static/js/65252.2655458e.chunk.js.LICENSE.txt + monitoring/static/js/6528.77d69abb.chunk.js monitoring/static/js/6528.77d69abb.chunk.js + monitoring/static/js/65401.e76db1a2.chunk.js monitoring/static/js/65401.e76db1a2.chunk.js + monitoring/static/js/65579.1ec2325b.chunk.js monitoring/static/js/65579.1ec2325b.chunk.js + monitoring/static/js/65633.b6bc2f47.chunk.js monitoring/static/js/65633.b6bc2f47.chunk.js + monitoring/static/js/65824.1f5e112a.chunk.js monitoring/static/js/65824.1f5e112a.chunk.js + monitoring/static/js/65988.11e4149b.chunk.js monitoring/static/js/65988.11e4149b.chunk.js + monitoring/static/js/65988.11e4149b.chunk.js.LICENSE.txt monitoring/static/js/65988.11e4149b.chunk.js.LICENSE.txt + monitoring/static/js/66262.b361ce28.chunk.js monitoring/static/js/66262.b361ce28.chunk.js + monitoring/static/js/66262.b361ce28.chunk.js.LICENSE.txt monitoring/static/js/66262.b361ce28.chunk.js.LICENSE.txt + monitoring/static/js/66397.32c2f9da.chunk.js monitoring/static/js/66397.32c2f9da.chunk.js + monitoring/static/js/66447.716a34f7.chunk.js monitoring/static/js/66447.716a34f7.chunk.js + monitoring/static/js/66447.716a34f7.chunk.js.LICENSE.txt monitoring/static/js/66447.716a34f7.chunk.js.LICENSE.txt + monitoring/static/js/66593.94c01a99.chunk.js monitoring/static/js/66593.94c01a99.chunk.js + monitoring/static/js/66809.a4c3fdb1.chunk.js monitoring/static/js/66809.a4c3fdb1.chunk.js + monitoring/static/js/66820.ec86ae7a.chunk.js monitoring/static/js/66820.ec86ae7a.chunk.js + monitoring/static/js/66820.ec86ae7a.chunk.js.LICENSE.txt monitoring/static/js/66820.ec86ae7a.chunk.js.LICENSE.txt + monitoring/static/js/66824.abfa3f22.chunk.js monitoring/static/js/66824.abfa3f22.chunk.js + monitoring/static/js/67105.3413451f.chunk.js monitoring/static/js/67105.3413451f.chunk.js + monitoring/static/js/67191.46b77437.chunk.js monitoring/static/js/67191.46b77437.chunk.js + monitoring/static/js/67329.08db90c1.chunk.js monitoring/static/js/67329.08db90c1.chunk.js + monitoring/static/js/67348.c1ed85fa.chunk.js monitoring/static/js/67348.c1ed85fa.chunk.js + monitoring/static/js/67357.dd9aa014.chunk.js monitoring/static/js/67357.dd9aa014.chunk.js + monitoring/static/js/67574.31643beb.chunk.js monitoring/static/js/67574.31643beb.chunk.js + monitoring/static/js/67574.31643beb.chunk.js.LICENSE.txt monitoring/static/js/67574.31643beb.chunk.js.LICENSE.txt + monitoring/static/js/67605.6cd42d90.chunk.js monitoring/static/js/67605.6cd42d90.chunk.js + monitoring/static/js/6785.f25ed122.chunk.js monitoring/static/js/6785.f25ed122.chunk.js + monitoring/static/js/68220.ece8573d.chunk.js monitoring/static/js/68220.ece8573d.chunk.js + monitoring/static/js/68377.f73a91b7.chunk.js monitoring/static/js/68377.f73a91b7.chunk.js + monitoring/static/js/68527.1f687bcf.chunk.js monitoring/static/js/68527.1f687bcf.chunk.js monitoring/static/js/6881.7e6434c9.chunk.js monitoring/static/js/6881.7e6434c9.chunk.js - monitoring/static/js/6990.70257b9b.chunk.js monitoring/static/js/6990.70257b9b.chunk.js - monitoring/static/js/710.87e9f2e0.chunk.js monitoring/static/js/710.87e9f2e0.chunk.js - monitoring/static/js/7118.ce0cd05f.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js - monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt - monitoring/static/js/7148.ef54cd41.chunk.js monitoring/static/js/7148.ef54cd41.chunk.js - monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt - monitoring/static/js/7206.6b7278f5.chunk.js monitoring/static/js/7206.6b7278f5.chunk.js - monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt - monitoring/static/js/7240.a674bc94.chunk.js monitoring/static/js/7240.a674bc94.chunk.js - monitoring/static/js/730.a22f6f5f.chunk.js monitoring/static/js/730.a22f6f5f.chunk.js - monitoring/static/js/7329.514640a4.chunk.js monitoring/static/js/7329.514640a4.chunk.js + monitoring/static/js/68818.0e24392e.chunk.js monitoring/static/js/68818.0e24392e.chunk.js + monitoring/static/js/68821.a96b8277.chunk.js monitoring/static/js/68821.a96b8277.chunk.js + monitoring/static/js/68821.a96b8277.chunk.js.LICENSE.txt monitoring/static/js/68821.a96b8277.chunk.js.LICENSE.txt + monitoring/static/js/68990.59087cc5.chunk.js monitoring/static/js/68990.59087cc5.chunk.js + monitoring/static/js/69220.b99a5ded.chunk.js monitoring/static/js/69220.b99a5ded.chunk.js + monitoring/static/js/69500.7fbd370c.chunk.js monitoring/static/js/69500.7fbd370c.chunk.js + monitoring/static/js/69712.983d0bad.chunk.js monitoring/static/js/69712.983d0bad.chunk.js + monitoring/static/js/69854.1159f91a.chunk.js monitoring/static/js/69854.1159f91a.chunk.js + monitoring/static/js/69997.3bda423b.chunk.js monitoring/static/js/69997.3bda423b.chunk.js + monitoring/static/js/70190.e3137ef3.chunk.js monitoring/static/js/70190.e3137ef3.chunk.js + monitoring/static/js/70225.f064b5ad.chunk.js monitoring/static/js/70225.f064b5ad.chunk.js + monitoring/static/js/70225.f064b5ad.chunk.js.LICENSE.txt monitoring/static/js/70225.f064b5ad.chunk.js.LICENSE.txt + monitoring/static/js/70289.b63d5fb8.chunk.js monitoring/static/js/70289.b63d5fb8.chunk.js + monitoring/static/js/70695.3af812a3.chunk.js monitoring/static/js/70695.3af812a3.chunk.js + monitoring/static/js/70858.35d686d1.chunk.js monitoring/static/js/70858.35d686d1.chunk.js + monitoring/static/js/71107.d2d26409.chunk.js monitoring/static/js/71107.d2d26409.chunk.js + monitoring/static/js/71266.6ba99b0a.chunk.js monitoring/static/js/71266.6ba99b0a.chunk.js + monitoring/static/js/71486.3e01f058.chunk.js monitoring/static/js/71486.3e01f058.chunk.js + monitoring/static/js/71515.2280d42d.chunk.js monitoring/static/js/71515.2280d42d.chunk.js + monitoring/static/js/71588.5c21e822.chunk.js monitoring/static/js/71588.5c21e822.chunk.js + monitoring/static/js/71672.9d9a091b.chunk.js monitoring/static/js/71672.9d9a091b.chunk.js + monitoring/static/js/71756.324c49c8.chunk.js monitoring/static/js/71756.324c49c8.chunk.js + monitoring/static/js/71867.4808e834.chunk.js monitoring/static/js/71867.4808e834.chunk.js + monitoring/static/js/72020.e0c38d22.chunk.js monitoring/static/js/72020.e0c38d22.chunk.js + monitoring/static/js/72188.5b48f0f8.chunk.js monitoring/static/js/72188.5b48f0f8.chunk.js + monitoring/static/js/72401.bef7ab50.chunk.js monitoring/static/js/72401.bef7ab50.chunk.js + monitoring/static/js/72568.9f8b7a4b.chunk.js monitoring/static/js/72568.9f8b7a4b.chunk.js + monitoring/static/js/72737.e79b7900.chunk.js monitoring/static/js/72737.e79b7900.chunk.js + monitoring/static/js/72775.0e6824d4.chunk.js monitoring/static/js/72775.0e6824d4.chunk.js + monitoring/static/js/72788.d00f6565.chunk.js monitoring/static/js/72788.d00f6565.chunk.js + monitoring/static/js/73026.ba38cd34.chunk.js monitoring/static/js/73026.ba38cd34.chunk.js + monitoring/static/js/73064.b0c26084.chunk.js monitoring/static/js/73064.b0c26084.chunk.js + monitoring/static/js/73238.abca2b52.chunk.js monitoring/static/js/73238.abca2b52.chunk.js monitoring/static/js/734.3fe325e9.chunk.js monitoring/static/js/734.3fe325e9.chunk.js monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt - monitoring/static/js/7348.eac33db2.chunk.js monitoring/static/js/7348.eac33db2.chunk.js - monitoring/static/js/7357.a518ad9e.chunk.js monitoring/static/js/7357.a518ad9e.chunk.js - monitoring/static/js/7380.38a8eedf.chunk.js monitoring/static/js/7380.38a8eedf.chunk.js - monitoring/static/js/7420.d0c66c34.chunk.js monitoring/static/js/7420.d0c66c34.chunk.js + monitoring/static/js/73442.0bbc74fd.chunk.js monitoring/static/js/73442.0bbc74fd.chunk.js + monitoring/static/js/73478.353da8fe.chunk.js monitoring/static/js/73478.353da8fe.chunk.js + monitoring/static/js/73478.353da8fe.chunk.js.LICENSE.txt monitoring/static/js/73478.353da8fe.chunk.js.LICENSE.txt + monitoring/static/js/73534.e63e8bd4.chunk.js monitoring/static/js/73534.e63e8bd4.chunk.js + monitoring/static/js/73534.e63e8bd4.chunk.js.LICENSE.txt monitoring/static/js/73534.e63e8bd4.chunk.js.LICENSE.txt + monitoring/static/js/73863.6655927e.chunk.js monitoring/static/js/73863.6655927e.chunk.js + monitoring/static/js/73879.9dc10432.chunk.js monitoring/static/js/73879.9dc10432.chunk.js + monitoring/static/js/74324.03761f87.chunk.js monitoring/static/js/74324.03761f87.chunk.js + monitoring/static/js/74394.3bb376a8.chunk.js monitoring/static/js/74394.3bb376a8.chunk.js + monitoring/static/js/74729.fa6e7280.chunk.js monitoring/static/js/74729.fa6e7280.chunk.js + monitoring/static/js/74891.fa3d6f11.chunk.js monitoring/static/js/74891.fa3d6f11.chunk.js monitoring/static/js/7548.fd5d2b6c.chunk.js monitoring/static/js/7548.fd5d2b6c.chunk.js - monitoring/static/js/7574.8ac9803d.chunk.js monitoring/static/js/7574.8ac9803d.chunk.js - monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt - monitoring/static/js/7579.079e5569.chunk.js monitoring/static/js/7579.079e5569.chunk.js - monitoring/static/js/7605.cdc8f605.chunk.js monitoring/static/js/7605.cdc8f605.chunk.js - monitoring/static/js/7614.00d00ded.chunk.js monitoring/static/js/7614.00d00ded.chunk.js - monitoring/static/js/7638.5489d672.chunk.js monitoring/static/js/7638.5489d672.chunk.js - monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt - monitoring/static/js/7642.39707d60.chunk.js monitoring/static/js/7642.39707d60.chunk.js - monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt - monitoring/static/js/7692.af7181c9.chunk.js monitoring/static/js/7692.af7181c9.chunk.js - monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt - monitoring/static/js/7697.44af783d.chunk.js monitoring/static/js/7697.44af783d.chunk.js - monitoring/static/js/7718.f897f8ca.chunk.js monitoring/static/js/7718.f897f8ca.chunk.js - monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt - monitoring/static/js/7748.3ec14243.chunk.js monitoring/static/js/7748.3ec14243.chunk.js - monitoring/static/js/7878.1f9512c4.chunk.js monitoring/static/js/7878.1f9512c4.chunk.js - monitoring/static/js/7946.3b4cf6fd.chunk.js monitoring/static/js/7946.3b4cf6fd.chunk.js - monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt - monitoring/static/js/7962.43ffbad7.chunk.js monitoring/static/js/7962.43ffbad7.chunk.js - monitoring/static/js/7970.80caf61d.chunk.js monitoring/static/js/7970.80caf61d.chunk.js - monitoring/static/js/8008.da36f479.chunk.js monitoring/static/js/8008.da36f479.chunk.js - monitoring/static/js/8014.eb9f97f2.chunk.js monitoring/static/js/8014.eb9f97f2.chunk.js - monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt - monitoring/static/js/8053.71be175a.chunk.js monitoring/static/js/8053.71be175a.chunk.js - monitoring/static/js/8081.5fafc7dc.chunk.js monitoring/static/js/8081.5fafc7dc.chunk.js - monitoring/static/js/8103.00c9e9c1.chunk.js monitoring/static/js/8103.00c9e9c1.chunk.js - monitoring/static/js/811.a0c1e1ce.chunk.js monitoring/static/js/811.a0c1e1ce.chunk.js - monitoring/static/js/8119.196e82ef.chunk.js monitoring/static/js/8119.196e82ef.chunk.js - monitoring/static/js/8234.7512920e.chunk.js monitoring/static/js/8234.7512920e.chunk.js - monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt - monitoring/static/js/8256.a2ce240a.chunk.js monitoring/static/js/8256.a2ce240a.chunk.js - monitoring/static/js/8393.2e643149.chunk.js monitoring/static/js/8393.2e643149.chunk.js - monitoring/static/js/8452.3bfa9018.chunk.js monitoring/static/js/8452.3bfa9018.chunk.js - monitoring/static/js/8517.cf981031.chunk.js monitoring/static/js/8517.cf981031.chunk.js + monitoring/static/js/75510.026d82a2.chunk.js monitoring/static/js/75510.026d82a2.chunk.js + monitoring/static/js/75523.d65a825f.chunk.js monitoring/static/js/75523.d65a825f.chunk.js + monitoring/static/js/76603.db4ff761.chunk.js monitoring/static/js/76603.db4ff761.chunk.js + monitoring/static/js/76879.ff0dd32c.chunk.js monitoring/static/js/76879.ff0dd32c.chunk.js + monitoring/static/js/77642.1a976f0c.chunk.js monitoring/static/js/77642.1a976f0c.chunk.js + monitoring/static/js/77642.1a976f0c.chunk.js.LICENSE.txt monitoring/static/js/77642.1a976f0c.chunk.js.LICENSE.txt + monitoring/static/js/77697.23abc7db.chunk.js monitoring/static/js/77697.23abc7db.chunk.js + monitoring/static/js/77718.38572b28.chunk.js monitoring/static/js/77718.38572b28.chunk.js + monitoring/static/js/77718.38572b28.chunk.js.LICENSE.txt monitoring/static/js/77718.38572b28.chunk.js.LICENSE.txt + monitoring/static/js/7773.b2d5a51a.chunk.js monitoring/static/js/7773.b2d5a51a.chunk.js + monitoring/static/js/78053.1b2b1602.chunk.js monitoring/static/js/78053.1b2b1602.chunk.js + monitoring/static/js/78112.671df87e.chunk.js monitoring/static/js/78112.671df87e.chunk.js + monitoring/static/js/78517.bd6413c4.chunk.js monitoring/static/js/78517.bd6413c4.chunk.js + monitoring/static/js/78710.673d31cf.chunk.js monitoring/static/js/78710.673d31cf.chunk.js + monitoring/static/js/78979.e31ea57f.chunk.js monitoring/static/js/78979.e31ea57f.chunk.js + monitoring/static/js/79204.b8bc5268.chunk.js monitoring/static/js/79204.b8bc5268.chunk.js + monitoring/static/js/79247.1bc3dc95.chunk.js monitoring/static/js/79247.1bc3dc95.chunk.js + monitoring/static/js/79312.17a58c6f.chunk.js monitoring/static/js/79312.17a58c6f.chunk.js + monitoring/static/js/79312.17a58c6f.chunk.js.LICENSE.txt monitoring/static/js/79312.17a58c6f.chunk.js.LICENSE.txt + monitoring/static/js/79433.b3b128c9.chunk.js monitoring/static/js/79433.b3b128c9.chunk.js + monitoring/static/js/79707.def8f77e.chunk.js monitoring/static/js/79707.def8f77e.chunk.js + monitoring/static/js/79842.ef61156d.chunk.js monitoring/static/js/79842.ef61156d.chunk.js + monitoring/static/js/79842.ef61156d.chunk.js.LICENSE.txt monitoring/static/js/79842.ef61156d.chunk.js.LICENSE.txt + monitoring/static/js/79972.b465d16f.chunk.js monitoring/static/js/79972.b465d16f.chunk.js + monitoring/static/js/80017.210d20b7.chunk.js monitoring/static/js/80017.210d20b7.chunk.js + monitoring/static/js/80030.4efa59e1.chunk.js monitoring/static/js/80030.4efa59e1.chunk.js + monitoring/static/js/80030.4efa59e1.chunk.js.LICENSE.txt monitoring/static/js/80030.4efa59e1.chunk.js.LICENSE.txt + monitoring/static/js/80067.910ba368.chunk.js monitoring/static/js/80067.910ba368.chunk.js + monitoring/static/js/80108.0334ef65.chunk.js monitoring/static/js/80108.0334ef65.chunk.js + monitoring/static/js/80397.e9187aee.chunk.js monitoring/static/js/80397.e9187aee.chunk.js + monitoring/static/js/80555.c5181f9f.chunk.js monitoring/static/js/80555.c5181f9f.chunk.js + monitoring/static/js/80719.840e5448.chunk.js monitoring/static/js/80719.840e5448.chunk.js + monitoring/static/js/80921.252f76ca.chunk.js monitoring/static/js/80921.252f76ca.chunk.js + monitoring/static/js/81014.351ef346.chunk.js monitoring/static/js/81014.351ef346.chunk.js + monitoring/static/js/81243.4d5129fa.chunk.js monitoring/static/js/81243.4d5129fa.chunk.js + monitoring/static/js/81299.b1fcb7d9.chunk.js monitoring/static/js/81299.b1fcb7d9.chunk.js + monitoring/static/js/81327.e08f6d45.chunk.js monitoring/static/js/81327.e08f6d45.chunk.js + monitoring/static/js/81571.71d0a13e.chunk.js monitoring/static/js/81571.71d0a13e.chunk.js + monitoring/static/js/81747.65a6a7f3.chunk.js monitoring/static/js/81747.65a6a7f3.chunk.js + monitoring/static/js/81836.55b6c25b.chunk.js monitoring/static/js/81836.55b6c25b.chunk.js + monitoring/static/js/81869.a0a15184.chunk.js monitoring/static/js/81869.a0a15184.chunk.js + monitoring/static/js/81940.05d638c7.chunk.js monitoring/static/js/81940.05d638c7.chunk.js + monitoring/static/js/82053.2a21538f.chunk.js monitoring/static/js/82053.2a21538f.chunk.js + monitoring/static/js/82066.573664a4.chunk.js monitoring/static/js/82066.573664a4.chunk.js + monitoring/static/js/8215.36727d1f.chunk.js monitoring/static/js/8215.36727d1f.chunk.js + monitoring/static/js/82315.a87de6b3.chunk.js monitoring/static/js/82315.a87de6b3.chunk.js + monitoring/static/js/82399.80864f92.chunk.js monitoring/static/js/82399.80864f92.chunk.js + monitoring/static/js/82505.405051e6.chunk.js monitoring/static/js/82505.405051e6.chunk.js + monitoring/static/js/82714.46d13b51.chunk.js monitoring/static/js/82714.46d13b51.chunk.js + monitoring/static/js/83005.08f70905.chunk.js monitoring/static/js/83005.08f70905.chunk.js + monitoring/static/js/83012.103c3f36.chunk.js monitoring/static/js/83012.103c3f36.chunk.js + monitoring/static/js/83075.aa140970.chunk.js monitoring/static/js/83075.aa140970.chunk.js + monitoring/static/js/83333.65b07752.chunk.js monitoring/static/js/83333.65b07752.chunk.js + monitoring/static/js/83510.ed31c9f8.chunk.js monitoring/static/js/83510.ed31c9f8.chunk.js + monitoring/static/js/83896.d4b0cab7.chunk.js monitoring/static/js/83896.d4b0cab7.chunk.js + monitoring/static/js/84027.c693664b.chunk.js monitoring/static/js/84027.c693664b.chunk.js + monitoring/static/js/84307.59d32ce3.chunk.js monitoring/static/js/84307.59d32ce3.chunk.js + monitoring/static/js/84401.8a09e9ae.chunk.js monitoring/static/js/84401.8a09e9ae.chunk.js + monitoring/static/js/84578.9e6910e9.chunk.js monitoring/static/js/84578.9e6910e9.chunk.js + monitoring/static/js/84582.caa06f15.chunk.js monitoring/static/js/84582.caa06f15.chunk.js + monitoring/static/js/84582.caa06f15.chunk.js.LICENSE.txt monitoring/static/js/84582.caa06f15.chunk.js.LICENSE.txt + monitoring/static/js/84587.961ae27a.chunk.js monitoring/static/js/84587.961ae27a.chunk.js + monitoring/static/js/84652.5dfa8103.chunk.js monitoring/static/js/84652.5dfa8103.chunk.js + monitoring/static/js/84745.60da2449.chunk.js monitoring/static/js/84745.60da2449.chunk.js + monitoring/static/js/84870.ab138a59.chunk.js monitoring/static/js/84870.ab138a59.chunk.js + monitoring/static/js/84870.ab138a59.chunk.js.LICENSE.txt monitoring/static/js/84870.ab138a59.chunk.js.LICENSE.txt + monitoring/static/js/84960.05121e37.chunk.js monitoring/static/js/84960.05121e37.chunk.js + monitoring/static/js/85027.462a7fdc.chunk.js monitoring/static/js/85027.462a7fdc.chunk.js + monitoring/static/js/85047.23b0ab8e.chunk.js monitoring/static/js/85047.23b0ab8e.chunk.js monitoring/static/js/8534.f7aec532.chunk.js monitoring/static/js/8534.f7aec532.chunk.js - monitoring/static/js/856.36f195a5.chunk.js monitoring/static/js/856.36f195a5.chunk.js - monitoring/static/js/8633.da605a09.chunk.js monitoring/static/js/8633.da605a09.chunk.js + monitoring/static/js/85393.341703ec.chunk.js monitoring/static/js/85393.341703ec.chunk.js + monitoring/static/js/85406.ba8965be.chunk.js monitoring/static/js/85406.ba8965be.chunk.js + monitoring/static/js/85595.262d8065.chunk.js monitoring/static/js/85595.262d8065.chunk.js + monitoring/static/js/85622.18615d00.chunk.js monitoring/static/js/85622.18615d00.chunk.js + monitoring/static/js/85623.d896063a.chunk.js monitoring/static/js/85623.d896063a.chunk.js + monitoring/static/js/85664.569016a5.chunk.js monitoring/static/js/85664.569016a5.chunk.js + monitoring/static/js/85776.0f7f2e5d.chunk.js monitoring/static/js/85776.0f7f2e5d.chunk.js + monitoring/static/js/85917.743a4384.chunk.js monitoring/static/js/85917.743a4384.chunk.js + monitoring/static/js/85950.98e6e44a.chunk.js monitoring/static/js/85950.98e6e44a.chunk.js + monitoring/static/js/85953.ea1ee23e.chunk.js monitoring/static/js/85953.ea1ee23e.chunk.js + monitoring/static/js/86114.0fc0acbb.chunk.js monitoring/static/js/86114.0fc0acbb.chunk.js + monitoring/static/js/86342.528e5efc.chunk.js monitoring/static/js/86342.528e5efc.chunk.js + monitoring/static/js/86342.528e5efc.chunk.js.LICENSE.txt monitoring/static/js/86342.528e5efc.chunk.js.LICENSE.txt + monitoring/static/js/86472.57a5a1cc.chunk.js monitoring/static/js/86472.57a5a1cc.chunk.js + monitoring/static/js/86658.6a6caa74.chunk.js monitoring/static/js/86658.6a6caa74.chunk.js + monitoring/static/js/86658.6a6caa74.chunk.js.LICENSE.txt monitoring/static/js/86658.6a6caa74.chunk.js.LICENSE.txt + monitoring/static/js/86814.c1a521f5.chunk.js monitoring/static/js/86814.c1a521f5.chunk.js monitoring/static/js/8704.87492da1.chunk.js monitoring/static/js/8704.87492da1.chunk.js - monitoring/static/js/8706.755fcb81.chunk.js monitoring/static/js/8706.755fcb81.chunk.js - monitoring/static/js/8821.96eeccd6.chunk.js monitoring/static/js/8821.96eeccd6.chunk.js - monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt - monitoring/static/js/8840.5eb376ca.chunk.js monitoring/static/js/8840.5eb376ca.chunk.js - monitoring/static/js/8868.a9031705.chunk.js monitoring/static/js/8868.a9031705.chunk.js - monitoring/static/js/8890.9f3d8f08.chunk.js monitoring/static/js/8890.9f3d8f08.chunk.js - monitoring/static/js/8979.0c0acc31.chunk.js monitoring/static/js/8979.0c0acc31.chunk.js - monitoring/static/js/8986.de287636.chunk.js monitoring/static/js/8986.de287636.chunk.js - monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt - monitoring/static/js/9010.4bfaf5fa.chunk.js monitoring/static/js/9010.4bfaf5fa.chunk.js - monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt - monitoring/static/js/902.a1b90b1b.chunk.js monitoring/static/js/902.a1b90b1b.chunk.js - monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt - monitoring/static/js/9025.6ae28867.chunk.js monitoring/static/js/9025.6ae28867.chunk.js - monitoring/static/js/9067.254af4a9.chunk.js monitoring/static/js/9067.254af4a9.chunk.js - monitoring/static/js/9172.f332051f.chunk.js monitoring/static/js/9172.f332051f.chunk.js - monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt monitoring/static/js/9172.f332051f.chunk.js.LICENSE.txt + monitoring/static/js/87138.cf3f482b.chunk.js monitoring/static/js/87138.cf3f482b.chunk.js + monitoring/static/js/87233.c8b49edb.chunk.js monitoring/static/js/87233.c8b49edb.chunk.js + monitoring/static/js/87357.d4031306.chunk.js monitoring/static/js/87357.d4031306.chunk.js + monitoring/static/js/87429.3792c589.chunk.js monitoring/static/js/87429.3792c589.chunk.js + monitoring/static/js/87962.2094d7c1.chunk.js monitoring/static/js/87962.2094d7c1.chunk.js + monitoring/static/js/88081.e48ec099.chunk.js monitoring/static/js/88081.e48ec099.chunk.js + monitoring/static/js/88119.041d294e.chunk.js monitoring/static/js/88119.041d294e.chunk.js + monitoring/static/js/88269.9b813297.chunk.js monitoring/static/js/88269.9b813297.chunk.js + monitoring/static/js/88432.95ced9fa.chunk.js monitoring/static/js/88432.95ced9fa.chunk.js + monitoring/static/js/88669.310e189c.chunk.js monitoring/static/js/88669.310e189c.chunk.js + monitoring/static/js/88706.b895fbe4.chunk.js monitoring/static/js/88706.b895fbe4.chunk.js + monitoring/static/js/88810.cb646554.chunk.js monitoring/static/js/88810.cb646554.chunk.js + monitoring/static/js/88987.f221b1c0.chunk.js monitoring/static/js/88987.f221b1c0.chunk.js + monitoring/static/js/89015.1865c336.chunk.js monitoring/static/js/89015.1865c336.chunk.js + monitoring/static/js/89025.e20277a3.chunk.js monitoring/static/js/89025.e20277a3.chunk.js + monitoring/static/js/89033.56232409.chunk.js monitoring/static/js/89033.56232409.chunk.js + monitoring/static/js/89222.d941dfbd.chunk.js monitoring/static/js/89222.d941dfbd.chunk.js + monitoring/static/js/89697.31847e00.chunk.js monitoring/static/js/89697.31847e00.chunk.js + monitoring/static/js/89922.e5924c1e.chunk.js monitoring/static/js/89922.e5924c1e.chunk.js + monitoring/static/js/90099.38466d3d.chunk.js monitoring/static/js/90099.38466d3d.chunk.js + monitoring/static/js/90118.4fc97e01.chunk.js monitoring/static/js/90118.4fc97e01.chunk.js + monitoring/static/js/90118.4fc97e01.chunk.js.LICENSE.txt monitoring/static/js/90118.4fc97e01.chunk.js.LICENSE.txt + monitoring/static/js/90290.a7f1549c.chunk.js monitoring/static/js/90290.a7f1549c.chunk.js + monitoring/static/js/90330.7878a0d4.chunk.js monitoring/static/js/90330.7878a0d4.chunk.js + monitoring/static/js/90367.afe12186.chunk.js monitoring/static/js/90367.afe12186.chunk.js + monitoring/static/js/90504.d340d9cc.chunk.js monitoring/static/js/90504.d340d9cc.chunk.js + monitoring/static/js/90513.c6053ab5.chunk.js monitoring/static/js/90513.c6053ab5.chunk.js + monitoring/static/js/90529.112c30e3.chunk.js monitoring/static/js/90529.112c30e3.chunk.js + monitoring/static/js/90628.e6a33d41.chunk.js monitoring/static/js/90628.e6a33d41.chunk.js + monitoring/static/js/91087.3a776c06.chunk.js monitoring/static/js/91087.3a776c06.chunk.js + monitoring/static/js/91249.38e22793.chunk.js monitoring/static/js/91249.38e22793.chunk.js + monitoring/static/js/91545.080bf65f.chunk.js monitoring/static/js/91545.080bf65f.chunk.js monitoring/static/js/9174.ae7682da.chunk.js monitoring/static/js/9174.ae7682da.chunk.js - monitoring/static/js/9176.3f08336f.chunk.js monitoring/static/js/9176.3f08336f.chunk.js - monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt - monitoring/static/js/921.0402e36c.chunk.js monitoring/static/js/921.0402e36c.chunk.js - monitoring/static/js/9220.a9f48eb9.chunk.js monitoring/static/js/9220.a9f48eb9.chunk.js - monitoring/static/js/9222.a1913f85.chunk.js monitoring/static/js/9222.a1913f85.chunk.js - monitoring/static/js/9243.cb95c73b.chunk.js monitoring/static/js/9243.cb95c73b.chunk.js - monitoring/static/js/9300.89daa9ec.chunk.js monitoring/static/js/9300.89daa9ec.chunk.js - monitoring/static/js/9312.5eb8d4b1.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js - monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt - monitoring/static/js/9393.b0a1bf0a.chunk.js monitoring/static/js/9393.b0a1bf0a.chunk.js - monitoring/static/js/9394.ca56f408.chunk.js monitoring/static/js/9394.ca56f408.chunk.js - monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt - monitoring/static/js/9433.4cf14d1c.chunk.js monitoring/static/js/9433.4cf14d1c.chunk.js - monitoring/static/js/9466.0afe6e6e.chunk.js monitoring/static/js/9466.0afe6e6e.chunk.js - monitoring/static/js/949.12b4714d.chunk.js monitoring/static/js/949.12b4714d.chunk.js - monitoring/static/js/9507.14872b99.chunk.js monitoring/static/js/9507.14872b99.chunk.js + monitoring/static/js/9177.3b6d6de8.chunk.js monitoring/static/js/9177.3b6d6de8.chunk.js + monitoring/static/js/91880.1a716d56.chunk.js monitoring/static/js/91880.1a716d56.chunk.js + monitoring/static/js/92008.7d46cb66.chunk.js monitoring/static/js/92008.7d46cb66.chunk.js + monitoring/static/js/92016.1c9c5217.chunk.js monitoring/static/js/92016.1c9c5217.chunk.js + monitoring/static/js/92016.1c9c5217.chunk.js.LICENSE.txt monitoring/static/js/92016.1c9c5217.chunk.js.LICENSE.txt + monitoring/static/js/92466.f38204fe.chunk.js monitoring/static/js/92466.f38204fe.chunk.js + monitoring/static/js/92551.088c5eb2.chunk.js monitoring/static/js/92551.088c5eb2.chunk.js + monitoring/static/js/92816.26e23640.chunk.js monitoring/static/js/92816.26e23640.chunk.js + monitoring/static/js/92868.fbd23d48.chunk.js monitoring/static/js/92868.fbd23d48.chunk.js + monitoring/static/js/92984.bc3d29a6.chunk.js monitoring/static/js/92984.bc3d29a6.chunk.js + monitoring/static/js/93033.55bd21d1.chunk.js monitoring/static/js/93033.55bd21d1.chunk.js + monitoring/static/js/93672.030a2ec6.chunk.js monitoring/static/js/93672.030a2ec6.chunk.js + monitoring/static/js/93691.0298f4d1.chunk.js monitoring/static/js/93691.0298f4d1.chunk.js + monitoring/static/js/93696.ebf5e5d2.chunk.js monitoring/static/js/93696.ebf5e5d2.chunk.js + monitoring/static/js/93756.c3c309ab.chunk.js monitoring/static/js/93756.c3c309ab.chunk.js + monitoring/static/js/93771.f96f428a.chunk.js monitoring/static/js/93771.f96f428a.chunk.js + monitoring/static/js/93890.f4cf2ce4.chunk.js monitoring/static/js/93890.f4cf2ce4.chunk.js + monitoring/static/js/94102.c7e5199b.chunk.js monitoring/static/js/94102.c7e5199b.chunk.js + monitoring/static/js/94129.b1cdd95d.chunk.js monitoring/static/js/94129.b1cdd95d.chunk.js + monitoring/static/js/9426.8c0cade1.chunk.js monitoring/static/js/9426.8c0cade1.chunk.js + monitoring/static/js/94695.41c32507.chunk.js monitoring/static/js/94695.41c32507.chunk.js + monitoring/static/js/94810.4ac18bf1.chunk.js monitoring/static/js/94810.4ac18bf1.chunk.js + monitoring/static/js/9493.f7e806b7.chunk.js monitoring/static/js/9493.f7e806b7.chunk.js + monitoring/static/js/95050.8313ef1e.chunk.js monitoring/static/js/95050.8313ef1e.chunk.js + monitoring/static/js/95050.8313ef1e.chunk.js.LICENSE.txt monitoring/static/js/95050.8313ef1e.chunk.js.LICENSE.txt + monitoring/static/js/9511.aceb118a.chunk.js monitoring/static/js/9511.aceb118a.chunk.js monitoring/static/js/9518.3fffdd45.chunk.js monitoring/static/js/9518.3fffdd45.chunk.js - monitoring/static/js/9523.ac019963.chunk.js monitoring/static/js/9523.ac019963.chunk.js - monitoring/static/js/957.08a1c505.chunk.js monitoring/static/js/957.08a1c505.chunk.js - monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt - monitoring/static/js/9582.c09a3623.chunk.js monitoring/static/js/9582.c09a3623.chunk.js - monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt + monitoring/static/js/95264.612bf2f8.chunk.js monitoring/static/js/95264.612bf2f8.chunk.js + monitoring/static/js/95819.5ebcb088.chunk.js monitoring/static/js/95819.5ebcb088.chunk.js + monitoring/static/js/95924.d3281fc7.chunk.js monitoring/static/js/95924.d3281fc7.chunk.js + monitoring/static/js/96017.b8da505b.chunk.js monitoring/static/js/96017.b8da505b.chunk.js monitoring/static/js/9606.fc9247cb.chunk.js monitoring/static/js/9606.fc9247cb.chunk.js - monitoring/static/js/9697.bed5988b.chunk.js monitoring/static/js/9697.bed5988b.chunk.js - monitoring/static/js/9707.72e68790.chunk.js monitoring/static/js/9707.72e68790.chunk.js - monitoring/static/js/9725.a94823a0.chunk.js monitoring/static/js/9725.a94823a0.chunk.js - monitoring/static/js/9728.7cc957e4.chunk.js monitoring/static/js/9728.7cc957e4.chunk.js - monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt - monitoring/static/js/9748.e711e962.chunk.js monitoring/static/js/9748.e711e962.chunk.js - monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt - monitoring/static/js/9778.52ad76ce.chunk.js monitoring/static/js/9778.52ad76ce.chunk.js - monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt - monitoring/static/js/9796.23c68f38.chunk.js monitoring/static/js/9796.23c68f38.chunk.js - monitoring/static/js/9801.b9143d43.chunk.js monitoring/static/js/9801.b9143d43.chunk.js - monitoring/static/js/9802.b15025e5.chunk.js monitoring/static/js/9802.b15025e5.chunk.js - monitoring/static/js/9842.b8ba19ad.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js - monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt - monitoring/static/js/9872.65a6fae7.chunk.js monitoring/static/js/9872.65a6fae7.chunk.js - monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt - monitoring/static/js/9882.b983931a.chunk.js monitoring/static/js/9882.b983931a.chunk.js - monitoring/static/js/99.73d10ff1.chunk.js monitoring/static/js/99.73d10ff1.chunk.js - monitoring/static/js/9908.4bd3acb1.chunk.js monitoring/static/js/9908.4bd3acb1.chunk.js - monitoring/static/js/9922.367b63b0.chunk.js monitoring/static/js/9922.367b63b0.chunk.js - monitoring/static/js/main.806ca619.js monitoring/static/js/main.806ca619.js - monitoring/static/js/main.806ca619.js.LICENSE.txt monitoring/static/js/main.806ca619.js.LICENSE.txt + monitoring/static/js/96079.c09d99cc.chunk.js monitoring/static/js/96079.c09d99cc.chunk.js + monitoring/static/js/9614.71b68927.chunk.js monitoring/static/js/9614.71b68927.chunk.js + monitoring/static/js/96410.55c52134.chunk.js monitoring/static/js/96410.55c52134.chunk.js + monitoring/static/js/96554.bff09e47.chunk.js monitoring/static/js/96554.bff09e47.chunk.js + monitoring/static/js/96554.bff09e47.chunk.js.LICENSE.txt monitoring/static/js/96554.bff09e47.chunk.js.LICENSE.txt + monitoring/static/js/97420.08729928.chunk.js monitoring/static/js/97420.08729928.chunk.js + monitoring/static/js/97440.3db00b72.chunk.js monitoring/static/js/97440.3db00b72.chunk.js + monitoring/static/js/97638.a9af06da.chunk.js monitoring/static/js/97638.a9af06da.chunk.js + monitoring/static/js/97638.a9af06da.chunk.js.LICENSE.txt monitoring/static/js/97638.a9af06da.chunk.js.LICENSE.txt + monitoring/static/js/97748.5df46a4a.chunk.js monitoring/static/js/97748.5df46a4a.chunk.js + monitoring/static/js/98014.a4ad6ba5.chunk.js monitoring/static/js/98014.a4ad6ba5.chunk.js + monitoring/static/js/98014.a4ad6ba5.chunk.js.LICENSE.txt monitoring/static/js/98014.a4ad6ba5.chunk.js.LICENSE.txt + monitoring/static/js/98234.c2934def.chunk.js monitoring/static/js/98234.c2934def.chunk.js + monitoring/static/js/98234.c2934def.chunk.js.LICENSE.txt monitoring/static/js/98234.c2934def.chunk.js.LICENSE.txt + monitoring/static/js/98256.8a661541.chunk.js monitoring/static/js/98256.8a661541.chunk.js + monitoring/static/js/98268.2e2a9c9c.chunk.js monitoring/static/js/98268.2e2a9c9c.chunk.js + monitoring/static/js/98559.7d826ee7.chunk.js monitoring/static/js/98559.7d826ee7.chunk.js + monitoring/static/js/98958.21184356.chunk.js monitoring/static/js/98958.21184356.chunk.js + monitoring/static/js/99010.0141f0a0.chunk.js monitoring/static/js/99010.0141f0a0.chunk.js + monitoring/static/js/99010.0141f0a0.chunk.js.LICENSE.txt monitoring/static/js/99010.0141f0a0.chunk.js.LICENSE.txt + monitoring/static/js/99176.319e969d.chunk.js monitoring/static/js/99176.319e969d.chunk.js + monitoring/static/js/99176.319e969d.chunk.js.LICENSE.txt monitoring/static/js/99176.319e969d.chunk.js.LICENSE.txt + monitoring/static/js/9930.e56b072a.chunk.js monitoring/static/js/9930.e56b072a.chunk.js + monitoring/static/js/99341.613b8fce.chunk.js monitoring/static/js/99341.613b8fce.chunk.js + monitoring/static/js/99466.a47d41f5.chunk.js monitoring/static/js/99466.a47d41f5.chunk.js + monitoring/static/js/99753.25160545.chunk.js monitoring/static/js/99753.25160545.chunk.js + monitoring/static/js/99796.a8f76855.chunk.js monitoring/static/js/99796.a8f76855.chunk.js + monitoring/static/js/99872.c308e65f.chunk.js monitoring/static/js/99872.c308e65f.chunk.js + monitoring/static/js/99872.c308e65f.chunk.js.LICENSE.txt monitoring/static/js/99872.c308e65f.chunk.js.LICENSE.txt + monitoring/static/js/main.56991933.js monitoring/static/js/main.56991933.js + monitoring/static/js/main.56991933.js.LICENSE.txt monitoring/static/js/main.56991933.js.LICENSE.txt monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf |